/* Glass cabinet and admin: the admin stays dark, cabinet-light.css turns the cabinet light. */
/* ---------- Dark glass cabinet (cabinet.html, admin.html) ----------
   A darkened photo behind everything, one frosted panel, an icon rail. Only the panel, the rail and
   the pop-ups blur the backdrop; everything inside them is a translucent tile without blur. */
.cab-dk, .cab.admin {
  --ink: #f4f8fc; --muted: #c9d8e6; --line: rgba(255,255,255,.2); --soft: rgba(255,255,255,.08); --surface: rgba(255,255,255,.1); --bg: #0a2038;
  --glass: rgba(16,32,52,.42); --glass-pop: rgba(14,30,50,.8); --tile: rgba(255,255,255,.085); --tile-2: rgba(255,255,255,.07); --rim: rgba(255,255,255,.16);
  --glass-blur: blur(26px) saturate(150%); --tile-light: inset 0 1px 0 rgba(255,255,255,.1); --sky: #8fd2ff;
  --grad: #0c6fbe; --on: #fff; --bad: #ffc4bd; --good: #a4f2c0; --ph: #c0d0df; --well: rgba(6,18,34,.34);
  color-scheme: dark; color: var(--ink); background: #0a2038; overflow-x: hidden; }
.cab [hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.cab .lang { min-width: 44px; height: 44px; }
html:has(.cab-dk), html:has(.cab.admin) { scrollbar-gutter: auto; }

/* the backdrop: photo, blurred a little, darkened and tinted deep blue */
.cab-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: #0a2038; }
.cab-bg i { display: none; }
.cab-bg::before { content: ""; position: absolute; inset: -24px; background: url("/web/img/cab/overview.webp") 62% 30% / cover no-repeat; filter: blur(6px) brightness(.62) saturate(1.2); }
.cab-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(6,34,72,.72), rgba(8,52,104,.5) 55%, rgba(6,28,60,.74)); }

/* header: logo left, language and account right, transparent; it scrolls away with the page */
:is(.cab-dk, .cab.admin) .top { position: absolute; }
:is(.cab-dk, .cab.admin) .top::before { display: none; }
.cab-dk:has(#auth:not([hidden])) .top .logo { visibility: hidden; }

/* controls on dark glass */
:is(.cab-dk, .cab.admin) .btn { min-height: 44px; padding: 0 20px; border-radius: 12px; font-size: 15px; font-weight: 600; color: var(--on); background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.22); }
:is(.cab-dk, .cab.admin) .btn:hover { background: rgba(255,255,255,.17); border-color: rgba(255,255,255,.45); }
:is(.cab-dk, .cab.admin) .btn.primary { background: var(--grad); border-color: transparent; color: var(--on); box-shadow: inset 0 1px 0 rgba(255,255,255,.25); }
:is(.cab-dk, .cab.admin) .btn:disabled { opacity: .55; cursor: default; }
:is(.cab-dk, .cab.admin) :focus-visible { outline-color: var(--on); }
.btn.danger { color: var(--bad) !important; background: rgba(255,120,105,.12) !important; border-color: rgba(255,170,160,.45) !important; }
.btn.danger:not(:disabled):hover { background: rgba(255,120,105,.22) !important; }
.linkish, .tlink { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 600; color: var(--sky); }
.linkish { justify-self: center; font-weight: 500; color: var(--muted); }
.linkish:hover, .tlink:hover { color: var(--on); }
.tlink.danger, .linkish.danger { color: var(--bad); }
.linkish:focus-visible, .tlink:focus-visible { outline: 2px solid var(--on); outline-offset: 2px; border-radius: 8px; }
.tlink[hidden] { display: none; }
.cab-error { min-height: 0; margin: 0; color: var(--bad); font-size: 13.5px; }
.cab-error:empty { display: none; }
.cab-error.ok { color: var(--good); }
.muted.small { font-size: 13.5px; }
.field { display: grid; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink); }
.field input, .add-site input, .dress-new input, .pw-site, .fr-link input { width: 100%; min-width: 0; min-height: 48px; font: inherit; font-size: 16px; font-weight: 400; padding: 12px 16px; border-radius: 14px; color: var(--on);
  border: 1px solid rgba(255,255,255,.26); background: var(--well); box-shadow: inset 0 1px 2px rgba(0,0,0,.2); }
