/* The Simple layout (D502): InVideo's own benchmark, read from its app on 11/11/2026: a
   near-black ground, warm off-white text, one blue for the thing to do, one sans face,
   radii of 10 to 14 px, the work large and everything else quiet. It sits over the
   Heritage system (heritage.css) and only re-points its tokens, so every view the
   Simple layout still opens (Video, Pictures, Sets, Studio, every sheet) takes the new
   look without a rule of its own. The Professional layout takes the same tokens and the
   same page, header, rail and tab bar (12 November 2026), so the two read as one product;
   only its structure is its own. */

html[data-layout="simple"], html[data-layout="simple"][data-theme="dark"], html[data-layout="pro"], html[data-layout="pro"][data-theme="dark"] {
  --bg: #0b0c0e; --bg-2: #101114;
  --panel: #15161a; --panel-2: #1b1c21; --raised: #22242a; --field: #0f1013;
  --line: rgba(255, 255, 255, .08); --line-strong: rgba(255, 255, 255, .16);
  --ink: #f3ece1; --muted: #b9b4ac; --faint: #8f8b85;
  --accent: #2f7ff5; --accent-ink: #ffffff; --accent-soft: rgba(47, 127, 245, .14);
  --primary: #2f7ff5; --primary-2: #2468d6; --primary-ink: #ffffff; --primary-glow: rgba(47, 127, 245, .28);
  --cream: #f3ece1; --cream-ink: #0b0c0e;
  --bronze: #2a2c33; --bronze-ink: #f3ece1; --bronze-line: rgba(255, 255, 255, .16);
  --ok: #5fd39a; --bad: #ff7b72; --warn: #f5b454; --info: #8db8ff;
  --ok-soft: rgba(95, 211, 154, .12); --bad-soft: rgba(255, 123, 114, .12); --warn-soft: rgba(245, 180, 84, .12);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .35); --shadow-2: 0 8px 28px rgba(0, 0, 0, .45); --shadow-3: 0 24px 64px rgba(0, 0, 0, .6);
  --r-xs: 8px; --r-s: 10px; --r: 14px; --r-l: 18px;
  --display: var(--font);
  --focus-ring: 0 0 0 2px var(--bg), 0 0 0 4px var(--primary);
  --grain: none;
  --rail: 232px;
}
html[data-layout="simple"][data-theme="light"], html[data-layout="pro"][data-theme="light"] {
  --bg: #f6f6f4; --bg-2: #eeeeeb;
  --panel: #ffffff; --panel-2: #f7f7f5; --raised: #efefec; --field: #ffffff;
  --line: rgba(0, 0, 0, .08); --line-strong: rgba(0, 0, 0, .16);
  --ink: #16171a; --muted: #55575e; --faint: #6c6e75;
  --accent: #1f6fe5; --accent-ink: #ffffff; --accent-soft: rgba(31, 111, 229, .10);
  --primary: #1f6fe5; --primary-2: #175ccc; --primary-glow: rgba(31, 111, 229, .22);
  --cream: #16171a; --cream-ink: #ffffff;
  --bronze: #e8e8e5; --bronze-ink: #16171a; --bronze-line: rgba(0, 0, 0, .16);
  --ok: #17824f; --bad: #c2372b; --warn: #a65b00; --info: #1f5fc4;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .06); --shadow-2: 0 8px 24px rgba(0, 0, 0, .08); --shadow-3: 0 24px 64px rgba(0, 0, 0, .16);
}
html[data-layout="simple"], html[data-layout="simple"] body, html[data-layout="pro"], html[data-layout="pro"] body { background: var(--bg); }
html[data-layout="simple"] body::before, html[data-layout="pro"] body::before { background: var(--bg) !important; }
html[data-layout="simple"] .wordmark, html[data-layout="pro"] .wordmark { font-family: var(--font); font-style: normal; font-weight: 800; letter-spacing: -.02em;
  background: none; -webkit-text-fill-color: currentColor; color: var(--ink); }
html[data-layout="simple"] h1, html[data-layout="simple"] h2, html[data-layout="simple"] h3, html[data-layout="pro"] h1, html[data-layout="pro"] h2, html[data-layout="pro"] h3 { font-family: var(--font); letter-spacing: -.015em; }
html[data-layout="simple"] button.primary, html[data-layout="pro"] button.primary { background: var(--primary); border-color: transparent; color: var(--primary-ink); box-shadow: none; }
html[data-layout="simple"] button.primary:hover, html[data-layout="pro"] button.primary:hover { background: var(--primary-2); filter: none; }

