/* Dragonflight UXP panel — redesign (icon rail · full-width grid · dock)
* Hex tokens only (UXP's CSS engine predates oklch). Blue accent kept for
* continuity with the web UI. No external font loads — UXP has no network
* for @font-face, so we lean on the host system stack. */
:root {
/* Surfaces — cool near-black blues */
--bg-deep: #090B0F;
--bg-base: #0E1117;
--bg-panel: #14171F;
--bg-surface: #1B1F28;
--bg-raised: #232834;
--bg-hover: #2C313E;
/* Accent */
--accent: #5B7CFA;
--accent-hover: #7B96FB;
--accent-bright: #9DB0FC;
--accent-subtle: rgba(91, 124, 250, 0.14);
--accent-border: rgba(91, 124, 250, 0.42);
/* Text */
--text-1: #EEF0F4;
--text-2: #A6ACBA;
--text-3: #6E7585;
--text-4: #474D5B;
/* Borders + hover overlays (tinted neutrals via white overlay) */
--border-faint: rgba(255, 255, 255, 0.05);
--border: rgba(255, 255, 255, 0.09);
--border-strong: rgba(255, 255, 255, 0.16);
--hover: rgba(255, 255, 255, 0.04);
--hover-strong: rgba(255, 255, 255, 0.07);
/* Signals */
--success: #2DD4A8;
--warning: #F5A623;
--danger: #FF5B5B;
--info: #4AA3FF;
--live: #FF3B30;
--danger-soft: rgba(255, 91, 91, 0.14);
--success-soft: rgba(45, 212, 168, 0.14);
/* Legacy aliases — older rules / dynamic markup still resolve these */
--ok: var(--success);
--warn: var(--warning);
--bg-1: var(--bg-base);
--bg-2: var(--bg-surface);
--bg-3: var(--bg-raised);
--font-sans: -apple-system, "Segoe UI", system-ui, Roboto, sans-serif;
--font-mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, monospace;
--t-fast: 90ms;
--t-med: 150ms;
--ease: cubic-bezier(0.22, 1, 0.36, 1); /* ease-out-quart */
--shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
background: var(--bg-panel);
color: var(--text-1);
font: 12px/1.4 var(--font-sans);
height: 100%;
overflow: hidden;
}
#root {
height: 100%;
display: flex;
flex-direction: column;
position: relative;
overflow: hidden;
}
/* ── panes ──────────────────────────────────────────────────────── */
.pane {
display: flex;
flex-direction: column;
flex: 1 1 auto;
min-height: 0;
overflow: hidden;
}
.pane.hidden { display: none; }
.pane-connect { padding: 10px 16px 0; }
/* ── connect screen ─────────────────────────────────────────────── */
.brand {
display: flex;
flex-direction: column;
align-items: center;
gap: 4px;
padding: 22px 0 20px;
}
.brand-icon { color: var(--accent); opacity: 0.9; }
.brand-title { font-size: 17px; font-weight: 700; color: var(--text-1); letter-spacing: -0.01em; }
.brand-tag {
font-size: 9px;
font-weight: 600;
color: var(--text-3);
letter-spacing: 0.14em;
text-transform: uppercase;
}
.brand-version {
font-family: var(--font-mono);
font-size: 9.5px;
color: var(--text-4);
margin-top: 6px;
letter-spacing: 0.04em;
}
.field-label {
display: block;
font-size: 9.5px;
font-weight: 600;
color: var(--text-3);
letter-spacing: 0.07em;
text-transform: uppercase;
margin: 10px 0 4px;
}
input[type="text"],
input[type="password"],
input[type="search"],
select {
width: 100%;
background: var(--bg-deep);
color: var(--text-1);
border: 1px solid var(--border);
border-radius: 6px;
padding: 7px 9px;
font: 400 12px/1.2 var(--font-sans);
outline: none;
appearance: none;
-webkit-appearance: none;
}
input:focus, select:focus {
border-color: var(--accent-border);
box-shadow: 0 0 0 2px var(--accent-subtle);
}
input[type="search"]::-webkit-search-cancel-button { display: none; }
/* ── buttons (connect + slide panels) ───────────────────────────── */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 5px;
font: 600 11.5px/1 var(--font-sans);
padding: 7px 11px;
border: 1px solid transparent;
border-radius: 6px;
cursor: pointer;
background: var(--bg-raised);
color: var(--text-1);
user-select: none;
white-space: nowrap;
transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.btn:disabled { opacity: 0.38; cursor: default; pointer-events: none; }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:not(:disabled):hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-secondary { background: var(--bg-surface); border-color: var(--border); }
.btn-secondary:not(:disabled):hover { background: var(--bg-hover); }
.btn-icon { padding: 5px 8px; background: var(--bg-surface); border-color: var(--border); }
.btn-icon:hover { background: var(--bg-hover); }
#connect-btn { margin-top: 16px; width: 100%; padding: 9px; }
/* ── status msg ─────────────────────────────────────────────────── */
.status-msg { font-size: 11px; margin-top: 8px; min-height: 16px; text-align: center; }
.status-msg.error { color: var(--danger); }
.status-msg.muted { color: var(--text-3); }
/* ── app shell ──────────────────────────────────────────────────── */
.app { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.statusbar {
display: flex;
align-items: center;
gap: 8px;
height: 30px;
padding: 0 8px 0 10px;
background: var(--bg-base);
border-bottom: 1px solid var(--border-faint);
flex-shrink: 0;
position: relative;
}
.signal-dot {
width: 7px; height: 7px;
border-radius: 50%;
background: var(--success);
box-shadow: 0 0 6px var(--success);
flex-shrink: 0;
}
.connected-host {
flex: 1;
min-width: 0;
font: 500 11px/1 var(--font-mono);
color: var(--text-2);
letter-spacing: -0.01em;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.panel-version {
font-family: var(--font-mono);
font-size: 9.5px;
color: var(--text-4);
letter-spacing: 0.04em;
flex-shrink: 0;
}
/* overflow menu */
.menu {
position: absolute;
top: 30px;
right: 6px;
min-width: 132px;
background: var(--bg-raised);
border: 1px solid var(--border-strong);
border-radius: 7px;
box-shadow: var(--shadow);
padding: 4px;
z-index: 50;
}
.menu-item {
display: block;
width: 100%;
text-align: left;
padding: 7px 10px;
font: 500 11.5px/1 var(--font-sans);
background: transparent;
border: none;
color: var(--text-1);
border-radius: 4px;
cursor: pointer;
}
.menu-item:hover { background: var(--hover-strong); }
/* ── full-panel screen (Export chooser) ─────────────────────────── */
.screen {
position: absolute;
inset: 0;
z-index: 60;
background: var(--bg-base);
display: flex;
flex-direction: column;
}
.screen.hidden { display: none; }
.screen-header {
display: flex;
align-items: center;
padding: 13px 13px 11px;
border-bottom: 1px solid var(--border-faint);
flex-shrink: 0;
}
.screen-title { flex: 1; font: 700 14px/1 var(--font-sans); color: var(--text-1); }
.screen-body {
flex: 1 1 auto;
min-height: 0;
overflow-y: auto;
padding: 14px;
display: flex;
flex-direction: column;
gap: 10px;
}
.export-option {
display: flex;
align-items: center;
gap: 13px;
padding: 16px 14px;
background: var(--bg-surface);
border: 1px solid var(--border-faint);
border-radius: 10px;
cursor: pointer;
transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.export-option:hover { border-color: var(--accent-border); background: var(--bg-hover); }
.eo-icon {
width: 42px; height: 42px;
flex-shrink: 0;
border-radius: 10px;
background: var(--accent-subtle);
color: var(--accent-bright);
display: flex;
align-items: center;
justify-content: center;
}
.eo-text { flex: 1 1 auto; min-width: 0; }
.eo-title { font: 600 13px/1.3 var(--font-sans); color: var(--text-1); }
.eo-desc { font: 400 11px/1.4 var(--font-sans); color: var(--text-3); margin-top: 3px; }
.eo-arrow { flex-shrink: 0; color: var(--text-3); font-size: 22px; line-height: 1; }
.workspace { display: flex; flex: 1; min-height: 0; }
/* ── icon rail ──────────────────────────────────────────────────── */
.rail {
width: 44px;
flex-shrink: 0;
background: var(--bg-base);
border-right: 1px solid var(--border-faint);
display: flex;
flex-direction: column;
align-items: center;
padding: 8px 0;
gap: 2px;
}
/* Rail/dock controls are
(not