:root {
  --bg: #000000;
  --bg2: #000000;
  --panel: #070707;
  --card: #111111;
  --line: #2a0a0d;
  --line2: #4a1015;
  --tx: #f2f2f2;
  --mut: #a3a3a3;
  --dim: #6e6e6e;
  --ac: #e5202e;
  --ac-rgb: 229, 32, 46;
  --ac2: #ff4d57;
  --ac2-rgb: 255, 77, 87;
  --ac-hi: #ff3b45;
  --ac-lo: #9e0f1a;
  --on-ac: #ffffff;
  --inp: #0f0f0f;
  --sur1: #191919;
  --sur2: #252525;
  --sur3: #2e2e2e;
  --sur4: #454545;
  --tx2: #c7c7c7;
  --glass-rgb: 11, 11, 11;
  --sheen: rgba(255, 255, 255, .035);
  --hero: #1c0709;
  --hero-line: #4a1015;
  --note-bg: #1b0c0d;
  --note-line: #4a1015;
  --ok: #9be36a;
  --bad: #ff5a6e;
  --blue: #6aa8ff;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --disp: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace
}

:root[data-theme="champagne"] {
  --bg: #0e0d0b;
  --bg2: #0b0a08;
  --panel: #151310;
  --card: #1f1c18;
  --line: #2a2620;
  --line2: #3a342b;
  --tx: #f4efe6;
  --mut: #a59d90;
  --dim: #6f685e;
  --ac: #c9a96e;
  --ac-rgb: 201, 169, 110;
  --ac2: #e2c58f;
  --ac2-rgb: 226, 197, 143;
  --ac-hi: #d8ba82;
  --ac-lo: #8a6f3e;
  --on-ac: #1a1610;
  --inp: #12100d;
  --sur1: #1c1915;
  --sur2: #25211b;
  --sur3: #302b23;
  --sur4: #4a4236;
  --tx2: #d6cfc2;
  --glass-rgb: 20, 18, 15;
  --sheen: rgba(255, 240, 210, .03);
  --hero: #221c12;
  --hero-line: #3a3022;
  --note-bg: #1d1810;
  --note-line: #4a3a1a;
  --ok: #a8d88a;
  --bad: #e98a7a;
  --blue: #8fb3e8
}

:root[data-theme="bordeaux"] {
  --bg: #14080c;
  --bg2: #11060a;
  --panel: #1b0b11;
  --card: #261019;
  --line: #3a1724;
  --line2: #532236;
  --tx: #f7ecef;
  --mut: #c09aa6;
  --dim: #85606c;
  --ac: #e8a0b4;
  --ac-rgb: 232, 160, 180;
  --ac2: #f3c1cf;
  --ac2-rgb: 243, 193, 207;
  --ac-hi: #f0b3c4;
  --ac-lo: #b3264f;
  --on-ac: #2a0b16;
  --inp: #1a0a10;
  --sur1: #221016;
  --sur2: #2c141d;
  --sur3: #3a1a27;
  --sur4: #5a2a3c;
  --tx2: #e3c9d0;
  --glass-rgb: 26, 10, 16;
  --sheen: rgba(255, 220, 230, .03);
  --hero: #2a0f1a;
  --hero-line: #532236;
  --note-bg: #261019;
  --note-line: #532236;
  --ok: #a6e3a1;
  --bad: #ff8a9c;
  --blue: #9db8ff
}

:root[data-theme="atelier"] {
  --bg: #f6f2ec;
  --bg2: #efe9e0;
  --panel: #fbf9f5;
  --card: #ffffff;
  --line: #e4ddd2;
  --line2: #d3c9ba;
  --tx: #1c1b19;
  --mut: #6b645a;
  --dim: #9a9286;
  --ac: #c2532d;
  --ac-rgb: 194, 83, 45;
  --ac2: #a8431f;
  --ac2-rgb: 168, 67, 31;
  --ac-hi: #d0623a;
  --ac-lo: #8f3a1d;
  --on-ac: #ffffff;
  --inp: #ffffff;
  --sur1: #f1ece4;
  --sur2: #e9e2d7;
  --sur3: #ddd4c6;
  --sur4: #c4b8a6;
  --tx2: #3a3630;
  --glass-rgb: 251, 249, 245;
  --sheen: rgba(0, 0, 0, .035);
  --hero: #fff4ec;
  --hero-line: #ecc9b8;
  --note-bg: #fbf1e4;
  --note-line: #e8cfae;
  --ok: #3a8f2a;
  --bad: #c4314b;
  --blue: #2f6fd6
}

:root[data-theme="nuit"] {
  --bg: #0b1020;
  --bg2: #0a0f1d;
  --panel: #0f1628;
  --card: #161f36;
  --line: #1f2a45;
  --line2: #2c3a5c;
  --tx: #eef1f8;
  --mut: #9aa5bf;
  --dim: #616c88;
  --ac: #ff8a65;
  --ac-rgb: 255, 138, 101;
  --ac2: #ffb199;
  --ac2-rgb: 255, 177, 153;
  --ac-hi: #ff9c7c;
  --ac-lo: #d0603e;
  --on-ac: #1a0d08;
  --inp: #0d1324;
  --sur1: #141c31;
  --sur2: #1b2540;
  --sur3: #24304f;
  --sur4: #3a4870;
  --tx2: #c9d1e3;
  --glass-rgb: 11, 16, 32;
  --sheen: rgba(200, 220, 255, .03);
  --hero: #1f1a2a;
  --hero-line: #3a2f3f;
  --note-bg: #1a1a26;
  --note-line: #3a3348;
  --ok: #9be3a0;
  --bad: #ff7a8a;
  --blue: #7fb0ff
}

/* light theme: the photo stage stays a neutral grey so colours read true */
:root[data-theme="atelier"] .stage {
  background: #e7e2da
}

:root[data-theme="atelier"] .tab.on {
  background: rgba(var(--ac-rgb), .12)
}


* {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html,
body {
  height: 100%;
  background: var(--bg);
  color: var(--tx);
  font: 13px/1.45 var(--sans);
  overflow: hidden;
  -webkit-font-smoothing: antialiased
}

button,
select,
textarea,
input {
  font: inherit;
  color: inherit
}

button {
  background: none;
  border: 0;
  cursor: pointer
}

.app {
  display: grid;
  grid-template-rows: 54px 1fr;
  height: 100vh;
  height: 100dvh
}

header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-bottom: 2px solid var(--ac);
  background: var(--bg2);
  position: relative;
  z-index: 5
}

.logo {
  font: 800 17px/1 var(--disp);
  letter-spacing: -.02em;
  display: flex;
  align-items: center;
  gap: 9px
}

.logo i {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--ac);
  display: grid;
  place-items: center;
  box-shadow: 0 0 18px rgba(var(--ac-rgb), .5)
}

.logo i::before {
  content: "N";
  color: var(--on-ac);
  font: 900 16px/1 var(--disp);
  font-style: normal
}

.logo span {
  color: var(--ac);
  font-weight: 700
}

.sep {
  width: 1px;
  height: 22px;
  background: var(--line2);
  margin: 0 4px
}

.grow {
  flex: 1
}

