/* Overlook Gallery Admin — internal tool, client-grade polish. LIGHT MODE
   (Jack, 2026-08-18: the whole app is light, admin included — same palette as
   the public shell g.css): white ground, Fraunces display, Hanken body, gold
   is a hairline/accent, never a surface. Overlays on photo tiles stay dark. */
:root {
  --bg: #ffffff; --bg-2: #f6f5f2; --bg-3: #ecebe7;
  --text: #151515; --text-2: #5f5d58; --text-3: #9a978f;
  --line: #e7e5e0; --line-2: #d9d6cf;
  --gold: #FFC62A; --bad: #b4423a; --ok: #2f8a57;
  --f-d: 'Fraunces', serif; --f-b: 'Hanken Grotesk', sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font-family: var(--f-b);
  font-weight: 300; min-height: 100vh; }
img { display: block; }
button, input, select { font-family: var(--f-b); }
a { color: inherit; text-decoration: none; }

/* top bar */
.top { display: flex; align-items: center; gap: 28px; padding: 14px 26px;
  border-bottom: 1px solid var(--line); position: sticky; top: 0;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px); z-index: 10; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 22px; height: 22px; }
.brand span { font-size: 12px; font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; }
.brand em { color: var(--gold); font-style: normal; }
.top nav { display: flex; gap: 4px; }
.top nav a { font-size: 12px; font-weight: 500; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-3); padding: 8px 12px;
  border-radius: 6px; }
.top nav a.on { color: var(--text); background: var(--bg-3); }
.who { margin-left: auto; font-size: 12px; color: var(--text-3); }

main { max-width: 1100px; margin: 0 auto; padding: 34px 26px 80px; }
.empty { color: var(--text-3); text-align: center; padding: 90px 0;
  font-size: 14px; }

/* buttons + inputs */
.btn { border: 1px solid var(--line-2); background: none; color: var(--text-2);
  font-size: 12px; font-weight: 600; letter-spacing: .06em; padding: 9px 16px;
  border-radius: 7px; cursor: pointer; transition: all .15s; }
.btn:hover { color: var(--text); border-color: var(--text-3); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #080808; }
.btn.gold:hover { filter: brightness(1.04); }
.btn.danger { color: var(--bad); }
.btn.danger:hover { border-color: var(--bad); }
.btn:disabled { opacity: .4; cursor: default; }
.btn.sm { padding: 5px 10px; font-size: 11px; }
input[type=text], input[type=password], input[type=date], input[type=email], select {
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 7px;
  color: var(--text); font-size: 13px; padding: 9px 11px; outline: none; width: 100%; }
input:focus { border-color: var(--gold); }
label.f { display: flex; flex-direction: column; gap: 6px; font-size: 10.5px;
  font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-3); }
label.f .hint { font-weight: 400; text-transform: none; letter-spacing: 0; }

/* page head */
.ph { display: flex; align-items: center; gap: 16px; margin-bottom: 26px;
  flex-wrap: wrap; }
.ph h1 { font-family: var(--f-d); font-weight: 300; font-size: 30px;
  letter-spacing: .01em; }
.ph .sp { flex: 1; }

/* home view toggle (grid / list) */
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 7px; overflow: hidden; }
.seg button { border: 0; background: none; color: var(--text-3); padding: 7px 10px; cursor: pointer;
  display: inline-flex; align-items: center; line-height: 0; }
.seg button + button { border-left: 1px solid var(--line-2); }
.seg button:hover { color: var(--text); background: var(--bg-2); }
.seg button.on { color: var(--text); background: var(--bg-3); }

/* gallery list rows */
.glist { border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); overflow: hidden; }
.gl-h, .gl-r { display: grid; grid-template-columns: 56px minmax(0, 1fr) 90px 80px 150px 110px 110px;
  gap: 14px; align-items: center; padding: 10px 16px; }
.gl-h { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-3); border-bottom: 1px solid var(--line); padding-top: 12px; padding-bottom: 12px; }
.gl-r { border-top: 1px solid var(--line); cursor: pointer; font-size: 12.5px; color: var(--text-2);
  transition: background .15s; }
