/* UI 11-14: the new look on top of style.css (loaded after it). Cool forest neutrals, one deep-teal accent, marigold for
   money; system font for reading, Bricolage for titles; one motion curve. Mockup the user approved:
   claude.ai/artifact/BrEY1L2EmMWuBToq5vbHDX */
:root {
  --bg: #F3F5F4; --card: #FFFFFF; --ink: #141A18; --soft: #5E6B66; --muted: #5E6B66; --line: #DEE4E1;
  --accent: #0E7C66; --accent-ink: #FFFFFF; --err: #C2362B; --gold: #B97A12; --warn-bg: #FDF1DF;
  --glass: rgba(255, 255, 255, .74); --glass-line: rgba(20, 40, 34, .08); --glass-ink: #141A18;
  --lift: 0 1px 2px rgba(20, 40, 34, .05), 0 10px 30px rgba(20, 40, 34, .10);
  --f-title: "Bricolage Grotesque", ui-rounded, -apple-system, system-ui, sans-serif;
  --ease: cubic-bezier(.23, 1, .32, 1); --spring: cubic-bezier(.34, 1.36, .64, 1);
  color-scheme: light;
}
:root[data-theme="dark"] { --bg: #1d332c; --card: #264037; --ink: #eef6f2; --soft: #b3cbc2; --muted: #b3cbc2; --line: #3a5a4e;
          --accent: #3CCFAA; --accent-ink: #06231C; --err: #FF7A6E; --gold: #F2B85A; --warn-bg: #2A2214;
          --glass: rgba(21, 28, 26, .74); --glass-line: rgba(255, 255, 255, .08); --glass-ink: #EEF3F1;
          --lift: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .45); color-scheme: dark; }
html, body { font: 17px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", sans-serif; }
button { transition-timing-function: var(--ease); }
h1, h2, .brand { font-family: var(--f-title); letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: 30px; line-height: 1.08; font-weight: 800; margin: 4px 0 10px; }
h2 { font-size: 21px; }
.hint { font-size: 15px; line-height: 1.45; }
main { max-width: 760px; }

/* header: frosted glass */
.top { background: var(--glass); -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid var(--glass-line); }
.brand { font-size: 21px; font-weight: 800; }

/* buttons: tall, round, one press feel */
.primary { border-radius: 16px; min-height: 50px; font-weight: 650; box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 28%, transparent); }
.second { border-radius: 16px; min-height: 48px; }
.primary.small, .second.small { min-height: 48px; padding: 10px 16px; }
textarea, input[type="text"], input[type="search"], select { border-radius: 14px; }
textarea { background: var(--card); }
select { min-height: 48px; padding: 0 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; }

/* home */
#home .new { background: var(--card); border-radius: 24px; padding: 18px; box-shadow: var(--lift); }
.howto { font-size: 16px; }
.tries button { border-radius: 999px; background: var(--bg); border: 1px solid var(--line); }
.bal { font-size: 13px; }
.list { grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
.lhead { grid-column: 1 / -1; margin: 6px 0 -4px; }
.card { position: relative; border: 0; border-radius: 22px; background: var(--card); box-shadow: var(--lift);
  display: flex; flex-direction: column; transition: transform 200ms var(--ease); }
.card:active { transform: scale(.98); }
.card .poster { aspect-ratio: 3 / 4; background: var(--line); display: grid; place-items: center; overflow: hidden; }
.card .poster img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 700ms var(--ease); }
.card:hover .poster img { transform: scale(1.03); }
.card .ct { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 12px; justify-content: flex-start; }
.card .ct b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 15px; line-height: 1.25; }
.card .eyebrow { font-size: 11px; letter-spacing: .07em; text-transform: uppercase; font-weight: 650; color: var(--soft); white-space: normal; }
.card .meta { font-size: 13px; color: var(--soft); font-variant-numeric: tabular-nums; }
.card .prog { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; margin-bottom: 4px; }
.card .prog i { height: 3px; border-radius: 2px; background: var(--line); }
.card .prog i.done { background: var(--accent); }
.card .prog i.now { background: linear-gradient(90deg, var(--accent) 50%, var(--line) 50%); }
.card.hero { grid-column: 1 / -1; }
.card.hero .poster { aspect-ratio: 4 / 5; }
.card.hero .ct { position: absolute; inset: auto 0 0 0; padding: 22px 20px 20px; color: #fff;
  background: linear-gradient(transparent, rgba(4, 12, 10, .88) 45%); }
