/* Market Desk: Properties by Southern. Brand blue sampled from the PBS logo (#246CB4). */
:root {
  --bg: #f3f5f8; --surface: #ffffff; --raised: #f8f9fb; --ink: #111a26; --ink-2: #2d3948; --muted: #637083;
  --line: #dde3ea; --line-2: #c9d2dd;
  --brand: #246cb4; --brand-ink: #1b5592; --brand-soft: #e7f0f9;
  --good: #1e7a4c; --good-soft: #e5f4ec; --warn: #9a5a00; --warn-soft: #fdf2e2; --bad: #b3261e; --bad-soft: #fbe9e7;
  --khaab: #1478fc;
  --display: "Newsreader", Georgia, "Times New Roman", serif;
  --ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, monospace;
  --r: 10px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.5 var(--ui); -webkit-font-smoothing: antialiased; }
a { color: var(--brand-ink); }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.mono { font-family: var(--mono); font-size: .92em; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- top bar */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.topbar-in { max-width: 1180px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.logo-pbs { height: 30px; width: auto; display: block; }
.brand-sep { width: 1px; height: 26px; background: var(--line-2); }
.brand-name { font: 600 15px/1 var(--ui); letter-spacing: .02em; }
.nav { display: flex; gap: 4px; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; padding: 7px 12px; border-radius: 8px; }
.nav a:hover { color: var(--ink); background: var(--raised); }
.nav a[aria-current="page"] { color: var(--brand-ink); background: var(--brand-soft); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--muted); }
.asof { display: inline-flex; align-items: center; gap: 6px; }
.asof::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--good); }
.who { display: flex; align-items: center; gap: 8px; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 12px; }
.who a { color: var(--muted); }
.demo-flag { background: var(--warn-soft); color: var(--warn); border-radius: 999px; padding: 3px 10px; font-weight: 600; font-size: 12px; }

.stale-banner { background: var(--warn-soft); color: var(--warn); text-align: center; padding: 9px 16px; font-weight: 500; font-size: 14px; border-bottom: 1px solid var(--line); }
main { max-width: 1180px; margin: 0 auto; padding: 28px 20px 40px; display: grid; gap: 22px; }
.page-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-head h1 { font: 500 30px/1.15 var(--display); margin: 0; letter-spacing: -.01em; text-wrap: balance; }
.page-head p { margin: 4px 0 0; color: var(--muted); max-width: 70ch; }

/* ---------- footer */
.foot { max-width: 1180px; margin: 0 auto; padding: 18px 20px 34px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 12.5px; border-top: 1px solid var(--line); }
.powered { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--muted); }
.logo-khaab { height: 16px; width: auto; display: block; }

/* ---------- ask */
.ask-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: grid; gap: 12px; box-shadow: 0 1px 2px rgba(17, 26, 38, .04); }
.ask-form { display: flex; gap: 10px; }
.ask-form textarea { flex: 1; resize: none; min-height: 52px; max-height: 160px; border: 1px solid var(--line-2); border-radius: var(--r); padding: 13px 14px; background: var(--raised); font-size: 16px; line-height: 1.4; }
.ask-form textarea:focus { outline: none; border-color: var(--brand); background: var(--surface); box-shadow: 0 0 0 3px var(--brand-soft); }
.btn { border: 1px solid transparent; border-radius: var(--r); padding: 10px 16px; font-weight: 600; cursor: pointer; background: var(--raised); border-color: var(--line-2); white-space: nowrap; }
.btn:hover { border-color: var(--muted); }
.btn-primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-ink); border-color: var(--brand-ink); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-good { background: var(--good); color: #fff; border-color: var(--good); }
.examples { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.examples span { color: var(--muted); font-size: 13px; margin-right: 2px; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 5px 11px; font-size: 13px; color: var(--ink-2); cursor: pointer; text-align: left; }
.chip:hover { border-color: var(--brand); color: var(--brand-ink); }

.result { display: grid; gap: 14px; }
.answer { display: grid; gap: 8px; }
.answer h2 { font: 500 26px/1.2 var(--display); margin: 0; text-wrap: balance; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.filters .label { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-right: 4px; }
.filter { background: var(--brand-soft); color: var(--brand-ink); border-radius: 6px; padding: 3px 9px; font-size: 13px; }
.meta-line { font-size: 12.5px; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; }
.clarify, .notice { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--brand); border-radius: var(--r); padding: 14px 16px; display: grid; gap: 10px; }
.notice.bad { border-left-color: var(--bad); }
.clarify p, .notice p { margin: 0; }

.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow-x: auto; }
table.listings { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 760px; }
.listings th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--raised); position: sticky; top: 0; }
.listings td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.listings tr:last-child td { border-bottom: 0; }
.listings td.r, .listings th.r { text-align: right; }
.listings .addr { font-weight: 500; }
.listings .sub { color: var(--muted); font-size: 12.5px; }
.src { font-size: 11.5px; color: var(--muted); }
.empty-state { color: var(--muted); padding: 22px; text-align: center; }
.skeleton { height: 120px; border-radius: 12px; background: linear-gradient(90deg, var(--raised), var(--line), var(--raised)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } }

/* ---------- reports */
.week { display: grid; gap: 10px; }
.week h2 { font: 600 13px/1 var(--ui); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 6px 0 2px; }
.rep-list { display: grid; gap: 10px; }
.rep { display: grid; grid-template-columns: 1fr auto; gap: 6px 18px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; text-decoration: none; color: var(--ink); }
.rep:hover { border-color: var(--brand); }
.rep h3 { margin: 0; font: 600 16px/1.3 var(--ui); }
.rep p { margin: 0; color: var(--muted); font-size: 13.5px; grid-column: 1 / -1; max-width: 95ch; }
.rep .facts { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); grid-column: 1 / -1; }
.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 3px 10px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-needs_review { background: var(--warn-soft); color: var(--warn); }
.st-approved, .st-sent { background: var(--good-soft); color: var(--good); }
.st-held, .st-superseded { background: var(--raised); color: var(--muted); }
.st-failed, .st-needs_check, .st-sending { background: var(--bad-soft); color: var(--bad); }

