:root {
  color-scheme: light;
  --navy: #1c1c3b;
  --navy-deep: #15152f;
  --blue: #299edb;
  --paper: #f5f5f5;
  --paper-strong: #ffffff;
  --ink: #202124;
  --muted: #5f6368;
  --line: #dfe3e8;
  --amber: #299edb;
  --green: #2e7d32;
  --red: #d32f2f;
  --shadow: 0 8px 28px rgba(28, 28, 59, .09);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.55 "Inter", "Roboto", "Helvetica", "Arial", sans-serif; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid rgba(41, 158, 219, .55); outline-offset: 3px; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; background: white; padding: .75rem 1rem; color: var(--navy); }
.skip-link:focus { top: 1rem; }

.site-header { min-height: 72px; padding: 0 clamp(1rem, 4vw, 4.5rem); display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: var(--navy); color: white; box-shadow: 0 2px 10px rgba(28, 28, 59, .24); }
.brand { display: inline-flex; align-items: center; gap: .8rem; color: white; text-decoration: none; }
.brand-logo { width: auto; height: 46px; display: block; object-fit: contain; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 19px; line-height: 1.1; font-weight: 600; letter-spacing: .01em; }
.brand small { margin-top: .15rem; color: #b9dff3; font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: .8rem; flex-wrap: wrap; }
.system-status { display: inline-flex; align-items: center; gap: .48rem; color: #d5d5e1; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.system-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(41,158,219,.15); }
.system-status.online i { background: #66bb6a; box-shadow: 0 0 0 4px rgba(102,187,106,.16); }
.identity { color: white; font-size: 13px; }
.text-button { border: 0; border-bottom: 1px solid currentColor; background: transparent; color: #d5d5e1; padding: .25rem 0; cursor: pointer; }

main { width: min(1400px, calc(100% - 32px)); margin: 24px auto 40px; }
.blueprint-frame { position: relative; overflow: hidden; }
.blueprint-frame::before { content: ""; position: absolute; width: 430px; height: 430px; right: -175px; top: -220px; pointer-events: none; border-radius: 50%; background: rgba(41, 158, 219, .08); }
.hero { min-height: 420px; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, .75fr); gap: clamp(2rem, 5vw, 6rem); align-items: center; margin-bottom: 16px; padding: clamp(3rem, 7vw, 6rem) clamp(1.25rem, 6vw, 6rem); background: var(--paper-strong); border-radius: 12px; box-shadow: var(--shadow); }
.hero-copy, .status-board { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 .55rem; color: var(--blue); font-size: 11px; line-height: 1.2; font-weight: 700; letter-spacing: .16em; }
h1, h2 { color: var(--navy); }
h1 { max-width: 800px; margin: 0; font-size: clamp(2.6rem, 5.2vw, 5rem); line-height: 1.02; letter-spacing: -.035em; font-weight: 650; }
h2 { margin: 0; font-size: clamp(1.55rem, 3vw, 2.4rem); line-height: 1.05; font-weight: 600; }
.hero-text { max-width: 720px; margin: 1.4rem 0 0; color: #4d5a65; font-size: clamp(1rem, 1.4vw, 1.18rem); }
.hero-actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 2rem; }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--navy); border-radius: 8px; padding: .72rem 1.1rem; color: var(--navy); background: transparent; text-decoration: none; font-weight: 650; cursor: pointer; transition: transform .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease; }
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--navy); color: white; box-shadow: 0 3px 10px rgba(28,28,59,.18); }
.button.primary:hover { background: #272752; }
.button.secondary:hover { background: #eef7fc; border-color: var(--blue); color: #147baa; }
.button.compact { min-height: 38px; padding: .5rem .9rem; }
.button.danger { border-color: var(--red); color: var(--red); }
.button:disabled, .button.disabled { opacity: .48; pointer-events: none; }
.install-note { margin: .7rem 0 0; color: var(--muted); font-size: 12px; }

.status-board { padding: 1.35rem; color: white; background: var(--navy); border-radius: 12px; box-shadow: 0 10px 30px rgba(28,28,59,.2); }
.board-label { display: block; padding-bottom: .9rem; color: #9fb5c7; font: 700 10px/1 "Inter", "Roboto", sans-serif; letter-spacing: .2em; border-bottom: 1px solid rgba(255,255,255,.18); }
.path-row { display: grid; grid-template-columns: 35px 1fr; column-gap: .7rem; padding: 1rem 0; }
.path-row strong { grid-row: span 2; color: #56b8e7; font-size: 12px; line-height: 1.3; font-weight: 600; }
.path-row span { font-size: 19px; line-height: 1.1; font-weight: 600; }
.path-row em { margin-top: .2rem; color: #b8c8d4; font-size: 12px; font-style: normal; }
.path-line { height: 1px; background: linear-gradient(90deg, var(--blue) 0 34px, rgba(255,255,255,.16) 34px); }

.access-strip { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin: 0 0 16px; padding: 2rem clamp(1.25rem, 6vw, 6rem); background: white; border-radius: 12px; box-shadow: var(--shadow); }
.access-strip p:last-child { margin: .55rem 0 0; color: var(--muted); }
.google-login { min-width: 230px; min-height: 44px; display: flex; justify-content: flex-end; }

.release-band { display: grid; grid-template-columns: 1fr minmax(420px, 1.4fr) auto; align-items: center; gap: 2rem; margin-bottom: 16px; padding: 1.6rem clamp(1.25rem, 6vw, 6rem); color: white; background: var(--navy); border-radius: 12px; box-shadow: var(--shadow); }
.release-band h2 { color: white; font-size: 1.8rem; }
.release-band .eyebrow { color: #56b8e7; }
.release-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 0; background: rgba(255,255,255,.18); }
.release-values div { padding: .75rem 1rem; background: var(--navy); }
.release-values dt { color: #aac0d2; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.release-values dd { margin: .25rem 0 0; font: 600 17px/1.2 "Inter", "Roboto", sans-serif; }
.release-band .button { border-color: #afc2d0; color: white; }

.workbench { display: grid; grid-template-columns: minmax(280px, .75fr) minmax(0, 1.8fr); margin-bottom: 16px; overflow: hidden; background: var(--paper-strong); border-radius: 12px; box-shadow: var(--shadow); }
.workbench-index { padding: clamp(2rem, 4vw, 4rem) clamp(1.25rem, 4vw, 3.5rem); background: #f8fafc; border-right: 1px solid var(--line); }
.workbench-index > p:not(.eyebrow) { color: var(--muted); }
.workbench-nav { display: grid; gap: .35rem; margin-top: 2rem; }
.nav-item { display: grid; grid-template-columns: 38px 1fr; gap: .4rem; text-align: left; border: 0; border-radius: 8px; background: transparent; padding: .9rem .75rem; color: #4e5962; cursor: pointer; }
.nav-item span { color: var(--blue); font: 700 11px "Inter", "Roboto", sans-serif; }
.nav-item:hover { background: #eef7fc; }
.nav-item.active { color: var(--navy); background: rgba(41,158,219,.1); font-weight: 700; }
.nav-item.active::after { content: "→"; color: var(--blue); }
.workbench-panel { min-height: 500px; padding: clamp(2rem, 4vw, 4rem); }
.upload-panel { max-width: 760px; }
.panel-heading { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; padding-bottom: .8rem; border-bottom: 2px solid var(--navy); color: var(--navy); font: 700 11px/1.2 "Inter", "Roboto", sans-serif; letter-spacing: .13em; }
.panel-heading strong { color: var(--muted); font-weight: 500; }
label { display: grid; gap: .4rem; margin-bottom: 1rem; color: var(--navy-deep); font-size: 13px; font-weight: 650; }
input, select, textarea { width: 100%; border: 1px solid #bcc4cc; border-radius: 8px; padding: .72rem .8rem; color: var(--ink); background: white; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(41,158,219,.12); outline: 0; }
textarea { resize: vertical; }
.field-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 0 1rem; }
.file-drop { min-height: 170px; place-content: center; text-align: center; border: 1px dashed #8ea8b6; border-radius: 12px; padding: 1.5rem; background: #f7fbfd; cursor: pointer; }
.file-drop input { width: auto; max-width: 100%; margin: 0 auto .7rem; border: 0; padding: 0; background: transparent; }
.file-drop small { color: var(--muted); font-weight: 400; }

.queue { padding: clamp(2.5rem, 5vw, 5rem) clamp(1.25rem, 6vw, 6rem); background: white; border-radius: 12px; box-shadow: var(--shadow); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.queue-filter { display: flex; gap: .3rem; flex-wrap: wrap; }
.filter { border: 1px solid #bcc4cc; border-radius: 8px; background: transparent; padding: .4rem .7rem; color: var(--muted); cursor: pointer; }
.filter.active { border-color: var(--navy); color: white; background: var(--navy); }
.submission-list { display: grid; gap: .65rem; }
.submission { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 1rem; align-items: start; padding: 1rem 1.1rem; background: var(--paper-strong); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 8px; box-shadow: 0 3px 12px rgba(28,28,59,.05); }
.submission.approved { border-left-color: var(--green); }
.submission.rejected { border-left-color: var(--red); }
.submission-kind { color: var(--muted); font: 700 10px/1.3 "Inter", "Roboto", sans-serif; letter-spacing: .13em; text-transform: uppercase; }
.submission h3 { margin: 0 0 .25rem; color: var(--navy-deep); font: 600 17px/1.2 "Inter", "Roboto", sans-serif; }
.submission p { margin: .15rem 0; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.status-pill { display: inline-block; border: 1px solid currentColor; border-radius: 999px; padding: .3rem .55rem; color: var(--blue); font-size: 10px; line-height: 1; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.approved .status-pill { color: var(--green); }
.rejected .status-pill { color: var(--red); }
.review-box { grid-column: 2 / 4; display: grid; grid-template-columns: 1fr auto auto; gap: .5rem; padding-top: .8rem; border-top: 1px solid #dddcd4; }
.review-box textarea { min-height: 44px; margin: 0; }
.photo-preview { max-width: 130px; max-height: 90px; object-fit: cover; border: 1px solid var(--line); }
.empty-state { padding: 2.5rem; color: var(--muted); text-align: center; border: 1px dashed #aaa99f; }
.toast { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 20; max-width: min(420px, calc(100vw - 2.5rem)); padding: 1rem 1.2rem; color: white; background: var(--navy); border-left: 5px solid var(--green); border-radius: 8px; box-shadow: var(--shadow); }
.toast.error { border-left-color: var(--red); }
footer { display: flex; justify-content: space-between; gap: 1rem; padding: 1.2rem clamp(1.25rem, 6vw, 6rem); color: #c8c8d7; background: var(--navy); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }

@media (max-width: 850px) {
  .hero, .workbench { grid-template-columns: 1fr; }
  .status-board { max-width: 560px; }
  .access-strip, .section-heading { align-items: flex-start; flex-direction: column; }
  .google-login { justify-content: flex-start; }
  .release-band { grid-template-columns: 1fr; gap: 1rem; }
  .workbench-index { border-right: 0; border-bottom: 1px solid var(--line); }
  .workbench-nav { grid-template-columns: repeat(3, 1fr); }
  .nav-item { grid-template-columns: 1fr; padding-right: .5rem; }
  .nav-item.active::after { display: none; }
}

@media (max-width: 600px) {
  .site-header { align-items: flex-start; padding-block: .8rem; }
  .brand-logo { height: 40px; }
  .brand strong { font-size: 16px; }
  .identity, .system-status { max-width: 155px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  main { width: min(100% - 20px, 1400px); margin-top: 10px; }
  .hero { min-height: 0; }
  .hero-actions .button { width: 100%; }
  .release-values, .field-grid { grid-template-columns: 1fr; }
  .submission { grid-template-columns: 1fr; }
  .review-box { grid-column: 1; grid-template-columns: 1fr; }
  .submission > :last-child { justify-self: start; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
