/* Connect UK Auctions · Agent portal design system
   Brand tokens from connectukauctions.co.uk (navy, teal, Inter). */
:root {
  --navy: #0d0c3d; --navy-deep: #08072d; --navy-2: #1d1c5c; --navy-3: #2b2a72;
  --teal: #18b8a4; --teal-dark: #109986; --teal-ink: #0b6e61; --teal-soft: #e7f6f3;
  --ink: #171a2e; --ink-2: #3b3f55; --muted: #626873; --faint: #8a90a0;
  --line: #e4e7eb; --line-2: #eef0f3; --bg: #f5f6f4; --soft: #f8f9fa; --card: #fff;
  --lilac: #eeedf8; --amber: #8a5300; --amber-soft: #fff5e3; --red: #b42318; --red-soft: #fdeceb; --blue-soft: #eef4ff;
  --accent: var(--teal); --accent-ink: var(--navy-deep); --ok: var(--teal-dark); --ok-bg: var(--teal-soft); --warn: var(--amber); --warn-bg: var(--amber-soft); --bad: var(--red); --bad-bg: var(--red-soft); --info-bg: var(--lilac); --soft-green: var(--teal-soft);
  --r: 16px; --r-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(13,12,61,.05);
  --shadow: 0 1px 2px rgba(13,12,61,.04), 0 6px 24px rgba(13,12,61,.05);
  --shadow-lg: 0 24px 60px rgba(13,12,61,.18);
  --side-w: 264px; --top-h: 68px;
  font-family: Inter, "Inter Fallback", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
* { min-width: 0; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; }
a { color: var(--navy); text-decoration: none; transition: color .15s; }
a:hover { color: var(--teal-dark); }
h1, h2, h3 { color: var(--ink); margin: 0; letter-spacing: -.015em; }
h1 { font-size: clamp(24px, 2.4vw, 30px); font-weight: 700; line-height: 1.15; letter-spacing: -.025em; }
h2 { font-size: 17px; font-weight: 650; line-height: 1.3; }
h3 { font-size: 15px; font-weight: 600; }
p { margin: 0 0 10px; }
hr { border: 0; border-top: 1px solid var(--line-2); margin: 18px 0; }
code { font-size: .9em; background: var(--soft); border: 1px solid var(--line-2); border-radius: 6px; padding: 1px 6px; overflow-wrap: anywhere; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 13px; } .tiny { font-size: 12px; }
.right { text-align: right; } .center { text-align: center; } .nowrap { white-space: nowrap; } .teal { color: var(--teal-dark); }
.mt { margin-top: 16px; } .mb { margin-bottom: 16px; } .mt0 { margin-top: 0; } .mt-s { margin-top: 8px; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.i { width: 18px; height: 18px; flex: none; }
p a, .small a:not(.btn), .tiny a:not(.btn), .link { color: var(--teal-dark); font-weight: 600; }
.link:hover { color: var(--navy); }

/* ---------------------------------------------------------------- App shell */
.app { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--navy); color: #fff; padding: 20px 14px 18px; display: flex; flex-direction: column; gap: 18px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent; }
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 10px 6px; color: #fff; }
.brand img { height: 32px; width: auto; max-width: 150px; display: block; }
.brand span { font-size: 11px; line-height: 1.25; color: rgba(255,255,255,.55); border-left: 1px solid rgba(255,255,255,.18); padding-left: 12px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border-radius: 10px; color: rgba(255,255,255,.68); font-size: 14px; font-weight: 500; }
.nav a svg { width: 18px; height: 18px; flex: none; opacity: .9; }
.nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav a.on { background: rgba(24,184,164,.16); color: #fff; }
.nav a.on svg { color: var(--teal); }
.nav .badge { margin-left: auto; }
.nav .sec { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.38); margin: 14px 12px 6px; }
.side-card { margin-top: auto; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.06); border-radius: 14px; padding: 14px 16px; }
.side-card .lbl { font-size: 12px; color: rgba(255,255,255,.6); }
.side-card .big { font-size: 20px; font-weight: 700; }
.side-bar { height: 6px; background: rgba(255,255,255,.12); border-radius: 99px; margin-top: 10px; overflow: hidden; }
.side-bar span { display: block; height: 100%; background: var(--teal); border-radius: 99px; }
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--teal); color: var(--navy-deep); font-size: 11px; font-weight: 700; line-height: 1; }
.badge.red { background: #ef4444; color: #fff; }

.shell-main { display: flex; flex-direction: column; min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 30; height: var(--top-h); display: flex; align-items: center; gap: 12px; padding: 0 clamp(16px, 3vw, 32px); background: rgba(245,246,244,.82); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid rgba(13,12,61,.06); }
.topbar .search { flex: 1; max-width: 520px; }
.topbar .spacer { flex: 1; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; flex: none; }
.icon-btn:hover { color: var(--navy); border-color: #cfd4db; }
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn .badge { position: absolute; top: -6px; right: -6px; border: 2px solid var(--bg); height: 22px; }
.menu-btn { display: none; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--teal); color: var(--navy-deep); font-weight: 700; font-size: 13px; overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.usermenu { position: relative; }
.usermenu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; border-radius: 12px; padding: 2px; }
.usermenu summary::-webkit-details-marker { display: none; }
.usermenu .who { display: flex; flex-direction: column; line-height: 1.2; }
.usermenu .who b { font-size: 13px; } .usermenu .who span { font-size: 12px; color: var(--muted); }
.dropdown { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 40; }
.dropdown a, .dropdown button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; font: inherit; font-size: 14px; color: var(--ink); background: none; border: 0; cursor: pointer; text-align: left; }
.dropdown a:hover, .dropdown button:hover { background: var(--soft); color: var(--ink); }
.dropdown hr { margin: 6px 4px; }
.page { width: 100%; max-width: 1280px; margin: 0 auto; padding: 28px clamp(16px, 3vw, 32px) 64px; display: flex; flex-direction: column; gap: 20px; }
.page.wide { max-width: 1480px; }
.page > * { margin: 0; }
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px 20px; }
.page-head .sub { color: var(--muted); font-size: 14px; margin-top: 6px; max-width: 680px; }
.page-head .eyebrow { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 6px; display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); } .crumbs a:hover { color: var(--teal-dark); }
.demo-bar { background: var(--navy-deep); color: rgba(255,255,255,.72); font-size: 12.5px; padding: 7px 16px; text-align: center; }
.demo-bar strong { color: var(--teal); }
.scrim { display: none; }
.top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px; } /* legacy alias */

