:root {
  color-scheme: light;
  --ink: #151b18;
  --muted: #56635a;
  --green: #8dcc36;
  --green-ink: #35530f;
  --border: #dce6d4;
  --surface: #f4f7ef;
  --white: #fff;
  --sans: "Segoe UI", Inter, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 400 1rem/1.55 var(--sans);
}

button, input { font: inherit; }
button, label.file-picker { cursor: pointer; }
button:disabled { cursor: default; }

:where(button, input, label):focus-visible,
.file-picker:focus-within {
  outline: 3px solid #5d8f20;
  outline-offset: 3px;
}

.wrap { width: min(1112px, 100% - 48px); margin-inline: auto; }

.site-header {
  border-bottom: 1px solid #e5ebe0;
  background: var(--white);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 23px;
  min-height: 74px;
}

.logo { display: block; width: 155px; height: auto; }
.header-product { border-left: 1px solid var(--border); padding-left: 22px; font-size: .9rem; font-weight: 650; }
.account { display: flex; align-items: center; gap: 10px; margin-left: auto; font-size: .9rem; }
.avatar { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: #e9f2db; color: var(--green-ink); font-size: .73rem; font-weight: 750; }
.account-name { font-weight: 650; }
.sign-out { margin-left: 10px; }

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 246px;
  margin: 32px 0 22px;
  padding: 32px 44px 37px;
  overflow: hidden;
  border-radius: 22px;
  background: #17241b;
  color: white;
}

