diff --git a/webui/app.js b/webui/app.js index 938e120..2bbf5c7 100644 --- a/webui/app.js +++ b/webui/app.js @@ -74,13 +74,13 @@ const TIMELINE_LAYOUT = Object.freeze({ }); const TIMELINE_STROKES = Object.freeze({ - fudai_open_detail: { stroke: "var(--primary)", dash: "" }, - fudai_attend_ok: { stroke: "var(--primary)", dash: "6 4" }, - fudai_attend_fail: { stroke: "var(--danger)", dash: "" }, - fudai_result_win: { stroke: "var(--danger)", dash: "6 4" }, - fudai_result_no_win: { stroke: "var(--muted)", dash: "" }, - fudai_skip: { stroke: "var(--muted)", dash: "6 4" }, - switch_room: { stroke: "var(--text)", dash: "2 4" }, + fudai_open_detail: { stroke: "var(--primary)", opacity: 1.0, dash: "" }, + fudai_attend_ok: { stroke: "var(--primary)", opacity: 0.7, dash: "" }, + fudai_attend_fail: { stroke: "var(--primary)", opacity: 0.4, dash: "4 3" }, + fudai_result_win: { stroke: "var(--primary)", opacity: 1.0, dash: "2 3" }, + fudai_result_no_win:{ stroke: "var(--primary)", opacity: 0.4, dash: "" }, + fudai_skip: { stroke: "var(--muted)", opacity: 0.7, dash: "4 3" }, + switch_room: { stroke: "var(--muted)", opacity: 1.0, dash: "2 3" }, }); const BUSY_DISABLED_BUTTONS = new Set(["btnStart", "btnSave"]); @@ -221,6 +221,41 @@ const DEFAULTS = { function $(id) { return document.getElementById(id); } +function initTheme() { + const root = document.documentElement; + const btn = $("btnTheme"); + const mql = window.matchMedia ? window.matchMedia("(prefers-color-scheme: dark)") : null; + + const apply = (theme) => { + root.setAttribute("data-theme", theme); + if (btn) btn.setAttribute("aria-label", theme === "dark" ? "切换到浅色" : "切换到深色"); + }; + + // Initial: respect inline-set attribute (set by head bootstrap), or fall back. + const initial = root.getAttribute("data-theme") + || (mql && mql.matches ? "dark" : "light"); + apply(initial); + + if (btn) { + btn.addEventListener("click", () => { + const next = root.getAttribute("data-theme") === "dark" ? "light" : "dark"; + try { localStorage.setItem("ui-theme", next); } catch (_) {} + apply(next); + }); + } + + // Follow system changes only when user hasn't picked manually. + if (mql && typeof mql.addEventListener === "function") { + mql.addEventListener("change", (ev) => { + let saved = null; + try { saved = localStorage.getItem("ui-theme"); } catch (_) {} + if (saved !== "dark" && saved !== "light") { + apply(ev.matches ? "dark" : "light"); + } + }); + } +} + function initTabs() { const tabButtons = Array.from(document.querySelectorAll(".tabBtn[data-target]")); const panels = Array.from(document.querySelectorAll(".panel[data-panel]")); @@ -667,7 +702,8 @@ function renderTimeline(containerId, timeline) { p.setAttribute("d", d); p.setAttribute("fill", "none"); p.setAttribute("stroke", TIMELINE_STROKES[k]?.stroke || "var(--primary)"); - p.setAttribute("stroke-width", "2"); + p.setAttribute("stroke-width", "1.5"); + p.setAttribute("stroke-opacity", String(TIMELINE_STROKES[k]?.opacity ?? 1)); if (TIMELINE_STROKES[k]?.dash) p.setAttribute("stroke-dasharray", TIMELINE_STROKES[k].dash); p.setAttribute("stroke-linecap", "round"); p.setAttribute("stroke-linejoin", "round"); @@ -1475,6 +1511,7 @@ function startStatsPolling() { } window.addEventListener("DOMContentLoaded", async () => { + initTheme(); initTabs(); $("btnRefresh").addEventListener("click", refreshDevices); $("btnLoad").addEventListener("click", async () => { await loadConfig(); }); diff --git a/webui/index.html b/webui/index.html index 190ea85..aa48d6a 100644 --- a/webui/index.html +++ b/webui/index.html @@ -4,7 +4,18 @@ 抖音挂机 - Web GUI - + +
@@ -68,6 +79,14 @@ 保存配置 +
@@ -1197,6 +1216,6 @@ - + diff --git a/webui/styles.css b/webui/styles.css index 6bd9144..d02eba5 100644 --- a/webui/styles.css +++ b/webui/styles.css @@ -1,59 +1,62 @@ +/* ======== Light theme tokens (default) ======== */ :root { - --bg: #f4f7fb; - --surface: rgba(255, 255, 255, 0.9); + --bg: #ffffff; + --bg-soft: #fafafa; + --surface: #ffffff; --surface-solid: #ffffff; - --surface-soft: rgba(248, 250, 252, 0.86); - --surface-muted: #edf3f8; - --surface-elevated: rgba(255, 255, 255, 0.96); - --border: rgba(130, 151, 178, 0.26); - --border-strong: rgba(103, 124, 152, 0.42); - --hairline: rgba(255, 255, 255, 0.72); - --text: #1b2435; - --text-strong: #101828; - --muted: #64748b; - --muted-soft: #94a3b8; - --primary: #2359c7; - --primary-hover: #1d4aa7; - --primary-soft: #edf4ff; - --primary-border: #b8cdf6; - --success: #168456; - --success-soft: #eaf8f2; - --warning: #b7791f; - --warning-soft: #fff8e8; - --warning-border: #f4d58b; - --danger: #d43f3f; - --danger-hover: #b83232; - --danger-soft: #fff1f1; - --danger-border: #f4b8b8; + --surface-soft: #fafafa; + --surface-muted: #f4f4f5; + --surface-elevated: #ffffff; + --border: #e5e5e5; + --border-strong: #d4d4d4; + --hairline: rgba(0, 0, 0, 0.04); + --text: #171717; + --text-strong: #0a0a0a; + --muted: #737373; + --muted-soft: #a3a3a3; + --primary: #5e6ad2; + --primary-hover: #4f5ac4; + --primary-soft: #eef0fb; + --primary-border: #c5cbef; + --primary-accent-text: #4f5ac4; + --success: #16a34a; + --success-soft: #f0fdf4; + --warning: #d97706; + --warning-soft: #fffbeb; + --warning-border: #fde68a; + --danger: #dc2626; + --danger-hover: #b91c1c; + --danger-soft: #fef2f2; + --danger-border: #fecaca; --on-primary: #ffffff; - --bg-start: #f8fbff; - --bg-mid: #eef4fa; - --bg-end: #e7edf5; - --header-bg: rgba(255, 255, 255, 0.78); - --primary-action-bg: rgba(244, 248, 255, 0.82); - --primary-accent-text: #174ea6; - --accent-cyan: #0891b2; - --accent-emerald: #159a68; - --hover-border: rgba(75, 98, 128, 0.5); - --primary-soft-hover: #e1ecff; - --primary-soft-hover-border: #91b2ee; - --danger-soft-hover: #ffe4e4; - --danger-soft-hover-border: #ee9a9a; - --overview-primary-bg: linear-gradient(135deg, rgba(245, 249, 255, 0.95), rgba(237, 247, 255, 0.82)); - --chart-track: #dde7f0; - --preview-bg: linear-gradient(145deg, #f7faff, #edf2f8); - --shadow: 0 18px 44px rgba(36, 48, 72, 0.12), 0 2px 0 rgba(255, 255, 255, 0.84) inset; - --shadow-soft: 0 10px 28px rgba(36, 48, 72, 0.08); - --shadow-hover: 0 24px 54px rgba(36, 48, 72, 0.15), 0 2px 0 rgba(255, 255, 255, 0.9) inset; - --shadow-primary: 0 14px 28px rgba(35, 89, 199, 0.26); - --shadow-primary-soft: 0 12px 28px rgba(35, 89, 199, 0.2); - --shadow-danger-soft: 0 12px 28px rgba(212, 63, 63, 0.18); - --focus-ring: 0 0 0 3px rgba(35, 89, 199, 0.14); - --status-muted-ring: 0 0 0 4px rgba(148, 163, 184, 0.14); - --status-success-ring: 0 0 0 4px rgba(21, 154, 104, 0.14); - --status-danger-ring: 0 0 0 4px rgba(212, 63, 63, 0.14); - --radius: 8px; - --control-height: 36px; + --bg-start: #ffffff; + --bg-mid: #ffffff; + --bg-end: #ffffff; + --header-bg: rgba(255, 255, 255, 0.85); + --primary-action-bg: rgba(94, 106, 210, 0.06); + --accent-cyan: #06b6d4; + --accent-emerald: #10b981; + --hover-border: #a3a3a3; + --primary-soft-hover: #e0e3f5; + --primary-soft-hover-border: #a8b1e8; + --danger-soft-hover: #fee2e2; + --danger-soft-hover-border: #fca5a5; + --overview-primary-bg: #fafafa; + --chart-track: #e5e5e5; + --preview-bg: #fafafa; + --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.06); + --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.04); + --shadow-hover: 0 2px 4px rgba(0, 0, 0, 0.06), 0 6px 16px rgba(0, 0, 0, 0.08); + --shadow-primary: 0 1px 2px rgba(94, 106, 210, 0.2); + --shadow-primary-soft: 0 1px 2px rgba(94, 106, 210, 0.15); + --shadow-danger-soft: 0 1px 2px rgba(220, 38, 38, 0.15); + --focus-ring: 0 0 0 3px rgba(94, 106, 210, 0.18); + --status-muted-ring: 0 0 0 3px rgba(163, 163, 163, 0.16); + --status-success-ring: 0 0 0 3px rgba(22, 163, 74, 0.18); + --status-danger-ring: 0 0 0 3px rgba(220, 38, 38, 0.18); + --radius: 6px; + --radius-lg: 8px; + --control-height: 34px; --page-max: 1760px; --page-pad: 18px; --layout-gap: 12px; @@ -70,12 +73,75 @@ --queue-height-desktop: clamp(170px, 24vh, 280px); --log-height-desktop: clamp(280px, 34vh, 420px); --log-height-mobile: clamp(240px, 31vh, 360px); - --log-bg: rgba(248, 250, 252, 0.94); - --log-border: rgba(130, 151, 178, 0.24); - --log-text: #243044; - --motion-fast: 140ms ease; - --motion: 220ms cubic-bezier(0.2, 0.8, 0.2, 1); - --motion-slow: 520ms cubic-bezier(0.16, 1, 0.3, 1); + --log-bg: #fafafa; + --log-border: #e5e5e5; + --log-text: #171717; + --motion-fast: 100ms ease; + --motion: 160ms ease; + --motion-slow: 240ms ease; + color-scheme: light; +} + +/* ======== Dark theme tokens ======== */ +:root[data-theme="dark"] { + --bg: #0a0a0a; + --bg-soft: #0f0f0f; + --surface: #0f0f0f; + --surface-solid: #0f0f0f; + --surface-soft: #141414; + --surface-muted: #1a1a1a; + --surface-elevated: #161616; + --border: #262626; + --border-strong: #2e2e2e; + --hairline: rgba(255, 255, 255, 0.04); + --text: #ededed; + --text-strong: #fafafa; + --muted: #a1a1aa; + --muted-soft: #71717a; + --primary: #8b95ff; + --primary-hover: #a3acff; + --primary-soft: #1a1d33; + --primary-border: #2d3257; + --primary-accent-text: #aab5ff; + --success: #22c55e; + --success-soft: #0f1f15; + --warning: #eab308; + --warning-soft: #1f1a0a; + --warning-border: #423a17; + --danger: #ef4444; + --danger-hover: #f87171; + --danger-soft: #1f1212; + --danger-border: #462020; + --on-primary: #ffffff; + --bg-start: #0a0a0a; + --bg-mid: #0a0a0a; + --bg-end: #0a0a0a; + --header-bg: rgba(15, 15, 15, 0.85); + --primary-action-bg: rgba(139, 149, 255, 0.08); + --accent-cyan: #22d3ee; + --accent-emerald: #34d399; + --hover-border: #404040; + --primary-soft-hover: #25294a; + --primary-soft-hover-border: #3d4373; + --danger-soft-hover: #2d1818; + --danger-soft-hover-border: #5a2828; + --overview-primary-bg: #141414; + --chart-track: #262626; + --preview-bg: #0f0f0f; + --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.3); + --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.3); + --shadow-hover: 0 2px 4px rgba(0, 0, 0, 0.5), 0 8px 20px rgba(0, 0, 0, 0.4); + --shadow-primary: 0 1px 2px rgba(139, 149, 255, 0.25); + --shadow-primary-soft: 0 1px 2px rgba(139, 149, 255, 0.2); + --shadow-danger-soft: 0 1px 2px rgba(239, 68, 68, 0.2); + --focus-ring: 0 0 0 3px rgba(139, 149, 255, 0.25); + --status-muted-ring: 0 0 0 3px rgba(113, 113, 122, 0.2); + --status-success-ring: 0 0 0 3px rgba(34, 197, 94, 0.2); + --status-danger-ring: 0 0 0 3px rgba(239, 68, 68, 0.2); + --log-bg: #0a0a0a; + --log-border: #262626; + --log-text: #d4d4d8; + color-scheme: dark; } * { @@ -89,32 +155,18 @@ body { body { margin: 0; - font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; + font-family: "Inter", "PingFang SC", "Microsoft YaHei", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--text); - background: - linear-gradient(135deg, rgba(255, 255, 255, 0.55) 0 1px, transparent 1px 28px), - linear-gradient(180deg, var(--bg-start) 0%, var(--bg-mid) 48%, var(--bg-end) 100%); - background-attachment: fixed; - letter-spacing: 0; -} - -body::before { - position: fixed; - inset: 0; - z-index: -1; - content: ""; - pointer-events: none; - background: - linear-gradient(120deg, rgba(35, 89, 199, 0.08), transparent 38%), - linear-gradient(250deg, rgba(8, 145, 178, 0.08), transparent 42%), - repeating-linear-gradient(90deg, rgba(16, 24, 40, 0.035) 0 1px, transparent 1px 96px); - mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.72) 48%, transparent 100%); + background: var(--bg); + letter-spacing: -0.005em; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; } @keyframes surfaceIn { from { opacity: 0; - transform: translateY(10px); + transform: translateY(4px); } to { opacity: 1; @@ -122,36 +174,13 @@ body::before { } } -@keyframes sheen { - 0%, - 72% { - transform: translateX(-120%); - } - 86%, - 100% { - transform: translateX(120%); - } -} - @keyframes statusPulse { 0%, 100% { - filter: saturate(1); - transform: scale(1); + opacity: 1; } 50% { - filter: saturate(1.35); - transform: scale(1.12); - } -} - -@keyframes previewScan { - 0% { - transform: translateX(-100%); - } - 55%, - 100% { - transform: translateX(100%); + opacity: 0.6; } } @@ -184,12 +213,12 @@ svg { align-items: center; justify-content: space-between; gap: 16px; - padding: 14px; + padding: 12px 14px; border: 1px solid var(--border); background: var(--header-bg); border-radius: var(--radius); - box-shadow: var(--shadow); - backdrop-filter: blur(18px) saturate(1.2); + box-shadow: var(--shadow-soft); + backdrop-filter: blur(12px) saturate(1.1); animation: surfaceIn var(--motion-slow) both; } @@ -205,31 +234,22 @@ svg { overflow: hidden; display: grid; place-items: center; - flex: 0 0 42px; - width: 42px; - height: 42px; + flex: 0 0 36px; + width: 36px; + height: 36px; color: var(--on-primary); - background: linear-gradient(135deg, var(--primary), var(--accent-cyan)); + background: var(--primary); border-radius: var(--radius); - font-size: 17px; - font-weight: 800; - box-shadow: var(--shadow-primary); -} - -.brandMark::after { - position: absolute; - inset: 0; - content: ""; - background: linear-gradient(130deg, transparent 0 36%, rgba(255, 255, 255, 0.42) 48%, transparent 60% 100%); - transform: translateX(-120%); - animation: sheen 5.6s ease-in-out infinite; + font-size: 15px; + font-weight: 700; } .title { color: var(--text-strong); - font-size: 18px; - font-weight: 760; + font-size: 16px; + font-weight: 600; line-height: 1.25; + letter-spacing: -0.01em; } .subtitle { @@ -252,60 +272,54 @@ svg { display: flex; align-items: center; justify-content: flex-end; - gap: 8px; + gap: 6px; flex-wrap: wrap; - padding: 4px; - border: 1px solid var(--border); - border-radius: var(--radius); - background: var(--surface-soft); - box-shadow: 0 1px 0 var(--hairline) inset; + padding: 0; + border: 0; + background: transparent; } .primaryActions { - border-color: var(--primary-border); - background: var(--primary-action-bg); + border: 0; + background: transparent; } .btn { display: inline-flex; align-items: center; justify-content: center; - gap: 7px; + gap: 6px; min-width: 0; min-height: var(--control-height); padding: 0 12px; border: 1px solid var(--border-strong); border-radius: var(--radius); color: var(--text); - background: var(--surface-elevated); - box-shadow: var(--shadow-soft); + background: var(--surface); font-size: 13px; - font-weight: 650; + font-weight: 500; line-height: 1; white-space: nowrap; - transition: background var(--motion-fast), border-color var(--motion-fast), color var(--motion-fast), box-shadow var(--motion), transform var(--motion); + transition: background var(--motion-fast), border-color var(--motion-fast), color var(--motion-fast); } .btn:hover { border-color: var(--hover-border); - background: var(--surface-solid); - box-shadow: var(--shadow-hover); - transform: translateY(-1px); + background: var(--surface-muted); } .btn:active { - transform: translateY(1px); + background: var(--surface-soft); } .btn:disabled { cursor: not-allowed; - opacity: 0.55; - transform: none; + opacity: 0.5; } .btn.isBusy { cursor: progress; - opacity: 0.78; + opacity: 0.7; } .btnIcon { @@ -323,8 +337,7 @@ svg { .btnPrimary { color: var(--on-primary); border-color: var(--primary); - background: linear-gradient(135deg, var(--primary), #2769df); - box-shadow: var(--shadow-primary-soft); + background: var(--primary); } .btnPrimary:hover { @@ -334,33 +347,33 @@ svg { } .btnSoft { - color: var(--primary-accent-text); - border-color: var(--primary-border); - background: linear-gradient(180deg, #f5f9ff, var(--primary-soft)); + color: var(--text); + border-color: var(--border); + background: var(--surface); } .btnSoft:hover { - border-color: var(--primary-soft-hover-border); - background: var(--primary-soft-hover); + color: var(--text); + border-color: var(--hover-border); + background: var(--surface-muted); } .btnGhost { - color: var(--text); + color: var(--muted); border-color: transparent; background: transparent; - box-shadow: none; } .btnGhost:hover { + color: var(--text); border-color: var(--border); - background: var(--surface); + background: var(--surface-muted); } .btnDanger { color: var(--on-primary); border-color: var(--danger); background: var(--danger); - box-shadow: var(--shadow-danger-soft); } .btnDanger:hover { @@ -376,15 +389,34 @@ svg { } .btnDangerSoft:hover { + color: var(--danger); border-color: var(--danger-soft-hover-border); background: var(--danger-soft-hover); } .btn.small { - min-height: 30px; + min-height: 28px; padding: 0 9px; font-size: 12px; - box-shadow: none; +} + +.btnIconOnly { + width: var(--control-height); + padding: 0; +} + +/* Theme toggle: show sun in dark mode, moon in light mode */ +.themeIconSun, +.themeIconMoon { + display: none; +} + +:root[data-theme="dark"] .themeIconSun { + display: inline-flex; +} + +:root:not([data-theme="dark"]) .themeIconMoon { + display: inline-flex; } .overview { @@ -404,34 +436,23 @@ svg { background: var(--surface); box-shadow: var(--shadow-soft); animation: surfaceIn var(--motion-slow) both; - transition: border-color var(--motion), box-shadow var(--motion), transform var(--motion); + transition: border-color var(--motion); } .overviewCard:nth-child(2) { - animation-delay: 45ms; + animation-delay: 30ms; } .overviewCard:nth-child(3) { - animation-delay: 90ms; + animation-delay: 60ms; } .overviewCard:nth-child(4) { - animation-delay: 135ms; -} - -.overviewCard::before { - position: absolute; - inset: 0 0 auto; - height: 2px; - content: ""; - background: linear-gradient(90deg, var(--primary), var(--accent-cyan), var(--accent-emerald)); - opacity: 0.56; + animation-delay: 90ms; } .overviewCard:hover { border-color: var(--hover-border); - box-shadow: var(--shadow-hover); - transform: translateY(-2px); } .overviewPrimary { @@ -442,7 +463,7 @@ svg { .overviewLabel { color: var(--muted); font-size: 12px; - font-weight: 650; + font-weight: 500; line-height: 1.3; } @@ -454,7 +475,7 @@ svg { margin-top: 7px; color: var(--text-strong); font-size: 20px; - font-weight: 760; + font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; } @@ -485,7 +506,7 @@ svg { .statusRunning { background: var(--success); box-shadow: var(--status-success-ring); - animation: statusPulse 1.8s ease-in-out infinite; + animation: statusPulse 2s ease-in-out infinite; } .statusIdle { @@ -496,7 +517,7 @@ svg { .statusError { background: var(--danger); box-shadow: var(--status-danger-ring); - animation: statusPulse 1.8s ease-in-out infinite; + animation: statusPulse 2s ease-in-out infinite; } .workspaceShell { @@ -572,33 +593,20 @@ svg { border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); - backdrop-filter: blur(14px) saturate(1.08); animation: surfaceIn var(--motion-slow) both; - transition: border-color var(--motion), box-shadow var(--motion), transform var(--motion); + transition: border-color var(--motion); } .cardShot { - animation-delay: 70ms; + animation-delay: 40ms; } .cardReservations { - animation-delay: 120ms; + animation-delay: 80ms; } .cardLog { - animation-delay: 170ms; -} - -.card::before { - position: absolute; - inset: 0; - content: ""; - pointer-events: none; - border-radius: inherit; - background: - linear-gradient(180deg, rgba(255, 255, 255, 0.74), transparent 28%), - linear-gradient(120deg, rgba(35, 89, 199, 0.07), transparent 34%); - opacity: 0.72; + animation-delay: 120ms; } .card > * { @@ -608,8 +616,6 @@ svg { .card:hover { border-color: var(--hover-border); - box-shadow: var(--shadow-hover); - transform: translateY(-1px); } .cardScroll { @@ -626,7 +632,7 @@ svg { border-bottom: 1px solid var(--border); color: var(--text-strong); font-size: 15px; - font-weight: 760; + font-weight: 600; line-height: 1.25; } @@ -658,15 +664,13 @@ svg { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); - box-shadow: var(--shadow-soft); - backdrop-filter: blur(14px) saturate(1.08); } .workspaceEyebrow { - color: var(--primary-accent-text); + color: var(--muted); font-size: 11px; - font-weight: 760; - letter-spacing: 0.08em; + font-weight: 500; + letter-spacing: 0.06em; text-transform: uppercase; } @@ -714,7 +718,7 @@ svg { color: var(--muted); background: transparent; font-size: 13px; - font-weight: 650; + font-weight: 500; text-align: left; white-space: nowrap; transition: color var(--motion-fast), background var(--motion-fast), transform var(--motion-fast), border-color var(--motion-fast); @@ -722,15 +726,14 @@ svg { .tabBtn:hover { color: var(--text); - background: var(--surface); - transform: translateX(2px); + background: var(--surface-muted); } .tabBtn.active { - color: var(--primary-accent-text); - border-color: var(--primary-border); - background: linear-gradient(90deg, rgba(226, 238, 255, 0.98), rgba(248, 252, 255, 0.86)); - box-shadow: inset 3px 0 0 var(--primary); + color: var(--text-strong); + border-color: var(--border); + background: var(--surface-muted); + box-shadow: inset 2px 0 0 var(--primary); } .tabIcon { @@ -757,12 +760,11 @@ svg { .panel { min-width: 0; - padding: 16px; + padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); - box-shadow: var(--shadow); - backdrop-filter: blur(14px) saturate(1.08); + box-shadow: var(--shadow-soft); animation: surfaceIn var(--motion-slow) both; } @@ -779,30 +781,46 @@ svg { align-items: center; gap: 8px; min-width: 0; - margin: 16px 0 8px; - color: var(--text-strong); - font-size: 14px; - font-weight: 740; + margin: 20px 0 10px; + padding: 6px 0 8px; + color: var(--muted); + font-size: 11px; + font-weight: 600; + letter-spacing: 0.06em; + text-transform: uppercase; line-height: 1.3; + border-bottom: 1px solid var(--border); } .panel > .sectionTitle:first-child { margin-top: 0; } +/* Headline-style section titles: when used as a card heading or nested heading, + keep the original strong color and bigger size. */ +.cardTitle.sectionTitle, +summary.sectionTitle { + margin: 0; + padding: 0 0 12px; + color: var(--text-strong); + font-size: 14px; + letter-spacing: -0.005em; + text-transform: none; +} + .row { display: flex; flex-direction: column; - gap: 6px; + gap: 5px; min-width: 0; - margin-top: 12px; + margin-top: 10px; } .row.grid2, .row.grid3 { display: grid; align-items: start; - gap: 12px; + gap: 10px; } .row.grid2 { @@ -830,7 +848,7 @@ svg { .label { color: var(--muted); font-size: 12px; - font-weight: 650; + font-weight: 500; line-height: 1.35; } @@ -844,10 +862,10 @@ svg { border: 1px solid var(--border-strong); border-radius: var(--radius); color: var(--text); - background: var(--surface-elevated); + background: var(--surface); font-size: 13px; outline: none; - transition: border-color var(--motion-fast), box-shadow var(--motion-fast), background var(--motion-fast), transform var(--motion-fast); + transition: border-color var(--motion-fast), box-shadow var(--motion-fast); } .input:hover, @@ -861,7 +879,6 @@ svg { .logSearchBox:focus { border-color: var(--primary); box-shadow: var(--focus-ring); - transform: translateY(-1px); } .textarea { @@ -944,7 +961,7 @@ svg { .statLabel { color: var(--muted); font-size: 12px; - font-weight: 650; + font-weight: 500; line-height: 1.35; } @@ -953,7 +970,7 @@ svg { margin-top: 6px; color: var(--text-strong); font-size: 19px; - font-weight: 760; + font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; } @@ -990,7 +1007,7 @@ svg { .chartTitle { color: var(--text-strong); font-size: 13px; - font-weight: 720; + font-weight: 550; line-height: 1.35; } @@ -1041,7 +1058,7 @@ svg { .barFill { height: 100%; border-radius: 99px; - background: linear-gradient(90deg, var(--primary), var(--accent-cyan)); + background: var(--primary); transition: width var(--motion-slow); } @@ -1085,7 +1102,7 @@ svg { .tableHead { color: var(--muted); background: var(--surface-soft); - font-weight: 720; + font-weight: 550; } .mono { @@ -1107,38 +1124,16 @@ svg { border: 1px solid var(--border); border-radius: var(--radius); background: var(--preview-bg); - box-shadow: 0 1px 0 var(--hairline) inset, 0 14px 32px rgba(36, 48, 72, 0.08); - transition: border-color var(--motion), box-shadow var(--motion), transform var(--motion); -} - -.preview::before { - position: absolute; - inset: 0; - content: ""; - pointer-events: none; - background: - linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent), - repeating-linear-gradient(0deg, rgba(35, 89, 199, 0.035) 0 1px, transparent 1px 18px); - opacity: 0; - transform: translateX(-100%); + transition: border-color var(--motion); } .preview:hover { - border-color: var(--primary-border); - box-shadow: 0 1px 0 var(--hairline) inset, 0 18px 38px rgba(35, 89, 199, 0.12); - transform: translateY(-1px); + border-color: var(--hover-border); } .preview.isShotEmpty { border-style: dashed; - background: - linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(248, 250, 252, 0.92)), - var(--preview-bg); -} - -.preview.isShotEmpty::before { - opacity: 1; - animation: previewScan 2.8s ease-in-out infinite; + background: var(--surface-soft); } .preview img { @@ -1235,7 +1230,7 @@ svg { color: var(--primary); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; font-size: 12px; - font-weight: 760; + font-weight: 600; } .reservationValue { @@ -1247,7 +1242,7 @@ svg { color: var(--warning); background: var(--warning-soft); font-size: 12px; - font-weight: 720; + font-weight: 550; text-overflow: ellipsis; white-space: nowrap; } @@ -1333,7 +1328,7 @@ summary.sectionTitle { .logTitle { color: var(--text-strong); font-size: 13px; - font-weight: 740; + font-weight: 600; white-space: nowrap; }