/* Nichols Crowder deal board
   Navy and white, thin rules, square-ish corners. Orange is kept for agent fees only.
   Tenorite where installed (Microsoft Office font), Figtree otherwise. */
:root {
  --navy: #0D3451;
  --navy-deep: #0A2A42;
  --navy-2: #1F4E73;
  --navy-tint: #EDF1F5;
  --navy-hover: #E3E9EF;
  --ink: #0F1E2B;
  --ink-2: #33475A;
  --muted: #5E6E7D;
  --faint: #8A98A5;
  --line: #D3DBE2;
  --line-soft: #E6EBF0;
  --canvas: #F1F4F7;
  --surface: #F7F9FB;
  --white: #FFFFFF;
  --orange: #D9772F;
  --fee-bg: #FCEBDD;
  --fee-line: #F3CFAF;
  --fee-ink: #A9541C;
  --fee-strong: #8C4211;
  --orange-deep: #B8611F;
  --orange-wash: #FCEBDD;
  --orange-line: #F3CFAF;
  --orange-ink: #9A4C17;
  --good: #1D6B3A;
  --good-wash: #E8F4EC;
  --amber: #93570A;
  --amber-wash: #FFF5E5;
  --danger: #B42318;
  --danger-wash: #FDEDEB;
  --font: "Tenorite", "Figtree", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --r: 3px;
  --r-lg: 4px;
  --side-w: 272px;
  --rail-w: 60px;
  --shadow-pop: 0 12px 32px rgba(10, 42, 66, .18), 0 0 0 1px rgba(10, 42, 66, .08);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: inherit; }
html { height: 100%; scroll-padding-top: env(safe-area-inset-top, 0px); }
body {
  margin: 0; height: 100%; display: flex; flex-direction: column;
  font: 15px/1.45 var(--font); color: var(--ink); background: var(--canvas);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-variant-numeric: tabular-nums;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--navy-2); outline-offset: 2px; }
.topbar :focus-visible { outline-color: var(--white); }
::selection { background: rgba(31, 78, 115, .2); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
[hidden] { display: none !important; }
.icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Buttons and inputs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 16px; border-radius: var(--r); border: 1px solid transparent;
  font-weight: 600; font-size: 14.5px; text-decoration: none; white-space: nowrap; user-select: none;
  transition: background-color .12s, border-color .12s, color .12s;
}
.btn:disabled { opacity: .55; cursor: default; }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover:not(:disabled) { background: var(--navy-2); }
.btn-plain { background: var(--white); border-color: var(--line); color: var(--navy); }
.btn-plain:hover { border-color: var(--navy); }
.btn-danger-plain { background: var(--white); border-color: #E8C4BF; color: var(--danger); width: 100%; }
.btn-danger-plain:hover { background: var(--danger-wash); }
.btn-advance { width: 100%; margin-top: 8px; background: var(--navy); color: var(--white); }
.btn-advance::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 1.8px 1.8px 0 0; transform: rotate(45deg); margin-left: 2px; }
.btn-advance:hover { background: var(--navy-2); }
.cm-advance-mobile { display: none; }
.link-btn {
  background: none; border: 0; padding: 2px 0; color: var(--navy); font-weight: 600; font-size: 13px;
  text-decoration: underline; text-decoration-color: rgba(13, 52, 81, .3); text-underline-offset: 3px;
}
.link-btn:hover { text-decoration-color: currentColor; }
.link-btn.danger { color: var(--danger); text-decoration-color: rgba(180, 35, 24, .3); }
.icon-btn { background: none; border: 0; padding: 6px; border-radius: var(--r); color: var(--muted); display: inline-flex; }
.icon-btn:hover:not(:disabled) { background: var(--navy-tint); color: var(--navy); }
.icon-btn:disabled { opacity: .3; cursor: default; }

.composer-input, .list-add input, .add-row input, .add-row select, .add-item input, .comment-input, .desc-input, .field-input,
.admin-table input[type="text"], .admin-table input[type="email"], .admin-table select, .due-row input, .stage-select,
.side-field input, .side-field select {
  border: 1px solid var(--line); border-radius: var(--r); background: var(--white);
  padding: 8px 11px; min-height: 40px; width: 100%; transition: border-color .12s, box-shadow .12s;
}
.composer-input:hover, .add-item input:hover, .comment-input:hover, .desc-input:hover, .field-input:hover, .stage-select:hover,
.due-row input:hover, .side-field input:hover, .side-field select:hover { border-color: #AEBCC8; }
.composer-input:focus, .list-add input:focus, .add-row input:focus, .add-item input:focus, .comment-input:focus, .desc-input:focus,
.field-input:focus, .admin-table input:focus, .admin-table select:focus, .due-row input:focus, .stage-select:focus,
.side-field input:focus, .side-field select:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(13, 52, 81, .1);
}
select.stage-select, .admin-table select, .add-row select, .side-field select {
  appearance: none; padding-right: 32px;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%230D3451' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") no-repeat right 11px center / 11px;
}
input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--navy); margin: 0; flex: none; }

