:root {
  --forest: #173d2b;
  --forest-deep: #0d2e1e;
  --forest-mid: #2f5b45;
  --mint: #dff7e8;
  --mint-bright: #b3f1c9;
  --paper: #fff;
  --surface: #f4f7f2;
  --ink: #152019;
  --muted: #68756c;
  --line: #dce4dd;
  --rust: #a45734;
  --danger: #a13d32;
  --shadow: 0 26px 80px rgba(22, 56, 39, .11);
}

* { box-sizing: border-box; }
html { min-width: 320px; }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: Inter, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
a { color: inherit; }

.topbar { align-items: center; background: rgba(255,255,255,.92); border-bottom: 1px solid rgba(47,91,69,.12); display: flex; height: 74px; justify-content: space-between; padding: 0 clamp(20px,6vw,88px); position: relative; z-index: 20; }
.brand { align-items: center; display: inline-flex; font-size: 18px; font-weight: 850; gap: 10px; letter-spacing: -.03em; text-decoration: none; }
.brand > span:first-child { align-items: center; background: var(--forest); border-radius: 9px; color: white; display: inline-flex; font-size: 11px; height: 34px; justify-content: center; letter-spacing: -.08em; width: 34px; }
.topbar nav { align-items: center; display: flex; gap: 23px; }
.topbar nav a, .link-button { color: #45544b; font-size: 13px; font-weight: 720; text-decoration: none; }
.nav-link { position: relative; }
.nav-link:hover { color: var(--forest); }
.topbar form { margin: 0; }
.link-button { background: none; border: 0; cursor: pointer; padding: 0; }
.language { border: 1px solid var(--line); border-radius: 999px; padding: 7px 10px; }
.user-chip { align-items: center; color: var(--muted); display: inline-flex; font-size: 11px; gap: 8px; max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip > span { align-items: center; background: var(--mint); border-radius: 50%; color: var(--forest); display: inline-flex; flex: 0 0 auto; font-weight: 850; height: 29px; justify-content: center; width: 29px; }
.mobile-menu { display: none; }

.shell { margin: 0 auto; max-width: 1220px; min-height: calc(100vh - 152px); padding: 68px 28px 110px; }
.account-footer { align-items: center; border-top: 1px solid var(--line); color: #7b887e; display: flex; font-size: 11px; justify-content: space-between; margin: 0 clamp(20px,6vw,88px); padding: 26px 0; }
.account-footer a { color: var(--forest-mid); font-weight: 750; text-decoration: none; }

h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(46px,6vw,72px); font-weight: 760; letter-spacing: -.065em; line-height: .98; }
h2 { font-size: 29px; letter-spacing: -.04em; }
.eyebrow { color: var(--forest-mid); font-size: 11px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.back-link { color: var(--forest-mid); font-size: 12px; font-weight: 780; text-decoration: none; }
.page-back { display: inline-block; margin-bottom: 34px; }
.button { align-items: center; background: var(--forest); border: 1px solid var(--forest); border-radius: 13px; color: white; cursor: pointer; display: inline-flex; font-size: 13px; font-weight: 820; gap: 20px; justify-content: center; min-height: 50px; padding: 0 20px; text-decoration: none; transition: box-shadow .16s ease, transform .16s ease; }
.button:hover { box-shadow: 0 12px 30px rgba(23,61,43,.2); transform: translateY(-1px); }
.button.compact { min-height: 38px; }
.button.full { justify-content: space-between; width: 100%; }
.message { align-items: center; background: var(--mint); border: 1px solid rgba(47,91,69,.13); border-radius: 13px; display: flex; font-size: 13px; gap: 10px; margin-bottom: 24px; padding: 14px 18px; }
.message > span { align-items: center; background: var(--forest); border-radius: 50%; color: white; display: inline-flex; height: 21px; justify-content: center; width: 21px; }

/* Authentication */
.auth-page { background: var(--forest-deep); }
.auth-page .topbar { background: var(--forest-deep); border-color: rgba(255,255,255,.1); color: white; }
.auth-page .brand > span:first-child { background: var(--mint-bright); color: var(--forest); }
.auth-page .topbar nav a, .auth-page .link-button { color: #c5d6ca; }
.auth-page .language { border-color: rgba(255,255,255,.18); }
.auth-page .shell { max-width: 1440px; padding-bottom: 78px; padding-top: 48px; }
.auth-page .account-footer { border-color: rgba(255,255,255,.1); color: #718a79; }
.auth-page .account-footer a { color: #b8cec0; }
.auth-layout { background: var(--paper); border-radius: 28px; box-shadow: 0 34px 100px rgba(0,0,0,.28); display: grid; grid-template-columns: minmax(0,1.08fr) minmax(430px,.92fr); margin: 0 auto; max-width: 1210px; min-height: 680px; overflow: hidden; }
.auth-story { background: radial-gradient(circle at 90% 15%, rgba(179,241,201,.12), transparent 31%), linear-gradient(150deg, var(--forest-deep), var(--forest)); color: white; display: flex; flex-direction: column; justify-content: center; padding: clamp(48px,7vw,92px); position: relative; }
.auth-story::after { border: 1px solid rgba(179,241,201,.13); border-radius: 50%; content: ""; height: 420px; position: absolute; right: -180px; top: -150px; width: 420px; }
.auth-story h1 { font-size: clamp(46px,5.2vw,72px); margin: 28px 0; max-width: 680px; }
.auth-story > p { color: #bdd0c3; font-size: 16px; line-height: 1.7; max-width: 560px; }
.story-badge { align-self: flex-start; background: rgba(179,241,201,.13); border: 1px solid rgba(179,241,201,.24); border-radius: 999px; color: var(--mint-bright); font-size: 10px; font-weight: 850; letter-spacing: .12em; padding: 9px 13px; text-transform: uppercase; }
.story-points { border-top: 1px solid rgba(255,255,255,.12); display: grid; gap: 17px; margin-top: 44px; padding-top: 27px; }
.story-points span { color: #769582; display: grid; font-size: 10px; gap: 3px; grid-template-columns: 34px 1fr; }
.story-points b { color: #eaf5ed; font-size: 12px; }
.privacy-seal { align-items: center; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 18px; display: flex; gap: 18px; margin-top: 48px; max-width: 460px; padding: 20px; }
.privacy-seal > span { align-items: center; background: var(--mint-bright); border-radius: 50%; color: var(--forest); display: flex; font-size: 24px; height: 50px; justify-content: center; width: 50px; }
.privacy-seal div { display: grid; gap: 5px; }
.privacy-seal small { color: #a9c0b0; line-height: 1.4; }
.auth-card { align-self: center; background: white; margin: 0 auto; max-width: 500px; padding: 58px clamp(34px,5vw,72px); width: 100%; }
.auth-card h2 { font-size: 42px; margin: 9px 0 16px; }
.auth-card > p:not(.eyebrow) { color: var(--muted); font-size: 14px; line-height: 1.6; }
.register-card { padding-bottom: 38px; padding-top: 38px; }
.register-card h2 { font-size: 36px; }
.stack { display: grid; gap: 17px; margin-top: 29px; }
.stack > label, .form-grid > label { color: #35443a; display: grid; font-size: 12px; font-weight: 780; gap: 7px; }
.stack input, .stack select, .stack textarea, .form-grid input, .form-grid textarea { background: #fbfcfa; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); min-height: 47px; outline: none; padding: 11px 13px; transition: border-color .15s, box-shadow .15s; width: 100%; }
.stack input:focus, .stack select:focus, .stack textarea:focus, .form-grid input:focus, .form-grid textarea:focus { border-color: var(--forest-mid); box-shadow: 0 0 0 3px rgba(47,91,69,.1); }
.stack small { color: #859188; font-size: 10px; font-weight: 500; line-height: 1.45; }
.label-row { display: flex; justify-content: space-between; }
.label-row a { color: var(--forest-mid); font-weight: 750; text-decoration: none; }
.password-field { display: flex; position: relative; }
.password-field button { background: transparent; border: 0; color: var(--forest-mid); cursor: pointer; position: absolute; right: 10px; top: 12px; }
.errorlist { color: var(--danger); font-size: 11px; font-weight: 600; list-style: none; margin: 0; padding: 0; }
.form-alert { background: #fbecea; border: 1px solid #ebc8c3; border-radius: 10px; color: var(--danger); font-size: 12px; padding: 12px 14px; }
.auth-switch { border-top: 1px solid var(--line); color: var(--muted); display: flex; font-size: 12px; gap: 7px; justify-content: center; margin-top: 26px; padding-top: 22px; }
.auth-switch a { color: var(--forest-mid); font-weight: 800; }
.simple-auth .shell { align-items: center; display: flex; justify-content: center; }
.recovery-card { border-radius: 24px; box-shadow: var(--shadow); max-width: 520px; padding: 48px; }
.recovery-card.centered { text-align: center; }
.recovery-icon { align-items: center; background: var(--mint); border-radius: 16px; color: var(--forest); display: flex; font-size: 24px; height: 58px; justify-content: center; margin: 32px 0 24px; width: 58px; }
.centered .recovery-icon { margin-left: auto; margin-right: auto; }
.success-icon { background: var(--forest); color: white; }

/* Dashboard */
.page-head { align-items: flex-end; display: flex; gap: 40px; justify-content: space-between; margin-bottom: 46px; }
.page-head h1 { margin: 10px 0 18px; }
.page-head p:last-child { color: var(--muted); font-size: 16px; line-height: 1.65; margin-bottom: 0; max-width: 650px; }
.primary-action { flex: 0 0 auto; margin-bottom: 8px; }
.page-actions, .empty-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; }
.secondary-action { background: white; color: var(--forest); }
.primary-action > span { font-size: 20px; font-weight: 400; }
.overview-grid { display: grid; gap: 14px; grid-template-columns: 1.7fr .65fr .65fr; margin-bottom: 58px; }
.storage-card, .metric-card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; min-height: 138px; padding: 23px; }
.card-top { align-items: center; color: var(--muted); display: grid; font-size: 12px; font-weight: 720; gap: 10px; grid-template-columns: auto 1fr auto; }
.card-top strong { color: var(--forest); }
.metric-icon { align-items: center; background: var(--mint); border-radius: 10px; color: var(--forest); display: inline-flex; font-size: 18px; height: 36px; justify-content: center; width: 36px; }
.storage-track { background: #e8ede9; border-radius: 999px; height: 7px; margin: 22px 0 12px; overflow: hidden; }
.storage-track span { background: var(--forest-mid); border-radius: inherit; display: block; height: 100%; min-width: 3px; }
.storage-meta { color: var(--muted); display: flex; font-size: 11px; justify-content: space-between; }
.storage-meta b { color: var(--ink); }
.metric-card { align-items: center; display: flex; gap: 17px; }
.metric-card div { display: grid; gap: 4px; }
.metric-card b { font-size: 28px; letter-spacing: -.04em; }
.metric-card div span { color: var(--muted); font-size: 10px; line-height: 1.35; }
.ready-icon { background: #edf7f0; }
.section-bar { align-items: center; display: flex; justify-content: space-between; margin-bottom: 18px; }
.section-bar > div { align-items: baseline; display: flex; gap: 12px; }
.section-bar h2 { font-size: 26px; margin: 0; }
.section-bar span { color: var(--muted); font-size: 11px; }
.section-bar > a { color: var(--forest-mid); font-size: 12px; font-weight: 780; text-decoration: none; }
.map-list { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.map-row { align-items: center; color: var(--ink); display: grid; gap: 18px; grid-template-columns: 58px minmax(180px,1fr) 150px 100px 24px; min-height: 90px; padding: 14px 22px; text-decoration: none; transition: background .15s; }
.map-row + .map-row { border-top: 1px solid var(--line); }
.map-row:hover { background: #f9fbf8; }
.map-thumb { align-items: center; background: linear-gradient(145deg,#dceadd,#bcd5c1); border-radius: 12px; color: var(--forest); display: flex; font-size: 10px; font-weight: 900; height: 58px; justify-content: center; overflow: hidden; position: relative; width: 58px; }
.map-thumb::before, .map-thumb i { border: 1px solid rgba(47,91,69,.3); border-radius: 50%; content: ""; height: 54px; left: -20px; position: absolute; top: 18px; width: 54px; }
.map-thumb i { height: 35px; left: 30px; top: -12px; width: 35px; }
.map-primary, .map-size { display: grid; gap: 7px; }
.map-primary strong { font-size: 14px; }
.map-primary span, .map-size span { color: var(--muted); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status { align-items: center; background: #eef1ee; border-radius: 999px; color: #637067; display: inline-flex; font-size: 10px; font-weight: 800; gap: 7px; padding: 7px 10px; }
.status i { background: currentColor; border-radius: 50%; height: 5px; width: 5px; }
.status.ready { background: var(--mint); color: #245e3e; }
.status.processing, .status.pending { background: #fff1da; color: #8b6020; }
.status.invalid, .status.failed { background: #f8e4e1; color: var(--danger); }
.map-size { text-align: right; }
.map-size strong { font-size: 12px; }
.row-arrow { color: #859188; }
.empty { background: var(--paper); border: 1px dashed #b9c8bd; border-radius: 22px; padding: 60px 24px; text-align: center; }
.empty h2 { font-size: 30px; margin-bottom: 12px; }
.empty > p:not(.eyebrow) { color: var(--muted); line-height: 1.6; margin: 0 auto 24px; max-width: 520px; }
.empty small { color: var(--muted); display: block; font-size: 10px; margin-top: 15px; }
.empty-visual { align-items: center; background: var(--mint); border-radius: 50%; color: var(--forest); display: flex; font-size: 24px; height: 80px; justify-content: center; margin: 0 auto 24px; overflow: hidden; position: relative; width: 80px; }
.empty-visual i { border: 1px solid rgba(47,91,69,.28); border-radius: 50%; height: 55px; position: absolute; right: -30px; width: 55px; }
.empty-visual i:last-child { bottom: -34px; left: -5px; }

/* Upload */
.upload-layout { display: grid; gap: clamp(48px,8vw,110px); grid-template-columns: minmax(0,1fr) 340px; }
.upload-layout h1 { margin: 12px 0 20px; max-width: 700px; }
.page-lead { color: var(--muted); font-size: 16px; line-height: 1.7; max-width: 680px; }
.upload-form { display: grid; gap: 24px; margin-top: 34px; }
.drop-zone { align-items: center; background: rgba(223,247,232,.38); border: 1.5px dashed #8eac99; border-radius: 20px; cursor: pointer; display: flex; flex-direction: column; min-height: 250px; padding: 35px; text-align: center; transition: background .15s, border-color .15s; }
.drop-zone:hover, .drop-zone.dragging { background: var(--mint); border-color: var(--forest-mid); }
.drop-zone.has-file { background: var(--mint); border-color: var(--forest); border-style: solid; }
.drop-zone.has-error { background: #fff3f0; border-color: #b84a3a; }
.drop-zone input { height: 1px; opacity: 0; position: absolute; width: 1px; }
.upload-symbol { align-items: center; background: var(--forest); border-radius: 13px; color: white; display: flex; font-size: 24px; height: 52px; justify-content: center; margin-bottom: 20px; width: 52px; }
.drop-zone b { font-size: 17px; }
.drop-zone > span:not(.upload-symbol) { color: var(--muted); font-size: 12px; margin-top: 6px; }
.drop-zone small { color: #89968d; font-size: 10px; margin-top: 20px; }
.file-selection { background: var(--mint); border-radius: 10px; color: var(--forest); font-size: 12px; margin: -12px 0 0; padding: 10px 14px; }
.file-selection.error { background: #fff3f0; color: #9b3025; }
.bbox-grid { display: grid; gap: 12px; grid-template-columns: repeat(4,1fr); }
.bbox-grid label, .wide-field { color: #35443a; display: grid; font-size: 12px; font-weight: 780; gap: 7px; }
.bbox-grid input, .wide-field textarea { background: #fbfcfa; border: 1px solid var(--line); border-radius: 11px; min-height: 47px; padding: 11px 13px; width: 100%; }
.wide-field textarea { min-height: 90px; resize: vertical; }
.generation-state { color: var(--forest-mid) !important; font-size: 11px; font-weight: 750; margin: 12px 0 0 !important; }
.generation-layout { grid-template-columns: minmax(0,1fr) 300px; }
.region-picker-shell { background: #dfe9df; border: 1px solid #cbd8cd; border-radius: 20px; box-shadow: 0 18px 50px rgba(23,61,43,.1); min-height: 470px; overflow: hidden; position: relative; }
.region-picker-map { height: 470px; width: 100%; }
.region-picker-map.unavailable { align-items: center; color: var(--muted); display: flex; font-size: 13px; justify-content: center; padding: 30px; text-align: center; }
.region-selection-frame { border: 3px solid var(--forest); border-radius: 13px; box-shadow: 0 0 0 999px rgba(13,46,30,.2), inset 0 0 0 1px rgba(255,255,255,.8); inset: 12%; pointer-events: none; position: absolute; z-index: 500; }
.region-selection-frame > span { background: var(--mint-bright); border: 2px solid white; border-radius: 50%; height: 11px; position: absolute; width: 11px; }
.region-selection-frame > span:nth-child(1) { left: -7px; top: -7px; }
.region-selection-frame > span:nth-child(2) { right: -7px; top: -7px; }
.region-selection-frame > span:nth-child(3) { bottom: -7px; right: -7px; }
.region-selection-frame > span:nth-child(4) { bottom: -7px; left: -7px; }
.region-location-button { align-items: center; background: white; border: 1px solid rgba(23,61,43,.2); border-radius: 9px; box-shadow: 0 3px 14px rgba(23,61,43,.16); color: var(--forest); cursor: pointer; display: flex; font-size: 21px; height: 36px; justify-content: center; left: 12px; position: absolute; top: 12px; width: 36px; z-index: 600; }
.region-summary { align-items: center; background: var(--mint); border: 1px solid #c8e4d1; border-radius: 14px; display: flex; gap: 13px; padding: 14px 16px; }
.region-summary-icon { align-items: center; background: var(--forest); border-radius: 50%; color: white; display: flex; flex: 0 0 auto; font-size: 10px; height: 26px; justify-content: center; width: 26px; }
.region-summary > div { display: grid; gap: 3px; }
.region-summary b { font-size: 12px; }
.region-summary small { color: var(--forest-mid); font-size: 10px; }
.region-summary.is-error { background: #fff3f0; border-color: #eccbc5; }
.region-summary.is-error .region-summary-icon { background: var(--danger); }
.region-summary.is-error small { color: var(--danger); }
.coordinate-details { border: 1px solid var(--line); border-radius: 13px; padding: 14px 16px; }
.coordinate-details summary { color: var(--forest-mid); cursor: pointer; font-size: 11px; font-weight: 800; }
.coordinate-details > p { color: var(--muted); font-size: 10px; margin: 12px 0; }
.coordinate-details .bbox-grid { margin-top: 14px; }
.generation-form .button:disabled { box-shadow: none; cursor: not-allowed; opacity: .45; transform: none; }
.form-grid { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.form-grid textarea { min-height: 90px; resize: vertical; }
.upload-aside { align-self: start; background: var(--forest); border-radius: 22px; color: white; margin-top: 58px; padding: 30px; }
.upload-aside h3 { font-size: 20px; margin-bottom: 28px; }
.upload-aside ol { display: grid; gap: 24px; list-style: none; margin: 0; padding: 0; }
.upload-aside li { display: grid; gap: 13px; grid-template-columns: 30px 1fr; }
.upload-aside li > span { align-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; color: var(--mint-bright); display: flex; font-size: 10px; height: 28px; justify-content: center; width: 28px; }
.upload-aside li b { font-size: 12px; }
.upload-aside li p { color: #a9c0b0; font-size: 11px; line-height: 1.5; margin: 5px 0 0; }
.aside-note { align-items: flex-start; background: rgba(255,255,255,.08); border-radius: 14px; display: flex; gap: 12px; margin-top: 30px; padding: 16px; }
.aside-note > span { color: var(--mint-bright); font-size: 20px; }
.aside-note p { color: #b7c9bd; font-size: 10px; line-height: 1.55; margin: 0; }
.aside-note b { color: white; }

/* Detail */
.detail-hero { align-items: center; background: linear-gradient(130deg,#eef5ed,#e2eee4); border: 1px solid #d3e0d5; border-radius: 24px; display: grid; gap: 30px; grid-template-columns: 140px 1fr auto; margin-bottom: 28px; overflow: hidden; padding: 36px; }
.detail-map-art { align-items: center; background: linear-gradient(150deg,#b8d2bd,#ddecdf); border-radius: 20px; color: var(--forest); display: flex; font-size: 17px; font-weight: 900; height: 130px; justify-content: center; overflow: hidden; position: relative; width: 130px; }
.detail-map-art i { border: 1px solid rgba(47,91,69,.28); border-radius: 50%; height: 90px; position: absolute; right: -45px; top: -20px; width: 90px; }
.detail-map-art i:nth-child(2) { bottom: -50px; left: -25px; top: auto; }
.detail-map-art i:nth-child(3) { height: 44px; left: 20px; top: 12px; width: 44px; }
.detail-title h1 { font-size: clamp(38px,5vw,60px); margin: 16px 0 12px; }
.detail-title > p { color: var(--muted); margin-bottom: 16px; }
.detail-facts { color: var(--muted); display: flex; font-size: 10px; gap: 22px; }
.detail-facts span + span::before { color: #a7b3aa; content: "·"; margin-right: 22px; }
.detail-grid { display: grid; gap: 22px; grid-template-columns: 1fr 300px; }
.detail-panel, .danger-panel { background: white; border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.panel-head { align-items: center; display: flex; justify-content: space-between; }
.panel-head h2 { font-size: 22px; margin: 0; }
.panel-head span { color: var(--forest-mid); font-size: 10px; font-weight: 750; }
.metadata { display: grid; gap: 1px; grid-template-columns: repeat(2,minmax(0,1fr)); margin: 24px 0 0; }
.metadata div { border-top: 1px solid var(--line); min-width: 0; padding: 17px 0; }
.metadata div:nth-child(odd) { padding-right: 24px; }
.metadata dt { color: var(--muted); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.metadata dd { font-size: 12px; margin: 7px 0 0; overflow-wrap: anywhere; }
.metadata .wide-meta { grid-column: 1 / -1; padding-right: 0; }
.mono { font-family: ui-monospace, SFMono-Regular, monospace; font-size: 10px !important; }
.danger-panel h3 { font-size: 18px; }
.danger-panel p { color: var(--muted); font-size: 11px; line-height: 1.65; margin-bottom: 24px; }
.danger { background: white; border: 1px solid #ddb8b3; border-radius: 10px; color: var(--danger); cursor: pointer; font-size: 11px; font-weight: 800; min-height: 42px; padding: 0 15px; }

@media (max-width: 960px) {
  .user-chip { display: none; }
  .auth-layout { grid-template-columns: 1fr; }
  .auth-story { min-height: 470px; }
  .auth-card { max-width: 620px; padding-bottom: 60px; padding-top: 60px; }
  .overview-grid { grid-template-columns: 1fr 1fr; }
  .storage-card { grid-column: 1 / -1; }
  .upload-layout { grid-template-columns: 1fr; }
  .upload-aside { margin-top: 0; }
  .detail-grid { grid-template-columns: 1fr; }
  .map-row { grid-template-columns: 58px 1fr 130px 24px; }
  .map-size { display: none; }
}

@media (max-width: 700px) {
  .topbar { height: 66px; padding: 0 16px; }
  .mobile-menu { background: transparent; border: 1px solid var(--line); border-radius: 9px; color: inherit; display: block; height: 36px; width: 40px; }
  .topbar nav { align-items: stretch; background: white; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); display: none; flex-direction: column; gap: 15px; padding: 20px; position: absolute; right: 16px; top: 58px; width: 230px; }
  .topbar nav.open { display: flex; }
  .auth-page .topbar nav { background: var(--forest); border-color: rgba(255,255,255,.1); }
  .topbar nav .user-chip { display: flex; }
  .shell { padding: 42px 17px 75px; }
  .account-footer { margin: 0 17px; }
  .auth-page .shell { padding: 20px 12px 55px; }
  .auth-layout { border-radius: 20px; }
  .auth-story { min-height: 410px; padding: 38px 26px; }
  .auth-story h1 { font-size: 42px; }
  .auth-card, .recovery-card { padding: 38px 24px; }
  .auth-card h2 { font-size: 34px; }
  .page-head { align-items: flex-start; flex-direction: column; margin-bottom: 32px; }
  .page-head h1 { font-size: 50px; }
  .overview-grid { grid-template-columns: 1fr 1fr; margin-bottom: 42px; }
  .metric-card { align-items: flex-start; flex-direction: column; }
  .section-bar > a { display: none; }
  .map-row { gap: 12px; grid-template-columns: 50px minmax(0,1fr) 24px; padding: 14px; }
  .map-thumb { height: 50px; width: 50px; }
  .map-status-cell { grid-column: 2; }
  .map-row > .row-arrow { grid-column: 3; grid-row: 1 / 3; }
  .form-grid { grid-template-columns: 1fr; }
  .bbox-grid { grid-template-columns: 1fr 1fr; }
  .region-picker-shell { min-height: 390px; }
  .region-picker-map { height: 390px; }
  .drop-zone { min-height: 220px; padding: 25px 18px; }
  .upload-aside { padding: 24px; }
  .detail-hero { align-items: flex-start; grid-template-columns: 90px 1fr; padding: 22px; }
  .detail-map-art { height: 85px; width: 85px; }
  .detail-actions { grid-column: 1 / -1; }
  .detail-actions .button { width: 100%; }
  .detail-facts { flex-wrap: wrap; gap: 9px 14px; }
  .detail-facts span + span::before { margin-right: 14px; }
  .metadata { grid-template-columns: 1fr; }
  .metadata .wide-meta { grid-column: auto; }
  .metadata div:nth-child(odd) { padding-right: 0; }
}

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