.card.hero .ct b { font-family: var(--f-title); font-size: 26px; line-height: 1.1; -webkit-line-clamp: 3; }
.card.hero .eyebrow, .card.hero .meta { color: rgba(255, 255, 255, .8); }
.card.hero .prog i { background: rgba(255, 255, 255, .28); height: 4px; }
.card.hero .prog i.done { background: #fff; }
.card.hero .prog i.now { background: linear-gradient(90deg, #fff 50%, rgba(255, 255, 255, .28) 50%); }
.archived { grid-column: 1 / -1; background: var(--card); border-radius: 18px; padding: 0 16px; }
.archived > summary { min-height: 56px; display: flex; align-items: center; list-style: none; color: var(--soft); font-weight: 600; }
.archived > summary::-webkit-details-marker { display: none; }
.archived[open] { padding-bottom: 16px; }
.archived[open] { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.archived[open] > summary { grid-column: 1 / -1; }
.archived .card .poster { aspect-ratio: 1; }
/* archive from the list (11-15): a round button on the card's picture, top right */
.card .cardarc { position: absolute; top: 8px; right: 8px; z-index: 2; width: 44px; height: 44px; min-height: 0; padding: 0;
  border: 0; border-radius: 50%; background: rgba(0, 0, 0, .45); color: #fff; font-size: 18px; line-height: 1;
  display: grid; place-items: center; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: none; }
.card .cardarc:disabled { opacity: .5; }
/* sign-in and roles (11-15, auth.py) */
body.signedout .hometabs, body.signedout .top .bal { display: none !important; }
body:not(.admin) #movesln, body:not(.admin) #modelsln, body:not(.admin) #testsln, body:not(.admin) #usersln { display: none; }
.login { max-width: 420px; margin: 8vh auto 0; }
.loginf, .adduser { display: grid; gap: 8px; }
.loginf input, .adduser input, .adduser select, .urow select { font: inherit; font-size: 16px; min-height: 44px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); min-width: 0; }
.loginf .primary, .adduser .primary { margin-top: 8px; }
.whoami { margin-top: 18px; text-align: center; }
.mypw { max-width: 420px; margin: 0 auto 24px; }
.mypw > summary { min-height: 44px; display: flex; align-items: center; justify-content: center; color: var(--accent); cursor: pointer; }
.linkbtn { border: 0; background: none; padding: 0 4px; min-height: 44px; font: inherit; color: var(--accent); text-decoration: underline; cursor: pointer; }
.tablewrap { overflow-x: auto; }
.rolecan { width: 100%; border-collapse: collapse; font-size: 14px; }
.rolecan th, .rolecan td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: center; }
.rolecan th[scope="row"] { text-align: left; font-weight: 500; }
.rolecan th[scope="col"] { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--soft); }
.rolecan td.yes { color: var(--accent); font-weight: 700; }
.rolecan td.no { color: var(--soft); }
.userlist { display: grid; gap: 10px; }
.urow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px; border-radius: 16px; background: var(--card); box-shadow: var(--lift); }
.urow b { flex: 1 1 100%; font-size: 16px; overflow-wrap: anywhere; }
.urow select, .urow input { flex: 1 1 140px; }
/* the read-only role (11-15): watching only - every making / changing control is hidden */
body.viewonly #new, body.viewonly .cardarc, body.viewonly #archive, body.viewonly #ex-use,
body.viewonly #project form { display: none !important; }
/* 11-15 (a read-only account still saw "Film 8 clips" and "Film every clip again"): on a film page, every control
   goes except looking - the step tabs, play / see it big, flip, and the shot jump row; the server refuses the rest */
body.viewonly #project button:not(#steps button):not(.big):not(.flip):not(#pv-jump button):not(.see),
body.viewonly #project textarea, body.viewonly #project input, body.viewonly #project select,
body.viewonly #project label:has(input), body.viewonly #dock, body.viewonly #vf-music { display: none !important; }
.movesln { border-radius: 18px; border: 0; box-shadow: var(--lift); }

/* the film page: title + the 4 steps stay on top, a white pill slides to the step */
#title { font-size: 26px; }
.steps { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 64px); z-index: 4; display: grid !important;
  grid-template-columns: repeat(4, 1fr); gap: 0; padding: 4px; border-radius: 16px; margin: 6px 0 16px;
  background: color-mix(in srgb, var(--line) 70%, var(--bg)); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.steps[hidden] { display: none !important; }
