:root {
  --bg: #0f1419;
  --panel: #1a222d;
  --border: #2a3544;
  --text: #e8edf4;
  --muted: #8b98a8;
  --accent: #3d8bfd;
  --danger: #f07178;
  --ok: #3dd68c;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, sans-serif; background: var(--bg); color: var(--text); }
.muted { color: var(--muted); }
.error { color: var(--danger); }
.auth-page { min-height: 100vh; display: grid; place-items: center; }
.auth-card { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 2rem; width: min(360px, 92vw); }
.auth-card label { display: block; margin-bottom: 1rem; font-size: 0.85rem; color: var(--muted); }
.auth-card input { width: 100%; margin-top: 0.35rem; padding: 0.55rem 0.65rem; border-radius: 8px; border: 1px solid var(--border); background: #0d1117; color: var(--text); }
.auth-card button { width: 100%; padding: 0.65rem; border: none; border-radius: 8px; background: var(--accent); color: #fff; font-weight: 600; cursor: pointer; }
.topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); background: var(--panel); }
.topbar h1 { margin: 0; font-size: 1.15rem; }
.topbar-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: end; }
.filter { font-size: 0.8rem; color: var(--muted); }
.filter input, .filter select { display: block; margin-top: 0.25rem; padding: 0.4rem 0.5rem; border-radius: 6px; border: 1px solid var(--border); background: #0d1117; color: var(--text); }
button { padding: 0.45rem 0.85rem; border-radius: 8px; border: none; background: var(--accent); color: #fff; cursor: pointer; }
button.secondary { background: transparent; border: 1px solid var(--border); color: var(--text); }
.board { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; padding: 1rem; align-items: start; }
.column { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; min-height: 200px; }
.column h3 { margin: 0; padding: 0.75rem 1rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); border-bottom: 1px solid var(--border); }
.cards { padding: 0.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
.card { background: #121820; border: 1px solid var(--border); border-radius: 8px; padding: 0.65rem 0.75rem; cursor: pointer; }
.card:hover { border-color: var(--accent); }
.card-title { font-weight: 600; font-size: 0.92rem; margin-bottom: 0.35rem; }
.card-badges { display: flex; flex-wrap: wrap; gap: 0.35rem; font-size: 0.72rem; }
.badge { background: #243044; padding: 0.15rem 0.45rem; border-radius: 999px; color: var(--muted); }
.badge.domain { color: #9ec5ff; }
.badge.pri-high, .badge.pri-urgent { color: #ffb86b; }
dialog { border: 1px solid var(--border); border-radius: 12px; background: var(--panel); color: var(--text); width: min(720px, 96vw); max-height: 90vh; }
dialog::backdrop { background: rgba(0,0,0,0.55); }
dialog header { display: flex; justify-content: space-between; align-items: start; gap: 1rem; }
dialog header h2 { margin: 0; font-size: 1.1rem; }
#dlgClose { background: transparent; border: none; color: var(--muted); font-size: 1.4rem; cursor: pointer; }
.dlg-meta { font-size: 0.8rem; color: var(--muted); margin: 0.5rem 0 1rem; }
.dlg-desc { white-space: pre-wrap; line-height: 1.45; }
.attachments, .comments { margin: 1rem 0; }
.attach-item { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.35rem; font-size: 0.85rem; }
.attach-item img { max-width: 120px; max-height: 80px; border-radius: 6px; border: 1px solid var(--border); }
.attach-item button.del { background: transparent; border: 1px solid var(--danger); color: var(--danger); font-size: 0.75rem; padding: 0.2rem 0.5rem; }
.comment { border-left: 3px solid var(--border); padding: 0.5rem 0.75rem; margin-bottom: 0.5rem; font-size: 0.88rem; }
.comment.admin { border-color: var(--accent); }
.reply-box { border: 1px solid var(--border); border-radius: 8px; padding: 0.75rem; margin-top: 1rem; }
.reply-box textarea { width: 100%; border-radius: 8px; border: 1px solid var(--border); background: #0d1117; color: var(--text); padding: 0.5rem; }
.file-label { display: block; margin: 0.5rem 0; font-size: 0.85rem; color: var(--muted); }
.dlg-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: end; margin-top: 0.75rem; }