@media (max-width: 1024px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; z-index: 60; left: 0; top: 0; width: min(var(--side-w), 86vw); transform: translateX(-100%); transition: transform .25s ease; box-shadow: var(--shadow-lg); }
  body.nav-open .side { transform: none; }
  body.nav-open .scrim { display: block; position: fixed; inset: 0; z-index: 50; background: rgba(8,7,45,.45); }
  .menu-btn { display: inline-grid; }
  .usermenu .who { display: none; }
}
@media (max-width: 640px) {
  .topbar { gap: 8px; } .topbar .search { display: none; } .topbar .hide-sm { display: none; }
  .page { padding-top: 20px; gap: 16px; }
}

/* ---------------------------------------------------------------- Cards & layout */
.card { background: var(--card); border: 1px solid rgba(13,12,61,.06); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow-sm); }
.card.flush { padding: 0; overflow: hidden; }
.card.pad-lg { padding: 28px; }
.card + .card { margin-top: 0; }
.card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; margin-bottom: 14px; }
.card-head h2 { margin: 0; }
.card-head .meta { font-size: 12px; color: var(--muted); }
.card-foot { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-2); display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.g6 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 12px; }
.g-2-1 { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); align-items: start; }
.g-1-2 { grid-template-columns: minmax(280px, 1fr) minmax(0, 2fr); align-items: start; }
.stack-v { display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 960px) { .g-2-1, .g-1-2 { grid-template-columns: minmax(0, 1fr); } }
.span2 { grid-column: span 2; }
@media (max-width: 720px) { .span2 { grid-column: auto; } }