.steps .spill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 4); border-radius: 12px;
  background: var(--card); box-shadow: 0 2px 10px rgba(0, 0, 0, .10); transition: transform 380ms var(--spring); }
.steps button { position: relative; z-index: 1; border: 0 !important; background: none; opacity: 1; color: var(--soft);
  font-size: 15px; font-weight: 600; min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 5px; }
.steps button i { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 10px; font-size: 11px;
  background: var(--line); color: var(--soft); }
.steps button.done i { background: var(--accent); color: var(--accent-ink); }
.steps button.done i::after { content: ""; }
.steps button.done i { font-size: 0; }
.steps button.done i::before { content: "✓"; font-size: 11px; }
.steps button.on { color: var(--ink); }
.status { font-size: 15px; }
.seed, #logic, #edits { background: var(--card); border-radius: 16px; padding: 12px 14px; margin-bottom: 8px; }

/* panels read as cards */
.paint, .proxy, .smap { background: var(--card); border-radius: 22px; padding: 16px; box-shadow: var(--lift); }
.paint h3, .proxy h3 { font-family: var(--f-title); font-size: 20px; margin: 0 0 6px; }
.proxy video, .paint video { width: min(100%, 360px); border-radius: 18px; box-shadow: var(--lift); }
.px-row { grid-template-columns: 96px 1fr; gap: 12px; padding: 10px; border-radius: 16px; background: var(--bg); }
.px-row img, .px-all { width: 96px; border-radius: 12px; }

/* the dock: the one next thing, at the thumb */
body.docked main { padding-bottom: 120px; }
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9;
  padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: var(--glass); -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px);
  border-top: 1px solid var(--glass-line); animation: dockin 360ms var(--spring) both; }
@keyframes dockin { from { transform: translateY(100%); } to { transform: none; } }
.dock .in { max-width: 760px; margin: 0 auto; display: flex; gap: 12px; align-items: center; }
.dock .note { font-size: 13px; color: var(--soft); line-height: 1.3; flex: 0 1 38%; min-width: 0; }
.dock .note:empty { display: none; }
.dock .slot { flex: 1; display: flex; }
.dock .slot > button { flex: 1; margin: 0 !important; min-height: 52px; }

/* the wait list: a long job as ticking steps with a timer */
.wl-on { display: none; }
.waitlist { margin: 10px 0 14px; padding: 14px; border-radius: 18px; background: var(--bg); display: flex; flex-direction: column; gap: 10px; }
.wl-top { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; }
.wl-time { font-variant-numeric: tabular-nums; color: var(--soft); flex: none; }
.wl-bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.wl-bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 3px; transition: width 500ms var(--ease); }
.wl-bar.loose i { width: 35% !important; animation: loose 1.4s var(--ease) infinite; }
@keyframes loose { from { transform: translateX(-100%); } to { transform: translateX(300%); } }
.waitlist ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.waitlist li { display: flex; gap: 10px; align-items: center; color: var(--soft); }
.waitlist li::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 9px; border: 2px solid var(--line); }
.waitlist li.done { color: var(--ink); }
.waitlist li.done::before { content: "✓"; display: grid; place-items: center; font-size: 11px; color: var(--accent-ink);
  background: var(--accent); border-color: var(--accent); }
.waitlist li.now { color: var(--ink); font-weight: 600; }
.waitlist li.now::before { border-color: var(--accent); border-top-color: transparent; animation: spin 900ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* page changes slide in softly */
section:not([hidden]) { animation: rise 300ms var(--ease) both; }
@keyframes rise { from { transform: translateY(8px); } to { transform: none; } }   /* (no see-through fade: it flashed on a laptop) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}

/* phase 2 - Film step: one card per shot (mockup: flip previz <-> painting, a chip, the fix box on demand) */
#vf-shots { gap: 12px; }
#vf-shots .px-row.fl { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; padding: 10px; background: var(--card);
  border: 1px solid var(--line); border-radius: 20px; align-items: start; }
.flipwrap { position: relative; }
.flip { position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; border: 0; padding: 0; border-radius: 14px;
  overflow: hidden; background: var(--line); cursor: pointer; -webkit-tap-highlight-color: transparent; }
