:root {
  --ink: #17202e;
  --muted: #6e7888;
  --line: #e5e9ef;
  --soft: #f4f6f8;
  --panel: #ffffff;
  --nav: #182435;
  --nav-soft: #253247;
  --brand: #147d72;
  --brand-deep: #0b625b;
  --brand-soft: #e8f5f2;
  --gold: #d39b3b;
  --danger: #c74848;
  --shadow: 0 12px 30px rgba(25, 39, 55, .08);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  color: var(--ink);
  background: #eef1f4;
  letter-spacing: 0;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(20, 125, 114, .18);
  outline-offset: 2px;
}

.shell { min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  height: 68px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 210px; }
.brand-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  display: block;
}
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: white;
  border-radius: 7px;
  font-weight: 800;
  font-family: Georgia, serif;
  font-size: 21px;
}
.brand strong { display: block; font-size: 17px; }
.brand span { color: var(--muted); font-size: 11px; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.user-menu { display: flex; align-items: center; gap: 8px; padding-left: 8px; border-left: 1px solid var(--line); }
.user-avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--nav); color: white; font-size: 12px; font-weight: 800; }
.user-name { font-size: 12px; font-weight: 700; }
.search {
  width: min(34vw, 420px);
  position: relative;
}
.search input {
  width: 100%;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
  padding: 0 40px 0 14px;
}
.search .search-icon {
  position: absolute;
  right: 13px;
  top: 9px;
  color: var(--muted);
  font-size: 17px;
}
.btn {
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.btn.primary { color: white; background: var(--brand); }
.btn.primary:hover { background: var(--brand-deep); }
.btn.secondary { color: var(--brand-deep); background: var(--brand-soft); }
.btn.ghost { color: var(--ink); background: white; border-color: var(--line); }
.btn.danger { color: white; background: var(--danger); }
.btn.small { min-height: 31px; padding: 0 10px; font-size: 12px; }
.icon-btn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 6px;
  color: var(--muted);
  display: grid;
  place-items: center;
  font-size: 18px;
}
.icon-btn:hover { color: var(--brand); border-color: #a9d3cc; }
.main-layout { flex: 1; display: grid; grid-template-columns: 112px 240px minmax(0, 1fr); }

.primary-nav,
.secondary-nav {
  position: sticky;
  top: 68px;
  align-self: start;
  height: calc(100vh - 68px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.primary-nav {
  background: var(--nav);
  color: white;
  padding: 18px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.primary-item {
  width: 100%;
  min-height: 76px;
  border: 0;
  color: #b8c2d1;
  background: transparent;
  border-radius: 7px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 12px;
}
.primary-item:hover { background: rgba(255,255,255,.06); color: white; }
.primary-item.active { background: var(--nav-soft); color: white; box-shadow: inset 3px 0 0 var(--gold); }
.category-icon {
  width: 35px;
  height: 35px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 800;
  font-size: 14px;
}
.category-icon-edit {
  padding: 0;
  border: 0;
  cursor: pointer;
  flex: 0 0 auto;
}
.category-icon-edit:hover { outline: 2px solid rgba(20, 125, 114, .28); outline-offset: 2px; }

.secondary-nav {
  min-height: calc(100vh - 68px);
  background: #f7f8fa;
  border-right: 1px solid var(--line);
  padding: 23px 18px;
}
.side-heading { margin-bottom: 18px; }
.side-heading .eyebrow { margin-bottom: 5px; }
.side-heading h2 { font-size: 19px; margin: 0; }
.category-group { margin-bottom: 9px; }
.secondary-row { display: flex; align-items: stretch; gap: 4px; }
.secondary-expand {
  width: 32px;
  min-height: 46px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--brand);
  font-size: 20px;
  font-weight: 700;
}
.secondary-expand:hover { background: var(--brand-soft); }
.secondary-expand.open { color: var(--brand-deep); }
.secondary-expand.empty {
  display: block;
  flex: 0 0 32px;
  pointer-events: none;
}
.secondary-trigger {
  flex: 1;
  min-height: 46px;
  border: 0;
  background: transparent;
  padding: 0 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 6px;
  color: #344052;
  font-weight: 700;
  text-align: left;
}
.secondary-trigger:hover, .secondary-trigger.open { background: white; }
.secondary-trigger.selected { background: white; color: var(--brand-deep); }
.chevron { transition: transform .2s ease; color: #8d97a5; }
.secondary-trigger.open .chevron { transform: rotate(90deg); }
.tertiary-list { padding: 3px 0 7px 15px; }
.tertiary-item {
  width: 100%;
  min-height: 39px;
  padding: 7px 10px 7px 15px;
  border: 0;
  border-left: 2px solid #dbe1e7;
  background: transparent;
  color: var(--muted);
  text-align: left;
  font-size: 13px;
  line-height: 1.4;
}
.tertiary-item:hover { color: var(--brand-deep); }
.tertiary-item.active { color: var(--brand-deep); border-left-color: var(--brand); font-weight: 700; }

.content-area { padding: 26px 30px 50px; min-width: 0; background: #fff; }
.breadcrumbs { color: var(--muted); font-size: 12px; margin-bottom: 17px; display: flex; gap: 7px; align-items: center; }
.content-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}
.content-head h1 { font-size: 26px; margin: 4px 0 8px; }
.content-head p { margin: 0; color: var(--muted); font-size: 13px; }
.eyebrow { margin: 0; color: var(--brand); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.meta-pill { background: var(--soft); color: var(--muted); padding: 8px 11px; border-radius: 999px; font-size: 12px; white-space: nowrap; }
.quaternary-tabs {
  position: sticky;
  top: 68px;
  z-index: 15;
  display: flex;
  gap: 4px;
  min-height: 53px;
  align-items: flex-end;
  padding-top: 4px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  overflow-x: auto;
  margin-bottom: 26px;
  box-shadow: 0 1px 0 rgba(229, 233, 239, .9);
}
.tab {
  min-width: 112px;
  padding: 12px 15px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  white-space: nowrap;
  font-weight: 700;
}
.tab:hover { color: var(--ink); }
.tab.active { color: var(--brand-deep); border-bottom-color: var(--brand); }
.article { max-width: 980px; }
.content-block { margin: 0 0 25px; }
.content-block h2 { font-size: 20px; margin: 0 0 11px; }
.content-block p { font-size: 15px; line-height: 1.85; color: #3d4653; margin: 0; }
.note {
  border-left: 4px solid var(--gold);
  background: #fff9eb;
  padding: 15px 17px;
  color: #604c27;
  line-height: 1.7;
}
.article-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 7px;
  display: block;
  background: var(--soft);
}
.image-caption { font-size: 12px; color: var(--muted); margin-top: 7px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th, .data-table td { border: 1px solid var(--line); padding: 12px 13px; text-align: left; }
.data-table th { background: var(--soft); color: #445064; }
.video-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  background: #101a27;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: white;
  overflow: hidden;
}
.video-frame iframe { width: 100%; height: 100%; border: 0; }
.empty-state { padding: 80px 20px; text-align: center; color: var(--muted); }
.empty-state strong { color: var(--ink); display: block; font-size: 17px; margin-bottom: 7px; }

/* Admin */
.admin-shell { min-height: calc(100vh - 68px); display: grid; grid-template-columns: 220px minmax(0, 1fr); }
.admin-nav { background: var(--nav); color: white; padding: 24px 14px; }
.admin-nav-title { padding: 0 11px 18px; color: #8490a1; font-size: 11px; font-weight: 800; }
.admin-nav button {
  width: 100%;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: #b9c2cf;
  border-radius: 6px;
  text-align: left;
  padding: 0 13px;
  margin-bottom: 5px;
  font-weight: 700;
}
.admin-nav button.active, .admin-nav button:hover { color: white; background: var(--nav-soft); }
.admin-nav-title.settings-title { margin-top: 22px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); }
.admin-main { padding: 28px 32px 50px; min-width: 0; }
.page-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
.page-title h1 { margin: 3px 0 6px; font-size: 25px; }
.page-title p { margin: 0; color: var(--muted); font-size: 13px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.stat { background: white; border: 1px solid var(--line); padding: 16px; border-radius: 7px; }
.stat b { font-size: 25px; display: block; margin-bottom: 3px; }
.stat span { color: var(--muted); font-size: 12px; }
.panel { background: white; border: 1px solid var(--line); border-radius: 7px; }
.panel-head { min-height: 58px; padding: 0 17px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.panel-head h2 { margin: 0; font-size: 15px; }
.panel-head-actions { display: flex; align-items: center; gap: 9px; }
.panel-body { padding: 17px; }
.analytics-title { align-items: flex-end; }
.analytics-filters { display: flex; align-items: flex-end; gap: 10px; }
.analytics-filters label { display: grid; gap: 6px; color: #4f5b6c; font-size: 12px; font-weight: 700; }
.analytics-filters select {
  min-width: 118px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  background: white;
  color: var(--ink);
}
.analytics-summary { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.analytics-stat { position: relative; min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 7px; background: white; }
.analytics-stat span { display: block; color: var(--muted); font-size: 12px; }
.analytics-stat strong { display: block; margin-top: 9px; font-size: 25px; line-height: 1; }
.analytics-stat em { position: absolute; right: 14px; bottom: 14px; color: #9aa4b1; font-size: 10px; font-style: normal; font-weight: 800; }
.analytics-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.analytics-panel { min-width: 0; }
.analytics-wide, .analytics-device-panel { grid-column: 1 / -1; }
.analytics-panel .panel-body { min-height: 160px; }
.analytics-legend { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 11px; }
.analytics-legend span { display: flex; align-items: center; gap: 5px; }
.analytics-legend i { width: 9px; height: 9px; border-radius: 2px; }
.analytics-legend .views, .analytics-bars .views { background: var(--brand); }
.analytics-legend .visitors, .analytics-bars .visitors { background: var(--gold); }
.analytics-chart {
  height: 240px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20px, 1fr));
  gap: 7px;
  align-items: stretch;
  padding-top: 8px;
  overflow-x: auto;
}
.analytics-chart-column { min-width: 20px; height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) 24px; gap: 7px; }
.analytics-bars { min-height: 0; display: flex; align-items: flex-end; justify-content: center; gap: 2px; border-bottom: 1px solid var(--line); }
.analytics-bars i { width: min(9px, 42%); min-height: 0; border-radius: 2px 2px 0 0; }
.analytics-chart-column > span { overflow: hidden; color: #7a8492; font-size: 9px; text-align: center; white-space: nowrap; text-overflow: ellipsis; }
.analytics-table-wrap { max-height: 420px; overflow: auto; }
.analytics-table th { position: sticky; top: 0; z-index: 1; white-space: nowrap; }
.analytics-table td { vertical-align: middle; }
.analytics-empty, .analytics-loading { min-height: 180px; display: grid; place-items: center; color: var(--muted); font-size: 13px; text-align: center; }
.analytics-loading { min-height: 320px; border: 1px solid var(--line); border-radius: 7px; background: white; }
.analytics-warning { margin-bottom: 16px; padding: 11px 14px; border: 1px solid #ead5aa; border-radius: 6px; background: #fff9ed; color: #76561c; font-size: 12px; }
.analytics-footnote { margin: 16px 2px 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.forms-admin-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: start; }
.forms-list-panel, .form-builder-panel { min-width: 0; }
.forms-list { max-height: calc(100vh - 220px); overflow-y: auto; padding: 8px; }
.form-list-item {
  width: 100%;
  min-height: 67px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 11px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}
.form-list-item:hover, .form-list-item.active { background: var(--brand-soft); }
.form-list-item b, .form-list-item small { display: block; }
.form-list-item small { margin-top: 5px; color: var(--muted); font-size: 11px; }
.form-list-item em { color: var(--muted); font-size: 10px; font-style: normal; white-space: nowrap; }
.form-list-empty { padding: 60px 12px; }
.form-builder-basic { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; }
.form-builder-basic label > span, .generated-link-box label > span, .form-builder-field label > span {
  display: block;
  margin-bottom: 7px;
  color: #4f5b6c;
  font-size: 12px;
  font-weight: 700;
}
.form-builder-basic input, .form-builder-basic textarea, .generated-link-box input,
.form-builder-field input:not([type="checkbox"]), .form-builder-field select, .form-builder-field textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  background: white;
  color: var(--ink);
}
.form-builder-basic textarea, .form-builder-field textarea { resize: vertical; }
.form-builder-basic .wide-field { grid-column: 1 / -1; }
.form-enabled-switch { align-self: center; }
.generated-link-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: end;
  margin: 18px 0;
  padding: 14px;
  border: 1px solid #cfe6e1;
  border-radius: 6px;
  background: #f3faf8;
}
.generated-link-box input { color: var(--brand-deep); font-size: 12px; }
.form-save-hint { margin: 18px 0; padding: 13px 14px; border-radius: 6px; background: var(--soft); color: var(--muted); font-size: 12px; }
.form-fields-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 22px 0 11px; }
.form-fields-head h3 { margin: 0 0 4px; font-size: 15px; }
.form-fields-head p { margin: 0; color: var(--muted); font-size: 11px; }
.form-builder-fields { display: grid; gap: 10px; }
.form-builder-field {
  display: grid;
  grid-template-columns: 34px minmax(150px, 1fr) 130px minmax(180px, 1.25fr) 62px 32px;
  gap: 9px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fafbfc;
}
.form-builder-field-order { display: grid; gap: 2px; }
.form-builder-field-order button {
  width: 30px;
  height: 20px;
  border: 0;
  border-radius: 4px;
  background: white;
  color: var(--muted);
}
.form-builder-field-order button:hover:not(:disabled) { color: var(--brand); background: var(--brand-soft); }
.form-builder-field-order button:disabled { opacity: .35; cursor: default; }
.form-required-check { height: 40px; display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.form-required-check input { width: 16px; height: 16px; accent-color: var(--brand); }
.form-required-check span { margin: 0 !important; white-space: nowrap; }
.form-field-delete { align-self: end; width: 32px; height: 40px; color: var(--danger); }
.form-builder-actions { justify-content: space-between; }
.tree-row {
  min-height: 48px;
  display: grid;
  grid-template-columns: 28px 58px minmax(200px, 1fr) 90px 112px;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #edf0f3;
  padding: 5px 8px;
}
.tree-row:last-child { border-bottom: 0; }
.tree-toggle {
  width: 25px;
  height: 25px;
  border: 0;
  background: transparent;
  color: var(--brand);
  border-radius: 5px;
  font-size: 22px;
  line-height: 1;
  display: grid;
  place-items: center;
  transform: rotate(0deg);
  transition: transform .18s ease, background .18s ease;
}
.tree-toggle:hover { background: var(--brand-soft); }
.tree-toggle.expanded { transform: rotate(90deg); }
.tree-toggle.empty { color: #b9c1ca; cursor: default; font-size: 17px; }
.category-order-input {
  width: 50px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 5px;
  text-align: center;
  color: var(--ink);
  background: #fff;
}
.category-order-input:focus { border-color: var(--brand); }
.drag-handle { color: #9aa3af; cursor: grab; letter-spacing: 2px; }
.tree-name { display: flex; align-items: center; gap: 9px; min-width: 0; }
.level-line { width: 16px; height: 1px; background: #cbd2da; flex: 0 0 auto; }
.tree-name span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.level-tag { color: var(--muted); font-size: 11px; background: var(--soft); padding: 5px 8px; border-radius: 4px; text-align: center; }
.row-actions { display: flex; gap: 4px; justify-content: flex-end; }
.row-actions button { width: 31px; height: 31px; border: 0; background: transparent; color: var(--muted); border-radius: 5px; }
.row-actions button:hover { color: var(--brand); background: var(--brand-soft); }
.row-actions button.delete:hover { color: var(--danger); background: #fff0f0; }

.filterbar { display: flex; gap: 9px; flex-wrap: wrap; }
.filterbar select, .filterbar input, .form-grid input, .form-grid select, .block-editor input, .block-editor textarea {
  min-height: 39px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 11px;
  background: white;
  color: var(--ink);
}
.filterbar select { min-width: 160px; }
.content-list { display: grid; gap: 9px; }
.content-row {
  display: grid;
  grid-template-columns: 32px minmax(160px, 1fr) minmax(220px, 1.4fr) 100px 100px;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
}
.content-row .path { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.block-type { color: var(--brand-deep); font-size: 12px; font-weight: 700; }
.block-editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 18px; align-items: start; }
.editor-canvas { min-height: 480px; }
.editor-toolbar { display: flex; gap: 7px; flex-wrap: wrap; }
.block-editor {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px;
  margin-bottom: 10px;
  background: white;
}
.block-editor-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 11px; }
.block-editor-head strong { font-size: 13px; }
.block-editor textarea { width: 100%; min-height: 120px; padding: 11px; resize: vertical; line-height: 1.6; }
.block-editor input { width: 100%; }
.side-panel { position: sticky; top: 88px; }
.side-panel label { display: block; margin-bottom: 13px; }
.side-panel label span, .form-grid label > span { display: block; font-size: 12px; font-weight: 700; margin-bottom: 7px; color: #4f5b6c; }
.side-panel select { width: 100%; height: 39px; border: 1px solid var(--line); border-radius: 6px; padding: 0 9px; }
.save-stack { display: grid; gap: 8px; margin-top: 18px; }
.sort-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.sort-column { background: var(--soft); border-radius: 7px; padding: 12px; min-height: 300px; }
.sort-column h3 { margin: 0 0 12px; font-size: 13px; display: flex; justify-content: space-between; }
.sort-column h3 span { color: var(--muted); font-weight: 400; }
.sort-card { background: white; border: 1px solid var(--line); border-radius: 6px; padding: 11px; margin-bottom: 8px; cursor: grab; }
.sort-card b { font-size: 12px; display: block; margin-bottom: 5px; }
.sort-card span { color: var(--muted); font-size: 11px; }
.inline-sort-panel { margin-top: 14px; }
.compact-sort-column { min-height: 180px; }
.content-edit-modal { width: min(1120px, calc(100vw - 28px)); max-height: min(900px, calc(100vh - 28px)); }
.content-edit-modal form { padding: 24px 26px 20px; }
.content-modal-head { margin-bottom: 15px; }
.content-modal-head-clean { min-height: 36px; justify-content: flex-end; margin-bottom: 4px; }
.content-modal-head h2 { margin-bottom: 5px; }
.content-modal-path { margin: 0; color: var(--muted); font-size: 12px; }
.content-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin: 0 -26px 20px; padding: 0 26px; }
.content-tabs button { border: 0; background: transparent; padding: 11px 0; color: var(--muted); border-bottom: 2px solid transparent; font-weight: 700; }
.content-tabs button.active { color: var(--brand-deep); border-bottom-color: var(--brand); }
.content-form-row { display: grid; grid-template-columns: 1fr 2fr 36px; gap: 14px; margin-bottom: 18px; align-items: end; }
.content-form-row label, .advanced-editor label { display: block; }
.content-form-row label > span, .advanced-editor label > span, .modal-editor-label > span { display: block; font-size: 12px; font-weight: 700; color: #4f5b6c; margin-bottom: 7px; }
.content-form-row label > span i { color: var(--danger); font-style: normal; }
.content-form-row input, .advanced-editor textarea, .advanced-editor select { width: 100%; min-height: 40px; border: 1px solid var(--line); border-radius: 6px; padding: 0 11px; background: white; }
.content-row-close { width: 36px; height: 40px; align-self: end; }
.modal-editor-label { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.modal-editor-label em { color: var(--muted); font-size: 11px; font-style: normal; }
.modal-editor-toolbar { display: flex; gap: 7px; flex-wrap: wrap; padding: 10px; background: var(--soft); border: 1px solid var(--line); border-bottom: 0; border-radius: 6px 6px 0 0; }
.modal-editor-canvas { min-height: 320px; max-height: 430px; overflow-y: auto; border: 1px solid var(--line); border-radius: 0 0 6px 6px; padding: 13px; background: #fbfcfd; }
.modal-editor-canvas .block-editor { margin-bottom: 9px; }
.rich-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  min-height: 48px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  background: #f7f8fa;
}
.rich-toolbar button {
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: #364354;
  font-weight: 700;
}
.rich-toolbar button:hover { background: white; border-color: var(--line); color: var(--brand-deep); }
.rich-toolbar button:disabled,
.modal-actions .btn:disabled { opacity: .58; cursor: wait; }
.rich-toolbar select {
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: white;
  color: #364354;
  padding: 0 6px;
}
.rich-color-control {
  width: 32px;
  height: 30px;
  display: grid;
  place-items: center;
  position: relative;
  border-radius: 4px;
  cursor: pointer;
  color: #263448;
  font-weight: 800;
}
.rich-color-control:hover { background: white; }
.rich-color-control span { line-height: 18px; border-bottom: 3px solid #147d72; }
.rich-color-control input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.rich-color-control:has(input:focus-visible) { outline: 2px solid rgba(20, 125, 114, .3); }
.rich-image-size-control,
.rich-table-size-control {
  height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: white;
  color: #4f5b6c;
  font-size: 11px;
  font-weight: 700;
}
.rich-image-size-control input,
.rich-table-size-control input {
  width: 47px;
  height: 24px;
  padding: 0 4px;
  border: 0;
  border-left: 1px solid var(--line);
  color: #263448;
  text-align: center;
}
.rich-image-size-control input:disabled,
.rich-table-size-control input:disabled { color: #a0a9b5; background: #f4f6f8; }
.rich-image-size-control em,
.rich-table-size-control em { font-style: normal; }
.toolbar-divider { width: 1px; height: 22px; background: #d8dde4; margin: 0 4px; }
.rich-editor {
  min-height: 360px;
  max-height: 520px;
  overflow: auto;
  padding: 20px 22px;
  border: 1px solid #b9c5d2;
  border-radius: 0 0 6px 6px;
  background: white;
  color: #253042;
  font-size: 15px;
  line-height: 1.85;
}
.rich-editor:focus { outline: 3px solid rgba(20, 125, 114, .13); border-color: var(--brand); }
.rich-editor:empty::before { content: "请在这里直接输入或粘贴文字、Word、Excel 和图片"; color: #a0a9b5; pointer-events: none; }
.rich-editor h1, .rich-editor h2, .rich-editor h3 { line-height: 1.35; margin: 0 0 12px; }
.rich-editor p { margin: 0 0 12px; }
.rich-editor blockquote { margin: 14px 0; padding: 10px 14px; border-left: 4px solid var(--gold); background: #fff9eb; color: #604c27; }
.rich-editor a, .rich-article a { color: var(--brand-deep); text-decoration: underline; text-underline-offset: 2px; }
.rich-editor img { max-width: 100%; height: auto; display: block; margin: 10px 0; cursor: pointer; }
.rich-editor img.rich-image-selected { outline: 3px solid #08a6e8; outline-offset: 3px; }
.rich-editor img.rich-image-uploading { opacity: .5; filter: grayscale(.35); }
.rich-editor img.rich-image-broken { min-width: 180px; min-height: 80px; border: 2px dashed #dc5d5d; background: #fff1f1; }
.rich-table-scroll {
  width: 100%;
  max-width: 100%;
  margin: 14px 0;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid #d8dee6;
  border-radius: 5px;
  background: white;
  scrollbar-gutter: stable;
  scrollbar-color: #8c98a8 #edf0f3;
  overscroll-behavior-x: contain;
}
.rich-table-scroll::-webkit-scrollbar { height: 12px; }
.rich-table-scroll::-webkit-scrollbar-track { background: #edf0f3; }
.rich-table-scroll::-webkit-scrollbar-thumb { background: #8c98a8; border: 3px solid #edf0f3; border-radius: 6px; }
.rich-table-scroll:focus { outline: 3px solid rgba(20, 125, 114, .16); outline-offset: 2px; }
.rich-editor table, .rich-article table {
  width: 100%;
  min-width: 100%;
  max-width: none;
  border-collapse: collapse;
  margin: 0;
}
.rich-editor table.rich-table-selected { outline: 3px solid #08a6e8; outline-offset: -3px; }
.rich-editor th, .rich-editor td, .rich-article th, .rich-article td {
  border: 1px solid #d8dee6;
  padding: 9px 11px;
  min-width: 90px;
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.rich-editor td a, .rich-editor th a, .rich-article td a, .rich-article th a { overflow-wrap: anywhere; word-break: break-all; }
.rich-editor th, .rich-article th { background: #f4f6f8; font-weight: 700; }
.rich-article { font-size: 15px; line-height: 1.85; color: #3d4653; }
.rich-article h1, .rich-article h2, .rich-article h3 { color: var(--ink); line-height: 1.35; margin: 0 0 13px; }
.rich-article p { margin: 0 0 16px; }
.rich-article img { max-width: 100%; height: auto; border-radius: 7px; }
.rich-article blockquote { margin: 14px 0; padding: 12px 16px; border-left: 4px solid var(--gold); background: #fff9eb; color: #604c27; }
.rich-article figure { margin: 0 0 22px; }
.rich-article figcaption { color: var(--muted); font-size: 12px; margin-top: 6px; }
.compact-advanced { margin-top: 14px; }
.advanced-editor { display: grid; gap: 16px; min-height: 320px; }
.advanced-editor textarea { min-height: 140px; padding: 10px; resize: vertical; line-height: 1.6; }

.permission-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 14px; align-items: start; }
.group-list .panel-body { padding: 8px; }
.group-item { width: 100%; min-height: 58px; border: 0; background: transparent; border-radius: 6px; padding: 9px 10px; display: flex; align-items: center; justify-content: space-between; text-align: left; }
.group-item:hover, .group-item.active { background: var(--brand-soft); }
.group-item b, .group-item small { display: block; }
.group-item small { color: var(--muted); margin-top: 4px; }
.group-item em { color: var(--brand); font-size: 10px; font-style: normal; font-weight: 800; }
.group-fields { display: grid; grid-template-columns: 1fr 1.5fr; gap: 12px; margin-bottom: 22px; }
.group-fields label span, .account-form label span { display: block; font-size: 12px; font-weight: 700; color: #4f5b6c; margin-bottom: 7px; }
.group-fields input, .account-form input, .account-form select, .account-row select { width: 100%; height: 39px; border: 1px solid var(--line); border-radius: 6px; padding: 0 10px; background: white; }
.permission-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 11px; border-bottom: 1px solid var(--line); }
.permission-head span { color: var(--muted); font-size: 11px; }
.permission-tree { max-height: 520px; overflow: auto; padding: 8px 0; }
.permission-node { width: 100%; }
.permission-row { min-height: 42px; display: grid; grid-template-columns: 28px 22px minmax(0, 1fr) 38px; align-items: center; border-bottom: 1px solid #edf0f3; padding: 0 8px 0 0; }
.permission-row.level-2 { padding-left: 24px; }
.permission-row.level-3 { padding-left: 48px; }
.permission-row.level-4 { padding-left: 72px; }
.permission-toggle {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--brand);
  font-size: 21px;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: transform .18s ease, background .18s ease;
}
.permission-toggle:hover { background: var(--brand-soft); }
.permission-toggle.expanded { transform: rotate(90deg); }
.permission-toggle.empty { color: #b9c1ca; cursor: default; font-size: 16px; }
.permission-row input { width: 16px; height: 16px; accent-color: var(--brand); }
.permission-row span { font-size: 13px; }
.permission-row small { color: var(--muted); font-size: 10px; }
.panel-actions { display: flex; justify-content: flex-end; margin-top: 17px; }
.admin-notice { padding: 18px; background: var(--brand-soft); color: var(--brand-deep); border-radius: 6px; }
.account-create { margin-bottom: 14px; }
.account-form { display: grid; grid-template-columns: 1fr 1.2fr 1fr 1fr auto; gap: 10px; align-items: end; }
.shared-account-option { display: flex; align-items: center; gap: 7px; grid-column: 1 / -2; color: var(--muted); font-size: 12px; }
.shared-account-option input { width: 16px; height: 16px; accent-color: var(--brand); }
.account-table { padding: 0 16px 12px; }
.account-row { min-height: 64px; display: grid; grid-template-columns: minmax(150px, 1.2fr) minmax(150px, 1fr) 120px 160px; gap: 16px; align-items: center; border-bottom: 1px solid var(--line); }
.account-row > span > b, .account-row > span > small { display: block; }
.account-row > span > small { color: var(--muted); margin-top: 4px; }
.account-header { min-height: 45px; color: var(--muted); font-size: 11px; font-weight: 800; }
.account-row .row-actions { display: flex; align-items: center; justify-content: flex-start; gap: 6px; flex-wrap: wrap; }
.account-row .row-actions button {
  width: auto;
  height: 31px;
  min-height: 31px;
  padding: 0 8px;
  white-space: nowrap;
  font-size: 12px;
}
.account-row .row-actions button:hover { background: var(--brand-soft); }
.account-row .row-actions button.delete:hover { background: #fff0f0; }
.switch { display: flex; align-items: center; gap: 7px; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch i { width: 34px; height: 19px; background: #c7ced6; border-radius: 999px; position: relative; transition: .2s; }
.switch i::after { content: ""; width: 15px; height: 15px; position: absolute; left: 2px; top: 2px; background: white; border-radius: 50%; transition: .2s; }
.switch input:checked + i { background: var(--brand); }
.switch input:checked + i::after { transform: translateX(15px); }
.switch em { font-style: normal; font-size: 11px; color: var(--muted); }

.login-settings-layout { display: grid; grid-template-columns: minmax(560px, 1fr) minmax(360px, .72fr); gap: 20px; align-items: start; }
.login-settings-form { min-width: 0; }
.settings-sections { display: grid; gap: 0; }
.settings-section { padding: 4px 0 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.settings-section:last-of-type { margin-bottom: 0; }
.settings-section h3 { margin: 0 0 15px; font-size: 14px; }
.settings-section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 15px; }
.settings-section-head h3 { margin: 0; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.settings-grid label { min-width: 0; }
.settings-grid label > span { display: block; margin-bottom: 7px; color: #4f5b6c; font-size: 12px; font-weight: 700; }
.settings-grid label > span em { color: var(--brand); font-style: normal; float: right; }
.settings-grid input:not([type="range"]), .settings-grid textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 11px;
  background: white;
  color: var(--ink);
  resize: vertical;
}
.settings-grid input[type="range"] { width: 100%; accent-color: var(--brand); }
.settings-grid .wide-field { grid-column: 1 / -1; }
.upload-setting-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.upload-setting-row .btn { min-width: 94px; }
.login-settings-preview { position: sticky; top: 88px; min-width: 0; }
.preview-label { margin-bottom: 9px; color: var(--muted); font-size: 11px; font-weight: 800; }
.login-preview-frame {
  aspect-ratio: 16 / 10;
  min-height: 420px;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  box-shadow: 0 12px 32px rgba(28, 39, 54, .1);
}
.preview-login-visual {
  min-width: 0;
  padding: 22px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-position: center;
  background-size: cover;
}
.preview-login-brand { display: flex; align-items: center; gap: 8px; font-size: 10px; }
.preview-login-brand img { width: 26px; height: 26px; object-fit: contain; }
.preview-login-copy { max-width: 310px; }
.preview-login-copy .eyebrow { color: #8de0d2; font-size: 7px; }
.preview-login-copy h2 { margin: 8px 0; font-size: 27px; line-height: 1.15; white-space: pre-line; }
.preview-login-copy > p:last-child { margin: 0; color: #d9e0e5; font-size: 9px; line-height: 1.6; white-space: pre-line; }
.preview-login-visual > div:last-child { color: #d1d8dd; font-size: 8px; }
.preview-login-panel { display: grid; place-items: center; padding: 20px; }
.preview-login-form { width: 100%; }
.preview-login-form .eyebrow { margin: 0; font-size: 7px; }
.preview-login-form h2 { margin: 4px 0; font-size: 19px; }
.preview-login-form > p { margin: 0 0 16px; color: var(--muted); font-size: 8px; }
.preview-login-form label { display: block; margin-bottom: 10px; }
.preview-login-form label span { display: block; margin-bottom: 5px; font-size: 8px; font-weight: 800; }
.preview-login-form label i { height: 27px; display: flex; align-items: center; padding: 0 8px; border: 1px solid var(--line); border-radius: 4px; color: #9aa3af; font-size: 8px; font-style: normal; }
.preview-login-form > button { width: 100%; height: 29px; border: 0; border-radius: 4px; background: var(--brand); color: white; font-size: 8px; font-weight: 800; }
.preview-demo-accounts { margin-top: 12px; padding: 8px; font-size: 7px; gap: 3px; }

.login-page { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(420px, .75fr); background: white; }
.login-visual { min-height: 100vh; color: white; padding: 38px 48px; display: flex; flex-direction: column; justify-content: space-between; background-color: #52606b; background-position: center; background-size: cover; }
.login-brand { display: flex; align-items: center; gap: 12px; }
.login-brand strong { font-size: 18px; }
.login-copy { max-width: 610px; }
.login-copy .eyebrow { color: #8de0d2; }
.login-copy h1 { font-size: clamp(38px, 5vw, 68px); line-height: 1.17; margin: 14px 0 18px; font-family: Georgia, "Microsoft YaHei", serif; font-weight: 700; }
.login-copy > p:last-child { max-width: 520px; line-height: 1.9; color: #d9e0e5; }
.login-photo-credit { font-size: 12px; color: #c9d2d8; }
.login-panel { display: grid; place-items: center; padding: 35px; }
.login-form { width: min(390px, 100%); }
.login-form h2 { font-size: 29px; margin: 7px 0 8px; }
.login-form > div > p:last-child { color: var(--muted); margin: 0 0 30px; font-size: 13px; }
.login-form label { display: block; margin-bottom: 16px; }
.login-form label span { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 700; }
.login-form input { width: 100%; height: 46px; border: 1px solid var(--line); border-radius: 6px; padding: 0 13px; }
.login-error { height: 20px; margin: -4px 0 7px; color: var(--danger); font-size: 12px; }
.login-button { width: 100%; height: 46px; }
.demo-accounts { margin-top: 22px; padding: 14px; background: var(--soft); border-radius: 6px; color: var(--muted); font-size: 11px; display: grid; gap: 5px; }
.demo-accounts b { color: var(--ink); }

.modal { width: min(560px, calc(100vw - 28px)); border: 0; border-radius: 8px; padding: 0; box-shadow: 0 24px 80px rgba(16, 28, 43, .25); }
.modal.content-edit-modal { width: min(1120px, calc(100vw - 28px)); }
.modal.public-form-modal { width: min(660px, calc(100vw - 28px)); max-height: calc(100vh - 28px); overflow-y: auto; }
.modal.form-responses-modal { width: min(900px, calc(100vw - 28px)); max-height: calc(100vh - 28px); }
.modal::backdrop { background: rgba(13, 24, 38, .48); }
.modal form { padding: 23px; }
.public-form-modal > div { padding: 23px; }
.public-form-modal form { padding: 0; }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.modal-head h2 { margin: 4px 0 0; font-size: 21px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid label { min-width: 0; }
.form-grid input, .form-grid select { width: 100%; }
.color-row { display: flex; gap: 7px; height: 39px; align-items: center; }
.color-swatch { width: 29px; height: 29px; border-radius: 5px; border: 3px solid white; box-shadow: 0 0 0 1px var(--line); }
.color-swatch.active { box-shadow: 0 0 0 2px var(--ink); }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 23px; }
.confirm-modal { width: min(410px, calc(100vw - 28px)); text-align: center; }
.confirm-mark { width: 48px; height: 48px; border-radius: 50%; background: #fff2e2; color: #c77a19; display: grid; place-items: center; margin: 0 auto 13px; font-weight: 900; font-size: 21px; }
.confirm-modal h2 { margin: 0 0 8px; }
.confirm-modal p { color: var(--muted); margin: 0; font-size: 13px; }
.confirm-modal .modal-actions { justify-content: center; }
.public-form-description { margin: -7px 0 20px; padding: 12px 14px; border-radius: 6px; background: var(--soft); color: var(--muted); font-size: 13px; line-height: 1.7; }
.public-form-fields { display: grid; gap: 15px; }
.public-form-field > span, .public-form-options legend { display: block; margin-bottom: 7px; color: #3f4b5c; font-size: 12px; font-weight: 700; }
.public-form-field em { color: var(--danger); font-style: normal; }
.public-form-field input:not([type="radio"]):not([type="checkbox"]), .public-form-field textarea, .public-form-field select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 11px;
  background: white;
  color: var(--ink);
}
.public-form-field textarea { resize: vertical; }
.public-form-options { margin: 0; padding: 0; border: 0; }
.public-form-options > label { display: inline-flex; align-items: center; gap: 6px; margin: 0 18px 8px 0; color: #4a5565; font-size: 13px; }
.public-form-options input { width: 16px; height: 16px; accent-color: var(--brand); }
.public-form-error { min-height: 18px; margin: 0; color: var(--danger); font-size: 12px; }
.form-submit-success { min-height: 270px; display: grid; place-items: center; align-content: center; gap: 12px; text-align: center; }
.form-submit-success strong { font-size: 24px; color: var(--brand-deep); }
.form-submit-success p { margin: 0 0 8px; color: var(--muted); }
.response-summary { margin: -7px 0 14px; color: var(--muted); font-size: 12px; }
.form-responses-list { max-height: calc(100vh - 190px); overflow-y: auto; display: grid; gap: 8px; }
.form-response-item { border: 1px solid var(--line); border-radius: 6px; background: white; }
.form-response-item summary { min-height: 58px; display: flex; align-items: center; justify-content: space-between; padding: 10px 13px; cursor: pointer; list-style: none; }
.form-response-item summary::-webkit-details-marker { display: none; }
.form-response-item summary b, .form-response-item summary small { display: block; }
.form-response-item summary small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.form-response-item summary em { color: var(--brand); font-size: 11px; font-style: normal; }
.form-response-item > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; padding: 4px 13px 13px; border-top: 1px solid var(--line); }
.form-response-item dl { margin: 0; padding: 10px 0; border-bottom: 1px solid #edf0f3; }
.form-response-item dt { color: var(--muted); font-size: 11px; }
.form-response-item dd { margin: 5px 0 0; color: var(--ink); font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.toast {
  position: fixed;
  left: 50%;
  bottom: 25px;
  z-index: 100;
  transform: translate(-50%, 20px);
  background: #17202e;
  color: white;
  padding: 10px 15px;
  border-radius: 6px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: .2s ease;
  font-size: 13px;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.mobile-toggle { display: none; }

@media (max-width: 1050px) {
  .main-layout { grid-template-columns: 104px 202px minmax(0, 1fr); }
  .content-area { padding: 24px 22px 45px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .sort-board { grid-template-columns: repeat(2, 1fr); }
  .block-editor-layout { grid-template-columns: 1fr; }
  .side-panel { position: static; }
  .account-form { grid-template-columns: repeat(2, 1fr); }
  .account-form .btn { align-self: end; }
  .login-settings-layout { grid-template-columns: 1fr; }
  .login-settings-preview { position: static; }
  .analytics-summary { grid-template-columns: repeat(3, 1fr); }
  .forms-admin-layout { grid-template-columns: 240px minmax(0, 1fr); }
  .form-builder-field { grid-template-columns: 34px minmax(140px, 1fr) 120px minmax(160px, 1fr); }
  .form-required-check { grid-column: 2; }
  .form-field-delete { grid-column: 4; justify-self: end; }
}

@media (max-width: 760px) {
  .topbar { height: 60px; padding: 0 14px; }
  .brand { min-width: 0; }
  .brand span, .search { display: none; }
  .top-actions .btn span { display: none; }
  .user-name { display: none; }
  .main-layout { display: block; }
  .primary-nav,
  .secondary-nav {
    position: static;
    height: auto;
    overflow-y: visible;
  }
  .primary-nav {
    height: 76px;
    padding: 7px 10px;
    flex-direction: row;
    overflow-x: auto;
  }
  .primary-item { flex: 0 0 72px; min-height: 62px; }
  .category-icon { width: 30px; height: 30px; }
  .secondary-nav { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 15px 14px; }
  .side-heading { margin-bottom: 8px; }
  .secondary-nav.collapsed .category-groups { display: none; }
  .side-heading { display: flex; align-items: center; justify-content: space-between; }
  .mobile-toggle { display: grid; }
  .content-area { padding: 21px 16px 42px; }
  .quaternary-tabs {
    top: 60px;
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .content-head { display: block; }
  .content-head h1 { font-size: 23px; }
  .meta-pill { display: inline-block; margin-top: 13px; }
  .admin-shell { display: block; }
  .admin-nav { display: flex; gap: 6px; padding: 8px; overflow-x: auto; }
  .admin-nav-title { display: none; }
  .admin-nav button { flex: 0 0 105px; text-align: center; margin: 0; }
  .admin-main { padding: 20px 14px 40px; }
  .page-title { display: block; }
  .page-title .btn { margin-top: 14px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .analytics-title { display: grid; }
  .analytics-filters { width: 100%; align-items: end; }
  .analytics-filters label { flex: 1; }
  .analytics-filters select { width: 100%; }
  .analytics-filters .btn { margin-top: 0; white-space: nowrap; }
  .analytics-summary { grid-template-columns: repeat(2, 1fr); }
  .analytics-grid { grid-template-columns: 1fr; }
  .analytics-wide, .analytics-device-panel { grid-column: auto; }
  .analytics-chart { min-width: 620px; }
  .analytics-panel .panel-body { overflow-x: auto; }
  .forms-admin-layout { grid-template-columns: 1fr; }
  .forms-list { max-height: 260px; }
  .form-builder-panel .panel-head { height: auto; min-height: 58px; flex-wrap: wrap; gap: 8px; padding-top: 9px; padding-bottom: 9px; }
  .form-builder-panel .panel-head-actions { flex-wrap: wrap; justify-content: flex-end; }
  .form-builder-basic { grid-template-columns: 1fr; }
  .form-builder-basic label, .generated-link-box label { min-width: 0; }
  .form-builder-basic .wide-field { grid-column: auto; }
  .generated-link-box { grid-template-columns: 1fr 1fr; }
  .generated-link-box label { grid-column: 1 / -1; }
  .form-builder-field { grid-template-columns: 32px minmax(0, 1fr) 34px; }
  .form-builder-field > label { grid-column: 2; }
  .form-builder-field-order { grid-row: 1 / span 4; align-self: start; }
  .form-required-check { grid-column: 2; }
  .form-field-delete { grid-column: 3; grid-row: 1; }
  .form-response-item > div { grid-template-columns: 1fr; }
  .tree-row { grid-template-columns: 25px 46px minmax(120px, 1fr) 82px 76px; }
  .tree-row .level-tag { display: none; }
  .content-row { grid-template-columns: 25px minmax(120px, 1fr) 80px; }
  .content-row .path, .content-row .block-type { display: none; }
  .sort-board { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .content-form-row { grid-template-columns: 1fr 1fr 36px; }
  .content-edit-modal form { padding: 19px 16px 16px; }
  .content-tabs { margin-left: -16px; margin-right: -16px; padding-left: 16px; }
  .modal-editor-canvas { max-height: 360px; }
  .permission-layout { grid-template-columns: 1fr; }
  .permission-tree { max-height: 420px; }
  .group-fields, .account-form { grid-template-columns: 1fr; }
  .shared-account-option { grid-column: auto; }
  .account-table { overflow-x: auto; }
  .account-row { min-width: 680px; }
  .settings-grid { grid-template-columns: 1fr; }
  .settings-grid .wide-field { grid-column: auto; }
  .upload-setting-row { grid-template-columns: 1fr; }
  .login-preview-frame { min-height: 360px; grid-template-columns: 1.15fr .85fr; }
  .login-page { grid-template-columns: 1fr; }
  .login-visual { min-height: 34vh; padding: 24px; }
  .login-copy h1 { font-size: 34px; }
  .login-copy > p:last-child, .login-photo-credit { display: none; }
  .login-panel { padding: 30px 20px; }
}