.fname {
  color: var(--mut);
  font-size: 12px;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.btn {
  height: 32px;
  padding: 0 13px;
  border-radius: 9px;
  border: 1px solid var(--line2);
  background: var(--sur1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-weight: 550;
  white-space: nowrap;
  transition: background .15s, border-color .15s
}

.btn:hover {
  background: var(--sur2);
  border-color: var(--sur4)
}

.btn.pri {
  background: var(--ac);
  border-color: var(--ac);
  color: var(--on-ac);
  font-weight: 650
}

.btn.pri:hover {
  background: var(--ac-hi)
}

.btn.ghost {
  background: transparent;
  border-color: transparent;
  color: var(--mut)
}

.btn.ghost:hover {
  color: var(--tx);
  background: var(--sur1)
}

.btn:disabled {
  opacity: .35;
  cursor: default
}

.btn.big {
  height: 44px;
  width: 100%;
  font-size: 14px;
  border-radius: 11px
}

.btn svg {
  width: 16px;
  height: 16px
}

.ibtn {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: var(--mut)
}

.ibtn:hover:not(:disabled) {
  background: var(--sur2);
  color: var(--tx)
}

.ibtn:disabled {
  opacity: .3;
  cursor: default
}

.ibtn svg {
  width: 18px;
  height: 18px
}

.hwrap {
  position: relative
}

.pop {
  position: absolute;
  top: 40px;
  right: 0;
  width: 260px;
  max-height: 360px;
  overflow: auto;
  background: var(--sur1);
  border: 1px solid var(--line2);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .55);
  display: none
}

.pop.on {
  display: block
}

.pop button {
  display: flex;
  width: 100%;
  text-align: left;
  padding: 7px 9px;
  border-radius: 7px;
  color: var(--mut);
  gap: 8px;
  font-size: 12px
}

.pop button:hover {
  background: var(--sur2);
  color: var(--tx)
}

.pop button.cur {
  color: var(--tx);
  background: var(--sur2)
}

.pop button.fut {
  opacity: .45
}

.pop button b {
  font-weight: 500;
  color: var(--dim);
  min-width: 18px
}

main {
  display: grid;
  grid-template-columns: 78px 1fr 364px;
  min-height: 0
}

.rail {
  overflow-y: auto;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 10px 8px;
  gap: 4px;
  background: var(--bg2)
}

.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 11px 0 9px;
  border-radius: 12px;
  color: var(--mut);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .01em;
  position: relative
}

.tab svg {
  width: 22px;
  height: 22px
}

.tab:hover {
  color: var(--tx);
  background: var(--sur1)
}

.tab.on {
  background: rgba(var(--ac-rgb), .16);
  color: var(--tx)
}

.tab.on svg {
  color: var(--ac)
}

.tab.on::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 3px;
  background: var(--ac)
}

.stage {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: radial-gradient(circle at 50% 40%, var(--sur1) 0, var(--inp) 70%)
}

.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--sheen) 1px, transparent 1px);
  background-size: 18px 18px;
  pointer-events: none
}

#view {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none
}

#loupe {
  position: absolute;
  width: 240px;
  height: 240px;
  pointer-events: none;
  display: none;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .9), 0 14px 40px rgba(0, 0, 0, .6)
}

.tag {
  position: absolute;
  padding: 4px 9px;
  border-radius: 7px;
  background: rgba(var(--glass-rgb), .72);
  backdrop-filter: blur(6px);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  pointer-events: none;
  display: none
}

.tag.b {
  color: var(--tx2)
}

.tag.a {
  color: var(--ac2)
}

.busy {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  border-radius: 20px;
  background: rgba(var(--glass-rgb), .85);
  border: 1px solid var(--line2);
  font-size: 12px;
  color: var(--mut);
  opacity: 0;
  transition: opacity .2s;
  pointer-events: none
}

.busy.on {
  opacity: 1
}

.busy i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--line2);
  border-top-color: var(--ac);
  animation: sp .7s linear infinite
}

@keyframes sp {
  to {
    transform: rotate(360deg)
  }
}

.dims {
  position: absolute;
  left: 14px;
  bottom: 14px;
  font: 12px var(--mono);
  color: var(--mut);
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(var(--glass-rgb), .8);
  border: 1px solid var(--line)
}

.dims b {
  color: var(--tx);
  font-weight: 600
}

.dims em {
  font-style: normal;
  color: var(--ac2)
}

.histo {
  position: absolute;
  left: 14px;
  bottom: 54px;
  padding: 4px;
  border-radius: 8px;
  background: rgba(var(--glass-rgb), .8);
  border: 1px solid var(--line);
  pointer-events: none;
  display: none
}

.histo canvas {
  display: block;
  width: 200px;
  height: 80px
}

.scseg {
  display: flex;
  gap: 2px;
  margin-bottom: 4px;
  pointer-events: auto
}

.scseg button {
  flex: 1;
  height: 20px;
  padding: 0 6px;
  border-radius: 5px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--dim)
}

.scseg button:hover {
  color: var(--tx)
}

.scseg button.on {
  color: var(--tx);
  background: var(--sur2)
}

/* colour wheels */
.wheels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px
}

.wheel {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 11.5px;
  line-height: 1.3
}

.wheel canvas {
  width: 100%;
  aspect-ratio: 1;
  cursor: grab;
  touch-action: none
}

.wheel canvas:active {
  cursor: grabbing
}

.wheel b {
  margin-top: 4px;
  color: var(--tx2);
  font-weight: 600
}

.wheel span,
.sl label em {
  color: var(--dim);
  font-style: normal
}

.wheel span {
  font-size: 10.5px
}

/* LUTs */
#lutC {
  margin-top: 8px
}

#lutC .miss {
  border-style: dashed;
  color: var(--bad)
}

.lut-foot {
  gap: 6px;
  margin-top: 10px
}

.lut-hint {
  margin-top: 8px;
  line-height: 1.45
}

/* video outlines */
.ol-n {
  margin: 12px 0 8px
}

.ollist {
  display: grid;
  gap: 6px
}

.ol {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--sur1)
}

.ol.on {
  border-color: var(--line2)
}

.olh {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  padding: 10px 12px;
  text-align: left
}

.olh b {
  font-size: 13px;
  color: var(--tx)
}

.olh span {
  font-size: 11.5px;
  color: var(--dim)
}

.olh i {
  font-style: normal;
  color: var(--ac2)
}

.olb {
  list-style: none;
  margin: 0 12px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
  display: grid;
  gap: 6px
}

.olb li {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 8px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--tx2)
}

.olb em {
  font: 11.5px var(--mono);
  font-style: normal;
  color: var(--mut)
}

.olt {
  margin: 10px 12px 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--note-bg);
  border: 1px solid var(--note-line);
  font-size: 12px;
  line-height: 1.45;
  color: var(--tx2)
}

.olt b {
  color: var(--ac2);
  margin-right: 4px
}

.olact {
  display: flex;
  gap: 6px;
  margin: 10px 12px 0
}

.olact .btn {
  flex: 1
}

.olact .olc {
  flex: 0 0 auto;
  margin: 0;
  width: auto
}

.olx {
  margin: 8px 12px 10px;
  font-size: 11.5px;
  color: var(--dim)
}

.olx a {
  color: var(--ac2)
}

