/* Workbench 2.2. Public page styles remain outside this interface. */
body.admin {
  --ui-ink: #172b45;
  --ui-muted: #52657b;
  --ui-border: #d5dfe9;
  --ui-bg: #f3f6fa;
  --ui-blue: #205bd8;
  --ui-blue-light: #eaf1ff;
  background: var(--ui-bg);
  color: var(--ui-ink);
  font:
    16px/1.5 system-ui,
    -apple-system,
    Segoe UI,
    sans-serif;
  margin: 0;
}
.admin *,
.admin *::before,
.admin *::after {
  box-sizing: border-box;
}
.admin [hidden] {
  display: none !important;
}
.admin button,
.admin .button,
.admin input,
.admin select,
.admin textarea {
  font-family: inherit;
}
.admin button,
.admin .button {
  min-height: 44px !important;
  min-width: 44px;
  font-size: 15px;
  line-height: 1.3;
  border-radius: 9px;
  padding: 10px 14px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  letter-spacing: normal;
  white-space: normal;
  text-decoration: none;
  border: 1px solid transparent;
  box-shadow: none;
}
.admin button > i,
.admin .button > i {
  font-size: 19px;
  flex-shrink: 0;
}
.admin button:disabled {
  opacity: 0.5;
  cursor: default;
}
.admin button:focus-visible,
.admin a:focus-visible,
.admin input:focus-visible,
.admin select:focus-visible,
.admin textarea:focus-visible {
  outline: 3px solid #78a8ff;
  outline-offset: 2px;
}
.admin .ghost {
  background: #fff;
  color: var(--ui-ink);
  border-color: var(--ui-border);
}
.admin .ghost:hover {
  background: #f0f5ff;
  border-color: #8ca9d2;
}
.admin .danger {
  color: #ad183a;
  background: #fff5f6;
  border-color: #ecc4cc;
}
.admin .danger:hover {
  background: #ffe5ea;
}
.admin .wb-primary,
.admin button[type="submit"] {
  background: var(--ui-blue);
  color: white;
  border-color: var(--ui-blue);
  font-weight: 650;
}
.admin .wb-secondary {
  background: var(--ui-blue-light);
  color: #164da9;
  border-color: #b5ccf3;
}
.admin input:not([type="checkbox"]):not([type="range"]),
.admin select,
.admin textarea {
  font-size: 16px !important;
  line-height: 1.5 !important;
  min-height: 46px !important;
  width: 100%;
  padding: 10px 12px !important;
  border: 1px solid #bac8d8 !important;
  border-radius: 8px;
  background: #fff;
  color: #172b45;
  margin: 0 !important;
  max-width: 100%;
}
.admin input[type="color"] {
  width: 100%;
  min-width: 65px;
}
.admin input[type="checkbox"] {
  appearance: auto;
  width: 21px !important;
  height: 21px !important;
  min-width: 21px;
  flex-shrink: 0;
  accent-color: var(--ui-blue);
}
.admin input[type="range"] {
  min-height: 44px;
  accent-color: var(--ui-blue);
}
.admin label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 15px !important;
  font-weight: 550;
  color: #33475f;
  min-width: 0;
  margin: 0 0 16px;
  line-height: 1.45;
}
.admin .check-label {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 44px;
  font-weight: 450;
  margin: 0;
}
.admin .check-label > input {
  order: -1;
}
.admin small,
.admin .hint {
  font-size: 14px !important;
  color: var(--ui-muted);
  line-height: 1.55;
}
.admin h1 {
  font-size: 30px;
  letter-spacing: -0.7px;
  line-height: 1.25 !important;
  margin: 0 0 8px;
}
.admin h2 {
  font-size: 22px;
  line-height: 1.35;
  margin: 0 0 12px;
}
.admin h3 {
  font-size: 18px;
  margin: 0 0 14px;
  line-height: 1.4;
}
.admin h4 {
  font-size: 16px;
  margin: 0 0 10px;
}
.admin p {
  margin: 0 0 16px;
}
.admin .eyebrow {
  display: none;
}
.admin .view-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 26px;
  padding: 0;
}
.admin .view-heading p {
  font-size: 16px;
  max-width: 75ch;
  color: var(--ui-muted);
  margin: 0;
}
.admin .toolbar {
  gap: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
}
.admin .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
  margin: 0;
}
.admin .form-grid label {
  margin: 0;
}
.admin .span-all {
  grid-column: 1/-1;
}
.admin fieldset {
  border: 1px solid var(--ui-border);
  padding: 18px;
  border-radius: 10px;
  min-width: 0;
}
.admin legend {
  font-size: 16px;
  font-weight: 650;
  padding: 0 7px;
}
.admin .badge {
  font-size: 13px !important;
  padding: 6px 11px;
  white-space: nowrap;
}
.admin .badge.green {
  color: #17643f;
  background: #e6f6ed;
}
.admin table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  table-layout: auto;
}
.admin td,
.admin th {
  padding: 15px 16px !important;
  border-bottom: 1px solid #e0e7f0;
  vertical-align: middle;
}
.admin th {
  background: #f7f9fc;
  text-align: left;
  position: sticky;
  top: 0;
  font-weight: 650;
  color: #3a4d64;
}
.admin .wb-table-scroll {
  overflow: auto;
  border: 1px solid var(--ui-border);
  border-radius: 12px;
  background: #fff;
  max-height: 70dvh;
}
.admin .wb-list-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 20px;
}
.admin .wb-list-tools input {
  max-width: 350px;
}
.admin .list-row {
  background: #fff;
  border: 1px solid var(--ui-border);
  border-radius: 11px;
  padding: 16px 20px;
  margin: 0 0 12px;
  gap: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.admin .list-row strong {
  font-size: 17px;
}
.admin .wb-empty-list {
  padding: 40px 24px;
  text-align: center;
  border: 1px dashed #b5c6d9;
  border-radius: 12px;
  color: #52657b;
  background: white;
}
.wb-shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  min-height: 100dvh;
}
.wb-navigation {
  position: sticky;
  top: 0;
  height: 100dvh;
  overflow: auto;
  background: #fff;
  border-right: 1px solid var(--ui-border);
  padding: 24px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.wb-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px 24px;
  color: #172b45;
  text-decoration: none;
  font-size: 21px;
  font-weight: 750;
}
.wb-logo > i {
  color: var(--ui-blue);
  font-size: 28px;
}
.wb-logo small {
  display: block;
  font-size: 11px !important;
  letter-spacing: 2px;
  font-weight: 600;
  margin-top: 3px;
}
.admin .wb-nav-link {
  justify-content: flex-start;
  min-height: 46px !important;
  border: 0;
  background: transparent;
  color: #42566e;
  font-size: 15px !important;
  padding: 10px 14px !important;
  font-weight: 550;
}
.admin .wb-nav-link i {
  width: 22px;
  text-align: center;
  color: #657b94;
}
.admin .wb-nav-link:hover {
  background: #f2f6fc;
}
.admin .wb-nav-link.active {
  background: var(--ui-blue-light);
  color: #164fae;
}
.admin .wb-nav-link.active i {
  color: #205bd8;
}
.wb-nav-footer {
  display: grid;
  gap: 14px;
  margin-top: auto;
  padding: 26px 9px 0;
}
.wb-nav-footer small {
  font-size: 11px !important;
}
.wb-main-column {
  min-width: 0;
}
.wb-app-header {
  height: 76px;
  border-bottom: 1px solid var(--ui-border);
  background: #fff;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.wb-app-header > div {
  display: flex;
  align-items: center;
  gap: 20px;
}
.wb-user {
  color: var(--ui-muted);
  font-size: 14px;
}
.wb-workspace {
  padding: 32px;
  max-width: 1600px;
  width: 100%;
  margin: auto;
  min-width: 0;
}
.wb-global-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.wb-page-filters {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--ui-border);
  border-radius: 12px;
}
.wb-page-filters > input {
  max-width: 450px;
}
.wb-page-filters > label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  margin: 0;
  white-space: nowrap;
  flex: 1;
}
.wb-pages-list {
  display: grid;
  gap: 12px;
}
.wb-page-row {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border: 1px solid var(--ui-border);
  padding: 22px;
  border-radius: 12px;
  min-width: 0;
}
.wb-page-symbol {
  width: 52px;
  height: 60px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #eef4ff;
  color: #205bd8;
  font-size: 23px;
  flex-shrink: 0;
}
.wb-page-info {
  flex: 1;
  min-width: 100px;
  overflow-wrap: anywhere;
}
.wb-page-info h2 {
  font-size: 19px;
  margin: 0 0 4px;
}
.wb-page-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
/* Full-screen builder replaces the old nested sidebar layout. */
.wb-editor-shell {
  display: block;
  min-height: 100dvh;
}
.wb-editor {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.wb-editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--ui-border);
  background: #fff;
  flex-shrink: 0;
  z-index: 20;
  flex-wrap: wrap;
}
.wb-editor-title {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 200px;
}
.wb-editor-title strong {
  display: block;
  font-size: 17px;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wb-editor-title small {
  display: block;
  margin-top: 3px;
}
.wb-devices {
  display: flex;
  padding: 4px;
  background: #eef2f8;
  border-radius: 10px;
  gap: 3px;
}
.admin .wb-devices button {
  background: transparent;
  border: 0;
  min-width: 44px;
  padding: 9px !important;
  font-size: 13px !important;
}
.admin .wb-devices button span {
  display: none;
}
.admin .wb-devices button[aria-pressed="true"] {
  background: white;
  color: #205bd8;
  box-shadow: 0 1px 5px #1e3c5f22;
}
.wb-editor-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.admin .wb-editor-actions button {
  font-size: 14px !important;
  padding: 10px 12px !important;
}
.wb-editor-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 274px minmax(0, 1fr) 330px;
}
.wb-library,
.wb-properties {
  background: #fff;
  min-width: 0;
  overflow: auto;
  overscroll-behavior: contain;
}
.wb-library {
  border-right: 1px solid var(--ui-border);
}
.wb-properties {
  border-left: 1px solid var(--ui-border);
}
.wb-panel-heading {
  padding: 20px 18px 14px;
}
.wb-panel-heading h2 {
  margin: 0;
  font-size: 18px;
}
.wb-library-tabs,
.wb-property-tabs {
  display: flex;
  gap: 4px;
  padding: 0 12px 14px;
  border-bottom: 1px solid var(--ui-border);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 9;
}
.admin .wb-library-tabs button,
.admin .wb-property-tabs button {
  font-size: 14px !important;
  padding: 9px !important;
  flex: 1;
  min-width: 0;
  border-color: transparent;
}
.admin .wb-library-tabs button.active,
.admin .wb-property-tabs button.active {
  color: #164fae;
  background: var(--ui-blue-light);
  border-color: #c7daf8;
}
.wb-library #builder-library {
  padding: 18px 16px;
}
.wb-library input {
  margin-bottom: 14px !important;
}
.wb-library .hint {
  margin: 14px 0 22px;
}
.wb-library h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #657891;
  margin: 24px 0 10px;
}
.wb-palette-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.admin .wb-block-tile {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 6px !important;
  background: #fff;
  color: #304863;
  border: 1px solid var(--ui-border);
  min-height: 91px !important;
  font-size: 14px !important;
  cursor: grab;
  text-align: center;
}
.wb-block-tile i {
  font-size: 25px !important;
  color: #345c91;
}
.admin .wb-block-tile:hover {
  border-color: #6997dc;
  background: #f2f7ff;
}
.wb-block-tile:active {
  cursor: grabbing;
}
.admin .wb-tree-row,
.admin .wb-layout-choice {
  width: 100%;
  justify-content: flex-start;
  background: white;
  color: #314963;
  border: 0;
  margin-bottom: 6px;
  min-height: 48px !important;
  overflow-wrap: anywhere;
}
.admin .wb-tree-row.active {
  background: var(--ui-blue-light);
  color: #1d51a9;
}
.wb-stage {
  min-width: 0;
  overflow: auto;
  background: #e9eef5;
  padding: 24px 36px 80px;
  overscroll-behavior: contain;
}
.wb-stage-caption {
  font-size: 13px;
  color: #596d86;
  text-align: center;
  margin-bottom: 22px;
}
.wb-stage > .canvas {
  background: white;
  border: 1px solid #cbd7e6;
  box-shadow: 0 5px 30px #304c6a10;
  max-width: 1200px;
  width: 100%;
  min-height: 600px;
  margin: 0 auto;
  overflow: visible;
  padding: 24px;
  transition: width 0.15s ease;
  border-radius: 3px;
}
.wb-stage > .canvas.tablet {
  width: 768px;
  max-width: none;
}
.wb-stage > .canvas.phone {
  width: 390px;
  max-width: none;
}
.wb-stage > .canvas.desktop {
  min-width: 320px;
}
.wb-empty-page {
  text-align: center;
  padding: 80px 24px 24px;
  max-width: 540px;
  margin: auto;
}
.wb-empty-page > i {
  font-size: 44px;
  color: #6a8ebf;
  margin-bottom: 20px;
}
.wb-empty-page h2 {
  font: 650 28px/1.3 system-ui !important;
  color: #223b5a;
}
.wb-empty-page p {
  font: 16px/1.65 system-ui;
  color: #61758e;
}
.wb-node {
  min-width: 0;
  position: relative;
  border: 1px solid #e4eaf2;
  border-radius: 8px;
  background: #fff;
  overflow: visible;
}
.wb-node.node-selected {
  border-color: #3272d4;
  box-shadow: 0 0 0 2px #3272d41a;
}
.wb-nodebar {
  display: flex;
  align-items: center;
  gap: 2px;
  min-height: 44px;
  padding: 2px;
  background: #f6f8fc;
  border-bottom: 1px solid #e4eaf2;
  border-radius: 7px 7px 0 0;
  font-family: system-ui;
  color: #536b86;
  flex-wrap: wrap;
}
.node-selected > .wb-nodebar {
  background: #eaf2ff;
  border-bottom-color: #c2d6f5;
}
.admin .wb-nodebar button {
  font: 13px/1.25 system-ui !important;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #4c6582;
  min-height: 44px !important;
  padding: 8px !important;
}
.admin .wb-nodebar .wb-drag-handle {
  cursor: grab;
}
.admin .wb-nodebar .wb-drag-handle span {
  display: none;
}
.admin .wb-nodebar .wb-node-label {
  flex: 1;
  justify-content: flex-start;
  min-width: 70px;
  font-weight: 650 !important;
  min-height: 44px !important;
}
.admin .wb-nodebar .wb-node-action span {
  display: none;
}
.admin .wb-nodebar .wb-node-action:hover {
  background: #d9e8fc;
  color: #154a9c;
}
.admin .wb-nodebar .wb-node-action:has(i.fa-font) span,
.admin .wb-nodebar .wb-node-action:has(i.fa-plus) span {
  display: inline;
  font-size: 12px;
}
.wb-nodebar .wb-image-size {
  width: 95px;
  min-width: 70px;
  max-width: 110px;
  margin: 0 5px;
}
.wb-block-content {
  margin: 0 !important;
  min-width: 0;
  max-width: none !important;
  border-radius: 0 0 7px 7px !important;
}
.wb-block-content.pro-block.pro-block {
  margin: 0 !important;
}
.wb-block-content[contenteditable],
.wb-block-content [contenteditable="true"] {
  cursor: text;
  outline: none;
  border-radius: 3px;
  min-height: 24px;
}
.wb-block-content [contenteditable="true"]:focus {
  outline: 2px solid #9cbbef;
  outline-offset: 4px;
}
.wb-block-content .heading-text {
  font: inherit;
}
.wb-block-content > h2 {
  max-width: none !important;
  text-align: inherit !important;
}
.wb-block-content .rich-html {
  min-height: 80px;
  padding: 12px;
}
.admin .wb-block-content .button,
.admin .wb-block-content button {
  font-family: inherit;
}
.wb-node .pro-grid {
  display: grid;
  position: relative;
  gap: var(--gap, 20px);
  align-items: start;
}
.wb-cell {
  position: relative;
  min-width: 0;
}
.wb-cell > .wb-node {
  height: 100%;
}
.wb-cells > .wb-drop-zone {
  position: absolute;
  right: -12px;
  top: 0;
  bottom: 0;
  width: 18px;
  height: auto;
  z-index: 6;
}
.wb-cell > .wb-drop-zone {
  position: absolute;
  left: -12px;
  top: 0;
  bottom: 0;
  width: 18px;
  height: auto;
  z-index: 6;
}
.wb-cell > .wb-drop-zone .wb-insert-button,
.wb-cells > .wb-drop-zone .wb-insert-button {
  display: none;
}
.wb-cell > .wb-drop-zone::before,
.wb-cells > .wb-drop-zone::before {
  left: 7px;
  right: auto;
  width: 3px;
  top: 0;
  bottom: 0;
  height: auto;
}
.wb-cell > .wb-drop-zone .wb-drop-label,
.wb-cells > .wb-drop-zone .wb-drop-label {
  writing-mode: vertical-rl;
  padding: 4px;
}
.wb-drop-zone {
  position: relative;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  z-index: 2;
  margin: 2px 0;
}
.wb-drop-zone::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: #d8e3f0;
}
.admin .wb-insert-button {
  position: relative;
  background: #fff;
  color: #577499;
  border: 1px solid #d0deed;
  min-height: 44px !important;
  min-width: 44px;
  font-size: 13px !important;
  padding: 8px 14px !important;
  z-index: 2;
}
.wb-drop-zone .wb-drop-label {
  display: none;
  background: #e2efff;
  color: #1456b5;
  padding: 8px;
  font: 600 14px/1.3 system-ui;
  z-index: 3;
  border-radius: 6px;
}
.wb-dragging .wb-drop-zone {
  background: #dceaff66;
  outline: 1px dashed #86aee5;
  border-radius: 5px;
}
.wb-dragging .wb-drop-zone::before,
.wb-drop-active::before {
  background: #2e74d8;
  height: 3px;
}
.wb-dragging .wb-drop-zone .wb-insert-button {
  display: none;
}
.wb-dragging .wb-drop-zone .wb-drop-label {
  display: block;
}
.wb-drop-zone.wb-drop-active {
  background: #c9e1ff;
  outline: 2px solid #2869c5;
}
.wb-empty-drop {
  min-height: 118px;
  background: #f5f9ff;
  border: 1px dashed #a6c2e8;
  border-radius: 10px;
  padding: 20px;
}
.wb-empty-drop::before {
  display: none;
}
.wb-cells:has(> .wb-empty-drop) {
  display: block;
}
.admin .wb-image-placeholder {
  width: 100%;
  min-height: 180px !important;
  background: #f1f6fc;
  color: #416794;
  border: 1px dashed #afc4df;
  flex-direction: column;
  gap: 12px;
}
.wb-image-placeholder i {
  font-size: 38px !important;
}
.wb-gallery-editor {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.wb-property-content {
  padding: 20px 18px;
}
.wb-property-group {
  margin: 0 0 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e2e8f0;
}
.wb-property-group:last-child {
  border: 0;
}
.wb-property-group h3 {
  font-size: 15px;
  font-weight: 700;
  color: #3e5878;
  margin: 0 0 18px;
}
.wb-property-group > button {
  width: 100%;
  margin: 0 0 12px;
}
.wb-property-group label {
  margin-bottom: 18px;
}
.wb-property-group .check-label {
  margin-bottom: 18px;
}
.wb-device-note {
  padding: 12px;
  background: #eef4ff;
  border-radius: 8px;
  font-size: 14px;
  color: #395d8c;
}
.wb-property-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.wb-chooser-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.admin .wb-choose-block {
  min-height: 90px !important;
  flex-direction: column;
  border: 1px solid var(--ui-border);
  background: #fff;
  color: #345474;
}
.wb-choose-block i {
  font-size: 27px !important;
}
/* Settings uses explicit panels rather than guessing sections from headings. */
.admin .settings-form {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  background: transparent;
  padding: 0;
}
.wb-settings-nav {
  display: grid;
  gap: 7px;
  position: sticky;
  top: 20px;
}
.admin .wb-settings-nav button {
  justify-content: flex-start;
  text-align: left;
  background: transparent;
  border-color: transparent;
  padding: 13px !important;
}
.admin .wb-settings-nav button.active {
  background: #e5efff;
  color: #154fa9;
  border-color: #c8daf6;
}
.wb-settings-content {
  min-width: 0;
  background: white;
  border: 1px solid var(--ui-border);
  border-radius: 14px;
  padding: 26px;
}
.wb-settings-panel .studio-configuration > h3 {
  display: none;
}
.wb-settings-actions {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  position: sticky;
  bottom: 12px;
  background: #fff;
  border: 1px solid var(--ui-border);
  padding: 16px 20px;
  border-radius: 12px;
  z-index: 15;
  box-shadow: 0 3px 15px #223b5a10;
}
.admin .wb-settings-actions > button {
  position: static !important;
  margin: 0;
  min-width: 180px;
}
.wb-settings-actions > span {
  font-size: 14px;
  color: var(--ui-muted);
  margin-right: auto;
}
.wb-menu-layout {
  display: grid;
  grid-template-columns: minmax(230px, 0.8fr) minmax(0, 1.5fr);
  gap: 26px;
  align-items: start;
}
.wb-menu-page-panel {
  position: sticky;
  top: 18px;
  background: #f6f9fd;
  border: 1px solid #dce5ef;
  border-radius: 11px;
  padding: 18px;
}
.wb-page-checks {
  display: grid;
  gap: 6px;
  max-height: 360px;
  overflow: auto;
  margin: 16px 0;
  padding: 8px;
}
.wb-page-checks .check-label {
  padding: 7px;
  background: #fff;
  border: 1px solid #e1e8f0;
  border-radius: 7px;
}
.admin .wb-menu-page-panel > button {
  width: 100%;
  margin-top: 10px;
}
.wb-menu-structure {
  min-width: 0;
}
.wb-menu-row {
  border: 1px solid var(--ui-border);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 18px;
  background: #fff;
}
.wb-menu-row > .toolbar {
  display: grid;
  grid-template-columns: 44px minmax(100px, 1fr) minmax(120px, 1.1fr) 44px;
  gap: 10px;
  align-items: end;
  margin-bottom: 16px;
}
.wb-menu-row > .toolbar > label {
  margin: 0;
  font-size: 14px !important;
}
.admin .wb-menu-row > .toolbar > button span {
  display: none;
}
.admin .wb-menu-row > .toolbar > button {
  padding: 8px !important;
}
.wb-menu-row > label {
  font-size: 14px !important;
  margin-bottom: 12px;
}
.wb-menu-child.toolbar {
  display: grid;
  grid-template-columns: minmax(80px, 1fr) minmax(100px, 1fr) 44px;
  gap: 10px;
  padding: 16px 0 0 18px;
  border-left: 3px solid #d6e4fa;
  margin: 12px 0;
}
.wb-menu-child label {
  font-size: 14px !important;
}
.wb-menu-child button span {
  display: none;
}
.wb-menu-row.wb-drop-active {
  border: 2px solid #2871d6;
  background: #eff6ff;
}
.wb-menu-row > button {
  margin-top: 10px;
}
.admin .widget-card {
  padding: 18px;
  margin: 16px 0;
  border-radius: 10px;
}
.widget-card summary {
  font-size: 17px;
  min-height: 44px;
  cursor: pointer;
}
.widget-card .form-grid {
  margin-top: 20px;
}
.widget-card fieldset {
  max-height: 260px;
  overflow: auto;
}
.widget-card fieldset label {
  margin: 10px 0;
}
.admin .shipping-settings {
  margin-top: 30px;
}
.admin .shipping-row {
  padding: 20px;
  background: #f7f9fc;
  border: 1px solid var(--ui-border);
  border-radius: 12px;
  margin: 16px 0;
}
/* Dialogs, rich editor, media and secondary views share the same sizing. */
.admin dialog.modal {
  width: min(1080px, 94vw) !important;
  max-width: 94vw !important;
  max-height: 92dvh !important;
  padding: 0;
  border: 1px solid #cbd7e5;
  border-radius: 15px;
  background: white;
  color: #172b45;
  box-shadow: 0 25px 100px #122d4b55;
  overflow: hidden;
}
.admin dialog::backdrop {
  background: #172b4566;
  backdrop-filter: blur(2px);
}
.admin dialog > .view-heading {
  padding: 18px 24px;
  margin: 0;
  border-bottom: 1px solid var(--ui-border);
  position: relative;
}
.admin dialog > .view-heading h2 {
  margin: 0;
  font-size: 21px;
}
.admin dialog > .modal-content {
  padding: 24px;
  max-height: calc(92dvh - 86px);
  overflow: auto;
}
.admin dialog > .modal-content > form {
  max-width: none;
  width: 100%;
}
.admin .rich-modal {
  width: min(1300px, 96vw) !important;
}
.admin .rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
  padding: 16px;
  background: #f4f7fc;
  border: 1px solid var(--ui-border);
  border-radius: 10px;
  position: sticky;
  top: 0;
  z-index: 8;
  margin: 14px 0;
}
.admin .rich-toolbar button {
  min-width: 70px;
  min-height: 46px !important;
  background: #fff;
  border: 1px solid #c8d5e6;
  font-size: 15px !important;
  padding: 11px 13px !important;
  color: #253d5a;
}
.admin .rich-toolbar button i {
  font-size: 19px;
}
.admin .rich-toolbar button span {
  display: inline;
}
.admin .wb-rich-control {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 0;
  font-size: 12px !important;
  min-width: 100px;
  max-width: 200px;
}
.admin .wb-rich-control input,
.admin .wb-rich-control select {
  width: 100% !important;
  min-width: 90px;
  height: 46px !important;
}
.admin .wb-rich-control:has(input[type="color"]) {
  min-width: 100px;
  max-width: 140px;
}
.admin .rich-editor {
  font:
    18px/1.7 Arial,
    sans-serif;
  min-height: 340px;
  max-height: none;
  padding: 28px;
  border: 1px solid #b7c9e2;
  border-radius: 9px;
  background: #fff;
  overflow: auto;
  outline: none;
}
.admin .rich-editor:focus {
  border-color: #397de2;
  box-shadow: 0 0 0 3px #397de215;
}
.admin .rich-actions {
  position: sticky;
  bottom: 0;
  background: white;
  border-top: 1px solid #d5dfe9;
  padding: 16px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 16px;
}
.admin .rich-image-bar {
  padding: 14px;
  background: #eff5ff;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.admin .rich-image-bar:empty {
  display: none;
}
.admin .html-source {
  font:
    15px/1.7 ui-monospace,
    monospace !important;
  min-height: 360px;
  background: #14263f !important;
  color: #dceaff !important;
  padding: 20px !important;
}
.admin .studio-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  background: #f0f4fa;
  border-radius: 10px;
  margin-bottom: 16px;
  position: static;
}
.admin .studio-tabs button {
  font-size: 15px !important;
}
.admin .studio-tabs button.active {
  background: #205bd8;
  color: #fff;
}
.admin .icon-picker {
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
  max-height: 55dvh;
  overflow: auto;
  display: grid;
  margin-top: 20px;
}
.admin .icon-choice {
  min-height: 110px !important;
  flex-direction: column;
  background: #f6f9fd;
  color: #243f60;
  border: 1px solid #cedbeb;
  padding: 16px !important;
  gap: 14px;
}
.admin .icon-choice i {
  font-size: 30px;
}
.admin .icon-choice small {
  font-size: 12px !important;
  overflow-wrap: anywhere;
}
.admin .media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 22px;
  margin-top: 24px;
}
.admin .media-card {
  padding: 16px;
  border: 1px solid var(--ui-border);
  border-radius: 12px;
  min-width: 0;
  background: white;
}
.admin .media-card img,
.admin .media-card video {
  height: 180px;
  object-fit: contain;
  width: 100%;
  background: #f1f5fa;
  border-radius: 8px;
  margin-bottom: 14px;
}
.admin .media-card strong {
  font-size: 16px;
  overflow-wrap: anywhere;
}
.admin .media-card .toolbar {
  margin-top: 12px;
  gap: 10px;
}
.admin .media-card .toolbar button {
  font-size: 14px !important;
  padding: 10px !important;
}
.admin .product-tab {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.admin .product-tab .variant-editor {
  grid-column: 1/-1;
}
.admin .variant-row,
.admin .shipping-row {
  border: 1px solid var(--ui-border);
  padding: 18px;
  border-radius: 10px;
  background: #f7f9fd;
  margin-bottom: 16px;
}
.admin .stats-grid {
  gap: 20px;
}
.admin .stat {
  padding: 22px;
  border-radius: 12px;
  background: white;
  border: 1px solid var(--ui-border);
}
.admin .stat small {
  font-size: 14px !important;
}
.admin .stat strong {
  font-size: 28px !important;
}
.admin .form-card,
.admin .maintenance-card,
.admin .account-card {
  padding: 24px;
  border-radius: 12px;
  border: 1px solid var(--ui-border);
  background: #fff;
}
.admin .auth-card {
  width: min(500px, 92vw);
  padding: 36px;
  border: 1px solid var(--ui-border);
  border-radius: 18px;
  background: #fff;
}
.admin .auth-card label {
  margin: 18px 0;
}
.admin .auth-card .brand {
  color: #205bd8;
  font-size: 24px;
}
.admin .auth-card button {
  width: 100%;
  margin-top: 10px;
}
.admin #toast {
  font-size: 16px;
  line-height: 1.5;
  max-width: min(560px, 90vw);
  padding: 16px 22px;
  border-radius: 10px;
  z-index: 9999;
}
@media (min-width: 1550px) {
  .wb-editor-body {
    grid-template-columns: 290px minmax(0, 1fr) 360px;
  }
  .admin .wb-devices button span {
    display: inline;
  }
}
@media (max-width: 1250px) {
  .wb-editor-body {
    grid-template-columns: 230px minmax(0, 1fr) 290px;
  }
  .wb-editor-header {
    padding: 10px 14px;
  }
  .wb-editor-title {
    min-width: 150px;
  }
  .wb-editor-title strong {
    max-width: 180px;
  }
  .wb-editor-actions {
    gap: 5px;
  }
  .wb-editor-actions button span {
    display: none;
  }
  .wb-editor-actions button.wb-primary span {
    display: inline;
  }
  .wb-stage {
    padding: 22px 20px 60px;
  }
  .wb-settings-content {
    padding: 20px;
  }
  .wb-menu-layout {
    grid-template-columns: 1fr;
  }
  .wb-menu-page-panel {
    position: static;
  }
  .wb-page-checks {
    max-height: 220px;
  }
  .wb-menu-row > .toolbar {
    grid-template-columns: 44px minmax(100px, 1fr) minmax(110px, 1fr) 44px;
  }
  .wb-shell {
    grid-template-columns: 205px minmax(0, 1fr);
  }
  .wb-workspace {
    padding: 26px;
  }
  .admin .settings-form {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 18px;
  }
}
@media (max-width: 960px) {
  .wb-shell {
    grid-template-columns: 175px minmax(0, 1fr);
  }
  .wb-navigation {
    padding: 20px 8px;
  }
  .wb-logo {
    font-size: 17px;
    padding: 0 5px 22px;
  }
  .wb-logo > i {
    font-size: 23px;
  }
  .admin .wb-nav-link {
    font-size: 14px !important;
    padding: 10px !important;
  }
  .wb-workspace {
    padding: 22px;
  }
  .wb-app-header {
    padding: 0 22px;
  }
  .wb-user {
    display: none;
  }
  .wb-page-row {
    flex-wrap: wrap;
    gap: 14px;
  }
  .wb-page-actions {
    width: 100%;
    padding-left: 66px;
  }
  .admin .settings-form {
    display: block;
  }
  .wb-settings-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 18px;
  }
  .wb-settings-content {
    padding: 20px;
  }
  .wb-settings-actions {
    margin-top: 18px;
  }
  .wb-editor-body {
    grid-template-columns: 200px minmax(320px, 1fr) 280px;
    overflow: auto;
  }
  .wb-library,
  .wb-properties {
    overflow: auto;
  }
  .wb-stage {
    padding: 18px 14px 60px;
  }
  .wb-stage > .canvas {
    padding: 14px;
  }
  .wb-palette-grid {
    gap: 7px;
  }
  .admin .wb-block-tile {
    font-size: 13px !important;
  }
  .wb-library #builder-library {
    padding: 14px 12px;
  }
  .wb-property-content {
    padding: 18px 14px;
  }
  .wb-editor-header {
    gap: 10px;
  }
}
@media (max-width: 700px) {
  .wb-shell {
    display: block;
  }
  .wb-navigation {
    height: auto;
    position: relative;
    flex-direction: row;
    overflow: auto;
    padding: 10px;
    gap: 6px;
    align-items: center;
    border-right: 0;
    border-bottom: 1px solid var(--ui-border);
  }
  .wb-logo {
    padding: 0 10px;
    white-space: nowrap;
  }
  .wb-logo small {
    display: none;
  }
  .admin .wb-nav-link {
    flex-shrink: 0;
  }
  .wb-nav-link span {
    display: none;
  }
  .wb-nav-footer {
    display: none;
  }
  .wb-app-header {
    height: 66px;
    padding: 0 16px;
  }
  .wb-workspace {
    padding: 20px 14px;
  }
  .admin .view-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
  .admin h1 {
    font-size: 26px !important;
  }
  .wb-global-links {
    gap: 8px;
  }
  .admin .wb-global-links button {
    font-size: 14px !important;
  }
  .wb-page-filters {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }
  .wb-page-filters > label {
    white-space: normal;
  }
  .wb-page-actions {
    padding: 0;
  }
  .wb-page-symbol {
    width: 42px;
    height: 48px;
  }
  .wb-page-info h2 {
    font-size: 18px;
  }
  .admin .form-grid,
  .admin .product-tab {
    grid-template-columns: 1fr;
  }
  .wb-menu-row > .toolbar {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
  }
  .wb-menu-row > .toolbar > label:nth-of-type(2) {
    grid-column: 2;
  }
  .wb-menu-row > .toolbar > button:last-child {
    grid-column: 3;
    grid-row: 1;
  }
  .wb-menu-child.toolbar {
    grid-template-columns: 1fr 44px;
    padding-left: 12px;
  }
  .wb-menu-child label {
    grid-column: 1;
  }
  .wb-menu-child button {
    grid-column: 2;
    grid-row: 1;
  }
  .wb-settings-actions {
    flex-wrap: wrap;
    position: static;
  }
  .wb-settings-actions > span {
    width: 100%;
  }
  .admin .wb-settings-actions > button {
    width: 100%;
  }
  .wb-editor-header {
    position: relative;
  }
  .wb-editor-title {
    flex: 1;
  }
  .wb-devices {
    order: 2;
  }
  .wb-editor-actions {
    margin-left: auto;
  }
  .wb-editor-actions button[aria-label="Deshacer"],
  .wb-editor-actions button[aria-label="Rehacer"] {
    display: none;
  }
  .wb-editor-body {
    display: flex;
    flex-direction: column;
    overflow: auto;
  }
  .wb-library {
    max-height: 280px;
    flex-shrink: 0;
    border-bottom: 1px solid var(--ui-border);
    overflow: auto;
  }
  .wb-library .wb-panel-heading {
    display: none;
  }
  .wb-library-tabs {
    padding-top: 10px;
  }
  .wb-palette-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }
  .wb-library h3 {
    margin: 16px 0 8px;
  }
  .wb-library .hint {
    margin-bottom: 10px;
  }
  .wb-stage {
    flex-shrink: 0;
    min-height: 480px;
    overflow: auto;
    padding: 20px 14px 35px;
  }
  .wb-stage > .canvas {
    min-width: 320px;
  }
  .wb-properties {
    flex-shrink: 0;
    max-height: 75dvh;
    border-top: 1px solid var(--ui-border);
  }
  .wb-property-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .wb-property-group h3 {
    grid-column: 1/-1;
  }
  .wb-property-group > label {
    margin: 0;
  }
  .wb-property-tabs {
    padding-top: 12px;
  }
  .wb-property-group > button {
    margin: 0;
  }
  .wb-chooser-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin dialog > .modal-content {
    padding: 18px;
  }
  .admin .rich-toolbar {
    position: relative;
    padding: 12px;
    gap: 8px;
  }
  .admin .rich-toolbar button {
    font-size: 14px !important;
    min-width: 70px;
  }
  .admin .rich-editor {
    padding: 18px;
  }
  .admin .rich-actions {
    position: relative;
    flex-wrap: wrap;
  }
  .admin .rich-actions button {
    width: 100%;
  }
  .admin .rich-actions small {
    width: 100%;
  }
  .admin .media-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}
