/* Advanced: the session as a timeline. The timeline sits on the night ground with its tracks in
   warm colours, each its own; the palette and the block in focus sit on paper under it */
.ad { display: grid; grid-template-columns: minmax(0, 1fr); }
.ad-desk { gap: 28px; padding: 18px 0 56px; }
.ad-h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font: var(--display, 400) 28px/1.1 var(--serif); letter-spacing: var(--title-track, normal); }
.ad-sub { margin-top: 4px !important; font-size: 14.5px; line-height: 1.5; color: var(--soft); }
.ad-icon { display: grid; place-items: center; flex: none; width: 34px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: calc(10px * var(--round, 1)); background: var(--sheet); color: var(--ink); cursor: pointer; }
.ad-icon svg { width: 16px; height: 16px; }
.ad-icon[disabled] { opacity: 0.3; cursor: default; }
.ad-mini { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 4px 13px; border: 1px solid var(--line); border-radius: var(--pill, 999px); background: var(--sheet); color: var(--ink); font: 400 13px/1.2 var(--sans); white-space: nowrap; cursor: pointer; }
.ad-mini.is-on { border-color: var(--deep); background: var(--deep); color: var(--paper); }
span.ad-mini { cursor: default; }
.ad-chip { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border: 1px solid var(--line); border-radius: var(--pill, 999px); background: var(--sheet); color: var(--ink); font: 400 13.5px/1.2 var(--sans); cursor: pointer; }
.ad-chip.is-on { border-color: var(--deep); background: var(--deep); color: var(--paper); }
.ad-why { flex-basis: 100%; margin: 0; font-size: 13.5px; line-height: 1.4; color: var(--signal-text); }
.ad-left-out { margin: 0; font-size: 13px; line-height: 1.45; color: var(--signal-text); }
/* a block that refers to what no block before it set up: said plainly, never refused */
.ad-refs { margin: 0; padding: 9px 12px; border-radius: calc(12px * var(--round, 1)); background: var(--go-soft); color: var(--go-ink); font-size: 13.5px; line-height: 1.45; }
.ad-quiet { font-size: 14.5px; color: var(--muted); }
.ad-back { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.ad-back span { font-size: 14px; color: var(--muted); }
.ad-end { height: var(--dock-room, 150px); }

/* the top: their version beside its price and the Generate that glows */
.ad-top, .ad-below, .ad-below-2, .ad-desk > .ad-back { margin: 0 40px; }
.ad-top { display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: end; gap: 40px; }
.ad-top .cu-title { font-size: 40px; }
.ad-make { display: grid; gap: 10px; padding: 16px 18px 14px; border-radius: calc(22px * var(--round, 1)); background: var(--deep); color: var(--paper); }
.ad-make-k { font: 400 11px/1.3 var(--mono); letter-spacing: 0.04em; color: #9fd0b8; }
.ad-make .btn { width: 100%; }
.ad-make .btn-primary { background: none; border: 1px solid #5d7a6d; color: var(--paper); }
.ad-make small { font-size: 12px; color: #9fb5aa; text-align: center; }

/* the stage: the night ground, the full width of the screen less its margins */
.ad-stage { --head: 212px; margin: 0 40px; padding: 18px 24px 20px; border-radius: calc(26px * var(--round, 1)); background: linear-gradient(180deg, #11221b, var(--night) 140px); color: var(--paper); box-shadow: 0 18px 50px rgb(13 26 21 / 0.18); }
.ad-stage .label { color: var(--night-muted); }
.ad-stage-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 14px; }
.ad-stage-title { display: flex; align-items: baseline; gap: 14px; }
.ad-stage-sum { font: 400 19px/1.2 var(--serif); color: var(--paper); }
.ad-stage-acts { display: flex; align-items: center; gap: 14px; }
.ad-play { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 4px 15px 4px 6px; border: 1px solid rgb(255 255 255 / 0.16); border-radius: var(--pill, 999px); background: rgb(255 255 255 / 0.04); color: var(--paper); font-size: 13.5px; cursor: pointer; }
.ad-play svg { width: 26px; height: 26px; padding: 6px; border-radius: 50%; background: var(--paper); color: var(--night); }
.ad-entrain-off { display: inline-flex; align-items: center; gap: 10px; font: 400 12px/1 var(--mono); color: var(--night-muted); }
.ad-stage .ad-mini { border-color: rgb(255 255 255 / 0.16); background: rgb(255 255 255 / 0.04); color: var(--paper); }
.ad-stage .ad-mini:hover { background: rgb(255 255 255 / 0.1); }
.ad-stage .ad-mini.is-on { border-color: var(--paper); background: var(--paper); color: var(--night); }
.ad-stage .ad-icon { border-color: rgb(255 255 255 / 0.16); background: transparent; color: var(--paper); }
.ad-stage .free-badge { background: rgb(159 208 184 / 0.14); color: #9fd0b8; }

/* the lanes at their zoom scroll sideways; the tracks' heads stay, the lanes passing under them */
.ad-scroll { overflow-x: auto; overflow-y: hidden; padding-bottom: 6px; scrollbar-width: thin; scrollbar-color: var(--line-2, #354a45) transparent; }
.ad-grid { --row: calc(var(--head) + 18px); position: relative; width: calc(var(--row) + var(--lane, 0px)); min-width: 100%; }
.ad-row { display: grid; grid-template-columns: var(--row) minmax(0, 1fr); gap: 0; border-top: 1px solid rgb(255 255 255 / 0.07); }
.ad-grid > .ad-row > .ad-th { position: sticky; left: 0; z-index: 4; padding-right: 18px; background: var(--abyss, #050908); }
.ad-row-ruler { border-top: 0; }
.ad-th { display: grid; align-content: center; gap: 3px; min-width: 0; padding: 10px 0; }
.ad-th-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ad-th-top b { font: 500 14px/1.2 var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-th small { font: 400 11.5px/1.3 var(--mono); color: var(--night-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-sw { flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.ad-th-x { display: grid; place-items: center; width: 24px; height: 24px; margin-left: auto; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--night-muted); cursor: pointer; }
.ad-th-x:hover { background: rgb(255 255 255 / 0.08); color: var(--paper); }
.ad-th-x svg { width: 14px; height: 14px; }

.ad-ruler { position: relative; height: 22px; font: 400 10.5px/22px var(--mono); color: var(--night-muted); }
.ad-ruler span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.ad-ruler span:first-child { transform: none; }
.ad-ruler span:last-child:not(:first-child) { transform: translateX(-100%); }

/* the depth over time: the one depth chart, the blocks over it as doors */
.ad-row-depth .ad-th { align-content: start; padding-top: 14px; }
.ad-depth { position: relative; height: 136px; }
.ad-depth-svg { position: absolute; left: 0; top: 0; width: 100%; height: 120px; overflow: visible; }
.ad-region-tick { stroke: rgb(255 255 255 / 0.12); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ad-blocks { position: absolute; inset: 0; }
.ad-blk { position: absolute; top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 1px; min-width: 0; padding: 0 6px 2px; border: 0; border-radius: calc(8px * var(--round, 1)); background: none; color: var(--paper); text-align: left; cursor: pointer; }
.ad-blk:hover { background: rgb(255 255 255 / 0.05); }
.ad-blk.is-on { box-shadow: inset 0 0 0 1.5px var(--paper); }
.ad-blk.is-fresh { box-shadow: inset 0 0 0 2px rgb(244 239 231 / var(--fresh)); }
.ad-blk-name { font: var(--display, 400) 14px/1.15 var(--serif); letter-spacing: var(--title-track, normal); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-blk-kind { font: 400 9.5px/1.2 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--night-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-blk.is-narrow .ad-blk-kind { visibility: hidden; }
.ad-blk.is-drift { cursor: default; background-image: repeating-linear-gradient(135deg, transparent 0 6px, rgb(255 255 255 / 0.06) 6px 8px); }

/* the lanes: clips in the track's colour */
.ad-lane { position: relative; height: 54px; }
.ad-clip { position: absolute; top: 9px; bottom: 9px; min-width: 0; padding: 0 5px; border: 0; border-radius: 6px; background: var(--c); background-clip: padding-box; border-right: 2px solid transparent; color: var(--night); font: 400 12.5px/36px var(--serif); text-align: left; white-space: nowrap; overflow: hidden; cursor: pointer; }
.ad-clip-text { display: block; white-space: nowrap; }
/* the words of a phrase too short to read across: each word a mark as wide as its letters */
.ad-clip-words { position: absolute; left: 0; top: 0; bottom: 0; display: flex; align-items: center; gap: 2px; min-width: 4px; padding: 0 3px; border-radius: 4px 0 0 4px; background: color-mix(in srgb, currentColor 34%, transparent); }
.ad-clip-words i { min-width: 2px; height: 5px; border-radius: 2px; background: currentColor; }
/* the whole line beside a clip: for the one in hand always, for any other while it is pointed at */
.ad-clip-tag { display: none; }
.ad-clip.is-on + .ad-clip-tag, .ad-clip:hover + .ad-clip-tag { display: block; }
.ad-lane:has(.ad-clip:not(.is-on):hover) .ad-clip.is-on + .ad-clip-tag { display: none; }
.ad-clip .ad-band { background: var(--ember-soft); box-shadow: none; padding: 0; border-radius: 2px; }
.ad-clip .ad-band > i { display: none; }
.ad-clip:hover { filter: brightness(1.08); }
.ad-clip-wave { display: block; width: 100%; height: 100%; padding: 8px 0; fill: var(--night); opacity: 0.32; }
/* a line with a direction over some of its words: its clip ends in the warm band; up close, the band sits under exactly those words */
.ad-clip.is-dir { box-shadow: inset 0 -8px 0 var(--ember); }
.ad-clip.is-on { outline: 2px solid var(--paper); outline-offset: 1px; z-index: 1; }
.ad-clip.is-drift { background: color-mix(in srgb, var(--c) 35%, transparent); color: var(--paper); cursor: default; }
.ad-lane-empty { position: absolute; left: 0; top: 50%; transform: translateY(-50%); font: 400 12px/1 var(--mono); color: var(--night-muted); }
.ad-bed { position: absolute; top: 9px; bottom: 9px; display: flex; align-items: center; min-width: 0; padding: 0 10px; border-radius: 6px; border-right: 2px solid var(--night); background: color-mix(in srgb, var(--c) 20%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 55%, transparent); overflow: hidden; }
.ad-bed-name { position: relative; z-index: 1; max-width: 100%; padding: 3px 9px; border-radius: var(--pill, 999px); background: color-mix(in srgb, var(--night) 82%, transparent); font: 400 13px/1.2 var(--serif); color: var(--c); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-bed small { font: 400 10px/1 var(--mono); letter-spacing: 0.04em; color: var(--night-muted); }
.ad-bed-wave { position: absolute; inset: 6px 0; width: 100%; height: calc(100% - 12px); fill: var(--c); opacity: 0.22; }
.ad-bed.is-own { background: color-mix(in srgb, var(--c) 38%, transparent); box-shadow: inset 0 0 0 1.5px var(--c); }
.ad-bed.is-silent { background: none; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.18); }
.ad-bed.is-silent .ad-bed-wave { display: none; }
.ad-cue { position: absolute; top: 50%; display: flex; align-items: center; gap: 7px; transform: translate(-6px, -50%); max-width: 220px; }
.ad-cue i { flex: none; width: 12px; height: 12px; border-radius: 2px; background: var(--c); transform: rotate(45deg); }
.ad-cue span { padding: 3px 9px; border-radius: var(--pill, 999px); background: color-mix(in srgb, var(--c) 20%, transparent); color: var(--c); font: 400 12.5px/1.2 var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-cue.is-open span { box-shadow: inset 0 0 0 1px var(--c); }

/* the one entrainment, under the track that carries it */
.ad-row-entrain { border-top-style: dashed; }
.ad-th-entrain { gap: 5px; }
.ad-pulse-i { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 6px; background: color-mix(in srgb, var(--c) 22%, transparent); color: var(--c); }
.ad-pulse-i svg { width: 15px; height: 15px; }
.ad-entrain-acts { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 3px; }
.ad-what { display: grid; place-items: center; flex: none; width: 24px; height: 24px; padding: 0; border: 1px solid rgb(255 255 255 / 0.22); border-radius: 50%; background: none; color: var(--paper); font: 500 12.5px/1 var(--sans); cursor: pointer; }
.ad-what:hover, .ad-what.is-on { border-color: var(--paper); background: var(--paper); color: var(--night); }
.ad-entrain-acts .ad-mini { min-height: 28px; padding: 2px 10px; font-size: 12px; }
.ad-entrain-lane { height: auto; min-height: 54px; display: grid; align-content: center; gap: 6px; }
.ad-entrain-lane svg { width: 100%; height: 26px; }
.ad-entrain-lane line { stroke: var(--c); stroke-width: 1.5; stroke-linecap: round; vector-effect: non-scaling-stroke; opacity: 0.85; }
.ad-hz { font: 400 11px/1 var(--mono); color: var(--night-muted); }
.ad-explain { position: sticky; left: var(--row); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; width: min(820px, 70vw); margin: 4px 0 10px var(--row); padding: 14px 18px; border-radius: calc(16px * var(--round, 1)); background: rgb(255 255 255 / 0.05); }
.ad-explain p { margin: 0; font-size: 14px; line-height: 1.55; color: #dfe7e2; }
.ad-explain b { font-weight: 500; color: var(--paper); }

/* a track's volume: quieter, the steps against the voice, louder */
.ad-vol { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.ad-vol .ad-icon { width: 26px; height: 26px; border-radius: calc(8px * var(--round, 1)); }
.ad-vol .ad-icon svg { width: 13px; height: 13px; }
/* the fader: a groove, its fill up to the level, a notch at the first voice's level, the thumb */
.ad-fader { position: relative; flex: 1 1 auto; min-width: 64px; height: 18px; }
.ad-fader::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 4px; border-radius: 2px; background: rgb(255 255 255 / 0.1); }
.ad-fader-fill { position: absolute; left: 0; top: 7px; height: 4px; border-radius: 2px; background: var(--c); }
.ad-fader-zero { position: absolute; top: 3px; width: 1px; height: 12px; margin-left: -0.5px; background: rgb(255 255 255 / 0.35); }
.ad-fader-thumb { position: absolute; top: 1px; width: 10px; height: 16px; margin-left: -5px; border-radius: 3px; background: var(--paper); box-shadow: 0 1px 3px rgb(0 0 0 / 0.6); }
.ad-vol-db { min-width: 46px; font: 500 11.5px/1 var(--mono); color: var(--paper); }
.ad-vol.is-ref { gap: 8px; }
.ad-vol.is-ref .ad-vol-db { min-width: 0; }
.ad-vol.is-ref small { font: 400 11px/1 var(--mono); color: var(--night-muted); }
.ad-playhead { position: absolute; top: 0; bottom: 0; left: calc(var(--row, var(--head) + 18px) + (100% - var(--row, var(--head) + 18px)) * var(--f)); width: 2px; margin-left: -1px; background: var(--signal); pointer-events: none; z-index: 2; }
.ad-playhead::before { content: ""; position: absolute; top: 0; left: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--signal); }
.ad-add { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 4px; padding-top: 14px; border-top: 1px solid rgb(255 255 255 / 0.07); }
.ad-add-list { display: flex; flex-wrap: wrap; gap: 6px; }

/* under the timeline: the palette beside the block in focus, then music and sounds */
.ad-below { display: grid; grid-template-columns: 400px minmax(0, 1fr); align-items: start; gap: 28px; }
.ad-below-2 { display: grid; }
.ad-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 24px; border: 1px solid var(--line); border-radius: calc(24px * var(--round, 1)); background: var(--sheet); }
.ad-card-head { display: grid; gap: 2px; }

.ad-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.ad-tab { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 4px 13px 4px 10px; border: 1px solid var(--line); border-radius: var(--pill, 999px); background: var(--paper); color: var(--soft); font-size: 13.5px; cursor: pointer; }
.ad-tab i { width: 9px; height: 9px; border-radius: 3px; background: var(--c); }
.ad-tab.is-on { border-color: var(--ink); background: var(--ink); color: var(--paper); }

.ad-focus { gap: 22px; box-shadow: inset 0 4px 0 var(--c); }
.ad-focus-head { display: grid; gap: 6px; }
.ad-focus-k { display: flex; align-items: center; gap: 8px; }
.ad-focus-k > i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.ad-focus-yours { padding: 2px 9px; border-radius: var(--pill, 999px); background: var(--free-soft); color: var(--free-ink); font: 500 11px/1.5 var(--mono); }
.ad-focus-name { font: var(--display, 400) 36px/1.06 var(--serif); letter-spacing: var(--title-track, normal); }
.ad-focus-said { font-size: 15px; line-height: 1.5; color: var(--soft); }
.ad-focus-said b { font-weight: 500; color: var(--ink); }
.ad-focus-said q { font-family: var(--serif); font-size: 17px; font-style: italic; color: var(--ink); }
.ad-ctl { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 28px; padding: 16px 0; border-block: 1px solid var(--line); }
.ad-ctl-g { display: grid; gap: 6px; }
.ad-ctl-row { display: flex; align-items: center; gap: 8px; }
.ad-ctl-v { min-width: 62px; text-align: center; font: 500 13px/1 var(--mono); }
.ad-ctl-end { margin-left: auto; }
.ad-lock, .ad-remove { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 4px 13px 4px 10px; border: 1px solid var(--line); border-radius: var(--pill, 999px); background: var(--sheet); color: var(--soft); font-size: 13px; cursor: pointer; }
.ad-lock svg, .ad-remove svg { width: 15px; height: 15px; }
.ad-remove:hover { color: var(--signal-text); border-color: currentColor; }
.ad-bg { display: grid; gap: 8px; }
.ad-bg-list { display: flex; flex-wrap: wrap; gap: 6px; }

.ad-lines { display: grid; gap: 4px; }
.ad-lines > .label { margin-bottom: 6px; }
.ad-line { border-radius: calc(14px * var(--round, 1)); }
.ad-line.is-open { background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.ad-line-main { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; align-items: baseline; gap: 12px; width: 100%; padding: 12px 12px 8px; border: 0; border-radius: calc(14px * var(--round, 1)); background: none; color: var(--ink); text-align: left; cursor: pointer; }
.ad-line-main:hover { background: var(--paper); }
.ad-line-who { display: inline-flex; align-items: center; gap: 6px; font: 400 11px/1.4 var(--mono); color: var(--muted); }
.ad-line-who i { width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
.ad-line-text { font: 400 19px/1.7 var(--serif); }
.ad-line-pause { font: 400 11px/1.4 var(--mono); color: var(--muted); white-space: nowrap; }
.ad-line-pause.is-set { color: var(--free-ink); }
/* the silence after a line, a step at a time */
.ad-step { display: inline-flex; align-items: center; gap: 8px; }
.ad-step b { min-width: 9em; font-weight: 500; text-align: center; }
.ad-mine { margin-left: 8px; font: 400 10.5px/1 var(--mono); letter-spacing: 0.04em; color: var(--free-ink); }
/* a direction over words: a warm band under exactly those words, its label above them */
.ad-band { position: relative; padding: 2px 1px; border-radius: 4px; background: var(--ember-soft); box-shadow: inset 0 -2px 0 var(--ember); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.ad-band > i { position: absolute; left: 1px; top: -13px; font: normal 500 9.5px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ember-ink); white-space: nowrap; }

.ad-tools { display: grid; gap: 16px; padding: 4px 12px 16px 112px; }
.ad-tool { display: grid; gap: 8px; }
.ad-tool-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.ad-words { font: 400 19px/2 var(--serif); }
.ad-word { padding: 1px 3px; border: 0; border-radius: 5px; background: none; color: var(--ink); font: inherit; cursor: pointer; }
.ad-word:hover { background: var(--wash); }
.ad-word.is-dir { background: var(--ember-soft); box-shadow: inset 0 -2px 0 var(--ember); }
.ad-word.is-picked { background: var(--deep); color: var(--paper); box-shadow: none; }
.ad-dirs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ad-dirs > .label { margin-right: 4px; }
.ad-dir { display: inline-grid; gap: 0; min-height: 44px; padding: 5px 12px; border: 1px solid var(--line); border-radius: calc(12px * var(--round, 1)); background: var(--sheet); color: var(--ink); text-align: left; cursor: pointer; }
.ad-dir b { font: 500 13.5px/1.2 var(--sans); }
.ad-dir small { font-size: 11.5px; line-height: 1.25; color: var(--muted); }
.ad-dir.is-on { border-color: var(--ember); background: var(--ember-soft); }
.ad-dir.is-on small { color: var(--ember-ink); }
.ad-moves { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ad-move i { width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
.ad-new-voice { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ad-new-voice small { margin-left: 4px; font-size: 12.5px; color: var(--muted); }

.ad-ask { display: grid; gap: 10px; padding: 18px; border-radius: calc(18px * var(--round, 1)); background: var(--ai-soft); }
.ad-ask-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font: var(--display, 400) 21px/1.2 var(--serif); letter-spacing: var(--title-track, normal); }
.ad-ask .ad-sub { margin-top: -4px !important; }
.ad-ask .field { background: var(--sheet); }
.ad-ask-row { display: flex; justify-content: flex-end; }

/* music and sounds from a sentence */
.ad-make2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ad-made { display: grid; align-content: start; gap: 10px; padding: 18px; border-radius: calc(18px * var(--round, 1)); background: var(--ai-soft); }
.ad-made .field { background: var(--sheet); }
.ad-made > .btn { justify-self: start; }
.ad-snd-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ad-snd-label .label { color: var(--ai-ink); }
.ad-snd { display: grid; gap: 12px; padding: 16px; border-radius: calc(18px * var(--round, 1)); background: var(--paper); border: 1px solid var(--line); }
.ad-snd-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.ad-snd-top > div { display: grid; gap: 2px; }
.ad-snd-top q { font: italic 400 21px/1.2 var(--serif); quotes: "\201C" "\201D"; }
.ad-making { display: grid; gap: 8px; padding: 10px 0 4px; }
.ad-making-bar { height: 3px; border-radius: 2px; background: var(--wash); overflow: hidden; }
.ad-making-bar i { display: block; height: 100%; background: var(--ai); transform-origin: left; }
.ad-takes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ad-take { display: grid; gap: 6px; padding: 10px 10px 11px; border: 1px solid var(--line); border-radius: calc(14px * var(--round, 1)); background: var(--sheet); text-align: left; cursor: pointer; color: var(--ink); }
.ad-take-top { display: flex; align-items: center; gap: 6px; }
.ad-take-top .label { font-size: 10px; white-space: nowrap; }
.ad-take-play { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--wash); color: var(--deep); }
.ad-take-play svg { width: 11px; height: 11px; }
.ad-take-check { margin-left: auto; display: grid; width: 16px; height: 16px; }
.ad-take-check svg { width: 16px; height: 16px; }
.ad-take-wave { width: 100%; height: 26px; fill: var(--deep); opacity: 0.55; }
.ad-take-name { font-size: 12.5px; line-height: 1.3; color: var(--soft); }
.ad-take.is-on { background: var(--deep); border-color: var(--deep); color: var(--paper); }
.ad-take.is-on .label, .ad-take.is-on .ad-take-name { color: #cfdcd4; }
.ad-take.is-on .ad-take-play { background: #3a574b; color: var(--paper); }
.ad-take.is-on .ad-take-wave { fill: #9fd0b8; opacity: 1; }

/* the phone: the same session to read */
.ad-phone { gap: 18px; padding: 14px 20px 40px; }
.ad-note { padding: 14px 16px; border-radius: calc(16px * var(--round, 1)); background: var(--wash); font-size: 14.5px; line-height: 1.5; color: var(--soft); }
.ad-read { gap: 12px; padding: 18px; }
.ad-read-curve { height: 90px; }
.ad-read-curve .curve { height: 90px; }
.ad-read-blocks, .ad-read-tracks { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ad-read-blocks li, .ad-read-tracks li { display: grid; grid-template-columns: 12px minmax(0, 1fr); column-gap: 10px; align-items: baseline; }
.ad-read-blocks i, .ad-read-tracks i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.ad-read-blocks b, .ad-read-tracks b { font: var(--display, 400) 18px/1.2 var(--serif); letter-spacing: var(--title-track, normal); }
.ad-read-blocks small, .ad-read-tracks small { grid-column: 2; font: 400 11.5px/1.4 var(--mono); color: var(--muted); }
.ad-read-name { font: var(--display, 400) 24px/1.15 var(--serif); letter-spacing: var(--title-track, normal); }
/* a line read as in Simple: a row a direction hangs under makes room for it */
.ad-read-line { margin: 0; font: 400 18px/1.6 var(--serif); }
.ad-c.is-read { cursor: auto; user-select: text; -webkit-user-select: text; }
.ad-c.is-read:hover { background: none; box-shadow: none; }

/* ---- the block in focus, up close ---- */
.ad-close { position: relative; margin-top: 18px; padding-top: 14px; border-top: 1px solid rgb(255 255 255 / 0.14); }
.ad-close-top { border-top: 0; align-items: center; }
.ad-close-top .ad-th { padding-bottom: 6px; }
.ad-sw-fam { background: var(--c); }
.ad-close-sum { align-self: center; font: 400 13px/1.45 var(--sans); color: var(--night-muted); }
.ad-th-mini { gap: 2px; padding: 12px 0; }
.ad-close-lane { position: relative; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); grid-auto-flow: row dense; align-items: start; gap: 10px 0; min-height: 64px; padding: 10px 0; }
.ad-close-lane .ad-lane-empty { position: static; transform: none; grid-column: 1 / -1; align-self: center; padding: 14px 0; }
.ad-cl { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 3px 14px 0 3px; color: var(--paper); text-align: left; }
.ad-cl-bar { position: relative; flex: none; height: 10px; min-width: 6px; padding: 0; border: 0; border-radius: 4px; background: var(--c); cursor: pointer; }
.ad-cl.is-on .ad-cl-bar { box-shadow: 0 0 0 2px var(--night), 0 0 0 4px var(--paper); }
/* the line's chips, read as in Simple: plain words, a tint under the pointer, an outline on the one open;
   a row a direction hangs under makes room for it, as in Simple */
.ad-cl-text { font: 400 17px/1.5 var(--serif); }
.ad-c { border-radius: 4px; box-decoration-break: slice; -webkit-box-decoration-break: slice; cursor: grab; user-select: none; -webkit-user-select: none; }
.ad-c:hover { background: color-mix(in srgb, var(--paper) 10%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--paper) 10%, transparent); }
.ad-c.is-on { background: color-mix(in srgb, var(--paper) 8%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--paper) 8%, transparent), 0 0 0 4.5px color-mix(in srgb, var(--paper) 75%, transparent); }
.ad-c.is-grab { opacity: 0.4; }
.ad-c.is-soft { font-size: 0.82em; }
.ad-c.is-loud { font-size: 1.24em; font-weight: 650; }
.ad-cl .cx-note { font-size: 11.5px; }
/* a line near the end of its block, its words set back to fit: they end where its bar ends */
.ad-cl.is-back { align-items: flex-end; text-align: right; padding: 3px 3px 0 14px; }
.ad-cl.is-back .ad-cl-bar { align-self: stretch; }
.ad-cl-dir { font: 400 10px/1.3 var(--mono); letter-spacing: 0.03em; color: var(--night-muted); }
/* while a chip is held: the lanes of the other voices take it, lit under the pointer; a new voice's place */
.ad-close-lane.is-drop { outline: 1.5px dashed color-mix(in srgb, var(--c) 70%, transparent); outline-offset: -3px; border-radius: 8px; }
.ad-close-lane.is-over { background: color-mix(in srgb, var(--c) 16%, transparent); outline-style: solid; }
.ad-new-lanes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 0; }
.ad-new-lane { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 18px; border: 1.5px dashed var(--c); border-radius: 10px; color: var(--paper); font: 400 14px/1 var(--sans); }
.ad-new-lane .cx-dot { --v: var(--c); width: 9px; height: 9px; }
.ad-new-lane.is-over { background: color-mix(in srgb, var(--c) 22%, transparent); border-style: solid; }
.ad-close-sum .ad-why { color: var(--ember-ink); }
.ad-playhead-close { top: 96px; z-index: 0; background: var(--paper); opacity: 0.45; }
.ad-playhead-close::before { background: var(--paper); }

/* ---- a line's own direction, its start ---- */
.ad-line-body { display: grid; gap: 4px; min-width: 0; }
.ad-line-dir { font: 400 11px/1.3 var(--mono); letter-spacing: 0.02em; color: var(--muted); }

/* ---- written by hand ---- */
.ad-hand { display: grid; gap: 10px; margin-top: 18px; padding: 18px; border-radius: calc(18px * var(--round, 1)); background: var(--free-soft); }
.ad-hand .field { background: var(--sheet); }
.ad-hand > .btn { justify-self: start; }
.ad-hand-k { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ad-hand-k .label { color: var(--free-ink); }
.ad-hand .ad-sub { margin: 0; }
.ad-write { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; margin-top: 10px; padding: 12px; border-radius: calc(16px * var(--round, 1)); background: var(--free-soft); }
.ad-write .field { background: var(--sheet); }

/* ---- music: ours, free; or made by the AI ---- */
.ad-col { display: grid; align-content: start; gap: 12px; }
.ad-col > .ad-snd-label .label { color: var(--muted); }
.ad-ours { display: grid; gap: 10px; padding: 18px; border-radius: calc(18px * var(--round, 1)); background: var(--free-soft); }
.ad-ours .ad-snd-label .label { color: var(--free-ink); }
.ad-now { display: inline-flex; align-items: center; gap: 7px; font: 400 15px/1.2 var(--serif); color: var(--ink); }
.ad-now i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.ad-with { display: inline-flex; align-items: center; gap: 7px; font: 400 13px/1.3 var(--sans); color: var(--soft); }
.ad-with i { width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
.ad-read-l { display: grid; gap: 2px; }
.ad-read-l.is-other { padding-left: 12px; box-shadow: inset 2px 0 0 var(--c); }
.ad-read-dir { display: inline-flex; align-items: center; gap: 6px; font: 400 11px/1.4 var(--mono); color: var(--muted); }
.ad-read-dir i { width: 8px; height: 8px; border-radius: 2px; background: var(--c); }

/* a wide screen: the timeline runs the width of the window; the palette beside the block grows too */
@container app (min-width: 1500px) {
  .ad-top, .ad-below, .ad-below-2, .ad-desk > .ad-back, .ad-stage { margin-inline: 56px; }
  .ad-top { grid-template-columns: minmax(0, 1fr) 380px; }
  .ad-below { grid-template-columns: minmax(400px, 32%) minmax(0, 1fr); }
  .ad-stage { --head: 240px; }
  .ad-line-text, .ad-focus-said { max-width: 72ch; }
}
/* loudness, the same steps as the simple view: the size of the letters, full contrast */
:is(.ad-line-text, .ad-clip-text, .cx-other) .is-soft { font-size: 0.84em; }
:is(.ad-line-text, .ad-clip-text, .cx-other) .is-loud { font-size: 1.16em; font-weight: 650; }
.ad-make-col { display: grid; gap: 10px; min-width: 0; }

/* a block held on the timeline, and the places that take it: a line where it lands */
.ad-blocks .ad-blk[data-grab] { cursor: grab; }
.ad-blocks.is-moving .ad-blk { cursor: grabbing; }
.ad-blocks .ad-blk.is-held { outline: 1px dashed var(--c); outline-offset: -2px; }
.ad-blocks .ad-blk.is-drop { background: color-mix(in srgb, var(--c) 8%, transparent); }
.ad-blocks .ad-blk.is-over-before { background: color-mix(in srgb, var(--c) 18%, transparent); box-shadow: inset 3px 0 0 var(--c); }
.ad-blocks .ad-blk.is-over-after { background: color-mix(in srgb, var(--c) 18%, transparent); box-shadow: inset -3px 0 0 var(--c); }
.ad-move-why { margin: 8px 0 0; }
/* the suggestion box opened under Generate floats over the timeline, so the head beside it stays put */
.ad-make-col { grid-template-rows: auto 44px; }
.ad-make-col > .cu-suggest.is-open { position: relative; z-index: 5; align-self: start; box-shadow: 0 18px 40px rgb(0 0 0 / 0.55); }
