/* Bhesh — the app shell.
 *
 * The look cards are rendered server-side on cream paper and cannot change: they
 * are PIL images, they get shared publicly, and they are the product. The shell
 * is a white room around them, matching the landing page: black pill actions,
 * the card's own brass as the accent, serif italics for emphasis. The "white
 * edition" block at the end of this file carries most of that look.
 */

/* 60 / 30 / 10.
   60  --bg            the ground. Every screen sits on it and nothing else does.
   30  --surface(-2)   the raised things: panels, rows, fields -- and --paper,
                       which is the look card's own cream and the reason this
                       palette exists at all.
   10  --brand + --go  the only two colours that carry meaning.

   THE TEN IS SPLIT, AND THAT IS THE POINT.
   Brass used to be brand and button at once, so a label, a focus ring, a
   progress bar and the one thing we wanted tapped were all the same colour and
   none of them led. Brass now means "this is Bhesh" -- it is the card's own
   colour, printed on every card anyone shares. --go means "do this", and it
   appears on nothing else. A second accent only works while it stays rare.

   Jade against brass rather than a brighter amber: warm and cool read apart at a
   glance, where two warms have to be compared. Measured on this ground -- 6.8:1
   against the page, 6.5:1 under the dark label it carries. Never as text on the
   cream card, where it falls to 2.5:1; the card stays brass. */
:root {
  /* the room: white, like the landing page (approved 3 Oct 2026) */
  --bg:        #FFFFFF;
  --surface:   #F7F5F0;   /* warm paper for raised things */
  --surface-2: #EFECE5;
  --line:      #E9E5DD;
  --line-firm: #D8D2C6;

  /* the ink */
  --paper:     #F3F1EC;   /* the cards' own ground — never changes */
  --ink:       #0E0E0F;
  --soft:      #6B6760;
  --dim:       #767066;   /* 4.9:1 on white (was #A39E95, 2.66:1) */
  --brand:     #A8743A;   /* the card's brass, deepened for white */
  --brand-dk:  #8A5A2B;   /* as printed on the card */
  --go:        #1F4FD8;   /* actions: one bold royal blue on a neutral page (founder, 13 Nov 2026); 6.3:1 with white */
  --go-dk:     #1838A8;   /* its pressed/hover fill */
  --on-go:     #FFFFFF;   /* the label that sits on --go */
  --ok:        #0B8F6C;   /* success only */
  --bad:       #B3261E;   /* errors only */
  --serif: "Newsreader", ui-serif, Georgia, serif;
  --out: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);

  /* --accent is what 32 rules already say. It stays as the brand alias so this
     split is one line of meaning, not a rename across the stylesheet. */
  --accent:    var(--brand-dk);   /* brand as text or under white text needs 4.5:1; --brand is 4.0 */
  --accent-dk: var(--brand-dk);

  /* Theme tokens for what used to be hardcoded white: fields and raised panels,
     text on an ink pill, the frosted top bar. Light values here; dark below. */
  --field:     #FFFFFF;
  --on-ink:    #FFFFFF;
  --glass:     rgba(255,255,255,.84);
  --text-2:    #24211C;
  --hero-top:  #F7EFE2;
  --shimmer:   #F8F6F1;
  --on-ink-soft:  #B5AFA5;
  --on-ink-brand: #E0B277;
  color-scheme: light;

  --pad: 24px;
  --ease: cubic-bezier(.2, .7, .3, 1);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* A single display face, used only for headings and numbers. Body stays on the
   system stack: this runs on mid-range Android over Indian mobile data, and a
   second webfont for body text is weight the product cannot justify. */
h1, h2, .count b, .ppct, .phero, .look-n {
  font-family: "Bricolage Grotesque", -apple-system, sans-serif;
  font-variation-settings: "wdth" 96, "opsz" 40;
}

#app { min-height: 100dvh; display: flex; flex-direction: column; }

.screen { display: none; flex: 1; flex-direction: column; padding: var(--pad); }
.screen.on { display: flex; }

/* --- type ---------------------------------------------------------------- */

.brand {
  font-size: 14px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent); font-weight: 700;
}
/* Inside the app a section label sits directly on its content (a card, the
   photo roll, the retailer chips); without room under it the label reads as
   part of the thing below. The entry screens follow it with an h1 that already
   has its own top margin, so they are left alone. */
#s-main .brand { margin-bottom: 16px; }
h1 {
  font-size: 32px; line-height: 1.12; margin: 24px 0 12px;
  letter-spacing: -.03em; font-weight: 700;
}
h2 { font-size: 24px; margin: 0 0 4px; letter-spacing: -.02em; font-weight: 700; }
.sub { color: var(--soft); line-height: 1.5; margin: 0 0 24px; font-size: 16px; }
.label {
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--soft); font-weight: 700;
}

/* --- controls ------------------------------------------------------------ */

/* Matched by what a field is not, rather than by a type it has to remember to
   declare. `input[type=text]` does not match `<input>` with no type attribute at
   all -- the browser treats that as text but the selector does not -- which left
   the Ask screen's refine box completely unstyled: a white system box in a dark
   app, the one thing on screen that looked like a form rather than a product. */
input:not([type=file]):not([type=checkbox]):not([type=radio]):not([type=submit]) {
  width: 100%; padding: 16px 16px; font-size: 18px;
  border: 1.5px solid var(--line-firm); border-radius: 12px;
  background: var(--surface); color: var(--ink); font-family: inherit;
  transition: border-color .18s var(--ease), background .18s var(--ease);
}
input::placeholder { color: var(--dim); }
input:focus {
  outline: none; border-color: var(--accent); background: var(--surface-2);
}

.phone-row { display: flex; gap: 8px; align-items: stretch; }
.cc {
  display: flex; align-items: center; padding: 0 16px; font-size: 18px;
  border: 1.5px solid var(--line-firm); border-radius: 12px;
  background: var(--surface); color: var(--soft); flex: none;
}

/* The filled button is the only thing on a screen wearing --go, which is what
   makes it the thing your eye lands on. Ghost buttons stay neutral and pick up
   brass on hover: a second filled button beside this one would put two answers
   where the screen is asking for one. */
.btn {
  width: 100%; padding: 16px; font-size: 16px; font-weight: 650;
  border: none; border-radius: 12px; background: var(--go); color: var(--on-go);
  font-family: inherit; cursor: pointer; margin-top: 16px;
  transition: transform .12s var(--ease), filter .18s var(--ease);
}
.btn:hover:not(:disabled) { filter: brightness(1.08); }
.btn:active:not(:disabled) { transform: scale(.985); }
.btn:disabled { opacity: .3; background: var(--surface-2); color: var(--soft); }
.btn.ghost {
  background: none; color: var(--ink); border: 1.5px solid var(--line-firm);
}
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn.small { width: auto; padding: 12px 16px; font-size: 14px; margin: 0; }

.linkish {
  background: none; border: none; color: var(--accent); font-family: inherit;
  font-size: 14px; padding: 12px 0; cursor: pointer; text-align: left;
}

.err { color: var(--bad); font-size: 14px; min-height: 20px; margin-top: 12px; }
.note {
  font-size: 14px; color: var(--soft); background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 12px;
  margin-top: 16px; line-height: 1.45;
}

/* --- otp ----------------------------------------------------------------- */

.otp {
  letter-spacing: .55em; font-size: 24px; text-align: center;
  padding-left: .55em;
}

/* --- upload -------------------------------------------------------------- */

.drop {
  border: 1.5px dashed var(--line-firm); border-radius: 16px; padding: 32px 24px;
  text-align: center; background: var(--surface); cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.drop:hover { border-color: var(--accent); background: var(--surface-2); }
.drop .big { font-size: 32px; margin-bottom: 12px; }
.drop .t { font-weight: 650; margin-bottom: 4px; }
.drop .s { color: var(--soft); font-size: 14px; line-height: 1.45; }

.thumbs {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px;
}
.thumbs img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 7px; }

.tips { margin: 24px 0 0; padding: 0; list-style: none; }
/* Block, not flex: as a flex row the bold lead-in became its own column and
   "Filter nahi" wrapped inside it, knocking the dash and the rest out of line. */
.tips li {
  color: var(--soft); font-size: 14px;
  padding: 8px 0; line-height: 1.45;
}
.tips li b { color: var(--ink); font-weight: 650; }

/* --- progress ------------------------------------------------------------ */

.steps { margin-top: 32px; }
.step {
  display: flex; align-items: center; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid var(--line); color: var(--soft);
}
.step:last-child { border-bottom: none; }
.step.on, .step.done { color: var(--ink); }
.dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--line); flex: none;
}
.step.on .dot { background: var(--accent); animation: pulse 1.1s infinite; }
.step.done .dot { background: var(--ink); }
@keyframes pulse { 50% { opacity: .3; } }
.step .n { margin-left: auto; font-size: 14px; font-variant-numeric: tabular-nums; }

.bar { height: 3px; background: var(--surface-2); border-radius: 2px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--accent); width: 0; transition: width .3s; }

/* --- wardrobe ------------------------------------------------------------ */

.counts { display: flex; gap: 8px; margin: 16px 0 24px; }
.count {
  flex: 1; background: var(--surface); border: 1px solid var(--line);
  border-radius: 11px; padding: 12px 8px; text-align: center;
  font: inherit; color: inherit; cursor: pointer;
  transition: border-color .16s var(--ease), transform .12s var(--ease);
}
button.count:hover { border-color: var(--accent); }
button.count:active { transform: scale(.97); }
.count b { font-size: 24px; letter-spacing: -.03em; }
.count b { display: block; font-size: 24px; letter-spacing: -.02em; }
.count span { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.item {
  background: var(--surface); border: 1px solid var(--line); border-radius: 11px;
  padding: 12px; display: flex; align-items: center; gap: 12px;
  transition: border-color .18s var(--ease);
}
.item:hover { border-color: var(--line-firm); }
.swatch { width: 26px; height: 26px; border-radius: 6px; border: 1px solid var(--line); flex: none; }
/* the real garment photo where we have one, the colour square behind it where we don't */
.item .swatch { width: 38px; height: 38px; border-radius: 9px; overflow: hidden; display: grid; place-items: center; }
.item .swatch img { width: 100%; height: 100%; object-fit: contain; display: block; }
.swap-pic { float: right; width: 54px; height: 54px; object-fit: contain; margin: 0 0 0 12px; border-radius: 8px; background: var(--paper); }
.item .n { font-size: 14px; line-height: 1.3; text-transform: capitalize; }
.item .u { font-size: 12px; color: var(--soft); }
/* Provenance, deliberately quiet: it matters when a garment looks wrong and is
   noise the rest of the time, so it sits below the name in the dimmest ink on
   the screen and never competes with it. */
.item .src {
  font-size: 12px; color: var(--dim); margin-top: 4px;
  letter-spacing: .02em; font-variant-numeric: tabular-nums;
}

/* "Not right?" — on every garment, not only the ones the model doubted.
   Quiet until wanted: it is the answer to a question the person is already
   asking when they look at a wrong name, and clutter on the forty that are
   right. It sits on the row rather than inside the name so a long label cannot
   push it out of reach. */
.item { position: relative; }
.item .fix {
  align-self: center; flex: none; margin-left: auto;
  background: none; border: none; font-family: inherit; cursor: pointer;
  font-size: 12px; color: var(--soft); padding: 8px 2px 8px 12px;
  white-space: nowrap; transition: color .16s var(--ease);
}
.item .fix:hover { color: var(--accent); }

.fixbox {
  grid-column: 1 / -1;
  background: var(--surface-2); border: 1px solid var(--line-firm);
  border-radius: 11px; padding: 16px; margin: -4px 0 4px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
}
.fixbox label { font-size: 14px; color: var(--soft); }

/* The type picker, which is a menu rather than a <select>.
   A native dropdown is one level deep and cannot branch, and the denim cuts
   need a branch: Jeans carries an arrow, and the arrow opens the cuts beside
   it. Everything below exists to make that branch behave the same under a
   mouse and under a thumb. */
.pick { position: relative; flex: 1 1 170px; min-width: 0; }
.pick-btn {
  width: 100%; display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; font-size: 14px; font-family: inherit; text-align: left;
  color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--line-firm); border-radius: 9px; cursor: pointer;
}
.pick-btn .pick-now { flex: 1; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; }
.pick-btn i { font-style: normal; color: var(--soft); font-size: 12px; }
.pick-btn:focus-visible { outline: none; border-color: var(--accent); }

.pick-menu {
  position: absolute; z-index: 40; top: calc(100% + 5px); left: 0;
  min-width: 100%; padding: 4px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--line-firm);
  box-shadow: 0 18px 40px -12px rgba(40,30,15,.22);
  max-height: 300px; overflow-y: auto;
}
.mi {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 8px 12px; border: 0; border-radius: 7px; cursor: pointer;
  font-family: inherit; font-size: 14px; text-align: left;
  color: var(--ink); background: none; text-transform: capitalize;
}
.mi i { margin-left: auto; font-style: normal; color: var(--soft); font-size: 14px; }
.mi:hover, .mi:focus-visible { background: var(--surface); outline: none; }

/* A branch and the panel it opens.
   The panel is `position: fixed`, and that is the fix rather than a preference.
   It was absolutely positioned inside .pick-menu, which scrolls -- and an
   overflow ancestor clips an absolutely positioned descendant. Hovering Jeans
   was opening the branch the whole time; the browser was drawing it outside the
   scrolling box and clipping every pixel of it away. A fixed element's
   containing block is the viewport, so no overflow ancestor can clip it, and
   the menu keeps its scroll for the twenty-odd tops.
   Its coordinates come from JS, since fixed means the row's position no longer
   places it. It stays a DOM child of the row so travelling from Jeans across to
   Bootcut never leaves the element that keeps it open. */
.mi-sub { position: relative; }
/* Styled on its own selector, not as a descendant of the row. It is moved onto
   <body> when it opens, and a descendant selector stops matching the moment it
   moves -- which took its position, its width and its background with it and
   left a full-width block across the foot of the page. */
.submenu {
  display: none; position: fixed; z-index: 60;
  width: max-content; min-width: 156px; padding: 4px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--line-firm);
  box-shadow: 0 18px 40px -12px rgba(40,30,15,.22);
}
.submenu .mi { text-transform: none; }
/* The panel is moved onto <body>, so it is no longer a descendant of the row
   and cannot be shown by a selector that walks down from it. It carries its own
   class instead. */
.submenu.open { display: block; }
.mi-sub.open > .has-sub { background: var(--surface); }
.fixbox select {
  flex: 1 1 130px; min-width: 0;
  padding: 8px 12px; font-size: 14px; font-family: inherit;
  color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--line-firm); border-radius: 9px;
  text-transform: capitalize;
}
.fixbox select:focus { outline: none; border-color: var(--accent); }
.fixrow { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 2px; }
.fixerr { font-size: 12px; color: var(--bad); }

/* The photo roll: what the person put in, under what the app made of it.
   Two columns like the garment grid above it, so the screen reads as one list
   that changes from output to input rather than as a second screen bolted on.
   The photographs are somebody's own mirror selfies, so they are shown plainly
   -- no halo, no lift. That treatment belongs to the cards alone. */