.report-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.preview { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.preview-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; }
.seg button { border: 0; background: transparent; padding: 6px 12px; cursor: pointer; color: var(--muted); font-weight: 500; font-size: 13.5px; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
.preview iframe { width: 100%; height: 1100px; border: 0; display: block; background: #fff; }
.panel { position: sticky; top: 76px; display: grid; gap: 14px; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: grid; gap: 10px; }
.box h3 { margin: 0; font: 600 13px/1 var(--ui); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.box textarea { width: 100%; min-height: 90px; resize: vertical; border: 1px solid var(--line-2); border-radius: 8px; padding: 9px 10px; background: var(--raised); }
.box .row { display: flex; gap: 8px; flex-wrap: wrap; }
.box ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 13.5px; color: var(--ink-2); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 13.5px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; overflow-wrap: anywhere; }
.toast { font-size: 13px; padding: 8px 10px; border-radius: 8px; background: var(--good-soft); color: var(--good); }
.toast.bad { background: var(--bad-soft); color: var(--bad); }
.hint { font-size: 12.5px; color: var(--muted); margin: 0; }

/* ---------- login */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.login { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 30px 28px; display: grid; gap: 18px; box-shadow: 0 10px 30px rgba(17, 26, 38, .06); }
.login .logo-pbs { height: 36px; }
.login h1 { font: 500 24px/1.2 var(--display); margin: 0; }
.login p { margin: 0; color: var(--muted); font-size: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field input { border: 1px solid var(--line-2); border-radius: 8px; padding: 10px 12px; background: var(--raised); }
.field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); background: var(--surface); }
.err { background: var(--bad-soft); color: var(--bad); border-radius: 8px; padding: 9px 12px; font-size: 14px; }
.login .powered { justify-content: center; }

@media (max-width: 900px) {
  .report-grid { grid-template-columns: 1fr; }
  .panel { position: static; }
  .preview iframe { height: 900px; }
}
@media (max-width: 640px) {
  .topbar-in { gap: 10px 14px; padding: 10px 16px; }
  .brand-name, .brand-sep { display: none; }
  .top-right .asof { display: none; }
  main { padding: 20px 16px 32px; }
  .ask-form { flex-direction: column; }
  .page-head h1 { font-size: 25px; }
  .answer h2 { font-size: 22px; }
  table.listings { min-width: 0; }
  .listings thead { display: none; }
  .listings tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .listings tr:last-child { border-bottom: 0; }
  .listings td { padding: 0; border: 0; text-align: left !important; }
  .listings td:first-child { grid-column: 1 / -1; }
  .listings td:not(:first-child)::before { content: attr(data-label); display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
}

/* Calm, readable workspace; details stay available without competing with results. */
:root { color-scheme: light; --bg: #fafbfc; --display: var(--ui); }
.topbar-in { padding-block: 16px; }
.top-right .asof { display: none; }
.data-status { max-width: 1140px; margin: 18px auto 0; padding: 0 20px; font-size: 13px; color: var(--muted); }
.data-status summary { cursor: pointer; }
.data-status summary span { margin-left: 12px; color: var(--brand-ink); }
.data-status p { max-width: 90ch; margin: 10px 0; line-height: 1.6; }
main { padding-top: 36px; gap: 28px; }
.page-head h1 { font-size: 32px; font-weight: 600; letter-spacing: -.03em; }
.page-head p { margin-top: 10px; }
.ask-card { padding: 22px; box-shadow: none; }
.examples .chip { border: 0; padding: 4px 0; margin-right: 14px; color: var(--brand-ink); background: transparent; border-radius: 0; }
.examples .chip:hover { text-decoration: underline; }
.answer h2 { font-size: 23px; font-weight: 600; }
.query-details { color: var(--muted); font-size: 13px; }
.query-details summary { cursor: pointer; padding: 4px 0; }
.query-details .filters, .query-details .meta-line, .query-details p { margin-top: 12px; }
.listings td { padding: 16px 14px; }
.listings th { padding: 12px 14px; }
.listings tbody tr:hover { background: #f8fafc; }
.rep { padding: 20px; gap: 10px 18px; }
.panel { position: static; }
.box { padding: 20px; }
.box summary { cursor: pointer; font-weight: 600; }

.listing-details { margin-top: 8px; font-size: 13px; max-width: 55ch; }
.listing-details summary { cursor: pointer; color: var(--brand-ink); }
.listing-details p { line-height: 1.65; white-space: pre-wrap; }
.listing-details ul { padding-left: 18px; }

/* Address-first workspace */
.property-panel { background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:24px; min-width:0; }
.property-panel h2 { margin:0 0 12px; font-size:19px; }
.property-panel p:last-child { margin-bottom:0; }
.property-search label { display:block; font-weight:600; margin-bottom:10px; }
.property-search > div { display:flex; gap:12px; }
.property-search input { flex:1; min-width:0; border:1px solid var(--line-2); border-radius:8px; padding:14px; }
.property-list { display:grid; }
.property-row { display:flex; justify-content:space-between; gap:20px; padding:18px 0; border-top:1px solid var(--line); text-decoration:none; }
.property-row small { display:block; color:var(--muted); margin-top:5px; }
.property-row:hover strong { text-decoration:underline; }
.property-facts { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.property-facts > div { display:flex; flex-direction:column; gap:6px; background:var(--surface); border-radius:10px; padding:20px; }
.property-facts strong { font-size:23px; font-weight:600; }
.property-facts small,.muted { color:var(--muted); }
.property-facts.compact { margin:18px 0; }
.property-facts.compact > div { background:var(--raised); }
.property-columns { display:grid; grid-template-columns:1fr 1fr; gap:22px; }
.price-history { list-style:none; padding:0; }
.price-history li { display:flex; justify-content:space-between; border-top:1px solid var(--line); padding:10px 0; }
.property-remarks { white-space:pre-wrap; }
.property-panel summary { cursor:pointer; font-weight:600; }
.property-panel .table-wrap { overflow-x:auto; }
@media(max-width:700px) { .property-facts { grid-template-columns:1fr 1fr; } .property-columns { grid-template-columns:1fr; } .property-search > div,.property-row { flex-direction:column; } .property-panel { padding:18px; } .property-facts strong { font-size:20px; } }
#setup-form { display:grid; gap:22px; }
#setup-form input { min-width:150px; width:100%; padding:9px; border:1px solid var(--line-2); border-radius:6px; }
#setup-form textarea { width:100%; padding:12px; border:1px solid var(--line-2); border-radius:8px; margin-bottom:18px; }
#setup-form h2:not(:first-child) { margin-top:22px; }

/* Keyboard, touch and narrow-screen reading. No overlay obscures focused controls. */
:root { --muted:#526174; }
html { scroll-padding-top:24px; }
.topbar { position:static; }
.skip-link { position:fixed; left:16px; top:12px; z-index:100; transform:translateY(-160%); padding:12px 18px; background:#fff; border:2px solid var(--brand-ink); border-radius:8px; }
.skip-link:focus { transform:none; }
.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; }
:focus-visible { outline:3px solid var(--brand-ink); outline-offset:3px; }
main:focus:not(:focus-visible) { outline:none; }
.btn, .chip, .nav a, .seg button, summary { min-height:44px; }
summary { align-content:center; }
.nav a, a.btn { display:inline-flex; align-items:center; justify-content:center; text-decoration:none; }
.examples .chip { padding:10px 4px; }
input, textarea, select { font-size:16px; }
.queue-filter { display:flex; flex-wrap:wrap; gap:16px; align-items:end; }
.queue-filter .field:first-child { flex:1; min-width:200px; }
.queue-filter select { min-height:46px; border:1px solid var(--line-2); border-radius:8px; padding:8px 12px; background:white; }
.row { display:flex; gap:12px; flex-wrap:wrap; align-items:center; }
.comparison-table { width:100%; border-collapse:collapse; font-size:14px; }
.comparison-table th { background:var(--raised); text-align:left; color:var(--muted); }
.comparison-table th, .comparison-table td { padding:14px; border-bottom:1px solid var(--line); vertical-align:top; }
.comparison-table td:first-child { min-width:180px; }
.panel-heading { font-size:16px; margin:0; font-weight:600; }
#note-status { margin:0; font-size:13px; color:var(--muted); }
.property-row, .rep, .page-head h1, .brand, .nav { min-width:0; overflow-wrap:anywhere; }
@media(max-width:700px) {
  .nav { width:100%; flex-wrap:wrap; gap:4px; }
  .nav a { padding:8px 10px; }
  .top-right { margin-left:0; }
  .page-head h1 { font-size:28px; }
  .queue-filter { align-items:stretch; flex-direction:column; }
  .property-facts { gap:8px; }
  .property-facts > div { padding:14px; }
  .rep { grid-template-columns:1fr; }
  .rep .pill { justify-self:start; }
  .preview iframe { height:65vh; min-height:360px; }
  .preview-bar .seg { display:flex; flex-wrap:wrap; }
  .seg button { white-space:normal; }
  .report-grid { gap:16px; }
  .listings thead { display:table-header-group; }
  table.listings { min-width:760px; }
  .listings tr { display:table-row; }
  .listings td { padding:14px; }
  .listings td:not(:first-child)::before { content:none; }
}
@media(forced-colors:active) { .btn,.chip,.pill { border:1px solid ButtonText; } }

/* Listing research: sourced photos, readable facts and deliberate comparisons. */
.listing-card-heading{display:flex;gap:16px;align-items:flex-start}.listing-card-heading h3{margin:0 0 6px;font-size:17px}.listing-photo{width:120px;min-width:120px;height:90px;background:#eef0f2;border-radius:8px;display:flex;align-items:center;justify-content:center;overflow:hidden;color:#505b66;font-size:12px;text-align:center}.listing-photo img{width:120px;height:90px;object-fit:contain}.listing-photo [hidden]{display:none}.listing-card-heading .eyebrow{margin:0 0 6px}.listing-price{font-size:23px;font-weight:650;margin:18px 0 6px}.listing-price small{font-size:13px;font-weight:400}.listing-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0}.listing-details dt{font-size:12px;color:#535c66}.listing-details dd{margin:3px 0 0;font-weight:550;overflow-wrap:anywhere}.comp-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.listing-card{border:1px solid #d5dce2;border-radius:12px;padding:18px;min-width:0;background:#fff}.listing-card[hidden],#selected-comparison[hidden],#comp-tools[hidden]{display:none}.listing-description{margin:12px 0}.listing-description summary{min-height:44px;padding:10px 0;cursor:pointer}.compare-choice{display:flex;align-items:center;gap:10px;min-height:44px;font-weight:600;cursor:pointer}.compare-choice input{width:20px;height:20px;flex-shrink:0}.selected-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0 28px}.selected-cards{display:contents}.selected-grid .listing-card-heading{flex-direction:column}.selected-grid .listing-details{grid-template-columns:1fr}.selected-grid>.listing-card{background:#f3f7fa}.activity-label{font-size:13px;color:#244c65;font-weight:600}.property-row>.listing-photo{flex-shrink:0}.property-row>span:first-of-type{flex:1}.property-overview .listing-card-heading h2{margin-top:0}#comp-query{min-width:220px}
@media(max-width:1000px){.selected-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.selected-grid .listing-card-heading{flex-direction:row}}
@media(max-width:640px){.comp-grid,.selected-grid{grid-template-columns:1fr}.listing-card-heading{gap:12px}.property-row{flex-wrap:wrap}.property-row>.listing-photo{width:80px;min-width:80px;height:60px}.property-row>.listing-photo img{width:80px;height:60px}.property-row>.num{width:100%;text-align:left}.listing-card{padding:14px}.property-overview .listing-card-heading{flex-direction:column}}
.photo-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;max-height:540px;overflow:auto;padding:4px}.photo-gallery a{display:block;min-height:100px}.photo-gallery img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;background:#eef0f2;border-radius:8px}.photo-gallery a:first-child{grid-column:span 2;grid-row:span 2}.location-map summary{cursor:pointer;min-height:44px;padding:12px 0}.location-map iframe{width:100%;border:1px solid #d5dce2;border-radius:8px;margin-top:12px}@media(max-width:640px){.photo-gallery{grid-template-columns:repeat(2,minmax(0,1fr));max-height:420px}.photo-gallery a:first-child{grid-column:span 2;grid-row:auto}}

.media-panel>summary{font-size:18px;font-weight:600;min-height:44px;cursor:pointer;padding:8px 0}.media-panel[open]>summary{margin-bottom:12px}
.email-copy { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; line-height: 1.6; padding: 14px 0; }
.email-preview strong { overflow-wrap: anywhere; }
.email-plan { margin-top: 16px; }
.email-plan .kv { grid-template-columns: 5.5rem minmax(0, 1fr); }
.review-overview { display:flex; flex-wrap:wrap; gap:20px; }.review-overview a { flex:1; min-width:110px; color:var(--ink); }.review-overview strong { display:block; font-size:26px; }.review-checklist ul,.job-history { padding-left:20px; }.review-checklist li,.job-history li { margin:12px 0; overflow-wrap:anywhere; }.check-attention::marker { color:#8a5800; }.source-evidence { padding:16px 20px; background:#f3f7fa; border:1px solid var(--line); border-radius:10px; margin-bottom:16px; }.source-evidence p:last-child { margin-bottom:0; }.activity-alerts li { margin:10px 0; }#hold-reason { width:100%; box-sizing:border-box; }.review-checklist { border-top:3px solid #536e83; }#resume[hidden] { display:none; }

/* November listing desk: compact source thumbnails, quiet motion, clear next steps. */
:root { --desk-shadow:0 10px 32px rgba(26,51,78,.045); --desk-radius:18px; }
.eyebrow { margin:0 0 10px; color:var(--brand-ink); font-size:11px; font-weight:700; letter-spacing:.13em; text-transform:uppercase; }
.text-link { display:inline-flex; align-items:center; gap:8px; min-height:44px; font-weight:600; text-decoration:none; }
.text-link:hover { text-decoration:underline; text-underline-offset:4px; }
.listings-page main,.assistant-page main,.property-page main { gap:28px; padding-top:30px; }
.listings-page .topbar,.assistant-page .topbar,.property-page .topbar { box-shadow:0 3px 18px rgba(26,51,78,.025); }
.listings-page .btn,.assistant-page .btn,.property-page .btn { display:inline-flex; align-items:center; justify-content:center; gap:12px; min-height:46px; }
.listing-hero { position:relative; isolation:isolate; overflow:hidden; padding:30px 36px 28px; border:1px solid #d8e5f0; border-radius:22px; background:linear-gradient(115deg,#f1f7fc 0%,#fff 68%); }
.listing-hero::after { content:""; pointer-events:none; position:absolute; z-index:-1; right:-100px; top:50px; width:480px; height:480px; border:1px solid rgba(36,108,180,.08); border-radius:50%; box-shadow:0 0 0 40px rgba(36,108,180,.025),0 0 0 80px rgba(36,108,180,.02); }
.hero-topline { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; }
.hero-topline .eyebrow { margin:0; }
.hero-topline .btn { background:rgba(255,255,255,.8); font-size:13px; }
.listing-hero h1 { margin:20px 0 12px; font:400 clamp(32px,3.4vw,46px)/1.12 Georgia,"Times New Roman",serif; letter-spacing:-.035em; max-width:23ch; }
.listing-hero h1 span { color:var(--brand-ink); }
.hero-intro { max-width:65ch; color:var(--muted); margin:0 0 25px; }
.listing-hero .property-search { max-width:860px; }
.listing-hero .property-search label { font-size:13px; margin-bottom:8px; }
.listing-hero .property-search>div { padding:5px; gap:5px; border:1px solid #bfcedc; border-radius:12px; background:var(--surface); box-shadow:0 4px 12px rgba(26,51,78,.035); }
.listing-hero .property-search input { border:0; background:transparent; padding:11px 14px; border-radius:7px; }
.listing-hero .property-search input:focus { outline:2px solid var(--brand); outline-offset:-2px; }
.listing-hero .hint { margin:10px 0 0; }
.section-heading { display:flex; align-items:end; justify-content:space-between; flex-wrap:wrap; gap:12px; margin-bottom:18px; }
.section-heading h2 { margin:0; font-size:23px; font-weight:650; letter-spacing:-.025em; }
.section-heading .eyebrow { margin-bottom:5px; }
.section-heading p.muted { margin:4px 0 0; font-size:13px; }
.count-badge { display:inline-flex; align-items:center; justify-content:center; vertical-align:middle; font:600 12px/1 var(--ui); min-width:25px; height:25px; padding:0 7px; background:#edf2f7; color:var(--muted); border-radius:7px; margin-left:6px; }
.property-tiles { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.property-tile { display:flex; align-items:flex-start; gap:18px; min-width:0; text-decoration:none; color:var(--ink); padding:20px; border:1px solid var(--line); border-radius:14px; background:var(--surface); box-shadow:0 2px 3px rgba(26,51,78,.015); }
.property-tile>.listing-photo { margin-top:3px; flex:none; }
.property-tile-body { flex:1; min-width:0; }
.property-tile h3 { margin:8px 0 6px; font-size:17px; line-height:1.35; font-weight:650; letter-spacing:-.015em; overflow-wrap:anywhere; }
.listing-status { display:inline-flex; align-items:center; border:1px solid #d9e5ee; background:#f4f8fb; border-radius:5px; padding:2px 6px; color:#34556e; font-size:10px; font-weight:650; letter-spacing:.025em; text-transform:uppercase; vertical-align:middle; }
.tile-price { margin:0 0 8px; font-size:21px; font-weight:600; letter-spacing:-.025em; }
.tile-price small { font-size:12px; font-weight:400; color:var(--muted); }
.tile-facts { font-size:12px; color:var(--muted); margin:0; }
.tile-facts>span { padding:0 4px; }
.tile-footer { display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px; border-top:1px solid var(--line); margin-top:14px; padding-top:10px; font-size:11px; color:var(--muted); }
.tile-footer small { font-size:11px; }
.tile-footer>span { color:var(--brand-ink); font-weight:600; }
.listing-photo { background:linear-gradient(140deg,#f0f4f7,#e7edf2); border:1px solid #e1e8ee; }
.photo-fallback { display:flex; flex-direction:column; gap:3px; align-items:center; font-size:10px; }
.photo-mark { font-size:28px; line-height:1; color:#859bac; font-family:Georgia,serif; }
.listing-photo img { object-fit:contain; }
.more-listings { margin-top:16px; }
.more-listings>summary { display:list-item; width:fit-content; padding:8px 0; color:var(--brand-ink); font-weight:600; font-size:13px; }
.more-listings[open]>.property-tiles { margin-top:12px; }
.collection-tip { display:flex; gap:16px; align-items:center; padding:0 4px; color:var(--muted); font-size:13px; }
.collection-tip>span { font-size:26px; color:var(--brand); }
.collection-tip p { margin:0; }
.collection-tip strong { color:var(--ink-2); }
.research-paths { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.research-paths>a { display:block; padding:23px 26px; border:1px solid var(--line); border-radius:14px; background:#f1f5f8; text-decoration:none; color:var(--ink); }
.research-paths h2 { display:flex; justify-content:space-between; gap:12px; margin:4px 0 8px; font-size:19px; letter-spacing:-.02em; }
.research-paths h2 span { color:var(--brand); }
.research-paths p { color:var(--muted); font-size:13px; margin:0; max-width:52ch; }
.workspace-source { margin:0; font-size:12px; color:var(--muted); }
.workspace-source a { margin-left:5px; }
.search-matches .section-heading { margin-bottom:0; }
.search-matches .property-list { margin-top:12px; }
.listings-page .property-row { flex-direction:row; align-items:center; padding:18px 0; }
.property-row .row-price { font-size:16px; font-weight:600; white-space:nowrap; }
.property-row .row-price>span { display:inline-block; color:var(--brand); margin-left:14px; }
.workspace-empty { padding:28px 18px; max-width:70ch; }
.workspace-empty h3 { margin:8px 0; font-size:19px; }
.workspace-empty p { margin:8px 0; }
.empty-mark { display:inline-flex; font-size:32px; color:var(--brand); }

/* The assistant keeps the prompt, feedback and evidence visible. */
.assistant-heading h1 { font:400 42px/1.15 Georgia,"Times New Roman",serif; letter-spacing:-.035em; }
.assistant-heading .eyebrow { margin-bottom:8px; }
.assistant-heading p:not(.eyebrow) { max-width:64ch; margin-top:10px; }
.assistant-layout { display:grid; grid-template-columns:minmax(0,1.8fr) minmax(260px,1fr); gap:24px; align-items:start; }
.assistant-page .ask-card { border-radius:var(--desk-radius); border-top:3px solid var(--brand); padding:26px; box-shadow:var(--desk-shadow); gap:20px; }
.composer-heading { display:flex; gap:12px; align-items:center; }
.composer-heading h2 { margin:0 0 3px; font-size:18px; font-weight:650; letter-spacing:-.02em; }
.composer-heading p { margin:0; font-size:12px; color:var(--muted); }
.assistant-symbol { width:38px; height:38px; display:grid; place-items:center; border-radius:11px; font-size:28px; background:var(--brand-soft); color:var(--brand); flex:none; }
.assistant-page .ask-form { display:flex; flex-direction:column; gap:12px; }
.assistant-page .ask-form textarea { width:100%; min-height:112px; max-height:200px; background:#f8fafc; padding:15px; line-height:1.6; }
.composer-footer { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px; }
.composer-footer .hint { font-size:11px; }
.composer-footer .row { gap:8px; margin-left:auto; }
.ask-status { margin:0; border-top:1px solid var(--line); padding-top:14px; font-size:12px; color:var(--muted); }
.ask-status.is-searching { color:var(--brand-ink); }
.ask-status.is-error { color:var(--bad); }
.assistant-guide { padding:12px 0; }
.assistant-guide h2 { margin:0 0 6px; font-size:18px; letter-spacing:-.02em; }
.assistant-guide>p:not(.eyebrow) { color:var(--muted); font-size:13px; margin:0 0 14px; }
.assistant-guide .examples { display:grid; gap:8px; }
.assistant-guide .examples .chip { display:flex; justify-content:space-between; align-items:center; gap:12px; width:100%; border:1px solid var(--line); padding:10px 12px; margin:0; border-radius:9px; background:white; font-size:12px; line-height:1.5; text-decoration:none; }
.assistant-guide .examples .chip span { margin:0; color:var(--brand); font-size:15px; }
.assistant-guide .text-link { margin-top:10px; font-size:12px; }
.assistant-welcome { border-top:1px solid var(--line); padding:23px 0 0; }
.assistant-welcome p { color:var(--muted); max-width:80ch; font-size:13px; margin:0; }
.assistant-page .result:empty { display:none; }
.assistant-page .result { gap:18px; }
.assistant-page .source-evidence { display:grid; gap:7px; margin:0; padding:16px 20px; border-radius:12px; border-color:#d7e3ed; background:#eff5fa; }
.source-evidence .source-title { display:flex; align-items:center; flex-wrap:wrap; gap:10px; font-size:13px; }
.source-evidence .source-tag { font-size:10px; text-transform:uppercase; letter-spacing:.1em; color:var(--brand-ink); font-weight:700; }
.source-evidence .source-limit { margin:0; font-size:12px; color:var(--muted); }
.assistant-page .answer { gap:12px; }
.assistant-page .answer h2 { font-size:24px; line-height:1.4; max-width:85ch; }
.assistant-page .query-details { border-top:1px solid var(--line); }
.assistant-page .query-details summary { width:fit-content; }
.assistant-page .table-wrap { border-radius:14px; }
.assistant-page .listings .addr { font-weight:650; }
.assistant-page .listings td { vertical-align:middle; }
.assistant-page details.listing-details { display:block; }
.assistant-page .result .empty-state { text-align:left; padding:26px; }
.assistant-page .result .empty-state h3 { margin:0 0 6px; color:var(--ink); font-size:18px; }
.assistant-page .result .empty-state p { margin:0; }
.search-progress { display:flex; align-items:center; gap:16px; padding:26px; border:1px solid var(--line); background:white; border-radius:14px; }
.search-progress strong { display:block; margin-bottom:4px; font-size:15px; }
.search-progress p { font-size:13px; color:var(--muted); margin:0; }
.search-indicator { display:block; width:25px; height:25px; flex:none; border:2px solid #d8e5f0; border-top-color:var(--brand); border-radius:50%; }
.assistant-page .saved-searches { padding:20px 24px; }
.saved-searches>summary { font-size:15px; }
.saved-search-row { padding:12px 0; border-bottom:1px solid var(--line); margin-bottom:12px; }
.saved-search-row .saved-question { margin-right:auto; }
.assistant-page #search-status:empty { display:none; }

/* Property reading order mirrors the research workflow. */
.property-page .page-head { align-items:center; }
.property-page .page-head .eyebrow { margin-bottom:8px; }
.property-page .page-head h1 { font-size:34px; letter-spacing:-.035em; }
.property-page .page-head p:not(.eyebrow) { font-size:13px; }
.back-link { width:fit-content; font-size:13px; margin-bottom:-16px; }
.property-actions { margin-top:-12px; }
.property-actions #watch-status { font-size:13px; color:var(--muted); }
.property-actions #watch-property[aria-pressed="true"] { background:var(--brand-soft); border-color:#b8cfe3; color:var(--brand-ink); }
.property-jumps { display:flex; flex-wrap:wrap; gap:4px 20px; border-block:1px solid var(--line); padding:4px 0; }
.property-jumps a { display:inline-flex; align-items:center; min-height:44px; font-size:13px; font-weight:600; text-decoration:none; }
.property-jumps a:hover { text-decoration:underline; text-underline-offset:4px; }
.property-page .property-panel { border-radius:16px; padding:26px; }
.property-page .property-panel h2 { font-size:21px; letter-spacing:-.02em; }
.property-overview>.listing-card-heading { align-items:center; padding-bottom:20px; margin-bottom:20px; border-bottom:1px solid var(--line); }
.property-overview>.listing-card-heading>div:last-child { flex:1; }
.property-overview>.listing-card-heading p { font-size:13px; }
.property-overview .property-facts { grid-template-columns:repeat(3,minmax(0,1fr)); gap:0; border:1px solid var(--line); border-radius:12px; overflow:hidden; }
.property-overview .property-facts>div { padding:18px 20px; border-radius:0; border-bottom:1px solid var(--line); background:#fafcfd; }
.property-overview .property-facts>div:nth-child(-n+3) { background:#f1f6fa; }
.property-overview .property-facts small { font-size:11px; text-transform:uppercase; letter-spacing:.06em; }
.property-overview .property-facts strong { font-size:24px; line-height:1.3; letter-spacing:-.025em; overflow-wrap:anywhere; }
.property-overview .property-facts>div:last-child strong { font-size:17px; }
.property-overview .listing-details { max-width:none; grid-template-columns:repeat(3,minmax(0,1fr)); margin:22px 0; }
.property-page .property-remarks { max-width:90ch; line-height:1.75; }
.competition-panel>.queue-filter { margin:18px 0; padding:14px 16px; border:1px solid var(--line); background:var(--raised); border-radius:12px; }
.property-page .property-facts.compact>div { padding:15px; }
.property-page .property-facts.compact small { font-size:12px; }
.property-page #comp-tools { padding:16px; background:#f3f7fa; border-radius:12px; }
.property-page #comp-tools .field:first-child { min-width:180px; }
.property-page #comp-query { min-width:0; width:100%; }
.property-page #comp-status-message { color:var(--muted); font-size:12px; }
.property-page .listing-card { padding:20px; border-radius:14px; }
.property-page .listing-card:has(.compare-pick:checked) { border-color:var(--brand); box-shadow:0 0 0 1px var(--brand); background:#fbfdff; }
.property-page .listing-card .listing-details { max-width:none; }
.property-page .listing-card .listing-price { letter-spacing:-.025em; }
.compare-choice { border-top:1px solid var(--line); padding-top:12px; margin-top:16px; font-size:13px; }
.compare-choice input { accent-color:var(--brand); }
.property-page .selected-grid>.listing-card { background:#edf4fa; }
.property-page #more-candidates { margin-top:18px; }
.property-page #selected-comparison { padding-top:4px; }
.property-page #selected-comparison h3 { font-size:18px; }
.property-page .property-columns { gap:20px; }
.property-page .price-history li { padding:14px 0; }
[hidden], .btn[hidden] { display:none !important; }
@media (prefers-reduced-motion:no-preference) {
  .listings-page .btn,.assistant-page .btn,.property-page .btn,.property-tile,.research-paths>a,.assistant-guide .chip,.property-page .listing-card,.property-row,.nav a { transition:background-color .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease; }
  .property-tile:hover { transform:translateY(-3px); border-color:#a8c3dc; box-shadow:0 9px 22px rgba(26,51,78,.07); }
  .research-paths>a:hover { transform:translateY(-2px); background:#eaf2f8; border-color:#b8cee0; }
  .assistant-guide .chip:hover { transform:translateX(3px); border-color:#9bbbd7; background:#f5faff; }
  .listing-hero,.assistant-heading,.property-page .page-head { animation:desk-arrive .4s ease-out both; }
  .search-indicator { animation:desk-spin .85s linear infinite; }
  @keyframes desk-arrive { from { transform:translateY(5px); opacity:.82; } to { transform:none; opacity:1; } }
  @keyframes desk-spin { to { transform:rotate(360deg); } }
}
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { scroll-behavior:auto !important; animation:none !important; transition:none !important; }
}
@media(max-width:1000px) {
  .property-tile { gap:14px; padding:17px; }
  .property-tiles { grid-template-columns:1fr; }
  .assistant-layout { grid-template-columns:minmax(0,1.6fr) minmax(240px,1fr); gap:20px; }
  .assistant-page .ask-card { padding:22px; }
  .composer-footer .hint { flex-basis:100%; }
}
@media(max-width:760px) {
  .listing-hero { padding:24px; }
  .assistant-layout { grid-template-columns:1fr; gap:16px; }
  .assistant-guide { padding:4px; }
  .assistant-guide .examples { grid-template-columns:1fr 1fr; }
  .assistant-guide .examples .chip { height:100%; }
  .research-paths { gap:12px; }
  .research-paths>a { padding:20px; }
  .property-page .property-panel { padding:20px; }
  .property-overview .property-facts strong { font-size:21px; }
}
@media(max-width:540px) {
  .listings-page main,.assistant-page main,.property-page main { padding:22px 16px 32px; gap:24px; }
  .listing-hero { padding:20px; border-radius:16px; }
  .hero-topline { align-items:start; }
  .hero-topline .btn { width:100%; order:2; justify-content:space-between; }
  .listing-hero h1 { font-size:35px; margin-top:22px; }
  .listing-hero .property-search>div { flex-direction:column; }
  .listing-hero .property-search input { min-height:48px; font-size:15px; padding:10px; }
  .hero-intro { font-size:14px; }
  .listing-hero .hint { font-size:11px; line-height:1.6; }
  .section-heading { align-items:start; gap:6px; }
  .section-heading h2 { font-size:21px; }
  .property-tile { display:grid; grid-template-columns:1fr 120px; gap:12px; padding:18px; }
  .property-tile>.listing-photo { grid-column:2; grid-row:1; margin:0; }
  .property-tile-body { display:contents; }
  .property-tile .listing-status { grid-column:1; grid-row:1; align-self:start; justify-self:start; }
  .property-tile h3 { grid-column:1; grid-row:1; margin-top:31px; margin-bottom:0; font-size:16px; align-self:start; }
  .property-tile .tile-price { grid-column:1/-1; margin:0; }
  .tile-facts,.tile-footer { grid-column:1/-1; }
  .tile-footer { margin-top:2px; }
  .property-row .row-price { grid-column:1/-1; }
  .listings-page .property-row { display:grid; grid-template-columns:80px minmax(0,1fr); gap:12px; }
  .property-row .row-price { display:flex; justify-content:space-between; }
  .property-row small .listing-status { margin-bottom:4px; }
  .research-paths { grid-template-columns:1fr; }
  .research-paths>a { padding:20px; }
  .workspace-source a { display:block; margin:6px 0 0; }
  .assistant-heading h1 { font-size:36px; }
  .assistant-page .ask-card { padding:20px; }
  .composer-heading { align-items:start; }
  .composer-heading h2 { font-size:17px; }
  .assistant-page .ask-form textarea { min-height:128px; }
  .composer-footer .row { width:100%; }
  .composer-footer .row .btn { flex:1; padding-inline:10px; }
  .assistant-guide .examples { grid-template-columns:1fr; }
  .assistant-page .source-evidence { padding:16px; }
  .assistant-page .answer h2 { font-size:21px; }
  .assistant-page .listings { min-width:0; }
  .assistant-page .listings thead { display:none; }
  .assistant-page .listings tr { display:grid; grid-template-columns:1fr 1fr; gap:10px 16px; padding:20px; }
  .assistant-page .listings td { padding:0; border:0; text-align:left; overflow-wrap:anywhere; }
  .assistant-page .listings td:first-child { grid-column:1/-1; font-size:16px; padding-bottom:4px; }
  .assistant-page .listings td:not(:first-child)::before { content:attr(data-label); display:block; font:500 10px/1.5 var(--ui); text-transform:uppercase; letter-spacing:.06em; color:var(--muted); }
  .assistant-page .listings td.r { text-align:left; }
  .assistant-page .listings tr+tr { border-top:1px solid var(--line); }
  .assistant-page .saved-searches { padding:18px; }
  .assistant-page .saved-searches .property-search>div { flex-direction:column; }
  .property-page .page-head h1 { font-size:28px; }
  .property-page .property-panel { padding:18px; }
  .property-jumps { gap:4px 16px; }
  .property-overview>.listing-card-heading { flex-direction:row; flex-wrap:wrap; align-items:start; }
  .property-overview .property-facts { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .property-overview .property-facts>div { padding:14px; }
  .property-overview .property-facts>div:nth-child(3) { background:#fafcfd; }
  .property-overview .property-facts strong { font-size:20px; }
  .property-overview .property-facts small { font-size:10px; }
  .property-overview .listing-details { grid-template-columns:1fr 1fr; }
  .property-page .queue-filter .field:first-child { min-width:0; }
  .property-page .listing-card { padding:16px; }
  .property-page .listing-card-heading { flex-direction:column; }
  .property-page .listing-card .listing-details { gap:14px 12px; }
}
.top-right .asof { display:inline-flex; font-size:11px; }
.asof::before { background:#6e8193; }
.asof[data-state="fresh"]::before { background:var(--good); }
.asof[data-state="stale"] { color:#855200; }
.asof[data-state="stale"]::before { background:#a96700; }
.asof[data-state="none"]::before { background:#7a8390; }
.asof[data-state="demo"]::before,.asof[data-state="export"]::before { background:var(--brand); }
@media(max-width:700px) { .top-right .asof { display:none; } }
.submitted-question { margin:0; padding:14px 18px; background:white; border:1px solid var(--line); border-radius:10px; color:var(--ink-2); font-size:14px; overflow-wrap:anywhere; }
.submitted-question>span { display:block; color:var(--muted); font-size:10px; font-weight:650; letter-spacing:.09em; text-transform:uppercase; margin-bottom:4px; }
.ask-feedback { border-top:1px solid var(--line); padding-top:14px; }
.ask-feedback .ask-status { border:0; padding:0; }
.ask-feedback .text-link { font-size:13px; margin-top:4px; }

/* PBS glass workspace. Blur is limited to the navigation and sign-in surface. */
.workspace-shell,.glass-login {
  --glass-line:rgba(255,255,255,.94); --glass-surface:rgba(247,251,255,.74); --glass-ink:#193b5a;
  background-color:#e8eef6;
  background-image:radial-gradient(ellipse at 20% 5%,rgba(125,177,225,.34),transparent 52%),radial-gradient(ellipse at 0% 95%,rgba(230,190,150,.28),transparent 46%),linear-gradient(120deg,#e7eef7,#f5f8fc 78%);
  background-attachment:fixed;
}
.workspace-shell { --sidebar-width:252px; --sidebar-space:292px; }
.workspace-content { min-width:0; margin-left:var(--sidebar-space); }
.workspace-content>main { width:100%; max-width:1216px; padding:34px 30px 40px; }
.workspace-content>.foot { margin-inline:30px; max-width:none; border-color:rgba(122,148,177,.25); padding:18px 0 28px; }
.workspace-sidebar { position:fixed; inset:20px auto 20px 20px; width:var(--sidebar-width); z-index:30; display:flex; flex-direction:column; gap:28px; padding:23px 15px 15px; overflow-y:auto; overflow-x:hidden; border:1px solid var(--glass-line); border-radius:26px; background:var(--glass-surface); -webkit-backdrop-filter:blur(24px) saturate(1.35); backdrop-filter:blur(24px) saturate(1.35); box-shadow:0 16px 42px rgba(32,67,101,.10),inset 0 1px 0 white,inset 1px 0 0 rgba(255,255,255,.7); }
.sidebar-heading { position:relative; display:flex; flex-wrap:wrap; gap:16px 8px; align-items:center; min-height:69px; padding-inline:6px; }
.sidebar-brand { width:100%; min-height:42px; }
.sidebar-brand-full { display:flex; flex-direction:column; gap:12px; width:100%; }
.sidebar-brand .logo-pbs { width:196px; max-width:100%; height:auto; }
.sidebar-brand .brand-name { font-size:12px; font-weight:600; letter-spacing:.06em; color:#48627a; padding-left:2px; display:block; }
.sidebar-brand-mark { display:none; }
.sidebar-collapse,.sidebar-mobile-toggle { display:flex; align-items:center; justify-content:center; gap:8px; border:1px solid rgba(126,156,185,.30); border-radius:10px; background:rgba(255,255,255,.62); color:#345775; cursor:pointer; min-width:36px; min-height:36px; padding:7px; }
.sidebar-collapse { margin-left:auto; min-height:32px; min-width:32px; }
.sidebar-collapse .nav-icon { width:17px; height:17px; }
.sidebar-collapse:hover,.sidebar-mobile-toggle:hover { background:white; border-color:#a1bdd5; }
.sidebar-mobile-toggle { display:none; }
.nav-icon { width:21px; height:21px; min-width:21px; display:block; flex:none; }
.sidebar-menu { display:flex; flex:1 0 auto; flex-direction:column; gap:12px; min-height:min-content; }
.sidebar-section-label { padding:0 16px; margin:0; color:#56718a; font-size:10px; font-weight:650; text-transform:uppercase; letter-spacing:.13em; }
.workspace-sidebar .nav { display:flex; flex-direction:column; flex-wrap:nowrap; gap:7px; overflow:visible; }
.workspace-sidebar .nav a,.sidebar-help { position:relative; display:flex; align-items:center; justify-content:flex-start; gap:13px; min-height:48px; padding:12px 15px; border:1px solid transparent; border-radius:15px; color:#3e5b75; font-size:13px; font-weight:550; text-decoration:none; white-space:nowrap; }
.workspace-sidebar .nav a:hover,.sidebar-help:hover { color:#174b7a; background:rgba(255,255,255,.57); border-color:rgba(255,255,255,.90); box-shadow:inset 0 1px 1px white,0 4px 10px rgba(37,81,122,.04); }
.workspace-sidebar .nav a[aria-current="page"] { color:#144f83; background:linear-gradient(115deg,rgba(255,255,255,.96),rgba(212,231,249,.72)); border-color:#fff; box-shadow:0 5px 16px rgba(44,90,134,.09),inset 0 1px 0 #fff,inset 0 -1px 1px rgba(133,173,210,.15); font-weight:650; }
.workspace-sidebar .nav a[aria-current="page"]::after { content:""; position:absolute; inset:6px auto 6px 0; width:2px; border-radius:2px; background:#4d92cc; opacity:.7; }
.nav-label { min-width:0; display:flex; align-items:center; gap:7px; }
.nav-alert-count { display:inline-flex; min-width:19px; height:19px; padding:0 5px; align-items:center; justify-content:center; border-radius:6px; font-size:10px; background:rgba(184,206,226,.35); }
.sidebar-help { margin-top:auto; min-height:44px; font-size:12px; }
.sidebar-context { display:grid; gap:18px; padding:16px 8px 4px; border-top:1px solid rgba(131,157,182,.23); }
.sidebar-data { display:flex; flex-wrap:wrap; gap:8px; min-width:0; }
.sidebar-data .asof { display:flex; align-items:baseline; gap:7px; font-size:10px; color:#49647d; line-height:1.6; }
.sidebar-data .asof::before { display:block; flex:none; width:6px; height:6px; position:relative; top:-1px; }
.sidebar-data .asof[data-state="stale"] { color:#825000; }
.sidebar-data .demo-flag { font-size:9px; padding:2px 7px; background:rgba(255,239,210,.85); }
.sidebar-person { display:flex; align-items:center; gap:9px; min-width:0; }
.sidebar-person .avatar { background:linear-gradient(140deg,#438ac3,#1c629e); box-shadow:inset 0 1px 1px rgba(255,255,255,.5); width:31px; height:31px; flex:none; }
.sidebar-person-name { min-width:0; flex:1; font-size:12px; font-weight:600; color:#2e4f6b; overflow-wrap:anywhere; }
.sidebar-person-name small { display:block; font-size:9px; font-weight:400; color:#546d83; margin-top:3px; }
.sidebar-signout { display:grid; place-items:center; min-width:36px; min-height:44px; color:#4d6a83; border-radius:8px; }
.sidebar-signout:hover { background:rgba(255,255,255,.7); }
.sidebar-signout .nav-icon { width:18px; min-width:18px; height:18px; }
.workspace-content .stale-banner { margin:20px 30px 0; border:1px solid #e9d1aa; border-radius:12px; text-align:left; font-size:12px; }
.workspace-content .property-panel,.workspace-content .ask-card,.workspace-content .property-tile,.workspace-content .listing-card,.workspace-content .box,.workspace-content .rep,.workspace-content .table-wrap,.workspace-content .preview { background-color:rgba(255,255,255,.94); border-color:rgba(174,193,211,.58); box-shadow:0 5px 18px rgba(38,69,99,.025),inset 0 1px 0 white; }
.workspace-content .listing-hero { border-color:rgba(255,255,255,.96); background:linear-gradient(115deg,rgba(246,251,255,.83),rgba(255,255,255,.76)); box-shadow:0 10px 30px rgba(37,72,105,.035),inset 0 1px 0 white; }
.workspace-content .listing-hero::after { border-color:rgba(108,159,205,.10); }
.workspace-content .research-paths>a { background:linear-gradient(115deg,rgba(244,249,253,.88),rgba(237,245,252,.78)); border-color:rgba(255,255,255,.98); box-shadow:inset 0 1px 0 white; }
.workspace-content .source-evidence { background:#edf4fa; }
.workspace-content .property-jumps { border-color:rgba(131,157,182,.28); }
.workspace-content .collection-tip,.workspace-content .workspace-source { color:#496178; }
.workspace-content .assistant-welcome { border-color:rgba(131,157,182,.28); }
.glass-login .login { max-width:430px; padding:34px; border:1px solid white; border-radius:26px; background:rgba(251,253,255,.78); -webkit-backdrop-filter:blur(24px) saturate(1.3); backdrop-filter:blur(24px) saturate(1.3); box-shadow:0 24px 70px rgba(34,65,98,.13),inset 0 1px 0 white; }
.glass-login .login h1 { font:400 30px/1.2 Georgia,serif; letter-spacing:-.03em; }
.glass-login .login .field input { background:rgba(255,255,255,.83); border-color:#b9cbdc; min-height:47px; }
.glass-login .login .logo-pbs { max-width:100%; height:auto; }
.glass-login .login .powered { margin-top:7px; }
/* The rail retains accessible route names, source status, identity and sign-out. */
@media(min-width:981px) {
  .workspace-shell[data-sidebar-collapsed="true"] { --sidebar-width:84px; --sidebar-space:124px; }
  [data-sidebar-collapsed="true"] .workspace-sidebar { padding-inline:11px; gap:22px; }
  [data-sidebar-collapsed="true"] .sidebar-heading { padding:0; gap:13px; justify-content:center; }
  [data-sidebar-collapsed="true"] .sidebar-brand { width:auto; }
  [data-sidebar-collapsed="true"] .sidebar-brand-mark { display:grid; place-items:center; width:44px; height:44px; color:#246cb4; }
  [data-sidebar-collapsed="true"] .sidebar-brand-mark .nav-icon { width:27px; height:27px; }
  [data-sidebar-collapsed="true"] .sidebar-brand-full,[data-sidebar-collapsed="true"] .sidebar-section-label { display:none; }
  [data-sidebar-collapsed="true"] .sidebar-collapse { margin:0; }
  [data-sidebar-collapsed="true"] .sidebar-collapse .nav-icon { transform:rotate(180deg); }
  [data-sidebar-collapsed="true"] .workspace-sidebar .nav a,[data-sidebar-collapsed="true"] .sidebar-help { justify-content:center; gap:0; padding:12px; }
  [data-sidebar-collapsed="true"] .nav-label { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
  [data-sidebar-collapsed="true"] .sidebar-context { padding-inline:0; gap:15px; }
  [data-sidebar-collapsed="true"] .sidebar-data { justify-content:center; }
  [data-sidebar-collapsed="true"] .sidebar-data .asof { width:12px; height:12px; overflow:hidden; font-size:0; gap:0; align-items:center; justify-content:center; }
  [data-sidebar-collapsed="true"] .sidebar-data .asof::before { width:7px; height:7px; top:0; }
  [data-sidebar-collapsed="true"] .sidebar-data .demo-flag { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }
  [data-sidebar-collapsed="true"] .sidebar-person { flex-direction:column; gap:7px; }
  [data-sidebar-collapsed="true"] .sidebar-person-name { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }
}
@media(prefers-reduced-motion:no-preference) {
  .workspace-sidebar { transition:width .24s cubic-bezier(.22,.8,.3,1),padding .24s ease; }
  .workspace-content { transition:margin-left .24s cubic-bezier(.22,.8,.3,1); }
  .workspace-sidebar .nav a,.sidebar-help,.sidebar-collapse,.sidebar-mobile-toggle { transition:background-color .18s ease,border-color .18s ease,box-shadow .18s ease,color .18s ease; }
  .workspace-sidebar .nav a:hover .nav-icon { transform:translateY(-1px); }
  .workspace-sidebar .nav-icon { transition:transform .18s ease; }
}
@media(max-width:1180px) and (min-width:981px) {
  .workspace-shell { --sidebar-width:230px; --sidebar-space:266px; }
  .workspace-sidebar { left:16px; }
  .workspace-content>main { padding-inline:24px; }
  .workspace-content .assistant-layout { grid-template-columns:1fr; }
  .workspace-content .assistant-guide .examples { grid-template-columns:1fr 1fr; }
}
@media(max-width:980px) {
  .workspace-content { margin-left:0; }
  .workspace-sidebar { position:relative; inset:auto; width:auto; margin:14px 18px 0; padding:16px 18px; gap:15px; border-radius:21px; overflow:visible; }
  .sidebar-heading { min-height:0; padding:0; flex-wrap:nowrap; gap:15px; }
  .sidebar-brand { width:auto; flex:1; }
  .sidebar-brand-full { gap:5px; }
  .sidebar-brand .logo-pbs { width:196px; }
  .sidebar-brand .brand-name { font-size:9px; }
  .sidebar-collapse { display:none; }
  .sidebar-mobile-toggle { display:flex; min-height:44px; font-size:12px; padding-inline:10px; }
  .sidebar-mobile-toggle .nav-icon { width:18px; min-width:18px; height:18px; }
  .sidebar-menu { gap:8px; }
  .sidebar-section-label { display:none; }
  .workspace-sidebar .nav { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); width:100%; gap:7px; }
  .workspace-sidebar .nav a { padding:10px 12px; min-height:45px; gap:9px; white-space:normal; }
  .sidebar-help { margin:0; padding:10px 12px; width:fit-content; }
  .sidebar-context { display:flex; justify-content:space-between; align-items:center; gap:14px; padding:12px 0 0; }
  .sidebar-data { flex:1; align-items:center; gap:7px; }
  .sidebar-data .asof { display:flex; font-size:10px; }
  .sidebar-person { flex:none; }
  .sidebar-person-name small { display:none; }
  .workspace-content>main { padding:28px 24px 36px; }
  .workspace-content .stale-banner { margin:16px 24px 0; }
  .workspace-content>.foot { margin-inline:24px; }
}
@media(max-width:540px) {
  .workspace-sidebar { margin:10px 12px 0; padding:15px; border-radius:19px; gap:12px; }
  .sidebar-brand .logo-pbs { width:190px; }
  .sidebar-brand .brand-name { display:block; }
  .sidebar-mobile-toggle { padding:9px; min-width:44px; }
  .sidebar-mobile-toggle span { font-size:11px; }
  .workspace-sidebar .nav { grid-template-columns:1fr 1fr; }
  .workspace-sidebar .nav a { font-size:12px; min-height:48px; gap:9px; padding:10px; }
  .workspace-sidebar .nav-icon { width:19px; min-width:19px; height:19px; }
  .sidebar-context { flex-wrap:wrap; align-items:start; gap:10px; padding-top:10px; }
  .sidebar-data { flex-basis:100%; gap:7px; }
  .sidebar-data .asof { max-width:100%; font-size:9px; }
  .sidebar-person { width:100%; }
  .sidebar-person .avatar { width:24px; height:24px; font-size:10px; }
  .sidebar-person-name { font-size:11px; }
  .sidebar-person-name small { display:inline; margin-left:7px; font-size:9px; }
  .sidebar-signout { min-height:44px; min-width:44px; }
  .workspace-content>main { padding:24px 16px 32px; }
  .workspace-content>.foot { margin-inline:16px; }
  .workspace-content .stale-banner { margin:14px 16px 0; }
  .glass-login .login { padding:27px; }
}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))) {
  .workspace-sidebar,.glass-login .login { background:#f4f8fc; }
}
@media(prefers-reduced-transparency:reduce) {
  .workspace-sidebar,.glass-login .login { background:#f4f8fc; -webkit-backdrop-filter:none; backdrop-filter:none; }
  .workspace-content .listing-hero,.workspace-content .research-paths>a { background:#f5f9fc; }
  .workspace-content .property-panel,.workspace-content .ask-card,.workspace-content .property-tile,.workspace-content .listing-card,.workspace-content .box,.workspace-content .rep,.workspace-content .table-wrap,.workspace-content .preview { background:#fff; }
}
@media(forced-colors:active) {
  .workspace-sidebar,.glass-login .login { background:Canvas; border-color:CanvasText; -webkit-backdrop-filter:none; backdrop-filter:none; box-shadow:none; }
  .workspace-sidebar .nav a[aria-current="page"] { background:Highlight; color:HighlightText; border-color:Highlight; }
  .workspace-sidebar .nav a,.sidebar-help,.sidebar-collapse,.sidebar-mobile-toggle { color:LinkText; }
}
.sidebar-data-short { display:none; }
@media(min-width:981px) {
  [data-sidebar-collapsed="true"] .sidebar-data { gap:3px; }
  [data-sidebar-collapsed="true"] .sidebar-data-short { display:block; width:100%; text-align:center; font-size:8px; line-height:1.3; color:#49647d; overflow-wrap:anywhere; }
}
@media(max-width:980px) and (prefers-reduced-motion:no-preference) {
  [data-mobile-navigation="open"] .sidebar-menu { animation:glass-menu-arrive .18s ease-out; }
  @keyframes glass-menu-arrive { from { opacity:.8; transform:translateY(-3px); } to { opacity:1; transform:none; } }
}
/* A breakpoint is a layout change, not a sidebar gesture; avoid transient narrow content. */
@media(max-width:980px) { .workspace-content { transition:none; } }

/* Direct seller-report editor: source identity, explicit adjustments and a review gate. */
.report-editor-page .workspace-content>main { max-width:1500px; gap:24px; }
.report-editor-page .editor-page-heading h1 { font:400 clamp(30px,3vw,40px)/1.15 Georgia,serif; letter-spacing:-.035em; }
.report-editor-page #report-editor { display:grid; gap:24px; min-width:0; }
.report-editor-page .editor-identity { display:flex; justify-content:space-between; align-items:start; gap:24px; padding:23px 26px; border:1px solid rgba(255,255,255,.95); border-radius:16px; background:linear-gradient(115deg,rgba(248,252,255,.92),rgba(238,247,254,.9)); }
.report-editor-page .editor-identity h2 { font-size:19px; line-height:1.4; margin:0 0 7px; letter-spacing:-.015em; }
.report-editor-page .editor-identity p { margin:6px 0 0; font-size:12px; overflow-wrap:anywhere; }
.report-editor-page .editor-identity .eyebrow { font-size:10px; margin-bottom:6px; }
.report-editor-page .editor-safeguard { max-width:35ch; color:var(--muted); line-height:1.65; }
.report-editor-page .editor-layout { display:grid; grid-template-columns:minmax(0,1.7fr) minmax(270px,1fr); gap:24px; align-items:start; }
.report-editor-page .editor-form { padding:24px; }
.report-editor-page fieldset { min-width:0; margin:0; padding:0; border:0; }
.report-editor-page .editor-panel-heading { display:flex; align-items:center; gap:12px; margin-bottom:20px; }
.report-editor-page .editor-panel-heading h2 { margin:0 0 4px; font-size:19px; letter-spacing:-.02em; }
.report-editor-page .editor-panel-heading p { margin:0; color:var(--muted); font-size:12px; }
.report-editor-page .editor-step { display:grid; place-items:center; flex:none; width:35px; height:35px; border-radius:10px; background:#eaf3fb; color:var(--brand-ink); font-size:16px; font-weight:650; }
.report-editor-page .editor-group { border-top:1px solid var(--line); }
.report-editor-page .editor-group>summary { min-height:58px; padding:13px 0; font-size:14px; }
.report-editor-page .editor-group-body { display:grid; gap:20px; padding:4px 0 24px; min-width:0; }
.report-editor-page .editor-group-body .field { min-width:0; }
.report-editor-page .field { gap:7px; }
.report-editor-page .field label { font-size:12px; font-weight:600; }
.report-editor-page .field input,.report-editor-page .field textarea,.report-editor-page .editor-correction input,.report-editor-page select { min-width:0; max-width:100%; width:100%; border:1px solid #bfcedc; border-radius:8px; background:#fafcfe; padding:11px 12px; }
.report-editor-page .field textarea { resize:vertical; line-height:1.6; }
.report-editor-page input:focus,.report-editor-page textarea:focus,.report-editor-page select:focus { background:white; outline:2px solid var(--brand); outline-offset:2px; }
.report-editor-page .hint { font-size:11px; line-height:1.6; }
.report-editor-page .editor-two-fields { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.report-editor-page .editor-section-order { display:grid; gap:12px; padding:0; margin:0; list-style:none; counter-reset:section-order; }
.report-editor-page .editor-section-order>li { position:relative; padding:15px; border:1px solid var(--line); border-radius:11px; background:#f7fafc; }
.report-editor-page .section-edit-top { display:flex; gap:12px; align-items:center; justify-content:space-between; margin-bottom:10px; }
.report-editor-page .editor-check { display:flex; align-items:center; gap:9px; min-height:44px; font-size:12px; font-weight:600; cursor:pointer; }
.report-editor-page .editor-check input { width:18px; height:18px; flex:none; accent-color:var(--brand); }
.report-editor-page .section-order-buttons { display:flex; gap:6px; }
.report-editor-page .section-order-buttons .btn { min-width:37px; min-height:37px; padding:6px 9px; }
.report-editor-page .editor-explanation { margin:0; font-size:12px; line-height:1.7; color:var(--muted); }
.report-editor-page .editor-unit-selection { margin-bottom:12px; border:1px solid var(--line); border-radius:10px; padding:4px 14px; }
.report-editor-page .editor-unit-selection>summary { padding:10px 0; font-size:13px; min-height:48px; }
.report-editor-page .editor-candidates { display:grid; }
.report-editor-page .editor-candidate { padding:14px 0; border-top:1px solid var(--line); }
.report-editor-page .editor-candidate .field { margin-top:7px; }
.report-editor-page .editor-candidate .field label { font-size:10px; color:var(--muted); }
.report-editor-page .editor-candidate .field input { padding:9px 10px; font-size:14px; }
.report-editor-page .editor-correction { border:1px solid var(--line); border-radius:10px; padding:4px 14px; margin-bottom:12px; }
.report-editor-page .editor-correction>summary { min-height:48px; padding:10px 0; font-size:13px; }
.report-editor-page .editor-correction-body { display:grid; gap:14px; padding:8px 0 14px; }
.report-editor-page .correction-column-labels,.report-editor-page .editor-correction-field { display:grid; grid-template-columns:minmax(80px,.8fr) minmax(85px,1fr) minmax(110px,1.2fr); gap:12px; align-items:center; }
.report-editor-page .correction-column-labels { color:var(--muted); font-size:9px; text-transform:uppercase; letter-spacing:.04em; }
.report-editor-page .editor-correction-field label { font-size:11px; font-weight:600; }
.report-editor-page .correction-original { font-size:12px; color:var(--muted); overflow-wrap:anywhere; font-variant-numeric:tabular-nums; }
.report-editor-page .editor-correction input { padding:9px; font-size:14px; }
.report-editor-page .editor-adjusted-label,.report-editor-page .editor-local-label,.report-editor-page .editor-unsaved-label { display:inline-flex; align-items:center; border:1px solid #cddfed; border-radius:5px; padding:3px 6px; background:#eef6fc; color:var(--brand-ink); font:600 9px/1.4 var(--ui); vertical-align:middle; }
.report-editor-page .editor-form-actions { display:flex; gap:10px; flex-wrap:wrap; border-top:1px solid var(--line); padding-top:19px; margin-top:1px; }
.report-editor-page .editor-form-actions .btn { font-size:12px; min-height:46px; }
.report-editor-page .editor-draft-status { margin:12px 0 0; color:var(--muted); font-size:11px; }
.report-editor-page .editor-sidebar { display:grid; gap:20px; }
.report-editor-page .editor-sidebar .property-panel { padding:24px; }
.report-editor-page .editor-assistant { border-top:3px solid #75a8d1; }
.report-editor-page .editor-assistant>p { font-size:12px; color:var(--muted); }
.report-editor-page .editor-assistant .editor-panel-heading { margin-bottom:14px; }
.report-editor-page #editor-assistant-fields { display:grid; gap:12px; margin-top:18px; }
.report-editor-page .editor-command-examples { display:flex; flex-wrap:wrap; gap:6px; }
.report-editor-page .editor-command-examples .chip { min-height:34px; padding:6px 9px; font-size:10px; background:#f3f8fc; border-radius:7px; }
.report-editor-page .editor-supported,.report-editor-page .editor-connection { font-size:11px; color:var(--muted); }
.report-editor-page .editor-supported summary,.report-editor-page .editor-connection summary { min-height:40px; font-size:11px; color:var(--brand-ink); }
.report-editor-page .editor-supported ul { padding-left:18px; line-height:1.7; }
.report-editor-page .editor-connection { border-top:1px solid var(--line); margin-top:18px; padding-top:8px; }
.report-editor-page .editor-history { display:grid; gap:12px; }
.report-editor-page .editor-history h2 { margin:0; font-size:18px; }
.report-editor-page .editor-history p { margin:0; }
.report-editor-page .editor-history label { font-size:12px; font-weight:600; }
.report-editor-page .editor-history .btn { justify-self:start; font-size:12px; }
.report-editor-page .editor-history details { font-size:12px; }
.report-editor-page .editor-history ul { margin:8px 0; padding-left:18px; }
.report-editor-page .editor-history li { margin-bottom:12px; overflow-wrap:anywhere; }
.report-editor-page .editor-history small { display:block; margin-top:4px; font-size:10px; color:var(--muted); }
.report-editor-page .editor-warnings { padding:18px 22px; background:#fff8ed; border:1px solid #e9d5b4; border-radius:12px; color:#77501a; font-size:12px; }
.report-editor-page .editor-warnings h2,.report-editor-page .editor-warnings h3 { font-size:14px; margin:0 0 9px; }
.report-editor-page .editor-warnings ul { margin:0; padding-left:18px; line-height:1.7; }
.report-editor-page .editor-preview-studio { min-width:0; display:grid; gap:18px; padding-top:8px; scroll-margin-top:24px; }
.report-editor-page .editor-preview-studio .section-heading { margin-bottom:0; }
.report-editor-page .editor-preview-studio .section-heading h2 { font-size:24px; }
.report-editor-page .editor-preview-studio .section-heading p:not(.eyebrow) { color:var(--muted); font-size:12px; margin:7px 0 0; max-width:80ch; }
.report-editor-page #editor-message:empty { display:none; }
.report-editor-page #editor-message p { margin:0; }
.report-editor-page .editor-diff { min-width:0; }
.report-editor-page .editor-diff h3 { font-size:16px; margin:0 0 12px; }
.report-editor-page .editor-diff-scroll { overflow-x:auto; border:1px solid var(--line); border-radius:12px; background:white; }
.report-editor-page .editor-diff table { width:100%; min-width:620px; border-collapse:collapse; font-size:12px; table-layout:fixed; }
.report-editor-page .editor-diff th { text-align:left; background:#f1f6fa; color:#435f78; font-size:10px; font-weight:600; padding:12px; border-bottom:1px solid var(--line); }
.report-editor-page .editor-diff td { padding:14px 12px; border-bottom:1px solid var(--line); vertical-align:top; white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.6; }
.report-editor-page .editor-diff tr:last-child td { border-bottom:0; }
.report-editor-page .editor-diff td:first-child { font-weight:600; }
.report-editor-page .editor-preview-columns { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:18px; }
.report-editor-page .editor-preview-copy { min-width:0; border:1px solid #c4d3e0; border-radius:13px; background:#fff; overflow:hidden; }
.report-editor-page .editor-preview-copy>h3 { display:flex; align-items:center; gap:7px; margin:0; min-height:48px; padding:12px 15px; background:#f4f8fb; border-bottom:1px solid var(--line); font-size:12px; font-weight:600; }
.report-editor-page .editor-preview-copy iframe { display:block; width:100%; height:760px; border:0; background:white; }
.report-editor-page .editor-preview-empty { min-height:400px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px; padding:32px; color:var(--muted); text-align:center; }
.report-editor-page .editor-preview-empty>span { font-size:31px; color:#7495b1; }
.report-editor-page .editor-preview-empty h4 { margin:0; font-size:16px; color:var(--ink-2); }
.report-editor-page .editor-preview-empty p { margin:0; max-width:36ch; font-size:12px; line-height:1.7; }
.report-editor-page .editor-apply-bar { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:21px 24px; border:1px solid white; border-radius:13px; background:rgba(246,251,255,.9); }
.report-editor-page .editor-apply-bar strong { font-size:13px; }
.report-editor-page .editor-apply-bar p { margin:4px 0 0; color:var(--muted); font-size:11px; }
.report-editor-page .editor-apply-bar .btn { min-height:46px; font-size:12px; }
.report-editor-page fieldset:disabled input,.report-editor-page fieldset:disabled textarea { color:#566b7e; background:#f2f5f7; opacity:1; }
@media(max-width:1200px) {
  .report-editor-page .editor-layout { grid-template-columns:minmax(0,1.5fr) minmax(260px,1fr); gap:18px; }
  .report-editor-page .editor-form,.report-editor-page .editor-sidebar .property-panel { padding:20px; }
  .report-editor-page .editor-two-fields { grid-template-columns:1fr; }
}
@media(max-width:1100px) and (min-width:981px) {
  .report-editor-page .editor-layout { grid-template-columns:1fr; }
  .report-editor-page .editor-sidebar { grid-template-columns:1fr 1fr; align-items:start; }
}
@media(max-width:760px) {
  .report-editor-page .editor-layout { grid-template-columns:1fr; }
  .report-editor-page .editor-identity { flex-direction:column; gap:10px; padding:20px; }
  .report-editor-page .editor-safeguard { max-width:none; }
  .report-editor-page .editor-two-fields { grid-template-columns:1fr 1fr; }
  .report-editor-page .editor-preview-columns { grid-template-columns:1fr; }
  .report-editor-page .editor-preview-copy iframe { height:620px; }
  .report-editor-page .editor-preview-empty { min-height:250px; }
  .report-editor-page .editor-apply-bar { align-items:stretch; flex-direction:column; gap:14px; padding:20px; }
  .report-editor-page .editor-apply-bar .btn { width:100%; }
}
@media(max-width:480px) {
  .report-editor-page .editor-page-heading h1 { font-size:32px; }
  .report-editor-page .editor-form,.report-editor-page .editor-sidebar .property-panel { padding:18px; }
  .report-editor-page .editor-two-fields { grid-template-columns:1fr; }
  .report-editor-page .editor-form-actions { flex-direction:column; }
  .report-editor-page .editor-section-order>li { padding:12px; }
  .report-editor-page .section-edit-top { flex-wrap:wrap; gap:5px; }
  .report-editor-page .section-order-buttons { margin-left:auto; }
  .report-editor-page .section-order-buttons .btn { min-width:44px; min-height:44px; }
  .report-editor-page .editor-unit-selection,.report-editor-page .editor-correction { padding-inline:11px; }
  .report-editor-page .editor-correction-field { grid-template-columns:minmax(0,1fr) minmax(110px,1fr); gap:7px 12px; padding-bottom:13px; border-bottom:1px solid var(--line); }
  .report-editor-page .editor-correction-field>label { grid-column:1/-1; }
  .report-editor-page .correction-column-labels { display:none; }
  .report-editor-page .correction-original::before { content:'Original: '; display:block; font-size:9px; color:var(--muted); }
  .report-editor-page .editor-preview-copy iframe { height:560px; }
  .report-editor-page .editor-preview-studio .section-heading h2 { font-size:22px; }
}
.report-editor-page .editor-action-feedback { margin:10px 0 0; font-size:11px; line-height:1.6; color:var(--brand-ink); }
.report-editor-page .editor-action-feedback.is-error { color:#9b2b22; }
.report-editor-page .editor-diff-complex summary { font-size:11px; color:var(--brand-ink); min-height:44px; cursor:pointer; }
.report-editor-page .editor-diff-complex pre { margin:8px 0 0; max-height:240px; overflow:auto; white-space:pre-wrap; overflow-wrap:anywhere; font:10px/1.6 var(--mono); padding:10px; background:#f4f7fa; border:1px solid var(--line); border-radius:7px; }

@media(max-width:480px) { .report-editor-page .editor-command-examples .chip { min-height:44px; padding:8px 10px; font-size:11px; } }
@media(max-width:600px) {
  .report-editor-page .editor-diff table { min-width:0; table-layout:auto; }
  .report-editor-page .editor-diff thead { display:none; }
  .report-editor-page .editor-diff tr { display:grid; grid-template-columns:1fr; padding:15px; gap:13px; }
  .report-editor-page .editor-diff tr+tr { border-top:1px solid var(--line); }
  .report-editor-page .editor-diff td { display:block; padding:0; border:0; }
  .report-editor-page .editor-diff td::before { content:attr(data-label); display:block; margin-bottom:5px; font-size:9px; font-weight:600; text-transform:uppercase; letter-spacing:.07em; color:var(--muted); }
  .report-editor-page .editor-diff td:nth-child(3) { padding:12px; border-radius:8px; background:#eef6fc; }
}

/* Weekly report input: source values and staff curation stay easy to distinguish. */
.editor-workflow-week { margin:0 0 18px; padding:12px 14px; border:1px solid var(--line,#d8e0e8); border-radius:10px; font-size:13px; line-height:1.5; background:rgba(235,243,251,.6); }
.editor-workflow-unit { margin-bottom:24px; min-width:0; }
.editor-workflow-unit>h3 { margin:0 0 12px; font-size:17px; overflow-wrap:anywhere; }
.editor-feedback-record { margin:12px 0; border:1px solid var(--line,#d8e0e8); border-radius:9px; background:rgba(255,255,255,.6); }
.editor-feedback-record>summary { padding:12px 14px; cursor:pointer; font-weight:600; overflow-wrap:anywhere; }
.editor-feedback-body { padding:0 14px 14px; min-width:0; }
.editor-feedback-body .editor-check { margin:12px 0; }
.editor-original-text { white-space:pre-wrap; overflow-wrap:anywhere; padding:10px 12px; background:#f1f4f8; border-radius:6px; font-size:13px; line-height:1.5; }
.editor-source-detail { margin-bottom:14px; font-size:13px; }
.editor-source-detail>summary { cursor:pointer; padding:7px 0; }
.editor-subject-fact { padding:14px 0; border-top:1px solid var(--line,#d8e0e8); }
.editor-subject-fact .editor-group { margin-top:8px; margin-bottom:0; }
.editor-subject-fact .editor-group>summary { font-size:13px; }
.editor-showing-total,.editor-fact-values { min-width:0; }
.editor-workflow-unit input,.editor-workflow-unit select,.editor-workflow-unit textarea { width:100%; max-width:100%; }
.editor-workflow-unit input[type=checkbox] { width:auto; flex-shrink:0; }
.editor-workflow-unit .field { min-width:0; }
.editor-feedback-record input:read-only,.editor-feedback-record textarea:read-only { background:#f1f4f8; color:#53677b; }
@media (max-width:600px) {
  .editor-feedback-body { padding:0 10px 12px; }
  .editor-feedback-record>summary { padding:12px 10px; }
  .editor-workflow-unit>h3 { font-size:16px; }
  .editor-workflow-unit .editor-two-fields { grid-template-columns:minmax(0,1fr); }
  .editor-workflow-unit .btn { min-height:44px; }
}
.editor-feedback-history { margin:8px 0 0; padding-left:20px; }
.editor-feedback-history>li { margin:8px 0; }
.editor-feedback-history summary { cursor:pointer; padding:5px 0; }
.editor-feedback-history dl { margin:8px 0 12px; }
.editor-feedback-history dt { font-weight:600; margin-top:9px; }
.editor-feedback-history dd { margin:3px 0 0; white-space:pre-wrap; overflow-wrap:anywhere; }
.editor-diff-headline { margin:0 0 8px; font-weight:600; white-space:pre-wrap; overflow-wrap:anywhere; }

/* Report-local delivery review: all changes need a visible preview and Apply. */
#delivery-editor>summary { min-height:44px; padding:12px 0; cursor:pointer; }
#delivery-fields { border:0; padding:0; margin:16px 0; min-width:0; }
#delivery-fields legend { font-weight:650; margin-bottom:10px; }
#delivery-fields label:not(.delivery-visibility) { display:block; margin:14px 0 6px; font-weight:600; }
#delivery-fields input:not([type=checkbox]),#delivery-fields select,#delivery-fields textarea { width:100%; max-width:100%; min-width:0; border:1px solid var(--line-2); border-radius:8px; background:var(--raised); padding:10px; font:inherit; }
#delivery-fields input:not([type=checkbox]),#delivery-fields select { min-height:44px; }
#delivery-fields textarea { min-height:72px; resize:vertical; }
#delivery-fields #delivery-body { min-height:240px; }
#delivery-fields input:focus,#delivery-fields select:focus,#delivery-fields textarea:focus { outline:2px solid var(--brand); outline-offset:2px; background:var(--surface); }
#delivery-fields details { margin:12px 0; }
#delivery-fields details>summary { min-height:44px; padding:10px 0; cursor:pointer; }
.delivery-visibility { display:flex; align-items:flex-start; gap:10px; line-height:1.5; margin:18px 0; cursor:pointer; }
#delivery-fields .delivery-visibility input { flex:none; width:20px; height:20px; margin:2px 0 0; accent-color:var(--brand); }
#delivery-proposal { border-top:1px solid var(--line); margin-top:16px; padding-top:6px; }
#delivery-proposal[hidden] { display:none; }
#delivery-proposal h3 { font-size:17px; }
#delivery-envelope-preview { grid-template-columns:auto minmax(0,1fr); }
.delivery-diff { margin:16px 0; }
.delivery-diff dt { font-weight:650; margin-top:14px; }
.delivery-diff dd { margin:5px 0; padding:9px; border-left:3px solid var(--line-2); background:var(--raised); white-space:pre-wrap; overflow-wrap:anywhere; font-size:13px; }
.delivery-diff dd strong { display:block; color:var(--muted); font-size:12px; }
#delivery-status[data-error=true] { color:#a32f24; font-weight:600; }

/* Keep the seller copy beside the longer report-local email editor. */
@media (min-width:1001px) {
  .report-grid>.preview { position:sticky; top:24px; align-self:start; }
  .report-grid>.preview iframe { height:calc(100dvh - 140px); min-height:480px; }
  .report-grid>.panel { position:static; }
}
@media (max-width:1000px) {
  .report-grid>.preview,.report-grid>.panel { position:static; }
}

/* Product workspaces: phone-sized controls without changing review/send behavior. */
.product-workspace-page .property-panel { overflow-wrap:anywhere; }
.product-workspace-page .table-wrap { max-width:100%; }
.product-workspace-page .table-wrap table { min-width:720px; overflow-wrap:normal; }
.product-workspace-page .table-wrap th,.product-workspace-page .table-wrap td:nth-child(2) { white-space:nowrap; }
.product-workspace-page .table-wrap td:nth-child(5) { min-width:170px; max-width:260px; overflow-wrap:anywhere; }
@media(max-width:700px) {
  .product-workspace-page input:not([type=checkbox]),
  .product-workspace-page select,.product-workspace-page textarea { font-size:16px; max-width:100%; }
  .product-workspace-page input:not([type=checkbox]),
  .product-workspace-page select,.product-workspace-page .btn { min-height:44px; }
  .product-workspace-page .queue-filter .field:first-child { min-width:0; }
  .product-workspace-page .actions { display:flex; flex-wrap:wrap; gap:10px; }
  .product-workspace-page .actions .btn { flex:1 1 150px; text-align:center; }
  .product-workspace-page .cma-candidate>label:first-child { min-height:44px; display:flex; gap:10px; align-items:center; }
  .product-workspace-page input[type=checkbox] { width:20px; height:20px; flex-shrink:0; }
}

/* Self-service MLS refresh controls remain comfortably tappable on phones. */
.mls-refresh-actions { display:flex; flex-wrap:wrap; gap:10px; }
.mls-refresh-actions .btn { min-height:44px; white-space:normal; }
#mls-refresh-panel { margin-bottom:24px; }
@media (max-width:600px) {
  .mls-refresh-actions .btn { flex:1 1 100%; }
  #mls-refresh-next .btn { white-space:normal; }
}
