504 lines
31 KiB
CSS
504 lines
31 KiB
CSS
@import "./tokens.css";
|
|
|
|
* { box-sizing: border-box; }
|
|
|
|
html, body, #root {
|
|
margin: 0; padding: 0; height: 100%; overflow: hidden;
|
|
background: var(--surface-0); color: var(--text);
|
|
font-family: var(--font-sans); font-size: var(--fs-14); line-height: 1.48;
|
|
-webkit-font-smoothing: antialiased;
|
|
}
|
|
|
|
button { font: inherit; color: inherit; }
|
|
h1, h2, h3, p { margin: 0; }
|
|
|
|
:focus { outline: none; }
|
|
:focus-visible { box-shadow: var(--focus-ring); border-radius: var(--r-md); }
|
|
|
|
::-webkit-scrollbar { width: 8px; height: 8px; }
|
|
::-webkit-scrollbar-track { background: transparent; }
|
|
::-webkit-scrollbar-thumb { background: var(--surface-active); border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
|
|
::-webkit-scrollbar-thumb:hover { background-color: var(--border-strong); }
|
|
|
|
.mono { font-family: var(--font-mono); font-size: var(--fs-12); }
|
|
.muted { color: var(--text-3); }
|
|
.selectable { user-select: text; }
|
|
.hstack { display: flex; align-items: center; gap: var(--sp-2); }
|
|
.spacer { flex: 1; }
|
|
|
|
@keyframes spin { to { transform: rotate(360deg); } }
|
|
.spin { animation: spin 0.9s linear infinite; }
|
|
@keyframes pulse { 50% { opacity: 0.35; } }
|
|
|
|
/* ── Shell ─────────────────────────────────────────────── */
|
|
.app-shell { display: flex; flex-direction: column; height: 100%; background: var(--surface-0); }
|
|
|
|
.titlebar {
|
|
height: var(--titlebar-h); flex-shrink: 0;
|
|
display: flex; align-items: center; justify-content: space-between;
|
|
padding-left: var(--sp-4);
|
|
background: var(--surface-chrome);
|
|
border-bottom: 1px solid var(--border);
|
|
user-select: none; --wails-draggable: drag;
|
|
}
|
|
.brand { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-13); font-weight: var(--fw-strong); color: var(--text); }
|
|
.brand-mark {
|
|
/* The SVG has its own squircle plus shadow padding; scale it so the squircle reads ~20px. */
|
|
width: 24px; height: 24px; margin: -2px;
|
|
display: block;
|
|
}
|
|
.titlebar-right { display: flex; align-items: center; height: 100%; gap: var(--sp-1); --wails-draggable: no-drag; }
|
|
.theme-toggle {
|
|
width: 30px; height: 28px; margin-right: var(--sp-1);
|
|
border: 1px solid var(--border); border-radius: var(--r-md);
|
|
background: var(--surface-1); color: var(--text-2);
|
|
display: grid; place-items: center; cursor: pointer;
|
|
transition: background var(--dur-fast), color var(--dur-fast);
|
|
}
|
|
.theme-toggle:hover { background: var(--surface-hover); color: var(--text); }
|
|
|
|
.win-controls { display: flex; height: 100%; --wails-draggable: no-drag; }
|
|
.win-btn {
|
|
width: 44px; height: 100%; border: none; background: transparent; color: var(--text-2);
|
|
display: grid; place-items: center; cursor: pointer; transition: background var(--dur-fast), color var(--dur-fast);
|
|
}
|
|
.win-btn:hover { background: var(--surface-hover); color: var(--text); }
|
|
.win-btn.close:hover { background: #e81123; color: #fff; }
|
|
.win-btn:focus-visible { border-radius: 0; }
|
|
|
|
.workspace { display: flex; flex: 1; min-height: 0; background: var(--surface-canvas); }
|
|
|
|
/* ── Floating Tahoe Sidebar ────────────────────────────── */
|
|
.sidebar-wrap {
|
|
width: var(--sidebar-w); flex-shrink: 0;
|
|
padding: 10px 0 10px 10px;
|
|
display: flex;
|
|
}
|
|
.sidebar {
|
|
flex: 1; min-height: 0;
|
|
display: flex; flex-direction: column; gap: var(--sp-1);
|
|
padding: 10px 8px; overflow-y: auto;
|
|
background: var(--surface-sidebar);
|
|
border: 1px solid var(--surface-sidebar-border);
|
|
border-radius: 14px;
|
|
box-shadow: var(--surface-sidebar-shadow);
|
|
}
|
|
.sidebar-head {
|
|
display: flex; align-items: center; justify-content: space-between;
|
|
padding: 4px 6px 6px 10px;
|
|
font-size: 11px; font-weight: var(--fw-strong); letter-spacing: 0.02em;
|
|
color: var(--text-3); text-transform: uppercase;
|
|
}
|
|
.sidebar-sep { height: 1px; background: var(--border); margin: 8px 10px; }
|
|
.nav { display: flex; flex-direction: column; gap: 3px; }
|
|
.nav-empty { padding: 6px 10px; font-size: var(--fs-13); color: var(--text-3); }
|
|
.nav-item {
|
|
width: 100%; height: 36px; padding: 0 10px;
|
|
display: flex; align-items: center; gap: 10px;
|
|
border: none; border-radius: 9px; background: transparent; color: var(--text);
|
|
text-align: left; cursor: pointer;
|
|
transition: background var(--dur-fast), color var(--dur-fast);
|
|
}
|
|
.nav-item:hover { background: var(--surface-hover); }
|
|
.nav-item[aria-selected="true"] {
|
|
background: var(--accent);
|
|
color: var(--accent-text);
|
|
font-weight: var(--fw-medium);
|
|
box-shadow: 0 1px 3px rgba(0, 122, 255, 0.28);
|
|
}
|
|
.nav-item[aria-selected="true"] .nav-icon-badge {
|
|
background: rgba(255, 255, 255, 0.22);
|
|
color: #ffffff;
|
|
box-shadow: none;
|
|
}
|
|
.nav-item[aria-selected="true"] .status-running {
|
|
background: #ffffff;
|
|
box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25);
|
|
}
|
|
.nav-item[aria-selected="true"] .status-stopped {
|
|
border-color: rgba(255, 255, 255, 0.7);
|
|
}
|
|
.nav-icon-badge {
|
|
width: 24px; height: 24px; border-radius: 7px; flex-shrink: 0;
|
|
display: grid; place-items: center; color: #ffffff;
|
|
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.14);
|
|
}
|
|
.nav-icon-vm { background: linear-gradient(145deg, #32a0ff 0%, #007aff 100%); }
|
|
.nav-icon-host { background: linear-gradient(145deg, #8e8e93 0%, #636366 100%); }
|
|
.nav-icon-installers { background: linear-gradient(145deg, #34c759 0%, #248a3d 100%); }
|
|
.nav-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-13); }
|
|
|
|
/* Status shapes */
|
|
.status { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; display: inline-block; }
|
|
.status-running { background: var(--status-running); }
|
|
.status-stopped { border: 1.5px solid var(--status-idle); }
|
|
.status-busy { background: conic-gradient(var(--status-busy) 0 50%, transparent 50% 100%); border: 1.5px solid var(--status-busy); animation: pulse 1.4s ease-in-out infinite; }
|
|
.status-warn { background: var(--status-busy); }
|
|
.status-broken { background: var(--status-error); border-radius: 1px; transform: rotate(45deg); width: 7px; height: 7px; }
|
|
|
|
/* ── Main column ───────────────────────────────────────── */
|
|
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
|
|
.scroll { flex: 1; overflow-y: auto; padding: 20px 32px 32px; }
|
|
.page { max-width: var(--page-max); margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
|
|
|
|
.page-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); min-height: 34px; }
|
|
.page-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
|
|
.page-title h1 { font-size: 16px; font-weight: var(--fw-strong); letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.state-text { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-12); color: var(--text-2); white-space: nowrap; }
|
|
.actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
|
|
|
|
/* ── macOS Tahoe "About This Mac" Hero ─────────────────── */
|
|
.vm-hero {
|
|
display: flex; flex-direction: column; align-items: center;
|
|
gap: 8px; padding: 4px 0 6px; text-align: center;
|
|
}
|
|
.vm-imac-svg { width: 112px; height: 88px; filter: drop-shadow(0 6px 14px rgba(15, 23, 42, 0.12)); }
|
|
.vm-hero-name { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
|
|
.vm-hero-pill {
|
|
display: inline-flex; align-items: center; gap: 6px;
|
|
padding: 3px 10px; border-radius: 999px;
|
|
background: var(--surface-1); border: 1px solid var(--border);
|
|
font-size: var(--fs-12); font-weight: var(--fw-medium); color: var(--text-2);
|
|
}
|
|
|
|
/* ── Tahoe Grouped Inset Sections ──────────────────────── */
|
|
.section { display: flex; flex-direction: column; gap: 8px; }
|
|
.section-title {
|
|
font-size: var(--fs-13); font-weight: var(--fw-strong); color: var(--text);
|
|
padding: 0 4px;
|
|
display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); min-height: 26px;
|
|
}
|
|
|
|
.tahoe-group {
|
|
background: var(--surface-1);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--r-lg);
|
|
overflow: hidden;
|
|
}
|
|
.tahoe-row {
|
|
display: flex; align-items: center; justify-content: space-between; gap: 16px;
|
|
min-height: 40px; padding: 9px 16px;
|
|
position: relative; font-size: 13.5px;
|
|
}
|
|
.tahoe-row + .tahoe-row::before {
|
|
content: ""; position: absolute; top: 0; left: 16px; right: 16px;
|
|
height: 1px; background: var(--border);
|
|
}
|
|
.tahoe-label { color: var(--text); font-weight: var(--fw-regular); display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
|
|
.tahoe-value { color: var(--text-2); text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; user-select: text; }
|
|
.tahoe-orb {
|
|
width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
|
|
background: radial-gradient(circle at 32% 30%, #6fd2ff 0%, #1c7ef2 55%, #0b419e 100%);
|
|
box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.55), 0 1px 3px rgba(0, 82, 204, 0.28);
|
|
}
|
|
.tahoe-display-icon {
|
|
width: 24px; height: 20px; border-radius: 4px; flex-shrink: 0;
|
|
background: linear-gradient(160deg, #5cc2ff 0%, #1b7ff2 100%);
|
|
border: 1.5px solid #2b2b2f;
|
|
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
/* ── Buttons ───────────────────────────────────────────── */
|
|
.btn {
|
|
height: 30px; padding: 0 12px;
|
|
display: inline-flex; align-items: center; justify-content: center; gap: 6px;
|
|
border-radius: var(--r-md); border: 1px solid var(--border-strong);
|
|
background: var(--surface-card-elevated); color: var(--text);
|
|
box-shadow: var(--shadow-btn);
|
|
font-size: var(--fs-13); font-weight: var(--fw-medium); white-space: nowrap; flex-shrink: 0;
|
|
cursor: pointer; transition: background var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast);
|
|
}
|
|
.btn:hover:not(:disabled) { background: var(--surface-hover); }
|
|
.btn:disabled { opacity: 0.45; cursor: default; box-shadow: none; }
|
|
.btn-primary { background: var(--accent); border-color: transparent; color: var(--accent-text); font-weight: var(--fw-strong); box-shadow: 0 1px 3px rgba(0, 122, 255, 0.3); }
|
|
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); }
|
|
.btn-danger { background: var(--danger); border-color: transparent; color: #fff; font-weight: var(--fw-strong); }
|
|
.btn-danger:hover:not(:disabled) { filter: brightness(1.06); background: var(--danger); }
|
|
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); box-shadow: none; }
|
|
.btn-ghost:hover:not(:disabled) { background: var(--surface-hover); color: var(--text); }
|
|
|
|
.icon-btn {
|
|
width: 30px; height: 30px; flex-shrink: 0;
|
|
display: inline-grid; place-items: center;
|
|
border: 1px solid var(--border); border-radius: var(--r-md);
|
|
background: var(--surface-card-elevated); color: var(--text-2);
|
|
box-shadow: var(--shadow-btn);
|
|
cursor: pointer; transition: background var(--dur-fast), color var(--dur-fast);
|
|
}
|
|
.icon-btn:hover:not(:disabled), .icon-btn[data-state="open"] { background: var(--surface-hover); color: var(--text); }
|
|
.icon-btn:disabled { opacity: 0.4; cursor: default; box-shadow: none; }
|
|
.icon-btn.sm { width: 26px; height: 26px; border-color: transparent; background: transparent; box-shadow: none; }
|
|
.icon-btn.sm:hover:not(:disabled) { background: var(--surface-hover); }
|
|
|
|
.segmented { display: inline-flex; padding: 2px; gap: 2px; border-radius: var(--r-md); background: var(--surface-active); border: 1px solid var(--border); }
|
|
.segmented button { height: 24px; padding: 0 12px; border: none; border-radius: var(--r-sm); background: transparent; color: var(--text-2); font-size: var(--fs-13); cursor: pointer; }
|
|
.segmented button[aria-pressed="true"] { background: var(--surface-card-elevated); color: var(--text); font-weight: var(--fw-strong); box-shadow: var(--shadow-btn); }
|
|
|
|
/* ── Cards & notices ───────────────────────────────────── */
|
|
.card { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-3); }
|
|
.card-title { font-size: var(--fs-14); font-weight: var(--fw-strong); }
|
|
.card-foot { display: flex; justify-content: flex-end; gap: var(--sp-2); }
|
|
|
|
.notice {
|
|
display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
|
|
padding: 10px 12px 10px 14px;
|
|
border-radius: var(--r-lg); background: var(--notice-soft); border: 1px solid var(--notice-border);
|
|
font-size: var(--fs-13); color: var(--text);
|
|
}
|
|
.notice-error { background: var(--danger-soft); border-color: rgba(255, 59, 48, 0.28); color: var(--danger-text); padding: 10px 14px; }
|
|
.notice-error ul { margin: 0; padding-left: var(--sp-4); }
|
|
|
|
.steps { margin: 0; padding-left: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-1); color: var(--text-2); font-size: var(--fs-13); }
|
|
|
|
/* ── Command line & technical details ──────────────────── */
|
|
.cmd-line {
|
|
display: flex; align-items: center; gap: var(--sp-3);
|
|
padding: 6px 6px 6px 14px;
|
|
border-radius: var(--r-lg); background: var(--surface-1); border: 1px solid var(--border);
|
|
}
|
|
.cmd-line > svg { color: var(--text-3); }
|
|
.cmd-line code { flex: 1; font-family: var(--font-mono); font-size: var(--fs-13); color: var(--text-code); user-select: text; }
|
|
|
|
.tech > summary {
|
|
list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: var(--sp-1);
|
|
padding: 2px 4px;
|
|
font-size: var(--fs-13); font-weight: var(--fw-medium); color: var(--text-2); border-radius: var(--r-sm);
|
|
}
|
|
.tech > summary::-webkit-details-marker { display: none; }
|
|
.tech > summary svg { transition: transform var(--dur-fast); }
|
|
.tech[open] > summary svg { transform: rotate(90deg); }
|
|
.tech > summary:hover { color: var(--text); }
|
|
.kv-list {
|
|
margin: 10px 0 0; padding: 12px 16px;
|
|
background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--r-lg);
|
|
display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; font-size: var(--fs-13);
|
|
}
|
|
.kv-list dt { color: var(--text-3); }
|
|
.kv-list dd { margin: 0; color: var(--text-2); word-break: break-all; user-select: text; }
|
|
|
|
/* ── Grouped list (host page, settings) ────────────────── */
|
|
.list { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
|
|
.row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); padding: 11px 16px; position: relative; }
|
|
.row + .row::before { content: ""; position: absolute; top: 0; left: 16px; right: 16px; height: 1px; background: var(--border); }
|
|
.row-main { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
|
|
.row-title { font-size: 13.5px; display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; color: var(--text); }
|
|
.row-sub { font-size: var(--fs-12); color: var(--text-3); word-break: break-all; }
|
|
.row-right { display: flex; align-items: center; gap: var(--sp-2); flex-shrink: 0; }
|
|
|
|
.badge { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: var(--fw-medium); white-space: nowrap; background: var(--surface-active); color: var(--text-2); }
|
|
.badge-accent { background: var(--accent-soft); color: var(--accent-soft-text); }
|
|
.badge-ok { background: rgba(40, 205, 65, 0.14); color: #1a9e30; }
|
|
:root[data-theme="dark"] .badge-ok { color: var(--status-running); }
|
|
.badge-warn { background: rgba(255, 159, 10, 0.16); color: #b86e00; }
|
|
:root[data-theme="dark"] .badge-warn { color: var(--status-busy); }
|
|
.badge-error { background: var(--danger); color: #fff; min-width: 18px; height: 18px; padding: 0 var(--sp-1); justify-content: center; border-radius: 999px; }
|
|
|
|
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
|
|
.tile .tile-action { align-self: flex-start; height: 26px; margin-top: 2px; }
|
|
.tile { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
|
|
.tile-head { display: flex; align-items: center; gap: 6px; font-size: var(--fs-12); color: var(--text-3); }
|
|
.tile-value { font-size: 15px; font-weight: var(--fw-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
|
|
.tile-value.ok { color: #1a9e30; }
|
|
:root[data-theme="dark"] .tile-value.ok { color: var(--status-running); }
|
|
.tile-value.warn { color: #b86e00; }
|
|
:root[data-theme="dark"] .tile-value.warn { color: var(--status-busy); }
|
|
.tile-sub { font-size: var(--fs-12); color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
|
|
/* macOS Tahoe Switch */
|
|
.switch { position: relative; display: inline-block; width: 38px; height: 22px; flex-shrink: 0; cursor: pointer; }
|
|
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
|
|
.slider { position: absolute; inset: 0; border-radius: 999px; background: var(--surface-active); transition: background var(--dur); pointer-events: none; }
|
|
.slider::before { content: ""; position: absolute; width: 18px; height: 18px; left: 2px; top: 2px; border-radius: 50%; background: #ffffff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22); transition: transform var(--dur); }
|
|
.switch input:checked + .slider { background: var(--accent); }
|
|
.switch input:checked + .slider::before { transform: translateX(16px); }
|
|
.switch input:focus-visible + .slider { box-shadow: var(--focus-ring); }
|
|
.switch input:disabled + .slider { opacity: 0.45; cursor: not-allowed; }
|
|
|
|
/* ── Log bar & panel ───────────────────────────────────── */
|
|
.logs { flex-shrink: 0; display: flex; flex-direction: column; border-top: 1px solid var(--border); background: var(--surface-chrome); }
|
|
.logbar { height: var(--logbar-h); display: flex; align-items: center; gap: var(--sp-2); padding: 0 var(--sp-2) 0 var(--sp-3); }
|
|
.tabs { display: flex; gap: 2px; }
|
|
.tab { height: 24px; padding: 0 var(--sp-2); border: none; border-radius: var(--r-sm); background: transparent; color: var(--text-3); font-size: var(--fs-12); cursor: pointer; }
|
|
.tab:hover { color: var(--text); }
|
|
.tab[aria-selected="true"] { background: var(--surface-active); color: var(--text); font-weight: var(--fw-medium); }
|
|
.task { display: inline-flex; align-items: center; gap: var(--sp-2); min-width: 0; font-size: var(--fs-12); color: var(--text-2); }
|
|
.task-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.progress { width: 96px; height: 4px; border-radius: 999px; background: var(--surface-active); overflow: hidden; flex-shrink: 0; }
|
|
.progress > div { height: 100%; background: var(--accent); transition: width var(--dur); }
|
|
.logs-body-wrap { position: relative; border-top: 1px solid var(--border); }
|
|
.logs-body {
|
|
height: 220px; overflow-y: auto; padding: var(--sp-2) var(--sp-4);
|
|
font-family: var(--font-mono); font-size: var(--fs-12); line-height: 1.6; color: var(--text-code);
|
|
white-space: pre-wrap; word-break: break-word; user-select: text;
|
|
}
|
|
.log-line { display: flex; gap: var(--sp-3); }
|
|
.log-ts { color: var(--text-3); flex-shrink: 0; }
|
|
.log-src { color: var(--accent-soft-text); flex-shrink: 0; }
|
|
.log-line.warn .log-msg { color: var(--status-busy); }
|
|
.log-line.error .log-msg { color: var(--status-error); }
|
|
.jump-latest { position: absolute; right: var(--sp-4); bottom: var(--sp-3); }
|
|
|
|
/* ── Overlays: dialog, menu, tooltip, toast ────────────── */
|
|
.overlay { position: fixed; inset: 0; background: var(--scrim); backdrop-filter: blur(4px); z-index: 40; }
|
|
.dialog {
|
|
position: fixed; z-index: 41; left: 50%; top: 50%; transform: translate(-50%, -50%);
|
|
width: 720px; max-width: calc(100vw - 48px); max-height: calc(100vh - 80px);
|
|
display: flex; flex-direction: column; overflow: hidden;
|
|
background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-xl);
|
|
box-shadow: var(--shadow-overlay);
|
|
}
|
|
.dialog.sm { width: 420px; }
|
|
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: 14px 14px 14px 22px; border-bottom: 1px solid var(--border); }
|
|
.dialog-title { font-size: var(--fs-16); font-weight: var(--fw-strong); }
|
|
.dialog-desc { font-size: var(--fs-13); color: var(--text-2); }
|
|
.dialog-body { padding: 20px 22px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: var(--sp-4); }
|
|
.dialog-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); padding: 12px 22px; border-top: 1px solid var(--border); }
|
|
.dialog.sm .dialog-body { padding: 22px 22px 14px; gap: var(--sp-3); }
|
|
.dialog.sm .dialog-foot { border-top: none; justify-content: flex-end; padding-top: 0; padding-bottom: 20px; }
|
|
|
|
.menu {
|
|
min-width: 184px; padding: 5px; z-index: 50;
|
|
background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-lg);
|
|
box-shadow: var(--shadow-overlay);
|
|
}
|
|
.menu-item {
|
|
height: 30px; padding: 0 10px; display: flex; align-items: center; gap: 8px;
|
|
border-radius: var(--r-sm); font-size: var(--fs-13); cursor: pointer; user-select: none; outline: none;
|
|
}
|
|
.menu-item > svg { color: var(--text-3); }
|
|
.menu-item[data-highlighted] { background: var(--accent); color: var(--accent-text); }
|
|
.menu-item[data-highlighted] > svg { color: var(--accent-text); }
|
|
.menu-item[data-disabled] { opacity: 0.4; cursor: default; }
|
|
.menu-item.danger { color: var(--danger); }
|
|
.menu-item.danger > svg { color: var(--danger); }
|
|
.menu-item.danger[data-highlighted] { background: var(--danger); color: #fff; }
|
|
.menu-item.danger[data-highlighted] > svg { color: #fff; }
|
|
.menu-sep { height: 1px; margin: 4px 8px; background: var(--border); }
|
|
|
|
.tooltip {
|
|
z-index: 60; padding: 4px 9px; border-radius: var(--r-sm);
|
|
background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--text);
|
|
font-size: var(--fs-12); box-shadow: 0 6px 18px rgba(15, 23, 42, 0.16);
|
|
display: flex; gap: var(--sp-2); align-items: center;
|
|
}
|
|
.tooltip kbd { font-family: var(--font-sans); color: var(--text-3); }
|
|
|
|
.toast-viewport { position: fixed; right: var(--sp-4); bottom: calc(var(--logbar-h) + var(--sp-4)); z-index: 70; display: flex; flex-direction: column; gap: var(--sp-2); width: 340px; max-width: calc(100vw - 32px); margin: 0; padding: 0; list-style: none; outline: none; }
|
|
.toast {
|
|
display: flex; align-items: flex-start; gap: var(--sp-3); padding: var(--sp-3);
|
|
background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-lg);
|
|
box-shadow: var(--shadow-overlay);
|
|
}
|
|
.toast > svg { margin-top: 2px; flex-shrink: 0; }
|
|
.toast.ok > svg { color: var(--status-running); }
|
|
.toast.error > svg { color: var(--status-error); }
|
|
.toast-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
|
|
.toast-title { font-size: var(--fs-13); font-weight: var(--fw-strong); }
|
|
.toast-desc { font-size: var(--fs-12); color: var(--text-2); word-break: break-word; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
|
|
.toast .btn { height: 26px; }
|
|
|
|
/* ── Forms (wizard, settings) ──────────────────────────── */
|
|
.field { display: flex; flex-direction: column; gap: 6px; }
|
|
.field-label { font-size: var(--fs-13); font-weight: var(--fw-medium); color: var(--text-2); }
|
|
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
|
|
.input, .select {
|
|
width: 100%; height: 32px; padding: 0 10px;
|
|
border-radius: var(--r-md); border: 1px solid var(--border-strong);
|
|
background: var(--surface-input); color: var(--text); font: inherit; font-size: var(--fs-13);
|
|
}
|
|
.input:focus, .select:focus { border-color: var(--accent); box-shadow: var(--focus-ring); }
|
|
.input[readonly] { color: var(--text-2); background: var(--surface-1); }
|
|
.input.mono { font-family: var(--font-mono); font-size: var(--fs-12); }
|
|
.input-group { display: flex; gap: var(--sp-2); align-items: center; }
|
|
.hint { font-size: var(--fs-12); color: var(--text-3); }
|
|
.hint.warn { color: var(--status-busy); }
|
|
.choices { display: flex; flex-direction: column; gap: var(--sp-2); }
|
|
.choice { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-13); cursor: pointer; }
|
|
.choice input { accent-color: var(--accent); margin: 0; }
|
|
.presets { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
|
|
.preset {
|
|
height: 28px; padding: 0 12px; border-radius: var(--r-md);
|
|
border: 1px solid var(--border-strong); background: var(--surface-card-elevated); color: var(--text-2);
|
|
font-size: var(--fs-13); cursor: pointer;
|
|
}
|
|
.preset:hover { background: var(--surface-hover); color: var(--text); }
|
|
.preset[aria-pressed="true"] { background: var(--accent); border-color: transparent; color: var(--accent-text); font-weight: var(--fw-medium); }
|
|
|
|
.wizard-steps { display: flex; gap: var(--sp-1); padding: 10px 22px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
|
|
.wizard-step { height: 26px; padding: 0 10px; border: none; border-radius: 999px; background: transparent; color: var(--text-3); font-size: var(--fs-12); cursor: pointer; display: inline-flex; align-items: center; gap: var(--sp-1); }
|
|
.wizard-step[aria-current="step"] { background: var(--accent-soft); color: var(--accent-soft-text); font-weight: var(--fw-strong); }
|
|
.wizard-step.done { color: var(--text-2); }
|
|
.wizard-step.done svg { color: var(--status-running); }
|
|
.wizard-step.has-issue { color: var(--danger-text); }
|
|
.wizard-step.has-issue[aria-current="step"] { background: var(--danger-soft); color: var(--danger-text); }
|
|
|
|
/* Wizard step ⑤: grouped summary */
|
|
.review-status { display: flex; align-items: center; gap: 6px; font-size: var(--fs-13); color: var(--text-3); }
|
|
.review-status.ok { color: var(--text-2); }
|
|
.review-status.ok svg { color: var(--status-running); }
|
|
.review-status.bad { color: var(--danger-text); font-weight: var(--fw-medium); }
|
|
.review-groups { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
|
|
.review-group {
|
|
min-width: 0; padding: 12px 14px; border-radius: var(--r-lg);
|
|
border: 1px solid var(--border); background: var(--surface-1);
|
|
display: flex; flex-direction: column; gap: var(--sp-2);
|
|
}
|
|
.review-group:first-child, .review-group:last-child { grid-column: 1 / -1; }
|
|
.review-group.has-issue { border-color: rgba(255, 59, 48, 0.4); background: var(--danger-soft); }
|
|
.review-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); }
|
|
.review-title { font-size: var(--fs-12); font-weight: var(--fw-strong); color: var(--text-3); }
|
|
.link-btn { border: none; background: none; padding: 0; font: inherit; font-size: var(--fs-12); color: var(--accent-soft-text); cursor: pointer; }
|
|
.link-btn:hover { text-decoration: underline; }
|
|
.review-rows { display: grid; grid-template-columns: max-content 1fr; column-gap: var(--sp-4); row-gap: 6px; margin: 0; font-size: var(--fs-13); }
|
|
.review-group:last-child .review-rows { grid-template-columns: max-content 1fr max-content 1fr; }
|
|
.review-rows dt { color: var(--text-3); }
|
|
.review-rows dd { margin: 0; min-width: 0; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.review-issues { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: var(--fs-12); color: var(--danger-text); }
|
|
.review-issues li { display: flex; align-items: flex-start; gap: 6px; }
|
|
.review-issues svg { flex-shrink: 0; margin-top: 2px; }
|
|
.review-cmd > summary {
|
|
list-style: none; display: inline-flex; align-items: center; gap: 4px; cursor: pointer;
|
|
font-size: var(--fs-13); color: var(--text-2); user-select: none;
|
|
}
|
|
.review-cmd > summary::-webkit-details-marker { display: none; }
|
|
.review-cmd > summary svg { transition: transform var(--dur-fast); }
|
|
.review-cmd[open] > summary svg { transform: rotate(90deg); }
|
|
.review-cmd-body { margin-top: var(--sp-2); display: flex; flex-direction: column; gap: 6px; }
|
|
.review-cmd-box { display: flex; align-items: flex-start; gap: var(--sp-2); }
|
|
.review-cmd-box .code { flex: 1; min-width: 0; }
|
|
|
|
.settings-split { display: flex; height: 460px; min-height: 0; }
|
|
.settings-nav { width: 186px; flex-shrink: 0; padding: 10px 8px; border-right: 1px solid var(--border); background: var(--surface-1); display: flex; flex-direction: column; gap: 3px; overflow-y: auto; }
|
|
.settings-pane { flex: 1; padding: 20px 24px; overflow-y: auto; display: flex; flex-direction: column; gap: var(--sp-4); }
|
|
|
|
.code { padding: 10px 12px; border-radius: var(--r-md); background: var(--surface-1); border: 1px solid var(--border); font-family: var(--font-mono); font-size: var(--fs-12); color: var(--text-code); word-break: break-all; user-select: text; }
|
|
.fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
|
|
.fieldset legend { padding: 0; margin-bottom: var(--sp-2); }
|
|
|
|
/* ── First launch ──────────────────────────────────────── */
|
|
.setup { flex: 1; overflow-y: auto; display: grid; place-items: center; padding: var(--sp-8) var(--sp-4); }
|
|
.setup-card { width: 560px; max-width: 100%; display: flex; flex-direction: column; gap: var(--sp-6); }
|
|
.setup-head h1 { font-size: var(--fs-24); font-weight: var(--fw-strong); letter-spacing: -0.01em; }
|
|
.setup-head p { margin-top: var(--sp-1); color: var(--text-2); font-size: var(--fs-14); }
|
|
.setup-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
|
|
.choices-list { display: flex; flex-direction: column; gap: var(--sp-2); }
|
|
.choice-card {
|
|
display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4);
|
|
border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface-1);
|
|
cursor: pointer; transition: border-color var(--dur-fast), background var(--dur-fast);
|
|
}
|
|
.choice-card:hover { background: var(--surface-hover); }
|
|
.choice-card[data-selected="true"] { border-color: var(--accent); background: var(--accent-soft); }
|
|
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
|
|
.choice-card:focus-within { box-shadow: var(--focus-ring); }
|
|
.choice-card > svg { color: var(--text-3); flex-shrink: 0; }
|
|
.choice-card[data-selected="true"] > svg { color: var(--accent-soft-text); }
|
|
.choice-card-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
|
|
.choice-card-path { font-size: var(--fs-13); color: var(--text); word-break: break-all; }
|
|
.choice-card-meta { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-12); color: var(--text-3); }
|
|
.choice-other { align-self: flex-start; }
|
|
.task-inline { display: flex; align-items: center; gap: var(--sp-2); }
|
|
|
|
.guide-cmd { margin-top: var(--sp-2); }
|
|
.warn-text { color: var(--status-busy); }
|