:root {
  --bg: #08090b;
  --bg-2: #0f1114;
  --card: rgba(255, 255, 255, 0.032);
  --card-2: rgba(255, 255, 255, 0.055);
  --card-3: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.075);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #eceef1;
  --muted: #8e939d;
  --dim: #5c616b;
  --accent: #d7ff42;
  --accent-ink: #11140a;
  --danger: #ff6b6b;
  --ok: #63e6a4;
  --warn: #ffc14d;
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --r: 18px;
  --r-sm: 11px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --chrome: linear-gradient(172deg, #ffffff 0%, #dfe2e7 24%, #8b919b 46%, #f6f7f9 60%, #a5aab3 78%, #e9ebee 100%);
}

* { box-sizing: border-box; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font: 15px/1.6 var(--sans); letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
.mono { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.02em; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }

/* ---------- background ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.orb-a { width: 60vmax; height: 60vmax; top: -30vmax; right: -18vmax; background: radial-gradient(circle, #3a3f4a 0%, transparent 65%); animation: drift 26s ease-in-out infinite alternate; }
.orb-b { width: 45vmax; height: 45vmax; bottom: -25vmax; left: -15vmax; background: radial-gradient(circle, #232a1a 0%, transparent 65%); opacity: .55; animation: drift 32s ease-in-out infinite alternate-reverse; }
.grain { position: absolute; inset: -50%; opacity: .07; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
@keyframes drift { to { transform: translate(-6vmax, 5vmax) scale(1.08); } }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 44px);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: linear-gradient(to bottom, rgba(8, 9, 11, .82), rgba(8, 9, 11, .45));
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.topbar.scrolled { border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; font-weight: 600; font-size: 1.02rem; letter-spacing: -0.02em; }
.brand-mark { width: 22px; height: 22px; border-radius: 7px; background: var(--chrome); box-shadow: inset 0 0 0 1px rgba(255,255,255,.4), 0 2px 12px rgba(255,255,255,.08); position: relative; }
.brand-mark::after { content: ''; position: absolute; inset: 6px; border-radius: 50%; border: 2px solid rgba(10,12,15,.75); }
.brand-8 { color: var(--muted); font-weight: 500; }
.nav { display: flex; gap: 6px; align-items: center; }
.nav a { padding: 8px 15px; border-radius: 999px; color: var(--muted); font-size: .92rem; font-weight: 500; transition: color .2s, background .2s; }
.nav a:hover { color: var(--text); background: var(--card-2); }
.nav a.active { color: var(--text); background: var(--card-3); }
.nav .nav-staff { border: 1px solid var(--line-2); display: inline-flex; align-items: center; gap: 7px; }
.nav .nav-staff .live { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }

main { flex: 1; width: 100%; }
.wrap { width: min(1120px, 100% - clamp(36px, 8vw, 88px)); margin: 0 auto; }

.foot { display: flex; justify-content: space-between; gap: 12px; padding: 28px clamp(18px, 4vw, 44px); color: var(--dim); font-size: .85rem; border-top: 1px solid var(--line); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); animation: rise .8s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 90ms + 60ms); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- home ---------- */
.hero { position: relative; min-height: calc(100vh - 160px); display: flex; flex-direction: column; justify-content: center; padding: 60px 0 80px; }
.hero-ring {
  position: absolute; right: -8%; top: 50%; width: min(620px, 70vw); aspect-ratio: 1; translate: 0 -50%;
  border-radius: 50%; z-index: -1; opacity: .55;
  background: conic-gradient(from 0deg, #ffffff10, #c9ced6aa, #ffffff08, #8c929c66, #ffffff10, #e7e9eccc, #ffffff10);
  -webkit-mask: radial-gradient(circle, transparent 54%, #000 55%, #000 62%, transparent 63%);
          mask: radial-gradient(circle, transparent 54%, #000 55%, #000 62%, transparent 63%);
  animation: spin 40s linear infinite; filter: blur(.4px);
}
.hero-ring::after { content: ''; position: absolute; inset: 22%; border-radius: 50%; border: 1px dashed rgba(255,255,255,.08); }
@keyframes spin { to { transform: rotate(360deg); } }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 .78rem var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin: 0 0 26px; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(215,255,66,.6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(215,255,66,0); } 100% { box-shadow: 0 0 0 0 rgba(215,255,66,0); } }
.hero-title { font: 400 clamp(64px, 11.5vw, 168px)/.9 var(--serif); letter-spacing: -0.035em; margin: 0; max-width: 11ch; }
.chrome { font-style: italic; background: var(--chrome); background-size: 100% 220%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 7s ease-in-out infinite alternate; padding-right: .04em; margin-right: -.06em; }
@keyframes sheen { from { background-position: 0 0; } to { background-position: 0 100%; } }
.hero-text { font-size: clamp(1.1rem, 2vw, 1.42rem); line-height: 1.5; color: #b9bdc5; max-width: 34ch; margin: 30px 0 38px; font-weight: 350; }
.hero-links { display: flex; flex-wrap: wrap; gap: 12px; }
.pill {
  display: inline-flex; align-items: center; gap: 11px; padding: 13px 22px 13px 16px; border-radius: 999px;
  background: var(--card-2); border: 1px solid var(--line-2); font-weight: 500;
  transition: transform .25s var(--ease), background .25s, border-color .25s;
}
.pill:hover { transform: translateY(-2px); background: var(--card-3); border-color: rgba(255,255,255,.26); }
.pill .ico { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); }
.pill.primary { background: var(--chrome); color: #0b0c0e; border-color: transparent; box-shadow: 0 8px 30px rgba(255,255,255,.08); }
.pill.primary .ico { background: rgba(0,0,0,.1); }
.pill .arrow { opacity: .5; margin-left: -2px; transition: transform .25s var(--ease), opacity .25s; }
.pill:hover .arrow { transform: translate(2px, -2px); opacity: 1; }
.now {
  margin-top: 64px; display: inline-flex; align-items: center; gap: 14px; align-self: flex-start;
  padding: 10px 14px 10px 10px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.02);
  transition: border-color .2s, background .2s;
}
.now:hover { border-color: var(--line-2); background: var(--card); }
.now-label { font: 500 .7rem var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--accent-ink); background: var(--accent); padding: 5px 9px; border-radius: 8px; }
.now-title { font-weight: 500; }

/* ---------- page headers ---------- */
.page { padding: 56px 0 100px; }
.page-head { margin-bottom: 52px; }
.page-title { font: 400 clamp(52px, 8vw, 104px)/.95 var(--serif); letter-spacing: -0.03em; margin: 0; }
.page-sub { color: var(--muted); margin: 14px 0 0; font-size: 1.05rem; max-width: 52ch; }
.section-head { display: flex; align-items: center; gap: 14px; margin: 56px 0 22px; }
.section-head:first-child { margin-top: 0; }
.section-head h2 { margin: 0; font: 500 .8rem var(--mono); text-transform: uppercase; letter-spacing: .16em; color: var(--text); white-space: nowrap; display: flex; align-items: center; gap: 10px; }
.section-head .rule { flex: 1; height: 1px; background: linear-gradient(to right, var(--line-2), transparent); }
.section-head .count { color: var(--dim); }

/* ---------- project cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.pcard {
  position: relative; display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden;
  background: var(--card); border: 1px solid var(--line); transition: transform .35s var(--ease), border-color .3s, background .3s;
}
.pcard:hover { transform: translateY(-4px); border-color: var(--line-2); background: var(--card-2); }
.pcard-cover { aspect-ratio: 16/9; position: relative; overflow: hidden; background: var(--bg-2); }
.pcard-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.pcard:hover .pcard-cover img { transform: scale(1.04); }
.gen-cover { position: absolute; inset: 0; background:
  radial-gradient(120% 90% at 85% 10%, color-mix(in oklab, var(--a, #9aa1ab) 55%, transparent), transparent 60%),
  radial-gradient(90% 80% at 0% 100%, color-mix(in oklab, var(--a, #9aa1ab) 25%, transparent), transparent 70%),
  linear-gradient(160deg, #15171b, #0c0d10); }
.gen-cover .initial { position: absolute; left: 22px; bottom: 6px; font: italic 400 96px/1 var(--serif); color: rgba(255,255,255,.88); letter-spacing: -0.04em; text-shadow: 0 6px 40px rgba(0,0,0,.4); }
.gen-cover::after { content: ''; position: absolute; inset: 0; background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 28px); }
.pcard-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pcard-title { font-size: 1.18rem; font-weight: 600; letter-spacing: -0.02em; margin: 0; }
.pcard-sum { color: var(--muted); margin: 0; font-size: .93rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-meta { margin-top: auto; padding-top: 10px; display: flex; gap: 14px; color: var(--dim); font: .74rem var(--mono); letter-spacing: .02em; }
.badge { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 999px; font: 500 .7rem var(--mono); letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--line-2); background: rgba(8,9,11,.6); backdrop-filter: blur(8px); }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.current { color: var(--accent); }
.badge.finished { color: #c8ccd4; }
.badge.hidden { color: var(--warn); }
.pcard .badge { position: absolute; top: 14px; left: 14px; }
.empty { border: 1px dashed var(--line-2); border-radius: var(--r); padding: 38px; text-align: center; color: var(--muted); }

/* ---------- project page ---------- */
.back { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .9rem; margin-bottom: 30px; transition: color .2s, gap .2s; }
.back:hover { color: var(--text); gap: 11px; }
.proj-hero { border-radius: 26px; overflow: hidden; position: relative; aspect-ratio: 21/8; min-height: 220px; border: 1px solid var(--line); background: var(--bg-2); }
.proj-hero img { width: 100%; height: 100%; object-fit: cover; }
.proj-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,9,11,.85), transparent 60%); }
.proj-hero .gen-cover .initial { display: none; }
.proj-head { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; margin: -90px 0 0; padding: 0 32px; position: relative; z-index: 2; }
.proj-title { font: 400 clamp(46px, 7vw, 88px)/.95 var(--serif); letter-spacing: -0.03em; margin: 10px 0 0; }
.proj-summary { color: #b9bdc5; font-size: 1.1rem; max-width: 62ch; margin: 30px 0 0; padding: 0 32px; white-space: pre-wrap; }
.proj-links { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 32px; margin-top: 22px; }
.proj-links .pill { padding: 9px 16px 9px 11px; font-size: .9rem; }
.proj-links .pill .ico { width: 24px; height: 24px; }

.timeline { margin-top: 18px; position: relative; padding-left: 30px; }
.timeline::before { content: ''; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(to bottom, var(--line-2), transparent); }
.post { position: relative; margin-bottom: 22px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.post::before { content: ''; position: absolute; left: -29px; top: 22px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--muted); }
.post:first-child::before { border-color: var(--accent); box-shadow: 0 0 12px rgba(215,255,66,.5); }
.post-inner { padding: 20px 22px; }
.post-meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; color: var(--dim); font: .74rem var(--mono); letter-spacing: .03em; }
.post-title { margin: 8px 0 0; font-size: 1.22rem; font-weight: 600; letter-spacing: -0.02em; }
.post-body { margin: 10px 0 0; color: #c4c8cf; white-space: pre-wrap; overflow-wrap: anywhere; }
.post-body a, .prose a { color: var(--text); text-decoration: underline; text-decoration-color: var(--dim); text-underline-offset: 3px; }
.post-media { background: #000; border-top: 1px solid var(--line); }
.post-media video, .post-media img { width: 100%; max-height: 72vh; object-fit: contain; margin: 0 auto; }
.post-media audio { width: calc(100% - 44px); margin: 18px 22px; }
.post-media.audio { background: transparent; }
.embed { position: relative; aspect-ratio: 16/9; border-top: 1px solid var(--line); }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed.spotify { aspect-ratio: auto; height: 152px; padding: 12px; }
.embed.spotify iframe { position: static; height: 152px; border-radius: 12px; }
.linkcard { display: flex; align-items: center; gap: 12px; margin: 0 22px 20px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.02); color: var(--muted); font-size: .9rem; transition: border-color .2s, color .2s; overflow: hidden; }
.linkcard:hover { border-color: var(--line-2); color: var(--text); }
.linkcard span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- forms & buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card-2); font-weight: 500; font-size: .9rem; cursor: pointer; transition: background .2s, border-color .2s, transform .15s, opacity .2s; white-space: nowrap; }
.btn:hover { background: var(--card-3); border-color: rgba(255,255,255,.24); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--chrome); color: #0b0c0e; border-color: transparent; }
.btn.primary:hover { filter: brightness(1.06); }
.btn.accent { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--text); background: var(--card-2); }
.btn.danger { color: var(--danger); border-color: rgba(255,107,107,.3); background: rgba(255,107,107,.06); }
.btn.danger:hover { background: rgba(255,107,107,.12); border-color: rgba(255,107,107,.5); }
.btn.sm { padding: 6px 11px; font-size: .82rem; border-radius: 9px; }
.btn svg { flex-shrink: 0; }

