/* RADAR. Navy and radar green from the chosen icon; U.S. Pave blue for actions. */
@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/barlow-condensed-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
:root {
  --asphalt: #0b2540; --asphalt-2: #123557; --asphalt-3: #1d446b; --deep: #071a2e; --green: #3ddc84; --green-lite: #8cffbf;
  --yellow: #f2b705; --yellow-soft: #fdf3cf;
  --blue: #005ca9; --blue-dark: #00467f; --blue-soft: #e6f0f8;
  --ink: #15181c; --muted: #58626e; --rule: #d6dbe0; --concrete: #eef1f3; --paper: #ffffff;
  --go: #1b7446; --go-soft: #e3f3ea; --stop: #b3261e; --stop-soft: #fbe9e7; --hold: #8a5a00; --hold-soft: #fdf3cf;
  --head: "Barlow Condensed", "Arial Narrow", Arial, sans-serif; --body: "Barlow", Arial, Helvetica, sans-serif;
  --rail: 224px; --r: 6px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.5 var(--body); color: var(--ink); background: var(--concrete); }
h1, h2, h3 { font-family: var(--head); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: 0.005em; }
h1 { font-size: 2.15rem; } h2 { font-size: 1.45rem; } h3 { font-size: 1.15rem; }
p { margin: 0 0 0.6em; } a { color: var(--blue); text-underline-offset: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); } .small { font-size: 0.875rem; } .right { text-align: right; }
.hide { display: none !important; }

