/* LIDO ops (ops.lido.fit). Brand: docs/brand/LIDO_Brand_Guide.md. Obsidian rail, ivory canvas, gold rationed for
   what needs attention, hairlines, square corners. Fonts self-hosted (the CSP allows only self). */
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 300 500; font-display: swap; src: url(/fonts/cormorant.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 300 400; font-display: swap; src: url(/fonts/cormorant-italic.woff2) format('woff2'); }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 300 500; font-display: swap; src: url(/fonts/jost.woff2) format('woff2'); }

:root {
  --lido-gold: #E2BC7B;
  --lido-gold-burnished: #B08A4F;
  --lido-bronze: #7F5626;
  --lido-obsidian: #0E0C0A;
  --lido-ivory: #F6F0E6;
  --lido-sand: #DCCFB9;
  --lido-lagoon: #1E3F42;
  --lido-clay: #A86A4E;
  --paper: #FBF8F2;
  --ink: var(--lido-obsidian);
  --muted: #675D52;
  --hair: rgba(14, 12, 10, 0.12);
  --hair-strong: rgba(14, 12, 10, 0.24);
  --serif: 'Cormorant Garamond', Garamond, 'Times New Roman', serif;
  --sans: 'Jost', Futura, 'Helvetica Neue', Arial, sans-serif;
  --gutter: 40px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--lido-ivory); color: var(--ink); font-family: var(--sans); font-weight: 300; font-size: 15px; line-height: 1.55; letter-spacing: 0.01em; }
a { color: var(--lido-bronze); text-decoration: none; border-bottom: 1px solid rgba(127, 86, 38, 0.35); }
a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.num, td.num { font-variant-numeric: lining-nums tabular-nums; }
.eyebrow { font-family: var(--sans); font-weight: 500; font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; background: linear-gradient(90deg, var(--lido-obsidian) 236px, transparent 236px); }
.rail { background: var(--lido-obsidian); color: var(--lido-sand); padding: 34px 0 28px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.rail .mark { display: block; padding: 0 28px 6px; border: 0; }
.rail .mark img { display: block; height: 30px; width: auto; }
.rail .sub-mark { padding: 0 28px 30px; font-size: 10px; font-weight: 500; letter-spacing: 0.34em; text-transform: uppercase; color: rgba(220, 207, 185, 0.6); }
.rail h6 { margin: 22px 28px 8px; font-size: 10px; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(220, 207, 185, 0.45); }
.rail nav a { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 9px 28px 9px 26px; border: 0; border-left: 2px solid transparent;
  color: var(--lido-sand); font-size: 13px; font-weight: 400; letter-spacing: 0.08em; }
.rail nav a:hover { color: var(--lido-ivory); background: rgba(246, 240, 230, 0.04); }
.rail nav a.on { color: var(--lido-ivory); border-left-color: var(--lido-gold); background: rgba(226, 188, 123, 0.07); }
.rail .n { font-size: 12px; color: rgba(220, 207, 185, 0.6); font-variant-numeric: tabular-nums; }
.rail .n.hot { color: var(--lido-gold); }
.rail .who-box { padding: 0 28px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--lido-sand); font-size: 13px; }
.rail .foot { margin-top: auto; padding-top: 24px; }
.rail button { background: transparent; color: var(--lido-sand); border-color: rgba(220, 207, 185, 0.3); }
.rail button:hover { color: var(--lido-ivory); border-color: var(--lido-gold); background: transparent; }

.main { padding: 36px var(--gutter) 64px; min-width: 0; max-width: 1320px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 18px 0 26px; }
h1 { margin: 4px 0 0; font-family: var(--serif); font-weight: 300; font-size: 44px; line-height: 1.05; letter-spacing: 0; }
.sub { margin: 8px 0 0; color: var(--muted); max-width: 70ch; font-size: 14px; }
h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 25px; line-height: 1.15; }
h3 { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 21px; }

/* ---------- arm bar ---------- */
.armbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 11px 16px; border: 1px solid var(--hair-strong); background: var(--paper); font-size: 13px; }
.armbar strong { font-weight: 500; letter-spacing: 0.24em; font-size: 12px; }
.armbar.disarmed strong::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 10px; border: 1px solid var(--ink); vertical-align: 1px; }
.armbar.armed { background: var(--lido-lagoon); color: var(--lido-ivory); border-color: var(--lido-lagoon); }
.armbar.armed strong { color: var(--lido-gold); }
.armbar.armed strong::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 10px; background: var(--lido-gold); vertical-align: 1px; }
.armbar.armed .muted { color: rgba(246, 240, 230, 0.7); }
.armbar .spacer { flex: 1; }

