/* ==========================================================================
   OdotMail — new design for Webmail (layouts/upgrade/webmail*.php).
   Loaded after css/webmail.css; everything is scoped to body.od-wm, so the
   current webmail design is untouched. Remaps the Ink & Ember tokens to the
   Odot palette and restyles the chrome: light top bar and sidebar, Geist,
   rounded surfaces, sentence case, one blue accent.
   ========================================================================== */
body.od-wm {
    --wm-ink-950: #0b1522;
    --wm-ink:     #0f2236;
    --wm-ink-2:   #1c2636;
    --wm-ink-3:   #5a6b7d;
    --wm-violet:  #1273c4;
    --wm-violet-2:#0e5fa3;
    --wm-ember:   #1273c4;
    --wm-ember-2: #0e5fa3;
    --wm-paper:   #f4f7fa;
    --wm-paper-2: #eceef1;
    --wm-card:    #ffffff;
    --wm-unread:  #f3f8fd;
    --wm-hover:   #f7f8fa;
    --wm-text:    #0f2236;
    --wm-text-dim:#5a6b7d;
    --wm-text-faint:#8a99a8;
    --wm-line:    #e2e8ef;
    --wm-line-2:  #d5dae1;
    --wm-danger:  #d0422f;
    --wm-danger-lt:#fbebe8;
    --wm-ok:      #149c6b;
    --wm-ok-lt:   #e6f5ee;
    --wm-warn-lt: #fbf3e3;
    --wm-font: "Manrope", "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
    --wm-mono: "Geist Mono", ui-monospace, Consolas, monospace;
    --od-ring: 0 0 0 1px rgba(14, 23, 38, .06);
    --od-card: 0 0 0 1px rgba(14, 23, 38, .05), 0 1px 2px rgba(14, 23, 38, .04), 0 4px 16px -8px rgba(14, 23, 38, .06);
    --od-tint: #e8f3fc;
    font-family: var(--wm-font);
    -webkit-font-smoothing: antialiased;
}

