/* Layer order: host-guard first so its !important usability invariants beat all normal and !important rules in base/theme/user (CSS Cascade 5); normal rules follow base -> theme -> user. */ @layer host-guard, base, theme, user; @import "./tokens.css"; @layer base { * { 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); font-weight: var(--fw-regular); line-height: var(--body-lh, 1.48); font-optical-sizing: auto; font-feature-settings: "cv02", "cv03", "cv04"; text-autospace: normal; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; } html:lang(ja) { line-break: strict; } html:lang(ko) { word-break: keep-all; } :is(:lang(zh), :lang(ja), :lang(ko)) :is(em, i) { font-style: normal; font-weight: var(--fw-medium); } :is(:lang(zh), :lang(ja), :lang(ko)) :is(.brand, .sidebar-head, .sidebar-section-label, .sidebar-brand-name, .about-hero-text h1) { letter-spacing: var(--heading-tracking, 0em); } @media (pointer: fine) { html { overscroll-behavior: none; } } button { font: inherit; color: inherit; touch-action: manipulation; } h1, h2, h3, p { margin: 0; } :focus { outline: none; } :focus-visible:not(.dialog):not(.menu) { 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); } .tnum { font-variant-numeric: tabular-nums; } .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.85s linear infinite; } @keyframes pulse { 50% { opacity: 0.35; } } @keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } } /* ── Shell ─────────────────────────────────────────────── */ .app-shell { display: flex; flex-direction: column; height: 100%; background: var(--surface-canvas); } .titlebar { height: var(--titlebar-h); flex-shrink: 0; position: relative; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding-inline-start: var(--sp-4); /* No backdrop blur: the bar is opaque, so blurring behind it showed nothing and still cost a GPU compositing layer (the GPU is shared with the VM). */ 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); letter-spacing: -0.01em; 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; flex-shrink: 0; } .titlebar-right { display: flex; align-items: center; height: 100%; gap: var(--sp-1); --wails-draggable: no-drag; } /* Left of the title bar: sidebar toggle + a small menu bar. Controls and the menu bar group opt out of window dragging so sweeping across menus stays smooth. */ .titlebar-left { display: flex; align-items: center; gap: 2px; height: 100%; min-width: 0; margin-inline-start: calc(var(--sp-2) * -1); } .titlebar-icon, .titlebar-menu { --wails-draggable: no-drag; height: 28px; border: none; border-radius: var(--r-sm); background: transparent; color: var(--text-2); cursor: pointer; transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), transform var(--dur-press) var(--ease-out); } .titlebar-icon { width: 32px; display: grid; place-items: center; margin-inline-end: 4px; flex-shrink: 0; } .titlebar-menu { padding: 0 10px; font-size: var(--fs-13); font-weight: var(--fw-medium); white-space: nowrap; flex-shrink: 0; } .titlebar-icon:hover, .titlebar-menu:hover { background: var(--surface-hover); color: var(--text); } .titlebar-menu[data-state="open"] { background: var(--surface-active); color: var(--text); } .titlebar-icon:active, .titlebar-menu:active { transform: scale(0.96); } .titlebar-menus { display: flex; align-items: center; gap: 2px; --wails-draggable: no-drag; } .titlebar-menu-content { min-width: 220px; } /* Menu rows with a trailing shortcut, check marks and group labels. */ .menu-label { flex: 1; min-width: 0; white-space: nowrap; } .menu-shortcut { margin-inline-start: 24px; font-family: var(--font-sans); font-size: var(--fs-12); color: var(--text-3); font-variant-numeric: tabular-nums; } .menu-item[data-highlighted] .menu-shortcut { color: rgba(255, 255, 255, 0.78); } .menu-item.menu-item-check, .menu-indented .menu-item { position: relative; padding-inline-start: 28px; } .menu-indented .menu-group-label { padding-inline-start: 28px; } .menu-check { position: absolute; inset-inline-start: 9px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; } .menu-group-label { padding: 6px 10px 2px; font-size: 11.5px; font-weight: var(--fw-medium); color: var(--text-3); user-select: none; } .theme-toggle { width: 30px; height: 28px; margin-inline-end: 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) var(--ease-out), color var(--dur-fast) var(--ease-out), transform var(--dur-press) var(--ease-out); } .theme-toggle:hover { background: var(--surface-hover); color: var(--text); } .theme-toggle:active { transform: scale(0.95); } .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) var(--ease-out), color var(--dur-fast) var(--ease-out); } .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 { position: relative; display: flex; flex: 1; min-height: 0; background: var(--surface-canvas); } .sidebar-backdrop { display: none; } /* ── Floating Tahoe Sidebar ────────────────────────────── */ .sidebar-wrap { width: var(--sidebar-w); flex-shrink: 0; padding: 10px; display: flex; overflow: hidden; background: var(--surface-sidebar-rail); border-inline-end: 1px solid var(--border); transition: width var(--dur-modal) var(--ease-out), padding var(--dur-modal) var(--ease-out), opacity var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), visibility 0s linear 0s; } /* Hidden sidebar (Ctrl+B): slides shut; the card keeps its width so its contents don't reflow while the rail narrows, and visibility: hidden removes off-screen buttons from the keyboard Tab order. */ .workspace.sidebar-hidden .sidebar-wrap { width: 0; padding-inline: 0; opacity: 0; border-inline-end-color: transparent; visibility: hidden; pointer-events: none; transition: width var(--dur-modal) var(--ease-out), padding var(--dur-modal) var(--ease-out), opacity var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), visibility 0s linear var(--dur-modal); } .sidebar-wrap > .sidebar { min-width: calc(var(--sidebar-w) - 20px); } .sidebar { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: var(--sp-1); /* Brand and system items stay put; only the VM list scrolls. */ padding: 10px 8px; overflow: hidden; /* Translucent over a fixed gradient: a backdrop blur would look the same. */ 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: 2px 4px 6px 10px; font-size: var(--fs-13); font-weight: var(--fw-strong); letter-spacing: -0.01em; color: var(--text); } .sidebar-section-label { padding: 4px 10px 4px; font-size: var(--fs-13); font-weight: var(--fw-strong); letter-spacing: -0.01em; color: var(--text); } .sidebar-sep { height: 1px; background: var(--border); margin: 8px 10px 6px; } .sidebar-brand { display: flex; align-items: center; gap: 9px; padding: 2px 4px 12px 8px; min-height: 34px; } .sidebar-brand-mark { /* The SVG carries its own shadow padding; scale so the squircle reads ~26px. */ width: 30px; height: 30px; margin: -2px; display: block; flex-shrink: 0; } .sidebar-brand-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: var(--fw-strong); letter-spacing: -0.015em; color: var(--text); } /* Update capsule: one line under the brand with the update's state and action. */ .update-capsule { position: relative; overflow: hidden; display: flex; align-items: center; gap: 4px; margin: -4px 2px 8px; padding: 4px 4px 4px 4px; min-height: 32px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-soft-text); } .update-capsule.is-failed { background: var(--warn-soft); color: var(--warn-text); } .update-capsule-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 7px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; text-align: start; } .update-capsule-icon { width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--accent); color: var(--accent-text); } .update-capsule.is-failed .update-capsule-icon { background: var(--status-busy); color: #1d1d1f; } .update-capsule-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-12); font-weight: var(--fw-medium); } .update-capsule-btn { flex-shrink: 0; display: inline-flex; align-items: center; gap: 3px; height: 24px; padding: 0 9px; border: 0; border-radius: 999px; background: var(--surface-1); color: inherit; font-size: var(--fs-12); font-weight: var(--fw-medium); cursor: pointer; transition: filter var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); } .update-capsule-btn.is-primary { background: var(--accent); color: var(--accent-text); } .update-capsule-btn:hover { filter: brightness(1.06); } .update-capsule-btn:active { transform: scale(0.96); } .update-capsule-x { flex-shrink: 0; width: 24px; height: 24px; border: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: none; color: inherit; opacity: 0.7; cursor: pointer; } .update-capsule-x:hover { opacity: 1; background: var(--surface-hover); } .update-capsule-bar { position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; border-radius: 999px; background: var(--surface-active); overflow: hidden; } .update-capsule-bar > span { display: block; height: 100%; border-radius: 999px; background: var(--accent); transition: width var(--dur) var(--ease-out); } .update-capsule-bar > span.is-indeterminate { width: 30%; animation: update-capsule-slide 1.2s var(--ease-out) infinite; } @keyframes update-capsule-slide { from { transform: translateX(-100%); } to { transform: translateX(340%); } } @media (prefers-reduced-motion: reduce) { .update-capsule-bar > span.is-indeterminate { animation: none; width: 100%; opacity: 0.5; } } .about-update-progress { display: block; width: 100%; max-width: 280px; margin-top: 6px; } .nav { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 3px; } .nav-group { display: flex; flex-direction: column; gap: 3px; } .nav-vms { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; } .nav-system { flex-shrink: 0; margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--border); } .nav-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; background: var(--accent); } .nav-item[aria-selected="true"] .nav-dot, .nav-item[aria-current="page"] .nav-dot { background: var(--accent-text); } .nav-empty { padding: 8px 10px; font-size: var(--fs-12); 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: start; cursor: pointer; transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), box-shadow var(--dur) var(--ease-out), transform var(--dur-press) var(--ease-out); } .nav-item:hover { background: var(--surface-hover); } .nav-item:active { transform: scale(0.985); } .nav-item[aria-selected="true"], .nav-item[aria-current="page"] { background: var(--accent); color: var(--accent-text); font-weight: var(--fw-medium); box-shadow: 0 1px 2px rgba(0, 122, 255, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.18); } .nav-item[aria-selected="true"] .nav-icon-badge, .nav-item[aria-current="page"] .nav-icon-badge { background: rgba(255, 255, 255, 0.22); color: #ffffff; box-shadow: none; } .nav-item[aria-selected="true"] .nav-icon-art { background: #8d95a9; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.7); } .nav-item[aria-selected="true"] .status-running { background: #ffffff; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.28); } .nav-item[aria-selected="true"] .status-stopped { border-color: rgba(255, 255, 255, 0.72); } .nav-item[aria-selected="true"] .status-busy { border-color: #ffffff; background: conic-gradient(#ffffff 0 50%, transparent 50% 100%); } .nav-item[aria-selected="true"] .status-warn { background: #ffd60a; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.30); } .nav-item[aria-selected="true"] .status-broken { background: #ffffff; box-shadow: 0 0 0 2px rgba(255, 59, 48, 0.65); } .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), inset 0 1px 0 rgba(255, 255, 255, 0.22); } /* A VM's macOS version artwork (VersionArt) as its icon. */ .nav-icon-art { overflow: hidden; background: #8d95a9; } .nav-icon-art svg { width: 100%; height: 100%; display: block; } .nav-icon-host { background: linear-gradient(145deg, #6e7cf0 0%, #4d5be0 100%); } .nav-icon-plugins { background: linear-gradient(145deg, #af52de 0%, #8944ab 100%); } .nav-icon-settings { background: linear-gradient(145deg, #8e8e93 0%, #636366 100%); } .nav-icon-installers { background: linear-gradient(145deg, #34c759 0%, #248a3d 100%); } .nav-icon-about { background: linear-gradient(145deg, #32a0ff 0%, #007aff 100%); } .nav-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-13); } /* Status shapes (differ by shape as well as colour) */ .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-suspended { width: 7px; height: 8px; border-radius: 0; background: linear-gradient(90deg, var(--status-busy) 0 2.5px, transparent 2.5px 4.5px, var(--status-busy) 4.5px 7px); } .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: 1.5px; transform: rotate(45deg); width: 7px; height: 7px; } /* ── Main column ───────────────────────────────────────── */ .main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--surface-canvas); } .scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 14px 28px 24px; } .page { max-width: var(--page-max); margin: 0 auto; display: flex; flex-direction: column; gap: 16px; } .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: 18px; font-weight: var(--fw-strong); letter-spacing: -0.015em; 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 ─────────────────── */ /* A narrower column than other pages: the summary reads as one block, and the screen scales with window height so "Connection" stays above the fold. */ .page.vm-page { max-width: 568px; gap: 14px; padding-bottom: 10px; } .vm-hero { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 4px 0 2px; text-align: center; } .vm-display-unit { position: relative; display: flex; flex-direction: column; align-items: center; margin-bottom: 4px; transition: transform var(--dur) var(--ease-out); } .vm-display-unit.is-actionable { cursor: pointer; } @media (hover: hover) and (pointer: fine) { .vm-display-unit.is-actionable:hover { transform: translateY(-2px); } .vm-display-unit.is-actionable:hover .vm-screen { box-shadow: 0 20px 40px rgba(15, 23, 42, 0.22), 0 4px 10px rgba(15, 23, 42, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.14); } .vm-display-unit.is-actionable:hover .vm-screen-play { opacity: 1; transform: none; } .vm-display-unit.is-actionable:hover .vm-screen-chip { opacity: 1; transform: translateX(-50%) translateY(0); } .vm-display-unit.is-actionable:hover .vm-screen.is-idle .vm-screen-img { filter: saturate(0.7) brightness(0.8); } } .vm-display-unit.is-actionable:active { transform: scale(0.985); } .vm-display-stand { position: relative; width: 46px; height: 22px; margin-top: -1px; background: linear-gradient(180deg, #b8bec8 0%, #dcdfe6 46%, #cfd4dc 100%); border-radius: 0 0 2px 2px; box-shadow: inset 0 3px 4px rgba(0, 0, 0, 0.14); } .vm-display-stand::after { content: ""; position: absolute; left: 50%; bottom: -2px; transform: translateX(-50%); width: 78px; height: 4px; border-radius: 999px; background: linear-gradient(180deg, #e5e8ee 0%, #c6cbd4 100%); box-shadow: 0 4px 10px rgba(15, 23, 42, 0.16); } :root[data-theme="dark"] .vm-display-stand { background: linear-gradient(180deg, #3c3e46 0%, #555863 48%, #41444e 100%); box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.4); } :root[data-theme="dark"] .vm-display-stand::after { background: linear-gradient(180deg, #5d606c 0%, #3d4049 100%); box-shadow: 0 5px 14px rgba(0, 0, 0, 0.52); } .vm-hero-name { margin: 0; max-width: 100%; font-size: 24px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.2; color: var(--text); user-select: text; text-wrap: balance; overflow-wrap: anywhere; } .vm-hero-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; 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); font-variant-numeric: tabular-nums; transition: background var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out); } .vm-hero-pill.is-running { background: var(--ok-soft); border-color: transparent; color: var(--ok-text); } .vm-hero-pill.is-suspended, .vm-hero-pill.is-busy { background: var(--warn-soft); border-color: transparent; color: var(--warn-text); } .vm-hero-pill.is-broken { background: var(--danger-soft); border-color: var(--danger-border); color: var(--danger-text); } .vm-hero-uptime { font-weight: var(--fw-regular); } .vm-hero-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 6px; } /* Summary: 3 × 2. Row 1 (CPU, memory, storage) carries usage bars; the bar slot is always there so the row keeps its height when the VM starts or stops. */ .vm-spec-card { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 18px; row-gap: 12px; padding: 14px 18px; background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-card); } .vm-spec-cell { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 8px; row-gap: 6px; min-width: 0; cursor: default; border-radius: var(--r-sm); } .vm-spec-cell:focus-visible { outline: none; box-shadow: var(--focus-ring); } .vm-spec-icon { color: var(--text-3); display: inline-flex; align-items: center; flex-shrink: 0; } .vm-spec-val { margin: 0; min-width: 0; font-size: var(--fs-13); font-weight: var(--fw-regular); color: var(--text); font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; user-select: text; } .vm-spec-meter { grid-column: 2; display: block; height: 3px; border-radius: 999px; background: var(--surface-active); overflow: hidden; transition: opacity var(--dur) var(--ease-out); } .vm-spec-meter[data-idle] { opacity: 0; } .vm-spec-meter .meter-fill { transition: transform 420ms var(--ease-out), background var(--dur) var(--ease-out); } /* Compact Single-Row Connection Card (matches mockup) */ .conn-list { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-card); } .conn-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 7px 16px; position: relative; } .conn-row + .conn-row::before { content: ""; position: absolute; top: 0; left: 16px; right: 16px; height: 1px; background: var(--border); } .conn-main { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; font-size: 13.5px; color: var(--text); } .conn-title { font-weight: var(--fw-medium); white-space: nowrap; flex-shrink: 0; } .conn-meta { color: var(--text-2); font-size: var(--fs-13); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .conn-status { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; height: 22px; padding: 0 9px; border-radius: 999px; background: var(--surface-active); color: var(--text-2); font-size: var(--fs-12); font-weight: var(--fw-medium); white-space: nowrap; cursor: default; transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out); } .conn-status:focus-visible { border-radius: 999px; } .conn-status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--status-idle); flex-shrink: 0; } .conn-status.is-ok { background: var(--ok-soft); color: var(--ok-text); } .conn-status.is-ok .conn-status-dot { background: var(--status-running); } .conn-status.is-warn { background: var(--warn-soft); color: var(--warn-text); } .conn-status.is-warn .conn-status-dot { background: var(--status-busy); } /* A step that belongs to the row above (the tools install command). */ .conn-row.conn-sub { min-height: 40px; padding-top: 0; padding-left: 28px; } .conn-row.conn-sub::before { display: none; } .conn-row.conn-sub .conn-main { flex: 0 0 auto; } .conn-ctrl { display: flex; align-items: center; gap: 6px; flex-shrink: 0; } .conn-ctrl-grow { flex: 1; flex-shrink: 1; min-width: 0; justify-content: flex-end; } .conn-ctrl .btn { height: 28px; padding: 0 11px; font-size: 12.5px; } .ssh-pill { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 2px 3px 2px 10px; border-radius: 7px; background: var(--surface-card-elevated); border: 1px solid var(--border); } .ssh-pill code { font-family: var(--font-mono); font-size: var(--fs-12); color: var(--text-code); user-select: text; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .vm-footnote { margin: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; font-size: var(--fs-12); color: var(--text-3); } .vm-footnote kbd { font-family: var(--font-mono); font-size: 11px; padding: 1px 6px; border-radius: 5px; border: 1px solid var(--border-strong); color: var(--text-2); background: var(--surface-1); box-shadow: 0 1px 0 var(--border); } .vm-footnote .sep { margin: 0 4px; } .ok-text { display: inline-flex; align-items: center; gap: 4px; color: var(--ok-text); } /* ── 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; } /* ── Buttons ───────────────────────────────────────────── */ .btn { height: 31px; padding: 0 13px; 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) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), transform var(--dur-press) var(--ease-out); } .btn:hover:not(:disabled) { background: var(--surface-hover); border-color: var(--border-strong); } .btn:active:not(:disabled) { transform: scale(0.97); } .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.30), inset 0 1px 0 rgba(255, 255, 255, 0.22); } .btn-primary:hover:not(:disabled) { background: var(--accent-hover); } .btn-danger { background: var(--danger); border-color: transparent; color: #fff; font-weight: var(--fw-strong); box-shadow: 0 1px 3px rgba(255, 59, 48, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.18); } .btn-danger:hover:not(:disabled) { filter: brightness(1.06); background: var(--danger); } .shutdown-button { display: inline-flex; } .shutdown-button > .btn:first-child { border-start-end-radius: 0; border-end-end-radius: 0; } .shutdown-button > .btn:last-child { padding-inline: 6px; border-start-start-radius: 0; border-end-start-radius: 0; border-inline-start: 0; } .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: 31px; height: 31px; 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) var(--ease-out), color var(--dur-fast) var(--ease-out), transform var(--dur-press) var(--ease-out); } .icon-btn:hover:not(:disabled), .icon-btn[data-state="open"] { background: var(--surface-hover); color: var(--text); } .icon-btn:active:not(:disabled) { transform: scale(0.95); } .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); } /* ── Cards, Notices & Install Stepper ──────────────────── */ .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); box-shadow: var(--shadow-card); } .card-title { font-size: var(--fs-14); font-weight: var(--fw-strong); display: flex; align-items: center; gap: 8px; } .card-desc { font-size: var(--fs-13); color: var(--text-2); line-height: 1.5; } .card-foot { display: flex; justify-content: flex-end; gap: var(--sp-2); padding-top: 2px; } .notice { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: 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-main { display: flex; align-items: flex-start; gap: 10px; min-width: 0; flex: 1; line-height: 1.48; } .notice-icon { flex-shrink: 0; margin-top: 2px; color: var(--warn-text); } .notice-error { background: var(--danger-soft); border-color: var(--danger-border); color: var(--danger-text); padding: 10px 14px; } .notice-error .notice-icon { color: var(--danger-text); } .notice-error ul { margin: 0; padding-inline-start: var(--sp-4); } .notice-warn { background: var(--warn-soft); border-color: var(--notice-border); color: var(--warn-text); justify-content: flex-start; } .notice-warn .notice-icon { color: var(--warn-text); } .notice-ok { background: var(--ok-soft); border-color: transparent; color: var(--ok-text); justify-content: flex-start; } .notice-ok .notice-icon { color: var(--ok-text); } .notice-info { background: var(--accent-soft); border-color: transparent; } .notice-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .notice-title { font-weight: var(--fw-medium); } .notice-sub { color: var(--text-2); font-variant-numeric: tabular-nums; } .notice-info .notice-icon { color: var(--accent-soft-text); } /* Numbered visual stepper for Install / Recovery Guide */ .guide-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; } .guide-step { display: flex; align-items: flex-start; gap: 12px; font-size: var(--fs-13); color: var(--text-2); line-height: 1.55; } .guide-step-num { width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; margin-top: 1px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-soft-text); font-size: var(--fs-11); font-weight: var(--fw-strong); font-variant-numeric: tabular-nums; } .guide-step-body { flex: 1; min-width: 0; } .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-2); padding: 5px 6px 5px 12px; border-radius: var(--r-md); background: var(--surface-card-elevated); border: 1px solid var(--border); } .cmd-line > svg { color: var(--text-3); flex-shrink: 0; } .cmd-line code { flex: 1; min-width: 0; font-family: var(--font-mono); font-size: var(--fs-12); color: var(--text-code); user-select: text; overflow-wrap: anywhere; } .cmd-line-spaced { margin-top: 6px; } .tech-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); } .tech > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: var(--sp-1); padding: 4px 6px; margin-left: -6px; font-size: var(--fs-13); font-weight: var(--fw-medium); color: var(--text-2); border-radius: var(--r-sm); transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out); } .tech > summary::-webkit-details-marker { display: none; } .tech > summary svg { transition: transform var(--dur-fast) var(--ease-out); } .tech[open] > summary svg { transform: rotate(90deg); } .tech > summary:hover { color: var(--text); background: var(--surface-hover); } .tech-body { position: relative; margin-top: 8px; } .tech-copy { position: absolute; top: 8px; inset-inline-end: 8px; } .kv-list { margin: 0; padding-block: 12px; padding-inline: 16px 44px; background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--r-lg); display: grid; grid-template-columns: max-content 1fr; gap: 7px 24px; font-size: var(--fs-13); } .kv-list dt { color: var(--text-3); } .kv-list dd { margin: 0; color: var(--text-2); overflow-wrap: anywhere; user-select: text; font-variant-numeric: tabular-nums; } /* ── Grouped list (host page, settings) ────────────────── */ .list { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-card); } .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); font-variant-numeric: tabular-nums; } .row-sub { font-size: var(--fs-12); color: var(--text-3); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; } .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; flex-shrink: 0; background: var(--surface-active); color: var(--text-2); } .badge-accent { background: var(--accent-soft); color: var(--accent-soft-text); } .badge-ok { background: var(--ok-soft); color: var(--ok-text); } .badge-warn { background: var(--warn-soft); color: var(--warn-text); } .badge-danger { background: var(--danger-soft); color: var(--danger-text); } .badge-error { background: var(--danger); color: #fff; min-width: 18px; height: 18px; padding: 0 var(--sp-1); justify-content: center; border-radius: 999px; font-variant-numeric: tabular-nums; } /* Host summary tiles (4-up single row, 2x2 on narrow content column) */ .tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; } @container (max-width: 680px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } } .tile { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 13px 14px; display: flex; flex-direction: column; gap: 6px; min-width: 0; box-shadow: var(--shadow-card); } .tile-head { display: flex; align-items: center; gap: 7px; font-size: var(--fs-12); color: var(--text-3); font-weight: var(--fw-medium); } .tile-icon { width: 22px; height: 22px; border-radius: 6px; flex-shrink: 0; display: grid; place-items: center; background: var(--surface-active); color: var(--text-2); } .tile-icon.ok { background: var(--ok-soft); color: var(--ok-text); } .tile-icon.warn { background: var(--warn-soft); color: var(--warn-text); } .tile-icon.accent { background: var(--accent-soft); color: var(--accent-soft-text); } .tile-value { font-size: var(--fs-15); font-weight: var(--fw-strong); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); } .tile-value.ok { color: var(--ok-text); } .tile-value.warn { color: var(--warn-text); } .tile-sub { font-size: var(--fs-12); color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; } .tile .tile-action { align-self: flex-start; height: 26px; margin-top: 2px; } /* Loading skeletons & empty panels (outside data lists) */ .skeleton-list { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; } .skeleton-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 16px; position: relative; } .skeleton-row + .skeleton-row::before { content: ""; position: absolute; top: 0; left: 16px; right: 16px; height: 1px; background: var(--border); } .skeleton-stack { display: flex; flex-direction: column; gap: 7px; flex: 1; min-width: 0; } .skeleton-bar { height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--surface-active) 25%, var(--surface-hover) 50%, var(--surface-active) 75%); background-size: 200% 100%; animation: shimmer 1.6s ease-in-out infinite; } .skeleton-bar.w-title { width: 42%; height: 13px; } .skeleton-bar.w-sub { width: 28%; height: 10px; opacity: 0.7; } .skeleton-bar.w-btn { width: 72px; height: 28px; border-radius: var(--r-md); flex-shrink: 0; } .empty-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 24px 16px; text-align: center; border: 1px dashed var(--border-strong); border-radius: var(--r-lg); color: var(--text-3); font-size: var(--fs-13); } .empty-panel > svg { opacity: 0.6; } /* Images: segmented plugin sources, macOS SLA notice, one major-version card per system. */ .installers-page { max-width: 780px; } .installers-page .page-head { align-items: flex-start; } .installers-page-title { flex-direction: column; align-items: flex-start; gap: 1px; } .installers-page-title > span { color: var(--text-3); font-size: var(--fs-12); line-height: 1.45; } .images-switch { display: flex; } .macos-images-view { display: flex; flex-direction: column; gap: 16px; } .macos-sla-notice { align-items: center; } .installers-loader { padding: 48px 0 40px; } .images-empty { gap: 8px; padding: 36px 24px; text-align: center; } .images-empty-title { font-size: var(--fs-14); font-weight: var(--fw-medium); color: var(--text); } .images-empty-desc { max-width: 420px; font-size: var(--fs-12); color: var(--text-3); line-height: 1.5; margin-bottom: 6px; } /* About: brand header, then the update row and community links. */ .about-page { max-width: 680px; } .about-hero { display: flex; align-items: center; gap: 16px; padding: 8px 4px 4px; } .about-hero-mark { width: 72px; height: 72px; margin: -4px; display: block; flex-shrink: 0; } .about-hero-text { min-width: 0; display: flex; flex-direction: column; gap: 4px; } .about-hero-text h1 { font-size: 22px; font-weight: var(--fw-strong); letter-spacing: -0.02em; color: var(--text); } .about-hero-text p { margin: 0; font-size: var(--fs-13); color: var(--text-2); line-height: 1.5; } .license-modal-body { gap: var(--sp-3); } .license-modal-body > .seg { align-self: flex-start; flex-shrink: 0; } .license-pre { margin: 0; padding: 14px 16px; flex: 0 1 auto; height: min(440px, 50vh); min-height: 120px; overflow: auto; overscroll-behavior: contain; contain: content; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface-1); font-family: var(--font-mono); font-size: var(--fs-12); line-height: 1.55; color: var(--text-2); white-space: pre-wrap; word-break: break-word; user-select: text; text-rendering: auto; text-autospace: no-autospace; } .section-count { min-width: 20px; padding: 1px 7px; border-radius: 999px; background: var(--surface-active); color: var(--text-3); font-size: 11px; font-weight: var(--fw-medium); text-align: center; } .installer-row { min-height: 62px; } .installer-art, .release-art { display: block; flex-shrink: 0; overflow: hidden; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28), 0 2px 5px rgba(15, 23, 42, 0.12); } .installer-active-status { gap: 5px; font-variant-numeric: tabular-nums; } .installer-art { width: 36px; height: 36px; } .installer-art svg, .release-art svg { display: block; width: 100%; height: 100%; } .release-list { display: flex; flex-direction: column; gap: 10px; } .release-card { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-card); overflow: hidden; } .release-latest { display: flex; align-items: center; gap: 13px; min-height: 76px; padding: 13px 16px; } .release-art { width: 46px; height: 46px; border-radius: 12px; } .release-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; } .release-title { flex-wrap: wrap; gap: 7px; } .release-title > strong { font-weight: var(--fw-strong); font-variant-numeric: tabular-nums; } .release-history { border-top: 1px solid var(--border); } .release-history summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 36px; padding: 8px 16px; color: var(--text-2); font-size: var(--fs-12); cursor: pointer; user-select: none; list-style: none; transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); } .release-history summary::-webkit-details-marker { display: none; } .release-history summary:hover { background: var(--surface-hover); color: var(--text); } .release-history summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; } .release-history summary svg { transition: transform var(--dur) var(--ease-out); } .release-history[open] summary svg { transform: rotate(180deg); } .release-history-list { border-top: 1px solid var(--border); background: color-mix(in srgb, var(--surface-canvas) 42%, transparent); } .release-history-row { display: flex; align-items: center; gap: 14px; min-height: 54px; padding: 9px 16px 9px 75px; position: relative; } .release-history-row + .release-history-row::before { content: ""; position: absolute; top: 0; left: 75px; right: 16px; height: 1px; background: var(--border); } .release-history-row .btn { min-height: 28px; } @media (max-width: 700px) { .release-latest { align-items: flex-start; flex-wrap: wrap; gap: 10px 12px; } .release-copy { min-width: calc(100% - 60px); } .release-latest > .row-right { width: 100%; padding-left: 58px; } .release-history-row { padding-left: 16px; flex-wrap: wrap; gap: 8px; } .release-history-row + .release-history-row::before { left: 16px; } .release-history-row > .row-right { width: 100%; } .installer-row { flex-wrap: wrap; gap: 10px 12px; } .installer-row .row-main { min-width: calc(100% - 50px); } .installer-row > .row-right { width: 100%; padding-left: 48px; } } @media (prefers-reduced-motion: reduce) { .release-history summary, .release-history summary svg { transition: none; } } /* macOS Tahoe Switch (spring thumb + Apple active stretch) */ .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) var(--ease-out); pointer-events: none; } .slider::before { content: ""; position: absolute; width: 18px; height: 18px; left: 2px; top: 2px; border-radius: 999px; background: #ffffff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.24), 0 0 0 0.5px rgba(0, 0, 0, 0.06); transition: transform var(--dur) var(--ease-spring), width var(--dur-press) var(--ease-out); } .switch:active input:not(:disabled) + .slider::before { width: 21px; } .switch input:checked + .slider { background: var(--accent); } .switch input:checked + .slider::before { transform: translateX(16px); } .switch:active input:checked:not(:disabled) + .slider::before { transform: translateX(13px); } .switch input:focus-visible + .slider { box-shadow: var(--focus-ring); } .switch input:disabled + .slider { opacity: 0.45; cursor: not-allowed; } /* ── Log bar & resizable panel ─────────────────────────── */ .logs { flex-shrink: 0; display: flex; flex-direction: column; position: relative; z-index: 10; border-top: 1px solid var(--border); background: var(--surface-statusbar); } .log-resize-handle { position: absolute; top: -3px; left: 0; right: 0; height: 7px; z-index: 5; cursor: ns-resize; display: flex; align-items: center; justify-content: center; touch-action: none; } .log-resize-pill { width: 36px; height: 3px; border-radius: 999px; background: transparent; transition: background var(--dur-fast) var(--ease-out), width var(--dur-fast) var(--ease-out); } .log-resize-handle:hover .log-resize-pill, .log-resize-handle[data-dragging="true"] .log-resize-pill { width: 48px; background: var(--border-strong); } .logbar { height: var(--logbar-h); display: flex; align-items: center; gap: var(--sp-2); padding-inline: var(--sp-4) var(--sp-3); overflow-x: auto; scrollbar-width: none; } .logbar::-webkit-scrollbar { display: none; } .status-telemetry { display: inline-flex; align-items: center; min-width: 0; flex-shrink: 1; overflow: hidden; margin-inline-start: -8px; font-size: var(--fs-12); color: var(--text-2); user-select: none; font-variant-numeric: tabular-nums; } /* "Label value" pairs separated by hairlines instead of middle dots. */ .status-metric { position: relative; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; height: 22px; padding: 0 10px; border-radius: var(--r-sm); } .status-metric + .status-metric::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 1px; background: var(--border-strong); } .status-label { color: var(--text-3); } .status-value { color: var(--text-2); } .status-metric.warn .status-value, .status-metric.warn .status-label { color: var(--warn-text); } .status-metric.high .status-value, .status-metric.high .status-label { color: var(--danger-text); } .status-metric.ok .status-value { color: var(--text-2); } button.status-issue { border: none; background: var(--warn-soft); color: var(--warn-text); font: inherit; font-weight: var(--fw-medium); cursor: pointer; transition: filter var(--dur-fast) var(--ease-out); } button.status-issue:hover { filter: brightness(0.96); } button.status-issue + .status-metric::before { display: none; } button.status-issue + .status-metric { margin-left: 6px; } .status-metric > svg { color: var(--text-3); flex-shrink: 0; } .status-metric.warn { color: var(--warn-text); } .status-metric.warn > svg { color: var(--warn-text); } .status-metric.high { color: var(--danger-text); } .status-metric.high > svg { color: var(--danger-text); } .status-metric.ok { color: var(--ok-text); } .status-metric-dim { color: var(--text-3); } .status-sep { color: var(--border-strong); flex-shrink: 0; } .status-mini-bar { display: inline-block; width: 34px; height: 4px; border-radius: 999px; background: var(--surface-active); overflow: hidden; flex-shrink: 0; } .status-mini-fill { display: block; width: 100%; height: 100%; border-radius: 999px; background: var(--accent); transform-origin: left center; transition: transform 260ms var(--ease-out), background var(--dur) var(--ease-out); } :root[dir="rtl"] .status-mini-fill, :root[dir="rtl"] .progress-fill, :root[dir="rtl"] .meter-fill, :root[dir="rtl"] .market-progress-fill { transform-origin: right center; } .status-mini-fill.warn { background: var(--status-busy); } .status-mini-fill.high { background: var(--status-error); } .log-toggle-btn { height: 24px; padding: 0 8px; white-space: nowrap; flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px; border: none; border-radius: var(--r-sm); background: transparent; color: var(--text-2); font-size: var(--fs-12); font-weight: var(--fw-medium); cursor: pointer; transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), transform var(--dur-press) var(--ease-out); } .log-toggle-btn:hover { background: var(--surface-hover); color: var(--text); } .log-toggle-btn:active { transform: scale(0.97); } .tabs { display: flex; gap: 2px; flex-shrink: 0; } .tab { height: 24px; padding: 0 var(--sp-2); border: none; border-radius: var(--r-sm); white-space: nowrap; background: transparent; color: var(--text-3); font-size: var(--fs-12); cursor: pointer; transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), transform var(--dur-press) var(--ease-out); } .tab:hover { color: var(--text); background: var(--surface-hover); } .tab:active { transform: scale(0.97); } .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; } .task-pct { font-variant-numeric: tabular-nums; flex-shrink: 0; } .progress { display: inline-block; width: 96px; height: 4px; border-radius: 999px; background: var(--surface-active); overflow: hidden; flex-shrink: 0; position: relative; } .progress-fill { display: block; width: 100%; height: 100%; border-radius: 999px; background: var(--accent); transform-origin: left center; transition: transform var(--dur) var(--ease-out); } .logs-body-wrap { position: relative; border-top: 1px solid var(--border); } .logs-body { overflow-y: auto; overscroll-behavior: contain; 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; text-rendering: auto; text-autospace: no-autospace; } .log-line { display: flex; gap: var(--sp-3); } .log-ts { color: var(--text-3); flex-shrink: 0; font-variant-numeric: tabular-nums; } .log-src { color: var(--accent-soft-text); flex-shrink: 0; } .log-line.warn .log-msg { color: var(--warn-text); } .log-line.error .log-msg { color: var(--danger-text); } .jump-latest { position: absolute; inset-inline-end: var(--sp-4); bottom: var(--sp-3); } /* ── Overlays: dialog, menu, tooltip, toast ────────────── */ /* No backdrop-filter: main.go sets WebviewGpuIsDisabled: true (software compositing), where per-frame CPU Gaussian blur over modals/overlays stutters badly during enter animations and inner scrolling. */ .overlay { position: fixed; inset: 0; background: var(--scrim); 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), var(--highlight-top); } .dialog.sm { width: 420px; } .dialog-head { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding-block: 14px; padding-inline: 22px 14px; border-bottom: 1px solid var(--border); } .dialog-title { font-size: var(--fs-16); font-weight: var(--fw-strong); letter-spacing: -0.01em; text-wrap: balance; } .dialog-desc { font-size: var(--fs-13); color: var(--text-2); margin-top: 2px; overflow-wrap: anywhere; } .dialog-body { padding: 20px 22px; overflow-y: auto; overscroll-behavior: contain; flex: 1; display: flex; flex-direction: column; gap: var(--sp-4); } .dialog-foot { flex-shrink: 0; display: flex; flex-wrap: wrap; 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: 188px; padding: 5px; z-index: 50; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-overlay), var(--highlight-top); } .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; transition: background 80ms ease, color 80ms ease; } .menu-item > svg { color: var(--text-3); flex-shrink: 0; } .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: 5px 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 8px 22px rgba(15, 23, 42, 0.16); display: flex; gap: var(--sp-2); align-items: center; transform-origin: var(--radix-tooltip-content-transform-origin); } .tooltip kbd { font-family: var(--font-sans); color: var(--text-3); } .toast-viewport { position: fixed; inset-inline-end: var(--sp-4); bottom: calc(var(--logbar-h) + var(--sp-4)); z-index: 70; display: flex; flex-direction: column; gap: var(--sp-2); width: 380px; max-width: calc(100vw - 32px); margin: 0; padding: 0; list-style: none; outline: none; } .toast { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-3); background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-overlay), var(--highlight-top); } .toast[data-state="open"] { animation: toast-in var(--dur-toast) var(--ease-out) both; } .toast[data-state="closed"] { animation: toast-out var(--dur-fast) var(--ease-out) both; } .toast[data-swipe="move"] { transform: translateX(var(--radix-toast-swipe-move-x)); transition: none; } .toast[data-swipe="cancel"] { transform: translateX(0); transition: transform var(--dur) var(--ease-out); } .toast[data-swipe="end"] { animation: toast-swipe-out var(--dur-fast) var(--ease-out) both; } :root[dir="rtl"] .toast[data-swipe="end"] { animation: toast-swipe-out-rtl var(--dur-fast) var(--ease-out) both; } .toast-main-row { display: flex; align-items: center; gap: var(--sp-3); width: 100%; min-width: 0; } .toast-main-row > svg { flex-shrink: 0; } .toast-main-row:has(.toast-desc) { align-items: flex-start; } .toast-main-row:has(.toast-desc) > svg { margin-top: 2px; } .toast.ok .toast-main-row > svg { color: var(--status-running); } .toast.error .toast-main-row > svg { color: var(--status-error); } .toast-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; } .toast-title-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; } .toast-title { font-size: var(--fs-13); font-weight: var(--fw-strong); } .toast-code { font-family: var(--font-mono); font-size: var(--fs-11); padding: 1px 5px; border-radius: 4px; background: var(--surface-active); color: var(--text-2); } .toast-desc { font-size: var(--fs-12); color: var(--text-2); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; } .toast-footer { display: flex; flex-direction: column; gap: var(--sp-2); padding-inline-start: 28px; width: 100%; min-width: 0; } .toast-details { font-size: var(--fs-12); color: var(--text-3); width: 100%; min-width: 0; } .toast-details summary { cursor: pointer; user-select: none; font-weight: var(--fw-medium); } .toast-details summary:hover { color: var(--text-2); } .toast-details-body { margin-top: 4px; padding: 6px 8px; border-radius: var(--r-sm); background: var(--surface-1); border: 1px solid var(--border); font-family: var(--font-mono); font-size: var(--fs-11); color: var(--text-code); max-height: 120px; overflow: auto; white-space: pre-wrap; word-break: break-word; } .toast-copy-btn { display: inline-flex; align-items: center; gap: 4px; margin-top: 5px; padding: 0 8px; height: 24px; font-size: var(--fs-11); border-radius: var(--r-sm); border: 1px solid var(--border-strong); background: var(--surface-card-elevated); color: var(--text-2); cursor: pointer; } .toast-copy-btn:hover { background: var(--surface-hover); color: var(--text); } .toast-action-btn { align-self: flex-end; } .toast .btn { height: 26px; } /* ── Forms (wizard, settings) ──────────────────────────── */ .field { display: flex; flex-direction: column; gap: 6px; } .field-spaced { margin-top: 10px; } .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); transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); } .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-compact { max-width: 140px; } .textarea { height: auto; min-height: 92px; resize: vertical; padding: 8px 10px; line-height: 1.5; } .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(--warn-text); } .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); font-variant-numeric: tabular-nums; cursor: pointer; transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), transform var(--dur-press) var(--ease-out); } .preset:hover { background: var(--surface-hover); color: var(--text); } .preset:active { transform: scale(0.97); } .preset[aria-pressed="true"] { background: var(--accent); border-color: transparent; color: var(--accent-text); font-weight: var(--fw-medium); } .wizard-steps { display: flex; gap: 6px; padding: 10px 22px; border-bottom: 1px solid var(--border); flex-wrap: wrap; background: var(--surface-1); } .wizard-step { height: 27px; padding: 0 11px; 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: 5px; transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), transform var(--dur-press) var(--ease-out); } .wizard-step:hover { background: var(--surface-hover); color: var(--text-2); } .wizard-step:active { transform: scale(0.97); } .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: var(--danger-border); 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; font-variant-numeric: tabular-nums; } .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) var(--ease-out); } .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; } /* ── VM settings (ui/settings.tsx) ─────────────────────── */ .dialog.settings-dialog { width: 900px; } .settings-split { display: flex; flex: 1; min-height: 0; max-height: min(600px, calc(100vh - 180px)); } .settings-nav { width: 204px; flex-shrink: 0; padding: 10px 8px; border-inline-end: 1px solid var(--border); background: var(--surface-sidebar); display: flex; flex-direction: column; gap: 3px; overflow-y: auto; overscroll-behavior: contain; } .settings-pane { flex: 1; min-width: 0; padding: 18px 24px 28px; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 20px; } .settings-pane-title { margin: 0; font-size: 18px; font-weight: var(--fw-strong); letter-spacing: -0.015em; color: var(--text); } .nav-icon-cat-general { background: linear-gradient(145deg, #8e8e93 0%, #636366 100%); } .nav-icon-cat-compute { background: linear-gradient(145deg, #7a78ff 0%, #5856d6 100%); } .nav-icon-cat-display { background: linear-gradient(145deg, #32a0ff 0%, #007aff 100%); } .nav-icon-cat-storage { background: linear-gradient(145deg, #34c759 0%, #248a3d 100%); } .nav-icon-cat-input { background: linear-gradient(145deg, #ff6482 0%, #ff2d55 100%); } .nav-icon-cat-advanced { background: linear-gradient(145deg, #aeaeb2 0%, #48484a 100%); } .nav-count { min-width: 18px; height: 18px; padding: 0 5px; flex-shrink: 0; display: grid; place-items: center; border-radius: 999px; background: var(--accent-soft); color: var(--accent-soft-text); font-size: 11px; font-weight: var(--fw-strong); font-variant-numeric: tabular-nums; } .nav-item[aria-selected="true"] .nav-count, .nav-item[aria-current="page"] .nav-count { background: rgba(255, 255, 255, 0.25); color: var(--accent-text); } .nav-issue { color: var(--status-error); flex-shrink: 0; } .nav-item[aria-selected="true"] .nav-issue, .nav-item[aria-current="page"] .nav-issue { color: var(--accent-text); } .sgroup { display: flex; flex-direction: column; gap: var(--sp-2); } .sgroup-title { margin: 0 0 0 4px; font-size: var(--fs-12); font-weight: var(--fw-strong); color: var(--text-3); } .sgroup-list { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-card); } .sgroup-note { margin: 0 4px; font-size: var(--fs-12); color: var(--text-3); line-height: 1.5; } .srow { position: relative; padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; transition: background var(--dur-fast) var(--ease-out); } .srow + .srow::before { content: ""; position: absolute; top: 0; left: 16px; right: 16px; height: 1px; background: var(--border); } .srow[data-error] { background: var(--danger-soft); } .srow-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); min-height: 28px; } .srow-text { min-width: 0; display: flex; flex-direction: column; gap: 3px; } .srow-title { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--text); overflow-wrap: anywhere; } .srow-desc { font-size: var(--fs-12); color: var(--text-3); line-height: 1.5; min-width: 0; } .res-advice { margin-top: var(--sp-2); color: var(--warn-text); } .srow-reason { display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-12); color: var(--text-2); } .srow-ctrl { display: flex; align-items: center; gap: var(--sp-2); flex-shrink: 0; } .srow-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; transition: opacity var(--dur-fast) var(--ease-out); } .srow-fieldset:disabled { opacity: 0.42; } .srow[data-disabled] .srow-title { color: var(--text-2); } .srow-error { display: flex; align-items: flex-start; gap: 6px; font-size: var(--fs-12); color: var(--danger-text); } .srow-error svg { flex-shrink: 0; margin-top: 2px; } .srow-kv .srow-value { min-width: 0; text-align: right; font-size: var(--fs-13); color: var(--text-2); overflow-wrap: anywhere; user-select: text; font-variant-numeric: tabular-nums; } .dirty-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; } .warn-text { color: var(--warn-text); } .inline-code { font-family: var(--font-mono); font-size: var(--fs-12); color: var(--text-code); background: var(--surface-active); padding: 2px 7px; border-radius: 5px; user-select: text; } .folder-path { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .stack-1 { display: flex; flex-direction: column; gap: var(--sp-1); } .stack-2 { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-2); } .stack-2 > .input { max-width: 320px; } .stack-3 { display: flex; flex-direction: column; gap: var(--sp-3); } .res-input { margin-top: var(--sp-2); max-width: 220px; } .foot-status { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-13); color: var(--text-2); } .foot-status .link-btn { font-size: var(--fs-13); margin-inline-start: var(--sp-1); } .foot-status .link-btn:disabled { opacity: 0.5; cursor: default; text-decoration: none; } /* Segmented control with a sliding highlight */ .seg { position: relative; display: inline-flex; max-width: 100%; overflow-x: auto; scrollbar-width: none; padding: 2px; gap: 2px; border-radius: var(--r-md); background: var(--surface-active); isolation: isolate; } .seg::-webkit-scrollbar { display: none; } .seg-wide { display: flex; } .seg-wide button { flex: 1; } .seg-thumb { position: absolute; top: 2px; bottom: 2px; left: 0; z-index: 0; border-radius: var(--r-sm); background: var(--seg-thumb); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 0 0 0.5px rgba(0, 0, 0, 0.06); transition: transform var(--dur) var(--ease-spring), width var(--dur) var(--ease-spring); } .seg button { position: relative; z-index: 1; height: 26px; padding: 0 12px; border: none; border-radius: var(--r-sm); background: transparent; color: var(--text-2); font: inherit; font-size: var(--fs-13); white-space: nowrap; cursor: pointer; transition: color var(--dur-fast) var(--ease-out); } .seg button:hover:not(:disabled) { color: var(--text); } .seg button[aria-checked="true"] { color: var(--text); font-weight: var(--fw-medium); } .seg button:disabled { opacity: 0.4; cursor: not-allowed; } /* Range field: slider + number */ .range-field { display: flex; flex-direction: column; } .range-main { display: flex; align-items: flex-start; gap: var(--sp-4); } .range-rail-wrap { position: relative; flex: 1; min-width: 0; height: 42px; } .range-rail { position: absolute; left: 9px; right: 9px; top: 13px; height: 4px; pointer-events: none; } .range-track { position: absolute; inset: 0; border-radius: 999px; background: var(--surface-active); } /* Zones sit as a thin ruler under the track so the fill never hides them. */ .range-band { position: absolute; top: 8px; height: 3px; border-radius: 999px; } .range-band.rec { background: rgba(40, 205, 65, 0.55); } .range-band.warn { background: rgba(255, 159, 10, 0.55); } .range-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: var(--accent); transition: background var(--dur-fast) var(--ease-out); } .range-field[data-warn] .range-fill { background: var(--status-busy); } .range { position: absolute; left: 0; top: 5px; width: 100%; height: 20px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; } .range:focus-visible { box-shadow: none; } .range::-webkit-slider-runnable-track { height: 20px; background: transparent; } .range::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: #ffffff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.30), 0 0 0 0.5px rgba(0, 0, 0, 0.14); transition: transform var(--dur-press) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); } .range:active::-webkit-slider-thumb { transform: scale(1.12); } .range:focus-visible::-webkit-slider-thumb { box-shadow: var(--focus-ring), 0 1px 3px rgba(0, 0, 0, 0.30); } .range-marks { position: absolute; left: 9px; right: 9px; top: 25px; height: 17px; } .range-mark { position: absolute; top: 0; transform: translateX(-50%); padding: 0 4px; border: none; border-radius: 4px; background: transparent; font: inherit; font-size: 11px; line-height: 17px; color: var(--text-3); font-variant-numeric: tabular-nums; cursor: pointer; transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out); } .range-mark:hover { color: var(--text); background: var(--surface-hover); } .range-mark[aria-pressed="true"] { color: var(--accent-soft-text); font-weight: var(--fw-strong); } .num-field { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; flex-shrink: 0; border-radius: var(--r-md); border: 1px solid var(--border-strong); background: var(--surface-input); transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); } .num-field:focus-within { border-color: var(--accent); box-shadow: var(--focus-ring); } .num-input { min-width: 0; padding: 0; border: none; outline: none; background: transparent; color: var(--text); font: inherit; font-size: var(--fs-13); text-align: right; font-variant-numeric: tabular-nums; } .num-input:focus-visible { box-shadow: none; } .num-unit { font-size: var(--fs-12); color: var(--text-3); white-space: nowrap; } /* Option cards */ .opt-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: var(--sp-2); } .opt-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; padding: 10px 12px; border-radius: var(--r-md); border: 1px solid var(--border-strong); background: var(--surface-card-elevated); cursor: pointer; transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), transform var(--dur-press) var(--ease-out); } .opt-card:hover { background: var(--surface-hover); } .opt-card:active:not([data-disabled]) { transform: scale(0.98); } .opt-card[data-selected] { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); } .opt-card[data-disabled] { opacity: 0.45; cursor: not-allowed; } .opt-card input { position: absolute; opacity: 0; pointer-events: none; } .opt-card:focus-within { box-shadow: var(--focus-ring); } .opt-card[data-selected]:focus-within { box-shadow: inset 0 0 0 1px var(--accent), var(--focus-ring); } .opt-card-title { max-width: 100%; font-size: var(--fs-13); font-weight: var(--fw-medium); color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .opt-card-sub { max-width: 100%; font-size: var(--fs-12); color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; } .opt-card-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; } .opt-card .badge { height: 18px; padding: 0 6px; font-size: 11px; } .screen-art { display: block; margin-bottom: 6px; border-radius: 3px; border: 1.5px solid var(--text-3); background: linear-gradient(160deg, var(--accent-soft), transparent 70%); transition: border-color var(--dur-fast) var(--ease-out); } .opt-card[data-selected] .screen-art { border-color: var(--accent); } .screen-art.custom { width: 44px; height: 26px; border-style: dashed; background: none; } /* Pop-up button (replaces native