.vbox {
  width: min(720px, calc(100vw - 24px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto
}

.vstage {
  margin-top: 12px;
  display: grid;
  place-items: center;
  background: #000;
  border-radius: 10px;
  overflow: hidden
}

.vframe {
  position: relative;
  width: 100%;
  max-height: 58dvh
}

.vframe.tall {
  width: auto;
  height: 58dvh;
  max-width: 100%
}

.vframe canvas {
  display: block;
  width: 100%;
  height: 100%
}

.vguide {
  position: absolute;
  inset: 0;
  pointer-events: none
}

.vhead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px
}

.vhead p {
  color: var(--mut);
  font-size: 12px
}

.vtog {
  color: var(--dim)
}

.vtog.on {
  color: var(--tx);
  background: var(--sur2)
}

#vidSnd .x,
#vidSnd.on .w {
  display: inline
}

#vidSnd .w,
#vidSnd.on .x {
  display: none
}

.vrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px
}

.vrow .lbl {
  margin: 0;
  flex: none
}

.vctl {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px
}

.vctl input {
  flex: 1
}

.vctl span {
  font: 12px var(--mono);
  color: var(--mut);
  min-width: 84px;
  text-align: right
}

.vbeats {
  margin: 12px 0 0;
  border-top: 0;
  padding-top: 0
}

.vbeats li {
  padding: 4px 6px;
  border-radius: 6px
}

.vbeats li.on {
  background: rgba(var(--ac-rgb), .12);
  color: var(--tx)
}

.vbox .olx {
  margin: 10px 0 0
}

/* photos for the example videos */
.vphbox {
  border: 1px dashed var(--line2);
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 12px;
  transition: border-color .15s, background .15s
}

.vdrop .vphbox,
.vdrop .vbox {
  border-color: var(--ac);
  background: rgba(var(--ac-rgb), .06)
}

.vph-h {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 12.5px;
  margin-bottom: 8px
}

.vph-h span {
  font-size: 11.5px;
  color: var(--dim);
  text-align: right
}

.vph-m {
  margin: 12px 0 6px;
  display: block
}

.vph-m span {
  display: block;
  text-align: left;
  margin-top: 2px
}

.vstrip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px
}

.vth {
  position: relative;
  flex: 0 0 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--inp);
  border: 1px solid var(--line);
  cursor: grab
}

.vth img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none
}

.vth i {
  position: absolute;
  left: 3px;
  bottom: 3px;
  font: 700 10px var(--mono);
  font-style: normal;
  color: #fff;
  background: rgba(0, 0, 0, .6);
  border-radius: 4px;
  padding: 0 4px
}

.vth button {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .65);
  color: #fff;
  font-size: 13px;
  line-height: 1
}

.vth.add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  font-size: 9.5px;
  color: var(--mut);
  border-style: dashed;
  border-color: var(--line2);
  cursor: pointer
}

.vth.add b {
  font-size: 18px;
  line-height: 1;
  color: var(--tx2)
}

.vth.add:hover {
  border-color: var(--ac);
  color: var(--tx)
}

.vph-act {
  margin: 8px 0 6px;
  flex-wrap: wrap
}

.vph-act>* {
  flex: 0 0 auto
}

/* versions */
.vsave {
  margin-top: 4px
}

#bCmpOff {
  width: 100%;
  margin-bottom: 10px
}

.vlist {
  display: grid;
  gap: 8px
}

.ver {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--sur1);
  overflow: hidden
}

.ver.on {
  border-color: var(--ac)
}

.ver img,
.ver .vph {
  display: block;
  width: 100%;
  height: 120px;
  object-fit: cover;
  background: var(--inp)
}

.vmeta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px 0
}

.vmeta input {
  flex: 1;
  min-width: 0;
  height: 28px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 0 6px;
  margin-left: -6px;
  font-weight: 600;
  color: var(--tx);
  outline: 0
}

.vmeta input:hover,
.vmeta input:focus {
  border-color: var(--line2);
  background: var(--inp)
}

.vmeta span {
  font-size: 11px;
  color: var(--dim)
}

.vact {
  display: flex;
  gap: 6px;
  padding: 8px 10px 10px
}

.vact .btn {
  flex: 1
}

.curve {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  margin-top: 8px;
  cursor: crosshair;
  touch-action: none
}

.curve-foot {
  justify-content: space-between;
  margin-top: 2px
}

.zbar {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 10px;
  background: rgba(var(--glass-rgb), .88);
  border: 1px solid var(--line)
}

.zbar button {
  height: 26px;
  padding: 0 9px;
  border-radius: 7px;
  color: var(--mut);
  font-size: 12px;
  font-weight: 550
}

.zbar button:hover {
  color: var(--tx);
  background: var(--sur2)
}

.zbar button.on {
  color: var(--tx);
  background: var(--sur2)
}

.zbar .zl {
  font: 12px var(--mono);
  color: var(--tx);
  padding: 0 6px;
  min-width: 58px;
  text-align: center
}

.zbar .zstep {
  width: 30px;
  padding: 0;
  display: grid;
  place-items: center;
  color: var(--tx)
}

.zbar .zstep svg {
  width: 16px;
  height: 16px
}

.zbar .zstep:hover {
  background: var(--ac);
  color: var(--on-ac)
}

.zbar button:disabled {
  opacity: .3;
  pointer-events: none
}

.zbar .vs {
  width: 1px;
  height: 16px;
  background: var(--line2);
  margin: 0 4px;
  padding: 0;
  min-width: 0
}

.drop {
  position: absolute;
  inset: 14px;
  border: 2px dashed var(--ac);
  border-radius: 18px;
  background: rgba(var(--ac-rgb), .07);
  display: none;
  place-items: center;
  font: 700 20px var(--disp);
  color: var(--ac);
  pointer-events: none;
  z-index: 4
}

.drop.on {
  display: grid
}

.upload {
  position: absolute;
  inset: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 2px dashed var(--line2);
  border-radius: 18px;
  background: var(--bg);
  color: var(--mut);
  z-index: 3;
  transition: border-color .15s, background .15s, color .15s
}

.upload[hidden] {
  display: none
}

.upload svg {
  width: 56px;
  height: 56px;
  padding: 14px;
  border-radius: 16px;
  background: var(--ac);
  color: var(--on-ac);
  box-shadow: 0 0 24px rgba(var(--ac-rgb), .45)
}

.upload b {
  font: 800 24px var(--disp);
  color: var(--tx)
}

.upload span {
  font-size: 13px
}

.upload:hover {
  border-color: var(--ac);
  background: rgba(var(--ac-rgb), .06);
  color: var(--tx)
}

.panel {
  border-left: 1px solid var(--line);
  background: var(--panel);
  overflow-y: auto;
  min-height: 0
}

.panel::-webkit-scrollbar {
  width: 8px
}

.panel::-webkit-scrollbar-thumb {
  background: var(--sur3);
  border-radius: 8px
}

.pane {
  display: none;
  padding: 18px 16px 30px
}

.pane.on {
  display: block
}

.ph h2 {
  font: 800 20px/1.15 var(--disp);
  letter-spacing: -.02em
}

.ph p {
  color: var(--mut);
  margin-top: 6px;
  font-size: 12.5px
}

.ph {
  margin-bottom: 16px
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px
}

.card h3 {
  font: 700 14px var(--disp);
  display: flex;
  align-items: center;
  gap: 8px
}

.card h3 small {
  font: 600 10px var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ac2);
  background: rgba(var(--ac2-rgb), .1);
  padding: 2px 6px;
  border-radius: 5px
}

.card>p {
  color: var(--mut);
  font-size: 12px;
  margin: 4px 0 12px
}

.hero {
  background: linear-gradient(160deg, var(--hero) 0, var(--sur1) 55%);
  border-color: var(--hero-line)
}

