/* The demo app window: a smaller copy of the app's workspace (library left, one page, page bar at the bottom).
   Same tokens as the site; every class lives under .app so it never touches the page around it. */
.app { --side: 176px; position: relative; display: flex; flex-direction: column; height: clamp(520px, calc(100vh - 150px), 690px);
  background: var(--panel); border: 1px solid var(--line2); border-radius: 12px; overflow: hidden;
  box-shadow: 0 30px 80px var(--shadow); font: 12.5px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  text-align: left; user-select: none; }
.app button { font: inherit; }

/* header = title bar */
.app .ahead { position: relative; flex: none; display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 10px 0 14px;
  background: var(--panel); border-bottom: 1px solid var(--edge); }
.app .dots { display: flex; gap: 7px; } .app .dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--line2); }
.app .abrand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 12.5px; margin-left: 6px; }
.app .abrand svg { width: 22px; height: 22px; }
.app .ptitle { position: absolute; left: 50%; transform: translateX(-50%); font-weight: 600; white-space: nowrap; display: flex; gap: 8px; align-items: baseline; }
.app .ptitle .st { color: var(--muted); font-weight: 400; font-size: 11.5px; transition: color .3s; }
.app .ptitle .st.ok { color: var(--ok); }
.app .ahead .sp { flex: 1; }
.app .iconbtn { width: 30px; height: 26px; border-radius: 6px; }
.app .iconbtn svg { width: 16px; height: 16px; }
.app .fbicon { display: grid; place-items: center; color: var(--muted); cursor: default; }   /* the app's report button (decor) */

.app .abody { flex: 1; min-height: 0; display: flex; }
/* library: inactive surface, graphite gradient (--carbon) */
.app .alib { flex: none; width: var(--side); overflow: auto; background-color: var(--head); background-image: var(--carbon);
  background-size: var(--carbon-size); border-right: 1px solid var(--edge); padding: 4px 0 16px; }
.app .lib-h { padding: 10px 12px 4px; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.app .lib { list-style: none; margin: 0; padding: 0; }
.app .lib li { display: flex; align-items: center; gap: 7px; height: 24px; padding: 0 10px 0 calc(12px + var(--d, 0) * 14px);
  white-space: nowrap; overflow: hidden; color: var(--text); opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .3s, background .12s; }
.app .lib li.in { opacity: 1; transform: none; }
.app .lib li:hover { background: var(--tile); }
.app .lib li .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.app .lib li .ct { color: var(--muted); font-size: 10.5px; }
.app .lib li svg { flex: none; width: 13px; height: 13px; color: var(--muted); }
.app .lib .badge { flex: none; display: inline-grid; place-items: center; min-width: 17px; height: 15px; padding: 0 3px; border-radius: 4px;
  font-size: 10px; font-weight: 800; color: var(--bg); background: var(--pc, var(--muted)); }
.app .lib-empty { padding: 4px 12px; color: var(--muted); font-size: 11.5px; }

/* the page */
.app .apage { flex: 1; min-width: 0; overflow: auto; background: var(--panel); position: relative; scrollbar-width: thin; }
.app .pg { display: none; padding: 0 16px 30px; animation: pgIn .28s ease; }
.app .pg.on { display: block; }
@keyframes pgIn { from { opacity: 0; transform: translateY(6px); } }
.app .ph { position: sticky; top: 0; z-index: 6; display: flex; align-items: center; gap: 10px; height: 32px; margin: 0 -16px 14px; padding: 0 16px;
  background: var(--head); border-bottom: 1px solid var(--edge); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.app .ph .r { margin-left: auto; text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--muted); }
.app .cap { margin: 14px 0 8px; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.app .hint { color: var(--muted); }
.app .mono { font-family: var(--mono); font-size: 11.5px; }

.app .abtn { border-radius: 7px; border: 1px solid var(--line2); background: var(--tile); color: var(--text); padding: 6px 13px; cursor: pointer; white-space: nowrap; }
.app .abtn:hover { border-color: var(--muted); }
.app .abtn.primary { background: var(--primary); color: var(--primary-text); border-color: var(--primary); font-weight: 700; }
.app .abtn.pulse { animation: pulse 1.4s ease-in-out 2; }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--primary) 25%, transparent); } }
.app .row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.app .wstat { display: flex; align-items: center; gap: 9px; padding: 8px 11px; border-radius: 6px; margin-bottom: 10px; }
.app .wstat svg { width: 16px; height: 16px; flex: none; }
.app .wstat.ok { background: var(--ok-soft); color: var(--ok); } .app .wstat.warn { background: var(--warn-soft); color: var(--warn); }
.app .wstat.idle { background: var(--tile); color: var(--muted); }
.app .wstat .syncopt { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.app .wstat .syncopt + .abtn { margin-left: 0; }
.app .chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0; }
.app .chip { padding: 3px 9px; border-radius: 5px; background: var(--tile); border: 1px solid var(--line); font-size: 11.5px; }
.app .chip.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.app .chip.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }

/* switch and segmented buttons */
.app .switch { width: 30px; height: 18px; border-radius: 999px; background: var(--line2); position: relative; flex: none; cursor: pointer; transition: background .15s; border: 0; padding: 0; }
.app .switch::after { content: ""; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.app .switch.on { background: var(--accent); } .app .switch.on::after { transform: translateX(12px); }
.app .seg { display: inline-flex; border: 1px solid var(--line2); border-radius: 7px; overflow: hidden; }
.app .seg button { border: 0; padding: 4px 11px; background: var(--tile); color: var(--text); cursor: pointer; font-size: 11.5px; }
.app .seg button + button { border-left: 1px solid var(--line2); }
.app .seg button.on { background: var(--primary); color: var(--primary-text); font-weight: 700; }

/* tiles: picture + name + one line; selected = primary border and a red check */
.app .tiles { display: grid; gap: 6px; }
.app .tl2 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.app .tile { position: relative; display: flex; align-items: center; gap: 10px; padding: 7px 24px 7px 8px; border-radius: 8px;
  background: var(--tile); border: 2px solid var(--line); cursor: pointer; line-height: 1.25; transition: border-color .12s, background .12s; }
.app .tile:hover { border-color: var(--line2); }
.app .tile.on { border-color: var(--primary); background: var(--sel); }
.app .tile .ttl { font-weight: 650; }
.app .tile .sm { color: var(--muted); font-size: 11px; }
.app .tile .chk { position: absolute; top: 5px; right: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); display: none; }
.app .tile .chk::after { content: ""; position: absolute; left: 4.5px; top: 2.5px; width: 3.5px; height: 6.5px; border: solid var(--accent-text); border-width: 0 1.8px 1.8px 0; transform: rotate(45deg); }
.app .tile.on .chk { display: block; }
.app .tile svg.pic { flex: none; width: 46px; height: 28px; }
.app .pic .fr { fill: var(--pic-bg); stroke: var(--pic-line); stroke-width: 1; }
.app .pic .ln { fill: none; stroke: var(--pic-line); stroke-width: 1.2; }
.app .pic .ink { fill: var(--pic-ink); }
.app .ed { flex: none; width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; font-weight: 800; font-size: 11px;
  background: var(--pic-bg); border: 1px solid var(--pic-line); color: var(--pic-ink); }

/* 1 · Media */
.app .drop { border: 2px dashed var(--line2); border-radius: 10px; padding: 20px; text-align: center; background: var(--tile); transition: border-color .2s, background .2s; }
.app .drop.over { border-color: var(--accent); background: var(--accent-soft); }
.app .drop svg { width: 64px; height: 40px; display: block; margin: 0 auto 6px; }
.app .drop b { display: block; font-size: 14px; margin-bottom: 2px; }
.app .paths { list-style: none; margin: 10px 0 12px; padding: 0; }
.app .paths li { display: flex; align-items: center; gap: 8px; padding: 6px 10px; margin-bottom: 5px; border-radius: 7px; border: 1px solid var(--line);
  background: var(--head); opacity: 0; transform: translateY(-4px); transition: opacity .3s, transform .3s; }
