/* The Toolbox Pro — design system tokens v1.0 */
/* Inter font is already loaded via base.html @font-face — no import needed */

:root {
  /* Brand kept */
  --tbp-brown: #36302a;
  --tbp-brown-2: #2a2520;
  --tbp-orange: #c67b29;
  --tbp-orange-cta: #a5661d;
  --tbp-orange-cta-hover: #8a4f14;
  --tbp-cream: #f8f5f1;

  /* New: state-of-the-art dashboard surfaces (warm-leaning neutrals) */
  --bg: #f6f4ef;          /* warm canvas */
  --surface: #ffffff;
  --surface-2: #fbfaf7;
  --line: #e7e3da;        /* warm hairline */
  --line-strong: #d8d2c5;
  --ink: #1c1814;
  --ink-2: #4a4339;
  --ink-3: #7a7164;
  --ink-4: #a8a092;

  /* Status — universal */
  --st-pending-bg: #fff4d6;     --st-pending-fg: #7a4e08;
  --st-approved-bg: #d9f0d6;    --st-approved-fg: #1f5a1c;
  --st-progress-bg: #dde6ff;    --st-progress-fg: #1e3a8a;
  --st-completed-bg: #d3e8df;   --st-completed-fg: #114a36;
  --st-declined-bg: #fde0dc;    --st-declined-fg: #8a1c14;
  --st-invoiced-bg: #f4dfee;    --st-invoiced-fg: #6b1850;
  --st-paid-bg: #b9e8c2;        --st-paid-fg: #0f5a2a;
  --st-cancelled-bg: #e6e1d6;   --st-cancelled-fg: #5a5346;

  /* Shadows */
  --sh-1: 0 1px 0 rgba(54,48,42,0.04), 0 1px 2px rgba(54,48,42,0.05);
  --sh-2: 0 4px 12px rgba(54,48,42,0.06), 0 1px 2px rgba(54,48,42,0.04);
  --sh-3: 0 12px 28px rgba(54,48,42,0.10), 0 4px 8px rgba(54,48,42,0.06);
  --sh-pop: 0 24px 48px rgba(54,48,42,0.18), 0 8px 16px rgba(54,48,42,0.08);

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-pill: 999px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  font-feature-settings: 'cv11','ss01','ss03';
  -webkit-font-smoothing: antialiased;
}

button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: inherit; }

/* Brand-DNA refresh: the orange is now an accent rule, not a button paint */
.tbp-rule {
  height: 3px;
  background: linear-gradient(90deg, var(--tbp-orange) 0%, var(--tbp-orange-cta) 60%, transparent 100%);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: var(--r-sm); font-size: 13px;
  font-weight: 600; border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.btn-primary { background: var(--tbp-orange-cta); color: #fff; }
.btn-primary:hover { background: var(--tbp-orange-cta-hover); }
.btn-ghost { background: transparent; color: var(--ink-2); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--ink-3); }
.btn-dark { background: var(--tbp-brown); color: #fff; }
.btn-dark:hover { background: var(--tbp-brown-2); }
.btn-danger { color: #8a1c14; border-color: #f3c7c1; background: #fff; }
.btn-danger:hover { background: #fde0dc; }
.btn-sm { padding: 4px 9px; font-size: 12px; }

/* Pill */
.pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: var(--r-pill);
  font-size: 11px; font-weight: 700; letter-spacing: 0.02em;
  text-transform: uppercase; line-height: 1.5;
}
.pill-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.pill.pending    { background: var(--st-pending-bg);   color: var(--st-pending-fg); }
.pill.approved   { background: var(--st-approved-bg);  color: var(--st-approved-fg); }
.pill.in_progress{ background: var(--st-progress-bg);  color: var(--st-progress-fg); }
.pill.completed  { background: var(--st-completed-bg); color: var(--st-completed-fg); }
.pill.declined   { background: var(--st-declined-bg);  color: var(--st-declined-fg); }
.pill.invoiced   { background: var(--st-invoiced-bg);  color: var(--st-invoiced-fg); }
.pill.paid       { background: var(--st-paid-bg);      color: var(--st-paid-fg); }
.pill.cancelled  { background: var(--st-cancelled-bg); color: var(--st-cancelled-fg); }
.pill.submitted  { background: var(--st-pending-bg);   color: var(--st-pending-fg); }
.pill.partially_approved { background: var(--st-progress-bg); color: var(--st-progress-fg); }
.pill.done       { background: var(--st-approved-bg);  color: var(--st-approved-fg); }
.pill.skipped    { background: var(--st-cancelled-bg); color: var(--st-cancelled-fg); }
.pill.confirmed  { background: var(--st-paid-bg);      color: var(--st-paid-fg); }

.pill-soft {
  background: var(--surface-2); color: var(--ink-2);
  border: 1px solid var(--line); text-transform: none; letter-spacing: 0;
  font-weight: 500;
}

/* Card */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-1);
}

/* Inputs */
.input, .select, .textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: #fff;
  font-size: 13px;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--tbp-orange);
  box-shadow: 0 0 0 3px rgba(198,123,41,0.18);
}

