:root {
  --bg: #0b0d10;
  --panel: #111419;
  --panel-2: #161a20;
  --panel-3: #1c2129;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .12);
  --text: #e9edf2;
  --muted: #8b95a3;
  --dim: #5d6672;
  --accent: #c8ff3d;
  --accent-soft: rgba(200, 255, 61, .12);
  --accent-ink: #0b0d10;
  --warn: #ffb547;
  --danger: #ff6464;
  --info: #6cc6ff;
  --radius: 14px;
  --radius-sm: 9px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }

.bg-glow {
  position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background:
    radial-gradient(900px 420px at 15% -10%, rgba(200, 255, 61, .08), transparent 60%),
    radial-gradient(700px 400px at 100% 0%, rgba(108, 198, 255, .06), transparent 60%),
    linear-gradient(var(--bg), var(--bg));
}
.bg-glow::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000, transparent 520px);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 520px);
}

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
main.wrap { flex: 1; padding-top: 28px; padding-bottom: 60px; }
.dim { color: var(--dim); }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 12px 20px;
  background: rgba(11, 13, 16, .72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; justify-self: start; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 0 0 1px rgba(200,255,61,.4), 0 6px 24px -6px rgba(200,255,61,.5);
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-size: 15px; letter-spacing: .01em; }
.brand-text span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .14em; }