.app .paths li.in { opacity: 1; transform: none; }
.app .paths li span { flex: 1; } .app .paths li em { font-style: normal; color: var(--muted); font-size: 11px; }
.app .paths li svg { width: 14px; height: 14px; color: var(--muted); }

/* 2 · Cameras */
.app .cams { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 8px; }
.app .cam { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: var(--tile); opacity: 0; transform: scale(.97); transition: opacity .35s, transform .35s; }
.app .cam.in { opacity: 1; transform: none; }
.app .cam svg.th { display: block; width: 100%; aspect-ratio: 16/9; background: var(--pic-bg); }
.app .cam .body { padding: 8px 10px 10px; box-shadow: inset 0 1.5px 0 var(--pc, transparent); }
.app .cam .model { font-weight: 700; }
.app .cam .pvw { position: relative; }
.app .cam .pvw .pvp { position: absolute; right: 6px; bottom: 6px; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(0,0,0,.55); color: #fff; font-style: normal; font-size: 9px; display: grid; place-items: center; }
.app .cam .meta { color: var(--muted); font-size: 11px; margin: 1px 0 6px; }
.app .cam .role { display: flex; gap: 6px; }
.app .cam .role span { flex: 1; padding: 3px 8px; border: 1px solid var(--line2); border-radius: 6px; }
.app .cam .role b { width: 30px; text-align: center; padding: 3px 0; border: 1px solid var(--line2); border-radius: 6px; color: var(--pc, var(--text)); }
.app .cam.mic .mh { display: flex; align-items: center; gap: 8px; padding: 10px 10px 0; }
.app .cam.mic .mh i { width: 28px; height: 28px; border-radius: 50%; background: var(--panel); border: 1px solid var(--line); display: grid; place-items: center; }
.app .cam.mic .mh svg { width: 14px; height: 14px; color: var(--muted); }

/* 3 · Sync — lanes like the app's multicam: picture blue, sound green, whose = hairline + label stripe */
.app .mc { --lw: 96px; position: relative; border: 1px solid var(--line); border-radius: 6px; background: var(--head); overflow: hidden; }
.app .mc .trk { display: flex; height: 34px; border-bottom: 1px solid var(--line); }
.app .mc .trk.sound { height: 38px; }
.app .mc .trk:last-child { border-bottom: 0; }
.app .mc .lbl { width: var(--lw); flex: none; padding: 3px 8px; background: var(--panel); border-right: 1px solid var(--line); display: flex;
  flex-direction: column; justify-content: center; overflow: hidden; font-size: 11px; line-height: 1.2; box-shadow: inset 2px 0 0 var(--pc, transparent); }
.app .mc .lbl b { color: var(--pc, var(--text)); font-size: 12px; }
.app .mc .lbl span { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app .mc .lane { position: relative; flex: 1; }
.app .mc .ruler { display: flex; height: 20px; border-bottom: 1px solid var(--line); }
.app .mc .ruler .lbl { background: var(--panel); color: var(--muted); font-size: 10px; box-shadow: none; }
.app .mc .tick { position: absolute; top: 0; height: 100%; border-left: 1px solid var(--line2); padding-left: 3px; font-size: 10px; color: var(--muted); font-family: var(--mono); white-space: nowrap; }
.app .mc .film, .app .mc .snd { position: absolute; top: 3px; bottom: 3px; border-radius: 2px; overflow: hidden;
  transition: left 1.1s cubic-bezier(.6,.05,.25,1); }
.app .mc .film { background: color-mix(in srgb, var(--vid) 45%, #000); border: 1px solid var(--vid); }
.app .mc .snd { background: color-mix(in srgb, var(--aud) 18%, var(--head)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--aud) 60%, transparent); }
.app .mc .film::after, .app .mc .snd::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1.5px; background: var(--pc, transparent); z-index: 1; }
.app .mc .film .fn { position: absolute; left: 0; bottom: 0; padding: 0 5px; font-size: 9.5px; color: var(--film-text, #fff); background: var(--vid);
  border-top-right-radius: 3px; font-family: var(--mono); white-space: nowrap; }
.app .mc .film .frames { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 46px, rgba(0,0,0,.45) 46px 47px); opacity: .7; }
.app .mc svg.wv { position: absolute; inset: 0; width: 100%; height: 100%; }
.app .mc svg.wv path { fill: var(--aud); }
.app .mc svg.wv line { stroke: color-mix(in srgb, var(--aud) 50%, transparent); stroke-width: 1; vector-effect: non-scaling-stroke; }
.app .mc .head { position: absolute; top: 0; bottom: 0; left: 0; width: 0; border-left: 1.5px dashed var(--accent); z-index: 4; opacity: 0;
  transition: opacity .3s; pointer-events: none; }
.app .mc.synced .head { opacity: 1; }
.app .mc .flag { position: absolute; z-index: 3; top: 50%; transform: translate(-50%, -50%); font-size: 9.5px; font-weight: 700; padding: 1px 5px;
  border-radius: 3px; background: var(--warn-soft); color: var(--warn); white-space: nowrap; opacity: 0; transition: opacity .4s .9s; }
.app .mc.synced .flag { opacity: 1; }
.app .mc .trk.camsnd .snd { background: color-mix(in srgb, var(--aud) 10%, var(--head)); }
.app .mc .trk.camsnd .lbl span { font-size: 10px; }
.app .mc .trk .lane { cursor: pointer; }
/* the lane being heard (app: .trk.hear / .orow.hear): strong red label with a red edge, red hairlines on the lane */
.app .mc .trk.hear .lbl, .app .tlx .row.hear .lbl { background: color-mix(in srgb, var(--accent) 38%, var(--head)); box-shadow: inset 4px 0 0 var(--accent); color: var(--text); }
.app .mc .trk.hear .lbl b, .app .mc .trk.hear .lbl span { color: var(--text); }
.app .mc .trk.hear > .lane, .app .tlx .row.hear > .lane { background: color-mix(in srgb, var(--accent) 14%, transparent); box-shadow: inset 0 1px 0 var(--accent), inset 0 -1px 0 var(--accent); }
.app .who .p.hear { background: color-mix(in srgb, var(--accent) 14%, var(--tile)); box-shadow: inset 4px 0 0 var(--accent); }

/* 4 · Names */
.app table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.app th { background: var(--head); color: var(--muted); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; text-align: left; font-weight: 700; }
.app th, .app td { padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.app .tbl { border: 1px solid var(--line); border-radius: 6px; overflow: auto; }
.app td .arrow { color: var(--muted); }
.app td .new { font-weight: 700; color: var(--pc, var(--text)); }
.app td .md5 { color: var(--muted); }
.app td .md5.ok { color: var(--ok); }
.app td .md5.ok::before { content: "✓ "; font-weight: 800; }
/* "Can the cards be formatted?" line after Apply (the app's okbox / warnbox / badbox) */
.app .fmtv { margin-top: 10px; border-radius: 6px; padding: 8px 10px; font-size: 12.5px; }
.app .fmtv.ok { background: var(--ok-soft); color: var(--ok); } .app .fmtv.warn { background: var(--warn-soft); color: var(--warn); }
.app .fmtv.bad { background: var(--bad-soft); color: var(--bad); }

/* 5 · Edit — the timeline that will open in the editor + each voice */
.app .tlx { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--head); }
.app .tlx .row { position: relative; display: flex; align-items: stretch; gap: 0; flex-wrap: nowrap; height: 26px; border-bottom: 1px solid var(--line); }
.app .tlx .row:last-child { border-bottom: 0; }
.app .tlx .lbl { width: 62px; flex: none; display: flex; align-items: center; padding-left: 8px; font-weight: 700; font-size: 11px;
  background: var(--panel); border-right: 1px solid var(--line); color: var(--pc, var(--text)); box-shadow: inset 2px 0 0 var(--pc, transparent); }
.app .tlx .lane { position: relative; flex: 1; }
.app .tlx .c { position: absolute; top: 4px; bottom: 4px; border-radius: 2px; overflow: hidden; font-size: 9.5px; font-weight: 700; color: #fff;
  padding-left: 3px; line-height: 18px; white-space: nowrap; animation: cIn .35s both; border-right: 1px solid var(--head); }
.app .tlx .c.v { background: var(--vid); } .app .tlx .c.a { background: color-mix(in srgb, var(--aud) 75%, var(--head)); }
.app .tlx .c::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1.5px; background: var(--pc, transparent); }
.app .tlx .c.patch { background: color-mix(in srgb, var(--warn) 70%, var(--head)); z-index: 1; }
/* a sound event on a person's own mic (mic bump, rustle, phone): a thin red mark through the lane, as in the app */
.app .tlx .c.sev { background: color-mix(in srgb, var(--bad) 35%, transparent); border-left: 2px solid var(--bad); min-width: 3px; z-index: 2; }
.app .who .wl .sev { position: absolute; top: 0; bottom: 0; width: 3px; margin-left: -1px; background: var(--bad); z-index: 2; }
.app .who .sevt { font-style: normal; color: var(--bad); }
.app .tlx .row.ruler { height: 20px; }
.app .tlx .row.ruler .lbl { box-shadow: none; }
.app .tlx .tick { position: absolute; top: 0; height: 100%; border-left: 1px solid var(--line2); padding-left: 3px; font-size: 10px;
  color: var(--muted); font-family: var(--mono); white-space: nowrap; line-height: 20px; }
.app .tlx .row.snd { height: 34px; }
.app .tlx .c svg.wv { position: absolute; inset: 0; width: 100%; height: 100%; }
.app .tlx .c svg.wv path { fill: var(--wave-on-aud); opacity: .85; }
.app .tlx .c svg.wv line { display: none; }
.app .tlx .c.v { font-size: 10px; padding-left: 3px; display: flex; align-items: center; gap: 3px; }
.app .tlx .c svg.shotpic { flex: none; width: 16px; height: 12px; background: var(--wall); border-radius: 2px; }
.app .tlx .row.snd .lane { cursor: pointer; }
/* "tph", not "ph": .app .ph is the page header (dark background, padding) */
.app .tlx .tph { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1.5px solid var(--accent); z-index: 3; pointer-events: none; }
@keyframes cIn { from { opacity: 0; transform: scaleX(.6); transform-origin: left; } }
.app .who { margin-top: 10px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.app .who .p { display: grid; grid-template-columns: 34px 1fr; gap: 4px 10px; padding: 8px 10px; border-bottom: 1px solid var(--line); background: var(--tile); }
.app .who .p:last-child { border-bottom: 0; }
.app .who .face { grid-row: span 2; width: 34px; height: 34px; border-radius: 6px; background: var(--pic-bg); border: 1px solid var(--pic-line); overflow: hidden; }
.app .who .face svg { width: 100%; height: 100%; }
.app .who .nm b { color: var(--pc); } .app .who .nm span { color: var(--muted); }
.app .who .nm .bvoice { font-style: normal; font-size: .82em; font-weight: 600; color: var(--ok); border: 1px solid currentColor; border-radius: 9px; padding: 0 6px; margin-left: 4px; white-space: nowrap; cursor: help; }
.app .who .wl { position: relative; height: 22px; border-radius: 2px; background: color-mix(in srgb, var(--aud) 18%, var(--head)); overflow: hidden; cursor: pointer; }
.app .who .wl svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.app .who .wl svg path { fill: var(--aud); }
.app .who .wl .patch { position: absolute; top: 0; bottom: 0; background: color-mix(in srgb, var(--warn) 30%, transparent); border-top: 3px solid var(--warn); z-index: 1; }
.app .who .wl .ph2 { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1.5px solid var(--accent); z-index: 2; display: none; }
.app .tip { position: absolute; z-index: 10; pointer-events: none; background: var(--primary); color: var(--primary-text); font-size: 11px;
  padding: 4px 8px; border-radius: 5px; white-space: nowrap; opacity: 0; transition: opacity .12s; }
.app .tip.on { opacity: 1; }

/* 6 · Quality */
.app .qmodes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.app .qbar { height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; margin: 10px 0; }
.app .qbar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width 1.4s ease; }
.app .counts { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.app .counts span { padding: 3px 9px; border-radius: 5px; border: 1px solid var(--line); background: var(--tile); font-weight: 700; font-size: 11px; }
.app .st { font-weight: 800; font-size: 10.5px; }
.app .st.FAIL { color: var(--bad); } .app .st.WARN { color: var(--warn); } .app .st.OK { color: var(--ok); }
.app tr.FAIL td { background: var(--bad-soft); } .app tr.WARN td { background: var(--warn-soft); }
.app tr.WARN td.iss { color: var(--warn); } .app tr.FAIL td.iss { color: var(--bad); }
.app td.iss { white-space: normal; min-width: 180px; }
.app .qrows tr { transition: opacity .3s; }

/* 7 · Deliver */
.app .rtile { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 8px; border: 2px solid var(--line); background: var(--tile); cursor: pointer; }
.app .rtile:hover { border-color: var(--line2); }
.app .rtile svg { width: 34px; height: 34px; flex: none; }
.app .checks { list-style: none; padding: 0; margin: 10px 0; }
.app .checks li { padding-left: 18px; position: relative; margin: 3px 0; }
.app .checks li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.app .mini { margin-top: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--tile); padding: 12px 14px; font-size: 11.5px;
  opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s; }
.app .mini.in { opacity: 1; transform: none; }
.app .mini h5 { margin: 0 0 8px; font-size: 13px; padding-bottom: 6px; border-bottom: 1px solid var(--line2); }
.app .mini li { list-style: none; padding: 4px 8px 4px 24px; border-radius: 5px; margin: 3px 0; position: relative; }
.app .mini ul { margin: 0; padding: 0; }
.app .mini li::before { position: absolute; left: 9px; font-weight: 800; }
.app .mini .ok { background: var(--ok-soft); } .app .mini .ok::before { content: "✓"; color: var(--ok); }
.app .mini .w { background: var(--warn-soft); } .app .mini .w::before { content: "!"; color: var(--warn); }
.app .mini .b { background: var(--bad-soft); } .app .mini .b::before { content: "✕"; color: var(--bad); }

/* page bar (bottom) */
.app .atabs { flex: none; display: flex; justify-content: center; height: 50px; background: var(--head); border-top: 1px solid var(--edge); }
.app .atabs a { flex: 0 1 104px; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: 9.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); cursor: pointer;
  border-top: 3px solid transparent; text-decoration: none; }