/* Scrollbar — subtle */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #d8d2c5; border-radius: 6px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--ink-4); }
::-webkit-scrollbar-track { background: transparent; }

/* App shell */
.tbp-shell {
  display: grid;
  grid-template-columns: 232px 1fr;
  height: 100vh;
  overflow: hidden;
}
.tbp-sidebar {
  background: var(--tbp-brown);
  color: #f4ece0;
  display: flex; flex-direction: column;
  position: relative;
  overflow: hidden;
}
.tbp-sidebar::after {
  content: '';
  position: absolute; left: 16px; right: 16px; top: 56px;
  height: 1px; background: rgba(255,255,255,0.08);
}
.tbp-brand {
  padding: 14px 16px;
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 15px; letter-spacing: -0.01em;
  color: #fff;
}
.tbp-brand-mark {
  width: 28px; height: 28px; border-radius: 7px;
  background: linear-gradient(135deg, var(--tbp-orange) 0%, var(--tbp-orange-cta) 100%);
  display: grid; place-items: center;
  font-weight: 800; color: #fff; font-size: 13px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 2px 4px rgba(0,0,0,0.2);
}
.tbp-nav {
  flex: 1;
  padding: 16px 8px;
  display: flex; flex-direction: column; gap: 1px;
  overflow-y: auto;
}
.tbp-nav-section {
  font-size: 10px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(255,255,255,0.4);
  padding: 14px 12px 6px;
}
.tbp-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 12px; border-radius: var(--r-sm);
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  font-size: 13px; font-weight: 500;
  transition: background 0.12s, color 0.12s;
}
.tbp-nav a:hover { background: rgba(255,255,255,0.06); color: #fff; }
.tbp-nav a.active {
  background: rgba(198,123,41,0.18); color: #fff;
  box-shadow: inset 2px 0 0 var(--tbp-orange);
}
.tbp-nav a .badge {
  margin-left: auto;
  background: var(--tbp-orange); color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 1px 6px; border-radius: var(--r-pill);
  min-width: 18px; text-align: center;
}
.tbp-nav-icon {
  width: 16px; height: 16px; opacity: 0.85;
  flex-shrink: 0;
}
.tbp-sidebar-foot {
  padding: 12px 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; gap: 10px;
}
.tbp-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, #d4956a, #a5661d);
  display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 12px;
  flex-shrink: 0;
}
.tbp-sidebar-foot .name { font-size: 13px; font-weight: 600; color: #fff; line-height: 1.2; }
.tbp-sidebar-foot .role { font-size: 11px; color: rgba(255,255,255,0.5); }

.tbp-main {
  display: flex; flex-direction: column;
  min-width: 0; min-height: 0;
  overflow: hidden;
}
.tbp-topbar {
  height: 52px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  display: flex; align-items: center; gap: 16px;
  padding: 0 20px;
  flex-shrink: 0;
}
.tbp-topbar .crumbs {
  font-size: 13px; color: var(--ink-3);
  display: flex; align-items: center; gap: 6px;
}
.tbp-topbar .crumbs strong { color: var(--ink); font-weight: 600; }
.tbp-topbar .search {
  margin-left: auto;
  position: relative;
}
.tbp-topbar .search input {
  width: 280px;
  padding: 6px 10px 6px 30px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg);
  font-size: 13px;
}
.tbp-topbar .search input:focus { outline: none; background: #fff; border-color: var(--line-strong); }
.tbp-topbar .search svg {
  position: absolute; left: 9px; top: 50%; transform: translateY(-50%);
  color: var(--ink-4); width: 14px; height: 14px;
}

.tbp-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

/* Role switcher banner */
.role-switcher {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-pill); padding: 3px;
  box-shadow: var(--sh-1);
}
.role-chip {
  padding: 5px 12px; border-radius: var(--r-pill);
  font-size: 12px; font-weight: 600; color: var(--ink-3);
  border: none; background: transparent;
  display: flex; align-items: center; gap: 6px;
  transition: all 0.15s;
}
.role-chip:hover { color: var(--ink); }
.role-chip.active {
  background: var(--tbp-brown); color: #fff;
  box-shadow: inset 0 0 0 1px var(--tbp-brown-2);
}
.role-chip.active::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--tbp-orange);
}

