:root {
  --text-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
  --text-sm: clamp(0.8125rem, 0.79rem + 0.15vw, 0.875rem);
  --text-base: clamp(0.9375rem, 0.91rem + 0.15vw, 1rem);
  --text-lg: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --text-xl: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  --text-2xl: clamp(1.875rem, 1.4rem + 1.8vw, 2.75rem);

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s8: 32px; --s10: 40px; --s12: 48px;
  --r-sm: 8px; --r-md: 12px; --r-lg: 18px; --r-xl: 24px; --r-full: 999px;

  --font-display: "Cabinet Grotesk", "Satoshi", system-ui, sans-serif;
  --font-body: "Satoshi", system-ui, -apple-system, sans-serif;

  /* Warm stone light theme */
  --bg: #f4f2ec;
  --surface: #ffffff;
  --surface-2: #faf8f3;
  --surface-3: #efece4;
  --ink: #17160f;
  --ink-2: #4a473d;
  --muted: #7a7567;
  --line: #e5e1d6;
  --line-2: #d6d1c3;
  --gold: #b99a52;
  --gold-ink: #7c6326;
  --gold-soft: #f3ecda;
  --accent: #17160f;
  --accent-ink: #ffffff;
  --focus: #b99a52;
  --shadow-sm: 0 1px 2px rgba(23, 22, 15, 0.05);
  --shadow-md: 0 1px 2px rgba(23, 22, 15, 0.04), 0 8px 24px -8px rgba(23, 22, 15, 0.12);
  --shadow-lg: 0 24px 60px -16px rgba(23, 22, 15, 0.28);

  --c-training: #4c5bd4;
  --c-marketing: #b8862b;
  --c-office: #1f8a78;
  --c-social: #c2456b;
  --c-c21: #17160f;

  --st-new: #3b5bdb; --st-prog: #b7791f; --st-prop: #7048e8; --st-ok: #2b8a3e; --st-no: #c92a2a;
  --sidebar-w: 248px;
}
[data-theme="dark"] {
  --bg: #0f0f0d;
  --surface: #181815;
  --surface-2: #1d1d19;
  --surface-3: #25241f;
  --ink: #f2efe6;
  --ink-2: #c9c4b5;
  --muted: #8f8a7c;
  --line: #2c2b25;
  --line-2: #3a3830;
  --gold: #d2b46e;
  --gold-ink: #dcc17f;
  --gold-soft: #2b2617;
  --accent: #d2b46e;
  --accent-ink: #17160f;
  --shadow-md: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -8px rgba(0,0,0,.5);
  --shadow-lg: 0 24px 60px -16px rgba(0,0,0,.7);
  --c-training: #8b97ff; --c-marketing: #e0ad52; --c-office: #4fc7b1; --c-social: #f07fa0; --c-c21: #e9e4d6;
  --st-new: #7d97ff; --st-prog: #e9b44c; --st-prop: #a68bff; --st-ok: #5fcf75; --st-no: #ff7b7b;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body { margin: 0; font-family: var(--font-body); font-size: var(--text-base); line-height: 1.55; color: var(--ink); background: var(--bg); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.num { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
svg.lucide { width: 18px; height: 18px; stroke-width: 1.75; flex: none; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--r-full); border: 1px solid var(--line-2); background: var(--surface); font-size: var(--text-sm); font-weight: 600; text-decoration: none; white-space: nowrap; transition: background .18s, border-color .18s, transform .18s, color .18s; }
.btn:hover { border-color: var(--ink-2); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn--primary:hover { filter: brightness(1.12); border-color: var(--accent); }
.btn--gold { background: var(--gold); color: #17160f; border-color: var(--gold); }
.btn--ghost { background: transparent; border-color: transparent; }
.btn--ghost:hover { background: var(--surface-3); border-color: transparent; }
.btn--sm { height: 32px; padding: 0 12px; font-size: var(--text-xs); }
.btn--icon { width: 40px; padding: 0; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.link { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-sm); font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 1px solid transparent; }
.link:hover { border-bottom-color: currentColor; }
.link svg { width: 15px; height: 15px; }

/* ---------- Sign in ---------- */
.signin { min-height: 100dvh; display: grid; grid-template-columns: 1.05fr 1fr; }
.signin__art { position: relative; overflow: hidden; background: #121210; color: #f2efe6; padding: var(--s10); display: flex; flex-direction: column; justify-content: space-between; }
.signin__art .mesh { position: absolute; inset: -20%; background:
  radial-gradient(40% 35% at 25% 30%, rgba(210,180,110,.45), transparent 70%),
  radial-gradient(35% 40% at 75% 70%, rgba(185,154,82,.28), transparent 70%),
  radial-gradient(30% 30% at 70% 20%, rgba(255,255,255,.06), transparent 70%); filter: blur(10px); animation: drift 18s ease-in-out infinite alternate; }
.signin__art .grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent); }
@keyframes drift { to { transform: translate(4%, -3%) scale(1.08); } }
.signin__art > * { position: relative; }
.signin__quote { max-width: 30ch; font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; }
.signin__quote em { font-style: normal; color: #d2b46e; }
.signin__feat { display: flex; gap: var(--s6); flex-wrap: wrap; color: rgba(242,239,230,.72); font-size: var(--text-sm); }
.signin__feat span { display: inline-flex; gap: 8px; align-items: center; }
.signin__feat svg { color: #d2b46e; }
.signin__form { display: grid; place-items: center; padding: var(--s8); background: var(--surface); }
.signin__card { width: min(400px, 100%); display: grid; gap: var(--s5); }
.signin__card h1 { font-size: var(--text-xl); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; letter-spacing: .04em; font-size: 15px; text-decoration: none; }
.wordmark b { font-weight: 800; }
.wordmark i { font-style: normal; font-weight: 500; letter-spacing: .02em; opacity: .7; }
/* 1.53.2: the real CENTURY 21 Fusion logo, drawn in the text colour (dark on light, brand gold on dark). */
.c21logo { display: block; height: 34px; aspect-ratio: 1037 / 243; background: currentColor; -webkit-mask: url(../img/c21-fusion-logo.png) no-repeat left center / contain; mask: url(../img/c21-fusion-logo.png) no-repeat left center / contain; }
.c21seal { display: block; width: 32px; height: 32px; background: #beaf87; -webkit-mask: url(../img/c21-seal-gold.png) no-repeat center / contain; mask: url(../img/c21-seal-gold.png) no-repeat center / contain; }
.side__brand .wordmark { color: var(--ink); }
[data-theme="dark"] .side__brand .wordmark, [data-theme="dark"] .svl .wordmark { color: #beaf87; }
.svl .wordmark { color: var(--ink); }
.signin__art .c21logo { height: 46px; }
.wordmark .mark { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(135deg, #d9bf7f, #a8893f); color: #17160f; font-size: 13px; font-weight: 900; letter-spacing: 0; }
.note { font-size: var(--text-xs); color: var(--muted); }
.alert { padding: 12px 14px; border-radius: var(--r-md); font-size: var(--text-sm); background: var(--gold-soft); color: var(--ink); border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent); }
.alert--err { background: color-mix(in srgb, var(--st-no) 10%, var(--surface)); border-color: color-mix(in srgb, var(--st-no) 35%, transparent); }

/* ---------- Fields ---------- */
.field { display: grid; gap: 6px; }
.field label, .label { font-size: var(--text-xs); font-weight: 700; color: var(--ink-2); letter-spacing: .02em; }
.input, select.input, textarea.input { width: 100%; height: 44px; padding: 0 14px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--surface); transition: border-color .15s, box-shadow .15s; }
textarea.input { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; }
.input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 22%, transparent); }
.input-wrap { position: relative; }
.input-wrap .btn { position: absolute; right: 4px; top: 4px; height: 36px; }
.check { display: flex; gap: 10px; align-items: center; font-size: var(--text-sm); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--gold); }
.row { display: flex; gap: var(--s3); align-items: center; }
.row--between { justify-content: space-between; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }

/* ---------- Shell ---------- */
.shell { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100dvh; }
.side { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; gap: var(--s4); padding: var(--s5) var(--s4); border-right: 1px solid var(--line); background: var(--surface-2); }
.side__brand { padding: 4px 8px 8px; display: flex; align-items: center; justify-content: space-between; }
.side__badge { font-size: 10px; font-weight: 800; letter-spacing: .12em; padding: 3px 7px; border-radius: 6px; background: var(--gold-soft); color: var(--gold-ink); }
.side nav { display: grid; gap: 2px; overflow-y: auto; }
.side__group { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 14px 10px 6px; }
.nav-a { position: relative; display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 10px; font-size: var(--text-sm); font-weight: 550; color: var(--ink-2); text-decoration: none; transition: background .15s, color .15s; }
.nav-a:hover { background: var(--surface-3); color: var(--ink); }
.nav-a.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); }
.nav-a.is-active::before { content: ""; position: absolute; left: -16px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gold); }
.nav-a .count { margin-left: auto; font-size: 11px; font-weight: 700; min-width: 20px; height: 20px; padding: 0 6px; display: grid; place-items: center; border-radius: var(--r-full); background: var(--ink); color: var(--bg); }
.side__foot { margin-top: auto; display: grid; gap: var(--s2); }
.me { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: var(--r-md); text-decoration: none; border: 1px solid var(--line); background: var(--surface); }
.me:hover { border-color: var(--line-2); }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: linear-gradient(135deg, #e3cd94, #b3924a); color: #17160f; flex: none; }
.me b { display: block; font-size: var(--text-sm); line-height: 1.2; }
.me span { font-size: var(--text-xs); color: var(--muted); }

.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: var(--s3); padding: 12px var(--s8); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; }
.top.scrolled { border-bottom-color: var(--line); }
.search { flex: 1; max-width: 460px; display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border-radius: var(--r-full); border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: var(--text-sm); text-align: left; }
.search:hover { border-color: var(--line-2); }
.kbd { margin-left: auto; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--muted); }
.top__right { margin-left: auto; display: flex; gap: var(--s2); align-items: center; }
.bell { position: relative; }
.bell .dot { position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--st-no); box-shadow: 0 0 0 2px var(--bg); }
.view { padding: var(--s6) var(--s8) var(--s12); max-width: 1320px; width: 100%; }
.view-enter { animation: enter .35s cubic-bezier(.16,1,.3,1); }
@keyframes enter { from { opacity: 0; transform: translateY(6px); } }

/* ---------- Page header ---------- */
.ph { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s6); flex-wrap: wrap; margin-bottom: var(--s6); }
.ph h1 { font-size: var(--text-xl); font-weight: 800; }
.ph p { color: var(--muted); margin-top: 6px; max-width: 62ch; }
.eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 8px; display: block; }
.crumb { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-sm); color: var(--muted); text-decoration: none; margin-bottom: var(--s3); }
.crumb:hover { color: var(--ink); }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.card__h { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s5) var(--s5) 0; }
.card__h h2 { font-size: var(--text-lg); font-weight: 750; }
.card__b { padding: var(--s5); }
.pad { padding: var(--s5); }
.stack { display: grid; gap: var(--s4); }
.muted { color: var(--muted); }
.small { font-size: var(--text-sm); }
.xs { font-size: var(--text-xs); }

/* ---------- Home bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--s4); }
.hero { grid-column: span 8; position: relative; overflow: hidden; padding: var(--s8); border-radius: var(--r-xl); background: #141411; color: #f2efe6; min-height: 260px; display: flex; flex-direction: column; justify-content: space-between; gap: var(--s6); border: 1px solid #26251f; }
.hero .mesh { position: absolute; inset: -30%; background: radial-gradient(35% 45% at 85% 20%, rgba(210,180,110,.5), transparent 70%), radial-gradient(30% 40% at 60% 110%, rgba(185,154,82,.35), transparent 70%); animation: drift 16s ease-in-out infinite alternate; }
.hero > * { position: relative; }
.hero h1 { font-size: var(--text-2xl); font-weight: 800; letter-spacing: -0.025em; }
.hero h1 span { color: #d2b46e; }
.hero p { color: rgba(242,239,230,.72); max-width: 52ch; margin-top: 10px; }
.hero .btn { border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #f2efe6; }
.hero .btn:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); }
.hero .btn--gold { background: #d2b46e; color: #17160f; border-color: #d2b46e; }
.hero .btn--gold:hover { background: #dec183; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s2); }
.next { grid-column: span 4; display: flex; flex-direction: column; }
.next__body { padding: var(--s5); display: grid; gap: var(--s4); flex: 1; align-content: start; }
.next__when { display: flex; gap: var(--s4); align-items: center; }
.bigdate { width: 64px; height: 68px; border-radius: 14px; background: var(--gold-soft); color: var(--gold-ink); display: grid; place-items: center; align-content: center; line-height: 1; flex: none; }
.bigdate b { font-family: var(--font-display); font-size: 28px; font-weight: 800; }
.bigdate span { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-top: 4px; }
.countdown { font-size: var(--text-xs); font-weight: 700; color: var(--st-ok); display: inline-flex; gap: 6px; align-items: center; }
.countdown::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 25%, transparent); }
.stat-row { grid-column: span 12; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); }
.stat { padding: var(--s4) var(--s5); display: flex; gap: var(--s4); align-items: center; text-decoration: none; transition: border-color .15s, transform .2s; }
.stat:hover { border-color: var(--line-2); transform: translateY(-2px); }
.stat .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-3); flex: none; }
.stat b { font-family: var(--font-display); font-size: 22px; font-weight: 800; display: block; line-height: 1.1; }
.stat span { font-size: var(--text-xs); color: var(--muted); }
.col-8 { grid-column: span 8; } .col-4 { grid-column: span 4; } .col-6 { grid-column: span 6; } .col-12 { grid-column: span 12; }

.areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.area { position: relative; padding: var(--s5); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); text-decoration: none; display: flex; flex-direction: column; gap: var(--s3); min-height: 190px; overflow: hidden; transition: border-color .2s, transform .25s cubic-bezier(.16,1,.3,1), box-shadow .2s; }
.area:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--shadow-md); }
.area .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--ink); color: var(--bg); }
.area .ic svg { width: 20px; height: 20px; }
.area h3 { font-size: var(--text-lg); font-weight: 750; }
.area p { font-size: var(--text-sm); color: var(--muted); }
.area .go { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-sm); font-weight: 700; }
.area .go svg { transition: transform .2s; }
.area:hover .go svg { transform: translateX(3px); }
.area .n { position: absolute; top: 16px; right: 18px; font-family: var(--font-display); font-weight: 800; font-size: 13px; color: var(--muted); }

/* ---------- Event rows ---------- */
.evlist { display: grid; }
.evrow { display: grid; grid-template-columns: 56px 1fr auto; gap: var(--s4); align-items: center; padding: 14px var(--s5); border-top: 1px solid var(--line); text-decoration: none; transition: background .15s; cursor: pointer; }
.evrow:first-child { border-top: 0; }
.evrow:hover { background: var(--surface-2); }
.minidate { text-align: center; line-height: 1.05; }
.minidate b { display: block; font-family: var(--font-display); font-size: 22px; font-weight: 800; }
.minidate span { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.evrow h4 { font-size: var(--text-base); font-weight: 700; font-family: var(--font-body); letter-spacing: 0; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: var(--text-xs); color: var(--muted); margin-top: 3px; }
.meta span { display: inline-flex; align-items: center; gap: 5px; }
.meta svg { width: 13px; height: 13px; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .02em; padding: 3px 9px; border-radius: var(--r-full); background: var(--surface-3); color: var(--ink-2); white-space: nowrap; }
.tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--muted)); }
.tag--outline { background: transparent; border: 1px solid var(--line-2); }
.tag--gold { background: var(--gold-soft); color: var(--gold-ink); }

