/* Stagehand — "try it right here": a pretend, messy Mac and Stagehand's menu beside it. Loaded only on
   stagehand.newmac.app. The [data-app="stagehand"] accent (velvet and stage light, from the app icon) lives in
   style.css's App accents block. */

/* "How it notices" list */
.sh-cuelist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sh-cuelist li { position: relative; padding: 14px 16px 14px 46px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.sh-cuelist li::before { content: ""; position: absolute; left: 16px; top: 18px; width: 16px; height: 12px; border-radius: 8px 8px 2px 2px; background: linear-gradient(90deg, #8c1c2b 0 38%, #f5b451 38% 62%, #8c1c2b 62%); }
.sh-cuelist b { display: block; font-size: 16px; }
.sh-cuelist span { display: block; color: var(--muted); font-size: 15px; }

/* ───────── The model ───────── */
.sh {
  --c-canvas: #f3ece1; --c-panel: #fffbf4; --c-well: #eae1d3; --c-ink: #231a14; --c-ink2: rgba(35,26,20,.68); --c-ink3: rgba(35,26,20,.44);
  --c-rule: rgba(35,26,20,.10); --c-rule2: rgba(35,26,20,.20); --c-light: #a9600c; --c-fill: #f5b451; --c-velvet: #8c1c2b; --c-sage: #3e7350;
  --c-sagebg: rgba(62,115,80,.13); --c-goldbg: rgba(245,180,81,.24);
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; height: 640px; background: var(--c-canvas); color: var(--c-ink);
  font-family: var(--font); user-select: none; -webkit-user-select: none;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sh {
  --c-canvas: #15100d; --c-panel: #1f1814; --c-well: #2a211b; --c-ink: #f3e8d8; --c-ink2: rgba(243,232,216,.70); --c-ink3: rgba(243,232,216,.44);
  --c-rule: rgba(243,232,216,.10); --c-rule2: rgba(243,232,216,.22); --c-light: #f5b451; --c-velvet: #d65a6a; --c-sage: #8ccb9e;
  --c-sagebg: rgba(140,203,158,.14); --c-goldbg: rgba(245,180,81,.16); } }
:root[data-theme="dark"] .sh {
  --c-canvas: #15100d; --c-panel: #1f1814; --c-well: #2a211b; --c-ink: #f3e8d8; --c-ink2: rgba(243,232,216,.70); --c-ink3: rgba(243,232,216,.44);
  --c-rule: rgba(243,232,216,.10); --c-rule2: rgba(243,232,216,.22); --c-light: #f5b451; --c-velvet: #d65a6a; --c-sage: #8ccb9e;
  --c-sagebg: rgba(140,203,158,.14); --c-goldbg: rgba(245,180,81,.16); }
.sh button { font: inherit; color: inherit; cursor: pointer; }
.sh .mono, .sh kbd { font-family: var(--font-mono); }
.sh :focus-visible { outline: 2px solid var(--c-light); outline-offset: 2px; border-radius: 6px; }

/* The pretend screen (it keeps its own light look unless the Dark Mode switch is on) */
.sh-screen {
  --w-bg: #ffffff; --w-side: #f3f3f5; --w-ink: #1d1d1f; --w-ink2: #6e6e73; --w-rule: rgba(0,0,0,.09); --w-tb: #ececee; --bar: rgba(255,255,255,.62); --bar-ink: #1d1d1f;
  position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; color: var(--w-ink); font-size: 12px; line-height: 1.35;
}
.sh-screen.dark { --w-bg: #232326; --w-side: #2c2c30; --w-ink: #f2f2f4; --w-ink2: #a1a1a8; --w-rule: rgba(255,255,255,.09); --w-tb: #2f2f33; --bar: rgba(20,20,24,.6); --bar-ink: #f2f2f4; }
.sh-bar { position: relative; z-index: 100; flex: none; display: flex; align-items: center; gap: 12px; height: 26px; padding: 0 10px; color: var(--bar-ink);
  background: var(--bar); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); font-size: 12px; white-space: nowrap; }
.sh-apple { flex: none; width: 10px; height: 12px; border-radius: 45% 45% 50% 50%; background: currentColor; opacity: .85; }
.sh-m { opacity: .85; }
.sh-sp { flex: 1; }
.sh-clutter { display: flex; align-items: center; gap: 10px; max-width: 260px; overflow: hidden; transition: max-width .45s var(--ease), opacity .3s; }
.sh-clutter i { display: inline-flex; align-items: center; font-style: normal; opacity: .85; }
.sh-clutter svg, .sh-moon svg, .sh-st svg { width: 15px; height: 15px; }
.sh-txt { font-size: 11px; font-variant-numeric: tabular-nums; }
.sh-badge { position: relative; }
.sh-badge::after { content: ""; position: absolute; right: -2px; top: 0; width: 6px; height: 6px; border-radius: 50%; background: #ff453a; }
.tidy .sh-clutter { max-width: 0; opacity: 0; }
.sh-divider { opacity: .55; font-weight: 600; }
.sh-glyph { position: relative; display: inline-flex; padding: 1px 3px; border: 0; border-radius: 5px; background: none; }
.sh-glyph svg { width: 17px; height: 17px; }
.sh-glyph:hover { background: rgba(127,127,127,.18); }
.sh-dot { position: absolute; right: 0; top: 0; width: 6px; height: 6px; border-radius: 50%; background: #e5484d; }
.sh-moon, .sh-st { display: inline-flex; }
.sh-moon[hidden] { display: none; }
.sh-clock { font-size: 11.5px; font-family: var(--font); font-variant-numeric: tabular-nums; }

.sh-desk { position: relative; flex: 1; min-height: 0; overflow: hidden; touch-action: manipulation;
  background: radial-gradient(120% 90% at 85% 10%, #f7b267 0, transparent 50%), radial-gradient(90% 80% at 10% 90%, #4f7cff 0, transparent 60%), linear-gradient(155deg, #6a5cff, #b45cc9 45%, #f07a8f 75%, #f6b06b); }
.sh-scrim { position: absolute; inset: 0; z-index: 3; background: inherit; opacity: 0; pointer-events: none; transition: opacity .35s; }
.icons-off .sh-scrim { opacity: 1; }
.sh-icons { position: absolute; left: 10px; top: 10px; z-index: 2; list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; width: 74px; }
.sh-icons li { display: grid; justify-items: center; gap: 3px; text-align: center; color: #fff; font-size: 10px; line-height: 1.2; text-shadow: 0 1px 2px rgba(0,0,0,.55); }
.sh-icons span { max-width: 74px; overflow-wrap: anywhere; }
.sh-file { width: 30px; height: 36px; border-radius: 3px 9px 3px 3px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); position: relative; }
.sh-file::after { content: ""; position: absolute; left: 5px; right: 5px; bottom: 6px; height: 7px; border-radius: 2px; background: var(--f, #8e8e93); }
.f-xls { --f: #1f9d55; } .f-png, .f-img { --f: #5e5ce6; } .f-txt { --f: #8e8e93; } .f-pdf { --f: #e5484d; }
.f-dir { width: 38px; height: 30px; margin-top: 6px; border-radius: 4px; background: linear-gradient(#7cc4ff, #49a7f5); }
.f-dir::after { left: 0; top: -4px; bottom: auto; width: 15px; height: 6px; right: auto; border-radius: 3px 3px 0 0; background: #7cc4ff; }

/* Windows */
.sh-win { position: absolute; display: flex; flex-direction: column; background: var(--w-bg); color: var(--w-ink); border-radius: 9px; overflow: hidden;
  box-shadow: 0 0 0 .5px rgba(0,0,0,.25), 0 10px 30px rgba(0,0,0,.22); transition: opacity .3s, transform .35s var(--ease), visibility 0s .35s; }
.sh-win.front { box-shadow: 0 0 0 .5px rgba(0,0,0,.3), 0 18px 46px rgba(0,0,0,.34); }
.sh-win.gone { opacity: 0; transform: scale(.94) translateY(8px); visibility: hidden; pointer-events: none; }
.sh-win:not(.gone) { transition: opacity .3s, transform .35s var(--ease), visibility 0s; }
.sh-tb { flex: none; display: flex; align-items: center; gap: 10px; height: 24px; padding: 0 9px; background: var(--w-tb); border-bottom: 1px solid var(--w-rule); font-size: 11px; }
.sh-tb .lights { gap: 5px; } .sh-tb .lights i { width: 9px; height: 9px; }
.sh-tb b { flex: 1; text-align: center; margin-right: 38px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-finder { left: 12%; top: 5%; width: 36%; height: 38%; }
.w-chatter { left: 55%; top: 4%; width: 42%; height: 44%; }
.w-slides { left: 22%; top: 21%; width: 52%; height: 58%; }
.w-parley { left: 63%; top: 52%; width: 34%; height: 34%; }
.sh-fbody, .sh-cbody { flex: 1; display: grid; grid-template-columns: 34% 1fr; min-height: 0; }
.sh-side, .sh-chans, .sh-rows, .sh-msgs { list-style: none; margin: 0; padding: 6px; overflow: hidden; }
.sh-side, .sh-chans { background: var(--w-side); color: var(--w-ink2); font-size: 11px; display: grid; align-content: start; gap: 2px; }
.sh-side li, .sh-chans li { padding: 2px 6px; border-radius: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-side .on, .sh-chans .on { background: rgba(127,127,127,.18); color: var(--w-ink); }
.sh-chans em { float: right; font-style: normal; font-size: 9.5px; padding: 0 5px; border-radius: 8px; color: #fff; background: #ff453a; }
.sh-rows li { padding: 3px 4px; border-bottom: 1px solid var(--w-rule); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-msgs { display: grid; align-content: start; gap: 6px; font-size: 11px; }
.sh-msgs b { display: block; font-size: 10.5px; }
.sh-sbody { flex: 1; display: grid; grid-template-columns: 18% 1fr; gap: 8px; padding: 8px; min-height: 0; background: var(--w-side); }
.sh-thumbs { list-style: none; margin: 0; padding: 0; display: grid; align-content: start; gap: 6px; }
.sh-thumbs li { aspect-ratio: 16 / 10; border-radius: 3px; background: var(--w-bg); box-shadow: 0 0 0 1px var(--w-rule); }
.sh-thumbs .on { box-shadow: 0 0 0 2px #f08a24; }
.sh-slide { align-self: center; aspect-ratio: 16 / 10; max-height: 100%; padding: 6% 7%; border-radius: 4px; background: linear-gradient(140deg, #fffaf2, #fde7cf); color: #2b1d12; box-shadow: 0 2px 10px rgba(0,0,0,.12); overflow: hidden; }
.sh-slide small { font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: #b4561a; }
.sh-slide h4 { margin: 2px 0 6px; font-family: var(--font-serif); font-size: clamp(16px, 2.6vw, 24px); line-height: 1.1; }
.sh-slide ul { margin: 0; padding-left: 16px; font-size: 11.5px; }
.w-parley { background: #1c1e23; color: #f2f2f4; }
.w-parley .sh-tb { background: #24262c; border-color: rgba(255,255,255,.06); color: #ddd; }
.sh-pbody { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 6px; min-height: 0; }
.sh-tiles { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; min-height: 0; }
.sh-tiles span { display: grid; place-items: center; border-radius: 5px; background: #2e3138; font-weight: 600; font-size: 11px; color: #c9cbd1; }
.sh-tiles .me { background: #253a31; color: #a7e3c4; }
.sh-ctl { display: flex; gap: 5px; justify-content: center; }
.sh-pbtn { border: 0; border-radius: 6px; padding: 4px 9px; font-size: 11px !important; font-weight: 600; color: #f2f2f4 !important; background: #3a3d45; white-space: nowrap; }
.sh-pbtn.muted { background: #5a2a2d; }
.sh-share { background: #1f9d6b; }
.sh-share:hover, .sh-stop:hover { filter: brightness(1.12); }
.sh-leave { background: #c9353c; }
.sh-stop { background: #c9353c; }

/* Stage effects */
.sh-backdrop { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .45s;
  background: radial-gradient(70% 70% at 20% 25%, #7a2e1f 0, transparent 70%), radial-gradient(60% 70% at 85% 80%, #d9893b 0, transparent 70%), radial-gradient(60% 60% at 80% 15%, #3b1f3a 0, transparent 70%), #2a1610; }
.sh-backdrop.on { opacity: 1; }
.sh-frame { position: absolute; inset: 0; z-index: 48; pointer-events: none; box-shadow: inset 0 0 0 3px #2fd27a; opacity: 0; transition: opacity .2s; }
.sharing .sh-frame { opacity: 1; }
.sh-sharebar { position: absolute; z-index: 50; top: 8px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 10px;
  border-radius: 9px; background: rgba(28,30,35,.94); color: #f2f2f4; font-size: 11.5px; box-shadow: 0 6px 20px rgba(0,0,0,.35); white-space: nowrap; }
.sh-sharebar[hidden] { display: none; }
.sh-rec { width: 8px; height: 8px; border-radius: 50%; background: #2fd27a; box-shadow: 0 0 0 3px rgba(47,210,122,.25); }
.sh-notes { position: absolute; z-index: 60; top: 8px; right: 8px; display: grid; gap: 6px; width: min(270px, 70%); pointer-events: none; }
.sh-note { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border-radius: 12px; background: rgba(246,246,248,.92); color: #1d1d1f;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 6px 20px rgba(0,0,0,.25); font-size: 11.5px; transform: translateX(115%); transition: transform .4s var(--ease); }
.sh-note.in { transform: none; }
.sh-note i { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; font-style: normal; font-weight: 700; color: #fff; background: var(--t); }
.sh-note b { display: block; font-size: 11px; }
.sh-dock { position: absolute; z-index: 40; left: 50%; bottom: 6px; transform: translateX(-50%); display: flex; gap: 6px; padding: 5px 7px; border-radius: 14px;
  background: rgba(255,255,255,.35); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.5), 0 6px 20px rgba(0,0,0,.15);
  transition: transform .45s var(--ease); }
.dock-off .sh-dock { transform: translate(-50%, 150%); }
.sh-dock button { position: relative; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 9px; background: var(--t); color: #fff; font-weight: 700; font-size: 14px; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.sh-dock button i { position: absolute; bottom: -5px; width: 4px; height: 4px; border-radius: 50%; background: rgba(0,0,0,.55); }
.sh-dock button.hid { opacity: .6; }
.sh-spot { position: absolute; inset: 0; z-index: 70; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(circle at var(--sx, 50%) var(--sy, 45%), transparent 0 70px, rgba(0,0,0,.6) 76px); }
.sh-spot.on { opacity: 1; }
.sh-curtain { position: absolute; inset: 0; z-index: 80; pointer-events: none; }
.sh-curtain i { position: absolute; top: 0; bottom: 0; width: 51%; transition: transform .38s cubic-bezier(.6,.05,.3,1);
  background: repeating-linear-gradient(90deg, #6e1220 0, #9b2234 9px, #c2414f 15px, #9b2234 22px, #6e1220 30px); box-shadow: 0 0 30px rgba(0,0,0,.5); }
.sh-curtain i:first-child { left: 0; transform: translateX(-102%); }
.sh-curtain i:last-child { right: 0; transform: translateX(102%); }
.sh-curtain.closed i { transform: none; }
.sh-count { position: absolute; z-index: 85; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 2px; width: 150px; padding: 16px 0 12px;
  border-radius: 22px; background: radial-gradient(circle at 50% 50%, #3a2a1f, #0e0a08 75%); color: #f3e8d8; box-shadow: 0 12px 40px rgba(0,0,0,.45); }
.sh-count[hidden] { display: none; }
.sh-count small { font-size: 10px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: #f5b451; }
.sh-count b { font-size: 64px; line-height: 1; color: #f5b451; text-shadow: 0 0 24px rgba(255,226,168,.6); font-variant-numeric: tabular-nums; }
.sh-count span { font-size: 11px; opacity: .7; }
.sh-lock { position: absolute; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(14,10,8,.55); }
.sh-lock[hidden] { display: none; }
.sh-lock > div { display: grid; justify-items: center; gap: 6px; padding: 18px 22px; border-radius: 16px; background: #1f1814; color: #f3e8d8; text-align: center; max-width: 80%; }
.sh-lock b { font-size: 16px; } .sh-lock span { font-size: 12px; opacity: .8; } .sh-lock em { font-style: normal; display: block; }
.sh-lock button { margin-top: 4px; padding: 5px 18px; border: 0; border-radius: 8px; background: #f5b451; color: #231a14 !important; font-weight: 600; }
.sh-saver { position: absolute; inset: 0; z-index: 95; width: 100%; border: 0; padding: 0; display: grid; place-items: end center;
  background: radial-gradient(circle at 30% 40%, #3a1c71, transparent 60%), radial-gradient(circle at 70% 60%, #7a1426, transparent 60%), #0b0810; background-size: 200% 200%; animation: sh-drift 9s ease-in-out infinite alternate; }
.sh-saver[hidden] { display: none; }
.sh-saver span { margin-bottom: 18px; color: rgba(255,255,255,.6) !important; font-size: 12px; }
@keyframes sh-drift { to { background-position: 100% 100%; } }

/* Run sheet window */
.sh-sheet { position: absolute; inset: 0; z-index: 88; display: grid; place-items: center; padding: 12px; background: rgba(0,0,0,.28); }
.sh-sheet[hidden] { display: none; }
.sh-sheetcard { width: min(560px, 100%); max-height: 100%; display: flex; flex-direction: column; border-radius: 11px; overflow: hidden; background: var(--c-canvas); color: var(--c-ink); box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.sh-sheethead { flex: none; display: flex; align-items: center; height: 26px; padding: 0 10px; background: var(--c-well); font-size: 12px; color: var(--c-ink2); }
.sh-sheethead b { flex: 1; text-align: center; margin-right: 40px; font-weight: 600; }
.sh-sheethead .lights { gap: 5px; } .sh-sheethead .lights i { width: 9px; height: 9px; }
.sh-sheetbody { padding: 12px 14px 14px; overflow-y: auto; display: grid; gap: 8px; }
.sh-sheetbody h4 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.sh-sheetsub { margin: -4px 0 0; color: var(--c-ink2); font-size: 11.5px; }
.sh-entry { border-radius: 12px; background: var(--c-panel); box-shadow: inset 0 0 0 1px var(--c-rule); }
.sh-entryhead { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px solid var(--c-rule); }
.sh-entryhead span { flex: 1; } .sh-entryhead b { display: block; font-size: 13px; } .sh-entryhead small { color: var(--c-ink2); font-size: 11px; }
.sh-entry em, .sh-cols em { font-style: normal; font-size: 10.5px; }
.sh-entryhead em.mine { padding: 2px 8px; border-radius: 10px; background: var(--c-goldbg); color: var(--c-light); font-weight: 600; }
.sh-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 8px 12px 10px; }
.sh-cols ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; font-size: 11.5px; }
.sh-cols li { display: grid; grid-template-columns: 22px 1fr auto; gap: 6px; align-items: baseline; }
.sh-cols li em { color: var(--c-ink3); } .sh-cols li em.mine { color: var(--c-light); font-weight: 600; } .sh-cols li em.back { color: var(--c-ink3); }
.sh-cols .shp-q { font-size: 9.5px; }
.sh-sheetdone { justify-self: end; }

/* ───────── Stagehand's menu ───────── */
.sh-pop { min-width: 0; overflow-y: auto; overscroll-behavior: contain; padding: 10px 12px 12px; border-left: 1px solid var(--c-rule); background: var(--c-canvas); font-size: 12.5px; }
.sh-only { margin: 0 0 8px; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--c-ink3); }
.shp { display: grid; gap: 8px; }
.shp svg { flex: none; }
.shp-stage { position: relative; height: 104px; border-radius: 12px; overflow: hidden; background: radial-gradient(70% 90% at 50% 0, rgba(255,226,168,.08), transparent), #0e0a08; color: #f3e8d8; }
.shp-stage.live { background: radial-gradient(60% 90% at 50% 0, rgba(255,226,168,.32), transparent 70%), radial-gradient(40% 20% at 50% 88%, rgba(255,226,168,.16), transparent), #0e0a08; }
.shp-v { position: absolute; top: 0; bottom: 0; width: 50%; z-index: 1; transition: width .6s var(--ease);
  background: repeating-linear-gradient(90deg, #6e1220 0, #9b2234 8px, #c2414f 13px, #9b2234 19px, #6e1220 26px); }
.shp-v.l { left: 0; } .shp-v.r { right: 0; }
.shp-stage.standby .shp-v { width: 31%; }
.shp-stage.live .shp-v { width: 11%; }
.shp-stage.live .shp-v.l { border-radius: 0 0 40% 0; } .shp-stage.live .shp-v.r { border-radius: 0 0 0 40%; }
.shp-val { position: absolute; z-index: 2; left: 0; right: 0; top: 0; height: 12px; background: radial-gradient(circle at 10px -2px, #9b2234 9px, transparent 10px) 0 0 / 20px 12px repeat-x, linear-gradient(#6e1220, #9b2234) 0 0 / 100% 5px no-repeat; }
.shp-lights { position: absolute; z-index: 2; left: 8%; right: 8%; bottom: 5px; height: 3px; background: radial-gradient(circle, rgba(245,180,81,.25) 1.5px, transparent 2px) 0 0 / 22px 3px repeat-x; }
.shp-stage.live .shp-lights { background-image: radial-gradient(circle, #f5b451 1.5px, transparent 2px); filter: drop-shadow(0 0 3px #f5b451); }
.shp-words { position: absolute; z-index: 3; inset: 12px 8px 8px; display: grid; place-content: center; justify-items: center; gap: 2px; text-align: center; }
.shp-kick { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; letter-spacing: .26em; font-size: 13px; color: #f5c77a; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.shp-small { font-size: 11px; color: rgba(243,232,216,.85); text-shadow: 0 1px 4px rgba(0,0,0,.7); }
.shp-big { font-size: 28px; line-height: 1.05; font-weight: 700; color: #ffe2a8; font-variant-numeric: tabular-nums; }
.shp-rec { width: 7px; height: 7px; border-radius: 50%; background: #e5484d; box-shadow: 0 0 6px #e5484d; }
.shp-row { display: flex; gap: 6px; }
.shp-main { flex: 1; display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 12px; border: 0; border-radius: 9px; background: var(--c-fill); color: #231a14 !important; font-weight: 600; font-size: 13.5px; text-align: left; }
.shp-main svg { width: 16px; height: 16px; }
.shp-main kbd { margin-left: auto; font-size: 11px; opacity: .7; }
.shp-main.down { justify-content: center; background: #9b2234; color: #fff !important; }
.shp-main:hover { filter: brightness(1.05); }
.shp-ext { padding: 0 12px; border: 0; border-radius: 9px; background: var(--c-panel); box-shadow: inset 0 0 0 1px var(--c-rule2); font-weight: 600; }
.shp-fine { margin: -2px 0 0; color: var(--c-ink2); font-size: 11px; line-height: 1.35; }
.shp-banner { display: flex; align-items: center; gap: 6px; padding: 7px 8px; border-radius: 9px; background: var(--c-sagebg); color: var(--c-ink); font-size: 11.5px; }
.shp-banner > svg { width: 15px; height: 15px; color: var(--c-sage); }
.shp-banner span { flex: 1; }
.shp-held { margin: 0; padding: 5px 8px; border-radius: 8px; background: var(--c-goldbg); font-size: 11px; }
.shp-mini { flex: none; padding: 2px 9px; border: 0; border-radius: 6px; background: var(--c-panel); box-shadow: inset 0 0 0 1px var(--c-rule2); font-size: 11px !important; font-weight: 600; }
.shp-x { flex: none; border: 0; background: none; padding: 0 3px; font-size: 15px; color: var(--c-ink2) !important; }
.shp-k { display: flex; justify-content: space-between; align-items: center; margin: 2px 0 -3px; font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--c-ink3); }
.shp-n { margin-left: 6px; padding: 1px 7px; border-radius: 9px; font-style: normal; letter-spacing: .02em; text-transform: none; background: var(--c-goldbg); color: var(--c-light); }
.shp-link { border: 0; background: none; padding: 0; font-size: 11.5px !important; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--c-light) !important; }
.shp-cues { list-style: none; margin: 0; padding: 2px 0; border-radius: 10px; background: var(--c-panel); box-shadow: inset 0 0 0 1px var(--c-rule); }
.shp-cues li { display: flex; align-items: center; gap: 8px; min-height: 27px; padding: 2px 8px; border-bottom: 1px solid var(--c-rule); }
.shp-cues li:last-child { border-bottom: 0; }
.shp-cues li.offc .shp-t { color: var(--c-ink3); }
.shp-q { flex: none; display: inline-grid; place-items: center; min-width: 22px; height: 16px; border-radius: 4px; background: var(--c-well); font-family: var(--font-mono); font-size: 9.5px; font-weight: 600; color: var(--c-ink2); }
.shp-cues li.done .shp-q { background: var(--c-fill); color: #231a14; }
.shp-cues li.done.mine .shp-q { background: var(--c-well); color: var(--c-ink2); }
.shp-t { flex: 1; min-width: 0; }
.shp-t small { display: block; color: var(--c-ink3); font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shp-chip { flex: none; padding: 1px 8px; border-radius: 9px; font-style: normal; font-size: 10.5px; font-weight: 600; }
.shp-chip.ok { background: var(--c-sagebg); color: var(--c-sage); }
.shp-chip.mine { background: var(--c-goldbg); color: var(--c-light); }
.shp-chip.wait { color: var(--c-ink3); }
.shp-tg { flex: none; position: relative; width: 32px; height: 19px; padding: 0; border: 0; border-radius: 10px; background: var(--c-well); box-shadow: inset 0 0 0 1px var(--c-rule2); transition: background .2s; }
.shp-tg i { position: absolute; left: 3px; top: 3px; width: 13px; height: 13px; border-radius: 50%; background: #8a7f76; transition: transform .2s var(--ease), background .2s; }
.shp-tg[aria-checked="true"] { background: var(--c-fill); box-shadow: none; }
.shp-tg[aria-checked="true"] i { transform: translateX(13px); background: #231a14; }
.shp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.shp-sw { display: flex; align-items: center; gap: 7px; min-height: 38px; padding: 4px 8px; border: 0; border-radius: 9px; text-align: left; background: var(--c-panel); box-shadow: inset 0 0 0 1px var(--c-rule); }
.shp-sw b { display: block; font-size: 11.5px; font-weight: 600; line-height: 1.2; }
.shp-sw small { display: block; font-size: 10px; color: var(--c-ink3); }
.shp-sw.on { background: var(--c-fill); box-shadow: none; color: #231a14 !important; }
.shp-sw.on small { color: rgba(35,26,20,.7); }
.shp-ic { width: 15px; height: 15px; }
.shp-foot { display: flex; justify-content: flex-end; gap: 4px; }
.shp-foot button { display: inline-flex; padding: 4px; border: 0; border-radius: 6px; background: none; color: var(--c-ink2) !important; }
.shp-foot button:hover, .shp-x:hover { background: var(--c-rule); }
.shp-foot svg { width: 17px; height: 17px; }
.shp-sub { display: flex; align-items: center; gap: 6px; }
.shp-sub b { flex: 1; font-size: 15px; }
.shp-back { border: 0; background: none; padding: 0 6px; font-size: 20px; line-height: 1; }
.shp-all { list-style: none; margin: 0; padding: 2px 0; border-radius: 10px; background: var(--c-panel); box-shadow: inset 0 0 0 1px var(--c-rule); }
.shp-all li { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-bottom: 1px solid var(--c-rule); }
.shp-all li:last-child { border-bottom: 0; }
.shp-all li.on > .shp-ic { color: var(--c-light); }
.shp-all span { flex: 1; min-width: 0; }
.shp-all b { display: block; font-size: 12px; font-weight: 600; }
.shp-all small { display: block; color: var(--c-ink3); font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shp-all kbd { font-size: 10px; color: var(--c-ink3); }

/* Small screens: the screen on top, the menu below it */
@media (max-width: 760px) {
  .sh { grid-template-columns: 1fr; height: auto; }
  .sh-screen { height: 380px; font-size: 11px; }
  .sh-pop { border-left: 0; border-top: 1px solid var(--c-rule); }
  .sh-hide-sm, .w-finder, .sh-icons li:nth-child(n+5) { display: none; }
  .sh-bar { gap: 8px; padding: 0 8px; }
  .sh-bar .sh-m { display: none; }
  .sh-icons { width: 58px; gap: 6px; left: 6px; }
  .sh-icons span { max-width: 58px; font-size: 9px; }
  .w-chatter { left: 30%; top: 4%; width: 66%; height: 38%; }
  .w-slides { left: 20%; top: 18%; width: 64%; height: 50%; }
  .w-parley { left: 50%; top: 54%; width: 48%; height: 30%; }
  .sh-sbody { grid-template-columns: 1fr; } .sh-thumbs { display: none; }
  .sh-dock button { width: 26px; height: 26px; font-size: 12px; border-radius: 7px; }
  .sh-dock { gap: 4px; padding: 4px 5px; }
  .sh-cols { grid-template-columns: 1fr; }
  .sh-notes { width: 78%; }
}
@media (max-width: 400px) {
  .w-parley { left: 34%; width: 64%; }
  .sh-clutter i:nth-child(n+4) { display: none; }
}
@media (prefers-reduced-motion: reduce) { .sh-saver { animation: none; } }
