:root {
  --ink: #102238;
  --muted: #718096;
  --line: #e8edf3;
  --paper: #ffffff;
  --canvas: #f5f8fb;
  --navy: #0b1628;
  --teal: #159b9b;
  --teal-soft: #e6f8f6;
  --blue: #3d75d6;
  --purple: #8067c9;
  --amber: #e89b32;
  --green: #45a873;
  --shadow: 0 10px 35px rgba(16, 34, 56, .06);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--canvas); }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.app-shell { display: flex; min-height: 100vh; }
.sidebar { position: sticky; top: 0; display: flex; flex: 0 0 250px; flex-direction: column; min-height: 100vh; padding: 28px 18px 20px; color: #d9e6f7; background: var(--navy); }
.brand { display: inline-flex; align-items: center; gap: 11px; padding: 4px 12px 32px; color: #fff; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 11px; color: var(--navy); font-weight: 900; background: #77e0d4; box-shadow: 0 0 0 5px rgba(119,224,212,.12); }
.brand strong { display: block; font-size: 14px; letter-spacing: .16em; }
.brand small { display: block; margin-top: 4px; color: #8093ac; font-size: 10px; letter-spacing: .08em; }
.main-nav { display: grid; gap: 7px; }
.nav-link { display: flex; align-items: center; gap: 12px; min-height: 45px; padding: 0 13px; border-radius: 11px; color: #a9bad0; font-size: 14px; text-decoration: none; transition: background .2s, color .2s; }
.nav-link span:first-child { width: 20px; text-align: center; font-size: 18px; }
.nav-link:hover { color: white; background: rgba(255,255,255,.08); }
.nav-link.active { color: #fff; background: rgba(119,224,212,.14); box-shadow: inset 3px 0 0 #77e0d4; }
.sidebar-bottom { display: grid; gap: 12px; margin-top: auto; }
.workspace-chip { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid rgba(255,255,255,.09); border-radius: 12px; background: rgba(255,255,255,.04); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #77e0d4; box-shadow: 0 0 0 4px rgba(119,224,212,.13); }
.workspace-chip strong, .workspace-chip small { display: block; }
.workspace-chip strong { color: #e8f1fc; font-size: 12px; }
.workspace-chip small { margin-top: 3px; color: #8396ad; font-size: 10px; }

.main-content { width: min(100%, 1480px); padding: 0 46px 38px; margin: 0 auto; }
.topbar { display: flex; align-items: center; justify-content: space-between; height: 76px; border-bottom: 1px solid var(--line); }
.crumb { color: var(--muted); font-size: 13px; }
.crumb span { padding: 0 8px; color: #b8c3d0; }
.topbar-actions { display: flex; align-items: center; gap: 18px; }
.icon-button, .mobile-menu { width: 35px; height: 35px; border: 0; border-radius: 10px; color: var(--muted); background: transparent; font-size: 21px; }
.icon-button:hover, .mobile-menu:hover { background: #e9eef4; }
.avatar { display: grid; place-items: center; width: 35px; height: 35px; border: 0; border-radius: 50%; color: #fff; font-weight: 700; background: linear-gradient(135deg, #5c72d8, #7258b8); }
.user-identity { display: flex; align-items: center; gap: 9px; }
.identity-copy { display: grid; justify-items: start; gap: 2px; min-width: 115px; padding: 0; border: 0; color: var(--ink); text-align: left; background: transparent; }
.identity-copy strong { max-width: 190px; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.identity-copy small { max-width: 190px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.role-badge { display: inline-flex; align-items: center; padding: 2px 6px; border-radius: 999px; color: #4961a5; font-size: 9px; font-weight: 800; background: #edf0ff; }
.sign-out-button { padding: 8px 11px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: 11px; background: var(--paper); }
.sign-out-button:hover { color: var(--ink); border-color: #cbd7e4; }
.mobile-menu { display: none; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 43px 0 30px; }
.eyebrow { margin: 0 0 8px; color: var(--teal); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: clamp(28px, 3vw, 40px); letter-spacing: -.04em; }
h2 { margin-bottom: 0; font-size: 20px; letter-spacing: -.02em; }
h3 { margin-bottom: 4px; font-size: 14px; line-height: 1.4; }
.muted { color: var(--muted); font-size: 13px; line-height: 1.55; }
.page-heading .muted { margin-bottom: 0; font-size: 14px; }
.wave { color: var(--teal); }
.heading-badge { display: inline-flex; align-items: center; gap: 9px; padding: 9px 12px; border: 1px solid #caeee8; border-radius: 999px; color: #16867f; font-size: 11px; font-weight: 700; background: #f2fffc; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(69,168,115,.12); }

.command-card { display: flex; gap: 20px; padding: 24px; border: 1px solid #d9efed; border-radius: 18px; background: linear-gradient(135deg, #eefcfb, #f9ffff); box-shadow: var(--shadow); }
.command-icon { display: grid; flex: 0 0 42px; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: #fff; font-size: 20px; background: var(--teal); box-shadow: 0 8px 18px rgba(21,155,155,.22); }
.command-body { flex: 1; min-width: 0; }
.command-body h2 { margin-bottom: 4px; }
.command-body > p { margin-bottom: 16px; color: var(--muted); font-size: 13px; }
.command-form { display: flex; align-items: center; gap: 9px; padding: 7px; border: 1px solid #dce7ea; border-radius: 12px; background: #fff; }
.command-form input { flex: 1; min-width: 0; padding: 9px 10px; border: 0; outline: 0; color: var(--ink); font-size: 13px; background: transparent; }
.command-form input::placeholder { color: #a3afbc; }
.voice-button, .send-button { border: 0; border-radius: 9px; }
.voice-button { width: 34px; height: 34px; color: var(--purple); background: #f1effb; }
.send-button { padding: 10px 15px; color: #fff; font-size: 12px; font-weight: 700; background: var(--navy); }
.send-button span { padding-left: 7px; font-size: 16px; }
.command-note { margin-top: 11px; color: #769197; font-size: 11px; }
.command-note span { margin-right: 4px; color: var(--teal); }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding: 22px 0; }
.metric-card { padding: 17px 18px; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); box-shadow: var(--shadow); }
.metric-top { display: flex; align-items: center; justify-content: space-between; }
.metric-label, .metric-caption { color: var(--muted); font-size: 11px; }
.metric-icon { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 8px; font-size: 14px; }
.metric-icon.teal { color: var(--teal); background: var(--teal-soft); }
.metric-icon.amber { color: var(--amber); background: #fff4e2; }
.metric-icon.blue { color: var(--blue); background: #eaf1ff; }
.metric-icon.green { color: var(--green); background: #e9f8f0; }
.metric-value { display: block; margin: 13px 0 2px; font-size: 27px; letter-spacing: -.04em; }
.metric-unit { margin-left: 2px; font-size: 15px; }
.metric-caption.positive { color: var(--green); }

.manager-dashboard { display: grid; gap: 18px; margin-bottom: 18px; scroll-margin-top: 20px; }
.manager-heading { align-items: flex-start; margin-bottom: 0; }
.manager-heading .muted { margin: 7px 0 0; }
.manager-access-note { padding: 7px 10px; border: 1px solid #e4ddf9; border-radius: 999px; color: #6852aa; font-size: 10px; font-weight: 800; background: #f7f4ff; }
.manager-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.manager-metric { display: grid; gap: 5px; padding: 14px; border: 1px solid #edf1f5; border-radius: 12px; background: #fbfcfe; }
.manager-metric > span, .manager-metric small { color: var(--muted); font-size: 10px; }
.manager-metric strong { font-size: 25px; letter-spacing: -.04em; }
.manager-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.manager-card { padding: 17px; border: 1px solid #edf1f5; border-radius: 13px; background: #fff; }
.manager-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.manager-card-heading .eyebrow { margin-bottom: 4px; }
.manager-card-heading h3 { margin: 0; font-size: 15px; }
.manager-card-icon { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; color: var(--green); font-size: 14px; background: #e9f8f0; }
.manager-card-icon.purple { color: var(--purple); background: #f2effd; }
.manager-card-icon.teal { color: var(--teal); background: var(--teal-soft); }
.manager-list { display: grid; gap: 8px; }
.manager-list .empty-state { min-height: 74px; padding: 10px 0 0; }
.manager-list-item { display: grid; gap: 8px; padding: 11px 0; border-top: 1px solid #eef2f5; }
.manager-list-item:first-child { padding-top: 0; border-top: 0; }
.manager-list-item strong { font-size: 12px; line-height: 1.45; }
.manager-list-item small { color: var(--muted); font-size: 10px; line-height: 1.4; }
.manager-list-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.manager-action-button { padding: 7px 9px; border: 1px solid #dce6ee; border-radius: 7px; color: var(--ink); font-size: 10px; font-weight: 800; background: #fff; }
.manager-action-button.approve { border-color: #ccebdc; color: #168879; background: #f1fcf6; }
.manager-action-button.reject { border-color: #f1d9d9; color: #a04c4c; background: #fff8f8; }
.manager-question-answer { width: 100%; min-height: 58px; padding: 8px; border: 1px solid #dce5ed; border-radius: 8px; resize: vertical; color: var(--ink); font-size: 11px; }
.manager-question-answer:focus { border-color: var(--purple); outline: 0; box-shadow: 0 0 0 3px rgba(128,103,201,.12); }
.member-role-control { display: grid; grid-template-columns: auto minmax(130px, 1fr); align-items: center; gap: 8px; color: var(--muted); font-size: 10px; font-weight: 700; }
.member-role-control select { min-width: 0; padding: 7px 8px; border: 1px solid #dce5ed; border-radius: 7px; color: var(--ink); font-size: 10px; background: #fff; }
.manager-analytics-card { padding-bottom: 15px; }
.analytics-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px; }
.analytics-grid > div > strong { display: block; margin-bottom: 10px; font-size: 11px; }
.bar-chart { display: grid; gap: 9px; }
.bar-row { display: grid; grid-template-columns: minmax(85px, .7fr) minmax(100px, 1.3fr) auto; align-items: center; gap: 8px; font-size: 10px; }
.bar-row-label { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 8px; overflow: hidden; border-radius: 999px; background: #edf2f5; }
.bar-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal), #6cd4c6); }
.bar-fill.amber { background: linear-gradient(90deg, #e5a24b, #f0cc85); }
.bar-row-value { color: var(--ink); font-weight: 800; }
.manager-disclaimer { margin: 16px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(310px, .8fr); gap: 18px; }
.panel { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: var(--shadow); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 20px; }
.panel-actions { display: inline-flex; align-items: center; gap: 14px; }
.text-button { padding: 0; border: 0; color: var(--teal); font-size: 12px; font-weight: 700; background: transparent; white-space: nowrap; }
.text-button span { padding-left: 5px; font-size: 15px; }
.opportunity-list { display: grid; gap: 3px; }
.empty-state { display: grid; gap: 6px; padding: 24px 0 8px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.empty-state strong { color: var(--ink); font-size: 12px; }
.opportunity-item { display: flex; align-items: flex-start; gap: 14px; padding: 15px 0; border-top: 1px solid #eef2f5; }
.opportunity-item:first-child { border-top: 0; padding-top: 0; }
.opportunity-score { display: grid; flex: 0 0 42px; place-items: center; width: 42px; height: 42px; border-radius: 50%; font-size: 12px; font-weight: 800; }
.opportunity-score.high { color: #168879; background: #ddf6ef; }
.opportunity-score.medium { color: #a96c18; background: #fff1dc; }
.opportunity-score.unknown { color: #7d8b99; background: #f0f4f7; }
.opportunity-info { flex: 1; min-width: 0; }
.item-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 8px; margin-bottom: 5px; color: #9aa7b5; font-size: 10px; }
.tag { padding: 3px 7px; border-radius: 5px; font-weight: 700; }
.tag-teal { color: #168879; background: #e3f8f2; }
.tag-blue { color: #436ab6; background: #eaf0ff; }
.tag-purple { color: #7761b0; background: #f0edfb; }
.opportunity-info h3 { overflow-wrap: anywhere; word-break: normal; }
.opportunity-info p { margin-bottom: 0; color: #8693a0; font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; white-space: normal; }
.more-button { align-self: flex-start; padding: 2px; border: 0; color: #aab5c0; background: transparent; letter-spacing: 2px; }
.task-list { display: grid; gap: 4px; }
.task-item { display: flex; align-items: center; gap: 11px; padding: 12px 0; border-top: 1px solid #eef2f5; cursor: pointer; }
.task-item:first-child { border-top: 0; padding-top: 0; }
.task-item input { position: absolute; opacity: 0; pointer-events: none; }
.checkmark { display: grid; flex: 0 0 17px; place-items: center; width: 17px; height: 17px; border: 1px solid #c6d1dc; border-radius: 5px; }
.task-item input:checked + .checkmark { border-color: var(--teal); background: var(--teal); }
.task-item input:checked + .checkmark::after { width: 6px; height: 3px; border-bottom: 2px solid #fff; border-left: 2px solid #fff; content: ''; transform: rotate(-45deg) translate(1px, -1px); }
.task-item input:checked ~ .task-copy { text-decoration: line-through; opacity: .55; }
.task-copy { flex: 1; min-width: 0; }
.task-copy strong, .task-copy small { display: block; }
.task-copy strong { font-size: 12px; line-height: 1.35; overflow-wrap: anywhere; white-space: normal; }
.task-copy small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.task-priority { width: 7px; height: 7px; border-radius: 50%; }
.high-dot { background: #e8706d; }.medium-dot { background: var(--amber); }.low-dot { background: #9db1c6; }
.full-width-button { width: 100%; margin-top: 13px; padding: 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); font-size: 11px; font-weight: 700; background: #fbfcfd; }
.full-width-button span { padding-left: 5px; color: var(--teal); font-size: 15px; }
.round-button { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid #dce8e7; border-radius: 9px; color: var(--teal); font-size: 19px; line-height: 1; background: #f3fbfa; }
.round-button:hover { border-color: #a8d9d3; background: #e6f8f6; }

.modules-panel { margin-top: 18px; }
.modules-heading { align-items: flex-end; }
.modules-heading > div:first-child { flex: 1; }
.modules-heading .muted { margin: 7px 0 0; }
.module-tools { display: flex; align-items: center; gap: 9px; }
.search-box { display: flex; align-items: center; gap: 5px; width: 160px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; color: #9aa7b5; background: #fafcfd; }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--ink); font-size: 11px; background: transparent; }
.module-count { padding: 6px 9px; border-radius: 7px; color: #6f7f8d; font-size: 10px; font-weight: 700; background: #f0f4f7; }
.module-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.module-card { display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 10px; padding: 13px; border: 1px solid #edf1f4; border-radius: 11px; background: #fcfdfd; transition: border-color .2s, transform .2s; }
.module-card:hover { border-color: #bfe5e0; transform: translateY(-1px); }
.module-code { padding-top: 1px; color: var(--teal); font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.module-card h3 { margin-bottom: 3px; font-size: 12px; }
.module-card p { margin-bottom: 0; color: var(--muted); font-size: 10px; line-height: 1.4; }
.module-status { padding: 4px 6px; border-radius: 5px; color: #9a7c4c; font-size: 9px; white-space: nowrap; background: #fff8ec; }
.privacy-strip { display: flex; align-items: center; gap: 13px; margin-top: 18px; padding: 15px 18px; border: 1px solid #e1e9f2; border-radius: 13px; background: #f8fbfe; }
.privacy-icon { display: grid; flex: 0 0 29px; place-items: center; width: 29px; height: 29px; border-radius: 8px; color: var(--blue); background: #eaf1ff; }
.privacy-strip div { flex: 1; }
.privacy-strip strong { display: block; font-size: 11px; }.privacy-strip p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.footer { display: flex; justify-content: space-between; gap: 20px; padding-top: 25px; color: #9aa6b2; font-size: 10px; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 10; max-width: min(360px, calc(100vw - 48px)); padding: 12px 15px; border-radius: 10px; color: #fff; font-size: 12px; line-height: 1.4; background: var(--navy); box-shadow: 0 14px 30px rgba(11,22,40,.2); opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .2s, transform .2s; }
.toast.visible { opacity: 1; transform: translateY(0); }

.auth-gate { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 24px; background: rgba(245,248,251,.96); }
.auth-card { width: min(100%, 460px); padding: 30px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); box-shadow: 0 24px 70px rgba(16,34,56,.12); }
.auth-brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 32px; color: var(--ink); letter-spacing: .12em; }
.auth-brand .brand-mark { width: 34px; height: 34px; }
.auth-brand strong { font-size: 14px; }
.auth-card h1 { margin-bottom: 8px; font-size: 28px; }
.auth-card .muted { margin-bottom: 22px; }
.auth-tabs { display: flex; gap: 5px; padding: 4px; margin-bottom: 18px; border-radius: 9px; background: #f1f4f7; }
.auth-tab { flex: 1; padding: 9px 8px; border: 0; border-radius: 7px; color: var(--muted); font-size: 12px; font-weight: 700; background: transparent; }
.auth-tab.active { color: var(--ink); background: #fff; box-shadow: 0 2px 8px rgba(16,34,56,.08); }
.auth-provider-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.auth-provider-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 8px; border: 1px solid #dce5ed; border-radius: 9px; color: var(--ink); font-size: 11px; font-weight: 800; background: #fff; }
.auth-provider-button:hover { border-color: #b7cbc9; background: #f7fbfb; }
.auth-provider-button span { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: #fff; font-size: 11px; background: var(--navy); }
.auth-provider-button:last-child span { color: #fff; background: #111; }
.auth-divider { display: flex; align-items: center; gap: 10px; margin: 5px 0 16px; color: #9aa7b5; font-size: 10px; }
.auth-divider::before, .auth-divider::after { flex: 1; height: 1px; background: var(--line); content: ''; }
.turnstile-container { min-height: 65px; }
.auth-form { display: grid; gap: 13px; }
.auth-form label { display: grid; gap: 6px; color: var(--ink); font-size: 12px; font-weight: 700; }
.auth-form input, .auth-form select { width: 100%; padding: 11px 12px; border: 1px solid #dce5ed; border-radius: 9px; outline: none; color: var(--ink); background: #fcfdfd; }
.auth-form input:focus, .auth-form select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(21,155,155,.12); }
.label-hint { color: var(--muted); font-weight: 400; }
.auth-submit { margin-top: 4px; padding: 12px; border: 0; border-radius: 9px; color: #fff; font-size: 12px; font-weight: 800; background: var(--navy); }
.auth-submit:disabled { cursor: wait; opacity: .6; }
.auth-message { min-height: 20px; margin: 14px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.auth-message.error { color: #b54747; }
.auth-message.success { color: #168879; }
.auth-security-note { margin: 22px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; line-height: 1.5; }
.auth-security-note span { margin-right: 5px; color: var(--teal); }

.modal-backdrop { position: fixed; inset: 0; z-index: 15; display: grid; place-items: center; padding: 20px; background: rgba(11,22,40,.42); }
.modal-card { width: min(100%, 520px); max-height: min(720px, calc(100vh - 40px)); overflow: auto; padding: 25px; border: 1px solid var(--line); border-radius: 17px; background: var(--paper); box-shadow: 0 24px 70px rgba(11,22,40,.25); }
.modal-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.modal-heading .eyebrow { margin-bottom: 6px; }
.modal-close { width: 30px; height: 30px; border: 0; border-radius: 8px; color: var(--muted); font-size: 23px; line-height: 1; background: #f1f4f7; }
.modal-card > .muted { margin: 8px 0 20px; font-size: 12px; }
.modal-form { display: grid; gap: 13px; }
.modal-form label { display: grid; gap: 6px; color: var(--ink); font-size: 12px; font-weight: 700; }
.modal-form input, .modal-form select, .modal-form textarea { width: 100%; padding: 10px 11px; border: 1px solid #dce5ed; border-radius: 9px; outline: none; color: var(--ink); background: #fcfdfd; }
.modal-form select[multiple] { min-height: 100px; padding: 7px; }
.modal-form textarea { resize: vertical; line-height: 1.45; }
.modal-form input:focus, .modal-form select:focus, .modal-form textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(21,155,155,.12); }
.form-note { margin: -2px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row.three-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.phone-row { grid-template-columns: 1fr 1fr .7fr; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; padding-top: 4px; }
.modal-secondary { padding: 11px 14px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); font-size: 12px; font-weight: 700; background: #fff; }
.modal-actions .auth-submit { margin-top: 0; }
.profile-modal-card { max-width: 690px; }
.profile-role-box { display: grid; gap: 4px; padding: 12px; border: 1px solid #e6e1f7; border-radius: 10px; background: #faf8ff; }
.profile-role-box span, .profile-role-box small { color: var(--muted); font-size: 10px; }
.profile-role-box strong { color: #5f4a9d; font-size: 13px; }
.visitor-list-item { padding: 8px 0; }

@media (max-width: 1050px) {
  .sidebar { flex-basis: 215px; }
  .main-content { padding-inline: 28px; }
  .content-grid { grid-template-columns: 1fr; }
  .work-panel { order: -1; }
}
@media (max-width: 760px) {
  .sidebar { position: fixed; z-index: 5; width: 250px; transform: translateX(-100%); transition: transform .25s; }
  .sidebar.open { transform: translateX(0); box-shadow: 10px 0 35px rgba(11,22,40,.2); }
  .main-content { padding-inline: 16px; }
  .mobile-menu { display: block; }
  .crumb { margin-right: auto; padding-left: 8px; }
  .page-heading { align-items: flex-start; flex-direction: column; padding-top: 30px; }
  .heading-badge { align-self: flex-start; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .manager-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .manager-grid, .analytics-grid { grid-template-columns: 1fr; }
  .module-grid { grid-template-columns: 1fr; }
  .modules-heading { align-items: stretch; flex-direction: column; }
  .module-tools { justify-content: space-between; }
}
@media (max-width: 480px) {
  .topbar { height: 64px; }
  .topbar-actions { gap: 7px; }
  .identity-copy { min-width: 0; }
  .identity-copy strong, .identity-copy small { max-width: 120px; }
  .command-card { gap: 12px; padding: 16px; }
  .command-icon { flex-basis: 34px; width: 34px; height: 34px; }
  .command-form { flex-wrap: wrap; }
  .command-form input { flex-basis: calc(100% - 50px); }
  .send-button { flex: 1; }
  .opportunity-item { align-items: flex-start; }
  .opportunity-info p { white-space: normal; }
  .privacy-strip { align-items: flex-start; flex-wrap: wrap; }
  .privacy-strip .text-button { margin-left: 42px; }
  .footer { flex-direction: column; gap: 6px; }
  .auth-card { padding: 24px 18px; }
  .panel-actions { gap: 8px; }
  .form-row { grid-template-columns: 1fr; }
  .form-row.three-columns, .phone-row { grid-template-columns: 1fr; }
  .auth-provider-buttons { grid-template-columns: 1fr; }
  .modal-card { padding: 21px 17px; }
}

