:root {
  color-scheme: dark;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --base: #111516;
  --panel: #1a2021;
  --surface: #202729;
  --line: #333c3d;
  --text: #f1f4f3;
  --muted: #aeb9b8;
  --quiet: #a2aeac;
  --mint: #83e8c1;
  --mint-ink: #10241d;
  --amber: #ffd48c;
  --rose: #ffa8a8;
  background: var(--base);
  color: var(--text);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-width: 280px;
  min-height: 100vh;
  background: radial-gradient(ellipse 44rem 28rem at 51% 7%, #1c2b27 0%, #151c1a 49%, transparent 100%);
}
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .7; }
a { color: var(--mint); }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
.wrap { width: min(100% - 3rem, 1088px); margin-inline: auto; }
.skip { position: fixed; inset: .5rem auto auto .5rem; z-index: 3; background: var(--base); padding: .7rem; transform: translateY(-160%); }
.skip:focus { transform: none; }

.topbar { border-bottom: 1px solid #293231; background: #151a19e8; }
.topbar-inner, .site-footer .wrap { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; color: var(--text); text-decoration: none; font-size: 1rem; font-weight: 720; letter-spacing: -.025em; }
.beta-label { display: block; margin-top: .15rem; color: var(--mint); font-size: .77rem; font-weight: 650; letter-spacing: 0; }
.brand-icon, .section-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: #273d34; color: var(--mint); flex: 0 0 auto; }
.topbar nav { display: flex; gap: .65rem; align-items: center; }
.nav-link { min-height: 42px; border: 1px solid transparent; color: var(--muted); background: transparent; border-radius: 8px; padding: .45rem .7rem; font-size: .9rem; }
.nav-link:hover, .text-button:hover { color: var(--text); }
.nav-feedback { border-color: var(--line); padding-inline: .85rem; }

.calendar { width: 17px; height: 16px; border: 1.5px solid currentColor; border-radius: 3px; position: relative; margin-top: 2px; }
.calendar::before { content: ""; position: absolute; width: 8px; height: 5px; left: 3px; top: -4px; border-inline: 1.5px solid currentColor; }
.calendar::after { content: ""; position: absolute; border-top: 1.5px solid currentColor; inset: 4px 0 auto; }
.upload-icon { width: 18px; height: 10px; border: 1.5px solid currentColor; border-top: 0; border-radius: 0 0 3px 3px; margin-top: 9px; position: relative; }
.upload-icon::before { content: ""; width: 1.5px; height: 13px; background: currentColor; position: absolute; left: 7px; top: -8px; }
.upload-icon::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 1.5px 0 0 1.5px; transform: rotate(45deg); position: absolute; top: -8px; left: 4px; }
.lock-icon { width: 13px; height: 10px; border: 1.5px solid currentColor; border-radius: 3px; position: relative; margin-top: 4px; flex: 0 0 auto; }
.lock-icon::before { content: ""; position: absolute; width: 7px; height: 6px; border: 1.5px solid currentColor; border-bottom: 0; border-radius: 6px 6px 0 0; top: -7px; left: 1.5px; }
.file-icon { position: relative; width: 21px; height: 25px; border: 1.6px solid #93a6a0; border-radius: 4px; margin-bottom: .18rem; }
.file-icon::before { content: ""; position: absolute; width: 10px; top: 7px; left: 4px; height: 6px; border-block: 1.5px solid #93a6a0; }
.file-icon::after { content: ""; position: absolute; width: 6px; height: 1.5px; background: #93a6a0; top: 16px; left: 4px; }

.hero { text-align: center; padding: 3.6rem 0 2.6rem; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4rem); line-height: 1.04; letter-spacing: -.068em; font-weight: 780; }
.hero h1 span { color: var(--mint); }
.hero p { max-width: 36rem; margin: 1rem auto 0; color: var(--muted); font-size: 1.06rem; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.25rem; }
.hero .hero-actions { justify-content: center; }
.hero-actions a { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; text-align: center; }
.beta-limitations { margin: 0 0 1.15rem; padding: .75rem 1rem; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.beta-limitations h2 { font-size: .97rem; margin-bottom: .28rem; }
.beta-limitations p { color: var(--muted); font-size: .9rem; line-height: 1.55; }

.workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 17px; padding: 1.45rem; box-shadow: 0 14px 44px #080b0b29; }
.panel-heading { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: 1.2rem; }
h2 { font-size: 1.28rem; letter-spacing: -.035em; line-height: 1.22; }
.panel-heading p { color: var(--muted); font-size: .91rem; margin-top: .24rem; line-height: 1.45; }
.sample-count { color: var(--text); }
.upload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.drop-zone { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; position: relative; cursor: pointer; min-width: 0; min-height: 123px; gap: .4rem; padding: .75rem .5rem; background: #1e2525; border: 1px dashed #566763; border-radius: 10px; }
.drop-zone:hover, .drop-zone.dragging, .drop-zone:focus-within { border-color: var(--mint); background: #25332e; }
.drop-zone.has-file { border-color: #62aa8e; }
.drop-zone strong { font-size: .91rem; }
.drop-zone input { cursor: pointer; position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; opacity: 0; }
.file-name { color: var(--mint); font-weight: 610; font-size: .86rem; max-width: 100%; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.file-hint, .field-hint { color: var(--quiet); font-size: .84rem; line-height: 1.5; }
.file-hint { margin: .58rem 0 1.15rem; }
.field-hint { margin-top: .4rem; }
.field-label { display: block; color: var(--text); font-size: .92rem; font-weight: 650; margin-bottom: .44rem; }
input:not([type=file]):not([type=checkbox]), select {
  width: 100%; color: var(--text); background: #151a1b; border: 1px solid #455051; border-radius: 8px; min-height: 45px; padding: .65rem .72rem;
}
input::placeholder { color: #8f9d9b; }
select { padding-right: 1.75rem; }
.primary, .secondary { min-height: 46px; border-radius: 9px; padding: .65rem 1.1rem; border: 1px solid transparent; font-weight: 720; letter-spacing: -.01em; line-height: 1.25; }
.primary { background: var(--mint); color: var(--mint-ink); }
.primary:hover:not(:disabled) { background: #a2f5d4; }
.secondary { border-color: #465451; background: #242d2b; color: var(--text); }
.secondary:hover:not(:disabled) { border-color: var(--mint); }
.full { width: 100%; margin-top: 1rem; }
.text-button { color: var(--mint); border: 0; background: transparent; padding: .3rem 0; font-weight: 630; }
.feedback-message { color: var(--mint); margin-top: .65rem; line-height: 1.4; font-size: .9rem; }
.feedback-message:empty { display: none; }
.feedback-message.error { color: var(--rose); }
.workflow { display: flex; flex-wrap: wrap; gap: .35rem 1.6rem; padding-inline-start: 1.25rem; margin: 0 0 1rem; color: var(--muted); font-size: .88rem; }
.workflow li::marker { color: var(--mint); font-weight: 700; }
.upload-choice { min-width: 0; }
.camera-choice { display: none; position: relative; place-items: center; margin-top: .45rem; min-height: 44px; font-size: .88rem; color: var(--mint); border: 1px solid var(--line); border-radius: 8px; }
.camera-choice input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.camera-choice:focus-within { outline: 2px solid var(--mint); }
@media (pointer: coarse), (max-width: 650px) { .camera-choice { display: grid; } }

.changes-stack { display: grid; gap: .65rem; }
.change-card { border: 1px solid #374141; border-radius: 11px; background: #1d2425; padding: .8rem 1rem .85rem; }
.change-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .35rem .65rem; }
.change-header h3 { font-size: 1rem; letter-spacing: -.018em; }
.change-header h3 span { color: var(--muted); font-weight: 500; }
.badge { border: 1px solid; border-radius: 6px; padding: .18rem .42rem; font-size: .79rem; font-weight: 670; white-space: nowrap; }
.badge.changed { color: var(--amber); background: #372e20; border-color: #5e4a2e; }
.badge.added { color: var(--mint); background: #263a31; border-color: #385747; }
.badge.uncertain { color: var(--amber); background: #2c2720; border-color: #645541; }
.badge.removed { color: var(--rose); background: #392a2b; border-color: #624244; }
.shift-pair { display: grid; grid-template-columns: minmax(0, 1fr) 2rem minmax(0, 1fr); align-items: center; margin-top: .63rem; }
.shift-label { font-size: .82rem; color: var(--quiet); margin-bottom: .18rem; display: block; }
.shift-old, .shift-new { font-variant-numeric: tabular-nums; font-size: .98rem; line-height: 1.4; }
.shift-old { color: #b7c2bf; }
.shift-new { color: var(--text); font-weight: 690; }
.pair-arrow { color: #a1b7ae; align-self: end; margin-bottom: .04rem; }
.change-details { color: var(--muted); font-size: .85rem; margin-top: .66rem; line-height: 1.5; }
.sample-downloads { margin-top: .9rem; font-size: .9rem; color: var(--muted); }
.sample-downloads summary { cursor: pointer; width: fit-content; }
.sample-downloads div { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-top: .65rem; }

.privacy-note { display: flex; flex-wrap: wrap; align-items: center; gap: .38rem .65rem; margin: 1.1rem 0 2rem; font-size: .88rem; color: var(--muted); line-height: 1.45; }
.privacy-note .lock-icon { color: var(--mint); }
.site-footer { border-top: 1px solid #2a3332; color: var(--quiet); font-size: .84rem; }
.site-footer .wrap { min-height: 55px; }

.search-page { max-width: 980px; }
.search-tool-link { font-size: .88rem; white-space: nowrap; }
.search-hero { padding: clamp(2.5rem, 7vw, 5rem) 0 2rem; border-bottom: 1px solid var(--line); }
.search-hero h1 { max-width: 20ch; font-size: clamp(2.4rem, 5.8vw, 4.3rem); line-height: 1.04; letter-spacing: -.059em; text-wrap: balance; }
.search-hero p { max-width: 58ch; margin-top: 1rem; color: var(--muted); font-size: 1.08rem; line-height: 1.65; }
.search-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  grid-template-areas: "preparation example" "steps formats" "questions formats";
  gap: 1.75rem 2rem;
  align-items: start;
  padding-block: 2rem;
}
.search-preparation { grid-area: preparation; }
.search-example { grid-area: example; }
.search-steps { grid-area: steps; }
.search-formats { grid-area: formats; }
.search-questions { grid-area: questions; }
.search-layout :is(p, ol) { color: var(--muted); line-height: 1.65; margin-top: .65rem; }
.search-layout ol { padding-inline-start: 1.35rem; }
.search-layout li { margin-bottom: .55rem; }
.search-layout li::marker { color: var(--mint); }
.search-example table { width: 100%; table-layout: fixed; border-collapse: collapse; margin-top: .7rem; text-align: left; }
.search-example caption { color: var(--quiet); text-align: left; font-size: .84rem; margin-bottom: .35rem; }
.search-example :is(th, td) { font-size: .88rem; padding: .6rem .28rem; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.search-example thead th { color: var(--quiet); font-size: .82rem; }
.search-example td:last-child { color: var(--mint); }
.search-questions details { margin-top: .65rem; border-bottom: 1px solid var(--line); padding-bottom: .65rem; }
.search-questions summary { padding-block: .25rem; cursor: pointer; font-weight: 650; }
.search-questions details p { margin: .35rem 0 .25rem; }
.search-links { border-top: 1px solid var(--line); padding: 1.25rem 0 2rem; }
.search-links ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .25rem 1.5rem; margin: .7rem 0 0; padding: 0; list-style: none; }
.search-links a { display: inline-block; padding: .47rem 0; text-underline-offset: .2em; }

.activity { margin: 2.5rem auto 3.5rem; }
.activity-title { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.1; letter-spacing: -.055em; margin-top: .35rem; }
.activity-intro { color: var(--muted); margin: .7rem 0 1.25rem; line-height: 1.55; }
.review-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.review-panel > .field-hint { margin-bottom: 1rem; }
.review-banner { border: 1px solid #5e4a2e; color: var(--amber); background: #332b20; padding: .6rem .7rem; border-radius: 8px; margin: .75rem 0; font-size: .9rem; line-height: 1.5; }
.review-row { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; margin-bottom: .6rem; padding: .72rem; min-width: 0; }
.review-row legend { font-size: .88rem; color: var(--muted); padding: 0 .3rem; }
.review-row.needs-check, .review-row.needs-check legend { border-color: #836641; color: var(--amber); }
.row-fields { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.row-fields .field-label { font-size: .83rem; }
.row-fields input { min-width: 0; }
.source-text { color: var(--muted); overflow-wrap: anywhere; font-size: .83rem; margin: .6rem 0 .15rem; line-height: 1.35; }
.remove-row { color: var(--rose); font-size: .86rem; }
.review-period { border: 1px solid var(--line); border-radius: 8px; margin: .7rem 0 1rem; padding: .65rem; min-width: 0; }
.review-period legend { color: var(--muted); padding-inline: .27rem; }
.review-confirm { margin-top: 1rem; }
.check-line { display: flex; align-items: flex-start; gap: .65rem; margin-bottom: .85rem; line-height: 1.5; }
input[type=checkbox] { width: 18px; height: 18px; flex: 0 0 auto; margin-top: .2rem; accent-color: var(--mint); }
.result-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; }
.results { max-width: 780px; }
.result-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .15rem 1rem; }
.result-heading .activity-intro { margin-bottom: .85rem; }
.totals { margin-top: .55rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.total-box { border: 1px solid var(--line); border-radius: 10px; background: var(--panel); padding: .72rem .85rem; }
.total-box span { display: block; color: var(--muted); font-size: .85rem; margin-bottom: .25rem; }
.total-box strong { font-size: 1.14rem; line-height: 1.3; }
.shift-summary { grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); }
#result-uncertainty:empty { display: none; }
.totals-hint { margin: .55rem 0 1rem; }
.result-empty { color: var(--muted); }
.results-feedback { display: flex; justify-content: space-between; align-items: center; gap: .65rem 1rem; flex-wrap: wrap; padding-top: 1.2rem; margin-top: 1.25rem; border-top: 1px solid var(--line); color: var(--muted); }

dialog { max-width: min(100% - 1.6rem, 470px); width: 100%; max-height: 88vh; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 15px; padding: 1.2rem; }
dialog::backdrop { background: #070b0cba; }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: .55rem; }
dialog > p { font-size: .95rem; line-height: 1.57; color: var(--muted); margin-bottom: .75rem; }
.close-button { display: block; background: var(--surface); border: 1px solid var(--line); color: var(--text); width: 40px; height: 40px; font-size: 1.4rem; border-radius: 8px; }
#feedback-form select { margin-bottom: .66rem; }
.noscript { margin: 1rem 0; }

@media (max-width: 760px) {
  .wrap { width: calc(100% - 2rem); }
  .hero { padding: 2.6rem 0 1.8rem; }
  .workspace, .review-grid { grid-template-columns: minmax(0, 1fr); gap: .9rem; }
  .topbar-inner { min-height: 63px; }
  .panel { padding: 1.05rem; }
  .activity { margin-top: 1.45rem; }
  .privacy-note { column-gap: .6rem; }
  .search-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "preparation" "example" "steps" "formats" "questions";
  }
}
@media (max-width: 440px) {
  .wrap { width: calc(100% - 1.35rem); }
  .brand { font-size: .91rem; gap: .45rem; }
  .brand-icon { width: 32px; height: 32px; border-radius: 8px; }
  .topbar-inner { gap: .25rem; }
  .topbar nav { gap: .1rem; }
  .nav-link { font-size: .79rem; padding-inline: .35rem; }
  .topbar nav .nav-link:not(.nav-feedback) { display: none; }
  .hero h1 { font-size: clamp(2rem, 8.7vw, 2.9rem); }
  .hero p { font-size: 1rem; }
  .change-card { padding-inline: .68rem; }
  .shift-pair { grid-template-columns: minmax(0, 1fr) 1.55rem minmax(0, 1fr); }
  .total-box { padding-inline: .5rem; }
  .hero-actions > * { width: 100%; }
  .search-links ul { grid-template-columns: minmax(0, 1fr); }
}
