/* The path selector belongs to the website; the window remains a Mac layout. */
#how .how-path-switch { display:flex; align-items:stretch; justify-self:center; width:max-content; max-width:100%; padding:5px; gap:4px; border:1px solid var(--line); border-radius:999px; background:var(--glass-subtle); }
#how .how-path-switch button { min-height:46px; padding:11px 22px; border:0; border-radius:999px; background:transparent; color:var(--secondary); font:inherit; font-size:.9375rem; font-weight:650; cursor:pointer; line-height:1.25; }
#how .how-path-switch button[aria-pressed="true"] { background:var(--blue); color:#fff; box-shadow:0 3px 12px rgba(0,98,214,.16); }
#how .how-path-switch button:hover:not([aria-pressed="true"]) { background:var(--glass-strong); color:var(--text); }
#how .how-preview-dialog .how-path-switch { margin:16px auto; }
#how .how-live-actions { display:flex; flex-wrap:wrap; gap:10px; justify-content:center; margin-top:14px; }
#how .how-live-actions button { min-height:44px; padding:10px 16px; border-radius:999px; border:1px solid var(--line); background:var(--glass-subtle); color:var(--text); font:inherit; font-size:.875rem; font-weight:600; cursor:pointer; }
#how .how-live-actions button[data-live-action="start"], #how .how-live-actions button[data-live-action="save"] { background:var(--blue); border-color:transparent; color:white; }
#how .how-dialog-replay { margin:14px auto 0; }
#how .how-modal-caption { margin:16px auto 0; max-width:680px; color:var(--secondary); font-size:.875rem; line-height:1.6; }
#how .how-modal-caption strong { color:var(--text); }
#how .how-preview-scroll { max-height:calc(100dvh - 370px); }
#how .how-app-window [data-live-panel] { display:none; visibility:hidden; pointer-events:none; }
#how .how-app-window[data-path="live"] [data-how-media="download"] { display:none !important; visibility:hidden; }
#how .how-app-window[data-path="live"][data-state="result"] [data-live-panel="result"],
#how .how-app-window[data-path="live"][data-state="queue"] [data-live-panel="queue"],
#how .how-app-window[data-path="live"][data-state="history"] [data-live-panel="history"] { display:block; opacity:1; visibility:visible; }
#how .how-app-window .how-live-result { padding:32px 28px 18px; }
#how .how-app-window[data-path="live"][data-state="result"] .how-live-result { display:flex; flex-direction:column; gap:16px; }
.how-live-result-scroll { flex:1; min-height:0; overflow:hidden; }
.how-live-summary { display:grid; grid-template-columns:360px minmax(0,1fr); align-items:center; gap:20px; }
.how-live-video { position:relative; background:#101114; overflow:hidden; aspect-ratio:16 / 9; border-radius:22px; border:1px solid var(--app-line); box-shadow:0 12px 28px rgba(0,0,0,.12); }
.how-live-video video { display:block; width:100%; height:100%; object-fit:contain; }
.how-live-badge { position:absolute; top:12px; left:12px; display:inline-flex; align-items:center; gap:4px; padding:5px 8px; border-radius:999px; background:#dd343c; color:white; font-size:10px; line-height:1.2; font-weight:750; letter-spacing:.02em; }
.how-live-badge.is-recording-paused { background:#a56006; }
.how-live-metadata h3 { font-size:24px; line-height:1.12; letter-spacing:-.025em; margin:0 0 10px; color:var(--app-text); }
.how-live-metadata > strong { display:block; font-size:14px; font-weight:550; color:#1686ed; margin-bottom:10px; }
.how-live-metadata p { margin:0 0 10px; font-size:12px; line-height:1.55; color:var(--app-secondary); }
.how-live-metadata p i { display:inline-block; width:6px; height:6px; border-radius:50%; background:#ff453a; }
.how-live-metadata p span { margin-inline:3px; }
.how-live-metadata small { display:flex; align-items:center; gap:6px; color:var(--app-secondary); font-size:12px; }
.how-live-metadata small img { width:14px; height:14px; object-fit:contain; }
.how-live-source { display:flex; align-items:center; gap:12px; height:48px; padding:0 16px; margin:18px 0 22px; background:var(--app-surface); border:1px solid var(--app-line); border-radius:999px; font-size:13px; color:var(--app-secondary); }
.how-live-source > svg { width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:1.8; }
.how-live-source > span:first-of-type { flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.how-live-source b, .how-live-refresh { font-weight:500; color:#1686ed; }
.how-live-refresh { font-size:20px; }
.how-live-result h4 { margin:0 0 10px 2px; color:var(--app-text); font-size:14px; font-weight:600; }
.how-live-options { border:1px solid var(--app-line); border-radius:16px; background:var(--app-surface); overflow:hidden; }
.how-live-options > div { display:flex; align-items:center; gap:16px; padding:12px 15px; min-height:72px; }
.how-live-options > div + div { border-top:1px solid var(--app-line); }
.how-live-options > div > span { flex:1; min-width:0; }
.how-live-options strong { display:block; font-size:13px; font-weight:550; color:var(--app-text); }
.how-live-options small { display:block; max-width:380px; margin-top:3px; font-size:11px; line-height:1.35; color:var(--app-secondary); }
.how-live-options b { display:flex; justify-content:space-between; gap:35px; padding:6px 10px; border:1px solid var(--app-line); border-radius:8px; background:var(--app-surface); font-size:12px; font-weight:500; }
.how-live-options em { font-style:normal; font-size:12px; color:var(--app-secondary); }
.how-live-bottom { display:flex; align-items:center; gap:10px; padding:8px 9px 8px 16px; min-height:54px; border-radius:999px; background:var(--app-surface); border:1px solid var(--app-line); box-shadow:0 8px 24px rgba(0,0,0,.07); }
.how-live-bottom svg { width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.how-live-record-icon { color:#ff453a; display:flex; }
.how-live-bottom > strong { font-size:12px; white-space:nowrap; font-weight:550; }
.how-live-folder { padding-left:10px; border-left:1px solid var(--app-line); display:flex; align-items:center; gap:6px; flex:1; color:var(--app-secondary); font-size:12px; }
.how-live-folder-button { display:grid; place-items:center; width:32px; height:32px; border:1px solid var(--app-line); border-radius:11px; background:var(--app-surface); }
.how-live-start { display:flex; align-items:center; gap:6px; padding:11px 15px; border-radius:999px; color:#fff; background:#087ee8; font-weight:600; font-size:12px; }
.how-live-queue, .how-live-history { padding:48px 24px 24px; }
.how-live-queue-heading { display:flex; align-items:center; gap:16px; padding:0 8px 20px; }
.how-live-queue-heading h3 { margin:0 0 4px; font-size:28px; letter-spacing:-.035em; color:var(--app-text); }
.how-live-queue-heading p { margin:0; font-size:13px; color:var(--app-secondary); }
.how-live-queue-heading > span { display:flex; align-items:center; gap:8px; margin-left:auto; color:var(--app-secondary); font-size:10px; }
.how-live-queue-heading b { padding:6px 12px; background:var(--app-surface); border-radius:8px; font-weight:500; border:1px solid var(--app-line); }
.how-live-queue-row { display:grid; grid-template-columns:184px minmax(0,1fr); align-items:start; padding:12px; gap:13px; border:1px solid var(--app-line); border-radius:16px; background:var(--app-surface); }
.how-live-small { width:184px; height:104px; border-radius:11px; box-shadow:none; }
.how-live-small .how-live-badge { top:8px; left:8px; font-size:9px; padding:4px 6px; }
.how-live-queue-details { padding-top:3px; }
.how-live-queue-top { display:flex; align-items:start; justify-content:space-between; gap:10px; }
.how-live-queue-top strong { font-size:13px; font-weight:600; color:var(--app-text); }
.how-live-queue-top > span { font-size:11px; color:var(--app-secondary); font-variant-numeric:tabular-nums; }
.how-live-queue-details p { margin:7px 0 14px; color:var(--app-secondary); font-size:11px; }
.how-live-queue-bottom { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.how-live-queue-bottom small { color:var(--app-secondary); font-size:10px; font-variant-numeric:tabular-nums; }
.how-live-native-actions { display:flex; gap:7px; }
.how-live-native-actions > span { display:grid; place-items:center; border-radius:50%; width:26px; height:26px; background:var(--app-surface); }
.how-live-native-actions svg, .how-live-saved-actions svg { width:15px; height:15px; fill:none; stroke:var(--app-secondary); stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.how-live-history h4 { margin:4px 12px 12px; color:var(--app-secondary); font-size:11px; font-weight:550; }
.how-live-saved-row { display:flex; align-items:center; gap:13px; padding:12px; border-radius:14px; background:var(--app-surface); }
.how-live-saved-row > img { width:88px; aspect-ratio:16 / 9; object-fit:cover; border-radius:8px; }
.how-live-saved-row > div { flex:1; min-width:0; }
.how-live-saved-row strong { display:block; font-size:13px; color:var(--app-text); }
.how-live-saved-row p { display:flex; align-items:center; gap:6px; margin:5px 0; color:var(--app-secondary); font-size:10px; }
.how-live-saved-row p img { width:12px; height:12px; }
.how-live-saved-row small { display:flex; align-items:center; gap:6px; font-size:10px; color:var(--app-secondary); white-space:nowrap; }
.how-live-saved-actions { display:flex; gap:12px; }
:root[data-theme="light"] .how-live-metadata > strong, :root[data-theme="light"] .how-live-source b, :root[data-theme="light"] .how-live-refresh { color:#0066cc; }
@media (max-width:680px) {
  #how .how-path-switch { width:100%; }
  #how .how-path-switch button { flex:1; padding:10px 8px; font-size:.8125rem; }
  #how .how-preview-scroll { max-height:calc(100dvh - 370px); }
}
#how .how-app-window[data-path="live"] [data-live-panel] { transform:none; }
#how .how-app-window[data-path="live"]:not([data-state="queue"]) .how-queue-badge { opacity:0; }
#how .how-preview-dialog .how-stepper { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); max-width:610px; margin-inline:auto; }
#how .how-preview-dialog .how-stepper button { width:100%; max-width:none; }
@media (max-width:680px) {
  #how .how-preview-scroll { max-height:calc(100dvh - 440px); }
}

/* A full-size preview needs no duplicate view. */
.how-enlarge[hidden] { display:none; }