.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { font-size: .8rem; font-weight: 500; color: var(--muted); }
.field small { color: var(--dim); font-size: .78rem; }
.input, .textarea, .select {
  width: 100%; padding: 11px 13px; border-radius: var(--r-sm); background: rgba(0,0,0,.35);
  border: 1px solid var(--line-2); outline: none; transition: border-color .2s, box-shadow .2s, background .2s;
}
.input:focus, .textarea:focus, .select:focus { border-color: rgba(215,255,66,.6); box-shadow: 0 0 0 4px rgba(215,255,66,.1); background: rgba(0,0,0,.5); }
.textarea { min-height: 110px; resize: vertical; line-height: 1.55; }
.select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%238e939d' stroke-width='1.6'><path d='M3 4.5 6 7.5 9 4.5'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
input[type=color] { width: 46px; height: 42px; padding: 4px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(0,0,0,.35); cursor: pointer; }
.row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.actions.end { justify-content: flex-end; }
.check { display: flex; gap: 11px; align-items: flex-start; padding: 11px 13px; border-radius: 11px; border: 1px solid var(--line); background: rgba(255,255,255,.015); cursor: pointer; transition: border-color .2s, background .2s; }
.check:hover { border-color: var(--line-2); }
.check input { margin: 3px 0 0; accent-color: var(--accent); width: 16px; height: 16px; flex-shrink: 0; }
.check b { font-weight: 500; font-size: .9rem; display: block; }
.check small { color: var(--dim); font-size: .78rem; }
.check.disabled { opacity: .45; cursor: not-allowed; }
.check-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: rgba(0,0,0,.35); border: 1px solid var(--line-2); gap: 2px; }
.seg button { border: 0; background: transparent; padding: 7px 13px; border-radius: 9px; cursor: pointer; color: var(--muted); font-size: .85rem; font-weight: 500; }
.seg button.on { background: var(--card-3); color: var(--text); }

