@font-face { font-family: "Lexend"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/lexend-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Lexend"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/lexend-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Lexend"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/lexend-latin-600-normal.woff2") format("woff2"); }

/* Smritikosh — design system
   Idea: the school notebook. Event covers carry a white name-label sticker;
   empty pages are ruled paper with a red margin line. Everything else stays quiet. */

:root {
  --ink: #1F3A93;          /* royal-blue fountain-pen ink: primary */
  --ink-deep: #172C70;
  --ink-wash: #E7ECFA;
  --ink-line: #C9D3F0;
  --graphite: #1E2433;     /* text */
  --slate: #5A6478;        /* secondary text */
  --rule: #DDE2EA;         /* hairlines */
  --paper: #F3F5F8;        /* page */
  --white: #FFFFFF;
  --margin: #C8372D;       /* notebook margin red: danger */
  --margin-wash: #FCECEA;
  --marigold: #E8A317;     /* warnings */
  --marigold-wash: #FFF5DD;
  --leaf: #1E7A4F;         /* success */
  --leaf-wash: #E5F4EC;

  --font: "Lexend", "Segoe UI", system-ui, -apple-system, sans-serif;
  --r-tile: 6px; --r-ctl: 8px; --r-card: 12px; --r-dlg: 16px;
  --side: 236px;
  --focus: 0 0 0 3px rgba(31, 58, 147, .28);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55;
  color: var(--graphite); background: var(--paper);
  font-feature-settings: "tnum" 1; -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img, video { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon.sm { width: 15px; height: 15px; }
.muted { color: var(--slate); }

/* ---------- type scale (1.25) ---------- */
h1 { font-size: 28px; line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; margin: 0; }
h2 { font-size: 18px; line-height: 1.3; font-weight: 600; margin: 0; }
h3 { font-size: 16px; font-weight: 600; margin: 0; }
.small { font-size: 13px; }
@media (max-width: 640px) { h1 { font-size: 23px; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 38px; padding: 0 14px; border-radius: var(--r-ctl);
  border: 1px solid var(--rule); background: var(--white); color: var(--graphite);
  font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background-color .12s, border-color .12s;
}
.btn:hover { border-color: #C2C9D6; text-decoration: none; }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.primary:hover { background: var(--ink-deep); border-color: var(--ink-deep); }
.btn.danger { color: var(--margin); }
.btn.danger-solid { background: var(--margin); border-color: var(--margin); color: #fff; }
.btn.quiet { border-color: transparent; background: transparent; }
.btn.quiet:hover { background: rgba(30, 36, 51, .06); }
.btn.sm { min-height: 30px; padding: 0 10px; font-size: 13px; }
.btn.icon-only { padding: 0; width: 38px; }
.btn.sm.icon-only { width: 30px; }
.btn[disabled] { opacity: .55; cursor: default; }

/* ---------- form controls ---------- */
.field { margin-bottom: 18px; }
.field > label, .field .label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.field .hint { font-size: 13px; color: var(--slate); font-weight: 400; }
.input, .select, .textarea {
  width: 100%; min-height: 44px; padding: 9px 12px; background: var(--white);
  border: 1px solid #CBD2DD; border-radius: var(--r-ctl); font-size: 15px;
}
.textarea { min-height: 96px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: var(--focus); }
.field-error { color: var(--margin); font-size: 13px; margin-top: 5px; }
.check { display: flex; gap: 10px; align-items: center; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); margin: 0; }
.segmented { display: flex; flex-wrap: wrap; gap: 6px; }
.segmented label {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 13px; cursor: pointer;
  border: 1px solid #CBD2DD; border-radius: 999px; font-size: 14px; background: var(--white);
}
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label:has(input:checked) { background: var(--ink); border-color: var(--ink); color: #fff; }
.segmented label:has(input:focus-visible) { box-shadow: var(--focus); }

.notice { border-radius: var(--r-ctl); padding: 10px 12px; font-size: 14px; }
.notice.error { background: var(--margin-wash); color: #8E2119; }
.notice.warn { background: var(--marigold-wash); color: #7A5200; }
.notice.ok { background: var(--leaf-wash); color: #12583A; }

/* ---------- app shell ---------- */
.shell { min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--side); background: var(--white);
  border-right: 1px solid var(--rule); display: flex; flex-direction: column; padding: 18px 14px; z-index: 20;
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 18px; color: var(--graphite); padding: 2px 8px 0; }
.brand:hover { text-decoration: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text small { font-size: 11px; font-weight: 400; color: var(--slate); margin-top: 3px; letter-spacing: .01em; }
.auth-side .brand-text small { color: rgba(255, 255, 255, .78); }
.usage { margin-top: auto; padding: 12px; border-radius: var(--r-ctl); border: 1px solid var(--rule); display: grid; gap: 1px; font-size: 13px; }
.usage .label { color: var(--slate); }
.usage strong { font-size: 20px; font-weight: 600; line-height: 1.3; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--ink); color: #fff; display: grid; place-items: center; }
.brand-mark .icon { width: 17px; height: 17px; stroke-width: 2; }
.school-chip { display: flex; gap: 10px; align-items: center; margin: 22px 0 18px; padding: 10px; border-radius: var(--r-ctl); background: var(--paper); }
.school-avatar {
  width: 36px; height: 36px; border-radius: 8px; flex: none; display: grid; place-items: center;
  background: var(--ink-wash); color: var(--ink); font-weight: 600; font-size: 14px;
}
.school-chip .name { font-size: 13px; font-weight: 500; line-height: 1.3; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: var(--r-ctl);
  color: var(--slate); font-weight: 500; font-size: 14px;
}
.nav a:hover { background: var(--paper); color: var(--graphite); text-decoration: none; }
.nav a[aria-current="page"] { background: var(--ink-wash); color: var(--ink); }
.side-foot { margin-top: 14px; border-top: 1px solid var(--rule); padding-top: 14px; display: flex; align-items: center; gap: 10px; }
.side-foot .who { flex: 1; min-width: 0; font-size: 13px; line-height: 1.35; }
.side-foot .who strong { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-foot form { margin: 0; }

.main { margin-left: var(--side); padding: 30px 36px 80px; }
.main-in { max-width: 1240px; margin: 0 auto; }
.mobile-top, .tabbar { display: none; }

@media (max-width: 860px) {
  .sidebar { display: none; }
  .main { margin-left: 0; padding: 18px 16px 96px; }
  .mobile-top {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 16px; background: var(--white); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 20;
  }
  .mobile-top .school { font-size: 13px; color: var(--slate); text-align: right; line-height: 1.3; max-width: 55%; display: flex; flex-direction: column; }
  .mobile-top .school small { font-size: 12px; color: var(--ink); font-weight: 500; }
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--white);
    border-top: 1px solid var(--rule); padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  }
  .tabbar a, .tabbar button {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px;
    font-size: 12px; color: var(--slate); background: none; border: 0; border-radius: var(--r-ctl);
  }
  .tabbar a[aria-current="page"] { color: var(--ink); }
  .tabbar .icon { width: 22px; height: 22px; }
  .tabbar form { flex: 1; display: flex; margin: 0; }
}

/* ---------- page header ---------- */
.page-head { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: flex-end; justify-content: space-between; margin-bottom: 22px; }
.page-head .lead { color: var(--slate); margin: 6px 0 0; }
.page-head.top { align-items: flex-start; }
.page-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.back { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: var(--slate); margin-bottom: 10px; }
.back:hover { color: var(--ink); }

/* ---------- notebook paper (empty states, empty covers) ---------- */
.ruled {
  background-color: #FBFCFE;
  background-image:
    linear-gradient(90deg, transparent 38px, rgba(200, 55, 45, .45) 38px, rgba(200, 55, 45, .45) 39.5px, transparent 39.5px),
    repeating-linear-gradient(180deg, transparent 0 25px, var(--ink-line) 25px 26px);
}
.empty {
  border-radius: var(--r-card); border: 1px solid var(--rule); padding: 44px 24px 44px 64px;
  color: var(--slate); max-width: 620px;
}
.empty h2 { color: var(--graphite); margin-bottom: 6px; }
.empty p { margin: 0 0 18px; line-height: 26px; }

/* ---------- filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-bottom: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--rule); background: var(--white); font-size: 13px; cursor: pointer; color: var(--slate);
}
.chip[aria-pressed="true"] { background: var(--graphite); border-color: var(--graphite); color: #fff; }
.search { position: relative; margin-left: auto; min-width: 220px; }
.search .icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--slate); }
.search input { padding-left: 36px; min-height: 36px; border-radius: 999px; font-size: 14px; }
@media (max-width: 640px) { .search { margin-left: 0; width: 100%; } }

/* ---------- event covers with name-label sticker ---------- */
.covers { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 26px 22px; }
.cover {
  position: relative; display: block; aspect-ratio: 4 / 3.2; border-radius: var(--r-card); overflow: hidden;
  background: #DCE2EC center / cover no-repeat; color: var(--graphite);
  box-shadow: 0 1px 0 rgba(30, 36, 51, .06);
}
.cover:hover { text-decoration: none; }
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(10, 14, 24, .28)); }
.cover.ruled { background-color: #FBFCFE; background-position: 0 0; background-size: auto; background-repeat: repeat;
  background-image:
    linear-gradient(90deg, transparent 38px, rgba(200, 55, 45, .45) 38px, rgba(200, 55, 45, .45) 39.5px, transparent 39.5px),
    repeating-linear-gradient(180deg, transparent 0 25px, var(--ink-line) 25px 26px);
  border: 1px solid var(--rule); }
.cover.ruled::after { display: none; }
.cover .count {
  position: absolute; top: 10px; right: 10px; z-index: 1; display: inline-flex; gap: 5px; align-items: center;
  background: rgba(255, 255, 255, .92); border-radius: 999px; padding: 2px 9px; font-size: 12px; color: var(--graphite);
}
.label-sticker {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 1;
  background: var(--white); border: 1.5px solid var(--ink); border-radius: 7px; padding: 8px 12px 9px;
  box-shadow: 0 0 0 3px var(--white), 0 6px 16px -8px rgba(10, 14, 24, .45);
  transition: transform .15s ease;
}
.cover:hover .label-sticker { transform: translateY(-3px); }
.label-sticker .title {
  font-weight: 600; font-size: 15px; line-height: 1.3; padding-bottom: 5px; margin-bottom: 5px;
  border-bottom: 1px solid var(--ink-line); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.label-sticker .lines { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--slate); }
.label-sticker .cat { color: var(--ink); font-weight: 500; }
@media (prefers-reduced-motion: reduce) { .cover:hover .label-sticker { transform: none; } }

/* ---------- event page ---------- */
.event-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--slate); font-size: 14px; margin-top: 8px; }
.event-meta span { display: inline-flex; align-items: center; gap: 6px; }
.event-meta .cat { color: var(--ink); font-weight: 500; }
.event-desc { max-width: 70ch; margin: 12px 0 0; white-space: pre-line; }
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--rule); margin: 4px 0 18px; }
.tabs button { white-space: nowrap; }
@media (max-width: 480px) { .tabs { gap: 16px; } .tab-tools .lbl { display: none; } .tab-tools .btn { width: 34px; padding: 0; } }
.tabs button {
  background: none; border: 0; padding: 10px 0 11px; margin-bottom: -1px; font-size: 14px; font-weight: 500;
  color: var(--slate); cursor: pointer; border-bottom: 2px solid transparent; display: inline-flex; gap: 7px; align-items: center;
}
.tabs button[aria-selected="true"] { color: var(--graphite); border-color: var(--ink); }
.tabs .tab-tools { margin-left: auto; align-self: center; display: flex; gap: 6px; }
.tabs .n { font-size: 12px; background: var(--paper); border-radius: 999px; padding: 0 7px; color: var(--slate); }
.tabs button[aria-selected="true"] .n { background: var(--ink-wash); color: var(--ink); }

/* menu */
.menu { position: relative; }
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-pop {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 190px; padding: 6px;
  background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-ctl); box-shadow: 0 12px 30px -10px rgba(10, 14, 24, .3);
}
.menu-pop a, .menu-pop button {
  display: flex; width: 100%; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 6px;
  background: none; border: 0; font-size: 14px; color: var(--graphite); cursor: pointer; text-align: left;
}
.menu-pop a:hover, .menu-pop button:hover { background: var(--paper); text-decoration: none; }
.menu-pop .danger { color: var(--margin); }

/* photo grid */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 6px; }
@media (max-width: 640px) { .tiles { grid-template-columns: repeat(3, 1fr); gap: 3px; } }
.tile {
  position: relative; aspect-ratio: 1; border-radius: var(--r-tile); overflow: hidden; background: #DCE2EC;
  border: 0; padding: 0; cursor: zoom-in; display: block; width: 100%;
}
.tile img, .tile video { width: 100%; height: 100%; object-fit: cover; }
.tile .noprev {
  position: absolute; inset: 0; display: flex; flex-direction: column; gap: 4px; align-items: center; justify-content: center;
  font-size: 12px; color: var(--slate); text-align: center; padding: 8px;
}
.tile .play {
  position: absolute; left: 7px; bottom: 7px; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(10, 14, 24, .62); color: #fff; display: grid; place-items: center;
}
.tile .play .icon { width: 12px; height: 12px; fill: #fff; stroke: none; margin-left: 2px; }
.tile .pick {
  position: absolute; top: 7px; left: 7px; z-index: 2; width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid #fff; background: rgba(10, 14, 24, .25); display: grid; place-items: center; cursor: pointer;
  opacity: 0; transition: opacity .12s;
}
.tile .pick .icon { width: 14px; height: 14px; stroke: #fff; stroke-width: 3; opacity: 0; }
.tile:hover .pick, .tiles.selecting .pick, .tile:focus-within .pick { opacity: 1; }
@media (hover: none) { .tile:hover .pick { opacity: 0; } .tiles.selecting .pick { opacity: 1; } }
.tile.sel { box-shadow: inset 0 0 0 3px var(--ink); }
.tile.sel img, .tile.sel video { transform: scale(.9); border-radius: 4px; }
.tile img, .tile video { transition: transform .12s; }
.tile.sel .pick { opacity: 1; background: var(--ink); border-color: var(--ink); }
.tile.sel .pick .icon { opacity: 1; }

.selbar {
  position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, calc(100% + 40px)); z-index: 40; visibility: hidden;
  display: flex; align-items: center; gap: 6px; padding: 7px 7px 7px 16px; border-radius: 999px;
  background: var(--graphite); color: #fff; box-shadow: 0 14px 34px -12px rgba(10, 14, 24, .55);
  transition: transform .18s ease, visibility .18s; white-space: nowrap;
}
.selbar.show { transform: translate(-50%, 0); visibility: visible; }
.selbar .count { font-weight: 500; margin-right: 8px; font-size: 14px; }
.selbar .btn { min-height: 34px; border-radius: 999px; }
.selbar .btn.quiet { color: #fff; }
.selbar .btn.quiet:hover { background: rgba(255, 255, 255, .12); }
@media (max-width: 860px) { .selbar { bottom: 78px; } }
@media (prefers-reduced-motion: reduce) { .selbar { transition: none; } }

.offline { display: none; margin-bottom: 14px; }
.offline.show { display: block; }

/* upload drawer + tray */
.drawer {
  margin: 0 0 0 auto; height: 100%; max-height: 100%; width: min(560px, 100vw); border: 0; padding: 0;
  background: var(--white); box-shadow: -20px 0 50px -20px rgba(10, 14, 24, .35);
}
.drawer::backdrop { background: rgba(10, 14, 24, .35); }
.drawer-in { display: flex; flex-direction: column; height: 100%; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--rule); }
.drawer-head p { margin: 2px 0 0; font-size: 13px; color: var(--slate); }
.drawer-body { flex: 1; min-height: 0; padding: 14px; overflow: auto; }
.drawer-body #uploader { height: 100%; }
.drawer-body .uppy-Dashboard-inner { border-radius: var(--r-card) !important; border-color: var(--rule) !important; background: #FBFCFE !important; }
.uppy-Root { font-family: var(--font) !important; }
.uppy-c-btn-primary, .uppy-StatusBar-actionBtn--upload { background-color: var(--ink) !important; }
.tray {
  position: fixed; right: 20px; bottom: 22px; z-index: 39; display: none; align-items: center; gap: 12px;
  background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-card); padding: 10px 14px;
  box-shadow: 0 14px 34px -14px rgba(10, 14, 24, .4); cursor: pointer; min-width: 240px;
}
.tray.show { display: flex; }
.tray .bar { flex: 1; height: 6px; border-radius: 99px; background: var(--paper); overflow: hidden; }
.tray .bar i { display: block; height: 100%; background: var(--ink); width: 0; transition: width .3s; }
.tray .txt { font-size: 13px; line-height: 1.3; }
@media (max-width: 860px) { .tray { right: 12px; left: 12px; bottom: 78px; } }

/* ---------- dialogs ---------- */
.dlg { border: 0; border-radius: var(--r-dlg); padding: 0; width: min(500px, calc(100vw - 28px)); box-shadow: 0 30px 70px -20px rgba(10, 14, 24, .45); color: var(--graphite); }
.dlg::backdrop { background: rgba(10, 14, 24, .45); }
.dlg-in { padding: 22px 24px 20px; }
.dlg h2 { margin-bottom: 4px; }
.dlg .sub { color: var(--slate); font-size: 14px; margin: 0 0 18px; }
.dlg-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }
.copyrow { display: flex; gap: 8px; }
.copyrow .input { background: var(--paper); font-size: 14px; }