/* ---------- News ---------- */
.news-item { display: grid; grid-template-columns: auto 1fr; gap: var(--s4); padding: var(--s4) var(--s5); border-top: 1px solid var(--line); }
.news-item:first-child { border-top: 0; }
.news-item .d { font-size: var(--text-xs); color: var(--muted); font-weight: 700; width: 52px; line-height: 1.3; padding-top: 2px; }
.news-item .d b { display: block; color: var(--ink); font-size: var(--text-sm); }
.news-item h4 { font-size: var(--text-base); font-family: var(--font-body); font-weight: 700; letter-spacing: 0; margin: 6px 0 4px; }
.news-item p { font-size: var(--text-sm); color: var(--ink-2); }
.pin { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; color: var(--gold-ink); }
.pin svg { width: 13px; height: 13px; }

.contact { display: grid; gap: var(--s3); }
.office { display: flex; gap: var(--s3); align-items: flex-start; padding: var(--s4); border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); }
.office b { display: block; font-size: var(--text-sm); }
.office a { font-weight: 700; text-decoration: none; }
.office .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; flex: none; }

.cta { grid-column: span 12; border-radius: var(--r-xl); padding: var(--s6) var(--s8); display: flex; align-items: center; justify-content: space-between; gap: var(--s6); flex-wrap: wrap; background: linear-gradient(110deg, var(--gold-soft), color-mix(in srgb, var(--gold) 28%, var(--surface)) ); border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); }
.cta h3 { font-size: var(--text-lg); font-weight: 800; }
.cta p { color: var(--ink-2); font-size: var(--text-sm); margin-top: 4px; }

/* ---------- Chips ---------- */
.chips { display: flex; gap: var(--s2); flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: var(--r-full); border: 1px solid var(--line-2); background: var(--surface); font-size: var(--text-sm); font-weight: 600; transition: all .15s; }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--muted)); }
.chip:hover { border-color: var(--ink-2); }
.chip.is-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip .n { font-size: 11px; opacity: .6; }
.seg { display: inline-flex; padding: 3px; border-radius: var(--r-full); background: var(--surface-3); border: 1px solid var(--line); }
.seg button { height: 30px; padding: 0 14px; border: 0; background: transparent; border-radius: var(--r-full); font-size: var(--text-sm); font-weight: 600; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.seg button.is-on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

/* ---------- Events page ---------- */
.ev-layout { display: grid; grid-template-columns: 1fr 300px; gap: var(--s6); align-items: start; }
.ev-month { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: var(--s6) 0 var(--s3); display: flex; gap: var(--s3); align-items: center; }
.ev-month::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.ev-month:first-child { margin-top: 0; }
.evcard { display: grid; grid-template-columns: 76px 1fr; gap: var(--s5); padding: var(--s5); margin-bottom: var(--s3); position: relative; overflow: hidden; transition: border-color .2s, box-shadow .2s; cursor: pointer; }
.evcard::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c); }
.evcard:hover { border-color: var(--line-2); box-shadow: var(--shadow-md); }
.evcard .bigdate { background: var(--surface-3); color: var(--ink); }
.evcard h3 { font-size: var(--text-lg); font-weight: 750; margin: 8px 0 2px; }
.evcard p { font-size: var(--text-sm); color: var(--ink-2); margin-top: 10px; max-width: 70ch; }
.evcard .acts { display: flex; gap: var(--s2); margin-top: var(--s4); flex-wrap: wrap; }
.minical { padding: var(--s5); }
.minical__h { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--s3); }
.minical__h b { font-family: var(--font-display); font-size: var(--text-base); }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.cal .dow { font-size: 11px; font-weight: 700; color: var(--muted); padding: 4px 0; }
.cal .day { position: relative; aspect-ratio: 1; display: grid; place-items: center; font-size: var(--text-xs); font-weight: 600; border-radius: 8px; border: 0; background: transparent; }
.cal .day.out { color: var(--line-2); }
.cal .day.has::after { content: ""; position: absolute; bottom: 4px; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.cal .day.today { background: var(--ink); color: var(--bg); }
.cal .day.has:hover { background: var(--surface-3); }
.cal .day.today.has::after { background: var(--gold); }
.legend { display: grid; gap: 8px; margin-top: var(--s4); padding-top: var(--s4); border-top: 1px solid var(--line); font-size: var(--text-sm); }
.legend span { display: flex; align-items: center; gap: 8px; }
.legend i { width: 9px; height: 9px; border-radius: 3px; background: var(--c); }
.band { margin-top: var(--s6); display: flex; align-items: center; justify-content: space-between; gap: var(--s4); padding: var(--s5); border-radius: var(--r-lg); background: var(--surface-3); border: 1px dashed var(--line-2); flex-wrap: wrap; }
.band b { font-family: var(--font-display); font-size: var(--text-base); }
.empty { padding: var(--s10) var(--s5); text-align: center; color: var(--muted); display: grid; gap: var(--s3); justify-items: center; }
.empty .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--surface-3); }

/* week strip */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: var(--s2); }
.week__col { min-height: 220px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.week__col.today { border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 18%, transparent); }
.week__h { display: flex; justify-content: space-between; font-size: var(--text-xs); font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.week__h b { color: var(--ink); font-family: var(--font-display); font-size: 16px; }
.wk-ev { text-align: left; border: 0; padding: 8px; border-radius: 8px; font-size: 12px; line-height: 1.3; background: color-mix(in srgb, var(--c) 12%, var(--surface)); border-left: 3px solid var(--c); }
.wk-ev b { display: block; font-weight: 700; }
.wk-ev span { color: var(--muted); }

/* ---------- Builder (assistance + marketing) ---------- */
.builder { display: grid; grid-template-columns: 1fr 360px; gap: var(--s6); align-items: start; }
.steps { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: var(--s5); }
.step { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px 0 6px; border-radius: var(--r-full); background: var(--surface); border: 1px solid var(--line); font-size: var(--text-sm); font-weight: 600; color: var(--muted); }
.step i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; background: var(--surface-3); color: var(--ink-2); }
.step.done { color: var(--ink); }
.step.done i { background: var(--st-ok); color: #fff; }
.step.on { color: var(--ink); border-color: var(--ink); }
.step.on i { background: var(--ink); color: var(--bg); }
.step svg { width: 13px; height: 13px; }
.who { display: flex; align-items: center; gap: var(--s3); padding: var(--s4) var(--s5); }
.who .avatar { width: 40px; height: 40px; }
.who b { display: block; }
.verified { margin-left: auto; display: inline-flex; gap: 6px; align-items: center; font-size: var(--text-xs); font-weight: 700; color: var(--st-ok); }
.verified svg { width: 15px; height: 15px; }
.section-h { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4); margin: var(--s8) 0 var(--s4); flex-wrap: wrap; }
.section-h h2 { font-size: var(--text-lg); font-weight: 800; }
.section-h p { color: var(--muted); font-size: var(--text-sm); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: var(--s3); }
/* 1.53.3: gas line locate tile with a small self-serve link under it, and the form's checkboxes. */
.tile-wrap { display: flex; flex-direction: column; gap: 6px; }
.tile-wrap > .tile { flex: 1; }
.tile-wrap__note { padding: 0 var(--s2); }
.tile-wrap__note a, .modal__f .xs a { color: var(--gold-ink); text-decoration: underline; }
.gas-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.gas-check { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-size: var(--text-sm); }
.gas-check:has(input:checked) { border-color: var(--gold); background: var(--gold-soft); }
.gas-check input { accent-color: var(--gold-ink); }
.tile { position: relative; text-align: left; display: flex; flex-direction: column; gap: 10px; padding: var(--s5); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); transition: border-color .15s, box-shadow .2s, transform .2s cubic-bezier(.16,1,.3,1); }
.tile:hover { border-color: var(--line-2); box-shadow: var(--shadow-md); }
a.tile, a.tile:hover { color: inherit; text-decoration: none; } /* 1.47.7: link tiles (gas line locates) */
a.tile *, a.tile:hover * { text-decoration: none; }
.tile.is-on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink), var(--shadow-md); }
.tile__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tile .ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-3); color: var(--ink); transition: background .15s, color .15s; }
.tile.is-on .ic { background: var(--gold); color: #17160f; }
.tile h3 { font-size: var(--text-base); font-weight: 750; font-family: var(--font-body); letter-spacing: 0; }
.tile .sub { font-size: var(--text-xs); font-weight: 700; color: var(--gold-ink); letter-spacing: .02em; }
.tile p { font-size: var(--text-sm); color: var(--muted); }
.tile__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.tile__foot { flex-wrap: wrap; row-gap: 10px; }
.tile__foot .price { min-width: 0; max-width: 100%; }
.tile__foot .btn { margin-left: auto; max-width: 100%; }
.tile__foot .btn svg { flex-shrink: 0; }
.price b { font-family: var(--font-display); font-size: 20px; font-weight: 800; }
.price span { font-size: var(--text-xs); color: var(--muted); margin-left: 4px; }
.tick { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; color: transparent; transition: all .15s; }
.tick svg { width: 15px; height: 15px; stroke-width: 3; }
.tile.is-on .tick { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.opts { display: flex; flex-wrap: wrap; gap: 6px; }
.opt { height: 30px; padding: 0 11px; border-radius: var(--r-full); border: 1px solid var(--line-2); background: var(--surface); font-size: 12px; font-weight: 650; }
.opt.is-on { background: var(--gold-soft); border-color: var(--gold); color: var(--gold-ink); }
.selfserve { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
.ss { padding: var(--s5); border-radius: var(--r-lg); background: var(--surface-3); text-decoration: none; display: grid; gap: 6px; transition: background .15s; }
.ss:hover { background: var(--line); }
.ss .sub { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ss h4 { font-size: var(--text-base); font-family: var(--font-body); font-weight: 750; letter-spacing: 0; }
.ss p { font-size: var(--text-sm); color: var(--ink-2); }

.tray { position: sticky; top: 80px; display: flex; flex-direction: column; max-height: calc(100dvh - 100px); }
.tray__h { padding: var(--s5); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.tray__h h2 { font-size: var(--text-lg); font-weight: 800; }
.tray__b { padding: var(--s4) var(--s5); overflow-y: auto; display: grid; gap: var(--s4); align-content: start; }
.tray__f { padding: var(--s4) var(--s5) var(--s5); border-top: 1px solid var(--line); display: grid; gap: var(--s3); }
.line-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); animation: enter .25s; }
.line-item:last-child { border-bottom: 0; }
.line-item > div { flex: 1; min-width: 0; }
.line-item b { display: block; font-size: var(--text-sm); }
.line-item span { font-size: var(--text-xs); color: var(--muted); }
.line-item button { border: 0; background: transparent; color: var(--muted); padding: 2px; border-radius: 6px; }
.line-item button:hover { color: var(--st-no); }
.tray .grp { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.total { display: flex; justify-content: space-between; align-items: baseline; font-size: var(--text-sm); }
.total b { font-family: var(--font-display); font-size: 22px; }
.mobile-bar { display: none; }

/* ---------- Requests ---------- */
.req-table { width: 100%; border-collapse: collapse; }
.req-table th { text-align: left; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 12px var(--s5); border-bottom: 1px solid var(--line); }
.req-table td { padding: 16px var(--s5); border-bottom: 1px solid var(--line); font-size: var(--text-sm); vertical-align: middle; }
.req-table tr:last-child td { border-bottom: 0; }
.req-table tbody tr { cursor: pointer; transition: background .15s; }
.req-table tbody tr:hover { background: var(--surface-2); }
.req-table .id { font-weight: 800; font-variant-numeric: tabular-nums; }
.req-table .t b { display: block; font-size: var(--text-sm); }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: var(--r-full); color: var(--sc); background: color-mix(in srgb, var(--sc) 12%, transparent); white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.kind { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-xs); font-weight: 650; color: var(--ink-2); }
.kind svg { width: 14px; height: 14px; }
.req-detail { display: grid; grid-template-columns: 1fr 320px; gap: var(--s6); align-items: start; }
.timeline { display: grid; gap: 0; }
.tl { display: grid; grid-template-columns: 22px 1fr; gap: var(--s3); position: relative; padding-bottom: var(--s5); }
.tl:last-child { padding-bottom: 0; }
.tl::before { content: ""; position: absolute; left: 10px; top: 22px; bottom: 0; width: 2px; background: var(--line); }
.tl:last-child::before { display: none; }
.tl .dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--sc) 15%, var(--surface)); color: var(--sc); }
.tl .dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.tl.future .dot { background: var(--surface-3); color: var(--line-2); }
.tl b { font-size: var(--text-sm); }
.tl span { display: block; font-size: var(--text-xs); color: var(--muted); }
.thread { display: grid; gap: var(--s3); }
.msg { max-width: 82%; padding: 12px 14px; border-radius: 16px; font-size: var(--text-sm); background: var(--surface-3); }
.msg.me { justify-self: end; background: var(--ink); color: var(--bg); border-bottom-right-radius: 4px; }
.msg.staff { border-bottom-left-radius: 4px; }
.msg .h { font-size: 11px; font-weight: 700; opacity: .7; margin-bottom: 4px; }
.composer { display: flex; gap: var(--s2); margin-top: var(--s4); }
.composer .input { border-radius: var(--r-full); }
.kv { display: grid; gap: var(--s3); }
.kv div { display: flex; justify-content: space-between; gap: var(--s3); font-size: var(--text-sm); }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 650; text-align: right; }
.flow { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; font-size: var(--text-xs); color: var(--muted); }