.field input::placeholder, .add-site input::placeholder, .dress-new input::placeholder { color: var(--ph); opacity: 1; }
.field input:focus-visible, .add-site input:focus-visible, .dress-new input:focus-visible { outline: 2px solid var(--sky); outline-offset: 1px; }
.field input[aria-invalid] { border-color: #ffa196; }
.pw-site option { color: #101418; }
.pass { position: relative; display: block; }
.pass input { padding-right: 56px; }
.eye { all: unset; cursor: pointer; position: absolute; right: 2px; top: 50%; translate: 0 -50%; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: var(--muted); }
.eye:hover, .eye.on { color: var(--on); }
.eye:focus-visible { outline: 2px solid var(--on); outline-offset: -4px; }
.eye.on::after { content: ""; position: absolute; width: 22px; height: 2px; background: currentColor; rotate: -45deg; border-radius: 2px; }
.check { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 14px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: #ff8a7c; flex: none; }

/* account menu */
.acct { position: relative; display: inline-flex; }
.acct-btn { all: unset; box-sizing: border-box; cursor: pointer; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--on); }
.acct-btn:hover { background: rgba(255,255,255,.12); }
.acct-btn:focus-visible { outline: 2px solid var(--on); outline-offset: 3px; }
.acct-ava { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 16px; color: var(--on); background: var(--grad); border: 1px solid rgba(255,255,255,.4); }
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } }
.acct-menu { animation: pop .16s ease-out; position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; width: min(280px, calc(100vw - 32px)); display: grid; padding: 8px; border-radius: 20px; color: var(--ink);
  background: var(--glass-pop); border: 1px solid var(--rim); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: 0 24px 50px rgba(0,12,30,.5); }
.acct-menu[hidden] { display: none; }
.acct-head { display: grid; padding: 8px 12px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--rim); }
.acct-head small { color: var(--muted); font-size: 12px; }
.acct-head b { font-size: 14px; overflow-wrap: anywhere; }
.acct-menu [role="menuitem"] { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 12px; font-size: 15px; color: var(--ink); }
.acct-menu [role="menuitem"]:hover, .acct-menu [role="menuitem"]:focus-visible { background: rgba(255,255,255,.12); }
.acct-menu [role="menuitem"][hidden] { display: none; }
.acct-menu .acct-out { color: var(--bad); margin-top: 4px; }