@media (prefers-reduced-motion: reduce) {
  .admin * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
.admin .wb-property-group > summary {
  font-size: 16px;
  font-weight: 650;
  color: #385477;
  cursor: pointer;
  min-height: 44px;
  display: list-item;
  list-style-position: inside;
  padding: 10px 0;
  margin: 0 0 12px;
}
.admin .wb-property-group:not([open]) {
  padding-bottom: 8px;
  margin-bottom: 12px;
}
.admin .wb-property-group:not([open]) > summary {
  margin-bottom: 0;
}
.admin .wb-property-group > summary::marker {
  color: #6689b5;
}
.wb-cell > .wb-node > .wb-block-content {
  min-height: 110px;
}
.wb-drop-active > .wb-drop-label {
  display: block;
}

.admin .wb-rich-extra {
  width: 100%;
  border-top: 1px solid #d7e0ec;
  padding-top: 6px;
}
.admin .wb-rich-extra > summary {
  font-size: 15px;
  font-weight: 600;
  min-height: 44px;
  padding: 10px 4px;
  cursor: pointer;
  color: #325783;
}
.admin .wb-rich-extra > div {
  display: flex;
  gap: 10px;
  align-items: end;
  flex-wrap: wrap;
  padding: 8px 0;
}
.admin .wb-rich-extra:not([open]) > div {
  display: none;
}

.admin .rich-editor h1 {
  font-size: 2em;
}
.admin .rich-editor h2 {
  font-size: 1.5em;
}
.admin .rich-editor h3 {
  font-size: 1.25em;
}
.admin .rich-editor h4 {
  font-size: 1.1em;
}

.wb-cell > .wb-drop-zone[data-column-id]:not([data-column-id=""]) {
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
  min-height: 44px;
}
.wb-cell
  > .wb-drop-zone[data-column-id]:not([data-column-id=""])
  .wb-insert-button {
  display: inline-flex;
}
.wb-cell > .wb-drop-zone[data-column-id]:not([data-column-id=""])::before {
  left: 0;
  right: 0;
  top: 50%;
  bottom: auto;
  width: auto;
  height: 1px;
}
.wb-cell
  > .wb-drop-zone[data-column-id]:not([data-column-id=""])
  .wb-drop-label {
  writing-mode: horizontal-tb;
}
