:root {
  --adm-bg: #f6f7f9;
  --adm-panel: #ffffff;
  --adm-line: #e5e7eb;
  --adm-text: #111827;
  --adm-muted: #6b7280;
  --adm-accent: #111111;
}

.admin-modern-page {
  margin: 0;
  background: var(--adm-bg);
  color: var(--adm-text);
  font-family: "Montserrat", Helvetica, Arial, sans-serif;
}

.adm-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 220px 1fr;
}

.adm-shell.adm-shell--with-pages-rail {
  grid-template-columns: 220px 260px 1fr;
}

.adm-shell.adm-shell--with-landings-rail {
  grid-template-columns: 220px 300px 1fr;
}

.adm-shell.adm-shell--with-menu-rail {
  grid-template-columns: 220px 380px 1fr;
}

.adm-shell.adm-shell--with-images-rail {
  grid-template-columns: 220px 360px 1fr;
}

.adm-sidebar {
  background: #0f172a;
  color: #f8fafc;
  padding: 12px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.adm-brand {
  font-size: 15px;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
  font-weight: 400;
}

.adm-sub {
  font-size: 11px;
  color: #cbd5e1;
  margin: 0 0 16px;
}

.adm-card .adm-sub {
  color: var(--adm-muted);
}

.adm-nav {
  display: grid;
  gap: 6px;
}

.adm-nav button {
  border: 1px solid #1f2937;
  background: #111827;
  color: #e5e7eb;
  padding: 8px 10px;
  text-align: left;
  border-radius: 10px;
  cursor: pointer;
  font-size: 12px;
}

.adm-nav button.active {
  background: #f8fafc;
  color: #111827;
  border-color: #f8fafc;
}

.adm-content {
  padding: 14px;
}

.adm-pages-rail {
  background: #ffffff;
  border-right: 1px solid var(--adm-line);
  padding: 12px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
}

.adm-menu-rail {
  background: #ffffff;
  border-right: 1px solid var(--adm-line);
  padding: 12px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
}

.adm-images-rail {
  background: #ffffff;
  border-right: 1px solid var(--adm-line);
  padding: 12px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
}

.adm-pages-rail__title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.adm-pages-rail__hint {
  margin: 6px 0 10px;
  font-size: 11px;
  color: var(--adm-muted);
}

.adm-pages-rail__actions {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}

.adm-pages-rail__actions .adm-btn,
.adm-pages-rail__actions .adm-btn-secondary {
  width: 100%;
}

.adm-pages-rail__list {
  display: grid;
  gap: 6px;
}

.adm-pages-rail__item {
  border: 1px solid #d1d5db;
  background: #f8fafc;
  color: #111827;
  padding: 8px 10px;
  text-align: left;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
}

.adm-pages-rail__item.active {
  border-color: #111827;
  background: #111827;
  color: #ffffff;
}

.adm-topbar {
  background: var(--adm-panel);
  border: 1px solid var(--adm-line);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.adm-topbar h1 {
  margin: 0;
  font-size: 17px;
  font-weight: 400;
}

.adm-topbar p {
  margin: 4px 0 0;
  color: var(--adm-muted);
  font-size: 12px;
}

.adm-btn,
.adm-btn-secondary,
.adm-btn-danger {
  border: 1px solid var(--adm-accent);
  background: var(--adm-accent);
  color: #fff;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 11px;
  cursor: pointer;
}

.adm-btn-secondary {
  background: #fff;
  color: var(--adm-text);
  border-color: #d1d5db;
}

.adm-btn-danger {
  background: #dc2626;
  border-color: #dc2626;
}

.adm-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 8px;
}

.adm-card {
  background: var(--adm-panel);
  border: 1px solid var(--adm-line);
  border-radius: 10px;
  padding: 10px;
}

.adm-card details {
  margin-top: 10px;
}

.adm-card summary {
  cursor: pointer;
  list-style: none;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 8px;
  border: 1px solid var(--adm-line);
  border-radius: 10px;
  background: #f9fafb;
}

.adm-metric {
  grid-column: span 4;
}

.adm-metric h3 {
  margin: 0;
  font-size: 12px;
  color: var(--adm-muted);
  font-weight: 400;
}

.adm-metric p {
  margin: 8px 0 0;
  font-size: 18px;
  font-weight: 500;
}

.adm-section-title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 400;
}

