:root {
  --ink: #1d1d1b; --muted: #6b6963; --line: #e7e4de; --bg: #faf9f7; --card: #fff;
  --accent: #e4573d; --accent-hi: #f06a50; --danger: #b3261e;      /* same orange as the public website */
  --serif: "Jost", "Futura", "Avenir Next", "Segoe UI", sans-serif;      /* display */
  --sans: "DM Sans", "Helvetica Neue", Arial, system-ui, sans-serif;     /* body */
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
h1, h2 { font-weight: 500; }

/* ---------- buttons & forms (admin) ---------- */
.btn { font: 500 14px var(--sans); border-radius: 999px; padding: 10px 16px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); cursor: pointer; text-decoration: none; display: inline-block; white-space: nowrap; }
.btn:hover { border-color: #c9c5bd; }
.btn.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn.primary:hover { background: var(--accent-hi); border-color: var(--accent-hi); }
.btn.ghost { background: transparent; }
.btn.small { padding: 6px 12px; font-size: 13px; }
.danger-btn { color: var(--danger); background: transparent; border-color: #ecc9c6; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; cursor: pointer; }
label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 14px; }
input:not([type=checkbox]) { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; font: 15px var(--sans);
  border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); }
input:focus { outline: 2px solid #c9c5bd; outline-offset: 0; }
.admin input[type=checkbox], .admin input[type=radio] { accent-color: var(--accent); }
label.check { display: flex; align-items: center; gap: 8px; font-weight: 400; font-size: 14px; }
.error { color: var(--danger); font-size: 14px; }

/* ---------- admin layout ---------- */
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 14px 24px;
  border-bottom: 1px solid var(--line); background: var(--card); position: sticky; top: 0; z-index: 5; }
