/* telep.app — prompter SKIN (owner: designer). Loaded AFTER prompter.css; visuals only, no layout logic.
   Goal: Apple-grade recorder chrome — one control height, quiet translucent toolbar, ghost icon buttons,
   a single accent per action (Play = yellow, Record = red), thin sliders, focus rings only for keyboard. */

.tp-stage {
  --sk-h: 40px;                                   /* one control height (desktop pointer; touch + narrow = 44) */
  --sk-r: 10px;                                   /* control radius */
  --sk-glass: rgba(12, 17, 34, .72);
  --sk-hair: rgba(255, 255, 255, .08);
  --sk-fill: rgba(255, 255, 255, .07);            /* resting fill of inline controls */
  --sk-fill-hover: rgba(255, 255, 255, .12);
  --sk-fill-on: rgba(255, 255, 255, .18);         /* selected segment / pressed toggle */
  --sk-label: #9AA6C4;                            /* 7.6:1 on the toolbar glass */
  --sk-value: #E6EBF7;
  --sk-ring: 0 0 0 2px #070B1A, 0 0 0 4px var(--tp-yellow);
  --sk-pop: rgba(20, 27, 50, .92);
  --sk-shadow: 0 1px 1px rgba(0, 0, 0, .25), 0 10px 30px rgba(0, 0, 0, .45);
  --sk-ease: cubic-bezier(.25, .1, .25, 1);
}
@media (pointer: coarse), (max-width: 699px) { .tp-stage { --sk-h: 44px; --sk-r: 12px; } }

/* ---------- toolbar: translucent glass, hairline divider, calm type ---------- */
.tp-stage .tp-tbar { background: var(--sk-glass); border-bottom: 1px solid var(--sk-hair); font-size: 13px; letter-spacing: -.003em; }
/* desktop only: frosted glass + roomier padding. Phones: NO backdrop-filter on the toolbar (it would become the containing
   block of the fixed Adjust sheet) and prompter-dev's 6px padding keeps the row at 57px */
@media (min-width: 700px) and (min-height: 501px) {
  .tp-stage .tp-tbar { -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
    padding-top: calc(10px + env(safe-area-inset-top)); padding-bottom: 10px; }
}
@media (max-width: 699px), (max-height: 500px) { .tp-stage .tp-tbar { background: rgba(12, 17, 34, .96); } }
.tp-stage.tp-mode-record .tp-tbar { background: var(--sk-glass); }


/* status: time as calm tabular text */
.tp-stage .tp-tbar .tp-time { font-size: 13px; font-weight: 500; color: var(--sk-value); font-variant-numeric: tabular-nums; }

/* ---------- icon buttons: subtle ghost squircles, no yellow blobs ---------- */
.tp-stage .tp-tbar .tp-icon-btn {
  width: var(--sk-h); height: var(--sk-h); border-radius: var(--sk-r); color: #DCE3F3; background: transparent;
  transition: background-color .15s var(--sk-ease), color .15s var(--sk-ease), transform .1s var(--sk-ease);
}
.tp-stage .tp-tbar .tp-icon-btn svg { width: 20px; height: 20px; }
.tp-stage .tp-tbar .tp-icon-btn:hover { background: var(--sk-fill-hover); color: #fff; }
.tp-stage .tp-tbar .tp-icon-btn:active { transform: scale(.94); }
/* pressed / open state: quiet fill + accent glyph (was a solid yellow circle) */
.tp-stage .tp-tbar .tp-icon-btn[aria-pressed="true"], .tp-stage .tp-tbar .tp-icon-btn[aria-expanded="true"] { background: var(--sk-fill-on); color: var(--tp-yellow); }

/* ---------- transport: the ONE yellow control ---------- */
.tp-stage .tp-tb-transport { gap: 2px; }
.tp-stage .tp-tb-transport .tp-play { width: 40px !important; height: 40px !important; box-shadow: 0 1px 2px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .35); transition: transform .1s var(--sk-ease), filter .15s; }
.tp-stage .tp-tb-transport .tp-play svg { width: 20px; height: 20px; }
.tp-stage .tp-tb-transport .tp-play:hover { filter: brightness(1.06); }
.tp-stage .tp-tb-transport .tp-play:active { transform: scale(.94); }
@media (pointer: coarse), (max-width: 699px) { .tp-stage .tp-tb-transport .tp-play { width: 44px !important; height: 44px !important; } }

