:root { color-scheme: light; --paper: #f7f6f2; --surface: #fff; --ink: #262c29; --muted: #616861; --line: #d8dcd5; --green: #234e3b; --green-hover: #183c2c; --soft-green: #e8eee8; --error: #a0392b; --error-bg: #fff0ec; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-size: 16px; line-height: 1.55; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input { font: inherit; }
button, .button, a { -webkit-tap-highlight-color: transparent; }
button, .button { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }
input { min-width: 0; }
button:focus-visible, a:focus-visible, input:focus-visible, .file-picker:focus-within { outline: 3px solid #b98b28; outline-offset: 4px; }
button:active:not(:disabled), .button:active { transform: scale(.96); }
.shell { width: min(100% - 64px, 1000px); margin-inline: auto; }
.header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 28px 26px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-size: 20px; line-height: 1.25; font-weight: 650; }
.brand-mark { flex: 0 0 40px; width: 40px; height: 40px; color: var(--green); }
.brand-note { display: block; color: var(--muted); font-size: 12px; font-weight: 400; margin-top: 5px; }
.connection { font-size: 12px; color: var(--muted); text-align: right; }
.navigation { display: flex; gap: 30px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.navigation a { display: inline-flex; align-items: center; gap: 5px; min-height: 52px; text-decoration: none; font-size: 14px; color: var(--muted); }
.navigation a:hover, .text-link:hover { color: var(--green); }
.navigation .nav-current { color: var(--green); box-shadow: inset 0 -2px var(--green); font-weight: 600; }
main { padding-block: 32px 0; }
h1, h2, h3, p { margin: 0; }
h1, h2 { line-height: 1.2; font-weight: 650; letter-spacing: -.035em; text-wrap: balance; }
h1 { font-size: clamp(28px, 3.6vw, 38px); }
h2 { font-size: clamp(27px, 3.2vw, 34px); }
h3 { font-size: 17px; font-weight: 600; line-height: 1.35; }
.secondary { color: var(--muted); }
.eyebrow { font-size: 11px; letter-spacing: .13em; text-transform: uppercase; font-weight: 650; color: var(--green); margin-bottom: 10px; }
.section-intro > .secondary { margin-top: 13px; max-width: 470px; }
.auth-section { display: grid; grid-template-columns: 1fr 360px; gap: 48px; padding-block: 20px 40px; border-bottom: 1px solid var(--line); margin-bottom: 34px; }
.auth-form { display: grid; align-content: start; gap: 9px; }
.auth-form label { font-size: 14px; font-weight: 550; }
.auth-form input { width: 100%; min-height: 48px; border: 1px solid #a8b2a8; border-radius: 6px; background: var(--surface); padding: 10px 12px; color: var(--ink); margin-bottom: 6px; }
.auth-form .button { margin-top: 6px; }
.field-note { color: var(--muted); font-size: 12px; font-weight: 400; margin-left: 4px; }
.form-note { font-size: 12px; color: var(--muted); line-height: 1.5; }
.auth-form .form-note { margin-top: 5px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 9px; min-height: 46px; border: 1px solid transparent; border-radius: 6px; padding: 10px 16px; text-decoration: none; font-size: 14px; font-weight: 600; line-height: 1.4; transition: background-color 150ms, color 150ms; white-space: nowrap; }
.button svg { width: 20px; height: 20px; flex-shrink: 0; }
.button-primary { background: var(--green); color: #fff; }
.button-primary:hover { background: var(--green-hover); }
.button-secondary { background: var(--surface); border-color: var(--line); color: var(--green); }
.button-secondary:hover { background: var(--soft-green); border-color: #a1b0a2; }
.button-quiet { padding-inline: 10px; color: var(--muted); background: transparent; font-size: 13px; }
.button-quiet:hover { background: var(--soft-green); color: var(--green); }
.account { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 24px; font-size: 14px; }
.account > span { min-width: 0; overflow-wrap: anywhere; }
.account .button { flex-shrink: 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.library-summary { display: flex; align-items: center; gap: 18px; padding: 24px 0; margin-bottom: 20px; }
.library-summary strong { font-size: 17px; font-weight: 550; }
.library-summary p { margin-top: 5px; font-size: 14px; }
.library-icon { width: 48px; height: 48px; flex: 0 0 48px; color: #7c927c; }
.drop-zone { display: flex; gap: 18px; align-items: center; border: 1px dashed #92a292; border-radius: 10px; background: var(--surface); padding: 24px; }
.drop-zone > svg { width: 32px; height: 32px; flex: 0 0 32px; color: var(--green); }
.drop-copy { flex: 1; min-width: 0; }
.drop-copy p { font-size: 13px; margin-top: 6px; }
.drop-zone.dragging { background: var(--soft-green); border-style: solid; outline: 2px solid var(--green); }
.file-picker { position: relative; cursor: pointer; overflow: hidden; }
.file-picker input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload-hints { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 11px; margin: 12px 0 5px; }
.access-note { color: var(--muted); padding: 18px 20px; border-left: 3px solid #a7b9a7; background: var(--soft-green); font-size: 14px; }
.notice { padding: 14px 16px; background: var(--error-bg); color: var(--error); border-left: 3px solid var(--error); font-size: 14px; overflow-wrap: anywhere; margin-bottom: 18px; }
.auth-form .notice { margin-bottom: 6px; }
.error-text { font-size: 13px; color: var(--error); overflow-wrap: anywhere; }
.reload-button { margin-top: -12px; margin-bottom: 20px; }
.queue-section { margin-top: 30px; }
.queue-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.queue-heading h3 { flex: 1; }
.queue { padding: 0; margin: 0 0 10px; list-style: none; }
.queue-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; column-gap: 16px; border-top: 1px solid var(--line); padding-block: 15px; }
.file-name { display: block; font-size: 14px; font-weight: 550; overflow-wrap: anywhere; }
.file-meta { font-size: 11px; color: var(--muted); margin-top: 3px; }
.file-status { font-size: 12px; margin-top: 7px; color: var(--muted); overflow-wrap: anywhere; }
.queue-item[data-state="added"] .file-status, .queue-item[data-state="duplicate"] .file-status { color: var(--green); }
.queue-item[data-state="error"] .file-status { color: var(--error); }
.file-action { min-width: 80px; padding-inline: 8px; margin-top: -6px; }
progress { display: block; width: 100%; height: 5px; margin-top: 10px; border: 0; border-radius: 4px; overflow: hidden; accent-color: var(--green); background: var(--line); }
progress::-webkit-progress-bar { background: var(--line); }
progress::-webkit-progress-value { background: var(--green); }
progress::-moz-progress-bar { background: var(--green); }
.phone-section { margin-top: 48px; padding: 36px; border-top: 3px solid var(--green); background: var(--soft-green); }
.phone-steps { list-style: none; padding: 0; margin: 28px 0 0; }
.phone-steps li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 14px; margin-bottom: 28px; }
.step-number { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; background: var(--green); color: #fff; border-radius: 50%; font-size: 12px; font-weight: 600; }
.phone-steps p { margin-top: 7px; font-size: 14px; max-width: 660px; }
.phone-steps .button { margin-top: 13px; }
.text-link { color: var(--green); text-underline-offset: 3px; font-size: 14px; }
.official-link { display: inline-block; margin-left: 16px; font-size: 12px; }
.endpoint-field { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.endpoint-field input { width: 100%; padding: 11px 12px; border: 1px solid #a5b5a5; background: #f8faf7; border-radius: 6px; color: var(--ink); font-size: 12px; height: 46px; }
.endpoint-field .button { margin-top: 0; }
.phone-footer { border-top: 1px solid #c4d0c4; padding-top: 20px; font-size: 13px; color: var(--muted); }
.footer { display: flex; justify-content: space-between; gap: 16px; padding-block: 24px 32px; font-size: 11px; color: var(--muted); }
.skip-link { position: absolute; left: 16px; top: -60px; padding: 10px; background: var(--surface); z-index: 5; }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 720px) {
  .shell { width: calc(100% - 36px); }
  .header { padding-block: 22px; gap: 10px; }
  .brand { font-size: 18px; gap: 9px; }
  .brand-mark { width: 34px; height: 34px; flex-basis: 34px; }
  .brand-note { font-size: 10px; }
  .connection { max-width: 90px; font-size: 10px; }
  .navigation { gap: 0; justify-content: space-between; }
  .navigation a { font-size: 11px; min-height: 50px; }
  main { padding-top: 24px; }
  .auth-section { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 8px; padding-bottom: 30px; margin-bottom: 28px; }
  .section-intro > .secondary { font-size: 14px; }
  .section-heading { align-items: start; flex-direction: column; gap: 17px; margin-bottom: 10px; }
  .section-heading > .button { width: 100%; }
  .library-summary { padding-block: 22px; gap: 12px; margin-bottom: 12px; }
  .library-summary strong { font-size: 15px; }
  .library-summary p { font-size: 12px; }
  .library-icon { width: 40px; height: 40px; flex-basis: 40px; }
  .drop-zone { flex-wrap: wrap; gap: 13px; padding: 20px; }
  .drop-zone > svg { align-self: start; width: 27px; height: 27px; flex-basis: 27px; }
  .drop-copy h3 { font-size: 16px; }
  .drop-copy p { font-size: 12px; }
  .file-picker { width: 100%; margin-top: 3px; }
  .upload-hints { display: block; font-size: 10px; line-height: 1.7; }
  .upload-hints span { display: block; }
  .queue-item { column-gap: 8px; }
  .file-action { min-width: 73px; font-size: 12px; }
  .phone-section { margin-top: 34px; padding: 26px 20px; }
  .phone-section h2 { font-size: 26px; }
  .phone-steps { margin-top: 24px; }
  .phone-steps li { gap: 10px; grid-template-columns: 24px minmax(0, 1fr); }
  .step-number { width: 24px; height: 24px; }
  .phone-steps h3 { font-size: 15px; }
  .phone-steps p { font-size: 12px; }
  .official-link { display: block; margin: 10px 0 0; min-height: 32px; }
  .endpoint-field { flex-direction: column; align-items: stretch; gap: 8px; }
  .endpoint-field input { font-size: 11px; }
  .phone-footer, .phone-footer .text-link { font-size: 12px; }
  .footer { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
  button:active:not(:disabled), .button:active { transform: none; }
}