/* Section heading */
.h-page { font-size: 22px; font-weight: 700; letter-spacing: -0.015em; margin: 0; line-height: 1.2; }
.h-section { font-size: 13px; font-weight: 600; color: var(--ink-2); letter-spacing: 0.01em; margin: 0; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }

/* KPI cards */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.kpi {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 16px;
  position: relative;
  overflow: hidden;
}
.kpi-label { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.kpi-value { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin-top: 4px; color: var(--ink); }
.kpi-sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.kpi-trend { font-size: 11px; font-weight: 600; }
.kpi-trend.up { color: #1f5a1c; }
.kpi-trend.down { color: #8a1c14; }
.kpi.accent::after {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--tbp-orange);
}

/* WO list table */
.wo-table {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--sh-1);
}
.wo-table-head {
  display: grid;
  grid-template-columns: 90px 1fr 200px 130px 110px 110px 32px;
  gap: 12px;
  padding: 10px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ink-3);
}
.wo-row {
  display: grid;
  grid-template-columns: 90px 1fr 200px 130px 110px 110px 32px;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  align-items: center;
  cursor: pointer;
  transition: background 0.12s;
}
.wo-row:hover { background: var(--surface-2); }
.wo-row:last-child { border-bottom: none; }
.wo-row .wo-num {
  font-family: 'Inter', monospace;
  font-feature-settings: 'tnum';
  font-size: 12px; font-weight: 600;
  color: var(--tbp-orange-cta);
}
.wo-row .wo-title { font-size: 13px; font-weight: 600; line-height: 1.3; }
.wo-row .wo-sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.wo-row .wo-meta { font-size: 12px; color: var(--ink-2); }
.wo-row .wo-money { font-size: 13px; font-weight: 600; font-feature-settings: 'tnum'; text-align: right; }
.wo-row .chev { color: var(--ink-4); }

/* Property avatar */
.prop-av {
  width: 28px; height: 28px; border-radius: 6px;
  background: var(--tbp-cream);
  border: 1px solid var(--line);
  display: inline-grid; place-items: center;
  font-size: 11px; font-weight: 700;
  color: var(--tbp-brown);
  flex-shrink: 0;
}

/* Filter row */
.filter-row {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.chip {
  padding: 4px 10px; border-radius: var(--r-pill);
  font-size: 12px; font-weight: 500;
  border: 1px solid var(--line);
  background: #fff; color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 6px;
}
.chip:hover { border-color: var(--ink-4); }
.chip.active { background: var(--tbp-brown); color: #fff; border-color: var(--tbp-brown); }
.chip .count { color: var(--ink-4); font-weight: 600; }
.chip.active .count { color: rgba(255,255,255,0.6); }

/* Sticky right-side detail drawer */
.wo-drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(28,24,20,0.32);
  backdrop-filter: blur(2px);
  z-index: 100;
  opacity: 0; pointer-events: none;
  transition: opacity 0.22s;
}
.wo-drawer-overlay.open { opacity: 1; pointer-events: auto; }
.wo-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(960px, 96vw);
  background: var(--bg);
  box-shadow: var(--sh-pop);
  z-index: 101;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.32, 0.72, 0.16, 1);
}
.wo-drawer.open { transform: translateX(0); }

