/* ============================================================
   Plixtos — dark gritty theme
   Trello-like layout: topbar, board header, list columns, cards.
   ============================================================ */
:root {
  --bg: #0d1117;
  --bg-2: #010409;
  --panel: #161b22;
  --panel-2: #1c2128;
  --card: #21262d;
  --card-hover: #30363d;
  --text: #e6edf3;
  --muted: #8b949e;
  --border: #30363d;
  --accent: #58a6ff;
  --danger: #f85149;
  --success: #3fb950;
  --warn: #d29922;
  --radius: 8px;
  --shadow: 0 1px 0 rgba(0,0,0,.45);
  --shadow-lg: 0 12px 34px rgba(0,0,0,.55);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}
:root[data-theme='light'] {
  --bg: #f6f8fa; --bg-2: #eaeef2; --panel: #ffffff; --panel-2: #f6f8fa;
  --card: #ffffff; --card-hover: #f3f4f6; --text: #1f2328; --muted: #656d76;
  --border: #d0d7de; --accent: #0969da; --danger: #cf222e; --success: #1a7f37;
  --warn: #9a6700; --shadow: 0 1px 0 rgba(31,35,40,.04); --shadow-lg: 0 12px 34px rgba(31,35,40,.15);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  /* gritty texture overlay */
  background-image: var(--grain);
  background-attachment: fixed;
  font-size: 14px;
}
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: var(--text); }
a { color: var(--accent); }

/* ------------------------------------------------------------- topbar */
.topbar {
  display: flex; align-items: center; gap: 16px;
  padding: 8px 16px; background: var(--bg-2); color: var(--text);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 40;
}
.topbar-brand { color: var(--text); text-decoration: none; font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.brand-mark {
  width: 26px; height: 26px; border-radius: 6px; background: var(--accent); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800;
}
.topbar-search { flex: 1; max-width: 420px; position: relative; }
.topbar-search input {
  width: 100%; padding: 6px 12px; border-radius: 20px; border: 1px solid var(--border);
  background: var(--panel); color: var(--text); outline: none; font-size: 14px;
}
.search-results {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  z-index: 60; max-height: 320px; overflow: auto;
}
.search-result { display: block; padding: 8px 12px; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--border); }
.search-result:hover { background: var(--panel); }
.search-result small { color: var(--muted); display: block; }
.topbar-actions { display: flex; gap: 6px; }

/* ----------------------------------------------------------- buttons */
.btn {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 6px 13px; font-size: 14px;
  background: var(--panel); color: var(--text); transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--panel-2); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { filter: brightness(1.1); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--panel); color: var(--text); }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger-ghost { background: transparent; color: var(--danger); }