.boot { min-height: 100vh; display: grid; place-items: center; background: #0b2540; }
.boot-note { color: #fff; font-family: var(--head); font-size: 1.3rem; }

/* ---------- shell */
.shell { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); min-height: 100vh; }
.rail { background: var(--asphalt); color: #fff; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 18px 0 14px; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 16px 16px 16px; }
.brand img { width: 60px; height: 60px; border-radius: 13px; }
.brand b { font: 700 1.75rem/1 var(--head); letter-spacing: 0.09em; display: block; }
.brand span { font-size: 0.74rem; color: #a9bdd1; display: block; margin-top: 3px; }
.nav { display: flex; flex-direction: column; gap: 2px; padding: 6px 10px 0 10px; flex: 1; overflow-y: auto; }
.nav a { color: #d7dce2; text-decoration: none; padding: 9px 10px; border-radius: var(--r); font-weight: 500; display: flex; justify-content: space-between; align-items: center; }
.nav a:hover { background: var(--asphalt-2); color: #fff; }
.nav a.on { background: var(--blue); color: #fff; box-shadow: inset 3px 0 0 var(--green); }
.nav .count { background: var(--green); color: var(--deep); border-radius: 10px; padding: 0 7px; font-size: 0.78rem; font-weight: 600; min-width: 22px; text-align: center; }
.nav hr { border: 0; border-top: 1px solid var(--asphalt-3); margin: 8px 4px; width: calc(100% - 8px); }
.who { padding: 10px 16px 0 18px; font-size: 0.85rem; color: #a9bdd1; }
.who b { color: #fff; font-weight: 500; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who button { background: none; border: 0; color: #b9c1ca; padding: 4px 0; cursor: pointer; text-decoration: underline; font-size: 0.85rem; }
.main { padding: 28px clamp(16px, 3.2vw, 44px) 80px; max-width: 1240px; width: 100%; }
.tabbar { display: none; }

.pagehead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; margin-bottom: 20px; }
.pagehead p { margin: 4px 0 0; color: var(--muted); max-width: 62ch; }
.crumb { font-size: 0.9rem; margin-bottom: 6px; }

/* ---------- pieces */
.btn { border: 1px solid var(--blue); background: var(--blue); color: #fff; padding: 8px 14px; border-radius: var(--r); cursor: pointer; font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; line-height: 1.25; }
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn.quiet { background: #fff; color: var(--blue); border-color: var(--rule); }
.btn.quiet:hover { border-color: var(--blue); background: var(--blue-soft); }
.btn.small { padding: 4px 10px; font-size: 0.875rem; }
.btn.danger { background: #fff; color: var(--stop); border-color: var(--rule); }
.btn[disabled] { opacity: 0.55; cursor: default; }
.linkbtn { background: none; border: 0; color: var(--blue); cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 2px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.spread { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }

.panel { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r); padding: 18px 20px; margin-bottom: 16px; }
.panel > h2, .panel > .spread > h2 { margin-bottom: 10px; }
.panel.flush { padding: 0; overflow: hidden; }
.panel.flush > h2, .panel.flush > .spread { padding: 16px 20px 0; }
.cols { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 16px; align-items: start; }

.tag { display: inline-block; padding: 1px 8px; border-radius: 3px; font-size: 0.8rem; font-weight: 600; background: var(--concrete); color: var(--muted); white-space: nowrap; }
.tag.prime, .tag.yes, .tag.verified, .tag.bid, .tag.ok, .tag.won { background: var(--go-soft); color: var(--go); }
.tag.bonding, .tag.likely, .tag.watch, .tag.unchanged, .tag.waiting { background: var(--hold-soft); color: var(--hold); }
.tag.sub, .tag.email { background: var(--blue-soft); color: var(--blue-dark); }
.tag.toobig, .tag.unverified, .tag.pass, .tag.blocked, .tag.lost, .tag.error, .tag.no { background: var(--stop-soft); color: var(--stop); }
.due { font-weight: 600; white-space: nowrap; } .due.soon { color: var(--stop); } .due.near { color: var(--hold); }

table { border-collapse: collapse; width: 100%; }
th { text-align: left; font-weight: 600; font-size: 0.85rem; color: var(--muted); padding: 8px 12px; border-bottom: 2px solid var(--rule); white-space: nowrap; }
td { padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
tbody tr.click { cursor: pointer; } tbody tr.click:hover { background: #f7f9fa; }
td .sub:not(.tag) { display: block; color: var(--muted); font-size: 0.875rem; }
.scroll { overflow-x: auto; }

.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-size: 0.85rem; font-weight: 600; color: var(--muted); margin-bottom: 3px; }
input[type=text], input[type=date], input[type=datetime-local], input[type=number], input[type=email], input[type=url], input[type=search], select, textarea {
  width: 100%; border: 1px solid #b9c1ca; border-radius: var(--r); padding: 8px 10px; background: #fff; min-height: 40px; }
textarea { min-height: 84px; resize: vertical; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; align-items: center; }
.filters input[type=search] { flex: 1 1 220px; max-width: 340px; } .filters select { width: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--rule); background: #fff; border-radius: 999px; padding: 4px 12px; cursor: pointer; font-size: 0.9rem; font-weight: 500; }
.chip.on { background: var(--asphalt); color: #fff; border-color: var(--asphalt); }
table.dates td:first-child { width: 200px; } table.dates td:nth-child(2) { width: 190px; }
.empty { padding: 26px 20px; color: var(--muted); }
.notice { background: var(--yellow-soft); border-left: 4px solid var(--yellow); padding: 10px 14px; border-radius: 0 var(--r) var(--r) 0; margin-bottom: 14px; }
.notice.bad { background: var(--stop-soft); border-color: var(--stop); }

/* ---------- today: the ranked list is the page */
.today-date { font: 600 1rem var(--body); color: var(--muted); }
.counts { display: flex; flex-wrap: wrap; gap: 6px 26px; margin: 0 0 20px; }
.counts a { text-decoration: none; color: var(--ink); }
.counts b { font: 700 1.9rem/1 var(--head); margin-right: 6px; }
.todo { list-style: none; margin: 0; padding: 0; counter-reset: todo; }
.todo li { counter-increment: todo; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 2px 14px; padding: 14px 20px 14px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.todo li:last-child { border-bottom: 0; }
.todo li::before { content: counter(todo); font: 700 1.5rem/1.15 var(--head); color: var(--asphalt); text-align: right; padding-right: 2px; }
.todo li.first::before { color: var(--blue); }
.todo .t { font-weight: 600; } .todo .t a { color: inherit; text-decoration: none; } .todo .t a:hover { text-decoration: underline; }
.todo .d { grid-column: 2; color: var(--muted); font-size: 0.925rem; }
.todo .meta { grid-row: 1; grid-column: 3; text-align: right; display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.todo .answer { grid-column: 2 / 4; display: flex; gap: 8px; margin-top: 6px; } .todo .answer input { flex: 1; }
.upcoming { list-style: none; margin: 0; padding: 0; }
.upcoming li { display: grid; grid-template-columns: 62px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--rule); }
.upcoming li:last-child { border-bottom: 0; }
.upcoming .day { font: 600 1.05rem/1.1 var(--head); } .upcoming .day small { display: block; font: 400 0.78rem var(--body); color: var(--muted); }
.upcoming a { text-decoration: none; color: var(--ink); font-weight: 500; } .upcoming a:hover { text-decoration: underline; }

/* ---------- opportunity */
.stages { display: flex; flex-wrap: wrap; gap: 0; margin: 4px 0 2px; }
.stages button { border: 1px solid var(--rule); background: #fff; padding: 6px 13px 6px 15px; cursor: pointer; font-weight: 500; font-size: 0.925rem; margin-left: -1px; }
.stages button:first-child { border-radius: var(--r) 0 0 var(--r); margin-left: 0; } .stages button:last-child { border-radius: 0 var(--r) var(--r) 0; }
.stages button.on { background: var(--asphalt); color: #fff; border-color: var(--asphalt); position: relative; z-index: 1; }
.stages button.past { background: var(--concrete); color: var(--muted); }
.call { border-left: 6px solid var(--blue); }
.call .verdict { font: 700 1.5rem/1.1 var(--head); margin-right: 8px; }
.call ul { margin: 6px 0 0; padding-left: 18px; color: var(--muted); }
.next { background: var(--asphalt); color: #fff; border-color: var(--asphalt); }
.next h2 { color: var(--green-lite); font-size: 1.05rem; } .next .what { font: 600 1.4rem/1.2 var(--head); margin: 2px 0 6px; } .next .muted { color: #c3cad2; } .next .linkbtn { color: #fff; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px 18px; margin: 0; }
.facts dt { font-size: 0.82rem; font-weight: 600; color: var(--muted); } .facts dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.check { list-style: none; margin: 0; padding: 0; }
.check li { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.check li:last-child { border-bottom: 0; } .check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--blue); }
.check li.done span { color: var(--muted); text-decoration: line-through; }
.files { list-style: none; margin: 0; padding: 0; }
.files li { padding: 10px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
.files li:last-child { border-bottom: 0; } .files .name { font-weight: 500; overflow-wrap: anywhere; } .files .sum { grid-column: 1 / 3; color: var(--muted); font-size: 0.9rem; white-space: pre-wrap; }
.drop { border: 2px dashed #b9c1ca; border-radius: var(--r); padding: 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.drop.over { border-color: var(--blue); background: var(--blue-soft); } .drop select { width: auto; }
.history { list-style: none; margin: 0; padding: 0; }
.history li { padding: 9px 0; border-bottom: 1px solid var(--rule); } .history li:last-child { border-bottom: 0; }
.history .when { font-size: 0.82rem; color: var(--muted); } .history .txt { white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- chat */
.chat { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 16px; align-items: start; }
.convos { list-style: none; margin: 0; padding: 0; } .convos li a { display: block; padding: 8px 10px; border-radius: var(--r); text-decoration: none; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.convos li a.on { background: var(--blue-soft); font-weight: 500; } .convos li a:hover { background: var(--concrete); }
.thread { display: flex; flex-direction: column; gap: 12px; min-height: 240px; }
.msg { max-width: 78ch; } .msg.user { align-self: flex-end; background: var(--blue); color: #fff; padding: 9px 14px; border-radius: 14px 14px 2px 14px; white-space: pre-wrap; }
.msg.radar { background: #fff; border: 1px solid var(--rule); border-left: 4px solid var(--blue); padding: 12px 16px; border-radius: 2px var(--r) var(--r) 2px; }
.msg.radar p:last-child, .msg.radar ul:last-child { margin-bottom: 0; } .msg.radar ul, .msg.radar ol { margin: 0 0 0.6em; padding-left: 20px; }
.steps { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; } .steps .tag { font-weight: 500; }
.composer { display: flex; gap: 8px; margin-top: 14px; align-items: flex-end; } .composer textarea { min-height: 52px; max-height: 220px; }
.starters { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }

dialog { border: 0; border-radius: 8px; padding: 0; width: min(680px, calc(100vw - 24px)); max-height: calc(100vh - 24px); box-shadow: 0 18px 50px rgba(21, 24, 28, 0.35); }
dialog::backdrop { background: rgba(21, 24, 28, 0.55); }
dialog form { padding: 20px 22px; } dialog h2 { margin-bottom: 14px; } dialog .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); background: var(--asphalt); color: #fff; padding: 10px 18px; border-radius: var(--r); z-index: 50; max-width: calc(100vw - 32px); }
.toast.bad { background: var(--stop); }

/* ---------- sign-in: navy brand panel beside a light sign-in panel */
.signin { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(340px, 1fr); background: #f6f8fa; }
.signin .brandside { background: radial-gradient(circle at 78% 46%, #123557 0, var(--asphalt) 38%, var(--deep) 100%); color: #fff; padding: clamp(28px, 5vw, 64px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; position: relative; overflow: hidden; }
.signin .rings { position: absolute; inset: 0; background: repeating-radial-gradient(circle at 82% 46%, transparent 0 109px, rgba(61, 220, 132, 0.13) 109px 110px); pointer-events: none; }
.signin .rings::after { content: ""; position: absolute; left: 68%; top: 30%; width: 12px; height: 12px; border-radius: 50%; background: var(--green-lite); box-shadow: 0 0 0 9px rgba(140, 255, 191, 0.18); }
.signin .top, .signin .mid, .signin .foot { position: relative; }
.signin .top { font-size: 1.15rem; color: #c3d3e3; display: flex; align-items: center; gap: 18px; }
.signin .top img { width: clamp(84px, 9vw, 120px); height: clamp(84px, 9vw, 120px); border-radius: 22px; }
.signin h1 { font: 700 clamp(3.4rem, 8vw, 5.6rem)/0.95 var(--head); letter-spacing: 0.08em; margin: 0 0 12px; }
.signin .sub { font: 500 clamp(1.3rem, 2.4vw, 1.75rem)/1.2 var(--head); margin: 0 0 18px; }
.signin .mid p { color: #c9d6e3; font-size: 1.08rem; max-width: 34ch; margin: 0; }
.signin .pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 36px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, 0.14); max-width: 620px; }
.signin .pillars b { display: block; font-weight: 600; margin-bottom: 4px; } .signin .pillars span { color: #a9bdd1; font-size: 0.92rem; }
.signin .foot { font: 600 0.95rem var(--head); letter-spacing: 0.1em; color: #c9d6e3; } .signin .foot small { display: block; font: 400 0.85rem var(--body); letter-spacing: 0.06em; color: #8fa6bd; margin-top: 6px; }
.signin .formside { display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 5vw, 72px); }
.signin .formside h2 { font-size: 2rem; margin-bottom: 8px; } .signin .formside p { color: var(--muted); max-width: 34ch; }
.signin .btn { font-size: 1.05rem; padding: 13px 20px; margin-top: 18px; justify-content: center; max-width: 360px; }
.signin .fine { font-size: 0.85rem; margin-top: 40px; } .signin .notice { margin-top: 18px; max-width: 360px; }
@media (max-width: 820px) { .signin { grid-template-columns: 1fr; } .signin .brandside { gap: 28px; } .signin .pillars { grid-template-columns: 1fr; gap: 14px; margin-top: 24px; } .signin .rings::after { display: none; } }

/* ---------- small screens */
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; } .rail { display: none; }
  .main { padding: 18px 16px 96px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0; background: var(--asphalt); border-top: 3px solid var(--green); z-index: 20; padding-bottom: env(safe-area-inset-bottom); }
  .tabbar a { color: #d7dce2; text-decoration: none; text-align: center; padding: 13px 2px 12px; font-weight: 500; font-size: 0.92rem; } .tabbar a.on { color: #fff; background: var(--blue); }
  .cols, .chat { grid-template-columns: 1fr; } .grid2 { grid-template-columns: 1fr; }
  h1 { font-size: 1.8rem; }
  .todo li { grid-template-columns: 30px minmax(0, 1fr); padding-right: 14px; } .todo .meta { grid-row: auto; grid-column: 2; flex-direction: row; align-items: center; } .todo .answer { grid-column: 2; flex-wrap: wrap; }
  table.stack thead { display: none; } table.stack tr { display: block; padding: 10px 14px; border-bottom: 1px solid var(--rule); } table.stack td { display: block; border: 0; padding: 2px 0; }
  table.stack td[data-l]::before { content: attr(data-l) ": "; color: var(--muted); font-size: 0.85rem; }
  table.stack td.right { text-align: left; } table.stack td .sub:not(.tag) { display: inline; margin-left: 6px; } table.stack td:first-child .sub:not(.tag) { display: block; margin-left: 0; }
  table.stack tr.famhead { padding: 0; } table.stack tr.famhead th { display: block; } table.stack tr.detail { padding: 0; } table.stack tr.detail > td { padding: 0 0 6px 8px; }
  .pagehead .row, .pagehead select { max-width: 100%; min-width: 0; } .pagehead .row { width: 100%; } .pagehead select { width: 100%; }
  .stages button { padding: 6px 9px; font-size: 0.85rem; }
}
@media (prefers-reduced-motion: no-preference) { .btn, .chip, .nav a { transition: background-color 0.12s, border-color 0.12s; } }
@media print { .rail, .tabbar, .btn, .drop, .composer { display: none !important; } .shell { display: block; } body { background: #fff; } }

/* Pricing by line of work */
.pad { padding: 0 20px; margin: 0 0 12px; max-width: 96ch; }
.strong { font-weight: 600; }
tr.famhead th { background: var(--concrete); color: var(--ink); font: 600 0.95rem var(--head); letter-spacing: 0.02em; text-transform: uppercase; border-bottom: 1px solid var(--rule); padding: 7px 12px; }
tr.detail > td { background: #f7f9fa; padding: 0 0 6px 16px; }
table.inner { font-size: 0.9rem; } table.inner th { border-bottom-width: 1px; } table.inner tr:last-child td { border-bottom: 0; }
tr.out td { color: var(--muted); } tr.out td.strong { text-decoration: line-through; text-decoration-color: var(--rule); }
.panel.flush > .spread select, .panel.flush > .spread input { max-width: 260px; }
.main { min-width: 0; }
details.pad { padding: 4px 20px 16px; max-width: none; } details.pad > summary { cursor: pointer; color: var(--blue); font-weight: 500; padding: 8px 0; } details.pad h3 { margin: 16px 0 4px; font-size: 1rem; }
.panel.flush > .spread > .row, .panel.flush > .spread > .muted { padding-right: 0; }

/* Guests see RADAR read-only: action buttons are hidden, and the server refuses changes regardless. */
body.guest .btn:not(.keep), body.guest .composer, body.guest input[type=file] { display: none !important; }
.guestbar { margin-bottom: 14px; }