.tabs { display: flex; gap: 4px; padding: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.tabs a {
  padding: 7px 14px; border-radius: 8px; font-size: 14px; color: var(--muted);
  transition: color .15s, background .15s;
}
.tabs a:hover { color: var(--text); }
.tabs a.active { background: var(--panel-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }

.user { justify-self: end; display: flex; align-items: center; gap: 8px; }
.user-chip {
  display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 4px;
  border: 1px solid var(--line); background: var(--panel); border-radius: 999px; cursor: pointer;
}
.user-chip:hover { border-color: var(--line-2); }
.user-chip .name { font-size: 14px; font-weight: 600; padding-right: 4px; }

/* ---------- Avatars ---------- */
.avatar {
  --h: 90;
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700; letter-spacing: .02em;
  color: hsl(var(--h) 90% 82%);
  background: hsl(var(--h) 35% 20%);
  box-shadow: inset 0 0 0 1px hsl(var(--h) 50% 40% / .5);
}
.avatar.lg { width: 38px; height: 38px; font-size: 13px; }
.avatars { display: flex; }
.avatars .avatar { margin-left: -7px; box-shadow: 0 0 0 2px var(--panel), inset 0 0 0 1px hsl(var(--h) 50% 40% / .5); }
.avatars .avatar:first-child { margin-left: 0; }
.avatars .more { background: var(--panel-3); color: var(--muted); --h: 0; }

/* ---------- Buttons & Inputs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 36px; padding: 0 14px; border-radius: 10px;
  border: 1px solid var(--line-2); background: var(--panel-2);
  font-size: 14px; font-weight: 550; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .05s, color .15s;
}
.btn:hover { background: var(--panel-3); border-color: rgba(255,255,255,.18); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn.primary:hover { background: #d6ff6a; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--text); background: var(--panel-2); }
.btn.danger:hover { color: var(--danger); border-color: rgba(255,100,100,.4); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; border-radius: 8px; }
.btn.icon { width: 36px; padding: 0; }
.btn.sm.icon { width: 30px; }
.btn svg { width: 16px; height: 16px; flex: none; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 12px; color: var(--muted); font-weight: 550; letter-spacing: .02em; }
.input, textarea.input, select.input {
  width: 100%; height: 40px; padding: 0 12px;
  background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px;
  outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea.input { height: auto; min-height: 76px; padding: 10px 12px; resize: vertical; }
.input:focus { border-color: rgba(200,255,61,.6); box-shadow: 0 0 0 3px rgba(200,255,61,.12); }
.input::placeholder { color: var(--dim); }
input[type="datetime-local"].input { color-scheme: dark; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; user-select: none; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }

.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.grow { flex: 1; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 14px; }

/* ---------- Panels ---------- */
.panel {
  background: linear-gradient(180deg, var(--panel), rgba(17,20,25,.85));
  border: 1px solid var(--line); border-radius: var(--radius);
}
.panel-pad { padding: 20px; }
.section { margin-top: 34px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.section-head h2 { margin: 0; font-size: 18px; letter-spacing: -.01em; }
.section-head p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.kicker { font-size: 11px; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); font-weight: 600; }

.empty {
  padding: 28px; text-align: center; color: var(--muted); font-size: 14px;
  border: 1px dashed var(--line-2); border-radius: var(--radius);
}
.empty strong { display: block; color: var(--text); margin-bottom: 4px; font-size: 15px; }

/* ---------- Hero / Wipe ---------- */
.hero {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px;
}
.wipe {
  position: relative; overflow: hidden; padding: 24px 24px 22px;
}
.wipe::before {
  content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200,255,61,.16), transparent 65%);
  pointer-events: none;
}
.wipe-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.countdown { display: flex; gap: 10px; margin: 16px 0 12px; flex-wrap: wrap; }
.cd-unit {
  min-width: 74px; padding: 10px 12px 8px; border-radius: 12px;
  background: rgba(0,0,0,.35); border: 1px solid var(--line);
}
.cd-unit b { display: block; font: 700 34px/1 var(--mono); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.cd-unit span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.wipe-meta { display: flex; gap: 8px 16px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.wipe-meta strong { color: var(--text); font-weight: 600; }
.wipe-note { margin-top: 10px; font-size: 15px; }
.wipe.live .cd-unit b { color: var(--accent); }
.wipe-none { margin: 18px 0 6px; font-size: 22px; font-weight: 650; letter-spacing: -.01em; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat { padding: 18px 18px 16px; display: flex; flex-direction: column; justify-content: space-between; min-height: 106px; }
.stat b { font: 700 30px/1 var(--mono); font-variant-numeric: tabular-nums; }
.stat span { font-size: 13px; color: var(--muted); }
.stat.accent b { color: var(--accent); }

/* ---------- Badges / chips ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px;
  border-radius: 999px; font-size: 12px; font-weight: 600;
  background: var(--panel-3); border: 1px solid var(--line-2); color: var(--muted);
  white-space: nowrap;
}
.tag.accent { background: var(--accent-soft); border-color: rgba(200,255,61,.3); color: var(--accent); }
.tag.warn { background: rgba(255,181,71,.1); border-color: rgba(255,181,71,.3); color: var(--warn); }
.tag.danger { background: rgba(255,100,100,.1); border-color: rgba(255,100,100,.3); color: var(--danger); }
.tag.info { background: rgba(108,198,255,.1); border-color: rgba(108,198,255,.3); color: var(--info); }
.tag.server { font-family: var(--mono); color: var(--text); letter-spacing: .02em; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.dot.pulse { animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .35 } }

.ico svg, .chip svg, .tag svg { width: 14px; height: 14px; }
.item-img svg { width: 22px; height: 22px; }
.btn .ico svg { width: 16px; height: 16px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px 0 4px;
  border-radius: 999px; background: var(--panel-3); border: 1px solid var(--line); font-size: 13px;
}
.chip .avatar { width: 20px; height: 20px; font-size: 9px; }
.chip.plain { padding: 0 10px; }

.clan {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 600;
  padding: 3px 4px 3px 10px; border-radius: 8px; background: rgba(0,0,0,.3); border: 1px solid var(--line);
  font-size: 13px;
}
.clan .copy { height: 22px; width: 22px; border-radius: 6px; border: 0; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.clan .copy:hover { color: var(--accent); background: var(--panel-3); }
.clan .copy svg { width: 13px; height: 13px; }

/* ---------- Server cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.srv {
  display: flex; flex-direction: column; gap: 14px; padding: 18px;
  cursor: pointer; transition: border-color .15s, transform .15s, background .15s;
  position: relative;
}
.srv:hover { border-color: var(--line-2); transform: translateY(-2px); }
.srv.mine { border-color: rgba(200,255,61,.28); box-shadow: 0 0 0 1px rgba(200,255,61,.06), 0 18px 40px -24px rgba(200,255,61,.35); }
.srv.expired { opacity: .55; }
.srv-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.srv-name { font: 700 24px/1.05 var(--mono); letter-spacing: -.01em; }
.srv-sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
.srv-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.srv-foot .avail { font-size: 13px; color: var(--muted); }
.srv-foot .avail b { color: var(--accent); }
.srv-note { font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.life { display: flex; flex-direction: column; gap: 7px; }
.life-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.life-row b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.bar { height: 6px; border-radius: 99px; background: rgba(255,255,255,.06); overflow: hidden; display: flex; gap: 2px; }
.bar.days { background: transparent; }
.bar.days i { flex: 1; border-radius: 99px; background: rgba(255,255,255,.07); position: relative; overflow: hidden; }
.bar.days i::after { content: ""; position: absolute; inset: 0; width: var(--f, 0%); background: var(--accent); border-radius: inherit; }
.bar.days.warn i::after { background: var(--warn); }
.bar.days.danger i::after { background: var(--danger); }
.bar .fill { height: 100%; background: var(--accent); border-radius: inherit; transition: width .3s; }

.add-card {
  display: grid; place-items: center; min-height: 200px; cursor: pointer;
  border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--muted);
  transition: color .15s, border-color .15s, background .15s; background: transparent;
}
.add-card:hover { color: var(--accent); border-color: rgba(200,255,61,.4); background: rgba(200,255,61,.03); }
.add-card div { text-align: center; }
.add-card .plus { font-size: 30px; line-height: 1; margin-bottom: 6px; font-weight: 300; }

/* ---------- Server detail ---------- */
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.back:hover { color: var(--text); }
.detail-head { padding: 24px; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: start; }
.detail-head h1 { margin: 6px 0 8px; font: 700 40px/1 var(--mono); letter-spacing: -.02em; }
.detail-meta { display: flex; gap: 8px 18px; flex-wrap: wrap; color: var(--muted); font-size: 14px; align-items: center; }
.detail-meta b { color: var(--text); font-weight: 600; }
.detail-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.detail-life { grid-column: 1 / -1; }

.cols { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; align-items: start; }
.cols > * { min-width: 0; }

/* Items / skill tree */
.cat { margin-bottom: 18px; }
.cat:last-child { margin-bottom: 0; }
.cat-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.cat-head h3 { margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 650; }
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.item {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 12px 8px 10px; border-radius: 12px; text-align: center;
  background: var(--panel-2); border: 1px solid var(--line);
  font-size: 13px; font-weight: 550; line-height: 1.25;
  transition: border-color .15s, background .15s, transform .1s;
}
button.item { cursor: pointer; }
button.item:hover { border-color: var(--line-2); }
button.item:active { transform: scale(.98); }
.item.on { background: linear-gradient(180deg, rgba(200,255,61,.12), rgba(200,255,61,.04)); border-color: rgba(200,255,61,.45); }
.item.on::after {
  content: ""; position: absolute; top: 7px; right: 7px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2l2.6 2.6L12 5.4' fill='none' stroke='%230b0d10' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}
.item-img {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; overflow: hidden;
  background: rgba(0,0,0,.35); border: 1px solid var(--line);
  font: 700 15px var(--mono); color: var(--muted);
}
.item-img img { width: 100%; height: 100%; object-fit: contain; }
.item.on .item-img { color: var(--accent); }
.item .givers { font-size: 11px; font-weight: 500; color: var(--muted); }

.avail-list { display: flex; flex-direction: column; gap: 8px; }
.avail-row {
  display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center;
  padding: 10px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line);
}
.avail-row .item-img { width: 44px; height: 44px; border-radius: 10px; font-size: 13px; }
.avail-row .t { font-weight: 600; font-size: 14px; margin-bottom: 5px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.members { display: flex; flex-direction: column; }
.member { display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.member:first-child { border-top: 0; padding-top: 0; }
.member .n { font-weight: 650; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.member .s { font-size: 12px; color: var(--muted); margin-top: 2px; }
.member .p { text-align: right; font: 600 13px var(--mono); color: var(--muted); }
.member .bar { margin-top: 7px; }
.member details { grid-column: 2 / -1; }
.member summary { cursor: pointer; font-size: 12px; color: var(--muted); list-style: none; margin-top: 2px; }
.member summary::-webkit-details-marker { display: none; }
.member summary:hover { color: var(--text); }
.member details .chips { margin-top: 8px; }

.mybox { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }

/* ---------- Board ---------- */
.board { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; align-items: start; }
.board > * { min-width: 0; }
.post { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.post + .post { margin-top: 10px; }
.post-head { display: flex; gap: 10px; align-items: center; }
.post-title { font-size: 16px; font-weight: 650; letter-spacing: -.005em; }
.post-by { font-size: 12px; color: var(--muted); }
.post-note { font-size: 14px; color: #cdd3db; }
.post.closed { opacity: .5; }
.match {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  padding: 8px 10px; border-radius: 10px; font-size: 13px;
  background: rgba(200,255,61,.06); border: 1px solid rgba(200,255,61,.18);
}
.match .lbl { color: var(--accent); font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.match .lbl svg { width: 14px; height: 14px; }
.replies { display: flex; flex-direction: column; gap: 6px; padding-left: 12px; border-left: 2px solid var(--line-2); }
.reply { font-size: 13px; display: flex; gap: 8px; align-items: baseline; }
.reply b { font-weight: 650; }
.reply time { color: var(--dim); font-size: 11px; }
.reply .x { margin-left: auto; opacity: 0; }
.reply:hover .x { opacity: 1; }
.reply-form { display: flex; gap: 8px; }
.reply-form .input { height: 34px; font-size: 14px; }

.composer { padding: 16px; margin-bottom: 14px; display: grid; grid-template-columns: 1fr 160px; gap: 10px; }
.composer .full { grid-column: 1 / -1; }

.offer { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; }
.offer + .offer { border-top: 1px solid var(--line); }
.offer .item-img { width: 40px; height: 40px; border-radius: 10px; font-size: 12px; }
.offer .t { font-weight: 600; font-size: 14px; }
.offer .s { font-size: 12px; color: var(--muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 3px; }

.filter { display: flex; gap: 6px; flex-wrap: wrap; }
.filter button {
  height: 30px; padding: 0 12px; border-radius: 99px; font-size: 13px; cursor: pointer;
  border: 1px solid var(--line-2); background: transparent; color: var(--muted);
}
.filter button.on { background: var(--text); color: var(--bg); border-color: transparent; font-weight: 600; }

/* ---------- Login ---------- */
.login {
  min-height: calc(100vh - 220px); display: grid; place-items: center; padding: 20px 0;
}
.login-card { width: 100%; max-width: 440px; padding: 34px 30px 28px; text-align: center; }
.login-card .brand-mark { width: 54px; height: 54px; border-radius: 15px; margin: 0 auto 20px; }
.login-card .brand-mark svg { width: 34px; height: 34px; }
.login-card h1 { margin: 0 0 6px; font-size: 30px; letter-spacing: -.025em; }
.login-card p { margin: 0 0 22px; color: var(--muted); }
.login-card form { display: flex; flex-direction: column; gap: 10px; }
.login-card .input { height: 48px; font-size: 17px; text-align: center; }
.login-card .btn { height: 46px; font-size: 15px; }
.login-card small { display: block; margin-top: 16px; color: var(--dim); font-size: 12px; }

/* ---------- Modal ---------- */
.modal-back {
  position: fixed; inset: 0; z-index: 50; background: rgba(5,6,8,.7);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 20px; animation: fade .15s ease-out;
}
.modal { width: 100%; max-width: 460px; padding: 24px; animation: pop .18s ease-out; max-height: calc(100vh - 40px); overflow: auto; }
.modal h2 { margin: 0 0 4px; font-size: 20px; letter-spacing: -.01em; }
.modal > p { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.modal form { display: flex; flex-direction: column; gap: 14px; }
.modal .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@keyframes fade { from { opacity: 0 } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98) } }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 10px 16px; border-radius: 10px; font-size: 14px; font-weight: 550;
  background: var(--text); color: var(--bg); box-shadow: 0 12px 30px -10px rgba(0,0,0,.6);
  transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--danger); color: #fff; }

.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 28px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); }

.loading { display: grid; place-items: center; min-height: 40vh; }
.spinner { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--accent); animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg) } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero, .cols, .board { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .topbar { grid-template-columns: auto 1fr; padding: 10px 14px; }
  .tabs { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; }
  .tabs a { flex: 1; text-align: center; white-space: nowrap; padding: 7px 6px; font-size: 13px; }
  .brand-text span { display: none; }
  .wrap { padding: 0 14px; }
  .cd-unit { min-width: 0; flex: 1; padding: 8px 8px 6px; }
  .cd-unit b { font-size: 26px; }
  .detail-head { grid-template-columns: 1fr; padding: 18px; }
  .detail-head h1 { font-size: 32px; }
  .detail-actions { justify-content: flex-start; }
  .composer, .mybox, .modal .two { grid-template-columns: 1fr; }
  .user-chip .name { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
