[v-cloak] { display: none; }
:root {
    --bg: #fff;
    --surface: #fff;
    --surface-soft: #f7f9f8;
    --text: #202928;
    --muted: #7a8582;
    --border: #e5eae8;
    --accent: #16736a;
    --accent-dark: #105c54;
    --green: #238254;
    --red: #bf4545;
}
* { box-sizing: border-box; letter-spacing: 0; }
body { margin: 0; font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; background: var(--bg); color: var(--text); }
button, input, select, textarea { font: inherit; }
button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 38px; padding: 8px 14px; border: 1px solid transparent; border-radius: 6px; background: var(--accent); color: white; font-weight: 500; cursor: pointer; transition: background .15s, border-color .15s; white-space: nowrap; -webkit-tap-highlight-color: transparent; }
button:hover { background: var(--accent-dark); }
button:disabled { cursor: not-allowed; color: #a5adaa; border-color: #e7ebe9; background: #f4f6f5; }
button:focus-visible, summary:focus-visible { outline: 3px solid #acd8d0; outline-offset: 3px; }
.icon { width: 18px; height: 18px; flex: 0 0 18px; }
.secondary-btn { background: #fff; color: #425c57; border-color: #d8e0dc; }
.secondary-btn:hover { background: #f4f8f6; border-color: #a8bdb6; }
.icon-btn { width: 34px; min-height: 34px; flex: 0 0 34px; padding: 7px; color: #66736e; background: transparent; border-color: transparent; }
.icon-btn:hover { background: #eff4f1; color: var(--accent); }
.text-btn { min-height: 32px; padding: 5px 9px; color: var(--accent); background: transparent; }
.text-btn:hover { background: #edf6f2; }
.danger-small { background: #fff; color: var(--red); border-color: #ead6d6; }
.danger-small:hover { background: #fff2f1; color: #a33232; border-color: #dfb4b0; }
.icon-btn.danger-small { border: 0; background: transparent; }
.icon-btn.danger-small:hover { background: #fff2f1; }
input, select, textarea { width: 100%; min-width: 0; min-height: 40px; padding: 9px 12px; color: var(--text); background: #fff; border: 1px solid #dce3df; border-radius: 6px; outline: 0; }
input::placeholder, textarea::placeholder { color: #97a09c; }
input:focus, select:focus, textarea:focus { border-color: #7eafa4; box-shadow: 0 0 0 3px #eaf4f0; }
input:disabled, select:disabled, textarea:disabled { opacity: .65; cursor: not-allowed; }
input[type=checkbox] { appearance: auto; width: 16px; height: 16px; min-height: 16px; padding: 0; margin: 0; flex: 0 0 16px; accent-color: var(--accent); cursor: pointer; }
textarea { resize: vertical; line-height: 1.7; }
label { display: block; margin: 20px 0 8px; font-size: 13px; font-weight: 500; color: #48554f; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: 24px; line-height: 1.4; font-weight: 650; }
h2 { font-size: 18px; font-weight: 600; }
h3 { font-size: 15px; font-weight: 600; }
.muted, .is-muted, .count-label { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.brand-mark { display: inline-flex; justify-content: center; align-items: center; width: 28px; height: 28px; flex: 0 0 28px; background: var(--accent); color: #fff; font-size: 20px; font-weight: 500; border-radius: 6px; }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 216px; display: flex; flex-direction: column; padding: 24px 12px 16px; background: #f5f7f6; border-right: 1px solid var(--border); z-index: 30; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 10px 28px; white-space: nowrap; }
.brand strong { font-size: 19px; font-weight: 650; }
.sidebar nav { display: grid; gap: 6px; }
.nav-btn { justify-content: flex-start; width: 100%; height: 42px; padding: 10px 14px; background: transparent; color: #52615a; border-radius: 6px; }
.nav-btn .icon { margin-right: 4px; }
.nav-btn:hover { background: #eaf0ed; color: #243d32; }
.nav-btn.active { background: #e0eeea; color: #14695f; font-weight: 600; }
.logout { margin-top: auto; justify-content: flex-start; padding: 12px 14px; background: transparent; color: #67736c; border-top: 1px solid var(--border); border-radius: 0; }
.logout:hover { color: #283d33; background: #eaf0ed; }
.workspace { min-width: 0; margin-left: 216px; padding: 0 28px 28px; }
.topbar { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 -28px; padding: 10px 28px; border-bottom: 1px solid var(--border); }
.breadcrumb { display: flex; align-items: center; gap: 15px; min-width: 0; }
.breadcrumb > span { color: #818b86; }
.breadcrumb strong { font-size: 13px; font-weight: 500; }
.breadcrumb-divider { color: #bec6c2 !important; }
.account-switch { position: relative; display: flex; align-items: center; min-width: 0; max-width: 230px; }
.account-switch > .icon { position: absolute; left: 11px; color: #7c8982; pointer-events: none; }
.account-switch select { height: 36px; min-height: 36px; padding: 6px 28px 6px 36px; font-size: 13px; }
.panel { padding: 32px 0 0; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 24px; }
.heading-count { color: #8d9791; font-size: 16px; font-weight: 400; margin-left: 10px; }
.toolbar-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.filters { position: relative; display: grid; grid-template-columns: minmax(170px, 1.2fr) minmax(130px,.65fr) minmax(145px,.75fr) minmax(170px,1.2fr); gap: 12px; margin-bottom: 20px; }
.filters.no-dns { grid-template-columns: minmax(170px,1fr) minmax(130px,200px); }
.filters > .icon-btn { position: absolute; right: 7px; top: 3px; width: 30px; min-height: 30px; background: #fff; }
.filters:has(> .icon-btn) > .search-field:last-of-type input { padding-right: 40px; }
.search-field { position: relative; min-width: 0; }
.search-field > .icon { position: absolute; left: 12px; top: 11px; color: #8e9a93; pointer-events: none; }
.search-field input { padding-left: 38px; }
.selection-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; min-height: 58px; padding: 10px 14px; margin-bottom: 20px; border: 1px solid var(--border); border-radius: 6px; font-size: 12px; color: #6a7770; }
.selection-bar > span { padding-left: 18px; border-left: 1px solid var(--border); }
.check-row { display: flex; align-items: center; gap: 9px; margin: 0; padding: 12px 0; font-size: 13px; font-weight: 400; }
.selection-bar .check-row { padding: 0; }
.bulk-actions { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.bulk-actions button { min-height: 32px; font-size: 12px; padding: 6px 10px; gap: 6px; }
.bulk-actions .icon { width: 14px; height: 14px; flex-basis: 14px; }
.table-scroll { overflow-x: auto; width: 100%; border: 1px solid var(--border); border-radius: 6px; }
.domain-table { width: 100%; border-collapse: collapse; font-size: 13px; text-align: left; }
.domain-table th { height: 44px; padding: 10px 16px; font-size: 12px; font-weight: 500; color: #76837b; background: #f7f9f8; border-bottom: 1px solid var(--border); white-space: nowrap; }
.domain-table td { height: 60px; padding: 10px 16px; border-bottom: 1px solid #edf0ee; }
.domain-table tr:last-child td { border-bottom: 0; }
.domain-table th:first-child, .domain-table td:first-child { width: 42px; padding-right: 0; }
.domain-name { width: 38%; max-width: 400px; overflow-wrap: anywhere; }
.domain-name b { font-weight: 500; }
.domain-name small { display: block; font-size: 11px; margin-top: 4px; }
.domain-row:hover { background: #fafcfb; }
.domain-row.is-selected { background: #f1f8f4; }
.zone-status { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; color: #6e7a73; font-size: 12px; }
.zone-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #a6b1ab; }
.zone-status.status-active { color: #357b52; }
.zone-status.status-active::before { background: #31a16a; }
.zone-status.status-pending { color: #967322; }
.zone-status.status-pending::before { background: #dbb043; }
.dns-summary { max-width: 170px; font-size: 12px; overflow-wrap: anywhere; }
.actions-heading { text-align: right; }
.zone-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.zone-actions .danger-small { margin-left: 5px; }
.table-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 15px; color: #7e8983; font-size: 12px; }
.table-footer > span:last-child { display: flex; align-items: center; gap: 5px; }
.table-footer .icon { width: 14px; height: 14px; }
.empty-cell { text-align: center; padding: 54px 20px !important; }
.empty-cell > .icon { display: block; width: 28px; height: 28px; margin: 0 auto 14px; color: #9bada2; }
.empty-cell strong { display: block; font-size: 14px; font-weight: 400; color: #7c8981; margin-bottom: 18px; }
.account-form { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; max-width: 950px; margin-bottom: 24px; }
.form-field { flex: 1 1 220px; min-width: 0; }
.form-field label { margin-top: 0; }
.account-form > input { flex: 1 1 220px; min-width: 0; }
.account-form button { min-height: 40px; }
.spaced-title { margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 15px; }
.token-list { display: grid; gap: 0; }
.token-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.token-row b { display: block; font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.token-row span { display: block; color: #8b9890; font: 12px/1.5 ui-monospace, monospace; margin-top: 5px; overflow-wrap: anywhere; }
.token-row.active b::after { content: '当前账号'; display: inline-block; margin-left: 12px; color: #3c7c5b; background: #ecf5ee; border-radius: 4px; padding: 2px 6px; font-size: 10px; font-weight: 400; }
.token-actions { display: flex; gap: 8px; flex-shrink: 0; }
.task-form { max-width: 760px; }
.management-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 40px; }
.management-form { min-width: 0; }
.management-form > h2 { margin-bottom: 24px; }
.management-form .check-row { padding: 7px 0; margin: 0; }
.token-row a { display: block; color: var(--accent); font-size: 12px; margin-top: 7px; overflow-wrap: anywhere; }
.audit-message { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 100%; font: 12px/1.7 ui-monospace,monospace; }
.customer-rules { margin-top: 36px; }
.dns-modal-body.read-only { grid-template-columns: 1fr; }
.zone-status.status-authorized { color: #357b52; }
.zone-status.status-expired { color: #ac5e49; }
.task-form > label:first-child { margin-top: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.form-footer { display: flex; gap: 10px; padding-top: 22px; margin-top: 10px; border-top: 1px solid var(--border); }
.notice { padding: 12px 14px; border: 1px solid #d5e6dc; color: #557462; background: #f4f9f5; border-radius: 6px; font-size: 12px; margin: 16px 0; overflow-wrap: anywhere; }
.error-notice { background: #fdf3f1; color: #b7473e; border-color: #efdad5; }
.error-text { color: var(--red); }
.activity { padding: 14px 16px; background: #f6faf8; border: 1px solid #e0ebe4; border-radius: 6px; margin-top: 20px; }
.activity-label { display: flex; gap: 10px; font-size: 12px; color: #49705d; margin-bottom: 12px; align-items: center; }
.activity-label > span { flex: 1; overflow-wrap: anywhere; }
.activity-label b { font: 12px ui-monospace,monospace; }
.activity-track { height: 4px; border-radius: 4px; background: #dfebe3; overflow: hidden; }
.activity-track > div { height: 100%; background: var(--accent); border-radius: 4px; transition: width .2s; }
.activity-track.indeterminate > div { width: 32% !important; animation: progress 1.5s infinite ease-in-out; }
.spin { animation: spin 1.5s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes progress { from { transform: translateX(-100%); } to { transform: translateX(420%); } }
.log-card { margin-top: 28px; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.log-card summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 12px 16px; font-size: 12px; }
.log-card summary::-webkit-details-marker { display: none; }
.log-card summary strong { font-weight: 500; }
.log-card summary > span { color: #98a19d; margin-left: auto; }
.log-card summary .icon { width: 14px; height: 14px; }
.log-card[open] summary { border-bottom: 1px solid var(--border); }
.log-card[open] summary .icon { transform: rotate(90deg); }
.log-box { background: #fafcfb; color: #7c8981; padding: 16px 20px; max-height: 240px; overflow: auto; font: 12px/1.9 ui-monospace,monospace; overflow-wrap: anywhere; }
.log-box .success { color: #3e8058; }
.log-box .error { color: #b44d48; }
.auth-shell { min-height: 100vh; padding: 48px 20px; display: grid; place-items: center; background: #f7f9f8; }
.auth-card { width: min(440px,100%); background: white; border: 1px solid var(--border); border-radius: 8px; padding: 32px; }
.auth-brand { display: flex; gap: 10px; align-items: center; padding-bottom: 28px; margin-bottom: 26px; border-bottom: 1px solid var(--border); font-size: 18px; }
.auth-card h1 { font-size: 20px; margin-bottom: 22px; }
.auth-card form > button { width: 100%; margin-top: 26px; }
.auth-log { margin-top: 16px; color: var(--red); font-size: 12px; overflow-wrap: anywhere; }
.modal-backdrop { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: #182f2659; padding: 24px; backdrop-filter: blur(2px); }
.modal-card { width: min(520px,100%); max-height: calc(100dvh - 48px); overflow-y: auto; background: white; border: 1px solid #dae5df; border-radius: 8px; padding: 26px; box-shadow: 0 16px 80px #142b2426; }
.modal-card > h3 { font-size: 19px; }
.modal-card p { color: #75837a; font-size: 13px; }
.modal-card pre { background: #f5f8f6; color: #42604e; padding: 16px; max-height: 240px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; border: 1px solid var(--border); border-radius: 4px; font-size: 12px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 26px; }
.modal-actions button:first-child { background: white; color: #526b5b; border-color: #dce4df; }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.modal-header h2 { margin-bottom: 6px; }
.modal-header p { margin-bottom: 0; overflow-wrap: anywhere; }
.dns-modal { width: min(980px,100%); }
.dns-modal-body { display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: 24px; margin-top: 24px; }
.dns-record-form { padding-left: 24px; border-left: 1px solid var(--border); }
.dns-record-form h3 { margin-bottom: 18px; }
.dns-record-form label { margin-top: 16px; }
.dns-record-form .toggle-row { justify-content: space-between; padding: 12px 0 4px; }
.toggle-row input[role=switch] { appearance: none; width: 32px; height: 18px; flex-basis: 32px; border: 0; border-radius: 12px; background: #ced9d2; padding: 2px; }
.toggle-row input[role=switch]::before { content: ''; display: block; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .15s; }
.toggle-row input[role=switch]:checked { background: var(--accent); }
.toggle-row input[role=switch]:checked::before { transform: translateX(14px); }
.dns-record-list { max-height: 440px; overflow-y: auto; }
.dns-record-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--border); }
.record-meta { position: relative; min-width: 0; padding-left: 64px; }
.record-type { position: absolute; left: 0; top: 0; background: #f0f5f2; color: #6d8576; font-size: 10px; padding: 3px 5px; border-radius: 4px; }
.record-meta b { display: block; font-size: 12px; font-weight: 500; overflow-wrap: anywhere; }
.record-meta > span:not(.record-type) { display: block; color: #7d8e82; font-size: 12px; margin-top: 4px; overflow-wrap: anywhere; }
.record-meta small { display: block; font-size: 10px; color: #7f9c88; margin-top: 6px; }
.record-actions { display: flex; }
.record-empty { padding: 35px 0; text-align: center; color: var(--muted); }
.mobile-menu, .mobile-close, .sidebar-backdrop { display: none; }
@media(min-width: 1700px) { .workspace > .panel, .workspace > .log-card { max-width: 1400px; } }
@media(max-width: 1150px) { .filters { grid-template-columns: repeat(2,minmax(0,1fr)); } .selection-bar { gap: 12px; } .bulk-actions { margin-left: 0; } .domain-table { min-width: 680px; } }
@media(max-width: 800px) {
    .management-grid { grid-template-columns: 1fr; gap: 30px; }
    .sidebar { transform: translateX(-100%); transition: transform .2s; width: 240px; }
    .sidebar.is-open { transform: translateX(0); }
    .sidebar .brand { padding-right: 0; gap: 8px; }
    .sidebar-backdrop { display: block; position: fixed; inset: 0; width: 100%; height: 100%; background: #1c342951; z-index: 29; border: 0; border-radius: 0; }
    .mobile-menu, .mobile-close { display: inline-flex; }
    .mobile-close { margin-left: auto; }
    .workspace { margin: 0; padding: 0 20px 24px; }
    .topbar { margin: 0 -20px; padding: 12px 16px; }
    .breadcrumb { gap: 8px; }
    .breadcrumb > span:first-of-type, .breadcrumb-divider { display: none; }
    .account-switch { max-width: 170px; }
    .panel { padding-top: 24px; }
    h1 { font-size: 22px; }
    .dns-modal-body { grid-template-columns: 1fr; }
    .dns-record-form { border-left: 0; border-top: 1px solid var(--border); padding: 22px 0 0; }
    .dns-record-list { max-height: 220px; }
}
@media(max-width: 480px) {
    .workspace { padding-left: 16px; padding-right: 16px; }
    .topbar { margin-left: -16px; margin-right: -16px; }
    .section-head { align-items: flex-start; flex-direction: column; gap: 18px; }
    .section-head .toolbar-actions { width: 100%; }
    .toolbar-actions > button { flex: 1; padding: 8px 10px; font-size: 12px; }
    .heading-count { font-size: 14px; }
    .filters { gap: 10px; grid-template-columns: repeat(2,minmax(0,1fr)); }
    .filters.no-dns { grid-template-columns: 1fr; }
    .filters .search-field { grid-column: 1 / -1; }
    .filters > .search-field:first-child { order: -1; }
    .filters input, .filters select { font-size: 13px; }
    .filters > .icon-btn { top: auto; bottom: 3px; }
    .selection-bar { gap: 10px; padding: 12px; }
    .selection-bar > span { padding-left: 10px; }
    .bulk-actions { width: 100%; gap: 6px; }
    .bulk-actions button { flex: 1; font-size: 11px; padding: 6px; }
    .bulk-actions .icon { display: none; }
    .grid-2 { grid-template-columns: 1fr; gap: 0; }
    .token-row { align-items: flex-start; flex-direction: column; }
    .account-form > button { width: 100%; }
    .modal-backdrop { padding: 12px; }
    .modal-card { max-height: calc(100dvh - 24px); padding: 20px; }
    .auth-card { padding: 24px; }
}
@media(prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