.roll { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.shot {
  margin: 0; background: var(--surface); position: relative;
  border: 1px solid var(--line); border-radius: 11px; overflow: hidden;
}
/* The number a look card means when it says FROM PHOTO 6.
   On the picture rather than beside it, because it has to survive being
   scrolled past at speed while someone hunts for one specific shot. Its own
   dark plate under it: these are mirror selfies, and a number set straight onto
   an unknown photograph is legible over half of them at best. */
.shot .no {
  position: absolute; top: 7px; left: 7px;
  min-width: 21px; height: 21px; padding: 0 8px;
  display: flex; align-items: center; justify-content: center;
  background: var(--glass); color: var(--ink);
  border-radius: 6px; font-size: 12px; font-weight: 700;
  font-variant-numeric: tabular-nums; letter-spacing: .02em;
  backdrop-filter: blur(3px);
}
.shot.empty .no { background: var(--glass); color: var(--dim); }
.shot img {
  display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  background: var(--surface-2);
}
.shot figcaption {
  padding: 8px 12px 12px; font-size: 12px; line-height: 1.35;
  color: var(--soft); text-transform: capitalize;
}
/* The count is the thing being compared photo to photo, so it carries the
   weight and the brass; the names beside it are the evidence for it. */
.shot figcaption b {
  color: var(--accent); font-size: 14px; margin-right: 4px;
  font-variant-numeric: tabular-nums;
}
/* A photo nothing was read from is the one worth replacing, so it says so
   rather than sitting in the grid looking like the others. */
.shot.empty { border-style: dashed; }
.shot.empty img { opacity: .45; }
.shot.empty figcaption { text-transform: none; color: var(--dim); }
.shot.empty figcaption b { color: var(--dim); }

.q {
  background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 11px; padding: 16px; margin-bottom: 12px;
}
.q .t { font-weight: 650; margin-bottom: 12px; line-height: 1.35; }
/* Only the garment name is a name; capitalising the whole sentence turned
   "white checked jacket ka rang kaunsa hai?" into title case and it read wrong. */
.q .t em { font-style: normal; text-transform: capitalize; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt {
  padding: 8px 16px; border: 1.5px solid var(--line-firm); border-radius: 999px;
  background: var(--surface-2); font-size: 14px; font-family: inherit;
  cursor: pointer; text-transform: capitalize; color: var(--ink);
  transition: border-color .15s var(--ease), color .15s var(--ease);
}
.opt:hover { border-color: var(--accent); color: var(--accent); }

/* --- cards --------------------------------------------------------------- */

.deck { display: flex; align-items: flex-start; overflow-x: auto; gap: 12px; scroll-snap-type: x mandatory;
        margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad) 8px; }
.deck::-webkit-scrollbar { display: none; }
.look { flex: 0 0 84%; scroll-snap-align: center; }
/* THE SIGNATURE.
   Cards arrive on cream and cannot be restyled, so the shell treats them as lit
   objects instead of fighting them: a warm halo, a hairline of the card's own
   brass, and a lift on hover. On a dark ground a cream card already glows; this
   just admits it. Nothing else on the page is allowed this treatment. */
.look img {
  width: 100%; border-radius: 14px; display: block;
  border: 1px solid rgba(0,0,0,.05);
  background: var(--paper);
  box-shadow: 0 30px 60px -28px rgba(60,40,15,.38), 0 2px 6px rgba(60,40,15,.06);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.look:hover img {
  transform: translateY(-4px);
  box-shadow: 0 40px 70px -28px rgba(60,40,15,.45), 0 2px 6px rgba(60,40,15,.06);
}
#today-img {
  box-shadow: 0 30px 60px -28px rgba(60,40,15,.38), 0 2px 6px rgba(60,40,15,.06);
  border-color: rgba(0,0,0,.05) !important;
}
.look .cap { font-size: 14px; color: var(--soft); margin-top: 8px; line-height: 1.4; }

.today {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 24px; margin-bottom: 16px;
}
.today .line { font-size: 16px; line-height: 1.5; }
/* The piece list is uppercase at 11px with .16em of letter-spacing, and on a
   four-garment outfit it wraps to two or three lines. .label sets no
   line-height at all, so those lines inherited the body's and closed up against
   each other -- wide tracking needs the opposite treatment, more leading, not
   less, or the block reads as one grey mass.
   The rule is scoped to this card, so the same class stays compact everywhere
   it is a single line and does not need the room. */
.today .label { line-height: 1.95; }
/* A hairline instead of guessing at a gap: the sentence and the list are two
   different things -- one is the suggestion, the other is its ingredients --
   and separating them by space alone needed so much of it that the card grew a
   hole in the middle. */
.today .label {
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line);
}


.spacer { flex: 1; }
.hide { display: none !important; }

/* --- style meter --------------------------------------------------------- */

.phero { color: var(--accent); text-transform: capitalize; }

.pbar { margin-bottom: 24px; }
.ptop { display: flex; justify-content: baseline; align-items: baseline; gap: 8px; }
.pname {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 700; flex: 1;
}
.ppct { font-size: 20px; font-weight: 650; font-variant-numeric: tabular-nums; }
.ptrack {
  height: 8px; background: var(--surface-2); border-radius: 4px;
  overflow: hidden; margin: 8px 0 8px;
}
/* The one orchestrated moment: the bars grow from nothing when the meter is
   first seen. It is the screen people screenshot, so it earns the motion. */
.ptrack > i {
  display: block; height: 100%; background: var(--soft);
  width: 0; transition: width .9s var(--ease);
}
.pbar:first-child .ptrack > i { background: var(--accent); }
.pbar:first-child .ptrack > i { background: var(--accent); }
.pev { font-size: 14px; color: var(--soft); text-transform: capitalize; line-height: 1.4; }

/* --- upload feedback ------------------------------------------------------ */

.picknote {
  font-size: 14px; line-height: 1.45; margin-top: 16px; min-height: 20px;
  color: var(--soft);
}
.picknote.warn { color: var(--bad); }
.picknote.ok { color: var(--accent); }

/* --- camera --------------------------------------------------------------- */

.or {
  text-align: center; color: var(--soft); font-size: 14px; margin: 16px 0 12px;
  letter-spacing: .08em; text-transform: uppercase;
}

.screen.cam { padding: 0; background: #0d0d0e; }
.camwrap { position: relative; flex: 1; overflow: hidden; }
#cam { width: 100%; height: 100%; object-fit: cover; display: block; }

.camguide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  color: #fff; pointer-events: none;
}
/* A pill, not bare text. These labels land on whatever the room happens to be --
   a dark shirt swallowed the feet label completely on the first try, and that is
   the one label this screen exists for. */