/* ---------- Record: the ONE red control ---------- */
.tp-stage .tp-tbar .tp-recbig.tp-tb-recbtn {
  height: var(--sk-h) !important; padding: 0 14px 0 11px; gap: 7px; font-size: 14px; font-weight: 600; letter-spacing: -.005em;
  background: #E5332A; box-shadow: 0 1px 2px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .18); transition: transform .1s var(--sk-ease), filter .15s;
}
.tp-stage .tp-tbar .tp-recbig.tp-tb-recbtn:hover { filter: brightness(1.07); }
.tp-stage .tp-tbar .tp-recbig.tp-tb-recbtn:active { transform: scale(.97); }
.tp-stage .tp-tbar .tp-recbig.tp-tb-recbtn .tp-recdot { width: 11px !important; height: 11px !important; }

/* ---------- mic: icon + meter, device name small, muted and truncated ---------- */
.tp-stage .tp-tbar .tp-mic { gap: 6px; padding: 0 10px 0 8px; height: 28px; border-radius: 999px; background: var(--sk-fill); color: var(--sk-label); font-size: 12px; }
.tp-stage .tp-tbar .tp-mic .tp-mic-ico svg { width: 15px; height: 15px; }
.tp-stage .tp-tbar .tp-mic .tp-mic-meter { height: 11px; gap: 1.5px; }
.tp-stage .tp-tbar .tp-mic .tp-mic-meter i { width: 3px; border-radius: 1px; }
.tp-stage .tp-tbar .tp-mic .tp-mic-name { max-width: 128px; opacity: 1; }
@media (max-width: 1279px) { .tp-stage .tp-tbar .tp-mic .tp-mic-name { display: none; } .tp-stage .tp-tbar .tp-mic { padding-right: 8px; } }

/* ---------- labelled fields: small muted label, white tabular value ---------- */
.tp-stage .tp-tb-field { gap: 8px; font-size: 12px; font-weight: 500; color: var(--sk-label); }
.tp-stage .tp-tb-field output, .tp-stage .tp-tb-speed .tp-speed-val {
  min-width: 0; padding: 0; background: none; color: var(--sk-value); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.tp-stage .tp-tb-field output[data-out="fontSize"] { min-width: 40px; }
.tp-stage .tp-tb-field output[data-out="margin"] { min-width: 30px; }
.tp-stage .tp-tb-speed .tp-speed-val { min-width: 58px; }

/* selects: borderless filled pills with a custom chevron (no boxy native outline) */
.tp-stage .tp-tb-field select {
  -webkit-appearance: none; appearance: none; height: var(--sk-h); min-height: var(--sk-h); padding: 0 26px 0 12px; border: 0; border-radius: var(--sk-r);
  background: var(--sk-fill) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%239AA6C4' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 10px center / 10px 6px no-repeat;
  color: var(--sk-value); font: 500 13px/1 var(--font, system-ui); cursor: pointer; transition: background-color .15s var(--sk-ease);
}
.tp-stage .tp-tb-field select:hover { background-color: var(--sk-fill-hover); }
.tp-stage .tp-tb-field select option { background: #141B33; color: #fff; }

/* sliders: thin track, accent fill, white thumb with a soft shadow (Apple style) */
.tp-stage .tp-tbar input[type="range"] { -webkit-appearance: none; appearance: none; height: 28px; min-height: 28px; background: transparent; cursor: pointer; accent-color: var(--tp-yellow); }
.tp-stage .tp-tb-field input[type="range"] { width: 104px; }
.tp-stage .tp-tbar input[type="range"]::-webkit-slider-runnable-track { height: 3px; border-radius: 2px; background: linear-gradient(to right, var(--tp-yellow) var(--fill, 0%), rgba(255, 255, 255, .18) var(--fill, 0%)); }
.tp-stage .tp-tbar input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -6.5px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .2), 0 2px 5px rgba(0, 0, 0, .4); transition: transform .12s var(--sk-ease); }
.tp-stage .tp-tbar input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); }
.tp-stage .tp-tbar input[type="range"]::-moz-range-track { height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .18); }
.tp-stage .tp-tbar input[type="range"]::-moz-range-progress { height: 3px; border-radius: 2px; background: var(--tp-yellow); }
.tp-stage .tp-tbar input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .2), 0 2px 5px rgba(0, 0, 0, .4); }
@media (pointer: coarse), (max-width: 699px) { .tp-stage .tp-tbar input[type="range"] { height: 44px; min-height: 44px; } .tp-stage .tp-tbar input[type="range"]::-webkit-slider-thumb { width: 22px; height: 22px; margin-top: -9.5px; } }