.topbar .brand { font: 400 15px var(--serif); text-decoration: none; letter-spacing: .24em; text-transform: uppercase; white-space: nowrap; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 28px 24px 80px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 22px; }
.page-head h1 { font: 400 32px/1.15 var(--serif); margin: 0; letter-spacing: .01em; }
.page-head p { margin: 4px 0 0; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 20px; margin-bottom: 20px; }
.panel h2 { font-size: 16px; font-weight: 600; margin: 0 0 4px; }
.panel p { margin: 0; }
.share { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.linkrow { display: flex; gap: 8px; flex: 1 1 380px; max-width: 560px; }
.linkrow input { margin: 0; font-size: 14px; }
.drop { border: 1.5px dashed #d3cfc7; border-radius: 8px; padding: 34px 20px; text-align: center; transition: .15s; }
.drop.over { background: #f3f1ec; border-color: var(--accent); }
.drop p { margin: 4px 0; }
.bar { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; margin: 16px auto 6px; max-width: 420px; }
.bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; text-decoration: none; transition: .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.06); }
.card-img { aspect-ratio: 4/3; background: #eeebe5; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; font-size: 14px; }
.empty { text-align: center; padding: 70px 20px; border: 1px dashed var(--line); border-radius: 10px; }
.agrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 8px 0 24px; }
.athumb { margin: 0; position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.athumb img, .athumb .ph { width: 100%; aspect-ratio: 1; object-fit: cover; background: #f0ede8; }
.athumb .ph { display: grid; place-items: center; font-size: 12px; color: var(--muted); }
.athumb .ph.err { color: var(--danger); }
.athumb figcaption { font-size: 11px; padding: 6px 8px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.athumb.is-cover { outline: 2px solid var(--accent); }
.athumb.is-cover::before { content: "Cover"; position: absolute; top: 6px; left: 6px; background: var(--accent); color: #fff;
  font-size: 10px; padding: 3px 7px; border-radius: 3px; letter-spacing: .05em; text-transform: uppercase; z-index: 1; }
.aactions { position: absolute; top: 6px; right: 6px; display: flex; gap: 4px; opacity: 0; transition: .15s; }
.athumb:hover .aactions, .athumb:focus-within .aactions { opacity: 1; }
@media (hover: none) { .aactions { opacity: 1; } }
.aactions form { margin: 0; }
.ibtn { width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); cursor: pointer; font-size: 13px; }
.ibtn:hover { background: #fff; }
.settings .sform { max-width: 460px; margin-top: 14px; }
.danger { display: flex; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.danger form { margin: 0; }
.dlg { border: 0; border-radius: 12px; padding: 24px; width: min(440px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(0,0,0,.2); }
.dlg::backdrop { background: rgba(20,20,18,.35); }
.dlg h2 { font: 500 26px var(--serif); margin: 0 0 16px; }
.dlg-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 32px; width: min(380px, 100%); }
.login-card .brand { font: 500 18px var(--serif); margin: 0; color: var(--muted); }
.login-card h1 { font: 500 30px var(--serif); margin: 4px 0 20px; }
.login-card .btn { width: 100%; margin-top: 6px; }
/* admin: adding and arranging photos */
.drop { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.add-btn { min-height: 48px; padding: 0 26px; font-size: 15px; }
.drop-hint { max-width: 460px; }
.photos-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 10px; margin: 8px 0 10px; }
.photos-head p { margin: 2px 0 0; }
.h2 { font-size: 16px; font-weight: 600; margin: 0; }
.photos-tools { display: flex; align-items: center; gap: 10px; }
.saved { color: #2f6b4f; min-height: 1em; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; min-height: 40px; display: inline-flex; align-items: center; }
.menu summary::-webkit-details-marker { display: none; }
.menu-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 8; background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0,0,0,.1); padding: 6px; display: flex; flex-direction: column; min-width: 230px; margin: 0; }
.menu-list button { text-align: left; background: none; border: 0; padding: 11px 12px; border-radius: 6px; font: 14px var(--sans); color: var(--ink); cursor: pointer; }
.menu-list button:hover { background: #f3f1ec; }
.athumb { background: var(--card); touch-action: manipulation; cursor: grab; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.athumb img { background: var(--ph); }
.athumb .num { position: absolute; left: 6px; bottom: 30px; z-index: 1; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px;
  background: rgba(255,255,255,.92); font-size: 11px; font-weight: 600; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.drag-ghost { opacity: .35; }
/* cover + focal point */
.cover-panel { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 20px; align-items: start; }
.focus-pick { position: relative; cursor: crosshair; border-radius: 8px; overflow: hidden; background: #eee; touch-action: none; user-select: none; }
.focus-pick img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.focus-dot { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 3px solid #fff;
  box-shadow: 0 0 0 2px rgba(0,0,0,.45), 0 2px 10px rgba(0,0,0,.35); background: rgba(255,255,255,.25); pointer-events: none; }
.focus-previews { display: flex; gap: 14px; align-items: flex-end; }
.fp { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted); }
.fp-box { border-radius: 6px; background: #ddd center / cover no-repeat; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.fp-phone { width: 92px; aspect-ratio: 9 / 19.5; }
.fp-desk { width: 190px; aspect-ratio: 16 / 9; }
@media (max-width: 760px) { .cover-panel { grid-template-columns: minmax(0, 1fr); } .fp-desk { width: 160px; } }
.drag-chosen { box-shadow: 0 0 0 2px var(--accent); }
.drag-moving { transform: rotate(1.5deg); box-shadow: 0 16px 36px rgba(0,0,0,.22); opacity: .95 !important; cursor: grabbing; }
.on-touch { display: none; }
@media (hover: none) { .on-touch { display: inline; } .on-mouse { display: none; } }

@media (max-width: 640px) {
  .agrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .athumb figcaption { display: none; }
  .athumb .num { bottom: 6px; }
  .aactions { top: 4px; right: 4px; }
  .ibtn { width: 30px; height: 30px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card-body { padding: 10px; font-size: 13px; }
  .panel { padding: 16px; }
  .page-head h1 { font-size: 28px; }
  .wrap { padding: 20px 16px 60px; }
  .topbar { padding: 12px 16px; }
  .page-head { flex-direction: column; }
  .linkrow { flex-direction: column; }
}

/* ---------- client gallery ---------- */
.client { background: #fff; }
.hero { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: var(--bg, #111); color: #fff; }
.hero-bg { position: absolute; inset: 0; background: center / cover no-repeat; background-position: var(--focus, center); }
.hero-bg:not(.full) { background-image: var(--thumb); filter: blur(14px); transform: scale(1.06); }
.hero-bg.full { background-image: var(--cover); opacity: 0; transition: opacity .6s ease; }
.hero.loaded .hero-bg.full { opacity: 1; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.35)); }
.hero-text { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; }
.hero h1 { font: 300 clamp(40px, 7vw, 84px) var(--serif); letter-spacing: .1em; text-transform: uppercase; margin: 0; text-shadow: 0 2px 20px rgba(0,0,0,.25); }
.hero-sub { font-size: 14px; letter-spacing: .14em; text-transform: uppercase; margin: 10px 0 0; opacity: .9; }
.hero-btn { margin-top: 30px; padding: 12px 26px; border: 1px solid rgba(255,255,255,.85); text-decoration: none; font-size: 12px;
  letter-spacing: .2em; text-transform: uppercase; transition: .2s; }
.hero-btn:hover { background: #fff; color: #111; }
.hero-brand { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; z-index: 1; margin: 0;
  font-size: 11px; letter-spacing: .25em; text-transform: uppercase; opacity: .85; }
.cbar { position: sticky; top: 0; z-index: 4; background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid #f0eee9; }
.ctitle { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.cbrand { margin: 2px 0 0; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.cbtn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 13px; font-weight: 500;
  padding: 9px 14px; border: 1px solid var(--ink); border-radius: 999px; transition: .15s; }
.cbtn:hover { background: var(--ink); color: #fff; }
.cbtn small { color: inherit; opacity: .65; font-weight: 400; }
.cbtn svg, .jdl svg, .lb svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* justified rows: each tile grows in proportion to its aspect ratio */
.jgrid { --h: 300px; display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; }
.jitem { position: relative; flex-grow: calc(var(--r) * 100); width: calc(var(--r) * var(--h)); aspect-ratio: var(--r); background: #f2f0ec; overflow: hidden; cursor: zoom-in; }
.jitem img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, opacity .2s; }
.jitem:hover img { transform: scale(1.015); }
.jfill { flex-grow: 1000000; }
.jdl { position: absolute; right: 10px; bottom: 10px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.92); color: #111; opacity: 0; transition: .15s; cursor: pointer; }
.jitem:hover .jdl { opacity: 1; }
.jdl:hover { background: #fff; transform: scale(1.06); }
@media (hover: none) { .jdl { display: none; } }
/* selecting photos */
.cbar-right { display: flex; align-items: center; gap: 8px; }
.cbar-sel { display: flex; flex: 1 1 auto; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.ctext { min-height: 44px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; font: 500 13px var(--sans); color: var(--ink); }
.ctext:hover { background: #f2f0ec; }
.sel-count { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cbtn.dark { background: var(--ink); color: #fff; font-family: var(--sans); cursor: pointer; }
.cbtn.dark:disabled { background: #ecebe7; border-color: #ecebe7; color: var(--muted); cursor: default; }
.ctip { margin: 0; padding: 8px 16px 2px; text-align: center; font-size: 13px; color: var(--muted); }
.jgrid { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.jgrid img { -webkit-user-drag: none; }
.jcheck { position: absolute; top: 10px; left: 10px; width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; background: rgba(0,0,0,.22);
  display: grid; place-items: center; color: transparent; pointer-events: none; opacity: 0; transform: scale(.8); transition: opacity .15s, transform .15s, background .15s; }
.jcheck svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
body.selecting .jcheck { opacity: 1; transform: scale(1); }
body.selecting .cbar-title { display: none; }
body.selecting .jitem { cursor: pointer; }
body.selecting .jdl { display: none; }
body.selecting .jitem:hover img { transform: none; }
.jitem.on .jcheck { background: var(--ink); color: #fff; }
.jitem.on img { transform: scale(.9) !important; }
.jitem.on::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 3px var(--ink); pointer-events: none; }
@media (max-width: 560px) { .nophone { display: none; } .cbar-right .cbtn small { display: none; } }
@media (max-width: 900px) { .jgrid { --h: 200px; } }
.jitem { background: var(--ph, #f2f0ec); }
.jitem img { opacity: 0; transition: opacity .25s ease, transform .4s ease; }
.jitem img.in { opacity: 1; }
@media (max-width: 820px) { .hero { background-color: var(--bg-m, var(--bg, #111)); } .hero-bg { background-position: var(--mfocus, var(--focus, center)); } .hero-bg:not(.full) { background-image: var(--thumb-m, var(--thumb)); } .hero-bg.full { background-image: var(--cover-m); } }
.lb-stage { touch-action: pinch-zoom; overflow: hidden; }
.lb-stage img { will-change: transform; }
@media (max-width: 560px) {
  .jgrid { --h: 130px; gap: 3px; padding: 3px; }
  .cbar { padding: 10px 12px; }
  .cbtn small { display: none; }
}
.cempty { text-align: center; color: var(--muted); padding: 60px 20px; }
.cfoot { text-align: center; padding: 40px 20px 50px; font: 400 16px var(--serif); color: var(--muted); letter-spacing: .05em; }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 20; background: #0d0d0c; color: #fff; display: grid; grid-template-rows: auto 1fr; }
.lb[hidden] { display: none; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; font-size: 13px; color: #bbb; }
.lb-actions { display: flex; gap: 6px; }
.lb-b { display: inline-flex; align-items: center; gap: 8px; color: #fff; background: transparent; border: 0; padding: 8px 12px;
  border-radius: 999px; cursor: pointer; text-decoration: none; font: 500 13px var(--sans); }
.lb-b:hover { background: rgba(255,255,255,.12); }
.lb-stage { display: grid; place-items: center; padding: 0 64px 20px; min-height: 0; }
.lb-stage img { max-width: 100%; max-height: calc(100vh - 80px); max-height: calc(100svh - 80px); object-fit: contain; user-select: none; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.08); color: #fff; cursor: pointer; display: grid; place-items: center; }
.lb-nav:hover { background: rgba(255,255,255,.18); }
.lb-nav.prev { left: 10px; } .lb-nav.next { right: 10px; }
@media (max-width: 640px) { .lb-stage { padding: 0 0 10px; } .lb-nav { display: none; } .lb-b span { display: none; } }

/* ---------- admin: sections, sharing, website ---------- */
.topbar { flex-wrap: wrap; gap: 10px 18px; }
.atabs { display: flex; gap: 4px; flex: 1 1 auto; }
.atabs a { text-decoration: none; font-size: 14px; padding: 9px 14px; border-radius: 999px; color: var(--muted); white-space: nowrap; }
.atabs a:hover { background: #f1efea; color: var(--ink); }
.atabs a[aria-current="page"] { background: var(--accent); color: #fff; }
.topbar-right { display: flex; align-items: center; gap: 8px; }
.topbar-right form { margin: 0; }
.crumb { display: inline-block; font-size: 14px; color: var(--muted); text-decoration: none; padding: 6px 0; margin-bottom: 8px; }
.crumb:hover { color: var(--ink); }
.wrap.narrow { max-width: 760px; }
.notice { background: #eef6f0; color: #255c3f; border: 1px solid #cfe6d7; border-radius: 8px; padding: 12px 14px; margin: 0 0 18px; }
textarea { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; font: 15px/1.5 var(--sans); border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); resize: vertical; }
.sform.wide { max-width: none; }
.slugrow { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.slugrow input { margin: 0; }
.sharebox { display: flex; flex-direction: column; gap: 12px; flex: 1 1 420px; max-width: 560px; }
.sharebox .linkrow { max-width: none; flex: none; align-items: stretch; }   /* flex column: don't grow tall */
.pinrow { display: flex; align-items: center; gap: 14px; }
.pinrow form { margin: 0; }
.pinlabel { font-size: 12px; font-weight: 600; letter-spacing: .14em; color: var(--muted); }
.pinvalue { font: 500 26px var(--sans); letter-spacing: .3em; font-variant-numeric: tabular-nums; }
.linkbtn.small { font-size: 13px; color: var(--muted); }
.pubform { display: flex; align-items: center; gap: 12px; margin: 0; flex-wrap: wrap; }
.pubstate { font-size: 13px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: #f1efea; color: var(--muted); }
.pubstate.on { background: #e6f3ea; color: #255c3f; }
.card-img { position: relative; }
.badge { position: absolute; left: 8px; top: 8px; font-size: 11px; font-weight: 600; padding: 4px 8px; border-radius: 4px; background: rgba(255,255,255,.92); color: var(--muted); }
.badge.live { color: #255c3f; }
.badge.home { top: auto; bottom: 8px; background: var(--ink); color: #fff; }
.cards .card { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
@media (max-width: 760px) {
  .topbar { padding: 10px 16px; }
  .atabs { order: 3; flex: 1 1 100%; overflow-x: auto; }
  .atabs a { padding: 8px 12px; font-size: 13px; }
  .topbar-right .btn.small { padding: 6px 10px; }
}

/* ---------- client PIN page ---------- */
.pin-page { background: #fff; }
.pin-wrap { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 40px max(20px, env(safe-area-inset-right, 0px)) 40px max(20px, env(safe-area-inset-left, 0px)); gap: 10px; }
.pin-brand { font: 400 13px var(--serif); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); text-decoration: none; margin-bottom: 18px; }
.pin-title { margin: 0; font: 300 clamp(32px, 7vw, 54px)/1.1 var(--serif); letter-spacing: .1em; text-transform: uppercase; text-wrap: balance; }
.pin-lead { margin: 6px 0 20px; color: var(--muted); max-width: 36ch; }
.pin-form { display: flex; flex-direction: column; align-items: center; gap: 10px; width: min(300px, 100%); }
.pin-form input { text-align: center; font: 500 30px var(--sans); letter-spacing: .5em; padding: 14px 0 14px .5em; border: 1.5px solid #d9d6cf; border-radius: 12px; }
.pin-form input:focus { border-color: var(--ink); outline: none; }
.pin-error { min-height: 1.5em; margin: 0; color: var(--danger); font-size: 14px; }
.pin-error:empty { min-height: 0; }
.pin-btn { width: 100%; min-height: 50px; border: 0; border-radius: 12px; background: var(--ink); color: #fff; font: 500 15px var(--sans); cursor: pointer; }
.cfoot a { text-decoration: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- saving photos on phones (save.js) ---------- */
.save-sheet { position: fixed; inset: 0; z-index: 95; background: rgba(10,10,10,.55); display: flex; align-items: flex-end; justify-content: center; }
.save-sheet[hidden] { display: none; }
.save-card { position: relative; width: min(100%, 480px); background: #fff; color: var(--ink); border-radius: 18px 18px 0 0;
  padding: 26px 22px calc(24px + env(safe-area-inset-bottom, 0px)); box-sizing: border-box; display: flex; flex-direction: column; gap: 12px;
  animation: saveUp .25s ease; }
@keyframes saveUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.save-x { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border: 0; background: none; font-size: 18px; cursor: pointer; color: var(--muted); }
.save-title { margin: 0; padding-right: 36px; font: 500 21px/1.25 var(--serif); }
.save-text { margin: 0; color: var(--muted); font-size: 15px; min-height: 1.4em; }
.save-bar { height: 6px; border-radius: 3px; background: #ece9e3; overflow: hidden; }
.save-bar span { display: block; height: 100%; width: 0; background: var(--ink); transition: width .2s; }
.save-go { min-height: 54px; border: 0; border-radius: 12px; background: var(--ink); color: #fff; font: 600 16px var(--sans); cursor: pointer; }
.save-go:disabled { background: #b9b5ad; cursor: default; }
.save-help { margin: 0; font-size: 14px; color: var(--muted); }
.save-alt { font-size: 13px; color: var(--muted); text-align: center; }
.save-toast { position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); background: #1d1d1b; color: #fff;
  padding: 14px 16px; border-radius: 12px; font-size: 14px; line-height: 1.45; box-shadow: 0 8px 30px rgba(0,0,0,.25); }
.save-toast[hidden] { display: none; }
.save-nums { margin: -4px 0 0; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; min-height: 1.3em; }
.save-bar span.done { background: #2f7d4f; }
.save-sheet.corner { inset: auto max(16px, env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) auto; background: none; display: block; }
.save-sheet.corner .save-card { width: min(380px, calc(100vw - 32px)); border-radius: 14px; box-shadow: 0 12px 40px rgba(0,0,0,.18); border: 1px solid var(--line); padding: 20px 20px 18px; }
.save-sheet.corner .save-title { font-size: 18px; }
.abadge { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 4px; border-radius: 9px; background: #e4573d; color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
.atabs a[aria-current="page"] .abadge { background: #fff; color: var(--accent); }

.pin-legal { margin: 26px 0 0; font-size: 13px; opacity: .7; }
.pin-legal a, .cfoot a { color: inherit; }

/* ---------- client cover: where the title sits (chosen per gallery, separately for computers and phones) ---------- */
.hero-text { justify-content: var(--jc, center); align-items: var(--ai, center); text-align: var(--ta, center);
  padding: clamp(70px, 9vh, 110px) clamp(24px, 7vw, 110px) clamp(70px, 10vh, 120px); }
.hero::after { background: var(--shade, linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.35))); }
@media (min-width: 821px) {
.hero[data-pos="top-left"] { --jc: flex-start; --ai: flex-start; --ta: left; --shade: linear-gradient(180deg, rgba(0,0,0,.5), rgba(0,0,0,.1) 55%, rgba(0,0,0,.05)); }
.hero[data-pos="top"] { --jc: flex-start; --ai: center; --ta: center; --shade: linear-gradient(180deg, rgba(0,0,0,.5), rgba(0,0,0,.1) 55%, rgba(0,0,0,.05)); }
.hero[data-pos="top-right"] { --jc: flex-start; --ai: flex-end; --ta: right; --shade: linear-gradient(180deg, rgba(0,0,0,.5), rgba(0,0,0,.1) 55%, rgba(0,0,0,.05)); }
.hero[data-pos="left"] { --jc: center; --ai: flex-start; --ta: left; --shade: linear-gradient(90deg, rgba(0,0,0,.5), rgba(0,0,0,.1) 55%, rgba(0,0,0,.05)); }
.hero[data-pos="center"] { --jc: center; --ai: center; --ta: center; --shade: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.35)); }
.hero[data-pos="right"] { --jc: center; --ai: flex-end; --ta: right; --shade: linear-gradient(270deg, rgba(0,0,0,.5), rgba(0,0,0,.1) 55%, rgba(0,0,0,.05)); }
.hero[data-pos="bottom-left"] { --jc: flex-end; --ai: flex-start; --ta: left; --shade: linear-gradient(0deg, rgba(0,0,0,.5), rgba(0,0,0,.1) 55%, rgba(0,0,0,.05)); }
.hero[data-pos="bottom"] { --jc: flex-end; --ai: center; --ta: center; --shade: linear-gradient(0deg, rgba(0,0,0,.5), rgba(0,0,0,.1) 55%, rgba(0,0,0,.05)); }
.hero[data-pos="bottom-right"] { --jc: flex-end; --ai: flex-end; --ta: right; --shade: linear-gradient(0deg, rgba(0,0,0,.5), rgba(0,0,0,.1) 55%, rgba(0,0,0,.05)); }
}
@media (max-width: 820px) {
  .hero-text { padding: 76px 24px 84px; }
.hero[data-mpos="top-left"] { --jc: flex-start; --ai: flex-start; --ta: left; --shade: linear-gradient(180deg, rgba(0,0,0,.5), rgba(0,0,0,.1) 55%, rgba(0,0,0,.05)); }
.hero[data-mpos="top"] { --jc: flex-start; --ai: center; --ta: center; --shade: linear-gradient(180deg, rgba(0,0,0,.5), rgba(0,0,0,.1) 55%, rgba(0,0,0,.05)); }
.hero[data-mpos="top-right"] { --jc: flex-start; --ai: flex-end; --ta: right; --shade: linear-gradient(180deg, rgba(0,0,0,.5), rgba(0,0,0,.1) 55%, rgba(0,0,0,.05)); }
.hero[data-mpos="left"] { --jc: center; --ai: flex-start; --ta: left; --shade: linear-gradient(90deg, rgba(0,0,0,.5), rgba(0,0,0,.1) 55%, rgba(0,0,0,.05)); }
.hero[data-mpos="center"] { --jc: center; --ai: center; --ta: center; --shade: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.35)); }
.hero[data-mpos="right"] { --jc: center; --ai: flex-end; --ta: right; --shade: linear-gradient(270deg, rgba(0,0,0,.5), rgba(0,0,0,.1) 55%, rgba(0,0,0,.05)); }
.hero[data-mpos="bottom-left"] { --jc: flex-end; --ai: flex-start; --ta: left; --shade: linear-gradient(0deg, rgba(0,0,0,.5), rgba(0,0,0,.1) 55%, rgba(0,0,0,.05)); }
.hero[data-mpos="bottom"] { --jc: flex-end; --ai: center; --ta: center; --shade: linear-gradient(0deg, rgba(0,0,0,.5), rgba(0,0,0,.1) 55%, rgba(0,0,0,.05)); }
.hero[data-mpos="bottom-right"] { --jc: flex-end; --ai: flex-end; --ta: right; --shade: linear-gradient(0deg, rgba(0,0,0,.5), rgba(0,0,0,.1) 55%, rgba(0,0,0,.05)); }
}
/* the same positions in the admin preview */
.tprev[data-p="top-left"] { --jc: flex-start; --ai: flex-start; --ta: left; --shade: linear-gradient(180deg, rgba(0,0,0,.5), rgba(0,0,0,.1) 55%, rgba(0,0,0,.05)); }
.tprev[data-p="top"] { --jc: flex-start; --ai: center; --ta: center; --shade: linear-gradient(180deg, rgba(0,0,0,.5), rgba(0,0,0,.1) 55%, rgba(0,0,0,.05)); }
.tprev[data-p="top-right"] { --jc: flex-start; --ai: flex-end; --ta: right; --shade: linear-gradient(180deg, rgba(0,0,0,.5), rgba(0,0,0,.1) 55%, rgba(0,0,0,.05)); }
.tprev[data-p="left"] { --jc: center; --ai: flex-start; --ta: left; --shade: linear-gradient(90deg, rgba(0,0,0,.5), rgba(0,0,0,.1) 55%, rgba(0,0,0,.05)); }
.tprev[data-p="center"] { --jc: center; --ai: center; --ta: center; --shade: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.35)); }
.tprev[data-p="right"] { --jc: center; --ai: flex-end; --ta: right; --shade: linear-gradient(270deg, rgba(0,0,0,.5), rgba(0,0,0,.1) 55%, rgba(0,0,0,.05)); }
.tprev[data-p="bottom-left"] { --jc: flex-end; --ai: flex-start; --ta: left; --shade: linear-gradient(0deg, rgba(0,0,0,.5), rgba(0,0,0,.1) 55%, rgba(0,0,0,.05)); }
.tprev[data-p="bottom"] { --jc: flex-end; --ai: center; --ta: center; --shade: linear-gradient(0deg, rgba(0,0,0,.5), rgba(0,0,0,.1) 55%, rgba(0,0,0,.05)); }
.tprev[data-p="bottom-right"] { --jc: flex-end; --ai: flex-end; --ta: right; --shade: linear-gradient(0deg, rgba(0,0,0,.5), rgba(0,0,0,.1) 55%, rgba(0,0,0,.05)); }

/* ---------- title position picker (admin) ---------- */
.tp-label { margin: 0 0 6px; font-size: 13px; font-weight: 600; }
.tpick { display: grid; grid-template-columns: repeat(3, 34px); grid-auto-rows: 26px; gap: 4px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); width: max-content; }
.tpick button { border: 1px solid var(--line); border-radius: 5px; background: #f6f4f0; cursor: pointer; display: grid; place-items: center; padding: 0; }
.tpick button span { width: 12px; height: 3px; border-radius: 2px; background: #b9b5ad; }
.tpick button:hover { border-color: var(--accent); }
.tpick button[aria-checked="true"] { background: var(--accent); border-color: var(--accent); }
.tpick button[aria-checked="true"] span { background: #fff; }
.tp-cap { margin: 8px 0 0; }

/* ---------- themes for the admin, client galleries and PIN screen ----------
   Chosen in Website → Theme. "classic" is the original flat look; the others are glass:
   a soft backdrop (a blurred cover photo and/or warm glows) with frosted panels on top. */
:root[data-theme="photo"], :root:not([data-theme]) {
  --g-photo: var(--photo, none); --g-base: radial-gradient(60% 60% at 20% 10%, #f3dccb, transparent), #f2ede7;
  --g-veil: linear-gradient(180deg, rgba(251,250,248,.72), rgba(251,250,248,.86));
  --g-surface: rgba(255,255,255,.72); --g-bar: rgba(255,255,255,.74); --g-chip: rgba(255,255,255,.7); --g-card: rgba(255,255,255,.66);
  --g-field: rgba(255,255,255,.88); --g-edge: rgba(255,255,255,.85); --g-line: rgba(40,30,20,.08); --g-ctl: rgba(40,30,20,.12);
  --g-shadow: 0 10px 34px rgba(40,30,20,.07), inset 0 1px 0 rgba(255,255,255,.9); --g-muted: #5f5c56;
}
:root[data-theme="frost"] {
  --g-photo: none;
  --g-base: radial-gradient(40% 50% at 12% 8%, rgba(240,140,100,.5), transparent 70%), radial-gradient(45% 55% at 92% 22%, rgba(250,195,145,.55), transparent 70%),
            radial-gradient(50% 60% at 70% 100%, rgba(232,120,90,.28), transparent 70%), #f6f1ea;
  --g-veil: none;
  --g-surface: rgba(255,255,255,.64); --g-bar: rgba(255,255,255,.6); --g-chip: rgba(255,255,255,.6); --g-card: rgba(255,255,255,.7);
  --g-field: rgba(255,255,255,.85); --g-edge: rgba(255,255,255,.8); --g-line: rgba(40,30,20,.08); --g-ctl: rgba(40,30,20,.12);
  --g-shadow: 0 10px 30px rgba(90,60,30,.07), inset 0 1px 0 rgba(255,255,255,.85); --g-muted: #5f5c56;
}
:root[data-theme="night"] {
  --g-photo: var(--photo, none); --g-base: #5e5650;
  --g-veil: linear-gradient(180deg, rgba(92,82,76,.58), rgba(78,70,65,.68));
  --g-surface: rgba(255,255,255,.16); --g-bar: rgba(74,67,62,.52); --g-chip: rgba(255,255,255,.16); --g-card: rgba(255,255,255,.16);
  --g-field: rgba(255,255,255,.16); --g-edge: rgba(255,255,255,.24); --g-line: rgba(255,255,255,.16); --g-ctl: rgba(255,255,255,.3);
  --g-shadow: 0 12px 36px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.14); --g-muted: #ffffff;
}
:root:not([data-theme="classic"]) body.admin, :root:not([data-theme="classic"]) body.client, :root:not([data-theme="classic"]) body.pin-page { --muted: var(--g-muted); background: #f6f3ef; position: relative; isolation: isolate; }
:root:not([data-theme="classic"]) body.admin::before, :root:not([data-theme="classic"]) body.client::before, :root:not([data-theme="classic"]) body.pin-page::before { content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: var(--g-photo) center / cover no-repeat, var(--g-base); filter: saturate(115%); }
:root:not([data-theme="classic"]) body.admin::after, :root:not([data-theme="classic"]) body.client::after, :root:not([data-theme="classic"]) body.pin-page::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--g-veil); }
:root:not([data-theme="classic"]) .admin .panel, :root:not([data-theme="classic"]) .admin .card, :root:not([data-theme="classic"]) .admin .empty { background: var(--g-surface); border: 1px solid var(--g-edge); box-shadow: var(--g-shadow); border-radius: 16px;
  -webkit-backdrop-filter: blur(20px) saturate(140%); backdrop-filter: blur(20px) saturate(140%); }
:root:not([data-theme="classic"]) .admin .card:hover { box-shadow: 0 14px 34px rgba(40,30,20,.11), inset 0 1px 0 rgba(255,255,255,.6); }
:root:not([data-theme="classic"]) .card-img { background: rgba(255,255,255,.4); }
:root:not([data-theme="classic"]) .topbar { background: var(--g-bar); border-bottom-color: var(--g-line); -webkit-backdrop-filter: blur(22px) saturate(150%); backdrop-filter: blur(22px) saturate(150%); }
:root:not([data-theme="classic"]) .admin .btn:not(.primary) { background: var(--g-chip); border-color: var(--g-ctl); }
:root:not([data-theme="classic"]) .admin .btn.primary { box-shadow: 0 6px 16px rgba(228, 87, 61, .22), inset 0 1px 0 rgba(255,255,255,.3); }
:root:not([data-theme="classic"]) .admin input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]), :root:not([data-theme="classic"]) .admin select, :root:not([data-theme="classic"]) .admin textarea { background: var(--g-field); border-color: var(--g-ctl); border-radius: 10px; }
:root:not([data-theme="classic"]) .client { background: transparent; }
:root:not([data-theme="classic"]) .cbar { background: var(--g-bar); border-bottom-color: var(--g-line); -webkit-backdrop-filter: blur(24px) saturate(150%); backdrop-filter: blur(24px) saturate(150%); }
:root:not([data-theme="classic"]) .client .jgrid { gap: 8px; padding: 8px; }
:root:not([data-theme="classic"]) .client .jitem { border-radius: 8px; background: rgba(255,255,255,.55); }
:root:not([data-theme="classic"]) .jdl { background: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.8); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
:root:not([data-theme="classic"]) .hero-btn { border-radius: 999px; border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.14);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }
:root:not([data-theme="classic"]) .hero-btn:hover { background: rgba(255,255,255,.92); }
:root:not([data-theme="classic"]) .pin-page { background: transparent; }
:root:not([data-theme="classic"]) .pin-wrap { position: relative; }
:root:not([data-theme="classic"]) .pin-wrap > * { position: relative; z-index: 1; }
:root:not([data-theme="classic"]) .pin-wrap::before { content: ""; position: absolute; z-index: 0; left: 50%; top: 50%; translate: -50% -50%;
  width: min(620px, calc(100% - 28px)); height: min(500px, calc(100% - 40px));
  background: var(--g-card); border: 1px solid var(--g-edge); border-radius: 28px; box-shadow: var(--g-shadow);
  -webkit-backdrop-filter: blur(26px) saturate(140%); backdrop-filter: blur(26px) saturate(140%); }
:root:not([data-theme="classic"]) .pin-form input { background: var(--g-field); border-color: var(--g-ctl); }
@media (prefers-reduced-transparency: reduce) {
  :root:not([data-theme="classic"]):not([data-theme="night"]) :is(.admin .panel, .admin .card, .topbar, .cbar, .pin-wrap::before) { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
/* Night glass: light text on dark glass */
:root[data-theme="night"] body.admin, :root[data-theme="night"] body.client, :root[data-theme="night"] body.pin-page {
  --ink: #ffffff; --line: rgba(255,255,255,.2); --card: rgba(255,255,255,.1); color: var(--ink); background: #5e5650; }
:root[data-theme="night"] body:is(.admin, .client, .pin-page)::before { filter: saturate(70%); }
:root[data-theme="night"] :is(.admin, .client, .pin-page) { text-shadow: 0 1px 2px rgba(0,0,0,.18); }
:root[data-theme="night"] :is(.admin, .client, .pin-page) :is(input, .btn.primary, img) { text-shadow: none; }
:root[data-theme="night"] :is(.admin, .client, .pin-page) :is(input, select, textarea) { color: var(--ink); }
:root[data-theme="night"] .admin :is(button, .btn, label, a, h1, h2, h3, strong) { color: inherit; }
:root[data-theme="night"] .admin .btn.primary { color: #fff; }
:root[data-theme="night"] .admin :is(.hx-sw button.hx-std, .hs-tools button, .hx-anim button, .tpick button, .seg button, .hx-seg button, .pv-toggle + *) { background: rgba(255,255,255,.16); color: var(--ink); }
:root[data-theme="night"] .admin .notice { background: rgba(120, 200, 140, .14); color: #d8f3dc; }
:root[data-theme="night"] .admin .notice.error { background: rgba(230, 90, 70, .16); color: #ffd9d2; }
:root[data-theme="night"] .atabs a { color: var(--g-muted); }
:root[data-theme="night"] .atabs a[aria-current="page"] { color: #fff; }
:root[data-theme="night"] .client .jitem { background: rgba(255,255,255,.06); }
:root[data-theme="night"] .cbtn { border-color: rgba(255,255,255,.6); }
:root[data-theme="night"] .cbtn:hover { background: #fff; color: #111; }
:root[data-theme="night"] .ctext:hover { background: rgba(255,255,255,.1); }
:root[data-theme="night"] .cbtn.dark:disabled { background: rgba(255,255,255,.1); border-color: transparent; color: var(--g-muted); }
:root[data-theme="night"] .pin-btn { background: #f3f0ea; color: #111; }
:root[data-theme="night"] .admin :is(table, th, td) { border-color: var(--line); }
:root:not([data-theme="classic"]) .admin .ecard { background: var(--g-surface); border-color: var(--g-edge); box-shadow: var(--g-shadow);
  -webkit-backdrop-filter: blur(20px) saturate(140%); backdrop-filter: blur(20px) saturate(140%); border-radius: 14px; }
:root:not([data-theme="classic"]) .admin .th-card { background: var(--g-chip); border-color: var(--g-ctl); }
:root[data-theme="night"] .admin :is(.estatus select, .covmenu) { background: #6a615b; color: var(--ink); border-color: var(--g-ctl); }
:root[data-theme="night"] .save-card { --ink: #1d1d1b; color: #1d1d1b; }
:root[data-theme="night"] .admin .ecard :is(a, .muted) { color: inherit; }
:root[data-theme="night"] .admin .edl dt { color: var(--g-muted); }
/* Night glass: every bit of text white for easy reading (except things sitting on their own light background) */
:root[data-theme="night"] body:is(.admin, .client, .pin-page) :is(p, span, label, dt, dd, small, li, a, h1, h2, h3, h4, td, th, figcaption, output, strong, em, summary, .muted)
  :not(.th-mini, .th-mini *, .save-card, .save-card *, .hero-btn, .cbtn, .cbtn *, .btn, .btn *, .estat, .abadge, .pv, .pv *, .lb, .lb *, .hs-warn) { color: #fff; }
:root[data-theme="night"] body:is(.admin, .client, .pin-page) :is(input, textarea)::placeholder { color: rgba(255,255,255,.75); }
:root[data-theme="night"] body.admin .btn:not(.primary):not(.wa):not(.danger) { color: #fff; }
:root[data-theme="night"] .admin :is(.tagp, .warnp, .pubstate, .pubstate.on) { background: rgba(255,255,255,.18); }
:root[data-theme="night"] .admin .badge:not(.home) { background: rgba(0,0,0,.5); }
:root[data-theme="night"] .admin :is(.atabs a:hover, .menu-list button:hover, .covmenu button:hover) { background: rgba(255,255,255,.15); color: #fff; }
:root[data-theme="night"] .admin .menu-list { background: #6a615b; }
:root[data-theme="night"] .admin .menu-list button { color: #fff; }

/* ---------- videos in the admin gallery ---------- */
.athumb .vbadge { position: absolute; right: 6px; bottom: 34px; display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px 2px 4px;
  border-radius: 999px; background: rgba(0,0,0,.62); color: #fff; font-size: 11px; font-variant-numeric: tabular-nums; pointer-events: none; }
.athumb .vbadge svg { width: 13px; height: 13px; fill: currentColor; }
.athumb .vstate { position: absolute; left: 0; right: 0; bottom: 27px; padding: 3px 8px; background: rgba(0,0,0,.55); color: #fff;
  font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.athumb .vstate:not([hidden]) ~ .vbadge, .athumb .vbadge:has(+ .vstate:not([hidden])) { bottom: 52px; }
.athumb .ph span { padding: 0 10px; text-align: center; }

/* ---------- videos in client galleries ---------- */
.jitem.jvid { cursor: pointer; }
.jplay { position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(0,0,0,.45); color: #fff; box-shadow: 0 0 0 1.5px rgba(255,255,255,.8) inset, 0 2px 12px rgba(0,0,0,.25);
  pointer-events: none; transition: transform .2s, background .2s; }
.jplay svg { width: 24px; height: 24px; margin-left: 3px; fill: currentColor; stroke: none; }
.jitem.jvid:hover .jplay { transform: scale(1.08); background: rgba(0,0,0,.55); }
.jdur { position: absolute; left: 10px; bottom: 10px; padding: 3px 8px; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff;
  font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; pointer-events: none; }
body.selecting .jplay { opacity: .5; }
@media (max-width: 560px) { .jplay { width: 40px; height: 40px; margin: -20px 0 0 -20px; } .jplay svg { width: 18px; height: 18px; } .jdur { left: 6px; bottom: 6px; font-size: 11px; padding: 2px 6px; } }
.lb-stage video { max-width: 100%; max-height: calc(100vh - 80px); max-height: calc(100svh - 80px); background: #000; will-change: transform; outline: none; }
/* quality choice */
.save-opts { display: flex; flex-direction: column; gap: 8px; }
.save-opts[hidden] { display: none; }
.save-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; padding: 10px 16px; text-align: left;
  border: 1px solid var(--line); border-radius: 12px; background: transparent; color: inherit; font: inherit; cursor: pointer; transition: border-color .15s, background .15s; }
.save-opt:hover:not(:disabled) { border-color: var(--ink); background: rgba(0,0,0,.03); }
.save-opt:disabled { cursor: default; opacity: .55; }
.so-l { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.so-l strong { font-size: 15px; font-weight: 600; }
.so-l small { font-size: 12.5px; color: var(--muted); }
.so-s { flex: none; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.save-opt:disabled .so-s { font-weight: 400; font-size: 13px; color: var(--muted); }
