/* * deck-it - the dashboard styles * Copyright (C) 2026 Danilo M. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ * { box-sizing: border-box; margin: 0; } html { font-size: var(--udt-font-size, 14px); } html, body { height: 100%; } body { display: flex; flex-direction: column; background: var(--udt-base); color: var(--udt-text); font: 400 1rem/1.43 "Noto Sans", system-ui, sans-serif; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; overflow: hidden; } .topbar { flex: none; position: relative; display: flex; justify-content: center; padding: 8px 14px 0; } /* The installed web app has no browser chrome, so no pull-to-refresh. */ .reload { position: absolute; right: 14px; top: 8px; min-width: 44px; min-height: 40px; font: inherit; font-size: 1.286rem; line-height: 1; color: var(--udt-subtext0); background: transparent; border: 1px solid transparent; border-radius: 10px; cursor: pointer; } .reload:active { background: var(--udt-surface0); border-color: var(--udt-surface1); } .tabs { display: flex; gap: 6px; } .tabs button { font: inherit; color: var(--udt-subtext0); background: transparent; border: 1px solid transparent; border-radius: 10px; padding: 8px 18px; cursor: pointer; } .tabs button.active { color: var(--udt-text); background: var(--udt-surface0); border-color: var(--udt-surface1); } .tabs button { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px; } .tabs button .nf { font-size: 1.5rem; line-height: 1; margin-right: 6px; } /* the glyphs draw past their advance */ .tabs button:not(.active):not(.named) span { display: none; } .tabs button .brand { width: 1.5rem; height: 1.5rem; background: currentColor; } #tab-body { flex: 1; min-height: 0; overflow: hidden auto; touch-action: pan-y; } /* sideways moves stay ours: the swipe */ .tab-panel { padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); } .tab-panel[hidden] { display: none; } .tab-content { min-height: 100%; } @property --border-angle { syntax: ""; initial-value: 0deg; inherits: false; } @keyframes border-rotate { to { --border-angle: 360deg; } } .section-label { font-size: 0.786rem; text-transform: uppercase; letter-spacing: .08em; color: var(--udt-overlay0); margin: 12px 0 6px; } .section-label:first-child { margin-top: 0; } .music .top { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; } .music .art { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; background: var(--udt-surface1); flex: none; } .music .art.empty { display: flex; align-items: center; justify-content: center; color: var(--udt-overlay0); font-size: 1.571rem; } .music .meta { min-width: 0; } .music .title { font-size: 1.214rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .music .controls button { min-height: 44px; min-width: 48px; font-size: 1.2rem; } .music .vol { flex: 1; min-width: 180px; display: flex; align-items: center; gap: 10px; } .music .vol input { flex: 1; accent-color: var(--udt-accent); } .music .vol input.muted { opacity: .4; } .music .level { font-size: 0.857rem; color: var(--udt-subtext0); min-width: 3.5ch; text-align: right; } .music .artist, .music .album { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .music .album { font-size: 0.857rem; color: var(--udt-overlay0); } .music .seek { display: flex; align-items: center; gap: 10px; margin: 6px 0 12px; } .music .seek input { flex: 1; accent-color: var(--udt-accent); } .music .time { font-size: 0.857rem; color: var(--udt-subtext0); white-space: nowrap; } .music .controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; } .num { font-family: "Inconsolata Nerd Font Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; } .muted { color: var(--udt-overlay0); } button { font: inherit; color: inherit; background: var(--udt-surface1); border: 1px solid var(--udt-surface2); border-radius: 10px; padding: 10px 12px; cursor: pointer; touch-action: manipulation; } button:active { background: var(--udt-surface2); } button.on { background: var(--udt-accent); color: var(--udt-crust); border-color: var(--udt-accent); } .row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; } .obs-scenes, .obs-sources { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; } .obs-audio .row span { flex: 1; min-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } select { font: inherit; color: inherit; background: var(--udt-surface1); border: 1px solid var(--udt-surface2); border-radius: 10px; padding: 8px; } .stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .mtile { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--udt-surface1); min-width: 0; } .mlabel { font-size: 0.714rem; text-transform: uppercase; letter-spacing: .08em; color: var(--udt-overlay0); } .mvalue { font-size: 1.857rem; font-weight: 600; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .msub { font-size: 0.857rem; color: var(--udt-subtext0); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .windows { display: flex; flex-direction: column; gap: 14px; } .windows .ws { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; } .wtile { min-width: 56px; min-height: 56px; padding: 0 10px; display: flex; align-items: center; justify-content: center; font-size: 1.286rem; font-weight: 600; border-radius: 12px; background: var(--udt-surface1); border: 1px solid var(--udt-surface2); color: var(--udt-subtext0); cursor: pointer; } .wtile.on { background: var(--udt-accent); color: var(--udt-crust); border-color: var(--udt-accent); } .wtile.launch { min-width: 64px; min-height: 64px; padding: 0 12px; } .laticon { display: block; width: 32px; height: 32px; object-fit: contain; } .windows .ws { justify-content: center; } /* A desktop with windows: an accent dot under its tile. */ .windows .ws .wtile { position: relative; } .windows .ws .wtile.busy::after { content: ""; position: absolute; left: 50%; bottom: -10px; width: 6px; height: 6px; border-radius: 3px; background: var(--udt-accent); transform: translateX(-50%); } .wgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px 14px; } .wcard { display: flex; flex-direction: column; gap: 6px; padding: 0; font: inherit; background: none; border: 0; color: inherit; cursor: pointer; min-width: 0; } .wbox { position: relative; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--udt-surface0); border: 1px solid var(--udt-surface1); display: flex; align-items: center; justify-content: center; } .wcard.cur .wbox { border-color: var(--udt-accent); box-shadow: 0 0 14px color-mix(in srgb, var(--udt-accent) 45%, transparent); } .wshot { pointer-events: none; -webkit-touch-callout: none; user-select: none; max-width: calc(100% - 8px); max-height: calc(100% - 8px); object-fit: contain; border-radius: 4px; } /* Each overlay carries its own scrim: it sits on an arbitrary preview. */ .wws, .wx, .wbox .wicon { position: absolute; background: color-mix(in srgb, var(--udt-base) 75%, transparent); } .wws { left: 8px; top: 8px; min-width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; color: var(--udt-accent); font-size: 0.929rem; } .wx { right: 8px; top: 8px; width: 40px; height: 40px; border-radius: 20px; display: grid; place-items: center; font-size: 1.6rem; line-height: 1; color: var(--udt-text); } .wx:active { background: var(--udt-red); } .wbox .wicon { left: 8px; bottom: 8px; width: 40px; height: 40px; padding: 5px; border-radius: 10px; box-sizing: border-box; } .wtitle { font-size: 0.929rem; color: var(--udt-subtext0); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .wcard.cur .wtitle { color: var(--udt-text); } .windows .launches { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; } .wpop { position: fixed; z-index: 50; min-width: 220px; max-width: 80vw; padding: 10px; display: flex; flex-direction: column; gap: 8px; background: var(--udt-mantle); border: 1px solid var(--udt-surface1); border-radius: 12px; box-shadow: 0 12px 30px rgba(0, 0, 0, .35); } .wpop-title { font-weight: 600; font-size: 0.929rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .wpop-label { font-size: 0.786rem; text-transform: uppercase; letter-spacing: .08em; color: var(--udt-overlay0); } .wpop-ws { display: flex; flex-wrap: wrap; gap: 6px; } .wpop-ws button { min-width: 44px; min-height: 44px; padding: 0; font-size: 1.143rem; font-weight: 600; } .brand { width: 18px; height: 18px; flex: none; background: var(--udt-accent); -webkit-mask-repeat: no-repeat; -webkit-mask-position: center; -webkit-mask-size: contain; mask-repeat: no-repeat; mask-position: center; mask-size: contain; } .brand.claude { -webkit-mask-image: url(/logos/claude.svg); mask-image: url(/logos/claude.svg); } .brand.obs { -webkit-mask-image: url(/logos/obs.svg); mask-image: url(/logos/obs.svg); } .brand.opencode { -webkit-mask-image: url(/logos/opencode.svg); mask-image: url(/logos/opencode.svg); } .gbar { height: 6px; background: var(--udt-surface2); border-radius: 3px; overflow: hidden; } .gbar > i { display: block; height: 100%; background: var(--udt-accent); } .good { color: var(--udt-green); } .bad { color: var(--udt-red); } .warn { color: var(--udt-yellow); } /* OBS stream-deck tab */ .deck { display: flex; flex-direction: column; gap: 14px; } .deck-transport { display: flex; gap: 12px; } .deck-transport > .offline { flex: 1; } .deck-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 92px; padding: 12px; font: inherit; font-size: 1.214rem; font-weight: 600; border-radius: 16px; cursor: pointer; background: var(--udt-surface0); border: 1px solid var(--udt-surface1); color: var(--udt-text); } .deck-btn .ico { width: 28px; height: 28px; } .deck-btn .num { font-size: 1.429rem; } .deck-btn.rec.on { background: var(--udt-red); border-color: var(--udt-red); color: var(--udt-crust); } .deck-btn.pause.on { background: var(--udt-yellow); border-color: var(--udt-yellow); color: var(--udt-crust); } .deck-btn.studio.on { background: var(--udt-accent); border-color: var(--udt-accent); color: var(--udt-crust); } .deck-btn.live.on { background: var(--udt-green); border-color: var(--udt-green); color: var(--udt-crust); } .deck-btn:active { background: var(--udt-surface1); } .deck-cols { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; } .deck-cols[hidden] { display: none; } @media (max-width: 900px) { .deck-cols { grid-template-columns: 1fr; } } .deck-block { background: var(--udt-surface0); border: 1px solid var(--udt-surface1); border-radius: 16px; padding: 12px; } .deck-block h3 { font-size: 0.786rem; text-transform: uppercase; letter-spacing: .08em; color: var(--udt-overlay0); margin-bottom: 10px; } .tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; } .tile { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 74px; padding: 10px; font: inherit; font-size: 1rem; text-align: center; border-radius: 12px; cursor: pointer; overflow: hidden; background: var(--udt-surface1); border: 1px solid var(--udt-surface2); color: var(--udt-subtext0); } .tile { position: relative; } .tile .ico { width: 22px; height: 22px; flex: none; } .tile .gear { position: absolute; right: 6px; top: 4px; font-style: normal; font-size: 0.786rem; opacity: .6; } .tile span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .tile.on { background: var(--udt-accent); border-color: var(--udt-accent); color: var(--udt-crust); } /* Studio Mode: the scene waiting in Preview for the Transition button */ .tile.cue { border: 2px dashed var(--udt-accent); color: var(--udt-text); } .mixer { display: flex; flex-direction: column; gap: 10px; } .chan { display: flex; align-items: center; gap: 10px; } .chan .mute { width: 44px; height: 44px; padding: 0; flex: none; display: flex; align-items: center; justify-content: center; } .chan .mute .ico { width: 20px; height: 20px; } .chan .mute.on { background: var(--udt-red); border-color: var(--udt-red); color: var(--udt-crust); } .chan-name { flex: none; min-width: 84px; max-width: 34%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .chan input[type=range] { flex: 1; min-width: 60px; accent-color: var(--udt-accent); } .chan-pct { flex: none; min-width: 40px; text-align: right; font-size: 0.857rem; } /* What a panel shows while the thing it watches is off (static/offline.js). */ .offline { height: 100%; min-height: 140px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 16px; text-align: center; } .off-icon { width: 96px; height: 96px; margin-bottom: 6px; filter: grayscale(1); opacity: .45; } .off-title { font-size: 1.143rem; font-weight: 600; color: var(--udt-subtext1, var(--udt-text)); } .off-detail { max-width: 32ch; font-size: 0.857rem; color: var(--udt-overlay0); } .off-poll { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 0.714rem; text-transform: uppercase; letter-spacing: .08em; color: var(--udt-overlay0); } .off-poll i { width: 6px; height: 6px; border-radius: 50%; background: var(--udt-overlay0); animation: off-pulse 2s ease-in-out infinite; } @keyframes off-pulse { 50% { opacity: .2; } } @media (prefers-reduced-motion: reduce) { .off-poll i { animation: none; } } /* The K1C tab. */ .k1c { display: flex; flex-direction: column; gap: 14px; padding: 4px 2px; } .k1c-on { display: flex; flex-direction: column; gap: 14px; } .k1c-on[hidden], .k1c-off[hidden] { display: none; } .k1c-head { display: flex; align-items: center; gap: 12px; } .k1c-state { flex: none; padding: 4px 12px; border-radius: 999px; background: var(--udt-surface1); font-weight: 600; } .k1c-state.good { background: var(--udt-green); color: var(--udt-crust); } .k1c-state.warn { background: var(--udt-yellow); color: var(--udt-crust); } .k1c-state.bad { background: var(--udt-red); color: var(--udt-crust); } .k1c-file { flex: 1; min-width: 0; font-size: 1.143rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .k1c-alert { padding: 10px 14px; border-radius: 12px; border: 1px solid var(--udt-red); color: var(--udt-red); } .k1c-job { display: flex; align-items: center; gap: 16px; } .k1c-thumb { flex: none; width: 120px; height: 120px; object-fit: contain; padding: 6px; border-radius: 14px; background: var(--udt-surface0); border: 1px solid var(--udt-surface1); } .k1c-thumb[hidden] { display: none; } .k1c-progress { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; } .k1c-progress[hidden] { display: none; } .k1c-pct { font-size: 2.571rem; font-weight: 600; line-height: 1; } .k1c-progress .gbar { height: 10px; border-radius: 5px; } .k1c-times { font-size: 0.857rem; color: var(--udt-subtext0); } .k1c-body { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; } @media (max-width: 900px) { .k1c-body { grid-template-columns: 1fr; } } .k1c-tiles { grid-template-columns: 1fr 1fr; } .k1c-cam { width: 100%; border-radius: 12px; background: var(--udt-crust); } /* Press and hold: the fill grows across the button over --hold. */ .estop { flex: none; position: relative; overflow: hidden; min-width: 150px; min-height: 64px; padding: 0 18px; border: 2px solid var(--udt-red); border-radius: 16px; background: color-mix(in srgb, var(--udt-red) 22%, transparent); color: var(--udt-text); font: inherit; font-weight: 700; display: flex; flex-direction: column; align-items: center; justify-content: center; touch-action: none; cursor: pointer; } .estop::before { content: ""; position: absolute; inset: 0; background: var(--udt-red); transform: scaleX(0); transform-origin: left; } .estop.holding::before { transform: scaleX(1); transition: transform var(--hold, 800ms) linear; } .estop.sent { background: var(--udt-red); color: var(--udt-crust); } .estop > span { position: relative; } .estop-label { font-size: 1.071rem; text-transform: uppercase; letter-spacing: .04em; } .estop-hint { font-size: 0.714rem; font-weight: 400; opacity: .7; } /* Assistant tab. Icons are the Nerd Font glyphs the canvas uses, served by deck-it from the PC; every control is at least 48px for a finger. */ @font-face { font-family: "deckit-nerd"; src: url("/fonts/nerd-propo.ttf") format("truetype"); font-display: block; } .nf { font-family: "deckit-nerd"; font-style: normal; } .assistant { display: flex; flex-direction: column; height: calc(100dvh - 120px); } .assistant .as-main[hidden] { display: none; } .assistant .as-main { display: flex; flex-direction: column; gap: 10px; flex: 1; min-height: 0; position: relative; } .assistant .ib { min-width: 48px; min-height: 48px; border-radius: 12px; font-size: 1.4rem; background: var(--udt-surface0); border: 1px solid var(--udt-surface1); color: var(--udt-text); cursor: pointer; } .assistant .ib:active { background: var(--udt-surface1); } .assistant .ib:disabled { opacity: .4; } .assistant .as-head { display: flex; align-items: center; gap: 10px; } .assistant .as-model { min-height: 48px; padding: 0 14px; border-radius: 12px; font: inherit; display: flex; gap: 8px; align-items: center; background: var(--udt-surface0); border: 1px solid var(--udt-surface1); color: var(--udt-text); max-width: 50%; } .assistant .as-model span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .assistant .as-gap { flex: 1; } /* pushes the mic right; the state is in the live bubble */ .assistant .as-models { position: absolute; top: 58px; left: 0; z-index: 2; max-height: 60%; overflow-y: auto; min-width: 50%; background: var(--udt-mantle); border: 1px solid var(--udt-surface1); border-radius: 12px; padding: 6px; } .assistant .as-mrow { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 0 10px; font: inherit; background: none; border: 1px solid transparent; border-radius: 8px; color: var(--udt-text); text-align: left; } .assistant .as-mrow.on { border-color: var(--udt-accent); } .assistant .as-mrow span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .assistant .as-mrow small { color: var(--udt-overlay0); } .assistant .fresh { margin-left: auto; } .assistant .as-strip { position: absolute; top: 58px; left: 0; right: 0; z-index: 2; max-height: 75%; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; background: var(--udt-mantle); border: 1px solid var(--udt-surface1); border-radius: 12px; padding: 10px; } .assistant .as-strip[hidden], .assistant .as-picking[hidden] { display: none; } .assistant .as-group { display: flex; align-items: center; gap: 12px; } .assistant .as-group small { flex: none; width: 96px; text-align: right; font-size: 0.786rem; color: var(--udt-overlay1); } .assistant .as-tiles { display: flex; flex-wrap: wrap; gap: 8px; } .assistant .as-sec h3 { margin: 4px 0 0; font-size: 0.857rem; text-transform: uppercase; letter-spacing: .08em; color: var(--udt-subtext0); } .assistant .as-sec p { margin: 2px 0 0; font-size: 0.786rem; color: var(--udt-overlay0); } .assistant .as-tile { flex: none; width: 84px; min-height: 72px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-radius: 12px; font: inherit; cursor: pointer; background: var(--udt-surface0); border: 1px solid var(--udt-surface1); color: var(--udt-text); } .assistant .as-group.op .as-tile { background: var(--udt-surface1); } .assistant .as-tile i { font-size: 1.6rem; } .assistant .as-tile span { font-size: 0.714rem; color: var(--udt-subtext0); max-width: 76px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .assistant .as-picking { display: flex; align-items: center; gap: 12px; min-height: 72px; color: var(--udt-yellow); } .assistant .as-picking span { flex: 1; } .assistant .as-op, .assistant .as-notice, .assistant .as-note { font-size: 0.857rem; color: var(--udt-subtext0); } .assistant .as-notice:empty { display: none; } .assistant .as-log { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding-right: 4px; } .assistant .as-turn { display: flex; flex-direction: column; gap: 10px; } .assistant .as-row { display: flex; align-items: flex-end; gap: 10px; } .assistant .as-row.me { justify-content: flex-end; padding-left: 15%; } .assistant .as-row.bot { padding-right: 10%; } .assistant .as-av { flex: none; width: 40px; height: 40px; border-radius: 20px; background: var(--udt-surface1) center / cover no-repeat; } .assistant .as-av.me { background-image: url("/api/avatar"); } .assistant.has-face .as-av.bot { background-image: url("/api/bg"); background-size: var(--face-size); background-position: var(--face-pos); } .assistant .as-q, .assistant .as-bubble { padding: 10px 14px; border-radius: 16px; min-width: 0; } .assistant .as-q { white-space: pre-wrap; color: var(--udt-crust); background: color-mix(in srgb, var(--udt-accent) 85%, var(--udt-text)); border-bottom-right-radius: 4px; } .assistant .as-bubble { background: color-mix(in srgb, var(--udt-surface0) 88%, transparent); border: 1px solid var(--udt-surface1); border-bottom-left-radius: 4px; } .assistant .as-bubble .md > :first-child { margin-top: 0; } .assistant .as-bubble .md > :last-child { margin-bottom: 0; } .assistant .as-tools { font-size: 0.786rem; color: var(--udt-overlay0); } .assistant .as-state { font-size: 0.786rem; font-style: italic; color: var(--udt-subtext0); } .assistant .as-state:empty { display: none; } /* Three dots bouncing in turn while the reply has no words yet. */ .assistant .as-dots { display: inline-flex; gap: 5px; padding: 6px 0 2px; } .assistant .as-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--udt-subtext0); animation: as-bounce 1.2s ease-in-out infinite; } .assistant .as-dots i:nth-child(2) { animation-delay: .15s; } .assistant .as-dots i:nth-child(3) { animation-delay: .3s; } @keyframes as-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-6px); opacity: 1; } } .assistant .md { line-height: 1.45; overflow-wrap: anywhere; } .assistant .md pre { position: relative; background: var(--udt-crust); border-radius: 8px; padding: 10px; overflow-x: auto; } .assistant .md pre .copy { position: absolute; top: 4px; right: 4px; } .assistant .md code { font-family: "deckit-nerd", ui-monospace, monospace; } .assistant .md table { border-collapse: collapse; } .assistant .md th, .assistant .md td { border: 1px solid var(--udt-surface1); padding: 4px 8px; } .assistant .md a { color: var(--udt-accent); } .assistant .as-bar { display: flex; gap: 12px; align-items: center; } .assistant .as-bar .mic { min-width: 72px; min-height: 72px; font-size: 1.9rem; border-radius: 36px; } .assistant .mic.on { background: var(--udt-red); border-color: var(--udt-red); color: var(--udt-crust); } .assistant .mic.on::after { content: attr(data-secs); font-family: inherit; font-size: 0.714rem; margin-left: 4px; } .assistant .as-op.good { color: var(--udt-green); } .assistant .as-op.bad { color: var(--udt-red); } .assistant .md, .assistant .as-q { user-select: text; } /* The tablet dimmed after [tablet] dim_after idle seconds (app.js): catches the waking touch so it presses nothing underneath. */ #dimmer { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgb(0 0 0 / .85); } #dimmer[hidden] { display: none; } .dim-time { font-size: 8rem; font-weight: 300; line-height: 1; color: var(--udt-text); font-variant-numeric: tabular-nums; } .dim-date { font-size: 1.6rem; color: var(--udt-subtext0); } /* The clock's fonts come from keystone's fonts.json, as rules in theme.css. */ /* The PC asleep: over everything, and the wake lock is dropped (app.js). */ #asleep { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; background: color-mix(in srgb, var(--udt-crust) 92%, transparent); } #asleep[hidden] { display: none; } .asleep-moon { font-size: 3rem; color: var(--udt-overlay0); } /* The Assistant tab's backdrop ([assistant] background, served at /api/bg): the picture's subject rising from the bottom-right corner, desaturated and faded out toward the content; stronger while the chat is empty. No image configured: the URL answers 404 and nothing shows. */ .assistant { position: relative; } .assistant::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; /* ponytail: sized for the 1280x800 tablet; the subject centre sits ~74% across */ background: url("/api/bg") no-repeat right -300px top / auto 108%; filter: saturate(.75) brightness(.9); opacity: .07; transition: opacity .6s; mask-image: radial-gradient(ellipse 27% 56% at 74% 40%, #000 30%, transparent 100%); } .assistant.idle::before { opacity: .24; } .assistant > * { position: relative; z-index: 1; } /* The empty chat's greeting, on the side the backdrop leaves free. */ .assistant .as-hello { display: none; position: absolute; left: 4%; top: 30%; max-width: 46%; flex-direction: column; gap: 8px; pointer-events: none; } .assistant.idle .as-hello { display: flex; } .assistant .as-hello h2 { margin: 0 0 6px; font: 200 3rem/1.1 system-ui, sans-serif; letter-spacing: -.02em; color: var(--udt-text); } .assistant .as-hello p { margin: 0; font: 300 1.15rem/1.4 system-ui, sans-serif; color: var(--udt-overlay0); } .windows .ws .wtile img { width: 32px; height: 32px; object-fit: contain; } .wws img { width: 22px; height: 22px; object-fit: contain; } .wpop-ws button img { width: 24px; height: 24px; object-fit: contain; } /* The Dashboard: one fixed screen (static/dashboard.js). */ .tab-panel[data-tab="Dashboard"] { height: 100%; box-sizing: border-box; padding-top: 18px; } .dash { height: 100%; display: grid; grid-template-rows: 25% 1fr 10%; grid-template-columns: minmax(0, 1fr); gap: 10px; } .dash [hidden] { display: none !important; } .dash-defs { position: absolute; } .dash-top { display: grid; grid-template-rows: auto 1fr 1fr; gap: 8px; min-height: 0; } .dash-id { display: flex; align-items: center; gap: 8px; font-size: 0.857rem; color: var(--udt-subtext0); white-space: nowrap; overflow: hidden; } .dash-id .logo { font-size: 1.15rem; color: var(--udt-accent); margin-right: 4px; } .dash-id .nf:not(.logo) { margin-right: 10px; } /* the glyphs draw past their advance */ .dash-id b { color: var(--udt-text); font-weight: 600; } .dash-id .sep { color: var(--udt-border-1); font-weight: 600; } .dash .chips { display: grid; gap: 8px; min-height: 0; } .dash .chips.sys { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.2fr); } .dash .chips.aux { grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.3fr); } .dash .chip { position: relative; overflow: hidden; border-radius: 10px; background: var(--udt-surface0); border: 1px solid var(--udt-surface1); display: flex; align-items: center; gap: 10px; padding: 0 14px; min-width: 0; } .dash .chip.hot { border-color: var(--udt-accent); } .dash .chip svg, .dash .chip .fill { position: absolute; inset: 0; pointer-events: none; } .dash .chip svg { width: 100%; height: 100%; } .dash .chip svg path { stroke-width: 1.5; vector-effect: non-scaling-stroke; } .dash .chip svg path.hy { fill: url(#hyfill); } .dash .chip svg path.up { fill: color-mix(in srgb, var(--udt-text) 8%, transparent); } .dash .chip svg path.ln { fill: none; } .dash .chip svg path.hy.ln { stroke: url(#hyline); } .dash .chip svg path.up.ln { stroke: color-mix(in srgb, var(--udt-text) 30%, transparent); } .dash .chip .fill { right: auto; width: 0; background: color-mix(in srgb, var(--udt-accent) 20%, transparent); transition: width .4s; } /* Charging: streaks rain right to left into the fill's edge. The strip sits past the fill and the chip's overflow clips it; each layer moves a whole tile per loop, so it wraps seamlessly at its own speed. */ .dash .c-bat.charging .fill::after { content: ""; position: absolute; top: 0; bottom: 0; left: 100%; width: 100vw; --r: color-mix(in srgb, var(--udt-accent) 55%, transparent); background: linear-gradient(90deg, var(--r), transparent 14px) 0 22% / 47px 2px repeat-x, linear-gradient(90deg, var(--r), transparent 9px) 13px 45% / 31px 2px repeat-x, linear-gradient(90deg, var(--r), transparent 18px) 29px 68% / 59px 2px repeat-x, linear-gradient(90deg, var(--r), transparent 11px) 7px 88% / 41px 2px repeat-x; animation: bat-rain .9s linear infinite; } @keyframes bat-rain { to { background-position: -94px 22%, -49px 45%, -30px 68%, -75px 88%; } } @media (prefers-reduced-motion: reduce) { .dash .c-bat.charging .fill::after { animation: none; } } .dash .chip .ic { position: relative; flex: none; width: 1.4rem; font-size: 1.25rem; line-height: 1; color: var(--udt-overlay1); } .dash .chip .brand.ic { width: 20px; height: 20px; } .dash .chip .col { position: relative; display: flex; flex-direction: column; min-width: 0; } .dash .chip .n { font-size: 0.714rem; color: var(--udt-overlay1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .dash .chip .v { position: relative; font-size: 1.35rem; font-weight: 600; white-space: nowrap; line-height: 1.1; } .dash .chip .k { position: relative; font-size: 0.714rem; text-transform: uppercase; letter-spacing: .08em; color: var(--udt-overlay1); } .dash .chip .s { position: relative; font-size: 0.786rem; color: var(--udt-subtext0); white-space: nowrap; margin-left: auto; } .dash-mid { display: flex; flex-direction: column; gap: 12px; min-height: 0; } .dash-always { display: flex; gap: 12px; flex: 1; min-height: 0; } .dash .card { min-height: 0; min-width: 0; overflow: hidden; padding: 14px 16px; border-radius: 14px; background: var(--udt-mantle); border: 1px solid var(--udt-surface1); } .dash-music { flex: 1; } .dash-spend { flex: 1.4; display: flex; flex-direction: column; gap: 10px; } .dash-music .music .top { margin-bottom: 6px; } .dash-music .music .art { width: 52px; height: 52px; border-radius: 10px; } .dash-music .music .title { font-size: 1rem; } .dash-music .music .album { display: none; } .dash-music .music .seek { margin: 4px 0 8px; } .dash-music .music .controls { flex-wrap: nowrap; } .dash-music .music .controls button { min-height: 38px; min-width: 40px; font-size: 1rem; padding: 0; } .dash-music .music .vol { min-width: 0; } .music[hidden], .music [hidden] { display: none; } /* .art.empty sets display: flex */ /* The game: its cover as tall as the card, platform glyph, name, times. */ .music.game:not([hidden]) { display: flex; gap: 16px; align-items: center; height: 100%; } .music.game .cover { height: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 12px; flex: none; background: var(--udt-surface1); } .music.game .cover.sq { aspect-ratio: 1; } .music.game .cover.empty:not([hidden]) { display: flex; align-items: center; justify-content: center; font-size: 3rem; color: var(--udt-overlay0); } .music.game .meta { min-width: 0; display: flex; flex-direction: column; gap: 8px; } .music.game .plat { font-size: 2.4rem; line-height: 1; color: var(--udt-accent); } .music.game .plat small { font-family: inherit; font-size: 1rem; font-weight: 700; margin-left: 2px; } .music.game .title { font-size: 1.3rem; font-weight: 600; white-space: normal; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; } .music.game .stat:not([hidden]) { display: flex; gap: 8px; align-items: center; color: var(--udt-subtext0); } .music.game .stat .nf { color: var(--udt-accent); width: 1.2em; text-align: center; } .dash .prog { display: flex; flex-direction: column; gap: 6px; } .dash .prog header { display: flex; align-items: baseline; gap: 10px; } .dash .prog h3 { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 0.857rem; text-transform: uppercase; letter-spacing: .08em; color: var(--udt-subtext0); } .dash .prog .model { margin-left: auto; font-size: 0.786rem; color: var(--udt-overlay0); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .dash .prog .nums { display: flex; gap: 22px; align-items: baseline; } .dash .prog .big { font-size: 1.25rem; font-weight: 600; } .dash .prog .lbl { font-size: 0.714rem; text-transform: uppercase; letter-spacing: .08em; color: var(--udt-overlay0); } .dash .prog .sub { font-size: 0.786rem; color: var(--udt-subtext0); } .dash .prog.inline { flex-direction: row; align-items: baseline; gap: 12px; padding-top: 10px; border-top: 1px solid var(--udt-surface1); } .dash .prog.inline .model { margin-left: 0; flex: 1; } .dash .prog.inline .tok b { font-size: 1.1rem; font-weight: 600; margin-left: 4px; } .dash .stack { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: var(--udt-surface0); } .dash .stack i { display: block; height: 100%; } .dash .legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.75rem; color: var(--udt-subtext0); } .dash .legend span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; background: var(--c); } /* The running row: one to three chips in equal columns, each opening its slot (and detail) as a centred modal. A line too long for the slot slides to its end and back (dashboard.js sets --d and --t). */ .dash-running { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; flex: none; height: 52px; } .dash-running .chip { cursor: pointer; } .dash-running .chip.rec .ic { color: var(--udt-red); } .dash-running .chip.busy .fill { width: 30% !important; animation: slot-busy 1.6s ease-in-out infinite alternate; } .dash-running .chip .k { margin-left: auto; } .dash dialog.run-pop { margin: auto; width: min(760px, 92vw); max-height: 85vh; overflow-y: auto; overscroll-behavior: contain; color: var(--udt-text); padding: 16px 20px; } .dash dialog.run-pop[open] { display: flex; flex-direction: column; gap: 14px; } .dash dialog.run-pop::backdrop { background: color-mix(in srgb, var(--udt-crust) 55%, transparent); } .dash .run-pop .slot { flex: none; height: 96px; padding: 0; } .dash .run-pop .detail { display: flex; flex-direction: column; gap: 6px; font-size: 0.857rem; } .dash .run-pop .detail:empty { display: none; } .dash .run-pop .dl { display: flex; gap: 12px; } .dash .run-pop .dl .k { flex: none; width: 3rem; font-size: 0.714rem; text-transform: uppercase; letter-spacing: .08em; color: var(--udt-overlay1); padding-top: .15em; } .dash .run-pop .dl .v { color: var(--udt-subtext0); } .dash .run-pop .vm { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .dash .run-pop .vm .chip { height: 60px; } .dash .run-pop .plan { margin: 6px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 16px; } .dash .run-pop .plan li { display: flex; gap: 8px; padding: 4px 8px; border-radius: 8px; background: var(--udt-surface0); } .dash .run-pop .plan .pn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .dash .run-pop .plan .ps { flex: none; font-size: 0.786rem; color: var(--udt-overlay1); } .dash .run-pop .plan .ok .ps { color: var(--udt-green); } .dash .run-pop .plan .failed .ps, .dash .run-pop .plan .aborted .ps { color: var(--udt-red); } .dash .run-pop .plan .building { outline: 1px solid var(--udt-accent); } .dash .run-pop .plan .building .ps { color: var(--udt-accent); } .dash .slot { container: slot / inline-size; display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto 1fr; column-gap: 14px; row-gap: 4px; align-items: center; padding: 10px 16px 12px; cursor: pointer; } .dash .slot .sic { grid-column: 1; grid-row: 1 / 3; font-size: 1.9rem; width: 2.4rem; color: var(--udt-accent); } .dash .slot .rec { color: var(--udt-red); } .dash .slot .what { grid-column: 2; font-weight: 600; white-space: nowrap; overflow: hidden; } .dash .slot .pct { grid-column: 3; justify-self: end; font-size: 1.25rem; font-weight: 600; white-space: nowrap; } .dash .slot .meta { grid-column: 2; font-size: 0.786rem; color: var(--udt-subtext0); white-space: nowrap; overflow: hidden; } .dash .slot .what > span, .dash .slot .meta > span { display: inline-block; } .dash .slot .marq { -webkit-mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent); mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent); } .dash .slot .marq > span { animation: marq var(--t) ease-in-out infinite alternate; } @keyframes marq { 0%, 15% { transform: translateX(0); } 85%, 100% { transform: translateX(var(--d)); } } .dash .slot .act { grid-column: 3; grid-row: 2; justify-self: end; min-height: 0; height: 26px; padding: 0 10px; border-radius: 10px; font-size: 0.786rem; background: transparent; border: 1px solid var(--udt-red); color: var(--udt-red); } .dash .slot .estop.act { width: auto; flex-direction: row; gap: 6px; } .dash .slot .estop.act .estop-label { font-size: 0.714rem; } .dash .slot .bar { grid-column: 1 / -1; height: 8px; border-radius: 4px; background: var(--udt-surface0); overflow: hidden; align-self: end; } .dash .slot .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--udt-border-1), var(--udt-border-2), var(--udt-border-3)); } .dash .slot .bar.busy i { width: 30%; animation: slot-busy 1.6s ease-in-out infinite alternate; } .dash .slot .bar:not(.busy) i { transition: width 0.6s ease; } @keyframes slot-busy { from { margin-left: 0; } to { margin-left: 70%; } } .dash .slot .sthumb { display: none; } @container slot (min-width: 700px) { .dash .slot .sthumb:not([hidden]) { display: block; grid-column: 1; grid-row: 1 / 3; width: 56px; height: 56px; object-fit: contain; } .dash .slot:has(.sthumb:not([hidden])) .sic { display: none; } } /* Action icons, each in Hyprland's rotating border. */ .dash-acts { display: flex; justify-content: center; align-items: center; gap: 28px; min-height: 0; } .dash-acts button { position: relative; display: grid; place-items: center; padding: 0; height: 100%; max-height: 64px; aspect-ratio: 1; border-radius: 16px; font-size: 1.7rem; line-height: 1; background: var(--udt-surface0); border: 0; color: var(--udt-text); } .dash-acts button.fail { color: var(--udt-red); } /* The Nerd Font glyphs draw past their advance: dashboard.js shifts each by the gap between its ink and its advance (inkShift). */ .dash-acts button i { display: block; line-height: 1; font-style: normal; } /* The same rotating three-hue gradient Hyprland draws on window borders, read from ~/.cache/udt/udt-border.lua via /theme.css. */ .dash-acts button::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; background: linear-gradient(var(--border-angle), var(--udt-border-1), var(--udt-border-2), var(--udt-border-3), var(--udt-border-1)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; pointer-events: none; /* Hyprland: speed 30 * 100 ms, flatlinetwo = linear, style = loop */ animation: border-rotate 3s linear infinite; } /* VMs tab: one column. A running VM is a tile as tall as the tab, its screen filling what the rest leaves; with one running it drops the card look and is the whole tab, with more they stack as cards and the tab scrolls. A shut-off VM is a short card below them, no screen or trends. Hold buttons fill red over --hold (hold.js). Controls are 56px or more. */ .vm-grid { display: flex; flex-direction: column; gap: 14px; padding: 4px 2px; } .vm-tile.on { order: -1; height: calc(100dvh - 120px); } .vm-tile:not(.on) .vm-screen, .vm-tile:not(.on) .vm-trends { display: none; } .vm-grid.solo .vm-tile.on { background: none; border-color: transparent; padding: 0; } .vm-grid[hidden], .vm-off[hidden], .vm-err[hidden], .vm-snapacts[hidden], .vm-screen img[hidden] { display: none; } .vm-grid.empty::before { content: "No VMs defined."; color: var(--udt-subtext0); } .vm-tile, .vm-sheet { display: flex; flex-direction: column; gap: 10px; } .vm-tile { padding: 12px; border-radius: 16px; background: var(--udt-surface0); border: 2px solid transparent; } .vm-tile.on { border-color: var(--udt-border-1); } .vm-tile.busy, .vm-sheet.busy { opacity: .6; pointer-events: none; } .vm-screen { position: relative; flex: 1; min-height: 0; border-radius: 10px; background: var(--udt-crust); display: grid; place-items: center; overflow: hidden; } .vm-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; } .vm-glyph { font-size: 4rem; color: var(--udt-surface2); } .vm-screen .vm-state { position: absolute; top: 8px; left: 8px; } .vm-state { padding: 2px 10px; border-radius: 999px; background: var(--udt-surface2); font-size: 0.857rem; } .vm-state.good { background: var(--udt-green); color: var(--udt-crust); } .vm-state.warn { background: var(--udt-yellow); color: var(--udt-crust); } .vm-state.bad { background: var(--udt-red); color: var(--udt-crust); } .vm-info { display: flex; align-items: baseline; gap: 10px; min-width: 0; } .vm-name { font-size: 1.286rem; } .vm-status { color: var(--udt-subtext0); font-size: 0.857rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .vm-trends { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .vm-trend { position: relative; height: 54px; border-radius: 10px; background: var(--udt-surface1); overflow: hidden; display: flex; align-items: flex-end; justify-content: space-between; padding: 4px 8px; } .vm-trend svg { position: absolute; inset: 0; width: 100%; height: 100%; } .vm-trend path.hy { fill: url(#vmfill); } .vm-trend path.hy.ln { fill: none; stroke: url(#vmline); stroke-width: 2; vector-effect: non-scaling-stroke; } .vm-trend .k, .vm-snaphead .k { position: relative; font-size: 0.714rem; text-transform: uppercase; letter-spacing: .08em; color: var(--udt-overlay0); } .vm-trend .v { position: relative; font-weight: 600; } .vm-err { color: var(--udt-red); font-size: 0.857rem; } .vm-bar { display: flex; align-items: center; gap: 12px; } .vm .ib, .vm-sheet .ib { min-width: 56px; min-height: 56px; font-size: 1.5rem; border-radius: 14px; padding: 0 12px; } .vm-more { margin-left: auto; } .vm-power { width: 72px; height: 72px; border-radius: 50%; font-size: 2rem; padding: 0; } .vm-power.go { background: color-mix(in srgb, var(--udt-green) 30%, transparent); border-color: var(--udt-green); } .vm-sshb.ready { border-color: var(--udt-accent); color: var(--udt-accent); } .vm .hold, .vm-sheet .hold { position: relative; overflow: hidden; isolation: isolate; touch-action: none; } .vm .hold:not(.vm-power), .vm-sheet .hold { border-color: var(--udt-red); } .vm .hold::before, .vm-sheet .hold::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--udt-red); transform: scaleX(0); transform-origin: left; } .vm .hold.holding::before, .vm-sheet .hold.holding::before { transform: scaleX(1); transition: transform var(--hold, 800ms) linear; } dialog.vm-sheet { margin: auto; width: min(760px, 92vw); max-height: 85vh; overflow-y: auto; overscroll-behavior: contain; padding: 18px; border: 0; border-radius: 18px; background: var(--udt-base); color: var(--udt-text); } dialog.vm-sheet:not([open]) { display: none; } dialog.vm-sheet::backdrop { background: color-mix(in srgb, var(--udt-crust) 55%, transparent); } .vm-acts, .vm-snapacts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; } .vm-snaphead { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; } .vm-timeline { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; color: var(--udt-subtext0); } .vm-snap { flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 56px; } .vm-snap span { font-size: 0.786rem; color: var(--udt-subtext0); } .vm-snap.current { border-color: var(--udt-accent); } .vm-snap.on { background: var(--udt-surface2); } .vm-snapname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; } /* Xbox tab */ .xbox { display: flex; flex-direction: column; gap: 14px; padding: 4px 2px; } .xbox .xb-on, .xbox .xb-on > * { min-width: 0; } .xbox .xb-on { display: flex; flex-direction: column; gap: 14px; } .xbox .xb-on[hidden], .xbox .xb-off[hidden] { display: none; } .xbox .xb-card { background: var(--udt-mantle); border: 1px solid var(--udt-surface0); border-radius: 18px; padding: 14px; } .xbox .xb-head { display: flex; align-items: center; gap: 14px; } .xbox .xb-hero { display: flex; flex-direction: column; gap: 14px; position: relative; isolation: isolate; overflow: hidden; padding: 18px; border-radius: 18px; border: 1px solid var(--udt-surface0); background: var(--udt-accent); } .xbox .xb-hero::before, .xbox .xb-hero::after { content: ""; position: absolute; z-index: -1; pointer-events: none; } .xbox .xb-hero::before { inset: -60px; background: var(--xb-bg, none) center / cover; filter: grayscale(1) blur(8px); mix-blend-mode: multiply; } .xbox .xb-hero::after { inset: 0; background: linear-gradient(160deg, color-mix(in srgb, var(--udt-base) 50%, transparent), color-mix(in srgb, var(--udt-base) 10%, transparent)); } .xbox .xb-hero .xb-card { background: color-mix(in srgb, var(--udt-mantle) 50%, transparent); } .xbox .xb-pic { width: 64px; height: 64px; border-radius: 50%; background: var(--udt-surface0); } .xbox .xb-who { flex: 1; min-width: 0; } .xbox .xb-tag { font-size: 1.4rem; font-weight: 700; } .xbox .xb-pres { color: var(--udt-subtext0); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .xbox .xb-score { font-size: 1.3rem; font-weight: 600; color: var(--udt-accent); } .xbox .xb-stale, .xbox .xb-err { color: var(--udt-red); font-size: 0.857rem; } .xbox .xb-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; } .xbox .xb-now { display: flex; gap: 16px; align-items: center; border-color: var(--udt-accent); } .xbox .xb-cover { width: 140px; aspect-ratio: 1; object-fit: cover; border-radius: 12px; } .xbox .xb-ninfo { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; } .xbox .xb-nlabel, .xbox .xb-section { color: var(--udt-subtext0); font-size: 0.857rem; text-transform: uppercase; letter-spacing: 0.06em; } .xbox .xb-ntitle { font-size: 1.4rem; font-weight: 700; } .xbox .xb-nrich { color: var(--udt-subtext1); } .xbox .xb-clock { font-size: 1.6rem; font-weight: 600; } .xbox .xb-console { display: flex; flex-direction: column; gap: 10px; } .xbox .xb-chead { display: flex; align-items: center; gap: 10px; } .xbox .xb-glyph { font-size: 1.8rem; color: var(--udt-green); } .xbox .xb-cnames { flex: 1; min-width: 0; } .xbox .xb-cline { display: flex; align-items: center; gap: 10px; min-width: 0; } .xbox .xb-cname { font-size: 1.15rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .xbox .xb-cline .xb-pill { flex: none; } .xbox .xb-cmodel { color: var(--udt-subtext0); font-size: 0.857rem; } .xbox .xb-flags { display: flex; flex-wrap: wrap; gap: 8px; } .xbox .xb-flag { padding: 2px 10px; border-radius: 999px; font-size: 0.857rem; border: 1px solid var(--udt-surface1); color: var(--udt-subtext0); } .xbox .xb-flag.on { border-color: var(--udt-green); color: var(--udt-green); } .xbox .xb-gart { position: relative; } .xbox .xb-badge { position: absolute; left: 6px; bottom: 6px; padding: 2px 8px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; background: var(--udt-green); color: var(--udt-crust); } .xbox .xb-pill { padding: 4px 12px; border-radius: 999px; background: var(--udt-surface1); font-weight: 600; } .xbox .xb-pill.good { background: var(--udt-green); color: var(--udt-crust); } .xbox .xb-pill.warn { background: var(--udt-yellow); color: var(--udt-crust); } .xbox .ib { min-width: 56px; min-height: 56px; border-radius: 14px; font-size: 1.5rem; background: var(--udt-surface0); border: 1px solid var(--udt-surface1); color: var(--udt-text); cursor: pointer; } .xbox .xb-power { width: 64px; height: 64px; border-radius: 50%; font-size: 1.8rem; padding: 0; } .xbox .xb-power.on { border-color: var(--udt-green); color: var(--udt-green); } .xbox .hold { position: relative; overflow: hidden; isolation: isolate; touch-action: none; } .xbox .hold::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--udt-red); transform: scaleX(0); transform-origin: left; } .xbox .hold.holding::before { transform: scaleX(1); transition: transform var(--hold, 800ms) linear; } .xbox .xb-disk { display: flex; flex-direction: column; gap: 4px; color: var(--udt-subtext1); font-size: 0.857rem; } .xbox .xb-media { display: flex; flex-wrap: wrap; gap: 10px; } .xbox .xb-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; } .xbox .xb-game { display: flex; flex-direction: column; gap: 4px; min-width: 0; } .xbox .xb-gcover { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: var(--udt-surface0); } .xbox .xb-gname { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .xbox .xb-gmeta { color: var(--udt-subtext0); font-size: 0.857rem; } .xbox .xb-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; } .xbox .xb-list { display: flex; flex-direction: column; gap: 8px; } .xbox .xb-row { display: flex; align-items: center; gap: 10px; } .xbox .xb-rpic { width: 44px; height: 44px; border-radius: 10px; background: var(--udt-surface0); flex: none; } .xbox .xb-row.on .xb-rpic { outline: 2px solid var(--udt-green); } .xbox .xb-rtext { flex: 1; min-width: 0; } .xbox .xb-rtitle { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .xbox .xb-rsub { color: var(--udt-subtext0); font-size: 0.857rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .xbox .xb-rside { color: var(--udt-accent); font-weight: 600; } .xbox .xb-login { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 48px 12px; text-align: center; } .xbox .xb-logo { font-size: 4rem; color: var(--udt-green); } .xbox .xb-ltitle { font-size: 1.4rem; font-weight: 700; } .xbox .xb-lhint, .xbox .xb-loading { color: var(--udt-subtext0); } .xbox .xb-code { font-size: 3rem; font-weight: 700; letter-spacing: 0.15em; color: var(--udt-accent); } .xbox .xb-lbtn { padding: 0 32px; font-size: 1.2rem; }