/* =========================================================
   Travel Planner — 主题令牌 + 响应式布局
   主题：light 白色 · blue 海蓝 · gold 黑金 · night 夜间
   布局：lay-side 桌面/iPad 横屏 · lay-compact 横屏手机/折叠屏 · lay-sheet 手机/竖屏平板 · lay-span 双屏
   ========================================================= */
:root, [data-theme="gold"] {
  --bg: #05070d;
  --bg-grad: radial-gradient(ellipse at 60% 40%, #0d1424 0%, #05070d 70%);
  --panel: rgba(12, 17, 28, 0.80);
  --panel-solid: #0f1522;
  --panel-head: rgba(18, 24, 38, 0.96);
  --fill: rgba(255, 255, 255, 0.035);
  --fill-2: rgba(255, 255, 255, 0.065);
  --fill-3: rgba(255, 255, 255, 0.10);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.15);
  --text: #e8ecf3;
  --text-2: #c3cad6;
  --muted: #8b95a8;
  --accent: #f5c26b;
  --accent-2: #ffdf9e;
  --accent-grad: linear-gradient(180deg, #f8cf82, #e9ac46);
  --accent-ink: #1d1405;
  --accent-soft: rgba(245, 194, 107, 0.12);
  --ok: #5eead4; --warn: #fbbf24; --err: #fb7185; --info: #7cc4ff;
  --ok-bg: rgba(94, 234, 212, 0.09); --warn-bg: rgba(251, 191, 36, 0.10); --err-bg: rgba(251, 113, 133, 0.12); --info-bg: rgba(124, 196, 255, 0.08);
  --warn-ink: #fde3a1; --err-ink: #ffc2cc; --info-ink: #b5d9ff;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --blur: blur(22px) saturate(140%);
  --icon-mix: 0%;              /* 类型色在浅色主题下加深 */
  --top-fade: linear-gradient(to bottom, rgba(5, 7, 13, 0.85), rgba(5, 7, 13, 0));
  --scrim: rgba(2, 4, 8, 0.55);
  --serif: "Songti SC", "Noto Serif SC", "Noto Serif JP", "New York", Georgia, serif;
  color-scheme: dark;
}
[data-theme="blue"] {
  --bg: #04142b;
  --bg-grad: radial-gradient(ellipse at 60% 35%, #0e3463 0%, #061a36 45%, #030d1d 100%);
  --panel: rgba(8, 30, 60, 0.78);
  --panel-solid: #0a2347;
  --panel-head: rgba(10, 36, 72, 0.96);
  --fill: rgba(160, 210, 255, 0.05);
  --fill-2: rgba(160, 210, 255, 0.09);
  --fill-3: rgba(160, 210, 255, 0.14);
  --line: rgba(160, 210, 255, 0.12);
  --line-2: rgba(160, 210, 255, 0.22);
  --text: #e8f3ff;
  --text-2: #c2d8f0;
  --muted: #8fb0d4;
  --accent: #38bdf8;
  --accent-2: #7dd3fc;
  --accent-grad: linear-gradient(180deg, #5ccbfa, #1e9fe0);
  --accent-ink: #022036;
  --accent-soft: rgba(56, 189, 248, 0.14);
  --top-fade: linear-gradient(to bottom, rgba(4, 20, 43, 0.85), rgba(4, 20, 43, 0));
  --scrim: rgba(2, 10, 24, 0.55);
}
[data-theme="light"] {
  --bg: #eef2f7;
  --bg-grad: radial-gradient(ellipse at 62% 38%, #ffffff 0%, #e8eef6 55%, #dfe6f0 100%);
  --panel: rgba(255, 255, 255, 0.84);
  --panel-solid: #ffffff;
  --panel-head: rgba(255, 255, 255, 0.97);
  --fill: rgba(15, 23, 42, 0.035);
  --fill-2: rgba(15, 23, 42, 0.06);
  --fill-3: rgba(15, 23, 42, 0.09);
  --line: rgba(15, 23, 42, 0.08);
  --line-2: rgba(15, 23, 42, 0.15);
  --text: #0f172a;
  --text-2: #334155;
  --muted: #64748b;
  --accent: #2563eb;
  --accent-2: #1d4ed8;
  --accent-grad: linear-gradient(180deg, #3b82f6, #2563eb);
  --accent-ink: #ffffff;
  --accent-soft: rgba(37, 99, 235, 0.09);
  --ok: #0d9488; --warn: #b45309; --err: #e11d48; --info: #2563eb;
  --ok-bg: rgba(13, 148, 136, 0.09); --warn-bg: rgba(245, 158, 11, 0.12); --err-bg: rgba(225, 29, 72, 0.08); --info-bg: rgba(37, 99, 235, 0.07);
  --warn-ink: #92400e; --err-ink: #9f1239; --info-ink: #1e40af;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.14);
  --icon-mix: 38%;
  --top-fade: linear-gradient(to bottom, rgba(238, 242, 247, 0.92), rgba(238, 242, 247, 0));
  --scrim: rgba(15, 23, 42, 0.28);
  color-scheme: light;
}
[data-theme="night"] {
  --bg: #000000;
  --bg-grad: #000000;
  --panel: rgba(10, 10, 11, 0.88);
  --panel-solid: #0b0b0c;
  --panel-head: rgba(14, 14, 15, 0.97);
  --fill: rgba(255, 255, 255, 0.03);
  --fill-2: rgba(255, 255, 255, 0.055);
  --fill-3: rgba(255, 255, 255, 0.085);
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --text: #d6d3d1;
  --text-2: #a8a29e;
  --muted: #78716c;
  --accent: #f59e0b;
  --accent-2: #fbbf24;
  --accent-grad: linear-gradient(180deg, #f59e0b, #d97706);
  --accent-ink: #1c1003;
  --accent-soft: rgba(245, 158, 11, 0.11);
  --ok: #34d399; --info: #93c5fd;
  --top-fade: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0));
  --scrim: rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); overflow: hidden; -webkit-font-smoothing: antialiased; }
body { font: 13px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  touch-action: manipulation; overscroll-behavior: none; transition: background-color 0.3s; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
kbd { font: 10px "SF Mono", ui-monospace, Menlo, monospace; padding: 1px 5px; border: 1px solid var(--line-2); border-radius: 4px; color: var(--muted); }
.mono { font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace; letter-spacing: 0.02em; }
.up { text-transform: uppercase; }
.muted { color: var(--muted); }
.small { font-size: 11.5px; }
.spacer { flex: 1; }
[hidden] { display: none !important; }
::selection { background: var(--accent-soft); }

#globe { position: fixed; inset: 0; background: var(--bg-grad); }
.globe-fail { display: grid; place-items: center; height: 100%; color: var(--muted); }
.scene-tooltip .arc-tip, .arc-tip { font: 12px -apple-system, sans-serif; background: var(--panel-head); border: 1px solid var(--line-2); padding: 6px 10px; border-radius: 8px; color: var(--text); }

/* ---------- 顶栏 ---------- */
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; gap: 8px;
  height: calc(56px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
  background: var(--top-fade); pointer-events: none; }
.topbar > * { pointer-events: auto; }
.brand { font: 600 15px var(--serif); letter-spacing: 0.04em; display: flex; align-items: center; gap: 9px; color: var(--accent-2); margin-right: 6px; white-space: nowrap; }
.logo { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--accent); position: relative; box-shadow: 0 0 12px var(--accent-soft); flex: none; }
.logo::after { content: ""; position: absolute; inset: 3px -4px auto -4px; height: 6px; border-top: 2px solid var(--accent); border-radius: 50%; transform: rotate(-18deg); }
.trip-switch, .kbar, .icon-btn { height: 36px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 11px; -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.trip-switch { display: flex; align-items: center; gap: 8px; padding: 0 12px; min-width: 0; max-width: 380px; }
.trip-switch .ts-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trip-switch i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.caret { color: var(--muted); font-size: 10px; }
.kbar { display: flex; align-items: center; gap: 10px; padding: 0 8px 0 12px; color: var(--muted); }
.kbar .k-t { margin-right: 16px; }
.icon-btn { width: 36px; display: grid; place-items: center; font-size: 15px; flex: none; padding: 0; }
.icon-btn:hover, .kbar:hover, .trip-switch:hover { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.icon-btn.sm { width: 28px; height: 28px; font-size: 13px; border-radius: 8px; }

/* ---------- 面板 ---------- */
.panel { position: fixed; z-index: 10; background: var(--panel); border: 1px solid var(--line); border-radius: 20px;
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--shadow); }
.panel.left { display: flex; flex-direction: column; overflow: hidden; }
#leftInner { position: relative; flex: 1; overflow: auto; padding: 18px 16px 24px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.grabber { display: none; }
.panel.right { overflow: hidden; display: flex; flex-direction: column; animation: slideIn 0.28s cubic-bezier(.2, .8, .2, 1); transition: transform 0.25s ease; }
.d-scroll { overflow: auto; flex: 1; padding-bottom: 16px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
@keyframes slideIn { from { transform: translateX(24px); opacity: 0; } }
@keyframes sheetIn { from { transform: translateY(100%); } }

/* 桌面 / iPad 横屏 */
body.lay-side { --left-w: 420px; --detail-w: 370px; }
@media (max-width: 1279px) { body.lay-side { --left-w: 380px; --detail-w: 340px; } }
body.lay-compact { --left-w: 340px; --detail-w: 330px; }
body.lay-side .panel.left, body.lay-compact .panel.left, body.lay-span .panel.left {
  top: calc(64px + env(safe-area-inset-top)); bottom: max(14px, env(safe-area-inset-bottom)); left: max(14px, env(safe-area-inset-left)); width: var(--left-w); }
body.lay-side .panel.right, body.lay-compact .panel.right, body.lay-span .panel.right {
  top: calc(64px + env(safe-area-inset-top)); bottom: max(14px, env(safe-area-inset-bottom)); right: max(14px, env(safe-area-inset-right));
  width: min(var(--detail-w), calc(100vw - var(--left-w) - 42px)); }
body.lay-compact .topbar { height: calc(50px + env(safe-area-inset-top)); }
body.lay-compact .panel.left, body.lay-compact .panel.right { top: calc(56px + env(safe-area-inset-top)); bottom: max(8px, env(safe-area-inset-bottom)); }
body.lay-compact #leftInner { padding: 14px 12px 20px; }
body.lay-compact .stats { grid-template-columns: repeat(3, 1fr); }

/* 折叠屏 / 双屏跨屏：左屏放面板，右屏放地球与详情 */
body.lay-span { --left-w: calc(env(viewport-segment-width 0 0, 50vw) - 28px); --detail-w: 380px; }
body.lay-span .panel.right { left: calc(env(viewport-segment-left 1 0, 50vw) + 14px); right: auto; width: min(380px, calc(env(viewport-segment-width 1 0, 50vw) - 28px)); }

/* 手机 / iPad mini 竖屏 / 平板竖屏：底部抽屉 */
body.lay-sheet .topbar { height: calc(52px + env(safe-area-inset-top)); padding-left: max(10px, env(safe-area-inset-left)); padding-right: max(10px, env(safe-area-inset-right)); gap: 6px; }
body.lay-sheet .brand-t, body.lay-sheet .kbar .k-t, body.lay-sheet .kbar kbd, body.lay-sheet .hide-sm { display: none; }
body.lay-sheet .brand { margin-right: 0; }
body.lay-sheet .trip-switch { flex: 1 1 auto; max-width: none; }
body.lay-sheet .kbar { width: 36px; padding: 0; justify-content: center; font-size: 17px; color: var(--text); }
body.lay-sheet .panel.left { left: 0; right: 0; bottom: 0; top: auto; height: calc(100dvh - 56px - env(safe-area-inset-top)); width: auto;
  border-radius: 22px 22px 0 0; border-bottom: 0; transition: transform 0.34s cubic-bezier(.2, .8, .2, 1); will-change: transform; }
body.lay-sheet .panel.left.no-anim { transition: none; }
body.lay-sheet .grabber { display: block; flex: none; height: 24px; touch-action: none; cursor: grab; }
body.lay-sheet .grabber::before { content: ""; display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--line-2); margin: 9px auto 0; }
body.lay-sheet #leftInner { padding: 2px max(16px, calc((100% - 760px) / 2)) 24px; }
body.lay-sheet .trip-head, body.lay-sheet .stats, body.lay-sheet .tabs { touch-action: pan-x; }
body.lay-sheet .panel.left[data-sheet="peek"] #leftInner { overflow: hidden; }
body.lay-sheet .panel.right { left: 0; right: 0; bottom: 0; top: auto; width: auto; max-width: 720px; margin: 0 auto; max-height: min(66dvh, calc(100dvh - 120px));
  border-radius: 22px 22px 0 0; border-bottom: 0; z-index: 15; animation: sheetIn 0.32s cubic-bezier(.2, .8, .2, 1); padding-bottom: env(safe-area-inset-bottom); }
body.lay-sheet .panel.right.no-anim { transition: none; }
body.lay-sheet .d-head { padding-top: 22px; touch-action: none; }
body.lay-sheet .d-grab { position: absolute; top: 8px; left: 50%; width: 40px; height: 5px; margin-left: -20px; border-radius: 3px; background: var(--line-2); }
.d-grab { display: none; }
body.lay-sheet .d-grab { display: block; }

/* ---------- 行程头 ---------- */
.trip-head { padding: 2px 4px 12px; }
.trip-title { font: 600 22px/1.25 var(--serif); letter-spacing: 0.01em; outline: none; border-radius: 6px; padding: 2px 4px; margin: -2px -4px; }
.trip-title:focus { background: var(--fill-2); }
.trip-sub { color: var(--muted); margin-top: 4px; }
.trip-sub b { color: var(--accent); font-weight: 500; }
.clock { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; font-size: 12px; color: var(--muted); }
.clock b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.clock em { font-style: normal; font-size: 11px; color: var(--accent); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 13px; overflow: hidden; margin-bottom: 14px; }
.stat { background: var(--panel-solid); padding: 9px 10px; min-width: 0; }
[data-theme="gold"] .stat, [data-theme="blue"] .stat { background: color-mix(in srgb, var(--panel-solid) 88%, transparent); }
.stat b { display: block; font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 11px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.tabs { display: flex; gap: 2px; padding: 3px; margin-bottom: 14px; background: var(--fill); border: 1px solid var(--line); border-radius: 12px; }
.tabs button { flex: 1; border: 0; background: none; padding: 7px 4px; border-radius: 9px; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tabs button small { font-size: 10.5px; opacity: 0.8; }
.tabs button.on { background: var(--panel-solid); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18); }
.trip-warns { margin: -6px 0 12px; }
.trip-warns .warn { cursor: pointer; }

.add-bar { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-bottom: 12px; }
.add-bar button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 6px; background: var(--fill); border: 1px solid var(--line); border-radius: 11px; font-size: 11px; color: var(--muted); transition: 0.15s; min-width: 0; }
.add-bar button span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
.add-bar button i { font-style: normal; font-size: 16px; color: color-mix(in srgb, var(--c), #000 var(--icon-mix)); }
.add-bar button:hover { border-color: var(--c); color: var(--text); background: color-mix(in srgb, var(--c) 10%, transparent); }

.filters { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.chips { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; min-width: 0; flex: 1 1 auto; }
.chips::-webkit-scrollbar { display: none; }
.chips button { background: none; border: 0; padding: 4px 9px; border-radius: 8px; color: var(--muted); font-size: 12px; white-space: nowrap; flex: none; }
.chips button.on { background: var(--fill-3); color: var(--text); }
.f-right { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.time-chip { font-size: 11px; padding: 2px 8px; border-radius: 20px; border: 1px solid var(--line-2); background: none; color: var(--text-2); white-space: nowrap; }
.time-chip:hover { border-color: var(--accent); }
.badge { font-size: 11px; padding: 2px 8px; border-radius: 20px; white-space: nowrap; }
.badge.ok { color: var(--ok); background: var(--ok-bg); }
.badge.warn { color: var(--warn); background: var(--warn-bg); }
.badge.err { color: var(--err); background: var(--err-bg); }

/* ---------- 时间轴 ---------- */
.day { margin-top: 14px; }
.day h4 { display: flex; align-items: baseline; gap: 8px; margin: 0 0 8px; font-weight: 600; font-size: 12px; color: var(--muted); letter-spacing: 0.03em; position: sticky; top: -18px; padding: 6px 4px; z-index: 2;
  background: linear-gradient(var(--panel-head) 70%, transparent); }
body.lay-sheet .day h4 { top: -2px; }
.day h4 em { font-style: normal; color: var(--accent); opacity: 0.85; font-size: 11px; margin-left: auto; }
.today-tag { color: var(--ok); font-weight: 600; font-size: 11px; }
.card { display: flex; gap: 10px; padding: 11px 12px; margin-bottom: 6px; border-radius: 13px; background: var(--fill); border: 1px solid var(--line); cursor: pointer; transition: background 0.15s, border-color 0.15s; position: relative; }
.card::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 2.5px; border-radius: 2px; background: var(--c); opacity: 0.75; }
.card:hover { background: var(--fill-2); border-color: var(--line-2); }
.card:active { transform: scale(0.995); }
.card.sel { border-color: color-mix(in srgb, var(--c) 60%, transparent); background: color-mix(in srgb, var(--c) 9%, var(--fill)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 13%, transparent); }
.card.st-idea { border-style: dashed; }
.c-icon { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 10px; color: color-mix(in srgb, var(--c), #000 var(--icon-mix)); background: color-mix(in srgb, var(--c) 14%, transparent); font-size: 15px; }
.c-body { flex: 1; min-width: 0; }
.ttl { font-weight: 600; font-size: 14px; }
.ttl small { font-weight: 400; color: var(--muted); }
.route { display: flex; align-items: center; gap: 8px; }
.route > div:not(.line) b { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; display: block; line-height: 1.15; white-space: nowrap; }
.route > div:not(.line) span { color: var(--muted); font-family: "SF Mono", ui-monospace, Menlo, monospace; font-size: 11px; }
.route .r-end { text-align: right; }
sup.plus, .route sup, .big-route sup { color: var(--warn); font-size: 10px; margin-left: 1px; }
small.dev { display: block; font-size: 10.5px; font-weight: 500; color: var(--muted); line-height: 1.2; }
small.dev::before { content: "⌂ "; opacity: 0.7; }
small.dev.c-dev { display: inline; font-size: 11px; }
.route .line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2) 20%, var(--line-2) 80%, transparent); position: relative; text-align: center; min-width: 30px; }
.route .line small { position: relative; top: -9px; padding: 0 6px; background: var(--panel-solid); color: var(--muted); font-size: 10.5px; border-radius: 4px; white-space: nowrap; }
.ports { color: var(--muted); font-size: 12px; margin-top: 2px; }
.ports i { font-style: normal; opacity: 0.5; }
.c-sub { color: var(--muted); font-size: 11.5px; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-meta { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.pill { font-size: 10.5px; padding: 1px 7px; border-radius: 20px; border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; }
.pill.st-confirmed { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.pill.st-booked { color: var(--info); border-color: color-mix(in srgb, var(--info) 40%, transparent); }
.pill.st-hold { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
.pill.st-idea { border-style: dashed; }
.conf { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.cost { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--accent-2); white-space: nowrap; }
.warn { font-size: 11.5px; margin-top: 6px; padding: 5px 8px; border-radius: 8px; }
.warn.error { color: var(--err-ink); background: var(--err-bg); }
.warn.warn { color: var(--warn-ink); background: var(--warn-bg); }
.warn.info { color: var(--info-ink); background: var(--info-bg); }
.conn { color: var(--muted); font-size: 11px; padding: 0 0 6px 22px; }
.mini { font-size: 12px; color: var(--muted); padding: 7px 12px; border: 1px dashed var(--line-2); border-radius: 11px; margin-bottom: 6px; cursor: pointer; display: flex; gap: 6px; }
.mini span { margin-left: auto; text-align: right; }
.gap-warn { font-size: 12px; color: var(--warn-ink); padding: 8px 12px; border: 1px dashed color-mix(in srgb, var(--warn) 45%, transparent); border-radius: 11px; margin-bottom: 6px; cursor: pointer; display: flex; gap: 8px; align-items: center; }
.gap-warn b { margin-left: auto; font-weight: 500; color: var(--accent); white-space: nowrap; }
.gap-warn:hover { background: var(--warn-bg); }
.trip-notes { margin-top: 18px; }
.trip-notes span { color: var(--muted); font-size: 11px; }
.trip-notes div { outline: none; min-height: 38px; padding: 8px 10px; border-radius: 11px; border: 1px solid var(--line); margin-top: 4px; white-space: pre-wrap; }
.trip-notes div:focus { border-color: var(--line-2); background: var(--fill); }
.empty { text-align: center; padding: 40px 10px; color: var(--muted); }
.empty.small { padding: 20px 10px; font-size: 12px; }

/* ---------- 详情 ---------- */
.d-head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 12px; background: var(--panel-head); border-bottom: 1px solid var(--line); position: relative; flex: none; }
.d-head h3 { margin: 0; flex: 1; font-size: 14px; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.type-dot { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; color: color-mix(in srgb, var(--c), #000 var(--icon-mix)); background: color-mix(in srgb, var(--c) 15%, transparent); font-size: 15px; flex: none; }
.d-warns { padding: 4px 14px 0; }
.d-body { padding: 8px 14px; }
.big-route { display: flex; align-items: flex-start; justify-content: space-between; padding: 12px 0 6px; }
.big-route > div:not(.mid) { display: flex; flex-direction: column; width: 40%; min-width: 0; }
.big-route > div:last-child { text-align: right; }
.big-route b { font: 600 28px "SF Mono", ui-monospace, Menlo, monospace; letter-spacing: 0.02em; }
.big-route small { color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.big-route em { font-style: normal; font-size: 18px; margin-top: 6px; font-variant-numeric: tabular-nums; }
.big-route em small.dev { font-size: 11px; }
.big-route i { font-style: normal; color: var(--muted); font-size: 11px; }
.big-route .mid { display: flex; flex-direction: column; align-items: center; padding-top: 6px; gap: 2px; font-size: 18px; color: var(--accent); }
.big-route .mid span { font-size: 11px; color: var(--muted); white-space: nowrap; }
.tm-note { text-align: center; font-size: 10.5px; color: var(--muted); padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.hotel-hero { padding: 10px 0 12px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.hotel-hero b { display: block; font: 600 20px var(--serif); }
.hotel-hero small { color: var(--muted); }
.kv { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.kv span { color: var(--muted); flex: none; }
.kv b { font-weight: 500; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.port-list { padding-left: 20px; margin: 8px 0; }
.port-list li { padding: 4px 0; }
.port-list small { display: block; color: var(--muted); }
.weather { padding: 0 14px; }
.weather .lbl { display: block; font-size: 11px; color: var(--muted); margin: 10px 0 6px; }
.wx-row { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.wx-row > div { flex: 1; min-width: 46px; display: flex; flex-direction: column; align-items: center; padding: 6px 2px; border-radius: 10px; background: var(--fill); font-size: 11px; }
.wx-row i { font-style: normal; font-size: 18px; margin: 2px 0; }
.wx-row span, .wx-row small { color: var(--muted); }
.wx-row em { font-style: normal; color: var(--info); font-size: 10px; }
.d-notes { margin: 12px 14px 0; padding: 10px; border-radius: 10px; background: var(--fill); white-space: pre-wrap; color: var(--text-2); }
.links { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 14px 0; }
.links a { color: var(--accent-2); text-decoration: none; font-size: 12px; padding: 5px 11px; border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); border-radius: 20px; }
.links a:hover { background: var(--accent-soft); }
.d-foot { display: flex; flex-wrap: wrap; gap: 6px; padding: 16px 14px 0; }

/* ---------- 按钮 ---------- */
.btn { height: 34px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--fill-2); display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
.btn:hover { background: var(--fill-3); }
.btn.primary { background: var(--accent-grad); color: var(--accent-ink); border-color: transparent; font-weight: 600; }
.btn.primary kbd { color: inherit; opacity: 0.6; border-color: currentColor; }
.btn.primary:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; }
.btn.danger, .danger { color: var(--err) !important; }
.btn.sm { height: 30px; padding: 0 10px; font-size: 12px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }

/* ---------- 菜单 ---------- */
.menu { position: fixed; z-index: 40; min-width: 290px; max-width: 360px; padding: 6px; background: var(--panel-head); border: 1px solid var(--line-2); border-radius: 14px;
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--shadow); max-height: 70dvh; overflow: auto; }
.menu-title { font-size: 11px; color: var(--muted); padding: 6px 10px 4px; }
.menu button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 9px 10px; border: 0; background: none; border-radius: 9px; }
.menu button:hover, .menu button.on { background: var(--fill-2); }
.menu button i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.menu button small { display: block; color: var(--muted); font-size: 11px; }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
body.lay-sheet .menu { left: 8px !important; right: 8px; top: auto !important; bottom: calc(8px + env(safe-area-inset-bottom)); max-width: none; min-width: 0; border-radius: 18px; animation: sheetIn 0.25s ease; }
body.lay-sheet .menu button { padding: 12px; font-size: 14px; }

/* ---------- 弹窗 ---------- */
.modal-wrap { position: fixed; inset: 0; z-index: 50; background: var(--scrim); display: grid; place-items: start center; padding-top: max(8vh, env(safe-area-inset-top)); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.modal { width: min(680px, calc(100vw - 32px)); max-height: 84dvh; display: flex; flex-direction: column; background: var(--panel-solid); border: 1px solid var(--line-2); border-radius: 20px; box-shadow: var(--shadow); animation: pop 0.18s ease; }
@keyframes pop { from { transform: translateY(8px) scale(0.99); opacity: 0; } }
.m-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px 12px; flex: none; }
.m-head h2 { margin: 0; flex: 1; font: 600 18px var(--serif); }
.m-foot { display: flex; gap: 8px; padding: 12px 18px 16px; border-top: 1px solid var(--line); flex: none; }
.modal > p { margin: 0 18px 10px; }
.modal > textarea { margin: 0 18px; resize: vertical; width: auto; }
.form { display: flex; flex-wrap: wrap; gap: 12px; padding: 4px 18px 18px; overflow: auto; overscroll-behavior: contain; }
.f { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.f > span { font-size: 11.5px; color: var(--muted); }
.f.full { flex: 1 1 100%; }
.f.half { flex: 1 1 calc(50% - 6px); }
.f.third { flex: 1 1 calc(33.33% - 8px); }
.f.quarter { flex: 1 1 calc(25% - 9px); }
.f.check { flex-direction: row; align-items: center; gap: 8px; }
input:not([type]), input[type=text], input[type=password], input[type=number], input[type=date], input[type=time], input[type=datetime-local], select, textarea, #palIn {
  width: 100%; height: 38px; padding: 0 10px; background: var(--fill); border: 1px solid var(--line-2); border-radius: 10px; outline: none; transition: 0.15s; min-width: 0; }
input[type=date], input[type=time], input[type=datetime-local] { -webkit-appearance: none; appearance: none; }
textarea { height: auto; padding: 8px 10px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: color-mix(in srgb, var(--accent) 60%, transparent); background: var(--fill-2); box-shadow: 0 0 0 3px var(--accent-soft); }
input[type=checkbox] { accent-color: var(--accent); }
select option { background: var(--panel-solid); color: var(--text); }
.tz { font-style: normal; font-size: 11px; color: var(--muted); }
.money { display: flex; gap: 6px; }
.money input { flex: 1; }
.money select { width: 84px; flex: none; }
.with-btn { display: flex; gap: 6px; }
.with-btn input { flex: 1; }
.with-btn .btn { height: 38px; }
.lookup-out { display: flex; flex-direction: column; gap: 4px; }
.hint { font-size: 12px; color: var(--muted); padding: 4px 2px; }
.hint.ok { color: var(--ok); }
.hint.err { color: var(--err); }
.hint a { color: var(--accent); }
.opt { text-align: left; padding: 9px 10px; border-radius: 10px; background: var(--fill); border: 1px solid var(--line-2); margin: 4px 0 0; display: block; width: 100%; }
.opt:hover { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.opt small { color: var(--muted); margin-left: 6px; }
#pasteOut { padding: 6px 18px 0; overflow: auto; }
.themes { display: flex; flex-wrap: wrap; gap: 8px; }
.theme-opt { display: flex; align-items: center; gap: 8px; padding: 7px 12px 7px 8px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--fill); }
.theme-opt i { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-2); }
.theme-opt.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.ac { position: relative; }
.ac-list { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 5; max-height: 280px; overflow: auto; background: var(--panel-solid); border: 1px solid var(--line-2); border-radius: 11px; box-shadow: var(--shadow); padding: 4px; }
.ac-item { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 8px; cursor: pointer; }
.ac-item.on, .ac-item:hover { background: var(--fill-2); }
.ac-item b { color: var(--accent); width: 34px; flex: none; }
.ac-item i { font-style: normal; width: 34px; text-align: center; color: var(--muted); flex: none; }
.ac-item > div { min-width: 0; }
.ac-item small { color: var(--muted); font-size: 11px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip { display: flex; align-items: center; gap: 6px; padding: 6px 8px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent); border-radius: 10px; font-size: 12px; min-width: 0; }
.chip b { color: var(--accent); }
.chip small { color: var(--muted); margin-left: auto; white-space: nowrap; font-size: 10.5px; }
.chip .x { opacity: 1; }
.stops { display: flex; flex-direction: column; gap: 8px; }
.stop { display: flex; gap: 8px; align-items: flex-start; padding: 10px; border: 1px solid var(--line); border-radius: 12px; flex-wrap: wrap; }
.stop-n { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-bg); color: var(--ok); font-size: 11px; margin-top: 22px; flex: none; }
.stop .f.half { flex: 1 1 200px; }
.stop .f.quarter { flex: 1 1 150px; }
.stop .icon-btn { margin-top: 22px; }

/* 命令面板 */
.modal.palette { padding: 10px; }
#palIn { height: 46px; font-size: 15px; border-radius: 12px; }
#palList { margin-top: 8px; overflow: auto; max-height: 56dvh; }
.pal-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; cursor: pointer; }
.pal-item i { font-style: normal; width: 22px; text-align: center; color: var(--accent); flex: none; }
.pal-item small { display: block; color: var(--muted); font-size: 11px; }
.pal-item.on { background: var(--fill-2); }

/* 地球标记（始终深色底，保证在地图上可读） */
.gm { transform: translate(-50%, -50%); font: 600 10.5px -apple-system, sans-serif; color: #fff; display: flex; align-items: center; gap: 4px; white-space: nowrap; transition: opacity 0.2s; }
.gm-airport b { font-family: "SF Mono", ui-monospace, monospace; padding: 2px 5px; border-radius: 5px; background: rgba(8, 12, 22, 0.78); border: 1px solid color-mix(in srgb, var(--c) 70%, transparent); color: var(--c); letter-spacing: 0.04em; }
.gm i { font-style: normal; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: rgba(8, 12, 22, 0.82); border: 1px solid var(--c); color: var(--c); font-size: 11px; box-shadow: 0 0 10px color-mix(in srgb, var(--c) 50%, transparent); }
.gm span { padding: 1px 6px; border-radius: 5px; background: rgba(8, 12, 22, 0.72); font-weight: 500; color: #f0f2f6; }
.gm-stn i { width: 9px; height: 9px; font-size: 0; }
.gm.sel b, .gm.sel i { background: var(--c); color: #0a0d14; box-shadow: 0 0 16px var(--c); }
.gm.dim { opacity: 0.45; }

/* toast */
#toasts { position: fixed; bottom: calc(24px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: 6px; align-items: center; pointer-events: none; }
body.lay-sheet #toasts { top: calc(64px + env(safe-area-inset-top)); bottom: auto; }
.toast { padding: 9px 16px; border-radius: 12px; background: var(--panel-head); border: 1px solid var(--line-2); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); animation: pop 0.2s; transition: opacity 0.4s; box-shadow: var(--shadow); white-space: nowrap; }
.toast.ok { border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.toast.err { border-color: color-mix(in srgb, var(--err) 50%, transparent); color: var(--err-ink); }
.toast.out { opacity: 0; }

/* ---------- 清单 / 预算 / 证件 ---------- */
.xpanel h5 { display: flex; align-items: center; gap: 8px; margin: 18px 0 8px; font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0.03em; }
.xpanel h5:first-child { margin-top: 4px; }
.xpanel h5 .btn { margin-left: auto; }
.xpanel h5 select { width: auto; max-width: 60%; height: 30px; font-size: 12px; color: var(--text); }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 6px 0 4px; flex-wrap: wrap; }
.prog { height: 6px; border-radius: 6px; background: var(--fill-3); overflow: hidden; }
.prog > div { height: 100%; background: linear-gradient(90deg, var(--ok), var(--info)); border-radius: 6px; transition: width 0.3s; }
.prog.over > div { background: linear-gradient(90deg, var(--warn), var(--err)); }
.x { background: none; border: 0; color: var(--muted); opacity: 0; padding: 4px 6px; font-size: 12px; }
.pk:hover .x, .wcard:hover .x { opacity: 1; }
.pk-cat h5 { margin: 14px 0 4px; }
.pk { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; cursor: pointer; }
.pk:hover { background: var(--fill); }
.pk span { flex: 1; }
.pk input { width: 18px; height: 18px; flex: none; }
.pk.done span { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-2); }
.pk-add { margin-top: 14px; }
.bud-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 10px; }
.bud-top .big { display: block; font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--accent-2); }
.bud-in { display: flex; flex-direction: column; gap: 3px; width: 140px; }
.bud-in input { height: 34px; text-align: right; }
.bud-split { display: flex; gap: 16px; margin: 10px 0 4px; font-size: 12px; flex-wrap: wrap; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.dot.ok { background: var(--ok); }
.dot.pend { background: transparent; border: 1px dashed var(--warn); }
.bar-row { display: grid; grid-template-columns: 92px 1fr auto; align-items: center; gap: 10px; padding: 5px 0; font-size: 12px; }
.bar-row b { font-weight: 500; font-variant-numeric: tabular-nums; min-width: 80px; text-align: right; }
.bar { height: 8px; border-radius: 6px; background: var(--fill-2); overflow: hidden; }
.bar > div { height: 100%; border-radius: 6px; opacity: 0.85; }
.wcard { padding: 10px; border: 1px solid var(--line); border-radius: 13px; margin-bottom: 8px; background: var(--fill); display: flex; flex-direction: column; gap: 6px; }
.wrow { display: flex; align-items: center; gap: 6px; }
.wrow input, .wrow select { height: 32px; font-size: 12.5px; flex: 1 1 0; min-width: 0; width: auto; }
.wrow { min-width: 0; }
.wrow .w-name { font-weight: 600; font-size: 14px; background: transparent; border-color: transparent; padding-left: 4px; }
.wrow .w-name:hover, .wrow .w-name:focus { border-color: var(--line-2); }
.wrow .w-s { flex: 0 0 84px; }
.wrow .small-in { font-size: 11px; color: var(--muted); height: 28px; }
.wrow .kind { width: 22px; text-align: center; color: var(--accent); flex: none; }
.chk { display: flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.chk input { flex: none; width: 15px; height: 15px; }
.tag { font-style: normal; font-size: 10.5px; padding: 1px 7px; border-radius: 10px; white-space: nowrap; flex: none; }
.tag.err { color: var(--err); background: var(--err-bg); }
.tag.warn { color: var(--warn); background: var(--warn-bg); }

/* ---------- 触屏设备 ---------- */
@media (hover: none) {
  .x { opacity: 0.7; }
  .kbd-hint, .kbar kbd { display: none; }
  .card:hover { background: var(--fill); border-color: var(--line); }
  .card.sel:hover { background: color-mix(in srgb, var(--c) 9%, var(--fill)); border-color: color-mix(in srgb, var(--c) 60%, transparent); }
  .icon-btn, .trip-switch, .kbar { height: 40px; }
  .icon-btn { width: 40px; }
  .chips button { padding: 6px 10px; }
  .btn { height: 40px; }
  .btn.sm { height: 34px; }
}

/* ---------- 手机 / 竖屏：弹窗变全屏抽屉 ---------- */
body.lay-sheet .modal-wrap { place-items: end center; padding: 0; }
body.lay-sheet .modal { width: 100%; max-width: 760px; max-height: calc(100dvh - env(safe-area-inset-top) - 10px); height: auto; border-radius: 22px 22px 0 0; border-bottom: 0; animation: sheetIn 0.3s cubic-bezier(.2, .8, .2, 1); }
body.lay-sheet .modal.editor, body.lay-sheet .modal.settings { height: calc(100dvh - env(safe-area-inset-top) - 10px); }
body.lay-sheet .m-foot { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
body.lay-sheet .modal.palette { padding-bottom: calc(10px + env(safe-area-inset-bottom)); height: calc(100dvh - env(safe-area-inset-top) - 10px); }
body.lay-sheet #palList { max-height: none; flex: 1; }
body.lay-sheet .pal-item { padding: 12px 10px; font-size: 14px; }
@media (hover: none) {
  input, select, textarea { font-size: 16px !important; }   /* iOS 不自动缩放 */
}
@media (max-width: 560px) {
  .f.half { flex-basis: 100%; }
  .f.third { flex-basis: calc(50% - 6px); }
  .f.quarter { flex-basis: calc(50% - 6px); }
  .stop .f.half, .stop .f.quarter { flex-basis: 100%; }
  .add-bar { grid-template-columns: repeat(6, 1fr); gap: 4px; }
  .add-bar button { font-size: 10.5px; padding: 8px 0 5px; }
  .trip-title { font-size: 20px; }
  .big-route b { font-size: 24px; }
  .bar-row { grid-template-columns: 74px 1fr auto; }
  .bar-row b { min-width: 64px; }
  .stat b { font-size: 13px; }
  .money select { width: 76px; }
}
@media (max-width: 360px) {
  .add-bar button span { display: none; }
  .add-bar button { padding: 10px 0; }
}

/* ---------- 打印行程单 ---------- */
@media print {
  html, body { overflow: visible; background: #fff; color: #111; height: auto; }
  #globe, .topbar, .panel.right, .add-bar, .filters, #toasts, .menu, .modal-wrap, .tabs, .grabber, .clock { display: none !important; }
  .panel.left { position: static !important; width: auto !important; height: auto !important; transform: none !important; border: 0; box-shadow: none; background: none; backdrop-filter: none; overflow: visible; }
  #leftInner { overflow: visible; padding: 0 !important; }
  .stats { background: #ddd; border-color: #ddd; }
  .stat { background: #fff !important; }
  .stat span, .c-sub, .muted, .trip-sub, .day h4 { color: #555 !important; }
  .day h4 { position: static; background: none; color: #111; border-bottom: 1px solid #ccc; }
  .card { background: none; border: 1px solid #ccc; break-inside: avoid; }
  .route .line small { background: #fff; }
  .cost { color: #111; }
  .warn { background: #f5f5f5 !important; color: #333 !important; }
}

/* ---------- 云同步 / Rewarding ---------- */
.sync-btn { position: relative; }
.sync-btn i { position: absolute; right: 6px; top: 6px; width: 7px; height: 7px; border-radius: 50%; background: transparent; }
.sync-btn[data-state="ok"] i { background: var(--ok); }
.sync-btn[data-state="syncing"] i { background: var(--info); animation: pulse 1s infinite; }
.sync-btn[data-state="error"] i { background: var(--err); }
@keyframes pulse { 50% { opacity: 0.3; } }
.sync-status { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--fill); border: 1px solid var(--line); }
.sync-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex: none; }
.sync-dot.ok { background: var(--ok); } .sync-dot.syncing { background: var(--info); animation: pulse 1s infinite; } .sync-dot.error { background: var(--err); }
.sync-share { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.qr { background: #fff; padding: 8px; border-radius: 12px; width: 148px; height: 148px; flex: none; }
.qr img, .qr canvas { display: block; }
.sync-code { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sync-code b { font-size: 13px; overflow-wrap: anywhere; }
.seg-tabs { display: flex; gap: 2px; padding: 3px; background: var(--fill); border: 1px solid var(--line); border-radius: 12px; flex-direction: row !important; }
.seg-tabs button { flex: 1; border: 0; background: none; padding: 8px 6px; border-radius: 9px; color: var(--muted); font-size: 12.5px; }
.seg-tabs button.on { background: var(--panel-solid); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18); }
.rw-sum { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rw-sum > div { padding: 10px; border-radius: 12px; background: var(--fill); border: 1px solid var(--line); text-align: center; }
.rw-sum b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; color: var(--accent-2); }
.rw-sum span { font-size: 11px; color: var(--muted); }
.radio { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 13px; }
.radio input { accent-color: var(--accent); }
.rw-list { max-height: 220px; overflow: auto; gap: 8px; }
.rw-g { padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; font-size: 12px; display: flex; flex-direction: column; gap: 3px; }
.rw-g em { font-style: normal; color: var(--muted); margin-left: 4px; }
.wrow.pts { font-size: 12px; gap: 10px; padding: 0 4px; }
.wrow.pts b { font-size: 15px; font-variant-numeric: tabular-nums; }
.wrow .src { margin-left: auto; font-size: 10.5px; color: var(--muted); border: 1px solid var(--line-2); border-radius: 10px; padding: 1px 7px; }
