/* The app's own views, on top of pythia-ds.css. */

/* Voice Signature: the instrument */
.vs-stage { position: relative; background: #05080c; border: 1px solid var(--ds-line); border-radius: var(--ds-r-md); overflow: hidden; }
.vs-stage canvas { display: block; width: 100%; }
.vs-spec { height: 240px; }
.vs-wave { height: 56px; border-top: 1px solid var(--ds-line); }
.vs-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.vs-tiles-1 { grid-template-columns: minmax(0, 1fr) !important; }
@media (min-width: 960px) { .vs-spec { height: 356px; } .vs-wave { height: 64px; } .vs-instrument { display: flex; flex-direction: column; } .vs-instrument .vs-stage { flex: 1; } }
.vs-live-spec { height: 200px; }
.vs-live-wave { height: 88px; border-top: 1px solid var(--ds-line); }
.vs-caption { display: flex; justify-content: space-between; gap: var(--ds-3); flex-wrap: wrap; font-size: var(--ds-t-xs); color: var(--ds-ink-3); margin-top: var(--ds-2); }
.vs-f0 { display: flex; align-items: baseline; gap: var(--ds-3); flex-wrap: wrap; }
.vs-unit { font: 500 var(--ds-t-lg)/1 var(--ds-mono); color: var(--ds-ink-2); }
.vs-chips { display: flex; flex-wrap: wrap; gap: var(--ds-2); }
.vs-timer { font: 500 var(--ds-t-3xl)/1 var(--ds-mono); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.vs-count { font: 500 96px/1 var(--ds-mono); color: var(--ds-teal-ink); text-align: center; padding: var(--ds-8) 0; }
.vs-bar { height: 6px; background: var(--ds-raised); border-radius: var(--ds-r-full); overflow: hidden; }
.vs-bar > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--ds-violet), var(--ds-cyan), var(--ds-teal)); border-radius: inherit; }
.vs-level { position: relative; height: 10px; background: var(--ds-raised); border-radius: var(--ds-r-full); overflow: hidden; }
.vs-level > i { display: block; height: 100%; width: 0; background: var(--ds-teal); }
.vs-level.is-clip > i { background: var(--ds-danger); }
.vs-spin { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--ds-line-strong); border-top-color: var(--ds-cyan); animation: vs-spin 1s linear infinite; }
@keyframes vs-spin { to { transform: rotate(360deg); } }

/* Harmonic ladder */
.lad { display: block; width: 100%; height: auto; }
.lad text { font: 500 12px var(--ds-mono); fill: var(--ds-ink-3); }
.lad .lad-bar { fill: url(#lad-grad); }
.lad .lad-gap { fill: none; stroke: var(--ds-violet); stroke-width: 1.5; stroke-dasharray: 3 3; }
.lad .lad-axis { stroke: var(--ds-line); stroke-width: 1; }

/* Resonance */
.rs-gates { display: grid; gap: var(--ds-3); grid-template-columns: minmax(0, 1fr); }
.rs-gate { background: var(--ds-surface); border: 1px solid var(--ds-line); border-radius: var(--ds-r-lg); padding: var(--ds-4); display: flex; flex-direction: column; gap: var(--ds-2); min-width: 0; }
.rs-gate.is-touched { border-color: #4b3f7d; background: linear-gradient(180deg, rgba(167, 139, 250, .07), transparent 70%), var(--ds-surface); }
.rs-name { font-size: var(--ds-t-lg); font-weight: 600; color: var(--ds-ink); }
.rs-ratio { font: 500 var(--ds-t-lg)/1 var(--ds-mono); color: var(--ds-violet-ink); }
.rs-ethos { color: var(--ds-ink-2); font-size: var(--ds-t-sm); }
@media (min-width: 720px) { .rs-gates { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1240px) { .rs-gates { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Regulation */
.rg-cards { display: grid; gap: var(--ds-4); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .rg-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rg-pacer { display: flex; align-items: center; justify-content: center; height: 300px; }
.rg-ring { width: 220px; height: 220px; border-radius: 50%; border: 1px solid var(--ds-line-strong); display: flex; align-items: center; justify-content: center; position: relative; }
.rg-disc { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, rgba(45, 212, 191, .28), rgba(34, 211, 238, .08)); transform: scale(.45); transition-property: transform; transition-timing-function: ease-in-out; }
.rg-word { position: relative; font-size: var(--ds-t-xl); font-weight: 500; }
.rg-scope { height: 72px; display: block; width: 100%; }
.rg-layers li { color: var(--ds-ink-2); font-size: var(--ds-t-sm); margin-bottom: var(--ds-1); }
.rg-layers { margin: 0; padding-left: var(--ds-5); }
.now-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--ds-3); margin-bottom: var(--ds-4); padding: var(--ds-2) var(--ds-4); background: var(--ds-raised); border: 1px solid var(--ds-line-strong); border-radius: var(--ds-r-md); font-size: var(--ds-t-sm); }

/* Progress charts */
.pg-grid { display: grid; gap: var(--ds-4); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .pg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pg-v { font: 500 var(--ds-t-xl)/1.2 var(--ds-mono); font-variant-numeric: tabular-nums; }
.pg-svg { display: block; width: 100%; height: auto; }
.pg-svg text { font: 500 12px var(--ds-mono); fill: var(--ds-ink-3); }
.pg-svg .pg-grid-l { stroke: var(--ds-line); stroke-width: 1; }
.pg-svg .pg-line { fill: none; stroke: var(--ds-cyan); stroke-width: 1.75; stroke-linejoin: round; }
.pg-svg .pg-dot { fill: var(--ds-cyan); }
.pg-svg .pg-dot-a { fill: var(--ds-violet); }
.pg-svg .pg-last { fill: var(--ds-bg); stroke: var(--ds-teal-ink); stroke-width: 2; }
.pg-key { display: inline-flex; align-items: center; gap: 6px; }
.pg-key i { width: 9px; height: 9px; border-radius: 50%; background: var(--ds-cyan); display: inline-block; }
.pg-key i.is-a { background: var(--ds-violet); transform: rotate(45deg); border-radius: 1px; }

/* Definitions */
.df { display: grid; gap: var(--ds-3); margin: 0; }
.df dt { font-weight: 600; font-size: var(--ds-t-sm); }
.df dd { margin: 2px 0 0; color: var(--ds-ink-2); font-size: var(--ds-t-sm); }

/* Settings */
.st-row { display: flex; justify-content: space-between; align-items: center; gap: var(--ds-4); padding: var(--ds-3) 0; border-bottom: 1px solid var(--ds-line); flex-wrap: wrap; min-width: 0; }
.st-row:last-child { border-bottom: 0; }
.st-row > div { min-width: 0; overflow-wrap: anywhere; }