.gl-h + .gl-r { border-top: 0; }
.gl-r:hover { background: var(--bg-3); }
.gl-th { display: block; width: 56px; height: 40px; border-radius: 6px; overflow: hidden; background: var(--bg-3); }
.gl-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gl-t { min-width: 0; }
.gl-t b { display: block; font-family: var(--f-d); font-weight: 400; font-size: 17px; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gl-t i { display: block; font-style: normal; font-size: 12px; color: var(--text-3); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gl-n, .gl-d { white-space: nowrap; }
.gl-d em { color: var(--text-3); font-style: normal; }
@media (max-width: 860px) {
  .gl-h, .gl-r { grid-template-columns: 48px minmax(0, 1fr) 80px 70px; }
  .gl-h span:nth-child(n+5), .gl-r span:nth-child(n+5) { display: none; }
  .gl-th { width: 48px; height: 34px; }
}

/* gallery cards (list) */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px; }
.card { position: relative; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px;
  padding: 0; cursor: pointer; overflow: hidden; min-height: 190px; display: flex; align-items: flex-end;
  transition: transform .22s cubic-bezier(.2,.7,.2,1), box-shadow .22s; }
.card:hover { transform: scale(1.015); box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.card-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.card:hover .card-bg { transform: scale(1.04); }
.card.has-cover::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,.08) 100%); }
.card-body { position: relative; z-index: 1; padding: 18px; width: 100%; }
.card.has-cover .card-body { color: #fff; }
.card.has-cover .card-body .sub, .card.has-cover .card-body .row { color: rgba(255,255,255,.78); }
.card.has-cover .pill { color: rgba(255,255,255,.9); border-color: rgba(255,255,255,.5); }
.card.has-cover .pill.live { color: var(--gold); border-color: var(--gold); }
.card h3 { font-family: var(--f-d); font-weight: 400; font-size: 20px; margin-bottom: 4px; }
.card .sub { font-size: 12px; color: var(--text-3); margin-bottom: 12px; }
.card .row { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-3); }
.pill { font-size: 9.5px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; border: 1px solid var(--line-2); border-radius: 99px;
  padding: 2px 9px; color: var(--text-3); }
.pill.live { color: var(--gold); border-color: var(--gold); }
.pill.off { color: var(--bad); border-color: var(--bad); }

/* detail layout */
.det { display: grid; grid-template-columns: 320px 1fr; gap: 26px;
  align-items: start; }
.panel { background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 10px; padding: 18px; display: flex; flex-direction: column;
  gap: 14px; position: sticky; top: 78px; }
.panel .url { font-size: 12px; color: var(--text-2); overflow-wrap: anywhere; }
.panel .url a { color: var(--gold); }
.pubbar { display: flex; gap: 8px; flex-wrap: wrap; }
.check { display: flex; align-items: center; gap: 8px; font-size: 12.5px;
  color: var(--text-2); cursor: pointer; }

/* sections + asset grid */
.secs { display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.sec { border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); }
.sec-h { display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  border-bottom: 1px solid var(--line); }
.sec-h h4 { font-size: 12px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; }
.sec-h .n { color: var(--text-3); font-weight: 400; }
.sec-h .sp { flex: 1; }
.sec-body { padding: 14px; }
.agrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px; }
.ai { position: relative; aspect-ratio: 1; border-radius: 7px; overflow: hidden;
  background: var(--bg-3); cursor: grab; }
.ai img { width: 100%; height: 100%; object-fit: cover; }
.ai .x { position: absolute; top: 5px; right: 5px; width: 20px; height: 20px;
  border-radius: 10px; border: 0; background: rgba(0,0,0,.65); color: #eee;
  font-size: 12px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .15s; }
