:root {
  --ink: #302b29;
  --ink-2: #453f3c;
  --muted: #716a65;
  --line: #d8cec5;
  --paper: #f3eee6;
  --white: #fff;
  --rose: #a76367;
  --rose-hover: #8f5358;
  --rose-soft: #eee0df;
  --gold: #a47b4e;
  --green: #4e816b;
  --green-soft: #e4efe9;
  --blue: #657d92;
  --shadow: 0 18px 55px rgba(48, 43, 41, .06);
  --radius: 4px;
  --display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --body: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { min-width: 320px; overflow-x: hidden; background: var(--paper); }
body { margin: 0; overflow-x: hidden; color: var(--ink); background: radial-gradient(circle at 86% 8%, rgba(167,99,103,.06), transparent 27%), var(--paper); font: 14px/1.5 var(--body); }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; width: 282px; display: flex; flex-direction: column; overflow: hidden; color: #f7f5ef; background: var(--ink); padding: 27px 22px 20px; }
.sidebar::after { content: ""; position: absolute; inset: auto 0 0; z-index: -1; height: 44%; background: linear-gradient(180deg, var(--ink) 0%, rgba(48,43,41,.9) 25%, rgba(48,43,41,.72) 100%), url('/static/rose-field.jpg') center/cover; filter: grayscale(1); opacity: .34; }
.sidebar__head, .sidebar__footer, .topbar, .panel-head, .hero-line, .kpi-top, .pagination, .drawer-head { display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font-size: 13px; font-weight: 750; letter-spacing: .22em; text-decoration: none; }
.brand--light { color: #fff; }
.brand-logo { display: grid; width: 42px; height: 42px; place-items: center; overflow: hidden; background: #fff; }
.brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.brand--light .brand-logo { background: var(--ink); }
.brand--light .brand-logo img { filter: invert(1); mix-blend-mode: screen; }
.workspace-label { margin: 48px 12px 15px; color: #aaa29c; font-size: 8px; letter-spacing: .22em; }
.nav { display: grid; gap: 7px; }
.nav-item { width: 100%; min-height: 48px; display: flex; align-items: center; gap: 12px; padding: 0 13px; border: 0; border-inline-start: 2px solid transparent; border-radius: 0; color: #bcb4ae; background: transparent; text-align: start; cursor: pointer; transition: .2s ease; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.045); }
.nav-item.active { color: #fff; border-inline-start-color: var(--rose); background: rgba(255,255,255,.07); box-shadow: none; }
.nav-item--disabled { cursor: default; opacity: .58; }
.nav-icon { width: 22px; color: #dedbd2; font-size: 19px; text-align: center; }
.nav-count, .soon { margin-inline-start: auto; padding: 2px 7px; border-radius: 2px; color: #d7cec8; background: rgba(255,255,255,.09); font-size: 9px; }
.sidebar__insight { margin-top: auto; padding: 19px; border: 1px solid rgba(216,206,197,.22); border-radius: 2px; background: rgba(48,43,41,.74); backdrop-filter: blur(10px); }
.sidebar__insight strong { display: block; margin: 9px 0 5px; font: 21px/1.15 var(--display); }
.sidebar__insight p { margin: 0; color: #9ea098; font-size: 12px; }
.sidebar__footer { gap: 10px; margin-top: 18px; padding: 16px 4px 0; border-top: 1px solid #30322f; }
.sidebar__footer > div:nth-child(2) { display: grid; flex: 1; }
.sidebar__footer strong { font-size: 12px; }
.sidebar__footer span { color: #8f918b; font-size: 10px; }
.user-avatar { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: #fff; background: var(--rose); font-weight: 700; }
.main { min-height: 100vh; margin-inline-start: 282px; }
.topbar { position: sticky; top: 0; z-index: 20; min-height: 88px; padding: 16px 38px; border-bottom: 1px solid rgba(216,206,197,.8); background: rgba(243,238,230,.91); backdrop-filter: blur(18px); }
.page-heading h1 { margin: 1px 0 0; font: 30px/1.05 var(--display); font-weight: 500; }
.eyebrow { color: #85867f; font-size: 9px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow--light { color: #a5a69f; }
.topbar__actions { display: flex; align-items: center; gap: 9px; }
.sync-state { display: inline-flex; align-items: center; gap: 7px; margin-inline-end: 7px; color: var(--muted); font-size: 11px; }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #66a17d; box-shadow: 0 0 0 4px rgba(102,161,125,.12); }
.button, .icon-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; cursor: pointer; transition: .18s ease; }
.button { min-height: 42px; padding: 0 16px; border-radius: 2px; font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: wait; opacity: .6; }
.button--primary { color: #fff; background: var(--ink); box-shadow: none; }
.button--primary:hover { background: #443d3a; }
.button--ghost { border-color: var(--line); background: rgba(255,255,255,.68); }
.button--wide { width: 100%; min-height: 48px; justify-content: space-between; padding: 0 19px; }
.compact { min-width: 42px; padding: 0 11px; }
.icon-button { width: 38px; height: 38px; border-color: var(--line); border-radius: 2px; background: transparent; }
.icon-button:hover { background: #eceae4; }
.icon-button--light { border-color: #3d3f3b; color: #ddd; }
.sidebar-close, .menu-button { display: none; }
.content { width: 100%; max-width: 1440px; margin: 0 auto; padding: 38px 44px 60px; }
.view { display: none; animation: view-in .25s ease; }
.view.active { display: block; }
@keyframes view-in { from { opacity: 0; transform: translateY(5px); } }
.hero-line { margin-bottom: 24px; }
.hero-line h2 { margin: 3px 0 4px; font: 34px/1.1 var(--display); font-weight: 500; }
.hero-line p { margin: 0; color: var(--muted); }
.last-update { color: var(--muted); font-size: 11px; }
.brand-hero { position: relative; min-height: 330px; display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(360px, .94fr); overflow: hidden; margin-bottom: 18px; color: var(--paper); border: 1px solid var(--ink); background: var(--ink); }
.brand-hero::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 58%; pointer-events: none; background: radial-gradient(circle at 20% 90%, rgba(167,99,103,.22), transparent 43%); }
.brand-hero__copy { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; padding: 44px 46px; }
.hero-signature { color: #cfc3bb; font-size: 9px; font-weight: 700; letter-spacing: .2em; }
.brand-hero h2 { max-width: 560px; margin: 20px 0 14px; font: 54px/.92 var(--display); font-weight: 500; letter-spacing: -.025em; }
.brand-hero h2 em { color: #d4a2a5; font-weight: 400; }
.brand-hero p { max-width: 490px; margin: 0; color: #d5cec8; font-size: 14px; line-height: 1.75; }
.hero-meta { display: flex; align-items: center; gap: 10px; margin-top: 29px; color: #b7ada7; font-size: 10px; letter-spacing: .04em; }
.brand-hero__image { position: relative; min-height: 330px; background: linear-gradient(90deg, var(--ink) 0%, rgba(48,43,41,.32) 38%, rgba(48,43,41,.08) 100%), linear-gradient(0deg, rgba(48,43,41,.34), transparent 55%), url('/static/rose-field.jpg') center/cover; filter: saturate(.56) contrast(1.02); }
.brand-hero__image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, rgba(167,99,103,.1), transparent 48%); mix-blend-mode: color; }
.brand-hero__image > span { position: absolute; right: 22px; bottom: 19px; z-index: 1; padding: 7px 10px; border: 1px solid rgba(255,255,255,.45); color: #fff; background: rgba(48,43,41,.45); font-size: 8px; letter-spacing: .19em; backdrop-filter: blur(6px); }
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.kpi-card, .panel, .table-card { border: 1px solid var(--line); background: rgba(255,255,255,.76); box-shadow: var(--shadow); }
.kpi-card { position: relative; min-height: 152px; overflow: hidden; padding: 21px; border-radius: var(--radius); }
.kpi-card::after { content: ""; position: absolute; inset: auto 20px 0; height: 2px; background: rgba(167,99,103,.2); }
.kpi-card--dark { color: #fff; border-color: var(--ink); background: var(--ink); }
.kpi-card--dark::after { background: var(--rose); }
.kpi-top { color: var(--muted); font-size: 11px; font-weight: 600; }
.kpi-card--dark .kpi-top { color: #b7b8b3; }
.kpi-card strong { display: block; margin-top: 16px; font: 43px/.95 var(--display); font-weight: 500; }
.kpi-card strong small { margin-inline-start: 4px; color: var(--muted); font: 11px/1 sans-serif; }
.kpi-card p { margin: 12px 0 0; color: var(--muted); font-size: 11px; }
.metric-icon { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 50%; color: var(--ink); background: #ebe4dc; }
.kpi-card--dark .metric-icon { color: #fff; background: #393b38; }
.metric-icon--rose { color: var(--rose); background: var(--rose-soft); }
.metric-icon--green { color: var(--green); background: var(--green-soft); }
.trend { padding: 3px 7px; border-radius: 20px; color: #b9ddc8; background: rgba(102,161,125,.2); }
.score-track { height: 3px; margin-top: 20px; overflow: hidden; border-radius: 0; background: #e8dfd6; }
.score-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--rose), var(--gold)); transition: width .6s ease; }
.collection-strip { display: grid; grid-template-columns: minmax(240px, .75fr) minmax(0, 1.6fr); align-items: center; gap: 30px; margin-top: 15px; padding: 25px 28px; border: 1px solid var(--line); background: rgba(255,255,255,.55); }
.collection-strip__intro { padding-inline-end: 22px; border-inline-end: 1px solid var(--line); }
.collection-strip h3 { margin: 5px 0 6px; font: 25px/1.05 var(--display); font-weight: 500; }
.collection-strip p { margin: 0; color: var(--muted); font-size: 11px; }
.product-focus { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.product-focus-card { position: relative; min-height: 88px; padding: 15px 15px 13px; border-inline-start: 2px solid var(--rose); background: #f8f4ee; }
.product-focus-card span { display: block; color: var(--muted); font-size: 8px; letter-spacing: .08em; }
.product-focus-card strong { display: block; margin: 6px 0 3px; overflow: hidden; color: var(--ink); font: 17px/1.1 var(--display); text-overflow: ellipsis; white-space: nowrap; }
.product-focus-card b { color: var(--rose); font: 18px/1 var(--display); font-weight: 500; }
.product-focus-card b small { color: var(--muted); font: 8px/1 var(--body); letter-spacing: .08em; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(290px, .85fr); gap: 15px; margin-top: 15px; }
.dashboard-grid > * { min-width: 0; }
.dashboard-grid--bottom { grid-template-columns: minmax(0, 1.45fr) minmax(330px, 1fr); }
.panel { min-height: 320px; padding: 25px; border-radius: var(--radius); }
.panel-head { min-height: 39px; }
.panel-head h3 { margin: 4px 0 0; font: 22px/1.1 var(--display); font-weight: 500; }
.text-button { border: 0; color: var(--muted); background: transparent; font-size: 11px; cursor: pointer; }
.text-button:hover { color: var(--ink); }
.tier-visual { display: grid; grid-template-columns: 210px 1fr; align-items: center; gap: 28px; min-height: 235px; }
.donut { position: relative; width: 174px; height: 174px; display: grid; place-items: center; margin: auto; border-radius: 50%; background: conic-gradient(var(--rose) 0 25%, var(--gold) 25% 50%, var(--blue) 50% 75%, #d4d2cb 75%); }
.donut::before { content: ""; position: absolute; inset: 17px; border-radius: 50%; background: #fcfaf6; }
.donut div { position: relative; display: grid; text-align: center; }
.donut strong { font: 36px/1 var(--display); }
.donut span { margin-top: 6px; color: var(--muted); font-size: 8px; letter-spacing: .14em; }
.tier-list { display: grid; gap: 14px; }
.tier-row { display: grid; grid-template-columns: 11px 1fr auto; align-items: center; gap: 9px; }
.tier-row i { width: 9px; height: 9px; border-radius: 3px; }
.tier-row span { color: var(--muted); font-size: 11px; }
.tier-row strong { font: 19px/1 var(--display); }
.coverage-list { display: grid; gap: 22px; margin-top: 27px; }
.coverage-item__head { display: flex; justify-content: space-between; margin-bottom: 7px; font-size: 11px; }
.coverage-item__head span:last-child { color: var(--muted); }
.progress { height: 4px; overflow: hidden; border-radius: 0; background: #e7ded5; }
.progress i { display: block; width: 0; height: 100%; border-radius: 0; background: var(--rose); transition: width .6s ease; }
.area-chart { min-height: 236px; display: flex; align-items: flex-end; gap: 12px; padding-top: 32px; }
.area-column { min-width: 45px; flex: 1; display: grid; grid-template-rows: 1fr auto auto; align-items: end; gap: 7px; height: 205px; text-align: center; }
.area-bar-wrap { height: 100%; display: flex; align-items: flex-end; justify-content: center; border-bottom: 1px solid var(--line); }
.area-bar { position: relative; width: min(42px, 75%); min-height: 5px; border-radius: 7px 7px 2px 2px; background: linear-gradient(180deg, var(--rose), #d7a7a8); transition: height .6s ease; }
.area-bar span { position: absolute; top: -23px; left: 50%; transform: translateX(-50%); font-size: 10px; }
.area-column strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.area-column small { color: var(--muted); font-size: 9px; }
.activity-list { display: grid; gap: 4px; margin-top: 19px; }
.activity-item { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #eeece7; }
.activity-item:last-child { border: 0; }
.activity-icon { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: #eee5dc; }
.activity-item strong, .activity-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-item strong { font-size: 11px; }
.activity-item span { display: block; max-width: 170px; color: var(--muted); font-size: 9px; }
.status { display: inline-flex; align-items: center; min-height: 23px; padding: 0 8px; border-radius: 2px; font-size: 9px; font-weight: 700; text-transform: capitalize; }
.status--ready, .status--completed { color: #34654f; background: var(--green-soft); }
.status--review, .status--running { color: #805e2d; background: #f3e9d7; }
.status--not_fit, .status--failed { color: #914d52; background: var(--rose-soft); }
.status--not_evaluated, .status--queued { color: #666; background: #ecebe7; }
.leads-hero { margin-bottom: 18px; }
.filter-panel { display: grid; grid-template-columns: minmax(220px, 1.4fr) repeat(5, minmax(125px, .7fr)) auto; gap: 8px; margin-bottom: 14px; padding: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.48); }
.filter-panel select, .search-box { min-height: 43px; border: 1px solid var(--line); border-radius: 2px; background: #fffdfa; }
.filter-panel select { min-width: 0; padding: 0 30px 0 11px; color: #555851; }
.search-box { display: flex; align-items: center; gap: 8px; padding: 0 12px; }
.search-box span { color: var(--muted); font-size: 17px; }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; }
.table-card { overflow: hidden; border-radius: var(--radius); }
.table-scroll { overflow-x: auto; }
.lead-table { width: 100%; border-collapse: collapse; white-space: nowrap; }
.lead-table th { padding: 14px 15px; border-bottom: 1px solid var(--line); color: var(--muted); background: #e9e1d9; font-size: 8px; font-weight: 750; letter-spacing: .1em; text-align: start; text-transform: uppercase; }
.lead-table td { height: 70px; padding: 10px 15px; border-bottom: 1px solid #e8dfd6; font-size: 11px; }
.lead-table tbody tr { cursor: pointer; transition: background .15s; }
.lead-table tbody tr:hover { background: #faf8f4; }
.lead-table tbody tr:last-child td { border-bottom: 0; }
.business-cell { display: grid; grid-template-columns: 34px minmax(130px, 1fr); align-items: center; gap: 10px; max-width: 230px; }
.business-avatar { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; color: #fff; background: var(--ink); font: 17px var(--display); }
.business-cell div:last-child { min-width: 0; }
.business-cell strong, .business-cell span { display: block; overflow: hidden; text-overflow: ellipsis; }
.business-cell span { color: var(--muted); font-size: 9px; }
.priority-number { display: grid; width: 29px; height: 29px; place-items: center; border: 1px solid var(--rose); border-radius: 50%; color: var(--rose-hover); font-weight: 700; }
.score-pill { display: inline-flex; align-items: center; gap: 7px; }
.score-pill strong { min-width: 27px; font: 19px var(--display); }
.score-mini { width: 38px; height: 4px; overflow: hidden; border-radius: 4px; background: #e7e5df; }
.score-mini i { display: block; height: 100%; background: var(--rose); }
.tier-badge { padding: 4px 8px; border-radius: 2px; font-size: 9px; font-weight: 700; }
.tier--very-high { color: #8c3f49; background: var(--rose-soft); }
.tier--high { color: #815b25; background: #f4e9d7; }
.tier--medium { color: #455e73; background: #e7edf2; }
.tier--low { color: #686961; background: #ecebe7; }
.rating { color: #8a652b; }
.contact-dots { display: flex; gap: 5px; }
.contact-dot { display: grid; width: 23px; height: 23px; place-items: center; border-radius: 50%; color: #9f9994; background: #eee6de; font-size: 9px; }
.contact-dot.active { color: #fff; background: var(--green); }
.product-cell { max-width: 170px; overflow: hidden; text-overflow: ellipsis; }
.pagination { min-height: 58px; padding: 8px 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.pagination > div { display: flex; align-items: center; gap: 10px; }
.empty-state { padding: 44px !important; color: var(--muted); text-align: center; }
.skeleton { position: relative; overflow: hidden; color: transparent !important; border-radius: 6px; background: #ebeae5; }
.drawer-backdrop { position: fixed; inset: 0; z-index: 39; visibility: hidden; opacity: 0; background: rgba(16,17,16,.38); backdrop-filter: blur(3px); transition: .25s; }
.drawer { position: fixed; inset: 0 0 0 auto; z-index: 40; width: min(620px, 96vw); overflow-y: auto; padding: 28px; background: #f8f3ec; box-shadow: -25px 0 60px rgba(48,43,41,.18); transform: translateX(105%); transition: transform .28s ease; }
.drawer.open { transform: translateX(0); }
.drawer-backdrop.open { visibility: visible; opacity: 1; }
.drawer-head { position: sticky; top: -28px; z-index: 2; margin: -28px -28px 26px; padding: 21px 28px; border-bottom: 1px solid var(--line); background: rgba(248,243,236,.94); backdrop-filter: blur(15px); }
.detail-title { margin: 0; font: 36px/1.05 var(--display); font-weight: 500; }
.detail-subtitle { margin: 7px 0 18px; color: var(--muted); }
.detail-score-row { display: grid; grid-template-columns: 110px 1fr; gap: 17px; margin-bottom: 20px; }
.big-score { display: grid; place-items: center; min-height: 105px; border-radius: 2px; color: #fff; background: var(--ink); }
.big-score strong { font: 39px/1 var(--display); }
.big-score span { font-size: 9px; }
.detail-callout { padding: 16px; border: 1px solid #d9c4be; border-radius: 2px; background: #f1e3df; }
.detail-callout span { color: #8a7059; font-size: 9px; letter-spacing: .1em; }
.detail-callout strong { display: block; margin-top: 7px; font: 20px/1.15 var(--display); }
.detail-section { padding: 20px 0; border-top: 1px solid var(--line); }
.detail-section h3 { margin: 0 0 12px; font: 22px var(--display); font-weight: 500; }
.detail-section p { color: #5f625c; }
.chip-list { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { padding: 6px 9px; border: 1px solid var(--line); border-radius: 2px; color: #5c5551; background: #fffdfa; font-size: 10px; }
.contact-list { display: grid; gap: 8px; }
.contact-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 2px; background: #fffdfa; }
.contact-row span { overflow: hidden; text-overflow: ellipsis; }
.contact-row a { color: var(--rose); font-size: 10px; text-decoration: none; }
.review-card { padding: 13px; border-inline-start: 3px solid var(--rose); color: #5f5955; background: #eee6de; font-size: 11px; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 60; visibility: hidden; max-width: 330px; padding: 12px 16px; border-radius: 10px; color: #fff; background: var(--ink); box-shadow: var(--shadow); opacity: 0; transform: translateY(8px); transition: .2s; }
.toast.show { visibility: visible; opacity: 1; transform: none; }

.login-page { min-height: 100vh; background: var(--paper); }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 1.08fr) minmax(480px, .92fr); }
.login-story { position: relative; isolation: isolate; display: flex; flex-direction: column; overflow: hidden; padding: 50px; color: #fff; background: var(--ink); }
.login-story::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url('/static/rose-field.jpg') center/cover; filter: grayscale(.9) saturate(.45); transform: scale(1.01); }
.login-story::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(48,43,41,.94), rgba(48,43,41,.67)), linear-gradient(0deg, rgba(48,43,41,.65), transparent 48%), radial-gradient(circle at 72% 68%, rgba(167,99,103,.35), transparent 38%); }
.login-story__copy { max-width: 520px; margin: auto 0; }
.login-story h1 { margin: 17px 0 20px; font: 64px/.95 var(--display); font-weight: 500; letter-spacing: -.035em; }
.login-story h1 em { color: #e0b0b2; font-weight: 400; }
.login-story p { max-width: 450px; color: #d2c9c3; font-size: 15px; line-height: 1.75; }
.login-signal { display: flex; align-items: center; gap: 10px; color: #9d9f98; font-size: 11px; }
.login-panel { display: grid; place-items: center; padding: 48px; }
.login-card { width: min(430px, 100%); padding: 46px; border: 1px solid var(--line); border-radius: 2px; background: rgba(255,253,250,.8); box-shadow: 0 25px 80px rgba(48,43,41,.08); }
.login-card h2 { margin: 8px 0 4px; font: 38px var(--display); font-weight: 500; }
.muted { color: var(--muted); }
.field-label { display: block; margin: 22px 0 7px; font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.input-shell { min-height: 49px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid var(--line); border-radius: 2px; background: #fffdfa; transition: .2s; }
.input-shell:focus-within { border-color: #8e8f89; box-shadow: 0 0 0 3px rgba(25,26,25,.06); }
.input-shell svg { width: 17px; fill: none; stroke: #8a8c85; stroke-width: 1.7; }
.input-shell input { width: 100%; border: 0; outline: 0; background: transparent; }
.form-error { min-height: 20px; margin: 10px 0; color: #a54b54; font-size: 11px; }
.login-footnote { margin: 20px 0 0; color: #96978f; font-size: 9px; text-align: center; }
.mobile-brand { display: none; margin-bottom: 35px; }

[dir="rtl"] body { font-family: Tahoma, Arial, sans-serif; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] .detail-title, [dir="rtl"] .brand-hero h2 { font-family: Tahoma, Arial, sans-serif; letter-spacing: 0; }
[dir="rtl"] .kpi-card strong, [dir="rtl"] .donut strong, [dir="rtl"] .tier-row strong, [dir="rtl"] .product-focus-card b, [dir="rtl"] .score-pill strong, [dir="rtl"] .big-score strong { font-family: Tahoma, Arial, sans-serif; }
[dir="rtl"] .sidebar { inset: 0 0 0 auto; }
[dir="rtl"] .main { margin: 0 282px 0 0; }
[dir="rtl"] .drawer { inset: 0 auto 0 0; transform: translateX(-105%); box-shadow: 25px 0 60px rgba(20,20,19,.16); }
[dir="rtl"] .drawer.open { transform: translateX(0); }
[dir="rtl"] .filter-panel select { padding: 0 11px 0 30px; }

@media (max-width: 1180px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-panel { grid-template-columns: repeat(4, 1fr); }
  .search-box { grid-column: span 2; }
  .collection-strip { grid-template-columns: 1fr; }
  .collection-strip__intro { padding-inline-end: 0; padding-bottom: 18px; border-inline-end: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .sidebar { transform: translateX(-105%); transition: transform .25s; }
  .sidebar.open { transform: translateX(0); }
  [dir="rtl"] .sidebar { transform: translateX(105%); }
  [dir="rtl"] .sidebar.open { transform: translateX(0); }
  .main, [dir="rtl"] .main { margin: 0; }
  .menu-button, .sidebar-close { display: inline-flex; }
  .sidebar-close { border-color: #41433f; color: #fff; }
  .dashboard-grid, .dashboard-grid--bottom { grid-template-columns: 1fr; }
  .topbar { min-height: 78px; padding: 12px 20px; }
  .content { padding: 24px 20px; }
  .page-heading { margin-inline-start: 10px; margin-inline-end: auto; }
  .page-heading h1 { font-size: 22px; }
  .sync-state { display: none; }
  .brand-hero { grid-template-columns: 1fr; }
  .brand-hero__copy { min-height: 300px; }
  .brand-hero__image { min-height: 210px; }
}
@media (max-width: 680px) {
  .topbar__actions .button span:last-child { display: none; }
  .content { padding: 20px 14px; }
  .brand-hero__copy { min-height: 300px; padding: 32px 26px; }
  .brand-hero h2 { font-size: 45px; }
  .brand-hero__image { min-height: 180px; }
  .hero-line { align-items: flex-start; gap: 14px; }
  .kpi-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .kpi-card { min-height: 132px; padding: 15px; }
  .kpi-card strong { font-size: 31px; }
  .tier-visual { grid-template-columns: 1fr; padding-top: 25px; }
  .panel { padding: 17px; }
  .filter-panel { grid-template-columns: 1fr 1fr; }
  .search-box { grid-column: 1 / -1; }
  .leads-hero { display: grid; }
  .area-chart { overflow-x: auto; }
  .area-column { min-width: 58px; }
  .login-shell { grid-template-columns: 1fr; }
  .login-story { display: none; }
  .login-panel { min-height: 100vh; padding: 18px; }
  .login-card { padding: 30px 24px; }
  .mobile-brand { display: inline-flex; }
  .product-focus { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .topbar__actions { gap: 5px; }
  .page-heading .eyebrow { display: none; }
  .filter-panel { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