.adm-stack {
  display: grid;
  gap: 8px;
}

.adm-row {
  display: grid;
  gap: 4px;
}

.adm-row > span {
  font-size: 11px;
  color: var(--adm-muted);
}

.adm-row > input,
.adm-row > textarea,
.adm-row > select {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 8px;
  font-size: 13px;
  background: #fff;
}

.adm-row--image {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 8px;
  background: #f9fafb;
}

.adm-row__image-preview {
  display: grid;
  gap: 6px;
  margin-top: 6px;
  max-width: 220px;
}

.adm-row--title-toggle .adm-row__title-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.adm-row__title-input {
  width: min(460px, 100%);
  flex: 1 1 340px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 8px;
  font-size: 13px;
  background: #fff;
}

.adm-row__hero-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 12px;
  color: var(--adm-text);
}

.adm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.adm-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.adm-quick-btn {
  border: 1px solid #d1d5db;
  background: #fff;
  border-radius: 10px;
  padding: 10px;
  text-align: left;
  font-size: 12px;
  cursor: pointer;
}

.adm-bottom-nav {
  display: none;
}

.adm-bottom-spacer {
  display: none;
}

.adm-editor {
  border: 1px solid #d1d5db;
  border-radius: 9px;
  overflow: hidden;
  background: #fff;
}

.adm-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 6px;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
}

.adm-editor-toolbar .adm-btn-secondary {
  padding: 6px 9px;
  font-size: 11px;
}

.adm-editor-content {
  min-height: 170px;
  padding: 9px;
  outline: none;
  font-size: 13px;
  line-height: 1.45;
}

.adm-editor-content--textarea {
  display: block;
  width: 100%;
  min-height: 170px;
  resize: vertical;
  border: 0;
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
  font-size: 12px;
  line-height: 1.45;
  background: #fff;
}

.adm-editor-content p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.5;
}

.adm-editor-content h1,
.adm-editor-content h2,
.adm-editor-content h3 {
  margin: 0 0 10px;
  font-weight: 400;
  line-height: 1.2;
}

.adm-editor-content h1 {
  font-size: 24px;
}

.adm-editor-content h2 {
  font-size: 20px;
}

.adm-editor-content h3 {
  font-size: 17px;
}

.adm-editor-content ul,
.adm-editor-content ol {
  margin: 0 0 10px;
  padding-left: 22px;
}

.adm-editor-content blockquote {
  margin: 0 0 10px;
  padding-left: 12px;
  border-left: 3px solid #d1d5db;
  color: #374151;
}

.adm-editor-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 10px 0;
}

.adm-editor--template .adm-editor-toolbar {
  gap: 3px;
  padding: 5px;
}

.adm-editor--template .adm-editor-toolbar .adm-btn-secondary {
  padding: 4px 7px;
  font-size: 10px;
}

.adm-editor--template .adm-editor-content {
  min-height: 240px;
  max-height: 420px;
  overflow: auto;
  padding: 10px;
  font-size: 12px !important;
  line-height: 1.4 !important;
}

.adm-editor--template .adm-editor-content--textarea {
  min-height: 240px;
  max-height: 420px;
  overflow: auto;
  font-size: 12px !important;
  line-height: 1.4 !important;
}

.adm-editor--template .adm-editor-content p {
  font-size: 12px !important;
  line-height: 1.4 !important;
  margin: 0 0 7px !important;
}

.adm-editor--template .adm-editor-content h1 {
  font-size: 19px !important;
  margin: 0 0 7px !important;
}

.adm-editor--template .adm-editor-content h2 {
  font-size: 17px !important;
  margin: 0 0 7px !important;
}

.adm-editor--template .adm-editor-content h3 {
  font-size: 15px !important;
  margin: 0 0 7px !important;
}