.lbl {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 12px 0 7px
}

.seg {
  display: flex;
  background: var(--inp);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 3px;
  gap: 3px
}

.seg button {
  flex: 1;
  height: 32px;
  border-radius: 7px;
  color: var(--mut);
  font-weight: 650
}

.seg button:hover {
  color: var(--tx)
}

.seg button.on {
  background: var(--sur2);
  color: var(--tx);
  box-shadow: inset 0 0 0 1px var(--sur4)
}

#upK {
  display: grid;
  grid-template-columns: 1fr 1fr
}

#upK button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px
}

.upnote {
  color: var(--dim);
  font-size: 11.5px;
  margin-top: 8px;
  line-height: 1.45
}

.seg.big button {
  height: 40px;
  font: 800 16px var(--disp)
}

.seg.big button.on {
  background: var(--ac);
  color: var(--on-ac);
  box-shadow: none
}

.res {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0 4px;
  font: 12px var(--mono);
  color: var(--mut);
  background: var(--inp);
  border-radius: 9px;
  padding: 9px 11px
}

.res b {
  color: var(--tx);
  font-weight: 600
}

.res em {
  color: var(--ac2);
  font-style: normal;
  font-weight: 700
}

.sl {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  row-gap: 2px;
  margin: 7px 0
}

.sl label {
  font-size: 12.5px;
  color: var(--tx2)
}

.sl output {
  font: 12px var(--mono);
  color: var(--dim);
  min-width: 34px;
  text-align: right
}

.sl.mod output {
  color: var(--ac2)
}

.sl input {
  grid-column: 1/3
}

input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 18px;
  background: transparent;
  cursor: pointer;
  --a: 0%;
  --b: 50%
}

input[type=range]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--sur3) var(--a), var(--ac) var(--a), var(--ac) var(--b), var(--sur3) var(--b))
}

input[type=range]::-moz-range-track {
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--sur3) var(--a), var(--ac) var(--a), var(--ac) var(--b), var(--sur3) var(--b))
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
  margin-top: -5.5px;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, .35);
  transition: transform .1s
}

input[type=range]::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border: 0;
  border-radius: 50%;
  background: #fff
}

input[type=range]:active::-webkit-slider-thumb {
  transform: scale(1.15)
}

select {
  background: var(--inp);
  border: 1px solid var(--line2);
  border-radius: 8px;
  height: 30px;
  padding: 0 8px
}

.row {
  display: flex;
  gap: 8px;
  align-items: center
}

.row>* {
  flex: 1
}

.prog {
  height: 4px;
  border-radius: 4px;
  background: var(--inp);
  overflow: hidden;
  margin-top: 10px;
  display: none
}

.prog.on {
  display: block
}

.prog i {
  display: block;
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, transparent, var(--ac), transparent);
  animation: pr 1s ease-in-out infinite
}

.prog i[style*="width"] {
  animation: none;
  transform: none;
  background: var(--ac);
  transition: width .2s
}

@keyframes pr {
  from {
    transform: translateX(-100%)
  }

  to {
    transform: translateX(250%)
  }
}

.done {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ok);
  font-weight: 650;
  font-size: 13px
}

.notes {
  list-style: none;
  margin: 10px 0 4px;
  display: grid;
  gap: 5px
}

.notes li {
  font-size: 12px;
  color: var(--tx2);
  display: flex;
  gap: 8px
}

.notes li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  margin-top: 6px;
  flex: none
}

.tip {
  color: var(--dim);
  font-size: 11.5px;
  line-height: 1.6;
  padding: 4px 2px
}

kbd {
  font: 11px var(--mono);
  background: var(--sur2);
  border: 1px solid var(--line2);
  border-radius: 5px;
  padding: 0 5px;
  color: var(--mut)
}

.pbox {
  background: var(--inp);
  border: 1px solid var(--line2);
  border-radius: 14px;
  padding: 4px;
  transition: border-color .15s
}

.pbox:focus-within {
  border-color: var(--ac)
}

textarea {
  width: 100%;
  resize: none;
  background: transparent;
  border: 0;
  outline: 0;
  padding: 10px 11px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--tx)
}

textarea::placeholder {
  color: var(--dim)
}

.prow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 4px 4px 11px
}

.hint {
  font-size: 11px;
  color: var(--dim)
}

.ex {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 12px 0 4px
}

.ex button {
  text-align: left;
  font-size: 12px;
  color: var(--mut);
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--sur1);
  line-height: 1.4
}

.ex button:hover {
  color: var(--tx);
  border-color: var(--sur4)
}

.engine {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 600
}

.engine span {
  display: flex;
  align-items: center;
  gap: 6px
}

.engine em {
  font-style: normal;
  font-weight: 500;
  color: var(--dim)
}

.keyform {
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 11px;
  border: 1px solid var(--line2);
  background: var(--card)
}

.keyform label {
  display: block;
  font-weight: 650;
  margin-bottom: 6px
}

.keyform p {
  color: var(--dim);
  font-size: 11.5px;
  margin-top: 8px
}

.planwhy {
  color: var(--tx2);
  font-size: 12.5px;
  margin: 2px 0 10px
}

.plh {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 18px 0 8px
}

.plh h3 {
  font: 700 14px var(--disp)
}

.plh span {
  font-size: 11.5px;
  color: var(--mut)
}

.steps {
  list-style: none;
  display: grid;
  gap: 6px
}

.step {
  display: grid;
  grid-template-columns: 24px 1fr auto 22px;
  align-items: center;
  column-gap: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 8px 8px 8px 8px;
  animation: in .25s ease both
}

@keyframes in {
  from {
    opacity: 0;
    transform: translateY(4px)
  }
}

.step .n {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font: 700 11px var(--mono);
  background: var(--sur2);
  color: var(--mut)
}

.step.c-light .n {
  background: rgba(var(--ac2-rgb), .16);
  color: var(--ac2)
}

.step.c-color .n {
  background: rgba(106, 168, 255, .16);
  color: var(--blue)
}

.step.c-look .n {
  background: rgba(var(--ac-rgb), .18);
  color: var(--ac)
}

.step.c-detail .n {
  background: rgba(155, 227, 106, .14);
  color: var(--ok)
}

.step.c-geo .n {
  background: rgba(200, 140, 255, .16);
  color: #c79bff
}

.step .t {
  font-weight: 600;
  font-size: 12.5px;
  line-height: 1.25
}

.step .d {
  font-size: 11px;
  color: var(--mut);
  line-height: 1.3
}

.step .v {
  font: 12px var(--mono);
  color: var(--ac2)
}

.step .x {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  color: var(--dim);
  font-size: 15px;
  line-height: 1
}

.step .x:hover {
  background: var(--sur3);
  color: var(--tx)
}

.step .ctl {
  grid-column: 2/4;
  margin-top: 3px
}

.step select {
  height: 26px;
  font-size: 12px
}

.cant {
  border: 1px solid rgba(255, 90, 110, .35);
  background: rgba(255, 90, 110, .07);
  border-radius: 11px;
  padding: 9px 11px;
  margin-top: 6px
}

.cant b {
  color: var(--bad);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase
}

.cant q {
  display: block;
  font-weight: 600;
  margin: 2px 0
}

.cant p {
  font-size: 11.5px;
  color: #c9a6ad
}

.skip {
  border: 1px dashed var(--line2);
  border-radius: 11px;
  padding: 8px 11px;
  margin-top: 6px;
  font-size: 11.5px;
  color: var(--mut)
}