/* ---------- cards ---------- */
.card { background: var(--paper); border: 1px solid var(--hair); margin: 0 0 22px; min-width: 0; }
.card > header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding: 20px 24px 14px; border-bottom: 1px solid var(--hair); }
.card > header .n { font-family: var(--serif); font-size: 22px; font-variant-numeric: lining-nums tabular-nums; color: var(--muted); }
.card > header .why { margin-left: auto; color: var(--muted); font-size: 12.5px; }
.card > .body { padding: 18px 24px 22px; min-width: 0; }
.card > .body.flush { padding: 0; }
.card > .body.flush > .body { padding: 16px 24px; }
.tbl .id { white-space: nowrap; }
.tbl td.creator { min-width: 160px; }
.cols { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 22px; }
.cols > .card { margin-bottom: 22px; }

/* ---------- launch band ---------- */
.launch { position: relative; background: var(--lido-obsidian); color: var(--lido-ivory); padding: 30px 32px 28px; margin: 0 0 22px; overflow: hidden; }
.launch::after { content: ''; position: absolute; left: 32px; right: 32px; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--lido-gold) 20%, var(--lido-gold) 80%, transparent); opacity: 0.7; }
.launch .eyebrow { color: var(--lido-gold); }
.launch .when { margin: 8px 0 18px; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 26px; line-height: 1.25; color: var(--lido-sand); }
.countdown { display: flex; flex-wrap: wrap; gap: 8px 34px; }
.countdown .u { min-width: 64px; }
.countdown .v { display: block; font-family: var(--serif); font-weight: 300; font-size: 56px; line-height: 1; font-variant-numeric: lining-nums tabular-nums; color: var(--lido-ivory); }
.countdown .k { display: block; margin-top: 6px; font-size: 10.5px; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase; color: rgba(220, 207, 185, 0.65); }
.launch .note { margin: 18px 0 0; font-size: 13px; color: rgba(220, 207, 185, 0.8); max-width: 72ch; }

/* ---------- big numbers ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--hair); background: var(--paper); margin: 0 0 22px; }
.stat { padding: 18px 22px 18px; border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair); min-width: 0; }
.stat:nth-child(4n) { border-right: 0; }
.stat:nth-last-child(-n + 4) { border-bottom: 0; }
.stat .v { display: block; font-family: var(--serif); font-weight: 300; font-size: 44px; line-height: 1.05; font-variant-numeric: lining-nums tabular-nums; }
.stat .k { display: block; margin-top: 4px; font-size: 11px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.stat .d { display: block; margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.stat.attn .v { color: var(--lido-bronze); }
.stat.attn { box-shadow: inset 0 2px 0 var(--lido-gold); }

/* ---------- meters ---------- */
.meter { display: grid; grid-template-columns: 110px minmax(0, 1fr) 76px; align-items: center; gap: 4px 16px; padding: 11px 0; border-bottom: 1px solid var(--hair); }
.meter:last-child { border-bottom: 0; }
.meter .lab { font-weight: 400; }
.meter .bar { height: 6px; background: rgba(14, 12, 10, 0.07); position: relative; }
.meter .fill { position: absolute; inset: 0 auto 0 0; background: var(--lido-gold-burnished); }
.meter .fill.full { background: var(--lido-gold); }
.meter .val { text-align: right; font-variant-numeric: tabular-nums; }
.meter .acct { grid-column: 2 / 4; font-size: 12.5px; color: var(--muted); }