.kpi { display: flex; flex-direction: column; gap: 2px; }
.kpi .label { color: var(--muted); font-size: 13px; font-weight: 500; }
.kpi .val { font-size: clamp(24px, 2.4vw, 30px); font-weight: 700; letter-spacing: -.025em; line-height: 1.15; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi .sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.kpi .up { color: var(--teal-dark); font-weight: 600; } .kpi .down { color: var(--red); font-weight: 600; }
.kpi .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--soft); color: var(--navy); margin-bottom: 10px; }
.kpi .ic svg { width: 19px; height: 19px; }
.kpi.dark, .hero-card { background: var(--navy); color: #fff; border-color: var(--navy); }
.kpi.dark .label, .kpi.dark .sub { color: rgba(255,255,255,.65); } .kpi.dark .up { color: var(--teal); }
.kpi.accent { box-shadow: inset 0 3px 0 var(--teal), var(--shadow-sm); }
.hero-card { border-radius: var(--r); padding: 26px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 18px; position: relative; overflow: hidden; }
.hero-card::after { content: ""; position: absolute; right: -70px; top: -70px; width: 260px; height: 260px; border-radius: 50%; border: 44px solid rgba(24,184,164,.12); pointer-events: none; }
.hero-card > * { position: relative; z-index: 1; }
.hero-card .lbl { font-size: 13px; color: rgba(255,255,255,.65); }
.hero-card .big { font-size: clamp(34px, 4vw, 46px); font-weight: 700; letter-spacing: -.035em; line-height: 1.05; margin: 6px 0; }

.strip { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 32px; background: #fff; border: 1px solid rgba(13,12,61,.06); border-radius: var(--r); padding: 16px 24px; box-shadow: var(--shadow-sm); }
.strip .k { font-size: 11px; color: var(--teal-dark); font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.strip .count { display: flex; gap: 20px; font-variant-numeric: tabular-nums; }
.strip .count b { font-size: 24px; letter-spacing: -.02em; } .strip .count span { font-size: 12px; color: var(--muted); margin-left: 3px; }

/* ---------------------------------------------------------------- Tables */
.table-wrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 13px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
tbody tr:last-child td, table tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .12s; } tbody tr:hover { background: #fafbfb; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td a { color: var(--navy); font-weight: 600; } td a:hover { color: var(--teal-dark); }
table.kvt td { padding: 10px 0; } table.kvt td:first-child { color: var(--muted); width: 40%; }
@media (max-width: 700px) {
  table.stack thead { display: none; }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack tr { padding: 12px 0; border-bottom: 1px solid var(--line-2); } table.stack tr:last-child { border-bottom: 0; }
  table.stack td { border: 0; padding: 4px 0; text-align: left !important; display: flex; justify-content: space-between; gap: 12px; }
  table.stack td[data-l]::before { content: attr(data-l); color: var(--muted); font-size: 12px; font-weight: 500; flex: none; }
  table.stack td:first-child { display: block; padding-bottom: 8px; } table.stack td:first-child::before { display: none; }
  table.stack td:empty { display: none; }
  .table-wrap table.stack { min-width: 0 !important; }
}

/* ---------------------------------------------------------------- Pills & status */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 99px; font-size: 12px; font-weight: 600; background: #eef0f3; color: var(--muted); white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .7; }
.pill.plain::before { display: none; }
.pill.ok, .pill.sold, .pill.live, .pill.verified, .pill.signed, .pill.active, .pill.paid, .pill.accepted, .pill.approved_seller { background: var(--teal-soft); color: var(--teal-ink); }
.pill.submitted, .pill.sent, .pill.pending, .pill.claimed, .pill.approved, .pill.ramp, .pill.booked, .pill.sms, .pill.with_seller, .pill.open { background: var(--lilac); color: var(--navy); }
.pill.warning, .pill.rejected, .pill.below, .pill.unsold, .pill.review, .pill.past_due, .pill.lead, .pill.new { background: var(--amber-soft); color: var(--amber); }
.pill.failed, .pill.suspended, .pill.cancelled, .pill.withdrawn, .pill.declined { background: var(--red-soft); color: var(--red); }
.pill.solid { background: var(--teal); color: var(--navy-deep); } .pill.solid::before { display: none; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); flex: none; }

/* ---------------------------------------------------------------- Forms */
label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin: 14px 0 6px; }
label .hint, .hint { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.field-hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time], input[type=tel], input[type=month], input[type=search], input[type=url], select, textarea {
  width: 100%; height: 44px; padding: 0 13px; border: 1px solid #d9dde3; border-radius: 10px; font: inherit; font-size: 15px; background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s; appearance: none; -webkit-appearance: none; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23626873' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 36px; }
textarea { height: auto; min-height: 110px; padding: 12px 13px; resize: vertical; line-height: 1.55; }
input::placeholder, textarea::placeholder { color: #a3a9b5; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(24,184,164,.15); }
input[readonly] { background: var(--soft); }
input[type=file] { width: 100%; font: inherit; font-size: 14px; padding: 10px; border: 1px dashed #cfd4db; border-radius: 10px; background: var(--soft); }
input[type=file]::file-selector-button { font: inherit; font-weight: 600; font-size: 13px; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 7px 12px; margin-right: 12px; cursor: pointer; }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; accent-color: var(--teal-dark); flex: none; }
input[type=range] { width: 100%; accent-color: var(--teal-dark); }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0 14px; }
.row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
@media (max-width: 560px) { .row-2 { grid-template-columns: minmax(0, 1fr); } }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; color: var(--ink); margin: 10px 0; cursor: pointer; }
.check input { margin-top: 2px; }
.form-section + .form-section { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line-2); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--teal-dark); background: var(--teal-dark); color: #fff; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; text-decoration: none; transition: background .15s, border-color .15s, color .15s, box-shadow .15s; }
.btn:hover { background: #0d8574; border-color: #0d8574; color: #fff; }
.btn:focus-visible, .icon-btn:focus-visible, a:focus-visible { outline: 3px solid rgba(24,184,164,.4); outline-offset: 2px; }
.btn svg { width: 17px; height: 17px; }
.btn.accent { background: var(--teal); border-color: var(--teal); color: var(--navy-deep); } .btn.accent:hover { background: #15a693; }
.btn.dark { background: var(--navy); border-color: var(--navy); } .btn.dark:hover { background: var(--navy-2); border-color: var(--navy-2); }
.btn.ghost { background: #fff; color: var(--ink); border-color: #d9dde3; } .btn.ghost:hover { border-color: var(--navy); color: var(--navy); background: #fff; }
.btn.quiet { background: transparent; border-color: transparent; color: var(--ink-2); } .btn.quiet:hover { background: rgba(13,12,61,.05); color: var(--navy); }
.btn.outline-light { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; } .btn.outline-light:hover { background: rgba(255,255,255,.08); }
.btn.danger { background: #fff; color: var(--red); border-color: #f1c7c2; } .btn.danger:hover { background: var(--red-soft); color: var(--red); }
.btn.small { height: 36px; padding: 0 13px; font-size: 13px; border-radius: 9px; }
.btn.xs { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; }
.btn.block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
form.inline { display: inline-flex; margin: 0; }
.search { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #d9dde3; border-radius: 12px; padding: 0 14px; height: 44px; transition: border-color .15s, box-shadow .15s; }
.search:focus-within { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(24,184,164,.15); }
.search svg { width: 17px; height: 17px; flex: none; color: var(--faint); }
.search input { border: 0; height: 40px; padding: 0; box-shadow: none !important; background: transparent; }
.search kbd { font: inherit; font-size: 11px; color: var(--faint); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }

/* ---------------------------------------------------------------- Feedback */
.flash { padding: 13px 16px; border-radius: 12px; font-size: 14px; display: flex; gap: 10px; align-items: flex-start; border: 1px solid transparent; }
.flash.ok { background: var(--teal-soft); color: var(--teal-ink); border-color: #c9ebe4; }
.flash.error { background: var(--red-soft); color: var(--red); border-color: #f6d3cf; }
.flash.info { background: var(--lilac); color: var(--navy); border-color: #dedcf2; }
.flash.warn { background: var(--amber-soft); color: var(--amber); border-color: #f5e1bd; }
.empty { text-align: center; padding: 36px 20px; color: var(--muted); }
.empty .ic { width: 52px; height: 52px; border-radius: 16px; background: var(--soft); display: grid; place-items: center; margin: 0 auto 14px; color: var(--navy); }
.empty .ic svg { width: 24px; height: 24px; }
.empty h3 { color: var(--ink); margin-bottom: 6px; }
.tip { padding: 13px 15px; background: var(--teal-soft); border-radius: 12px; font-size: 13px; color: var(--teal-ink); }

/* ---------------------------------------------------------------- Lists & feeds */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 7px 0 7px 34px; position: relative; font-size: 14px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 6px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); background: #fff; }
.checklist li.ok::before { background: var(--teal-soft); border-color: var(--teal-soft); }
.checklist li.ok::after { content: ""; position: absolute; left: 9px; top: 11px; width: 5px; height: 10px; border: solid var(--teal-dark); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.feed-item { display: flex; gap: 12px; padding: 12px 10px; border-bottom: 1px solid var(--line-2); border-radius: 10px; color: inherit; align-items: flex-start; }
.feed-item:last-child { border-bottom: 0; }
a.feed-item:hover { background: var(--soft); color: inherit; }
.feed-item .t { font-weight: 600; font-size: 14px; color: var(--ink); }
.feed-item.unread .t::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); margin-right: 8px; vertical-align: middle; }
.av { width: 40px; height: 40px; border-radius: 50%; background: var(--lilac); color: var(--navy); display: grid; place-items: center; font-weight: 700; font-size: 12.5px; flex: none; overflow: hidden; }
.av img { width: 100%; height: 100%; object-fit: cover; }
.av.sm { width: 32px; height: 32px; font-size: 11px; }
.av.teal { background: var(--teal-soft); color: var(--teal-dark); } .av.amber { background: var(--amber-soft); color: var(--amber); } .av.navy { background: var(--navy); color: #fff; }
.timeline { list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
.timeline li { padding: 10px 0 10px 22px; position: relative; display: flex; gap: 14px; flex-wrap: wrap; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 16px; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.timeline li::after { content: ""; position: absolute; left: 7.5px; top: 28px; bottom: -6px; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline time { color: var(--muted); min-width: 130px; }
.kv { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.kv:last-child { border-bottom: 0; } .kv > span:first-child { color: var(--muted); }
.copy { display: flex; gap: 8px; } .copy input { font-size: 13px; }

/* ---------------------------------------------------------------- Tabs & filters */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 11px 14px; color: var(--muted); font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; flex: none; }
.tabs a:hover { color: var(--ink); } .tabs a.on { color: var(--navy); border-color: var(--teal); }
.tabs a .badge { margin-left: 6px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; background: #eceef0; border-radius: 12px; padding: 4px; }
.seg a, .seg button { height: 34px; padding: 0 14px; display: inline-flex; align-items: center; gap: 6px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--muted); border: 0; background: none; cursor: pointer; font-family: inherit; white-space: nowrap; }
.seg a:hover { color: var(--ink); } .seg a.on { background: #fff; color: var(--navy); box-shadow: 0 1px 2px rgba(13,12,61,.1); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters a { height: 34px; display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; border-radius: 99px; background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--muted); }
.filters a:hover { color: var(--ink); border-color: #cfd4db; } .filters a.on { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------------------------------------------------------------- Charts */
.gauge { height: 8px; background: var(--line-2); border-radius: 99px; overflow: hidden; margin: 8px 0 4px; }
.gauge > span { display: block; height: 100%; background: var(--teal); border-radius: 99px; }
.gauge.below > span { background: #e0a64b; }
.bar-row + .bar-row { margin-top: 14px; }
.bar-row .t { display: flex; justify-content: space-between; font-size: 14px; }
.bars { display: flex; align-items: flex-end; gap: 5px; height: 170px; border-bottom: 1px solid var(--line); margin-top: 14px; }
.bars span { flex: 1; background: var(--navy); opacity: .85; border-radius: 5px 5px 0 0; min-height: 2px; }
.bars span.hi { background: var(--teal); opacity: 1; }
.legend { display: flex; gap: 24px; flex-wrap: wrap; }
.legend b { display: block; font-size: 24px; letter-spacing: -.02em; }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; }

/* ---------------------------------------------------------------- Lots */
.thumb { width: 60px; height: 44px; border-radius: 8px; object-fit: cover; display: block; flex: none; background: linear-gradient(135deg, #dfe6e2, #cfd8d3); }
.lotcell { display: flex; align-items: center; gap: 12px; }
.lotcell strong { display: block; color: var(--ink); } .lotcell:hover strong { color: var(--teal-dark); }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.photos img { width: 100%; aspect-ratio: 4/3; height: auto; object-fit: cover; border-radius: 10px; display: block; }
.bmv { font-weight: 700; } .bmv.ok { color: var(--teal-dark); } .bmv.no { color: var(--red); }
.stat .val { font-size: 26px; font-weight: 700; letter-spacing: -.02em; } .stat .label { font-size: 12px; color: var(--muted); }
.lot-hero { background: var(--navy); color: #fff; border-radius: var(--r); padding: clamp(20px, 3vw, 30px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 26px; align-items: end; position: relative; overflow: hidden; }
.lot-hero h1 { color: #fff; font-size: clamp(28px, 3.4vw, 38px); margin: 14px 0 6px; }
.lot-hero .facts { display: flex; flex-wrap: wrap; gap: 14px 30px; margin-top: 22px; }
.lot-hero .facts div div:first-child { font-size: 12px; color: rgba(255,255,255,.6); }
.lot-hero .facts div div:last-child { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.lot-hero .gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 112px 112px; gap: 8px; }
.lot-hero .gallery img, .lot-hero .gallery span { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; background: rgba(255,255,255,.08); display: block; }
.lot-hero .gallery > :first-child { grid-row: span 2; }

/* ---------------------------------------------------------------- Onboarding steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.steps a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 600; }
.steps a .n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); font-size: 12px; flex: none; }
.steps .done { color: var(--teal-ink); border-color: #c9ebe4; background: var(--teal-soft); } .steps .done .n { background: var(--teal); color: #fff; }
.steps .now { color: var(--navy); border-color: var(--teal); box-shadow: 0 0 0 3px rgba(24,184,164,.15); } .steps .now .n { background: var(--navy); color: #fff; }
.quiz fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin: 0 0 12px; }
.quiz legend { font-weight: 600; padding: 0 6px; }
.agreement { max-height: 380px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; background: var(--soft); font-size: 14px; }
.agreement h3 { margin: 14px 0 6px; } .agreement h3:first-child { margin-top: 0; }

/* ---------------------------------------------------------------- Split panes (enquiries, email, support) */
.pane { display: grid; grid-template-columns: 340px minmax(0, 1fr); background: #fff; border: 1px solid rgba(13,12,61,.06); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); min-height: 640px; }
.pane.three { grid-template-columns: 330px minmax(0, 1fr) 290px; }
.pane.mail { grid-template-columns: 210px 360px minmax(0, 1fr); }
.pane .col { border-right: 1px solid var(--line-2); display: flex; flex-direction: column; min-height: 0; }
.pane .col:last-child { border-right: 0; }
.pane .col-head { padding: 14px 16px; border-bottom: 1px solid var(--line-2); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pane .scroll { overflow-y: auto; flex: 1; max-height: 720px; }
.conv { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line-2); color: inherit; border-left: 3px solid transparent; }
.conv:hover { background: var(--soft); color: inherit; }
.conv.on { background: #f1faf8; border-left-color: var(--teal); }
.conv .nm { font-weight: 600; font-size: 14px; color: var(--ink); }
.conv.unread .nm { font-weight: 700; }
.conv .p { font-size: 13px; color: var(--muted); }
.thread { display: flex; flex-direction: column; background: #fafbfb; min-height: 0; }
.thread-head { padding: 16px 22px; background: #fff; border-bottom: 1px solid var(--line-2); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.msgs { flex: 1; padding: 22px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; max-height: 560px; }
.bubble { max-width: min(76%, 560px); background: #fff; border: 1px solid var(--line); border-radius: 16px 16px 16px 5px; padding: 11px 14px; font-size: 14px; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; box-shadow: var(--shadow-sm); }
.bubble.out { align-self: flex-end; background: var(--navy); color: #fff; border-color: var(--navy); border-radius: 16px 16px 5px 16px; }
.bubble .m { font-size: 11px; color: var(--faint); margin-top: 6px; } .bubble.out .m { color: rgba(255,255,255,.6); }
.sysmsg { align-self: center; font-size: 12px; color: var(--muted); background: #fff; border: 1px solid var(--line-2); border-radius: 99px; padding: 4px 12px; }
.composer { padding: 14px 18px 18px; background: #fff; border-top: 1px solid var(--line-2); }
.composer .row-send { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.composer textarea { min-height: 54px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.chips button { height: 30px; padding: 0 12px; border: 1px solid var(--line); border-radius: 99px; background: #fff; font: inherit; font-size: 12.5px; cursor: pointer; color: var(--ink-2); }
.chips button:hover { border-color: var(--teal); color: var(--teal-dark); }
.ctx { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.ctx .h { font-size: 11px; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: .07em; }
.folder { display: flex; align-items: center; gap: 10px; padding: 9px 12px; margin: 0 8px; border-radius: 9px; font-size: 14px; color: var(--ink-2); font-weight: 500; }
.folder:hover { background: var(--soft); color: var(--ink); } .folder.on { background: var(--lilac); color: var(--navy); font-weight: 600; }
.folder .badge { margin-left: auto; }
.mrow { display: block; padding: 13px 16px; border-bottom: 1px solid var(--line-2); color: inherit; border-left: 3px solid transparent; }
.mrow:hover { background: var(--soft); color: inherit; }
.mrow.on { background: #f1faf8; border-left-color: var(--teal); }
.mrow .top-line { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.mrow .from { font-weight: 500; color: var(--ink); } .mrow.unread .from, .mrow.unread .subj { font-weight: 700; }
.mrow .subj { font-size: 13.5px; color: var(--ink); } .mrow .snip { font-size: 13px; color: var(--muted); }
.reader { padding: 24px 28px; overflow-y: auto; }
.reader h2 { font-size: 21px; letter-spacing: -.02em; line-height: 1.3; }
.reader .headers { display: flex; gap: 12px; align-items: center; margin: 18px 0; }
.mailframe { width: 100%; min-height: 460px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; }
.mailtext { white-space: pre-wrap; font-size: 14.5px; line-height: 1.6; overflow-wrap: anywhere; }
.att { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: 13px; color: var(--ink); margin: 0 8px 8px 0; }
.att:hover { border-color: var(--teal); }
.back-link { display: none; }
@media (max-width: 1180px) { .pane.three { grid-template-columns: 300px minmax(0, 1fr); } .pane.three .ctx-col { display: none; } .pane.mail { grid-template-columns: 300px minmax(0, 1fr); } .pane.mail .folders-col { display: none; } .mail-folder-select { display: block !important; } }
@media (max-width: 820px) {
  .pane, .pane.three, .pane.mail { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .pane .col { border-right: 0; }
  .pane.has-sel .list-col { display: none; } .pane:not(.has-sel) .detail-col { display: none; }
  .back-link { display: inline-flex; }
  .msgs { max-height: none; } .pane .scroll { max-height: none; }
}

/* ---------------------------------------------------------------- Public pages */
.pub-head { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 30; }
.pub-head .in { max-width: 1200px; margin: 0 auto; padding: 14px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.pub-head a { color: #fff; }
.pub-head nav { display: flex; gap: 22px; align-items: center; font-size: 14px; font-weight: 500; flex-wrap: wrap; }
.pub-head nav a:not(.btn) { color: rgba(255,255,255,.75); } .pub-head nav a:not(.btn):hover { color: #fff; }
@media (max-width: 640px) { .pub-head nav a.hide-sm { display: none; } .pub-head nav { gap: 14px; } }
.wrap { max-width: 1200px; margin: 0 auto; padding: 44px 24px 72px; }
.narrow { max-width: 480px; margin: 0 auto; padding: 56px 20px 72px; }
.auth-card { padding: 32px; }
.auth-card h1 { margin-bottom: 6px; }
.hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(1000px 500px at 85% -10%, rgba(24,184,164,.22), transparent 60%), repeating-linear-gradient(115deg, rgba(255,255,255,.025) 0 60px, transparent 60px 120px); }
.hero .in { position: relative; max-width: 1200px; margin: 0 auto; padding: clamp(48px, 7vw, 96px) 24px clamp(56px, 8vw, 104px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 48px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(38px, 5.4vw, 64px); line-height: 1.03; letter-spacing: -.035em; }
.hero h1 em { color: var(--teal); font-style: normal; }
.hero p.lead { font-size: clamp(16px, 1.6vw, 19px); color: rgba(255,255,255,.75); margin: 20px 0 30px; max-width: 560px; }
.hero .eyebrow { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 600; color: var(--teal); background: rgba(24,184,164,.12); border-radius: 99px; padding: 6px 12px; margin-bottom: 18px; }
.hero .card { color: var(--ink); box-shadow: var(--shadow-lg); border: 0; padding: 28px; }
.calc .out { font-size: 44px; font-weight: 700; color: var(--navy); letter-spacing: -.03em; line-height: 1.1; }
.section { padding: clamp(48px, 6vw, 80px) 0; }
.section h2.big { font-size: clamp(26px, 3vw, 36px); letter-spacing: -.03em; margin-bottom: 10px; }
.section .lede { color: var(--muted); font-size: 17px; max-width: 640px; margin-bottom: 30px; }
.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 18px; }
.feature .ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal-dark); margin-bottom: 14px; }
.feature .ic svg { width: 22px; height: 22px; }
.feature h3 { font-size: 16px; margin-bottom: 6px; }
.how { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.how li { background: #fff; border: 1px solid rgba(13,12,61,.06); border-radius: var(--r); padding: 24px; counter-increment: s; box-shadow: var(--shadow-sm); }
.how li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--navy); color: #fff; font-weight: 700; margin-bottom: 14px; }
.how h3 { margin-bottom: 6px; }
.trust { display: flex; gap: 10px 22px; flex-wrap: wrap; font-size: 13px; color: rgba(255,255,255,.62); margin-top: 26px; }
.trust span { display: inline-flex; align-items: center; gap: 6px; } .trust span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.cta-band { background: var(--navy); color: #fff; border-radius: 24px; padding: clamp(28px, 4vw, 48px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.cta-band h2 { color: #fff; font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -.025em; }
.profile-hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.profile-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(800px 400px at 90% 0%, rgba(24,184,164,.2), transparent 60%); }
.profile-hero .in { position: relative; max-width: 1200px; margin: 0 auto; padding: clamp(32px, 5vw, 56px) 24px; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
.profile-hero h1 { color: #fff; }
.headshot { width: 136px; height: 136px; border-radius: 50%; object-fit: cover; border: 4px solid rgba(255,255,255,.14); background: var(--teal); color: var(--navy-deep); display: grid; place-items: center; font-size: 44px; font-weight: 800; flex: none; }
.statband { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); background: #fff; border: 1px solid rgba(13,12,61,.06); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); }
.statband > div { padding: 20px 22px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); margin: 0 -1px -1px 0; }
.statband b { display: block; font-size: 26px; letter-spacing: -.025em; } .statband span { font-size: 12.5px; color: var(--muted); }
.lot-card { padding: 0 !important; overflow: hidden; display: flex; flex-direction: column; }
.lot-card img, .lot-card .ph { width: 100%; aspect-ratio: 16/10; height: auto; object-fit: cover; display: block; background: linear-gradient(135deg, #dfe6e2, #cfd8d3); }
.lot-card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.agent-card { text-align: center; padding: 28px 22px; transition: transform .15s, box-shadow .15s; }
.agent-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: inherit; }
.foot { text-align: center; color: var(--muted); font-size: 12px; padding: 28px 24px 36px; border-top: 1px solid var(--line-2); }
.slot { display: flex; align-items: center; gap: 12px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; margin: 0 0 8px; cursor: pointer; font-weight: 500; }
.slot:hover { border-color: #cfd4db; }
.slot:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); }
.qr { width: 148px; height: 148px; border-radius: 14px; border: 1px solid var(--line); background: #fff; padding: 8px; }
.qr svg { width: 100%; height: 100%; display: block; }
.video { position: relative; padding-top: 56.25%; border-radius: var(--r); overflow: hidden; background: var(--navy); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video .soon { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.7); padding: 20px; text-align: center; }
pre.template { white-space: pre-wrap; background: var(--soft); border: 1px solid var(--line-2); border-radius: 12px; padding: 18px; font-family: inherit; font-size: 14px; line-height: 1.6; margin: 0; overflow-wrap: anywhere; }
.tile { display: block; color: inherit; transition: transform .15s, box-shadow .15s; }
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: inherit; }
.tile .kind { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--teal-dark); }
.day h3 { margin: 18px 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); }
.task { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-bottom: 1px solid var(--line-2); }
.task:last-child { border-bottom: 0; }
.task .tick { width: 22px; height: 22px; border-radius: 7px; border: 2px solid #cfd4db; background: #fff; display: grid; place-items: center; cursor: pointer; flex: none; padding: 0; }
.task .tick:hover { border-color: var(--teal); }
.task.done .tick { background: var(--teal); border-color: var(--teal); }
.task.done .tick::after { content: ""; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.task.done .title { text-decoration: line-through; color: var(--faint); }
.task .title { flex: 1; font-size: 14px; }
.due { font-size: 12px; color: var(--muted); white-space: nowrap; } .due.over { color: var(--red); font-weight: 600; }

/* Share buttons on Profile & sharing */
.share-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.av svg { width: 18px; height: 18px; flex: none; }
.av.sm svg { width: 16px; height: 16px; }
/* Keep the navy sidebar column full height on long pages */
@media (min-width: 1025px) { .app { background: linear-gradient(to right, var(--navy) var(--side-w), transparent var(--side-w)); } }
/* Default size for every inline icon; component rules override this */
:where(svg[aria-hidden="true"]:not([width])) { width: 18px; height: 18px; flex: none; }
.folder svg { width: 17px; height: 17px; }
