/* streamd dashboard — signal amber on charcoal. Tokens redefine for dark; components only use var(--…). */ :root { color-scheme: light dark; --bg: #f4f2ee; --bg-elev: #ffffff; --bg-sunken: #ebe7e0; --sidebar: #1a1814; --sidebar-text: #cfc6b8; --sidebar-active: #2a2620; --border: #ddd6cb; --border-strong: #c9bfb0; --text: #16140f; --text-dim: #6a6358; --accent: #c47a12; --accent-soft: #f8ecda; --accent-ink: #ffffff; --ok: #0f7b4f; --ok-soft: #dcf5e8; --warn: #9a6200; --warn-soft: #fdf0d5; --down: #b4232a; --down-soft: #fde4e4; --idle: #6a6358; --idle-soft: #ebe7e0; --shadow: 0 1px 2px rgba(40, 30, 16, .05), 0 6px 18px -6px rgba(40, 30, 16, .12); --radius: 10px; --radius-sm: 7px; --mono: ui-monospace, SFMono-Regular, "Cascadia Mono", Menlo, Consolas, monospace; --ease: 180ms ease; } /* Charcoal dark: page and sidebar differ so the shell still reads. */ @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #141210; --bg-elev: #1c1a17; --bg-sunken: #0f0e0c; --sidebar: #0c0b0a; --sidebar-text: #cfc6b8; --sidebar-active: #24201c; --border: #2e2a24; --border-strong: #3d372f; --text: #f2ebe0; --text-dim: #a89f90; --accent: #e8a23a; --accent-soft: #2a2010; --accent-ink: #1a1408; --ok: #3dd68c; --ok-soft: #163024; --warn: #e6b84d; --warn-soft: #2a220c; --down: #f07178; --down-soft: #2e1414; --idle: #a89f90; --idle-soft: #24201c; --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 8px 24px rgba(0, 0, 0, .35); } } :root[data-theme="dark"] { --bg: #141210; --bg-elev: #1c1a17; --bg-sunken: #0f0e0c; --sidebar: #0c0b0a; --sidebar-text: #cfc6b8; --sidebar-active: #24201c; --border: #2e2a24; --border-strong: #3d372f; --text: #f2ebe0; --text-dim: #a89f90; --accent: #e8a23a; --accent-soft: #2a2010; --accent-ink: #1a1408; --ok: #3dd68c; --ok-soft: #163024; --warn: #e6b84d; --warn-soft: #2a220c; --down: #f07178; --down-soft: #2e1414; --idle: #a89f90; --idle-soft: #24201c; --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 8px 24px rgba(0, 0, 0, .35); } * { box-sizing: border-box; } html, body { height: 100%; } body { margin: 0; font: 14px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; } h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.01em; } h1 { font-size: 21px; } h2 { font-size: 15px; } h3 { font-size: 13px; font-weight: 600; } a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; } .mono { font-family: var(--mono); font-size: 12px; } .muted { color: var(--text-dim); } .hint { color: var(--text-dim); font-size: 12px; margin: 2px 0 0; } .spacer { flex: 1; } .only-mobile { display: none; } .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; } /* ---------- layout ---------- */ #app { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; } /* Explicit display rules beat the UA [hidden] stylesheet; force hide. */ #app[hidden], #gate[hidden], .stack[hidden], [hidden] { display: none !important; } #sidebar { background: var(--sidebar); color: var(--sidebar-text); display: flex; flex-direction: column; padding: 14px 10px; gap: 14px; position: sticky; top: 0; height: 100vh; } .brand { display: flex; align-items: center; gap: 9px; padding: 2px 8px 8px; } .brand-name { font-weight: 600; color: #fff; font-size: 15px; letter-spacing: -0.01em; } .logo { width: 22px; height: 22px; border-radius: 6px; flex: 0 0 auto; background: var(--accent); position: relative; } .logo::after { content: ""; position: absolute; left: 8px; top: 6px; border-left: 7px solid var(--accent-ink); border-top: 5px solid transparent; border-bottom: 5px solid transparent; } .logo.big { width: 34px; height: 34px; border-radius: 9px; } .logo.big::after { left: 12px; top: 9px; border-left-width: 11px; border-top-width: 8px; border-bottom-width: 8px; } #nav { display: flex; flex-direction: column; gap: 2px; } #nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm); color: var(--sidebar-text); font-size: 13.5px; } #nav a:hover { background: var(--sidebar-active); text-decoration: none; color: #fff; } #nav a.active { background: var(--sidebar-active); color: #fff; font-weight: 600; } #nav a .ico { width: 16px; height: 16px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; opacity: .85; } #nav a .ico svg { width: 16px; height: 16px; display: block; } #nav a[hidden] { display: none; } .sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 6px; } .chip { padding: 6px 8px; border-radius: 6px; background: rgba(255, 255, 255, .05); color: var(--sidebar-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; } .chip .chip-label { display: block; font-size: 10px; font-weight: 600; color: rgba(255,255,255,.45); letter-spacing: .02em; margin-bottom: 1px; } .chip .chip-val { font-family: var(--mono); font-size: 11px; } #main { display: flex; flex-direction: column; min-width: 0; } #topbar { display: flex; align-items: center; gap: 12px; padding: 12px 20px; background: var(--bg-elev); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; } #page-title { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; } .who { display: flex; align-items: center; gap: 8px; } .conn { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-weight: 600; } .conn::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 25%, transparent); } .conn.off { background: var(--down-soft); color: var(--down); } .conn.warn { background: var(--warn-soft); color: var(--warn); } #uptime { font-size: 12px; color: var(--text-dim); font-variant-numeric: tabular-nums; } #theme-btn { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--text-dim); border: 1px solid var(--border); border-radius: var(--radius-sm); background: transparent; padding: 5px 10px; } #theme-btn:hover { background: var(--bg-sunken); color: var(--text); filter: none; } #view { padding: 20px; min-width: 0; } #view:focus { outline: none; } #view.view-enter { animation: view-in var(--ease) both; } @keyframes view-in { from { opacity: 0; } to { opacity: 1; } } .stack { display: flex; flex-direction: column; gap: 16px; } /* ---------- cards ---------- */ .card { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; } .card > h2 { margin-bottom: 12px; } .card-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; } .card-head h2 { margin: 0; } /* ---------- stat tiles ---------- */ .tile-band { display: flex; flex-direction: column; gap: 8px; } .tile-band-label { font-size: 11px; font-weight: 600; color: var(--text-dim); text-transform: uppercase; letter-spacing: .04em; } .tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; } .tile { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); padding: 13px 15px; box-shadow: var(--shadow); } .tile .k { font-size: 11.5px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .04em; } .tile .v { font-size: 26px; font-weight: 600; line-height: 1.15; margin-top: 3px; font-variant-numeric: tabular-nums; } .tile.ok .v { color: var(--ok); } .tile.down .v { color: var(--down); } .tile.warn .v { color: var(--warn); } .tile.alarm { border-color: color-mix(in srgb, var(--down) 35%, var(--border)); } .tile.alarm.down { background: color-mix(in srgb, var(--down-soft) 55%, var(--bg-elev)); } .tile.alarm.warn { background: color-mix(in srgb, var(--warn-soft) 55%, var(--bg-elev)); } /* ---------- forms ---------- */ label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--text-dim); } label > span.lbl { font-size: 12px; } input, select, textarea, button { font: inherit; color: var(--text); background: var(--bg-elev); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 7px 9px; } input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; } input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--accent); padding: 0; } textarea { font-family: var(--mono); font-size: 12px; resize: vertical; min-height: 4.2em; white-space: pre; } input:disabled, select:disabled, textarea:disabled { opacity: .55; } button { cursor: pointer; background: var(--accent); border-color: transparent; color: var(--accent-ink); font-weight: 600; font-size: 13px; padding: 7px 13px; transition: background var(--ease), border-color var(--ease), color var(--ease), transform 80ms ease; } button:hover { background: color-mix(in srgb, var(--accent) 88%, #000); } button:active:not(:disabled) { transform: translateY(1px); } button.ghost { background: transparent; color: var(--text); border-color: var(--border-strong); font-weight: 500; } button.ghost:hover { background: var(--bg-sunken); } button.danger { background: transparent; color: var(--down); border-color: var(--down); } button.danger:hover { background: var(--down-soft); } button.sm { padding: 4px 9px; font-size: 12px; } button.tiny { padding: 2px 7px; font-size: 11px; font-weight: 500; } button:disabled, button[aria-busy="true"] { opacity: .55; cursor: not-allowed; transform: none; } button[aria-busy="true"] { position: relative; } .icon-btn { background: transparent; border-color: transparent; color: var(--text-dim); padding: 5px 8px; font-size: 15px; } .icon-btn:hover { background: var(--bg-sunken); color: var(--text); } .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 11px 14px; } .span2 { grid-column: 1 / -1; } .row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .row.end { justify-content: flex-end; } .inline-check { flex-direction: row; align-items: center; gap: 7px; color: var(--text); font-size: 13px; } fieldset { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; margin: 0; } legend { padding: 0 6px; font-size: 12px; font-weight: 600; color: var(--text); } .msg { min-height: 1.2em; margin: 6px 0 0; font-size: 13px; } .msg.err { color: var(--down); } .msg.ok { color: var(--ok); } /* ---------- pills ---------- */ .pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; background: var(--idle-soft); color: var(--idle); } .pill.ok { background: var(--ok-soft); color: var(--ok); } .pill.starting, .pill.pending { background: var(--warn-soft); color: var(--warn); } .pill.down, .pill.error { background: var(--down-soft); color: var(--down); } .pill.stopped, .pill.off { background: var(--idle-soft); color: var(--idle); } .pill.role { background: var(--accent-soft); color: var(--accent); } .pill.tag { background: var(--bg-sunken); color: var(--text-dim); font-weight: 500; } /* ---------- tables ---------- */ .table-wrap { overflow-x: auto; margin: 0 -16px -16px; padding: 0 16px 4px; } table { width: 100%; border-collapse: collapse; font-size: 13px; } th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; } th { color: var(--text-dim); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: .03em; position: sticky; top: 0; background: var(--bg-elev); z-index: 1; } th.sortable { cursor: pointer; user-select: none; } th.sortable:hover { color: var(--text); } th .arrow { opacity: .5; font-size: 9px; } tbody tr:hover { background: var(--bg-sunken); } tbody tr:last-child td { border-bottom: none; } td.actions { white-space: nowrap; } td.actions .row { gap: 5px; } .name-cell strong { font-size: 13.5px; } .name-cell a { color: var(--text); } .name-cell a:hover { color: var(--accent); } .sub { color: var(--text-dim); font-size: 11.5px; margin-top: 1px; } .empty { padding: 28px 8px; text-align: center; color: var(--text-dim); } /* ---------- publish links ---------- */ .links { display: flex; flex-direction: column; gap: 5px; min-width: 200px; } .links.compact { min-width: 0; max-width: 280px; } .link-row { display: flex; align-items: center; gap: 7px; padding: 5px 7px; background: var(--bg-sunken); border: 1px solid var(--border); border-radius: var(--radius-sm); } .link-row .lab { font-size: 10.5px; font-weight: 700; letter-spacing: .03em; color: var(--accent); min-width: 52px; } .link-row.master .lab { color: var(--ok); } .link-row .path { flex: 1; min-width: 0; font-family: var(--mono); font-size: 11px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } button.copied { color: var(--ok); border-color: var(--ok); } /* ---------- sparkline ---------- */ .spark { display: block; width: 100%; height: 44px; } .spark .line { fill: none; stroke: var(--accent); stroke-width: 1.5; } .spark .area { fill: var(--accent); opacity: .12; } .spark .zero { stroke: var(--border-strong); stroke-width: 1; stroke-dasharray: 2 3; } /* ---------- timeline ---------- */ .timeline { display: flex; flex-direction: column; gap: 0; } .ev { display: grid; grid-template-columns: 74px 110px 1fr; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 12.5px; align-items: baseline; } .ev:last-child { border-bottom: none; } .ev .at { font-family: var(--mono); font-size: 11px; color: var(--text-dim); } .ev .msg { word-break: break-word; } .ev .msg .who { color: var(--text-dim); font-size: 11px; } .ev.error .msg { color: var(--down); } .ev.warn .msg { color: var(--warn); } /* ---------- log viewer ---------- */ .logbox { background: var(--bg-sunken); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; font-family: var(--mono); font-size: 11.5px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; max-height: 420px; overflow: auto; margin: 0; } /* ---------- player ---------- */ .player-wrap { background: #000; border-radius: var(--radius-sm); overflow: hidden; } .preview-player .preview-controls { flex-wrap: wrap; gap: 8px; align-items: center; } .preview-player select.sm { min-width: 10rem; padding: 4px 8px; font: inherit; color: var(--text); background: var(--surface-2, var(--panel)); border: 1px solid var(--border); border-radius: var(--radius-sm); } video { width: 100%; max-height: 420px; display: block; background: #000; } /* ---------- variant / output editors ---------- */ .vrow, .orow { display: grid; grid-template-columns: auto 1fr 90px 100px 100px auto; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); } .orow { grid-template-columns: auto 1fr 110px 110px; } .vrow:last-of-type, .orow:last-of-type { border-bottom: none; } .vrow input[type=text], .vrow input[type=number], .orow input[type=number] { padding: 5px 7px; font-size: 12px; } .vrow .vname { font-weight: 600; font-size: 13px; } .vrow .locked-note, .orow .fmt { font-size: 11px; color: var(--text-dim); } .col-head { display: grid; grid-template-columns: auto 1fr 90px 100px 100px auto; gap: 8px; font-size: 10.5px; text-transform: uppercase; letter-spacing: .03em; color: var(--text-dim); padding-bottom: 5px; border-bottom: 1px solid var(--border); } .col-head.out { grid-template-columns: auto 1fr 110px 110px; } /* ---------- auth gate ---------- */ #gate { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: var(--bg); } .auth-card { width: 100%; max-width: 370px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; display: flex; flex-direction: column; gap: 13px; } .auth-card h2 { margin: 0; } .auth-sub { margin: -4px 0 0; color: var(--text-dim); font-size: 13px; } .auth-card button[type=submit] { margin-top: 4px; padding: 9px; } /* ---------- toast & modal ---------- */ #toast-stack { position: fixed; right: 16px; bottom: 16px; z-index: 100; display: flex; flex-direction: column-reverse; gap: 8px; max-width: min(420px, calc(100vw - 32px)); pointer-events: none; } .toast { background: var(--sidebar); color: #fff; padding: 10px 15px; border-radius: var(--radius-sm); box-shadow: var(--shadow); font-size: 13px; pointer-events: auto; animation: toast-in var(--ease) both; } .toast.out { animation: toast-out var(--ease) both; } .toast.err { background: var(--down); } @keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } } @keyframes toast-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(8px); } } dialog { border: 1px solid var(--border); background: var(--bg-elev); color: var(--text); border-radius: var(--radius); padding: 20px; width: min(560px, calc(100vw - 32px)); box-shadow: var(--shadow); } dialog::backdrop { background: rgba(0, 0, 0, .6); backdrop-filter: blur(2px); } /* ---------- tabs / wizard / skeleton ---------- */ .tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin: 0 0 16px; } .tabs a, .tabs button { background: transparent; border: none; border-bottom: 2px solid transparent; border-radius: 0; color: var(--text-dim); font-weight: 500; padding: 8px 14px; margin-bottom: -1px; } .tabs a:hover, .tabs button:hover { color: var(--text); background: transparent; text-decoration: none; } .tabs a.active, .tabs button.active { color: var(--text); border-bottom-color: var(--accent); font-weight: 600; } .wizard-steps { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; } .wizard-steps .step { font-size: 12px; color: var(--text-dim); padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border); background: transparent; font-weight: 500; transform: none; } .wizard-steps .step:hover { background: var(--bg-sunken); color: var(--text); } .wizard-steps .step.on { color: var(--accent-ink); background: var(--accent); border-color: transparent; font-weight: 600; } .wizard-steps .step.on:hover { background: var(--accent); color: var(--accent-ink); } .wizard-steps .step.done { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, var(--border)); } .wizard-foot { position: sticky; bottom: 0; z-index: 5; display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin: 20px -20px -20px; padding: 14px 20px; background: color-mix(in srgb, var(--bg-elev) 92%, transparent); border-top: 1px solid var(--border); backdrop-filter: blur(6px); } .skeleton { background: linear-gradient(90deg, var(--bg-sunken) 25%, var(--border) 50%, var(--bg-sunken) 75%); background-size: 200% 100%; animation: shimmer 1.2s ease-in-out infinite; border-radius: var(--radius-sm); min-height: 1em; } @keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } } .flag-more { font-size: 11px; color: var(--text-dim); padding: 2px 6px; border-radius: 999px; background: var(--bg-sunken); } /* ---------- responsive ---------- */ @media (max-width: 900px) { .only-mobile { display: inline-flex; } #app { grid-template-columns: 1fr; } #sidebar { position: fixed; inset: 0 auto 0 0; width: 258px; z-index: 50; transform: translateX(-100%); transition: transform .18s ease; } #app.nav-open #sidebar { transform: none; } #app.nav-open::after { content: ""; position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .55); } #view { padding: 16px; } #topbar { padding: 10px 16px; } .who #who-name { display: none; } .vrow, .col-head { grid-template-columns: auto 1fr 1fr; } .vrow > .del { grid-column: 3; justify-self: end; } .col-head { display: none; } .table-wrap { margin: 0 -16px -16px; padding: 0 16px 4px; } } /* ---------- modules dropzone / yaml editor ---------- */ .dropzone { border: 1.5px dashed var(--border-strong); border-radius: var(--radius); background: var(--bg-sunken); padding: 28px 20px; text-align: center; cursor: pointer; transition: border-color var(--ease), background var(--ease); } .dropzone:hover, .dropzone:focus-visible { border-color: var(--accent); outline: none; } .dropzone.active { border-color: var(--accent); background: var(--accent-soft); } .dropzone-title { font-weight: 600; font-size: 15px; color: var(--text); } .dropzone-sub { margin-top: 6px; font-size: 12.5px; color: var(--text-dim); max-width: 36rem; margin-left: auto; margin-right: auto; } textarea.module-yaml { width: 100%; min-height: 28rem; font-family: var(--mono); font-size: 12px; line-height: 1.45; white-space: pre; tab-size: 2; } @media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }