:root { --ink: #17202b; --muted: #718096; --line: #e7ebf0; --surface: #fff; --bg: #f5f7fa; --blue: #246bfe; --blue-dark: #1756da; --green: #16a474; --amber: #d88918; --violet: #7856d8; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--bg); font-family: "Microsoft YaHei", "微软雅黑", "Microsoft YaHei UI", "Segoe UI", sans-serif; }
button, input { font: inherit; }
button { cursor: pointer; }
.auth-shell { min-height: 100vh; background: #f7f9fc; }
.auth-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(380px, .9fr) 1.1fr; }
.auth-intro { padding: clamp(44px, 8vw, 104px) clamp(32px, 7vw, 112px); color: #fff; background: #162b45; position: relative; overflow: hidden; }
.auth-intro::after { content: ""; position: absolute; width: 430px; height: 430px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; right: -190px; bottom: -160px; box-shadow: 0 0 0 48px rgba(255,255,255,.025), 0 0 0 96px rgba(255,255,255,.02); }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 6px; color: #fff; background: var(--blue); font-size: 22px; font-weight: 800; box-shadow: 0 6px 14px rgba(36,107,254,.22); }
.brand-mark.small { width: 31px; height: 31px; border-radius: 8px; font-size: 17px; }
.eyebrow { margin: 0 0 14px; font-size: 11px; letter-spacing: .16em; font-weight: 800; color: #8194ae; }
.auth-intro .eyebrow { margin-top: 96px; color: #8eabd1; }
.auth-intro h1 { max-width: 500px; margin: 0; font-size: clamp(34px, 3.6vw, 48px); line-height: 1.16; letter-spacing: 0; }
.intro-copy { max-width: 390px; margin: 25px 0 32px; color: #b2c2d7; line-height: 1.75; }
.intro-status { position: relative; z-index: 1; display: inline-flex; gap: 9px; align-items: center; padding: 9px 12px; border: 1px solid rgba(255,255,255,.16); border-radius: 4px; color: #c7d6e9; font-size: 12px; }
.intro-status span { width: 7px; height: 7px; border-radius: 50%; background: #40d9a0; box-shadow: 0 0 0 4px rgba(64,217,160,.13); }
.auth-panel { display: grid; place-items: center; padding: 40px 32px; background: #f7f9fc; }
.auth-card { width: min(100%, 468px); padding: 40px; border: 1px solid #dbe2ea; border-radius: 6px; background: var(--surface); box-shadow: 0 8px 24px rgba(31,52,76,.05); }
.panel-heading, .form-row, .page-heading, .card-heading, .topbar, .user-menu, .check-row { display: flex; align-items: center; justify-content: space-between; }
.panel-heading h2 { margin: 0; font-size: 24px; letter-spacing: 0; }
.panel-version { color: #a1acb9; font-size: 11px; font-weight: 700; }
.role-tab { border: 0; padding: 10px; border-radius: 5px; color: var(--muted); background: transparent; font-size: 13px; font-weight: 700; }
.role-tab.active { color: var(--ink); background: #fff; box-shadow: 0 2px 7px rgba(25,44,67,.08); }
.auth-form { display: grid; gap: 19px; }
.auth-form label { display: grid; gap: 7px; color: #526273; font-size: 12px; font-weight: 700; }
.auth-form input:not([type=checkbox]) { width: 100%; height: 46px; padding: 0 13px; border: 1px solid #c7d1dd; border-radius: 3px; outline: none; color: #1c2b3a; background: #f8fafc; box-shadow: inset 0 1px 2px rgba(26,47,70,.025); font-size: 14px; transition: border-color .15s, background .15s, box-shadow .15s; }
.auth-form input:not([type=checkbox]):hover { border-color: #9eafc2; background: #fff; }
.auth-form input:focus { border-color: #2f6feb; background: #fff; box-shadow: 0 0 0 3px rgba(47,111,235,.11); }
.password-field { position: relative; }
.password-field input { padding-right: 56px !important; }
.icon-button { position: absolute; right: 1px; top: 1px; height: 44px; padding: 0 11px; border: 0; border-left: 1px solid #e1e7ee; background: transparent; color: #55708f; font-size: 11px; font-weight: 700; }
.icon-button:hover { color: #1f5db3; background: #f0f5fb; }
.form-row { color: #8592a2; font-size: 12px; }
.form-row a, .auth-footer button, .check-row a { color: var(--blue); text-decoration: none; border: 0; background: transparent; font-size: inherit; }
.checkbox { display: flex !important; grid-template-columns: none !important; align-items: center; gap: 7px !important; font-weight: 500 !important; }
.primary-button { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 46px; border: 1px solid #163f6f; border-radius: 3px; padding: 0 15px; color: #fff; background: #1d4f86; box-shadow: 0 2px 4px rgba(18,54,92,.16); font-weight: 800; transition: background .15s, border-color .15s, box-shadow .15s; }
.primary-button:hover { border-color: #0f3157; background: #153e6b; box-shadow: 0 3px 8px rgba(18,54,92,.22); }
.primary-button .button-arrow { display: grid; place-items: center; width: 29px; height: 30px; border-left: 1px solid rgba(255,255,255,.25); font-size: 18px; line-height: 1; }
.primary-button:disabled { cursor: wait; opacity: .65; }
.button-arrow { display: none !important; }
.auth-footer { margin: 26px 0 0; text-align: center; color: #8491a0; font-size: 12px; }
.auth-footer button { padding: 0 0 0 4px; font-weight: 800; }
.legal { color: #9ca8b7; font-size: 11px; }
.notice { margin: 0 0 16px; padding: 10px 12px; border-radius: 5px; background: #fff3f1; color: #b84b40; font-size: 12px; line-height: 1.5; }
.notice.success { background: #eafaf3; color: #12815c; }
.dashboard-shell { display: flex; min-height: 100vh; }
.sidebar { width: 242px; display: flex; flex-direction: column; flex-shrink: 0; padding: 24px 14px; color: #b8c7da; background: #152a44; }
.sidebar-brand { display: flex; align-items: center; gap: 11px; margin: 0 13px 47px; color: #fff; text-decoration: none; font-size: 15px; font-weight: 800; }
.sidebar-label { margin: 0 13px 10px; color: #7188a5; font-size: 10px; letter-spacing: .14em; font-weight: 800; }
.sidebar-nav { display: grid; gap: 4px; margin-bottom: 31px; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: 6px; color: #b9c9dd; text-decoration: none; font-size: 13px; font-weight: 650; }
.nav-item.active { color: #fff; background: #224466; }
.nav-item.muted { opacity: .75; }
.nav-item.muted:hover { opacity: 1; background: rgba(255,255,255,.05); }
.nav-icon { width: 17px; text-align: center; color: #85a6d0; font-size: 17px; }
.sidebar-bottom { margin-top: auto; padding: 11px 5px; }
.support-card { display: flex; align-items: center; gap: 10px; padding: 14px 11px; border: 1px solid rgba(255,255,255,.1); border-radius: 7px; }
.support-card strong, .support-card small { display: block; }.support-card strong { color: #d9e3ef; font-size: 11px; }.support-card small { margin-top: 4px; color: #7e97b6; font-size: 10px; }.support-dot { width: 7px; height: 7px; border-radius: 50%; background: #3cd29b; }
.dashboard-main { min-width: 0; flex: 1; }.topbar { min-height: 74px; padding: 0 40px; border-bottom: 1px solid var(--line); background: #fff; }.topbar-actions { display: flex; align-items: center; gap: 22px; margin-left: auto; }.help-button { width: 25px; height: 25px; border: 1px solid #dce3eb; border-radius: 50%; color: #7f8da0; background: #fff; }.user-menu { gap: 10px; }.user-menu strong, .user-menu small { display: block; }.user-menu strong { font-size: 12px; }.user-menu small { margin-top: 2px; color: #8a96a5; font-size: 10px; }.avatar { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 50%; color: #2450a4; background: #dce9ff; font-weight: 800; }.logout-button { margin-left: 12px; border: 0; color: #8c98a5; background: transparent; font-size: 11px; }.mobile-brand { display: none; }.dashboard-content { max-width: 1320px; margin: auto; padding: 45px 40px 70px; }.page-heading { margin-bottom: 34px; }.page-heading h1 { margin: 0 0 8px; font-size: 28px; letter-spacing: -.04em; }.page-heading p:not(.eyebrow) { margin: 0; color: #8290a0; font-size: 13px; }.outline-button { padding: 10px 13px; border: 1px solid #dfe5ed; border-radius: 6px; color: #53667c; background: #fff; font-size: 12px; font-weight: 700; }.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }.stat-card { display: flex; align-items: center; gap: 14px; padding: 21px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }.stat-icon { display: grid; place-items: center; width: 41px; height: 41px; border-radius: 8px; font-size: 21px; }.stat-icon.blue { color: #3776ed; background: #e8f0ff; }.stat-icon.green { color: #11a477; background: #e5f8f0; }.stat-icon.amber { color: #d88416; background: #fff3df; }.stat-icon.violet { color: #7954d6; background: #f0ebff; }.stat-card span, .stat-card strong, .stat-card small { display: block; }.stat-card span { color: #7d8998; font-size: 11px; }.stat-card strong { margin: 4px 0 3px; font-size: 25px; letter-spacing: -.04em; }.stat-card small { color: #a2abb7; font-size: 10px; }.content-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 16px; margin-top: 18px; }.panel-card { min-height: 300px; padding: 23px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }.card-heading h2 { margin: 0 0 6px; font-size: 16px; }.card-heading p { margin: 0; color: #98a3b0; font-size: 11px; }.more-button { border: 0; color: #8995a3; background: transparent; font-size: 19px; }.empty-state { display: grid; place-items: center; align-content: center; min-height: 205px; color: #95a1af; text-align: center; }.empty-icon { display: grid; place-items: center; width: 45px; height: 45px; margin-bottom: 13px; border-radius: 50%; color: #8da4c0; background: #f0f4f8; font-size: 23px; }.empty-state strong { color: #637386; font-size: 13px; }.empty-state span { margin-top: 7px; font-size: 11px; }.check-list { display: grid; gap: 4px; margin-top: 20px; }.check-row { justify-content: flex-start; gap: 10px; padding: 13px 0; border-bottom: 1px solid #eef1f5; }.check-row > span { display: grid; place-items: center; width: 22px; height: 22px; flex-shrink: 0; border: 1px solid #ced8e4; border-radius: 50%; color: #7b8a9b; font-size: 10px; }.check-row.done > span { border-color: #bce9d6; color: #13a273; background: #e7f9f1; }.check-row div { flex: 1; }.check-row strong, .check-row small { display: block; }.check-row strong { font-size: 12px; }.check-row small { margin-top: 4px; color: #9ca7b3; font-size: 10px; }.check-row a { font-size: 11px; font-weight: 800; }
@media (max-width: 900px) { .auth-layout { grid-template-columns: 1fr; }.auth-intro { display: none; }.sidebar { width: 68px; padding: 18px 9px; }.sidebar-brand { justify-content: center; margin: 0 0 38px; }.sidebar-brand > span:last-child, .sidebar-label, .nav-item:not(.active) { display: none; }.nav-item { justify-content: center; padding: 12px 0; }.sidebar-bottom { display: none; }.topbar { padding: 0 20px; }.mobile-brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 13px; }.dashboard-content { padding: 32px 20px; }.stat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .auth-card { padding: 28px 22px; border: 0; box-shadow: none; }.auth-panel { padding: 20px 0; align-items: start; }.topbar { min-height: 62px; }.user-menu > div, .help-button { display: none; }.dashboard-content { padding: 25px 15px; }.page-heading { align-items: flex-start; gap: 15px; }.page-heading h1 { font-size: 23px; }.outline-button span { display: none; }.stat-grid, .content-grid { grid-template-columns: 1fr; }.panel-card { min-height: 260px; } }
.member-shell { min-height: 100vh; background: #f5f7fa; }.member-topbar { display: flex; align-items: center; justify-content: space-between; min-height: 74px; padding: 0 max(24px, calc((100vw - 1080px) / 2)); border-bottom: 1px solid var(--line); background: #fff; }.member-topbar .sidebar-brand { margin: 0; color: var(--ink); }.member-content { max-width: 1080px; margin: 0 auto; padding: 70px 24px; }.member-content h1 { margin: 0 0 10px; font-size: 34px; letter-spacing: -.04em; }.member-copy { color: var(--muted); font-size: 14px; }.member-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }.member-card { padding: 25px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }.member-card h2 { margin: 21px 0 8px; font-size: 16px; }.member-card strong, .member-card small { display: block; }.member-card strong { font-size: 28px; }.member-card small { margin-top: 8px; color: #98a3b0; font-size: 11px; }
.table-panel { border: 1px solid var(--line); border-radius: 8px; background: #fff; }.table-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-bottom: 1px solid #edf1f5; }.search-box { display: flex; align-items: center; gap: 8px; width: min(340px, 100%); height: 38px; padding: 0 11px; border: 1px solid #cbd5e1; border-radius: 4px; color: #75869a; background: #f8fafc; }.search-box:focus-within { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 2px rgba(47,111,235,.1); }.search-box input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 12px; }.table-total { color: #8b98a8; font-size: 12px; }.table-wrap { overflow-x: auto; }.data-table { width: 100%; border-collapse: collapse; min-width: 820px; }.data-table th { padding: 12px 20px; color: #8492a2; background: #fafbfd; font-size: 11px; font-weight: 700; text-align: left; white-space: nowrap; }.data-table td { padding: 15px 20px; border-top: 1px solid #edf1f5; color: #526273; font-size: 12px; white-space: nowrap; }.member-cell { display: flex; align-items: center; gap: 9px; color: var(--ink); }.table-avatar { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #285ba9; background: #e7effd; font-size: 11px; font-weight: 800; }.status-badge, .verify-state { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 3px; font-size: 10px; }.status-badge.active { color: #12815c; background: #e8f8f1; }.status-badge.disabled { color: #b14b43; background: #fff0ee; }.status-badge.pending { color: #9a6714; background: #fff6df; }.verify-state { color: #9a6714; background: #fff6df; }.verify-state.verified { color: #12815c; background: #e8f8f1; }.row-action { border: 0; color: var(--blue); background: transparent; font-size: 12px; font-weight: 700; }.table-loading, .table-empty { height: 180px; color: #8d9bab !important; text-align: center; }.pagination { display: flex; align-items: center; justify-content: space-between; padding: 15px 20px; border-top: 1px solid #edf1f5; color: #8b98a8; font-size: 11px; }.page-button { margin-left: 6px; padding: 7px 10px; border: 1px solid #d5dee8; border-radius: 3px; color: #526273; background: #fff; font-size: 11px; }.page-button:disabled { cursor: default; opacity: .45; }.modal-backdrop { position: fixed; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(16,32,51,.38); z-index: 10; }.modal-backdrop[hidden] { display: none; }.modal-card { width: min(100%, 470px); padding: 27px; border: 1px solid #dce3eb; border-radius: 6px; background: #fff; box-shadow: 0 18px 50px rgba(22,43,69,.18); }.modal-heading { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 22px; }.modal-heading h2 { margin: 0; font-size: 21px; }.modal-close { border: 0; color: #8693a2; background: transparent; font-size: 25px; line-height: 1; }.settings-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; }.settings-card, .settings-help { border: 1px solid var(--line); border-radius: 8px; background: #fff; }.settings-card { padding: 24px; }.settings-help { align-self: start; padding: 24px; color: #66788d; }.settings-help h2 { margin: 17px 0 8px; color: var(--ink); font-size: 16px; }.settings-help p { margin: 0; font-size: 12px; line-height: 1.7; }.settings-help ul { margin: 17px 0 0; padding-left: 17px; font-size: 11px; line-height: 2; }.help-icon { display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid #bdd0e7; border-radius: 50%; color: #2b65b2; font-weight: 800; }.settings-form { display: grid; gap: 17px; margin-top: 24px; }.settings-form label { display: grid; gap: 7px; color: #526273; font-size: 12px; font-weight: 700; }.settings-form input, .settings-form select { width: 100%; height: 42px; padding: 0 11px; border: 1px solid #cbd5e1; border-radius: 3px; outline: 0; color: var(--ink); background: #f8fafc; font-size: 13px; }.settings-form input:focus, .settings-form select:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 2px rgba(47,111,235,.1); }.settings-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }.settings-divider { height: 1px; background: #edf1f5; }.settings-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 5px; }.settings-actions .outline-button { cursor: pointer; }.settings-save { min-width: 128px; }.settings-check { display: flex !important; align-items: center; gap: 8px !important; }.settings-check input { width: 15px; height: 15px; }
@media (max-width: 900px) { .settings-layout { grid-template-columns: 1fr; }.settings-help { display: none; } }
@media (max-width: 600px) { .table-toolbar, .pagination { align-items: flex-start; flex-direction: column; }.search-box { width: 100%; }.settings-two-col { grid-template-columns: 1fr; }.settings-actions { flex-direction: column-reverse; }.settings-actions button { width: 100%; } }

.task-search-controls { display: flex; align-items: center; gap: 8px; width: min(520px, 100%); }
.task-search-controls select { height: 38px; padding: 0 28px 0 10px; border: 1px solid #cbd5e1; border-radius: 4px; color: var(--ink); background: #f8fafc; font-size: 12px; }
.task-search-controls .search-box { flex: 1; width: auto; }
@media (max-width: 600px) { .task-search-controls { width: 100%; }.task-search-controls select { flex: 0 0 110px; }.task-search-controls .search-box { width: auto; } }
.row-action { margin-right: 12px; }.row-action.danger { margin-right: 0; color: #b14b43; }.page-actions { display: flex; align-items: center; gap: 9px; }.compact-button { min-height: 39px; padding-left: 13px; font-size: 12px; }.compact-button .button-arrow { width: 23px; height: 26px; font-size: 16px; }

/* Member management controls follow the lighter, compact admin style. */
.dashboard-shell .sidebar { width: 252px; padding: 22px 12px; color: #475569; background: #fff; border-right: 1px solid #e7ebf2; }
.dashboard-shell .sidebar-brand { margin: 0 13px 47px; color: #17202b; }
.dashboard-shell .sidebar-label { color: #94a3b8; }
.dashboard-shell .nav-item { color: #475569; }
.dashboard-shell .nav-item.active { color: #4f46e5; background: #eef2ff; }
.dashboard-shell .nav-item.muted:hover { color: #4f46e5; background: #f5f7ff; }
.dashboard-shell .nav-icon { color: #64748b; }
.dashboard-shell .nav-item.active .nav-icon { color: #6366f1; }
.dashboard-shell .support-card { border-color: #e7ebf2; background: #f8fafc; }
.dashboard-shell .support-card strong { color: #334155; }
.dashboard-shell .support-card small { color: #94a3b8; }
.dashboard-shell .outline-button { min-height: 39px; padding: 0 13px; border: 1px solid #d8dee8; border-radius: 5px; color: #475569; background: #fff; box-shadow: 0 1px 2px rgba(15,23,42,.03); font-weight: 650; }
.dashboard-shell .outline-button:hover { border-color: #a5b4fc; color: #4f46e5; background: #fafaff; }
.dashboard-shell .primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 39px; padding: 0 13px; border: 1px solid #5962e8; border-radius: 5px; color: #fff; background: #6366f1; box-shadow: 0 2px 4px rgba(79,70,229,.2); font-size: 12px; font-weight: 700; }
.dashboard-shell .primary-button:hover { border-color: #4f46e5; background: #5558df; box-shadow: 0 3px 7px rgba(79,70,229,.25); }
.dashboard-shell .primary-button .button-arrow { width: auto; height: auto; border-left: 0; font-size: 16px; line-height: 1; }
.dashboard-shell .table-panel { border-color: #e5e9f0; box-shadow: 0 2px 8px rgba(15,23,42,.025); }
.dashboard-shell .table-toolbar { padding: 18px 20px; }
.dashboard-shell .page-button { border-color: #d8dee8; border-radius: 5px; background: #fff; }
.dashboard-shell .page-button:not(:disabled):hover { border-color: #a5b4fc; color: #4f46e5; background: #fafaff; }
.dashboard-shell .data-table th:last-child, .dashboard-shell .data-table td:last-child { width: 142px; text-align: right; }
.dashboard-shell .row-actions { display: inline-flex; align-items: center; justify-content: flex-end; gap: 7px; }
.dashboard-shell .row-action { display: inline-flex; align-items: center; justify-content: center; min-height: 30px; margin: 0; padding: 0 10px; border: 1px solid #d8dee8; border-radius: 5px; color: #4f46e5; background: #fff; font-size: 11px; font-weight: 650; }
.dashboard-shell .row-action:hover { border-color: #a5b4fc; background: #f5f7ff; }
.dashboard-shell .row-action.danger { color: #c84b55; }
.dashboard-shell .row-action.danger:hover { border-color: #f0a8ad; background: #fff5f5; }
.dashboard-shell .modal-backdrop { background: rgba(15, 23, 42, .46); backdrop-filter: blur(2px); }
.dashboard-shell .modal-card {
  width: min(100%, 520px);
  padding: 24px;
  border: 1px solid #dfe5ed;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .2);
}
.dashboard-shell .modal-card > .modal-heading {
  min-height: 68px;
  margin: -24px -24px 22px;
  padding: 16px 24px;
  border-bottom: 1px solid #e7ecf2;
  background: #fff;
}
.dashboard-shell .modal-card > .modal-heading h2 { color: #26384d; font-size: 18px; }
.dashboard-shell .modal-card > .modal-heading .eyebrow { margin-bottom: 4px; font-size: 10px; }
.dashboard-shell .modal-card > .modal-heading .modal-close { width: 32px; height: 32px; border-radius: 5px; font-size: 20px; }
.dashboard-shell .modal-card > .modal-heading .modal-close:hover { color: #334155; background: #f1f5f9; }
.dashboard-shell .modal-card .settings-form { gap: 16px; margin-top: 0; }
.dashboard-shell .modal-card .primary-button { width: auto; min-width: 108px; min-height: 38px; justify-content: center; gap: 0; }
.dashboard-shell .modal-card .settings-actions { margin: 5px -24px -24px; padding: 14px 24px; border-top: 1px solid #e1e7ef; background: #f8fafc; }
.dashboard-shell .modal-card .button-arrow { display: none; }
.settings-tabs { display: flex; align-items: flex-end; gap: 4px; margin: -15px 0 23px; border-bottom: 1px solid #e5e9f0; }
.settings-tab { min-height: 42px; padding: 0 18px; border: 0; border-bottom: 2px solid transparent; color: #7b8798; background: transparent; font-size: 13px; font-weight: 650; }
.settings-tab:hover:not(:disabled) { color: #2f6fba; background: #f6fafe; }
.settings-tab.active { color: #2468a8; border-bottom-color: #3478b9; }
.settings-tab:disabled { cursor: not-allowed; color: #b5bfcd; }
@media (max-width: 600px) { .settings-tabs { overflow-x: auto; margin-top: -8px; }.settings-tab { flex: 0 0 auto; padding: 0 14px; } }

/* Shared controls for tables, forms, and future settings pages. */
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], select, textarea { border-color: #cfd8e5; border-radius: 6px; background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s, background .15s; }
input[type=text]:hover, input[type=email]:hover, input[type=password]:hover, input[type=number]:hover, input[type=search]:hover, select:hover, textarea:hover { border-color: #aebbd0; }
input[type=text]:focus, input[type=email]:focus, input[type=password]:focus, input[type=number]:focus, input[type=search]:focus, select:focus, textarea:focus { border-color: #6366f1; outline: 0; box-shadow: 0 0 0 3px rgba(99,102,241,.11); }
.search-box { height: 40px; border-color: #cfd8e5; border-radius: 6px; background: #fff; }
.search-box input { border: 0; border-radius: 0; box-shadow: none; }
.search-box input:focus { border: 0; box-shadow: none; }
.settings-form input, .settings-form select, .settings-form textarea { border-radius: 6px; background: #fff; }
.settings-form input, .settings-form select, .settings-form textarea { border-color: #cfd8e5; }
.settings-form input:focus, .settings-form select:focus, .settings-form textarea:focus { border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,.11); }
.primary-button, .outline-button, .page-button, .row-action { display: inline-flex; align-items: center; justify-content: center; line-height: 1; white-space: nowrap; }
button:focus-visible { outline: 3px solid rgba(99,102,241,.2); outline-offset: 2px; }
.data-table tbody tr:hover td { background: #fbfcff; }
.dashboard-shell .data-table th, .dashboard-shell .data-table td { text-align: center; }
.dashboard-shell .data-table td:last-child, .dashboard-shell .data-table th:last-child { text-align: center; }
.dashboard-shell .member-cell { justify-content: center; }
.dashboard-shell .row-actions { justify-content: center; }
.sidebar-menu { display: grid; gap: 2px; }
.sidebar-group { display: grid; gap: 0; }
.sidebar-parent { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 0 14px; border: 0; border-radius: 5px; color: #43566f; background: transparent; font-size: 13px; font-weight: 650; text-align: left; }
.sidebar-parent:hover { color: #4f46e5; }
.sidebar-group.is-active > .sidebar-parent { color: #4f46e5; }
.sidebar-parent-icon { display: grid; place-items: center; width: 18px; color: #7890ac; text-align: center; font-size: 15px; }
.sidebar-parent > span:nth-child(2) { flex: 1; }
.sidebar-chevron { position: relative; width: 16px; height: 16px; flex: 0 0 16px; margin-left: auto; color: #64748b; font-size: 0; line-height: 1; }
.sidebar-chevron::after { content: ""; position: absolute; top: 4px; left: 4px; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .15s ease, top .15s ease; }
.sidebar-parent[aria-expanded="true"] .sidebar-chevron::after { top: 7px; transform: rotate(225deg); }
.sidebar-subnav { display: grid; gap: 2px; padding: 2px 0 5px 14px; }
.sidebar-parent[aria-expanded="false"] + .sidebar-subnav { display: none; }
.sidebar-subnav .nav-item { min-height: 42px; padding: 0 13px 0 22px; border-radius: 5px; font-size: 12px; }
.sidebar-subnav .nav-item .nav-icon { width: 16px; font-size: 14px; }
.dashboard-shell .sidebar-group.is-active > .sidebar-parent { color: #43566f; background: transparent; }
.dashboard-shell .sidebar-subnav .nav-item.active { color: #4f46e5; background: #eef2ff; }
:root { --button-height: 38px; --button-radius: 6px; --button-primary: #6366f1; --button-primary-hover: #5558df; --button-border: #d5ddea; --button-text: #475569; }
.primary-button, .outline-button, .page-button, .row-action { min-height: var(--button-height); border-radius: var(--button-radius); font-family: inherit; font-weight: 650; }
.primary-button { border: 1px solid #5962e8; color: #fff; background: var(--button-primary); box-shadow: 0 2px 5px rgba(79,70,229,.18); }
.primary-button:hover { border-color: #4f46e5; color: #fff; background: var(--button-primary-hover); }
.outline-button { border: 1px solid var(--button-border); color: var(--button-text); background: #fff; box-shadow: 0 1px 2px rgba(15,23,42,.03); }
.outline-button:hover { border-color: #a5b4fc; color: #4f46e5; background: #fafaff; }
.page-button { border: 1px solid var(--button-border); color: #64748b; background: #fff; }
.page-button:hover:not(:disabled) { border-color: #a5b4fc; color: #4f46e5; background: #f7f8ff; }
.row-action { border: 1px solid var(--button-border); color: #4f46e5; background: #fff; }
.row-action:hover { border-color: #a5b4fc; color: #4f46e5; background: #f5f7ff; }
.row-action.danger { border-color: #f0c4c8; color: #c84b55; background: #fff; }
.row-action.danger:hover { border-color: #e89aa1; color: #b83d48; background: #fff5f5; }
.dashboard-shell .modal-card .primary-button { min-height: 40px; border-radius: var(--button-radius); }
.dashboard-shell .primary-button, .dashboard-shell .outline-button { min-height: var(--button-height); border-radius: var(--button-radius); }
.dashboard-shell .primary-button { border-color: #5962e8; background: var(--button-primary); }
.dashboard-shell .primary-button:hover { border-color: #4f46e5; background: var(--button-primary-hover); }
.dashboard-shell .outline-button { border-color: var(--button-border); color: var(--button-text); background: #fff; }
.dashboard-shell .outline-button:hover { border-color: #a5b4fc; color: #4f46e5; background: #fafaff; }
.auth-shell .primary-button { min-height: var(--button-height); border: 1px solid #5962e8; border-radius: var(--button-radius); background: var(--button-primary); box-shadow: 0 2px 5px rgba(79,70,229,.18); }
.auth-shell .primary-button:hover { border-color: #4f46e5; background: var(--button-primary-hover); box-shadow: 0 3px 8px rgba(79,70,229,.25); }
.primary-button, .outline-button, .page-button, .row-action { transition: color .15s, background .15s, border-color .15s, box-shadow .15s, transform .15s; }
.primary-button { min-height: 40px; border-radius: 6px; background: #6366f1; box-shadow: 0 2px 5px rgba(79,70,229,.18); font-weight: 700; }
.primary-button:hover { background: #5558df; transform: translateY(-1px); }
.outline-button { min-height: 40px; border-radius: 6px; border-color: #d5ddea; background: #fff; color: #475569; box-shadow: 0 1px 2px rgba(15,23,42,.03); }
.outline-button:hover { border-color: #a5b4fc; color: #4f46e5; background: #fafaff; }
.pagination { min-height: 60px; padding: 12px 20px; background: #fff; }
.pagination-controls, .page-numbers { display: inline-flex; align-items: center; gap: 5px; }
.pagination-controls { margin-left: auto; }
.page-button { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 32px; margin: 0; padding: 0 9px; border: 1px solid #d9e0ea; border-radius: 6px; color: #64748b; background: #fff; font-size: 12px; font-weight: 600; }
.page-button:hover:not(:disabled) { border-color: #a5b4fc; color: #4f46e5; background: #f7f8ff; }
.page-button.active { border-color: #6366f1; color: #fff; background: #6366f1; box-shadow: 0 2px 4px rgba(79,70,229,.18); }
.page-button:disabled { color: #b5bfcd; background: #f8fafc; }
.page-nav { font-size: 20px; font-weight: 400; line-height: 1; }
.page-ellipsis { min-width: 20px; color: #94a3b8; text-align: center; }
@media (max-width: 600px) { .pagination { align-items: stretch; gap: 10px; }.pagination-controls { width: 100%; justify-content: flex-end; }.page-summary { font-size: 10px; } }
@media (max-width: 900px) {
  .dashboard-shell .sidebar { width: 68px; padding: 18px 9px; }
  .dashboard-shell .sidebar-brand { justify-content: center; margin: 0 0 38px; }
  .dashboard-shell .sidebar-brand > span:last-child, .dashboard-shell .sidebar-label, .dashboard-shell .sidebar-parent, .dashboard-shell .nav-item:not(.active) { display: none; }
  .dashboard-shell .sidebar-menu { gap: 8px; }
  .dashboard-shell .sidebar-group { display: none; }
  .dashboard-shell .sidebar-group.is-active { display: block; }
  .dashboard-shell .nav-item { justify-content: center; padding: 12px 0; }
}

/* Keep authentication screens consistent with the compact control buttons. */
.auth-shell .auth-panel { background: #f5f7fa; }
.auth-shell .auth-card { border-color: #e3e8f0; border-radius: 8px; box-shadow: 0 6px 20px rgba(15,23,42,.05); }
.auth-shell .auth-form input:not([type=checkbox]) { height: 44px; border-color: #d4dce7; border-radius: 5px; background: #fff; box-shadow: none; }
.auth-shell .auth-form input:not([type=checkbox]):hover { border-color: #aebbd0; }
.auth-shell .auth-form input:focus { border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,.12); }
.auth-shell .icon-button { border-left-color: #e5e9f0; color: #64748b; }
.auth-shell .icon-button:hover { color: #4f46e5; background: #f5f7ff; }
.auth-shell .primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 44px; padding: 0 14px; border: 1px solid #5962e8; border-radius: 5px; background: #6366f1; box-shadow: 0 2px 5px rgba(79,70,229,.2); font-size: 13px; font-weight: 700; }
.auth-shell .primary-button:hover { border-color: #4f46e5; background: #5558df; box-shadow: 0 3px 8px rgba(79,70,229,.25); }
.auth-shell .primary-button .button-arrow { width: auto; height: auto; border-left: 0; font-size: 17px; }
.auth-shell .form-row a, .auth-shell .auth-footer a { color: #4f46e5; }

/* Global node policies. */
.settings-switch { display: inline-flex !important; grid-template-columns: none !important; align-items: center; justify-content: space-between; gap: 12px !important; cursor: pointer; }
.settings-switch input { position: absolute; width: 1px !important; height: 1px !important; margin: -1px; opacity: 0; }
.switch-track { position: relative; width: 38px; height: 22px; flex: 0 0 38px; border-radius: 11px; background: #cbd5e1; transition: background .15s; }
.switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(15,23,42,.22); transition: transform .15s; }
.settings-switch input:checked + .switch-track { background: #6366f1; }
.settings-switch input:checked + .switch-track::after { transform: translateX(16px); }
.settings-switch input:focus-visible + .switch-track { outline: 3px solid rgba(99,102,241,.2); outline-offset: 2px; }
.firewall-action { display: flex; flex-wrap: wrap; gap: 11px 18px; margin: 0; padding: 13px 14px 14px; border: 1px solid #dbe2eb; border-radius: 6px; color: #526273; }
.firewall-action legend { padding: 0 4px; color: #526273; font-size: 12px; font-weight: 700; }
.firewall-action label { display: inline-flex; grid-template-columns: none; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; }
.firewall-action input { width: 15px !important; height: 15px !important; margin: 0; accent-color: #6366f1; }
.node-firewall-protection { display: grid; gap: 22px; padding: 4px 0; }
.node-firewall-default-protection { display: grid; grid-template-columns: 140px minmax(0, 1fr); align-items: start; gap: 18px; padding-left: 0; }
.node-firewall-default-protection > label:last-child { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: center; gap: 8px; }
.node-firewall-default-protection .field-help { grid-column: 2; }
.field-help { margin: -8px 0 0; color: #8a97a8; font-size: 11px; line-height: 1.6; }
.domain-converter-link { margin-left: 8px; color: #2563eb; font-weight: 700; text-decoration: none; }
.domain-converter-link:hover { text-decoration: underline; }
.html-editor { min-height: 340px; resize: vertical; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; line-height: 1.6; }
.node-config-section { display: grid; gap: 17px; }
.node-config-section h3 { margin: 0; color: #334155; font-size: 13px; }
.settings-state#firewall-revision, .settings-state#error-page-revision { display: none; }
.notice.save-toast { position: fixed; top: 26px; left: 50%; z-index: 20; display: inline-flex; align-items: center; gap: 8px; width: auto; min-height: 40px; margin: 0; padding: 10px 16px; transform: translateX(-50%); border: 1px solid #d8eee3; border-radius: 5px; background: #fff; color: #475569; box-shadow: 0 3px 12px rgba(15,23,42,.16); }
.notice.save-toast[hidden] { display: none; }
.notice.save-toast::before { content: "✓"; display: grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; color: #fff; background: #22b573; font-size: 10px; font-weight: 800; }
.global-operation-toast { position: fixed; top: 20px; left: 50%; z-index: 200; display: inline-flex; align-items: center; max-width: min(460px, calc(100vw - 32px)); min-height: 42px; padding: 10px 16px; transform: translateX(-50%); border: 1px solid #d7e2ee; border-radius: 6px; color: #334155; background: #fff; box-shadow: 0 12px 34px rgba(15, 23, 42, .18); font-size: 13px; line-height: 1.45; }
.global-operation-toast[hidden] { display: none; }
.global-operation-toast::before { content: "✓"; display: grid; place-items: center; flex: 0 0 auto; width: 17px; height: 17px; margin-right: 9px; border-radius: 50%; color: #fff; background: #16a36a; font-size: 11px; font-weight: 800; }
.global-operation-toast.error { border-color: #f1d6d3; color: #a33f37; }
.global-operation-toast.error::before { content: "!"; background: #d45249; }
.dashboard-content > .notice:not([hidden]) { position: fixed; top: 20px; left: 50%; z-index: 200; width: auto; max-width: min(460px, calc(100vw - 32px)); margin: 0; transform: translateX(-50%); border: 1px solid #f1d6d3; border-radius: 6px; box-shadow: 0 12px 34px rgba(15, 23, 42, .18); }
.dashboard-content > .notice.success:not([hidden]) { border-color: #ccebdd; }
@media (max-width: 600px) { .firewall-action { flex-direction: column; gap: 10px; }.html-editor { min-height: 280px; } }
@media (max-width: 700px) { .node-firewall-default-protection { grid-template-columns: 1fr; padding-left: 0; }.node-firewall-default-protection > label:last-child { grid-template-columns: 1fr; }.node-firewall-default-protection .field-help { grid-column: auto; } }

/* Node management workspace. */
.node-page .page-heading { margin-bottom: 22px; }
.node-tabs { margin: 0 0 18px; }
.node-panel[hidden] { display: none; }
.node-toolbar { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 61px; padding: 10px 0; }
.node-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.node-actions .outline-button, .node-actions .primary-button { min-height: 34px; padding: 0 14px; }
.node-actions button:disabled { cursor: not-allowed; color: #aeb8c7; border-color: #e2e7ef; background: #f8fafc; }
.node-filters { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.node-search { display: flex; align-items: center; gap: 7px; width: min(300px, 100%); height: 36px; padding: 0 11px; border: 1px solid #d5ddea; border-radius: 6px; color: #8a98aa; background: #fff; }
.node-search:focus-within { border-color: #818cf8; box-shadow: 0 0 0 3px rgba(99,102,241,.1); }
.node-search input { width: 100%; border: 0; outline: 0; color: #334155; background: transparent; font-size: 12px; }
.node-filters select { width: 150px; height: 36px; padding: 0 10px; border: 1px solid #d5ddea; border-radius: 6px; color: #64748b; background: #fff; font-size: 12px; }
.node-table-panel { border-radius: 6px; }
.node-table { min-width: 1740px; }
.node-table th, .node-table td { text-align: center !important; }
.node-table th { padding-right: 14px; padding-left: 14px; }
.node-table td { padding-right: 14px; padding-left: 14px; vertical-align: middle; }
.node-table .check-column { width: 44px; padding-right: 0; text-align: center !important; }
.node-table input[type=checkbox] { width: 15px; height: 15px; accent-color: #6366f1; }
.node-name { color: #1e293b; font-weight: 700; }
.node-id { min-width: 150px; color: #7a8798; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; }
.node-id-stack { display: grid; justify-items: center; gap: 5px; }
.node-line-group-link { width: fit-content; color: #4f46e5; font-family: inherit; font-size: 11px; text-decoration: none; }
.node-line-group-link:hover { text-decoration: underline; }
.node-ip-cell { min-width: 190px; color: #526273; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; white-space: normal !important; }
.node-ip-stack, .node-child-ip-list-inline { display: grid; justify-items: center; gap: 4px; }
.node-primary-ip-row { display: flex; align-items: center; justify-content: center; gap: 7px; }
.node-ip-kind { display: inline-grid; place-items: center; width: 20px; height: 20px; flex: 0 0 20px; border-radius: 4px; color: #475569; background: #eef2f7; font-family: system-ui, sans-serif; font-size: 10px; font-weight: 700; }
.node-ip-expand { width: fit-content; padding: 2px 0; border: 0; color: #6366f1; background: transparent; font-size: 11px; cursor: pointer; }
.node-ip-expand:hover { color: #4338ca; text-decoration: underline; }
.node-child-ip-list-inline { padding: 3px 0 0; }
.node-ip-entry { display: inline-flex; align-items: center; gap: 7px; min-height: 25px; margin-right: 8px; line-height: 1.6; }
.node-child-ip-list-inline .node-ip-entry { display: flex; margin-right: 0; }
.node-ip-entry.disabled > span:first-child { color: #94a3b8; text-decoration: line-through; }
.node-ip-toggle { position: relative; display: inline-flex; width: 27px; height: 16px; flex: 0 0 27px; cursor: pointer; }
.node-ip-toggle input { position: absolute; width: 1px !important; height: 1px !important; margin: -1px; opacity: 0; }
.node-ip-toggle span { width: 100%; height: 100%; border-radius: 8px; background: #cbd5e1; transition: background .15s ease; }
.node-ip-toggle span::after { content: ""; display: block; width: 12px; height: 12px; margin: 2px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(15,23,42,.2); transition: transform .15s ease; }
.node-ip-toggle input:checked + span { background: #16a36f; }
.node-ip-toggle input:checked + span::after { transform: translateX(11px); }
.node-ip-toggle input:focus-visible + span { outline: 2px solid #818cf8; outline-offset: 2px; }
.node-ip-toggle input:disabled + span { opacity: .55; cursor: wait; }
.node-bandwidth-cell, .node-month-traffic { white-space: nowrap !important; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; }
.node-version { min-width: 100px; color: #526273; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; white-space: nowrap !important; }
.node-update-status, .node-update-log-cell { min-width: 92px; white-space: nowrap !important; }
.node-rate-up { color: #2563b8; }
.node-rate-down { color: #ea580c; }
.node-ip-empty { color: #94a3b8; font-size: 11px; }
.node-status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 4px; font-size: 11px; }
.node-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.node-status.enabled { color: #15936d; background: #eaf8f2; }
.node-status.pending { color: #b7791f; background: #fff7e5; }
.node-status.disabled { color: #b84f58; background: #fff0f1; }
.node-status.succeeded { color: #15936d; background: #eaf8f2; }
.node-status.syncing { color: #2563eb; background: #eff6ff; }
.node-status.failed { color: #b84f58; background: #fff0f1; }
.node-status.idle { color: #64748b; background: #f1f5f9; }
.node-sync-cell { min-width: 150px; }
.node-sync { display: flex; align-items: center; flex-direction: column; gap: 6px; }
.node-sync-detail { display: block; max-width: 190px; overflow: hidden; color: #64748b; font-size: 11px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.node-sync-detail.error { color: #b84f58; }
.node-date { min-width: 145px; color: #526273; white-space: nowrap !important; }
.node-actions-cell { min-width: 180px; }
.node-actions-cell .row-actions { display: flex; align-items: center; justify-content: center; flex-wrap: nowrap; gap: 6px; white-space: nowrap; }
.node-update-log-card { width: min(100%, 820px); }
.node-update-log-content { max-height: 55vh; min-height: 220px; margin: 0; overflow: auto; padding: 16px; border-radius: 8px; color: #d1fae5; background: #111827; font: 12px/1.65 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; }

/* Line group management. */
.line-group-page .page-heading { margin-bottom: 22px; }
.line-group-page .page-heading .primary-button { min-height: 38px; padding: 0 15px; }
.line-group-filter-notice { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: -8px 0 16px; padding: 11px 14px; border: 1px solid #c7d2fe; border-radius: 6px; color: #475569; background: #eef2ff; font-size: 12px; }
.line-group-filter-notice[hidden] { display: none; }
.line-group-filter-notice strong { color: #3730a3; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.line-group-filter-notice a { flex: 0 0 auto; color: #4f46e5; font-weight: 700; text-decoration: none; }
.line-group-filter-notice a:hover { text-decoration: underline; }
.line-group-table { min-width: 860px; }
.line-group-table th, .line-group-table td { text-align: left !important; }
.line-group-table th:first-child, .line-group-table td:first-child { width: 70px; text-align: center !important; }
.line-group-name { color: #1e293b; font-weight: 700; }
.line-group-resolution { color: #334155; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; }
.line-group-remark { max-width: 260px; color: #64748b; white-space: normal !important; }
.line-group-modal-card { width: min(620px, calc(100vw - 32px)); }
.line-group-node-picker { display: grid; gap: 9px; }
.line-group-node-picker-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.line-group-node-picker-heading strong { color: #334155; font-size: 13px; }
.line-group-node-picker-heading span { color: #8a97a8; font-size: 11px; }
.line-group-nodes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 236px; overflow: auto; border: 1px solid #d5ddea; border-radius: 6px; background: #fff; }
.line-group-node-option { display: flex !important; grid-template-columns: none !important; align-items: flex-start; gap: 9px; min-height: 58px; padding: 10px 11px; border-right: 1px solid #e7ecf3; border-bottom: 1px solid #e7ecf3; cursor: pointer; }
.line-group-node-option:nth-child(2n) { border-right: 0; }
.line-group-node-option input { width: 15px !important; height: 15px !important; margin: 2px 0 0 !important; accent-color: #6366f1; }
.line-group-node-option span { display: grid; gap: 3px; min-width: 0; }
.line-group-node-option strong { overflow: hidden; color: #334155; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.line-group-node-option small { overflow: hidden; color: #8a97a8; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.line-group-node-option:hover { background: #f8f9ff; }
@media (max-width: 600px) { .line-group-page .page-heading { align-items: flex-start; gap: 14px; }.line-group-nodes { grid-template-columns: 1fr; }.line-group-node-option, .line-group-node-option:nth-child(2n) { border-right: 0; }.line-group-node-picker-heading { align-items: flex-start; flex-direction: column; gap: 4px; } }

/* DNS provider and CNAME management. */
.dns-page .page-heading { margin-bottom: 22px; }
.dns-tabs { margin-bottom: 18px; }
.dns-panel[hidden] { display: none; }
.dns-settings-card { max-width: 760px; }
.dns-domain-table { min-width: 680px; }
.dns-domain-table th, .dns-domain-table td { text-align: left !important; }
.dns-domain-table th:first-child, .dns-domain-table td:first-child { width: 70px; text-align: center !important; }
.dns-domain-name { color: #334155; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-weight: 650; }
.dns-credential-hint { color: #8a97a8; font-size: 11px; font-weight: 400; line-height: 1.45; }
.dns-task-error { max-width: 320px; color: #b45359 !important; white-space: normal !important; }
.dns-task-detail-card { width: min(100%, 640px); max-height: calc(100dvh - 40px); overflow-y: auto; }
.dns-task-detail-list { display: grid; gap: 0; margin: 0; border: 1px solid #e5e9f0; border-radius: 6px; overflow: hidden; }
.dns-task-detail-list > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); border-top: 1px solid #e5e9f0; }
.dns-task-detail-list > div:first-child { border-top: 0; }
.dns-task-detail-list dt, .dns-task-detail-list dd { margin: 0; padding: 10px 12px; font-size: 12px; line-height: 1.5; }
.dns-task-detail-list dt { color: #64748b; background: #f8fafc; font-weight: 700; }
.dns-task-detail-list dd { overflow-wrap: anywhere; color: #334155; }
.dns-task-detail-payload { max-height: min(220px, 30vh); margin: 14px 0 0; padding: 12px; overflow: auto; border: 1px solid #e5e9f0; border-radius: 6px; color: #475569; background: #f8fafc; font: 11px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; }
.dns-resolution-page .page-heading { margin-bottom: 22px; }
.resolution-toolbar { display: flex; align-items: end; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; padding: 16px 18px; border: 1px solid #e5e9f0; border-radius: 8px; background: #fff; }
.resolution-toolbar label { display: grid; gap: 7px; min-width: 210px; color: #526273; font-size: 12px; font-weight: 700; }
.resolution-toolbar input, .resolution-toolbar select { height: 38px; padding: 0 10px; border: 1px solid #cfd8e5; border-radius: 6px; color: #334155; background: #fff; font: inherit; }
.resolution-toolbar input[readonly] { color: #64748b; background: #f8fafc; }
.resolution-provider-help { padding-bottom: 11px; color: #8a97a8; font-size: 11px; }
.resolution-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.resolution-columns .table-toolbar { align-items: center; }
.resolution-columns h2 { margin: 0 0 4px; color: #334155; font-size: 14px; }
.resolution-columns small { color: #8a97a8; font-size: 11px; }
.resolution-table { min-width: 520px; }
.resolution-table th:first-child, .resolution-table td:first-child { width: 42px; text-align: center !important; }
.resolution-table input[type="checkbox"] { width: 15px; height: 15px; accent-color: #6366f1; }
.resolution-ip { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; color: #334155; }
.resolution-weight { width: 72px; height: 30px; padding: 0 7px; border: 1px solid #cfd8e5; border-radius: 5px; color: #334155; background: #fff; font: inherit; }
@media (max-width: 1000px) { .resolution-columns { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .resolution-toolbar { align-items: stretch; flex-direction: column; }.resolution-toolbar label { min-width: 0; }.resolution-provider-help { padding: 0; } }
.table-toolbar-actions { display: inline-flex; align-items: center; gap: 8px; }
.table-toolbar-actions .primary-button, .table-toolbar-actions .outline-button { min-height: 34px; padding: 0 13px; }
@media (max-width: 700px) { .dns-page .settings-two-col { grid-template-columns: 1fr; }.dns-page .table-toolbar { align-items: stretch; flex-wrap: wrap; }.table-toolbar-actions { width: 100%; }.dns-page .search-box { width: 100%; } }
.node-table-footer { display: flex; align-items: center; min-height: 48px; padding: 0 20px; border-top: 1px solid #edf1f5; color: #94a3b8; font-size: 11px; }
.monitoring-page .page-heading { margin-bottom: 22px; }
.monitoring-workspace { border: 1px solid #e3e8ef; border-radius: 6px; background: #fff; }
.monitoring-tabs { display: flex; align-items: flex-end; gap: 4px; padding: 0 18px; border-bottom: 1px solid #e5e9f0; }
.monitoring-tab { min-height: 48px; padding: 0 18px; border: 0; border-bottom: 2px solid transparent; color: #64748b; background: transparent; font-size: 13px; cursor: pointer; }
.monitoring-tab:hover { color: #2563b8; }
.monitoring-tab.active { border-bottom-color: #2f80ed; color: #2563b8; font-weight: 700; }
.monitoring-panel[hidden] { display: none; }
.monitoring-controls { display: grid; gap: 13px; padding: 18px 20px 15px; }
.monitoring-control-row { display: flex; align-items: center; gap: 12px; min-height: 34px; }
.monitoring-label { width: 48px; flex: 0 0 48px; color: #64748b; font-size: 12px; }
.monitoring-segment { display: inline-flex; }
.monitoring-segment button { min-width: 68px; height: 34px; padding: 0 13px; border: 1px solid #d5ddea; border-left: 0; color: #526273; background: #fff; font-size: 12px; cursor: pointer; }
.monitoring-segment button:first-child { border-left: 1px solid #d5ddea; border-radius: 5px 0 0 5px; }
.monitoring-segment button:last-child { border-radius: 0 5px 5px 0; }
.monitoring-segment button.active { border-color: #2f80ed; color: #1670d2; background: #f1f7ff; }
.monitoring-refresh { min-height: 34px; padding: 0 16px; }
.monitoring-node-select, #traffic-exclude-interfaces { width: 250px; height: 34px; padding: 0 10px; border: 1px solid #cfd8e5; border-radius: 5px; color: #334155; background: #fff; font-size: 12px; }
.monitoring-check { display: inline-flex !important; align-items: center; gap: 6px; color: #526273; font-size: 12px; font-weight: 500 !important; }
.monitoring-check input { width: 15px; height: 15px; accent-color: #2f80ed; }
.monitoring-custom-range { display: flex; gap: 12px; padding-left: 60px; }
.monitoring-custom-range[hidden] { display: none; }
.monitoring-custom-range label { display: grid; gap: 6px; color: #64748b; font-size: 11px; }
.monitoring-custom-range input { height: 34px; padding: 0 8px; border: 1px solid #cfd8e5; border-radius: 5px; color: #334155; background: #fff; font-size: 12px; }
.monitoring-table { min-width: 680px; }
.monitoring-table th, .monitoring-table td { text-align: left !important; }
.monitoring-table td small { display: block; margin-top: 3px; color: #94a3b8; font-size: 10px; }
.monitoring-interface { color: #526273; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; }
.monitoring-chart-heading { display: flex; align-items: center; gap: 18px; min-height: 46px; padding: 0 22px; color: #334155; }
.monitoring-chart-heading[hidden] { display: none; }
.monitoring-total { margin-left: auto; color: #2563b8; font-size: 12px; }
.monitoring-legend { display: inline-flex; flex-wrap: wrap; gap: 12px; margin-left: auto; color: #64748b; font-size: 11px; }
.monitoring-legend span { display: inline-flex; align-items: center; gap: 5px; }
.monitoring-legend i { width: 9px; height: 9px; border: 2px solid currentColor; border-radius: 50%; background: #fff !important; }
.monitoring-legend em { color: #64748b; font-style: normal; }
.monitoring-chart { min-height: 330px; padding: 0 18px 18px; }
.monitoring-chart svg { display: block; width: 100%; height: auto; min-height: 300px; }
.monitoring-grid-line { stroke: #dce6f2; stroke-width: 1; }
.monitoring-axis-label { fill: #718096; font-size: 11px; }
.monitoring-empty { display: grid; place-items: center; min-height: 300px; color: #94a3b8; font-size: 12px; }
.monitoring-interface-charts { min-height: 0; padding: 0; }
.monitoring-interface-chart { padding: 0 22px 18px; }
.monitoring-interface-chart + .monitoring-interface-chart { border-top: 1px solid #edf1f5; padding-top: 18px; }
.monitoring-interface-chart-heading { display: flex; align-items: center; min-height: 46px; color: #334155; }
.monitoring-interface-chart-heading strong { font-size: 13px; }
.monitoring-interface-chart-heading .monitoring-legend { margin-left: auto; }
.monitoring-interface-chart-plot svg { display: block; width: 100%; min-height: 300px; }
@media (max-width: 700px) {
  .monitoring-tabs { overflow-x: auto; padding: 0 8px; }
  .monitoring-tab { flex: 0 0 auto; padding: 0 13px; }
  .monitoring-control-row { align-items: flex-start; flex-wrap: wrap; }
  .monitoring-label { padding-top: 9px; }
  .monitoring-segment { flex-wrap: wrap; }
  .monitoring-segment button { border-left: 1px solid #d5ddea; border-radius: 0 !important; margin: -1px 0 0 -1px; }
  .monitoring-node-select, #traffic-exclude-interfaces { width: min(100%, 280px); }
  .monitoring-custom-range { flex-direction: column; padding-left: 0; }
  .monitoring-chart-heading { align-items: flex-start; flex-wrap: wrap; gap: 8px; padding: 12px 16px; }
  .monitoring-total, .monitoring-legend { width: 100%; margin-left: 0; }
  .monitoring-chart { padding: 0 8px 12px; overflow-x: auto; }
  .monitoring-chart svg { min-width: 720px; }
}
.node-init-panel .settings-card { max-width: 860px; padding: 25px; }
.token-result { margin-top: 20px; padding: 16px; border: 1px solid #ccecdf; border-radius: 6px; background: #f2fcf7; color: #276749; }
.token-result strong, .token-result p, .token-result code, .token-result small { display: block; }
.token-result p { margin: 7px 0 12px; color: #5a7d6d; font-size: 12px; }
.token-result .token-node-id { margin: 0 0 10px; color: #276749; }
.token-node-id strong { display: inline; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.token-result code { overflow-wrap: anywhere; padding: 10px; border-radius: 4px; color: #174d3a; background: #e2f5eb; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; }
.token-result small { margin-top: 8px; color: #6a897b; font-size: 11px; }
.install-command-row { display: flex; align-items: flex-start; gap: 10px; }
.install-command-row code { flex: 1; min-width: 0; white-space: pre-wrap; }
.install-command-row .outline-button { min-height: 36px; flex: 0 0 auto; }
@media (max-width: 600px) { .install-command-row { flex-direction: column; }.install-command-row .outline-button { width: 100%; } }
.dashboard-shell .modal-card.node-edit-card {
  width: min(680px, calc(100vw - 36px));
  padding: 0;
  overflow: hidden;
  border: 1px solid #dfe5ed;
  border-radius: 9px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .2);
}
.dashboard-shell .modal-card.node-edit-card > .modal-heading {
  min-height: 72px;
  margin: 0;
  padding: 17px 24px;
  border-bottom: 1px solid #e7ecf2;
  background: #fff;
}
.dashboard-shell .modal-card.node-edit-card > .modal-heading .eyebrow { margin-bottom: 4px; font-size: 10px; }
.dashboard-shell .modal-card.node-edit-card > .modal-heading h2 { color: #26384d; font-size: 18px; }
.dashboard-shell .modal-card.node-edit-card > .modal-heading .modal-close { width: 32px; height: 32px; border-radius: 5px; font-size: 20px; }
.dashboard-shell .modal-card.node-edit-card > .modal-heading .modal-close:hover { color: #334155; background: #f1f5f9; }
.node-edit-card > .notice { margin: 14px 24px 0; }
.node-edit-form { display: grid; gap: 0; }
.node-edit-tabs {
  min-height: 50px;
  margin: 0;
  padding: 0 24px;
  border: 0;
  border-bottom: 1px solid #e7ecf2;
  background: #fafbfd;
}
.node-edit-tabs .settings-tab { min-height: 50px; padding: 0 18px; font-size: 12px; }
.node-edit-panel { min-height: 250px; padding: 24px 28px; }
.node-edit-panel[hidden] { display: none; }
.node-edit-panel.settings-form { gap: 18px; margin: 0; }
.node-edit-panel.settings-form > label {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  font-size: 12px;
  font-weight: 600;
}
.node-edit-panel.settings-form > label input { height: 40px; }
.node-edit-panel.settings-form > .field-help { margin: -7px 0 0 124px; }
.node-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin: 0;
  padding: 14px 24px;
  border-top: 1px solid #e1e7ef;
  background: #f8fafc;
}
.dashboard-shell .node-edit-card .primary-button,
.dashboard-shell .node-edit-card .outline-button {
  width: auto;
  min-width: 88px;
  min-height: 36px;
}
.dashboard-shell .node-edit-card .node-edit-actions .primary-button { min-width: 108px; }
.node-child-ip-field { display: grid; gap: 9px; }
.node-child-ip-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.node-child-ip-heading > label { color: #526273; font-size: 12px; font-weight: 700; }
.node-child-ip-heading > div { display: grid; gap: 4px; }
.node-child-ip-heading strong { color: #334155; font-size: 12px; }
.node-child-ip-heading small { color: #8795a6; font-size: 10px; }
.node-child-ip-heading .row-action { min-height: 30px; padding: 0 9px; }
.node-child-ip-list { display: grid; gap: 8px; }
.node-child-ip-row { display: flex; align-items: center; gap: 8px; }
.node-child-ip-row input { min-width: 0; flex: 1; }
.node-ip-remove { display: inline-grid; place-items: center; width: 32px; height: 32px; flex: 0 0 32px; padding: 0; border: 1px solid #f0c4c8; border-radius: 6px; color: #c84b55; background: #fff; font-size: 18px; line-height: 1; }
.node-ip-remove:hover { border-color: #e89aa1; background: #fff5f5; }
.node-child-ip-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 48px;
  padding: 9px 10px;
  border: 1px solid #d8e0ea;
  border-radius: 7px;
  background: #f8fafc;
}
.node-child-ip-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 6px 0 11px;
  border: 1px solid #c7dcf4;
  border-radius: 15px;
  color: #285f9b;
  background: #edf6ff;
  font: 11px ui-monospace, SFMono-Regular, Consolas, monospace;
}
.node-child-ip-tag button {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #6783a0;
  background: rgba(255, 255, 255, .72);
  font-size: 14px;
  line-height: 1;
}
.node-child-ip-tag button:hover { color: #b43f49; background: #fff; }
.node-child-ip-empty { color: #94a3b8; font-size: 11px; }
.node-child-ip-batch {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid #d8e5f2;
  border-radius: 8px;
  background: #f7fbff;
}
.node-child-ip-batch[hidden] { display: none; }
.node-child-ip-batch label { display: grid; gap: 7px; color: #526273; font-size: 12px; font-weight: 700; }
.node-child-ip-batch textarea { min-height: 108px; padding: 10px 11px; resize: vertical; }
.node-child-ip-batch-actions { display: flex; justify-content: flex-end; gap: 8px; }
.node-child-ip-batch-actions button { min-height: 34px; }
@media (max-width: 600px) {
  .node-edit-panel { padding: 20px 18px; }
  .node-edit-panel.settings-form > label { grid-template-columns: 1fr; gap: 7px; }
  .node-edit-panel.settings-form > .field-help { margin-left: 0; }
  .node-edit-tabs { padding: 0 12px; }
  .node-edit-actions { padding: 12px 18px; }
}
.task-target-label { color: inherit; }
.task-target-label + .row-action { margin-left: 8px !important; }
.task-status { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border-radius: 4px; font-size: 11px; }
.task-status.succeeded { color: #15805e; background: #eaf8f2; }
.task-status.failed { color: #b84f58; background: #fff0f1; }
.task-status.running { color: #2563b8; background: #eaf2ff; }
.task-status.queued, .task-status.waiting { color: #a16207; background: #fff7e5; }
.task-status.unavailable { color: #64748b; background: #f1f5f9; }
.task-runs-card { width: min(100%, 940px); }
.task-runs-table { min-width: 760px; }
.dashboard-shell .sidebar-link.active { color: #4f46e5; background: #eef2ff; }
@media (max-width: 700px) { .node-filters { align-items: stretch; flex-direction: column; }.node-search, .node-filters select { width: 100%; }.node-toolbar { align-items: flex-start; }.node-actions { gap: 6px; } }
.auth-shell .notice { border: 1px solid #f5d8d4; }
.auth-shell .notice.success { border-color: #ccecdf; }
.auth-shell .primary-button { min-height: var(--button-height); border-radius: var(--button-radius); border-color: #5962e8; background: var(--button-primary); box-shadow: 0 2px 5px rgba(79,70,229,.18); }
.auth-shell .primary-button:hover { border-color: #4f46e5; background: var(--button-primary-hover); box-shadow: 0 3px 8px rgba(79,70,229,.25); }
.plan-page .page-heading { margin-bottom: 22px; }
.plan-modal-card { width: min(100%, 760px); max-height: calc(100vh - 36px); overflow-y: auto; }
.form-grid { display: grid; gap: 14px; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.plan-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 18px; margin: 0; padding: 12px 14px; border: 1px solid #dbe2eb; border-radius: 6px; color: #526273; }
.plan-features legend { padding: 0 4px; color: #526273; font-size: 12px; font-weight: 700; }
.plan-features label { min-width: 0; font-size: 12px; font-weight: 500; }
.plan-feature-switch { width: 100%; }
.plan-cname-settings { display: block; min-width: 0; margin: 0; padding: 14px; border: 1px solid #dbe2eb; border-radius: 6px; color: #526273; }
.plan-cname-settings legend { padding: 0 4px; color: #526273; font-size: 12px; font-weight: 700; }
.plan-cname-grid { display: grid; grid-template-columns: minmax(220px, 1.35fr) minmax(210px, 1fr) minmax(190px, .9fr); gap: 14px; }
.plan-cname-grid label { min-width: 0; }
.table-subtext { display: block; max-width: 250px; margin-top: 4px; overflow: hidden; color: #8a97a8; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.plan-line-tag { display: inline-block; margin: 2px; padding: 3px 7px; border: 1px solid #dbe3ef; border-radius: 4px; color: #526273; background: #f8fafc; font-size: 11px; }
.status-pill { display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px; border-radius: 11px; font-size: 11px; font-weight: 650; }
.status-pill.success { color: #16845a; background: #e9f8f0; }
.status-pill.muted { color: #697586; background: #eef1f5; }
.status-pill.warning { color: #a46a16; background: #fff5df; }
.status-pill.danger { color: #b23c49; background: #fff0f1; }
.payment-provider-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}
.payment-provider-badge.wechat { color: #16845a; border-color: #bfe8d5; background: #eaf8f2; }
.payment-provider-badge.alipay { color: #1677c8; border-color: #c7ddf5; background: #edf6ff; }
.payment-provider-badge.unknown { color: #697586; border-color: #dbe2ea; background: #f4f6f8; }
.status-pill.danger { color: #b23c49; background: #fff0f1; }
.status-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 62px; min-height: 24px; padding: 0 9px; border: 1px solid transparent; border-radius: 4px; font-size: 11px; font-weight: 650; line-height: 1; white-space: nowrap; }
.status-badge.success { color: #16845a; border-color: #bfe8d5; background: #eaf8f2; }
.status-badge.warning { color: #a46a16; border-color: #f2dfb7; background: #fff5df; }
.status-badge.info { color: #3d63c7; border-color: #cad8f7; background: #edf3ff; }
.status-badge.danger { color: #b23c49; border-color: #f0c9ce; background: #fff0f1; }
.member-nav { display: flex; align-items: center; gap: 8px; margin-right: auto; margin-left: 38px; }
.member-nav a { padding: 8px 10px; border-radius: 5px; color: #64748b; font-size: 13px; font-weight: 650; }
.member-nav a:hover, .member-nav a.active { color: #4f46e5; background: #eef2ff; }
.plans-member-content { max-width: 1120px; padding-top: 48px; }
.member-page-heading { margin-bottom: 30px; }
.member-page-heading h1 { margin: 0 0 10px; }
.member-section-title { margin: 0 0 16px; color: #334155; font-size: 16px; }
.plan-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 16px; }
.plan-purchase-card { display: flex; flex-direction: column; min-height: 318px; padding: 21px; border: 1px solid #dfe5ed; border-radius: 8px; background: #fff; box-shadow: 0 1px 3px rgba(15, 23, 42, .03); }
.plan-card-head h3 { margin: 0; color: #334155; font-size: 17px; }
.plan-card-head p { min-height: 38px; margin: 8px 0 0; color: #788697; font-size: 12px; line-height: 1.55; }
.plan-price { display: flex; align-items: baseline; gap: 5px; margin: 20px 0 12px; color: #94a3b8; font-size: 12px; }
.plan-price strong { color: #4f46e5; font-size: 25px; }
.plan-purchase-card ul { display: grid; gap: 8px; margin: 0; padding: 0; color: #526273; font-size: 12px; list-style: none; }
.plan-purchase-card li::before { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 7px 1px 0; border-radius: 50%; background: #7c85ed; }
.plan-buy-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: auto; padding-top: 20px; }
.plan-buy-actions select { min-width: 0; height: 38px; padding: 0 8px; font-size: 12px; }
.plan-buy-actions .primary-button { min-width: 66px; }
.member-owned-section { margin-top: 42px; }
.member-owned-list { display: grid; gap: 10px; }
.member-owned-item { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 18px; border: 1px solid #dfe5ed; border-radius: 7px; background: #fff; }
.member-owned-item > div { display: grid; gap: 5px; }

/* Login pages use a quiet, business-focused layout shared by administrators and members. */
.auth-shell {
  min-height: 100dvh;
  color: #172033;
  background: #f4f7fb;
  font-family: "Microsoft YaHei", "Microsoft YaHei UI", "Segoe UI", sans-serif;
}
.auth-layout {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(440px, .92fr) 1.08fr;
}
.auth-intro {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(34px, 5vw, 78px) clamp(30px, 6vw, 96px);
  overflow: hidden;
  color: #172033;
  background: #fff;
  border-right: 1px solid #e5eaf2;
}
.auth-intro::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: 86px;
  width: 280px;
  height: 280px;
  border: 1px solid #e8edf5;
  border-radius: 50%;
  box-shadow: 0 0 0 42px #f7f9fc, 0 0 0 43px #e8edf5, 0 0 0 86px #fff;
  pointer-events: none;
}
.auth-role-admin .auth-intro::before,
.auth-role-member .auth-intro::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: #e8edf5;
}
.auth-brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  color: #172033;
  text-decoration: none;
  font-size: 16px;
  font-weight: 800;
}
.auth-brand .brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: #fff;
  background: #5365e8;
  box-shadow: 0 5px 12px rgba(83, 101, 232, .2);
}
.auth-intro-copy {
  position: relative;
  z-index: 1;
  margin: auto 0;
  padding: 60px 0 84px;
}
.auth-intro .eyebrow {
  margin-bottom: 18px;
  color: #6878d9;
  letter-spacing: .12em;
}
.auth-intro h1 {
  max-width: 470px;
  margin: 0;
  color: #172033;
  font-size: clamp(36px, 4.5vw, 58px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: 0;
}
.auth-intro .intro-copy {
  max-width: 390px;
  margin: 23px 0 0;
  color: #718096;
  font-size: 14px;
  line-height: 1.9;
}
.auth-assurance {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  padding: 10px 13px;
  border: 1px solid #dfe6f0;
  border-radius: 6px;
  color: #64748b;
  background: #fbfcfe;
  font-size: 12px;
  font-weight: 650;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1bb77a;
  box-shadow: 0 0 0 4px rgba(27, 183, 122, .12);
}
.auth-panel {
  display: grid;
  place-items: center;
  align-content: center;
  padding: 42px 32px;
  background: #f4f7fb;
}
.auth-card {
  width: min(100%, 438px);
  padding: 40px 42px 35px;
  border: 1px solid #e0e6ef;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(38, 57, 87, .07);
}
.auth-card .panel-heading {
  display: block;
  margin-bottom: 30px;
}
.auth-card .panel-heading .eyebrow {
  margin-bottom: 11px;
  color: #6b78be;
  letter-spacing: .1em;
}
.auth-card .panel-heading h2 {
  margin: 0;
  color: #172033;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0;
}
.auth-card .panel-heading p:last-child {
  margin: 10px 0 0;
  color: #8b96a8;
  font-size: 12px;
}
.auth-card .auth-form {
  gap: 20px;
}
.auth-card .auth-form label {
  gap: 9px;
  color: #46536a;
  font-size: 12px;
  font-weight: 700;
}
.auth-card .auth-form input:not([type=checkbox]) {
  height: 48px;
  padding: 0 14px;
  border: 1px solid #d5ddea;
  border-radius: 6px;
  color: #172033;
  background: #fbfcfe;
  box-shadow: none;
  font-size: 13px;
}
.auth-card .auth-form input:not([type=checkbox])::placeholder {
  color: #a7b0be;
}
.auth-card .auth-form input:not([type=checkbox]):hover {
  border-color: #b9c5d6;
  background: #fff;
}
.auth-card .auth-form input:focus {
  border-color: #6472e6;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(100, 114, 230, .12);
}
.auth-card .password-field input {
  padding-right: 62px !important;
}
.auth-card .icon-button {
  top: 1px;
  right: 1px;
  height: 46px;
  padding: 0 13px;
  border-left: 1px solid #e4e9f1;
  color: #6573c7;
  font-size: 12px;
  font-weight: 700;
}
.auth-card .icon-button:hover {
  color: #4f5ed4;
  background: #f5f6ff;
}
.auth-submit-button {
  width: 100%;
  min-height: 48px;
  margin-top: 4px;
  padding: 0 10px 0 17px;
  border: 1px solid #5865df;
  border-radius: 6px;
  background: #5865df;
  box-shadow: 0 5px 12px rgba(88, 101, 223, .2);
  font-size: 13px;
}
.auth-submit-button:hover {
  border-color: #4754cf;
  background: #4754cf;
  box-shadow: 0 7px 15px rgba(88, 101, 223, .25);
}
.auth-submit-button .button-arrow {
  width: 30px;
  height: 30px;
  border-left-color: rgba(255,255,255,.3);
}
.auth-card .notice {
  margin: 0 0 18px;
  border-radius: 6px;
  font-size: 12px;
}
.auth-card .auth-footer {
  margin: 25px 0 0;
  color: #8994a5;
  font-size: 12px;
}
.auth-card .auth-footer a {
  margin-left: 4px;
  color: #5365d8;
  font-weight: 800;
}
.auth-panel > .legal {
  margin: 23px 0 0;
  color: #9aa5b4;
  font-size: 11px;
}
@media (max-width: 900px) {
  .auth-layout {
    grid-template-columns: 1fr;
  }
  .auth-intro {
    min-height: 255px;
    padding: 28px 28px 30px;
    border-right: 0;
    border-bottom: 1px solid #e5eaf2;
  }
  .auth-intro-copy {
    margin: 26px 0 0;
    padding: 0;
  }
  .auth-intro h1 {
    max-width: 520px;
    font-size: 34px;
  }
  .auth-intro .intro-copy {
    display: none;
  }
  .auth-assurance {
    position: absolute;
    right: 28px;
    bottom: 30px;
  }
  .auth-panel {
    min-height: calc(100dvh - 255px);
    padding: 42px 24px 30px;
  }
}
@media (max-width: 520px) {
  .auth-intro {
    min-height: 218px;
    padding: 22px 20px;
  }
  .auth-brand {
    font-size: 14px;
  }
  .auth-brand .brand-mark {
    width: 34px;
    height: 34px;
  }
  .auth-intro-copy {
    margin-top: 23px;
  }
  .auth-intro .eyebrow {
    margin-bottom: 10px;
    font-size: 10px;
  }
  .auth-intro h1 {
    font-size: 28px;
  }
  .auth-assurance {
    right: 20px;
    bottom: 22px;
    padding: 8px 10px;
    font-size: 11px;
  }
  .auth-panel {
    min-height: calc(100dvh - 218px);
    align-content: start;
    padding: 24px 14px 22px;
  }
  .auth-card {
    padding: 29px 22px 25px;
    border-radius: 8px;
  }
  .auth-card .panel-heading {
    margin-bottom: 24px;
  }
  .auth-card .panel-heading h2 {
    font-size: 24px;
  }
}
.member-owned-item strong { color: #334155; font-size: 13px; }
.member-owned-item small, .member-owned-item span { color: #788697; font-size: 11px; }
.member-owned-item .status-pill { width: max-content; }
.member-owned-item > div:last-child { min-width: 180px; text-align: right; }
.sites-member-content { max-width: 1120px; padding-top: 48px; }
.sites-list { display: grid; gap: 14px; }
.member-site-item { border: 1px solid #dfe5ed; border-radius: 8px; background: #fff; overflow: hidden; }
.member-site-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 20px 21px 16px; }
.member-site-header h2 { margin: 0; color: #334155; font-size: 16px; }
.member-site-header p { margin: 7px 0 0; color: #64748b; font-size: 12px; }
.member-site-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.site-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0 21px 16px; color: #64748b; font-size: 11px; }
.site-domain-list { display: grid; margin: 0; padding: 0; border-top: 1px solid #edf1f5; list-style: none; }
.site-domain-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 11px 21px; border-bottom: 1px solid #f0f3f6; }
.site-domain-list li:last-child { border-bottom: 0; }
.site-domain-list strong, .site-domain-list small { display: block; }
.site-domain-list strong { color: #475569; font-size: 12px; }
.site-domain-list small { margin-top: 4px; color: #8a97a8; font-size: 11px; }
.site-domain-actions { display: flex; gap: 8px; flex-shrink: 0; }
.site-empty-domain { color: #8a97a8; font-size: 12px; }
.member-sites-empty { display: grid; min-height: 190px; place-items: center; align-content: center; gap: 8px; border: 1px dashed #ccd7e5; border-radius: 8px; color: #8a97a8; background: #fafbfd; font-size: 12px; }
.member-sites-empty strong { color: #526273; font-size: 14px; }
.site-modal-card { width: min(100%, 590px); }
.site-modal-card textarea { width: 100%; min-height: 96px; padding: 10px 11px; border: 1px solid #cbd5e1; border-radius: 4px; outline: 0; color: var(--ink); background: #fff; font: 12px/1.45 ui-monospace, SFMono-Regular, Consolas, monospace; resize: vertical; }
.site-modal-card textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(47,111,235,.1); }
.sites-admin-table { min-width: 1880px; }
.sites-admin-table .check-column { width: 44px; padding-right: 0; padding-left: 12px; text-align: center !important; }
.sites-admin-table input[type=checkbox] { width: 15px; height: 15px; accent-color: #2f6fba; }
.site-cname-cell { display: inline-flex; align-items: center; gap: 7px; }
.site-cname-cell > span { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cname-copy-button { min-height: 24px; padding: 0 7px; border: 1px solid #d7e0ea; border-radius: 4px; color: #2f6fba; background: #fff; font-size: 10px; font-weight: 650; }
.cname-copy-button:hover { border-color: #8eb7df; background: #f3f8fd; }
.site-list-tools, .site-search-controls { display: flex; align-items: center; gap: 9px; min-width: 0; }
.site-search-controls select { width: 126px; height: 38px; padding: 0 28px 0 11px; border: 1px solid #d2dce7; border-radius: 6px; color: #4f6174; background: #fff; font-size: 12px; outline: 0; }
.site-search-controls select:focus { border-color: #6c9dcc; box-shadow: 0 0 0 3px rgba(47, 111, 186, .11); }
.site-search-controls .search-box { width: min(330px, 45vw); }
.site-list-tools { position: relative; z-index: 20; }
.site-more-actions { position: relative; z-index: 21; }
.site-more-actions .outline-button { min-height: 38px; padding: 0 13px; }
.site-more-actions-menu { position: fixed; z-index: 1200; width: 176px; padding: 7px; border: 1px solid #d9e2eb; border-radius: 8px; background: #fff; box-shadow: 0 16px 38px rgba(32, 59, 88, .2); }
.site-more-actions-menu[hidden] { display: none; }
.site-more-actions-menu p { margin: 5px 7px 7px; padding-bottom: 7px; border-bottom: 1px solid #edf1f5; color: #8492a2; font-size: 11px; white-space: nowrap; }
.menu-item-button { width: 100%; min-height: 32px; padding: 0 8px; border: 0; border-radius: 4px; color: #42566c; background: transparent; font-size: 12px; text-align: left; cursor: pointer; }
.menu-item-button:hover { color: #1d4f86; background: #edf5fb; }
.site-sync-status { display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px; border-radius: 11px; font-size: 11px; font-weight: 650; }
.site-sync-status.synced { color: #17835f; background: #e8f8f1; }
.site-sync-status.syncing { color: #a46a16; background: #fff5df; }
.site-table-domain { display: flex; align-items: center; gap: 7px; margin: 3px 0; }
.site-table-domain .status-pill { min-width: 54px; justify-content: center; }
.site-manage-page { max-width: 1240px; }
.page-back-link { display: inline-block; margin: 0 0 14px; color: #2563eb; font-size: 12px; font-weight: 700; text-decoration: none; }
.page-back-link:hover { text-decoration: underline; }
.danger-button { border-color: #f0c9c5; color: #c2413a; }
.site-settings-page { max-width: none; padding-top: 34px; }
.site-settings-heading { margin-bottom: 20px; }
.site-settings-section { margin: 0; padding: 24px 20px 26px; border-bottom: 1px solid #dfe5ed; background: #fff; }
.site-settings-section:first-of-type { border-top: 1px solid #dfe5ed; }
.site-settings-section h2 { margin: 0 0 22px; color: #1f3f67; font-size: 15px; font-weight: 700; }
.site-basic-grid { display: grid; grid-template-columns: minmax(0, 600px); gap: 0; }
.site-basic-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); align-items: center; min-height: 41px; gap: 16px; }
.site-basic-row > span, .site-field-label { color: #65758a; font-size: 13px; }
.site-basic-row > strong { min-width: 0; overflow-wrap: anywhere; color: #28517d; font-size: 13px; font-weight: 500; }
.site-state { display: inline-flex; align-items: center; gap: 8px; color: #17835f !important; }
.site-state i { width: 10px; height: 10px; flex: 0 0 10px; border-radius: 50%; background: #1ec47c; }
.site-state.disabled { color: #9b5960 !important; }
.site-state.disabled i { background: #d56b72; }
.site-state.plan_expired { color: #a46a16 !important; }
.site-state.plan_expired i { background: #e3a23a; }
.site-state.locked { color: #6a4f9a !important; }
.site-state.locked i { background: #8967bd; }
.status-badge.plan_expired { color: #a46a16; background: #fff5df; }
.status-badge.locked { color: #6a4f9a; background: #f1ebfb; }
.site-settings-form { display: block; }
.site-field-row { display: grid; grid-template-columns: 120px minmax(0, 400px); align-items: start; gap: 16px; margin: 0 0 19px; }
.site-field-label { padding-top: 10px; }
.site-field-control { min-width: 0; }
.site-field-control > input { width: 100%; height: 36px; padding: 0 10px; border: 1px solid #cfd8e3; border-radius: 4px; outline: none; color: #2f5176; background: #fff; font: inherit; font-size: 13px; }
.site-field-control > input:focus { border-color: #4285e8; box-shadow: 0 0 0 2px rgba(66, 133, 232, .12); }
.site-field-control > input[readonly] { color: #526d8a; background: #f8fafc; }
.site-field-control small, .site-origin-table-wrap + small { display: block; margin-top: 8px; color: #7c8ca0; font-size: 12px; line-height: 1.55; }
.site-switch { width: fit-content; min-width: 170px; justify-content: flex-start; gap: 12px !important; color: #485a71 !important; font-weight: 500 !important; }
.site-switch .switch-caption { order: 2; }
.site-switch .switch-track { order: 1; background: #b6c2d0; }
.site-switch input:checked + .switch-track { background: #3186e8; }
.site-settings-actions { display: flex; justify-content: flex-start; padding: 0 0 0 136px; }
.site-settings-actions-bottom { margin-top: 18px; padding-top: 18px; padding-bottom: 4px; border-top: 1px solid #edf1f5; }
.site-defaults-page { max-width: 1180px; }
.site-defaults-section { display: grid; gap: 14px; }
.site-defaults-section h3 { margin: 0 0 2px; color: #334155; font-size: 14px; }
.site-defaults-section > label:not(.settings-switch) { max-width: 520px; }
.site-defaults-section select { width: 100%; height: 38px; margin-top: 7px; padding: 0 10px; border: 1px solid #cbd5e1; border-radius: 4px; color: #334155; background: #fff; font: inherit; font-size: 13px; }
.site-defaults-section select:focus { border-color: #4285e8; outline: none; box-shadow: 0 0 0 2px rgba(66, 133, 232, .12); }
.site-settings-actions .primary-button, .site-section-heading .primary-button { min-height: 36px; padding: 0 14px; border-color: #2378d9; background: #3186e8; font-size: 12px; }
.site-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.site-section-heading h2 { margin: 0; }
.site-origin-row { grid-template-columns: 120px minmax(0, 1fr); margin-bottom: 0; }
.site-origin-table-wrap { overflow-x: auto; }
.site-origin-table { width: 100%; min-width: 640px; border-collapse: collapse; }
.site-origin-table th { padding: 11px 16px; color: #53657a; background: #f6f8fb; font-size: 12px; font-weight: 700; text-align: left; }
.site-origin-table td { padding: 12px 16px; border-bottom: 1px solid #e8edf3; color: #405b79; font-size: 13px; vertical-align: middle; }
.site-origin-table td strong, .site-origin-table td small { display: block; }
.site-origin-table td strong { color: #345879; font-weight: 500; }
.site-origin-table td small { margin-top: 5px; color: #8391a1; font-size: 11px; }
.site-origin-table .site-state { font-size: 13px; font-weight: 500; }
.site-radio-group { display: flex; align-items: center; gap: 24px; margin: 0; padding: 0; border: 0; }
.site-radio-group label { display: inline-flex; align-items: center; gap: 6px; color: #4d6179; font-size: 13px; cursor: pointer; }
.site-radio-group input { width: 15px; height: 15px; margin: 0; accent-color: #3186e8; }
.site-manage-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); gap: 16px; margin-bottom: 18px; }
.site-manage-grid .panel-card { min-height: 0; }
.site-config-panel .card-heading, .site-owner-panel .card-heading { margin-bottom: 20px; }
.site-config-panel .settings-form { margin: 0; }
.site-info-list { display: grid; gap: 0; margin: 0; }
.site-info-list > div { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 12px; padding: 13px 0; border-bottom: 1px solid #edf1f5; }
.site-info-list > div:last-child { border-bottom: 0; }
.site-info-list dt { color: #8a97a8; font-size: 11px; }
.site-info-list dd { min-width: 0; margin: 0; overflow-wrap: anywhere; color: #475569; font-size: 12px; font-weight: 650; }
.site-domains-panel .table-toolbar > div { display: grid; gap: 4px; }
.site-domains-panel .table-toolbar strong { color: #334155; font-size: 15px; }
.site-domains-table { min-width: 900px; }
@media (max-width: 900px) { .site-manage-grid { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .site-settings-page { padding-right: 15px; padding-left: 15px; }.site-settings-section { padding: 20px 14px; }.site-basic-grid { grid-template-columns: 1fr; }.site-basic-row, .site-field-row { grid-template-columns: 1fr; gap: 6px; }.site-field-label { padding-top: 0; }.site-settings-actions { padding-left: 0; }.site-origin-row { grid-template-columns: 1fr; }.site-section-heading { align-items: flex-start; flex-direction: column; }.site-section-heading .primary-button { width: 100%; }.site-field-control { width: 100%; } }
@media (max-width: 720px) { .form-grid.two, .form-grid.three, .form-grid.four, .plan-cname-grid, .plan-features { grid-template-columns: 1fr 1fr; }.plan-cname-host-field { grid-column: 1 / -1; }.member-topbar { flex-wrap: wrap; gap: 10px; padding-top: 10px; padding-bottom: 10px; }.member-nav { order: 3; width: 100%; margin: 0; }.member-owned-item { align-items: flex-start; flex-direction: column; }.member-owned-item > div:last-child { min-width: 0; text-align: left; } }
@media (max-width: 720px) { .member-site-header { flex-direction: column; }.member-site-actions { justify-content: flex-start; }.site-domain-list li { align-items: flex-start; flex-direction: column; }.site-domain-actions { width: 100%; } }
@media (max-width: 440px) { .form-grid.two, .form-grid.three, .form-grid.four, .plan-cname-grid, .plan-features { grid-template-columns: 1fr; }.plan-cname-host-field { grid-column: auto; }.plan-modal-card { padding: 20px; }.plans-member-content { padding: 32px 16px; } }

/* Cache rules and purge/preheat operations. */
.cache-section-copy { margin: -14px 0 20px; color: #7c8ca0; font-size: 12px; }
.site-panel-heading-action { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.site-panel-heading-action > div { min-width: 0; }
.cache-rules-table { min-width: 760px; }
.cache-ttl-input { display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: 8px; }
.cache-ttl-input input, .cache-ttl-input select { width: 100%; min-height: 42px; margin: 0 !important; }
.site-defaults-layout { align-items: start; }
.site-defaults-layout > .settings-card { grid-column: 1; }
.site-defaults-layout > .settings-help { grid-column: 2; grid-row: 1 / span 2; }
.default-cache-card { overflow: hidden; }
.default-cache-card .card-heading { align-items: center; padding: 22px; }
.default-cache-card .card-heading p { margin: 6px 0 0; }
.default-cache-table { min-width: 700px; }
.default-cache-actions { display: flex; justify-content: flex-end; padding: 16px 20px; border-top: 1px solid #e8edf3; }
.cache-operations-page { max-width: 1180px; }
.cache-operation-tabs { margin-top: 0; }
.cache-submit-card { max-width: 760px; padding: 24px; }
.cache-submit-card .card-heading { margin-bottom: 20px; }
.cache-submit-card .settings-form { max-width: 620px; margin: 0; }
.cache-record-filters { align-items: end; padding: 16px 20px !important; background: #fbfcfe; }
.cache-record-filter-fields { display: grid; grid-template-columns: 150px 150px minmax(190px, 280px); align-items: end; gap: 12px; }
.cache-record-filter-fields label { display: grid; gap: 7px; min-width: 0; color: #7b899a; font-size: 11px; font-weight: 700; }
.cache-record-filter-fields select { width: 100%; height: 38px; padding: 0 32px 0 11px; border: 1px solid #d5dde7; border-radius: 6px; outline: 0; color: #42566c; background: #fff; font-size: 12px; }
.cache-record-filter-fields select:focus { border-color: #7c83e8; box-shadow: 0 0 0 3px rgba(99, 102, 241, .1); }
.cache-record-filters .table-total { align-self: center; white-space: nowrap; }
.cache-record-table { min-width: 940px; }
.cache-target-text { display: block; max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cache-node-detail-card { width: min(100%, 820px); }
.cache-node-table { min-width: 620px; }
.cache-node-detail-card .modal-footer { display: flex; justify-content: flex-end; padding: 14px 20px; border-top: 1px solid #e8edf3; }
@media (max-width: 900px) {
  .site-defaults-layout { grid-template-columns: 1fr; }
  .site-defaults-layout > .settings-card { grid-column: 1; }
  .site-defaults-layout > .settings-help { display: none; }
}
@media (max-width: 600px) {
  .site-panel-heading-action { align-items: stretch; flex-direction: column; }
  .site-panel-heading-action .primary-button { width: 100%; }
  .cache-ttl-input { grid-template-columns: minmax(0, 1fr) 92px; }
  .cache-submit-card { padding: 18px 14px; }
  .cache-record-filters { align-items: stretch; }
  .cache-record-filter-fields { grid-template-columns: 1fr; width: 100%; }
  .cache-record-filters .table-total { align-self: flex-start; }
  .default-cache-card .card-heading { align-items: flex-start; flex-direction: column; gap: 14px; }
}

/* Site and domain monitoring. */
.site-monitoring-page { max-width: 1480px; }
.site-monitoring-member-content { max-width: 1480px; padding-top: 42px; }
.site-monitoring-workspace { overflow: hidden; }
.site-monitoring-filters { display: flex; align-items: end; flex-wrap: wrap; gap: 8px; padding: 14px 16px; border-bottom: 1px solid #e8edf3; background: #fbfcfe; }
.site-monitoring-filters > label { display: grid; width: 150px; gap: 7px; color: #718096; font-size: 11px; font-weight: 700; }
.site-monitoring-filters select { width: 100%; height: 38px; padding: 0 32px 0 11px; border: 1px solid #d5dde7; border-radius: 6px; background: #fff; color: #42566c; font-size: 12px; }
.site-monitoring-range { display: grid; gap: 7px; }
.site-monitoring-range > span { color: #718096; font-size: 11px; font-weight: 700; }
.site-monitoring-filters .monitoring-segment { min-height: 38px; }
.site-monitoring-filters .monitoring-custom-range { align-items: end; gap: 6px; margin: 0; padding-left: 0; }
.site-monitoring-filters .monitoring-custom-range label { display: grid; gap: 7px; color: #718096; font-size: 11px; font-weight: 700; }
.site-monitoring-filters .monitoring-custom-range input { height: 38px; padding: 0 10px; border: 1px solid #d5dde7; border-radius: 6px; background: #fff; }
.site-monitoring-filters > .primary-button { min-width: 58px; min-height: 34px; height: 34px; padding: 0 13px; font-size: 11px; box-shadow: none; }
.site-monitoring-filters > .primary-button:hover { box-shadow: 0 2px 5px rgba(79, 70, 229, .18); }
.site-monitoring-filters .date-range-trigger { width: 220px; height: 34px; }
.site-monitoring-panel { min-height: 460px; padding: 18px 20px 24px; }
.site-monitoring-panel[hidden] { display: none; }
.site-monitoring-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.site-monitoring-summary article { display: grid; gap: 5px; min-height: 94px; padding: 15px 17px; border: 1px solid #e3e8ef; border-radius: 8px; background: #fff; }
.site-monitoring-summary span { color: #718096; font-size: 11px; font-weight: 700; }
.site-monitoring-summary strong { color: #263b55; font-size: 22px; font-weight: 700; }
.site-monitoring-summary small { color: #9aa6b5; font-size: 10px; }
.site-monitoring-chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.site-monitoring-chart-grid > article { min-width: 0; overflow: hidden; border: 1px solid #e3e8ef; border-radius: 8px; background: #fff; }
.site-monitoring-chart-grid h3 { margin: 0; padding: 14px 16px 0; color: #475569; font-size: 13px; }
.site-monitoring-chart-grid .monitoring-chart { position: relative; min-height: 280px; padding: 5px 8px 10px; }
.site-monitoring-chart-grid .monitoring-chart svg { display: block; width: 100%; }
.site-monitoring-chart-grid .monitoring-legend { min-height: 28px; padding: 7px 10px 0; }
.site-monitoring-chart-wide { grid-column: 1 / -1; }
.site-chart-tooltip { position: absolute; z-index: 5; display: grid; min-width: 150px; max-width: 250px; gap: 6px; padding: 10px 11px; pointer-events: none; border: 1px solid #dce3ec; border-radius: 7px; color: #475569; background: rgba(255, 255, 255, .97); box-shadow: 0 8px 24px rgba(15, 23, 42, .16); font-size: 11px; }
.site-chart-tooltip[hidden] { display: none; }
.site-chart-tooltip strong { padding-bottom: 5px; border-bottom: 1px solid #edf0f4; color: #334155; font-size: 11px; }
.site-chart-tooltip span { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: center; gap: 6px; }
.site-chart-tooltip i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.site-chart-tooltip em { overflow: hidden; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.site-chart-tooltip b { color: #334155; font-weight: 700; white-space: nowrap; }
.site-status-breakdown { margin-top: 16px; padding: 16px; border: 1px solid #e3e8ef; border-radius: 8px; background: #fff; }
.site-status-breakdown h3 { margin: 0 0 12px; color: #475569; font-size: 13px; }
.site-status-breakdown > div { display: flex; flex-wrap: wrap; gap: 8px; }
.site-status-breakdown span { display: inline-flex; align-items: center; gap: 8px; min-height: 30px; padding: 0 10px; border-radius: 6px; background: #fff7e6; color: #9a6515; font-size: 11px; }
.site-status-breakdown span.status-5xx { background: #fff0f1; color: #b74752; }
.site-status-breakdown em { font-style: normal; opacity: .78; }
.site-status-breakdown small { color: #94a3b8; }
.site-ranking-tabs { width: fit-content; max-width: 100%; margin-bottom: 16px; overflow-x: auto; }
.site-monitoring-ranking-table { min-width: 920px; }
.site-ranking-value { max-width: 360px; overflow: hidden; text-align: left !important; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 900px) {
  .site-monitoring-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-monitoring-chart-grid { grid-template-columns: 1fr; }
  .site-monitoring-chart-wide { grid-column: auto; }
}
@media (max-width: 600px) {
  .site-monitoring-filters { align-items: stretch; flex-direction: column; }
  .site-monitoring-filters > label, .site-monitoring-range, .site-monitoring-filters > .primary-button { width: 100%; }
  .site-monitoring-filters .monitoring-segment { width: 100%; overflow-x: auto; }
  .site-monitoring-filters .monitoring-custom-range { grid-template-columns: 1fr; width: 100%; }
  .site-monitoring-summary { grid-template-columns: 1fr 1fr; }
  .site-monitoring-panel { padding: 14px; }
}

/* Shared two-month date and time range picker. */
.date-range-picker { position: relative; min-width: 0; }
.date-range-trigger { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 230px; height: 38px; padding: 0 11px; border: 1px solid #cfd8e5; border-radius: 6px; color: #64748b; background: #fff; font: inherit; font-size: 11px; cursor: pointer; }
.date-range-trigger:hover, .date-range-trigger[aria-expanded=true] { border-color: #7c83e8; box-shadow: 0 0 0 3px rgba(99, 102, 241, .1); }
.date-range-trigger span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.date-range-trigger i { position: relative; width: 14px; height: 14px; flex: 0 0 14px; border: 1.5px solid #94a3b8; border-radius: 3px; }
.date-range-trigger i::before { content: ""; position: absolute; top: 3px; right: 1px; left: 1px; border-top: 1.5px solid #94a3b8; }
.date-range-popover { position: absolute; top: calc(100% + 8px); right: 0; z-index: 1300; width: 620px; max-width: calc(100vw - 32px); overflow: hidden; border: 1px solid #dce3ec; border-radius: 9px; background: #fff; box-shadow: 0 18px 48px rgba(15, 23, 42, .2); }
.date-range-popover[hidden] { display: none; }
.date-range-calendars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.date-range-month { padding: 14px 15px 12px; }
.date-range-month + .date-range-month { border-left: 1px solid #edf0f4; }
.date-range-month header { display: grid; grid-template-columns: 30px minmax(0, 1fr) 30px; align-items: center; min-height: 32px; margin-bottom: 8px; }
.date-range-month header strong { grid-column: 2; color: #475569; font-size: 12px; text-align: center; }
.date-range-month header button { display: grid; grid-column: 1; grid-row: 1; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 5px; color: #94a3b8; background: transparent; font-size: 20px; cursor: pointer; }
.date-range-month + .date-range-month header button { grid-column: 3; }
.date-range-month header button:hover { color: #4f46e5; background: #f2f3ff; }
.date-range-weekdays, .date-range-days { display: grid; grid-template-columns: repeat(7, 1fr); }
.date-range-weekdays span { padding: 6px 0; color: #9aa6b5; font-size: 10px; text-align: center; }
.date-range-days button { position: relative; height: 31px; padding: 0; border: 0; color: #526273; background: transparent; font-size: 11px; cursor: pointer; }
.date-range-days button:hover { color: #4f46e5; background: #f0f2ff; }
.date-range-days button.outside { color: #c5ccd5; }
.date-range-days button.in-range { color: #4f46e5; background: #eef2ff; }
.date-range-days button.selected { z-index: 1; border-radius: 5px; color: #fff; background: #6366f1; font-weight: 700; }
.date-range-footer { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding: 12px 15px; border-top: 1px solid #edf0f4; background: #fafbfc; }
.date-range-times { display: flex; align-items: end; gap: 8px; }
.date-range-times > span { padding-bottom: 9px; color: #94a3b8; font-size: 11px; }
.date-range-times label { display: grid; gap: 5px; color: #8492a2; font-size: 10px; }
.date-range-times input { width: 92px; height: 34px; padding: 0 8px; border: 1px solid #d5dde7; border-radius: 5px; color: #475569; background: #fff; }
.date-range-actions { display: flex; gap: 8px; }
.date-range-actions button { min-width: 68px; min-height: 34px; }
.access-log-date-range { display: grid; grid-column: span 2; gap: 7px; }
.access-log-date-range > label { color: #64748b; font-size: 11px; font-weight: 700; }
.access-log-date-range .date-range-trigger { width: 100%; }
@media (max-width: 700px) {
  .date-range-popover { position: fixed; top: 50%; right: 16px; left: 16px; width: auto; max-height: calc(100dvh - 32px); transform: translateY(-50%); overflow: auto; }
  .date-range-calendars { min-width: 560px; }
  .date-range-footer { align-items: stretch; flex-direction: column; }
  .date-range-times, .date-range-actions { justify-content: space-between; }
  .date-range-actions button { flex: 1; }
}

/* Unified modal workspace. */
.modal-backdrop { z-index: 100; align-items: center; justify-items: center; padding: 24px; background: rgba(15, 23, 42, .48); backdrop-filter: blur(3px); }
.modal-card { display: flex; flex-direction: column; width: min(100%, 540px); max-height: min(88dvh, 780px); padding: 0; overflow: hidden; border: 1px solid #dce3ed; border-radius: 8px; background: #fff; box-shadow: 0 24px 64px rgba(15, 23, 42, .28), 0 4px 14px rgba(15, 23, 42, .1); animation: modal-enter .18s ease-out; }
.modal-heading { min-height: 72px; align-items: center; flex: 0 0 auto; margin: 0; padding: 15px 18px 15px 22px; border-bottom: 1px solid #e8edf3; background: #fff; }
.modal-heading .eyebrow { margin: 0 0 4px; color: #8996a8; font-size: 10px; letter-spacing: .12em; }
.modal-heading h2 { color: #1e293b; font-size: 17px; line-height: 1.35; letter-spacing: 0; }
.modal-close { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 32px; padding: 0; border: 1px solid transparent; border-radius: 6px; color: #8290a2; background: transparent; font-size: 22px; line-height: 1; transition: color .15s, border-color .15s, background .15s; }
.modal-close:hover { border-color: #dce3ed; color: #475569; background: #f8fafc; }
.modal-close:focus-visible { outline: 3px solid rgba(99, 102, 241, .2); outline-offset: 2px; }
.modal-card > .notice { flex: 0 0 auto; margin: 16px 22px 0; border: 1px solid #f4d7d2; border-radius: 6px; }
.modal-card > .notice.success { border-color: #ccebdd; }
.modal-card .settings-form { min-height: 0; margin: 0; padding: 22px 22px 24px; overflow-y: auto; }
.modal-card .settings-form label { color: #475569; font-size: 12px; }
.modal-card .settings-form input, .modal-card .settings-form select, .modal-card .settings-form textarea { background: #fff; }
.modal-card .settings-form textarea { min-height: 82px; padding: 10px 11px; resize: vertical; }
.modal-card .field-help { margin: -2px 0 0; color: #8a97a8; line-height: 1.55; }
.modal-card .settings-actions { position: sticky; bottom: -24px; z-index: 1; margin: 2px -22px -24px; padding: 16px 22px; border-top: 1px solid #e8edf3; background: #fff; box-shadow: 0 -8px 18px rgba(15, 23, 42, .035); }
.dashboard-shell .modal-card .settings-actions .primary-button { width: auto; min-width: 118px; min-height: 38px; }
.dashboard-shell .modal-card .settings-actions .outline-button { min-height: 38px; }
.modal-card > .table-wrap { min-height: 0; margin: 0 22px; overflow: auto; }
.modal-card > .pagination { flex: 0 0 auto; margin-top: 14px; border-top-color: #e8edf3; }
.modal-card > .dns-task-detail-list { min-height: 0; margin: 22px 22px 0; overflow: auto; }
.modal-card > .dns-task-detail-payload { margin: 14px 22px 22px; }
.modal-card.plan-modal-card { width: min(900px, calc(100vw - 48px)); }
.modal-card.plan-modal-card .settings-form { padding: 24px 26px 26px; }
.modal-card.plan-modal-card .settings-actions { bottom: -26px; margin-right: -26px; margin-bottom: -26px; margin-left: -26px; padding-right: 26px; padding-left: 26px; }
.modal-card.task-runs-card { width: min(900px, calc(100vw - 48px)); }
@keyframes modal-enter { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (max-width: 700px) { .modal-backdrop { align-items: end; padding: 12px; }.modal-card, .modal-card.plan-modal-card, .modal-card.task-runs-card { width: 100%; max-height: min(92dvh, 840px); border-radius: 8px; }.modal-heading { min-height: 64px; padding: 13px 15px 13px 18px; }.modal-card .settings-form { padding: 18px; }.modal-card .settings-actions { bottom: -18px; margin: 2px -18px -18px; padding: 14px 18px; }.modal-card.plan-modal-card .settings-form { padding: 18px; }.modal-card.plan-modal-card .settings-actions { bottom: -18px; margin: 2px -18px -18px; padding: 14px 18px; }.modal-card > .table-wrap, .modal-card > .dns-task-detail-list { margin-right: 18px; margin-left: 18px; } }

.plan-tabs { display: flex; align-items: center; gap: 6px; margin: 0 0 14px; border-bottom: 1px solid #e5eaf1; }
.base-plan-page .plan-tabs, .base-plan-page #sold-plans-panel { display: none; }
.plan-tab { min-height: 40px; padding: 0 14px; border: 0; border-bottom: 2px solid transparent; color: #8492a2; background: transparent; font-size: 13px; font-weight: 700; cursor: pointer; }
.plan-tab:hover { color: #4f46e5; }
.plan-tab.active { border-bottom-color: #6366f1; color: #4f46e5; }
.plan-tab-panel[hidden] { display: none; }
.sold-plans-table { min-width: 1040px; }
.assign-plan-modal-card { width: min(100%, 560px); }
.assign-member-field { display: grid; gap: 7px; }
.assign-member-field > label { color: #475569; font-size: 12px; font-weight: 700; }
.assign-member-search { width: 100%; height: 42px; background: #fff; }
.assign-member-results { display: grid; max-height: 220px; overflow-y: auto; border: 1px solid #e2e8f0; border-radius: 6px; background: #fff; }
.assign-member-option { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-bottom: 1px solid #edf1f5; color: #334155; background: #fff; text-align: left; cursor: pointer; }
.assign-member-option:last-child { border-bottom: 0; }
.assign-member-option:hover, .assign-member-option.selected { background: #f4f6ff; }
.assign-member-option > span:last-child { display: grid; gap: 3px; min-width: 0; }
.assign-member-option small { color: #8a97a8; font-size: 11px; font-weight: 400; }
.assign-member-empty { padding: 17px 12px; color: #8a97a8; font-size: 12px; text-align: center; }
.assign-member-selected { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 11px; border: 1px solid #cbd5e1; border-radius: 6px; color: #475569; background: #f8fafc; }
.assign-member-selected[hidden] { display: none; }
.assign-member-selected span { color: #16845a; font-size: 11px; font-weight: 700; }
.assign-member-selected strong { color: #1e293b; font-size: 12px; }
.assign-member-selected small { color: #8a97a8; font-size: 11px; }
.assign-member-selected .row-action { margin-left: auto; }
.assign-duration { margin: 0; padding: 14px; border: 1px solid #dbe2eb; border-radius: 6px; }
.assign-duration legend { padding: 0 4px; color: #526273; font-size: 12px; font-weight: 700; }
.duration-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.duration-options label { display: flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 8px; border: 1px solid #dbe2eb; border-radius: 5px; color: #64748b; background: #fff; font-size: 12px; font-weight: 600; cursor: pointer; }
.duration-options label:has(input:checked) { border-color: #6366f1; color: #4f46e5; background: #f4f6ff; }
.duration-options input { position: absolute; opacity: 0; pointer-events: none; }
.custom-months-field { max-width: 180px; margin-top: 12px; }
.custom-months-field[hidden] { display: none; }
.row-action:disabled { cursor: default; opacity: .4; }
@media (max-width: 600px) { .duration-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }.assign-member-selected { align-items: flex-start; flex-wrap: wrap; }.assign-member-selected .row-action { margin-left: 0; } }

/* Compact table pagination with clear alignment and page-size control. */
.dashboard-shell .pagination { min-height: 68px; padding: 14px 16px; border-top-color: #e8edf3; background: #fff; }
.dashboard-shell .page-summary { color: #64748b; font-size: 12px; }
.dashboard-shell .pagination-controls { display: inline-flex; align-items: center; gap: 6px; }
.dashboard-shell .page-numbers { gap: 6px; }
.dashboard-shell .page-button { min-width: 34px; height: 34px; margin: 0; padding: 0 9px; border: 1px solid #d9e0ea; border-radius: 5px; color: #64748b; background: #fff; font-size: 12px; font-weight: 600; }
.dashboard-shell .page-button.page-nav { color: #94a3b8; font-size: 18px; font-weight: 400; }
.dashboard-shell .page-button:hover:not(:disabled) { border-color: #93b4ff; color: #2563eb; background: #f7faff; }
.dashboard-shell .page-button.active { border-color: #2563eb; color: #fff; background: #2563eb; box-shadow: 0 2px 5px rgba(37, 99, 235, .18); }
.dashboard-shell .page-button:disabled { color: #cbd5e1; background: #f8fafc; }
.dashboard-shell .page-size-select { height: 34px; padding: 0 28px 0 10px; border: 1px solid #d9e0ea; border-radius: 5px; outline: 0; color: #64748b; background: #fff; font: inherit; font-size: 12px; cursor: pointer; }
.dashboard-shell .page-size-select:focus { border-color: #93b4ff; box-shadow: 0 0 0 2px rgba(37, 99, 235, .1); }
@media (max-width: 600px) { .dashboard-shell .pagination { align-items: stretch; gap: 12px; }.dashboard-shell .pagination-controls { width: 100%; justify-content: flex-end; flex-wrap: wrap; }.dashboard-shell .page-summary { font-size: 11px; } }

.sold-plan-edit-card { width: min(920px, calc(100vw - 48px)); max-height: min(90dvh, 860px); }
.sold-plan-edit-card .settings-form { display: block; padding: 22px 26px 88px; overflow-y: auto; }
.sold-edit-section { display: grid; gap: 14px; margin: 0 0 22px; padding: 0 0 22px; border-bottom: 1px solid #e8edf3; }
.sold-edit-section h3 { margin: 0; color: #334155; font-size: 13px; line-height: 1.4; }
.sold-edit-section .form-grid { gap: 12px 14px; }
.sold-edit-section .plan-features { margin: 0; }
.sold-plan-edit-card .settings-actions { position: sticky; bottom: -62px; margin: 0 -26px -62px; padding: 14px 26px; border-top: 1px solid #e8edf3; background: rgba(255, 255, 255, .97); box-shadow: 0 -8px 18px rgba(15, 23, 42, .06); }
.sold-plan-edit-card .settings-actions .primary-button { min-width: 112px; }
@media (max-width: 700px) { .sold-plan-edit-card .settings-form { padding: 18px 18px 78px; }.sold-plan-edit-card .settings-actions { bottom: -52px; margin: 0 -18px -52px; padding: 12px 18px; } }

/* Keep the footer full-width while grouping pagination controls like the reference layout. */
.dashboard-shell .pagination { justify-content: flex-start; gap: 16px; width: 100%; box-sizing: border-box; }
.dashboard-shell .pagination-controls { margin-left: 0; }
@media (max-width: 600px) { .dashboard-shell .pagination-controls { width: auto; justify-content: flex-start; } }

/* Admin pages use the full workspace width; keep only comfortable inner padding. */
.dashboard-shell .dashboard-content { width: 100%; max-width: none; margin: 0; padding: 45px 40px 70px; }
@media (max-width: 900px) { .dashboard-shell .dashboard-content { padding: 32px 20px; } }
@media (max-width: 600px) { .dashboard-shell .dashboard-content { padding: 25px 15px; } }

/* Configuration-style layout for the sold-plan editor. */
.sold-plan-edit-card { width: min(1040px, calc(100vw - 48px)); max-height: min(92dvh, 900px); border-radius: 3px; }
.sold-plan-edit-card .modal-heading { min-height: 58px; padding: 0 20px; }
.sold-plan-edit-card .modal-heading h2 { font-size: 16px; font-weight: 650; }
.sold-plan-edit-card .settings-form { display: block; padding: 22px 26px 92px; overflow-y: auto; }
.sold-edit-section { display: grid; gap: 13px; margin: 0 0 20px; padding: 0 0 20px; border-bottom: 0; }
.sold-edit-section h3 { display: flex; align-items: center; gap: 11px; margin: 0; color: #475569; font-size: 12px; font-weight: 650; white-space: nowrap; }
.sold-edit-section h3::before, .sold-edit-section h3::after { content: ""; height: 1px; background: #e5eaf1; }
.sold-edit-section h3::before { width: 44px; }
.sold-edit-section h3::after { flex: 1; }
.sold-edit-section .form-grid { gap: 14px 24px; }
.sold-edit-section .form-grid label { display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: center; gap: 9px; min-width: 0; color: #526273; font-size: 12px; font-weight: 500; }
.sold-edit-section .form-grid label > input, .sold-edit-section .form-grid label > select { min-width: 0; height: 34px; padding: 0 9px; font-size: 12px; }
.sold-edit-section .field-help { grid-column: 2; margin: -3px 0 0; }
.sold-edit-section .resource-limit-help { grid-column: 1 / -1; margin: -4px 0 0; }
.sold-edit-section .plan-features { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 25px; padding: 0; border: 0; }
.sold-edit-section .plan-features legend { display: none; }
.sold-edit-section .plan-features label { min-height: 34px; }
.sold-plan-edit-card .settings-actions { position: sticky; bottom: -66px; margin: 0 -26px -66px; padding: 14px 26px; border-top: 1px solid #e5eaf1; background: rgba(255, 255, 255, .98); box-shadow: 0 -8px 18px rgba(15, 23, 42, .05); }
.sold-plan-edit-card .settings-actions .primary-button { min-width: 112px; }
@media (max-width: 800px) { .sold-edit-section .form-grid.two, .sold-edit-section .form-grid.three { grid-template-columns: 1fr; }.sold-edit-section .plan-features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .sold-plan-edit-card { width: 100%; max-height: min(94dvh, 900px); }.sold-plan-edit-card .settings-form { padding: 18px 18px 78px; }.sold-edit-section .form-grid label { grid-template-columns: 82px minmax(0, 1fr); }.sold-plan-edit-card .settings-actions { bottom: -52px; margin: 0 -18px -52px; padding: 12px 18px; } }

/* Configuration-style layout for the base-plan editor. */
.base-plan-edit-card { width: min(1040px, calc(100vw - 48px)); max-height: min(92dvh, 900px); border-radius: 3px; }
.base-plan-edit-card .modal-heading { min-height: 58px; padding: 0 20px; }
.base-plan-edit-card .modal-heading h2 { font-size: 16px; font-weight: 650; }
.base-plan-edit-card .settings-form { display: block; padding: 22px 26px 92px; overflow-y: auto; }
.base-plan-edit-section { display: grid; gap: 13px; margin: 0 0 20px; padding: 0 0 20px; }
.base-plan-edit-section h3 { display: flex; align-items: center; gap: 11px; margin: 0; color: #475569; font-size: 12px; font-weight: 650; white-space: nowrap; }
.base-plan-edit-section h3::before, .base-plan-edit-section h3::after { content: ""; height: 1px; background: #e5eaf1; }
.base-plan-edit-section h3::before { width: 44px; }
.base-plan-edit-section h3::after { flex: 1; }
.base-plan-edit-section .form-grid { gap: 14px 24px; }
.base-plan-edit-section .form-grid label, .base-plan-cname-grid label { display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: center; gap: 9px; min-width: 0; color: #526273; font-size: 12px; font-weight: 500; }
.base-plan-edit-section .form-grid label > input, .base-plan-edit-section .form-grid label > select, .base-plan-cname-grid label > input, .base-plan-cname-grid label > select { min-width: 0; height: 34px; padding: 0 9px; font-size: 12px; }
.base-plan-edit-section .field-help { grid-column: 2; margin: -3px 0 0; }
.base-plan-edit-section .resource-limit-help { grid-column: 1 / -1; margin: -4px 0 0; }
.base-plan-wide-field { display: grid; gap: 7px; color: #526273; font-size: 12px; font-weight: 500; }
.base-plan-wide-field textarea { min-height: 68px !important; }
.base-plan-cname-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; }
.base-plan-edit-section .plan-features { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 25px; margin: 0; padding: 0; border: 0; }
.base-plan-edit-section .plan-features legend { display: none; }
.base-plan-edit-section .plan-features label { min-height: 34px; }
.base-plan-price-section { margin-bottom: 0; padding-bottom: 0; }
.base-plan-edit-card .settings-actions { position: sticky; bottom: -66px; margin: 0 -26px -66px; padding: 14px 26px; border-top: 1px solid #e5eaf1; background: rgba(255, 255, 255, .98); box-shadow: 0 -8px 18px rgba(15, 23, 42, .05); }
.base-plan-edit-card .settings-actions .primary-button { min-width: 112px; }
@media (max-width: 800px) { .base-plan-edit-section .form-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }.base-plan-edit-section .plan-features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .base-plan-edit-card { width: 100%; max-height: min(94dvh, 900px); }.base-plan-edit-card .settings-form { padding: 18px 18px 78px; }.base-plan-edit-section .form-grid.two, .base-plan-edit-section .form-grid.three, .base-plan-cname-grid { grid-template-columns: 1fr; }.base-plan-edit-section .form-grid label, .base-plan-cname-grid label { grid-template-columns: 82px minmax(0, 1fr); }.base-plan-edit-card .settings-actions { bottom: -52px; margin: 0 -18px -52px; padding: 12px 18px; } }
@media (max-width: 440px) { .base-plan-edit-section .form-grid.four, .base-plan-edit-section .plan-features { grid-template-columns: 1fr; } }

/* Enterprise admin workspace refresh. */
.dashboard-shell {
  --admin-navy: #142b45;
  --admin-navy-soft: #1b3858;
  --admin-blue: #2f6fba;
  --admin-text: #1f2d3d;
  --admin-line: #e4eaf1;
  background: #f4f7fa;
  color: var(--admin-text);
}
.dashboard-shell .sidebar {
  width: 256px;
  padding: 20px 14px;
  border-right: 1px solid #e4eaf1;
  color: #475569;
  background: #fff;
  box-shadow: none;
}
.dashboard-shell .sidebar-brand {
  margin: 0 12px 32px;
  color: #1f2d3d;
  font-size: 15px;
  letter-spacing: .01em;
}
.dashboard-shell .sidebar-brand .brand-mark {
  background: #2e70b8;
  box-shadow: 0 3px 8px rgba(46, 112, 184, .18);
}
.dashboard-shell .sidebar-menu { gap: 7px; }
.dashboard-shell .sidebar-group { gap: 3px; }
.dashboard-shell .sidebar-parent {
  gap: 0;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #43566f;
  font-size: 13px;
  font-weight: 650;
}
.dashboard-shell .sidebar-parent > span:first-child { flex: 1; }
.dashboard-shell .sidebar-parent > .sidebar-chevron { flex: 0 0 16px; }
.dashboard-shell .sidebar-parent:hover {
  color: #2f6fba;
  background: #f4f8fc;
}
.dashboard-shell .sidebar-group.is-active > .sidebar-parent {
  color: #2f6fba;
  background: #edf5fc;
  border-color: #dceaf8;
}
.dashboard-shell .sidebar-parent-icon {
  width: 22px;
  color: #60758d;
  font-size: 15px;
}
.dashboard-shell .sidebar-group.is-active > .sidebar-parent .sidebar-parent-icon { color: #2f6fba; }
.dashboard-shell .sidebar-chevron { color: #71839a; }
.dashboard-shell .sidebar-subnav {
  gap: 3px;
  margin-left: 12px;
  padding: 4px 0 5px 12px;
  border-left: 1px solid #e5edf5;
}
.dashboard-shell .sidebar-subnav .nav-item {
  position: relative;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 6px;
  color: #53677d;
  font-size: 12px;
}
.dashboard-shell .sidebar-subnav .nav-item:hover {
  color: #2f6fba;
  background: #f4f8fc;
}
.dashboard-shell .sidebar-subnav .nav-item.active {
  color: #2f6fba;
  background: #eaf3fc;
  box-shadow: inset 3px 0 0 #2f6fba;
}
.dashboard-shell .sidebar-subnav .nav-item .nav-icon {
  width: 28px;
  color: #90a1b4;
  font-size: 0;
  font-weight: 700;
  text-align: left;
}
.dashboard-shell .sidebar-subnav .nav-item .nav-icon::before {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  content: "";
  vertical-align: middle;
}
.dashboard-shell .sidebar-subnav .nav-item.active .nav-icon { color: #2f6fba; }
.dashboard-shell .sidebar-bottom { padding: 14px 5px 4px; }
.dashboard-shell .support-card {
  border-color: #e4eaf1;
  background: #f8fafc;
}
.dashboard-shell .support-card strong { color: #43566f; }
.dashboard-shell .support-card small { color: #8495a7; }
.member-page-actions { gap: 8px; }
.member-button-plus {
  font-family: Arial, sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
}
.dashboard-shell .dashboard-main { background: #f4f7fa; }
.dashboard-shell .topbar {
  min-height: 72px;
  padding: 0 38px;
  border-bottom: 1px solid var(--admin-line);
  background: #fff;
}
.dashboard-shell .dashboard-content { padding: 38px 40px 64px; }
.dashboard-shell .page-heading {
  align-items: flex-end;
  margin-bottom: 28px;
}
.dashboard-shell .page-heading .eyebrow { display: none; }
.dashboard-shell .modal-heading .eyebrow {
  margin: 0 0 7px;
  color: #78899d;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
}
.dashboard-shell .page-heading h1 {
  margin: 0 0 7px;
  color: #1d2c3c;
  font-size: 26px;
  font-weight: 750;
  letter-spacing: 0;
}
.dashboard-shell .page-heading p:not(.eyebrow) {
  color: #7b899a;
  line-height: 1.6;
}
.dashboard-shell .table-panel {
  overflow: hidden;
  border: 1px solid var(--admin-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(24, 50, 76, .045);
}
.dashboard-shell .table-toolbar {
  min-height: 68px;
  padding: 14px 20px;
  border-bottom: 1px solid #edf1f5;
  background: #fff;
}
.dashboard-shell .search-box {
  width: min(370px, 100%);
  height: 38px;
  border-color: #d2dce7;
  border-radius: 6px;
  background: #fbfcfe;
}
.dashboard-shell .search-box:focus-within {
  border-color: #6c9dcc;
  box-shadow: 0 0 0 3px rgba(47, 111, 186, .11);
}
.dashboard-shell .data-table th {
  padding: 13px 18px;
  color: #6e7e91;
  background: #f8fafc;
  font-size: 11px;
  font-weight: 700;
}
.dashboard-shell .data-table td {
  padding: 16px 18px;
  border-top-color: #edf1f5;
  color: #506174;
}
.dashboard-shell .data-table tbody tr:hover td { background: #f8fbfe; }
.dashboard-shell .pagination {
  min-height: 70px;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 20px;
  border-top: 1px solid #e9eef3;
  background: #fff;
}
.dashboard-shell .page-summary {
  color: #7a899a;
  font-size: 12px;
  white-space: nowrap;
}
.dashboard-shell .pagination-controls {
  margin-left: auto;
  gap: 5px;
}
.dashboard-shell .page-button {
  min-width: 34px;
  height: 34px;
  border: 1px solid #d6e0ea;
  border-radius: 6px;
  color: #53677d;
  background: #fff;
  font-size: 12px;
}
.dashboard-shell .page-button.page-nav {
  color: #6f8399;
  font-size: 18px;
}
.dashboard-shell .page-button:hover:not(:disabled) {
  border-color: #8db2d4;
  color: #205f99;
  background: #f2f7fc;
}
.dashboard-shell .page-button.active {
  border-color: #2f6fba;
  color: #fff;
  background: #2f6fba;
  box-shadow: 0 2px 5px rgba(47, 111, 186, .2);
}
.dashboard-shell .page-button:disabled {
  color: #c2ccd7;
  background: #f7f9fb;
}
.dashboard-shell .page-ellipsis { color: #93a1b0; }
.dashboard-shell .modal-backdrop {
  align-items: center;
  padding: 24px;
  background: rgba(14, 31, 50, .56);
  backdrop-filter: blur(4px);
}
.dashboard-shell .modal-card {
  width: min(100%, 560px);
  max-height: min(90dvh, 820px);
  overflow: hidden;
  border: 1px solid #d9e2ec;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(12, 31, 52, .28), 0 5px 16px rgba(12, 31, 52, .11);
}
.dashboard-shell .modal-heading {
  min-height: 76px;
  padding: 16px 20px;
  border-top: 3px solid #2f6fba;
  border-bottom: 1px solid #e7edf3;
  background: #fbfcfe;
}
.dashboard-shell .modal-heading h2 {
  color: #203247;
  font-size: 18px;
  font-weight: 750;
}
.dashboard-shell .modal-close {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  color: #74869a;
  background: transparent;
  font-size: 22px;
}
.dashboard-shell .modal-close:hover {
  color: #304b68;
  background: #edf3f8;
}
.dashboard-shell .modal-card > .notice {
  margin: 16px 20px 0;
  border-radius: 6px;
}
.dashboard-shell .modal-card .settings-form {
  gap: 16px;
  margin: 0;
  padding: 22px 20px 24px;
  overflow-y: auto;
}
.dashboard-shell .modal-card .settings-form label {
  color: #43566c;
  font-size: 12px;
}
.dashboard-shell .modal-card .settings-form input,
.dashboard-shell .modal-card .settings-form select,
.dashboard-shell .modal-card .settings-form textarea {
  min-height: 42px;
  border-color: #ccd8e4;
  border-radius: 6px;
  background: #fff;
}
.dashboard-shell .modal-card .settings-form textarea { min-height: 88px; }
.dashboard-shell .modal-card .settings-form input:focus,
.dashboard-shell .modal-card .settings-form select:focus,
.dashboard-shell .modal-card .settings-form textarea:focus {
  border-color: #5b91bf;
  box-shadow: 0 0 0 3px rgba(47, 111, 186, .12);
}
.dashboard-shell .modal-card .settings-actions {
  position: sticky;
  bottom: -24px;
  margin: 2px -20px -24px;
  padding: 15px 20px;
  border-top: 1px solid #e7edf3;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 -7px 16px rgba(24, 50, 76, .04);
}
.dashboard-shell .modal-card .settings-actions .primary-button {
  width: auto;
  min-width: 112px;
}
.dashboard-shell .modal-card .settings-actions .outline-button { min-width: 78px; }
@media (max-width: 900px) {
  .dashboard-shell .sidebar { width: 74px; padding: 18px 9px; }
  .dashboard-shell .sidebar-brand { justify-content: center; margin: 0 0 34px; }
  .dashboard-shell .sidebar-brand > span:last-child,
  .dashboard-shell .sidebar-label,
  .dashboard-shell .sidebar-parent,
  .dashboard-shell .nav-item:not(.active) { display: none; }
  .dashboard-shell .sidebar-menu { gap: 8px; }
  .dashboard-shell .sidebar-group { display: none; }
  .dashboard-shell .sidebar-group.is-active { display: block; }
  .dashboard-shell .sidebar-subnav {
    margin: 0;
    padding: 0;
    border: 0;
  }
  .dashboard-shell .sidebar-subnav .nav-item.active {
    justify-content: center;
    min-height: 44px;
    padding: 0;
    border-radius: 7px;
  }
  .dashboard-shell .sidebar-subnav .nav-item.active .nav-icon { display: none; }
  .dashboard-shell .topbar { padding: 0 20px; }
  .dashboard-shell .dashboard-content { padding: 32px 20px 54px; }
}
@media (max-width: 600px) {
  .dashboard-shell .dashboard-content { padding: 25px 15px 44px; }
  .dashboard-shell .page-heading { align-items: flex-start; gap: 16px; }
  .dashboard-shell .page-heading h1 { font-size: 23px; }
  .dashboard-shell .table-toolbar,
  .dashboard-shell .pagination { align-items: flex-start; flex-direction: column; }
  .dashboard-shell .pagination { gap: 12px; }
  .dashboard-shell .pagination-controls {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .dashboard-shell .modal-backdrop { align-items: end; padding: 12px; }
  .dashboard-shell .modal-card {
    width: 100%;
    max-height: min(93dvh, 860px);
    border-radius: 10px;
  }
  .dashboard-shell .modal-heading { min-height: 68px; padding: 14px 16px; }
  .dashboard-shell .modal-card .settings-form { padding: 18px 16px 20px; }
  .dashboard-shell .modal-card .settings-actions {
    bottom: -20px;
    margin: 2px -16px -20px;
    padding: 13px 16px;
  }
}

/* Site list status labels and in-app confirmation dialog. */
.sites-admin-table .status-pill,
.sites-admin-table .status-badge,
.sites-admin-table .site-sync-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  height: 24px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
}
.sites-admin-table .status-pill.success,
.sites-admin-table .status-badge.active,
.sites-admin-table .site-sync-status.synced {
  color: #16845a;
  border-color: #c9eddd;
  background: #e9f8f0;
}
.sites-admin-table .status-pill.muted {
  color: #697586;
  border-color: #dce3eb;
  background: #eef1f5;
}
.sites-admin-table .status-badge.disabled {
  color: #b14b43;
  border-color: #f2d0cd;
  background: #fff0ee;
}
.sites-admin-table .status-badge.plan_expired,
.sites-admin-table .site-sync-status.syncing {
  color: #a46a16;
  border-color: #f2dfb7;
  background: #fff5df;
}
.sites-admin-table .status-badge.locked {
  color: #6a4f9a;
  border-color: #dfd2f2;
  background: #f1ebfb;
}
.site-confirm-modal-card { width: min(100%, 460px); }
.site-confirm-content {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 16px;
  border: 1px solid #edf1f5;
  border-radius: 8px;
  background: #fafbfd;
}
.site-confirm-content strong { display: block; color: #334155; font-size: 13px; line-height: 1.6; }
.site-confirm-content p { margin: 6px 0 0; color: #8190a1; font-size: 12px; line-height: 1.55; }
.site-confirm-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 50%;
  color: #16845a;
  background: #e1f7ed;
  font-size: 14px;
  font-weight: 800;
}
.site-confirm-icon.disabled { color: #b14b43; background: #ffe4e1; }
.site-confirm-icon.locked { color: #6a4f9a; background: #eee5fa; font-size: 12px; }
.site-confirm-modal-card .settings-actions { margin-top: 20px; }
.site-confirm-modal-card .danger-button {
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid #d56b72;
  border-radius: 5px;
  color: #fff;
  background: #c84b55;
  font-size: 12px;
  font-weight: 700;
}
.site-confirm-modal-card .danger-button:hover { border-color: #b63c47; background: #b63c47; }

/* Access logs. */
.access-log-filters { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 12px; padding: 18px 20px; border-bottom: 1px solid #e5e9f0; background: #fbfcfe; }
.access-log-filters label { display: grid; gap: 6px; color: #64748b; font-size: 11px; font-weight: 650; }
.access-log-filters input { width: 100%; min-width: 0; height: 36px; padding: 0 10px; font-size: 12px; }
.access-log-filter-actions { display: flex; align-items: end; gap: 8px; }
.access-log-filter-actions .primary-button, .access-log-filter-actions .outline-button { min-width: 70px; min-height: 36px; }
.access-log-range { margin-left: auto; color: #94a3b8; font-size: 11px; }
.access-log-table { min-width: 1450px; }
.access-log-table th, .access-log-table td { max-width: 220px; vertical-align: middle; }
.access-log-table td small, .access-log-table td strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.access-log-table td small { margin-top: 3px; color: #8a97a8; font-size: 10px; }
.access-log-table .access-log-domain { max-width: 190px; color: #334155; font-weight: 650; }
.access-log-ip { color: #334155; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; }
.access-log-status { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; min-height: 24px; padding: 0 6px; border-radius: 4px; font-size: 11px; font-weight: 750; }
.access-log-status.status-2xx, .access-log-status.status-3xx { color: #16835d; background: #eaf8f1; }
.access-log-status.status-4xx { color: #b7791f; background: #fff8e8; }
.access-log-status.status-5xx { color: #c84b55; background: #fff1f2; }
.access-log-member-content { max-width: 1440px; }
.access-log-settings-page .card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.access-log-connection-state { display: inline-flex; align-items: center; flex: 0 0 auto; min-height: 26px; padding: 0 9px; border: 1px solid #dce3eb; border-radius: 4px; color: #64748b; background: #f8fafc; font-size: 11px; font-weight: 650; white-space: nowrap; }
.access-log-connection-state.connected { border-color: #c8e9da; color: #16845a; background: #eaf8f1; }
.access-log-connection-state.disconnected { border-color: #f0d8ad; color: #a86914; background: #fff8e8; }
.access-log-connection-state.disabled { border-color: #dce3eb; color: #697586; background: #f1f5f9; }
.access-log-queue-status { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid #e5eaf0; border-radius: 6px; background: #e5eaf0; }
.access-log-queue-status > div { min-width: 0; padding: 13px 14px; background: #f8fafc; }
.access-log-queue-status span { display: block; color: #8492a3; font-size: 10px; }
.access-log-queue-status strong { display: block; margin-top: 6px; color: #334155; font-size: 15px; font-weight: 650; }
@media (max-width: 700px) { .access-log-queue-status { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.blacklist-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 66px; padding: 14px 20px; border-bottom: 1px solid #e5e9f0; background: #fff; }
.blacklist-actions, .blacklist-search { display: flex; align-items: center; gap: 8px; }
.blacklist-actions .primary-button, .blacklist-actions .outline-button { min-width: 82px; min-height: 34px; padding: 0 13px; border-radius: 4px; font-size: 12px; }
.blacklist-actions .primary-button:disabled, .blacklist-actions .outline-button:disabled { cursor: not-allowed; opacity: .45; }
#blacklist-selection-count { min-width: 72px; color: #8a97a8; font-size: 12px; }
.blacklist-search select { width: 92px; height: 34px; padding: 0 8px; border: 1px solid #cfd8e5; border-radius: 4px 0 0 4px; color: #526273; background: #fff; font-size: 12px; }
.blacklist-search input { width: 210px; height: 34px; margin-left: -9px; border-radius: 0; font-size: 12px; }
.blacklist-search .search-submit { height: 34px; margin-left: -9px; padding: 0 13px; border: 1px solid var(--blue); border-radius: 0 4px 4px 0; color: var(--blue); background: #fff; font-size: 12px; }
.blacklist-search .search-submit:hover { color: #fff; background: var(--blue); }
.blacklist-table { min-width: 1020px; }
.blacklist-table th, .blacklist-table td { max-width: 210px; padding-top: 13px; padding-bottom: 13px; }
.blacklist-table .check-column { width: 42px; min-width: 42px; padding-right: 8px; padding-left: 18px; text-align: center; }
.blacklist-table input[type="checkbox"] { width: 15px; height: 15px; vertical-align: middle; accent-color: var(--blue); }
.blacklist-table .row-action { padding: 0; color: var(--blue); font-weight: 600; }
@media (max-width: 760px) { .blacklist-toolbar { align-items: stretch; flex-direction: column; }.blacklist-actions, .blacklist-search { flex-wrap: wrap; }.blacklist-search input { flex: 1 1 140px; width: auto; } }
@media (max-width: 980px) { .access-log-filters { grid-template-columns: repeat(2, minmax(150px, 1fr)); } }
@media (max-width: 600px) { .access-log-settings-page .card-heading { align-items: flex-start; flex-direction: column; gap: 10px; } }
@media (max-width: 600px) { .access-log-filters { grid-template-columns: 1fr; padding: 14px; }.access-log-filter-actions { justify-content: flex-start; }.access-log-range { display: none; } }

/* Unified form controls. Keep compact search and binary controls separate below. */
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #cfd8e5;
  border-radius: 6px;
  outline: 0;
  color: #243447;
  background: #fff;
  font-family: inherit;
  font-size: 13px;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
select {
  height: 40px;
  padding: 0 12px;
}
textarea {
  min-height: 92px;
  padding: 10px 12px;
  line-height: 1.55;
  resize: vertical;
}
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):hover,
select:hover,
textarea:hover {
  border-color: #aebbd0;
  background: #fff;
}
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):focus,
select:focus,
textarea:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, .11);
}
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"])::placeholder,
textarea::placeholder {
  color: #a2adbd;
  opacity: 1;
}
input[readonly],
textarea[readonly],
select:disabled,
input:disabled,
textarea:disabled {
  color: #7d8a9b;
  background: #f8fafc;
  cursor: not-allowed;
}

/* Search fields are visually integrated with their surrounding toolbar. */
.search-box input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.node-search input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]) {
  width: 100%;
  height: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  box-shadow: none;
}
.search-box input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):hover,
.search-box input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):focus,
.node-search input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):hover,
.node-search input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):focus {
  border: 0;
  background: transparent;
  box-shadow: none;
}
.search-box input::placeholder,
.node-search input::placeholder {
  color: #9aa6b5;
}

/* Checkboxes, radios, switches, and login fields keep their purpose-specific sizing. */
input[type="checkbox"],
input[type="radio"] {
  width: auto;
  min-width: 0;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.auth-form input:not([type="checkbox"]),
.auth-card .auth-form input:not([type="checkbox"]) {
  height: 44px;
  padding: 0 13px;
}
.auth-form input:not([type="checkbox"]):focus,
.auth-card .auth-form input:not([type="checkbox"]):focus {
  background: #fff;
}

/* Date-time filters use the browser picker, but match the rest of the form. */
.access-log-filters input[type="datetime-local"] {
  appearance: none;
  min-width: 0;
  height: 40px;
  padding: 0 11px;
  border: 1px solid #cfd8e5;
  border-radius: 6px;
  color: #334155;
  background: #fff;
  color-scheme: light;
  font-family: inherit;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.access-log-filters input[type="datetime-local"]:hover {
  border-color: #aebbd0;
}
.access-log-filters input[type="datetime-local"]:focus {
  border-color: #6366f1;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, .11);
}
.access-log-filters input[type="datetime-local"]::-webkit-datetime-edit {
  padding: 0;
}
.access-log-filters input[type="datetime-local"]::-webkit-datetime-edit-fields-wrapper {
  padding: 0;
}
.access-log-filters input[type="datetime-local"]::-webkit-datetime-edit-text {
  padding: 0 2px;
  color: #94a3b8;
}
.access-log-filters input[type="datetime-local"]::-webkit-datetime-edit-month-field,
.access-log-filters input[type="datetime-local"]::-webkit-datetime-edit-day-field,
.access-log-filters input[type="datetime-local"]::-webkit-datetime-edit-year-field,
.access-log-filters input[type="datetime-local"]::-webkit-datetime-edit-hour-field,
.access-log-filters input[type="datetime-local"]::-webkit-datetime-edit-minute-field,
.access-log-filters input[type="datetime-local"]::-webkit-datetime-edit-second-field,
.access-log-filters input[type="datetime-local"]::-webkit-datetime-edit-ampm-field {
  padding: 1px 2px;
  border-radius: 3px;
  color: #334155;
}
.access-log-filters input[type="datetime-local"]::-webkit-datetime-edit-month-field:focus,
.access-log-filters input[type="datetime-local"]::-webkit-datetime-edit-day-field:focus,
.access-log-filters input[type="datetime-local"]::-webkit-datetime-edit-year-field:focus,
.access-log-filters input[type="datetime-local"]::-webkit-datetime-edit-hour-field:focus,
.access-log-filters input[type="datetime-local"]::-webkit-datetime-edit-minute-field:focus,
.access-log-filters input[type="datetime-local"]::-webkit-datetime-edit-second-field:focus,
.access-log-filters input[type="datetime-local"]::-webkit-datetime-edit-ampm-field:focus {
  color: #1f2937;
  background: #eef2ff;
}
.access-log-filters input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  width: 15px;
  height: 15px;
  margin-left: 6px;
  cursor: pointer;
  opacity: .58;
}

/* Base plan editor uses a wide workspace so every configuration stays usable. */
.dashboard-shell .modal-card.base-plan-edit-card {
  width: min(1080px, calc(100vw - 48px));
  max-height: min(92dvh, 900px);
}
.dashboard-shell .modal-card.base-plan-edit-card .settings-form {
  display: block;
  flex: 1 1 auto;
  min-height: 0;
  padding: 24px 30px 0;
  overflow-y: auto;
}
.dashboard-shell .base-plan-edit-card .base-plan-edit-section {
  margin-bottom: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid #e8edf3;
}
.dashboard-shell .base-plan-edit-card .base-plan-price-section {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}
.dashboard-shell .base-plan-edit-card .base-plan-edit-section .form-grid {
  gap: 16px 30px;
}
.dashboard-shell .base-plan-edit-card .base-plan-edit-section .form-grid label,
.dashboard-shell .base-plan-edit-card .base-plan-cname-grid label {
  grid-template-columns: max-content minmax(150px, 1fr);
  gap: 10px;
}
.dashboard-shell .base-plan-edit-card .base-plan-edit-section .form-grid label > input,
.dashboard-shell .base-plan-edit-card .base-plan-edit-section .form-grid label > select,
.dashboard-shell .base-plan-edit-card .base-plan-cname-grid label > input,
.dashboard-shell .base-plan-edit-card .base-plan-cname-grid label > select {
  height: 38px;
}
.dashboard-shell .base-plan-edit-card .plan-features {
  gap: 12px 30px;
}
.dashboard-shell .base-plan-edit-card .settings-actions {
  position: sticky;
  bottom: 0;
  margin: 28px -30px 0;
  padding: 15px 30px;
  background: rgba(255, 255, 255, .98);
}
@media (max-width: 800px) {
  .dashboard-shell .modal-card.base-plan-edit-card {
    width: min(760px, calc(100vw - 32px));
  }
  .dashboard-shell .base-plan-edit-card .base-plan-edit-section .form-grid.four,
  .dashboard-shell .base-plan-edit-card .plan-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .dashboard-shell .modal-card.base-plan-edit-card {
    width: 100%;
  }
  .dashboard-shell .modal-card.base-plan-edit-card .settings-form {
    padding: 18px 18px 0;
  }
  .dashboard-shell .base-plan-edit-card .base-plan-edit-section .form-grid.two,
  .dashboard-shell .base-plan-edit-card .base-plan-edit-section .form-grid.three,
  .dashboard-shell .base-plan-edit-card .base-plan-cname-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-shell .base-plan-edit-card .settings-actions {
    margin: 24px -18px 0;
    padding: 13px 18px;
  }
}

/* CC rule management keeps filters readable without adding nested cards. */
.cc-rules-page { max-width: 1440px; }
.cc-rules-tabs { margin-bottom: 18px; }
.cc-rules-panel { overflow: hidden; }
.cc-rules-panel[hidden] { display: none; }
.cc-rules-panel .table-toolbar strong { color: #25364a; font-size: 14px; }
.cc-rules-table { min-width: 980px; }
.cc-rules-table td:nth-last-child(1) { white-space: nowrap; }
.cc-rules-table .row-action + .row-action { margin-left: 10px; }
.cc-rules-table .row-action.danger { color: #c2414b; }
.cc-filter-name {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin: 2px 5px 2px 0;
  padding: 0 8px;
  border: 1px solid #dce6f1;
  border-radius: 4px;
  color: #45617e;
  background: #f8fbff;
  font-size: 11px;
}
.cc-rule-modal { width: min(560px, calc(100vw - 40px)); }
.cc-filter-picker {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 14px;
  border: 1px solid #d9e2ec;
  border-radius: 5px;
}
.cc-filter-picker legend {
  padding: 0 5px;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}
.cc-filter-picker > div {
  display: grid;
  gap: 8px;
}
.cc-filter-picker label {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 10px 11px;
  border: 1px solid #e4eaf1;
  border-radius: 4px;
  background: #fff;
}
.cc-filter-picker label:hover { border-color: #bfd1e4; background: #fbfdff; }
.cc-filter-picker label input { grid-row: span 2; }
.cc-filter-picker label strong { color: #34485f; font-size: 12px; }
.cc-filter-picker label small { color: #8090a2; font-size: 11px; font-weight: 400; }
@media (max-width: 700px) {
  .cc-rules-page { padding-right: 15px; padding-left: 15px; }
  .cc-rules-page .table-toolbar { align-items: flex-start; flex-direction: column; }
  .cc-rules-page .table-toolbar .primary-button { width: 100%; }
  .cc-rule-modal { width: 100%; }
}

/* Keep compound search controls aligned with the global form system. */
.site-search-controls,
.blacklist-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.site-search-controls select,
.blacklist-search select {
  flex: 0 0 auto;
  width: 118px;
  height: 38px;
  padding: 0 30px 0 12px;
  border: 1px solid #cfd8e5;
  border-radius: 6px;
  color: #475569;
  background: #fff;
  font-size: 12px;
}
.site-search-controls .search-box {
  width: min(340px, 42vw);
  height: 38px;
  background: #fff;
}
.blacklist-search input {
  flex: 1 1 220px;
  width: 220px;
  height: 38px;
  margin-left: 0;
  border: 1px solid #cfd8e5;
  border-radius: 6px;
}
.site-search-controls select:focus,
.blacklist-search select:focus,
.blacklist-search input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, .11);
}
.blacklist-search .search-submit {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 68px;
  min-width: 68px;
  height: 38px;
  margin-left: 0;
  padding: 0 12px;
  border: 1px solid var(--blue);
  border-radius: 6px;
  color: #fff;
  background: var(--blue);
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  word-break: keep-all;
}
.blacklist-search .search-submit:hover {
  color: #fff;
  background: #245fbf;
}
.blacklist-site-modal-card {
  width: min(100%, 430px);
}
.blacklist-site-modal-card .modal-description {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.6;
}
.blacklist-site-modal-card .settings-form {
  gap: 14px;
}
.blacklist-site-modal-card .settings-actions {
  margin-top: 4px;
}
.blacklist-site-modal-card .notice {
  margin: 16px 22px 0;
}
@media (max-width: 760px) {
  .site-search-controls,
  .blacklist-search {
    width: 100%;
  }
  .site-search-controls .search-box,
  .blacklist-search input {
    width: auto;
    flex: 1 1 160px;
  }
}

/* Compact admin navigation, headings, filters, pagination and loading feedback. */
.dashboard-shell .sidebar {
  width: 232px;
  padding: 14px 10px;
  background: #fff;
}
.dashboard-shell .sidebar-brand {
  min-height: 42px;
  margin: 0 10px 18px;
  font-size: 14px;
}
.dashboard-shell .sidebar-menu { gap: 3px; }
.dashboard-shell .sidebar-group { gap: 1px; }
.dashboard-shell .sidebar-parent {
  gap: 10px;
  min-height: 39px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 650;
}
.dashboard-shell .sidebar-parent-icon {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: #8191a5;
}
.dashboard-shell .sidebar-parent-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dashboard-shell .sidebar-parent-label { flex: 1; }
.dashboard-shell .sidebar-group.is-active > .sidebar-parent {
  border-color: #dce9f6;
  color: #2467a7;
  background: #edf5fc;
}
.dashboard-shell .sidebar-group.is-active > .sidebar-parent .sidebar-parent-icon { color: #2f70b5; }
.dashboard-shell .sidebar-chevron { width: 14px; height: 14px; flex-basis: 14px; }
.dashboard-shell .sidebar-subnav {
  gap: 1px;
  margin: 1px 0 3px 18px;
  padding: 2px 0 2px 12px;
}
.dashboard-shell .sidebar-subnav .nav-item {
  min-height: 33px;
  padding: 0 10px;
  border-radius: 5px;
  font-size: 11px;
}
.dashboard-shell .sidebar-subnav .nav-item .nav-icon { width: 17px; }
.dashboard-shell .sidebar-subnav .nav-item .nav-icon::before { width: 4px; height: 4px; }
.dashboard-shell .sidebar-subnav .nav-item.active {
  color: #2467a7;
  background: #edf5fc;
  box-shadow: inset 2px 0 0 #3478b9;
}

.dashboard-shell .dashboard-content { padding: 28px 32px 56px; }
.dashboard-shell .page-heading {
  position: relative;
  align-items: center;
  min-height: 74px;
  margin-bottom: 18px;
  padding: 10px 0 15px 17px;
  border-bottom: 1px solid #e2e9f0;
}
.dashboard-shell .page-heading::before {
  position: absolute;
  top: 14px;
  bottom: 19px;
  left: 0;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, #3478b9, #65a8df);
  content: "";
}
.dashboard-shell .page-heading .eyebrow {
  display: block;
  margin: 0 0 4px;
  color: #4f83b4;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .08em;
  line-height: 1.2;
}
.dashboard-shell .page-heading h1 {
  margin: 0 0 4px;
  color: #1e2f42;
  font-size: 22px;
  font-weight: 720;
  letter-spacing: -.015em;
  line-height: 1.3;
}
.dashboard-shell .page-heading p:not(.eyebrow) {
  margin: 0;
  color: #8391a1;
  font-size: 11px;
  line-height: 1.5;
}
.dashboard-shell .page-heading .primary-button,
.dashboard-shell .page-heading .outline-button {
  min-height: 34px;
  padding: 0 12px;
  font-size: 11px;
}

.dashboard-shell .table-panel { border-radius: 8px; box-shadow: 0 3px 12px rgba(24, 50, 76, .035); }
.dashboard-shell .table-toolbar {
  min-height: 50px;
  gap: 10px;
  padding: 9px 14px;
}
.dashboard-shell .search-box,
.dashboard-shell .node-search {
  width: min(280px, 100%);
  height: 34px;
  padding: 0 10px;
  border-radius: 5px;
  background: #fbfcfe;
}
.dashboard-shell .table-toolbar select,
.dashboard-shell .node-filters select,
.dashboard-shell .task-search-controls select {
  height: 34px;
  min-height: 34px;
  padding: 0 9px;
  border-radius: 5px;
  font-size: 11px;
}
.dashboard-shell .table-total { font-size: 11px; }
.dashboard-shell .data-table th { padding: 10px 14px; font-size: 10px; }
.dashboard-shell .data-table td { padding: 12px 14px; font-size: 11px; }
.dashboard-shell .table-loading {
  height: 130px;
  color: #8292a5 !important;
  font-size: 11px;
}
.dashboard-shell .table-loading::before {
  display: inline-block;
  width: 15px;
  height: 15px;
  margin-right: 8px;
  border: 2px solid #d7e3ee;
  border-top-color: #3c7fbd;
  border-radius: 50%;
  content: "";
  vertical-align: -3px;
  animation: admin-spin .7s linear infinite;
}

.dashboard-shell .access-log-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 8px 10px;
  padding: 11px 14px 12px;
  background: #fbfcfe;
}
.dashboard-shell .access-log-filters label { gap: 4px; font-size: 10px; }
.dashboard-shell .access-log-filters input,
.dashboard-shell .access-log-filters input[type="datetime-local"] {
  height: 33px;
  min-height: 33px;
  padding: 0 9px;
  border-radius: 5px;
  font-size: 11px;
}
.dashboard-shell .access-log-filter-actions {
  align-items: end;
  gap: 6px;
}
.dashboard-shell .access-log-filter-actions .primary-button,
.dashboard-shell .access-log-filter-actions .outline-button {
  min-width: 58px;
  min-height: 33px;
  padding: 0 10px;
  font-size: 11px;
}
.dashboard-shell .blacklist-toolbar { min-height: 52px; padding: 9px 14px; }
.dashboard-shell .blacklist-search select,
.dashboard-shell .blacklist-search input,
.dashboard-shell .blacklist-search .search-submit { height: 33px; }
.dashboard-shell .node-filters { gap: 7px; margin-bottom: 10px; }

.dashboard-shell .pagination {
  min-height: 48px;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px;
}
.dashboard-shell .page-summary { font-size: 10px; }
.dashboard-shell .pagination-controls { margin-left: auto; gap: 3px; }
.dashboard-shell .page-numbers { gap: 3px; }
.dashboard-shell .page-button {
  min-width: 29px;
  width: 29px;
  height: 29px;
  min-height: 29px;
  margin: 0;
  padding: 0;
  border-radius: 5px;
  font-size: 10px;
}
.dashboard-shell .page-button.page-nav { font-size: 16px; }
.dashboard-shell .page-ellipsis { min-width: 18px; color: #91a0b0; font-size: 10px; text-align: center; }

.global-page-loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: rgba(244, 247, 250, .72);
  backdrop-filter: blur(2px);
}
.global-page-loader[hidden] { display: none; }
.global-page-loader::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #3478b9, #70b6e7, transparent);
  background-size: 45% 100%;
  content: "";
  animation: admin-loading-bar 1.1s ease-in-out infinite;
}
.global-page-loader-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 17px;
  border: 1px solid #dbe5ee;
  border-radius: 8px;
  color: #52667b;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 12px 32px rgba(30, 55, 82, .12);
  font-size: 12px;
  font-weight: 650;
}
.global-page-spinner {
  width: 17px;
  height: 17px;
  border: 2px solid #d6e3ee;
  border-top-color: #3478b9;
  border-radius: 50%;
  animation: admin-spin .7s linear infinite;
}
.page-is-loading { cursor: progress; }
@keyframes admin-spin { to { transform: rotate(360deg); } }
@keyframes admin-loading-bar {
  from { background-position: -80% 0; }
  to { background-position: 180% 0; }
}

@media (max-width: 900px) {
  .dashboard-shell .dashboard-content { padding: 24px 20px 44px; }
}
@media (max-width: 600px) {
  .dashboard-shell .dashboard-content { padding: 20px 14px 38px; }
  .dashboard-shell .page-heading { align-items: flex-start; min-height: 0; padding-top: 6px; }
  .dashboard-shell .page-heading h1 { font-size: 20px; }
  .dashboard-shell .table-toolbar { align-items: stretch; }
  .dashboard-shell .search-box,
  .dashboard-shell .node-search { width: 100%; }
  .dashboard-shell .access-log-filters { grid-template-columns: 1fr; padding: 10px 12px; }
  .dashboard-shell .pagination { align-items: center; flex-direction: row; }
  .dashboard-shell .pagination-controls { width: auto; flex-wrap: wrap; justify-content: flex-end; }
}

.global-confirm-backdrop { z-index: 1100; }
.global-confirm-card {
  display: block;
  width: min(440px, calc(100vw - 32px));
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .28);
}
.global-confirm-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 21px 22px 17px;
  border-bottom: 1px solid #edf0f5;
}
.global-confirm-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 9px;
  color: #6366f1;
  background: #eef2ff;
}
.global-confirm-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.global-confirm-heading small { display: block; margin-bottom: 4px; color: #94a3b8; font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.global-confirm-heading h2 {
  margin: 0;
  color: #1e293b;
  font-size: 16px;
  line-height: 1.3;
}
.global-confirm-copy { padding: 18px 22px 20px; }
.global-confirm-copy p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.75;
}
.global-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
  padding: 14px 22px 18px;
  border-top: 1px solid #edf0f5;
  background: #fafbfc;
}
.global-confirm-actions button { width: auto !important; min-width: 88px; min-height: 36px; flex: 0 0 auto !important; }
.global-confirm-actions .danger-button {
  border-color: #c84b55;
  color: #fff;
  background: #c84b55;
}
.global-confirm-actions .danger-button:hover {
  border-color: #b63c47;
  background: #b63c47;
}
.site-field-row[hidden] { display: none; }

/* Compact enterprise headings and navigation. */
.dashboard-shell .dashboard-content { padding-top: 22px; }
.dashboard-shell .page-heading {
  min-height: 58px;
  margin-bottom: 18px;
  padding: 6px 0 11px 14px;
}
.dashboard-shell .page-heading::before { top: 9px; bottom: 14px; width: 3px; }
.dashboard-shell .page-heading .eyebrow { margin-bottom: 2px; font-size: 8px; letter-spacing: .06em; }
.dashboard-shell .page-heading h1 { margin-bottom: 2px; font-size: 18px; font-weight: 750; line-height: 1.25; }
.dashboard-shell .page-heading p:not(.eyebrow) { font-size: 10px; line-height: 1.45; }
.dashboard-shell .card-heading h2,
.dashboard-shell .panel-heading h2 { font-size: 15px; }
.dashboard-shell .modal-heading h2 { font-size: 16px; }
.member-page-heading { margin-bottom: 20px; }
.member-page-heading h1, .member-content > h1 { font-size: 26px; }

.dashboard-shell .sidebar {
  width: 238px;
  padding: 17px 12px 24px;
  border-right-color: #e2e7ef;
  box-shadow: 4px 0 18px rgba(15, 23, 42, .025);
}
.dashboard-shell .sidebar-brand {
  min-height: 36px;
  margin: 0 10px 22px;
  color: #25364a;
  font-size: 14px;
}
.dashboard-shell .sidebar-brand .brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: #40566f;
  box-shadow: none;
  font-size: 15px;
}
.dashboard-shell .sidebar-menu { gap: 3px; }
.dashboard-shell .sidebar-group { gap: 1px; }
.dashboard-shell .sidebar-parent {
  gap: 10px;
  min-height: 42px;
  padding: 0 11px;
  border: 0;
  border-radius: 7px;
  color: #33465c;
  font-size: 12px;
  font-weight: 650;
}
.dashboard-shell .sidebar-parent > .sidebar-parent-icon { width: 19px; flex: 0 0 19px; color: #52687f; }
.dashboard-shell .sidebar-parent > .sidebar-parent-label { min-width: 0; flex: 1; }
.dashboard-shell .sidebar-parent > .sidebar-chevron { flex: 0 0 15px; }
.dashboard-shell .sidebar-parent:hover { color: #4f46e5; background: #f7f7fb; }
.dashboard-shell .sidebar-group.is-active > .sidebar-parent {
  border: 0;
  color: #4f46e5;
  background: transparent;
}
.dashboard-shell .sidebar-group.is-active > .sidebar-parent .sidebar-parent-icon,
.dashboard-shell .sidebar-group.is-active > .sidebar-parent .sidebar-chevron { color: #4f46e5; }
.dashboard-shell .sidebar-subnav {
  gap: 2px;
  margin: 0 0 5px 38px;
  padding: 2px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.dashboard-shell .sidebar-subnav .nav-item {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 7px;
  color: #506176;
  font-size: 11px;
  font-weight: 600;
}
.dashboard-shell .sidebar-subnav .nav-item:hover {
  color: #4f46e5;
  background: #f7f7fb;
  box-shadow: none;
}
.dashboard-shell .sidebar-subnav .nav-item.active {
  color: #5146e5;
  background: #efefff;
  box-shadow: none;
  font-weight: 700;
}
@media (max-width: 900px) {
  .dashboard-shell .sidebar { width: 68px; padding: 16px 9px; }
  .dashboard-shell .sidebar-brand { margin-bottom: 28px; }
  .dashboard-shell .sidebar-subnav { margin: 0; padding: 0; }
}
@media (max-width: 600px) {
  .dashboard-shell .page-heading { min-height: 0; margin-bottom: 15px; padding: 5px 0 9px 13px; }
  .dashboard-shell .page-heading h1 { font-size: 17px; }
  .member-page-heading h1, .member-content > h1 { font-size: 23px; }
}
.site-cc-mode-selector {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  min-height: 38px;
}
.site-cc-mode-selector label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #52667b;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.site-cc-mode-selector input[type="radio"] {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: #3478b9;
  cursor: pointer;
}
.site-cc-mode-help {
  margin: 7px 0 0;
  color: #8a98a8;
  font-size: 10px;
  line-height: 1.6;
}

/* Inset secondary navigation panel. */
.dashboard-shell .sidebar-subnav {
  gap: 2px;
  margin: 4px 0 8px 27px;
  padding: 5px;
  border: 1px solid #e7edf4;
  border-radius: 8px;
  background: #f7f9fc;
}
.dashboard-shell .sidebar-subnav .nav-item {
  min-height: 33px;
  padding: 0 10px 0 12px;
  border: 0;
  border-radius: 6px;
  color: #5f7185;
  font-size: 11px;
  font-weight: 600;
  transition: color .15s ease, background .15s ease, box-shadow .15s ease, transform .15s ease;
}
.dashboard-shell .sidebar-subnav .nav-item .nav-icon { display: none; }
.dashboard-shell .sidebar-subnav .nav-item:hover {
  color: #2f6fba;
  background: #fff;
  box-shadow: 0 1px 3px rgba(48, 78, 108, .07);
}
.dashboard-shell .sidebar-subnav .nav-item.active {
  color: #2368a8;
  background: #fff;
  box-shadow: inset 3px 0 0 #3186e8, 0 1px 4px rgba(44, 91, 135, .1);
  font-weight: 700;
}
@media (max-width: 900px) {
  .dashboard-shell .sidebar-subnav {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
  }
  .dashboard-shell .sidebar-subnav .nav-item.active {
    justify-content: center;
    min-height: 44px;
    padding: 0;
    box-shadow: none;
  }
}

/* Site settings use a focused identity header instead of the generic title row. */
.dashboard-shell .site-settings-heading {
  align-items: center;
  min-height: 104px;
  margin-bottom: 18px;
  padding: 18px 20px 18px 24px;
  border: 1px solid #dfe8f1;
  border-radius: 9px;
  background: linear-gradient(135deg, #fff 0%, #f8fbfe 100%);
  box-shadow: 0 4px 14px rgba(31, 63, 97, .04);
}
.dashboard-shell .site-settings-heading::before {
  top: 20px;
  bottom: 20px;
  left: 0;
  width: 4px;
  border-radius: 0 4px 4px 0;
}
.dashboard-shell .site-settings-heading .eyebrow { display: none; }
.dashboard-shell .site-settings-heading .page-back-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0 0 8px;
  color: #5e7f9f;
  font-size: 10px;
  font-weight: 650;
  text-decoration: none;
}
.dashboard-shell .site-settings-heading .page-back-link::before {
  content: "←";
  font-size: 13px;
  line-height: 1;
}
.dashboard-shell .site-settings-heading .page-back-link:hover { color: #2468a8; text-decoration: none; }
.dashboard-shell .site-settings-heading h1 {
  margin-bottom: 5px;
  font-size: 24px;
  font-weight: 750;
}
.dashboard-shell .site-settings-heading p:not(.eyebrow) {
  color: #718398;
  font-size: 11px;
}
.dashboard-shell .site-settings-heading .page-actions { align-self: center; }

/* Plan editors share one clear, wide, sectioned form layout. */
.dashboard-shell .modal-card.plan-modal-card.base-plan-edit-card,
.dashboard-shell .modal-card.plan-modal-card.sold-plan-edit-card {
  width: min(940px, calc(100vw - 48px));
  max-height: min(90dvh, 880px);
  border-radius: 10px;
}
.dashboard-shell .base-plan-edit-card .modal-heading,
.dashboard-shell .sold-plan-edit-card .modal-heading {
  min-height: 70px;
  padding: 14px 22px;
}
.dashboard-shell .base-plan-edit-card .modal-heading h2,
.dashboard-shell .sold-plan-edit-card .modal-heading h2 {
  font-size: 18px;
  font-weight: 750;
}
.dashboard-shell .modal-card.base-plan-edit-card .settings-form,
.dashboard-shell .modal-card.sold-plan-edit-card .settings-form {
  display: block;
  min-height: 0;
  padding: 18px 22px 0;
  overflow-y: auto;
}
.dashboard-shell .base-plan-edit-section,
.dashboard-shell .sold-edit-section {
  display: grid;
  gap: 14px;
  margin: 0 0 14px;
  padding: 17px 18px 18px;
  border: 1px solid #e2e9f0;
  border-radius: 8px;
  background: #fbfcfe;
}
.dashboard-shell .base-plan-edit-section h3,
.dashboard-shell .sold-edit-section h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 2px;
  color: #294b70;
  font-size: 13px;
  font-weight: 750;
}
.dashboard-shell .base-plan-edit-section h3::before,
.dashboard-shell .sold-edit-section h3::before {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #4385c1;
  content: "";
}
.dashboard-shell .base-plan-edit-section h3::after,
.dashboard-shell .sold-edit-section h3::after { display: none; }
.dashboard-shell .base-plan-edit-section .form-grid,
.dashboard-shell .sold-edit-section .form-grid,
.dashboard-shell .base-plan-cname-grid {
  gap: 13px 16px;
}
.dashboard-shell .base-plan-edit-section .form-grid label,
.dashboard-shell .sold-edit-section .form-grid label,
.dashboard-shell .base-plan-cname-grid label,
.dashboard-shell .base-plan-wide-field {
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 6px;
  min-width: 0;
  color: #53667a;
  font-size: 11px;
  font-weight: 650;
}
.dashboard-shell .base-plan-edit-section .form-grid label > input,
.dashboard-shell .base-plan-edit-section .form-grid label > select,
.dashboard-shell .sold-edit-section .form-grid label > input,
.dashboard-shell .sold-edit-section .form-grid label > select,
.dashboard-shell .base-plan-cname-grid label > input,
.dashboard-shell .base-plan-cname-grid label > select {
  width: 100%;
  height: 38px;
  min-height: 38px;
  padding: 0 10px;
  font-size: 12px;
}
.dashboard-shell .base-plan-edit-section .field-help,
.dashboard-shell .sold-edit-section .field-help {
  grid-column: auto;
  margin: 0;
  color: #8996a6;
  font-size: 10px;
}
.dashboard-shell .base-plan-edit-section .resource-limit-help,
.dashboard-shell .sold-edit-section .resource-limit-help {
  margin: -2px 0 0;
  padding: 8px 10px;
  border-radius: 5px;
  background: #f1f6fa;
  line-height: 1.6;
}
.dashboard-shell .base-plan-edit-section .plan-features,
.dashboard-shell .sold-edit-section .plan-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 10px;
  border: 1px solid #e3eaf1;
  border-radius: 7px;
  background: #fff;
}
.dashboard-shell .base-plan-edit-section .plan-features legend,
.dashboard-shell .sold-edit-section .plan-features legend { display: none; }
.dashboard-shell .base-plan-edit-section .plan-features label,
.dashboard-shell .sold-edit-section .plan-features label {
  min-height: 36px;
  padding: 0 8px;
  border-radius: 5px;
  background: #f7f9fc;
}
.dashboard-shell .modal-card.base-plan-edit-card .settings-actions,
.dashboard-shell .modal-card.sold-plan-edit-card .settings-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin: 4px -22px 0;
  padding: 13px 22px;
  border-top: 1px solid #e2e9f0;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 -8px 18px rgba(21, 45, 70, .05);
}
.dashboard-shell .modal-card.base-plan-edit-card .settings-actions button,
.dashboard-shell .modal-card.sold-plan-edit-card .settings-actions button {
  min-width: 96px;
  min-height: 36px;
}
@media (max-width: 800px) {
  .dashboard-shell .modal-card.plan-modal-card.base-plan-edit-card,
  .dashboard-shell .modal-card.plan-modal-card.sold-plan-edit-card { width: min(720px, calc(100vw - 28px)); }
  .dashboard-shell .base-plan-edit-section .form-grid.three,
  .dashboard-shell .base-plan-edit-section .form-grid.four,
  .dashboard-shell .sold-edit-section .form-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-shell .base-plan-edit-section .plan-features,
  .dashboard-shell .sold-edit-section .plan-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .dashboard-shell .modal-card.plan-modal-card.base-plan-edit-card,
  .dashboard-shell .modal-card.plan-modal-card.sold-plan-edit-card { width: 100%; max-height: 94dvh; }
  .dashboard-shell .modal-card.base-plan-edit-card .settings-form,
  .dashboard-shell .modal-card.sold-plan-edit-card .settings-form { padding: 14px 14px 0; }
  .dashboard-shell .base-plan-edit-section,
  .dashboard-shell .sold-edit-section { padding: 14px; }
  .dashboard-shell .base-plan-edit-section .form-grid.two,
  .dashboard-shell .base-plan-edit-section .form-grid.three,
  .dashboard-shell .base-plan-edit-section .form-grid.four,
  .dashboard-shell .sold-edit-section .form-grid.two,
  .dashboard-shell .sold-edit-section .form-grid.three,
  .dashboard-shell .base-plan-cname-grid { grid-template-columns: 1fr; }
  .dashboard-shell .modal-card.base-plan-edit-card .settings-actions,
  .dashboard-shell .modal-card.sold-plan-edit-card .settings-actions { margin-right: -14px; margin-left: -14px; padding: 12px 14px; }
}

/* Override legacy horizontal label rules in both plan editors. */
.dashboard-shell .base-plan-edit-card .base-plan-edit-section .form-grid label,
.dashboard-shell .sold-plan-edit-card .sold-edit-section .form-grid label,
.dashboard-shell .base-plan-edit-card .base-plan-cname-grid label {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 6px;
}
.dashboard-shell .base-plan-edit-card .base-plan-edit-section .form-grid label > input,
.dashboard-shell .base-plan-edit-card .base-plan-edit-section .form-grid label > select,
.dashboard-shell .sold-plan-edit-card .sold-edit-section .form-grid label > input,
.dashboard-shell .sold-plan-edit-card .sold-edit-section .form-grid label > select,
.dashboard-shell .base-plan-edit-card .base-plan-cname-grid label > input,
.dashboard-shell .base-plan-edit-card .base-plan-cname-grid label > select {
  width: 100%;
  min-width: 0;
}
.dashboard-shell .base-plan-edit-card .base-plan-edit-section .field-help,
.dashboard-shell .sold-plan-edit-card .sold-edit-section .field-help {
  grid-column: 1;
}

/* Compact configuration pages to match the denser admin workspace. */
.dashboard-shell .settings-layout {
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 14px;
}
.dashboard-shell .settings-layout > .settings-card { padding: 18px; }
.dashboard-shell .settings-layout > .settings-help { padding: 18px; }
.dashboard-shell .settings-layout > .settings-card .card-heading h2 {
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 720;
}
.dashboard-shell .settings-layout > .settings-card .card-heading p {
  font-size: 10px;
  line-height: 1.55;
}
.dashboard-shell .settings-layout > .settings-card .settings-form {
  gap: 13px;
  margin-top: 18px;
}
.dashboard-shell .settings-layout > .settings-card .settings-form label {
  gap: 5px;
  font-size: 11px;
  font-weight: 650;
}
.dashboard-shell .settings-layout > .settings-card .settings-form input:not([type="checkbox"]):not([type="radio"]),
.dashboard-shell .settings-layout > .settings-card .settings-form select {
  height: 36px;
  min-height: 36px;
  padding: 0 10px;
  font-size: 12px;
}
.dashboard-shell .settings-layout > .settings-card .settings-form textarea {
  padding: 9px 10px;
  font-size: 12px;
}
.dashboard-shell .settings-layout > .settings-card .settings-switch {
  min-height: 34px;
  font-size: 11px;
}
.dashboard-shell .settings-layout > .settings-card .field-help {
  color: #8a98a8;
  font-size: 9px;
  line-height: 1.55;
}
.dashboard-shell .site-defaults-section {
  gap: 10px;
  padding: 2px 0;
}
.dashboard-shell .site-defaults-section h3 {
  margin-bottom: 0;
  font-size: 12px;
}
.dashboard-shell .site-defaults-section > label:not(.settings-switch) { max-width: 430px; }
.dashboard-shell .settings-layout > .settings-help .help-icon {
  width: 24px;
  height: 24px;
  font-size: 12px;
}
.dashboard-shell .settings-layout > .settings-help h2 {
  margin: 13px 0 6px;
  font-size: 14px;
}
.dashboard-shell .settings-layout > .settings-help p {
  font-size: 10px;
  line-height: 1.65;
}
.dashboard-shell .settings-layout > .settings-help ul {
  margin-top: 12px;
  padding-left: 15px;
  font-size: 9px;
  line-height: 1.8;
}
@media (max-width: 900px) {
  .dashboard-shell .settings-layout { grid-template-columns: 1fr; }
}

.dashboard-shell,
.dashboard-shell button,
.dashboard-shell input,
.dashboard-shell select,
.dashboard-shell textarea {
  font-family: "Microsoft YaHei", "微软雅黑", "Microsoft YaHei UI", sans-serif;
}
.dashboard-shell .sidebar-parent { color: #2f4257; }
.dashboard-shell .sidebar-subnav .nav-item { color: #3f5368; }
.dashboard-shell .sidebar-chevron { color: #61778e; }

.site-certificate-modal-card { width: min(520px, calc(100vw - 32px)); }
.site-certificate-content { display: grid; gap: 16px; padding: 4px 0 8px; color: #526579; font-size: 12px; line-height: 1.65; }
.site-certificate-content > p { margin: 0; }
.site-certificate-content > label { display: grid; gap: 7px; color: #334b63; font-weight: 700; }
.site-certificate-content select { width: 100%; height: 38px; border: 1px solid #d6e0e9; border-radius: 5px; padding: 0 10px; color: #334155; background: #fff; }
.site-certificate-content .field-help { padding: 11px 13px; border: 1px solid #dce8f3; border-radius: 5px; color: #58708a; background: #f7fafc; }
.certificate-task-table { min-width: 1180px; }
.certificate-task-error { display: -webkit-box; max-width: 280px; overflow: hidden; color: #a94646; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }

/* Keep descriptions compact without sacrificing readability. */
.dashboard-shell .field-help,
.dashboard-shell .settings-layout > .settings-card .field-help,
.dashboard-shell .settings-form label > small,
.dashboard-shell .site-field-control small,
.dashboard-shell .site-origin-table-wrap + small,
.dashboard-shell .site-cc-mode-help {
  margin-top: 6px;
  color: #66798d;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.65;
}
.dashboard-shell .settings-layout > .settings-card .card-heading p {
  color: #718397;
  font-size: 12px;
  line-height: 1.6;
}
.dashboard-shell .settings-layout > .settings-help p,
.dashboard-shell .settings-layout > .settings-help ul {
  color: #65788c;
  font-size: 12px;
  line-height: 1.7;
}
.dashboard-shell .field-help code,
.dashboard-shell .settings-form small code {
  padding: 1px 5px;
  border-radius: 4px;
  color: #46627e;
  background: #edf3f8;
  font-family: Consolas, "Microsoft YaHei", sans-serif;
  font-size: 11px;
}
.site-sync-status.certificate-issuing,
.sites-admin-table .site-sync-status.certificate-issuing {
  color: #2569a8;
  border-color: #c9dff2;
  background: #eaf4fc;
}

.site-https-panel .site-settings-section {
  max-width: 780px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #dce5ee;
  border-radius: 8px;
  box-shadow: 0 3px 12px rgba(38, 68, 98, .04);
}
.site-https-heading {
  padding: 16px 22px;
  border-bottom: 1px solid #e6edf4;
  background: #f9fbfd;
}
.site-https-heading h2 { margin: 0; color: #24496f; font-size: 16px; }
.site-https-heading p { margin: 0; color: #718397; font-size: 12px; line-height: 1.6; }
.site-https-panel .site-field-row {
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  min-height: 76px;
  margin: 0;
  padding: 14px 22px;
  border-bottom: 1px solid #edf2f6;
}
.site-https-panel .site-field-label {
  padding: 0;
  color: #405a74;
  font-size: 12px;
  font-weight: 700;
}
.site-https-panel .site-field-control small {
  margin-top: 5px;
  font-size: 11px;
}
.site-https-panel .site-switch { min-width: 0; }
.site-https-panel .site-switch .switch-caption { color: #334f6c; font-size: 13px; font-weight: 650; }
.site-https-panel .site-ssl-profile-row { align-items: start; padding-top: 18px; padding-bottom: 18px; }
.site-https-panel .origin-radio-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.site-https-panel .site-http-version-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.site-https-panel .origin-radio-group label {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: center;
  gap: 3px 8px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid #dce5ee;
  border-radius: 6px;
  color: #36536f;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
}
.site-https-panel .origin-radio-group label:has(input:checked) {
  border-color: #83b5e4;
  background: #f1f7fd;
  box-shadow: 0 0 0 2px rgba(49, 134, 232, .08);
}
.site-https-panel .origin-radio-group input { margin: 0; }
.site-https-panel .origin-radio-group label span {
  grid-column: 2;
  color: #74869a;
  font-size: 11px;
  font-weight: 400;
}
.site-https-panel .site-settings-actions {
  justify-content: flex-end;
  padding: 16px 22px;
  background: #f9fbfd;
}
@media (max-width: 720px) {
  .site-https-panel .site-field-row { grid-template-columns: 1fr; gap: 8px; }
  .site-https-panel .origin-radio-group,
  .site-https-panel .site-http-version-options { grid-template-columns: 1fr; }
}

.site-origin-panel {
  max-width: 780px;
}
.site-origin-panel .site-settings-section {
  padding: 0;
  overflow: hidden;
  border: 1px solid #dce5ee;
  border-radius: 8px;
  box-shadow: 0 3px 12px rgba(38, 68, 98, .04);
}
.site-origin-heading {
  padding: 16px 22px;
  border-bottom: 1px solid #e6edf4;
  background: #f9fbfd;
}
.site-origin-heading h2 { margin: 0; color: #24496f; font-size: 16px; }
.site-origin-heading p { margin: 0; color: #718397; font-size: 12px; line-height: 1.6; }
.site-origin-group-title {
  padding: 10px 22px;
  border-bottom: 1px solid #e9eff5;
  color: #708399;
  background: #f5f8fb;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
}
.site-origin-panel .site-field-row {
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  min-height: 76px;
  margin: 0;
  padding: 14px 22px;
  border-bottom: 1px solid #edf2f6;
}
.site-origin-panel .site-field-label {
  padding: 0;
  color: #405a74;
  font-size: 12px;
  font-weight: 700;
}
.site-origin-panel .site-origin-option-row {
  align-items: start;
  padding-top: 18px;
  padding-bottom: 18px;
}
.site-origin-panel .origin-radio-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.site-origin-panel .origin-domain-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.site-origin-panel .origin-radio-group label {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: center;
  gap: 3px 8px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid #dce5ee;
  border-radius: 6px;
  color: #36536f;
  background: #fff;
  font-size: 12px;
  cursor: pointer;
}
.site-origin-panel .origin-radio-group label:hover {
  border-color: #b5cce1;
  background: #fbfdff;
}
.site-origin-panel .origin-radio-group label:has(input:checked) {
  border-color: #83b5e4;
  background: #f1f7fd;
  box-shadow: 0 0 0 2px rgba(49, 134, 232, .08);
}
.site-origin-panel .origin-radio-group input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: #3186e8;
}
.site-origin-panel .origin-radio-group strong {
  color: #36536f;
  font-size: 12px;
  font-weight: 700;
}
.site-origin-panel .origin-radio-group label:has(input:checked) strong { color: #2569a8; }
.site-origin-panel .origin-radio-group label span {
  grid-column: 2;
  color: #74869a;
  font-size: 11px;
  font-weight: 400;
}
.site-origin-panel .origin-balance-options label small {
  grid-column: 2;
  margin: 0;
  color: #74869a;
  font-size: 11px;
  font-weight: 400;
}
.site-origin-panel .site-field-control > input {
  max-width: 360px;
  height: 38px;
  border-radius: 6px;
}
.site-origin-panel .origin-radio-group + input { margin-top: 10px; }
.site-origin-panel .site-field-control small { margin-top: 5px; font-size: 11px; }
.site-origin-panel .site-settings-actions {
  justify-content: flex-end;
  margin: 0;
  padding: 16px 22px;
  background: #f9fbfd;
}
@media (max-width: 720px) {
  .site-origin-panel .site-field-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .site-origin-panel .origin-radio-group,
  .site-origin-panel .origin-domain-options { grid-template-columns: 1fr; }
}

/* Unified site configuration cards. */
.site-basic-panel {
  display: grid;
  max-width: 780px;
  gap: 14px;
}
.site-basic-panel[hidden] { display: none; }
.site-listener-panel,
.site-certificate-panel,
.site-cc-panel { max-width: 780px; }
.site-basic-panel .site-settings-section,
.site-listener-panel .site-settings-section,
.site-certificate-panel .site-settings-section,
.site-cc-panel .site-settings-section {
  padding: 0;
  overflow: hidden;
  border: 1px solid #dce5ee;
  border-radius: 8px;
  box-shadow: 0 3px 12px rgba(38, 68, 98, .04);
}
.site-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  border-bottom: 1px solid #e6edf4;
  background: #f9fbfd;
}
.site-panel-heading h2 {
  margin: 0 !important;
  color: #24496f;
  font-size: 16px !important;
}
.site-panel-heading p {
  margin: 0;
  color: #718397;
  font-size: 12px;
  line-height: 1.6;
}
.site-panel-heading-action .primary-button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 14px;
  border-color: #2378d9;
  background: #3186e8;
  font-size: 12px;
}
.site-config-group-title {
  padding: 10px 22px;
  border-bottom: 1px solid #e9eff5;
  color: #708399;
  background: #f5f8fb;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
}
.site-basic-panel .site-field-row,
.site-listener-panel .site-field-row,
.site-certificate-panel .site-field-row {
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  min-height: 66px;
  margin: 0;
  padding: 14px 22px;
  border-bottom: 1px solid #edf2f6;
}
.site-basic-panel .site-field-label,
.site-listener-panel .site-field-label,
.site-certificate-panel .site-field-label {
  padding: 0;
  color: #405a74;
  font-size: 12px;
  font-weight: 700;
}
.site-basic-panel .site-field-control > input,
.site-basic-panel .site-field-control > select,
.site-listener-panel .site-field-control > input {
  max-width: 400px;
  height: 38px;
  border: 1px solid #cfd8e3;
  border-radius: 6px;
  color: #2f5176;
  font-size: 13px;
}
.site-basic-panel .site-field-control > select {
  width: 100%;
  padding: 0 10px;
}
.site-basic-panel .site-field-control small,
.site-listener-panel .site-field-control small,
.site-certificate-panel .site-field-control small {
  margin-top: 5px;
  font-size: 11px;
}
.site-basic-panel .site-settings-actions,
.site-listener-panel .site-settings-actions,
.site-certificate-panel .site-settings-actions,
.site-cc-panel .site-settings-actions {
  justify-content: flex-end;
  margin: 0;
  padding: 16px 22px;
  background: #f9fbfd;
}
.site-basic-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 8px 22px;
}
.site-basic-row {
  grid-template-columns: 100px minmax(0, 1fr);
  min-height: 52px;
  padding: 0 12px;
  border-bottom: 1px solid #edf2f6;
}
.site-basic-row:nth-last-child(-n + 2) { border-bottom: 0; }
.site-basic-row > span {
  color: #718397;
  font-size: 12px;
  font-weight: 600;
}
.site-basic-row > strong { color: #36536f; font-size: 12px; }
.site-basic-panel .site-origin-table-wrap { margin: 0; }
.site-basic-panel .site-origin-table { min-width: 560px; }
.site-basic-panel .site-origin-table th { background: #f5f8fb; }
.site-basic-panel .site-origin-table tr:last-child td { border-bottom: 0; }
.site-table-help {
  margin: 0;
  padding: 10px 16px;
  border-top: 1px solid #edf2f6;
  color: #718397;
  background: #f9fbfd;
  font-size: 11px;
  line-height: 1.6;
}
.site-certificate-status {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  min-height: 70px;
  padding: 12px 22px;
  border-bottom: 1px solid #edf2f6;
}
.site-certificate-status span {
  color: #405a74;
  font-size: 12px;
  font-weight: 700;
}
.site-certificate-status strong {
  width: fit-content;
  padding: 7px 10px;
  border: 1px solid #dce8f3;
  border-radius: 5px;
  color: #42627f;
  background: #f4f8fb;
  font-size: 11px;
  font-weight: 600;
}
.site-certificate-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid #edf2f6;
}
.site-certificate-fields label { display: grid; gap: 8px; }
.site-certificate-fields label > span {
  color: #405a74;
  font-size: 12px;
  font-weight: 700;
}
.site-certificate-fields textarea {
  min-height: 190px;
  padding: 11px 12px;
  border: 1px solid #cfd8e3;
  border-radius: 6px;
  color: #36536f;
  background: #fbfcfe;
  font: 11px/1.55 Consolas, "Microsoft YaHei", monospace;
  resize: vertical;
}
.site-certificate-panel .settings-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #9b4b51;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.site-certificate-panel .settings-check input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: #c84b55;
}
.site-cc-content { padding: 18px 22px; }
.site-cc-panel .site-cc-mode-selector {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.site-cc-panel .site-cc-mode-selector label {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: center;
  gap: 3px 8px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid #dce5ee;
  border-radius: 6px;
  color: #36536f;
  background: #fff;
  white-space: normal;
}
.site-cc-panel .site-cc-mode-selector label:hover {
  border-color: #b5cce1;
  background: #fbfdff;
}
.site-cc-panel .site-cc-mode-selector label:has(input:checked) {
  border-color: #83b5e4;
  background: #f1f7fd;
  box-shadow: 0 0 0 2px rgba(49, 134, 232, .08);
}
.site-cc-panel .site-cc-mode-selector input { grid-row: auto; }
.site-cc-panel .site-cc-mode-selector strong {
  color: #36536f;
  font-size: 12px;
  font-weight: 700;
}
.site-cc-panel .site-cc-mode-selector label:has(input:checked) strong { color: #2569a8; }
.site-cc-panel .site-cc-mode-selector span {
  grid-column: 2;
  color: #74869a;
  font-size: 11px;
  font-weight: 400;
}
.site-cc-panel .site-cc-mode-help {
  margin: 10px 0 0;
  color: #718397;
  font-size: 11px;
}
@media (max-width: 720px) {
  .site-panel-heading-action { align-items: flex-start; flex-direction: column; }
  .site-panel-heading-action .primary-button { width: 100%; }
  .site-basic-panel .site-field-row,
  .site-listener-panel .site-field-row,
  .site-certificate-panel .site-field-row,
  .site-certificate-status { grid-template-columns: 1fr; gap: 8px; }
  .site-basic-grid,
  .site-certificate-fields,
  .site-cc-panel .site-cc-mode-selector { grid-template-columns: 1fr; }
  .site-basic-row:nth-last-child(2) { border-bottom: 1px solid #edf2f6; }
}

.site-access-panel { display: grid; gap: 14px; }
.site-access-panel[hidden] { display: none; }
.site-access-section { padding-bottom: 24px; }
.site-access-section .site-field-row { margin-bottom: 4px; }
.site-access-more { display: flex; align-items: center; gap: 8px; width: min(400px, calc(100% - 157px)); min-height: 36px; margin: 8px 0 0 140px; padding: 0 12px; border: 0; border-radius: 3px; color: #43566f; background: #f6f7f9; font: inherit; font-size: 11px; text-align: left; cursor: pointer; }
.site-access-more:hover { color: #2f6fba; background: #f0f4f8; }
.site-access-more span { color: #2f6fba; font-size: 18px; line-height: 1; }
.site-access-details { margin-top: 18px; padding-top: 18px; border-top: 1px solid #edf1f5; }
.site-cors-methods { display: flex; flex-wrap: wrap; gap: 8px; }
.site-cors-methods label { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px; border: 1px solid #dce3eb; border-radius: 4px; color: #536579; background: #fff; font-size: 11px; }
.site-cors-methods input { margin: 0; accent-color: #3478b9; }
.site-inline-input { display: flex; align-items: center; gap: 9px; }
.site-inline-input input { width: 180px; }
.site-inline-input span { color: #7c8998; font-size: 11px; }
.site-advanced-panel { display: grid; gap: 14px; }
.site-advanced-panel[hidden] { display: none; }
.site-advanced-section { padding-bottom: 24px; }
.site-advanced-section .site-field-row { margin-bottom: 4px; }
.site-advanced-section .site-inline-input { margin-top: 10px; }
.site-advanced-table { min-width: 720px; }
.site-advanced-table td { vertical-align: middle; }
.site-advanced-table td:nth-last-child(1) { white-space: nowrap; }
@media (max-width: 720px) {
  .site-access-more { width: 100%; margin-left: 0; }
}

/* Final enterprise shell overrides. */
body.dashboard-shell .page-heading,
body.dashboard-shell .page-heading.site-settings-heading {
  min-height: 58px;
  margin-bottom: 18px;
  padding: 6px 0 11px 14px;
  border: 0;
  border-bottom: 1px solid #e2e9f0;
  border-radius: 0;
  background: transparent;
}
body.dashboard-shell .page-heading h1 { margin-bottom: 2px; font-size: 18px; }
body.dashboard-shell .page-heading p:not(.eyebrow) { font-size: 10px; }
body.dashboard-shell .sidebar-subnav {
  gap: 2px;
  margin: 0 0 5px 38px;
  padding: 2px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
body.dashboard-shell .sidebar-subnav .nav-item {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 7px;
  color: #506176;
  font-size: 11px;
  font-weight: 600;
}
body.dashboard-shell .sidebar-subnav .nav-item:hover { color: #4f46e5; background: #f7f7fb; box-shadow: none; }
body.dashboard-shell .sidebar-subnav .nav-item.active { color: #5146e5; background: #efefff; box-shadow: none; font-weight: 700; }
.monitoring-chart,
.monitoring-interface-chart-plot { position: relative; }
.plan-monitor-table { min-width: 1040px; }
.plan-monitor-table td > strong,
.plan-monitor-table td > small { display: block; }
.plan-monitor-table td > small { margin-top: 4px; color: #8a98a8; font-size: 10px; }
.plan-monitor-table th:nth-last-child(-n+2),
.plan-monitor-table td:nth-last-child(-n+2) { text-align: center; }
.plan-monitor-statuses { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.plan-usage-exceeded { color: #b23c49; font-weight: 700; }
.plan-monitor-error { color: #b23c49 !important; }
.plan-monitor-modal-card { width: min(920px, calc(100vw - 32px)); }
@media (max-width: 900px) {
  body.dashboard-shell .sidebar-subnav { margin: 0; padding: 0; }
}

/* Site access and advanced settings: flat enterprise configuration sheet. */
.site-access-panel,
.site-advanced-panel {
  display: block;
  max-width: none;
  padding: 0 18px;
  overflow: hidden;
  border: 1px solid #e2e8ef;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(30, 52, 76, .035);
}
.site-access-panel[hidden],
.site-advanced-panel[hidden] { display: none; }
.site-access-panel .site-settings-section,
.site-advanced-panel .site-settings-section {
  margin: 0;
  padding: 18px 12px 20px;
  overflow: visible;
  border: 0;
  border-bottom: 1px solid #e8edf2;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.site-access-panel .site-settings-section:first-of-type,
.site-advanced-panel .site-settings-section:first-of-type { border-top: 0; }
.site-access-panel .site-panel-heading,
.site-advanced-panel .site-panel-heading {
  min-height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
}
.site-access-panel .site-panel-heading h2,
.site-advanced-panel .site-panel-heading h2 {
  color: #253b53;
  font-size: 12px !important;
  font-weight: 700;
  letter-spacing: .01em;
}
.site-access-panel .site-panel-heading-action,
.site-advanced-panel .site-panel-heading-action {
  align-items: center;
  margin-bottom: 9px;
}
.site-access-panel .site-field-row,
.site-advanced-panel .site-field-row {
  grid-template-columns: 128px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 46px;
  margin: 0;
  padding: 5px 0;
}
.site-access-panel .site-field-label,
.site-advanced-panel .site-field-label {
  padding: 0;
  color: #6a7889;
  font-size: 11px;
  font-weight: 500;
}
.site-access-panel .site-field-control,
.site-advanced-panel .site-field-control { width: min(100%, 600px); max-width: none; }
.site-access-panel .settings-switch,
.site-advanced-panel .settings-switch {
  justify-content: flex-start;
  width: auto;
}
.site-access-panel .switch-caption,
.site-advanced-panel .switch-caption { display: none; }
.site-access-panel input:not([type="checkbox"]):not([type="radio"]),
.site-access-panel select,
.site-access-panel textarea,
.site-advanced-panel input:not([type="checkbox"]):not([type="radio"]),
.site-advanced-panel select,
.site-advanced-panel textarea {
  border-color: #dce4ec;
  border-radius: 4px;
  background: #fff;
  box-shadow: none;
}
.site-access-panel input:focus,
.site-access-panel select:focus,
.site-access-panel textarea:focus,
.site-advanced-panel input:focus,
.site-advanced-panel select:focus,
.site-advanced-panel textarea:focus {
  border-color: #7aaddc;
  box-shadow: 0 0 0 2px rgba(57, 127, 202, .08);
}
.site-access-more {
  width: min(360px, calc(100% - 146px));
  min-height: 34px;
  margin: 5px 0 0 146px;
  padding: 0 12px;
  border: 1px solid #e5eaf0;
  border-radius: 3px;
  color: #53667a;
  background: #f7f9fb;
}
.site-access-more > span {
  width: 7px;
  height: 7px;
  margin: 0 3px 0 1px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  font-size: 0;
  transform: rotate(-45deg);
  transition: transform .16s ease;
}
.site-access-more[aria-expanded="true"] > span { transform: rotate(45deg); }
.site-access-more:hover { color: #2e70b7; border-color: #cfdae6; background: #f3f7fb; }
.site-access-details {
  margin: 13px 0 0;
  padding: 12px 0 0;
  border-top: 1px dashed #dfe6ed;
}
.site-access-details .site-field-row { grid-template-columns: 128px minmax(0, 600px); }
.site-cors-methods label {
  min-height: 30px;
  border-color: #dfe6ed;
  border-radius: 3px;
  background: #fff;
}
.site-advanced-panel .site-origin-table-wrap {
  margin-top: 3px;
  border: 1px solid #e5eaf0;
  border-radius: 3px;
}
.site-advanced-panel .site-origin-table th {
  height: 36px;
  color: #647487;
  background: #f7f9fb;
  font-size: 10px;
  font-weight: 650;
}
.site-advanced-panel .site-origin-table td {
  height: 42px;
  border-color: #edf1f5;
  color: #384c62;
  font-size: 11px;
}
.site-advanced-panel .table-empty { height: 62px; color: #95a1ad; }
.site-advanced-panel .site-inline-input { margin-top: 7px; }
.site-panel-savebar {
  display: flex;
  justify-content: flex-end;
  padding: 14px 12px;
  border: 0;
  background: #fff;
  box-shadow: none;
}
.site-panel-savebar .primary-button { min-width: 112px; min-height: 34px; }
@media (max-width: 600px) {
  .site-access-panel .site-field-row,
  .site-advanced-panel .site-field-row,
  .site-access-details .site-field-row {
    grid-template-columns: 1fr;
    gap: 7px;
  }
  .site-access-panel,
  .site-advanced-panel { padding: 0 12px; }
  .site-access-more { width: 100%; margin-left: 0; }
  .site-panel-savebar .primary-button { width: 100%; }
}

/* Unified site-management configuration sheets. */
.site-settings-page .site-settings-tabs {
  gap: 0;
  margin-bottom: 14px;
  padding: 0 14px;
  overflow-x: auto;
  border: 1px solid #e2e8ef;
  border-radius: 6px 6px 0 0;
  background: #fff;
  box-shadow: 0 2px 8px rgba(30, 52, 76, .025);
}
.site-settings-page .site-settings-tab,
.site-settings-page .settings-tab {
  flex: 0 0 auto;
  min-height: 46px;
  padding: 0 15px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: #627286;
  background: transparent;
  font-size: 11px;
  font-weight: 600;
}
.site-settings-page .settings-tab:hover { color: #2f70b6; background: #f8fafc; }
.site-settings-page .settings-tab.active {
  color: #2f70b6;
  border-bottom-color: #3980ca;
  background: transparent;
  box-shadow: none;
}
.site-settings-page .site-basic-panel,
.site-settings-page .site-origin-panel,
.site-settings-page .site-listener-panel,
.site-settings-page .site-https-panel,
.site-settings-page .site-certificate-panel,
.site-settings-page .site-cc-panel,
.site-settings-page .site-cache-panel {
  max-width: none;
  padding: 0 18px;
  overflow: hidden;
  border: 1px solid #e2e8ef;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(30, 52, 76, .035);
}
.site-settings-page .site-basic-panel[hidden],
.site-settings-page .site-origin-panel[hidden],
.site-settings-page .site-listener-panel[hidden],
.site-settings-page .site-https-panel[hidden],
.site-settings-page .site-certificate-panel[hidden],
.site-settings-page .site-cc-panel[hidden],
.site-settings-page .site-cache-panel[hidden] { display: none; }
.site-settings-page .site-basic-panel .site-settings-section,
.site-settings-page .site-origin-panel .site-settings-section,
.site-settings-page .site-listener-panel .site-settings-section,
.site-settings-page .site-https-panel .site-settings-section,
.site-settings-page .site-certificate-panel .site-settings-section,
.site-settings-page .site-cc-panel .site-settings-section,
.site-settings-page .site-cache-panel .site-settings-section {
  max-width: none;
  margin: 0;
  padding: 18px 12px 20px;
  overflow: visible;
  border: 0;
  border-bottom: 1px solid #e8edf2;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.site-settings-page .site-tab-panel .site-settings-section:first-of-type { border-top: 0; }
.site-settings-page .site-tab-panel .site-settings-section:last-child { border-bottom: 0; }
.site-settings-page .site-tab-panel .site-panel-heading,
.site-settings-page .site-origin-heading,
.site-settings-page .site-https-heading {
  min-height: 30px;
  margin: 0 0 7px;
  padding: 0;
  border: 0;
  background: transparent;
}
.site-settings-page .site-tab-panel .site-panel-heading h2,
.site-settings-page .site-origin-heading h2,
.site-settings-page .site-https-heading h2 {
  margin: 0;
  color: #253b53;
  font-size: 12px !important;
  font-weight: 700;
  letter-spacing: .01em;
}
.site-settings-page .site-panel-heading-action { align-items: center; }
.site-settings-page .site-panel-heading-action .compact-button {
  min-height: 31px;
  padding: 0 12px;
  border-radius: 4px;
  font-size: 10px;
}
.site-settings-page .site-basic-panel .site-field-row,
.site-settings-page .site-origin-panel .site-field-row,
.site-settings-page .site-listener-panel .site-field-row,
.site-settings-page .site-https-panel .site-field-row,
.site-settings-page .site-certificate-panel .site-field-row,
.site-settings-page .site-cc-panel .site-field-row {
  grid-template-columns: 128px minmax(0, 600px);
  align-items: center;
  gap: 18px;
  min-height: 46px;
  margin: 0;
  padding: 5px 0;
}
.site-settings-page .site-tab-panel .site-field-label {
  padding: 0;
  color: #6a7889;
  font-size: 11px;
  font-weight: 500;
}
.site-settings-page .site-tab-panel .site-field-control { width: 100%; max-width: 600px; }
.site-settings-page .site-tab-panel .site-field-control > small {
  margin-top: 6px;
  color: #8996a5;
  font-size: 10px;
}
.site-settings-page .site-tab-panel input:not([type="checkbox"]):not([type="radio"]),
.site-settings-page .site-tab-panel select,
.site-settings-page .site-tab-panel textarea {
  border-color: #dce4ec;
  border-radius: 4px;
  background: #fff;
  box-shadow: none;
}
.site-settings-page .site-tab-panel input:focus,
.site-settings-page .site-tab-panel select:focus,
.site-settings-page .site-tab-panel textarea:focus {
  border-color: #7aaddc;
  box-shadow: 0 0 0 2px rgba(57, 127, 202, .08);
}
.site-settings-page .site-tab-panel .settings-switch {
  justify-content: flex-start;
  width: auto;
}
.site-settings-page .site-tab-panel .settings-switch .switch-caption { display: none; }
.site-settings-page .site-config-group-title,
.site-settings-page .site-origin-group-title {
  margin: 15px 0 3px;
  padding: 9px 0 6px;
  border: 0;
  border-top: 1px dashed #dfe6ed;
  color: #4b6076;
  background: transparent;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .03em;
}
.site-settings-page .site-config-group-title:first-of-type,
.site-settings-page .site-origin-group-title:first-of-type {
  margin-top: 7px;
  border-top: 0;
}
.site-settings-page .origin-radio-group {
  gap: 7px;
}
.site-settings-page .origin-radio-group label {
  min-height: 34px;
  border-color: #dde5ed;
  border-radius: 4px;
  background: #fff;
  font-size: 10px;
}
.site-settings-page .origin-radio-group label:has(input:checked) {
  border-color: #8eb8df;
  color: #2d6eae;
  background: #f3f8fd;
  box-shadow: none;
}
.site-settings-page .site-settings-actions {
  display: flex;
  justify-content: flex-end;
  margin: 16px 0 -20px;
  padding: 13px 0;
  border-top: 1px solid #e8edf2;
  background: #fff;
}
.site-settings-page .site-settings-actions .primary-button {
  min-width: 112px;
  min-height: 34px;
}
.site-settings-page .site-basic-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 880px;
  column-gap: 36px;
}
.site-settings-page .site-basic-row {
  grid-template-columns: 105px minmax(0, 1fr);
  min-height: 42px;
  gap: 14px;
  border-bottom: 1px solid #f0f3f6;
}
.site-settings-page .site-basic-row > span {
  color: #758397;
  font-size: 10px;
}
.site-settings-page .site-basic-row > strong {
  color: #33485e;
  font-size: 11px;
  font-weight: 600;
}
.site-settings-page .site-origin-table-wrap {
  overflow: auto;
  border: 1px solid #e5eaf0;
  border-radius: 3px;
}
.site-settings-page .site-origin-table th {
  height: 36px;
  color: #647487;
  background: #f7f9fb;
  font-size: 10px;
  font-weight: 650;
}
.site-settings-page .site-origin-table td {
  height: 42px;
  border-color: #edf1f5;
  color: #384c62;
  font-size: 11px;
}
.site-settings-page .site-origin-table .table-empty,
.site-settings-page .site-origin-table .table-loading { height: 62px; color: #95a1ad; }
.site-settings-page .site-certificate-status {
  grid-template-columns: 128px minmax(0, 600px);
  min-height: 46px;
  margin: 0;
  padding: 5px 0;
  border: 0;
  background: transparent;
}
.site-settings-page .site-certificate-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.site-settings-page .site-certificate-fields label > span {
  color: #6a7889;
  font-size: 10px;
  font-weight: 600;
}
.site-settings-page .site-certificate-fields textarea { min-height: 180px; font-family: Consolas, monospace; font-size: 10px; }
.site-settings-page .site-cache-panel .cache-section-copy {
  margin: 2px 0 0;
  color: #8a97a5;
  font-size: 10px;
  font-weight: 400;
}
@media (max-width: 760px) {
  .site-settings-page .site-basic-grid,
  .site-settings-page .site-certificate-fields { grid-template-columns: 1fr; }
  .site-settings-page .site-basic-panel .site-field-row,
  .site-settings-page .site-origin-panel .site-field-row,
  .site-settings-page .site-listener-panel .site-field-row,
  .site-settings-page .site-https-panel .site-field-row,
  .site-settings-page .site-certificate-panel .site-field-row,
  .site-settings-page .site-cc-panel .site-field-row,
  .site-settings-page .site-certificate-status {
    grid-template-columns: 1fr;
    gap: 7px;
  }
  .site-settings-page .site-settings-actions .primary-button { width: 100%; }
}

/* Plan-monitor event dialog. */
.dashboard-shell .modal-card.plan-monitor-modal-card {
  width: min(900px, calc(100vw - 40px));
  max-height: min(86dvh, 720px);
  border: 1px solid #dfe6ed;
  border-radius: 6px;
  box-shadow: 0 18px 48px rgba(16, 35, 55, .22);
}
.dashboard-shell .plan-monitor-modal-card .modal-heading {
  min-height: 58px;
  padding: 11px 16px 10px 18px;
  border-top: 0;
  border-bottom: 1px solid #e6ebf1;
  background: #fff;
}
.dashboard-shell .plan-monitor-modal-card .modal-heading .eyebrow {
  margin: 0 0 2px;
  color: #8995a3;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .06em;
}
.dashboard-shell .plan-monitor-modal-card .modal-heading h2 {
  color: #263b52;
  font-size: 14px;
  font-weight: 700;
}
.dashboard-shell .plan-monitor-modal-card .modal-close {
  width: 28px;
  height: 28px;
  font-size: 18px;
}
.dashboard-shell .plan-monitor-events-wrap {
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
}
.dashboard-shell .plan-monitor-events-table {
  min-width: 0;
  table-layout: fixed;
}
.dashboard-shell .plan-monitor-events-table th {
  height: 36px;
  padding: 0 13px;
  color: #69798b;
  background: #f7f9fb;
  font-size: 10px;
}
.dashboard-shell .plan-monitor-events-table td {
  height: 46px;
  padding: 8px 13px;
  color: #3e5268;
  font-size: 11px;
  line-height: 1.45;
}
.dashboard-shell .plan-monitor-events-table th:nth-child(1) { width: 74px; }
.dashboard-shell .plan-monitor-events-table th:nth-child(2) { width: 82px; }
.dashboard-shell .plan-monitor-events-table th:nth-child(3) { width: 180px; }
.dashboard-shell .plan-monitor-events-table th:nth-child(5) { width: 160px; }
.dashboard-shell .plan-monitor-events-table td:nth-child(4) { overflow-wrap: anywhere; }
.dashboard-shell .plan-monitor-events-table td:nth-child(5) { white-space: nowrap; }
.dashboard-shell .plan-monitor-modal-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 14px 10px 18px;
  border-top: 1px solid #e6ebf1;
  background: #fff;
}
.dashboard-shell .plan-monitor-modal-footer .page-summary {
  margin-right: auto;
  color: #7d8b9b;
  font-size: 10px;
}
.dashboard-shell .plan-monitor-modal-footer .outline-button { min-height: 32px; }
@media (max-width: 700px) {
  .dashboard-shell .modal-card.plan-monitor-modal-card {
    width: 100%;
    max-height: 92dvh;
    border-radius: 7px;
  }
  .dashboard-shell .plan-monitor-events-wrap { overflow-x: auto; }
  .dashboard-shell .plan-monitor-events-table { min-width: 720px; }
  .dashboard-shell .plan-monitor-modal-footer { flex-wrap: wrap; }
  .dashboard-shell .plan-monitor-modal-footer .page-summary { width: 100%; }
}

/* Enterprise modal baseline shared by every admin dialog. */
.dashboard-shell .modal-card.modal-card {
  border: 1px solid #dfe6ed;
  border-radius: 6px;
  box-shadow: 0 18px 48px rgba(16, 35, 55, .22);
}
.dashboard-shell .modal-card.modal-card .modal-heading {
  min-height: 58px;
  padding: 11px 16px 10px 18px;
  border-top: 0;
  border-bottom: 1px solid #e6ebf1;
  background: #fff;
}
.dashboard-shell .modal-card.modal-card .modal-heading .eyebrow {
  margin: 0 0 2px;
  color: #8995a3;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .06em;
}
.dashboard-shell .modal-card.modal-card .modal-heading h2 {
  color: #263b52;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}
.dashboard-shell .modal-card.modal-card .modal-close {
  width: 28px;
  height: 28px;
  flex-basis: 28px;
  border-radius: 4px;
  font-size: 18px;
}
.dashboard-shell .modal-card.modal-card .settings-actions,
.dashboard-shell .modal-card.modal-card > .modal-footer {
  border-top-color: #e6ebf1;
  background: #fff;
  box-shadow: none;
}
@media (max-width: 700px) {
  .dashboard-shell .modal-card.modal-card { border-radius: 6px; }
  .dashboard-shell .modal-card.modal-card .modal-heading {
    min-height: 56px;
    padding: 10px 14px 9px 16px;
  }
}

/* System upgrade page. */
.updates-page { max-width: 1440px; }
.updates-page .settings-tabs { margin-bottom: 20px; }
.updates-page .upgrade-control-card,
.updates-page .upgrade-node-card {
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 6px 22px rgba(30, 49, 72, .055);
}
.updates-page .upgrade-control-card { margin-bottom: 20px; padding: 22px 24px 0; }
.updates-page .upgrade-section-heading,
.updates-page .upgrade-node-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0;
}
.updates-page .upgrade-section-heading { justify-content: flex-start; }
.updates-page .upgrade-section-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(135deg, #6b7cff, #8d63ed);
  box-shadow: 0 7px 16px rgba(112, 94, 232, .2);
}
.updates-page .upgrade-section-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}
.updates-page .upgrade-section-icon.node-icon { background: linear-gradient(135deg, #3e83e5, #4cb4dd); }
.updates-page .upgrade-section-heading h2,
.updates-page .upgrade-node-heading h2 {
  margin: 0 0 3px;
  color: #1d2d40;
  font-size: 16px;
  font-weight: 750;
}
.updates-page .upgrade-section-heading p,
.updates-page .upgrade-node-heading p {
  margin: 0;
  color: #8a96a5;
  font-size: 10px;
}
.updates-page .upgrade-state-banner {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 72px;
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid #dce5ef;
  border-radius: 8px;
  background: #f7f9fc;
}
.updates-page .upgrade-state-banner.current { border-color: #bcebd0; background: #effcf4; }
.updates-page .upgrade-state-banner.available { border-color: #cddcff; background: #f2f6ff; }
.updates-page .upgrade-state-banner.error { border-color: #f2c8c4; background: #fff5f4; }
.updates-page .upgrade-state-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 50%;
  color: #fff;
  background: #91a0b1;
  font-size: 13px;
  font-weight: 800;
}
.updates-page .upgrade-state-banner.current .upgrade-state-icon { background: #42bd78; }
.updates-page .upgrade-state-banner.available .upgrade-state-icon { background: #5d7eea; }
.updates-page .upgrade-state-banner.error .upgrade-state-icon { background: #df685d; }
.updates-page .upgrade-state-copy { min-width: 0; }
.updates-page .upgrade-state-copy strong {
  display: block;
  margin-bottom: 4px;
  color: #2d455d;
  font-size: 12px;
}
.updates-page .upgrade-state-copy span {
  display: block;
  color: #8290a0;
  font-size: 10px;
}
.updates-page .upgrade-version-side {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 2px 9px;
  margin-left: auto;
  text-align: right;
}
.updates-page .upgrade-version-side span { grid-column: 1; color: #8794a3; font-size: 9px; }
.updates-page .upgrade-version-side strong { grid-column: 1; color: #263b51; font-size: 14px; }
.updates-page .upgrade-version-side em {
  grid-column: 2;
  grid-row: 1 / 3;
  padding: 3px 7px;
  border-radius: 4px;
  color: #318a56;
  background: #dff7e7;
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
}
.updates-page .upgrade-state-banner.available .upgrade-version-side em { color: #4869cc; background: #e0e8ff; }
.updates-page .upgrade-state-banner.error .upgrade-version-side em { color: #b64f47; background: #fae2df; }
.updates-page .upgrade-release-notes {
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid #e6ebf1;
  border-radius: 8px;
  background: #fbfcfe;
}
.updates-page .upgrade-release-title { display: flex; align-items: center; gap: 7px; margin-bottom: 13px; color: #4f6278; font-size: 11px; }
.updates-page .upgrade-release-title span { color: #6f73e8; }
.updates-page .upgrade-release-version { display: block; margin-bottom: 7px; color: #263b51; font-size: 11px; }
.updates-page .upgrade-release-notes > p { min-height: 16px; margin: 0; color: #718093; font-size: 10px; line-height: 1.65; white-space: pre-line; }
.updates-page .upgrade-directory-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed #e1e7ee;
  color: #8a96a4;
  font-size: 9px;
}
.updates-page .upgrade-directory-row code { overflow: hidden; color: #53657a; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.updates-page .upgrade-control-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  padding: 16px 0 20px;
  border-top: 1px solid #edf1f5;
}
.updates-page .upgrade-node-card { margin: 0; }
.updates-page .upgrade-node-heading { min-height: 76px; padding: 16px 20px; border-bottom: 1px solid #edf1f5; }
.updates-page .upgrade-node-title { display: flex; align-items: center; gap: 12px; }
.updates-page .upgrade-node-table { min-width: 860px; }
.updates-page .upgrade-node-table th,
.updates-page .upgrade-node-table td { vertical-align: middle; }
.updates-page .upgrade-node-table .check-column { width: 46px; text-align: center; }
.updates-page .upgrade-node-table .check-column input { width: 14px; height: 14px; }
.updates-page .upgrade-node-table td:last-child { white-space: nowrap; }
@media (max-width: 820px) {
  .updates-page .upgrade-control-card { padding: 18px 16px 0; }
  .updates-page .upgrade-state-banner { align-items: flex-start; flex-wrap: wrap; }
  .updates-page .upgrade-version-side { width: 100%; margin: 4px 0 0 41px; text-align: left; }
  .updates-page .upgrade-node-heading { align-items: flex-start; flex-direction: column; }
  .updates-page .upgrade-node-heading .primary-button { width: 100%; }
}

/* Unified status labels and compact table actions. */
.status-badge,
.status-pill,
.task-status,
.node-status,
.site-sync-status,
.verify-state,
.site-state,
.access-log-status,
.access-log-connection-state,
#control-latest-badge,
.site-status-breakdown span[class*="status-"] {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 42px;
  min-height: 22px;
  margin: 0;
  padding: 0 8px;
  border: 1px solid #dbe3ec !important;
  border-radius: 5px !important;
  color: #64748b !important;
  background: #f8fafc !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 20px !important;
  letter-spacing: 0;
  white-space: nowrap;
}
.node-status::before,
.site-state i,
.access-log-connection-state::before { display: none !important; }

.status-badge.success,
.status-badge.active,
.status-pill.success,
.task-status.succeeded,
.node-status.enabled,
.node-status.succeeded,
.site-sync-status.synced,
.verify-state.verified,
.site-state.active,
.access-log-status.status-2xx,
.access-log-connection-state.connected {
  border-color: #a7ebc4 !important;
  color: #079455 !important;
  background: #ecfdf3 !important;
}
.status-badge.info,
.task-status.running,
.site-sync-status.certificate-issuing,
.access-log-status.status-3xx,
#control-latest-badge.info {
  border-color: #bfd7ff !important;
  color: #2563eb !important;
  background: #eff6ff !important;
}
.status-badge.warning,
.status-badge.pending,
.task-status.waiting,
.task-status.queued,
.task-status.pending,
.task-status.partial_failed,
.node-status.pending,
.node-status.syncing,
.site-sync-status.syncing,
.verify-state:not(.verified),
.status-badge.plan_expired,
.site-state.plan_expired,
.access-log-status.status-4xx,
#control-latest-badge.warning {
  border-color: #f7d68a !important;
  color: #b45309 !important;
  background: #fffbeb !important;
}
.status-badge.danger,
.status-badge.disabled,
.status-badge.locked,
.task-status.failed,
.node-status.disabled,
.node-status.failed,
.site-state.disabled,
.site-state.locked,
.access-log-status.status-5xx,
.access-log-connection-state.disconnected,
#control-latest-badge.danger {
  border-color: #fecaca !important;
  color: #dc2626 !important;
  background: #fef2f2 !important;
}
.status-pill.muted,
.task-status.unavailable,
.node-status.idle,
.access-log-connection-state.disabled {
  border-color: #dbe3ec !important;
  color: #64748b !important;
  background: #f8fafc !important;
}

.row-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px !important;
  margin: 0;
}
.row-action {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 42px;
  min-height: 28px !important;
  margin: 0 !important;
  padding: 0 10px !important;
  border: 1px solid #bfdbfe !important;
  border-radius: 5px !important;
  color: #2563eb !important;
  background: #eff6ff !important;
  box-shadow: none !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 26px !important;
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .16s ease, color .16s ease, background-color .16s ease;
}
.row-action:hover {
  border-color: #93c5fd !important;
  color: #1d4ed8 !important;
  background: #dbeafe !important;
}
.row-action.danger {
  border-color: #fed7aa !important;
  color: #c2410c !important;
  background: #fff7ed !important;
}
.row-action.danger:hover {
  border-color: #fdba74 !important;
  color: #9a3412 !important;
  background: #ffedd5 !important;
}
.row-action:disabled {
  border-color: #e2e8f0 !important;
  color: #94a3b8 !important;
  background: #f8fafc !important;
  cursor: not-allowed;
  opacity: 1;
}
.cc-rules-table .row-action + .row-action { margin-left: 0 !important; }

/* Compact admin shell: sidebar + single-card workspace. */
.dashboard-shell {
  background: #f3f5f8;
}
.dashboard-shell .sidebar {
  position: sticky;
  top: 0;
  width: 210px;
  height: 100vh;
  padding: 0 10px 18px;
  overflow-x: hidden;
  overflow-y: auto;
  border-right: 1px solid #e3e8ef;
  color: #475569;
  background: #fff;
}
.dashboard-shell .sidebar-brand {
  min-height: 58px;
  margin: 0 -10px 10px;
  padding: 0 18px;
  border-bottom: 1px solid #edf0f4;
  color: #1e293b;
  font-size: 14px;
  font-weight: 750;
}
.dashboard-shell .sidebar-brand .brand-mark {
  width: 27px;
  height: 27px;
  border-radius: 5px;
  box-shadow: none;
}
.dashboard-shell .sidebar-menu {
  display: grid;
  gap: 3px;
}
.dashboard-shell .sidebar-group {
  display: grid;
  gap: 1px;
}
.dashboard-shell .sidebar-parent {
  min-height: 40px;
  padding: 0 10px;
  border-radius: 4px;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
}
.dashboard-shell .sidebar-parent:hover,
.dashboard-shell .sidebar-group.is-active > .sidebar-parent {
  color: #2563eb;
  background: #f8fafc;
}
.dashboard-shell .sidebar-parent-icon {
  width: 16px;
  color: #64748b;
}
.dashboard-shell .sidebar-parent-icon svg {
  width: 15px;
  height: 15px;
}
.dashboard-shell .sidebar-group.is-active > .sidebar-parent .sidebar-parent-icon {
  color: #2563eb;
}
.dashboard-shell .sidebar-chevron {
  width: 14px;
  height: 14px;
  flex-basis: 14px;
  color: #94a3b8;
}
.dashboard-shell .sidebar-chevron::after {
  top: 3px;
  left: 3px;
  width: 5px;
  height: 5px;
}
.dashboard-shell .sidebar-parent[aria-expanded="true"] .sidebar-chevron::after {
  top: 6px;
}
.dashboard-shell .sidebar-subnav {
  gap: 1px;
  margin: 0 -10px;
  padding: 1px 0 4px;
}
.dashboard-shell .sidebar-subnav .nav-item {
  position: relative;
  min-height: 36px;
  padding: 0 16px 0 40px;
  border-radius: 0;
  color: #64748b;
  font-size: 11px;
  font-weight: 500;
}
.dashboard-shell .sidebar-subnav .nav-item:hover {
  color: #2563eb;
  background: #f8fbff;
}
.dashboard-shell .sidebar-subnav .nav-item.active {
  color: #2563eb;
  background: #eef8ff;
}
.dashboard-shell .sidebar-subnav .nav-item.active::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: #2f80ed;
}

.dashboard-shell .dashboard-main {
  min-height: 100vh;
  background: #f3f5f8;
}
.dashboard-shell .topbar {
  min-height: 52px;
  padding: 0 22px;
  border-bottom: 1px solid #e4e8ee;
  background: #fff;
}
.dashboard-shell .avatar {
  width: 28px;
  height: 28px;
  font-size: 11px;
}
.dashboard-shell .user-menu strong {
  font-size: 11px;
}
.dashboard-shell .user-menu small,
.dashboard-shell .logout-button {
  font-size: 9px;
}
.dashboard-shell .dashboard-content {
  width: calc(100% - 28px);
  min-height: calc(100vh - 80px);
  margin: 14px;
  padding: 0 16px 18px;
  border: 1px solid #e1e6ed;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(15, 23, 42, .06);
}
.dashboard-shell .dashboard-content > .page-heading > div:first-child > :not(.page-back-link) {
  display: none;
}
.dashboard-shell .dashboard-content > .page-heading::before {
  display: none;
}
.dashboard-shell .dashboard-content > .page-heading:not(:has(.page-actions, > button, > a, .page-back-link)) {
  display: none;
}
.dashboard-shell .dashboard-content > .page-heading:has(.page-actions, > button, > a, .page-back-link) {
  min-height: 52px;
  margin: 0 -16px 12px;
  padding: 8px 16px;
  border-bottom: 1px solid #edf0f4;
}
.dashboard-shell .dashboard-content > .page-heading .page-back-link {
  margin: 0;
}
.dashboard-shell .dashboard-content > .settings-tabs,
.dashboard-shell .dashboard-content > .cache-operation-tabs {
  min-height: 44px;
  margin-top: 0;
  margin-right: -16px;
  margin-bottom: 0;
  margin-left: -16px;
  padding-top: 0;
  padding-right: 16px;
  padding-bottom: 0;
  padding-left: 16px;
  border-bottom: 1px solid #e5e9f0;
  background: #fff;
}
.dashboard-shell .dashboard-content > .settings-tabs .settings-tab,
.dashboard-shell .dashboard-content > .cache-operation-tabs .settings-tab {
  min-height: 44px;
  padding: 0 16px;
}
.dashboard-shell .dashboard-content > .settings-tabs + .notice,
.dashboard-shell .dashboard-content > .cache-operation-tabs + .notice {
  margin-top: 12px;
}
.dashboard-shell .dashboard-content > .settings-tabs + .notice[hidden] + section,
.dashboard-shell .dashboard-content > .cache-operation-tabs + .notice[hidden] + section {
  margin-top: 0;
}
.dashboard-shell .dashboard-content > .settings-tabs + section,
.dashboard-shell .dashboard-content > .cache-operation-tabs + section {
  margin-top: 0;
}
.dashboard-shell .dashboard-content > .table-panel {
  border-radius: 4px;
  box-shadow: none;
}
.dashboard-shell .dashboard-content > .page-heading + .table-panel,
.dashboard-shell .dashboard-content > .page-heading + .notice + .table-panel {
  margin-top: 14px;
}
body.dashboard-shell .sidebar-subnav {
  gap: 1px;
  margin: 0 -10px 4px;
  padding: 1px 0;
}
body.dashboard-shell .sidebar-subnav .nav-item {
  min-height: 36px;
  padding: 0 16px 0 40px;
  border-radius: 0;
  color: #64748b;
  font-size: 11px;
  font-weight: 500;
}
body.dashboard-shell .sidebar-subnav .nav-item:hover {
  color: #2563eb;
  background: #f8fbff;
}
body.dashboard-shell .sidebar-subnav .nav-item.active {
  color: #2563eb;
  background: #eef8ff;
  box-shadow: none;
  font-weight: 600;
}
.dashboard-shell .dashboard-content > .table-panel,
.dashboard-shell .dashboard-content > section > .table-panel {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.dashboard-shell .dashboard-content > .settings-layout > .settings-card,
.dashboard-shell .dashboard-content > .dns-panel > .settings-card,
.dashboard-shell .dashboard-content > .node-panel > .settings-card,
.dashboard-shell .dashboard-content > .settings-card,
.dashboard-shell .dashboard-content > .monitoring-workspace,
.dashboard-shell .dashboard-content > .upgrade-control-card,
.dashboard-shell .dashboard-content > .upgrade-node-card {
  width: 100%;
  max-width: none;
  padding: 18px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.dashboard-shell .dashboard-content > .monitoring-workspace {
  padding-top: 0;
}
.dashboard-shell .dashboard-content > .upgrade-control-card {
  margin-bottom: 0;
}
.dashboard-shell .dashboard-content > .upgrade-node-card {
  border-top: 1px solid #edf0f4;
}
.dashboard-shell .dashboard-content > .settings-layout {
  margin-top: 0;
}
.dashboard-shell .dashboard-content .settings-help {
  padding: 18px 0 18px 18px;
  border: 0;
  border-left: 1px solid #edf0f4;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.dashboard-shell .dashboard-content .settings-help .help-icon {
  width: 22px;
  height: 22px;
  border: 1px solid #bfdbfe;
  color: #2563eb;
  background: #eff6ff;
  font-size: 11px;
}
.dashboard-shell .dashboard-content .settings-help h2 {
  margin: 12px 0 6px;
  color: #334155;
  font-size: 13px;
  font-weight: 650;
}
.dashboard-shell .dashboard-content .settings-help p,
.dashboard-shell .dashboard-content .settings-help li {
  color: #64748b;
  font-size: 11px;
  line-height: 1.7;
}
.dashboard-shell .dashboard-content .settings-help ul {
  margin: 10px 0 0;
  padding-left: 16px;
}
.dashboard-shell .dns-settings-card .settings-form {
  width: 100%;
  max-width: none;
}
@media (max-width: 900px) {
  .dashboard-shell .sidebar {
    width: 64px;
    padding: 0 7px 16px;
  }
  .dashboard-shell .sidebar-group { display: none; }
  .dashboard-shell .sidebar-group.is-active { display: block; }
  body.dashboard-shell .sidebar-subnav { margin: 0 -7px; padding: 0; }
  .dashboard-shell .sidebar-brand {
    justify-content: center;
    margin: 0 -7px 10px;
    padding: 0;
  }
  .dashboard-shell .dashboard-content {
    width: calc(100% - 20px);
    min-height: calc(100vh - 72px);
    margin: 10px;
    padding: 0 12px 14px;
  }
  .dashboard-shell .dashboard-content > .page-heading:has(.page-actions, > button, > a, .page-back-link) {
    margin-right: -12px;
    margin-left: -12px;
    padding-right: 12px;
    padding-left: 12px;
  }
}

.dashboard-shell .site-settings-page .site-basic-grid {
  grid-template-columns: minmax(0, 1fr);
  max-width: 880px;
  column-gap: 0;
}
.dashboard-shell .site-settings-page .site-basic-row {
  grid-template-columns: 105px minmax(0, 1fr);
}
.dashboard-shell .site-settings-page .site-basic-row:nth-last-child(-n + 2) {
  border-bottom: 1px solid #f0f3f6;
}
.dashboard-shell .site-settings-page .site-basic-row:last-child {
  border-bottom: 0;
}
.dashboard-shell .site-settings-page .site-origin-panel .site-origin-option-row .origin-radio-group {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.dashboard-shell .site-settings-page .site-origin-panel .site-origin-option-row .origin-balance-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.dashboard-shell .site-settings-page .site-cc-panel .site-cc-mode-selector {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 0;
}
.dashboard-shell .site-settings-page .site-cc-panel .site-cc-mode-selector label {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  grid-template-columns: none;
  min-height: 30px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  white-space: nowrap;
}
.dashboard-shell .site-settings-page .site-cc-panel .site-cc-mode-selector label:hover,
.dashboard-shell .site-settings-page .site-cc-panel .site-cc-mode-selector label:has(input:checked) {
  border: 0;
  background: transparent;
  box-shadow: none;
}
@media (max-width: 720px) {
  .dashboard-shell .site-settings-page .site-origin-panel .site-origin-option-row .origin-radio-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Compact site summary, domain list and origin list. */
.dashboard-shell .site-settings-page #site-basic-status.site-state {
  display: inline-flex !important;
  align-items: center;
  justify-content: flex-start;
  width: fit-content !important;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 11px !important;
  line-height: 18px !important;
}
.dashboard-shell .site-settings-page #site-basic-status.site-state i {
  display: inline-block !important;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: currentColor;
}
.dashboard-shell .site-settings-page #site-basic-status.site-state.active { color: #079455 !important; }
.dashboard-shell .site-settings-page #site-basic-status.site-state.plan_expired { color: #b45309 !important; }
.dashboard-shell .site-settings-page #site-basic-status.site-state.disabled,
.dashboard-shell .site-settings-page #site-basic-status.site-state.locked { color: #dc2626 !important; }
.dashboard-shell .site-settings-page .site-basic-grid {
  padding: 0;
}
.dashboard-shell .site-settings-page .site-basic-row {
  min-height: 36px;
  padding: 0 12px;
}
.dashboard-shell .site-settings-page .site-list-section {
  padding: 0 12px 16px;
}
.dashboard-shell .site-settings-page .site-list-section .site-panel-heading {
  justify-content: flex-start;
  gap: 18px;
  margin-bottom: 8px;
}
.dashboard-shell .site-settings-page .site-list-section .compact-button {
  min-height: 28px;
  padding: 0 12px;
  border-radius: 4px;
  font-size: 11px;
}
.dashboard-shell .site-settings-page .site-list-section .site-origin-table-wrap {
  overflow-x: auto;
  border: 0;
  border-radius: 0;
}
.dashboard-shell .site-settings-page .site-list-section .site-origin-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: collapse;
}
.dashboard-shell .site-settings-page .site-list-section .site-origin-table th {
  height: 34px;
  padding: 0 14px;
  border: 0;
  color: #536579;
  background: #f5f7f9;
  font-size: 11px;
  font-weight: 600;
  text-align: left;
}
.dashboard-shell .site-settings-page .site-list-section .site-origin-table td {
  height: 38px;
  padding: 0 14px;
  border-bottom: 1px solid #edf1f4;
  color: #536579;
  font-size: 11px;
  text-align: left;
}
.dashboard-shell .site-settings-page .site-list-section .site-origin-table td strong {
  display: inline;
  color: #536579;
  font-weight: 500;
}
.dashboard-shell .site-settings-page .site-domains-table th:last-child,
.dashboard-shell .site-settings-page .site-domains-table td:last-child {
  width: 130px;
}
.dashboard-shell .site-settings-page .site-origins-table th:nth-child(2),
.dashboard-shell .site-settings-page .site-origins-table td:nth-child(2) {
  width: 120px;
}
.dashboard-shell .site-settings-page .site-origins-table th:nth-child(3),
.dashboard-shell .site-settings-page .site-origins-table td:nth-child(3) {
  width: 130px;
}
.dashboard-shell .site-settings-page .site-origins-table th:last-child,
.dashboard-shell .site-settings-page .site-origins-table td:last-child {
  width: 160px;
}
.dashboard-shell .site-settings-page .site-list-state {
  display: inline-flex;
  align-items: center;
  color: #64748b;
  white-space: nowrap;
}
.dashboard-shell .site-settings-page .site-list-state i {
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: #94a3b8;
}
.dashboard-shell .site-settings-page .site-list-state.active { color: #079455; }
.dashboard-shell .site-settings-page .site-list-state.active i { background: #12b76a; }
.dashboard-shell .site-settings-page .site-list-state.disabled { color: #dc2626; }
.dashboard-shell .site-settings-page .site-list-state.disabled i { background: #ef4444; }
.dashboard-shell .site-settings-page .site-list-section .row-actions {
  justify-content: flex-start;
  gap: 10px !important;
}
.dashboard-shell .site-settings-page .site-list-section .row-action {
  min-width: 0;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #2583d8 !important;
  background: transparent !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  line-height: 22px !important;
}
.dashboard-shell .site-settings-page .site-list-section .row-action:hover {
  color: #1769ad !important;
  background: transparent !important;
}
.dashboard-shell .site-settings-page .site-list-section .row-action.danger {
  color: #ef6b73 !important;
}
.dashboard-shell .site-settings-page .site-list-section .row-action.danger:hover {
  color: #d33f4b !important;
}
@media (max-width: 720px) {
  .dashboard-shell .site-settings-page .site-list-section .site-origin-table {
    min-width: 620px;
  }
}

/* Dashboard global traffic globe and ranking. */
.dashboard-member-content {
  width: min(1480px, calc(100% - 32px));
  max-width: none;
}
.dashboard-network-overview {
  min-height: 0;
  height: auto;
  margin-top: 18px;
  padding: 16px 18px 18px;
  overflow: hidden;
}
.dashboard-network-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.dashboard-network-header h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #33465b;
  font-size: 14px;
  font-weight: 600;
}
.dashboard-network-header h2 svg {
  width: 15px;
  height: 15px;
  fill: #2788f3;
}
.dashboard-network-ranges {
  display: inline-flex;
  align-items: center;
  border: 1px solid #dce3eb;
  border-radius: 4px;
  background: #fff;
}
.dashboard-network-ranges button {
  min-width: 54px;
  height: 28px;
  padding: 0 10px;
  border: 0;
  border-right: 1px solid #e5eaf0;
  color: #617186;
  background: transparent;
  font-size: 11px;
  cursor: pointer;
}
.dashboard-network-ranges button:last-child { border-right: 0; }
.dashboard-network-ranges button:hover { color: #2788f3; background: #f5f9ff; }
.dashboard-network-ranges button.active {
  position: relative;
  z-index: 1;
  color: #2788f3;
  background: #f7fbff;
  box-shadow: 0 0 0 1px #2788f3;
}
.dashboard-network-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.dashboard-network-metrics article {
  min-width: 0;
  padding: 0 18px;
  border-right: 1px solid #edf0f4;
}
.dashboard-network-metrics article:first-child { padding-left: 0; }
.dashboard-network-metrics article:last-child {
  padding-right: 0;
  border-right: 0;
}
.dashboard-network-metrics span {
  display: block;
  margin-bottom: 7px;
  color: #7c8999;
  font-size: 11px;
}
.dashboard-network-metrics strong {
  display: block;
  overflow: hidden;
  color: #344d6b;
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 500;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.member-shell .dashboard-network-overview { margin: 22px 0 0; }
.dashboard-traffic-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, .65fr);
  gap: 16px;
  margin-top: 12px;
}
.dashboard-traffic-grid .panel-card {
  min-width: 0;
  min-height: 0;
  padding: 18px;
  overflow: hidden;
}
.member-shell .dashboard-traffic-grid {
  margin: 22px 0;
}
.dashboard-traffic-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 25px;
  margin-bottom: 9px;
}
.dashboard-traffic-heading h2 {
  margin: 0;
  color: #26384d;
  font-size: 15px;
  font-weight: 700;
}
.dashboard-traffic-updated {
  color: #98a5b4;
  font-size: 10px;
  white-space: nowrap;
}
.dashboard-globe-host {
  position: relative;
  height: 360px;
  overflow: hidden;
  border: 1px solid #dbe7ee;
  border-radius: 8px;
  background: linear-gradient(145deg, #fbfdfe, #f5f9fb 58%, #f2f7f9);
  box-shadow: inset 0 0 32px rgba(87, 132, 164, .045);
}
.dashboard-globe-host canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: default;
  touch-action: none;
}
.dashboard-globe-state {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  max-width: 80%;
  padding: 8px 12px;
  border: 1px solid #d5e3eb;
  border-radius: 5px;
  color: #667b8d;
  background: rgba(255, 255, 255, .9);
  font-size: 11px;
  text-align: center;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.dashboard-globe-hint {
  position: absolute;
  right: 12px;
  bottom: 10px;
  color: #92a4b3;
  font-size: 9px;
  pointer-events: none;
}
.dashboard-globe-tooltip {
  position: absolute;
  z-index: 3;
  display: grid;
  min-width: 116px;
  padding: 8px 10px;
  border: 1px solid #cbdde7;
  border-radius: 5px;
  color: #2f475d;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 8px 24px rgba(48, 82, 108, .16);
  pointer-events: none;
}
.dashboard-globe-tooltip strong { font-size: 11px; }
.dashboard-globe-tooltip span { margin-top: 3px; color: #168ba5; font-size: 10px; }
.dashboard-globe-tooltip[hidden],
.dashboard-globe-state[hidden],
.dashboard-ranking-error[hidden] { display: none; }
.dashboard-ranking-card {
  display: flex;
  flex-direction: column;
}
.dashboard-ranking-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  margin: -2px 0 10px;
  padding-bottom: 5px;
  border-bottom: 1px solid #e4e9ef;
  scrollbar-width: thin;
}
.dashboard-ranking-tabs button {
  flex: 0 0 auto;
  min-height: 29px;
  padding: 0 9px;
  border: 0;
  border-bottom: 2px solid transparent;
  color: #718195;
  background: transparent;
  font-size: 10px;
  cursor: pointer;
}
.dashboard-ranking-tabs button:hover { color: #2f77c7; }
.dashboard-ranking-tabs button.active {
  border-bottom-color: #3186e8;
  color: #216ebf;
  font-weight: 700;
}
.dashboard-ranking-table-wrap {
  min-height: 350px;
  max-height: 420px;
  overflow: auto;
}
.dashboard-ranking-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.dashboard-ranking-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  height: 32px;
  padding: 0 8px;
  border-bottom: 1px solid #e5eaf0;
  color: #7a899a;
  background: #f7f9fb;
  font-size: 9px;
  font-weight: 600;
  text-align: left;
}
.dashboard-ranking-table td {
  height: 36px;
  padding: 0 8px;
  border-bottom: 1px solid #edf1f5;
  color: #536579;
  font-size: 10px;
}
.dashboard-ranking-table th:first-child,
.dashboard-ranking-table td:first-child { width: 36px; text-align: center; }
.dashboard-ranking-table th:nth-child(3),
.dashboard-ranking-table td:nth-child(3) { width: 78px; text-align: right; }
.dashboard-ranking-table th:last-child,
.dashboard-ranking-table td:last-child { width: 72px; text-align: right; }
.dashboard-rank-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  border-radius: 4px;
  color: #718195;
  background: #f0f3f6;
  font-size: 9px;
}
.dashboard-rank-index.top {
  color: #256fbd;
  background: #e9f3fd;
}
.dashboard-rank-value {
  overflow: hidden;
  color: #334e6b !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dashboard-ranking-error {
  margin-top: 8px;
  padding: 7px 9px;
  border-radius: 4px;
  color: #b54747;
  background: #fff3f3;
  font-size: 10px;
}
@media (max-width: 1050px) {
  .dashboard-traffic-grid {
    grid-template-columns: minmax(0, 1fr) minmax(330px, .8fr);
  }
  .dashboard-globe-host { height: 340px; }
}
@media (max-width: 820px) {
  .dashboard-member-content { width: min(100% - 20px, 1480px); }
  .dashboard-network-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 0; }
  .dashboard-network-metrics article:nth-child(2) { border-right: 0; }
  .dashboard-traffic-grid { grid-template-columns: minmax(0, 1fr); }
  .dashboard-globe-host { height: 320px; }
  .dashboard-ranking-table-wrap { min-height: 300px; max-height: 360px; }
}
@media (max-width: 520px) {
  .dashboard-network-overview { padding: 14px; }
  .dashboard-network-header { align-items: flex-start; flex-direction: column; margin-bottom: 17px; }
  .dashboard-network-ranges { width: 100%; }
  .dashboard-network-ranges button { flex: 1 1 0; min-width: 0; padding: 0 5px; }
  .dashboard-network-metrics strong { font-size: 18px; }
  .dashboard-network-metrics article { padding: 0 12px; }
  .dashboard-traffic-grid .panel-card { padding: 13px; }
  .dashboard-globe-host { height: 280px; }
  .dashboard-ranking-table th:nth-child(3),
  .dashboard-ranking-table td:nth-child(3) { width: 68px; }
  .dashboard-ranking-table th:last-child,
  .dashboard-ranking-table td:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .dashboard-globe-host canvas { scroll-behavior: auto; }
}

/* Member workspace shares the admin shell while keeping member-only content. */
.dashboard-shell.member-shell .dashboard-main { min-width: 0; }
.dashboard-shell .sidebar-brand .brand-mark { display: none; }
.topbar-brand-logo {
  display: flex;
  align-items: center;
  width: min(190px, 25vw);
  height: 46px;
  margin-right: 20px;
}
.topbar-brand-logo img {
  display: block;
  width: 100%;
  max-height: 40px;
  object-fit: contain;
  object-position: left center;
}
.dashboard-shell.member-shell .dashboard-content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 38px 40px 64px;
}
.dashboard-shell.member-shell .page-heading a { text-decoration: none; }
.dashboard-shell.member-shell .member-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}
.dashboard-shell.member-shell .member-card {
  min-height: 150px;
  border-color: #e4eaf1;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .025);
}
.dashboard-shell.member-shell .plans-member-content,
.dashboard-shell.member-shell .sites-member-content,
.dashboard-shell.member-shell .site-monitoring-member-content,
.dashboard-shell.member-shell .access-log-member-content,
.dashboard-shell.member-shell .member-operations-content {
  max-width: none;
  padding-top: 38px;
}
.dashboard-shell.member-shell .member-page-heading { margin-bottom: 28px; }
.dashboard-shell.member-shell .member-section-title {
  color: #34465a;
  font-size: 15px;
}
.dashboard-shell.member-shell .plan-purchase-card,
.dashboard-shell.member-shell .member-owned-item,
.dashboard-shell.member-shell .member-site-item {
  border-color: #e4eaf1;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .025);
}
.dashboard-shell.member-shell .member-site-actions a { text-decoration: none; }
.dashboard-shell.member-shell .plan-card-grid {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}
.dashboard-shell.member-shell .plan-purchase-detail-card { min-height: 540px; }
.dashboard-shell.member-shell .plan-purchase-sections {
  display: grid;
  gap: 16px;
}
.dashboard-shell.member-shell .plan-purchase-sections section {
  padding-top: 13px;
  border-top: 1px solid #edf1f5;
}
.dashboard-shell.member-shell .plan-purchase-sections h4 {
  margin: 0 0 10px;
  color: #34465a;
  font-size: 12px;
}
.dashboard-shell.member-shell .plan-purchase-sections ul {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
}
.dashboard-shell.member-shell .member-owned-plan-table { min-width: 980px; }
.dashboard-shell.member-shell .member-owned-plan-table .row-action { text-decoration: none; }
.dashboard-shell.member-shell .member-plan-monitor-table { min-width: 820px; }
.dashboard-shell.member-shell .member-blacklist-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid #e8edf3;
}
.dashboard-shell.member-shell .member-blacklist-toolbar .blacklist-search { margin-left: auto; }
@media (max-width: 900px) {
  .dashboard-shell .sidebar-brand .brand-mark { display: grid; }
  .topbar-brand-logo { display: none; }
  .dashboard-shell.member-shell .dashboard-content { padding: 32px 20px; }
}
@media (max-width: 600px) {
  .dashboard-shell.member-shell .dashboard-content { padding: 25px 15px; }
  .dashboard-shell.member-shell .member-grid { grid-template-columns: 1fr; }
  .dashboard-shell.member-shell .page-heading .page-actions { width: 100%; }
  .dashboard-shell.member-shell .plan-card-grid { grid-template-columns: 1fr; }
  .dashboard-shell.member-shell .plan-purchase-sections ul { grid-template-columns: 1fr; }
  .dashboard-shell.member-shell .member-blacklist-toolbar { align-items: stretch; flex-direction: column; }
  .dashboard-shell.member-shell .member-blacklist-toolbar .blacklist-search { width: 100%; margin-left: 0; }
}

/* Shared IDN and Punycode conversion workspace. */
.domain-tools-workspace {
  overflow: hidden;
  border: 1px solid #e3e9f1;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(15, 23, 42, .035);
}
.domain-tools-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr);
  gap: 18px;
  padding: 26px;
}
.domain-tools-column { min-width: 0; }
.domain-tools-column-heading {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 48px;
  margin-bottom: 14px;
}
.domain-tools-column-heading > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 50%;
  color: #fff;
  background: #2f75bd;
  font-size: 12px;
  font-weight: 700;
}
.domain-tools-column-heading h2 {
  margin: 0 0 4px;
  color: #26384d;
  font-size: 15px;
}
.domain-tools-column-heading p {
  margin: 0;
  color: #8391a2;
  font-size: 11px;
}
.domain-tools-column textarea {
  width: 100%;
  min-height: 290px;
  padding: 14px;
  resize: vertical;
  border: 1px solid #d6deea;
  border-radius: 7px;
  outline: 0;
  color: #334155;
  background: #fbfcfe;
  font: 12px/1.75 Consolas, "Microsoft YaHei", sans-serif;
}
.domain-tools-column textarea:focus {
  border-color: #69a1d8;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(47, 117, 189, .1);
}
.domain-tools-column textarea[readonly] { color: #2563a5; background: #f5f9fd; }
.domain-tools-arrow {
  display: grid;
  place-items: center;
  padding-top: 62px;
  color: #6f89a5;
  font-size: 23px;
}
.domain-tools-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding-top: 2px;
}
.domain-tools-actions button { min-width: 108px; }
.domain-tools-tips {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 26px;
  border-top: 1px solid #e8edf3;
  color: #6f7f91;
  background: #f8fafc;
  font-size: 11px;
}
.domain-tools-tips strong { color: #40556d; white-space: nowrap; }
.domain-converter-link { margin-left: 5px; color: #2f75bd; font-weight: 650; text-decoration: none; }
.domain-converter-link:hover { text-decoration: underline; }
@media (max-width: 760px) {
  .domain-tools-form { grid-template-columns: 1fr; padding: 18px; }
  .domain-tools-arrow { padding: 0; transform: rotate(90deg); }
  .domain-tools-actions { grid-column: 1; }
  .domain-tools-column textarea { min-height: 220px; }
}

/* Wallet, recharge, and finance pages. */
.dashboard-shell.member-shell .dashboard-member-content .member-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 18px;
}
.member-summary-grid .stat-card { min-height: 104px; padding: 18px 20px; }
.member-summary-grid .stat-card strong { font-size: 22px; }
.member-summary-grid .stat-card a { color: #4f46e5; text-decoration: none; }
.member-summary-grid .stat-card a:hover { text-decoration: underline; }
.recharge-balance-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  margin-bottom: 14px;
  padding: 15px 20px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: linear-gradient(135deg, #fff 0%, #f8fbff 100%);
  box-shadow: 0 2px 8px rgba(15, 23, 42, .025);
}
.recharge-balance-strip div { display: grid; gap: 4px; }
.recharge-balance-strip span, .recharge-balance-strip small { color: #7b899a; font-size: 11px; }
.recharge-balance-strip strong { color: #26384d; font-size: 24px; }
.recharge-workspace { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(340px, .75fr); gap: 14px; }
.dashboard-shell .recharge-form-card,
.dashboard-shell .recharge-result-card { min-height: 390px; padding: 20px; }
#recharge-form {
  gap: 16px;
  margin: 0;
  padding: 0;
}
#recharge-form .card-heading { padding-bottom: 16px; border-bottom: 1px solid #e8edf3; }
.recharge-amount-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.recharge-amount-options button { min-width: 72px; min-height: 34px; }
#payment-result .card-heading { padding-bottom: 15px; border-bottom: 1px solid #e8edf3; }
#payment-qr { padding: 8px; border: 1px solid #dfe6ef; border-radius: 8px; background: #fff; }
.recharge-payment-state,
.recharge-placeholder { display: grid; place-items: center; align-content: center; gap: 10px; min-height: 290px; color: #7b899a; text-align: center; }
.recharge-payment-state strong,
.recharge-placeholder strong { color: #334155; font-size: 13px; }
.recharge-payment-state span,
.recharge-placeholder span { font-size: 11px; }
.dashboard-shell.member-shell #payment-result .primary-button,
.dashboard-shell.member-shell #payment-result .outline-button { text-decoration: none; }
.member-balance { color: #b7791f; font-size: 12px; }
#recharge-records-table td:first-child,
#recharge-records-table td:nth-child(6) { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; }
.system-settings-page #payment-settings-panel textarea {
  min-height: 118px;
  padding: 10px 11px;
  resize: vertical;
  font: 11px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace;
}
.system-settings-page #payment-settings-panel .settings-switch {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #e4eaf1;
  border-radius: 7px;
  background: #f8fafc;
}
@media (max-width: 900px) {
  .dashboard-shell.member-shell .dashboard-member-content .member-grid { grid-template-columns: 1fr; }
  .recharge-workspace { grid-template-columns: 1fr; }
}

/* System settings workspace. */
.system-settings-page { --settings-accent: #2563eb; }
.system-settings-page .page-heading { margin-bottom: 28px; }
.system-settings-page .settings-tabs { margin-top: -10px; }
.system-settings-panel[hidden] { display: none; }
.system-settings-stack { display: grid; gap: 16px; }
.dashboard-shell .system-settings-card {
  padding: 22px;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(15, 23, 42, .035);
}
.system-settings-card .card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 17px;
  border-bottom: 1px solid #edf1f5;
}
.system-settings-card .card-heading h2 { margin: 0 0 5px; color: #24364b; font-size: 15px; }
.system-settings-card .card-heading p { margin: 0; color: #8795a6; font-size: 11px; line-height: 1.6; }
.system-settings-page .settings-state {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 4px;
  color: #2563eb;
  background: #eff6ff;
  font-size: 10px;
  font-weight: 700;
}
.system-settings-card > .settings-form { max-width: 860px; margin-top: 20px; }
.system-settings-card > .system-basic-grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 860px;
  gap: 16px;
}
.currency-conversion-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 860px;
  margin-top: 16px;
  padding: 10px 12px;
  border: 1px solid #f1d39a;
  border-radius: 7px;
  color: #8a5a13;
  background: #fff9eb;
}
.currency-conversion-note-icon {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border-radius: 50%;
  color: #fff;
  background: #d49324;
  font-size: 12px;
  font-weight: 800;
}
.currency-conversion-note p { margin: 0; font-size: 11px; line-height: 1.6; }
.currency-conversion-note strong { display: block; color: #7a4b0d; font-weight: 750; }
.currency-conversion-note span { display: block; color: #9a6d2c; }
.brand-assets-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 20px;
}
.brand-asset {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px;
  gap: 14px 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid #e5eaf1;
  border-radius: 8px;
  background: #fbfcfe;
}
.brand-asset-copy h3 { margin: 0 0 6px; color: #334155; font-size: 13px; }
.brand-asset-copy p { margin: 0; color: #8997a8; font-size: 10px; line-height: 1.6; }
.brand-asset-preview {
  display: grid;
  place-items: center;
  width: 118px;
  height: 72px;
  overflow: hidden;
  border: 1px dashed #cbd5e1;
  border-radius: 7px;
  color: #94a3b8;
  background: #fff;
  font-size: 10px;
}
.brand-asset-preview img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.brand-asset-preview.ico-preview { width: 72px; height: 72px; justify-self: end; }
.brand-asset-preview.ico-preview img { width: 40px; height: 40px; }
.asset-file-input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.brand-asset-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 3px;
}
.brand-asset-actions button { min-height: 34px; padding: 0 12px; }
.brand-asset-actions .primary-button { border-radius: 6px; font-size: 11px; }
.brand-asset-actions button:disabled {
  cursor: not-allowed;
  opacity: .48;
  transform: none;
}
.asset-delete-button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #f0d2d0;
  border-radius: 6px;
  color: #b64d47;
  background: #fff;
  font-size: 11px;
  font-weight: 700;
}
.asset-delete-button:hover { border-color: #e8aaa5; background: #fff7f6; }
.asset-delete-button:disabled { cursor: not-allowed; opacity: .55; }
.asset-file-name { grid-column: 1 / -1; margin-top: -7px; color: #94a3b8; font-size: 10px; }
.system-settings-savebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 18px;
  border: 1px solid #dfe6ef;
  border-radius: 8px;
  background: #f8fafc;
}
.system-settings-savebar p { margin: 0; color: #77869a; font-size: 11px; }
.system-settings-savebar .primary-button { min-height: 38px; padding: 0 16px; border-radius: 6px; }
.system-settings-page #email-settings-panel .settings-card {
  padding: 22px;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(15, 23, 42, .035);
}
.system-settings-page .settings-two-col { grid-template-columns: 1fr; }
@media (max-width: 900px) {
  .system-settings-card > .system-basic-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .dashboard-shell .system-settings-card { padding: 17px; }
  .brand-asset { grid-template-columns: 1fr; }
  .brand-asset-preview, .brand-asset-preview.ico-preview { width: 100%; justify-self: stretch; }
  .brand-asset-actions { flex-direction: column; }
  .brand-asset-actions button { width: 100%; }
  .system-settings-savebar { align-items: stretch; flex-direction: column; }
  .system-settings-savebar .primary-button { width: 100%; }
}
