/* Confeine — "morning on campus", your daily dose of academic connection.
   Layout: a sunlit hero with postcards of real conference images, a filter deck
   with a clickable month histogram, then a picture wall beside a hall of fame.
   Palette: sky light, sun gold for calls to action, university blue for ink and
   links. A single bright theme by choice. System fonts only (fast in China). */
:root {
  --ink: #16213a;
  --muted: #5c6a80;
  --line: #e3e8f0;
  --bg: #ffffff;
  --tint: #f3f7fd;
  --sky: #e6f1ff;
  --dawn: #fff4d6;
  --sun: #f5ad12;
  --sun-deep: #d98e00;
  --sun-soft: #fff1c9;
  --blue: #1c4f9c;
  --blue-2: #2c6cd0;
  --blue-soft: #e8f0fc;
  --live: #11905c;
  --live-soft: #ddf4ea;
  --warn: #c0570b;
  --warn-soft: #fdebd9;
  --bad: #b42335;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia,
    "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "Noto Serif CJK SC", serif;
  --sans: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Noto Sans CJK SC", "Noto Sans SC", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  --s-1: 0.8125rem;
  --s0: 0.9375rem;
  --s1: 1.125rem;
  --s2: 1.4rem;
  --s3: clamp(1.7rem, 1.2rem + 1.8vw, 2.4rem);
  --s4: clamp(2.1rem, 1.3rem + 3.2vw, 3.5rem);
  --r: 14px;
  --shadow: 0 1px 2px rgba(22, 33, 58, 0.06), 0 8px 24px -12px rgba(22, 33, 58, 0.18);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--s0)/1.6 var(--sans); }
a { color: var(--blue-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 2px; }
[hidden] { display: none !important; }
h1, h2, h3 { text-wrap: balance; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); }
.muted { color: var(--muted); }
.small { font-size: var(--s-1); }
.center { text-align: center; }
.eyebrow { margin: 0 0 10px; font-size: var(--s-1); font-weight: 600; letter-spacing: 0.08em; color: var(--sun-deep); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--blue);
  background: var(--blue); color: #fff; font-weight: 600; cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 6px 16px -8px rgba(28, 79, 156, 0.6); }
