:root {
    --ink: #ecf2ef;
    --muted: #8e9d9d;
    --dim: #5f7070;
    --bg: #0b141b;
    --panel: rgba(17, 29, 36, .88);
    --panel-strong: #14242c;
    --line: rgba(163, 190, 185, .14);
    --gold: #d5a95b;
    --gold-soft: #f0c97b;
    --ridge: #efad67;
    --water: #57c5c3;
    --sand: #c49ee9;
    --green: #8ec79b;
    --shadow: 0 22px 70px rgba(0, 0, 0, .28);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--bg); }

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    background:
        radial-gradient(circle at 72% 9%, rgba(48, 99, 91, .17), transparent 28rem),
        radial-gradient(circle at 9% 45%, rgba(64, 79, 102, .13), transparent 30rem),
        linear-gradient(145deg, #0a131a 0%, #0d171e 55%, #0c151b 100%);
    min-height: 100vh;
}

.xunlong-language {
    position: fixed;
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 1600;
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 8px;
    padding: 7px 9px 7px 12px;
    border: 1px solid rgba(213, 169, 91, 0.42);
    border-radius: 999px;
    background: rgba(10, 17, 22, 0.94);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.34);
    color: var(--gold-soft);
    font: 700 10px/1 system-ui, sans-serif;
    letter-spacing: 0.12em;
    backdrop-filter: blur(14px);
}

.xunlong-language select {
    min-height: 32px;
    border: 1px solid rgba(213, 169, 91, 0.3);
    border-radius: 999px;
    background: #101b24;
    color: #f1dfbd;
    padding: 0 28px 0 10px;
    font: 600 12px/1 system-ui, sans-serif;
}

.xunlong-language select:focus-visible {
    outline: 2px solid #d5a95b;
    outline-offset: 2px;
}

button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 3px; }

.ambient { position: fixed; pointer-events: none; z-index: 0; opacity: .3; filter: blur(2px); }
.ambient-one { width: 38vw; height: 38vw; right: -15vw; top: 32vh; border: 1px solid rgba(79, 173, 161, .08); border-radius: 50%; box-shadow: 0 0 0 32px rgba(79, 173, 161, .025), 0 0 0 64px rgba(79, 173, 161, .02); }
.ambient-two { width: 16rem; height: 16rem; left: -8rem; bottom: 6rem; border-radius: 50%; background: rgba(214, 171, 91, .06); }
.page-shell { position: relative; z-index: 1; max-width: 1480px; padding: 30px 34px 22px; margin: 0 auto; }

