:root {
    --ink: #202c30;
    --muted: #7c878c;
    --line: #e7ebea;
    --green: #18876c;
    --bs-body-color: #29363a;
    --bs-body-font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    background: #f6f8f7;
    font-size: 14px;
    color: var(--ink);
}
[v-cloak] {
    display: none;
}
button,
a,
input,
select {
    transition:
        background 0.15s,
        color 0.15s,
        box-shadow 0.15s;
}
button:focus-visible,
a:focus-visible {
    outline: 3px solid #8bd4bd;
    outline-offset: 3px;
}
.sidebar {
    width: 236px;
    position: fixed;
    inset: 0 auto 0 0;
    background: #fff;
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    padding: 32px 19px;
    z-index: 10;
}
.brand {
    color: #233d35;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 750;
    font-size: 23px;
    letter-spacing: -1px;
}
.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #207a62;
    width: 35px;
    height: 35px;
    color: white;
    font-size: 29px;
    font-weight: 750;
    line-height: 1;
    font-family: Georgia, serif;
}
.brand-dot {
    color: #1a9874;
    margin-left: -9px;
}
.workspace {
    border: 1px solid var(--line);
    border-radius: 9px;
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 12px;
    margin-top: 36px;
    font-size: 12px;
    font-weight: 600;
}
.workspace small {
    display: block;
    color: var(--muted);
    font-weight: 400;
    margin-top: 2px;
}
.workspace-mark {
    padding: 7px 9px;
    border-radius: 7px;
    background: #f1f5f3;
    color: #6b8278;
}
.workspace > .dot {
    margin-left: auto;
}
.nav-caption {
    font-size: 10px;
    letter-spacing: 1.5px;
    color: #9ba6a8;
    margin: 32px 12px 12px;
    font-weight: 600;
}
nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 13px;
    margin-bottom: 6px;
    border-radius: 7px;
    color: #6a767a;
    text-decoration: none;
    font-weight: 500;
}
nav a:hover {
    background: #f4f7f5;
    color: var(--green);
}
nav a.active {
    background: #eaf4ee;
    color: #227858;
}
.nav-icon {
    font-size: 20px;
    line-height: 1;
    width: 20px;
}
.nav-count {
    margin-left: auto;
    background: #fff9;
    border-radius: 4px;
    font-size: 11px;
    padding: 2px 6px;
}
.sidebar-bottom {
    margin-top: auto;
    border-top: 1px solid var(--line);
    padding-top: 20px;
    font-size: 11px;
    color: #7c878c;
    display: flex;
    gap: 7px;
    align-items: center;
}
.logout {
    margin-left: auto;
    background: none;
    border: 0;
    font-size: 19px;
    color: #7c878c;
}
main {
    margin-left: 236px;
    min-height: 100vh;
}
.topbar {
    height: 77px;
    border-bottom: 1px solid var(--line);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    font-size: 12px;
    color: #899296;
}
.topbar > div > span:not(.local-tag):not(.avatar) {
    margin: 0 13px;
    color: #c3cbca;
}
.topbar strong {
    color: #45565b;
    font-weight: 500;
}
.topbar-right {
    display: flex;
    align-items: center;
    gap: 22px;
}
.local-tag {
    font-size: 10px;
    letter-spacing: 1px;
    color: #7b8883;
    border: 1px solid #e1e7e4;
    border-radius: 4px;
    padding: 3px 6px;
}
.avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
    border-radius: 100%;
    background: #edf1ee;
    color: #5d7067;
    font-size: 11px;
    font-weight: 600;
}
.page-content {
    max-width: 1640px;
    padding: 39px 40px 28px;
    margin: auto;
}
.page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}
.eyebrow {
    font-size: 10px;
    font-weight: 650;
    letter-spacing: 1.8px;
    color: #86968e;
    margin-bottom: 10px;
}
h1 {
    font-size: 30px;
    letter-spacing: -0.9px;
    font-weight: 650;
    margin: 0 0 8px;
}
h2 {
    font-size: 23px;
    letter-spacing: -0.5px;
    font-weight: 650;
}
h3 {
    font-size: 17px;
    font-weight: 600;
}
.page-heading p {
    color: var(--muted);
    margin: 0;
    font-size: 13px;
}
.heading-actions {
    display: flex;
    gap: 10px;
}
.btn {
    font-size: 12px;
    font-weight: 550;
    border-radius: 7px;
    padding: 10px 15px;
    white-space: nowrap;
}
.btn-primary {
    --bs-btn-bg: #21856a;
    --bs-btn-border-color: #21856a;
    --bs-btn-hover-bg: #176c55;
    --bs-btn-hover-border-color: #176c55;
    --bs-btn-disabled-bg: #21856a;
    --bs-btn-disabled-border-color: #21856a;
}
.btn-white {
    background: #fff;
    border: 1px solid #dfe5e2;
    color: #52615d;
}
.btn-white:hover {
    background: #f0f6f2;
    border-color: #c9d8d1;
    color: #276b52;
}
.btn-sm {
    font-size: 11px;
    padding: 6px 10px;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 25px;
}
.stat {
    background: white;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 21px 23px;
}
.stat > span {
    font-size: 12px;
    color: #718078;
    display: flex;
    align-items: center;
    gap: 7px;
}
.stat strong {
    display: block;
    font-size: 31px;
    font-weight: 600;
    margin: 11px 0 7px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}