/* the nav: four places in the Simple layout, seven in the Professional one */
html[data-layout="simple"] .navbtn:not(.sx-nav) { display: none !important; }
html[data-layout="pro"] .navbtn.sx-nav, html[data-layout="pro"] .sx-only { display: none !important; }
html[data-layout="simple"] .navbtn .badge.sxbadge:not(.on) { display: none; }
html[data-layout="simple"] header.top .env { display: none; }
html[data-layout="simple"] .view-title { display: none; }
html[data-layout="simple"] .v-video .sx-segs, html[data-layout="simple"] .v-pictures .sx-segs { margin: 4px 0 18px; }
html[data-layout="simple"] nav.rail, html[data-layout="pro"] nav.rail { background: var(--bg-2); border-right: 1px solid var(--line); }
html[data-layout="simple"] nav.rail .brand small { color: var(--faint); letter-spacing: .02em; text-transform: none; font-size: 12px; }
html[data-layout="simple"] header.top, html[data-layout="pro"] header.top { background: color-mix(in srgb, var(--bg) 88%, transparent); border-bottom: 1px solid var(--line); }
html[data-layout="simple"] nav.tabs, html[data-layout="pro"] nav.tabs { background: color-mix(in srgb, var(--bg-2) 96%, transparent); border: 0; border-top: 1px solid var(--line); }

/* the views */
.view.v-home, .view.v-film, .view.v-more { display: none; }
body[data-view="home"] .v-home, body[data-view="film"] .v-film, body[data-view="more"] .v-more { display: block; }
.v-home, .v-film, .v-more { max-width: 1120px; margin: 0 auto; }

.sx-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 32px 0 12px; }
.sx-head h2 { font-size: 18px; font-weight: 700; margin: 0; }
.sx-count { color: var(--faint); font-size: 13px; }
.sx-link { font-weight: 600; color: var(--primary) !important; }
.sx-bar { display: block; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.sx-bar i { display: block; height: 100%; background: var(--primary); border-radius: 4px; }
.sx-chev { color: var(--faint); font-size: 22px; line-height: 1; }
.sx-initial { display: grid; place-items: center; width: 100%; height: 100%; font-size: 30px; font-weight: 800; color: var(--faint); background: var(--panel-2); }
.sx-live { position: absolute; top: 10px; left: 10px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
  background: rgba(0, 0, 0, .55); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.sx-live::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #ff5a52;
  animation: sxpulse 1.4s ease-in-out infinite; vertical-align: 1px; }
@keyframes sxpulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .sx-live::before { animation: none; } }
.sx-badge { position: absolute; right: 10px; bottom: 10px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
  background: var(--primary); color: #fff; }

/* Home: one box first */
.sx-hero { padding: 36px 0 6px; text-align: center; }
.sx-hero h1 { font-size: clamp(28px, 4.2vw, 44px); font-weight: 800; margin: 0 0 6px; }
.sx-sub { color: var(--muted); font-size: 17px; margin: 0 0 22px; }
.sx-ask { max-width: 760px; margin: 0 auto; text-align: left; background: var(--panel); border: 1px solid var(--line-strong);
  border-radius: 18px; padding: 10px; box-shadow: var(--shadow-2); transition: border-color .15s var(--ease); }
.sx-ask:focus-within { border-color: var(--primary); }
.sx-kinds { display: flex; gap: 4px; padding: 2px; overflow-x: auto; scrollbar-width: none; }
.sx-kinds::-webkit-scrollbar { display: none; }
.sx-kind { flex: none; min-height: 34px; padding: 0 14px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); font-weight: 600; font-size: 14px; }
.sx-kind[aria-selected="true"] { background: var(--raised); color: var(--ink); }
.sx-ask textarea { width: 100%; border: 0; background: transparent; color: var(--ink); font: 500 17px/1.5 var(--font); resize: vertical;
  padding: 10px 8px 6px; min-height: 72px; outline: none; box-shadow: none; }
.sx-askrow { display: flex; align-items: center; gap: 10px; padding: 0 4px 2px 8px; }
.sx-hint { flex: 1; color: var(--faint); font-size: 13px; }
.sx-go { min-height: 42px; padding: 0 18px; border-radius: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.sx-go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sx-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 760px; margin: 14px auto 0; }
.sx-chip { min-height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--muted); font-size: 13.5px; }
.sx-chip:hover { color: var(--ink); border-color: var(--ink); }