.ai:hover .x { opacity: 1; }
.ai .x:hover { color: #ff8a7a; }
.ai .vid { position: absolute; left: 6px; bottom: 6px; background: rgba(0,0,0,.65);
  color: #fff; font-size: 10px; padding: 2px 6px; border-radius: 4px; }
.ai.drag { opacity: .4; }
.ai .pend { position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; font-size: 10px; color: var(--text-3);
  background: var(--bg-3); }

/* dropzone */
.dz { border: 1px dashed var(--line-2); border-radius: 8px; padding: 16px;
  text-align: center; color: var(--text-3); font-size: 12.5px; cursor: pointer;
  margin-top: 10px; transition: all .15s; }
.dz.on { border-color: var(--gold); color: var(--text-2); background: var(--bg-3); }
.prog { font-size: 12px; color: var(--gold); min-height: 16px; margin-top: 8px; }

/* sections manager chips */
.secmgr { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.schip { display: inline-flex; align-items: center; gap: 7px; background: var(--bg-3);
  border: 1px solid var(--line-2); border-radius: 99px; padding: 5px 6px 5px 12px;
  font-size: 12px; color: var(--text-2); }
.schip button { border: 0; background: none; color: var(--text-3); cursor: pointer;
  font-size: 11px; }
.schip button:hover { color: var(--text); }
.secmgr input { width: 140px; }

/* team */
.team { max-width: 560px; }
.trow { display: flex; align-items: center; gap: 14px; padding: 13px 4px;
  border-bottom: 1px solid var(--line); font-size: 13.5px; }
.trow .role { font-size: 10px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-3); }
.trow .sp { flex: 1; }
.taddrow { display: flex; gap: 10px; margin-top: 18px; }

/* toast + gate */
.toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%);
  background: var(--text); border: 1px solid var(--text); border-radius: 8px;
  color: #fff; font-size: 13px; padding: 11px 20px; z-index: 99; }
.toast.err { border-color: var(--bad); }
.gate { max-width: 380px; margin: 12vh auto 0; display: flex;
  flex-direction: column; gap: 14px; }
.gate h1 { font-family: var(--f-d); font-weight: 300; font-size: 26px; }
.gate p { font-size: 13px; color: var(--text-2); line-height: 1.6; }

@media (max-width: 860px) {
  .det { grid-template-columns: 1fr; }
  .panel { position: static; }
}

/* upload (drop) links — gallery panel (2026-08-18) */
.drops { border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.drops-h { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.drops-h .hint { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--text-2); }
.drops-list { display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
.drops-list .hint { color: var(--text-2); }
.drow { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; }
.drow.off { opacity: .55; }
.dmeta { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.dmeta span { color: var(--text-2); font-size: 11px; }
.dmeta a { color: var(--gold); font-size: 11px; overflow-wrap: anywhere; }

/* ── ONE-SCREEN EDITOR (Admin v2, 2026-08-18) ─────────────────────────── */
main.wide { max-width: 1480px; }
.ed-ph h1 { font-size: 26px; }
.opt-note { font-size: 11px; color: var(--gold); letter-spacing: .04em; }
.ed { display: grid; grid-template-columns: 210px minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.ed-h { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.ed-h .hint { font-weight: 400; text-transform: none; letter-spacing: 0; }
.hint { font-size: 11.5px; color: var(--text-3); }

/* sets rail */
.ed-sets { position: sticky; top: 78px; display: flex; flex-direction: column; gap: 10px; }
.setlist { display: flex; flex-direction: column; gap: 2px; }
.setrow { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 7px; cursor: pointer;
  font-size: 13px; color: var(--text-2); border: 1px solid transparent; }
.setrow:hover { background: var(--bg-2); }
.setrow.on { background: var(--bg-2); border-color: var(--line); color: var(--text); }
.setrow.drag { opacity: .4; }
.setrow .sn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.setrow .sc { font-size: 11px; color: var(--text-3); }
.setrow .hl { color: var(--gold); font-style: normal; font-size: 11px; }
.setrow .sact { display: none; gap: 2px; }
.setrow:hover .sact, .setrow.on .sact { display: inline-flex; }
.setrow .sact button { border: 0; background: none; color: var(--text-3); cursor: pointer; font-size: 11px; padding: 0 3px; }
.setrow .sact button:hover { color: var(--text); }
.ed-sets input { font-size: 12px; padding: 7px 10px; }

/* media */
.ed-media { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.ed-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; position: sticky; top: 62px; z-index: 5;
  background: rgba(255,255,255,.94); padding: 8px 0; border-bottom: 1px solid var(--line); }
.ed-cur { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.ed-cur .sc { color: var(--text-3); font-weight: 400; letter-spacing: 0; }
.ed-tools .sp { flex: 1; }
.selinfo { font-size: 12px; color: var(--gold); }
select.sm { width: auto; font-size: 11px; padding: 5px 8px; }
.ed-dz { margin-top: 0; padding: 20px; }
.gsec { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.gsec-h { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); }
.gsec-h .sc { color: var(--text-3); font-weight: 400; letter-spacing: 0; }
.ed-media .agrid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.ai .ck { position: absolute; top: 6px; left: 6px; width: 20px; height: 20px; border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,.8); background: rgba(0,0,0,.35); display: flex; align-items: center;
  justify-content: center; opacity: 0; transition: opacity .12s; pointer-events: none; }
.ai .ck svg { width: 12px; height: 12px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: square; stroke-linejoin: miter; opacity: 0; }
.ai:hover .ck { opacity: 1; }
.ai.sel { outline: 2px solid var(--gold); outline-offset: -2px; }
.ai.sel .ck { opacity: 1; background: var(--gold); border-color: var(--gold); }
.ai.sel .ck svg { opacity: 1; stroke: #080808; }
.ai .optd { position: absolute; right: 6px; bottom: 6px; width: 8px; height: 8px; border-radius: 4px;
  background: var(--gold); box-shadow: 0 0 0 2px #fff; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.ai .cvb { position: absolute; left: 6px; bottom: 6px; background: var(--gold); color: #080808; font-size: 9px;
  font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 2px 6px; border-radius: 4px; }

/* rail extras */
.ed-rail { top: 78px; }
.cover { display: flex; flex-direction: column; gap: 8px; }
.cvrow { display: flex; align-items: center; gap: 10px; }
.cvrow img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; }
/* cover framing tool: full image shown; a cover-shaped frame is dragged over it;
   everything outside the frame is grayed = cut off on the live cover */
.cvtool { display: flex; flex-direction: column; gap: 8px; }
.cvstage { position: relative; overflow: hidden; border-radius: 8px; background: var(--bg-3); margin: 0 auto; touch-action: none; }
.cvstage img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; user-select: none; -webkit-user-drag: none; }
.cvframe { position: absolute; left: 0; top: 0; border: 2px solid var(--gold); box-sizing: border-box; cursor: grab;
  box-shadow: 0 0 0 2000px rgba(246,245,242,.72); }
.cvframe:active { cursor: grabbing; }
.cvframe::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(to right, transparent 33.3%, rgba(255,255,255,.35) 33.3%, rgba(255,255,255,.35) calc(33.3% + 1px), transparent calc(33.3% + 1px), transparent 66.6%, rgba(255,255,255,.35) 66.6%, rgba(255,255,255,.35) calc(66.6% + 1px), transparent calc(66.6% + 1px)),
  linear-gradient(to bottom, transparent 33.3%, rgba(255,255,255,.35) 33.3%, rgba(255,255,255,.35) calc(33.3% + 1px), transparent calc(33.3% + 1px), transparent 66.6%, rgba(255,255,255,.35) 66.6%, rgba(255,255,255,.35) calc(66.6% + 1px), transparent calc(66.6% + 1px));
  pointer-events: none; }
.cvasp { display: flex; gap: 6px; }
.cvasp button { border: 1px solid var(--line-2); background: none; color: var(--text-2); font-size: 11px; font-weight: 600;
  letter-spacing: .06em; padding: 4px 10px; border-radius: 6px; cursor: pointer; }
.cvasp button.on { border-color: var(--text); color: var(--text); }
.sn-edit { flex: 1; min-width: 0; font-size: 13px; padding: 3px 6px; }

/* share popover */
.share[hidden] { display: none !important; }
.share { position: absolute; width: 300px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px;
  padding: 14px; z-index: 50; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 12px 40px rgba(0,0,0,.14); }
.share-h { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.share-url { font-size: 12px; color: var(--gold); overflow-wrap: anywhere; }
.share-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.share-acts .btn { text-decoration: none; }
.share-qr { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px; align-self: center; }
.share-qr svg { width: 160px; height: 160px; display: block; }

/* phone (usable at the event) */
@media (max-width: 1100px) { .ed { grid-template-columns: 180px minmax(0, 1fr); } .ed-rail { grid-column: 1 / -1; position: static; } .ed-sets { position: static; } }
@media (max-width: 720px) {
  main { padding: 18px 14px 80px; }
  .ed { grid-template-columns: 1fr; }
  .ed-sets { position: static; }
  .setlist { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .setrow { border: 1px solid var(--line); padding: 6px 10px; }
  .setrow .sact { display: none !important; }
  .ed-tools { top: 56px; }
  .ed-media .agrid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
  .ai .ck { opacity: 1; }
  .ed-rail { position: static; }
  .top { padding: 12px 14px; gap: 14px; }
  .who { display: none; }
}

/* in-app dialogs (replaces browser prompt/confirm — 2026-08-18) */
.dlg-wrap { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center;
  padding: 20px; background: rgba(21,21,21,.28); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .14s ease; }
.dlg-wrap.in { opacity: 1; }
.dlg-wrap.out { opacity: 0; }
.dlg { width: 100%; max-width: 400px; background: var(--bg); border: 1px solid var(--line-2); border-radius: 12px;
  padding: 22px 22px 18px; display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 18px 60px rgba(0,0,0,.18); transform: translateY(6px) scale(.985); transition: transform .16s ease; }
.dlg-wrap.in .dlg { transform: none; }
.dlg h2 { font-family: var(--f-d); font-weight: 300; font-size: 22px; letter-spacing: .01em; line-height: 1.2; }
.dlg p { font-size: 13px; color: var(--text-2); line-height: 1.55; margin-top: -4px; white-space: pre-line; overflow-wrap: anywhere; }
.dlg-f { display: flex; flex-direction: column; gap: 12px; }
.dlg-f input.bad { border-color: var(--bad); }
.dlg-acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.dlg .btn.danger { border-color: var(--bad); }
.dlg .btn.danger:hover { background: var(--bad); color: #fff; }
@media (max-width: 520px) { .dlg-wrap { align-items: flex-end; padding: 0; }
  .dlg { max-width: none; border-radius: 14px 14px 0 0; padding-bottom: calc(18px + env(safe-area-inset-bottom)); } }

/* persistent upload panel (outside #app — survives re-renders/nav; 2026-08-18) */
.upbar { position: fixed; right: 20px; bottom: 20px; width: 380px; max-width: calc(100vw - 40px); z-index: 80;
  background: var(--bg); border: 1px solid var(--line-2); border-radius: 12px; padding: 14px 16px 14px;
  box-shadow: 0 14px 44px rgba(0,0,0,.16); display: flex; flex-direction: column; gap: 8px;
  opacity: 0; transform: translateY(8px); transition: opacity .18s ease, transform .18s ease; }
.upbar.in { opacity: 1; transform: none; }
.up-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 10.5px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); overflow: hidden; }
.up-h span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-l { font-size: 15px; font-weight: 500; color: var(--text); }
.up-l .lnk { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.up-l .bad, .up-s .stall { color: var(--bad); }
.up-bar { height: 4px; background: var(--bg-3); border-radius: 2px; overflow: hidden; }
.up-bar i { display: block; height: 100%; background: var(--gold); transition: width .25s linear; }
.up-bar.stall i { background: var(--bad); animation: up-pulse 1.2s ease-in-out infinite; }
@keyframes up-pulse { 50% { opacity: .45; } }
.up-s { font-size: 12px; color: var(--text-2); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.up-s .fn { color: var(--text); font-weight: 500; }
.up-s .stall { white-space: normal; }
@media (max-width: 520px) { .upbar { right: 10px; left: 10px; bottom: 10px; width: auto; max-width: none; } }

/* privacy: client key + hide-from-guests (2026-08-18) */
.fw { display: flex; gap: 6px; align-items: center; }
.fw input { flex: 1; min-width: 0; }
.fw input[readonly] { color: var(--text); letter-spacing: .06em; font-weight: 500; }
.setrow .hidm { display: inline-flex; color: var(--text-3); line-height: 0; }
.setrow.hid .sn { color: var(--text-2); }
.ai .hidb { position: absolute; right: 6px; top: 6px; width: 20px; height: 20px; border-radius: 10px;
  background: rgba(8,8,8,.62); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.ai.hid img { opacity: .55; }

/* activity (2026-08-18) */
.stats { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.stats div { border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; min-width: 120px; font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-3); display: flex; flex-direction: column; gap: 4px; }
.stats b { font-family: var(--f-d); font-weight: 300; font-size: 26px; letter-spacing: 0; text-transform: none; color: var(--text); }
.stats b.sm { font-family: var(--f-b); font-size: 13px; font-weight: 500; }
.act-hint { margin-bottom: 14px; font-size: 12.5px; color: var(--text-2); }
.act-seg { margin-bottom: 14px; }
.act-seg button { font-size: 12px; font-weight: 600; letter-spacing: .06em; padding: 7px 14px; line-height: 1; }
.ev { border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); overflow: hidden; }
.ev-h, .ev-r { display: grid; grid-template-columns: 150px minmax(0,1.2fr) minmax(0,2fr) 80px 150px; gap: 14px; align-items: center; padding: 9px 16px; }
.ev-h.ev-p, .ev-r.ev-p { grid-template-columns: 44px minmax(0,2fr) 70px 70px 70px 150px; }
.ev-h.ev-v, .ev-r.ev-v { grid-template-columns: 150px minmax(0,1fr) 200px; }
.ev-h { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); border-bottom: 1px solid var(--line); padding-top: 12px; padding-bottom: 12px; }
.ev-r { border-top: 1px solid var(--line); font-size: 12.5px; color: var(--text-2); }
.ev-r:first-of-type { border-top: 0; }
.ev-d { font-size: 11.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-w { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-w .anon { color: var(--text-2); }
.ev-x { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ev-th { width: 34px; height: 34px; border-radius: 5px; object-fit: cover; flex: none; background: var(--bg-3); }
.ev-th.none { display: inline-block; }
.ev-what { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.ev-what i { display: block; font-style: normal; font-size: 11px; color: var(--text-3); }
.ev-k { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.pill.sm { font-size: 9px; padding: 1px 6px; margin-left: 6px; vertical-align: 1px; }
@media (max-width: 860px) { .ev-h, .ev-r { grid-template-columns: 96px minmax(0,1fr) minmax(0,1.6fr); } .ev-d { white-space: normal; } .ev-h > :nth-child(n+4), .ev-r > :nth-child(n+4) { display: none; }
  .ev-h.ev-p, .ev-r.ev-p { grid-template-columns: 44px minmax(0,1fr) 60px 60px; } .ev-h.ev-p > :nth-child(n+5), .ev-r.ev-p > :nth-child(n+5) { display: none; } }

/* GCal — the Overlook calendar popup (OMCal port; light) */
.dates-pill { position: relative; display: inline-flex; align-items: center; }
.dp-btn { font-weight: 500; letter-spacing: 0; font-size: 12.5px; }
.gcal { position: absolute; left: 0; top: calc(100% + 6px); z-index: 60; width: 290px; padding: 14px; background: var(--bg); border: 1px solid var(--line-2);
  border-radius: 10px; box-shadow: 0 12px 40px rgba(0,0,0,.14); display: block; }
.gcal[hidden] { display: none; }
.gc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.gc-mo { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text); }
.gc-nav { width: 26px; height: 26px; border-radius: 6px; border: 1px solid var(--line-2); background: none; color: var(--text-3); cursor: pointer; font-size: 15px; line-height: 1; }
.gc-nav:hover { color: var(--text); border-color: var(--text-3); }
.gc-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.gc-dow { font-size: 9.5px; font-weight: 700; text-transform: uppercase; color: var(--text-3); text-align: center; padding: 4px 0; }
.gc-d { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: 12.5px; color: var(--text-2); background: none; border: 0; border-radius: 6px; cursor: pointer; font-variant-numeric: tabular-nums; }
.gc-d.mute { pointer-events: none; }
.gc-d:hover { background: var(--bg-3); color: var(--text); }
.gc-d.range { background: rgba(255,198,42,.22); color: var(--text); border-radius: 0; }
.gc-d.end { background: var(--gold); color: #1a1304; font-weight: 700; }
.gc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line); }
.gc-toggle { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--text-3); background: none; border: 0; cursor: pointer; }
.gc-sw { width: 30px; height: 17px; border-radius: 9px; background: var(--bg-3); position: relative; transition: background .15s; }
.gc-sw::after { content: ''; position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: var(--text-3); transition: left .15s, background .15s; }
.gc-toggle.on .gc-sw { background: var(--gold); }
.gc-toggle.on .gc-sw::after { left: 15px; background: #1a1304; }
.gc-acts { display: inline-flex; align-items: center; gap: 8px; }
.gc-clear { font-size: 11.5px; color: var(--text-3); background: none; border: 0; cursor: pointer; }
.gc-clear:hover { color: var(--bad); }
.dlg { position: relative; overflow: visible; }
.gc-hint { font-size: 10.5px; color: var(--text-3); }
.gc-foot { gap: 8px; }
