Files
prism/src/renderer/styles/globals.css
T
2026-04-01 03:04:12 -04:00

1828 lines
37 KiB
CSS

@import 'tailwindcss';
:root {
color-scheme: dark;
--bg-primary: #000000;
--bg-secondary: #050505;
--bg-tertiary: #0a0a0a;
--panel-surface: rgba(8, 11, 16, 0.92);
--panel-surface-soft: rgba(12, 16, 22, 0.84);
--panel-outline: rgba(255, 255, 255, 0.09);
--panel-outline-strong: rgba(255, 255, 255, 0.16);
--panel-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
--glass-bg: rgba(255, 255, 255, 0.03);
--glass-border: rgba(255, 255, 255, 0.08);
--glass-highlight: rgba(255, 255, 255, 0.045);
--glass-highlight-strong: rgba(255, 255, 255, 0.14);
--text-primary: rgba(255, 255, 255, 0.95);
--text-secondary: rgba(255, 255, 255, 0.62);
--text-tertiary: rgba(255, 255, 255, 0.42);
--text-muted: rgba(255, 255, 255, 0.3);
--danger: #f87171;
--warning: #ffbf00;
--success: #22c55e;
--accent: #38bdf8;
--accent-hover: #7dd3fc;
--accent-glow: rgba(56, 189, 248, 0.3);
--accent-rgb: 56, 189, 248;
--toolbar-bg: rgba(0, 0, 0, 0.74);
--settings-bg-top: rgba(8, 10, 14, 0.94);
--settings-bg-bottom: rgba(4, 6, 9, 0.98);
--bottom-bar-bg: rgba(2, 4, 7, 0.98);
--menu-bg: rgba(8, 11, 16, 0.96);
--menu-border: rgba(255, 255, 255, 0.1);
--control-bg: rgba(255, 255, 255, 0.03);
--control-bg-hover: rgba(255, 255, 255, 0.06);
--control-bg-active: rgba(var(--accent-rgb), 0.12);
--control-border: rgba(255, 255, 255, 0.08);
--control-border-active: rgba(var(--accent-rgb), 0.28);
--control-text: rgba(255, 255, 255, 0.92);
--input-bg: rgba(10, 14, 20, 0.96);
--input-bg-focus: rgba(12, 17, 24, 0.98);
--input-border: rgba(255, 255, 255, 0.09);
--input-border-focus: rgba(var(--accent-rgb), 0.26);
--option-bg: rgba(8, 11, 16, 0.96);
--option-text: rgba(245, 247, 250, 1);
--slider-track: rgba(255, 255, 255, 0.08);
--slider-fill: rgba(56, 189, 248, 0.82);
--slider-thumb: rgba(125, 211, 252, 1);
--divider: rgba(255, 255, 255, 0.08);
--scope-bg: #000000;
--scope-guides: rgba(255, 255, 255, 0.1);
--scope-overlay-bg: rgba(8, 12, 18, 0.88);
--scope-overlay-text: rgba(255, 255, 255, 0.76);
--scope-overlay-border: rgba(255, 255, 255, 0.12);
--scope-resize-handle: rgba(255, 255, 255, 0.12);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html,
body,
#root {
width: 100%;
height: 100%;
overflow: hidden;
background: var(--bg-primary);
color: var(--text-primary);
font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
-webkit-font-smoothing: antialiased;
}
button,
input,
select {
font: inherit;
}
button,
select {
appearance: none;
-webkit-appearance: none;
}
.prism-app {
width: 100vw;
height: 100vh;
display: flex;
flex-direction: column;
position: relative;
}
.window-resize-overlay {
position: absolute;
inset: 0;
z-index: 40;
pointer-events: none;
}
.window-resize-overlay__handle {
position: absolute;
pointer-events: auto;
-webkit-app-region: no-drag;
}
.window-resize-overlay__handle--n,
.window-resize-overlay__handle--s {
left: 12px;
right: 12px;
height: 4px;
}
.window-resize-overlay__handle--e,
.window-resize-overlay__handle--w {
top: 12px;
bottom: 12px;
width: 4px;
}
.window-resize-overlay__handle--n {
top: 0;
cursor: ns-resize;
}
.window-resize-overlay__handle--s {
bottom: 0;
cursor: ns-resize;
}
.window-resize-overlay__handle--e {
right: 0;
cursor: ew-resize;
}
.window-resize-overlay__handle--w {
left: 0;
cursor: ew-resize;
}
.window-resize-overlay__handle--ne,
.window-resize-overlay__handle--nw,
.window-resize-overlay__handle--se,
.window-resize-overlay__handle--sw {
width: 12px;
height: 12px;
}
.window-resize-overlay__handle--ne {
top: 0;
right: 0;
cursor: nesw-resize;
}
.window-resize-overlay__handle--nw {
top: 0;
left: 0;
cursor: nwse-resize;
}
.window-resize-overlay__handle--se {
right: 0;
bottom: 0;
cursor: nwse-resize;
}
.window-resize-overlay__handle--sw {
left: 0;
bottom: 0;
cursor: nesw-resize;
}
.prism-toolbar-layer {
position: absolute;
top: 0;
left: 0;
right: 0;
z-index: 10;
opacity: 0;
pointer-events: none;
transition: opacity 150ms ease;
}
.prism-toolbar-layer.is-visible {
opacity: 1;
pointer-events: auto;
}
.prism-strip-region {
flex: 1;
min-height: 0;
}
.prism-settings-region {
flex-shrink: 0;
display: flex;
flex-direction: column;
overflow: hidden;
background:
linear-gradient(180deg, var(--settings-bg-top), var(--settings-bg-bottom)),
var(--panel-surface-soft);
border-top: 1px solid var(--divider);
box-shadow: 0 -16px 34px rgba(0, 0, 0, 0.34);
}
.prism-settings-region.is-hidden {
visibility: hidden;
pointer-events: none;
border-top-color: transparent;
box-shadow: none;
}
.app-banner-layer {
position: absolute;
top: 10px;
left: 12px;
right: 12px;
z-index: 18;
pointer-events: none;
display: flex;
justify-content: center;
}
.app-banner {
width: min(520px, 100%);
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 10px 12px;
border-radius: 14px;
border: 1px solid var(--control-border);
background: linear-gradient(180deg, var(--panel-surface), var(--panel-surface-soft));
box-shadow: var(--panel-shadow);
pointer-events: auto;
}
.app-banner--error {
border-color: rgba(248, 113, 113, 0.32);
}
.app-banner--info {
border-color: rgba(var(--accent-rgb), 0.24);
}
.app-banner__message {
flex: 1;
min-width: 0;
color: var(--text-primary);
font-size: 12px;
line-height: 1.45;
}
.app-banner__actions {
display: inline-flex;
align-items: center;
gap: 6px;
flex-shrink: 0;
}
.app-banner__action,
.app-banner__dismiss {
min-height: 30px;
padding: 0 12px;
border-radius: 999px;
border: 1px solid var(--control-border);
background: var(--control-bg);
color: var(--text-secondary);
font-size: 11px;
cursor: pointer;
transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}
.app-banner__action:hover,
.app-banner__dismiss:hover,
.app-banner__action:focus-visible,
.app-banner__dismiss:focus-visible {
outline: none;
background: var(--control-bg-hover);
border-color: var(--control-border-active);
color: var(--text-primary);
}
.toolbar {
display: flex;
align-items: center;
width: 100%;
min-height: 38px;
padding: 4px 10px 0;
gap: 10px;
background: var(--toolbar-bg);
backdrop-filter: blur(16px) saturate(1.05);
-webkit-backdrop-filter: blur(16px) saturate(1.05);
}
.toolbar__grab {
display: inline-flex;
align-items: center;
justify-content: center;
width: 20px;
height: 28px;
padding: 0;
border: 0;
background: transparent;
color: var(--text-muted);
cursor: grab;
flex-shrink: 0;
-webkit-app-region: no-drag;
}
.toolbar__grab:active {
cursor: grabbing;
}
.toolbar__grab svg {
width: 14px;
height: 14px;
}
.toolbar__brand {
display: inline-flex;
align-items: center;
gap: 8px;
min-width: 86px;
min-height: 28px;
padding: 0 10px;
border-radius: 999px;
border: 1px solid var(--control-border-active);
background: linear-gradient(180deg, var(--control-bg-active), var(--panel-surface));
box-shadow: inset 0 1px 0 var(--glass-highlight);
}
.toolbar__brand-mark {
width: 6px;
height: 6px;
border-radius: 999px;
background: rgba(var(--accent-rgb), 0.92);
box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.32);
}
.toolbar__brand-text,
.toolbar__chip,
.toolbar__icon-button,
.settings-section-title,
.settings-scope-section__title,
.settings-scope-section__summary,
.settings-control__label,
.settings-chip,
.settings-status-pill,
.settings-panel__close {
font-family: 'JetBrains Mono', monospace;
letter-spacing: 0.12em;
text-transform: uppercase;
}
.toolbar__brand-text {
color: var(--text-secondary);
font-size: 10px;
}
.toolbar__profile {
position: relative;
display: flex;
align-items: center;
}
.toolbar__profile-button {
display: flex;
align-items: center;
gap: 5px;
min-height: 28px;
padding: 0 10px;
border-radius: 999px;
border: 1px solid var(--control-border);
background: var(--control-bg);
box-shadow: inset 0 1px 0 var(--glass-highlight);
color: var(--text-secondary);
font-family: 'JetBrains Mono', monospace;
font-size: 9px;
letter-spacing: 0.12em;
text-transform: uppercase;
cursor: pointer;
outline: none;
transition: color 120ms ease, border-color 120ms ease;
}
.toolbar__profile-button:hover,
.toolbar__profile-button.is-active {
color: var(--control-text);
border-color: var(--control-border-active);
background: var(--control-bg-active);
}
.toolbar__profile-name {
max-width: 120px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.toolbar__profile-dirty-dot {
width: 6px;
height: 6px;
border-radius: 999px;
background: var(--warning);
box-shadow: 0 0 8px var(--warning);
flex-shrink: 0;
}
.toolbar__spacer {
flex: 1;
min-width: 0;
height: 100%;
}
.toolbar__reposition-wrap {
position: relative;
}
.toolbar__reposition-menu {
position: absolute;
top: 100%;
right: 0;
margin-top: 4px;
display: flex;
flex-direction: column;
background: var(--menu-bg);
border: 1px solid var(--menu-border);
border-radius: 8px;
overflow: hidden;
z-index: 20;
box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
}
.toolbar__reposition-option {
padding: 6px 16px;
background: transparent;
border: none;
color: var(--text-secondary);
font-family: 'JetBrains Mono', monospace;
font-size: 9px;
letter-spacing: 0.12em;
text-transform: uppercase;
cursor: pointer;
white-space: nowrap;
transition: color 120ms ease, background-color 120ms ease;
}
.toolbar__reposition-option:hover {
color: var(--text-primary);
background: var(--control-bg-hover);
}
.toolbar__chip {
min-height: 28px;
padding: 0 9px;
border-radius: 999px;
border: 1px solid var(--control-border);
background: var(--control-bg);
box-shadow: inset 0 1px 0 var(--glass-highlight);
color: var(--text-tertiary);
font-size: 9px;
cursor: pointer;
transition:
color 120ms ease,
border-color 120ms ease,
background-color 120ms ease,
transform 120ms ease;
}
.toolbar__chip:hover {
color: var(--control-text);
border-color: var(--control-border-active);
background: var(--control-bg-hover);
}
.toolbar__chip.is-active {
color: var(--accent);
border-color: var(--control-border-active);
background: var(--control-bg-active);
box-shadow: inset 0 0 0 1px var(--glass-highlight);
}
.toolbar__actions {
display: flex;
align-items: center;
gap: 6px;
}
.toolbar__icon-button {
width: 28px;
height: 28px;
border-radius: 999px;
border: 1px solid var(--control-border);
background: var(--control-bg);
box-shadow: inset 0 1px 0 var(--glass-highlight);
color: var(--text-secondary);
display: inline-flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition:
color 120ms ease,
border-color 120ms ease,
background-color 120ms ease,
transform 120ms ease;
}
.toolbar__icon-button svg {
width: 14px;
height: 14px;
}
.toolbar__icon-button:hover {
color: var(--control-text);
border-color: var(--control-border-active);
background: var(--control-bg-hover);
transform: translateY(-1px);
}
.toolbar__icon-button.is-active {
color: var(--accent);
border-color: var(--control-border-active);
background: var(--control-bg-active);
}
.toolbar__icon-button--danger:hover {
color: var(--danger);
border-color: var(--danger);
background: var(--control-bg-hover);
}
.scope-strip {
position: relative;
width: 100%;
height: 100%;
background-color: var(--scope-bg);
}
.scope-strip__grid {
display: grid;
width: 100%;
height: 100%;
}
.scope-strip__cell {
min-width: 0;
height: 100%;
position: relative;
overflow: hidden;
}
.scope-strip__reorder-controls {
position: absolute;
bottom: 8px;
left: 8px;
z-index: 3;
display: flex;
gap: 4px;
opacity: 0;
transform: translateY(-2px);
transition: opacity 120ms ease, transform 120ms ease;
pointer-events: none;
}
.scope-strip__reorder-button,
.scope-strip__popout-button {
width: 28px;
height: 28px;
padding: 0;
border-radius: 999px;
border: 1px solid var(--scope-overlay-border);
background: var(--scope-overlay-bg);
color: var(--scope-overlay-text);
font-family: 'JetBrains Mono', monospace;
font-size: 12px;
cursor: pointer;
transition: opacity 120ms ease, transform 120ms ease, border-color 120ms ease, color 120ms ease;
backdrop-filter: blur(14px) saturate(1.04);
-webkit-backdrop-filter: blur(14px) saturate(1.04);
}
.scope-strip__reorder-button {
display: inline-flex;
align-items: center;
justify-content: center;
}
.scope-strip__popout-button {
position: absolute;
bottom: 8px;
right: 8px;
z-index: 3;
opacity: 0;
transform: translateY(-2px);
pointer-events: none;
}
.scope-strip__cell:hover .scope-strip__reorder-controls,
.scope-strip__cell:focus-within .scope-strip__reorder-controls,
.scope-strip__cell:hover .scope-strip__popout-button,
.scope-strip__cell:focus-within .scope-strip__popout-button,
.scope-strip__popout-button:focus-visible {
opacity: 1;
transform: translateY(0);
pointer-events: auto;
}
.scope-strip__reorder-button:hover:not(:disabled),
.scope-strip__reorder-button:focus-visible,
.scope-strip__popout-button:hover,
.scope-strip__popout-button:focus-visible {
color: var(--accent);
border-color: rgba(var(--accent-rgb), 0.28);
}
.scope-strip__reorder-button:focus-visible,
.scope-strip__popout-button:focus-visible {
outline: none;
}
.scope-strip__reorder-button:disabled {
color: var(--text-muted);
border-color: transparent;
cursor: default;
}
.scope-strip__reorder-icon,
.scope-strip__popout-icon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
}
.scope-strip__resize-handle {
position: absolute;
top: 0;
bottom: 0;
width: 12px;
transform: translateX(-50%);
padding: 0;
border: 0;
background: transparent;
cursor: col-resize;
display: flex;
align-items: stretch;
justify-content: center;
z-index: 2;
}
.scope-strip__resize-handle-grip {
width: 1px;
height: 100%;
background: linear-gradient(180deg, transparent, var(--scope-resize-handle), transparent);
}
.astra-scope {
--astra-cover-size: clamp(56px, min(34cqi, 72cqb), 220px);
--astra-card-gap: clamp(8px, min(3cqi, 3cqb), 14px);
display: flex;
width: 100%;
height: 100%;
min-height: 0;
overflow: auto;
background: var(--astra-bg);
color: var(--astra-text);
container-type: size;
scrollbar-width: none;
}
.astra-scope::-webkit-scrollbar {
display: none;
}
.astra-scope--empty {
align-items: center;
justify-content: center;
padding: 12px;
}
.astra-scope__card {
flex: 1;
display: grid;
grid-template-columns: var(--astra-cover-size) minmax(0, 1fr);
align-items: center;
gap: var(--astra-card-gap);
width: 100%;
height: 100%;
padding: clamp(10px, 3cqi, 12px);
}
.astra-scope__card--no-cover {
grid-template-columns: minmax(0, 1fr);
}
.astra-scope__cover-shell {
display: flex;
align-items: center;
justify-content: flex-start;
align-self: center;
justify-self: start;
width: var(--astra-cover-size);
min-width: 0;
}
.astra-scope__cover {
width: 100%;
aspect-ratio: 1;
border-radius: 12px;
border: 1px solid var(--astra-border);
object-fit: cover;
background: var(--astra-surface);
}
.astra-scope__cover--fallback {
display: flex;
align-items: center;
justify-content: center;
color: var(--astra-accent);
font-family: 'JetBrains Mono', monospace;
font-size: clamp(20px, 4vw, 38px);
letter-spacing: 0.14em;
text-transform: uppercase;
background: var(--astra-surface);
}
.astra-scope__body {
width: 100%;
min-height: 0;
min-width: 0;
display: flex;
flex-direction: column;
justify-content: center;
gap: clamp(8px, min(2.4cqi, 2.4cqb), 10px);
}
.astra-scope__meta {
min-width: 0;
display: flex;
flex-direction: column;
gap: 4px;
}
.astra-scope__title {
min-width: 0;
color: var(--astra-text);
font-size: clamp(14px, 2vw, 20px);
font-weight: 600;
line-height: 1.2;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.astra-scope__artist {
min-width: 0;
color: var(--astra-subtext);
font-size: 12px;
line-height: 1.3;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.astra-scope__transport {
min-width: 0;
display: flex;
flex-direction: column;
gap: 8px;
}
.astra-scope__progress {
width: 100%;
height: 7px;
overflow: hidden;
border-radius: 999px;
background: var(--astra-progress-track);
}
.astra-scope__progress-fill {
height: 100%;
border-radius: inherit;
background: var(--astra-progress-fill);
}
.astra-scope__time {
display: inline-flex;
align-items: center;
gap: 6px;
color: var(--astra-subtext);
font-family: 'JetBrains Mono', monospace;
font-size: 11px;
letter-spacing: 0.08em;
}
.astra-scope__controls {
display: flex;
align-items: center;
gap: 8px;
min-width: 0;
flex-wrap: nowrap;
}
.astra-scope__control {
flex: 0 0 auto;
min-width: 36px;
height: 32px;
padding: 0 12px;
border-radius: 999px;
border: 1px solid var(--control-border);
background: var(--control-bg);
color: var(--text-secondary);
font-family: 'JetBrains Mono', monospace;
font-size: 11px;
letter-spacing: 0.08em;
cursor: pointer;
transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}
.astra-scope__control--primary {
flex: 1 1 72px;
min-width: 72px;
}
.astra-scope__control:hover:not(:disabled),
.astra-scope__control:focus-visible {
background: var(--control-bg-hover);
border-color: var(--control-border-active);
color: var(--text-primary);
outline: none;
}
.astra-scope__control:active:not(:disabled) {
background: var(--control-bg-active);
}
.astra-scope__control:disabled {
opacity: 0.45;
cursor: default;
}
.astra-scope__status,
.astra-scope__placeholder {
display: inline-flex;
align-items: center;
align-self: flex-start;
min-height: 28px;
padding: 0 10px;
border-radius: 999px;
border: 1px solid var(--astra-border);
color: var(--astra-subtext);
background: var(--astra-surface);
font-family: 'JetBrains Mono', monospace;
font-size: 10px;
letter-spacing: 0.08em;
text-transform: uppercase;
}
.astra-scope__status.is-ok {
color: var(--astra-status-ok);
}
.astra-scope__status.is-error {
color: var(--astra-status-error);
border-color: var(--astra-status-error);
}
.astra-scope__status-actions {
display: flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
}
@container (max-width: 420px) {
.astra-scope {
--astra-cover-size: clamp(44px, min(28cqi, 60cqb), 132px);
--astra-card-gap: 8px;
}
.astra-scope__title {
font-size: 14px;
}
.astra-scope__artist,
.astra-scope__time,
.astra-scope__control {
font-size: 11px;
}
.astra-scope__control {
padding: 0 10px;
}
}
@container (max-width: 260px) {
.astra-scope {
--astra-cover-size: 40px;
--astra-card-gap: 8px;
}
.astra-scope__controls {
flex-wrap: wrap;
}
}
@container (max-height: 180px) {
.astra-scope {
--astra-cover-size: clamp(40px, min(22cqi, 46cqb), 88px);
--astra-card-gap: 8px;
}
.astra-scope__card {
padding: 8px;
}
.astra-scope__control {
height: 30px;
}
}
.settings-panel {
background: linear-gradient(180deg, var(--settings-bg-top), var(--settings-bg-bottom));
display: flex;
flex-direction: column;
gap: 10px;
overflow-y: hidden;
overflow-x: hidden;
flex: 1;
min-height: 0;
position: relative;
padding: 10px 0 0;
flex-shrink: 1;
}
.settings-panel__utility-row {
display: flex;
align-items: flex-start;
gap: 14px 18px;
flex-wrap: wrap;
padding: 0 14px 10px;
}
.settings-utility-section {
display: flex;
flex-wrap: wrap;
align-items: flex-end;
gap: 10px 14px;
min-width: 0;
}
.settings-utility-section--source {
flex: 1 1 360px;
}
.settings-utility-section--theme {
flex: 1 1 300px;
}
.settings-panel__scope-track {
display: grid;
width: 100%;
min-width: 0;
gap: 0;
padding: 0 0 4px;
align-items: stretch;
}
.settings-section-title {
width: 100%;
color: var(--text-secondary);
font-size: 10px;
}
.settings-scope-section {
min-width: 0;
display: flex;
flex-direction: column;
gap: 12px;
padding: 0 16px 14px;
border-left: 1px solid var(--divider);
}
.settings-scope-section:first-child {
border-left: 0;
}
.settings-scope-section__header {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 12px;
padding: 10px 0 12px;
min-height: 42px;
border-bottom: 1px solid var(--divider);
}
.settings-scope-section__title {
color: var(--accent);
font-size: 10px;
line-height: 1.3;
}
.settings-scope-section__summary {
flex: 1;
color: var(--text-tertiary);
font-size: 9px;
letter-spacing: 0.08em;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
text-align: right;
}
.settings-scope-section__controls {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
gap: 12px 14px;
align-content: start;
}
.settings-control {
display: flex;
flex-direction: column;
gap: 6px;
min-width: 0;
}
.settings-control--full,
.settings-control--stack {
grid-column: 1 / -1;
}
.settings-control--stack {
gap: 6px;
}
.settings-control.is-disabled {
opacity: 0.46;
}
.settings-control__label {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
color: var(--text-secondary);
font-size: 9px;
}
.settings-control__value {
color: var(--text-primary);
letter-spacing: 0.08em;
}
.settings-control__select {
position: relative;
display: block;
width: 100%;
min-height: 34px;
border-radius: 10px;
border: 1px solid var(--control-border);
background: var(--control-bg);
box-shadow: inset 0 1px 0 var(--glass-highlight);
color: var(--control-text);
font-size: 11px;
transition: border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease, color 140ms ease;
}
.settings-control__select:hover,
.settings-control__select:focus-within {
border-color: var(--control-border-active);
background: var(--control-bg-hover);
color: var(--control-text);
}
.themed-select__control {
display: block;
width: 100%;
min-width: 0;
min-height: 32px;
padding: 0 36px 0 12px;
border: 0;
border-radius: inherit;
box-sizing: border-box;
background: transparent;
color: inherit;
font: inherit;
font-size: 11px;
line-height: 1.2;
outline: none;
cursor: pointer;
appearance: none;
-webkit-appearance: none;
-moz-appearance: none;
}
.themed-select__control option,
.themed-select__control optgroup {
background: var(--option-bg);
color: var(--option-text);
}
.themed-select__control optgroup {
font-weight: 600;
}
.themed-select__chevron {
position: absolute;
top: 50%;
right: 12px;
width: 14px;
height: 14px;
display: inline-flex;
align-items: center;
justify-content: center;
color: var(--text-tertiary);
pointer-events: none;
transform: translateY(-50%);
transition: color 140ms ease;
}
.themed-select__chevron svg {
width: 14px;
height: 14px;
}
.settings-control__select:hover .themed-select__chevron,
.settings-control__select:focus-within .themed-select__chevron {
color: var(--accent);
}
.settings-control__range {
width: 100%;
--range-percent: 50%;
height: 22px;
margin: 0;
appearance: none;
background: transparent;
cursor: ew-resize;
}
.settings-control__range::-webkit-slider-runnable-track {
height: 6px;
border-radius: 999px;
border: 1px solid var(--control-border);
background:
linear-gradient(90deg, var(--slider-fill), var(--slider-fill)) 0 / var(--range-percent) 100% no-repeat,
linear-gradient(180deg, var(--slider-track), var(--glass-highlight));
box-shadow:
inset 0 1px 0 var(--glass-highlight),
0 0 0 1px rgba(0, 0, 0, 0.22);
}
.settings-control__range::-webkit-slider-thumb {
appearance: none;
width: 12px;
height: 16px;
margin-top: -6px;
border-radius: 5px;
border: 1px solid var(--control-border-active);
background: var(--slider-thumb);
box-shadow:
inset 0 1px 0 var(--glass-highlight-strong),
0 0 0 2px rgba(var(--accent-rgb), 0.14),
0 3px 8px rgba(0, 0, 0, 0.35);
}
.settings-control__range::-moz-range-track {
height: 6px;
border-radius: 999px;
border: 1px solid var(--control-border);
background: linear-gradient(180deg, var(--slider-track), var(--glass-highlight));
box-shadow:
inset 0 1px 0 var(--glass-highlight),
0 0 0 1px rgba(0, 0, 0, 0.22);
}
.settings-control__range::-moz-range-thumb {
width: 12px;
height: 16px;
border-radius: 5px;
border: 1px solid var(--control-border-active);
background: var(--slider-thumb);
box-shadow:
inset 0 1px 0 var(--glass-highlight-strong),
0 0 0 2px rgba(var(--accent-rgb), 0.14),
0 3px 8px rgba(0, 0, 0, 0.35);
}
.settings-control__range::-moz-range-progress {
height: 6px;
border-radius: 999px;
border: 1px solid var(--glass-highlight);
background: linear-gradient(90deg, var(--slider-fill), var(--slider-fill));
}
.settings-control__range:hover::-webkit-slider-runnable-track,
.settings-control__range:focus-visible::-webkit-slider-runnable-track {
background:
linear-gradient(90deg, var(--slider-fill), var(--slider-fill)) 0 / var(--range-percent) 100% no-repeat,
linear-gradient(180deg, var(--control-bg-hover), var(--slider-track));
}
.settings-control__range:hover::-moz-range-progress,
.settings-control__range:focus-visible::-moz-range-progress {
background: linear-gradient(90deg, var(--slider-fill), var(--slider-fill));
}
.settings-control__range:hover::-webkit-slider-thumb,
.settings-control__range:focus-visible::-webkit-slider-thumb {
border-color: rgba(var(--accent-rgb), 0.96);
box-shadow:
inset 0 1px 0 var(--glass-highlight-strong),
0 0 0 3px rgba(var(--accent-rgb), 0.18),
0 3px 10px rgba(0, 0, 0, 0.4);
}
.settings-control__range:hover::-moz-range-thumb,
.settings-control__range:focus-visible::-moz-range-thumb {
border-color: rgba(var(--accent-rgb), 0.96);
box-shadow:
inset 0 1px 0 var(--glass-highlight-strong),
0 0 0 3px rgba(var(--accent-rgb), 0.18),
0 3px 10px rgba(0, 0, 0, 0.4);
}
.settings-control__range:focus-visible {
outline: none;
}
.settings-chip-row {
display: flex;
flex-wrap: wrap;
gap: 6px;
}
.settings-chip {
min-height: 28px;
padding: 0 11px;
border-radius: 9px;
border: 1px solid var(--control-border);
background: var(--control-bg);
color: var(--text-secondary);
font-size: 10px;
white-space: nowrap;
cursor: pointer;
transition:
border-color 140ms ease,
color 140ms ease,
background-color 140ms ease;
}
.settings-chip:hover {
color: var(--control-text);
border-color: var(--control-border-active);
background: var(--control-bg-hover);
}
.settings-chip.is-active {
color: var(--control-text);
border-color: var(--control-border-active);
background: var(--control-bg-active);
box-shadow: inset 0 1px 0 var(--glass-highlight);
}
.settings-status-pill {
display: inline-flex;
align-items: center;
gap: 8px;
min-height: 32px;
padding: 0 10px;
border-radius: 10px;
border: 1px solid var(--control-border);
background: linear-gradient(180deg, var(--panel-surface), var(--panel-surface-soft));
box-shadow: inset 0 1px 0 var(--glass-highlight);
color: var(--text-secondary);
font-size: 10px;
white-space: nowrap;
}
.settings-status-pill__dot {
width: 6px;
height: 6px;
border-radius: 999px;
background: var(--text-muted);
}
.settings-status-pill.is-connecting .settings-status-pill__dot {
background: var(--accent);
box-shadow: 0 0 8px var(--accent-glow);
}
.settings-status-pill.is-connecting {
border-color: var(--accent);
}
.settings-status-pill.is-capturing .settings-status-pill__dot {
background: var(--success);
box-shadow: 0 0 8px var(--success);
}
.settings-status-pill.is-capturing {
border-color: var(--success);
}
.settings-status-pill.is-connected .settings-status-pill__dot {
background: var(--success);
box-shadow: 0 0 8px var(--success);
}
.settings-status-pill.is-connected {
border-color: var(--success);
}
.settings-status-pill.is-error .settings-status-pill__dot {
background: var(--danger);
box-shadow: 0 0 8px var(--danger);
}
.settings-status-pill.is-error {
border-color: var(--danger);
}
.settings-error-text {
margin-top: 8px;
color: var(--danger);
font-size: 11px;
line-height: 1.4;
}
.settings-info-text {
color: var(--text-tertiary);
font-size: 11px;
line-height: 1.4;
}
.settings-inline-actions {
display: flex;
align-items: center;
gap: 6px;
flex-wrap: wrap;
margin-top: 8px;
}
.settings-theme-swatches {
display: flex;
align-items: center;
gap: 6px;
}
.settings-swatch {
width: 20px;
height: 20px;
border-radius: 999px;
border: 1px solid var(--divider);
background: var(--swatch-color);
cursor: pointer;
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.34);
transition: border-color 120ms ease, box-shadow 120ms ease;
}
.settings-swatch:hover {
border-color: var(--control-border-active);
}
.settings-swatch.is-active {
border-color: var(--control-border-active);
box-shadow:
0 0 0 1px var(--control-border-active),
0 0 0 4px rgba(var(--accent-rgb), 0.12);
}
.settings-accent-row {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 8px;
}
.settings-accent-input {
width: 84px;
height: 28px;
border-radius: 9px;
border: 1px solid var(--input-border);
background: linear-gradient(180deg, var(--input-bg), var(--settings-bg-bottom));
cursor: pointer;
padding: 3px 4px;
box-shadow: inset 0 1px 0 var(--glass-highlight);
}
.settings-panel__close {
min-height: 34px;
padding: 0 14px;
border-radius: 10px;
border: 1px solid transparent;
background: linear-gradient(180deg, var(--input-bg), var(--settings-bg-bottom));
color: var(--text-secondary);
font-size: 9px;
cursor: pointer;
transition:
border-color 140ms ease,
color 140ms ease,
background-color 140ms ease;
}
.settings-panel__close:hover {
color: var(--text-primary);
border-color: var(--control-border-active);
background: linear-gradient(180deg, var(--input-bg-focus), var(--settings-bg-bottom));
}
.bottom-bar {
display: flex;
align-items: stretch;
gap: 0;
min-height: 92px;
padding: 0;
background: var(--bottom-bar-bg);
border-top: 1px solid var(--divider);
flex-shrink: 0;
}
.bottom-bar__rail {
flex: 1;
min-width: 0;
overflow-x: auto;
overflow-y: hidden;
padding: 10px 0 8px 14px;
scrollbar-gutter: stable;
}
.bottom-bar__rail-content {
display: flex;
align-items: stretch;
width: max-content;
min-width: 100%;
}
.bottom-bar__section {
display: flex;
flex-direction: column;
justify-content: space-between;
gap: 10px;
padding: 0 16px 0 0;
min-width: 0;
flex: 0 0 auto;
}
.bottom-bar__section--modules {
min-width: 520px;
}
.bottom-bar__section--theme {
min-width: 228px;
}
.bottom-bar__section--astra {
min-width: 520px;
}
.bottom-bar__section--source {
min-width: 360px;
}
.bottom-bar__section--performance {
min-width: 328px;
}
.bottom-bar__section--trim {
min-width: 196px;
}
.bottom-bar__section-body {
display: flex;
flex-direction: column;
gap: 8px;
min-width: 0;
}
.bottom-bar__section-title {
font-family: 'JetBrains Mono', monospace;
letter-spacing: 0.12em;
text-transform: uppercase;
color: var(--text-secondary);
font-size: 9px;
white-space: nowrap;
}
.bottom-bar__inline {
display: flex;
align-items: center;
gap: 8px;
flex-wrap: nowrap;
white-space: nowrap;
}
.bottom-bar__inline--chips {
gap: 4px;
padding: 4px;
border-radius: 12px;
border: 1px solid var(--control-border);
background: linear-gradient(180deg, var(--panel-surface), var(--control-bg));
box-shadow: inset 0 1px 0 var(--glass-highlight);
}
.bottom-bar__inline--theme {
gap: 6px;
}
.bottom-bar__inline--performance {
gap: 10px;
}
.bottom-bar__inline--memory {
gap: 6px;
flex-wrap: wrap;
white-space: normal;
}
.bottom-bar__divider {
width: 1px;
align-self: stretch;
margin: 0 16px 0 0;
background: linear-gradient(180deg, transparent, var(--divider) 18%, var(--divider) 82%, transparent);
flex-shrink: 0;
}
.bottom-bar__trim-value {
font-family: 'JetBrains Mono', monospace;
font-size: 10px;
color: var(--text-primary);
letter-spacing: 0.08em;
min-width: 56px;
text-align: right;
white-space: nowrap;
}
.bottom-bar__trim-slider {
width: 132px;
flex: 0 0 auto;
}
.bottom-bar .settings-control__select {
min-width: 0;
max-width: none;
}
.bottom-bar__select {
min-width: 280px;
max-width: 280px;
}
.bottom-bar__text-input {
height: 32px;
padding: 0 10px;
border-radius: 10px;
border: 1px solid var(--input-border);
background: var(--input-bg);
color: var(--text-primary);
font-size: 12px;
outline: none;
}
.bottom-bar__text-input::placeholder {
color: var(--text-muted);
}
.bottom-bar__text-input:focus {
border-color: var(--input-border-focus);
background: var(--input-bg-focus);
}
.bottom-bar__text-input--url {
width: 190px;
}
.bottom-bar__text-input--token {
width: 180px;
}
.bottom-bar__fps-pill {
min-width: 84px;
justify-content: center;
color: var(--text-primary);
font-family: 'JetBrains Mono', monospace;
letter-spacing: 0.08em;
}
.bottom-bar__error-text {
margin-top: 0;
max-width: 360px;
}
.bottom-bar__actions {
display: flex;
align-items: center;
flex: 0 0 auto;
padding: 10px 14px 10px 16px;
border-left: 1px solid var(--divider);
background: linear-gradient(90deg, transparent, var(--bottom-bar-bg) 28%, var(--bottom-bar-bg));
}
.bottom-bar__close {
flex-shrink: 0;
}
.scope-popout {
width: 100vw;
height: 100vh;
display: flex;
flex-direction: column;
position: relative;
overflow: hidden;
background: var(--bg-primary);
color: var(--text-primary);
}
.scope-popout__viewport {
position: relative;
flex: 0 0 auto;
min-height: 0;
overflow: hidden;
}
.scope-popout__chrome {
position: absolute;
top: 0;
left: 0;
right: 0;
z-index: 10;
max-height: 0;
opacity: 0;
overflow: hidden;
pointer-events: none;
transform: translateY(-8px);
transition: max-height 160ms ease, opacity 120ms ease, transform 160ms ease;
}
.scope-popout__viewport:hover .scope-popout__chrome,
.scope-popout__chrome:hover,
.scope-popout__chrome.is-expanded {
max-height: 58px;
opacity: 1;
pointer-events: auto;
transform: translateY(0);
}
.scope-popout__header {
display: flex;
align-items: center;
gap: 10px;
min-height: 42px;
padding: 8px 10px;
background: var(--toolbar-bg);
}
.scope-popout__drag {
flex: 1;
min-width: 0;
display: flex;
align-items: center;
gap: 10px;
}
.scope-popout__drag-handle {
width: 22px;
height: 22px;
display: inline-flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
padding: 0;
border: 0;
border-radius: 999px;
background: transparent;
color: inherit;
cursor: grab;
-webkit-app-region: no-drag;
}
.scope-popout__drag-handle:active {
cursor: grabbing;
}
.scope-popout__drag-icon {
width: 18px;
height: 18px;
display: inline-flex;
align-items: center;
justify-content: center;
color: var(--text-muted);
}
.scope-popout__drag-icon svg {
width: 14px;
height: 14px;
}
.scope-popout__title-group {
min-width: 0;
display: flex;
flex-direction: column;
gap: 2px;
}
.scope-popout__title {
font-family: 'JetBrains Mono', monospace;
letter-spacing: 0.12em;
text-transform: uppercase;
font-size: 10px;
color: var(--accent);
}
.scope-popout__subtitle {
font-size: 10px;
color: var(--text-tertiary);
}
.scope-popout__actions {
display: flex;
align-items: center;
gap: 6px;
-webkit-app-region: no-drag;
}
.scope-popout__button {
width: 28px;
height: 28px;
display: inline-flex;
align-items: center;
justify-content: center;
border-radius: 999px;
border: 1px solid transparent;
background: var(--control-bg);
box-shadow: inset 0 1px 0 var(--glass-highlight);
color: var(--text-secondary);
cursor: pointer;
transition: color 120ms ease, border-color 120ms ease, background-color 120ms ease, transform 120ms ease;
}
.scope-popout__button svg {
width: 14px;
height: 14px;
}
.scope-popout__button:hover,
.scope-popout__button.is-active {
color: var(--accent);
border-color: var(--control-border-active);
background: var(--control-bg-active);
transform: translateY(-1px);
}
.toolbar__profile-button:focus-visible,
.toolbar__chip:focus-visible,
.toolbar__icon-button:focus-visible,
.scope-strip__reorder-button:focus-visible,
.scope-strip__popout-button:focus-visible,
.settings-chip:focus-visible,
.settings-accent-input:focus-visible,
.settings-panel__close:focus-visible,
.scope-popout__button:focus-visible,
.settings-control__select:focus-within {
outline: none;
box-shadow:
inset 0 1px 0 var(--glass-highlight),
0 0 0 1px rgba(var(--accent-rgb), 0.32),
0 0 0 4px rgba(var(--accent-rgb), 0.12);
}
.scope-popout__settings-panel {
height: 100%;
overflow-y: auto;
overflow-x: hidden;
background: var(--settings-bg-bottom);
padding: 12px 0 10px;
}
.scope-popout__settings-panel .settings-scope-section {
border-left: 0;
padding: 0 14px 12px;
}
.scope-popout__settings-region {
flex: 0 0 auto;
min-height: 0;
overflow: hidden;
}
.scope-popout__content {
height: 100%;
min-height: 0;
display: flex;
flex-direction: column;
}
.scope-popout__canvas-region {
flex: 1;
min-height: 0;
position: relative;
}
::-webkit-scrollbar {
width: 6px;
height: 6px;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
background: var(--scope-guides);
border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
background: var(--scope-overlay-border);
}