:root {
  --soh-sidebar: 15.5rem;
  --soh-ink: #1c2430;
  --soh-accent: #0b6e4f;
  --soh-bg: #f3f5f8;
  --soh-line: #e6e8ee;
}
html { font-size: 16px; }
@media (min-width: 2000px) { html { font-size: 18px; } }
@media (min-width: 3200px) { html { font-size: 20px; } }
body {
  background: var(--soh-bg);
  color: var(--soh-ink);
  min-height: 100vh;
}
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--soh-sidebar);
  background: #fff;
  color: var(--soh-ink);
  border-right: 1px solid var(--soh-line);
  flex-shrink: 0;
}
.sidebar a { color: #3c4654; text-decoration: none; display: flex; align-items: center; gap: .65rem; padding: .62rem .9rem; border-radius: .55rem; font-weight: 500; }
.nav-icon { flex: 0 0 20px; }
.brand { display: flex; align-items: center; gap: .7rem; font-weight: 700; letter-spacing: .01em; padding: 1.15rem 1rem .7rem; color: #14213d; }
.brand-mark { display: none; width: 2rem; height: 2rem; border-radius: .55rem; background: #e7f6ee; color: var(--soh-accent); align-items: center; justify-content: center; flex: 0 0 2rem; }
.brand-logo { height: 2rem; width: auto; max-width: 8.5rem; object-fit: contain; flex: 0 0 auto; }
.brand-preview img { height: 2.5rem; width: auto; max-width: 10rem; object-fit: contain; background: #f4f6f8; border: 1px solid var(--soh-line); border-radius: 8px; padding: .25rem; }
.sidebar a:hover { background: #f4f6f8; color: #111; }
.sidebar a.active { background: #e7f6ee; color: var(--soh-accent); font-weight: 600; }
.brand small { display: block; font-weight: 500; color: #6b7280; margin-top: .15rem; }
.content { flex: 1; min-width: 0; }
.topbar { background: #fff; border-bottom: 1px solid var(--soh-line); flex-wrap: wrap; row-gap: .25rem; }
.topbar .text-truncate { min-width: 0; }
.card, .panel {
  background: #fff;
  border: 1px solid var(--soh-line);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(20, 33, 61, .04);
}
.panel { overflow: hidden; }
.card-header, .panel-head {
  background: #fff;
  border-bottom: 1px solid #eef0f3;
  font-weight: 600;
  padding: .85rem 1rem;
}
.card-header:first-child { border-radius: 14px 14px 0 0; }
.board {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-8 { grid-column: span 8; }
.stat-card { padding: 1rem 1.1rem 1.05rem; }
.stat-label { color: #667085; font-size: .82rem; display: flex; align-items: center; gap: .45rem; }
.stat-value { font-size: 1.85rem; font-weight: 700; line-height: 1.2; margin-top: .35rem; }
.dot { width: .55rem; height: .55rem; border-radius: 50%; display: inline-block; }
.dot-ok { background: #0b6e4f; }
.dot-warn { background: #b86e00; }
.dot-bad { background: #9b2335; }
.badge-free { background: #e7f6ee; color: #0b6e4f; font-weight: 600; }
.badge-third { background: #eef0f3; color: #4b5563; font-weight: 600; }
.badge-active { background: #e7f6ee; color: #0b6e4f; font-weight: 600; }
.badge-inactive { background: #f0f0f1; color: #646970; font-weight: 600; }
.badge-pdf { background: #fde8ec; color: #9b2335; font-weight: 600; }
.badge-image { background: #efeaff; color: #4c35c9; font-weight: 600; }
.badge-zip { background: #fff4e5; color: #8a5a00; font-weight: 600; }
.badge-doc { background: #e7f1fb; color: #1d4f91; font-weight: 600; }
.badge-kind-unknown { background: #f0f0f1; color: #646970; font-weight: 600; }
.badge-size { background: #1f4b99; color: #fff; font-weight: 600; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; padding: 0; }
.icon-btn svg { width: 1.05rem; height: 1.05rem; }
.check-gear { display: inline-flex; align-items: center; gap: .3rem; margin-right: .4rem; color: var(--soh-accent); font-size: .82rem; font-weight: 600; }
.check-gear[hidden] { display: none !important; }
.gear-icon { width: 1rem; height: 1rem; animation: soh-spin 1.1s linear infinite; }
.gear-icon-lg { width: 2.6rem; height: 2.6rem; color: var(--soh-accent); }
.check-progress {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(243, 245, 248, .86);
}
.check-progress[hidden] { display: none !important; }
.check-progress-card {
  background: #fff;
  border: 1px solid var(--soh-line);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(20, 33, 61, .12);
  padding: 1.6rem 2rem;
  text-align: center;
  min-width: 16rem;
}
@keyframes soh-spin { to { transform: rotate(360deg); } }
.badge-healthy { background: #0b6e4f; }
.badge-warning { background: #b86e00; }
.badge-critical { background: #9b2335; }
.badge-unknown, .badge-paused { background: #5c6770; }
.badge-published { background: #efeaff; color: #4c35c9; font-weight: 650; }
.badge-draft { background: #fff4e5; color: #8a5a00; font-weight: 650; }
table.stack td, table.stack th { vertical-align: middle; }
.connection-table th { width: 11rem; font-weight: 600; color: var(--soh-ink); }
.pair-card { background: #fff; border: 1px solid #e6e8f0; border-radius: 16px; box-shadow: 0 8px 24px rgba(55, 48, 120, .05); overflow: hidden; margin-bottom: 1rem; }
.pair-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; padding: 1rem 1.1rem .9rem; background: linear-gradient(180deg, #f6f3ff 0%, #fff 78%); border-bottom: 1px solid #f0f1f6; }
.pair-head h2 { margin: 0 0 .25rem; font-size: 1.2rem; letter-spacing: -.02em; }
.pair-head p { margin: 0; color: #667085; font-size: .88rem; max-width: 40rem; }
.pair-expiry { flex: none; background: #efeaff; color: #4c35c9; border-radius: 999px; padding: .22rem .65rem; font-size: .74rem; font-weight: 700; }
.pair-fields { display: grid; gap: .5rem; padding: .85rem 1.1rem .35rem; }
.pair-field { display: grid; grid-template-columns: 7rem minmax(0, 1fr) auto; gap: .45rem; align-items: center; }
.pair-field > span { color: #667085; font-size: .78rem; font-weight: 650; }
.pair-field code { display: block; min-width: 0; background: #f7f8fb; border: 1px solid #e6e8f0; border-radius: 10px; padding: .42rem .65rem; font-size: .84rem; color: #1d2327; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pair-field-actions { display: flex; gap: .35rem; }
.pair-alt { margin: .35rem 1.1rem .7rem; color: #667085; font-size: .8rem; }
.pair-preview { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); margin: 0 1.1rem 1rem; border: 1px solid #eef0f3; border-radius: 12px; overflow: hidden; }
.pair-preview dt, .pair-preview dd { margin: 0; padding: .42rem .75rem; font-size: .84rem; border-top: 1px solid #f3f4f7; }
.pair-preview dt:first-of-type, .pair-preview dd:first-of-type { border-top: 0; }
.pair-preview dt { color: #667085; font-weight: 650; background: #fafbfc; }
.pair-preview dd { overflow-wrap: anywhere; }
.pair-parent { display: flex; align-items: center; justify-content: space-between; gap: .45rem; min-width: 0; }
.pair-parent code { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: transparent; border: 0; padding: 0; color: inherit; font-size: inherit; }
.pair-warn { margin: .75rem 1.1rem 0; padding: .65rem .75rem; border-radius: 10px; background: #fff4e5; color: #8a5a00; font-size: .84rem; }
.pair-fail { margin: .35rem 1.1rem 0; padding: .55rem .7rem; border-radius: 10px; background: #fde8ec; color: #9b2335; font-size: .84rem; }
.pair-connect[aria-disabled="true"] { pointer-events: none; opacity: .65; }
.pair-regen { display: flex; align-items: center; gap: .6rem; padding: 0 1.1rem 1rem; }
.pair-regen span { color: #667085; font-size: .78rem; }
.pair-nav { display: flex; gap: .45rem; }
@media (max-width: 720px) {
  .pair-head { flex-direction: column; }
  .pair-field { grid-template-columns: 1fr; gap: .2rem; }
}
.connection-snippet {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .85rem;
  white-space: pre;
}
.site-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
  justify-items: stretch;
}
.site-board > .wf-card,
.site-board > .settings-slot { grid-column: span 1; width: 100%; max-width: none; min-width: 0; justify-self: stretch; }
.site-board > .wf-card.wide { grid-column: span 2; }
.site-board > .wf-card.full { grid-column: span 3; }
.site-board > .wf-card[data-fit="3"],
.site-board > .settings-slot[data-fit="3"] { grid-column: span 1; }
.site-board > .wf-card[data-fit="2"],
.site-board > .settings-slot[data-fit="2"] { grid-column: span 2; }
.site-board > .wf-card[data-fit="1"],
.site-board > .settings-slot[data-fit="1"] { grid-column: span 3; }
.wf-card {
  background: #fff;
  border: 1px solid #e6e8ee;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(20, 33, 61, .04);
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.site-board > .wf-card[data-card="summary"] { background: #e7f0ff; }
.site-board > .wf-card[data-card="notes"] { background: #f3e8ff; }
.site-board > .wf-card[data-card="status"] { background: #ffe8e4; }
.site-board > .wf-card[data-card="health-screen"] { background: #e5f8ee; }
.site-board > .wf-card[data-card="score"] { background: #fff1d6; }
.site-board > .wf-card[data-card="media"] { background: #e3f7f7; }
.site-board > .wf-card[data-card="server"] { background: #eceeff; }
.site-board > .wf-card[data-card="directories"] { background: #e7f6d8; }
.site-board > .wf-card[data-card="database"] { background: #fde8f4; }
.site-board > .wf-card[data-card="large-files"] { background: #ffe9d6; }
.site-board > .wf-card[data-card="plugins"] { background: #e6f4ea; }
.site-board > .wf-card[data-card="themes"] { background: #efe7ff; }
.settings-board > .settings-card[data-card="site"] { background: #eaf3ff; }
.settings-board > .settings-card[data-card="datetime"] { background: #fff4e8; }
.settings-board > .settings-card[data-card="activity"] { background: #f3eefc; }
.settings-board > .settings-card[data-card="roles"] { background: #e8f8f2; }
.settings-board > .settings-card[data-card="access"] { background: #fff0f3; }
.settings-board > .settings-card[data-card="sites"] { background: #f4f7e8; }
.site-board .wf-kv { border-top-color: rgba(20, 33, 61, .08); }
.wf-head .card-span { margin-left: auto; }
.wf-head .note-edit-btn { margin-left: auto; border: 0; background: transparent; color: var(--soh-accent); font-size: .82rem; font-weight: 600; padding: 0; }
.wf-head .card-span ~ .note-edit-btn { margin-left: .35rem; }
.wf-head .card-span ~ .wf-pill,
.wf-head .note-edit-btn ~ .wf-pill { margin-left: .45rem; }
.note-edit { display: grid; gap: .45rem; }
.note-edit[hidden] { display: none; }
.note-edit textarea { width: 100%; border: 1px solid #dcdcde; border-radius: 8px; padding: .5rem .65rem; min-height: 7rem; resize: vertical; }
.note-actions { display: flex; gap: .4rem; }
.wf-note[data-note-view] { cursor: text; }
.wf-card > .card { border: 0; box-shadow: none; border-radius: 0; margin: 0; }
.wf-head {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .95rem 1.05rem .35rem;
  font-weight: 600;
  font-size: .98rem;
}
.card-handle {
  border: 0;
  background: transparent;
  color: #98a2b3;
  padding: 0;
  line-height: 0;
  cursor: grab;
  margin-right: .15rem;
}
.card-handle:active { cursor: grabbing; }
.wf-card.is-dragging { opacity: .55; }
.wf-card.is-drop { outline: 2px solid var(--soh-accent); outline-offset: -2px; }
.wf-icon { width: 1.15rem; height: 1.15rem; color: #5c6775; flex: 0 0 auto; }
.wf-pill {
  margin-left: auto;
  border-radius: 999px;
  padding: .12rem .55rem;
  font-size: .72rem;
  font-weight: 600;
  text-transform: capitalize;
  background: #eef1f4;
  color: #4b5563;
}
.pill-healthy, .pill-ok { background: #e7f6ee; color: #0b6e4f; }
.pill-warning { background: #fff4e5; color: #8a5a00; }
.pill-critical { background: #fde8ec; color: #9b2335; }
.pill-paused, .pill-unknown, .pill-muted { background: #eef1f4; color: #5c6770; }
.wf-body { padding: .35rem 1.05rem 1.05rem; }
.wf-card[data-card="directories"] .wf-kv { padding: .28rem 0; font-size: .84rem; }
.wf-kicker { display: flex; align-items: center; gap: .4rem; color: #3c4654; font-weight: 600; margin-bottom: .7rem; }
.wf-chip { background: #f3f5f8; color: #5c6770; border-radius: 999px; padding: .05rem .45rem; font-size: .72rem; font-weight: 600; text-transform: capitalize; }
.dot-muted { background: #98a2b3; }
.wf-hero-title { font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; }
.wf-hero p, .wf-empty p { color: #667085; font-size: .86rem; margin: .25rem 0 0; }
.wf-hero.is-off .wf-hero-title { color: #9b2335; }
.wf-hero.is-ok .wf-hero-title { color: #0b6e4f; }
.wf-metrics { display: flex; gap: 1.1rem; margin: .9rem 0 .2rem; }
.wf-metrics strong { display: block; font-size: 1.25rem; line-height: 1.15; }
.wf-metrics span { color: #667085; font-size: .75rem; }
.wf-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .9rem; }
.site-board .btn { border-radius: 999px; }
.wf-empty { text-align: center; color: #667085; padding: 1.4rem .4rem 1rem; }
.wf-empty svg { width: 2.4rem; height: 2.4rem; color: #98a2b3; margin-bottom: .45rem; }
.wf-empty.compact { padding: .6rem 0 0; }
.wf-note { white-space: pre-wrap; margin: .4rem 0 0; }
.wf-kv { display: flex; justify-content: space-between; gap: .8rem; padding: .42rem 0; border-top: 1px solid #f1f3f6; font-size: .9rem; }
.wf-kv span { color: #667085; flex: 0 0 auto; }
.wf-kv strong { font-weight: 600; text-align: right; overflow-wrap: break-word; max-width: 68%; }
.wf-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: .8rem; }
.wf-sub { font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #667085; margin-bottom: .35rem; }
.wf-issue { padding: .45rem 0; border-top: 1px solid #f1f3f6; }
.wf-issue strong { display: block; }
.wf-issue span { display: block; color: #667085; font-size: .82rem; }
.wf-issue.is-bad strong { color: #9b2335; }
.wf-issue-list { margin: .8rem 0 0; padding-left: 1.1rem; color: #8a5a00; font-size: .86rem; }
.wf-center { text-align: center; }
.site-link { display: inline-block; margin: .35rem 0 .15rem; color: var(--soh-accent); font-size: .84rem; word-break: break-all; }
.summary-connection { margin-top: .7rem; }
.score-math { margin-top: .85rem; }
.score-key { margin: .7rem 0 0; color: #667085; font-size: .78rem; line-height: 1.45; }
.score-ring {
  width: 7.4rem;
  height: 7.4rem;
  margin: .8rem auto .6rem;
  border-radius: 50%;
  border: 8px solid #e7f6ee;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  font-weight: 700;
}
.score-warning { border-color: #f3d7a6; color: #8a5a00; }
.score-critical { border-color: #f3c2cb; color: #9b2335; }
.score-unknown, .score-paused { border-color: #e6e8ee; color: #5c6770; }
.wf-alert { padding: .9rem 1.05rem; color: #9b2335; background: #fff6f7; }
.wf-card .table { --bs-table-bg: transparent; }
.wf-card .table thead th {
  font-size: .72rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #667085;
  font-weight: 600;
  border-bottom-color: #eef0f3;
  background: transparent;
}
.wf-card .table td, .wf-card .table th { padding: .35rem .75rem; line-height: 1.3; }
.wf-card .table .badge { font-size: .68rem; padding: .15rem .4rem; }
.plugin-name, .plugin-name a { font-size: .82rem; }
.dir-path { font-size: .82rem; word-break: break-all; }
.plugin-scroll { max-height: 500px; overflow: auto; }
@media (max-width: 1199.98px) {
  .span-8, .span-4 { grid-column: span 12; }
}
@media (max-width: 767.98px) {
  .site-board { grid-template-columns: 1fr; }
  .site-board > .wf-card,
  .site-board > .wf-card[data-fit],
  .site-board > .settings-slot { grid-column: auto; }
  .wf-head .card-span { display: none; }
}
@media (max-width: 991.98px) {
  .app-shell { display: block; }
  .sidebar { width: 100%; border-right: 0; border-bottom: 1px solid var(--soh-line); }
  .sidebar nav { display: flex; flex-wrap: wrap; gap: .25rem; padding-bottom: .75rem; }
  .span-3 { grid-column: span 6; }
  .wf-split { grid-template-columns: 1fr; }
}
@media (max-width: 575.98px) {
  .span-3 { grid-column: span 12; }
}
@media (max-width: 767.98px) {
  .row-actions { opacity: 1; }
  table.stack thead { display: none; }
  table.stack tr { display: block; background: #fff; margin-bottom: .75rem; border: 1px solid #e6eaee; border-radius: .5rem; padding: .35rem .25rem; }
  table.stack td { display: flex; justify-content: space-between; gap: 1rem; border: 0; padding: .35rem .6rem; }
  table.stack td::before { content: attr(data-label); font-weight: 600; color: #5c6770; }
}
@media (min-width: 1600px) {
  .content-wrap { max-width: 1500px; }
}
@media (min-width: 2400px) {
  .content-wrap { max-width: 1800px; }
}
html.sidebar-collapsed .sidebar { width: 4.6rem; overflow: visible; }
html.sidebar-collapsed .brand { justify-content: center; padding-left: .55rem; padding-right: .55rem; }
html.sidebar-collapsed .brand-text { display: none; }
html.sidebar-collapsed .brand-mark { display: flex; }
html.sidebar-collapsed .brand-logo { max-width: 2rem; }
html.sidebar-collapsed .sidebar nav { padding-left: .35rem; padding-right: .35rem; }
html.sidebar-collapsed .sidebar a { justify-content: center; position: relative; padding-left: .45rem; padding-right: .45rem; }
html.sidebar-collapsed .nav-label {
  position: absolute;
  left: calc(100% + .35rem);
  top: 50%;
  transform: translateY(-50%);
  background: #1d2327;
  color: #fff;
  border-radius: 4px;
  padding: .28rem .55rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  z-index: 30;
}
html.sidebar-collapsed .sidebar a:hover .nav-label,
html.sidebar-collapsed .sidebar a:focus .nav-label { opacity: 1; }
.sidebar { transition: width .18s ease; }
.sidebar-toggle { border: 0; background: transparent; color: #3c4654; padding: .15rem; line-height: 0; }
.topbar-title { display: flex; align-items: center; gap: .65rem; min-width: 0; flex: 1 1 16rem; }
.topbar-title .min-w-0 { min-width: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; color: #667085; font-size: .78rem; font-weight: 500; }
.crumbs a { color: #667085; text-decoration: none; }
.crumbs a:hover { color: var(--soh-accent); }
.crumb-sep { color: #98a2b3; }
.list-screen { display: grid; gap: .85rem; }
.list-toolbar { display: flex; flex-wrap: nowrap; gap: .35rem .45rem; align-items: center; margin: 0; background: #fff; border: 1px solid var(--soh-line); border-radius: 14px; padding: .35rem .5rem; overflow-x: auto; font-size: .78rem; }
.list-views { display: flex; flex-wrap: nowrap; gap: .05rem; list-style: none; padding: 0; margin: 0; white-space: nowrap; }
.list-views a { color: #3c4654; text-decoration: none; border-radius: 999px; padding: .12rem .4rem; font-size: .78rem; }
.list-views .is-current a { background: #e7f6ee; color: #0b6e4f; font-weight: 600; }
.list-views .count { color: #667085; font-weight: 500; }
.list-filters { display: flex; flex-wrap: nowrap; gap: .3rem; margin-left: auto; align-items: center; }
.list-filters .form-control, .list-filters .form-select { width: 8.4rem; min-width: 6.5rem; font-size: .78rem; padding: .18rem .4rem; height: 1.8rem; }
.list-toolbar .btn { font-size: .78rem; padding: .18rem .6rem; white-space: nowrap; height: 1.8rem; line-height: 1.2; }
.list-toolbar .metabox-note { white-space: nowrap; font-size: .74rem; margin: 0; }
@media (max-width: 782px) {
  .list-toolbar { flex-wrap: wrap; align-items: stretch; overflow: visible; gap: .55rem; }
  .list-views { flex-wrap: wrap; width: 100%; white-space: normal; }
  .list-filters { flex-wrap: wrap; margin-left: 0; width: 100%; }
  .list-filters .form-control,
  .list-filters .form-select,
  .list-toolbar > .btn,
  .list-filters .btn { width: 100%; min-width: 0; max-width: none; height: 2.1rem; }
  .list-toolbar .metabox-note { white-space: normal; width: 100%; }
}
.panel thead th { font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; color: #667085; font-weight: 600; background: #fafbfc; border-bottom-color: #eef0f3; }
.panel tbody tr:hover { background: #f7fbf9; }
.row-title { font-weight: 650; color: #14213d; text-decoration: none; }
.row-title:hover { color: var(--soh-accent); }
.row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .65rem; font-size: .78rem; min-height: 1.2rem; opacity: 0; }
.panel tbody tr:hover .row-actions, .panel tbody tr:focus-within .row-actions { opacity: 1; }
.row-actions a, .row-actions button { color: var(--soh-accent); background: none; border: 0; padding: 0; font-size: inherit; text-decoration: none; }
.row-actions button { color: #9b2335; }
.row-actions form { margin: 0; }
.editor-screen-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .85rem; }
.editor-screen-head h1 { margin: 0; font-size: 1.7rem; letter-spacing: -.03em; font-weight: 750; }
.editor-icon { width: 2.3rem; height: 2.3rem; border-radius: 999px; border: 1px solid #e4e7ee; background: #fff; color: #5c6775; display: grid; place-items: center; }
.editor-icon svg { width: 1.05rem; height: 1.05rem; }
.wp-editor { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: 1rem; align-items: start; }
.wp-editor-main { display: grid; gap: .75rem; min-width: 0; }
.wp-title-wrap { display: flex; align-items: center; gap: .5rem; background: #fff; border: 1px solid #e6e8f0; border-radius: 14px; padding: .15rem .85rem .15rem 1rem; box-shadow: 0 1px 2px rgba(20, 33, 61, .04); }
.wp-title { width: 100%; border: 0; font-size: 1.2rem; font-weight: 700; letter-spacing: -.02em; padding: .7rem 0; outline: none; background: transparent; }
.wp-title-pen { width: 1.1rem; height: 1.1rem; color: #98a2b3; flex: none; }
.wp-editor-card { background: #fff; border: 1px solid #e6e8f0; border-radius: 16px; box-shadow: 0 8px 24px rgba(55, 48, 120, .05); overflow: hidden; }
.wp-chrome { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .55rem .75rem .2rem; }
.wp-add-media { display: inline-flex; align-items: center; gap: .35rem; border: 1px solid #e4e7ee; background: #fff; color: #3c4654; border-radius: 999px; padding: .28rem .75rem; font-size: .84rem; font-weight: 600; }
.wp-add-media svg { width: 1rem; height: 1rem; }
.wp-mode { display: flex; gap: .85rem; padding: 0; }
.wp-mode button { border: 0; background: transparent; color: #98a2b3; font-weight: 650; padding: 0 0 .35rem; border-bottom: 2px solid transparent; }
.wp-mode button.is-on { color: #4c35c9; border-bottom-color: #6d5efc; }
.wp-editor.is-text .wp-toolbar, .wp-editor.is-text .wp-add-media { opacity: .45; pointer-events: none; }
.wp-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .05rem; padding: .25rem .55rem; border-top: 1px solid #f0f1f6; border-bottom: 1px solid #f0f1f6; background: #fbfbfe; }
.wp-split { width: 1px; height: 1.15rem; background: #e6e8f0; margin: 0 .2rem; }
.wp-toolbar select { border: 0; background: transparent; font-weight: 600; color: #1d2327; padding: .2rem .15rem; font-size: .86rem; }
.wp-toolbar button { width: 1.85rem; height: 1.85rem; border: 0; background: transparent; border-radius: 8px; color: #3c4654; display: grid; place-items: center; }
.wp-toolbar button svg { width: .95rem; height: .95rem; }
.wp-toolbar button em { font-style: italic; font-family: Georgia, serif; font-weight: 700; }
.wp-toolbar .wp-u { text-decoration: underline; font-weight: 700; }
.wp-toolbar .wp-s { text-decoration: line-through; font-weight: 700; }
.wp-canvas img, .page-body img { max-width: 100%; height: auto; }
.wp-canvas [style*="text-align:center"], .page-body [style*="text-align:center"] { text-align: center; }
.wp-canvas [style*="text-align:right"], .page-body [style*="text-align:right"] { text-align: right; }
.wp-toolbar button:hover, .wp-toolbar button:focus { background: #efeaff; color: #4c35c9; }
.wp-canvas, .wp-source { min-height: 24rem; padding: 1.15rem 1.25rem 2rem; outline: none; font-size: 1.02rem; line-height: 1.65; }
.wp-source { width: 100%; border: 0; resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86rem; }
.wp-canvas:empty:before { content: attr(data-placeholder); color: #98a2b3; }
.wp-canvas h2, .wp-canvas h3 { margin: .2rem 0 .7rem; letter-spacing: -.02em; }
.wp-canvas p { margin: 0 0 .9rem; }
.pub-row { display: flex; align-items: center; gap: .55rem; padding: .42rem 0; font-size: .9rem; }
.pub-row svg { width: 1.05rem; height: 1.05rem; color: #667085; flex: none; }
.pub-row span { flex: 1; }
.pub-row strong { font-weight: 700; }
.pub-edit { border: 0; background: transparent; color: #5b4bdb; font-weight: 650; padding: 0; }
.pub-panel { padding: 0 0 .45rem 1.6rem; }
.pub-actions { display: flex; justify-content: flex-end; gap: .45rem; margin-top: .7rem; }
.btn-save { border-radius: 999px; background: #fff; border: 1px solid #d9dce6; color: #3c4654; }
.btn-publish { border-radius: 999px; background: #5b4bdb; border: 0; color: #fff; }
.btn-publish:hover { background: #4738c4; color: #fff; }
.metabox { background: #fff; border: 1px solid var(--soh-line); border-radius: 14px; padding: .85rem .95rem 1rem; box-shadow: 0 1px 2px rgba(20, 33, 61, .04); }
.metabox-head { display: flex; align-items: center; gap: .35rem; margin-bottom: .7rem; padding-bottom: .45rem; border-bottom: 1px solid #eef0f3; }
.metabox-head h2 { font-size: .95rem; margin: 0; flex: 1; }
.metabox h3 { font-size: .82rem; margin: .4rem 0 .7rem; padding-bottom: .45rem; border-bottom: 1px solid #eef0f3; }
.metabox label { display: block; font-size: .78rem; color: #667085; margin-bottom: .2rem; }
.metabox-note { color: #667085; font-size: .82rem; }
.wp-editor-side { display: grid; gap: .75rem; }
.editor-slot { border: 2px dashed #0b6e4f; border-radius: 14px; min-height: 3.2rem; background: rgba(11, 110, 79, .06); }
.menu-screen { display: grid; grid-template-columns: 20rem minmax(0, 1fr); gap: 1rem; align-items: start; }
.pick-list { list-style: none; padding: 0; margin: 0 0 1rem; max-height: 16rem; overflow: auto; border: 1px solid #eef0f3; border-radius: 6px; }
.pick-list li + li { border-top: 1px solid #f4f5f7; }
.pick-list label { display: flex; gap: .5rem; align-items: center; padding: .45rem .65rem; margin: 0; cursor: pointer; }
.pick-list small { margin-left: auto; color: #667085; }
.menu-tree { list-style: none; margin: 0; padding: 0; }
.menu-node { display: flex; gap: .35rem; align-items: flex-start; border: 1px solid #e6e8f0; border-radius: 12px; background: #fff; margin-bottom: .4rem; padding: .2rem .45rem; box-shadow: 0 1px 2px rgba(20, 33, 61, .03); }
.menu-node.is-dragging { opacity: .45; }
.menu-handle { border: 0; background: transparent; color: #667085; padding: .45rem .2rem; cursor: grab; line-height: 0; }
.menu-details { flex: 1; min-width: 0; }
.menu-screen details > summary { list-style: none; display: flex; align-items: center; gap: .4rem; cursor: pointer; font-weight: 650; padding: .35rem .1rem; }
.menu-screen details > summary::-webkit-details-marker { display: none; }
.menu-screen details > summary::after { content: ""; width: .42rem; height: .42rem; margin-left: auto; border-right: 2px solid #5b4bdb; border-bottom: 2px solid #5b4bdb; transform: rotate(45deg); flex: none; }
.menu-screen details[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.menu-details summary small { font-weight: 500; color: #667085; margin-left: .35rem; }
.menu-details form { display: grid; gap: .35rem; padding: .35rem .2rem .5rem; }
.menu-details input, .menu-details select { border: 1px solid #dcdcde; border-radius: 4px; padding: .35rem .5rem; background: #fff; }
.menu-item-actions { display: flex; gap: .5rem; align-items: center; }
.settings-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; align-items: stretch; justify-items: stretch; }
.settings-card, .settings-slot { grid-column: span 1; width: 100%; max-width: none; min-width: 0; justify-self: stretch; }
.settings-card[data-fit="2"], .settings-slot[data-fit="2"] { grid-column: span 2; }
.settings-card[data-fit="1"], .settings-slot[data-fit="1"] { grid-column: span 3; }
.settings-slot { border: 2px dashed #0b6e4f; border-radius: 14px; min-height: 5.5rem; background: rgba(11, 110, 79, .06); }
.card-span { display: inline-flex; border: 1px solid #e6e8ee; border-radius: 999px; overflow: hidden; flex: none; }
.card-span-btn { border: 0; background: #fff; color: #667085; font-size: .72rem; font-weight: 700; width: 1.4rem; height: 1.4rem; padding: 0; line-height: 1; }
.card-span-btn.is-on { background: #0b6e4f; color: #fff; }
@media (max-width: 767.98px) {
  .settings-board { grid-template-columns: 1fr; }
  .settings-card,
  .settings-card[data-fit],
  .settings-slot { grid-column: auto; }
  .card-span { display: none; }
}
.settings-card { background: #fff; border: 1px solid var(--soh-line); border-radius: 14px; box-shadow: 0 1px 2px rgba(20, 33, 61, .04); }
.settings-card.is-dragging { opacity: .55; }
.settings-card-head { display: flex; align-items: center; gap: .45rem; padding: .75rem .9rem; }
.settings-card-head h2 { font-size: 1rem; margin: 0; flex: 1; }
.settings-toggle { border: 0; background: transparent; color: var(--soh-accent); font-size: .82rem; font-weight: 600; }
.settings-card-body { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .24s ease; }
.settings-card.is-shut .settings-card-body { grid-template-rows: 0fr; }
.settings-card-inner { overflow: hidden; padding: 0 1rem 1rem; }
.settings-card.is-shut .settings-card-inner { padding-top: 0; padding-bottom: 0; }
.role-note { margin: 0 0 .6rem; color: #667085; font-size: .78rem; line-height: 1.35; }
.role-add { display: flex; gap: .4rem; align-items: center; }
.role-add .form-control { height: 2rem; font-size: .875rem; }
.role-list { margin-top: .55rem; border: 1px solid #e6e8ee; border-radius: 8px; overflow: hidden; background: #fff; }
.role-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: .35rem .45rem; align-items: center; padding: .35rem .45rem; border-top: 1px solid #f2f4f7; margin: 0; }
.role-row:first-child { border-top: 0; }
.role-row .form-control { height: 1.85rem; padding: .1rem .45rem; font-size: .875rem; min-width: 0; }
.role-row .form-control[readonly] { background: #f8faf9; }
.role-meta, .role-lock { color: #667085; font-size: .72rem; white-space: nowrap; }
.role-lock { background: #eef6f2; color: #0b6e4f; border-radius: 999px; padding: .12rem .45rem; font-weight: 600; }
.role-row-actions { display: flex; align-items: center; gap: .15rem; }
.role-row-actions .btn { padding: .05rem .4rem; font-size: .75rem; line-height: 1.4; }
.menu-position { display: flex; flex-wrap: wrap; gap: .35rem .8rem; }
.menu-position a { color: #3c4654; text-decoration: none; }
.menu-top { margin-right: auto; }
.menu-footer { margin-top: 1.5rem; padding-top: .8rem; border-top: 1px solid var(--soh-line); }
.menu-item { border: 1px solid #e6e8ee; border-radius: 8px; padding: .75rem; margin-bottom: .65rem; background: #fafbfc; }
.menu-item-main { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.menu-item-main input, .menu-item-meta input, .menu-item-meta select { border: 1px solid #dcdcde; border-radius: 4px; padding: .35rem .5rem; background: #fff; }
.menu-item-meta { display: flex; flex-wrap: wrap; gap: .5rem; align-items: end; margin-top: .55rem; }
.menu-item-meta label { margin: 0; }
.menu-item-meta select { min-width: 14rem; }
@media (max-width: 991.98px) {
  html.sidebar-collapsed .sidebar { width: 100%; }
  html.sidebar-collapsed .sidebar nav { display: flex; flex-wrap: wrap; }
  html.sidebar-collapsed .brand-mark { display: none; }
  html.sidebar-collapsed .brand-text { display: block; }
  .wp-editor, .menu-screen { grid-template-columns: 1fr; }
  .list-filters { margin-left: 0; }
  .menu-item-main { grid-template-columns: 1fr; }
  .topbar-title { flex-basis: 100%; }
}