.wo-d-head {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 16px 24px;
  display: flex; align-items: flex-start; gap: 12px;
}
.wo-d-head-meta { flex: 1; min-width: 0; }
.wo-d-head .num { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tbp-orange-cta); }
.wo-d-head h2 { font-size: 19px; font-weight: 700; letter-spacing: -0.015em; margin: 2px 0 4px; line-height: 1.25; }
.wo-d-head .sub { font-size: 13px; color: var(--ink-3); }

.wo-d-body {
  flex: 1; overflow-y: auto;
  padding: 20px 24px 100px;
  display: grid; grid-template-columns: 1fr 320px; gap: 20px;
  align-items: start;
}
.wo-d-main { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.wo-d-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 0; }

.section { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); }
.section-head {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 8px;
}
.section-head .h-section { flex: 1; }
.section-body { padding: 14px 16px; }
.section-body.tight { padding: 0; }

/* Tasks list */
.task-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
}
.task-item:last-child { border-bottom: none; }
.task-check {
  width: 18px; height: 18px; border-radius: 5px;
  border: 1.5px solid var(--line-strong);
  display: grid; place-items: center;
  flex-shrink: 0;
  background: #fff;
}
.task-check.done {
  background: var(--st-approved-fg); border-color: var(--st-approved-fg);
  color: #fff;
}
.task-desc { font-size: 13px; color: var(--ink); line-height: 1.4; }
.task-meta { font-size: 11px; color: var(--ink-3); margin-top: 2px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.task-price { text-align: right; font-feature-settings: 'tnum'; }
.task-price .money { font-size: 14px; font-weight: 700; }
.task-price .label { font-size: 10px; color: var(--ink-3); letter-spacing: 0.04em; text-transform: uppercase; }

/* Photo grid */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}
.photo-tile {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--line);
  cursor: pointer;
}
.photo-tile img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.3s;
}
.photo-tile:hover img { transform: scale(1.04); }
.photo-tile-tag {
  position: absolute; top: 6px; left: 6px;
  font-size: 10px; font-weight: 600;
  padding: 2px 7px; border-radius: var(--r-pill);
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,0.85);
  color: var(--ink);
  letter-spacing: 0.02em;
}
.photo-tile-tag.problem { background: rgba(138,28,20,0.85); color: #fff; }
.photo-tile-tag.completion { background: rgba(31,90,28,0.85); color: #fff; }
.photo-tile-overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px 8px 6px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff; font-size: 10px;
  display: flex; align-items: center; justify-content: space-between;
  opacity: 0; transition: opacity 0.18s;
}
.photo-tile:hover .photo-tile-overlay { opacity: 1; }

/* Activity timeline */
.timeline { position: relative; padding-left: 22px; }
.timeline::before {
  content: ''; position: absolute;
  left: 7px; top: 6px; bottom: 6px;
  width: 1px; background: var(--line-strong);
}
.timeline-item { position: relative; padding-bottom: 14px; }
.timeline-item::before {
  content: ''; position: absolute;
  left: -19px; top: 4px;
  width: 9px; height: 9px; border-radius: 50%;
  background: #fff; border: 2px solid var(--ink-4);
}
.timeline-item.accent::before { border-color: var(--tbp-orange-cta); background: var(--tbp-orange); }
.timeline-item .ti-text { font-size: 12px; line-height: 1.45; color: var(--ink-2); }
.timeline-item .ti-text strong { color: var(--ink); font-weight: 600; }
.timeline-item .ti-time { font-size: 11px; color: var(--ink-4); margin-top: 1px; }

/* Chat */
.chat-msg { display: flex; gap: 8px; margin-bottom: 10px; }
.chat-msg .av { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; }
.chat-bubble {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 4px 12px 12px 12px;
  padding: 7px 11px;
  font-size: 13px;
  max-width: 80%;
}
.chat-msg.me { flex-direction: row-reverse; }
.chat-msg.me .chat-bubble {
  background: var(--tbp-brown); color: #fff; border-color: var(--tbp-brown);
  border-radius: 12px 4px 12px 12px;
}
.chat-msg .who { font-size: 11px; color: var(--ink-3); margin-bottom: 2px; font-weight: 600; }
.chat-msg.me .who { text-align: right; color: var(--ink-3); }

/* Money summary */
.money-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 6px 0;
  font-size: 13px;
  border-bottom: 1px dashed var(--line);
}
.money-row:last-child { border-bottom: none; }
.money-row.total {
  border-bottom: none; padding-top: 10px;
  border-top: 1px solid var(--line);
  margin-top: 4px;
}
.money-row.total .label { font-weight: 600; color: var(--ink); }
.money-row.total .val { font-size: 17px; font-weight: 700; font-feature-settings: 'tnum'; color: var(--ink); }
.money-row .label { color: var(--ink-3); }
.money-row .val { font-feature-settings: 'tnum'; font-weight: 600; color: var(--ink-2); }

