:root {
  --navy: #101d49;
  --navy-2: #172755;
  --ink: #25304d;
  --muted: #6f7b96;
  --muted-2: #929cb1;
  --surface: #f4f7fb;
  --panel: #ffffff;
  --line: #e1e7f0;
  --line-strong: #d3dce8;
  --green: #53ba54;
  --green-dark: #2f8238;
  --green-soft: #edf8ec;
  --blue: #2879bd;
  --blue-soft: #edf6fd;
  --amber: #b6780b;
  --amber-soft: #fff7e7;
  --red: #b74650;
  --red-soft: #fff0f1;
  --shadow: 0 12px 35px rgba(16, 29, 73, .055);
  --shadow-lg: 0 28px 80px rgba(16, 29, 73, .16);
  --radius: 18px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; background: var(--surface); color: var(--ink); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: var(--surface); color: var(--ink); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .48; transform: none !important; }
a { color: inherit; }
.ui-icon { display: block; flex: 0 0 auto; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; }
.skip-link { position: fixed; z-index: 300; top: 10px; left: 10px; transform: translateY(-150%); border-radius: 10px; background: white; color: var(--navy); padding: 10px 14px; box-shadow: var(--shadow-lg); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid rgba(40, 121, 189, .38); outline-offset: 2px; }

.app-loading { min-height: 100vh; display: grid; place-items: center; }
.initial-loader { display: flex; align-items: center; gap: 12px; color: var(--navy); font-weight: 800; }
.brand-mark { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: rgba(83, 186, 84, .12); color: var(--navy); font-size: 13px; font-weight: 900; box-shadow: inset 0 -3px 0 var(--green); }