/* ---------- toasts ---------- */
.toasts { position: fixed; left: 50%; top: 18px; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  display: flex; gap: 9px; align-items: center; background: var(--graphite); color: #fff; padding: 9px 15px;
  border-radius: 999px; font-size: 14px; box-shadow: 0 12px 30px -12px rgba(10, 14, 24, .5); pointer-events: auto;
  animation: toast-in .18s ease;
}
.toast.error { background: var(--margin); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } }

/* ---------- tables (links) ---------- */
.list { background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-card); }
.list-row { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.25fr) minmax(0, .8fr) 296px; gap: 16px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--rule); }
.list-row:last-child { border-bottom: 0; }
.list-row.head { padding-top: 10px; padding-bottom: 10px; font-size: 13px; color: var(--slate); font-weight: 500; background: #FAFBFC; border-radius: var(--r-card) var(--r-card) 0 0; }
.list-row .what { font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.list-row .meta { font-size: 13px; color: var(--slate); margin-top: 2px; }
.list-row .acts { display: flex; gap: 4px; justify-content: flex-end; flex-wrap: wrap; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status.active { color: var(--leaf); }
.status.disabled { color: var(--slate); }
.status.expired { color: var(--margin); }
.flag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--slate); background: var(--paper); border-radius: 6px; padding: 1px 7px; margin-right: 4px; }
@media (max-width: 760px) {
  .list-row { grid-template-columns: 1fr auto; gap: 8px 12px; }
  .list-row.head { display: none; }
  .list-row .col-exp, .list-row .col-views { grid-column: 1 / -1; font-size: 13px; color: var(--slate); }
  .list-row .acts { grid-column: 1 / -1; justify-content: flex-start; }
}
.segtabs { display: flex; gap: 4px; padding: 4px; background: var(--white); border: 1px solid var(--rule); border-radius: 999px; }
.segtabs a { padding: 5px 14px; border-radius: 999px; font-size: 14px; color: var(--slate); }
.segtabs a:hover { text-decoration: none; color: var(--graphite); }
.segtabs a[aria-current="page"] { background: var(--graphite); color: #fff; }

/* ---------- forms page ---------- */
.form-card { max-width: 620px; background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-card); padding: 26px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 560px) { .grid-2 { grid-template-columns: 1fr; } .form-card { padding: 20px 16px; } }
.form-actions { display: flex; gap: 10px; margin-top: 8px; }

/* ---------- lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 90; background: #0C1018; color: #E6E9EF; display: none; flex-direction: column; }
.lb.open { display: flex; }
.lb-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 18px; }
.lb-top .name { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-top .pos { color: #8D95A5; font-size: 13px; margin-left: 10px; }
.lb-top .acts { display: flex; gap: 6px; flex: none; }
.lb .btn { background: rgba(255, 255, 255, .08); border-color: transparent; color: #fff; }
.lb .btn:hover { background: rgba(255, 255, 255, .16); }
.lb-stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 64px 18px; }
.lb-stage img, .lb-stage video { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb-stage .noprev { color: #8D95A5; text-align: center; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; 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; }
.lb-nav .icon { width: 22px; height: 22px; }
@media (max-width: 640px) { .lb-stage { padding: 0 0 10px; } .lb-nav { display: none; } }

/* ---------- auth pages ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-side {
  background: var(--ink); color: #fff; padding: 44px 52px; display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.auth-side::before {
  content: ""; position: absolute; inset: 0; opacity: .22;
  background-image:
    linear-gradient(90deg, transparent 72px, rgba(255, 140, 130, .9) 72px, rgba(255, 140, 130, .9) 73.5px, transparent 73.5px),
    repeating-linear-gradient(180deg, transparent 0 31px, rgba(255, 255, 255, .55) 31px 32px);
}
.auth-side > * { position: relative; }
.auth-side .brand { color: #fff; padding: 0; }
.auth-side .brand-mark { background: #fff; color: var(--ink); }
.auth-side blockquote { margin: 0; max-width: 24ch; font-size: 32px; line-height: 1.25; font-weight: 500; letter-spacing: -0.01em; }
.auth-side .foot { font-size: 13px; opacity: .8; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 32px 20px; }
.auth-box { width: 100%; max-width: 380px; }
.auth-box h1 { font-size: 26px; margin-bottom: 6px; }
.auth-box .lead { color: var(--slate); margin: 0 0 24px; }
.auth-box .btn.primary { width: 100%; min-height: 46px; font-size: 15px; margin-top: 4px; }
.code-input { text-align: center; font-size: 26px; letter-spacing: .5em; padding-left: .5em; font-weight: 500; }
.auth-links { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; font-size: 14px; }
.auth-links form { margin: 0; }
.linklike { background: none; border: 0; padding: 0; color: var(--ink); cursor: pointer; font-size: 14px; }
.linklike:hover { text-decoration: underline; text-underline-offset: 3px; }
.auth-mobile-brand { display: none; margin-bottom: 28px; }
@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-mobile-brand { display: flex; }
  .auth-main { align-items: flex-start; padding-top: 48px; }
}

/* ---------- public share pages ---------- */
.pub-top { background: var(--white); border-bottom: 1px solid var(--rule); }
.pub-top-in { max-width: 1240px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 11px; font-weight: 500; }
.pub-main { max-width: 1240px; margin: 0 auto; padding: 30px 20px 56px; }
.pub-head { margin-bottom: 22px; }
.pub-foot { text-align: center; color: #98A1B2; font-size: 12px; padding: 0 16px 28px; display: flex; gap: 6px; justify-content: center; align-items: center; }
.single-view { background: #0C1018; border-radius: var(--r-card); overflow: hidden; display: flex; justify-content: center; }
.single-view img, .single-view video { max-width: 100%; max-height: 76vh; object-fit: contain; }
.single-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; font-size: 14px; color: var(--slate); flex-wrap: wrap; }
.center-card { max-width: 420px; margin: 8vh auto 0; text-align: left; }
.center-card .empty { padding: 34px 24px 34px 62px; }
.gone-cover { position: fixed; inset: 0; z-index: 95; background: rgba(243, 245, 248, .97); display: none; align-items: center; justify-content: center; padding: 20px; }
.gone-cover.show { display: flex; }
