/* =========================================================
   铁一·学生墙 — Design System
   西安市铁一中校园学生社区
   ========================================================= */

@font-face {
  font-family: 'Noto Serif SC';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/display-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Noto Serif SC';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/display-700.woff2') format('woff2');
}

:root {
  --navy-950: #07152f;
  --navy-900: #0b1f47;
  --navy-800: #10295c;
  --navy-700: #173474;
  --navy: #1e3a8a;
  --navy-600: #2d51ad;
  --navy-500: #3b63c4;
  --navy-100: #e7eefc;
  --navy-50: #f2f6fe;

  --ink: #0e1b34;
  --text: #23324e;
  --muted: #5d6d8c;
  --faint: #8b99b4;
  --line: #e4eaf5;
  --line-soft: #eef2f9;
  --bg: #f4f7fc;
  --card: #ffffff;

  --green: #22c55e;
  --green-600: #16a34a;
  --green-700: #15803d;
  --green-50: #e9fbf0;
  --amber: #f59e0b;
  --amber-50: #fff7e6;
  --rose: #e11d48;
  --rose-50: #fff0f3;
  --violet: #7c3aed;
  --cyan: #0d9488;

  --r-xs: 10px;
  --r-sm: 14px;
  --r-md: 18px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-2xl: 34px;

  --shadow-xs: 0 1px 2px rgba(12, 35, 80, .05);
  --shadow-sm: 0 1px 2px rgba(12, 35, 80, .04), 0 8px 24px -18px rgba(12, 35, 80, .22);
  --shadow-md: 0 1px 2px rgba(12, 35, 80, .04), 0 18px 44px -26px rgba(12, 35, 80, .3);
  --shadow-lg: 0 30px 70px -34px rgba(9, 28, 67, .42);

  --font-ui: "MiSans", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--text);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(52% 34% at 12% -4%, rgba(30, 58, 138, .075), transparent 62%),
    radial-gradient(38% 28% at 94% 4%, rgba(34, 197, 94, .06), transparent 64%),
    radial-gradient(40% 30% at 60% 100%, rgba(59, 99, 196, .05), transparent 70%);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