/* ---------- Training ---------- */
.lib { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--s4); }
.vid { text-decoration: none; display: flex; flex-direction: column; overflow: hidden; transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .2s; }
.vid:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.thumb { aspect-ratio: 16/9; position: relative; display: grid; place-items: center; background: var(--th, #1b1a16); color: #fff; overflow: hidden; }
.thumb::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 80% 10%, rgba(255,255,255,.18), transparent 60%), repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 2px, transparent 2px 14px); }
.thumb .play { position: relative; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.92); color: #17160f; display: grid; place-items: center; transition: transform .2s; }
.vid:hover .play { transform: scale(1.08); }
.thumb .len { position: absolute; right: 10px; bottom: 10px; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: rgba(0,0,0,.6); }
.thumb .grp { position: absolute; left: 12px; top: 10px; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.vid .pad h3 { font-size: var(--text-base); font-weight: 750; font-family: var(--font-body); letter-spacing: 0; }
.vid .pad p { font-size: var(--text-sm); color: var(--muted); margin-top: 4px; }

/* ---------- Broker advice ---------- */
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6); align-items: start; }
.topic-pick { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.days { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s2); }
.dayb { padding: 10px 6px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--surface); text-align: center; line-height: 1.2; }
.dayb span { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.dayb b { display: block; font-family: var(--font-display); font-size: 20px; }
.dayb.is-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.dayb.is-on span { color: inherit; opacity: .7; }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s2); }
.slot { height: 40px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--surface); font-size: var(--text-sm); font-weight: 650; }
.slot.is-on { background: var(--gold); border-color: var(--gold); color: #17160f; }
.slot:disabled { opacity: .35; text-decoration: line-through; }

/* ---------- Overlays ---------- */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(15, 15, 12, .45); backdrop-filter: blur(3px); display: grid; place-items: center; padding: var(--s4); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(760px, 100%); max-height: 90dvh; overflow: auto; background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); animation: pop .3s cubic-bezier(.16,1,.3,1); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.modal__h { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s5) var(--s6); border-bottom: 1px solid var(--line); }
.modal__h h2 { font-size: var(--text-lg); font-weight: 800; }
.modal__b { padding: var(--s6); }
.modal__f { padding: var(--s4) var(--s6); border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: var(--s3); align-items: center; flex-wrap: wrap; }
.drawer-scrim { place-items: stretch end; padding: 0; }
.drawer { width: min(480px, 100%); height: 100%; background: var(--surface); box-shadow: var(--shadow-lg); overflow: auto; animation: slide .35s cubic-bezier(.16,1,.3,1); }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } }
.drawer__art { height: 150px; position: relative; overflow: hidden; background: #141411; }
.drawer__art::before { content: ""; position: absolute; inset: -20%; background: radial-gradient(40% 60% at 80% 30%, var(--c), transparent 70%); opacity: .7; }
.drawer__art .x { position: absolute; top: 12px; right: 12px; background: rgba(255,255,255,.12); color: #fff; border-color: transparent; }
.ba-compare { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.mock { aspect-ratio: 4/3; border-radius: var(--r-md); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; }
.mock .bar { height: 18px; background: var(--surface-3); display: flex; gap: 4px; align-items: center; padding: 0 8px; }
.mock .bar i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); }
.mock .bd { flex: 1; padding: 12px; display: grid; gap: 8px; align-content: start; }
.mock .ln { height: 8px; border-radius: 4px; background: var(--line); }
.mock.after .bd { background: #141411; }
.mock.after .ln { background: rgba(255,255,255,.18); }
.mock.after .hl { height: 64px; border-radius: 8px; background: linear-gradient(135deg, #d2b46e, #8a6e30); }
.mock.before .hl { height: 64px; border-radius: 4px; background: var(--surface-3); }
.mock-cap { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }

.pop { position: absolute; z-index: 40; top: calc(100% + 8px); right: 0; width: 340px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; animation: pop .2s; }
.pop__h { padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.pop a { display: flex; gap: 10px; padding: 12px 16px; text-decoration: none; font-size: var(--text-sm); border-bottom: 1px solid var(--line); }
.pop a:last-child { border-bottom: 0; }
.pop a:hover { background: var(--surface-2); }
.pop a .u { width: 8px; height: 8px; border-radius: 50%; background: var(--st-new); margin-top: 7px; flex: none; }
.pop a .u.read { background: transparent; }
.menu { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; min-width: 200px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-lg); padding: 6px; animation: pop .15s; }
.menu a, .menu button { display: flex; gap: 10px; align-items: center; width: 100%; padding: 9px 10px; border-radius: 8px; border: 0; background: transparent; font-size: var(--text-sm); text-decoration: none; text-align: left; }
.menu a:hover, .menu button:hover { background: var(--surface-3); }
.menu--float { position: fixed; z-index: 90; }
.assist-note { display: flex; gap: 10px; align-items: flex-start; margin-bottom: var(--s5); line-height: 1.5; }
.assist-note > svg, .assist-note > i { flex: none; margin-top: 2px; }

.cmdk { width: min(620px, 100%); align-self: start; margin-top: 12vh; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; animation: pop .2s; border: 1px solid var(--line); }
.cmdk__in { display: flex; gap: 10px; align-items: center; padding: 0 16px; border-bottom: 1px solid var(--line); }
.cmdk__in input { flex: 1; height: 56px; border: 0; background: transparent; font-size: var(--text-lg); outline: none; }
.cmdk__list { max-height: 50vh; overflow: auto; padding: 6px; }
.cmdk__g { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 10px 10px 4px; }
.cmdk__it { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 10px; text-decoration: none; font-size: var(--text-sm); cursor: pointer; }
.cmdk__it span { color: var(--muted); font-size: var(--text-xs); margin-left: auto; }
.cmdk__it.sel { background: var(--surface-3); }

.toast { position: fixed; z-index: 80; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; gap: 10px; align-items: center; padding: 12px 18px; border-radius: var(--r-full); background: var(--ink); color: var(--bg); font-size: var(--text-sm); font-weight: 600; box-shadow: var(--shadow-lg); animation: toast .35s cubic-bezier(.16,1,.3,1); }
@keyframes toast { from { opacity: 0; transform: translate(-50%, 12px); } }
.success { text-align: center; display: grid; gap: var(--s4); justify-items: center; padding: var(--s10) var(--s6); }
.success .ic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--st-ok) 14%, transparent); color: var(--st-ok); animation: pop .4s cubic-bezier(.34,1.56,.64,1); }
.success .ic svg { width: 30px; height: 30px; }
.mock-flag { font-size: 11px; font-weight: 700; padding: 4px 10px; color: var(--muted); }

.tabbar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .builder, .req-detail { grid-template-columns: 1fr 320px; }
  .areas { grid-template-columns: repeat(2, 1fr); }
  .hero { grid-column: span 12; }
  .next { grid-column: span 12; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .col-8, .col-4 { grid-column: span 12; }
}
@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .top { padding: 10px var(--s4); }
  .view { padding: var(--s5) var(--s4) 110px; }
  .builder, .req-detail, .ev-layout, .ba { grid-template-columns: 1fr; }
  .tray { position: static; max-height: none; }
  .ev-layout aside .minical { display: none; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
  .tabbar a, .tabbar button { display: grid; justify-items: center; gap: 2px; padding: 6px 0; font-size: 11px; font-weight: 650; color: var(--muted); text-decoration: none; border: 0; background: transparent; }
  .tabbar .is-active { color: var(--ink); }
  .tabbar .plus { width: 44px; height: 44px; margin: -14px auto 0; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--bg); box-shadow: var(--shadow-md); }
  .mobile-bar { display: flex; position: fixed; z-index: 29; left: 12px; right: 12px; bottom: 78px; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 10px 10px 18px; border-radius: var(--r-full); background: var(--ink); color: var(--bg); box-shadow: var(--shadow-lg); font-size: var(--text-sm); font-weight: 700; animation: toast .3s; }
  .mobile-bar .btn { background: var(--gold); color: #17160f; border-color: var(--gold); height: 36px; }
  .mock-flag { display: none; }
  .search .kbd { display: none; }
}
@media (max-width: 720px) {
  .signin { grid-template-columns: 1fr; }
  .signin__art { min-height: 230px; padding: var(--s6); }
  .signin__quote { font-size: var(--text-xl); }
  .signin__feat { display: none; }
  .hero { padding: var(--s6); min-height: 0; }
  .areas, .stat-row, .selfserve, .grid2, .topic-pick, .ba-compare { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .stat { padding: var(--s3) var(--s4); gap: var(--s3); }
  .stat .ic { width: 36px; height: 36px; }
  .area { min-height: 0; }
  .evrow { grid-template-columns: 46px 1fr; }
  .evrow > .tag { display: none; }
  .evcard { grid-template-columns: 1fr; gap: var(--s3); }
  .evcard .bigdate { width: auto; height: auto; padding: 8px 12px; display: flex; gap: 8px; justify-content: flex-start; align-items: baseline; }
  .evcard .bigdate b { font-size: 20px; }
  .week { grid-template-columns: 1fr; }
  .week__col { min-height: 0; }
  .cta { padding: var(--s5); }
  .req-table thead { display: none; }
  .req-table, .req-table tbody, .req-table tr, .req-table td { display: block; width: 100%; }
  .req-table tr { padding: 14px var(--s4); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 6px; }
  .req-table td { padding: 0; border: 0; }
  .req-table td.hide-m { display: none; }
  .slots { grid-template-columns: repeat(3, 1fr); }
  .days { grid-template-columns: repeat(5, 1fr); }
  .pop { position: fixed; left: 12px; right: 12px; width: auto; top: 64px; }
  .top .btn--new span { display: none; }
  .top .btn--new { width: 40px; padding: 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ---------------- Admin ---------------- */
.seg a { height: 30px; padding: 0 14px; border-radius: var(--r-full); font-size: var(--text-sm); font-weight: 600; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; text-decoration: none; }
.seg a svg { width: 15px; height: 15px; }
.seg a.is-on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.seg--sm button { height: 28px; padding: 0 10px; font-size: var(--text-xs); }
.seg button svg { width: 14px; height: 14px; }
.nav-a--muted { opacity: .45; cursor: default; }
.nav-a--muted:hover { background: transparent; }
.nav-a .count--warn { background: var(--st-prop); color: #fff; }
.adm-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); margin-bottom: var(--s5); }
.stat--btn { text-align: left; border: 1px solid var(--line); cursor: pointer; font: inherit; color: inherit; }
.stat--btn:hover { border-color: var(--line-2); box-shadow: var(--shadow-md); }
.adm-filters { display: flex; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; align-items: center; margin-bottom: var(--s4); }
select.input.input--sm, .input--sm { height: 36px; padding: 0 30px 0 12px; font-size: var(--text-sm); border-radius: 10px; width: auto; min-width: 140px; }
.st-sel { font-weight: 700; color: var(--sc); border-color: color-mix(in srgb, var(--sc) 40%, var(--line)); background-color: color-mix(in srgb, var(--sc) 8%, var(--surface)); }
.find-sm { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); }
.find-sm svg { width: 15px; height: 15px; color: var(--muted); }
.find-sm input { border: 0; outline: 0; background: transparent; font-size: var(--text-sm); width: 160px; }
.adm-table tr.is-new td:first-child { box-shadow: inset 3px 0 0 var(--gold); }
.adm-table tr.is-off { opacity: .55; }
.adm-table td.stop { cursor: default; }
.ic-sq { width: 36px; height: 36px; border-radius: 10px; background: var(--surface-3); display: grid; place-items: center; flex: none; }
.ic-sq svg { width: 18px; height: 18px; }
.topics-table td.t b { margin: 1px 0; }
.btn--xs { width: 28px; height: 28px; }
.switch { width: 42px; height: 24px; border-radius: 999px; border: 0; background: var(--line-2); position: relative; cursor: pointer; flex: none; transition: background .2s; padding: 0; }
.switch i { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s cubic-bezier(.16,1,.3,1); }
.switch.is-on { background: var(--st-ok); }
.switch.is-on i { transform: translateX(18px); }
.msg.internal { justify-self: stretch; max-width: 100%; background: color-mix(in srgb, var(--gold) 14%, var(--surface)); border: 1px dashed color-mix(in srgb, var(--gold) 60%, transparent); color: var(--ink); }
.msg.internal .h svg { width: 12px; height: 12px; vertical-align: -2px; }
.canned { display: flex; gap: 6px; flex-wrap: wrap; margin-top: var(--s4); }
.chip--sm { height: 28px; padding: 0 10px; font-size: var(--text-xs); }
.composer--note .input { background: color-mix(in srgb, var(--gold) 10%, var(--surface)); border-style: dashed; }
.person { display: flex; gap: 10px; align-items: center; }
.person > div { display: grid; }
.avatar--sm { width: 36px; height: 36px; font-size: 12px; }
.icon-pick { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.icon-pick button { height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; }
.icon-pick button svg { width: 17px; height: 17px; }
.icon-pick button.is-on { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.notify-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bk { display: grid; grid-template-columns: 150px 1fr 180px 140px auto; gap: var(--s4); align-items: center; padding: var(--s4) 0; border-top: 1px solid var(--line); }
.bk__when { display: grid; }
.bk__when span, .bk__what span { font-size: var(--text-xs); color: var(--muted); }
.bk__what { display: grid; min-width: 0; }
.bk__act { display: flex; gap: 4px; justify-content: flex-end; flex-wrap: wrap; }
.bk__who .input--sm { width: 100%; }
.avail { display: grid; grid-template-columns: 88px repeat(5, 1fr); gap: 6px; }
.avail.is-off { opacity: .45; pointer-events: none; }
.avail__h { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-align: center; }
.avail__t { font-size: var(--text-xs); color: var(--muted); display: flex; align-items: center; font-variant-numeric: tabular-nums; }
.avail__c { height: 34px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; transition: background .15s, border-color .15s; }
.avail__c:hover { border-color: var(--line-2); }
.avail__c.is-on { background: var(--gold); border-color: var(--gold); }
.ct { display: flex; gap: var(--s4); align-items: flex-end; padding-top: var(--s4); border-top: 1px solid var(--line); }
.ct.is-off { opacity: .55; }
.ct .switch { margin-bottom: 8px; }
@media (max-width: 1180px) { .bk { grid-template-columns: 130px 1fr 160px; } .bk .status { justify-self: start; } .bk__act { grid-column: 1 / -1; justify-content: flex-start; } }
@media (max-width: 720px) {
  .adm-stats { grid-template-columns: 1fr 1fr; gap: var(--s2); }
  .seg.mode span { display: none; }
  .seg.mode a { padding: 0 10px; }
  .find-sm { flex: 1; } .find-sm input { width: 100%; }
  .adm-filters .row { width: 100%; }
  .adm-filters select.input--sm { flex: 1; min-width: 0; }
  .adm-table td.stop { display: block; }
  .adm-table tr { grid-template-columns: 1fr 1fr; }
  .adm-table tr td.t { grid-column: 1 / -1; }
  .adm-table tr.is-new { box-shadow: inset 3px 0 0 var(--gold); }
  .adm-table tr.is-new td:first-child { box-shadow: none; }
  .adm-table select.input--sm, .bk select.input--sm { width: 100%; min-width: 0; }
  .topics-table tr { grid-template-columns: 1fr auto auto; align-items: center; }
  .topics-table td:nth-child(3) { grid-column: 1 / -1; order: 5; }
  .bk { grid-template-columns: 1fr; gap: var(--s2); }
  .notify-pick { grid-template-columns: 1fr; }
  .avail { grid-template-columns: 64px repeat(5, 1fr); gap: 4px; }
  .ct { flex-wrap: wrap; }
  .ct .grid2 { flex: 1 1 100%; }
}
.msg.me { display: block; padding: 12px 14px; }
.seg button, .seg a { white-space: nowrap; }
.seg[role="tablist"] { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg[role="tablist"]::-webkit-scrollbar { display: none; }
.card__h { flex-wrap: wrap; gap: var(--s3); }

/* ---------- WordPress build additions ---------- */
.boot { min-height: 100dvh; display: grid; place-items: center; color: var(--muted); font-size: var(--text-sm); }
.toast--err { background: var(--st-no, #b3261e); color: #fff; }
.is-busy { opacity: .6; pointer-events: none; cursor: progress; }
button:disabled { cursor: not-allowed; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.thumb:has(img)::before { background: linear-gradient(180deg, rgba(0,0,0,.45), transparent 35%, transparent 65%, rgba(0,0,0,.5)); z-index: 1; }
.thumb .play, .thumb .len, .thumb .grp { z-index: 2; }
.ba-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface-3); }
.pv-art { aspect-ratio: 16/6; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface-2, var(--surface-3)); display: grid; place-items: center; align-content: center; gap: 8px; color: var(--muted); }
.pv-art .ic svg { width: 36px; height: 36px; color: var(--gold-ink, var(--text)); }
.incl { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.incl li { display: flex; gap: 8px; align-items: flex-start; font-size: var(--text-sm); }
.incl li svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--st-ok, currentColor); }
.modal--wide { width: min(960px, 100%); }
.player { position: relative; aspect-ratio: 16/9; background: #000; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.nav-a svg:last-child:not(:first-child) { width: 12px; height: 12px; margin-left: auto; opacity: .5; }
.mock-flag { display: none !important; }

/* Package tag on the Marketing Services pages */
.pkg-tag{display:flex;flex-wrap:wrap;align-items:center;gap:var(--s2,8px);align-self:flex-start}
.pkg-chip{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border-radius:999px;background:var(--surface-3);border:1px solid var(--line);font-size:var(--text-xs,12px);font-weight:700;white-space:nowrap}
.pkg-chip svg{width:14px;height:14px;color:var(--gold,#BEAF87)}

/* Getting Started (new agents) */
.ob-grid{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:var(--s6);align-items:start}
@media (max-width:980px){.ob-grid{grid-template-columns:1fr}}
.ob-list{display:grid;gap:0}
.ob-item{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:14px;align-items:start;padding:14px 0;border-top:1px solid var(--line)}
.ob-item:first-child{border-top:0}
.ob-item .btn{white-space:nowrap}
.ob-text b{display:block;font-weight:700}
.ob-text p{color:var(--muted);font-size:var(--text-sm);margin-top:4px;max-width:62ch}
.ob-item.is-done .ob-text b{text-decoration:line-through;text-decoration-color:var(--muted);color:var(--muted)}
.ob-check{position:relative;display:inline-grid;place-items:center;width:24px;height:24px;margin-top:1px;cursor:pointer}
.ob-check input{position:absolute;inset:0;opacity:0;margin:0;cursor:pointer}
.ob-check span{display:grid;place-items:center;width:24px;height:24px;border-radius:8px;border:1.5px solid var(--line-2);background:var(--surface);color:transparent;transition:background .15s,border-color .15s}
.ob-check span svg{width:15px;height:15px}
.ob-check input:checked+span{background:var(--gold,#BEAF87);border-color:var(--gold,#BEAF87);color:#1a1a1a}
.ob-check input:focus-visible+span{outline:2px solid var(--gold,#BEAF87);outline-offset:2px}
.ob-bar{height:10px;border-radius:999px;background:var(--surface-3);overflow:hidden}
.ob-bar i{display:block;height:100%;background:linear-gradient(90deg,#BEAF87,#d2b46e);border-radius:inherit;transition:width .3s}
.ob-res{display:grid;gap:14px}
.ob-r{display:grid;gap:6px;padding-top:14px;border-top:1px solid var(--line)}
.ob-r:first-child{padding-top:0;border-top:0}
.ob-r .btn{justify-self:start}
.ob-home .card__h h2{display:flex;align-items:center;gap:8px}
.ob-home__b{display:grid;grid-template-columns:minmax(200px,320px) minmax(0,1fr);gap:var(--s6);align-items:center;padding:var(--s3) var(--s5) var(--s5)}
@media (max-width:760px){.ob-home__b{grid-template-columns:1fr;gap:var(--s4)}.ob-item{grid-template-columns:auto minmax(0,1fr)}.ob-item .btn{grid-column:2;justify-self:start}}
.ob-home__next{display:flex;flex-wrap:wrap;gap:8px}
.ob-chip{display:inline-flex;align-items:center;gap:6px;padding:7px 12px;border-radius:999px;border:1px solid var(--line);background:var(--surface-2,var(--surface));font-size:var(--text-sm);text-decoration:none;color:inherit}
.ob-chip svg{width:12px;height:12px;color:var(--gold,#BEAF87)}
.ob-chip:hover{border-color:var(--gold,#BEAF87)}

/* ---------- Book a Meeting (1.3) ---------- */
.tag--ok { background: color-mix(in srgb, var(--st-ok) 14%, transparent); color: var(--st-ok); }
.tag--warn { background: color-mix(in srgb, var(--st-prop) 16%, transparent); color: var(--st-prop); }
.tag--brand { background: var(--gold-soft); color: var(--gold-ink); align-self: flex-start; margin-top: 6px; }
.lbl { font-size: var(--text-sm); font-weight: 600; }
.bk-mine { margin-bottom: var(--s5); }
.bk-row { display: grid; grid-template-columns: 64px 1fr auto; gap: var(--s4); align-items: center; padding: var(--s3) 0; border-top: 1px solid var(--line); }
.bk-row:first-of-type { border-top: 0; }
.bk-row.is-warn .bk-when { background: color-mix(in srgb, var(--st-prop) 16%, transparent); }
.bk-row.is-on { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: var(--r-md); }
.bk-when { display: grid; place-items: center; padding: 8px 4px; border-radius: var(--r-md); background: var(--surface-3); line-height: 1.15; }
.bk-when b { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.bk-when span { font-family: var(--font-display); font-size: 17px; font-weight: 700; }
.bk-what { display: grid; gap: 2px; min-width: 0; }
.bk-what .tag { justify-self: start; margin-top: 4px; }
.bk-when span { white-space: nowrap; }
.bk-act { display: flex; gap: var(--s2); }
.bk-group { display: grid; gap: var(--s3); }
.bk-group + .bk-group { margin-top: var(--s3); }
.dayb.is-full:not(.is-on) { opacity: .45; }
.ct--wide { align-items: flex-start; padding-bottom: var(--s2); }
.ct--wide .switch { margin-top: 28px; }
.ct--wide .chip { height: 30px; cursor: pointer; position: relative; }
.bk-off { padding: 6px 0; border-top: 1px solid var(--line); }
@media (max-width: 640px) {
  .bk-row { grid-template-columns: 60px 1fr; }
  .bk-when span { font-size: 14px; }
  .bk-act { grid-column: 1 / -1; }
  .bk-act .btn { flex: 1; }
}

/* ---------- 1.4: subscriptions, email agents, directory, minutes, service questions ---------- */
.seg > a { height: 30px; padding: 0 14px; border-radius: var(--r-full); font-size: var(--text-sm); font-weight: 600; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; text-decoration: none; }
.seg > a.is-on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.segradio { flex-wrap: wrap; }
.segopt { position: relative; cursor: pointer; }
.segopt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.segopt span { height: 30px; padding: 0 14px; border-radius: var(--r-full); font-size: var(--text-sm); font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; }
.segopt input:checked + span { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.segopt input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 1px; }
.stats3, .stats4 { display: grid; gap: var(--s3); margin-bottom: var(--s4); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stats4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats3 .card, .stats4 .card { display: grid; gap: 4px; text-align: left; }
.big { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 800; line-height: 1.1; }
.stat-btn { cursor: pointer; font: inherit; color: inherit; }
.stat-btn:hover { border-color: var(--line-2); }
.stat-btn.is-warn { border-color: color-mix(in srgb, var(--st-prog) 55%, transparent); background: color-mix(in srgb, var(--st-prog) 8%, var(--surface)); }
.warn { color: var(--st-prog); display: inline-flex; gap: 4px; align-items: center; margin-top: 2px; }
.warn svg { width: 13px; height: 13px; }
.btn--danger { color: var(--st-no); border-color: color-mix(in srgb, var(--st-no) 40%, var(--line-2)); }
.btn--danger:hover { background: color-mix(in srgb, var(--st-no) 8%, var(--surface)); }
.grid3 { display: grid; gap: var(--s3); grid-template-columns: repeat(3, minmax(0, 1fr)); }

.sub-row { display: flex; gap: var(--s4); justify-content: space-between; align-items: flex-start; padding: var(--s4) var(--s5); border-top: 1px solid var(--line); }
.sub-row:first-child { border-top: 0; }
.sub-row.is-ended { opacity: .65; }
.sub-row__main { display: grid; gap: 4px; min-width: 0; }
.sub-row__main .meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); }
.sub-row__main .meta > * { display: inline-flex; gap: 5px; align-items: center; }
.sub-row__main .meta svg { width: 13px; height: 13px; }
.sub-row__note { font-size: var(--text-xs); color: var(--st-prog); display: inline-flex; gap: 6px; align-items: center; }
.sub-row__note svg { width: 13px; height: 13px; }
.sub-row__side { display: flex; flex-direction: column; align-items: flex-end; gap: var(--s2); flex: none; }
.sub-log summary { cursor: pointer; }
tr[data-sub] { cursor: pointer; }

.filterbar { display: flex; gap: var(--s3); flex-wrap: wrap; align-items: center; margin-bottom: var(--s4); }
.filterbar .input--sm, .filterbar select { width: auto; }
.search--in { max-width: 380px; flex: 1 1 260px; }
.search--in input { flex: 1; border: 0; background: transparent; height: 100%; color: var(--ink); font: inherit; min-width: 0; }
.search--in input:focus { outline: none; }
.search--in:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 18%, transparent); }

.offices { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-bottom: var(--s5); }
.offices .office { align-items: center; background: var(--surface); }
.offices .office > div { flex: 1; min-width: 0; }
.offices .office .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-ink); flex: none; }
.people { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.people .person { padding: var(--s5); display: flex; flex-direction: column; gap: var(--s3); }
.people .person h3 { font-size: var(--text-base); }
.person__for { color: var(--ink-2); }
.person__for .label { display: block; margin-bottom: 2px; }
.person__acts { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: auto; }
.person__acts .btn { max-width: 100%; }
.person__acts .btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.min-group { margin-bottom: var(--s5); }
.min-group__h { font-size: var(--text-sm); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 var(--s2) 4px; }
.min-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: var(--s4); align-items: start; padding: var(--s4) var(--s5); border-top: 1px solid var(--line); cursor: pointer; }
.min-row:first-child { border-top: 0; }
.min-row:hover, .min-row:focus-visible { background: var(--surface-2); outline: none; }
.min-row h4 { font-size: var(--text-base); margin-bottom: 2px; }
.min-row p { margin-top: 6px; }
.min-row__tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.min-row__tags .tag svg { width: 12px; height: 12px; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.minutes-body { font-size: var(--text-sm); line-height: 1.65; color: var(--ink-2); }
.minutes-body > * + * { margin-top: .8em; }
.minutes-body h2, .minutes-body h3, .minutes-body h4 { color: var(--ink); font-size: var(--text-base); margin-top: 1.2em; }
.minutes-body ul, .minutes-body ol { padding-left: 1.3em; }
.minutes-body li + li { margin-top: .25em; }
.minutes-body a { color: var(--gold-ink); }

.qbox { display: grid; gap: var(--s3); margin: 2px 0 var(--s3) 42px; padding: var(--s3); border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); }
.qf label { font-size: var(--text-xs); }
.qf .input { height: 38px; font-size: var(--text-sm); }
.qf textarea.input { height: auto; min-height: 64px; padding-top: 8px; }
.qf .req { color: var(--st-no); }
.qf.is-miss .input, .qf.is-miss .qyn, .qf.is-miss .qmulti { border-color: var(--st-no); box-shadow: 0 0 0 3px color-mix(in srgb, var(--st-no) 15%, transparent); }
.qf.is-miss .qmulti { border: 1px solid var(--st-no); border-radius: var(--r-sm); padding: 6px; }
.err { color: var(--st-no); font-weight: 600; }
.qyn { align-self: start; }
.qmulti { display: grid; gap: 6px; }
.tile__qs { display: flex; gap: 6px; align-items: center; }
.tile__qs svg { width: 14px; height: 14px; }
.answers { display: grid; gap: 6px; margin: 0 0 var(--s3) 0; padding: var(--s3); border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); }
.answers > div { display: grid; grid-template-columns: minmax(120px, 38%) minmax(0, 1fr); gap: var(--s3); font-size: var(--text-sm); }
.answers dt { color: var(--muted); }
.answers dd { margin: 0; overflow-wrap: anywhere; }

.bc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s5); align-items: start; }
.bc-opts { display: grid; gap: 8px; }
.picker { display: grid; gap: var(--s2); }
.picker .search--in { max-width: none; }
.picker__list { max-height: 260px; overflow: auto; display: grid; gap: 4px; padding: var(--s2); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); }
.picker .link { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; color: var(--gold-ink); text-decoration: underline; }
.bc-hist { display: grid; gap: 2px; max-height: 640px; overflow: auto; }
.bc-row { display: grid; gap: 2px; text-align: left; padding: 10px 12px; border-radius: var(--r-md); border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.bc-row:hover { background: var(--surface-2); }

.dir-row { display: grid; gap: var(--s3); }
.dir-row.is-hidden { opacity: .7; border-style: dashed; }
.dir-row__h { display: flex; gap: var(--s3); align-items: center; flex-wrap: wrap; }
.dir-row label:not(.check) { font-size: var(--text-xs); }

@media (max-width: 960px) {
  .bc-grid { grid-template-columns: 1fr; }
  .stats4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .grid3 { grid-template-columns: 1fr; }
  .stats3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); }
  .stats3 .card, .stats4 .card { padding: var(--s3); }
  .big { font-size: var(--text-lg); }
  .sub-row { flex-direction: column; padding: var(--s4); }
  .sub-row__side { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; }
  .min-row { grid-template-columns: 44px minmax(0, 1fr); padding: var(--s4); }
  .min-row__tags { grid-column: 2; justify-content: flex-start; }
  .qbox { margin-left: 0; }
  .answers > div { grid-template-columns: 1fr; gap: 0; }
  .search--in { max-width: none; }
}
.people .person > .row, .people .person > .person__acts { display: flex; }
.people .person > .row { align-items: flex-start; }
.people .person { align-items: stretch; }
/* Long modals keep the title and buttons in view and scroll the middle */
.modal--wide { display: flex; flex-direction: column; overflow: hidden; }
.modal--wide > .modal__h, .modal--wide > .modal__f { flex: none; }
.modal--wide > .modal__b { flex: 1 1 auto; min-height: 0; overflow: auto; }
.segradio { justify-self: start; }

/* 1.5 Agent photos and the agent directory */
.avatar--img { padding: 0; overflow: hidden; background: var(--surface-3); }
.avatar--img img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; border-radius: inherit; }
.avatar--lg { width: 64px; height: 64px; font-size: 18px; flex: none; }
.avatar--xl { width: 88px; height: 88px; font-size: 24px; flex: none; }
.agents-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--s3); }
.agent-card { display: flex; gap: var(--s3); align-items: flex-start; padding: var(--s4); }
.agent-card__b { min-width: 0; flex: 1; }
.agent-card h3 { font-size: var(--text-base); font-weight: 700; line-height: 1.25; }
.partners-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--s3); }
.partner-card { display: flex; gap: var(--s4); align-items: flex-start; padding: var(--s4); min-width: 0; }
.partner-card > .avatar { flex: 0 0 auto; }
.partner-card__b { min-width: 0; flex: 1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; justify-items: start; }
.partner-card__b > * { max-width: 100%; }
.partner-card .agent-card__acts { max-width: 100%; min-width: 0; }
.partner-card .agent-card__acts .btn { max-width: 100%; min-width: 0; }
.partner-card h3 { font-size: var(--text-base); font-weight: 700; line-height: 1.25; margin-top: 2px; }
.partner-card__about { margin: 4px 0 0; color: var(--ink-2); }
.rs-by { display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; }
.rs-by .avatar--xs { width: 20px; height: 20px; font-size: 9px; flex: none; }
.rs-by svg { width: 14px; height: 14px; }
.partner-card .agent-card__acts .btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; max-width: 100%; }
.partner-card__share { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); width: 100%; }
.tp-preview { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.tp-preview pre { margin: 4px 0 0; font: inherit; font-size: var(--text-sm, 14px); white-space: pre-wrap; word-break: break-word; }
@media (max-width: 520px) { .partner-card { flex-direction: column; } }
.agent-card__acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: var(--s2); }
.btn--icon { width: 32px; padding: 0; justify-content: center; }
.filterbar .chips { margin-top: var(--s2); }
.prof-photo { gap: var(--s4); align-items: center; }
.ob-track { display: table; margin: 4px 0 2px; }

/* Text agents */
.tx-phone { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s4); display: flex; }
.tx-bubble { max-width: 340px; background: var(--surface-3); color: var(--ink); border-radius: 18px 18px 18px 4px; padding: 10px 14px; font-size: var(--text-sm); line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.tx-clip { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600; }
.tx-prog { margin-bottom: var(--s4); }
.tx-people { display: grid; gap: 2px; margin-top: 8px; max-height: 320px; overflow: auto; }
.tx-person { display: flex; justify-content: space-between; gap: var(--s3); padding: 6px 2px; border-bottom: 1px solid var(--line); font-size: var(--text-sm); }
.tx-person:last-child { border-bottom: 0; }
.tx-st { font-size: 12px; font-weight: 700; white-space: nowrap; }
.tx-st--ok { color: var(--st-ok); }
.tx-st--bad { color: var(--st-no); }
.tx-st--muted { color: var(--muted, var(--ink-2)); }
.link.xs { background: none; border: 0; padding: 0; font: inherit; font-size: 12px; cursor: pointer; color: var(--gold-ink); text-decoration: underline; }

/* Forms */
.form-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: var(--s4); align-items: center; padding: var(--s4) var(--s5); border-top: 1px solid var(--line); }
.form-row:first-child { border-top: 0; }
.form-row h4 { font-size: var(--text-base); margin: 0 0 2px; }
.form-row p { margin: 0 0 4px; }
.form-row__act { display: flex; gap: 6px; }
.form-ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-3); color: var(--ink-2); flex: none; }
.form-ic svg { width: 20px; height: 20px; }
.form-ic--pdf { background: color-mix(in srgb, var(--st-no) 12%, var(--surface)); color: var(--st-no); }
.form-ic--doc, .form-ic--docx, .form-ic--rtf { background: color-mix(in srgb, var(--st-new) 12%, var(--surface)); color: var(--st-new); }
.form-ic--xls, .form-ic--xlsx, .form-ic--csv { background: color-mix(in srgb, var(--st-ok) 12%, var(--surface)); color: var(--st-ok); }
.form-ic--link { background: var(--gold-soft); color: var(--gold-ink); }
.form-pop { margin-bottom: var(--s6); }
.form-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: var(--s4); }
.form-tile { padding: var(--s5); display: grid; gap: 8px; align-content: start; }
.form-tile h4 { font-size: var(--text-base); margin: 4px 0 0; }
.form-tile .row { margin-top: 6px; gap: 6px; }
mark { background: color-mix(in srgb, var(--gold) 35%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }

/* Broker's Corner */
.faq-search { display: flex; align-items: center; gap: var(--s4); margin-bottom: var(--s3); }
.faq-search .search { flex: 1 1 auto; max-width: 640px; height: 52px; font-size: var(--text-base); }
.faq-search .search input { font-size: var(--text-base); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s6); align-items: start; }
.faq-grid aside { position: sticky; top: 84px; }
.faq-list { overflow: hidden; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:first-child { border-top: 0; }
.faq-item summary { list-style: none; display: flex; gap: var(--s4); align-items: flex-start; justify-content: space-between; padding: var(--s4) var(--s5); cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover, .faq-item summary:focus-visible { background: var(--surface-2); outline: none; }
.faq-sum { display: grid; gap: 4px; min-width: 0; }
.faq-q { font-weight: 650; font-size: var(--text-base); color: var(--ink); line-height: 1.4; }
.faq-chev { color: var(--muted); transition: transform .2s; flex: none; margin-top: 2px; }
.faq-item[open] .faq-chev { transform: rotate(180deg); }
.faq-item[open] summary { padding-bottom: var(--s2); }
.faq-a { padding: 0 var(--s5) var(--s5); }
.faq-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: var(--s4); padding-top: var(--s3); border-top: 1px dashed var(--line); }
.faq-meta .link { display: inline-flex; align-items: center; gap: 4px; }
.faq-meta .link svg { width: 13px; height: 13px; }
.faq-item.is-flash { animation: faqflash 1.6s ease; }
@keyframes faqflash { 0%, 40% { background: var(--gold-soft); } 100% { background: transparent; } }
.ask-sim { display: grid; gap: 4px; padding: 10px 12px; border-radius: var(--r-md); background: var(--gold-soft); margin-top: -4px; }
.ask-sim .link { text-align: left; background: none; border: 0; padding: 0; cursor: pointer; color: var(--gold-ink); text-decoration: underline; font: inherit; font-size: var(--text-sm); }
.my-q { display: grid; gap: 2px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.my-q:last-child { border-bottom: 0; padding-bottom: 0; }
@media (max-width: 1100px) { .faq-grid { grid-template-columns: 1fr; } .faq-grid aside { position: static; } }
@media (max-width: 640px) {
  .form-row { grid-template-columns: 36px minmax(0, 1fr); padding: var(--s4); }
  .form-row__act { grid-column: 2; }
  .faq-search .search { height: 48px; }
  .faq-item summary { padding: var(--s4); }
  .faq-a { padding: 0 var(--s4) var(--s4); }
}
#askSim:empty { display: none; }
@media (max-width: 640px) {
  .form-tiles { grid-template-columns: 1fr; gap: var(--s3); }
  .form-tile { grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; column-gap: var(--s3); row-gap: 0; padding: var(--s3) var(--s4); }
  .form-tile .form-ic { grid-row: span 2; width: 36px; height: 36px; }
  .form-tile h4 { margin: 0; font-size: var(--text-sm); }
  .form-tile .xs { grid-column: 2; }
  .form-tile .row { grid-column: 3; grid-row: 1 / span 2; margin: 0; }
  .form-tile .row .btn:first-child { display: none; }
  .faq-search .num { display: none; }
}
.form-a { color: inherit; text-decoration: none; } .form-a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Important reminders pop-up */
.rem-modal { width: min(520px, 100%); border-top: 4px solid var(--gold); }
.rem-top { display: flex; gap: var(--s4); align-items: center; padding: var(--s6) var(--s6) 0; }
.rem-top h2 { font-size: var(--text-lg); font-weight: 800; margin-top: 2px; }
.rem-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-ink); flex: none; }
.rem-modal .modal__b { padding-top: var(--s4); }
.rem-msg { font-size: var(--text-base); line-height: 1.6; color: var(--ink); margin: 0; }
.rem-modal .modal__f { border-top: 0; padding-top: 0; justify-content: flex-end; }
.rem-modal .modal__f > span { margin-right: auto; }
@media (max-width: 640px) { .rem-modal .modal__f .btn { flex: 1 1 auto; justify-content: center; } }
.rm-prog { display: flex; align-items: center; gap: 10px; margin-top: 6px; width: 100%; }
.rm-prog .ob-bar { flex: 1 1 auto; height: 6px; }
.rem-quote { padding: var(--s4); border-radius: var(--r-md); background: var(--surface-2); border-left: 3px solid var(--gold); line-height: 1.55; }
.tx-st--warn { color: var(--st-prog); }
.tx-st { text-align: right; }