.btn-danger-ghost:hover { background: rgba(255,107,107,.12); }
.btn-block { display: block; width: 100%; }
.btn-sm { padding: 4px 10px; font-size: 13px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ------------------------------------------------------------- main */
.main { padding: 20px 24px; min-height: calc(100vh - 54px); }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 22px; letter-spacing: -.01em; }
.board-head { align-items: flex-end; }
.muted { color: var(--muted); }
.row-gap { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ------------------------------------------------------ board header */
.board-title-wrap { display: flex; align-items: center; gap: 8px; }
.board-title-input {
  font-size: 22px; font-weight: 700; border: 1px solid transparent; background: transparent;
  color: var(--text); padding: 4px 8px; border-radius: 6px; outline: none; width: min(60vw, 480px);
}
.board-title-input:hover { border-color: var(--border); }
.board-title-input:focus { border-color: var(--accent); background: var(--card); }
.board-actions { margin-left: auto; }

/* --------------------------------------------------------- home grid */
.board-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.board-tile {
  background: var(--card); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow);
  text-decoration: none; color: var(--text); display: block; position: relative;
  border: 1px solid var(--border); border-top: 5px solid var(--accent);
  transition: transform .12s, box-shadow .12s;
}
.board-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.board-tile h3 { margin: 0 0 4px; font-size: 16px; padding-right: 24px; }
.board-tile.bg-blue   { background: linear-gradient(135deg,#123,#0a1d33); border-top-color:#3d7fe8; }
.board-tile.bg-green  { background: linear-gradient(135deg,#1a2b1d,#0f1d12); border-top-color:#3fae5a; }
.board-tile.bg-orange { background: linear-gradient(135deg,#2e2413,#201806); border-top-color:#d28a3a; }
.board-tile.bg-red    { background: linear-gradient(135deg,#2b1715,#1d0f0d); border-top-color:#e05555; }
.board-tile.bg-purple { background: linear-gradient(135deg,#251b30,#170f1f); border-top-color:#a06fd8; }
.board-tile.bg-pink   { background: linear-gradient(135deg,#2c1723,#1c0e17); border-top-color:#dd6aa9; }
.board-tile.bg-teal   { background: linear-gradient(135deg,#102a2d,#091d1f); border-top-color:#3bc9db; }
.board-tile.bg-dark   { background: linear-gradient(135deg,#151a21,#0b0e13); border-top-color:#6c7a8f; }

/* ----------------------------------------------------------- board */
.board {
  display: flex; gap: 12px; align-items: flex-start; overflow-x: auto;
  padding: 14px; border-radius: 12px; min-height: 60vh;
  background: var(--bg-2); border: 1px solid var(--border);
}
.board.bg-blue   { background: linear-gradient(135deg,#12365e,#0b2748); }
.board.bg-green  { background: linear-gradient(135deg,#1e3c22,#132a16); }
.board.bg-orange { background: linear-gradient(135deg,#4a3a18,#33270e); }
.board.bg-red    { background: linear-gradient(135deg,#4a2522,#331716); }
.board.bg-purple { background: linear-gradient(135deg,#3c2a4d,#291a36); }
.board.bg-pink   { background: linear-gradient(135deg,#462636,#2e1622); }
.board.bg-teal   { background: linear-gradient(135deg,#164348,#0d2c30); }
.board.bg-dark   { background: linear-gradient(135deg,#1d242e,#11151b); }

/* ------------------------------------------------------------ lists */
.list-col {
  width: 280px; flex-shrink: 0; background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); display: flex; flex-direction: column;
  max-height: calc(100vh - 170px); box-shadow: var(--shadow);
}
.list-head {
  padding: 10px 10px 6px; display: flex; align-items: center; gap: 6px;
  position: sticky; top: 0; background: var(--panel); border-radius: var(--radius) var(--radius) 0 0; z-index: 2;
  cursor: grab; user-select: none;
}
.list-head:active { cursor: grabbing; }
.list-title {
  font-weight: 700; border: 1px solid transparent; background: none; padding: 2px 6px;
  border-radius: 5px; width: 100%; color: var(--text); outline: none;
}
.list-title:hover { border-color: var(--border); }
.list-title:focus { border-color: var(--accent); background: var(--card); }
.list-actions { display: flex; gap: 6px; align-items: center; }
.wip { font-size: 11px; color: var(--muted); padding: 1px 7px; border-radius: 10px; background: var(--panel-2); }
.wip.over { color: var(--danger); font-weight: 700; }
.list-cards { padding: 0 8px 8px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; min-height: 6px; flex: 1; }
.list-foot { padding: 6px 8px; }
.card-add, .list-add {
  border: none; background: transparent; color: var(--muted); width: 100%; text-align: left;
  padding: 6px 8px; border-radius: 6px; font-size: 14px;
}
.card-add:hover, .list-add:hover { background: var(--panel-2); color: var(--text); }
.add-list { background: rgba(0,0,0,.25); border-style: dashed; justify-content: center; }
.add-list .list-add { color: #dbe3ef; }
.composer textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 6px; padding: 8px; resize: vertical;
  min-height: 60px; outline: none; background: var(--card); color: var(--text);
}
.composer-actions { display: flex; gap: 6px; margin-top: 6px; align-items: center; }

/* ------------------------------------------------------------ cards */
.card {
  background: var(--card); border-radius: 6px; box-shadow: var(--shadow);
  padding: 8px 10px; cursor: grab; border: 1px solid var(--border);
  transition: box-shadow .12s, transform .12s, border-color .12s;
  user-select: none;
}
.card:hover { box-shadow: var(--shadow-lg); border-color: var(--accent); }
.card:active { cursor: grabbing; }
.card-cover { height: 84px; border-radius: 5px 5px 0 0; margin: -8px -10px 6px; background-size: cover; background-position: center; }
.card-cover.blank { height: 34px; margin: -8px -10px 8px; }
.card-labels { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 6px; }
.label-dot { height: 8px; min-width: 30px; border-radius: 4px; }
.card-title { margin: 0; font-size: 14px; font-weight: 500; word-break: break-word; color: var(--text); }
.card-meta { display: flex; gap: 10px; margin-top: 6px; color: var(--muted); font-size: 12px; align-items: center; }
.card-meta .overdue { color: var(--danger); font-weight: 600; }
.checklist-progress { height: 6px; background: var(--panel-2); border-radius: 3px; overflow: hidden; margin-top: 6px; }
.checklist-progress > span { display: block; height: 100%; background: var(--success); }

/* ------------------------------------------------------ drag & drop */
body.drag-active { user-select: none; }
.drag-clone, .list-drag-clone {
  position: fixed; z-index: 300; pointer-events: none; transform: rotate(4deg);
  box-shadow: 0 16px 40px rgba(0,0,0,.5); opacity: .95; width: 260px;
  background: var(--card); border: 1px solid var(--accent); border-radius: 6px; padding: 8px 10px;
}
.list-drag-clone { width: 280px; padding: 0; overflow: hidden; }
.list-drag-clone .list-head { position: static; }
.drop-slot { min-height: 46px; border: 2px dashed var(--accent); border-radius: 6px; background: rgba(90,155,255,.08); margin: 2px 0; }
.list-drop-slot { width: 280px; flex-shrink: 0; border: 2px dashed var(--accent); border-radius: var(--radius); background: rgba(90,155,255,.08); }
.card.dragging, .list-col.dragging { opacity: .4; }

/* --------------------------------------------------------- gate */
.gate { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.gate-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 32px; width: 380px; box-shadow: var(--shadow-lg); }
.gate-brand { font-size: 20px; font-weight: 800; display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.gate-sub { color: var(--muted); margin: 0 0 20px; }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 13px; margin-bottom: 4px; font-weight: 600; }
.field input, .field textarea, .field select {
  width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px; outline: none;
  background: var(--card); color: var(--text);
}
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.hint { color: var(--danger); font-size: 13px; margin: 6px 0; }
.gate-foot { color: var(--muted); font-size: 12px; margin-top: 18px; text-align: center; }

/* ----------------------------------------------------------- modal */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  animation: fade .12s ease-out;
}
.modal { background: var(--card); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); max-width: 720px; width: 100%; max-height: 92vh; display: flex; flex-direction: column; overflow: hidden; animation: pop .14s ease-out; }
.modal-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.modal-head-actions { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.modal-body { overflow-y: auto; padding: 16px; }
.icon-btn { background: none; border: none; color: var(--muted); font-size: 16px; padding: 4px 8px; border-radius: 6px; }
.icon-btn:hover { background: var(--panel); color: var(--text); }
.card-title-input { font-size: 20px; font-weight: 700; border: 1px solid transparent; outline: none; padding: 4px 6px; border-radius: 6px; width: 100%; background: transparent; color: var(--text); }
.card-title-input:focus { border-color: var(--accent); background: var(--panel); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { transform: translateY(8px) scale(.98); opacity: .6; } to { transform: none; opacity: 1; } }

/* ------------------------------------------------------ modal sections */
.section { margin-bottom: 24px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.section-head h3 { margin: 0; font-size: 15px; }
.field-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.chip {
  border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; background: var(--panel);
  cursor: pointer; transition: border-color .12s, background .12s;
}
.chip:hover { border-color: var(--accent); background: var(--panel-2); }
.chip .chip-label { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); display: block; margin-bottom: 2px; }
.chip .chip-value { font-size: 14px; font-weight: 600; word-break: break-all; color: var(--text); }
.chip.unknown { border-style: dashed; cursor: default; }
.chip.unknown:hover { background: var(--panel); border-color: var(--border); }
.row { display: flex; gap: 8px; align-items: center; }
.row > * { flex: 1; }
.row.tight { gap: 6px; }
.text-input, .text-area, .select-input {
  width: 100%; padding: 7px 10px; border: 1px solid var(--border); border-radius: 6px; outline: none; background: var(--card); color: var(--text);
}
.text-input:focus, .text-area:focus { border-color: var(--accent); }
.text-area { resize: vertical; min-height: 72px; }
textarea.desc { min-height: 90px; }
.list-item { border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; background: var(--panel); }
.list-item .row { align-items: flex-start; }
.checkbox { width: 18px; height: 18px; flex: none; accent-color: var(--accent); }
.item-done { text-decoration: line-through; color: var(--muted); }
.consent-badge { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; }
.consent-badge.ok { background: rgba(81,216,138,.15); color: var(--success); }
.consent-badge.no { background: rgba(255,107,107,.15); color: var(--danger); }
.att-row { display: flex; align-items: center; gap: 8px; }
.att-row img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); }
.att-row a { color: var(--accent); text-decoration: none; }
.comment { border-bottom: 1px solid var(--border); padding: 8px 0; }
.comment .who { font-size: 12px; color: var(--muted); }
.template-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--border); }
.empty { color: var(--muted); font-style: italic; }

/* ------------------------------------------------------- pickers */
.bg-picker { display: flex; gap: 8px; flex-wrap: wrap; }
.bg-swatch { width: 40px; height: 28px; border-radius: 6px; border: 2px solid transparent; cursor: pointer; }
.bg-swatch.bg-plain { background: var(--panel); border-color: var(--border); }
.bg-swatch.bg-blue { background: #12365e; } .bg-swatch.bg-green { background: #1e3c22; }
.bg-swatch.bg-orange { background: #4a3a18; } .bg-swatch.bg-red { background: #4a2522; }
.bg-swatch.bg-purple { background: #3c2a4d; } .bg-swatch.bg-pink { background: #462636; }
.bg-swatch.bg-teal { background: #164348; } .bg-swatch.bg-dark { background: #1d242e; }
.bg-swatch.sel { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.bg-swatch:hover { transform: translateY(-1px); }
.label-picker { display: flex; gap: 6px; flex-wrap: wrap; }
.label-chip { border: none; border-radius: 12px; padding: 4px 12px; color: #fff; font-size: 12px; cursor: pointer; opacity: .55; transition: opacity .12s, transform .12s; }
.label-chip.on { opacity: 1; }
.label-chip:hover { transform: translateY(-1px); }

/* ----------------------------------------------------------- misc */
.star-btn { background: none; border: none; font-size: 18px; color: var(--muted); cursor: pointer; line-height: 1; }
.star-btn:hover { color: var(--warn); transform: scale(1.15); }
.star-btn.on { color: var(--warn); }
.filter-input { background: var(--panel); border: 1px solid var(--border); border-radius: 20px; padding: 6px 12px; color: var(--text); outline: none; width: 180px; }
.filter-input::placeholder { color: var(--muted); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.toast { background: var(--panel-2); color: var(--text); border: 1px solid var(--border); padding: 10px 16px; border-radius: 8px; margin-top: 8px; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: none; }
.toast.ok { border-color: var(--success); color: var(--success); }
.toast.err { border-color: var(--danger); color: var(--danger); }
.toast-root { position: fixed; bottom: 20px; right: 20px; z-index: 200; display: flex; flex-direction: column; align-items: flex-end; }
kbd { background: var(--panel); border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 4px; padding: 1px 6px; font-family: ui-monospace, monospace; font-size: 12px; }
.shortcut-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--border); }
.import-drop { border: 2px dashed var(--border); border-radius: 10px; padding: 22px; text-align: center; color: var(--muted); cursor: pointer; }
.import-drop:hover { border-color: var(--accent); }
.import-preview { max-height: 160px; overflow: auto; border: 1px solid var(--border); border-radius: 8px; margin-top: 10px; font-size: 12px; }
.import-preview table { border-collapse: collapse; width: 100%; }
.import-preview td, .import-preview th { border-bottom: 1px solid var(--border); padding: 4px 8px; text-align: left; white-space: nowrap; }
.dash { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 20px; }
.dash-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.dash-card h3 { margin: 0 0 8px; font-size: 14px; display: flex; justify-content: space-between; align-items: center; }
.dash-card .big { font-size: 26px; font-weight: 700; }
.dash-card ul { margin: 8px 0 0; padding: 0; list-style: none; max-height: 180px; overflow: auto; }
.dash-card li { padding: 4px 0; border-bottom: 1px solid var(--border); font-size: 13px; display: flex; justify-content: space-between; gap: 8px; }
.dash-card li a { color: var(--text); text-decoration: none; }
.dash-card li a:hover { text-decoration: underline; }

.gap { gap: 8px; }

/* ================= dashboard page ================= */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 24px; }
.stat-tile {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; display: flex; flex-direction: column; gap: 4px;
  transition: border-color .12s, transform .12s;
}
.stat-tile:hover { transform: translateY(-1px); }
.stat-tile .stat-value { font-size: 26px; font-weight: 700; line-height: 1.1; }
.stat-tile .stat-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.stat-tile.over { border-color: var(--danger); }
.stat-tile.over .stat-value { color: var(--danger); }
.stat-tile.soon { border-color: var(--warn); }
.stat-tile.soon .stat-value { color: var(--warn); }
.stat-tile.done { border-color: var(--success); }
.stat-tile.done .stat-value { color: var(--success); }
.dash-section { margin-bottom: 28px; }
.dash-section h2 { font-size: 15px; margin: 0 0 10px; letter-spacing: -.01em; }
.dash-table { width: 100%; border-collapse: collapse; font-size: 13px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.dash-table th { text-align: left; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--border); background: var(--panel); }
.dash-table td { padding: 7px 10px; border-bottom: 1px solid var(--border); }
.dash-table tr:last-child td { border-bottom: none; }
.dash-table tbody tr:hover td, .dash-table tr:hover td { background: var(--panel); }
.dash-table a { color: var(--text); text-decoration: none; }
.dash-table a:hover { text-decoration: underline; color: var(--accent); }

/* ================= clients workspace ================= */
.clients-head { align-items: flex-end; }
.filter-bar { margin-bottom: 16px; flex-wrap: wrap; align-items: center; gap: 8px; }
.search-input {
  flex: 1; min-width: 220px; padding: 7px 12px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--panel); color: var(--text); outline: none; font-size: 14px;
}
.search-input:focus { border-color: var(--accent); }
.search-input::placeholder { color: var(--muted); }
.result-count { margin: 0 0 8px; font-size: 13px; }
.loading { font-style: italic; }
.error-msg { color: var(--danger); }
.clients-table {
  width: 100%; border-collapse: collapse; font-size: 13px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.clients-table th {
  text-align: left; color: var(--muted); font-weight: 600; padding: 8px 10px;
  border-bottom: 1px solid var(--border); background: var(--panel);
  position: sticky; top: 0; cursor: pointer; user-select: none; z-index: 1;
}
.clients-table th:hover { color: var(--text); }
.clients-table th.sorted { color: var(--accent); }
.clients-table th.sorted::after { content: ' ↑'; }
.clients-table th.sorted.desc::after { content: ' ↓'; }
.clients-table td { padding: 7px 10px; border-bottom: 1px solid var(--border); }
.clients-table tbody tr:nth-child(even) td { background: rgba(0,0,0,.06); }
.clients-table tbody tr:hover td { background: var(--panel); cursor: pointer; }
.clients-table tr:last-child td { border-bottom: none; }
.due-pill, .consent-pill {
  display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600;
}
.due-pill.overdue { background: rgba(255,107,107,.18); color: var(--danger); }
.due-pill.today, .due-pill.week { background: rgba(255,194,75,.18); color: var(--warn); }
.due-pill.none, .due-pill.later { background: var(--panel-2); color: var(--muted); }
.due-pill.completed { background: rgba(81,216,138,.15); color: var(--success); }
.consent-pill.on { background: rgba(81,216,138,.15); color: var(--success); }
.consent-pill.off { background: rgba(255,107,107,.15); color: var(--danger); }
@media (max-width: 720px) {
  .clients-table { font-size: 12px; }
  .clients-table th:nth-child(5), .clients-table td:nth-child(5) { display: none; }
  .clients-table th:nth-child(6), .clients-table td:nth-child(6) { display: none; }
}
