/* River9 Studio blog theme */
:root {
  --bg: #ffffff;
  --bg-soft: #fdf8f5;
  --bg-card: #ffffff;
  --text: #2c2c2c;
  --text-soft: #6b6b6b;
  --text-muted: #9e9e9e;
  --border: rgba(0,0,0,0.08);
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-hover: 0 12px 40px rgba(0,0,0,0.14);
  --accent: #f472b6;
  --accent2: #a78bfa;
  --accent3: #60a5fa;
  --good: #34d399;
  --warn: #fb923c;
  --btn-bg: linear-gradient(135deg, #f472b6, #a78bfa);
  --btn-text: #ffffff;
  --nav-bg: rgba(255,255,255,0.85);
  --input-bg: #f9f5ff;
  --input-border: #e0d4f5;
  --section-divider: #f5f0ff;
  --site-max: 1180px;
  --site-pad: clamp(16px, 4vw, 56px);
}

[data-theme="dark"] {
  --bg: #2c2c2c;
  --bg-soft: #333333;
  --bg-card: #3a3a3a;
  --text: #f0ece8;
  --text-soft: #c0b8b0;
  --text-muted: #888888;
  --border: rgba(255,255,255,0.1);
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --shadow-hover: 0 12px 40px rgba(0,0,0,0.5);
  --nav-bg: rgba(44,44,44,0.9);
  --input-bg: #3f3f3f;
  --input-border: #555555;
  --section-divider: #383838;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 18px; }
body {
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  transition: background-color 0.3s, color 0.3s;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.wrap {
  width: 100%;
  max-width: var(--site-max);
  margin: 0 auto;
  padding-left: var(--site-pad);
  padding-right: var(--site-pad);
}
.scroll-line {
  position: fixed; top: 0; left: 0; z-index: 200;
  width: 0%; height: 3px; border-radius: 0 4px 4px 0;
  background: linear-gradient(90deg, var(--accent), var(--accent2), var(--accent3));
}

/* Navigation */
.nav-shell {
  position: sticky; top: 0; z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--site-max);
  margin: 0 auto;
  padding: 0 var(--site-pad);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: 'Baloo 2', cursive;
  font-weight: 800;
  font-size: 1.2rem;
  background: linear-gradient(90deg, var(--accent), var(--accent2), var(--accent3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  white-space: nowrap;
}
.nav-links { display: flex; gap: 6px; list-style: none; }
.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 16px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  opacity: 0.92;
}
.nav-links li:nth-child(1) a { color: var(--accent); }
.nav-links li:nth-child(2) a { color: var(--accent2); }
.nav-links li:nth-child(3) a { color: var(--accent3); }
.nav-links li:nth-child(4) a { color: var(--good); }
.nav-links li:nth-child(5) a { color: var(--warn); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  width: 0;
  height: 2px;
  border-radius: 2px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transition: width 0.22s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 60%; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-socials { display: flex; gap: 8px; }
.nav-social-btn {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--sc, var(--text-soft));
  background: var(--bg-soft);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: transform 0.2s, background 0.2s, color 0.2s;
}
.nav-social-btn:hover { transform: translateY(-1px); background: rgba(244,114,182,0.12); }
.theme-wrapper { display: flex; align-items: center; gap: 7px; }
.theme-label { font-size: 0.68rem; font-weight: 800; color: var(--text-muted); text-transform: uppercase; }
.theme-btn {
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 999px;
  padding: 2px;
  cursor: pointer;
}
.theme-track {
  width: 48px; height: 24px; border-radius: 999px;
  background: linear-gradient(135deg, #ffe9f4, #efe8ff);
}
[data-theme="dark"] .theme-track { background: linear-gradient(135deg, #4b3f72, #1a1a2e); }
.theme-knob {
  width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem;
  background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.18);
  transform: translate(2px, 2px);
  transition: transform 0.22s ease;
}
[data-theme="dark"] .theme-knob { transform: translate(26px, 2px); }
.hamburger {
  display: none;
  width: 34px; height: 34px;
  border: 0; background: transparent; cursor: pointer;
}
.hamburger span {
  display: block; width: 22px; height: 2px; margin: 5px auto;
  background: var(--text); border-radius: 2px;
}
.mobile-menu-overlay {
  position: fixed; inset: 0; z-index: 210;
  display: none; background: rgba(0,0,0,0.42);
}
.mobile-menu-overlay.open { display: block; }
.mobile-menu {
  position: fixed; top: 0; right: 0; z-index: 220;
  width: min(72vw, 320px); height: 100vh;
  transform: translateX(100%);
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  box-shadow: -12px 0 40px rgba(0,0,0,0.18);
  transition: transform 0.24s ease;
  padding: 26px;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-logo {
  font-family: 'Baloo 2', cursive;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--accent);
}
.mobile-nav { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.mobile-nav a {
  padding: 10px 0;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  border-bottom: 1px solid var(--border);
}
.mobile-close {
  position: fixed; top: 16px; right: 16px; z-index: 230;
  display: none; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
}

/* Blog listing */
.page-header {
  padding: clamp(38px, 7vw, 82px) 0 clamp(28px, 4vw, 52px);
  background:
    radial-gradient(circle at 18% 20%, rgba(244,114,182,0.14), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(96,165,250,0.13), transparent 26%),
    linear-gradient(180deg, var(--bg-soft), var(--bg));
  border-bottom: 1px solid var(--border);
}
.eyebrow {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}
.page-header h1,
.article-hero h1 {
  margin-top: 8px;
  font-family: 'Baloo 2', cursive;
  font-size: clamp(1.55rem, 3.5vw, 2.6rem);
  line-height: 1.02;
  letter-spacing: 0;
}
.grad {
  background: linear-gradient(90deg, var(--accent), var(--accent2), var(--accent3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-header p {
  max-width: 680px;
  margin-top: 14px;
  color: var(--text-soft);
  line-height: 1.65;
}
.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  gap: clamp(22px, 4vw, 44px);
  padding-top: clamp(30px, 5vw, 54px);
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.sort-control {
  display: flex;
  align-items: center;
  gap: 9px;
}
.filter-bar-label {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.filter-select {
  min-height: 38px;
  min-width: 150px;
  padding: 7px 34px 7px 12px;
  border: 1px solid var(--input-border);
  border-radius: 999px;
  background: var(--input-bg);
  color: var(--text);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 900;
}
.result-label { color: var(--text-soft); font-size: 0.88rem; font-weight: 800; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.post-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.post-cover {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--bg-soft);
}
.post-body { padding: 18px; }
.post-category {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(244,114,182,0.12);
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}
.post-card h2 {
  margin-top: 11px;
  font-family: 'Baloo 2', cursive;
  font-size: 1.22rem;
  line-height: 1.08;
  letter-spacing: 0;
}
.post-excerpt {
  margin-top: 10px;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.58;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 800;
}
.read-more {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-top: 15px;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-text);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 900;
}
.sidebar {
  position: sticky;
  top: 82px;
  align-self: start;
}
.sidebar-panel,
.empty-state,
.admin-panel,
.stat-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  box-shadow: var(--shadow);
}
.sidebar-panel { padding: 20px; }
.sidebar-panel h2 {
  font-family: 'Baloo 2', cursive;
  font-size: 1.2rem;
}
.category-list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.category-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--text-soft);
  text-decoration: none;
  font-weight: 800;
}
.category-list a:hover,
.category-list a.active {
  color: var(--text);
  background: var(--bg-soft);
}
.cat-count {
  min-width: 26px;
  padding: 2px 7px;
  border-radius: 999px;
  text-align: center;
  background: rgba(167,139,250,0.14);
  color: var(--accent2);
  font-size: 0.72rem;
}
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.page-btn {
  min-width: 38px; height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
}
.page-btn.active { border-color: transparent; background: var(--btn-bg); color: #fff; }
.empty-state { padding: 34px; text-align: center; color: var(--text-soft); }

/* Article */
.article-hero { padding: clamp(34px, 6vw, 72px) 0 28px; background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; color: var(--text-soft); font-weight: 800; font-size: 0.86rem; }
.article-cover { width: 100%; aspect-ratio: 4 / 3; max-height: none; object-fit: cover; margin-top: 28px; border-radius: 8px; box-shadow: var(--shadow); }
.article-wrap { max-width: 820px; margin: 0 auto; padding: 42px var(--site-pad) 8px; }
.article-content { color: var(--text); line-height: 1.78; }
.article-content > * + * { margin-top: 1em; }
.article-content h2,
.article-content h3 {
  font-family: 'Baloo 2', cursive;
  line-height: 1.12;
  margin-top: 1.5em;
}
.article-content a { color: var(--accent2); font-weight: 800; }
.article-content ul,
.article-content ol { padding-left: 1.3rem; }
.article-back { margin-top: 30px; }

/* Dashboard */
.admin-main { padding: clamp(26px, 5vw, 54px) 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.stat-card { padding: 17px; }
.stat-card span { color: var(--text-muted); font-size: 0.75rem; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; }
.stat-card strong { display: block; margin-top: 6px; font-family: 'Baloo 2', cursive; font-size: 1.8rem; line-height: 1; }
.admin-panel { padding: clamp(18px, 3vw, 28px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { color: var(--text-soft); font-size: 0.78rem; font-weight: 900; letter-spacing: 0.8px; text-transform: uppercase; }
.input,
.select,
.editor {
  width: 100%;
  border: 1px solid var(--input-border);
  border-radius: 8px;
  background: var(--input-bg);
  color: var(--text);
  font: inherit;
}
.input,
.select { min-height: 44px; padding: 10px 12px; }
.editor {
  min-height: 300px;
  padding: 18px;
  line-height: 1.65;
  overflow: auto;
}
.editor:focus,
.input:focus,
.select:focus { outline: 2px solid rgba(167,139,250,0.32); }
.format-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-soft);
}
.format-bar button,
.submit-btn,
.ghost-btn {
  min-height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 12px;
  background: var(--bg-card);
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
}
.format-bar button { min-width: 36px; padding: 7px 10px; }
.submit-row { display: flex; align-items: center; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.submit-btn { border-color: transparent; background: var(--btn-bg); color: #fff; padding-inline: 18px; }
.ghost-btn { text-decoration: none; }
.status { color: var(--text-soft); font-weight: 800; }
.recent-list { margin-top: 24px; display: grid; gap: 10px; }
.recent-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 8px; }
.recent-item a { color: var(--accent2); font-weight: 900; text-decoration: none; }

.footer-shell { background: #222222; color: #cccccc; margin-top: 60px; }
.footer-shell .wrap { padding-top: clamp(32px,5vw,60px); padding-bottom: 24px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-logo {
  font-family: 'Baloo 2', cursive; font-weight: 800; font-size: 1.4rem;
  background: linear-gradient(90deg, var(--accent), var(--accent2), var(--accent3));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.footer-desc { font-size: 0.87rem; line-height: 1.65; color: #bbb; max-width: 280px; }
.footer-socials { display: flex; gap: 10px; margin-top: 4px; }
.social-btn {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.07);
  display: flex; align-items: center; justify-content: center;
  color: #aaa; text-decoration: none; transition: background 0.2s, color 0.2s;
}
.social-btn:hover { background: rgba(244,114,182,0.2); color: #f472b6; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 20px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.footer-copy { font-size: 0.82rem; color: #aaa; }
.footer-copy strong { color: #ddd; }
.footer-badge { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; color: #aaa; }
.footer-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.6;transform:scale(1.3)} }

@media (max-width: 920px) {
  .blog-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .nav-links, .nav-socials, .theme-label { display: none; }
  .hamburger { display: block; }
  .blog-grid { grid-template-columns: 1fr; }
  .toolbar { align-items: flex-start; flex-direction: column; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }
}
@media (max-width: 480px) {
  html { font-size: 17px; }
  .wrap { padding-left: 12px; padding-right: 12px; }
  .stats-grid { grid-template-columns: 1fr; }
  .post-body { padding: 15px; }
  .page-header h1 { font-size: 1.45rem; }
  .footer-top { grid-template-columns: 1fr; }
}

/* WordPress-style backend dashboard */
.wp-admin-body {
  margin: 0;
  background: #f0f0f1;
  color: #1d2327;
  font-family: Arial, sans-serif;
  font-size: 14px;
}
.wp-admin-body a { color: #2271b1; }
.wp-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}
.wp-login-box {
  width: min(100%, 360px);
  background: #fff;
  border: 1px solid #c3c4c7;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  padding: 24px;
}
.wp-login-box h1 {
  margin: 0 0 20px;
  font-size: 22px;
}
.wp-login-box label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}
.wp-login-box input {
  width: 100%;
  min-height: 38px;
  border: 1px solid #8c8f94;
  padding: 6px 8px;
  font-size: 16px;
}
.wp-login-box button,
.wp-button,
.wp-bulkbar button,
.wp-actions button {
  min-height: 32px;
  border: 1px solid #2271b1;
  border-radius: 3px;
  background: #f6f7f7;
  color: #2271b1;
  padding: 4px 10px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.wp-login-box button,
.wp-button-primary {
  background: #2271b1;
  color: #fff;
}
.wp-error {
  color: #b32d2e;
  font-weight: 600;
}
.wp-admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
}
.wp-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  background: #1d2327;
  color: #c3c4c7;
  padding: 12px 0;
}
.wp-brand {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 12px 16px 18px;
}
.wp-sidebar a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 16px;
  color: #c3c4c7;
  text-decoration: none;
}
.wp-sidebar a:hover,
.wp-sidebar a.wp-nav-active {
  background: #2271b1;
  color: #fff;
}
.wp-side-heading {
  padding: 18px 16px 8px;
  color: #8c8f94;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}
.wp-content {
  min-width: 0;
  padding: 20px;
}
.wp-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.wp-topline h1 {
  margin: 0;
  font-size: 23px;
  font-weight: 400;
}
.wp-topline p {
  margin: 5px 0 0;
  color: #646970;
}
.wp-notice {
  margin: 12px 0;
  padding: 10px 12px;
  border-left: 4px solid #00a32a;
  background: #fff;
  box-shadow: 0 1px 1px rgba(0,0,0,0.04);
}
.wp-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.wp-stats div,
.wp-card {
  background: #fff;
  border: 1px solid #c3c4c7;
  box-shadow: 0 1px 1px rgba(0,0,0,0.04);
}
.wp-stats div {
  padding: 14px;
}
.wp-stats span {
  display: block;
  color: #646970;
  font-size: 12px;
  text-transform: uppercase;
}
.wp-stats strong {
  display: block;
  margin-top: 6px;
  font-size: 20px;
}
.wp-card {
  margin-bottom: 16px;
}
.wp-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid #c3c4c7;
}
.wp-card-head h2 {
  margin: 0;
  font-size: 15px;
}
.wp-card-head span {
  color: #646970;
  font-size: 12px;
}
.wp-bulkbar {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid #dcdcde;
}
.wp-bulkbar select,
.wp-input {
  min-height: 34px;
  border: 1px solid #8c8f94;
  border-radius: 3px;
  background: #fff;
  color: #1d2327;
  padding: 5px 8px;
  font: inherit;
}
.wp-table-wrap {
  overflow-x: auto;
}
.wp-table {
  width: 100%;
  border-collapse: collapse;
}
.wp-table th,
.wp-table td {
  padding: 9px 10px;
  border-bottom: 1px solid #dcdcde;
  text-align: left;
  vertical-align: middle;
}
.wp-table th {
  color: #2c3338;
  font-weight: 600;
}
.wp-table tbody tr:hover {
  background: #f6f7f7;
}
.wp-thumb {
  width: 72px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid #dcdcde;
  background: #f6f7f7;
}
.wp-table small {
  display: block;
  max-width: 520px;
  margin-top: 3px;
  color: #646970;
}
.wp-actions {
  white-space: nowrap;
}
.wp-actions a,
.wp-actions button {
  margin-right: 8px;
}
.wp-actions button {
  border-color: #b32d2e;
  color: #b32d2e;
}
.wp-empty {
  padding: 24px !important;
  color: #646970;
  text-align: center !important;
}
.wp-editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 16px;
  padding: 12px;
}
.wp-main-editor label,
.wp-publish-box label {
  display: block;
  margin: 0 0 6px;
  font-weight: 600;
}
.wp-main-editor label:not(:first-child),
.wp-publish-box label:not(:first-child) {
  margin-top: 12px;
}
.wp-main-editor .wp-input,
.wp-publish-box .wp-input {
  width: 100%;
}
.wp-format-bar {
  border-radius: 0;
  border-color: #c3c4c7;
  background: #f6f7f7;
  padding: 6px;
}
.wp-format-bar button {
  min-height: 30px;
  border-radius: 3px;
  padding: 3px 8px;
}
.wp-editor {
  min-height: 360px;
  border: 1px solid #8c8f94;
  border-radius: 0;
  background: #fff;
  color: #1d2327;
}
.wp-publish-box {
  border-left: 1px solid #dcdcde;
  padding-left: 14px;
}
.wp-cover-preview {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin: 8px 0 12px;
  border: 1px dashed #8c8f94;
  background: #f6f7f7;
  color: #646970;
  overflow: hidden;
}
.wp-cover-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wp-publish-box .wp-button {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}
.wp-publish-box .status {
  display: block;
  margin-top: 10px;
  color: #646970;
}
.wp-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  background: rgba(0,0,0,0.55);
  overflow: auto;
}
.wp-preview-modal.open {
  display: flex;
}
.wp-preview-panel {
  width: min(860px, 100%);
  background: #fff;
  padding: 16px;
}
.wp-preview-panel > button {
  float: right;
  min-height: 30px;
}
.wp-preview-article {
  clear: both;
  max-width: 760px;
  margin: 20px auto;
  line-height: 1.7;
}
.wp-preview-article img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: 16px;
}
.wp-preview-article span {
  color: #b35bd1;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}
.wp-preview-article h1 {
  margin: 6px 0 8px;
  font-size: 34px;
  line-height: 1.1;
}
.wp-preview-excerpt {
  color: #646970;
  font-weight: 600;
}

@media (max-width: 900px) {
  .wp-admin-shell {
    grid-template-columns: 1fr;
  }
  .wp-sidebar {
    position: static;
    height: auto;
  }
  .wp-stats,
  .wp-editor-grid {
    grid-template-columns: 1fr;
  }
  .wp-publish-box {
    border-left: 0;
    border-top: 1px solid #dcdcde;
    padding: 14px 0 0;
  }
}
