:root {
  --accent: #b8d4ea;
  --accent-2: #dce8f2;
  --accent-soft: rgba(184, 212, 234, 0.14);
  --panel: rgba(22, 26, 32, 0.38);
  --panel-solid: rgba(22, 26, 32, 0.62);
  --panel-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.14);
  --border-2: rgba(255, 255, 255, 0.24);
  --text: #f4f7fa;
  --muted: #c5d0db;
  --dim: #9aa8b6;
  --shadow: 0 8px 32px rgba(8, 12, 18, 0.28);
  --font: 'Geist Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #0c0f14; color: var(--text); font-family: var(--font); overflow: hidden; -webkit-font-smoothing: antialiased; }
#app { position: fixed; inset: 0; }
#viewport { position: absolute; inset: 0; width: 100%; height: 100%; display: block; outline: none; cursor: grab; }
#viewport:active { cursor: grabbing; }
button, select, input { font-family: inherit; color: inherit; }
svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.overline { font-size: 11px; letter-spacing: 0.12em; font-weight: 500; color: var(--dim); text-transform: uppercase; font-family: var(--mono); }

/* ---------- 面板 ---------- */
#panel { position: absolute; top: 16px; right: 16px; bottom: 16px; width: 364px; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--border); backdrop-filter: blur(20px) saturate(1.12); -webkit-backdrop-filter: blur(20px) saturate(1.12); box-shadow: var(--shadow); overflow: hidden; transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s; z-index: 5; }
#panel.collapsed { transform: translateX(calc(100% - 44px)); }
#panel.collapsed .panel-body, #panel.collapsed .panel-foot, #panel.collapsed #panel-modes { opacity: 0; pointer-events: none; }
#panel.collapsed #btn-collapse svg { transform: rotate(180deg); }
#panel.collapsed #btn-collapse { position: absolute; left: 5px; top: 18px; }
#panel.collapsed .panel-head > div { opacity: 0; }
#panel.collapsed { cursor: pointer; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 16px 16px 12px; border-bottom: 1px solid var(--border); }
.panel-head h2 { margin: 4px 0 0; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.icon-btn { width: 34px; height: 34px; border: 1px solid var(--border); background: transparent; display: grid; place-items: center; cursor: pointer; transition: background 0.15s, border-color 0.15s, color 0.15s; color: var(--muted); }
.icon-btn:hover { background: var(--panel-2); border-color: var(--border-2); color: var(--text); }
.icon-btn svg { transition: transform 0.3s; }
.act { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; border: 1px solid var(--border); background: transparent; font-size: 13px; font-weight: 500; cursor: pointer; transition: background 0.15s, border-color 0.15s, color 0.15s; }
.act:hover { background: var(--panel-2); color: var(--text); border-color: var(--border-2); }
.act:active { opacity: 0.85; }
.act:disabled { opacity: 0.45; cursor: default; }
.act.primary { background: #e4b15a; border-color: #e4b15a; color: #2a2116; }
.act.primary:hover { background: #f0c57a; border-color: #f0c57a; color: #2a2116; }

#panel-modes { display: flex; gap: 16px; padding: 0 16px; border-bottom: 1px solid var(--border); }
#panel-modes .mode { appearance: none; background: transparent; border: 0; border-bottom: 2px solid transparent; color: var(--dim); font-size: 13px; font-weight: 500; padding: 8px 0 10px; cursor: pointer; }
#panel-modes .mode.on { color: var(--text); border-bottom-color: #e4b15a; }
#panel-modes .mode:focus-visible, .interest:focus-visible, .stop-hit:focus-visible, .route-pin:focus-visible { outline: 2px solid #e4b15a; outline-offset: 2px; }
#panel-body[hidden], #route-body[hidden], #patrol-body[hidden] { display: none !important; }
.panel-body { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 8px; display: grid; gap: 0; align-content: start; scrollbar-width: thin; scrollbar-color: var(--border-2) transparent; transition: opacity 0.2s; }
.panel-body::-webkit-scrollbar { width: 6px; }
.panel-body::-webkit-scrollbar-thumb { background: var(--border-2); }
.scene-group { margin: 12px 4px 6px; padding-top: 8px; border-top: 1px solid var(--border); font-size: 10px; letter-spacing: 0.1em; font-weight: 500; color: var(--dim); font-family: var(--mono); text-transform: uppercase; }
.scene-group:first-child { border-top: 0; margin-top: 4px; padding-top: 0; }
.scene { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px; border: 1px solid transparent; background: transparent; cursor: pointer; text-align: left; transition: background 0.15s, border-color 0.15s; }
.scene:hover { background: var(--panel-2); border-color: var(--border); }
.scene.on { border-color: var(--accent); background: var(--accent-soft); }
.scene .thumb { position: relative; width: 58px; height: 46px; flex: none; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15); }
.scene .thumb svg { width: 20px; height: 20px; color: rgba(255, 255, 255, 0.92); }
.scene .thumb em { position: absolute; right: 4px; bottom: 2px; font-style: normal; font-family: var(--mono); font-size: 9px; color: rgba(255, 255, 255, 0.75); }
.scene .txt { display: grid; gap: 2px; min-width: 0; }
.scene .txt b { font-size: 13px; font-weight: 500; letter-spacing: -0.01em; color: var(--text); }
.scene .txt small { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scene .txt i { font-style: normal; font-size: 10px; font-family: var(--mono); color: var(--dim); }
.panel-foot { padding: 12px; border-top: 1px solid var(--border); transition: opacity 0.2s; }
.foot-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
#btn-walk { grid-column: 1 / -1; }
#btn-walk[aria-pressed='true'] { background: #e4b15a; border-color: #e4b15a; color: #2a2116; }
#btn-trees { grid-column: 1 / -1; }
#btn-trees[hidden], #tree-inspection-note[hidden] { display: none; }
#tree-inspection-note { position: absolute; z-index: 7; bottom: 64px; left: 50%; transform: translateX(-50%); padding: 8px 12px; color: var(--muted); background: var(--panel-solid); border: 1px solid var(--border); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); font-size: 12px; font-family: var(--mono); pointer-events: none; }
.attrib { margin-top: 10px; font-size: 10px; color: var(--dim); text-align: center; line-height: 1.5; font-family: var(--mono); }

/* ---------- 小地图 ---------- */
#minimap { position: absolute; left: 20px; bottom: 20px; width: 340px; padding: 10px; background: var(--panel); border: 1px solid var(--border); backdrop-filter: blur(20px) saturate(1.12); -webkit-backdrop-filter: blur(20px) saturate(1.12); box-shadow: var(--shadow); }
.mm-head { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); padding: 0 2px 8px; font-family: var(--mono); }
.mm-head span:first-child { color: var(--text); font-weight: 500; }
#mm-canvas { width: 320px; height: 138px; display: block; cursor: crosshair; background: rgba(12, 16, 22, 0.65); border: 1px solid var(--border); }
.legend { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4px 10px; margin-top: 8px; font-size: 11px; color: var(--muted); font-family: var(--mono); }
.legend span { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.legend i { width: 8px; height: 8px; flex: none; }

/* ---------- 标注 ---------- */
#labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.lbl { position: absolute; left: 0; top: 0; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; transition: opacity 0.25s; will-change: transform; }
.lbl .card { padding: 4px 10px; background: var(--panel-solid); border: 1px solid var(--border); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); text-align: center; white-space: nowrap; }
.lbl .nm { display: block; font-size: 12px; font-weight: 500; color: var(--text); letter-spacing: -0.01em; }
.lbl .sb { display: block; font-size: 10px; color: var(--muted); letter-spacing: 0.04em; margin-top: 2px; font-family: var(--mono); }
.lbl .pin { width: 1px; height: 22px; background: linear-gradient(var(--border-2), transparent); }
.lbl.t0 .card { border-color: var(--accent); background: rgba(28, 36, 46, 0.72); }
.lbl.t0 .nm { font-size: 13px; color: #fafcff; }
.lbl.district .card { background: rgba(22, 26, 32, 0.45); border-style: dashed; }
.lbl.district .nm { color: var(--muted); font-size: 12px; letter-spacing: 0.06em; font-family: var(--mono); text-transform: uppercase; }
body.no-labels #labels { display: none; }

/* ---------- 提示与状态 ---------- */
#hint { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; gap: 14px; padding: 8px 14px; background: var(--panel); border: 1px solid var(--border); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: var(--shadow); font-size: 11px; color: var(--dim); white-space: nowrap; margin-left: -190px; font-family: var(--mono); }
#hint b { color: var(--muted); font-weight: 500; }
#hint .walk { display: none; }
body.walk-mode #hint .orbit { display: none; }
body.walk-mode #hint .walk { display: flex; }
body.walk-mode #viewport, body.walk-mode #viewport:active { cursor: crosshair; }
#status { position: absolute; left: 50%; top: 24px; transform: translateX(-50%); display: flex; align-items: center; gap: 9px; padding: 8px 12px; background: var(--panel-solid); border: 1px solid var(--border-2); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); font-size: 12px; color: var(--muted); font-family: var(--mono); transition: opacity 0.2s; margin-left: -190px; }
#status.hidden, #toast.hidden { opacity: 0; pointer-events: none; }
.spin { width: 12px; height: 12px; border: 1px solid var(--border); border-top-color: var(--accent); animation: spin 0.7s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
#toast { position: absolute; left: 50%; bottom: 70px; transform: translateX(-50%); padding: 8px 14px; background: var(--panel-solid); border: 1px solid var(--border-2); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); font-size: 12px; color: var(--muted); font-family: var(--mono); transition: opacity 0.25s; margin-left: -190px; }

/* ---------- 加载 ---------- */
#loader { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 35%, #3d4a5c 0%, #1a2230 42%, #0c0f14 78%); z-index: 20; transition: opacity 0.6s; }
#loader.done { opacity: 0; pointer-events: none; }
.loader-inner { text-align: center; padding: 24px; border: 1px solid var(--border); background: var(--panel); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); min-width: 320px; }
.loader-title { font-size: 22px; font-weight: 600; margin: 12px 0 18px; letter-spacing: -0.03em; color: #fafcff; }
.loader-bar { width: 100%; height: 2px; background: var(--border); overflow: hidden; margin: 0 auto; }
.loader-bar i { display: block; width: 40%; height: 100%; background: linear-gradient(90deg, transparent, var(--accent), transparent); animation: load 1.2s ease-in-out infinite; }
@keyframes load { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
.loader-sub { margin-top: 14px; font-size: 12px; color: var(--muted); font-family: var(--mono); line-height: 1.5; }

body.ui-hidden #panel, body.ui-hidden #live-clock, body.ui-hidden #minimap, body.ui-hidden #hint, body.ui-hidden #route-pins { opacity: 0; pointer-events: none; }

/* ---------- 兴趣行程 ---------- */
.route-lead { margin: 4px 4px 12px; font-size: 13px; line-height: 1.55; color: var(--muted); }
.interest-row { display: flex; flex-wrap: wrap; gap: 6px; }
.interest { border: 1px solid var(--border); background: transparent; color: var(--muted); font-size: 13px; line-height: 1; padding: 7px 10px; cursor: pointer; }
.theme-list { display: grid; gap: 6px; margin-bottom: 4px; }
.theme-card { display: grid; gap: 3px; text-align: left; border: 1px solid var(--border); background: transparent; color: var(--muted); padding: 9px 10px; cursor: pointer; font: inherit; }
.theme-card:focus-visible { outline: 2px solid #e4b15a; outline-offset: 2px; }
.theme-card.on { border-color: #e4b15a; background: rgba(228, 177, 90, 0.14); }
.theme-name { font-size: 14px; color: #f6e7c8; }
.theme-tag, .theme-meta { font-size: 12px; line-height: 1.45; }
.theme-or { margin-top: 12px; margin-bottom: 6px; }
.route-theme { margin: 10px 4px 2px; font-size: 14px; color: #f6e7c8; }
.interest.on { color: #f6e7c8; border-color: #e4b15a; background: rgba(228, 177, 90, 0.14); }
#route-go { width: 100%; margin-top: 12px; }
#route-result { margin-top: 14px; }
.route-summary { margin: 0; font-size: 13px; font-weight: 500; color: var(--text); letter-spacing: -0.01em; }
.route-note, .route-live { margin: 6px 0 0; font-size: 11px; line-height: 1.5; color: var(--dim); font-family: var(--mono); }
.route-live { color: #f0d7a8; }
.stop { padding: 10px 2px 8px; border-top: 1px solid var(--border); }
.stop-list { margin-top: 10px; }
.stop-hit { display: grid; grid-template-columns: 22px 1fr; gap: 8px; width: 100%; padding: 0; border: 0; background: transparent; text-align: left; cursor: pointer; color: inherit; }
.stop-idx { font-family: var(--mono); font-size: 12px; color: #e4b15a; padding-top: 2px; }
.stop-name, .stop-meta, .stop-preview { display: block; }
.stop-name { font-size: 14px; font-weight: 500; letter-spacing: -0.01em; }
.stop.on .stop-name { color: #f6e7c8; }
.stop-meta { margin-top: 3px; font-family: var(--mono); font-size: 10px; line-height: 1.4; color: var(--dim); }
.stop-preview { margin-top: 4px; font-size: 12px; line-height: 1.45; color: var(--muted); white-space: normal; }
.stop-links { display: flex; gap: 12px; margin: 4px 0 0 30px; }
.stop-links a { color: var(--dim); font-size: 11px; font-family: var(--mono); }
.stop-links a:hover { color: var(--text); }
.route-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 12px; }
#route-clear { grid-column: 1 / -1; }
#route-pins { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.route-pin { position: absolute; left: 0; top: 0; pointer-events: auto; min-width: 18px; height: 18px; padding: 0 4px; border: 1px solid #e4b15a; background: rgba(32, 26, 18, 0.88); color: #f6e7c8; font-family: var(--mono); font-size: 11px; line-height: 16px; cursor: pointer; opacity: 0; }
.route-pin.on { background: #e4b15a; color: #2a2116; }

/* ---------- 白鹭湾巡检 ---------- */
#patrol-tags { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 3; }
#patrol-tags[hidden] { display: none; }
.pt-area { position: absolute; left: 0; top: 0; padding: 3px 9px; border: 1px solid rgba(228, 177, 90, 0.7); background: rgba(32, 26, 18, 0.55); color: #f6e7c8; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; pointer-events: none; transition: opacity 0.25s; will-change: transform; }
.pt-tag { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px 0 0; border: 1px solid var(--border-2); background: rgba(16, 20, 26, 0.82); color: var(--text); font-size: 11px; cursor: pointer; will-change: transform; transition: opacity 0.2s; }
.pt-tag b { display: grid; place-items: center; width: 22px; height: 20px; margin-right: 0; font-weight: 600; color: #10161c; }
.pt-tag.ground b, .pt-item.agent.ground u { background: #5fd0a4; }
.pt-tag.air b, .pt-item.agent.air u { background: #6fb4ff; }
.pt-tag.human b, .pt-item.agent.human u { background: #f2b84b; }
.pt-tag.on { border-color: #fff4dc; }
.pt-tag:focus-visible, .chip:focus-visible, .pt-hit:focus-visible, #pt-input:focus-visible { outline: 2px solid #e4b15a; outline-offset: 2px; }
body.ui-hidden #patrol-tags { opacity: 0; pointer-events: none; }
.pt-demo { width: 100%; height: 36px; margin-bottom: 8px; }
.pt-demo[aria-pressed="true"] { border-color: #e4b15a; background: rgba(228, 177, 90, 0.14); color: #f6e7c8; }
#patrol-caption { position: absolute; top: 16px; left: calc((100vw - 380px) / 2); transform: translateX(-50%); width: max-content; min-width: 280px; max-width: min(560px, calc(100vw - 800px)); padding: 10px 16px; background: var(--panel-solid); border: 1px solid var(--border-2); border-left: 3px solid #e4b15a; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); color: var(--text); font-size: 14px; line-height: 1.55; z-index: 4; pointer-events: none; }
#patrol-caption[hidden] { display: none; }
.pt-bar { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 6px; }
.pt-bar .act { height: 32px; padding: 0 6px; font-size: 12px; }
.pt-bar .act.on { border-color: #e4b15a; background: rgba(228, 177, 90, 0.14); color: #f6e7c8; }
.pt-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 10px; background: var(--border); border: 1px solid var(--border); }
.pt-stats div { display: grid; gap: 2px; padding: 7px 8px; background: rgba(16, 20, 26, 0.55); }
.pt-stats i { font-style: normal; font-size: 10px; color: var(--dim); font-family: var(--mono); }
.pt-stats b { font-size: 15px; font-weight: 500; font-family: var(--mono); letter-spacing: -0.02em; }
.pt-title { margin: 16px 2px 6px; font-size: 10px; letter-spacing: 0.1em; color: var(--dim); font-family: var(--mono); }
.pt-cmd { display: grid; grid-template-columns: 1fr auto; gap: 6px; }
#pt-input { min-width: 0; height: 34px; padding: 0 10px; border: 1px solid var(--border); background: rgba(12, 16, 22, 0.6); color: var(--text); font-size: 13px; }
#pt-input::placeholder { color: var(--dim); }
.pt-examples, .pt-inject { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.pt-inject { margin-top: 0; }
.chip { border: 1px solid var(--border); background: transparent; color: var(--muted); font-size: 11px; line-height: 1; padding: 6px 8px; cursor: pointer; }
.chip:hover { color: var(--text); border-color: var(--border-2); background: var(--panel-2); }
.chip.lv2 { border-color: rgba(255, 154, 77, 0.55); }
.chip.lv3 { border-color: rgba(255, 90, 77, 0.7); }
.pt-reply { min-height: 18px; margin-top: 8px; font-size: 12px; line-height: 1.5; color: #f0d7a8; }
.pt-list { display: grid; gap: 6px; }
.pt-empty { padding: 10px; font-size: 12px; color: var(--dim); border: 1px dashed var(--border); }
.pt-item { display: grid; gap: 6px; padding: 8px 9px; border: 1px solid var(--border); border-left-width: 3px; }
.pt-item.lv0 { border-left-color: #9fb2c4; }
.pt-item.lv1 { border-left-color: #f2d06b; }
.pt-item.lv2 { border-left-color: #ff9a4d; }
.pt-item.lv3 { border-left-color: #ff5a4d; }
.pt-item.done { opacity: 0.55; border-left-color: #59d68e; }
.pt-item.agent { grid-template-columns: 1fr auto; align-items: center; border-left-width: 1px; }
.pt-item.agent.on { border-color: #fff4dc; }
.pt-hit { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; width: 100%; padding: 0; border: 0; background: transparent; text-align: left; cursor: pointer; color: inherit; font: inherit; }
.pt-hit b { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; }
.pt-hit u { display: inline-grid; place-items: center; width: 18px; height: 18px; text-decoration: none; font-size: 11px; color: #10161c; }
.pt-hit em { font-style: normal; font-size: 11px; color: var(--muted); font-family: var(--mono); }
.pt-hit small { grid-column: 1 / -1; font-size: 11px; color: var(--dim); line-height: 1.4; }
.steps { display: flex; flex-wrap: wrap; gap: 4px; }
.step { padding: 3px 6px; font-size: 10px; font-family: var(--mono); border: 1px solid var(--border); color: var(--dim); }
.step.enroute { color: #9fd0ff; border-color: rgba(111, 180, 255, 0.5); }
.step.working { color: #f6e7c8; border-color: #e4b15a; background: rgba(228, 177, 90, 0.14); }
.step.done { color: #86e0ad; border-color: rgba(89, 214, 142, 0.5); }
.pt-log { margin: 0; padding: 0; list-style: none; display: grid; gap: 3px; max-height: 220px; overflow-y: auto; font-size: 11px; line-height: 1.45; }
.pt-log li { display: grid; grid-template-columns: 38px 1fr; gap: 6px; color: var(--muted); }
.pt-log li i { font-style: normal; font-family: var(--mono); color: var(--dim); }
.pt-log li.lv2, .pt-log li.lv3 { color: #ffc29a; }
#patrol-body.panel-body { display: block; }

@media (max-width: 1100px) {
  #hint { display: none; }
}
#btn-show { position: absolute; right: 14px; bottom: 14px; z-index: 6; opacity: 0; pointer-events: none; transition: opacity 0.3s; background: var(--panel); border-color: var(--border); }
body.ui-hidden #btn-show { opacity: 1; pointer-events: auto; }

@media (max-width: 760px) {
  #tree-inspection-note { bottom: 156px; white-space: nowrap; }
  #panel { top: auto; left: 8px; right: 8px; bottom: 8px; width: auto; }
  .panel-head { display: none; }
  #panel-modes { padding: 8px 10px 0; }
  #route-body.panel-body, #patrol-body.panel-body { display: block; overflow-x: hidden; overflow-y: auto; max-height: 42vh; }
  .panel-body { display: flex; overflow-x: auto; overflow-y: hidden; padding: 8px; gap: 0; scroll-snap-type: x proximity; }
  .panel-body::-webkit-scrollbar { height: 0; }
  .scene-group { display: none; }
  .scene { flex: none; width: 196px; padding: 6px; gap: 9px; scroll-snap-align: start; border: 1px solid var(--border); margin-right: 6px; }
  .scene .thumb { width: 46px; height: 40px; }
  .scene .thumb em { display: none; }
  .panel-foot { display: flex; align-items: center; gap: 8px; padding: 0 8px 8px; border-top: 0; }
  .foot-actions { display: flex; flex: none; flex-wrap: wrap; }
  #btn-walk { flex: 1 0 100%; }
  .foot-actions .act { height: 28px; padding: 0 9px; font-size: 11px; }
  #btn-shot { display: none; }
  .attrib { margin: 0; flex: 1; text-align: right; font-size: 9px; }
  #minimap { display: none; }
  #status, #toast { margin-left: 0; }
}

@media (max-width: 1100px) {
  #patrol-caption { left: 50%; top: 12px; min-width: 0; max-width: calc(100vw - 32px); }
}

/* ---------- 实时时钟 ---------- */
#live-clock { position: absolute; top: 20px; left: 20px; z-index: 4; min-width: 176px; padding: 10px 14px 11px; background: var(--panel); border: 1px solid var(--border); border-left: 3px solid var(--dim); backdrop-filter: blur(16px) saturate(1.12); -webkit-backdrop-filter: blur(16px) saturate(1.12); box-shadow: var(--shadow); font-family: var(--mono); transition: opacity 0.3s; pointer-events: none; }
#live-clock.is-live { border-left-color: #e4b15a; }
#live-clock .lc-top { display: flex; align-items: center; gap: 7px; font-size: 10px; letter-spacing: 0.08em; color: var(--dim); }
#live-clock .lc-top b { font-weight: 500; color: var(--muted); }
#live-clock .lc-top span { margin-left: auto; }
#live-clock .lc-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--dim); flex: none; }
#live-clock.is-live .lc-dot { background: #e4b15a; box-shadow: 0 0 0 0 rgba(228, 177, 90, 0.6); animation: lc-pulse 2s ease-out infinite; }
#live-clock #lc-time { margin-top: 6px; font-size: 28px; line-height: 1; font-weight: 500; letter-spacing: 0.02em; color: var(--text); font-variant-numeric: tabular-nums; }
#live-clock #lc-date { margin-top: 6px; font-size: 11px; color: var(--muted); white-space: nowrap; }
#live-clock #lc-resume { appearance: none; margin-top: 8px; width: 100%; height: 26px; border: 1px solid var(--border-2); background: var(--accent-soft); color: var(--text); font: inherit; font-size: 11px; cursor: pointer; pointer-events: auto; }
#live-clock #lc-resume:hover { background: var(--panel-2); }
#live-clock #lc-resume[hidden] { display: none; }
@keyframes lc-pulse { 70% { box-shadow: 0 0 0 7px rgba(228, 177, 90, 0); } 100% { box-shadow: 0 0 0 0 rgba(228, 177, 90, 0); } }
@media (prefers-reduced-motion: reduce) { #live-clock.is-live .lc-dot { animation: none; } }
@media (max-width: 760px) {
  #live-clock { top: 10px; left: 10px; min-width: 0; padding: 7px 10px 8px; }
  #live-clock .lc-top span, #live-clock #lc-date { display: none; }
  #live-clock #lc-time { font-size: 20px; margin-top: 4px; }
}