/* 1.15 profile: social links and About me */
.prof-h{font-size:var(--text-lg);margin-top:var(--s4);padding-top:var(--s4);border-top:1px solid var(--line)}
.spec-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:8px 16px;margin-top:6px}
fieldset.field{border:0;padding:0;margin:0;min-width:0}
fieldset.field .lbl{font-size:var(--text-xs);font-weight:700;color:var(--ink-2);letter-spacing:.02em;padding:0}
.spec-grid .check{font-size:var(--text-sm);font-weight:400;color:var(--ink);letter-spacing:0}

/* 1.16 CENTURY 21 awards (read-only for agents) */
.field .lbl{font-size:var(--text-xs);font-weight:700;color:var(--ink-2);letter-spacing:.02em}
.aw-list{list-style:none;margin:6px 0 4px;padding:0;display:grid;gap:8px;font-size:var(--text-sm);line-height:1.4}
.aw-list li{display:flex;align-items:center;gap:12px;min-height:24px}
.aw-list li:not(.has-file)::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--gold, #beaf87);flex:none;margin:0 4px 0 2px}
.aw-file{flex:none;display:inline-flex;align-items:center;gap:6px;border-radius:6px;overflow:hidden;text-decoration:none;color:var(--ink-2)}
.aw-file img{width:72px;height:54px;object-fit:cover;display:block;border:1px solid var(--line);border-radius:6px}
.aw-file:hover img{outline:2px solid var(--gold, #beaf87);outline-offset:1px}
.aw-pdf{border:1px solid var(--line);padding:6px 10px;font-size:var(--text-xs);font-weight:600;width:auto}
.aw-pdf svg,.aw-pdf i{width:16px;height:16px}

/* 1.18 billing export */
.bill-sum{display:grid;gap:6px;min-height:64px;align-content:center}
.bill-sum__n{display:flex;align-items:baseline;gap:8px}
.bill-sum .warn svg{width:14px;height:14px;vertical-align:-2px;margin-right:4px}

/* ---------- Fusion Store (1.19) ---------- */
.nav-a .count[hidden] { display: none; }
.store-note { display: flex; gap: 10px; align-items: flex-start; margin-bottom: var(--s5); }
.store-note svg { flex: none; margin-top: 2px; }
.prods { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.prod { padding: var(--s4); gap: 8px; }
.prod h3 { font-size: var(--text-md, 16px); line-height: 1.3; }
.prod p { font-size: 13px; color: var(--ink-2, var(--muted)); line-height: 1.45; flex: 1; }
.prod__img { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-md, 12px); overflow: hidden; background: linear-gradient(140deg, var(--surface-3), var(--surface-2, var(--surface-3))); display: grid; place-items: center; margin-bottom: 4px; }
.prod__img img { width: 100%; height: 100%; object-fit: cover; }
.prod__ic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--gold, #b38f2d); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.prod__ic svg { width: 30px; height: 30px; }
.prod__tags { position: absolute; top: 8px; left: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.prod__badge { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.prod__sample { background: var(--surface); }
.prod__opt { margin: 0; }
.prod__opt label { font-size: 12px; }
.prod__opt .input { height: 36px; padding-top: 0; padding-bottom: 0; }
.prod .tile__foot { margin-top: auto; flex-wrap: wrap; row-gap: 8px; }
.prod .tile__foot .price { min-width: 0; max-width: 100%; }
.prod .tile__foot .price--long b { font-size: 15px; letter-spacing: -0.01em; white-space: nowrap; }
.prod .tile__foot .btn { margin-left: auto; flex-shrink: 0; }
.cart-line .prod__mini { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-3); overflow: hidden; flex: none; }
.cart-line .prod__mini img { width: 100%; height: 100%; object-fit: cover; }
.qty { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; border: 1px solid var(--line); border-radius: var(--r-full); padding: 2px; width: max-content; }
.qty button { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: transparent; border: 0; color: var(--ink); cursor: pointer; }
.qty button:hover:not(:disabled) { background: var(--surface-3); }
.qty button:disabled { opacity: .35; cursor: default; }
.qty button svg { width: 14px; height: 14px; }
.qty b { min-width: 22px; text-align: center; font-size: 13px; }

/* ---------- Room Booking (1.20) ---------- */
.rm-bar { display: flex; align-items: center; gap: var(--s4); padding: var(--s3) var(--s4); margin-bottom: var(--s4); flex-wrap: wrap; }
.rm-date { font-size: var(--text-lg); font-weight: 750; flex: 1; display: flex; align-items: center; gap: 8px; }
.rm-pick .input { height: 38px; width: auto; }
.rg-wrap { padding: 0; overflow: auto; max-height: min(72vh, 820px); }
.rg { --rh: 28px; --tw: 64px; min-width: calc(var(--tw) + var(--cols) * 150px); }
.rg__h { display: grid; grid-template-columns: var(--tw) repeat(var(--cols), minmax(150px, 1fr)); position: sticky; top: 0; z-index: 4; background: var(--surface); border-bottom: 1px solid var(--line); }
.rg__corner { position: sticky; left: 0; background: var(--surface); }
.rg__room { padding: 12px 10px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rg__room b { font-size: 14px; }
.rg__room span { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rg__b { display: grid; grid-template-columns: var(--tw) repeat(var(--cols), minmax(150px, 1fr)); user-select: none; -webkit-user-select: none; }
.rg__times { display: grid; position: sticky; left: 0; z-index: 3; background: var(--surface); }
.rg__times span { font-size: 11px; color: var(--muted); text-align: right; padding-right: 8px; transform: translateY(-7px); }
.rg__times span:first-child { transform: none; padding-top: 2px; }
.rg__col { display: grid; position: relative; border-left: 1px solid var(--line); }
.rg__slot { grid-column: 1; border: 0; border-top: 1px dashed color-mix(in srgb, var(--line) 70%, transparent); background: transparent; cursor: pointer; padding: 0; min-height: 0; }
.rg__slot.is-hour { border-top: 1px solid var(--line); }
.rg__slot:hover:not(:disabled) { background: var(--gold-soft); }
.rg__slot:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.rg__slot:disabled { cursor: default; background: repeating-linear-gradient(135deg, transparent 0 6px, color-mix(in srgb, var(--line) 45%, transparent) 6px 7px); }
.rg__bk { grid-column: 1; z-index: 2; margin: 1px 4px; border-radius: 8px; border: 1px solid var(--line); border-left: 4px solid var(--ink-2); background: var(--surface-3); color: var(--ink); text-align: left; padding: 4px 8px; overflow: hidden; display: flex; flex-direction: column; gap: 1px; cursor: pointer; min-height: 0; }
.rg__bk b { font-size: 12.5px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rg__bk span { font-size: 11px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rg__bk.is-mine { background: var(--gold-soft); border-color: color-mix(in srgb, var(--gold) 50%, transparent); border-left-color: var(--gold); }
.rg__bk.is-short { flex-direction: row; align-items: center; gap: 6px; padding-top: 2px; padding-bottom: 2px; }
.rg__bk:hover { filter: brightness(.97); }
.rg__sel { grid-column: 1; z-index: 2; margin: 1px 4px; border-radius: 8px; background: color-mix(in srgb, var(--gold) 22%, transparent); border: 2px solid var(--gold); pointer-events: none; padding: 3px 8px; }
.rg__sel span { font-size: 11.5px; font-weight: 700; color: var(--gold-ink); }
.rg__now { position: absolute; left: 0; right: 0; height: 0; border-top: 2px solid #d04a3a; z-index: 3; pointer-events: none; }
.rg__now::before { content: ""; position: absolute; left: -5px; top: -6px; width: 10px; height: 10px; border-radius: 50%; background: #d04a3a; }
.rm-rules { display: flex; align-items: center; gap: 6px; margin-top: var(--s3); }
.rm-rules svg { width: 14px; height: 14px; }
.rm-mine .row { flex: none; }
/* Marketing equipment (1.23) */
.eq__item { display: flex; flex-direction: column; gap: 10px; }
.eq__item + .eq__item { border-top: 1px solid var(--line); padding-top: var(--s4); }
.eq__name { display: flex; align-items: center; gap: 10px; }
.eq__name > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.eq__name > div > b { font-size: 15px; }
.eq__strip { display: grid; grid-template-columns: repeat(14, minmax(46px, 1fr)); gap: 4px; overflow-x: auto; padding-bottom: 2px; }
.eq__d { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); cursor: pointer; min-width: 0; }
.eq__d span { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .02em; }
.eq__d b { font-size: 15px; line-height: 1.2; }
.eq__d i { font-style: normal; font-size: 10.5px; min-height: 13px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.eq__d:hover:not(:disabled) { background: var(--gold-soft); }
.eq__d:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.eq__d.is-today { border-color: var(--gold); }
.eq__d.is-out { background: var(--surface-3); border-left: 3px solid var(--ink-2); }
.eq__d.is-part { background: repeating-linear-gradient(135deg, transparent 0 6px, color-mix(in srgb, var(--gold) 18%, transparent) 6px 8px); }
.eq__d.is-mine { background: var(--gold-soft); border-color: color-mix(in srgb, var(--gold) 50%, transparent); border-left: 3px solid var(--gold); }
.eq__d.is-past, .eq__d:disabled { opacity: .5; cursor: default; }
.eq__list { display: flex; flex-wrap: wrap; gap: 6px; }
.eq__bk { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); border-left: 3px solid var(--ink-2); background: var(--surface-3); color: var(--ink); cursor: pointer; text-align: left; max-width: 100%; }
.eq__bk b { font-size: 12.5px; }
.eq__bk span { font-size: 11.5px; color: var(--ink-2); }
.eq__bk.is-mine { background: var(--gold-soft); border-left-color: var(--gold); }
.eq__d.is-pending, .eq__bk.is-pending { background-image: repeating-linear-gradient(135deg, transparent 0 6px, color-mix(in srgb, var(--gold) 18%, transparent) 6px 12px); border-left-style: dashed; }
#equipment .card__h { flex-wrap: wrap; gap: 8px; }
@media (max-width: 720px) { .rg { --tw: 52px; } .rm-date { order: 3; flex-basis: 100%; font-size: var(--text-md, 16px); } .rm-mine { flex-wrap: wrap; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Surveys (1.22) ---------- */
.sv-wrap { max-width: 760px; }
.sv-h { font-size: var(--text-lg); font-weight: 750; display: flex; align-items: center; gap: 8px; }
.sv-h .count, .sv-banner .count { font-size: 11px; }
.sv-n { flex: none; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: var(--surface-3); font-size: 12px; font-weight: 750; color: var(--ink-2); margin-right: 8px; }
.sv-card { display: flex; align-items: center; gap: var(--s4); padding: var(--s4) var(--s5); text-decoration: none; color: inherit; transition: border-color .15s; }
.sv-card:hover { border-color: var(--gold); }
.sv-card > div { flex: 1; min-width: 0; }
.sv-card b { display: block; font-size: var(--text-base); }
.sv-card span:not(.btn):not(.ic) { font-size: var(--text-xs); color: var(--muted); }
.sv-card .ic, .sv-li .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-ink); flex: none; }
.sv-li { text-decoration: none; color: inherit; align-items: center; }
.sv-li .ic { width: 32px; height: 32px; background: var(--surface-3); color: var(--ink-2); }
.sv-banner { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-bottom: var(--s5); }
.sv-banner > span:first-of-type { flex: 1; }
.sv-form legend { display: flex; align-items: flex-start; font-weight: 700; font-size: var(--text-base); margin-bottom: 10px; padding: 0; }
.sv-qa { border: 0; padding: 0 0 var(--s4); margin: 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.sv-req { margin-left: 8px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--gold-ink); background: var(--gold-soft); padding: 2px 7px; border-radius: var(--r-full); white-space: nowrap; align-self: center; }
.sv-opts { display: grid; gap: 6px; }
.sv-opt { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r-md); cursor: pointer; font-size: var(--text-sm); background: var(--surface); }
.sv-opt input { width: 18px; height: 18px; accent-color: var(--gold); flex: none; }
.sv-opt:has(input:checked) { border-color: var(--gold); background: var(--gold-soft); }
.sv-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.sv-pill { position: relative; cursor: pointer; }
.sv-pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.sv-pill span { display: grid; place-items: center; min-width: 72px; padding: 9px 14px; border: 1px solid var(--line-2); border-radius: var(--r-md); font-weight: 650; font-size: var(--text-sm); background: var(--surface); }
.sv-pill input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.sv-pill input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.sv-rate .sv-pill span { min-width: 84px; line-height: 1.2; }
.sv-rate b { font-size: 18px; font-family: var(--font-display); }
.sv-rate small { font-size: 11px; font-weight: 500; opacity: .75; }
.sv-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 200px 110px; gap: var(--s4); align-items: center; padding: var(--s4) var(--s5); text-align: left; width: 100%; color: inherit; transition: border-color .15s; }
.sv-row:hover { border-color: var(--ink-2); }
.sv-row__t b { display: block; font-size: var(--text-base); }
.sv-row__n { display: grid; gap: 6px; }
.sv-row__c { text-align: right; }
.sv-track { display: block; height: 8px; border-radius: var(--r-full); background: var(--surface-3); overflow: hidden; }
.sv-track i { display: block; height: 100%; background: var(--gold); border-radius: inherit; min-width: 2px; }
.sv-tpls { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--s3); }
.sv-tpl { display: grid; gap: 4px; text-align: left; padding: var(--s4); border: 1px dashed var(--line-2); border-radius: var(--r-md); background: transparent; color: inherit; }
.sv-tpl:hover { border-color: var(--gold); border-style: solid; }
.sv-q { display: grid; gap: var(--s3); }
.sv-q--ro { gap: 0; }
.sv-sticky { position: sticky; bottom: 0; padding: var(--s3) 0; background: linear-gradient(to top, var(--bg) 70%, transparent); z-index: 2; }
.sv-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s5); align-items: start; }
.sv-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: var(--s4); }
.sv-qh { display: flex; align-items: flex-start; font-size: var(--text-base) !important; }
.sv-bar { display: grid; grid-template-columns: minmax(90px, 38%) 1fr 74px; gap: 12px; align-items: center; padding: 6px 0; font-size: var(--text-sm); }
.sv-bar__n { text-align: right; white-space: nowrap; }
.sv-avg { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.sv-avg b { font-family: var(--font-display); font-size: 32px; font-weight: 800; }
.sv-texts { display: grid; gap: 8px; max-height: 420px; overflow: auto; }
.sv-text { padding: 10px 12px; border-radius: var(--r-md); background: var(--surface-2, var(--surface-3)); }
.sv-text p { font-size: var(--text-sm); margin: 0 0 2px; }
.sv-who { display: grid; gap: 2px; max-height: 420px; overflow: auto; }
.sv-who__r { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.sv-who__r:last-child { border-bottom: 0; }
.sv-who__r svg { width: 13px; height: 13px; vertical-align: -2px; }
.sv-sms { font-size: var(--text-sm); padding: 12px 14px; border-radius: 16px 16px 16px 4px; background: var(--surface-3); max-width: 420px; word-break: break-word; }
@media (max-width: 900px) {
  .sv-grid { grid-template-columns: 1fr; }
  .sv-row { grid-template-columns: 1fr auto; }
  .sv-row__n, .sv-row__c { grid-column: 1 / -1; text-align: left; }
}
@media (max-width: 560px) {
  .sv-card { flex-wrap: wrap; }
  .sv-rate .sv-pill span { min-width: 56px; padding: 8px 10px; }
  .sv-rate small { display: none; }
  .sv-bar { grid-template-columns: 1fr 64px; }
  .sv-bar .sv-track { grid-column: 1 / -1; grid-row: 2; }
}

/* Add-on modules (AgentCast and others) */
.addon-home { display: flex; align-items: center; gap: var(--s4, 16px); flex-wrap: wrap; padding: 18px 20px; }
.addon-home > div { flex: 1 1 260px; min-width: 0; }
.addon-home h2 { margin: 0 0 4px; font-size: 1.05rem; }
.addon-home p { margin: 0; }
.addon-home .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-soft, #f4ecd8); color: var(--gold-ink, #7a5c12); flex: none; }

/* 1.25.0 Marketing desk and AI tasks */
.stat--btn.is-on { border-color: var(--st-prop, var(--line-2)); box-shadow: var(--shadow-md); }
.mk-card { border-left: 3px solid var(--st-prop, var(--line-2)); }
.ai-result { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; max-height: 70vh; overflow: auto; }
.adm-table td.stop .btn { white-space: nowrap; }

/* 1.26.12: View as agent banner */
.switchbar { position: fixed; z-index: 60; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 24px); padding: 8px 8px 8px 16px; border-radius: 999px; background: #1a1a1a; color: #fff; border: 2px solid #beaf87; box-shadow: 0 10px 30px rgba(0,0,0,.28); font-size: 14px; }
.switchbar > svg { color: #beaf87; flex: none; }
.switchbar span { min-width: 0; }
.switchbar b { color: #e6d9b3; }
.switchbar .btn { flex: none; white-space: nowrap; background: #beaf87; border-color: #beaf87; color: #111; }
.switchbar .btn:hover { background: #e6d9b3; border-color: #e6d9b3; color: #111; }
@media (max-width: 860px) { .switchbar { left: 12px; right: 12px; transform: none; max-width: none; bottom: calc(78px + env(safe-area-inset-bottom)); border-radius: 14px; font-size: 13px; flex-wrap: wrap; justify-content: center; text-align: center; padding: 10px 12px; } }

/* 1.27.0: Realtor Open House E-Blast builder and desk card */
.eb-modal { width: min(1180px, 100%); }
.eb-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: var(--s6); align-items: start; }
.eb-step { border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s5); display: flex; flex-direction: column; gap: var(--s3); }
.eb-step__h { display: flex; gap: var(--s3); align-items: flex-start; }
.eb-step__h h3 { font-size: var(--text-lg); margin: 0; }
.eb-n { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #252526; color: #BEAF87; font-weight: 800; font-size: 13px; }
.eb-tools { gap: var(--s3); flex-wrap: wrap; justify-content: space-between; }
/* 1.53.8: Requesting for picker on the open house form */
#ohForWrap:empty { display: none; }
#ohForWrap .field { gap: 4px; }
@media (max-width: 640px) { .eb-tools:has(#ohFor) > * { flex: 1 1 100%; } .eb-tools:has(#ohFor) .find-sm, #ohFor { width: 100%; } }
.eb-list { max-height: 300px; overflow: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
.eb-list__row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: var(--s3); align-items: center; width: 100%; padding: 8px 10px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; color: inherit; font: inherit; }
.eb-list__row:last-child { border-bottom: 0; }
.eb-list__row:hover { background: var(--surface-2); }
.eb-list__row.is-on { background: color-mix(in srgb, #BEAF87 22%, transparent); box-shadow: inset 3px 0 0 #BEAF87; }
.eb-list__row img, .eb-list__ph { width: 64px; height: 46px; object-fit: cover; border-radius: 6px; background: var(--surface-3); display: block; }
.eb-list__t { display: flex; flex-direction: column; min-width: 0; }
.eb-list__t b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 560px) { .eb-list__row { grid-template-columns: 52px minmax(0, 1fr); } .eb-list__row img, .eb-list__ph { width: 52px; height: 40px; } .eb-list__t b { white-space: normal; } .eb-list__p { grid-column: 2; flex-direction: row; align-items: center; gap: 6px; } }
.eb-list__p { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.eb-manual { padding-top: var(--s2); }
.eb-tpls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
.eb-tpl { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: var(--s3); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); cursor: pointer; color: inherit; font: inherit; }
.eb-tpl.is-on { border-color: #BEAF87; box-shadow: 0 0 0 2px #BEAF87; }
.eb-sw { display: grid; grid-template-rows: 10px 26px 8px; gap: 3px; border-radius: 6px; overflow: hidden; padding: 5px; margin-bottom: 4px; }
.eb-sw i { display: block; border-radius: 2px; }
.eb-sw--classic { background: #fff; border: 1px solid #e7e2d6; } .eb-sw--classic i:nth-child(1) { background: #252526; } .eb-sw--classic i:nth-child(2) { background: #b9b2a2; } .eb-sw--classic i:nth-child(3) { background: #BEAF87; }
.eb-sw--datecard { background: #fff; border: 1px solid #e7e2d6; } .eb-sw--datecard i:nth-child(1) { background: #252526; } .eb-sw--datecard i:nth-child(2) { background: linear-gradient(90deg, #BEAF87 0 30%, #fff 30% 34%, #e9e4d8 34%); } .eb-sw--datecard i:nth-child(3) { background: #d8d2c4; }
.eb-sw--showcase { background: #1a1a1b; } .eb-sw--showcase i:nth-child(1) { background: #252526; } .eb-sw--showcase i:nth-child(2) { background: #6d6a63; } .eb-sw--showcase i:nth-child(3) { background: #BEAF87; }
.eb-aud { display: flex; flex-direction: column; gap: var(--s2); }
.eb-opt { display: flex; gap: var(--s3); align-items: center; padding: var(--s3); border: 1px solid var(--line); border-radius: var(--r-md); cursor: pointer; }
.eb-opt > span { display: flex; flex-direction: column; }
.eb-opt.is-on { border-color: #BEAF87; box-shadow: 0 0 0 1px #BEAF87; }
.eb-opt.is-off { opacity: .6; cursor: not-allowed; }
.eb-pv { position: sticky; top: 0; display: flex; flex-direction: column; gap: var(--s2); }
.eb-pv__h { display: flex; justify-content: space-between; align-items: baseline; }
.eb-pv__frame { position: relative; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #efece4; height: min(72dvh, 820px); }
.eb-pv__frame iframe, .eb-full { width: 100%; height: 100%; border: 0; display: block; background: #efece4; }
.eb-full { height: min(78dvh, 900px); }
.eb-pv__empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s2); color: var(--muted); }
.eb-pv__empty[hidden], .eb-pv__frame iframe[hidden] { display: none; }
.eb-bar { height: 10px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.eb-bar span { display: block; height: 100%; background: #BEAF87; transition: width .4s; }
@media (max-width: 900px) {
  .eb-grid { grid-template-columns: 1fr; }
  .eb-pv { position: static; }
  .eb-pv__frame { height: 560px; }
  .eb-tpls { grid-template-columns: 1fr; }
}

/* 1.40.0: business card examples */
.bc-exs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
.bc-ex { gap: var(--s2); }
.bc-ex:focus-visible { outline: 2px solid #BEAF87; outline-offset: 2px; }
.bc-ex__frame { border-radius: var(--r-md); overflow: hidden; background: #efece4; aspect-ratio: 375 / 492; }
.bc-ex__frame iframe { width: 100%; height: 100%; border: 0; display: block; pointer-events: none; background: #efece4; }
.bc-ex .tag svg { width: 12px; height: 12px; }
@media (max-width: 900px) { .bc-exs { grid-template-columns: 1fr; } .bc-ex__frame { max-width: 420px; } }

/* 1.29.0: team login switcher */
.teamsw { gap: 6px; max-width: 230px; }
.teamsw span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.teamsw__cur { display: flex; gap: 10px; align-items: center; padding: 9px 10px; font-size: var(--text-sm); }
.teamsw__cur svg:last-child { margin-left: auto; color: var(--gold, #beaf87); }
@media (max-width: 860px) { .teamsw span { max-width: 90px; } }

/* 1.30.0 My Templates */
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: var(--s4); }
.tpl-card { display: flex; flex-direction: column; overflow: hidden; }
.tpl-card__b { display: flex; flex-direction: column; gap: 8px; padding: var(--s4); flex: 1; }
.tpl-name { font-size: var(--text-md, 16px); font-weight: 750; margin: 2px 0 0; line-height: 1.25; overflow-wrap: anywhere; }
.tpl-thumb { display: block; aspect-ratio: 4 / 3; background: var(--surface-3); overflow: hidden; border-bottom: 1px solid var(--line); }
.tpl-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.tpl-thumb--icon { display: grid; place-items: center; align-content: center; gap: 4px; color: var(--ink-2); text-decoration: none; }
.tpl-thumb--icon svg { width: 34px; height: 34px; }
.tpl-files { display: flex; flex-direction: column; gap: 4px; }
.tpl-files a { display: inline-flex; align-items: center; gap: 6px; overflow-wrap: anywhere; }
.tpl-files svg { width: 14px; height: 14px; flex: none; }
.tpl-note { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; background: var(--surface-2, #f7f4ec); border: 1px solid var(--line); font-size: 13px; line-height: 1.4; }
.tpl-note svg { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--gold-ink, #7a5c1e); }
.tpl-quote { padding: 8px 12px; border-left: 3px solid var(--gold); background: var(--surface-2, #f7f4ec); border-radius: 0 8px 8px 0; white-space: pre-line; }
.tpl-keep { display: flex; flex-direction: column; gap: 4px; margin-bottom: 6px; }
.tpl-keep .is-off { text-decoration: line-through; color: var(--muted); }
.tpl-rev { display: grid; grid-template-columns: 260px 1fr; overflow: hidden; }
.tpl-rev .tpl-thumb--big { aspect-ratio: auto; min-height: 220px; height: 100%; border-bottom: 0; border-right: 1px solid var(--line); }
.tpl-rev__b { padding: var(--s5); min-width: 0; }
.tpl-rev.is-focus { border-color: var(--gold); box-shadow: 0 0 0 2px color-mix(in srgb, var(--gold) 30%, transparent); }
.tpl-rev details summary { cursor: pointer; }
@media (max-width: 720px) { .tpl-rev { grid-template-columns: 1fr; } .tpl-rev .tpl-thumb--big { min-height: 200px; border-right: 0; border-bottom: 1px solid var(--line); } }

/* 1.31.0: Feature sheet builder */
.fs-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.fs-chips .chip { height: 28px; padding: 0 11px; font-size: 12px; }
.fs-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.fs-ph { position: relative; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: var(--surface-3); cursor: pointer; aspect-ratio: 4 / 3; }
.fs-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fs-ph.is-on { border-color: #BEAF87; }
.fs-ph:not(.is-on) img { opacity: .55; }
.fs-ph__n { position: absolute; top: 4px; left: 4px; width: 22px; height: 22px; border-radius: 50%; background: #252526; color: #BEAF87; font-weight: 800; font-size: 12px; display: grid; place-items: center; }
.fs-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.fs-legend b { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #252526; color: #BEAF87; font-size: 10px; margin-right: 3px; }
.fs-sw { display: grid; grid-template-columns: 1fr 1.6fr; grid-template-rows: 18px 18px; gap: 3px; padding: 5px; border-radius: 6px; background: #fff; border: 1px solid #e7e2d6; margin-bottom: 4px; }
.fs-sw i { display: block; border-radius: 2px; }
.fs-sw--imagine i:nth-child(1) { grid-column: 1 / 3; background: #6f7a8a; }
.fs-sw--imagine i:nth-child(2) { background: #BEAF87; }
.fs-sw--imagine i:nth-child(3) { background: linear-gradient(90deg, #d8d3c8 0 48%, #fff 48% 52%, #c9c2b3 52%); }

.fs-sw--showcase i:nth-child(1) { grid-column: 1 / 3; background: #6f7a8a; }
.fs-sw--showcase i:nth-child(2), .fs-sw--showcase i:nth-child(3) { background: #252526; box-shadow: inset 0 -4px 0 #BEAF87; }
.fs-sw--classic { outline: 2px solid #BEAF87; outline-offset: -4px; }
.fs-sw--classic i:nth-child(1) { grid-column: 1 / 3; background: #8a8f99; margin: 0 8px; }
.fs-sw--classic i:nth-child(2), .fs-sw--classic i:nth-child(3) { background: #d8d3c8; }
.fs-sw--split { grid-template-rows: 18px 18px; }
.fs-sw--split i:nth-child(1) { grid-row: 1 / 3; background: #252526; box-shadow: inset 0 -6px 0 -3px #BEAF87; }
.fs-sw--split i:nth-child(2) { background: #6f7a8a; }
.fs-sw--split i:nth-child(3) { background: #9aa2ad; }
.fs-sw--cover i:nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 3; background: linear-gradient(180deg, #8794a5 0 45%, #252526 100%); position: relative; }
.fs-sw--cover i:nth-child(2), .fs-sw--cover i:nth-child(3) { display: none; }
.fs-sw--minimal i:nth-child(1) { grid-column: 1 / 3; background: #aab1ba; }
.fs-sw--minimal i:nth-child(2), .fs-sw--minimal i:nth-child(3) { background: #fff; border-top: 2px solid #252526; border-bottom: 1px solid #BEAF87; }
.fs-kinds { flex-wrap: wrap; }
.fs-kinds button { flex: 1 1 auto; white-space: nowrap; }

/* 1.34.0: Social post builder */
.sp-types { flex-wrap: wrap; height: auto; }
.sp-types button { flex: 1 1 auto; }
.sp-designs .eb-tpl { gap: 3px; }
.sp-sw { width: 100%; max-width: 120px; aspect-ratio: 1; border-radius: 6px; border: 1px solid #e7e2d6; display: block; margin-bottom: 4px; }
.sp-pv { position: relative; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #efece4; aspect-ratio: 1; width: 100%; display: block; padding: 0; }
.sp-pv > svg { width: 100%; height: 100%; display: block; }
.sp-pv .eb-pv__empty { position: absolute; inset: 0; }
.sp-pv--sm { cursor: zoom-in; max-width: 260px; }
.sp-desk { display: grid; grid-template-columns: minmax(160px, 260px) 1fr; gap: var(--s4); align-items: start; }
.sp-view { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--s5); align-items: start; }
.sp-cap { white-space: pre-wrap; font: inherit; font-size: 13px; line-height: 1.5; margin: 0; padding: var(--s3); background: var(--surface-2, #f6f4ef); border: 1px solid var(--line); border-radius: var(--r-md); max-height: 220px; overflow: auto; }
.sp-modal .fs-photos .fs-ph__n svg { width: 14px; height: 14px; }
@media (max-width: 760px) { .sp-desk, .sp-view { grid-template-columns: 1fr; } }

/* 1.46.0: Fill out online, the real PDF in a viewer */
.etf-pdf { width: min(1000px, 100%); height: 92dvh; max-height: 92dvh; }
.etf-pdf__b { position: relative; flex: 1 1 auto; min-height: 0; background: #e9e9ec; }
.etf-pdf__view { position: absolute; inset: 0; overflow: auto; }
.etf-pdf__view .pdfViewer .page { margin: 12px auto; box-shadow: 0 2px 10px rgba(0,0,0,.15); border: 0; }
.etf-pdf__load { position: absolute; top: 40%; left: 0; right: 0; text-align: center; }
.etf-pdf__f { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.etf-pdf__f[hidden] { display: none; }
@media (max-width: 640px) { .etf-pdf { height: 100dvh; max-height: 100dvh; border-radius: 0; } }
/* 1.48.0: office contact cards */
.office__b { min-width: 0; flex: 1; display: grid; gap: 2px; }
.office__hours { display: flex; gap: 6px; align-items: flex-start; color: var(--ink-2, inherit); margin-top: 4px; }
.office__hours svg, .office__hours i { width: 14px; height: 14px; flex: none; margin-top: 2px; }
.office__share { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

/* 1.49.0: Lawyer's Corner editor page (templates/lawyers.php) */
.lc-body { background: var(--bg); color: var(--ink); }
.lc-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: 12px var(--s8); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.lc-brand { display: grid; line-height: 1.15; }
.lc-brand b { font-family: "Cabinet Grotesk", system-ui, sans-serif; font-weight: 800; font-size: 16px; }
.lc-brand span { font-size: 12px; color: var(--gold-ink); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.lc-who { display: flex; align-items: center; gap: var(--s2); }
.lc-main { max-width: 980px; margin: 0 auto; padding: var(--s6) var(--s8) var(--s12); }
.lc-main .link { background: none; border: 0; padding: 0; cursor: pointer; margin-bottom: var(--s3); }
.lc-note { display: flex; gap: 10px; align-items: flex-start; margin-bottom: var(--s4); background: var(--gold-soft); border-color: transparent; }
.lc-note svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.lc-tabs { margin-bottom: var(--s4); }
.lc-search { margin-bottom: var(--s4); max-width: 420px; }
.lc-list { overflow: hidden; }
.lc-row { display: flex; gap: var(--s4); align-items: center; justify-content: space-between; padding: 14px var(--s5); border-top: 1px solid var(--line); }
.lc-row:first-child { border-top: 0; }
.lc-row__t { display: grid; gap: 4px; min-width: 0; }
.lc-row__r { display: flex; gap: var(--s2); align-items: center; flex: none; }
.lc-detail { color: var(--ink-2, inherit); white-space: pre-line; }
.lc-pub { background: color-mix(in srgb, var(--success, #2f7d4f) 14%, transparent); color: var(--success, #2f7d4f); }
.lc-wait { background: var(--gold-soft); color: var(--gold-ink); }
.lc-form { gap: var(--s4); }
.lc-form textarea.input { height: auto; padding: 12px 14px; min-height: 240px; line-height: 1.55; resize: vertical; }
.lc-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); align-items: start; }
.lc-asked { border-left: 4px solid var(--gold); }
.lc-asked p { margin: 6px 0 0; }
.lc-actions { flex-wrap: wrap; }
.lc-del { margin-left: auto; color: var(--st-no, #b3261e); }
@media (max-width: 700px) {
  .lc-top, .lc-main { padding-left: var(--s4); padding-right: var(--s4); }
  .lc-2 { grid-template-columns: 1fr; }
  .lc-row { flex-direction: column; align-items: stretch; }
  .lc-row__r { justify-content: space-between; }
  .lc-del { margin-left: 0; }
}

/* 1.50.0: Open Houses */
.oh-start { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); margin-bottom: var(--s5); }
.oh-go { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s4); align-items: center; padding: var(--s4) var(--s5); text-align: left; cursor: pointer; color: inherit; font: inherit; border: 1px solid var(--line); }
.oh-go:hover { border-color: var(--gold); }
.oh-go .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-ink); }
.oh-go > span:nth-child(2) { display: flex; flex-direction: column; gap: 2px; }
.oh-go b { font-size: var(--text-lg); }
.oh-bar { justify-content: space-between; gap: var(--s3); flex-wrap: wrap; margin-bottom: var(--s4); }
.oh-bar .seg .n { opacity: .6; margin-left: 4px; }
.oh-bar .seg .count { margin-left: 6px; }
.oh-list { gap: var(--s4); }
.oh-p { padding: var(--s5); display: flex; flex-direction: column; gap: var(--s3); }
.oh-p.is-done { opacity: .78; }
.oh-p.is-flash { animation: faqflash 1.6s ease; }
.oh-p__h .tag { margin: 0 6px 6px 0; display: inline-flex; gap: 4px; align-items: center; }
.oh-p__h .tag svg { width: 13px; height: 13px; }
.oh-p__h h3 { font-size: var(--text-lg); margin: 2px 0 4px; }
.oh-p__n { margin: 0; padding: var(--s3); border-radius: var(--r-md); background: var(--surface-2); white-space: pre-line; }
.oh-ls { display: grid; gap: var(--s2); }
.oh-l { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: var(--s3); align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: var(--r-md); }
.oh-l img, .oh-l__ph { width: 84px; height: 60px; object-fit: cover; border-radius: 8px; background: var(--surface-3); display: grid; place-items: center; color: var(--muted); }
.oh-l--sm { grid-template-columns: 56px minmax(0, 1fr) auto; }
.oh-l--sm img, .oh-l--sm .oh-l__ph { width: 56px; height: 42px; }
.oh-l__t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.oh-l__t a { color: inherit; }
.oh-l__when { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-2, var(--ink)); }
.oh-l__when svg { width: 13px; height: 13px; }
.oh-l__a .tag { display: inline-flex; gap: 4px; align-items: center; }
.oh-l__a .tag svg { width: 13px; height: 13px; }
.oh-kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); margin: 0; }
.oh-kv dt { font-size: var(--text-xs); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.oh-kv dd { margin: 2px 0 0; }
.oh-p__f { gap: var(--s2); flex-wrap: wrap; align-items: center; }
.oh-p__f .xs svg { width: 13px; height: 13px; vertical-align: -2px; margin-right: 3px; }
.oh-p__sp { flex: 1; }
.oh-p__f .tag { display: inline-flex; gap: 4px; align-items: center; }
.oh-p__resp { border-top: 1px solid var(--line); padding-top: var(--s3); display: grid; gap: var(--s3); }
.oh-p__rh { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); flex-wrap: wrap; }
.oh-p__rh h4 { margin: 0; font-size: var(--text-base); }
.oh-r { border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s3); display: grid; gap: 6px; }
.oh-r__h { display: flex; gap: var(--s2); align-items: baseline; flex-wrap: wrap; }
.oh-r__c { display: flex; gap: var(--s4); flex-wrap: wrap; }
.oh-r__c a { display: inline-flex; gap: 5px; align-items: center; color: inherit; }
.oh-r__c svg { width: 13px; height: 13px; }
.oh-r__n { margin: 0; color: var(--muted); white-space: pre-line; }
.oh-r__p { display: flex; gap: var(--s2); flex-wrap: wrap; }
.oh-r__p .oh-l { flex: 1 1 100%; }
.oh-form { max-width: 820px; gap: var(--s4); }
.oh-h2 { font-size: var(--text-lg); margin: 0; }
.oh-when { display: grid; gap: 6px; padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.oh-when:last-of-type { border-bottom: 0; }
.oh-when__f { display: flex; gap: var(--s2); align-items: center; flex-wrap: wrap; }
.oh-when__f input[type="date"] { width: 170px; }
.oh-when__f input[type="time"] { width: 150px; }
.oh-offices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
.oh-office { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: var(--s3); border: 1px solid var(--line); border-radius: var(--r-md); cursor: pointer; }
.oh-office input { grid-row: span 2; width: 18px; height: 18px; accent-color: var(--gold); }
.oh-office.is-on { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); background: color-mix(in srgb, var(--gold) 8%, transparent); }
.oh-actions { justify-content: flex-end; gap: var(--s2); }
@media (max-width: 700px) {
  .oh-start, .oh-offices, .oh-kv { grid-template-columns: 1fr; }
  .oh-p { padding: var(--s4); }
  .oh-l { grid-template-columns: 64px minmax(0, 1fr); }
  .oh-l img, .oh-l__ph { width: 64px; height: 48px; }
  .oh-l__a { grid-column: 1 / -1; }
  .oh-l__a .btn { width: 100%; justify-content: center; }
}

/* 1.50.0: Request a Feature */
.fr-form { gap: var(--s4); }
.fr-level { border: 0; padding: 0; margin: 0; }
.fr-level legend { font-weight: 700; font-size: var(--text-sm); margin-bottom: 8px; padding: 0; }
.fr-level .chip { cursor: pointer; }
.fr-level .chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fr-level .chip:focus-within { outline: 2px solid var(--gold); outline-offset: 2px; }
.fr-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-ink); }

/* 1.50.0: audio answers in Broker's Corner and Legal Q & A */
.faq-audio { display: flex; gap: var(--s3); align-items: center; padding: var(--s3); margin-bottom: var(--s3); border-radius: 12px; background: var(--gold-soft); color: var(--gold-ink); }
.faq-audio > div { flex: 1; min-width: 0; display: grid; gap: 4px; }
.faq-audio .muted { color: var(--gold-ink); }
.faq-audio audio, .lc-audio + audio { width: 100%; height: 40px; }
.lc-audio { display: flex; gap: 8px; align-items: center; }
.lc-audio .input { flex: 1; min-width: 0; }
.lc-audio + audio { margin-top: 8px; }

/* 1.51.0: View as an agent picker */
.va-modal { width: min(560px, 100%); }
.va-modal .modal__b { display: grid; gap: var(--s3); }
.va-list { display: grid; gap: 2px; max-height: min(56vh, 520px); overflow: auto; margin: 0 calc(var(--s2) * -1); }
.va-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px var(--s2); border: 0; border-radius: 12px; background: none; color: inherit; text-align: left; cursor: pointer; font: inherit; }
.va-row > span:nth-child(2) { flex: 1; min-width: 0; display: grid; }
.va-row > span:nth-child(2) .xs { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.va-row > svg { color: var(--muted, #8a8577); flex: none; }
.va-row:hover, .va-row:focus-visible { background: var(--gold-soft); }
.va-row.is-busy { opacity: .6; }
.switchbar .sw-pick { background: transparent; color: #e6d9b3; border-color: #beaf87; }
.switchbar .sw-pick:hover { background: #2a2a2a; color: #fff; border-color: #e6d9b3; }
@media (max-width: 860px) { .top__right > #viewAsBtn { display: none; } }

/* ---------- 1.53.0 Messages ---------- */
.chat { display: grid; grid-template-columns: 340px minmax(0, 1fr); height: calc(100dvh - 230px); min-height: 520px; overflow: hidden; position: relative; padding: 0; }
.ch-test { position: absolute; top: 0; left: 0; right: 0; z-index: 3; display: flex; gap: 6px; align-items: center; justify-content: center; padding: 4px 10px; background: var(--gold-soft); color: var(--gold-ink); font-weight: 600; }
.ch-test svg { width: 14px; height: 14px; }
.chat:has(.ch-test) { padding-top: 26px; }
.ch-loading { padding: var(--s6); grid-column: 1 / -1; }
.ch-pad { padding: var(--s4); }
.ch-side { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; background: var(--surface-2); }
.ch-tabs { display: flex; gap: 2px; padding: 10px 10px 0; overflow-x: auto; scrollbar-width: none; flex: none; }
.ch-tabs button { border: 0; background: transparent; padding: 8px 10px; border-radius: 8px; font-size: var(--text-xs); font-weight: 700; color: var(--muted); white-space: nowrap; cursor: pointer; }
.ch-tabs button.is-on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.ch-filters { display: flex; gap: 6px; flex-wrap: wrap; padding: 10px 12px 0; flex: none; }
.ch-filters .tag { cursor: pointer; border: 1px solid var(--line-2); }
.ch-filters .tag--gold { border-color: transparent; }
.ch-search { padding: 10px 12px; flex: none; }
.ch-search .input { height: 38px; }
.ch-list { overflow-y: auto; flex: 1; min-height: 0; padding: 0 6px 10px; }
.ch-list .empty { padding: var(--s8) var(--s4); }
.ch-row { position: relative; display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: var(--r-md); text-decoration: none; color: inherit; }
.ch-row:hover { background: var(--surface-3); }
.ch-row.is-on { background: var(--surface); box-shadow: var(--shadow-sm); outline: 1px solid var(--line); }
.ch-row.is-new b { font-weight: 800; }
.ch-row > .ch-dot { position: absolute; left: 36px; top: 34px; box-shadow: 0 0 0 2px var(--surface-2); }
.ch-row__t { display: grid; gap: 2px; min-width: 0; flex: 1; }
.ch-row__top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.ch-row__top b { font-size: var(--text-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-row__top .xs { flex: none; }
.ch-row__p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-row.is-new .ch-row__p { color: var(--ink-2); }
.ch-row__tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 2px; }
.ch-row__tags .tag, .ch-row__tags .status { font-size: 10px; padding: 2px 7px; }
.ch-row .count { flex: none; align-self: center; font-size: 11px; font-weight: 700; min-width: 20px; height: 20px; padding: 0 6px; display: grid; place-items: center; border-radius: var(--r-full); background: var(--gold); color: #17160f; }
.ch-row > svg { width: 14px; height: 14px; color: var(--muted); align-self: center; }
.ch-ic { background: var(--surface-3); color: var(--ink-2); }
.ch-ic svg { width: 17px; height: 17px; }
.ch-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--st-ok); flex: none; margin-right: 6px; vertical-align: middle; }
.ch-dot--meeting { background: var(--st-prog); }
.ch-dot--away { background: var(--muted); }
.ch-dot--slow { background: var(--st-new); }
.ch-main { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.ch-head { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); flex: none; flex-wrap: wrap; }
.ch-head__t { display: grid; min-width: 0; flex: 1; }
.ch-head__t b { font-family: var(--font-display); font-size: var(--text-lg); line-height: 1.2; }
.ch-head__a { display: flex; gap: 6px; flex-wrap: wrap; }
.ch-back { display: none; }
.ch-note { display: flex; gap: 8px; align-items: center; padding: 8px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line); color: var(--ink-2); flex: none; }
.ch-note svg { width: 15px; height: 15px; flex: none; }
.ch-note--warn { background: color-mix(in srgb, var(--st-prog) 12%, var(--surface)); }
.ch-thread { flex: 1; min-height: 0; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.ch-thread.is-ch { background: var(--surface-2); }
.ch-msg { display: flex; gap: 10px; align-items: flex-end; max-width: 78%; }
.ch-msg .avatar { width: 30px; height: 30px; font-size: 11px; }
.ch-msg.is-me { align-self: flex-end; flex-direction: row-reverse; }
.ch-msg__b { display: grid; gap: 3px; min-width: 0; }
.ch-msg.is-me .ch-msg__b { justify-items: end; }
.ch-msg__who { color: var(--ink-2); }
.ch-bub { padding: 10px 14px; border-radius: 18px 18px 18px 6px; background: var(--surface-3); font-size: var(--text-sm); overflow-wrap: anywhere; display: grid; gap: 8px; }
.ch-msg.is-me .ch-bub { background: var(--ink); color: var(--bg); border-radius: 18px 18px 6px 18px; }
[data-theme="dark"] .ch-msg.is-me .ch-bub { background: var(--gold); color: #17160f; }
.ch-msg.is-me .ch-bub a { color: inherit; }
.ch-msg.is-int .ch-bub { background: color-mix(in srgb, var(--st-prog) 16%, var(--surface)); color: var(--ink); border: 1px dashed color-mix(in srgb, var(--st-prog) 60%, transparent); }
.ch-int { display: flex; gap: 5px; align-items: center; font-weight: 700; color: var(--st-prog); }
.ch-int svg { width: 12px; height: 12px; }
.ch-msg__t { display: flex; gap: 4px; align-items: center; }
.ch-more { border: 0; background: transparent; color: var(--muted); padding: 2px 4px; border-radius: 6px; cursor: pointer; display: inline-grid; place-items: center; opacity: .6; }
.ch-more:hover { background: var(--surface-3); opacity: 1; }
.ch-more svg { width: 14px; height: 14px; }
.ch-menu { top: auto; left: auto; right: 0; min-width: 150px; }
.ch-msg__t, .ch-post__h, .ch-rep .xs { position: relative; }
.ch-sys { align-self: center; text-align: center; max-width: 80%; padding: 4px 12px; border-radius: var(--r-full); background: var(--surface-2); color: var(--ink-2); display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: center; }
.ch-sys.is-int { background: color-mix(in srgb, var(--st-prog) 10%, var(--surface)); }
.ch-sys svg { width: 12px; height: 12px; }
.ch-img img { max-width: min(280px, 100%); max-height: 260px; border-radius: 12px; display: block; }
.ch-file { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--surface); color: var(--ink); text-decoration: none; border: 1px solid var(--line); }
.ch-file span { display: grid; min-width: 0; }
.ch-file b { font-size: var(--text-xs); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-file svg { width: 16px; height: 16px; flex: none; }
.ch-post { padding: 14px 16px; display: grid; gap: 10px; }
.ch-post__h { display: flex; gap: 10px; align-items: center; }
.ch-post__h > div { flex: 1; min-width: 0; }
.ch-post__k { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: var(--text-sm); }
.ch-post__a { gap: 8px; flex-wrap: wrap; }
.ch-reps { display: grid; gap: 10px; padding: 10px 0 0 14px; border-left: 2px solid var(--line); }
.ch-rep { display: flex; gap: 8px; }
.ch-rep .avatar { width: 26px; height: 26px; font-size: 10px; }
.ch-repbtn { justify-self: start; }
.ch-repform { display: flex; gap: 8px; }
.ch-repform .input { height: 38px; }
.ch-comp { border-top: 1px solid var(--line); padding: 10px 14px 12px; display: grid; gap: 8px; flex: none; background: var(--surface); }
.ch-comp.is-int { background: color-mix(in srgb, var(--st-prog) 8%, var(--surface)); }
.ch-comp--note { text-align: center; }
.ch-comp__row { display: flex; gap: 8px; align-items: flex-end; }
.ch-comp__row textarea.input { min-height: 44px; height: 44px; max-height: 180px; padding: 11px 14px; resize: none; line-height: 1.4; }
.ch-comp__row > label.btn { cursor: pointer; flex: none; }
.ch-comp__row > .btn--primary { flex: none; }
.ch-tools { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.ch-tools select.input { height: 34px; width: auto; max-width: 260px; font-size: var(--text-xs); padding: 0 10px; }
.ch-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; }
.ch-fields .input { height: 38px; font-size: var(--text-sm); }
.ch-file-pending:empty { display: none; }
.ch-file-pending .tag button { border: 0; background: transparent; padding: 0 0 0 4px; cursor: pointer; display: inline-grid; color: inherit; }
.ch-file-pending .tag svg { width: 12px; height: 12px; }
.ch-empty { margin: auto; text-align: center; display: grid; gap: 10px; justify-items: center; padding: var(--s8); max-width: 440px; }
.ch-empty .ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-ink); }
.ch-policy { margin-top: var(--s4); }
.ch-modal { width: min(620px, 100%); }
.ch-modal .seg { flex-wrap: wrap; border-radius: 14px; }
.ch-pick { display: grid; gap: 4px; max-height: 300px; overflow-y: auto; margin-top: 8px; border: 1px solid var(--line); border-radius: var(--r-md); padding: 4px; }
.ch-pick__row { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; border: 0; background: transparent; text-align: left; cursor: pointer; width: 100%; color: inherit; font: inherit; }
.ch-pick__row:hover { background: var(--surface-2); }
.ch-pick__row.is-on { background: var(--gold-soft); }
.ch-pick__row > .avatar { flex: none; }
.ch-pick__row > .avatar + span { display: grid; flex: 1; min-width: 0; }
.ch-pick__row b { font-size: var(--text-sm); }
.ch-pick__row input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--gold); flex: none; }
.ch-st { text-align: right; flex: none; max-width: 45%; }
.ch-log { overflow-x: auto; }
.ch-log table { width: 100%; border-collapse: collapse; font-size: var(--text-xs); }
.ch-log th, .ch-log td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
@media (max-width: 960px) {
  .chat { grid-template-columns: 1fr; height: calc(100dvh - 200px); }
  .chat .ch-main { display: none; }
  .chat.has-cur .ch-side { display: none; }
  .chat.has-cur .ch-main { display: flex; }
  .ch-back { display: inline-grid; }
  .ch-msg { max-width: 90%; }
  .ch-head__a { margin-left: auto; }
}
@media (max-width: 720px) {
  .chat { height: calc(100dvh - 330px); min-height: 420px; border-radius: var(--r-md); }
  .ph:has(+ .chat.has-cur) { display: none; }
  .chat.has-cur { height: calc(100dvh - 190px); }
  .ch-comp__row > .btn--primary span { display: none; }
}

/* 1.55.0: package fees and the Agent Charges table on the PIDs, ISC, SAMA & Gas Line Locates page */
.pd-fee { display: flex; gap: 6px; align-items: flex-start; margin: 0; font-size: var(--text-xs, 12px); font-weight: 600; color: var(--gold-ink); }
.pd-fee svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 2px; }
.charges { margin-top: var(--s5); overflow: hidden; }
.charges summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--s4); padding: var(--s4) var(--s5); cursor: pointer; }
.charges summary::-webkit-details-marker { display: none; }
.charges summary > span { display: grid; gap: 2px; }
.charges summary .sub { font-size: var(--text-xs, 12px); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.charges summary svg { width: 18px; height: 18px; transition: transform .2s; flex-shrink: 0; }
.charges[open] summary svg { transform: rotate(180deg); }
.charges__b { padding: 0 var(--s5) var(--s5); border-top: 1px solid var(--line); }
.charges__b h3 { margin: var(--s4) 0 var(--s2); font-size: var(--text-sm); }
.charges__scroll { overflow-x: auto; }
.charges__t { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.charges__t th, .charges__t td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.charges__t th { font-size: var(--text-xs, 12px); color: var(--muted); font-weight: 600; }
.charges__t td:first-child { font-weight: 600; width: 30%; }
.charges__b > p { margin-top: var(--s3); }

/* 1.59.2: Outstanding NexOne Items */
.nx-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.nx-list li { display: flex; gap: 8px; align-items: flex-start; font-size: var(--text-sm, 14px); }
.nx-list li svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--st-prop); }
.nx-card .meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.nx-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px 12px; max-height: 220px; overflow-y: auto; margin-top: 8px; padding: 8px 10px; border: 1px solid var(--line, #ddd); border-radius: 8px; }
.nx-pick label[hidden] { display: none; }

/* ---------- 1.61.3 Phones: keep the page from sliding side to side ---------- */
@media (max-width: 960px) {
  html, body { overflow-x: clip; max-width: 100%; }
  .shell, .main { max-width: 100vw; overflow-x: clip; }
  .top { gap: 6px; }
  .top__right { gap: 2px; min-width: 0; }
  /* The bottom bar already has a New request button. */
  .top__right > div:has(> #newBtn) { display: none; }
}
@media (max-width: 720px) {
  /* Search turns into an icon button; it still opens the same search. */
  .top .search { flex: 0 0 40px; width: 40px; padding: 0; justify-content: center; }
  .top .search > span { display: none; }
  .top .btn--icon { width: 36px; }
  .teamsw span { max-width: 64px; }
  .seg.mode a { padding: 0 8px; }
}
@media (max-width: 380px) {
  .teamsw span { display: none; }
}