.adm-editor--template .adm-editor-content ul,
.adm-editor--template .adm-editor-content ol {
  font-size: 12px !important;
  line-height: 1.4 !important;
  margin: 0 0 7px !important;
  padding-left: 18px !important;
}

.adm-editor--template .adm-editor-content blockquote {
  font-size: 12px !important;
  line-height: 1.4 !important;
  margin: 0 0 7px !important;
}

.adm-template-slots {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #f9fafb;
  padding: 10px;
}

.adm-template-slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}

.adm-template-slot {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  padding: 8px;
}

.adm-template-slot__title {
  margin: 0 0 8px;
  font-size: 12px;
  color: #374151;
}

.adm-template-slot__preview {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 180px;
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #6b7280;
  font-size: 11px;
  background: #f8fafc;
}

.adm-template-slot__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  border-radius: 6px;
}

.adm-page-preview {
  border: 1px solid #dbe1ea;
  border-radius: 10px;
  background: #f8fafc;
  padding: 8px;
}

.adm-page-preview .adm-sub {
  margin: 0 0 6px;
  font-size: 11px;
  color: #6b7280;
}

.adm-page-preview__frame {
  width: 100%;
  height: 520px;
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  background: #fff;
}

.adm-preview-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.adm-preview-toolbar span {
  font-size: 11px;
  color: #6b7280;
}

.adm-preview-toolbar select {
  border: 1px solid #d1d5db;
  border-radius: 7px;
  padding: 4px 8px;
  font-size: 12px;
  background: #fff;
}

.adm-preview-canvas {
  position: relative;
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  background: #dbe3ee;
  overflow: auto;
  min-height: 560px;
}

.adm-preview-canvas.is-mobile {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.adm-preview-canvas .adm-page-preview__frame {
  border: 0;
  display: block;
  background: #fff;
}

.adm-workbench {
  display: grid;
  grid-template-columns: minmax(360px, 46%) minmax(420px, 1fr);
  gap: 10px;
  align-items: start;
}

.adm-workbench__controls {
  display: grid;
  gap: 8px;
  align-content: start;
}

.adm-workbench__preview {
  position: sticky;
  top: 72px;
}

.adm-visual-builder {
  border: 1px solid #dbe1ea;
  border-radius: 10px;
  background: #f8fafc;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 8px;
  min-height: 520px;
  overflow: hidden;
}

.adm-visual-builder__left {
  border-right: 1px solid #dbe1ea;
  padding: 8px;
  background: #f3f6fa;
  display: grid;
  align-content: start;
  gap: 8px;
}

.adm-visual-builder__presets {
  display: grid;
  gap: 6px;
}

.adm-visual-builder__preset {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  min-height: 46px;
  text-align: left;
  padding: 8px;
  font-size: 12px;
  cursor: pointer;
}

.adm-visual-builder__sections {
  display: grid;
  gap: 6px;
  max-height: 260px;
  overflow: auto;
  padding-right: 4px;
}

.adm-visual-builder__section-row {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  padding: 6px;
  display: grid;
  gap: 6px;
  cursor: pointer;
}

.adm-visual-builder__section-row.active {
  border-color: #4f46e5;
  background: #eef2ff;
}

.adm-visual-builder__section-label {
  font-size: 12px;
  color: #111827;
}

.adm-visual-builder__editor {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  padding: 8px;
  display: grid;
  gap: 6px;
}

.adm-visual-builder__right {
  padding: 8px;
  background: #eef2f7;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 6px;
}

.adm-visual-builder__canvas {
  position: relative;
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  background: #dbe3ee;
  overflow: auto;
  min-height: 560px;
}

.adm-visual-builder__canvas.is-mobile {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.adm-visual-builder__zoom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.adm-visual-builder__zoom span {
  font-size: 11px;
  color: #6b7280;
}

.adm-visual-builder__zoom select {
  border: 1px solid #d1d5db;
  border-radius: 7px;
  padding: 4px 8px;
  font-size: 12px;
  background: #fff;
}

.adm-visual-builder__frame {
  border: 0;
  background: #fff;
  display: block;
}

.adm-split-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.adm-image-preview {
  width: 100%;
  max-width: 160px;
  border-radius: 10px;
  border: 1px solid var(--adm-line);
}

.adm-image-thumb {
  width: 100%;
  height: 108px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--adm-line);
  background: #f3f4f6;
}

.adm-image-library-grid {
  gap: 10px;
}

.adm-image-library-item {
  grid-column: span 2;
  padding: 10px;
}

.adm-image-url {
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.3;
  color: #6b7280;
  word-break: break-all;
}

.adm-status {
  margin-top: 10px;
  font-size: 13px;
  color: #0f766e;
}

.adm-seo-top {
  display: grid;
  gap: 10px;
}

.adm-seo-score-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.adm-seo-score {
  width: 84px;
  height: 84px;
  border-radius: 999px;
  border: 6px solid #111827;
  display: grid;
  place-items: center;
  font-size: 19px;
  font-weight: 600;
  background: #fff;
}

.adm-seo-score-label {
  margin: 0;
  font-size: 13px;
  color: #111827;
}

.adm-seo-bars {
  display: grid;
  gap: 10px;
}

.adm-seo-bar {
  display: grid;
  gap: 5px;
}

.adm-seo-bar__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #374151;
}