/* ---------- Top bar ---------- */
.topbar {
  flex: none; display: flex; align-items: center; gap: 16px; height: 56px;
  padding: 0 20px; background: var(--navy); color: var(--white); position: relative; z-index: 20;
}
.menu-btn { display: none; background: none; border: 0; color: var(--white); padding: 8px; margin-left: -8px; border-radius: var(--r); }
.menu-btn .icon { width: 22px; height: 22px; }
.brand { display: flex; align-items: baseline; gap: 14px; min-width: 0; }
.brand-org { font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .7); white-space: nowrap; padding-right: 14px; border-right: 1px solid rgba(255, 255, 255, .22); line-height: 18px; }
.brand-board { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -.005em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-actions { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.live { font-size: 12.5px; color: rgba(255, 255, 255, .6); display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .3); }
.live.is-on { color: rgba(255, 255, 255, .85); }
.live.is-on::before { background: #7FD39B; }
.me { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.me-name { color: rgba(255, 255, 255, .9); white-space: nowrap; }

.avatar {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy); color: var(--white); font-size: 12.5px; font-weight: 700; letter-spacing: .02em; flex: none; border: 0;
}
.avatar-me { background: var(--white); color: var(--navy); }
.avatar-sm { width: 26px; height: 26px; font-size: 10.5px; }
.avatar-more { background: var(--navy-tint); color: var(--navy); }

/* ---------- Shell and sidebar ---------- */
.shell { flex: 1; min-height: 0; display: flex; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sidebar {
  flex: none; width: var(--rail-w); background: var(--white); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin;
  transition: width .18s var(--ease);
}
.sidebar.is-open { width: var(--side-w); }
.side-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 52px; padding: 0 10px 0 18px; border-bottom: 1px solid var(--line-soft); flex: none; }
.side-title { font-size: 12.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.sidebar:not(.is-open) .side-head { padding: 0; justify-content: center; }
.sidebar:not(.is-open) .side-title { display: none; }
.side-toggle { background: none; border: 0; color: var(--navy); width: 38px; height: 38px; border-radius: var(--r); display: grid; place-items: center; }
.side-toggle:hover { background: var(--navy-tint); }
.side-toggle .icon { width: 18px; height: 18px; }
.side-group { padding: 10px 10px; border-bottom: 1px solid var(--line-soft); }
.side-item {
  width: 100%; display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 10px;
  background: none; border: 0; border-radius: var(--r); color: var(--navy); font-size: 14.5px; font-weight: 600; text-align: left;
  position: relative; transition: background-color .12s;
}
.side-item .icon { width: 19px; height: 19px; }
.side-item:hover { background: var(--navy-tint); }
.side-item.is-primary { background: var(--navy); color: var(--white); }
.side-item.is-primary:hover { background: var(--navy-2); }
.side-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar:not(.is-open) .side-item { justify-content: center; padding: 0; }
.sidebar:not(.is-open) .side-label { display: none; }
.side-badge {
  margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--navy); color: var(--white);
  font-size: 11px; font-weight: 700; display: grid; place-items: center;
}
.sidebar:not(.is-open) .side-badge { position: absolute; top: 4px; right: 4px; margin: 0; }
.side-panel { padding: 6px 4px 6px 10px; display: flex; flex-direction: column; gap: 12px; }
.side-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.side-field > span { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.side-field input, .side-field select { min-height: 38px; font-size: 14px; }
.side-note { margin: 0; font-size: 12.5px; color: var(--muted); padding: 2px 4px 0 10px; }
.side-panel .side-note { padding: 0; }
.size-presets { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.size-chip {
  border: 1px solid var(--line); background: var(--white); border-radius: var(--r); padding: 7px 6px; font-size: 13px; font-weight: 600; color: var(--ink-2);
  transition: border-color .12s, background-color .12s, color .12s;
}
.size-chip:hover { border-color: var(--navy); color: var(--navy); }
.size-chip.is-on { background: var(--navy); border-color: var(--navy); color: var(--white); }
.size-range { display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px; align-items: end; }
.size-dash { font-size: 12.5px; color: var(--muted); padding-bottom: 11px; }
.side-links { display: flex; flex-direction: column; padding: 2px 0 4px 41px; }
.side-link { background: none; border: 0; text-align: left; padding: 6px 8px; margin-left: -8px; border-radius: var(--r); font-size: 13.5px; color: var(--ink-2); }
.side-link:hover { background: var(--navy-tint); color: var(--navy); }
.side-foot { margin-top: auto; padding: 10px; display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line-soft); }
.side-foot .side-item { color: var(--muted); font-weight: 500; }
.side-clear { width: 100%; }
.side-scrim { display: none; }

.filterbar {
  flex: none; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding: 9px 20px;
  background: var(--white); color: var(--ink-2); font-size: 14px; border-bottom: 1px solid var(--line);
}
.filterbar::before { content: ""; width: 3px; align-self: stretch; background: var(--navy); margin: -9px 0 -9px -20px; }

/* ---------- Board and lists ---------- */
.board {
  flex: 1; min-height: 0; display: flex; align-items: flex-start; gap: 14px;
  padding: 18px 20px 20px; overflow-x: auto; overflow-y: hidden;
}
.board-loading { color: var(--muted); }
.list {
  flex: none; width: 308px; max-height: 100%; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.list.is-flash { outline: 2px solid var(--navy); outline-offset: 2px; }
.list-head { padding: 14px 14px 14px; background: var(--white); border-bottom: 1px solid var(--line); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.list-title-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 30px; }
.list-name { margin: 0; font-size: 16.5px; font-weight: 700; color: var(--navy); letter-spacing: -.005em; overflow-wrap: anywhere; }
.list-add-btn { margin-right: -6px; color: var(--navy); }

.stats { display: flex; margin-top: 12px; border: 1px solid var(--line-soft); border-radius: var(--r); }
.stat { flex: 1 1 0; }
.stat:last-child { flex: 0 0 62px; }
.stat { display: flex; flex-direction: column; gap: 3px; padding: 8px 10px 9px; min-width: 0; }
.stat + .stat { border-left: 1px solid var(--line-soft); }
.stat-label { font-size: 11.5px; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-figure { font-size: 16.5px; font-weight: 700; color: var(--navy); line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.01em; }
.stat:last-child .stat-figure { color: var(--ink-2); }

.fees { margin-top: 10px; }
.fees-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.fee-tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-width: 0;
  background: var(--fee-bg); color: var(--fee-ink); border: 1px solid var(--fee-line); border-radius: var(--r); padding: 4px 8px 5px; text-align: left;
  transition: background-color .12s, border-color .12s;
}
.fee-tile:hover { border-color: var(--fee-ink); }
.fee-tile.is-active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.fee-tile.is-active .fee-amount { color: var(--white); }
.fee-code { font-size: 10.5px; font-weight: 700; letter-spacing: .05em; line-height: 1.3; }
.fee-amount { font-size: 15px; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; white-space: nowrap; color: var(--fee-strong); }
.list-cards { flex: 1 1 auto; min-height: 12px; overflow-y: auto; padding: 10px 10px 4px; display: flex; flex-direction: column; gap: 8px; scrollbar-width: thin; }
.list-empty { margin: 0; padding: 18px 14px; text-align: center; font-size: 13px; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--r); background: var(--white); }

/* ---------- Cards ---------- */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; flex: none;
  cursor: pointer; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: manipulation;
  transition: border-color .12s, box-shadow .12s;
}
.card:hover { border-color: var(--navy-2); box-shadow: 0 2px 8px rgba(10, 42, 66, .08); }
.card:focus-visible { outline: none; border-color: var(--navy); box-shadow: 0 0 0 2px rgba(13, 52, 81, .25); }
.card-cover { background: var(--navy-tint); border-bottom: 1px solid var(--line-soft); }
.card-cover img { display: block; width: 100%; height: 104px; object-fit: cover; pointer-events: none; }
.card-body { padding: 11px 12px 11px; }
.card-labels { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 7px; }
.card-label { font-size: 11px; font-weight: 700; padding: 0 7px; border-radius: 2px; line-height: 18px; min-height: 18px; letter-spacing: .01em; }
.card-title { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.28; color: var(--ink); overflow-wrap: anywhere; letter-spacing: -.005em; }
.card-suburb { margin: 1px 0 0; font-size: 13px; color: var(--muted); }
.card-figures { margin: 10px 0 0; padding-top: 9px; border-top: 1px solid var(--line-soft); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 10px; }
.card-figures div { min-width: 0; }
.card-figures dt { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-figures dd { margin: 1px 0 0; font-size: 14.5px; font-weight: 700; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.01em; }
.card-splits { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.card-splits span { display: inline-flex; align-items: baseline; gap: 4px; background: var(--orange-wash); color: var(--orange-ink); border-radius: 2px; padding: 0 6px; font-size: 12px; line-height: 20px; font-weight: 600; }
.card-splits b { font-weight: 700; letter-spacing: .03em; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.badges { display: flex; flex-wrap: wrap; gap: 4px 9px; color: var(--muted); font-size: 12.5px; }
.badge { display: inline-flex; align-items: center; gap: 4px; }
.badge .icon { width: 14px; height: 14px; }
.badge.is-done { color: var(--good); }
.badge.is-overdue { color: var(--danger); font-weight: 700; background: var(--danger-wash); padding: 0 5px; border-radius: 2px; margin-left: -2px; }
.avatars { display: flex; flex: none; }
.avatars .avatar + .avatar { margin-left: -6px; box-shadow: 0 0 0 2px var(--white); }

.composer { padding: 6px 10px 10px; }
.composer-open { width: 100%; display: flex; align-items: center; gap: 7px; background: none; border: 0; border-radius: var(--r); padding: 9px 8px; color: var(--muted); font-weight: 600; text-align: left; transition: background-color .12s, color .12s; }
.composer-open:hover { background: var(--navy-hover); color: var(--navy); }
.composer-input { resize: none; display: block; }
.composer-actions { display: flex; gap: 8px; margin-top: 8px; }
.list-add { background: transparent; border-style: dashed; padding: 14px; gap: 8px; }
.list-add .btn { width: 100%; }

.card-placeholder { flex: none; border-radius: var(--r); background: var(--navy-tint); border: 1.5px dashed var(--navy-2); }
.card.is-drag-source { display: none; }
.drag-ghost { position: fixed; left: 0; top: 0; z-index: 1000; pointer-events: none; box-shadow: var(--shadow-pop); border-color: var(--navy); }
body.is-dragging, body.is-dragging * { cursor: grabbing !important; }

.empty-board { max-width: 460px; padding: 24px 26px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); }
.empty-board h2 { margin: 0 0 6px; font-size: 20px; color: var(--navy); }
.empty-board p { margin: 0 0 4px; color: var(--ink-2); }

/* ---------- Modal ---------- */
body.has-modal { overflow: hidden; }
.backdrop {
  position: fixed; inset: 0; z-index: 500; background: rgba(10, 42, 66, .55); overflow-y: auto; overscroll-behavior: contain;
  padding: calc(36px + env(safe-area-inset-top, 0px)) 18px calc(36px + env(safe-area-inset-bottom, 0px));
  animation: fade .14s ease-out;
}
.modal { position: relative; margin: 0 auto; background: var(--white); border-radius: var(--r-lg); max-width: 940px; box-shadow: 0 24px 64px rgba(10, 42, 66, .3); animation: rise .18s var(--ease); }
.settings-modal { max-width: 1000px; }
.form-modal { max-width: 640px; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 3; width: 36px; height: 36px; border-radius: var(--r); border: 1px solid var(--line);
  background: var(--white); color: var(--navy); display: grid; place-items: center;
}
.modal-close:hover { border-color: var(--navy); }
.modal-close .icon { width: 17px; height: 17px; }
.modal-loading { padding: 48px 28px; color: var(--muted); margin: 0; }

.cm-cover { margin: 0; background: var(--navy-deep); border-radius: var(--r-lg) var(--r-lg) 0 0; overflow: hidden; }
.cm-cover a { display: block; }
.cm-cover img { display: block; width: 100%; height: 260px; object-fit: cover; }
.cm-head { padding: 22px 64px 18px 28px; border-bottom: 1px solid var(--line); }
.cm-kicker { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.stage-pill { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 2px; background: var(--navy); color: var(--white); font-size: 12.5px; font-weight: 700; }
.cm-updated { font-size: 13px; color: var(--muted); }
.tag-archived { background: var(--amber-wash); color: var(--amber); height: 24px; display: inline-flex; align-items: center; padding: 0 9px; border-radius: 2px; font-size: 12.5px; font-weight: 700; }
.cm-title {
  display: block; width: calc(100% + 12px); margin: 0 0 0 -6px; padding: 2px 6px; border: 1px solid transparent; border-radius: var(--r);
  font-size: 27px; font-weight: 700; line-height: 1.15; color: var(--navy); background: none; resize: none; overflow: hidden; letter-spacing: -.012em;
}
.cm-title:hover { border-color: var(--line); }
.cm-title:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px rgba(13, 52, 81, .1); }
.cm-title-static { width: auto; margin: 0; padding: 0; }

.cm-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 268px; border-radius: 0 0 var(--r-lg) var(--r-lg);
  background: linear-gradient(to left, var(--surface) 267px, var(--line) 267px, var(--line) 268px, transparent 268px);
}
.cm-main { padding: 4px 28px 28px; min-width: 0; }
.cm-aside { padding: 22px 22px 28px; display: flex; flex-direction: column; gap: 22px; position: sticky; top: 0; align-self: start; }
.meta-block h4 { margin: 0 0 8px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.meta-value { margin: 0; font-weight: 700; }
.meta-actions { padding-top: 18px; border-top: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chips .link-btn { margin-left: 2px; }
.chip { background: var(--white); border: 1px solid var(--line); border-radius: 2px; padding: 2px 10px; font-size: 13px; }
.chips-spaced { margin-bottom: 20px; }
.person { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; width: 100%; }
.picker { display: flex; flex-direction: column; align-items: stretch; gap: 2px; margin-top: 10px; padding: 4px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); }
.pick { border: 0; background: none; border-radius: 2px; padding: 6px 8px; display: flex; align-items: center; gap: 8px; text-align: left; position: relative; }
.pick:hover { background: var(--surface); }
.pick.is-on { background: var(--navy-tint); }
.pick.is-on::after { content: ""; position: absolute; right: 10px; top: 50%; width: 6px; height: 11px; border: solid var(--navy); border-width: 0 2px 2px 0; transform: translateY(-65%) rotate(45deg); }
.pick-person { font-size: 14px; }
.due-row { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.due-row input[type="date"] { width: 100%; }
.is-overdue-input { border-color: var(--danger) !important; color: var(--danger); background: var(--danger-wash) !important; }
.is-overdue-text { color: var(--danger); font-weight: 700; }
.check-inline { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }

.cm-section { padding-top: 24px; }
.cm-h { margin: 0 0 12px; font-size: 16px; font-weight: 700; color: var(--navy); letter-spacing: -.005em; padding-bottom: 8px; border-bottom: 1px solid var(--line-soft); }
.field-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px 14px; }
.field-grid.is-agents { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field-wide { flex: 1; }
.field-name { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.field-name .unit { font-weight: 400; color: var(--muted); }
.field-value { font-size: 17px; font-weight: 700; color: var(--navy); }
.field-input { font-size: 15.5px; font-weight: 700; color: var(--navy); letter-spacing: -.005em; }
.field-input-text { font-weight: 600; color: var(--ink); }
.field-input::placeholder { color: #A9B5C0; font-weight: 500; }
.is-agents .field-input { text-align: right; }
.is-agents .field-input.has-value { background: var(--orange-wash); border-color: var(--orange-line); color: var(--orange-ink); }
.is-agents .field-input:focus { background: var(--white); }
.is-agents .field-name { font-weight: 700; font-size: 13px; color: var(--navy); letter-spacing: .04em; }

.alloc { margin-top: 14px; }
.alloc-bar { height: 6px; border-radius: 1px; background: var(--navy-tint); overflow: hidden; }
.alloc-bar span { display: block; height: 100%; width: 0; background: var(--navy-2); transition: width .3s var(--ease); }
.alloc.is-ok .alloc-bar span { background: var(--navy); }
.alloc.is-under .alloc-bar span { background: var(--orange); }
.alloc.is-over .alloc-bar span { background: var(--danger); }
.split-check { font-size: 13.5px; color: var(--muted); margin: 7px 0 0; }
.alloc.is-ok .split-check { color: var(--good); }
.alloc.is-under .split-check { color: var(--orange-ink); }
.alloc.is-over .split-check { color: var(--danger); }

.desc-input { resize: vertical; min-height: 92px; line-height: 1.55; }
.desc-static { white-space: pre-wrap; margin: 0; max-width: 72ch; color: var(--ink-2); }
.empty-note { margin: 0 0 12px; color: var(--muted); font-size: 14px; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.tile { margin: 0; position: relative; min-width: 0; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); overflow: hidden; }
.tile.is-cover { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); }
.tile-media { display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--navy-tint); text-decoration: none; overflow: hidden; }
.tile-media img { width: 100%; height: 100%; object-fit: cover; }
.tile-file span { font-size: 15px; font-weight: 700; color: var(--navy); letter-spacing: .04em; }
.tile-badge { position: absolute; top: 7px; left: 7px; background: var(--navy); color: var(--white); font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 2px; }
.tile figcaption { padding: 8px 10px 9px; display: flex; flex-direction: column; gap: 3px; border-top: 1px solid var(--line-soft); }
.tile-name { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.upload { display: flex; }

.progress-row { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.progress { flex: 1; height: 6px; background: var(--navy-tint); border-radius: 1px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--navy); transition: width .3s var(--ease); }
.checklist { list-style: none; margin: 0 0 6px; padding: 0; }
.checklist li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 4px 7px 0; border-bottom: 1px solid var(--line-soft); }
.checklist label { display: flex; align-items: center; gap: 10px; flex: 1; cursor: pointer; }
.checklist li.is-done span { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(94, 110, 125, .5); }
.checklist .icon-btn { opacity: 0; }
.checklist li:hover .icon-btn, .checklist .icon-btn:focus-visible { opacity: 1; }
@media (hover: none) { .checklist .icon-btn { opacity: 1; } }
.add-item, .add-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.add-item input { flex: 1; min-width: 160px; width: auto; }
.add-row input, .add-row select { flex: 1 1 160px; width: auto; }

.comment-form { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 18px; }
.comment-input { resize: none; min-height: 64px; }
.feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.feed-comment { display: flex; gap: 11px; }
.feed-main { flex: 1; min-width: 0; }
.feed-meta { display: flex; gap: 8px; align-items: baseline; font-size: 13.5px; flex-wrap: wrap; }
.feed-meta time, .feed-activity time { color: var(--muted); font-size: 12.5px; }
.feed-body { margin: 5px 0 0; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 9px 12px; white-space: pre-wrap; overflow-wrap: anywhere; max-width: 72ch; color: var(--ink-2); }
.feed-activity { font-size: 13.5px; color: var(--muted); padding-left: 37px; position: relative; }
.feed-activity::before { content: ""; position: absolute; left: 11px; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: #B3C0CB; }
.feed-activity b { color: var(--ink-2); font-weight: 600; }

/* New card form */
.new-card { padding: 26px 28px 26px; }
.new-card-top { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 14px; margin-bottom: 16px; }
.new-card .field-grid { padding-top: 16px; border-top: 1px solid var(--line-soft); }
.new-card > .muted { margin: 16px 0 0; }
.form-error { margin: 12px 0 0; background: var(--danger-wash); color: var(--danger); border-radius: var(--r); padding: 8px 12px; font-size: 14px; }
.form-actions { display: flex; gap: 8px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-soft); }

/* ---------- Settings ---------- */
.settings { padding: 26px 28px 30px; }
.settings-title { margin: 0 0 16px; font-size: 24px; font-weight: 700; color: var(--navy); letter-spacing: -.012em; }
.tabs { display: flex; gap: 0; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tab { background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 12px; font-weight: 600; font-size: 14.5px; color: var(--muted); margin-bottom: -1px; }
.tab:hover { color: var(--navy); }
.tab.is-on { color: var(--navy); border-bottom-color: var(--navy); }
.settings-body > p { max-width: 72ch; color: var(--ink-2); margin-top: 0; }
.table-wrap { overflow-x: auto; margin: 12px 0; border: 1px solid var(--line); border-radius: var(--r); }
.admin-table { border-collapse: collapse; width: 100%; min-width: 700px; font-size: 14px; }
.admin-table th { text-align: left; font-size: 12.5px; font-weight: 700; color: var(--muted); padding: 9px 10px; background: var(--surface); border-bottom: 1px solid var(--line); white-space: nowrap; }
.admin-table td { padding: 6px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table tbody tr:hover td { background: #FAFBFC; }
.admin-table td.center { text-align: center; }
.admin-table .row-actions { white-space: nowrap; text-align: right; }
.admin-table .row-actions .link-btn { margin-left: 12px; }
.admin-table input[type="text"], .admin-table input[type="email"], .admin-table select { min-height: 36px; padding: 6px 9px; }
.admin-table select { padding-right: 30px; }
.admin-table .samples { color: var(--muted); max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-table tr.is-inactive td { opacity: .55; }
.input-narrow { width: 70px !important; }
.import-summary, .import-done, .photo-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px; margin: 16px 0; }
.import-summary p, .import-done p, .photo-panel p { margin: 4px 0; }
.import-done { background: var(--good-wash); border-color: #BFDDC9; }
.warn { background: var(--amber-wash); color: var(--amber); border-radius: var(--r); padding: 8px 12px; }
.samples-box { margin: 14px 0; }
.samples-box summary { cursor: pointer; font-weight: 600; color: var(--navy); }
.sample-card { padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.archived-list { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--r); }
.archived-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line-soft); }
.archived-list li:last-child { border-bottom: 0; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); z-index: 2000;
  transform: translate(-50%, 14px); opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s var(--ease);
  background: var(--navy-deep); color: var(--white); padding: 11px 18px; border-radius: var(--r); font-weight: 500; font-size: 14.5px;
  max-width: min(92vw, 540px); box-shadow: 0 10px 28px rgba(10, 42, 66, .28);
}
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }
.toast.is-error { background: var(--danger); }

/* ---------- Sign in ---------- */
.login-page { background: var(--navy); align-items: center; justify-content: center; padding: 24px; }
.login { width: 100%; max-width: 390px; background: var(--white); border-radius: var(--r-lg); padding: 32px 30px 30px; box-shadow: 0 30px 70px rgba(0, 0, 0, .3); }
.login-mark { display: flex; gap: 4px; align-items: flex-end; height: 30px; margin-bottom: 18px; }
.login-mark span { width: 10px; border-radius: 1px; background: var(--navy); }
.login-mark span:nth-child(1) { height: 30px; }
.login-mark span:nth-child(2) { height: 21px; background: var(--navy-2); }
.login-mark span:nth-child(3) { height: 13px; background: var(--orange); }
.login-org { margin: 0; color: var(--muted); font-weight: 600; font-size: 14px; }
.login-title { margin: 2px 0 22px; font-size: 30px; font-weight: 700; line-height: 1.1; color: var(--navy); letter-spacing: -.015em; }
.login-error { background: var(--danger-wash); color: var(--danger); border-radius: var(--r); padding: 10px 12px; font-size: 14px; }
.btn-ms { width: 100%; background: var(--navy); color: var(--white); min-height: 46px; }
.btn-ms svg { width: 18px; height: 18px; }
.btn-ms:hover { background: var(--navy-2); }
.login-or { text-align: center; color: var(--muted); font-size: 13px; margin: 18px 0 8px; }
.login-form { display: flex; flex-direction: column; gap: 14px; }
.login-form label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.login-form input { border: 1px solid var(--line); border-radius: var(--r); padding: 9px 12px; min-height: 44px; font-size: 16px; color: var(--ink); }
.login-form input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(13, 52, 81, .1); }
.login-form .btn { min-height: 46px; margin-top: 4px; }

/* ---------- Tablets ---------- */
@media (max-width: 900px) {
  .cm-layout { grid-template-columns: 1fr; background: none; }
  .cm-aside { order: -1; position: static; background: var(--surface); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px 22px; }
  .meta-actions { padding-top: 0; border-top: 0; align-self: end; }
}

/* ---------- Phones: the sidebar becomes a drawer ---------- */
@media (max-width: 720px) {
  .topbar { height: 54px; padding: 0 14px; gap: 10px; }
  .menu-btn { display: inline-flex; }
  .brand-org, .me-name, .live { display: none; }
  .brand-board { font-size: 18px; }
  .sidebar {
    position: fixed; z-index: 600; left: 0; top: 0; bottom: 0; width: min(86vw, 320px);
    padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
    transform: translateX(-100%); transition: transform .2s var(--ease); box-shadow: none;
  }
  .sidebar.is-open { width: min(86vw, 320px); transform: none; box-shadow: 0 0 40px rgba(10, 42, 66, .3); }
  .side-scrim { display: block; position: fixed; inset: 0; z-index: 590; background: rgba(10, 42, 66, .45); }
  .filterbar { padding: 8px 14px; }
  .filterbar::before { margin-left: -14px; }
  .board { padding: 12px 14px 14px; gap: 10px; scroll-snap-type: x mandatory; scroll-padding: 14px; }
  body.is-dragging .board { scroll-snap-type: none; }
  .list { width: min(86vw, 340px); scroll-snap-align: start; }
  .list-head { padding: 12px 12px 12px; }
  .stat { padding: 7px 8px 8px; }
  .stat-figure { font-size: 16px; }
  .list-cards { padding: 8px 8px 4px; }
  .card-cover img { height: 92px; }
  .backdrop { padding: 0; }
  .modal { border-radius: 0; min-height: 100%; max-width: none; animation: none; }
  .cm-cover { border-radius: 0; }
  .cm-cover img { height: 200px; }
  .cm-head { padding: 18px 58px 16px 18px; }
  .cm-title { font-size: 24px; }
  .cm-aside { padding: 20px 18px 24px; grid-template-columns: 1fr 1fr; order: 2; border-bottom: 0; border-top: 1px solid var(--line); }
  .cm-aside .btn-advance { display: none; }
  .cm-advance-mobile { display: flex; margin-top: 14px; min-height: 44px; }
  .cm-main { padding: 0 18px 26px; }
  .settings, .new-card { padding: 20px 18px 24px; }
  .new-card-top { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-grid.is-agents { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-input, .composer-input, .comment-input, .desc-input, .add-item input, .stage-select, .due-row input, .side-field input, .side-field select { font-size: 16px; }
}
@media (max-width: 420px) { .cm-aside { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Boards, calculated figures, import choices */
.side-caption { margin: 2px 10px 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.side-board { font-weight: 500; color: var(--ink-2); height: 38px; }
.side-board .icon { width: 17px; height: 17px; color: var(--faint); }
.side-board.is-current { background: var(--navy-tint); color: var(--navy); font-weight: 700; }
.side-board.is-current .icon { color: var(--navy); }
.side-add-board { margin: 4px 0 0 2px; color: var(--navy); font-weight: 600; }
.field.is-calc .calc-value { display: flex; align-items: center; min-height: 40px; padding: 0 11px; border: 1px dashed var(--line); border-radius: var(--r); background: var(--surface); font-weight: 700; color: var(--ink-2); }
.map-note { font-size: 12px; color: var(--navy-2); margin-top: 2px; }
.import-target { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 24px; margin: 18px 0 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.import-target .side-field { min-width: 260px; }
.board-row { margin: 0 0 14px; }
.board-name-field { flex: 1 1 260px; }

/* Coloured details (deal type, sector, business) */
.tag { display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; padding: 0 7px; border-radius: 2px; line-height: 18px; min-height: 18px; letter-spacing: .01em; white-space: nowrap; }
.tag-lg { font-size: 12.5px; line-height: 24px; padding: 0 9px; align-self: flex-start; }
.choice-select { border-left-width: 4px; }
.choice-select.has-value { font-weight: 700; color: var(--ink); }
.is-parties { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.is-parties .field-input { font-weight: 500; color: var(--ink); font-size: 15px; }
.choices { padding: 8px 4px 10px; display: flex; flex-direction: column; gap: 8px; }
.choice { display: flex; align-items: center; gap: 10px; }
.choice input[type="text"] { max-width: 240px; }
.choice input[type="color"], .choices .add-row input[type="color"] { width: 40px; min-width: 40px; height: 34px; padding: 2px; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); flex: none; }
.choices-row td { background: var(--surface) !important; }

/* Column tools and full-page column */
.list-tools { display: flex; align-items: center; gap: 2px; margin-right: -6px; }
.list-tools .icon-btn { color: var(--navy); }
.btn-sm { min-height: 32px; padding: 0 10px; font-size: 13.5px; gap: 6px; }
.board.is-focus { overflow: hidden; padding: 16px 20px 18px; }
.board.is-focus .list { width: 100%; height: 100%; }
.board.is-focus .list-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.board.is-focus .list-name { font-size: 20px; }
.board.is-focus .stats { max-width: 560px; }
.board.is-focus .fees-grid { grid-template-columns: repeat(9, minmax(84px, 1fr)); }
.board.is-focus .list-cards { display: flex; flex-direction: column; gap: 12px; padding: 14px; }
.board.is-focus .composer { border-top: 1px solid var(--line); }
@media (max-width: 1100px) { .board.is-focus .fees-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 720px) { .board.is-focus { padding: 10px; } .board.is-focus .list { width: 100%; } .board.is-focus .fees-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Board activity */
.activity-modal { max-width: 760px; }
.act-kinds { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; }
.act-kinds .size-chip { padding: 6px 11px; }
.act-day { margin-bottom: 18px; }
.act-list { list-style: none; margin: 0; padding: 0; }
.act-row { display: flex; gap: 11px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.act-row:last-child { border-bottom: 0; }
.act-main { min-width: 0; }
.act-text { margin: 0; font-size: 14px; color: var(--ink-2); overflow-wrap: anywhere; }
.act-text b { color: var(--ink); }
.act-card { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--navy); text-decoration: underline; text-decoration-color: rgba(13, 52, 81, .3); text-underline-offset: 3px; cursor: pointer; }
.act-card:hover { text-decoration-color: currentColor; }
.act-meta { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }

/* Fee split by % */
.is-splits { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
.split .pct-wrap { position: relative; display: block; }
.split-input { text-align: right; padding-right: 26px; }
.split-input.has-value { background: var(--orange-wash); border-color: var(--orange-line); color: var(--orange-ink); }
.split-input.is-derived { color: var(--faint); font-style: italic; background: var(--white); border-color: var(--line); }
.split-input:focus { background: var(--white); color: var(--navy); font-style: normal; }
.pct-sign { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 13px; font-weight: 700; color: var(--muted); pointer-events: none; }
.split-amt { font-size: 13px; font-weight: 700; color: var(--orange-ink); text-align: right; padding-right: 2px; }
.split-pct-static { font-size: 16px; font-weight: 700; color: var(--navy); }
.new-split { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.new-split .cm-h { border-bottom: 0; padding-bottom: 0; margin-bottom: 4px; }
.new-split > .muted { margin: 0 0 10px; }
.split-total { margin: 8px 0 0; font-size: 13.5px; color: var(--orange-ink); min-height: 1em; }
.split-total.is-ok { color: var(--good); }

/* Date added (green, set automatically) */
.badge.badge-added { color: var(--good); font-weight: 600; background: var(--good-wash); padding: 0 6px; border-radius: 2px; margin-left: -2px; }
.added-pill { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 2px; background: var(--good-wash); color: var(--good); font-size: 12.5px; font-weight: 700; }
.added-pill .icon { width: 14px; height: 14px; }
.added-date { margin: 0; display: flex; align-items: center; gap: 7px; font-weight: 600; color: var(--good); }

/* Celebrations switch */
.side-switch .switch { margin-left: auto; width: 32px; height: 18px; border-radius: 9px; background: var(--line); position: relative; flex: none; transition: background-color .15s; }
.side-switch .switch span { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 2px rgba(10, 42, 66, .25); transition: transform .15s; }
.side-switch.is-on .switch { background: var(--navy); }
.side-switch.is-on .switch span { transform: translateX(14px); }
.side-switch.is-on .icon { color: #D4920F; }
.sidebar:not(.is-open) .side-switch .switch { display: none; }

/* Board colours. Navy is the default; the New Business board is green. */
:root[data-board-theme="green"] {
  --navy: #2F5D1F;
  --navy-deep: #213F15;
  --navy-2: #417A2A;
  --navy-tint: #EDF4E4;
  --navy-hover: #E1EDD3;
  --canvas: #F1F5EE;
}
:root[data-board-theme="green"] .topbar { border-bottom: 3px solid #A6CE38; }
:root[data-board-theme="green"] select.stage-select, :root[data-board-theme="green"] .admin-table select, :root[data-board-theme="green"] .add-row select, :root[data-board-theme="green"] .side-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%232F5D1F' stroke-width='1.6' fill='none'/%3E%3C/svg%3E");
}
.board-swatch { width: 14px; height: 14px; border-radius: 3px; flex: none; background: #0D3451; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.board-swatch.is-green { background: #2F5D1F; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1), inset 0 -4px 0 #A6CE38; }

/* Full-page column: each card is a full-width row, about the height of a normal card,
   with the photo filling the left quarter and everything larger */
.board.is-focus .card { display: grid; grid-template-columns: 25% minmax(0, 1fr); min-height: 236px; }
.board.is-focus .card-cover { border-bottom: 0; border-right: 1px solid var(--line-soft); position: relative; min-height: 100%; }
.board.is-focus .card-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.board.is-focus .card-cover-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--faint); font-size: 14px; font-weight: 600; background: var(--surface); }
.board.is-focus .card-cover-empty .icon { width: 30px; height: 30px; stroke-width: 1.5; }
.board.is-focus .card-body { padding: 18px 24px 16px; display: flex; flex-direction: column; min-width: 0; }
.board.is-focus .card-labels { gap: 6px; margin-bottom: 10px; }
.board.is-focus .card-labels .tag { font-size: 13px; line-height: 24px; min-height: 24px; padding: 0 10px; }
.board.is-focus .card-title { font-size: 26px; font-weight: 800; line-height: 1.15; letter-spacing: -.015em; color: var(--navy); }
.board.is-focus .card-suburb { font-size: 17px; margin-top: 3px; color: var(--ink-2); }
.board.is-focus .card-figures { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px 22px; margin-top: 14px; padding-top: 12px; }
.board.is-focus .card-figures dt { font-size: 13.5px; }
.board.is-focus .card-figures dd { font-size: 21px; margin-top: 2px; }
.board.is-focus .card-splits { gap: 6px; margin-top: 14px; }
.board.is-focus .card-splits span { font-size: 15px; line-height: 28px; padding: 0 10px; }
.board.is-focus .card-splits b { font-size: 15px; }
.board.is-focus .card-foot { margin-top: auto; padding-top: 14px; }
.board.is-focus .badges { font-size: 14.5px; gap: 6px 14px; }
.board.is-focus .badge .icon { width: 17px; height: 17px; }
.board.is-focus .avatar-sm { width: 32px; height: 32px; font-size: 12.5px; }
@media (max-width: 720px) {
  .board.is-focus .card { grid-template-columns: 32% minmax(0, 1fr); min-height: 190px; }
  .board.is-focus .card-body { padding: 12px 14px; }
  .board.is-focus .card-title { font-size: 20px; }
  .board.is-focus .card-suburb { font-size: 15px; }
  .board.is-focus .card-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
  .board.is-focus .card-figures dd { font-size: 17px; }
}
