/* Dolci Group Seller Portal — brand: black #1B1B1B, white, navy #003388 / #002E5E, gray #6D6D6D */
:root {
  --black: #1B1B1B;
  --navy: #003388;
  --navy-deep: #002E5E;
  --gray: #6D6D6D;
  --white: #FFFFFF;
  --bg: #F4F5F7;
  --line: #E3E5E9;
  --line-strong: #CDD1D8;
  --navy-50: #EEF2FA;
  --navy-100: #D9E2F3;
  --navy-300: #8EA6D6;
  --ink: #1B1B1B;
  --muted: #6D6D6D;
  --danger: #A11D2B;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(27, 27, 27, .05), 0 2px 10px rgba(27, 27, 27, .04);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.5; color: var(--ink); background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; margin: 0; }
p { margin: 0 0 .6em; }
code { font-size: .88em; background: var(--navy-50); padding: 1px 5px; border-radius: 5px; color: var(--navy-deep); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.strong { font-weight: 600; }
.grow { flex: 1; min-width: 0; }
.spacer { flex: 1; }
[hidden] { display: none !important; }
.ic { flex: none; vertical-align: -3px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 22px 20px 40px; }
.narrow { max-width: 620px; margin: 0 auto; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.pad { padding: 18px 20px; }
.page-title { font-size: 26px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 4px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.h-sm { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 7px; }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); margin-bottom: 10px; }

/* ---------- top bar ---------- */
.topbar { background: var(--black); color: var(--white); position: sticky; top: 0; z-index: 20; padding-top: env(safe-area-inset-top); }
.topbar-inner { max-width: 1180px; margin: 0 auto; padding: 0 20px; height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wordmark { display: flex; align-items: baseline; gap: 8px; color: var(--white); text-decoration: none !important; white-space: nowrap; }
.wm-main { font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: .22em; }
.wm-sub { font-size: 11px; font-weight: 600; letter-spacing: .38em; color: #C9CCD2; }
.wm-tag { font-size: 12px; color: #9EA3AB; border-left: 1px solid #3a3a3a; padding-left: 10px; margin-left: 4px; letter-spacing: .02em; }
.topnav { display: flex; align-items: center; gap: 4px; }
.topnav > a { color: #C9CCD2; padding: 8px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; }
.topnav > a.on, .topnav > a:hover { color: var(--white); background: #2B2B2B; text-decoration: none; }
.usermenu { position: relative; margin-left: 6px; }
.usermenu summary { list-style: none; cursor: pointer; }
.usermenu summary::-webkit-details-marker { display: none; }
.usermenu .menu { position: absolute; right: 0; top: 46px; background: var(--white); color: var(--ink); border-radius: 12px; min-width: 230px; box-shadow: 0 10px 30px rgba(0,0,0,.18); padding: 6px; border: 1px solid var(--line); }
.menu-head { padding: 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; display: flex; flex-direction: column; font-size: 14px; }
.menu-head span { color: var(--muted); font-size: 12px; }
.menu a, .menu button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 8px; color: var(--ink); font: inherit; font-size: 14px; background: none; border: 0; cursor: pointer; }
.menu a:hover, .menu button:hover { background: var(--bg); text-decoration: none; }

/* ---------- avatars, badges ---------- */
.avatar { width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex: none; letter-spacing: .02em; background: var(--navy-50); color: var(--navy); }
.avatar.sm { width: 34px; height: 34px; font-size: 12px; background: var(--navy); color: var(--white); }
.avatar.xs { width: 30px; height: 30px; font-size: 11px; }
.t-agent { background: var(--black); color: var(--white); }
.t-feedback { background: var(--navy-50); color: var(--navy); }
.t-showing { background: #ECEDEF; color: var(--black); }
.t-seller { background: var(--navy-100); color: var(--navy-deep); }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.b-feedback { background: var(--navy-50); color: var(--navy); }
.b-agent_comment { background: #EDEDED; color: var(--black); }
.b-showing { background: #F1F2F4; color: var(--gray); }
.b-update { background: var(--navy-deep); color: var(--white); }
.status-pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: #EEF0F3; color: var(--gray); }
.s-active, .s-completed { background: var(--navy-50); color: var(--navy); }
.s-scheduled, .s-coming-soon { background: var(--navy); color: var(--white); }
.s-pending { background: #F3EEDC; color: #6B5413; }
.s-cancelled, .s-withdrawn { background: #F4E4E6; color: var(--danger); }
.s-sold { background: var(--black); color: var(--white); }
.demo-tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #6B5413; background: #F3EEDC; padding: 1px 6px; border-radius: 4px; }
.warn-dot { display: inline-block; width: 8px; height: 8px; background: #C08A12; border-radius: 50%; }

/* ---------- buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 16px; border-radius: 10px; font: inherit; font-weight: 600; font-size: 14px; border: 1px solid transparent; cursor: pointer; text-decoration: none !important; line-height: 1.2; transition: background .15s, border-color .15s; }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-deep); }
.btn-outline { background: var(--white); color: var(--navy-deep); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--navy); }
.btn-ghost { background: transparent; color: var(--gray); }
.btn-ghost:hover { background: var(--bg); color: var(--ink); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 9px; }
.btn-xs { padding: 4px 8px; font-size: 12px; border-radius: 7px; }
.btn .count { background: var(--navy); color: var(--white); border-radius: 999px; font-size: 11px; padding: 1px 7px; }
label { display: block; font-size: 13px; font-weight: 600; color: #3a3a3a; }
.hint { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=tel], input[type=date], input[type=datetime-local], input:not([type]), select, textarea {
  display: block; width: 100%; margin-top: 5px; padding: 11px 12px; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--white); border: 1px solid var(--line-strong); border-radius: 10px; outline: none; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(0, 51, 136, .14); }
textarea { resize: vertical; min-height: 70px; }
input[type=file] { margin-top: 4px; font-size: 13px; }
.stack > * + * { margin-top: 14px; }
.stack.tight > * + * { margin-top: 10px; }
.check { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--navy); margin: 0; }
.grid-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.grid-form .span-2 { grid-column: 1 / -1; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.block { display: block; margin-top: 12px; }
.kv { display: grid; grid-template-columns: 90px 1fr; gap: 8px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; }

/* ---------- flashes ---------- */
.flashes { max-width: 1180px; margin: 14px auto 0; padding: 0 20px; display: grid; gap: 8px; }
.flash { padding: 12px 16px; border-radius: 10px; font-size: 14px; border: 1px solid; }
.flash-success { background: var(--navy-50); border-color: var(--navy-100); color: var(--navy-deep); }
.flash-error { background: #FBEFF0; border-color: #EFCACE; color: var(--danger); }
.flash-invite { background: var(--white); border-color: var(--navy-300); color: var(--ink); }
.flash-invite p { margin-bottom: 8px; font-weight: 600; }
.copyrow { display: flex; gap: 8px; align-items: center; }
.copyrow input { margin: 0; font-size: 13px; padding: 8px 10px; font-family: ui-monospace, Menlo, monospace; }

/* ---------- auth ---------- */
.auth-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 36px 16px; background: linear-gradient(180deg, var(--black) 0, var(--black) 190px, var(--bg) 190px); }
.auth-card { width: 100%; max-width: 420px; background: var(--white); border-radius: 18px; padding: 30px 28px; box-shadow: 0 16px 40px rgba(27,27,27,.12); border: 1px solid var(--line); }
.auth-card h1 { font-family: var(--serif); font-size: 28px; font-weight: 600; margin-bottom: 6px; }
.auth-card > p.muted { margin-bottom: 20px; }
.auth-foot { color: var(--muted); font-size: 12px; margin-top: 18px; text-align: center; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; margin: 20px 0; text-transform: uppercase; letter-spacing: .1em; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.demo-box { margin-top: 20px; padding: 14px 16px; border-radius: 12px; background: #FBF8EE; border: 1px dashed #D9C88F; font-size: 13px; }
.demo-box p { margin: 6px 0 0; }
.auth-page .sitefoot { display: none; }

/* ---------- feed layout ---------- */
.feed-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 24px; align-items: start; }
.side { display: grid; gap: 16px; position: sticky; top: 80px; max-height: calc(100vh - 96px); overflow: auto; padding-bottom: 4px; scrollbar-width: thin; }
.feed-col { min-width: 0; max-width: 680px; }
.feed-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 14px; }
.feed-head .page-title + p { margin: 0; }
.filter-toggle { display: none; }
.feed { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.summaries { display: grid; gap: 16px; }

/* listing summary */
.listing-card { overflow: hidden; }
.hero { position: relative; height: 150px; background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 60%, #2B57A8 100%); color: rgba(255,255,255,.35); display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-art { width: 85%; margin-bottom: -2px; }
.compact .hero { height: 84px; }
.status-badge { position: absolute; top: 12px; left: 12px; background: var(--white); color: var(--navy-deep); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.demo-badge { position: absolute; top: 12px; right: 12px; background: #F3EEDC; color: #6B5413; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 4px 8px; border-radius: 6px; }
.lc-body { padding: 16px 18px 18px; }
.lc-address { font-family: var(--serif); font-size: 21px; font-weight: 600; }
.lc-address a { color: inherit; }
.compact .lc-address { font-size: 17px; }
.lc-city { color: var(--muted); font-size: 13px; margin: 3px 0 10px; }
.lc-price { font-size: 24px; font-weight: 700; color: var(--navy-deep); letter-spacing: -.01em; }
.compact .lc-price { font-size: 19px; }
.lc-facts { color: var(--gray); font-size: 14px; margin: 2px 0 14px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.kpis div { padding: 10px 8px; text-align: center; display: flex; flex-direction: column; }
.kpis div + div { border-left: 1px solid var(--line); }
.kpis strong { font-size: 20px; line-height: 1.1; }
.kpis span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-top: 3px; }
.breakdown { margin-top: 18px; }
.breakdown h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--gray); margin-bottom: 10px; }
.bd-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.bd-label { font-size: 13px; font-weight: 600; width: 58px; flex: none; }
.bd-bar { flex: 1; display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--line); gap: 2px; }
.i-very { background: var(--navy); }
.i-somewhat { background: var(--navy-300); }
.i-not { background: #C9CCD2; }
.legend { list-style: none; padding: 0; margin: 8px 0 6px 68px; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--gray); }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; vertical-align: 0; }
.legend b { color: var(--ink); }
.price-bars { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.price-bars li { display: grid; grid-template-columns: 98px 1fr 20px; align-items: center; gap: 10px; font-size: 13px; color: var(--gray); }
.price-bars b { color: var(--ink); text-align: right; }
.pb { height: 8px; background: var(--bg); border-radius: 999px; overflow: hidden; }
.pb i { display: block; height: 100%; background: var(--navy-deep); border-radius: 999px; }

.agent-card .agent-row { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.contact { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 6px; font-size: 13px; color: var(--gray); }
.contact li { display: flex; gap: 8px; align-items: flex-start; }
.contact .ic { margin-top: 2px; }

/* filters */
.filters { padding: 14px 16px; margin-bottom: 14px; display: grid; gap: 12px; }
.fgroup { border: 0; margin: 0; padding: 0; min-width: 0; }
.fgroup legend { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--gray); margin-bottom: 7px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { position: relative; cursor: pointer; font-weight: 500; color: var(--ink); }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
a.chip { text-decoration: none !important; }
.chip { flex: none; }
.chip span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--white); font-size: 13px; transition: all .15s; white-space: nowrap; }
.chip:hover span { border-color: var(--navy-300); }
.chip span.on, .chip input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--white); }
.chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(0,51,136,.25); }
.custom-range { margin-top: 8px; }
.custom-range summary { font-size: 13px; color: var(--navy); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; font-weight: 500; }
.daterow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; max-width: 420px; }
.daterow input { font-size: 14px; padding: 8px 10px; }
.factions { display: flex; gap: 8px; align-items: center; }
.factions:empty { display: none; }
.js .js-hide { display: none; }

/* posts */
.post { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); scroll-margin-top: 80px; }
.post:target { box-shadow: 0 0 0 2px var(--navy-300), var(--shadow); }
.post-hidden { border-style: dashed; border-color: var(--line-strong); background: #FCFCFD; }
.post-head { display: flex; gap: 12px; align-items: center; padding: 16px 18px 0; }
.post-meta { flex: 1; min-width: 0; }
.post-author { font-weight: 700; font-size: 15px; }
.post-sub { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post-listing { margin: 10px 18px 0; font-size: 12px; color: var(--gray); display: flex; align-items: center; gap: 5px; font-weight: 600; }
.internal-flag { margin: 10px 18px 0; display: inline-flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 700; color: #6B5413; background: #F3EEDC; padding: 4px 9px; border-radius: 6px; }
.post-body { padding: 12px 18px 14px; }
.post-title { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.post-text { margin: 0; white-space: pre-line; }
.quote { margin: 12px 0 0; padding: 12px 14px; background: var(--bg); border-left: 3px solid var(--navy); border-radius: 0 10px 10px 0; font-size: 15px; white-space: pre-line; }
.signals { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.signal { background: var(--navy-50); border-radius: 12px; padding: 10px 12px; display: grid; gap: 6px; }
.signal-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--gray); }
.signal strong { font-size: 14px; color: var(--navy-deep); }
.meter, .pricescale { display: flex; gap: 4px; }
.meter i { flex: 1; height: 6px; border-radius: 999px; background: #D5DCE9; max-width: 34px; }
.meter i.on { background: var(--navy); }
.m-not i.on { background: var(--gray); }
.pricescale i { flex: 1; height: 6px; border-radius: 999px; background: #D5DCE9; max-width: 26px; }
.pricescale i.on { background: var(--navy-deep); }
.details-qa { margin-top: 10px; font-size: 14px; }
.details-qa summary { cursor: pointer; color: var(--navy); font-weight: 600; font-size: 13px; }
.details-qa dl { display: grid; grid-template-columns: minmax(120px, 45%) 1fr; gap: 6px 12px; margin: 10px 0 0; }
.details-qa dt { color: var(--muted); }
.details-qa dd { margin: 0; font-weight: 500; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-top: 12px; }
.stat { background: var(--navy-50); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; }
.stat-v { font-size: 22px; font-weight: 700; color: var(--navy-deep); line-height: 1.1; }
.stat-l { font-size: 12px; color: var(--gray); margin-top: 3px; }
.showing-row { display: flex; align-items: center; gap: 14px; }
.showing-date { width: 52px; flex: none; border: 1px solid var(--line); border-radius: 10px; text-align: center; overflow: hidden; }
.sd-mon { display: block; background: var(--black); color: var(--white); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 2px 0; }
.sd-day { display: block; font-size: 20px; font-weight: 700; padding: 2px 0 4px; }
.showing-time { font-weight: 600; }
.showing-row .status-pill { margin-left: auto; }
.post-foot { border-top: 1px solid var(--line); padding: 6px 12px 12px; }
.post-actions { display: flex; align-items: center; gap: 2px; }
.post-actions form { margin: 0; }
.act { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; background: none; border: 0; border-radius: 8px; font: inherit; font-size: 14px; font-weight: 600; color: var(--gray); cursor: pointer; }
.act:hover { background: var(--bg); color: var(--ink); }
.act.on { color: var(--navy); }
.act.on .ic { fill: var(--navy-100); }
.act-count { background: var(--bg); color: var(--ink); font-size: 12px; padding: 0 7px; border-radius: 999px; }
.act-quiet { font-weight: 500; font-size: 13px; }
.act-danger:hover { color: var(--danger); }
.comments { list-style: none; margin: 4px 0 0; padding: 0 6px; display: grid; gap: 8px; }
.comment { display: flex; gap: 8px; align-items: flex-start; }
.bubble { background: var(--bg); border-radius: 14px; padding: 8px 12px; max-width: 100%; }
.from-agent .bubble { background: var(--navy-50); }
.bubble-head { display: flex; align-items: center; gap: 7px; font-size: 13px; flex-wrap: wrap; }
.bubble-head time { color: var(--muted); font-size: 12px; }
.bubble p { margin: 2px 0 0; font-size: 14px; white-space: pre-line; }
.tag { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: var(--navy); color: var(--white); padding: 1px 6px; border-radius: 4px; }
.comment-form { display: flex; gap: 8px; align-items: center; padding: 10px 6px 0; }
.comment-form input { margin: 0; padding: 8px 14px; border-radius: 999px; font-size: 15px; background: var(--bg); border-color: transparent; }
.comment-form input:focus { background: var(--white); }
.comment-form .btn { border-radius: 999px; }
.loadmore { text-align: center; padding: 6px 0; }
.empty { padding: 34px 20px; }

/* ---------- admin ---------- */
.admin-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.table-card { overflow: hidden; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--gray); padding: 12px 14px; background: #FAFBFC; border-bottom: 1px solid var(--line); }
.tbl td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.inbox-row { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none !important; }
.inbox-row:first-of-type { border-top: 0; margin-top: 6px; }
.inbox-row:hover strong { color: var(--navy); }
.seller-list { list-style: none; padding: 0; margin: 12px 0 14px; display: grid; gap: 10px; }
.seller-list li { display: flex; gap: 10px; align-items: center; }
.row-actions { display: flex; gap: 2px; }
.row-actions form { margin: 0; }
.invite-form { border-top: 1px solid var(--line); padding-top: 14px; }
.invite-form input { padding: 9px 11px; font-size: 15px; }
.collapsible summary { cursor: pointer; list-style: none; }
.collapsible summary::-webkit-details-marker { display: none; }
.collapsible summary::after { content: "+"; margin-left: auto; font-size: 18px; color: var(--muted); font-weight: 400; }
.collapsible[open] summary::after { content: "–"; }
.collapsible[open] summary { margin-bottom: 14px; }
.collapsible .grid-form { grid-template-columns: 1fr; }
.collapsible .grid-form .three, .collapsible .grid-form .two { grid-column: auto; }
.danger summary { color: var(--danger); }
.composer { margin-bottom: 22px; overflow: hidden; }
.composer-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.seg { display: inline-flex; background: var(--bg); border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg-opt { position: relative; cursor: pointer; }
.seg-opt input { position: absolute; opacity: 0; }
.seg-opt span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--gray); }
.seg-opt input:checked + span { background: var(--white); color: var(--navy); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.seg-opt input:focus-visible + span { outline: 2px solid var(--navy); }
.composer-body { padding: 14px 16px 4px; }
.composer-body input, .composer-body select, .composer-body textarea { font-size: 15px; padding: 9px 11px; }
.composer-foot { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-top: 1px solid var(--line); background: #FAFBFC; flex-wrap: wrap; }
.composer-foot .check { font-size: 13px; }
.admin-listing .feed-head { margin-top: 4px; }
.outbox pre { white-space: pre-wrap; font-family: inherit; font-size: 14px; background: var(--bg); padding: 12px; border-radius: 10px; margin: 8px 0 0; }
.outbox h2 { font-size: 16px; margin-top: 4px; }

/* ---------- footer ---------- */
.sitefoot { border-top: 1px solid var(--line); background: var(--white); color: var(--muted); font-size: 13px; }
.sitefoot .wrap { padding: 16px 20px; display: flex; gap: 8px 22px; flex-wrap: wrap; }
.sitefoot strong { color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .admin-grid { grid-template-columns: 1fr; }
  .feed-layout { grid-template-columns: 1fr; gap: 14px; }
  .side { display: contents; position: static; max-height: none; }
  .side > * { order: 0; }
  .side > .agent-card { order: 3; }
  .admin-listing .side > section#sellers, .admin-listing .side > details { order: 3; }
  .feed-col { order: 2; max-width: none; }
  .admin-listing .feed-col { order: 1; }
}
@media (max-width: 720px) {
  body { font-size: 15px; }
  .wrap { padding: 14px 12px 32px; }
  .topbar-inner { padding: 0 14px; height: 54px; }
  .wm-main { font-size: 19px; }
  .wm-sub { display: none; }
  .wm-tag { font-size: 11px; }
  .topnav > a { padding: 7px 8px; font-size: 13px; }
  .flashes { padding: 0 12px; }
  .page-title { font-size: 22px; }
  .hero { height: 112px; }
  .listing-card:not(.compact) .lc-body { padding: 14px 16px 16px; }
  .lc-address { font-size: 19px; }
  .lc-price { font-size: 21px; }
  .breakdown { display: none; }
  .listing-card:not(.compact) .hero { height: 70px; }
  .listing-card:not(.compact) .hero-art { width: 60%; }
  .compact .hero { display: none; }
  .compact .lc-body { padding: 12px 14px; }
  .compact .lc-facts { margin-bottom: 8px; }
  .compact .kpis strong { font-size: 17px; }
  .summaries.multi { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin: 0 -12px; padding: 0 12px 4px; scrollbar-width: none; }
  .summaries.multi::-webkit-scrollbar { display: none; }
  .summaries.multi > .listing-card { flex: 0 0 84%; scroll-snap-align: start; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 2px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .post { border-radius: 12px; }
  .post-head { padding: 14px 14px 0; }
  .post-body { padding: 10px 14px 12px; }
  .post-foot { padding: 4px 8px 10px; }
  .post-listing, .internal-flag { margin-left: 14px; }
  .avatar { width: 38px; height: 38px; }
  .badge span { display: none; }
  .badge { padding: 6px; }
  .signals { grid-template-columns: 1fr; gap: 8px; }
  .signal { grid-template-columns: 1fr auto; align-items: center; }
  .signal .signal-label { grid-column: 1; }
  .signal .meter, .signal .pricescale { grid-column: 2; grid-row: 1; width: 110px; justify-content: flex-end; }
  .signal strong { grid-column: 1 / -1; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .grid-form { grid-template-columns: 1fr; }
  .composer-head { padding: 12px; }
  .seg { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); }
  .seg-opt span { justify-content: center; padding: 7px 4px; font-size: 12px; flex-direction: column; gap: 2px; }
  .tbl thead { display: none; }
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl tr { padding: 10px 14px; border-bottom: 1px solid var(--line); }
  .tbl td { border: 0; padding: 3px 0; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  .tbl td::before { content: attr(data-label); color: var(--muted); font-size: 12px; text-align: left; }
  .tbl td:first-child { display: block; text-align: left; padding-bottom: 6px; }
  .tbl td:first-child::before { display: none; }
  .tbl .num { text-align: right; }
  .auth-card { padding: 24px 20px; }
  .sitefoot .wrap { flex-direction: column; gap: 4px; }
}

/* refinements */
.btn { white-space: nowrap; }
.row-actions { flex: none; }
.seller-list .small { overflow-wrap: anywhere; }
.admin-listing .side { position: static; max-height: none; overflow: visible; }

/* ---------- seller timeline: one centered column, top to bottom ---------- */
.timeline { max-width: 700px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.timeline > .feed-head { margin: 10px 0 0; }
.timeline > .filters { margin-bottom: 0; }
.timeline .hero { height: 190px; }
.timeline .compact .hero { height: 96px; }
.timeline .lc-address { font-size: 26px; }
.timeline .breakdown { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 24px; align-items: start; }
.timeline .breakdown h3 { grid-column: 1 / -1; }
.timeline .breakdown .bd-row:first-of-type { grid-column: 1; grid-row: 2; }
.timeline .breakdown .legend { grid-column: 1; grid-row: 3; margin-left: 0; }
.timeline .breakdown .bd-row:nth-of-type(2) { display: none; }
.timeline .breakdown .price-bars { grid-column: 2; grid-row: 2 / 4; margin-top: 8px; }
.agentbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.agentbar > div { flex: 1; min-width: 200px; }
.links-card h2 { margin-bottom: 10px; }
.links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.links a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; min-height: 48px; border: 1px solid var(--line-strong); border-radius: 12px; color: var(--navy-deep); font-weight: 600; text-decoration: none; }
.links a:hover { border-color: var(--navy); background: var(--navy-50); }
.showing-row { flex-wrap: wrap; }
.showing-row > div:not(.showing-date) { flex: 1 1 200px; }
@media (max-width: 720px) {
  .timeline .hero { height: 110px; }
  .timeline .lc-address { font-size: 21px; }
  .timeline .breakdown { display: grid; grid-template-columns: minmax(0, 1fr); }
  .timeline .breakdown .bd-row:first-of-type, .timeline .breakdown .legend, .timeline .breakdown .price-bars { grid-column: 1; grid-row: auto; }
}
.inline-form { display: flex; gap: 6px; align-items: center; }
.inline-form select { margin: 0; padding: 6px 8px; font-size: 14px; width: auto; }
details.leave summary { list-style: none; display: inline-flex; }
details.leave summary::-webkit-details-marker { display: none; }
details.leave[open] { margin-top: 6px; }
details.leave select { font-size: 14px; padding: 6px 8px; }
