:root {
    --ink: #17221b;
    --muted: #66736a;
    --line: #dce3dc;
    --surface: #ffffff;
    --page: #f3f6f2;
    --green: #16734a;
    --green-dark: #0d5335;
    --green-soft: #e7f4ec;
    --amber: #9a5b08;
    --amber-soft: #fff3d7;
    --red: #a43832;
    --red-soft: #fdeceb;
    --blue: #245d91;
    --blue-soft: #eaf2fa;
    --shadow: 0 1px 2px rgba(23, 34, 27, 0.06);
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: light;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--page);
    font: 14px/1.55 "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
}

a {
    color: var(--green-dark);
}

button,
input,
textarea {
    font: inherit;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
}

.topbar-inner {
    width: min(1180px, calc(100% - 40px));
    min-height: 64px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-size: 17px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.brand-mark {
    display: inline-grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 7px;
    background: var(--ink);
    color: #fff;
    font-size: 11px;
    letter-spacing: 0.04em;
}

.main-nav {
    display: flex;
    align-self: stretch;
    gap: 4px;
}

.main-nav a {
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border-bottom: 2px solid transparent;
    color: var(--muted);
    font-weight: 700;
    text-decoration: none;
}

.main-nav a:hover,
.main-nav a.active {
    border-bottom-color: var(--green);
    color: var(--green-dark);
}

.account-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.account-email {
    max-width: 220px;
    overflow: hidden;
    color: var(--muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 30px auto 64px;
}

.page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.page-heading h1 {
    margin: 0;
    font-size: 28px;
    line-height: 1.2;
}

.page-heading p {
    max-width: 680px;
    margin: 7px 0 0;
    color: var(--muted);
}

.page-heading-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.page-heading-actions form {
    margin: 0;
}

.eyebrow {
    margin-bottom: 5px;
    color: var(--green);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.stat {
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.stat-label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.stat-value {
    margin-top: 4px;
    font-size: 27px;
    font-weight: 800;
}

.layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 20px;
    align-items: start;
}

.panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.panel + .panel {
    margin-top: 18px;
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 17px 20px;
    border-bottom: 1px solid var(--line);
}

.panel-head h2,
.panel-head h3 {
    margin: 0;
    font-size: 15px;
}

.panel-head p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.panel-head-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-head-actions form {
    margin: 0;
}

.panel-body {
    padding: 20px;
}

.form-stack {
    display: grid;
    gap: 13px;
}

.field {
    display: grid;
    gap: 6px;
}

.field label {
    color: #34443a;
    font-size: 12px;
    font-weight: 800;
}

.field small,
.hint {
    color: var(--muted);
    font-size: 12px;
}

.input {
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid #cfd8d0;
    border-radius: 6px;
    outline: none;
    background: #fff;
    color: var(--ink);
}

.input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(22, 115, 74, 0.12);
}

.input-row {
    display: flex;
    gap: 8px;
}

.input-row .input {
    min-width: 0;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.settings-grid .field-full {
    grid-column: 1 / -1;
}

.toggle-field {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #f8faf8;
}

.toggle-field input,
.clear-secret input {
    width: 17px;
    height: 17px;
    margin: 1px 0 0;
    accent-color: var(--green);
}

.toggle-field span {
    display: grid;
    gap: 3px;
}

.toggle-field small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.clear-secret {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 12px;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.settings-test-panel {
    margin-top: 18px;
}

.smtp-test-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 12px;
}

.input-code {
    max-width: 240px;
    font-size: 22px;
    font-weight: 800;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.verify-actions {
    margin-top: 12px;
}

.button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.button {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 13px;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
}

.button:hover {
    filter: brightness(0.97);
}

.button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.button-primary {
    background: var(--green);
    color: #fff;
}

.button-secondary {
    border-color: #b9cfc1;
    background: var(--green-soft);
    color: var(--green-dark);
}

.button-quiet {
    border-color: var(--line);
    background: #fff;
    color: #39453d;
}

.button-danger {
    border-color: #efc5c2;
    background: var(--red-soft);
    color: var(--red);
}

.button-small {
    min-height: 31px;
    padding: 5px 9px;
    font-size: 12px;
}

.notice {
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
}

.notice-success {
    border-color: #b9dcc7;
    background: var(--green-soft);
    color: var(--green-dark);
}

.notice-error {
    border-color: #f0c6c3;
    background: var(--red-soft);
    color: var(--red);
}

.notice-info {
    border-color: #c8d8e7;
    background: var(--blue-soft);
    color: var(--blue);
}

.empty {
    padding: 36px 20px;
    color: var(--muted);
    text-align: center;
}

.domain-list {
    display: grid;
}

.domain-row {
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
}

.domain-row:last-child {
    border-bottom: 0;
}

.domain-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.domain-name {
    margin: 0;
    overflow-wrap: anywhere;
    font-size: 15px;
}

.domain-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 7px;
    color: var(--muted);
    font-size: 12px;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #eef1ee;
    color: #55635a;
    font-size: 11px;
    font-weight: 800;
}

.badge-active {
    background: var(--green-soft);
    color: var(--green-dark);
}

.badge-pending {
    background: var(--amber-soft);
    color: var(--amber);
}

.badge-error {
    background: var(--red-soft);
    color: var(--red);
}

.domain-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    justify-content: flex-end;
}

.domain-actions form {
    margin: 0;
}

.nameservers {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.code {
    padding: 4px 7px;
    border: 1px solid #d8dfd9;
    border-radius: 5px;
    background: #f7f9f7;
    color: #34443a;
    font: 12px/1.4 Consolas, "SFMono-Regular", monospace;
    overflow-wrap: anywhere;
}

.key-value {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 8px 12px;
}

.key-value dt {
    color: var(--muted);
    font-weight: 700;
}

.key-value dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

.api-token-reveal {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
    padding: 14px;
    border: 1px solid #b9dcc7;
    border-radius: 7px;
    background: var(--green-soft);
}

.api-token-value {
    display: flex;
    align-items: center;
    gap: 10px;
}

.api-token-value code {
    min-width: 0;
    flex: 1;
    overflow-wrap: anywhere;
    user-select: all;
}

.api-token-meta {
    margin: 0 0 18px;
}

.api-token-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.api-token-actions form {
    margin: 0;
}

.api-doc {
    margin: 0;
}

.api-example {
    margin: 16px 0 0;
    padding: 14px;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #f7f9f7;
    font: 12px/1.6 Consolas, "SFMono-Regular", monospace;
}

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.search-form {
    display: flex;
    width: min(100%, 430px);
    gap: 8px;
}

.table-wrap {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.table th {
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.table tbody tr:hover {
    background: #f9fbf9;
}

.table a {
    font-weight: 750;
    text-decoration: none;
}

.users-table {
    min-width: 820px;
}

.users-table th:last-child,
.users-table td:last-child {
    width: 190px;
    text-align: right;
}

.users-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.users-actions form {
    margin: 0;
}

.users-action .hint {
    white-space: nowrap;
}

.dns-table {
    min-width: 880px;
    table-layout: fixed;
}

.dns-col-type {
    width: 112px;
}

.dns-col-name {
    width: 26%;
}

.dns-col-status {
    width: 128px;
}

.dns-col-actions {
    width: 96px;
}

.dns-table th:first-child,
.dns-table td:first-child,
.dns-table th:nth-child(4),
.dns-table td:nth-child(4),
.dns-table th:last-child,
.dns-table td:last-child {
    white-space: nowrap;
}

.subject {
    max-width: 420px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 20px;
    border-top: 1px solid var(--line);
}

.pagination-controls {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
}

.pagination-links {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.pagination-jump {
    display: flex;
    flex: none;
    align-items: center;
    gap: 7px;
    margin: 0;
    white-space: nowrap;
}

.pagination-jump .input {
    width: 72px;
    min-height: 31px;
    padding: 4px 7px;
    text-align: center;
}

.message-summary {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 9px 14px;
    margin-bottom: 24px;
}

.message-summary dt {
    color: var(--muted);
    font-weight: 700;
}

.message-summary dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.otp-box {
    margin-bottom: 18px;
    padding: 13px 15px;
    border: 1px solid #b9dcc7;
    border-radius: 7px;
    background: var(--green-soft);
    color: var(--green-dark);
}

.otp-code {
    margin-left: 8px;
    font: 800 20px/1 Consolas, "SFMono-Regular", monospace;
    letter-spacing: 0.08em;
}

.raw-mail {
    max-height: 68vh;
    margin: 0;
    padding: 16px;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #f7f9f7;
    font: 12px/1.55 Consolas, "SFMono-Regular", monospace;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.mail-section {
    margin-bottom: 18px;
}

.mail-section h2 {
    margin: 0 0 9px;
    font-size: 15px;
}

.mail-body {
    min-height: 120px;
    max-height: 58vh;
    margin: 0;
    padding: 16px;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
    color: var(--ink);
    font: 14px/1.7 "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.raw-mail-details {
    margin-top: 8px;
}

.raw-mail-details summary {
    cursor: pointer;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.raw-mail-details[open] summary {
    margin-bottom: 9px;
}

.danger-zone {
    border-color: #efc5c2;
}

.danger-zone .panel-head {
    border-bottom-color: #efc5c2;
    background: #fff8f8;
}

.app-dialog {
    width: min(470px, calc(100% - 32px));
    max-width: none;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ink);
    overflow: visible;
}

.app-dialog::backdrop {
    background: rgba(17, 28, 21, 0.5);
    backdrop-filter: blur(2px);
}

.app-dialog-frame {
    padding: 24px;
    border: 1px solid rgba(23, 34, 27, 0.14);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 22px 60px rgba(17, 28, 21, 0.22);
}

.app-dialog-head {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.app-dialog-head h2 {
    margin: 1px 0 6px;
    font-size: 18px;
    line-height: 1.3;
}

.app-dialog-head p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.app-dialog-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid #c8d8e7;
    border-radius: 50%;
    background: var(--blue-soft);
    color: var(--blue);
    font-size: 17px;
    font-weight: 850;
}

.app-dialog-mark[data-tone="danger"] {
    border-color: #efc5c2;
    background: var(--red-soft);
    color: var(--red);
}

.app-dialog-mark[data-tone="loading"] {
    border-color: #b9dcc7;
    background: var(--green-soft);
    color: var(--green-dark);
}

.app-dialog[data-mode="loading"] .app-dialog-mark span {
    width: 19px;
    height: 19px;
    border: 2px solid rgba(22, 115, 74, 0.2);
    border-top-color: var(--green);
    border-radius: 50%;
    animation: dialog-spin 0.8s linear infinite;
}

.app-dialog-extra {
    margin-top: 18px;
}

.app-dialog-copy {
    min-height: 84px;
    resize: vertical;
    font: 12px/1.55 Consolas, "SFMono-Regular", monospace;
}

.app-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 24px;
}

@keyframes dialog-spin {
    to {
        transform: rotate(360deg);
    }
}

.auth-shell {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 28px 20px;
}

.auth-card {
    width: min(440px, 100%);
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--surface);
    box-shadow: 0 14px 34px rgba(23, 34, 27, 0.09);
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 26px;
    font-size: 18px;
    font-weight: 800;
}

.auth-card h1 {
    margin: 0 0 7px;
    font-size: 25px;
}

.auth-subtitle {
    margin: 0 0 24px;
    color: var(--muted);
}

.auth-card .button {
    width: 100%;
}

.auth-note {
    margin-top: 18px;
    color: var(--muted);
    font-size: 12px;
}

.auth-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 16px;
    margin-top: 18px;
    color: var(--muted);
    font-size: 12px;
}

.honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.error-page {
    width: min(560px, 100%);
    margin: 80px auto;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.error-page h1 {
    margin-top: 0;
}

.muted {
    color: var(--muted);
}

.message-list-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--green-dark);
    font-size: 12px;
    font-weight: 750;
}

.live-indicator-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 3px var(--green-soft);
}

.live-indicator[data-state="loading"] .live-indicator-dot {
    animation: live-pulse 0.9s ease-in-out infinite;
}

.live-indicator[data-state="error"] {
    color: var(--amber);
}

.live-indicator[data-state="error"] .live-indicator-dot {
    background: var(--amber);
    box-shadow: 0 0 0 3px var(--amber-soft);
}

@keyframes live-pulse {
    50% {
        opacity: 0.35;
    }
}

.nowrap {
    white-space: nowrap;
}

@media (max-width: 900px) {
    .topbar-inner {
        width: min(100% - 24px, 1180px);
        min-height: 58px;
        gap: 15px;
        flex-wrap: wrap;
        padding: 9px 0;
    }

    .main-nav {
        order: 3;
        width: 100%;
        overflow-x: auto;
    }

    .main-nav a {
        min-height: 34px;
        padding: 0 10px;
    }

    .account-email {
        display: none;
    }

    .page-shell {
        width: min(100% - 24px, 1180px);
        margin-top: 22px;
    }

    .layout {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .domain-main {
        display: grid;
    }

    .domain-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .page-heading {
        display: grid;
    }

    .page-heading h1,
    .auth-card h1 {
        font-size: 23px;
    }

    .page-heading-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .panel-head,
    .panel-body,
    .domain-row {
        padding: 15px;
    }

    .input-row,
    .search-form {
        display: grid;
    }

    .panel-head {
        flex-wrap: wrap;
    }

    .panel-head-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .pagination {
        align-items: stretch;
        flex-direction: column;
        padding: 14px 15px;
    }

    .pagination-controls {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .pagination-links {
        width: 100%;
    }

    .pagination-jump {
        justify-content: flex-start;
    }

    .toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .search-form {
        width: 100%;
    }

    .key-value {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .message-summary {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .message-summary dd {
        margin-bottom: 9px;
    }

    .auth-card {
        padding: 24px 20px;
    }

    .app-dialog-frame {
        padding: 20px;
    }

    .app-dialog-head {
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 12px;
    }

    .app-dialog-mark {
        width: 36px;
        height: 36px;
    }

    .app-dialog-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .api-token-value {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 720px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }

    .settings-grid .field-full {
        grid-column: auto;
    }

    .form-actions .button {
        width: 100%;
    }

    .smtp-test-form {
        grid-template-columns: 1fr;
    }

    .smtp-test-form .button {
        width: 100%;
    }

    .mail-list-panel .panel-head {
        display: grid;
        gap: 10px;
        padding: 14px 16px;
    }

    .mail-list-panel .search-form {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        width: 100%;
        gap: 8px;
    }

    .mail-list-panel .search-form .input,
    .mail-list-panel .search-form .button {
        min-height: 40px;
    }

    .mail-list-panel .message-list-meta {
        justify-content: space-between;
        font-size: 12px;
    }

    .mail-table {
        display: block;
        min-width: 0;
    }

    .mail-table thead {
        display: none;
    }

    .mail-table tbody {
        display: block;
    }

    .mail-table tr {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 5px 12px;
        padding: 14px 16px;
        border-bottom: 1px solid var(--line);
    }

    .mail-table tbody tr:last-child {
        border-bottom: 0;
    }

    .mail-table td {
        display: block;
        min-width: 0;
        padding: 0;
        border: 0;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .mail-table td:nth-child(1) {
        grid-column: 2;
        grid-row: 3;
        align-self: end;
        color: var(--muted);
        font-size: 11px;
        text-align: right;
        white-space: nowrap;
    }

    .mail-table td:nth-child(2) {
        grid-column: 1 / -1;
        grid-row: 1;
        color: var(--ink);
        font-size: 13px;
        font-weight: 750;
        line-height: 1.45;
    }

    .mail-table td:nth-child(3) {
        grid-column: 1;
        grid-row: 3;
        align-self: end;
        color: var(--muted);
        font-size: 11px;
        line-height: 1.4;
    }

    .mail-table td:nth-child(4) {
        grid-column: 1 / -1;
        grid-row: 2;
        padding: 1px 0 4px;
    }

    .mail-table td:nth-child(3)::before {
        content: "收件人";
        display: inline;
        margin-right: 6px;
        color: var(--muted);
        font-weight: 600;
    }

    .mail-table .subject {
        max-width: none;
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
    }

    .mail-table .subject a {
        display: block;
        color: var(--ink);
        font-size: 15px;
        font-weight: 750;
        line-height: 1.45;
        overflow-wrap: anywhere;
    }

    .mail-table .subject a:hover {
        color: var(--green-dark);
    }

    .mail-list-panel .pagination {
        flex-wrap: wrap;
        padding: 14px 16px;
    }

    .dns-table {
        display: block;
        min-width: 0;
        table-layout: auto;
    }

    .dns-table colgroup,
    .dns-table thead {
        display: none;
    }

    .dns-table tbody {
        display: block;
    }

    .dns-table tr {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto auto;
        gap: 9px 10px;
        align-items: center;
        padding: 14px 16px;
        border-bottom: 1px solid var(--line);
    }

    .dns-table tbody tr:last-child {
        border-bottom: 0;
    }

    .dns-table td {
        display: block;
        min-width: 0;
        padding: 0;
        border: 0;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .dns-table td::before {
        content: none;
    }

    .dns-table td:nth-child(1) {
        grid-column: 1;
        grid-row: 1;
    }

    .dns-table td:nth-child(4) {
        grid-column: 3;
        grid-row: 1;
    }

    .dns-table td:nth-child(2) {
        grid-column: 2;
        grid-row: 1;
        font-size: 13px;
        font-weight: 750;
        line-height: 1.4;
    }

    .dns-table td:nth-child(3) {
        grid-column: 1 / -1;
        grid-row: 2;
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 3px 8px;
    }

    .dns-table td:nth-child(5) {
        grid-column: 4;
        grid-row: 1;
        justify-self: end;
        text-align: right;
    }

    .dns-table td:nth-child(5) form {
        margin: 0;
    }

    .dns-table .code {
        display: inline;
        padding: 2px 5px;
        font-size: 11px;
        max-width: 100%;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .dns-table td:nth-child(4) .badge {
        min-height: 22px;
        padding: 2px 7px;
        white-space: nowrap;
    }

    .dns-table td:nth-child(5) .button {
        min-height: 28px;
        padding: 0 9px;
        border-color: #efc5c2;
        background: #fff;
        color: var(--red);
    }

    .dns-table .hint {
        font-size: 11px;
        white-space: nowrap;
    }

    .users-table {
        display: block;
        min-width: 0;
    }

    .users-table thead {
        display: none;
    }

    .users-table tbody {
        display: block;
    }

    .users-table tr {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px 14px;
        padding: 14px 16px;
        border-bottom: 1px solid var(--line);
    }

    .users-table tbody tr:last-child {
        border-bottom: 0;
    }

    .users-table td,
    .users-table td:last-child {
        display: block;
        width: auto;
        min-width: 0;
        padding: 0;
        border: 0;
        text-align: left;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .users-table td:nth-child(1) {
        grid-column: 1 / -1;
        grid-row: 1;
        font-weight: 750;
    }

    .users-table td:nth-child(2) {
        grid-column: 1;
        grid-row: 2;
    }

    .users-table td:nth-child(3) {
        grid-column: 1;
        grid-row: 3;
    }

    .users-table td:nth-child(3)::before {
        content: "域名 ";
        color: var(--muted);
    }

    .users-table td:nth-child(4) {
        grid-column: 2;
        grid-row: 3;
        color: var(--muted);
        text-align: right;
    }

    .users-table td:nth-child(4)::before {
        content: "邮件 ";
    }

    .users-table td:nth-child(5) {
        grid-column: 2;
        grid-row: 2;
        color: var(--muted);
        font-size: 11px;
        text-align: right;
    }

    .users-table td:nth-child(6) {
        grid-column: 1 / -1;
        grid-row: 4;
        padding-top: 3px;
        text-align: right;
    }

    .users-actions {
        flex-wrap: wrap;
    }

    .dns-page-heading {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .dns-page-heading h1 {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .dns-page-heading .button {
        flex: none;
        min-height: 34px;
        padding: 0 11px;
        font-size: 12px;
    }

    .dns-panel .panel-head {
        flex-wrap: nowrap;
        padding: 14px 16px;
    }

    .dns-panel .panel-head-actions {
        width: auto;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
}

