Files
douyi_guaji_main/webui/styles.css
T
Codex 3ed352ef0e 重构 Web GUI 视觉为深浅双主题大厂风
- 引入 Linear/Vercel 风设计语言:单色 primary、克制阴影、Inter 字体
- 新增深/浅双主题 token 与右上角切换钮,支持系统跟随 + localStorage 记忆
- 字重整体降一档(760→600,720→550,650→500),更轻盈现代
- sectionTitle 改为 11px uppercase 灰色辅助文字 + 细分割线
- 删除 sheen / scan / overviewCard 渐变条等装饰动画与彩色装饰层
- 图表配色单色化:timeline 线统一用 primary + opacity 区分系列
- styles.css/app.js cache-bust 版本升至 theme-v3
2026-05-20 23:09:20 +08:00

1629 lines
29 KiB
CSS

/* ======== Light theme tokens (default) ======== */
:root {
--bg: #ffffff;
--bg-soft: #fafafa;
--surface: #ffffff;
--surface-solid: #ffffff;
--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: #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;
--shell-gap: 14px;
--rail-width: 216px;
--live-rail-width: 440px;
--panel-max: 980px;
--overview-gap: 12px;
--right-panel-min: 360px;
--config-nav-width: 168px;
--shot-height-desktop: clamp(240px, 28vh, 340px);
--shot-height-tablet: clamp(220px, 30vh, 320px);
--shot-height-mobile: clamp(220px, 32vh, 320px);
--queue-height-desktop: clamp(170px, 24vh, 280px);
--log-height-desktop: clamp(280px, 34vh, 420px);
--log-height-mobile: clamp(240px, 31vh, 360px);
--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;
}
* {
box-sizing: border-box;
}
html,
body {
min-height: 100%;
}
body {
margin: 0;
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: var(--bg);
letter-spacing: -0.005em;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
@keyframes surfaceIn {
from {
opacity: 0;
transform: translateY(4px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes statusPulse {
0%,
100% {
opacity: 1;
}
50% {
opacity: 0.6;
}
}
button,
input,
select,
textarea {
font: inherit;
}
button {
cursor: pointer;
}
svg {
display: block;
}
.app {
width: min(var(--page-max), 100%);
margin: 0 auto;
padding: var(--page-pad);
}
.header {
position: sticky;
top: 12px;
z-index: 20;
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
padding: 12px 14px;
border: 1px solid var(--border);
background: var(--header-bg);
border-radius: var(--radius);
box-shadow: var(--shadow-soft);
backdrop-filter: blur(12px) saturate(1.1);
animation: surfaceIn var(--motion-slow) both;
}
.brandBlock {
display: flex;
align-items: center;
gap: 12px;
min-width: 220px;
}
.brandMark {
position: relative;
overflow: hidden;
display: grid;
place-items: center;
flex: 0 0 36px;
width: 36px;
height: 36px;
color: var(--on-primary);
background: var(--primary);
border-radius: var(--radius);
font-size: 15px;
font-weight: 700;
}
.title {
color: var(--text-strong);
font-size: 16px;
font-weight: 600;
line-height: 1.25;
letter-spacing: -0.01em;
}
.subtitle {
margin-top: 4px;
color: var(--muted);
font-size: 12px;
line-height: 1.35;
}
.header-actions {
display: flex;
align-items: center;
justify-content: flex-end;
gap: 8px;
flex-wrap: wrap;
min-width: 0;
}
.actionGroup {
display: flex;
align-items: center;
justify-content: flex-end;
gap: 6px;
flex-wrap: wrap;
padding: 0;
border: 0;
background: transparent;
}
.primaryActions {
border: 0;
background: transparent;
}
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
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);
font-size: 13px;
font-weight: 500;
line-height: 1;
white-space: nowrap;
transition: background var(--motion-fast), border-color var(--motion-fast), color var(--motion-fast);
}
.btn:hover {
border-color: var(--hover-border);
background: var(--surface-muted);
}
.btn:active {
background: var(--surface-soft);
}
.btn:disabled {
cursor: not-allowed;
opacity: 0.5;
}
.btn.isBusy {
cursor: progress;
opacity: 0.7;
}
.btnIcon {
display: inline-flex;
flex: 0 0 16px;
width: 16px;
height: 16px;
}
.btnIcon svg {
width: 16px;
height: 16px;
}
.btnPrimary {
color: var(--on-primary);
border-color: var(--primary);
background: var(--primary);
}
.btnPrimary:hover {
color: var(--on-primary);
border-color: var(--primary-hover);
background: var(--primary-hover);
}
.btnSoft {
color: var(--text);
border-color: var(--border);
background: var(--surface);
}
.btnSoft:hover {
color: var(--text);
border-color: var(--hover-border);
background: var(--surface-muted);
}
.btnGhost {
color: var(--muted);
border-color: transparent;
background: transparent;
}
.btnGhost:hover {
color: var(--text);
border-color: var(--border);
background: var(--surface-muted);
}
.btnDanger {
color: var(--on-primary);
border-color: var(--danger);
background: var(--danger);
}
.btnDanger:hover {
color: var(--on-primary);
border-color: var(--danger-hover);
background: var(--danger-hover);
}
.btnDangerSoft {
color: var(--danger);
border-color: var(--danger-border);
background: var(--danger-soft);
}
.btnDangerSoft:hover {
color: var(--danger);
border-color: var(--danger-soft-hover-border);
background: var(--danger-soft-hover);
}
.btn.small {
min-height: 28px;
padding: 0 9px;
font-size: 12px;
}
.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 {
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: 14px;
border: 1px solid var(--border);
border-radius: var(--radius);
background: var(--surface);
box-shadow: var(--shadow-soft);
animation: surfaceIn var(--motion-slow) both;
transition: border-color var(--motion);
}
.overviewCard:nth-child(2) {
animation-delay: 30ms;
}
.overviewCard:nth-child(3) {
animation-delay: 60ms;
}
.overviewCard:nth-child(4) {
animation-delay: 90ms;
}
.overviewCard:hover {
border-color: var(--hover-border);
}
.overviewPrimary {
border-color: var(--primary-border);
background: var(--overview-primary-bg);
}
.overviewLabel {
color: var(--muted);
font-size: 12px;
font-weight: 500;
line-height: 1.3;
}
.overviewValue {
display: flex;
align-items: center;
gap: 8px;
min-width: 0;
margin-top: 7px;
color: var(--text-strong);
font-size: 20px;
font-weight: 600;
line-height: 1.2;
overflow-wrap: anywhere;
}
.overviewMeta {
min-height: 18px;
margin-top: 7px;
color: var(--muted);
font-size: 12px;
line-height: 1.35;
overflow-wrap: anywhere;
}
.statusDot {
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: var(--success);
box-shadow: var(--status-success-ring);
animation: statusPulse 2s ease-in-out infinite;
}
.statusIdle {
background: var(--muted-soft);
box-shadow: var(--status-muted-ring);
}
.statusError {
background: var(--danger);
box-shadow: var(--status-danger-ring);
animation: statusPulse 2s ease-in-out infinite;
}
.workspaceShell {
display: grid;
grid-template-columns: var(--rail-width) minmax(0, 1fr);
grid-template-areas:
"rail workspace";
align-items: start;
gap: var(--shell-gap);
margin-top: 14px;
}
.workspaceShell > * {
min-width: 0;
}
.configRail {
position: sticky;
top: 106px;
grid-area: rail;
max-height: calc(100vh - 124px);
overflow: auto;
}
.workspaceShell .configRail {
position: sticky;
top: 106px;
align-self: start;
}
.configWorkspace {
grid-area: workspace;
min-width: 0;
}
.liveRail {
grid-area: workspace;
display: grid;
gap: var(--shell-gap);
min-width: 0;
}
.activityDock {
grid-area: workspace;
display: grid;
grid-template-columns: 1fr;
gap: var(--shell-gap);
min-width: 0;
}
.monitorPanel {
display: grid;
grid-template-columns: minmax(320px, 640px);
gap: var(--shell-gap);
}
.monitorPanel[hidden] {
display: none !important;
}
.cardShot {
display: flex;
flex-direction: column;
}
.card {
position: relative;
overflow: hidden;
min-width: 0;
min-height: 0;
padding: 16px;
border: 1px solid var(--border);
border-radius: var(--radius);
background: var(--surface);
box-shadow: var(--shadow);
animation: surfaceIn var(--motion-slow) both;
transition: border-color var(--motion);
}
.cardShot {
animation-delay: 40ms;
}
.cardReservations {
animation-delay: 80ms;
}
.cardLog {
animation-delay: 120ms;
}
.card > * {
position: relative;
z-index: 1;
}
.card:hover {
border-color: var(--hover-border);
}
.cardScroll {
max-height: none;
overflow: visible;
}
.cardTitle {
display: flex;
align-items: center;
gap: 9px;
min-width: 0;
padding-bottom: 12px;
border-bottom: 1px solid var(--border);
color: var(--text-strong);
font-size: 15px;
font-weight: 600;
line-height: 1.25;
}
.sectionIcon {
display: inline-flex;
flex: 0 0 18px;
width: 18px;
height: 18px;
color: var(--primary);
}
.sectionIcon svg {
width: 18px;
height: 18px;
}
.configLayout {
display: contents;
}
.workspaceHeader {
display: flex;
align-items: flex-end;
justify-content: space-between;
gap: 16px;
min-width: 0;
margin-bottom: 12px;
padding: 14px 16px;
border: 1px solid var(--border);
border-radius: var(--radius);
background: var(--surface);
}
.workspaceEyebrow {
color: var(--muted);
font-size: 11px;
font-weight: 500;
letter-spacing: 0.06em;
text-transform: uppercase;
}
.workspaceTitle {
margin: 4px 0 0;
color: var(--text-strong);
font-size: 20px;
line-height: 1.2;
}
.workspaceHint {
max-width: 360px;
color: var(--muted);
font-size: 12px;
line-height: 1.45;
text-align: right;
}
.sideNav {
position: static;
display: flex;
flex-direction: column;
gap: 4px;
min-width: 0;
margin-top: 14px;
padding: 6px;
border: 1px solid var(--border);
border-radius: var(--radius);
background: var(--surface-soft);
box-shadow: 0 1px 0 var(--hairline) inset;
}
.tabBtn {
position: relative;
display: flex;
align-items: center;
justify-content: flex-start;
gap: 8px;
width: 100%;
min-width: 0;
min-height: 38px;
padding: 0 10px;
border: 1px solid transparent;
border-radius: var(--radius);
color: var(--muted);
background: transparent;
font-size: 13px;
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);
}
.tabBtn:hover {
color: var(--text);
background: var(--surface-muted);
}
.tabBtn.active {
color: var(--text-strong);
border-color: var(--border);
background: var(--surface-muted);
box-shadow: inset 2px 0 0 var(--primary);
}
.tabIcon {
display: inline-flex;
flex: 0 0 16px;
width: 16px;
height: 16px;
}
.tabIcon svg {
width: 16px;
height: 16px;
}
.tabText {
overflow: hidden;
text-overflow: ellipsis;
}
.panels {
min-width: 0;
max-width: var(--panel-max);
}
.panel {
min-width: 0;
padding: 18px 20px;
border: 1px solid var(--border);
border-radius: var(--radius);
background: var(--surface);
box-shadow: var(--shadow-soft);
animation: surfaceIn var(--motion-slow) both;
}
.panel.cardLog {
overflow: hidden;
}
.panel[hidden] {
display: none !important;
}
.sectionTitle {
display: flex;
align-items: center;
gap: 8px;
min-width: 0;
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: 5px;
min-width: 0;
margin-top: 10px;
}
.row.grid2,
.row.grid3 {
display: grid;
align-items: start;
gap: 10px;
}
.row.grid2 {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.row.grid3 {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
.inline2 {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 8px;
min-width: 0;
}
.rowActions {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-top: 12px;
}
.label {
color: var(--muted);
font-size: 12px;
font-weight: 500;
line-height: 1.35;
}
.input,
.small,
.logSearchBox {
width: 100%;
min-width: 0;
min-height: var(--control-height);
padding: 0 10px;
border: 1px solid var(--border-strong);
border-radius: var(--radius);
color: var(--text);
background: var(--surface);
font-size: 13px;
outline: none;
transition: border-color var(--motion-fast), box-shadow var(--motion-fast);
}
.input:hover,
.small:hover,
.logSearchBox:hover {
border-color: var(--hover-border);
}
.input:focus,
.small:focus,
.logSearchBox:focus {
border-color: var(--primary);
box-shadow: var(--focus-ring);
}
.textarea {
min-height: 96px;
padding: 9px 10px;
line-height: 1.55;
resize: vertical;
}
.check {
display: flex;
align-items: center;
gap: 8px;
min-width: 0;
min-height: var(--control-height);
padding: 8px 10px;
border: 1px solid var(--border);
border-radius: var(--radius);
color: var(--text);
background: var(--surface-soft);
font-size: 13px;
line-height: 1.35;
}
.check:hover {
border-color: var(--hover-border);
background: var(--surface-elevated);
}
.check input[type="checkbox"] {
flex: 0 0 auto;
width: 15px;
height: 15px;
margin: 0;
accent-color: var(--primary);
}
.check span {
min-width: 0;
overflow-wrap: anywhere;
}
.hint {
min-width: 0;
color: var(--muted);
font-size: 12px;
line-height: 1.45;
overflow-wrap: anywhere;
}
.divider {
height: 1px;
margin: 16px 0;
background: var(--border);
}
.statsGrid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(154px, 1fr));
gap: 10px;
margin-top: 10px;
}
.stat {
min-width: 0;
padding: 12px;
border: 1px solid var(--border);
border-radius: var(--radius);
background: var(--surface-soft);
box-shadow: 0 1px 0 var(--hairline) inset;
transition: border-color var(--motion-fast), transform var(--motion-fast), background var(--motion-fast);
}
.stat:hover {
border-color: var(--hover-border);
background: var(--surface-elevated);
transform: translateY(-1px);
}
.statLabel {
color: var(--muted);
font-size: 12px;
font-weight: 500;
line-height: 1.35;
}
.statValue {
min-width: 0;
margin-top: 6px;
color: var(--text-strong);
font-size: 19px;
font-weight: 600;
line-height: 1.25;
overflow-wrap: anywhere;
}
.statTrace {
font-size: 14px;
}
.statHint {
min-width: 0;
margin-top: 5px;
color: var(--muted);
font-size: 12px;
line-height: 1.35;
overflow-wrap: anywhere;
}
.chartsGrid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
gap: 12px;
margin-top: 12px;
}
.chartBlock {
min-width: 0;
padding: 12px;
border: 1px solid var(--border);
border-radius: var(--radius);
background: var(--surface-soft);
box-shadow: 0 1px 0 var(--hairline) inset;
}
.chartTitle {
color: var(--text-strong);
font-size: 13px;
font-weight: 550;
line-height: 1.35;
}
.chart {
min-width: 0;
min-height: 76px;
margin-top: 10px;
}
.chart svg {
width: 100%;
height: auto;
}
.timelineSvg {
display: block;
}
.barRow {
display: grid;
grid-template-columns: minmax(78px, 0.9fr) minmax(80px, 2fr) 42px;
align-items: center;
gap: 8px;
min-width: 0;
min-height: 26px;
}
.barRow + .barRow {
margin-top: 8px;
}
.barLabel {
min-width: 0;
color: var(--text);
font-size: 12px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.barTrack {
height: 8px;
overflow: hidden;
border-radius: 99px;
background: var(--chart-track);
}
.barFill {
height: 100%;
border-radius: 99px;
background: var(--primary);
transition: width var(--motion-slow);
}
.barValue {
color: var(--muted);
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
font-size: 12px;
text-align: right;
}
.table {
min-width: 0;
overflow: hidden;
margin-top: 10px;
border: 1px solid var(--border);
border-radius: var(--radius);
background: var(--surface);
}
.tableRow {
display: grid;
grid-template-columns: minmax(92px, 0.65fr) minmax(0, 1.7fr) minmax(54px, 0.45fr);
gap: 10px;
min-width: 0;
padding: 9px 11px;
border-top: 1px solid var(--border);
color: var(--text);
font-size: 12px;
line-height: 1.45;
}
.tableRow:first-child {
border-top: 0;
}
.tableRow > div {
min-width: 0;
overflow-wrap: anywhere;
}
.tableHead {
color: var(--muted);
background: var(--surface-soft);
font-weight: 550;
}
.mono {
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
.preview {
position: relative;
display: flex;
align-items: center;
justify-content: center;
height: var(--shot-height-desktop);
min-height: 0;
max-height: none;
width: 100%;
aspect-ratio: 9 / 16;
margin-top: 14px;
overflow: hidden;
border: 1px solid var(--border);
border-radius: var(--radius);
background: var(--preview-bg);
transition: border-color var(--motion);
}
.preview:hover {
border-color: var(--hover-border);
}
.preview.isShotEmpty {
border-style: dashed;
background: var(--surface-soft);
}
.preview img {
display: block;
width: 100%;
height: 100%;
object-fit: contain;
opacity: 0;
color: transparent;
font-size: 0;
}
.preview img[src*="screenshot.png"][data-loading="false"] {
opacity: 1;
}
.preview.isShotEmpty img {
display: none;
}
#liveShotStatus {
align-self: flex-start;
margin-top: 10px;
}
.reservationsContent {
display: flex;
flex-direction: column;
gap: 8px;
min-width: 0;
margin-top: 12px;
}
.reservationsInfo {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
gap: 6px 10px;
min-width: 0;
padding: 9px;
border: 1px solid var(--border);
border-radius: var(--radius);
background: var(--surface-soft);
color: var(--text);
font-size: 12px;
line-height: 1.45;
}
.reservationsInfo > div {
min-width: 0;
overflow-wrap: anywhere;
}
.reservationsList {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 8px;
min-width: 0;
max-height: var(--queue-height-desktop);
overflow: auto;
padding-right: 2px;
}
.reservationItem {
min-width: 0;
overflow: hidden;
border: 1px solid var(--border);
border-radius: var(--radius);
background: var(--surface);
transition: border-color var(--motion-fast), box-shadow var(--motion), transform var(--motion);
}
.reservationItem:hover {
border-color: var(--hover-border);
box-shadow: var(--shadow-soft);
transform: translateY(-1px);
}
.reservationHeader {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
min-width: 0;
padding: 9px 10px;
border-bottom: 1px solid var(--border);
background: var(--surface-soft);
}
.reservationHeader.isClickable {
cursor: pointer;
}
.reservationIndex {
color: var(--primary);
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
font-size: 12px;
font-weight: 600;
}
.reservationValue {
max-width: 68%;
padding: 3px 8px;
overflow: hidden;
border: 1px solid var(--warning-border);
border-radius: 99px;
color: var(--warning);
background: var(--warning-soft);
font-size: 12px;
font-weight: 550;
text-overflow: ellipsis;
white-space: nowrap;
}
.reservationBody {
display: grid;
gap: 5px;
min-width: 0;
padding: 9px 10px;
color: var(--text);
font-size: 12px;
line-height: 1.45;
}
.reservationBody > div {
min-width: 0;
overflow-wrap: anywhere;
}
.reservationBody.isCollapsed,
.reservationsList.isListCollapsed {
display: none;
}
details {
min-width: 0;
}
summary {
cursor: pointer;
}
summary::-webkit-details-marker {
display: none;
}
summary.sectionTitle {
justify-content: space-between;
gap: 10px;
}
.summaryActions {
display: inline-flex;
align-items: center;
justify-content: flex-end;
gap: 6px;
flex-wrap: wrap;
margin-left: auto;
font-weight: 500;
}
.logRow {
display: grid;
grid-template-columns: 1fr;
gap: 12px;
margin-top: 14px;
}
.singleLogSection {
margin-top: 14px;
}
.logSection {
min-width: 0;
overflow: hidden;
border: 1px solid var(--border);
border-radius: var(--radius);
background: var(--surface);
box-shadow: 0 1px 0 var(--hairline) inset;
}
.logHeader {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
min-width: 0;
padding: 10px;
border-bottom: 1px solid var(--border);
background: var(--surface-soft);
}
.logTitle {
color: var(--text-strong);
font-size: 13px;
font-weight: 600;
white-space: nowrap;
}
.logHeaderActions {
display: flex;
align-items: center;
justify-content: flex-end;
flex-wrap: wrap;
gap: 7px;
min-width: 0;
}
.logHeaderActions .small {
width: auto;
min-height: 30px;
font-size: 12px;
}
.logSearchBox {
width: 230px;
min-height: 30px;
font-size: 12px;
}
.log {
min-width: 0;
min-height: clamp(250px, 32vh, 390px);
max-height: clamp(250px, 32vh, 390px);
margin: 0;
padding: 12px;
overflow: auto;
border-top: 1px solid var(--log-border);
color: var(--log-text);
background: var(--log-bg);
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
font-size: 12px;
line-height: 1.55;
overflow-wrap: anywhere;
white-space: pre-wrap;
}
.panel.cardLog .log {
min-height: clamp(430px, 58vh, 720px);
max-height: clamp(430px, 58vh, 720px);
}
.log::selection {
color: var(--text-strong);
background: rgba(184, 205, 246, 0.42);
}
@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;
}
.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;
}
.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: 15px;
}
.title {
font-size: 16px;
}
.subtitle {
font-size: 12px;
}
.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: 34px;
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;
}
.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;
}
}