:root {
  --forest: #0c3b2c;
  --forest-deep: #092d22;
  --emerald: #087a58;
  --emerald-2: #0a8963;
  --mint: #e8f5ef;
  --surface: #ffffff;
  --surface-soft: #f7faf8;
  --surface-raised: rgba(255, 255, 255, .92);
  --background: #f2f7f4;
  --text: #102a21;
  --muted: #526b60;
  --border: #d8e5de;
  --amber: #b67b18;
  --amber-bg: #fff6e5;
  --rose: #b74d42;
  --rose-bg: #fdefed;
  --lime: #7f9529;
  --lime-bg: #f3f8de;
  --blue: #257f79;
  --blue-bg: #e7f4f3;
  --shadow: 0 1px 3px rgba(16, 42, 33, .04), 0 6px 18px rgba(31, 83, 65, .045);
  --shadow-hover: 0 2px 4px rgba(16, 42, 33, .05), 0 10px 26px rgba(31, 83, 65, .09);
  --ring: 0 0 0 3px rgba(8, 122, 88, .16);
  --radius: 16px;
  --sidebar: 244px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--background); scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; color: var(--text); background: var(--background); font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { color: inherit; font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { border: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4, strong { letter-spacing: -0.02em; }
svg { display: block; }
.icon { flex: 0 0 auto; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--emerald); outline-offset: 3px; }
.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; }
label:has(> input[type="file"].sr-only:focus-visible) { outline: 2px solid var(--emerald); outline-offset: 3px; }
[hidden] { display: none !important; }
body:has(#overlay-root:not(:empty)) { overflow: hidden; }
.skip-link { position: fixed; top: 10px; left: 12px; z-index: 450; padding: 12px 18px; color: var(--forest); background: white; border: 2px solid var(--emerald); border-radius: 10px; transform: translateY(-150%); }
.skip-link:focus { transform: none; }

/* Authentication */
.auth-page { min-height: 100vh; position: relative; background: radial-gradient(circle at 78% 8%, rgba(204, 239, 225, .85), transparent 36%), radial-gradient(circle at 14% 86%, rgba(244, 241, 214, .75), transparent 34%), #f8fbfa; }
.auth-page::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255,255,255,.76), transparent 56%); }
.auth-top { height: 144px; max-width: 1600px; margin: auto; display: flex; align-items: center; justify-content: space-between; padding: 0 6%; position: relative; z-index: 1; }
.auth-top .brand-logo { width: 156px; }
.auth-links { display: flex; gap: 32px; color: var(--muted); font-size: 13px; }
.auth-links button { padding: 4px; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.auth-links button:hover, .auth-links button:focus-visible { color: var(--text); }
.auth-main { min-height: calc(100vh - 144px); max-width: 1600px; margin: auto; padding: 12px 5.7% 5%; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr); align-items: center; gap: clamp(32px, 6vw, 88px); position: relative; z-index: 1; }
.auth-hero { min-width: 0; width: 100%; max-width: 680px; display: flex; flex-direction: column; justify-content: center; }
.auth-kicker { display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 7px 13px; border-radius: 99px; background: rgba(255,255,255,.76); color: var(--emerald); font-size: 12px; font-weight: 700; margin-bottom: 28px; }
.auth-hero h1 { font-size: clamp(42px, 4.1vw, 64px); line-height: 1.08; letter-spacing: -0.045em; max-width: 650px; }
.auth-hero h1 span { color: var(--emerald); }
.auth-hero > p { max-width: 640px; margin-top: 24px; color: var(--muted); font-size: 17px; line-height: 1.48; }
.command-card { width: 100%; max-width: 630px; margin-top: 36px; padding: 24px; background: rgba(255,255,255,.9); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.command-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.command-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.command-metrics div { min-height: 72px; padding: 16px; border: 1px solid var(--border); border-radius: 10px; background: #fbfdfc; }
.command-metrics small { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; margin-bottom: 13px; }
.command-metrics strong { font-size: 19px; }
.health-line { height: 8px; background: var(--mint); border-radius: 99px; margin-top: 28px; overflow: hidden; }
.health-line i { display: block; width: 78%; height: 100%; border-radius: inherit; background: var(--emerald); }
.health-caption { margin-top: 10px; color: var(--muted); font-size: 11px; }
.auth-card { width: min(100%, 560px); min-height: 580px; justify-self: end; display: flex; flex-direction: column; padding: 40px 36px 26px; background: white; border: 1px solid var(--border); border-radius: 20px; box-shadow: 0 12px 40px rgba(31, 83, 65, .09); }
.auth-card.compact { min-height: 480px; }
.auth-card h2 { font-size: 32px; margin-bottom: 6px; }
.auth-card > p { color: var(--muted); font-size: 15px; }
.auth-form { display: grid; gap: 20px; margin-top: 34px; }
.auth-card.compact .auth-form { margin-top: 30px; }
.auth-options { display: flex; justify-content: space-between; align-items: center; }
.auth-options a { color: var(--emerald); font-weight: 700; }
.auth-notice { display: flex; align-items: center; gap: 16px; padding: 18px; margin-top: 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--mint); }
.auth-notice span { display: flex; flex-direction: column; gap: 3px; }
.auth-notice small { color: var(--muted); }
.auth-footer { margin-top: auto; padding-top: 28px; text-align: center; color: var(--muted); font-size: 11px; }
.password-rules { display: grid; gap: 8px; color: var(--muted); font-size: 13px; }
.password-rules span { display: flex; gap: 8px; align-items: center; }
.password-rules .valid { color: var(--emerald); }
.strength { height: 4px; border-radius: 4px; background: #edf1ef; overflow: hidden; }
.strength i { display: block; height: 100%; width: 20%; transition: width .2s, background .2s; background: var(--rose); }
.strength[data-score="2"] i { width: 50%; background: var(--amber); }
.strength[data-score="3"] i { width: 75%; background: var(--blue); }
.strength[data-score="4"] i { width: 100%; background: var(--emerald); }

/* Brand and shell */
.brand { display: inline-flex; align-items: center; }
.brand-logo { display: block; width: 184px; max-width: 100%; height: auto; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); }
.sidebar { height: 100vh; position: sticky; top: 0; z-index: 50; display: flex; flex-direction: column; padding: 18px 13px 14px; color: white; background: radial-gradient(circle at 20% 0%, rgba(55,190,143,.18), transparent 30%), linear-gradient(180deg, #0b372b 0%, #082b22 58%, #061f19 100%); border-right: 0; box-shadow: 14px 0 38px rgba(5,35,26,.13); }
.sidebar-top { display: flex; flex-shrink: 0; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 0 8px 16px; }
.sidebar .brand { flex: 1; min-width: 0; justify-content: center; padding: 8px; border-radius: 12px; background: white; }
.sidebar-close { display: none !important; color: var(--forest); }
.sidebar nav { overflow: auto; padding: 0 2px 12px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.2) transparent; }
.nav-label { margin: 17px 11px 7px; color: rgba(211,239,227,.7); font-size: 10px; font-weight: 750; letter-spacing: .1em; }
.nav-item { position: relative; height: 42px; display: flex; align-items: center; gap: 13px; padding: 0 12px; margin: 2px 0; border-radius: 11px; color: rgba(237,250,245,.76); font-weight: 650; transition: background .15s, color .15s, transform .15s, box-shadow .15s; }
.nav-item .icon { color: rgba(183,221,207,.58); }
.nav-item[data-route="/ask-ava"] { height: auto; min-height: 42px; padding-block: 10px; }
.nav-item[data-route="/ask-ava"] > span { min-width: 0; white-space: normal; }
.nav-item:hover { color: white; background: rgba(255,255,255,.075); }
.nav-item:active { transform: translateY(1px); }
.nav-item.active { color: #072b21; background: linear-gradient(135deg, #8ce5c4, #58cca2); box-shadow: 0 10px 24px rgba(0,0,0,.2); }
.nav-item.active .icon { color: #07533e; }
.context-nav { margin: 8px 5px 3px; padding: 3px 0 7px 14px; border-left: 1px solid rgba(171,222,202,.2); }
.context-nav .nav-label { margin: 9px 10px 7px; }
.context-link { min-height: 36px; display: flex; align-items: center; gap: 10px; padding: 0 10px; margin: 2px 0; color: rgba(223,243,235,.78); border-radius: 8px; font-size: 13px; font-weight: 620; }
.context-link .icon { color: rgba(183,221,207,.7); }
.context-link:hover { color: white; background: rgba(255,255,255,.07); }
.context-link.active { color: #99e3c8; background: rgba(91,205,164,.12); }
.context-link.active .icon { color: #78d8b6; }
.workspace-card { position: relative; width: 100%; margin-top: auto; min-height: 102px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 16px 36px 15px 14px; color: white; text-align: left; background: rgba(255,255,255,.065); border: 1px solid rgba(184,225,209,.14); border-radius: 15px; box-shadow: 0 12px 28px rgba(0,0,0,.13); cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.workspace-card .workspace-label { color: #78bba2; font-size: 9px; font-weight: 750; margin-bottom: 14px; letter-spacing: .08em; }
.workspace-card strong { color: white; font-size: 14px; line-height: 1.2; }
.workspace-card small { color: rgba(219,240,232,.57); font-size: 10px; line-height: 1.25; margin-top: 2px; }
.workspace-card .icon { position: absolute; right: 13px; top: 51%; color: #72d5b1; }
.workspace-card:hover { background: rgba(255,255,255,.1); border-color: rgba(184,225,209,.25); transform: translateY(-1px); }
.app-column { min-width: 0; }
.topbar { height: 74px; position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 28px 0 32px; background: rgba(255,255,255,.92); border-bottom: 1px solid rgba(210,224,217,.82); box-shadow: 0 8px 30px rgba(31,83,65,.055); backdrop-filter: blur(18px) saturate(130%); }
.mobile-menu { display: none !important; }
.global-search { position: relative; width: min(480px, 42vw); min-width: 0; height: 44px; display: flex; align-items: center; gap: 11px; padding: 0 11px 0 14px; border: 1px solid var(--border); border-radius: 12px; background: rgba(248,251,249,.88); transition: background .15s, border-color .15s, box-shadow .15s; }
.global-search > .icon { color: var(--muted); }
.global-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; }
.global-search input::placeholder { color: #8f9f98; }
.global-search:focus-within { background: white; border-color: #9bc7b5; box-shadow: var(--ring); }
.global-search kbd { min-width: 24px; padding: 3px 7px; color: #6f8179; background: white; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 6px; font-family: inherit; font-size: 11px; font-weight: 650; line-height: 1.2; text-align: center; }
.search-results { position: absolute; left: 0; right: 0; top: calc(100% + 9px); max-height: 410px; overflow: auto; padding: 8px; background: rgba(255,255,255,.98); border: 1px solid var(--border); border-radius: 13px; box-shadow: 0 22px 55px rgba(16,42,33,.17); backdrop-filter: blur(14px); }
.search-result { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 7px; }
.search-result:hover, .search-result.active { background: var(--mint); }
.search-result span { display: flex; flex-direction: column; gap: 2px; }
.search-result small { color: var(--muted); }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.health-pill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid rgba(8,122,88,.08); border-radius: 99px; color: var(--emerald); background: var(--mint); font-size: 11px; font-weight: 750; }
.icon-button { min-width: 40px; height: 40px; display: inline-grid; place-items: center; border: 1px solid var(--border); border-radius: 11px; background: rgba(255,255,255,.94); cursor: pointer; transition: background .15s, border-color .15s, box-shadow .15s, transform .15s; }
.icon-button:hover { background: white; border-color: #b7cec3; box-shadow: 0 6px 18px rgba(31,83,65,.1); transform: translateY(-1px); }
.guided-launch { height: 40px; display: inline-flex; align-items: center; gap: 8px; padding: 0 13px; color: var(--forest); background: linear-gradient(135deg, #f4f8de, #e5f3ec); border: 1px solid #d4e3c4; border-radius: 11px; font-size: 12px; font-weight: 750; cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s; }
.guided-launch .icon { color: var(--lime); }
.guided-launch:hover { border-color: #bccc93; box-shadow: 0 7px 18px rgba(85,105,32,.12); transform: translateY(-1px); }
.notification-button { position: relative; }
.notification-count { position: absolute; right: -4px; top: -7px; min-width: 20px; height: 20px; display: grid; place-items: center; padding: 0 5px; border-radius: 99px; color: white; background: var(--rose); border: 2px solid white; font-size: 10px; }
.profile-button { min-width: 196px; height: 46px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 4px 11px; text-align: left; border: 1px solid var(--border); border-radius: 12px; background: rgba(255,255,255,.94); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.profile-button > span:not(.avatar) { display: flex; flex-direction: column; }
.profile-button strong { font-size: 13px; }
.profile-button small { color: var(--muted); font-size: 10px; }
.profile-button:hover { border-color: #b7cec3; box-shadow: 0 6px 18px rgba(31,83,65,.08); }
.avatar { width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 50%; color: var(--emerald); background: var(--mint); font-size: 12px; font-weight: 800; }
.avatar-rose { color: var(--rose); background: var(--rose-bg); }
.avatar-amber { color: var(--amber); background: var(--amber-bg); }
.avatar-sm { width: 28px; height: 28px; font-size: 10px; }
.avatar-lg { width: 52px; height: 52px; font-size: 15px; }
.sidebar-scrim { display: none; }
.main-content { min-height: calc(100vh - 74px); padding: 26px 32px 40px; scroll-margin-top: 90px; background: #f3f6f4; }
.page { width: 100%; min-width: 0; max-width: 1480px; margin: 0 auto; overflow-wrap: anywhere; }

/* Shared page elements */
.page-header { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 0 24px; }
.page-header-copy { min-width: 0; flex: 1; }
.page-header h1 { margin-top: 9px; font-size: clamp(28px, 2.2vw, 34px); line-height: 1.15; letter-spacing: -0.035em; }
.page-header p { max-width: 820px; margin-top: 7px; color: var(--muted); font-size: 14px; line-height: 1.48; }
.page-title-row { display: flex; align-items: center; gap: 9px; }
.page-help { width: 28px; height: 28px; display: grid; place-items: center; margin-top: 9px; color: var(--muted); background: transparent; border-radius: 8px; cursor: pointer; }
.page-help:hover { color: var(--emerald); background: var(--mint); }
.eyebrow { min-height: 14px; color: var(--emerald); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.breadcrumbs { min-height: 17px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--muted); font-size: 12px; }
.breadcrumbs span:last-child { color: var(--text); }
.breadcrumbs a:hover { color: var(--emerald); }
.page-action { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; max-width: 48%; flex: 0 1 auto; }
.btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 8px 16px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; font-weight: 720; white-space: normal; overflow-wrap: normal; word-break: normal; text-align: center; transition: background .15s, border .15s, transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(16,42,33,.1); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn-primary { color: white; background: linear-gradient(135deg, var(--emerald-2), var(--emerald)); box-shadow: 0 7px 16px rgba(8,122,88,.16); }
.btn-primary:hover { background: linear-gradient(135deg, var(--emerald), #066b4d); }
.btn-secondary { color: var(--text); background: white; border-color: var(--border); }
.btn-secondary:hover { border-color: #afc7bc; }
.btn-danger { color: var(--rose); background: var(--rose-bg); border-color: #f2d1cc; }
.btn-ghost { color: var(--emerald); background: transparent; }
.btn-block { width: 100%; }
.btn-sm { min-height: 38px; padding: 6px 12px; font-size: 12px; }
.card { min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); }
.card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 21px 21px 16px; }
.card-header > div:first-child { min-width: 0; flex: 1; }
.card-header > .btn, .card-header > a { flex-shrink: 0; }
.card-header h2 { font-size: 18px; }
.card-header p { margin-top: 5px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.dashboard-page .page-header { min-height: 156px; position: relative; align-items: center; padding: 26px 28px; margin-bottom: 14px; overflow: hidden; color: white; background: radial-gradient(circle at 82% 18%, rgba(139,232,197,.26), transparent 28%), linear-gradient(135deg, #0a3529 0%, #076c4f 68%, #0b8d66 100%); border: 1px solid rgba(108,210,171,.22); border-radius: 24px; box-shadow: 0 22px 52px rgba(7,61,45,.2); }
.dashboard-page .page-header::after { position: absolute; top: -108px; right: -60px; width: 310px; height: 310px; content: ""; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 42px rgba(255,255,255,.035), 0 0 0 84px rgba(255,255,255,.025); pointer-events: none; }
.dashboard-page .page-header > * { position: relative; z-index: 1; }
.dashboard-page .page-header h1 { margin-top: 10px; color: white; font-size: clamp(34px, 3vw, 43px); letter-spacing: -.048em; }
.dashboard-page .page-header p { max-width: 700px; color: rgba(231,248,241,.72); font-size: 15px; }
.dashboard-page .eyebrow { color: #90e6c6; letter-spacing: .12em; }
.dashboard-page .page-help { color: rgba(255,255,255,.7); }
.dashboard-page .page-help:hover { color: white; background: rgba(255,255,255,.12); }
.dashboard-page .page-action { align-self: center; padding: 0; }
.dashboard-page .page-action .btn-primary { color: #07513d; background: white; border-color: rgba(255,255,255,.7); box-shadow: 0 12px 28px rgba(0,0,0,.17); }
.dashboard-page .page-action .btn-primary:hover { color: #063d2f; background: #f4fffb; }
.dashboard-brief { min-height: 78px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 13px 16px; margin-bottom: 14px; background: rgba(255,255,255,.94); border: 1px solid #cedfd7; border-radius: 17px; box-shadow: 0 8px 24px rgba(31,83,65,.065); }
.dashboard-brief-icon { width: 44px; height: 44px; display: grid; place-items: center; color: #95691d; background: var(--amber-bg); border-radius: 13px; }
.dashboard-brief-icon.brief-blue { color: var(--blue); background: var(--blue-bg); }
.dashboard-brief-icon.brief-rose { color: var(--rose); background: var(--rose-bg); }
.dashboard-brief-copy { min-width: 0; display: grid; gap: 2px; }
.dashboard-brief-copy > span { color: var(--emerald); font-size: 9px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.dashboard-brief-copy strong { font-size: 15px; }
.dashboard-brief-copy small { color: var(--muted); font-size: 12px; }
.dashboard-brief > a { min-height: 38px; display: inline-flex; align-items: center; gap: 8px; padding: 0 13px; color: var(--emerald); background: var(--mint); border-radius: 10px; font-size: 12px; font-weight: 750; transition: background .15s, transform .15s; }
.dashboard-brief > a:hover { background: #dbefe6; transform: translateX(1px); }
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.kpi-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpi-card { min-height: 128px; position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px; overflow: hidden; background: linear-gradient(155deg, white 58%, #f6fbf8); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); transition: border-color .16s, box-shadow .16s, transform .16s; }
.kpi-card::after { position: absolute; right: -24px; bottom: -34px; width: 92px; height: 92px; content: ""; border-radius: 50%; background: rgba(8,122,88,.035); }
.kpi-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: auto; }
.icon-tile { width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 11px; color: var(--emerald); background: var(--mint); }
.icon-tile.small { width: 36px; height: 36px; border-radius: 9px; }
.icon-tile.large { width: 56px; height: 56px; border-radius: 14px; }
.tile-rose { color: var(--rose); background: var(--rose-bg); }
.tile-amber { color: var(--amber); background: var(--amber-bg); }
.tile-lime { color: var(--lime); background: var(--lime-bg); }
.tile-blue { color: var(--blue); background: var(--blue-bg); }
.trend { padding: 5px 9px; border-radius: 99px; color: var(--emerald); background: var(--mint); font-size: 11px; font-weight: 800; }
.trend-down { color: var(--rose); background: var(--rose-bg); }
.kpi-value { margin-top: 17px; font-size: 30px; line-height: 1; }
.kpi-label { margin-top: 6px; color: var(--muted); font-size: 14px; }
.kpi-context { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.dashboard-page .kpi-grid { gap: 12px; margin-bottom: 16px; }
.dashboard-page .kpi-card { min-height: 148px; padding: 18px 19px 17px; background: white; border-color: #cfdfd7; box-shadow: 0 10px 28px rgba(31,83,65,.07); }
.dashboard-page .kpi-card::before { position: absolute; inset: 0 0 auto; height: 4px; content: ""; background: var(--kpi-accent, var(--emerald)); }
.dashboard-page .kpi-card-1 { --kpi-accent: #087a58; }
.dashboard-page .kpi-card-2 { --kpi-accent: #2f8e88; }
.dashboard-page .kpi-card-3 { --kpi-accent: #879b2d; }
.dashboard-page .kpi-card-4 { --kpi-accent: #c0812a; }
.dashboard-page .kpi-value { font-size: 33px; }
.dashboard-page .kpi-label { color: #385249; font-weight: 680; }
.dashboard-main { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(280px, .95fr); align-items: start; gap: 16px; margin-bottom: 16px; }
.chart-card { min-height: 336px; overflow: hidden; }
.chart-wrap { width: 100%; padding: 16px 20px 12px; }
.chart-plot { position: relative; height: 215px; }
.chart-insight { display: grid; justify-items: end; gap: 3px; padding: 7px 10px; color: var(--emerald); background: var(--mint); border-radius: 10px; }
.chart-insight strong { font-size: 16px; line-height: 1; }
.chart-insight small { color: #557369; font-size: 9px; white-space: nowrap; }
.chart-insight b { color: var(--emerald); }
.line-chart { width: 100%; height: 100%; overflow: visible; }
.chart-grid { fill: none; stroke: #e5ece8; stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-labels { display: flex; justify-content: space-between; gap: 12px; margin-top: -1px; color: #8a9892; font-size: 10px; }
.chart-labels span { min-width: 0; max-width: 48%; }
.chart-labels span:last-child { text-align: right; }
.chart-labels span:only-child { margin-inline: auto; text-align: center; }
.chart-point { position: absolute; z-index: 2; width: 30px; height: 30px; padding: 0; border-radius: 50%; background: transparent; cursor: crosshair; transform: translate(-50%, -50%); }
.chart-point::before { position: absolute; inset: 10px; content: ""; border: 2px solid white; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 2px rgba(8, 122, 88, .18); transition: transform .14s ease, box-shadow .14s ease; }
.chart-point:hover, .chart-point:focus-visible { z-index: 4; outline: none; }
.chart-point:hover::before, .chart-point:focus-visible::before { transform: scale(1.45); box-shadow: 0 0 0 4px rgba(8, 122, 88, .2); }
.chart-tooltip { position: absolute; z-index: 5; left: clamp(0px, calc(var(--chart-x) - 112px), calc(100% - 224px)); width: min(224px, 100%); padding: 12px; visibility: hidden; opacity: 0; color: var(--text); text-align: left; background: white; border: 1px solid #cfe0d8; border-radius: 10px; box-shadow: 0 12px 30px rgba(9, 45, 34, .18); pointer-events: none; transition: opacity .12s ease; }
.chart-point:hover + .chart-tooltip, .chart-point:focus-visible + .chart-tooltip { visibility: visible; opacity: 1; }
.chart-point-above + .chart-tooltip { transform: translateY(calc(-100% - 23px)); }
.chart-point-below + .chart-tooltip { transform: translateY(23px); }
.chart-tooltip-title { display: block; margin-bottom: 8px; color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .02em; text-transform: uppercase; }
.chart-tooltip-total { display: flex; align-items: baseline; gap: 7px; padding-bottom: 9px; border-bottom: 1px solid var(--border); }
.chart-tooltip-total strong { color: var(--forest); font-size: 25px; line-height: 1; }
.chart-tooltip-total span { color: var(--muted); font-size: 12px; }
.chart-tooltip-stats { display: grid; gap: 6px; padding-top: 9px; }
.chart-tooltip-stats > span { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: center; gap: 7px; font-size: 12px; }
.chart-tooltip-stats i { width: 7px; height: 7px; border-radius: 50%; background: var(--stat-color); }
.chart-tooltip-stats strong { font-size: 12px; }
.attention-card { padding-bottom: 12px; }
.attention-count { padding: 6px 9px; color: #667a72; background: #f0f5f2; border-radius: 99px; font-size: 10px; font-weight: 750; white-space: nowrap; }
.attention-list { display: grid; gap: 6px; padding: 13px 15px 5px; }
.attention-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 10px; border: 1px solid transparent; border-radius: 12px; transition: background .15s, border-color .15s, transform .15s; }
.attention-item:hover { background: #f7faf8; border-color: #dfebe5; transform: translateX(2px); }
.attention-item > span:nth-child(2) { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.attention-item strong { font-size: 13px; }
.attention-item small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.dashboard-lower { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(280px, .95fr); gap: 16px; align-items: start; }
.recent-card { overflow: hidden; }
.dashboard-shortcuts { overflow: hidden; }
.dashboard-shortcuts .module-links { grid-template-columns: 1fr; gap: 7px; margin: 0; padding: 14px 15px 16px; }
.dashboard-shortcuts .module-links a { min-height: 44px; background: #f7faf8; border-color: #e0e9e4; }
.module-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 10px; margin-top: 20px; }
.module-links a { min-height: 52px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid var(--border); border-radius: 12px; background: rgba(255,255,255,.88); font-weight: 650; transition: transform .15s, border-color .15s, box-shadow .15s; }
.module-links a:hover { border-color: #a9cbbd; background: white; box-shadow: 0 8px 22px rgba(31,83,65,.08); transform: translateY(-1px); }
.module-links a > .icon:first-child { color: var(--emerald); }
.badge { display: inline-flex; align-items: center; width: fit-content; padding: 5px 9px; border-radius: 99px; font-size: 11px; font-weight: 700; white-space: nowrap; overflow-wrap: normal; word-break: normal; }
.badge-green { color: #137354; background: var(--mint); }
.badge-neutral { color: var(--muted); background: #eff3f1; }
.badge-amber { color: #7f5611; background: var(--amber-bg); }
.badge-rose { color: #973e35; background: var(--rose-bg); }
.badge-lime { color: #536514; background: var(--lime-bg); }
.badge-blue { color: #27756f; background: var(--blue-bg); }

/* Tables */
.table-card { display: flex; flex-direction: column; overflow: hidden; }
.table-toolbar { min-height: 76px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 16px; background: #fafcfb; border-bottom: 1px solid var(--border); }
.table-search { min-width: 180px; height: 44px; flex: 1 1 260px; display: flex; align-items: center; gap: 12px; padding: 0 14px; border: 1px solid var(--border); border-radius: 10px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.table-search .icon { color: var(--muted); }
.table-search input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; }
.table-search:focus-within { border-color: #9bc7b5; box-shadow: var(--ring); }
.table-filters { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.select-filter { min-width: 0; height: 44px; position: relative; display: flex; align-items: center; gap: 7px; padding: 0 8px 0 12px; border: 1px solid var(--border); border-radius: 10px; background: white; font-weight: 650; }
.select-filter select { max-width: 165px; height: 100%; padding: 0 18px 0 0; border: 0; outline: 0; background: transparent; appearance: none; font-weight: inherit; }
.select-filter > .icon:last-child { position: absolute; right: 8px; pointer-events: none; }
.view-switch { height: 42px; display: flex; align-items: center; margin-left: auto; padding: 3px; border: 1px solid var(--border); border-radius: 11px; background: #f5f8f6; }
.view-switch button { width: 38px; height: 34px; display: grid; place-items: center; border-radius: 8px; color: var(--muted); background: transparent; cursor: pointer; }
.view-switch button.active { color: var(--emerald); background: white; border: 1px solid var(--border); box-shadow: 0 3px 8px rgba(31,83,65,.08); }
.table-scroll { min-width: 0; min-height: 0; max-width: 100%; flex: 1; overflow: auto; overscroll-behavior-x: contain; padding: 0 16px; scrollbar-width: thin; }
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: auto; }
.data-table thead { position: sticky; top: 0; z-index: 1; background: rgba(248,250,249,.97); box-shadow: 0 1px 0 var(--border); backdrop-filter: blur(8px); }
.data-table th { height: 46px; padding: 10px 14px; color: var(--muted); font-size: 11px; font-weight: 750; text-align: left; text-transform: uppercase; letter-spacing: .035em; border-bottom: 1px solid var(--border); white-space: nowrap; }
.data-table td { height: 60px; padding: 12px 14px; color: var(--muted); border-bottom: 1px solid #e3ece7; vertical-align: middle; line-height: 1.45; overflow-wrap: anywhere; }
.data-table td:first-child { color: var(--text); }
.data-table tr[data-route] { cursor: pointer; }
.data-table tbody tr { transition: background .12s; }
.data-table tbody tr:hover { background: #f4faf7; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table.table-compact td { height: 45px; padding-top: 5px; padding-bottom: 5px; }
.entity-cell { min-width: 190px; max-width: 340px; display: flex; align-items: center; gap: 10px; }
.entity-cell > span:last-child { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.entity-cell strong { color: var(--text); font-size: 13px; }
.entity-cell small { color: var(--muted); font-size: 11px; }
.cell-stack { display: flex; flex-direction: column; gap: 4px; }
.cell-stack small { font-size: 12px; }
.row-menu { width: 40px; height: 40px; display: grid; place-items: center; margin-left: auto; border-radius: 9px; color: var(--muted); background: transparent; cursor: pointer; transition: color .15s, background .15s; }
.row-menu:hover { color: var(--emerald); background: var(--mint); }
.table-footer { min-height: 62px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--border); }
.table-footer > div { display: flex; gap: 8px; }
.table-footer button { width: 46px; height: 40px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 9px; background: white; cursor: pointer; }
.table-empty { min-height: 160px; padding: 48px 24px; text-align: center; color: var(--muted); }
.progress { width: 190px; max-width: 100%; height: 6px; display: block; overflow: hidden; border-radius: 99px; background: #eaf0ed; }
.progress i { display: block; height: 100%; background: var(--emerald); border-radius: inherit; }
.progress .progress-amber { background: var(--amber); }
.progress .progress-rose { background: var(--rose); }

/* Forms and details */
.form-layout { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(285px, 1fr); align-items: start; gap: 18px; }
.form-card { padding: 24px; }
.form-card h2, .review-card h2 { font-size: 18px; }
.form-card > p, .review-card > p { margin-top: 3px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 18px; margin-top: 20px; }
.field { display: grid; align-content: start; gap: 7px; min-width: 0; }
.field > span:first-child { color: var(--muted); font-size: 13px; font-weight: 650; }
.field-control { min-height: 45px; position: relative; display: flex; align-items: center; gap: 10px; padding: 0 12px; border: 1px solid var(--border); border-radius: 10px; background: #fff; transition: border-color .15s, box-shadow .15s, background .15s; }
.field-control:focus-within { border-color: #8cbda8; background: white; box-shadow: var(--ring); }
.field-control > .icon { color: var(--muted); }
.field input, .field select, .field textarea { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; }
.field textarea { min-height: 140px; padding: 12px 0; resize: vertical; line-height: 1.45; }
.field-full { grid-column: 1 / -1; }
.field-help { color: var(--muted); font-size: 12px; line-height: 1.5; }
.type-section { margin-top: 20px; }
.type-section > label, .option-section > label { display: block; margin-bottom: 9px; color: var(--muted); font-size: 13px; font-weight: 650; }
.type-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; }
.type-card { min-height: 84px; position: relative; display: flex; flex-direction: column; justify-content: center; gap: 11px; padding: 14px 15px 12px 49px; text-align: left; border: 1px solid var(--border); border-radius: 12px; background: #fff; box-shadow: 0 7px 18px rgba(31,83,65,.06); cursor: pointer; transition: transform .15s, border-color .15s, box-shadow .15s; }
.type-card:hover { border-color: #afcbbf; box-shadow: 0 10px 24px rgba(31,83,65,.09); transform: translateY(-1px); }
.type-card .icon { position: absolute; left: 15px; top: 17px; color: var(--emerald); }
.type-card small { color: var(--muted); font-size: 10px; }
.type-card.selected { border: 2px solid var(--emerald); background: var(--mint); box-shadow: none; }
.option-section { margin-top: 22px; }
.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; }
.check-label { display: flex; align-items: center; gap: 9px; cursor: pointer; }
.check-label input, .permission-check { width: 20px; height: 20px; accent-color: var(--emerald); }
.build-carrier-selection { min-width: 0; margin: 24px 0; padding: 18px; border: 1px solid var(--border); border-radius: 12px; }
.build-carrier-selection legend { padding: 0 6px; font-weight: 700; }
.build-carrier-selection > p { color: var(--muted); margin: 6px 0 14px; }
.build-carrier-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 18px 0; }
.build-carrier-options .check-label { align-items: flex-start; overflow-wrap: anywhere; }
.build-carrier-options input { flex-shrink: 0; }
.build-carrier-selection .field-help { margin-bottom: 0; }
.review-card { position: sticky; top: 94px; display: flex; flex-direction: column; padding: 23px 20px 20px; }
.review-list { margin: 18px 0; }
.review-list > div { padding: 13px 2px; border-bottom: 1px solid var(--border); }
.review-list dt { margin-bottom: 7px; color: var(--muted); font-size: 12px; }
.review-list dd { margin: 0; font-weight: 700; }
.info-box { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border: 1px solid rgba(8,122,88,.08); border-radius: 12px; background: linear-gradient(135deg, var(--mint), #f2f9f5); line-height: 1.4; }
.info-box > span { min-width: 0; }
.info-box .icon { color: var(--emerald); }
.review-actions { display: grid; gap: 10px; margin-top: 24px; }
.entity-hero { min-height: 143px; display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 22px; }
.hero-identity { display: flex; align-items: center; gap: 19px; min-width: 0; }
.hero-icon { width: 70px; height: 70px; display: grid; place-items: center; border-radius: 14px; color: var(--emerald); background: var(--mint); }
.hero-copy { min-width: 0; }
.hero-copy h2 { font-size: 24px; }
.hero-copy > div { display: flex; flex-wrap: wrap; gap: 7px; margin: 9px 0 10px; }
.hero-copy p { color: var(--muted); font-size: 12px; }
.hero-metrics { display: flex; align-items: center; gap: clamp(28px, 4vw, 70px); }
.hero-metrics div { display: flex; flex-direction: column; gap: 3px; }
.hero-metrics strong { font-size: 18px; }
.hero-metrics small { color: var(--muted); font-size: 10px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 18px; justify-content: flex-end; }
.tabs { min-width: 0; height: 58px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(max-content, 1fr); align-items: end; gap: 8px; margin: 0 0 18px; overflow-x: auto; border-bottom: 1px solid var(--border); scrollbar-width: thin; }
.tabs a, .tabs button { min-width: 0; height: 58px; display: grid; place-items: center; padding: 0 14px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--muted); font: inherit; font-weight: 620; white-space: nowrap; cursor: pointer; }
.tabs a:hover, .tabs button:hover { color: var(--text); }
.tabs a.active, .tabs button.active { color: var(--emerald); border-color: var(--emerald); }
.detail-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(310px, .9fr); gap: 18px; }
.detail-main { padding: 22px; }
.detail-main h2, .side-card h2 { font-size: 18px; }
.detail-main > p, .side-card > p { margin-top: 4px; color: var(--muted); }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 60px; margin: 28px 0; }
.detail-grid div { min-width: 0; }
.detail-grid dt { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.detail-grid dd { margin: 9px 0 0; font-size: 15px; overflow-wrap: anywhere; }
.section-divider { height: 1px; margin: 28px 0 20px; background: var(--border); }
.activity-list { display: grid; gap: 13px; margin-top: 16px; }
.activity-list > div { display: flex; align-items: center; gap: 12px; }
.activity-list > div > span:last-child { display: flex; flex-direction: column; gap: 3px; }
.activity-list small { color: var(--muted); font-size: 11px; }
.detail-side { display: grid; grid-auto-rows: min-content; gap: 16px; }
.side-card { padding: 20px; }
.contact-block { display: flex; gap: 12px; align-items: center; margin: 16px 0; }
.contact-block > span:last-child { display: flex; flex-direction: column; gap: 3px; }
.contact-block small { color: var(--muted); }
.side-list { display: grid; gap: 12px; margin-top: 16px; }
.side-list > div { display: flex; align-items: center; gap: 10px; }
.side-list span:not(.icon-tile) { display: flex; flex-direction: column; gap: 2px; }
.side-list small { color: var(--muted); font-size: 10px; }

/* Notifications */
.notifications-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); align-items: start; gap: 18px; }
.notification-nav { padding: 20px 14px; }
.notification-nav h2, .notification-feed h2 { font-size: 18px; margin: 0 5px 18px; }
.notification-filter { width: 100%; height: 46px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 0 12px; margin: 3px 0; text-align: left; border-radius: 9px; color: var(--text); background: transparent; cursor: pointer; }
.notification-filter:hover, .notification-filter.active { background: var(--mint); }
.notification-filter small { color: var(--muted); }
.delivery-settings { display: grid; gap: 2px; padding: 18px 5px 0; margin-top: 14px; border-top: 1px solid var(--border); }
.delivery-settings > strong { margin-bottom: 8px; color: var(--muted); font-size: 10px; }
.notification-feed { position: relative; padding: 20px 10px; }
.notification-feed > .btn { position: absolute; right: 16px; top: 13px; }
.notification-items { display: grid; gap: 7px; margin-top: 8px; }
.notification-item { min-height: 74px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 11px 16px; border-radius: 10px; }
.notification-item.unread { background: var(--mint); }
.notification-item.tone-amber { background: var(--amber-bg); }
.notification-item > span:nth-child(2) { display: flex; flex-direction: column; gap: 4px; }
.notification-item small { color: var(--muted); }
.notification-time { align-self: start; text-align: right; font-size: 10px; }

/* Settings */
.settings-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); align-items: start; gap: 18px; }
.settings-nav { padding: 14px 10px; }
.settings-nav button { width: 100%; height: 46px; display: flex; align-items: center; gap: 14px; padding: 0 14px; border-radius: 9px; color: var(--muted); background: transparent; cursor: pointer; }
.settings-nav button.active, .settings-nav button:hover { color: var(--text); background: #edf2ef; }
.settings-panel { display: flex; flex-direction: column; padding: 20px 22px 17px; }
.settings-panel > h2 { font-size: 18px; }
.settings-panel > p { color: var(--muted); }
[data-identity-content] { min-width: 0; gap: 18px; }
[data-identity-content] > .card { padding: 18px; }
[data-identity-editor]:empty { display: none; }
[data-identity-content] .form-grid > p { grid-column: 1 / -1; }

/* Wizards and editors */
.stepper { min-height: 82px; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; padding: 10px 25px 5px; margin-bottom: 18px; }
.step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--muted); font-size: 11px; }
.step:not(:last-child)::after { content: ""; position: absolute; left: 55%; right: -45%; top: 17px; height: 3px; background: var(--border); }
.step.complete:not(:last-child)::after { background: var(--emerald); }
.step span { width: 36px; height: 36px; z-index: 1; display: grid; place-items: center; border: 1px solid #cbd8d2; border-radius: 50%; background: white; }
.step.active, .step.complete { color: var(--text); font-weight: 650; }
.step.active span, .step.complete span { color: white; border-color: var(--emerald); background: var(--emerald); }
.selection-card { display: flex; flex-direction: column; padding: 24px 26px; }
.selection-card h2 { font-size: 20px; }
.selection-card > p { margin-top: 4px; color: var(--muted); }
.build-types { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.build-type { min-height: 260px; position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 13px; padding: 20px; text-align: left; border: 1px solid var(--border); border-radius: 14px; background: white; box-shadow: var(--shadow); cursor: pointer; }
.build-type.selected { border: 2px solid var(--emerald); background: #e5f3ef; box-shadow: none; }
.build-type .select-check { position: absolute; right: 17px; top: 17px; width: 30px; height: 30px; display: none; place-items: center; border-radius: 50%; color: white; background: var(--blue); }
.build-type.selected .select-check { display: grid; }
.build-type h3 { margin-top: 8px; font-size: 18px; }
.build-type > p { min-height: 62px; color: var(--muted); line-height: 1.4; }
.build-type > strong { margin-top: auto; color: var(--emerald); }
.canonical-note { display: flex; gap: 14px; padding: 17px; margin-top: 24px; background: var(--lime-bg); border-radius: 10px; }
.selection-actions { display: flex; justify-content: flex-end; margin-top: 24px; }
.editor-layout { display: grid; grid-template-columns: 220px minmax(0, 1.75fr) 290px; align-items: start; gap: 16px; }
.editor-nav, .editor-main, .editor-settings { padding: 20px 16px; }
.editor-nav h2, .editor-main h2, .editor-settings h2 { font-size: 18px; }
.editor-nav > .btn { margin: 14px 0 12px; }
.editor-list { display: grid; gap: 3px; }
.editor-list button { min-height: 52px; display: flex; align-items: flex-start; gap: 11px; padding: 10px; text-align: left; border-radius: 8px; background: transparent; cursor: pointer; }
.editor-list button.active, .editor-list button:hover { background: var(--mint); }
.editor-list button > span { display: flex; flex-direction: column; gap: 4px; }
.editor-list small { color: var(--muted); }
.editor-main-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 14px; }
.editor-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.editor-body { display: grid; gap: 18px; margin-top: 20px; }
.editor-body .field textarea { min-height: 220px; }
.attachment { min-height: 60px; display: flex; align-items: center; gap: 12px; padding: 0 14px; border: 1px solid var(--border); border-radius: 9px; }
.attachment small { margin-left: auto; color: var(--muted); }
.editor-settings .field { margin: 14px 0; }
.message-canvas { min-height: 300px; padding: 18px; border: 1px solid var(--border); border-radius: 9px; line-height: 1.55; }
.message-toolbar { min-height: 48px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 9px; }
.message-toolbar button { min-height: 36px; display: inline-flex; flex: 0 0 auto; align-items: center; gap: 7px; color: var(--muted); background: transparent; white-space: nowrap; cursor: pointer; }
.message-cta { min-width: 200px; height: 45px; display: inline-flex; align-items: center; justify-content: center; margin-top: 28px; border-radius: 8px; color: white; background: var(--emerald); font-weight: 700; }
.campaign-flow { display: grid; gap: 15px; margin-top: 28px; }
.flow-node { min-height: 82px; position: relative; display: flex; align-items: center; gap: 15px; padding: 15px; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); }
.flow-node:not(:last-child)::after { content: "↓"; position: absolute; left: 34px; bottom: -20px; color: var(--emerald); z-index: 2; }
.flow-node > span:nth-child(2) { display: flex; flex-direction: column; gap: 5px; }
.flow-node small { color: var(--emerald); font-weight: 700; }
.flow-node .row-menu { margin-left: auto; }

/* Channel preview and calendar */
.preview-modes { display: flex; gap: 4px; }
.preview-modes button { height: 36px; display: inline-flex; align-items: center; gap: 8px; padding: 0 13px; border-radius: 8px; color: var(--muted); background: transparent; cursor: pointer; }
.preview-modes button.active { color: var(--emerald); background: var(--mint); }
.status-dot { width: 17px; height: 17px; border-radius: 50%; background: var(--emerald); }
.status-dot.amber { background: var(--amber); }
.calendar-layout { display: grid; grid-template-columns: minmax(0, 2.5fr) 345px; gap: 18px; }
.calendar-card { overflow: hidden; }
.calendar-head { height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; }
.calendar-scroll-hint { display: none; }
.calendar-head h2 { font-size: 22px; }
.calendar-controls { display: flex; gap: 9px; }
.calendar-controls button { min-width: 54px; height: 38px; display: grid; place-items: center; padding: 0 18px; border: 1px solid var(--border); border-radius: 8px; background: white; cursor: pointer; }
.calendar-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); padding: 0 16px; }
.calendar-weekdays span { padding: 0 10px 10px; color: var(--muted); font-size: 10px; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); grid-template-rows: repeat(5, minmax(110px, 1fr)); min-height: 640px; border-left: 1px solid var(--border); border-top: 1px solid var(--border); }
.calendar-day { min-width: 0; padding: 10px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.calendar-day > span { color: var(--muted); font-size: 11px; }
.calendar-day.today > span { width: 27px; height: 27px; display: grid; place-items: center; margin: -5px; border-radius: 50%; color: white; background: var(--emerald); }
.calendar-event { display: block; min-width: 0; margin-top: 12px; padding: 6px 6px 6px 9px; overflow: hidden; border-left: 4px solid var(--emerald); border-radius: 5px; background: var(--mint); font-size: 10px; white-space: nowrap; text-overflow: ellipsis; cursor: pointer; }
.calendar-event.tone-amber { border-color: var(--amber); background: var(--amber-bg); }
.calendar-event.tone-rose { border-color: var(--rose); background: var(--rose-bg); }
.schedule-card { display: flex; flex-direction: column; align-self: start; padding: 20px 17px; }
.schedule-list { display: grid; gap: 14px; margin-top: 22px; }
.schedule-item { display: grid; grid-template-columns: 54px 1fr; align-items: center; gap: 14px; }
.date-tile { width: 54px; height: 58px; display: grid; place-items: center; border-radius: 10px; color: var(--emerald); background: var(--mint); }
.date-tile strong { font-size: 17px; }
.date-tile small { margin-top: -9px; font-size: 9px; }
.schedule-item > span:last-child { display: flex; flex-direction: column; gap: 4px; }
.schedule-item small { color: var(--muted); }
.schedule-sync { margin-top: auto; }

/* Analytics */
.analytics-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; align-items: start; gap: 18px; margin-bottom: 20px; }
.analytics-chart { min-height: 320px; }
.analytics-chart .chart-wrap { padding: 13px 20px; }
.donut-card { padding: 20px; }
.donut-card h2 { font-size: 18px; }
.donut-layout { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-around; gap: 24px; padding: 24px 0 8px; }
.donut { width: 150px; height: 150px; position: relative; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--donut)); }
.donut::after { content: ""; position: absolute; inset: 28px; border-radius: 50%; background: white; }
.donut > span { z-index: 1; display: flex; flex-direction: column; align-items: center; }
.donut strong { font-size: 24px; }
.donut small { color: var(--muted); }
.donut-legend { min-width: 150px; display: grid; gap: 15px; }
.donut-legend div { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; color: var(--muted); font-size: 11px; }
.donut-legend i { width: 12px; height: 12px; border-radius: 50%; }
.donut-legend strong { color: var(--text); }

/* Network and pipeline */
.network-card { min-height: 755px; position: relative; overflow: hidden; }
.network-toolbar { position: absolute; left: 14px; right: 20px; top: 15px; z-index: 2; display: flex; justify-content: space-between; align-items: center; }
.network-toolbar > div { display: flex; gap: 9px; }
.network-toolbar > span { color: var(--muted); font-size: 11px; }
.network-canvas { --network-scale: 1; min-height: 690px; position: relative; margin-top: 62px; }
.network-node { width: 225px; min-height: 83px; position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 15px; border: 1.5px solid var(--emerald); border-radius: 14px; background: white; box-shadow: 0 5px 12px rgba(16,42,33,.04); cursor: grab; touch-action: none; user-select: none; scale: var(--network-scale); }
.network-node.dragging { cursor: grabbing; z-index: 4; }
.network-node.central { left: calc(50% - 130px); top: 250px; width: 260px; background: var(--mint); border-width: 2px; }
.network-node.broker { left: 15%; top: 105px; }
.network-node.carrier { right: 16%; top: 85px; }
.network-node.partner { left: 15%; top: 445px; border-color: var(--amber); }
.network-node.payer { right: 16%; top: 435px; border-color: var(--lime); }
.network-node > span:last-child { display: flex; flex-direction: column; gap: 4px; }
.network-node small { color: var(--muted); }
.network-lines { position: absolute; inset: 0; width: 100%; height: 610px; overflow: visible; transform-origin: center; scale: var(--network-scale); }
.network-lines line { stroke: var(--emerald); stroke-width: 2; }
.network-lines line.amber { stroke: var(--amber); }
.network-lines line.lime { stroke: var(--lime); }
.network-legend { position: absolute; left: 20px; bottom: 18px; display: flex; gap: 18px; color: var(--muted); font-size: 10px; }
.network-legend span { display: flex; align-items: center; gap: 6px; }
.network-legend i { width: 11px; height: 11px; border-radius: 50%; background: var(--emerald); }
.pipeline-summary { display: grid; grid-template-columns: repeat(4, 1fr) auto; align-items: end; gap: 30px; margin: -2px 0 18px; }
.pipeline-summary > div { display: flex; flex-direction: column; gap: 4px; }
.pipeline-summary strong { font-size: 24px; }
.pipeline-summary small { color: var(--muted); }
.pipeline-actions { display: flex !important; flex-direction: row !important; gap: 8px !important; }
.kanban { display: grid; grid-template-columns: repeat(5, minmax(215px, 1fr)); gap: 12px; min-height: 700px; overflow-x: auto; }
.kanban-column { min-width: 215px; padding: 12px 10px; border-radius: 13px; background: #eef1f9; }
.kanban-head { height: 40px; display: flex; align-items: center; justify-content: space-between; padding: 0 3px; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.kanban-head span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.kanban-head i { width: 11px; height: 11px; border-radius: 50%; background: var(--emerald); }
.kanban-head strong { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: white; font-size: 11px; }
.kanban-cards { min-height: 100px; display: grid; align-content: start; gap: 12px; }
.opportunity-card { min-height: 128px; display: flex; flex-direction: column; padding: 14px; border: 1px solid var(--border); border-radius: 11px; background: white; box-shadow: var(--shadow); cursor: grab; }
.opportunity-card:active { cursor: grabbing; }
.opportunity-card.dragging { opacity: .5; }
.opportunity-card h3 { font-size: 14px; }
.opportunity-card > strong { margin: 9px 0 6px; font-size: 19px; }
.opportunity-card > small { color: var(--muted); }
.opportunity-card > div { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.kanban-add { width: 100%; height: 40px; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 11px; color: var(--emerald); border: 1px solid rgba(255,255,255,.7); border-radius: 9px; background: rgba(255,255,255,.35); cursor: pointer; }
.kanban.list-view { display: block; min-height: 0; }
.kanban.list-view .kanban-column { display: grid; grid-template-columns: 140px 1fr 160px; align-items: start; gap: 12px; margin-bottom: 12px; min-width: 0; }
.kanban.list-view .kanban-cards { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.kanban.list-view .opportunity-card { min-height: 104px; }
.kanban.list-view .kanban-add { margin-top: 40px; }
.persisted-list { display: grid; gap: 8px; padding: 18px 20px; border-top: 1px solid var(--border); }
.persisted-list > div { display: grid; grid-template-columns: 1fr 1fr auto; gap: 16px; align-items: center; padding: 10px 12px; border-radius: 9px; background: var(--surface-soft); }
.persisted-list span, .persisted-list small { color: var(--muted); }
.preview-message { min-height: 280px; }
.btn:disabled, .icon-button:disabled, [data-action="page-prev"]:disabled, [data-action="page-next"]:disabled { opacity: .42; cursor: not-allowed; }
.empty-inline { padding: 36px 20px; color: var(--muted); text-align: center; }

/* Permission, import, integrations */
.role-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 16px; }
.role-card { min-height: 100px; display: flex; align-items: flex-start; gap: 13px; padding: 18px; text-align: left; border: 1px solid transparent; border-radius: 10px; background: #eef4f1; cursor: pointer; }
.role-card.active { border: 2px solid var(--emerald); background: var(--mint); }
.role-card > span { display: flex; flex-direction: column; gap: 7px; }
.role-card small { color: var(--muted); }
.permission-card { overflow: hidden; }
.permission-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 20px; }
.permission-head p { margin-top: 4px; color: var(--muted); font-size: 13px; }
.permission-summary { display: grid; grid-template-columns: repeat(2, minmax(150px, 1fr)) auto; align-items: center; gap: 18px; margin: 16px 20px 4px; padding: 13px 16px; border: 1px solid var(--border); border-radius: 10px; background: #f8fbf9; }
.permission-summary > span:not(.permission-save-state) { display: flex; flex-direction: column; gap: 4px; }
.permission-summary small { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .03em; }
.permission-save-state { justify-self: end; padding: 6px 10px; color: var(--emerald); background: var(--mint); border-radius: 99px; font-size: 11px; font-weight: 750; }
.permission-save-state.dirty { color: var(--amber); background: var(--amber-bg); }
.role-card:focus-visible { outline: 2px solid var(--emerald); outline-offset: 2px; }
.permission-table th:not(:first-child), .permission-table td:not(:first-child) { text-align: center; }
.permission-table td { height: 55px; }
.permission-actions { display: flex; justify-content: flex-end; padding: 14px 16px; }
.import-drop { min-height: 215px; padding: 20px; margin-bottom: 18px; }
.import-zone { min-height: 128px; display: grid; place-items: center; align-content: center; gap: 8px; margin-top: 12px; border: 2px dashed #356a58; border-radius: 12px; background: #fbfdfc; cursor: pointer; }
.import-zone:hover, .import-zone.dragover { background: var(--mint); }
.import-zone input { display: none; }
.import-zone small { color: var(--muted); }
.import-progress { width: 75%; max-width: 600px; display: grid; gap: 8px; }
.import-progress .progress { width: 100%; }
.import-grid { display: grid; grid-template-columns: 365px minmax(0, 1fr); gap: 18px; min-height: 520px; }
.template-card { padding: 20px; }
.template-list { display: grid; gap: 8px; margin-top: 15px; }
.template-item { min-height: 55px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; }
.template-item > span { display: flex; flex-direction: column; gap: 4px; }
.template-item small { color: var(--muted); }
.integration-health { min-height: 90px; display: flex; align-items: center; gap: 28px; padding: 18px 20px; margin-bottom: 20px; }
.integration-health > span { display: flex; flex-direction: column; gap: 8px; }
.integration-health strong { font-size: 24px; }
.integration-health > small { margin-left: auto; color: var(--muted); }
.integration-section { margin: 20px 0 28px; }
.integration-section > h2 { margin-bottom: 12px; font-size: 17px; }
.integration-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.integration-card { min-height: 145px; position: relative; padding: 18px; }
.integration-title { display: flex; align-items: flex-start; gap: 13px; }
.integration-title > span:last-child { display: flex; flex-direction: column; gap: 7px; }
.integration-card > p { margin-top: 17px; color: var(--muted); font-size: 12px; }
.integration-card .row-menu { position: absolute; right: 15px; bottom: 13px; width: 55px; border: 1px solid var(--border); }

/* Popovers, dialogs, toasts */
.popover { min-width: 210px; max-width: calc(100vw - 24px); max-height: calc(100dvh - 32px); position: fixed; z-index: 100; overflow-y: auto; padding: 7px; border: 1px solid var(--border); border-radius: 10px; background: white; box-shadow: 0 18px 45px rgba(16,42,33,.16); }
.popover button, .popover a { width: 100%; min-height: 38px; display: flex; align-items: center; gap: 10px; padding: 0 11px; text-align: left; border-radius: 7px; background: transparent; cursor: pointer; }
.popover button:hover, .popover a:hover { background: var(--mint); }
.popover .danger { color: var(--rose); }
.modal-backdrop { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; background: rgba(5,35,26,.5); backdrop-filter: blur(5px); animation: overlay-in .16s ease both; }
.modal { width: min(100%, 560px); max-height: min(850px, calc(100vh - 40px)); display: flex; flex-direction: column; overflow: hidden; background: white; border: 1px solid rgba(255,255,255,.62); border-radius: 18px; box-shadow: 0 32px 90px rgba(5,35,26,.32); animation: dialog-in .2s ease both; }
.modal > form { min-width: 0; min-height: 0; flex: 1; display: flex; flex-direction: column; }
.modal-header, .modal-footer { flex-shrink: 0; }
.modal-header { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 22px; background: linear-gradient(180deg, #fff, #fbfdfc); border-bottom: 1px solid var(--border); }
.modal-header h2 { font-size: 20px; }
.modal-body { min-height: 0; flex: 1; overflow: auto; padding: 22px; }
.modal-body .form-grid { margin-top: 0; }
.modal-body > p:not(:last-child) { margin-bottom: 14px; }
.modal-body > h3 { margin: 20px 0 12px; }
.modal-header > button { flex-shrink: 0; }
.modal-footer { min-height: 72px; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; padding: 12px 22px; background: var(--surface-soft); border-top: 1px solid var(--border); }
.ui-tooltip { position: fixed; z-index: 400; width: max-content; max-width: 290px; padding: 9px 11px; color: white; background: #143d30; border: 1px solid rgba(255,255,255,.12); border-radius: 9px; box-shadow: 0 12px 30px rgba(5,35,26,.24); font-size: 12px; font-weight: 650; line-height: 1.35; pointer-events: none; animation: tooltip-in .12s ease both; }
.ui-tooltip strong { display: block; font-size: 12px; }
.ui-tooltip span { display: block; margin-top: 3px; color: #cde0d8; font-size: 11px; font-weight: 500; }

.guide-backdrop { position: fixed; inset: 0; z-index: 200; display: flex; justify-content: flex-end; background: rgba(5,35,26,.44); backdrop-filter: blur(4px); animation: overlay-in .16s ease both; }
.guide-drawer { width: min(470px, 100%); height: 100%; display: flex; flex-direction: column; overflow: hidden; background: linear-gradient(180deg, #fff, #f8fbf9); border-left: 1px solid rgba(255,255,255,.72); box-shadow: -28px 0 80px rgba(5,35,26,.25); animation: drawer-in .24s cubic-bezier(.2,.8,.2,1) both; }
.guide-drawer > header { min-height: 98px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 24px; border-bottom: 1px solid var(--border); }
.guide-drawer > header span, .guided-header span { display: block; margin-bottom: 6px; color: var(--emerald); font-size: 9px; font-weight: 850; letter-spacing: .11em; }
.guide-drawer > header h2 { font-size: 24px; }
.guide-body { flex: 1; overflow: auto; padding: 26px 24px; }
.guide-description { color: #3e554c; font-size: 15px; line-height: 1.58; }
.guide-features { display: grid; gap: 11px; margin-top: 24px; }
.guide-features article { display: grid; grid-template-columns: auto 1fr; gap: 13px; padding: 15px; background: rgba(255,255,255,.9); border: 1px solid var(--border); border-radius: 13px; box-shadow: 0 5px 16px rgba(31,83,65,.045); }
.guide-features article h3 { margin: 1px 0 5px; font-size: 14px; }
.guide-features article p { color: var(--muted); font-size: 12px; line-height: 1.48; }
.guide-recommendation { display: grid; grid-template-columns: auto 1fr; gap: 12px; margin-top: 20px; padding: 16px; color: #4e5e25; background: linear-gradient(135deg, #f6f9e7, #edf6e9); border: 1px solid #dbe6bd; border-radius: 13px; }
.guide-recommendation > span { width: 32px; height: 32px; display: grid; place-items: center; color: var(--lime); background: white; border-radius: 9px; }
.guide-recommendation strong { display: block; margin-bottom: 5px; font-size: 12px; }
.guide-recommendation p { color: #65713f; font-size: 12px; line-height: 1.45; }
.guide-drawer > footer { min-height: 82px; display: flex; justify-content: flex-end; align-items: center; gap: 10px; padding: 14px 24px; background: white; border-top: 1px solid var(--border); }

.guided-backdrop { padding: 22px; }
.guided-dialog { width: min(760px, 100%); max-height: min(820px, calc(100vh - 44px)); display: flex; flex-direction: column; overflow: hidden; background: linear-gradient(180deg, white, #fbfdfc); border: 1px solid rgba(255,255,255,.65); border-radius: 20px; box-shadow: 0 35px 100px rgba(5,35,26,.34); animation: dialog-in .22s cubic-bezier(.2,.8,.2,1) both; }
.guided-header { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 24px; border-bottom: 1px solid var(--border); }
.guided-header h2 { font-size: 22px; }
.guided-progress { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); padding: 16px 34px 15px; background: #f7faf8; border-bottom: 1px solid var(--border); }
.guided-progress::before { position: absolute; left: calc(16.667% + 9px); right: calc(16.667% + 9px); top: 29px; height: 2px; content: ""; background: #d9e5df; }
.guided-progress > span { position: relative; z-index: 1; display: grid; justify-items: center; gap: 6px; color: #83918b; }
.guided-progress i { width: 28px; height: 28px; display: grid; place-items: center; color: #76877f; background: white; border: 2px solid #d3e1da; border-radius: 50%; font-style: normal; font-size: 11px; font-weight: 800; }
.guided-progress small { font-size: 10px; font-weight: 720; }
.guided-progress .active { color: var(--emerald); }
.guided-progress .active i, .guided-progress .complete i { color: white; background: var(--emerald); border-color: var(--emerald); box-shadow: 0 0 0 4px rgba(8,122,88,.1); }
.guided-body { min-height: 0; overflow: auto; padding: 24px; }
.guided-body > form { display: flex; flex-direction: column; }
.guided-intro { text-align: center; }
.guided-intro h3 { margin-top: 10px; font-size: 22px; }
.guided-intro > p { max-width: 560px; margin: 8px auto 0; color: var(--muted); line-height: 1.5; }
.guided-kicker { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; color: #667b24; background: var(--lime-bg); border-radius: 99px; font-size: 11px; font-weight: 750; }
.guided-intro.compact { display: grid; grid-template-columns: auto 1fr; gap: 13px; text-align: left; }
.guided-intro.compact h3 { margin-top: 1px; font-size: 18px; }
.guided-intro.compact p { margin-top: 5px; color: var(--muted); line-height: 1.45; }
.guided-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.guided-choice { min-height: 178px; display: grid; grid-template-columns: 1fr auto; align-content: start; gap: 13px; padding: 18px; text-align: left; background: white; border: 1px solid var(--border); border-radius: 15px; box-shadow: 0 8px 22px rgba(31,83,65,.06); cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.guided-choice > .icon-tile { grid-column: 1 / -1; }
.guided-choice > span:nth-child(2) { display: grid; gap: 7px; align-content: start; }
.guided-choice strong { font-size: 14px; }
.guided-choice small { color: var(--muted); font-size: 11px; line-height: 1.45; }
.guided-choice > .icon:last-child { align-self: center; color: var(--emerald); }
.guided-choice:hover { border-color: #a7cbbb; box-shadow: 0 13px 30px rgba(31,83,65,.11); transform: translateY(-2px); }
.guided-fields { margin-top: 20px; }
.guided-fields .form-grid { margin-top: 0; }
.guided-note { display: flex; align-items: flex-start; gap: 9px; margin-top: 20px; padding: 13px 14px; color: #4e625a; background: #f1f6f3; border: 1px solid #e0ebe5; border-radius: 11px; font-size: 12px; line-height: 1.45; }
.guided-note .icon { flex: 0 0 auto; color: var(--emerald); }
.guided-note.success { color: #1c6b51; background: var(--mint); border-color: #d6eade; }
.guided-review { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 20px 0 0; border: 1px solid var(--border); border-radius: 13px; overflow: hidden; }
.guided-review > div { min-height: 80px; padding: 15px; background: white; border-bottom: 1px solid var(--border); }
.guided-review > div:nth-child(odd) { border-right: 1px solid var(--border); }
.guided-review > div:nth-last-child(-n+2) { border-bottom: 0; }
.guided-review dt { margin-bottom: 8px; color: var(--muted); font-size: 10px; font-weight: 720; text-transform: uppercase; letter-spacing: .04em; }
.guided-review dd { margin: 0; color: var(--text); font-weight: 750; overflow-wrap: anywhere; }
.guided-footer { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 23px -24px -24px; padding: 12px 24px; background: var(--surface-soft); border-top: 1px solid var(--border); }
.guided-footer > span { color: var(--muted); font-size: 11px; }
.guided-footer > div { display: flex; gap: 9px; }

@keyframes overlay-in { from { opacity: 0; } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(12px) scale(.985); } }
@keyframes drawer-in { from { transform: translateX(24px); opacity: .7; } }
@keyframes tooltip-in { from { opacity: 0; transform: translateY(3px); } }
.toast-root { position: fixed; right: 22px; bottom: 22px; z-index: 300; display: grid; gap: 9px; }
.toast { min-width: 300px; max-width: 410px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; padding: 14px; color: white; border-radius: 10px; background: var(--forest); box-shadow: 0 16px 40px rgba(5,35,26,.26); animation: toast-in .2s ease both; }
.toast button { color: white; background: transparent; cursor: pointer; }
@keyframes toast-in { from { transform: translateY(10px); opacity: 0; } }
.empty-card { min-height: 220px; display: grid; place-items: center; align-content: center; gap: 12px; padding: 30px; text-align: center; }
.empty-card p { max-width: 460px; color: var(--muted); }

/* Enrollment management workbench */
.enrollment-context { min-height: 104px; position: relative; display: grid; grid-template-columns: minmax(250px, 1.05fr) minmax(420px, 1.7fr) auto; align-items: center; gap: 22px; padding: 16px 18px; margin-bottom: 20px; overflow: hidden; background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(242,249,246,.98)); border: 1px solid #cbded5; border-radius: 18px; box-shadow: 0 10px 28px rgba(31,83,65,.065); }
.enrollment-context::before { position: absolute; inset: 0 auto 0 0; width: 4px; content: ""; background: linear-gradient(180deg, #087a58, #4bc69b); }
.enrollment-context-select { min-width: 0; display: flex; align-items: center; gap: 12px; }
.enrollment-context-select label, .enrollment-context-select > div { min-width: 0; flex: 1; display: grid; gap: 4px; }
.enrollment-context-select label > small, .enrollment-context-select > div > small { color: var(--emerald); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.select-shell { min-width: 0; position: relative; display: flex; align-items: center; }
.select-shell select { width: 100%; min-height: 30px; padding: 0 24px 0 0; color: var(--forest); background: transparent; border: 0; outline: 0; appearance: none; font-size: 15px; font-weight: 780; text-overflow: ellipsis; cursor: pointer; }
.select-shell .icon { position: absolute; right: 2px; color: var(--emerald); pointer-events: none; }
.enrollment-context-facts { min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.enrollment-context-facts div { min-width: 0; padding-left: 15px; border-left: 1px solid #dbe7e1; }
.enrollment-context-facts dt { color: var(--muted); font-size: 9px; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; }
.enrollment-context-facts dd { margin: 7px 0 0; color: var(--text); font-size: 12px; font-weight: 700; overflow-wrap: anywhere; }
.enrollment-context-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.enrollment-page .page-action { display: flex; align-items: center; gap: 9px; }
.enrollment-page .kpi-card { min-height: 138px; }
.enrollment-overview-grid, .pnl-overview-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .8fr); gap: 18px; margin-bottom: 20px; }
.enrollment-readiness, .enrollment-scope, .pnl-breakdown, .pnl-summary { min-height: 300px; }
.enrollment-readiness { padding-bottom: 16px; }
.readiness-list { display: grid; gap: 7px; padding: 14px 16px 0; }
.readiness-list > a, .readiness-list > div { min-height: 52px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 11px; padding: 8px 10px; border: 1px solid #e2ebe6; border-radius: 11px; background: #f9fbfa; }
.readiness-list strong, .readiness-list small { display: block; }
.readiness-list strong { font-size: 12px; }
.readiness-list small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.readiness-icon { width: 30px; height: 30px; display: grid; place-items: center; color: var(--amber); background: var(--amber-bg); border-radius: 9px; }
.readiness-icon.ready { color: var(--emerald); background: var(--mint); }
.enrollment-scope { padding: 21px; }
.enrollment-scope > p { margin-top: 4px; color: var(--muted); font-size: 12px; }
.enrollment-scope .detail-grid { gap: 20px 34px; margin: 24px 0; }
.enrollment-management-card { margin-top: 20px; padding-bottom: 16px; overflow: hidden; }
.enrollment-management-card > .table-scroll { margin-top: 13px; }
.enrollment-management-card + .enrollment-overview-grid { margin-top: 18px; }
.enrollment-row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 3px; }
.enrollment-row-actions .btn { min-height: 30px; padding: 0 8px; font-size: 10px; }
.enrollment-current { display: inline-flex; min-height: 28px; align-items: center; padding: 0 9px; color: var(--emerald); background: var(--mint); border-radius: 99px; font-size: 10px; font-weight: 760; }
.enrollment-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 4px 0 13px; }
.enrollment-section-head span { color: var(--emerald); font-size: 9px; font-weight: 820; letter-spacing: .1em; }
.enrollment-section-head h2 { margin-top: 5px; font-size: 22px; }
.enrollment-section-head p { margin-top: 5px; color: var(--muted); font-size: 12px; }
.benefit-line-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin-bottom: 20px; }
.benefit-line-card { min-height: 250px; display: flex; flex-direction: column; padding: 18px; }
.benefit-line-title { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 11px; }
.benefit-line-title > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.benefit-line-title small { color: var(--emerald); font-size: 9px; font-weight: 780; text-transform: uppercase; }
.benefit-line-title strong { overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.benefit-line-card dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; margin: 22px 0; }
.benefit-line-card dt { color: var(--muted); font-size: 9px; font-weight: 720; text-transform: uppercase; }
.benefit-line-card dd { margin: 5px 0 0; overflow-wrap: anywhere; font-size: 12px; font-weight: 650; }
.benefit-line-actions { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; padding-top: 13px; border-top: 1px solid var(--border); }
.table-subline { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.enrollment-empty { min-height: 210px; display: grid; place-items: center; align-content: center; gap: 9px; padding: 24px; text-align: center; color: var(--muted); }
.enrollment-empty strong { color: var(--text); font-size: 15px; }
.enrollment-empty .btn { margin-top: 6px; }
.call-workbench { min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 19px; margin-bottom: 20px; background: linear-gradient(135deg, #f7fbf9, white); }
.call-workbench-copy { display: flex; align-items: center; gap: 13px; }
.call-workbench-copy > div > small { color: var(--emerald); font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.call-workbench-copy h2 { margin-top: 3px; font-size: 17px; }
.call-workbench-copy p { margin-top: 4px; color: var(--muted); font-size: 11px; }
.call-notes { display: block; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pnl-breakdown { padding-bottom: 17px; overflow: hidden; }
.pnl-lines { display: grid; gap: 13px; padding: 17px 20px 0; }
.pnl-line { display: grid; grid-template-columns: 150px minmax(120px, 1fr) 190px; align-items: center; gap: 13px; }
.pnl-line > div:first-child { min-width: 0; display: grid; gap: 3px; }
.pnl-line > div:first-child strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.pnl-line > div:first-child small { color: var(--muted); font-size: 10px; }
.pnl-line-bars { display: grid; gap: 4px; }
.pnl-line-bars i { height: 6px; display: block; border-radius: 99px; }
.pnl-line-bars .revenue { background: linear-gradient(90deg, #087a58, #4bc69b); }
.pnl-line-bars .expense { background: linear-gradient(90deg, #d69a40, #eec77f); }
.pnl-line dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pnl-line dt { color: var(--muted); font-size: 8px; text-transform: uppercase; }
.pnl-line dd { margin: 3px 0 0; font-size: 10px; font-weight: 680; }
.pnl-summary { display: flex; flex-direction: column; justify-content: center; padding: 25px; color: white; background: radial-gradient(circle at 100% 0%, rgba(128,226,190,.2), transparent 35%), linear-gradient(145deg, #0a3529, #087a58); border: 0; }
.pnl-summary > span { color: #9be3c8; font-size: 9px; font-weight: 820; letter-spacing: .1em; }
.pnl-summary > strong { margin-top: 9px; color: white; font-size: 38px; letter-spacing: -.04em; }
.pnl-summary > small { color: rgba(232,249,242,.66); }
.pnl-waterfall { display: grid; gap: 8px; margin-top: 24px; padding-top: 17px; border-top: 1px solid rgba(255,255,255,.14); }
.pnl-waterfall > div { display: flex; justify-content: space-between; gap: 12px; color: rgba(234,249,243,.72); font-size: 11px; }
.pnl-waterfall .total { padding-top: 9px; color: white; border-top: 1px solid rgba(255,255,255,.14); font-size: 13px; }
.pnl-summary > p { margin-top: 17px; color: rgba(232,249,242,.66); font-size: 11px; line-height: 1.5; }
.money-revenue { color: var(--emerald); }
.money-expense { color: #a36c19; }
.destructive-confirm { color: var(--rose); background: var(--rose-bg); border-color: #f0d0cb; }


/* Reengagement setup and campaign workspace */
.table-entity-link { display: inline-flex; border-radius: 10px; }
.table-entity-link:hover strong { color: var(--emerald); }
.table-empty-state { min-height: 130px; display: grid; place-items: center; align-content: center; gap: 5px; padding: 24px; color: var(--muted); text-align: center; white-space: normal; }
.table-empty-state strong { color: var(--text); font-size: 14px; }
.table-empty-state span { font-size: 11px; }
.modal-wide { width: min(100%, 900px); }
.reengagement-page .page-header { margin-bottom: 18px; }
.reengagement-setup { max-width: 1120px; margin: 0 auto; }
.reengagement-setup-card { overflow: hidden; }
.setup-heading { min-height: 132px; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 16px; padding: 25px 28px; color: white; background: radial-gradient(circle at 92% 4%, rgba(125,225,188,.22), transparent 32%), linear-gradient(135deg, #0b372b, #087a58); }
.setup-heading > div > span { color: #8ce5c4; font-size: 9px; font-weight: 820; letter-spacing: .12em; text-transform: uppercase; }
.setup-heading .icon-tile { color: #07513d; background: #8ce5c4; border: 0; }
.setup-heading h2 { margin-top: 5px; color: white; font-size: 25px; }
.setup-heading p { max-width: 690px; margin-top: 7px; color: rgba(232,249,242,.72); font-size: 12px; line-height: 1.5; }
.setup-section { padding: 27px 28px; border-bottom: 1px solid var(--border); }
.setup-section > h3 { font-size: 18px; }
.setup-section > p { max-width: 790px; margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.reengagement-choice-block { margin-top: 18px; }
.field-label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 12px; font-weight: 680; }
.reengagement-choice-group { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 10px; }
.reengagement-choice { min-height: 64px; display: flex; align-items: center; gap: 11px; padding: 11px 14px; color: var(--text); text-align: left; background: white; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s, transform .15s; }
.reengagement-choice:hover { border-color: #a9cbbd; box-shadow: 0 8px 20px rgba(31,83,65,.07); transform: translateY(-1px); }
.reengagement-choice.selected { color: #075d44; background: var(--mint); border: 2px solid var(--emerald); box-shadow: none; }
.reengagement-choice > span { min-width: 0; display: grid; gap: 3px; }
.reengagement-choice strong { font-size: 12px; line-height: 1.25; }
.reengagement-choice small { color: var(--muted); font-size: 10px; line-height: 1.3; }
.supported-carrier { min-height: 68px; display: flex; align-items: center; gap: 12px; margin-top: 13px; padding: 13px 15px; background: #f7faf8; border: 1px solid var(--border); border-radius: 12px; }
.supported-carrier > span:last-child { display: grid; gap: 5px; }
.supported-carrier strong { display: flex; align-items: center; gap: 8px; }
.supported-carrier small { color: var(--muted); }
.setup-section .info-box { margin-top: 16px; }
.warning-box { color: #815714; background: var(--amber-bg); border-color: #eeddb8; }
.warning-box .icon { color: var(--amber); }
.section-help { margin-top: 13px !important; }
.inline-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.setup-section > .inline-actions { margin-top: 10px; }
.reengagement-territory-grid { margin-bottom: 0; }
.import-actions { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(330px, 1.2fr); gap: 14px; margin-top: 18px; }
.template-panel, .reengagement-import-zone { min-height: 205px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; padding: 22px; text-align: center; border-radius: 15px; }
.template-panel { background: #f8fbf9; border: 1px solid var(--border); }
.template-panel small, .reengagement-import-zone small { max-width: 360px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.template-panel .btn { margin-top: 8px; }
.reengagement-import-zone { background: linear-gradient(135deg, #f3faf7, #fbfdfc); border: 2px dashed #acd0c1; cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.reengagement-import-zone:hover, .reengagement-import-zone.dragover { background: var(--mint); border-color: var(--emerald); transform: translateY(-1px); }
.reengagement-import-zone.is-processing { pointer-events: none; opacity: .74; }
.reengagement-import-preview { margin-top: 16px; overflow: hidden; border: 1px solid #cfe4da; border-radius: 14px; background: white; }
.reengagement-import-preview > div:first-child { display: flex; align-items: center; gap: 11px; padding: 13px 16px; background: var(--mint); }
.reengagement-import-preview > div:first-child > span:last-child { display: grid; gap: 3px; }
.reengagement-import-preview small { color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
.reengagement-import-preview .table-scroll { max-height: 280px; padding-bottom: 8px; }
.setup-footer { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 28px; background: var(--surface-soft); }

.reengagement-detail-page > .hero-actions { margin: -4px 0 12px; }
.reengagement-hero { margin-bottom: 14px; }
.reengagement-pathway { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 9px; margin-bottom: 7px; }
.reengagement-pathway button { min-height: 104px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; padding: 14px; text-align: left; background: white; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 7px 20px rgba(31,83,65,.045); cursor: pointer; transition: transform .15s, border-color .15s, box-shadow .15s; }
.reengagement-pathway button:hover { border-color: #a6cbbb; box-shadow: var(--shadow); transform: translateY(-2px); }
.reengagement-pathway strong { color: var(--forest); font-size: 24px; }
.reengagement-pathway span { font-size: 11px; font-weight: 740; }
.reengagement-pathway small { color: var(--muted); font-size: 9px; line-height: 1.35; }
.reengagement-tabs { grid-auto-columns: minmax(100px, 1fr); overflow-x: auto; margin-top: 4px; }
.reengagement-tabs button { min-width: 100px; white-space: nowrap; }
.reengagement-tab-panel { display: grid; gap: 18px; }
.reengagement-tab-panel > .card { overflow: hidden; }
.reengagement-overview-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(285px, .75fr); gap: 18px; }
.reengagement-overview-grid .detail-main, .reengagement-overview-grid .side-card { min-height: 0; }
.reengagement-overview-grid .detail-main > .card-header { margin: -22px -22px 0; }
.reengagement-overview-grid .detail-main .info-box { margin-top: 20px; }
.reengagement-metrics-card { padding-bottom: 18px; }
.reengagement-metrics-card .kpi-grid { margin: 15px 16px 0; }
.reengagement-metrics-card .kpi-card { min-height: 112px; box-shadow: none; }
.metric-rates { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 18px 0; }
.metric-rates span { display: flex; gap: 7px; padding: 7px 10px; color: var(--muted); background: #f5f8f6; border-radius: 99px; font-size: 10px; }
.metric-rates strong { color: var(--text); }
.message-preview-section { padding: 17px 20px; border-top: 1px solid var(--border); }
.message-preview-section:first-of-type { margin-top: 14px; }
.message-preview-section > span { display: block; margin-bottom: 10px; color: var(--emerald); font-size: 9px; font-weight: 820; letter-spacing: .09em; text-transform: uppercase; }
.message-preview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.message-preview-grid.cadence-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.message-preview-card { min-height: 82px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 11px; text-align: left; background: #f9fbfa; border: 1px solid #e0eae5; border-radius: 12px; cursor: pointer; }
.message-preview-card:hover { background: var(--mint); border-color: #b9d6c9; }
.message-preview-card > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.message-preview-card > span:nth-child(2) > small { color: var(--emerald); font-size: 8px; font-weight: 800; letter-spacing: .06em; }
.message-preview-card > span:nth-child(2) > strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.message-preview-card > span:nth-child(2) > span { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.health-section { padding: 16px 4px 12px; margin: 0 16px; border-top: 1px solid var(--border); }
.health-section:first-of-type { margin-top: 13px; }
.health-section h3 { margin: 0 14px 8px; font-size: 13px; }
.health-section h3 small { margin-left: 6px; color: var(--muted); font-size: 9px; font-weight: 500; }

.cadence-card { padding-bottom: 21px; }
.cadence-summary { display: flex; justify-content: space-between; gap: 25px; padding: 20px 21px 10px; }
.cadence-summary > div { display: grid; gap: 5px; }
.cadence-summary small { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.cadence-summary strong { font-size: 15px; }
.cadence-timeline { display: grid; grid-template-columns: repeat(8, minmax(80px, 1fr)); gap: 0; overflow-x: auto; padding: 18px 22px 4px; }
.cadence-timeline > div { min-width: 80px; position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; }
.cadence-timeline > div:not(:last-child)::after { position: absolute; left: 58%; right: -42%; top: 16px; height: 2px; content: ""; background: var(--border); }
.cadence-timeline > div.complete:not(:last-child)::after { background: var(--emerald); }
.cadence-timeline > div > span { width: 34px; height: 34px; z-index: 1; display: grid; place-items: center; color: var(--muted); background: white; border: 2px solid var(--border); border-radius: 50%; font-size: 10px; font-weight: 780; }
.cadence-timeline > div.complete > span { color: white; background: var(--emerald); border-color: var(--emerald); }
.cadence-timeline strong { font-size: 10px; }
.cadence-timeline small { max-width: 90px; color: var(--muted); font-size: 8px; line-height: 1.35; }
.reengagement-two-column { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 18px; }
.reengagement-two-column > * { min-width: 0; max-width: 100%; }
.schedule-list { padding-bottom: 12px; }
.schedule-item { min-height: 68px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; margin: 0 17px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.schedule-item:last-child { border-bottom: 0; }
.schedule-item > span:nth-child(2) { min-width: 0; display: grid; gap: 4px; }
.schedule-item > span:nth-child(2) small { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.schedule-date { width: 44px; min-height: 46px; display: grid; place-items: center; align-content: center; color: var(--emerald); background: var(--mint); border-radius: 9px; }
.schedule-date strong { font-size: 8px; }
.schedule-date small { color: var(--text); font-size: 15px; font-weight: 780; }
.schedule-date.complete { color: white; background: var(--emerald); }
.step-performance-card { padding-bottom: 15px; }
.step-performance-card .table-scroll { margin-top: 13px; }

.source-carrier-hierarchy { min-width: 0; }
.source-history-facts { display: grid; gap: 8px; margin: 0; min-width: 0; }
.source-history-facts dt { color: var(--muted); font-size: 10px; font-weight: 700; }
.source-history-facts dd { margin: 2px 0 0; overflow-wrap: anywhere; }

.reengagement-accounts-card { min-height: 580px; }
.reengagement-account-filters { display: flex; align-items: center; gap: 8px; padding: 15px 17px; margin-top: 11px; background: #f8faf9; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.reengagement-account-filters .table-search { flex: 1 1 320px; }
.reengagement-account-filters > select { min-width: 145px; height: 43px; padding: 0 28px 0 11px; background: white; border: 1px solid var(--border); border-radius: 10px; }
.bulk-toolbar { min-height: 55px; display: flex; align-items: center; gap: 10px; padding: 8px 18px; border-bottom: 1px solid var(--border); }
.bulk-toolbar label { display: flex; align-items: center; gap: 7px; margin-right: auto; font-size: 11px; font-weight: 680; }
.bulk-toolbar input { width: 18px; height: 18px; accent-color: var(--emerald); }
.bulk-toolbar select { height: 35px; padding: 0 27px 0 10px; background: white; border: 1px solid var(--border); border-radius: 9px; font-size: 11px; }
.reengagement-account-table { min-width: 1350px; }
.reengagement-account-table td:first-child { width: 38px; }
.reengagement-account-table input { width: 17px; height: 17px; accent-color: var(--emerald); }
.table-link { display: grid; gap: 3px; padding: 0; text-align: left; background: transparent; cursor: pointer; }
.table-link strong { color: var(--text); font-size: 12px; }
.table-link small { color: var(--muted); font-size: 9px; }
.table-link:hover strong, .table-link-inline { color: var(--emerald); }
.table-link-inline { padding: 3px; background: transparent; font-size: 11px; font-weight: 680; cursor: pointer; }
.reengagement-pagination { min-height: 57px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 17px; color: var(--muted); border-top: 1px solid var(--border); font-size: 10px; }
.reengagement-pagination > div { display: flex; gap: 7px; }
.reengagement-team-card, .reengagement-census-card, .report-log-card { padding-bottom: 15px; }
.reengagement-team-card .table-scroll, .reengagement-census-card .table-scroll, .report-log-card .table-scroll { margin-top: 13px; }
.reengagement-census-card > .info-box { margin: 15px 20px 2px; }

.conversion-funnel { display: flex; align-items: stretch; overflow-x: auto; padding: 20px; }
.conversion-funnel > div { min-width: 118px; flex: 0 0 var(--funnel-width); position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 3px 9px; padding: 13px; color: white; background: linear-gradient(135deg, #0b8964, #0a6048); border-right: 1px solid rgba(255,255,255,.22); clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%, 12px 50%); }
.conversion-funnel > div:first-child { clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%); }
.conversion-funnel > div > span { grid-row: 1 / 3; width: 24px; height: 24px; display: grid; place-items: center; background: rgba(255,255,255,.15); border-radius: 50%; font-size: 9px; }
.conversion-funnel strong { font-size: 18px; }
.conversion-funnel small { color: rgba(239,252,247,.7); font-size: 9px; }
.captured-card { padding-bottom: 17px; }
.captured-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; padding: 17px 20px 4px; }
.captured-grid > div { min-height: 87px; display: grid; place-items: center; align-content: center; gap: 5px; padding: 12px; text-align: center; background: #f7faf8; border: 1px solid var(--border); border-radius: 12px; }
.captured-grid strong { color: var(--forest); font-size: 23px; }
.captured-grid small { color: var(--muted); font-size: 9px; }
.audit-summary-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; }
.audit-summary-grid > .card { min-height: 190px; padding: 20px; }
.audit-summary-grid h2 { font-size: 17px; }
.audit-summary-grid .captured-grid { padding: 15px 0 0; }
.quality-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.quality-list > span { min-height: 95px; display: grid; place-items: center; align-content: center; gap: 5px; text-align: center; background: var(--amber-bg); border-radius: 11px; }
.quality-list strong { font-size: 22px; }
.quality-list small { color: #806632; font-size: 9px; }
.audit-toolbar { display: flex; gap: 9px; padding: 15px 19px; margin-top: 10px; background: #f8faf9; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.audit-toolbar .table-search { flex: 1; }
.audit-toolbar select { min-width: 190px; padding: 0 28px 0 11px; background: white; border: 1px solid var(--border); border-radius: 10px; }
.reengagement-audit-list { display: grid; padding: 5px 18px 14px; }
.audit-event { min-height: 78px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 2px; border-bottom: 1px solid var(--border); }
.audit-event > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.audit-event > span:nth-child(2) > small { color: var(--emerald); font-size: 8px; font-weight: 780; text-transform: uppercase; }
.audit-event > span:nth-child(2) > span { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.audit-event em { color: #52675e; font-size: 9px; font-style: normal; }
.audit-event time { color: var(--muted); font-size: 9px; white-space: nowrap; }

.report-builder { padding-bottom: 20px; }
.report-builder form { padding: 17px 20px 0; }
.report-columns { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.report-columns fieldset { min-width: 0; display: grid; align-content: start; gap: 8px; padding: 13px; border: 1px solid var(--border); border-radius: 12px; }
.report-columns legend { padding: 0 5px; color: var(--emerald); font-size: 9px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.report-columns label { display: flex; align-items: flex-start; gap: 7px; color: #455b52; font-size: 10px; line-height: 1.3; }
.report-columns input { width: 16px; height: 16px; flex: 0 0 auto; accent-color: var(--emerald); }
.report-actions { display: flex; align-items: flex-end; justify-content: flex-end; gap: 8px; margin-top: 17px; padding-top: 15px; border-top: 1px solid var(--border); }
.report-actions .field { min-width: 240px; margin-right: auto; }
.report-preview-card { padding-bottom: 15px; }
.report-preview-card .table-scroll { margin-top: 13px; }
.account-modal-summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 11px; margin-bottom: 18px; padding: 13px; background: #f7faf8; border: 1px solid var(--border); border-radius: 12px; }
.account-modal-summary > div { min-width: 0; display: grid; gap: 4px; }
.account-modal-summary small { color: var(--muted); font-size: 10px; }
.email-preview { margin-top: 18px; overflow: hidden; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); }
.email-preview header { display: grid; gap: 4px; padding: 15px 18px; background: #f5f8f6; border-bottom: 1px solid var(--border); }
.email-preview header small { color: var(--muted); font-size: 10px; }
.email-preview h3 { padding: 20px 21px 0; font-size: 17px; }
.email-preview p { min-height: 120px; padding: 15px 21px 24px; color: #41564d; line-height: 1.6; }
.email-preview footer { padding: 12px 21px; color: var(--muted); background: #f8faf9; border-top: 1px solid var(--border); font-size: 9px; }
.telemetry-card { padding-bottom: 17px; }
.telemetry-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; padding: 16px 20px 0; }
.telemetry-grid section { min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 12px; }
.telemetry-grid h3 { padding: 12px 15px; font-size: 12px; background: #f7faf8; border-bottom: 1px solid var(--border); }

/* Responsive */
@media (max-width: 1250px) {
  :root { --sidebar: 220px; }
  .topbar { padding-left: 24px; padding-right: 24px; }
  .main-content { padding-left: 24px; padding-right: 24px; }
  .profile-button { min-width: 175px; }
  .type-cards, .build-types { grid-template-columns: repeat(2, 1fr); }
  .editor-layout { grid-template-columns: 210px minmax(0, 1fr); }
  .editor-settings { grid-column: 1 / -1; }
  .integration-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kanban { padding-bottom: 10px; }
  .enrollment-context { grid-template-columns: minmax(220px, .9fr) minmax(0, 1.5fr); }
  .enrollment-context-actions { grid-column: 1 / -1; justify-content: flex-start; padding-top: 12px; border-top: 1px solid var(--border); }
}

@media (max-width: 980px) {
  .auth-top { height: 120px; padding: 0 28px; }
  .auth-top .brand-logo { width: 140px; }
  .auth-main { min-height: 0; max-width: 640px; display: flex; flex-direction: column-reverse; gap: 36px; padding: 12px 24px 40px; }
  .auth-card, .auth-card.compact { min-height: 0; width: 100%; }
  .auth-hero { padding: 0; }
  .app-shell { display: block; }
  .sidebar { width: 270px; position: fixed; left: 0; top: 0; visibility: hidden; transform: translateX(-105%); box-shadow: 18px 0 45px rgba(5,35,26,.15); transition: transform .2s ease; }
  body.sidebar-open .sidebar { visibility: visible; transform: translateX(0); }
  .sidebar-close { display: inline-grid !important; }
  .sidebar-scrim { position: fixed; inset: 0; z-index: 45; background: rgba(5,35,26,.35); }
  body.sidebar-open .sidebar-scrim { display: block; }
  .mobile-menu { display: inline-grid !important; }
  .topbar { padding: 0 18px; }
  .global-search { flex: 1; width: auto; max-width: 430px; }
  .health-pill { display: none; }
  .guided-launch span { display: none; }
  .guided-launch { width: 40px; justify-content: center; padding: 0; }
  .profile-button { min-width: 44px; width: 44px; padding: 4px; }
  .profile-button > span:not(.avatar), .profile-button > .icon { display: none; }
  .main-content { padding: 18px; }
  .dashboard-main, .dashboard-lower, .analytics-grid { grid-template-columns: 1fr; }
  .attention-card { min-height: auto; }
  .form-layout, .detail-layout, .calendar-layout, .notifications-layout, .settings-layout, .import-grid { grid-template-columns: 1fr; }
  .review-card { position: static; }
  .review-actions { margin-top: 30px; }
  .network-node.broker, .network-node.partner { left: 5%; }
  .network-node.carrier, .network-node.payer { right: 5%; }
  .role-cards { grid-template-columns: repeat(2, 1fr); }
  .enrollment-overview-grid, .pnl-overview-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 14px; }
  .auth-top { padding: 0 20px; }
  .auth-links { gap: 12px; font-size: 12px; }
  .auth-main { grid-template-columns: minmax(0, 1fr); padding: 8px 16px 32px; }
  .auth-hero h1 { font-size: 32px; }
  .auth-hero > p { font-size: 15px; }
  .command-card { margin-top: 26px; }
  .command-metrics { grid-template-columns: 1fr; }
  .command-metrics div { min-height: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 12px; }
  .command-metrics small { margin-bottom: 0; }
  .auth-card { padding: 28px 22px 24px; }
  .auth-card h2 { font-size: 28px; }
  .auth-form { margin-top: 28px; }
  .topbar { height: auto; min-height: 106px; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 8px; padding: 10px 12px; }
  .mobile-menu { grid-row: 1; grid-column: 1; }
  .topbar-actions { grid-row: 1; grid-column: 2; justify-content: flex-end; gap: 8px; }
  .global-search { grid-row: 2; grid-column: 1 / -1; width: 100%; max-width: none; height: 40px; }
  .notification-button { display: inline-grid; }
  .main-content { min-height: calc(100vh - 106px); padding: 20px 14px 32px; scroll-margin-top: 122px; }
  .page-header { min-height: auto; align-items: stretch; flex-direction: column; gap: 16px; padding-bottom: 22px; }
  .page-header h1 { font-size: 26px; }
  .page-header p { font-size: 13px; line-height: 1.5; }
  .page-title-row { align-items: flex-start; }
  .page-help { flex: 0 0 auto; margin-top: 6px; }
  .dashboard-page .page-header { min-height: 142px; align-items: flex-start; flex-direction: column; gap: 14px; padding: 21px 20px; margin-bottom: 12px; border-radius: 20px; }
  .dashboard-page .page-header h1 { margin-top: 8px; font-size: 30px; }
  .dashboard-page .page-header p { max-width: calc(100% - 12px); color: rgba(231,248,241,.76); font-size: 12px; }
  .dashboard-page .page-header::after { right: -155px; }
  .dashboard-brief { grid-template-columns: auto minmax(0, 1fr); gap: 11px; padding: 13px; }
  .dashboard-brief-copy strong { overflow: visible; white-space: normal; }
  .dashboard-brief-copy small { line-height: 1.35; }
  .dashboard-brief > a { grid-column: 1 / -1; justify-content: center; }
  .page-action { position: static; max-width: none; width: 100%; padding: 0; justify-content: flex-start; }
  .page-action .btn { white-space: normal; text-align: center; }
  .dashboard-page .page-action { position: static; right: auto; bottom: auto; align-self: flex-start; padding: 0; }
  .dashboard-page .page-action .btn-primary { color: #07513d; background: white; border-color: rgba(255,255,255,.72); box-shadow: 0 10px 24px rgba(0,0,0,.16); }
  .enrollment-page .page-header { flex-direction: column; gap: 12px; }
  .enrollment-page .page-action { width: 100%; position: static; right: auto; bottom: auto; z-index: auto; flex-wrap: wrap; padding: 0; }
  .enrollment-page .page-action .btn { flex: 1; box-shadow: none; }
  .enrollment-context { grid-template-columns: 1fr; gap: 14px; padding: 15px; border-radius: 15px; }
  .enrollment-context-facts { grid-template-columns: 1fr 1fr; gap: 11px; }
  .enrollment-context-facts div { padding: 0; border-left: 0; }
  .enrollment-context-facts div:last-child { grid-column: 1 / -1; padding-top: 10px; border-top: 1px solid var(--border); }
  .enrollment-context-facts dd { margin-top: 4px; white-space: normal; }
  .enrollment-context-actions { grid-column: auto; flex-wrap: wrap; padding-top: 12px; }
  .enrollment-context-actions .btn { flex: 1; }
  .benefit-line-grid { grid-template-columns: 1fr; }
  .benefit-line-card { min-height: 230px; }
  .call-workbench { align-items: flex-start; flex-direction: column; }
  .call-workbench .btn { width: 100%; }
  .pnl-line { grid-template-columns: 105px minmax(90px, 1fr); }
  .pnl-line dl { grid-column: 1 / -1; }
  .pnl-summary > strong { font-size: 32px; }
  .enrollment-row-actions { justify-content: flex-start; }
  .kpi-grid, .kpi-grid-three { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .kpi-card, .dashboard-page .kpi-card { min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 8px; align-content: start; padding: 14px; }
  .kpi-top { grid-column: 2; grid-row: 1; margin: 0; }
  .kpi-top .icon-tile { width: 28px; height: 28px; border-radius: 8px; }
  .kpi-top .icon { width: 17px; height: 17px; }
  .kpi-value, .dashboard-page .kpi-value { grid-column: 1; grid-row: 1; align-self: center; margin: 0; font-size: 26px; }
  .kpi-label, .kpi-context { grid-column: 1 / -1; margin: 0; }
  .dashboard-page .kpi-label { font-size: 12px; }
  .dashboard-page .kpi-context { font-size: 11px; }
  .dashboard-main { gap: 12px; margin-bottom: 12px; }
  .dashboard-lower { gap: 12px; }
  .chart-card { min-height: 310px; }
  .chart-plot { height: 190px; }
  .chart-insight small { display: none; }
  .icon-tile { width: 36px; height: 36px; }
  .table-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: 14px; }
  .table-search { grid-column: 1; grid-row: 1; min-width: 0; width: 100%; }
  .table-filters { grid-column: 1 / -1; grid-row: 2; max-width: 100%; overflow: visible; }
  .table-filters:empty { display: none; }
  .table-toolbar .view-switch { grid-column: 2; grid-row: 1; margin: 0; }
  .select-filter { flex: 1 1 130px; }
  .select-filter select { width: 100%; max-width: none; min-width: 0; }
  .table-scroll { padding: 0 10px; }
  .data-table th, .data-table td { padding-left: 10px; padding-right: 10px; }
  .data-table:has(td[data-label]) { display: block; }
  .data-table:has(td[data-label]) thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); }
  .data-table:has(td[data-label]) tbody { display: grid; gap: 12px; padding: 12px 0; }
  .data-table:has(td[data-label]) tbody tr { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; padding: 4px 14px; border: 1px solid var(--border); border-radius: 12px; background: #f8fbf9; }
  .data-table:has(td[data-label]) td { min-width: 0; height: auto; padding: 12px 0; border-bottom: 0; white-space: normal; }
  .data-table:has(td[data-label]) td::before { display: block; content: attr(data-label); margin-bottom: 5px; color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
  .data-table:has(td[data-label]) td:first-child, .data-table td[colspan] { grid-column: 1 / -1; }
  .data-table:has(td[data-label]) td:first-child { border-bottom: 1px solid var(--border); }
  .data-table .table-row-actions, .data-table td:has(> .enrollment-row-actions) { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--border); }
  .data-table .table-row-actions::before { margin: 0; }
  .data-table .entity-cell { min-width: 0; max-width: none; }
  .data-table .entity-cell strong { font-size: 14px; }
  .data-table .badge { max-width: 100%; white-space: normal; }
  .data-table.table-compact td { padding-top: 8px; padding-bottom: 8px; }
  .table-footer { align-items: center; }
  .table-footer > span { flex: 1 1 150px; }
  .card-header { align-items: stretch; flex-direction: column; gap: 12px; padding: 18px; }
  .card-header > .btn, .card-header > a { align-self: flex-start; white-space: normal; }
  .form-card, .detail-main, .side-card, .settings-panel, .review-card { padding: 20px; }
  .field input, .field select, .field textarea, .table-search input, .global-search input { font-size: 16px; }
  .settings-nav { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px; }
  .settings-nav button { flex: 1 1 140px; width: auto; padding: 10px; }
  .form-grid, .detail-grid, .check-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .type-cards, .build-types { grid-template-columns: 1fr; }
  .entity-hero { align-items: flex-start; flex-direction: column; }
  .hero-metrics { width: 100%; justify-content: space-between; gap: 14px; }
  .hero-actions { flex-wrap: wrap; justify-content: flex-start; margin-bottom: 0; }
  .tabs { grid-auto-columns: max-content; }
  .editor-layout { grid-template-columns: 1fr; }
  .editor-nav, .editor-settings { min-height: auto; }
  .editor-main-head { flex-direction: column; align-items: stretch; }
  .editor-actions .btn { white-space: normal; }
  .build-type { min-height: 240px; }
  .stepper { padding-left: 5px; padding-right: 5px; }
  .step { font-size: 9px; }
  .calendar-grid { min-width: 700px; }
  .calendar-card { overflow-x: auto; }
  .calendar-weekdays { min-width: 700px; }
  .calendar-head { min-width: 0; height: auto; flex-wrap: wrap; gap: 12px; padding: 18px; }
  .calendar-scroll-hint { display: block; padding: 0 18px 14px; }
  .network-canvas { min-width: 720px; }
  .network-card { overflow-x: auto; }
  .network-toolbar { min-width: 680px; }
  .pipeline-summary { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .pipeline-actions { grid-column: 1 / -1; }
  .role-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; gap: 8px; }
  .role-card { flex-direction: column; gap: 10px; padding: 14px; }
  .permission-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .permission-save-state { grid-column: 1 / -1; justify-self: start; }
  .integration-grid { grid-template-columns: 1fr; }
  .donut-layout { flex-direction: column; height: auto; padding: 25px 0; }
  .permission-table { min-width: 820px; }
  .permission-card { overflow-x: auto; }
  .toast-root { left: 12px; right: 12px; bottom: 12px; }
  .toast { min-width: 0; width: 100%; }
  .modal-backdrop { padding: 10px; }
  .guide-drawer { width: min(440px, 100%); }
  .guided-backdrop { padding: 0; }
  .guided-dialog { width: 100%; height: 100dvh; max-height: none; border-radius: 0; }
  .guided-header { min-height: 72px; padding: 14px 16px; }
  .guided-header h2 { font-size: 18px; }
  .guided-progress { padding: 12px 12px 11px; }
  .guided-progress::before { left: calc(16.667% + 7px); right: calc(16.667% + 7px); top: 25px; }
  .guided-progress i { width: 26px; height: 26px; }
  .guided-body { padding: 18px 16px; }
  .guided-intro h3 { font-size: 20px; }
  .guided-choices { grid-template-columns: 1fr; gap: 9px; margin-top: 18px; }
  .guided-choice { min-height: 90px; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; padding: 13px; }
  .guided-choice > .icon-tile { grid-column: auto; }
  .guided-footer { min-height: 66px; margin: 20px -16px -18px; padding: 11px 16px; }
  .guided-footer > span { max-width: 180px; }
  .guided-review { grid-template-columns: 1fr; }
  .guided-review > div:nth-child(odd) { border-right: 0; }
  .guided-review > div:nth-last-child(-n+2) { border-bottom: 1px solid var(--border); }
  .guided-review > div:last-child { border-bottom: 0; }
}

@media (max-width: 430px) {
  .global-search { height: 40px; }
  .global-search kbd { display: none; }
  .global-search input::placeholder { font-size: 11px; }
  .kpi-grid, .kpi-grid-three { grid-template-columns: 1fr 1fr; }
  .kpi-label { font-size: 12px; }
  .auth-options { align-items: center; gap: 14px; flex-wrap: wrap; }
  .command-metrics { gap: 6px; }
  .command-metrics div { padding: 10px; }
  .command-metrics strong { font-size: 15px; }
  .guide-drawer > header { min-height: 82px; padding: 16px; }
  .guide-body { padding: 20px 16px; }
  .guide-drawer > footer { min-height: 72px; padding: 10px 16px; }
  .guide-drawer > footer .btn { min-width: 0; padding: 0 13px; }
  .guided-progress small { font-size: 9px; }
  .guided-footer { align-items: stretch; flex-direction: column-reverse; }
  .guided-footer > span { max-width: none; text-align: center; }
  .guided-footer > div { display: grid; grid-template-columns: 1fr 1fr; }
  .guided-footer > div .btn { min-width: 0; padding: 0 9px; white-space: normal; }
}

@media (max-width: 1180px) {
  .reengagement-pathway { grid-template-columns: repeat(3, 1fr); }
  .message-preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .reengagement-account-filters { flex-wrap: wrap; }
  .reengagement-account-filters .table-search { flex-basis: 100%; }
}

@media (max-width: 980px) {
  .reengagement-overview-grid, .reengagement-two-column, .audit-summary-grid, .telemetry-grid { grid-template-columns: 1fr; }
  .import-actions { grid-template-columns: 1fr; }
  .reengagement-overview-grid .side-card { min-height: auto; }
  .report-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-actions { flex-wrap: wrap; justify-content: flex-start; }
  .report-actions .field { flex-basis: 100%; margin-right: 0; }
}

@media (max-width: 720px) {
  .setup-heading, .setup-section, .setup-footer { padding-left: 17px; padding-right: 17px; }
  .setup-heading { grid-template-columns: 1fr; }
  .setup-heading .icon-tile { display: none; }
  .setup-heading h2 { font-size: 22px; }
  .setup-footer { align-items: stretch; flex-direction: column-reverse; }
  .setup-footer .btn { width: 100%; }
  .reengagement-choice-group { grid-template-columns: 1fr; }
  .reengagement-pathway { grid-template-columns: repeat(2, 1fr); }
  .reengagement-pathway button { min-height: 94px; }
  .message-preview-grid, .message-preview-grid.cadence-grid { grid-template-columns: 1fr; }
  .cadence-summary { flex-direction: column; }
  .reengagement-account-filters > select, .reengagement-account-filters > .btn { width: 100%; }
  .bulk-toolbar { align-items: stretch; flex-direction: column; }
  .bulk-toolbar label { margin-right: 0; }
  .bulk-toolbar select, .bulk-toolbar .btn { width: 100%; }
  .reengagement-pagination { align-items: stretch; flex-direction: column; }
  .reengagement-pagination > div { display: grid; grid-template-columns: 1fr 1fr; }
  .audit-toolbar { flex-direction: column; }
  .audit-toolbar select { min-height: 43px; }
  .audit-event { grid-template-columns: auto minmax(0, 1fr); }
  .audit-event time { grid-column: 2; }
  .report-columns { grid-template-columns: 1fr; }
  .report-actions .btn { flex: 1; min-width: 80px; }
  .account-modal-summary { grid-template-columns: auto minmax(0, 1fr); }
  .account-modal-summary .badge { grid-column: 2; }
}

/* Ask Ava campaign workflow */
.ask-ava-page { display: grid; gap: 20px; }
.ask-ava-page, .ask-ava-page .ask-ava-tab-panel { grid-template-columns: minmax(0, 1fr); }
.ask-ava-page [data-linked-source-identities], .ask-ava-page [data-plan-proposals] { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.ask-ava-page [data-plan-proposals] .table-scroll { max-width: 100%; overflow-x: auto; }
.ask-ava-page [data-plan-proposals] .data-table { min-width: 960px; }
.ask-ava-page [data-plan-proposals] :is(th, td) { vertical-align: top; }
.ask-ava-page [data-plan-proposals] td:first-child { min-width: 180px; }
.ask-ava-tabs { position: relative; height: auto; }
.ask-ava-campaign-filters { padding: 20px; margin-bottom: 20px; }
.ask-ava-campaign-filters .form-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; align-items: end; }
.ask-ava-campaign-filters .field:last-of-type, .ask-ava-campaign-filters .inline-actions { grid-column: span 2; }
@media (max-width: 1000px) {
  .ask-ava-campaign-filters .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .ask-ava-campaign-filters .form-grid { grid-template-columns: minmax(0, 1fr); }
  .ask-ava-campaign-filters .field:last-of-type, .ask-ava-campaign-filters .inline-actions { grid-column: auto; }
}
.ask-ava-analytics { display: grid; gap: 18px; min-width: 0; }
.ask-ava-analytics-card { min-width: 0; overflow: hidden; }
.ask-ava-analytics-body { padding: 16px 20px 20px; }
.ask-ava-analytics-body > * + * { margin-top: 12px; }
.ask-ava-analytics-body > p { color: var(--muted); line-height: 1.55; }
.ask-ava-analytics .kpi-grid { grid-template-columns: repeat(auto-fit, minmax(min(145px, 100%), 1fr)); margin-bottom: 0; }
.ask-ava-analytics .kpi-card { min-height: 145px; padding: 16px; box-shadow: none; }
.ask-ava-analytics .kpi-value { font-size: 24px; line-height: 1.15; }
.ask-ava-analytics .kpi-label { font-size: 13px; }
.ask-ava-setup-page { gap: 18px; }
.ask-ava-intro { display: grid; gap: 0; overflow: hidden; border-color: rgba(92, 160, 133, .34); }
.ask-ava-intro-hero { min-height: 126px; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 26px 30px; color: white; background: radial-gradient(circle at 88% 0%, rgba(130, 234, 194, .28), transparent 34%), linear-gradient(128deg, #092f25 0%, #076449 58%, #0a8f67 100%); }
.ask-ava-intro-copy { min-width: 0; display: flex; align-items: center; gap: 17px; }
.ask-ava-intro-copy > .icon-tile { width: 48px; height: 48px; flex: 0 0 48px; color: #07513d; background: #8ce5c4; border: 0; box-shadow: 0 10px 26px rgba(3, 36, 27, .2); }
.ask-ava-eyebrow { color: #9be9cc; font-size: 9px; font-weight: 820; letter-spacing: .13em; text-transform: uppercase; }
.ask-ava-intro h2 { margin-top: 4px; color: white; font-size: 24px; letter-spacing: -.025em; }
.ask-ava-intro-copy p { max-width: 680px; margin-top: 7px; color: rgba(235, 250, 244, .76); font-size: 12px; line-height: 1.55; }
.ask-ava-intro-meta { min-width: 184px; display: grid; gap: 3px; padding: 13px 16px; border: 1px solid rgba(255, 255, 255, .19); border-radius: 13px; background: rgba(4, 42, 31, .24); backdrop-filter: blur(6px); }
.ask-ava-intro-meta strong { font-size: 12px; }
.ask-ava-intro-meta span { color: rgba(235, 250, 244, .7); font-size: 10px; }
.ask-ava-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; padding: 19px 24px 12px; background: white; }
.ask-ava-steps > div { min-height: 68px; display: grid; grid-template-columns: auto minmax(0, 1fr); align-content: center; align-items: center; gap: 2px 10px; padding: 11px 13px; border: 1px solid var(--border); border-radius: 12px; background: #f9fcfa; }
.ask-ava-steps > div:first-child { border-color: #92cdb6; background: #f0faf6; box-shadow: inset 0 0 0 1px rgba(16, 140, 99, .08); }
.ask-ava-steps > div > span { grid-row: 1 / 3; width: 32px; height: 32px; display: grid; place-items: center; color: var(--emerald); border-radius: 9px; background: var(--mint); }
.ask-ava-steps strong { color: #688078; font-size: 9px; font-weight: 800; }
.ask-ava-steps small { color: var(--text); font-size: 11px; font-weight: 700; }
.ask-ava-ready { display: flex; align-items: center; gap: 11px; margin: 0 24px 19px; padding: 12px 14px; color: #315f50; border: 1px solid #d2e8df; border-radius: 11px; background: #f2faf6; }
.ask-ava-ready > .icon { flex: 0 0 auto; color: var(--emerald); }
.ask-ava-ready > div { display: flex; align-items: baseline; gap: 9px; }
.ask-ava-ready strong { flex: 0 0 auto; font-size: 11px; }
.ask-ava-ready span { color: var(--muted); font-size: 11px; line-height: 1.45; }
.ask-ava-setup { width: 100%; max-width: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 18px; margin: 0; }
.ask-ava-setup-card { min-width: 0; display: flex; flex-direction: column; border-radius: 18px; box-shadow: 0 12px 34px rgba(20, 70, 53, .075); }
.ask-ava-setup-card:last-child { grid-column: 1 / -1; }
.ask-ava-import-only { grid-template-columns: 1fr; }
.ask-ava-import-only .ask-ava-company-card { grid-column: 1 / -1; }
.ask-ava-setup-card .setup-heading { min-height: 104px; grid-template-columns: auto minmax(0, 1fr); gap: 14px; padding: 20px 23px; color: var(--text); border-bottom: 1px solid var(--border); background: linear-gradient(135deg, #f4fbf7, #fbfdfc); }
.ask-ava-setup-card .setup-heading > div > span { color: var(--emerald); font-size: 9px; }
.ask-ava-setup-card .setup-heading .icon-tile { color: var(--emerald); background: white; border: 1px solid #cde5db; box-shadow: 0 6px 15px rgba(28, 91, 68, .08); }
.ask-ava-setup-card .setup-heading h2 { margin-top: 4px; color: var(--text); font-size: 19px; letter-spacing: -.015em; }
.ask-ava-setup-card .setup-heading p { max-width: 460px; margin-top: 5px; color: var(--muted); font-size: 11px; }
.ask-ava-setup-card .setup-section { flex: 1; padding: 21px 23px 23px; border-bottom: 0; }
.ask-ava-setup-card .reengagement-choice-block { margin-top: 0; }
.ask-ava-setup-card .reengagement-choice { min-height: 70px; }
.ask-ava-company-card .reengagement-choice-group { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ask-ava-dates-card .reengagement-choice-group { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ask-ava-choice-block + .form-grid, .ask-ava-choice-block + .field, .ask-ava-choice-block + .ask-ava-bulk-grid { margin-top: 18px; }
.ask-ava-key-player-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ask-ava-enroller-range { display: grid; grid-template-columns: minmax(0, 1fr) minmax(330px, .8fr); align-items: center; gap: 24px; margin-top: 20px; padding: 16px 17px; border: 1px solid #d9e9e2; border-radius: 13px; background: #f7fbf9; }
.ask-ava-enroller-range > div:first-child { display: grid; gap: 4px; }
.ask-ava-enroller-range strong { font-size: 12px; }
.ask-ava-enroller-range p { color: var(--muted); font-size: 11px; line-height: 1.45; }
.ask-ava-enroller-range > .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ask-ava-setup-footer { min-height: 76px; padding: 14px 23px; border-top: 1px solid var(--border); }
.ask-ava-required-note { color: var(--muted); font-size: 10px; }
.ask-ava-setup-actions { display: flex; align-items: center; gap: 9px; }
.ask-ava-bulk-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 14px; }
.ask-ava-company-preview { margin-top: 14px; }
.ask-ava-activation-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 18px 16px 16px; }
.ask-ava-activation-grid button { min-height: 92px; display: grid; grid-template-columns: auto minmax(0, 1fr); align-content: center; align-items: center; gap: 4px 10px; padding: 14px; text-align: left; color: var(--text); border: 1px solid var(--border); border-radius: 12px; background: #fbfdfc; cursor: pointer; }
.ask-ava-activation-grid button:hover:not(:disabled) { border-color: #a9cbbd; background: var(--mint); }
.ask-ava-activation-grid .icon-tile { grid-row: 1 / 3; }
.ask-ava-activation-grid strong { font-size: 12px; }
.ask-ava-activation-grid small { color: var(--muted); font-size: 10px; line-height: 1.35; }
.ask-ava-communication { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 20px; }
.ask-ava-communication > div { display: flex; align-items: center; gap: 13px; }
.ask-ava-communication h2, .ask-ava-link-card h2 { margin-bottom: 4px; font-size: 15px; }
.ask-ava-communication p, .ask-ava-link-card p { color: var(--muted); font-size: 12px; line-height: 1.5; }
.ask-ava-expand-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 17px 16px 16px; }
.ask-ava-expand-grid article { min-height: 178px; display: grid; align-content: start; gap: 10px; padding: 17px; border: 1px solid var(--border); border-radius: 13px; background: #fbfdfc; }
.ask-ava-expand-grid article > strong { font-size: 13px; }
.ask-ava-expand-grid article > small { min-height: 32px; color: var(--muted); line-height: 1.45; }
.ask-ava-expand-grid article > .btn, .ask-ava-expand-grid article > .badge { margin-top: auto; justify-self: start; }
.ask-ava-quick-links { display: grid; gap: 4px; margin-top: 10px; }
.ask-ava-quick-links button { min-height: 34px; display: flex; align-items: center; gap: 8px; padding: 6px 0; color: var(--emerald); text-align: left; border: 0; border-bottom: 1px solid var(--border); background: transparent; cursor: pointer; }
.ask-ava-quick-links button:last-child { border-bottom: 0; }
.ask-ava-next-step { border-color: #cde5db; background: var(--surface-soft); }
.ask-ava-next-step .card-header { align-items: center; flex-wrap: wrap; gap: 16px; }
.ask-ava-next-step .card-header > div:first-child { flex: 1 1 280px; min-width: 0; }
.ask-ava-next-step-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ask-ava-setup-columns { align-items: start; }
.ask-ava-setup-columns > div { min-width: 0; max-width: 100%; }
.ask-ava-tab-panel details.card { margin-top: 14px; overflow: hidden; }
.ask-ava-tab-panel details.card > summary { padding: 18px 20px; cursor: pointer; font-weight: 700; }
.ask-ava-tab-panel details.card > summary:hover { background: var(--surface-soft); }
.ask-ava-tab-panel details.card > form { min-width: 0; padding: 0 20px 20px; }
.ask-ava-tab-panel [data-benefit-fact] { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; }
.ask-ava-tab-panel > .card:not(:has(> .card-header)):not(.ask-ava-communication),
.ask-ava-tab-panel > .reengagement-two-column:not(.ask-ava-setup-columns) > .card,
.ask-ava-link-card { padding: 21px; }
.ask-ava-pay-periods { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 22px; }
.ask-ava-pay-periods > div p { margin-top: 5px; color: var(--muted); font-size: 12px; }
.ask-ava-pay-periods form { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; }
.ask-ava-pay-periods .field { min-width: 250px; }
.ask-ava-link-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ask-ava-link-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 12px; }
.ask-ava-link-card > .ask-ava-link-control, .ask-ava-link-card > .btn, .ask-ava-link-card > p, .ask-ava-link-card > .inline-actions, .ask-ava-link-card > [data-ask-ava-qr] { grid-column: 1 / -1; }
.ask-ava-link-control { display: flex; gap: 8px; }
.ask-ava-link-control input { min-width: 0; flex: 1; height: 42px; padding: 0 12px; color: var(--muted); border: 1px solid var(--border); border-radius: 9px; background: #f8faf9; }
.ask-ava-toggle-grid { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 18px 0; }
.ask-ava-lifecycle-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.ask-ava-lifecycle-grid .btn { min-width: 0; }
.ask-ava-hero .hero-metrics { grid-template-columns: repeat(4, minmax(70px, 1fr)); }
.ask-ava-hero-actions { margin-bottom: -8px; }

@media (max-width: 1180px) {
  .ask-ava-setup { grid-template-columns: 1fr; }
  .ask-ava-key-player-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .ask-ava-intro-hero { align-items: flex-start; flex-direction: column; gap: 16px; }
  .ask-ava-intro-meta { min-width: 0; grid-template-columns: auto 1fr; align-items: baseline; gap: 10px; }
  .ask-ava-expand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ask-ava-activation-grid, .ask-ava-lifecycle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ask-ava-link-grid, .ask-ava-bulk-grid { grid-template-columns: 1fr; }
  .ask-ava-enroller-range { grid-template-columns: 1fr; gap: 13px; }
}

@media (max-width: 720px) {
  .ask-ava-intro-hero { min-height: 0; padding: 22px 18px; }
  .ask-ava-intro-copy { align-items: flex-start; }
  .ask-ava-intro-copy > .icon-tile { width: 42px; height: 42px; flex-basis: 42px; }
  .ask-ava-intro h2 { font-size: 20px; }
  .ask-ava-intro-meta { width: 100%; display: grid; }
  .ask-ava-steps { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 6px; padding: 14px 17px 10px; }
  .ask-ava-steps > div { min-height: 76px; grid-template-columns: 1fr; justify-items: center; gap: 4px; padding: 9px 6px; text-align: center; }
  .ask-ava-steps > div > span { grid-row: auto; width: 29px; height: 29px; }
  .ask-ava-ready { align-items: flex-start; margin: 0 17px 16px; }
  .ask-ava-ready > div { display: grid; gap: 3px; }
  .ask-ava-setup-card .setup-heading { min-height: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); padding: 18px 17px; }
  .ask-ava-setup-card .setup-heading .icon-tile { display: grid; }
  .ask-ava-setup-card .setup-heading h2 { font-size: 17px; }
  .ask-ava-setup-card .setup-section { padding: 18px 17px 20px; }
  .ask-ava-company-card .reengagement-choice-group, .ask-ava-dates-card .reengagement-choice-group, .ask-ava-key-player-grid { grid-template-columns: 1fr; }
  .ask-ava-enroller-range { padding: 14px; }
  .ask-ava-setup-footer { align-items: stretch; flex-direction: column; padding: 14px 17px 17px; }
  .ask-ava-setup-actions { display: grid; grid-template-columns: 1fr; }
  .ask-ava-setup-actions .btn { width: 100%; }
  .ask-ava-communication, .ask-ava-pay-periods, .ask-ava-pay-periods form { align-items: stretch; flex-direction: column; }
  .ask-ava-communication > .btn, .ask-ava-pay-periods .field, .ask-ava-pay-periods .btn { width: 100%; min-width: 0; }
  .ask-ava-next-step .card-header { align-items: stretch; flex-direction: column; }
  .ask-ava-next-step .card-header > div:first-child { flex: none; }
  .ask-ava-next-step-actions { align-items: stretch; flex-direction: column; }
  .ask-ava-next-step .btn { width: 100%; white-space: normal; }
  .ask-ava-expand-grid, .ask-ava-activation-grid, .ask-ava-lifecycle-grid { grid-template-columns: 1fr; }
  .ask-ava-link-control { align-items: stretch; flex-direction: column; }
  .ask-ava-hero .hero-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.ask-ava-compact-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 24px; background: white; border: 1px solid var(--border); border-radius: 14px; }
.ask-ava-compact-header h1 { margin: 8px 0; }
.ask-ava-compact-header p { margin-bottom: 10px; }
.ask-ava-compact-header > .field { min-width: 260px; margin: 0; }
.ask-ava-upload-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.ask-ava-file-zone { padding: 20px 12px; text-align: center; cursor: default; }
.ask-ava-file-zone .btn { margin-top: 8px; }
.ask-ava-document-actions { padding: 0 21px 21px; flex-wrap: wrap; }
@media (max-width: 720px) {
  .ask-ava-document-actions .btn { width: 100%; justify-content: center; }
}
.ask-ava-readonly { border: 0; min-width: 0; padding: 0; margin: 0; display: grid; gap: 20px; }
.ask-ava-contact-results { display: grid; gap: 8px; max-height: 220px; overflow-y: auto; margin: 12px 0; }
.ask-ava-contact-results .btn { text-align: left; white-space: normal; justify-content: flex-start; }
.ask-ava-link-card .badge { align-self: flex-start; }
.ask-ava-link-card .inline-actions { flex-wrap: wrap; }
.ask-ava-tab-panel [hidden], .modal [hidden] { display: none !important; }
@media (max-width: 900px) {
  .ask-ava-upload-grid { grid-template-columns: 1fr; }
  .ask-ava-compact-header { align-items: stretch; flex-direction: column; }
  .ask-ava-compact-header > .field { min-width: 0; }
  .ask-ava-tab-panel [data-benefit-fact] { grid-template-columns: minmax(0, 1fr); }
  .ask-ava-link-card { grid-template-columns: minmax(0, 1fr); }
  .ask-ava-pay-periods .field { min-width: 0; width: 100%; }
}

/* Server/session states */
.app-status { min-height: 100vh; display: grid; place-items: center; align-content: center; gap: 16px; padding: 32px; text-align: center; background: radial-gradient(circle at 50% 20%, var(--mint), transparent 42%); }
.app-status h1 { font-size: 30px; }
.app-status p { max-width: 520px; color: var(--muted); line-height: 1.55; }
.loading-bar { width: 220px; height: 4px; overflow: hidden; border-radius: 99px; background: var(--border); }
.loading-bar::after { width: 45%; height: 100%; display: block; content: ""; border-radius: inherit; background: var(--emerald); animation: loading-slide 1.1s ease-in-out infinite alternate; }
@keyframes loading-slide { from { transform: translateX(0); } to { transform: translateX(122%); } }
.save-state { min-width: 66px; color: var(--muted); font-size: 10px; font-weight: 750; text-align: right; }
.save-state[data-save-state="saving"] { color: var(--amber); }
.save-state[data-save-state="error"] { color: var(--rose); }
.unavailable-note { display: flex; align-items: flex-start; gap: 8px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.unavailable-panel { display: grid; align-content: start; gap: 16px; padding: 24px; }
.is-disabled { opacity: .72; }
button:disabled, input:disabled, select:disabled { cursor: not-allowed; opacity: .58; transform: none !important; box-shadow: none !important; }

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

/* Native build configuration */
[data-build-operations] > fieldset, [data-build-handoff] > fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
[data-build-operations] { margin-top: 24px; }
[data-build-operations] .checkbox-stack { margin-bottom: 18px; }
[data-build-handoff] > fieldset { display: grid; gap: 18px; }
[data-build-handoff] button { justify-self: start; }

/* Private intake and finance workspaces */
[data-invoicing-page] > .card, [data-intake-detail] > .card { margin-top: 18px; }
[data-invoice-form] > .btn { margin-top: 20px; }
[data-invoice-line], [data-intake-file-map] { min-width: 0; display: grid; gap: 14px; margin: 14px 0; padding: 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-soft); }
[data-invoice-line] > .btn { justify-self: start; }
[data-invoice-line] legend, [data-intake-file-map] legend { padding: 0 6px; font-weight: 700; }
[data-intake-detail] form + form { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
[data-intake-detail] pre { max-width: 100%; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.intake-page { width: min(100%, 1040px); margin: 0 auto; padding: clamp(20px, 4vw, 48px); }
.intake-page > .page-header { display: grid; gap: 12px; margin-bottom: 24px; }
.intake-page > .page-header > img { width: 156px; height: auto; }
.intake-page > [role="status"]:not(:empty) { margin-bottom: 18px; }
.intake-page > .card { padding: clamp(18px, 3vw, 32px); }
.intake-page > .card:empty { display: none; }

/* Campaign-specific employee benefits portal */
.employee-body { padding: 0; background: #f5f7f6; color: #253c33; }
.employee-body h1, .employee-body h2, .employee-body h3, .employee-body h4, .employee-body p { margin-top: 0; }
.employee-body p { line-height: 1.65; }
.employee-body a, .employee-body button, .employee-body p, .employee-body h1, .employee-body h2, .employee-body h3, .employee-body dd, .employee-body td, .employee-body th { overflow-wrap: anywhere; }
.employee-body .btn { min-height: 44px; height: auto; white-space: normal; text-align: center; padding: 9px 14px; border-radius: 9px; font-size: 13px; box-shadow: none; }
.employee-body .btn-primary { background: #24774d; }
.employee-body .btn-primary:hover { background: #195f3b; }
.employee-body input[type="checkbox"] { width: 18px; height: 18px; flex: 0 0 auto; accent-color: #24774d; }
.employee-body .field { display: grid; gap: 7px; margin: 14px 0; font-size: 13px; font-weight: 650; min-width: 0; }
.employee-body .field input, .employee-body .field select { width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid #c6d5cc; border-radius: 8px; background: white; }
.employee-skip { position: fixed; top: -100px; left: 12px; z-index: 100; padding: 12px 18px; color: white; background: var(--forest); border-radius: 8px; }
.employee-skip:focus { top: 12px; }
.employee-header { background: #25764a; color: white; }
.employee-header-inner { max-width: 1400px; margin: auto; padding: 13px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
 .employee-header .brand-logo { display: block; width: 145px; height: auto; max-height: none; object-fit: contain; flex-shrink: 0; background: white; padding: 6px 10px; border-radius: 5px; }
.employee-header-inner > span { letter-spacing: .13em; font-size: 10px; font-weight: 750; }
.employee-header .btn-primary { border-color: #e1eade; }
.employee-header .btn-secondary { color: #205a3c; border-color: white; }
.employee-main { max-width: 1400px; margin: auto; padding: 30px 28px 54px; display: grid; grid-template-columns: 255px minmax(0, 1fr); gap: 30px; align-items: start; }
.employee-preview-banner { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 20px; padding: 13px 24px; color: #714405; background: #fff2cf; line-height: 1.6; border-bottom: 1px solid #e5c78c; }
.employee-preview-banner span { max-width: 760px; }
.employee-sidebar { display: grid; gap: 22px; min-width: 0; }
.employee-sidebar > section { padding-bottom: 22px; border-bottom: 1px solid #d6e1d9; }
.employee-sidebar h1 { font-size: 26px; line-height: 1.25; margin-bottom: 9px; color: #245a39; }
.employee-sidebar h2 { font-size: 15px; margin-bottom: 12px; }
.employee-sidebar .employee-actions { align-items: stretch; flex-direction: column; }
.employee-sidebar .employee-company-id { margin-top: 16px; font-size: 12px; color: #56685b; }
.employee-section-kicker { display: block; color: #507255; letter-spacing: .12em; font-size: 10px; font-weight: 800; line-height: 1.7; margin-bottom: 9px; }
.employee-actions { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }
.employee-dates { padding: 18px; background: #eaf1e4; border: 1px solid #d4e2ca; border-radius: 8px; }
.employee-date-list { display: grid; gap: 11px; margin: 15px 0; }
.employee-date-list div { display: grid; gap: 3px; }
.employee-date-list dt { font-size: 11px; color: #607160; }
.employee-date-list dd { margin: 0; font-size: 13px; font-weight: 700; }
.employee-window-status { font-size: 12px; font-weight: 750; color: #28623d; }
.employee-dates > .btn { margin-top: 12px; width: 100%; }
.employee-contact { display: grid; gap: 4px; min-width: 0; margin: 10px 0; font-size: 12px; overflow-wrap: anywhere; }
.employee-contact > span { font-size: 11px; color: #607064; }
.employee-contact > .btn { justify-self: start; min-height: 32px; max-width: 100%; padding: 4px 0; white-space: normal; text-align: left; overflow-wrap: anywhere; }
.employee-contact-slots { display: grid; gap: 10px; }
.employee-contact-slot { min-width: 0; padding: 10px 12px; border: 1px solid #d6e1d9; border-radius: 6px; background: #f5f8f3; break-inside: avoid; }
.employee-contact-slot h3, .employee-additional-contacts h3 { margin: 0; color: #285438; font-size: 12px; font-weight: 750; }
.employee-contact-slot p { margin: 6px 0 0; font-size: 11px; }
.employee-contact-slot .employee-contact { margin-bottom: 0; }
.employee-additional-contacts { margin-top: 14px; }
.employee-sidebar-resources > .btn { display: flex; margin-bottom: 8px; }
.employee-benefits { min-width: 0; }
.employee-ava-prompt { display: flex; align-items: center; gap: 20px; padding: 22px 24px; background: white; border: 1px solid #dce6dc; border-radius: 14px; box-shadow: var(--shadow); }
.employee-ava-prompt > img { width: 80px; height: 80px; flex-shrink: 0; border-radius: 50%; object-fit: cover; border: 3px solid #e4eddc; }
.employee-ava-prompt > div { min-width: 0; }
.employee-ava-prompt h2 { font-size: 28px; color: #245a39; margin-bottom: 6px; }
.employee-ava-prompt p { color: #5c7062; font-size: 13px; }
.employee-ava-prompt .btn { margin-top: 11px; min-width: 240px; justify-content: space-between; }
.employee-getting-started { padding: 24px 5px; }
.employee-getting-started h2 { font-size: 14px; color: #47624e; }
.employee-getting-started ol { list-style: none; padding: 0; margin: 13px 0 0; display: grid; gap: 10px; }
.employee-getting-started li { display: flex; align-items: center; gap: 11px; }
.employee-getting-started li > span { display: grid; place-items: center; width: 24px; height: 24px; flex: 0 0 auto; border-radius: 50%; background: #e1ead8; color: #52763d; font-size: 12px; font-weight: 800; }
.employee-getting-started p { font-size: 12px; }
.employee-getting-started button { cursor: pointer; font-weight: 750; padding: 3px 0; color: #286e47; background: transparent; text-decoration: underline; }
.employee-plan-toolbar { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid #dce5df; color: #5e7063; font-size: 11px; }
.employee-notice { margin: 0; font-size: 12px; color: #21623e; }
.employee-notice:not(:empty) { padding: 10px 12px; background: #e8f1e4; border-radius: 6px; margin-bottom: 12px; }
.employee-category { margin: 17px 0 28px; }
.employee-section-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.employee-section-header h2 { font-size: 20px; line-height: 1.3; color: #28643e; }
.employee-section-header > .btn { min-height: 34px; background: #edf3e7; border-color: #d1dec5; font-size: 11px; color: #466833; }
.employee-plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.employee-plan { display: grid; min-width: 0; padding: 0; border-radius: 13px; background: transparent; border: 0; box-shadow: none; backdrop-filter: none; perspective: 1400px; }
.employee-plan-inner { display: grid; min-width: 0; transform-style: preserve-3d; transition: transform 450ms ease; }
.employee-plan.is-flipped .employee-plan-inner { transform: rotateY(180deg); }
.employee-plan-face { grid-area: 1 / 1; display: flex; flex-direction: column; min-width: 0; padding: 22px; border-radius: 13px; background: white; border: 1px solid #d6e0d8; box-shadow: var(--shadow); backface-visibility: hidden; }
.employee-plan-back { transform: rotateY(180deg); }
.employee-plan-face[aria-hidden="true"] { pointer-events: none; }
.employee-plan.is-highlighted .employee-plan-face { border-color: #44814e; box-shadow: inset 0 0 0 2px #44814e; background: #fdfff9; }
.employee-plan-flip-controls { padding-top: 18px; }
.employee-plan-flip-controls .btn { width: 100%; white-space: normal; }
.employee-plan-back .employee-plan-flip-controls { margin-top: auto; }
.employee-plan-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.employee-plan-heading > div { min-width: 0; }
.employee-plan-carrier { display: block; font-size: 11px; font-weight: 750; color: #657b5d; margin-bottom: 5px; }
.employee-plan h3 { font-size: 17px; line-height: 1.35; color: #284535; }
.employee-plan-heading p { font-size: 11px; color: #697869; margin-top: 5px; }
.employee-highlight { display: flex; align-items: center; gap: 7px; min-height: 32px; font-size: 12px; color: #4c6744; cursor: pointer; padding: 3px 0; flex-shrink: 0; }
.employee-highlight input { margin: 0; }
.employee-facts { margin: 0 0 16px; display: grid; gap: 0; font-size: 13px; }
.employee-facts > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 10px; padding: 6px 0; border-bottom: 1px solid #edf0eb; }
.employee-facts dt { font-weight: 700; }
.employee-facts dd { margin: 0; white-space: pre-wrap; line-height: 1.5; }
.employee-benefits-snapshot { min-width: 0; margin-bottom: 16px; }
.employee-benefits-snapshot > h4 { margin: 0 0 9px; font-size: 14px; color: #284535; }
.employee-snapshot-scroll { max-height: 360px; overflow: auto; overscroll-behavior: contain; overflow-wrap: anywhere; padding-right: 5px; }
.employee-snapshot-scroll:focus-visible { outline: 2px solid #44814e; outline-offset: 3px; }
.employee-snapshot-scroll .employee-facts { margin-bottom: 8px; }
.employee-snapshot-context { margin-top: 10px; font-size: 12px; line-height: 1.5; }
.employee-snapshot-context h5 { font-size: 12px; margin-bottom: 5px; }
.employee-snapshot-context p, .employee-snapshot-scroll > p { font-size: 12px; white-space: pre-wrap; margin: 5px 0; }
.employee-benefits-snapshot > p { margin: 8px 0; font-size: 12px; line-height: 1.5; }
.employee-benefits-snapshot > .btn { margin-top: 8px; white-space: normal; }
.employee-plan-back { max-height: 760px; overflow: auto; overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .employee-benefits-snapshot .employee-facts > div { grid-template-columns: minmax(0, 1fr); gap: 3px; }
}
.employee-rates { border-top: 1px solid #d8e3d4; padding-top: 13px; margin-top: auto; }
.employee-rates h4 { font-size: 13px; margin-bottom: 10px; color: #3b5d3d; }
.employee-rates dl { margin: 0; display: grid; gap: 9px; font-size: 13px; }
.employee-rates dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.employee-rates dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; font-weight: 650; }
.employee-rates > p { font-size: 12px; color: #5c705b; margin-top: 10px; white-space: pre-wrap; }
.employee-unknown { color: #786142; font-size: 12px; }
.employee-plan-face > .employee-unknown { margin: 0 0 14px; }
.employee-plan-details { margin: 15px 0; border-top: 1px solid #e2e9dd; border-bottom: 1px solid #e2e9dd; padding: 11px 0; font-size: 12px; }
.employee-plan-details > h4 { color: #346b40; font-size: 12px; font-weight: 700; }
.employee-plan-details > p { white-space: pre-wrap; margin-top: 12px; }
.employee-source-links { gap: 6px; }
.employee-source-links .btn { min-height: 38px; padding: 8px 10px; font-size: 12px; }
.employee-source-links .icon { width: 14px; height: 14px; }
.employee-documents { margin-top: 34px; padding-top: 25px; border-top: 1px solid #d4dfd6; }
.employee-documents h2 { font-size: 20px; color: #285c3b; margin-bottom: 10px; }
.employee-documents > p { font-size: 12px; color: #5f7164; }
.employee-document-list { display: grid; gap: 9px; margin: 17px 0; }
.employee-document-list > article { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px; border: 1px solid #dce5dc; border-radius: 7px; background: white; }
.employee-document-list article > div { display: grid; gap: 5px; min-width: 0; overflow-wrap: anywhere; }
.employee-document-list strong { font-size: 12px; }
.employee-document-list span { font-size: 11px; color: #68776a; }
.employee-document-list .btn { flex-shrink: 0; }
.employee-empty { padding: 30px 16px; border: 1px dashed #bdcdbc; border-radius: 8px; color: #5f7161; }
.employee-selection-tray { position: fixed; z-index: 70; left: 50%; transform: translateX(-50%); bottom: 18px; width: min(820px, calc(100% - 200px)); display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 14px 18px; background: #fff; border: 1px solid #91b786; border-radius: 10px; box-shadow: 0 10px 50px #0b31152e; }
.employee-selection-tray > div:first-child { display: grid; gap: 5px; }
.employee-selection-tray strong { font-size: 13px; }
.employee-selection-tray span { font-size: 10px; color: #627459; }
.employee-ava-fab { position: fixed; z-index: 71; right: 22px; bottom: 22px; display: flex; align-items: center; gap: 9px; padding: 7px 15px 7px 7px; border: 1px solid #d8e5ce; border-radius: 50px; background: #236b43; color: white; box-shadow: 0 8px 26px #153d252b; cursor: pointer; font-size: 13px; font-weight: 750; }
.employee-ava-fab img { border-radius: 50%; object-fit: cover; width: 44px; height: 44px; }
.employee-ava-fab { max-width: min(320px, calc(100% - 32px)); text-align: left; }
.employee-ava-fab img { flex-shrink: 0; }
.employee-ava-fab span { min-width: 0; white-space: normal; }
.employee-has-selection { padding-bottom: 95px; }
.employee-dialog { width: min(640px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 44px); padding: 0; margin: auto; border: 1px solid #c8d9c5; border-radius: 13px; background: white; color: #253c33; box-shadow: 0 24px 90px #082a2345; overflow-y: auto; overscroll-behavior: contain; }
.employee-dialog::backdrop { background: #09271cd1; backdrop-filter: blur(2px); }
.employee-body:has(.employee-dialog[open]) { overflow: hidden; }
.employee-dialog-wide { width: min(1100px, calc(100% - 32px)); }
.employee-dialog-header { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; padding: 20px 24px; border-bottom: 1px solid #dce6d9; background: #f2f7ee; }
.employee-dialog-header h2 { font-size: 21px; line-height: 1.3; color: #285438; }
.employee-dialog-header > .btn { flex-shrink: 0; min-height: 32px; padding: 5px 8px; }
.employee-dialog-body { padding: 24px; min-width: 0; }
.employee-dialog-body > p, .employee-dialog-body > h3, .employee-dialog-body > form, .employee-dialog-body > section { margin-bottom: 16px; }
.employee-dialog-body h3 { font-size: 16px; }
.employee-dialog-body .employee-actions { margin: 14px 0; }
.employee-dialog-body .employee-date-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.employee-check { display: flex; align-items: flex-start; gap: 10px; line-height: 1.6; font-size: 12px; cursor: pointer; margin: 12px 0; }
.employee-check input { margin-top: 3px; }
#employee-preferences [data-pref-form] { padding: 20px 24px; font-size: 16px; line-height: 1.5; }
#employee-preferences [data-pref-form] fieldset { min-width: 0; padding: 0; border: 0; }
#employee-preferences [data-pref-form] legend { padding: 0 0 8px; font-weight: 700; }
#employee-preferences [data-pref-form] .employee-check { min-height: 44px; align-items: center; margin: 4px 0; font-size: 16px; }
#employee-preferences [data-pref-form] .employee-check input { width: 20px; height: 20px; margin: 0; flex-shrink: 0; }
#employee-preferences [data-pref-form] input[type="range"] { display: block; width: 100%; min-height: 44px; }
#employee-preferences [data-pref-body] > progress { display: block; width: 100%; height: 6px; border: 0; accent-color: #18865c; }
#employee-preferences .employee-dialog-header > .btn { min-height: 44px; }
.employee-warning { background: #fff8e9; border: 1px solid #e9d8ac; border-radius: 7px; padding: 13px; color: #71551e; font-size: 12px; }
.employee-muted { color: #5c7062; font-size: 12px; line-height: 1.65; }
.employee-qr { display: grid; gap: 7px; justify-items: center; margin: 18px auto; break-inside: avoid; }
.employee-qr > svg { width: 172px; height: 172px; max-width: 100%; background: white; }
.employee-qr figcaption { font-size: 11px; text-align: center; color: #486143; }
.employee-invite { padding-top: 22px; border-top: 1px solid #dce5d9; }
.employee-invite h3 { margin-bottom: 10px; }
.employee-invite > p { font-size: 12px; margin-bottom: 8px; }
#employee-invite-error, .employee-compare-error { font-size: 12px; color: #9a3928; margin: 10px 0; }
#employee-share-status, #employee-invite-result, #employee-differences-status { font-size: 12px; color: #3c6341; margin: 12px 0; }
.employee-delivery { padding: 15px; background: #f2f7ee; border: 1px solid #dbe6d4; border-radius: 8px; }
.employee-delivery h3 { margin-bottom: 8px; }
.employee-compare-form { padding: 17px 0; border-top: 1px solid #dce6d9; }
.employee-compare-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.employee-compare-form legend { font-weight: 750; margin-bottom: 8px; font-size: 15px; }
.employee-table-scroll { max-width: 100%; overflow-x: auto; border: 1px solid #cfddc9; border-radius: 7px; margin: 18px 0; }
.employee-comparison { width: 100%; border-collapse: collapse; table-layout: fixed; min-width: 640px; font-size: 12px; }
.employee-comparison caption { text-align: left; font-weight: 750; padding: 13px; background: #edf4e6; }
.employee-comparison th, .employee-comparison td { vertical-align: top; text-align: left; padding: 12px; border: 1px solid #dce5d6; white-space: pre-wrap; line-height: 1.5; }
.employee-comparison thead th { color: #285b37; background: #f1f6ed; font-size: 13px; }
.employee-comparison th small { display: block; font-size: 10px; font-weight: 500; margin-top: 7px; color: #5f7258; }
.employee-comparison tbody th { font-weight: 650; }
.employee-comparison .employee-difference { background: #f3f6db; }
.employee-difference-label { display: block; font-size: 9px; color: #59692c; font-weight: 800; margin-top: 6px; text-transform: uppercase; }
.employee-comparison .employee-source-links { display: grid; }
.employee-comparison .employee-source-links .btn { justify-content: flex-start; text-align: left; }
.employee-answer-table { min-width: 280px; table-layout: auto; font-size: 14px; }
.employee-answer-table th, .employee-answer-table td { min-width: 90px; overflow-wrap: anywhere; }
.employee-rates .employee-table-scroll { margin: 12px 0; }
.employee-table-caption { margin: 0; padding: 13px; font-weight: 750; background: #edf4e6; }
.employee-summary { display: grid; gap: 22px; min-width: 0; background: white; color: #253c33; font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.employee-summary > *, .employee-summary-header > *, .employee-summary-heading > * { min-width: 0; }
.employee-summary h1 { font-size: 24px; font-weight: 500; line-height: 1.2; margin: 0 0 7px; }
.employee-summary h2 { font-size: 15px; font-weight: 550; margin: 0 0 10px; }
.employee-summary h3 { font-size: 14px; line-height: 1.3; margin: 0 0 7px; }
.employee-summary h4 { font-size: 12px; margin: 0 0 5px; }
.employee-summary-header { display: grid; grid-template-columns: minmax(130px, .85fr) minmax(0, 1fr) minmax(220px, 1.2fr); gap: 8px 18px; align-items: start; padding-bottom: 18px; border-bottom: 1px solid #e6ebe7; }
.employee-summary-brand { grid-column: 1; grid-row: 1 / span 2; align-self: start; }
.employee-summary-brand .brand-logo { width: 184px; max-width: 100%; height: auto; }
.employee-summary-company { grid-column: 2; font-size: 11px; }
.employee-summary-company h2 { margin-bottom: 5px; font-size: 16px; }
.employee-summary-company p { margin: 3px 0; }
.employee-summary-contacts { grid-column: 2; font-size: 10px; }
.employee-summary-contacts > * { margin: 0 0 5px; }
.employee-summary-contacts strong, .employee-summary-contacts span { display: block; }
.employee-summary-contacts .employee-contact { gap: 2px; font-size: 10px; }
.employee-summary-contacts .employee-contact > .btn { min-height: 0; padding: 1px 0; font-size: 10px; }
.employee-summary-contacts .employee-contact-slots { gap: 5px; }
.employee-summary-contacts .employee-contact-slot { padding: 5px 7px; }
.employee-summary-contacts .employee-contact-slot h3, .employee-summary-contacts .employee-additional-contacts h3 { font-size: 10px; }
.employee-summary-header .employee-summary-resources { grid-column: 3; grid-row: 1 / span 2; }
.employee-summary-resources { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.employee-summary-resource { min-width: 0; text-align: center; break-inside: avoid; font-size: 10px; }
.employee-summary-resource > p { margin: 5px 0; }
.employee-summary-resource > .btn { display: flex; justify-content: center; min-height: 0; padding: 3px 0; background: none; border: 0; box-shadow: none; color: #28714d; font-size: 10px; white-space: normal; }
.employee-summary-resource .employee-qr { margin: 0 auto 5px; gap: 4px; }
.employee-summary-resource .employee-qr > svg { width: 64px; height: 64px; }
.employee-summary-resource .employee-qr figcaption { display: none; }
.employee-summary-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 20px; align-items: start; }
.employee-summary-toolbar { display: flex; flex-wrap: wrap; gap: 5px; }
.employee-summary-toolbar .btn { min-height: 26px; padding: 4px 8px; font-size: 10px; }
.employee-summary-totals { font-size: 11px; }
.employee-summary-totals h2 { font-size: 12px; font-weight: 750; margin-bottom: 5px; }
.employee-summary-totals > p { margin: 4px 0; font-size: 10px; }
.employee-summary .employee-summary-totals .employee-facts { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0; font-size: 10px; }
.employee-summary .employee-summary-totals .employee-facts > div { display: flex; flex-wrap: wrap; gap: 4px; padding: 0; border: 0; }
.employee-summary-totals .employee-facts dt { font-weight: 500; }
.employee-summary-totals .employee-facts dt::after { content: ":"; }
.employee-summary-totals .employee-facts dd { color: #198754; font-weight: 650; }
.employee-summary-warning { margin: 0; padding: 10px 12px; background: #fff4c7; border: 1px solid #f1e6b7; border-radius: 2px; color: #6a581e; font-size: 11px; }
.employee-summary-highlights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
.employee-summary-plan { min-width: 0; padding: 10px; border: 1px solid #dfe6e0; border-radius: 2px; background: white; box-shadow: 0 2px 5px #1638240a; }
.employee-summary-plan-label { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; font-size: 10px; color: #617265; }
.employee-summary-category { display: inline-block; max-width: 100%; padding: 3px 6px; border-radius: 3px; background: #198754; color: white; font-size: 9px; font-weight: 750; text-transform: uppercase; }
.employee-summary-plan > p { margin: 5px 0 8px; font-size: 11px; }
.employee-summary .employee-facts { margin: 0 0 8px; font-size: 11px; }
.employee-summary .employee-facts > div { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 6px; padding: 3px 0; }
.employee-summary .employee-facts dd { line-height: 1.4; }
.employee-summary .employee-rates { margin-top: 8px; padding-top: 7px; }
.employee-summary .employee-rates dl { gap: 4px; font-size: 11px; }
.employee-summary .employee-rates dl > div { flex-wrap: wrap; gap: 3px 8px; }
.employee-summary .employee-rates dt, .employee-summary .employee-rates dd { min-width: 0; }
.employee-summary .employee-rates > p, .employee-summary .employee-unknown, .employee-summary .employee-muted { font-size: 10px; }
.employee-summary .employee-source-links { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: 7px; }
.employee-summary .employee-source-links .btn { max-width: 100%; min-height: 0; height: auto; padding: 3px 0; white-space: normal; text-align: left; font-size: 10px; }
.employee-summary .employee-plan-details { margin: 8px 0; padding: 7px 0; font-size: 11px; }
.employee-summary .employee-plan-structured { margin-top: 7px; font-size: 10px; }
.employee-summary .employee-plan-structured summary { cursor: pointer; font-weight: 650; }
.employee-summary .employee-snapshot-scroll { max-height: none; overflow: visible; padding: 0; }
.employee-summary .employee-table-scroll { min-width: 0; margin: 7px 0; overflow: visible; border-radius: 0; }
.employee-summary .employee-comparison { width: 100%; min-width: 0; table-layout: fixed; font-size: 10px; }
.employee-summary .employee-comparison th, .employee-summary .employee-comparison td { min-width: 0; padding: 4px; font-size: inherit; overflow-wrap: anywhere; }
.employee-summary .employee-table-caption { padding: 5px; font-size: 10px; }
.employee-summary .employee-snapshot-context, .employee-summary .employee-snapshot-context p, .employee-summary .employee-snapshot-context h5 { font-size: 10px; }
.employee-summary-carriers { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 18px; border-top: 1px solid #e6ebe7; padding-top: 16px; text-align: center; }
.employee-summary-carriers h2 { flex-basis: 100%; margin: 0; font-size: 12px; }
.employee-summary-carriers .employee-summary-resource { flex: 0 1 105px; }
.employee-summary-carriers .employee-qr > svg { width: 90px; height: 90px; }
.employee-summary-other-table { width: 100%; min-width: 0; border-collapse: collapse; table-layout: fixed; font-size: 11px; }
.employee-summary-other-table th, .employee-summary-other-table td { vertical-align: top; text-align: left; padding: 7px 5px; border-bottom: 1px solid #e4e9e5; overflow-wrap: anywhere; }
.employee-summary-other-table th:first-child { width: 29%; }
.employee-summary-other-table th:nth-child(2) { width: 15%; }
.employee-summary-other-table th:nth-child(3) { width: 39%; }
.employee-summary-other-table th:last-child { width: 17%; text-align: right; }
.employee-summary-other-table td:last-child { text-align: right; color: #28714d; }
.employee-summary-other-table thead th { font-size: 10px; font-weight: 750; }
.employee-summary-other-table tbody th { font-weight: 650; }
.employee-summary-other-table p { margin: 3px 0; }
.employee-summary-other-table .employee-facts > div { display: block; border: 0; padding: 2px 0; }
.employee-summary-other-table .employee-facts dt, .employee-summary-other-table .employee-facts dd { display: inline; }
.employee-summary-other-table .employee-facts dt::after { content: ": "; }
.employee-summary-other-table .employee-facts dd { white-space: pre-wrap; }
.employee-summary-footer { padding-top: 12px; border-top: 1px solid #e6ebe7; text-align: center; font-size: 10px; color: #68756d; }
.employee-summary-footer p { margin: 3px 0; }
.employee-summary-footer strong { color: #253c33; }
.employee-ava-dialog { width: min(720px, calc(100% - 32px)); height: min(760px, calc(100dvh - 44px)); border: 0; border-radius: 10px; overflow: hidden; }
.employee-ava-dialog #employee-chat-scope { margin: 12px 0; border-radius: 6px; }
.employee-ava-dialog[open] { display: flex; flex-direction: column; }
.employee-ava-dialog .employee-ava-header { min-height: 96px; flex-shrink: 0; align-items: center; padding: 16px; border: 0; background: #198754; color: white; }
.employee-ava-dialog .employee-ava-identity { display: flex; align-items: center; min-width: 0; gap: 12px; }
.employee-ava-dialog .employee-ava-identity img { width: 64px; height: 64px; flex-shrink: 0; border: 3px solid white; border-radius: 50%; object-fit: cover; background: white; }
.employee-ava-dialog .employee-ava-header h2 { min-width: 0; color: white; font-size: 22px; font-weight: 750; line-height: 1.25; white-space: normal; overflow-wrap: normal; }
.employee-ava-dialog .employee-ava-header > .btn { width: 44px; height: 44px; padding: 8px; color: white; background: transparent; border: 0; }
.employee-ava-dialog .employee-ava-header > .btn:hover { background: #ffffff1f; }
.employee-ava-dialog .employee-ava-header :focus-visible { outline-color: white; }
.employee-ava-dialog .employee-ava-body { display: flex; flex-direction: column; flex: 1; min-height: 0; min-width: 0; background: white; font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
.employee-ava-dialog .employee-ava-thread { flex: 1; min-height: 100px; overflow-y: auto; overscroll-behavior: contain; overflow-anchor: none; scroll-behavior: auto; padding: 0 20px; scrollbar-gutter: stable; overflow-wrap: anywhere; }
.employee-ava-dialog .employee-grounding { padding: 10px 12px; background: #f5f7f5; color: #425b4b; font-size: 12px; line-height: 1.6; }
.employee-ava-dialog .employee-grounding > .btn { margin-top: 6px; font-size: 11px; white-space: normal; text-align: left; }
.employee-ava-dialog .employee-conversation { display: grid; gap: 20px; margin: 18px 0; min-width: 0; }
.employee-ava-dialog .employee-message-content { min-width: 0; padding: 14px; border: 1px solid #e2e6e3; border-radius: 6px; background: #f8f9fa; }
.employee-ava-dialog .employee-chat-empty { color: #647268; font-size: 14px; line-height: 1.65; padding: 6px 0; }
.employee-ava-dialog .employee-message { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: start; min-width: 0; }
.employee-ava-dialog .employee-message-avatar { width: 34px; height: 34px; object-fit: cover; border: 1px solid #e0e5e1; border-radius: 50%; }
.employee-ava-dialog .employee-message h3 { font-size: 12px; color: #4b6254; margin-bottom: 6px; }
.employee-ava-dialog .employee-message-content > p { white-space: pre-wrap; margin: 0; color: #26332c; font-size: 16px; line-height: 1.5; }
.employee-ava-dialog .employee-answer { color: #26332c; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.employee-ava-dialog .employee-staff-reaction { margin-top: 16px; padding-top: 10px; border-top: 1px solid #dce7e0; font-size: 13px; }
.employee-ava-dialog .employee-staff-reaction summary { cursor: pointer; min-height: 44px; padding: 10px 0; color: #43594b; }
.employee-ava-dialog .employee-staff-reaction .field { display: grid; gap: 6px; margin: 10px 0; }
.employee-ava-dialog .employee-staff-reaction textarea { width: 100%; min-width: 0; max-width: 100%; padding: 8px; font-size: 16px; }
.employee-ava-dialog .employee-staff-reaction .btn { min-height: 44px; white-space: normal; }
.employee-ava-dialog .employee-message-user { display: block; margin-left: 52px; }
.employee-ava-dialog .employee-message-user .employee-message-content { background: #e7f0ea; border-color: #e2ece5; }
.employee-ava-dialog .employee-sources { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.employee-ava-dialog .employee-sources h4 { width: 100%; font-size: 11px; color: #52665a; margin: 0; font-weight: 500; }
.employee-ava-dialog .employee-sources details { max-width: 100%; padding: 6px 9px; border: 1px solid #cad7ce; border-radius: 6px; background: white; }
.employee-ava-dialog .employee-sources summary { cursor: pointer; color: #176043; font-size: 12px; font-weight: 550; line-height: 1.5; overflow-wrap: anywhere; }
.employee-ava-dialog .employee-sources blockquote { margin: 10px 0; padding: 10px 12px; border-left: 3px solid #91b7a3; font-size: 13px; line-height: 1.6; background: #f6f9f5; white-space: pre-wrap; overflow-wrap: anywhere; }
.employee-ava-dialog .employee-message-content > .employee-partial { margin-top: 12px; padding-top: 10px; border-top: 1px solid #dce7e0; font-size: 12px; color: #52665a; }
.employee-ava-dialog .employee-message-content .employee-table-scroll { margin: 12px 0; }
.employee-ava-dialog .employee-ava-controls { flex-shrink: 0; max-height: 60%; overflow-y: auto; overscroll-behavior: contain; padding: 10px 20px 6px; border-top: 1px solid #e0e7e2; background: white; }
.employee-ava-dialog .employee-compose { display: flex; align-items: flex-end; gap: 8px; }
.employee-ava-dialog .employee-compose textarea { width: 100%; min-width: 0; height: 44px; min-height: 44px; max-height: 120px; resize: vertical; padding: 10px 12px; border: 1px solid #3b8e6f; border-radius: 5px; background: white; font-size: 15px; line-height: 22px; }
.employee-ava-dialog .employee-compose textarea::placeholder { color: #737d77; opacity: 1; }
.employee-ava-dialog .employee-compose > .btn { flex-shrink: 0; width: 44px; height: 44px; min-height: 44px; padding: 9px; border: 1px solid #16865c; border-radius: 5px; color: white; background: #16865c; }
.employee-ava-dialog .employee-compose > .btn:hover:not(:disabled) { background: #116d4b; }
.employee-ava-dialog .employee-ava-tools { position: relative; min-height: 44px; margin-top: 3px; }
.employee-ava-dialog .employee-ava-tools > .btn { position: absolute; top: 0; right: 0; min-height: 44px; padding: 6px 0 6px 8px; color: #52685c; font-size: 11px; background: transparent; }
.employee-ava-dialog .employee-ava-details { color: #52685c; font-size: 12px; line-height: 1.5; }
.employee-ava-dialog .employee-ava-details > summary { cursor: pointer; min-height: 44px; padding: 12px 0; }
.employee-ava-dialog .employee-ava-tools > .employee-ava-details > summary { padding-right: 126px; font-size: 11px; }
.employee-ava-dialog .employee-ava-info { max-height: 180px; overflow-y: auto; padding: 6px 2px 10px; overscroll-behavior: contain; overflow-wrap: anywhere; }
.employee-ava-dialog .employee-ava-contacts { margin-top: 3px; }
.employee-ava-dialog .employee-ava-contacts > summary { font-size: 11px; }
.employee-ava-dialog .employee-auto-scroll { width: fit-content; min-height: 44px; margin: 0; gap: 8px; color: #43594b; font-size: 12px; cursor: pointer; }
.employee-ava-dialog .employee-auto-scroll input { width: 18px; height: 18px; flex-shrink: 0; accent-color: #16865c; }
.employee-ava-dialog .employee-ava-info p { margin: 8px 0; }
.employee-ava-dialog .employee-ava-info h4, .employee-ava-dialog .employee-ava-info h5 { margin: 12px 0 6px; }
.employee-ava-dialog .employee-source-manifest { padding-left: 20px; }
.employee-ava-dialog .employee-source-manifest li { margin: 8px 0; }
.employee-ava-dialog .employee-source-manifest span { display: block; }
.employee-ava-dialog .employee-staff-tests { margin-top: 14px; padding-top: 8px; border-top: 1px solid #dce7e0; }
.employee-ava-dialog .employee-staff-tests .employee-actions { margin: 8px 0; }
.employee-ava-dialog .employee-staff-tests .btn { min-height: 44px; white-space: normal; text-align: left; }
.employee-ava-dialog .employee-staff-attempt { padding: 10px 0; border-top: 1px solid #dce7e0; }
.employee-ava-dialog .employee-staff-attempt summary { cursor: pointer; padding: 6px 0; }
.employee-ava-dialog .employee-staff-attempt pre { max-height: 240px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 11px; padding: 8px; background: #f3f6f4; }
.employee-ava-dialog .employee-suggestions { display: flex; gap: 7px; flex-wrap: wrap; margin: 12px 0; }
.employee-ava-dialog .employee-suggestions:empty { display: none; }
.employee-ava-dialog .employee-suggestions button { min-height: 36px; max-width: 100%; padding: 8px 10px; border: 1px solid #cee0d2; border-radius: 4px; background: white; color: #355e41; font-size: 12px; text-align: left; cursor: pointer; line-height: 1.5; }
.employee-ava-dialog .employee-suggestions button:hover:not(:disabled) { background: #eff5ed; }
.employee-ava-dialog .employee-working { display: flex; align-items: center; gap: 10px; padding: 12px; color: #31573c; background: #f0f6ec; border-radius: 3px; font-size: 13px; }
.employee-ava-dialog .employee-chat-error { padding: 13px; margin: 12px 0; border: 1px solid #e4c99b; border-radius: 3px; background: #fff8e9; color: #744c14; line-height: 1.6; font-size: 12px; }
.employee-ava-dialog .employee-chat-error p { margin-bottom: 10px; }
.employee-ava-dialog .employee-provider-notice { margin: 12px 0; color: #43573b; font-size: 12px; line-height: 1.6; }
.employee-ava-dialog .employee-ava-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 9px 0 0; padding: 0; }
.employee-ava-dialog .employee-ava-actions > .btn { width: 100%; min-width: 0; min-height: 44px; justify-content: center; padding: 8px; border: 1px solid #16865c; border-radius: 5px; background: white; color: #176043; font-size: 13px; font-weight: 650; white-space: normal; text-align: center; line-height: 1.3; }
.employee-ava-dialog .employee-ava-actions > .btn-primary { background: #16865c; color: white; }
.employee-ava-dialog .employee-ava-actions > .btn:hover { border-color: #116d4b; background: #edf7f1; }
.employee-ava-dialog .employee-ava-actions > .btn-primary:hover { background: #116d4b; }
.employee-ava-dialog .employee-ava-actions > a > .icon { display: none; }
.employee-footer { max-width: 1344px; margin: auto; padding: 26px 28px 95px; border-top: 1px solid #dce6de; text-align: center; color: #5e7164; font-size: 12px; }
.employee-footer > strong { color: #284c34; margin-right: 12px; }
.employee-footer p { max-width: 800px; margin: 14px auto 0; font-size: 11px; }
.employee-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 14px; }
.employee-state { min-height: 56vh; max-width: 680px; padding: 64px 24px; margin: auto; text-align: center; }
.employee-state > .icon { color: #577e44; margin: 0 auto 24px; }
.employee-state h1 { font-size: 30px; color: var(--forest); margin-bottom: 20px; }
.employee-state p { color: #586e5f; }
.employee-state .btn { margin: 14px 0; }
#employee-print-area { display: none; }
.employee-publication { display: grid; gap: 16px; min-width: 0; padding: 21px; }
.employee-publication p, .employee-publication h2 { margin: 0; overflow-wrap: anywhere; }
.employee-publication .card-header { padding: 0; }
.employee-publication .field { margin: 0; }
.employee-publication .inline-actions, .employee-preview-picker .inline-actions { flex-wrap: wrap; }
.employee-publication .ask-ava-link-control { width: 100%; flex-wrap: wrap; }
.employee-publication-status { color: var(--muted); font-size: 12px; }
.employee-publication-documents { max-height: 210px; overflow-y: auto; padding: 12px 12px 12px 30px; background: #f2f6f0; border-radius: 8px; }
.employee-publication-documents li { padding: 5px 0; overflow-wrap: anywhere; }
.employee-preview-picker { display: grid; gap: 18px; }
.employee-preview-picker .field { max-width: 760px; }
[data-employee-preview-result] { overflow-wrap: anywhere; line-height: 1.65; }
[data-employee-preview-result]:empty, [data-publication-error]:empty { display: none; }
[data-employee-preview-result] a { color: var(--emerald); text-decoration: underline; }
[data-publication-error] { color: #8a2727; padding: 12px; border: 1px solid #e2bbbb; background: #fff4f2; border-radius: 8px; margin-top: 12px; }
@media (max-width: 1100px) {
  .employee-main { grid-template-columns: 220px minmax(0, 1fr); gap: 22px; padding: 25px 20px 45px; }
  .employee-plan-face { padding: 16px; }
  .employee-plan-heading { flex-direction: column-reverse; align-items: stretch; }
  .employee-highlight { align-self: flex-end; }
  .employee-header-inner > span { display: none; }
  .employee-selection-tray { left: 18px; transform: none; width: calc(100% - 175px); }
}
@media (max-width: 850px) {
  .employee-main { grid-template-columns: 1fr; gap: 25px; }
  .employee-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
  .employee-sidebar > section { min-width: 0; padding-bottom: 16px; }
  .employee-sidebar > .employee-contacts { grid-column: 1 / -1; }
  .employee-sidebar .employee-contact-slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .employee-filters { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
  .employee-filters h2 { grid-column: 1 / -1; }
  .employee-company { align-self: center; }
  .employee-sidebar-resources { grid-column: 1 / -1; }
  .employee-selection-tray { gap: 10px; flex-wrap: wrap; bottom: 12px; padding: 12px; }
  .employee-selection-tray .btn { min-height: 34px; font-size: 11px; padding: 6px 9px; }
  .employee-has-selection { padding-bottom: 130px; }
}
@media (max-width: 580px) {
  .employee-header-inner { flex-wrap: wrap; gap: 12px; padding: 12px 16px; justify-content: center; }
  .employee-header .brand-logo { width: 120px; }
  .employee-header .employee-actions { justify-content: center; width: 100%; }
  .employee-header .btn { min-height: 36px; font-size: 11px; }
  .employee-main { padding: 22px 14px 36px; }
  .employee-sidebar { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .employee-sidebar h1 { font-size: 23px; }
  .employee-dates { padding: 12px; }
  .employee-sidebar .employee-contacts { grid-column: 1 / -1; }
  .employee-sidebar .employee-contact-slots { grid-template-columns: minmax(0, 1fr); }
  .employee-contacts .employee-actions { flex-direction: row; }
  .employee-ava-prompt { gap: 13px; padding: 18px 14px; }
  .employee-ava-prompt > img { width: 52px; height: 52px; align-self: flex-start; }
  .employee-ava-prompt h2 { font-size: 22px; }
  .employee-ava-prompt .employee-section-kicker { font-size: 10px; }
  .employee-ava-prompt .btn { min-width: 0; }
  .employee-plan-grid { grid-template-columns: 1fr; }
  .employee-plan-face { padding: 19px; }
  .employee-plan-heading { flex-direction: column; }
  .employee-highlight { align-self: flex-start; }
  .employee-section-header h2 { font-size: 19px; }
  .employee-section-header > .btn { font-size: 10px; padding: 6px 9px; }
  .employee-plan-toolbar { font-size: 10px; }
  .employee-getting-started { padding: 20px 0; }
  .employee-document-list > article { align-items: flex-start; }
  .employee-document-list .btn { padding: 7px 9px; min-height: 34px; font-size: 10px; }
  .employee-selection-tray { left: 8px; right: 8px; bottom: 8px; width: auto; justify-content: center; text-align: center; gap: 8px; }
  .employee-selection-tray > div:first-child { display: flex; gap: 10px; align-items: center; }
  .employee-selection-tray > .employee-actions { justify-content: center; gap: 6px; }
  .employee-ava-fab { position: static; width: fit-content; margin: 12px auto 28px; padding: 6px 15px 6px 6px; }
  .employee-footer { padding-bottom: 24px; }
  .employee-ava-fab img { width: 38px; height: 38px; }
  .employee-dialog, .employee-dialog-wide, .employee-ava-dialog { width: calc(100% - 16px); max-height: calc(100dvh - 20px); border-radius: 10px; }
  .employee-ava-dialog { height: calc(100dvh - 20px); }
  .employee-dialog-header { padding: 17px 15px; }
  .employee-dialog-header h2 { font-size: 19px; }
  .employee-dialog-body { padding: 17px 15px; }
  .employee-dialog-body .employee-date-list { grid-template-columns: 1fr; }
  .employee-dialog .field input, .employee-dialog .field select, .employee-ava-dialog .employee-compose textarea { font-size: 16px; }
  .employee-ava-dialog .employee-ava-header { padding: 12px; gap: 8px; min-height: 88px; }
  .employee-ava-dialog .employee-ava-identity { gap: 8px; }
  .employee-ava-dialog .employee-ava-identity img { width: 64px; height: 64px; }
  .employee-ava-dialog .employee-ava-header h2 { font-size: 18px; }
  .employee-ava-dialog .employee-ava-thread { padding: 0 12px; }
  .employee-ava-dialog .employee-ava-controls { padding-left: 12px; padding-right: 12px; }
  .employee-ava-dialog .employee-ava-actions { gap: 7px; }
  .employee-ava-dialog .employee-ava-actions > .btn { font-size: 12px; padding: 7px 5px; }
  .employee-ava-dialog .employee-message { grid-template-columns: 26px minmax(0, 1fr); gap: 6px; }
  .employee-ava-dialog .employee-message-avatar { width: 26px; height: 26px; }
  .employee-ava-dialog .employee-message-content { padding: 10px; }
  .employee-ava-dialog .employee-message-user { margin-left: 32px; }
  .employee-summary-header, .employee-summary-heading, .employee-summary-highlights { grid-template-columns: minmax(0, 1fr); }
  .employee-summary-header > .employee-summary-brand, .employee-summary-header > .employee-summary-company, .employee-summary-header > .employee-summary-contacts, .employee-summary-header > .employee-summary-resources { grid-column: auto; grid-row: auto; }
  .employee-summary-header .employee-summary-resources { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .employee-summary-heading { gap: 14px; }
  .employee-summary-plan { padding: 12px; }
  .employee-summary-other-table { font-size: 10px; }
  .employee-summary-other-table th, .employee-summary-other-table td { padding: 6px 3px; }
  .employee-preview-banner { padding: 12px 16px; font-size: 12px; }
  .employee-footer > strong, .employee-footer > span { display: block; margin: 0 0 6px; }
}
@media (max-width: 480px) {
  .employee-publication .card-header { flex-wrap: wrap; gap: 10px; }
  .employee-publication .ask-ava-link-control input { flex: auto; width: 100%; }
  .employee-publication .inline-actions > .btn, .employee-preview-picker .inline-actions > .btn { width: 100%; white-space: normal; }
}
@media print {
  @page employee-benefits { size: Letter; margin: 14mm; }
  html:has(> .employee-body) { background: white; }
  .employee-body { page: employee-benefits; background: white; color: black; padding: 0; font-size: 10pt; }
  .employee-body .employee-header, .employee-body .employee-footer, .employee-body .employee-selection-tray, .employee-body .employee-ava-fab, .employee-body dialog, .employee-body .employee-skip { display: none !important; }
  .employee-body.employee-printing #employee-app > :not(#employee-print-area) { display: none !important; }
  .employee-body.employee-printing #employee-print-area { display: block; }
  .employee-body .employee-summary { display: block; width: 100%; padding: 0; font-size: 8.5pt; line-height: 1.35; }
  .employee-body .employee-summary > * { margin-bottom: 10pt; }
  .employee-body .employee-summary-header { grid-template-columns: minmax(0, .85fr) minmax(0, 1fr) minmax(0, 1.15fr); gap: 5pt 10pt; padding-bottom: 10pt; }
  .employee-body .employee-summary-header > .employee-summary-brand { grid-column: 1; grid-row: 1 / span 2; }
  .employee-body .employee-summary-header > .employee-summary-company, .employee-body .employee-summary-header > .employee-summary-contacts { grid-column: 2; grid-row: auto; }
  .employee-body .employee-summary-header > .employee-summary-resources { grid-column: 3; grid-row: 1 / span 2; }
  .employee-body .employee-summary-heading { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 12pt; }
  .employee-body .employee-summary-toolbar { display: none !important; }
  .employee-body .employee-summary h1 { font-size: 16pt; }
  .employee-body .employee-summary h2 { font-size: 10pt; }
  .employee-body .employee-summary h3 { font-size: 9pt; }
  .employee-body .employee-summary h4 { font-size: 8.5pt; }
  .employee-body .employee-summary-company h2 { font-size: 11pt; }
  .employee-body .employee-summary-company, .employee-body .employee-summary-contacts { font-size: 8pt; }
  .employee-body .employee-summary-highlights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8pt; align-items: start; break-inside: auto; }
  .employee-body .employee-summary .employee-summary-warning { padding: 6pt 8pt; color: #6a581e; background: #fff4c7; border-color: #f1e6b7; font-size: 8pt; print-color-adjust: exact; }
  .employee-body .employee-summary-category { font-size: 7pt; print-color-adjust: exact; }
  .employee-body:not(.employee-printing) .employee-main { display: block; padding: 0; }
  .employee-body:not(.employee-printing) .employee-filters, .employee-body:not(.employee-printing) .employee-ava-prompt, .employee-body:not(.employee-printing) .employee-getting-started, .employee-body:not(.employee-printing) .employee-highlight, .employee-body:not(.employee-printing) button { display: none !important; }
  .employee-body .employee-plan-grid { display: block; }
  .employee-body .employee-plan { margin: 12pt 0; break-inside: avoid; box-shadow: none; }
  .employee-body .employee-plan-inner { display: block; transform: none !important; }
  .employee-body .employee-plan-face { display: block; transform: none; backface-visibility: visible; border: 0; padding: 0; box-shadow: none; }
  .employee-body .employee-summary-resource { break-inside: avoid; }
  .employee-body .employee-summary-plan { padding: 7pt; break-inside: auto; box-shadow: none; box-decoration-break: clone; }
  .employee-body .employee-summary-plan-label { margin-bottom: 6pt; font-size: 7.5pt; break-after: avoid; }
  .employee-body .employee-summary-plan > p, .employee-body .employee-summary .employee-facts, .employee-body .employee-summary .employee-rates dl, .employee-body .employee-summary .employee-plan-details { font-size: 8pt; }
  .employee-body .employee-summary .employee-facts > div { gap: 4pt; padding: 2pt 0; }
  .employee-body .employee-summary .employee-rates { margin-top: 5pt; padding-top: 4pt; }
  .employee-body .employee-summary .employee-rates dl { gap: 3pt; }
  .employee-body .employee-summary .employee-unknown, .employee-body .employee-summary .employee-muted, .employee-body .employee-summary .employee-rates > p, .employee-body .employee-summary-totals > p { font-size: 7.5pt; }
  .employee-body .employee-summary-totals h2 { font-size: 8.5pt; }
  .employee-body .employee-summary .employee-plan-structured { font-size: 8pt; }
  .employee-body .employee-summary .employee-plan-structured::details-content { display: block; content-visibility: visible; }
  .employee-body .employee-summary .employee-plan-structured > :not(summary) { display: block; }
  .employee-body .employee-summary .employee-snapshot-scroll { max-height: none; overflow: visible; }
  .employee-body .employee-rates { break-inside: auto; }
  .employee-body .employee-summary-plan > h3 + p, .employee-body .employee-rates > h4, .employee-body .employee-rates > h4 + p { break-after: avoid; }
  .employee-body .employee-facts { display: block; }
  .employee-body .employee-facts > div { break-inside: avoid; }
  .employee-body .employee-summary-plan .employee-rates:empty { display: none; }
  .employee-body .employee-summary-totals { break-inside: auto; }
  .employee-body .employee-summary p { orphans: 2; widows: 2; }
  .employee-body .employee-summary .employee-date-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .employee-body .employee-summary-other { break-inside: auto; }
  .employee-body .employee-summary-other-table { font-size: 8pt; break-inside: auto; }
  .employee-body .employee-summary-other-table th, .employee-body .employee-summary-other-table td { padding: 4pt 3pt; }
  .employee-body .employee-summary-other-table thead { display: table-header-group; break-after: avoid; }
  .employee-body .employee-summary-other-table thead th { font-size: 7.5pt; }
  .employee-body .employee-summary-other-table tbody { break-inside: auto; }
  .employee-body .employee-summary-other-table tr { break-inside: avoid; }
  .employee-body .employee-summary .employee-comparison { font-size: 7.5pt; }
  .employee-body .employee-summary .employee-comparison th, .employee-body .employee-summary .employee-comparison td { padding: 3pt; font-size: inherit; }
  .employee-body .employee-summary .employee-table-caption, .employee-body .employee-summary .employee-snapshot-context, .employee-body .employee-summary .employee-snapshot-context p, .employee-body .employee-summary .employee-snapshot-context h5 { font-size: 7.5pt; }
  .employee-body .employee-summary-carriers { padding-top: 8pt; }
  .employee-body .employee-summary-footer { font-size: 7.5pt; padding-top: 8pt; break-inside: avoid; }
  .employee-body h1, .employee-body h2, .employee-body h3, .employee-body h4 { break-after: avoid; }
  .employee-body .employee-warning { color: black; background: white; border-color: #777; }
  .employee-body .employee-table-scroll { overflow: visible; border: 0; }
  .employee-body .employee-comparison { min-width: 0; font-size: 8pt; table-layout: fixed; break-inside: auto; }
  .employee-body .employee-comparison caption { break-after: avoid; }
  .employee-body .employee-table-caption { break-after: avoid; }
  .employee-body .employee-comparison tbody { break-inside: auto; }
  .employee-body .employee-comparison th, .employee-body .employee-comparison td { padding: 7pt; border-color: #aaa; }
  .employee-body .employee-comparison thead { display: table-header-group; break-after: avoid; }
  .employee-body .employee-comparison tr { break-inside: avoid; }
  .employee-body .employee-difference { print-color-adjust: exact; }
  .employee-body .employee-summary-resources { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6pt; }
  .employee-body .employee-qr > svg { width: 86pt; height: 86pt; }
  .employee-body .employee-summary-header .employee-qr > svg { width: 54pt; height: 54pt; }
  .employee-body .employee-summary-carriers .employee-qr > svg { width: 70pt; height: 70pt; }
  .employee-body .employee-summary-resource, .employee-body .employee-summary-resource .employee-qr figcaption { font-size: 7pt; }
  .employee-body a.btn { display: inline; color: black; font-size: 8pt; border: 0; padding: 0; min-height: 0; box-shadow: none; background: none; }
  .employee-body a.btn .icon { display: none; }
  .employee-body a[href]::after { content: none; }
  .employee-body .employee-source-links { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 5pt 12pt; margin: 5pt 0; }
  .employee-body .employee-source-links a.btn { text-align: left; }
}

/* Scoped employer contribution forms; private drafts never enter workspace PUTs. */
[data-intake-staff], [data-intake-detail], #public-intake { display: grid; gap: 20px; min-width: 0; }
[data-intake-staff] > .card, [data-intake-detail] > .card, #public-intake { padding: 20px; }
[data-intake-staff] > .card > .card-header, [data-intake-detail] .card-header { padding: 0 0 18px; }
[data-intake-detail] form, #public-intake form,
[data-intake-detail] fieldset, #public-intake fieldset { display: grid; gap: 16px; min-width: 0; }
[data-intake-detail] fieldset, #public-intake fieldset { border: 0; padding: 0; margin: 0; }
[data-intake-detail] .form-grid, #public-intake .form-grid { margin-top: 0; }
[data-intake-detail] form + form, [data-intake-detail] form + h3,
[data-intake-detail] form + p { margin-top: 20px; }
  :is([data-intake-detail], #public-intake) :is([data-intake-contact], [data-intake-link]) { margin-block: 16px; }
[data-intake-detail] pre { overflow: auto; max-width: 100%; white-space: pre-wrap; overflow-wrap: anywhere; }
[data-intake-detail] .btn, #public-intake .btn { justify-self: start; max-width: 100%; height: auto; min-height: 40px; white-space: normal; }
[data-intake-upload] .field > input, [data-intake-upload] .field > select { min-height: 45px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
#public-intake + p, #intake-status { margin-block: 16px; }
@media (max-width: 640px) {
  [data-intake-staff] > .card, [data-intake-detail] > .card, #public-intake { padding: 14px; }
}

[data-operations-analytics] { display: grid; gap: 20px; min-width: 0; }
[data-operations-analytics] .inline-actions { flex-wrap: wrap; align-items: end; gap: 14px; }
[data-operations-analytics] .select-filter { display: grid; flex: 1 1 200px; gap: 7px; min-width: 0; height: auto; padding: 0; border: 0; background: none; }
[data-operations-analytics] .select-filter > span { color: var(--muted); font-size: 13px; font-weight: 650; white-space: normal; }
[data-operations-analytics] .select-filter > select { width: 100%; min-width: 0; min-height: 45px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
[data-operations-analytics] .btn { height: auto; min-height: 40px; white-space: normal; }
[data-operations-analytics] [data-inbound-command] { margin-block: 3px; white-space: nowrap; }
[data-form="analytics-inbound"] fieldset { min-width: 0; margin: 20px 0 0; padding: 0; border: 0; }
[data-form="analytics-inbound"] legend { font-weight: 700; }
[data-form="analytics-inbound"] .form-grid { margin-top: 12px; }
[data-form="analytics-inbound"] .check-label { align-self: center; align-items: flex-start; }
[data-form="analytics-inbound"] .check-label input { flex: 0 0 auto; }
[data-inbound-feedback] { margin-top: 12px; }
[data-inbound-feedback]:empty { display: none; }
@media (max-width: 640px) {
  [data-operations-analytics] .kpi-grid { grid-template-columns: minmax(0, 1fr); }
}

.operations-analytics-page .page-header { padding-bottom: 18px; }
.operations-analytics-page .page-header h1 { letter-spacing: -.045em; }
[data-operations-analytics] { display: grid; gap: 16px; min-width: 0; }
[data-operations-analytics] .card { min-width: 0; }
.analytics-controls { padding: 22px; }
.analytics-controls-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.analytics-controls-head > div:first-child { min-width: 0; }
.analytics-controls-head h2 { margin-top: 5px; font-size: 19px; letter-spacing: -.03em; }
.analytics-controls-head p { max-width: 780px; margin-top: 6px; color: var(--muted); line-height: 1.5; }
.analytics-control-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.analytics-section-kicker { display: block; color: var(--emerald); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.analytics-filter-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
[data-operations-analytics] .analytics-filter-grid .select-filter { min-width: 0; display: grid; align-items: stretch; gap: 6px; height: auto; padding: 0; border: 0; background: transparent; }
[data-operations-analytics] .analytics-filter-grid .select-filter > span { color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .025em; }
[data-operations-analytics] .analytics-filter-grid .select-filter > select { width: 100%; max-width: none; min-width: 0; min-height: 43px; padding: 9px 11px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-soft); }
.analytics-controls-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 17px; padding-top: 14px; color: var(--muted); border-top: 1px solid var(--border); font-size: 11px; }
.analytics-section-select { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.analytics-section-select span { color: var(--text); font-weight: 750; }
.analytics-section-select select { min-height: 37px; padding: 6px 30px 6px 10px; border: 1px solid var(--border); border-radius: 9px; background: white; }
.analytics-section-nav { display: flex; align-items: center; gap: 6px; overflow-x: auto; padding: 4px; border: 1px solid var(--border); border-radius: 13px; background: rgba(255,255,255,.72); scrollbar-width: thin; }
.analytics-section-nav a { flex: 0 0 auto; min-height: 36px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 9px; color: var(--muted); font-size: 12px; font-weight: 720; white-space: nowrap; }
.analytics-section-nav a:hover { color: var(--text); background: var(--surface-soft); }
.analytics-section-nav a.active { color: var(--forest); background: var(--mint); box-shadow: 0 2px 6px rgba(16,42,33,.08); }
.analytics-summary > .card-header { padding-bottom: 13px; }
.analytics-summary-intro { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 15px; border-bottom: 1px solid var(--border); }
.analytics-summary-intro h3 { margin-top: 5px; font-size: 22px; letter-spacing: -.035em; }
.analytics-summary-intro p { margin-top: 5px; color: var(--muted); }
.analytics-scope-chip { flex: 0 0 auto; padding: 6px 10px; color: var(--emerald); border: 1px solid #c8e3d5; border-radius: 99px; background: var(--mint); font-size: 11px; font-weight: 750; }
.analytics-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.analytics-summary-stat { min-width: 0; display: grid; gap: 4px; padding: 15px; border: 1px solid var(--border); border-radius: 12px; background: #fbfdfc; }
.analytics-summary-stat > span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.analytics-summary-stat strong { font-size: 25px; line-height: 1.05; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.analytics-summary-stat small { min-height: 30px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.analytics-summary-stat-green { border-color: #b9dfcd; background: #f5fcf8; }
.analytics-summary-stat-green strong { color: var(--emerald); }
.analytics-summary-stat-amber { border-color: #ead5a6; background: #fffaf0; }
.analytics-summary-stat-amber strong { color: #91651c; }
.analytics-next { display: grid; grid-template-columns: minmax(190px, .36fr) minmax(0, 1fr); gap: 18px; margin-top: 15px; padding: 16px; border: 1px solid #d8e5de; border-radius: 13px; background: linear-gradient(115deg, #f5fbf8, #fbfdfc); }
.analytics-next > div:first-child { display: grid; align-content: start; gap: 5px; }
.analytics-next > div:first-child > strong { font-size: 15px; line-height: 1.3; }
.analytics-next-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.analytics-next-action { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 10px 11px; color: var(--text); border: 1px solid var(--border); border-radius: 10px; background: white; transition: border-color .15s, box-shadow .15s, transform .15s; }
.analytics-next-action:hover { border-color: #a8c9b9; box-shadow: 0 5px 15px rgba(31,83,65,.08); transform: translateY(-1px); }
.analytics-next-action > span:first-child { width: 30px; height: 30px; display: grid; place-items: center; color: var(--emerald); border-radius: 8px; background: var(--mint); }
.analytics-next-action > span:nth-child(2) { min-width: 0; display: grid; gap: 2px; }
.analytics-next-action strong { font-size: 12px; }
.analytics-next-action small { color: var(--muted); font-size: 10px; line-height: 1.35; }
.analytics-next-action > .icon { color: var(--muted); }
.analytics-next-action-amber > span:first-child { color: var(--amber); background: var(--amber-bg); }
.analytics-next-action-blue > span:first-child { color: var(--blue); background: var(--blue-bg); }
.analytics-publication-picker { grid-column: 2; margin-top: 2px; border: 1px solid #cbded3; border-radius: 10px; background: rgba(255,255,255,.86); }
.analytics-publication-picker summary { cursor: pointer; padding: 10px 12px; color: var(--forest); font-size: 11px; font-weight: 780; }
.analytics-publication-picker summary::marker { color: var(--emerald); }
.analytics-publication-choices { display: grid; gap: 6px; padding: 0 8px 8px; }
.analytics-publication-choice { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 9px 10px; color: var(--text); border: 1px solid var(--border); border-radius: 8px; background: white; }
.analytics-publication-choice:hover { border-color: #a8c9b9; background: #f7fcf9; }
.analytics-publication-choice > span { min-width: 0; display: grid; gap: 2px; }
.analytics-publication-choice strong, .analytics-publication-choice small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.analytics-publication-choice strong { font-size: 11px; }
.analytics-publication-choice small { color: var(--muted); font-size: 10px; }
.analytics-publication-choice > .icon { color: var(--muted); }
.analytics-summary-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 14px; color: var(--muted); font-size: 11px; }
.analytics-summary-foot strong { color: var(--text); }
.analytics-summary-separator { color: var(--border); }
.analytics-loading, .analytics-error { min-height: 160px; display: grid; place-items: center; padding: 28px; color: var(--muted); text-align: center; }
.analytics-error { color: var(--rose); }
.analytics-report-section > .card { overflow: hidden; }
.analytics-summary-stat-blue { border-color: #c4d8eb; background: #f4f9fd; }
.analytics-summary-stat-blue strong { color: #35698f; }
.analytics-report-section > .card > .card-header { padding-bottom: 12px; }
.analytics-report-section > .card > .aflac-panel-body { padding-top: 0; }
.analytics-report-section .kpi-grid { margin-bottom: 0; }
.analytics-report-section .data-table { min-width: 640px; }
.analytics-report-section .table-scroll + p, .analytics-report-section .table-scroll + h3 { margin-top: 4px; }
@media (max-width: 850px) {
  .analytics-controls-head { flex-direction: column; }
  .analytics-control-actions { justify-content: flex-start; }
  .analytics-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analytics-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analytics-next { grid-template-columns: 1fr; }
  .analytics-publication-picker { grid-column: auto; }
}
@media (max-width: 640px) {
  .analytics-controls { padding: 16px; }
  .analytics-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analytics-summary-grid, .analytics-next-list { grid-template-columns: 1fr; }
  .analytics-controls-foot { align-items: stretch; flex-direction: column; }
  .analytics-section-select { justify-content: space-between; }
  .analytics-section-select select { flex: 1; }
  .analytics-summary-intro { flex-direction: column; }
  .analytics-summary-stat small { min-height: 0; }
  .analytics-summary-foot { align-items: flex-start; }
  .analytics-summary-separator { display: none; }
}

[data-legacy-history] { display: grid; gap: 20px; min-width: 0; }
[data-legacy-history] .form-grid { margin-top: 0; }
[data-legacy-history] form .inline-actions { margin-block: 16px; }
[data-legacy-history] pre { max-width: 100%; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
[data-legacy-history] input[type="file"] { max-width: 100%; }
[data-legacy-history] .card, [data-legacy-history] .aflac-panel-body { min-width: 0; }
[data-legacy-report-detail], [data-legacy-report-catalog] { min-width: 0; overflow-wrap: anywhere; }
[data-legacy-report-detail] > section { margin-top: 24px; min-width: 0; }
[data-legacy-report-detail] h2 { overflow-wrap: anywhere; }
.legacy-report-notice { padding: 14px 16px; background: #eef5fb; border: 1px solid #bdcfe0; border-radius: 10px; color: #24476a; }
.legacy-report-warnings { margin: 18px 0; padding: 16px; border: 1px solid #ddb76b; border-radius: 10px; background: #fff8e9; color: #684812; }
.legacy-report-warnings h3 { margin-top: 0; }
.legacy-report-warnings ul { display: grid; gap: 12px; margin: 0; padding-left: 20px; }
.legacy-report-warnings p { margin: 5px 0; white-space: pre-wrap; }
.legacy-report-warning-error { color: #8a2727; }
.legacy-report-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 12px; margin: 0; }
.legacy-report-metrics > div { min-width: 0; padding: 14px; background: var(--surface-soft); border: 1px solid var(--border); border-radius: 10px; }
.legacy-report-metrics dt { color: var(--muted); font-size: 12px; }
.legacy-report-metrics dd { margin: 7px 0 0; font-size: 20px; font-weight: 750; }
.legacy-report-metrics small { font-size: 12px; font-weight: 500; }
.legacy-report-provenance .detail-grid > div, .legacy-report-provenance dd { min-width: 0; overflow-wrap: anywhere; }
.legacy-report-table { max-height: 65vh; padding: 0; border: 1px solid var(--border); border-radius: 8px; }
.legacy-report-table:focus-visible { outline: 2px solid var(--emerald); outline-offset: 3px; }
.legacy-report-table .data-table { width: max-content; min-width: 100%; }
.legacy-report-table caption { text-align: left; padding: 12px 14px; color: var(--text); font-weight: 700; }
.legacy-report-table .data-table th { max-width: 360px; white-space: normal; }
.legacy-report-table .data-table td { min-width: 140px; max-width: 360px; vertical-align: top; white-space: pre-wrap; }
.legacy-report-null { color: var(--muted); font-style: italic; }
.legacy-report-pagination { margin-top: 16px; flex-wrap: wrap; }
@media (max-width: 640px) {
  [data-legacy-report-detail] .form-grid, [data-legacy-report-catalog] .form-grid { grid-template-columns: minmax(0, 1fr); }
  [data-legacy-report-detail] .field, [data-legacy-report-catalog] .field { min-width: 0; }
  [data-legacy-report-detail] select { max-width: 100%; }
  .legacy-report-pagination .btn { flex: 1 1 auto; }
}

.ava-knowledge { margin-top: 28px; padding-top: 20px; border-top: 2px solid var(--border); min-width: 0; }
.ava-knowledge-controls { border: 0; margin: 16px 0; padding: 0; min-width: 0; }
.ava-knowledge-controls > legend { font-weight: 700; }
.ava-knowledge-fact { margin: 16px 0; padding: 16px; border: 1px solid var(--border); border-radius: 8px; min-width: 0; }
.ava-knowledge summary { cursor: pointer; overflow-wrap: anywhere; }
.ava-knowledge summary:focus-visible { outline: 2px solid var(--emerald); outline-offset: 4px; }
.ava-knowledge-comparison { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-top: 16px; }
.ava-knowledge-comparison > * { min-width: 0; }
.ava-knowledge-comparison .form-grid { grid-template-columns: minmax(0, 1fr); }
.ava-knowledge-comparison aside { padding: 16px; background: var(--surface-soft); border-radius: 8px; }
.ava-knowledge-comparison aside section + section { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 16px; }
.ava-knowledge-comparison blockquote { margin: 16px 0; padding-left: 12px; border-left: 3px solid var(--border); white-space: pre-wrap; overflow-wrap: anywhere; }
.ava-knowledge-text, .ava-knowledge-identity { white-space: pre-wrap; overflow-wrap: anywhere; }
.ava-knowledge-comparison details .ava-knowledge-text { max-height: 360px; overflow-y: auto; }
.ava-knowledge-conditions { margin-top: 16px; border: 1px solid var(--border); border-radius: 6px; min-width: 0; }
.ava-knowledge-conditions label { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; overflow-wrap: anywhere; }
.ava-knowledge-conditions input { flex: 0 0 auto; margin-top: 4px; }
.ava-knowledge-warnings { margin: 16px 0; padding: 14px; border: 1px solid #ddb76b; border-radius: 8px; background: #fff8e9; }
.ava-knowledge-warnings li { margin-block: 8px; overflow-wrap: anywhere; }
.ava-knowledge [data-knowledge-error] { color: var(--rose); }
.ava-knowledge [data-knowledge-status] { overflow-wrap: anywhere; }
@media (max-width: 850px) {
  .ava-knowledge-comparison { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .ava-knowledge-fact { padding: 12px; }
}

.em-page { display: grid; gap: 20px; min-width: 0; }
.em-panel { padding: 20px; min-width: 0; }
.em-panel p { margin: 12px 0; line-height: 1.6; }
.em-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 12px 0; }
.em-actions a { padding: 6px 0; text-underline-offset: 4px; }
.em-actions a[aria-current="page"] { font-weight: 700; color: var(--green); }
.em-page fieldset { min-width: 0; border: 0; padding: 0; margin: 12px 0; }
.em-page .em-subform { border: 1px solid var(--border); border-radius: 8px; padding: 16px; grid-column: 1 / -1; }
.em-subform legend { font-weight: 600; padding: 0 6px; }
.em-checkboxes { display: grid; gap: 8px; max-height: 280px; overflow: auto; }
.em-checkboxes label { display: flex; gap: 8px; align-items: baseline; }
.em-evidence { margin: 10px 0; }
.em-evidence summary { cursor: pointer; overflow-wrap: anywhere; }
.em-evidence pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 360px; overflow: auto; padding: 12px; background: var(--surface-soft); font-size: 12px; }
.em-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.em-metric { display: grid; text-align: left; gap: 8px; padding: 16px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-soft); cursor: pointer; color: inherit; }
.em-metric strong { font-size: 26px; }
.em-metric:not(a):not(button) { cursor: default; }
.em-finance-flow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 24px 0; }
.em-finance-flow > section { min-width: 0; }
[data-financial-source] td { white-space: pre-line; overflow-wrap: anywhere; vertical-align: top; }
[data-financial-source] .legacy-report-metrics { margin: 20px 0; }
.em-feedback [role="alert"] { padding: 12px; border-left: 3px solid var(--rose); overflow-wrap: anywhere; }
.em-page td { vertical-align: top; overflow-wrap: anywhere; }
.em-readiness { display: grid; gap: 12px; padding: 0; list-style: none; }
.em-readiness li { display: flex; align-items: baseline; gap: 12px; overflow-wrap: anywhere; }
.em-readiness .badge { flex: 0 0 auto; }
.em-page details > summary { cursor: pointer; font-weight: 600; padding: 8px 0; }
.em-team-layout { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 20px; align-items: start; }
.em-team-layout > * { min-width: 0; }
.em-advanced { min-width: 0; }
.em-metric a { color: inherit; text-decoration: none; }
@media (max-width: 640px) {
  .em-panel { padding: 12px; }
  .em-page .form-grid { grid-template-columns: minmax(0, 1fr); }
  .em-actions { gap: 8px 12px; }
  .em-finance-flow { grid-template-columns: minmax(0, 1fr); }
}

.ew-workspace { display: grid; grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); align-items: start; gap: 20px; }
.ew-workspace > *, .ew-workspace .ew-entry, .ew-page form { min-width: 0; }
.ew-workspace aside { position: sticky; top: 20px; }
.ew-workspace .ew-entry { display: grid; gap: 20px; }
.ew-workspace form > fieldset { display: grid; gap: 20px; }
.ew-page .em-subform { display: grid; gap: 12px; }
.ew-page .em-subform .field { margin: 0; }
.ew-page .em-subform legend { overflow-wrap: anywhere; }
.ew-savebar { position: sticky; bottom: 12px; display: flex; flex-wrap: wrap; gap: 12px; padding: 16px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); z-index: 2; box-shadow: 0 4px 16px #00000018; }
.ew-savebar p { flex-basis: 100%; margin: 0; }
.ew-worklist-group { margin-top: 24px; min-width: 0; }
.ew-group-count { font-size: 14px; font-weight: 500; color: var(--text-muted); }
.ew-plan-list { display: grid; gap: 16px; min-width: 0; }
.ew-plan-header { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(0, 1fr); align-items: center; gap: 16px; }
.ew-plan-fields, .ew-plan-notes, .ew-entry [data-ew-section] { min-width: 0; }
.ew-plan-notes summary, .ew-employee-resources summary { cursor: pointer; font-weight: 600; padding: 8px 0; }
.ew-production-links { margin-bottom: 20px; }
.ew-callback { padding: 12px; border-left: 3px solid var(--green); background: var(--surface-soft); }
.ew-page [aria-pressed="true"] { outline: 2px solid var(--green); }
.ew-basis { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 420px; font-size: 12px; }
.ew-page aside a, .ew-page aside li { overflow-wrap: anywhere; }
.ew-page aside ul { padding-left: 20px; }
@media (max-width: 900px) {
  .ew-workspace { grid-template-columns: minmax(0, 1fr); }
  .em-team-layout { grid-template-columns: minmax(0, 1fr); }
  .ew-workspace aside { position: static; }
  .ew-savebar { bottom: 8px; padding: 12px; }
}
@media (max-width: 640px) {
  .ew-savebar .btn { flex: 1 1 auto; }
  .ew-page .em-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ew-page .em-metric { padding: 12px; min-width: 0; }
  .ew-page .field, .ew-page input, .ew-page select, .ew-page textarea { max-width: 100%; min-width: 0; }
  .ew-plan-header { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .em-readiness li { align-items: flex-start; }
}