/* the flip: a quick squash to the edge, the other picture, back out (works on iPhone Safari, unlike a 3D card turn) */
.flip img { position: absolute; inset: 0; width: 100% !important; height: 100%; object-fit: cover; border-radius: 0 !important;
  transition: opacity 0ms linear 160ms; }
.flip img.b { opacity: 0; }
.flip.turn img.a { opacity: 0; }
.flip.turn img.b { opacity: 1; }
.flip.flipping { animation: squash 320ms var(--ease); }
@keyframes squash { 0% { transform: scaleX(1); } 50% { transform: scaleX(0); } 100% { transform: scaleX(1); } }
.flip .lab { position: absolute; left: 6px; bottom: 6px; z-index: 2; background: rgba(0, 0, 0, .58); color: #fff;
  font-size: 11px; border-radius: 6px; padding: 1px 6px; pointer-events: none; }
.flipwrap .big { position: absolute; right: 6px; top: 6px; z-index: 3; width: 32px; height: 32px; border-radius: 16px; border: 0;
  background: rgba(0, 0, 0, .55); color: #fff; font-size: 15px; display: grid; place-items: center; cursor: pointer; }
.fl .meta { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding-top: 2px; align-items: flex-start; }
.fl .flhead { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; }
.fl .flhead b { font-family: var(--f-title); font-size: 17px; }
.chip { flex: none; font-size: 12px; font-weight: 650; border-radius: 999px; padding: 3px 9px; background: var(--bg); color: var(--soft); white-space: nowrap; }
.chip.ok { color: var(--accent); }
.chip.warn { background: var(--warn-bg); color: var(--gold); }
.fl .hint { font-size: 15px; }
.fl .px-unsure { margin: 0; font-size: 13px; color: var(--gold); line-height: 1.35; }
.saidlog { font-size: 13px; color: var(--soft); }
.saidlog summary { cursor: pointer; min-height: 32px; display: flex; align-items: center; }
.saidlog .px-said { margin: 4px 0 0; }
.fl .fix { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.fl .fix textarea { min-height: 70px; margin: 0; }
.fl .fix button, .fl .fixopen { margin: 0 !important; }
/* buttons in a shot card wrap their text instead of pushing the page sideways (iPhone 11-15) */
.fl button:not(.flip):not(.big), .pvcard button, .judge button { white-space: normal; max-width: 100%; text-align: center; line-height: 1.25; }
.fl .fixopen { font-size: 15px; }
.fl .flhead b small { font-family: -apple-system, system-ui, sans-serif; font-weight: 500; font-size: 13px; color: var(--soft); }

/* phase 2 - Previz step: big film, a shot strip to jump, one card per shot */
#pv video { width: min(100%, 380px); }
.pvjump { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 124px); z-index: 3; display: flex; gap: 8px; overflow-x: auto;
  scrollbar-width: none; margin: 12px -16px 4px; padding: 8px 16px; background: var(--glass);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.pvjump::-webkit-scrollbar { display: none; }
.pvjump button { flex: none; position: relative; width: 52px; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: var(--line); cursor: pointer; }
.pvjump img { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.pvjump b { position: absolute; left: 3px; top: 3px; background: rgba(0, 0, 0, .58); color: #fff; font-size: 10px; border-radius: 5px; padding: 0 4px; }
#pv-shots .px-row.pvcard { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; padding: 10px; background: var(--card);
  border: 1px solid var(--line); border-radius: 20px; align-items: start; scroll-margin-top: 220px; }
.pvcard .flipwrap img { width: 100% !important; aspect-ratio: 9 / 16; border-radius: 14px !important; object-fit: cover; display: block; cursor: pointer; }
.pvcard .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: 20px;
  background: rgba(0, 0, 0, .5); color: #fff; display: grid; place-items: center; font-size: 15px; pointer-events: none; }
.pvcard .meta b { font-family: var(--f-title); font-size: 17px; }
.pvcard textarea { min-height: 52px; margin: 0; }
.pvcard .px-all { width: 112px; aspect-ratio: 9 / 16; display: grid; place-items: center; font-size: 30px; border-radius: 14px; }
#pv-under { background: var(--bg); border-radius: 18px; padding: 14px; }
#pv-under li { margin-bottom: 10px; }

/* phase 2 - Story step: swipe through the storyboard like a film strip (phones); a grid on wide screens */
@media (max-width: 699px) {
  #project[data-step="1"] .strip { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 -16px; padding: 4px 16px 12px; }
  #project[data-step="1"] .strip::-webkit-scrollbar { display: none; }
  #project[data-step="1"] .strip > .frame { flex: none; width: 74%; scroll-snap-align: center; }
}
.frame { background: var(--card); border-radius: 20px; overflow: hidden; box-shadow: var(--lift); }
.frame .pic { border: 0; border-radius: 0; }
.frame figcaption { padding: 10px 12px 12px; font-size: 15px; line-height: 1.4; }
/* 11-15: the narration and sound lines sat on the card edge - the rounded corner cut "Soft" to "oft" */
.frame .nar, .frame .meta { padding: 0 12px; }
.frame > :last-child:not(.pic) { padding-bottom: 12px; }
.who img, .who .ph { border: 0; border-radius: 14px; background: #fff; box-shadow: var(--lift); }
.fl .flhead b small { display: block; margin-top: 1px; }

/* the silent judge's verdict on the film, and a flagged shot's buttons */
.judge { margin: 10px 0 14px; padding: 14px; border-radius: 18px; background: var(--bg); display: flex; flex-direction: column; gap: 8px; }
.judge .jhead { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.judge .jhead b { font-family: var(--f-title); font-size: 18px; }
.fl .okbtn { margin: 0 !important; font-size: 15px; }

/* Explore: the story-idea page on home (user 11-14/15, like krux studio's Explore) - a featured card that turns every
   4.5 s, kind-of-story tabs, idea cards with a picture (a painted tile with the tale's emoji until one is drawn) */
.exsheet { width: min(560px, 100%); max-height: 92vh; margin: auto auto 0; padding: 0; border: 0; border-radius: 26px 26px 0 0;
  background: var(--card); color: var(--ink); overflow: auto; box-shadow: var(--lift); }
@media (min-width: 700px) { .exsheet { margin: auto; border-radius: 26px; } }
/* 11-15 (a laptop showed it as a flicker): the sheet never fades see-through over the picture grid - it slides in
   solid while only the dark backdrop fades; with reduced motion it simply appears */
.exsheet::backdrop { background: rgba(0, 0, 0, .55); animation: exdim 200ms ease-out; }
.exsheet[open] { animation: exup 260ms var(--ease); }
@keyframes exup { from { transform: translateY(24px); } to { transform: none; } }
@keyframes exdim { from { background: rgba(0, 0, 0, 0); } to { background: rgba(0, 0, 0, .55); } }
@media (prefers-reduced-motion: reduce) { .exsheet[open], .exsheet::backdrop { animation: none; } }
.exart:has(img) { background: #121614; }   /* a photo is coming: a dark tile, never a coloured flash first (11-15) */
.exsbody { display: flex; flex-direction: column; gap: 8px; padding: 16px max(16px, env(safe-area-inset-right, 0px)) calc(18px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.exsbody h2 { margin: 0; font-size: 26px; }
.exsbody p { margin: 0; }
.exsbody .exk { font-style: italic; color: var(--accent); }
.exsbody dl { margin: 4px 0; display: grid; gap: 2px; }
.exsbody dt { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--soft); font-weight: 650; margin-top: 6px; }
.exsbody dd { margin: 0; }
.exsbody .exb { margin: 2px 0 0; padding-left: 22px; display: grid; gap: 4px; line-height: 1.4; }   /* the tale's beats (11-15) */
.exsbody .exb li::marker { color: var(--soft); font-variant-numeric: tabular-nums; }
.exsbody .primary, .exsbody .second { width: 100%; margin: 4px 0 0 !important; }

/* home: Explore | Mine, a pill in the header as in krux studio (user 11-15) */
.top { display: flex; align-items: center; gap: 10px; }
.hometabs { display: flex; gap: 2px; background: color-mix(in srgb, var(--ink) 7%, transparent); border-radius: 999px; padding: 3px; }
.hometabs button { min-height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: none; color: var(--soft);
  font: inherit; font-size: 15px; font-weight: 650; cursor: pointer; }
.hometabs button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
body:has(#home[hidden]) .hometabs { display: none; }

/* krux layout (user 11-15 screenshot): pill right after the logo, the money chip at the right, ideas as picture tiles */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.top .bal { margin: 0 0 0 auto; display: grid; justify-items: end; gap: 0; padding: 4px 10px; min-height: 0; border-radius: 12px;
  font-size: 12px; line-height: 1.2; font-weight: 650; white-space: nowrap; }
body:has(#home[hidden]) .top .bal { display: none; }
@media (max-width: 380px) { .hometabs button { padding: 0 12px; } .brand { font-size: 19px; } }

/* 11-15: a laptop (mouse or trackpad) flickered on Explore - live frosted-glass blur redrawn over moving pictures is a
   known flicker on many laptop graphics chips. On laptops the bars are solid; phones keep the glass. */
@media (hover: hover) and (pointer: fine) {
  *, *::before, *::after { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .top, .dock { background: var(--bg) !important; }
}

/* 11-15: the plain look - set by app.js when the browser has no graphics acceleration, or by "?lite" in the
   address: nothing moves, fades or blurs, so a weak or buggy graphics path has nothing to redraw. */
body.lite *, body.lite *::before, body.lite *::after {
  animation: none !important; transition: none !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
body.lite .top, body.lite .dock { background: var(--bg) !important; }

/* 11-15: while the story is written - the steps, the picked cast, the tale's beats as the cards to be filled */
.waitp { display: grid; gap: 14px; margin: 4px 0 18px; }
.waitp .wsteps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.waitp .wsteps li { padding: 6px 12px; border-radius: 999px; background: var(--card); color: var(--soft); font-size: 14px; }
.waitp .wsteps li.done { color: var(--ink); }
.waitp .wsteps li.now { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.waitp .wcast { display: flex; gap: 10px; overflow-x: auto; }
.waitp .wcast:empty { display: none; }
.waitp .wcast figure { margin: 0; flex: 0 0 110px; text-align: center; font-size: 13px; }
.waitp .wcast img { width: 110px; height: 110px; object-fit: cover; border-radius: 16px; display: block; }
.waitp .wbt { margin: 0; }
.waitp .wbeat { margin: 0; background: var(--card); border-radius: 20px; overflow: hidden; opacity: .85; }
.waitp .wbeat .pic { border: 0; border-radius: 0; }
.waitp .wbeat .ph { aspect-ratio: 9 / 16; background: repeating-linear-gradient(135deg, var(--line), var(--line) 10px, transparent 10px, transparent 20px); }
.waitp .wbeat figcaption { color: var(--soft); padding: 10px 12px 12px; font-size: 14px; line-height: 1.4; }

/* 11-15 (user: "lot of space unutilized in the laptop"): on a wide screen the page uses the width - more frames,
   ideas and films per row; reading text keeps a comfortable line length. Phones are unchanged. */
@media (min-width: 1100px) {
  main, .dock .in { max-width: 1280px; }
  .strip { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .exgrid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .list, .archived[open] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .seed, .hint, #status { max-width: 900px; }
}

/* 11-15: the map approved by the app - its tab hidden: three steps */
.steps.nomap { grid-template-columns: repeat(3, 1fr); }
.steps.nomap .spill { width: calc((100% - 8px) / 3); }
.steps.nomap button[data-step="2"] { display: none; }
#maplink { margin: 0 0 10px; }

/* 11-15: on Windows the idea sheet's scrollbar (with its arrows) was drawn over the rounded card's edge. The sheet
   still scrolls by wheel, trackpad or touch; only the bar is not drawn. */
.exsheet { scrollbar-width: none; overscroll-behavior: contain; }
.exsheet::-webkit-scrollbar { display: none; }

/* 11-15: the admin's Pause all bar (stops every film at a clean point so the app can be updated) */
.pauseall { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 14px; margin: 0 0 12px;
  border-radius: 16px; background: var(--warn-bg); font-size: 14px; }
.pauseall span { flex: 1 1 220px; min-width: 0; }
body:not(.admin) .pauseall { display: none !important; }

/* 11-15 (user: "add x button on the top right corner"): stays in the corner while the sheet scrolls */
.exsheet .exxw { position: sticky; top: 0; height: 0; z-index: 3; display: flex; justify-content: flex-end; }
.exsheet .exx { margin: 12px; width: 40px; height: 40px; min-height: 40px; padding: 0; border: 0; border-radius: 20px;
  background: rgba(0, 0, 0, .55); color: #fff; font-size: 18px; line-height: 40px; cursor: pointer; }