input, textarea { border: 0; outline: 0; background: transparent; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4, h5, p { margin: 0; }
::selection { background: rgba(34, 197, 94, .28); }
body.drawer-open { overflow: hidden; }
body.no-fab .fab-stack { display: none !important; }

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic.fill { fill: currentColor; stroke: none; }
.ic.ic-sm { width: 16px; height: 16px; }
.ic.ic-xs { width: 13px; height: 13px; }
.ic.ic-lg { width: 24px; height: 24px; }

.display { font-family: var(--font-display); font-weight: 700; letter-spacing: .01em; }
.mono-num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 44px; padding: 0 18px; border-radius: var(--r-sm);
  font-size: 13.5px; font-weight: 600; letter-spacing: .01em;
  border: 1px solid transparent; white-space: nowrap;
  transition: transform .18s var(--ease), background .18s, box-shadow .18s, border-color .18s;
}
.btn .ic { width: 17px; height: 17px; }
.btn:active { transform: scale(.975); }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 10px 24px -12px rgba(30, 58, 138, .65); }
.btn-primary:hover { background: var(--navy-700); transform: translateY(-1px); box-shadow: 0 14px 28px -12px rgba(30, 58, 138, .7); }
.btn-green { background: var(--green); color: #04240f; box-shadow: 0 10px 26px -12px rgba(34, 197, 94, .7); }
.btn-green:hover { background: #34d36b; transform: translateY(-1px); }
.btn-ghost { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22); color: #fff; backdrop-filter: blur(10px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .16); }
.btn-line { background: #fff; border-color: var(--line); color: var(--ink); box-shadow: var(--shadow-xs); }
.btn-line:hover { border-color: #cfdaee; background: #fbfcff; }
.btn-soft { background: var(--navy-50); color: var(--navy); }
.btn-soft:hover { background: var(--navy-100); }
.btn-danger-soft { background: var(--rose-50); color: var(--rose); }
.btn-sm { height: 38px; padding: 0 14px; border-radius: 12px; font-size: 12.5px; }
.btn-sm .ic { width: 15px; height: 15px; }
.btn-xs { height: 30px; padding: 0 10px; border-radius: 9px; font-size: 11.5px; gap: 5px; }
.btn-xs .ic { width: 13px; height: 13px; }
.btn-lg { height: 48px; padding: 0 24px; border-radius: 15px; font-size: 14px; }
.btn-block { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .42; pointer-events: none; }
.btn.following, .page-head-actions .btn.following { background: var(--navy-50); border-color: transparent; color: var(--navy); }

.icon-btn {
  width: 42px; height: 42px; border-radius: 14px; display: inline-grid; place-items: center;
  background: #fff; border: 1px solid var(--line); color: var(--text);
  box-shadow: var(--shadow-xs); transition: .18s var(--ease); position: relative;
}
.icon-btn:hover { border-color: #cfdaee; color: var(--navy); transform: translateY(-1px); }
.icon-btn.plain { background: transparent; border-color: transparent; box-shadow: none; }
.icon-btn.plain:hover { background: rgba(30, 58, 138, .06); }
.icon-btn .dot {
  position: absolute; top: 10px; right: 10px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--rose); border: 1.5px solid #fff;
}

/* ---------- Pills / badges ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 4px; height: 21px; padding: 0 8px;
  border-radius: 999px; font-size: 10.5px; font-weight: 600; white-space: nowrap;
  background: var(--line-soft); color: var(--muted); line-height: 1;
}
.pill .ic { width: 11px; height: 11px; }
.pill-audit { background: var(--amber-50); color: #a16207; }
.pill-green { background: var(--green-50); color: var(--green-700); }
.pill-navy { background: var(--navy-50); color: var(--navy); }
.pill-rose { background: var(--rose-50); color: var(--rose); }
.pill-slate { background: #eff3f9; color: #5b6b86; }
.pill-top { background: var(--navy); color: #fff; }
.pill-essence { background: #fff6df; color: #b45309; }
.pill-anon { background: #eef2f8; color: #56657f; }

.status { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 7px; font-size: 10.5px; font-weight: 600; }
.status-approved { background: var(--green-50); color: var(--green-700); }
.status-pending { background: var(--amber-50); color: #b45309; }
.status-private { background: #eef2f8; color: #56657f; }
.status-rejected { background: var(--rose-50); color: var(--rose); }

/* ---------- Category palette ---------- */
.cat-news { --tint: #2563eb; --tint-soft: #eaf1ff; --g1: #1e3a8a; --g2: #3b82f6; }
.cat-treehole { --tint: #6366f1; --tint-soft: #eef0ff; --g1: #312e81; --g2: #818cf8; }
.cat-crush { --tint: #e11d48; --tint-soft: #fff0f3; --g1: #9f1239; --g2: #fb7185; }
.cat-study { --tint: #16a34a; --tint-soft: #eafaf0; --g1: #14532d; --g2: #4ade80; }
.cat-club { --tint: #d97706; --tint-soft: #fff7e8; --g1: #92400e; --g2: #fbbf24; }
.cat-works { --tint: #7c3aed; --tint-soft: #f4efff; --g1: #4c1d95; --g2: #c4b5fd; }
.cat-contest { --tint: #ea580c; --tint-soft: #fff2e8; --g1: #9a3412; --g2: #fb923c; }
.cat-lost { --tint: #475569; --tint-soft: #f1f5f9; --g1: #334155; --g2: #94a3b8; }
.cat-feedback { --tint: #0d9488; --tint-soft: #e8faf7; --g1: #115e59; --g2: #2dd4bf; }

/* ---------- Avatars ---------- */
.avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  display: inline-grid; place-items: center; overflow: hidden;
  color: #fff; font-weight: 700; font-size: 13px; letter-spacing: .02em;
  background: linear-gradient(140deg, var(--a1, #93c5fd), var(--a2, #2563eb));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
  user-select: none;
}
.avatar.sq { border-radius: 12px; }
.avatar.anon { background: linear-gradient(140deg, #a8b4c9, #5b6b86); }
.avatar.av-28 { width: 28px; height: 28px; font-size: 10.5px; }
.avatar.av-30 { width: 30px; height: 30px; font-size: 11px; }
.avatar.av-32 { width: 32px; height: 32px; font-size: 11.5px; }
.avatar.av-40 { width: 40px; height: 40px; font-size: 14px; }
.avatar.av-44 { width: 44px; height: 44px; font-size: 15px; }
.avatar.av-52 { width: 52px; height: 52px; font-size: 18px; }
.avatar.av-64 { width: 64px; height: 64px; font-size: 22px; }
.avatar.av-84 { width: 84px; height: 84px; font-size: 29px; border-radius: 24px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar .ic { width: 44%; height: 44%; }

/* ---------- App shell ---------- */
#app { position: relative; z-index: 1; min-height: 100vh; }
.shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 312px;
  gap: 26px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 26px;
}
.main { min-width: 0; padding: 16px 0 90px; }
.rail { padding: 22px 0 40px; min-width: 0; }
.rail-inner { position: sticky; top: 22px; }
.shell.no-rail { grid-template-columns: 250px minmax(0, 1fr); max-width: 1040px; }
.shell.no-rail .main { width: 100%; max-width: 720px; margin: 0 auto; }
.shell.wide { grid-template-columns: 250px minmax(0, 1fr); max-width: 1140px; }
.shell.wide .main { max-width: none; }

/* ---------- Sidebar ---------- */
.sidebar {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  padding: 22px 18px 16px 2px;
  border-right: 1px solid rgba(222, 230, 244, .9);
}
.side-brand { display: flex; align-items: center; gap: 11px; padding: 2px 8px 0; }
.brand-mark { width: 42px; height: 42px; flex: none; border-radius: 13px; background: linear-gradient(145deg, #1e3a8a, #2d51ad); box-shadow: 0 10px 22px -12px rgba(12, 35, 80, .6); display: inline-grid; place-items: center; overflow: hidden; }
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-text { min-width: 0; }
.brand-name { font-size: 16.5px; font-weight: 700; color: var(--ink); letter-spacing: .01em; line-height: 1.25; }
.brand-name em { font-style: normal; color: var(--navy); }
.brand-sub { font-size: 9.5px; color: var(--faint); letter-spacing: .13em; margin-top: 3px; text-transform: uppercase; }

.side-user {
  margin: 18px 4px 14px; padding: 11px; display: flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, #f6f9ff, #eef4ff);
  border: 1px solid #e3ebfa; border-radius: 16px;
  transition: .18s;
}
.side-user:hover { border-color: #cfdcf5; box-shadow: var(--shadow-xs); }
.side-user-info { min-width: 0; flex: 1; }
.side-user-name { font-size: 12.5px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 5px; }
.side-user-meta { font-size: 10px; color: var(--muted); margin-top: 1px; }
.side-user .ic { color: var(--faint); width: 15px; height: 15px; }
.role-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }

.side-scroll { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; padding: 0 2px 6px; }
.side-scroll::-webkit-scrollbar { display: none; }
.side-label { font-size: 9.5px; font-weight: 700; color: #9aa7bf; letter-spacing: .16em; padding: 14px 12px 6px; text-transform: uppercase; }
.side-link {
  display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 11px;
  border-radius: 10px; color: #3e4e6d; font-size: 12.5px; font-weight: 500;
  transition: .15s; position: relative;
}
.side-link .ic { width: 17px; height: 17px; color: #7a89a4; }
.side-link:hover { background: #f1f5fd; color: var(--navy); }
.side-link:hover .ic { color: var(--navy); }
.side-link.active { background: var(--navy); color: #fff; font-weight: 600; box-shadow: 0 8px 20px -12px rgba(30, 58, 138, .7); }
.side-link.active .ic { color: #fff; }
.side-link .count { margin-left: auto; font-size: 10px; color: var(--faint); font-variant-numeric: tabular-nums; }
.side-link.active .count { color: rgba(255, 255, 255, .6); }
.side-link .badge { margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--rose); color: #fff; font-size: 9.5px; font-weight: 700; display: grid; place-items: center; }
.side-link .cat-dot { width: 7px; height: 7px; border-radius: 3px; margin: 0 5px 0 5px; background: var(--tint); flex: none; }
.side-link .lock { margin-left: auto; width: 12px; height: 12px; color: #aab5c8; }

.side-foot { flex: none; padding: 10px 4px 0; }
.side-cta {
  position: relative; overflow: hidden; border-radius: 16px; padding: 14px;
  background: linear-gradient(145deg, #0d2452, #1e3a8a 70%, #2b55ae);
  color: #fff; box-shadow: 0 16px 32px -20px rgba(13, 36, 82, .75);
}
.side-cta::after { content: ''; position: absolute; width: 110px; height: 110px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 50%; right: -54px; bottom: -46px; }
.side-cta-title { font-family: var(--font-display); font-size: 14.5px; font-weight: 700; letter-spacing: .02em; }
.side-cta-text { font-size: 10px; line-height: 1.6; color: rgba(255, 255, 255, .62); margin-top: 4px; }
.side-cta-link { display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; color: #86efac; margin-top: 8px; font-weight: 600; }
.side-version { font-size: 9px; color: var(--faint); text-align: center; margin-top: 10px; letter-spacing: .04em; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 35;
  display: flex; align-items: center; gap: 9px;
  padding: 12px 0 11px;
  background: linear-gradient(to bottom, rgba(244, 247, 252, .96) 62%, rgba(244, 247, 252, .78));
  backdrop-filter: blur(16px);
}
.topbar::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: linear-gradient(to bottom, rgba(244, 247, 252, .7), transparent); pointer-events: none; }
.search-box {
  flex: 1; min-width: 0; height: 44px; display: flex; align-items: center; gap: 9px;
  padding: 0 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  color: var(--faint); transition: .18s; box-shadow: var(--shadow-xs);
}
.search-box:focus-within { border-color: #b9cbef; box-shadow: 0 0 0 3px rgba(30, 58, 138, .07); }
.search-box .ic { width: 17px; height: 17px; }
.search-box input { flex: 1; min-width: 0; font-size: 12.5px; color: var(--text); }
.search-box input::placeholder { color: #9aa7bf; }
.search-box kbd { font-family: var(--font-ui); font-size: 9.5px; color: #a3aec4; border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; background: #fafbfe; }
.search-box .divider { width: 1px; height: 16px; background: var(--line); }

/* ---------- Page bar (sub pages) ---------- */
.pagebar {
  position: sticky; top: 0; z-index: 35;
  display: flex; align-items: center; gap: 11px; padding: 12px 0;
  background: linear-gradient(to bottom, rgba(244, 247, 252, .97) 60%, rgba(244, 247, 252, .8));
  backdrop-filter: blur(16px);
}
.pagebar-title { font-size: 16px; font-weight: 700; color: var(--ink); letter-spacing: .01em; }
.pagebar .spacer { flex: 1; }
.pagebar .pagebar-actions { display: flex; align-items: center; gap: 8px; }
.back-btn { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); color: var(--text); box-shadow: var(--shadow-xs); }
.back-btn:hover { color: var(--navy); border-color: #cfdaee; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  border-radius: var(--r-2xl);
  padding: 28px 30px 0;
  background: linear-gradient(128deg, #081a3e 0%, #102a5f 42%, #1e3a8a 100%);
  box-shadow: 0 30px 64px -34px rgba(8, 26, 62, .7);
  isolation: isolate;
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 0; opacity: .55;
  background:
    radial-gradient(46% 60% at 88% 16%, rgba(59, 99, 196, .55), transparent 70%),
    radial-gradient(34% 50% at 92% 100%, rgba(34, 197, 94, .2), transparent 70%),
    radial-gradient(30% 40% at 0% 100%, rgba(34, 197, 94, .12), transparent 70%);
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .42;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.32'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) 196px; gap: 10px; }
.hero-copy { min-width: 0; padding-bottom: 4px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 7px; height: 25px; padding: 0 10px;
  border-radius: 99px; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .13);
  font-size: 10px; letter-spacing: .1em; color: rgba(255, 255, 255, .78); font-weight: 500;
}
.hero-eyebrow .live { width: 5px; height: 5px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, .18); }
.hero-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 44px; line-height: 1.15; letter-spacing: .015em;
  margin: 14px 0 0; color: #fff; text-shadow: 0 2px 24px rgba(5, 16, 40, .25);
}
.hero-title .dot { color: #4ade80; margin: 0 2px; font-family: var(--font-ui); font-weight: 400; }
.hero-desc { font-size: 12.5px; line-height: 1.8; color: rgba(255, 255, 255, .66); max-width: 350px; margin-top: 8px; }
.hero-actions { display: flex; align-items: center; gap: 9px; margin-top: 16px; flex-wrap: wrap; }
.hero-actions .btn { height: 41px; padding: 0 17px; font-size: 12.5px; border-radius: 13px; }

.hero-art { position: relative; min-height: 230px; pointer-events: none; }
.hero-art .ring { position: absolute; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .12); }
.hero-art .r1 { width: 240px; height: 240px; right: -74px; top: -64px; }
.hero-art .r2 { width: 180px; height: 180px; right: -44px; top: -34px; border-color: rgba(255, 255, 255, .17); }
.hero-art .r3 { width: 120px; height: 120px; right: -14px; top: -4px; border-style: dashed; border-color: rgba(255, 255, 255, .14); }
.hero-art .glow-dot { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #4ade80; right: 132px; top: 44px; box-shadow: 0 0 0 6px rgba(74, 222, 128, .1), 0 0 28px rgba(74, 222, 128, .7); }
.hero-note {
  position: absolute; right: 2px; bottom: 24px; width: 150px;
  background: #fffdf7; color: var(--ink); border-radius: 14px 14px 3px 14px;
  padding: 13px 13px 11px; transform: rotate(-4.5deg); box-shadow: 0 20px 40px -18px rgba(4, 14, 35, .65);
}
.hero-note::before { content: ''; position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 20px; height: 4px; border-radius: 2px; background: rgba(34, 197, 94, .55); }
.hero-note p { font-family: var(--font-display); font-weight: 700; font-size: 15px; line-height: 1.55; letter-spacing: .02em; padding-top: 7px; }
.hero-note small { display: block; font-size: 9px; color: #8b99b4; margin-top: 4px; text-align: right; }
.hero-vertical {
  position: absolute; right: 8px; top: 16px; writing-mode: vertical-rl;
  font-family: var(--font-display); font-size: 11px; letter-spacing: .32em;
  color: rgba(255, 255, 255, .28);
}
.hero-stats {
  position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, .13); margin-top: 20px;
}
.hero-stat { padding: 15px 0 16px; border-right: 1px solid rgba(255, 255, 255, .09); }
.hero-stat:last-child { border-right: 0; }
.hero-stat:nth-child(n+2) { padding-left: 18px; }
.hero-stat b { display: block; font-family: var(--font-display); font-size: 21px; font-weight: 700; letter-spacing: .02em; line-height: 1.2; }
.hero-stat b span { font-size: 11px; font-weight: 400; color: rgba(255, 255, 255, .5); margin-left: 2px; }
.hero-stat small { display: block; font-size: 10px; color: rgba(255, 255, 255, .5); margin-top: 2px; letter-spacing: .03em; }

/* ---------- Sections ---------- */
.section { margin-top: 30px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-eyebrow { font-size: 9px; font-weight: 700; letter-spacing: .2em; color: #9aa7bf; text-transform: uppercase; margin-bottom: 4px; }
.section-title { font-family: var(--font-display); font-size: 23px; font-weight: 700; color: var(--ink); letter-spacing: .02em; line-height: 1.25; display: flex; align-items: center; gap: 9px; }
.section-title .title-mark { width: 22px; height: 3px; border-radius: 2px; background: var(--green); margin-top: 5px; }
.section-sub { font-size: 11px; color: var(--muted); margin-top: 3px; }
.section-link { display: inline-flex; align-items: center; gap: 2px; font-size: 11.5px; color: var(--muted); padding: 5px 8px; border-radius: 99px; transition: .15s; white-space: nowrap; }
.section-link:hover { background: #fff; color: var(--navy); box-shadow: var(--shadow-xs); }
.section-link .ic { width: 13px; height: 13px; }
.section-link .live-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 9.5px; color: var(--green-700); background: var(--green-50); height: 20px; padding: 0 7px; border-radius: 99px; margin-right: 4px; }

/* ---------- Horizontal scrollers ---------- */
.h-scroll { display: flex; gap: 13px; overflow-x: auto; padding: 2px 2px 10px; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 52px), transparent 100%); mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 52px), transparent 100%); }
.h-scroll::-webkit-scrollbar { display: none; }

/* ---------- Latest cards ---------- */
.latest-card {
  flex: 0 0 288px; scroll-snap-align: start; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: 21px;
  box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.latest-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #d8e3f4; }
.latest-media { position: relative; height: 156px; overflow: hidden; background: #dfe7f5; }
.latest-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.latest-card:hover .latest-media img { transform: scale(1.045); }
.latest-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5, 14, 34, .06) 20%, rgba(5, 14, 34, .5) 100%);
}
.media-tag {
  position: absolute; z-index: 2; top: 10px; left: 10px;
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px);
  border-radius: 7px; font-size: 9.5px; font-weight: 700; color: var(--tint, var(--navy));
  letter-spacing: .02em;
}
.media-hot {
  position: absolute; z-index: 2; right: 10px; bottom: 10px;
  display: inline-flex; align-items: center; gap: 3px; height: 22px; padding: 0 8px;
  background: rgba(8, 18, 40, .42); border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(8px); border-radius: 99px; color: rgba(255, 255, 255, .92);
  font-size: 10px; font-variant-numeric: tabular-nums;
}
.media-hot .ic { width: 11px; height: 11px; color: #fca5a5; fill: #fca5a5; stroke: none; }
.latest-body { padding: 12px 14px 14px; }
.latest-title { font-size: 14.5px; line-height: 1.5; font-weight: 700; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 43px; }
.latest-meta { display: flex; align-items: center; gap: 6px; font-size: 10px; color: var(--faint); margin-top: 9px; }
.latest-meta .dot { width: 2px; height: 2px; border-radius: 50%; background: #b6c1d4; }
.latest-meta .anon { display: inline-flex; align-items: center; gap: 3px; color: #7585a0; }
.latest-meta .anon .ic { width: 11px; height: 11px; }

/* ---------- Category cards ---------- */
.cat-card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: 23px;
  padding: 15px 15px 9px; margin-bottom: 13px; box-shadow: var(--shadow-sm);
  transition: border-color .25s, box-shadow .25s;
}
.cat-card:hover { border-color: #dbe5f4; box-shadow: var(--shadow-md); }
.cat-head { display: flex; align-items: center; gap: 11px; }
.cat-icon {
  width: 41px; height: 41px; border-radius: 13px; display: grid; place-items: center; flex: none;
  background: var(--tint-soft); color: var(--tint); position: relative;
}
.cat-icon::after { content: ''; position: absolute; inset: 0; border-radius: inherit; border: 1px solid rgba(255, 255, 255, .5); }
.cat-icon .ic { width: 19px; height: 19px; }
.cat-title-wrap { min-width: 0; flex: 1; }
.cat-name-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.cat-name { font-size: 15.5px; font-weight: 700; color: var(--ink); letter-spacing: .01em; }
.cat-sub { font-size: 10.5px; color: var(--muted); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-more { display: inline-flex; align-items: center; gap: 2px; height: 28px; padding: 0 8px; border-radius: 99px; font-size: 11px; color: var(--faint); flex: none; transition: .15s; }
.cat-more:hover { background: var(--tint-soft); color: var(--tint); }
.cat-more .ic { width: 13px; height: 13px; }
.cat-scroll { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0 3px; scrollbar-width: none; scroll-snap-type: x proximity; -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 44px), transparent 100%); mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 44px), transparent 100%); }
.cat-scroll::-webkit-scrollbar { display: none; }
.mini-post {
  flex: 0 0 197px; display: flex; gap: 9px; padding: 7px; border-radius: 14px;
  border: 1px solid transparent; transition: .16s; scroll-snap-align: start;
}
.mini-post:hover { background: #f7f9fe; border-color: #edf2fa; }
.mini-thumb { width: 50px; height: 50px; border-radius: 12px; overflow: hidden; flex: none; position: relative; }
.mini-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini-thumb .glyph { width: 100%; height: 100%; }
.mini-info { min-width: 0; flex: 1; padding-top: 1px; }
.mini-title { font-size: 11.5px; line-height: 1.5; font-weight: 600; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; height: 34px; }
.mini-meta { display: flex; align-items: center; gap: 5px; font-size: 9.5px; color: var(--faint); margin-top: 4px; white-space: nowrap; overflow: hidden; }
.mini-meta .ic { width: 10px; height: 10px; }

/* ---------- Glyph cover ---------- */
.glyph {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  background: linear-gradient(140deg, var(--g1), var(--g2)); color: #fff;
  display: grid; place-items: center;
}
.glyph::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 82% 12%, rgba(255, 255, 255, .34), transparent 42%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.3'/%3E%3C/svg%3E");
  opacity: .5; mix-blend-mode: overlay;
}
.glyph::after { content: ''; position: absolute; width: 72%; height: 72%; border: 1px solid rgba(255, 255, 255, .18); border-radius: 50%; right: -24%; bottom: -32%; }
.glyph b { position: relative; z-index: 1; font-family: var(--font-display); font-size: 22px; font-weight: 700; color: rgba(255, 255, 255, .92); letter-spacing: .02em; }
.glyph.lg b { font-size: 76px; }
.glyph .glyph-label { position: absolute; left: 8px; top: 7px; z-index: 1; font-size: 6px; letter-spacing: .18em; color: rgba(255, 255, 255, .66); font-weight: 600; }
.glyph .glyph-year { position: absolute; right: 8px; bottom: 6px; z-index: 1; font-size: 6px; letter-spacing: .1em; color: rgba(255, 255, 255, .5); }
.mini-thumb .glyph b { font-size: 15px; }
.post-thumb .glyph b { font-size: 21px; }
.my-thumb .glyph b { font-size: 18px; }
.related-media .glyph b { font-size: 18px; }
.related-media img, .related-media .glyph { width: 100%; height: 100%; object-fit: cover; }
.related-media > div { width: 100%; height: 100%; }
.cell-thumb .glyph b { font-size: 11px; }
.mini-thumb .glyph-label, .mini-thumb .glyph-year,
.post-thumb .glyph-label, .post-thumb .glyph-year,
.my-thumb .glyph-label, .my-thumb .glyph-year,
.related-media .glyph-label, .related-media .glyph-year,
.cell-thumb .glyph-label, .cell-thumb .glyph-year { display: none; }
.search-result-thumb .glyph b { font-size: 14px; }

/* ---------- Entry cards ---------- */
.entry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.entry-card {
  position: relative; overflow: hidden; min-height: 112px; padding: 14px;
  border-radius: 19px; border: 1px solid var(--line);
  background: linear-gradient(150deg, var(--tint-soft) 0%, #fff 76%);
  transition: transform .2s var(--ease), box-shadow .2s, border-color .2s;
}
.entry-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #dbe5f4; }
.entry-icon { width: 34px; height: 34px; border-radius: 11px; background: #fff; color: var(--tint); display: grid; place-items: center; box-shadow: 0 4px 12px -6px rgba(12, 35, 80, .22); }
.entry-icon .ic { width: 17px; height: 17px; }
.entry-title { font-size: 14px; font-weight: 700; color: var(--ink); margin-top: 11px; }
.entry-sub { font-size: 9.5px; color: var(--muted); margin-top: 1px; }
.entry-arrow { position: absolute; right: 12px; top: 14px; color: #b3bfd3; }
.entry-arrow .ic { width: 14px; height: 14px; }
.entry-card::after { content: ''; position: absolute; width: 70px; height: 70px; border-radius: 50%; right: -28px; bottom: -36px; background: var(--tint); opacity: .06; }

.aux-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-top: 11px; }
.aux-card {
  display: flex; align-items: center; gap: 11px; padding: 12px 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 17px;
  transition: .18s; box-shadow: var(--shadow-xs);
}
.aux-card:hover { border-color: #d6e1f2; box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.aux-icon { width: 35px; height: 35px; border-radius: 11px; display: grid; place-items: center; background: var(--tint-soft); color: var(--tint); flex: none; }
.aux-icon .ic { width: 17px; height: 17px; }
.aux-main { min-width: 0; flex: 1; }
.aux-title { font-size: 12.5px; font-weight: 700; color: var(--ink); }
.aux-sub { font-size: 9.5px; color: var(--faint); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aux-card > .ic { width: 14px; height: 14px; color: #b3bfd3; }

/* ---------- Announcement strip (mobile/tablet) ---------- */
.announce-strip {
  display: flex; align-items: center; gap: 10px; margin-top: 13px;
  padding: 10px 13px; background: #fff; border: 1px solid var(--line);
  border-radius: 15px; box-shadow: var(--shadow-xs);
}
.announce-strip .a-icon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--amber-50); color: #b45309; flex: none; }
.announce-strip .a-icon .ic { width: 15px; height: 15px; }
.announce-strip .a-main { flex: 1; min-width: 0; }
.announce-strip .a-label { font-size: 8.5px; font-weight: 700; letter-spacing: .12em; color: #b45309; }
.announce-strip .a-title { font-size: 11.5px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.announce-strip .a-link { font-size: 10px; color: var(--faint); display: inline-flex; align-items: center; gap: 1px; flex: none; }

/* ---------- Rail ---------- */
.rail-card { background: #fff; border: 1px solid var(--line); border-radius: 21px; padding: 17px 17px 14px; box-shadow: var(--shadow-sm); margin-bottom: 14px; }
.rail-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.rail-title { font-size: 13.5px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 7px; letter-spacing: .01em; }
.rail-title .ic { width: 15px; height: 15px; color: var(--navy); }
.rail-title .live { width: 5px; height: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(34, 197, 94, .15); }
.rail-link { font-size: 10px; color: var(--faint); display: inline-flex; align-items: center; gap: 1px; }
.rail-link:hover { color: var(--navy); }
.rail-link .ic { width: 11px; height: 11px; }

.notice-item { display: block; padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.notice-item:last-of-type { border-bottom: 0; padding-bottom: 5px; }
.notice-top { display: flex; align-items: center; gap: 6px; }
.notice-type { display: inline-grid; place-items: center; height: 17px; padding: 0 5px; border-radius: 5px; font-size: 8.5px; font-weight: 700; background: var(--navy-50); color: var(--navy); flex: none; }
.notice-type.top { background: var(--rose-50); color: var(--rose); }
.notice-type.notice { background: var(--amber-50); color: #b45309; }
.notice-type.system { background: var(--green-50); color: var(--green-700); }
.notice-title { font-size: 11.5px; line-height: 1.55; color: var(--text); font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .15s; }
.notice-item:hover .notice-title { color: var(--navy); }
.notice-meta { font-size: 9px; color: var(--faint); margin-top: 3px; }
.rail-policies { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.rail-policies .pill { font-size: 9px; height: 19px; }

.hot-item { display: flex; gap: 9px; padding: 7px 0; align-items: flex-start; }
.hot-rank { width: 17px; flex: none; font-family: var(--font-display); font-size: 16px; font-weight: 700; line-height: 1.35; color: #b6c1d4; text-align: center; }
.hot-item:nth-child(1) .hot-rank { color: #e11d48; }
.hot-item:nth-child(2) .hot-rank { color: #f59e0b; }
.hot-item:nth-child(3) .hot-rank { color: #d97706; }
.hot-body { min-width: 0; flex: 1; }
.hot-title { font-size: 11.5px; line-height: 1.5; color: var(--text); font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hot-item:hover .hot-title { color: var(--navy); }
.hot-meta { font-size: 8.5px; color: var(--faint); margin-top: 2px; display: flex; align-items: center; gap: 4px; }
.hot-meta .ic { width: 9px; height: 9px; }

.club-item { display: flex; align-items: center; gap: 9px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.club-item:last-child { border-bottom: 0; }
.club-info { flex: 1; min-width: 0; }
.club-name { font-size: 11.5px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 4px; }
.club-name .ic { width: 10px; height: 10px; color: var(--navy-500); }
.club-latest { font-size: 9px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.follow-btn { height: 24px; padding: 0 9px; border-radius: 99px; border: 1px solid #d8e3f5; color: var(--navy); font-size: 9.5px; font-weight: 600; background: #fff; transition: .15s; }
.follow-btn:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.follow-btn.following { background: var(--navy-50); border-color: transparent; color: var(--navy); }

.community-card {
  position: relative; overflow: hidden; border-radius: 21px; padding: 20px 18px;
  background: linear-gradient(145deg, #0a1c42, #16336f 65%, #24499a);
  color: #fff; box-shadow: 0 20px 42px -26px rgba(9, 28, 67, .72);
}
.community-card::before { content: ''; position: absolute; width: 160px; height: 160px; border: 1px solid rgba(255, 255, 255, .13); border-radius: 50%; right: -70px; top: -84px; }
.community-card::after { content: '“'; position: absolute; right: 16px; bottom: -18px; font-family: Georgia, serif; font-size: 100px; color: rgba(255, 255, 255, .07); line-height: 1; }
.community-quote { font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: .04em; position: relative; z-index: 1; }
.community-sub { font-size: 9.5px; line-height: 1.75; color: rgba(255, 255, 255, .58); margin-top: 6px; position: relative; z-index: 1; }
.community-rules { margin-top: 12px; display: grid; gap: 5px; position: relative; z-index: 1; }
.community-rules span { display: flex; align-items: center; gap: 6px; font-size: 9.5px; color: rgba(255, 255, 255, .72); }
.community-rules .ic { width: 10px; height: 10px; color: #4ade80; }
.community-link { display: inline-flex; align-items: center; gap: 3px; font-size: 9.5px; color: #86efac; margin-top: 12px; position: relative; z-index: 1; font-weight: 600; }

.rail-foot { text-align: center; padding: 8px 0 0; font-size: 9px; color: #9aa7bf; line-height: 1.8; }
.rail-foot a { color: #7e8da8; }
.rail-foot a:hover { color: var(--navy); }

/* ---------- Page footer ---------- */
.site-foot { margin-top: 34px; padding: 22px 4px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 9.5px; color: var(--faint); line-height: 1.8; }
.site-foot-links { display: flex; gap: 12px; flex-wrap: wrap; }
.site-foot-links a:hover { color: var(--navy); }
.site-foot .brand-line { font-weight: 600; color: #7b8aa5; letter-spacing: .03em; }

/* ---------- Page head (category / generic) ---------- */
.page-head { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 24px 26px; box-shadow: var(--shadow-sm); }
.page-head::before { content: ''; position: absolute; width: 260px; height: 260px; border-radius: 50%; right: -110px; top: -150px; background: radial-gradient(circle, var(--tint-soft, #eef4ff), transparent 70%); opacity: .9; }
.page-head-top { display: flex; align-items: flex-start; gap: 14px; position: relative; z-index: 1; }
.page-head-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--tint-soft, var(--navy-50)); color: var(--tint, var(--navy)); flex: none; }
.page-head-icon .ic { width: 24px; height: 24px; }
.page-head-title { font-family: var(--font-display); font-size: 29px; font-weight: 700; color: var(--ink); letter-spacing: .02em; line-height: 1.3; }
.page-head-desc { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.page-head-badges { display: flex; gap: 6px; margin-top: 9px; flex-wrap: wrap; }
.page-head-actions { margin-left: auto; display: flex; gap: 8px; flex: none; position: relative; z-index: 1; }
.page-stats { display: flex; gap: 22px; margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line-soft); position: relative; z-index: 1; }
.page-stat b { display: block; font-size: 17px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.2; }
.page-stat small { font-size: 9.5px; color: var(--faint); }

.filter-row { display: flex; align-items: center; gap: 8px; margin: 16px 0 12px; flex-wrap: wrap; }
.seg {
  display: inline-flex; align-items: center; gap: 2px; padding: 3px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-xs);
}
.seg button { height: 30px; padding: 0 12px; border-radius: 9px; font-size: 11.5px; color: var(--muted); font-weight: 500; transition: .15s; }
.seg button.active { background: var(--navy); color: #fff; font-weight: 600; box-shadow: 0 5px 12px -7px rgba(30, 58, 138, .7); }
.seg button:hover:not(.active) { color: var(--navy); background: var(--navy-50); }
.filter-spacer { flex: 1; }
.filter-chip { height: 30px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--line); background: #fff; font-size: 10.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.filter-chip .ic { width: 12px; height: 12px; }

/* ---------- Post list ---------- */
.post-list { background: #fff; border: 1px solid var(--line); border-radius: 23px; box-shadow: var(--shadow-sm); overflow: hidden; }
.post-row { display: flex; gap: 14px; padding: 17px 18px; border-bottom: 1px solid var(--line-soft); transition: background .15s; position: relative; }
.post-row:last-child { border-bottom: 0; }
.post-row:hover { background: #fbfcff; }
.post-thumb { width: 92px; height: 92px; border-radius: 15px; overflow: hidden; flex: none; position: relative; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-main { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.post-flags { display: flex; gap: 5px; margin-bottom: 4px; flex-wrap: wrap; }
.post-title { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.post-row:hover .post-title { color: var(--navy); }
.post-excerpt { font-size: 10.5px; color: var(--muted); line-height: 1.6; margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-meta { display: flex; align-items: center; gap: 7px; font-size: 9.5px; color: var(--faint); margin-top: auto; padding-top: 6px; flex-wrap: wrap; }
.post-meta .mini-author { display: inline-flex; align-items: center; gap: 4px; color: #64748b; }
.post-meta .dot { width: 2px; height: 2px; border-radius: 50%; background: #c2cbda; }
.post-stats { display: flex; align-items: center; gap: 9px; flex: none; align-self: flex-end; padding-bottom: 2px; font-size: 9.5px; color: var(--faint); }
.post-stats span { display: inline-flex; align-items: center; gap: 3px; }
.post-stats .ic { width: 12px; height: 12px; }
.load-more { display: flex; justify-content: center; padding: 18px 0 4px; }
.load-more-note { text-align: center; font-size: 10px; color: var(--faint); padding: 16px 0 4px; }

/* ---------- Article ---------- */
.article { background: #fff; border: 1px solid var(--line); border-radius: 27px; padding: 28px 30px 22px; box-shadow: var(--shadow-sm); }
.article-cat { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.article-title { font-family: var(--font-display); font-size: 30px; line-height: 1.42; font-weight: 700; color: var(--ink); letter-spacing: .015em; margin-top: 12px; }
.article-lead { font-size: 13px; line-height: 1.8; color: var(--muted); margin-top: 10px; }
.article-meta-row { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line-soft); }
.article-meta-info { flex: 1; min-width: 0; }
.article-author { display: flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; color: var(--ink); }
.article-author .ic { width: 12px; height: 12px; color: var(--navy-500); }
.article-submeta { font-size: 9.5px; color: var(--faint); margin-top: 2px; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.article-submeta .dot { width: 2px; height: 2px; border-radius: 50%; background: #c2cbda; }
.article-cover { margin-top: 20px; border-radius: 19px; overflow: hidden; height: 320px; position: relative; background: #dfe7f5; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-cover .cover-cap { position: absolute; left: 12px; bottom: 10px; font-size: 9px; color: rgba(255, 255, 255, .8); background: rgba(6, 16, 36, .35); padding: 3px 8px; border-radius: 6px; backdrop-filter: blur(6px); }
.article-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.article-gallery div { height: 180px; border-radius: 15px; overflow: hidden; }
.article-gallery img { width: 100%; height: 100%; object-fit: cover; }
.article-body { padding-top: 8px; }
.article-body p { font-size: 15px; line-height: 1.98; color: #2a3955; margin: 15px 0; letter-spacing: .012em; }
.article-body h2 { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--ink); margin: 25px 0 8px; display: flex; align-items: center; gap: 9px; letter-spacing: .02em; }
.article-body h2::before { content: ''; width: 4px; height: 16px; border-radius: 2px; background: var(--green); }
.article-body ul { margin: 12px 0 16px; padding: 0; list-style: none; display: grid; gap: 7px; }
.article-body ul li { position: relative; padding-left: 19px; font-size: 14px; line-height: 1.8; color: #33425e; }
.article-body ul li::before { content: ''; position: absolute; left: 4px; top: 10px; width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.article-body blockquote { margin: 20px 0; padding: 13px 18px; border-left: 3px solid var(--green); background: linear-gradient(90deg, #f2fbf6, #fbfdfc); border-radius: 0 12px 12px 0; font-family: var(--font-display); font-size: 14px; line-height: 1.8; color: #31513f; letter-spacing: .02em; }
.article-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.article-tags a { height: 26px; display: inline-flex; align-items: center; padding: 0 9px; border-radius: 8px; background: #f4f7fc; font-size: 10.5px; color: #64748b; }
.article-tags a:hover { background: var(--navy-50); color: var(--navy); }
.article-tags a::before { content: '#'; margin-right: 1px; color: #9aa7bf; }

/* Poll */
.poll { margin: 22px 0 6px; padding: 17px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(160deg, #f8fafe, #fff); }
.poll-head { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.poll-head .ic { width: 15px; height: 15px; color: var(--navy); }
.poll-head .poll-total { margin-left: auto; font-size: 9.5px; font-weight: 400; color: var(--faint); }
.poll-option { position: relative; display: flex; align-items: center; gap: 9px; min-height: 40px; padding: 0 12px; border-radius: 11px; border: 1px solid var(--line); background: #fff; margin-bottom: 7px; overflow: hidden; cursor: pointer; transition: .15s; }
.poll-option:hover { border-color: #b9cbef; }
.poll-option .bar { position: absolute; left: 0; top: 0; bottom: 0; background: var(--navy-50); z-index: 0; transition: width .6s var(--ease); }
.poll-option .poll-label { position: relative; z-index: 1; font-size: 12px; flex: 1; color: var(--text); }
.poll-option .poll-pct { position: relative; z-index: 1; font-size: 10.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.poll-option.selected { border-color: var(--navy); }
.poll-option.selected .poll-label { font-weight: 700; color: var(--navy); }
.poll-option.selected .poll-label::after { content: ' ✓'; color: var(--green-600); }
.poll-option .poll-radio { position: relative; z-index: 1; width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid #c6d2e6; flex: none; }
.poll-option.selected .poll-radio { border-color: var(--navy); background: radial-gradient(circle, var(--navy) 0 42%, #fff 46%); }
.poll-foot { font-size: 9.5px; color: var(--faint); display: flex; align-items: center; gap: 4px; margin-top: 8px; }

/* Audio player */
.audio-card { display: flex; align-items: center; gap: 13px; margin: 22px 0; padding: 14px 16px; border-radius: 18px; background: linear-gradient(135deg, #0d2452, #1e3a8a); color: #fff; box-shadow: 0 16px 34px -22px rgba(13, 36, 82, .7); }
.audio-play { width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: #052e16; display: grid; place-items: center; flex: none; }
.audio-play .ic { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.audio-info { min-width: 0; flex: 1; }
.audio-title { font-size: 12.5px; font-weight: 700; }
.audio-sub { font-size: 9.5px; color: rgba(255, 255, 255, .55); margin-top: 1px; }
.audio-wave { display: flex; align-items: center; gap: 2.5px; height: 24px; margin-top: 5px; }
.audio-wave i { display: block; width: 2.5px; border-radius: 2px; background: rgba(255, 255, 255, .3); height: var(--h, 40%); transition: background .3s; }
.audio-card.playing .audio-wave i { animation: wave 1s ease-in-out infinite alternate; animation-delay: calc(var(--i, 0) * .06s); background: #86efac; }
.audio-time { font-size: 9.5px; color: rgba(255, 255, 255, .55); flex: none; font-variant-numeric: tabular-nums; }

/* Action bar */
.action-bar { display: flex; align-items: center; gap: 7px; margin-top: 18px; padding: 12px 0 2px; border-top: 1px solid var(--line-soft); }
.action-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 11px; font-size: 11.5px; color: var(--muted); transition: .15s; }
.action-btn:hover { background: #f5f8fd; color: var(--navy); }
.action-btn .ic { width: 16px; height: 16px; }
.action-btn.liked { color: var(--rose); background: var(--rose-50); }
.action-btn.liked .ic { fill: var(--rose); stroke: var(--rose); }
.action-btn.saved { color: var(--navy); background: var(--navy-50); }
.action-btn.saved .ic { fill: var(--navy); }
.action-bar .spacer { flex: 1; }
.action-more { color: #a3aec4; }

/* Comments */
.comments-card { margin-top: 15px; background: #fff; border: 1px solid var(--line); border-radius: 23px; padding: 20px 22px; box-shadow: var(--shadow-sm); }
.comments-head { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.comments-head h3 { font-size: 15.5px; font-weight: 700; color: var(--ink); }
.comments-head .count { font-size: 10px; color: var(--faint); }
.comments-head .seg { margin-left: auto; }
.comments-head .seg button { height: 26px; font-size: 10px; padding: 0 9px; }
.comment-editor { display: flex; gap: 10px; padding: 11px; background: #f7f9fd; border: 1px solid var(--line-soft); border-radius: 14px; margin-bottom: 17px; }
.comment-editor .field { flex: 1; min-width: 0; }
.comment-editor textarea { width: 100%; height: 52px; resize: none; font-size: 12px; line-height: 1.65; }
.comment-editor textarea::placeholder { color: #9aa7bf; }
.comment-editor .editor-foot { display: flex; align-items: center; gap: 8px; }
.comment-editor .editor-note { font-size: 9px; color: var(--faint); display: flex; align-items: center; gap: 3px; }
.comment-editor .editor-note .ic { width: 10px; height: 10px; }
.comment-editor .btn { margin-left: auto; }
.comment { display: flex; gap: 10px; padding: 13px 0; border-top: 1px solid var(--line-soft); }
.comment:first-of-type { border-top: 0; }
.comment-main { flex: 1; min-width: 0; }
.comment-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.comment-name { font-size: 11.5px; font-weight: 700; color: var(--ink); }
.comment-role { font-size: 8px; color: var(--navy); background: var(--navy-50); padding: 1px 5px; border-radius: 4px; font-weight: 600; }
.comment-floor { font-size: 8.5px; color: #b3bfd3; margin-left: auto; }
.comment-text { font-size: 12px; line-height: 1.75; color: #3c4b66; margin-top: 4px; }
.comment-text a { color: var(--navy); font-weight: 600; }
.comment-actions { display: flex; align-items: center; gap: 12px; margin-top: 5px; font-size: 9.5px; color: var(--faint); }
.comment-actions button { display: inline-flex; align-items: center; gap: 3px; font-size: 9.5px; color: var(--faint); }
.comment-actions button:hover { color: var(--navy); }
.comment-actions .ic { width: 11px; height: 11px; }
.reply-list { margin-top: 9px; padding: 9px 12px; background: #f8fafe; border-radius: 11px; display: grid; gap: 7px; }
.reply { font-size: 11px; line-height: 1.65; color: #53627c; }
.reply b { color: var(--ink); font-weight: 600; }
.reply .reply-time { font-size: 8.5px; color: #a3aec4; margin-left: 5px; }
.comments-empty { text-align: center; padding: 26px 0 18px; color: var(--faint); font-size: 11.5px; }
.comments-empty .ic { width: 26px; height: 26px; margin: 0 auto 7px; color: #c6d2e6; display: block; }

.related { margin-top: 20px; }
.related-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.related-head h3 { font-family: var(--font-display); font-size: 18px; color: var(--ink); }
.related-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.related-card { background: #fff; border: 1px solid var(--line); border-radius: 15px; overflow: hidden; transition: .18s; }
.related-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.related-card .related-media { height: 76px; }
.related-card .related-body { padding: 9px 10px 10px; }
.related-card .related-title { font-size: 10.5px; line-height: 1.5; font-weight: 600; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; height: 31px; }

/* ---------- Compose ---------- */
.compose-card { background: #fff; border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow-sm); padding: 22px 24px 18px; }
.compose-section { padding: 15px 0; border-bottom: 1px solid var(--line-soft); }
.compose-section:first-child { padding-top: 0; }
.compose-section:last-child { border-bottom: 0; }
.compose-label { display: flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 700; color: var(--muted); letter-spacing: .04em; margin-bottom: 9px; }
.compose-label .ic { width: 13px; height: 13px; }
.compose-label .required { color: var(--rose); }
.compose-label .hint { margin-left: auto; font-weight: 400; font-size: 9.5px; color: var(--faint); letter-spacing: 0; }
.board-picker { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 2px; }
.board-chip { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--line); background: #fff; font-size: 11px; color: var(--muted); white-space: nowrap; transition: .15s; }
.board-chip .ic { width: 13px; height: 13px; }
.board-chip:hover { border-color: #c8d6ee; color: var(--navy); }
.board-chip.active { border-color: var(--tint, var(--navy)); background: var(--tint-soft, var(--navy-50)); color: var(--tint, var(--navy)); font-weight: 600; }
.compose-title-input { width: 100%; font-family: var(--font-display); font-size: 25px; font-weight: 700; line-height: 1.45; color: var(--ink); letter-spacing: .01em; padding: 4px 0 6px; }
.compose-title-input::placeholder { color: #c2cbda; }
.compose-body-input { width: 100%; min-height: 230px; resize: vertical; font-size: 14px; line-height: 1.9; color: var(--text); padding: 6px 0; }
.compose-body-input::placeholder { color: #aab6c9; }
.editor-toolbar { display: flex; align-items: center; gap: 4px; padding-top: 10px; flex-wrap: wrap; }
.tool-btn { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 9px; border-radius: 8px; font-size: 10.5px; color: var(--muted); transition: .15s; }
.tool-btn:hover { background: #f3f6fc; color: var(--navy); }
.tool-btn .ic { width: 14px; height: 14px; }
.editor-toolbar .counter { margin-left: auto; font-size: 9.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.cover-preview { position: relative; margin-top: 10px; border-radius: 14px; overflow: hidden; height: 150px; border: 1px solid var(--line); }
.cover-preview img { width: 100%; height: 100%; object-fit: cover; }
.cover-preview .cover-remove { position: absolute; right: 8px; top: 8px; width: 26px; height: 26px; border-radius: 8px; background: rgba(8, 18, 40, .55); color: #fff; display: grid; place-items: center; backdrop-filter: blur(6px); }
.cover-preview .cover-remove .ic { width: 13px; height: 13px; }
.media-preview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.media-thumb { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #eef3fb; }
.media-thumb img { width: 100%; height: 100%; object-fit: cover; }
.media-thumb button { position: absolute; right: 4px; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: rgba(15,23,42,.72); color: #fff; display: grid; place-items: center; }
.media-thumb .ic { width: 11px; height: 11px; }
.attachment-preview { margin-top: 9px; display: flex; flex-direction: column; gap: 6px; }
.attachment-preview > div { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid #e3ebf7; border-radius: 9px; background: #f8fafe; font-size: 9.5px; }
.att-kind { padding: 2px 6px; border-radius: 5px; background: #eaf1ff; color: #1e40af; font-size: 8px; }
.att-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #334155; }
.att-size { color: #93a1b8; font-size: 8px; }
.media-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; min-height: 150px; border: 1.5px dashed #b9cbef; border-radius: 14px; background: #f8fafe; color: #1e3a8a; font-size: 11px; cursor: pointer; }
.media-drop .ic { width: 28px; height: 28px; color: #60a5fa; }
.media-drop input { display: none; }
.media-rules { display: flex; gap: 6px; align-items: flex-start; margin-top: 10px; font-size: 9px; color: #7b8aa5; line-height: 1.6; }
.media-rules .ic { width: 13px; height: 13px; flex: 0 0 auto; margin-top: 1px; }
.article-attachments { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.attachment-video video { width: 100%; border-radius: 14px; background: #0f172a; display: block; }
.attachment-meta { display: flex; align-items: center; gap: 5px; font-size: 9px; color: #93a1b8; margin-top: 5px; }
.attachment-audio { display: flex; gap: 10px; align-items: center; padding: 12px; border: 1px solid #e3ebf7; border-radius: 12px; background: #f8fafe; }
.attachment-audio > .ic { width: 24px; height: 24px; color: #1e3a8a; }
.attachment-audio audio { width: 100%; height: 32px; margin-top: 5px; }
.attachment-name { font-size: 10px; font-weight: 600; color: #334155; }
.attachment-file { display: flex; align-items: center; gap: 8px; padding: 11px 12px; border: 1px solid #e3ebf7; border-radius: 11px; background: #fbfdff; color: #334155; font-size: 10px; }
.attachment-file .ic { width: 15px; height: 15px; color: #1e3a8a; flex: 0 0 auto; }
.attachment-size { margin-left: auto; color: #93a1b8; font-size: 8px; }
.poll-editor { margin-top: 12px; padding: 13px; background: #f8fafe; border: 1px solid var(--line); border-radius: 13px; }
.poll-editor-head { display: flex; align-items: center; justify-content: space-between; font-size: 10.5px; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.poll-editor-head button { font-size: 9.5px; color: var(--rose); }
.poll-input-row { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; }
.poll-input-row span { width: 14px; font-size: 9px; color: var(--faint); }
.poll-input-row input { flex: 1; height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 11px; }
.poll-editor .poll-add { font-size: 10px; color: var(--navy); }
.poll-editor .poll-note { font-size: 9px; color: var(--faint); margin-top: 8px; }

.vis-box { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; }
.vis-option { display: flex; align-items: flex-start; gap: 10px; padding: 12px 13px; border-bottom: 1px solid var(--line-soft); cursor: pointer; transition: .15s; position: relative; text-align: left; width: 100%; }
.vis-option:last-child { border-bottom: 0; }
.vis-option:hover { background: #fafcff; }
.vis-option.active { background: linear-gradient(90deg, var(--navy-50), #fff); }
.vis-radio { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid #c6d2e6; flex: none; margin-top: 2px; transition: .15s; }
.vis-option.active .vis-radio { border-color: var(--navy); background: radial-gradient(circle, var(--navy) 0 42%, #fff 46%); }
.vis-icon { width: 30px; height: 30px; border-radius: 9px; background: #f4f7fc; color: #64748b; display: grid; place-items: center; flex: none; }
.vis-option.active .vis-icon { background: var(--navy-50); color: var(--navy); }
.vis-icon .ic { width: 15px; height: 15px; }
.vis-main { flex: 1; min-width: 0; }
.vis-title { display: block; font-size: 12px; font-weight: 700; color: var(--ink); }
.vis-desc { display: block; font-size: 9.5px; color: var(--faint); margin-top: 1px; line-height: 1.5; }
.vis-badge { flex: none; }
.vis-hint { display: flex; align-items: flex-start; gap: 7px; margin-top: 9px; padding: 9px 11px; border-radius: 10px; font-size: 9.5px; line-height: 1.6; }
.vis-hint.audit { background: var(--amber-50); color: #92610b; }
.vis-hint.free { background: var(--green-50); color: var(--green-700); }
.vis-hint .ic { width: 12px; height: 12px; margin-top: 1px; flex: none; }
.vis-people { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 9px; padding-top: 9px; border-top: 1px dashed var(--line); }
.person-chip { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 7px 0 3px; border-radius: 99px; background: #f4f7fc; font-size: 9.5px; color: var(--text); }
.person-chip .avatar { width: 18px; height: 18px; font-size: 7px; }
.person-chip.add { padding: 0 8px; color: var(--navy); border: 1px dashed #c8d6ee; background: #fff; }
.switch-row { display: flex; align-items: center; gap: 11px; }
.switch-row .switch-text { flex: 1; }
.switch-row .switch-title { font-size: 12px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 5px; }
.switch-row .switch-desc { font-size: 9.5px; color: var(--faint); margin-top: 1px; line-height: 1.5; }
.switch { width: 42px; height: 24px; border-radius: 99px; background: #dbe3f0; position: relative; transition: .2s; flex: none; cursor: pointer; }
.switch::after { content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%; background: #fff; top: 3px; left: 3px; box-shadow: 0 1px 3px rgba(12, 35, 80, .2); transition: .2s var(--ease); }
.switch.on { background: var(--green); }
.switch.on::after { left: 21px; }
.compose-foot { display: flex; align-items: center; gap: 10px; padding-top: 16px; }
.compose-foot .compose-note { flex: 1; font-size: 9.5px; color: var(--faint); display: flex; align-items: center; gap: 4px; line-height: 1.5; }
.compose-foot .compose-note .ic { width: 11px; height: 11px; flex: none; }
.compose-foot .btn { min-width: 112px; }
.draft-tip { display: inline-flex; align-items: center; gap: 4px; font-size: 9.5px; color: var(--faint); }

/* ---------- Notifications ---------- */
.notif-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 3px; margin-bottom: 14px; scrollbar-width: none; }
.notif-tabs::-webkit-scrollbar { display: none; }
.notif-tab { display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 11.5px; color: var(--muted); white-space: nowrap; transition: .15s; }
.notif-tab .n { font-size: 9px; color: var(--faint); }
.notif-tab.active { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 600; box-shadow: 0 8px 18px -12px rgba(30, 58, 138, .8); }
.notif-tab.active .n { color: rgba(255, 255, 255, .6); }
.notif-card { background: #fff; border: 1px solid var(--line); border-radius: 23px; box-shadow: var(--shadow-sm); overflow: hidden; }
.notif-group-label { font-size: 9.5px; font-weight: 700; color: #9aa7bf; letter-spacing: .1em; padding: 14px 18px 7px; background: #fbfcfe; border-bottom: 1px solid var(--line-soft); }
.notif-row { display: flex; gap: 12px; padding: 15px 18px; border-bottom: 1px solid var(--line-soft); position: relative; transition: background .15s; }
.notif-row:last-child { border-bottom: 0; }
.notif-row:hover { background: #fbfcff; }
.notif-row.unread { background: linear-gradient(90deg, #f4f8ff, #fff 70%); }
.notif-row.unread::before { content: ''; position: absolute; left: 6px; top: 24px; width: 4px; height: 4px; border-radius: 50%; background: var(--navy); }
.notif-icon { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none; background: var(--navy-50); color: var(--navy); }
.notif-icon .ic { width: 17px; height: 17px; }
.notif-icon.audit { background: var(--green-50); color: var(--green-700); }
.notif-icon.reject { background: var(--rose-50); color: var(--rose); }
.notif-icon.comment, .notif-icon.mention { background: #eef0ff; color: #6366f1; }
.notif-icon.like { background: var(--rose-50); color: var(--rose); }
.notif-icon.dm { background: #e8f7fd; color: #0284c7; }
.notif-icon.system { background: var(--amber-50); color: #b45309; }
.notif-icon.follow { background: #eafaf0; color: var(--green-700); }
.notif-main { flex: 1; min-width: 0; }
.notif-title-row { display: flex; align-items: center; gap: 6px; }
.notif-title { font-size: 12px; font-weight: 700; color: var(--ink); }
.notif-new { font-size: 8px; color: var(--rose); background: var(--rose-50); padding: 1px 4px; border-radius: 4px; font-weight: 600; }
.notif-desc { font-size: 10.5px; line-height: 1.65; color: var(--muted); margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.notif-time { font-size: 9px; color: var(--faint); margin-top: 4px; }
.notif-arrow { align-self: center; color: #c2cbda; }
.notif-arrow .ic { width: 14px; height: 14px; }
.notif-head-actions { display: flex; justify-content: flex-end; margin-bottom: 10px; }

/* ---------- Profile / Me ---------- */
.profile-card { background: #fff; border: 1px solid var(--line); border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-sm); }
.profile-banner { position: relative; height: 126px; overflow: hidden; background: linear-gradient(120deg, #0a1d45, #17377a 55%, #2b55ae); }
.profile-banner::before { content: ''; position: absolute; inset: 0; opacity: .5; background: radial-gradient(circle at 80% 10%, rgba(34, 197, 94, .32), transparent 40%), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.3'/%3E%3C/svg%3E"); mix-blend-mode: overlay; }
.profile-banner .rings { position: absolute; right: -40px; top: -90px; width: 240px; height: 240px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 50%; }
.profile-banner .rings::before, .profile-banner .rings::after { content: ''; position: absolute; border: 1px solid rgba(255, 255, 255, .1); border-radius: 50%; }
.profile-banner .rings::before { inset: 30px; }
.profile-banner .rings::after { inset: 62px; border-style: dashed; }
.profile-banner .banner-quote { position: absolute; left: 24px; top: 25px; color: rgba(255, 255, 255, .9); font-family: var(--font-display); font-size: 15px; letter-spacing: .06em; }
.profile-banner .banner-en { position: absolute; left: 25px; top: 52px; color: rgba(255, 255, 255, .38); font-size: 8px; letter-spacing: .24em; }
.profile-head { padding: 0 22px 18px; position: relative; }
.profile-avatar-wrap { margin-top: -38px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.profile-avatar { border: 4px solid #fff; box-shadow: 0 12px 28px -14px rgba(12, 35, 80, .45); border-radius: 22px; }
.profile-actions { display: flex; gap: 6px; padding-bottom: 4px; }
.profile-info { margin-top: 9px; }
.profile-name-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.profile-name { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--ink); letter-spacing: .02em; line-height: 1.3; }
.profile-cls { font-size: 10.5px; color: var(--muted); }
.profile-bio { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.profile-stats { display: flex; gap: 24px; margin-top: 15px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.profile-stat b { font-size: 16px; color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.profile-stat small { font-size: 9.5px; color: var(--faint); margin-left: 3px; }

.quick-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 14px; }
.quick-item { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 13px 5px; background: #fff; border: 1px solid var(--line); border-radius: 15px; transition: .18s; box-shadow: var(--shadow-xs); }
.quick-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: #d6e1f2; }
.quick-icon { width: 33px; height: 33px; border-radius: 10px; display: grid; place-items: center; background: var(--tint-soft, var(--navy-50)); color: var(--tint, var(--navy)); }
.quick-icon .ic { width: 16px; height: 16px; }
.quick-label { font-size: 10px; color: var(--muted); }
.quick-item .badge { position: absolute; }

.content-tabs { display: flex; align-items: center; gap: 3px; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: 13px; margin: 14px 0 12px; box-shadow: var(--shadow-xs); }
.content-tab { flex: 1; height: 33px; border-radius: 9px; font-size: 11.5px; color: var(--muted); font-weight: 500; transition: .15s; display: inline-flex; align-items: center; justify-content: center; }
.content-tab.active { background: var(--navy); color: #fff; font-weight: 600; box-shadow: 0 6px 14px -9px rgba(30, 58, 138, .8); }
.my-list { background: #fff; border: 1px solid var(--line); border-radius: 21px; box-shadow: var(--shadow-sm); overflow: hidden; }
.my-row { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); align-items: flex-start; }
.my-row:last-child { border-bottom: 0; }
.my-thumb { width: 57px; height: 57px; border-radius: 11px; overflow: hidden; flex: none; }
.my-main { flex: 1; min-width: 0; }
.my-title { font-size: 12.5px; font-weight: 600; color: var(--ink); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.my-meta { display: flex; align-items: center; gap: 6px; margin-top: 5px; flex-wrap: wrap; font-size: 9px; color: var(--faint); }
.my-reject { display: flex; align-items: flex-start; gap: 4px; margin-top: 5px; padding: 5px 7px; border-radius: 7px; background: var(--rose-50); color: #b91c3c; font-size: 9px; line-height: 1.5; }
.my-reject .ic { width: 10px; height: 10px; flex: none; margin-top: 1px; }
.my-actions { display: flex; gap: 4px; align-self: center; }
.mini-action { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: #8b99b4; }
.mini-action:hover { background: #f4f7fc; color: var(--navy); }
.mini-action .ic { width: 13px; height: 13px; }
.my-empty { padding: 38px 20px; text-align: center; color: var(--faint); font-size: 11px; }
.my-empty .ic { width: 30px; height: 30px; margin: 0 auto 8px; color: #c6d2e6; display: block; }

/* ---------- Messages ---------- */
.msg-shell { display: grid; grid-template-columns: 296px minmax(0, 1fr); background: #fff; border: 1px solid var(--line); border-radius: 23px; overflow: hidden; box-shadow: var(--shadow-sm); min-height: 600px; height: calc(100vh - 120px); max-height: 720px; }
.msg-list { border-right: 1px solid var(--line-soft); display: flex; flex-direction: column; min-height: 0; }
.msg-list-head { padding: 15px 16px 9px; border-bottom: 1px solid var(--line-soft); }
.msg-list-title { font-size: 15px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 6px; }
.msg-list-title .pill { margin-left: auto; }
.msg-requests { margin: 9px 12px 4px; padding: 10px; background: linear-gradient(135deg, #fff9ec, #fffdf7); border: 1px solid #f7e8c8; border-radius: 12px; }
.msg-requests-head { display: flex; align-items: center; gap: 5px; font-size: 9.5px; font-weight: 700; color: #a16207; }
.msg-requests-head .ic { width: 12px; height: 12px; }
.msg-request { display: flex; align-items: center; gap: 7px; margin-top: 7px; }
.msg-request .req-main { flex: 1; min-width: 0; font-size: 9.5px; color: #7c5b1e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-request .req-actions { display: flex; gap: 3px; }
.req-btn { height: 21px; padding: 0 6px; border-radius: 5px; font-size: 8.5px; background: #fff; border: 1px solid #f0dcb0; color: #8a6418; }
.req-btn.accept { background: #a16207; border-color: #a16207; color: #fff; }
.thread-scroll { flex: 1; overflow-y: auto; padding: 4px 8px 10px; scrollbar-width: thin; }
.thread-row { display: flex; gap: 9px; padding: 10px 9px; border-radius: 12px; transition: .15s; position: relative; }
.thread-row:hover { background: #f7f9fe; }
.thread-row.active { background: var(--navy-50); }
.thread-main { flex: 1; min-width: 0; }
.thread-top { display: flex; align-items: center; gap: 5px; }
.thread-name { font-size: 11.5px; font-weight: 700; color: var(--ink); }
.thread-time { margin-left: auto; font-size: 8.5px; color: var(--faint); }
.thread-preview { font-size: 9.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.thread-row .unread { position: absolute; right: 9px; bottom: 12px; min-width: 15px; height: 15px; padding: 0 4px; border-radius: 99px; background: var(--rose); color: #fff; font-size: 8px; display: grid; place-items: center; font-weight: 700; }
.chat-pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #fbfcff; }
.chat-head { display: flex; align-items: center; gap: 9px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); background: rgba(255, 255, 255, .8); backdrop-filter: blur(10px); }
.chat-head-info { flex: 1; min-width: 0; }
.chat-name { font-size: 12.5px; font-weight: 700; color: var(--ink); }
.chat-status { font-size: 8.5px; color: var(--green-600); display: flex; align-items: center; gap: 3px; }
.chat-status .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--green); }
.chat-body { flex: 1; overflow-y: auto; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; scrollbar-width: thin; }
.chat-day { align-self: center; font-size: 8.5px; color: var(--faint); background: #eef2f9; padding: 2px 8px; border-radius: 99px; }
.bubble-row { display: flex; gap: 7px; max-width: 80%; }
.bubble-row.me { align-self: flex-end; flex-direction: row-reverse; }
.bubble { padding: 8px 12px; border-radius: 13px 13px 13px 3px; background: #fff; border: 1px solid var(--line-soft); font-size: 11.5px; line-height: 1.65; color: var(--text); box-shadow: var(--shadow-xs); }
.bubble-row.me .bubble { background: var(--navy); color: #fff; border-color: var(--navy); border-radius: 13px 13px 3px 13px; }
.bubble-time { font-size: 8px; color: var(--faint); align-self: flex-end; margin-bottom: 2px; }
.chat-input { display: flex; align-items: flex-end; gap: 8px; padding: 11px 14px; border-top: 1px solid var(--line-soft); background: #fff; }
.chat-input textarea { flex: 1; height: 38px; max-height: 100px; resize: none; padding: 8px 11px; background: #f6f8fd; border: 1px solid var(--line-soft); border-radius: 10px; font-size: 11.5px; line-height: 1.5; }
.chat-input textarea:focus { border-color: #b9cbef; background: #fff; }
.chat-send { width: 36px; height: 36px; border-radius: 10px; background: var(--navy); color: #fff; display: grid; place-items: center; }
.chat-send .ic { width: 15px; height: 15px; }
.chat-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--faint); font-size: 11px; }
.chat-empty .ic { width: 34px; height: 34px; color: #c6d2e6; }
.msg-mobile-head { display: none; }

/* ---------- Search ---------- */
.search-hero { position: relative; overflow: hidden; border-radius: 26px; padding: 26px 26px 24px; background: linear-gradient(125deg, #0a1d45, #15336f 55%, #24499a); color: #fff; box-shadow: 0 24px 50px -30px rgba(9, 28, 67, .7); }
.search-hero::after { content: ''; position: absolute; width: 260px; height: 260px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 50%; right: -100px; top: -150px; }
.search-hero h1 { font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: .03em; }
.search-hero p { font-size: 10.5px; color: rgba(255, 255, 255, .55); margin-top: 3px; }
.search-big { position: relative; z-index: 1; display: flex; align-items: center; gap: 9px; height: 50px; margin-top: 16px; padding: 0 8px 0 15px; background: #fff; border-radius: 14px; box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .5); }
.search-big .ic { width: 18px; height: 18px; color: var(--faint); }
.search-big input { flex: 1; font-size: 13px; color: var(--ink); }
.search-big .btn { height: 36px; border-radius: 9px; }
.hot-search { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 13px; position: relative; z-index: 1; }
.hot-search .label { font-size: 9px; color: rgba(255, 255, 255, .45); letter-spacing: .08em; }
.hot-chip { height: 23px; padding: 0 8px; border-radius: 99px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .13); color: rgba(255, 255, 255, .78); font-size: 9.5px; }
.hot-chip:hover { background: rgba(255, 255, 255, .2); }
.search-tabs { display: flex; align-items: center; gap: 2px; margin: 16px 0 12px; border-bottom: 1px solid var(--line); }
.search-tab { height: 38px; padding: 0 12px; font-size: 12px; color: var(--muted); position: relative; }
.search-tab.active { color: var(--navy); font-weight: 700; }
.search-tab.active::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--navy); }
.search-tab .n { font-size: 9px; color: var(--faint); margin-left: 2px; }
.search-summary { font-size: 10px; color: var(--faint); margin-bottom: 10px; }
.search-summary b { color: var(--navy); }
.result-card { background: #fff; border: 1px solid var(--line); border-radius: 21px; box-shadow: var(--shadow-sm); overflow: hidden; }
.result-row { display: flex; gap: 13px; padding: 15px 17px; border-bottom: 1px solid var(--line-soft); }
.result-row:last-child { border-bottom: 0; }
.result-row:hover { background: #fbfcff; }
.result-body { min-width: 0; flex: 1; }
.result-title { font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.5; }
.result-title mark { background: rgba(34, 197, 94, .18); color: var(--green-700); padding: 0 1px; border-radius: 3px; }
.result-desc { font-size: 10px; color: var(--muted); margin-top: 3px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.result-desc mark { background: rgba(34, 197, 94, .14); color: var(--green-700); }
.result-meta { font-size: 9px; color: var(--faint); margin-top: 5px; display: flex; gap: 6px; align-items: center; }
.user-result { display: flex; align-items: center; gap: 11px; padding: 13px 17px; border-bottom: 1px solid var(--line-soft); }
.user-result:last-child { border-bottom: 0; }
.user-result-info { flex: 1; min-width: 0; }
.user-result-name { font-size: 12px; font-weight: 700; color: var(--ink); }
.user-result-name .ic { vertical-align: -1px; margin-left: 3px; }
.user-result-meta { font-size: 9.5px; color: var(--faint); }
.search-empty { text-align: center; padding: 50px 20px; }
.search-empty .se-icon { width: 56px; height: 56px; border-radius: 18px; background: var(--navy-50); color: var(--navy-500); display: grid; place-items: center; margin: 0 auto 12px; }
.search-empty .se-icon .ic { width: 25px; height: 25px; }
.search-empty h3 { font-size: 13px; font-weight: 700; color: var(--ink); }
.search-empty p { font-size: 10.5px; color: var(--faint); margin-top: 3px; }

/* ---------- Settings / guidelines ---------- */
.settings-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-sm); overflow: hidden; margin-bottom: 13px; }
.settings-head { padding: 13px 17px; border-bottom: 1px solid var(--line-soft); font-size: 12px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 6px; }
.settings-head .ic { width: 14px; height: 14px; color: var(--navy); }
.settings-row { display: flex; align-items: center; gap: 10px; padding: 13px 17px; border-bottom: 1px solid var(--line-soft); }
.settings-row:last-child { border-bottom: 0; }
.settings-row .s-main { flex: 1; min-width: 0; }
.settings-row .s-title { font-size: 11.5px; font-weight: 500; color: var(--text); }
.settings-row .s-desc { font-size: 9.5px; color: var(--faint); margin-top: 1px; }
.settings-row .s-value { font-size: 10px; color: var(--faint); }
.settings-row .ic { width: 13px; height: 13px; color: #c2cbda; }
.settings-row.danger .s-title { color: var(--rose); }

.guide-hero { position: relative; overflow: hidden; background: linear-gradient(130deg, #0a1d45, #1a3d80 60%, #2b55ae); color: #fff; border-radius: 26px; padding: 28px 26px; box-shadow: 0 24px 50px -30px rgba(9, 28, 67, .65); }
.guide-hero h1 { font-family: var(--font-display); font-size: 28px; letter-spacing: .04em; }
.guide-hero p { font-size: 11px; color: rgba(255, 255, 255, .6); margin-top: 5px; line-height: 1.8; max-width: 430px; }
.guide-hero .quote-mark { position: absolute; right: 18px; top: -18px; font-family: Georgia, serif; font-size: 150px; color: rgba(255, 255, 255, .06); line-height: 1; }
.guide-list { margin-top: 14px; display: grid; gap: 10px; }
.guide-item { display: flex; gap: 13px; background: #fff; border: 1px solid var(--line); border-radius: 17px; padding: 16px; box-shadow: var(--shadow-xs); }
.guide-num { width: 28px; height: 28px; border-radius: 9px; background: var(--navy-50); color: var(--navy); font-family: var(--font-display); font-size: 14px; font-weight: 700; display: grid; place-items: center; flex: none; }
.guide-item h3 { font-size: 13px; font-weight: 700; color: var(--ink); }
.guide-item p { font-size: 10.5px; line-height: 1.8; color: var(--muted); margin-top: 3px; }

/* ---------- Drawer ---------- */
.drawer-scrim { position: fixed; inset: 0; z-index: 90; background: rgba(5, 13, 31, .44); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .28s; }
.drawer-scrim.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; z-index: 91; top: 0; left: 0; height: 100dvh; width: min(86vw, 342px);
  background: #fff; border-radius: 0 26px 26px 0; overflow: hidden;
  display: flex; flex-direction: column;
  transform: translateX(-103%); transition: transform .34s var(--ease);
  box-shadow: 0 30px 80px rgba(4, 12, 30, .35);
}
.drawer.open { transform: translateX(0); }
.drawer-head { position: relative; padding: 20px 20px 18px; background: linear-gradient(135deg, #0a1d45, #17377a 65%, #24499a); color: #fff; overflow: hidden; }
.drawer-head::after { content: ''; position: absolute; width: 190px; height: 190px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 50%; right: -80px; top: -100px; }
.drawer-head-top { display: flex; align-items: center; gap: 10px; }
.drawer-close { margin-left: auto; width: 32px; height: 32px; border-radius: 9px; background: rgba(255, 255, 255, .1); color: #fff; display: grid; place-items: center; }
.drawer-close .ic { width: 16px; height: 16px; }
.drawer-brand-name { font-size: 16px; font-weight: 700; }
.drawer-brand-sub { font-size: 8px; letter-spacing: .16em; color: rgba(255, 255, 255, .5); margin-top: 2px; }
.drawer-user { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; margin-top: 17px; padding: 10px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; }
.drawer-user-info { flex: 1; min-width: 0; }
.drawer-user-name { font-size: 12.5px; font-weight: 700; display: flex; align-items: center; gap: 5px; }
.drawer-user-meta { font-size: 9px; color: rgba(255, 255, 255, .55); margin-top: 1px; }
.drawer-user .ic { color: rgba(255, 255, 255, .6); width: 15px; height: 15px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 12px 16px; scrollbar-width: none; }
.drawer-body::-webkit-scrollbar { display: none; }
.drawer-label { font-size: 8.5px; font-weight: 700; letter-spacing: .16em; color: #9aa7bf; padding: 13px 10px 5px; }
.drawer-link { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px; border-radius: 10px; font-size: 12.5px; color: #3e4e6d; }
.drawer-link .ic { width: 17px; height: 17px; color: #7a89a4; }
.drawer-link:hover { background: #f4f7fd; color: var(--navy); }
.drawer-link.active { background: var(--navy); color: #fff; font-weight: 600; }
.drawer-link.active .ic { color: #fff; }
.drawer-link .count { margin-left: auto; font-size: 9px; color: var(--faint); }
.drawer-link .badge { margin-left: auto; min-width: 18px; height: 18px; border-radius: 99px; background: var(--rose); color: #fff; font-size: 9px; font-weight: 700; display: grid; place-items: center; }
.drawer-link .cat-dot { width: 7px; height: 7px; border-radius: 2px; background: var(--tint); margin: 0 5px; }
.drawer-link .lock { margin-left: auto; width: 12px; height: 12px; color: #b3bfd3; }
.drawer-foot { padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: space-between; font-size: 9px; color: var(--faint); }
.drawer-foot a { color: var(--muted); }

/* ---------- FAB ---------- */
.fab-stack { position: fixed; right: 17px; bottom: calc(19px + env(safe-area-inset-bottom)); z-index: 55; display: flex; flex-direction: column; align-items: center; gap: 9px; }
.fab-mini { position: relative; width: 42px; height: 42px; border-radius: 14px; background: #fff; border: 1px solid var(--line); color: var(--text); display: grid; place-items: center; box-shadow: 0 10px 24px -12px rgba(12, 35, 80, .3); }
.fab-mini .ic { width: 18px; height: 18px; }
.fab-mini .dot { position: absolute; top: 8px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--rose); border: 1.5px solid #fff; }
.fab {
  width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center;
  background: linear-gradient(145deg, #1e3a8a, #2d51ad); color: #fff;
  box-shadow: 0 16px 34px -12px rgba(30, 58, 138, .65), inset 0 1px 0 rgba(255, 255, 255, .2);
  transition: transform .2s var(--ease), box-shadow .2s;
}
.fab .ic { width: 22px; height: 22px; }
.fab:hover { transform: translateY(-2px) scale(1.03); }
.fab:active { transform: scale(.96); }

/* ---------- Mobile header ---------- */
.mobile-header { display: none; position: sticky; top: 0; z-index: 60; height: 60px; align-items: center; gap: 8px; padding: 0 15px; background: rgba(255, 255, 255, .88); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(226, 233, 244, .85); }
.mobile-header .brand-mark { width: 33px; height: 33px; border-radius: 10px; box-shadow: none; }
.mobile-brand { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; }
.mobile-brand-name { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.mobile-brand-sub { font-size: 8px; color: var(--faint); letter-spacing: .06em; margin-top: 1px; }
.mobile-header .icon-btn { width: 35px; height: 35px; border-radius: 11px; background: transparent; border-color: transparent; box-shadow: none; }
.mobile-header .icon-btn:hover { background: #f3f6fc; }
.mobile-header .icon-btn .dot { top: 6px; right: 6px; }

/* ---------- Modals / toast ---------- */
.modal-root { position: relative; z-index: 100; }
.modal-scrim { position: fixed; inset: 0; z-index: 100; background: rgba(5, 13, 31, .5); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 20px; animation: fadeIn .2s both; }
.modal { width: min(94vw, 430px); max-height: min(86vh, 720px); overflow: auto; background: #fff; border-radius: 23px; box-shadow: 0 40px 100px rgba(4, 12, 30, .4); animation: popIn .28s var(--ease) both; scrollbar-width: thin; }
.modal.wide { width: min(94vw, 560px); }
.modal-head { display: flex; align-items: flex-start; gap: 10px; padding: 20px 20px 0; }
.modal-title { font-size: 16px; font-weight: 700; color: var(--ink); }
.modal-sub { font-size: 10px; color: var(--faint); margin-top: 2px; line-height: 1.6; }
.modal-close { margin-left: auto; width: 30px; height: 30px; border-radius: 9px; background: #f4f7fc; color: var(--muted); display: grid; place-items: center; flex: none; }
.modal-close .ic { width: 14px; height: 14px; }
.modal-body { padding: 16px 20px 4px; }
.modal-foot { display: flex; gap: 8px; justify-content: flex-end; padding: 14px 20px 19px; }
.modal-foot .btn { min-width: 84px; }
.modal-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--navy-50); color: var(--navy); flex: none; }
.modal-icon.green { background: var(--green-50); color: var(--green-700); }
.modal-icon.amber { background: var(--amber-50); color: #b45309; }
.modal-icon.rose { background: var(--rose-50); color: var(--rose); }
.modal-icon .ic { width: 21px; height: 21px; }
.reason-list { display: grid; gap: 6px; }
.reason-chip { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; font-size: 11.5px; color: var(--text); cursor: pointer; transition: .15s; }
.reason-chip:hover { border-color: #c8d6ee; }
.reason-chip.active { border-color: var(--navy); background: var(--navy-50); color: var(--navy); font-weight: 600; }
.reason-chip .radio { width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid #c6d2e6; flex: none; }
.reason-chip.active .radio { border-color: var(--navy); background: radial-gradient(circle, var(--navy) 0 42%, #fff 46%); }
.modal-textarea { width: 100%; min-height: 78px; margin-top: 9px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; font-size: 11.5px; line-height: 1.7; resize: vertical; background: #fbfcff; }
.share-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; text-align: center; }
.share-item { padding: 12px 4px; border-radius: 12px; border: 1px solid var(--line); font-size: 9.5px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.share-item:hover { background: #f8fafe; color: var(--navy); }
.share-item .ic { width: 19px; height: 19px; color: var(--navy); }
.cover-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.cover-choice { position: relative; height: 70px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; cursor: pointer; }
.cover-choice img { width: 100%; height: 100%; object-fit: cover; }
.cover-choice.active { border-color: var(--green); box-shadow: 0 0 0 3px rgba(34, 197, 94, .15); }
.cover-choice .check { position: absolute; right: 4px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--green); color: #052e16; display: none; place-items: center; }
.cover-choice.active .check { display: grid; }
.cover-choice .check .ic { width: 10px; height: 10px; }
.cover-choice.none { display: flex; align-items: center; justify-content: center; background: #f4f7fc; font-size: 9px; color: var(--muted); border: 1px dashed #c8d6ee; }
.cover-upload { display: flex; align-items: center; justify-content: center; gap: 6px; height: 36px; margin-top: 10px; border: 1px dashed #c8d6ee; border-radius: 9px; background: #f8fafe; font-size: 10px; color: var(--navy); cursor: pointer; }
.cover-upload input { display: none; }
.cover-upload:hover { background: var(--navy-50); border-color: #b9cbef; }
.avatar-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.avatar-choice { display: flex; align-items: center; gap: 5px; height: 32px; padding: 0 8px 0 4px; border-radius: 99px; border: 1px solid var(--line); font-size: 10px; color: var(--text); }
.avatar-choice.active { border-color: var(--navy); background: var(--navy-50); color: var(--navy); font-weight: 600; }

.toast-root { position: fixed; z-index: 120; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 7px; pointer-events: none; width: max-content; max-width: 90vw; }
.toast { display: flex; align-items: center; gap: 8px; padding: 10px 15px; border-radius: 12px; background: rgba(10, 23, 48, .94); color: #fff; font-size: 11.5px; line-height: 1.5; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .5); backdrop-filter: blur(10px); animation: toastIn .3s var(--ease) both; }
.toast .ic { width: 15px; height: 15px; color: #4ade80; flex: none; }
.toast.warn .ic { color: #fbbf24; }
.toast.error .ic { color: #fb7185; }
.toast.hide { animation: toastOut .25s both; }

/* ---------- Auth / login ---------- */
.auth-page { position: relative; z-index: 1; min-height: 100dvh; display: grid; place-items: center; padding: 26px; background: linear-gradient(130deg, #07162f, #0c2350 48%, #1b3c88); overflow: hidden; }
.auth-page::before { content: ''; position: absolute; inset: 0; background: radial-gradient(40% 40% at 80% 10%, rgba(59, 99, 196, .4), transparent 65%), radial-gradient(32% 34% at 18% 92%, rgba(34, 197, 94, .16), transparent 70%), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.26'/%3E%3C/svg%3E"); opacity: .75; }
.auth-card { position: relative; z-index: 2; width: min(920px, 94vw); min-height: 548px; display: grid; grid-template-columns: 1.02fr 1fr; background: #fff; border-radius: 30px; overflow: hidden; box-shadow: 0 50px 120px -40px rgba(2, 8, 22, .8); }
.auth-art { position: relative; padding: 35px 34px; background: linear-gradient(145deg, #0a1f4b, #163775 58%, #24499a); color: #fff; display: flex; flex-direction: column; overflow: hidden; }
.auth-art::before { content: ''; position: absolute; width: 340px; height: 340px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 50%; right: -160px; top: -130px; }
.auth-art::after { content: ''; position: absolute; width: 260px; height: 260px; border: 1px dashed rgba(255, 255, 255, .1); border-radius: 50%; right: -120px; top: -90px; }
.auth-brand { display: flex; align-items: center; gap: 10px; position: relative; z-index: 1; }
.auth-brand .brand-mark { width: 40px; height: 40px; border-radius: 12px; }
.auth-brand-name { font-size: 16px; font-weight: 700; }
.auth-brand-sub { font-size: 8px; color: rgba(255, 255, 255, .45); letter-spacing: .16em; margin-top: 1px; }
.auth-quote { margin-top: auto; position: relative; z-index: 1; }
.auth-quote .display { font-size: 32px; line-height: 1.6; letter-spacing: .06em; }
.auth-quote .display em { font-style: normal; color: #86efac; }
.auth-quote p { font-size: 10px; color: rgba(255, 255, 255, .52); line-height: 1.9; margin-top: 9px; max-width: 290px; }
.auth-points { margin-top: 22px; display: grid; gap: 7px; position: relative; z-index: 1; }
.auth-point { display: flex; align-items: center; gap: 7px; font-size: 10px; color: rgba(255, 255, 255, .66); }
.auth-point .ic { width: 12px; height: 12px; color: #4ade80; }
.auth-foot-note { margin-top: 22px; font-size: 8.5px; color: rgba(255, 255, 255, .3); position: relative; z-index: 1; }
.auth-form { padding: 40px 42px; display: flex; flex-direction: column; justify-content: center; }
.auth-title { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--ink); letter-spacing: .03em; }
.auth-sub { font-size: 10.5px; color: var(--muted); margin-top: 4px; }
.auth-tabs { display: inline-flex; padding: 3px; background: #f4f7fc; border-radius: 10px; margin-top: 18px; align-self: flex-start; }
.auth-tabs button { height: 29px; padding: 0 17px; border-radius: 8px; font-size: 11px; color: var(--muted); }
.auth-tabs button.active { background: #fff; color: var(--navy); font-weight: 700; box-shadow: var(--shadow-xs); }
.demo-login { display: flex; align-items: center; gap: 6px; margin-top: 12px; padding: 7px 8px; background: var(--navy-50); border: 1px solid #dce8fb; border-radius: 10px; }
.demo-login span { font-size: 9px; color: var(--faint); margin-right: 2px; white-space: nowrap; }
.demo-login button { flex: 1; height: 27px; border: 1px solid #d6e2f5; border-radius: 7px; background: #fff; font-size: 9.5px; color: var(--navy); font-weight: 600; }
.demo-login button:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.field { margin-top: 13px; }
.field label { display: block; font-size: 9.5px; font-weight: 700; color: var(--muted); margin-bottom: 5px; letter-spacing: .04em; }
.field-inner { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; background: #fbfcff; transition: .15s; }
.field-inner:focus-within { border-color: #b9cbef; background: #fff; box-shadow: 0 0 0 3px rgba(30, 58, 138, .06); }
.field-inner .ic { width: 15px; height: 15px; color: #9aa7bf; }
.field-inner input { flex: 1; min-width: 0; font-size: 11.5px; }
.field-inner .eye { color: #9aa7bf; display: grid; place-items: center; }
.field-inner .eye .ic { width: 14px; height: 14px; }
.auth-row { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; font-size: 9.5px; color: var(--muted); }
.auth-row label { display: flex; align-items: center; gap: 5px; cursor: pointer; }
.auth-row input[type="checkbox"] { accent-color: var(--navy); width: 12px; height: 12px; }
.auth-row a { color: var(--navy); }
.auth-submit { margin-top: 17px; height: 43px; border-radius: 11px; }
.auth-or { display: flex; align-items: center; gap: 8px; margin-top: 15px; font-size: 8.5px; color: #b3bfd3; }
.auth-or::before, .auth-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.social-row { display: flex; gap: 8px; margin-top: 10px; }
.social-btn { flex: 1; height: 36px; border: 1px solid var(--line); border-radius: 9px; background: #fff; font-size: 9.5px; color: #a3aec4; display: flex; align-items: center; justify-content: center; gap: 5px; cursor: not-allowed; }
.social-btn .ic { width: 13px; height: 13px; }
.auth-bottom { margin-top: 15px; text-align: center; font-size: 9.5px; color: var(--muted); }
.auth-bottom a { color: var(--navy); font-weight: 600; }
.auth-legal { margin-top: 12px; text-align: center; font-size: 8px; color: #b3bfd3; line-height: 1.7; }

/* ---------- Admin ---------- */
body.admin-mode { background: #eef2f8; }
body.admin-mode::before { display: none; }
.admin-shell { display: grid; grid-template-columns: 234px minmax(0, 1fr); min-height: 100vh; }
.admin-side { position: sticky; top: 0; height: 100vh; background: #0a1730; color: #fff; display: flex; flex-direction: column; padding: 18px 14px 12px; overflow-y: auto; scrollbar-width: none; }
.admin-side::-webkit-scrollbar { display: none; }
.admin-brand { display: flex; align-items: center; gap: 10px; padding: 2px 7px 16px; }
.admin-brand .brand-mark { width: 36px; height: 36px; border-radius: 10px; box-shadow: none; }
.admin-brand-name { font-size: 14px; font-weight: 700; letter-spacing: .01em; }
.admin-brand-sub { font-size: 7.5px; color: rgba(255, 255, 255, .38); letter-spacing: .12em; margin-top: 2px; }
.admin-nav-label { font-size: 8px; color: rgba(255, 255, 255, .28); letter-spacing: .16em; padding: 13px 10px 5px; }
.admin-nav-item { display: flex; align-items: center; gap: 9px; height: 35px; padding: 0 10px; border-radius: 8px; font-size: 11.5px; color: rgba(255, 255, 255, .6); transition: .15s; margin-bottom: 1px; }
.admin-nav-item .ic { width: 15px; height: 15px; color: rgba(255, 255, 255, .45); }
.admin-nav-item:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.admin-nav-item.active { background: linear-gradient(90deg, rgba(34, 197, 94, .16), rgba(34, 197, 94, .04)); color: #fff; font-weight: 600; position: relative; }
.admin-nav-item.active::before { content: ''; position: absolute; left: 0; top: 9px; bottom: 9px; width: 2.5px; border-radius: 2px; background: #4ade80; }
.admin-nav-item.active .ic { color: #86efac; }
.admin-nav-badge { margin-left: auto; min-width: 17px; height: 17px; padding: 0 5px; border-radius: 5px; background: rgba(251, 113, 133, .18); color: #fda4af; font-size: 8.5px; display: grid; place-items: center; font-weight: 600; }
.admin-nav-badge.green { background: rgba(34, 197, 94, .15); color: #86efac; }
.admin-side-foot { margin-top: auto; padding: 10px 8px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.admin-user { display: flex; align-items: center; gap: 8px; padding: 7px 2px; }
.admin-user-info { flex: 1; min-width: 0; }
.admin-user-name { font-size: 10.5px; font-weight: 600; }
.admin-user-role { font-size: 8px; color: rgba(255, 255, 255, .38); }
.admin-back { display: flex; align-items: center; gap: 5px; font-size: 9px; color: rgba(255, 255, 255, .38); padding: 4px 2px; }
.admin-back:hover { color: #fff; }
.admin-main { min-width: 0; display: flex; flex-direction: column; }
.admin-top { position: sticky; top: 0; z-index: 30; height: 58px; display: flex; align-items: center; gap: 12px; padding: 0 24px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(14px); border-bottom: 1px solid #e2e8f2; }
.admin-crumb { font-size: 10px; color: #93a1b8; display: flex; align-items: center; gap: 5px; }
.admin-crumb b { color: var(--ink); font-weight: 600; }
.admin-top .spacer { flex: 1; }
.admin-search { width: 210px; height: 31px; display: flex; align-items: center; gap: 6px; padding: 0 10px; background: #f3f6fb; border: 1px solid #e5eaf3; border-radius: 8px; font-size: 10px; color: #93a1b8; }
.admin-search input { flex: 1; font-size: 10.5px; min-width: 0; }
.admin-top-btn { width: 31px; height: 31px; border-radius: 8px; display: grid; place-items: center; color: #64748b; position: relative; }
.admin-top-btn:hover { background: #f3f6fb; }
.admin-top-btn .ic { width: 16px; height: 16px; }
.admin-top-btn .dot { position: absolute; top: 6px; right: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--rose); }
.admin-top-user { display: flex; align-items: center; gap: 6px; padding-left: 10px; border-left: 1px solid #e6ebf3; font-size: 10px; color: #475569; }
.admin-content { padding: 22px 24px 40px; max-width: 1500px; width: 100%; margin: 0 auto; }
.admin-head { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.admin-title { font-size: 21px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.admin-sub { font-size: 10px; color: #7b8aa5; margin-top: 3px; }
.admin-head .spacer { flex: 1; }
.admin-head-actions { display: flex; gap: 6px; align-items: center; }
.admin-banner { display: flex; align-items: center; gap: 7px; padding: 8px 12px; margin-bottom: 15px; border-radius: 9px; background: #fffbeb; border: 1px solid #fde8b5; font-size: 9.5px; color: #92610b; }
.admin-banner .ic { width: 13px; height: 13px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; }
.stat-card { position: relative; overflow: hidden; background: #fff; border: 1px solid #e7ecf5; border-radius: 13px; padding: 14px 15px; }
.stat-card::after { content: ''; position: absolute; width: 64px; height: 64px; border-radius: 50%; right: -28px; top: -30px; background: var(--tint-soft, #f1f5fd); opacity: .8; }
.stat-top { display: flex; align-items: center; gap: 7px; }
.stat-icon { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--tint-soft, #f1f5fd); color: var(--tint, var(--navy)); }
.stat-icon .ic { width: 14px; height: 14px; }
.stat-label { font-size: 9.5px; color: #7b8aa5; }
.stat-value { font-size: 26px; font-weight: 700; color: var(--ink); line-height: 1.2; margin-top: 8px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat-value small { font-size: 9px; font-weight: 400; color: #93a1b8; margin-left: 3px; }
.stat-foot { display: flex; align-items: center; gap: 5px; margin-top: 3px; font-size: 8.5px; color: #93a1b8; }
.stat-delta { display: inline-flex; align-items: center; gap: 2px; font-weight: 600; }
.stat-delta.up { color: var(--green-600); }
.stat-delta.down { color: var(--rose); }
.stat-delta .ic { width: 9px; height: 9px; }

.dash-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 12px; margin-top: 12px; }
.panel { background: #fff; border: 1px solid #e7ecf5; border-radius: 13px; overflow: hidden; }
.panel-head { display: flex; align-items: center; gap: 8px; padding: 13px 15px 10px; }
.panel-title { font-size: 11.5px; font-weight: 700; color: var(--ink); }
.panel-sub { font-size: 8.5px; color: #93a1b8; }
.panel-head .spacer { flex: 1; }
.panel-link { font-size: 9px; color: var(--navy); display: flex; align-items: center; gap: 1px; }
.panel-link .ic { width: 10px; height: 10px; }
.bar-chart { padding: 6px 15px 14px; }
.bar-legend { display: flex; gap: 12px; justify-content: flex-end; font-size: 8px; color: #93a1b8; margin-bottom: 7px; }
.bar-legend span { display: flex; align-items: center; gap: 3px; }
.bar-legend i { width: 6px; height: 6px; border-radius: 2px; background: var(--navy); }
.bar-legend i.light { background: #bfdbfe; }
.bar-area { position: relative; height: 150px; display: flex; align-items: flex-end; gap: 12px; padding: 0 4px; border-bottom: 1px solid #edf1f7; background: repeating-linear-gradient(to top, transparent 0, transparent 36px, #f2f5fa 37px); }
.bar-col { flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 3px; height: 100%; position: relative; }
.bar { width: 12px; border-radius: 3px 3px 0 0; background: var(--navy); height: var(--h); min-height: 4px; position: relative; transition: height .5s var(--ease); }
.bar.light { background: #bfdbfe; }
.bar:hover { opacity: .8; }
.bar-labels { display: flex; gap: 12px; padding: 7px 4px 0; }
.bar-labels span { flex: 1; text-align: center; font-size: 8px; color: #93a1b8; }
.donut-wrap { display: flex; align-items: center; gap: 16px; padding: 8px 16px 18px; }
.donut { width: 112px; height: 112px; border-radius: 50%; position: relative; flex: none; background: conic-gradient(#1e3a8a 0 32%, #6366f1 32% 54%, #22c55e 54% 71%, #f59e0b 71% 83%, #a78bfa 83% 92%, #e2e8f0 92% 100%); }
.donut::after { content: ''; position: absolute; inset: 18px; background: #fff; border-radius: 50%; }
.donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 1; }
.donut-center b { font-size: 18px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.donut-center small { font-size: 7.5px; color: #93a1b8; }
.donut-legend { display: grid; gap: 5px; flex: 1; }
.donut-legend span { display: flex; align-items: center; gap: 5px; font-size: 8.5px; color: #64748b; }
.donut-legend i { width: 6px; height: 6px; border-radius: 2px; }
.donut-legend b { margin-left: auto; color: var(--ink); font-weight: 600; }
.panel-list { padding: 2px 15px 12px; }
.panel-mini-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid #f2f5fa; }
.panel-mini-row:last-child { border-bottom: 0; }
.panel-mini-row .pm-main { flex: 1; min-width: 0; }
.panel-mini-row .pm-title { font-size: 10px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.panel-mini-row .pm-meta { font-size: 8px; color: #93a1b8; margin-top: 1px; }
.panel-mini-row .pm-time { font-size: 8px; color: #b3bfd3; flex: none; }
.panel-mini-row .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--rose); flex: none; }

.table-card { background: #fff; border: 1px solid #e7ecf5; border-radius: 13px; overflow: hidden; margin-top: 12px; }
.table-head { display: flex; align-items: center; gap: 8px; padding: 12px 15px; border-bottom: 1px solid #eef2f8; flex-wrap: wrap; }
.table-title { font-size: 11.5px; font-weight: 700; color: var(--ink); }
.table-head .spacer { flex: 1; }
.table-filters { display: flex; gap: 4px; }
.table-filter { height: 25px; padding: 0 9px; border-radius: 6px; border: 1px solid #e7ecf5; background: #fff; font-size: 9px; color: #64748b; }
.table-filter.active { background: #eef4ff; border-color: #c9d9f6; color: var(--navy); font-weight: 600; }
.table-wrap { overflow-x: auto; }
table.data-table { width: 100%; border-collapse: collapse; min-width: 700px; }
.data-table th { text-align: left; font-size: 8px; font-weight: 600; color: #93a1b8; letter-spacing: .04em; padding: 8px 12px; background: #fbfcfe; border-bottom: 1px solid #eef2f8; white-space: nowrap; }
.data-table td { padding: 10px 12px; border-bottom: 1px solid #f2f5fa; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fbfcff; }
.cell-post { display: flex; align-items: center; gap: 9px; min-width: 230px; }
.cell-thumb { width: 36px; height: 36px; border-radius: 8px; overflow: hidden; flex: none; }
.cell-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cell-title { font-size: 10.5px; font-weight: 600; color: var(--ink); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; max-width: 230px; }
.cell-sub { font-size: 8.5px; color: #93a1b8; margin-top: 1px; display: flex; gap: 5px; align-items: center; }
.cell-sub .flag { color: #b45309; }
.cell-text { font-size: 9.5px; color: #64748b; white-space: nowrap; }
.admin-cat { display: inline-flex; align-items: center; gap: 4px; font-size: 8.5px; color: #64748b; }
.admin-cat i { width: 5px; height: 5px; border-radius: 1.5px; background: var(--tint); }
.admin-pill { display: inline-flex; align-items: center; height: 19px; padding: 0 6px; border-radius: 5px; font-size: 8px; font-weight: 600; background: #f1f5fb; color: #64748b; }
.admin-pill.public { background: #eafaf0; color: #15803d; }
.admin-pill.logged { background: #eef2ff; color: #4f46e5; }
.admin-pill.warn { background: #fff7e6; color: #b45309; }
.admin-pill.danger { background: #fff0f3; color: #be123c; }
.row-actions { display: flex; gap: 4px; }
.row-btn { display: inline-flex; align-items: center; gap: 3px; height: 24px; padding: 0 7px; border-radius: 6px; font-size: 8.5px; border: 1px solid #e7ecf5; background: #fff; color: #64748b; white-space: nowrap; }
.row-btn:hover { border-color: #c9d9f6; color: var(--navy); }
.row-btn.pass { background: #effaf3; border-color: #c8efd7; color: #15803d; }
.row-btn.pass:hover { background: #dcf7e7; }
.row-btn.reject { background: #fff5f7; border-color: #f7d3db; color: #be123c; }
.row-btn.reject:hover { background: #ffe9ee; }
.row-btn .ic { width: 10px; height: 10px; }
.table-foot { display: flex; align-items: center; gap: 8px; padding: 9px 15px; font-size: 8.5px; color: #93a1b8; border-top: 1px solid #eef2f8; }
.table-foot .spacer { flex: 1; }
.pager { display: flex; gap: 3px; }
.pager button { min-width: 23px; height: 23px; padding: 0 6px; border-radius: 5px; border: 1px solid #e7ecf5; background: #fff; font-size: 8.5px; color: #64748b; }
.pager button.active { background: var(--navy); color: #fff; border-color: var(--navy); }

.admin-side-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 12px; margin-top: 12px; }
.sla-ring { display: flex; align-items: center; gap: 14px; padding: 12px 16px 16px; }
.ring-chart { width: 92px; height: 92px; border-radius: 50%; background: conic-gradient(var(--green) 0 78%, #eef2f8 78% 100%); position: relative; flex: none; }
.ring-chart::after { content: ''; position: absolute; inset: 9px; background: #fff; border-radius: 50%; }
.ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 1; }
.ring-center b { font-size: 17px; color: var(--ink); line-height: 1.2; }
.ring-center small { font-size: 7px; color: #93a1b8; }
.sla-info { font-size: 9px; color: #64748b; line-height: 1.8; }
.sla-info b { color: var(--ink); }
.sla-bar { height: 5px; border-radius: 3px; background: #eef2f8; margin-top: 6px; overflow: hidden; }
.sla-bar i { display: block; height: 100%; border-radius: 3px; background: var(--green); }
.keyword-row { display: flex; align-items: center; gap: 7px; padding: 7px 0; border-bottom: 1px solid #f2f5fa; font-size: 9px; }
.keyword-row:last-child { border-bottom: 0; }
.keyword { padding: 2px 7px; border-radius: 4px; background: #fff0f3; color: #be123c; font-size: 8.5px; font-weight: 600; }
.keyword-count { margin-left: auto; color: #93a1b8; font-size: 8px; }
.admin-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.admin-form-grid .full { grid-column: 1 / -1; }
.admin-field { display: flex; flex-direction: column; gap: 5px; }
.admin-field > span { font-size: 9px; color: #64748b; font-weight: 600; }
.admin-field input, .admin-field select, .admin-field textarea {
  width: 100%; border: 1px solid #dce5f2; border-radius: 8px; background: #fbfdff;
  padding: 8px 9px; font-size: 10px; color: var(--ink); font-family: inherit; outline: none;
}
.admin-field input:focus, .admin-field select:focus, .admin-field textarea:focus { border-color: #9db8e8; background: #fff; box-shadow: 0 0 0 3px #eef4ff; }
.admin-field input[readonly] { background: #f4f6fa; color: #93a1b8; }
.admin-field textarea { resize: vertical; line-height: 1.65; }
.admin-check-row { display: flex; align-items: center; gap: 16px; padding-top: 3px; }
.admin-check { display: flex; align-items: center; gap: 5px; font-size: 9px; color: #475569; cursor: pointer; }
.admin-check input { accent-color: var(--navy); }
.admin-bars { display: flex; flex-direction: column; gap: 9px; padding: 4px 2px; }
.admin-bar-row { display: grid; grid-template-columns: 68px 1fr 34px; align-items: center; gap: 8px; font-size: 9px; color: #64748b; }
.admin-bar-row > div { height: 7px; background: #eef3fb; border-radius: 99px; overflow: hidden; }
.admin-bar-row i { display: block; height: 100%; background: linear-gradient(90deg, #1e3a8a, #60a5fa); border-radius: 99px; }
.admin-bar-row b { text-align: right; color: #1e3a8a; font-weight: 700; }
.admin-rank { display: flex; flex-direction: column; gap: 8px; }
.admin-rank > div { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 9px; color: #64748b; }
.admin-rank > div > span:first-child { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; background: #eef4ff; color: #1e3a8a; font-weight: 700; flex: 0 0 auto; }
.admin-rank a, .admin-rank b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 210px; }
.admin-rank a { color: #334155; font-weight: 600; }
.admin-rank b { color: #94a3b8; font-weight: 500; margin-left: auto; }
@media (max-width: 720px) {
  .admin-form-grid { grid-template-columns: 1fr; }
  .admin-form-grid .full { grid-column: auto; }
}
.admin-placeholder { background: #fff; border: 1px solid #e7ecf5; border-radius: 14px; padding: 50px 30px; text-align: center; }
.admin-placeholder .ph-icon { width: 52px; height: 52px; border-radius: 14px; background: #eef4ff; color: var(--navy); display: grid; place-items: center; margin: 0 auto 13px; }
.admin-placeholder .ph-icon .ic { width: 24px; height: 24px; }
.admin-placeholder h2 { font-size: 16px; font-weight: 700; color: var(--ink); }
.admin-placeholder p { font-size: 10px; color: #7b8aa5; max-width: 430px; margin: 5px auto 0; line-height: 1.8; }
.ph-features { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.ph-features span { font-size: 8.5px; color: #64748b; background: #f6f8fc; border: 1px solid #edf1f7; padding: 4px 8px; border-radius: 5px; }
.admin-empty { text-align: center; padding: 34px 20px; }
.admin-empty .ic { width: 28px; height: 28px; color: #c2cbda; margin: 0 auto 7px; display: block; }
.admin-empty h3 { font-size: 11px; color: var(--ink); font-weight: 600; }
.admin-empty p { font-size: 9px; color: #93a1b8; margin-top: 2px; }

/* ---------- Misc ---------- */
.mt-0 { margin-top: 0; }
.hide-desktop { display: none !important; }
.mobile-only { display: none; }
.divider-line { height: 1px; background: var(--line-soft); }
.text-muted { color: var(--muted); }
.text-faint { color: var(--faint); }
.center { text-align: center; }
.anim-rise { animation: rise .5s var(--ease) both; }

@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(6px); } }
@keyframes wave { from { transform: scaleY(.45); } to { transform: scaleY(1); } }
@keyframes heartPop { 0% { transform: scale(1); } 45% { transform: scale(1.32); } 100% { transform: scale(1); } }

/* View entrance */
.view > .hero, .view > .page-head, .view > .search-hero, .view > .profile-card, .view > .article, .view > .compose-card, .view > .notif-card, .view > .msg-shell, .view > .admin-head { animation: rise .45s var(--ease) both; }
.view > .section { animation: rise .5s .04s var(--ease) both; }
.view > .section:nth-of-type(2) { animation-delay: .08s; }
.view > .section:nth-of-type(3) { animation-delay: .12s; }
.view > .section:nth-of-type(4) { animation-delay: .16s; }
.view > .filter-row { animation: rise .4s .05s var(--ease) both; }
.view > .post-list { animation: rise .45s .08s var(--ease) both; }

/* Focus */
:focus-visible { outline: 2px solid rgba(30, 58, 138, .45); outline-offset: 2px; }
button:focus-visible, a:focus-visible { border-radius: 6px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1280px) {
  .shell { grid-template-columns: 238px minmax(0, 1fr) 296px; gap: 22px; padding: 0 22px; }
  .hero-title { font-size: 41px; }
  .latest-card { flex-basis: 274px; }
}

@media (max-width: 1180px) {
  .shell { grid-template-columns: 238px minmax(0, 1fr); max-width: 1060px; }
  .rail { display: none; }
  .mobile-only { display: block; }
  .hero-inner { grid-template-columns: minmax(0, 1fr) 220px; }
  .hero-art { display: block; min-height: 250px; }
}

@media (max-height: 1080px) {
  .side-cta { display: none; }
  .side-version { margin-top: 4px; }
}
@media (max-width: 960px) {
  .shell { display: block; max-width: 780px; padding: 0 18px; }
  .sidebar { display: none; }
  .mobile-header { display: flex; }
  .main { padding-top: 8px; }
  .pagebar { top: 60px; }
  .topbar { display: none; }
  .fab-stack { display: flex; }
  .hero { padding: 26px 24px 0; margin-top: 14px; border-radius: 28px; }
  .hero-title { font-size: 40px; }
  .hero-art { min-height: 230px; }
  .article, .compose-card { border-radius: 24px; }
  .msg-shell { grid-template-columns: 270px minmax(0, 1fr); height: calc(100dvh - 150px); max-height: 680px; }
}

@media (max-width: 760px) {
  body { font-size: 13.5px; }
  .shell { padding: 0 14px; max-width: 620px; }
  .main { padding-bottom: 96px; }
  .cat-scroll { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; overflow: visible; padding-top: 8px; -webkit-mask-image: none; mask-image: none; }
  .mini-post { flex: none; width: auto; min-width: 0; padding: 6px; scroll-snap-align: none; }
  .mini-post:nth-child(n+3) { display: none; }
  .mini-thumb { width: 46px; height: 46px; }
  .mini-title { font-size: 11px; height: 32px; }
  .mini-meta { font-size: 8.5px; gap: 3px; }
  .mini-meta .mini-author, .mini-meta .mini-dot { display: none; }
  .mini-meta .ic { width: 9px; height: 9px; }
  .hero { margin-top: 10px; padding: 22px 20px 0; border-radius: 25px; }
  .hero-inner { display: block; }
  .hero-title { font-size: 37px; margin-top: 12px; }
  .hero-desc { font-size: 11.5px; line-height: 1.75; max-width: 100%; }
  .hero-actions { margin-top: 14px; gap: 8px; }
  .hero-actions .btn { height: 39px; font-size: 11.5px; padding: 0 15px; }
  .hero-art { position: absolute; right: -40px; top: -50px; width: 190px; height: 190px; min-height: 0; z-index: 0; opacity: .9; }
  .hero-art .hero-note, .hero-art .hero-vertical, .hero-art .glow-dot { display: none; }
  .hero-art .r1 { width: 190px; height: 190px; right: -10px; top: 14px; }
  .hero-art .r2 { width: 140px; height: 140px; right: 14px; top: 38px; }
  .hero-art .r3 { width: 92px; height: 92px; right: 38px; top: 62px; }
  .hero-stats { margin-top: 18px; }
  .hero-stat { padding: 12px 0 13px; }
  .hero-stat:nth-child(n+2) { padding-left: 10px; }
  .hero-stat b { font-size: 18px; }
  .hero-stat small { font-size: 8.5px; }
  .section { margin-top: 24px; }
  .section-title { font-size: 21px; }
  .section-sub { font-size: 10px; }
  .latest-card { flex-basis: 252px; border-radius: 19px; }
  .latest-media { height: 142px; }
  .latest-title { font-size: 13.5px; min-height: 40px; }
  .cat-card { padding: 13px 13px 8px; border-radius: 21px; }
  .cat-name { font-size: 14.5px; }
  .cat-sub { font-size: 9.5px; max-width: 220px; }
  .cat-icon { width: 38px; height: 38px; border-radius: 12px; }
  .mini-post { flex-basis: 205px; }
  .entry-grid { gap: 8px; }
  .entry-card { min-height: 104px; padding: 12px; border-radius: 17px; }
  .entry-title { font-size: 12.5px; margin-top: 9px; }
  .entry-sub { font-size: 8.5px; }
  .entry-icon { width: 30px; height: 30px; border-radius: 9px; }
  .aux-grid { grid-template-columns: 1fr; gap: 8px; }
  .site-foot { flex-direction: column; gap: 6px; }
  .page-head { padding: 19px 18px; border-radius: 22px; }
  .page-head-icon { width: 44px; height: 44px; border-radius: 13px; }
  .page-head-title { font-size: 24px; }
  .page-head-desc { font-size: 10.5px; }
  .page-head-actions .btn { height: 34px; font-size: 10.5px; padding: 0 11px; }
  .page-stats { gap: 16px; margin-top: 14px; padding-top: 12px; }
  .post-row { padding: 14px 13px; gap: 11px; }
  .post-thumb { width: 74px; height: 74px; border-radius: 13px; }
  .post-title { font-size: 13.5px; -webkit-line-clamp: 2; }
  .post-excerpt { -webkit-line-clamp: 2; font-size: 9.5px; }
  .post-stats { display: none; }
  .article { padding: 20px 18px 16px; border-radius: 22px; }
  .article-title { font-size: 25px; line-height: 1.45; margin-top: 10px; }
  .article-lead { font-size: 11.5px; }
  .article-cover { height: 210px; border-radius: 15px; }
  .article-gallery div { height: 120px; }
  .article-body p { font-size: 13.5px; line-height: 1.95; }
  .article-body h2 { font-size: 18px; margin-top: 22px; }
  .article-body ul li { font-size: 12.5px; }
  .article-body blockquote { font-size: 12.5px; padding: 11px 13px; }
  .action-bar { gap: 2px; }
  .action-btn { padding: 0 9px; font-size: 10.5px; }
  .comments-card { padding: 16px 15px; border-radius: 20px; }
  .comment-text { font-size: 11.5px; }
  .related-list { grid-template-columns: 1fr 1fr 1fr; gap: 7px; }
  .related-card .related-media { height: 64px; }
  .related-card .related-title { font-size: 9.5px; }
  .compose-card { padding: 17px 16px 14px; border-radius: 22px; }
  .compose-title-input { font-size: 21px; }
  .compose-body-input { min-height: 200px; font-size: 13px; }
  .vis-option { padding: 10px; gap: 8px; }
  .vis-icon { width: 27px; height: 27px; }
  .vis-desc { font-size: 8.5px; }
  .vis-badge { display: none; }
  .compose-foot { flex-wrap: wrap; }
  .compose-foot .compose-note { flex-basis: 100%; }
  .compose-foot .btn { width: 100%; min-width: 0; }
  .profile-banner { height: 108px; }
  .profile-banner .banner-quote { font-size: 13px; top: 21px; left: 19px; }
  .profile-avatar-wrap { margin-top: -32px; }
  .profile-avatar { width: 70px; height: 70px; font-size: 24px; border-radius: 19px; border-width: 3px; }
  .profile-head { padding: 0 17px 16px; }
  .profile-name { font-size: 21px; }
  .profile-stats { gap: 18px; }
  .quick-grid { grid-template-columns: repeat(3, 1fr); gap: 7px; }
  .quick-item { padding: 11px 4px; }
  .msg-shell { display: block; height: auto; min-height: 0; border-radius: 20px; }
  .msg-list { border-right: 0; }
  .msg-shell.has-chat .msg-list { display: none; }
  .msg-shell:not(.has-chat) .chat-pane { display: none; }
  .msg-shell.has-chat .chat-pane { display: flex; height: calc(100dvh - 190px); min-height: 460px; }
  .msg-mobile-head { display: flex; }
  .chat-head .back-btn { display: inline-grid; }
  .search-hero { padding: 20px 18px 19px; border-radius: 22px; }
  .search-hero h1 { font-size: 22px; }
  .search-big { height: 45px; margin-top: 13px; }
  .search-big .btn { height: 33px; padding: 0 12px; font-size: 10.5px; }
  .result-row { padding: 13px 13px; gap: 10px; }
  .result-title { font-size: 12px; }
  .notif-row { padding: 13px 13px; gap: 9px; }
  .notif-icon { width: 32px; height: 32px; border-radius: 9px; }
  .notif-title { font-size: 11px; }
  .notif-desc { font-size: 9.5px; }
  .guide-hero { padding: 22px 19px; border-radius: 22px; }
  .guide-hero h1 { font-size: 23px; }
  .guide-item { padding: 14px; }
  .auth-page { padding: 14px; }
  .auth-card { grid-template-columns: 1fr; width: min(440px, 96vw); min-height: 0; border-radius: 24px; }
  .auth-art { padding: 22px 22px 18px; min-height: 190px; }
  .auth-quote { margin-top: 22px; }
  .auth-quote .display { font-size: 25px; }
  .auth-quote p { font-size: 9px; }
  .auth-points, .auth-foot-note { display: none; }
  .auth-form { padding: 24px 22px 26px; }
  .auth-title { font-size: 22px; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { display: none; }
  .admin-content { padding: 16px; }
  .admin-top { padding: 0 14px; height: 52px; }
  .admin-search { display: none; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .dash-grid, .admin-side-grid { grid-template-columns: 1fr; }
  .admin-title { font-size: 18px; }
  .admin-mobile-note { display: flex !important; }
  .admin-top-user span { display: none; }
}

@media (max-width: 420px) {
  .hero-title { font-size: 33px; }
  .hero-stats { grid-template-columns: repeat(4, 1fr); }
  .hero-stat b { font-size: 16px; }
  .hero-stat small { font-size: 8px; }
  .section-title { font-size: 20px; }
  .latest-card { flex-basis: 236px; }
  .hero { padding: 20px 17px 0; }
  .entry-grid { grid-template-columns: repeat(3, 1fr); }
  .entry-card { padding: 10px; min-height: 98px; }
  .entry-title { font-size: 11.5px; }
  .entry-sub { font-size: 8px; }
  .post-thumb { width: 66px; height: 66px; }
  .post-title { font-size: 12.5px; }
  .article-title { font-size: 22px; }
  .related-list { grid-template-columns: 1fr 1fr; }
  .site-foot { font-size: 8.5px; }
}

@media (min-width: 961px) {
  .mobile-header { display: none !important; }
  .fab-stack { display: none !important; }
  .mobile-only { display: none !important; }
}

/* Admin responsive */
@media (max-width: 1240px) {
  .admin-shell { grid-template-columns: 76px minmax(0, 1fr); }
  .admin-side { padding: 16px 10px; }
  .admin-brand { padding: 2px 8px 14px; justify-content: center; }
  .admin-brand-text, .admin-nav-label, .admin-nav-item span, .admin-nav-badge, .admin-user-info, .admin-back span { display: none; }
  .admin-nav-item { justify-content: center; padding: 0; height: 38px; }
  .admin-nav-item .ic { width: 17px; height: 17px; }
  .admin-user { justify-content: center; }
  .admin-back { justify-content: center; }
}
@media (max-width: 900px) {
  .admin-shell { display: block; }
  .admin-mobile-note { display: flex !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
