:root {
    --ink: #182230;
    --muted: #718093;
    --muted-strong: #526174;
    --line: #e7ebf0;
    --canvas: #f7f9fc;
    --surface: #ffffff;
    --sidebar: #172433;
    --sidebar-muted: #9eacbc;
    --blue: #3478f6;
    --blue-dark: #1d5fd5;
    --blue-soft: #eaf2ff;
    --violet: #8068e8;
    --violet-soft: #f1edff;
    --amber: #e7a63c;
    --amber-soft: #fff5df;
    --green: #39a878;
    --green-soft: #e9f8f1;
    --shadow: 0 10px 30px rgba(31, 53, 79, .055);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-size: 14px; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; display: flex; }
.sidebar { width: 252px; flex: 0 0 252px; background: var(--sidebar); color: white; display: flex; flex-direction: column; min-height: 100vh; padding: 25px 15px 16px; }
.brand-lockup { display: flex; align-items: center; gap: 11px; padding: 0 10px 28px; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; color: white; border-radius: 10px; font-size: 11px; font-weight: 800; letter-spacing: -.04em; background: linear-gradient(135deg, #6aa8ff, #4578e8); box-shadow: 0 6px 14px rgba(52, 120, 246, .27); }
.brand-name { font-weight: 750; font-size: 14px; letter-spacing: -.02em; }
.brand-subtitle { color: #8493a5; font-size: 11px; margin-top: 3px; }
.workspace-chip { margin: 0 3px 26px; border: 1px solid rgba(255,255,255,.09); background: rgba(255,255,255,.055); border-radius: 9px; padding: 10px 11px; display: flex; align-items: center; gap: 8px; color: #d4dce7; font-size: 12px; }
.status-dot { width: 7px; height: 7px; border-radius: 99px; display: inline-block; }.status-dot--amber { background: #efb84d; box-shadow: 0 0 0 3px rgba(239,184,77,.12); }.status-dot--green { background: #58c18e; box-shadow: 0 0 0 3px rgba(88,193,142,.12); }.workspace-chip-copy { min-width: 0; }.workspace-chip-copy small, .workspace-chip-copy strong { display: block; }.workspace-chip-copy small { color: #7e91a6; font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }.workspace-chip-copy strong { margin-top: 3px; color: #e0e8f0; font-size: 11px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-label { color: #6f8195; text-transform: uppercase; letter-spacing: .1em; font-size: 10px; font-weight: 750; padding: 0 11px 9px; }.nav-label--secondary { margin-top: 28px; }
.sidebar-nav { flex: 1; }.nav-item { min-height: 41px; display: flex; align-items: center; gap: 11px; padding: 0 11px; margin: 2px 0; border-radius: 8px; color: var(--sidebar-muted); font-size: 13px; transition: background .15s, color .15s; }.nav-item:hover { background: rgba(255,255,255,.065); color: #e9eef5; }.nav-item.is-active { color: white; background: #2a5fbd; box-shadow: inset 3px 0 0 #76aaff; }.nav-item.is-disabled { opacity: .54; cursor: default; }.nav-item.is-disabled:hover { background: transparent; }.nav-icon { width: 18px; text-align: center; font-size: 17px; font-weight: 400; }.nav-soon { margin-left: auto; color: #7c8fa4; font-size: 9px; text-transform: uppercase; letter-spacing: .07em; }
.sidebar-footer { padding-top: 20px; }.support-card { border: 1px solid rgba(255,255,255,.08); border-radius: 10px; padding: 11px; display: flex; align-items: center; gap: 9px; color: #c5d1de; }.support-icon { border-radius: 7px; width: 25px; height: 25px; display: grid; place-items: center; color: #96baff; background: rgba(52,120,246,.18); font-weight: 700; }.support-card strong, .support-card span { display: block; }.support-card strong { font-size: 11px; }.support-card span { color: #7e91a6; font-size: 10px; margin-top: 3px; }.sidebar-user { display: flex; align-items: center; gap: 9px; padding: 19px 7px 0; }.avatar { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: #2a5fbd; background: #dceaff; font-weight: 750; font-size: 12px; }.avatar--small { width: 27px; height: 27px; font-size: 11px; }.sidebar-user-copy { min-width: 0; }.sidebar-user-copy strong, .sidebar-user-copy span { display: block; }.sidebar-user-copy strong { color: #d9e2ec; font-size: 11px; }.sidebar-user-copy span { color: #728499; font-size: 10px; margin-top: 2px; }.sidebar-user-menu { margin-left: auto; color: #728499; letter-spacing: 2px; }
.main-content { min-width: 0; flex: 1; }.topbar { height: 72px; padding: 0 44px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.76); }.breadcrumb { display: flex; gap: 11px; align-items: center; color: #97a3b1; font-size: 12px; }.breadcrumb strong { color: var(--muted-strong); font-weight: 650; }.breadcrumb-divider { color: #c6ced8; }.topbar-domain { color: #6d8fd8; background: #eef4ff; border-radius: 20px; padding: 4px 8px; font-size: 10px; font-weight: 700; }.topbar-actions { display: flex; align-items: center; gap: 8px; }.icon-button { border: 0; background: transparent; color: #6f7f90; min-width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; font-size: 18px; position: relative; }.icon-button:hover { background: #f0f3f7; color: var(--ink); }.notification-button { font-size: 20px; }.notification-dot { width: 5px; height: 5px; background: #ef786e; border: 1px solid white; border-radius: 50%; position: absolute; top: 7px; right: 7px; }.topbar-divider { height: 25px; width: 1px; background: var(--line); margin: 0 11px; }.topbar-user { display: flex; align-items: center; gap: 9px; color: var(--muted-strong); font-size: 12px; }.topbar-chevron { color: #9ba6b2; font-size: 15px; }.mobile-menu { display: none; }
.page-wrap { max-width: 1400px; margin: 0 auto; padding: 39px 44px 30px; }.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 29px; }.page-heading--dashboard { align-items: center; }.eyebrow { color: var(--blue); text-transform: uppercase; letter-spacing: .11em; font-size: 10px; font-weight: 800; margin-bottom: 9px; }.page-heading h1 { margin: 0; font-size: 28px; line-height: 1.15; letter-spacing: -.045em; font-weight: 760; color: #1d2a39; }.heading-wave { color: #7aa4f7; font-size: 21px; vertical-align: 2px; }.page-lead { margin: 9px 0 0; color: var(--muted); font-size: 13px; }.button { border: 0; border-radius: 7px; min-height: 38px; padding: 0 15px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-size: 12px; font-weight: 700; transition: transform .12s, background .15s, box-shadow .15s; }.button:hover:not(:disabled) { transform: translateY(-1px); }.button--primary { color: white; background: var(--blue); box-shadow: 0 5px 12px rgba(52,120,246,.2); }.button--primary:hover:not(:disabled) { background: var(--blue-dark); }.button--secondary { color: #376ecf; background: var(--blue-soft); }.button:disabled { opacity: .55; cursor: not-allowed; }
.callout { min-height: 67px; padding: 13px 16px; margin-bottom: 25px; display: flex; align-items: center; gap: 12px; border-radius: 9px; border: 1px solid #dce9ff; background: #f0f6ff; color: #3d6cae; }.callout-icon { width: 31px; height: 31px; display: grid; place-items: center; flex: 0 0 auto; color: #538bf0; background: #dae9ff; border-radius: 8px; font-size: 19px; }.callout strong, .callout span { display: block; }.callout strong { color: #285da8; font-size: 12px; }.callout span { color: #6e8fbe; margin-top: 4px; font-size: 11px; }.callout-link { margin-left: auto; color: #3776da; font-size: 11px; font-weight: 750; white-space: nowrap; }.callout-link span { display: inline; color: inherit; margin: 0; font-size: 14px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 36px; }.metric-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 17px 18px 16px; position: relative; overflow: hidden; }.metric-card::after { content: ''; width: 58px; height: 58px; border-radius: 50%; position: absolute; right: -22px; bottom: -23px; opacity: .6; }.metric-card--blue::after { background: var(--blue-soft); }.metric-card--violet::after { background: var(--violet-soft); }.metric-card--amber::after { background: var(--amber-soft); }.metric-card--green::after { background: var(--green-soft); }.metric-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 11px; }.metric-icon { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 7px; font-size: 14px; }.metric-card--blue .metric-icon { color: var(--blue); background: var(--blue-soft); }.metric-card--violet .metric-icon { color: var(--violet); background: var(--violet-soft); }.metric-card--amber .metric-icon { color: var(--amber); background: var(--amber-soft); }.metric-card--green .metric-icon { color: var(--green); background: var(--green-soft); }.metric-value { margin-top: 16px; color: #1b2b3d; font-size: 26px; font-weight: 760; letter-spacing: -.045em; }.metric-detail { margin-top: 3px; color: #99a4b1; font-size: 10px; }
.section-heading { margin-bottom: 13px; }.section-heading h2, .panel-heading h2 { margin: 0; font-size: 14px; letter-spacing: -.02em; color: #263548; }.section-heading p, .panel-heading p { margin: 5px 0 0; color: #8d99a7; font-size: 11px; }.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 35px; }.quick-card { min-height: 74px; display: flex; align-items: center; gap: 11px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 9px; background: white; box-shadow: var(--shadow); transition: transform .12s, border .15s; }.quick-card:hover { transform: translateY(-2px); border-color: #cbdcff; }.quick-card--disabled { opacity: .62; cursor: default; }.quick-card--disabled:hover { transform: none; border-color: var(--line); }.quick-icon { width: 35px; height: 35px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; font-size: 18px; }.quick-icon--blue { color: var(--blue); background: var(--blue-soft); }.quick-icon--violet { color: var(--violet); background: var(--violet-soft); }.quick-icon--amber { color: var(--amber); background: var(--amber-soft); }.quick-card strong, .quick-card small { display: block; }.quick-card strong { color: #334357; font-size: 11px; }.quick-card small { color: #96a0ad; margin-top: 4px; font-size: 10px; }.quick-arrow { margin-left: auto; color: #9eb3d4; font-size: 18px; }.dashboard-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }.panel { background: white; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }.panel-heading { min-height: 64px; padding: 17px 19px; display: flex; align-items: flex-start; justify-content: space-between; border-bottom: 1px solid #f0f2f5; }.panel-count, .table-meta { color: #7e8c9c; background: #f3f5f8; border-radius: 20px; padding: 4px 9px; font-size: 10px; }.text-link { color: #5485dc; font-size: 11px; font-weight: 700; }.text-link span { font-size: 15px; vertical-align: -1px; }.empty-state { min-height: 247px; padding: 34px 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }.empty-state--compact { min-height: 198px; }.empty-icon { width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 12px; color: var(--green); background: var(--green-soft); border-radius: 50%; font-size: 18px; }.empty-icon--muted { color: #8fa0b3; background: #f0f3f6; }.empty-icon--large { width: 50px; height: 50px; font-size: 23px; color: #7097e4; background: var(--blue-soft); }.empty-state strong { color: #455469; font-size: 12px; }.empty-state span { max-width: 290px; margin-top: 6px; color: #a0aab6; font-size: 11px; line-height: 1.5; }.empty-state .button { margin-top: 18px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 13px; margin-bottom: 18px; }.search-field { min-width: 250px; display: flex; align-items: center; gap: 9px; color: #9ba8b7; padding: 0 9px; }.search-field input { border: 0; outline: 0; color: var(--ink); width: 100%; font-size: 12px; }.search-field input::placeholder { color: #adb7c2; }.toolbar-actions { display: flex; gap: 8px; }.filter-button { border: 1px solid var(--line); background: #fff; border-radius: 6px; min-height: 32px; padding: 0 10px; color: #667589; font-size: 11px; }.filter-button span { color: #a3afbc; margin-left: 10px; }.icon-button--bordered { border: 1px solid var(--line); min-height: 32px; }.table-panel { overflow: hidden; }.table-scroll { overflow-x: auto; }.data-table { width: 100%; border-collapse: collapse; font-size: 12px; }.data-table th { text-align: left; color: #96a1ae; background: #fafbfd; font-weight: 650; font-size: 10px; text-transform: uppercase; letter-spacing: .07em; padding: 12px 19px; border-bottom: 1px solid var(--line); }.data-table td { padding: 14px 19px; color: #748294; border-bottom: 1px solid #f1f3f6; }.data-table td strong { color: #35465a; font-weight: 650; }.status-badge { display: inline-flex; border-radius: 20px; padding: 4px 8px; font-size: 10px; font-weight: 700; }.status-badge--green { color: #2b9366; background: var(--green-soft); }.connection-banner { display: flex; align-items: center; gap: 12px; min-height: 65px; padding: 12px 16px; border-radius: 9px; margin-bottom: 18px; border: 1px solid; }.connection-banner--warning { color: #a7731d; border-color: #f4dfad; background: #fffaf0; }.connection-banner--success { color: #2f9169; border-color: #c7eddb; background: #f0fbf6; }.connection-banner--danger { color: #c05f57; border-color: #f2d0cd; background: #fff7f6; }.connection-status-icon { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: rgba(255,255,255,.68); font-weight: 800; }.connection-banner strong, .connection-banner span { display: block; }.connection-banner strong { font-size: 12px; }.connection-banner span { margin-top: 3px; font-size: 11px; opacity: .76; }.connection-label { margin-left: auto; font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }.mailbox-summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }.summary-card { padding: 16px 18px; background: white; border: 1px solid var(--line); border-radius: 9px; box-shadow: var(--shadow); }.summary-label, .summary-note { display: block; color: #8996a5; font-size: 11px; }.summary-card strong { display: block; color: #23354a; font-size: 24px; margin: 10px 0 3px; letter-spacing: -.04em; }.summary-note { color: #a9b2bd; font-size: 10px; }
.app-footer { padding: 0 44px 22px; display: flex; justify-content: space-between; color: #a4afba; font-size: 10px; }.mobile-scrim { display: none; }
.logout-form { margin-left: auto; }.step-pill { padding: 5px 9px; color: #6b8dc8; background: #eef4ff; border-radius: 20px; font-size: 10px; font-weight: 700; }.form-panel { overflow: hidden; }.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; padding: 25px 20px 20px; }.form-section-label { grid-column: 1 / -1; margin-bottom: -5px; color: #6d7c8e; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }.form-section-label--spaced { padding-top: 5px; border-top: 1px solid #eef1f4; margin-top: 4px; padding-bottom: 2px; }.field label { display: block; margin-bottom: 7px; color: #526174; font-size: 11px; font-weight: 700; }.field label em { color: #d77870; font-style: normal; }.field input { width: 100%; height: 39px; border: 1px solid #dfe5ec; background: #fbfcfd; border-radius: 6px; padding: 0 11px; outline: 0; color: #344456; font-size: 12px; }.field input:focus { border-color: #76a6f4; box-shadow: 0 0 0 3px rgba(52,120,246,.1); }.field input::placeholder { color: #aeb8c2; }.form-alert--wide { margin: 20px 20px 0; }.form-note { grid-column: 1 / -1; display: flex; gap: 8px; align-items: flex-start; margin-top: 2px; padding: 11px 12px; border: 1px solid #e4ebf5; border-radius: 7px; color: #7c8ea4; background: #f7faff; font-size: 10px; line-height: 1.5; }.form-note span:first-child { color: #6b96e7; font-size: 15px; line-height: 12px; }.form-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; padding-top: 3px; }.search-submit { border: 0; background: var(--blue-soft); color: #4278d0; border-radius: 5px; padding: 6px 10px; font-size: 10px; font-weight: 700; }.filter-button.is-selected { color: #3c75d7; background: #eef4ff; border-color: #d4e3ff; }.table-subtext { display: block; margin-top: 3px; color: #a4aeba; font-size: 10px; }.status-badge--gray { color: #708092; background: #eef1f4; }.row-action { color: #5f8bd8; font-size: 11px; font-weight: 700; }.audit-list { padding: 3px 19px; }.audit-item { display: flex; align-items: center; gap: 11px; min-height: 63px; border-bottom: 1px solid #f0f2f5; }.audit-item:last-child { border-bottom: 0; }.audit-icon { width: 26px; height: 26px; display: grid; place-items: center; color: #3aa275; background: #e9f8f1; border-radius: 50%; font-size: 13px; }.audit-copy { flex: 1; }.audit-copy strong, .audit-copy span { display: block; }.audit-copy strong { color: #455468; font-size: 11px; }.audit-copy span { margin-top: 4px; color: #9aa6b3; font-size: 10px; }.audit-item time { color: #a0abb7; font-size: 10px; }
.table-person-link { display: block; }.table-person-link:hover strong { color: var(--blue); }.row-action:hover { color: var(--blue-dark); }.record-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px; margin-bottom: 18px; }.record-identity { display: flex; align-items: center; gap: 13px; }.record-avatar { width: 47px; height: 47px; display: grid; place-items: center; border-radius: 13px; color: #4675cc; background: #eaf2ff; font-size: 13px; font-weight: 800; }.record-identity h2 { margin: 0; color: #2a3c51; font-size: 17px; }.record-identity p { margin: 5px 0 0; color: #9aa6b3; font-size: 11px; }.record-status { display: flex; align-items: center; gap: 16px; }.text-button { border: 0; background: transparent; font-size: 11px; font-weight: 700; }.text-button--danger { color: #c66a62; }.record-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }.record-panel { min-width: 0; overflow: hidden; }.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 16px; padding: 21px 19px; }.detail-grid span, .detail-grid strong { display: block; }.detail-grid span { margin-bottom: 6px; color: #9aa6b3; font-size: 10px; }.detail-grid strong { color: #44556a; font-size: 12px; font-weight: 650; }.record-empty { min-height: 160px; padding: 26px 20px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; color: #94a0ae; font-size: 11px; }.record-empty strong { color: #536276; font-size: 11px; }.record-empty span { max-width: 260px; margin-top: 6px; line-height: 1.5; }.record-empty .empty-icon { margin-bottom: 9px; }.history-list { padding: 10px 19px 15px; }.history-item { display: flex; gap: 11px; padding: 12px 0; border-bottom: 1px solid #f0f2f5; }.history-item:last-child { border-bottom: 0; }.history-marker { width: 8px; height: 8px; margin-top: 4px; flex: 0 0 auto; border-radius: 50%; background: #6e9bef; box-shadow: 0 0 0 4px #eaf2ff; }.history-item strong, .history-item span { display: block; }.history-item strong { color: #536276; font-size: 11px; }.history-item span { margin-top: 4px; color: #9aa6b3; font-size: 10px; }.page-state { min-height: 380px; background: white; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
 .inline-assign-form { display: flex; align-items: center; gap: 6px; min-width: 265px; }.inline-assign-form select { min-height: 31px; max-width: 180px; border: 1px solid #dfe5ec; border-radius: 5px; color: #526174; background: #fbfcfd; padding: 0 7px; font-size: 10px; }.button--small { min-height: 31px; padding: 0 9px; font-size: 10px; }.mailbox-alert { margin: -2px 0 18px; }.row-action--quiet { color: #8996a5; font-weight: 600; }.assigned-mailboxes { padding: 9px 19px 13px; }.assigned-mailbox { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid #f0f2f5; }.assigned-mailbox:last-child { border-bottom: 0; }.mailbox-icon { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 8px; color: #6d8fd8; background: #eef4ff; }.assigned-mailbox strong, .assigned-mailbox span { display: block; }.assigned-mailbox strong { color: #4d5d71; font-size: 11px; }.assigned-mailbox span { margin-top: 3px; color: #9aa6b3; font-size: 10px; text-transform: capitalize; }.text-button--success { color: #32916a; }
@media (max-width: 1050px) { .sidebar { width: 220px; flex-basis: 220px; }.topbar, .page-wrap { padding-left: 28px; padding-right: 28px; }.app-footer { padding-left: 28px; padding-right: 28px; }.metric-grid { grid-template-columns: repeat(2, 1fr); }.health-grid, .mailbox-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .sidebar { position: fixed; z-index: 20; left: 0; top: 0; bottom: 0; transform: translateX(-102%); transition: transform .2s; box-shadow: 15px 0 35px rgba(16,33,53,.2); }.sidebar.is-open { transform: translateX(0); }.mobile-scrim { position: fixed; inset: 0; z-index: 19; background: rgba(16,28,43,.38); }.mobile-scrim.is-visible { display: block; }.mobile-menu { display: grid; margin-right: 10px; }.topbar { height: 62px; padding: 0 18px; justify-content: flex-start; }.topbar-actions { margin-left: auto; }.topbar-user-name, .topbar-chevron, .topbar-divider { display: none; }.page-wrap { padding: 28px 18px 24px; }.page-heading, .page-heading--dashboard { align-items: flex-start; flex-direction: column; margin-bottom: 24px; }.heading-actions { width: 100%; }.heading-actions .button { width: 100%; }.metric-grid, .quick-grid, .dashboard-columns, .mailbox-summary-grid, .record-grid, .management-grid { grid-template-columns: 1fr; }.record-header { align-items: flex-start; flex-direction: column; }.record-status { width: 100%; justify-content: space-between; }.status-change-form { align-items: stretch; flex-direction: column; }.status-change-form .button { width: 100%; }.detail-grid { gap: 16px 10px; }.metric-grid { gap: 10px; margin-bottom: 29px; }.quick-grid { gap: 9px; }.toolbar { align-items: stretch; flex-direction: column; }.search-field { min-height: 32px; min-width: 0; }.toolbar-actions { overflow-x: auto; }.connection-banner { align-items: flex-start; }.connection-label { display: none; }.app-footer { padding: 0 18px 18px; gap: 10px; flex-direction: column; }.breadcrumb span:first-child, .breadcrumb-divider { display: none; }.form-grid { grid-template-columns: 1fr; padding: 20px 16px 17px; }.form-section-label, .form-note, .form-actions { grid-column: 1; }.form-actions { justify-content: stretch; }.form-actions .button { flex: 1; }.control-row { align-items: flex-start; flex-direction: column; padding: 15px 0; }.control-row form, .control-row form .button { width: 100%; } }
.form-alert { display: flex; align-items: center; gap: 8px; padding: 10px 11px; margin: 0 0 18px; border-radius: 7px; font-size: 11px; }.form-alert--danger { color: #a85a54; background: #fff1f0; border: 1px solid #f4d5d2; }.form-alert--success { color: #2d8b65; background: #eefaf4; border: 1px solid #ccebdc; }.form-alert span { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; color: white; background: #d87970; font-weight: 800; }.form-alert--success span { background: #3aa275; }.field--wide { grid-column: 1 / -1; }.data-table tr.is-assigned { background: #fafbfc; opacity: .68; }.data-table tr.is-assigned:hover { opacity: .82; }
.management-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }.management-panel { min-width: 0; overflow: hidden; }.mailbox-record-header { margin-bottom: 18px; }.control-list { padding: 5px 19px 12px; }.control-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 75px; border-bottom: 1px solid #f0f2f5; }.control-row:last-child { border-bottom: 0; }.control-row strong, .control-row span { display: block; }.control-row strong { color: #4a5b70; font-size: 11px; }.control-row span { max-width: 270px; margin-top: 5px; color: #9aa6b3; font-size: 10px; line-height: 1.45; }.button--quiet-danger { color: #ad625c; background: #fff1f0; }.button--quiet-danger:hover:not(:disabled) { background: #fce1df; }.form-grid--compact { padding-top: 21px; }.management-panel .form-actions .button { width: 100%; }.data-table .row-action span { font-size: 14px; vertical-align: -1px; }
.field select, .field textarea { width: 100%; border: 1px solid #dfe5ec; background: #fbfcfd; border-radius: 6px; padding: 9px 11px; outline: 0; color: #344456; font-size: 12px; }.field select { height: 39px; }.field textarea { min-height: 105px; resize: vertical; line-height: 1.5; }.field select:focus, .field textarea:focus { border-color: #76a6f4; box-shadow: 0 0 0 3px rgba(52,120,246,.1); }.field-help { display: block; margin-top: 6px; color: #9aa6b3; font-size: 10px; }.form-note--inline { grid-column: auto; margin: 0; }.managed-domain-card { display: flex; flex-direction: column; gap: 4px; padding: 13px 14px; border: 1px solid #dce9ff; border-radius: 8px; background: #f4f8ff; }.managed-domain-card span { color: #6f88ac; font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .07em; }.managed-domain-card strong { color: #2f63b4; font-size: 18px; letter-spacing: -.03em; }.managed-domain-card small { color: #7f9ac2; font-size: 10px; }
.notes-panel { margin-bottom: 16px; overflow: hidden; }.notes-content { padding: 20px; color: #56667a; font-size: 12px; line-height: 1.65; white-space: normal; }.record-status form { margin: 0; }.assigned-mailbox .row-action { margin-left: auto; white-space: nowrap; }.mailbox-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }.mailbox-stat { min-width: 0; padding: 14px 16px; border: 1px solid #e8edf3; border-radius: 9px; background: #fff; }.mailbox-stat strong, .mailbox-stat span { display: block; }.mailbox-stat strong { overflow: hidden; color: #30445c; font-size: 15px; font-weight: 760; text-overflow: ellipsis; white-space: nowrap; }.mailbox-stat span { margin-top: 5px; color: #8c99a7; font-size: 10px; }.mailbox-stat--good { background: #f4fbf7; border-color: #dcefe4; }.mailbox-stat--good strong { color: #2c9669; }.mailbox-stat--muted { background: #f7f9fb; }.mailbox-stat--muted strong { color: #718093; }.mailbox-assignment-panel { margin-top: 16px; padding-bottom: 18px; }.mailbox-assignment-panel form { padding: 0 19px; }
.status-change-panel { margin-bottom: 18px; overflow: hidden; }.status-change-form { display: flex; align-items: flex-end; gap: 14px; padding: 20px; }.status-change-form .field { flex: 1; }.status-change-form select { width: 100%; height: 39px; border: 1px solid #dfe5ec; background: #fbfcfd; border-radius: 6px; padding: 0 11px; color: #344456; font-size: 12px; }.status-change-form .button { flex: 0 0 auto; min-height: 39px; }
@media (max-width: 1050px) { .health-grid, .mailbox-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .mailbox-stats { grid-template-columns: repeat(2, 1fr); } }
.mailbox-summary-grid { grid-template-columns: repeat(4, 1fr); }
.mailbox-stats-panel { margin-bottom: 16px; overflow: hidden; }.stats-error-note { display: flex; gap: 8px; align-items: center; margin: 14px 19px 0; padding: 10px 12px; border: 1px solid #f2d0cd; border-radius: 7px; color: #a85a54; background: #fff7f6; font-size: 10px; }.stats-error-note span { display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; color: #fff; background: #d87970; font-weight: 800; }.usage-progress { padding: 0 19px 17px; }.usage-progress-label { display: flex; justify-content: space-between; margin-bottom: 7px; color: #8b98a7; font-size: 10px; }.usage-progress-label strong { color: #53657a; }.usage-progress-track { height: 7px; overflow: hidden; border-radius: 99px; background: #edf1f5; }.usage-progress-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #5b9aef, #67c79a); }.quota-form { display: flex; align-items: flex-end; gap: 12px; padding: 16px 19px 19px; border-top: 1px solid #f0f2f5; }.quota-form .field { flex: 1; }.quota-form .button { flex: 0 0 auto; min-height: 39px; }.storage-cell { color: #52657b; font-size: 11px; font-weight: 650; white-space: nowrap; }.attention-list { padding: 8px 19px 14px; }.attention-item { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid #f0f2f5; }.attention-item > div:nth-child(2) { flex: 1; }.attention-item strong, .attention-item span { display: block; }.attention-item strong { color: #536276; font-size: 11px; }.attention-item span { margin-top: 4px; color: #9aa6b3; font-size: 10px; line-height: 1.4; }.attention-item b { color: #b17c27; font-size: 14px; }.attention-item-icon { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; color: #b17c27; background: #fff3d8; font-size: 11px; font-weight: 800; }.attention-link { display: block; padding-top: 13px; color: #5f8bd8; font-size: 10px; font-weight: 700; }
@media (max-width: 1050px) { .mailbox-summary-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .mailbox-summary-grid { grid-template-columns: repeat(2, 1fr); }.quota-form { align-items: stretch; flex-direction: column; }.quota-form .button { width: 100%; } }
.shared-address-grid { display: grid; grid-template-columns: minmax(320px, .9fr) minmax(0, 1.1fr); gap: 16px; }.forwarder-list { padding: 8px 19px 14px; }.forwarder-row { display: flex; align-items: center; gap: 10px; min-height: 67px; border-bottom: 1px solid #f0f2f5; }.forwarder-row:last-child { border-bottom: 0; }.forwarder-icon { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 8px; color: #6d8fd8; background: #eef4ff; }.forwarder-copy { flex: 1; min-width: 0; }.forwarder-copy strong, .forwarder-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.forwarder-copy strong { color: #4d5d71; font-size: 11px; }.forwarder-copy span { margin-top: 4px; color: #9aa6b3; font-size: 10px; }.button--danger { color: #fff; background: #c66a62; box-shadow: 0 5px 12px rgba(198,106,98,.18); }.button--danger:hover:not(:disabled) { background: #b45952; }.step-pill--danger { color: #b66059; background: #fff0ef; }.danger-copy { padding: 17px 19px; color: #8d6662; background: #fff8f7; font-size: 11px; line-height: 1.5; }.delete-form { display: flex; align-items: flex-end; gap: 12px; padding: 16px 19px 19px; }.delete-form .field { flex: 1; }.delete-form .button { min-height: 39px; }.mailbox-danger-panel { margin-top: 16px; overflow: hidden; border-color: #f0d9d6; }.mailbox-danger-panel .panel-heading { border-bottom-color: #f7e8e5; }
@media (max-width: 1050px) { .shared-address-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .delete-form { align-items: stretch; flex-direction: column; }.delete-form .button { width: 100%; } }
.archive-form { display: flex; align-items: flex-end; gap: 10px; }.archive-fields { display: flex; gap: 8px; }.archive-fields .field label { margin-bottom: 4px; font-size: 9px; }.archive-fields .field input { width: 145px; height: 32px; font-size: 10px; }.archive-form .button { min-height: 32px; white-space: nowrap; }.record-status .archive-form { margin-left: auto; }
@media (max-width: 760px) { .record-status .archive-form { width: 100%; margin-left: 0; }.archive-form { align-items: stretch; flex-direction: column; }.archive-fields { flex-direction: column; }.archive-fields .field input { width: 100%; }.archive-form .button { width: 100%; } }
html[data-theme="dark"] { color-scheme: dark; --ink: #e7eef7; --muted: #9aaabd; --muted-strong: #c5d2e0; --line: #2d3c4d; --canvas: #0f1823; --surface: #172433; --blue-soft: #1b355e; --violet-soft: #302855; --amber-soft: #4a381b; --green-soft: #173d30; --shadow: 0 12px 32px rgba(0,0,0,.2); }
html[data-theme="dark"] body { background: var(--canvas); color: var(--ink); } html[data-theme="dark"] .topbar { background: rgba(15,24,35,.92); border-color: var(--line); } html[data-theme="dark"] .breadcrumb { color: #8899ac; } html[data-theme="dark"] .breadcrumb strong, html[data-theme="dark"] .topbar-user { color: #c5d2e0; } html[data-theme="dark"] .topbar-domain { color: #9ec0ff; background: #1c3864; } html[data-theme="dark"] .icon-button { color: #a6b6c8; } html[data-theme="dark"] .icon-button:hover { color: #fff; background: #243548; } html[data-theme="dark"] .notification-dot { border-color: #172433; }
html[data-theme="dark"] .page-heading h1 { color: #f0f5fb; } html[data-theme="dark"] .page-lead { color: #9aaabd; } html[data-theme="dark"] .panel, html[data-theme="dark"] .quick-card, html[data-theme="dark"] .summary-card, html[data-theme="dark"] .metric-card, html[data-theme="dark"] .mailbox-stat, html[data-theme="dark"] .page-state { background: var(--surface); border-color: var(--line); } html[data-theme="dark"] .panel-heading { border-color: #263647; } html[data-theme="dark"] .panel-heading h2, html[data-theme="dark"] .section-heading h2 { color: #e2ebf4; } html[data-theme="dark"] .panel-heading p, html[data-theme="dark"] .section-heading p { color: #91a2b4; } html[data-theme="dark"] .quick-card strong, html[data-theme="dark"] .summary-card strong, html[data-theme="dark"] .metric-value, html[data-theme="dark"] .record-identity h2, html[data-theme="dark"] .detail-grid strong, html[data-theme="dark"] .control-row strong, html[data-theme="dark"] .assigned-mailbox strong, html[data-theme="dark"] .forwarder-copy strong { color: #e1eaf3; } html[data-theme="dark"] .quick-card small, html[data-theme="dark"] .summary-label, html[data-theme="dark"] .summary-note, html[data-theme="dark"] .metric-detail, html[data-theme="dark"] .record-identity p, html[data-theme="dark"] .detail-grid span, html[data-theme="dark"] .control-row span, html[data-theme="dark"] .assigned-mailbox span, html[data-theme="dark"] .forwarder-copy span { color: #94a6b8; }
html[data-theme="dark"] .data-table th { color: #9aabba; background: #14202d; border-color: #2a3949; } html[data-theme="dark"] .data-table td { color: #a3b2c2; border-color: #263647; } html[data-theme="dark"] .data-table td strong { color: #dbe6f0; } html[data-theme="dark"] .data-table tr.is-assigned { background: #13202d; } html[data-theme="dark"] .filter-button, html[data-theme="dark"] .field input, html[data-theme="dark"] .field select, html[data-theme="dark"] .field textarea, html[data-theme="dark"] .inline-assign-form select { color: #dce7f1; background: #111d29; border-color: #34475a; } html[data-theme="dark"] .field label { color: #b6c5d4; } html[data-theme="dark"] .field input::placeholder { color: #71859a; } html[data-theme="dark"] .button--secondary { color: #a9c8ff; background: #1b355e; } html[data-theme="dark"] .step-pill, html[data-theme="dark"] .panel-count, html[data-theme="dark"] .table-meta { color: #a8c4f2; background: #1d3454; } html[data-theme="dark"] .form-note { color: #a0b1c2; background: #142538; border-color: #2a4666; }
html[data-theme="dark"] .empty-state, html[data-theme="dark"] .record-empty { color: #9aabba; } html[data-theme="dark"] .empty-state strong, html[data-theme="dark"] .record-empty strong { color: #d5e0eb; } html[data-theme="dark"] .empty-icon--muted { background: #253342; } html[data-theme="dark"] .record-avatar, html[data-theme="dark"] .mailbox-icon, html[data-theme="dark"] .forwarder-icon { color: #a7c7ff; background: #1b355e; } html[data-theme="dark"] .history-item, html[data-theme="dark"] .assigned-mailbox, html[data-theme="dark"] .forwarder-row, html[data-theme="dark"] .control-row { border-color: #263647; } html[data-theme="dark"] .history-item strong { color: #cdd9e5; } html[data-theme="dark"] .history-item span { color: #93a5b8; } html[data-theme="dark"] .notes-content { color: #c4d1df; } html[data-theme="dark"] .mailbox-stat--muted { background: #14202d; } html[data-theme="dark"] .mailbox-stat--muted strong { color: #a9bacb; } html[data-theme="dark"] .mailbox-stat--good { background: #173d30; border-color: #285d4a; } html[data-theme="dark"] .mailbox-stat--warn { background: #4a381b; border-color: #765924; } html[data-theme="dark"] .mailbox-danger-panel { border-color: #603f3d; } html[data-theme="dark"] .danger-copy { color: #d0aaa5; background: #332221; } html[data-theme="dark"] .stats-error-note { color: #e0ada8; background: #332221; border-color: #603f3d; } html[data-theme="dark"] .usage-progress-track { background: #293746; } html[data-theme="dark"] .attention-item { border-color: #263647; }
.mailbox-health-panel { margin-bottom: 35px; overflow: hidden; }.health-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 15px 19px 18px; }.health-item { min-height: 66px; padding: 12px 13px; border-radius: 8px; background: #f8fafc; border: 1px solid #edf1f5; }.health-value, .health-label { display: block; }.health-value { color: #263a52; font-size: 20px; font-weight: 760; letter-spacing: -.04em; }.health-label { margin-top: 5px; color: #8795a5; font-size: 10px; }.health-item--good { background: #f1fbf6; border-color: #d8f0e3; }.health-item--good .health-value { color: #2c9669; }.health-item--muted .health-value { color: #718093; }.health-item--warn { background: #fffaf1; border-color: #f5e6c5; }.health-item--warn .health-value { color: #b17c27; }
@media (max-width: 1050px) { .health-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .health-grid { grid-template-columns: repeat(2, 1fr); padding-left: 14px; padding-right: 14px; } }

/* Keep the complete operations surface readable after all component styles load. */
html[data-theme="dark"] .callout { color: #b9cdec; background: #172d4e; border-color: #2b4d80; }
html[data-theme="dark"] .callout-icon { color: #a8c9ff; background: #234473; }
html[data-theme="dark"] .callout strong, html[data-theme="dark"] .callout span, html[data-theme="dark"] .callout-link { color: #b9cdec; }
html[data-theme="dark"] .health-item { background: #14202d; border-color: #2d3c4d; }
html[data-theme="dark"] .health-item--good { background: #173d30; border-color: #285d4a; }
html[data-theme="dark"] .health-item--warn { background: #4a381b; border-color: #765924; }
html[data-theme="dark"] .health-value { color: #dce7f1; }
html[data-theme="dark"] .health-item--good .health-value { color: #7ad2a7; }
html[data-theme="dark"] .health-item--muted .health-value { color: #a9bacb; }
html[data-theme="dark"] .health-item--warn .health-value { color: #f0c56c; }
html[data-theme="dark"] .health-label { color: #9aabba; }
html[data-theme="dark"] .quota-form { border-color: #263647; }
html[data-theme="dark"] .usage-progress-label { color: #9aabba; }
html[data-theme="dark"] .usage-progress-label strong { color: #c9d7e5; }
html[data-theme="dark"] .connection-banner--warning { color: #f0c56c; border-color: #765924; background: #332a19; }
html[data-theme="dark"] .connection-banner--success { color: #83d6ad; border-color: #285d4a; background: #173d30; }
html[data-theme="dark"] .connection-banner--danger { color: #efaaa2; border-color: #603f3d; background: #332221; }
html[data-theme="dark"] .managed-domain-card { color: #b9cdec; background: #172d4e; border-color: #2b4d80; }
html[data-theme="dark"] .managed-domain-card span, html[data-theme="dark"] .managed-domain-card small { color: #9ebbe6; }
html[data-theme="dark"] .managed-domain-card strong { color: #c4d9ff; }
html[data-theme="dark"] .filter-button.is-selected { color: #b9cdec; background: #1d3454; border-color: #365f9b; }
html[data-theme="dark"] .search-field input { color: #dce7f1; background: transparent; }
html[data-theme="dark"] .search-submit { color: #b9cdec; background: #1d3454; }
html[data-theme="dark"] .status-badge--gray { color: #b1c0cf; background: #2a3949; }
html[data-theme="dark"] .status-badge--green { color: #8bdfb5; background: #1b4a38; }
html[data-theme="dark"] .status-badge--red { color: #efaaa2; background: #4a2d2a; }
html[data-theme="dark"] .step-pill--danger { color: #efaaa2; background: #4a2d2a; }
html[data-theme="dark"] .button--quiet-danger { color: #efaaa2; background: #4a2d2a; }
html[data-theme="dark"] .button--quiet-danger:hover:not(:disabled) { background: #603633; }
html[data-theme="dark"] .button--danger { color: #fff; background: #b85f58; }
html[data-theme="dark"] .danger-copy { color: #d8b6b1; background: #332221; }
html[data-theme="dark"] .mailbox-danger-panel { border-color: #603f3d; }
html[data-theme="dark"] .mailbox-danger-panel .panel-heading { border-color: #4a302e; }
html[data-theme="dark"] .forwarder-row, html[data-theme="dark"] .assigned-mailbox, html[data-theme="dark"] .history-item, html[data-theme="dark"] .control-row, html[data-theme="dark"] .audit-item { border-color: #263647; }
html[data-theme="dark"] .forwarder-icon, html[data-theme="dark"] .mailbox-icon { color: #a7c7ff; background: #1b355e; }
/* Shared-address dependency context stays visible without forcing managers to read raw forwarder syntax. */
.forwarder-row { align-items: flex-start; padding: 12px 0; }
.forwarder-copy { padding-top: 1px; }
.forwarder-context { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; overflow: visible; white-space: normal; }
.forwarder-context span { display: inline-block; overflow: visible; text-overflow: clip; white-space: normal; }
.dependency-chip { padding: 3px 6px; border: 1px solid #e4ebf3; border-radius: 999px; color: #7b8b9d !important; background: #f7f9fb; font-size: 9px !important; line-height: 1.25; }
.dependency-chip--danger { color: #ad5c56 !important; border-color: #f0d3d0; background: #fff6f5; }
html[data-theme="dark"] .dependency-chip { color: #a9bacb !important; border-color: #34475a; background: #1c2c3c; }
html[data-theme="dark"] .dependency-chip--danger { color: #efaaa2 !important; border-color: #603f3d; background: #332221; }
.forwarding-dependencies-panel { margin-top: 16px; overflow: hidden; }
.dependency-list { padding: 8px 19px 14px; }
.dependency-row { display: flex; align-items: flex-start; gap: 10px; padding: 12px 0; border-bottom: 1px solid #f0f2f5; }
.dependency-row:last-child { border-bottom: 0; }
.dependency-row > div:last-child { min-width: 0; }
.dependency-row strong, .dependency-row span, .dependency-row small { display: block; }
.dependency-row strong { color: #536276; font-size: 11px; }
.dependency-row span { margin-top: 4px; color: #7e8b9a; font-size: 10px; }
.dependency-row small { margin-top: 5px; color: #9aa6b3; font-size: 9px; }
.record-empty--notice { color: #9a762d; background: #fffaf1; }
.record-empty--notice strong { color: #9a762d; }
html[data-theme="dark"] .dependency-row { border-color: #263647; }
html[data-theme="dark"] .dependency-row strong { color: #dbe6f0; }
html[data-theme="dark"] .dependency-row span, html[data-theme="dark"] .dependency-row small { color: #94a6b8; }
html[data-theme="dark"] .record-empty--notice { color: #f0c56c; background: #332a19; }
html[data-theme="dark"] .record-empty--notice strong { color: #f0c56c; }
.setup-instructions-form { display: flex; align-items: center; gap: 9px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #f0f2f5; }
.setup-instructions-form small { color: #9aa6b3; font-size: 9px; }
html[data-theme="dark"] .setup-instructions-form { border-color: #263647; }
html[data-theme="dark"] .setup-instructions-form small { color: #94a6b8; }
.setup-instructions-link { margin: 12px 19px 0; }
.setup-instructions-help { display: block; margin: 6px 19px 16px; color: #9aa6b3; font-size: 9px; }
.template-controls { overflow: hidden; }
.template-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 14px 16px; padding: 18px 19px 16px; }
.template-grid--wide { grid-column: 1 / -1; }
.template-grid .field label span { color: #9aa6b3; font-weight: 500; }
.template-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 2px; }
.template-actions .button { min-height: 35px; }
.template-state { display: inline-flex; min-height: 35px; flex-direction: column; justify-content: center; gap: 2px; padding: 6px 11px; border: 1px solid #d9e3f0; border-radius: 7px; color: #5b718f; background: #f5f8fc; font-size: 10px; line-height: 1.15; }
.template-state strong { color: #496687; font-size: 10px; font-weight: 700; }
.template-state small { color: #8091a7; font-size: 9px; }
.template-state--default { border-color: #ccebd9; background: #effaf4; }
.template-state--default strong { color: #24855b; }
.template-state--default small { color: #589879; }
.template-state--locked { border-color: #d5e3f8; background: #f0f6ff; }
.template-state--locked strong { color: #4672ae; }
.template-help { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 7px; padding: 10px 11px; border: 1px solid #e4ebf5; border-radius: 7px; color: #7c8ea4; background: #f7faff; font-size: 10px; line-height: 1.45; }
.template-help > span:first-child { color: #6b96e7; font-size: 13px; line-height: 12px; }
.compose-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.setup-composer { display: grid; gap: 14px; }
.composer-toolbar-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 15px; border: 1px solid #e4eaf1; border-radius: 10px; background: #fff; }
.composer-recipient, .composer-sender { display: flex; align-items: center; gap: 8px; min-width: 0; color: #7d8b9b; font-size: 10px; }
.composer-recipient strong, .composer-sender strong { overflow: hidden; color: #334964; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.composer-sender { justify-content: flex-end; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.composer-reply-label { padding-left: 8px; border-left: 1px solid #dfe6ee; color: #6d8ed0; }
.composer-fields { padding: 0 2px; }
.compose-editor, .compose-preview { overflow: hidden; }
.rich-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; padding: 9px 12px; border-bottom: 1px solid #edf1f5; background: #f8fafc; }
.rich-toolbar button { min-width: 29px; height: 29px; padding: 0 7px; border: 1px solid #e0e7ef; border-radius: 6px; color: #607188; background: #fff; font-size: 10px; font-weight: 700; }
.rich-toolbar button:hover { color: #2f68c6; border-color: #bcd2f6; background: #f1f6ff; }
.rich-toolbar-divider { width: 1px; height: 20px; margin: 0 3px; background: #dfe6ee; }
.rich-editor { min-height: 465px; padding: 18px 19px; outline: none; color: #43566c; background: #fff; font-size: 12px; line-height: 1.6; }
.rich-editor:focus { box-shadow: inset 0 0 0 2px rgba(52,120,246,.16); }
.rich-editor h2, .rich-editor h3, .email-preview-content h2, .email-preview-content h3 { color: #263b55; line-height: 1.25; }
.rich-editor h2, .email-preview-content h2 { margin: 1.2em 0 .55em; font-size: 17px; }
.rich-editor h3, .email-preview-content h3 { margin: 1.1em 0 .45em; font-size: 13px; }
.rich-editor p, .email-preview-content p { margin: 0 0 12px; }
.rich-editor li, .email-preview-content li { margin: 5px 0; }
.rich-editor a, .email-preview-content a { color: #2f70ed; text-decoration: underline; }
.rich-editor img, .email-preview-content img { display: block; max-width: 100%; height: auto; margin: 14px 0; border: 1px solid #e5ebf2; border-radius: 7px; }
.editor-note { display: flex; gap: 7px; padding: 11px 14px; border-top: 1px solid #edf1f5; color: #8997a7; background: #fbfcfe; font-size: 9px; line-height: 1.45; }
.editor-note span:first-child { color: #6c93da; font-size: 12px; }
.step-pill--preview { color: #2e9168; background: #edf9f3; }
.email-preview { min-height: 559px; padding: 14px; background: #eef2f7; }
.email-preview-browser { display: flex; align-items: center; gap: 5px; padding: 7px 9px; border: 1px solid #dfe5ec; border-bottom: 0; border-radius: 8px 8px 0 0; background: #f8fafc; }
.email-preview-browser > span { width: 6px; height: 6px; border-radius: 50%; background: #c3ccd8; }
.email-preview-browser small { margin-left: 5px; color: #97a3b1; font-size: 9px; }
.email-preview-card { min-height: 490px; padding: 0 22px 25px; border: 1px solid #dfe5ec; border-radius: 0 0 8px 8px; background: #fff; box-shadow: 0 8px 20px rgba(31,53,79,.06); }
.email-preview-brand { margin: 0 -22px 20px; padding: 16px 22px; border-radius: 0; color: #fff; background: #172433; font-size: 14px; font-weight: 700; }
.email-preview-subject { color: #25354a; font-size: 16px; font-weight: 700; line-height: 1.3; }
.email-preview-meta { margin: 5px 0 20px; color: #98a4b2; font-size: 9px; }
.email-preview-content { color: #43566c; font-size: 11px; line-height: 1.6; }
.composer-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 17px; border: 1px solid #e2e8ef; border-radius: 10px; background: #fff; }
.composer-footer strong, .composer-footer span { display: block; }
.composer-footer strong { color: #334964; font-size: 11px; }
.composer-footer span { margin-top: 4px; color: #8a98a8; font-size: 9px; }
.composer-footer .form-actions { margin: 0; }
html[data-theme="dark"] .composer-toolbar-row, html[data-theme="dark"] .composer-footer, html[data-theme="dark"] .rich-editor, html[data-theme="dark"] .email-preview-card { border-color: #2d3c4d; background: #172433; }
html[data-theme="dark"] .composer-recipient strong, html[data-theme="dark"] .composer-sender strong, html[data-theme="dark"] .composer-footer strong, html[data-theme="dark"] .rich-editor h2, html[data-theme="dark"] .rich-editor h3, html[data-theme="dark"] .email-preview-subject { color: #e1eaf3; }
html[data-theme="dark"] .composer-sender, html[data-theme="dark"] .composer-recipient, html[data-theme="dark"] .composer-footer span, html[data-theme="dark"] .rich-editor, html[data-theme="dark"] .email-preview-content { color: #a6b7c9; }
html[data-theme="dark"] .template-state { color: #a6b7c9; background: #142538; border-color: #2d4662; }
html[data-theme="dark"] .template-state strong { color: #c0d3e9; }
html[data-theme="dark"] .template-state small { color: #91a7bf; }
html[data-theme="dark"] .template-state--default { border-color: #2e624c; background: #153326; }
html[data-theme="dark"] .template-state--default strong { color: #84d2a9; }
html[data-theme="dark"] .template-state--default small { color: #8bbfa4; }
html[data-theme="dark"] .template-state--locked { border-color: #31577f; background: #162d48; }
html[data-theme="dark"] .template-state--locked strong { color: #9fc4f4; }
html[data-theme="dark"] .template-help { color: #a0b1c2; background: #142538; border-color: #2a4666; }
html[data-theme="dark"] .template-help > span:first-child { color: #a8c9ff; }
html[data-theme="dark"] .composer-reply-label { border-color: #34475a; color: #9ec0ff; }
html[data-theme="dark"] .rich-toolbar, html[data-theme="dark"] .editor-note, html[data-theme="dark"] .email-preview-browser { border-color: #2d3c4d; background: #111d29; }
html[data-theme="dark"] .rich-toolbar button { color: #afc0d1; border-color: #34475a; background: #172433; }
html[data-theme="dark"] .editor-note { color: #94a6b8; }
html[data-theme="dark"] .email-preview { background: #111d29; }
html[data-theme="dark"] .email-preview-card { box-shadow: none; }
@media (max-width: 900px) { .compose-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .template-grid { grid-template-columns: 1fr; padding: 16px; }.template-grid--wide, .template-actions, .template-help { grid-column: 1; }.template-actions .button, .template-actions .template-state { width: 100%; }.composer-toolbar-row, .composer-footer { align-items: stretch; flex-direction: column; }.composer-sender { justify-content: flex-start; }.composer-footer .form-actions, .composer-footer .button { width: 100%; }.email-preview { padding: 9px; } }
.shared-address-list { display: grid; gap: 10px; padding: 9px 19px 16px; }
.offboarding-start-form { display: inline-flex; }
.shared-address-card { overflow: hidden; border: 1px solid #edf1f5; border-radius: 9px; background: #fbfcfe; }
.shared-address-card-heading { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border-bottom: 1px solid #edf1f5; }
.shared-address-card-heading > div:nth-child(2) { flex: 1; min-width: 0; }
.shared-address-card-heading strong, .shared-address-card-heading span { display: block; }
.shared-address-card-heading strong { color: #536276; font-size: 11px; }
.shared-address-card-heading span { margin-top: 4px; color: #9aa6b3; font-size: 10px; }
.shared-member-list { padding: 0 12px; }
.shared-member-row { display: flex; align-items: center; gap: 10px; min-height: 49px; border-bottom: 1px solid #f0f2f5; }
.shared-member-row:last-child { border-bottom: 0; }
.shared-member-copy { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.shared-member-copy strong { overflow: hidden; color: #536276; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.shared-member-form { display: flex; align-items: flex-end; gap: 8px; padding: 12px; border-top: 1px solid #edf1f5; background: #f7f9fc; }
.shared-member-form .field { flex: 1; }
.shared-member-form .field label { margin-bottom: 4px; font-size: 9px; }
.shared-member-form select { width: 100%; height: 34px; }
.shared-member-form .button { min-height: 34px; white-space: nowrap; }
.shared-member-note { padding: 11px 12px; border-top: 1px solid #edf1f5; color: #9aa6b3; background: #f7f9fc; font-size: 9px; }
html[data-theme="dark"] .shared-address-card { border-color: #2d3c4d; background: #14202d; }
html[data-theme="dark"] .shared-address-card-heading { border-color: #2d3c4d; }
html[data-theme="dark"] .shared-address-card-heading strong, html[data-theme="dark"] .shared-member-copy strong { color: #dbe6f0; }
html[data-theme="dark"] .shared-address-card-heading span, html[data-theme="dark"] .shared-member-note { color: #94a6b8; }
html[data-theme="dark"] .shared-member-row { border-color: #263647; }
html[data-theme="dark"] .shared-member-form, html[data-theme="dark"] .shared-member-note { border-color: #2d3c4d; background: #111d29; }
@media (max-width: 760px) { .shared-member-form { align-items: stretch; flex-direction: column; }.shared-member-form .button { width: 100%; } .shared-member-copy { align-items: flex-start; flex-direction: column; gap: 4px; } }
html[data-theme="dark"] .text-link, html[data-theme="dark"] .row-action, html[data-theme="dark"] .attention-link { color: #9ec0ff; }
html[data-theme="dark"] .text-button--danger { color: #efaaa2; }
html[data-theme="dark"] .text-button--success { color: #83d6ad; }
html[data-theme="dark"] .attention-item-icon { color: #f0c56c; background: #4a381b; }
html[data-theme="dark"] .attention-item b { color: #f0c56c; }
.table-subtext--danger { color: #b45e57 !important; }
.status-badge--red { color: #b45e57; background: #fff0ef; }
.inline-action-form { display: inline-flex; }
.heading-actions { display: flex; align-items: center; gap: 8px; }
.heading-actions form { margin: 0; }
html[data-theme="dark"] .table-subtext--danger { color: #e1aaa5 !important; }
html[data-theme="dark"] .audit-icon { color: #83d6ad; background: #1b4a38; }
html[data-theme="dark"] .app-footer { color: #7f92a6; }
.workflow-note { display: flex; align-items: flex-start; gap: 11px; padding: 14px 16px; margin-bottom: 18px; border: 1px solid #dce9ff; border-radius: 9px; background: #f4f8ff; color: #7188a8; font-size: 11px; line-height: 1.5; }
.workflow-note > span { width: 26px; height: 26px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 8px; color: #5689e8; background: #deebff; font-size: 15px; }
.workflow-note strong, .workflow-note span { display: block; }
.workflow-note strong { color: #3568b4; font-size: 11px; }
.workflow-note div > span { margin-top: 3px; color: #728cad; }
.admin-copy { padding: 21px 19px; color: #77879a; font-size: 11px; line-height: 1.55; }
.admin-copy p { margin: 0 0 18px; }
.admin-copy .button { width: 100%; }
html[data-theme="dark"] .workflow-note { color: #b2c5df; background: #172d4e; border-color: #2b4d80; }
html[data-theme="dark"] .workflow-note > span { color: #a8c9ff; background: #234473; }
html[data-theme="dark"] .workflow-note strong { color: #c4d9ff; }
html[data-theme="dark"] .workflow-note div > span { color: #a6bad7; }
html[data-theme="dark"] .admin-copy { color: #a0b1c2; }
.archive-fields { flex-wrap: wrap; }
.archive-fields .field--wide { flex-basis: 100%; }
.retention-panel { margin-bottom: 16px; overflow: hidden; }
.retention-list { padding: 8px 19px 14px; }
.retention-row { display: flex; align-items: center; gap: 10px; min-height: 67px; border-bottom: 1px solid #f0f2f5; }
.retention-row:last-child { border-bottom: 0; }
.retention-copy { flex: 1; min-width: 0; }
.retention-copy strong, .retention-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.retention-copy strong { color: #4d5d71; font-size: 11px; }
.retention-copy span { margin-top: 4px; color: #9aa6b3; font-size: 10px; }
.retention-detail { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 17px 19px; }
.retention-detail span, .retention-detail strong { display: block; }
.retention-detail span { margin-bottom: 6px; color: #9aa6b3; font-size: 10px; }
.retention-detail strong { color: #536276; font-size: 11px; font-weight: 650; overflow-wrap: anywhere; }
.retention-actions { padding: 0 19px 18px; }
.retention-released { padding: 13px 19px 17px; color: #2d8b65; background: #eefaf4; font-size: 11px; }
html[data-theme="dark"] .retention-row { border-color: #263647; }
html[data-theme="dark"] .retention-copy strong { color: #e1eaf3; }
html[data-theme="dark"] .retention-copy span, html[data-theme="dark"] .retention-detail span { color: #94a6b8; }
html[data-theme="dark"] .retention-detail strong { color: #d5e0eb; }
html[data-theme="dark"] .retention-released { color: #83d6ad; background: #173d30; }
@media (max-width: 760px) { .retention-detail { grid-template-columns: 1fr; gap: 13px; } .retention-actions .button { width: 100%; } }
.page-inline-link { display: flex; align-items: center; gap: 12px; margin: 16px 0 0; color: #8b98a7; font-size: 11px; }
.page-inline-link .button { flex: 0 0 auto; }
.row-actions { display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.inline-edit { position: relative; }
.inline-edit summary { cursor: pointer; list-style: none; color: #5f8bd8; font-size: 11px; font-weight: 700; }
.inline-edit summary::-webkit-details-marker { display: none; }
.inline-edit form { position: absolute; z-index: 5; right: 0; top: 25px; width: 230px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 30px rgba(25, 45, 68, .14); }
.inline-edit label { display: block; margin-bottom: 8px; color: #68788a; font-size: 10px; font-weight: 700; }
.inline-edit input { display: block; width: 100%; height: 30px; margin-top: 4px; padding: 0 7px; border: 1px solid #dfe5ec; border-radius: 5px; color: #344456; font-size: 11px; }
html[data-theme="dark"] .page-inline-link { color: #94a6b8; }
html[data-theme="dark"] .inline-edit form { background: #172635; border-color: #34475a; }
html[data-theme="dark"] .inline-edit label { color: #b6c5d4; }
html[data-theme="dark"] .inline-edit input { color: #dce7f1; background: #111d29; border-color: #34475a; }
@media (max-width: 760px) { .page-inline-link { align-items: flex-start; flex-direction: column; } .page-inline-link .button { width: 100%; } .inline-edit form { position: fixed; left: 50%; right: auto; top: 50%; transform: translate(-50%, -50%); } }
.autoresponder-panel { margin-top: 16px; overflow: hidden; }
.autoresponder-card { padding: 20px; }
.autoresponder-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px; }
.autoresponder-meta span, .autoresponder-meta strong { display: block; }
.autoresponder-meta span { margin-bottom: 5px; color: #9aa6b3; font-size: 10px; }
.autoresponder-meta strong { color: #4a5b70; font-size: 11px; font-weight: 700; }
.autoresponder-message { margin-bottom: 16px; padding: 14px; border: 1px solid #e8edf3; border-radius: 7px; color: #56667a; background: #fafbfd; font-size: 12px; line-height: 1.6; white-space: normal; }
html[data-theme="dark"] .autoresponder-meta strong { color: #e1eaf3; }
html[data-theme="dark"] .autoresponder-meta span { color: #94a6b8; }
html[data-theme="dark"] .autoresponder-message { color: #c4d1df; background: #14202d; border-color: #2a3949; }
@media (max-width: 760px) { .autoresponder-meta { grid-template-columns: 1fr; gap: 12px; } .autoresponder-card { padding: 16px; } }
.leave-panel { margin-bottom: 16px; overflow: hidden; }
.leave-panel--active .detail-grid { padding-bottom: 16px; }
.leave-option { display: flex; align-items: flex-start; gap: 9px; padding: 11px 12px; border: 1px solid #e4ebf5; border-radius: 7px; color: #65768b; background: #f7faff; font-size: 11px; cursor: pointer; }
.leave-option input { width: auto; height: auto; margin-top: 2px; }
.leave-option strong, .leave-option small { display: block; }
.leave-option strong { color: #536981; font-size: 11px; }
.leave-option small { margin-top: 3px; color: #8a9bb0; font-size: 10px; line-height: 1.4; }
.leave-summary-actions { display: flex; justify-content: flex-end; padding: 0 19px 19px; }
.leave-summary-actions form { margin: 0; }
.status-badge--amber { color: #a7731d; background: #fff3d8; }
html[data-theme="dark"] .leave-option { color: #a0b1c2; background: #142538; border-color: #2a4666; }
html[data-theme="dark"] .leave-option strong { color: #d3e0eb; }
html[data-theme="dark"] .leave-option small { color: #94a6b8; }
html[data-theme="dark"] .status-badge--amber { color: #f0c56c; background: #4a381b; }
@media (max-width: 760px) { .leave-summary-actions { padding-left: 16px; padding-right: 16px; } .leave-summary-actions .button { width: 100%; } }
.alias-panel { margin-bottom: 16px; overflow: hidden; }
.alias-form { border-top: 1px solid #eef1f4; }
.input-with-suffix { display: flex; align-items: center; }
.input-with-suffix input { min-width: 0; border-radius: 6px 0 0 6px; }
.input-with-suffix span { display: flex; align-items: center; align-self: stretch; padding: 0 10px; border: 1px solid #dfe5ec; border-left: 0; border-radius: 0 6px 6px 0; color: #7d8da0; background: #f1f4f8; font-size: 11px; white-space: nowrap; }
.alias-list { padding: 8px 19px 16px; }
.alias-row { display: flex; align-items: center; gap: 10px; min-height: 62px; border-top: 1px solid #f0f2f5; }
.alias-row:first-child { border-top: 0; }
.alias-copy { flex: 1; min-width: 0; }
.alias-copy strong, .alias-copy span, .alias-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alias-copy strong { color: #536276; font-size: 11px; }
.alias-copy span { margin-top: 4px; color: #7c8ea4; font-size: 10px; }
.alias-copy small { margin-top: 3px; color: #a1acb8; font-size: 9px; }
html[data-theme="dark"] .alias-form { border-color: #2d3c4d; }
html[data-theme="dark"] .input-with-suffix span { color: #a0b1c2; background: #1b2b3c; border-color: #34475a; }
html[data-theme="dark"] .alias-row { border-color: #263647; }
html[data-theme="dark"] .alias-copy strong { color: #dbe6f0; }
html[data-theme="dark"] .alias-copy span, html[data-theme="dark"] .alias-copy small { color: #94a6b8; }
@media (max-width: 760px) { .alias-row { align-items: flex-start; flex-wrap: wrap; padding: 13px 0; }.alias-row form { margin-left: 39px; }.alias-row .status-badge { margin-left: auto; } }
.support-card { position: relative; transition: border-color .15s, background .15s, transform .12s; }.support-card:hover { border-color: rgba(118,170,255,.35); background: rgba(255,255,255,.07); transform: translateY(-1px); }.support-arrow { margin-left: auto; color: #7899bd; font-size: 14px; }
.help-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }.help-card { display: flex; align-items: flex-start; gap: 13px; min-height: 218px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }.help-card-icon { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; font-size: 18px; font-weight: 750; }.help-card-icon--blue { color: var(--blue); background: var(--blue-soft); }.help-card-icon--violet { color: var(--violet); background: var(--violet-soft); }.help-card-icon--amber { color: var(--amber); background: var(--amber-soft); }.help-card-icon--green { color: var(--green); background: var(--green-soft); }.help-card-icon--rose { color: #c66a62; background: #fff0ef; }.help-card-icon--slate { color: #6682a0; background: #eef3f8; }.help-card h2 { margin: 1px 0 0; color: #2b3c50; font-size: 14px; letter-spacing: -.02em; }.help-card p { margin: 7px 0 11px; color: #7d8c9d; font-size: 11px; line-height: 1.5; }.help-card ul { margin: 0; padding-left: 16px; color: #7b8b9d; font-size: 10px; line-height: 1.65; }.help-card li + li { margin-top: 3px; }.help-card code { padding: 2px 4px; border-radius: 4px; color: #3f70c9; background: #eef4ff; font-size: 10px; }.help-troubleshooting { margin-bottom: 18px; overflow: hidden; }.help-checklist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 22px; padding: 4px 19px 16px; }.help-check { padding: 13px 0; border-bottom: 1px solid #f0f2f5; }.help-check strong, .help-check span { display: block; }.help-check strong { color: #536276; font-size: 11px; }.help-check span { margin-top: 4px; color: #8b99a8; font-size: 10px; line-height: 1.45; }.help-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }.help-links .quick-card { margin: 0; }
html[data-theme="dark"] .support-card:hover { background: rgba(255,255,255,.1); border-color: rgba(118,170,255,.48); } html[data-theme="dark"] .support-arrow { color: #9ebbe6; } html[data-theme="dark"] .help-card-icon--rose { color: #efaaa2; background: #4a2d2a; } html[data-theme="dark"] .help-card-icon--slate { color: #a9c3df; background: #213346; } html[data-theme="dark"] .help-card h2 { color: #e1eaf3; } html[data-theme="dark"] .help-card p, html[data-theme="dark"] .help-card ul { color: #94a6b8; } html[data-theme="dark"] .help-card code { color: #a9c8ff; background: #1d3454; } html[data-theme="dark"] .help-check { border-color: #263647; } html[data-theme="dark"] .help-check strong { color: #d5e0eb; } html[data-theme="dark"] .help-check span { color: #94a6b8; }
@media (max-width: 900px) { .help-grid { grid-template-columns: 1fr; } .help-card { min-height: 0; } .help-links { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .help-callout { align-items: flex-start; flex-wrap: wrap; }.help-callout .callout-link { margin-left: 43px; }.help-checklist { grid-template-columns: 1fr; }.help-card { padding: 16px; } }

/* Status controls: keep filters, state badges, and high-impact actions visually consistent. */
.toolbar-actions { align-items: center; gap: 3px; padding: 4px; border: 1px solid #e7ecf3; border-radius: 11px; background: #f8fafc; }
.filter-button { min-height: 34px; display: inline-flex; align-items: center; gap: 7px; padding: 0 11px; border-color: transparent; border-radius: 8px; color: #667589; background: transparent; font-weight: 650; white-space: nowrap; transition: color .15s, background .15s, border-color .15s, box-shadow .15s; }
.filter-button::before { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: #a8b4c2; content: ''; }
.toolbar-actions .filter-button:nth-child(1)::before { background: #4db889; box-shadow: 0 0 0 3px rgba(77,184,137,.12); }
.toolbar-actions .filter-button:nth-child(2)::before { background: #d47a72; box-shadow: 0 0 0 3px rgba(212,122,114,.12); }
.toolbar-actions .filter-button:nth-child(3)::before { background: #e2a53d; box-shadow: 0 0 0 3px rgba(226,165,61,.12); }
.toolbar-actions .filter-button:nth-child(4)::before { background: #8a9aab; box-shadow: 0 0 0 3px rgba(138,154,171,.12); }
.filter-button:hover { color: #3f6fc8; background: #fff; border-color: #e1e8f2; }
.filter-button.is-selected { color: #2f68c6; background: #fff; border-color: #d7e4fb; box-shadow: 0 2px 6px rgba(35,76,130,.08); }
.toolbar-actions .icon-button--bordered { width: 34px; min-width: 34px; height: 34px; min-height: 34px; margin-left: 2px; border: 0; border-left: 1px solid #e4eaf2; border-radius: 7px; color: #7d8da0; background: transparent; }
.toolbar-actions .icon-button--bordered:hover { color: #3f6fc8; background: #fff; }
.status-badge { min-height: 25px; align-items: center; gap: 6px; padding: 0 9px; border: 1px solid transparent; border-radius: 8px; letter-spacing: .01em; }
.status-badge::before { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: currentColor; opacity: .78; content: ''; }
.status-badge--green { color: #2d9569; background: #edf9f3; border-color: #d5eee1; }
.status-badge--gray { color: #6d7e91; background: #f1f4f7; border-color: #e2e8ee; }
.status-badge--amber { color: #ad7925; background: #fff7e5; border-color: #f2dfb7; }
.status-badge--red { color: #b75e57; background: #fff2f0; border-color: #f0d5d1; }
.text-button { min-height: 33px; display: inline-flex; align-items: center; justify-content: center; padding: 0 11px; border: 1px solid transparent; border-radius: 8px; font-size: 11px; font-weight: 750; transition: transform .12s, background .15s, border-color .15s; }
.text-button:hover { transform: translateY(-1px); }
.text-button--danger { color: #b45e57; background: #fff3f1; border-color: #f1d8d4; }
.text-button--danger:hover { background: #ffe8e5; border-color: #eac8c3; }
.text-button--success { color: #2e9168; background: #edf9f3; border-color: #d3eee0; }
.text-button--success:hover { background: #e1f5eb; border-color: #bfe5d1; }
.button { min-height: 38px; border: 1px solid transparent; border-radius: 9px; letter-spacing: -.005em; }
.button--primary { border-color: #2f70ed; box-shadow: 0 6px 14px rgba(52,120,246,.19); }
.button--secondary { border-color: #d6e4fb; box-shadow: 0 1px 2px rgba(35,76,130,.04); }
.button--secondary:hover:not(:disabled) { color: #285fb8; background: #e1edff; border-color: #c2d8fa; }
.button--quiet-danger { border: 1px solid #f1d5d1; box-shadow: 0 1px 2px rgba(140,66,59,.04); }
.button--quiet-danger:hover:not(:disabled) { border-color: #e7c0bb; box-shadow: 0 3px 8px rgba(140,66,59,.08); }
html[data-theme="dark"] .toolbar-actions { border-color: #34475a; background: #111d29; }
html[data-theme="dark"] .filter-button { color: #a9b8c8; }
html[data-theme="dark"] .filter-button:hover, html[data-theme="dark"] .filter-button.is-selected { color: #c6daff; background: #1b355e; border-color: #365f9b; box-shadow: none; }
html[data-theme="dark"] .toolbar-actions .icon-button--bordered { border-left-color: #34475a; color: #9eb2c8; }
html[data-theme="dark"] .toolbar-actions .icon-button--bordered:hover { color: #d7e6ff; background: #1b355e; }
html[data-theme="dark"] .status-badge--green { color: #8bdfb5; background: #1b4a38; border-color: #285d4a; }
html[data-theme="dark"] .status-badge--gray { color: #b1c0cf; background: #2a3949; border-color: #3b4e61; }
html[data-theme="dark"] .status-badge--amber { color: #f0c56c; background: #4a381b; border-color: #765924; }
html[data-theme="dark"] .status-badge--red { color: #efaaa2; background: #4a2d2a; border-color: #603f3d; }
html[data-theme="dark"] .text-button--danger { color: #efaaa2; background: #4a2d2a; border-color: #603f3d; }
html[data-theme="dark"] .text-button--success { color: #83d6ad; background: #1b4a38; border-color: #285d4a; }
html[data-theme="dark"] .button--secondary { border-color: #365f9b; }
html[data-theme="dark"] .button--quiet-danger { border-color: #603f3d; }
@media (max-width: 1050px) { .toolbar { align-items: stretch; flex-direction: column; } .search-field { min-width: 0; min-height: 32px; } .toolbar-actions { justify-content: flex-start; flex-wrap: wrap; overflow: visible; } }
@media (max-width: 760px) { .toolbar-actions { width: 100%; overflow: visible; } .filter-button { flex: 0 0 auto; } .toolbar-actions .icon-button--bordered { flex: 0 0 34px; } }

/* Header utilities: keep each control visibly actionable and keyboard-friendly. */
.topbar-utility, .topbar-actions > a.icon-button { display: grid; }
.topbar-actions > a.icon-button { color: #6f7f90; }
.topbar-actions > a.icon-button:hover { color: var(--ink); }
.topbar-user-wrap { position: relative; }
.topbar-user { border: 1px solid transparent; background: transparent; padding: 4px 6px; border-radius: 12px; }
.topbar-user:hover, .topbar-user[aria-expanded="true"] { background: #f0f3f7; border-color: #e4eaf2; }
.user-menu { position: absolute; z-index: 40; top: calc(100% + 10px); right: 0; width: 205px; padding: 7px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); box-shadow: 0 14px 35px rgba(28, 48, 72, .16); }
.user-menu-heading { padding: 9px 10px 10px; border-bottom: 1px solid #eef1f4; }
.user-menu-heading strong, .user-menu-heading span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu-heading strong { color: var(--ink); font-size: 11px; }
.user-menu-heading span { margin-top: 3px; color: #94a0ae; font-size: 10px; }
.user-menu a, .user-menu form button { width: 100%; display: block; border: 0; border-radius: 7px; padding: 9px 10px; color: #627287; background: transparent; text-align: left; font-size: 11px; font-weight: 650; }
.user-menu a { margin-top: 3px; }
.user-menu a:hover, .user-menu form button:hover { color: var(--blue-dark); background: #f0f5ff; }
.user-menu form { margin: 3px 0 0; padding-top: 3px; border-top: 1px solid #eef1f4; }
.user-menu form button { color: #b45e57; cursor: pointer; }
.user-menu form button:hover { color: #a54942; background: #fff2f0; }
html[data-theme="dark"] .topbar-actions > a.icon-button { color: #a6b6c8; }
html[data-theme="dark"] .topbar-actions > a.icon-button:hover { color: #fff; }
html[data-theme="dark"] .topbar-user:hover, html[data-theme="dark"] .topbar-user[aria-expanded="true"] { background: #243548; border-color: #34475a; }
html[data-theme="dark"] .user-menu { background: #172433; border-color: #34475a; box-shadow: 0 16px 35px rgba(0,0,0,.32); }
html[data-theme="dark"] .user-menu-heading { border-color: #2d3c4d; }
html[data-theme="dark"] .user-menu-heading strong { color: #e1eaf3; }
html[data-theme="dark"] .user-menu-heading span { color: #94a6b8; }
html[data-theme="dark"] .user-menu a, html[data-theme="dark"] .user-menu form button { color: #b6c7d8; }
html[data-theme="dark"] .user-menu a:hover { color: #d7e6ff; background: #1b355e; }
html[data-theme="dark"] .user-menu form { border-color: #2d3c4d; }
html[data-theme="dark"] .user-menu form button { color: #efaaa2; }
html[data-theme="dark"] .user-menu form button:hover { background: #332221; }
@media (max-width: 760px) { .user-menu { right: -4px; } }

/* Make the persistent sidebar sign-out action easy to find. */
.sidebar-user { flex-wrap: wrap; }
.sidebar-user .logout-form { width: 100%; margin: 4px 0 0; }
.sidebar-user-menu { width: 100%; display: flex; align-items: center; justify-content: center; gap: 7px; margin: 0; padding: 8px 10px; border: 1px solid rgba(151, 184, 222, .22); border-radius: 8px; color: #c9d8e8; background: rgba(255,255,255,.055); font-size: 11px; font-weight: 700; letter-spacing: 0; transition: color .15s, background .15s, border-color .15s; }
.sidebar-user-menu:hover { color: #fff; background: rgba(75, 134, 220, .23); border-color: rgba(151, 184, 222, .44); }
.sidebar-user-menu span:first-child { font-size: 16px; line-height: 1; }

/* Keep reversible status management focused on one clear next action. */
.status-change-actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px; }
.status-change-copy { flex: 1; min-width: 0; }
.status-change-copy strong, .status-change-copy span { display: block; }
.status-change-copy strong { color: #34485f; font-size: 13px; }
.status-change-copy span { max-width: 620px; margin-top: 5px; color: #8a98a8; font-size: 11px; line-height: 1.5; }
.status-action-form { flex: 0 0 auto; margin: 0; }
.status-action-form .button { min-height: 39px; white-space: nowrap; }
html[data-theme="dark"] .status-change-copy strong { color: #d5e0eb; }
html[data-theme="dark"] .status-change-copy span { color: #94a6b8; }
@media (max-width: 760px) { .status-change-actions { align-items: stretch; flex-direction: column; }.status-action-form, .status-action-form .button { width: 100%; } }
