/* Atmospheric layer 1: gradient mesh blobs */ body::before { position: fixed; inset: 0; z-index: -2; content: ""; pointer-events: none; background-image: var(--mesh-blob-1), var(--mesh-blob-2), var(--mesh-blob-3); background-attachment: fixed; } /* Atmospheric layer 2: SVG grain noise (turbulence) */ body::after { position: fixed; inset: 0; z-index: -1; content: ""; pointer-events: none; background-image: url("data:image/svg+xml;utf8,"); opacity: var(--grain-opacity); mix-blend-mode: overlay; } /* When body.is-running: thin pink sweep glow line at top edge of viewport */ body.is-running::before { content: ""; position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 1000; pointer-events: none; background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), var(--primary), transparent); background-size: 200% 100%; animation: runningPulse 2.8s linear infinite; filter: drop-shadow(0 0 4px color-mix(in oklab, var(--primary) 70%, transparent)); } @keyframes runningPulse { 0% { background-position: -100% 0; opacity: 0.85; } 50% { opacity: 1; } 100% { background-position: 200% 0; opacity: 0.85; } } @media (prefers-reduced-motion: reduce) { body.is-running::before { animation: none; } } /* When toggling theme, briefly enable transitions on common chrome surfaces. The .isThemeSwitching class is added by JS for ~250ms during the toggle. */ :root.isThemeSwitching .header, :root.isThemeSwitching .card, :root.isThemeSwitching .panel, :root.isThemeSwitching .overviewCard, :root.isThemeSwitching .stat, :root.isThemeSwitching .btn, :root.isThemeSwitching .input, :root.isThemeSwitching .check, :root.isThemeSwitching .tabBtn, :root.isThemeSwitching .table, :root.isThemeSwitching .tableRow, :root.isThemeSwitching .logSection, :root.isThemeSwitching .log, :root.isThemeSwitching .preview, :root.isThemeSwitching .reservationItem, :root.isThemeSwitching .chartBlock, :root.isThemeSwitching .toast, :root.isThemeSwitching .appFooter, :root.isThemeSwitching .workspaceHeader { transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease, box-shadow 200ms ease !important; } @keyframes surfaceIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } } @keyframes statusPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } } .overview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--overview-gap); margin-top: 14px; } .overviewCard { position: relative; overflow: hidden; min-width: 0; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius-lg); 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); } /* Top hairline highlight (gradient pink → cyan) */ .overviewCard::after { position: absolute; inset: 0 0 auto 0; height: 1px; content: ""; pointer-events: none; background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--primary) 65%, transparent), color-mix(in oklab, var(--secondary) 65%, transparent), transparent); opacity: 0.55; } /* Left accent stripe — turns into gradient on primary card */ .overviewCard::before { position: absolute; left: 0; top: 16px; bottom: 16px; width: 3px; content: ""; border-radius: 0 3px 3px 0; background: var(--border-strong); opacity: 0.45; transition: background var(--motion-fast), opacity var(--motion-fast); } .overviewCard:hover { border-color: var(--primary-border); transform: translateY(-1px); box-shadow: var(--shadow), 0 0 0 1px color-mix(in oklab, var(--primary) 22%, transparent), 0 14px 32px -10px color-mix(in oklab, var(--primary) 28%, transparent); } .overviewCard:hover::before { opacity: 1; } .overviewPrimary { border-color: var(--primary-border); background: var(--overview-primary-bg); } .overviewPrimary::before { background: linear-gradient(180deg, var(--primary), var(--secondary)); opacity: 1; } .overviewLabel { color: var(--muted); font-size: 12px; font-weight: 600; line-height: 1.3; letter-spacing: 0.08em; text-transform: uppercase; } .overviewValue { display: flex; align-items: baseline; gap: 8px; min-width: 0; margin-top: 10px; color: var(--text-strong); font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; font-size: var(--text-2xl); font-weight: 600; line-height: 1.05; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; font-feature-settings: "ss01", "tnum"; overflow-wrap: anywhere; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.04); } :root[data-theme="dark"] .overviewValue { text-shadow: 0 0 24px color-mix(in oklab, var(--primary) 18%, transparent); } .overviewMeta { min-height: 18px; margin-top: 6px; color: var(--muted); font-size: var(--text-sm); line-height: var(--leading-snug); overflow-wrap: anywhere; } .overviewSpark { display: block; width: 100%; height: 22px; margin-top: 8px; color: var(--primary); opacity: 0; transition: opacity var(--motion); } .overviewSpark.hasData { opacity: 0.8; } .statusDot { position: relative; flex: 0 0 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--muted-soft); box-shadow: var(--status-muted-ring); } .statusDot:not(.statusRunning):not(.statusError) { background: var(--muted-soft); box-shadow: var(--status-muted-ring); } .statusRunning { background: radial-gradient(circle at 30% 30%, #fcd34d, var(--success)); box-shadow: var(--status-success-ring), 0 0 8px color-mix(in oklab, var(--success) 60%, transparent), 0 0 16px color-mix(in oklab, var(--success) 30%, transparent); } .statusRunning::before { position: absolute; inset: -4px; content: ""; border-radius: 50%; border: 1.5px solid var(--success); opacity: 0.6; animation: statusRing 1.8s ease-out infinite; } .statusRunning::after { position: absolute; inset: -4px; content: ""; border-radius: 50%; border: 1px solid var(--secondary); opacity: 0.5; animation: statusRing 1.8s ease-out 0.9s infinite; } @keyframes statusRing { 0% { transform: scale(0.8); opacity: 0.75; } 100% { transform: scale(2); opacity: 0; } } .statusIdle { background: var(--muted-soft); box-shadow: var(--status-muted-ring); } .statusError { background: radial-gradient(circle at 30% 30%, #fda4af, var(--danger)); box-shadow: var(--status-danger-ring), 0 0 12px color-mix(in oklab, var(--danger) 60%, transparent); animation: statusPulse 1.6s ease-in-out infinite; } .statsGrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-top: 12px; } .statsGridHero { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 4px; } .statHero { padding: 20px 22px; border-color: color-mix(in oklab, var(--primary) 22%, var(--border)); background: radial-gradient(at 100% 0%, color-mix(in oklab, var(--primary) 8%, transparent), transparent 55%), var(--surface); box-shadow: 0 0 0 1px color-mix(in oklab, var(--primary) 12%, transparent), 0 4px 16px -8px color-mix(in oklab, var(--primary) 35%, transparent); } .statHero::before { background: linear-gradient(180deg, var(--primary), var(--secondary)) !important; opacity: 1 !important; } .statHero .statLabel { font-size: 13px; } .statHero .statValue { font-size: var(--text-2xl); letter-spacing: -0.025em; } .stat { position: relative; overflow: hidden; min-width: 0; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); transition: border-color var(--motion-fast), background var(--motion-fast), box-shadow var(--motion-fast); } /* Top hairline */ .stat::after { position: absolute; inset: 0 0 auto 0; height: 1px; content: ""; pointer-events: none; background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--primary) 35%, transparent), transparent); opacity: 0; transition: opacity var(--motion-fast); } /* Left accent stripe (defaults muted, switches color via stateOk/Warn/Error) */ .stat::before { position: absolute; left: 0; top: 12px; bottom: 12px; width: 2px; content: ""; border-radius: 0 2px 2px 0; background: var(--border-strong); opacity: 0; transition: opacity var(--motion-fast); } .stat:has(.stateOk)::before { background: var(--success); opacity: 1; } .stat:has(.stateWarn)::before { background: var(--warning); opacity: 1; } .stat:has(.stateError)::before { background: var(--danger); opacity: 1; } .stat:hover { border-color: var(--primary-border); background: color-mix(in oklab, var(--primary-soft) 30%, var(--surface)); box-shadow: 0 0 0 1px color-mix(in oklab, var(--primary) 14%, transparent), 0 6px 18px -8px color-mix(in oklab, var(--primary) 28%, transparent); } .stat:hover::after, .stat:hover::before { opacity: 1; } .statLabel { color: var(--muted); font-size: var(--text-xs); font-weight: 600; line-height: 1.3; letter-spacing: var(--tracking-wide); text-transform: uppercase; } .statValue { min-width: 0; margin-top: 8px; color: var(--text-strong); font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; font-size: var(--text-xl); font-weight: 600; line-height: var(--leading-tight); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; font-feature-settings: "ss01", "tnum"; overflow-wrap: anywhere; transition: color var(--motion-fast); } .statValue.stateOk { color: var(--success); } .statValue.stateMuted { color: var(--muted); } .statValue.stateError { color: var(--danger); } .statValue.stateWarn { color: var(--warning); } .statTrend { display: inline-flex; align-items: center; justify-content: center; margin-left: 6px; width: 14px; height: 14px; border-radius: 50%; font-size: 11px; line-height: 1; font-weight: 700; letter-spacing: 0; opacity: 0; } .statTrend.isUp { color: var(--success); background: color-mix(in oklab, var(--success) 14%, transparent); } .statTrend.isDown { color: var(--danger); background: color-mix(in oklab, var(--danger) 14%, transparent); } .statTrend.isFading { animation: statTrendFade 1100ms ease forwards; } @keyframes statTrendFade { 0% { opacity: 0; transform: translateY(2px) scale(0.85); } 20% { opacity: 1; transform: translateY(0) scale(1); } 80% { opacity: 1; transform: translateY(0) scale(1); } 100% { opacity: 0; transform: translateY(-2px) scale(0.95); } } @media (prefers-reduced-motion: reduce) { .statTrend.isFading { animation: none; opacity: 1; } } .statValue.hasCopy { position: relative; padding-right: 28px; } .copyBtn { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; padding: 0; border: 1px solid transparent; border-radius: var(--radius-sm); background: transparent; color: var(--muted-soft); cursor: pointer; opacity: 0; transition: opacity var(--motion-fast), color var(--motion-fast), background var(--motion-fast), border-color var(--motion-fast); } .statValue.hasCopy:hover .copyBtn, .statValue.hasCopy:focus-within .copyBtn, .copyBtn:focus-visible { opacity: 1; } .copyBtn:hover { color: var(--primary); border-color: color-mix(in oklab, var(--primary) 50%, transparent); background: color-mix(in oklab, var(--primary-soft) 60%, transparent); box-shadow: 0 0 10px -2px color-mix(in oklab, var(--primary) 50%, transparent); } .statValue.isFlash { animation: statFlash 700ms ease-out; } @keyframes statFlash { 0% { color: var(--primary); } 100% { color: var(--text-strong); } } @media (prefers-reduced-motion: reduce) { .statValue.isFlash { animation: none; } } .statTrace { font-size: var(--text-md); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; } .statHint { min-width: 0; margin-top: 6px; color: var(--muted); font-size: var(--text-sm); line-height: var(--leading-snug); overflow-wrap: anywhere; } @media (max-width: 640px) { .toastContainer { right: 12px; bottom: 12px; left: 12px; max-width: none; } } @media (max-width: 900px) { :root { --page-pad: 14px; } .app { padding: var(--page-pad); } .header { align-items: flex-start; flex-direction: column; } .brandBlock { min-width: 0; } .header-actions, .actionGroup { width: 100%; justify-content: flex-start; } .secondaryActions::before { display: none; } #btnTheme { margin-left: auto; } .workspaceHeader { align-items: stretch; flex-direction: column; gap: var(--space-3); } .workspaceSearch { width: 100%; } .overview { grid-template-columns: repeat(2, minmax(0, 1fr)); } .workspaceShell { grid-template-columns: 1fr; grid-template-areas: "rail" "workspace"; } .configRail, .liveRail, .cardLog { position: static; max-height: none; } .activityDock, .monitorPanel { grid-template-columns: 1fr; } .configLayout { display: contents; } .sideNav { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: thin; } .tabBtn { flex: 0 0 auto; width: auto; min-width: 104px; } .preview { width: min(520px, 100%); height: var(--shot-height-tablet); } } @media (max-width: 640px) { :root { --page-pad: 10px; --layout-gap: 10px; --overview-gap: 8px; } .subtitle { display: none; } .appConnText { display: none; } .app { padding: var(--page-pad); } .header { top: 0; padding: 10px; } .brandBlock { align-items: flex-start; } .brandMark { flex-basis: 36px; width: 36px; height: 36px; font-size: 17px; } .title { font-size: 18px; } .subtitle { font-size: 14px; } .actionGroup { gap: 6px; padding: 0; border: 0; background: transparent; } .header-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; } .primaryActions, .secondaryActions { display: contents; } .btn { width: 100%; min-height: 36px; padding: 0 8px; } .btn.small { flex: 0 0 auto; } .overview { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .overviewCard { padding: 12px; } .overviewValue { font-size: 17px; } .workspaceShell { gap: 10px; } .card { padding: 12px; } .row.grid2, .row.grid3, .inline2 { grid-template-columns: 1fr; } .inline2 > .input, .inline2 > input { border-radius: var(--radius-md); margin-left: 0; } .workspaceHeader { align-items: stretch; flex-direction: column; } .workspaceSearch { width: 100%; } .statsGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .chartsGrid, .logRow { grid-template-columns: 1fr; } .preview { width: 100%; height: var(--shot-height-mobile); } .logHeader { align-items: stretch; flex-direction: column; } .logHeaderActions { justify-content: flex-start; } .logSearchBox { flex: 1 1 100%; width: 100%; } .log { min-height: var(--log-height-mobile); max-height: var(--log-height-mobile); } .summaryActions { width: 100%; justify-content: flex-start; margin-left: 0; } summary.sectionTitle { align-items: flex-start; flex-direction: column; } } @media (max-width: 430px) { .actionGroup { padding: 3px; } .statsGrid { grid-template-columns: 1fr; } .overview { grid-template-columns: 1fr; } .tableRow { grid-template-columns: 1fr; gap: 4px; } .tableHead { display: none; } .barRow { grid-template-columns: minmax(0, 1fr) minmax(80px, 1fr) 34px; } .preview { width: 100%; } } @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 1ms !important; } }