/* Byte Studio — tactile Stream Deck control surface for streamers. Warm, light, glassy. Deliberately NOT the dark telemetry dashboard. */ :root { --st-bg-1: #fff4ec; --st-bg-2: #ffe9f3; --st-bg-3: #eef0ff; --st-ink: #2b2440; --st-ink-soft: #6b6280; --st-bg-base: #ffffff; --st-card: rgba(255, 255, 255, 0.72); --st-card-solid: #ffffff; --st-border: rgba(120, 90, 180, 0.16); --st-shadow: 0 10px 30px rgba(120, 80, 180, 0.16); --st-shadow-press: 0 4px 12px rgba(120, 80, 180, 0.18); --st-accent: #8b5cf6; --st-accent-2: #ff7aa8; --st-live: #22c55e; --st-warn: #f59e0b; --st-danger: #ef4444; --st-radius: 22px; --st-radius-sm: 14px; --st-font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", sans-serif; --st-mono: ui-monospace, "SF Mono", "Cascadia Code", "JetBrains Mono", "Fira Code", monospace; } * { box-sizing: border-box; } /* Accessibility: honor reduced-motion globally (kills all animation/transition). */ @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; } } html, body { margin: 0; padding: 0; } body.studio { min-height: 100vh; font-family: var(--st-font); color: var(--st-ink); background: radial-gradient(1200px 600px at 12% -8%, var(--st-bg-2), transparent 60%), radial-gradient(900px 600px at 100% 0%, var(--st-bg-3), transparent 55%), linear-gradient(160deg, var(--st-bg-1), var(--st-bg-base) 75%); background-attachment: fixed; -webkit-font-smoothing: antialiased; } /* Function-forward: data/numbers in mono-inspired type (visual language). */ .mood-score, .vital-val, .status-uptime strong, .health-chip, .brand-tag { font-family: var(--st-mono); } .studio-shell { max-width: 980px; margin: 0 auto; padding: 18px 18px 40px; } /* ---------- Brand ---------- */ .studio-brand { display: flex; align-items: center; gap: 8px; padding: 0 4px 14px; } .brand-mark { font-weight: 900; letter-spacing: 0.14em; font-size: 1rem; color: var(--st-accent); } .brand-tag { font-weight: 700; letter-spacing: 0.22em; font-size: 0.7rem; color: var(--st-ink-soft); padding: 3px 8px; border: 1px solid var(--st-border); border-radius: 999px; } /* ---------- Status header ---------- */ .studio-status { display: flex; align-items: center; gap: 16px; padding: 20px 22px; background: var(--st-card); backdrop-filter: blur(14px); border: 1px solid var(--st-border); border-radius: var(--st-radius); box-shadow: var(--st-shadow); } .status-orb { position: relative; width: 16px; height: 16px; border-radius: 50%; background: var(--st-ink-soft); flex: 0 0 auto; } .status-orb.is-live { background: var(--st-live); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); animation: st-pulse 1.8s infinite; } .status-orb.is-paused { background: var(--st-warn); } @keyframes st-pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); } 70% { box-shadow: 0 0 0 14px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } } .status-main { flex: 1 1 auto; min-width: 0; } .status-title { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; margin: 0; } .status-sub { margin: 2px 0 0; color: var(--st-ink-soft); font-size: 0.92rem; } .status-sub b { color: var(--st-accent); } .status-uptime { text-align: right; font-variant-numeric: tabular-nums; color: var(--st-ink-soft); font-size: 0.85rem; } .status-uptime strong { display: block; color: var(--st-ink); font-size: 1.05rem; } /* ---------- Mood bar ---------- */ .studio-mood { margin: 16px 0 18px; padding: 16px 20px; background: var(--st-card); backdrop-filter: blur(14px); border: 1px solid var(--st-border); border-radius: var(--st-radius); box-shadow: var(--st-shadow); } .mood-row { display: flex; align-items: center; gap: 14px; } .mood-face { width: 40px; height: 40px; flex: 0 0 auto; color: var(--st-accent); } .mood-text { display: flex; flex-direction: column; line-height: 1.2; } .mood-label { font-weight: 800; text-transform: capitalize; } .mood-caption { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--st-ink-soft); } .mood-score { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 800; font-size: 1.4rem; color: var(--st-accent); } .mood-track { margin-top: 10px; height: 12px; border-radius: 999px; background: rgba(120, 90, 180, 0.12); overflow: hidden; } .mood-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--st-accent-2), var(--st-accent)); transition: width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); } /* ---------- S1: operational health (one-glance) ---------- */ .status-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; } .health-chip { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; padding: 4px 11px; border-radius: 999px; color: #fff; background: var(--st-ink-soft); white-space: nowrap; } .health-chip.health-healthy { background: var(--st-live); } .health-chip.health-attention { background: var(--st-warn); } .health-chip.health-critical { background: var(--st-danger); } .health-chip.health-offline { background: var(--st-ink-soft); } /* Subtle left accent + glow on the status card by health. */ .studio-status { border-left: 6px solid transparent; transition: border-color 0.4s ease; } .studio-status.health-healthy { border-left-color: var(--st-live); } .studio-status.health-attention { border-left-color: var(--st-warn); } .studio-status.health-critical { border-left-color: var(--st-danger); } /* ---------- S1: Byte copilot hint ---------- */ .byte-hint { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding: 12px 16px; border-radius: var(--st-radius-sm); background: rgba(139, 92, 246, 0.1); border: 1px solid var(--st-border); font-size: 0.92rem; color: var(--st-ink); } .byte-hint.is-hidden { display: none; } .byte-hint-icon { width: 20px; height: 20px; flex: 0 0 auto; color: var(--st-accent); } .byte-hint-text { flex: 1; } .byte-hint-close { border: none; background: none; font-size: 1.2rem; line-height: 1; color: var(--st-ink-soft); cursor: pointer; padding: 0 4px; } @media (prefers-reduced-motion: no-preference) { .byte-hint { transition: opacity 0.3s ease; } @starting-style { .byte-hint { opacity: 0; } } } /* ---------- S1: vitals (sparklines) ---------- */ .studio-vitals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; } .vital { background: var(--st-card-solid); border-radius: var(--st-radius-sm); box-shadow: var(--st-shadow); padding: 12px 14px; } .vital-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; } .vital-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--st-ink-soft); } .vital-val { font-weight: 800; font-variant-numeric: tabular-nums; font-size: 1.05rem; color: var(--st-accent); } .vital-val.trend-down { color: var(--st-danger); } .vital-val.trend-up { color: var(--st-live); } .vital-spark { width: 100%; height: 24px; display: block; } .spark-path { fill: none; stroke: var(--st-accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; } @media (max-width: 560px) { .studio-vitals { grid-template-columns: 1fr; } .status-right { align-items: flex-start; } } /* ---------- Retention coach banner ---------- */ .retention { margin: 0 0 16px; padding: 16px 20px; border-radius: var(--st-radius); border-left: 6px solid var(--st-warn); background: rgba(245, 158, 11, 0.1); box-shadow: var(--st-shadow); } .retention.is-hidden { display: none; } .retention.band-high { border-left-color: #f97316; background: rgba(249, 115, 22, 0.12); } .retention.band-critical { border-left-color: var(--st-danger); background: rgba(239, 68, 68, 0.12); } .retention-head { display: flex; align-items: center; gap: 10px; } .retention-band { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: #fff; background: var(--st-warn); padding: 3px 10px; border-radius: 999px; } .band-high .retention-band { background: #f97316; } .band-critical .retention-band { background: var(--st-danger); } .retention-title { font-weight: 800; font-size: 1rem; } .retention-tactic { margin: 6px 0 0; font-size: 0.92rem; color: var(--st-ink); } /* ---------- Tile grid ---------- */ .studio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; } .tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-height: 132px; padding: 18px; border: none; cursor: pointer; text-align: left; color: var(--st-ink); background: var(--st-card-solid); border-radius: var(--st-radius); box-shadow: var(--st-shadow); transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.2s ease; font-family: inherit; } .tile:hover { transform: translateY(-2px); } .tile:active { transform: translateY(1px) scale(0.985); box-shadow: var(--st-shadow-press); } .tile:focus-visible { outline: 3px solid var(--st-accent); outline-offset: 2px; } .tile:disabled { opacity: 0.5; cursor: not-allowed; transform: none; } .tile-ico { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 11px; border-radius: 14px; color: var(--st-accent); background: rgba(139, 92, 246, 0.1); } .tile-ico svg { width: 100%; height: 100%; } .tile-label { font-size: 1.05rem; font-weight: 800; letter-spacing: -0.01em; } .tile-sub { margin-top: auto; font-size: 0.82rem; color: var(--st-ink-soft); } /* Accent variants */ .tile.tile-primary { background: linear-gradient(155deg, #9d6bff, #7c3aed); color: #fff; } .tile.tile-primary .tile-sub { color: rgba(255, 255, 255, 0.85); } .tile.tile-live { background: linear-gradient(155deg, #fb7185, #f43f6e); color: #fff; } .tile.tile-live .tile-sub { color: rgba(255, 255, 255, 0.85); } .tile.tile-primary .tile-ico, .tile.tile-live .tile-ico { color: #fff; background: rgba(255, 255, 255, 0.18); } .tile-badge { position: absolute; top: 12px; right: 12px; min-width: 22px; height: 22px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; font-size: 0.78rem; font-weight: 800; color: #fff; background: var(--st-danger); border-radius: 999px; } .tile-badge.is-hidden { display: none; } /* ---------- Live ticker ---------- */ .studio-ticker { margin-top: 18px; padding: 16px 20px; background: var(--st-card); backdrop-filter: blur(14px); border: 1px solid var(--st-border); border-radius: var(--st-radius); box-shadow: var(--st-shadow); } .ticker-head { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--st-ink-soft); margin-bottom: 10px; } .ticker-pulse { display: inline-flex; width: 18px; height: 18px; color: var(--st-live); } .ticker-pulse svg { width: 100%; height: 100%; } .ticker-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-height: 220px; overflow-y: auto; } .ticker-item { display: flex; gap: 10px; align-items: baseline; font-size: 0.9rem; animation: st-fadein 0.4s ease; } .ticker-item time { flex: 0 0 auto; font-variant-numeric: tabular-nums; color: var(--st-ink-soft); font-size: 0.8rem; } .ticker-empty { color: var(--st-ink-soft); font-size: 0.9rem; font-style: italic; } @keyframes st-fadein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } } /* ---------- Footer link ---------- */ .studio-foot { margin-top: 22px; text-align: center; font-size: 0.82rem; color: var(--st-ink-soft); } .studio-foot a { color: var(--st-accent); text-decoration: none; font-weight: 600; } /* ---------- Toast ---------- */ .studio-toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px); background: var(--st-ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 0.9rem; box-shadow: var(--st-shadow); opacity: 0; pointer-events: none; transition: opacity 0.25s ease, transform 0.25s ease; z-index: 50; } .studio-toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); } .studio-toast.is-error { background: var(--st-danger); } /* ---------- S2: Command palette ---------- */ .cmd-palette { position: fixed; inset: 0; display: none; align-items: flex-start; justify-content: center; padding-top: 12vh; background: rgba(20, 14, 40, 0.4); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); z-index: 70; } .cmd-palette.is-open { display: flex; } .cmd-box { width: 100%; max-width: 520px; background: var(--st-card-solid); border: 1px solid var(--st-border); border-radius: var(--st-radius); box-shadow: var(--st-shadow); overflow: hidden; } .cmd-input { width: 100%; padding: 16px 18px; font-size: 1rem; border: none; border-bottom: 1px solid var(--st-border); background: transparent; color: var(--st-ink); font-family: inherit; outline: none; } .cmd-list { list-style: none; margin: 0; padding: 6px; max-height: 320px; overflow-y: auto; } .cmd-item { display: flex; align-items: center; justify-content: space-between; padding: 11px 14px; border-radius: var(--st-radius-sm); cursor: pointer; color: var(--st-ink); } .cmd-item.is-active { background: rgba(139, 92, 246, 0.14); } .cmd-item kbd { font-family: var(--st-mono); font-size: 0.72rem; padding: 2px 7px; border: 1px solid var(--st-border); border-radius: 6px; color: var(--st-ink-soft); } @media (prefers-reduced-motion: no-preference) { .cmd-palette { transition: opacity 0.18s ease; } @starting-style { .cmd-palette.is-open { opacity: 0; } } } /* ---------- S6: onboarding ---------- (The byte-mini avatar + bm-* keyframes were removed in O1 — the shared Byte mascot 2.0 replaced it; styles live in mascot.css.) */ .gate-steps { list-style: none; margin: 18px 0 0; padding: 0; text-align: left; display: flex; flex-direction: column; gap: 9px; font-size: 0.82rem; color: var(--st-ink-soft); } .gate-steps b { color: var(--st-accent); } .gate-steps code { font-family: var(--st-mono); font-size: 0.78rem; background: rgba(139, 92, 246, 0.1); padding: 1px 5px; border-radius: 5px; } /* ---------- S3: layout customization ---------- */ .tile.is-hidden { display: none; } .studio-grid.density-compact { gap: 10px; } .studio-grid.density-compact .tile { min-height: 96px; padding: 13px; gap: 5px; } .studio-grid.density-compact .tile-ico { width: 38px; height: 38px; padding: 9px; } .studio-grid.density-compact .tile-label { font-size: 0.95rem; } .layout-section { margin-bottom: 16px; } .layout-sub { display: block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--st-ink-soft); margin-bottom: 8px; } .layout-row { display: flex; gap: 8px; flex-wrap: wrap; } .layout-chip { padding: 8px 14px; font-size: 0.85rem; font-weight: 600; border: 1px solid var(--st-border); border-radius: 999px; background: var(--st-card); color: var(--st-ink); cursor: pointer; font-family: inherit; } .layout-chip:hover { border-color: var(--st-accent); } .layout-tiles { list-style: none; margin: 0; padding: 0; max-height: 240px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; } .layout-tile-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border-radius: var(--st-radius-sm); background: rgba(120, 90, 180, 0.06); font-size: 0.9rem; font-weight: 600; } .layout-tile-row.is-hidden-row { opacity: 0.5; } .layout-tile-controls { display: flex; gap: 6px; } .layout-mini-btn { border: 1px solid var(--st-border); background: var(--st-card-solid); color: var(--st-ink); border-radius: 8px; padding: 4px 9px; font-size: 0.78rem; cursor: pointer; font-family: inherit; } /* ---------- Token gate overlay ---------- */ .studio-gate { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(43, 36, 64, 0.45); backdrop-filter: blur(6px); z-index: 60; } .studio-gate.is-open { display: flex; } .gate-card { width: 100%; max-width: 380px; background: var(--st-card-solid); border-radius: var(--st-radius); padding: 26px; box-shadow: var(--st-shadow); text-align: center; } .gate-card h2 { margin: 0 0 6px; font-size: 1.3rem; } .gate-card p { margin: 0 0 16px; color: var(--st-ink-soft); font-size: 0.9rem; } .gate-card input { width: 100%; padding: 12px 14px; font-size: 1rem; border: 1px solid var(--st-border); border-radius: var(--st-radius-sm); margin-bottom: 12px; font-family: inherit; } .gate-card button { width: 100%; padding: 12px; font-size: 1rem; font-weight: 700; color: #fff; background: linear-gradient(155deg, #9d6bff, #7c3aed); border: none; border-radius: var(--st-radius-sm); cursor: pointer; font-family: inherit; } /* ---------- Modal (FALAR) ---------- */ .studio-modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(43, 36, 64, 0.45); backdrop-filter: blur(6px); z-index: 55; } .studio-modal.is-open { display: flex; } .modal-card { width: 100%; max-width: 440px; background: var(--st-card-solid); border-radius: var(--st-radius); padding: 24px; box-shadow: var(--st-shadow); } .modal-card h2 { margin: 0 0 14px; font-size: 1.25rem; } .modal-card textarea { width: 100%; min-height: 90px; padding: 12px 14px; font-size: 1rem; border: 1px solid var(--st-border); border-radius: var(--st-radius-sm); font-family: inherit; resize: vertical; } .modal-actions { display: flex; gap: 10px; margin-top: 14px; } .modal-actions button { flex: 1; padding: 12px; font-size: 0.95rem; font-weight: 700; border: none; border-radius: var(--st-radius-sm); cursor: pointer; font-family: inherit; } .btn-send { color: #fff; background: linear-gradient(155deg, #9d6bff, #7c3aed); } .btn-cancel { color: var(--st-ink); background: rgba(120, 90, 180, 0.12); } .btn-ghost { width: 100%; margin-top: 10px; padding: 8px; font-size: 0.85rem; font-weight: 600; color: var(--st-ink-soft); background: none; border: none; cursor: pointer; font-family: inherit; } .modal-hint { margin: 0 0 14px; padding: 10px 12px; font-size: 0.85rem; color: var(--st-ink-soft); background: rgba(120, 90, 180, 0.08); border-radius: var(--st-radius-sm); } .modal-card input { width: 100%; padding: 12px 14px; font-size: 1rem; border: 1px solid var(--st-border); border-radius: var(--st-radius-sm); font-family: inherit; } .recap-body { max-height: 320px; overflow-y: auto; font-size: 0.95rem; line-height: 1.5; color: var(--st-ink); white-space: pre-wrap; } /* ---------- Approvals ---------- */ .approve-list { max-height: 360px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; margin-bottom: 4px; } .approve-empty { color: var(--st-ink-soft); font-size: 0.92rem; text-align: center; padding: 18px 0; } .approve-item { border: 1px solid var(--st-border); border-radius: var(--st-radius-sm); padding: 14px; background: rgba(120, 90, 180, 0.04); } .approve-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; } .approve-kind { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--st-ink-soft); } .approve-risk { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; color: #fff; background: var(--st-ink-soft); } .approve-risk.risk-low { background: var(--st-live); } .approve-risk.risk-medium { background: var(--st-warn); } .approve-risk.risk-high { background: var(--st-danger); } .approve-title { margin: 0 0 4px; font-weight: 700; font-size: 1rem; } .approve-body { margin: 0 0 10px; font-size: 0.88rem; color: var(--st-ink-soft); line-height: 1.45; } .approve-buttons { display: flex; gap: 8px; } .approve-buttons button { flex: 1; padding: 9px; font-size: 0.88rem; font-weight: 700; border: none; border-radius: var(--st-radius-sm); cursor: pointer; font-family: inherit; } .gate-ico { display: inline-flex; width: 44px; height: 44px; margin: 0 auto 10px; padding: 10px; color: var(--st-accent); background: rgba(139, 92, 246, 0.12); border-radius: 14px; } .gate-ico svg { width: 100%; height: 100%; } /* ---------- Responsive ---------- */ @media (max-width: 560px) { .studio-grid { grid-template-columns: repeat(2, 1fr); } .status-uptime { display: none; } .status-title { font-size: 1.25rem; } }