/* * 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; } #tab-body { flex: 1; min-height: 0; overflow: 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%; } .panel { min-height: 0; min-width: 0; } @property --border-angle { syntax: ""; initial-value: 0deg; inherits: false; } .grid-stack-item-content.panel { position: absolute; display: flex; flex-direction: column; padding: 0; overflow: hidden; border-radius: 16px; background: var(--udt-surface0); border: 0; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); } /* The same rotating three-hue gradient Hyprland draws on window borders, read from ~/.cache/udt/udt-border.lua via /theme.css. */ .grid-stack-item-content.panel::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; } @keyframes border-rotate { to { --border-angle: 360deg; } } .panel-head { flex: none; display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--udt-mantle); border-bottom: 1px solid var(--udt-surface1); } .panel-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--udt-accent); flex: none; } .panel .panel-head h2 { flex: 1; margin: 0; font-size: 0.929rem; font-weight: 600; letter-spacing: .02em; color: var(--udt-text); } .panel-drag { font: inherit; color: var(--udt-overlay0); background: transparent; border: 0; padding: 2px 6px; border-radius: 6px; cursor: grab; touch-action: none; } .panel-drag:hover { color: var(--udt-subtext0); background: var(--udt-surface1); } .panel-fold { font: inherit; min-width: 36px; min-height: 32px; color: var(--udt-overlay0); background: transparent; border: 0; border-radius: 6px; cursor: pointer; } .panel-fold:hover { color: var(--udt-subtext0); background: var(--udt-surface1); } /* Folded: the card ends at its title bar instead of filling its grid row. */ .grid-stack > .grid-stack-item > .grid-stack-item-content.panel.folded { bottom: auto; } .panel.folded .panel-body { display: none; } .panel.folded .panel-head { border-bottom: 0; } .panel-body { flex: 1; min-height: 0; overflow: auto; padding: 14px; } .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: 40px; min-width: 44px; } .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; gap: 8px; } .sbb .sbb-now { margin-bottom: 8px; font-size: 0.857rem; font-weight: 600; } .grid-stack-item .ui-resizable-se { width: 22px; height: 22px; right: 2px; bottom: 2px; opacity: .45; } .grid-stack-item:hover .ui-resizable-se { opacity: 1; } .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; } .sbb .id { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .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; } .tablet .bars { height: 0.8em; margin-left: 6px; vertical-align: baseline; fill: var(--udt-surface2); } .tablet .bars .lit { fill: var(--udt-accent); } .mfoot { margin-top: 10px; font-size: 0.857rem; color: var(--udt-overlay0); 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; 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; } .llm { display: flex; flex-direction: column; gap: 10px; } .llm-sec { padding: 10px 12px; border-radius: 12px; background: var(--udt-mantle); border: 1px solid var(--udt-surface1); } .llm-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; } .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.opencode { -webkit-mask-image: url(/logos/opencode.svg); mask-image: url(/logos/opencode.svg); } .llm-head h3 { font-size: 0.857rem; text-transform: uppercase; letter-spacing: .08em; color: var(--udt-subtext0); flex: none; } .llm-head .model { margin-left: auto; max-width: 60%; font-size: 0.857rem; color: var(--udt-overlay0); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .gauges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; } .gauge { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 12px; background: var(--udt-surface1); } .glabel { font-size: 0.714rem; text-transform: uppercase; letter-spacing: .08em; color: var(--udt-overlay0); } .gvalue { font-size: 1.714rem; font-weight: 600; line-height: 1.1; } .gbar { height: 6px; background: var(--udt-surface2); border-radius: 3px; overflow: hidden; } .gbar > i { display: block; height: 100%; background: var(--udt-accent); } .lbig { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--udt-surface1); } .lpair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .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-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: 48px; height: 48px; 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.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-status { flex: 1; color: var(--udt-subtext0); font-size: 0.857rem; } .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 .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 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; }