/* Al Sholah Trading — buyer portal. Shares the brand palette and typefaces with the website (site/assets/site.css). */
@font-face { font-family: "Geist"; src: url("/assets/fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --brand: #a8430f;        /* Al Sholah deep burnt orange */
  --brand-2: #8a360b;      /* hover / pressed */
  --brand-tint: #fbefe7;   /* selected rows and cards */
  --brand-tint-2: #f4d9c8;
  --ink: #141617;          /* carbon: app header, footer */
  --link: #a8430f;
  --bg: #f5f4f0;
  --panel: #ffffff;
  --line: #d9d8d3;
  --line-2: #e8e7e2;
  --head: #ffffff;
  --text: #141617;
  --text-2: #303538;
  --muted: #5d6264;
  --graphite: #303538;
  --concrete: #b8b9b5;
  --green: #1b6e35; --green-bg: #e7f3ea;
  --amber: #7a5c00; --amber-bg: #fbf3d6;   /* ochre, kept distinct from the brand orange */
  --red: #a4221b;   --red-bg: #fbe9e7;
  --blue: #0b4a8b;  --blue-bg: #e6eef8;
  --font: "Geist", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, Consolas, monospace;
  --r: 0;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--font); font-size: 14px; color: var(--text); background: var(--bg); line-height: 1.5; -webkit-font-smoothing: antialiased; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
::selection { background: var(--brand); color: #fff; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font); color: var(--text); margin: 0; letter-spacing: -0.015em; }
h1 { font-size: 28px; font-weight: 500; letter-spacing: -0.025em; line-height: 1.15; }
h2 { font-size: 16px; font-weight: 550; }
h3 { font-size: 14px; font-weight: 550; }
p { margin: 0 0 10px; }
.num, td.n, .kpi .v { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
hr { border: 0; border-top: 1px solid var(--line-2); margin: 18px 0; }

/* ---------- Buttons & controls ---------- */
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--brand); background: var(--brand); color: #fff; padding: 0 18px; height: 38px; border-radius: var(--r); font: 550 13.5px var(--font); transition: background-color .15s, border-color .15s, color .15s; cursor: pointer; text-decoration: none !important; white-space: nowrap; }
.btn:hover { background: var(--brand-2); border-color: var(--brand-2); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--text); }
.btn.ghost:hover { background: var(--text); color: #fff; border-color: var(--text); }
.btn.brass { background: var(--brand); border-color: var(--brand); }
.btn.brass:hover { background: var(--brand-2); }
.btn.danger { background: #fff; color: var(--red); border-color: var(--red); }
.btn.danger:hover { background: var(--red-bg); }
.btn.sm { height: 30px; padding: 0 12px; font-size: 12.5px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.linkbtn { background: none; border: 0; color: var(--link); cursor: pointer; font: inherit; padding: 0; }
.linkbtn:hover { text-decoration: underline; }
.linkbtn.red { color: var(--red); }

label.f { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text); font-weight: 550; }
label.f .req { color: var(--red); }
input, select, textarea { font: 14px var(--font); color: var(--text); border: 1px solid #b8b9b5; border-radius: var(--r); padding: 0 12px; height: 40px; background: #fff; width: 100%; font-weight: 400; }
textarea { height: auto; min-height: 88px; padding: 10px 12px; resize: vertical; }
input[type=file] { padding: 5px 8px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: -1px; border-color: var(--brand); }
input[type=checkbox], input[type=radio] { width: auto; height: auto; accent-color: var(--brand); }
.grid { display: grid; gap: 14px 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.span2 { grid-column: span 2; }
.span3 { grid-column: span 3; }
.spanall { grid-column: 1 / -1; }
.checks { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--text); font-weight: 400; font-size: 13px; }
.checks label { display: inline-flex; gap: 6px; align-items: center; }
details.more { border-top: 1px solid var(--line-2); padding-top: 12px; grid-column: 1 / -1; }
details.more summary { cursor: pointer; color: var(--link); font-size: 13px; font-weight: 550; margin-bottom: 12px; }
.form-actions { display: flex; gap: 8px; justify-content: flex-end; align-items: center; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.form-actions .left { margin-right: auto; }
.grid .form-actions, .card .grid + .form-actions { border-top: 0; padding-top: 0; }

/* ---------- Status chips ---------- */
.badge { display: inline-block; padding: 1px 7px; border-radius: var(--r); font-size: 11.5px; font-weight: 550; background: #ecebe6; color: var(--text-2); white-space: nowrap; border: 1px solid transparent; line-height: 18px; }
.badge.green { background: var(--green-bg); color: var(--green); }
.badge.amber { background: var(--amber-bg); color: var(--amber); }
.badge.red { background: var(--red-bg); color: var(--red); }
.badge.blue { background: var(--blue-bg); color: var(--blue); }
.badge.navy { background: var(--ink); color: #fff; }
.tag { display: inline-block; border: 1px solid var(--line); border-radius: var(--r); padding: 0 5px; font-size: 11px; color: var(--muted); margin-right: 4px; background: #fff; }

/* ---------- Panels & tables ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; }
.card + .card { margin-top: 16px; }
.card-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: -20px -22px 16px; padding: 14px 22px; border-bottom: 1px solid var(--line-2); }
.card-h h2, .card-h h3 { font-size: 15px; font-weight: 550; }
.card-h .actions { display: flex; gap: 8px; align-items: center; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 16px; }
.row > * { flex: 1; min-width: 0; }
.row > .card + .card { margin-top: 0; }
.cols-2-1 { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr); gap: 16px; align-items: start; }
table.t { width: 100%; border-collapse: collapse; font-size: 13px; }
table.t th { text-align: left; font-family: var(--mono); font-weight: 500; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); padding: 10px 12px; white-space: nowrap; background: var(--head); }
table.t td { border-bottom: 1px solid var(--line-2); padding: 11px 12px; vertical-align: top; }
table.t tr.click { cursor: pointer; }
table.t tr.click:hover td { background: var(--bg); }
table.t tr.click:hover td:first-child { box-shadow: inset 2px 0 0 var(--brand); }
table.t td.n, table.t th.n { text-align: right; }
table.t td:first-child > b, table.t td.n { white-space: nowrap; }
table.t tfoot td { font-weight: 550; border-top: 2px solid var(--line); border-bottom: 0; background: var(--head); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-top: 2px solid var(--text); border-radius: var(--r); background: #fff; }
.card .table-wrap { border-color: var(--line-2); border-top-color: var(--text); }
.table-wrap table.t tbody tr:last-child td { border-bottom: 0; }
.empty { padding: 28px; text-align: center; color: var(--muted); }
dl.kv { display: grid; grid-template-columns: minmax(100px, 200px) minmax(0, 1fr); column-gap: 12px; margin: 0; font-size: 13px; }
.cols-2-1 > :last-child dl.kv { grid-template-columns: minmax(96px, 42%) minmax(0, 1fr); }
dl.kv dd { overflow-wrap: anywhere; }
dl.kv dt, dl.kv dd { padding: 7px 0; border-bottom: 1px solid var(--line-2); margin: 0; }
dl.kv dt { color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 12px; }
.kpis.k3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.kpis.k4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.kpi { background: #fff; border: 1px solid var(--line); border-top: 2px solid var(--brand); border-radius: var(--r); padding: 14px 18px 16px; }
.kpi .l { overflow-wrap: anywhere; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.kpi .v { font-size: 30px; font-weight: 500; letter-spacing: -0.03em; color: var(--text); margin-top: 6px; }
.kpi .s { font-size: 12px; color: var(--muted); margin-top: 2px; }
.notice { border: 1px solid var(--line); border-left: 2px solid var(--amber); background: #fff; padding: 11px 16px; border-radius: var(--r); font-size: 13px; }
.notice.green { border-left-color: var(--green); }
.notice.red { border-left-color: var(--red); }
.notice.blue { border-left-color: var(--link); }
.toolbar { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); padding: 10px 12px; border-radius: var(--r); }
.toolbar input, .toolbar select { width: auto; min-width: 160px; height: 34px; font-size: 13px; }
.toolbar .grow { flex: 1; }
.toolbar .checks { margin-left: 4px; }

/* ---------- Bars & funnel ---------- */
.bars { display: flex; flex-direction: column; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 140px 1fr 90px; gap: 12px; align-items: center; font-size: 13px; }
.bar-track { height: 12px; background: #ecebe6; }
.bar-fill { height: 100%; background: var(--text); }
.bar-row .n { text-align: right; font-variant-numeric: tabular-nums; }
.funnel { display: flex; flex-direction: column; }
.funnel .step { display: flex; justify-content: space-between; padding: 10px 2px; border-bottom: 1px solid var(--line-2); color: var(--text); text-decoration: none; }
.funnel .step:hover { color: var(--link); }
.funnel .step b { font-size: 16px; font-weight: 550; font-variant-numeric: tabular-nums; }

/* ---------- Brand ---------- */
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none !important; }
.brand svg { display: block; flex: none; }
.brand .wm { display: flex; flex-direction: column; line-height: 1; white-space: nowrap; }
.brand .wm b { font-weight: 600; font-size: 16px; letter-spacing: .06em; }
.brand .wm span { font-family: var(--mono); font-weight: 400; font-size: 9.5px; letter-spacing: .32em; margin-top: 4px; opacity: .8; }
.brand .app { border-left: 1px solid rgba(255,255,255,.25); padding-left: 14px; margin-left: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; opacity: .85; align-self: center; }

/* ---------- Public pages (portal landing, sign-in, registration): same header and footer as the website ---------- */
.pnav .in, .pub-section, .pub-foot .in, .hero .in, .band .in { max-width: 1320px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.pnav { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.pnav .in { display: flex; align-items: center; gap: 32px; height: 72px; }
.pnav .brand { color: var(--ink); }
.pnav .links { display: flex; gap: 4px; align-items: center; margin-left: auto; font-size: 15px; }
.pnav .links a { color: var(--text); padding: 0 12px; height: 40px; display: inline-flex; align-items: center; text-decoration: none; white-space: nowrap; position: relative; }
.pnav .links a::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.pnav .links a:hover::after { transform: scaleX(1); }
.pnav .acts { display: flex; align-items: center; gap: 8px; }
.pnav .acts .signin { color: var(--text); font-size: 14px; padding: 0 12px; }
.kicker { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; }
.kicker::before { content: ''; width: 24px; height: 2px; background: var(--brand); flex: none; }
.hero { position: relative; background: var(--ink) var(--hero, none) center / cover no-repeat; color: #fff; }
.hero::before { content: ''; position: absolute; inset: 0; background: rgba(20, 22, 23, .62); }
.hero .in { position: relative; display: grid; grid-template-columns: minmax(0,1fr) 400px; gap: 64px; padding-top: 96px; padding-bottom: 96px; align-items: center; }
.hero .kicker { color: rgba(255,255,255,.75); }
.hero .kicker::before { background: #e07a45; }
.hero h1 { color: #fff; font-size: clamp(34px, 4.4vw, 60px); line-height: 1.02; font-weight: 500; letter-spacing: -0.035em; margin: 0 0 20px; max-width: 16ch; }
.hero p.lead { color: rgba(255,255,255,.86); font-size: 18px; line-height: 1.5; max-width: 560px; margin: 0; }
.hero .ctas { display: flex; gap: 12px; margin-top: 32px; }
.hero .btn { height: 48px; padding: 0 22px; font-size: 15px; }
.hero .btn.white { background: var(--brand); color: #fff; border-color: var(--brand); }
.hero .btn.white:hover { background: var(--brand-2); border-color: var(--brand-2); }
.hero .btn.outline { background: transparent; color: #fff; border-color: #fff; }
.hero .btn.outline:hover { background: #fff; color: var(--ink); }
.login-box { background: #fff; color: var(--text); padding: 28px 30px; border-radius: 0; border-top: 2px solid var(--brand); }
.login-box h2 { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 4px; }
.login-box .grid { margin-top: 18px; }
.login-box .btn { width: 100%; justify-content: center; height: 44px; }
.login-box .foot { display: flex; justify-content: space-between; font-size: 13px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.pub-section { padding-top: clamp(64px, 8vw, 112px); padding-bottom: clamp(64px, 8vw, 112px); }
.pub-section h2.sec { font-size: clamp(28px, 3.2vw, 44px); line-height: 1.06; font-weight: 500; letter-spacing: -0.03em; margin-bottom: 14px; }
.pub-section p.intro { color: var(--text-2); font-size: 17px; max-width: 640px; }
.steps4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 40px; border-top: 1px solid var(--line); }
.steps4 > div { padding: 28px 24px 8px 0; }
.steps4 > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.steps4 .n { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--brand); margin-bottom: 20px; }
.steps4 h3 { font-size: 20px; font-weight: 550; letter-spacing: -0.015em; margin: 6px 0 8px; }
.steps4 p { color: var(--muted); font-size: 15px; }
.white-sec { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.prodgrid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); margin-top: 32px; }
.prodgrid > div { padding: 18px 20px 20px 0; border-bottom: 1px solid var(--line); }
.prodgrid b { font-size: 17px; font-weight: 550; letter-spacing: -0.01em; }
.prodgrid span { display: block; color: var(--muted); font-family: var(--mono); font-size: 12px; margin-top: 6px; }
.req-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 32px; }
.req-cols h3 { font-size: 16px; font-weight: 550; padding-bottom: 10px; border-bottom: 2px solid var(--ink); margin-bottom: 4px; }
.req-cols ul { margin: 0; padding: 0; list-style: none; color: var(--text-2); }
.req-cols li { margin: 0; padding: 10px 0 10px 24px; border-bottom: 1px solid var(--line); position: relative; font-size: 15px; }
.req-cols li::before { content: ''; position: absolute; left: 0; top: 20px; width: 12px; height: 2px; background: var(--brand); }
.band { background: #fff; border-top: 1px solid var(--line); }
.band .in { display: flex; justify-content: space-between; align-items: center; padding-top: 40px; padding-bottom: 40px; gap: 24px; }
.band h2 { font-size: 22px; font-weight: 550; letter-spacing: -0.015em; }
.band .btn { height: 48px; padding: 0 22px; font-size: 15px; }
.pub-foot { background: var(--ink); color: #9ea19e; font-size: 14px; }
.pub-foot .in { padding-top: 72px; padding-bottom: 28px; }
.pub-foot .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 56px; }
.pub-foot p { margin-top: 20px; max-width: 34ch; }
.pub-foot h4 { color: #fff; font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 14px; }
.pub-foot a { color: #9ea19e; display: block; margin: 6px 0; }
.pub-foot a:hover { color: #fff; text-decoration: none; }
.pub-foot .legal { display: flex; justify-content: space-between; gap: 16px; padding-top: 20px; border-top: 1px solid #34393b; font-size: 12.5px; }
.auth-wrap { min-height: calc(100vh - 105px); padding: 48px 20px; }
.auth-card { width: 100%; max-width: 540px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-top: 2px solid var(--brand); padding: 36px 40px; border-radius: var(--r); }
.auth-card h1 { margin: 4px 0 6px; }

/* ---------- App shell ---------- */
.gh { background: var(--ink); border-bottom: 2px solid var(--brand); color: #fff; height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; position: sticky; top: 0; z-index: 10; }

.gh .right { display: flex; gap: 16px; align-items: center; font-size: 13px; }
.gh .right .linkbtn { color: #fff; }
.gh .right select { width: auto; height: 30px; font-size: 12px; background: #fff; }
.gh .right .user { display: flex; align-items: center; gap: 8px; }
.gh .right .av { width: 30px; height: 30px; border-radius: 0; background: var(--graphite, #303538); color: #fff; font-family: var(--mono); font-weight: 500; font-size: 11px; display: grid; place-items: center; }
.gh .right .sep { width: 1px; height: 22px; background: rgba(255,255,255,.25); }
.gh .badge { border-color: rgba(255,255,255,.2); }
.shell { display: grid; grid-template-columns: 232px 1fr; min-height: calc(100vh - 56px); }
.side { background: #fff; border-right: 1px solid var(--line); position: sticky; top: 56px; height: calc(100vh - 56px); overflow-y: auto; display: flex; flex-direction: column; }
.side nav { padding: 10px 0; display: flex; flex-direction: column; }
.side nav .grp { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; color: var(--muted); padding: 18px 20px 6px; }
.side nav a { color: var(--text-2); padding: 8px 20px 8px 18px; font-size: 13.5px; display: flex; justify-content: space-between; align-items: center; text-decoration: none; border-left: 3px solid transparent; }
.side nav a:hover { background: var(--bg); color: var(--text); }
.side nav a.on { background: var(--bg); border-left-color: var(--brand); color: var(--text); font-weight: 550; }
.side nav a .cnt { font-family: var(--mono); font-size: 10.5px; background: var(--brand); padding: 0 6px; color: #fff; font-weight: 500; }
.side .foot { margin-top: auto; padding: 14px 20px; border-top: 1px solid var(--line-2); font-size: 12px; color: var(--muted); }
.side .foot .who { color: var(--text); font-weight: 550; }
.main { min-width: 0; }
.crumbs { background: #fff; padding: 14px 32px 0; font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.crumbs a { color: var(--link); }
.page { padding: 0 32px 64px; }
.page-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin: 0 -32px 24px; padding: 8px 32px 20px; background: #fff; border-bottom: 1px solid var(--line); }
.page-h p { margin: 4px 0 0; color: var(--muted); }
.page-h .actions { display: flex; gap: 8px; align-items: center; }
.page > .page-h:first-child { }

/* Stepper */
.stepper { display: flex; margin-bottom: 20px; background: #fff; border: 1px solid var(--line); padding: 16px 8px 12px; overflow-x: auto; }
.stepper a { flex: 1; min-width: 96px; text-align: center; font-size: 12px; color: var(--muted); text-decoration: none; position: relative; padding: 0 4px; }
.stepper a::before { content: ""; position: absolute; top: 12px; left: -50%; right: 50%; height: 2px; background: var(--line); z-index: 0; }
.stepper a:first-child::before { display: none; }
.stepper a .i { position: relative; z-index: 1; display: grid; place-items: center; width: 26px; height: 26px; margin: 0 auto 6px; border-radius: 0; background: #fff; border: 1px solid #b8b9b5; color: var(--muted); font-family: var(--mono); font-weight: 500; font-size: 11px; }
.stepper a.done .i { background: var(--text); border-color: var(--text); color: #fff; font-size: 0; }
.stepper a.done .i::after { content: "✓"; font-size: 13px; }
.stepper a.done::before { background: var(--text); }
.stepper a.on { color: var(--text); font-weight: 550; }
.stepper a.on .i { background: var(--brand); border-color: var(--brand); color: #fff; font-size: 11px; }
.stepper a.on .i::after { content: none; }
.stepper a.off { pointer-events: none; }

/* Radio cards */
.rcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rcard { border: 1px solid var(--line); border-radius: var(--r); padding: 11px 13px; cursor: pointer; display: flex; gap: 10px; align-items: flex-start; background: #fff; }
.rcard:hover { border-color: var(--text-2); }
.rcard input { margin-top: 3px; }
.rcard b { display: block; font-size: 13.5px; }
.rcard span { font-size: 12px; color: var(--muted); }
.rcard.on { border-color: var(--brand); background: var(--brand-tint); box-shadow: inset 2px 0 0 var(--brand); }

/* Location records */
.loc-cards { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.loc-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.loc-card .hd { padding: 14px 18px; border-bottom: 1px solid var(--line-2); border-top: 2px solid var(--brand); }
.loc-card .hd h3 { font-size: 16px; margin-top: 2px; }
.loc-card .hd .sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.loc-card .bd { display: grid; grid-template-columns: repeat(3, 1fr); }
.loc-card .bd > div { padding: 10px 18px; border-bottom: 1px solid var(--line-2); }
.loc-card .bd .l { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.loc-card .bd .v { font-weight: 600; font-size: 13px; margin-top: 2px; }
.loc-card .ft { padding: 10px 18px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; background: var(--head); }

/* Summary panel (request) */
.calc { background: #fff; border: 1px solid var(--line); border-top: 2px solid var(--brand); padding: 18px 20px; border-radius: var(--r); position: sticky; top: 68px; }
.calc .l { color: var(--muted); font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; }
.calc .big { font-size: 34px; font-weight: 500; letter-spacing: -0.03em; margin: 6px 0 2px; font-variant-numeric: tabular-nums; color: var(--text); }
.calc .sub { color: var(--text-2); font-size: 13px; }
.calc .lines { margin-top: 14px; border-top: 1px solid var(--line-2); padding-top: 8px; font-size: 13px; }
.calc .lines div { display: flex; justify-content: space-between; padding: 5px 0; color: var(--muted); border-bottom: 1px solid var(--line-2); }
.calc .lines b { color: var(--text); font-weight: 600; }

.calc p.small { color: var(--muted) !important; }

/* Status path */
.timeline { display: flex; flex-wrap: wrap; gap: 2px; }
.timeline .s { flex: 1; min-width: 96px; font-size: 12px; padding: 8px 10px 6px; background: #fff; color: var(--muted); border-top: 2px solid var(--line); }
.timeline .s.done { color: var(--text); border-top-color: var(--text); }
.timeline .s.cur { color: var(--text); border-top-color: var(--brand); font-weight: 550; background: var(--brand-tint); }

/* Thread */
.thread { display: flex; flex-direction: column; gap: 0; max-height: 520px; overflow-y: auto; border: 1px solid var(--line-2); }
.msg { padding: 10px 14px; border-bottom: 1px solid var(--line-2); background: #fff; border-left: 3px solid transparent; }
.msg.house { border-left-color: var(--brand); }
.msg.buyer { border-left-color: var(--concrete, #b8b9b5); background: #fafaf8; }
.msg.internal { background: #fffaf0; border-left-color: var(--amber); }
.msg .meta { font-size: 12px; color: var(--muted); margin-bottom: 3px; display: flex; gap: 10px; align-items: center; }
.msg .meta b { color: var(--text); }
.msg .body { white-space: pre-wrap; }
.thread > .muted { padding: 14px; }
.offer { border: 1px solid var(--line); border-left: 2px solid var(--brand); padding: 14px 16px; background: #fff; }
.offer + .offer { margin-top: 12px; }
.offer h3 { font-size: 17px; }

/* Kanban */
.kanban { display: grid; grid-template-columns: repeat(7, minmax(148px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 8px; }
.kcol { background: #ecebe6; border-radius: var(--r); padding: 8px; min-height: 220px; }
.kcol h4 { margin: 2px 2px 10px; font-family: var(--mono); font-weight: 500; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); display: flex; justify-content: space-between; }
.kcard { background: #fff; border: 1px solid var(--line); border-left: 2px solid var(--brand); padding: 9px 10px; margin-bottom: 6px; font-size: 12px; cursor: pointer; }
.kcard:hover { border-color: var(--text-2); border-left-color: var(--brand); }
.kcard b { display: block; font-size: 13px; margin-bottom: 2px; }

/* Map */
.map { background: #ecebe6; border: 1px solid var(--line-2); position: relative; overflow: hidden; }
.map svg { display: block; width: 100%; height: auto; }

/* Toast & demo switch */
#toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 12px 20px; border-left: 2px solid var(--brand); border-radius: var(--r); font-size: 13px; opacity: 0; transition: all .2s; pointer-events: none; z-index: 50; }
#toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }
.demo-switch { position: fixed; right: 16px; bottom: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 3px; display: flex; gap: 2px; box-shadow: 0 2px 8px rgba(0,0,0,.12); z-index: 40; font-size: 12px; }
.demo-switch span { padding: 5px 8px; color: var(--muted); font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; }
.demo-switch a { padding: 5px 10px; color: var(--text); text-decoration: none; border-radius: var(--r); }
.demo-switch a.on { background: var(--ink); color: #fff; }

@media (max-width: 1000px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; }
  .side nav { flex-direction: row; flex-wrap: wrap; }
  .side nav .grp, .side .foot { display: none; }
  .hero .in, .cols-2-1 { grid-template-columns: minmax(0, 1fr); }
  .kpis, .kpis.k3, .kpis.k4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3, .g4, .rcards, .steps4, .prodgrid, .loc-cards, .req-cols, .pub-foot .cols { grid-template-columns: 1fr 1fr; }
  .page { padding: 0 16px 40px; } .page-h { margin: 0 -16px 16px; padding: 6px 16px 14px; } .crumbs { padding: 12px 16px 0; }
  .gh .brand .app { display: none; }
}
@media (max-width: 1000px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side nav { flex-wrap: nowrap; overflow-x: auto; padding: 0; }
  .side nav a { white-space: nowrap; border-left: 0; border-bottom: 3px solid transparent; padding: 10px 14px; gap: 6px; }
  .side nav a.on { border-bottom-color: var(--brand); }
  .page-h { flex-wrap: wrap; align-items: flex-start; }
  .page-h .actions { flex-wrap: wrap; }
  .hero .ctas { flex-wrap: wrap; }
  .gh { padding: 0 12px; gap: 10px; }
  .gh .right { gap: 10px; min-width: 0; }
  .gh .right .user > span:last-child, .gh .right .sep, .gh .right > span:first-child:not(.badge) { display: none; }
  .gh .right select { max-width: 112px; }
  .band .in { flex-wrap: wrap; }
  .pub-foot .legal { flex-direction: column; gap: 6px; }
}
@media (max-width: 600px) {
  .gh .brand .wm b { font-size: 15px; }
  .gh .badge { display: none; }
  .hero .btn { width: 100%; justify-content: center; }
    .pnav .in { height: 60px; }
  .page-h h1 { font-size: 20px; }
  .kpi .v { font-size: 22px; }
  .bar-row { grid-template-columns: 90px 1fr 70px; }
  .loc-card .bd { grid-template-columns: 1fr 1fr; }
  .form-actions { flex-wrap: wrap; }
  .demo-switch { right: 8px; bottom: 8px; }
  .row { flex-direction: column; }
  .row > .card { max-width: none !important; }
  .g2, .g3, .g4, .rcards, .steps4, .prodgrid, .loc-cards, .req-cols, .pub-foot .cols { grid-template-columns: 1fr; }
  .span2, .span3 { grid-column: auto; }
  dl.kv { grid-template-columns: 1fr; }
  .pnav .acts .signin { display: none; }
  .hero .in { padding-top: 56px; padding-bottom: 56px; }
}

/* ---------- Sign-up / sign-in verification ---------- */
.auth-steps { list-style: none; display: flex; gap: 0; margin: 0 0 18px; padding: 0; border-bottom: 1px solid var(--line-2); }
.auth-steps li { flex: 1; display: flex; align-items: center; gap: 8px; padding: 0 0 12px; font-size: 12px; font-weight: 550; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.auth-steps li span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 0; border: 1px solid #b8b9b5; font-family: var(--mono); font-size: 11px; background: #fff; flex: none; }
.auth-steps li.on { color: var(--text); border-bottom-color: var(--brand); }
.auth-steps li.on span { background: var(--brand); border-color: var(--brand); color: #fff; }
.auth-steps li.done { color: var(--text); }
.auth-steps li.done span { background: var(--text); border-color: var(--text); color: #fff; }
.otp-input { font: 500 22px/1 var(--mono) !important; letter-spacing: .45em; text-align: center; height: 48px !important; }
.phone { display: flex; gap: 6px; }
.phone select { width: 44%; min-width: 0; }
.phone input { flex: 1; min-width: 0; }
.f.phone-f { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--text-2); font-weight: 600; }
.split { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.linkbtn[disabled] { color: var(--muted); cursor: default; text-decoration: none; }
.dest { white-space: nowrap; }
.form-err { font-size: 13px; }
[aria-invalid="true"] { border-color: var(--red) !important; box-shadow: inset 0 0 0 1px var(--red); }
.demo-accts { margin-top: 18px; border: 1px solid var(--line-2); background: var(--head); padding: 10px 14px; }
.demo-accts summary { cursor: pointer; font-size: 13px; font-weight: 550; color: var(--text-2); }
.demo-accts[open] summary { margin-bottom: 8px; }
.login-box .form-err { margin-bottom: 4px; }
@media (max-width: 520px) { .auth-steps li { font-size: 0; justify-content: center; } .auth-steps li span { font-size: 11px; } }
[hidden] { display: none !important; }
@media (max-width: 1100px) { .pnav .links { display: none; } .pnav .acts { margin-left: auto; } }
@media (max-width: 1000px) { .steps4 > div:nth-child(3) { padding-left: 0; border-left: 0; } }
@media (max-width: 600px) { .steps4 > div + div { padding-left: 0; border-left: 0; } .pnav .in { gap: 12px; } .pnav .acts .btn { height: 36px; padding: 0 12px; font-size: 13px; } }
/* Product audit 2026-12-05: filter chips, work queue, application checklist, read-only fields. */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.chips a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--line); background: #fff; color: var(--text-2); text-decoration: none; font-size: 13px; border-radius: var(--r); }
.chips a:hover { border-color: var(--brand); color: var(--brand); }
.chips a.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chips .n { font-variant-numeric: tabular-nums; font-size: 11.5px; padding: 0 5px; background: var(--bg); color: var(--muted); }
.chips a.on .n { background: rgba(255,255,255,.16); color: #fff; }
.toolbar[role=search] .grow { min-width: 0; }
.queue .q-row { display: grid; grid-template-columns: 44px minmax(0,1fr) 16px; align-items: center; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--line-2); color: var(--text); text-decoration: none; }
.queue .q-row:hover { background: var(--brand-tint); }
.queue .q-row:hover .q-go { color: var(--brand); }
.queue .q-n { font-size: 22px; font-weight: 550; font-variant-numeric: tabular-nums; text-align: right; }
.queue .q-l { display: flex; flex-direction: column; gap: 2px; }
.queue .q-go { color: var(--concrete); }
.queue .q-row.zero .q-n { color: var(--concrete); }
.meter { height: 6px; background: var(--line-2); margin-bottom: 14px; }
.meter span { display: block; height: 100%; background: var(--brand); }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: grid; grid-template-columns: 26px minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.checklist .mk { width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.checklist li.ok .mk { background: var(--green-bg); border-color: var(--green-bg); color: var(--green); }
.checklist li.cur { background: var(--brand-tint); margin: 0 -10px; padding: 8px 10px; }
.checklist li.cur .mk { border-color: var(--brand); color: var(--brand); }
.checklist .st { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.checklist li.cur .st { color: var(--brand); }
.f .fixed { min-height: 38px; display: flex; align-items: center; padding: 0 10px; background: var(--bg); border: 1px dashed var(--line); font-size: 14px; }
@media (max-width: 600px) { .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; } .chips a { white-space: nowrap; } .queue .q-row { grid-template-columns: 36px minmax(0,1fr) 12px; } }
/* Product audit follow-up 2026-12-05: live region, paging, confirmation dialog, review strip, inquiry status. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.pager .muted { margin-right: auto; }
dialog.ask { width: min(480px, calc(100vw - 32px)); border: 1px solid var(--line); border-top: 4px solid var(--brand); padding: 22px 24px; background: #fff; color: var(--text); }
dialog.ask::backdrop { background: rgba(20, 22, 23, .45); }
dialog.ask h2 { font-size: 18px; margin: 0 0 8px; }
dialog.ask p { margin: 0 0 12px; color: var(--text-2); font-size: 14px; }
dialog.ask ul { margin: 0 0 12px; padding-left: 18px; font-size: 14px; }
dialog.ask textarea { min-height: 84px; }
dialog.ask .form-actions { margin-top: 14px; }
.review-strip { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; padding: 10px 14px; margin: 0 0 16px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brand); font-size: 13.5px; position: sticky; top: 0; z-index: 2; }
.review-strip a { color: var(--text); text-decoration: none; border-bottom: 1px dotted var(--concrete); }
.review-strip a:hover { color: var(--brand); border-color: var(--brand); }
.inq-st { display: flex; gap: 6px; margin-top: 6px; align-items: center; }
.inq-st select { max-width: 130px; }
@media (max-width: 600px) { .review-strip { position: static; } .pager { justify-content: flex-start; } }
dialog.ask .form-err { color: var(--red); margin: 6px 0 0; }
/* Best-in-class pass: skip link, focus, quick find, buyer to-do. */
.skip { position: absolute; left: 8px; top: -60px; z-index: 50; background: #fff; color: var(--text); padding: 8px 12px; border: 2px solid var(--brand); }
.skip:focus { top: 8px; }
.page h1:focus { outline: none; }
.page h1:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
.qfind input { height: 32px; width: 240px; padding: 0 10px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; font: inherit; font-size: 13px; }
.qfind input::placeholder { color: rgba(255,255,255,.6); }
.qfind input:focus { outline: 2px solid var(--brand); background: rgba(255,255,255,.14); }
.card.todo { border-left: 4px solid var(--brand); margin-bottom: 16px; }
.card.todo h2 { font-size: 16px; margin: 0 0 8px; }
.card.todo ul { list-style: none; margin: 0; padding: 0; }
.card.todo li { padding: 7px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.card.todo li:last-child { border-bottom: 0; }
@media (max-width: 900px) { .qfind input { width: 160px; } }
@media (max-width: 600px) { .qfind { display: none; } }

/* Enterprise console: bulk selection, saved views, inline owner forms */
.t th.sel, .t td.sel { width: 34px; padding-right: 0; }
.t td.sel input, .t th.sel input { width: 16px; height: 16px; cursor: pointer; }
.bulkbar { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 10px; padding: 10px 12px; background: var(--ink); color: #fff; border-radius: var(--r); }
.bulkbar .linkbtn { color: #fff; }
.bulkbar .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.bulkbar select { min-width: 200px; }
form.inline, div.inline { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
form.inline label { display: inline-flex; gap: 4px; align-items: center; }
.views { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 10px; }
.views .view { display: inline-flex; align-items: center; gap: 2px; padding: 3px 4px 3px 10px; border: 1px dashed var(--line); background: #fff; font-size: 13px; border-radius: var(--r); }
.views .view.on { border-style: solid; border-color: var(--brand); }
.views .view a { text-decoration: none; color: var(--text-2); }
.views .view .linkbtn { padding: 0 6px; color: var(--muted); font-size: 15px; line-height: 1; }
.kpi .v.red { color: var(--red); }
.linkbtn[disabled] { opacity: .45; cursor: default; }
.toolbar input.grow { min-width: 200px; flex: 1 1 220px; }