/* Approval panel */
.approval-panel {
  background: linear-gradient(135deg, #fff7e6 0%, #ffe8c2 100%);
  border: 1px solid #f3c97a;
  border-radius: var(--r-md);
  padding: 14px 16px;
}
.approval-panel .hd { font-weight: 700; font-size: 13px; color: var(--st-pending-fg); margin-bottom: 8px; }

/* Kanban */
.kanban {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  align-items: start;
}
.kanban-col {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px;
  min-height: 200px;
}
.kanban-col h4 {
  margin: 0 0 10px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3);
  display: flex; align-items: center; justify-content: space-between;
}
.kanban-col h4 .count {
  background: #fff; color: var(--ink-2);
  padding: 1px 8px; border-radius: var(--r-pill);
  font-size: 11px;
  border: 1px solid var(--line);
}
.k-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 10px 11px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: box-shadow 0.15s, transform 0.15s;
}
.k-card:hover { box-shadow: var(--sh-2); transform: translateY(-1px); }
.k-card .num { font-size: 10px; font-weight: 700; color: var(--tbp-orange-cta); letter-spacing: 0.04em; }
.k-card .ti { font-size: 13px; font-weight: 600; line-height: 1.3; margin: 2px 0 6px; }
.k-card .me { font-size: 11px; color: var(--ink-3); }
.k-card .ft {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 8px; padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 11px;
}

/* Cards layout */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 12px;
}
.wo-card-full {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.15s, transform 0.15s, border-color 0.15s;
}
.wo-card-full:hover { box-shadow: var(--sh-2); transform: translateY(-2px); border-color: var(--line-strong); }
.wo-card-full .hero {
  height: 88px;
  background-size: cover; background-position: center;
  position: relative;
}
.wo-card-full .hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(transparent 40%, rgba(0,0,0,0.55));
}
.wo-card-full .hero .num {
  position: absolute; top: 10px; left: 12px;
  background: rgba(255,255,255,0.92); color: var(--tbp-orange-cta);
  font-size: 11px; font-weight: 700; padding: 2px 8px;
  border-radius: var(--r-pill); letter-spacing: 0.04em;
}
.wo-card-full .hero .pill {
  position: absolute; top: 10px; right: 10px;
}
.wo-card-full .body { padding: 12px 14px 14px; }
.wo-card-full .ti { font-size: 14px; font-weight: 700; line-height: 1.3; }
.wo-card-full .me { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.wo-card-full .stats {
  display: flex; gap: 10px; margin-top: 10px;
  padding-top: 10px; border-top: 1px solid var(--line);
  font-size: 11px;
  align-items: center;
}
.wo-card-full .stat { color: var(--ink-2); display: flex; align-items: center; gap: 4px; }
.wo-card-full .stat strong { color: var(--ink); }
