/* Back office. Plain and quiet: white panels, hairlines, no decoration. */
body.is-admin { background: #f3f4f5; font: 400 14px/1.5 Poppins, "Helvetica Neue", Arial, sans-serif; }
.is-admin h1 { font-size: 24px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.is-admin h2 { font-size: 16px; font-weight: 600; letter-spacing: 0; line-height: 1.3; }
.is-admin input, .is-admin select, .is-admin textarea { font: 400 14px/1.4 Poppins, sans-serif; padding: 8px 10px; border-radius: 6px; border: 1px solid #d3d8db; background: #fff; }
.is-admin textarea { min-height: 96px; }
.is-admin textarea.tall { min-height: 220px; }
.tbl td.tight select { min-width: 118px; }
.tbl td:first-child input.bare { min-width: 170px; }
.tbl td.pick select { min-width: 140px; }
.tbl td input.bare { min-width: 96px; }
.is-admin input[type="checkbox"] { width: 17px; height: 17px; padding: 0; accent-color: var(--ink); vertical-align: middle; flex: none; }
.is-admin input:disabled, .is-admin select:disabled, .is-admin textarea:disabled { background: #f6f7f8; color: var(--mute); }

.ad-bar { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid #e1e4e6; }
.ad-bar-in { max-width: 1400px; margin: 0 auto; padding: 0 24px; height: 58px; display: flex; align-items: center; gap: 28px; }
.ad-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.ad-brand img { height: 30px; width: auto; }
.ad-nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.ad-nav a { text-decoration: none; font-weight: 500; padding: 8px 12px; border-radius: 6px; color: var(--mute); white-space: nowrap; }
.ad-nav a:hover { background: #f3f4f5; color: var(--ink); }
.ad-nav a.is-on { color: var(--ink); background: #eef1f3; }
.ad-nav .n { display: inline-block; min-width: 18px; text-align: center; margin-left: 6px; font-size: 12px; background: var(--steel); color: #fff; border-radius: 9px; padding: 0 5px; }
.ad-me { display: flex; align-items: center; gap: 14px; color: var(--mute); white-space: nowrap; font-size: 13px; }
.ad-me a, .ad-me button { color: var(--ink); font: 500 13px Poppins, sans-serif; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: none; }
.ad-me a:hover, .ad-me button:hover { text-decoration: underline; }
.ad-main { max-width: 1400px; margin: 0 auto; padding: 28px 24px 96px; }

.ad-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.ad-top .sub { color: var(--mute); margin-top: 2px; }
.ad-acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.b { font: 500 13.5px/1 Poppins, sans-serif; padding: 10px 14px; border-radius: 6px; border: 1px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer; text-decoration: none; display: inline-block; white-space: nowrap; }
.b:hover { background: #24394a; }
.b.s { background: #fff; color: var(--ink); border-color: #cfd5d9; }
.b.s:hover { background: #f3f4f5; }
.b.t { background: none; border-color: transparent; color: var(--steel); padding: 10px 6px; }
.b.t:hover { background: none; text-decoration: underline; }
.b.d { color: #a3261c; }
.b.sm { padding: 7px 10px; font-size: 12.5px; }
.b:disabled { opacity: 0.5; cursor: default; }

.panel { background: #fff; border: 1px solid #e1e4e6; border-radius: 8px; }
.panel + .panel { margin-top: 16px; }
.panel-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid #edeff0; }
.panel-b { padding: 18px; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.cols > .panel + .panel { margin-top: 0; }
.stack > * + * { margin-top: 16px; }

.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-weight: 500; font-size: 12.5px; color: var(--mute); padding: 10px 12px; border-bottom: 1px solid #e1e4e6; white-space: nowrap; }
.tbl td { padding: 9px 12px; border-bottom: 1px solid #edeff0; vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tfoot td { border-top: 1px solid #cfd5d9; border-bottom: 0; font-weight: 600; }
.tbl .r { text-align: right; font-variant-numeric: tabular-nums; }
.tbl input.r { text-align: right; }
.tbl td.tight { width: 1%; white-space: nowrap; }
.tbl a.name { font-weight: 600; text-decoration: none; }
.tbl a.name:hover { text-decoration: underline; }
.tbl .thumb { width: 64px; height: 46px; object-fit: cover; border-radius: 4px; background: #e6e9eb; display: block; }
.tbl-wrap { overflow-x: auto; }
.bare { border-color: transparent !important; background: transparent !important; padding-left: 6px !important; }
.bare:hover { border-color: #d3d8db !important; }
.bare:focus { background: #fff !important; }
.neg { color: #a3261c; }
.muted { color: var(--mute); }
.flag { display: inline-block; font-size: 12px; font-weight: 500; padding: 2px 7px; border-radius: 4px; background: #fbeceb; color: #a3261c; margin-left: 6px; }
.tag { display: inline-block; font-size: 12px; font-weight: 500; padding: 3px 8px; border-radius: 4px; background: #eef1f3; color: var(--ink); white-space: nowrap; }
.tag.ok { background: #e7f1ea; color: #23633a; }
.tag.wait { background: #fdf3df; color: #7a5200; }
.tag.no { background: #f1f2f3; color: var(--mute); }
.meter { height: 6px; background: #eceff1; border-radius: 3px; overflow: hidden; min-width: 90px; }
.meter i { display: block; height: 100%; background: var(--steel); }
.meter.over i { background: #a3261c; }

.tabs { display: flex; gap: 22px; border-bottom: 1px solid #dfe3e5; margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.tabs a { text-decoration: none; font-weight: 500; color: var(--mute); padding: 10px 0; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.tabs a.is-on { color: var(--ink); border-bottom-color: var(--ink); }
.crumb { font-size: 13px; color: var(--steel); text-decoration: none; font-weight: 500; }
.crumb:hover { text-decoration: underline; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; margin-bottom: 20px; }
.stats > div { padding: 14px 18px; border-left: 1px solid #edeff0; }
.stats > div:first-child { border-left: 0; }
.stats dt { font-size: 12.5px; color: var(--mute); }
.stats dd { margin: 2px 0 0; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.stats dd small { font-size: 12.5px; font-weight: 400; color: var(--mute); margin-left: 6px; }

.fg { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.fl { display: block; grid-column: span 6; }
.fl.w3 { grid-column: span 3; } .fl.w2 { grid-column: span 2; } .fl.w4 { grid-column: span 4; }
.fl > span { display: block; font-size: 12.5px; font-weight: 500; color: var(--mute); margin-bottom: 5px; }
.ck { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }

/* checklist */
.phase-h { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-bottom: 1px solid #edeff0; }
.phase-h h2 { flex: 1; }
.phase-h input[type="date"] { width: 150px; }
.item { display: grid; grid-template-columns: 24px 1fr 150px 160px 140px 92px 28px; gap: 8px; align-items: center; padding: 5px 18px; border-bottom: 1px solid #f1f3f4; }
.item-more { display: contents; } .item-more input, .item-more select { width: 100%; min-width: 0; }
.item .more, .item-sum { display: none; }
.item.is-done > input.bare { color: var(--mute); text-decoration: line-through; } .item.is-done .item-more { opacity: 0.6; }
.item-add { padding: 10px 18px; }
.x { background: none; border: 0; color: #9aa4ab; font-size: 18px; line-height: 1; cursor: pointer; padding: 4px 6px; border-radius: 4px; }
.x:hover { color: #a3261c; background: #f6f1f0; }
.mini { width: 34px; height: 34px; object-fit: cover; border-radius: 4px; display: block; }

/* photos */
.ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.ph { border: 1px solid #e1e4e6; border-radius: 8px; overflow: hidden; background: #fff; }
.ph.is-drag { opacity: 0.4; }
.ph img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: #e6e9eb; cursor: grab; }
.ph-b { padding: 10px; display: grid; gap: 8px; }
.ph-b .row { flex-wrap: nowrap; }

/* inbox, reviews, change orders */
.msg { border-bottom: 1px solid #edeff0; }
.msg:last-child { border-bottom: 0; }
.msg-h { display: grid; grid-template-columns: 110px 130px 1fr auto; gap: 12px; align-items: center; padding: 12px 18px; cursor: pointer; width: 100%; background: none; border: 0; text-align: left; font: inherit; color: inherit; }
.msg-h:hover { background: #fafbfb; }
.msg.is-new .msg-h b { font-weight: 600; }
.msg.is-new .msg-h::before { content: ""; position: absolute; }
.msg-b { padding: 4px 18px 18px 258px; }
.msg-b dl { display: grid; grid-template-columns: 180px 1fr; gap: 6px 16px; margin: 0 0 14px; }
.msg-b dt { color: var(--mute); } .msg-b dd { margin: 0; white-space: pre-line; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--steel); margin-right: 8px; }
.seg { display: inline-flex; border: 1px solid #cfd5d9; border-radius: 6px; overflow: hidden; background: #fff; }
.seg button { font: 500 13px/1 Poppins, sans-serif; padding: 9px 12px; border: 0; background: none; cursor: pointer; color: var(--mute); border-left: 1px solid #e1e4e6; }
.seg button:first-child { border-left: 0; }
.seg button.is-on { background: var(--ink); color: #fff; }
.card-row { padding: 16px 18px; border-bottom: 1px solid #edeff0; }
.card-row:last-child { border-bottom: 0; }
.none { padding: 28px 18px; color: var(--mute); }

/* statement */
.st { width: 100%; border-collapse: collapse; }
.st td { padding: 8px 0; border-bottom: 1px solid #f1f3f4; }
.st td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.st tr.sum td { font-weight: 600; border-top: 1px solid #cfd5d9; border-bottom: 0; padding-top: 12px; }
.st tr.big td { font-size: 18px; }

/* sign in */
.signin { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.signin .panel { width: 100%; max-width: 380px; padding: 32px; text-align: center; }
.signin img { height: 56px; margin: 0 auto 26px; }
.signin .b { display: block; width: 100%; margin-top: 10px; padding: 13px; }
.signin .b small { font-weight: 400; opacity: 0.7; margin-left: 6px; }

/* appraisal packet */
.pk-bar { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid #e1e4e6; padding: 10px 24px; display: flex; justify-content: space-between; align-items: center; }
.pk { background: #fff; max-width: 8.5in; margin: 24px auto; padding: 0.7in 0.75in; border: 1px solid #e1e4e6; font: 300 12.5px/1.6 Poppins, sans-serif; color: var(--ink); }
.pk + .pk { margin-top: 24px; }
.pk h1 { font-size: 34px; line-height: 1.1; letter-spacing: -0.02em; }
.pk h2 { font-size: 19px; font-weight: 600; margin: 0 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--ink); }
.pk h3 { font-size: 13px; font-weight: 600; margin: 18px 0 8px; }
.pk-cover { min-height: 9.4in; display: flex; flex-direction: column; }
.pk-cover .logo { height: 54px; align-self: flex-start; }
.pk-cover .img { margin: 0.5in 0 0.4in; }
.pk-cover .img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.pk-cover .meta { margin-top: auto; display: flex; justify-content: space-between; color: var(--mute); border-top: 1px solid var(--line); padding-top: 14px; }
.pk table { width: 100%; border-collapse: collapse; }
.pk th { text-align: left; font-weight: 500; font-size: 11px; color: var(--mute); padding: 6px 8px 6px 0; border-bottom: 1px solid var(--line); }
.pk td { padding: 7px 8px 7px 0; border-bottom: 1px solid #eceeef; vertical-align: top; }
.pk .r { text-align: right; padding-right: 0; font-variant-numeric: tabular-nums; }
.pk tfoot td { font-weight: 600; border-top: 1px solid var(--ink); border-bottom: 0; }
.pk-facts { display: grid; grid-template-columns: repeat(5, 1fr); border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.pk-facts div { padding: 10px 0; } .pk-facts dt { font-size: 11px; color: var(--mute); } .pk-facts dd { margin: 0; font-weight: 600; font-size: 16px; }
.pk-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; break-inside: avoid; }
.pk-pair img, .pk-walls img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.pk-pair figcaption, .pk-walls figcaption { font-size: 11px; color: var(--mute); margin-top: 4px; }
.pk figure { margin: 0; }
.pk-walls { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.pk .text { max-width: none; }

@media (max-width: 900px) {
  .cols { grid-template-columns: 1fr; }
  .ad-bar-in { gap: 14px; padding: 0 14px; }
  .ad-brand span, .ad-me .who { display: none; }
  .ad-main { padding: 20px 14px 80px; }
  .item { grid-template-columns: 24px 1fr auto 32px 32px; gap: 4px 6px; }
  .item .more { display: block; } .item-sum { display: block; grid-column: 2 / -1; grid-row: 2; font-size: 12.5px; color: var(--mute); padding: 0 0 6px 6px; margin-top: -6px; } .item-sum:empty { display: none; }
  .item-more { display: none; grid-column: 2 / -1; grid-row: 2; gap: 6px; flex-wrap: wrap; padding-bottom: 8px; } .item-more > * { flex: 1 1 130px; }
  .item.is-open .item-more { display: flex; } .item.is-open .item-sum { display: none; }
  .item.walk-item .more { display: none; }
  .msg-h { grid-template-columns: 1fr auto; } .msg-h .opt { display: none; }
  .msg-b { padding-left: 18px; } .msg-b dl { grid-template-columns: 1fr; gap: 0; } .msg-b dd { margin-bottom: 8px; }
  .fl.w3, .fl.w2, .fl.w4 { grid-column: span 6; }
  .pk { padding: 24px; margin: 12px; }
}
@media print {
  body.is-admin { background: #fff; }
  .pk-bar { display: none; }
  .pk { border: 0; margin: 0; padding: 0; max-width: none; break-after: page; }
  .pk:last-child { break-after: auto; }
  @page { size: letter; margin: 0.7in 0.75in; }
}

.ad-note { position: fixed; left: 20px; bottom: 20px; z-index: 60; max-width: min(560px, calc(100vw - 40px)); padding: 12px 16px; background: var(--navy, #1a2a36); color: #fff; font: 400 13px/1.5 Poppins, sans-serif; border-radius: 6px; cursor: pointer; }
.ad-note[hidden] { display: none; }

/* before and after pairs */
.pair { display: grid; grid-template-columns: 200px 200px minmax(200px, 320px); gap: 14px; align-items: start; }
.pair-slot { position: relative; aspect-ratio: 3 / 2; padding: 0; border: 1px solid #d5dadd; border-radius: 6px; background: #eef0f1; overflow: hidden; cursor: pointer; font: 500 13px Poppins, sans-serif; color: var(--mute); }
.pair-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pair-slot span { position: absolute; left: 8px; bottom: 8px; background: #fff; color: var(--ink); padding: 3px 8px; border-radius: 3px; font-size: 12px; }
.pair-slot.is-on { outline: 2px solid var(--steel, #4b7389); outline-offset: 2px; }
.pair-f { display: grid; gap: 10px; }
.pair-pick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; padding-top: 14px; border-top: 1px solid #edeff0; }
.pair-pick > button:not(.b) { width: 96px; aspect-ratio: 3 / 2; padding: 0; border: 0; border-radius: 4px; overflow: hidden; cursor: pointer; background: #e6e9eb; }
.pair-pick > button:not(.b) img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pair-pick > button.is-on { outline: 2px solid var(--steel, #4b7389); outline-offset: 2px; }
@media (max-width: 760px) { .pair { grid-template-columns: 1fr 1fr; } .pair-f { grid-column: 1 / -1; } }

/* scout */
.tbl td.strong { font-weight: 600; }
.flag.new { background: #e7f1ea; color: #23633a; }
.stats > div.key dd { color: var(--ink); }
.stats dd.neg, .viz-key td.neg { color: #a3261c; }
.stats dd .tag { font-size: 13px; }
.figure { font-size: 20px; font-weight: 600; padding-top: 4px; }
.test-row { flex-wrap: nowrap; }
.test-row input { width: 100%; }
.build { background: #fff; border: 1px solid #e1e4e6; border-radius: 8px; padding: 12px 16px; gap: 14px; }
.build label { display: flex; align-items: center; gap: 8px; }
.build label span { font-size: 12.5px; font-weight: 500; color: var(--mute); }
.build input { width: 130px; }
.map { height: 480px; border-radius: 8px; overflow: hidden; background: #e8ebed; z-index: 0; }
.map.is-edit { height: min(68vh, 640px); cursor: crosshair; }
.map.is-off { display: grid; place-items: center; color: var(--mute); }
.map .leaflet-container { font: inherit; }

/* charts */
.viz { display: block; max-width: 100%; overflow: visible; }
.viz-s1 { fill: #2a78d6; background: #2a78d6; } .viz-s2 { fill: #eb6834; background: #eb6834; } .viz-s3 { fill: #6250d6; background: #6250d6; } .viz-s4 { fill: #eda100; background: #eda100; } .viz-s5 { fill: #1baf7a; background: #1baf7a; }
.viz-t { font: 400 12px Poppins, sans-serif; fill: #6b7780; }
.viz-l { font: 500 12.5px Poppins, sans-serif; fill: var(--ink); }
.viz-grid { stroke: #edeff0; stroke-width: 1; } .viz-axis { stroke: #c9cfd3; stroke-width: 1; }
.viz-target { stroke: #1baf7a; stroke-width: 1.5; stroke-dasharray: 5 5; }
.viz-line { stroke: #2a78d6; stroke-width: 2; fill: none; }
.viz-mark { stroke: var(--ink); stroke-width: 1.5; }
.viz-cross { stroke: #9aa5ad; stroke-width: 1; }
.viz-dot { stroke: #fff; stroke-width: 2; }
.viz-dot.is-buy { fill: #1baf7a; } .viz-dot.is-ask { fill: #1a2a36; } .viz-dot.is-offer { fill: #eb6834; } .viz-dot.is-hover { fill: #2a78d6; } .viz-dot.is-comp { fill: #2a78d6; fill-opacity: 0.75; }
.viz-key { width: 100%; border-collapse: collapse; margin-top: 16px; }
.viz-key td { padding: 7px 0; border-bottom: 1px solid #f1f3f4; font-variant-numeric: tabular-nums; }
.viz-key td:nth-child(n+2) { text-align: right; } .viz-key td:last-child { width: 64px; color: var(--mute); }
.viz-key tr.sum td { font-weight: 600; border-bottom: 0; }
.viz-key i, .viz-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 9px; }
.viz-legend { display: flex; gap: 20px; margin-top: 8px; font-size: 12.5px; color: var(--mute); }
.viz-legend i.viz-dot { border-radius: 50%; background: #2a78d6; opacity: 0.75; } .viz-legend i.viz-dot.is-ask { background: #1a2a36; opacity: 1; } .viz-legend i.sq { border-radius: 2px; transform: rotate(45deg); }
.viz-tip { position: fixed; z-index: 80; pointer-events: none; background: #1a2a36; color: #fff; font: 400 12.5px/1.45 Poppins, sans-serif; padding: 8px 11px; border-radius: 6px; max-width: 280px; }
.viz-tip b { display: block; font-weight: 600; } .viz-tip span { display: block; }
.viz-tip[hidden] { display: none; }

.stats-2 dd small { display: block; margin: 2px 0 0; }
.viz-box { min-height: 44px; }

/* walkthrough */
.walk { max-width: 760px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip { font: 500 13px/1 Poppins, sans-serif; padding: 9px 12px; border-radius: 6px; border: 1px solid #cfd5d9; background: #fff; color: var(--ink); cursor: pointer; }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-add input { width: 130px; padding: 7px 10px; }
.mic { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; margin-top: 16px; padding: 18px; font: 600 16px/1 Poppins, sans-serif; border-radius: 8px; border: 1px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer; }
.mic.is-on { background: #a3261c; border-color: #a3261c; }
.mic span { display: flex; }
.walk-live { min-height: 22px; margin-top: 10px; color: var(--mute); }
.walk-add { margin-top: 6px; flex-wrap: nowrap; }
.walk-add input { width: 100%; }
.item.walk-item { grid-template-columns: 2px 1fr 170px 28px; }
@media (max-width: 900px) { .item.walk-item { grid-template-columns: 2px 1fr 36px; } .walk-item .walk-to { grid-column: 2; grid-row: 2; color: var(--mute); } .walk-item .x { grid-row: 1; grid-column: 3; } .is-admin .walk input, .is-admin .walk select { font-size: 16px; } }

@media (max-width: 900px) { .ad-nav { flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; } .ad-nav::-webkit-scrollbar { display: none; } .ad-me { gap: 10px; } }

/* Claude's read on a home */
.ai-sum { font-size: 15px; line-height: 1.6; max-width: 80ch; }
.ai-sum + p { margin-top: 8px; max-width: 80ch; }
.ai-stats { border-top: 1px solid #edeff0; border-bottom: 1px solid #edeff0; margin-bottom: 0; }
.ai-cols { gap: 0; } .ai-cols h3 { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.ai-list { margin: 0; padding-left: 18px; } .ai-list li { margin-bottom: 6px; }
.build-note { flex-basis: 100%; color: var(--mute); font-size: 13px; }

/* scout map */
.map-handle { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid #1a2a36; cursor: grab; }
.map-card { font: 400 13px/1.45 Poppins, sans-serif; min-width: 210px; }
.map-card strong { display: block; font-weight: 600; font-size: 14px; }
.map-card dl { display: flex; gap: 16px; margin: 10px 0; }
.map-card dt { font-size: 11.5px; color: var(--mute); } .map-card dd { margin: 0; font-weight: 600; }
.map-card .b { color: #fff; } .map-card .b.s { color: var(--ink); }
.map-key { display: flex; align-items: center; gap: 18px; padding: 10px 16px; font-size: 12.5px; color: var(--mute); flex-wrap: wrap; }
.map-key i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 7px; }
.k-fit { background: #1baf7a; } .k-reach { background: #2a78d6; } .k-list { background: #6250d6; } .k-other { background: #9aa5ad; }
.tbl tr.is-hot td { background: #f3f6f8; }
.flag.list { background: #eeebfb; color: #4333a8; }
.tbl.tpl { margin-top: 12px; border-top: 1px solid #edeff0; }

/* budget and dashboard charts */
.viz-budget { fill: #b9cfdc; background: #b9cfdc; } .viz-spent { fill: #2a78d6; background: #2a78d6; } .viz-over { fill: #c0392b; background: #c0392b; }
.viz-legend i.sq2 { border-radius: 2px; }
.viz-track { fill: #e9edf0; } .viz-ahead { fill: #1baf7a; } .viz-behind { fill: #eda100; }
.gauges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.gauge { padding: 18px 20px; border-left: 1px solid #edeff0; } .gauge:first-child { border-left: 0; }
.gauge-h { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--mute); }
.gauge-n { margin: 6px 0 8px; } .gauge-n strong { font-size: 26px; font-weight: 600; letter-spacing: -0.01em; }
.gauge-s { font-size: 12.5px; min-height: 19px; }
.home-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 0; }
.home-card { padding: 16px 18px; border-right: 1px solid #edeff0; border-bottom: 1px solid #edeff0; }
.home-card dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 14px 0; }
.home-card dt { font-size: 12px; color: var(--mute); } .home-card dd { margin: 2px 0 6px; font-weight: 600; } .home-card dd.neg { color: #a3261c; }
.walk-pick { font: 500 13.5px/1 Poppins, sans-serif !important; padding: 10px 14px !important; border-radius: 6px !important; border: 1px solid var(--ink) !important; background: var(--ink) !important; color: #fff; cursor: pointer; }
.walk-pick.s { background: #fff !important; color: var(--ink); border-color: #cfd5d9 !important; }
.fg.fg-8 { grid-template-columns: repeat(8, 1fr); } .fg-8 .fl { grid-column: span 2; } .fg-8 .fl.w1 { grid-column: span 1; } .fg-8 .fl.w3 { grid-column: span 3; } .fg-8 .fl.w4 { grid-column: span 4; }
@media (max-width: 900px) { .gauges { grid-template-columns: 1fr; } .gauge { border-left: 0; border-top: 1px solid #edeff0; } .home-cards { grid-template-columns: 1fr; } .fg-8 .fl, .fg-8 .fl.w1 { grid-column: span 4; } .fg-8 .fl.w3, .fg-8 .fl.w4 { grid-column: span 8; } }

/* budget sliders, the ring, and Claude's call on a match */
.sls { display: block; }
.sl { display: grid; grid-template-columns: minmax(150px, 1.15fr) minmax(140px, 2fr) 118px 58px; gap: 14px; align-items: center; padding: 5px 0; }
.sls.has-sq .sl { grid-template-columns: minmax(150px, 1.15fr) minmax(140px, 2fr) 118px 58px 68px; }
.sls.has-x .sl { grid-template-columns: minmax(150px, 1.15fr) minmax(140px, 2fr) 118px 58px 76px; }
.sls.has-sq.has-x .sl { grid-template-columns: minmax(150px, 1.15fr) minmax(140px, 2fr) 118px 58px 68px 30px; }
.sl-h { font-size: 12.5px; font-weight: 500; color: var(--mute); padding-bottom: 8px; border-bottom: 1px solid #e1e4e6; }
.sl-h .r, .sl-s { text-align: right; font-variant-numeric: tabular-nums; font-size: 13px; }
.sl-all { padding: 12px 0; margin-bottom: 6px; border-bottom: 1px solid #edeff0; font-weight: 600; }
.sl-all .sl-n { padding-left: 6px; } .sl-all .sl-a { text-align: right; padding-right: 10px; font-variant-numeric: tabular-nums; }
.sl-n input, .sl-a input { width: 100%; }
.sl-x { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.is-admin input[type="range"].sl-r { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.sl-r::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: #dfe4e7; }
.sl-r::-moz-range-track { height: 4px; border-radius: 2px; background: #dfe4e7; }
.sl-r::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -6px; border-radius: 50%; background: var(--ink); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--ink); }
.sl-r::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--ink); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--ink); }
.sl-r:focus-visible { outline: 2px solid #2a78d6; outline-offset: 2px; border-radius: 4px; }
.sl-r:disabled { cursor: default; opacity: 0.5; }
.tpl-edit { margin-top: 14px; padding-top: 14px; border-top: 1px solid #edeff0; }
.tpl-sq input { width: 96px; } .tpl-sq { font-size: 13px; color: var(--mute); }
.stats.tpl-at { margin: 12px 0 16px; border: 1px solid #edeff0; border-radius: 8px; }
.money { display: grid; grid-template-columns: 224px 1fr; gap: 36px; align-items: center; }
.money .viz-key { margin-top: 0; } .ring-key td:last-child { width: 58px; }
.viz-slice { stroke: #fff; stroke-width: 2; }
.viz-big { font: 600 22px Poppins, sans-serif; fill: var(--ink); letter-spacing: -0.01em; }
.viz-d1 { fill: #2a78d6; background: #2a78d6; } .viz-d2 { fill: #eb6834; background: #eb6834; } .viz-d3 { fill: #1baf7a; background: #1baf7a; } .viz-d4 { fill: #eda100; background: #eda100; }
.viz-d5 { fill: #e87ba4; background: #e87ba4; } .viz-d6 { fill: #008300; background: #008300; } .viz-d7 { fill: #6250d6; background: #6250d6; } .viz-d0 { fill: #b4bcc2; background: #b4bcc2; }
.by-line { border-top: 1px solid #edeff0; } .by-line h3 { margin: 0 0 12px; font-size: 13px; font-weight: 500; color: var(--mute); }
.call { display: flex; gap: 8px; align-items: baseline; margin-top: 5px; font-size: 12.5px; max-width: 560px; }
.call .tag { flex: none; }
.is-admin select.sm { font-size: 13px; padding: 7px 9px; }
.types { gap: 18px; min-height: 37px; }
@media (max-width: 900px) {
  .money { grid-template-columns: 1fr; justify-items: center; gap: 18px; } .money .viz-key { width: 100%; }
  .sl, .sls.has-sq .sl, .sls.has-x .sl, .sls.has-sq.has-x .sl { grid-template-columns: 1fr 104px 30px; gap: 4px 10px; padding: 10px 0; border-bottom: 1px solid #f1f3f4; }
  .sl .sl-n { grid-column: 1; } .sl .sl-a { grid-column: 2; grid-row: 1; } .sl .sl-x { grid-column: 3; grid-row: 1; } .sl .sl-r { grid-column: 1 / -1; grid-row: 2; height: 30px; } .sl .sl-s, .sl-h { display: none; }
  .sl-r::-webkit-slider-thumb { width: 22px; height: 22px; margin-top: -9px; }
}
.sl-a input { text-align: right; }
.ring-key th { font-size: 12.5px; font-weight: 500; color: var(--mute); text-align: right; padding: 0 0 6px 14px; } .ring-key td:nth-child(n+2) { padding-left: 14px; white-space: nowrap; }
.is-admin .ad-acts select.sm { width: auto; }
.ring-key th { white-space: nowrap; }

/* comp adjustments */
.tbl.adj td, .tbl.adj th { white-space: nowrap; } .tbl.adj td:first-child { min-width: 200px; white-space: normal; }
.adj-c { min-width: 128px; } .adj-c input[type="checkbox"] { margin-right: 6px; } .is-admin .adj-c input.bare { width: 92px; min-width: 0; }
.tbl.adj tbody td .muted { font-size: 12px; }

/* phones */
@media (max-width: 760px) {
  /* the bar in two rows: the mark and the account, then every section in a row that slides */
  .ad-bar-in { height: auto; flex-wrap: wrap; gap: 0 12px; padding: 6px 14px 0; }
  .ad-me { margin-left: auto; min-height: 40px; } .ad-me a, .ad-me button { padding: 10px 2px; }
  .ad-nav { order: 3; flex: 0 0 calc(100% + 28px); margin: 0 -14px; padding: 2px 8px 8px; }
  .ad-nav a { padding: 9px 11px; }
  /* text a phone will not zoom in on, and controls big enough to tap */
  .is-admin input:not([type="checkbox"]):not([type="range"]), .is-admin select, .is-admin textarea { font-size: 16px; }
  .is-admin .tbl td input.bare { min-width: 110px; }
  .is-admin select.sm { font-size: 16px; } .walk-pick { font-size: 16px !important; }
  .x { min-width: 36px; min-height: 36px; } .b.sm { padding-top: 10px; padding-bottom: 10px; }
  .is-admin input[type="checkbox"] { width: 20px; height: 20px; }
  .tabs a { padding: 12px 0; }
  /* headers let their buttons drop under the title instead of squeezing it */
  .panel-h { flex-wrap: wrap; } .panel-h h2 { white-space: nowrap; } .panel-h .ad-acts { margin-left: auto; }
  .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; } .seg::-webkit-scrollbar { display: none; } .seg button { white-space: nowrap; }
  /* tables keep their first column readable and slide sideways for the rest */
  .tbl-wrap .tbl td:first-child, .tbl-wrap .tbl th:first-child { min-width: 148px; }
  .tbl-wrap .tbl td:first-child:has(img) { min-width: 0; } .tbl-wrap .tbl td:has(> a.name) { min-width: 148px; }
  .tbl-wrap .tbl td:first-child:has(.call), .tbl-wrap .tbl tr[data-home] td:first-child { min-width: 250px; }
  .call { flex-wrap: wrap; } .call .muted { flex-basis: 100%; }
  .card-row.row > .grow { min-width: 170px; }
  .build { align-items: stretch; } .build label { flex: 1 1 100%; min-width: 0; } .build label select, .build label input { flex: 1; width: auto; min-width: 0; }

  /* the packet preview */
  .pk { padding: 22px 16px; margin: 10px; } .pk-facts { grid-template-columns: repeat(2, 1fr); gap: 0 12px; } .pk table { font-size: 11.5px; } .pk-bar { flex-wrap: wrap; gap: 10px; }
}

/* a subcontractor's own list */
.sub-g { padding: 14px 18px 8px; border-bottom: 1px solid #edeff0; } .sub-g:last-child { border-bottom: 0; }
.sub-g h3 { margin: 0 0 6px; font-size: 13px; font-weight: 600; display: flex; gap: 10px; align-items: baseline; } .sub-g h3 .muted { font-weight: 400; font-size: 12.5px; }
.sub-i { display: grid; grid-template-columns: 24px 1fr auto; gap: 8px; align-items: baseline; padding: 7px 0; cursor: pointer; } .sub-i .muted { font-size: 12.5px; white-space: nowrap; }
.sub-i.is-done span:nth-child(2) { color: var(--mute); text-decoration: line-through; }
@media (max-width: 760px) { .sub-i { grid-template-columns: 24px 1fr; } .sub-i .muted { grid-column: 2; } }

/* a field left empty shows the figure in effect; it reads as a figure, and fades once the field is entered */
.is-admin input.dflt::placeholder { color: var(--ink); opacity: 1; } .is-admin input.dflt:focus::placeholder { color: #a9b1b7; }