.adm-seo-bar__head strong {
  font-size: 12px;
  color: #111827;
}

.adm-seo-bar__track {
  height: 9px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}

.adm-seo-bar__fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.2s ease;
}

.adm-seo-bar__fill.ok {
  background: #16a34a;
}

.adm-seo-bar__fill.warn {
  background: #ca8a04;
}

.adm-seo-bar__fill.bad {
  background: #dc2626;
}

.adm-seo-item {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  padding: 10px;
  margin-top: 8px;
}

.adm-seo-item__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.adm-seo-item__head h4 {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: #111827;
}

.adm-seo-item__score {
  border: 1px solid #d1d5db;
  border-radius: 999px;
  font-size: 11px;
  padding: 4px 8px;
  background: #f9fafb;
}

.adm-seo-issues {
  margin: 8px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 4px;
  font-size: 12px;
  color: #374151;
}

.adm-inline-msg {
  margin: 4px 0 0;
  font-size: 11px;
  line-height: 1.35;
  color: #6b7280;
}

.adm-inline-msg.error {
  color: #b91c1c;
}

.adm-inline-msg.success {
  color: #166534;
}

.adm-login {
  width: min(480px, 94vw);
  margin: 72px auto;
}

.adm-login h2 {
  margin-top: 0;
  font-weight: 400;
}

.adm-menu-sim {
  border-style: dashed;
}

.adm-menu-sim__logo {
  min-height: 56px;
  border: 1px solid var(--adm-line);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 20px;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  background: #fff;
}

.adm-menu-sim__logo-image {
  width: 220px;
  max-width: 90%;
  height: 48px;
  object-fit: contain;
}

.adm-menu-diagram {
  position: relative;
  border: 1px solid var(--adm-line);
  border-radius: 10px;
  background: #f8fafc;
  min-height: 280px;
  padding: 14px;
  margin-bottom: 10px;
}

.adm-menu-diagram__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.adm-menu-diagram__row {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.adm-menu-diagram__row--root {
  margin-top: 6px;
  margin-bottom: 18px;
}

.adm-menu-diagram__node {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #111827;
  border-radius: 12px;
  padding: 7px 10px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.03);
  font-weight: 600;
  letter-spacing: 0.01em;
  font-size: 14px;
  line-height: 1.1;
  text-transform: none;
}

.adm-menu-diagram__node.root {
  border-color: #fecaca;
  background: #fff1f2;
}

.adm-menu-diagram__node.l1 {
  border-color: #fee2e2;
  background: #fff7f7;
}

.adm-menu-diagram__node.l2 {
  border-color: #dcfce7;
  background: #f7fff9;
}

