/* Resolute CRM — mobile-first styles. Brand: navy #16294A, gold #C9A227. */
:root {
  --navy: #16294A; --navy-2: #1e3a5f; --navy-3: #2b4a78; --gold: #C9A227; --gold-d: #9d7d14; --gold-l: #faf3dc;
  --bg: #f3f4f7; --surface: #fff; --ink: #1b2130; --ink-2: #454e60; --muted: #717a8c; --line: #e4e7ec; --line-2: #cfd5de;
  --ok: #1d6b35; --warn: #8a5a00; --bad: #b42323;
  --radius: 12px; --r-sm: 8px; --shadow: 0 1px 2px rgba(22,41,74,.06), 0 1px 1px rgba(22,41,74,.04);
  --tabbar-h: 62px;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--navy-3); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; line-height: 1.2; color: var(--navy); }
h1 { font-size: 22px; letter-spacing: -.01em; }
h2 { font-size: 16px; }
h3 { font-size: 14.5px; }
p { margin: 0 0 8px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }
img { max-width: 100%; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); } .small { font-size: 13px; } .tiny { font-size: 12px; }
.num { font-variant-numeric: tabular-nums; } .right { text-align: right; } .nowrap { white-space: nowrap; } .center { text-align: center; }
.b { font-weight: 650; } .ok { color: var(--ok); } .warn { color: var(--warn); } .bad { color: var(--bad); }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.stack > * + * { margin-top: 14px; } .stack-sm > * + * { margin-top: 8px; }
.mt { margin-top: 14px; } .mt-sm { margin-top: 8px; } .mb { margin-bottom: 14px; }
.grow { flex: 1; }
.pre { white-space: pre-wrap; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px; height: 56px;
  padding: 0 12px; padding-top: env(safe-area-inset-top); background: var(--navy); color: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.2); }