.app .atabs a svg { width: 21px; height: 21px; }
.app .atabs a:hover { color: var(--text); background: var(--wash); }
.app .atabs a.on { background: var(--tab-on); color: var(--text); border-top-color: var(--accent); }
.app .atabs a.on svg { color: var(--accent); }
.app .atabs a.done svg { color: var(--ok); }

@media (max-width: 760px) {
  .app { height: 560px; }
  .app .alib { display: none; }
  .app .ptitle { display: none; }
  .app .atabs a span { display: none; }
  .app .mc { --lw: 64px; }
  .app .qmodes { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .app * { transition: none !important; animation: none !important; } }

/* sound stems on the Edit page: one row per person, a wave in green, the backup patch in amber */
.app .stemrow { gap: 10px; flex-wrap: wrap; align-items: center; }
.app .stemhint { margin-top: 8px; font-size: 11.5px; }
.app .stems { margin-top: 10px; display: grid; gap: 6px; }
.app .stems .stm { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: center; padding: 7px 10px;
  border: 1px solid var(--line); border-left: 2px solid var(--pc, var(--ok)); border-radius: 6px; background: var(--tile);
  opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s; }
.app .stems .stm.in { opacity: 1; transform: none; }
.app .stems .stm .mono { color: var(--text); font-weight: 600; }
.app .stems .stm .hint { font-size: 11px; }
.app .stems .stm .wl { grid-column: 1 / -1; position: relative; height: 18px; border-radius: 2px; background: color-mix(in srgb, var(--aud) 18%, var(--head)); overflow: hidden; }
.app .stems .stm .wl svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.app .stems .stm .wl svg path { fill: var(--aud); }
.app .stems .stm .wl svg line { stroke: var(--aud); stroke-width: .5; }
.app .stems .stm .wl .patch { position: absolute; top: 0; bottom: 0; background: color-mix(in srgb, var(--warn) 30%, transparent); border-top: 3px solid var(--warn); }
.app .stems .stm.note { display: block; border-left-color: var(--ok); background: var(--ok-soft); color: var(--text); font-size: 11.5px; }
@media (max-width: 560px) { .app .stems .stm { grid-template-columns: 1fr; } }

/* Activity in the library and "Last time" next to an action, as in the app */
.app .lib li.hist .ct { flex: none; font-variant-numeric: tabular-nums; }
.app .took { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.app div.took { margin-top: 6px; }
.app div.took:empty { display: none; }
.app .eta { color: var(--muted); font-variant-numeric: tabular-nums; margin-left: 6px; white-space: nowrap; }

/* chapter and moment markers on the Edit timeline */
.app .tlx .row.mkrow { height: 22px; }
.app .tlx .c.mom { top: 5px; bottom: 5px; background: color-mix(in srgb, var(--c4) 30%, var(--head)); border: 1px solid var(--c4); color: var(--text);
  font-size: 9px; padding-left: 3px; display: flex; align-items: center; cursor: default; }
.app .tlx .chap { position: absolute; top: 2px; bottom: 2px; border-left: 1.5px solid var(--warn); padding: 0 4px; font-size: 9px; font-weight: 700;
  color: var(--text); background: linear-gradient(90deg, color-mix(in srgb, var(--warn) 45%, transparent), transparent); border-radius: 0 3px 3px 0;
  display: flex; align-items: center; white-space: nowrap; z-index: 2; cursor: default; }
#chapOn:not(.on) { opacity: .55; }

/* subtitles row on the Edit page */
.app .subrow { margin-top: 12px; gap: 10px; flex-wrap: wrap; align-items: center; }
.app .subrow .seg button:disabled { opacity: .45; cursor: default; }

/* 2026-12-02: Leave out on camera cards (red outline), mic In the edit On/Off, person lines with icons */
.app .cam .model { display: flex; align-items: center; gap: 6px; }
.app .cam .model span { flex: 1; min-width: 0; }
.app .cam .model .lv { font-style: normal; font-weight: 500; font-size: 10px; padding: 1px 7px; border: 1px solid var(--bad); border-radius: 5px; color: var(--text); white-space: nowrap; }
.app .cam .inedit { display: flex; align-items: center; margin-top: 7px; font-size: 10px; }
.app .cam .inedit em { font-style: normal; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-right: 8px; }
.app .cam .inedit i { font-style: normal; padding: 1px 9px; border: 1px solid var(--line2); }
.app .cam .inedit i:first-of-type { border-radius: 5px 0 0 5px; } .app .cam .inedit i:last-of-type { border-radius: 0 5px 5px 0; border-left: 0; }
.app .cam .inedit i.on { background: var(--text); color: var(--bg); }
.app .who .nm .say { color: var(--muted); }
.app .who .nm .si { display: inline-grid; place-items: center; width: 14px; height: 14px; vertical-align: -2px; margin: 0 2px 0 6px; color: var(--muted); }
.app .who .nm .si svg { width: 13px; height: 13px; }
.app .who .nm .ch { color: var(--text); font-weight: 600; }
.app .who .nm .ch::after { content: ""; display: inline-block; width: 8px; height: 5px; margin: 0 2px 0 4px; vertical-align: 2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5'%3E%3Cpath d='M1 1l3 3 3-3' fill='none' stroke='%23999' stroke-width='1.3'/%3E%3C/svg%3E") no-repeat center; }
.app .who .nm .gp { font-style: normal; color: var(--warn); } .app .who .nm .gp .ch { color: var(--warn); }
