.wb-body { min-height: 100vh; }
.wb-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.wb-gate-card { max-width: 420px; width: 100%; }
.wb-app { min-height: 100vh; display: flex; flex-direction: column; }
.wb-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 14px 20px;
  background: #2a1714;
  color: #f7f1e8;
  border-bottom: 1px solid rgba(255,255,255,.08);
  position: sticky;
  top: 0;
  z-index: 40;
}
.wb-top-brand { display: flex; align-items: center; gap: 12px; }
.wb-top-brand img { width: 42px; height: 42px; object-fit: contain; border-radius: 10px; background: #fff; }
.wb-top-brand .eyebrow { margin: 0; color: rgba(244,236,228,.55); }
.wb-top-brand h1 { margin: 2px 0 0; font-size: 1.15rem; font-family: var(--serif); color: #fff; font-weight: 700; }
.wb-top-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.wb-top-actions .btn-ghost { color: #f7f1e8; border-color: rgba(255,255,255,.2); }
.wb-status { font-size: .78rem; color: rgba(244,236,228,.7); margin-right: 4px; }
.wb-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  flex: 1;
}
.wb-pages { padding: 14px; align-self: start; position: sticky; top: 84px; }
.wb-page-list { display: grid; gap: 4px; margin-bottom: 12px; }
.wb-page-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  text-align: left;
  font: inherit;
  cursor: pointer;
  color: var(--ink);
}
.wb-page-btn strong { display: block; font-size: .9rem; }
.wb-page-btn span { display: block; font-size: .72rem; color: var(--muted); margin-top: 2px; }
.wb-page-btn.is-on {
  border-color: var(--wine);
  background: #f7f1e8;
  box-shadow: inset 0 0 0 1px rgba(122, 29, 44, .15);
}
.wb-hint { margin: 12px 0 0; font-size: .75rem; }
.wb-main { display: grid; gap: 14px; align-content: start; }
.wb-page-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: flex-start; }
.wb-page-head h2 { margin: 4px 0 0; font-family: var(--serif); }
.wb-sections { display: grid; gap: 14px; }
.wb-section {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}
.wb-section-head {
  padding: 12px 16px;
  background: #f7f1e8;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}
.wb-section-head h3 { margin: 0; font-size: 1rem; }
.wb-section-head p { margin: 4px 0 0; font-size: .8rem; color: var(--muted); }
.wb-dyn {
  font-size: .72rem;
  font-weight: 700;
  color: var(--wine);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 8px;
  align-self: center;
}
.wb-fields { display: grid; gap: 12px; padding: 14px 16px 16px; }
.wb-field label {
  display: grid;
  gap: 4px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}
.wb-field input,
.wb-field textarea,
.wb-field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 11px;
  font: inherit;
  font-size: .9rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  color: var(--ink);
  background: #fff;
}
.wb-field textarea { min-height: 88px; resize: vertical; }
.wb-field textarea.wb-rich,
.wb-field textarea.gid-rte { min-height: 140px; font-family: inherit; }
.wb-field .tox-tinymce {
  border-radius: 10px !important;
  border-color: var(--line) !important;
}
.wb-field .tox .tox-toolbar__primary { background: #faf7f4; }
.wb-blog-item .tox-tinymce,
.wb-faq-item .tox-tinymce { margin-top: 2px; }
.wb-img-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.wb-img-prev {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #f7f1e8;
}
.wb-img-row input { flex: 1 1 180px; }
.wb-faq-list, .wb-blog-list { display: grid; gap: 10px; }
.wb-faq-item, .wb-blog-item {
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 10px;
  display: grid;
  gap: 8px;
  background: #faf7f4;
}
.wb-faq-item .wb-faq-actions { display: flex; gap: 8px; }
.wb-modal {
  position: fixed;
  inset: 0;
  background: rgba(30, 16, 12, .45);
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 16px;
}
.wb-modal.hidden { display: none; }
.wb-modal-panel {
  width: min(920px, 100%);
  max-height: min(86vh, 800px);
  overflow: auto;
  padding: 16px;
}
.wb-modal-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.wb-modal-bar h2 { margin: 0; }
.wb-media-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.wb-media-tools input[type="search"] {
  flex: 1 1 200px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
}
.wb-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.wb-media-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  text-align: left;
  padding: 0;
  font: inherit;
}
.wb-media-card img { width: 100%; height: 90px; object-fit: cover; display: block; background: #f0ebe8; }
.wb-media-card span {
  display: block;
  padding: 6px 8px;
  font-size: .68rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wb-toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #2a1714;
  color: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  z-index: 90;
  font-size: .88rem;
  box-shadow: var(--shadow);
}
.wb-toast.err { background: #7a1d2c; }
.wb-toast.hidden { display: none; }
.hidden { display: none !important; }
@media (max-width: 900px) {
  .wb-layout { grid-template-columns: 1fr; }
  .wb-pages { position: static; }
}