.drop { border: 1.5px dashed var(--line-2); border-radius: 14px; padding: 22px; text-align: center; color: var(--muted); cursor: pointer; transition: border-color .2s, background .2s; position: relative; }
.drop:hover, .drop.over { border-color: var(--accent); background: rgba(215,255,66,.04); color: var(--text); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop .preview { margin-top: 12px; display: flex; justify-content: center; }
.drop .preview img, .drop .preview video { max-height: 200px; border-radius: 10px; }
.progress { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; margin-top: 12px; display: none; }
.progress.on { display: block; }
.progress i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .15s; }

/* ---------- staff: login ---------- */
.login-wrap { min-height: calc(100vh - 170px); display: grid; place-items: center; padding: 40px 0; }
.login { width: min(410px, 100%); padding: 38px 34px 32px; border-radius: 26px; border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); box-shadow: 0 30px 80px rgba(0,0,0,.45); position: relative; overflow: hidden; }
.login::before { content: ''; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent); }
.login .lock { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: var(--chrome); color: #0b0c0e; margin-bottom: 22px; }
.login h1 { font: 400 2.6rem/1 var(--serif); margin: 0 0 8px; letter-spacing: -0.02em; }
.login p { color: var(--muted); margin: 0 0 26px; font-size: .93rem; }
.login .btn { width: 100%; padding: 13px; margin-top: 8px; }
.form-error { color: var(--danger); font-size: .86rem; min-height: 1.2em; margin: 2px 0 0; }

/* ---------- staff: dashboard ---------- */
.dash { display: grid; grid-template-columns: 236px 1fr; gap: 32px; padding: 36px 0 90px; align-items: start; }
.side { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 4px; }
.me-chip { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); margin-bottom: 16px; }
.avatar { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-weight: 600; font-size: .95rem; background: var(--chrome); color: #0b0c0e; flex-shrink: 0; }
.avatar.lg { width: 56px; height: 56px; border-radius: 17px; font-size: 1.3rem; }
.me-chip b { display: block; font-size: .92rem; font-weight: 600; line-height: 1.25; }
.me-chip small { color: var(--dim); font: .72rem var(--mono); }
.tab { display: flex; gap: 11px; align-items: center; padding: 10px 12px; border-radius: 11px; color: var(--muted); font-size: .92rem; font-weight: 500; transition: background .2s, color .2s; }
.tab:hover { background: var(--card-2); color: var(--text); }
.tab.on { background: var(--card-3); color: var(--text); }
.tab.on svg { color: var(--accent); }
.side hr { border: 0; border-top: 1px solid var(--line); margin: 12px 0; width: 100%; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.panel-head h1 { font: 400 clamp(40px, 5vw, 56px)/1 var(--serif); margin: 0; letter-spacing: -0.025em; }
.panel-head p { margin: 8px 0 0; color: var(--muted); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; margin-bottom: 18px; }
.card > h3 { margin: 0 0 4px; font-size: 1.02rem; font-weight: 600; letter-spacing: -0.01em; display: flex; align-items: center; gap: 9px; }
.card > h3 + p { margin: 0 0 18px; color: var(--muted); font-size: .88rem; }
.card.danger-zone { border-color: rgba(255,107,107,.22); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { padding: 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.stat b { display: block; font: 400 2.6rem/1 var(--serif); letter-spacing: -0.02em; }
.stat span { color: var(--muted); font-size: .8rem; }
.quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 18px; }
.quick a { display: flex; gap: 12px; align-items: center; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); transition: border-color .2s, background .2s, transform .25s var(--ease); }
.quick a:hover { border-color: var(--line-2); background: var(--card-2); transform: translateY(-2px); }
.quick .qi { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: rgba(215,255,66,.1); color: var(--accent); }
.quick b { font-weight: 500; font-size: .92rem; }

.table-wrap { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th { text-align: left; font: 500 .7rem var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--dim); padding: 13px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tr.click { cursor: pointer; transition: background .15s; }
tr.click:hover { background: var(--card-2); }
.who { display: flex; align-items: center; gap: 11px; }
.who .avatar { width: 32px; height: 32px; border-radius: 10px; font-size: .82rem; }
.who b { font-weight: 500; display: block; line-height: 1.2; }
.who small { color: var(--dim); font: .74rem var(--mono); }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: .74rem; font-weight: 500; border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; }
.tag.ok { color: var(--ok); border-color: rgba(99,230,164,.3); background: rgba(99,230,164,.06); }
.tag.bad { color: var(--danger); border-color: rgba(255,107,107,.3); background: rgba(255,107,107,.06); }
.tag.owner { color: var(--accent); border-color: rgba(215,255,66,.35); background: rgba(215,255,66,.06); }
.tag.warn { color: var(--warn); border-color: rgba(255,193,77,.3); }

.plist { display: flex; flex-direction: column; gap: 10px; }
.plist a { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center; padding: 10px; padding-right: 18px; border-radius: 15px; border: 1px solid var(--line); background: var(--card); transition: border-color .2s, background .2s; }
.plist a:hover { border-color: var(--line-2); background: var(--card-2); }
.plist .thumb { width: 64px; aspect-ratio: 1; border-radius: 11px; overflow: hidden; position: relative; background: var(--bg-2); }
.plist .thumb img { width: 100%; height: 100%; object-fit: cover; }
.plist .thumb .gen-cover .initial { font-size: 40px; left: 10px; bottom: 2px; }
.plist b { font-weight: 600; }
.plist small { display: block; color: var(--dim); font: .74rem var(--mono); }

.mini-post { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.mini-post:last-child { border-bottom: 0; padding-bottom: 0; }
.mini-post:first-child { padding-top: 0; }
.mini-post b { font-weight: 500; }
.mini-post p { margin: 3px 0 0; color: var(--muted); font-size: .86rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-post .post-meta { margin-top: 6px; }

.links-ed { display: flex; flex-direction: column; gap: 8px; }
.link-row { display: grid; grid-template-columns: 150px 1fr auto auto auto; gap: 8px; align-items: center; }
.link-row .btn { padding: 9px; }

.user-head { display: flex; gap: 16px; align-items: center; }
.user-head h1 { font-size: clamp(36px, 4.5vw, 50px) !important; }

dialog { border: 1px solid var(--line-2); border-radius: 22px; background: #121418; color: var(--text); padding: 0; width: min(560px, calc(100% - 32px)); box-shadow: 0 40px 120px rgba(0,0,0,.6); }
dialog::backdrop { background: rgba(4,5,7,.7); backdrop-filter: blur(6px); }
dialog .dlg { padding: 26px; }
dialog h2 { font: 400 2rem/1.1 var(--serif); margin: 0 0 18px; }

#toasts { position: fixed; bottom: 22px; left: 50%; translate: -50% 0; display: flex; flex-direction: column; gap: 8px; z-index: 100; align-items: center; pointer-events: none; }
.toast { padding: 11px 18px; border-radius: 12px; background: #1b1e23; border: 1px solid var(--line-2); box-shadow: 0 14px 40px rgba(0,0,0,.5); font-size: .9rem; display: flex; gap: 10px; align-items: center; animation: toast .35s var(--ease); }
.toast.err { border-color: rgba(255,107,107,.45); }
.toast .d { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.toast.err .d { background: var(--danger); }
@keyframes toast { from { opacity: 0; transform: translateY(10px) scale(.97); } }

.loading { display: grid; place-items: center; min-height: 50vh; }
.spinner { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--text); animation: spin .8s linear infinite; }
.notice { padding: 13px 16px; border-radius: 12px; border: 1px solid rgba(255,193,77,.3); background: rgba(255,193,77,.06); color: #ffd98a; font-size: .88rem; margin-bottom: 18px; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .dash { grid-template-columns: 1fr; gap: 20px; padding-top: 20px; }
  .side { position: static; flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; scrollbar-width: none; }
  .side .me-chip, .side hr { display: none; }
  .tab { white-space: nowrap; flex-shrink: 0; }
  .proj-head { grid-template-columns: 1fr; padding: 0 18px; margin-top: -70px; }
  .proj-summary, .proj-links { padding: 0 18px; }
  .link-row { grid-template-columns: 1fr 1fr auto; }
  .link-row .mv { display: none; }
  .hero-ring { right: -40%; opacity: .3; }
}
@media (max-width: 520px) {
  .nav a { padding: 7px 11px; }
  .timeline { padding-left: 0; }
  .timeline::before, .post::before { display: none; }
  .foot { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