.note {
  margin-top: 16px;
  font-size: 11.5px;
  color: var(--dim);
  line-height: 1.55;
  border-top: 1px solid var(--line);
  padding-top: 12px
}

.note b {
  color: var(--mut)
}

.cats {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 12px
}

.cats button {
  height: 27px;
  padding: 0 10px;
  border-radius: 14px;
  border: 1px solid var(--line2);
  color: var(--mut);
  font-size: 12px;
  font-weight: 550
}

.cats button:hover {
  color: var(--tx)
}

.cats button.on {
  background: var(--tx);
  color: var(--inp);
  border-color: var(--tx)
}

.fgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px
}

.ft {
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: left;
  border-radius: 10px;
  padding: 0;
  position: relative
}

.ft canvas,
.ft .none {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 9px;
  background: var(--sur1);
  object-fit: cover;
  display: block;
  box-shadow: 0 0 0 1px var(--line)
}

.ft .none {
  display: grid;
  place-items: center;
  color: var(--dim);
  font-size: 22px
}

.ft span {
  font-size: 11.5px;
  color: var(--mut);
  font-weight: 550;
  padding-left: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.ft:hover span {
  color: var(--tx)
}

.ft.on canvas,
.ft.on .none {
  box-shadow: 0 0 0 2px var(--ac)
}

.ft.on span {
  color: var(--tx)
}

.fsel {
  position: sticky;
  top: -18px;
  z-index: 2;
  background: var(--panel);
  padding: 8px 0 10px;
  margin: -8px 0 8px;
  border-bottom: 1px solid var(--line)
}

.fsel .row {
  align-items: baseline
}

.fsel b {
  font: 700 14px var(--disp)
}

.fsel small {
  color: var(--dim);
  font-size: 11px
}

.fchips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px
}

.fchip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 6px 0 11px;
  border-radius: 14px;
  border: 1px solid var(--line2);
  background: var(--card);
  font-weight: 600;
  font-size: 12px
}

.fchip i {
  font-style: normal;
  color: var(--dim);
  font-weight: 500
}

.fchip .x {
  width: 18px;
  height: 18px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: var(--mut)
}

.fchip .x:hover {
  background: var(--sur3);
  color: var(--tx)
}

.fchip.on {
  border-color: var(--ac);
  box-shadow: 0 0 0 1px var(--ac) inset
}

.fchip.add {
  padding: 0 11px;
  color: var(--mut);
  border-style: dashed
}

.fchip.add.on {
  color: var(--tx)
}

.fhint {
  display: block;
  color: var(--dim);
  font-size: 11px
}

.pgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px
}

.pc {
  text-align: left;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
  transition: border-color .15s, transform .15s
}

.pc:hover {
  border-color: var(--sur4);
  transform: translateY(-1px)
}

.pc.on {
  border-color: var(--ac)
}

.pc canvas {
  width: 100%;
  aspect-ratio: 3/2;
  display: block;
  object-fit: cover;
  background: var(--sur1)
}

.pc .pn {
  padding: 8px 10px 2px;
  font-weight: 650;
  font-size: 12.5px
}

.pc .pv {
  padding: 0 10px 9px;
  display: flex;
  flex-wrap: wrap;
  gap: 3px
}

.pc .pv i {
  font: 10px var(--mono);
  font-style: normal;
  color: var(--mut);
  background: var(--sur1);
  border-radius: 4px;
  padding: 1px 4px
}

.pc .del {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(0, 0, 0, .6);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
  opacity: 0
}

.pc:hover .del {
  opacity: 1
}

.sec {
  font: 700 13px var(--disp);
  margin: 20px 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between
}

.sec small {
  font: 500 11px var(--sans);
  color: var(--dim)
}

.save {
  display: flex;
  gap: 6px;
  margin-bottom: 10px
}

.save input {
  flex: 1;
  height: 32px;
  background: var(--inp);
  border: 1px solid var(--line2);
  border-radius: 9px;
  padding: 0 10px;
  outline: 0
}

.save input:focus {
  border-color: var(--ac)
}

.empty {
  font-size: 12px;
  color: var(--dim);
  padding: 14px;
  text-align: center;
  border: 1px dashed var(--line2);
  border-radius: 12px
}

.grp {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 18px 0 4px;
  display: flex;
  justify-content: space-between
}

.grp:first-child {
  margin-top: 0
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px
}

.chips button {
  height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--line2);
  color: var(--mut);
  font-size: 12px;
  font-weight: 550
}

.chips button:hover {
  color: var(--tx)
}

.chips button.on {
  border-color: var(--ac);
  color: var(--tx);
  background: rgba(var(--ac-rgb), .1)
}

.tog {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  font-size: 12.5px;
  color: var(--tx2)
}

.sw {
  width: 34px;
  height: 20px;
  border-radius: 12px;
  background: var(--sur3);
  position: relative;
  flex: none;
  transition: background .15s
}

.sw::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  transition: transform .15s
}

.sw.on {
  background: var(--ac)
}

.sw.on::after {
  transform: translateX(14px)
}

.stack {
  list-style: none;
  display: grid;
  gap: 5px
}

.stack li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  background: var(--sur1);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 7px 9px;
  color: var(--tx2)
}

.stack li span {
  flex: 1
}

.stack li i {
  font-style: normal;
  font: 11px var(--mono);
  color: var(--dim)
}

.stack li button {
  color: var(--dim);
  font-size: 14px;
  width: 20px
}

.stack li button:hover {
  color: var(--tx)
}

.madd {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px
}

.madd button {
  height: 40px;
  border-radius: 9px;
  border: 1px solid var(--line2);
  background: var(--card);
  font-weight: 600;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px
}

.madd button:hover {
  border-color: var(--sur4);
  background: var(--sur2)
}

i.ai {
  font: 700 9px var(--sans);
  font-style: normal;
  letter-spacing: .06em;
  padding: 2px 5px;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--ac), var(--ac-lo));
  color: var(--on-ac)
}

.segst {
  margin-top: 10px;
  padding: 9px 11px;
  border-radius: 9px;
  background: var(--note-bg);
  border: 1px solid var(--note-line);
  color: var(--ac2);
  font-size: 12px
}

.mlist {
  list-style: none;
  display: grid;
  gap: 5px;
  margin-top: 12px
}

.mk {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 9px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--sur1);
  cursor: pointer;
  font-size: 12.5px
}

.mk.on {
  border-color: var(--ac);
  background: var(--sur1)
}

.mk.off .mt {
  opacity: .45
}

.mk .mt {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600
}

.mk em {
  font-style: normal;
  font-weight: 500;
  color: var(--dim)
}

.mk button {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  color: var(--mut)
}

.mk button:hover {
  background: var(--sur2);
  color: var(--tx)
}

#maskEdit {
  margin-top: 12px;
  padding: 12px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--card)
}

.mtip {
  color: var(--mut);
  font-size: 12px;
  margin-bottom: 10px
}

.mq {
  margin: 8px 0 4px
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 74px;
  transform: translate(-50%, 20px);
  background: var(--sur2);
  border: 1px solid var(--line2);
  color: var(--tx);
  padding: 10px 16px;
  border-radius: 11px;
  font-size: 13px;
  opacity: 0;
  transition: .25s;
  pointer-events: none;
  z-index: 20;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5)
}