/* segmented control (alignment) + standalone toggles (mirror, flip): macOS-style */
.tp-stage .tp-tb-seg { padding: 2px; gap: 2px; border: 0; border-radius: var(--sk-r); background: var(--sk-fill); overflow: visible; }
.tp-stage .tp-tb-tog { width: var(--sk-h); height: var(--sk-h); border-radius: var(--sk-r); color: #C9D1E6; transition: background-color .15s var(--sk-ease), color .15s var(--sk-ease); }
.tp-stage .tp-tb-seg .tp-tb-tog { width: calc(var(--sk-h) - 4px); height: calc(var(--sk-h) - 4px); border-radius: calc(var(--sk-r) - 2px); }
.tp-stage .tp-tb-tog svg { width: 18px; height: 18px; }
.tp-stage .tp-tb-tools > .tp-tb-tog:not(:has(input:checked)) { border: 0; background: var(--sk-fill); }
.tp-stage .tp-tb-tog:hover { background: var(--sk-fill-hover); color: #fff; }
.tp-stage .tp-tb-tog:has(input:checked) { background: var(--sk-fill-on); color: var(--tp-yellow); box-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.tp-stage .tp-tb-seg .tp-tb-tog:has(input:checked) { background: rgba(255, 255, 255, .2); color: #fff; }
@media (pointer: coarse), (max-width: 699px) { .tp-stage .tp-tb-seg .tp-tb-tog { width: 44px; height: 44px; } .tp-stage .tp-tb-seg { padding: 0; } }

/* scroll-mode chip */
.tp-stage .tp-tbar .tp-modechip { min-height: var(--sk-h); height: var(--sk-h); border: 0; border-radius: var(--sk-r); background: var(--sk-fill); color: var(--sk-value); font-size: 13px; font-weight: 500; padding: 0 10px 0 12px; }
.tp-stage .tp-tbar .tp-modechip:hover { background: var(--sk-fill-hover); }
.tp-stage.tp-voice .tp-tbar .tp-modechip { background: rgba(111, 163, 255, .2); color: #CFE0FF; }

/* ---------- focus: keyboard only, thin 2px ring with a dark gap ---------- */
.tp-stage .tp-tbar :is(button, select, input, [tabindex]):focus { outline: none; }
.tp-stage .tp-tbar :is(button, select, [tabindex]):focus-visible { outline: none; box-shadow: var(--sk-ring); }
.tp-stage .tp-tbar select:focus:not(:focus-visible) { box-shadow: none; }
/* Chrome flags a select as :focus-visible even after a mouse click: give selects a thin, soft ring (not the 3px yellow band) */
.tp-stage .tp-tbar select:focus-visible { box-shadow: 0 0 0 2px rgba(255, 197, 61, .6); }
.tp-stage .tp-tbar input[type="range"]:focus-visible { outline: none; }
.tp-stage .tp-tbar input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 2px #070B1A, 0 0 0 4px var(--tp-yellow); }
.tp-stage .tp-tb-tog:has(input:focus-visible) { outline: none; box-shadow: var(--sk-ring); }

/* ---------- popovers: anchored BELOW the toolbar control, spaced, soft shadow, never over other buttons ---------- */
.tp-stage > .tp-menu-float, .tp-stage .tp-tbar .tp-menu {
  top: calc(100% + 10px); bottom: auto; right: 0; left: auto; min-width: 240px; width: max-content; max-width: 280px; padding: 6px; border-radius: 14px;
  background: var(--sk-pop); border: 1px solid var(--sk-hair); box-shadow: var(--sk-shadow);
  -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px);
}
.tp-stage > .tp-menu-float button, .tp-stage .tp-tbar .tp-menu button { min-height: 36px; border-radius: 8px; font-size: 13px; font-weight: 500; }
@media (pointer: coarse), (max-width: 699px) { .tp-stage > .tp-menu-float button, .tp-stage .tp-tbar .tp-menu button { min-height: 44px; } }
.tp-stage > .tp-menu-float .tp-menu-note, .tp-stage .tp-tbar .tp-menu-note { color: var(--sk-label); max-width: none; margin: 6px 10px 6px 30px; white-space: normal; }
.tp-stage .tp-textpop, .tp-stage .tp-panel { border: 1px solid var(--sk-hair); box-shadow: var(--sk-shadow); }

/* ---------- script panel: refined progress hairline (was a 4px brown band) ---------- */
.tp-stage .tp-pbar { height: 2px; }
.tp-stage .tp-progress { background: rgba(255, 255, 255, .06); }
.tp-stage .tp-progress-bar { background: var(--tp-yellow); border-radius: 0 2px 2px 0; }
.tp-stage.tp-recording .tp-progress { background: rgba(255, 255, 255, .06); }
.tp-stage .tp-pbox { box-shadow: 0 0 0 1px var(--sk-hair), 0 20px 60px rgba(0, 0, 0, .45); }
.tp-stage .tp-phead .tp-ptitle { font-size: 12px; font-weight: 600; color: var(--sk-label); letter-spacing: .01em; }

/* stage messages / hints: glass cards */
.tp-stage .tp-msg { background: var(--sk-pop); border: 1px solid var(--sk-hair); box-shadow: var(--sk-shadow); border-radius: 14px;
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); font-size: 13px; line-height: 1.45; }

@media (prefers-reduced-motion: reduce) { .tp-stage .tp-tbar * { transition: none !important; } }

/* selects opened with the mouse/touch: no ring (prompter.js marks them data-nofv on pointerdown; keyboard keeps the ring) */
.tp-stage .tp-tbar select[data-nofv]:focus-visible { box-shadow: none; }

/* prompter-dev 2026-11-26: JS now positions the floating mode menu; keep only its look (no top/right override) */
.tp-stage > .tp-menu-float { top: auto; right: auto; left: auto; bottom: auto; }
/* phones: 16px selects (iOS zooms on focus below 16px) */
@media (max-width: 699px) { .tp-stage .tp-tb-field select { font-size: 16px; } }
/* focus rings: html.tp-kbd marks keyboard use, so mouse/touch never shows a ring on selects */
html:not(.tp-kbd) .tp-stage .tp-tbar select:focus-visible { box-shadow: none; }
/* labelled toggles (Left / Center / Mirror / Flip) size to their text; swatch capsules match the other filled controls */
.tp-stage .tp-tb-tog.tp-tb-tog-l, .tp-stage .tp-tb-seg .tp-tb-tog.tp-tb-tog-l { width: auto; min-width: var(--sk-h); padding: 0 10px 0 8px; font-size: 13px; font-weight: 500; }
.tp-stage .tp-tb-seg .tp-tb-tog.tp-tb-tog-l { min-width: calc(var(--sk-h) - 4px); }
.tp-stage .tp-tb-swatches { border: 0; background: var(--sk-fill); }
/* record setup: "Rehearse" is a quiet filled capsule; Record stays the hero (a touch taller) */
.tp-stage.tp-recsetup .tp-tbar .tp-tb-transport .tp-play { height: var(--sk-h) !important; background: var(--sk-fill); border-color: transparent; box-shadow: none; color: var(--sk-value); font-size: 13px; font-weight: 500; }
.tp-stage.tp-recsetup .tp-tbar .tp-tb-transport .tp-play:hover { background: var(--sk-fill-hover); filter: none; }
@media (min-width: 700px) and (min-height: 501px) {
  .tp-stage.tp-recsetup .tp-tbar .tp-recbig.tp-tb-recbtn { height: 44px !important; padding: 0 20px 0 15px; font-size: 15px; }
}
/* phone "Adjust" button + bottom sheet (prompter-dev DOM): filled capsule, quiet open state, sheet with hairline + soft shadow */
@media (max-width: 699px), (max-height: 500px) {
  .tp-stage .tp-tb-adjust { border-color: transparent; background: var(--sk-fill); color: var(--sk-value); font-weight: 500; }
  .tp-stage.tp-adjust-open .tp-tbar .tp-tb-adjust { background: var(--sk-fill-on) !important; color: var(--tp-yellow) !important; border-color: transparent !important; }
  .tp-stage.tp-adjust-open .tp-tbar .tp-tb-tools { border-radius: 20px 20px 0 0; border-top: 1px solid var(--sk-hair);
    box-shadow: 0 -1px 0 rgba(255, 255, 255, .04), 0 -16px 48px rgba(0, 0, 0, .55); gap: 14px 10px; padding-left: 16px; padding-right: 16px; }
  .tp-stage .tp-sheet-grab span { width: 36px; background: rgba(255, 255, 255, .28); }
}
/* the idle fade (.tp-idle .tp-tbar > * at .35) must never dim the open Adjust sheet: the script showed through it */
.tp-stage.tp-adjust-open .tp-tbar, .tp-stage.tp-adjust-open .tp-tbar > * { opacity: 1 !important; pointer-events: auto; }

/* ---------- ⚙ settings panel (also hosts edit / camera / fullscreen on phones) ---------- */
.tp-stage .tp-panel { border-radius: 18px; }
.tp-stage .tp-panel .tp-icon-btn { border-radius: var(--sk-r); color: #DCE3F3; }
.tp-stage .tp-panel .tp-icon-btn:hover { background: var(--sk-fill-hover); }
.tp-stage .tp-panel .tp-icon-btn[aria-pressed="true"], .tp-stage .tp-panel .tp-icon-btn[aria-expanded="true"] { background: var(--sk-fill-on); color: var(--tp-yellow); }
.tp-stage .tp-panel-quick .tp-icon-btn { background: var(--sk-fill); }
.tp-stage .tp-panel .tp-form-sub { font-size: 11px; letter-spacing: .08em; color: var(--sk-label); }
/* segmented controls: equal columns on one line (Font: Sans / Serif / Mono / Rounded) */
.tp-stage .tp-panel .tp-seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; flex-wrap: nowrap; padding: 2px; border-radius: var(--sk-r); background: var(--sk-fill); }
.tp-stage .tp-panel .tp-seg span { justify-content: center; min-height: calc(var(--sk-h) - 4px); padding: 0 10px; border-radius: calc(var(--sk-r) - 2px); font-weight: 500; }
.tp-stage .tp-panel .tp-seg input:checked + span { background: rgba(255, 255, 255, .2); box-shadow: 0 1px 2px rgba(0, 0, 0, .3); color: #fff; }
.tp-stage .tp-panel .tp-row:has(.tp-seg) { flex-wrap: wrap; row-gap: 8px; }
@media (max-width: 420px) { .tp-stage .tp-panel .tp-seg { display: grid; width: 100%; } .tp-stage .tp-panel .tp-seg span { padding: 0 6px; } }
/* thin sliders in the panel (inputs carry --fill) */
.tp-stage .tp-panel input[type="range"] { -webkit-appearance: none; appearance: none; height: 32px; background: transparent; cursor: pointer; }
.tp-stage .tp-panel input[type="range"]::-webkit-slider-runnable-track { height: 3px; border-radius: 2px; background: linear-gradient(to right, var(--tp-yellow) var(--fill, 0%), rgba(255, 255, 255, .18) var(--fill, 0%)); }
.tp-stage .tp-panel input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7.5px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .2), 0 2px 5px rgba(0, 0, 0, .4); }
.tp-stage .tp-panel input[type="range"]::-moz-range-track { height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .18); }
.tp-stage .tp-panel input[type="range"]::-moz-range-progress { height: 3px; border-radius: 2px; background: var(--tp-yellow); }
.tp-stage .tp-panel input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: #fff; }
@media (pointer: coarse), (max-width: 699px) { .tp-stage .tp-panel input[type="range"] { height: 44px; } .tp-stage .tp-panel input[type="range"]::-webkit-slider-thumb { width: 22px; height: 22px; margin-top: -9.5px; } }

/* touch: swatch dots keep their 30px look but get a ~40px hit area (input bleeds 5px; centres stay 34px apart) */
@media (pointer: coarse), (max-width: 699px), (max-height: 500px) { .tp-stage .tp-sw > input { inset: -5px; } }
/* value labels never shrink under their slider (667×375 landscape: "38 px" ran into "Margin") */
.tp-stage .tp-tb-field output { flex: none; white-space: nowrap; }
.tp-stage.tp-adjust-open .tp-tb-g-text { column-gap: 18px !important; }
.tp-stage.tp-adjust-open .tp-tb-field:has(output[data-out="fontSize"]) { margin-right: 12px; }