.brand { display: flex; align-items: center; gap: 8px; color: #fff; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.brand-name { font-weight: 800; letter-spacing: .12em; font-size: 14px; display: flex; flex-direction: column; line-height: 1.05; }
.brand-name small { color: var(--gold); font-size: 9.5px; letter-spacing: .3em; font-weight: 700; }
.search { flex: 1; display: flex; align-items: center; gap: 6px; background: rgba(255,255,255,.1); border-radius: 10px; padding: 0 10px; max-width: 520px; margin: 0 auto; }
.search input { flex: 1; background: transparent; border: 0; color: #fff; font-size: 16px; padding: 9px 0; outline: none; min-width: 0; }
.search input::placeholder { color: rgba(255,255,255,.6); }
.search svg.i { color: rgba(255,255,255,.7); }
.top-actions { display: flex; align-items: center; gap: 8px; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu-pop { position: absolute; right: 0; top: 44px; background: #fff; color: var(--ink); min-width: 230px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.18); padding: 6px; z-index: 50; }
.menu-pop a, .menu-pop button { display: flex; gap: 10px; align-items: center; width: 100%; padding: 10px; border: 0; background: none; font: inherit; color: var(--ink); border-radius: 8px; cursor: pointer; text-align: left; }
.menu-pop a:hover, .menu-pop button:hover { background: var(--bg); text-decoration: none; }
.menu-who { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; display: flex; flex-direction: column; }
.menu-who small { color: var(--muted); }
.avatar { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--gold); color: var(--navy); font-weight: 800; font-size: 13px; flex: none; }
.avatar.sm { width: 32px; height: 32px; font-size: 12px; }

/* ---------- shell ---------- */
.shell { display: block; }
.sidenav { display: none; }
.main { padding: 14px 14px calc(var(--tabbar-h) + 28px + env(safe-area-inset-bottom)); max-width: 1180px; margin: 0 auto; }
.main.wide { max-width: 1560px; }
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; display: flex; background: #fff; border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom); height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: 11px; font-weight: 600; position: relative; }
.tabbar a svg.i { width: 23px; height: 23px; }
.tabbar a.on { color: var(--navy); }
.tabbar a.on::before { content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: var(--gold); }
.tabbar a:hover { text-decoration: none; }
.pill { background: #d33; color: #fff; font-size: 10.5px; border-radius: 999px; padding: 1px 6px; font-weight: 700; }
.tabbar .pill { position: absolute; top: 6px; right: calc(50% - 22px); }
@media (min-width: 960px) {
  .shell { display: grid; grid-template-columns: 224px minmax(0, 1fr); min-height: calc(100vh - 56px); }
  .sidenav { display: block; position: sticky; top: 56px; align-self: start; height: calc(100vh - 56px); overflow: auto; padding: 14px 10px; background: #fff; border-right: 1px solid var(--line); }
  .sidenav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 9px; color: var(--ink-2); font-weight: 600; margin-bottom: 2px; }
  .sidenav a:hover { background: var(--bg); text-decoration: none; }
  .sidenav a.on { background: var(--navy); color: #fff; }
  .sidenav a.on svg.i { color: var(--gold); }
  .sidenav .pill { margin-left: auto; }
  .tabbar { display: none; }
  .main { padding: 22px 26px 40px; }
}
@media (max-width: 640px) {
  .brand-name { display: none; }
  .top-actions .btn span { display: none; }
}

/* ---------- page head, crumbs ---------- */
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 4px; display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.ph-sub { color: var(--muted); margin-top: 4px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ph-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- cards & layout grids ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.card + .card { margin-top: 14px; }
.card-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.card-h .sub { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.card-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.card-b { padding: 14px; }
.card.flush .card-b { padding: 0; }
.grid2, .grid3, .cols { display: grid; gap: 14px; }
.grid2 > .card + .card, .grid3 > .card + .card { margin-top: 0; }
.cols > * > * + * { margin-top: 14px; }
@media (min-width: 800px) { .grid2 { grid-template-columns: 1fr 1fr; } .grid3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1040px) { .cols { grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr); align-items: start; } }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
@media (min-width: 700px) { .stats { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--shadow); display: block; color: inherit; }
a.stat:hover { text-decoration: none; border-color: var(--line-2); }
.stat .k { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 650; }
.stat .v { font-size: 22px; font-weight: 750; color: var(--navy); margin-top: 2px; font-variant-numeric: tabular-nums; }
.stat .s { font-size: 12.5px; color: var(--muted); }
.stat.hot { border-color: #f1c2c2; background: #fff8f8; } .stat.hot .v { color: var(--bad); }

/* ---------- lists ---------- */
.list { margin: 0; padding: 0; list-style: none; }
.li { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); color: inherit; min-width: 0; }
.li:last-child { border-bottom: 0; }
a.li:hover { background: #fafbfc; text-decoration: none; }
.li-main { flex: 1; min-width: 0; }
.li-t { font-weight: 650; color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.li-s { font-size: 13px; color: var(--muted); margin-top: 1px; display: flex; gap: 6px 10px; flex-wrap: wrap; align-items: center; }
.li-r { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.li .check { margin: 0; }
.li.done .li-t { text-decoration: line-through; color: var(--muted); }
.section-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 10px 14px 6px; background: #fafbfc; border-bottom: 1px solid var(--line); }

/* ---------- badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 650; white-space: nowrap; line-height: 1.5; }
.b-blue { background: #e6eefb; color: #1f4fa3; } .b-teal { background: #dff3f0; color: #0f6e66; } .b-purple { background: #eee8fb; color: #5b3aa6; }
.b-amber { background: #fdf0d9; color: #8a5a00; } .b-gold { background: #f8efd2; color: #7a600c; } .b-orange { background: #fde6d8; color: #a24410; }
.b-green { background: #e1f3e6; color: #1d6b35; } .b-red { background: #fbe3e3; color: #b42323; } .b-gray { background: #eef0f3; color: #535b69; }
.b-navy { background: var(--navy); color: #fff; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 8px 14px; border-radius: var(--r-sm);
  border: 1px solid var(--line-2); background: #fff; color: var(--ink); font: 600 14px/1.2 inherit; font-family: inherit; cursor: pointer; white-space: nowrap; text-decoration: none; }
.btn:hover { text-decoration: none; background: #f7f8fa; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.primary:hover { background: var(--navy-2); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.btn.gold:hover { background: #d4af3a; }
.btn.danger { color: var(--bad); border-color: #efc4c4; }
.btn.danger:hover { background: #fff5f5; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--navy-3); }
.btn.ghost:hover { background: rgba(22,41,74,.06); }
.btn.sm { min-height: 32px; padding: 5px 10px; font-size: 13px; }
.btn.block { width: 100%; }
.btn.icon-only { padding: 8px; min-width: 40px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.inline-form { display: inline; margin: 0; }
.quick-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.quick-actions .btn { flex: 1 1 auto; min-width: 88px; }
.btn-group { display: inline-flex; }
.btn-group .btn { border-radius: 0; margin-left: -1px; }
.btn-group .btn:first-child { border-radius: var(--r-sm) 0 0 var(--r-sm); margin-left: 0; }
.btn-group .btn:last-child { border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.btn-group .btn.on { background: var(--navy); color: #fff; border-color: var(--navy); z-index: 1; }

/* ---------- forms ---------- */
.form { display: grid; gap: 12px; align-content: start; }
.form-row { display: grid; gap: 12px; }
@media (min-width: 640px) { .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form-row.r3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .form-row.r4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field .lbl { font-size: 13px; font-weight: 650; color: var(--ink-2); }
.req { color: var(--bad); margin-left: 2px; }
.help { color: var(--muted); font-size: 12.5px; font-weight: 400; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password], input[type=date], input[type=datetime-local], input[type=search], input[type=url], select, textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: #fff; color: var(--ink); min-height: 44px; }
textarea { min-height: 80px; resize: vertical; line-height: 1.45; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23717a8c' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(201,162,39,.55); outline-offset: 0; border-color: var(--gold); }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; padding: 4px 0; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--navy); flex: none; }
.check span { display: flex; flex-direction: column; }
.form-actions { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 4px; }
.fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; background: #fcfcfd; }
.fieldset > legend, .fieldset > .legend { font-weight: 700; color: var(--navy); font-size: 13.5px; padding: 0 4px; }
details.more > summary { cursor: pointer; color: var(--navy-3); font-weight: 600; padding: 6px 0; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.chip.on, .chip:hover { background: var(--navy); color: #fff; border-color: var(--navy); text-decoration: none; }
button.chip { font-family: inherit; }

/* ---------- filters / toolbar ---------- */
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.toolbar .field { flex: 1 1 160px; }
.toolbar select, .toolbar input { min-height: 40px; padding-top: 7px; padding-bottom: 7px; }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 2px; overflow-x: auto; border-bottom: 1px solid var(--line); margin: 0 -14px 14px; padding: 0 14px; scrollbar-width: none; background: transparent; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 10px 12px; white-space: nowrap; color: var(--muted); font-weight: 650; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a.on { color: var(--navy); border-bottom-color: var(--gold); }
.tabs a:hover { text-decoration: none; color: var(--navy); }
.tabs .count { background: var(--bg); border-radius: 999px; padding: 0 6px; font-size: 11.5px; color: var(--ink-2); }
@media (min-width: 960px) { .tabs { margin: 0 0 14px; padding: 0; } }

/* ---------- key/value ---------- */
.kv { display: grid; grid-template-columns: 1fr; gap: 10px 18px; margin: 0; }
@media (min-width: 560px) { .kv { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kv.one { grid-template-columns: 1fr; } }
.kv div { min-width: 0; }
.kv dt { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 650; }
.kv dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.addr { color: inherit; }

/* ---------- tables (become cards on phones) ---------- */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #fafbfc; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tfoot td { font-weight: 700; border-top: 2px solid var(--line-2); border-bottom: 0; background: #fafbfc; }
.tbl .num, .tbl .right { text-align: right; font-variant-numeric: tabular-nums; }
.tbl tr[data-href] { cursor: pointer; }
.tbl tr[data-href]:hover td { background: #fafbfc; }
@media (max-width: 700px) {
  .tbl.stackable thead { display: none; }
  .tbl.stackable, .tbl.stackable tbody, .tbl.stackable tr, .tbl.stackable td, .tbl.stackable tfoot { display: block; width: 100%; }
  .tbl.stackable tr { padding: 8px 14px; border-bottom: 1px solid var(--line); }
  .tbl.stackable td { border: 0; padding: 3px 0; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  .tbl.stackable td::before { content: attr(data-label); color: var(--muted); font-size: 12.5px; font-weight: 600; text-align: left; }
  .tbl.stackable td:first-child { font-weight: 650; text-align: left; }
  .tbl.stackable td:first-child::before { display: none; }
}

/* ---------- flashes, alerts, empty ---------- */
.flashes { margin-bottom: 12px; display: grid; gap: 8px; }
.flash { padding: 11px 14px; border-radius: 10px; font-weight: 600; border: 1px solid; }
.flash.success { background: #eaf7ee; border-color: #bfe3c9; color: #1d6b35; }
.flash.error { background: #fdeeee; border-color: #f1c2c2; color: #a11d1d; }
.flash.info { background: #eef3fc; border-color: #c9d8f3; color: #1f4fa3; }
.alert { padding: 11px 14px; border-radius: 10px; border: 1px solid #f0d9a0; background: #fdf8e8; color: #6f5305; display: flex; gap: 10px; align-items: flex-start; }
.alert.red { border-color: #f1c2c2; background: #fff5f5; color: #a11d1d; }
.alert.blue { border-color: #c9d8f3; background: #f2f6fd; color: #1f4fa3; }
.empty { padding: 26px 14px; text-align: center; color: var(--muted); }
.empty .btn { margin-top: 8px; }

/* ---------- progress ---------- */
.progress { height: 8px; background: #e9ecf1; border-radius: 99px; overflow: hidden; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--navy-3), var(--navy)); border-radius: 99px; }
.progress.gold span { background: var(--gold); }

/* ---------- pipeline board ---------- */
.board { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; margin: 0 -14px; padding-left: 14px; padding-right: 14px; }
.board-col { flex: 0 0 min(84vw, 300px); scroll-snap-align: start; background: #e9ecf1; border-radius: var(--radius); padding: 8px; display: flex; flex-direction: column; gap: 8px; max-height: calc(100vh - 220px); }
.board-col-h { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px; font-weight: 700; color: var(--navy); font-size: 13.5px; }
.board-col-h .muted { font-weight: 600; }
.board-col-b { overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.lead-card { background: #fff; border-radius: 10px; padding: 10px 12px; border: 1px solid var(--line); box-shadow: var(--shadow); color: inherit; display: block; border-left: 4px solid var(--line-2); }
.lead-card:hover { text-decoration: none; border-color: var(--line-2); }
.lead-card.overdue { border-left-color: #d33; }
.lead-card.today { border-left-color: var(--gold); }
.lead-card .t { font-weight: 650; }
.lead-card .s { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.lead-card .f { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: 8px; font-size: 12.5px; }
@media (min-width: 960px) { .board { margin: 0; padding-left: 0; padding-right: 0; } }

/* ---------- stage stepper ---------- */
.stepper { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-bottom: 12px; }
.stepper::-webkit-scrollbar { display: none; }
.stepper form { display: contents; }
.stepper button { flex: 1 0 auto; border: 0; background: #e9ecf1; color: var(--ink-2); font: 600 12.5px/1 inherit; font-family: inherit; padding: 10px 12px; cursor: pointer; white-space: nowrap; clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%, 8px 50%); }
.stepper button:first-of-type { clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%); border-radius: 8px 0 0 8px; }
.stepper button.done { background: #cfd8e6; color: var(--navy); }
.stepper button.on { background: var(--navy); color: #fff; }
.stepper button.won { background: #1d6b35; color: #fff; }
.stepper button.lost { background: #8a8f98; color: #fff; }

/* ---------- timeline ---------- */
.tl { list-style: none; margin: 0; padding: 0; }
.tl li { display: flex; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.tl li:last-child { border-bottom: 0; }
.tl .dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); color: var(--navy); flex: none; }
.tl .dot.call { background: #e1f3e6; color: #1d6b35; } .tl .dot.text { background: #e6eefb; color: #1f4fa3; } .tl .dot.email { background: #eee8fb; color: #5b3aa6; }
.tl .dot.update { background: var(--gold-l); color: var(--gold-d); } .tl .dot.system { background: #eef0f3; color: #6b7280; }
.tl .body { flex: 1; min-width: 0; }
.tl .meta { font-size: 12.5px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.tl .txt { margin-top: 3px; white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- log composer ---------- */
.composer { padding: 12px 14px; border-bottom: 1px solid var(--line); background: #fcfcfd; }
.composer .chips { margin-bottom: 8px; }
.composer .chip input { display: none; }
.composer .chip:has(input:checked) { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- photos ---------- */
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.photo { position: relative; display: block; border-radius: 10px; overflow: hidden; background: #dde2ea; aspect-ratio: 1; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo .tag { position: absolute; left: 6px; top: 6px; }
.photo .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 6px 5px; font-size: 11.5px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.65)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upload-zone { border: 2px dashed var(--line-2); border-radius: var(--radius); padding: 16px; text-align: center; background: #fcfcfd; }
.upload-zone.drag { border-color: var(--gold); background: var(--gold-l); }
.upload-progress { margin-top: 10px; display: none; }
.upload-progress.on { display: block; }

/* ---------- schedule / gantt ---------- */
.gantt { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.gantt-grid { display: grid; min-width: max-content; font-size: 12.5px; }
.g-head { position: sticky; top: 0; background: #fafbfc; border-bottom: 1px solid var(--line); z-index: 1; }
.g-day { text-align: center; color: var(--muted); padding: 4px 0; border-left: 1px solid #f0f2f5; font-size: 11px; }
.g-day.we { background: #f5f6f8; } .g-day.today { color: #fff; background: var(--gold); font-weight: 700; }
.g-name { position: sticky; left: 0; background: #fff; z-index: 1; padding: 6px 10px; border-bottom: 1px solid #f0f2f5; border-right: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-name.phase { font-weight: 700; color: var(--navy); background: #fafbfc; }
.g-cell { border-bottom: 1px solid #f0f2f5; border-left: 1px solid #f7f8fa; position: relative; }
.g-cell.we { background: #fafbfc; }
.g-bar { position: absolute; top: 6px; bottom: 6px; border-radius: 5px; background: var(--navy-3); color: #fff; font-size: 11px; padding: 0 6px; white-space: nowrap; overflow: hidden; display: flex; align-items: center; }
.g-bar.done { background: #6aa27b; } .g-bar.sub { background: #a07c12; } .g-bar.late { background: #c0392b; } .g-bar.ms { background: var(--gold); color: var(--navy); }

/* ---------- calendar ---------- */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.cal-h { background: #fafbfc; text-align: center; font-size: 11.5px; font-weight: 700; color: var(--muted); padding: 6px 0; border-bottom: 1px solid var(--line); }
.cal-d { min-height: 92px; border-right: 1px solid #eef0f3; border-bottom: 1px solid #eef0f3; padding: 4px; font-size: 11.5px; min-width: 0; }
.cal-d:nth-child(7n) { border-right: 0; }
.cal-d.other { background: #fafbfc; color: #aab0bb; }
.cal-d.we { background: #fbfbfc; }
.cal-d.today .n { background: var(--gold); color: var(--navy); border-radius: 50%; }
.cal-d .n { font-weight: 700; display: inline-grid; place-items: center; width: 22px; height: 22px; }
.cal-e { display: block; border-radius: 4px; padding: 1px 4px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fff; background: var(--navy-3); }
.cal-e:hover { text-decoration: none; opacity: .9; }
.cal-e.insp { background: #7b3fb0; } .cal-e.visit { background: #0f766e; } .cal-e.sub { background: #a07c12; } .cal-e.fu { background: #c2410c; } .cal-e.ms { background: #1d6b35; }
@media (max-width: 700px) { .cal-d { min-height: 64px; } .cal-e { font-size: 10px; } }
.agenda-day { font-size: 12.5px; font-weight: 750; color: var(--navy); padding: 10px 14px 4px; text-transform: uppercase; letter-spacing: .05em; }
.agenda-day.today { color: var(--gold-d); }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

/* ---------- sticky bottom action bar for phones ---------- */
.sticky-actions { position: sticky; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); border-top: 1px solid var(--line); padding: 10px 14px; margin: 14px -14px 0; display: flex; gap: 8px; z-index: 5; backdrop-filter: blur(6px); }
.sticky-actions .btn { flex: 1; }
@media (min-width: 960px) { .sticky-actions { position: static; margin: 14px 0 0; border: 0; padding: 0; background: none; } .sticky-actions .btn { flex: 0 0 auto; } }

/* ---------- money summary ---------- */
.money-rows { display: grid; gap: 6px; }
.money-rows > div { display: flex; justify-content: space-between; gap: 10px; font-variant-numeric: tabular-nums; }
.money-rows .total { border-top: 1px solid var(--line-2); padding-top: 6px; font-weight: 750; color: var(--navy); }
.money-rows .sub { color: var(--muted); font-size: 13px; }
.bignum { font-size: 26px; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }

/* ---------- login / bare pages ---------- */
body.bare { background: var(--navy); min-height: 100vh; }
.auth { max-width: 400px; margin: 0 auto; padding: 48px 18px; }
.auth .logo { display: block; margin: 0 auto 14px; width: 110px; height: 110px; }
.auth h1 { color: #fff; text-align: center; letter-spacing: .14em; font-size: 22px; }
.auth .tag { color: var(--gold); text-align: center; letter-spacing: .3em; font-size: 11px; font-weight: 700; margin: 4px 0 22px; }
.auth .card { padding: 18px; }

/* ---------- misc ---------- */
.dot-sep::before { content: "·"; margin: 0 4px; color: var(--line-2); }
.kpi-up { color: var(--ok); } .kpi-down { color: var(--bad); }
.hide-sm { display: none; } @media (min-width: 700px) { .hide-sm { display: initial; } .show-sm { display: none; } }
.scroll-x { overflow-x: auto; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.copybox { display: flex; gap: 6px; } .copybox input { font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
.sheet-links a { display: flex; align-items: center; gap: 12px; padding: 14px; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.sheet-links a:last-child { border-bottom: 0; }
.sheet-links a svg.i:first-child { color: var(--navy-3); }
.sheet-links a .i:last-child { margin-left: auto; color: var(--muted); }

@media print {
  .topbar, .sidenav, .tabbar, .ph-actions, .no-print, .flashes { display: none !important; }
  body { background: #fff; }
  .main { padding: 0; max-width: none; }
  .card { box-shadow: none; border: 0; }
}
body.bare.portal { background: var(--bg); }
input:not([type]) { width: 100%; font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: #fff; color: var(--ink); min-height: 44px; }
.toolbar > select { flex: 1 1 140px; width: auto; }
.mobile-only { display: block; }
@media (min-width: 1040px) { .mobile-only { display: none !important; } }
.contact-strip { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; }
.contact-strip .who { flex: 1; min-width: 0; }
.contact-strip .who b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact-strip .btn { min-width: 44px; padding: 8px 10px; }
.shell > .main { min-width: 0; width: 100%; }
.topbar .search input { background: transparent; border: 0; color: #fff; min-height: 0; padding: 9px 0; border-radius: 0; }
.topbar .search input:focus { outline: none; }

/* ---------- estimate editor ---------- */
.est-layout { display: grid; gap: 14px; }
.est-main > * + * { margin-top: 14px; }
.lines { container: lines / inline-size; }
.est-side > * + * { margin-top: 14px; }
@media (min-width: 1180px) { .est-layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } .est-side { position: sticky; top: 70px; } }
.line-head { display: none; }
.line { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); align-items: start; }
.line:last-child { border-bottom: 0; }
.line > label, .line > div { min-width: 0; }
.line label > span, .c-total > span { display: block; font-size: 11.5px; font-weight: 650; color: var(--muted); margin-bottom: 3px; }
.line input, .line select, .line textarea { min-height: 40px; padding: 7px 9px; }
.line textarea { min-height: 58px; }
.c-desc { grid-column: 1 / -1; display: grid; gap: 6px; }
.c-qty, .c-unit, .c-type, .c-cost, .c-mk, .c-price { grid-column: span 2; }
.c-total { grid-column: span 5; display: flex; flex-direction: column; justify-content: center; }
.c-total b { font-size: 16px; color: var(--navy); font-variant-numeric: tabular-nums; }
.c-total small { color: var(--muted); font-size: 11.5px; }
.c-del { grid-column: span 1; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.c-del input { display: none; }
.line .c-del > span, .opt-row .c-del > span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line-2); color: var(--muted); font-size: 20px; margin: 0 !important; }
.c-del input:checked + span { background: #fbe3e3; color: var(--bad); border-color: #efc4c4; }
.grp-in { font-size: 13px !important; min-height: 34px !important; color: var(--navy); font-weight: 650; }
.note-in { font-size: 13px !important; min-height: 34px !important; background: #fffdf5 !important; }
.flags { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 12.5px; color: var(--ink-2); }
.flags label { display: inline-flex; gap: 5px; align-items: center; cursor: pointer; }
.flags input { width: 16px; height: 16px; min-height: 0; accent-color: var(--navy); }
.flags select { width: auto; min-height: 32px; font-size: 13px; padding: 4px 30px 4px 8px; }
.line.deleted { opacity: .45; background: #fff7f7; }
.line.deleted textarea { text-decoration: line-through; }
@container lines (min-width: 600px) {
  .line { grid-template-columns: minmax(48px, .8fr) minmax(48px, .7fr) minmax(92px, 1.5fr) minmax(70px, 1.1fr) minmax(56px, .8fr) minmax(70px, 1.1fr) minmax(84px, 1.3fr) 40px; gap: 8px; }
  .c-desc { grid-column: 1 / -1; }
  .c-qty, .c-unit, .c-type, .c-cost, .c-mk, .c-price, .c-total, .c-del { grid-column: auto; }
  .c-total { text-align: right; }
  .c-del { align-self: end; }
}
@container lines (min-width: 980px) {
  .line, .line-head { grid-template-columns: minmax(240px, 1fr) 60px 56px 112px 86px 66px 86px 100px 40px; gap: 8px; }
  .line-head { display: grid; padding: 8px 14px; background: #fafbfc; border-bottom: 1px solid var(--line); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
  .line label > span, .c-total > span { display: none; }
  .c-desc { grid-column: auto; }
  .c-total { padding-top: 8px; justify-content: flex-start; }
  .c-del { align-self: start; padding-top: 2px; }
}

.sec-foot { display: flex; gap: 8px; flex-wrap: wrap; padding: 10px 14px; border-top: 1px solid var(--line); background: #fcfcfd; border-radius: 0 0 var(--radius) var(--radius); }
.sec-foot select { width: auto; flex: 1 1 200px; min-height: 32px; font-size: 14px; padding: 5px 34px 5px 10px; }
.sec-total { font-weight: 750; color: var(--navy); font-variant-numeric: tabular-nums; }
.opt-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) 40px; gap: 8px; }
.opt-row textarea { grid-column: 1 / -1; min-height: 56px; }
.opt-letter { text-align: center; font-weight: 800; color: var(--navy); }
.term-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.term-row label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
@media (min-width: 640px) { .term-row { grid-template-columns: minmax(0, 1fr) 96px 150px; } }
.est-summary .sum-opt + .sum-opt { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
.sum-h { font-weight: 750; color: var(--navy); margin-bottom: 6px; }
.est-bar { align-items: center; }
.est-bar .est-live { flex: 1 1 100%; font-weight: 750; color: var(--navy); font-variant-numeric: tabular-nums; font-size: 14px; }
@media (min-width: 640px) { .est-bar .est-live { flex: 1 1 auto; } }
@media (min-width: 960px) { .est-bar { position: sticky; bottom: 0; background: rgba(255,255,255,.96); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; margin-top: 14px; } }

/* ---------- public proposal ---------- */
.opt-cards { display: grid; gap: 8px; }
.opt-card { display: flex; gap: 10px; align-items: center; padding: 12px; border: 2px solid var(--line-2); border-radius: 10px; cursor: pointer; background: #fff; }
.opt-card.on { border-color: var(--navy); background: #f4f6fb; }
.opt-card input { width: 20px; height: 20px; accent-color: var(--navy); }
.opt-card > span { display: flex; justify-content: space-between; flex: 1; gap: 10px; flex-wrap: wrap; }
.public-proposal .brand-name { color: #fff; }
.c-qty input, .c-unit input, .c-mk input { padding-left: 6px; padding-right: 6px; }

/* ---------- job timeline (gantt) ---------- */
.gantt2 { --lw: 190px; }
@media (max-width: 700px) { .gantt2 { --lw: 128px; } }
.g-scroll { overflow-x: auto; }
.g-inner { position: relative; min-width: 100%; }
.g-bg { position: absolute; left: var(--lw); top: 0; bottom: 0; display: flex; pointer-events: none; z-index: 0; }
.g-bg span { flex: 0 0 var(--dayw); border-left: 1px solid #f1f3f6; }
.g-bg span.we { background: #eceef2; }
.g-bg span.today { background: rgba(201,162,39,.2); box-shadow: inset 2px 0 0 var(--gold); }
.g-row { display: flex; position: relative; min-height: 34px; border-bottom: 1px solid #f1f3f6; z-index: 1; }
.g-label { flex: 0 0 var(--lw); width: var(--lw); position: sticky; left: 0; z-index: 3; background: #fff; padding: 8px 10px; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-right: 1px solid var(--line); color: var(--ink); }
.g-track { position: relative; flex: none; }
.g-headrow { position: sticky; top: 0; z-index: 4; background: #fafbfc; border-bottom: 1px solid var(--line); }
.g-headrow .g-label { background: #fafbfc; }
.g-days { display: flex; }
.g-days span { flex: 0 0 var(--dayw); text-align: center; font-size: 10.5px; color: var(--muted); padding-top: 10px; white-space: nowrap; overflow: visible; }
.g-days span.we { color: #b0b6c0; } .g-days span.today { color: var(--gold-d); font-weight: 800; }
.g-days b { color: var(--navy); font-size: 10px; }
.g-phase .g-label { font-weight: 700; color: var(--navy); background: #fafbfc; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.gantt2 .g-bar { position: absolute; top: 7px; bottom: auto; height: 20px; border-radius: 5px; background: var(--navy-3); color: #fff; font-size: 10.5px; padding: 0 6px; white-space: nowrap; overflow: hidden; line-height: 20px; display: block; }
.gantt2 .g-bar.done { background: #6aa27b; } .gantt2 .g-bar.sub { background: #a07c12; } .gantt2 .g-bar.late { background: #c0392b; } .gantt2 .g-bar.ms { background: var(--gold); color: var(--navy); }
.gantt2 .legend { padding: 8px 12px; }

/* ---------- crew board ---------- */
.crewboard { overflow-x: auto; }
.cb-grid { display: grid; min-width: 820px; }
.cb-h { background: #fafbfc; font-size: 12px; font-weight: 700; color: var(--muted); padding: 8px; text-align: center; border-bottom: 1px solid var(--line); border-left: 1px solid #eef0f3; }
.cb-h small { display: block; font-weight: 600; color: var(--bad); }
.cb-h.we, .cb-cell.we { background: #f6f7f9; } .cb-h.today { color: var(--navy); box-shadow: inset 0 -3px 0 var(--gold); }
.cb-cell.today { background: #fffbef; }
.cb-name { padding: 10px; font-weight: 700; font-size: 13px; color: var(--navy); border-bottom: 1px solid #eef0f3; display: flex; align-items: flex-start; gap: 6px; }
.cb-name i { width: 10px; height: 10px; border-radius: 3px; margin-top: 4px; flex: none; }
.cb-cell { border-bottom: 1px solid #eef0f3; border-left: 1px solid #eef0f3; padding: 5px; display: flex; flex-direction: column; gap: 4px; min-height: 56px; min-width: 0; }
.cb-item { display: block; background: #f3f6fb; border-left: 3px solid var(--navy-3); border-radius: 5px; padding: 4px 6px; font-size: 11.5px; color: var(--ink); line-height: 1.25; min-width: 0; }
.cb-item:hover { text-decoration: none; background: #e8eef8; }
.cb-item b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--navy); }
.cb-item span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.cb-item.sub { border-left-color: #a07c12; background: #fbf6e8; }
.cb-item.done { opacity: .55; }
.cb-item.ms { border-left-color: var(--gold); background: var(--gold-l); }
.cb-item.insp { border-left-color: #7b3fb0; background: #f4eefb; }
.cb-item.visit { border-left-color: #0f766e; background: #e8f5f3; }
.cb-cell.clash { box-shadow: inset 0 0 0 2px #e5a3a3; background: #fff7f7; }
.clash-tag { font-size: 10.5px; font-weight: 700; color: var(--bad); }

/* ---------- subs: bid comparison ---------- */
.stars { color: var(--gold); letter-spacing: 1px; font-size: 13px; white-space: nowrap; }
.stars .muted { color: #d9dde4; }
.bid-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; align-items: start; }
.bid-col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); min-width: 0; }
.bid-col.low { border-color: var(--ok); box-shadow: 0 0 0 1px var(--ok) inset; }
.bid-col.low .bid-amt::after { content: 'LOW'; font-size: 10px; font-weight: 800; letter-spacing: .08em; color: #fff; background: var(--ok); border-radius: 4px; padding: 2px 5px; margin-left: 8px; vertical-align: 4px; }
.bid-col.awarded { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold) inset; background: var(--gold-l); }
.bid-h { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.bid-h > div { flex-basis: 100%; }
.bid-amt { font-size: 24px; font-weight: 800; color: var(--navy); margin: 8px 0 2px; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .bid-grid { grid-template-columns: 1fr; } }

/* ---------- customer & trade portals ---------- */
.portal-main { max-width: 1080px; margin: 0 auto; }
.portal-hero { border-top: 4px solid var(--gold); }
.portal-hero h2 { font-size: 19px; }
.card.attn { border-color: #f0d9a0; }
.card.attn .card-h { background: #fdf8e8; }
.li-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; background: #eef1f6; color: var(--navy-3); }
.li-ic.gold { background: var(--gold-l); color: var(--gold-d); } .li-ic.blue { background: #eaf1fd; color: #1f4fa3; }
.li-ic.green { background: #e7f5ec; color: var(--ok); } .li-ic.orange { background: #fdf0e3; color: #a35a07; }
.date-tile { width: 52px; flex: none; text-align: center; border: 1px solid var(--line); border-radius: 10px; padding: 4px 2px; background: #fff; line-height: 1.15; }
.date-tile b { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.date-tile span { font-size: 13px; font-weight: 700; color: var(--navy); white-space: nowrap; }
.date-tile.now { border-color: var(--gold); background: var(--gold-l); }
.li.done .li-t { color: var(--muted); }
.updates { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.updates li { background: #f6f7fa; border-radius: 12px 12px 12px 4px; padding: 10px 12px; max-width: 92%; }
.updates li.mine { align-self: flex-end; background: #eaf0fa; border-radius: 12px 12px 4px 12px; }
.updates .meta { display: flex; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.updates .meta b { color: var(--ink-2); }
.updates .txt { white-space: pre-wrap; overflow-wrap: anywhere; }
fieldset.bare-fs { border: 0; padding: 0; margin: 0; min-width: 0; display: contents; }
fieldset.bare-fs[disabled] { display: block; opacity: .6; }
.portal-doc { margin-bottom: 14px; }
.sub-wo { border-left: 4px solid var(--navy-3); }
.sub-wo.issued { border-left-color: var(--gold); }

/* ---------- settings & reports ---------- */
.dot-c { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: 0; margin-right: 2px; }
.tbl.perm td, .tbl.perm th { padding: 5px 8px; }
.toolbar input[type=date] { width: auto; }
.bars { display: grid; gap: 8px; }
.bar-row { display: grid; grid-template-columns: minmax(90px, 160px) 1fr auto; gap: 10px; align-items: center; font-size: 13.5px; }
.bar-row .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.bar-row .track { height: 12px; background: #eef1f6; border-radius: 6px; overflow: hidden; display: flex; }
.bar-row .track span { display: block; height: 100%; background: var(--navy-3); }
.bar-row .track span.gold { background: var(--gold); } .bar-row .track span.green { background: #2f8f55; } .bar-row .track span.gray { background: #c7cdd6; } .bar-row .track span.red { background: #d0503f; }
.bar-row .val { font-variant-numeric: tabular-nums; font-weight: 650; min-width: 64px; text-align: right; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.tbl td.neg, .neg { color: var(--bad); }
.tbl tfoot td { font-weight: 750; border-top: 2px solid var(--line-2); }
.report-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.report-links a { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; color: var(--ink); }
.report-links a:hover { border-color: var(--navy-3); text-decoration: none; }
.report-links a b { display: block; color: var(--navy); }
.report-links a span { font-size: 13px; color: var(--muted); }
.tbl td.num { white-space: nowrap; }
@media (min-width: 701px) { .tbl.wide-first td:first-child { min-width: 220px; } }
@media (max-width: 700px) { .tbl.stackable td:first-child { display: block; } .tbl.stackable tfoot tr { background: #fafbfc; } }
.tbl.stackable tfoot td:empty { display: none; }
.pct-sub { display: block; font-size: 11.5px; color: var(--muted); font-weight: 500; }
.pct-sub.neg { color: var(--bad); }