/* Sentence case everywhere (the Metro system used many ALL-CAPS labels) */
body.od-wm *:not(.fa-solid):not(.fa-regular):not(.fa-brands) { text-transform: none !important; }
body.od-wm label, body.od-wm th, body.od-wm small, body.od-wm button, body.od-wm .wm-btn,
body.od-wm [class*="label"], body.od-wm [class*="kicker"], body.od-wm [class*="chip"], body.od-wm [class*="badge"] { letter-spacing: 0 !important; }
body.od-wm :focus-visible { outline: 2px solid #1273c4; outline-offset: 2px; }

/* -- Buttons -------------------------------------------------------------- */
body.od-wm .wm-btn { border-radius: 10px; font-weight: 500; font-size: 14px; padding: 10px 18px; gap: 8px; }
body.od-wm .wm-btn-sm { padding: 7px 13px; font-size: 13px; border-radius: 9px; }
body.od-wm .wm-btn-ember, body.od-wm .wm-btn-violet { background: #1273c4; color: #fff; box-shadow: 0 1px 2px rgba(18, 115, 196, .3); }
body.od-wm .wm-btn-ember:hover, body.od-wm .wm-btn-violet:hover { background: #0e5fa3; color: #fff; box-shadow: none; }
body.od-wm .wm-btn-ghost { background: #fff; color: #0f2236; border: 0; box-shadow: 0 0 0 1px rgba(14, 23, 38, .12); }
body.od-wm .wm-btn-ghost:hover { background: #f7f8fa; color: #0f2236; }
body.od-wm .wm-btn-danger { background: #d0422f; }

/* -- Fields --------------------------------------------------------------- */
body.od-wm .wm-input, body.od-wm .wm-select, body.od-wm .wm-textarea {
    border: 1px solid transparent; border-radius: 10px; background: #f4f7fa; font-size: 14.5px; height: 44px; padding: 10px 13px;
}
body.od-wm .wm-textarea { height: auto; }
body.od-wm .wm-input:hover, body.od-wm .wm-select:hover, body.od-wm .wm-textarea:hover { border-color: transparent; background: #eceef1; }
body.od-wm .wm-input:focus, body.od-wm .wm-select:focus, body.od-wm .wm-textarea:focus { background: #fff; border-color: #1273c4; box-shadow: 0 0 0 3px rgba(18, 115, 196, .14); }
body.od-wm .wm-label { font-size: 13px; font-weight: 500; color: #0f2236; margin-bottom: 6px; }
body.od-wm .wm-inputgroup .wm-input { border-radius: 10px 0 0 10px; }
body.od-wm .wm-inputgroup .addon { border: 0; border-radius: 0 10px 10px 0; background: #e2e8ef; font-size: 13px; }

/* -- Flash ---------------------------------------------------------------- */
body.od-wm .wm-flash { border: 0; border-radius: 14px; box-shadow: 0 18px 40px -14px rgba(14, 23, 38, .35), var(--od-ring); margin-top: 12px; }
body.od-wm .wm-flash-success, body.od-wm .wm-flash-error { border-left: 0; }

/* -- Top bar (mail app + inner pages): light, hairline -------------------- */
body.od-wm .wm-topbar { background: #fff; color: #0f2236; border-bottom: 1px solid #e2e8ef; height: 60px; }
body.od-wm .wm-topbar .wm-logo, body.od-wm .wm-admin-topbar .wm-logo, body.od-wm .wm-auth-head .wm-logo { background: #e8f3fc; color: #1273c4; border-radius: 12px; }
body.od-wm .wm-topbar .wm-brand { font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
body.od-wm .wm-topbar .wm-brand small { color: #8a99a8; font-size: 11.5px; }
body.od-wm .wm-search { background: #f4f7fa; border: 1px solid transparent; border-radius: 10px; padding: 9px 14px; }
body.od-wm .wm-search:focus-within { background: #fff; border-color: #1273c4; box-shadow: 0 0 0 3px rgba(18, 115, 196, .14); }
body.od-wm .wm-search i { color: #8a99a8; }
body.od-wm .wm-search input { color: #0f2236; }
body.od-wm .wm-search input::placeholder { color: #8a99a8; }
body.od-wm .wm-topbar .wm-btn-ghost { color: #0f2236; border: 0; box-shadow: 0 0 0 1px rgba(14, 23, 38, .12); background: #fff; }
body.od-wm .wm-topbar .wm-btn-ghost:hover { background: #f7f8fa; color: #0f2236; }
body.od-wm .wm-topbar .wm-tool, body.od-wm .wm-topbar .wm-hamburger { color: #5a6b7d; border-radius: 9px; }
body.od-wm .wm-topbar .wm-tool:hover, body.od-wm .wm-topbar .wm-hamburger:hover { background: #f4f7fa; color: #0f2236; }
body.od-wm .wm-subpill { color: #0f2236; background: #f4f7fa; border: 0; border-radius: 999px; }
body.od-wm a.wm-subpill:hover { background: #e2e8ef; color: #0f2236; }
body.od-wm .wm-subpill.is-active { color: #0c6b49; background: #e6f5ee; }
body.od-wm .wm-avatar { border-radius: 999px; background: #1273c4; }
body.od-wm .wm-usermenu { border: 0; border-radius: 14px; box-shadow: 0 24px 50px -16px rgba(14, 23, 38, .35), var(--od-ring); }
body.od-wm .wm-usermenu a, body.od-wm .wm-usermenu button { border-radius: 9px; }
body.od-wm .wm-usermenu a:hover, body.od-wm .wm-usermenu button:hover { background: #f4f7fa; }

/* -- Sidebar: white, tinted active item ---------------------------------- */
body.od-wm .wm-sidebar { background: #fff; color: #0f2236; border-right: 1px solid #e2e8ef; }
body.od-wm .wm-compose-btn { background: #1273c4; color: #fff; border-radius: 12px; font-weight: 600; font-size: 14.5px; box-shadow: 0 6px 16px -8px rgba(18, 115, 196, .6); }
body.od-wm .wm-compose-btn:hover { background: #0e5fa3; color: #fff; }
body.od-wm .wm-folder { color: #0f2236; border-left: 0; border-radius: 9px; padding: 9px 12px; font-size: 14px; }
body.od-wm .wm-folder i { color: #5a6b7d; }
body.od-wm .wm-folder:hover { background: #f4f7fa; color: #0f2236; }
body.od-wm .wm-folder.active { background: #e8f3fc; color: #1273c4; font-weight: 600; }
body.od-wm .wm-folder.active i { color: #1273c4; }
body.od-wm .wm-folder .wm-count { background: #eceef1; color: #5a6b7d; border-radius: 999px; }
body.od-wm .wm-folder.active .wm-count, body.od-wm .wm-folder .wm-count.ember { background: #1273c4; color: #fff; }
body.od-wm .wm-folder.is-locked, body.od-wm .wm-folder.is-locked:hover { color: #8a99a8; background: none; }
body.od-wm .wm-nav-divider { color: #8a99a8; border-color: #e2e8ef; font-size: 12px; font-weight: 500; }
body.od-wm .wm-nav-toggle { color: #8a99a8; font-size: 12px; font-weight: 500; }
body.od-wm .wm-nav-toggle:hover { color: #0f2236; }
body.od-wm .wm-sidebar-backdrop { background: rgba(14, 23, 38, .35); }

/* -- Pages ---------------------------------------------------------------- */
body.od-wm .wm-page { background: #f4f7fa; }
body.od-wm .wm-page-head h1 { font-size: 26px; font-weight: 600; letter-spacing: -.03em; }
body.od-wm .wm-page-head .ico, body.od-wm .wm-panel-head .ico { background: #e8f3fc; color: #1273c4; border-radius: 12px; }
body.od-wm .wm-storage .bar, body.od-wm .wm-stat .bar { border-radius: 999px; }
body.od-wm .wm-storage .bar > div, body.od-wm .wm-stat .bar > div { border-radius: 999px; background: #1273c4; }

/* Surfaces: no stripes, hairline ring, rounded */
body.od-wm .wm-card-panel, body.od-wm .wm-stat, body.od-wm .wm-mod-card, body.od-wm .au-chart, body.od-wm .au-wf, body.od-wm .au-ai, body.od-wm .bz-card {
    border: 0; border-radius: 18px; box-shadow: var(--od-card);
}
body.od-wm .wm-card-panel { padding: 24px 26px; }
body.od-wm .wm-card-panel h2, body.od-wm .wm-mod-head h2 { font-weight: 600; letter-spacing: -.02em; }
body.od-wm .wm-card-panel .wm-kicker { color: #8a99a8; font-size: 12.5px; font-weight: 500; }
body.od-wm .wm-stat { gap: 14px; }
body.od-wm .wm-stat:hover, body.od-wm .wm-mod-card:hover, body.od-wm .bz-card:hover { transform: none; box-shadow: 0 0 0 1px rgba(18, 115, 196, .3), 0 12px 28px -16px rgba(14, 23, 38, .3); }
body.od-wm .wm-stat .ico, body.od-wm .wm-mod-ico { border-radius: 12px; background: #e8f3fc; color: #1273c4; }
body.od-wm .wm-stat .ico.ok { background: #e6f5ee; color: #149c6b; }
body.od-wm .wm-stat .ico.ember { background: #fbf3e3; color: #a86f05; }
body.od-wm .wm-stat .num { font-weight: 600; letter-spacing: -.035em; }
body.od-wm .wm-stat .lbl { font-size: 12.5px; font-weight: 500; }
body.od-wm .wm-mod-card.is-soon .wm-mod-ico { background: #f4f7fa; color: #8a99a8; }
body.od-wm .wm-mod-soon { border-radius: 999px; }
body.od-wm .wm-cred-card { border: 0; border-radius: 16px; background: #fbf3e3; }
body.od-wm .wm-cred-card code, body.od-wm .wm-copy-row code { border-radius: 10px; border: 0; background: #fff; }
body.od-wm .wm-copy-row code { border-radius: 10px 0 0 10px; background: #f4f7fa; }
body.od-wm .wm-copy-row .wm-btn { border-radius: 0 10px 10px 0; }
body.od-wm .au-gap { border-left: 0; border-radius: 12px; }

/* Tables and chips */
body.od-wm .wm-table th { background: transparent; border-bottom: 1px solid #e2e8ef; font-size: 12.5px; font-weight: 500; color: #8a99a8; }
body.od-wm .wm-table tbody tr:hover { box-shadow: none; background: #fafbfc; }
body.od-wm .wm-acct .av { border-radius: 999px; background: #1273c4; }
body.od-wm .wm-chip { border-radius: 999px; font-weight: 500; font-size: 12px; }
body.od-wm .wm-chip::before { border-radius: 999px; }

/* -- Sign-in page ---------------------------------------------------------- */
body.od-wm .wm-auth-wrap { background: #f4f7fa; }
body.od-wm .wm-auth-wrap::before { background-image: linear-gradient(rgba(14, 23, 38, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(14, 23, 38, .035) 1px, transparent 1px); }
body.od-wm .wm-auth-wrap::after { background: #1273c4; opacity: .08; }
body.od-wm .wm-auth-word { color: rgba(14, 23, 38, .09); text-shadow: none; }
body.od-wm .wm-auth-word.v, body.od-wm .wm-auth-word.e { color: rgba(18, 115, 196, .16); }
body.od-wm .wm-auth-card { border-top: 0; border-radius: 22px; overflow: hidden; box-shadow: 0 40px 90px -30px rgba(14, 23, 38, .35), var(--od-ring); }
body.od-wm .wm-auth-head { background: #fff; color: #0f2236; padding: 34px 36px 8px; }
body.od-wm .wm-auth-head::before { display: none; }
body.od-wm .wm-auth-head h1 { font-size: 26px; font-weight: 600; letter-spacing: -.03em; }
body.od-wm .wm-auth-head p { color: #5a6b7d; }
body.od-wm .wm-auth-head .wm-domain-chip { background: #f4f7fa; border: 0; border-radius: 999px; color: #0f2236; }
body.od-wm .wm-auth-head .wm-domain-chip::before { background: #149c6b; border-radius: 999px; }
body.od-wm .wm-auth-body { padding: 24px 36px 30px; }
body.od-wm .wm-auth-foot a { color: #1273c4; }

/* -- Webmail admin header -------------------------------------------------- */
body.od-wm .wm-admin-topbar { background: #fff; color: #0f2236; border-bottom: 1px solid #e2e8ef; }
body.od-wm .wm-admin-topbar::before { display: none; }
body.od-wm .wm-admin-topbar h1 { font-weight: 600; letter-spacing: -.02em; }
body.od-wm .wm-admin-topbar h1 small { color: #8a99a8; font-size: 12px; font-weight: 500; }
body.od-wm .wm-admin-badge { background: #e8f3fc; color: #1273c4; border-radius: 999px; font-weight: 500; font-size: 12px; }
body.od-wm .wm-admin-topbar .wm-btn-ghost { color: #0f2236; box-shadow: 0 0 0 1px rgba(14, 23, 38, .12); background: #fff; }
body.od-wm .wm-admin-topbar .wm-btn-ghost:hover { background: #f7f8fa; color: #0f2236; }

/* -- Mail client ---------------------------------------------------------- */
body.od-wm .wm-list-pane { background: #fff; }
body.od-wm .wm-toolbar { border-color: #e2e8ef; }
body.od-wm .wm-tool { border-radius: 9px; }
body.od-wm .wm-tool:hover { background: #f4f7fa; }
body.od-wm .wm-row { border-left: 0; border-bottom-color: #e2e8ef; }
body.od-wm .wm-row:hover { background: #fafbfc; }
body.od-wm .wm-row.unread { background: #fff; }
body.od-wm .wm-row.unread .wm-row-from, body.od-wm .wm-row.unread .wm-row-subj { font-weight: 650; }
body.od-wm .wm-row.open, body.od-wm .wm-row.selected { background: #e8f3fc; }
body.od-wm .wm-row-star.on { color: #e0a100; }
body.od-wm .wm-reader { background: #fff; }
body.od-wm .wm-reader-head h2 { font-weight: 600; letter-spacing: -.02em; }
body.od-wm .wm-reader-meta .wm-avatar-lg, body.od-wm .wm-avatar-sm { border-radius: 999px; }
body.od-wm .wm-att-chip, body.od-wm .wm-load-images, body.od-wm .wm-thread-pill { border-radius: 10px; }
body.od-wm .wm-msg { border-radius: 14px; }
body.od-wm .wm-msg.is-sent { border-left-width: 0; }
body.od-wm .wm-composer { border-top: 0; border-radius: 16px 16px 0 0; box-shadow: 0 24px 60px -18px rgba(14, 23, 38, .45), var(--od-ring); overflow: hidden; }
body.od-wm .wm-composer-head { background: #fff; color: #0f2236; border-bottom: 1px solid #e2e8ef; }
body.od-wm .wm-composer-head button { color: #5a6b7d; border-radius: 8px; }
body.od-wm .wm-composer-head button:hover { background: #f4f7fa; color: #0f2236; }
body.od-wm .wm-comp-line label { font-size: 13px; font-weight: 500; color: #8a99a8; }
body.od-wm .wm-comp-toolbar button { border-radius: 8px; }
body.od-wm .wm-ai, body.od-wm .wm-ai-result, body.od-wm .wm-ai-summary, body.od-wm .wm-mention-box { border-top: 0; border-left: 0; border-radius: 14px; }
body.od-wm .wm-ai-head, body.od-wm .wm-ai-summary .hd { font-size: 13px; font-weight: 600; }
body.od-wm .wm-ai-chip, body.od-wm .wm-ai-btn { border-radius: 999px; }
body.od-wm .wm-ai-prompt { border-radius: 10px; }
body.od-wm .wm-modal-backdrop { background: rgba(14, 23, 38, .42); }
body.od-wm .wm-modal, body.od-wm .wm-dlg { border-top: 0; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 70px -12px rgba(14, 23, 38, .35); }
body.od-wm .wm-modal-head { background: #fff; color: #0f2236; border-bottom: 1px solid #e2e8ef; }
body.od-wm .wm-modal-foot { background: #fafbfc; }
body.od-wm .wm-toast { border-left: 0; border-radius: 14px; background: #0f2236; }
body.od-wm .wm-toast button { color: #7cc4ff; }
body.od-wm .wm-dlg-checkbox { border-left: 0; border-radius: 12px; }
body.od-wm .wm-usermenu, body.od-wm .wm-tst { border-top: 0; }
body.od-wm .wm-empty i, body.od-wm .wm-reader-empty i { color: #c3c9d2; }

/* -- Automation (css/webmail-automation.css) -------------------------------- */
/* Chart palette: Odot blue first, then amber, teal, green (order kept) */
body.od-wm {
    --au-c1: #1273c4; --au-c2: #c98a0b; --au-c3: #0e8fa3; --au-c4: #149c6b;
    --au-s1: #e6f2fb; --au-s2: #cfe4f6; --au-s3: #a9cdee; --au-s4: #78b1e3; --au-s5: #4a92d4; --au-s6: #1273c4;
}
body.od-wm .au-kpi { border: 0; border-radius: 16px; box-shadow: var(--od-card); }
body.od-wm .au-kpi-lbl { font-size: 12.5px; font-weight: 500; }
body.od-wm .au-kpi-num { font-weight: 600; letter-spacing: -.035em; }
body.od-wm .au-kpi .au-kpi-lbl i { color: var(--au-c1); }
body.od-wm .au-kpi.c2 .au-kpi-lbl i { color: var(--au-c2); }
body.od-wm .au-kpi.c3 .au-kpi-lbl i { color: var(--au-c3); }
body.od-wm .au-kpi.c4 .au-kpi-lbl i { color: var(--au-c4); }
body.od-wm .au-wf.st-completed, body.od-wm .au-wf { border-top: 0; }
body.od-wm .au-tab[aria-selected="true"], body.od-wm .au-ed-mode[aria-selected="true"] { color: #1273c4; border-bottom-color: #1273c4; }
body.od-wm .au-badge, body.od-wm .au-st { border-radius: 999px; }

/* -- Insurance module navigation (insurance/partials/styles.php) ----------- */
body.od-wm .ins-subnav, body.od-wm .ins-burger { background: #fff; border-bottom: 1px solid #e2e8ef; }
body.od-wm .ins-tab { color: #5a6b7d; font-weight: 500; }
body.od-wm .ins-tab:hover { color: #0f2236; }
body.od-wm .ins-tab.active { color: #1273c4; border-bottom-color: #1273c4; }
body.od-wm .ins-tab.is-soon { color: #8a99a8; }
body.od-wm .ins-tab.is-soon em { background: #f4f7fa; }
body.od-wm .ins-burger { color: #0f2236; }
body.od-wm .ins-subnav .ins-tab { border-bottom-color: #e2e8ef; }
body.od-wm .ins-subnav .ins-tab.active { border-left-color: #1273c4; background: #e8f3fc; }
body.od-wm .ins-prod-card { border: 0; border-radius: 16px; box-shadow: var(--od-card); }

/* -- Mail list: dates and pager in the text face, not code ---------------- */
body.od-wm .wm-row-date, body.od-wm .wm-toolbar .wm-page-info, body.od-wm .wm-reader-meta .when, body.od-wm .wm-msg-date { font-family: var(--wm-font); font-variant-numeric: tabular-nums; }
body.od-wm .wm-thread-pill { border-radius: 999px; background: #e8f3fc; color: #1273c4; }

/* ==========================================================================
   Mail client to the Figma "Webmail · Inbox" frame (upgrade/webmail/app.php)
   ========================================================================== */
body.od-wm .wm2-ico { flex-shrink: 0; display: block; }
body.od-wm .wm2-top { height: 58px; padding: 0 20px; gap: 16px; }
body.od-wm .wm2-top .wm-tb-left { flex: 0 0 auto; width: 212px; gap: 10px; }
body.od-wm .wm2-top .wm-tb-right { flex: 1 1 0; gap: 12px; }
body.od-wm .wm2-logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: #0f2236; font-size: 18px; font-weight: 600; letter-spacing: -.04em; }
/* An uploaded logo (Admin → Site & SEO): keep it inside the header and never wider than the rail. */
body.od-wm .wm2-logo .od-site-logo { max-width: 160px; object-fit: contain; flex-shrink: 0; }
body.od-wm .wm2-top .wm-search { flex: 0 1 560px; }
body.od-wm .wm2-ai { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 500; white-space: nowrap; text-decoration: none; background: #f4f7fa; color: #0f2236; }
body.od-wm a.wm2-ai:hover { background: #e2e8ef; }
body.od-wm .wm2-ai.is-on { background: #e8f3fc; color: #1273c4; }
body.od-wm .wm2-settings { width: 34px; height: 34px; display: inline-grid; place-items: center; }
body.od-wm .wm2-me { display: flex; align-items: center; gap: 10px; min-width: 0; }
body.od-wm .wm2-me .wm-avatar { width: 32px; height: 32px; font-size: 12.5px; font-weight: 600; }
body.od-wm .wm2-me-text { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; max-width: 200px; padding: 0; border: 0; background: none; cursor: pointer; font-family: var(--wm-font); text-align: left; }
body.od-wm .wm2-me-text strong { font-size: 13.5px; font-weight: 500; color: #0f2236; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.od-wm .wm2-me-text span { font-size: 12px; color: #8a99a8; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.od-wm .wm-usermenu { top: 58px; }
body.od-wm .wm2-um-note { display: block; margin-top: 6px; font-size: 11.5px; line-height: 1.45; color: #8a99a8; font-family: var(--wm-font); }

/* Folder rail */
body.od-wm .wm2-rail { width: 232px; padding: 16px 12px 14px; }
body.od-wm .wm2-rail .wm-compose-btn { margin-bottom: 14px; padding: 12px 14px; }
body.od-wm .wm2-rail .wm-folder { gap: 12px; padding: 8px 12px; }
body.od-wm .wm2-rail .wm-folder .wm2-ico { color: #5a6b7d; }
body.od-wm .wm2-rail .wm-folder.active .wm2-ico { color: #1273c4; }
body.od-wm .wm2-rail .wm2-fl { flex: 1; }
body.od-wm .wm2-rail .wm-folder .wm-count, body.od-wm .wm2-rail .wm-folder .wm-count.ember { background: none; color: #8a99a8; font-size: 12.5px; font-weight: 500; padding: 0; }
body.od-wm .wm2-rail .wm-folder.active .wm-count { background: none; color: #1273c4; }
body.od-wm .wm2-sec { padding: 18px 12px 6px; font-size: 12px; font-weight: 500; color: #8a99a8; }
body.od-wm .wm2-rail .wm-storage { margin-top: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
body.od-wm .wm2-storage-top { display: flex; justify-content: space-between; font-size: 12px; color: #5a6b7d; }
body.od-wm .wm2-storage-top #wm-storage-label { color: #8a99a8; }
body.od-wm .wm2-rail .wm-storage .bar { height: 6px; background: #f4f7fa; }

/* List pane */
body.od-wm .wm2 .wm-list-pane { width: 400px; background: #fff; border-right: 1px solid #e2e8ef; }
body.od-wm .wm2-list-head { display: flex; align-items: center; padding: 16px 20px 6px; }
body.od-wm .wm2-list-head h2 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -.02em; color: #0f2236; }
body.od-wm .wm2-list-head span { font-size: 12.5px; color: #8a99a8; }
body.od-wm .wm2 .wm-toolbar { border-bottom: 1px solid #e2e8ef; padding: 6px 14px 8px 18px; background: #fff; }
body.od-wm .wm2 .wm-row { padding: 14px 20px 14px 14px; gap: 10px; align-items: flex-start; }
body.od-wm .wm2 .wm-row .wm-row-check { opacity: .35; margin-top: 11px; }
body.od-wm .wm2 .wm-row:hover .wm-row-check, body.od-wm .wm2 .wm-row .wm-row-check:checked { opacity: 1; }
body.od-wm .wm2 .wm-row-star { margin-top: 9px; }
body.od-wm .wm2-row-av { flex-shrink: 0; width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center; color: #fff; font-size: 12.5px; font-weight: 600; }
body.od-wm .wm2 .wm-row-from { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
body.od-wm .wm2 .wm-row.unread .wm-row-from::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: #1273c4; flex-shrink: 0; }
body.od-wm .wm2 .wm-row.unread .wm-row-date { color: #1273c4; font-weight: 500; }
body.od-wm .wm2 .wm-row-subj { font-size: 14px; }
body.od-wm .wm2 .wm-row-snip { font-size: 12.5px; color: #8a99a8; }
body.od-wm .wm2 .wm-reader-empty svg { color: #c3c9d2; margin: 0 auto 12px; }
body.od-wm .wm2-sendnote { font-size: 12px; color: #8a99a8; padding: 6px 0 2px; line-height: 1.45; }

@media (max-width: 1100px) { body.od-wm .wm2-me-text, body.od-wm .wm2-ai { display: none; } }
@media (max-width: 860px) { body.od-wm .wm2-top .wm-tb-left { width: auto; } body.od-wm .wm2 .wm-list-pane { width: 100%; } }
body.od-wm .wm2-rail .wm-storage, body.od-wm .wm2-rail .wm-storage span { font-family: var(--wm-font); text-align: left; }
body.od-wm .wm2-storage-top { gap: 8px; white-space: nowrap; }
body.od-wm .wm2-storage-top #wm-storage-label { overflow: hidden; text-overflow: ellipsis; }

/* Automation charts (App\Support\AutomationChart writes literal colours): map the violet palette to Odot */
body.od-wm svg [fill="#6d28d9"] { fill: #1273c4; }
body.od-wm svg [stroke="#6d28d9"] { stroke: #1273c4; }
body.od-wm [style*="background:#6d28d9"], body.od-wm [style*="background: #6d28d9"] { background: #1273c4 !important; }
body.od-wm svg [fill="#d97706"] { fill: #c98a0b; }
body.od-wm svg [stroke="#d97706"] { stroke: #c98a0b; }
body.od-wm [style*="background:#d97706"], body.od-wm [style*="background: #d97706"] { background: #c98a0b !important; }
body.od-wm svg [fill="#2563eb"] { fill: #0e8fa3; }
body.od-wm svg [stroke="#2563eb"] { stroke: #0e8fa3; }
body.od-wm [style*="background:#2563eb"], body.od-wm [style*="background: #2563eb"] { background: #0e8fa3 !important; }
body.od-wm svg [fill="#1e9e63"] { fill: #149c6b; }
body.od-wm svg [stroke="#1e9e63"] { stroke: #149c6b; }
body.od-wm [style*="background:#1e9e63"], body.od-wm [style*="background: #1e9e63"] { background: #149c6b !important; }
body.od-wm svg [fill="#ede9fe"] { fill: #e6f2fb; }
body.od-wm svg [stroke="#ede9fe"] { stroke: #e6f2fb; }
body.od-wm [style*="background:#ede9fe"], body.od-wm [style*="background: #ede9fe"] { background: #e6f2fb !important; }
body.od-wm svg [fill="#ddd6fe"] { fill: #cfe4f6; }
body.od-wm svg [stroke="#ddd6fe"] { stroke: #cfe4f6; }
body.od-wm [style*="background:#ddd6fe"], body.od-wm [style*="background: #ddd6fe"] { background: #cfe4f6 !important; }
body.od-wm svg [fill="#c4b5fd"] { fill: #a9cdee; }
body.od-wm svg [stroke="#c4b5fd"] { stroke: #a9cdee; }
body.od-wm [style*="background:#c4b5fd"], body.od-wm [style*="background: #c4b5fd"] { background: #a9cdee !important; }
body.od-wm svg [fill="#a78bfa"] { fill: #78b1e3; }
body.od-wm svg [stroke="#a78bfa"] { stroke: #78b1e3; }
body.od-wm [style*="background:#a78bfa"], body.od-wm [style*="background: #a78bfa"] { background: #78b1e3 !important; }
body.od-wm svg [fill="#8b5cf6"] { fill: #4a92d4; }
body.od-wm svg [stroke="#8b5cf6"] { stroke: #4a92d4; }
body.od-wm [style*="background:#8b5cf6"], body.od-wm [style*="background: #8b5cf6"] { background: #4a92d4 !important; }

/* Remaining webmail polish */
body.od-wm *:not(h1):not(h2):not(h3) { letter-spacing: normal; }
body.od-wm .au-conn { border: 0; border-radius: 14px; box-shadow: var(--od-card); }
body.od-wm .au-conn-ico { color: #149c6b; }
/* Inner pages fill the content area (classic caps them at 1180px / 1500px) */
body.od-wm .wm-page-inner { max-width: none; margin: 0; padding: 32px 40px 48px; }
body.od-wm .wm-admin-wrap { max-width: none; margin: 0; padding: 32px 40px 56px; }
@media (max-width: 1000px) { body.od-wm .wm-page-inner, body.od-wm .wm-admin-wrap { padding: 24px 18px 40px; } }

/* -- Unified webmail menu (partials/rail.php): group headings + indented items -- */
body.od-wm .wm2-rail nav { display: flex; flex-direction: column; gap: 1px; }
body.od-wm .wm2-group { display: flex; align-items: center; gap: 12px; padding: 8px 12px; margin-top: 10px; border-radius: 9px; font-size: 14px; font-weight: 600; color: #0f2236; text-decoration: none; }
body.od-wm .wm2-rail nav > .wm2-group:first-child { margin-top: 0; }
body.od-wm .wm2-group .wm2-ico { color: #5a6b7d; }
body.od-wm a.wm2-group:hover { background: #f4f7fa; text-decoration: none; }
body.od-wm .wm2-group.is-on { background: #e8f3fc; color: #1273c4; }
body.od-wm .wm2-group.is-on .wm2-ico { color: #1273c4; }
/* .wm2-sub = folder <button class="wm-folder"> in the mail app, or <a class="wm2-link"> elsewhere */
body.od-wm .wm2-rail .wm2-link { display: flex; align-items: center; width: 100%; margin-bottom: 1px; text-decoration: none; font-family: var(--wm-font); transition: background .12s, color .12s; }
body.od-wm .wm2-rail .wm2-link.is-locked, body.od-wm .wm2-rail .wm2-link.is-locked:hover { color: #8a99a8; background: none; cursor: default; }
body.od-wm .wm2-rail .wm2-sub { gap: 11px; padding: 6px 12px 6px 22px; font-size: 13.5px; font-weight: 400; color: #0f2236; border-radius: 8px; }
body.od-wm .wm2-rail .wm2-sub .wm2-ico { color: #8a99a8; }
body.od-wm .wm2-rail .wm2-sub:hover { background: #f5f6f8; color: #0f2236; }
body.od-wm .wm2-rail .wm2-sub.active { background: #f4f7fa; color: #0f2236; font-weight: 600; }
body.od-wm .wm2-rail .wm2-sub.active .wm2-ico { color: #1273c4; }
body.od-wm .wm2-rail .wm2-sub .wm2-fl { flex: 1; }
body.od-wm .wm2-rail .wm2-sub .wm-count { font-size: 12px; }
body.od-wm .wm2-rail { overflow-y: auto; }

/* ==========================================================================
   Webmail inner-page components from the Figma frames (wm2-*)
   ========================================================================== */
body.od-wm .wm2-page { max-width: none; padding: 32px 40px 48px; display: flex; flex-direction: column; gap: 24px; }
body.od-wm .wm2-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
body.od-wm .wm2-head h1 { margin: 0; font-size: 30px; font-weight: 600; letter-spacing: -.035em; color: #0f2236; }
body.od-wm .wm2-head p { margin: 6px 0 0; font-size: 14.5px; color: #5a6b7d; max-width: 70ch; }
body.od-wm .wm2-crumb { font-size: 13px; color: #8a99a8; margin-bottom: 6px; }
body.od-wm .wm2-actions { display: flex; gap: 8px; flex-wrap: wrap; }
body.od-wm .wm2-page .au-conn { margin: 0; }

body.od-wm .wm2-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: #fff; border-radius: 16px; box-shadow: var(--od-card); }
body.od-wm .wm2-metric { display: flex; flex-direction: column; gap: 4px; padding: 18px 22px; position: relative; min-width: 0; }
body.od-wm .wm2-metric + .wm2-metric::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 1px; background: #e2e8ef; }
body.od-wm .wm2-metric .l { font-size: 13px; color: #5a6b7d; }
body.od-wm .wm2-metric strong { font-size: 28px; font-weight: 600; letter-spacing: -.04em; color: #0f2236; font-variant-numeric: tabular-nums; line-height: 1.15; }
body.od-wm .wm2-metric .s { font-size: 12.5px; color: #8a99a8; }
body.od-wm .wm2-metric .s.is-ok { color: #149c6b; }

body.od-wm .wm2-panel { background: #fff; border-radius: 16px; box-shadow: var(--od-card); padding: 20px 24px 22px; }
body.od-wm .wm2-panel.wm2-flush { padding: 0; overflow: hidden; }
body.od-wm .wm2-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
body.od-wm .wm2-flush .wm2-panel-head { padding: 18px 24px 14px; margin: 0; }
body.od-wm .wm2-panel-head h2 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -.015em; color: #0f2236; }

body.od-wm .wm2-bars { display: flex; align-items: flex-end; gap: 10px; height: 190px; padding-top: 18px; }
body.od-wm .wm2-bar { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; }
body.od-wm .wm2-bar .b { width: 100%; max-width: 30px; border-radius: 6px 6px 2px 2px; background: #b9dcf5; transition: background-color .15s ease; }
body.od-wm .wm2-bar.is-last .b { background: #1273c4; }
body.od-wm .wm2-bar:hover .b { background: #7cbdea; }
body.od-wm .wm2-bar.is-last:hover .b { background: #0e5fa3; }
body.od-wm .wm2-bar .v { font-size: 11px; color: #8a99a8; font-variant-numeric: tabular-nums; min-height: 14px; }
body.od-wm .wm2-bar.is-last .v { color: #0f2236; font-weight: 600; }
body.od-wm .wm2-bar .d { font-size: 11px; color: #8a99a8; }
body.od-wm .wm2-data { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: 13px; }
body.od-wm .wm2-data th, body.od-wm .wm2-data td { padding: 7px 10px; border-top: 1px solid #e2e8ef; text-align: left; font-weight: 400; }
body.od-wm .wm2-data .num { text-align: right; font-variant-numeric: tabular-nums; }

body.od-wm .wm2-tabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: #f4f7fa; }
body.od-wm .wm2-tabs .au-tab { border: 0; border-radius: 8px; background: transparent; padding: 6px 12px; font: 500 13px var(--wm-font); color: #5a6b7d; cursor: pointer; }
body.od-wm .wm2-tabs .au-tab span { color: #8a99a8; margin-left: 3px; font-variant-numeric: tabular-nums; }
body.od-wm .wm2-tabs .au-tab[aria-selected="true"] { background: #fff; color: #0f2236; box-shadow: 0 0 0 1px rgba(14, 23, 38, .06), 0 1px 3px rgba(14, 23, 38, .08); }

body.od-wm .wm2-table-wrap { overflow-x: auto; }
body.od-wm .wm2-table { width: 100%; border-collapse: collapse; font-size: 14px; }
body.od-wm .wm2-table th { text-align: left; padding: 10px 24px; font-size: 12.5px; font-weight: 500; color: #8a99a8; background: #fafbfc; border-top: 1px solid #e2e8ef; border-bottom: 1px solid #e2e8ef; white-space: nowrap; }
body.od-wm .wm2-table td { padding: 14px 24px; border-bottom: 1px solid #e2e8ef; color: #0f2236; vertical-align: middle; }
body.od-wm .wm2-table tr:last-child td { border-bottom: 0; }
body.od-wm .wm2-table .num { text-align: right; font-variant-numeric: tabular-nums; }
body.od-wm .wm2-table tbody tr:hover td { background: #fafbfc; }
body.od-wm .wm2-wf-name { display: block; font-weight: 500; color: #0f2236; text-decoration: none; }
body.od-wm .wm2-wf-name:hover { color: #1273c4; }
body.od-wm .wm2-wf-sub { display: block; font-size: 12.5px; color: #8a99a8; margin-top: 2px; }
body.od-wm .wm2-mono { font: 12.5px var(--wm-mono); color: #0f2236; background: none; }
body.od-wm .wm2-acts { text-align: right; white-space: nowrap; }
body.od-wm .wm2-acts .wm-btn { margin-left: 4px; }
body.od-wm .wm2-icon-btn { width: 32px; height: 32px; margin-left: 4px; border: 0; border-radius: 8px; background: transparent; color: #8a99a8; cursor: pointer; }
body.od-wm .wm2-icon-btn:hover { background: #fbebe8; color: #d0422f; }
body.od-wm .wm2-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 999px; font-size: 12.5px; font-weight: 500; white-space: nowrap; }
body.od-wm .wm2-pill::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: currentColor; }
body.od-wm .wm2-pill.is-ok { background: #e6f5ee; color: #149c6b; }
body.od-wm .wm2-pill.is-q { background: #fbf3e3; color: #c98a0b; }
body.od-wm .wm2-pill.is-bad { background: #fbebe8; color: #d0422f; }
body.od-wm .wm2-pill.is-info { background: #e8f3fc; color: #1273c4; }
body.od-wm .wm2-pill.is-dim { background: #f4f7fa; color: #5a6b7d; }
body.od-wm .wm2-empty { padding: 40px 24px; text-align: center; color: #5a6b7d; font-size: 14px; }
body.od-wm .wm2-empty strong { display: block; color: #0f2236; font-weight: 600; margin-bottom: 4px; }

@media (max-width: 1000px) { body.od-wm .wm2-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } body.od-wm .wm2-metric:nth-child(3)::before { display: none; } body.od-wm .wm2-page { padding: 24px 18px 40px; } }
@media (max-width: 560px) { body.od-wm .wm2-metrics { grid-template-columns: 1fr; } body.od-wm .wm2-metric + .wm2-metric::before { display: none; } body.od-wm .wm2-bars { gap: 4px; } body.od-wm .wm2-bar .v { display: none; } }
/* Table rows carry .au-wf only as a hook for the workflow filter: drop the old card styling */
body.od-wm tr.au-wf { display: table-row; padding: 0; margin: 0; border: 0; border-radius: 0; background: none; box-shadow: none; gap: 0; }
body.od-wm tr.au-wf[hidden] { display: none; }

/* -- Mail administration (Figma "Webmail · Admin · Accounts") -------------------------- */
body.od-wm .wm2-crumb a { color: #8a99a8; text-decoration: none; }
body.od-wm .wm2-crumb a:hover { color: #1273c4; }
body.od-wm .wm2-crumb .wm2-pill { font-size: 11.5px; padding: 1px 8px 1px 7px; margin-left: 4px; }
body.od-wm .wm2-of { font-size: 15px; font-weight: 500; color: #8a99a8; letter-spacing: -.01em; }
body.od-wm .wm2-metric .s.is-q { color: #c98a0b; }
body.od-wm .wm2-meter { display: block; height: 6px; border-radius: 999px; background: #eceef1; overflow: hidden; margin-top: 4px; max-width: 180px; }
body.od-wm .wm2-meter i { display: block; height: 100%; border-radius: inherit; background: #1273c4; }
body.od-wm .wm2-meter.is-hot i { background: #c98a0b; }
body.od-wm .wm2-meter-l { display: block; margin-top: 5px; font-size: 12.5px; color: #8a99a8; font-variant-numeric: tabular-nums; }
body.od-wm .wm2-dim { color: #5a6b7d !important; font-size: 13.5px; white-space: nowrap; }

body.od-wm .wm2-find { position: relative; display: block; width: 260px; max-width: 100%; }
body.od-wm .wm2-find i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); font-size: 13px; color: #8a99a8; pointer-events: none; }
body.od-wm .wm2-find input { width: 100%; height: 40px; padding: 0 12px 0 36px; border: 1px solid transparent; border-radius: 10px; background: #f4f7fa; font: 14px var(--wm-font); color: #0f2236; outline: none; }
body.od-wm .wm2-find input:focus { background: #fff; border-color: #1273c4; box-shadow: 0 0 0 3px rgba(18, 115, 196, .14); }

body.od-wm .wm2-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
body.od-wm .wm2-who > div { display: flex; flex-direction: column; min-width: 0; }
body.od-wm .wm2-who strong { font-weight: 500; color: #0f2236; }
body.od-wm .wm2-who span:not(.wm2-av) { font-size: 12.5px; color: #8a99a8; }
body.od-wm .wm2-av { flex: none; width: 34px; height: 34px; border-radius: 999px; display: grid; place-items: center; background: #e8f3fc; color: #1273c4; font-size: 12.5px; font-weight: 600; }
body.od-wm .wm2-dir-row.is-open td { background: #fafbfc; border-bottom-color: transparent; }
body.od-wm .wm2-dir-row[hidden], body.od-wm .wm2-edit[hidden] { display: none; }
body.od-wm .wm2-edit td { background: #fafbfc; padding: 4px 24px 18px 70px; }
body.od-wm .wm2-edit-in { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
body.od-wm .wm2-edit-quota { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin: 0; }
body.od-wm .wm2-edit-quota label { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: #5a6b7d; }
body.od-wm .wm2-edit-quota .wm-input { width: 130px; height: 36px; background: #fff; box-shadow: 0 0 0 1px rgba(14, 23, 38, .1); }
body.od-wm .wm2-edit-more { display: flex; gap: 8px; flex-wrap: wrap; }
body.od-wm .wm2-edit-more form { margin: 0; }
body.od-wm .wm-btn.wm2-danger { color: #d0422f; box-shadow: 0 0 0 1px rgba(208, 66, 47, .35); }
body.od-wm .wm-btn.wm2-danger:hover { background: #fbebe8; color: #d0422f; }

body.od-wm .wm2-split { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 24px; align-items: start; }
body.od-wm .wm2-h { margin: 0 0 14px; font-size: 17px; font-weight: 600; letter-spacing: -.015em; color: #0f2236; }
body.od-wm .wm2-muted { margin: -6px 0 14px; font-size: 14px; color: #5a6b7d; line-height: 1.55; }
body.od-wm .wm2-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; margin: 0; }
body.od-wm .wm2-form > .wm2-hint, body.od-wm .wm2-form > div:last-child { grid-column: 1 / -1; }
body.od-wm .wm2-field { display: flex; flex-direction: column; min-width: 0; }
body.od-wm .wm2-field .wm-label { display: block; }
body.od-wm .wm2-field .wm-inputgroup { display: flex; }
body.od-wm .wm2-field .wm-inputgroup .wm-input { flex: 1; min-width: 0; }
body.od-wm .wm2-field-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
body.od-wm .wm2-field-pair label { display: flex; flex-direction: column; min-width: 0; }
body.od-wm .wm2-mono-in { font-family: var(--wm-mono); }
body.od-wm .wm2-hint { margin: 0; font-size: 12.5px; color: #8a99a8; line-height: 1.55; }
body.od-wm .wm2-note { margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; font-size: 13.5px; }
body.od-wm .wm2-note.is-q { background: #fbf3e3; color: #7a5406; }
body.od-wm .wm2-linkbox { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 8px 14px; margin-bottom: 14px; border-radius: 10px; background: #f4f7fa; }
body.od-wm .wm2-linkbox i { color: #8a99a8; font-size: 13px; }
body.od-wm .wm2-linkbox code { font: 13px var(--wm-mono); color: #0f2236; background: none; padding: 0; overflow-wrap: anywhere; }

body.od-wm .wm2-cred { background: #f2faf6; box-shadow: 0 0 0 1px rgba(19, 160, 107, .22); }
body.od-wm .wm2-cred-top { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
body.od-wm .wm2-cred-top h2 { margin: 0; font-size: 16px; font-weight: 600; color: #0f2236; }
body.od-wm .wm2-cred-top p { margin: 3px 0 0; font-size: 13.5px; color: #5a6b7d; }
body.od-wm .wm2-cred-ico { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #149c6b; color: #fff; font-size: 14px; }
body.od-wm .wm2-cred-row { display: flex; align-items: flex-end; gap: 12px 24px; flex-wrap: wrap; }
body.od-wm .wm2-cred-row > div { display: flex; flex-direction: column; gap: 4px; }
body.od-wm .wm2-cred-row span { font-size: 12.5px; color: #5a6b7d; }
body.od-wm .wm2-cred-row code { font: 14px var(--wm-mono); color: #0f2236; background: #fff; padding: 7px 12px; border-radius: 8px; box-shadow: 0 0 0 1px rgba(14, 23, 38, .08); }
body.od-wm .wm2-cred-foot { margin: 14px 0 0; font-size: 13px; color: #5a6b7d; }
body.od-wm .wm2-cred-foot a { color: #1273c4; overflow-wrap: anywhere; }

/* All modules */
body.od-wm .wm2-mods { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
body.od-wm .wm2-mod { display: flex; align-items: flex-start; gap: 14px; padding: 20px 22px; border-radius: 16px; background: #fff; box-shadow: var(--od-card); text-decoration: none; color: inherit; transition: box-shadow .15s ease; }
body.od-wm .wm2-mod:hover { box-shadow: 0 0 0 1px rgba(18, 115, 196, .35), 0 6px 18px rgba(14, 23, 38, .06); text-decoration: none; }
body.od-wm .wm2-mod-ico { flex: none; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: #e8f3fc; color: #1273c4; font-size: 16px; }
body.od-wm .wm2-mod-bd { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
body.od-wm .wm2-mod-bd strong { font-size: 15px; font-weight: 600; color: #0f2236; }
body.od-wm .wm2-mod-bd span { font-size: 13.5px; color: #5a6b7d; line-height: 1.5; }

@media (max-width: 1100px) { body.od-wm .wm2-split { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
    body.od-wm .wm2-form, body.od-wm .wm2-field-pair { grid-template-columns: 1fr; }
    body.od-wm .wm2-find { width: 100%; }
    body.od-wm .wm2-edit td { padding-left: 24px; }
}
body.od-wm .au-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
body.od-wm .wm2-field .wm-inputgroup .addon { font-family: var(--wm-font); color: #5a6b7d; white-space: nowrap; }
body.od-wm .wm2-mono-in::placeholder { font-family: var(--wm-font); }

/* Phones: keep every webmail page inside the screen; the closed drawer casts no shadow */
body.od-wm .wm2-page > * { min-width: 0; max-width: 100%; }
body.od-wm .wm2-head > div { min-width: 0; }
body.od-wm .wm2-head p, body.od-wm .wm2-crumb { overflow-wrap: anywhere; }
@media (max-width: 860px) {
    body.od-wm .wm-sidebar:not(.open) { box-shadow: none; }
    body.od-wm .wm2-dir th:nth-child(3), body.od-wm .wm2-dir td:nth-child(3),
    body.od-wm .wm2-dir th:nth-child(4), body.od-wm .wm2-dir td:nth-child(4) { display: none; }
    body.od-wm .wm2-edit td { padding-left: 24px; }
}
@media (max-width: 640px) {
    body.od-wm .wm2-dir th:nth-child(2), body.od-wm .wm2-dir td:nth-child(2) { display: none; }
    body.od-wm .wm2-table th, body.od-wm .wm2-table td { padding-left: 16px; padding-right: 16px; }
    body.od-wm .wm2-field .wm-inputgroup .addon { max-width: 50%; overflow: hidden; text-overflow: ellipsis; }
}

/* ==========================================================================
   Automation inner pages (Contacts, Templates, Brand, AI report, workflow detail
   and builder) brought to the Figma pattern with CSS only. Their markup and the
   ids/data hooks that js/webmail-automation.js drives stay exactly as they are.
   ========================================================================== */
/* Page header: big title, no icon tile, actions aligned to the bottom */
body.od-wm .au-head { align-items: flex-end; margin-bottom: 24px; }
body.od-wm .wm-page-head h1 { font-size: 30px; letter-spacing: -.035em; gap: 0; color: #0f2236; }
body.od-wm .wm-page-head h1 > .ico { display: none; }
body.od-wm .wm-page-head p { font-size: 14.5px; color: #5a6b7d; margin-top: 6px; }
body.od-wm .au-head-actions .wm-btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
body.od-wm .au-head-actions .wm-btn > i { display: none; }

/* KPI cards -> one grouped metrics strip */
body.od-wm .au-kpis { gap: 0; background: #fff; border-radius: 16px; box-shadow: var(--od-card); margin-bottom: 24px; overflow: hidden; }
body.od-wm .au-kpi { background: none; border: 0; border-radius: 0; box-shadow: none; padding: 18px 22px; position: relative; }
body.od-wm .au-kpi + .au-kpi::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 1px; background: #e2e8ef; }
body.od-wm .au-kpi-lbl { font-size: 13px; font-weight: 400; color: #5a6b7d; text-transform: none; letter-spacing: 0; }
body.od-wm .au-kpi-lbl > i { display: none; }
body.od-wm .au-kpi-num { font-size: 28px; color: #0f2236; line-height: 1.15; margin-top: 4px; font-variant-numeric: tabular-nums; }
body.od-wm .au-kpi-num small { font-size: 15px; font-weight: 500; color: #8a99a8; }
body.od-wm .au-kpi-foot { font-size: 12.5px; color: #8a99a8; }

/* Underline tabs -> segmented control */
body.od-wm .au-tabs { display: inline-flex; max-width: 100%; gap: 2px; padding: 3px; border: 0; border-radius: 10px; background: #e9ecf0; margin-bottom: 20px; overflow-x: auto; }
body.od-wm .au-tabs .au-tab { border: 0; border-radius: 8px; margin: 0; padding: 7px 14px; font: 500 13.5px var(--wm-font); letter-spacing: 0; text-transform: none; color: #5a6b7d; background: transparent; }
body.od-wm .au-tabs .au-tab > i { display: none; }
body.od-wm .au-tabs .au-tab:hover { color: #0f2236; }
body.od-wm .au-tabs .au-tab[aria-selected="true"] { background: #fff; color: #0f2236; border: 0; box-shadow: 0 0 0 1px rgba(14, 23, 38, .06), 0 1px 3px rgba(14, 23, 38, .08); }

/* Panels and charts: one calm surface, no coloured top rules */
body.od-wm .au-chart, body.od-wm .wm-page-inner .wm-card-panel { border: 0; border-top: 0; border-radius: 16px; box-shadow: var(--od-card); }
body.od-wm .au-chart-title { font-size: 17px; font-weight: 600; letter-spacing: -.015em; color: #0f2236; text-transform: none; }
body.od-wm .au-chart-sub { font-size: 13px; color: #8a99a8; }

@media (max-width: 640px) {
    body.od-wm .au-kpi + .au-kpi::before { left: 22px; right: 22px; top: 0; bottom: auto; width: auto; height: 1px; }
    body.od-wm .wm-page-head h1 { font-size: 26px; }
}
/* Report period picker -> segmented control */
body.od-wm .au-seg { gap: 2px; padding: 3px; border: 0; border-radius: 10px; background: #e9ecf0; }
body.od-wm .au-seg a { border: 0; border-radius: 8px; padding: 6px 13px; font-weight: 500; background: transparent; color: #5a6b7d; }
body.od-wm .au-seg a:hover { background: transparent; color: #0f2236; }
body.od-wm .au-seg a.is-on, body.od-wm .au-seg a.is-on:hover { background: #fff; color: #0f2236; box-shadow: 0 0 0 1px rgba(14, 23, 38, .06), 0 1px 3px rgba(14, 23, 38, .08); }
/* Plain panel titles, as in the frames */
body.od-wm .au-chart-title > i, body.od-wm .au-chart-title > .fa-solid { display: none; }
/* Decorative panel-header tiles: one blue tint (step-type colours elsewhere keep their meaning) */
body.od-wm .wm-page-inner .wm-panel-head .ico, body.od-wm .wm-page-inner .wm-panel-head .ico[style] { background: #e8f3fc !important; color: #1273c4; }
/* Builder: trigger choice cards and the step palette, rounded and calm */
body.od-wm .au-trig-opt { border: 1px solid #e3e6eb; border-radius: 12px; background: #fff; }
body.od-wm .au-trig-opt:hover { border-color: #c9d0d9; }
body.od-wm .au-trig-opt:has(input:checked) { border-color: #1273c4; background: #f3f8fd; box-shadow: 0 0 0 1px #1273c4; }
body.od-wm .au-trig-opt:has(input:focus-visible) { outline: 3px solid rgba(18, 115, 196, .3); outline-offset: 2px; }
body.od-wm .au-trig-opt .tt { font-weight: 600; }
body.od-wm .au-trig-opt .tt > i { color: #1273c4; }
body.od-wm .au-pal-btn { border: 1px solid #e2e8ef; border-radius: 12px; background: #fff; }
body.od-wm .au-pal-btn:hover { border-color: #1273c4; background: #f7fafd; }
body.od-wm .au-pal-btn .ico { border-radius: 9px; }
/* Brand chip beside the header buttons: same height */
body.od-wm .au-head-actions .au-brand-chip { height: 38px; border: 0; border-radius: 10px; box-shadow: 0 0 0 1px rgba(14, 23, 38, .12); font-size: 14px; color: #0f2236; }

/* -- Business · Insurance (Figma "Webmail · Business · Insurance" / "Policy") -- */
body.od-wm .wm2-subhead { display: block; padding: 8px 12px 3px 22px; font-size: 12px; font-weight: 500; color: #8a99a8; }
/* The module's own tab bar is now in the menu */
body.od-wm .bz-subnav { display: none; }
body.od-wm .wm2-split.wm2-split-380 { grid-template-columns: minmax(0, 1fr) 380px; }
body.od-wm .wm2-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
body.od-wm .wm2-list { list-style: none; margin: 0; padding: 0; }
body.od-wm .wm2-list-row { display: flex; align-items: center; gap: 14px; padding: 16px 24px; border-top: 1px solid #e2e8ef; color: inherit; text-decoration: none; }
body.od-wm .wm2-list-row:hover { background: #fafbfc; text-decoration: none; }
body.od-wm .wm2-list-ico { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #e8f3fc; color: #1273c4; font-size: 17px; }
body.od-wm .wm2-list-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
body.od-wm .wm2-list-main strong, body.od-wm .wm2-list-fig strong { font-weight: 500; color: #0f2236; font-size: 14.5px; }
body.od-wm .wm2-list-main span, body.od-wm .wm2-list-fig span { font-size: 12.5px; color: #8a99a8; overflow-wrap: anywhere; }
body.od-wm .wm2-list-fig { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-variant-numeric: tabular-nums; white-space: nowrap; }
body.od-wm .wm2-list-row .wm2-pill { min-width: 96px; justify-content: center; }
body.od-wm .wm2-claims { display: flex; flex-direction: column; gap: 10px; }
body.od-wm .wm2-claim { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 12px; border: 1px solid #e2e8ef; color: inherit; text-decoration: none; }
body.od-wm .wm2-claim:hover { border-color: #b9d6ef; text-decoration: none; }
body.od-wm .wm2-claim-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
body.od-wm .wm2-claim-top strong { font-weight: 600; color: #0f2236; font-size: 14px; }
body.od-wm .wm2-claim-sub { font-size: 13px; color: #5a6b7d; line-height: 1.5; }
body.od-wm .wm2-steps { display: flex; align-items: center; gap: 6px; }
body.od-wm .wm2-step { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: #8a99a8; white-space: nowrap; }
body.od-wm .wm2-step::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: #e3e6eb; }
body.od-wm .wm2-step.is-on { color: #0f2236; }
body.od-wm .wm2-step.is-on::before { background: #1273c4; }
body.od-wm .wm2-step-line { flex: 1; min-width: 8px; height: 1.5px; background: #e3e6eb; }
body.od-wm .wm2-step-line.is-on { background: #1273c4; }
body.od-wm .wm2-more { display: inline-block; margin-top: 12px; font-size: 13.5px; color: #1273c4; text-decoration: none; }
body.od-wm .wm2-note-link { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; background: #e8f3fc; color: #1273c4; text-decoration: none; }
body.od-wm .wm2-note-link:hover { background: #deedf9; text-decoration: none; }
body.od-wm .wm2-note-link i { margin-top: 2px; }
body.od-wm .wm2-note-link span { font-size: 13.5px; line-height: 1.5; }
body.od-wm .wm2-note-link strong { display: block; font-weight: 600; }

/* Classic insurance pages: stat cards -> one strip, chips -> pills, cards calm */
body.od-wm .bz-stats { gap: 0; background: #fff; border-radius: 16px; box-shadow: var(--od-card); margin-bottom: 24px; overflow: hidden; }
body.od-wm .bz-stat { background: none; border: 0; border-radius: 0; padding: 18px 22px; position: relative; }
body.od-wm .bz-stat + .bz-stat::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 1px; background: #e2e8ef; }
body.od-wm .bz-stat .lbl { font-size: 13px; font-weight: 400; letter-spacing: 0; text-transform: none; color: #5a6b7d; }
body.od-wm .bz-stat .lbl > i { display: none; }
body.od-wm .bz-stat .num { font-size: 28px; font-weight: 600; letter-spacing: -.04em; }
body.od-wm .bz-stat .foot { font-size: 12.5px; color: #8a99a8; }
body.od-wm .bz-chip { font-size: 12.5px; font-weight: 500; letter-spacing: 0; text-transform: none; border-radius: 999px; padding: 3px 10px 3px 8px; }
body.od-wm .bz-chip > i { font-size: 11px; }
body.od-wm .bz-card { border: 0; border-top: 0; border-radius: 16px; }

@media (max-width: 1100px) { body.od-wm .wm2-split.wm2-split-380 { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
    body.od-wm .wm2-list-row { flex-wrap: wrap; padding: 14px 16px; }
    body.od-wm .wm2-list-fig { align-items: flex-start; }
    body.od-wm .bz-stat + .bz-stat::before { left: 22px; right: 22px; top: 0; bottom: auto; width: auto; height: 1px; }
}
/* Policy page */
body.od-wm .wm2-split.wm2-split-360 { grid-template-columns: minmax(0, 1fr) 360px; }
body.od-wm .wm2-sumstrip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: #fff; border-radius: 16px; box-shadow: var(--od-card); }
body.od-wm .wm2-sumstrip > div { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px 22px; position: relative; min-width: 0; }
body.od-wm .wm2-sumstrip > div + div::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 1px; background: #e2e8ef; }
body.od-wm .wm2-sumstrip .l { font-size: 13px; color: #5a6b7d; }
body.od-wm .wm2-sumstrip strong { font-size: 15px; font-weight: 600; color: #0f2236; font-variant-numeric: tabular-nums; }
body.od-wm .wm2-sumstrip strong.is-due { color: #b25f00; }
body.od-wm .wm2-sumstrip .s { font-size: 12.5px; color: #8a99a8; }
body.od-wm .wm2-callout { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: #f5f9fd; box-shadow: 0 0 0 1px rgba(18, 115, 196, .18); }
body.od-wm .wm2-callout.is-q { background: #fdf8ee; box-shadow: 0 0 0 1px rgba(201, 138, 11, .28); }
body.od-wm .wm2-callout > div { flex: 1 1 360px; min-width: 0; }
body.od-wm .wm2-callout strong { display: block; font-weight: 600; color: #0f2236; }
body.od-wm .wm2-callout p { margin: 3px 0 0; font-size: 13.5px; color: #5a6b7d; line-height: 1.55; }
body.od-wm .wm2-docs { display: flex; flex-direction: column; gap: 8px; }
body.od-wm .wm2-doc { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid #e2e8ef; color: #0f2236; text-decoration: none; font-size: 14px; }
body.od-wm .wm2-doc:hover { border-color: #b9d6ef; background: #f7fafd; text-decoration: none; }
body.od-wm .wm2-doc i { color: #1273c4; }
body.od-wm .wm2-doc span { flex: 1; }
body.od-wm .wm2-doc em { font-style: normal; font-size: 12px; color: #8a99a8; }
body.od-wm .wm2-actions form { display: inline-flex; }
@media (max-width: 1200px) { body.od-wm .wm2-sumstrip { grid-template-columns: repeat(3, minmax(0, 1fr)); } body.od-wm .wm2-sumstrip > div:nth-child(4)::before { display: none; } }
@media (max-width: 1100px) { body.od-wm .wm2-split.wm2-split-360 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { body.od-wm .wm2-sumstrip { grid-template-columns: 1fr 1fr; } body.od-wm .wm2-sumstrip > div::before { display: none; } }

/* ==========================================================================
   Compose (Figma "Webmail · Compose"): a centred 720px window over a soft dim.
   Minimised (webmail.js hides #wm-comp-body inline) it docks bottom-right with no dim.
   Markup, ids and webmail.js are unchanged.
   ========================================================================== */
body.od-wm .wm-composer.open {
    left: 50%; right: auto; top: 50%; bottom: auto; transform: translate(-50%, -50%);
    width: min(720px, calc(100vw - 32px)); max-height: calc(100vh - 64px);
    border: 0; border-radius: 16px; box-shadow: 0 24px 60px -8px rgba(15, 34, 54, .35), 0 0 0 1px rgba(14, 23, 38, .06);
    animation: od-cmp-in .2s ease both; z-index: 900;
}
@keyframes od-cmp-in { from { opacity: 0; transform: translate(-50%, calc(-50% + 12px)); } to { opacity: 1; transform: translate(-50%, -50%); } }
body.od-wm:has(.wm-composer.open)::after {
    content: ""; position: fixed; inset: 0; z-index: 850; background: rgba(15, 34, 54, .28); pointer-events: none;
}
/* Minimised: a small bar docked bottom-right, and no dim */
body.od-wm .wm-composer.open:has(#wm-comp-body[style*="none"]) {
    left: auto; right: 24px; top: auto; bottom: 0; transform: none; width: 340px;
    border-radius: 14px 14px 0 0; animation: none;
}
body.od-wm .wm-composer.open:has(#wm-comp-body[style*="none"]) .wm-composer-foot { display: none; }
body.od-wm:has(.wm-composer.open #wm-comp-body[style*="none"])::after { display: none; }

body.od-wm .wm-composer-head { padding: 14px 20px; }
body.od-wm .wm-composer-head strong { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
body.od-wm .wm-composer-body { display: flex; flex-direction: column; padding: 0; }
body.od-wm .wm-comp-line { padding: 11px 20px; border-bottom: 1px solid #e2e8ef; gap: 12px; }
body.od-wm .wm-comp-line label { width: 56px; flex: none; }
body.od-wm .wm-comp-line input { font-size: 14.5px; color: #0f2236; }
body.od-wm .wm-comp-line .wm-cc-toggle { color: #1273c4; font-weight: 500; border-radius: 6px; }
body.od-wm .wm-composer .wm2-sendnote { padding: 6px 20px 8px 88px; border-bottom: 1px solid #e2e8ef; }
/* The AI strip sits under the fields, as in the frame; the editor follows */
body.od-wm .wm-composer-body > .wm-ai { order: 5; margin: 0; border-radius: 0; background: rgba(234, 243, 251, .6); box-shadow: none; padding: 10px 20px 12px; }
body.od-wm .wm-composer-body > .wm-comp-editor { order: 6; min-height: 220px; padding: 18px 20px; font-size: 15px; }
body.od-wm .wm-composer-body > .wm-comp-toolbar { order: 7; padding: 6px 14px; border-top: 1px solid #e2e8ef; }
body.od-wm .wm-composer-body > .wm-comp-attlist { order: 8; padding: 0 20px; }
body.od-wm .wm-composer-body > .wm-comp-attlist:not(:empty) { padding-bottom: 12px; }
body.od-wm .wm-composer .wm-ai-head { color: #1273c4; }
body.od-wm .wm-composer .wm-ai-chip { background: #fff; border: 1px solid #d6e6f5; color: #0f2236; font-weight: 500; }
body.od-wm .wm-composer .wm-ai-chip:hover { border-color: #1273c4; color: #1273c4; }
body.od-wm .wm-composer .wm-ai-btn { background: #e8f3fc; color: #1273c4; border: 0; font-weight: 600; }
body.od-wm .wm-composer-foot { padding: 12px 20px; border-top: 1px solid #e2e8ef; gap: 6px; }
body.od-wm .wm-composer-foot #wm-comp-send { padding: 0 20px; height: 38px; }
body.od-wm .wm-composer-foot #wm-comp-send > i { display: none; }
body.od-wm .wm-composer-foot .wm-tool { color: #5a6b7d; border-radius: 8px; }
body.od-wm .wm-composer-foot .wm-saving-hint { margin-left: auto; order: 9; font-size: 12.5px; color: #8a99a8; }
body.od-wm .wm-composer-foot #wm-comp-discard { order: 10; }
@media (max-width: 640px) {
    body.od-wm .wm-composer.open { top: auto; bottom: 0; transform: none; width: 100vw; left: 0; border-radius: 16px 16px 0 0; max-height: 92vh; animation: none; }
    body.od-wm .wm-composer .wm2-sendnote { padding-left: 20px; }
}
body.od-wm .wm-comp-toolbar .wm-ai-btn { width: auto; height: 32px; padding: 0 12px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
body.od-wm .wm-comp-line input, body.od-wm .wm-comp-line input:focus { border: 0 !important; box-shadow: none !important; outline: none; background: transparent !important; padding: 0; min-height: 0; }
body.od-wm .wm-comp-line:focus-within { box-shadow: inset 2px 0 0 #1273c4; }

/* Inbox rows (Figma 8:6): grey initials; unread = blue avatar + blue time */
body.od-wm .wm2-row-av { background: #f4f7fa; color: #5a6b7d; font-size: 12px; }
body.od-wm .wm-row.unread .wm2-row-av { background: #1273c4; color: #fff; }
body.od-wm .wm-row.unread .wm-row-date, body.od-wm .wm-row.unread .wm-row-time { color: #1273c4; font-weight: 500; }

/* ==========================================================================
   Insurance back office (Figma page "06 · Insurance"): top bar + 232px menu
   ========================================================================== */
body.od-wm:has(.ins2-nav) { background: #f4f7fa; }
body.od-wm .ins2-top { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; gap: 16px; height: 57px; padding: 0 20px; background: #fff; border-bottom: 1px solid #e2e8ef; }
body.od-wm .ins2-brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
body.od-wm .ins2-brand span { font-size: 20px; font-weight: 600; letter-spacing: -.6px; color: #0f2236; }
body.od-wm .ins2-div { width: 1px; height: 22px; background: #e2e8ef; }
body.od-wm .ins2-mod { font-size: 15px; font-weight: 500; color: #0f2236; }
body.od-wm .ins2-dom { font-size: 13px; font-weight: 500; color: #8a99a8; }
body.od-wm .ins2-search { display: flex; align-items: center; gap: 10px; width: 420px; max-width: 32vw; padding: 0 14px; height: 38px; border-radius: 10px; background: #f4f7fa; margin: 0; color: #8a99a8; }
body.od-wm .ins2-search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font: 500 13px var(--wm-font); color: #0f2236; }
body.od-wm .ins2-search:focus-within { box-shadow: 0 0 0 2px rgba(18, 115, 196, .35); }
body.od-wm .ins2-spacer { flex: 1; }
body.od-wm .ins2-back { font-size: 15px; font-weight: 500; color: #1273c4; text-decoration: none; white-space: nowrap; }
body.od-wm .ins2-back:hover { text-decoration: underline; }
body.od-wm .ins2-mods { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; color: #5a6b7d; }
body.od-wm .ins2-mods:hover { background: #f4f7fa; color: #0f2236; }
body.od-wm .ins2-av { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 999px; background: #1273c4; color: #fff; font-size: 12px; font-weight: 600; }
body.od-wm .ins2-burger { display: none; flex-direction: column; gap: 4px; padding: 8px; margin: 0; cursor: pointer; }
body.od-wm .ins2-burger span { width: 18px; height: 2px; border-radius: 2px; background: #0f2236; }

body.od-wm .ins2-nav { position: fixed; top: 57px; left: 0; bottom: 0; z-index: 50; width: 232px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; padding: 16px 12px; background: #fff; border-right: 1px solid #e2e8ef; }
body.od-wm .ins2-sec { padding: 16px 12px 4px; font-size: 12px; letter-spacing: .1px; color: #8a99a8; }
body.od-wm .ins2-link { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 8px; font-size: 13px; font-weight: 500; line-height: 1.4; color: #0f2236; text-decoration: none; }
body.od-wm .ins2-link svg { flex: none; color: #5a6b7d; }
body.od-wm .ins2-link:hover { background: #f4f7fa; text-decoration: none; }
body.od-wm .ins2-link.is-on { background: #e8f3fc; color: #1273c4; font-weight: 600; }
body.od-wm .ins2-link.is-on svg { color: #1273c4; }
body.od-wm .ins2-backdrop { display: none; }

/* Content sits beside the menu; Figma "Content": padding 32/40/48, full width */
body.od-wm:has(.ins2-nav) .wm-admin-wrap { margin: 0 0 0 232px; max-width: none; padding: 32px 40px 48px; }

@media (max-width: 960px) {
    body.od-wm .ins2-burger { display: inline-flex; }
    body.od-wm .ins2-search, body.od-wm .ins2-dom, body.od-wm .ins2-div { display: none; }
    body.od-wm .ins2-top { gap: 10px; padding: 0 12px; }
    body.od-wm .ins2-nav { transform: translateX(-100%); transition: transform .2s ease; box-shadow: none; }
    body.od-wm .ins2-toggle:checked ~ .ins2-nav { transform: none; box-shadow: 8px 0 40px rgba(15, 34, 54, .18); }
    body.od-wm .ins2-toggle:checked ~ .ins2-backdrop { display: block; position: fixed; inset: 57px 0 0 0; z-index: 45; background: rgba(15, 34, 54, .35); }
    body.od-wm:has(.ins2-nav) .wm-admin-wrap { margin-left: 0; padding: 20px 16px 32px; }
}

/* Insurance pages (Figma 06 · Insurance): header, metrics strip, cards */
body.od-wm .ins2-page { display: flex; flex-direction: column; gap: 24px; }
body.od-wm .ins2-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
body.od-wm .ins2-head > div:first-child { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
body.od-wm .ins2-head h1 { margin: 0; font-size: 40px; font-weight: 600; line-height: 1.1; letter-spacing: -1px; color: #0f2236; }
body.od-wm .ins2-head p { margin: 0; font-size: 15px; line-height: 1.55; color: #5a6b7d; max-width: 640px; }
body.od-wm .ins2-actions { display: flex; gap: 10px; flex-wrap: wrap; }
body.od-wm .ins2-btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 18px; border-radius: 10px; background: #fff; border: 1px solid #e2e8ef; font-size: 15px; font-weight: 500; color: #0f2236; text-decoration: none; white-space: nowrap; }
body.od-wm .ins2-btn:hover { background: #f4f7fa; text-decoration: none; color: #0f2236; }
body.od-wm .ins2-btn.is-primary { background: #1273c4; border-color: #1273c4; color: #fff; }
body.od-wm .ins2-btn.is-primary:hover { background: #0e5fa3; }
body.od-wm .ins2-ghost { font-size: 15px; font-weight: 500; color: #1273c4; text-decoration: none; }
body.od-wm .ins2-ghost:hover { text-decoration: underline; }
body.od-wm .ins2-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: #fff; border: 1px solid #e2e8ef; border-radius: 16px; }
body.od-wm .ins2-metrics > div { display: flex; flex-direction: column; gap: 6px; padding: 18px 22px; min-width: 0; }
body.od-wm .ins2-metrics > div + div { border-left: 1px solid #e2e8ef; }
body.od-wm .ins2-metrics .l { font-size: 13px; font-weight: 500; color: #5a6b7d; }
body.od-wm .ins2-metrics strong { font-size: 28px; font-weight: 600; line-height: 1.1; letter-spacing: -1px; color: #0f2236; font-variant-numeric: tabular-nums; }
body.od-wm .ins2-metrics .s { font-size: 12px; letter-spacing: .1px; color: #8a99a8; }
body.od-wm .ins2-metrics .s.is-ok { color: #149c6b; font-weight: 500; }
body.od-wm .ins2-metrics .s.is-q { color: #c98a0b; font-weight: 500; }
body.od-wm .ins2-row { display: flex; gap: 24px; align-items: flex-start; }
body.od-wm .ins2-col { width: 380px; flex: none; display: flex; flex-direction: column; gap: 20px; }
body.od-wm .ins2-card { background: #fff; border: 1px solid #e2e8ef; border-radius: 16px; min-width: 0; }
body.od-wm .ins2-row > .ins2-card { flex: 1; }
body.od-wm .ins2-pad { padding: 22px 24px; display: flex; flex-direction: column; gap: 12px; }
body.od-wm .ins2-card h2 { margin: 0; font-size: 20px; font-weight: 600; line-height: 1.3; letter-spacing: -.2px; color: #0f2236; }
body.od-wm .ins2-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 24px; }
body.od-wm .ins2-card-head.is-tight { padding: 0; }
body.od-wm .ins2-muted { margin: 0; font-size: 13px; font-weight: 500; line-height: 1.45; color: #5a6b7d; }
body.od-wm .ins2-prod { display: flex; align-items: center; gap: 14px; padding: 14px 24px; border-top: 1px solid #e2e8ef; color: inherit; text-decoration: none; }
body.od-wm .ins2-prod:hover { background: #fafbfc; text-decoration: none; }
body.od-wm .ins2-prod-ico { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: #e8f3fc; color: #1273c4; }
body.od-wm .ins2-prod-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
body.od-wm .ins2-prod-main strong { font-size: 15px; font-weight: 500; line-height: 1.55; color: #0f2236; }
body.od-wm .ins2-prod-main span { font-size: 12px; letter-spacing: .1px; color: #8a99a8; }
body.od-wm .ins2-prod-n { font-size: 13px; font-weight: 500; color: #5a6b7d; white-space: nowrap; }
body.od-wm .ins2-empty { padding: 32px 24px; border-top: 1px solid #e2e8ef; text-align: center; font-size: 14px; line-height: 1.55; color: #5a6b7d; }
body.od-wm .ins2-empty strong { display: block; font-size: 16px; color: #0f2236; margin-bottom: 4px; }
body.od-wm .ins2-empty div { margin-top: 14px; }
body.od-wm .ins2-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
body.od-wm .ins2-steps li { display: flex; align-items: center; gap: 10px; font-size: 13px; line-height: 1.4; color: #5a6b7d; }
body.od-wm .ins2-steps li.is-next, body.od-wm .ins2-steps li.is-next a { color: #0f2236; font-weight: 600; }
body.od-wm .ins2-steps a { color: #5a6b7d; text-decoration: none; }
body.od-wm .ins2-steps a:hover { color: #1273c4; text-decoration: underline; }
body.od-wm .ins2-check { flex: none; width: 20px; height: 20px; border-radius: 999px; display: grid; place-items: center; border: 1.5px solid #e2e8ef; background: #fff; color: #fff; }
body.od-wm .ins2-steps li.is-done .ins2-check { background: #149c6b; border-color: #149c6b; }
body.od-wm .ins2-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 999px; font-size: 13px; font-weight: 500; white-space: nowrap; }
body.od-wm .ins2-pill::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: currentColor; }
body.od-wm .ins2-pill.is-ok { background: #e6f5ee; color: #149c6b; }
body.od-wm .ins2-pill.is-q { background: #fbf3e3; color: #c98a0b; }
body.od-wm .ins2-pill.is-bad { background: #fbebe8; color: #d0422f; }
body.od-wm .ins2-pill.is-info { background: #e8f3fc; color: #1273c4; }
@media (max-width: 1200px) { body.od-wm .ins2-row { flex-direction: column; } body.od-wm .ins2-col { width: 100%; } body.od-wm .ins2-row > .ins2-card { width: 100%; } }
@media (max-width: 760px) { body.od-wm .ins2-metrics { grid-template-columns: 1fr 1fr; } body.od-wm .ins2-metrics > div:nth-child(3) { border-left: 0; } body.od-wm .ins2-metrics > div:nth-child(n+3) { border-top: 1px solid #e2e8ef; } body.od-wm .ins2-head h1 { font-size: 30px; } }
body.od-wm .ins2-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
body.od-wm .ins2-tabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: #e9edf2; }
body.od-wm .ins2-tabs button { height: 32px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; font: 500 13px var(--wm-font); color: #5a6b7d; cursor: pointer; }
body.od-wm .ins2-tabs button span { color: #8a99a8; margin-left: 4px; font-variant-numeric: tabular-nums; }
body.od-wm .ins2-tabs button.is-on { background: #fff; color: #0f2236; box-shadow: 0 0 0 1px #e2e8ef, 0 1px 2px rgba(15, 34, 54, .06); }
body.od-wm .ins2-find { display: flex; align-items: center; gap: 10px; width: 280px; max-width: 100%; height: 44px; padding: 0 14px; border-radius: 12px; background: #fff; border: 1px solid #e2e8ef; color: #8a99a8; margin: 0; }
body.od-wm .ins2-find input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font: 400 15px var(--wm-font); color: #0f2236; }
body.od-wm .ins2-find:focus-within { border-color: #1273c4; box-shadow: 0 0 0 3px rgba(18, 115, 196, .14); }
body.od-wm .ins2-flush { overflow: hidden; }
body.od-wm .ins2-table-wrap { overflow-x: auto; }
body.od-wm .ins2-table { width: 100%; border-collapse: collapse; }
body.od-wm .ins2-table th { padding: 10px 24px; background: #f4f7fa; border-bottom: 1px solid #e2e8ef; text-align: left; font-size: 12px; font-weight: 400; letter-spacing: .1px; color: #5a6b7d; white-space: nowrap; }
body.od-wm .ins2-table td { padding: 14px 24px; border-top: 1px solid #e2e8ef; font-size: 15px; line-height: 1.45; color: #0f2236; vertical-align: middle; }
body.od-wm .ins2-table tbody tr:first-child td { border-top: 0; }
body.od-wm .ins2-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
body.od-wm .ins2-table tbody tr { cursor: pointer; }
body.od-wm .ins2-table tbody tr:hover td { background: #fafbfc; }
body.od-wm .ins2-table tbody tr.is-sel td { background: #f4f7fa; }
body.od-wm .ins2-table tbody tr[hidden] { display: none; }
body.od-wm .ins2-table strong { font-weight: 500; }
body.od-wm .ins2-dim { color: #5a6b7d !important; }
body.od-wm .ins2-sub { display: block; font-size: 12px; letter-spacing: .1px; color: #8a99a8; margin-top: 2px; }
body.od-wm .ins2-mono { font: 13px/1.6 "Geist Mono", var(--wm-mono); color: #0f2236; text-decoration: none; }
body.od-wm a.ins2-mono:hover { color: #1273c4; }
body.od-wm .ins2-none { margin: 0; padding: 28px 24px; text-align: center; font-size: 14px; color: #5a6b7d; }
body.od-wm .ins2-body { margin: 0; font-size: 15px; line-height: 1.55; color: #0f2236; }
body.od-wm .ins2-dl { margin: 0; display: flex; flex-direction: column; gap: 8px; }
body.od-wm .ins2-dl > div { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
body.od-wm .ins2-dl dt { color: #5a6b7d; }
body.od-wm .ins2-dl dd { margin: 0; font-weight: 500; color: #0f2236; text-align: right; overflow-wrap: anywhere; }
body.od-wm .ins2-hint { margin: 0; font-size: 12px; line-height: 1.5; color: #8a99a8; }
body.od-wm .ins2-pill.is-dim { background: #f4f7fa; color: #5a6b7d; }
@media (max-width: 760px) { body.od-wm .ins2-find { width: 100%; } body.od-wm .ins2-table th, body.od-wm .ins2-table td { padding-left: 16px; padding-right: 16px; } }
body.od-wm .ins2-table .ins2-mono { white-space: nowrap; }

/* Classic insurance pages inside the new back-office shell (policy sub-pages, products, customers,
   agents, reports, setup): the Figma look via CSS only; their forms and actions are unchanged. */
body.od-wm:has(.ins2-nav) .wm-admin-wrap:not(.ins2-page) { display: flex; flex-direction: column; gap: 20px; }
body.od-wm:has(.ins2-nav) .wm-admin-wrap > .wm-card-panel,
body.od-wm:has(.ins2-nav) .wm-admin-wrap .wm-card-panel { margin: 0; background: #fff; border: 1px solid #e2e8ef !important; border-left-width: 1px !important; border-top-width: 1px !important; border-radius: 16px; box-shadow: none; padding: 22px 24px; }
body.od-wm:has(.ins2-nav) .wm-sec-head { margin-bottom: 0 !important; align-items: flex-end !important; }
body.od-wm:has(.ins2-nav) .wm-admin-wrap > .wm-sec-head h2 { font-size: 32px !important; font-weight: 600; letter-spacing: -.8px; line-height: 1.15; color: #0f2236; }
body.od-wm:has(.ins2-nav) .wm-card-panel .wm-sec-head h2, body.od-wm:has(.ins2-nav) .wm-card-panel h2 { font-size: 20px !important; font-weight: 600; letter-spacing: -.2px; color: #0f2236; }
body.od-wm:has(.ins2-nav) .wm-kicker { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 500; color: #8a99a8; }
body.od-wm:has(.ins2-nav) .wm-sub { font-size: 14px; color: #5a6b7d; }
body.od-wm:has(.ins2-nav) .ins-table { border-collapse: collapse; }
body.od-wm:has(.ins2-nav) .ins-table th { background: #f4f7fa; text-transform: none; letter-spacing: .1px; font-size: 12px; font-weight: 400; color: #5a6b7d; padding: 10px 14px; border-bottom: 1px solid #e2e8ef; border-top: 1px solid #e2e8ef; }
body.od-wm:has(.ins2-nav) .ins-table td { padding: 13px 14px; font-size: 14px; color: #0f2236; border-bottom: 1px solid #e2e8ef; }
body.od-wm:has(.ins2-nav) .ins-table tr:hover td { background: #fafbfc; }
body.od-wm:has(.ins2-nav) .wm-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border: 0; border-radius: 999px; font-size: 12.5px; font-weight: 500; text-transform: none; letter-spacing: 0; background: #f4f7fa; color: #5a6b7d; }
body.od-wm:has(.ins2-nav) .wm-chip::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: currentColor; }
body.od-wm:has(.ins2-nav) .wm-chip > i { display: none; }
body.od-wm:has(.ins2-nav) .wm-chip-ok { background: #e6f5ee; color: #149c6b; }
body.od-wm:has(.ins2-nav) .wm-chip-bad { background: #fbebe8; color: #d0422f; }
body.od-wm:has(.ins2-nav) .wm-chip-violet { background: #e8f3fc; color: #1273c4; }
body.od-wm:has(.ins2-nav) .wm-admin-wrap .wm-btn > i { font-size: .9em; }
body.od-wm:has(.ins2-nav) .wm-admin-wrap .wm-btn { border-radius: 10px; }
body.od-wm:has(.ins2-nav) .wm-admin-wrap .wm-empty { color: #5a6b7d; }
body.od-wm:has(.ins2-nav) .wm-admin-wrap .wm-empty > i { display: none; }
body.od-wm .ins2-crumb { font-size: 13px; color: #8a99a8; margin-bottom: 6px; }
body.od-wm .ins2-crumb a { color: #8a99a8; text-decoration: none; }
body.od-wm .ins2-crumb a:hover { color: #1273c4; }

/* Trial balance and integrations bits */
body.od-wm .ins2-period { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin: 0; }
body.od-wm .ins2-period label, body.od-wm .ins2-inline-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; color: #0f2236; margin: 0; }
body.od-wm .ins2-period input, body.od-wm .ins2-inline-form select, body.od-wm .ins2-inline-form input { height: 44px; min-width: 190px; padding: 0 12px; border: 1px solid #e2e8ef; border-radius: 12px; background: #fff; font: 400 15px var(--wm-font); color: #0f2236; }
body.od-wm .ins2-period .ins2-btn, body.od-wm .ins2-inline-form .ins2-btn { height: 44px; }
body.od-wm .ins2-static tbody tr { cursor: default; }
body.od-wm .ins2-table tfoot td { padding: 14px 24px; background: #f4f7fa; border-top: 1px solid #e2e8ef; font-size: 15px; }
body.od-wm .ins2-url { max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: "Geist Mono", var(--wm-mono); }
body.od-wm .ins2-niid { padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; }
body.od-wm .ins2-niid-top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
body.od-wm .ins2-niid-top .ins2-prod-ico { width: 48px; height: 48px; border-radius: 12px; }
body.od-wm .ins2-niid-text { flex: 1; min-width: 260px; }
body.od-wm .ins2-niid-text h2 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -.2px; color: #0f2236; }
body.od-wm .ins2-niid-text p { margin: 4px 0 0; font-size: 15px; line-height: 1.55; color: #5a6b7d; }
body.od-wm .ins2-niid-form summary { cursor: pointer; font-size: 14px; font-weight: 500; color: #1273c4; }
body.od-wm .ins2-niid-form summary span { color: #8a99a8; font-weight: 400; margin-left: 8px; }
body.od-wm .ins2-inline-form { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin: 14px 0 0; }

/* Insurance · one policy's pages (Figma "Insurance · Policy ledger", 37:440) */
body.od-wm .ins2-page > .ins2-crumb { margin-bottom: -18px; }
body.od-wm .ins2-pno { font-family: inherit; letter-spacing: -1.2px; overflow-wrap: anywhere; }
body.od-wm .ins2-ptabs { display: flex; gap: 24px; border-bottom: 1px solid #e2e8ef; margin-top: -4px; overflow-x: auto; scrollbar-width: none; }
body.od-wm .ins2-ptabs::-webkit-scrollbar { display: none; }
body.od-wm .ins2-ptabs a { padding: 0 0 12px; margin-bottom: -1px; border-bottom: 2px solid transparent; font-size: 15px; color: #5a6b7d; text-decoration: none; white-space: nowrap; }
body.od-wm .ins2-ptabs a:hover { color: #0f2236; }
body.od-wm .ins2-ptabs a.is-on { color: #1273c4; border-bottom-color: #1273c4; font-weight: 500; }
body.od-wm .ins2-ptabs a:focus-visible { outline: 2px solid #1273c4; outline-offset: 2px; border-radius: 4px; }
body.od-wm .ins2-table tfoot .ins2-total td { background: #f4f7fa; border-top: 1px solid #e2e8ef; font-weight: 500; }
body.od-wm .ins2-table td.ins2-muted { font-size: 15px; font-weight: 400; }
body.od-wm .ins2-table tr.is-reversed td { opacity: .55; text-decoration: line-through; }
body.od-wm .ins2-btn.ins2-btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
body.od-wm .ins2-btn.ins2-danger { color: #d0422f; }
body.od-wm .ins2-btn.ins2-danger:hover { background: #fbebe8; color: #d0422f; }
body.od-wm .ins2-banner { margin: 0; padding: 14px 16px; border-radius: 12px; background: #e8f3fc; color: #1273c4; font-size: 14px; line-height: 1.5; }
@media (max-width: 760px) { body.od-wm .ins2-phead .ins2-actions { width: 100%; flex-wrap: wrap; } }