/* ---------- rows, pills ---------- */
.row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; padding: 10px 0; border-bottom: 1px solid var(--hair); }
.row:last-child { border-bottom: 0; }
.row .who { font-weight: 400; }
.row .what { color: var(--muted); flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; }
.row .when { margin-left: auto; color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pill { display: inline-block; padding: 2px 9px; border: 1px solid var(--hair-strong); font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; line-height: 1.6; color: var(--ink); }
.pill.hot { background: var(--lido-gold); border-color: var(--lido-gold); color: var(--lido-obsidian); }
.pill.go { background: var(--lido-lagoon); border-color: var(--lido-lagoon); color: var(--lido-ivory); }
.pill.stop { border-color: var(--lido-clay); color: var(--lido-clay); }
.pill.soft { border-color: transparent; background: rgba(14, 12, 10, 0.06); }
.pill.test { background: var(--lido-clay); border-color: var(--lido-clay); color: var(--lido-ivory); }
.empty { margin: 0; padding: 6px 0; color: var(--muted); font-family: var(--serif); font-style: italic; font-size: 19px; }
.flash { margin: 0 0 14px; padding: 10px 14px; border: 1px solid var(--lido-lagoon); color: var(--lido-lagoon); background: var(--paper); font-size: 13.5px; }
.flash.bad { border-color: var(--lido-clay); color: var(--lido-clay); }
.foot-note { margin: 4px 0 0; color: var(--muted); font-size: 12.5px; }

/* ---------- tables ---------- */
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; padding: 12px 14px; font-size: 10.5px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--hair-strong); white-space: nowrap; background: var(--paper); position: sticky; top: 0; }
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--hair); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: rgba(226, 188, 123, 0.06); }
.tbl .who { font-weight: 400; }
.tbl .h { color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.tbl .sm { color: var(--muted); font-size: 12px; margin-top: 3px; }
.tbl td.nowrap, .tbl th.nowrap { white-space: nowrap; }
.tbl.creators td:first-child { min-width: 190px; }
.tbl.creators td.notes { min-width: 220px; }

/* ---------- toolbar / forms ---------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 16px 24px; border-bottom: 1px solid var(--hair); }
.toolbar input[type=search] { flex: 1 1 220px; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 6px 12px; border: 1px solid var(--hair-strong); background: transparent; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 400; }
.chip .c { margin-left: 6px; color: var(--muted); font-variant-numeric: tabular-nums; }
.chip.on { background: var(--lido-obsidian); color: var(--lido-ivory); border-color: var(--lido-obsidian); }
.chip.on .c { color: var(--lido-gold); }
input, select, textarea { font: inherit; font-size: 14px; color: var(--ink); background: #fff; border: 1px solid var(--hair-strong); border-radius: 0; padding: 8px 10px; }
textarea { width: 100%; min-width: 200px; resize: vertical; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--lido-gold-burnished); outline-offset: 1px; }
button { font: inherit; font-size: 12px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; padding: 8px 14px; border: 1px solid var(--hair-strong); background: transparent; color: var(--ink); border-radius: 2px; cursor: pointer; }
button:hover { border-color: var(--ink); }
button:disabled { opacity: 0.4; cursor: default; }
button.primary { background: var(--lido-obsidian); color: var(--lido-ivory); border-color: var(--lido-obsidian); }
button.primary:hover { color: var(--lido-gold); }
button.danger { border-color: var(--lido-clay); color: var(--lido-clay); }
button.danger:hover { background: var(--lido-clay); color: var(--lido-ivory); }
button.big { padding: 16px 34px; font-size: 14px; }
details.edit summary { cursor: pointer; color: var(--lido-bronze); font-size: 12.5px; list-style: none; }
details.edit summary::-webkit-details-marker { display: none; }
details.edit[open] summary { margin-bottom: 8px; }
details.edit .stack { display: grid; gap: 8px; }
details.held { border-top: 1px solid var(--hair); }
details.held > summary { cursor: pointer; padding: 14px 24px; color: var(--muted); font-size: 13px; }
details.held[open] > summary { border-bottom: 1px solid var(--hair); }

/* ---------- queue days ---------- */
.day-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
.caps { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--muted); }
.caps b { font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.caps .full b { color: var(--lido-bronze); }
.quiet-day { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 14px 24px; border: 1px solid var(--hair); background: var(--paper); margin: 0 0 10px; color: var(--muted); font-size: 13.5px; }
.quiet-day strong { font-family: var(--serif); font-weight: 400; font-size: 19px; color: var(--ink); }

/* ---------- kill switch ---------- */
.state { font-family: var(--serif); font-weight: 300; font-size: 54px; letter-spacing: 0.08em; margin: 4px 0 20px; }
.state.armed { color: var(--lido-lagoon); }
.dc .msg { white-space: pre-wrap; }

/* ---------- login ---------- */
.login-body { background: var(--lido-obsidian); color: var(--lido-ivory); min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.login { width: 100%; max-width: 380px; text-align: center; }
.login .mark img { height: 46px; width: auto; }
.login .sub-mark { margin: 14px 0 34px; font-size: 10.5px; font-weight: 500; letter-spacing: 0.36em; text-transform: uppercase; color: rgba(220, 207, 185, 0.6); }
.login-card { text-align: left; display: grid; gap: 18px; padding: 30px 28px; border: 1px solid rgba(226, 188, 123, 0.3); background: rgba(246, 240, 230, 0.02); }
.login-card label { display: grid; gap: 7px; font-size: 11px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--lido-sand); }
.login-card input { background: transparent; color: var(--lido-ivory); border: 0; border-bottom: 1px solid rgba(220, 207, 185, 0.4); padding: 8px 2px; font-size: 16px; letter-spacing: 0.02em; text-transform: none; }
.login-card input:focus { outline: 0; border-bottom-color: var(--lido-gold); }
.login-card button.primary { margin-top: 6px; padding: 13px; background: var(--lido-gold); color: var(--lido-obsidian); border-color: var(--lido-gold); }
.login-card button.primary:hover { background: var(--lido-ivory); border-color: var(--lido-ivory); color: var(--lido-obsidian); }
.login-card .flash.bad { background: transparent; text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 13px; }
.login .whisper { margin-top: 26px; font-family: var(--serif); font-style: italic; font-size: 17px; color: rgba(220, 207, 185, 0.6); }

/* ---------- social (s10160115) ---------- */
.card-bar { background: var(--paper); border: 1px solid var(--hair); margin: 0 0 18px; }
.section-title { font-family: var(--serif); font-weight: 400; font-size: 26px; margin: 34px 0 14px; }
.grp { margin: 0 0 22px; min-width: 0; }
.grp:last-child { margin-bottom: 0; }
.grp > h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 10px; font-family: var(--sans); font-weight: 500; font-size: 11.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink); }
.grp > h3 .n { font-weight: 300; letter-spacing: 0.04em; text-transform: none; color: var(--muted); font-size: 12.5px; }
.msg, .post { border: 1px solid var(--hair); border-left: 2px solid var(--lido-sand); background: #fff; padding: 12px 14px; margin: 0 0 10px; min-width: 0; }
.msg.is-sent { border-left-color: var(--lido-lagoon); }
.msg.is-fail { border-left-color: var(--lido-clay); }
.msg-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 12.5px; }
.msg-time { font-weight: 500; white-space: nowrap; }
.msg-meta .sm { color: var(--muted); font-size: 12px; }
.msg-meta .tpl { color: var(--muted); }
.chars { color: var(--muted); margin-left: auto; font-variant-numeric: tabular-nums; white-space: nowrap; }
.chars.over { color: var(--lido-clay); font-weight: 500; }
.msg-who { margin: 6px 0 0; font-size: 13.5px; overflow-wrap: anywhere; }
.msg-who .h { color: var(--muted); font-size: 12.5px; }
.msg-subj { margin: 6px 0 0; font-size: 13px; font-weight: 400; }
.msg-text { margin: 8px 0 0; padding: 10px 12px; background: var(--paper); border: 1px solid var(--hair); font-family: var(--sans); font-weight: 300; font-size: 13.5px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.post { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 14px; border-left-color: var(--lido-gold); }
.post-media { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.post-media img { display: block; width: auto; max-width: 100%; height: auto; max-height: 240px; border: 1px solid var(--hair); }
.msg .sm, .post .sm { color: var(--muted); font-size: 12px; margin-top: 4px; }
.msg-meta .sm { margin-top: 0; }
.post-media.multi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; }
.post-media.multi > span { grid-column: 1 / -1; }
.post-media .sm { color: var(--muted); font-size: 12px; }
.post-body { min-width: 0; }
.msg + details.held, .grp details.held { margin-top: 4px; }
.grp details.held > .msg { margin: 8px 0 8px; }
.grp details.held > summary { padding: 10px 0; }

/* ---------- narrow ---------- */
@media (max-width: 1080px) {
  .cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  :root { --gutter: 16px; }
  .shell { grid-template-columns: minmax(0, 1fr); background: none; }
  .tbl.creators td:first-child { min-width: 150px; }
  .tbl .from { display: none; }
  .tbl td, .tbl th { padding-left: 10px; padding-right: 10px; }
  .card > .body.flush > .body { padding: 12px 16px; }
  .rail { position: static; height: auto; padding: 16px 16px 6px; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
  .rail .mark { padding: 0; }
  .rail .mark img { height: 22px; }
  .rail .sub-mark { padding: 0; margin-left: auto; }
  .rail h6 { display: none; }
  .rail nav { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 0 2px; margin: 8px -4px 0; }
  .rail nav a { padding: 8px 8px; border-left: 0; border-bottom: 2px solid transparent; font-size: 12px; letter-spacing: 0.06em; gap: 6px; }
  .rail nav a.on { border-bottom-color: var(--lido-gold); background: transparent; }
  .rail .foot { flex-basis: 100%; margin: 0; padding: 6px 0 4px; }
  .rail .who-box { padding: 0; }
  .rail button { padding: 5px 10px; font-size: 11px; }
  .main { padding: 18px var(--gutter) 48px; }
  h1 { font-size: 34px; }
  .page-head { margin: 14px 0 18px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 14px 16px; }
  .stat:nth-child(4n) { border-right: 1px solid var(--hair); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-last-child(-n + 4) { border-bottom: 1px solid var(--hair); }
  .stat:nth-last-child(-n + 2) { border-bottom: 0; }
  .stat .v { font-size: 36px; }
  .launch { padding: 22px 18px 22px; }
  .launch::after { left: 18px; right: 18px; }
  .launch .when { font-size: 21px; }
  .countdown { gap: 6px 22px; }
  .countdown .u { min-width: 48px; }
  .countdown .v { font-size: 42px; }
  .card > header, .toolbar { padding-left: 16px; padding-right: 16px; }
  .card > .body { padding: 14px 16px 16px; }
  .card > header .why { margin-left: 0; flex-basis: 100%; }
  .meter { grid-template-columns: 84px minmax(0, 1fr) 64px; gap: 4px 10px; }
  .quiet-day { padding: 12px 16px; }
  details.held > summary { padding: 12px 16px; }
  .state { font-size: 40px; }
  .post { grid-template-columns: minmax(0, 1fr); }
  .post-media { max-width: 260px; }
  .chars { margin-left: 0; flex-basis: 100%; }
}

/* ---------- full-screen media viewer (s10160115 lightbox) ---------- */
.thumb-btn { position: relative; display: block; width: fit-content; align-self: flex-start; padding: 0; border: 0; background: none; border-radius: 0; cursor: zoom-in; letter-spacing: 0; text-transform: none; max-width: 100%; }
.thumb-btn:hover { border: 0; }
.thumb-btn:hover img { border-color: var(--lido-gold-burnished); }
.thumb-btn:focus-visible { outline: 2px solid var(--lido-gold-burnished); outline-offset: 2px; }
.thumb-btn.is-video { cursor: pointer; }
.play-badge { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: rgba(14, 12, 10, 0.62); border: 1px solid rgba(226, 188, 123, 0.8); pointer-events: none; }
.play-badge::after { content: ''; position: absolute; left: 18px; top: 14px; border-style: solid; border-width: 9px 0 9px 14px; border-color: transparent transparent transparent var(--lido-gold); }
html.lb-open, html.lb-open body { overflow: hidden; }
.lb { --lb-fade: 1; position: fixed; inset: 0; z-index: 1000; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100vh; height: 100dvh;
  background: transparent; color: var(--lido-ivory); overscroll-behavior: contain; isolation: isolate;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.lb::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--lido-obsidian); opacity: var(--lb-fade); }
.lb-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 6px 18px; min-height: 52px; box-sizing: border-box; }
.lb-count { font-size: 13px; letter-spacing: 0.18em; color: var(--lido-sand); }
.lb-stage { position: relative; min-height: 0; touch-action: none; }
.lb-fig { position: absolute; inset: 0 12px; display: flex; align-items: center; justify-content: center; will-change: transform; }
.lb-fig.snap { transition: transform 0.2s ease; }
.lb-media { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; background: #000; }
video.lb-media { height: 100%; width: auto; max-width: 100%; aspect-ratio: var(--lb-ar, 9 / 16); background: transparent; }
.lb-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(220, 207, 185, 0.35); border-radius: 50%;
  background: rgba(14, 12, 10, 0.55); color: var(--lido-ivory); font-family: var(--sans); font-size: 28px; font-weight: 300; line-height: 1; letter-spacing: 0; text-transform: none; cursor: pointer; }
.lb-btn:hover { border-color: var(--lido-gold); color: var(--lido-gold); background: rgba(14, 12, 10, 0.75); }
.lb-btn:focus-visible { outline: 2px solid var(--lido-gold); outline-offset: 2px; }
.lb-btn:disabled { opacity: 0.25; cursor: default; }
.lb-nav { position: absolute; top: 50%; margin-top: -22px; z-index: 2; font-size: 34px; padding-bottom: 4px; }
.lb-prev { left: 18px; }
.lb-next { right: 18px; }
.lb-cap { padding: 10px 18px 14px; text-align: center; }
.lb-cap-t { font-family: var(--serif); font-size: 20px; line-height: 1.25; color: var(--lido-ivory); }
.lb-cap-s { font-size: 12px; letter-spacing: 0.08em; color: var(--lido-sand); margin-top: 2px; }
@media (max-width: 860px) {
  .lb-fig { inset: 0 4px; }
  .lb-nav { width: 38px; height: 38px; margin-top: -19px; font-size: 28px; opacity: 0.8; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lb-cap-t { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) { .lb-fig.snap { transition: none; } }
