@font-face { font-family: "Space Grotesk"; src: url("/fonts/space-grotesk.woff") format("woff"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/fonts/plex-mono-regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/fonts/plex-mono-medium.woff") format("woff"); font-weight: 500 600; font-display: swap; }
:root {
--sans: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
--mono: "Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
--top-h: 52px;
--tr-h: 62px;
--tab-h: 56px;
--sat: env(safe-area-inset-top, 0px);
--sab: env(safe-area-inset-bottom, 0px);
--gap: 10px;
--r: 3px;
--ease: cubic-bezier(.2,.7,.2,1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
font-family: var(--sans); font-size: 15px; line-height: 1.4;
-webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
overscroll-behavior-y: none;
-webkit-tap-highlight-color: transparent;
transition: background-color .35s var(--ease), color .35s var(--ease);
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; touch-action: manipulation; }
button:disabled { cursor: default; opacity: .32; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
canvas { display: block; width: 100%; height: 100%; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.lbl { font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
.lbl.dim { color: var(--text-3); }
.ico { display: inline-flex; width: 20px; height: 20px; flex: none; }
.ico svg { width: 100%; height: 100%; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; flex: none; }
.sw-piano { background: var(--piano); } .sw-lead { background: var(--lead); } .sw-bass { background: var(--bass); } .sw-drums { background: var(--drums); }
.app { min-height: 100dvh; }
.topbar {
position: sticky; top: 0; z-index: 20;
height: calc(var(--top-h) + var(--sat)); padding: var(--sat) 14px 0;
display: flex; align-items: center; gap: 12px;
background: color-mix(in srgb, var(--bg) 92%, transparent);
backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px);
border-bottom: 1px solid var(--line-2);
}
.wordmark { font-family: var(--sans); font-weight: 700; font-size: 23px; letter-spacing: -.035em; color: var(--text); display: inline-flex; align-items: baseline; line-height: 1; user-select: none; }
.wm-dot { width: .3em; height: .3em; border-radius: 50%; background: var(--accent); display: inline-block; margin-left: .06em; transform: translateY(-.02em); }
.proj { min-width: 0; display: flex; flex-direction: column; gap: 1px; padding-left: 12px; border-left: 1px solid var(--line-2); }
.proj-name { text-align: left; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 42vw; }
.proj-meta { font-size: 10px; letter-spacing: .1em; color: var(--text-3); white-space: nowrap; }
.top-actions { margin-left: auto; display: flex; gap: 2px; }
.ibtn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 10px; color: var(--text-2); transition: background .15s; }
.ibtn:hover:not(:disabled) { background: var(--chip); color: var(--text); }
.ibtn.sm { width: 32px; height: 32px; border-radius: 8px; }
.ibtn.sm .ico { width: 16px; height: 16px; }
.swatches { display: none; gap: 6px; margin-left: auto; }
.swatch { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 10px 0 6px; border: 1px solid var(--line-2); border-radius: 999px; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: var(--text-2); }
.swatch i { width: 18px; height: 18px; border-radius: 50%; background: conic-gradient(var(--a) 0 50%, var(--b) 0 100%); box-shadow: inset 0 0 0 3px var(--c); outline: 1px solid var(--line); }
.swatch[aria-checked="true"] { border-color: var(--text); color: var(--text); }
.panes { padding: 12px 12px calc(var(--tr-h) + var(--tab-h) + var(--sab) + 18px); }
.pane { display: none; }
.app[data-tab="studio"] .pane-studio,
.app[data-tab="agent"] .pane-side,
.app[data-tab="tasks"] .pane-side,
.app[data-tab="themes"] .pane-themes { display: block; }
.app[data-tab="agent"] .pane-tasks, .app[data-tab="tasks"] .pane-agent { display: none; }
.studio {
display: grid; gap: var(--gap);
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.75fr);
grid-template-areas:
"tiles tiles tiles"
"roll roll roll"
"scopes mid clock"
"game game game"
"pad pad pad"
"mixer mixer mixer";
}
.a-tiles { grid-area: tiles; display: grid; grid-template-columns: .92fr .78fr 1.6fr; gap: var(--gap); height: clamp(150px, 44vw, 290px); }
.a-roll { grid-area: roll; min-width: 0; }
.a-scopes { grid-area: scopes; display: grid; grid-template-rows: repeat(4, auto); gap: var(--gap); }
.a-mid { grid-area: mid; display: flex; flex-direction: column; gap: var(--gap); min-height: 0; }
.a-mid .orb { flex: 1 1 0; }
.a-mid .field { flex: 1.15 1 0; }
.a-clock { grid-area: clock; position: relative; min-height: 0; }
.a-game { grid-area: game; min-width: 0; }
.a-pad { grid-area: pad; }
.a-mixer { grid-area: mixer; }
.tile, .scope, .gen, .game, .roll, .pad, .mixer, .clock-wrap { border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); position: relative; overflow: hidden; }
.tile canvas { position: absolute; inset: 0; }
.phone { border-radius: 4px; }
.phone canvas { top: 22px; height: calc(100% - 22px); }
.phone-top { position: absolute; top: 0; left: 0; right: 0; height: 22px; display: flex; align-items: center; gap: 4px; padding: 0 8px; border-bottom: 1px solid var(--line-2); }
.phone-top i { width: 6px; height: 6px; border-radius: 50%; }
.phone-top .d1 { background: var(--dot1); } .phone-top .d2 { background: var(--dot2); } .phone-top .d3 { background: var(--dot3); }
.phone-bar { margin-left: auto; width: 34%; height: 2px; border-radius: 2px; background: var(--line); }
.matrix { background: transparent; border-color: transparent; }
.sky { border: 0; border-radius: 2px; }
.scope { aspect-ratio: 1 / .95; }
.scope canvas { position: absolute; inset: 0; }
.scope .lbl { position: absolute; top: 7px; left: 8px; z-index: 1; font-size: 9.5px; }
.scope .lbl-r { left: auto; right: 7px; color: var(--text-3); transition: color .1s; }
.scope .lbl-r.on { color: var(--piano); }
.gen { background: var(--panel-2); border-color: transparent; min-height: 0; }
.gen canvas { position: absolute; inset: 0; }
.field canvas { height: calc(100% - 26px); }
.xo { position: absolute; left: 0; right: 0; bottom: 6px; text-align: center; font-family: var(--mono); font-weight: 500; font-size: clamp(9.5px, 2.7vw, 15px); letter-spacing: .08em; color: var(--piano); }
.a-clock { display: flex; flex-direction: column; }
.legend { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; padding: 2px 2px 0; }
.legend-row { display: flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--text-2); }
.legend .sw { width: 9px; height: 9px; }
.clock { flex: 1; min-height: 150px; position: relative; }
.clock canvas { position: absolute; inset: 0; }
.game { display: flex; flex-direction: column; height: 100%; min-height: 210px; }
.game-head { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; padding: 7px 9px 4px; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; }
.score { font-weight: 500; color: var(--text); white-space: nowrap; }
.score b { font-weight: 600; }
.combo { color: var(--piano); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.highway { position: relative; flex: 1; min-height: 120px; margin: 0 6px 6px; border: 1px solid var(--line-2); border-radius: 2px; }
.highway canvas { position: absolute; inset: 0; }
.hw-l, .hw-r { position: absolute; bottom: 4px; font-family: var(--mono); font-size: 8.5px; letter-spacing: .14em; color: var(--text-2); }
.hw-l { left: 6px; } .hw-r { right: 16px; }
.vmeter { position: absolute; right: 5px; top: 14%; bottom: 14%; width: 4px; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.vmeter i { position: absolute; inset: 0; background: var(--text-2); transform-origin: bottom; transform: scaleY(0); }
.judge { position: absolute; left: 0; right: 0; top: 38%; text-align: center; font-family: var(--mono); font-weight: 600; font-size: 13px; letter-spacing: .3em; color: var(--piano); opacity: 0; transform: translateY(6px) scale(.96); transition: opacity .12s, transform .12s; pointer-events: none; }
.judge.show { opacity: 1; transform: none; }
.judge.miss { color: var(--text-3); }
.pad { padding: 10px; display: grid; gap: 8px; background: transparent; border-color: var(--line-2); }
.pad-head { display: flex; justify-content: space-between; align-items: center; }
.pad-rec { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: var(--text-3); margin-right: auto; margin-left: 10px; }
.pad-head .tbtn { height: 32px; }
.tbtn.rec .ico { width: 12px; height: 12px; }
.pad.armed .key { border-style: dashed; }
.pad-row { display: grid; gap: 6px; }
.pad-row.r6 { grid-template-columns: repeat(6, 1fr); }
.pad-row.r8 { grid-template-columns: repeat(8, 1fr); }
.key {
height: 46px; border: 1px solid var(--line); border-radius: 4px; background: var(--panel);
font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--text-2);
transition: background-color .06s, color .06s, transform .06s, border-color .06s;
user-select: none; -webkit-user-select: none;
}
.key.near { background: var(--key-a); border-color: var(--key-a); color: var(--key-a-text); }
.key.on { background: var(--kc, var(--piano)); border-color: var(--kc, var(--piano)); color: var(--ink-text); }
[data-theme="maroon"] .key.on, [data-theme="glitch"] .key.on { color: var(--bg); }
.key.press { transform: scale(.94); background: var(--ink); color: var(--ink-text); border-color: var(--ink); }
.roll { display: flex; flex-direction: column; background: var(--panel); }
.roll-bar { display: flex; flex-wrap: wrap; gap: 6px; justify-content: space-between; align-items: center; padding: 6px; border-bottom: 1px solid var(--line-2); }
.roll-tools { display: flex; gap: 4px; flex-wrap: wrap; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 8px; padding: 2px; gap: 2px; }
.seg-b { height: 32px; padding: 0 9px; border-radius: 6px; display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; color: var(--text-2); white-space: nowrap; }
.seg-b.on { background: var(--ink); color: var(--ink-text); }
.seg-b.on .sw { outline: 1.5px solid var(--ink-text); }
.tbtn { height: 36px; min-width: 36px; padding: 0 9px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line-2); border-radius: 8px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; color: var(--text-2); transition: background .12s, color .12s, border-color .12s; }
.tbtn .ico { width: 16px; height: 16px; }
.tbtn:hover { border-color: var(--line); color: var(--text); }
.tbtn.on { background: var(--chip); color: var(--text); border-color: var(--line); }
.tbtn.accent { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.tbtn.accent:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.roll-wrap { position: relative; height: 230px; }
@media (max-width: 520px) {
.roll-bar { padding: 5px; gap: 5px; }
.roll-bar > .seg { width: 100%; }
.roll-bar > .seg .seg-b { flex: 1; justify-content: center; padding: 0 4px; }
.roll-tools { width: 100%; flex-wrap: nowrap; }
.roll-tools .seg-len { flex: 1; }
.roll-tools .seg-len .seg-b { flex: 1; justify-content: center; padding: 0 2px; }
.roll-tools .tbtn:not(.accent) span:not(.ico) { display: none; }
.roll-tools .tbtn { padding: 0 8px; }
.scope .lbl-r { opacity: 0; } .scope .lbl-r.on { opacity: 1; background: var(--panel); }
.t-row { gap: 6px; padding: 0 10px; }
.t-bpm .tbtn.sq { width: 34px; }
.time { font-size: 11.5px; }
}
.roll.zoomed .roll-wrap { height: 340px; }
.roll-canvas { position: absolute; inset: 0; touch-action: pan-y; cursor: crosshair; }
.roll.zoomed .roll-canvas { touch-action: none; }
.roll-hint { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; color: var(--text-3); padding: 6px 8px; border-top: 1px solid var(--line-2); }
.mixer { padding: 8px 10px 4px; background: transparent; border-color: var(--line-2); }
.sec-h { display: flex; justify-content: space-between; align-items: center; padding: 2px 0 6px; }
.mix-row { display: grid; grid-template-columns: minmax(0, 1.3fr) 30px minmax(0, 1fr) 44px 44px; grid-template-areas: "name n vol m s" "meter meter meter meter meter"; align-items: center; gap: 2px 8px; padding: 8px 0 6px; border-top: 1px solid var(--line-2); }
.mix-row:first-of-type { border-top: 0; }
.mix-name { grid-area: name; display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 40px; text-align: left; }
.mix-name b { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; font-weight: 500; }
.mix-name small { color: var(--text-3); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mix-row.editing .mix-name b { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.mix-row.muted .mix-name, .mix-row.muted .vol { opacity: .4; }
.mix-n { grid-area: n; font-size: 10px; color: var(--text-3); }
.meter { grid-area: meter; height: 2px; background: var(--line-2); overflow: hidden; border-radius: 2px; }
.meter i { display: block; height: 100%; background: var(--text-2); transform-origin: left; transform: scaleX(0); }
.mix-row[data-t="piano"] .meter i { background: var(--piano); } .mix-row[data-t="lead"] .meter i { background: var(--lead); }
.mix-row[data-t="bass"] .meter i { background: var(--bass); } .mix-row[data-t="drums"] .meter i { background: var(--drums); }
.mbtn { width: 44px; height: 40px; border: 1px solid var(--line); border-radius: 6px; font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--text-2); }
.mix-row .mbtn:nth-last-child(2) { grid-area: m; } .mix-row .mbtn:last-child { grid-area: s; }
.mbtn.on { background: var(--ink); color: var(--ink-text); border-color: var(--ink); }
.vol { grid-area: vol; -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; }
.vol::-webkit-slider-runnable-track { height: 2px; background: var(--line); border-radius: 2px; }
.vol::-moz-range-track { height: 2px; background: var(--line); }
.vol::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -7px; border-radius: 50%; background: var(--panel); border: 1.5px solid var(--ink); }
.vol::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--panel); border: 1.5px solid var(--ink); }
.transport {
position: fixed; z-index: 30; left: 0; right: 0; bottom: calc(var(--tab-h) + var(--sab));
height: var(--tr-h); background: var(--bg); border-top: 1px solid var(--line-2);
}
.progress { position: absolute; left: 0; right: 0; top: -1px; height: 14px; transform: translateY(-6px); cursor: pointer; touch-action: none; }
.progress::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: var(--line-2); }
.progress i { position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: var(--ink); transform-origin: left; transform: scaleX(0); }
.t-row { height: 100%; display: flex; align-items: center; gap: 10px; padding: 0 12px; }
.t-left { display: flex; align-items: center; gap: 6px; }
.play { width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: var(--ink-text); display: grid; place-items: center; transition: transform .1s; }
.play:active { transform: scale(.94); }
.play .ico { width: 22px; height: 22px; }
.tbtn.sq { width: 40px; height: 40px; padding: 0; }
.pad.armed.playing .tbtn.rec.on { animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .45; } }
.t-bpm { display: flex; align-items: center; gap: 4px; }
.t-bpm .tbtn.sq { width: 32px; height: 40px; border: 0; }
.bpm { display: flex; align-items: baseline; gap: 4px; padding: 0 2px; }
.bpm-in { width: 3.2ch; border: 0; background: transparent; font-size: 17px; font-weight: 500; text-align: right; -moz-appearance: textfield; appearance: textfield; padding: 0; }
.bpm-in::-webkit-inner-spin-button, .bpm-in::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.bpm span { font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; color: var(--text-3); }
.time { margin-left: auto; font-size: 12px; color: var(--text-2); letter-spacing: .04em; white-space: nowrap; }
.t-wm { display: none; }
.tabbar {
position: fixed; z-index: 31; left: 0; right: 0; bottom: 0;
height: calc(var(--tab-h) + var(--sab)); padding-bottom: var(--sab);
display: grid; grid-template-columns: repeat(4, 1fr);
background: var(--bg); border-top: 1px solid var(--line-2);
}
.tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--text-3); font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; min-height: 44px; }
.tab .ico { width: 22px; height: 22px; }
.tab[aria-selected="true"] { color: var(--text); }
.tab[aria-selected="true"]::after { content: ""; position: absolute; top: -1px; left: 34%; right: 34%; height: 2px; background: var(--ink); }
.badge { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--accent); color: var(--bg); font-size: 9.5px; letter-spacing: 0; display: grid; place-items: center; }
.badge-dot { position: absolute; top: 8px; left: calc(50% + 9px); width: 7px; height: 7px; border-radius: 50%; background: var(--accent); opacity: 0; }
.badge-dot.on { opacity: 1; animation: pulse 1s infinite; }
@keyframes pulse { 50% { transform: scale(.6); opacity: .5; } }
.pane-side { min-height: 0; }
.chat { display: flex; flex-direction: column; height: calc(100dvh - var(--top-h) - var(--sat) - var(--tr-h) - var(--tab-h) - var(--sab) - 30px); min-height: 360px; border: 1px solid var(--line-2); border-radius: 16px; background: var(--panel); overflow: hidden; }
.chat-h { display: flex; align-items: center; gap: 10px; padding: 10px 8px 10px 14px; border-bottom: 1px solid var(--line-2); }
.ch-t { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ch-t b, .tasks-h b { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.ch-sub { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; color: var(--text-3); display: block; }
.avatar { width: 22px; height: 22px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--ink); position: relative; }
.avatar i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.avatar.big { width: 30px; height: 30px; }
.avatar.big i { width: 9px; height: 9px; }
.chat.busy .avatar.big::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--accent); animation: ring 1.2s var(--ease) infinite; }
@keyframes ring { from { transform: scale(.85); opacity: 1; } to { transform: scale(1.25); opacity: 0; } }
.chat-list { flex: 1; overflow-y: auto; padding: 16px 14px 8px; display: flex; flex-direction: column; gap: 16px; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.msg { display: flex; gap: 10px; max-width: 100%; animation: msgIn .22s var(--ease); }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } }
.msg time { display: block; font-family: var(--mono); font-size: 9.5px; color: var(--text-3); margin-top: 4px; letter-spacing: .06em; }
.msg.user { flex-direction: column; align-items: flex-end; }
.bubble { max-width: 84%; background: var(--bubble-user); color: var(--bubble-user-text); padding: 9px 14px; border-radius: 20px 20px 6px 20px; font-size: 15px; white-space: pre-wrap; word-wrap: break-word; }
.msg.agent .avatar { margin-top: 1px; }
.msg-body { min-width: 0; flex: 1; }
.msg-text { white-space: pre-wrap; font-size: 15px; line-height: 1.5; color: var(--text); word-wrap: break-word; }
.acards { display: grid; gap: 6px; margin-top: 10px; }
.acard { --tc: var(--accent); display: grid; grid-template-columns: 30px minmax(0, 1fr) 34px; gap: 10px; align-items: center; padding: 8px 6px 8px 8px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg); position: relative; overflow: hidden; }
.ac-ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: color-mix(in srgb, var(--tc) 16%, transparent); color: var(--tc); }
.ac-ico .ico { width: 16px; height: 16px; }
.acard[data-status="running"] .ac-ico .ico { animation: spin 1.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ac-main { min-width: 0; }
.ac-top { display: flex; align-items: center; gap: 8px; }
.ac-top b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-detail { display: block; font-family: var(--mono); font-size: 10.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.ac-prog { height: 2px; background: var(--line-2); border-radius: 2px; overflow: hidden; margin-top: 6px; }
.ac-prog i { display: block; height: 100%; background: var(--tc); transform-origin: left; transform: scaleX(0); transition: transform .12s linear; }
.ac-btn { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: var(--text-3); }
.ac-btn:hover { background: var(--chip); color: var(--text); }
.ac-btn .ico { width: 16px; height: 16px; }
.pill { font-family: var(--mono); font-size: 9px; letter-spacing: .12em; padding: 2px 6px; border-radius: 99px; border: 1px solid var(--line); color: var(--text-2); white-space: nowrap; }
[data-status="running"] .pill { color: var(--accent); border-color: var(--accent); }
[data-status="done"] .pill { color: var(--bg); background: var(--text-2); border-color: var(--text-2); }
[data-status="failed"] .pill { color: var(--danger); border-color: var(--danger); }
[data-status="canceled"] .pill { color: var(--text-3); border-style: dashed; }
.acard.gone { opacity: .5; }
.typing { display: inline-flex; gap: 4px; padding: 10px 2px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); animation: bounce 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.composer-wrap { padding: 6px 10px 10px; border-top: 1px solid var(--line-2); background: var(--panel); }
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 8px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 34px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; color: var(--text); background: var(--bg); white-space: nowrap; transition: background .12s; }
.chip:hover { background: var(--chip); }
.composer { display: flex; align-items: flex-end; gap: 8px; padding: 5px 5px 5px 14px; border: 1px solid var(--line); border-radius: 24px; background: var(--bg); }
.composer:focus-within { border-color: var(--text-2); }
.composer-in { flex: 1; resize: none; border: 0; outline: 0; background: transparent; padding: 8px 0; font-size: 16px; line-height: 1.35; max-height: 140px; }
.composer-in::placeholder { color: var(--text-3); }
.send { width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--ink); color: var(--ink-text); display: grid; place-items: center; }
.send .ico { width: 18px; height: 18px; }
.tasks, .themes { display: flex; flex-direction: column; gap: 12px; }
.tasks-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 2px 2px 0; }
.tasks-h > div { display: flex; flex-direction: column; }
.btn { height: 40px; padding: 0 14px; border-radius: 10px; display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.btn .ico { width: 16px; height: 16px; }
.btn.primary { background: var(--ink); color: var(--ink-text); }
.btn.ghost { border: 1px solid var(--line); color: var(--text-2); }
.composer-job { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--panel); }
.composer-job .sel { flex: 1 1 120px; }
.composer-job .btn { flex: 1 1 120px; justify-content: center; }
.sel, .field { height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); padding: 0 10px; font-size: 14px; min-width: 0; }
.sel { -webkit-appearance: none; appearance: none; padding-right: 28px; background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%); background-position: calc(100% - 15px) 17px, calc(100% - 10px) 17px; background-size: 5px 5px; background-repeat: no-repeat; }
.tcols { display: grid; gap: 14px; }
.tcol-h { display: flex; align-items: center; gap: 8px; padding: 0 2px 6px; }
.cnt { font-size: 10px; color: var(--text-3); }
.tcol-list { display: grid; gap: 6px; }
.tcol-empty { font-family: var(--mono); font-size: 10.5px; color: var(--text-3); padding: 10px; border: 1px dashed var(--line-2); border-radius: 10px; text-align: center; letter-spacing: .1em; }
.tcard { padding: 10px 10px 6px 12px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--panel); display: grid; gap: 4px; animation: msgIn .2s var(--ease); }
.tcard[data-status="running"] { border-color: var(--accent); }
.tcard[data-status="canceled"], .tcard[data-status="failed"] { background: transparent; }
.tc-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tc-top b { font-size: 14px; font-weight: 600; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-dot { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.src { font-family: var(--mono); font-size: 9px; letter-spacing: .14em; color: var(--text-3); }
.src.agent { color: var(--accent); }
.tc-detail { font-family: var(--mono); font-size: 11px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-prog { height: 2px; background: var(--line-2); border-radius: 2px; overflow: hidden; margin: 4px 0 2px; }
.tc-prog i { display: block; height: 100%; background: var(--accent); transform-origin: left; transition: transform .12s linear; }
.tcard[data-status="done"] .tc-prog i { background: var(--text-3); }
.tc-foot { display: flex; align-items: center; gap: 8px; }
.tc-time { font-size: 10px; color: var(--text-3); }
.grow { flex: 1; }
.t-empty { font-size: 13.5px; color: var(--text-3); padding: 14px; border: 1px dashed var(--line-2); border-radius: 12px; text-align: center; }
.theme-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
.theme-card { text-align: left; border: 1px solid var(--line-2); border-radius: 16px; padding: 10px; background: var(--panel); display: grid; gap: 10px; position: relative; transition: border-color .15s, transform .15s; }
.theme-card:active { transform: scale(.99); }
.theme-card[aria-checked="true"] { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.tc-meta { display: flex; flex-direction: column; gap: 2px; padding: 0 4px 2px; }
.tc-meta b { font-family: var(--mono); font-size: 13px; letter-spacing: .16em; font-weight: 500; }
.tc-meta span { font-size: 13px; color: var(--text-2); }
.tc-check { position: absolute; top: 18px; right: 18px; font-family: var(--mono); font-size: 9px; letter-spacing: .16em; padding: 4px 8px; border-radius: 99px; background: var(--ink); color: var(--ink-text); opacity: 0; }
.theme-card[aria-checked="true"] .tc-check { opacity: 1; }
.tp { background: var(--bg); border-radius: 10px; padding: 10px; display: grid; gap: 8px; border: 1px solid var(--line-2); }
.tp-top { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; height: 52px; }
.tp-dots { border: 1px solid var(--line); border-radius: 3px; display: flex; gap: 4px; padding: 6px; }
.tp-dots i { width: 6px; height: 6px; border-radius: 50%; }
.tp-sky { border-radius: 2px; }
.tp-roll { height: 70px; border: 1px solid var(--line); border-radius: 2px; position: relative; overflow: hidden; background: repeating-linear-gradient(to bottom, transparent 0 7px, var(--line-2) 7px 8px); }
.tp-roll i { position: absolute; height: 3px; }
.tp-head { position: absolute; left: 46%; top: 0; bottom: 0; width: 1.5px; background: var(--ink); }
.tp-keys { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.tp-keys span { height: 22px; border: 1px solid var(--line); border-radius: 3px; font-family: var(--mono); font-size: 9px; display: grid; place-items: center; color: var(--text-2); background: var(--panel); }
.tp-keys span.on { background: var(--piano); border-color: var(--piano); color: var(--ink-text); }
.tp-keys span.lav { background: var(--key-a); border-color: var(--key-a); color: var(--key-a-text); }
.scrim { position: fixed; inset: 0; z-index: 50; background: color-mix(in srgb, var(--ink) 28%, transparent); opacity: 0; pointer-events: none; transition: opacity .2s; }
.scrim.open { opacity: 1; pointer-events: auto; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 88dvh; overflow-y: auto; background: var(--bg); border-radius: 20px 20px 0 0; border-top: 1px solid var(--line); padding: 8px 16px calc(18px + var(--sab)); transform: translateY(100%); transition: transform .28s var(--ease); }
.scrim.open .sheet { transform: none; }
.grab { width: 38px; height: 4px; border-radius: 2px; background: var(--line); margin: 2px auto 8px; }
.sheet-body { display: grid; gap: 12px; }
.sheet-h { display: flex; justify-content: space-between; align-items: center; }
.sheet-h b { font-size: 18px; font-weight: 600; }
.frow { display: grid; gap: 6px; }
.fgrid { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 8px; }
.sheet-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sheet-act { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--panel); font-size: 14px; text-align: left; }
.sheet-act .ico { width: 18px; height: 18px; color: var(--text-2); }
.lib { display: grid; gap: 6px; }
.lib-row { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); border-radius: 12px; padding: 4px 4px 4px 0; }
.lib-open { flex: 1; text-align: left; display: flex; flex-direction: column; padding: 6px 12px; min-height: 44px; }
.lib-open b { font-size: 14px; font-weight: 600; }
.lib-open span { font-family: var(--mono); font-size: 10.5px; color: var(--text-3); }
.toast { position: fixed; z-index: 60; left: 50%; top: calc(var(--top-h) + var(--sat) + 10px); transform: translate(-50%, -10px); max-width: calc(100vw - 32px); padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--ink-text); font-size: 13.5px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s var(--ease); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (pointer: coarse) {
.ibtn { width: 44px; height: 44px; }
.seg-b { height: 36px; }
.tbtn { height: 40px; }
.tbtn.sq { width: 44px; height: 44px; }
}
@media (min-width: 700px) {
.theme-grid { grid-template-columns: 1fr 1fr; }
.tcols { grid-template-columns: 1fr 1fr 1fr; align-items: start; }
.a-tiles { height: 260px; }
.roll-wrap { height: 280px; }
.t-wm { display: block; margin-left: 16px; }
}
@media (min-width: 1100px) {
:root { --top-h: 56px; --tr-h: 64px; --gap: 12px; }
body { overflow: hidden; }
.app { height: 100dvh; display: grid; grid-template-rows: auto minmax(0, 1fr) var(--tr-h); }
.swatches { display: flex; }
.top-actions { margin-left: 8px; }
.proj-name { max-width: 260px; }
.tabbar { display: none; }
.transport { position: relative; bottom: auto; }
.panes { padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) 420px; min-height: 0; }
.pane, .app[data-tab] .pane { display: block; }
.app[data-tab] .pane-themes { display: none; }
.app[data-tab] .pane-tasks { display: block; }
.app[data-tab] .pane-agent { display: flex; }
.pane-studio { overflow-y: auto; padding: 14px 16px 24px; min-height: 0; }
.pane-side { display: flex !important; flex-direction: column; border-left: 1px solid var(--line-2); min-height: 0; }
.pane-agent { flex: 1.25; min-height: 0; display: flex; }
.pane-tasks { flex: 1; min-height: 0; overflow-y: auto; padding: 14px; border-top: 1px solid var(--line-2); }
.chat { height: auto; flex: 1; border: 0; border-radius: 0; min-height: 0; }
.tcols { grid-template-columns: 1fr; }
.studio {
grid-template-columns: repeat(4, minmax(0, 1fr));
grid-template-areas:
"tiles tiles clock game"
"roll roll roll roll"
"scopes scopes mid mid"
"pad pad mixer mixer";
}
.a-tiles { height: 236px; }
.a-scopes { grid-template-columns: repeat(4, 1fr); grid-template-rows: none; }
.a-mid { flex-direction: row; }
.a-mid .gen { min-height: 150px; }
.clock { min-height: 200px; }
.game { min-height: 236px; }
.roll-wrap { height: 270px; }
.roll.zoomed .roll-wrap { height: 380px; }
.t-row { padding: 0 18px; gap: 16px; }
.time { margin-left: auto; margin-right: auto; font-size: 13px; }
.t-wm { display: block; margin-left: 0; }
.progress { top: 0; }
.toast { top: calc(var(--top-h) + 12px); }
.sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: 560px; border-radius: 18px; border: 1px solid var(--line); transform: translate(-50%, -46%); opacity: 0; transition: transform .22s var(--ease), opacity .22s; }
.scrim.open .sheet { transform: translate(-50%, -50%); opacity: 1; }
.grab { display: none; }
}
@media (min-width: 1500px) {
.panes { grid-template-columns: minmax(0, 1fr) 460px; }
}
[data-theme="glitch"] body::after {
content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100;
background: repeating-linear-gradient(to bottom, rgba(255,255,255,.028) 0 1px, transparent 1px 3px);
mix-blend-mode: screen;
}
[data-theme="glitch"] .lbl, [data-theme="glitch"] .legend-row, [data-theme="glitch"] .seg-b, [data-theme="glitch"] .xo, [data-theme="glitch"] .score, [data-theme="glitch"] .tab, [data-theme="glitch"] .tc-meta b {
text-shadow: -1px 0 rgba(255, 46, 115, .75), 1px 0 rgba(0, 238, 255, .75);
}
[data-theme="glitch"] .wordmark { text-shadow: -2px 0 rgba(255, 46, 115, .9), 2px 0 rgba(0, 238, 255, .9); animation: wmJitter 4.2s steps(1) infinite; }
@keyframes wmJitter {
0%, 91%, 100% { transform: none; clip-path: none; }
92% { transform: translateX(2px); clip-path: inset(0 0 45% 0); }
94% { transform: translateX(-3px); clip-path: inset(40% 0 0 0); }
96% { transform: translateX(1px) skewX(-8deg); }
}
[data-theme="glitch"] .tile canvas, [data-theme="glitch"] .scope canvas, [data-theme="glitch"] .gen canvas, [data-theme="glitch"] .clock canvas, [data-theme="glitch"] .highway canvas {
filter: drop-shadow(1px 0 0 rgba(255, 46, 115, .55)) drop-shadow(-1px 0 0 rgba(0, 238, 255, .55));
}
[data-theme="glitch"] .tile, [data-theme="glitch"] .scope, [data-theme="glitch"] .roll, [data-theme="glitch"] .game { border-color: var(--line); }
[data-theme="glitch"] .bubble { box-shadow: -2px 0 0 rgba(255, 46, 115, .7); }
[data-theme="glitch"] .key.on { box-shadow: -2px 0 0 rgba(255, 46, 115, .8), 2px 0 0 rgba(0, 238, 255, .8); }
.jolt { animation: jolt .14s steps(2) 1; }
@keyframes jolt { 0% { transform: translateX(3px); clip-path: inset(10% 0 50% 0); } 50% { transform: translateX(-2px); clip-path: inset(50% 0 5% 0); } 100% { transform: none; clip-path: none; } }
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
.acard[data-status="done"] .ac-ico { color: var(--text-2); background: var(--chip); }
.acard[data-status="failed"] .ac-ico { color: var(--danger); }