:root {
  --bg: #0c0d10; --panel: #15171b; --panel-2: #1c1f24; --line: #282c33;
  --text: #e9ebee; --muted: #8b929c; --accent: #f06000; --accent-soft: #f0600018;
  --radius: 14px; --max: 620px;
}
@media (prefers-color-scheme: light) {
  :root { --bg: #f6f7f9; --panel: #fff; --panel-2: #f2f4f7; --line: #e3e6ea;
          --text: #14161a; --muted: #5c636e; --accent-soft: #f0600012; }
}
:root[data-theme="dark"] {
  --bg: #0c0d10; --panel: #15171b; --panel-2: #1c1f24; --line: #282c33;
  --text: #e9ebee; --muted: #8b929c; --accent-soft: #f0600018;
}
:root[data-theme="light"] {
  --bg: #f6f7f9; --panel: #fff; --panel-2: #f2f4f7; --line: #e3e6ea;
  --text: #14161a; --muted: #5c636e; --accent-soft: #f0600012;
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px 80px; }

header.site {
  padding: 34px 0 20px; text-align: center; border-bottom: 1px solid var(--line); margin-bottom: 22px;
}
header.site h1 { margin: 0; font-size: 30px; letter-spacing: -0.02em; }
header.site h1 span { color: var(--accent); }
header.site p { margin: 7px 0 0; color: var(--muted); font-size: 15px; }
header.site .links { margin-top: 13px; display: flex; gap: 14px; justify-content: center; font-size: 14px; }
header.site .links a { color: var(--muted); text-decoration: none; }
header.site .links a:hover { color: var(--accent); }

/* composer */
.composer {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; margin-bottom: 24px;
}
.composer textarea {
  width: 100%; border: 0; background: transparent; color: var(--text);
  font: inherit; resize: vertical; min-height: 76px; outline: none;
}
.composer textarea::placeholder { color: var(--muted); }
.composer .row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.composer .spacer { flex: 1; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.thumbs figure { position: relative; margin: 0; }
.thumbs img { width: 74px; height: 74px; object-fit: cover; border-radius: 9px; display: block; }
.thumbs button {
  position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%;
  border: 0; background: #000c; color: #fff; cursor: pointer; font-size: 13px; line-height: 1;
}

.btn {
  border: 0; background: var(--accent); color: #fff; font: inherit; font-weight: 600;
  padding: 9px 18px; border-radius: 999px; cursor: pointer; font-size: 15px;
}
.btn:disabled { opacity: .45; cursor: default; }
.btn.ghost { background: var(--panel-2); color: var(--text); border: 1px solid var(--line); }
.icon-btn {
  border: 1px solid var(--line); background: var(--panel-2); color: var(--muted);
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer; font-size: 17px;
}
.icon-btn:hover { color: var(--accent); border-color: var(--accent); }

/* posts */
.post {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; margin-bottom: 16px;
}
.post .body { white-space: pre-wrap; word-break: break-word; }
.post .body a { color: var(--accent); }
.post img {
  width: 100%; border-radius: 10px; margin-top: 12px; display: block; background: var(--panel-2);
}
.post .grid { display: grid; gap: 8px; margin-top: 12px; }
.post .grid.n2 { grid-template-columns: 1fr 1fr; }
.post .grid.n3, .post .grid.n4 { grid-template-columns: 1fr 1fr; }
.post .grid img { margin-top: 0; aspect-ratio: 1; object-fit: cover; }
.post footer {
  margin-top: 12px; display: flex; align-items: center; gap: 12px;
  font-size: 13px; color: var(--muted);
}
.post footer a { color: var(--muted); text-decoration: none; }
.post footer a:hover { color: var(--accent); }
.post footer .spacer { flex: 1; }
.post .del {
  border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 13px;
}
.post .del:hover { color: #ef4444; }
time { color: var(--muted); font-size: 13px; }

.back { display: inline-block; margin: 26px 0 18px; color: var(--muted); text-decoration: none; }
.back:hover { color: var(--accent); }
.empty { text-align: center; color: var(--muted); padding: 46px 20px; }

dialog {
  border: 1px solid var(--line); background: var(--panel); color: var(--text);
  border-radius: var(--radius); padding: 0; width: min(360px, 92vw);
}
dialog::backdrop { background: #000b; }
dialog form { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
dialog h3 { margin: 0; }
dialog input {
  width: 100%; font: inherit; padding: 10px; border-radius: 9px;
  background: var(--panel-2); color: var(--text); border: 1px solid var(--line);
}
#toast {
  position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%) translateY(90px);
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 16px; font-size: 14px; transition: transform .2s ease; z-index: 50;
  box-shadow: 0 8px 30px #0007;
}
#toast.show { transform: translateX(-50%) translateY(0); }
#toast.err { border-color: #ef4444; color: #ef4444; }

/* ── live "now" strip ───────────────────────────────────────────── */
.now-strip { display: grid; gap: 10px; margin-bottom: 20px; }
@media (min-width: 560px) { .now-strip:has(> :nth-child(2)) { grid-template-columns: 1fr 1fr; } }
.now-card {
  display: flex; align-items: center; gap: 12px; padding: 11px 13px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
}
.now-card img, .now-card .ph {
  width: 52px; height: 52px; border-radius: 9px; object-fit: cover; flex: none;
  background: var(--panel-2); display: grid; place-items: center;
  color: var(--muted); font-size: 20px;
}
.now-card .meta { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.now-card .label {
  font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--accent);
  display: flex; align-items: center; gap: 6px;
}
.now-card strong, .now-card .sub {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.now-card .sub { color: var(--muted); font-size: 14px; }
.pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .3 } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none } }

/* ── career card ───────────────────────────────────────────────── */
.career-card {
  display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text);
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 13px 15px; margin-bottom: 20px;
}
.career-card:hover { border-color: var(--accent); }
.career-card > div:first-child { flex: 1; min-width: 0; }
.career-card .role { color: var(--muted); font-size: 14px; margin-top: 2px; }
.career-card .arrow { color: var(--muted); }
.career-card:hover .arrow { color: var(--accent); }
.avail {
  background: #22c55e1f; color: #22c55e; border: 1px solid #22c55e55;
  border-radius: 999px; padding: 3px 11px; font-size: 12px; white-space: nowrap;
}

/* ── stats ─────────────────────────────────────────────────────── */
.stats { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); }
.stats h2 {
  font-size: 12px; text-transform: uppercase; letter-spacing: .09em;
  color: var(--muted); margin: 0 0 16px;
}
.stat-grid { display: grid; gap: 26px; }
@media (min-width: 560px) { .stat-grid { grid-template-columns: 1fr 1fr; } }
.stat-col h3 { font-size: 15px; margin: 0 0 10px; }
.stat-col h3 b { color: var(--muted); font-weight: 400; font-size: 13px; }
.stat-col h4 {
  font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); margin: 14px 0 6px;
}
.stat-list { list-style: none; padding: 0; margin: 0; }
.stat-list li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 5px 0; border-bottom: 1px solid var(--line); font-size: 14px;
}
.stat-list li:last-child { border-bottom: 0; }
.stat-list span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat-list em { color: var(--muted); font-style: normal; font-size: 13px; flex: none; }
