:root {
  --wp-admin-theme-color: #2271b1;
  --wp-admin-theme-color-darker-10: #135e96;
  --wp-admin-theme-color-darker-20: #0a4b78;
  --wp-admin-sidebar: #1d2327;
  --wp-admin-sidebar-hover: #2c3338;
  --wp-admin-sidebar-text: #f0f0f1;
  --wp-admin-bg: #f0f0f1;
  --wp-border: #c3c4c7;
  --wp-text: #1d2327;
  --wp-muted: #646970;
  --blue: var(--wp-admin-theme-color);
  --navy: var(--wp-admin-sidebar);
  --bg: var(--wp-admin-bg);
  --surface: #fff;
  --line: #dcdcde;
  --muted: var(--wp-muted);
  --shadow: 0 1px 1px rgba(0, 0, 0, .04);
  --radius: 2px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

html { background: var(--wp-admin-bg); }
body {
  color: var(--wp-text);
  background: var(--wp-admin-bg);
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.4;
}

a { color: #2271b1; }
a:hover { color: #135e96; }

.login-wrap {
  background: #f0f0f1;
  align-items: start;
  padding-top: 8vh;
}
.login-card {
  width: min(360px, 100%);
  padding: 26px 24px 30px;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .13);
}
.login-card .brand-row { display: block; text-align: center; }
.login-card .mark {
  width: 84px;
  height: 84px;
  margin: 0 auto 14px;
  border: 0;
  box-shadow: none;
}
.login-card h1 { font-size: 20px; font-weight: 600; }
.login-card p { font-size: 13px; }
.login-card .field label { color: #1d2327; font-size: 14px; font-weight: 400; }
.login-card .field input { min-height: 42px; font-size: 20px; }

.shell { grid-template-columns: 160px minmax(0, 1fr); }
.side {
  z-index: 20;
  border: 0;
  background: var(--wp-admin-sidebar);
  color: var(--wp-admin-sidebar-text);
  backdrop-filter: none;
}
.side-brand {
  padding: 15px 12px;
  border-color: rgba(255, 255, 255, .12);
  background: #11181d;
}
.side-title { color: #fff; font-size: 13px; }
.side-sub { color: #a7aaad; font-size: 11px; }
.nav-label, .nav-group-title { display: none; }
.nav-btn,
.nav-btn.sub {
  width: 100%;
  min-height: 34px;
  grid-template-columns: 24px 1fr auto;
  gap: 7px;
  margin: 0;
  padding: 7px 10px;
  border: 0;
  border-radius: 0;
  color: #f0f0f1;
  font-size: 13px;
  font-weight: 400;
}
.nav-btn.sub { padding-left: 32px; color: #c3c4c7; }
.nav-btn:hover,
.nav-btn.active {
  color: #72aee6;
  background: var(--wp-admin-sidebar-hover);
  border: 0;
}
.nav-btn.active { box-shadow: inset 4px 0 0 #72aee6; }
.nav-btn .ui-icon { color: #a7aaad; }
.nav-btn:hover .ui-icon,
.nav-btn.active .ui-icon { color: #72aee6; }
.nav-count {
  height: 18px;
  min-width: 18px;
  padding: 0 5px;
  border-radius: 10px;
  color: #fff;
  background: #d63638;
  font-size: 10px;
}
.side-foot {
  padding: 12px 10px;
  border-color: rgba(255, 255, 255, .12);
  color: #a7aaad;
  font-size: 11px;
}

.top {
  min-height: 36px;
  grid-template-columns: auto minmax(220px, 520px) auto auto auto auto;
  gap: 8px;
  padding: 0 12px;
  border: 0;
  background: #1d2327;
  color: #f0f0f1;
  backdrop-filter: none;
}
.top .crumb { color: #f0f0f1; font-size: 13px; font-weight: 400; }
.top .command-search {
  min-height: 28px;
  border-color: #3c434a;
  border-radius: 2px;
  background: #2c3338;
  color: #a7aaad;
}
.top .command-search input { color: #fff; }
.top .kbd { display: none; }
.top .chip {
  min-height: 24px;
  padding: 2px 7px;
  border-color: #3c434a;
  border-radius: 2px;
  background: transparent;
  color: #c3c4c7;
  font-weight: 400;
}
.top .btn {
  min-height: 28px;
  padding: 3px 8px;
  border-color: #50575e;
  background: #2c3338;
  color: #f0f0f1;
}

.main { width: 100%; max-width: none; padding: 20px 22px 44px; }
.head { align-items: center; margin-bottom: 12px; }
.head h1 { color: #1d2327; font-size: 23px; font-weight: 400; line-height: 1.3; }
.head p { margin-top: 4px; color: #646970; font-size: 13px; }
.panel {
  border: 1px solid var(--wp-border);
  border-radius: 0;
  background: #fff;
  box-shadow: var(--shadow);
}
.panel-head {
  min-height: 40px;
  padding: 8px 12px;
  border-color: #dcdcde;
}
.panel-title { color: #1d2327; font-size: 14px; font-weight: 600; }
.panel-sub { color: #646970; }
.panel-body { padding: 12px; }

.btn {
  min-height: 30px;
  padding: 4px 10px;
  border-color: #2271b1;
  border-radius: 3px;
  color: #2271b1;
  background: #f6f7f7;
  font-size: 13px;
  font-weight: 400;
  box-shadow: 0 1px 0 #2271b1;
}
.btn:hover { border-color: #135e96; color: #135e96; background: #f0f0f1; }
.btn.primary {
  border-color: #2271b1;
  color: #fff;
  background: #2271b1;
  box-shadow: 0 1px 0 #135e96;
}
.btn.primary:hover { color: #fff; background: #135e96; }
.btn.danger { border-color: #b32d2e; color: #b32d2e; background: #fff; box-shadow: none; }

.field label { color: #1d2327; font-size: 13px; font-weight: 600; }
.field input,
.field textarea,
.field select {
  min-height: 30px;
  padding: 4px 8px;
  border-color: #8c8f94;
  border-radius: 3px;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: #2271b1;
  box-shadow: 0 0 0 1px #2271b1;
}

table { min-width: 760px; border-collapse: collapse; }
th, td { padding: 9px 10px; border-color: #dcdcde; font-size: 13px; }
th { color: #2c3338; background: #fff; font-weight: 400; }
tbody tr:nth-child(odd) { background: #f6f7f7; }
.row-title, .recent-title { color: #2271b1; font-weight: 600; }
.row-title-button,
.recent-title-button {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  color: #2271b1;
  background: transparent;
  font: inherit;
  text-align: left;
}
.row-title-button:hover,
.recent-title-button:hover { color: #135e96; text-decoration: underline; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.row-actions button,
.row-actions a {
  padding: 0;
  border: 0;
  color: #2271b1;
  background: transparent;
  box-shadow: none;
  font-size: 12px;
  text-decoration: none;
}
.row-actions .danger-link { color: #b32d2e; }

.metrics { grid-template-columns: repeat(4, minmax(150px, 1fr)); }
.metric { min-height: 108px; padding: 12px; }
.metric-value { font-size: 24px; font-weight: 400; }
.metric-icon { display: none; }
.dashboard-grid { grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); }
.dashboard-grid > :nth-child(3) { display: none; }
.quick-actions { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.quick-actions .quick-action:nth-child(4),
.quick-actions .quick-action:nth-child(5) { display: none; }

.split-editor { grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; }
.split-editor > form.panel { border: 0; background: transparent; box-shadow: none; }
.split-editor > form.panel > .panel-head { display: none; }
.split-editor > form.panel > .panel-body { padding: 0; }
.editor-main-card { border: 1px solid var(--wp-border); background: #fff; }
.wp-editor-wrap { border: 1px solid #8c8f94; background: #fff; }
.wp-editor-tabs {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  padding: 5px 8px 0;
  background: #f6f7f7;
}
.wp-editor-tab {
  min-height: 28px;
  padding: 4px 12px;
  border: 1px solid #c3c4c7;
  border-bottom: 0;
  background: #f0f0f1;
  color: #50575e;
}
.wp-editor-tab.active { background: #fff; color: #1d2327; }
.editor-toolbar {
  margin: 0;
  padding: 5px;
  border: 0;
  border-top: 1px solid #dcdcde;
  border-bottom: 1px solid #dcdcde;
  border-radius: 0;
  background: #f6f7f7;
}
.tool-btn {
  min-width: 30px;
  height: 30px;
  border-color: transparent;
  border-radius: 2px;
  background: transparent;
  color: #2c3338;
}
.tool-btn:hover, .tool-btn.active { border-color: #8c8f94; background: #fff; }
.wp-visual-editor {
  min-height: 430px;
  padding: 18px;
  outline: 0;
  color: #1d2327;
  background: #fff;
  font: 16px/1.6 Georgia, "Times New Roman", serif;
}
.wp-visual-editor:focus { box-shadow: inset 0 0 0 1px #2271b1; }
.wp-visual-editor h2 { font-size: 26px; }
.wp-visual-editor h3 { font-size: 21px; }
.wp-visual-editor img { max-width: 100%; height: auto; }
.wp-text-editor {
  display: none;
  width: 100%;
  min-height: 430px;
  padding: 12px;
  border: 0;
  border-radius: 0;
  font: 13px/1.55 Consolas, Monaco, monospace;
  resize: vertical;
}
.wp-editor-wrap.text-mode .wp-visual-editor,
.wp-editor-wrap.text-mode .editor-toolbar { display: none; }
.wp-editor-wrap.text-mode .wp-text-editor { display: block; }
.add-media-row { margin: 10px 0 6px; }

.editor-sidebar { display: grid; gap: 14px; align-content: start; }
.publish-actions { display: grid; gap: 9px; }
.publish-action-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.publish-footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid #dcdcde;
  background: #f6f7f7;
}
.category-checklist {
  max-height: 190px;
  overflow: auto;
  padding: 7px;
  border: 1px solid #dcdcde;
  background: #fff;
}
.category-checklist label { display: block; padding: 4px 2px; font-weight: 400; }
.featured-image-box img { width: 100%; height: auto; display: block; margin-bottom: 8px; }
.featured-placeholder {
  min-height: 130px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
  border: 1px dashed #8c8f94;
  color: #646970;
  background: #f6f7f7;
  text-align: center;
}
.post-preview { display: none; }

.media-tools { align-items: center; }
.media-grid { grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: 10px; }
.media-card {
  position: relative;
  border-radius: 0;
  cursor: pointer;
}
.media-card.selected { outline: 3px solid #2271b1; outline-offset: -3px; }
.media-card img { aspect-ratio: 1; }
.media-card .meta { padding: 7px; }
.media-card .media-actions { display: flex; gap: 6px; margin-top: 7px; }

.media-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  padding: 32px;
  background: rgba(0, 0, 0, .72);
}
.media-modal.open { display: grid; }
.media-modal-dialog {
  min-height: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  border: 1px solid #8c8f94;
  background: #f0f0f1;
}
.media-modal-head,
.media-modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid #c3c4c7;
  background: #fff;
}
.media-modal-foot { border-top: 1px solid #c3c4c7; border-bottom: 0; }
.media-modal-body { min-height: 0; overflow: auto; padding: 14px; }
.media-modal .media-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.media-modal-tools {
  display: flex;
  gap: 10px;
  align-items: end;
  padding: 10px 14px;
  border-bottom: 1px solid #c3c4c7;
  background: #f6f7f7;
}
.media-modal-tools .field { min-width: 220px; flex: 1; margin: 0; }
.media-modal-tools .field span { display: block; margin-bottom: 4px; font-weight: 600; }
.media-modal-tools form { display: flex; gap: 8px; align-items: center; }
.media-modal-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 14px;
}
.media-details {
  align-self: start;
  padding: 12px;
  border: 1px solid #c3c4c7;
  background: #fff;
}
.media-details .field { margin: 10px 0; }
.media-details textarea { min-height: 70px; }
.media-detail-preview { width: 100%; max-height: 230px; object-fit: contain; background: #f0f0f1; }
.file-placeholder {
  min-height: 130px;
  display: grid;
  place-items: center;
  color: #646970;
  background: #e6ebf1;
  font-weight: 700;
}
.modal-close {
  width: 36px;
  height: 36px;
  border: 0;
  color: #50575e;
  background: transparent;
  font-size: 28px;
  line-height: 1;
}
.modal-load-more { display: block; margin: 14px auto 0; }
body.modal-open { overflow: hidden; }
.dot.offline { background: #d63638; box-shadow: 0 0 0 3px rgba(214, 54, 56, .13); }
.migration-notice {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
}

.notice { border-radius: 0; background: #fff; }
.toast { border-radius: 2px; background: #1d2327; }
.badge { border-radius: 10px; font-weight: 500; }

@media (max-width: 1120px) {
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid, .split-editor { grid-template-columns: 1fr; }
  .editor-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 782px) {
  .shell { display: block; }
  .side { display: none; }
  .top { min-height: 46px; grid-template-columns: 1fr auto; }
  .top .command-search, .top .chip { display: none; }
  .main { padding: 16px 12px 92px; }
  .head { display: block; }
  .head .post-actions { margin-top: 8px; }
  .metrics { grid-template-columns: 1fr 1fr; grid-auto-flow: initial; margin: 0 0 14px; padding: 0; overflow: visible; }
  .metric { min-height: 88px; }
  .editor-sidebar { grid-template-columns: 1fr; }
  .media-modal { padding: 0; }
  .media-modal-dialog { border: 0; }
  .media-modal-tools { display: grid; grid-template-columns: 1fr auto; }
  .media-modal-tools form { grid-column: 1 / -1; }
  .media-modal-body { grid-template-columns: 1fr; }
  .media-details { order: -1; }
  .migration-notice { display: grid; }
  .mobile-dock { border-radius: 3px; }
}
