:root {
  --bg: #eef3fc;
  --bg-2: #e3ebfa;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-solid: #ffffff;
  --surface-2: #f5f8fe;
  --border: rgba(37, 99, 235, 0.14);
  --border-strong: rgba(37, 99, 235, 0.28);
  --text: #0b1533;
  --text-2: #42506f;
  --muted: #7182a3;
  --primary: #2563eb;
  --primary-2: #1d4ed8;
  --primary-soft: rgba(37, 99, 235, 0.10);
  --accent: #06b6d4;
  --glow: 0 0 0 1px rgba(37, 99, 235, 0.10), 0 10px 30px -12px rgba(37, 99, 235, 0.35);
  --glow-strong: 0 0 22px rgba(59, 130, 246, 0.45), 0 0 2px rgba(59, 130, 246, 0.9);
  --shadow: 0 1px 2px rgba(15, 30, 80, 0.06), 0 12px 32px -18px rgba(15, 30, 80, 0.25);
  --ok: #059669; --ok-soft: rgba(5, 150, 105, 0.12);
  --warn: #d97706; --warn-soft: rgba(217, 119, 6, 0.13);
  --bad: #dc2626; --bad-soft: rgba(220, 38, 38, 0.11);
  --gold: #eab308; --silver: #94a3b8; --bronze: #c2733b;
  --radius: 16px;
  --radius-sm: 10px;
  --sidebar: 268px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Sora', 'Plus Jakarta Sans', system-ui, sans-serif;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #050a1a;
  --bg-2: #081130;
  --surface: rgba(13, 24, 56, 0.72);
  --surface-solid: #0c1735;
  --surface-2: rgba(22, 38, 84, 0.55);
  --border: rgba(96, 165, 250, 0.16);
  --border-strong: rgba(96, 165, 250, 0.34);
  --text: #e8efff;
  --text-2: #b4c2e4;
  --muted: #7d8db5;
  --primary: #3b82f6;
  --primary-2: #60a5fa;
  --primary-soft: rgba(59, 130, 246, 0.16);
  --accent: #22d3ee;
  --glow: 0 0 0 1px rgba(96, 165, 250, 0.14), 0 0 34px -10px rgba(59, 130, 246, 0.55);
  --glow-strong: 0 0 26px rgba(59, 130, 246, 0.7), 0 0 3px rgba(147, 197, 253, 0.9);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 18px 40px -20px rgba(0, 0, 0, 0.7);
  --ok: #34d399; --ok-soft: rgba(52, 211, 153, 0.14);
  --warn: #fbbf24; --warn-soft: rgba(251, 191, 36, 0.14);
  --bad: #f87171; --bad-soft: rgba(248, 113, 113, 0.14);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 520px at 85% -10%, rgba(59, 130, 246, 0.22), transparent 60%),
    radial-gradient(700px 480px at -10% 30%, rgba(6, 182, 212, 0.14), transparent 60%),
    radial-gradient(800px 600px at 50% 120%, rgba(37, 99, 235, 0.16), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}
:root[data-theme="dark"] body::after {
  content: '';
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.35;
  background-image: radial-gradient(rgba(147, 197, 253, 0.35) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
}

h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; letter-spacing: -0.01em; }
h1 { font-size: 26px; font-weight: 700; }
h2 { font-size: 19px; font-weight: 650; }
h3 { font-size: 16px; font-weight: 650; }
p { margin: 0; }
a { color: var(--primary-2); }
small, .small { font-size: 12.5px; }
.muted { color: var(--muted); }
.text-2 { color: var(--text-2); }
.hidden { display: none !important; }

/* ---------- login ---------- */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.login-card {
  width: 100%; max-width: 420px; padding: 36px 30px 30px;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 24px;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--glow), var(--shadow);
  position: relative; overflow: hidden;
}
.login-card::before {
  content: ''; position: absolute; inset: -1px; border-radius: 24px; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.9), transparent 40%, transparent 60%, rgba(34, 211, 238, 0.7));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 13px; flex: none;
  background: linear-gradient(135deg, #1d4ed8, #3b82f6 55%, #22d3ee);
  display: grid; place-items: center; color: #fff;
  box-shadow: var(--glow-strong);
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 17px; line-height: 1.15; }
.brand-sub { font-size: 12px; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.login-title { margin: 26px 0 4px; font-size: 24px; }
.login-card form { display: grid; gap: 14px; margin-top: 22px; }

/* ---------- layout ---------- */
.app { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  padding: 22px 16px; display: flex; flex-direction: column; gap: 18px;
  background: var(--surface); border-right: 1px solid var(--border);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.nav { display: grid; gap: 3px; }
.nav-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); padding: 12px 12px 4px; font-weight: 600; }
.nav a {
  display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 11px;
  color: var(--text-2); text-decoration: none; font-weight: 550; font-size: 14px;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.nav a svg { width: 18px; height: 18px; flex: none; opacity: 0.85; }
.nav a:hover { background: var(--primary-soft); color: var(--text); }
.nav a.active {
  background: linear-gradient(135deg, var(--primary), #3b82f6 60%, #38bdf8);
  color: #fff; box-shadow: var(--glow-strong);
}
.nav a .badge-count {
  margin-left: auto; background: var(--bad); color: #fff; font-size: 11px; font-weight: 700;
  border-radius: 999px; padding: 1px 7px; min-width: 20px; text-align: center;
}
.nav a.active .badge-count { background: rgba(255, 255, 255, 0.25); }
.sidebar-foot { margin-top: auto; display: grid; gap: 10px; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: linear-gradient(135deg, #1e40af, #3b82f6); color: #fff; font-weight: 700; font-size: 14px;
}
.avatar.sm { width: 30px; height: 30px; font-size: 12px; }
.avatar.lg { width: 56px; height: 56px; font-size: 20px; }

.main { padding: 26px 30px 60px; min-width: 0; }
.topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.topbar .sub { color: var(--muted); margin-top: 4px; }
.mobile-bar { display: none; }

/* ---------- componentes ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.card.glow { box-shadow: var(--glow), var(--shadow); border-color: var(--border-strong); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stack { display: grid; gap: 16px; }
.grid > *, .stack > * { min-width: 0; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.spacer { flex: 1; }

.kpi { position: relative; overflow: hidden; }
.kpi .kpi-label { color: var(--muted); font-size: 13px; font-weight: 600; }
.kpi .kpi-value { font-family: var(--font-display); font-size: 30px; font-weight: 700; margin-top: 6px; line-height: 1.1; }
.kpi .kpi-foot { font-size: 12.5px; color: var(--text-2); margin-top: 4px; }
.kpi::after {
  content: ''; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.28), transparent 70%);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 16px; border-radius: 11px; border: 1px solid var(--border-strong);
  background: var(--surface-solid); color: var(--text); font: inherit; font-weight: 600; font-size: 14px;
  cursor: pointer; transition: transform 0.08s, box-shadow 0.15s, background 0.15s; white-space: nowrap;
}
.btn:hover { box-shadow: var(--glow); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; }
.btn.primary {
  background: linear-gradient(135deg, #1d4ed8, #3b82f6 60%, #38bdf8); border-color: transparent; color: #fff;
  box-shadow: 0 6px 20px -8px rgba(37, 99, 235, 0.8);
}
.btn.primary:hover { box-shadow: var(--glow-strong); }
.btn.ok { background: var(--ok); border-color: transparent; color: #fff; }
.btn.danger { color: var(--bad); border-color: rgba(220, 38, 38, 0.35); }
.btn.danger.solid { background: var(--bad); color: #fff; border-color: transparent; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--primary-soft); box-shadow: none; }
.btn.sm { padding: 6px 11px; font-size: 13px; border-radius: 9px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.icon-btn { width: 38px; height: 38px; padding: 0; border-radius: 11px; }

label.field, .field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-2); }
input, select, textarea {
  font: inherit; font-size: 14.5px; color: var(--text); width: 100%;
  background: var(--surface-solid); border: 1px solid var(--border-strong); border-radius: 11px;
  padding: 10px 12px; outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
:root[data-theme="dark"] input, :root[data-theme="dark"] select, :root[data-theme="dark"] textarea { background: rgba(8, 17, 44, 0.7); }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.22); }
textarea { min-height: 84px; resize: vertical; }
input[type="checkbox"], input[type="radio"] { width: auto; accent-color: var(--primary); }
input[type="file"] { padding: 8px; }
.form-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
.hint { font-size: 12px; color: var(--muted); font-weight: 500; }

.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); flex-wrap: wrap; }
.tabs button { border: 0; background: transparent; color: var(--text-2); font: inherit; font-weight: 600; font-size: 13.5px; padding: 7px 14px; border-radius: 9px; cursor: pointer; }
.tabs button.active { background: var(--surface-solid); color: var(--primary-2); box-shadow: var(--glow); }

.table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 650; background: var(--surface-2); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--primary-soft); }
table.compact th, table.compact td { padding: 9px 7px; }
table.compact th { font-size: 10.5px; letter-spacing: 0.03em; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.clickable { cursor: pointer; }
tr.weekend td { opacity: 0.55; }

.tag {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 650; background: var(--primary-soft); color: var(--primary-2); white-space: nowrap;
}
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.bad { background: var(--bad-soft); color: var(--bad); }
.tag.gray { background: var(--surface-2); color: var(--muted); }
.pts { font-weight: 700; font-variant-numeric: tabular-nums; }
.pts.pos { color: var(--ok); }
.pts.neg { color: var(--bad); }
.punch { display: inline-block; font-variant-numeric: tabular-nums; padding: 1px 7px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--border); margin: 1px 3px 1px 0; font-size: 13px; }
.punch.late { border-color: rgba(220, 38, 38, 0.45); color: var(--bad); }

.empty { text-align: center; padding: 34px 16px; color: var(--muted); }
.empty svg { width: 42px; height: 42px; opacity: 0.5; margin-bottom: 8px; }

.alert { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--primary-soft); font-size: 14px; color: var(--text-2); }
.alert.warn { background: var(--warn-soft); border-color: rgba(217, 119, 6, 0.3); }
.alert.bad { background: var(--bad-soft); border-color: rgba(220, 38, 38, 0.3); }
.alert.ok { background: var(--ok-soft); border-color: rgba(5, 150, 105, 0.3); }

/* ranking */
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: end; }
.podium .place {
  text-align: center; padding: 18px 12px; border-radius: 18px; border: 1px solid var(--border-strong);
  background: var(--surface); position: relative; box-shadow: var(--glow);
}
.podium .place.p1 { order: 2; padding-top: 30px; border-color: rgba(234, 179, 8, 0.55); box-shadow: 0 0 34px -8px rgba(234, 179, 8, 0.55); }
.podium .place.p2 { order: 1; }
.podium .place.p3 { order: 3; }
.medal { width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 800; color: #fff; font-family: var(--font-display); margin-bottom: 8px; }
.medal.m1 { background: linear-gradient(135deg, #facc15, #ca8a04); box-shadow: 0 0 18px rgba(234, 179, 8, 0.7); }
.medal.m2 { background: linear-gradient(135deg, #cbd5e1, #64748b); }
.medal.m3 { background: linear-gradient(135deg, #e3a06d, #9a5a2c); }
.podium .score { font-family: var(--font-display); font-size: 28px; font-weight: 800; color: var(--primary-2); text-shadow: 0 0 18px rgba(59, 130, 246, 0.35); }
.bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--border); min-width: 80px; }
.bar > span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #1d4ed8, #3b82f6, #22d3ee); box-shadow: 0 0 10px rgba(59, 130, 246, 0.6); }
.pos-num { font-family: var(--font-display); font-weight: 800; font-size: 17px; color: var(--primary-2); width: 34px; }

.radar-wrap { display: grid; place-items: center; }
.radar text { font-family: var(--font); font-size: 10.5px; fill: var(--text-2); font-weight: 600; }
.radar .grid-line { fill: none; stroke: var(--border-strong); stroke-width: 1; }
.radar .axis { stroke: var(--border); stroke-width: 1; }
.radar .area { fill: rgba(59, 130, 246, 0.26); stroke: #3b82f6; stroke-width: 2; filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.6)); }
.radar .dot { fill: #60a5fa; }

/* nota 1-5 */
.scale { display: inline-flex; gap: 6px; }
.scale button {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface-solid);
  color: var(--text); font: inherit; font-weight: 700; cursor: pointer; transition: all 0.12s;
}
.scale button:hover { border-color: var(--primary); }
.scale button.sel { background: linear-gradient(135deg, #1d4ed8, #3b82f6); color: #fff; border-color: transparent; box-shadow: var(--glow-strong); }
.rubric { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.rubric div { font-size: 12px; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border); border-radius: 9px; padding: 7px 9px; }
.rubric b { color: var(--text); }
.crit-row { padding: 14px 0; border-bottom: 1px solid var(--border); }
.crit-row:last-child { border-bottom: 0; }

/* modal & toast */
.modal-back { position: fixed; inset: 0; background: rgba(3, 8, 25, 0.55); backdrop-filter: blur(4px); display: grid; place-items: center; z-index: 50; padding: 16px; animation: fade 0.15s; }
.modal {
  width: 100%; max-width: 620px; max-height: calc(100vh - 32px); overflow-y: auto;
  background: var(--surface-solid); border: 1px solid var(--border-strong); border-radius: 20px; padding: 24px;
  box-shadow: var(--glow), 0 30px 80px -20px rgba(0, 0, 0, 0.5); animation: pop 0.18s;
}
.modal.wide { max-width: 920px; }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.toasts { position: fixed; right: 18px; bottom: 18px; display: grid; gap: 10px; z-index: 60; }
.toast { background: var(--surface-solid); border: 1px solid var(--border-strong); border-left: 4px solid var(--primary); border-radius: 12px; padding: 12px 16px; box-shadow: var(--glow), var(--shadow); max-width: 360px; font-size: 14px; animation: pop 0.2s; }
.toast.ok { border-left-color: var(--ok); }
.toast.bad { border-left-color: var(--bad); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(0.98); } }

.loader { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--primary-soft); border-top-color: var(--primary); animation: spin 0.8s linear infinite; }
.page-loading { display: grid; place-items: center; padding: 80px 0; }
@keyframes spin { to { transform: rotate(360deg); } }

.theme-toggle { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); gap: 4px; }
.theme-toggle button { border: 0; background: transparent; color: var(--muted); padding: 6px 10px; border-radius: 9px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 13px; font-weight: 600; }
.theme-toggle button svg { width: 16px; height: 16px; }
.theme-toggle button.active { background: var(--surface-solid); color: var(--primary-2); box-shadow: var(--glow); }

.list-item { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--border); }
.list-item:last-child { border-bottom: 0; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.divider { height: 1px; background: var(--border); margin: 6px 0; }
.big-number { font-family: var(--font-display); font-size: 44px; font-weight: 800; line-height: 1; background: linear-gradient(135deg, #1d4ed8, #3b82f6, #22d3ee); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 14px rgba(59, 130, 246, 0.35)); }

/* responsivo */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 40; left: 0; top: 0; width: 284px; transform: translateX(-105%); transition: transform 0.2s; background: var(--surface-solid); }
  .sidebar.open { transform: none; box-shadow: 0 0 60px rgba(0, 0, 0, 0.4); }
  .mobile-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; position: sticky; top: 0; z-index: 30; background: var(--surface); border-bottom: 1px solid var(--border); backdrop-filter: blur(14px); }
  .main { padding: 18px 16px 50px; }
  .grid-2, .grid-3, .grid-4, .form-grid { grid-template-columns: 1fr; }
  .rubric { grid-template-columns: 1fr; }
  .podium { grid-template-columns: 1fr; }
  .podium .place { order: 0 !important; }
  h1 { font-size: 22px; }
}

/* impressão */
@media print {
  body::before, body::after { display: none; }
  body { background: #fff; color: #000; }
  .sidebar, .mobile-bar, .no-print, .toasts { display: none !important; }
  .app { display: block; }
  .main { padding: 0; }
  .card { box-shadow: none; border: 1px solid #ccc; background: #fff; backdrop-filter: none; break-inside: avoid; }
  .podium .place { box-shadow: none; }
  .print-only { display: block !important; }
}
.print-only { display: none; }

/* v2 — quadro de demandas */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(236px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 10px; align-items: start; }
.kcol { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; min-height: 160px; backdrop-filter: blur(12px); }
.kcol-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 14px; }
.kdot { width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 10px currentColor; flex: none; }
.kcol-body { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
.kcol, .kcol-body > *, .tcard > * { min-width: 0; }
.tcard { background: var(--surface-solid); border: 1px solid var(--border); border-left: 4px solid var(--primary); border-radius: 12px; padding: 12px; box-shadow: var(--shadow); overflow: hidden; overflow-wrap: anywhere; word-break: break-word; }
.tcard:hover { box-shadow: var(--glow); }
.tcard-title { background: none; border: 0; padding: 0; text-align: left; font: inherit; font-weight: 700; font-size: 14.5px; color: var(--text); cursor: pointer; line-height: 1.3; flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
.tcard-title:hover { color: var(--primary-2); }
.tcard .btn.sm { padding: 5px 10px; font-size: 12.5px; }
@media (max-width: 860px) { .board { grid-auto-columns: minmax(250px, 86vw); } }