.sx-needs { display: grid; gap: 10px; }
.sx-need, .sx-review, .sx-li, .sx-film, .sx-scene, .sx-face { white-space: normal; }
.sx-need, .sx-review, .sx-li { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 12px; min-height: 0;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); }
.sx-need:hover, .sx-review:hover, .sx-li:hover { border-color: var(--line-strong); background: var(--panel-2); }
.sx-npic, .sx-rpic { flex: none; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--panel-2); }
.sx-npic img, .sx-rpic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sx-nwords, .sx-rwords { flex: 1; display: grid; gap: 3px; min-width: 0; }
.sx-nwords b, .sx-rwords b { font-size: 15.5px; }
.sx-nwords span, .sx-rwords span { color: var(--muted); font-size: 13.5px; }
.sx-review { border-color: color-mix(in srgb, var(--primary) 45%, transparent); background: color-mix(in srgb, var(--primary) 8%, var(--panel)); margin-bottom: 10px; }

.sx-films { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.sx-film { display: grid; gap: 7px; text-align: left; padding: 0; min-height: 0; background: none; border: 0; color: var(--ink); }
.sx-poster { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--panel-2); border: 1px solid var(--line); }
.sx-poster img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s var(--ease); }
.sx-film:hover .sx-poster img { transform: scale(1.03); }
.sx-ftitle { font-weight: 700; font-size: 15.5px; }
.sx-fwords { color: var(--muted); font-size: 13.5px; line-height: 1.4; }
.sx-fmeta { color: var(--faint); font-size: 12.5px; }
.sx-empty, .sx-calm { display: grid; gap: 4px; padding: 22px; border: 1px dashed var(--line-strong); border-radius: 14px; color: var(--muted); text-align: center; }
.sx-empty b, .sx-calm b { color: var(--ink); font-size: 15.5px; }
.sx-calm { text-align: left; border-style: solid; border-color: var(--line); background: var(--panel); }
#sxStarter:empty { display: none; }
#sxStarter .card.starter { margin-top: 24px; }

/* Film */
.sx-fhero { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); margin-top: 16px; }
.sx-fbg { position: absolute; inset: 0; }
.sx-fbg img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.sx-fbg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 75%, transparent) 55%, transparent 100%),
  linear-gradient(0deg, var(--bg) 0%, transparent 55%); }