.toast.on {
  opacity: 1;
  transform: translate(-50%, 0)
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(var(--glass-rgb), .65);
  backdrop-filter: blur(4px);
  display: none;
  place-items: center;
  z-index: 15
}

.modal.on {
  display: grid
}

.mbox {
  width: 380px;
  background: var(--panel);
  border: 1px solid var(--line2);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6)
}

.mbox h3 {
  font: 800 18px var(--disp);
  margin-bottom: 4px
}

.mbox>p {
  color: var(--mut);
  font-size: 12px
}

/* ---------- overlays, story templates, feed planner, batch export ---------- */
.ovlist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px
}

.ovlist li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px 4px
}

.ovh {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px
}

.ovh b {
  flex: 1;
  font-size: 12.5px
}

.ovh .btn {
  height: 26px;
  padding: 0 10px;
  font-size: 11.5px
}

.ovh .x {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  color: var(--mut);
  font-size: 17px
}

.ovh .x:hover {
  background: var(--ac);
  color: var(--on-ac)
}

.tgrid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 14px
}

.tt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: var(--mut);
  font-size: 10.5px
}

.tt canvas {
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 7px;
  background: var(--card);
  border: 2px solid transparent
}

.tt:hover {
  color: var(--tx)
}

.tt.on canvas {
  border-color: var(--ac)
}

.tt.on span {
  color: var(--tx)
}

.tprev {
  display: block;
  width: 100%;
  max-width: 270px;
  margin: 14px auto 0;
  aspect-ratio: 9 / 16;
  height: auto;
  border-radius: 12px;
  background: var(--card);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5)
}

#fdAcc {
  flex: 1;
  min-width: 0
}

.feedgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  margin-top: 14px
}

.fd {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--card);
  cursor: grab
}

.feedgrid.s11 .fd {
  aspect-ratio: 1 / 1
}

.fd img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none
}

.fd button {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .7);
  color: #fff;
  font-size: 15px;
  line-height: 1;
  opacity: 0;
  transition: opacity .15s
}

.fd:hover button {
  opacity: 1
}

.fd button:hover {
  background: var(--ac)
}

.fd.drag {
  opacity: .4
}

.fd.over {
  outline: 2px solid var(--ac);
  outline-offset: -2px
}

.batch {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line)
}

.batch b {
  font-size: 13px
}

.batch p {
  color: var(--mut);
  font-size: 12px;
  margin: 4px 0 10px
}

.batch .btn {
  width: 100%
}

/* ---------- text tool ---------- */
.txadds {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px
}

.txadd {
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--tx);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.txadd:hover,
.txst:hover {
  border-color: var(--ac)
}

.txstyles {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  margin-bottom: 14px
}

.txst {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--sur1);
  padding: 0
}

.txst canvas {
  display: block;
  width: 100%;
  height: auto
}

.txarea {
  width: 100%;
  resize: vertical;
  min-height: 56px;
  background: var(--inp);
  border: 1px solid var(--line2);
  border-radius: 9px;
  padding: 8px 10px;
  outline: 0;
  font-size: 14px
}

.txarea:focus {
  border-color: var(--ac)
}

.txrow {
  margin-top: 8px;
  gap: 6px
}

.txrow select {
  flex: 1;
  min-width: 0;
  height: 32px
}

.tb {
  flex: 0 0 34px !important;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--line2);
  color: var(--mut);
  font-size: 13px
}

.tb.on {
  background: var(--ac);
  border-color: var(--ac);
  color: var(--on-ac)
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 6px
}

.swatches button,
.swc {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25);
  cursor: pointer
}

.swatches button.on {
  outline: 2px solid var(--ac);
  outline-offset: 2px
}

.swc {
  position: relative;
  overflow: hidden;
  background: conic-gradient(#f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00)
}

.swc input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer
}

#txFx button.on {
  background: var(--ac);
  border-color: var(--ac);
  color: var(--on-ac)
}

.txlist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px
}

.txlist li {
  padding: 8px 10px;
  border-radius: 9px;
  background: var(--card);
  border: 1px solid var(--line);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.txlist li.on {
  border-color: var(--ac)
}

/* ---------- theme picker ---------- */
.thdot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ac);
  box-shadow: 0 0 0 2px var(--sur3);
  margin-right: 2px
}

.thpop {
  width: 280px;
  z-index: 30
}

.thpop button {
  align-items: center;
  gap: 12px;
  padding: 9px 10px
}

.thpop b {
  display: block;
  font-size: 13px;
  color: var(--tx)
}

.thpop small {
  display: block;
  font-size: 11px;
  color: var(--mut)
}

.thsw {
  display: flex;
  flex: 0 0 auto;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line2)
}

.thsw i {
  width: 16px;
  height: 32px
}

.thpop button.cur {
  outline: 1px solid var(--ac)
}

/* ---------- Get the app menu ---------- */
.apppop {
  width: 330px;
  max-height: 80vh
}

.apppop button,
.apppop .pbtn {
  display: flex;
  width: 100%;
  text-align: left;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--tx);
  text-decoration: none;
  font-size: 12.5px
}

.apppop .pbtn:hover {
  background: var(--sur2)
}

.apppop button:disabled {
  opacity: .6;
  cursor: default
}

.apppop span {
  display: flex;
  flex-direction: column;
  gap: 2px
}

.apppop b {
  color: var(--tx);
  font-weight: 600
}

.apppop small {
  color: var(--mut);
  font-size: 11px
}

.apppop .appmain {
  background: var(--ac);
  margin: 4px 0
}

.apppop .appmain b,
.apppop .appmain small {
  color: var(--on-ac)
}

.apppop .appmain:hover {
  background: var(--ac);
  filter: brightness(1.1)
}

.appsec {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 10px 4px;
  border-top: 1px solid var(--line);
  margin-top: 6px;
  font-size: 12.5px
}

.appsec:first-child {
  border-top: 0;
  margin-top: 0
}

.appsec a {
  color: var(--ac)
}

.appsteps {
  margin: 4px 10px 8px 28px;
  color: var(--tx);
  font-size: 12px;
  line-height: 1.5
}

.appsteps li {
  margin: 3px 0
}

/* ---------- Phones and narrow windows ----------
   Photo on top, the open tool's panel under it, and the tool tabs along the bottom. */
@media (max-width: 760px) {
  .app {
    grid-template-rows: auto 1fr
  }

  header {
    gap: 6px;
    padding: 8px 10px;
    padding-top: calc(8px + env(safe-area-inset-top));
    overflow-x: auto;
    scrollbar-width: none
  }

  header::-webkit-scrollbar {
    display: none
  }

  header > * {
    flex-shrink: 0
  }

  .logo {
    font-size: 0;
    gap: 0
  }

  .logo span,
  .sep,
  .fname,
  #bCopyE,
  #bPasteE {
    display: none
  }

  .grow {
    flex: 1 0 4px
  }

  .btn {
    padding-left: 10px;
    padding-right: 10px
  }

  /* menus can't hang off the scrolling header, so pin them under it */
  .pop {
    position: fixed;
    top: calc(58px + env(safe-area-inset-top));
    left: 10px;
    right: 10px;
    width: auto;
    max-height: 60vh;
    z-index: 40
  }

  main {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 46%) minmax(0, 1fr) auto;
    grid-template-areas: "stage" "panel" "rail"
  }

  .stage {
    grid-area: stage
  }

  .panel {
    grid-area: panel;
    border-left: 0;
    border-top: 1px solid var(--line)
  }

  .pane {
    padding: 14px 14px 24px
  }

  .rail {
    grid-area: rail;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    border-right: 0;
    border-top: 1px solid var(--line);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    gap: 2px;
    scrollbar-width: none
  }

  .rail::-webkit-scrollbar {
    display: none
  }

  .tab {
    flex: 0 0 64px;
    padding: 7px 0 6px;
    font-size: 10px
  }

  .tab.on::before {
    left: 16px;
    right: 16px;
    top: -6px;
    bottom: auto;
    width: auto;
    height: 3px
  }

  .zbar {
    right: 8px;
    bottom: 8px
  }

  .zbar [data-z="1"],
  .zbar [data-z="2"],
  .zbar .vs,
  #bLoupe,
  #bHisto,
  .histo {
    display: none !important
  }

  .upload {
    inset: 10px
  }

  .mbox {
    width: auto;
    max-width: calc(100vw - 24px);
    max-height: calc(100dvh - 40px);
    overflow-y: auto
  }

  /* bigger targets for fingers */
  .sl input {
    min-height: 28px
  }
}