.hero { padding: 12px 2px 32px; }
.eyebrow, .panel-kicker, .metric-tag { font-size: 10px; letter-spacing: .19em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.hero-topline { display: flex; align-items: center; gap: 22px; min-height: 57px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 14px rgba(213, 169, 91, .75); }
.eyebrow-note { display: inline-flex; align-items: center; gap: 9px; color: #93a9a3; font: 700 10px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .16em; }
.hero-home-link {
    color: #d9e7df;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: normal;
    text-transform: none;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 0;
    transition: border-color .2s, background .2s, color .2s;
}
.hero-home-link:hover,
.hero-home-link:focus-visible {
    color: var(--gold-soft);
}
.hero-series-link { margin-left: auto; display: inline-flex; align-items: center; gap: 11px; min-height: 40px; padding: 0 14px; border: 1px solid rgba(213,169,91,.32); border-radius: 9px; color: var(--gold-soft); font-size: 12px; font-weight: 600; text-decoration: none; transition: background .2s, border-color .2s; }
.hero-series-link:hover { background: rgba(213,169,91,.09); border-color: rgba(213,169,91,.7); }
.hero-home-link--footer {
    font-size: 10px;
}
.footer-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.hero-row { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding: 42px 0 0; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 760px; margin: 0 0 20px; line-height: 1.13; }
.hero-title-main { display: block; color: #f1f7f3; font-family: "Songti SC", STSong, "Noto Serif SC", serif; font-size: clamp(47px, 6vw, 78px); font-weight: 700; letter-spacing: -.06em; }
.hero-title-sub { display: block; margin-top: 9px; color: var(--gold-soft); font-size: clamp(19px, 2.4vw, 30px); font-weight: 500; letter-spacing: .14em; }
.hero p { max-width: 620px; color: #b0c1ba; font-size: 15px; line-height: 1.8; margin-bottom: 0; }
.hero-mark { flex: 0 0 124px; height: 94px; position: relative; opacity: .82; }
.mark-ring { position: absolute; border: 1px solid rgba(213,169,91,.42); border-radius: 50%; transform: rotate(-22deg) skewX(-17deg); }
.ring-back { width: 84px; height: 42px; top: 18px; left: 27px; }
.ring-mid { width: 108px; height: 58px; top: 7px; left: 8px; border-color: rgba(86,197,188,.36); }
.mark-dot { position: absolute; width: 10px; height: 10px; background: var(--gold-soft); border-radius: 50%; top: 42px; left: 57px; box-shadow: 0 0 26px rgba(240,201,123,.7); }

.wizard-shell { display: grid; grid-template-columns: minmax(350px, 430px) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.wizard-shell.is-report { grid-template-columns: 1fr; }
.wizard-shell.is-report .wizard-column { display: none; }
.wizard-shell.is-report .map-panel { min-height: 460px; }
.panel-card { background: var(--panel); border: 1px solid var(--line); border-radius: 19px; box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.wizard-progress { margin-bottom: 16px; padding: 11px 13px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.guide-step { display: grid; grid-template-columns: 30px 1fr; grid-template-rows: auto auto; column-gap: 8px; border: 1px solid rgba(160,191,182,.12); border-radius: 11px; background: rgba(5,15,20,.24); color: #70827d; padding: 10px 11px; text-align: left; }
.guide-step span { grid-row: 1 / span 2; align-self: center; color: #6c817a; font: 700 10px ui-monospace, monospace; }
.guide-step strong { color: #9cadaa; font-size: 11px; font-weight: 650; }
.guide-step small { margin-top: 3px; color: #647671; font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.guide-step.is-active { border-color: rgba(213,169,91,.6); background: rgba(213,169,91,.1); }
.guide-step.is-active span, .guide-step.is-active strong { color: #f0cf8b; }
.guide-step.is-done { border-color: rgba(142,199,155,.32); }
.guide-step.is-done span { color: #8ec79b; }
.guide-step:disabled { cursor: not-allowed; opacity: .48; }
.wizard-card { padding: 25px 24px 20px; }
.wizard-step { display: flex; flex-direction: column; }
.wizard-step[hidden] { display: none !important; }
.wizard-inline-action { margin-top: 13px; }
.step-summary { margin-top: 18px; padding: 15px 16px 13px; border: 1px solid rgba(142,199,155,.28); border-radius: 12px; background: rgba(10,26,22,.5); }
.step-summary[hidden] { display: none !important; }
.step-summary-head { display: flex; align-items: center; gap: 8px; color: #9bc7a9; font-size: 11px; font-weight: 650; }
.step-summary-dot { width: 7px; height: 7px; border-radius: 50%; background: #8ec79b; box-shadow: 0 0 10px rgba(142,199,155,.7); }
.step-summary > p { margin: 9px 0 0; color: #c6d6cd; font-size: 12.5px; line-height: 1.7; }
.step-summary-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 14px; margin-top: 13px; padding-top: 12px; border-top: 1px solid rgba(160,191,182,.12); }
.step-summary-facts div { color: #71837f; font-size: 10px; }
.step-summary-facts b { display: block; color: #c3d0ca; font-size: 12px; margin-top: 4px; font-weight: 600; }
.step-summary p.step-summary-note { color: #7d918b; font-size: 10px; line-height: 1.6; }
.wizard-footer { margin-top: 20px; padding-top: 17px; border-top: 1px solid var(--line); }
.wizard-nav { display: flex; gap: 10px; }
.wizard-nav .secondary-button { flex: 0 0 auto; }
.primary-button.wizard-next { flex: 1; min-width: 0; }
.wizard-status { margin: 11px 0 0; color: #718781; font-size: 11px; line-height: 1.6; }
.panel-kicker { color: #78958d; margin-bottom: 11px; }
h2 { font-size: 22px; letter-spacing: -.025em; margin: 0 0 10px; }
.panel-intro { color: var(--muted); font-size: 13px; line-height: 1.7; margin-bottom: 23px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field { display: flex; flex-direction: column; gap: 8px; color: #a8b7b4; font-size: 11px; letter-spacing: .03em; }
.field input, .field select { width: 100%; border: 1px solid rgba(150, 183, 177, .2); border-radius: 11px; background: rgba(3, 10, 14, .36); color: var(--ink); outline: none; padding: 13px 11px; transition: border-color .2s, box-shadow .2s, background .2s; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #9eafaa 50%), linear-gradient(135deg, #9eafaa 50%, transparent 50%); background-position: calc(100% - 15px) 18px, calc(100% - 10px) 18px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.field input:focus, .field select:focus { border-color: rgba(213,169,91,.75); box-shadow: 0 0 0 3px rgba(213,169,91,.1); background-color: rgba(3, 10, 14, .65); }
.field input::placeholder { color: #526363; }
.place-search { position: relative; margin-bottom: 14px; }
.place-search-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
#place-search-input { font-size: 13px; }
#place-search-button { border: 1px solid rgba(213, 169, 91, .4); border-radius: 11px; background: rgba(213, 169, 91, .12); color: var(--gold-soft); width: 46px; cursor: pointer; transition: .2s; }
#place-search-button:hover { border-color: rgba(213, 169, 91, .75); background: rgba(213, 169, 91, .2); }
#place-search-button:disabled { cursor: wait; opacity: .65; }
.place-search-results { position: absolute; z-index: 40; top: 100%; left: 0; right: 0; margin: 6px 0 0; padding: 6px; list-style: none; border: 1px solid rgba(150, 183, 177, .25); border-radius: 12px; background: #10202a; box-shadow: 0 18px 36px rgba(0, 0, 0, .45); max-height: 264px; overflow-y: auto; }
.place-search-item { display: flex; flex-direction: column; gap: 3px; width: 100%; text-align: left; border: 0; border-radius: 9px; background: none; color: var(--ink); padding: 9px 10px; cursor: pointer; transition: background .15s; }
.place-search-item:hover { background: rgba(213, 169, 91, .1); }
.place-search-item-name { font-size: 13px; color: #e8e4d8; }
.place-search-item-detail { font-size: 10.5px; color: #6d817b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.place-search-empty { padding: 10px 12px; font-size: 12px; color: #6d817b; }
.place-search-empty.is-error { color: #d9958d; }
.radius-field { border: 0; padding: 0; margin: 21px 0 21px; }
.radius-field legend { color: #a8b7b4; font-size: 11px; letter-spacing: .03em; padding: 0; margin-bottom: 9px; }
.radius-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.radius-options label { position: relative; }
.radius-options input { position: absolute; opacity: 0; pointer-events: none; }
.radius-options span { display: block; border: 1px solid rgba(150,183,177,.17); border-radius: 9px; color: #8c9b9a; padding: 10px 0; text-align: center; font-size: 11px; transition: .2s; }
.radius-options input:checked + span { color: #f5d998; border-color: rgba(213,169,91,.7); background: rgba(213,169,91,.12); }
.radius-options span:hover { border-color: rgba(213,169,91,.4); }
.primary-button { position: relative; width: 100%; border: 0; border-radius: 12px; background: linear-gradient(105deg, #d3a355, #edc879); color: #17201f; padding: 15px 16px; font-weight: 750; box-shadow: 0 12px 24px rgba(183, 133, 52, .2); transition: transform .2s, box-shadow .2s, filter .2s; }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 15px 30px rgba(183,133,52,.31); filter: brightness(1.04); }
.primary-button:disabled { cursor: wait; opacity: .75; transform: none; }
.button-arrow { float: right; font-size: 18px; line-height: 14px; }
.button-orbit { display: inline-block; width: 7px; height: 7px; border: 1px solid currentColor; border-radius: 50%; margin-right: 8px; vertical-align: 1px; opacity: .65; }
.status-box { display: flex; align-items: center; gap: 9px; padding: 13px 0 5px; color: #7f9692; font-size: 12px; }
.status-icon { color: var(--gold); font-size: 18px; line-height: 1; }
.status-box.is-error { color: #e48d83; }
.status-box.is-error .status-icon { color: #e48d83; }
.status-box.is-success { color: #9ac7a8; }
.progress-list { display: grid; gap: 8px; overflow: hidden; max-height: 0; opacity: 0; transition: .35s ease; }
.progress-list.is-visible { max-height: 130px; opacity: 1; padding: 10px 0 5px; }
.progress-list div { color: #526363; font-size: 11px; display: flex; align-items: center; gap: 8px; }
.progress-list div span { width: 6px; height: 6px; border-radius: 50%; border: 1px solid #526363; }
.progress-list div.is-active { color: #d9c18d; }
.progress-list div.is-active span { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 10px rgba(213,169,91,.6); }
.progress-list div.is-done { color: #83aa95; }
.progress-list div.is-done span { background: #83aa95; border-color: #83aa95; }
.quick-note { display: flex; gap: 10px; border-top: 1px solid var(--line); margin-top: 20px; padding-top: 17px; }
.note-symbol { width: 17px; height: 17px; border: 1px solid #6f8d85; border-radius: 50%; color: #8bae9d; flex: 0 0 auto; text-align: center; line-height: 16px; font-size: 11px; }
.quick-note p { color: #72817f; font-size: 11px; line-height: 1.65; margin: 0; }

.map-panel { min-height: 590px; padding: 22px; display: flex; flex-direction: column; }
.map-toolbar { display: flex; justify-content: space-between; align-items: start; padding: 2px 4px 16px; }
.map-toolbar h2 { margin-bottom: 0; }
.map-toolbar-actions { display: flex; align-items: center; gap: 12px; }
.map-pick-button { border: 1px solid rgba(213,169,91,.4); border-radius: 8px; background: rgba(213,169,91,.08); color: #d8bb7d; padding: 8px 10px; font-size: 11px; transition: .2s; }
.map-pick-button:hover, .map-pick-button.is-active { border-color: rgba(213,169,91,.85); background: rgba(213,169,91,.18); color: #f0cf8b; }
.map-coordinates { color: #7e9690; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; padding-top: 4px; }
.surface-workbench { display: grid; gap: 10px; margin: 0 2px 13px; padding: 13px 14px 12px; border: 1px solid rgba(160,191,182,.13); border-radius: 12px; background: linear-gradient(115deg, rgba(5,17,21,.62), rgba(21,39,42,.56)); }
.surface-workbench[hidden] { display: none; }
.surface-workbench-head, .surface-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.surface-workbench-head > div { min-width: 0; }
.surface-workbench-head strong { display: block; color: #d9e5df; font-size: 13px; margin-top: 3px; }
.surface-kicker { color: #77918a; font: 700 8px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .13em; }
.surface-loading { flex: 0 0 auto; color: #849892; font-size: 10px; }
.surface-loading.is-ready { color: #9bc7a9; }
.surface-loading.is-error { color: #e29186; }
.surface-purpose, .surface-view-actions { display: flex; align-items: center; gap: 5px; }
.surface-purpose { padding: 3px; border: 1px solid rgba(160,191,182,.12); border-radius: 9px; background: rgba(3,11,14,.28); }
.surface-purpose button, .surface-view-button { border: 1px solid transparent; border-radius: 6px; background: transparent; color: #7d918b; padding: 7px 10px; font-size: 10px; }
.surface-purpose button.is-active { border-color: rgba(213,169,91,.45); background: rgba(213,169,91,.14); color: #f0cf8b; }
.surface-view-button { border-color: rgba(160,191,182,.15); color: #9aaca6; }
.surface-view-button:hover { border-color: rgba(213,169,91,.45); color: #e5c884; }
.surface-evidence { display: flex; flex-wrap: wrap; gap: 7px; }
.evidence-status { display: inline-flex; align-items: center; width: fit-content; gap: 6px; border: 1px solid rgba(160,191,182,.17); border-radius: 999px; background: rgba(160,191,182,.06); color: #a8b9b3; padding: 5px 9px; font-size: 9px; line-height: 1; }
.evidence-status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.evidence-status.is-available { border-color: rgba(98,199,155,.3); color: #7bd0a8; }
.evidence-status.is-not-mapped { border-color: rgba(213,169,91,.32); color: #d8b66f; }
.evidence-status.is-unavailable { border-color: rgba(207,113,100,.38); color: #e18d82; }
.evidence-status.is-truncated { border-color: rgba(212,164,82,.35); color: #dfb96d; }
.evidence-status.is-loading, .evidence-status.is-unknown { color: #7e918c; }
.surface-scale { display: flex; flex-wrap: wrap; gap: 7px 13px; color: #8ea09a; font-size: 9px; }
.surface-scale span { display: inline-flex; align-items: center; gap: 5px; }
.surface-scale i { width: 10px; height: 10px; border: 1px solid rgba(219,231,225,.32); border-radius: 2px; opacity: .72; }
.band-priority { background: #62c79b; }.band-recommended { background: #a8c96f; }.band-conditional { background: #d4a452; }.band-cautious { background: #cf7164; }.band-insufficient { background: #71817d; }
.surface-note { margin: 0; color: #6d827c; font-size: 9px; line-height: 1.55; }
.map-wrap.is-picking, .map-wrap.is-picking #map { cursor: crosshair; }
.map-wrap { position: relative; flex: 1; min-height: 460px; overflow: hidden; border-radius: 13px; background: #172a31; }
#map { height: 100%; width: 100%; min-height: 460px; background: #172a31; }
.leaflet-container { font: inherit; background: #172a31; }
.leaflet-control-zoom a { background: rgba(12,27,33,.9); border-color: rgba(174,204,196,.22); color: #b7c7c2; }
.leaflet-control-attribution { background: rgba(5,14,18,.74) !important; color: #8ca19f; }
.leaflet-control-attribution a { color: #bfd0c9; }
.map-empty { position: absolute; z-index: 500; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 7px; background: radial-gradient(circle at 50% 48%, rgba(28,65,68,.78), rgba(12,26,32,.89) 60%); color: #c6d3ce; pointer-events: none; transition: opacity .4s; }
.map-empty.is-hidden { opacity: 0; }
.map-empty strong { font-size: 14px; font-weight: 600; }
.map-empty span { color: #7d9690; font-size: 11px; }
.empty-glyph { color: var(--gold); font-size: 34px; line-height: 1; transform: rotate(-25deg); opacity: .8; }
.map-legend { position: absolute; left: 14px; bottom: 13px; z-index: 500; display: grid; gap: 6px; padding: 10px 12px; background: rgba(7,17,22,.78); border: 1px solid rgba(180,203,195,.14); border-radius: 10px; color: #bdd0ca; font-size: 10px; backdrop-filter: blur(8px); }
.map-legend div { display: flex; gap: 7px; align-items: center; }
.legend-swatch { width: 14px; height: 3px; display: inline-block; border-radius: 4px; }
.terrain-swatch { height: 8px; width: 8px; border-radius: 50%; background: #c9ab70; }
.ridge-swatch { background: var(--ridge); }
.flow-swatch { background: var(--water); }
.river-swatch { background: #84bfff; }
.surface-cell-card { position: absolute; z-index: 600; top: 13px; right: 13px; width: min(190px, calc(100% - 26px)); padding: 13px; border: 1px solid rgba(242,209,139,.45); border-radius: 11px; background: rgba(7,17,22,.86); box-shadow: 0 12px 32px rgba(0,0,0,.28); backdrop-filter: blur(10px); }
.surface-cell-card[hidden] { display: none; }
.surface-cell-kicker { display: block; color: #879b94; font-size: 9px; letter-spacing: .1em; }
.surface-cell-value { display: flex; align-items: baseline; gap: 5px; margin-top: 7px; color: var(--gold-soft); }
.surface-cell-value strong { font-size: 28px; letter-spacing: -.05em; }
.surface-cell-value span { color: #758984; font-size: 9px; }
.surface-cell-band { color: #dce7e1; font-size: 11px; font-weight: 650; }
.surface-cell-card p { color: #849791; font-size: 9px; margin: 5px 0 10px; }
.surface-cell-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.surface-cell-actions button { border: 1px solid rgba(160,191,182,.16); border-radius: 6px; background: rgba(160,191,182,.05); color: #a7b9b3; padding: 6px; font-size: 9px; }
.surface-cell-actions button:hover { border-color: rgba(213,169,91,.4); color: #e8ca88; }
.layer-strip { display: flex; flex-wrap: wrap; gap: 8px 14px; padding: 14px 3px 0; }
.layer-strip label { display: flex; align-items: center; gap: 6px; color: #81928f; font-size: 11px; cursor: pointer; }
.layer-strip input { accent-color: var(--gold); }
.layer-dot { width: 6px; height: 6px; border-radius: 50%; }
.surface-dot { background: linear-gradient(135deg, #62c79b 0 50%, #cf7164 50%); }.terrain-dot { background: #d0b475; }.ridge-dot { background: var(--ridge); }.sand-dot { background: var(--sand); }.flow-dot { background: var(--water); }.river-dot { background: #84bfff; }.grave-dot { background: #dca7da; }

.report-view { padding-top: 40px; }
.report-view-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 3px 18px; }
.report-view-note { color: #6f8380; font-size: 11px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; padding: 0 3px 17px; }
.section-heading h2 { font-size: 28px; margin: 0; }
.report-meta { color: #6f8380; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
.overview-card { padding: 25px 27px 23px; margin-bottom: 14px; border-color: rgba(213,169,91,.24); background: linear-gradient(122deg, rgba(25,40,42,.93), rgba(17,29,36,.87)); }
.overview-label { display: flex; align-items: center; gap: 9px; color: var(--gold); text-transform: uppercase; letter-spacing: .16em; font-size: 10px; font-weight: 700; margin-bottom: 13px; }
.signal-line { width: 20px; height: 1px; background: var(--gold); box-shadow: 8px 0 0 rgba(213,169,91,.35); }
.overview-card p { max-width: 1030px; color: #d7e1dc; font-size: clamp(17px, 2vw, 23px); line-height: 1.55; letter-spacing: -.02em; margin: 0; }
.overview-narrative { color: #9eb2aa; font-size: 12px; line-height: 1.7; margin-top: 11px; max-width: 860px; }
.metrics-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.metric-card { padding: 22px 22px 20px; min-height: 275px; position: relative; overflow: hidden; }
.metric-card::after { content: ""; position: absolute; width: 145px; height: 145px; border: 1px solid currentColor; border-radius: 50%; right: -72px; bottom: -74px; opacity: .08; }
.metric-dragon { color: var(--ridge); }.metric-sand { color: var(--sand); }.metric-water { color: var(--water); }
.metric-top { display: flex; justify-content: space-between; align-items: center; color: inherit; }
.metric-index { color: inherit; opacity: .85; font-family: ui-monospace, monospace; font-size: 11px; }
.metric-tag { color: #728985; letter-spacing: .14em; font-size: 9px; }
.metric-title-row { display: flex; justify-content: space-between; align-items: center; margin-top: 23px; }
.metric-title-row h3 { color: #d9e3de; font-size: 16px; margin: 0; }
.metric-strength { color: inherit; font-size: 11px; font-weight: 700; }
.metric-value { font-size: 31px; color: inherit; letter-spacing: -.04em; margin: 14px 0 7px; }
.metric-card p { color: #93a5a1; font-size: 12px; line-height: 1.65; min-height: 40px; margin-bottom: 14px; }
.metric-facts { display: flex; gap: 17px; padding-top: 13px; border-top: 1px solid rgba(160,191,182,.1); color: #71837f; font-size: 10px; }
.metric-facts b { display: block; color: #bdccc6; font-size: 12px; margin-top: 4px; font-weight: 600; }
.metric-narrative { color: #819690; font-size: 11px; line-height: 1.55; margin-top: 12px; }
.detail-grid { display: grid; grid-template-columns: 1.1fr .9fr 1fr; gap: 14px; margin-top: 14px; }
.detail-card { padding: 21px 22px; min-height: 238px; }
.detail-heading { display: flex; gap: 11px; align-items: center; }
.detail-heading h3 { margin: 5px 0 0; color: #d5dfda; font-size: 15px; }
.detail-icon { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid rgba(142,199,155,.35); color: var(--green); border-radius: 9px; font-size: 17px; }
.quality-bar { height: 5px; background: rgba(150,184,173,.1); border-radius: 10px; margin: 25px 0 10px; overflow: hidden; }
.quality-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #8dbd96, #d5b36c); border-radius: inherit; transition: width .5s ease; }
.quality-line { display: flex; align-items: baseline; gap: 7px; color: #72847f; font-size: 10px; }
.quality-line strong { color: #c5d8ce; font-size: 19px; }.quality-line em { margin-left: auto; color: var(--green); font-style: normal; }
.fact-list { border-top: 1px solid rgba(160,191,182,.1); margin-top: 17px; padding-top: 5px; }
.fact-list div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; color: #758681; font-size: 11px; }
.fact-list b { color: #c3d0ca; text-align: right; font-weight: 600; }
.detail-copy { color: #82958f; font-size: 12px; line-height: 1.7; margin: 20px 0 15px; }
.waterway-source-status { margin-top: 18px; }
.waterway-source-status + .detail-copy { margin-top: 10px; }
.waterway-stat { display: flex; align-items: baseline; gap: 8px; color: var(--water); }.waterway-stat span { font-size: 34px; letter-spacing: -.06em; }.waterway-stat small { color: #80918d; font-size: 11px; }
.waterway-distance { color: #83948f; font-size: 11px; margin-top: 10px; }
.source-link { display: inline-block; color: #a5bdaf; font-size: 11px; text-decoration: none; margin-top: 19px; border-bottom: 1px solid rgba(165,189,175,.3); padding-bottom: 2px; }.source-link:hover { color: var(--gold-soft); }
.warning-card .detail-icon { color: var(--gold); border-color: rgba(213,169,91,.35); }.warning-card ul { margin: 20px 0 0; padding-left: 17px; color: #9ba9a3; font-size: 11px; line-height: 1.8; }.warning-card li::marker { color: var(--gold); }
.disclaimer { border-top: 1px solid rgba(160,191,182,.1); margin-top: 14px; padding-top: 12px; color: #667874; font-size: 10px; line-height: 1.6; }
.site-footer { display: flex; justify-content: space-between; color: #536864; font-size: 10px; padding: 32px 3px 5px; letter-spacing: .04em; }

.orientation-dot { background: #f3d28b; }.house-dot { background: #e893bd; }.road-dot { background: #f0a4a4; }.grave-dot { background: #dca7da; }
.advanced-meta { color: #718781; font-size: 11px; text-align: right; }
.comparison-intro { color: var(--muted); font-size: 12px; line-height: 1.7; margin: 0 0 21px; }
.advanced-mode-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-bottom: 10px; }
.advanced-mode-button { border: 1px solid rgba(160,191,182,.14); border-radius: 10px; background: rgba(5,15,20,.22); color: #71837d; padding: 10px 8px; text-align: left; }
.advanced-mode-button strong, .advanced-mode-button small { display: block; }
.advanced-mode-button strong { color: #a9b8b2; font-size: 11px; }
.advanced-mode-button small { margin-top: 4px; color: #647670; font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.advanced-mode-button.is-active { border-color: rgba(213,169,91,.58); background: rgba(213,169,91,.1); }
.advanced-mode-button.is-active strong { color: #f0cf8b; }
.advanced-mode-help { color: #7d918b; font-size: 10px; line-height: 1.6; margin: 0 0 15px; }
.advanced-block { padding: 16px; border: 1px solid rgba(160,191,182,.12); border-radius: 14px; background: rgba(5, 15, 20, .25); }
.advanced-block[hidden], [data-wizard-step-panel][hidden], .step-summary[hidden], .report-view[hidden] { display: none !important; }
.advanced-block-title { display: flex; align-items: center; gap: 10px; margin-bottom: 17px; }
.advanced-block-title strong { display: block; color: #dbe5df; font-size: 14px; font-weight: 650; }
.advanced-block-title small { display: block; color: #728681; font-size: 10px; margin-top: 4px; }
.advanced-number { display: grid; place-items: center; width: 27px; height: 27px; color: var(--gold-soft); border: 1px solid rgba(213,169,91,.42); border-radius: 8px; font: 700 11px ui-monospace, monospace; }
.compact-grid { gap: 9px; }
.compact-grid .field input { padding: 10px 9px; font-size: 12px; }
.field-hint { color: #6d817b; font-size: 10px; line-height: 1.6; margin: 13px 0 0; }
.profile-status { color: #849792; font-size: 10px; line-height: 1.6; margin: 8px 0 0; }
.mini-button { border: 1px solid rgba(213,169,91,.28); border-radius: 7px; background: rgba(213,169,91,.05); color: #bca36d; padding: 7px 9px; font-size: 10px; }.mini-button:hover, .mini-button:focus-visible { border-color: rgba(213,169,91,.75); color: #f0cf8b; }
.grave-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.toggle-field { display: flex; align-items: center; gap: 8px; color: #a8bbb2; font-size: 11px; margin: -2px 0 14px; cursor: pointer; }
.toggle-field input { accent-color: var(--gold); }
.secondary-button, .text-button { border: 1px solid rgba(213,169,91,.4); border-radius: 9px; background: rgba(213,169,91,.08); color: #d8bb7d; padding: 10px 13px; font-size: 11px; transition: .2s; }
.secondary-button:hover, .secondary-button:focus-visible, .text-button:hover, .text-button:focus-visible { border-color: rgba(213,169,91,.85); background: rgba(213,169,91,.17); color: #f0cf8b; }
.secondary-button:disabled { opacity: .45; cursor: not-allowed; }
.text-button { border-color: transparent; background: transparent; padding: 5px 2px; }
.advanced-report { margin-top: 48px; }
.advanced-report-heading { padding-bottom: 17px; }
.advanced-report-heading h2 { margin: 0; }
.advanced-report-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.advanced-result-card { min-height: 270px; padding: 22px; position: relative; overflow: hidden; }
.advanced-result-card::after { content: ""; position: absolute; right: -60px; bottom: -72px; width: 155px; height: 155px; border: 1px solid currentColor; border-radius: 50%; opacity: .08; }
.orientation-result { color: #f3d28b; }.house-result { color: #e893bd; }.bazhai-result { color: #8ec79b; }.xuankong-result { color: #a9b5ef; }.grave-result { color: #dca7da; }
.advanced-result-title { display: flex; align-items: center; gap: 11px; }
.advanced-result-title h3 { color: #d9e3de; margin: 5px 0 0; font-size: 15px; }
.result-icon { display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid currentColor; border-radius: 9px; color: inherit; font-size: 16px; }
.advanced-big-value { color: inherit; font-size: 27px; letter-spacing: -.04em; margin: 22px 0 7px; }
.advanced-result-card p { color: #91a39d; font-size: 12px; line-height: 1.65; min-height: 39px; margin-bottom: 13px; }
.advanced-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; padding-top: 13px; border-top: 1px solid rgba(160,191,182,.1); color: #82958e; font-size: 10px; }
.advanced-fact { min-width: 105px; }.advanced-fact b { display: block; color: #c8d4ce; font-size: 12px; margin-top: 4px; font-weight: 600; }
.signal-list { margin: 13px 0 0; padding-left: 16px; color: #879992; font-size: 10px; line-height: 1.7; }.signal-list li::marker { color: #e893bd; }
.direction-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 13px; border-top: 1px solid rgba(160,191,182,.1); }
.direction-columns small { display: block; color: #728681; font-size: 10px; margin-bottom: 6px; }.direction-columns div div { color: #c6d3cc; font-size: 11px; line-height: 1.7; }
.nine-grid { width: min(230px, 100%); display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 13px; }
.nine-cell { min-height: 42px; display: grid; place-items: center; border: 1px solid rgba(169,181,239,.25); border-radius: 6px; background: rgba(169,181,239,.06); color: #bfc8ef; font-size: 10px; line-height: 1.3; }.nine-cell b { font-size: 16px; }.nine-cell small { color: #74809d; font-size: 8px; }
.advanced-narrative { padding: 17px 20px; margin-top: 14px; color: #98aca4; font-size: 12px; line-height: 1.75; border-color: rgba(169,181,239,.18); }
.comparison-section { margin-top: 14px; padding: 22px; }.comparison-heading { padding: 0 0 10px; }.comparison-heading h2 { margin: 0; }.comparison-intro { margin-bottom: 13px; }.comparison-empty { padding: 23px; color: #7b8f89; font-size: 11px; text-align: center; border: 1px dashed rgba(160,191,182,.17); border-radius: 10px; }.comparison-table-wrap { overflow-x: auto; }.comparison-table { width: 100%; min-width: 690px; border-collapse: collapse; color: #a1b2ac; font-size: 11px; }.comparison-table th { color: #778b85; font-size: 9px; letter-spacing: .12em; font-weight: 600; text-align: left; padding: 9px 8px; border-bottom: 1px solid rgba(160,191,182,.16); }.comparison-table td { padding: 12px 8px; border-bottom: 1px solid rgba(160,191,182,.08); vertical-align: top; }.comparison-table td strong { display: block; color: #d7e2dc; font-size: 12px; }.comparison-table td small { display: block; color: #6f837d; margin-top: 4px; }.comparison-remove { border: 0; background: transparent; color: #8b9f98; font-size: 17px; padding: 0 4px; }.comparison-remove:hover { color: #e48d83; }

@media (max-width: 980px) {
    .page-shell { padding: 24px 20px 20px; }
    .wizard-progress { grid-template-columns: repeat(2, 1fr); }
    .wizard-shell { grid-template-columns: 1fr; }
    .wizard-column { order: 1; }
    .map-panel { order: 2; min-height: 540px; }
    .map-wrap, #map { min-height: 400px; }
    .wizard-shell.is-report .map-panel { min-height: 460px; }
}

@media (max-width: 700px) {
    .page-shell { padding: 18px 12px 16px; }
    .wizard-progress { grid-template-columns: 1fr 1fr; padding: 10px; gap: 6px; }
    .guide-step { padding: 9px; }
    .hero { padding-bottom: 25px; overflow: hidden; }.hero-topline { flex-wrap: wrap; gap: 4px 14px; padding-bottom: 13px; }.hero-series-link { min-height: 36px; padding-inline: 10px; }.eyebrow-note { order: 3; width: 100%; font-size: 9px; }.hero-row { align-items: center; padding-top: 30px; }.hero-row > div:first-child { min-width: 0; }.hero-mark { flex-basis: 74px; transform: scale(.75); transform-origin: right center; margin-right: -12px; }
    .hero-title-main { font-size: clamp(42px, 11vw, 62px); }.hero-title-sub { font-size: 18px; }.hero p { font-size: 13px; line-height: 1.65; }
    .wizard-card { padding: 19px 16px 16px; }
    .wizard-nav { flex-direction: column; }
    .wizard-nav .secondary-button { width: 100%; }
    .map-panel { padding: 13px; min-height: 500px; }.map-wrap, #map { min-height: 400px; }.map-toolbar { padding: 5px 3px 13px; }.map-toolbar-actions { align-items: end; flex-direction: column; gap: 6px; }.map-coordinates { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .surface-workbench { padding: 12px; margin-inline: 0; }.surface-controls { align-items: stretch; flex-direction: column; }.surface-purpose { display: grid; grid-template-columns: repeat(3, 1fr); }.surface-purpose button { padding-inline: 6px; }.surface-view-actions { display: grid; grid-template-columns: 1fr 1fr; }.surface-cell-card { top: 8px; right: 8px; }
    .metrics-grid, .detail-grid { grid-template-columns: 1fr; }.metric-card { min-height: auto; }.metric-card p { min-height: auto; }
    .advanced-mode-nav { grid-template-columns: 1fr; }
    .report-view-head { align-items: start; flex-direction: column; gap: 8px; }
    .advanced-report { margin-top: 38px; }.advanced-report-grid { grid-template-columns: 1fr; }.advanced-result-card { min-height: auto; }.comparison-section { padding: 18px 15px; }
    .section-heading { align-items: start; gap: 10px; flex-direction: column; }.report-meta { font-size: 10px; }
    .overview-card { padding: 20px 19px; }.overview-card p { font-size: 18px; }
    .site-footer { flex-direction: column; gap: 8px; }
}

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

/* Cemetery Real Scenery Gallery */
.cemetery-gallery-section {
    margin: 16px 0;
    padding-top: 14px;
    border-top: 1px dashed rgba(189, 154, 116, 0.25);
}

.gallery-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.gallery-head h3 {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--paper, #ecf4f0);
    letter-spacing: 0.04em;
}

.gallery-badge {
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    background: rgba(168, 201, 111, 0.15);
    color: #a8c96f;
    border: 1px solid rgba(168, 201, 111, 0.3);
}

.gallery-badge.is-official {
    background: rgba(98, 199, 155, 0.18);
    color: #62c79b;
    border-color: rgba(98, 199, 155, 0.4);
}

.cemetery-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.gallery-card {
    position: relative;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.35);
    aspect-ratio: 4 / 3;
    cursor: pointer;
    text-align: left;
    display: block;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.gallery-card:hover, .gallery-card:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(189, 154, 116, 0.7);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
    outline: none;
}

.gallery-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-thumb {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 4px 6px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85) 60%);
    color: #e2ede7;
    font-size: 10px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}

.gallery-zoom-icon {
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 10px;
    opacity: 0;
    background: rgba(0, 0, 0, 0.65);
    padding: 2px 4px;
    border-radius: 4px;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.gallery-card:hover .gallery-zoom-icon {
    opacity: 1;
}

.gallery-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #7d8b87;
    font-size: 12px;
    padding: 12px;
    background: rgba(0,0,0,0.2);
    border-radius: 6px;
}

/* Lightbox Modal */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.gallery-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.lightbox-dialog {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #111817;
    border: 1px solid rgba(189, 154, 116, 0.4);
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.lightbox-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #232d2b;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover {
    background: #cf7164;
    transform: scale(1.1);
}

.lightbox-image-wrap {
    max-width: 85vw;
    max-height: 75vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.lightbox-img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    display: block;
}

.lightbox-title {
    margin-top: 10px;
    color: #dec3a2;
    font-size: 13px;
    text-align: center;
}