/* Sign in */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 1.05fr) minmax(420px, .95fr); background: white; }
.auth-story { min-height: 100vh; display: flex; flex-direction: column; padding: clamp(38px, 5vw, 76px); background: radial-gradient(circle at 72% 14%, rgba(50, 124, 184, .25), transparent 30%), linear-gradient(145deg, #0d1941, #14265a); color: white; }
.auth-brand { display: flex; align-items: center; gap: 13px; font-weight: 850; line-height: 1.05; }
.auth-brand .brand-mark { background: rgba(255,255,255,.08); color: white; }
.auth-brand small { color: rgba(255,255,255,.42); font-size: 10px; letter-spacing: .16em; }
.auth-copy { max-width: 650px; margin: auto 0; padding-block: 70px; }
.eyebrow, .page-kicker { margin: 0; color: var(--green-dark); font-size: 11px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.auth-copy .eyebrow { color: #92e590; }
.auth-copy h1 { max-width: 670px; margin: 17px 0 20px; font-size: clamp(42px, 5vw, 72px); line-height: .98; letter-spacing: -.06em; }
.auth-copy > p:last-child { max-width: 590px; margin: 0; color: rgba(255,255,255,.65); font-size: 17px; line-height: 1.7; }
.security-note { display: flex; align-items: center; gap: 9px; color: rgba(255,255,255,.62); font-size: 13px; }
.auth-form-wrap { display: grid; place-items: center; padding: 42px; }
.auth-form { width: min(100%, 440px); }
.auth-form h2 { margin: 13px 0 0; color: var(--navy); font-size: clamp(32px, 4vw, 46px); line-height: 1; letter-spacing: -.05em; }
.auth-form > p:not(.eyebrow) { margin: 16px 0 30px; color: var(--muted); line-height: 1.65; }

.field { display: grid; gap: 8px; margin-bottom: 16px; }
.field > span { color: var(--ink); font-size: 14px; font-weight: 740; }
.input, .select, .textarea { width: 100%; min-height: 48px; border: 1px solid var(--line-strong); border-radius: 12px; background: #fbfcfe; color: var(--ink); padding: 0 14px; transition: border-color .16s ease, box-shadow .16s ease, background .16s ease; }
.select, .period-select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23101d49' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-position: right 13px center; background-repeat: no-repeat; background-size: 17px; padding-right: 42px; }
.select::-ms-expand, .period-select::-ms-expand { display: none; }
.select:disabled, .period-select:disabled { cursor: not-allowed; background-color: #f0f3f7; color: var(--muted); opacity: 1; }
.textarea { min-height: 110px; resize: vertical; padding-top: 12px; }
.input:focus, .select:focus, .textarea:focus, .filter-search:focus-within { outline: 0; border-color: var(--blue); background: white; box-shadow: 0 0 0 4px rgba(40, 121, 189, .1); }
.custom-select { position: relative; display: block; width: 100%; min-width: 0; }
.custom-select.open { z-index: 150; }
.custom-select-native { position: absolute !important; width: 1px !important; height: 1px !important; margin: 0 !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; opacity: 0 !important; pointer-events: none !important; }
.custom-select-trigger { width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line-strong); border-radius: 12px; background: #fbfcfe; color: var(--ink); padding: 0 13px 0 14px; text-align: left; transition: border-color .16s ease, box-shadow .16s ease, background .16s ease; }
.custom-select-trigger > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.custom-select-trigger:hover { border-color: #adc7dc; background: white; }
.custom-select.open .custom-select-trigger, .custom-select-trigger:focus-visible { border-color: var(--blue); background: white; box-shadow: 0 0 0 4px rgba(40,121,189,.1); outline: 0; }
.custom-select-menu { position: absolute; z-index: 130; top: calc(100% + 7px); left: 0; width: max(100%, 220px); overflow: hidden; border: 1px solid #d9e2ed; border-radius: 13px; background: white; box-shadow: 0 20px 50px rgba(16,29,73,.18); padding: 6px; }
.custom-select-options { display: block; max-height: 248px; overflow-y: auto; overscroll-behavior: contain; }
.custom-select-menu.is-searchable { width: max(100%, 310px); }
.custom-select-search { position: relative; display: block; margin-bottom: 5px; }
.custom-select-search > span { position: absolute; top: 50%; left: 11px; display: grid; color: var(--muted); pointer-events: none; transform: translateY(-50%); }
.custom-select-search input { width: 100%; height: 42px; border: 1px solid var(--line-strong); border-radius: 9px; background: #f8fafc; color: var(--ink); padding: 0 11px 0 36px; font-size: 12px; }
.custom-select-search input:focus { border-color: var(--blue); background: white; box-shadow: 0 0 0 3px rgba(40,121,189,.1); outline: 0; }
.custom-select-search input::-webkit-search-cancel-button { cursor: pointer; }
.custom-select-empty { display: block; color: var(--muted); padding: 16px 10px; text-align: center; font-size: 12px; }
.custom-select-empty[hidden] { display: none; }
.custom-select-option { width: 100%; min-height: 40px; display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: center; border: 0; border-radius: 9px; background: transparent; color: var(--ink); padding: 7px 10px 7px 7px; text-align: left; }
.custom-select-option[hidden] { display: none; }
.custom-select-option:hover, .custom-select-option:focus-visible { background: #f1f7fc; color: var(--navy); outline: 0; }
.custom-select-option.selected { background: #edf6fd; color: #1f6da7; font-weight: 800; }
.custom-select-check { display: grid; place-items: center; opacity: 0; }
.custom-select-option.selected .custom-select-check { opacity: 1; }
.custom-date-picker { position: relative; width: 100%; }
.custom-date-picker.open { z-index: 150; }
.custom-date-trigger { width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line-strong); border-radius: 12px; background: #fbfcfe; color: var(--ink); padding: 0 13px 0 14px; text-align: left; transition: border-color .16s ease, box-shadow .16s ease, background .16s ease; }
.custom-date-trigger:hover { border-color: #adc7dc; background: white; }
.custom-date-picker.open .custom-date-trigger, .custom-date-trigger:focus-visible { border-color: var(--blue); background: white; box-shadow: 0 0 0 4px rgba(40,121,189,.1); outline: 0; }
.custom-date-picker.is-disabled .custom-date-trigger { background: #f0f3f7; color: var(--muted); }
.custom-date-popover { position: absolute; z-index: 140; top: calc(100% + 8px); right: 0; width: min(350px, calc(100vw - 38px)); border: 1px solid #d9e2ed; border-radius: 18px; background: white; box-shadow: 0 24px 65px rgba(16,29,73,.2); padding: 15px; }
.custom-date-head { display: grid; grid-template-columns: 38px minmax(0, 1fr) 38px; align-items: center; gap: 8px; margin-bottom: 12px; }
.custom-date-head strong { color: var(--navy); text-align: center; text-transform: capitalize; }
.custom-date-head button { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 10px; background: #f8fafc; color: var(--navy); }
.custom-date-head button:hover { border-color: #b8d4e9; background: #eef7fd; }
.custom-date-weekdays, .custom-date-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.custom-date-weekdays { margin-bottom: 5px; }
.custom-date-weekdays span { color: var(--muted); padding: 5px 0; text-align: center; font-size: 10px; font-weight: 800; }
.custom-date-day, .custom-date-empty { aspect-ratio: 1; }
.custom-date-day { border: 0; border-radius: 10px; background: transparent; color: var(--navy); font-size: 12px; font-weight: 750; }
.custom-date-day:hover, .custom-date-day:focus-visible { background: #edf6fd; color: #1f6da7; outline: 0; }
.custom-date-day.today { box-shadow: inset 0 0 0 1px #8ab8da; }
.custom-date-day.selected { background: var(--green); color: white; box-shadow: none; }
.custom-time-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 13px; border-top: 1px solid var(--line); padding-top: 13px; }
.custom-time-row > span { color: var(--muted); font-size: 11px; font-weight: 750; }
.custom-time-row > div { display: flex; align-items: center; gap: 5px; }
.custom-time-row input { width: 44px; height: 40px; border: 1px solid var(--line-strong); border-radius: 10px; background: #f8fafc; color: var(--navy); text-align: center; font-size: 13px; font-weight: 800; }
.custom-time-row input:focus { border-color: var(--blue); outline: 0; box-shadow: 0 0 0 3px rgba(40,121,189,.1); }
.custom-date-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; margin-top: 13px; border-top: 1px solid var(--line); padding-top: 12px; }
.custom-date-actions button { min-height: 36px; border: 0; border-radius: 9px; background: #f2f5f8; color: #52617d; padding: 0 10px; font-size: 11px; font-weight: 800; }
.custom-date-actions button:hover { background: #e8eef4; }
.custom-date-actions button.primary { background: var(--green); color: white; }
.primary-button, .secondary-button, .ghost-button, .danger-button, .text-button, .table-action { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 11px; padding: 0 17px; font-weight: 780; text-decoration: none; transition: background .15s ease, transform .15s ease, box-shadow .15s ease; }
.primary-button { background: var(--green); color: white; box-shadow: 0 9px 24px rgba(83, 186, 84, .2); }
.primary-button:hover { background: #48aa4b; transform: translateY(-1px); }
.danger-button { background: #b43a46; color: white; box-shadow: 0 9px 24px rgba(180,58,70,.16); }
.danger-button:hover { background: #9e2f3a; transform: translateY(-1px); }
.secondary-button { border: 1px solid var(--line-strong); background: white; color: var(--navy); }
.secondary-button:hover, .ghost-button:hover { background: #f5f8fb; }
.ghost-button { background: transparent; color: var(--muted); }
.text-button { min-height: 38px; background: transparent; color: var(--blue); padding-inline: 6px; font-size: 13px; }
.table-action { min-height: 34px; border: 1px solid var(--line-strong); background: white; color: var(--navy); padding: 0 12px; font-size: 12px; }
.wide { width: 100%; }
.button-small { min-height: 42px; padding: 0 14px; font-size: 13px; }
.disabled-link { pointer-events: none; opacity: .45; }
.form-error { margin: 0 0 16px; border: 1px solid #f0c4c8; border-radius: 11px; background: var(--red-soft); color: #96333d; padding: 11px 13px; font-size: 14px; line-height: 1.5; }
.totp-input { text-align: center; font-size: 22px; font-weight: 850; letter-spacing: .28em; }
.enrollment-box, .credential-box { margin-bottom: 18px; border: 1px solid #cfe5cd; border-radius: 14px; background: var(--green-soft); padding: 15px; }
.enrollment-box span, .credential-box span { display: block; color: var(--muted); font-size: 13px; }
.enrollment-box code, .credential-box code { display: block; margin-top: 7px; overflow-wrap: anywhere; color: var(--navy); font-size: 15px; font-weight: 850; }

/* Stable application shell */
.shell { width: 100%; min-width: 0; min-height: 100vh; display: grid; grid-template-columns: 252px minmax(0, 1fr); }
.sidebar { position: sticky; z-index: 60; top: 0; height: 100dvh; display: flex; flex-direction: column; overflow-y: auto; padding: 24px 16px 20px; background: linear-gradient(180deg, #111f4d 0%, #0e1b45 100%); color: white; }
.sidebar-brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 27px; color: white; font-weight: 850; line-height: 1.05; letter-spacing: -.02em; }
.sidebar-brand .brand-mark { width: 40px; height: 40px; background: rgba(255,255,255,.06); color: white; }
.sidebar-brand small { display: block; margin-top: 3px; color: rgba(255,255,255,.42); font-size: 9px; letter-spacing: .16em; }
.nav { display: grid; gap: 5px; }
.nav-button { display: flex; width: 100%; min-height: 46px; align-items: center; gap: 12px; border: 0; border-radius: 12px; background: transparent; color: rgba(255,255,255,.64); padding: 0 13px; text-align: left; text-decoration: none; font-size: 14px; font-weight: 720; transition: background .15s ease, color .15s ease; }
.nav-button:hover { background: rgba(255,255,255,.06); color: white; }
.nav-button.active, .nav-button[aria-current="page"] { background: rgba(255,255,255,.1); color: white; box-shadow: inset 3px 0 0 var(--green); }
.nav-icon { display: grid; width: 22px; place-items: center; }
.nav-badge { margin-left: auto; min-width: 22px; border-radius: 999px; background: var(--green); color: white; padding: 3px 7px; text-align: center; font-size: 10px; }
.sidebar-footer { margin-top: auto; border-top: 1px solid rgba(255,255,255,.1); padding: 16px 7px 0; }
.sidebar-system { display: flex; align-items: center; gap: 8px; margin-bottom: 15px; color: rgba(255,255,255,.53); font-size: 11px; }
.status-dot { display: inline-block; width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(83,186,84,.12); }
.status-dot.offline { background: var(--amber); box-shadow: 0 0 0 4px rgba(182,120,11,.12); }
.account-line { display: flex; min-width: 0; align-items: center; gap: 10px; }
.avatar { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: rgba(83,186,84,.16); color: #a8efa7; font-size: 12px; font-weight: 900; }
.avatar.large { width: 54px; height: 54px; background: var(--green-soft); color: var(--green-dark); font-size: 16px; }
.account-copy { min-width: 0; }
.account-copy strong, .account-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-copy strong { font-size: 13px; }
.account-copy span { margin-top: 3px; color: rgba(255,255,255,.44); font-size: 11px; }
.sidebar-actions { display: flex; gap: 6px; margin-top: 12px; }
.sidebar-actions button { flex: 1; min-height: 36px; border: 1px solid rgba(255,255,255,.11); border-radius: 9px; background: rgba(255,255,255,.04); color: rgba(255,255,255,.72); font-size: 12px; }
.menu-scrim { display: none; }
.main { width: 100%; min-width: 0; }
.topbar { position: relative; z-index: 40; display: flex; min-height: 72px; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid rgba(16,29,73,.07); background: rgba(244,247,251,.96); padding: 0 clamp(22px, 3vw, 44px); backdrop-filter: blur(18px); }
.topbar-left, .topbar-actions { display: flex; align-items: center; gap: 10px; }
.topbar-context strong, .topbar-context span { display: block; }
.topbar-context strong { color: var(--navy); font-size: 14px; }
.topbar-context span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.period-select { min-height: 42px; border: 1px solid var(--line-strong); border-radius: 11px; background: white; color: var(--navy); padding: 0 35px 0 13px; font-size: 13px; font-weight: 740; }
.period-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23101d49' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-position: right 13px center; background-repeat: no-repeat; background-size: 17px; padding-right: 42px; }
.period-select:focus, .period-select:focus-visible { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(40, 121, 189, .1); }
.custom-period { position: relative; min-width: 210px; }
.custom-period.open { z-index: 90; }
.custom-period-trigger { width: 100%; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: white; color: var(--navy); padding: 0 13px 0 15px; font-size: 13px; font-weight: 780; text-align: left; box-shadow: 0 7px 22px rgba(16,29,73,.045); transition: border-color .16s ease, box-shadow .16s ease, background .16s ease; }
.custom-period-trigger:hover { border-color: #b9cbe0; background: #fbfdff; }
.custom-period-trigger:focus-visible, .custom-period.open .custom-period-trigger { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(40,121,189,.1), 0 12px 28px rgba(16,29,73,.09); }
.custom-period-trigger .ui-icon { transition: transform .16s ease; }
.custom-period.open .custom-period-trigger .ui-icon { transform: rotate(180deg); }
.custom-period-menu { position: absolute; z-index: 91; top: calc(100% + 8px); right: 0; min-width: 100%; display: grid; gap: 3px; border: 1px solid var(--line-strong); border-radius: 14px; background: rgba(255,255,255,.985); padding: 6px; box-shadow: 0 22px 55px rgba(16,29,73,.2); backdrop-filter: blur(16px); }
.custom-period-option { width: 100%; min-height: 39px; display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: center; gap: 7px; border: 0; border-radius: 9px; background: transparent; color: var(--ink); padding: 0 11px 0 7px; font-size: 12px; font-weight: 700; text-align: left; white-space: nowrap; transition: background .14s ease, color .14s ease; }
.custom-period-option:hover, .custom-period-option:focus-visible { outline: 0; background: var(--blue-soft); color: var(--blue); }
.custom-period-option.selected { background: #f1f8fd; color: var(--navy); font-weight: 820; }
.custom-period-check { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 7px; color: transparent; }
.custom-period-option.selected .custom-period-check { background: var(--green-soft); color: var(--green-dark); }
.mobile-menu { display: none; }
.icon-button, .mobile-menu { width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border: 1px solid var(--line-strong); border-radius: 11px; background: white; color: var(--navy); padding: 0; }
.topbar-refresh:hover, .icon-button:hover { background: #f7f9fc; }
.content { width: 100%; min-width: 0; padding: 42px clamp(22px, 3vw, 44px) 56px; }
.content-inner { width: 100%; max-width: 1540px; margin: 0 auto; container: admin-content / inline-size; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.page-head h1 { margin: 7px 0 0; color: var(--navy); font-size: clamp(30px, 3vw, 44px); line-height: 1; letter-spacing: -.05em; }
.page-head > div > p:last-child { margin: 10px 0 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.head-actions { display: flex; align-items: center; gap: 9px; }
.page-period-actions { align-self: flex-end; }
.page-period-actions .period-control { min-width: 210px; border-radius: 14px; }
.page-period-actions .period-select { width: 100%; }
.period-status { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; margin-bottom: 16px; border: 1px solid #cfe4f5; border-radius: 14px; background: linear-gradient(90deg, #f4faff, #fff); padding: 12px 16px; box-shadow: 0 8px 24px rgba(40,121,189,.045); }
.period-pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(83,186,84,.13); }
.period-status strong, .period-status span { display: block; }
.period-status strong { color: var(--navy); font-size: 13px; }
.period-status div > span { margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.period-status b { border-radius: 999px; background: var(--blue-soft); color: var(--blue); padding: 6px 10px; font-size: 11px; white-space: nowrap; }

/* Status and KPI cards */
.insight-banner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 13px; margin-bottom: 16px; border: 1px solid #d9e8f4; border-radius: 15px; background: var(--blue-soft); padding: 14px 17px; }
.insight-banner.success { border-color: #d4e8d2; background: var(--green-soft); }
.insight-banner.warning { border-color: #f0debc; background: var(--amber-soft); }
.insight-icon { display: grid; width: 39px; height: 39px; place-items: center; border-radius: 11px; background: white; color: var(--blue); box-shadow: 0 4px 14px rgba(16,29,73,.06); }
.insight-banner.success .insight-icon { color: var(--green-dark); }
.insight-banner.warning .insight-icon { color: var(--amber); }
.insight-banner strong { display: block; color: var(--navy); font-size: 14px; }
.insight-banner p { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.insight-meta { color: var(--navy); font-size: 12px; font-weight: 820; white-space: nowrap; }
.metrics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 13px; }
.analytics-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--line); box-shadow: var(--shadow); }
.analytics-metrics .metric-card { min-height: 112px; border: 0; border-radius: 0; padding: 13px 15px; box-shadow: none; }
.analytics-metrics .metric-top { align-items: flex-start; }
.analytics-metrics .metric-label { display: flex; min-height: 28px; align-items: flex-start; font-size: 11px; line-height: 1.28; }
.analytics-metrics .metric-icon { width: 27px; height: 27px; border-radius: 8px; }
.analytics-metrics .metric-value { margin-top: 7px; font-size: clamp(23px, 1.55vw, 29px); letter-spacing: -.045em; }
.analytics-metrics .metric-value-long { font-size: clamp(18px, 1.25vw, 24px); }
.analytics-metrics .metric-meta { min-height: 16px; padding-top: 8px; overflow: visible; }
.analytics-metrics .metric-foot { overflow: visible; font-size: 9.5px; line-height: 1.25; text-overflow: clip; white-space: normal; }
.overview-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--line); box-shadow: var(--shadow); }
.overview-metrics .metric-card { min-height: 116px; border: 0; border-radius: 0; padding: 14px 17px; box-shadow: none; }
.overview-metrics .metric-top { align-items: flex-start; }
.overview-metrics .metric-label { min-height: 28px; font-size: 11px; line-height: 1.28; }
.overview-metrics .metric-icon { width: 28px; height: 28px; border-radius: 8px; }
.overview-metrics .metric-value { margin-top: 7px; font-size: clamp(25px, 1.8vw, 32px); }
.overview-metrics .metric-meta { min-height: 22px; padding-top: 9px; overflow: visible; }
.metric-card { min-width: 0; min-height: 156px; display: flex; flex-direction: column; border: 1px solid rgba(16,29,73,.075); border-radius: 17px; background: white; padding: 17px; box-shadow: var(--shadow); }
.metric-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.metric-label { min-width: 0; color: var(--muted); font-size: 13px; font-weight: 720; line-height: 1.35; }
.metric-icon { display: grid; width: 33px; height: 33px; flex: 0 0 auto; place-items: center; border-radius: 10px; background: var(--blue-soft); color: var(--blue); }
.metric-positive .metric-icon { background: var(--green-soft); color: var(--green-dark); }
.metric-warning .metric-icon { background: var(--amber-soft); color: var(--amber); }
.metric-negative .metric-icon { background: var(--red-soft); color: var(--red); }
.metric-value { display: block; margin-top: 13px; color: var(--navy); font-size: clamp(30px, 2.5vw, 42px); font-variant-numeric: tabular-nums; font-weight: 870; line-height: 1; letter-spacing: -.055em; white-space: nowrap; }
.metric-meta { display: flex; min-height: 24px; align-items: center; gap: 7px; margin-top: auto; padding-top: 12px; overflow: hidden; }
.delta { display: inline-flex; min-height: 22px; flex: 0 0 auto; align-items: center; border-radius: 999px; padding: 0 7px; font-size: 10px; font-weight: 850; }
.delta-positive { background: var(--green-soft); color: var(--green-dark); }
.delta-negative { background: var(--red-soft); color: var(--red); }
.delta-neutral { background: #f1f4f8; color: var(--muted); }
.metric-foot { overflow: hidden; color: var(--muted); font-size: 11px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.summary-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--line); box-shadow: var(--shadow); }
.summary-strip article { display: flex; min-height: 86px; align-items: center; justify-content: space-between; gap: 12px; background: white; padding: 16px 20px; }
.summary-strip span { color: var(--muted); font-size: 13px; }
.summary-strip strong { color: var(--navy); font-size: 27px; font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.summary-strip article.attention { background: var(--red-soft); }
.summary-strip article.attention strong { color: var(--red); }
.team-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.attention-board { overflow: hidden; }
.attention-counts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.attention-counts article { min-width: 0; background: #fbfcfe; padding: 13px 16px; }
.attention-counts span, .attention-counts strong { display: block; }
.attention-counts span { overflow: hidden; color: var(--muted); font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.attention-counts strong { margin-top: 5px; color: var(--navy); font-size: 23px; letter-spacing: -.04em; }
.attention-counts article.negative { background: var(--red-soft); }
.attention-counts article.negative strong { color: var(--red); }
.attention-counts article.warning { background: var(--amber-soft); }
.attention-counts article.warning strong { color: var(--amber); }
.attention-counts article.info { background: var(--blue-soft); }
.attention-list { border-top: 1px solid var(--line); }
.attention-lead { width: 100%; display: grid; grid-template-columns: auto minmax(150px, 1fr) auto minmax(120px, auto) auto; align-items: center; gap: 12px; border: 0; border-bottom: 1px solid var(--line); background: white; color: inherit; padding: 12px 17px; text-align: left; }
.attention-lead:last-child { border-bottom: 0; }
.attention-lead:hover { background: #f8fbfe; }
.attention-avatar { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; background: var(--blue-soft); color: var(--blue); font-size: 10px; font-weight: 850; }
.attention-lead-main { min-width: 0; }
.attention-lead-main strong, .attention-lead-main small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attention-lead-main strong { color: var(--navy); font-size: 12px; }
.attention-lead-main small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.attention-tag { border-radius: 999px; background: var(--blue-soft); color: var(--blue); padding: 5px 8px; font-size: 9px; font-weight: 820; white-space: nowrap; }
.attention-tag.warning { background: var(--amber-soft); color: var(--amber); }
.attention-tag.negative { background: var(--red-soft); color: var(--red); }
.attention-date { color: var(--muted); font-size: 10.5px; white-space: nowrap; }
.attention-empty { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding: 16px 18px; }
.attention-empty > span { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; border-radius: 11px; background: var(--green-soft); color: var(--green-dark); }
.attention-empty strong { display: block; color: var(--navy); font-size: 13px; }
.attention-empty p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }

/* Panels and charts */
.panel { min-width: 0; border: 1px solid rgba(16,29,73,.075); border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.panel-header { display: flex; min-height: 64px; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--line); padding: 0 19px; }
.panel-header h2 { margin: 0; color: var(--navy); font-size: 16px; letter-spacing: -.025em; }
.panel-header span { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.panel-body { min-width: 0; padding: 19px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, .75fr); gap: 16px; margin-top: 16px; }
.two-column-grid, .analytics-grid, .settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.settings-grid { align-items: start; }
.stacked-panels { display: grid; align-content: start; gap: 16px; }
.mt-16 { margin-top: 16px; }
.chart-panel .panel-body { padding-bottom: 12px; }
.chart-legend { display: flex; align-items: center; justify-content: flex-end; gap: 17px; margin-bottom: 2px; color: var(--muted); font-size: 11px; }
.chart-legend span { display: flex; align-items: center; gap: 6px; }
.legend-line { width: 18px; height: 3px; border-radius: 99px; background: var(--blue); }
.legend-line.green { background: repeating-linear-gradient(90deg, var(--green) 0 5px, transparent 5px 8px); }
.legend-block { width: 10px; height: 10px; border-radius: 3px; background: #c7def1; }
.chart-wrap { width: 100%; height: 258px; overflow: hidden; }
.chart-wrap svg { width: 100%; height: 100%; overflow: visible; }
.interactive-chart { position: relative; border-radius: 12px; touch-action: pan-x pan-y; }
.interactive-chart:focus-visible { outline: 3px solid rgba(40,121,189,.25); outline-offset: 3px; }
.chart-grid-line { stroke: #e9eef5; stroke-width: 1; }
.chart-line { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.chart-line.sessions { stroke: var(--blue); }
.chart-line.leads { stroke: var(--green); stroke-dasharray: 7 5; }
.chart-dot { fill: white; stroke-width: 2; }
.chart-dot.sessions { stroke: var(--blue); }
.chart-dot.leads { stroke: var(--green); }
.chart-bar { fill: #d6e8f7; }
.chart-label, .chart-y-label { fill: #8a95aa; font-size: 10px; }
.chart-hitbox { fill: transparent; cursor: crosshair; pointer-events: all; }
.chart-active { pointer-events: none; }
.chart-active[hidden] { display: none; }
.chart-guide { stroke: #8996ad; stroke-width: 1; stroke-dasharray: 4 4; }
.chart-focus-dot { fill: white; stroke-width: 3; }
.chart-focus-dot.sessions { stroke: var(--blue); }
.chart-focus-dot.leads { stroke: var(--green); }
.chart-focus-dot.impressions { stroke: #7eaed4; }
.svg-tooltip-box { fill: #101d49; filter: drop-shadow(0 8px 13px rgba(16,29,73,.2)); }
.svg-tooltip-date { fill: rgba(255,255,255,.7); font-size: 10px; font-weight: 700; }
.svg-tooltip-value { fill: white; font-size: 11px; font-weight: 760; }
.svg-tooltip-key.sessions { fill: var(--blue); }
.svg-tooltip-key.impressions { fill: #a9d0ed; }
.svg-tooltip-key.leads { fill: var(--green); }
.breakdown-list { display: grid; gap: 15px; }
.breakdown-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; align-items: center; }
.breakdown-name { min-width: 0; overflow: hidden; color: var(--ink); text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 700; }
.breakdown-value { color: var(--navy); font-size: 13px; font-variant-numeric: tabular-nums; }
.bar-track { grid-column: 1 / -1; height: 6px; overflow: hidden; border-radius: 99px; background: #edf1f6; }
.bar-fill { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), #66a9df); }
.bar-w-5 { width: 5%; }
.bar-w-0 { width: 0; }
.bar-w-10 { width: 10%; }
.bar-w-15 { width: 15%; }
.bar-w-20 { width: 20%; }
.bar-w-25 { width: 25%; }
.bar-w-30 { width: 30%; }
.bar-w-35 { width: 35%; }
.bar-w-40 { width: 40%; }
.bar-w-45 { width: 45%; }
.bar-w-50 { width: 50%; }
.bar-w-55 { width: 55%; }
.bar-w-60 { width: 60%; }
.bar-w-65 { width: 65%; }
.bar-w-70 { width: 70%; }
.bar-w-75 { width: 75%; }
.bar-w-80 { width: 80%; }
.bar-w-85 { width: 85%; }
.bar-w-90 { width: 90%; }
.bar-w-95 { width: 95%; }
.bar-w-100 { width: 100%; }
.page-panel-body { padding: 4px 0; }
.page-list { display: grid; }
.page-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 82px; border-bottom: 1px solid var(--line); color: inherit; padding: 11px 17px; text-decoration: none; transition: background .16s ease, box-shadow .16s ease; }
.page-row:last-child { border-bottom: 0; }
.page-row:hover { background: #f8fbfe; box-shadow: inset 3px 0 0 var(--blue); }
.page-row:focus-visible { position: relative; z-index: 1; outline-offset: -3px; }
.page-rank { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 9px; background: #f0f4f8; color: var(--muted); font-size: 10px; font-weight: 850; }
.page-copy { min-width: 0; }
.page-title-line { display: flex; min-width: 0; align-items: center; gap: 8px; }
.page-title-line > strong { min-width: 0; overflow: hidden; color: var(--navy); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.page-badges { display: inline-flex; flex: 0 0 auto; flex-wrap: wrap; gap: 4px; }
.page-badges i { display: inline-flex; min-height: 20px; align-items: center; border: 1px solid #dbe5ee; border-radius: 999px; background: #f6f9fc; color: #64718a; padding: 0 7px; font-size: 8px; font-style: normal; font-weight: 850; letter-spacing: .035em; text-transform: uppercase; }
.page-path { display: block; overflow: hidden; margin-top: 4px; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.page-progress { display: block; height: 4px; overflow: hidden; margin-top: 8px; border-radius: 99px; background: #edf2f7; }
.page-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), #70b2e5); }
.page-total { min-width: 55px; text-align: right; }
.page-total strong, .page-total small { display: block; }
.page-total strong { color: var(--navy); font-size: 18px; font-variant-numeric: tabular-nums; }
.page-total small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.funnel-panel { align-self: start; }
.funnel { display: flex; flex-direction: column; align-items: stretch; }
.funnel-step { width: 100%; min-width: 0; min-height: 70px; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto 18px; align-items: center; gap: 13px; border: 1px solid var(--line); border-radius: 13px; background: #fafbfd; color: inherit; padding: 12px 15px; font: inherit; text-align: left; cursor: pointer; transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease; }
.funnel-step:hover { border-color: #b7d4ec; background: #f5faff; box-shadow: 0 10px 24px rgba(40,121,189,.08); transform: translateY(-1px); }
.funnel-step:focus-visible { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(40,121,189,.12); }
.funnel-step > span { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 10px; background: var(--navy); color: white; font-size: 11px; font-weight: 850; }
.funnel-step > div { min-width: 0; }
.funnel-step strong, .funnel-step small, .funnel-step em { display: block; }
.funnel-step > strong { color: var(--navy); font-size: 27px; font-variant-numeric: tabular-nums; line-height: 1; text-align: right; }
.funnel-step small { color: var(--navy); font-size: 12px; font-weight: 760; line-height: 1.3; }
.funnel-step em { margin-top: 4px; color: var(--muted); font-size: 10px; font-style: normal; line-height: 1.3; }
.funnel-step > i { display: grid; place-items: center; color: var(--blue); opacity: .55; transition: opacity .16s ease, transform .16s ease; }
.funnel-step:hover > i { opacity: 1; transform: translateX(2px); }
.funnel-arrow { display: grid; height: 27px; place-items: center; color: #8995a9; }
.funnel-arrow svg { transform: rotate(90deg); }
.action-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.action-card { border: 1px solid var(--line); border-radius: 13px; background: #fafbfd; padding: 13px; }
.action-card span, .action-card strong { display: block; }
.action-card span { min-height: 30px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.action-card strong { margin-top: 6px; color: var(--navy); font-size: 24px; }
.empty-state { display: grid; place-items: center; color: var(--muted); padding: 42px 20px; text-align: center; }
.empty-state.compact { min-height: 150px; padding: 22px; }
.empty-icon { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 14px; background: var(--blue-soft); color: var(--blue); }
.empty-state strong { margin-top: 10px; color: var(--navy); font-size: 15px; }
.empty-state p { max-width: 500px; margin: 7px 0 0; font-size: 13px; line-height: 1.55; }
.empty-actions { display: flex; gap: 9px; margin-top: 17px; }

/* Tables and filters */
.table-panel { overflow: hidden; }
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; border-bottom: 1px solid var(--line); padding: 14px 16px; }
.filter-search { min-width: 260px; min-height: 44px; display: flex; flex: 1 1 380px; align-items: center; gap: 9px; border: 1px solid var(--line-strong); border-radius: 11px; background: #fbfcfe; color: var(--muted); padding: 0 12px; }
.filter-search input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); }
.filter-select { width: auto; min-width: 175px; }
.lead-state-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 18px; border-top: 1px solid var(--line); background: #fbfcfe; padding: 9px 16px; color: var(--muted); font-size: 10px; font-weight: 700; }
.lead-state-legend span { display: inline-flex; align-items: center; gap: 7px; }
.lead-state-legend i { width: 9px; height: 9px; border-radius: 50%; }
.lead-state-legend .overdue i { background: #d67a82; }
.lead-state-legend .due-soon i { background: #d7af50; }
.lead-state-legend .complete i { background: #72b77a; }
.table-scroll { width: 100%; overflow-x: auto; }
.table-scroll[tabindex] { scrollbar-width: thin; scrollbar-color: #aebbd0 #edf1f6; }
.table-scroll[tabindex]:focus-visible { outline-offset: -3px; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { background: #f8fafc; color: #7b869d; padding: 11px 15px; text-align: left; font-size: 11px; font-weight: 850; letter-spacing: .055em; text-transform: uppercase; white-space: nowrap; }
.data-table td { border-top: 1px solid #edf1f6; color: #3c465e; padding: 13px 15px; font-size: 13px; line-height: 1.4; vertical-align: middle; }
.data-table tbody tr:hover { background: #fafcfe; }
.users-table th:last-child, .users-table td:last-child { width: 1%; white-space: nowrap; }
.user-row-action { text-align: right; }
.user-access-note { margin: 0; border: 1px solid #d8e6f2; border-radius: 12px; background: #f4f9fd; color: var(--muted); padding: 11px 13px; font-size: 11px; line-height: 1.5; }
.user-access-summary { max-width: 300px; display: flex; flex-wrap: wrap; gap: 5px; }
.access-pill { display: inline-flex; min-height: 23px; align-items: center; border: 1px solid #d5e4f1; border-radius: 999px; background: #f4f9fd; color: #3b6f99; padding: 3px 8px; font-size: 9px; font-weight: 800; white-space: nowrap; }
.access-pill.full-access { border-color: #cce8cf; background: #f1faf2; color: #3b7f45; }
.access-pill.no-access { border-color: #ead7d9; background: #fff6f7; color: #a04c55; }
.user-permissions { min-width: 0; margin: 2px 0 0; border: 0; padding: 0; }
.user-permissions legend { color: var(--navy); font-size: 13px; font-weight: 850; }
.user-permissions > p { margin: 4px 0 11px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.permission-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.permission-card { position: relative; min-width: 0; min-height: 72px; display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: center; gap: 10px; border: 1px solid #dbe5ef; border-radius: 12px; background: #fbfcfe; padding: 11px 36px 11px 11px; cursor: pointer; transition: border-color .16s ease, background .16s ease, box-shadow .16s ease; }
.permission-card:hover { border-color: #a8cce8; background: #f8fcff; }
.permission-card:has(input:focus-visible) { outline: 3px solid rgba(46,133,201,.2); outline-offset: 2px; }
.permission-card:has(input:checked) { border-color: #96c4e7; background: #f1f8fd; box-shadow: inset 0 0 0 1px rgba(46,133,201,.08); }
.permission-card input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.permission-icon { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 10px; background: #eaf4fb; color: #2879b9; }
.permission-card > span:last-child { min-width: 0; }
.permission-card strong { display: block; color: var(--navy); font-size: 11px; }
.permission-card small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.permission-check { position: absolute; top: 9px; right: 9px; width: 20px; height: 20px; display: grid; place-items: center; border: 1px solid #cbd8e5; border-radius: 7px; background: #fff; color: transparent; }
.permission-card input:checked ~ .permission-check { border-color: #2e85c9; background: #2e85c9; color: #fff; }
.owner-full-access { display: flex; align-items: center; gap: 11px; border: 1px solid #cce8cf; border-radius: 12px; background: #f2faf3; color: #3c8a48; padding: 13px; }
.owner-full-access > svg { flex: 0 0 auto; }
.owner-full-access strong { display: block; color: #2f6f39; font-size: 12px; }
.owner-full-access span { display: block; margin-top: 3px; color: #5f8065; font-size: 10px; line-height: 1.45; }
.user-modal .modal-body { max-height: min(74vh, 720px); overflow-y: auto; }
.leads-table .lead-row { cursor: pointer; transition: background .15s ease, box-shadow .15s ease; }
.leads-table .lead-row:hover { background: #f5faff; box-shadow: inset 3px 0 0 #2e85c9; }
.leads-table .lead-row:focus-visible { outline: 3px solid rgba(46,133,201,.28); outline-offset: -3px; background: #f5faff; }
.leads-table .lead-row-overdue { background: #fff8f8; box-shadow: inset 3px 0 0 #d67a82; }
.leads-table .lead-row-due-soon { background: #fffdf5; box-shadow: inset 3px 0 0 #d7af50; }
.leads-table .lead-row-complete { background: #f7fcf8; box-shadow: inset 3px 0 0 #72b77a; }
.leads-table .lead-row-overdue:hover { background: #fff3f4; box-shadow: inset 3px 0 0 #c85d68; }
.leads-table .lead-row-due-soon:hover { background: #fff9e7; box-shadow: inset 3px 0 0 #c89a2f; }
.leads-table .lead-row-complete:hover { background: #f0faf2; box-shadow: inset 3px 0 0 #54a660; }
.lead-contact-time { display: block; white-space: nowrap; }
.lead-timing-badge { display: inline-flex; min-height: 20px; align-items: center; margin-top: 5px; border-radius: 999px; padding: 2px 7px; font-size: 9px; font-weight: 800; white-space: nowrap; }
.lead-timing-badge.overdue { background: #fbe5e7; color: #a33f49; }
.lead-timing-badge.due-soon { background: #fff1c8; color: #8a6417; }
.lead-timing-badge.complete { background: #e3f3e5; color: #397b43; }
.contact-cell { max-width: 360px; }
.contact-cell strong, .contact-cell span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact-cell strong { color: var(--navy); font-size: 13px; }
.contact-cell span { max-width: 340px; margin-top: 3px; color: var(--muted); font-size: 11px; }
.contact-cell .lead-open-hint { display: inline-flex; align-items: center; gap: 3px; max-width: none; margin-top: 6px; color: #287fc2; font-weight: 800; }
.contact-cell .lead-open-hint .ui-icon { flex: 0 0 auto; }
.query-cell { max-width: 520px; color: var(--navy) !important; font-weight: 700; }
.status-pill, .role-pill, .type-pill { display: inline-flex; min-height: 27px; align-items: center; border-radius: 999px; padding: 0 9px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.status-new { background: #edf5ff; color: #286ca4; }
.status-in_progress { background: var(--amber-soft); color: #93620a; }
.status-proposal_sent { background: #f2efff; color: #674db2; }
.status-confirmed { background: var(--green-soft); color: var(--green-dark); }
.status-lost { background: #f1f3f6; color: #70798b; }
.type-pill { background: #f1f4f8; color: #59657d; }
.role-pill { background: var(--green-soft); color: var(--green-dark); }
.priority-mark { color: var(--red); font-weight: 900; }
.empty-table { color: var(--muted) !important; padding: 40px !important; text-align: center; }
.table-empty { min-height: 240px; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding: 12px 16px; color: var(--muted); font-size: 12px; }
.pagination > div { display: flex; gap: 7px; }

/* SEO and settings */
.panel-intro { margin: 0 0 15px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.seo-data-status { min-width: 0; display: grid; grid-template-columns: auto minmax(260px, 1fr) minmax(480px, 1.4fr); align-items: center; gap: 14px; overflow: hidden; border: 1px solid #cee3f3; border-radius: 16px; background: linear-gradient(105deg, #f4faff 0%, #fff 72%); padding: 12px 14px; box-shadow: 0 9px 25px rgba(40,121,189,.045); }
.seo-data-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; background: white; color: var(--blue); box-shadow: 0 6px 18px rgba(16,29,73,.07); }
.seo-data-copy { min-width: 0; }
.seo-data-copy strong { display: block; color: var(--navy); font-size: 13px; }
.seo-data-copy p { margin: 4px 0 0; color: var(--muted); font-size: 10.5px; line-height: 1.45; }
.seo-data-status dl { min-width: 0; display: grid; grid-template-columns: .8fr .9fr 1.25fr; gap: 0; margin: 0; }
.seo-data-status dl > div { min-width: 0; border-left: 1px solid var(--line); padding: 2px 14px; }
.seo-data-status dt { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.seo-data-status dd { min-width: 0; display: flex; align-items: center; gap: 8px; margin: 5px 0 0; color: var(--navy); font-size: 10.5px; font-weight: 800; line-height: 1.35; overflow-wrap: anywhere; }
.seo-data-status .status-dot { width: 7px; height: 7px; }
.seo-visibility-grid { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 14px; margin-top: 14px; }
.seo-rank-hero { min-width: 0; display: grid; grid-template-columns: minmax(300px, .78fr) minmax(0, 1.22fr); align-items: start; gap: 26px; overflow: hidden; border: 1px solid rgba(16,29,73,.075); border-radius: 18px; background: white; color: var(--navy); padding: 22px; box-shadow: var(--shadow); }
.seo-rank-primary { min-width: 0; }
.seo-rank-heading { display: flex; align-items: center; gap: 11px; }
.seo-rank-heading > span { display: grid; width: 40px; height: 40px; flex: 0 0 auto; place-items: center; border-radius: 12px; background: var(--blue-soft); color: var(--blue); }
.seo-rank-heading strong, .seo-rank-heading small { display: block; }
.seo-rank-heading strong { color: var(--navy); font-size: 16px; line-height: 1.3; }
.seo-rank-heading small { margin-top: 3px; color: #5f6d88; font-size: 11.5px; }
.seo-rank-result { display: grid; justify-items: start; gap: 4px; margin-top: 18px; }
.seo-rank-result > span { color: #5f6d88; font-size: 12px; font-weight: 720; }
.seo-rank-result > strong { color: var(--navy); font-size: clamp(27px, 2.5vw, 38px); line-height: 1.05; letter-spacing: -.045em; }
.seo-rank-result > em { display: inline-flex; min-height: 28px; align-items: center; margin-top: 4px; border-radius: 999px; background: var(--green-soft); color: var(--green-dark); padding: 0 10px; font-size: 11.5px; font-style: normal; font-weight: 850; }
.seo-rank-primary > p { max-width: 430px; margin: 15px 0 0; color: #5f6d88; font-size: 12px; line-height: 1.5; }
.seo-rank-overview { min-width: 0; border: 1px solid #dcebf7; border-radius: 15px; background: linear-gradient(135deg, #f7fbff, #fbfdff); padding: 15px; }
.seo-first-page-summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.seo-first-page-summary span, .seo-first-page-summary strong { display: block; }
.seo-first-page-summary span { color: #5f6d88; font-size: 11px; }
.seo-first-page-summary strong { margin-top: 3px; color: var(--navy); font-size: 16px; }
.seo-first-page-summary > b { color: var(--blue); font-size: 20px; letter-spacing: -.035em; }
.seo-first-page-progress { height: 6px; overflow: hidden; margin-top: 10px; border-radius: 999px; background: #e8eff5; }
.seo-first-page-progress > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2b82c7, #62afe3); }
.seo-rank-bucket-help { margin: 12px 0 0; color: #5f6d88; font-size: 10.5px; font-weight: 700; line-height: 1.4; }
.seo-rank-buckets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 9px; }
.seo-rank-bucket { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 11px; background: white; color: inherit; padding: 10px; text-align: left; cursor: pointer; transition: border-color .15s ease, background .15s ease, box-shadow .15s ease, transform .15s ease; }
.seo-rank-bucket:hover { border-color: #9fcbea; background: #f7fbff; transform: translateY(-1px); }
.seo-rank-bucket:focus-visible { outline: 3px solid rgba(40,127,194,.2); outline-offset: 2px; border-color: var(--blue); }
.seo-rank-bucket.active, .seo-rank-bucket[aria-expanded="true"] { border-color: #76b3df; background: var(--blue-soft); box-shadow: 0 0 0 2px rgba(40,127,194,.08); }
.seo-rank-buckets span, .seo-rank-buckets strong { display: block; }
.seo-rank-buckets strong { color: var(--navy); font-size: 20px; line-height: 1; }
.seo-rank-buckets span { min-height: 30px; margin-top: 6px; color: #5f6d88; font-size: 11px; line-height: 1.35; }
.seo-rank-bucket small { display: flex; align-items: center; justify-content: space-between; gap: 5px; margin-top: 7px; color: #185f91; font-size: 10.5px; font-weight: 800; line-height: 1.25; }
.seo-rank-bucket small .ui-icon { flex: 0 0 auto; transition: transform .15s ease; }
.seo-rank-bucket[aria-expanded="true"] small .ui-icon { transform: rotate(180deg); }
.seo-rank-query-preview { margin-top: 14px; border-top: 1px solid #dcebf7; padding-top: 13px; }
.seo-rank-preview-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.seo-rank-preview-head > div { min-width: 0; }
.seo-rank-preview-head strong, .seo-rank-preview-head span { display: block; }
.seo-rank-preview-head strong { color: var(--navy); font-size: 13px; line-height: 1.35; }
.seo-rank-preview-head span { margin-top: 3px; color: #5f6d88; font-size: 11px; line-height: 1.4; }
.seo-rank-preview-head .icon-button { width: 42px; height: 42px; min-height: 42px; flex: 0 0 auto; border-radius: 10px; }
.seo-rank-preview-list { display: grid; gap: 7px; margin-top: 11px; }
.seo-rank-preview-row { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 10px; background: white; padding: 9px 10px; }
.seo-rank-preview-row > div { min-width: 0; }
.seo-rank-preview-row strong, .seo-rank-preview-row small, .seo-rank-preview-row b span { display: block; }
.seo-rank-preview-row strong { color: var(--navy); font-size: 12px; line-height: 1.35; overflow-wrap: anywhere; }
.seo-rank-preview-row small { margin-top: 3px; color: #5f6d88; font-size: 10.5px; line-height: 1.35; }
.seo-rank-preview-row b { min-width: 64px; color: var(--navy); font-size: 15px; line-height: 1.1; text-align: right; }
.seo-rank-preview-row b span { margin-bottom: 3px; color: #5f6d88; font-size: 10px; font-weight: 750; text-transform: uppercase; }
.seo-rank-preview-empty { margin: 13px 0 0; border-radius: 10px; background: white; color: #5f6d88; padding: 14px; font-size: 10.5px; text-align: center; }
.seo-rank-preview-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 11px; }
.seo-rank-preview-footer p { max-width: 440px; margin: 0; color: #5f6d88; font-size: 10.5px; line-height: 1.45; }
.seo-rank-preview-footer button { flex: 0 0 auto; gap: 7px; white-space: nowrap; }
.seo-bucket-note { display: block; margin-top: 11px; color: #5f6d88; font-size: 10.5px; line-height: 1.45; }
.seo-kpi-grid { min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 12px; }
.seo-kpi-grid .metric-card { height: auto; min-height: 148px; padding: 17px; }
.seo-kpi-grid .metric-value { margin-top: 12px; font-size: clamp(30px, 2.4vw, 40px); }
.seo-kpi-grid .metric-meta { margin-top: auto; padding-top: 14px; overflow: visible; }
.seo-kpi-grid .metric-foot { overflow: visible; line-height: 1.35; text-overflow: clip; white-space: normal; }
.seo-section { margin-top: 30px; }
.seo-trend-grid { min-width: 0; display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, .8fr); align-items: stretch; gap: 16px; }
.seo-chart-panel, .seo-opportunities-panel { min-width: 0; }
.seo-chart-panel .panel-body { padding: 13px 18px 15px; }
.seo-chart-tabs { flex: 0 0 auto; }
.seo-single-chart { height: 282px; }
.seo-chart-area { fill: rgba(40,121,189,.08); stroke: none; }
.seo-series { stroke: #287fc2; }
.seo-opportunities-panel .panel-body { padding: 15px 18px; }
.seo-opportunity-list { display: grid; }
.seo-opportunity-item { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; border-top: 1px solid var(--line); padding: 12px 0; }
.seo-opportunity-item:first-child { border-top: 0; padding-top: 0; }
.seo-opportunity-item:last-child { padding-bottom: 0; }
.seo-opportunity-item > span { min-width: 0; }
.seo-opportunity-item > span strong, .seo-opportunity-item > span small { display: block; overflow-wrap: anywhere; }
.seo-opportunity-item > span strong { color: var(--navy); font-size: 11.5px; line-height: 1.35; }
.seo-opportunity-item > span small { margin-top: 4px; color: var(--muted); font-size: 9.5px; }
.seo-rank-cell { min-width: 76px; display: grid; justify-items: end; gap: 4px; text-align: right; }
.seo-rank-cell small { color: var(--muted); font-size: 8.5px; white-space: nowrap; }
.seo-serp-page { display: inline-flex; min-height: 27px; align-items: center; border-radius: 999px; padding: 0 9px; font-size: 10px; font-weight: 850; white-space: nowrap; }
.seo-serp-page.first { background: var(--green-soft); color: var(--green-dark); }
.seo-serp-page.near { background: var(--amber-soft); color: var(--amber); }
.seo-serp-page.far { background: #f0effc; color: #6354a5; }
.seo-serp-page.unavailable { background: #f1f3f6; color: var(--muted); }
.seo-query-panel { margin-bottom: 16px; }
.seo-query-tools { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--line); padding: 12px 16px; }
.seo-query-search { min-width: 230px; max-width: 380px; flex: 1; display: flex; align-items: center; gap: 9px; border: 1px solid var(--line-strong); border-radius: 11px; background: #fbfcfe; color: var(--muted); padding: 0 12px; }
.seo-query-search:focus-within { border-color: var(--blue); background: white; box-shadow: 0 0 0 4px rgba(40,121,189,.1); }
.seo-query-search input { width: 100%; min-width: 0; min-height: 40px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; }
.seo-filter-chips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.seo-filter-chips button { min-height: 34px; border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--muted); padding: 0 11px; font-size: 10px; font-weight: 780; transition: border-color .15s ease, background .15s ease, color .15s ease; }
.seo-filter-chips button:hover { border-color: #bdd3e6; color: var(--blue); }
.seo-filter-chips button.active { border-color: #b9d7ee; background: var(--blue-soft); color: var(--blue); }
.seo-query-table th:first-child { width: 42%; }
.seo-query-table { min-width: 700px; }
.seo-query-table td:not(:first-child) { width: 14.5%; font-variant-numeric: tabular-nums; white-space: nowrap; }
.seo-query-table .query-cell { max-width: none; overflow-wrap: anywhere; }
.seo-query-table .query-cell strong { color: var(--navy); font-size: 12px; line-height: 1.45; }
.seo-average-rank { min-width: 74px; display: grid; justify-items: end; gap: 3px; text-align: right; }
.seo-average-rank strong { color: var(--navy); font-size: 14px; }
.seo-average-rank small { color: var(--muted); font-size: 8.5px; white-space: nowrap; }
.seo-table-footer { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid var(--line); padding: 8px 16px; }
.seo-table-footer > span { color: var(--muted); font-size: 9.5px; line-height: 1.45; }
.seo-pages-table th:first-child { width: 50%; }
.seo-pages-table { min-width: 820px; }
.seo-pages-table td:not(:first-child) { width: 12.5%; font-variant-numeric: tabular-nums; white-space: nowrap; }
.seo-page-cell { min-width: 320px; }
.seo-page-cell > a { display: block; color: inherit; text-decoration: none; }
.seo-page-cell > a:hover strong { color: var(--blue); }
.seo-page-cell .seo-page-title-line { display: flex; align-items: flex-start; gap: 6px; color: var(--navy); }
.seo-page-cell .seo-page-title-line strong { font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.seo-page-cell .seo-page-title-line .ui-icon { margin-top: 1px; color: var(--blue); }
.seo-page-cell a > span:not(.seo-page-title-line) { display: block; margin-top: 4px; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9.5px; line-height: 1.45; overflow-wrap: anywhere; }
.seo-page-cell .page-badges { margin-top: 8px; }
.seo-breakdown-grid { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 16px; }
.seo-breakdown-list { display: grid; }
.seo-breakdown-row { min-width: 0; display: grid; grid-template-columns: 30px minmax(0, 1fr) 70px; align-items: center; gap: 11px; border-bottom: 1px solid var(--line); padding: 13px 18px; }
.seo-breakdown-row:last-child { border-bottom: 0; }
.seo-breakdown-row .rank-number { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 9px; background: #f1f5f9; color: #8290a9; font-size: 9px; font-style: normal; font-weight: 850; }
.seo-breakdown-name { min-width: 0; color: var(--navy); font-size: 11.5px; font-weight: 780; line-height: 1.35; overflow-wrap: anywhere; }
.seo-breakdown-name .bar-track { display: block; height: 4px; margin-top: 7px; }
.seo-breakdown-value { text-align: right; }
.seo-breakdown-value strong, .seo-breakdown-value small { display: block; }
.seo-breakdown-value strong { color: var(--navy); font-size: 14px; }
.seo-breakdown-value small { margin-top: 3px; color: var(--blue); font-size: 9px; font-weight: 800; }
.table-number { color: var(--navy); font-size: 14px; }
.system-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); gap: 12px; }
.system-card { min-width: 0; min-height: 142px; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto 1fr; align-items: start; gap: 10px 12px; border: 1px solid var(--line); border-radius: 15px; background: linear-gradient(145deg, #fff, #f8fbfe); padding: 16px; }
.system-icon { display: grid; width: 37px; height: 37px; flex: 0 0 auto; place-items: center; border-radius: 11px; }
.system-icon.healthy { background: var(--green-soft); color: var(--green-dark); }
.system-icon.warning { background: var(--amber-soft); color: var(--amber); }
.system-card > div { min-width: 0; }
.system-card span:not(.system-icon), .system-card strong, .system-card small { display: block; }
.system-card span:not(.system-icon) { overflow-wrap: anywhere; color: var(--muted); font-size: 11px; line-height: 1.3; }
.system-card strong { margin-top: 3px; color: var(--navy); font-size: 14px; line-height: 1.25; }
.system-card small { margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.4; overflow-wrap: anywhere; }
.system-card > b { grid-column: 1 / -1; align-self: end; min-width: 0; border-top: 1px solid var(--line); color: var(--navy); padding-top: 10px; font-size: 10.5px; line-height: 1.35; overflow-wrap: anywhere; }
.profile-card { display: flex; align-items: center; gap: 13px; }
.profile-card > .avatar { display: grid; place-items: center; margin-top: 0; line-height: 1; }
.profile-card > div > strong, .profile-card > div > span, .profile-card > div > small { display: block; }
.profile-card > div > strong { color: var(--navy); }
.profile-card > div > span { margin-top: 3px; color: var(--muted); font-size: 12px; }
.profile-card > div > small { margin-top: 4px; color: var(--green-dark); font-size: 11px; font-weight: 750; }
.settings-list { display: grid; gap: 0; margin: 20px 0 0; }
.settings-list > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding: 12px 0; }
.settings-list dt { color: var(--muted); font-size: 12px; }
.settings-list dd { margin: 0; color: var(--navy); font-size: 12px; font-weight: 750; }
.info-row { display: flex; align-items: flex-start; gap: 12px; }
.info-row p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.analytics-privacy-intro { display: flex; align-items: flex-start; gap: 12px; }
.analytics-privacy-intro > div { min-width: 0; }
.analytics-privacy-intro strong { display: block; color: var(--navy); font-size: 14px; line-height: 1.35; }
.analytics-privacy-intro p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.analytics-privacy-list { display: grid; gap: 0; margin-top: 16px; border-top: 1px solid var(--line); }
.analytics-privacy-list > div { display: grid; grid-template-columns: 23px minmax(0, 1fr); gap: 10px; border-bottom: 1px solid var(--line); padding: 12px 0; }
.analytics-privacy-list > div:last-child { border-bottom: 0; }
.analytics-privacy-list .privacy-marker { display: grid; width: 23px; height: 23px; place-items: center; border-radius: 7px; background: var(--green-soft); color: var(--green-dark); }
.analytics-privacy-list strong, .analytics-privacy-list span { display: block; }
.analytics-privacy-list strong { color: var(--navy); font-size: 12px; line-height: 1.35; }
.analytics-privacy-list span:not(.privacy-marker) { margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.privacy-policy-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--blue); font-size: 12px; font-weight: 780; }
.privacy-policy-link:hover { color: var(--navy); }

/* Drawers, dialogs and feedback */
.overlay-open, .menu-lock { overflow: hidden; }
.drawer-backdrop, .modal-backdrop { position: fixed; z-index: 100; inset: 0; background: rgba(7,15,39,.58); backdrop-filter: blur(5px); }
.drawer { position: fixed; z-index: 101; top: 12px; right: 12px; width: min(760px, calc(100% - 24px)); height: calc(100dvh - 24px); overflow-y: auto; border: 1px solid rgba(255,255,255,.72); border-radius: 24px; background: #f5f7fb; box-shadow: -28px 20px 90px rgba(16,29,73,.28); }
.drawer-head { position: sticky; z-index: 2; top: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); padding: 22px 24px 19px; backdrop-filter: blur(18px); }
.drawer-title { min-width: 0; }
.drawer-title .drawer-kicker { display: block; color: var(--green-dark); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.drawer-head h2 { margin: 6px 0 0; overflow-wrap: anywhere; color: var(--navy); font-size: 25px; letter-spacing: -.035em; }
.drawer-head p { margin: 6px 0 0; overflow-wrap: anywhere; color: var(--muted); font-size: 12px; line-height: 1.45; }
.drawer-head-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; }
.drawer-body { display: grid; gap: 14px; padding: 16px; }
.lead-section { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: 0 8px 28px rgba(16,29,73,.045); padding: 18px; }
.lead-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.lead-section-head h3, .lead-section .section-title { margin: 0; color: var(--navy); font-size: 15px; }
.lead-section-head p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.lead-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: 11px; margin-top: 15px; }
.lead-controls .field { min-width: 0; margin: 0; }
.lead-reason-field { grid-column: 1 / -1; }
.lead-save { grid-column: 2; min-width: 150px; height: 44px; justify-self: end; padding-inline: 22px; }
.details-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; overflow: hidden; margin-top: 13px; border: 1px solid var(--line); border-radius: 14px; background: var(--line); }
.detail-item { min-width: 0; background: #fbfcfe; padding: 13px; }
.detail-item span { display: block; color: var(--muted); font-size: 11px; }
.detail-item strong { display: block; margin-top: 5px; overflow-wrap: anywhere; color: var(--ink); font-size: 13px; line-height: 1.45; }
.section-title { margin: 23px 0 10px; color: var(--navy); font-size: 14px; }
.lead-bottom-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(240px, .92fr); gap: 14px; align-items: start; }
.note-form { display: flex; gap: 9px; }
.note-form .input { flex: 1; }
#note-form-error .form-error { margin: 8px 0 0; }
.notes { display: grid; gap: 9px; margin-top: 11px; }
.note { border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.note p { margin: 0; color: var(--ink); font-size: 13px; line-height: 1.55; white-space: pre-wrap; }
.note span { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; }
.lead-history { display: grid; gap: 0; margin-top: 12px; }
.history-item { position: relative; display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 10px; padding: 0 0 17px; }
.history-item:not(:last-child)::after { position: absolute; top: 12px; bottom: 0; left: 5px; width: 2px; background: var(--line); content: ""; }
.history-dot { position: relative; z-index: 1; width: 12px; height: 12px; margin-top: 2px; border: 3px solid #e8f4ff; border-radius: 50%; background: var(--blue); }
.history-dot.status-confirmed { border-color: var(--green-soft); background: var(--green-dark); }
.history-dot.status-lost { border-color: #f3e8ea; background: #9b4350; }
.history-item strong, .history-item span { display: block; }
.history-item strong { color: var(--navy); font-size: 12px; line-height: 1.4; }
.history-item div > span { margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.lead-danger-zone { display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid #efcbd0; border-radius: 16px; background: #fff9fa; padding: 16px 18px; }
.lead-danger-zone strong { color: #8e303a; font-size: 13px; }
.lead-danger-zone p { max-width: 470px; margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }

/* Full enquiry workspace */
.source-pill { display: inline-flex; align-items: center; min-height: 24px; border: 1px solid #d9e4f0; border-radius: 999px; background: #f6f9fc; padding: 3px 9px; color: #40516f; font-size: 9px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.source-instagram { border-color: #ead8ee; background: #fbf5fc; color: #8b3b88; }
.source-email { border-color: #d4e5f6; background: #f1f8ff; color: #236ca6; }
.source-phone { border-color: #d8eadc; background: #f2fbf4; color: #28783c; }
.source-whatsapp { border-color: #cfe9d8; background: #edf9f0; color: #23743a; }
.source-telegram { border-color: #d1e7f5; background: #f0f8fd; color: #2379a6; }
.source-website { border-color: #d9e4f0; background: #f5f8fc; color: #40516f; }
.lead-page-back { margin: -3px 0 14px; }
.lead-profile-hero { display: grid; grid-template-columns: 68px minmax(0, 1fr) auto; align-items: center; gap: 18px; margin-bottom: 18px; border: 1px solid rgba(213,224,238,.9); border-radius: 22px; background: linear-gradient(135deg, #fff 0%, #f7fbff 72%, #eef8f0 100%); box-shadow: 0 14px 42px rgba(16,29,73,.07); padding: 22px 24px; }
.lead-profile-avatar { display: grid; width: 68px; height: 68px; place-items: center; border-radius: 20px; background: var(--navy); color: white; font-size: 22px; font-weight: 850; letter-spacing: -.02em; box-shadow: 0 9px 24px rgba(16,29,73,.2); }
.lead-profile-title { min-width: 0; }
.lead-profile-title > div { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.lead-profile-title h1 { margin: 8px 0 2px; overflow-wrap: anywhere; color: var(--navy); font-size: clamp(28px, 3.1vw, 43px); line-height: 1; letter-spacing: -.045em; }
.lead-profile-title p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.priority-pill { display: inline-flex; min-height: 24px; align-items: center; border-radius: 999px; background: #fff0e9; padding: 3px 9px; color: #a6491f; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.priority-pill.priority-low { background: #eef5fb; color: #47708f; }
.priority-pill.priority-high { background: #fff0e9; color: #a6491f; }
.country-pill { display: inline-flex; min-height: 24px; align-items: center; border: 1px solid #d8e4f0; border-radius: 999px; background: #fff; padding: 3px 9px; color: #40516f; font-size: 10px; font-weight: 750; }
.country-flag { display: inline-flex; margin-right: 7px; font-size: 16px; vertical-align: -2px; }
.lead-profile-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.lead-page-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(290px, .75fr); gap: 16px; align-items: start; }
.lead-page-main, .lead-page-aside, .lead-edit-form { display: grid; gap: 16px; }
.lead-page-aside { position: sticky; top: 88px; }
.lead-page-card { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: 0 10px 34px rgba(16,29,73,.055); padding: 20px; }
.lead-page-card > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -2px 0 16px; }
.lead-page-card > header h2 { margin: 0; color: var(--navy); font-size: 16px; letter-spacing: -.015em; }
.lead-page-card > header p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.lead-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.lead-detail-item { min-width: 0; border: 1px solid #e2e9f2; border-radius: 14px; background: #fafcff; padding: 13px 14px; }
.lead-detail-item.wide { grid-column: 1 / -1; }
.lead-detail-item span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.lead-detail-item strong { display: block; overflow-wrap: anywhere; color: var(--navy); font-size: 12px; line-height: 1.55; white-space: pre-wrap; }
.message-translation-actions { margin-top: 13px; border-top: 1px solid #e2e9f2; padding-top: 12px; }
.message-translation-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.message-translation-head > span { margin: 0; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.message-translation-head > div { display: flex; flex-wrap: wrap; gap: 8px; }
.message-translation-head button { display: inline-flex; min-height: 36px; align-items: center; gap: 6px; border: 1px solid #cfe0f3; border-radius: 10px; background: #fff; padding: 7px 10px; color: #2278b9; font-size: 10px; font-weight: 800; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.message-translation-head button:hover { border-color: #92bde0; background: #f2f8fd; transform: translateY(-1px); }
.message-translation-result { display: grid; gap: 7px; margin-top: 11px; border: 1px solid #d8e6f2; border-radius: 12px; background: #fff; padding: 12px 13px; }
.message-translation-result.loading { grid-template-columns: auto minmax(0, 1fr); align-items: center; color: var(--muted); font-size: 11px; }
.message-translation-result.ready > span { margin: 0; color: #397b43; font-size: 9px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.message-translation-result.ready > strong { font-size: 12px; line-height: 1.6; }
.message-translation-result.error { border-color: #ecd7b4; background: #fffbf3; }
.message-translation-result.error strong, .message-translation-result.error span { margin: 0; color: #7c5b1a; letter-spacing: 0; text-transform: none; }
.message-translation-result.error strong { font-size: 11px; }
.message-translation-result.error span { font-size: 10px; line-height: 1.5; }
.crm-summary-card dl, .dates-card dl { margin: 0; }
.crm-summary-card dl > div, .dates-card dl > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; border-top: 1px solid var(--line); padding: 11px 0; }
.crm-summary-card dl > div:first-child, .dates-card dl > div:first-child { border-top: 0; padding-top: 0; }
.crm-summary-card dl > div:last-child, .dates-card dl > div:last-child { padding-bottom: 0; }
.crm-summary-card dt, .dates-card dt { color: var(--muted); font-size: 10px; }
.crm-summary-card dd, .dates-card dd { margin: 0; color: var(--navy); font-size: 11px; font-weight: 750; text-align: right; }
.contact-actions { display: grid; gap: 8px; }
.contact-action { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 10px; border: 1px solid #dce6f2; border-radius: 13px; background: #f9fbfe; padding: 10px; color: var(--blue); text-decoration: none; transition: .18s ease; }
.contact-action:hover { transform: translateY(-1px); border-color: #b8d4ed; background: #f1f8ff; }
.contact-action > .ui-icon { grid-row: 1; }
.contact-action span { min-width: 0; }
.contact-action strong, .contact-action small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact-action strong { color: var(--navy); font-size: 11px; }
.contact-action small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.source-card-main { display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: center; gap: 11px; margin-bottom: 12px; }
.source-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; background: #eef7ff; color: var(--blue); }
.source-card-main strong, .source-card-main p { display: block; margin: 0; }
.source-card-main strong { color: var(--navy); font-size: 12px; }
.source-card-main p { margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 9px; line-height: 1.4; text-overflow: ellipsis; }
.lead-edit-form { max-width: 1050px; margin: 0 auto; }
.lead-edit-form .lead-page-card { overflow: visible; padding: 22px; }
.lead-edit-actions { position: sticky; z-index: 5; bottom: 14px; display: flex; justify-content: flex-end; gap: 10px; border: 1px solid rgba(213,224,238,.95); border-radius: 16px; background: rgba(255,255,255,.94); box-shadow: 0 14px 42px rgba(16,29,73,.16); padding: 12px; backdrop-filter: blur(14px); }
.lead-save-error { margin: 0 0 12px; border: 1px solid #efcbd0; border-radius: 13px; background: #fff7f8; color: #963640; padding: 12px 14px; font-size: 13px; font-weight: 700; line-height: 1.45; }
.lead-save-error:empty { display: none; }
.lead-edit-form :invalid { box-shadow: none; }
.lead-edit-form .field-error { border-color: #c74d58; box-shadow: 0 0 0 3px rgba(199,77,88,.12); }
.lead-page-card .field small { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.history-item p { margin: 4px 0 0; color: #52617d; font-size: 10px; line-height: 1.45; }
.history-dot.status-activity { background: #2d82c7; box-shadow: 0 0 0 4px #e9f4fd; }
.history-dot.status-note { background: #7155b7; box-shadow: 0 0 0 4px #f0ebfb; }
.manual-lead-modal .modal-body { max-height: calc(100dvh - 150px); overflow-y: auto; }

/* Detailed analytics */
.analytics-primary-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--line); box-shadow: var(--shadow); }
.analytics-primary-kpis .metric-card { min-height: 132px; border: 0; border-radius: 0; padding: 16px 17px; box-shadow: none; }
.analytics-primary-kpis .metric-label { min-height: 34px; display: flex; align-items: flex-start; color: #65728d; font-size: 12px; line-height: 1.35; }
.analytics-primary-kpis .metric-icon { width: 31px; height: 31px; border-radius: 9px; }
.analytics-primary-kpis .metric-value { margin-top: 8px; font-size: clamp(28px, 2vw, 35px); }
.analytics-primary-kpis .metric-meta { min-height: 24px; padding-top: 10px; }
.analytics-secondary-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; overflow: hidden; margin-top: 12px; border: 1px solid var(--line); border-radius: 15px; background: var(--line); }
.analytics-secondary-strip article { min-width: 0; min-height: 78px; display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; gap: 4px; background: rgba(255,255,255,.88); padding: 13px 17px; }
.analytics-secondary-strip span { color: var(--muted); font-size: 10.5px; font-weight: 720; line-height: 1.25; }
.analytics-secondary-strip strong { color: var(--navy); font-size: 17px; letter-spacing: -.03em; white-space: nowrap; }
.analytics-secondary-strip small { min-height: 25px; color: var(--muted-2); font-size: 10px; line-height: 1.3; }
.analytics-chart-panel { overflow: visible; }
.analytics-chart-header { min-height: 76px; }
.analytics-chart-tabs { display: inline-flex; align-items: center; gap: 3px; border: 1px solid var(--line); border-radius: 11px; background: #f2f5f9; padding: 4px; }
.analytics-chart-tabs button { min-height: 33px; border: 0; border-radius: 8px; background: transparent; color: #66738d; padding: 0 13px; font-size: 11px; font-weight: 780; transition: background .15s ease, color .15s ease, box-shadow .15s ease; }
.analytics-chart-tabs button:hover { color: var(--blue); }
.analytics-chart-tabs button.active { background: white; color: var(--navy); box-shadow: 0 4px 13px rgba(16,29,73,.09); }
.analytics-chart-tabs button:focus-visible { outline: 2px solid rgba(40,121,189,.35); outline-offset: 1px; }
.analytics-insights { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.analytics-insights > article, .analytics-insights > a { min-width: 0; min-height: 92px; display: grid; grid-template-columns: 41px minmax(0, 1fr) auto; align-items: center; gap: 12px; border: 1px solid rgba(16,29,73,.075); border-radius: 15px; background: white; color: inherit; padding: 15px; box-shadow: 0 9px 27px rgba(16,29,73,.04); text-decoration: none; }
.analytics-insights > article { grid-template-columns: 41px minmax(0, 1fr); }
.analytics-insights > a { grid-template-columns: 41px minmax(0, 1fr) auto; }
.analytics-insights > a { transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.analytics-insights > a:hover { border-color: #bbd8ed; box-shadow: 0 12px 30px rgba(40,121,189,.09); transform: translateY(-1px); }
.analytics-insight-icon { display: grid; width: 39px; height: 39px; place-items: center; border-radius: 12px; background: var(--blue-soft); color: var(--blue); }
.analytics-insight-copy { min-width: 0; }
.analytics-insight-copy small, .analytics-insight-copy strong, .analytics-insight-copy em { display: block; }
.analytics-insight-copy small { color: var(--muted); font-size: 9.5px; font-weight: 720; }
.analytics-insight-copy strong { margin-top: 4px; color: var(--navy); font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; }
.analytics-insight-copy em { margin-top: 4px; color: var(--muted); font-size: 10px; font-style: normal; line-height: 1.35; }
.analytics-insights > a > .ui-icon { color: var(--blue); }
.analytics-section { margin-top: 36px; }
.analytics-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin: 0 2px 13px; }
.analytics-section-heading p { margin: 0 0 5px; color: var(--green-dark); font-size: 9px; font-weight: 880; letter-spacing: .15em; }
.analytics-section-heading h2 { margin: 0; color: var(--navy); font-size: 24px; line-height: 1.15; letter-spacing: -.035em; }
.analytics-section-heading > span { color: var(--muted); font-size: 10px; }
.analytics-conversion-grid { display: grid; grid-template-columns: minmax(340px, .85fr) minmax(0, 1.15fr); align-items: stretch; gap: 16px; }
.analytics-conversion-grid > .panel { align-self: stretch; }
.analytics-conversion-grid .funnel-panel { display: flex; flex-direction: column; }
.analytics-conversion-grid .funnel-panel > .panel-body { flex: 1; display: flex; }
.analytics-conversion-grid .funnel { flex: 1; justify-content: center; }
.analytics-conversion-grid .funnel-step { min-height: 86px; }
.analytics-conversion-grid .funnel-arrow { height: 30px; }
.analytics-contact-panel .panel-body { padding: 16px; }
.analytics-contact-panel .action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.analytics-contact-panel .action-card { min-height: 88px; padding: 13px; }
.analytics-contact-panel .action-card span { min-height: 0; font-size: 11px; line-height: 1.35; }
.analytics-contact-panel .action-card strong { font-size: 23px; }
.analytics-subsection-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 19px 2px 8px; }
.analytics-subsection-title h3 { margin: 0; color: var(--navy); font-size: 13px; }
.analytics-subsection-title span { color: var(--muted); font-size: 11px; font-weight: 780; }
.analytics-events-disclosure { overflow: hidden; margin-top: 16px; }
.analytics-events-disclosure > summary { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 19px; cursor: pointer; list-style: none; }
.analytics-events-disclosure > summary::-webkit-details-marker { display: none; }
.analytics-events-disclosure > summary > span:first-child strong, .analytics-events-disclosure > summary > span:first-child small { display: block; }
.analytics-events-disclosure > summary strong { color: var(--navy); font-size: 15px; }
.analytics-events-disclosure > summary small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.analytics-events-disclosure > summary > span:last-child { display: inline-flex; align-items: center; gap: 7px; color: var(--blue); font-size: 10px; font-weight: 800; }
.analytics-events-disclosure > summary .ui-icon { transition: transform .16s ease; }
.analytics-events-disclosure[open] > summary .ui-icon { transform: rotate(180deg); }
.analytics-events-disclosure[open] > summary { border-bottom: 1px solid var(--line); }
.analytics-acquisition-grid { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 16px; }
.analytics-audience-stack { min-width: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; gap: 16px; }
.analytics-audience-stack > .panel { height: 100%; align-self: stretch; }
.analytics-audience-stack .analytics-rank-row { grid-template-columns: 30px minmax(0, 1fr) 64px; gap: 10px; padding: 15px 16px; }
.analytics-audience-stack .analytics-rank-main > strong { overflow: visible; font-size: 12.5px; line-height: 1.35; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; }
.analytics-audience-stack .analytics-rank-value { min-width: 60px; }
.analytics-source-list { display: grid; }
.analytics-source-row { display: grid; grid-template-columns: 30px minmax(220px, 1fr) minmax(360px, .72fr); align-items: center; gap: 16px; border-bottom: 1px solid var(--line); padding: 16px 18px; }
.analytics-source-row:last-child { border-bottom: 0; }
.analytics-source-row dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.analytics-source-row dl > div { border-left: 1px solid var(--line); padding-left: 10px; }
.analytics-source-row dt { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.analytics-source-row dd { margin: 4px 0 0; color: var(--navy); font-size: 13px; font-weight: 850; }
.analytics-source-row dd small { color: var(--blue); font-size: 9px; }
.analytics-content-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 16px; }
.analytics-content-grid > .panel { height: 100%; display: flex; align-self: stretch; flex-direction: column; }
.analytics-content-grid > .panel > .analytics-page-list { flex: 1; }
.analytics-more { border-top: 1px solid var(--line); background: #fbfcfe; }
.analytics-more > summary { min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 7px; color: var(--blue); font-size: 11px; font-weight: 820; cursor: pointer; list-style: none; }
.analytics-more > summary::-webkit-details-marker { display: none; }
.analytics-more > summary .ui-icon { transition: transform .16s ease; }
.analytics-more[open] > summary .ui-icon { transform: rotate(180deg); }
.analytics-more[open] > summary { border-bottom: 1px solid var(--line); }
.analytics-page-extra { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.analytics-page-extra i { border-radius: 999px; background: #f1f5f9; color: #6f7b92; padding: 4px 7px; font-size: 9.5px; font-style: normal; font-weight: 750; }
.analytics-technology-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .65fr); align-items: stretch; gap: 16px; }
.analytics-technology-grid > .panel { align-self: stretch; }
.analytics-vitals-panel { display: flex; flex-direction: column; }
.analytics-vitals-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.analytics-vitals-panel .analytics-vitals-strip { flex: 1; }
.analytics-vital { min-width: 0; display: flex; justify-content: center; flex-direction: column; background: white; padding: 20px; }
.analytics-vital span, .analytics-vital strong, .analytics-vital small { display: block; }
.analytics-vital span { color: var(--muted); font-size: 11px; font-weight: 780; }
.analytics-vital strong { margin-top: 8px; color: var(--navy); font-size: 27px; letter-spacing: -.04em; }
.analytics-vital small { margin-top: 8px; color: var(--muted); font-size: 9.5px; }
.analytics-vital.positive { box-shadow: inset 0 3px 0 var(--green); }
.analytics-vital.warning { box-shadow: inset 0 3px 0 var(--amber); }
.analytics-vital.negative { box-shadow: inset 0 3px 0 var(--red); }
.analytics-detail-panel { align-self: start; overflow: hidden; }
.analytics-detail-panel > .panel-header { min-height: 68px; padding-block: 10px; }
.analytics-detail-panel > .panel-header h2 { font-size: 17px; }
.analytics-empty-state { min-height: 124px; display: grid; place-items: center; align-content: center; gap: 8px; background: linear-gradient(180deg, #fff, #fbfdff); color: var(--muted); padding: 22px; text-align: center; }
.analytics-empty-state > span { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; background: var(--blue-soft); color: var(--blue); }
.analytics-empty-state strong, .analytics-empty-state small { display: block; }
.analytics-empty-state strong { color: var(--navy); font-size: 13px; }
.analytics-empty-state small { max-width: 220px; font-size: 10.5px; line-height: 1.4; }
.analytics-rank-list, .analytics-page-list, .analytics-event-list { display: grid; }
.analytics-rank-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); padding: 14px 18px; }
.analytics-rank-row:last-child, .analytics-page-row:last-child, .analytics-event-row:last-child { border-bottom: 0; }
.analytics-rank { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 10px; background: #f1f5f9; color: #7d899e; font-size: 9px; font-weight: 850; }
.analytics-rank-main { min-width: 0; }
.analytics-rank-main > strong { display: block; color: var(--navy); font-size: 12.5px; line-height: 1.35; overflow-wrap: anywhere; }
.analytics-progress { display: block; width: 100%; height: 5px; overflow: hidden; margin-top: 8px; border-radius: 999px; background: #edf2f7; }
.analytics-progress > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2c83c7, #64ade3); }
.analytics-rank-value { min-width: 66px; text-align: right; }
.analytics-rank-value strong, .analytics-rank-value span { display: block; }
.analytics-rank-value strong { color: var(--navy); font-size: 16px; }
.analytics-rank-value span { margin-top: 3px; color: var(--blue); font-size: 10px; font-weight: 800; }
.analytics-page-row { min-width: 0; min-height: 112px; display: grid; grid-template-columns: 30px minmax(0, 1fr) 82px; align-items: start; gap: 14px; border-bottom: 1px solid var(--line); color: inherit; padding: 16px 18px; text-decoration: none; transition: background .15s ease; }
.analytics-page-row:hover { background: #f8fbfe; }
.analytics-page-row:focus-visible { outline: 0; background: #f5faff; box-shadow: inset 3px 0 0 var(--blue); }
.analytics-page-main { min-width: 0; }
.analytics-page-title { display: flex; min-width: 0; align-items: flex-start; flex-direction: column; gap: 6px; }
.analytics-page-title > strong { min-width: 0; color: var(--navy); font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; }
.analytics-page-title .page-badges { flex: 0 0 auto; }
.analytics-page-path { display: block; margin-top: 5px; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; line-height: 1.35; overflow-wrap: anywhere; }
.analytics-page-value { text-align: right; }
.analytics-page-value strong, .analytics-page-value small, .analytics-page-value em { display: block; }
.analytics-page-value strong { color: var(--navy); font-size: 16px; }
.analytics-page-value small { margin-top: 3px; color: var(--muted); font-size: 9.5px; line-height: 1.25; }
.analytics-page-value em { margin-top: 6px; color: var(--blue); font-size: 10px; font-style: normal; font-weight: 800; }
.analytics-event-row { display: grid; grid-template-columns: 30px minmax(180px, 1fr) minmax(300px, .9fr); align-items: center; gap: 13px; border-bottom: 1px solid var(--line); padding: 14px 18px; }
.analytics-event-row dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.analytics-event-row dl > div { border-left: 1px solid var(--line); padding-left: 12px; }
.analytics-event-row dt { color: var(--muted); font-size: 9.5px; text-transform: uppercase; }
.analytics-event-row dd { margin: 4px 0 0; color: var(--navy); font-size: 12px; font-weight: 850; }

@container admin-content (max-width: 1160px) {
  .analytics-insights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analytics-audience-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analytics-content-grid { grid-template-columns: minmax(0, 1fr); }
}

@container admin-content (max-width: 850px) {
  .seo-data-status { grid-template-columns: auto minmax(0, 1fr); }
  .seo-data-status dl { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 11px; }
  .seo-data-status dl > div:first-child { border-left: 0; }
  .seo-visibility-grid, .seo-trend-grid { grid-template-columns: minmax(0, 1fr); }
  .seo-rank-hero { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .seo-query-tools { align-items: stretch; flex-direction: column; }
  .seo-query-search { width: 100%; max-width: none; }
  .seo-filter-chips { justify-content: flex-start; }
}

@media (max-width: 1100px) {
  .lead-page-layout { grid-template-columns: 1fr; }
  .lead-page-aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analytics-conversion-grid, .analytics-acquisition-grid, .analytics-technology-grid { grid-template-columns: minmax(0, 1fr); }
  .analytics-content-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .lead-profile-hero { grid-template-columns: 48px minmax(0, 1fr); gap: 12px; padding: 16px; }
  .lead-profile-avatar { width: 48px; height: 48px; border-radius: 15px; font-size: 16px; }
  .lead-profile-actions { grid-column: 1 / -1; justify-content: stretch; }
  .lead-profile-actions > * { flex: 1; }
  .lead-page-aside, .lead-detail-grid { grid-template-columns: 1fr; }
  .lead-page-card { border-radius: 16px; padding: 15px; }
  .message-translation-head { align-items: flex-start; flex-direction: column; }
  .message-translation-head > div { width: 100%; }
  .message-translation-head button { flex: 1; justify-content: center; }
  .lead-edit-actions { bottom: 8px; }
}
.lead-danger-zone .danger-button { flex: 0 0 auto; min-height: 40px; font-size: 12px; }
.modal-backdrop { display: grid; place-items: center; overflow-y: auto; padding: 20px; }
.modal { z-index: 101; width: min(100%, 560px); max-height: calc(100dvh - 40px); overflow-y: auto; border-radius: 20px; background: white; box-shadow: var(--shadow-lg); }
.modal.modal-wide { width: min(100%, 690px); }
.modal-wide .modal-head { padding-block: 14px; }
.modal-wide .modal-body { padding-block: 15px; }
.modal-wide .form-grid { gap: 9px 13px; }
.modal-wide .field { gap: 5px; }
.modal-wide .field > span { font-size: 12px; }
.modal-wide .input, .modal-wide .select { min-height: 42px; border-radius: 10px; }
.modal-wide .textarea { min-height: 76px; padding-top: 10px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 17px 19px; }
.modal-head h2 { margin: 0; color: var(--navy); font-size: 19px; }
.modal-head p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.4; }
.modal-body { padding: 19px; }
.funnel-detail-modal { width: min(100%, 900px) !important; }
.funnel-detail-modal .modal-body { max-height: calc(100dvh - 132px); overflow-y: auto; padding: 18px; }
.funnel-detail-period { display: inline-flex; min-height: 32px; align-items: center; gap: 7px; margin-bottom: 13px; border-radius: 999px; background: #eef7fd; color: var(--blue); padding: 0 11px; font-size: 11px; font-weight: 800; }
.funnel-detail-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: hidden; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 14px; background: #f8fafc; }
.funnel-detail-summary article { min-width: 0; border-right: 1px solid var(--line); padding: 13px 15px; }
.funnel-detail-summary article:last-child { border-right: 0; }
.funnel-detail-summary span, .funnel-detail-summary strong { display: block; }
.funnel-detail-summary span { color: var(--muted); font-size: 10px; font-weight: 740; }
.funnel-detail-summary strong { margin-top: 4px; color: var(--navy); font-size: 23px; line-height: 1; }
.funnel-detail-list { display: grid; gap: 8px; }
.funnel-detail-row { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 13px; background: white; padding: 13px 14px; }
.funnel-detail-main { min-width: 0; }
.funnel-detail-title { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.funnel-detail-title a, .funnel-detail-title strong { min-width: 0; overflow: hidden; color: var(--navy); font-size: 12px; font-weight: 800; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.funnel-detail-title a { display: inline-flex; align-items: center; gap: 5px; }
.funnel-detail-title a:hover { color: var(--blue); }
.funnel-detail-title time { flex: 0 0 auto; color: var(--muted); font-size: 10px; white-space: nowrap; }
.funnel-detail-path { display: block; overflow: hidden; margin-top: 3px; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.funnel-detail-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.funnel-detail-tags > span { display: inline-flex; min-height: 22px; align-items: center; border-radius: 999px; background: #f1f5f9; color: #53617a; padding: 0 8px; font-size: 9px; font-weight: 760; }
.funnel-detail-tags .status-pill { padding-inline: 8px; }
.funnel-visitor { min-width: 88px; color: var(--muted); font-size: 9px; text-align: right; }
.funnel-visitor strong { display: block; margin-top: 4px; color: var(--navy); font-size: 11px; letter-spacing: .04em; }
.funnel-lead-row { width: 100%; grid-template-columns: 38px minmax(0, 1fr) auto; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color .16s ease, background .16s ease, box-shadow .16s ease; }
.funnel-lead-row:hover { border-color: #b7d4ec; background: #f8fcff; box-shadow: 0 8px 22px rgba(40,121,189,.07); }
.funnel-lead-row:focus-visible { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(40,121,189,.1); }
.funnel-lead-avatar { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; background: #eef7fd; color: var(--navy); font-size: 15px; font-weight: 850; }
.funnel-open-lead { display: inline-flex; align-items: center; gap: 5px; color: var(--blue); font-size: 10px; font-weight: 800; white-space: nowrap; }
.funnel-detail-note { margin: 12px 2px 0; color: var(--muted); font-size: 10px; text-align: center; }
.funnel-detail-loading { min-height: 260px; display: grid; place-items: center; align-content: center; gap: 12px; color: var(--muted); }
.funnel-detail-loading strong { font-size: 12px; }
.funnel-empty { min-height: 240px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.form-grid .field { margin: 0; }
.form-grid .full { grid-column: 1 / -1; }
.modal-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; margin-top: 3px; }
.manual-contact-hint { margin: -4px 0 0; color: var(--muted); font-size: 11px; }
.assignee-readonly { display: grid; gap: 3px; min-height: 46px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; background: #f5f8fc; }
.assignee-readonly strong { color: var(--navy); font-size: 13px; }
.assignee-readonly small { color: var(--muted); font-size: 11px; line-height: 1.35; }
.password-form { display: grid; gap: 12px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.password-form h3 { margin: 0 0 2px; color: var(--navy); font-size: 15px; }
.password-form .field small { color: var(--muted); font-size: 11px; }
.password-form .primary-button { justify-self: start; }
.danger-modal-head { justify-content: flex-start; background: #fff9fa; }
.danger-modal-head .icon-button { margin-left: auto; }
.danger-modal-icon { display: grid; width: 44px; height: 44px; flex: 0 0 auto; place-items: center; border-radius: 13px; background: var(--red-soft); color: #a73843; }
.delete-warning { margin-bottom: 18px; border: 1px solid #efcbd0; border-radius: 14px; background: #fff9fa; padding: 15px; }
.delete-warning strong { color: #8e303a; font-size: 13px; line-height: 1.5; }
.delete-warning p { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.recovery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; margin: 14px 0 20px; }
.recovery-grid code { border: 1px solid var(--line); border-radius: 9px; background: #f8fafc; padding: 9px; text-align: center; }
.empty-inline { color: var(--muted); font-size: 13px; line-height: 1.6; }
.toast { position: fixed; z-index: 200; right: 22px; bottom: 22px; max-width: min(420px, calc(100vw - 44px)); border-radius: 12px; background: var(--navy); color: white; padding: 13px 16px; box-shadow: 0 20px 60px rgba(16,29,73,.25); font-size: 13px; }
.toast.error { background: #963640; }
.error-state { min-height: 420px; display: grid; place-items: center; align-content: center; color: var(--red); text-align: center; }
.error-state h1 { margin: 15px 0 0; color: var(--navy); }
.error-state p { max-width: 500px; margin: 8px 0 20px; color: var(--muted); }

/* Loading */
.loading-page { min-height: 520px; }
.skeleton { position: relative; overflow: hidden; border-radius: 14px; background: #e9eef5; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent); animation: shimmer 1.25s infinite; }
.skeleton-title { width: 300px; height: 46px; margin-bottom: 30px; }
.skeleton-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.skeleton-card { height: 150px; }
.skeleton-panel { height: 350px; margin-top: 16px; }
@keyframes shimmer { to { transform: translateX(100%); } }

@media (max-width: 1280px) {
  .metrics-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .system-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analytics-insights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analytics-audience-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1320px) {
  .metrics-grid.analytics-metrics { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (min-width: 1100px) {
  .metrics-grid.overview-metrics { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-story { display: none; }
  .auth-form-wrap { min-height: 100vh; padding: 24px; }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 264px; visibility: hidden; transform: translateX(-105%); transition: transform .2s ease, visibility 0s linear .2s; box-shadow: 20px 0 60px rgba(16,29,73,.25); }
  .shell.menu-open .sidebar { visibility: visible; transform: translateX(0); transition-delay: 0s; }
  .menu-scrim { position: fixed; z-index: 55; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(7,15,39,.44); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
  .shell.menu-open .menu-scrim { display: block; opacity: 1; pointer-events: auto; }
  .mobile-menu { display: grid; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .filter-bar { flex-wrap: wrap; }
  .filter-search { flex-basis: 100%; }
  .two-column-grid { grid-template-columns: 1fr; }
  .attention-counts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .drawer { top: 0; right: 0; width: 100%; height: 100dvh; border: 0; border-radius: 0; }
  .drawer-head { padding: 17px 15px; }
  .drawer-head-actions .status-pill { display: none; }
  .drawer-body { padding: 12px; }
  .lead-section { border-radius: 15px; padding: 15px; }
  .lead-bottom-grid { grid-template-columns: 1fr; }
  .topbar { min-height: 66px; padding-inline: 14px; }
  .topbar-context span { display: none; }
  .period-select { max-width: 154px; }
  .custom-period { min-width: 154px; }
  .content { padding: 30px 14px 42px; }
  .page-head { align-items: flex-start; flex-direction: column; margin-bottom: 19px; }
  .head-actions { width: 100%; }
  .head-actions > * { flex: 1; }
  .metrics-grid, .seo-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-card { min-height: 142px; }
  .metric-value { font-size: 32px; }
  .insight-banner { grid-template-columns: auto 1fr; }
  .insight-meta { display: none; }
  .period-status { grid-template-columns: auto 1fr; }
  .period-status > b { display: none; }
  .summary-strip, .team-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .attention-counts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .attention-lead { grid-template-columns: auto minmax(0, 1fr) auto; }
  .attention-tag { justify-self: end; }
  .attention-date { grid-column: 2 / -1; }
  .attention-lead > .ui-icon { display: none; }
  .analytics-grid, .settings-grid { grid-template-columns: 1fr; }
  .data-freshness { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .data-freshness > div:nth-child(2) { border-right: 0; }
  .data-freshness > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analytics-primary-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analytics-primary-kpis .metric-card:last-child { grid-column: 1 / -1; }
  .analytics-secondary-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analytics-chart-header { min-height: 0; align-items: flex-start; flex-direction: column; padding-block: 14px; }
  .analytics-chart-tabs { width: 100%; overflow-x: auto; }
  .analytics-chart-tabs button { min-width: max-content; flex: 1; }
  .analytics-insights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analytics-section { margin-top: 24px; }
  .analytics-section-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .analytics-section-heading h2 { font-size: 20px; }
  .analytics-audience-stack { grid-template-columns: 1fr; }
  .analytics-source-row { grid-template-columns: 28px minmax(0, 1fr); padding-inline: 13px; }
  .analytics-source-row dl { grid-column: 2; min-width: 0; }
  .analytics-vitals-strip { grid-template-columns: 1fr; }
  .analytics-vital { padding: 16px; }
  .system-grid { grid-template-columns: 1fr; }
  .filter-bar > label, .filter-select, .filter-bar > button { width: 100%; min-width: 100%; }
  .filter-search { min-width: 100%; }
  .table-scroll { overflow-x: auto; overscroll-behavior-inline: contain; }
  .data-table:not(.leads-table) { min-width: 620px; }
  .seo-pages-table { min-width: 760px !important; }
  .seo-kpi-grid, .seo-breakdown-grid { grid-template-columns: 1fr; }
  .seo-data-status dl { grid-template-columns: 1fr; }
  .seo-data-status dl > div { border-left: 0; border-bottom: 1px solid var(--line); padding: 9px 0; }
  .seo-data-status dl > div:last-child { border-bottom: 0; }
  .seo-rank-buckets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seo-rank-preview-footer { align-items: stretch; flex-direction: column; }
  .seo-rank-preview-footer button { width: 100%; }
  .seo-table-footer { align-items: flex-start; flex-direction: column; }
  .leads-table thead { display: none; }
  .leads-table, .leads-table tbody, .leads-table tr, .leads-table td { display: block; width: 100%; }
  .leads-table tbody { padding: 10px; }
  .leads-table tr { margin-bottom: 10px; border: 1px solid var(--line); border-radius: 14px; background: white; padding: 8px; }
  .leads-table td { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 0; padding: 8px; text-align: right; }
  .leads-table td::before { content: attr(data-label); color: var(--muted); font-size: 11px; text-align: left; }
  .leads-table .contact-cell { display: block; max-width: none; text-align: left; }
  .leads-table .contact-cell::before { display: none; }
  .leads-table .lead-row:hover { box-shadow: inset 3px 0 0 #2e85c9; }
  .pagination { align-items: flex-start; flex-direction: column; }
  .chart-wrap { height: 286px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-inline: contain; scrollbar-width: thin; scrollbar-color: #aebbd0 #edf1f6; }
  .chart-wrap svg { width: 920px; min-width: 920px; height: 270px; }
  .page-row { grid-template-columns: 26px minmax(0, 1fr) auto; gap: 9px; padding-inline: 13px; }
  .page-title-line { align-items: flex-start; flex-direction: column; gap: 5px; }
  .page-total { min-width: 42px; }
  .details-grid, .lead-controls, .form-grid { grid-template-columns: 1fr; }
  .permission-grid { grid-template-columns: 1fr; }
  .lead-save { width: 100%; grid-column: auto; justify-self: stretch; }
  .form-grid .full { grid-column: auto; }
  .lead-danger-zone { align-items: stretch; flex-direction: column; }
  .lead-danger-zone .danger-button { width: 100%; }
  .funnel-detail-summary { grid-template-columns: 1fr 1fr 1fr; }
  .funnel-detail-summary article { padding: 11px; }
  .funnel-detail-title { align-items: flex-start; flex-direction: column; gap: 4px; }
  .funnel-detail-row { grid-template-columns: minmax(0, 1fr); }
  .funnel-visitor { min-width: 0; text-align: left; }
  .funnel-visitor strong { display: inline; margin: 0 0 0 5px; }
  .funnel-lead-row { grid-template-columns: 36px minmax(0, 1fr); }
  .funnel-open-lead { grid-column: 2; }
  .analytics-rank-row, .analytics-page-row, .analytics-event-row { padding-inline: 13px; }
  .analytics-page-row { grid-template-columns: 28px minmax(0, 1fr) 58px; gap: 9px; }
  .analytics-page-title { align-items: flex-start; flex-direction: column; gap: 5px; }
  .analytics-event-row { grid-template-columns: 28px minmax(0, 1fr); }
  .analytics-event-row dl { grid-column: 2; min-width: 0; }
  .modal-actions { align-items: stretch; flex-direction: column-reverse; }
  .modal-actions > * { width: 100%; }
}

@media (max-width: 460px) {
  .topbar-context strong { display: none; }
  .topbar-actions { margin-left: auto; }
  .period-select { width: 140px; font-size: 12px; }
  .custom-period { width: 140px; min-width: 140px; }
  .page-period-actions .custom-period { width: 100%; min-width: 100%; }
  .custom-period-trigger { min-height: 42px; padding-inline: 12px; font-size: 12px; }
  .custom-period-menu { left: 0; right: auto; width: 100%; }
  .seo-rank-buckets { grid-template-columns: 1fr; }
  .seo-rank-buckets span { min-height: 0; }
  .seo-rank-preview-row { align-items: start; }
  .metrics-grid, .seo-summary, .summary-strip, .team-summary { grid-template-columns: 1fr; }
  .attention-counts { grid-template-columns: 1fr 1fr; }
  .metric-card { min-height: 134px; }
  .analytics-primary-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analytics-primary-kpis .metric-card { min-height: 116px; padding: 13px; }
  .analytics-primary-kpis .metric-label { min-height: 31px; font-size: 10.5px; }
  .analytics-primary-kpis .metric-icon { width: 27px; height: 27px; }
  .analytics-primary-kpis .metric-value { margin-top: 5px; font-size: 27px; }
  .analytics-primary-kpis .metric-foot { display: none; }
  .analytics-primary-kpis .metric-meta { min-height: 21px; padding-top: 7px; }
  .analytics-secondary-strip, .analytics-insights { grid-template-columns: 1fr; }
  .analytics-insights > article, .analytics-insights > a { padding: 12px; }
  .analytics-chart-tabs button { padding-inline: 10px; }
  .analytics-section-heading h2 { font-size: 18px; }
  .analytics-contact-panel .action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analytics-events-disclosure > summary { align-items: flex-start; flex-direction: column; padding-block: 13px; }
  .analytics-source-row dl { grid-template-columns: 1fr; }
  .analytics-source-row dl > div { display: flex; align-items: center; justify-content: space-between; }
  .data-freshness { grid-template-columns: 1fr; }
  .funnel-detail-summary { grid-template-columns: 1fr; }
  .funnel-detail-summary article { border-right: 0; border-bottom: 1px solid var(--line); }
  .funnel-detail-summary article:last-child { border-bottom: 0; }
  .analytics-page-row { grid-template-columns: 26px minmax(0, 1fr); }
  .analytics-page-value { grid-column: 2; display: flex; align-items: baseline; gap: 7px; text-align: left; }
  .analytics-page-value strong, .analytics-page-value small, .analytics-page-value em { display: inline; margin: 0; }
  .analytics-event-row dl { grid-template-columns: 1fr; }
  .analytics-event-row dl > div { display: flex; align-items: center; justify-content: space-between; }
  .data-freshness > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .data-freshness > div:nth-child(3) { border-bottom: 1px solid var(--line); }
  .empty-actions { width: 100%; flex-direction: column; }
  .recovery-grid { grid-template-columns: 1fr; }
}

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