/* ---------- Reel Studio ---------- */
body.re-on {
  overflow: hidden
}

.restudio .btn {
  margin-top: 10px;
  width: 100%
}

.red {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: var(--bg);
  color: var(--tx);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  /* The timeline can be far wider than the window; it scrolls instead of widening the page. */
  grid-template-columns: minmax(0, 1fr)
}

.red>* {
  min-width: 0
}

.red[hidden] {
  display: none
}

.red-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line)
}

.red-title {
  display: flex;
  align-items: baseline;
  gap: 8px
}

.red-title b {
  font: 800 16px var(--disp)
}

.red-title span {
  font: 12px var(--mono);
  color: var(--mut)
}

.red-title em {
  font-style: normal;
  font-size: 11px;
  color: var(--dim)
}

.red-main {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 320px;
  min-height: 0
}

.red-bin,
.red-insp {
  overflow-y: auto;
  padding: 12px;
  min-height: 0
}

.red-bin {
  border-right: 1px solid var(--line)
}

.red-insp {
  border-left: 1px solid var(--line)
}

.red-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px
}

.red-media {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px
}

.rbm {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--inp)
}

.rbm img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none
}

.rbm i {
  position: absolute;
  right: 3px;
  bottom: 3px;
  font: 600 9.5px var(--mono);
  font-style: normal;
  background: rgba(0, 0, 0, .65);
  color: #fff;
  border-radius: 4px;
  padding: 0 3px
}

.rbm.add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--mut);
  border-style: dashed;
  border-color: var(--line2)
}

.rbm.add b {
  font-size: 20px;
  line-height: 1
}

.rbm:hover {
  border-color: var(--ac)
}

#reBinEmpty {
  margin-top: 10px
}

.red-pick {
  display: none
}

.picking .red-pick {
  display: block;
  color: var(--ac2);
  margin-top: 8px
}

.picking .red-bin {
  box-shadow: inset 0 0 0 2px var(--ac)
}

.red-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  min-height: 0;
  background: var(--bg2)
}

.red-phone {
  position: relative;
  height: calc(100% - 48px);
  max-width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5)
}

.red-phone canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none
}

.red-phone .vguide {
  pointer-events: none
}

.red-play {
  display: flex;
  align-items: center;
  gap: 10px
}

.red-play span {
  font: 12.5px var(--mono);
  color: var(--mut);
  min-width: 120px;
  text-align: center
}

.red-tools {
  display: flex;
  gap: 4px;
  padding: 6px 10px;
  overflow-x: auto;
  border-top: 1px solid var(--line);
  scrollbar-width: none
}

.red-tools button {
  flex: none;
  height: 32px;
  padding: 0 11px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--tx2);
  white-space: nowrap
}

.red-tools button:hover {
  background: var(--sur2);
  color: var(--tx)
}

.red-tools button.on {
  background: rgba(var(--ac-rgb), .15);
  color: var(--tx)
}

.red-tools .vs {
  width: 1px;
  background: var(--line);
  margin: 4px 4px
}

.red-mtog {
  display: none
}

.red-tl {
  border-top: 1px solid var(--line);
  background: var(--panel)
}

.red-lanes {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 12px
}

.red-lanes label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--dim)
}

.red-lanes input {
  width: 110px
}

.red-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 12px 8px;
  touch-action: pan-x
}

.red-inner {
  position: relative;
  min-width: 100%
}

.red-ruler {
  position: relative;
  height: 20px;
  cursor: pointer
}

.red-ruler i {
  position: absolute;
  bottom: 0;
  height: 5px;
  border-left: 1px solid var(--line2);
  font: 9.5px var(--mono);
  font-style: normal;
  color: var(--dim)
}

.red-ruler i.l {
  height: 18px;
  padding-left: 3px;
  line-height: 12px
}

.red-track {
  position: relative;
  margin-top: 4px
}

.red-track.v {
  height: 58px
}

.red-track.t {
  min-height: 24px
}

.red-track.c {
  height: 22px
}

.red-track.a {
  height: 26px
}

.rc,
.rt,
.ra,
.rcap {
  position: absolute;
  top: 0;
  border-radius: 6px;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  touch-action: none;
  border: 2px solid transparent
}

.rc {
  height: 100%;
  background-color: var(--sur2);
  background-size: auto 100%;
  background-repeat: repeat-x
}

.rc.drag {
  opacity: .8;
  z-index: 5;
  cursor: grabbing
}

.rc span,
.rt span,
.ra span,
.rcap span {
  position: absolute;
  left: 4px;
  bottom: 2px;
  right: 4px;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .8);
  pointer-events: none
}

.rt span,
.ra span,
.rcap span {
  top: 2px;
  bottom: auto
}

.rt {
  height: 20px;
  background: #7a4cff
}

.rcap {
  height: 100%;
  background: #1e8f8a;
  cursor: pointer
}

.ra {
  height: 100%
}

.ra.mus {
  background: #2f8f4e;
  cursor: pointer
}

.ra.vo {
  background: #c46a1e
}

.rc.on,
.rt.on,
.ra.on,
.rcap.on {
  border-color: #fff
}

.rh {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 10px;
  cursor: ew-resize;
  z-index: 2
}

.rh.l {
  left: 0
}

.rh.r {
  right: 0
}

.on>.rh,
.rc:hover>.rh,
.rt:hover>.rh {
  background: rgba(255, 255, 255, .85)
}

.rtr {
  position: absolute;
  top: 18px;
  width: 22px;
  height: 22px;
  margin-left: -11px;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--line2);
  color: var(--mut);
  font-size: 11px;
  z-index: 4
}

.rtr.set {
  color: var(--ac2);
  border-color: var(--ac)
}

.rempty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 11.5px;
  color: var(--dim);
  border: 1px dashed var(--line2);
  border-radius: 8px;
  cursor: pointer
}

.rempty b {
  font-size: 13px;
  color: var(--tx)
}

.rempty:hover {
  border-color: var(--ac)
}

.rfromset {
  grid-column: 1 / -1;
  margin-top: 4px;
  font-size: 12px
}

.red-ph {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  margin-left: -1px;
  background: #fff;
  pointer-events: none;
  z-index: 6;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .4)
}

.red-ph::before {
  content: "";
  position: absolute;
  top: 0;
  left: -5px;
  border: 6px solid transparent;
  border-top-color: #fff
}