.sx-fin { position: relative; padding: 56px 32px 28px; max-width: 640px; }
.sx-fin h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; margin: 10px 0 8px; }
.sx-fsent { color: var(--muted); font-size: 16px; line-height: 1.5; margin: 0 0 16px; }
.sx-fstate { position: relative; height: 22px; }
.sx-fstate .sx-live { position: static; }
.sx-chipq { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--raised); color: var(--muted); }
.sx-prog { display: grid; gap: 7px; margin-bottom: 20px; color: var(--faint); font-size: 13px; }
.sx-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.sx-acts button { min-height: 42px; padding: 0 16px; border-radius: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 7px; }
.sx-acts button svg { width: 16px; height: 16px; fill: currentColor; }
.sx-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 10px; }
.sx-ck { color: var(--faint); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.sx-card h3 { margin: 6px 0 4px; font-size: 16.5px; font-weight: 700; }
.sx-card p { margin: 0 0 12px; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.sx-thumbs { display: flex; gap: 8px; overflow-x: auto; margin: 0 0 14px; scrollbar-width: none; }
.sx-thumbs button { flex: none; padding: 0; min-height: 0; width: 132px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--panel-2); }
.sx-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sx-more { margin-top: 12px; }
.sx-more summary { cursor: pointer; color: var(--faint); font-size: 13px; }
.sx-more > div { margin-top: 10px; }
.sx-row { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.sx-scene { flex: none; width: 240px; display: grid; gap: 6px; text-align: left; padding: 0; min-height: 0; background: none; border: 0; color: var(--ink); scroll-snap-align: start; }
.sx-spic { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--panel-2); border: 1px solid var(--line); }
.sx-spic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sx-snum { position: absolute; left: 8px; top: 8px; min-width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  background: rgba(0, 0, 0, .6); color: #fff; font-size: 12.5px; font-weight: 800; }
.sx-shead { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-sstate { color: var(--muted); font-size: 12.5px; }
.sx-face { flex: none; width: 104px; display: grid; gap: 6px; justify-items: center; padding: 0; min-height: 0; background: none; border: 0; color: var(--ink); font-size: 13px; text-align: center; scroll-snap-align: start; }
.sx-fpic { display: block; width: 88px; height: 88px; border-radius: 50%; overflow: hidden; background: var(--panel-2); border: 1px solid var(--line); }
.sx-fpic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sx-pro { margin: 36px 0 12px; text-align: center; }
.sx-pro button { color: var(--faint) !important; }

/* Create's switch */
.sx-segs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.sx-segs button { min-height: 36px; padding: 0 16px; border-radius: 9px; border: 0; background: transparent; color: var(--muted); font-weight: 600; }
.sx-segs button[aria-selected="true"] { background: var(--raised); color: var(--ink); }

/* More */
.sx-list { display: grid; gap: 8px; margin-top: 20px; }
.sx-li > .sx-liw { flex: 1; display: grid; gap: 2px; }
.sx-li b { font-size: 15.5px; }
.sx-li span span { color: var(--muted); font-size: 13.5px; }
.sx-foot { color: var(--faint); font-size: 13px; margin-top: 18px; }

@media (max-width: 899px) {
  .sx-hero { padding-top: 18px; }
  .sx-hero h1 { font-size: 28px; }
  .sx-sub { font-size: 16px; margin-bottom: 16px; }
  .sx-chips { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .sx-chip { flex: none; }
  .sx-films { grid-template-columns: 1fr; }
  .sx-fin { padding: 40px 18px 20px; }
  .sx-fbg::after { background: linear-gradient(0deg, var(--bg) 8%, color-mix(in srgb, var(--bg) 55%, transparent) 70%, transparent); }
  .sx-acts button { flex: 1 1 auto; }
  .sx-scene { width: 72vw; max-width: 280px; }
}

/* Create: the common ways and the essentials first; the rest under More ways and options */
html[data-layout="simple"]:not(.sx-all) .sx-adv { display: none !important; }
.sx-moretoggle { margin: 10px 0 0; }
html[data-layout="simple"] .vs-mode.on { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, var(--panel)); }

/* The founder, 11 November 2026: "if any section has assets that needs scrolling vertically
   to watch all of them, they should be horizontal". Every gallery of made things is a row
   that scrolls sideways, in both layouts, at a phone's width and a desk's. */
.vs-tiles, .sx-films, .sp-pics, .sp-takes, .pp-looks, .cont, .brief-refs {
  display: flex !important; flex-wrap: nowrap; align-items: flex-start; gap: 12px;
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch; padding-bottom: 8px; scrollbar-width: thin;
}
.vs-tiles > *, .sx-films > *, .sp-pics > *, .sp-takes > *, .pp-looks > *, .cont > *, .brief-refs > * { scroll-snap-align: start; flex: 0 0 auto; }
.vs-tiles > .vs-tile { width: 180px; }
.vs-tiles.ps-tiles > .ps-tile { width: 170px; }
.sx-films > * { width: 260px; }
.sp-pics > * { width: 170px; } .sp-takes > * { width: 280px; }
.pp-looks > * { width: 130px; } .cont > * { width: 140px; } .brief-refs > * { width: 230px; }
@media (max-width: 899px) {
  .vs-tiles > .vs-tile, .vs-tiles.ps-tiles > .ps-tile { width: 42vw; max-width: 180px; }
  .sx-films > * { width: 78vw; max-width: 320px; }
}
/* the search above a gallery: built once, so it keeps its words while the tiles are polled */
.vs-galhead { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.vs-galhead[hidden] { display: none; }
.vs-galhead h4 { flex: 1 1 auto; margin: 0; }
.vs-find { position: relative; flex: 0 1 300px; min-width: 0; display: block; margin: 0; }
.vs-find svg { position: absolute; left: 11px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%);
  fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.vs-find input { width: 100%; margin: 0; padding-left: 34px; min-height: 40px; border-radius: 10px; }
.vs-found { margin: 6px 0 0; }
@media (max-width: 899px) { .vs-find { flex: 1 1 100%; } }

/* De-clutter (the founder, 11 November 2026: "do whatever is needed to de clutter"). The
   Simple layout shows what most work needs and nothing twice; everything else is one tap
   away under "More ways and options" (html.sx-all) or the Professional layout. */
html[data-layout="simple"] header .themebtn { display: none !important; }        /* Help and Light or dark live under More */
html[data-layout="simple"] .sx-hint { visibility: hidden; }                       /* the box's placeholder says it */
html[data-layout="simple"] .vs-mode small { display: none; }                      /* a way's description is the form's first line */
html[data-layout="simple"] .vs-mode { min-height: 0; padding: 12px 14px; }
html[data-layout="simple"]:not(.sx-all) :is(
  .vs-spend, .ps-cannot, #psModel, .vs-readback,
  button[onclick="videoMarks()"], button[onclick="picMarks()"], #psPrompt + .hint,
  #psFixedH, .ps-fixed, .ps-filetype-fixed,
  .lbl:has(> .ps-filetype), .lbl:has(> .ps-tries), .lbl:has(> .ps-purpose),
  label.tick:has(input[onchange*="own_text"])
) { display: none !important; }

/* The hard review of 12 November 2026 (screens 01 to 06 and the More view): one grid, one
   radius scale (8 small, 12 control, 16 card, 999 chip), no blank boxes, no text glyphs. */
.sx-scene, .sx-film { justify-content: stretch; align-content: start; align-items: stretch; justify-items: stretch; grid-template-columns: minmax(0, 1fr); }
.sx-face { justify-content: stretch; align-content: start; }
#sxFilmCast .sx-row { margin-left: -8px; }
.sx-face > span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sx-face > span:last-child:lang(hi) { font-size: 14px; line-height: 1.4; }
.sx-initial { color: var(--muted); font-weight: 700; background: color-mix(in srgb, var(--primary) 10%, var(--panel-2)); }
svg.sx-chev { flex: none; align-self: center; width: 16px; height: 16px; fill: none; stroke: var(--faint); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sx-ico { display: grid; place-items: center; color: var(--muted); }
.sx-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sx-rpic.sx-ico { background: color-mix(in srgb, var(--primary) 12%, var(--panel-2)); color: var(--primary); }
.sx-spic.sx-ico { display: grid; place-items: center; }
.sx-spic.sx-ico svg { width: 30px; height: 30px; opacity: .7; }
.sx-bar.zero { visibility: hidden; }
.sx-shead { font-size: 13px; font-weight: 600; letter-spacing: .01em; text-transform: none; }
.sx-count, .sx-more summary { color: var(--muted); }

/* Needs you: one card style, one gap, a readable width on a desk */
.sx-needs { display: grid; gap: 12px; }
.sx-needs > .sx-card, .sx-needs > .sx-review { margin: 0; }
.sx-review { border-color: var(--line); background: var(--panel); }
.sx-need, .sx-review, .sx-li, .sx-card, .sx-fhero, .sx-calm, .sx-empty { border-radius: 16px; }
@media (min-width: 900px) { #sxFilmNeeds { max-width: 760px; } }

/* the Film page's rhythm */
.sx-head { margin: 40px 0 14px; }
#sxFilmHero + #sxFilmNeeds .sx-head, #sxFilmHero + #sxFilmNeeds .sx-calm { margin-top: 32px; }
.sx-pro { margin: 48px 0 24px; text-align: left; border-top: 1px solid var(--line); padding-top: 16px; }
.sx-pro button { padding-left: 0; }

/* the hero: a film with no poster is a plain card with its words at full width */
.sx-fhero.no-poster .sx-fbg, .sx-fhero:not(:has(.sx-fbg img)) .sx-fbg { display: none; }
.sx-fhero.no-poster .sx-fin, .sx-fhero:not(:has(.sx-fbg img)) .sx-fin { max-width: none; padding: 28px 28px 24px; }
.sx-acts button { min-height: 44px; }
@media (max-width: 899px) {
  .sx-fhero.no-poster .sx-fin, .sx-fhero:not(:has(.sx-fbg img)) .sx-fin { padding: 20px 18px 18px; }
  .sx-acts { display: grid; grid-template-columns: 1fr 1fr; }
  .sx-acts button.primary { grid-column: 1 / -1; }
  .sx-acts button:only-child, .sx-acts button.primary + button:last-child { grid-column: 1 / -1; }
}

/* More: a titled list at a readable width, every row one height with its icon, the two
   switches show their state, and Sign out stands apart */
.sx-h { font-size: 22px; font-weight: 600; margin: 8px 0 4px; }
.sx-list { max-width: 720px; }
.sx-list-end { margin-top: 16px; }
.sx-li { min-height: 64px; }
.sx-li > .sx-ico { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--raised); }
.sx-li > .sx-ico svg { width: 20px; height: 20px; }
.sx-li .sx-liw { flex: 1; min-width: 0; display: grid; gap: 2px; }
.sx-li .sx-liw > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 13.5px; }
.sx-val { flex: none; color: var(--muted); font-size: 14px; font-weight: 600; }
.sx-li.danger b { color: var(--bad); }
.sx-li.danger > .sx-ico { color: var(--bad); }
/* a picture that does not load leaves its drawn icon, never a blank box */
.sx-rpic.sx-ico, .sx-spic.sx-ico { position: relative; }
.sx-rpic.sx-ico > img, .sx-spic.sx-ico > img { position: absolute; inset: 0; }
/* the Simple light theme wins over Heritage's :root[data-theme="light"] parchment rules (0,2,1) by matching its weight and coming later */
html[data-layout="simple"][data-theme="light"] nav.rail, html[data-layout="pro"][data-theme="light"] nav.rail { background: var(--bg-2); }
html[data-layout="simple"][data-theme="light"] header.top, html[data-layout="pro"][data-theme="light"] header.top { background: color-mix(in srgb, var(--bg) 92%, transparent); }
html[data-layout="simple"][data-theme="light"] body::before, html[data-layout="pro"][data-theme="light"] body::before { background: var(--bg) !important; }
@media (max-width: 899px) { html[data-layout="simple"][data-theme="light"] nav.tabs, html[data-layout="pro"][data-theme="light"] nav.tabs { background: color-mix(in srgb, var(--bg-2) 97%, transparent); } }

/* 12 November 2026, the end-to-end test: the person's initial is a real button (it opens
   More, or the Studio view's sign-in card), and the Professional rail carries the way back */
header.top button#me { padding: 0; min-height: 0; min-width: 0; cursor: pointer; }
header.top button#me:hover { border-color: var(--primary); }
.rail .navbtn.layoutbtn { margin-top: auto; }
.rail .navbtn.layoutbtn + .foot { margin-top: 0; }
/* a Devanagari initial is two letters in the Devanagari face, never a lone letter that reads like a currency sign */
[data-ini-hi] { font-family: "Tiro Devanagari Hindi", var(--font) !important; font-weight: 400 !important; letter-spacing: 0 !important; }
.filmpick .fp-ph[data-ini-hi] { font-size: 12px !important; }
/* Needs you never grows past the screen when a card's whole body is opened on a phone: a
   grid item takes the column's width, and a strip of frames scrolls sideways inside it */
.sx-needs > *, .sx-card, .sx-more, .sx-more > div, .sx-more .card { min-width: 0; max-width: 100%; }
.sx-more .card { margin: 0; box-sizing: border-box; overflow-wrap: anywhere; }
.sx-more .strip { max-width: 100%; overflow-x: auto; }
.sx-more .strip figure { min-width: min(230px, 70vw); max-width: min(230px, 70vw); }
.sx-more .strip img.sheet { width: 100%; }
.sx-more img, .sx-more video, .sx-more table, .sx-more pre { max-width: 100%; }
/* a person's page: the header's words wrap beside the face and never run under the close button */
.shotpage .sp-top .pp-head { flex: 1 1 auto; min-width: 0; }
.shotpage .pp-head > div { min-width: 0; }
.shotpage .pp-head small { white-space: normal; overflow-wrap: anywhere; }
.shotpage .sp-top > .swx { flex: none; }
/* the budget curve keeps its labels at reading size on a wide desk (they scaled to about 20 px) */
svg.budgetcurve { max-width: 620px; margin-left: auto; margin-right: auto; }
svg.budgetcurve text { font-size: 11.5px; }
html[data-layout="simple"] #layoutBack { display: none; }
/* the smallest phones have no room for the initial beside the header's buttons (it was squeezed
   to a 12 px sliver there); the person's place stays one tap away under More or Studio */
@media (max-width: 359px) { html header.top #me.meav { display: none; } }

/* K1 (third walk, 17 November 2026): the Look card's Pick sheet, both layouts. */
.lookpick .lookopts { display: grid; gap: 10px; margin: 12px 0 4px; }
.lookpick .lookopt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 8px;
  text-align: left; border-radius: 12px; border: 1px solid var(--line-strong, rgba(128,128,128,.4)); background: transparent; white-space: normal; }
.lookpick .lookopt[aria-checked="true"] { border-color: var(--primary, #3167ed); box-shadow: 0 0 0 2px var(--primary, #3167ed) inset; }
.lookpick .lookopt img { width: 96px; height: 54px; flex: 0 0 96px; object-fit: cover; border-radius: 8px; }
.lookpick .lookwords { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.lookpick .lookwords span { font-size: 13px; opacity: .8; }
.lookpick .lookwords em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--primary, #3167ed); }
.lookpick #sheetOk[disabled] { opacity: .55; }

/* BB (18/11/2026): Back at the top left of every Simple view that is not Home, in the same
   place on each, a 44 px target with a chevron and the word */
.viewback { display: none; }
html[data-layout="simple"] .viewback:not([hidden]) { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; min-width: 44px;
  margin: 0 0 8px -8px; padding: 0 14px 0 8px; border-radius: 12px; font-weight: 650; font-size: 15px; color: var(--ink);
  border: 1px solid var(--line-strong); background: var(--raised); }
html[data-layout="simple"] .viewback svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
html[data-layout="simple"] body[data-view="home"] .viewback { display: none !important; }

/* BB: the Screen check (Studio): the thin lines on the top and the bottom edge of what the page
   believes the screen is, while the sheet is open */
.sc-edge { position: fixed; left: 0; right: 0; height: 3px; z-index: 200; pointer-events: none; }
.sc-edge.top { top: 0; background: #22c55e; }
.sc-edge.bottom { bottom: 0; background: #ef4444; }
.sc-grid { display: grid; grid-template-columns: minmax(120px, 44%) 1fr; gap: 4px 10px; margin: 6px 0 12px; font-size: 14px; line-height: 1.4; }
.sc-grid dt { color: var(--muted); margin: 0; }
.sc-grid dd { margin: 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

/* PS begin (the founder, 18 November 2026: "price show and hide should be in settings, by default
   it should be hidden"). The Studio page the cog opens reads in groups under small headings (Go to,
   Settings, Money, Help), and the price switch is the first row of Settings. The switch is one
   control drawn by ui.js: here as a row of the list, and in the Studio view's Settings card, in
   both layouts. */
.sx-group { max-width: 720px; margin-top: 22px; }
.sx-h + .sx-group { margin-top: 14px; }
.sx-gh { margin: 0 4px 8px; font: 600 12px/1.3 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sx-group > .sx-list { margin-top: 0; }
/* the switch: its label and its track on one line, the sentence that says what it does under them */
.pswitch { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 14px; row-gap: 3px; align-items: center;
  justify-content: stretch; white-space: normal; text-align: left; cursor: pointer; }
.pswitch > .sx-ico { grid-area: 1 / 1; }
.pswitch > .pswitch-label { grid-area: 1 / 2; min-width: 0; font-size: 15.5px; font-weight: 700; }
.pswitch > .pswitch-track { grid-area: 1 / 3; }
.pswitch > .pswitch-sub { grid-area: 2 / 2 / 3 / 4; min-width: 0; color: var(--muted); font-size: 13.5px; font-weight: 400; line-height: 1.4; overflow-wrap: anywhere; }
.pswitch-track { position: relative; display: block; width: 52px; height: 32px; border-radius: 999px; background: var(--raised);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--muted) 70%, transparent); transition: background .16s var(--ease), box-shadow .16s var(--ease); }
.pswitch-track > i { position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: var(--muted);
  transition: transform .16s var(--ease), background .16s var(--ease); }
.pswitch[aria-checked="true"] .pswitch-track { background: var(--primary); box-shadow: none; }
.pswitch[aria-checked="true"] .pswitch-track > i { transform: translateX(20px); background: #fff; }
.pswitch:active { transform: none; }
@media (prefers-reduced-motion: reduce) { .pswitch-track, .pswitch-track > i { transition: none; } }
@media (forced-colors: active) {
  .pswitch-track { border: 1px solid ButtonText; box-shadow: none; }
  .pswitch-track > i { background: ButtonText; }
  .pswitch[aria-checked="true"] .pswitch-track { background: Highlight; }
}
/* the same switch as the first row of the Studio view's Settings card: a plain row of the card */
.settingscard .pswitch { grid-template-columns: minmax(0, 1fr) auto; width: 100%; min-height: 44px; padding: 6px 0 10px;
  border: 0; border-radius: 10px; background: transparent; box-shadow: none; color: var(--ink); }
.settingscard .pswitch:hover { background: transparent; border-color: transparent; }
.settingscard .pswitch > .sx-ico { display: none; }
.settingscard .pswitch > .pswitch-label { grid-area: 1 / 1; }
.settingscard .pswitch > .pswitch-track { grid-area: 1 / 2; }
.settingscard .pswitch > .pswitch-sub { grid-area: 2 / 1 / 3 / 3; }
html[data-layout="simple"] .settingscard .pswitch { padding-bottom: 0; }
html[data-layout="pro"] .settingscard #settingsRows:not(:empty) { border-bottom: 1px solid var(--line); }
/* a Settings card with nothing in it is not drawn (the layout row is the Professional layout's) */
html[data-layout="simple"] .settingscard:not(:has(#settingsRows > *)) { display: none; }
/* PS end */

/* ===== the left bar shrinks to icons (a desk, 900 px and wider) =====
   A hamburger at its top shrinks the bar to icons and opens it to names again; Ctrl or Cmd+B does the same.
   The choice is the class rail-icons on the page, set before the first paint from the device's own memory.
   Each name stays in the page for a screen reader and shows as a tooltip on hover and on keyboard focus. */
.railtoggle { display: flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; min-height: 44px; padding: 0;
  margin: 0 0 6px 2px; border-radius: 12px; border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer; }
.railtoggle svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.railtoggle:hover { background: var(--accent-soft); color: var(--ink); }
.railtoggle:focus-visible { outline: 2px solid var(--primary, var(--accent)); outline-offset: 2px; }
@media (min-width: 900px) {
  html.rail-icons, html.rail-icons[data-layout] { --rail: 72px; }
  html.rail-icons nav.rail { padding-left: 13px; padding-right: 13px; z-index: 30; }
  html.rail-icons .railtoggle { margin: 0 auto 6px; }
  html.rail-icons .rail .brand { align-items: center; padding: 2px 0 14px; }
  html.rail-icons .rail .brand small { display: none; }
  html.rail-icons .rail .brand .wordmark { font-size: 0; line-height: 1; }
  html.rail-icons .rail .brand .wordmark::first-letter { font-size: 30px; }
  html.rail-icons .rail .foot { display: none; }
  html.rail-icons .rail .navbtn { position: relative; justify-content: center; gap: 0; padding: 0; width: 100%; height: 44px; min-height: 44px; }
  html.rail-icons .rail .navbtn .nl { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
  html.rail-icons .rail .navbtn:hover .nl, html.rail-icons .rail .navbtn:focus-visible .nl {
    width: auto; height: auto; margin: 0; padding: 6px 10px; overflow: visible; clip: auto; clip-path: none;
    left: calc(100% + 20px); top: 50%; transform: translateY(-50%); z-index: 40; pointer-events: none;
    background: var(--panel, var(--bg-2)); color: var(--ink); border: 1px solid var(--line); border-radius: 8px;
    box-shadow: var(--shadow-2); font-size: 13px; font-weight: 500; line-height: 1.2; }
  html.rail-icons .rail .navbtn .badge { position: absolute; top: 1px; right: -2px; margin: 0; min-width: 18px; height: 18px; padding: 0 5px; font-size: 11px; }
  html.rail-icons .rail .navbtn:focus-visible { outline: 2px solid var(--primary, var(--accent)); outline-offset: 2px; }
}
@media (max-width: 899px) { .railtoggle { display: none; } }

/* a short desk window: the open bar (hamburger, Professional buttons, hints) is taller than the window, so the hints
   give way and the bar scrolls, and the layout button at its foot stays reachable. The shrunk bar needs neither. */
@media (min-width: 900px) and (max-height: 620px) {
  html:not(.rail-icons) nav.rail { overflow-y: auto; overscroll-behavior: contain; }
  html:not(.rail-icons) .rail .foot { display: none; }
}

/* W2 (lane AWS): the admin's one line on Home while a key the studio needs is missing */
.sx-keys { display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap;
  padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--panel); color: var(--ink); font-size: 14px; line-height: 1.35; }
.sx-keys[hidden] { display: none; }
.sx-keys span { flex: 1 1 220px; min-width: 0; }
.sx-keys button { flex: 0 0 auto; }
@media (max-width: 899px) { .sx-keys { padding: 10px 14px; } .sx-keys button { min-height: 44px; padding: 0 16px; } }
