:root {
  --ink: #0b0d0c;
  --ink-2: #121513;
  --ink-3: #1a1e1b;
  --paper: #f2f0e8;
  --paper-2: #faf9f4;
  --lime: #cbff3d;
  --lime-dark: #9cc720;
  --text: #161916;
  --muted: #70746e;
  --line: rgba(11, 13, 12, .13);
  --dark-line: rgba(255, 255, 255, .1);
  --sidebar: 268px;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; background: var(--paper); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
svg { display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1000; top: 12px; left: 12px; padding: 11px 16px; background: var(--lime); color: var(--ink); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.sidebar { position: fixed; z-index: 50; inset: 0 auto 0 0; width: var(--sidebar); display: flex; flex-direction: column; padding: 28px 20px 20px; background: var(--ink); color: #fff; }
.brand-row { display: flex; justify-content: space-between; align-items: center; padding: 0 4px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 21px; line-height: 1; font-weight: 780; letter-spacing: -.05em; }
.brand svg { width: 29px; fill: var(--lime); }
.brand svg .mark-cut, .login-brand svg .mark-cut { fill: var(--ink); }
.creator-badge { display: inline-flex; align-items: center; min-height: 23px; padding: 0 8px; border: 1px solid rgba(203, 255, 61, .35); color: var(--lime); font-size: 8px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.primary-nav { margin-top: 64px; }
.nav-label { margin: 0 13px 14px; color: rgba(255, 255, 255, .34); font-size: 9px; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; }
.primary-nav a { min-height: 48px; display: flex; align-items: center; gap: 13px; margin-bottom: 4px; padding: 0 12px; border: 1px solid transparent; color: rgba(255, 255, 255, .56); font-size: 13px; font-weight: 620; transition: background .18s, color .18s, border .18s; }
.primary-nav a:hover { color: #fff; background: rgba(255, 255, 255, .04); }
.primary-nav a.active { background: rgba(203, 255, 61, .08); border-color: rgba(203, 255, 61, .18); color: #fff; }
.nav-icon { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .5); font-size: 7px; font-weight: 800; letter-spacing: .04em; }
.primary-nav a.active .nav-icon { border-color: var(--lime); background: var(--lime); color: var(--ink); }
.sidebar-foot { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--dark-line); }
.owner-card { display: flex; gap: 11px; align-items: center; padding: 4px; }
.owner-avatar, .tenant-user { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: var(--lime); color: var(--ink); font-size: 10px; font-weight: 850; }
.owner-card > span:last-child { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.owner-card strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.owner-card small { color: rgba(255, 255, 255, .38); font-size: 9px; }
.logout-button { width: 100%; display: flex; justify-content: space-between; margin-top: 14px; padding: 12px 5px; border: 0; background: none; color: rgba(255, 255, 255, .43); font-size: 10px; }
.logout-button:hover { color: #fff; }

.main { min-height: 100vh; margin-left: var(--sidebar); padding: 48px clamp(28px, 4.2vw, 72px) 80px; }
.mobile-bar { display: none; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 38px; }
.page-head h1 { margin: 0; font-size: clamp(42px, 5vw, 68px); font-weight: 680; line-height: .96; letter-spacing: -.065em; }
.page-head > div > p:last-child { margin: 15px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; color: rgba(255, 255, 255, .5); font-size: 9px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.eyebrow span { width: 23px; height: 2px; background: var(--lime); }
.eyebrow.dark { color: #676b65; }
.eyebrow.dark span { background: var(--ink); }
.head-actions { display: flex; gap: 9px; align-items: center; }
.live-pill, .date-chip, .count-chip { min-height: 37px; display: inline-flex; align-items: center; gap: 8px; padding: 0 13px; border: 1px solid var(--line); background: rgba(255, 255, 255, .35); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.live-pill i { width: 6px; height: 6px; border-radius: 50%; background: #8ab81b; box-shadow: 0 0 0 4px rgba(138, 184, 27, .12); }
.date-chip { color: var(--muted); }
.count-chip { background: var(--ink); color: #fff; border-color: var(--ink); }
.demo-banner { display: flex; align-items: center; gap: 13px; margin: -13px 0 24px; padding: 12px 15px; border: 1px solid #d9c46c; background: #fff9d9; color: #675b27; font-size: 11px; line-height: 1.5; }
.demo-banner span { flex: 0 0 auto; padding: 5px 7px; background: #e4ce66; color: #29250d; font-size: 8px; font-weight: 850; text-transform: uppercase; letter-spacing: .09em; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); background: var(--paper-2); }
.metric-card { position: relative; min-height: 190px; padding: 26px; border-right: 1px solid var(--line); }
.metric-card:last-child { border: 0; }
.metric-card.accent { background: var(--lime); }
.metric-index { position: absolute; top: 20px; right: 20px; color: rgba(11, 13, 12, .35); font-size: 9px; font-weight: 800; }
.metric-card p { margin: 0; color: var(--muted); font-size: 10px; font-weight: 730; letter-spacing: .055em; text-transform: uppercase; }
.metric-card.accent p { color: rgba(11, 13, 12, .58); }
.metric-card strong { display: block; margin: 28px 0 9px; font-size: clamp(32px, 3vw, 46px); line-height: 1; letter-spacing: -.06em; }
.metric-card small { color: var(--muted); font-size: 9px; }
.metric-card.accent small { color: rgba(11, 13, 12, .55); }
.positive { color: #54730b !important; }
.negative, .attention { color: #a14435 !important; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .75fr); gap: 15px; margin-top: 15px; }
.dashboard-grid.lower { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panel, .table-panel { border: 1px solid var(--line); background: var(--paper-2); }
.panel { padding: 27px; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.section-label { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.panel-head h2 { margin: 7px 0 0; font-size: 23px; font-weight: 660; letter-spacing: -.045em; }
.panel-head > a, .client-foot a { padding-bottom: 4px; border-bottom: 1px solid var(--line); font-size: 9px; font-weight: 750; }
.panel-head > a span, .client-foot a span { margin-left: 16px; }
.bar-chart { height: 210px; display: flex; align-items: flex-end; gap: clamp(5px, .7vw, 11px); margin-top: 34px; padding-top: 24px; border-bottom: 1px solid var(--line); background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 44px, rgba(11, 13, 12, .055) 45px); }
.bar-column { position: relative; height: 100%; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.bar-column i { width: 100%; min-height: 4px; display: block; background: var(--ink); transition: height .3s; }
.bar-column:nth-last-child(-n+3) i { background: var(--lime-dark); }
.bar-column small { position: absolute; top: calc(100% + 8px); color: var(--muted); font-size: 7px; }
.bar-value { position: absolute; bottom: calc(var(--bar-height, 0%) + 4px); opacity: 0; font-size: 7px; }
.bar-column:hover .bar-value { opacity: 1; }
.sources-panel { background: var(--ink); color: #fff; border-color: var(--ink); }
.sources-panel .section-label { color: rgba(255, 255, 255, .38); }
.source-list { margin-top: 26px; }
.source-list > div { min-height: 58px; display: grid; grid-template-columns: 31px 1fr auto; grid-template-rows: auto auto; align-items: center; border-top: 1px solid var(--dark-line); }
.source-rank { grid-row: span 2; color: var(--lime); font-size: 8px; }
.source-list strong { font-size: 11px; }
.source-list > div > span:nth-child(3) { color: rgba(255, 255, 255, .38); font-size: 8px; }
.source-list b { grid-column: 3; color: var(--lime); font-size: 8px; font-weight: 700; }
.compact-list { margin-top: 21px; }
.compact-list article, .compact-list .client-row { min-height: 69px; display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line); }
.entity-avatar { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: var(--lime); color: var(--ink); font-size: 8px; font-style: normal; font-weight: 850; }
.dark-avatar { background: var(--ink); color: #fff; }
.compact-list article > div, .compact-list a > div { min-width: 0; display: flex; flex: 1; flex-direction: column; gap: 4px; }
.compact-list strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.compact-list small { overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.time { color: var(--muted); font-size: 8px; }
.status { display: inline-flex; width: max-content; align-items: center; gap: 6px; padding: 6px 8px; border: 1px solid var(--line); color: #565a54; font-size: 7px; font-style: normal; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }
.status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #898d87; }
.status.new, .status.strong, .status.active, .status.view { border-color: rgba(90, 128, 9, .25); background: rgba(203, 255, 61, .2); color: #4f6b10; }
.status.new::before, .status.strong::before, .status.active::before, .status.view::before { background: #79a215; }
.status.watch, .status.trial, .status.onboarding { background: #fff5cd; border-color: #dfca72; color: #7c6823; }
.status.watch::before, .status.trial::before, .status.onboarding::before { background: #c39b18; }
.status.needs_attention, .status.at_risk, .status.assist { background: #ffebe6; border-color: #e3aea2; color: #944535; }
.status.needs_attention::before, .status.at_risk::before, .status.assist::before { background: #c05b48; }
.arrow { margin-left: 3px; }
.activity-panel { margin-top: 15px; }
.timeline { display: flex; gap: 0; margin-top: 27px; }
.timeline > div { position: relative; flex: 1; padding: 17px 20px 0 0; border-top: 1px solid var(--line); }
.timeline i { position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border: 2px solid var(--paper-2); border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.timeline span { display: flex; flex-direction: column; gap: 5px; }
.timeline strong { font-size: 9px; line-height: 1.5; }
.timeline small { color: var(--muted); font-size: 7px; }
.empty-state { min-height: 120px; display: grid; place-content: center; gap: 7px; text-align: center; }
.empty-state.large { min-height: 280px; grid-column: 1 / -1; }
.empty-state strong { font-size: 13px; }
.empty-state span, .empty-row { color: var(--muted); font-size: 10px; line-height: 1.5; }

.filter-bar { display: flex; gap: 9px; margin-bottom: 15px; }
.filter-bar label:first-child { min-width: 260px; flex: 1; }
.filter-bar input, .filter-bar select, .support-form select, .support-form textarea, .login-form input { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 0; outline: none; background: var(--paper-2); color: var(--text); font-size: 11px; }
.filter-bar input:focus, .filter-bar select:focus, .support-form select:focus, .support-form textarea:focus, .login-form input:focus { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.filter-bar select { min-width: 170px; }
.filter-bar button, .filter-bar > a { min-height: 48px; display: inline-flex; align-items: center; padding: 0 19px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font-size: 9px; font-weight: 750; }
.filter-bar > a { border-color: var(--line); background: transparent; color: var(--text); }
.table-panel { overflow-x: auto; }
.data-table { min-width: 820px; }
.table-row { min-height: 76px; display: grid; align-items: center; gap: 18px; padding: 13px 21px; border-top: 1px solid var(--line); font-size: 10px; }
.inquiry-table .table-row { grid-template-columns: 1.6fr .7fr 1fr .7fr .55fr; }
.table-row.table-header { min-height: 44px; border-top: 0; background: #e9e7df; color: var(--muted); font-size: 7px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.table-row > span { min-width: 0; }
.table-row small { display: block; overflow: hidden; margin-top: 5px; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.entity-cell { display: flex; align-items: center; gap: 11px; }
.entity-cell b { min-width: 0; font-size: 10px; }
.demo-tag { display: block !important; color: #9b7920 !important; font-weight: 800; text-transform: uppercase; }
.pagination { display: flex; justify-content: space-between; align-items: center; margin-top: 15px; }
.pagination a { padding-bottom: 5px; border-bottom: 1px solid var(--line); font-size: 9px; font-weight: 750; }
.pagination small { color: var(--muted); font-size: 8px; }

.analytics-metrics { margin-bottom: 15px; }
.wide-chart { margin-bottom: 15px; }
.privacy-note { color: #597611; font-size: 8px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.bar-chart.thirty { gap: 3px; }
.bar-chart.thirty .bar-column small { white-space: nowrap; transform: rotate(-38deg); transform-origin: left top; }
.ranked-table { margin-top: 21px; }
.ranked-table > div { min-height: 48px; display: grid; grid-template-columns: 1fr repeat(3, .45fr); align-items: center; border-top: 1px solid var(--line); font-size: 9px; }
.ranked-table .ranked-head { min-height: 34px; color: var(--muted); font-size: 7px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.region-list { margin-top: 21px; }
.region-list > div { min-height: 48px; display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line); }
.region-list > div > span { color: var(--lime-dark); font-size: 8px; font-weight: 800; }
.region-list strong { flex: 1; font-size: 10px; }
.region-list b { font-size: 12px; }
.region-list small { color: var(--muted); font-size: 8px; }

.client-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.client-card { min-height: 340px; display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line); background: var(--paper-2); }
.client-card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.large-avatar { width: 47px; height: 47px; border-radius: 0; font-size: 10px; }
.client-title { margin-top: 32px; }
.client-title > span { color: var(--muted); font-size: 7px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.client-title h2 { margin: 8px 0 7px; font-size: 24px; letter-spacing: -.045em; }
.client-title p { margin: 0; color: var(--muted); font-size: 9px; }
.client-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 31px; border: solid var(--line); border-width: 1px 0; }
.client-stats div { padding: 15px 8px 15px 0; border-right: 1px solid var(--line); }
.client-stats div:not(:first-child) { padding-left: 11px; }
.client-stats div:last-child { border: 0; }
.client-stats strong, .client-stats span { display: block; }
.client-stats strong { font-size: 17px; letter-spacing: -.04em; }
.client-stats span { margin-top: 4px; color: var(--muted); font-size: 7px; }
.client-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 22px; }
.back-link { display: inline-block; margin-bottom: 29px; padding-bottom: 4px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 9px; font-weight: 700; }
.client-head { align-items: center; }
.title-with-avatar { display: flex; align-items: center; gap: 23px; }
.hero-avatar { width: 72px; height: 72px; border-radius: 0; font-size: 14px; }
.client-metrics { margin-bottom: 15px; }
.date-metric { font-size: 34px !important; }
.client-detail-grid { display: grid; grid-template-columns: 1.3fr .8fr; gap: 15px; }
.location-list { margin-top: 22px; }
.location-list article { min-height: 72px; display: grid; grid-template-columns: 30px 1fr auto auto; gap: 18px; align-items: center; border-top: 1px solid var(--line); }
.location-number { color: var(--lime-dark); font-size: 8px; font-weight: 850; }
.location-list div, .location-list article > span { display: flex; flex-direction: column; gap: 4px; }
.location-list strong, .location-list b { font-size: 10px; }
.location-list small { color: var(--muted); font-size: 8px; }
.support-panel { background: var(--ink); color: #fff; border-color: var(--ink); }
.support-panel .section-label { color: var(--lime); }
.support-explainer { margin: 19px 0 22px; color: rgba(255, 255, 255, .52); font-size: 10px; line-height: 1.65; }
.support-form { display: grid; gap: 13px; }
.support-form label { display: grid; gap: 7px; color: rgba(255, 255, 255, .57); font-size: 8px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.support-form select, .support-form textarea { background: #171a18; border-color: rgba(255, 255, 255, .15); color: #fff; }
.support-form textarea { height: auto; padding-top: 12px; resize: vertical; }
.check-label { display: flex !important; grid-template-columns: auto 1fr; align-items: flex-start; gap: 9px !important; line-height: 1.5; text-transform: none !important; letter-spacing: 0 !important; }
.check-label input { margin: 2px 0 0; accent-color: var(--lime); }
.field-error { color: #ff9b88; font-size: 8px; }
.field-help { color: rgba(255, 255, 255, .38); font-size: 7px; font-weight: 500; line-height: 1.5; letter-spacing: 0; text-transform: none; }
.primary-button { min-height: 50px; display: flex; justify-content: space-between; align-items: center; padding: 0 17px; border: 1px solid var(--lime); background: var(--lime); color: var(--ink); font-size: 9px; font-weight: 800; }
.session-history { margin-top: 15px; }
.session-list { margin-top: 22px; }
.session-list > div { min-height: 55px; display: grid; grid-template-columns: 95px 1fr auto auto; gap: 15px; align-items: center; border-top: 1px solid var(--line); font-size: 8px; }
.session-list strong { font-size: 9px; }
.session-list > div > span:nth-last-child(-n+2) { color: var(--muted); }
.audit-table .table-row { grid-template-columns: 1.7fr .8fr .6fr .7fr; }
.inquiry-metrics { margin-bottom: 15px; }
.text-metric { overflow: hidden; font-size: clamp(22px, 2.3vw, 34px) !important; text-overflow: ellipsis; white-space: nowrap; }
.inquiry-detail-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 15px; }
.inquiry-story article { padding: 21px 0; border-top: 1px solid var(--line); }
.inquiry-story article:first-of-type { margin-top: 22px; }
.inquiry-story article > span { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.inquiry-story article p { margin: 10px 0 0; font-size: 11px; line-height: 1.65; }
.inquiry-update { background: #e6e3d8; }
.light-form { margin-top: 23px; }
.light-form label { color: var(--muted); }
.light-form select, .light-form textarea { background: var(--paper-2); border-color: var(--line); color: var(--text); }

.message-stack { position: fixed; z-index: 80; top: 18px; right: 18px; width: min(430px, calc(100% - 36px)); }
.message { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 7px; padding: 14px 16px; border: 1px solid #c9d895; background: #f5ffd7; color: #3c4b17; box-shadow: 0 8px 28px rgba(11, 13, 12, .12); font-size: 10px; }
.message.error { border-color: #e4afa5; background: #ffebe6; color: #883d2f; }
.message button { border: 0; background: none; color: inherit; }

/* Login */
.login-page { background: var(--ink); }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: 1.2fr .8fr; }
.login-panel { min-height: 650px; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(35px, 5vw, 72px); background-color: var(--ink); background-image: radial-gradient(circle at 88% 5%, rgba(203, 255, 61, .15), transparent 30%), linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: auto, 64px 64px, 64px 64px; color: #fff; }
.login-brand { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 780; letter-spacing: -.05em; }
.login-brand svg { width: 31px; fill: var(--lime); }
.login-brand b { margin-left: 11px; padding-left: 20px; border-left: 1px solid var(--dark-line); color: rgba(255, 255, 255, .38); font-size: 8px; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.login-copy { max-width: 770px; }
.login-copy h1 { margin: 0; font-size: clamp(56px, 7.2vw, 112px); line-height: .86; letter-spacing: -.075em; font-weight: 680; }
.login-copy h1 em { color: var(--lime); font-style: normal; }
.login-copy > p:last-child { max-width: 570px; margin: 30px 0 0; color: rgba(255, 255, 255, .5); font-size: 14px; line-height: 1.7; }
.login-proof { display: flex; gap: 35px; color: rgba(255, 255, 255, .42); font-size: 8px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.login-proof span::before { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 8px 1px 0; border-radius: 50%; background: var(--lime); }
.login-form-wrap { display: grid; place-items: center; padding: 40px; background: var(--paper); }
.login-form { width: min(390px, 100%); }
.number-tag { color: var(--lime-dark); font-size: 8px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.login-form h2 { margin: 22px 0 9px; font-size: 34px; line-height: 1; letter-spacing: -.055em; }
.login-form > p { margin: 0 0 33px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.login-form > label { display: block; margin: 17px 0 7px; color: var(--muted); font-size: 8px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.login-form input { height: 54px; background: var(--paper-2); }
.login-form .primary-button { width: 100%; margin-top: 23px; min-height: 55px; }
.login-note { display: flex; align-items: center; gap: 8px; margin-top: 20px; color: var(--muted); font-size: 8px; }
.login-note span { width: 5px; height: 5px; border-radius: 50%; background: #7aa314; }
.form-errors { padding: 11px; border: 1px solid #e0a69b; background: #ffebe6; color: #883d2f; font-size: 9px; }
.form-errors ul { margin: 0; padding-left: 17px; }
.mfa-form { max-width: 430px; }
.mfa-form .qr-code { width: 210px; height: 210px; display: block; margin: 0 auto 18px; padding: 9px; background: #fff; image-rendering: pixelated; }
.mfa-form details { margin-bottom: 21px; padding: 12px 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .35); }
.mfa-form summary { cursor: pointer; color: var(--muted); font-size: 9px; font-weight: 700; }
.mfa-form details code { display: block; overflow-wrap: anywhere; margin-top: 11px; font-size: 10px; line-height: 1.5; }
.mfa-form .form-errors { margin-top: 8px; }
.mfa-form .primary-button { text-decoration: none; }
.recovery-codes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 22px 0; }
.recovery-codes code { padding: 11px; border: 1px solid var(--line); background: var(--paper-2); font-size: 10px; text-align: center; }

/* Tenant support preview */
.workspace-page { background: #f6f5ef; }
.support-banner { min-height: 76px; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 12px clamp(20px, 4vw, 64px); background: var(--ink); color: #fff; }
.support-banner > div { display: grid; grid-template-columns: auto 1fr; gap: 4px 13px; align-items: center; }
.support-banner strong { font-size: 11px; }
.support-banner small { grid-column: 2; color: rgba(255, 255, 255, .48); font-size: 8px; }
.support-banner button { min-height: 38px; padding: 0 14px; border: 1px solid var(--lime); background: transparent; color: var(--lime); font-size: 8px; font-weight: 800; }
.tenant-header { min-height: 76px; display: flex; align-items: center; gap: 45px; padding: 0 clamp(20px, 4vw, 64px); border-bottom: 1px solid var(--line); background: #fff; }
.tenant-brand { margin-right: auto; font-size: 17px; }
.tenant-header nav { display: flex; gap: 26px; color: var(--muted); font-size: 9px; font-weight: 650; }
.tenant-header nav a.active { color: var(--ink); }
.tenant-main { padding: 46px clamp(20px, 5vw, 76px) 80px; }
.tenant-welcome { display: flex; justify-content: space-between; align-items: flex-end; }
.tenant-welcome h1 { margin: 0; font-size: clamp(38px, 5vw, 61px); letter-spacing: -.065em; line-height: 1; }
.tenant-welcome p:last-child { margin: 13px 0 0; color: var(--muted); font-size: 11px; }
.tenant-welcome button { min-height: 46px; padding: 0 17px; border: 0; background: var(--ink); color: #fff; font-size: 9px; font-weight: 750; }
.tenant-welcome button:disabled { cursor: not-allowed; opacity: .45; }
.tenant-main .demo-banner { margin: 28px 0 0; }
.tenant-metrics { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 26px; border: 1px solid var(--line); background: #fff; }
.tenant-metrics article { min-height: 155px; padding: 24px; border-right: 1px solid var(--line); }
.tenant-metrics article:first-child { background: var(--lime); }
.tenant-metrics article:last-child { border: 0; }
.tenant-metrics span, .tenant-metrics small { display: block; color: var(--muted); font-size: 8px; }
.tenant-metrics strong { display: block; margin: 25px 0 8px; font-size: 32px; letter-spacing: -.055em; }
.tenant-grid { display: grid; grid-template-columns: 1.4fr .7fr; gap: 15px; margin-top: 15px; }
.tenant-grid > section { padding: 27px; border: 1px solid var(--line); background: #fff; }
.tenant-section-head { display: flex; justify-content: space-between; }
.tenant-section-head span { color: var(--muted); font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.tenant-section-head h2 { margin: 6px 0 0; font-size: 22px; letter-spacing: -.045em; }
.tenant-section-head a { font-size: 8px; font-weight: 750; }
.tenant-locations, .tenant-feed { margin-top: 23px; }
.tenant-locations article { min-height: 68px; display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line); }
.tenant-locations article > div { flex: 1; }
.tenant-locations strong, .tenant-locations small, .tenant-locations b { display: block; }
.tenant-locations strong { font-size: 10px; }
.tenant-locations small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.tenant-locations article > span:nth-last-child(2) { text-align: right; }
.live-dot { padding: 5px 7px; background: #edfacb; color: #557013; font-size: 7px; font-style: normal; font-weight: 800; text-transform: uppercase; }
.tenant-feed p { display: flex; gap: 12px; margin: 0; padding: 14px 0; border-top: 1px solid var(--line); }
.tenant-feed i { width: 7px; height: 7px; margin-top: 3px; flex: 0 0 auto; border-radius: 50%; background: var(--lime-dark); }
.tenant-feed span { display: flex; flex-direction: column; gap: 5px; }
.tenant-feed strong { font-size: 9px; }
.tenant-feed small { color: var(--muted); font-size: 7px; line-height: 1.5; }

@media (max-width: 1150px) {
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-card:nth-child(2) { border-right: 0; }
  .metric-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .client-grid { grid-template-columns: repeat(2, 1fr); }
  .tenant-metrics { grid-template-columns: repeat(2, 1fr); }
  .tenant-metrics article:nth-child(2) { border-right: 0; }
  .tenant-metrics article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 850px) {
  .sidebar { transform: translateX(-100%); transition: transform .22s; }
  .sidebar.open { transform: translateX(0); box-shadow: 20px 0 50px rgba(0, 0, 0, .2); }
  .mobile-bar { position: sticky; z-index: 40; top: 0; height: 66px; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; background: var(--ink); color: #fff; }
  .menu-toggle { width: 38px; height: 38px; display: grid; place-content: center; gap: 4px; border: 1px solid var(--dark-line); background: transparent; }
  .menu-toggle > span:not(.sr-only) { width: 16px; height: 1px; background: #fff; }
  .main { margin-left: 0; padding: 36px 20px 65px; }
  .dashboard-grid, .dashboard-grid.lower, .client-detail-grid, .inquiry-detail-grid, .tenant-grid { grid-template-columns: 1fr; }
  .client-grid { grid-template-columns: 1fr 1fr; }
  .login-shell { grid-template-columns: 1fr; }
  .login-panel { min-height: 500px; }
  .login-form-wrap { min-height: 600px; }
  .login-copy h1 { font-size: clamp(52px, 11vw, 82px); }
  .tenant-header nav { display: none; }
  .support-banner { align-items: flex-start; }
}

@media (max-width: 620px) {
  .page-head, .tenant-welcome { align-items: flex-start; flex-direction: column; }
  .page-head h1 { font-size: 46px; }
  .head-actions { flex-wrap: wrap; }
  .metric-grid, .client-grid, .tenant-metrics { grid-template-columns: 1fr; }
  .metric-card, .metric-card:nth-child(2), .tenant-metrics article, .tenant-metrics article:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .metric-card:last-child, .tenant-metrics article:last-child { border-bottom: 0; }
  .metric-card { min-height: 165px; }
  .filter-bar { flex-direction: column; }
  .filter-bar label:first-child { min-width: 0; }
  .filter-bar select { min-width: 100%; }
  .timeline { flex-direction: column; }
  .timeline > div { min-height: 58px; padding-left: 16px; border-top: 0; border-left: 1px solid var(--line); }
  .timeline i { top: 3px; left: -4px; }
  .session-list > div { grid-template-columns: 85px 1fr; padding: 11px 0; }
  .location-list article { grid-template-columns: 25px 1fr auto; }
  .location-list article > span:last-child { display: none; }
  .title-with-avatar { align-items: flex-start; }
  .hero-avatar { width: 55px; height: 55px; }
  .login-panel { min-height: 560px; padding: 30px 24px; }
  .login-brand b { display: none; }
  .login-copy h1 { font-size: 51px; }
  .login-proof { flex-direction: column; gap: 9px; }
  .login-form-wrap { padding: 50px 24px; }
  .mfa-form .qr-code { width: 185px; height: 185px; }
  .recovery-codes { grid-template-columns: 1fr; }
  .support-banner { flex-direction: column; }
  .support-banner > div { grid-template-columns: 1fr; }
  .support-banner small { grid-column: 1; line-height: 1.5; }
  .tenant-header { padding-inline: 18px; }
  .tenant-main { padding: 36px 18px 65px; }
  .tenant-grid > section { padding: 20px; }
  .tenant-user { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