.adm-menu-diagram__node.l3 {
  border-color: #ffedd5;
  background: #fffaf4;
}

.adm-menu-diagram__node.l4 {
  border-color: #e2e8f0;
  background: #f8fafc;
}

.adm-menu-diagram__icon {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 11px;
  line-height: 1;
  background: #111827;
  color: #fff;
  flex: 0 0 auto;
}

.adm-menu-diagram__text {
  white-space: nowrap;
  font-size: 13px;
}

.adm-menu-sim__row {
  min-height: 48px;
  border: 1px solid var(--adm-line);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px;
  margin-bottom: 10px;
  background: #fff;
}

.adm-menu-sim__chip {
  border: 1px solid #d1d5db;
  border-radius: 999px;
  font-size: 12px;
  padding: 5px 10px;
  background: #f9fafb;
}

.adm-menu-sim__tree {
  border: 1px solid var(--adm-line);
  border-radius: 10px;
  background: #fff;
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.adm-menu-sim__path {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 4px 8px;
  background: #fafafa;
}

.adm-menu-sim__badge {
  border-radius: 999px;
  font-size: 11px;
  padding: 4px 9px;
  border: 1px solid #d1d5db;
}

.adm-menu-sim__badge.l1 {
  background: #eef2ff;
}

.adm-menu-sim__badge.l2 {
  background: #f0fdf4;
}

.adm-menu-sim__badge.l3 {
  background: #fff7ed;
}

.adm-menu-sim__badge.l4 {
  background: #f8fafc;
}

.adm-menu-sim__arrow {
  font-size: 11px;
  color: #6b7280;
}

.adm-menu-flow {
  display: grid;
  gap: 8px;
}

.adm-menu-flow__row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.adm-menu-flow__node {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 11px;
  padding: 5px 9px;
  background: #fff;
}

.adm-menu-flow__node.l1 {
  background: #eef2ff;
}

.adm-menu-flow__node.l2 {
  background: #f0fdf4;
}

.adm-menu-flow__node.l3 {
  background: #fff7ed;
}

.adm-menu-flow__node.l4 {
  background: #f8fafc;
}

.adm-menu-flow__arrow {
  color: #6b7280;
  font-size: 13px;
  line-height: 1;
}

.adm-menu-preview {
  border: 1px solid var(--adm-line);
  border-radius: 10px;
  background: #fff;
  padding: 12px;
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}

.adm-menu-preview__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.adm-menu-preview__hint {
  margin: 0;
  font-size: 12px;
  color: #6b7280;
}

.adm-menu-preview__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.adm-menu-preview__tabs--top {
  padding-bottom: 6px;
  border-bottom: 1px solid #eceff3;
}

.adm-menu-preview__tab {
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: #fff;
  padding: 6px 2px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  color: #111827;
}

.adm-menu-preview__tab.sub {
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 6px 10px;
  background: #fafafa;
  font-size: 12px;
  font-weight: 400;
}

.adm-menu-preview__tab.active {
  border-color: #000 !important;
  color: #000;
}

.adm-menu-preview__panel {
  border: 1px solid #eceff3;
  border-radius: 10px;
  background: #f9fafb;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.adm-menu-preview__closed-state {
  border: 1px dashed #d1d5db;
  border-radius: 10px;
  background: #fafafa;
  padding: 14px;
  text-align: center;
  color: #6b7280;
  font-size: 12px;
}

.adm-menu-preview__breadcrumb {
  font-size: 12px;
  color: #374151;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 6px 10px;
  justify-self: start;
}

.adm-menu-preview__panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.adm-menu-preview__panel-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.adm-menu-preview__close {
  width: 28px;
  height: 28px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  line-height: 1;
}

.adm-menu-preview__level-label {
  font-size: 11px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.adm-menu-preview__group-subtitle {
  font-size: 12px;
  color: #111827;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.adm-menu-preview__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 120px));
  justify-content: center;
  gap: 10px;
}

.adm-menu-preview__card {
  text-align: center;
}

.adm-menu-preview__card img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  border-radius: 4px;
}

.adm-menu-preview__card span {
  display: block;
  margin-top: 6px;
  font-size: 11px;
}

.adm-menu-preview__empty {
  margin: 0;
  font-size: 12px;
  color: #6b7280;
}

.adm-menu-tree {
  border: 1px solid var(--adm-line);
  border-radius: 10px;
  background: #fff;
  padding: 8px;
  display: grid;
  gap: 6px;
}

.adm-menu-tree__empty {
  margin: 0;
  color: #6b7280;
  font-size: 13px;
  padding: 8px;
}

.adm-menu-tree-row {
  position: relative;
  min-height: 42px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fafafa;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  cursor: grab;
  transition: border-color 0.12s ease, background-color 0.12s ease;
}

.adm-menu-tree-row.drag-source {
  opacity: 0.55;
}

.adm-menu-tree-row[data-level='0'] {
  padding-left: 10px;
  background: #fff7f7;
}

.adm-menu-tree-row[data-level='1'] {
  padding-left: 28px;
}

.adm-menu-tree-row[data-level='2'] {
  padding-left: 46px;
}

.adm-menu-tree-row[data-level='3'] {
  padding-left: 64px;
}

.adm-menu-tree-row__handle {
  color: #6b7280;
  letter-spacing: 0.12em;
  font-weight: 700;
  user-select: none;
}

.adm-menu-tree-row__badge {
  font-size: 11px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 3px 8px;
  background: #fff;
  color: #374151;
}

.adm-menu-tree-row__title {
  font-size: 13px;
  color: #111827;
}

.adm-menu-tree-row.drop-before {
  border-top: 3px solid #d10000;
}

.adm-menu-tree-row.drop-after {
  border-bottom: 3px solid #d10000;
}

.adm-menu-tree-row.drop-inside {
  border-color: #d10000;
  background: #fff1f2;
}

@media (max-width: 960px) {
  .adm-menu-diagram {
    min-height: 210px;
  }

  .adm-menu-diagram__row {
    gap: 10px;
    margin-bottom: 8px;
  }

  .adm-menu-diagram__text {
    font-size: 12px;
  }
}

.adm-mobile-toggle {
  display: none;
}

@media (max-width: 960px) {
  .adm-shell {
    grid-template-columns: 1fr;
  }

  .adm-sidebar {
    position: static;
    height: auto;
    display: none;
  }

  .adm-sidebar.open {
    display: block;
  }

  .adm-pages-rail {
    display: none;
  }

  .adm-menu-rail {
    display: none;
  }

  .adm-images-rail {
    display: none;
  }

  .adm-mobile-toggle {
    display: inline-flex;
  }

  .adm-metric {
    grid-column: span 12;
  }

  .adm-split-2 {
    grid-template-columns: 1fr;
  }

  .adm-content {
    padding: 14px;
  }

  .adm-topbar {
    position: sticky;
    top: 0;
    z-index: 10;
  }

  .adm-quick-grid {
    grid-template-columns: 1fr 1fr;
  }

  .adm-image-library-item {
    grid-column: span 6;
  }

  .adm-workbench {
    grid-template-columns: 1fr;
  }

  .adm-workbench__preview {
    position: static;
  }

  .adm-page-preview__frame {
    height: 360px;
  }

  .adm-preview-canvas {
    min-height: 420px;
  }

  .adm-visual-builder {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .adm-visual-builder__left {
    border-right: 0;
    border-bottom: 1px solid #dbe1ea;
  }

  .adm-visual-builder__frame {
    transform: scale(0.42) !important;
  }

  .adm-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    border-top: 1px solid #e5e7eb;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(8px);
  }

  .adm-bottom-nav button {
    border: 1px solid #d1d5db;
    background: #fff;
    border-radius: 10px;
    min-height: 42px;
    font-size: 11px;
    cursor: pointer;
  }

  .adm-bottom-nav button.active {
    background: #111827;
    color: #fff;
    border-color: #111827;
  }

  .adm-bottom-spacer {
    display: block;
    height: 84px;
  }
}