.camlabel {
  position: absolute; left: 0; right: 0; text-align: center;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  pointer-events: none; font-weight: 700;
}
.camlabel span {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  background: rgba(13, 13, 14, .62); color: rgba(255,255,255,.95);
}
.camlabel.top { top: 2%; }
.camlabel.feet { top: 79%; }
.camlabel.feet span { background: var(--accent); color: #fff; }

.camtip {
  position: absolute; left: 16px; right: 16px; bottom: 14px;
  color: #fff; font-size: 14px; line-height: 1.45; text-align: center;
  text-shadow: 0 1px 4px rgba(0,0,0,.7);
}

.camrow {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
  background: #0d0d0e;
}
.camrow .linkish { color: #cfcbc4; font-size: 14px; }

.shutter {
  width: 66px; height: 66px; border-radius: 50%;
  background: #fff; border: 4px solid rgba(255,255,255,.35);
  cursor: pointer; flex: none;
}
.shutter:active { transform: scale(.94); }
.shutter:disabled { opacity: .4; }

.camerr { color: #e2897c; font-size: 14px; padding: 0 16px; text-align: center; }
#cam-thumbs { padding: 0 16px 12px; }

/* --- occasion chips + share ----------------------------------------------- */

.chips {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 12px;
  margin: 0 calc(-1 * var(--pad)); padding-left: var(--pad); padding-right: var(--pad);
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 8px 16px; border-radius: 999px; font-size: 14px;
  border: 1.5px solid var(--line-firm); background: var(--surface);
  color: var(--soft); font-family: inherit; cursor: pointer; white-space: nowrap;
  transition: all .16s var(--ease);
}
.chip:hover { color: var(--ink); border-color: var(--soft); }
.chip.on {
  background: var(--ink); color: var(--on-ink); border-color: var(--ink);
  font-weight: 650;
}
.chip.locked { color: var(--soft); }

.look .row { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.look .cap { flex: 1; margin-top: 0; }
.share {
  flex: none; padding: 8px 16px; border-radius: 999px; font-size: 14px;
  border: 1.5px solid var(--accent); background: var(--accent); color: #fff;
  font-family: inherit; font-weight: 650; cursor: pointer;
  transition: background .16s var(--ease), color .16s var(--ease);
}
.share:hover { filter: brightness(1.08); }
.share.done { background: none; color: var(--accent); }
.share.done { border-color: var(--line); color: var(--soft); }

.unlocknote {
  background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--accent); border-radius: 11px;
  padding: 12px 16px; font-size: 14px; line-height: 1.45; margin-bottom: 16px;
}
.ubar { height: 6px; border-radius: 3px; background: var(--line); margin-top: 12px; overflow: hidden; }
.ubar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }

/* --- wardrobe gaps -------------------------------------------------------- */

.gap {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 11px;
  padding: 12px; margin-bottom: 8px;
  transition: border-color .18s var(--ease);
}
.gap:hover { border-color: var(--line-firm); }
.gap .sw { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); flex: none; }
.gap .txt { flex: 1; min-width: 0; }
.gap .n { font-size: 14px; text-transform: capitalize; line-height: 1.25; }
.gap .g { font-size: 14px; color: var(--accent); font-weight: 650; margin-top: 2px; }
/* Outlined, not filled. Four solid dark pills stacked made the panel read as an
   ad block, which is the opposite of what this feature is -- the number beside
   each garment is the argument, and the button should not shout over it. Same
   treatment as the share button, so an outbound link looks like every other
   secondary action in the app. */
.gap a {
  flex: none; padding: 8px 16px; border-radius: 999px; font-size: 14px;
  border: 1.5px solid var(--accent); color: var(--accent);
  background: none; text-decoration: none; font-weight: 650; white-space: nowrap;
}
.gap .g b { color: var(--accent); font-weight: 700; }
/* A second shop for this one pick (Neeman's on shoes): quieter than Find it. */
.gap a.alt { padding: 8px 12px; border-color: var(--line-firm); color: inherit; font-weight: 600; }

/* The tab bar sits over the end of this panel, so the last line needs room. */
#gaps { padding-bottom: 16px; }

/* The rest of the list on Premium: a row shaped like the others, so it reads as
   "there is more here", not as an advert. */
.gap.lock { width: 100%; font: inherit; color: var(--ink); cursor: pointer; text-align: left; border-style: dashed; }
.gap.lock .g { color: var(--soft); font-weight: 500; }
.gap.lock .n { text-transform: none; }

/* --- check before you buy -------------------------------------------------- */

.bc-box { display: block; }
.bc-box .btn { width: 100%; }
.bc-left { font-size: 12px; margin: 12px 0 0; }
#bcheck { padding-bottom: 16px; }
.bc-res { background: var(--surface); border: 1px solid var(--line); border-radius: 11px; padding: 16px; margin-top: 12px;
  animation: rise .4s var(--ease) both; }
.bc-res .hd { display: flex; align-items: center; gap: 12px; }
.bc-res .sw { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); flex: none; }
.bc-res .n { font-size: 14px; text-transform: capitalize; }
.bc-res .v { font-size: 18px; font-weight: 700; margin-top: 2px; }
.bc-res .v.good { color: var(--accent); }
.bc-res p { font-size: 14px; line-height: 1.45; margin: 12px 0 0; }
.bc-res .alt { border-top: 1px solid var(--line); padding-top: 12px; }
.bc-or { font-size: 12px; margin: 12px 0 8px; }
.bc-read { font-size: 14px; margin: 16px 0 0; }
.bc-read b { text-transform: capitalize; }
.bc-cap .n { text-transform: none; font-weight: 700; margin: 0; }
.bc-cap .btn { width: 100%; margin-top: 12px; }
.bc-cap .lock-trust { font-size: 12px; color: var(--soft); }
.bc-cap .lock-msg { font-size: 14px; color: var(--soft); margin: 8px 0 0; }
.bc-cap .lock-msg:empty { display: none; }
.bc-res .row { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.bc-res .row a, .bc-res .row button {
  flex: none; padding: 8px 16px; border-radius: 999px; font-size: 14px; font-family: inherit;
  border: 1.5px solid var(--accent); color: var(--accent); background: none; text-decoration: none; font-weight: 650; cursor: pointer;
}


/* --- motion --------------------------------------------------------------- */

/* Content rises in on arrival, in the order it is read. 55ms apart is enough to
   feel sequenced and not enough to feel slow. */
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
.screen.on > * { animation: rise .42s var(--ease) both; }
.screen.on > *:nth-child(1) { animation-delay: .02s; }
.screen.on > *:nth-child(2) { animation-delay: .07s; }
.screen.on > *:nth-child(3) { animation-delay: .12s; }
.screen.on > *:nth-child(4) { animation-delay: .17s; }
.screen.on > *:nth-child(5) { animation-delay: .22s; }

/* Cards float up one after another as each reaches the screen, like prints being
   laid out on a table.

   WHY AN OBSERVER AND NOT A DELAY ON LOAD
   This used to be `animation: rise` with nth-child delays, every card firing
   when the deck rendered. Twelve cards arrive at once and nine of them are below
   the fold, so their animation ran and finished while they were still off
   screen -- by the time you scrolled down they had already landed and there was
   nothing left to see. The stagger was real and almost entirely invisible.
   Each card now waits for its own turn on screen instead of for the clock.

   The hidden state is scoped to .js-anim, which app.js sets. If that script
   never runs the deck renders plainly visible, because a scripting failure must
   not leave someone staring at an empty page where their outfits should be. */
.js-anim .look {
  opacity: 0;
  transform: translateY(18px) scale(.985);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
  transition-delay: var(--in-delay, 0s);
}
.js-anim .look.in { opacity: 1; transform: none; }

.gap, .item, .q { animation: rise .4s var(--ease) both; }
.gap:nth-child(2), .item:nth-child(2) { animation-delay: .05s; }
.gap:nth-child(3), .item:nth-child(3) { animation-delay: .10s; }
.gap:nth-child(4), .item:nth-child(4) { animation-delay: .15s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .ptrack > i { transition: none !important; }
}

/* --- desktop -------------------------------------------------------------- */

/* Below 900px this is a phone and the bottom tab bar is correct. Above it, a
   460px column centred in a 1400px window is a phone screenshot pretending to be
   a website, so the nav goes to a rail and the deck becomes a grid. */
@media (min-width: 900px) {
  :root { --pad: 48px; }

  .screen { max-width: 1240px; margin: 0 auto; width: 100%; }


  .grid { grid-template-columns: repeat(3, 1fr); }
  .counts { max-width: 640px; }
  h1 { font-size: 40px; }
}


/* --- plans ---------------------------------------------------------------- */

/* One quiet line, and only once the allowance is nearly gone. A counter shown
   from photo one is a nag about a limit weeks away. */
.planline {
  font-size: 14px; color: var(--soft); margin-top: 16px;
  display: flex; align-items: center; gap: 8px;
}
.planline b { color: var(--ink); font-weight: 650; }
.planline {
  flex-wrap: wrap; line-height: 1.5;
}
.planline button {
  background: none; border: none; color: var(--accent); font-family: inherit;
  font-size: 14px; font-weight: 650; cursor: pointer; padding: 0;
}
/* Only once the cap is actually reached. Before that this line is a counter and
   a quiet link; a filled button sitting beside "8 of 12 left" is a shop pushing
   at somebody who has not asked for anything. */
.planline button.hot {
  background: var(--go); color: var(--on-go);
  padding: 8px 16px; border-radius: 999px; white-space: nowrap;
  transition: filter .18s var(--ease);
}
.planline button.hot:hover { filter: brightness(1.08); }

/* The price anchor on the Premium card. Set in the brand, not in --go: it is a
   fact about the price, and --go belongs to the button underneath it. */
.anchor {
  font-size: 14px; color: var(--accent); font-weight: 650;
  margin: -2px 0 12px; letter-spacing: -.005em;
}

.plan {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 24px; margin-bottom: 12px;
}
.plan.up { border-color: var(--accent); background: var(--surface-2); }
.plan .top { display: flex; align-items: baseline; gap: 12px; margin-bottom: 4px; }
.plan .nm { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.plan .pr { font-size: 16px; color: var(--accent); font-weight: 650; }
.plan .pr small { color: var(--soft); font-weight: 400; }
.plan .pitch { font-size: 14px; color: var(--soft); margin: 2px 0 16px; }
.plan ul { list-style: none; margin: 0; padding: 0; }
.plan li {
  font-size: 14px; line-height: 1.45; color: var(--ink);
  padding: 8px 0 8px 24px; position: relative;
}
.plan li::before {
  content: ""; position: absolute; left: 2px; top: 13px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.plan .soon {
  margin-top: 16px; font-size: 14px; color: var(--soft);
  border-top: 1px solid var(--line); padding-top: 12px; line-height: 1.45;
}


/* ── Ask ─────────────────────────────────────────────────────────────────
   The answer is set on the card's own paper, not on the app's dark surface.
   Everywhere else in this app, paper means "this is about your clothes" --
   the look cards, the shared image. An answer about your wardrobe belongs on
   the same ground, and it reads as a note someone wrote rather than a chat
   bubble the machine emitted. */
/* The selected chip is styled by .chip.on with every other chip in the app. The
   one-off rule that used to sit here coloured the selected one only, which is
   why the rest looked like system buttons and nobody noticed the class was
   missing -- the screen looked half-designed rather than broken. */
#ask-refine { margin-bottom: 12px; }

.answer {
  background: var(--paper);
  color: var(--text-2);
  border-radius: 14px;
  padding: 24px 24px 16px;
  margin-top: 16px;
  line-height: 1.62;
  font-size: 16px;
  box-shadow: 0 1px 0 rgba(168,116,58,.25), 0 24px 50px -26px rgba(60,40,15,.4);
  animation: rise .42s cubic-bezier(.2,.7,.3,1) both;
}
.answer .occ {
  font-size: 12px; letter-spacing: .13em; text-transform: uppercase;
  color: #8A7C63; display: block; margin-bottom: 12px;
}
.answer p { margin: 0 0 12px; }
/* The asked-for outfit, drawn the same way as every card in Looks. */
.answer-card {
  display: block; width: 100%; max-width: 420px; margin-top: 16px;
  border-radius: 14px; border: 1px solid var(--line);
  animation: rise .42s cubic-bezier(.2,.7,.3,1) .08s both;
}
.answer p:last-child { margin-bottom: 0; }

.thinking { color: var(--soft); font-size: 14px; margin-top: 16px; }
.thinking::after { content: "…"; animation: dots 1.4s steps(4,end) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "…"; } }

/* --- sample wardrobe ------------------------------------------------------ */

/* The pieces the sample was read into, on the cards' own paper so they read as
   the same material as the looks below them. */
.demo-strip {
  display: flex; gap: 12px; overflow-x: auto; margin: 4px 0 24px;
  padding-bottom: 4px; scrollbar-width: none;
}
.demo-strip::-webkit-scrollbar { display: none; }
.dg {
  flex: 0 0 92px; margin: 0; background: var(--paper); border-radius: 12px;
  padding: 8px 8px 8px; text-align: center;
}
.dg img { display: block; width: 100%; height: 74px; object-fit: contain; }
.dg figcaption {
  font-size: 12px; line-height: 1.25; margin-top: 4px; color: #5B554B;
  text-transform: capitalize;
}
/* The deck's float-in hides a look until its own observer sees it; that
   observer never runs here, so the sample must not inherit the hidden state. */
.js-anim #demo-deck .look { opacity: 1; transform: none; }
.demo-cta { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.demo-cta .btn { margin-top: 4px; }
#try-demo { margin-top: 12px; }
@media (min-width: 900px) {
  .demo-strip { flex-wrap: wrap; overflow: visible; }
}

/* --- first-photo preview --------------------------------------------------- */
.preview {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 16px 16px; margin: 16px 0 8px;
  animation: rise .42s cubic-bezier(.2,.7,.3,1) both;
}
.pv-h {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700;
  color: var(--accent); margin-bottom: 12px;
}
.preview .chips { margin: 0; padding: 0; flex-wrap: wrap; overflow: visible; }
.preview .chip { cursor: default; text-transform: capitalize; }
.pv-s { font-size: 14px; color: var(--soft); margin-top: 12px; line-height: 1.5; }

/* --- one photo, before sign-in -------------------------------------------- */
label.btn { display: block; text-align: center; }
#try-result { margin-top: 16px; }

/* Guest looks: the deck sits inside the preview box, so it keeps to the box
   instead of running to the screen edges like the main deck does. */
.try-deck { margin: 12px -16px 4px; padding: 0 16px 8px; }
.try-deck .look { flex-basis: 78%; }
.look .cap.is-new { color: var(--accent); }
.try-note { margin: 0 0 12px; color: var(--accent); }
.preview .pv-h + .deck { margin-top: 12px; }
.preview .chips + .pv-h { margin-top: 16px; }

/* --- feedback sheet ----------------------------------------------------------
   Along the bottom, over the tabs, never over the whole app: someone can ignore
   it and keep going. */
.fb {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
  max-width: 460px; margin: 0 auto;
  background: var(--surface-2); border: 1px solid var(--line-firm); border-radius: 18px;
  padding: 16px 16px 16px; box-shadow: 0 30px 70px -20px rgba(40,30,15,.35);
  animation: rise .36s cubic-bezier(.2,.7,.3,1) both;
}
.fb-x {
  position: absolute; top: 4px; right: 4px; width: 48px; height: 48px;
  background: none; border: 0; color: var(--soft); font-size: 24px; cursor: pointer;
}
.fb-h { margin: 0 32px 12px 0; font-size: 16px; font-weight: 650; line-height: 1.35; color: var(--ink); }
.fb-stars { display: flex; gap: 2px; margin: 0 0 12px -8px; }
.fb-stars button {
  width: 44px; height: 44px; background: none; border: 0; cursor: pointer;
  font-size: 32px; color: var(--line-firm); transition: color .15s, transform .15s;
}
.fb-stars button[aria-pressed="true"] { color: var(--accent); }
.fb-stars button:active { transform: scale(.9); }
.fb-reasons { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.fb-reasons .chip { white-space: normal; text-align: left; }
.fb-reasons .chip[aria-pressed="true"] {
  background: var(--ink); color: var(--on-ink); border-color: var(--ink); font-weight: 650;
}
.fb textarea {
  width: 100%; resize: vertical; min-height: 54px; margin: 0 0 8px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line-firm);
  border-radius: 12px; padding: 12px 12px; font: inherit; font-size: 16px;
}
.fb textarea:focus { outline: none; border-color: var(--accent); }
.fb-err { margin: 0 0 8px; min-height: 0; font-size: 14px; color: var(--bad); }
.fb-err:empty { display: none; }
.fb .btn.small { width: 100%; }
.fb-thanks { margin: 0; font-size: 14px; color: var(--soft); }
.fb button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 10px; }

/* --- no-photo picker ----------------------------------------------------------
   Types as chips, colours as swatches: the two things a person knows about a
   shirt without looking. */
.pick {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 16px 16px; margin: 16px 0 8px;
  animation: rise .42s cubic-bezier(.2,.7,.3,1) both;
}
.pick-hint { margin: -4px 0 12px; }
.pick-row { margin: 0 0 16px; }
.pick-slot { font-size: 14px; font-weight: 650; color: var(--ink); margin: 0 0 8px; }
.pick .chips { margin: 0; padding: 0; flex-wrap: wrap; overflow: visible; gap: 8px; display: flex; }
.pick .chip { text-transform: capitalize; }
.pick-swatches { display: flex; flex-wrap: wrap; gap: 12px; margin: 12px 0 0; }
.pick-opt { display: flex; align-items: baseline; gap: 12px; margin: 12px 0 0; }
.pick-opt > span { flex: none; width: 52px; font-size: 12px; color: var(--soft); }
.pick-opt .chip { padding: 8px 12px; font-size: 12px; }
.pick-sw {
  width: 44px; height: 44px; border-radius: 999px; cursor: pointer; padding: 0;
  background: var(--sw); border: 2px solid var(--line-firm);
  box-shadow: inset 0 0 0 2px var(--surface);
  transition: transform .15s, border-color .15s;
}
.pick-sw[aria-pressed="true"] { border-color: var(--accent); transform: scale(1.08); }
.pick-sw:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Photo picker (19 Oct): garments on a paper tile, so dark clothes read in both themes. */
.pick .chip.has-img { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; }
.chip-img { width: 30px; height: 30px; object-fit: contain; border-radius: 8px; background: #EDEAE4; padding: 2px; flex: none; }
.pick-sw.ph {
  width: 68px; height: auto; border-radius: 14px; padding: 8px 4px 8px; background: #EDEAE4;
  border: 2px solid transparent; box-shadow: none; display: flex; flex-direction: column; align-items: center; gap: 2px;
  position: relative;
}
.pick-sw.ph img { width: 56px; height: 56px; object-fit: contain; display: block; }
.pick-sw.ph span { font-size: 12px; line-height: 1.2; color: #3A372F; text-transform: capitalize; text-align: center; }
.pick-sw.ph[aria-pressed="true"] { border-color: var(--accent); transform: none; box-shadow: 0 0 0 2px var(--accent); }
.pick-sw.ph[aria-pressed="true"]::after {
  content: "✓"; position: absolute; top: 4px; right: 4px; width: 18px; height: 18px; border-radius: 999px;
  background: var(--accent); color: #0E0F12; font-size: 12px; font-weight: 700; display: grid; place-items: center;
}
.pick-sw.ph.dot::before { content: ""; width: 44px; height: 44px; margin: 8px 0 8px; border-radius: 999px; background: var(--sw); }
.pick-more { display: block; margin: 12px 0 0; font-size: 14px; text-align: left; }
/* One swipeable line of colours, so the next section stays on screen. */
.pick-swatches.swipe {
  flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
  margin: 12px -16px 0; padding: 2px 16px 8px; scrollbar-width: none;
}
.pick-swatches.swipe::-webkit-scrollbar { display: none; }
.pick-swatches.swipe .pick-sw { flex: none; scroll-snap-align: start; }
.chip-n {
  min-width: 20px; height: 20px; padding: 0 8px; border-radius: 999px; margin-left: 2px;
  background: var(--accent); color: #0E0F12; font-size: 12px; font-weight: 700; display: inline-grid; place-items: center;
}
.pick-alltypes { border-style: dashed; color: var(--soft); }
/* The button rides the bottom of the screen while picking. */
.pick-bar {
  position: sticky; bottom: 0; z-index: 5; margin: 8px -16px -16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--surface) 78%, transparent); border-radius: 0 0 16px 16px;
}
.pick-bar .err:empty { display: none; }
.pick-bar .btn { margin: 0; width: 100%; }
/* Adding clothes, one tap from Today and the top of Wardrobe (19 Oct). */
.ward-pick { width: 100%; margin: 12px 0 16px; }
.ward-pick span { font-weight: 400; opacity: .7; }
.growcard {
  order: 4; margin: 0; padding: 16px 16px; border-radius: 16px;
  border: 1px solid var(--accent); background: color-mix(in srgb, var(--accent) 9%, transparent);
}
.growcard p { margin: 0 0 12px; font-size: 14px; line-height: 1.45; color: var(--soft); }
.growcard b { color: var(--ink); }
.growcard .btn { margin: 0; width: 100%; }
.pick-basics {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer;
  margin: 0 0 16px; padding: 12px; border-radius: 16px; border: 1px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--ink); font: inherit;
}
.pick-basics .pb-imgs { display: grid; grid-template-columns: repeat(3, 26px); gap: 4px; flex: none; }
.pick-basics .pb-imgs img { width: 26px; height: 26px; object-fit: contain; border-radius: 6px; background: #EDEAE4; padding: 1px; }
.pick-basics .pb-t { display: flex; flex-direction: column; gap: 2px; }
.pick-basics b { font-size: 16px; }
.pick-basics .pb-t span { font-size: 12px; color: var(--soft); line-height: 1.35; }
.pick-mine { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.pick-mine .chip { text-transform: capitalize; white-space: normal; text-align: left; max-width: 100%; }
#pick-result { margin-top: 16px; }
#pick-result .pv-h + .deck { margin-top: 12px; }

/* --- what signing in gets you ------------------------------------------------ */
.reward {
  margin: 16px 0 2px; padding: 16px 16px 12px; border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 9%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
}
.reward-h { font-size: 16px; font-weight: 700; color: var(--ink); margin: 0 0 8px; }
.reward ul { list-style: none; margin: 0; padding: 0; }
.reward li {
  position: relative; padding: 0 0 8px 24px; font-size: 14px; line-height: 1.45; color: var(--soft);
}
.reward li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700; }
.reward li strong { color: var(--ink); font-weight: 650; }
.reward-f { font-size: 12px; color: var(--dim); margin-top: 4px; line-height: 1.45; }
.reward-cta { margin-top: 16px; }
.reward-cta .linkish { display: block; margin-top: 4px; }

/* --- suggested outfits note ------------------------------------------------- */
.deck-note { display: block; font-size: 14px; color: var(--soft); margin-top: 8px; line-height: 1.4; font-weight: 400;
  /* Sits inside the h2: without these it takes the condensed display face and reads cramped. */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  letter-spacing: 0; font-variation-settings: normal; }

.st-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.st-tile { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 4px; border-radius: 10px; background: var(--surface); font-size: 12px; color: var(--soft); text-align: center; }
.st-pct { font-size: 20px; font-weight: 800; color: var(--accent); }
.st-s { font-size: 14px; color: var(--soft); line-height: 1.45; margin-bottom: 12px; }
.stp .stp-k { margin: 0 0 2px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.stp .stp-h { margin: 0 32px 12px 0; font-size: 20px; font-weight: 800; line-height: 1.2; color: var(--ink); }
.stp .btn { width: 100%; }
.st-end { height: 1px; }

/* --- morning push opt-in (Today tab) --- */
.plan-mine { margin: 4px 0 16px; padding: 16px 16px; border: 1px solid var(--line-firm); border-radius: 14px; background: var(--surface-2); }
.plan-mine .pm-h { font-size: 12px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); margin-bottom: 8px; }
.plan-mine .pm-r { display: flex; justify-content: space-between; font-size: 14px; padding: 4px 0; color: var(--soft); }
.plan-mine .pm-r b { color: var(--ink); font-weight: 700; }
.wornline { margin: 12px 0 0; font-size: 14px; line-height: 1.45; color: var(--soft); }
.namecard { margin-top: 16px; padding: 16px; border: 1px solid var(--line-firm); border-radius: 14px; background: var(--surface-2); }
.namecard .nc-h { font-size: 16px; font-weight: 750; color: var(--ink); margin: 0 0 4px; }
.namecard .nc-s { font-size: 14px; color: var(--soft); line-height: 1.45; margin: 0 0 12px; }
.namecard .nc-msg { font-size: 14px; color: var(--soft); margin: 8px 0 0; min-height: 0; }
.namecard .linkish { margin-top: 8px; font-size: 14px; }
.pushcard { margin-top: 16px; padding: 16px; border: 1px solid var(--line-firm); border-radius: 14px; background: var(--surface-2); }
.pushcard .ph { font-size: 16px; font-weight: 750; color: var(--ink); margin: 0 0 4px; }
.pushcard .ps { font-size: 14px; color: var(--soft); line-height: 1.45; margin: 0 0 12px; }
.pushcard ol { margin: 0 0 4px 16px; padding: 0; font-size: 14px; color: var(--ink); line-height: 1.6; }
.pushcard .btn { width: 100%; }
.pushcard .linkish { margin-top: 8px; }
.inst-body ol { margin: 0 0 16px 16px; padding: 0; font-size: 16px; color: var(--ink); line-height: 1.7; }
#inst .linkish { display: block; margin: 12px auto 0; text-align: center; line-height: 1.35; max-width: 300px; }

/* --- rate my outfit --- */
.rate-pick { font-size: 14px; color: var(--accent); margin: 2px 0 0; min-height: 18px; }
.rate-result { margin-top: 16px; padding: 16px; border: 1px solid var(--line-firm); border-radius: 16px; background: var(--surface-2); }
.rate-score { font-size: 64px; font-weight: 800; line-height: 1; color: var(--accent); margin: 0; }
.rate-score span { font-size: 24px; color: var(--soft); font-weight: 700; }
.rate-pieces { font-size: 14px; color: var(--ink); margin: 8px 0 12px; text-transform: capitalize; }
.rate-why { margin: 0 0 12px 16px; padding: 0; font-size: 14px; color: var(--soft); line-height: 1.5; }
.rate-fix { font-size: 14px; color: var(--ink); background: var(--surface); border-radius: 12px; padding: 12px; margin: 0 0 16px; }
.rate-fix b { color: var(--accent); }
.rate-card { width: 100%; border-radius: 14px; border: 1px solid var(--line); margin: 4px 0 12px; }
.rate-result .btn { width: 100%; margin-top: 8px; }
.rate-gate { border: 1px solid var(--accent); border-radius: 14px; padding: 16px; margin: 0 0 16px; background: var(--surface); }
.rate-gate-h { font-size: 16px; font-weight: 700; color: var(--ink); margin: 0 0 4px; }
.rate-gate .pv-s { margin: 0 0 4px; }

/* Seedha bol: the roast toggle and the line it adds (12 Nov 2026) */
.roast-seg { display: flex; gap: 4px; padding: 4px; margin: 0 0 16px; border: 1px solid var(--line-firm); border-radius: 999px; background: var(--surface); }
.roast-seg button { flex: 1; min-height: 44px; border: 0; border-radius: 999px; background: none; color: var(--soft); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.roast-seg button[aria-pressed="true"] { background: var(--accent); color: var(--bg); }
.roast-ok { border: 1px solid var(--accent); border-radius: 14px; padding: 16px; margin: 0 0 16px; background: var(--surface); }
.roast-ok .pv-s { margin: 0 0 12px; }
.roast-ok .btn { width: 100%; }
.roast-ok .linkish { display: block; margin: 8px auto 0; }
.rate-roast { font-size: 20px; line-height: 1.4; font-weight: 700; color: var(--ink); margin: 12px 0 12px; padding-left: 12px; border-left: 3px solid var(--accent); }

/* --- Google sign-in --- */
.g-signin { display: flex; flex-direction: column; align-items: center; margin: 4px 0 8px; }
.g-signin.hide { display: none; }
.g-or { margin: 12px 0 8px; font-size: 14px; color: var(--soft); }
#g-btn { width: 100%; display: flex; justify-content: center; min-height: 44px; }

/* --- sign-in sheet ------------------------------------------------------------
   The one place the app asks for an account. It rises from the bottom over a
   blurred page, the hero shows what is waiting behind sign-in, and the feature
   that matches why it opened is lit. */
.gate { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-end; justify-content: center; }
.gate.hide { display: none; }
.gate-bg {
  position: absolute; inset: 0; background: rgba(250,248,244,.55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: gate-fade .3s ease both;
}
.gate-sheet {
  position: relative; width: 100%; max-width: 480px; max-height: 92vh; overflow-y: auto;
  background: linear-gradient(180deg, var(--hero-top) 0%, var(--bg) 34%);
  border: 1px solid var(--line-firm); border-bottom: 0; border-radius: 26px 26px 0 0;
  padding: 12px 24px calc(24px + env(safe-area-inset-bottom));
  box-shadow: 0 -30px 80px -20px rgba(60,40,15,.28);
  animation: gate-up .55s cubic-bezier(.16,1.18,.3,1) both;
}
.gate.closing .gate-sheet { animation: gate-down .28s ease-in both; }
.gate.closing .gate-bg { animation: gate-fade .28s ease-in reverse both; }
.gate-grip { width: 42px; height: 4px; border-radius: 4px; background: var(--line-firm); margin: 0 auto 8px; }
.gate-x {
  position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: var(--surface); color: var(--soft); font-size: 24px; cursor: pointer;
}
.gate-x:hover { color: var(--ink); }
.gate-k {
  margin: 4px 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent);
}
.gate-h {
  margin: 0 0 16px; font-family: "Bricolage Grotesque", -apple-system, sans-serif;
  font-size: 24px; line-height: 1.12; font-weight: 800; color: var(--ink); letter-spacing: -.01em;
}

/* hero ------------------------------------------------------------------------ */
.gate-hero { margin: 16px 0 16px; min-height: 96px; display: flex; flex-direction: column; justify-content: center; }
.gh-score { display: flex; align-items: baseline; gap: 12px; font-family: "Bricolage Grotesque", -apple-system, sans-serif; }
.gh-from { font-size: 32px; font-weight: 800; color: var(--dim); text-decoration: line-through; text-decoration-thickness: 2px; }
.gh-arrow { font-size: 24px; color: var(--soft); animation: gh-nudge 1.4s ease-in-out infinite; }
.gh-to { font-size: 64px; line-height: .9; font-weight: 800; color: var(--accent); text-shadow: 0 10px 30px rgba(168,116,58,.3); }
.gh-to small { font-size: 24px; color: var(--soft); text-shadow: none; }
.gh-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.gh-chip {
  font-size: 12px; padding: 8px 12px; border-radius: 999px; text-transform: capitalize;
  background: var(--surface); border: 1px solid var(--line-firm); color: var(--ink);
  animation: gh-drop .45s cubic-bezier(.2,1.3,.4,1) both;
}
.gh-chip.lock {
  color: #fff; background: linear-gradient(110deg, var(--brand) 20%, #E0B277 45%, var(--brand) 70%);
  background-size: 220% 100%; border-color: transparent; font-weight: 700;
  animation: gh-drop .45s cubic-bezier(.2,1.3,.4,1) both, gh-shine 2.2s linear .6s infinite;
}
.gh-fan { position: relative; height: 104px; display: flex; justify-content: center; align-items: flex-end; }
.gh-card {
  position: absolute; bottom: 0; width: 86px; height: 100px; border-radius: 14px;
  background: var(--paper); color: #1A1814; display: flex; flex-direction: column;
  align-items: center; justify-content: center; box-shadow: 0 16px 30px -12px rgba(60,40,15,.4);
  font-family: "Bricolage Grotesque", -apple-system, sans-serif; font-weight: 800; font-size: 24px;
  animation: gh-fan .6s cubic-bezier(.2,1.2,.3,1) both;
}
.gh-card small { font-size: 12px; letter-spacing: .1em; color: #8A8478; font-weight: 700; }
.gh-card:nth-child(1) { --r: -14deg; --x: -78px; animation-delay: .1s; }
.gh-card:nth-child(2) { --r: 0deg;   --x: 0px;   animation-delay: .2s; z-index: 1; }
.gh-card:nth-child(3) { --r: 14deg;  --x: 78px;  animation-delay: .3s; z-index: 2; color: var(--brand-dk); }
.gh-out { margin-top: 12px; font-size: 14px; color: var(--soft); animation: rise .4s var(--ease) .7s both; }
.gh-out b { color: var(--accent); font-size: 18px; }

/* features -------------------------------------------------------------------- */
.gate-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.gate-list li {
  display: flex; align-items: center; gap: 12px; padding: 12px 12px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 14px; line-height: 1.3; color: var(--ink);
  animation: gate-item .45s var(--ease) both;
}
.gate-list li i {
  flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  font-style: normal; font-size: 18px; background: var(--surface); border: 1px solid var(--line-firm);
}
.gate-list li span small { display: block; font-size: 12px; color: var(--soft); margin-top: 1px; }
.gate-list li.hot { border-color: var(--accent); background: rgba(168,116,58,.08); }
.gate-list li.hot i { background: var(--accent); border-color: var(--accent); color: #fff; }

/* actions --------------------------------------------------------------------- */
.gate-g { display: flex; justify-content: center; min-height: 0; margin-bottom: 4px; }
.gate-g:empty { display: none; }
.gate .btn { width: 100%; margin-top: 8px; }
.gate-g + .btn { margin-top: 12px; }
.gate-err { margin: 8px 0 0; font-size: 14px; color: var(--bad); text-align: center; }
.gate-err:empty { display: none; }
.gate-foot { margin: 12px 0 0; font-size: 12px; color: var(--dim); text-align: center; }

/* the three-day Premium trial strip, under the top bar */
.trial-strip {
  display: flex; align-items: center; gap: 8px; width: calc(100% - 32px); max-width: 720px; margin: 8px auto 0;
  padding: 12px 16px; border: 1px solid var(--accent); border-radius: 12px; background: rgba(168,116,58,.1);
  color: var(--ink); font: inherit; font-size: 14px; text-align: left; cursor: pointer;
}
.trial-strip.hide { display: none; }
#s-upload .trial-strip { width: 100%; margin: 8px 0 16px; }
.trial-strip b { color: var(--accent); }
.trial-strip i, .trial-strip em { font-style: normal; }
.trial-strip em { flex: 1; line-height: 1.35; }
.trial-strip span { margin-left: auto; font-weight: 700; white-space: nowrap; }
#tend .linkish { display: block; margin: 12px auto 0; }

/* the unticked outfit-email box and the notice, under each Google button */
.mkt { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--soft); margin: 12px 0 4px; cursor: pointer; }
.mkt input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--accent); }
.g-note { font-size: 12px; color: var(--dim); margin: 2px 0 8px; line-height: 1.4; }
.g-note a { color: inherit; }
.gate-mkt.hide { display: none; }
.gh-free { position: relative; border-radius: 14px; overflow: hidden; height: 130px; }
.gh-free img { display: block; width: 100%; }
.gh-free span {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); white-space: nowrap;
  background: var(--ink); color: var(--on-ink); border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 700;
}

/* the freebie itself, full screen once signed in */
.free { position: fixed; inset: 0; z-index: 85; background: var(--bg); overflow-y: auto; }
.free.hide { display: none; }
.free-in { position: relative; max-width: 520px; margin: 0 auto; padding: 16px 16px calc(32px + env(safe-area-inset-bottom)); }
.free-img { display: block; width: 100%; border-radius: 14px; margin: 0 0 16px; background: var(--paper); min-height: 200px; }
.free .btn { width: 100%; margin-top: 8px; }
#free-alt { display: block; margin: 16px auto 0; }
#free-alt.hide { display: none; }

@keyframes gate-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes gate-up   { from { transform: translateY(100%); } to { transform: none; } }
@keyframes gate-down { from { transform: none; } to { transform: translateY(100%); } }
@keyframes gate-item { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
@keyframes gh-drop   { from { opacity: 0; transform: translateY(-14px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes gh-shine  { to { background-position: -120% 0; } }
@keyframes gh-nudge  { 50% { transform: translateX(4px); } }
@keyframes gh-fan {
  from { opacity: 0; transform: translateY(30px) rotate(0deg); }
  to   { opacity: 1; transform: translateX(var(--x)) rotate(var(--r)); }
}
.gh-card { transform: translateX(var(--x)) rotate(var(--r)); }

@media (prefers-reduced-motion: reduce) {
  .gate-bg, .gate-sheet, .gate-list li, .gh-chip, .gh-card, .gh-out, .gh-arrow { animation: none !important; }
}

/* --- the almirah (phone screen) ------------------------------------------- */
/* Sign-in opens like a wardrobe: two wooden doors swing back, the hangers sway,
   and the number field is waiting inside on the card's paper. Only transform and
   opacity move, so it holds 60fps on a budget Android. */
#s-phone { overflow-x: clip; }
.alm {
  --wood: #2A2119; --wood-2: #3A2D21;
  position: relative; width: 100%; max-width: 420px; perspective: 1200px;
  margin: 4px 0 8px;
}
.alm-in {
  position: relative; border-radius: 14px; overflow: hidden;
  border: 6px solid var(--wood-2);
  background: linear-gradient(var(--wood), #15110D 70%);
  box-shadow: inset 0 14px 30px rgba(0,0,0,.45);
  display: flex; flex-direction: column;
}
.alm-rail { height: 4px; margin: 16px 12px 0; border-radius: 2px; background: var(--brand); box-shadow: 0 2px 6px rgba(0,0,0,.5); }
.alm-hangers { display: flex; justify-content: space-around; margin-top: -4px; height: 112px; overflow: hidden; }
.alm-hangers svg { width: 21%; height: auto; transform-origin: 50% 2px; align-self: flex-start; }
/* Each part animates INTO its resting state, which is the open almirah. If the
   script never runs, the doors still end open and the field is still usable;
   app.js only adds .seen so a second visit does not replay the whole show. */
.alm-hangers svg { animation: alm-swing 2.4s var(--ease) .55s both; }
.alm-hangers svg:nth-child(2) { animation-delay: .63s; }
.alm-hangers svg:nth-child(3) { animation-delay: .71s; }
.alm-hangers svg:nth-child(4) { animation-delay: .79s; }
@keyframes alm-swing {
  0% { transform: rotate(0); } 20% { transform: rotate(8deg); } 45% { transform: rotate(-5deg); }
  70% { transform: rotate(2.5deg); } 100% { transform: rotate(0); }
}
.alm-form {
  margin: 0 12px 12px; padding: 16px; border-radius: 12px; background: var(--paper);
  animation: alm-form-in .7s cubic-bezier(.34,1.56,.64,1) .8s both;
}
@keyframes alm-form-in { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
#s-phone .alm-form input { background: #fff; color: #1B1A17; border-color: #C9C1B3; }
#s-phone .alm-form input:focus { border-color: var(--brand-dk); }
#s-phone .alm-form input::placeholder { color: #A8A196; }
#s-phone .alm-form .cc { background: #fff; color: #5E5A54; border-color: #C9C1B3; }
#s-phone .alm-form .err { color: #B3261E; min-height: 0; margin-top: 8px; }
#s-phone .alm-form .btn { margin-top: 12px; }
#s-phone .alm-form .btn:disabled { background: #DDD7CC; color: #847F76; opacity: 1; }
.alm-door {
  position: absolute; top: 0; bottom: 0; width: 50%; pointer-events: none;
  background: linear-gradient(135deg, var(--wood-2), var(--wood));
  border: 1px solid rgba(0,0,0,.4); backface-visibility: hidden;
}
.alm-door::before { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(255,255,255,.07); border-radius: 4px; }
.alm-door.l { left: 0; transform-origin: left center; border-radius: 14px 2px 2px 14px;
  transform: rotateY(-104deg); animation: alm-door-l 1s cubic-bezier(.6,.05,.25,1) .35s both; }
.alm-door.r { right: 0; transform-origin: right center; border-radius: 2px 14px 14px 2px;
  transform: rotateY(104deg); animation: alm-door-r 1s cubic-bezier(.6,.05,.25,1) .35s both; }
@keyframes alm-door-l { from { transform: rotateY(0); } to { transform: rotateY(-104deg); } }
@keyframes alm-door-r { from { transform: rotateY(0); } to { transform: rotateY(104deg); } }
.alm-knob { position: absolute; top: calc(50% - 18px); width: 6px; height: 36px; border-radius: 3px; background: var(--brand); box-shadow: 0 0 12px rgba(200,144,80,.4); }
.alm-door.l .alm-knob { right: 10px; } .alm-door.r .alm-knob { left: 10px; }
.alm-mirror { position: absolute; inset: 20% 20% 28%; border-radius: 40px 40px 6px 6px; background: linear-gradient(160deg, rgba(255,255,255,.16), rgba(255,255,255,.02) 55%); }
.alm.seen .alm-door, .alm.seen .alm-form, .alm.seen .alm-hangers svg { animation: none; }

/* --- the care label (code screen) ----------------------------------------- */
/* The code is typed onto a woven garment label. When all six digits are in, a
   brass stitch sews itself round the edge while the code is checked. */
.ctag {
  position: relative; color: #1B1A17; border-radius: 6px; padding: 24px 16px 16px;
  margin: 12px 0 0; max-width: 420px;
  background: repeating-linear-gradient(90deg, #F3F1EC 0 2px, #E9E4DA 2px 3px), #F3F1EC;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  display: flex; flex-direction: column; gap: 12px;
}
.ctag-stitch { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); pointer-events: none; overflow: visible; }
.ctag-thread { fill: none; stroke: var(--brand-dk); stroke-width: 1.6; stroke-dasharray: 6 5; opacity: 0; }
.ctag.sewing .ctag-thread, .ctag.done .ctag-thread { opacity: 1; }
.ctag-reveal { fill: none; stroke: #fff; stroke-width: 6; stroke-dasharray: 100; stroke-dashoffset: 100; }
.ctag.sewing .ctag-reveal, .ctag.done .ctag-reveal { stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s var(--ease); }
.ctag-care { display: flex; gap: 16px; justify-content: center; font-size: 12px; letter-spacing: .12em; color: #6A675F; }
.ctag-h { text-align: center; font: 800 14px "Bricolage Grotesque", -apple-system, sans-serif; letter-spacing: .24em; }
.ctag-boxes { position: relative; }
.ctag-digits { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.ctag-digits i {
  font-style: normal; height: 52px; display: grid; place-items: center;
  font: 700 24px "Bricolage Grotesque", -apple-system, sans-serif;
  border-bottom: 2px solid #C9C1B3;
  transition: border-color .2s, transform .25s cubic-bezier(.34,1.56,.64,1);
}
.ctag-digits i.on { border-color: var(--brand-dk); transform: translateY(-2px); }
.ctag-digits i.cur { border-color: #1B1A17; }
.ctag-digits i.cur::after { content: ""; width: 2px; height: 24px; background: #1B1A17; animation: ctag-caret 1s steps(1) infinite; }
@keyframes ctag-caret { 50% { opacity: 0; } }
#s-otp .ctag input.otp {
  position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; margin: 0;
  border: 0; background: transparent; color: transparent; caret-color: transparent;
  font-size: 16px; letter-spacing: 0; text-align: left;
}
#s-otp .ctag input.otp::selection { background: transparent; }
.ctag-note { text-align: center; font-size: 14px; color: #6A675F; min-height: 18px; }
.ctag.done .ctag-note { color: #0B8F6C; font-weight: 700; }
.ctag.bad { animation: ctag-shake .4s var(--ease); }
@keyframes ctag-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* --- outfit shuffle (Today tab) -------------------------------------------- */
/* Three reels that spin and land one after another on an outfit the engine
   already made from their own clothes. */
.shf { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.shf .sub { margin-bottom: 16px; }
.shf-reels, .shf-pins { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 380px; }
.shf-reel {
  height: 136px; overflow: hidden; border-radius: 12px; background: var(--paper);
  position: relative; border: 1px solid var(--line-firm);
}
.shf-reel::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(rgba(0,0,0,.16), transparent 20%, transparent 80%, rgba(0,0,0,.16)); }
.shf-strip { will-change: transform; }
.shf-tile { height: 136px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 12px 8px; }
.shf-tile svg { width: 74px; height: 74px; flex: none; filter: drop-shadow(0 0 1px rgba(0,0,0,.45)) drop-shadow(0 2px 3px rgba(0,0,0,.12)); }
.shf-tile span { font-size: 12px; color: var(--soft); text-align: center; line-height: 1.2; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shf-tile.blank svg { opacity: .18; color: var(--ink); }
.shf-pins { margin-top: 8px; justify-items: center; }
.shf-pin { font: inherit; font-size: 12px; background: none; border: 1px solid var(--line-firm); color: var(--soft); border-radius: 99px; padding: 4px 12px; cursor: pointer; }
.shf-pin[aria-pressed="true"] { border-color: var(--brand-dk); color: var(--brand); }
.shf-pin:disabled { opacity: .35; cursor: default; }
.shf-out { margin-top: 16px; min-height: 22px; max-width: 380px; }
.shf-out .shf-why { font-size: 16px; line-height: 1.5; }
.shf-out .shf-meta { font-size: 12px; color: var(--soft); margin-top: 4px; }
.shf-out .shf-acts { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.shf-out img { width: 100%; border-radius: 14px; border: 1px solid var(--line); margin-top: 12px; animation: rise .42s var(--ease) both; }

@media (prefers-reduced-motion: reduce) {
  .ctag-reveal, .shf-strip { transition: none !important; }
  .alm-door, .alm-form, .alm-hangers svg, .ctag, .ctag-digits i.cur::after { animation: none !important; }
}

/* ══ white edition ═══════════════════════════════════════════════════════════
   The app in the landing page's clothes (approved 3 Oct 2026): white room,
   black pill actions that fill with brass, serif italics for the second half of
   a headline, and motion on every arrival. Layered last so it reads as one
   decision rather than forty edits scattered above. */

body { background: var(--bg); }

/* type */
h1 { font-size: 36px; line-height: 1; font-weight: 750; letter-spacing: -.045em; font-variation-settings: "wdth" 80, "opsz" 48; }
h2 { font-variation-settings: "wdth" 84, "opsz" 36; letter-spacing: -.03em; }
h1 em, h2 em { font-family: var(--serif); font-style: italic; font-weight: 300; color: var(--brand); letter-spacing: -.01em; }
.brand { color: var(--brand-dk); }
@media (min-width: 900px) { h1 { font-size: 52px; } }

/* buttons: black pill, brass rises from below on hover, springs on press */
.btn {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 999px;
  transition: transform .45s var(--spring), box-shadow .3s var(--ease), color .3s;
  box-shadow: 0 10px 24px -14px rgba(0,0,0,.5);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--go-dk); transform: translateY(101%); transition: transform .5s var(--out);
}
.btn:hover:not(:disabled) { filter: none; }
.btn:hover:not(:disabled)::before { transform: none; }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:disabled { opacity: 1; background: var(--surface-2); color: var(--dim); box-shadow: none; }
.btn.ghost { background: transparent; color: var(--ink); border: 0; box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.ghost:hover:not(:disabled) { color: var(--on-go); border-color: transparent; }
.btn.ghost::before { background: var(--ink); }
label.btn { cursor: pointer; }
.linkish { color: var(--ink); font-weight: 600; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 calc(100% - 8px) / 0 1.5px no-repeat; transition: background-size .4s var(--out); }
.linkish:hover { background-size: 100% 1.5px; }

/* fields */
input:not([type=file]):not([type=checkbox]):not([type=radio]):not([type=submit]) {
  background: var(--field); border-color: var(--line-firm); border-radius: 14px;
  transition: border-color .2s, box-shadow .3s var(--ease);
}
input:focus { background: var(--field); border-color: var(--ink); box-shadow: 0 10px 28px -14px rgba(0,0,0,.25); }
.cc { background: var(--field); border-color: var(--line-firm); border-radius: 14px; }

/* raised things: white cards with a soft lift, not grey slabs */
.today, .preview, .pick, .rate-result, .pushcard, .plan, .unlocknote, .q, .gap, .item, .count, .shot {
  background: var(--field); border-color: var(--line);
  box-shadow: 0 14px 34px -24px rgba(60,40,15,.28);
}
.today { border-radius: 20px; padding: 24px; }
.today .line { font: italic 400 21px/1.35 var(--serif); letter-spacing: -.01em; }
.item, .gap { transition: transform .4s var(--spring), box-shadow .3s, border-color .2s; }
.item:hover, .gap:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -26px rgba(60,40,15,.4); }
.chip { background: var(--field); transition: transform .35s var(--spring), border-color .2s, color .2s, background .2s; }
.chip:hover { transform: translateY(-2px); }
.chip:active { transform: scale(.95); }
.opt { background: var(--field); transition: transform .35s var(--spring), border-color .15s, color .15s; }
.opt:active { transform: scale(.94); }
.share, .gap a { transition: background .2s, color .2s, transform .35s var(--spring); }
.share:active, .gap a:active { transform: scale(.94); }
.drop { background: var(--surface); border-color: var(--line-firm); border-radius: 22px; }
.note { background: var(--surface); }
.answer { color: var(--text-2); }
.st-tile { background: var(--surface); }
.plan.up { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.plan.up li, .plan.up .nm { color: var(--on-ink); }
.plan.up .pitch, .plan.up .pr small, .plan.up .soon { color: var(--on-ink-soft); }
.plan.up .pr, .plan.up .anchor { color: var(--on-ink-brand); }


/* arriving: screens rise with a short blur, tabs slide in from the side you came from */
@keyframes rise-blur { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.screen.on > * { animation: rise-blur .7s var(--out) both; }
.screen.on > *:nth-child(6) { animation-delay: .27s; }
.screen.on > *:nth-child(7) { animation-delay: .32s; }
.screen.on > *:nth-child(n+8) { animation-delay: .36s; }
@keyframes tab-from-r { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes tab-from-l { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
.tab-in-r { animation: tab-from-r .55s var(--out) both; }
.tab-in-l { animation: tab-from-l .55s var(--out) both; }

/* loading: shimmer bars instead of "Looking…" */
.skel { display: grid; gap: 12px; }
.skel i { height: 14px; border-radius: 8px; background: linear-gradient(90deg, var(--surface-2) 25%, var(--shimmer) 45%, var(--surface-2) 65%) 0 0 / 300% 100%; animation: shimmer 1.4s linear infinite; }
.skel i.s { width: 55%; }
@keyframes shimmer { to { background-position: -150% 0; } }

/* look cards: tilt toward the finger, and a sheen crosses on hover */
.look { perspective: 900px; }
.look img { transform: rotateX(var(--rx, 0)) rotateY(var(--ry, 0)); transition: transform .5s var(--out), box-shadow .3s var(--ease); }
.look:hover img { transform: translateY(-6px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0)); }
#today-img { border-radius: 20px; animation: card-in .9s var(--out) .15s both; }
@keyframes card-in { from { opacity: 0; transform: translateY(26px) scale(.97) rotate(-1deg); } to { opacity: 1; transform: none; } }

/* the sign-in screen: garments drift around the headline */
#s-phone { position: relative; }
.ph-cloud { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.ph-cloud img {
  position: absolute; left: var(--x); top: var(--y); width: 92px; height: auto; opacity: .95;
  filter: drop-shadow(0 18px 22px rgba(40,30,15,.16)); transform: rotate(var(--r));
  animation: ph-bob calc(5s + var(--d) * 3s) ease-in-out calc(var(--d) * -3s) infinite alternate, ph-pop .9s var(--spring) calc(.9s + var(--d) * .3s) both;
}
@keyframes ph-bob { from { translate: 0 -8px; } to { translate: 0 10px; } }
@keyframes ph-pop { from { opacity: 0; scale: .4; } to { opacity: .95; scale: 1; } }
#s-phone > :not(.ph-cloud) { position: relative; z-index: 1; }
/* their own three cards, fanned, when they come here from a result */
#s-phone.has-looks .ph-cloud { display: none; }
.ph-looks { display: flex; justify-content: center; margin: 16px 0 8px; }
.ph-looks img {
  width: 31%; max-width: 132px; border-radius: 12px; display: block; background: var(--paper);
  border: 1px solid rgba(0,0,0,.05); box-shadow: 0 18px 34px -18px rgba(60,40,15,.45);
  animation: ph-pop .7s var(--spring) both;
}
.ph-looks img:nth-child(1) { transform: rotate(-6deg) translate(14px, 6px); }
.ph-looks img:nth-child(2) { z-index: 1; animation-delay: .08s; }
.ph-looks img:nth-child(3) { transform: rotate(6deg) translate(-14px, 6px); animation-delay: .16s; }
@media (min-width: 900px) { .ph-cloud img { width: 150px; } }

/* the pieces built earlier, re-lit for white */
.alm-in { box-shadow: inset 0 14px 30px rgba(0,0,0,.45), 0 40px 70px -40px rgba(60,40,15,.55); }
.ctag { box-shadow: 0 30px 60px -30px rgba(60,40,15,.45), 0 0 0 1px rgba(0,0,0,.04); }
.shf-reel { border-color: var(--line); box-shadow: 0 16px 30px -22px rgba(60,40,15,.4); }
.shf-pin { background: var(--field); }
.shf { border-top-color: var(--line); }

/* sheets */
.fb { background: var(--field); border-color: var(--line); }
.fb textarea { background: var(--surface); }
.gate-sheet { border-color: var(--line); }
.gate-grip { background: var(--line-firm); }

/* the opening */
.intro { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; pointer-events: none; }
.intro-door { position: absolute; top: 0; bottom: 0; width: 50.5%; background: var(--surface); transition: transform .95s cubic-bezier(.76,0,.24,1); }
.intro-door.l { left: 0; border-right: 1px solid var(--line); }
.intro-door.r { right: 0; }
.intro-mark { position: relative; display: grid; justify-items: center; gap: 12px; transition: opacity .35s, transform .7s var(--out); }
.intro-hanger { width: 96px; fill: none; stroke: var(--brand); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.intro-hanger path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: intro-draw .9s var(--ease) .05s forwards; }
@keyframes intro-draw { to { stroke-dashoffset: 0; } }
.intro-word { display: flex; gap: .18em; font: 800 34px "Bricolage Grotesque", -apple-system, sans-serif; letter-spacing: .3em; padding-left: .3em; overflow: hidden; color: var(--ink); }
.intro-word span { display: inline-block; transform: translateY(110%); animation: intro-up .6s var(--out) forwards; }
.intro-word span:nth-child(1) { animation-delay: .35s; } .intro-word span:nth-child(2) { animation-delay: .4s; }
.intro-word span:nth-child(3) { animation-delay: .45s; } .intro-word span:nth-child(4) { animation-delay: .5s; }
.intro-word span:nth-child(5) { animation-delay: .55s; }
@keyframes intro-up { to { transform: none; } }
.intro.go .intro-door.l { transform: translateX(-101%); }
.intro.go .intro-door.r { transform: translateX(101%); }
.intro.go .intro-mark { opacity: 0; transform: scale(.92); }
.intro.done { display: none; }

@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }
  .screen.on > *, .tab-in-r, .tab-in-l, #today-img, .ph-cloud img, .skel i { animation: none !important; }
  .look img { transition: none; }
}
@media (max-width: 899px) { .ph-cloud img:nth-child(3) { display: none; } .ph-cloud img:nth-child(2) { top: 64%; } }
#s-otp .ctag input.otp, #s-otp .ctag input.otp:focus { box-shadow: none; background: transparent; border: 0; }
.ptrack > i { background: var(--ink); }
#style-body .pbar:first-of-type .ptrack > i { background: var(--brand); }
.phero { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
/* Two columns that never grow past the screen: 1fr alone lets a long garment
   name plus "Not right?" push the second column off the edge. */
.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.item > div { min-width: 0; }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 899px) {
  .item { flex-wrap: wrap; row-gap: 2px; }
  .item .fix { order: 3; flex-basis: 100%; margin-left: 37px; padding: 2px 0 0; text-align: left; }
}
html, body { overflow-x: clip; }

/* ══ the new frame (3 Oct 2026) ══════════════════════════════════════════════
   Navigation lives at the top now, like the landing page: the name on the left,
   the five sections as one pill switcher, the account button on the right. On a
   phone the switcher drops to its own sticky row. Account settings moved into a
   drawer instead of repeating under every tab. */

#s-main { padding-top: 0; }
#s-main > [id^="tab-"] { padding-top: 24px; padding-bottom: 64px; }

.topbar {
  position: sticky; top: 0; z-index: 30;
  margin: 0 calc(-1 * var(--pad)); padding: calc(12px + env(safe-area-inset-top, 0px)) var(--pad) 12px;
  display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "mark . me" "tabs tabs tabs";
  align-items: center; gap: 12px 16px;
  background: var(--glass); backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s, padding .4s var(--out);
}
.topbar.scrolled { border-color: var(--line); box-shadow: 0 12px 30px -24px rgba(40,30,15,.35); padding-top: calc(8px + env(safe-area-inset-top, 0px)); padding-bottom: 8px; }
.tb-mark { grid-area: mark; font: 800 17px "Bricolage Grotesque", -apple-system, sans-serif; letter-spacing: .32em; }
.tb-me {
  grid-area: me; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line-firm); background: var(--field);
  display: grid; place-items: center; cursor: pointer; transition: transform .35s var(--spring), border-color .2s, background .2s;
}
.tb-me svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; }
.tb-me:hover { border-color: var(--ink); transform: scale(1.06); }
.tb-me:active { transform: scale(.94); }

/* the switcher */
.tabs {
  grid-area: tabs; position: relative; display: flex; padding: 4px; gap: 2px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
}
.tabs button {
  position: relative; z-index: 1; flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 8px 4px; border: 0; background: none; border-radius: 999px; cursor: pointer;
  font: 650 12.5px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; letter-spacing: .01em;
  color: var(--soft); transition: color .3s;
}
.tabs button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; display: none; }
.tabs button:hover { color: var(--ink); }
.tabs button.on { color: var(--on-ink); }
.tab-ink {
  position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 999px;
  background: var(--ink); box-shadow: 0 8px 18px -10px rgba(0,0,0,.6);
  transition: transform .55s var(--spring), width .55s var(--spring);
}
/* Day 1: three tabs and More (firstDayTabs in app.js). */
.tabs button.later { display: none; }
#tabs-more svg { stroke-width: 3; }
/* Today shows one card at a time (oneCard in app.js); the others wait their turn. */
.today-side > .held { display: none !important; }
/* Seven rooms since 24 Oct (Pose, Shop): tighter on a phone so they stay one row. */
@media (max-width: 899px) { .tabs button { padding: 8px 2px; font-size: 12px; letter-spacing: 0; } }
@media (max-width: 380px) { .tabs button { font-size: 12px; } }

@media (min-width: 900px) {
  .topbar { grid-template-areas: "mark tabs me"; grid-template-columns: 1fr auto 1fr; padding-top: 16px; padding-bottom: 16px; }
  .topbar.scrolled { padding-top: 12px; padding-bottom: 12px; }
  .tb-me { justify-self: end; }
  .tabs { width: 760px; }
  .tabs button { padding: 12px 16px; font-size: 14px; }
  .tabs button svg { display: block; }
  #s-main > [id^="tab-"] { padding-top: 48px; }
}

/* Today: a greeting, then the card beside its caption and actions */
.hello { margin: 4px 0 24px; }
.hello-k { margin: 0 0 8px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--brand-dk); font-weight: 700; }
.hello-h { margin: 0; font-size: clamp(44px, 12vw, 96px); line-height: .92; }
.hello-h em { color: var(--brand); }
.hello-s { margin: 12px 0 0; color: var(--soft); font-size: 16px; }
.today-grid { display: flex; flex-direction: column; gap: 16px; }
.today-side { display: contents; }
.today-side > .brand { order: 0; margin-bottom: -8px; }
#today-box { order: 1; margin-bottom: 0; }
.today-card { order: 2; }
/* Post this look sits right under today's card (same order, later in the page). */
#today-pose { order: 2; margin: 0; }
.today-acts { order: 3; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.today-acts .btn { margin-top: 0; padding: 16px 12px; font-size: 14px; }
#pushcard { order: 4; margin-top: 0; }
/* the month line, trial note and name ask sit right under the buttons */
#wornline, #trialcard, #lockcard, #testercard, #shaadicard, #aboutcard, #namecard { order: 3; margin-top: 0; }
.today-side > .shf { order: 5; }
#today-img { width: 100%; display: block; border: 1px solid rgba(0,0,0,.05); }
@media (min-width: 900px) {
  .hello { margin: 0 0 48px; }
  .today-grid { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 64px; align-items: start; }
  .today-side { display: flex; flex-direction: column; gap: 16px; }
  .today-card { position: sticky; top: 110px; }
  .today-side > .brand { margin-bottom: -8px; }
  .today-side > .shf { margin-top: 16px; }
}

/* the other tabs: a bigger title so each one reads as its own room */
#tab-looks > h2, #tab-ask > h2, #tab-style h1 { font-size: clamp(34px, 8vw, 60px); line-height: .98; }
@media (min-width: 900px) { #tab-looks .deck { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* account drawer */
.drawer { position: fixed; inset: 0; z-index: 90; }
.drawer.hide { display: none; }
.drawer-bg { position: absolute; inset: 0; background: rgba(250,248,244,.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: gate-fade .3s ease both; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 92vw); overflow-y: auto;
  background: var(--field); border-left: 1px solid var(--line); box-shadow: -30px 0 80px -30px rgba(40,30,15,.35);
  padding: calc(24px + env(safe-area-inset-top, 0px)) 24px calc(24px + env(safe-area-inset-bottom, 0px));
  animation: drawer-in .55s var(--out) both;
}
.drawer.closing .drawer-panel { animation: drawer-out .28s ease-in both; }
.drawer.closing .drawer-bg { animation: gate-fade .28s ease-in reverse both; }
@keyframes drawer-in { from { transform: translateX(100%); } to { transform: none; } }
@keyframes drawer-out { to { transform: translateX(100%); } }
.drawer-x { position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--surface); font-size: 24px; color: var(--soft); cursor: pointer; }
.drawer-panel h2 { font-size: 32px; margin: 8px 0 8px; }
.drawer-who { color: var(--soft); font-size: 14px; margin: 0 0 24px; font-variant-numeric: tabular-nums; }
.drawer-panel > * { animation: rise-blur .6s var(--out) both; }
.drawer-panel > *:nth-child(2) { animation-delay: .08s; } .drawer-panel > *:nth-child(3) { animation-delay: .12s; }
.drawer-panel > *:nth-child(4) { animation-delay: .16s; } .drawer-panel > *:nth-child(5) { animation-delay: .2s; }
#acct { margin: 0; }
#acct-plan { padding: 16px; border-radius: 16px; background: var(--surface); }

@media (prefers-reduced-motion: reduce) {
  .drawer-panel, .drawer-panel > *, .drawer-bg { animation: none !important; }
}
@media (min-width: 900px) {
  /* The deck stops being a swipe and becomes a wall of prints. */
  .deck { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; overflow: visible; margin: 0; padding: 0; }
  .look { flex: none; }
  .try-deck { margin: 12px 0 4px; padding: 0; }
}
@media (min-width: 900px) {
  /* Caption and actions on the left under the greeting, the card on the right. */
  .today-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 430px); }
}

/* --- festive plan (s-fest) ------------------------------------------------------
   One card per festival day: the day's colour as a dot and a left rule, the
   status, the pieces from your own festive list, and a note when a piece is
   close or missing. */
.gh-dots { display: flex; gap: 8px; flex-wrap: wrap; }
.gh-dots i { width: 26px; height: 26px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); animation: gh-drop .45s cubic-bezier(.2,1.3,.4,1) both; }

.fplan-sum { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; }
.fplan-sum span { font-size: 12px; padding: 8px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.fplan-days { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; }
.fday {
  position: relative; padding: 16px 16px 12px 16px; border-radius: 16px; background: var(--surface);
  border: 1px solid var(--line); overflow: hidden; animation: rise .45s var(--ease) both;
}
.fday::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--c); }
.fday.today { border-color: var(--ink); box-shadow: 0 12px 26px -16px rgba(0,0,0,.45); }
.fday-h { display: flex; align-items: center; gap: 12px; }
.fday-h .dot { width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); }
.fday-h span { flex: 1; min-width: 0; }
.fday-h b { display: block; font-size: 16px; line-height: 1.2; color: var(--ink); }
.fday-h small { display: block; font-size: 12px; color: var(--soft); margin-top: 1px; }
.fday-h em { font-style: normal; font-size: 12px; font-weight: 650; padding: 4px 8px; border-radius: 999px; white-space: nowrap; background: var(--surface-2); color: var(--soft); }
.fs-yours .fday-h em { background: color-mix(in srgb, var(--go) 14%, transparent); color: var(--go); }
.fs-missing .fday-h em { background: color-mix(in srgb, var(--bad) 12%, transparent); color: var(--bad); }
.fday-g { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.fday-g figure { margin: 0; text-align: center; }
.fday-g img { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--paper); border-radius: 12px; padding: 8px; }
.fday-g figcaption { font-size: 12px; line-height: 1.25; color: var(--soft); margin-top: 4px; text-transform: capitalize; }
.fday-n { margin: 12px 0 0; font-size: 14px; line-height: 1.45; color: var(--ink); }
.fs-missing .fday-n, .fs-swap .fday-n { padding: 8px 12px; border-radius: 10px; background: var(--surface-2); }
#fest-push:empty { display: none; }

/* --- try: two equal ways in (photo, or tap clothes in) ----------------------- */
.ways { display: grid; gap: 12px; margin: 16px 0 4px; }
@media (min-width: 640px) { .ways { grid-template-columns: 1fr 1fr; } }
.way { display: flex; flex-direction: column; padding: 16px 16px 16px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line-firm); }
.way-k { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-dk); font-weight: 650; }
.way-h { font-size: 20px; font-weight: 700; color: var(--ink); margin: 4px 0 4px; letter-spacing: -.02em; }
.way-s { font-size: 14px; line-height: 1.45; color: var(--soft); margin: 0; flex: 1; }
.way .btn { margin-top: 16px; }
.way.glow { animation: way-glow 1.6s var(--ease) 2; border-color: var(--accent); }
@keyframes way-glow { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 22%, transparent); } }
@media (prefers-reduced-motion: reduce) { .way.glow { animation: none; } }
.way-nudge { margin: 2px 0 -4px; font-size: 14px; color: var(--ink); font-weight: 600; cursor: pointer; }
.ways.used { margin-top: 8px; }
.ways.used .way { padding: 0; border: 0; background: none; }
.ways.used .way-k, .ways.used .way-h, .ways.used .way-s, .ways.used #way-pick { display: none; }

/* --- signed-out decks: three open, the rest locked ---------------------------- */
.look.locked { position: relative; cursor: pointer; }
.look.locked img { filter: blur(9px) saturate(.7); }
.look .lock { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); z-index: 2;
  background: var(--ink); color: var(--on-ink); font-size: 14px; font-weight: 650; padding: 8px 16px; border-radius: 999px;
  white-space: nowrap; box-shadow: 0 10px 24px -12px rgba(0,0,0,.5); }
.look.more { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  aspect-ratio: 9 / 16; border-radius: 14px; border: 1.5px dashed var(--line-firm); background: var(--surface);
  padding: 24px; cursor: pointer; }
.look.more .more-n { font-size: 24px; font-weight: 750; color: var(--ink); letter-spacing: -.02em; }
.look.more .more-s { font-size: 14px; color: var(--soft); margin: 4px 0 16px; }

/* --- launch code ------------------------------------------------------------ */
.code-box { display: block; margin-top: 16px; }
.code-box .code-l { display: block; font-size: 14px; font-weight: 650; margin-bottom: 8px; color: var(--soft); }
.code-box input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .08em; }
.code-box .btn { width: auto; flex: none; padding: 0 24px; margin: 0; }
.code-box .code-msg { font-size: 14px; margin: 8px 0 0; min-height: 1em; }

/* --- dark theme --------------------------------------------------------------
   /theme.js sets data-theme on <html> before first paint: the saved choice, or
   the system's when the choice is "system". The look cards keep their own cream
   paper in both themes -- they are the thing people share. */
:root[data-theme="dark"] {
  --bg:        #0E0F12;
  --surface:   #16181D;
  --surface-2: #1E2128;
  --line:      #262A32;
  --line-firm: #353A44;
  --ink:       #ECEAE4;
  --soft:      #9A958C;
  --dim:       #8C877E;
  --brand:     #C89050;
  --brand-dk:  #D9A86C;
  --go:        #3B63F0;
  --go-dk:     #2A4FD6;
  --on-go:     #FFFFFF;
  --ok:        #2BB58C;
  --bad:       #E5675E;
  --field:     #1A1C22;
  --on-ink:    #0E0F12;
  --glass:     rgba(14,15,18,.82);
  --text-2:    #DCD8D0;
  --hero-top:  #2A2218;
  --shimmer:   #2A2E36;
  --on-ink-soft:  #5E5A54;
  --on-ink-brand: #8A5A2B;
  color-scheme: dark;
}
:root[data-theme="dark"] input::placeholder { color: var(--dim); }

/* --- appearance switch (account drawer) ---------------------------------- */
.theme-sw { display: flex; gap: 8px; margin: 0 0 16px; padding: 4px; border-radius: 999px; background: var(--surface-2); width: max-content; }
.theme-sw button { border: 0; background: none; color: var(--soft); font: inherit; font-size: 14px; font-weight: 600;
  padding: 8px 16px; border-radius: 999px; cursor: pointer; }
.theme-sw button[aria-pressed="true"] { background: var(--field); color: var(--ink); box-shadow: 0 2px 8px -4px rgba(0,0,0,.3); }
.theme-sw button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* --- the morning ask, full screen ----------------------------------------------
   Black in both themes: it is the one screen that has to be read, not swiped. */
#inst.morning {
  inset: 0; left: 0; right: 0; bottom: 0; max-width: none; margin: 0; border: 0; border-radius: 0;
  background: #0E0F12; box-shadow: none; z-index: 80;
  display: flex; flex-direction: column; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: max(64px, env(safe-area-inset-top)) 32px max(32px, env(safe-area-inset-bottom));
  animation: fadein .3s ease both;
}
#inst.morning > * { width: 100%; max-width: 440px; margin-left: auto; margin-right: auto; flex-shrink: 0; }
/* auto margins centre the block when it fits and let it scroll from the top when it does not */
#inst.morning .stp-k { font-size: 16px; letter-spacing: .14em; color: #E0B277; margin-top: auto; margin-bottom: 16px; }
#inst.morning .stp-h { font-size: clamp(30px, 8.4vw, 42px); line-height: 1.12; font-weight: 800; color: #F3F1EC; margin: 0 auto 16px; }
#inst.morning .st-s { font-size: 18px; line-height: 1.5; color: #B5AFA5; margin-bottom: 32px; }
#inst.morning .inst-body ol { color: #F3F1EC; font-size: 16px; }
.inst-card { margin: 0 auto 24px; text-align: center; }
.inst-card img {
  width: 46%; max-width: 180px; border-radius: 14px; display: block; margin: 0 auto;
  background: #F3F1EC; transform: rotate(-3deg); box-shadow: 0 24px 50px -20px rgba(0,0,0,.8);
}
.inst-card figcaption { margin-top: 16px; font-size: 16px; line-height: 1.45; color: #E0B277; }
@media (max-height: 700px) { .inst-card img { max-width: 128px; } .inst-card { margin-bottom: 16px; } }
#inst.morning .btn { background: #F3F1EC; color: #0E0F12; border-color: #F3F1EC; font-size: 18px; padding: 16px; }
#inst.morning .linkish { color: #8F8A82; font-size: 14px; margin-top: 16px; margin-bottom: auto; }
#inst.morning .fb-x { color: #8F8A82; top: max(10px, env(safe-area-inset-top)); right: 10px; width: auto; max-width: none; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
/* Short phones (iPhone SE and the like): the same words, tighter, so it fits one screen. */
@media (max-height: 700px) {
  #inst.morning { padding-top: max(48px, env(safe-area-inset-top)); }
  #inst.morning .stp-k { font-size: 14px; margin-bottom: 12px; }
  #inst.morning .stp-h { font-size: 24px; margin-bottom: 12px; }
  #inst.morning .st-s { font-size: 16px; margin-bottom: 16px; }
  #inst.morning .inst-body ol { font-size: 14px; line-height: 1.55; margin-bottom: 16px; }
  #inst.morning .btn { padding: 16px; font-size: 16px; }
}

/* --- Post this look (postkit.py) ---------------------------------------------- */
.kit-btn {
  display: block; width: 100%; margin-top: 12px; padding: 8px 12px; border-radius: 999px;
  border: 1.5px solid var(--line-firm); background: none; color: var(--ink);
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.kit-btn::after { content: " →"; color: var(--soft); }
.kit-btn:hover { border-color: var(--accent); color: var(--accent); }
.kit {
  margin-top: 12px; padding: 16px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line);
}
.kit-k { margin: 0 0 8px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
         color: var(--accent); font-weight: 700; }
.kit-pose { margin: 0 0 8px; font-size: 14px; line-height: 1.45; color: var(--text-2); }
.kit-pose b { color: var(--ink); }
.kit-ols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 8px 0 12px; }
.kit-ol {
  aspect-ratio: 3 / 4; padding: 8px 4px; border-radius: 12px; cursor: pointer;
  background: var(--bg); border: 1px solid var(--line); color: var(--accent);
}
.kit-ol:hover, .kit-ol:focus-visible { border-color: var(--accent); outline: none; }
.kit-ol { display: flex; flex-direction: column; align-items: center; }
.kit-ol .pose-ol { width: 100%; flex: 1; min-height: 0; display: block; }
.kit-ol-n { font-size: 12px; font-weight: 650; color: var(--soft); margin-top: 2px; }
.kit-cam { width: 100%; margin: 0 0 8px; }
/* The kit's first and only question: a photo of the place (24 Oct). */
/* Ready to pose: three steps, the outfit it is for, then the kit itself. */
.pose-steps { display: flex; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; counter-reset: ps; }
.pose-steps li { flex: 1; counter-increment: ps; padding: 12px 8px; border-radius: 12px; background: var(--surface);
                 border: 1px solid var(--line); font-size: 12px; line-height: 1.35; color: var(--text-2); }
.pose-steps li::before { content: counter(ps); display: block; margin-bottom: 4px; font-weight: 800; color: var(--accent); }
.pose-for { margin: 0 0 4px; font-size: 14px; color: var(--soft); line-height: 1.45; }
.pose-for b { color: var(--ink); }
.pose-for .linkish { font-size: 14px; margin-left: 4px; }
.pose-kit .kit-k { display: none; }
.kit-snap { display: block; width: 100%; margin: 2px 0 8px; text-align: center; cursor: pointer; }
.kit-skip { display: block; margin: 8px auto 0; font-size: 12px; color: var(--soft); }
/* Library poses: the finished photo, swiped sideways, name over it. */
.kit-phs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.kit-phs::-webkit-scrollbar { display: none; }
.kit-ph { position: relative; flex: 0 0 31%; padding: 0; overflow: hidden; color: #fff; }
.kit-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kit-ph .kit-ol-n { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 16px 8px 8px;
                    font-size: 12px; line-height: 1.25; color: #fff; text-align: left;
                    background: linear-gradient(transparent, rgba(0,0,0,.72)); }
.kit-ph i { position: absolute; left: 5px; top: 5px; font: 700 9px/1 system-ui, sans-serif; font-style: normal;
            padding: 2px 4px; border-radius: 4px; background: rgba(13,13,14,.65); color: #fff; }
/* The outline: a hollow line round the body and a faint fill (posecam.js). */
.pose-ol .pose-col { flood-color: currentColor; }
.kit-credit { margin: 0 0 4px; font-size: 12px; color: var(--soft); line-height: 1.4;
              overflow-wrap: anywhere; }
.kit-h { margin: 12px 0 8px; font-size: 14px; font-weight: 650; color: var(--ink); }
.kit-song { display: flex; align-items: center; gap: 12px; padding: 8px 0;
            border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.kit .kit-song img, .kit-art { width: 44px; height: 44px; flex: none; border-radius: 6px;
                          object-fit: cover; background: var(--surface-2); border: 0;
                          box-shadow: none; transform: none; }
.kit-st { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.kit-st b, .kit-st i { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kit-st b { font-size: 14px; font-weight: 650; color: var(--ink); }
.kit-st i { font-size: 12px; font-style: normal; color: var(--soft); }
.kit-go { flex: none; font-size: 12px; font-weight: 650; color: var(--accent); }
.kit-play { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%;
            border: 1px solid var(--line); color: var(--soft); text-decoration: none; font-size: 12px; }
.kit-copy { flex: none; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--accent); background: none;
            color: var(--accent); font: inherit; font-size: 12px; font-weight: 650; cursor: pointer; }
.kit-copy.on { background: var(--accent); color: var(--bg); }
/* Photo ideas (ideas.py): an outline tile and the whole recipe beside it. */
.kit-idea { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.kit-idea-ol { flex: none; width: 74px; padding: 8px 2px; }
.kit-idea-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.kit-idea-t b { font-size: 14px; font-weight: 650; color: var(--ink); }
.kit-idea-t i { font-size: 12px; font-style: normal; color: var(--text-2); }
.kit-idea-tags { font-size: 12px; font-weight: 650; color: var(--accent); }
/* Everything past the quick path folds away (app.js kitHtml). */
.kit-more { margin-top: 12px; border-top: 1px solid var(--line); }
.kit-more > summary { list-style: none; cursor: pointer; padding: 12px 0 2px; font-size: 14px;
                      font-weight: 650; color: var(--accent); }
.kit-more > summary::-webkit-details-marker { display: none; }
.kit-more > summary::after { content: " ▾"; color: var(--soft); }
.kit-more[open] > summary::after { content: " ▴"; }
.kit-more .kit-spot { margin-top: 4px; }
.kit-idea details { font-size: 12px; color: var(--text-2); }
.kit-idea summary { cursor: pointer; color: var(--soft); font-size: 12px; margin-top: 2px; }
.kit-idea ol { margin: 4px 0 0; padding-left: 16px; line-height: 1.45; }
.kit-idea-go { align-self: flex-start; margin-top: 8px; }

/* --- pose camera (posecam.js) --------------------------------------------------- */
.pcam .camwrap { background: #0d0d0e; }
/* Pinned to the box: height: 100% of a flex child with no height of its own
   resolves to nothing, and the picture stopped two thirds of the way down. */
#pcam-v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
#pcam-v.selfie { transform: scaleX(-1); }
.pcam-ol { position: absolute; inset: 0; pointer-events: none; color: #fff;
           filter: drop-shadow(0 0 3px rgba(0,0,0,.55)); transition: color .2s; }
.pcam-ol .pose-ol { width: 100%; height: 100%; }
.matched .pcam-ol { color: #3ddc97; }
.pcam-top { position: absolute; top: 12px; left: 14px; right: 14px; display: flex;
            justify-content: space-between; align-items: center; color: #fff; font-size: 14px;
            text-shadow: 0 1px 4px rgba(0,0,0,.7); pointer-events: none; }
.pcam-top span, .pcam-top b { padding: 4px 12px; border-radius: 999px; background: rgba(13,13,14,.62); }
.pcam-top span:empty, .pcam-top b:empty { display: none; }
.pcam-top b { font-size: 16px; }
.matched .pcam-top b { color: #3ddc97; }
.pcam-flip { position: absolute; top: 46px; right: 12px; padding: 8px 12px; border-radius: 999px;
             border: 0; background: rgba(13,13,14,.62); color: #fff; font: inherit; font-size: 12px; }
.pcam .camtip { font-size: 16px; font-weight: 650; bottom: 122px; }
/* The pose tray (posecam.js tray()): photos of library poses, outlines for the
   rest, along the bottom of the camera like Huawei's pose recommendations. */
.pcam-tray { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; gap: 8px;
             padding: 0 12px; overflow-x: auto; scrollbar-width: none; align-items: flex-end; }
.pcam-tray::-webkit-scrollbar { display: none; }
.pcam-tcard { position: relative; flex: none; width: 66px; height: 96px; padding: 0; border-radius: 12px;
              overflow: hidden; border: 2px solid rgba(255,255,255,.35); background: rgba(13,13,14,.62);
              color: #fff; cursor: pointer; transition: transform .15s, border-color .15s; }
.pcam-tcard.on { border-color: #fff; transform: translateY(-4px); box-shadow: 0 4px 14px rgba(0,0,0,.45); }
.pcam-tcard img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcam-tcard .pose-ol { width: 100%; height: 100%; padding: 8px 4px; }
.pcam-tcard i { position: absolute; left: 4px; bottom: 4px; font: 700 9px/1 system-ui, sans-serif; font-style: normal;
                letter-spacing: .04em; padding: 2px 4px; border-radius: 4px; background: rgba(13,13,14,.7); color: #fff; }
.pcam-tmore { flex: none; height: 96px; padding: 0 16px; border-radius: 12px; border: 2px dashed rgba(255,255,255,.45);
              background: rgba(13,13,14,.5); color: #fff; font: inherit; font-size: 14px; font-weight: 650; }
.pcam-tmore:disabled { opacity: .6; font-weight: 500; font-size: 12px; }
/* A library pose's cues, popping in one after another above the tip. */
.pcam-cues { position: absolute; left: 12px; right: 12px; bottom: 156px; display: flex; flex-wrap: wrap;
             justify-content: center; gap: 8px; pointer-events: none; }
.pcam-cues span { padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,.92); color: #0d0d0e;
                  font-size: 12px; font-weight: 650; animation: cue-in .4s var(--d, 0s) both; }
@keyframes cue-in { from { opacity: 0; transform: translateY(6px) scale(.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pcam-cues span { animation: none; } }
.pcam-hold .pcam-tray, .pcam-hold .pcam-cues { display: none; }
/* Fewer things over the picture (23 Oct, "complicated"): voice follows the
   mode, "Poses for this spot" is a tray card, the tray replaces "Next pose",
   and who is shooting is never asked (24 Oct): the flip button sets it. */
.pcam .pcam-voice, .pcam #pcam-spot, .pcam #pcam-next { display: none; }
.pcam-song .kit-copy { border-color: #3ddc97; color: #3ddc97; }
.pcam-song .kit-copy.on { background: #3ddc97; color: #0d0d0e; }
.pcam-done { position: absolute; inset: 0; background: #0d0d0e; display: flex;
             flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 16px; }
.pcam-done img { max-width: 100%; max-height: 52%; border-radius: 12px; }
/* Shutter and "Next pose" mean nothing behind the setup sheet or the finished
   photo, which has its own "Take another" and "Try the next pose". */
.pcam-hold #pcam-shoot, .pcam-hold #pcam-next { visibility: hidden; }
.pcam-acts { display: flex; gap: 12px; width: 100%; max-width: 360px; }
.pcam-acts .btn { flex: 1; margin: 0; }
.pcam-done .btn.ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.pcam-done .btn:not(.ghost) { background: #fff; color: #0d0d0e; }
.kit-spot { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.kit-spot .kit-h { margin-top: 0; }
.kit-spot-btn { display: inline-block; margin: 2px 0 8px; cursor: pointer; }
.kit-seen { margin: 8px 0 8px; font-size: 14px; color: var(--soft); }
.kit-seen b { color: var(--ink); font-weight: 650; }
.pcam-spot { position: absolute; top: 46px; left: 12px; padding: 8px 12px; border-radius: 999px;
             border: 0; background: rgba(13,13,14,.62); color: #fff; font: inherit; font-size: 12px; }
.pcam-how { position: absolute; top: 84px; left: 14px; right: 14px; margin: 0; padding: 8px 12px;
            border-radius: 10px; background: rgba(13,13,14,.62); color: #fff; font-size: 14px;
            line-height: 1.4; pointer-events: none; }
.pcam-how.warn { background: #b3261e; }
.edit-sug { margin-left: 4px; font-size: 12px; font-weight: 700; opacity: .7; text-transform: uppercase; letter-spacing: .04em; }
.pcam-idea:empty { display: none; }
.pcam-idea { margin: 0 0 12px; padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,.08);
             font-size: 12px; line-height: 1.45; text-align: left; }
.pcam-idea ol { margin: 4px 0 0; padding-left: 16px; }
.pcam-setup { position: absolute; inset: 0; z-index: 3; background: #0d0d0e; color: #fff;
              display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 24px 24px; }
.pcam-setup-h { margin: 0; font-size: 24px; font-weight: 700; }
.pcam-modes { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.pcam-modes button { padding: 12px 8px; border-radius: 12px; font: inherit; font-weight: 650; font-size: 16px;
                     background: none; color: #fff; border: 1.5px solid rgba(255,255,255,.3); cursor: pointer; }
.pcam-modes button[aria-pressed="true"] { background: #fff; color: #0d0d0e; border-color: #fff; }
.pcam-dg { width: 100%; height: auto; display: block; color: #fff; }
.pcam-dg .dg-ground { stroke: rgba(255,255,255,.45); stroke-width: 1.5; }
.pcam-dg .dg-phone { fill: #fff; }
.pcam-dg .dg-prop { fill: none; stroke: rgba(255,255,255,.55); stroke-width: 1.5; }
.pcam-dg .dg-hand { fill: none; stroke: rgba(255,255,255,.7); stroke-width: 3; stroke-linecap: round; }
.pcam-dg .dg-sight { stroke: #3ddc97; stroke-width: 1.5; stroke-dasharray: 4 4; }
.pcam-dg .dg-h { stroke: rgba(255,255,255,.55); stroke-width: 1; stroke-dasharray: 2 3; }
.pcam-dg .dg-d { stroke: rgba(255,255,255,.55); stroke-width: 1; marker-end: none; }
.pcam-dg .dg-t { fill: rgba(255,255,255,.85); font-size: 12px; font-family: inherit; }
.pcam-setup-s { margin: 0; font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.88); }
.pcam-setup .btn { margin: 0; background: #fff; color: #0d0d0e; }
/* The outline draws itself in, head to toe, each time a pose comes up. */
.pcam-ol svg { animation: pcam-in .8s var(--out) both; }
@keyframes pcam-in { from { clip-path: inset(0 0 100% 0); opacity: .2; } to { clip-path: inset(0 0 0 0); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pcam-ol svg { animation: none; } }
.pcam-ol .pose-hint { stroke: #ffc53d; opacity: .9; }
.pcam-top { pointer-events: none; }
.pcam-voice { pointer-events: auto; padding: 4px 12px; border-radius: 999px; border: 0; font: inherit;
              font-size: 12px; background: rgba(13,13,14,.62); color: #fff; cursor: pointer; }
.pcam-voice[aria-pressed="true"] { background: #fff; color: #0d0d0e; }
.pcam-res { width: 100%; max-width: 360px; }
.pcam-res-k { margin: 0 0 8px; text-align: center; color: #3ddc97; font-weight: 700; font-size: 16px; }
.pcam-song { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px;
             background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }
.pcam-song img { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; }
.pcam-song span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pcam-song small { font-size: 12px; color: rgba(255,255,255,.6); }
.pcam-song b, .pcam-song i { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcam-song i { font-style: normal; font-size: 12px; color: rgba(255,255,255,.7); }
.pcam-song em { font-style: normal; font-size: 12px; font-weight: 700; color: #3ddc97; }
.pcam-done-next { color: #fff; }
.pcam-dg .dg-mirror { fill: rgba(160,200,255,.25); stroke: rgba(200,225,255,.8); stroke-width: 1.5; }
/* --- edit (posedit.js) --------------------------------------------------------- */
.screen.edit { background: #0d0d0e; color: #fff; padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); }
.edit-stage { position: relative; display: flex; justify-content: center; }
#edit-cv { max-width: 100%; max-height: 62vh; border-radius: 12px; touch-action: none; display: block; }
.edit-wait { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 650;
             background: rgba(13,13,14,.45); border-radius: 12px; }
.edit-k { margin: 12px 0 8px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
          color: rgba(255,255,255,.6); font-weight: 700; }
.edit-k span { text-transform: none; letter-spacing: 0; font-weight: 400; margin-left: 8px; }
.edit-row { flex-wrap: nowrap; overflow-x: auto; gap: 8px; padding-bottom: 4px; }
.edit-row .chip { flex: none; background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.2); }
.edit-row .chip.on { background: #fff; color: #0d0d0e; border-color: #fff; }
.edit-textbox input { width: 100%; margin-top: 8px; padding: 12px 12px; border-radius: 10px; font: inherit;
                      background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.2); }
.edit-note { margin: 8px 0 0; font-size: 12px; color: rgba(255,255,255,.7); min-height: 1em; }
.edit-acts { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.edit-acts .btn { margin: 0; background: #fff; color: #0d0d0e; }
.edit-acts .linkish { color: #cfcbc4; }
.pcam-acts { flex-wrap: wrap; }
.kit-edit-btn { margin-right: 8px; }

/* The end of a locked deck (since 30 Oct 2026): sits in the deck as one more card. */
.look-lock { align-self: stretch; display: flex; flex-direction: column; justify-content: center; gap: 12px;
             padding: 24px 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line-firm); }
.look-lock .lock-n { display: flex; align-items: baseline; gap: 8px; }
.look-lock .lock-n b { font-size: 52px; line-height: 1; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.look-lock .lock-n span { font-size: 16px; color: var(--soft); }
.look-lock .lock-h { margin: 0; font-size: 18px; font-weight: 750; color: var(--ink); line-height: 1.3; }
.look-lock .lock-s { margin: 0; font-size: 14px; color: var(--soft); line-height: 1.45; }
.look-lock .btn { margin: 8px 0 0; }
.look-lock .linkish { align-self: flex-start; font-size: 14px; }
.look-lock .lock-msg { margin: 0; font-size: 14px; color: var(--soft); min-height: 0; }

/* The ₹39 offer above the deck and on Today (2 Nov 2026). */
.lockbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 16px; padding: 12px 16px;
           border-radius: 14px; background: var(--surface); border: 1px solid var(--line-firm); }
.lockbar .lb-t { flex: 1 1 110px; margin: 0; font-size: 14px; line-height: 1.35; color: var(--soft); }
.lockbar .lb-t b { color: var(--ink); font-weight: 750; }
.lockbar .btn { width: auto; margin: 0; flex: none; }
.lockbar .lock-msg { flex-basis: 100%; margin: 0; font-size: 14px; color: var(--soft); }
.lockbar .lock-msg:empty { display: none; }
.lb-peek { display: inline-flex; flex: none; }
.lb-peek img { width: 38px; height: 38px; object-fit: contain; margin-right: -8px; filter: blur(3px); }
#lockcard .lb-peek { margin-bottom: 8px; }
#lockcard .lb-peek img { width: 56px; height: 56px; filter: blur(4px); }
#lockcard .btn { width: 100%; margin: 0 0 8px; }
#lockcard .lock-msg { margin: 8px 0 0; font-size: 14px; color: var(--soft); }
#lockcard .lock-msg:empty { display: none; }
#lockcard .linkish { margin-top: 8px; }
#tend-msg { margin: 8px 0 0; font-size: 14px; color: var(--soft); }
#tend-msg:empty { display: none; }

/* The picker's goal bar (30 Oct 2026): 9 clothes, with the outfits so far. */
.pick-goal { margin: 0 0 12px; }
.pick-goal .pg-bar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.pick-goal .pg-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--accent);
                       transition: width .35s var(--out, ease); }
.pick-goal.done .pg-bar i { background: #2fa36b; }
.pick-goal .pg-t { margin: 8px 0 0; font-size: 14px; line-height: 1.4; color: var(--soft); }
.pick-goal .pg-t b { color: var(--ink); font-weight: 700; }
#pick-photo { display: block; margin-top: 4px; }
#pick-photo.hide { display: none; }
.lock-trust { margin: 2px 0 0; font-size: 12px; line-height: 1.45; color: var(--soft); }
.lock-trust b { color: var(--ink); font-weight: 700; }
#fest-unlock .btn { width: 100%; margin: 8px 0 0; }

/* Consent sheet (consent.py): above every other sheet, since it opens from one. */
.gate.consent { z-index: 95; }
.cs-list { margin: 4px 0 16px; padding-left: 16px; display: grid; gap: 8px; font-size: 14px; line-height: 1.45; color: var(--soft); }
.cs-check { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 16px; font-size: 14px; line-height: 1.45; color: var(--ink); }
.cs-check input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--accent); }
.cs-check a { color: var(--accent); }
.consent .linkish { display: block; margin: 12px auto 0; font-size: 14px; }
.cs-p { font-size: 14px; line-height: 1.5; color: var(--soft); margin: 0 0 16px; }

/* About you card (aboutyou.py), Android app only. */
.ab-q { margin: 0 0 12px; }
.ab-l { font-size: 14px; font-weight: 650; color: var(--ink); margin: 0 0 8px; }
.ab-l small { font-weight: 400; color: var(--soft); }
.ab-row { display: flex; flex-wrap: wrap; gap: 8px; }
.ab-row .chip[aria-pressed="true"] { color: var(--ink); border-color: var(--accent); background: rgba(168,116,58,.12); }

/* Shaadi plan: the one piece to buy for a function, and the locked ones. */
.fday-buy { display: inline-block; margin-top: 8px; font-size: 14px; font-weight: 650; color: var(--accent); text-decoration: none; }
.fs-locked .fday-h em { background: var(--surface-2); color: var(--soft); }

/* ── The ₹49 style report (2 Nov 2026) ─────────────────────────────────────
   The report is a sheet of the look card's own cream paper with brass rules: a
   stylist's dossier handed over, not another app panel. It keeps its own ink so
   it stays a printed page in the dark theme too. The colours are shown as cut
   fabric swatches, the way a tailor's book shows them, because "olive" means
   nothing until you see which olive. */
.repcard { margin-top: 24px; padding: 16px; border: 1px solid var(--line-firm); border-radius: 14px; background: var(--surface); }
.rc-eye { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin: 12px 0 8px; }
.rc-h { font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1.35; color: var(--ink); margin: 0; }
.repcard .btn { margin-top: 16px; }
.rc-sw { display: flex; gap: 0; }
.rc-sw i { width: 30px; height: 40px; border-radius: 3px 3px 0 0; box-shadow: inset 0 -6px 0 rgba(0,0,0,.12), 0 0 0 1px rgba(0,0,0,.06);
  margin-right: -4px; transform: rotate(-4deg); }
.rc-sw i:nth-child(2n) { transform: rotate(3deg) translateY(2px); }
.rc-sw.big { margin: 16px 0 8px; }
.rc-sw.big i { width: 44px; height: 58px; margin-right: -8px; }

.rep-back { align-self: flex-start; margin: 0 0 16px; }
.rep-sell-h em, .rep-h em { font-family: var(--serif); font-style: italic; font-weight: 400; }
.rep-in { list-style: none; padding: 0; margin: 16px 0 4px; }
.rep-in li { padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.5; color: var(--text-2); }
.rep-in li b { color: var(--ink); }
.rep-q-h { margin: 24px 0 0; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
.rep-q-h + .rep-in { margin-top: 8px; }
.rep-note { font-size: 14px; color: var(--soft); line-height: 1.45; margin: 12px 0 0; }
#s-report .ab-q { margin-top: 16px; }

.rep-steps { list-style: none; padding: 0; margin: 24px 0 0; }
.rep-steps li { padding: 12px 0 12px 32px; position: relative; font-size: 16px; color: var(--dim); transition: color .3s var(--ease); }
.rep-steps li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--line-firm); }
.rep-steps li.now { color: var(--ink); }
.rep-steps li.now::before { border-color: var(--accent); background: var(--accent); animation: rep-pulse 1.2s ease-in-out infinite; }
.rep-steps li.done { color: var(--soft); }
.rep-steps li.done::before { border-color: var(--ok); background: var(--ok); }
@keyframes rep-pulse { 50% { opacity: .35; } }

.rep-sheet {
  --r-ink: #1B1813; --r-soft: #6B6358; --r-rule: #A8743A; --r-line: #DED6C6;
  background: #F3F1EC; color: var(--r-ink); border-radius: 6px; padding: 24px 24px 24px;
  box-shadow: 0 1px 0 #E6E0D4, 0 18px 40px -24px rgba(40,30,15,.35);
  border-top: 3px solid var(--r-rule);
}
.rep-eye { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--r-rule); font-weight: 700; margin: 0; }
.rep-for { font-size: 12px; color: var(--r-soft); margin: 4px 0 16px; }
.rep-h { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 24px; line-height: 1.22;
  color: var(--r-ink); margin: 0; font-variation-settings: normal; }
.rep-about { font-size: 12px; color: var(--r-soft); margin: 16px 0 0; }
.rep-sec { padding-top: 24px; margin-top: 24px; border-top: 1px solid var(--r-line); }
.rep-sec-h { font-family: "Bricolage Grotesque", -apple-system, sans-serif; font-size: 12px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--r-rule); margin: 0 0 12px; font-weight: 700; }
.rep-p { font-size: 16px; line-height: 1.58; color: var(--r-ink); margin: 12px 0 0; }
.rep-pal { margin: 0 0 16px; }
.rep-pal-h { font-size: 14px; font-weight: 700; color: var(--r-ink); margin: 0 0 8px; }
.rep-pal-h small { display: block; font-weight: 400; font-size: 12px; color: var(--r-soft); margin-top: 1px; }
.rep-sws { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 12px 8px; }
.rep-sw { margin: 0; }
.rep-sw i { display: block; height: 54px; border-radius: 3px;
  /* the cut edge and fold of a fabric sample */
  box-shadow: inset 0 -8px 0 rgba(0,0,0,.10), inset 0 0 0 1px rgba(0,0,0,.07);
  clip-path: polygon(0 0, 100% 0, 100% 86%, 92% 100%, 0 100%); }
.rep-sw figcaption { font-size: 12px; color: var(--r-ink); margin-top: 4px; text-transform: capitalize; }
.rep-dl { margin: 12px 0 0; }
.rep-dl dt { font-size: 14px; font-weight: 700; color: var(--r-ink); margin-top: 16px; }
.rep-dl dt:first-child { margin-top: 0; }
.rep-dl dd { margin: 4px 0 0; font-size: 14px; line-height: 1.55; color: var(--r-ink); }
.rep-fm { border: 1px solid var(--r-line); border-radius: 8px; padding: 16px; margin-top: 12px; background: #F8F6F1; }
.rep-fm-h { font-family: var(--serif); font-style: italic; font-size: 18px; margin: 0 0 8px; color: var(--r-ink); }
.rep-fm ul { list-style: none; padding: 0; margin: 0; }
.rep-fm li { display: flex; align-items: center; gap: 12px; padding: 4px 0; font-size: 14px; text-transform: capitalize; }
.rep-fm li small { margin-left: auto; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--r-soft); }
.rep-fm .rep-p { font-size: 14px; color: var(--r-soft); }
.rep-dot { flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--r-line); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.rep-dd { display: grid; grid-template-columns: 1fr; gap: 16px; }
.rep-dd ul { list-style: none; padding: 0; margin: 0; }
.rep-dd li { position: relative; padding: 0 0 12px 24px; font-size: 14px; line-height: 1.5; }
.rep-dd div:first-child li::before { content: "✓"; position: absolute; left: 0; color: #2F6B4F; font-weight: 700; }
.rep-dd div:last-child li::before { content: "✕"; position: absolute; left: 0; color: #9A2F28; font-weight: 700; }
@media (min-width: 560px) { .rep-dd { grid-template-columns: 1fr 1fr; } .rep-sheet { padding: 32px 32px 24px; } }
.rep-buy { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--r-line);
  color: var(--r-ink); text-decoration: none; font-size: 16px; text-transform: capitalize; }
.rep-buy:first-of-type { border-top: 0; }
.rep-buy span { flex: 1; }
.rep-buy small { display: block; font-size: 12px; color: var(--r-soft); text-transform: none; margin-top: 2px; }
.rep-buy b { font-size: 14px; color: var(--r-rule); text-transform: none; }
.rep-ft { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--r-line); font-size: 12px; line-height: 1.5; color: var(--r-soft); }
@media (prefers-reduced-motion: reduce) { .rep-steps li.now::before { animation: none; } }
/* A paid answer has to read as chosen at a glance, in both themes. */
#s-report .ab-row .chip[aria-pressed="true"] { color: var(--on-go); background: var(--go); border-color: var(--go); }

/* Plans in one place (2 Nov 2026): a pill beside the account button, the
   pay-once cards above the monthly ones, and the line Today keeps after Not now. */
.tb-r { grid-area: me; justify-self: end; display: flex; align-items: center; gap: 8px; }
.tb-r .tb-me { grid-area: auto; }
.tb-plans { height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--accent);
  background: none; color: var(--accent); font-family: inherit; font-size: 14px; font-weight: 700; letter-spacing: .02em; cursor: pointer;
  transition: background .2s, color .2s; }
.tb-plans:hover { background: var(--accent); color: var(--on-go); }
.once-h { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--soft); font-weight: 700; margin: 24px 0 12px; }
#plan-once .plan.once { border-color: var(--line-firm); }
#plan-once .plan.once .btn { margin-top: 12px; }
#plan-once .lock-msg { margin: 8px 0 0; font-size: 14px; color: var(--soft); }
#lockcard:has(.lock-line) { padding: 0; background: none; border: 0; }
.lock-line { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 16px; border: 1px solid var(--line-firm); border-radius: 12px; background: var(--surface);
  color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; text-align: left; }
.lock-line span:last-child { color: var(--accent); font-weight: 650; white-space: nowrap; }

/* "Can we show you on bhesh.in?" (showcase.py): the feedback sheet's shape,
   taller, scrolling inside itself on a small phone. */
.fb.feat { max-height: calc(100dvh - 24px); overflow-y: auto; }
.ft-s { margin: -4px 0 12px; font-size: 14px; line-height: 1.45; color: var(--soft); }
.ft-in { width: 100%; margin: 0 0 12px; background: var(--surface); color: var(--ink); border: 1px solid var(--line-firm);
  border-radius: 12px; padding: 12px 12px; font: inherit; font-size: 16px; }
.ft-in:focus { outline: none; border-color: var(--accent); }
.ft-ck { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.4; color: var(--ink); margin: 0 0 12px; cursor: pointer; }
.ft-ck input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.ft-l { font-size: 14px; font-weight: 650; color: var(--ink); margin: 4px 0 8px; }
.ft-l small { font-weight: 400; color: var(--soft); }
.ft-cards { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x mandatory; }
.ft-card { flex: none; width: 82px; padding: 0; border: 2px solid transparent; border-radius: 10px; background: none;
  cursor: pointer; scroll-snap-align: start; overflow: hidden; }
.ft-card img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.ft-card[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(168,116,58,.25); }
.ft-fine { font-size: 12px; line-height: 1.45; color: var(--soft); margin: 8px 0 12px; }
.ft-no { display: block; margin: 8px auto 0; font-size: 14px; }
.ph-proof { margin: -4px 0 16px; font-size: 14px; line-height: 1.45; color: var(--ink); font-family: var(--serif); font-style: italic; }
.ph-proof .pp-s { font-style: normal; font-family: inherit; color: var(--accent); letter-spacing: .06em; font-size: 14px; }
.gate-proof { margin: 4px 0 16px; text-align: center; }
.ph-proof .pp-w { font-style: normal; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: 12px; color: var(--soft); }
#s-pack .btn { margin-top: 16px; }
#s-pack .btn + .btn { margin-top: 12px; }

/* Inside the Play Store app nothing is sold (6 Nov 2026, IN_PLAY in app.js):
   Google Play's Payments policy needs Play Billing for in-app digital goods.
   Every card or button that names a price or opens Plans to buy is hidden. */
html.in-play #tb-plans, html.in-play #see-plans, html.in-play #gap-lock,
html.in-play #trialcard, html.in-play #tend, html.in-play #pick-plans,
html.in-play #plan-once, html.in-play #plan-cards, html.in-play #plan-mine,
html.in-play #plan-proof, html.in-play #fest-unlock, html.in-play #looks-lock,
html.in-play #lockcard, html.in-play #plan-trust { display: none !important; }
#plan-trust { margin: 16px 0 4px; }
.tpoll-opts .btn { display: block; width: 100%; margin: 8px 0 0; text-align: left; }
#tpoll-other { margin-top: 12px; }
#tpoll-other .btn { margin-top: 8px; }
#tpoll-msg:empty { display: none; }
#plan-trust a { color: inherit; }

/* --- Ask -> Chat (12 Nov 2026) ------------------------------------------- */
.ask-chat {
  display: grid; gap: 4px; width: 100%; text-align: left; cursor: pointer;
  background: var(--go); color: var(--on-go); border: 0; border-radius: 16px;
  padding: 16px 16px; margin: 4px 0 24px; font: inherit;
  transition: transform .16s var(--ease);
}
.ask-chat:active { transform: scale(.985); }
.ask-chat b { font-size: 16px; font-weight: 700; }
.ask-chat span { font-size: 14px; line-height: 1.4; opacity: .78; }
.ask-chat i { font-style: normal; font-weight: 650; font-size: 14px; color: var(--on-ink-brand); margin-top: 8px; }
.ask-chat-next {
  display: block; width: 100%; margin-top: 16px; padding: 12px 16px; cursor: pointer;
  background: none; border: 1.5px solid var(--line-firm); border-radius: 12px;
  color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; text-align: left;
}

/* --- chat under the Rate score (13 Nov 2026); bubbles and chips are chat.css's */
.rate-chat { margin: 0 0 16px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.rate-chat-h { margin: 0 0 8px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.rate-chat-log { display: flex; flex-direction: column; gap: 8px; }
.rate-chat .ch-chips { padding: 8px 0 0; }
.rate-chat-comp { padding: 8px 0 0; background: none; }
.rate-chat-comp .ch-send { width: 44px; height: 44px; }
.rate-chat-comp input[type="text"] { margin: 0; padding: 12px 16px; }

/* --- book pass 13 Nov (Bhesh UI rules §5): no dead grey buttons ----------------
   A button that still needs something looks quieter but stays tappable, and
   on tap says what is missing. */
.btn.wait { background: var(--surface-2); color: var(--ink); box-shadow: none; }
.rate-miss { margin: 12px 0 0; display: flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 600; color: var(--ink); }
.rate-miss::before { content: "↑"; color: var(--brand-dk); font-weight: 700; }
.btn.wait::before { display: none; }
.rate-result.miss { padding: 0; border: 0; background: none; box-shadow: none; }

/* Style report: sample peek, questions before paying, ₹29 offer, outfit pictures,
   Save/Share (14 Nov 2026). Spacing on the 4/8/12/16/24/32 scale. */
.rep-peek { position: relative; max-height: 520px; overflow: hidden; margin: 24px 0 8px; border-radius: 6px; pointer-events: none; }
.rep-peek .rep-sheet { box-shadow: none; }
.rep-peek-fade { position: absolute; inset: 45% 0 0 0; backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  background: linear-gradient(to bottom, rgba(255,255,255,0), var(--bg) 92%); }
.rep-for-me { margin: 24px 0 12px; font-size: 16px; font-weight: 700; color: var(--ink, #0E0E0F); }
.rep-offer { margin: 8px 0 0; font-size: 14px; color: var(--brand-dk); font-weight: 700; }
#rep-pay s, .pk-offer-h s { font-weight: 400; opacity: .7; margin-left: 4px; }
.rep-fm-img { display: block; width: 100%; height: auto; border-radius: 6px; margin: 0 0 12px; background: #ECE8E0; }
.rep-acts { display: grid; gap: 12px; margin: 24px 0 8px; }
.pk-offer { margin-top: 32px; padding: 16px; border-radius: 8px; background: var(--surface); border-top: 3px solid var(--brand-dk); }
.pk-offer-h { margin: 0 0 4px; font-size: 18px; font-weight: 700; }
.pk-offer .btn { margin-top: 12px; }
@media print {
  body * { visibility: hidden !important; }
  #s-report .rep-sheet, #s-report .rep-sheet * { visibility: visible !important; }
  #s-report .rep-sheet { position: absolute; left: 0; top: 0; width: 100%; box-shadow: none; border-radius: 0; }
  .rep-fm, .rep-sec { break-inside: avoid; }
  .rep-buy b { display: none; }
}