/* sign-in: one dark glass card in the middle of the photo */
.cab-dk .cab-main:has(#auth:not([hidden])) { min-height: 100dvh; display: grid; place-items: center; padding: 76px 16px 28px; }
.cab-auth { width: min(420px, 100%); display: grid; gap: 16px; padding: 28px; border-radius: 28px; text-align: left; background: var(--glass); border: 1px solid var(--rim); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: 0 30px 70px rgba(0,12,30,.4), var(--tile-light); }
.auth-brand { justify-self: center; display: inline-flex; align-items: center; min-height: 44px; gap: 8px; font-weight: 800; font-size: 22px; color: var(--on); text-decoration: none; }
.auth-brand svg { width: 28px; height: 28px; }
.auth-brand:focus-visible { outline: 2px solid var(--on); outline-offset: 3px; border-radius: 8px; }
.cab-auth h1 { margin: 0; font-size: 26px; text-align: center; letter-spacing: -.02em; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 16px; background: var(--well); }
.auth-tabs button { all: unset; box-sizing: border-box; cursor: pointer; min-height: 44px; display: grid; place-items: center; border-radius: 12px; font-size: 15px; font-weight: 700; color: var(--muted); }
.auth-tabs button[aria-selected="true"] { background: rgba(255,255,255,.17); color: var(--on); box-shadow: var(--tile-light); }
.auth-tabs button:focus-visible { outline: 2px solid var(--on); outline-offset: 2px; }
.cab-form { display: grid; gap: 12px; }
.cab-form .btn.primary { width: 100%; min-height: 50px; margin-top: 4px; }
.auth-info, .auth-note { margin: 0; padding: 12px 16px; border-radius: 14px; background: var(--tile); color: var(--ink); font-size: 13.5px; }
.auth-hint { margin: 0; font-size: 13.5px; color: var(--muted); text-align: center; }
.auth-shop { margin: 0; padding-top: 12px; border-top: 1px solid var(--rim); font-size: 13px; line-height: 1.45; color: var(--muted); text-align: center; }

/* page frame: rail on the left, a panel that fits its content */
.cab-dk .cab-main { max-width: 1120px; margin: 0 auto; padding: 84px 28px 28px; }
.dash { display: block; padding-left: 80px; }
.cab-shell { padding: 28px 32px 32px; border-radius: 28px; background: var(--glass); border: 1px solid var(--rim); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: 0 30px 70px rgba(0,12,30,.35), var(--tile-light); }
.panel[hidden] { display: none; }
.cab-tabs { position: fixed; z-index: 40; top: 50%; left: max(16px, calc(50vw - 532px)); translate: 0 -50%; display: grid; gap: 4px; padding: 8px; border-radius: 24px; background: var(--glass); border: 1px solid var(--rim); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: 0 18px 44px rgba(0,12,30,.35), var(--tile-light); }
.rail-pill { position: absolute; top: 0; left: 0; width: 48px; height: 48px; border-radius: 16px; background: var(--grad); box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }
.rail-pill.go { transition: transform .26s cubic-bezier(.3,.8,.3,1); }
.cab-tabs a { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; color: var(--muted); text-decoration: none; transition: color .15s; }
.cab-tabs a[hidden] { display: none; }
.cab-tabs a svg { width: 23px; height: 23px; }
.cab-tabs a:hover, .cab-tabs a.on { color: var(--on); }
.cab-tabs:not(:has(.rail-pill[style])) a.on { background: var(--grad); }
.cab-tabs a:active svg { transform: scale(.92); }
.cab-tabs a:focus-visible { outline: 2px solid var(--on); outline-offset: 1px; }
.cab-tabs span { position: absolute; left: calc(100% + 16px); top: 50%; translate: 0 -50%; padding: 8px 12px; border-radius: 10px; font-size: 13px; font-weight: 600; white-space: nowrap; color: var(--on); background: #10263e; border: 1px solid var(--rim); visibility: hidden; pointer-events: none; }
@media (hover: hover) { .cab-tabs a:hover span { visibility: visible; } }
.cab-tabs a:focus-visible span { visibility: visible; }

/* the shared tile, headings, numbers */
.tile, :is(.cab-dk, .cab.admin) .glass-card { background: var(--tile); border: 1px solid rgba(255,255,255,.12); border-radius: 18px; box-shadow: var(--tile-light); -webkit-backdrop-filter: none; backdrop-filter: none; }
.sec-title { margin: 0; font-size: clamp(24px, 3vw, 30px); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; color: var(--on); }
.panel { display: grid; gap: 20px; }
.sec-head { display: flex; gap: 12px 20px; align-items: center; justify-content: space-between; }
.sec-head .muted { margin: 4px 0 0; font-size: 14.5px; }
.sec-head .btn { flex: none; }
.panel h2 { margin: 0; font-size: 17px; font-weight: 700; color: var(--on); }
.bar { display: block; height: 6px; border-radius: 99px; background: rgba(255,255,255,.14); overflow: hidden; }
.bar i { display: block; height: 100%; width: 100%; border-radius: inherit; transform-origin: left; transform: scaleX(var(--p, 0)); background: #6cc6ff; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.nums { display: flex; flex-wrap: wrap; gap: 8px 40px; }
.nums:not(:has(> :not([hidden]))) { display: none; }
.num { display: grid; min-width: 0; min-height: 44px; color: var(--on); text-decoration: none; }
.num[hidden] { display: none; }
.num b { font-size: 22px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.num small { color: var(--muted); font-size: 13px; }
a.num:hover small { color: var(--on); }
a.num:focus-visible { outline: 2px solid var(--on); outline-offset: 4px; border-radius: 6px; }
.pc-status { justify-self: start; padding: 4px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: rgba(255,255,255,.14); color: #e6eff7; }
.pc-status.on { background: rgba(120,235,165,.2); color: var(--good); }

/* overview */
.ov-card { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; padding: 24px 28px; border-radius: 22px; color: var(--on); border: 1px solid rgba(255,255,255,.22);
  background: radial-gradient(90% 120% at 100% 0%, rgba(90,190,255,.24) 0%, transparent 55%), linear-gradient(135deg, #0f79cc, #084f9e); box-shadow: 0 14px 30px rgba(0,30,80,.32), inset 0 1px 0 rgba(255,255,255,.3); }
.hero-sum { display: grid; justify-items: start; min-width: 0; }
.hero-plan { font-size: 14px; font-weight: 600; }
.hero-sum b { margin-top: 2px; font-size: clamp(40px, 6vw, 52px); font-weight: 800; line-height: 1.1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.hero-sum small, .hero-act small { font-size: 14px; color: var(--on); }
.hero-act { display: grid; justify-items: end; gap: 8px; }
.cab-dk .ov-card .btn { background: #fff; color: #0a5aa6; border-color: #fff; font-weight: 700; }
.cab-dk .ov-card .btn:hover { background: #e9f4fd; border-color: #e9f4fd; }
.ov-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; margin-bottom: 4px; }
.ov-looks { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.ov-look { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: var(--well); border: 1px solid rgba(255,255,255,.12); transition: transform .18s; }
.ov-look:hover { transform: translateY(-2px); }
.ov-look img, .ov-look video { display: block; width: 100%; height: 100%; object-fit: cover; }
.ov-look:focus-visible { outline: 2px solid var(--on); outline-offset: 2px; }
.ov-empty { grid-column: 1 / -1; min-height: 96px; width: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 16px; padding: 16px 20px; border-radius: 18px; background: var(--tile); color: var(--ink); font-size: 15px; }
.ov-empty p { margin: 0; flex: 1 1 240px; }
.is-sub .ov-empty a { display: none; }

/* looks */
.looks-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.look { position: relative; border-radius: 16px; overflow: hidden; background: var(--well); aspect-ratio: 3 / 4; }
.look img, .look video { width: 100%; height: 100%; object-fit: cover; display: block; }
.look label { position: absolute; z-index: 2; top: 2px; left: 2px; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; }
.look label::before { content: ""; position: absolute; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.92); box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.look input { position: relative; width: 16px; height: 16px; margin: 0; accent-color: #1079c8; cursor: pointer; }
.look .look-bar a { position: absolute; inset: 0; z-index: 1; color: transparent; font-size: 0; }
.look .look-bar a:focus-visible { outline: 2px solid var(--on); outline-offset: -3px; border-radius: 16px; }
.look .look-bar button { all: unset; box-sizing: border-box; cursor: pointer; position: absolute; z-index: 2; top: 2px; right: 2px; width: 44px; height: 44px; display: grid; place-items: center; font-size: 22px; line-height: 1; color: var(--on); }
.look .look-bar button::before { content: ""; position: absolute; z-index: -1; width: 26px; height: 26px; border-radius: 50%; background: rgba(8,24,44,.62); }
.look .look-bar button:focus-visible { outline: 2px solid var(--on); outline-offset: -4px; border-radius: 50%; }
.look.on { box-shadow: 0 0 0 3px var(--sky); }
.looks-empty { grid-column: 1 / -1; display: grid; justify-items: center; gap: 16px; margin: 0; padding: 32px 20px; min-height: 190px; align-content: center; border-radius: 18px; background: var(--tile); color: var(--ink); text-align: center; }
.looks-empty p { margin: 0; max-width: 420px; }
.polls-title { margin: 4px 0 -8px; }
.polls { display: grid; gap: 0; }
.polls:empty { display: none; }
.poll-row { display: flex; align-items: center; justify-content: space-between; gap: 2px 16px; min-height: 56px; padding: 8px 0; border-bottom: 1px solid var(--rim); font-size: 14.5px; }
.poll-row:last-child { border-bottom: 0; }
.poll-row > span { display: grid; min-width: 0; }
.poll-row small { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }

/* subscription */
.sub-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px 36px; padding: 24px 28px; }
.plan-main { display: grid; gap: 12px; align-content: start; }
.plan-info { display: grid; gap: 12px; align-content: start; }
.pc-price { min-height: 40px; font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.3; }
.pc-price small { font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan-until, .plan-left { margin: 0; font-size: 14.5px; color: var(--muted); }
.plan-left span { color: var(--on); font-weight: 700; }
.plan-free { margin: 0; font-size: 14px; color: var(--ink); }
.plan-main .btn { margin-top: 8px; justify-self: stretch; }
.pc-perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.pc-perks li { padding-left: 24px; position: relative; }
.pc-perks li::before { content: "✓"; position: absolute; left: 0; color: var(--sky); font-weight: 800; }
.plan-extra { list-style: none; margin: -8px 0 0; padding: 0; display: grid; }
.plan-extra li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 15px; border-bottom: 1px solid var(--rim); }
.plan-extra li:last-child { border-bottom: 0; }
.plan-extra b { font-weight: 700; white-space: nowrap; }
.plan-info .muted { margin: -8px 0 0; }

/* friends */
.fr-hero { display: grid; gap: 12px; }
.fr-hero .muted { margin: 0; max-width: 640px; font-size: 15px; }
.fr-link { display: flex; gap: 8px; padding: 4px; border-radius: 16px; max-width: 640px; background: var(--well); border: 1px solid rgba(255,255,255,.22); }
.fr-link input { flex: 1; min-height: 44px; border: 0; background: none; box-shadow: none; font-size: 15px; padding: 0 12px; outline: none; }
.fr-link .btn { flex: none; }
.fr-share { display: flex; flex-wrap: wrap; gap: 0 20px; }
.fr-note { margin: 0; font-size: 13.5px; color: var(--on); }
.fr-note:empty { display: none; }
.fr-progress, .dress-box { padding: 20px 24px; }
.fr-stats { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 40px; }
.fr-stats li { display: grid; }
.fr-stats b { font-size: 22px; font-weight: 700; line-height: 1.25; color: var(--on); font-variant-numeric: tabular-nums; }
.fr-stats small { font-size: 13px; color: var(--muted); }
.fr-cap { margin: 8px 0 0; font-size: 13.5px; color: var(--muted); }
.fr-empty { margin: 8px 0 0; font-size: 13.5px; color: var(--ink); }
.fr-rules { margin-top: 8px; }
.fr-rules summary, .set-more summary, .add-wrap summary { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 0; cursor: pointer; min-height: 44px; font-weight: 600; font-size: 15px; list-style: none; color: var(--sky); }
.fr-rules summary::-webkit-details-marker, .set-more summary::-webkit-details-marker, .add-wrap summary::-webkit-details-marker { display: none; }
.fr-rules summary::after, .set-more summary::after, .add-wrap summary::after { content: none; }
.fr-rules p { padding: 0; }
.fr-rules ul { margin: 2px 0 0; padding-left: 20px; display: grid; gap: 8px; color: var(--muted); font-size: 13.5px; }
.dress-box h2 { margin-bottom: 2px; }
.dress-box > .muted { margin: 0 0 12px; font-size: 14.5px; }
.dress-new { display: flex; gap: 8px; }
.dress-new input { flex: 1; }
.dress-new .btn { flex: none; }
.dress-list { display: grid; gap: 0; margin-top: 8px; }
.dress-list:empty { display: none; }
.dress-req { display: grid; gap: 8px; padding: 12px 0; border-top: 1px solid var(--rim); }
.dress-req-head { display: grid; }
.dress-req-head b { font-size: 15.5px; overflow-wrap: anywhere; }
.dress-req-head small { color: var(--muted); font-size: 13px; }
.dress-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0 20px; }
.dress-items { list-style: none; margin: 0; padding: 0; display: grid; }
.dress-items li { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dress-items li > div { display: grid; min-width: 0; }
.dress-items a { color: var(--sky); font-weight: 600; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dress-items small { color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.dress-x { all: unset; cursor: pointer; flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; color: var(--muted); }
.dress-x:hover { color: var(--on); }
.dress-x:focus-visible { outline: 2px solid var(--on); outline-offset: -2px; }

/* shop */
.summary { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 24px; padding: 20px 24px; }
.summary[hidden] { display: none; }
.sites { display: grid; gap: 12px; }
.sites:empty { display: none; }
.site { display: grid; gap: 12px; padding: 20px 24px 8px; text-align: left; }
.site-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.site-head h2 { font-size: 18px; overflow-wrap: anywhere; }
.site-head p { margin: 2px 0 0; font-size: 14px; overflow-wrap: anywhere; }
.balance { flex: none; text-align: right; display: grid; }
.balance small { color: var(--muted); font-size: 13px; }
.balance b { font-size: 22px; letter-spacing: -.01em; color: var(--on); line-height: 1.2; }
.site .muted { margin: 0; }
.site code { font-size: 13px; }
.code { margin: 0; max-width: 100%; padding: 12px 16px; border-radius: 12px; overflow-x: auto; white-space: pre-wrap; word-break: break-all; background: var(--well); border: 1px solid rgba(255,255,255,.1); color: #dbeafe; }
.chart { height: 56px; display: flex; align-items: flex-end; gap: 3px; margin-top: 4px; }
.chart:empty { height: 0; margin: 0; }
.chart i { flex: 1; border-radius: 2px 2px 0 0; background: #6cc6ff; opacity: .85; min-height: 2px; }
.site-foot { display: flex; flex-wrap: wrap; gap: 0 20px; }
.add-wrap[hidden] { display: none; }
.add-wrap summary { justify-content: flex-start; }
.add-wrap:not(.has) summary { display: none; }
.add-site { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; padding: 12px; }
.add-site input { padding: 12px 16px; text-overflow: ellipsis; }
.add-site .cab-error { grid-column: 1 / -1; }

/* settings */
.set-list { padding: 4px 24px; }
.set-row, .set-more { border-bottom: 1px solid var(--rim); }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding: 8px 0; }
.set-list > :last-child { border-bottom: 0; }
.set-row > span { display: grid; min-width: 0; font-weight: 600; font-size: 15px; }
.set-row small { font-weight: 400; color: var(--muted); font-size: 13.5px; overflow-wrap: anywhere; }
.set-more summary { min-height: 60px; color: var(--ink); }
.set-more summary::before { content: ""; order: 2; margin-right: 4px; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); transition: transform .18s; }
.set-more[open] summary::before { transform: rotate(45deg); }
.set-form { display: grid; gap: 12px; max-width: 420px; padding: 2px 0 20px; }
.set-form p { margin: 0; padding: 0; }
.set-danger { display: grid; justify-items: start; gap: 8px; padding-left: 24px; }
.del-confirm { display: grid; gap: 8px; width: 100%; padding: 16px 20px; border-radius: 16px; background: rgba(255,120,105,.12); }
.del-confirm[hidden] { display: none; }
.del-confirm p { margin: 0; font-size: 14px; color: var(--ink); }
.del-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }

/* paywall sheet */
.pw-layer { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(4,14,30,.55); animation: pw-fade .2s ease-out; }
@keyframes pw-fade { from { opacity: 0; } }
@keyframes pw-rise { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.pw-sheet { width: min(420px, 100%); max-height: calc(100dvh - 32px); overflow: auto; overscroll-behavior: contain; border-radius: 26px; color: var(--ink); background: var(--glass-pop); border: 1px solid var(--rim);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: 0 40px 90px rgba(0,10,30,.55), var(--tile-light); animation: pw-rise .28s cubic-bezier(.2,.8,.2,1); }
.pw-hero { position: relative; padding: 24px 56px 4px 24px; color: var(--on); }
.pw-hero h2 { margin: 0 0 4px; font-size: 23px; line-height: 1.2; letter-spacing: -.02em; font-weight: 800; color: var(--on); }
.pw-hero p { margin: 0; font-size: 14.5px; color: var(--muted); }
.pw-x { all: unset; cursor: pointer; position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; color: var(--on); }
.pw-x:hover { background: rgba(255,255,255,.14); }
.pw-x:focus-visible { outline: 2px solid var(--on); outline-offset: -2px; }
.pw-body { display: grid; gap: 12px; padding: 16px 24px 20px; }
.pw-options { display: grid; gap: 8px; }
.pw-opt { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; padding: 12px 16px; border-radius: 16px; border: 1.5px solid rgba(255,255,255,.18); background: var(--tile); transition: border-color .15s, background-color .15s; }
.pw-options:has(> :only-child) .pw-opt { grid-template-columns: minmax(0, 1fr) auto; cursor: default; }
.pw-options:has(> :only-child) .pw-radio { display: none; }
.pw-opt:hover:not(:disabled) { border-color: var(--sky); }
.pw-opt:focus-visible { outline: 2px solid var(--on); outline-offset: 2px; }
.pw-opt.on { border-color: var(--sky); background: rgba(120,200,255,.14); }
.pw-radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(255,255,255,.55); box-sizing: border-box; }
.pw-opt.on .pw-radio { border: 6px solid var(--sky); }
.pw-main { display: grid; min-width: 0; }
.pw-main b { font-size: 16px; }
.pw-main small, .pw-price small { color: var(--muted); font-size: 13px; }
.pw-price { display: grid; justify-items: end; }
.pw-price b { font-size: 18px; white-space: nowrap; }
.pw-points { grid-column: 1 / -1; margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 14px; }
.pw-points li { position: relative; padding-left: 20px; }
.pw-points li::before { content: "✓"; position: absolute; left: 0; color: var(--sky); font-weight: 800; }
.pw-site { font-size: 15px; }
.pw-pay { width: 100%; }
.pw-note { margin: 0; font-size: 13.5px; color: var(--ink); }
.pw-note:empty { display: none; }
.pw-fine { margin: 0; font-size: 12.5px; color: var(--muted); text-align: center; }

/* loading: the same boxes as the content, with a light passing over them */
.sk, .dash:not(.ok-me) [data-sk="me"], .dash:not(.ok-friends) [data-sk="friends"] { position: relative; overflow: hidden; color: transparent !important; background: rgba(255,255,255,.12) !important; border-color: transparent !important; border-radius: 8px; box-shadow: none !important; pointer-events: none; user-select: none; }
.dash:not(.ok-me) [data-sk="me"] > *, .dash:not(.ok-friends) [data-sk="friends"] > * { visibility: hidden; }
.dash:not(.ok-me) b[data-sk], .dash:not(.ok-me) span[data-sk], .dash:not(.ok-me) small[data-sk], .dash:not(.ok-friends) b[data-sk], .dash:not(.ok-friends) p[data-sk] { justify-self: start; }
.dash:not(.ok-me) b[data-sk], .dash:not(.ok-me) span[data-sk], .dash:not(.ok-me) small[data-sk], .dash:not(.ok-friends) b[data-sk] { display: inline-block; }
.dash:not(.ok-me) .ov-card [data-sk="me"] { background: rgba(255,255,255,.24) !important; }
.dash:not(.ok-me) .pc-price[data-sk] { min-width: 170px; justify-self: start; }
.dash:not(.ok-friends) input[data-sk]::placeholder { color: transparent; }
.sk::after, .dash:not(.ok-me) [data-sk="me"]::after, .dash:not(.ok-friends) [data-sk="friends"]::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.16) 50%, transparent 80%); transform: translateX(-100%); animation: sk-pass 1.3s ease-in-out infinite; }
@keyframes sk-pass { to { transform: translateX(100%); } }
.sk-look { border-radius: 14px; aspect-ratio: 4 / 5; }
.looks-grid .sk-look { border-radius: 16px; aspect-ratio: 3 / 4; }
.sk-site { height: 333px; border-radius: 18px; }
.sk-sum { height: 86px; border-radius: 18px; }

/* motion: transform and opacity only */
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.panel:not([hidden]) > * { animation: rise .2s cubic-bezier(.2,.8,.2,1) backwards; }
.panel:not([hidden]) > :nth-child(2) { animation-delay: 40ms; }
.panel:not([hidden]) > :nth-child(3) { animation-delay: 80ms; }
.panel:not([hidden]) > :nth-child(4) { animation-delay: 120ms; }
.ov-look:not(.sk), .look { animation: rise .22s cubic-bezier(.2,.8,.2,1) backwards; animation-delay: calc(var(--i, 0) * 28ms); }
.btn, .tlink, .linkish, .pw-opt, .auth-tabs button { transition: transform .1s ease, background-color .15s, border-color .15s, color .15s; }
.btn:active:not(:disabled), .tlink:active, .linkish:active, .pw-opt:active:not(:disabled), a.num:active { transform: scale(.97); }

/* admin: same backdrop, the content sits in one panel */
.cab.admin .cab-main { max-width: 1040px; margin: 0 auto; padding: 84px 28px 28px; }
.cab.admin #app, .adm-denied { padding: 28px 28px; border-radius: 28px; background: var(--glass); border: 1px solid var(--rim); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: 0 30px 70px rgba(0,12,30,.35), var(--tile-light); }
.cab.admin .adm-denied { max-width: 520px; margin: 40px auto; display: grid; gap: 12px; justify-items: center; text-align: center; background: var(--glass); }
.adm-denied h1 { margin: 0; }
.adm-title { margin: 0 0 16px; }
.adm-title .eyebrow { margin: 0; padding: 0; border: 0; background: none; color: var(--sky); }
.adm-title h1 { margin: 4px 0 8px; font-size: clamp(25px, 3vw, 32px); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; color: var(--on); }
.adm-title .muted { margin: 0; max-width: 680px; font-size: 14.5px; }
.adm-stats { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.adm-stats li { display: grid; gap: 2px; padding: 12px 16px; border-radius: 16px; }
.adm-stats small { color: var(--muted); font-size: 12.5px; }
.adm-stats b { font-size: 21px; color: var(--on); }
.adm-card { display: grid; gap: 16px; padding: 20px; text-align: left; }
.adm-card h2 { margin: 8px 0 0; font-size: 19px; color: var(--on); }
.adm-modes { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.adm-modes label { cursor: pointer; display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 16px; border: 1.5px solid rgba(255,255,255,.18); background: var(--tile-2); min-width: 0; }
.adm-modes label:has(input:checked) { border-color: var(--sky); background: rgba(120,200,255,.16); }
.adm-modes input { margin: 3px 0 0; accent-color: #6cc6ff; width: 18px; height: 18px; flex: none; }
.adm-modes span { display: grid; gap: 2px; }
.adm-modes small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.adm-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.adm-fields .field[hidden] { display: none; }
.adm-hint { margin: 0; padding: 12px 16px; border-radius: 14px; background: var(--tile-2); color: var(--ink); font-size: 13.5px; }
.adm-hint:empty { display: none; }
.adm-save { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* phones: the rail becomes a bottom bar */
@media (max-width: 760px) {
  .cab-dk .cab-main { padding: 68px 12px calc(84px + env(safe-area-inset-bottom)); }
  .cab-dk .cab-main:has(#auth:not([hidden])) { padding: 72px 16px 24px; }
  .dash { padding-left: 0; }
  .cab-shell { padding: 20px 16px 20px; border-radius: 24px; }
  .cab-tabs { top: auto; bottom: calc(8px + env(safe-area-inset-bottom)); left: 8px; right: 8px; translate: none; display: flex; gap: 0; padding: 4px; border-radius: 22px; }
  .rail-pill { height: 54px; }
  .cab-tabs a { flex: 1 1 0; min-width: 0; width: auto; height: 54px; align-content: center; gap: 2px; padding: 0 1px; border-radius: 16px; }
  .cab-tabs a svg { width: 21px; height: 21px; }
  .cab-tabs span { position: static; translate: none; max-width: 100%; padding: 0; overflow: hidden; text-overflow: ellipsis; font-size: 10px; font-weight: 600; background: none; border: 0; visibility: visible; }
  .ov-card { padding: 20px; }
  .hero-act { justify-items: stretch; width: 100%; }
  .hero-act small { text-align: center; }
  .ov-looks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ov-empty { min-height: 132px; }
  .sk-site { height: 409px; }
  .sk-sum { height: 210px; }
  .sec-head { flex-direction: column; align-items: stretch; }
  .sub-card { grid-template-columns: minmax(0, 1fr); padding: 20px; }
  .fr-link, .dress-new { flex-direction: column; }
  .fr-link input { padding: 0 12px; }
  .add-site { grid-template-columns: minmax(0, 1fr); }
  .adm-modes, .adm-fields { grid-template-columns: minmax(0, 1fr); }
  .cab.admin .cab-main { padding: 68px 12px 24px; }
  .cab.admin #app { padding: 16px 16px; border-radius: 24px; }
  .adm-save .btn { width: 100%; }
  .site, .summary, .fr-progress, .dress-box { padding-left: 16px; padding-right: 16px; }
  .summary .btn { width: 100%; }
  .set-list { padding: 4px 16px; }
  .set-danger { padding-left: 16px; }
  .looks-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .pw-layer { place-items: end center; padding: 0; }
  .pw-sheet { width: 100%; border-radius: 24px 24px 0 0; max-height: 92dvh; animation-name: pw-up; }
  @keyframes pw-up { from { transform: translateY(100%); } }
  .acct-btn { padding: 4px; }
  .cab-auth { padding: 24px 20px; }
}
@media (max-width: 340px) {
  .cab-tabs span { font-size: 9.5px; }
  .nums, .fr-stats { gap: 8px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .panel:not([hidden]) > *, .ov-look, .look, .pw-layer, .pw-sheet { animation: none; }
  .sk::after, .dash [data-sk]::after { animation: none; content: none; }
  .rail-pill.go, .bar i, .btn, .tlink, .linkish, .pw-opt, .ov-look, .set-more summary::before { transition: none; }
  .btn:active:not(:disabled), .tlink:active, .linkish:active, .pw-opt:active:not(:disabled), a.num:active, .ov-look:hover, .cab-tabs a:active svg { transform: none; }
}

/* Decart keys in the admin page */
.key-list { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 8px; }
.key-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 8px 16px; align-items: center; padding: 12px 12px; border: 1px solid var(--line); border-radius: 12px; }
.key-name { min-width: 0; display: grid; }
.key-name small { color: var(--muted); overflow-wrap: anywhere; }
.key-status { font-size: 13px; font-weight: 600; color: var(--muted); }
.key-ok .key-status { color: var(--good); }
.key-empty .key-status, .key-invalid .key-status { color: var(--bad); }
.key-money { font-variant-numeric: tabular-nums; }
.key-tools { display: flex; gap: 12px; flex-wrap: wrap; }
.key-add { display: grid; gap: 8px; margin-top: 12px; }
.key-add textarea, .key-add input { width: 100%; box-sizing: border-box; min-height: 44px; padding: 12px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--well); color: var(--ink); font: inherit; font-size: 16px; }
.key-add .btn { justify-self: start; }
@media (max-width: 640px) { .key-row { grid-template-columns: minmax(0, 1fr) auto; } .key-tools { grid-column: 1 / -1; } }