.red-insp h4 {
  font: 800 15px var(--disp);
  margin-bottom: 10px
}

.red-insp h4 small {
  font: 500 11.5px var(--sans);
  color: var(--dim);
  margin-left: 6px
}

.red-insp select,
.red-insp textarea,
.red-insp input[type=password] {
  width: 100%;
  background: var(--inp);
  border: 1px solid var(--line2);
  border-radius: 9px;
  padding: 7px 9px;
  color: var(--tx);
  font: inherit;
  font-size: 13px;
  outline: 0
}

.red-insp textarea {
  resize: vertical
}

.red-insp input[type=password]:focus,
.red-insp textarea:focus,
.red-insp select:focus {
  border-color: var(--ac)
}

.red-insp .lbl {
  margin: 14px 0 7px
}

.rbtns {
  flex-wrap: wrap;
  margin: 10px 0
}

.rbtns .btn {
  flex: 1 1 auto
}

.rchips button {
  height: 28px;
  font-size: 12px
}

.rsw {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center
}

.rsw button {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--line2)
}

.rsw button.on {
  outline: 2px solid var(--ac);
  outline-offset: 2px
}

.rpick {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  overflow: hidden;
  background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red);
  cursor: pointer;
  position: relative
}

.rpick input {
  opacity: 0;
  position: absolute;
  inset: 0;
  cursor: pointer
}

.rinfo {
  font-size: 12.5px;
  color: var(--tx2);
  margin-bottom: 10px
}

.rinfo .warn {
  color: var(--bad)
}

.rquick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px
}

.rtips {
  margin-top: 14px;
  line-height: 1.7
}

.rtpl {
  display: grid;
  gap: 5px;
  margin-top: 4px
}

.rtpl button {
  text-align: left;
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--sur1);
  display: flex;
  flex-direction: column;
  gap: 2px
}

.rtpl button:hover {
  border-color: var(--ac)
}

.rtpl b {
  font-size: 12.5px
}

.rtpl span {
  font-size: 11px;
  color: var(--dim)
}

.rvol {
  list-style: none;
  display: grid;
  gap: 5px
}

.rvol li {
  display: flex;
  justify-content: space-between;
  padding: 7px 9px;
  border-radius: 8px;
  background: var(--sur1);
  border: 1px solid var(--line);
  font-size: 12.5px;
  cursor: pointer
}

.rvol em {
  font: 11px var(--mono);
  font-style: normal;
  color: var(--dim)
}

#reExpM {
  z-index: 40
}

#reExpM.busy [data-res] {
  opacity: .5;
  pointer-events: none
}

@media (max-width: 900px) {
  .red {
    grid-template-rows: auto auto auto auto auto
  }

  .red-main {
    grid-template-columns: 1fr;
    display: contents
  }

  .red-stage {
    height: 46dvh;
    order: 0
  }

  .red-bin {
    display: none;
    position: fixed;
    left: 8px;
    right: 8px;
    top: 56px;
    max-height: 50dvh;
    z-index: 35;
    background: var(--panel);
    border: 1px solid var(--line2);
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .6)
  }

  .binopen .red-bin {
    display: block
  }

  .red-media {
    grid-template-columns: repeat(5, 1fr)
  }

  .red-mtog {
    display: block
  }

  .red-insp {
    border-left: 0;
    border-top: 1px solid var(--line);
    max-height: none
  }

  .red {
    overflow-y: auto;
    display: flex;
    flex-direction: column
  }

  .red-top {
    position: sticky;
    top: 0;
    z-index: 5;
    background: var(--bg)
  }

  .red-tools {
    order: 2
  }

  .red-tl {
    order: 3
  }

  .red-insp {
    order: 4
  }

  .red-lanes .hint {
    display: none
  }

  #reNew {
    display: none
  }
}

/* ---------- photo set filmstrip ---------- */
.strip {
  position: absolute;
  left: 14px;
  right: 360px;
  bottom: 14px;
  padding: 8px;
  border-radius: 12px;
  background: rgba(var(--glass-rgb), .85);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  z-index: 3
}

.strip[hidden] {
  display: none
}

.strip-h {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 12px;
  margin: 0 2px 6px
}

.strip-h span {
  font: 11px var(--mono);
  color: var(--mut)
}

.strip-h .hint {
  margin-left: auto;
  font-family: var(--sans)
}

.strip-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin
}

.sth {
  position: relative;
  flex: 0 0 54px;
  height: 54px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  background: var(--inp);
  cursor: pointer
}

.sth.on {
  border-color: var(--ac)
}

.sth.bad {
  opacity: .4
}

.sth img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none
}

.sth .ld {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--sur1), var(--sur2), var(--sur1));
  background-size: 200% 100%;
  animation: sthld 1.2s linear infinite
}

@keyframes sthld {
  to {
    background-position: -200% 0
  }
}

.sth em {
  position: absolute;
  left: 3px;
  bottom: 2px;
  font-style: normal;
  font-size: 10px;
  color: var(--ac2);
  text-shadow: 0 1px 2px #000
}

.sth button {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .65);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  display: none
}

.sth:hover button {
  display: block
}

.sth.add {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--line2);
  color: var(--mut);
  font-size: 20px
}

.strip-act {
  display: flex;
  gap: 6px;
  margin-top: 8px
}

.strip-act .btn {
  height: 28px;
  font-size: 12px;
  padding: 0 10px
}

.stage.has-set .histo {
  bottom: 166px
}

@media (max-width: 900px) {
  .strip {
    left: 8px;
    right: 8px;
    top: 8px;
    bottom: auto
  }

  .sth {
    flex-basis: 46px;
    height: 46px
  }

  .sth button {
    display: block
  }

  .strip-h .hint {
    display: none
  }

  .strip-act {
    overflow-x: auto
  }
}

.red-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(var(--ac-rgb), .12);
  border: 1px solid rgba(var(--ac-rgb), .4);
  font-size: 12.5px;
  color: var(--tx2)
}

.red-banner[hidden] {
  display: none
}

.rquick .rwide {
  grid-column: 1 / -1
}

.rsort {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 10px 0
}

.rsi {
  position: relative;
  aspect-ratio: 3 / 4;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  background: var(--inp);
  cursor: pointer
}

.rsi img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: .38;
  transition: opacity .15s
}

.rsi.on {
  border-color: var(--ac)
}

.rsi.on img {
  opacity: 1
}

.rsi i,
.rsi em {
  position: absolute;
  top: 4px;
  font-style: normal;
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 6px;
  background: rgba(0, 0, 0, .6);
  color: #fff
}

.rsi i {
  left: 4px
}

.rsi em {
  right: 4px;
  background: #ffe14d;
  color: #000
}

.rsi em.v {
  background: rgba(0, 0, 0, .6);
  color: #fff;
  top: auto;
  bottom: 4px
}

.rsi b {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: none;
  place-items: center;
  font-size: 12px;
  background: var(--ac);
  color: #fff
}

.rsi.on b {
  display: grid
}

.rsi small {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 4px 4px;
  font-size: 10px;
  line-height: 1.25;
  text-align: left;
  color: #ffd2a8;
  background: linear-gradient(transparent, rgba(0, 0, 0, .8))
}

.rsi.on small {
  padding-right: 26px
}

.swatches button.none {
  background: linear-gradient(135deg, transparent 45%, var(--mut) 45%, var(--mut) 55%, transparent 55%), var(--inp)
}
