2085 lines
121 KiB
CSS
2085 lines
121 KiB
CSS
/* 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-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-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);
|
||
}
|
||
.plugin-view-icon {
|
||
display: block; width: 13px; height: 13px; background: currentColor;
|
||
-webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
|
||
-webkit-mask-position: center; mask-position: center;
|
||
-webkit-mask-size: contain; mask-size: contain;
|
||
}
|
||
/* 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-guest { overflow: hidden; background: #8d95a9; }
|
||
.nav-item[aria-selected="true"] .nav-icon-guest { background: #8d95a9; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.7); }
|
||
.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; }
|
||
.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-row.conn-drop-access { justify-content: flex-start; }
|
||
.conn-drop-access .conn-meta { white-space: normal; }
|
||
.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;
|
||
}
|
||
|
||
/* ── 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-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 > 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-stack { flex-direction: column; align-items: stretch; gap: var(--sp-2); }
|
||
.row-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); width: 100%; }
|
||
.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; }
|
||
.host-dns-extra { display: flex; flex-direction: column; gap: var(--sp-2); }
|
||
.host-dns-custom { display: flex; align-items: center; gap: var(--sp-2); }
|
||
.host-dns-custom > .input { flex: 1; min-width: 0; }
|
||
.host-dns-feedback { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-12); line-height: 1.45; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
|
||
.host-dns-feedback > svg { flex-shrink: 0; }
|
||
.tip-anchor { display: inline-flex; border-radius: var(--r-md); }
|
||
.hypervisor-hvci-notice { display: flex; align-items: flex-start; gap: 6px; font-size: var(--fs-12); line-height: 1.48; overflow-wrap: anywhere; }
|
||
.hypervisor-hvci-notice > svg { flex-shrink: 0; margin-top: 2px; }
|
||
.hypervisor-hvci-notice .link-btn { white-space: nowrap; margin-inline-start: 4px; font-weight: var(--fw-medium); }
|
||
.row.hotkey-row { flex-direction: column; align-items: stretch; gap: var(--sp-3); }
|
||
.hotkey-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); width: 100%; }
|
||
.hotkey-controls { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-2) var(--sp-3); }
|
||
.hotkey-keys { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 5px; }
|
||
.hotkey-keys[data-inactive="true"] { opacity: 0.62; }
|
||
.hotkey-cap {
|
||
display: inline-flex; align-items: center; justify-content: center;
|
||
min-width: 26px; height: 26px; padding: 0 8px;
|
||
border-radius: var(--r-sm); border: 1px solid var(--border-strong);
|
||
background: var(--surface-card-elevated); box-shadow: var(--shadow-btn);
|
||
font-family: var(--font-mono); font-size: var(--fs-12); font-weight: var(--fw-medium);
|
||
color: var(--text); line-height: 1;
|
||
}
|
||
.hotkey-plus { font-size: var(--fs-11); color: var(--text-3); user-select: none; }
|
||
.hotkey-actions { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-2); }
|
||
.hotkey-record-btn.is-recording {
|
||
border-color: var(--accent);
|
||
background: var(--accent-soft);
|
||
color: var(--accent-soft-text);
|
||
}
|
||
.hotkey-hint { font-size: var(--fs-12); color: var(--text-3); }
|
||
.hotkey-error { display: flex; align-items: flex-start; gap: 6px; font-size: var(--fs-12); color: var(--danger-text); }
|
||
.hotkey-error svg { flex-shrink: 0; margin-top: 2px; }
|
||
|
||
.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-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);
|
||
}
|
||
.creating-row { flex-direction: column; align-items: stretch; gap: var(--sp-2); }
|
||
.creating-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); }
|
||
.creating-progress { width: 100%; height: 6px; }
|
||
.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.md { width: 480px; }
|
||
.dialog-prose { font-size: var(--fs-13); color: var(--text-2); line-height: 1.55; gap: var(--sp-3); }
|
||
.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-body > * { flex-shrink: 0; }
|
||
.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;
|
||
max-width: min(420px, calc(100vw - 16px)); white-space: pre-line; overflow-wrap: anywhere;
|
||
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.warning .toast-main-row > svg { color: var(--status-busy); }
|
||
.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); }
|
||
.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); overflow-wrap: anywhere; }
|
||
.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); }
|
||
.danger-text { color: var(--danger-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 <select>) */
|
||
.popup-btn {
|
||
display: inline-flex; align-items: center; justify-content: space-between; gap: 10px;
|
||
height: 29px; min-width: 140px; max-width: 100%; padding-inline: 10px 8px;
|
||
border-radius: var(--r-sm); border: 1px solid var(--border-strong);
|
||
background: var(--seg-thumb); color: var(--text); box-shadow: var(--shadow-btn);
|
||
font: inherit; font-size: var(--fs-13); text-align: start; cursor: pointer;
|
||
transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), transform var(--dur-press) var(--ease-out);
|
||
}
|
||
.popup-btn:hover { border-color: var(--text-3); }
|
||
.popup-btn:active:not(:disabled) { transform: scale(0.98); }
|
||
.popup-btn[data-state="open"] { border-color: var(--accent); box-shadow: var(--focus-ring); }
|
||
.popup-btn:disabled { opacity: 0.45; cursor: not-allowed; }
|
||
.popup-wide { display: flex; width: 100%; height: 32px; }
|
||
.popup-value { min-width: 0; display: inline-flex; align-items: baseline; gap: 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
|
||
.popup-chevron { flex-shrink: 0; color: var(--text-3); }
|
||
.popup-detail { font-size: var(--fs-12); color: var(--text-3); white-space: nowrap; }
|
||
.popup-menu { min-width: var(--radix-dropdown-menu-trigger-width); max-width: calc(100vw - 16px); max-height: min(360px, var(--radix-dropdown-menu-content-available-height)); overflow-y: auto; overscroll-behavior: contain; }
|
||
.popup-item { position: relative; padding-inline: 28px 14px; gap: 8px; }
|
||
.popup-check { position: absolute; inset-inline-start: 9px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; }
|
||
.popup-item-label { white-space: nowrap; }
|
||
.popup-item[data-highlighted] .popup-detail { color: rgba(255, 255, 255, 0.78); }
|
||
|
||
.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); overflow-wrap: anywhere; 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; overscroll-behavior: contain; 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.02em; text-wrap: balance; }
|
||
.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); }
|
||
/* Read-only data folder screen (DataRootReadOnly) */
|
||
.dataroot-detail { font-size: var(--fs-12); color: var(--text-2); }
|
||
.dataroot-detail summary { cursor: pointer; }
|
||
.dataroot-detail pre {
|
||
margin: var(--sp-2) 0 0; padding: var(--sp-3); border-radius: var(--r-md);
|
||
background: var(--surface-1); border: 1px solid var(--border);
|
||
white-space: pre-wrap; word-break: break-word; max-height: 160px; overflow: auto;
|
||
}
|
||
/* First-run offer of a market language pack for the OS language */
|
||
.setup-langpack {
|
||
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;
|
||
}
|
||
.setup-langpack:has(input:disabled) { cursor: default; opacity: 0.7; }
|
||
.setup-langpack > input { flex-shrink: 0; margin: 0; accent-color: var(--accent); }
|
||
.setup-langpack-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
|
||
.setup-langpack-title { font-size: var(--fs-13); font-weight: var(--fw-medium); color: var(--text); }
|
||
.setup-langpack-sub { font-size: var(--fs-12); color: var(--text-2); line-height: 1.45; }
|
||
.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) var(--ease-out), background var(--dur-fast) var(--ease-out), transform var(--dur-press) var(--ease-out);
|
||
}
|
||
.choice-card:hover { background: var(--surface-hover); }
|
||
.choice-card:active { transform: scale(0.99); }
|
||
.choice-card[data-selected="true"] { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
|
||
.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); overflow-wrap: anywhere; }
|
||
.choice-card-meta { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-12); color: var(--text-3); font-variant-numeric: tabular-nums; }
|
||
.choice-other { align-self: flex-start; }
|
||
.task-inline { display: flex; align-items: center; gap: var(--sp-2); font-variant-numeric: tabular-nums; }
|
||
|
||
.guide-cmd { margin-top: var(--sp-2); }
|
||
|
||
/* ── Telemetry meter (GPU compositor scaleX) ───────────── */
|
||
.meter-fill {
|
||
display: block;
|
||
width: 100%;
|
||
height: 100%;
|
||
border-radius: 999px;
|
||
background: var(--accent);
|
||
transform-origin: left center;
|
||
transition: transform 280ms var(--ease-out), background var(--dur) var(--ease-out);
|
||
}
|
||
.meter-fill.warn { background: var(--status-busy); }
|
||
.meter-fill.high { background: var(--status-error); }
|
||
|
||
/* Motion keyframes */
|
||
@keyframes rise-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
|
||
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
|
||
@keyframes fade-out { from { opacity: 1; } to { opacity: 0; } }
|
||
@keyframes pop-in { from { opacity: 0; transform: translate(-50%, -49%) scale(0.96); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
|
||
@keyframes menu-in { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }
|
||
@keyframes tip-in { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }
|
||
@keyframes toast-in { from { opacity: 0; transform: translateY(10px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
|
||
@keyframes toast-out { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(0.96); } }
|
||
@keyframes toast-swipe-out { from { transform: translateX(var(--radix-toast-swipe-end-x)); opacity: 1; } to { transform: translateX(calc(100% + 24px)); opacity: 0; } }
|
||
@keyframes toast-swipe-out-rtl { from { transform: translateX(var(--radix-toast-swipe-end-x)); opacity: 1; } to { transform: translateX(calc(-100% - 24px)); opacity: 0; } }
|
||
|
||
.page { animation: rise-in var(--dur) var(--ease-out) both; }
|
||
.overlay { animation: fade-in var(--dur) var(--ease-out) both; }
|
||
.dialog { animation: pop-in var(--dur-modal) var(--ease-out) both; }
|
||
.menu { transform-origin: var(--radix-dropdown-menu-content-transform-origin, top); }
|
||
.menu[data-state="open"] { animation: menu-in 160ms var(--ease-out) both; }
|
||
.menu[data-state="open"][data-menubar-switch="true"],
|
||
.menu[data-state="closed"] { animation: none; }
|
||
.tooltip[data-state="delayed-open"] { animation: tip-in 125ms var(--ease-out) both; }
|
||
.tooltip[data-state="instant-open"],
|
||
.tooltip[data-state="closed"] { animation: none; }
|
||
.pane-anim { display: flex; flex-direction: column; gap: 20px; animation: rise-in var(--dur) var(--ease-out) both; }
|
||
.step-anim { display: flex; flex-direction: column; gap: var(--sp-4); animation: rise-in var(--dur) var(--ease-out) both; }
|
||
|
||
/* VM screen thumbnail: compact Studio Display bezel matching mockup */
|
||
.vm-screen {
|
||
position: relative; width: clamp(196px, 31vh, 260px); max-width: 100%; aspect-ratio: 16 / 10;
|
||
transition: box-shadow var(--dur) var(--ease-out);
|
||
border-radius: 10px; overflow: hidden;
|
||
border: 6px solid #1b1c20; background-color: #111216; background-size: cover; background-position: center;
|
||
box-shadow: 0 14px 32px rgba(15, 23, 42, 0.18), 0 3px 8px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.14);
|
||
}
|
||
.vm-screen::after {
|
||
content: ""; position: absolute; inset: 0; pointer-events: none;
|
||
background: linear-gradient(155deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0) 42%);
|
||
}
|
||
:root[data-theme="dark"] .vm-screen {
|
||
border-color: #0b0c0f;
|
||
box-shadow: 0 18px 42px rgba(0, 0, 0, 0.56), 0 0 0 1px rgba(255, 255, 255, 0.10);
|
||
}
|
||
.vm-screen-img {
|
||
display: block; width: 100%; height: 100%; object-fit: cover; user-select: none;
|
||
animation: fade-in var(--dur-modal) var(--ease-out) both;
|
||
transition: filter 420ms var(--ease-out);
|
||
}
|
||
.vm-screen.is-idle .vm-screen-img { filter: saturate(0.50) brightness(0.65); }
|
||
.vm-screen-art { display: block; width: 100%; height: 100%; }
|
||
/* A non-macOS guest's picture (GuestArt) in place of the macOS version artwork. */
|
||
.guest-art {
|
||
display: grid; place-items: center; width: 100%; height: 100%; color: #ffffff;
|
||
background: linear-gradient(145deg, #8d95a9 0%, #4b5266 100%);
|
||
}
|
||
.guest-art[data-guest-family="linux"] { background: linear-gradient(145deg, #f2a93b 0%, #c4651b 100%); }
|
||
.guest-art[data-guest-family="windows"] { background: linear-gradient(145deg, #3aa0ff 0%, #1f5fd0 100%); }
|
||
.guest-art[data-guest-family="android"] { background: linear-gradient(145deg, #4cd08a 0%, #1f8f5a 100%); }
|
||
.vm-screen-live {
|
||
position: absolute; top: 8px; right: 8px; z-index: 2;
|
||
width: 8px; height: 8px; border-radius: 50%;
|
||
background: var(--status-running); box-shadow: 0 0 0 3px rgba(40, 205, 65, 0.30);
|
||
animation: pulse 2.2s ease-in-out infinite;
|
||
}
|
||
/* Pointer shortcuts on the screen; shown on hover only, since the Start / Show
|
||
Window buttons below already say the same thing. */
|
||
.vm-screen-play {
|
||
position: absolute; inset: 0; z-index: 2; margin: auto; width: 44px; height: 44px; padding-left: 2px;
|
||
display: grid; place-items: center; border-radius: 50%; pointer-events: none;
|
||
background: rgba(255, 255, 255, 0.92); color: #1d1d1f;
|
||
box-shadow: 0 6px 18px rgba(0, 0, 0, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.85);
|
||
opacity: 0; transform: scale(0.9);
|
||
transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
|
||
}
|
||
.vm-screen-chip {
|
||
position: absolute; left: 50%; bottom: 10px; z-index: 2;
|
||
width: max-content; max-width: calc(100% - 20px); padding: 0 12px;
|
||
display: inline-flex; align-items: center; justify-content: center; gap: 5px;
|
||
height: 26px; border-radius: 999px; pointer-events: none;
|
||
background: rgba(20, 21, 26, 0.84); color: #fff;
|
||
font-size: var(--fs-12); font-weight: var(--fw-medium);
|
||
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
|
||
opacity: 0; transform: translateX(-50%) translateY(4px);
|
||
transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
|
||
}
|
||
|
||
/* New-VM wizard: source cards */
|
||
.source-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
|
||
.source-card {
|
||
position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto;
|
||
column-gap: 12px; row-gap: 2px; align-items: center;
|
||
padding: 14px 16px; border-radius: var(--r-lg); cursor: pointer;
|
||
border: 1px solid var(--border-strong); background: var(--surface-card-elevated);
|
||
transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), box-shadow var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
|
||
}
|
||
@media (hover: hover) and (pointer: fine) {
|
||
.source-card:hover { background: var(--surface-hover); transform: translateY(-1px); }
|
||
}
|
||
.source-card:active { transform: scale(0.985); }
|
||
.source-card[data-selected] { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
|
||
.source-card:focus-within { box-shadow: var(--focus-ring); }
|
||
.source-card[data-selected]:focus-within { box-shadow: inset 0 0 0 1px var(--accent), var(--focus-ring); }
|
||
.source-card input { position: absolute; opacity: 0; pointer-events: none; }
|
||
.source-icon {
|
||
grid-row: 1 / 3; width: 40px; height: 40px; border-radius: 10px;
|
||
display: grid; place-items: center; color: #fff;
|
||
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.24);
|
||
}
|
||
.source-icon-offline { background: linear-gradient(145deg, #34c759 0%, #248a3d 100%); }
|
||
.source-icon-apple { background: linear-gradient(145deg, #32a0ff 0%, #007aff 100%); }
|
||
.source-icon-installer { background: linear-gradient(145deg, #ff9f0a 0%, #e07b00 100%); }
|
||
.source-icon-disk { background: linear-gradient(145deg, #aeaeb2 0%, #636366 100%); }
|
||
.source-title { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: var(--fw-strong); color: var(--text); }
|
||
.source-title .badge { height: 18px; padding: 0 7px; font-size: 11px; }
|
||
.source-sub { font-size: var(--fs-12); color: var(--text-3); }
|
||
.path-text { display: block; max-width: min(420px, 100%); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-12); }
|
||
.name-input { width: 260px; max-width: 100%; }
|
||
|
||
/* The assistant keeps one size across steps, like macOS setup assistants. */
|
||
.dialog.wizard-dialog { width: 760px; height: min(660px, calc(100vh - 80px)); }
|
||
|
||
/* Processor affinity / CPU core mapping dialog */
|
||
.dialog.affinity-dialog { width: 640px; max-width: calc(100vw - 48px); }
|
||
.affinity-body { display: flex; flex-direction: column; gap: 12px; }
|
||
.affinity-mode-bar { display: flex; flex-direction: column; gap: 6px; }
|
||
.affinity-hint { font-size: var(--fs-12); color: var(--text-3); }
|
||
.affinity-quick-bar { display: flex; flex-wrap: wrap; gap: 6px; }
|
||
.affinity-chip {
|
||
height: 26px; padding: 0 10px; border-radius: 999px;
|
||
border: 1px solid var(--border-strong); background: var(--surface-1); color: var(--text-2);
|
||
font-size: var(--fs-12); font-weight: var(--fw-medium); 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);
|
||
}
|
||
.affinity-chip:hover:not(:disabled) { background: var(--surface-hover); color: var(--text); }
|
||
.affinity-chip.is-active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-soft-text); }
|
||
.affinity-chip:disabled { opacity: 0.45; cursor: not-allowed; }
|
||
.affinity-grid {
|
||
display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px;
|
||
max-height: 248px; overflow-y: auto; padding: 2px;
|
||
}
|
||
.affinity-cpu {
|
||
display: flex; align-items: center; gap: 7px; padding: 7px 9px;
|
||
border-radius: var(--r-md); border: 1px solid var(--border-strong);
|
||
background: var(--surface-1); color: var(--text-2); cursor: pointer; text-align: start;
|
||
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);
|
||
}
|
||
.affinity-cpu:hover:not(:disabled) { background: var(--surface-hover); color: var(--text); }
|
||
.affinity-cpu:active:not(:disabled) { transform: scale(0.98); }
|
||
.affinity-cpu.is-checked { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
|
||
.affinity-cpu.is-lpe:not(.is-checked) { opacity: 0.72; }
|
||
.affinity-check {
|
||
width: 16px; height: 16px; border-radius: 4px; flex-shrink: 0;
|
||
border: 1.5px solid var(--border-strong); background: var(--surface-0);
|
||
display: grid; place-items: center; color: #fff;
|
||
}
|
||
.affinity-cpu.is-checked .affinity-check { border-color: var(--accent); background: var(--accent); }
|
||
.affinity-cpu-name { font-size: var(--fs-12); font-weight: var(--fw-medium); white-space: nowrap; }
|
||
.affinity-cpu-meta { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 4px; }
|
||
.affinity-core-tag { font-size: 10px; color: var(--text-3); }
|
||
.affinity-tier {
|
||
font-size: 10px; font-weight: var(--fw-strong); line-height: 1; padding: 2px 5px; border-radius: 999px;
|
||
}
|
||
.affinity-tier.tier-p { background: var(--accent-soft); color: var(--accent-soft-text); }
|
||
.affinity-tier.tier-e { background: var(--ok-soft); color: var(--ok-text); }
|
||
.affinity-tier.tier-lpe { background: var(--warn-soft); color: var(--warn-text); }
|
||
.affinity-summary {
|
||
display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
|
||
padding: 8px 10px; border-radius: var(--r-md); background: var(--surface-1); border: 1px solid var(--border);
|
||
font-size: var(--fs-12); color: var(--text-2);
|
||
}
|
||
.affinity-summary > span { display: inline-flex; align-items: center; gap: 5px; }
|
||
.affinity-live { color: var(--ok-text); }
|
||
.affinity-eco-row {
|
||
display: flex; align-items: center; justify-content: space-between; gap: 12px;
|
||
padding: 10px 12px; border-radius: var(--r-md); background: var(--surface-1); border: 1px solid var(--border);
|
||
}
|
||
|
||
/* Reduced motion: stop decorative loops & positional motion */
|
||
@media (prefers-reduced-motion: reduce) {
|
||
.status-busy, .vm-screen-live, .skeleton-bar, .market-progress.is-indeterminate .market-progress-fill { animation: none; }
|
||
.vm-display-unit, .vm-display-unit.is-actionable:hover, .vm-display-unit.is-actionable:active { transform: none; }
|
||
.vm-screen-img, .vm-spec-meter .meter-fill { transition: none; }
|
||
.page, .dialog, .menu[data-state="open"]:not([data-menubar-switch="true"]), .tooltip[data-state="delayed-open"], .pane-anim, .step-anim, .toast[data-state="open"] {
|
||
animation-name: fade-in;
|
||
animation-duration: 140ms;
|
||
}
|
||
.toast[data-state="closed"],
|
||
.toast[data-swipe="end"],
|
||
:root[dir="rtl"] .toast[data-swipe="end"] {
|
||
animation-name: fade-out;
|
||
animation-duration: 140ms;
|
||
}
|
||
}
|
||
|
||
/* Screen screenshot button, notes, dropzone, snapshots, log filter, welcome */
|
||
.vm-screen.is-live { cursor: pointer; }
|
||
.vm-screen-shot {
|
||
position: absolute; right: 8px; bottom: 8px; z-index: 3;
|
||
width: 30px; height: 30px; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 8px;
|
||
display: grid; place-items: center; cursor: pointer;
|
||
background: rgba(20, 22, 28, 0.82); color: #ffffff;
|
||
opacity: 0; transform: translateY(3px);
|
||
transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
|
||
}
|
||
.vm-screen:hover .vm-screen-shot,
|
||
.vm-screen-shot:focus-visible { opacity: 1; transform: translateY(0); }
|
||
.vm-screen-shot:hover { background: rgba(20, 22, 28, 0.94); }
|
||
.vm-screen-shot:active { transform: scale(0.94); }
|
||
|
||
/* The title is the display name; click to rename in place. The pencil hangs
|
||
outside the text so the name stays centred. */
|
||
.vm-name-btn {
|
||
position: relative; display: inline-flex; align-items: center; max-width: 100%;
|
||
padding: 0 6px; border: none; border-radius: var(--r-md);
|
||
background: transparent; color: inherit; font: inherit; letter-spacing: inherit; cursor: text;
|
||
transition: background var(--dur-fast) var(--ease-out);
|
||
}
|
||
.vm-name-btn > span { overflow-wrap: anywhere; }
|
||
.vm-name-btn:hover { background: var(--surface-hover); }
|
||
.vm-name-pencil {
|
||
position: absolute; inset-inline-start: 100%; top: 50%; margin-inline-start: 6px; transform: translateY(-50%);
|
||
color: var(--text-3); opacity: 0; transition: opacity var(--dur-fast) var(--ease-out);
|
||
}
|
||
.vm-name-btn:hover .vm-name-pencil, .vm-name-btn:focus-visible .vm-name-pencil { opacity: 1; }
|
||
.vm-name-input {
|
||
width: min(100%, 380px); height: 36px; padding: 0 10px; text-align: center;
|
||
border-radius: var(--r-md); border: 1px solid var(--accent); background: var(--surface-input);
|
||
color: var(--text); font-family: inherit; font-size: 24px; font-weight: 700; letter-spacing: -0.025em;
|
||
box-shadow: var(--focus-ring);
|
||
}
|
||
|
||
/* Screen + summary. Stacked by default; once the content column is wide
|
||
enough the summary becomes one labelled column beside the screen, like
|
||
"About This Mac". */
|
||
.scroll { container-type: inline-size; }
|
||
.vm-top { display: flex; flex-direction: column; gap: 14px; }
|
||
.vm-spec-label { display: none; }
|
||
@container (min-width: 760px) {
|
||
.page.vm-page { max-width: 880px; }
|
||
.vm-top {
|
||
display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
|
||
align-items: center; gap: 28px; padding: 6px 0 4px;
|
||
}
|
||
.vm-spec-card { grid-template-columns: minmax(0, 1fr); row-gap: 12px; padding: 16px 18px; }
|
||
/* One line per fact: icon · label · value · short usage bar at the end.
|
||
Every row has the same height, and a bar appearing or hiding when the VM
|
||
starts or stops doesn't move anything. */
|
||
.vm-spec-cell { grid-template-columns: auto minmax(4.5em, max-content) minmax(0, 1fr) 56px; column-gap: 10px; min-height: 22px; }
|
||
.vm-spec-label { display: block; max-width: 9.5em; overflow: hidden; text-overflow: ellipsis; font-size: var(--fs-13); color: var(--text-3); white-space: nowrap; }
|
||
.vm-spec-meter { grid-column: 4; grid-row: 1; align-self: center; }
|
||
/* Rows without a bar (graphics, network, language) give its column to the value. */
|
||
.vm-spec-cell:not(:has(.vm-spec-meter)) .vm-spec-val { grid-column: 3 / 5; }
|
||
.vm-screen { width: clamp(220px, 34vh, 300px); }
|
||
}
|
||
|
||
.vm-page-drop { position: relative; }
|
||
.drop-banner {
|
||
position: sticky; top: 0; z-index: 20;
|
||
display: flex; align-items: center; justify-content: center; gap: 8px;
|
||
padding: 12px 16px; border-radius: var(--r-lg);
|
||
background: color-mix(in srgb, var(--surface-canvas) 89%, var(--accent)); border: 1.5px dashed var(--accent);
|
||
color: var(--accent-soft-text); font-size: var(--fs-13); font-weight: var(--fw-medium);
|
||
}
|
||
|
||
/* Interactive install stepper */
|
||
.guide-step-btn {
|
||
width: 24px; height: 24px; padding: 0; border-radius: 50%; flex-shrink: 0; margin-top: 1px;
|
||
display: grid; place-items: center; border: none; cursor: pointer;
|
||
background: var(--accent-soft); color: var(--accent-soft-text);
|
||
font-size: var(--fs-11); font-weight: var(--fw-strong); font-variant-numeric: tabular-nums;
|
||
transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), transform var(--dur-press) var(--ease-out);
|
||
}
|
||
.guide-step-btn:active { transform: scale(0.92); }
|
||
.guide-step-btn.done { background: var(--ok-soft); color: var(--ok-text); }
|
||
.guide-step.is-done .guide-step-body { opacity: 0.62; }
|
||
|
||
/* Inline snapshot creation bar */
|
||
.snap-create-bar {
|
||
display: flex; align-items: center; gap: 8px;
|
||
padding: 10px 16px; background: var(--surface-1);
|
||
border-bottom: 1px solid var(--border);
|
||
}
|
||
.snap-create-bar .input { flex: 1; height: 29px; }
|
||
.snap-meta-hint { font-size: var(--fs-12); font-weight: var(--fw-regular); color: var(--text-3); }
|
||
|
||
/* Log filter controls */
|
||
.log-filter-input {
|
||
width: 148px; height: 24px; padding: 0 8px; flex-shrink: 0;
|
||
border-radius: var(--r-sm); border: 1px solid var(--border-strong);
|
||
background: var(--surface-input); color: var(--text); font: inherit; font-size: var(--fs-12);
|
||
}
|
||
.log-filter-input:focus { border-color: var(--accent); box-shadow: var(--focus-ring); }
|
||
.log-filter-pill {
|
||
height: 24px; padding: 0 8px; border-radius: var(--r-sm); white-space: nowrap; flex-shrink: 0;
|
||
border: 1px solid var(--border); 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), border-color var(--dur-fast) var(--ease-out);
|
||
}
|
||
.log-filter-pill:hover { color: var(--text); background: var(--surface-hover); }
|
||
.log-filter-pill[aria-pressed="true"] { background: var(--warn-soft); border-color: transparent; color: var(--warn-text); font-weight: var(--fw-medium); }
|
||
|
||
/* Storage breakdown bar (Engine page) */
|
||
.storage-bar {
|
||
display: flex; height: 8px; border-radius: 999px; overflow: hidden;
|
||
background: var(--surface-active); gap: 2px;
|
||
}
|
||
.storage-seg-vms { background: var(--accent); }
|
||
.storage-seg-inst { background: var(--status-running); }
|
||
.storage-seg-rt { background: #7a78ff; }
|
||
.storage-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: var(--fs-12); color: var(--text-2); font-variant-numeric: tabular-nums; }
|
||
.storage-legend-item { display: inline-flex; align-items: center; gap: 6px; }
|
||
.storage-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
|
||
|
||
/* Zero-VM welcome state */
|
||
.welcome-card {
|
||
display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px;
|
||
padding: 40px 28px; margin-top: 24px;
|
||
background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--r-xl);
|
||
box-shadow: var(--shadow-card);
|
||
}
|
||
.welcome-card h1 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
|
||
.welcome-card p { font-size: var(--fs-13); color: var(--text-2); max-width: 380px; }
|
||
|
||
/* Plugin slots, safe-mode banner & UI Contract v2 (see docs/plugin-architecture.md) */
|
||
.safe-mode-banner {
|
||
display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
|
||
padding: 6px var(--sp-4); font-size: var(--fs-12);
|
||
background: var(--warn-soft); color: var(--warn-text);
|
||
border-bottom: 1px solid var(--notice-border);
|
||
}
|
||
.rg-slot-anchor:empty { display: none; }
|
||
.rg-slot-inline { display: inline-flex; align-items: center; gap: 6px; }
|
||
.rg-slot-inline:empty { display: none; }
|
||
.rg-preview-anchor { position: absolute; z-index: 2; pointer-events: none; }
|
||
.titlebar-center {
|
||
position: absolute; left: 50%; top: 0; height: 100%; transform: translateX(-50%);
|
||
display: flex; align-items: center; gap: 6px; --wails-draggable: no-drag;
|
||
}
|
||
.nav-item-trailing { display: inline-flex; align-items: center; flex-shrink: 0; }
|
||
|
||
/* uiApi 2.0 full-window layers (ui-contract.ts): `.app-shell` forms an isolated
|
||
stacking context so background (z -1) sits under content and overlay (z 30)
|
||
sits above chrome while portaled dialogs/menus/toasts stay on top. */
|
||
.app-shell { position: relative; isolation: isolate; }
|
||
.rg-layer { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
|
||
.rg-layer:empty { display: none; }
|
||
.rg-layer-background { z-index: -1; }
|
||
.rg-layer-overlay { z-index: 30; }
|
||
[data-motion="reduced"] .rg-layer *,
|
||
[data-motion="reduced"] .rg-layer *::before,
|
||
[data-motion="reduced"] .rg-layer *::after { animation-play-state: paused !important; transition: none !important; }
|
||
|
||
/* Theme decorations (ui-contract): images placed into slot anchors and layers. */
|
||
.rg-decoration { display: block; max-width: 100%; object-fit: contain; pointer-events: none; user-select: none; }
|
||
.rg-layer > .rg-decoration { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
|
||
|
||
/* Theme icon override: a packaged monochrome SVG tinted with currentColor. */
|
||
.rg-icon {
|
||
display: inline-block; flex-shrink: 0; background-color: currentColor;
|
||
-webkit-mask: var(--rg-icon) center / contain no-repeat; mask: var(--rg-icon) center / contain no-repeat;
|
||
}
|
||
|
||
/* Theme layout options (ui-contract; set from the active theme's `layout` as
|
||
data-layout-* on <html>). They move and size regions only. */
|
||
:root[data-layout-titlebar="compact"] { --titlebar-h: 34px; }
|
||
:root[data-layout-density="compact"] {
|
||
--sp-1: 3px; --sp-2: 6px; --sp-3: 9px; --sp-4: 12px; --sp-5: 16px; --sp-6: 20px; --sp-8: 26px;
|
||
}
|
||
:root[data-layout-density="compact"] .nav-item { height: 30px; }
|
||
:root[data-layout-density="comfortable"] {
|
||
--sp-1: 5px; --sp-2: 10px; --sp-3: 14px; --sp-4: 20px; --sp-5: 24px; --sp-6: 30px; --sp-8: 40px;
|
||
}
|
||
:root[data-layout-density="comfortable"] .nav-item { height: 42px; }
|
||
:root[data-layout-sidebar="right"] .workspace { flex-direction: row-reverse; }
|
||
:root[data-layout-sidebar="right"] .sidebar-wrap { border-inline-end: 0; border-inline-start: 1px solid var(--border); }
|
||
:root[data-layout-sidebar-mode="floating"] .sidebar-wrap { background: transparent; border-color: transparent; }
|
||
:root[data-layout-sidebar-mode="floating"] .sidebar { box-shadow: var(--shadow-overlay); }
|
||
/* Rail: icons only. Labels stay as accessible names and tooltips. */
|
||
:root[data-layout-sidebar-mode="rail"] { --sidebar-w: 76px; }
|
||
:root[data-layout-sidebar-mode="rail"] .sidebar-brand-name,
|
||
:root[data-layout-sidebar-mode="rail"] .sidebar-head > span,
|
||
:root[data-layout-sidebar-mode="rail"] .nav-label,
|
||
:root[data-layout-sidebar-mode="rail"] .update-capsule-title,
|
||
:root[data-layout-sidebar-mode="rail"] .update-capsule-btn { display: none; }
|
||
:root[data-layout-sidebar-mode="rail"] .sidebar-brand,
|
||
:root[data-layout-sidebar-mode="rail"] .sidebar-head { justify-content: center; padding-inline: 0; }
|
||
:root[data-layout-sidebar-mode="rail"] .nav-item { justify-content: center; padding: 0; position: relative; }
|
||
:root[data-layout-sidebar-mode="rail"] .nav-item .status { position: absolute; top: 4px; inset-inline-end: 6px; }
|
||
:root[data-layout-sidebar-mode="rail"] .nav-item .nav-dot { position: absolute; top: 4px; inset-inline-start: 6px; }
|
||
.rg-preview-anchor:empty { display: none; }
|
||
.rg-preview-anchor.tl { top: 6px; left: 6px; }
|
||
.rg-preview-anchor.tr { top: 6px; right: 6px; }
|
||
.rg-preview-anchor.bl { bottom: 6px; left: 6px; }
|
||
.rg-preview-anchor.br { bottom: 6px; right: 6px; }
|
||
|
||
.plugin-panel-wrap {
|
||
border: 1px solid var(--border); border-radius: var(--r-lg);
|
||
overflow: hidden; background: var(--surface-1); margin-bottom: var(--sp-3);
|
||
}
|
||
.plugin-panel-wrap.is-headless { margin-bottom: 0; }
|
||
.plugin-panel-head {
|
||
padding: 8px 12px; font-size: var(--fs-12); font-weight: var(--fw-medium);
|
||
color: var(--text-2); border-bottom: 1px solid var(--border);
|
||
}
|
||
.plugin-panel-frame { display: block; width: 100%; border: 0; background: transparent; }
|
||
.plugin-search-wrap { position: relative; display: flex; align-items: center; }
|
||
.plugin-search-wrap.is-wide { width: 100%; }
|
||
.plugin-search-icon {
|
||
position: absolute; inset-inline-start: 10px; color: var(--text-3); pointer-events: none;
|
||
}
|
||
.plugin-search { width: 210px; padding-inline-start: 30px; }
|
||
.plugin-search-wrap.is-wide .plugin-search { width: 100%; }
|
||
.plugins-scheme-dot {
|
||
width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0;
|
||
border: 1px solid var(--border-strong); display: inline-block;
|
||
}
|
||
|
||
.plugin-pill {
|
||
display: inline-flex; align-items: center; gap: 6px;
|
||
height: 26px; padding: 0 11px; border-radius: 999px;
|
||
border: 1px solid transparent; background: transparent;
|
||
color: var(--text-2); font: inherit; font-size: var(--fs-12); font-weight: var(--fw-medium);
|
||
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);
|
||
}
|
||
.plugin-pill:hover { background: var(--surface-hover); color: var(--text); }
|
||
.plugin-pill.is-active { background: var(--accent-soft); color: var(--accent-soft-text); }
|
||
.plugin-pill-count { color: var(--text-3); font-variant-numeric: tabular-nums; }
|
||
.plugin-pill.is-active .plugin-pill-count { color: inherit; opacity: 0.7; }
|
||
|
||
/* iOS/macOS App Store–inspired squircle icon tiles */
|
||
.plugin-app-icon {
|
||
width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
|
||
display: inline-flex; align-items: center; justify-content: center;
|
||
color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 1px 2px rgba(0, 0, 0, 0.14);
|
||
}
|
||
.plugin-app-icon.is-md { width: 34px; height: 34px; border-radius: 9px; }
|
||
.plugin-app-icon.is-sm { width: 30px; height: 30px; border-radius: 8px; }
|
||
.plugin-app-icon-svg {
|
||
display: inline-block; flex-shrink: 0; background-color: currentColor;
|
||
-webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
|
||
-webkit-mask-position: center; mask-position: center;
|
||
-webkit-mask-size: contain; mask-size: contain;
|
||
}
|
||
.plugin-app-icon.tone-indigo { background: linear-gradient(145deg, #6e7cf0 0%, #4d5be0 100%); }
|
||
.plugin-app-icon.tone-purple { background: linear-gradient(145deg, #bf5af2 0%, #8944ab 100%); }
|
||
.plugin-app-icon.tone-sky { background: linear-gradient(145deg, #32a0ff 0%, #007aff 100%); }
|
||
.plugin-app-icon.tone-rose { background: linear-gradient(145deg, #ff6482 0%, #ff2d55 100%); }
|
||
.plugin-app-icon.tone-emerald { background: linear-gradient(145deg, #34c759 0%, #248a3d 100%); }
|
||
.plugin-app-icon.tone-amber { background: linear-gradient(145deg, #ffb340 0%, #ff9500 100%); }
|
||
.plugin-app-icon.tone-teal { background: linear-gradient(145deg, #40c8e0 0%, #00a3c4 100%); }
|
||
.plugin-app-icon.tone-slate { background: linear-gradient(145deg, #8e8e93 0%, #636366 100%); }
|
||
|
||
/* Plugin rows: grouped inset list, matching the installers page */
|
||
.plugins-page { max-width: 780px; }
|
||
.plugins-page-title { flex-direction: column; align-items: flex-start; gap: 1px; }
|
||
.plugins-page-title > span { color: var(--text-3); font-size: var(--fs-12); line-height: 1.45; }
|
||
.plugin-row { gap: 12px; min-height: 60px; }
|
||
.plugin-row-name { font-weight: var(--fw-medium); }
|
||
.plugin-row-desc {
|
||
color: var(--text-2); line-height: 1.45;
|
||
display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
|
||
}
|
||
.plugin-row-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
|
||
.plugin-row-alert { display: flex; align-items: center; gap: 5px; color: var(--warn-text); }
|
||
.plugin-row-locked { display: inline-flex; border-radius: 999px; }
|
||
.plugin-row-locked .switch { pointer-events: none; }
|
||
.plugin-trust {
|
||
display: inline-flex; align-items: center; gap: 4px; min-width: 0;
|
||
color: var(--text-2); border-radius: var(--r-sm); outline-offset: 2px;
|
||
}
|
||
.plugin-trust svg { flex-shrink: 0; }
|
||
.plugin-trust-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||
.plugin-trust.is-official svg { color: var(--accent); }
|
||
.plugin-trust.is-verified svg { color: var(--ok-text); }
|
||
.plugin-trust.is-dev svg { color: var(--accent-soft-text); }
|
||
.plugin-trust.is-community svg { color: var(--text-3); }
|
||
.plugins-empty { padding: 24px 4px; text-align: center; color: var(--text-3); font-size: var(--fs-13); }
|
||
.plugins-switch { display: flex; }
|
||
|
||
/* Plugin market: cache-first feed of cards in as many columns as fit */
|
||
.plugin-market { gap: 12px; }
|
||
.market-toolbar { display: flex; flex-direction: column; gap: 10px; }
|
||
.market-toolbar-top { display: flex; align-items: center; gap: 8px; }
|
||
.market-toolbar-top > :first-child { flex: 1; min-width: 0; }
|
||
.market-sort { flex-shrink: 0; min-width: 124px; }
|
||
.market-kinds { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
|
||
|
||
.market-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
|
||
.market-card {
|
||
display: flex; flex-direction: column; gap: 10px; min-width: 0;
|
||
padding: 14px 14px 15px; border-radius: var(--r-lg);
|
||
background: var(--surface-1); border: 1px solid var(--border); box-shadow: var(--shadow-card);
|
||
animation: market-card-in 320ms var(--ease-out) both;
|
||
animation-delay: calc(var(--i, 0) * 28ms);
|
||
}
|
||
@keyframes market-card-in { from { opacity: 0; transform: translateY(6px); } }
|
||
.market-card.is-muted .market-card-head > .plugin-app-icon,
|
||
.market-card.is-muted .market-card-titles,
|
||
.market-card.is-muted .market-card-desc { opacity: 0.55; }
|
||
.market-card-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
|
||
.market-card-titles { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
|
||
.market-card-name {
|
||
margin: 0; font-size: var(--fs-14); font-weight: var(--fw-strong); color: var(--text); line-height: 1.3;
|
||
overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
|
||
}
|
||
.market-card-byline {
|
||
display: flex; align-items: center; gap: 5px; min-width: 0;
|
||
font-size: var(--fs-12); color: var(--text-3); line-height: 1.4;
|
||
}
|
||
.market-card-dot { flex-shrink: 0; }
|
||
.market-card-version { flex-shrink: 0; font-variant-numeric: tabular-nums; }
|
||
.market-card-stat {
|
||
display: inline-flex; align-items: center; gap: 3px; flex-shrink: 0;
|
||
font-variant-numeric: tabular-nums;
|
||
}
|
||
.market-alpha-badge {
|
||
display: inline-flex; align-items: center; padding: 0 5px; height: 16px;
|
||
border-radius: 4px; font-size: 10px; font-weight: 600; flex-shrink: 0;
|
||
color: var(--amber); background: color-mix(in srgb, var(--amber) 14%, transparent);
|
||
}
|
||
.plugin-title-link { color: inherit; text-decoration: none; }
|
||
.plugin-title-link:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
|
||
.market-card-action { flex-shrink: 0; }
|
||
.market-card-action .btn.market-btn { height: 28px; padding: 0 12px; font-size: var(--fs-12); }
|
||
.market-card-desc {
|
||
margin: 0; font-size: var(--fs-13); color: var(--text-2); line-height: 1.5;
|
||
min-height: calc(2 * 1.5em);
|
||
display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
|
||
}
|
||
|
||
.market-progress {
|
||
position: relative; overflow: hidden; isolation: isolate;
|
||
width: 84px; height: 28px; border-radius: var(--r-md);
|
||
background: var(--surface-active);
|
||
display: inline-flex; align-items: center; justify-content: center;
|
||
}
|
||
.market-progress-fill {
|
||
position: absolute; inset: 0; z-index: -1; width: 100%;
|
||
background: var(--accent-soft); transform-origin: left center;
|
||
transition: transform 160ms linear;
|
||
}
|
||
.market-progress.is-indeterminate .market-progress-fill {
|
||
inset: 0 auto 0 0; width: 40%; animation: market-progress-sweep 1.1s var(--ease-in-out) infinite;
|
||
}
|
||
@keyframes market-progress-sweep { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
|
||
.market-progress-text {
|
||
font-size: var(--fs-12); font-weight: var(--fw-medium); color: var(--accent-soft-text);
|
||
font-variant-numeric: tabular-nums;
|
||
}
|
||
|
||
.market-loader { padding: 56px 0 48px; }
|
||
.market-sentinel { height: 1px; }
|
||
.market-feed-end { padding: 4px 0 8px; text-align: center; color: var(--text-3); font-size: var(--fs-12); }
|
||
|
||
/* Wordmark written stroke by stroke (WordmarkLoader) */
|
||
.wordmark-loader { display: flex; flex-direction: column; align-items: center; gap: 14px; }
|
||
.wordmark-loader-svg { display: block; overflow: visible; }
|
||
.wordmark-loader-ink { stroke: var(--text); }
|
||
.wordmark-loader-dash { stroke: var(--text-3); }
|
||
.wordmark-loader-dot { fill: #ff7a9a; }
|
||
.wordmark-loader-label { font-size: var(--fs-12); color: var(--text-3); }
|
||
@media (prefers-reduced-motion: reduce) {
|
||
.wordmark-loader-svg { animation: wordmark-pulse 1.6s var(--ease-in-out) infinite alternate; }
|
||
.market-card { animation: none; }
|
||
}
|
||
@keyframes wordmark-pulse { from { opacity: 0.35; } to { opacity: 1; } }
|
||
|
||
/* What a plugin can do, shown before enabling it */
|
||
.plugin-enable-lead { margin: 0; font-size: var(--fs-13); color: var(--text-2); }
|
||
.plugin-risk-list {
|
||
margin: 0; padding: 4px 0; list-style: none;
|
||
background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--r-lg);
|
||
}
|
||
.plugin-risk {
|
||
display: flex; align-items: center; gap: 10px; padding: 8px 14px;
|
||
font-size: var(--fs-13); color: var(--text);
|
||
}
|
||
.plugin-risk-icon {
|
||
width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0;
|
||
display: inline-flex; align-items: center; justify-content: center;
|
||
background: var(--surface-active); color: var(--text-2);
|
||
}
|
||
.plugin-risk.is-high .plugin-risk-icon { background: var(--warn-soft); color: var(--warn-text); }
|
||
.plugin-scan-section { display: flex; flex-direction: column; gap: 6px; }
|
||
.plugin-scan-section > .list { flex-shrink: 0; }
|
||
.plugin-scan-section-title { font-size: var(--fs-12); font-weight: var(--fw-strong); color: var(--text-2); }
|
||
.plugin-scan-section-title.is-danger { color: var(--danger-text); }
|
||
.plugin-scan-examples { margin-top: 4px; font-size: var(--fs-11); color: var(--text-2); display: flex; flex-direction: column; gap: 2px; }
|
||
|
||
/* Visual theme hero card with live miniature window preview */
|
||
.theme-hero-card {
|
||
display: flex; align-items: stretch; gap: 16px; padding: 14px 16px;
|
||
border-radius: var(--r-lg); background: var(--surface-1);
|
||
border: 1px solid var(--border); box-shadow: var(--shadow-card);
|
||
}
|
||
@media (max-width: 720px) {
|
||
.theme-hero-card { flex-direction: column; }
|
||
}
|
||
.theme-mini-preview {
|
||
width: 152px; min-height: 92px; flex-shrink: 0; border-radius: var(--r-md);
|
||
border: 1px solid var(--border-strong); overflow: hidden;
|
||
display: flex; flex-direction: column;
|
||
}
|
||
.theme-mini-chrome {
|
||
height: 18px; padding: 0 7px; display: flex; align-items: center; gap: 4px;
|
||
background: var(--surface-chrome); border-bottom: 1px solid var(--border);
|
||
}
|
||
.theme-mini-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--border-strong); }
|
||
.theme-mini-body { flex: 1; display: flex; }
|
||
.theme-mini-sidebar {
|
||
width: 44px; padding: 7px 6px; display: flex; flex-direction: column; gap: 5px;
|
||
background: var(--surface-sidebar); border-right: 1px solid var(--border);
|
||
}
|
||
.theme-mini-pill { height: 7px; border-radius: 3px; opacity: 0.9; }
|
||
.theme-mini-line { height: 5px; border-radius: 3px; background: var(--border-strong); opacity: 0.65; }
|
||
.theme-mini-line.short { width: 70%; }
|
||
.theme-mini-main {
|
||
flex: 1; padding: 9px 10px; display: flex; flex-direction: column; justify-content: space-between; gap: 8px;
|
||
}
|
||
.theme-mini-bar { height: 10px; width: 68%; border-radius: 4px; background: var(--border-strong); opacity: 0.5; }
|
||
.theme-mini-cta { height: 14px; width: 42px; border-radius: 5px; align-self: flex-end; }
|
||
.theme-hero-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; justify-content: space-between; }
|
||
.theme-hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; }
|
||
.theme-hero-kicker {
|
||
display: inline-flex; align-items: center; gap: 4px;
|
||
font-size: var(--fs-11); font-weight: var(--fw-medium); color: var(--accent-soft-text);
|
||
margin-bottom: 2px;
|
||
}
|
||
.theme-hero-title { font-size: var(--fs-16); font-weight: var(--fw-strong); color: var(--text); }
|
||
.theme-scheme-strip { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
|
||
.theme-scheme-chips { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
|
||
|
||
/* ErrorBoundary recovery surface (tokens-backed for both Light and Dark themes) */
|
||
.error-boundary {
|
||
display: flex; align-items: center; justify-content: center;
|
||
height: 100%; padding: var(--sp-6);
|
||
background: var(--surface-canvas); color: var(--text); font-family: var(--font-sans);
|
||
}
|
||
.error-boundary-card {
|
||
max-width: 560px; width: 100%; padding: var(--sp-5);
|
||
border-radius: var(--r-xl); border: 1px solid var(--border);
|
||
background: var(--surface-1); box-shadow: var(--shadow-card);
|
||
display: flex; flex-direction: column; gap: var(--sp-3);
|
||
}
|
||
.error-boundary-title { margin: 0; font-size: var(--fs-16); font-weight: var(--fw-strong); }
|
||
.error-boundary-pre {
|
||
margin: 0; padding: 10px 12px; border-radius: var(--r-md);
|
||
font-family: var(--font-mono); font-size: var(--fs-12); color: var(--text-code);
|
||
max-height: 180px; overflow: auto;
|
||
background: var(--surface-0); border: 1px solid var(--border);
|
||
white-space: pre-wrap; word-break: break-word;
|
||
text-rendering: auto; text-autospace: no-autospace;
|
||
}
|
||
.error-boundary-actions { display: flex; gap: var(--sp-2); justify-content: flex-end; }
|
||
|
||
/* Responsive / narrow-window / high-DPI & mobile drawer adaptations */
|
||
@media (max-width: 1040px) {
|
||
.logs:has(.logs-body-wrap) .status-telemetry .status-metric:not(.status-issue) {
|
||
display: none;
|
||
}
|
||
}
|
||
|
||
@media (max-width: 768px) {
|
||
.sidebar-backdrop {
|
||
display: block; position: absolute;
|
||
inset: 0;
|
||
background: var(--scrim); z-index: 31;
|
||
}
|
||
.sidebar-wrap {
|
||
position: absolute; z-index: 32;
|
||
inset-block: 0; inset-inline-start: 0;
|
||
box-shadow: var(--shadow-overlay);
|
||
}
|
||
.workspace.sidebar-hidden .sidebar-wrap { pointer-events: none; }
|
||
.scroll { padding: 14px 16px 20px; }
|
||
.dialog { max-width: calc(100vw - 16px); max-height: calc(100vh - 32px); }
|
||
.dialog.wizard-dialog { height: min(660px, calc(100vh - 32px)); }
|
||
.settings-split { flex-direction: column; max-height: none; }
|
||
.settings-nav {
|
||
width: 100%; flex-direction: row; overflow-x: auto; overflow-y: hidden;
|
||
border-inline-end: none; border-bottom: 1px solid var(--border);
|
||
padding: 8px 12px; scrollbar-width: none;
|
||
}
|
||
.settings-nav::-webkit-scrollbar { display: none; }
|
||
.settings-nav .nav-item { width: auto; flex-shrink: 0; }
|
||
.settings-pane { padding: 16px; }
|
||
}
|
||
|
||
@container (max-width: 520px) {
|
||
.row, .row-head, .hotkey-head, .srow-head { flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); }
|
||
.row-main, .srow-text { flex: 1 1 220px; }
|
||
.row-right, .srow-ctrl { flex-wrap: wrap; max-width: 100%; min-width: 0; }
|
||
}
|
||
|
||
@media (max-width: 640px) {
|
||
.source-cards, .review-groups { grid-template-columns: 1fr; }
|
||
.review-group:last-child .review-rows { grid-template-columns: max-content 1fr; }
|
||
.vm-spec-card { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px 14px; }
|
||
.affinity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
||
.conn-row, .srow-head, .row, .row-head, .hotkey-head, .page-head { flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); }
|
||
.row-main, .srow-text { flex: 1 1 220px; }
|
||
.conn-ctrl, .row-right, .srow-ctrl { flex-wrap: wrap; max-width: 100%; min-width: 0; }
|
||
.plugin-search-wrap, .plugin-search { width: 100%; }
|
||
}
|
||
|
||
}
|
||
|
||
/* Host usability invariants locked with !important in earliest layer so themes
|
||
cannot override them even with !important. */
|
||
@layer host-guard {
|
||
.rg-p-titlebar { --wails-draggable: drag !important; }
|
||
:focus-visible:not(.dialog):not(.menu) { box-shadow: var(--focus-ring) !important; }
|
||
.icon-btn, .win-btn { min-width: 28px !important; min-height: 28px !important; }
|
||
/* Layers and decorations never take input, whatever a theme says. */
|
||
.rg-layer, .rg-layer *, .rg-decoration { pointer-events: none !important; }
|
||
}
|
||
|
||
.bridge-adapters { display: grid; gap: var(--space-3, 12px); }
|
||
.bridge-adapter { display: flex; align-items: flex-start; gap: var(--space-2, 8px); padding-block: var(--space-2, 8px); cursor: pointer; }
|
||
.bridge-adapter > span { display: grid; gap: var(--space-1, 4px); min-width: 0; overflow-wrap: anywhere; }
|
||
.bridge-adapter input { flex: 0 0 auto; margin-block-start: var(--space-1, 4px); accent-color: var(--accent); }
|
||
.bridge-adapter:has(input:disabled) { opacity: .55; cursor: default; }
|
||
.network-error-details { margin-block-start: 8px; }
|
||
.network-error-details pre { margin-block: 8px 0; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; }
|