.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, #17241b 26%, transparent 85%),
    repeating-linear-gradient(0deg, transparent 0 23px, #b5d79b18 23px 24px),
    repeating-linear-gradient(90deg, transparent 0 23px, #b5d79b18 23px 24px),
    radial-gradient(ellipse at 84% 56%, #36542a, #17241b 68%);
}

.hero-label { margin: 0 0 10px; color: #b9db9a; font-size: .78rem; font-weight: 700; letter-spacing: .045em; }
.hero-label span { margin-inline: 5px; color: #a4bf91; }
.hero h1 { margin: 0; font-size: clamp(2.1rem, 5vw, 3.45rem); font-weight: 750; line-height: 1.03; letter-spacing: -.065em; }
.hero-content > p:last-child { margin: 16px 0 0; color: #dbe6d7; font-size: 1rem; }
.hero-break { display: none; }

.hero-diagram {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 22px;
  margin-inline: 40px 20px;
}

.sheet { width: 110px; height: 128px; padding: 15px; border: 1px solid #9cc8818f; border-radius: 13px; background: #222f25; box-shadow: 0 12px 30px #0e160e55; }
.sheet-source { transform: rotate(-8deg); }
.sheet-result { border-color: #b9e17e; background: #ddf2ba; color: #203215; transform: rotate(8deg); }
.sheet > span { font-size: .78rem; font-weight: 800; letter-spacing: .1em; }
.sheet-source > span { color: #d2e4c4; }
.arrow { color: #c3e99d; font-size: 1.8rem; }
.plan-lines { position: relative; height: 57px; margin-top: 12px; border: 1px solid currentColor; opacity: .72; }
.plan-lines i { position: absolute; display: block; }
.plan-lines i:nth-child(1) { inset: 0 auto 0 42%; border-left: 1px solid currentColor; }
.plan-lines i:nth-child(2) { inset: 52% 57% auto 0; border-top: 1px solid currentColor; }
.plan-lines i:nth-child(3) { inset: 30% 0 auto 42%; border-top: 1px solid currentColor; }
.plan-lines i:nth-child(4) { inset: 31% 22% auto auto; height: 39%; border-right: 1px solid currentColor; }

.upload-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 20px; }
.card { min-width: 0; border: 1px solid var(--border); border-radius: 18px; background: var(--white); box-shadow: 0 4px 14px #21341506; }
.upload-card, .mail-card, .jobs-card { padding: 23px 24px; }
.card h2 { margin: 0; font-size: 1.19rem; line-height: 1.3; font-weight: 750; letter-spacing: -.025em; }
.card-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 17px; }
.file-limit { color: var(--muted); font-size: .82rem; font-weight: 650; white-space: nowrap; }

.drop-area {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  min-height: 190px;
  padding: 16px;
  border: 1px dashed #aac499;
  border-radius: 12px;
  background: #f8fbf5;
  text-align: center;
}

.drop-area.is-over { border-color: #5d8f20; background: #e9f5db; }
.drop-area strong { max-width: 100%; overflow-wrap: anywhere; margin-top: 8px; font-size: .99rem; }
.drop-hint { color: var(--muted); font-size: .83rem; }
.upload-icon, .mail-icon { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 11px; background: #e8f3dc; color: var(--green-ink); }
.upload-icon { font-size: 1.45rem; font-weight: 700; line-height: 1; }
.mail-icon i { position: relative; display: block; width: 20px; height: 15px; border: 1.6px solid currentColor; border-radius: 3px; overflow: hidden; }
.mail-icon i::before { position: absolute; content: ""; width: 13px; height: 13px; left: 2px; top: -8px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg); }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 8px 15px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: .87rem;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}

.primary { background: var(--green); color: #192710; }
.primary:hover { background: #a2d857; }
.primary:disabled { background: #e6eddf; color: #64735c; }
.secondary { border-color: #cbd9c2; background: var(--white); color: var(--ink); }
.secondary:hover { border-color: #91ad7e; background: #fbfdf9; }
.file-picker { position: relative; min-height: 36px; margin-top: 11px; padding-block: 5px; }
.file-picker input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.text-button { padding: 3px 0; border: 0; background: none; color: var(--green-ink); font-size: .84rem; font-weight: 680; text-align: left; }
.text-button:hover { text-decoration: underline; }
.upload-actions { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 15px; }
.field-error { margin: 9px 0 0; color: #a32c2b; font-size: .88rem; }

.mail-card { display: flex; flex-direction: column; background: #fafcf8; }
.mail-card h2 { margin-top: 14px; }
.mail-card > p { margin: 8px 0 15px; color: var(--muted); font-size: .94rem; }
.recipient { display: grid; gap: 1px; margin-top: auto; padding: 10px 12px; border: 1px solid #e2ebda; border-radius: 9px; background: #f1f6ec; overflow-wrap: anywhere; }
.recipient span { color: var(--muted); font-size: .77rem; }
.recipient strong { font-size: .9rem; }
.mail-card .mail-note { margin: 10px 0 0; font-size: .79rem; }

.jobs-card { margin-top: 20px; padding-bottom: 5px; }
.jobs-heading { margin-bottom: 9px; }
.jobs-list { margin: 0; padding: 0; list-style: none; }
.job { display: grid; grid-template-columns: minmax(0, 1fr) 140px 110px; align-items: center; gap: 16px; min-height: 62px; border-top: 1px solid #e7ede2; }
.job-file { display: flex; align-items: center; gap: 12px; min-width: 0; }
.file-icon { flex: 0 0 auto; display: grid; place-items: center; width: 36px; height: 39px; border: 1px solid #dce7d5; border-radius: 8px; background: #f4f7f0; color: var(--green-ink); font-size: .65rem; font-weight: 800; }
.job-filename { display: block; font-size: .9rem; line-height: 1.2; overflow-wrap: anywhere; }
.job-detail { display: block; margin-top: 2px; color: var(--muted); font-size: .76rem; }
.status { justify-self: start; padding: 4px 9px; border-radius: 999px; background: #f1f4ef; color: #4a5a43; font-size: .74rem; font-weight: 700; white-space: nowrap; }
.status.ready { background: #e9f5dc; color: #365c18; }
.status.processing { background: #fff2d7; color: #674911; }
.job-action { justify-self: end; }

.footer { display: flex; justify-content: space-between; gap: 12px; padding-block: 22px; color: var(--muted); font-size: .77rem; }

.login-screen { display: grid; min-height: min(680px, calc(100svh - 135px)); place-items: center; padding-block: 36px; }
.login-card { width: min(100%, 470px); padding: 34px; }
.login-card h1 { margin: 0; font-size: 2.15rem; line-height: 1.1; letter-spacing: -.05em; }
.login-card > p { margin: 12px 0 25px; color: var(--muted); }
.login-card form { display: grid; gap: 8px; }
.login-card form label { margin-top: 5px; font-size: .88rem; font-weight: 700; }
.login-card form input { width: 100%; min-height: 42px; padding: 7px 11px; border: 1px solid #bdccb4; border-radius: 8px; background: #f8faf6; color: var(--ink); }
.login-card form button { margin-top: 12px; }
dialog { width: min(470px, calc(100% - 36px)); padding: 0; border: 1px solid var(--border); border-radius: 18px; color: var(--ink); }
dialog::backdrop { background: #18241980; }
.dialog-content { padding: 24px; }
.dialog-content h2 { margin: 0; font-size: 1.3rem; }
.dialog-content p { color: var(--muted); }
.dialog-content .download-name { color: var(--ink); font-weight: 650; overflow-wrap: anywhere; }
.sr-only { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; white-space: nowrap; overflow: hidden; }

@media (max-width: 850px) {
  .hero { padding-inline: 29px; }
  .hero-diagram { margin-inline: 24px 8px; gap: 16px; }
  .sheet { width: 86px; height: 109px; padding: 10px; }
  .hero-break { display: initial; }
}

@media (max-width: 660px) {
  .wrap { width: calc(100% - 28px); }
  .header-inner { min-height: 60px; gap: 12px; }
  .logo { width: 114px; }
  .header-product, .account-name { display: none; }
  .sign-out { margin-left: 3px; }
  .hero { min-height: 180px; margin-top: 16px; padding: 20px; border-radius: 16px; }
  .hero-content > p:last-child { max-width: 28ch; font-size: .9rem; }
  .hero-diagram { display: none; }
  .hero-break { display: none; }
  .upload-grid { grid-template-columns: 1fr; gap: 13px; }
  .upload-card, .mail-card, .jobs-card { padding: 17px; }
  .mail-card > p { font-size: .9rem; }
  .jobs-card { margin-top: 13px; }
  .job { grid-template-columns: minmax(0, 1fr) auto; gap: 7px; padding-block: 10px; }
  .job-action { grid-column: 1 / -1; padding-left: 48px; justify-self: start; }
  .footer { flex-wrap: wrap; padding-block: 16px; }
}

@media (max-width: 360px) {
  .upload-actions { flex-wrap: wrap; }
  .upload-actions .primary { width: 100%; }
}

.footer a { color: inherit; }
a.button { text-decoration: none; }
.login-card .login-link { margin: 16px 0 0; }
.notice, .empty-state { margin: 10px 0; color: var(--green-ink); font-size: .87rem; }
.status.failed { background: #f8e5e3; color: #862f2d; }
.job-title { overflow-wrap: anywhere; }
