:root {
  color-scheme: light;
  --forest: #15370d;
  --forest-hover: #284c20;
  --sage: #728e6d;
  --gold: #e5cd82;
  --cream: #fff2b4;
  --paper: #fff9de;
  --surface: #fffdf3;
  --ink: #15370d;
  --muted: #53634b;
  --line: #d8dec4;
  --soft-sage: #e7ecd9;
  --shadow: 0 8px 32px rgb(21 55 13 / 7%);
  --float-shadow: 0 3px 16px rgb(21 55 13 / 10%);
  --sheet-height: 280px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, a { font: inherit; -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--forest); outline-offset: 4px; }
button, a { touch-action: manipulation; }
svg { display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 1000; padding: 12px 18px; border-radius: 12px; background: var(--forest); color: var(--surface); }
.skip-link:focus { top: 12px; }
.app-shell { width: min(100%, 1920px); margin-inline: auto; padding: 0 24px; }
.topbar { height: 76px; display: flex; align-items: center; gap: 36px; }
.brand { flex-shrink: 0; display: inline-flex; align-items: center; gap: 10px; color: var(--forest); text-decoration: none; font-size: 24px; line-height: 1; font-weight: 700; letter-spacing: .025em; }
.brand-mark { width: 26px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.campus-tag { color: var(--muted); font-size: 14px; white-space: nowrap; }
.campus-tag > span { margin: 0 5px; }
.topbar-right { display: flex; align-items: center; justify-content: flex-end; gap: 28px; margin-left: auto; }
.brand-motto { color: var(--muted); font-size: 14px; }
.text-button { min-height: 44px; padding: 8px 4px; border: 0; background: transparent; color: var(--muted); font-size: 13px; }
.text-button:hover { color: var(--forest); text-decoration: underline; text-underline-offset: 4px; }
.mobile-progress { display: none; }
.workspace { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; height: calc(100vh - 116px); height: calc(100svh - 116px); min-height: 620px; }
.map-panel { min-width: 0; min-height: 0; border-radius: 24px; overflow: hidden; background: var(--soft-sage); }
.map-canvas { position: relative; isolation: isolate; width: 100%; height: 100%; background: #eff0df; }
.amap-root { position: absolute; inset: 0; z-index: 0; }
.map-toolbar { position: absolute; z-index: 140; top: 24px; left: 24px; }
.campus-switch { display: flex; padding: 4px; gap: 4px; border: 1px solid rgb(21 55 13 / 5%); border-radius: 18px; background: var(--surface); box-shadow: var(--float-shadow); }
.campus-switch button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 84px; min-height: 40px; border: 0; padding: 8px 12px; border-radius: 14px; background: transparent; color: var(--muted); font-size: 14px; white-space: nowrap; transition: color .18s, background .18s; }
.campus-switch button small { font-size: 12px; font-variant-numeric: tabular-nums; }
.campus-switch button:hover:not(:disabled):not(.active) { background: var(--soft-sage); color: var(--forest); }
.campus-switch button.active { color: var(--surface); background: var(--forest); }
.campus-switch button:disabled { opacity: .65; }
.locate-button { position: absolute; z-index: 140; top: 24px; right: 24px; width: 48px; height: 48px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 16px; color: var(--forest); background: var(--surface); box-shadow: var(--float-shadow); transition: background .18s; }
.locate-button:hover { background: var(--cream); }
.locate-button:disabled { opacity: .6; }
.locate-button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.map-status { position: absolute; z-index: 150; top: 90px; left: 24px; max-width: min(420px, calc(100% - 48px)); padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--muted); box-shadow: var(--float-shadow); font-size: 14px; line-height: 1.6; }
.map-status.is-error { color: var(--forest); background: var(--cream); border-color: var(--gold); }
.awaiting-amap .map-status { top: 42%; left: 50%; width: min(380px, calc(100% - 40px)); text-align: center; transform: translate(-50%, -50%); }
.awaiting-amap .map-key { display: none; }
.map-key { position: absolute; z-index: 130; left: 24px; bottom: 32px; display: flex; flex-wrap: wrap; gap: 8px 18px; max-width: calc(100% - 48px); padding: 9px 14px; border: 1px solid rgb(21 55 13 / 7%); border-radius: 12px; background: var(--surface); box-shadow: var(--float-shadow); color: var(--muted); font-size: 12px; pointer-events: none; }
.map-key span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.key-dot { width: 9px; height: 9px; border-radius: 50%; }
.key-done { background: var(--sage); }
.key-selected { background: var(--gold); border: 1px solid #9c863e; }
.key-locked { background: transparent; border: 1.5px solid var(--forest); }
.key-area { width: 12px; height: 10px; border: 1.5px dashed var(--forest); border-radius: 2px; }
.location-strip { position: absolute; z-index: 130; left: 24px; bottom: 88px; display: flex; align-items: center; gap: 10px; max-width: calc(100% - 48px); padding: 10px 14px; border: 1px solid rgb(21 55 13 / 6%); border-radius: 14px; background: var(--surface); box-shadow: var(--float-shadow); pointer-events: none; }
.location-icon { flex: 0 0 21px; width: 21px; height: 24px; fill: none; stroke: var(--sage); stroke-width: 1.5; }
.location-message { min-width: 0; display: grid; gap: 2px; }
.location-message strong { font-size: 13px; font-weight: 600; }
.location-message small { color: var(--muted); font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.location-state { flex-shrink: 0; padding: 4px 8px; border-radius: 8px; color: var(--muted); background: var(--soft-sage); font-size: 12px; }
.location-state.is-success { color: var(--forest); background: var(--soft-sage); }
.location-state.is-error { color: var(--forest); background: var(--cream); }
.landmark-icon { display: block; width: 100%; height: 100%; fill: none; stroke: var(--forest); stroke-width: 1.15px; stroke-linejoin: round; stroke-linecap: round; }
.landmark-icon * { vector-effect: non-scaling-stroke; }
.landmark-icon .wash { fill: var(--sage); fill-opacity: .2; stroke: none; }
.landmark-icon .gold { fill: var(--gold); fill-opacity: .7; stroke: none; }
.landmark-icon .paper { fill: var(--surface); }
.is-done .landmark-icon .wash { fill-opacity: .42; }
.is-done .landmark-icon .gold { fill: var(--sage); fill-opacity: .68; }
.amap-place-pin { --marker-size: 40px; position: relative; display: grid; place-items: center; width: var(--marker-size); height: var(--marker-size); margin: 0; padding: 0; border: 1px solid rgb(21 55 13 / 20%); border-radius: 32%; background: var(--surface); color: var(--forest); white-space: nowrap; line-height: 1; transition: background-color .32s ease, color .24s ease, border-color .32s ease, box-shadow .32s ease; }
.landmark-glyph { display: block; width: calc(var(--marker-size) - 6px); height: calc(var(--marker-size) - 6px); pointer-events: none; }
.amap-place-pin.is-small .landmark-icon { stroke-width: 1px; }
.amap-place-pin.is-done { background: #e3ead6; border-color: var(--sage); }
.amap-place-pin.is-selected { background: var(--cream); border-color: var(--sage); box-shadow: inset 0 0 0 2px rgb(229 205 130 / 40%); }
.amap-place-pin.is-activating > .landmark-glyph { animation: marker-select .48s cubic-bezier(.2,.8,.2,1); }
.campus-region-canvas { pointer-events: none; }
@keyframes marker-select { 0% { transform: scale(.88); } 50% { transform: scale(1.06); } 100% { transform: scale(1); } }
.amap-place-pin:focus-visible { outline-offset: 1px; outline-width: 2px; }
.marker-label { position: absolute; visibility: hidden; width: max-content; max-width: 190px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--forest); font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif; font-size: 13px; font-weight: 600; line-height: 18px; pointer-events: none; }
.amap-place-pin.has-label .marker-label { visibility: visible; }
.amap-user-dot { width: 20px; height: 20px; border: 3px solid #fff; border-radius: 50%; background: #3679c7; box-shadow: 0 0 0 7px rgb(54 121 199 / 16%); }
.amap-user-dot span { display: block; }
.explore-panel { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 16px; padding: 24px; overflow-y: auto; overscroll-behavior: contain; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); }
.explore-overview { flex-shrink: 0; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-heading h2 { margin: 0; font-size: 23px; line-height: 1.4; letter-spacing: -.025em; }
.list-count { flex-shrink: 0; color: var(--forest); font-family: "DM Sans", system-ui, sans-serif; font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.progress-copy { margin: 10px 0 7px; color: var(--muted); font-size: 14px; }
.progress-copy b { font-weight: 500; }
.progress-track { height: 8px; overflow: hidden; border-radius: 8px; background: var(--soft-sage); }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--forest); transition: width .35s; }
.progress-caption { min-height: 18px; margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.filter-row { flex-shrink: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.filter-chip { min-height: 40px; padding: 8px 4px; border: 0; border-radius: 14px; background: transparent; color: var(--muted); font-size: 13px; white-space: nowrap; }
.filter-chip span { font-family: "DM Sans", system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.filter-chip:hover:not(.active) { background: var(--soft-sage); }
.filter-chip.active { background: var(--forest); color: var(--surface); }
.place-list { min-height: 64px; flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #c1cbb4 transparent; }
.place-list::-webkit-scrollbar { width: 5px; }
.place-list::-webkit-scrollbar-thumb { background: #c1cbb4; border-radius: 5px; }
.place-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) 20px; align-items: center; gap: 10px; width: 100%; min-height: 68px; margin: 0 0 4px; padding: 12px; border: 0; border-radius: 16px; background: transparent; text-align: left; transition: background .15s; }
.place-row:hover { background: var(--soft-sage); }
.place-row.is-selected { background: var(--cream); }
.place-sketch { display: grid; place-items: center; width: 38px; height: 38px; padding: 2px; border-radius: 12px; background: var(--paper); }
.place-row.is-selected .place-sketch { background: var(--cream); }
.place-row.is-done .place-sketch { background: #e3ead6; }
.place-meta { min-width: 0; display: grid; gap: 4px; }
.place-name { font-size: 14px; font-weight: 600; line-height: 1.45; }
.place-category { color: var(--muted); font-size: 12px; line-height: 1.4; }
.place-status { display: grid; place-items: center; width: 18px; height: 18px; border: 1px solid var(--line); border-radius: 50%; font-size: 12px; color: transparent; }
.place-row.is-done .place-status { background: var(--forest); color: var(--surface); border-color: var(--forest); }
.empty-filter { padding: 28px 12px; color: var(--muted); font-size: 14px; line-height: 1.7; text-align: center; }
.selected-card { flex-shrink: 0; padding: 18px 16px 12px; border-radius: 18px; background: var(--paper); }
.sheet-handle { display: none; }
.detail-overline { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-bottom: 8px; color: var(--muted); font-size: 12px; }
.detail-title { margin: 0 0 8px; font-size: 23px; font-weight: 700; line-height: 1.4; letter-spacing: -.025em; }
.detail-copy { margin: 0 0 14px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.detail-actions { display: grid; gap: 4px; }
.checkin-button { width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 9px; padding: 12px 16px; border: 0; border-radius: 16px; background: var(--forest); color: var(--surface); font-size: 15px; font-weight: 600; transition: background .18s; }
.checkin-button:hover:not(:disabled) { background: var(--forest-hover); }
.checkin-button:disabled { background: #e1e7d4; color: var(--forest); }
.checkin-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.detail-secondary { display: grid; grid-template-columns: 1fr; gap: 8px; }
.demo-button, .list-toggle { min-height: 38px; padding: 8px 10px; border: 0; border-radius: 12px; background: transparent; color: var(--forest); font-size: 13px; }
.demo-button:hover:not(:disabled), .list-toggle:hover { background: var(--cream); }
.demo-button:disabled { color: var(--muted); }
.list-toggle { display: none; }
.sheet-close, .mobile-list-footer { display: none; }
.page-footer { height: 40px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; }
.toast { position: fixed; z-index: 1000; left: 50%; top: 20px; max-width: min(90vw, 480px); padding: 13px 18px; border: 1px solid rgb(255 242 180 / 30%); border-radius: 14px; background: var(--forest); box-shadow: var(--float-shadow); color: var(--surface); font-size: 14px; line-height: 1.6; opacity: 0; pointer-events: none; transform: translate(-50%, -15px); transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.is-error { background: var(--cream); border-color: var(--gold); color: var(--forest); }

@media (min-width: 1600px) { .workspace { grid-template-columns: minmax(0, 1fr) 380px; } }
@media (min-width: 901px) and (max-height: 820px) {
  .workspace { min-height: 560px; }
  .explore-panel { gap: 12px; padding: 20px; }
  .progress-caption { display: none; }
  .selected-card { padding: 14px; }
  .detail-title { font-size: 21px; }
  .detail-copy { font-size: 13px; margin-bottom: 10px; }
  .place-row { min-height: 62px; padding: 10px; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .app-shell { padding-inline: 16px; }
  .workspace { grid-template-columns: minmax(0, 1fr) 330px; gap: 12px; }
  .explore-panel { padding: 18px; }
  .campus-switch button { min-width: 70px; padding-inline: 8px; font-size: 13px; }
  .map-toolbar { left: 16px; top: 16px; }
  .locate-button { top: 80px; right: 16px; }
  .topbar { gap: 24px; }
  .brand-motto { display: none; }
}
@media (max-width: 900px) {
  .app-shell { padding: 0; }
  .topbar { height: 64px; padding: 0 18px; gap: 12px; background: var(--surface); }
  .brand { font-size: 22px; gap: 8px; }
  .brand-mark { width: 23px; height: 26px; }
  .campus-tag, .topbar-right { display: none; }
  .mobile-progress { display: block; margin-left: auto; color: var(--forest); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .mobile-progress b { font-weight: 600; }
  .workspace { display: block; height: calc(100vh - 64px); height: calc(100svh - 64px); min-height: 560px; }
  .map-panel { height: 100%; border-radius: 0; background: var(--paper); }
  .amap-root { bottom: var(--sheet-height); }
  .map-toolbar { top: 16px; left: 16px; right: 16px; }
  .campus-switch { width: 100%; border-radius: 18px; }
  .campus-switch button { flex: 1; min-width: 0; min-height: 40px; padding: 8px 4px; gap: 4px; font-size: 13px; }
  .locate-button { top: auto; right: 16px; bottom: calc(var(--sheet-height) + 44px); }
  .map-key { left: 16px; top: 78px; bottom: auto; padding: 7px 11px; gap: 6px 12px; max-width: calc(100% - 32px); box-shadow: 0 2px 8px rgb(21 55 13 / 5%); }
  .map-key span { gap: 5px; }
  .map-status { top: 122px; left: 16px; max-width: calc(100% - 32px); font-size: 13px; }
  .awaiting-amap .map-status { top: calc((100% - var(--sheet-height)) / 2); }
  .location-strip { top: auto; left: 16px; bottom: calc(var(--sheet-height) + 32px); max-width: calc(100% - 96px); padding: 9px 12px; }
  .location-strip:not(.has-feedback) { display: none; }
  .location-strip .location-icon { display: none; }
  .location-message strong { font-size: 12px; }
  .location-message small { font-size: 12px; }
  .location-state { display: none; }
  .explore-panel { position: absolute; z-index: 400; left: 16px; right: 16px; bottom: max(12px, env(safe-area-inset-bottom)); display: flex; gap: 0; max-height: calc(100% - 28px); padding: 0; border: 1px solid rgb(21 55 13 / 6%); border-radius: 22px; background: var(--surface); box-shadow: 0 -4px 32px rgb(21 55 13 / 8%); }
  .explore-overview, .filter-row, .place-list { display: none; }
  .selected-card { padding: 14px 16px 8px; border-radius: 22px; background: var(--surface); }
  .sheet-handle { display: block; width: 36px; height: 4px; margin: 0 auto 12px; border-radius: 4px; background: var(--line); }
  .detail-overline { font-size: 12px; margin-bottom: 7px; }
  .detail-title { margin-bottom: 7px; font-size: 23px; }
  .detail-copy { font-size: 14px; line-height: 1.6; margin-bottom: 12px; }
  .detail-secondary { grid-template-columns: 1fr 1fr; }
  .list-toggle { display: block; }
  .demo-button, .list-toggle { min-height: 42px; }
  .explore-panel.is-list-open { gap: 12px; padding: 20px 16px 8px; }
  .is-list-open .explore-overview { display: block; }
  .is-list-open .filter-row { display: grid; }
  .is-list-open .place-list { display: block; min-height: 100px; max-height: 240px; }
  .is-list-open .panel-heading h2 { flex: 1; font-size: 22px; }
  .is-list-open .list-count { font-size: 20px; }
  .is-list-open .progress-copy, .is-list-open .progress-track, .is-list-open .progress-caption { display: none; }
  .is-list-open .sheet-close { flex-shrink: 0; display: grid; place-items: center; width: 40px; height: 40px; margin: -8px -6px -8px 0; padding: 10px; border: 0; border-radius: 12px; color: var(--forest); background: var(--soft-sage); }
  .sheet-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
  .is-list-open .selected-card { padding: 10px 0 0; border-top: 1px solid var(--line); border-radius: 0; }
  .is-list-open .sheet-handle { display: none; }
  .is-list-open .mobile-list-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
  .mobile-list-footer .text-button { font-size: 12px; }
  .place-row { min-height: 66px; }
  .page-footer { display: none; }
  .toast { top: 74px; width: max-content; max-width: calc(100vw - 32px); font-size: 13px; }
}
@media (max-width: 359px) {
  .topbar { padding-inline: 14px; }
  .brand { font-size: 20px; }
  .campus-switch button { font-size: 12px; }
  .campus-switch button small { font-size: 12px; }
  .map-key { gap: 6px 9px; padding-inline: 10px; }
  .detail-title { font-size: 21px; }
  .detail-copy { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

.account-button { display: inline-flex; flex-shrink: 0; align-items: center; gap: 8px; min-height: 42px; max-width: 180px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--forest); font-size: 13px; }
.account-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.account-button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.journey-tools { display: flex; flex-shrink: 0; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 12px; }
.journey-tools > span { min-width: 0; overflow-wrap: anywhere; }
.journey-tools button { flex-shrink: 0; min-height: 36px; padding: 6px 10px; border: 0; border-radius: 10px; background: var(--soft-sage); color: var(--forest); font-size: 13px; }
.is-demo .detail-overline > span:first-child, .is-demo #modeIndicator { color: #795b15; font-weight: 700; }
.is-demo .selected-card { box-shadow: inset 0 0 0 2px var(--gold); }
.app-dialog { width: min(480px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); padding: 28px; overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); color: var(--ink); box-shadow: 0 24px 90px rgb(21 55 13 / 22%); }
.app-dialog::backdrop { background: rgb(18 34 15 / 45%); backdrop-filter: blur(4px); }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.dialog-heading h2 { margin: 0; font-size: 25px; line-height: 1.4; }
.dialog-eyebrow { margin: 0 0 6px; color: var(--muted); font-size: 12px; }
.dialog-close { flex-shrink: 0; display: grid; place-items: center; width: 40px; height: 40px; margin: -6px -8px 0 0; border: 0; border-radius: 12px; background: var(--soft-sage); color: var(--forest); font-size: 26px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 24px; padding: 4px; border-radius: 16px; background: var(--soft-sage); }
.auth-tabs button { min-height: 42px; padding: 9px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); font-size: 14px; }
.auth-tabs button.active { background: var(--forest); color: var(--surface); }
.field-label { display: block; margin: 16px 0 8px; font-size: 14px; font-weight: 600; }
.app-dialog input:not([type=file]) { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; font-size: 16px; }
.app-dialog input:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; }
.app-dialog input::placeholder { color: var(--muted); font-size: 13px; }
.form-error { min-height: 22px; margin: 12px 0; color: #8d3f22; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.dialog-footnote { margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.checkin-step { margin: 0 0 18px; padding: 16px; border: 1px solid var(--line); border-radius: 18px; }
.step-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; }
.step-heading .text-button { min-height: 32px; }
.step-heading > span { color: var(--muted); font-size: 12px; }
.step-status { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--soft-sage); color: var(--muted); font-size: 13px; line-height: 1.6; }
.step-status[data-state=success] { color: var(--forest); font-weight: 600; }
.step-status[data-state=error] { background: var(--cream); color: #795b15; }
.photo-pickers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.photo-picker { display: grid; place-items: center; min-height: 48px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--forest); font-size: 14px; text-align: center; cursor: pointer; }
.photo-picker:hover { background: var(--cream); }
.live-camera { margin: 16px 0; padding: 12px; border-radius: 16px; background: var(--soft-sage); }
.live-camera video { display: block; width: 100%; max-height: 320px; border-radius: 12px; background: var(--forest); object-fit: contain; }
.camera-actions { display: grid; gap: 6px; margin-top: 12px; }
#photoPreviewWrap { margin: 16px 0 0; }
#photoPreview { display: block; width: 100%; max-height: 300px; object-fit: contain; border-radius: 12px; background: var(--soft-sage); }
#photoPreviewWrap figcaption { margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.records-dialog { width: min(760px, calc(100vw - 32px)); }
#recordsCount { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; font-weight: 400; }
.records-toolbar, .records-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 12px; }
.records-toolbar { margin-bottom: 12px; }
.records-footer { margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--line); }
.records-list { display: grid; gap: 16px; }
.record-card { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 18px; padding: 14px; border: 1px solid var(--line); border-radius: 18px; }
.record-photo { display: block; }
.record-photo img { display: block; width: 140px; height: 120px; border-radius: 12px; object-fit: cover; background: var(--soft-sage); }
.record-info { min-width: 0; }
.record-info h3 { margin: 2px 0 8px; font-size: 17px; }
.record-info time, .record-info p { margin: 0 0 6px; color: var(--muted); font-size: 12px; }
.record-actions { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 8px; }
.record-actions a, .record-actions button { display: inline-flex; align-items: center; min-height: 36px; border: 0; padding: 0; background: transparent; color: var(--forest); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.record-actions button { color: #8d3f22; }
.records-empty { margin: 0; padding: 40px 20px; border-radius: 16px; background: var(--paper); color: var(--muted); font-size: 14px; line-height: 1.9; text-align: center; }
@media (max-width: 900px) {
  .account-button { width: 36px; min-height: 36px; padding: 8px; border: 0; }
  .account-button span { display: none; }
  .topbar .mobile-progress { margin-left: auto; }
  .journey-tools { padding: 8px 16px 0; font-size: 11px; }
  .journey-tools button { min-height: 30px; padding-block: 4px; font-size: 12px; }
  .explore-panel.is-list-open .journey-tools { padding: 0; }
  .explore-panel:not(.is-list-open) .selected-card { padding-top: 8px; }
  .app-dialog { padding: 22px; border-radius: 22px; }
  .dialog-heading h2 { font-size: 23px; }
}
@media (max-width: 420px) {
  .record-card { grid-template-columns: 94px minmax(0, 1fr); gap: 12px; padding: 10px; }
  .record-photo img { width: 94px; height: 112px; }
  .record-info h3 { font-size: 15px; }
  .record-actions { gap: 4px 12px; }
}