.stat small {
    font-size: 10px;
    color: #929c98;
}
.dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 100%;
    background: currentColor;
    flex-shrink: 0;
}
.green {
    color: #269371;
}
.red {
    color: #d47566;
}
.amber {
    color: #c3953e;
}
.blue {
    color: #6c95ba;
}
.setup-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid #e5e5d5;
    background: #fbfbf2;
    padding: 16px 19px;
    border-radius: 9px;
    margin-bottom: 25px;
}
.setup-icon {
    width: 23px;
    height: 23px;
    border: 1px solid #c4bf91;
    color: #9c8f46;
    border-radius: 100%;
    text-align: center;
    font-family: Georgia, serif;
    font-weight: bold;
    flex-shrink: 0;
}
.setup-banner strong {
    font-size: 12px;
    font-weight: 600;
}
.setup-banner p {
    font-size: 11px;
    color: #99916b;
    margin: 4px 0 0;
}
.setup-banner > .badge-soft {
    margin-left: auto;
}
.table-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
}
.table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 17px 20px;
    gap: 14px;
    border-bottom: 1px solid var(--line);
}
.filter-tabs {
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
}
.filter-tabs button {
    background: none;
    border: 0;
    border-radius: 6px;
    padding: 7px 11px;
    font-size: 11px;
    color: #8b9491;
    white-space: nowrap;
}
.filter-tabs .selected {
    background: #f0f5f2;
    color: #396750;
    font-weight: 600;
}
.filter-tabs span {
    font-size: 10px;
    color: #73917e;
    margin-left: 7px;
}
.table-tools {
    display: flex;
    gap: 10px;
    align-items: center;
}
.search {
    display: flex;
    align-items: center;
    gap: 7px;
    border: 1px solid #e4e9e6;
    border-radius: 6px;
    padding: 6px 9px;
    width: 205px;
}
.search > svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    color: #94a29a;
}
.search input {
    border: 0;
    outline: 0;
    min-width: 0;
    width: 100%;
    font-size: 11px;
    background: none;
}
.search:focus-within {
    box-shadow: 0 0 0 3px #e1f0e8;
}
.search input::placeholder {
    color: #a0aaa5;
}
.table {
    --bs-table-bg: transparent;
    --bs-table-border-color: #eff2ef;
    font-size: 12px;
    white-space: nowrap;
}
.table th {
    font-size: 9px;
    letter-spacing: 1px;
    font-weight: 550;
    color: #909d96;
    background: #fbfcfb;
    padding: 13px 20px;
    border-bottom: 1px solid var(--line);
}
.table td {
    padding: 20px;
    border-bottom-color: #eef1ee;
}
.table tbody tr:last-child td {
    border-bottom: 0;
}
.table tbody tr:hover {
    background: #fbfdfb;
}
.primary-cell {
    display: flex;
    gap: 11px;
    align-items: center;
}
.primary-cell strong {
    font-weight: 550;
    font-size: 12px;
}
.primary-cell small {
    display: block;
    font-size: 10px;
    margin-top: 5px;
    color: #9aa49e;
}
.item-icon,
.account-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #f1f5f2;
    color: #81958a;
    width: 33px;
    height: 33px;
    border: 1px solid #e9eeea;
    border-radius: 7px;
    font-size: 19px;
}
.account-avatar {
    font-size: 12px;
    color: #5b826b;
    background: #edf5ee;
}
.mono {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 11px !important;
    letter-spacing: -0.2px;
}
.badge-soft {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 500;
    border: 1px solid transparent;
    border-radius: 5px;
    padding: 4px 7px;
    line-height: 1.2;
    white-space: nowrap;
}
.success {
    color: #338061;
    background: #edf7f0;
    border-color: #deeee3;
}
.danger {
    color: #bc6d60;
    background: #fcf1ee;
    border-color: #f4e2dc;
}
.warning {
    color: #b18a3b;
    background: #fcf7e9;
    border-color: #f1e9ce;
}
.neutral {
    color: #84928a;
    background: #f3f5f3;
    border-color: #e8ede8;
}
.info {
    color: #628bad;
    background: #edf4fa;
    border-color: #dfebf5;
}
.cell-note {
    display: block;
    color: #a0aaa4;
    font-size: 9px;
    margin-top: 6px;
}
.error-note {
    display: block;
    max-width: 185px;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #b87f72;
    font-size: 9px;
    margin-top: 5px;
}
.latency {
    font-family: ui-monospace, Consolas, monospace;
    font-size: 11px;
    color: #638472;
}
.muted {
    color: var(--muted);
}
.account-link {
    border: 0;
    background: none;
    color: #556b5d;
    padding: 0;
    font-size: 12px;
}
.account-link span {
    color: #a4b2a7;
    font-size: 11px;
    margin-left: 9px;
}
.account-link:disabled {
    color: #a0aaa4;
}
.expiry {
    color: #c37c66;
}
.expiry-soon {
    color: #b0924c;
}
.row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}
.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5ebe6;
    background: white;
    color: #8a9c8f;
    border-radius: 6px;
    width: 29px;
    height: 29px;
    font-size: 17px;
    line-height: 1;
}
.icon-button:hover {
    background: #eef5ef;
    color: #318264;
}
.icon-button.enabled {
    color: #398d68;
}
.account-actions {
    gap: 6px;
    white-space: nowrap;
}
.account-rental { display: flex; align-items: center; gap: 6px; padding-left: 0; margin-top: 8px; color: var(--muted); font-size: 10px; cursor: pointer; }
.account-rental .form-check-input { margin: 0; }
.journal-page { display: grid; gap: 18px; }
.journal-settings > summary { padding: 18px 20px; cursor: pointer; font-weight: 600; }
.journal-settings > p { padding: 0 20px 12px; font-size: 12px; }
.journal-toolbar { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 14px 20px; color: var(--muted); font-size: 12px; }
.journal-table { white-space: normal; }
.journal-table td { vertical-align: top; padding: 14px 12px; }
.journal-table td:first-child { min-width: 140px; }
.journal-table td:last-child { min-width: 280px; max-width: 600px; overflow-wrap: anywhere; }
.journal-table details { margin-top: 8px; font-size: 11px; color: var(--muted); }
.journal-table summary { cursor: pointer; }
.journal-table pre { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 8px; font-size: 11px; }
.accounts-table th,
.accounts-table td {
    padding-left: 10px;
    padding-right: 10px;
}
.account-actions .icon-button {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    padding: 6px;
}
.account-actions svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.account-actions .action-primary {
    color: white;
    background: #208568;
    border-color: #208568;
}
.account-actions .action-primary:hover {
    background: #176d55;
}
.account-actions .action-danger {
    color: #ce5b59;
}
.account-actions .action-danger:hover {
    color: #b83330;
    border-color: #efcfce;
    background: #fff1f0;
}
.account-actions .icon-button:disabled {
    opacity: 0.45;
    cursor: wait;
}
.account-actions .icon-button:focus-visible {
    outline: 2px solid #208568;
    outline-offset: 2px;
}
.text-button {
    border: 0;
    background: none;
    color: #7c8e82;
    padding: 0;
}
.text-button:hover {
    text-decoration: underline;
}
.queue-count {
    color: #7b9283;
    font-family: ui-monospace, monospace;
}
.failed-count {
    font-size: 10px;
    color: #b98473;
    margin-left: 9px;
}
.table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    padding: 15px 20px;
    color: #9ba69e;
    font-size: 10px;
}
.table-footer > div {
    display: flex;
    align-items: center;
    gap: 12px;
}
.table-footer label {
    margin-right: 12px;
}
.table-footer select {
    font-size: 10px;
    color: #7a8d7f;
    border: 1px solid #e4eae5;
    border-radius: 4px;
    padding: 3px 6px;
    margin-left: 6px;
    background: white;
}
.table-footer button {
    border: 1px solid #e5ebe6;
    border-radius: 4px;
    background: white;
    color: #78907e;
    width: 24px;
    height: 24px;
    font-size: 16px;
}
.table-footer button:disabled {
    opacity: 0.35;
}
.page-footnote {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 10px;
    color: #9aa79e;
    margin-top: 19px;
}
.updated {
    margin-left: auto;
    white-space: nowrap;
}
.empty-state {
    text-align: center;
    padding: 60px 20px;
}
.empty-state p {
    font-size: 12px;
    color: var(--muted);
}
.empty-icon {
    font-size: 30px;
    color: #9cbaa8;
    margin-bottom: 13px;
}
.notice {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 17px;
    border-radius: 8px;
    border: 1px solid #dcebe0;
    margin-bottom: 20px;
    font-size: 12px;
}
.notice button {
    flex-shrink: 0;
    border: 0;
    background: none;
    color: inherit;
    font-size: 20px;
}
.active-filter {
    padding: 10px 20px;
    background: #f5faf7;
    color: #6e8c79;
    font-size: 11px;
}
.active-filter button {
    border: 0;
    background: none;
    color: #44916c;
    margin-left: 10px;
}
.app-dialog {
    width: 480px;
    max-width: calc(100vw - 30px);
    border: 1px solid var(--line);
    border-radius: 15px;
    padding: 30px;
    color: var(--ink);
    box-shadow: 0 20px 80px #0d2e2430;
    max-height: 90vh;
    overflow: auto;
}
.app-dialog::backdrop {
    background: #20382e50;
    backdrop-filter: blur(3px);
}
.wide-dialog {
    width: 570px;
}
.login-dialog {
    width: 400px;
}
.dialog-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}
.dialog-heading .eyebrow {
    margin-bottom: 6px;
}
.dialog-heading h2 {
    margin-bottom: 0;
}
.app-dialog p {
    font-size: 12px;
    line-height: 1.6;
}
.form-label {
    font-size: 12px;
    font-weight: 550;
}
.form-control,
.form-select {
    font-size: 13px;
    border-color: #dce5df;
    padding: 10px 12px;
    border-radius: 7px;
}
.form-control:focus,
.form-select:focus {
    border-color: #80b69d;
    box-shadow: 0 0 0 3px #e5f2eb;
}
.form-check {
    font-size: 12px;
}
.form-check-input:checked {
    background-color: #21856a;
    border-color: #21856a;
}
.form-error {
    color: #bb6556;
    margin: 14px 0 0;
}
.dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid var(--line);
    padding-top: 20px;
    margin-top: 25px;
}
.dialog-footnote {
    display: block;
    text-align: center;
    font-size: 10px;
    color: #a2aaa5;
    margin-top: 17px;
}
.info-box {
    font-size: 11px;
    line-height: 1.7;
    border: 1px solid #e4ece6;
    background: #f4f8f5;
    color: #718478;
    padding: 12px 14px;
    border-radius: 7px;
}
.pulse {
    animation: pulse 1.2s infinite;
}
@keyframes pulse {
    50% {
        opacity: 0.3;
    }
}
@media (min-width: 1600px) {
    .page-content {
        padding-top: 48px;
    }
    .table td {
        padding-top: 24px;
        padding-bottom: 24px;
    }
}
@media (max-width: 1200px) {
    .sidebar {
        width: 205px;
    }
    .brand {
        font-size: 21px;
    }
    main {
        margin-left: 205px;
    }
    .page-content {
        padding: 28px 24px;
    }
    .topbar {
        padding: 0 24px;
    }
    .table-toolbar {
        flex-wrap: wrap;
    }
    .table th,
    .table td {
        padding-left: 15px;
        padding-right: 15px;
    }
    .stat {
        padding: 18px 16px;
    }
    .stat small {
        font-size: 9px;
    }
    .page-heading {
        align-items: flex-start;
    }
    .heading-actions {
        margin-top: 16px;
    }
}
@media (max-width: 800px) {
    .sidebar {
        position: relative;
        width: 100%;
        padding: 15px 20px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
        flex-direction: row;
        align-items: center;
        gap: 20px;
    }
    .brand {
        font-size: 21px;
    }
    .workspace,
    .nav-caption,
    .sidebar-bottom {
        display: none;
    }
    .sidebar nav {
        display: flex;
        margin-left: auto;
        gap: 5px;
    }
    .sidebar nav a {
        margin: 0;
        padding: 9px;
    }
    .nav-icon,
    .nav-count {
        display: none;
    }
    main {
        margin-left: 0;
    }
    .topbar {
        height: 55px;
        padding: 0 20px;
    }
    .page-content {
        padding: 25px 20px;
    }
    .page-heading {
        display: block;
    }
    .heading-actions {
        margin-top: 19px;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .setup-banner > .badge-soft {
        display: none;
    }
    .setup-banner p {
        font-size: 10px;
    }
    .table-toolbar {
        padding: 14px 12px;
    }
    .table-tools {
        width: 100%;
    }
    .search {
        flex: 1;
    }
    .page-footnote {
        align-items: flex-start;
        line-height: 1.7;
    }
    .page-footnote > .dot {
        margin-top: 5px;
    }
    .updated {
        display: none;
    }
    .table-footer {
        padding: 12px;
    }
    .table-footer label {
        display: none;
    }
    .stat strong {
        font-size: 27px;
    }
    .app-dialog {
        padding: 24px;
    }
    .filter-tabs button {
        padding: 6px 8px;
        font-size: 10px;
    }
}
.account-link {
    font-weight: 650;
    text-align: left;
}
.app-dialog.details-dialog {
    width: min(850px, 94vw);
    max-width: 850px;
}
.app-dialog.message-dialog {
    width: min(1100px, 94vw);
    max-width: 1100px;
}
.details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 30px;
    margin: 26px 0;
}
.details-grid dt {
    font-size: 12px;
    color: #778379;
    font-weight: 400;
    margin-bottom: 5px;
}
.details-grid dd {
    margin: 0;
    overflow-wrap: anywhere;
}
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0;
}
.proxy-reassign {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
    padding-top: 22px;
    border-top: 1px solid #e7ebe7;
}
.proxy-reassign label {
    flex: 1;
    margin: 0;
}
.proxy-reassign small {
    width: 100%;
    color: #778379;
}
.queue-details {
    margin-top: 26px;
}
.queue-details h3 {
    font-size: 15px;
}
.queue-details > div {
    padding: 12px 0;
    border-top: 1px solid #e7ebe7;
    overflow-wrap: anywhere;
}
.queue-details span,
.queue-details small {
    display: block;
    font-size: 12px;
    color: #778379;
    margin-top: 4px;
}
.mail-filters {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    padding: 24px;
    border-bottom: 1px solid #e7ebe7;
}
.mail-filters label {
    font-size: 12px;
    color: #58675d;
}
.mail-filters input,
.mail-filters select {
    margin-top: 7px;
    font-size: 13px;
}
.mail-filter-actions {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 10px;
}
.mail-filter-actions small {
    color: #778379;
    margin-left: auto;
}
.date-range {
    display: flex;
    gap: 8px;
}
.date-range label {
    flex: 1;
    min-width: 0;
}
.mail-subject {
    display: block;
    text-align: left;
    font-weight: 650;
    max-width: 440px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mail-preview {
    display: block;
    max-width: 440px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #88928b;
    margin-top: 5px;
}
.message-meta {
    padding: 15px 0;
    font-size: 13px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}
.message-tabs {
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid #e7ebe7;
    padding: 12px 0;
}
.message-tabs small {
    color: #778379;
    margin-left: auto;
}
.message-body {
    width: 100%;
    height: 54vh;
    border: 1px solid #e7ebe7;
    background: white;
    border-radius: 8px;
}
.message-text {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    max-height: 54vh;
    overflow: auto;
    padding: 20px;
    font-size: 14px;
    background: #f8faf8;
}
@media (max-width: 950px) {
    .mail-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 600px) {
    .details-grid,
    .mail-filters {
        grid-template-columns: 1fr;
    }
    .mail-filter-actions {
        flex-wrap: wrap;
    }
    .mail-filter-actions small {
        width: 100%;
        margin: 0;
    }
}
.close-button {
    border: 0;
    background: transparent;
    color: #778379;
    font-size: 24px;
    line-height: 1;
    padding: 4px 8px;
}
.service-rule {
    display: block;
    max-width: 330px;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
    color: #395a49;
    font-size: 12px;
}
.dashboard-content {
    display: grid;
    gap: 22px;
}
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}
.dashboard-card {
    background: #fff;
    border: 1px solid #e6ece7;
    border-radius: 12px;
    padding: 24px;
    min-width: 0;
}
.dashboard-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 15px;
}
.dashboard-heading h2 {
    font-size: 16px;
    margin: 0;
    font-weight: 650;
}
.system-check,
.dashboard-error {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid #edf0ed;
    padding: 14px 0;
}
.system-check strong {
    font-size: 13px;
    font-weight: 550;
}
.system-check small,
.dashboard-error small {
    display: block;
    color: #8b978f;
    font-size: 11px;
    margin-top: 5px;
    overflow-wrap: anywhere;
}
.system-check .badge-soft,
.dashboard-error .badge-soft {
    flex-shrink: 0;
}
.mail-chart {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    height: 180px;
    padding-top: 20px;
    border-bottom: 1px solid #e6ece7;
}
.chart-column {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: flex-end;
}
.chart-column span {
    width: 100%;
    background: #247c65;
    border-radius: 3px 3px 0 0;
}
.chart-column span.empty {
    background: #e5eee8;
}
.chart-labels {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #8b978f;
    margin-top: 9px;
}
.dashboard-note {
    font-size: 12px;
    color: #8b978f;
    margin: 25px 0 18px;
}
.dashboard-summary {
    display: flex;
    gap: 26px;
    margin-bottom: 24px;
}
.dashboard-summary strong {
    display: block;
    font-size: 24px;
    color: #324c3e;
}
.dashboard-summary small {
    font-size: 11px;
    color: #8b978f;
}
.dashboard-empty {
    color: #8b978f;
    font-size: 13px;
    padding: 22px 0 12px;
}
@media (max-width: 1050px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}
.import-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.import-preview td { max-width: 240px; white-space: pre-wrap; overflow-wrap: anywhere; }
.login-data-table td { white-space: pre-wrap; overflow-wrap: anywhere; }
.login-data-table th { min-width: 110px; }
.bulk-account-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 14px 24px; background: #f7faf8; border-bottom: 1px solid #edf1ee; }
.toast-notice {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1000;
    max-width: min(440px, calc(100vw - 32px));
    gap: 16px;
    margin: 0;
    box-shadow: 0 6px 24px #20352b14;
}