.btn.sun { background: var(--sun); border-color: var(--sun); color: #2b1d00; }
.btn.sun:hover { background: #ffbb2a; box-shadow: 0 6px 18px -8px rgba(217, 142, 0, 0.8); }
.btn.ghost { background: #fff; color: var(--blue); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--blue-2); }
.btn.glass { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.55); color: #fff; backdrop-filter: blur(6px); }
.btn.on { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.8); }
.btn.glass.on { background: #fff; color: var(--blue); }
.btn.small { height: 32px; padding: 0 13px; font-size: var(--s-1); }
.btn.block { display: flex; width: 100%; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--blue-2); cursor: pointer; font-size: inherit; }
.linkbtn:hover { text-decoration: underline; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
@media (prefers-reduced-motion: reduce) { .btn, .card, .postcard { transition: none !important; } }

/* ---------- nav ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: rgba(255, 255, 255, 0.92); }
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.nav-row { display: flex; align-items: center; gap: 22px; height: 62px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark { width: 30px; height: 30px; }
.brand-name { font: 700 1.2rem/1 var(--serif); letter-spacing: 0.02em; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { position: relative; padding: 8px 12px; border-radius: 999px; color: var(--muted); font-weight: 500; }
.nav-links a:hover { color: var(--ink); background: var(--tint); text-decoration: none; }
.nav-links a.on { color: var(--blue); background: var(--blue-soft); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 12px; font-size: var(--s-1); cursor: pointer; }
.me-link { display: flex; }
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #e5484d; color: #fff; font-size: 11px; font-weight: 700; margin-left: 4px; }

/* ---------- avatars ---------- */
.avatar { display: inline-flex; align-items: center; justify-content: center; flex: none; border-radius: 50%; color: #fff; font-weight: 700; object-fit: cover; background: var(--blue); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.avatar-row { display: flex; flex-wrap: wrap; }
.avatar-row a { margin-right: -6px; }
.verified { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; background: var(--blue-2); color: #fff; font-size: 10px; font-style: normal; font-weight: 800; vertical-align: 1px; }

/* ---------- chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); font: 600 0.6875rem/1 var(--mono); letter-spacing: 0.02em; white-space: nowrap; background: #fff; }
.chip-top { border-color: var(--sun); color: #8a5a00; background: var(--sun-soft); }
.chip.light { background: rgba(255, 255, 255, 0.18); border-color: rgba(255, 255, 255, 0.5); color: #fff; font-family: var(--sans); }
.live-pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--live); color: #fff; font-size: 12px; font-weight: 700; }
.live-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: beat 1.8s infinite; }
@keyframes beat { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.8); } 70%, 100% { box-shadow: 0 0 0 7px rgba(255, 255, 255, 0); } }
@media (prefers-reduced-motion: reduce) { .live-pill::before { animation: none; } }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { padding: 3px 10px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); font-size: var(--s-1); }
.sim { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.sim.big { height: 28px; font-size: 13px; }
.sim-hi { background: var(--sun-soft); color: #8a5a00; box-shadow: inset 0 0 0 1px var(--sun); }
.sim-mid { background: var(--blue-soft); color: var(--blue); }
.sim-lo { background: var(--tint); color: var(--muted); }
.metric-mini { font-size: 12px; color: var(--muted); font-family: var(--mono); }

/* ---------- covers ---------- */
.cover { position: relative; overflow: hidden; background: var(--sky); }
.cover .gen-cover, .cover img { position: absolute; inset: 0; width: 100%; height: 100%; }
.cover img { object-fit: cover; opacity: 0; transition: opacity 0.4s ease; background: var(--sky); }
.cover img.loaded { opacity: 1; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(60% 80% at 88% 0%, rgba(255, 214, 110, 0.75), rgba(255, 214, 110, 0) 60%),
    radial-gradient(50% 60% at 10% 100%, rgba(150, 200, 255, 0.45), rgba(150, 200, 255, 0) 70%),
    linear-gradient(170deg, var(--dawn) 0%, #fdf9ef 35%, var(--sky) 100%);
}
.sunrays {
  position: absolute; right: -12%; top: -40%; width: 70vmax; height: 70vmax; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, 0.35) 0deg 4deg, rgba(255, 255, 255, 0) 4deg 14deg);
  -webkit-mask: radial-gradient(circle, #000 0 18%, transparent 62%); mask: radial-gradient(circle, #000 0 18%, transparent 62%);
  animation: turn 120s linear infinite;
}
@keyframes turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .sunrays { animation: none; } }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-block: 48px 40px; }
.hero h1 { margin: 0; font: 700 var(--s4)/1.12 var(--serif); letter-spacing: -0.01em; color: var(--ink); }
.lede { margin: 16px 0 0; max-width: 34em; color: #45536a; font-size: 1.05rem; }
.hero-search { display: flex; gap: 8px; margin-top: 24px; padding: 6px; background: #fff; border-radius: 999px; box-shadow: var(--shadow); max-width: 560px; }
.hero-search input { flex: 1; min-width: 0; border: 0; outline: none; padding: 0 16px; background: transparent; font-size: 1rem; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.hstat { display: flex; align-items: baseline; gap: 6px; padding: 8px 14px; border-radius: 12px; border: 1px solid rgba(22, 33, 58, 0.08); background: rgba(255, 255, 255, 0.7); cursor: pointer; text-align: left; }
.hstat:hover { background: #fff; border-color: var(--blue-2); }
.hstat b { font: 700 1.35rem/1 var(--serif); font-variant-numeric: tabular-nums; }
.hstat span { font-size: var(--s-1); color: var(--muted); }
.hstat.live b { color: var(--live); }
.hstat.warn b { color: var(--warn); }
.hstat.sun b { color: var(--sun-deep); }

.postcards { position: relative; height: 420px; }
.postcard {
  position: absolute; width: 58%; border-radius: 12px; background: #fff; padding: 8px 8px 0; color: var(--ink);
  box-shadow: 0 2px 4px rgba(22, 33, 58, 0.08), 0 22px 40px -18px rgba(22, 33, 58, 0.45);
  transition: transform 0.25s ease, z-index 0s;
}
.postcard:hover { text-decoration: none; transform: rotate(0deg) translateY(-6px) scale(1.03) !important; z-index: 5; }
.postcard .cover { aspect-ratio: 16 / 10; border-radius: 7px; }
.pc-label { display: flex; flex-direction: column; padding: 8px 4px 10px; }
.pc-label b { font: 700 1rem/1.2 var(--serif); }
.pc-label small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc0 { left: 0; top: 10px; transform: rotate(-5deg); z-index: 2; }
.pc1 { right: 0; top: 0; transform: rotate(4deg); z-index: 1; }
.pc2 { left: 12%; bottom: 0; transform: rotate(3deg); z-index: 3; }
.pc3 { right: 4%; bottom: 24px; transform: rotate(-3deg); z-index: 2; width: 46%; }

/* ---------- filter deck ---------- */
.deck { border-block: 1px solid var(--line); background: #fff; padding-block: 16px 10px; }
.filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 10px 12px; align-items: end; }
.f { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.f > span { font-size: var(--s-1); color: var(--muted); }
.f > small { color: var(--muted); font-size: 12px; }
.f input, .f select, .f textarea, .toolbar input, .toolbar select, .inline-form input {
  width: 100%; min-width: 0; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
}
.f textarea { height: auto; padding: 10px 12px; resize: vertical; }
.f input:focus, .f select:focus, .f textarea:focus, .toolbar input:focus, .toolbar select:focus, .inline-form input:focus { border-color: var(--blue-2); outline: none; box-shadow: 0 0 0 3px var(--blue-soft); }
.f input:disabled { background: var(--tint); color: var(--muted); }
.f-check { display: flex; flex-direction: row; align-items: center; gap: 8px; min-height: 40px; cursor: pointer; }
.f-check input { width: 17px; height: 17px; accent-color: var(--blue-2); }
.months-head { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.label { font-size: var(--s-1); color: var(--muted); }
.months-scroll { overflow-x: auto; padding-bottom: 4px; }
.months { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(56px, 1fr); gap: 4px; min-width: max-content; margin-top: 6px; }
.month { display: grid; grid-template-rows: 58px auto auto; align-items: end; justify-items: center; gap: 2px; padding: 5px 2px 6px; border: 1px solid transparent; border-radius: 10px; background: none; cursor: pointer; }
.month:hover { background: var(--tint); }
.month[aria-pressed="true"] { border-color: var(--sun); background: var(--sun-soft); }
.mcol { width: 58%; max-width: 30px; border-radius: 4px 4px 1px 1px; background: linear-gradient(180deg, #9cc3f5, #c9defa); }
.month:hover .mcol, .month[aria-pressed="true"] .mcol { background: linear-gradient(180deg, var(--sun), #ffd77a); }
.mn { font: 600 var(--s-1)/1 var(--mono); }
.ml { font-size: 0.75rem; color: var(--muted); white-space: nowrap; }
.ml.y { color: var(--ink); font-weight: 600; }
.month:disabled { opacity: 0.4; cursor: default; }

/* ---------- home grid & wall ---------- */
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; padding-block: 26px 40px; align-items: start; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 14px; }
.section-head h2 { margin: 0; font: 700 var(--s2)/1.2 var(--serif); }
.section-head p { margin: 0; }
.section-head .sort { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: var(--s-1); color: var(--muted); }
.section-head .sort select { height: 34px; border: 1px solid var(--line); border-radius: 999px; padding: 0 12px; background: #fff; }
.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.card { display: flex; flex-direction: column; border-radius: var(--r); background: #fff; border: 1px solid var(--line); overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease; min-width: 0; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card.has-star { border-color: #f3d58a; }
.card-cover { position: relative; display: block; }
.card-cover > a { display: block; }
.card-cover .cover { aspect-ratio: 16 / 10; }
.datebadge { position: absolute; left: 10px; top: 10px; display: flex; flex-direction: column; align-items: center; width: 46px; border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.35); }
.datebadge small { width: 100%; text-align: center; background: var(--bad); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; }
.datebadge b { font: 700 1.2rem/1.5 var(--serif); color: var(--ink); }
.card-cover .live-pill { position: absolute; right: 10px; top: 10px; }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; flex: 1; min-width: 0; }
.card-body h3 { margin: 0; font: 700 1.15rem/1.25 var(--serif); }
.card-body h3 a { color: var(--ink); }
.card-name { margin: 0; color: var(--muted); font-size: var(--s-1); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-place { margin: 0; font-size: var(--s-1); color: var(--ink); }
.pin { width: 11px; height: 11px; fill: var(--sun-deep); margin-right: 4px; vertical-align: -1px; }
.sep { margin: 0 6px; color: var(--line); }
.star { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; background: linear-gradient(90deg, var(--sun-soft), #fffaf0); color: var(--ink); font-size: 12px; }
.star:hover { text-decoration: none; background: var(--sun-soft); }
.star span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.star em { font-style: normal; color: #8a5a00; font-family: var(--mono); white-space: nowrap; }
.card-foot { margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px; font-size: 12px; }
.who { color: var(--blue); font-weight: 600; }
.be-first { color: var(--muted); }
.dl-chip { padding: 2px 8px; border-radius: 999px; background: var(--tint); color: var(--muted); font-weight: 600; }
.dl-chip.soon { background: var(--warn-soft); color: var(--warn); }
.more-wrap { grid-column: 1 / -1; display: flex; justify-content: center; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; min-width: 0; }
.panel h2 { margin: 0 0 10px; font: 700 1.1rem/1.3 var(--serif); }
.panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.panel-head h2 { margin: 0; }
.home-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 80px; }
.fame { background: linear-gradient(180deg, #fffaf0, #fff 40%); border-color: #f3e2b6; }
.fame-list { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.fame-list a { display: grid; grid-template-columns: 22px auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 6px; border-radius: 10px; color: var(--ink); }
.fame-list a:hover { background: var(--sun-soft); text-decoration: none; }
.fame-rank { font: 700 1rem/1 var(--serif); color: var(--sun-deep); text-align: center; }
.fame-who { display: flex; flex-direction: column; min-width: 0; }
.fame-who b, .fame-who small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fame-who small, .fame-num small { color: var(--muted); font-size: 12px; }
.fame-num { display: flex; flex-direction: column; align-items: flex-end; }
.fame-num b { font: 700 1rem/1.1 var(--serif); }
.invite { background: linear-gradient(160deg, var(--blue), #2b65bd); color: #fff; border: 0; }
.invite h2 { color: #fff; }
.invite p { color: rgba(255, 255, 255, 0.85); margin: 0 0 14px; }

.moments { padding-bottom: 40px; }
.moments-grid { columns: 4 220px; column-gap: 14px; }
.moment { position: relative; display: block; margin-bottom: 14px; break-inside: avoid; border-radius: 12px; overflow: hidden; }
.moment img { display: block; width: 100%; }
.moment span { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 8px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.6)); color: #fff; font-size: 12px; }

.empty { padding: 40px 20px; border: 1px dashed #cfd8e6; border-radius: var(--r); text-align: center; background: var(--tint); grid-column: 1 / -1; }
.empty h3 { margin: 0 0 6px; font: 700 1.15rem/1.3 var(--serif); }
.empty p { margin: 0 auto; max-width: 44ch; color: var(--muted); }
.empty .row-actions { justify-content: center; margin-top: 14px; }

/* ---------- conference page ---------- */
.conf-hero { position: relative; min-height: 380px; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.conf-hero .hero-cover { position: absolute; inset: 0; }
.conf-hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 20, 45, 0.15) 0%, rgba(10, 20, 45, 0.35) 45%, rgba(10, 20, 45, 0.85) 100%); }
.conf-hero-inner { position: relative; width: 100%; padding-block: 28px 30px; }
.back { display: inline-block; margin-bottom: 14px; color: rgba(255, 255, 255, 0.9); font-size: var(--s-1); }
.conf-hero h1 { margin: 10px 0 4px; font: 700 var(--s4)/1.05 var(--serif); text-shadow: 0 2px 18px rgba(0, 0, 0, 0.3); }
.conf-full { margin: 0; font-size: 1.1rem; color: rgba(255, 255, 255, 0.92); max-width: 60ch; }
.conf-when { margin: 10px 0 0; color: rgba(255, 255, 255, 0.9); }
.conf-when .pin { fill: var(--sun); }
.conf-when .sep { color: rgba(255, 255, 255, 0.5); }
.conf-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.conf-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; padding-block: 24px 48px; align-items: start; }
.conf-main, .conf-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.deadlines { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.deadlines li { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 10px; background: var(--tint); }
.deadlines li span { font-size: var(--s-1); color: var(--muted); }
.deadlines li b { font-family: var(--mono); font-size: var(--s-1); }
.deadlines li small { font-weight: 700; color: var(--blue); }
.deadlines li.soon { background: var(--warn-soft); }
.deadlines li.soon small { color: var(--warn); }
.deadlines li.past { opacity: 0.6; }
.deadlines li.past small { color: var(--muted); }
.people { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.person { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px; border-radius: 10px; }
.person:hover { background: var(--tint); }
.person > a { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--ink); }
.person > a:hover { text-decoration: none; }
.person-who { display: flex; flex-direction: column; min-width: 0; }
.person-who b { line-height: 1.3; overflow-wrap: anywhere; }
.person-who small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-who small { color: var(--muted); font-size: 12px; }
.person-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex: none; }
.sub-h { margin: 14px 0 8px; font-size: var(--s-1); color: var(--muted); font-weight: 600; }
.group-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 12px; padding: 14px; margin: 10px 0 14px; border-radius: 12px; background: var(--sun-soft); }
.group-form .wide, .form-grid .wide { grid-column: 1 / -1; }
.group { padding: 14px; border-radius: 12px; border: 1px solid var(--line); margin-top: 10px; }
.group-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.group h3 { margin: 0; font-size: 1rem; }
.group-cap { font-family: var(--mono); font-size: var(--s-1); color: var(--muted); }
.group-meta { margin: 4px 0 0; color: var(--blue); font-size: var(--s-1); font-weight: 600; }
.group-note { margin: 6px 0 0; color: var(--muted); font-size: var(--s-1); }
.group-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; }
.empty-groups { margin: 12px 0 0; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.photo-grid > p { grid-column: 1 / -1; margin: 0; }
.photo { margin: 0; }
.photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.photo figcaption { font-size: 12px; color: var(--muted); margin-top: 4px; }
.upload-btn { cursor: pointer; }

/* ---------- chat ---------- */
.chat { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #f6f8fb; }
.chat-log { height: 380px; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.chat-day { align-self: center; font-size: 11px; color: var(--muted); background: #e9eef5; padding: 2px 10px; border-radius: 999px; }
.msg { display: flex; gap: 8px; align-items: flex-start; max-width: 80%; }
.msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.msg-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.msg.mine .msg-main { align-items: flex-end; }
.msg-name { font-size: 12px; color: var(--ink); font-weight: 600; }
.msg-name small { color: var(--muted); font-weight: 400; margin-left: 6px; }
.msg-body { padding: 8px 12px; border-radius: 4px 14px 14px 14px; background: #fff; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05); overflow-wrap: anywhere; }
.msg.mine .msg-body { background: var(--blue-2); color: #fff; border-radius: 14px 4px 14px 14px; }
.msg time { font-size: 10px; color: var(--muted); }
.chat-form { display: flex; gap: 8px; padding: 10px; background: #fff; border-top: 1px solid var(--line); }
.chat-form textarea { flex: 1; min-width: 0; resize: none; border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; max-height: 140px; }
.chat-form textarea:focus { outline: none; border-color: var(--blue-2); }

/* ---------- pages ---------- */
.page { padding-block: 28px 56px; }
.page.narrow { max-width: 880px; }
.page-head { margin-bottom: 18px; }
.page-head h1, .rank-hero h1 { margin: 0 0 6px; font: 700 var(--s3)/1.15 var(--serif); }
.page-head p { margin: 0 0 6px; max-width: 60ch; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tabs a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-weight: 600; font-size: var(--s-1); }
.tabs a:hover { text-decoration: none; border-color: var(--blue-2); }
.tabs a.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.toolbar { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-bottom: 18px; }
.scholar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.scholar { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; min-width: 0; }
.scholar-top { display: flex; gap: 12px; align-items: center; color: var(--ink); min-width: 0; }
.scholar-top:hover { text-decoration: none; }
.scholar-top > span { display: flex; flex-direction: column; min-width: 0; }
.scholar-top b { font: 700 1.05rem/1.3 var(--serif); }
.scholar-top small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scholar-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 8px; border-radius: 10px; background: var(--tint); text-align: center; font-size: 11px; color: var(--muted); }
.scholar-metrics b { display: block; font: 700 1.05rem/1.2 var(--serif); color: var(--ink); }
.scholar-sim { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.scholar-sim small { color: var(--muted); font-size: 12px; }
.scholar-going { margin: 0; font-size: 12px; color: var(--muted); }
.scholar .row-actions { margin-top: auto; }

.rank-hero { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 24px; margin-bottom: 18px; border-radius: 18px;
  background: radial-gradient(60% 120% at 100% 0%, rgba(255, 214, 110, 0.6), transparent 60%), linear-gradient(170deg, var(--dawn), var(--sky)); }
.rank-hero > div { max-width: 64ch; }
.rank-hero p.muted { margin: 0; }
.board { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.board-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.board-row.me { box-shadow: 0 0 0 2px var(--blue-2); }
.board-rank { font: 700 1.4rem/1 var(--serif); color: var(--muted); text-align: center; }
.board-row.medal .board-rank { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: #fff; font-size: 1.1rem; }
.board-row.m1 { background: linear-gradient(90deg, #fff6dc, #fff); border-color: #f2d27d; }
.board-row.m1 .board-rank { background: linear-gradient(140deg, #ffd45e, #e2a000); }
.board-row.m2 .board-rank { background: linear-gradient(140deg, #d9e1ec, #9aa8bd); }
.board-row.m3 .board-rank { background: linear-gradient(140deg, #f0c39a, #c27a3e); }
.board-who { display: flex; align-items: center; gap: 12px; color: var(--ink); min-width: 0; }
.board-who:hover { text-decoration: none; }
.board-who > span { display: flex; flex-direction: column; min-width: 0; }
.board-who b { font: 700 1.05rem/1.3 var(--serif); }
.board-who small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-going { color: var(--sun-deep) !important; font-weight: 600; }
.board-num { display: flex; flex-direction: column; align-items: flex-end; }
.board-num b { font: 700 1.4rem/1.1 var(--serif); font-variant-numeric: tabular-nums; }
.board-num small { color: var(--muted); font-size: 12px; }

.profile-band { background: radial-gradient(50% 140% at 100% 0%, rgba(255, 214, 110, 0.55), transparent 60%), linear-gradient(170deg, var(--dawn), var(--sky)); border-bottom: 1px solid var(--line); }
.profile-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; align-items: center; padding-block: 32px; }
.profile-head > .avatar { border-width: 4px; }
.profile-id h1 { margin: 0; font: 700 var(--s3)/1.15 var(--serif); }
.profile-line { margin: 4px 0 0; font-size: 1.02rem; }
.verified-line { margin: 8px 0 0; color: var(--blue); font-weight: 600; font-size: var(--s-1); }
.socials { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.social { padding: 4px 11px; border-radius: 999px; background: rgba(255, 255, 255, 0.8); border: 1px solid var(--line); font-size: var(--s-1); color: var(--ink); }
.social:hover { border-color: var(--blue-2); text-decoration: none; }
.profile-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: var(--s-1); }
.profile-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; padding-block: 24px 56px; align-items: start; }
.profile-main, .profile-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.metrics div { padding: 12px; border-radius: 12px; background: var(--tint); text-align: center; }
.metrics b { display: block; font: 700 1.7rem/1.1 var(--serif); font-variant-numeric: tabular-nums; }
.metrics span { font-size: 12px; color: var(--muted); }
.metrics-panel p { margin: 10px 0 0; }
.sim-panel { display: flex; gap: 18px; align-items: center; background: linear-gradient(90deg, var(--sun-soft), #fff 60%); border-color: #f3e2b6; }
.sim-panel h2 { margin-bottom: 6px; }
.sim-ring { flex: none; display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%;
  background: conic-gradient(var(--sun) calc(var(--p) * 1%), #f2e6c4 0); position: relative; }
.sim-ring::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: #fff; }
.sim-ring b { position: relative; z-index: 1; font: 700 1.35rem/1 var(--serif); }
.bio { margin: 0 0 12px; white-space: pre-wrap; }
.pubs { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 10px; }
.pubs li a, .pubs li span { font-weight: 600; color: var(--ink); }
.pubs li small { display: block; color: var(--muted); font-size: 12px; }
.pubs li em { font-style: normal; margin-left: 8px; color: #8a5a00; font-weight: 600; }
.copyable { user-select: all; font-family: var(--mono); font-size: var(--s-1); overflow-wrap: anywhere; margin: 0; }
.mini-confs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.mini-confs a { display: flex; gap: 10px; align-items: center; color: var(--ink); }
.mini-confs a:hover { text-decoration: none; }
.mini-confs .cover.mini { width: 72px; flex: none; aspect-ratio: 16 / 10; border-radius: 8px; }
.mini-confs span { display: flex; flex-direction: column; min-width: 0; }
.mini-confs small { color: var(--muted); font-size: 12px; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin-bottom: 18px; }
.form-grid h2 { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 1rem; }
.form-grid h2:first-of-type { border-top: 0; padding-top: 0; }
.avatar-edit { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.sticky-save { position: sticky; bottom: 0; padding: 12px 0 calc(4px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(transparent, #fff 30%); }
.inline-form { display: flex; gap: 8px; margin-top: 10px; }
.inline-form.wrapy { flex-wrap: wrap; }
.inline-form.wrapy input[name=title] { flex: 1 1 100%; }
.inline-form.wrapy input { flex: 1 1 140px; }
.ok-line { color: var(--live); font-weight: 600; margin: 6px 0; }
.oa-results, .my-pubs { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.oa-results li, .my-pubs li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--tint); }
.oa-results li > span, .my-pubs li > span { display: flex; flex-direction: column; min-width: 0; }
.oa-results small, .my-pubs small { color: var(--muted); font-size: 12px; }

.inbox { display: grid; grid-template-columns: 320px minmax(0, 1fr); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; min-height: 600px; background: #fff; }
.inbox-list { border-right: 1px solid var(--line); background: var(--tint); min-width: 0; }
.inbox-list h1 { margin: 0; padding: 18px 18px 10px; font: 700 1.3rem/1.2 var(--serif); }
.inbox-list ul { list-style: none; margin: 0; padding: 0 8px 12px; }
.inbox-list li.muted { padding: 12px; }
.inbox-list a { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; color: var(--ink); }
.inbox-list a:hover { background: #fff; text-decoration: none; }
.inbox-list a.on { background: #fff; box-shadow: var(--shadow); }
.room-txt { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.room-txt b, .room-txt small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room-txt small { color: var(--muted); font-size: 12px; }
.inbox-list time { font-size: 11px; color: var(--muted); white-space: nowrap; }
.room-ico { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none; border-radius: 12px; font: 700 0.85rem/1 var(--serif); color: #fff; }
.room-ico.grp { background: linear-gradient(140deg, var(--sun), #ff9f43); }
.room-ico.conf { background: linear-gradient(140deg, var(--blue-2), var(--blue)); }
.inbox-room { display: flex; flex-direction: column; min-width: 0; }
.inbox-room > .empty { margin: 24px; }
.room-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.room-head #room-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; flex: 1; min-width: 0; }
.room-head #room-title > span, .room-who > span { display: flex; flex-direction: column; min-width: 0; }
.room-head small { color: var(--muted); font-size: 12px; }
.room-who { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.room-who:hover { text-decoration: none; }
.room-sim { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.back-mobile { display: none; font-size: 1.3rem; color: var(--ink); }
#room-chat { flex: 1; display: flex; }
#room-chat .chat { flex: 1; border: 0; border-radius: 0; }
#room-chat .chat-log { height: auto; flex: 1; min-height: 420px; max-height: calc(100vh - 260px); }

.auth { position: relative; overflow: hidden; display: grid; place-items: center; padding: 56px 18px; min-height: calc(100vh - 62px);
  background: radial-gradient(60% 80% at 88% 0%, rgba(255, 214, 110, 0.75), transparent 60%), linear-gradient(170deg, var(--dawn), var(--sky)); }
.auth-card { position: relative; width: 100%; max-width: 420px; padding: 30px; border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.auth-card h1 { margin: 0 0 6px; font: 700 1.7rem/1.2 var(--serif); }
.auth-card > p { margin: 0 0 18px; }
.auth-form { display: flex; flex-direction: column; gap: 12px; }

.toast { position: fixed; z-index: 50; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; width: max-content; max-width: calc(100vw - 32px); pointer-events: none; }
.toast-item { padding: 10px 18px; border-radius: 999px; background: var(--ink); color: #fff; box-shadow: var(--shadow); font-size: var(--s-1); transition: opacity 0.3s ease, transform 0.3s ease; }
.toast-item.bad { background: var(--bad); }
.toast-item.out { opacity: 0; transform: translateY(8px); }

.foot { border-top: 1px solid var(--line); background: var(--tint); color: var(--muted); font-size: var(--s-1); }
.foot-row { padding-block: 22px 30px; }
.foot p { margin: 0 0 4px; }
.boot { display: grid; place-items: center; min-height: 60vh; }
.boot-sun { width: 44px; height: 44px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 0 rgba(245, 173, 18, 0.5); animation: glow 1.6s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 0 18px rgba(245, 173, 18, 0); } }

/* ---------- responsive ---------- */
@media (max-width: 1060px) {
  .home-grid, .conf-grid, .profile-grid { grid-template-columns: minmax(0, 1fr); }
  .home-side { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); padding-block: 32px; }
  .postcards { height: 300px; }
  .nav-links a { padding: 8px 9px; }
  .profile-head { grid-template-columns: auto minmax(0, 1fr); }
  .profile-actions { grid-column: 1 / -1; align-items: flex-start; }
  .inbox { grid-template-columns: minmax(0, 1fr); }
  .inbox.has-room .inbox-list { display: none; }
  .inbox:not(.has-room) .inbox-room { display: none; }
  .back-mobile { display: inline; }
}
@media (max-width: 640px) {
  .nav-row { gap: 10px; height: auto; min-height: 58px; flex-wrap: wrap; padding-block: 8px; }
  .nav-links { order: 3; width: 100%; overflow-x: auto; }
  .brand-name { font-size: 1.05rem; }
  .hero h1 { font-size: 2rem; }
  .hero-search { border-radius: 16px; flex-direction: column; }
  .hero-search input { height: 42px; }
  .postcards { height: 240px; }
  .postcard { width: 62%; }
  .pc3 { display: none; }
  .filters, .toolbar, .form-grid, .group-form { grid-template-columns: minmax(0, 1fr); }
  .wall { grid-template-columns: minmax(0, 1fr); }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .profile-head > .avatar { width: 80px !important; height: 80px !important; }
  .msg { max-width: 92%; }
  .board-row { grid-template-columns: 36px minmax(0, 1fr); }
  .board-num { grid-column: 2; align-items: flex-start; flex-direction: row; gap: 6px; align-items: baseline; }
  .sim-panel { flex-direction: column; align-items: flex-start; }
}

/* ---------- data center (admin) ---------- */
.admin-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 18px; }
.ov { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.ov b { display: block; font: 700 1.5rem/1.1 var(--serif); font-variant-numeric: tabular-nums; }
.ov span { font-size: 12px; color: var(--muted); }
.ov.warn { border-color: #f3d58a; background: var(--sun-soft); }
.review-list { display: flex; flex-direction: column; gap: 12px; }
.review { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; display: flex; flex-direction: column; gap: 10px; }
.review-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.review-top b { font: 700 1.05rem/1.2 var(--serif); }
.conf-meter { margin-left: auto; font: 700 0.85rem/1 var(--mono); color: var(--live); }
.review-body { display: grid; gap: 6px; }
.review-body p { margin: 2px 0; }
.review-body blockquote { margin: 0; padding: 8px 12px; border-left: 3px solid var(--sun); background: var(--tint); border-radius: 6px; font-size: var(--s-1); color: var(--muted); overflow-wrap: anywhere; }
.review-edit { display: flex; flex-wrap: wrap; gap: 8px; }
.review-edit input, .review-edit select, .review .note { height: 34px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; min-width: 0; }
.review .note { flex: 1 1 220px; }
.warn-chip { border-color: var(--warn); color: var(--warn); background: var(--warn-soft); }
.chip.st-pending { border-color: var(--sun); color: #8a5a00; }
.chip.st-approved { border-color: var(--live); color: var(--live); }
.chip.st-rejected { color: var(--bad); border-color: var(--bad); }
.sub-poster { max-width: 220px; border-radius: 8px; }
.series-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.series-wrap:has(#sdetail:not([hidden])) { grid-template-columns: minmax(0, 1fr) 420px; }
#sdetail { position: sticky; top: 80px; max-height: calc(100vh - 100px); overflow-y: auto; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.stable { width: 100%; border-collapse: collapse; font-size: var(--s-1); }
.stable th { text-align: left; padding: 10px 12px; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line); white-space: nowrap; }
.stable td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.stable td small { display: block; color: var(--muted); }
.stable tbody tr { cursor: pointer; }
.stable tbody tr:hover { background: var(--tint); }
.cov { width: 40%; }
.cov span { display: block; height: 10px; border-radius: 5px; background: linear-gradient(90deg, var(--sun), #ffd77a); }
.admin-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.admin-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; background: var(--tint); }
.admin-list li > span { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.admin-list small { color: var(--muted); font-size: 12px; }
.form-grid.one { grid-template-columns: minmax(0, 1fr); margin-bottom: 8px; }
.check-box { margin: 10px 0; padding: 10px 12px; border-radius: 10px; background: var(--tint); font-size: var(--s-1); overflow-wrap: anywhere; }
.check-box p { margin: 4px 0 0; }
.conf-org { margin: 6px 0 0; color: rgba(255, 255, 255, 0.9); font-size: var(--s-1); }
@media (max-width: 960px) { .series-wrap:has(#sdetail:not([hidden])) { grid-template-columns: minmax(0, 1fr); } #sdetail { position: static; max-height: none; } }

/* ---------- heat & nearby ---------- */
.flame { width: 11px; height: 13px; fill: #f26b1d; vertical-align: -2px; margin-right: 4px; }
.week-up { font-style: normal; color: #f26b1d; font-weight: 700; }
.follow { position: absolute; right: 10px; bottom: 10px; height: 28px; padding: 0 11px; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, 0.92); color: var(--ink); font-size: 12px; font-weight: 700; box-shadow: 0 4px 12px -6px rgba(0, 0, 0, 0.5); }
.follow:hover { background: #fff; color: var(--blue); }
.follow.on { background: var(--sun); color: #2b1d00; }
.loc-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.loc-row select { height: 32px; border: 1px solid var(--line); border-radius: 999px; padding: 0 12px; background: #fff; max-width: 60vw; }
.strips { display: flex; flex-direction: column; gap: 22px; padding-top: 26px; }
.strip-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 10px; }
.strip-head h2 { margin: 0; font: 700 var(--s2)/1.2 var(--serif); }
.strip-head .flame { width: 16px; height: 19px; }
.strip-head .linkbtn { margin-left: auto; }
.strip-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 240px); gap: 14px; overflow-x: auto; padding-bottom: 6px; }
.mini-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; color: var(--ink); min-width: 0; }
.mini-card:hover { text-decoration: none; box-shadow: var(--shadow); }
.mini-card .cover { aspect-ratio: 16 / 9; }
.mini-card > span { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px 10px; min-width: 0; }
.mini-card b { font: 700 0.98rem/1.25 var(--serif); }
.mini-card small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-card .heat { color: #c4520f; font-weight: 700; }

/* ---------- data center page (admin.html) ---------- */
.console { background: var(--tint); }
.console-nav { background: var(--ink); border-bottom: 0; }
.console-nav .brand, .console-nav .brand-name { color: #fff; }
.console-nav .nav-right .muted, .console-nav .linkbtn { color: #c9d6ea; }
.console-nav .lang { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.console-tag { margin-left: 6px; padding: 3px 9px; border-radius: 6px; background: var(--sun); color: #2b1d00; font-size: 12px; font-weight: 700; }
.console .auth { background: var(--tint); min-height: calc(100vh - 62px); }
.console .page-head h1 { font-size: var(--s3); }
.console-nav .brand-mark g { stroke: #fff; }

/* ---------- paged wall ---------- */
.wall.loading { opacity: 0.55; transition: opacity 0.2s ease; }
.locked-more { flex-direction: column; align-items: center; gap: 10px; padding: 26px 16px; border: 1px dashed #f3d58a; border-radius: var(--r); background: var(--sun-soft); text-align: center; }
.locked-more p { margin: 0; max-width: 46ch; }
.locked-more .btn { min-width: 140px; }
.review-edit .wide-in { flex: 1 1 320px; }
.nowrap { white-space: nowrap; }

/* ---------- safety ---------- */
.report-dialog { border: 0; border-radius: 16px; padding: 0; width: min(440px, calc(100vw - 32px)); box-shadow: var(--shadow); }
.report-dialog::backdrop { background: rgba(22, 33, 58, 0.45); }
.report-form { display: flex; flex-direction: column; gap: 8px; padding: 20px; }
.report-form h2 { margin: 0; font: 700 1.2rem/1.3 var(--serif); }
.report-form .f-check { min-height: 30px; }
.msg-report { align-self: flex-start; border: 0; background: none; padding: 0; font-size: 11px; color: var(--muted); cursor: pointer; opacity: 0; }
.msg:hover .msg-report, .msg-report:focus-visible { opacity: 1; }
@media (hover: none) { .msg-report { opacity: 0.7; } }
.chat-closed { margin: 0; padding: 12px; text-align: center; background: #fff; border-top: 1px solid var(--line); }
.terms-check { align-items: flex-start; font-size: var(--s-1); }
.terms-check input { margin-top: 3px; }
.danger-zone { border-color: #f1c4c9; }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.linkbtn.muted { color: var(--muted); }
.legal .panel p { margin: 0 0 10px; }
.conf-meter.late { color: var(--bad); }

/* ---------- mobile app: bottom tab bar ---------- */
.tabbar { display: none; }
.in-app .tabbar { position: fixed; z-index: 25; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 6px max(8px, env(safe-area-inset-left, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-right, 0px));
  background: rgba(255, 255, 255, 0.96); backdrop-filter: saturate(1.4) blur(12px); border-top: 1px solid var(--line); }
.in-app .tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0; color: var(--muted); font-size: 11px; font-weight: 600; text-decoration: none; }
.in-app .tabbar a.on { color: var(--blue); }
.in-app .tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.in-app .tabbar a.on svg { stroke-width: 2.2; }
.in-app .tabbar .badge { position: absolute; top: 0; left: calc(50% + 6px); margin: 0; }
.in-app .nav-links { display: none; }
.in-app .nav-row { min-height: 52px; }
.in-app .foot { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
.in-app .toast { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
.in-app .sticky-save { bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
.in-app #room-chat .chat-log { max-height: calc(100vh - 300px); }
