:root {
  color-scheme: light;
  --ink: #18243a;
  --muted: #78859a;
  --line: #e7ebf2;
  --blue: #4667e9;
  --blue-dark: #3453ce;
  --green: #159570;
  --red: #bd3945;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: #f5f7fb; color: var(--ink); }
button, input, select { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.layout { max-width: 1180px; min-height: 100vh; margin: auto; padding: 0 30px; }
.header { height: 78px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand-mark { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 12px; background: linear-gradient(145deg,#5b7cff,#344fc0); color: #fff; font-size: 19px; font-weight: 850; box-shadow: 0 8px 18px #3a5bd52c; }
.brand small, .brand strong { display: block; }
.brand small { margin-bottom: 3px; color: #8995a8; font-size: 8px; font-weight: 800; letter-spacing: .13em; }
.brand strong { font-size: 15px; letter-spacing: -.02em; }
.header-right { display: flex; align-items: center; gap: 18px; }
.secure-label { color: #6d7b91; font-size: 11px; }
.secure-label i { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #24ad7d; }
.welcome { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 38px 0 24px; }
h1 { margin: 0; font-size: 25px; letter-spacing: -.04em; }
h2 { letter-spacing: -.025em; }
.welcome .muted { margin: 8px 0 0; }
.eyebrow { margin: 0 0 8px; color: #7d8ba1; font-size: 9px; font-weight: 850; letter-spacing: .14em; }
.muted { color: var(--muted); font-size: 12px; line-height: 1.65; }
.button { min-height: 36px; padding: 0 13px; border: 1px solid transparent; border-radius: 8px; font-size: 11px; font-weight: 750; transition: .15s ease; }
.button-primary { background: var(--blue); color: white; box-shadow: 0 4px 11px #4667e929; }
.button-primary:hover { background: var(--blue-dark); }
.button-outline { border-color: var(--line); background: white; color: #53627a; }
.button-outline:hover { background: #f7f8fb; }
.button-danger { border-color: #f0d7d9; background: #fff8f8; color: var(--red); }
.full { width: 100%; }
.login-panel { width: min(420px, 100%); margin: 9vh auto 0; padding: 33px; }
.panel { border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 15px 40px #1f31500a; }
.login-icon { display: grid; width: 43px; height: 43px; margin-bottom: 20px; place-items: center; border-radius: 13px; background: #eff3ff; color: var(--blue); font-size: 19px; }
.login-panel h1 { font-size: 20px; }
.login-panel .muted { margin: 9px 0 21px; }
label { display: block; margin: 14px 0 7px; color: #48566c; font-size: 11px; font-weight: 700; }
input, select { width: 100%; min-height: 39px; padding: 0 11px; border: 1px solid #dfe5ef; border-radius: 7px; outline: none; background: white; color: var(--ink); }
input:focus, select:focus { border-color: #879dff; box-shadow: 0 0 0 3px #4667e91a; }
.login-panel .button { margin-top: 15px; }
.login-panel a.button { justify-content: center; font-size: 12px; }
.form-error { min-height: 16px; margin: 9px 0 0; color: var(--red); font-size: 11px; }
.alert { margin-bottom: 16px; padding: 11px 13px; border: 1px solid #f0d7d9; border-radius: 8px; background: #fff7f7; color: #9c333d; font-size: 12px; }
.alert.success { border-color: #ccebdc; background: #f0fbf6; color: #18734f; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 15px; }
.site-card { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 8px 22px #1f315007; }
.site-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; padding: 17px 17px 13px; border-bottom: 1px solid #f0f2f6; }
.site-ident { display: flex; min-width: 0; align-items: center; gap: 11px; }
.site-icon { display: grid; width: 35px; height: 35px; flex: 0 0 35px; place-items: center; border-radius: 10px; background: #f0f3ff; color: #506ee7; font-weight: 800; }
.site-url { overflow: hidden; color: #263650; font-size: 12px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.site-meta { margin-top: 4px; color: #8d98a9; font-size: 10px; }
.status { display: flex; align-items: center; gap: 6px; padding-top: 2px; color: #8290a4; font-size: 9px; white-space: nowrap; }
.status i { width: 6px; height: 6px; border-radius: 50%; background: #c2c9d4; }
.status.online i { background: #22b485; }
.site-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; padding: 13px 15px; }
.site-action { min-height: 33px; padding: 0 8px; border: 1px solid #e8ecf3; border-radius: 7px; background: #fff; color: #53627a; font-size: 10px; font-weight: 680; text-align: left; }
.site-action:hover { border-color: #ccd5e5; background: #fafbfe; color: var(--blue); }
.site-action.full-row { grid-column: span 2; }
.site-footer { display: flex; justify-content: space-between; padding: 10px 15px; border-top: 1px solid #f0f2f6; color: #8b97a8; font-size: 9px; }
.empty { max-width: 560px; margin: 20px auto; padding: 38px 25px; text-align: center; }
.empty-mark { display: inline-grid; width: 43px; height: 43px; place-items: center; border-radius: 13px; background: #eff3ff; color: var(--blue); font-size: 23px; }
.empty h2 { margin: 14px 0 7px; font-size: 16px; }
.empty p { margin: 0 auto 17px; max-width: 370px; color: var(--muted); font-size: 12px; line-height: 1.65; }
footer { padding: 25px 0; color: #98a2b1; font-size: 10px; text-align: center; }
footer span { padding: 0 5px; }
.dialog { width: min(490px, calc(100% - 24px)); max-height: 85vh; overflow: auto; padding: 24px; border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 24px 80px #10203a40; }
.dialog::backdrop { background: #101a2d70; backdrop-filter: blur(2px); }
.dialog-wide { width: min(820px, calc(100% - 24px)); }
.dialog-close-row { height: 0; margin: 0; }
.close { float: right; width: 28px; height: 28px; margin: -14px -14px 0 0; border: 0; border-radius: 50%; background: #f1f3f8; color: #69768a; font-size: 20px; line-height: 1; }
.dialog h2 { margin: 0 0 8px; font-size: 18px; }
.dialog p { color: var(--muted); font-size: 12px; line-height: 1.65; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.pair-token { display: block; overflow-wrap: anywhere; margin: 12px 0; padding: 12px; border-radius: 7px; background: #f3f5f9; color: #263650; font: 11px/1.5 ui-monospace, monospace; user-select: all; }
.pair-field .dialog-label { margin-bottom: 6px; }
.pair-row { display: flex; align-items: center; gap: 8px; }
.pair-row .pair-token { flex: 1; min-width: 0; margin: 0; }
.pair-copy { flex: none; }
.agent-outdated { display: inline-block; margin-left: 6px; padding: 2px 6px; border-radius: 5px; background: #fff4df; color: #996514; font-size: 9px; font-weight: 700; }
.command-list { display: grid; grid-template-columns: repeat(auto-fill,minmax(180px,1fr)); gap: 8px; margin-top: 15px; }
.command-list .site-action { min-height: 39px; }
.command-table { width: 100%; margin-top: 15px; border-collapse: collapse; text-align: left; }
.command-table th, .command-table td { padding: 9px 8px; border-bottom: 1px solid #edf0f5; font-size: 10px; vertical-align: middle; }
.command-table th { color: #8b96a8; font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.command-table code { display: block; max-width: 260px; overflow-wrap: anywhere; color: #53627a; font-size: 9px; }
.state-tag { display: inline-block; padding: 4px 6px; border-radius: 5px; background: #f0f2f6; color: #627087; font-size: 9px; white-space: nowrap; }
.state-tag.pending { background: #fff4df; color: #996514; }
.state-tag.succeeded { background: #eaf8f1; color: #18734f; }
.state-tag.failed { background: #fff0f0; color: #a93640; }
.result-box { max-height: 130px; overflow: auto; margin: 7px 0 0; padding: 8px; border-radius: 5px; background: #f6f7fa; color: #53627a; font: 9px/1.45 ui-monospace, monospace; white-space: pre-wrap; }
.login-link { display: inline-block; margin-top: 7px; color: var(--blue); font-size: 10px; overflow-wrap: anywhere; }
@media (max-width: 650px) {
  .layout { padding: 0 14px; }
  .welcome { align-items: flex-start; flex-direction: column; padding: 26px 0 18px; }
  h1 { font-size: 21px; }
  .secure-label { display: none; }
  .grid { grid-template-columns: 1fr; }
  .login-panel { margin-top: 7vh; padding: 25px; }
}
.result-source { margin: 0 0 4px; color: #996514; font-size: 9px; font-weight: 700; }
.command-people { white-space: pre-line; color: #627087; }
.welcome-actions { display: flex; flex-wrap: wrap; gap: 8px; }
a.button { display: inline-flex; align-items: center; text-decoration: none; }
.plugin-download { margin-right: 8px; }

/* ---------- Sites list ---------- */
.site-card { cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease; }
.site-card:hover, .site-card:focus-visible { border-color: #c9d3ec; box-shadow: 0 10px 26px #1f31501a; outline: none; }
.site-open { color: var(--blue); font-weight: 700; }
.brand-mark.small { width: 24px; height: 24px; border-radius: 7px; font-size: 12px; box-shadow: none; }

/* ---------- Toast ---------- */
.toast { position: fixed; z-index: 50; right: 20px; bottom: 20px; display: flex; gap: 10px; max-width: min(460px, calc(100% - 40px)); padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 18px 50px #10203a29; color: var(--ink); font-size: 12px; font-weight: 600; line-height: 1.5; }
.toast::before { content: ""; flex: 0 0 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: var(--green); }
.toast.error { border-color: #f0d7d9; background: #fffafa; color: #9c333d; }
.toast.error::before { background: var(--red); }

/* ---------- Dialogs ---------- */
.dialog-form h2 { margin: 0 0 8px; font-size: 17px; }
.dialog-label { display: block; margin: 14px 0 0; color: #48566c; font-size: 11px; font-weight: 700; }
.dialog-input { margin-top: 7px; }
.button-danger-solid { background: var(--red); color: #fff; box-shadow: 0 4px 11px #bd394529; }
.button-danger-solid:hover { background: #a02f3a; }
.dialog-actions .button { display: inline-flex; align-items: center; text-decoration: none; }

/* ---------- Site admin ---------- */
.site-view { --surface: #fff; --soft: #f5f7fb; --hover: #f3f5fa; --accent-soft: #eef2ff; min-height: 100vh; background: var(--soft); color: var(--ink); font-size: 13px; }
.wp-adminbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; height: 60px; padding: 0 22px; border-bottom: 1px solid var(--line); background: #ffffffe6; backdrop-filter: blur(8px); }
.wp-adminbar-brand { display: flex; align-items: center; gap: 9px; color: var(--ink); font-size: 13px; font-weight: 800; text-decoration: none; }
.wp-adminbar-site { overflow: hidden; padding-left: 14px; border-left: 1px solid var(--line); color: #53627a; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.wp-adminbar-spacer { flex: 1; }
.wp-adminbar-user { color: var(--muted); font-size: 12px; }
.wp-adminbar-button { min-height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: #53627a; font-size: 11px; font-weight: 700; }
.wp-adminbar-button:hover { background: var(--hover); }
.wp-connection { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #fff6e5; color: #996514; font-size: 11px; font-weight: 700; white-space: nowrap; }
.wp-connection::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.wp-connection.online { background: #eaf8f1; color: #18734f; }
.wp-busy { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--blue); font-size: 11px; font-weight: 700; }
.wp-busy i, .wp-loading i { width: 11px; height: 11px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: wp-spin .8s linear infinite; }
@keyframes wp-spin { to { transform: rotate(360deg); } }
.wp-shell { display: flex; min-height: calc(100vh - 60px); }
.wp-sidebar { position: sticky; top: 60px; flex: 0 0 248px; align-self: flex-start; height: calc(100vh - 60px); overflow-y: auto; padding: 16px 14px 24px; border-right: 1px solid var(--line); background: #fff; }
.wp-back { display: inline-block; margin: 0 0 14px 6px; color: var(--muted); font-size: 11px; font-weight: 650; text-decoration: none; }
.wp-back:hover { color: var(--blue); }
.wp-sidebar-site { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fafbfe; }
.wp-sidebar-site strong, .wp-sidebar-site small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wp-sidebar-site > div { min-width: 0; }
.wp-sidebar-site strong { font-size: 12px; }
.wp-sidebar-site small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.wp-menu-item { display: flex; align-items: center; gap: 10px; min-height: 38px; margin: 2px 0; padding: 0 11px; border-radius: 9px; color: #4a5872; font-size: 13px; font-weight: 600; text-decoration: none; transition: background .12s ease, color .12s ease; }
.wp-menu-item:hover { background: var(--hover); color: var(--ink); }
.wp-menu-item.current { background: var(--accent-soft); color: var(--blue); }
.wp-menu-item.disabled { color: #b4bccb; pointer-events: none; }
.wp-menu-separator { height: 1px; margin: 12px 8px; background: var(--line); }
.wp-icon { width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wp-main { flex: 1; min-width: 0; padding: 28px 34px 48px; }
.wp-banner { margin: 0 0 18px; padding: 11px 14px; border: 1px solid #f3e1b8; border-radius: 10px; background: #fffaf0; color: #7a5410; font-size: 12px; line-height: 1.55; }
.wp-content { max-width: 1240px; }
.wp-page-header { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 18px; }
.wp-page-header h1 { margin: 0 auto 0 0; font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.wp-lead { max-width: 820px; margin: -8px 0 16px; line-height: 1.6; }
.wp-button { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: #3c4a63; font-size: 12px; font-weight: 650; text-decoration: none; white-space: nowrap; cursor: pointer; transition: .12s ease; }
.wp-button:hover { border-color: #cdd5e3; background: #fafbfe; color: var(--ink); }
.wp-button:disabled { opacity: .45; cursor: default; }
.wp-button-primary { border-color: transparent; background: var(--blue); color: #fff; box-shadow: 0 4px 11px #4667e929; }
.wp-button-primary:hover { border-color: transparent; background: var(--blue-dark); color: #fff; }
.wp-button-danger { border-color: #f0d7d9; background: #fff8f8; color: var(--red); }
.wp-button-danger:hover { border-color: #e3b5ba; background: #fff1f1; color: #a02f3a; }
.wp-link { padding: 0; border: 0; background: none; color: var(--blue); font-size: 12px; font-weight: 650; cursor: pointer; }
.wp-link:hover { text-decoration: underline; }
.wp-link:disabled { color: #b4bccb; }
.wp-link.current { color: var(--ink); text-decoration: none; }
.wp-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.wp-subsubsub { display: inline-flex; flex-wrap: wrap; gap: 3px; padding: 3px; border-radius: 10px; background: #eceff6; }
.wp-subsubsub .wp-link { padding: 6px 11px; border-radius: 8px; color: var(--muted); }
.wp-subsubsub .wp-link:hover { color: var(--ink); text-decoration: none; }
.wp-subsubsub .wp-link.current { background: #fff; box-shadow: 0 1px 3px #1f315014; color: var(--ink); }
.wp-search { display: flex; flex-wrap: wrap; gap: 8px; }
.site-view input[type="text"], .site-view input[type="email"], .site-view input[type="search"], .site-view input[type="number"], .site-view select { width: auto; min-height: 34px; padding: 0 10px; border: 1px solid #dfe5ef; border-radius: 8px; background: #fff; font-size: 12px; }
.site-view input:focus, .site-view select:focus, .site-view textarea:focus { border-color: #879dff; box-shadow: 0 0 0 3px #4667e91a; outline: none; }
.site-view label { margin: 0; color: inherit; font-size: inherit; font-weight: 500; }
.wp-table { width: 100%; overflow: hidden; border: 1px solid var(--line); border-collapse: separate; border-spacing: 0; border-radius: 12px; background: #fff; box-shadow: 0 8px 24px #1f31500a; }
.wp-table th { padding: 11px 14px; border-bottom: 1px solid var(--line); background: #fafbfd; color: #8b96a8; font-size: 10px; font-weight: 750; letter-spacing: .07em; text-align: left; text-transform: uppercase; }
.wp-table td { padding: 12px 14px; border-top: 1px solid #f0f2f6; vertical-align: top; }
.wp-table tbody tr:first-child td { border-top: 0; }
.wp-table tbody tr:hover { background: #fafbff; }
.wp-table tr.active td:first-child { box-shadow: inset 3px 0 0 var(--blue); }
.wp-table td.wp-empty { padding: 26px 14px; color: var(--muted); text-align: center; }
.row-title { color: var(--ink); font-size: 13px; font-weight: 700; text-decoration: none; }
.row-title:hover { color: var(--blue); }
.post-state { color: var(--muted); font-weight: 600; }
.row-actions { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; }
.row-actions a { color: var(--blue); font-size: 12px; font-weight: 650; text-decoration: none; }
.wp-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 12px; color: var(--muted); }
.wp-help { margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.wp-loading { display: flex; align-items: center; gap: 9px; padding: 20px 2px; color: var(--muted); }
.wp-error { padding: 14px 16px; border: 1px solid #f0d7d9; border-radius: 12px; background: #fff8f8; color: #9c333d; }
.wp-error p { margin: 0 0 10px; }
.wp-box { margin-bottom: 18px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 8px 24px #1f31500a; }
.wp-box h2 { margin: 0 0 14px; font-size: 13px; font-weight: 800; letter-spacing: -.01em; }
.wp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.wp-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.wp-stat { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: inherit; text-decoration: none; transition: .15s ease; }
.wp-stat:hover { border-color: #c9d3ec; box-shadow: 0 10px 26px #1f315014; transform: translateY(-1px); }
.wp-stat strong { color: var(--ink); font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
.wp-stat span { color: var(--muted); font-size: 11px; font-weight: 600; }
.wp-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.wp-dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; }
.wp-dl dt { color: var(--muted); }
.wp-dl dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.wp-warnings { margin: 0; padding-left: 18px; line-height: 1.8; }
.wp-badge { display: inline-block; margin: 0 4px 0 0; padding: 2px 8px; border-radius: 999px; background: #eaf8f1; color: #18734f; font-size: 10px; font-weight: 700; }
.wp-badge.warning { background: #fff4df; color: #996514; }
.sev { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 10px; font-weight: 750; white-space: nowrap; }
.sev-info { background: #f0f2f6; color: #627087; }
.sev-notice { background: #eef2ff; color: #3453ce; }
.sev-warning { background: #fff4df; color: #996514; }
.sev-critical { background: #ffeaea; color: #b4232f; }
.wp-events { margin: 0; padding: 0; list-style: none; }
.wp-events li { display: flex; align-items: baseline; gap: 10px; padding: 8px 0; border-top: 1px solid #f0f2f6; }
.wp-events li:first-child { border-top: 0; }
.wp-events-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.wp-events-when { color: var(--muted); font-size: 11px; white-space: nowrap; }
.wp-theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.wp-theme { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 8px 24px #1f31500a; }
.wp-theme.active { border-color: #b9c6fb; box-shadow: 0 0 0 3px #4667e91a; }
.wp-theme-shot { display: grid; height: 120px; place-items: center; background: linear-gradient(135deg, #eef2ff, #f7f9fd); color: #8ea0e8; font-size: 44px; font-weight: 800; }
.wp-theme-info { display: flex; flex-direction: column; gap: 5px; padding: 14px; }
.wp-theme-info > span { color: var(--muted); font-size: 11px; }
.wp-inline-form { max-width: 620px; }
.wp-field { display: grid; grid-template-columns: 210px 1fr; gap: 12px; align-items: start; padding: 10px 0; border-top: 1px solid #f3f5f9; }
.wp-box h2 + .wp-field { border-top: 0; }
.wp-field > label { padding-top: 8px; color: #48566c; font-size: 12px; font-weight: 700; }
.wp-field input[type="text"], .wp-field input[type="email"], .wp-field select { width: min(100%, 440px); }
.wp-check { display: inline-flex; align-items: center; gap: 7px; }
.wp-check input { width: auto; min-height: 0; }
.wp-settings { max-width: 920px; }
.wp-editor { display: grid; grid-template-columns: 1fr 290px; gap: 18px; align-items: start; }
.wp-editor-main { display: flex; flex-direction: column; gap: 10px; }
.wp-title-input { width: 100% !important; min-height: 46px !important; font-size: 18px !important; font-weight: 700; }
.wp-code { width: 100%; padding: 12px 14px; border: 1px solid #dfe5ef; border-radius: 12px; background: #fcfdff; color: var(--ink); font: 12px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; resize: vertical; tab-size: 4; }
.wp-editor-side .wp-field { grid-template-columns: 1fr; border-top: 0; }
.wp-tabs { display: inline-flex; gap: 3px; margin-bottom: 18px; padding: 3px; border-radius: 10px; background: #eceff6; }
.wp-tabs a { padding: 7px 14px; border-radius: 8px; color: var(--muted); font-weight: 700; text-decoration: none; }
.wp-tabs a.current { background: #fff; box-shadow: 0 1px 3px #1f315014; color: var(--ink); }
.wp-breadcrumb { color: var(--muted); font-weight: 600; overflow-wrap: anywhere; }
.wp-breadcrumb a { color: var(--blue); text-decoration: none; }
.wp-kv { width: 100%; border-collapse: collapse; }
.wp-kv th { width: 42%; padding: 9px 12px 9px 0; border-top: 1px solid #f3f5f9; color: var(--muted); font-weight: 500; text-align: left; vertical-align: top; }
.wp-kv td { padding: 9px 0; border-top: 1px solid #f3f5f9; font-weight: 600; overflow-wrap: anywhere; }
.wp-kv tr:first-child th, .wp-kv tr:first-child td { border-top: 0; }
.wp-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #e0a326; }
.wp-dot.ok { background: #22b485; }
.fm-header { margin-bottom: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.fm-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.fm-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.fm-count { margin-right: 4px; color: var(--muted); font-size: 11px; font-weight: 650; }
.fm-table td { vertical-align: middle; }
.fm-check { width: 36px; }
.fm-check input { width: 15px; height: 15px; min-height: 0; margin: 0; }
.fm-name { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.fm-name:hover { color: var(--blue); }
.fm-name.muted { color: var(--muted); }
.fm-icon { width: 20px; text-align: center; }
.fm-meta { color: var(--muted); font-size: 12px; white-space: nowrap; }
.fm-up a { color: var(--blue); font-weight: 650; text-decoration: none; }
.site-view .state-tag { font-size: 10px; }
.site-view .result-box { max-height: 240px; font-size: 11px; }
.site-view .pair-token { font-size: 12px; }
@media (max-width: 860px) {
  .wp-shell { flex-direction: column; }
  .wp-sidebar { position: static; display: flex; flex: none; align-items: center; height: auto; overflow-x: auto; padding: 8px 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .wp-sidebar nav { display: flex; }
  .wp-sidebar-site { display: none; }
  .wp-back { margin: 0 10px 0 0; white-space: nowrap; }
  .wp-menu-item { white-space: nowrap; }
  .wp-menu-separator { width: 1px; height: 24px; margin: 0 6px; }
  .wp-main { padding: 18px 16px 32px; }
  .wp-editor { grid-template-columns: 1fr; }
  .wp-field { grid-template-columns: 1fr; gap: 6px; }
  .wp-adminbar { padding: 0 14px; }
  .wp-adminbar-user, .wp-adminbar-site { display: none; }
  .wp-table { display: block; overflow-x: auto; }
}
.wp-switch { display: inline-flex; align-items: center; gap: 8px; color: #48566c; font-size: 12px; font-weight: 600; cursor: pointer; }
.wp-switch input { position: relative; width: 32px; height: 18px; min-height: 0; margin: 0; border: 0; border-radius: 999px; background: #d5dbe7; appearance: none; cursor: pointer; transition: background .15s ease; }
.wp-switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px #0003; transition: transform .15s ease; }
.wp-switch input:checked { background: var(--blue); }
.wp-switch input:checked::after { transform: translateX(14px); }
.wp-switch input:disabled { opacity: .5; cursor: wait; }
.wp-link.danger { color: var(--red); }
.dialog-warning { margin: 10px 0 0; padding: 9px 11px; border-radius: 8px; background: #fff1f1; color: #9c333d !important; font-weight: 600; }
.dialog .dialog-input { width: 100%; }
.settings-view { min-height: 0; padding-bottom: 20px; background: transparent; }
.settings-view .wp-box { max-width: 900px; }
.wp-inline { display: inline-flex; align-items: center; gap: 8px; }
.wp-inline input { width: 90px !important; }
.wp-backups { margin-bottom: 4px; }
.wp-download-list { margin: 10px 0; padding-left: 18px; line-height: 2; }
.wp-download-list a { color: var(--blue); font-weight: 700; }

/* Integrity and quarantine */
.state-badge { display: inline-block; margin: 4px 6px 0 0; padding: 2px 7px; border-radius: 999px; font-size: 9px; font-weight: 750; white-space: nowrap; }
.state-quarantined { background: #fff4df; color: #996514; }
.state-compromised { background: #ffeaea; color: #b4232f; }
.state-checkpoint { background: #e8f0ff; color: #1f4fb4; }
.backup-checkpoint { display: flex; align-items: center; gap: 2px; margin-top: 2px; font-size: 12px; color: #5b6678; }
.backup-checkpoint .state-badge { margin: 0 6px 0 0; }
.wp-state { display: inline-flex; align-items: center; }
.wp-state .state-badge { margin: 0; }
.wp-banner p { margin: 0; }
.wp-banner p + p { margin-top: 6px; }
.wp-banner a { color: inherit; font-weight: 700; }
.wp-banner-muted { border-color: var(--line, #e5e7eb); background: #f8fafc; color: #475569; }
.finding-excerpt { display: block; margin: 4px 0 8px; padding: 6px 8px; border-radius: 6px; background: #f6f7f9; font-size: 11px; white-space: pre-wrap; word-break: break-all; }
.wp-banner-danger { border-color: #f0c9cd; background: #fff5f5; color: #8f1f2a; }
.integrity-headline { margin: 0 0 6px; font-size: 14px; font-weight: 800; letter-spacing: -.01em; }
.check-option { display: block; margin: 10px 0 0; font-size: 12px; }
.fm-path { font: 11px/1.45 ui-monospace, monospace; word-break: break-all; }
.wp-warning-text { color: #996514; font-weight: 700; }
.wp-steps { margin: 10px 0 0; padding-left: 18px; font-size: 12px; line-height: 1.55; }
.wp-steps li { margin-bottom: 10px; }
.wp-live { color: #22b485; font-size: 10px; font-weight: 700; white-space: nowrap; }
.progress-steps { margin: 8px 0 4px; padding: 0; list-style: none; font-size: 12px; line-height: 1.6; }
.progress-steps li { display: flex; gap: 8px; align-items: baseline; }
.progress-steps .step-icon { width: 14px; text-align: center; font-weight: 800; }
.progress-steps .step-done { color: #18734f; }
.progress-steps .step-running { color: #3453ce; font-weight: 700; }
.progress-steps .step-pending, .progress-steps .step-skipped { color: #8290a4; }
.progress-steps .step-failed { color: #b4232f; }
.progress-steps .step-text { min-width: 0; }
.progress-steps .step-time { font-weight: 400; color: #8290a4; }
.progress-steps .step-detail { display: block; font-weight: 400; color: #5b6678; overflow-wrap: anywhere; }
.check-cards { display: grid; gap: 8px; margin: 16px 0 6px; }
.check-card { display: grid; grid-template-columns: 18px 1fr; gap: 3px 11px; align-items: start; padding: 11px 13px; border: 1px solid #dfe5ef; border-radius: 10px; background: #fff; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.check-card:hover { border-color: #b9c6ef; }
.check-card:has(input:checked) { border-color: #879dff; background: #f6f8ff; }
.check-card input { width: 16px; height: 16px; min-height: 0; margin: 1px 0 0; padding: 0; border-radius: 4px; accent-color: var(--blue); grid-row: span 2; cursor: pointer; }
.check-card strong { color: var(--ink); font-size: 12.5px; font-weight: 750; }
.check-card small { grid-column: 2; color: var(--muted); font-size: 11px; line-height: 1.45; }
.check-card.disabled { cursor: not-allowed; opacity: .6; }
.check-card.disabled input { cursor: not-allowed; }
.check-cards > .check-card { margin: 0; font-weight: 400; }
.check-card small { font-weight: 450; }
