/* ── Color workspace: About title card in the Program monitor ───── */
.mon-frame { container-type: inline-size; }
.mon-about { display: none; pointer-events: none; overflow: hidden; }
.app[data-workspace="color"] .mon-about { display: block; }
.app[data-workspace="color"] .mon-bigplay, .app[data-workspace="color"] .mon-overlay-title { display: none; }
.mon-tint { pointer-events: none; mix-blend-mode: soft-light; }
.ab-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(70% 90% at 78% 30%, rgba(255,138,61,.42), transparent 60%),
    radial-gradient(60% 80% at 15% 100%, rgba(45,140,235,.38), transparent 65%),
    linear-gradient(135deg, #17100b, #0b0d12);
}
.ab-bg::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 3px); }
.ab-card { position: absolute; inset: 9% 8%; display: flex; align-items: center; gap: 5cqw; }
.ab-photo { flex: none; width: 27cqw; aspect-ratio: 4/5; border-radius: 1.2cqw; overflow: hidden; background: #222; box-shadow: 0 2cqw 5cqw rgba(0,0,0,.5); }
.ab-photo img { width: 100%; height: 100%; object-fit: cover; }
.ab-txt { min-width: 0; color: #fff; }
.ab-kicker { font-size: 1.9cqw; letter-spacing: .25em; text-transform: uppercase; color: var(--brand-2); font-weight: 600; }
.ab-name { font-size: 7.2cqw; font-weight: 800; line-height: .95; letter-spacing: -.02em; margin: 1.2cqw 0 1.4cqw; }
.ab-role { font-size: 2.3cqw; color: rgba(255,255,255,.8); }
.ab-stats { display: flex; gap: 3.5cqw; margin-top: 4cqw; }
.ab-stat b { display: block; font-size: 4.4cqw; font-weight: 700; line-height: 1; color: #fff; }
.ab-stat span { font-size: 1.6cqw; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .08em; }

/* Essential graphics (bio) */
.eg { overflow: auto; user-select: text; -webkit-user-select: text; }
.eg-head { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-bottom: 1px solid #161616; color: var(--text-2); position: sticky; top: 0; background: var(--panel); z-index: 1; }
.eg-head b { color: var(--text-hi); font-weight: 600; }
.eg-head .grow { flex: 1; }
.eg-dim { color: var(--accent-2); font-size: var(--fs-s); }
.eg-layers { padding: 6px 0; }
.eg-layer { display: grid; grid-template-columns: 26px 1fr; gap: 2px; padding: 6px 14px 6px 8px; border-left: 2px solid transparent; }
.eg-layer:hover { background: #242424; border-left-color: var(--accent); }
.eg-layer .eg-t { color: var(--text-3); padding-top: 3px; }
.eg-layer .eg-t .i { width: 13px; height: 13px; }
.eg-layer p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text); }
.eg-layer.lead p { font-size: 19px; font-weight: 700; color: var(--text-hi); line-height: 1.3; }
.eg-sec { padding: 10px 14px 4px; color: var(--text-3); font-size: var(--fs-s); text-transform: uppercase; letter-spacing: .08em; border-top: 1px solid #191919; margin-top: 4px; }
.eg-dl { display: grid; grid-template-columns: 96px 1fr; gap: 6px 10px; margin: 6px 14px 10px; font-size: var(--fs-l); }
.eg-dl dt { color: var(--text-3); }
.eg-dl dd { margin: 0; color: var(--text-hi); }
.eg-cta { display: flex; gap: 8px; padding: 6px 14px 16px; flex-wrap: wrap; }

/* ── Audio workspace: mixer ─────────────────────────────────────── */
.mixer-note { flex: none; padding: 8px 12px; color: var(--text-2); font-size: var(--fs); border-bottom: 1px solid #161616; }
.mixer-note b { color: var(--text-hi); font-weight: 600; }
.mixer { flex: 1; min-height: 0; display: flex; gap: 2px; padding: 6px; overflow-x: auto; overflow-y: hidden; }
.mstrip {
  flex: 0 0 96px; display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: #212121; border-radius: 3px; padding: 6px 4px; min-height: 0; cursor: pointer;
  border: 1px solid transparent; transition: background .15s, border-color .15s;
}
.mstrip:hover { background: #272727; }
.mstrip.active, .mstrip:focus-visible { border-color: var(--accent); outline: none; }
.mstrip.live .ms-name { color: var(--c-caribbean); }
.mstrip.master { background: #1a1a1a; cursor: default; flex-basis: 84px; margin-left: 6px; }
.ms-knob { width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #4a4a4a, #262626); box-shadow: inset 0 0 0 1px #111, 0 0 0 2px #2c2c2c; position: relative; }
.ms-knob i { position: absolute; left: 50%; top: 3px; width: 2px; height: 10px; margin-left: -1px; background: var(--accent-2); border-radius: 1px; transform-origin: 50% 12px; }
.ms-pan { font-size: 10px; color: var(--timecode); }
.ms-btns { display: flex; gap: 2px; min-height: 16px; }
.ms-btns span { width: 18px; height: 16px; display: grid; place-items: center; font-size: 9.5px; font-weight: 700; color: var(--text-3); background: #2c2c2c; border-radius: 2px; }
.ms-read { font-size: 10px; color: var(--text-2); display: flex; align-items: center; gap: 2px; }
.ms-read .i { width: 9px; height: 9px; }
.ms-body { flex: 1; min-height: 60px; display: flex; gap: 6px; width: 100%; justify-content: center; }
.ms-fader { position: relative; width: 26px; }
.ms-track { position: absolute; left: 50%; top: 4px; bottom: 4px; width: 4px; margin-left: -2px; background: #0d0d0d; border-radius: 2px; }
.ms-cap { position: absolute; left: 1px; right: 1px; height: 14px; border-radius: 2px; background: linear-gradient(#bdbdbd, #7d7d7d); box-shadow: 0 1px 2px rgba(0,0,0,.6); transition: bottom .6s cubic-bezier(.2,.7,.2,1); }
.ms-cap::after { content: ''; position: absolute; left: 2px; right: 2px; top: 6px; height: 2px; background: #333; }
.ms-meter { position: relative; width: 8px; background: #0d0d0d; border-radius: 1px; overflow: hidden; }
.ms-meter i { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: linear-gradient(to top, #2fbf4a 60%, #d8d23c 82%, #e5484d); transition: height .06s linear; }
.ms-db { font-size: 10px; color: var(--timecode); font-variant-numeric: tabular-nums; }
.ms-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; width: 100%; min-height: 0; }
.ms-thumbs img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 1px; background: #000; }
.ms-count { font-size: 10px; color: var(--text-3); }
.ms-name { font-size: 11.5px; font-weight: 600; color: var(--text-hi); text-align: center; line-height: 1.2; min-height: 28px; display: grid; place-items: center; word-break: break-word; }
.ms-track-id { font-size: 10px; color: var(--text-3); background: #2a2a2a; border-radius: 2px; padding: 0 6px; }

/* ── Learning workspace ─────────────────────────────────────────── */
.learn { overflow-y: auto; padding: 0 0 16px; }
.learn-hero { padding: 18px 16px 14px; background: radial-gradient(120% 120% at 100% 0%, rgba(45,140,235,.18), transparent 60%); border-bottom: 1px solid #161616; }
.learn-kicker { font-size: var(--fs-s); text-transform: uppercase; letter-spacing: .12em; color: var(--accent-2); font-weight: 600; }
.learn-hero h2 { margin: 4px 0 6px; font-size: 22px; color: var(--text-hi); font-weight: 700; line-height: 1.15; }
.learn-hero p { margin: 0; color: var(--text-2); font-size: var(--fs-l); line-height: 1.5; user-select: text; }
.learn-sec { padding: 14px 16px 6px; color: var(--text-3); font-size: var(--fs-s); text-transform: uppercase; letter-spacing: .08em; }
.learn-card {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "tag go" "title go" "meta go";
  margin: 0 10px 6px; padding: 10px 12px; border-radius: 6px; background: #232323; border: 1px solid #2a2a2a;
  text-align: left; color: var(--text); text-decoration: none !important; cursor: pointer; width: calc(100% - 20px);
  transition: background .12s, border-color .12s;
}
.learn-card:hover { background: #2a2a2a; border-color: #3a3a3a; }
.lc-tag { grid-area: tag; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--brand-2); font-weight: 600; }
.lc-title { grid-area: title; font-size: 14px; color: var(--text-hi); font-weight: 600; margin: 2px 0; line-height: 1.3; }
.lc-meta { grid-area: meta; font-size: var(--fs-s); color: var(--text-3); }
.lc-go { grid-area: go; align-self: center; color: var(--text-3); padding-left: 10px; }
.learn-card:hover .lc-go { color: var(--accent-2); }

/* ── Export workspace (contact) ─────────────────────────────────── */
.export { display: grid; grid-template-columns: 260px minmax(0, 1fr) 340px; height: 100%; min-height: 0; width: 100%; }
.export > * { overflow-y: auto; min-height: 0; padding: 14px 16px 20px; }
.ex-dest { border-right: 1px solid #161616; background: #1a1a1a; }
.ex-side { border-left: 1px solid #161616; background: #1a1a1a; }
.ex-h { font-size: var(--fs-s); text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); margin: 4px 0 10px; font-weight: 600; }
.ex-destrow { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 5px; color: var(--text); text-decoration: none !important; }
.ex-destrow:hover { background: #262626; }
.ex-destrow.on { background: #222c38; }
.ex-di { width: 30px; height: 30px; border-radius: 6px; background: #2a2a2a; display: grid; place-items: center; color: var(--text-hi); flex: none; }
.ex-destrow.on .ex-di { background: var(--accent); }
.ex-dn { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ex-dn b { font-weight: 600; color: var(--text-hi); }
.ex-dn small { color: var(--text-3); font-size: var(--fs-s); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex-toggle { width: 26px; height: 14px; border-radius: 7px; background: #3a3a3a; position: relative; flex: none; }
.ex-toggle::after { content: ''; position: absolute; left: 2px; top: 2px; width: 10px; height: 10px; border-radius: 50%; background: #bbb; transition: left .15s; }
.ex-toggle.on { background: var(--accent); }
.ex-toggle.on::after { left: 14px; background: #fff; }
.ex-avail { margin-top: 18px; padding: 12px; border-radius: 6px; background: #222; border: 1px solid #2c2c2c; font-size: var(--fs-l); }
.ex-avail b { color: var(--brand-2); font-weight: 600; font-size: var(--fs-s); text-transform: uppercase; letter-spacing: .08em; }
.ex-avail p { margin: 6px 0 0; color: var(--text); line-height: 1.5; user-select: text; }
.ex-settings { max-width: 640px; width: 100%; margin: 0 auto; }
.ex-field { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 4px 14px; align-items: center; padding: 6px 0; }
.ex-field label { color: var(--text-2); font-size: var(--fs-l); }
.ex-field .field { height: 30px; font-size: var(--fs-l); padding: 0 9px; width: 100%; }
.ex-field select.field { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, #999 50%), linear-gradient(135deg, #999 50%, transparent 50%); background-position: calc(100% - 14px) 13px, calc(100% - 9px) 13px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 26px; }
.ex-field .field.ex-link { color: var(--accent-2); }
.ex-field .ex-msg { height: auto; min-height: 140px; padding: 8px 9px; line-height: 1.5; resize: vertical; grid-column: 1 / -1; }
.ex-field:has(.ex-msg) label { grid-column: 1 / -1; }
.ex-field .field.bad { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
.ex-hint { grid-column: 2; color: var(--text-3); font-size: var(--fs-s); }
p.ex-hint { margin: 4px 0 8px; grid-column: auto; }
.ex-preset-row { padding: 10px 12px 6px; margin-bottom: 8px; border-radius: 6px; background: #222c38; border: 1px solid #2d4258; }
.ex-preset-row .ex-field label { color: var(--text-hi); font-weight: 600; }
.ex-sec { border-top: 1px solid #262626; margin-top: 8px; }
.ex-sec > .fx-head { padding: 8px 0; height: auto; font-weight: 600; }
.ex-sec .fx-body { padding: 0 0 6px 16px; }
.ex-preview { position: relative; aspect-ratio: 16/9; border-radius: 4px; overflow: hidden; background: #000; }
.ex-preview img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.ex-preview-txt { position: absolute; inset: auto 0 0 0; padding: 18px 12px 10px; background: linear-gradient(transparent, rgba(0,0,0,.8)); display: flex; flex-direction: column; }
.ex-preview-txt b { color: #fff; font-size: 16px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex-preview-txt span { color: rgba(255,255,255,.75); font-size: var(--fs); }
.ex-range { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; margin: 10px 0 16px; font-size: var(--fs); }
.ex-range span { color: var(--text-3); }
.ex-range b { color: var(--text-hi); font-weight: 500; }
.ex-sum { display: grid; grid-template-columns: 56px 1fr; gap: 6px 10px; font-size: var(--fs); }
.ex-sum-k { color: var(--text-3); }
.ex-sum-v { color: var(--text); white-space: pre-line; word-break: break-word; user-select: text; }
.ex-size { margin: 14px 0; color: var(--text-2); font-size: var(--fs); }
.ex-size span { color: var(--text-hi); }
.ex-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.ex-go { min-width: 110px; }

/* ── Tour ───────────────────────────────────────────────────────── */
.tour-hole { position: fixed; z-index: 1500; border-radius: 6px; box-shadow: 0 0 0 9999px rgba(0,0,0,.6), 0 0 0 2px var(--accent); pointer-events: none; transition: all .3s cubic-bezier(.2,.7,.2,1); }
.tour-pop { position: fixed; z-index: 1501; width: min(320px, calc(100vw - 32px)); background: #262626; border: 1px solid #444; border-radius: 8px; padding: 14px 14px 12px; box-shadow: 0 16px 40px rgba(0,0,0,.6); transition: all .3s cubic-bezier(.2,.7,.2,1); }
.tour-pop h3 { margin: 0 0 6px; font-size: 15px; color: var(--text-hi); }
.tour-pop p { margin: 0 0 12px; font-size: var(--fs-l); line-height: 1.5; color: var(--text); }
.tour-foot { display: flex; align-items: center; gap: 8px; }
.tour-foot .n { flex: 1; color: var(--text-3); font-size: var(--fs-s); }
.still-dialog .dialog-body { padding: 12px; }
.learn-card.has-thumb { grid-template-columns: 96px 1fr auto; grid-template-areas: "thumb tag go" "thumb title go" "thumb meta go"; column-gap: 12px; }
.lc-thumb { grid-area: thumb; align-self: center; aspect-ratio: 16 / 9; border-radius: 3px; overflow: hidden; background: #111; }
.lc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.eg-quotes { display: flex; flex-direction: column; gap: 8px; padding: 6px 14px 10px; }

/* browsers without container units (before Safari 16 / Chrome 105 / Firefox 110): size the About card from the window instead */
@supports not (width: 1cqw) {
  .ab-card { gap: 2.5vw; }
  .ab-photo { width: 13vw; border-radius: .6vw; box-shadow: 0 1vw 2.5vw rgba(0,0,0,.5); }
  .ab-kicker { font-size: max(10px, .95vw); }
  .ab-name { font-size: 3.6vw; margin: .6vw 0 .7vw; }
  .ab-role { font-size: max(11px, 1.15vw); }
  .ab-stats { gap: 1.75vw; margin-top: 2vw; }
  .ab-stat b { font-size: 2.2vw; }
  .ab-stat span { font-size: max(9px, .8vw); }
}
