:root {
  --sidebar-width: 280px;
  --bg: #ededed;
  --panel: #ffffff;
  --panel-muted: #fafafa;
  --surface: #ffffff;
  --surface-muted: #f8f8f8;
  --line: #dadada;
  --line-strong: #b9b9b9;
  --line-dark: #8f8f8f;
  --ink: #101010;
  --muted: #6d6d6d;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Inter", sans-serif;
  background: #ffffff;
  color: var(--ink);
}

body {
  min-height: 100vh;
}

.app-loader {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(255, 255, 255, 0.96);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.app-loader-card {
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.app-loader-mark {
  width: 54px;
  height: 54px;
  border: 1px solid #d8d8d8;
  background: linear-gradient(120deg, rgba(30, 144, 255, 0.08), rgba(255, 255, 255, 0.95), rgba(30, 144, 255, 0.08));
  background-size: 200% 100%;
  animation: aiShimmer 2s ease infinite;
}

.app-loader-copy {
  margin: 0;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
  color: transparent;
  background: linear-gradient(120deg, rgba(95, 95, 95, 0.72), rgba(16, 16, 16, 0.96), rgba(95, 95, 95, 0.72));
  background-size: 200% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  animation: aiShimmer 2.4s ease infinite;
  opacity: 0.92;
}

.app-shell {
  opacity: 0;
  transform: scale(0.985);
  transform-origin: center center;
  transition: opacity 0.65s ease, transform 0.75s cubic-bezier(0.2, 0.85, 0.2, 1);
}

body.app-ready .app-shell {
  opacity: 1;
  transform: none;
}

body.app-bootstrapped .app-loader {
  opacity: 0;
  visibility: hidden;
}

body.app-shell-locked .app-shell {
  display: none;
}

body.has-onboarding {
  overflow: hidden;
}

body.has-idle-session-modal {
  overflow: hidden;
}

body.has-suggestion-modal {
  overflow: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) 10px 1fr;
  min-height: 100vh;
}

.sidebar,
.workspace {
  min-height: 100vh;
}

.sidebar-resizer {
  position: relative;
  cursor: col-resize;
  background: transparent;
}

.sidebar-resizer::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 4px;
  width: 1px;
  background: #e6e6e6;
}

body.is-resizing-sidebar,
body.is-resizing-sidebar * {
  cursor: col-resize !important;
  user-select: none !important;
}

.sidebar {
  position: relative;
  padding: 0;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  overflow: hidden;
}

.sidebar::before,
.sidebar::after {
  display: none;
}

.sidebar-scroll-indicator {
  position: fixed;
  bottom: 0;
  height: 62px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
  z-index: 40;
}

.sidebar-scroll-indicator::before {
  content: "";
  position: absolute;
  inset: 0 14px 0 14px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #ffffff 84%);
}

.sidebar-scroll-indicator-badge {
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 28px;
  height: 28px;
  transform: translateX(-50%);
  border-radius: 999px;
  border: 1px solid rgba(223, 223, 223, 0.96);
  background:
    #ffffff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.25 4.5L6 8.25L9.75 4.5' stroke='%23939393' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 12px 12px no-repeat;
  box-shadow: 0 10px 20px rgba(17, 17, 17, 0.08);
}

.sidebar-scroll-indicator.is-visible {
  opacity: 1;
}

.left-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  max-height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.left-sidebar::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.sidebar-frame {
  position: relative;
  height: auto;
  min-height: 100%;
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 18px 18px;
  background: #f9f9f9;
}

.sidebar-frame.sidebar-prompt-sections::before {
  content: "";
  opacity: 1;
  position: absolute;
  inset: 0;
  height: auto;
  margin-top: 0;
  background: linear-gradient(120deg, rgba(30, 144, 255, 0.04), rgba(255, 255, 255, 0.52), rgba(30, 144, 255, 0.04));
  background-size: 200% 100%;
  animation: aiShimmer 2.5s ease 1;
  pointer-events: none;
  z-index: 7;
}

.sidebar-frame.sidebar-prompt-sections::after {
  opacity: 0;
}

.panel-header h1 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.panel-copy {
  margin: 8px 0 0;
  color: #5f5f5f;
  line-height: 1.45;
  font-size: 0.88rem;
}

.eyebrow {
  margin: 0 0 8px;
  color: #5f5f5f;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-meta,
.template-library {
  display: grid;
  gap: 8px;
}

.page-meta {
  gap: 15px;
}

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

.sidebar-tab {
  border: 1px solid #d3d3d3;
  border-radius: 8px;
  background: #fff;
  padding: 9px 12px;
  cursor: pointer;
  color: #3f3f3f;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.sidebar-tab:hover,
.sidebar-tab:focus-visible {
  border-color: #b7c8df;
  background: #f8fbff;
  color: #1f2937;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  outline: none;
}

.sidebar-tab.is-active {
  border-color: #9eb7db;
  background: linear-gradient(180deg, #f7fbff 0%, #edf4ff 100%);
  color: #111;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45), 0 10px 22px rgba(15, 23, 42, 0.05);
}

.sidebar-panel {
  display: none;
  gap: 12px;
}

.sidebar-panel.is-active {
  display: grid;
  animation: panelFadeIn 0.2s ease;
}

#sidebar-panel-projects {
  position: relative;
  min-height: 0;
  flex: 0 0 auto;
  grid-template-rows: auto;
  align-content: start;
}

#sidebar-panel-projects.pages-scroll-mode {
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#sidebar-panel-projects.pages-scroll-mode::-webkit-scrollbar {
  width: 0;
  height: 0;
}

#sidebar-panel-layouts {
  position: relative;
  min-height: 0;
  flex: 1;
  grid-template-rows: auto auto minmax(0, 1fr);
}

#sidebar-panel-layouts::before,
#sidebar-panel-layouts::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 2;
}

#sidebar-panel-layouts::before {
  height: 50px;
  background: linear-gradient(to top, #f9f9f9 0%, rgba(249, 249, 249, 0) 100%);
}

#sidebar-panel-layouts::after {
  width: 12px;
  height: 12px;
  left: 50%;
  right: auto;
  bottom: 14px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateX(-50%) rotate(45deg);
}

#sidebar-panel-layouts.has-scroll-cue::before,
#sidebar-panel-layouts.has-scroll-cue::after {
  opacity: 1;
}

#project-panel-pages {
  min-height: 0;
  grid-template-rows: auto;
  align-content: start;
}

#project-panel-settings {
  position: relative;
  overflow-y: auto;
  min-height: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#project-panel-settings::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.project-panel {
  display: none;
  gap: 16px;
  min-height: 0;
}

.project-panel.is-active {
  display: flex;
  flex-direction: column;
  width: 100%;
  animation: panelFadeIn 0.2s ease;
}

.subtab-context-label {
  margin: 2px 2px -2px;
  padding-left: 4px;
  color: #6b7280;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.workspace-meta,
.page-manager {
  display: grid;
  gap: 15px;
}

.website-settings-card {
  order: 2;
}

.page-meta {
  order: 1;
}

.wordpress-card {
  order: 3;
}

.share-link-card {
  order: 4;
}

.page-manager {
  grid-template-rows: auto auto auto;
  align-content: start;
}

.projects-intro {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #d6d6d6;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f7f7 100%);
}

.project-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.summary-card {
  display: grid;
  gap: 3px;
  padding: 11px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 10px;
  background: #fff;
}

.summary-card strong {
  font-size: 0.88rem;
  color: #151515;
}

.summary-card span {
  color: #666;
  font-size: 0.76rem;
}

.sidebar-step {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: #141414;
}

.sidebar-subcopy {
  margin: 6px 0 0;
  color: #626262;
  font-size: 0.79rem;
  line-height: 1.45;
}

.project-subtabs {
  padding: 4px;
  border: 1px solid #d8d8d8;
  border-radius: 12px;
  background: #f4f4f4;
}

.project-subtabs .sidebar-tab {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.project-subtabs .sidebar-tab.is-active {
  border: 1px solid #d2d2d2;
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

@keyframes panelFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sidebar-card {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid #d8d8d8;
  border-radius: 12px;
  background: #fff;
  height: fit-content;
}

body.seed-project-mode .wordpress-card {
  display: none !important;
}

body.seed-project-mode .website-settings-card {
  display: none !important;
}

body.seed-viewer-mode .share-link-card,
body.seed-viewer-mode .website-settings-card {
  display: none !important;
}

body.seed-viewer-mode .image-controls,
body.seed-viewer-mode .section-repeater-actions,
body.seed-viewer-mode .editable-assist,
body.seed-viewer-mode .inline-limit {
  display: none !important;
}

body.seed-viewer-mode #new-page-btn,
body.seed-viewer-mode #delete-page-btn,
body.seed-viewer-mode #current-page-sync-btn,
body.seed-project-mode #current-page-sync-btn,
body.seed-viewer-mode #website-settings-menu-btn,
body.seed-project-mode #website-settings-menu-btn {
  display: none !important;
}

body.seed-viewer-mode .sidebar-frame > .sidebar-tabs:not(.project-subtabs),
body.seed-viewer-mode .drag-handle,
body.seed-viewer-mode [data-section-ai-fill],
body.seed-viewer-mode [data-section-duplicate],
body.seed-viewer-mode [data-section-delete] {
  display: none !important;
}

body.seed-viewer-mode .editable,
body.seed-viewer-mode .editable-inline-field,
body.seed-viewer-mode .editable-field {
  cursor: default;
}

body.seed-viewer-mode .editable:hover,
body.seed-viewer-mode .editable:focus,
body.seed-viewer-mode .editable-inline-field:hover,
body.seed-viewer-mode .editable-inline-field:focus,
body.seed-viewer-mode .editable-field:hover .editable,
body.seed-viewer-mode .editable-field:focus-within .editable {
  background: transparent !important;
  box-shadow: none !important;
}

body.seed-viewer-mode .suggestion-editor-card .image-controls,
body.seed-viewer-mode .suggestion-editor-card .section-repeater-actions,
body.seed-viewer-mode .suggestion-editor-card .editable-assist,
body.seed-viewer-mode .suggestion-editor-card .inline-limit {
  display: flex !important;
}

body.seed-viewer-mode .suggestion-editor-card .inline-limit {
  display: inline-flex !important;
}

body.seed-viewer-mode .suggestion-editor-card .editable,
body.seed-viewer-mode .suggestion-editor-card .editable-inline-field,
body.seed-viewer-mode .suggestion-editor-card .editable-field {
  cursor: text;
}

body.seed-viewer-mode .suggestion-editor-card .editable:hover,
body.seed-viewer-mode .suggestion-editor-card .editable:focus,
body.seed-viewer-mode .suggestion-editor-card .editable-inline-field:hover,
body.seed-viewer-mode .suggestion-editor-card .editable-inline-field:focus,
body.seed-viewer-mode .suggestion-editor-card .editable-field:hover .editable,
body.seed-viewer-mode .suggestion-editor-card .editable-field:focus-within .editable {
  background: #f4f4f4 !important;
  box-shadow: inset 0 0 0 1px #f4f4f4 !important;
  color: black;
}

.page-manager {
  height: auto;
  min-height: auto;
}

.share-link-list {
  display: grid;
  gap: 10px;
}

.share-link-item {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #ececec;
  border-radius: 12px;
  background: #fbfbfb;
}

.share-link-item-meta {
  display: grid;
  gap: 2px;
}

.share-link-item-meta strong {
  font-size: 0.84rem;
}

.share-link-item-meta span {
  color: var(--muted);
  font-size: 0.75rem;
}

.share-link-edit-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.share-link-url {
  min-height: 38px;
  padding: 9px 12px;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  background: #fff;
  font-size: 0.8rem;
}

.sidebar-card-header {
  display: grid;
  gap: 2px;
}

.page-list-shell {
  border: none;;
  border-radius: 0;
  background: transparent;
  padding: 0;
  height: auto;
  min-height: 0;
  overflow: hidden;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-list {
  display: grid;
  gap: 8px;
}

.page-tree-node {
  display: grid;
  gap: 8px;
}

.page-tree-node:last-child {
  margin-bottom: 10px;
}

.page-tree-children {
  display: grid;
  gap: 8px;
}

.page-list-item {
  width: max(0px, calc(100% - (12px + (var(--page-depth, 0) * 18px))));
  max-width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #dbdbdb;
  border-radius: 0;
  background: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-left: calc((var(--page-depth, 0) * 18px));
  transition: border-color 120ms ease, background 120ms ease;
}

.page-select-button {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  align-items:center;
  gap: 8px;
}

.page-item-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.page-presence-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.page-presence-avatar {
  --presence-border: #d9d9d9;
  --presence-bg: #fff;
  --presence-text: var(--ink);
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid var(--presence-border);
  background: var(--presence-bg);
  color: var(--presence-text);
  font-size: 0.64rem;
  font-weight: 600;
  display: inline-grid;
  place-items: center;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--presence-border) 18%, transparent);
  flex: 0 0 auto;
  will-change: opacity, transform, filter;
}

.page-presence-avatar.is-entering {
  animation: pagePresenceAvatarIn 0.24s cubic-bezier(0.22, 1, 0.36, 1) 0.06s both;
}

.page-presence-avatar.is-leaving {
  animation: pagePresenceAvatarOut 0.2s ease both;
  pointer-events: none;
}

.page-inline-editor {
  display: none;
  width: 100%;
  min-width: 0;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  background: #fff;
  padding: 7px 9px;
}

.page-list-item.is-renaming .page-select-button,
.page-list-item.is-renaming .page-drag-hint {
  display: none;
}

.page-list-item.is-renaming .page-inline-editor {
  display: block;
}

.page-list-item small {
  color: #666;
  font-size: 0.76rem;
}

.page-seo-score.score-good {
  color: #167c3b;
}

.page-seo-score.score-mid {
  color: #a26800;
}

.page-seo-score.score-bad {
  color: #c83b31;
}

.page-list-item.is-dragging {
  opacity: 0.55;
}

.page-list-item.drop-before {
  box-shadow: inset 0 2px 0 dodgerblue;
}

.page-list-item.drop-after {
  box-shadow: inset 0 -2px 0 dodgerblue;
}

.page-list-item.drop-child {
  border-color: dodgerblue;
  background: #f8fbff;
}

.page-list-item.is-active {
  border-color: dodgerblue;
  background: #f7fbff;
}

.page-drag-hint {
  color: #6d6d6d;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  cursor: grab;
  text-transform: uppercase;
  transition: ease .2s;
}

.page-drag-hint:hover {
  transform: scale(1.2);
}

.sidebar {
  background: #ffffff;
  border-right-color: #e7e7e7;
}

.sidebar-workbench {
  gap: 20px;
  height: auto;
  min-height: 100%;
  padding: 18px 14px 26px;
  overflow: visible;
  background: #fbfbfb;
  border: 0;
  border-radius: 0;
  margin: 0;
  color: #181818;
  box-shadow: none;
}

.sidebar-workbench::before,
.sidebar-workbench::after,
.sidebar-panel-layouts::before,
.sidebar-panel-layouts::after,
#sidebar-panel-layouts::before,
#sidebar-panel-layouts::after {
  display: none !important;
}

.sidebar-workbench.sidebar-prompt-sections::before {
  display: block !important;
}

.legacy-sidebar-tabs,
.legacy-project-subtabs,
.subtab-context-label {
  display: none !important;
}

.sidebar-hero {
  position: relative;
  padding: 0 6px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.sidebar-hero-copy {
  display: grid;
  gap: 10px;
}

.sidebar-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sidebar-hero .eyebrow {
  margin: 0;
  color: #6d6d6d;
  font-size: 0.7rem;
}

.beta-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 18px;
  padding: 0 6px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.04);
  box-shadow: none;
  color: #6b7280;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.sidebar-hero h1 {
  color: #161616;
  font-size: 1.2rem;
  line-height: 1.14;
  font-weight: 600;
}

.sidebar-hero .panel-copy {
  max-width: none;
  margin: 0;
  color: #4f4f4f;
  font-size: 0.88rem;
  line-height: 1.48;
}

.sidebar-panel-pages,
.sidebar-panel-library {
  min-height: 0;
}

.sidebar-panel-pages {
  flex: 0 0 auto;
}

.sidebar-panel-library {
  flex: 0 0 auto;
}

.sidebar-surface-card {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.page-manager {
  gap: 10px;
  max-height: min(90vh, calc(100vh - 330px));
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  position: relative;
}

.page-manager.is-collapsed {
  max-height: none;
  grid-template-rows: auto 0fr;
}

#sidebar-panel-projects .page-manager::before,
#sidebar-panel-projects .page-manager::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 4;
}

#sidebar-panel-projects .page-manager::before {
  height: 42px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #ffffff 88%);
}

#sidebar-panel-projects .page-manager::after {
  width: 22px;
  height: 22px;
  left: 50%;
  right: auto;
  bottom: 10px;
  transform: translateX(-50%);
  border-radius: 999px;
  border: 1px solid rgba(226, 226, 226, 0.98);
  background:
    #ffffff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.25 4.5L6 8.25L9.75 4.5' stroke='%23979797' stroke-width='1.35' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 10px 10px no-repeat;
  box-shadow: 0 8px 16px rgba(17, 17, 17, 0.06);
}

#sidebar-panel-projects.has-scroll-cue .page-manager::before,
#sidebar-panel-projects.has-scroll-cue .page-manager::after {
  opacity: 1;
}

.sidebar-section-heading,
.sidebar-library-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sidebar-section-heading-copy {
  display: grid;
  gap: 2px;
}

.sidebar-accordion-heading {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  cursor: pointer;
}

.sidebar-accordion-toggle {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  padding: 0;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.16s ease, opacity 0.16s ease;
}

.sidebar-accordion-toggle:hover,
.sidebar-accordion-toggle:focus-visible {
  background: #f0f0f0;
  outline: none;
}

.sidebar-accordion-toggle.is-collapsed .page-branch-indicator::before {
  transform: rotate(-45deg);
}

.sidebar-step {
  color: #656565;
  font-size: 0.84rem;
  font-weight: 500;
}

.sidebar-subcopy {
  color: #6a6a6a;
  font-size: 0.84rem;
  line-height: 1.42;
}

.sidebar-icon-button {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #6b6b6b;
  font: inherit;
  font-size: 1.2rem;
  line-height: 1;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: color 0.16s ease, background 0.16s ease;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-icon-button:hover,
.sidebar-icon-button:focus-visible {
  background: #f3f3f3;
  color: #222;
  outline: none;
}

.sidebar-link-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #5f5f5f;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.sidebar-page-footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-top: 2px;
}

.sidebar-page-footer[hidden] {
  display: none !important;
}

.page-manager-body {
  display: grid;
  grid-template-rows: 1fr;
  min-height: 0;
  opacity: 1;
  transition: grid-template-rows 180ms ease, opacity 180ms ease;
}

.page-manager-body.is-collapsed {
  grid-template-rows: 0fr;
  opacity: 0;
  pointer-events: none;
}

.page-manager-body-inner {
  min-height: 0;
  overflow: hidden;
  display: grid;
  gap: 10px;
}

.page-list-shell {
  max-height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  position: relative;
}

.page-list-shell::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.page-list-shell::after {
  display: none;
}

.page-list-shell::before {
  display: none;
}

.page-list {
  gap: 0;
}

.page-tree-node,
.page-tree-children {
  gap: 1px;
}

.page-tree-children-wrap {
  display: grid;
  grid-template-rows: 1fr;
  opacity: 1;
  overflow: hidden;
  visibility: visible;
  transition:
    grid-template-rows 220ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 220ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0s;
}

.page-tree-children-wrap.is-collapsed {
  grid-template-rows: 0fr;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    grid-template-rows 220ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 220ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 220ms;
}

.page-tree-children-wrap > .page-tree-children {
  min-height: 0;
  overflow: hidden;
}

.page-list-item {
  width: auto;
  padding: 5px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-left: calc(var(--page-depth, 0) * 14px);
  cursor: pointer;
}

.page-list-item:hover {
  background: #f7f7f7;
  border-radius: 10px;
}

.page-list-item.is-active {
  background: #f2f2f2;
  border-radius: 10px;
  box-shadow: none;
}

.page-list-item.is-context-target {
  background: #f6f6f6;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px #d8d8d8;
}

.page-list-item.is-active.is-context-target {
  background: #ededed;
  box-shadow: inset 0 0 0 1px #cfcfcf;
}

.page-list-item.is-active .page-title-display {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    max-width: 120px;
}

.page-list-item.drop-child {
  background: #f5f8ff;
  outline: 1px solid #b8cff7;
}

.page-select-button {
  width: fit-content;
  justify-content: flex-start;
  color: #181818;
}

.page-row-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2px 10px;
  min-width: 0;
  width: 100%;
}

.page-row-left {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
}

.page-row-leading {
  display: flex;
  align-items: center;
  min-width: 0;
  width: fit-content;
}

.page-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 0;
  flex: 0 0 auto;
}

.page-branch-toggle {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  align-self: center;
  border: 0;
  border-radius: 4px;
  background: transparent;
  padding: 0;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}

.page-branch-toggle:hover,
.page-branch-toggle:focus-visible {
  background: #f0f0f0;
  outline: none;
}

.page-branch-toggle.is-empty {
  cursor: default;
}

.page-branch-indicator {
  width: 10px;
  height: 10px;
  display: block;
  position: relative;
}

.page-branch-indicator.is-empty {
  opacity: 0;
}

.page-branch-indicator::before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid #6d6d6d;
  border-bottom: 1.5px solid #6d6d6d;
  transform: rotate(45deg);
  transform-origin: center;
  margin: 1px 0 0 1px;
  transition: transform 0.16s ease;
}

.page-branch-toggle.is-collapsed .page-branch-indicator::before {
  transform: rotate(-45deg);
}

.page-title-display {
  color: #171717;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1;
  width: fit-content;
  max-width: 190px;
}

.depth-2 span.page-title-display {
      color: #3d3d3d!important;
}

.page-tree-node.depth-0 > .page-list-item .page-title-display,
.page-tree-node.depth-1 > .page-list-item .page-title-display {
  font-weight: 600;
}

.page-item-meta {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
  width: auto;
  flex: 0 0 auto;
}

.page-row-settings {
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #6b6b6b;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  font-size: 15px;
  transition: background 0.16s ease, color 0.16s ease;
  display: flex;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.page-row-delete {
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #8a8a8a;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
  transition: background 0.16s ease, color 0.16s ease;
  display: flex;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.page-row-delete:hover,
.page-row-delete:focus-visible {
  background: #f0f0f0;
  color: #1f1f1f;
  outline: none;
}

.page-row-settings:hover,
.page-row-settings:focus-visible {
  background: #ebebeb;
  color: #222;
  outline: none;
}

.page-drag-hint {
  display: none;
}

.page-list-item.is-renaming .page-row-main,
.page-list-item.is-renaming .page-item-meta,
.page-list-item.is-renaming .page-row-actions,
.page-list-item.is-renaming .page-row-settings,
.page-list-item.is-renaming .page-row-delete,
.page-list-item.is-renaming .page-drag-hint {
  display: none;
}

.sidebar-library-card {
  height: auto;
  min-height: 0;
  grid-template-rows: auto auto;
  overflow: visible;
  padding: 18px 6px 0;
  border-top: 1px solid #ececec;
}

.sidebar-library-header {
  align-items: center;
}

.sidebar-library-tabs {
  width: auto;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  gap: 18px;
}

.sidebar-library-tabs .sidebar-tab {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #808080;
  box-shadow: none;
  font-size: 0.88rem;
}

.sidebar-library-tabs .sidebar-tab:hover,
.sidebar-library-tabs .sidebar-tab:focus-visible {
  background: transparent;
  color: #1d1d1d;
  box-shadow: none;
}

.sidebar-library-tabs .sidebar-tab.is-active {
  background: transparent;
  color: #181818;
  border: 0;
  box-shadow: none;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.sidebar-library-card #layout-panel-sections,
.sidebar-library-card #layout-panel-templates {
  min-height: 0;
}

.sidebar-library-card {
  display: grid;
  align-content: start;
  min-height: 0;
  height: min(52vh, calc(100vh - 430px));
}

.sidebar-library-card #layout-panel-sections.is-active,
.sidebar-library-card #layout-panel-templates.is-active {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  min-height: 0;
}

.sidebar-library-card #layout-panel-sections.is-active {
  grid-template-rows: auto auto minmax(0, 1fr);
}

.template-search {
  position: relative;
}

.template-search::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Ccircle cx='6' cy='6' r='4.25' stroke='%238b8b8b' stroke-width='1.5'/%3E%3Cpath d='M9.5 9.5L12.25 12.25' stroke='%238b8b8b' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 14px 14px;
  pointer-events: none;
  z-index: 1;
}

.template-search input {
  border-color: #dfdfdf;
  border-radius: 8px;
  background: #ffffff;
  color: #171717;
  min-height: 40px;
  padding: 10px 12px 10px 44px !important;
  position: relative;
  z-index: 0;
}

.template-search input::placeholder {
  color: #8b8b8b;
}

.template-category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: flex-start;
}

.template-category-pill {
  appearance: none;
  border: 1px solid #dfdfdf;
  border-radius: 999px;
  background: #fff;
  color: #666;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  padding: 6px 9px;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, opacity 0.16s ease;
}

.template-category-pill:hover,
.template-category-pill:focus-visible {
  opacity: 0.82;
}

.template-category-pill.is-active {
  background: #171717;
  border-color: #171717;
  color: #fff;
  opacity: 1;
}

.template-library-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-content: start;
  min-height: 0;
  overflow: visible;
  padding-right: 0;
}

.template-card {
  padding: 0;
  gap: 8px;
  align-content: start;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: ease .2s;
}

.template-card.is-filter-enter {
  animation: templateLibraryItemEnter 220ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--template-enter-delay, 0ms);
}

.template-card:hover,
.template-card:focus-visible {
  transform: none;
  background: transparent;
  opacity: 0.8;
}

.template-thumb {
  width: 100%;
  min-height: 96px;
  border: 0;
  border-radius: 8px;
  background: #f5f3ef;
  padding: 12px;
}

@keyframes templateLibraryItemEnter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.template-thumb .diagram-box,
.template-thumb .diagram-line,
.template-thumb .diagram-pill {
  background: #d7d3cb !important;
  border-color: #d7d3cb !important;
}

.template-copy {
  display: grid;
  gap: 3px;
}

.template-badge {
  color: #8a8a8a;
  font-size: 0.56rem;
}

.template-name {
  color: #181818;
  font-size: 0.96rem;
  line-height: 1.25;
}

.layout-template-intro {
  display: grid;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.page-template-mode {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f5f5f5;
}

.page-template-mode-button {
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
}

.page-template-mode-button:hover,
.page-template-mode-button:focus-visible {
  color: var(--ink);
  outline: none;
}

.page-template-mode-button.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(17, 17, 17, 0.08);
}

body.seed-viewer-mode #project-share-links-menu-btn,
body.seed-viewer-mode .sidebar-panel-library {
  display: none !important;
}

.onboarding-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  animation: modalBackdropEnter 0.28s ease;
}

.onboarding-overlay[hidden] {
  display: none !important;
}

.onboarding-card {
  width: min(480px, 100%);
  padding: 28px;
  border: 1px solid #ececec;
  border-radius: 20px;
  background: #fff;
  display: grid;
  gap: 18px;
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.08);
  transform-origin: top center;
  animation: canvasModeEnter 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.onboarding-card.is-processing {
  position: relative;
  overflow: hidden;
}

.onboarding-card.is-processing::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(30, 144, 255, 0.06), rgba(255, 255, 255, 0.6), rgba(30, 144, 255, 0.06));
  background-size: 200% 100%;
  animation: aiShimmer 3s ease infinite;
  pointer-events: none;
}

.idle-session-card {
  width: min(520px, 100%);
}

.idle-session-overlay {
  z-index: 160;
}

.idle-session-overlay.is-resuming .idle-session-card {
  position: relative;
  overflow: hidden;
}

.idle-session-overlay.is-resuming .idle-session-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(30, 144, 255, 0.06), rgba(255, 255, 255, 0.6), rgba(30, 144, 255, 0.06));
  background-size: 200% 100%;
  animation: aiShimmer 3s ease infinite;
  pointer-events: none;
}

.onboarding-card h2 {
  margin: 0;
  font-size: 1.85rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.onboarding-card .panel-copy {
  margin: -8px 0 0;
}

.onboarding-actions {
  display: flex;
  justify-content: flex-start;
}

body.has-tour {
  overflow: hidden;
}

.expired-project-screen[hidden] {
  display: none !important;
}

.expired-project-screen {
  position: fixed;
  inset: 0;
  z-index: 5100;
  display: grid;
  place-items: center;
  background: #fff;
}

.expired-project-screen p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.4;
  color: #6b7280;
}

.session-tour-overlay {
  position: fixed;
  inset: 0;
  z-index: 180;
}

.session-tour-overlay[hidden] {
  display: none !important;
}

.session-tour-scrim {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.12);
}

.session-tour-highlight {
  position: fixed;
  z-index: 1;
  border: 2px solid rgba(255, 255, 255, 0.94);
  border-radius: 22px;
  box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.16), 0 18px 48px rgba(15, 23, 42, 0.12);
  transition: top 0.2s ease, left 0.2s ease, width 0.2s ease, height 0.2s ease;
  pointer-events: none;
}

.session-tour-card {
  position: fixed;
  z-index: 2;
  width: min(360px, calc(100vw - 32px));
  padding: 22px 22px 18px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 72px rgba(15, 23, 42, 0.18);
  display: grid;
  gap: 14px;
}

.session-tour-card h2 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.session-tour-card .panel-copy {
  margin: 0;
}

.session-tour-meta,
.session-tour-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.session-tour-step-count {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.session-tour-skip {
  padding-inline: 10px;
}

.session-tour-progress {
  display: flex;
  gap: 8px;
}

.session-tour-progress-dot {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: #dbe3ec;
}

.session-tour-progress-dot.is-active {
  background: #0f172a;
}

.session-tour-actions {
  justify-content: flex-end;
}

.session-tour-actions .ghost-button[disabled] {
  opacity: 0.45;
  cursor: default;
}

.sitemap-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfbfb;
}

.sitemap-view {
  overflow-x: auto;
}

.sitemap-canvas {
  position: relative;
  display: block;
  overflow: auto;
  height: 100%;
  padding: 0;
  cursor: grab;
  touch-action: none;
  transition: filter 0.28s ease, transform 0.28s ease, opacity 0.28s ease;
}

.sitemap-canvas.is-pan-ready {
  cursor: grab;
}

.sitemap-canvas.is-panning {
  cursor: grabbing;
}

.sitemap-canvas[hidden],
.canvas[hidden] {
  display: none !important;
}

.sitemap-stage {
  width: 100%;
  height: auto;
  min-height: 100%;
  margin: 0;
  padding: 30px 0 24px;
  box-sizing: border-box;
  display: grid;
  grid-template-rows: auto auto;
  align-content: start;
  gap: 70px;
}

.sitemap-stage-header {
  display: grid;
  gap: 8px;
  padding-left: 30px;
}

.sitemap-stage-header h2 {
  margin: 0;
  letter-spacing: -0.04em;
}

.sitemap-stage-tree {
  position: relative;
  display: inline-block;
  overflow: visible;
  min-height: 0;
  height: auto;
  min-width: 100%;
  padding: 0 24px 28px 24px;
  --sitemap-node-width: 190px;
  --sitemap-depth-indent: 42px;
  --sitemap-node-gap: 22px;
  cursor: grab;
  user-select: none;
  scrollbar-gutter: stable;
  touch-action: none;
}

.sitemap-stage-tree.is-pan-ready {
  cursor: grab;
}

.sitemap-stage-tree.is-panning {
  cursor: grabbing;
}

.sitemap-connector-layer {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  overflow: visible;
  z-index: 0;
}

.sitemap-connector-path {
  fill: none;
  stroke: #cfcfcf;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sitemap-layout {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 44px;
  width: max-content;
  z-index: 1;
}

.sitemap-root-card-wrap {
  position: relative;
  width: var(--sitemap-node-width);
  display: flex;
  justify-content: center;
}

.sitemap-top-branches {
  position: relative;
  width: max-content;
}

.sitemap-top-branches-row {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  width: max-content;
}

.sitemap-branch-lane {
  position: relative;
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 22px;
  width: calc(var(--sitemap-node-width) + (var(--sitemap-lane-offset, 0) * var(--sitemap-depth-indent)));
  min-width: calc(var(--sitemap-node-width) + (var(--sitemap-lane-offset, 0) * var(--sitemap-depth-indent)));
}

.sitemap-lane-card-slot {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  padding-left: calc(var(--sitemap-depth-offset, 0) * var(--sitemap-depth-indent));
}

@media (max-width: 1100px) {
  .sitemap-top-branches-row {
    gap: 28px;
  }
}

.sitemap-card {
  display: grid;
  gap: 0;
  width: var(--sitemap-node-width);
  max-width: var(--sitemap-node-width);
  min-width: 0;
  min-height: 86px;
  padding: 16px 18px;
  border: 1px solid #dedede;
  border-radius: 16px;
  background: #fff;
  text-align: center;
  justify-items: center;
  align-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.035);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  position: relative;
  z-index: 1;
}

.sitemap-card strong {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.98rem;
  line-height: 1.25;
  min-height: 2.2em;
}

.sitemap-card-meta {
  display: grid;
  justify-items: center;
  gap: 6px;
  margin-top: 10px;
}

.sitemap-card .page-status-chip {
  margin: 0;
}

.sitemap-card .page-seo-score {
  font-size: 0.78rem;
}

.sitemap-card:hover,
.sitemap-card:focus-visible,
.sitemap-card.is-context-target {
  border-color: dodgerblue;
  background: #fcfdff;
  box-shadow: 0 10px 24px rgba(30, 144, 255, 0.12);
  outline: none;
}

.sitemap-card[draggable="true"] {
  cursor: grab;
}

.sitemap-card[draggable="true"]:active {
  cursor: grabbing;
}

.sitemap-card.is-dragging {
  opacity: 0.54;
  border-color: rgba(30, 144, 255, 0.5);
}

.sitemap-card.drop-child {
  border-color: dodgerblue;
  background: #f5faff;
  box-shadow: 0 0 0 4px rgba(30, 144, 255, 0.14), 0 12px 28px rgba(30, 144, 255, 0.12);
}

.sitemap-card.drop-before::before,
.sitemap-card.drop-after::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  height: 3px;
  border-radius: 999px;
  background: dodgerblue;
  box-shadow: 0 0 0 4px rgba(30, 144, 255, 0.12);
}

.sitemap-card.drop-before::before {
  top: -11px;
}

.sitemap-card.drop-after::after {
  bottom: -11px;
}

.floating-controls {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 40;
}

.floating-sitemap-button {
  position: relative;
  width: 52px;
  height: 52px;
  border: 1px solid #dcdcdc;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.floating-sitemap-button::before,
.floating-sitemap-button::after {
  position: absolute;
  left: 50%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.floating-sitemap-button::before {
  content: attr(data-tooltip);
  bottom: calc(100% + 17px);
  transform: translateX(-50%) translateY(4px);
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(16, 16, 16, 0.92);
  color: #fff;
  font-size: 0.76rem;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.floating-sitemap-button::after {
  content: "";
  bottom: calc(100% + 6px);
  transform: translateX(-50%) translateY(4px);
  width: 2px;
  height: 12px;
  background: rgba(16, 16, 16, 0.92);
}

.floating-sitemap-button:hover::before,
.floating-sitemap-button:hover::after,
.floating-sitemap-button:focus-visible::before,
.floating-sitemap-button:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.floating-sitemap-button svg {
  width: 22px;
  height: 22px;
}

.floating-sitemap-button.is-active {
  border-color: dodgerblue;
  color: dodgerblue;
}

body.seo-table-mode .canvas-status-dock {
  display: none;
}

body.sitemap-mode .canvas-status-dock {
  display: none;
}

.floating-zoom-button {
  display: none;
}

body.preview-mode .floating-zoom-button {
  display: grid;
}

.template-library {
  flex: 1;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
}

.template-library::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.field {
  display: grid;
  gap: 6px;
}

.field span {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted);
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.checkbox-field input {
  width: 16px;
  height: 16px;
}

.field-group {
  display: grid;
  gap: 10px;
}

.field-group-header {
  display: grid;
  gap: 4px;
}

.field-group-header > span {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted);
}

.inline-field-pair {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.custom-post-type-list {
  display: grid;
  gap: 8px;
}

.page-taxonomy-fields {
  display: grid;
  gap: 12px;
}

.page-taxonomy-group {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
}

.page-taxonomy-options {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.taxonomy-checkbox {
  color: var(--ink);
  font-weight: 600;
}

.page-taxonomy-add {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.page-taxonomy-add .ghost-button {
  white-space: nowrap;
}

.custom-taxonomy-token-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

.custom-post-type-token.custom-taxonomy-token {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 0;
  padding: 0;
  overflow: hidden;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.custom-post-type-token.custom-taxonomy-token:focus-within,
.custom-post-type-token.custom-taxonomy-token:hover {
  border-color: var(--line-dark);
}

.custom-taxonomy-toggle {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 9px 12px;
  text-align: left;
}

.custom-taxonomy-token .keyword-token-remove {
  margin-right: 12px;
}

.custom-taxonomy-count {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 650;
  white-space: nowrap;
  margin-left: auto;
}

.custom-taxonomy-post-type-summary {
  color: #5d6673;
  font-size: 0.72rem;
  font-weight: 600;
}

.custom-taxonomy-chevron {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}

.custom-taxonomy-toggle[aria-expanded="true"] .custom-taxonomy-chevron {
  transform: rotate(225deg);
}

.custom-taxonomy-term-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: auto;
  margin: 0 12px 12px;
  padding: 10px 0 0;
  border-top: 1px solid var(--line);
}

.custom-taxonomy-post-type-list {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.custom-taxonomy-post-type-list .custom-taxonomy-empty {
  flex-basis: 100%;
  margin-bottom: 2px;
}

.custom-taxonomy-post-type-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 650;
  cursor: pointer;
}

.custom-taxonomy-post-type-option input {
  width: 13px;
  height: 13px;
  accent-color: dodgerblue;
}

.custom-taxonomy-term-list.is-collapsed {
  display: none;
}

.custom-taxonomy-term {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 650;
}

.custom-taxonomy-term button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  line-height: 1;
}

.custom-taxonomy-empty {
  width: 100%;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.custom-post-type-token {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
}

.custom-post-type-token.is-default {
  background: var(--surface-muted);
}

.custom-post-type-token-copy {
  display: grid;
  gap: 2px;
}

.custom-post-type-token-copy strong,
.custom-post-type-token > strong {
  font-size: 0.86rem;
}

.custom-post-type-token-copy span,
.custom-post-type-token > span {
  color: var(--muted);
  font-size: 0.75rem;
}

@media (max-width: 720px) {
  .share-link-edit-grid {
    grid-template-columns: 1fr;
  }

  .inline-field-pair {
    grid-template-columns: 1fr;
  }

  .page-taxonomy-options {
    grid-template-columns: 1fr;
  }

  .page-taxonomy-add {
    grid-template-columns: 1fr;
  }

  .section-history-layout {
    grid-template-columns: 1fr;
  }

  .section-history-list {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .section-history-preview-header {
    flex-direction: column;
    align-items: stretch;
  }
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="file"],
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
  color: var(--ink);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.template-card,
.ghost-button,
.utility-button,
.image-control-button {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.template-card {
  width: 100%;
  text-align: left;
  padding: 8px 9px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 25px;
  transition: border-color 120ms ease, background 120ms ease, transform 120ms ease;
}

.template-card:hover,
.template-card:focus-visible {
  border-color: var(--line-dark);
  background: var(--surface-muted);
}

.template-thumb {
  width: 43px;
  min-height: 24px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 4px;
  display: grid;
  gap: 2px;
  background: #f7f7f7;
  align-content: center;
  justify-content: stretch;
}

.page-title-display {
  font-size: 14px;
}

.diagram-row,
.diagram-grid {
  display: grid;
  gap: 2px;
}

.diagram-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.diagram-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.diagram-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.diagram-box,
.diagram-line,
.diagram-circle,
.diagram-pill,
.diagram-cell {
  background: #ededed;
  border: 1px solid #dbdbdb;
}

.diagram-line {
  height: 3px;
  border-radius: 999px;
}

.diagram-line.short {
  width: 45%;
}

.diagram-line.medium {
  width: 68%;
}

.diagram-line.long {
  width: 100%;
}

.diagram-box {
  min-height: 10px;
  border-radius: 2px;
}

.diagram-box.tall {
  min-height: 16px;
}

.diagram-box.hero {
  min-height: 18px;
}

.diagram-circle {
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.diagram-pill {
  width: 18px;
  height: 6px;
  border-radius: 999px;
}

.diagram-cell {
  min-height: 8px;
  border-radius: 2px;
}

.template-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.sidebar-workbench .template-library-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-content: start;
  overflow: visible;
  padding-right: 0;
}

.sidebar-workbench .template-library-grid .template-card {
  width: 100%;
  text-align: left;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: none;
}

.sidebar-workbench .template-library-grid .template-card:hover,
.sidebar-workbench .template-library-grid .template-card:focus-visible {
  border: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.sidebar-workbench .template-library-grid .template-card {
  transition: transform 0.3s ease;
}

.sidebar-workbench .template-library-grid .template-card:hover,
.sidebar-workbench .template-library-grid .template-card:focus-visible {
  transform: translateY(-1px);
}

.sidebar-workbench .template-library-grid .template-card:hover .template-thumb,
.sidebar-workbench .template-library-grid .template-card:focus-visible .template-thumb {
  border-color: #d9d9d9;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 8px 18px rgba(17, 17, 17, 0.05);
}

.sidebar-workbench .template-library-grid .template-card:hover .template-name,
.sidebar-workbench .template-library-grid .template-card:focus-visible .template-name {
  color: #111;
}

.sidebar-workbench .template-library-grid .template-thumb {
  width: 100%;
  min-height: 126px;
  display: block;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  background: #f6f3ee;
  padding: 12px;
  display: grid;
  align-content: stretch;
  gap: 8px;
  overflow: hidden;
}

.sidebar-workbench .template-library-grid .template-thumb .diagram-box,
.sidebar-workbench .template-library-grid .template-thumb .diagram-line,
.sidebar-workbench .template-library-grid .template-thumb .diagram-pill {
  background: #d8d4cc !important;
  border-color: #d8d4cc !important;
}

.sidebar-workbench .template-library-grid .template-thumb .diagram-row,
.sidebar-workbench .template-library-grid .template-thumb .diagram-grid {
  gap: 8px;
}

.sidebar-workbench .template-library-grid .template-thumb .diagram-grid {
  align-items: stretch;
}

.sidebar-workbench .template-library-grid .template-thumb .diagram-box {
  min-height: 28px;
  border-radius: 6px;
}

.sidebar-workbench .template-library-grid .template-thumb .diagram-box.tall {
  min-height: 58px;
}

.sidebar-workbench .template-library-grid .template-thumb .diagram-box.hero {
  min-height: 70px;
}

.sidebar-workbench .template-library-grid .template-thumb .diagram-line {
  height: 5px;
  border-radius: 999px;
}

.sidebar-workbench .template-library-grid .template-thumb .diagram-line.short {
  width: 48%;
}

.sidebar-workbench .template-library-grid .template-thumb .diagram-line.medium {
  width: 72%;
}

.sidebar-workbench .template-library-grid .template-thumb .diagram-line.long {
  width: 100%;
}

.sidebar-workbench .template-library-grid .template-thumb .diagram-pill {
  width: 34px;
  height: 8px;
}

.sidebar-workbench #page-template-library.template-library-grid .template-thumb {
  background:
    linear-gradient(#ece7de, #ece7de) 0 0 / 100% 12px no-repeat,
    #f6f3ee;
  padding-top: 20px;
}

.sidebar-workbench #page-template-library.template-library-grid .template-thumb .diagram-grid,
.sidebar-workbench #page-template-library.template-library-grid .template-thumb .diagram-row {
  gap: 6px;
}

.sidebar-workbench #page-template-library.template-library-grid .template-thumb .diagram-box.hero {
  min-height: 46px;
}

.sidebar-workbench #page-template-library.template-library-grid .template-thumb .diagram-box.tall {
  min-height: 36px;
}

.sidebar-workbench .template-library-grid .template-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.sidebar-workbench .template-library-grid .template-badge {
  color: #8d8d8d;
  font-size: 0.56rem;
}

.sidebar-workbench .template-library-grid .template-name {
  color: #181818;
  font-size: 0.88rem;
  line-height: 1.24;
  font-weight: 600;
}

.sidebar-workbench .template-library-grid .template-card {
  align-content: start;
}

.sidebar-workbench #page-template-library.template-library-grid .page-template-card {
  cursor: pointer;
}

.sidebar-workbench .template-library-grid .template-thumb {
  min-height: 132px;
  border: 1px solid #ececec;
  border-radius: 10px;
  background:
    linear-gradient(180deg, #fcfcfc 0%, #f3f3f3 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 1px 1px rgba(17, 17, 17, 0.02);
  padding: 10px;
}

.sidebar-workbench #page-template-library.template-library-grid .template-thumb {
  padding: 8px;
  background: linear-gradient(180deg, #fcfcfc 0%, #f3f3f3 100%);
}

.sidebar-workbench .template-library-grid .template-copy {
  gap: 4px;
}

.sidebar-workbench .template-library-grid .template-badge {
  color: #929292;
  font-size: 0.58rem;
  letter-spacing: 0.16em;
}

.sidebar-workbench .template-library-grid .template-name {
  font-size: 0.92rem;
  line-height: 1.22;
}

.sidebar-workbench .template-library-grid .template-thumb > * {
  box-sizing: border-box;
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-line,
.sidebar-workbench .template-library-grid .template-thumb .thumb-pill,
.sidebar-workbench .template-library-grid .template-thumb .thumb-media-shape,
.sidebar-workbench .template-library-grid .template-thumb .thumb-gallery-cell,
.sidebar-workbench .template-library-grid .template-thumb .thumb-logo-cell,
.sidebar-workbench .template-library-grid .template-thumb .thumb-check-icon,
.sidebar-workbench .template-library-grid .template-thumb .thumb-accordion-toggle,
.sidebar-workbench .template-library-grid .template-thumb .thumb-dot,
.sidebar-workbench .template-library-grid .template-thumb .thumb-page-dot,
.sidebar-workbench .template-library-grid .template-thumb .thumb-page-address,
.sidebar-workbench .template-library-grid .template-thumb .thumb-tab-pill,
.sidebar-workbench .template-library-grid .template-thumb .thumb-process-badge,
.sidebar-workbench .template-library-grid .template-thumb .thumb-map-pin,
.sidebar-workbench .template-library-grid .template-thumb .thumb-map-line {
  display: block;
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-hero-preview,
.sidebar-workbench .template-library-grid .template-thumb .thumb-split-preview,
.sidebar-workbench .template-library-grid .template-thumb .thumb-article-preview,
.sidebar-workbench .template-library-grid .template-thumb .thumb-duo-panels {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 10px;
  height: 100%;
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-split-preview.is-compact {
  gap: 8px;
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-hero-copy,
.sidebar-workbench .template-library-grid .template-thumb .thumb-panel-card,
.sidebar-workbench .template-library-grid .template-thumb .thumb-form-card,
.sidebar-workbench .template-library-grid .template-thumb .thumb-price-column,
.sidebar-workbench .template-library-grid .template-thumb .thumb-feature-card,
.sidebar-workbench .template-library-grid .template-thumb .thumb-stat-card,
.sidebar-workbench .template-library-grid .template-thumb .thumb-review-card,
.sidebar-workbench .template-library-grid .template-thumb .thumb-side-card,
.sidebar-workbench .template-library-grid .template-thumb .thumb-page-section,
.sidebar-workbench .template-library-grid .template-thumb .thumb-map-card {
  border-radius: 8px;
  border: 1px solid rgba(220, 220, 220, 0.95);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-panel-card,
.sidebar-workbench .template-library-grid .template-thumb .thumb-form-card,
.sidebar-workbench .template-library-grid .template-thumb .thumb-price-column,
.sidebar-workbench .template-library-grid .template-thumb .thumb-feature-card,
.sidebar-workbench .template-library-grid .template-thumb .thumb-stat-card,
.sidebar-workbench .template-library-grid .template-thumb .thumb-review-card,
.sidebar-workbench .template-library-grid .template-thumb .thumb-side-card,
.sidebar-workbench .template-library-grid .template-thumb .thumb-page-section,
.sidebar-workbench .template-library-grid .template-thumb .thumb-map-card {
  padding: 8px;
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-panel-card.is-soft,
.sidebar-workbench .template-library-grid .template-thumb .thumb-side-card,
.sidebar-workbench .template-library-grid .template-thumb .thumb-map-card,
.sidebar-workbench .template-library-grid .template-thumb .thumb-page-section {
  background: rgba(255, 255, 255, 0.68);
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-panel-card.is-inverted,
.sidebar-workbench .template-library-grid .template-thumb .thumb-price-column.is-featured {
  background: linear-gradient(180deg, #2f2f2f 0%, #181818 100%);
  border-color: #171717;
  box-shadow: none;
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-line {
  height: 5px;
  border-radius: 999px;
  background: #d8d8d8;
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-line.is-heavy {
  background: #b9b9b9;
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-line.is-light {
  background: rgba(255, 255, 255, 0.78);
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-line.is-xs {
  width: 32%;
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-line.is-sm {
  width: 48%;
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-line.is-md {
  width: 66%;
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-line.is-lg {
  width: 84%;
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-line.is-full {
  width: 100%;
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-copy-stack,
.sidebar-workbench .template-library-grid .template-thumb .thumb-hero-copy,
.sidebar-workbench .template-library-grid .template-thumb .thumb-form-card,
.sidebar-workbench .template-library-grid .template-thumb .thumb-side-stack,
.sidebar-workbench .template-library-grid .template-thumb .thumb-price-column,
.sidebar-workbench .template-library-grid .template-thumb .thumb-page-copy {
  display: grid;
  align-content: start;
  gap: 8px;
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-copy-stack.is-compact {
  gap: 6px;
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-pill {
  height: 9px;
  border-radius: 999px;
  background: #d8d8d8;
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-pill.is-sm {
  width: 34px;
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-pill.is-md {
  width: 46px;
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-pill.is-lg {
  width: 58px;
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-pill.is-dark {
  background: #1a1a1a;
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-pill.is-light {
  background: rgba(255, 255, 255, 0.84);
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-media-card,
.sidebar-workbench .template-library-grid .template-thumb .thumb-form-card,
.sidebar-workbench .template-library-grid .template-thumb .thumb-map-card {
  position: relative;
  overflow: hidden;
  min-height: 0;
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-media-card {
  border-radius: 10px;
  border: 1px solid rgba(220, 220, 220, 0.95);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(231, 231, 231, 0.96));
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-media-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 42%),
    radial-gradient(circle at 72% 24%, rgba(255, 255, 255, 0.7), transparent 26%);
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-media-card.is-tall {
  min-height: 100%;
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-media-card.is-wide {
  min-height: 56px;
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-media-shape {
  position: absolute;
  inset: 12px;
  border-radius: 8px;
  border: 1px solid rgba(212, 212, 212, 0.95);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(206, 206, 206, 0.98));
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-card-row {
  display: grid;
  gap: 8px;
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-card-row.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-card-row.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-card-row.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-card-row.is-tall .thumb-feature-card {
  min-height: 68px;
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-stat-card {
  min-height: 48px;
  align-content: end;
  gap: 8px;
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-feature-card {
  min-height: 62px;
  display: grid;
  align-content: end;
  gap: 8px;
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-checklist,
.sidebar-workbench .template-library-grid .template-thumb .thumb-accordion {
  display: grid;
  gap: 7px;
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-check-row,
.sidebar-workbench .template-library-grid .template-thumb .thumb-accordion-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 7px;
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-check-icon,
.sidebar-workbench .template-library-grid .template-thumb .thumb-accordion-toggle {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 1px solid #d9d9d9;
  background: rgba(255, 255, 255, 0.82);
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-accordion-row {
  border-radius: 7px;
  border: 1px solid rgba(223, 223, 223, 0.95);
  background: rgba(255, 255, 255, 0.62);
  padding: 6px 7px;
  display: grid;
  gap: 6px;
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-accordion-body {
  padding-left: 19px;
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-grid-preview,
.sidebar-workbench .template-library-grid .template-thumb .thumb-case-study-preview,
.sidebar-workbench .template-library-grid .template-thumb .thumb-carousel-preview,
.sidebar-workbench .template-library-grid .template-thumb .thumb-tab-preview {
  display: grid;
  align-content: start;
  gap: 8px;
  height: 100%;
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-article-preview {
  height: 100%;
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-side-stack {
  gap: 8px;
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-side-card {
  min-height: 0;
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-logo-grid,
.sidebar-workbench .template-library-grid .template-thumb .thumb-gallery-grid {
  display: grid;
  gap: 6px;
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-logo-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-gallery-grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-logo-cell,
.sidebar-workbench .template-library-grid .template-thumb .thumb-gallery-cell {
  min-height: 22px;
  border-radius: 6px;
  background: rgba(215, 215, 215, 0.92);
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-gallery-cell {
  min-height: 28px;
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-gallery-cell.is-featured {
  background: linear-gradient(135deg, #d8d8d8 0%, #c8c8c8 100%);
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-review-card {
  min-height: 68px;
  display: grid;
  align-content: start;
  gap: 7px;
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-stars {
  height: 8px;
  width: 38px;
  background:
    radial-gradient(circle, #b9b9b9 55%, transparent 57%) 0 0 / 8px 8px repeat-x;
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-pricing-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  height: 100%;
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-price-column {
  display: grid;
  align-content: start;
  gap: 7px;
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-map-card {
  min-height: 0;
  position: relative;
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-map-pin {
  position: absolute;
  left: 15px;
  top: 16px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #1f1f1f;
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-map-line {
  position: absolute;
  height: 2px;
  background: #d3d3d3;
  transform-origin: left center;
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-map-line.is-a {
  left: 27px;
  top: 22px;
  width: 34px;
  transform: rotate(14deg);
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-map-line.is-b {
  left: 22px;
  top: 34px;
  width: 42px;
  transform: rotate(-18deg);
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-dot-row,
.sidebar-workbench .template-library-grid .template-thumb .thumb-tab-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(184, 184, 184, 0.92);
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-dot.is-active {
  width: 18px;
  background: #1a1a1a;
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-process-preview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
  height: 100%;
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-process-step {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-process-badge {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #1a1a1a;
  color: #fff;
  font-size: 0.55rem;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-tab-pill {
  width: 24px;
  height: 8px;
  border-radius: 999px;
  background: rgba(193, 193, 193, 0.94);
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-tab-pill.is-active {
  width: 32px;
  background: #1a1a1a;
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-page-shell {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 6px;
  height: 100%;
  padding: 5px;
  border-radius: 9px;
  border: 1px solid rgba(228, 228, 228, 0.95);
  background: rgba(255, 255, 255, 0.52);
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-page-topbar {
  display: grid;
  grid-template-columns: auto auto auto minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(229, 229, 229, 0.95);
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-page-dot {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(191, 191, 191, 0.94);
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-page-address {
  height: 5px;
  border-radius: 999px;
  background: rgba(215, 215, 215, 0.94);
  margin-left: 4px;
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-page-stack {
  display: grid;
  gap: 5px;
  align-content: start;
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-page-section {
  padding: 6px;
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-page-section.is-hero {
  background: rgba(255, 255, 255, 0.78);
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-page-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 6px;
  align-items: stretch;
}

.sidebar-workbench .template-library-grid .template-thumb {
  min-height: 118px;
  padding: 8px;
  gap: 6px;
  overflow: hidden;
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-hero-preview,
.sidebar-workbench .template-library-grid .template-thumb .thumb-split-preview,
.sidebar-workbench .template-library-grid .template-thumb .thumb-article-preview,
.sidebar-workbench .template-library-grid .template-thumb .thumb-duo-panels,
.sidebar-workbench .template-library-grid .template-thumb .thumb-page-split {
  gap: 8px;
  min-height: 0;
  align-items: stretch;
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-grid-preview,
.sidebar-workbench .template-library-grid .template-thumb .thumb-case-study-preview,
.sidebar-workbench .template-library-grid .template-thumb .thumb-carousel-preview,
.sidebar-workbench .template-library-grid .template-thumb .thumb-tab-preview,
.sidebar-workbench .template-library-grid .template-thumb .thumb-page-shell,
.sidebar-workbench .template-library-grid .template-thumb .thumb-page-stack,
.sidebar-workbench .template-library-grid .template-thumb .thumb-side-stack,
.sidebar-workbench .template-library-grid .template-thumb .thumb-pricing-preview,
.sidebar-workbench .template-library-grid .template-thumb .thumb-process-preview,
.sidebar-workbench .template-library-grid .template-thumb .thumb-card-row,
.sidebar-workbench .template-library-grid .template-thumb .thumb-gallery-grid {
  min-height: 0;
  overflow: hidden;
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-panel-card,
.sidebar-workbench .template-library-grid .template-thumb .thumb-form-card,
.sidebar-workbench .template-library-grid .template-thumb .thumb-price-column,
.sidebar-workbench .template-library-grid .template-thumb .thumb-feature-card,
.sidebar-workbench .template-library-grid .template-thumb .thumb-stat-card,
.sidebar-workbench .template-library-grid .template-thumb .thumb-review-card,
.sidebar-workbench .template-library-grid .template-thumb .thumb-side-card,
.sidebar-workbench .template-library-grid .template-thumb .thumb-map-card,
.sidebar-workbench .template-library-grid .template-thumb .thumb-page-section {
  border: 0;
  box-shadow: none;
  border-radius: 7px;
  background: transparent;
  padding: 0;
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-hero-copy,
.sidebar-workbench .template-library-grid .template-thumb .thumb-copy-stack,
.sidebar-workbench .template-library-grid .template-thumb .thumb-page-copy,
.sidebar-workbench .template-library-grid .template-thumb .thumb-form-card,
.sidebar-workbench .template-library-grid .template-thumb .thumb-price-column {
  gap: 6px;
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-media-card,
.sidebar-workbench .template-library-grid .template-thumb .thumb-feature-card,
.sidebar-workbench .template-library-grid .template-thumb .thumb-stat-card,
.sidebar-workbench .template-library-grid .template-thumb .thumb-review-card,
.sidebar-workbench .template-library-grid .template-thumb .thumb-side-card,
.sidebar-workbench .template-library-grid .template-thumb .thumb-map-card,
.sidebar-workbench .template-library-grid .template-thumb .thumb-form-card,
.sidebar-workbench .template-library-grid .template-thumb .thumb-price-column,
.sidebar-workbench .template-library-grid .template-thumb .thumb-page-section {
  background: #e8e8e8;
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-media-card,
.sidebar-workbench .template-library-grid .template-thumb .thumb-map-card {
  border-radius: 8px;
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-media-card::before,
.sidebar-workbench .template-library-grid .template-thumb .thumb-media-shape {
  display: none;
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-media-card.is-wide {
  min-height: 48px;
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-media-card.is-tall {
  min-height: 100%;
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-card-row {
  gap: 6px;
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-feature-card,
.sidebar-workbench .template-library-grid .template-thumb .thumb-review-card {
  min-height: 52px;
  padding: 7px;
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-stat-card {
  min-height: 44px;
  padding: 7px;
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-card-row.is-tall .thumb-feature-card {
  min-height: 58px;
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-side-card,
.sidebar-workbench .template-library-grid .template-thumb .thumb-form-card,
.sidebar-workbench .template-library-grid .template-thumb .thumb-price-column,
.sidebar-workbench .template-library-grid .template-thumb .thumb-map-card,
.sidebar-workbench .template-library-grid .template-thumb .thumb-page-section {
  padding: 7px;
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-logo-grid,
.sidebar-workbench .template-library-grid .template-thumb .thumb-gallery-grid {
  gap: 5px;
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-gallery-cell,
.sidebar-workbench .template-library-grid .template-thumb .thumb-logo-cell {
  border-radius: 5px;
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-page-shell {
  padding: 5px;
  border: 0;
  background: rgba(255, 255, 255, 0.6);
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-page-section.is-hero {
  background: #ededed;
}

.sidebar-workbench #template-library.template-library-grid .template-thumb {
  min-height: 118px;
  padding: 12px;
  gap: 10px;
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .thumb-hero-preview,
.sidebar-workbench #template-library.template-library-grid .template-thumb .thumb-split-preview,
.sidebar-workbench #template-library.template-library-grid .template-thumb .thumb-article-preview,
.sidebar-workbench #template-library.template-library-grid .template-thumb .thumb-duo-panels {
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .thumb-grid-preview,
.sidebar-workbench #template-library.template-library-grid .template-thumb .thumb-case-study-preview,
.sidebar-workbench #template-library.template-library-grid .template-thumb .thumb-carousel-preview,
.sidebar-workbench #template-library.template-library-grid .template-thumb .thumb-tab-preview {
  gap: 10px;
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .thumb-panel-card,
.sidebar-workbench #template-library.template-library-grid .template-thumb .thumb-feature-card,
.sidebar-workbench #template-library.template-library-grid .template-thumb .thumb-stat-card,
.sidebar-workbench #template-library.template-library-grid .template-thumb .thumb-review-card,
.sidebar-workbench #template-library.template-library-grid .template-thumb .thumb-side-card,
.sidebar-workbench #template-library.template-library-grid .template-thumb .thumb-form-card,
.sidebar-workbench #template-library.template-library-grid .template-thumb .thumb-map-card,
.sidebar-workbench #template-library.template-library-grid .template-thumb .thumb-price-column,
.sidebar-workbench #template-library.template-library-grid .template-thumb .thumb-media-card {
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: #fbfbfb;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
  padding: 10px;
  overflow: hidden;
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .thumb-panel-card.is-inverted,
.sidebar-workbench #template-library.template-library-grid .template-thumb .thumb-price-column.is-featured {
  background: linear-gradient(180deg, #2f2f2f 0%, #1b1b1b 100%);
  border-color: #1b1b1b;
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .thumb-media-card,
.sidebar-workbench #template-library.template-library-grid .template-thumb .thumb-map-card {
  padding: 0;
  overflow: hidden;
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .thumb-media-card::before,
.sidebar-workbench #template-library.template-library-grid .template-thumb .thumb-media-shape {
  display: block;
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .thumb-media-card.is-wide {
  min-height: 44px;
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .thumb-feature-card,
.sidebar-workbench #template-library.template-library-grid .template-thumb .thumb-review-card {
  min-height: 56px;
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .thumb-stat-card {
  min-height: 48px;
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .thumb-card-row {
  gap: 8px;
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .thumb-card-row.cols-4 .thumb-stat-card,
.sidebar-workbench #template-library.template-library-grid .template-thumb .thumb-card-row.cols-4 .thumb-feature-card {
  padding: 8px;
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .thumb-copy-stack,
.sidebar-workbench #template-library.template-library-grid .template-thumb .thumb-hero-copy,
.sidebar-workbench #template-library.template-library-grid .template-thumb .thumb-page-copy,
.sidebar-workbench #template-library.template-library-grid .template-thumb .thumb-form-card,
.sidebar-workbench #template-library.template-library-grid .template-thumb .thumb-price-column,
.sidebar-workbench #template-library.template-library-grid .template-thumb .thumb-side-stack {
  gap: 7px;
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .thumb-gallery-grid,
.sidebar-workbench #template-library.template-library-grid .template-thumb .thumb-logo-grid {
  gap: 8px;
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .thumb-gallery-cell,
.sidebar-workbench #template-library.template-library-grid .template-thumb .thumb-logo-cell {
  min-height: 25px;
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .thumb-panel-card .thumb-pill,
.sidebar-workbench #template-library.template-library-grid .template-thumb .thumb-feature-card .thumb-pill,
.sidebar-workbench #template-library.template-library-grid .template-thumb .thumb-review-card .thumb-pill,
.sidebar-workbench #template-library.template-library-grid .template-thumb .thumb-form-card .thumb-pill,
.sidebar-workbench #template-library.template-library-grid .template-thumb .thumb-price-column .thumb-pill {
  margin-top: 2px;
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .thumb-media-shape {
  inset: 10px;
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .thumb-side-stack {
  gap: 10px;
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .thumb-side-card {
  padding: 10px;
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .thumb-accordion,
.sidebar-workbench #template-library.template-library-grid .template-thumb .thumb-checklist {
  gap: 8px;
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .thumb-accordion-row {
  padding: 7px 8px;
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .thumb-accordion-body {
  padding-left: 21px;
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .thumb-logo-grid,
.sidebar-workbench #template-library.template-library-grid .template-thumb .thumb-gallery-grid,
.sidebar-workbench #template-library.template-library-grid .template-thumb .thumb-card-row,
.sidebar-workbench #template-library.template-library-grid .template-thumb .thumb-process-preview {
  padding: 1px;
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb,
.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-stack {
  display: grid;
  gap: 10px;
  height: 100%;
  min-height: 0;
  align-content: start;
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: 12px;
  height: 100%;
  min-height: 0;
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-split.is-compact {
  gap: 10px;
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-panel,
.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-card,
.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-metric,
.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-row-card,
.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-step {
  display: grid;
  gap: 7px;
  min-height: 0;
  padding: 10px;
  border: 1px solid #e6e6e6;
  border-radius: 0;
  background: #fafafa;
  box-sizing: border-box;
  overflow: hidden;
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-media {
  border-radius: 0;
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-card,
.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-metric,
.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-row-card,
.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-step,
.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-grid.is-gallery .section-thumb-media.is-tile,
.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-logo {
  border-radius: 0;
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-panel.is-soft,
.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-card,
.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-metric,
.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-row-card,
.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-step {
  background: #f8f8f8;
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-panel.is-dark,
.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-card.is-dark {
  background: #f4f4f4;
  border-color: #e1e1e1;
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-line {
  display: block;
  height: 5px;
  border-radius: 999px;
  background: #d8d8d8;
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-line.is-xs {
  width: 32%;
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-line.is-sm {
  width: 48%;
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-line.is-md {
  width: 66%;
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-line.is-lg {
  width: 84%;
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-line.is-full {
  width: 100%;
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-panel.is-dark .section-thumb-line,
.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-card.is-dark .section-thumb-line {
  background: #d8d8d8;
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-button {
  width: 38px;
  height: 10px;
  border-radius: 999px;
  background: #cfcfcf;
  margin-top: 2px;
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-button.is-light,
.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-panel.is-dark .section-thumb-button,
.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-card.is-dark .section-thumb-button {
  background: #cfcfcf;
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-media {
  display: block;
  min-height: 0;
  border: 1px solid #e6e6e6;
  border-radius: 0;
  background: linear-gradient(180deg, #efefef 0%, #dddddd 100%);
  overflow: hidden;
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-media.is-tall {
  height: 100%;
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-media.is-wide {
  min-height: 42px;
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-media.is-map {
  background:
    radial-gradient(circle at 28% 34%, #c9c9c9 0 4px, transparent 4px),
    linear-gradient(90deg, transparent 0 28%, #dddddd 28% 30%, transparent 30% 62%, #dddddd 62% 64%, transparent 64%),
    linear-gradient(180deg, transparent 0 40%, #e1e1e1 40% 42%, transparent 42% 70%, #e1e1e1 70% 72%, transparent 72%),
    linear-gradient(180deg, #efefef 0%, #e1e1e1 100%);
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-media.is-comparison {
  position: relative;
  background:
    linear-gradient(90deg, #eeeeee 0 50%, #d8d8d8 50% 100%);
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-media.is-comparison::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: calc(50% - 1px);
  width: 2px;
  background: #ffffff;
  box-shadow: 0 0 0 1px #cfcfcf;
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-media.is-comparison::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 1px solid #cfcfcf;
  background: #ffffff;
  transform: translate(-50%, -50%);
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-grid {
  display: grid;
  gap: 8px;
  min-height: 0;
  align-items: start;
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-grid.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-grid.is-metrics .section-thumb-metric {
  align-content: end;
  min-height: 46px;
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-grid.is-columns,
.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-grid.is-metrics,
.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-grid.is-steps {
  gap: 6px;
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-grid.is-columns .section-thumb-card {
  gap: 5px;
  min-height: 50px;
  padding: 8px 6px;
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-grid.is-columns .section-thumb-line.is-sm {
  width: 72%;
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-grid.is-columns .section-thumb-line.is-xs {
  width: 52%;
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-grid.is-metrics .section-thumb-metric {
  gap: 5px;
  min-height: 52px;
  padding: 8px 6px;
  align-content: start;
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-grid.is-metrics.is-featured .section-thumb-metric {
  min-height: 56px;
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-grid.is-metrics.is-featured .section-thumb-line.is-sm {
  width: 72%;
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-grid.is-metrics.is-featured .section-thumb-line.is-xs {
  width: 52%;
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-grid > *,
.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-split > *,
.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-stack > * {
  min-width: 0;
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-value {
  display: block;
  width: 42%;
  height: 12px;
  border-radius: 0;
  background: #cfcfcf;
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-value.is-featured {
  width: 68%;
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-checklist,
.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-stack {
  display: grid;
  gap: 8px;
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-check-icon {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 1px solid #d8d8d8;
  background: #ffffff;
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-row-card {
  padding: 8px 10px;
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-grid.is-gallery .section-thumb-media.is-tile,
.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-logo {
  display: block;
  min-height: 24px;
  border-radius: 0;
  background: linear-gradient(180deg, #ebebeb 0%, #dddddd 100%);
  min-width: 0;
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-logo {
  min-height: 20px;
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-stars {
  display: block;
  width: 38px;
  height: 8px;
  background: radial-gradient(circle, #bdbdbd 55%, transparent 57%) 0 0 / 8px 8px repeat-x;
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-dots,
.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-dot,
.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-tab {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #d2d2d2;
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-dot.is-active,
.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-tab.is-active {
  width: 20px;
  background: #bdbdbd;
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-grid.is-steps .section-thumb-step {
  gap: 5px;
  min-height: 52px;
  padding: 8px 4px;
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-grid.is-steps .section-thumb-line.is-xs {
  width: 68%;
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-step {
  justify-items: center;
  align-content: center;
  min-height: 44px;
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-step-badge {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #d2d2d2;
  color: #666;
  font-size: 0.5rem;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.template-badge {
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.template-name {
  font-size: 0.9rem;
  line-height: 1.2;
  font-weight: 600;
}

.sidebar-workbench .template-library-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  align-content: start;
}

.sidebar-workbench .template-library-grid .template-card {
  width: 100%;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) !important;
  align-items: center;
  gap: 10px;
  border: 1px solid #e2e2e2;
  border-radius: 7px;
  background: #fff;
  box-shadow: none;
  text-align: left;
  transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
  transform: none !important;
}

.sidebar-workbench .template-library-grid .template-card:hover,
.sidebar-workbench .template-library-grid .template-card:focus-visible {
  border-color: #d5d5d5;
  background: #fcfcfc;
  box-shadow: 0 1px 2px rgba(17, 17, 17, 0.04);
  transform: none !important;
}

.sidebar-workbench .template-library-grid .template-card:hover .template-thumb,
.sidebar-workbench .template-library-grid .template-card:focus-visible .template-thumb {
  border-color: #dddddd;
  box-shadow: none;
}

.sidebar-workbench #template-library.template-library-grid .template-thumb,
.sidebar-workbench #page-template-library.template-library-grid .template-thumb {
  width: 52px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border: 1px solid #e6e6e6;
  border-radius: 6px;
  background: linear-gradient(180deg, #fcfcfc 0%, #f4f4f4 100%);
  box-shadow: none;
  overflow: hidden;
  position: relative;
  display: block;
  flex: 0 0 auto;
}

.sidebar-workbench #page-template-library.template-library-grid .template-thumb {
  width: 56px;
  height: 36px;
  min-height: 36px;
}

.sidebar-workbench #template-library.template-library-grid .template-thumb-stage,
.sidebar-workbench #page-template-library.template-library-grid .template-thumb-stage {
  width: 104px;
  height: 68px;
  transform: scale(0.5);
  transform-origin: top left;
  pointer-events: none;
}

.sidebar-workbench #page-template-library.template-library-grid .template-thumb-stage {
  width: 112px;
  height: 72px;
}

.sidebar-workbench .template-library-grid .template-thumb-stage > * {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.sidebar-workbench .template-library-grid .template-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
  align-content: center;
}

.sidebar-workbench .template-library-grid .template-badge {
  color: #9a9a9a;
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sidebar-workbench .template-library-grid .template-name {
  color: #181818;
  font-size: 0.95rem;
  line-height: 1.16;
  font-weight: 600;
}

.workspace {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  position: relative;
}

.workspace-toolbar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 22px;
  border-bottom: 1px solid #ededed;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: saturate(180%) blur(18px);
  position: sticky;
  top: 0;
  z-index: 70;
}

.page-status-banner[hidden] {
  display: none !important;
}

.page-status-banner {
  position: sticky;
  top: 65px;
  z-index: 60;
  background: #fff;
}

.toolbar-group,
.toolbar-cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.toolbar-actions {
  justify-content: flex-start;
}

.toolbar-panel {
  min-width: fit-content;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 14px;
}

.toolbar-panel-actions {
  justify-content: flex-start;
  position: relative;
  padding-right: 20px;
}

.toolbar-panel-actions::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 0;
  width: 1px;
  height: 40px;
  background: #ececec;
}

.toolbar-panel-keyword {
  position: relative;
  padding-right: 20px;
}

.toolbar-panel-metrics {
  justify-content: flex-start;
  width: 100%;
}

.presence-dock[hidden] {
  display: none !important;
}

.canvas-status-dock {
  position: fixed;
  top: 86px;
  left: calc(var(--sidebar-width) + 34px);
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  overflow: visible;
}

body.preview-mode .canvas-status-dock {
  left: 24px;
}

.presence-dock {
  position: fixed;
  top: 86px;
  right: 24px;
  z-index: 18;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
}

@media(max-width: 767px) {
  .canvas-status-dock {
    top: 18px;
    left: 12px;
  }

  .presence-dock {
    top: 18px;
  }
}

.presence-avatar {
  --presence-border: #d9d9d9;
  --presence-bg: #fff;
  --presence-text: var(--ink);
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--presence-border);
  background: var(--presence-bg);
  color: var(--presence-text);
  font-size: 0.82rem;
  font-weight: 600;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--presence-border) 20%, transparent), 0 6px 16px rgba(0, 0, 0, 0.06);
  cursor: default;
}

.presence-avatar::before,
.presence-avatar::after {
  position: absolute;
  right: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.presence-avatar::before {
  content: attr(data-tooltip);
  top: calc(100% + 10px);
  right: 15px;
  transform: translateY(4px);
  padding: 8px 10px;
  border-radius: 8px 0 8px 8px;
  background: rgba(16, 16, 16, 0.92);
  color: #fff;
  font-size: 0.74rem;
  width: max-content;
  max-width: 200px;
  white-space: normal;
  text-align: center;
  overflow-wrap: anywhere;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  z-index: 2;
}

.presence-avatar::after {
  content: "";
  top: calc(100% + 2px);
  right: 15px;
  transform: translateY(4px);
  width: 2px;
  height: 10px;
  background: rgba(16, 16, 16, 0.92);
  z-index: 1;
}

.presence-avatar:hover::before,
.presence-avatar:hover::after,
.presence-avatar:focus-visible::before,
.presence-avatar:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.presence-avatar:hover,
.presence-avatar:focus-visible {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--presence-border) 32%, transparent), 0 10px 22px rgba(0, 0, 0, 0.08);
}

/* Compact sidebar library list overrides */
.sidebar-workbench .template-library {
  width: 100%;
  align-items: stretch;
  min-height: 0;
}

.sidebar-workbench .template-library-grid {
  width: 100%;
  justify-items: stretch;
}

.sidebar-workbench .template-empty {
  width: 100%;
}

.sidebar-workbench .template-library-grid .template-card {
  width: 100%;
  justify-self: stretch;
  border: 1px solid #e2e2e2 !important;
  transition: opacity 0.3s ease !important;
  transform: none !important;
}

.sidebar-workbench .template-library-grid .template-card:hover,
.sidebar-workbench .template-library-grid .template-card:focus-visible {
  opacity: 0.8;
  border: 1px solid #e2e2e2 !important;
  border-color: #e2e2e2 !important;
  background: #fff !important;
  box-shadow: none !important;
  transform: none !important;
}

.sidebar-workbench .template-library-grid .template-card:hover .template-thumb,
.sidebar-workbench .template-library-grid .template-card:focus-visible .template-thumb,
.sidebar-workbench .template-library-grid .template-card:hover .template-name,
.sidebar-workbench .template-library-grid .template-card:focus-visible .template-name {
  border-color: #e6e6e6 !important;
  box-shadow: none !important;
  color: #181818;
}

.sidebar-workbench .template-library-grid .template-thumb,
.sidebar-workbench .template-library-grid .template-card:hover .template-thumb,
.sidebar-workbench .template-library-grid .template-card:focus-visible .template-thumb {
  transform: none !important;
  transition: none !important;
}

.sidebar-workbench #template-library.template-library-grid .template-thumb,
.sidebar-workbench #page-template-library.template-library-grid .template-thumb {
  width: 60px;
  height: 40px;
  min-height: 40px;
  padding: 4px;
}

.sidebar-workbench #page-template-library.template-library-grid .template-thumb {
  width: 64px;
  height: 42px;
  min-height: 42px;
  padding: 4px;
}

.sidebar-workbench #template-library.template-library-grid .template-thumb-stage,
.sidebar-workbench #page-template-library.template-library-grid .template-thumb-stage {
  width: 104px;
  height: 68px;
  transform: scale(0.46);
  transform-origin: top left;
}

.sidebar-workbench #page-template-library.template-library-grid .template-thumb-stage {
  width: 110px;
  height: 72px;
  transform: scale(0.46);
}

.sidebar-workbench .page-manager {
  max-height: none;
  grid-template-rows: auto auto;
  align-content: start;
  overflow: visible;
}

.sidebar-workbench .page-manager.is-collapsed {
  grid-template-rows: auto 0fr;
  gap: 0;
}

.sidebar-workbench .page-list-shell {
  max-height: min(90vh, calc(100vh - 390px));
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb,
.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-stack {
  gap: 5px;
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-split,
.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-split.is-compact {
  gap: 5px;
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-panel,
.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-card,
.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-metric,
.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-row-card,
.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-step {
  gap: 3px;
  padding: 5px;
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-button,
.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-dots,
.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-tabs,
.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-line.is-xs {
  display: none;
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-line.is-sm {
  width: 58%;
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-line.is-md,
.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-line.is-lg,
.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-line.is-full {
  width: 82%;
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-check:nth-child(n + 4),
.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-row-card:nth-child(n + 2),
.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-grid.is-gallery .section-thumb-media.is-tile:nth-child(n + 4),
.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-grid.is-logos .section-thumb-logo:nth-child(n + 5) {
  display: none;
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-grid {
  gap: 4px;
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-grid.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3px;
}

.sidebar-workbench #template-library.template-library-grid .template-thumb .section-thumb-media.is-wide {
  min-height: 24px;
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-panel-card.is-inverted,
.sidebar-workbench .template-library-grid .template-thumb .thumb-price-column.is-featured,
.sidebar-workbench .template-library-grid .template-thumb .thumb-pill.is-dark,
.sidebar-workbench .template-library-grid .template-thumb .thumb-dot.is-active,
.sidebar-workbench .template-library-grid .template-thumb .thumb-process-badge,
.sidebar-workbench .template-library-grid .template-thumb .thumb-map-pin {
  background: #cfcfcf !important;
  border-color: #d7d7d7 !important;
  color: #6b6b6b !important;
  box-shadow: none !important;
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-line.is-light {
  background: #dcdcdc;
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-media-card,
.sidebar-workbench .template-library-grid .template-thumb .thumb-media-card::before,
.sidebar-workbench .template-library-grid .template-thumb .thumb-media-shape {
  background: linear-gradient(180deg, #efefef 0%, #dddddd 100%);
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-page-topbar {
  padding: 2px 4px;
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-page-address,
.sidebar-workbench .template-library-grid .template-thumb .thumb-page-dot:nth-child(n + 2),
.sidebar-workbench #page-template-library.template-library-grid .template-thumb .thumb-page-section:nth-child(n + 4) {
  display: none;
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-page-stack {
  gap: 4px;
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-page-shell.is-service-funnel .thumb-page-section:nth-child(2) {
  min-height: 16px;
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-page-shell.is-service-funnel .thumb-page-section:nth-child(3) {
  min-height: 14px;
  width: 82%;
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-page-shell.is-lead-generation .thumb-page-section:nth-child(2) {
  min-height: 12px;
  width: 76%;
  justify-self: end;
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-page-shell.is-lead-generation .thumb-page-section:nth-child(3) {
  min-height: 10px;
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-page-shell.is-case-study-story .thumb-page-section:nth-child(2) {
  min-height: 18px;
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-page-shell.is-case-study-story .thumb-page-section:nth-child(3) {
  min-height: 12px;
  width: 72%;
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-page-shell.is-insight-article .thumb-page-section:nth-child(2),
.sidebar-workbench .template-library-grid .template-thumb .thumb-page-shell.is-insight-article .thumb-page-section:nth-child(3) {
  min-height: 14px;
}

.sidebar-workbench .template-library-grid .template-thumb .thumb-page-shell.is-insight-article .thumb-page-section:nth-child(4) {
  width: 78%;
}

.page-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  max-width: max-content;
  min-height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid #e6e6e6;
  background: #fbfbfb;
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #767676;
}

.page-status-chip.status-draft {
  color: #767676;
}

.page-status-chip.status-pending_approval {
  color: #b26b00;
  border-color: rgba(178, 107, 0, 0.22);
  background: rgba(255, 242, 220, 0.75);
}

.page-status-chip.status-approved {
  color: #1f8f4d;
  border-color: rgba(31, 143, 77, 0.2);
  background: rgba(228, 247, 235, 0.8);
}

.page-status-warning {
  margin: 0;
  padding: 12px 24px;
  border-radius: 0;
  border: 0;
  background: #fafafa;
  color: var(--ink);
  font-size: 0.82rem;
  line-height: 1.45;
  width: 100%;
}

.page-status-warning strong {
  display: inline-block;
  margin-bottom: 2px;
  margin-right: 20px;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.page-status-warning.status-pending_approval {
  background: #d68b00;
  color: #fff;
}

.page-status-warning.status-approved {
  background: #ff1208;
  color: #fff;
}

.app-update-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.app-update-banner span {
  min-width: 0;
}

.page-status-warning-action {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.page-status-warning-action:hover,
.page-status-warning-action:focus-visible {
  background: rgba(255, 255, 255, 0.24);
}

.page-status-warning-action:disabled {
  cursor: wait;
  opacity: 0.72;
}

.ghost-button,
.ghost-icon-button,
.utility-button,
.file-button,
.image-control-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: max-content;
  padding: 7px 10px;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
}

.toolbar-cluster.toolbar-actions {
  gap: 0;
  padding: 3px;
  border: 1px solid #e8e8e8;
  border-radius: 14px;
  background: #f8f8f8;
  flex-wrap: nowrap;
}

.toolbar-dropdown-trigger,
#preview-btn {
  min-height: 34px;
  border: 0;
  background: transparent;
  border-radius: 10px;
}

.ghost-button:hover,
.ghost-icon-button:hover,
.utility-button:hover,
.file-button:hover,
.image-control-button:hover {
  border-color: transparent;
  background: rgba(0, 0, 0, 0.045);
}

.image-controls
.image-control-button:hover {
  background: rgba(255, 255, 255, 0.8);
}

.utility-button.confirm-delete,
.ghost-button.confirm-delete {
  background: #d92d20;
  color: #fff;
  border-color: #d92d20;
}

.utility-button.confirm-delete:hover,
.ghost-button.confirm-delete:hover {
  background: #c81e12;
  color: #fff;
}

.utility-button.confirm-ai {
  background: dodgerblue;
  color: #fff;
  border-color: dodgerblue;
}

.utility-button.confirm-ai:hover {
  background: #0a74da;
  color: #fff;
}

.utility-button-ai-fill {
  position: relative;
  overflow: hidden;
  border-color: rgba(30, 144, 255, 0.26);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 249, 255, 0.98));
  color: #0f5fc4;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.55),
    0 0 0 0 rgba(255, 255, 255, 0);
  font-weight: 600;
  transition: .3s
}

.utility-button-ai-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 18%, rgba(255, 255, 255, 0.82) 48%, transparent 78%);
  background-size: 220% 100%;
  opacity: 0;
  pointer-events: none;
}

.utility-button-ai-fill:hover,
.utility-button-ai-fill:focus-visible {
  border-color: rgba(30, 144, 255, 0.42);
  background:
    linear-gradient(180deg, rgba(248, 252, 255, 0.99), rgba(232, 244, 255, 0.99));
  color: #0a55b3;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.6),
    0 10px 24px rgba(30, 144, 255, 0.16);
}

.utility-button-ai-fill:hover::after,
.utility-button-ai-fill:focus-visible::after {
  opacity: 1;
  animation: aiShimmer 3s ease infinite;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: max-content;
  max-width: max-content;
  padding: 0;
  min-height: 34px;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 0.76rem;
  color: #7d7d7d;
  border-radius: 100px;
  padding: 0 15px;
  cursor: pointer;
  transition: ease .2s;
}

.status-chip:hover {
  opacity: 0.8;
}

.status-chip.page-status-chip {
  gap: 6px;
  min-height: 22px;
  padding: 9px 12px;
  border: 1px solid #e6e6e6;
  border-radius: 999px;
  background: #fbfbfb;
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.canvas-status-dock .status-chip.page-status-chip {
  min-height: 34px;
  border-color: #dcdcdc;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 22px rgba(16, 24, 40, 0.08);
}

.canvas-sync-page-btn[hidden] {
  display: none !important;
}

.canvas-sync-page-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid #dcdcdc;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #6f6f6f;
  box-shadow: 0 8px 22px rgba(16, 24, 40, 0.08);
  cursor: pointer;
}

.canvas-sync-page-btn:hover,
.canvas-sync-page-btn:focus-visible {
  border-color: rgba(30, 144, 255, 0.32);
  color: dodgerblue;
  background: #fff;
}

.canvas-sync-page-btn:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.canvas-sync-page-btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.canvas-sync-page-btn.is-busy svg {
  animation: canvasSyncSpin 0.9s linear infinite;
}

.canvas-sync-page-tooltip,
.canvas-sync-page-tooltip::before {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
  z-index: 30;
}

.canvas-sync-page-tooltip {
  top: 50%;
  left: calc(100% + 12px);
  transform: translateY(-50%) translateX(-4px);
  width: max-content;
  max-width: min(220px, calc(100vw - 32px));
  padding: 7px 9px;
  border-radius: 8px;
  background: rgba(16, 16, 16, 0.92);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: normal;
  text-align: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.canvas-sync-page-tooltip::before {
  content: "";
  top: 50%;
  left: -4px;
  transform: translateY(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  background: rgba(16, 16, 16, 0.92);
}

.canvas-sync-page-btn:hover .canvas-sync-page-tooltip,
.canvas-sync-page-btn:hover .canvas-sync-page-tooltip::before,
.canvas-sync-page-btn:focus-visible .canvas-sync-page-tooltip,
.canvas-sync-page-btn:focus-visible .canvas-sync-page-tooltip::before {
  opacity: 1;
}

.canvas-sync-page-btn:hover .canvas-sync-page-tooltip,
.canvas-sync-page-btn:focus-visible .canvas-sync-page-tooltip {
  transform: translateY(-50%) translateX(0);
}

@keyframes canvasSyncSpin {
  to {
    transform: rotate(360deg);
  }
}

.status-chip-menu[hidden] {
  display: none !important;
}

.status-chip-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 40;
  min-width: 220px;
  max-width: 280px;
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid #e5e5e5;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(16, 24, 40, 0.12);
}

.status-chip-meta {
  display: grid;
  gap: 4px;
  font-size: 0.76rem;
  line-height: 1.4;
  color: var(--muted);
}

.status-chip-meta strong {
  color: var(--ink);
  font-size: 0.8rem;
}

.status-chip-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.status-chip-option {
  border-radius: 999px;
}

.status-chip-option.is-active {
  background: #111;
  color: #fff;
}

.floating-status-notice[hidden] {
  display: none !important;
}

.floating-status-notice {
  position: fixed;
  top: 88px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 160;
  width: fit-content;
  min-width: min(320px, calc(100vw - 32px));
  max-width: min(620px, calc(100vw - 32px));
  padding: 13px 18px;
  border-radius: 8px;
  background: #111827;
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.28), 0 0 0 1px rgba(15, 23, 42, 0.08);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  overflow-wrap: anywhere;
  animation: floatingNoticeIn 0.22s ease;
  backdrop-filter: blur(12px);
}

@keyframes floatingNoticeIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.insight-group {
  display: flex;
  align-items: stretch;
  gap: 10px;
  flex-wrap: wrap;
}

.keyword-group {
  width: 100%;
}

.metrics-group {
  width: 100%;
  justify-content: flex-end;
  flex-wrap: nowrap;
}

.compact-field {
  min-width: 0;
  width: 100%;
}

.toolbar-keyword-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.toolbar-keyword-label {
  flex: 0 0 auto;
  margin: 0;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  color: #8a8a8a;
}

.toolbar-keyword-field {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
}

.keyword-manager-toggle {
  position: absolute;
  top: 50%;
  right: 5px;
  z-index: 1;
  width: 30px;
  min-width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.18s ease, color 0.18s ease;
}

.keyword-manager-toggle:hover,
.keyword-manager-toggle:focus-visible {
  background: rgba(0, 0, 0, 0.055);
}

.keyword-manager-toggle.has-keywords::after {
  content: attr(data-count);
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 10px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: dodgerblue;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 600;
  display: grid;
  place-items: center;
}

.keyword-manager-panel[hidden] {
  display: none !important;
}

.keyword-manager-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 68px;
  z-index: 80;
  width: min(320px, 92vw);
  padding: 14px;
  border: 1px solid #e9e9e9;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(10px);
  display: grid;
  gap: 12px;
}

.keyword-manager-header {
  display: grid;
  gap: 4px;
}

.keyword-manager-header strong {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
}

.keyword-manager-header span,
.keyword-manager-empty {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--muted);
}

.keyword-manager-list {
  display: grid;
  gap: 8px;
}

.keyword-manager-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.keyword-highlight-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid #e7dfc2;
  border-radius: 999px;
  background: #fffaf0;
  color: #6f5c1b;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.keyword-highlight-toggle:hover {
  border-color: #d7c174;
  background: #fff4d5;
}

.keyword-highlight-toggle.is-active {
  border-color: rgba(214, 162, 32, 0.45);
  background: rgba(255, 227, 132, 0.42);
  color: #5f4800;
  box-shadow: inset 0 0 0 1px rgba(214, 162, 32, 0.12);
}

.keyword-token-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  border: 1px solid #efefef;
  border-radius: 12px;
  background: #fafafa;
}

.keyword-token-row span {
  min-width: 0;
  font-size: 0.82rem;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.keyword-token-remove {
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 0.72rem;
  color: #8a8a8a;
  cursor: pointer;
}

.keyword-token-remove:hover {
  color: var(--ink);
}

.keyword-manager-add {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.keyword-manager-add input {
  min-height: 38px;
  padding: 9px 12px;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  background: #fbfbfb;
  font-size: 0.84rem;
}

.toolbar-keyword-field input {
  width: min(280px, 28vw);
  min-height: 38px;
  padding: 9px 42px 9px 13px;
  border-radius: 12px;
  border-color: #e5e5e5;
  background: #fbfbfb;
  font-size: 0.95rem;
}

body.seed-viewer-mode .toolbar-keyword-field input[readonly] {
  cursor: default;
  color: var(--ink);
}

body.seed-viewer-mode #keyword-manager-description,
body.seed-viewer-mode #keyword-manager-add {
  display: none !important;
}

body.seed-viewer-mode .keyword-manager-add input:disabled,
body.seed-viewer-mode .keyword-manager-add button:disabled {
  cursor: default;
}

.insight-card {
  min-width: 96px;
  padding: 2px 0 2px 14px;
  border: 0;
  border-left: 1px solid #ededed;
  border-radius: 0;
  background: transparent;
  display: grid;
  align-content: center;
  gap: 1px;
  text-align: left;
}

.insight-card strong {
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}

.insight-card span {
  color: #7d7d7d;
  font-size: 0.64rem;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.score-card {
  padding-right: 0;
}

.score-good {
  color: #17803d;
}

.score-excellent {
  color: #17803d;
  text-shadow: 0 0 10px rgba(84, 214, 44, 0.28);
  background: linear-gradient(120deg, #17803d 0%, #34c759 45%, #91f37b 55%, #17803d 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: excellentGlow 2.4s linear infinite;
}

.score-bad {
  color: #c62828;
}

.score-mid {
  color: #8a6a00;
}

@keyframes excellentGlow {
  0% {
    background-position: 200% 50%;
  }
  100% {
    background-position: -20% 50%;
  }
}

.toolbar-dropdown {
  position: relative;
}

.toolbar-dropdown summary {
  list-style: none;
}

.mobile-menu-icon {
  display: none;
}

.toolbar-dropdown summary::-webkit-details-marker {
  display: none;
}

.toolbar-dropdown[open] .toolbar-dropdown-trigger {
  background: rgba(0, 0, 0, 0.045);
}

.toolbar-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 168px;
  padding: 6px;
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  display: grid;
  gap: 4px;
  z-index: 80;
}

.toolbar-submenu {
  position: relative;
}

.toolbar-submenu::after {
  content: "";
  position: absolute;
  top: -6px;
  bottom: -6px;
  left: 100%;
  width: 12px;
}

.toolbar-submenu-trigger {
  width: 100%;
  justify-content: space-between;
}

.toolbar-submenu-trigger::after {
  content: "›";
  font-size: 0.95rem;
  color: var(--muted);
  margin-left: 10px;
}

.toolbar-submenu-menu {
  position: absolute;
  top: -8px;
  left: calc(100% + 2px);
  min-width: 170px;
  display: none;
  padding: 8px;
  border: 1px solid #e5e5e5;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(16, 24, 40, 0.12);
  z-index: 90;
}

.toolbar-submenu:hover .toolbar-submenu-menu,
.toolbar-submenu:focus-within .toolbar-submenu-menu {
  display: grid;
  gap: 4px;
}

.toolbar-menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
}

.toolbar-menu-button[hidden] {
  display: none !important;
}

.toolbar-menu-button:hover {
  background: var(--surface-muted);
}

.toolbar-menu-button:disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.55;
}

.toolbar-menu-button:disabled:hover {
  background: #fff;
}

.page-context-menu {
  position: fixed;
  min-width: 168px;
  padding: 6px;
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  display: grid;
  gap: 4px;
  z-index: 130;
}

.page-context-menu[hidden] {
  display: none;
}

.project-suggestions-dialog {
  width: min(860px, calc(100vw - 32px));
}

.project-suggestions-content {
  max-height: min(70vh, 720px);
  overflow: auto;
  display: grid;
  gap: 18px;
  padding: 24px;
}

.project-suggestion-group {
  display: grid;
  gap: 10px;
}

.project-suggestion-group h3 {
  margin: 0;
  font-size: 0.98rem;
}

.project-suggestion-items {
  display: grid;
  gap: 8px;
}

.project-suggestion-item {
  width: 100%;
  text-align: left;
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid #e3e3e3;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.project-suggestion-item:hover {
  border-color: #b8d4ff;
  background: #f8fbff;
}

.project-suggestion-item strong,
.project-suggestion-item span,
.project-suggestion-item small {
  display: block;
}

.project-suggestion-item span,
.project-suggestion-item small {
  color: var(--muted);
  font-size: 0.8rem;
}

.canvas {
  position: relative;
  overflow-y: auto;
  padding: 28px 28px 56px;
  background: #ffffff;
  transition: filter 0.28s ease, transform 0.28s ease, opacity 0.28s ease;
}

.seo-table-canvas {
  background: #fbfbfb;
  padding: 46px 28px 56px;
}

.seo-table-screen {
  width: min(100%, 1120px);
  margin: 0 auto;
  display: grid;
  gap: 50px;
  min-width: 0;
}

.seo-table-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 2px 2px 0;
}

.seo-table-header-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.seo-table-action-button {
  min-height: 30px;
  padding: 0 12px;
  font-size: 0.72rem;
}

.seo-table-header h1 {
  margin: 2px 0 0;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.seo-table-summary {
  margin: 10px 0 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.seo-site-summary {
  display: grid;
  gap: 18px;
  min-width: 0;
  padding: 20px 22px 18px;
  border: 1px solid #ececec;
  background: #f7f7f7;
  border-radius: 10px;
}

.seo-site-summary-copy {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.seo-site-summary-label {
  color: #8a8a8a;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.seo-site-summary-heading {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.seo-site-summary-heading strong {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

.seo-site-summary-heading p {
  margin: 0;
  max-width: 720px;
  color: #5d5d5d;
  font-size: 0.86rem;
  line-height: 1.5;
}

.seo-site-summary-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px 20px;
  min-width: 0;
}

.seo-site-summary-metric {
  min-width: 0;
}

.seo-site-summary-priority {
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid #e7e7e7;
  color: #5d5d5d;
  font-size: 0.79rem;
  font-weight: 600;
  line-height: 1.45;
}

.seo-bulk-ai-dialog {
  max-width: 800px;
}

.seo-ai-fill-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px 24px;
  min-width: 0;
  padding: 18px 22px;
  border: 1px solid #ececec;
  background: #f7f7f7;
  border-radius: 10px;
  margin-top: -30px;
}

.seo-ai-fill-panel-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.seo-ai-fill-panel-copy p {
  margin: 0;
  max-width: 680px;
  color: #5d5d5d;
  font-size: 0.85rem;
  line-height: 1.5;
}

.seo-ai-fill-panel-button {
  min-width: 120px;
  justify-self: end;
}

.seo-table-list {
  display: grid;
  gap: 8px;
  min-width: 0;
  --seo-name-col: clamp(180px, 24vw, 300px);
  --seo-slug-col: clamp(190px, 28vw, 320px);
  --seo-keyword-col: clamp(110px, 15vw, 190px);
  --seo-score-col: clamp(82px, 9vw, 118px);
  --seo-status-col: clamp(120px, 12vw, 154px);
}

.seo-table-columns,
.seo-page-row-summary {
  display: grid;
  grid-template-columns: var(--seo-name-col) var(--seo-slug-col) var(--seo-keyword-col) var(--seo-score-col) var(--seo-status-col);
  align-items: center;
  gap: 0;
}

.seo-table-columns {
  padding: 0 21px 3px;
  color: #8a8a8a;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.seo-page-list {
  display: grid;
  gap: 0;
  overflow: visible;
}

.seo-page-row {
  position: relative;
  box-sizing: border-box;
  width: calc(100% - var(--seo-depth-offset, 0px));
  margin-left: var(--seo-depth-offset, 0px);
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  z-index: 0;
  transition: background 0.18s ease, margin-left 0.18s ease, width 0.18s ease;
}

.seo-page-row.is-status-open {
  z-index: 90;
}

.is-expanded .seo-page-row-summary {
  background: white!important;
  border-bottom: solid 1px #eee;
  border-top: solid 1px #eee;
}

.seo-page-row:nth-child(odd) .seo-page-row-summary,
.seo-page-row.is-expanded .seo-page-row-summary {
  background: #f7f7f7;
}

.seo-page-row:hover .seo-page-row-summary {
  background: #f2f2f2;
}

/* .seo-page-row.is-current .seo-page-row-summary {
  border: solid 2px dodgerblue;
} */

article.seo-page-row.is-expanded {
  border: solid 2px dodgerblue!important;
  transition: ease .2s;
}

article.seo-page-row.is-nested {
  border-left: solid 1px #dcdcdc;
}

.seo-page-row-processing-indicator {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 18px;
  background: linear-gradient(120deg, rgba(30, 144, 255, 0.05), rgba(255, 255, 255, 0.76), rgba(30, 144, 255, 0.05));
  background-size: 200% 100%;
  animation: aiShimmer 2.7s ease infinite;
  pointer-events: none;
}

.seo-page-row-processing-indicator span:last-child {
  padding: 8px 12px;
  border: 1px solid rgba(30, 144, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: dodgerblue;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.seo-page-row-processing-spinner {
  width: 16px;
  height: 16px;
  padding: 0 !important;
  border: 2px solid rgba(30, 144, 255, 0.18);
  border-top-color: dodgerblue;
  border-radius: 999px;
  background: transparent !important;
  box-shadow: none !important;
  animation: canvasSyncSpin 0.9s linear infinite;
}

.seo-page-row-summary {
  box-sizing: border-box;
  grid-template-columns: calc(var(--seo-name-col) - var(--seo-depth-offset, 0px)) var(--seo-slug-col) var(--seo-keyword-col) var(--seo-score-col) var(--seo-status-col);
  width: 100%;
  min-height: 54px;
  padding: 12px 22px;
  cursor: pointer;
  outline: none;
  transition: background 0.16s ease;
}

.seo-page-row-summary:focus-visible {
  box-shadow: inset 0 0 0 3px rgba(30, 144, 255, 0.12);
}

.seo-page-row-summary .seo-page-name-cell {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.seo-page-row-summary > *,
.seo-table-columns > span {
  min-width: 0;
  padding-right: 18px;
}

.seo-page-name-stack strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seo-page-row.is-nested .seo-page-name-stack strong {
  font-weight: 600;
  color: #3d3d3d;
}

.seo-page-route-cell {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.seo-page-slug-display {
  min-width: 0;
  overflow: hidden;
  color: #00000070;
  font-size: 0.79rem;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seo-page-keyword-display {
  min-width: 0;
  overflow: hidden;
  color: #00000070;
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seo-page-old-url-display {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  color: #3d3f41e8;
  font-size: 0.69rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seo-page-old-url-display::before {
  content: "\21AA";
  flex: 0 0 auto;
  color: currentColor;
  font-size: 0.76rem;
  line-height: 1;
  opacity: 0.9;
}

.seo-page-keyword-display.is-empty {
  color: #a7a7a7;
  font-style: italic;
}

.seo-page-row .page-seo-score {
  color: #a26800;
  font-size: 0.78rem;
  font-weight: 750;
}

.seo-page-row .page-seo-score.score-good,
.seo-page-row .page-seo-score.score-excellent {
  color: #008f49;
}

.seo-page-row .page-seo-score.score-bad {
  color: #d92d20;
}

.seo-status-menu {
  position: relative;
  width: min(100%, var(--seo-status-col));
  min-width: 0;
  padding-right: 0;
  justify-self: start;
  z-index: 1;
}

.seo-status-menu.is-open {
  z-index: 100;
}

.seo-status-chip.status-chip.page-status-chip {
  justify-content: space-between;
  width: fit-content;
  max-width: 146px;
  min-height: 28px;
  padding: 0 11px 0 14px;
  border-color: #e6e6e6;
  background: #fbfbfb;
  color: #767676;
  box-shadow: none;
}

.seo-status-chip::after {
  display:none;
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 14px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  opacity: 0.72;
}

.seo-status-menu.is-open .seo-status-chip {
  border-color: rgba(30, 144, 255, 0.34);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.08);
}

.seo-status-chip.page-status-chip.status-pending_approval {
  border-color: rgba(178, 107, 0, 0.22);
  background: rgba(255, 242, 220, 0.75);
  color: #b26b00;
}

.seo-status-chip.page-status-chip.status-approved {
  border-color: rgba(31, 143, 77, 0.2);
  background: rgba(228, 247, 235, 0.8);
  color: #1f8f4d;
}

.seo-status-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 10px;
  z-index: 120;
  width: 190px;
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid #e5e5e5;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(16, 24, 40, 0.12);
}

.seo-status-popover[hidden] {
  display: none !important;
}

.seo-status-option {
  width: 100%;
  justify-content: center;
  min-height: 30px;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.seo-page-row-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding: 28px 0 72px;
  background: #fff;
  animation: seoExpandedEnter 0.22s ease;
}

.seo-page-row-detail.is-stable {
  animation: none;
}

.seo-detail-section {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 28px;
  min-width: 0;
  padding: 0 22px;
}

.seo-meta-section {
  grid-template-columns: 170px minmax(320px, 500px) minmax(230px, 1fr);
  align-items: start;
  border-top: solid 1px #eee;
  padding: 30px 22px 0;
}

.seo-detail-section-label {
  padding-top: 18px;
  color: #3d3d3d;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0;
}

.seo-permalink-stack {
  position: relative;
  display: grid;
  gap: 10px;
  min-width: 0;
}

.seo-permalink-stack.has-redirect::before {
  content: "";
  position: absolute;
  left: 146px;
  top: 52px;
  width: 1px;
  height: 39px;
  background: #8c9198;
}

.seo-permalink-stack.has-redirect::after {
  content: "";
  position: absolute;
  left: 141px;
  top: 82px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #8c9198;
}

.seo-permalink-row {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 10px;
  background: #f6f6f6;
}

.seo-permalink-redirect {
  width: calc(100% - 180px);
  margin-left: 180px;
}

.seo-permalink-label {
  color: #00000099;
  font-size: 0.85rem;
  font-weight: 600;
}

.seo-text-action {
  border: 0;
  background: transparent;
  color: #171717;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.1;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  white-space: nowrap;
}

.seo-text-action:disabled {
  color: #9aa1ad;
  cursor: default;
}

.seo-text-action.is-confirming {
  color: #b42318;
}

.seo-meta-fields {
  display: grid;
  gap: 18px;
  max-width: 500px;
  min-width: 0;
  padding: 17px;
  border-radius: 10px;
}

.seo-table-insights {
  align-self: start;
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: 17px;
  background: #f6f6f6;
  border-radius: 10px;
  height: 100%;
}

.seo-table-insights-heading {
  color: #00000099;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.2;
}

.seo-table-insights-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
  min-width: 0;
}

.seo-table-insight {
  display: grid;
  gap: 5px;
  min-width: 0;
}
/* 
.seo-table-insight-overall {
  padding-top: 2px;
  margin-top: 2px;
  border-top: 1px solid #ececec;
  padding-bottom: 2px;
} */

.seo-table-insight strong {
  min-width: 0;
  overflow: hidden;
  font-size: 0.96rem;
  font-weight: 650;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seo-table-insight strong.score-neutral {
  color: #161616;
}

.seo-table-insight span {
  color: #8a8a8a;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
}

.seo-table-row-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding-top: 12px;
}

.seo-table-row-action.ghost-button {
  width: 100%;
  max-width: none;
  min-height: 36px;
}

.seo-bulk-ai-dialog {
  width: min(720px, calc(100vw - 32px));
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.seo-bulk-ai-content {
  min-height: 0;
  padding: 24px 24px 0;
  display: grid;
  gap: 18px;
}

.seo-bulk-ai-copy p {
  margin: 0;
  color: #5f5f5f;
  font-size: 0.88rem;
  line-height: 1.55;
}

.seo-bulk-ai-options {
  display: grid;
  gap: 10px;
}

.seo-bulk-ai-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  background: #fafafa;
  cursor: pointer;
}

.seo-bulk-ai-option.is-selected {
  border-color: rgba(30, 144, 255, 0.3);
  background: #f6fbff;
}

.seo-bulk-ai-option input {
  margin-top: 2px;
}

.seo-bulk-ai-option-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.seo-bulk-ai-option-copy strong {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
}

.seo-bulk-ai-option-copy small,
.seo-bulk-ai-picker-header span,
.seo-bulk-ai-page-copy small {
  color: #767676;
  font-size: 0.77rem;
  line-height: 1.45;
}

.seo-bulk-ai-page-picker {
  display: grid;
  gap: 10px;
  min-height: 0;
}

.seo-bulk-ai-page-picker.is-disabled {
  opacity: 0.56;
}

.seo-bulk-ai-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.seo-bulk-ai-picker-header strong {
  font-size: 0.84rem;
  font-weight: 700;
}

.seo-bulk-ai-page-list {
  max-height: 280px;
  overflow: auto;
  display: grid;
  gap: 8px;
  padding-right: 4px;
}

.seo-bulk-ai-page-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #ececec;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.seo-bulk-ai-page-item.is-selected {
  border-color: rgba(30, 144, 255, 0.28);
  background: #f7fbff;
}

.seo-bulk-ai-page-item.is-complete {
  background: #fafafa;
}

.seo-bulk-ai-page-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.seo-bulk-ai-page-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.86rem;
  font-weight: 650;
  color: var(--ink);
}

.seo-bulk-ai-footer {
  justify-content: flex-end;
}

.seo-permalink-row .seo-slug-field,
.seo-permalink-row .seo-table-input {
  height: auto;
  min-height: 34px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #040404c2;
  font-size: 0.88rem;
}

.seo-permalink-row .seo-slug-field {
  display: flex;
  padding: 0;
}

.seo-permalink-row .seo-slug-field span {
  padding-left: 0;
  color: #00000024;
  font-size: 0.88rem;
  font-weight: 600;
  margin-left: 5px;
  direction: rtl;
}

.seo-permalink-row .seo-slug-field .seo-home-path {
  margin-left: 0;
}

.seo-permalink-row .seo-table-input:hover,
.seo-permalink-row .seo-table-input:focus,
.seo-permalink-row .seo-slug-field:hover,
.seo-permalink-row .seo-slug-field:focus-within {
  background: rgba(255, 255, 255, 0.44);
  box-shadow: none;
}

.seo-route-editor {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border-radius: 12px;
  background: #f7f8fa;
}

.seo-route-editor-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.seo-route-editor-heading span {
  color: #5f6876;
  font-size: 0.64rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.seo-route-editor-heading small,
.page-old-url-field small {
  color: #9aa1ad;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}

.seo-route-editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 10px;
}

.seo-expanded-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

@media (max-width: 860px) {
  .seo-table-canvas {
    padding: 32px 14px 40px;
  }

  .seo-table-screen {
    gap: 24px;
  }

  .seo-table-header {
    padding: 0;
  }

  .seo-table-columns {
    display: none;
  }

  .seo-page-list {
    gap: 5px;
  }

  .seo-site-summary {
    padding: 18px 16px;
  }

  .seo-site-summary-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .seo-ai-fill-panel {
    grid-template-columns: 1fr;
    align-items: start;
    padding: 18px 16px;
  }

  .seo-ai-fill-panel-button {
    justify-self: start;
  }

  .seo-page-row {
    width: calc(100% - min(var(--seo-depth-offset, 0px), 24px));
    margin-left: min(var(--seo-depth-offset, 0px), 24px);
  }

  .seo-page-row-summary {
    grid-template-columns: minmax(0, 1fr) minmax(104px, auto);
    gap: 8px 12px;
    min-height: 0;
    padding: 12px;
  }

  .seo-page-row-summary > * {
    padding-right: 0;
  }

  .seo-page-name-cell {
    grid-column: 1 / 2;
  }

  .seo-page-route-cell,
  .seo-page-keyword-display {
    grid-column: 1 / 2;
    font-size: 0.74rem;
  }

  .seo-page-row .page-seo-score {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    justify-self: end;
    white-space: nowrap;
  }

  .seo-status-menu {
    grid-column: 2 / 3;
    grid-row: 2 / span 2;
    align-self: start;
    justify-self: end;
    width: 104px;
  }

  .seo-status-chip.status-chip.page-status-chip {
    width: 104px;
    max-width: 104px;
    padding: 0 9px;
    font-size: 0.64rem;
  }

  .seo-status-popover {
    right: 0;
    width: 168px;
  }

  .seo-page-row-detail {
    padding: 20px 12px 34px;
  }

  .seo-detail-section {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .seo-detail-section-label {
    padding-top: 0;
  }

  .seo-table-insights {
    padding: 4px 17px 0;
  }

  .seo-table-insights-grid {
    gap: 14px 18px;
  }

  .seo-permalink-row {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
  }

  .seo-permalink-row .seo-text-action {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .seo-permalink-redirect {
    width: auto;
    margin-left: 36px;
  }

  .seo-permalink-stack.has-redirect::before {
    left: 16px;
    top: 52px;
  }

  .seo-permalink-stack.has-redirect::after {
    left: 11px;
    top: 98px;
  }

  .seo-route-editor-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .seo-table-canvas {
    padding: 24px 10px 34px;
  }

  .seo-table-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .seo-page-row {
    width: 100%;
    margin-left: 0;
  }

  .seo-site-summary-metrics {
    grid-template-columns: 1fr;
  }

  .seo-ai-fill-panel {
    gap: 14px;
  }

  .seo-page-row-summary {
    grid-template-columns: 1fr;
  }

  .seo-page-name-cell,
  .seo-page-route-cell,
  .seo-page-keyword-display,
  .seo-page-row .page-seo-score,
  .seo-status-menu {
    grid-column: 1 / -1;
    grid-row: auto;
    justify-self: stretch;
  }

  .seo-status-menu,
  .seo-status-chip.status-chip.page-status-chip {
    width: 100%;
    max-width: none;
  }

  .seo-status-popover {
    left: 0;
    right: auto;
    width: min(190px, 100%);
  }

  .seo-table-insights {
    gap: 14px;
  }

  .seo-table-insights-grid,
  .seo-table-row-actions {
    grid-template-columns: 1fr;
  }
}

.seo-expanded-field span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #00000099;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.seo-expanded-field small {
  color: #8a8a8a;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.page-route-fields {
  display: grid;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  background: #f7f8fa;
}

.page-route-fields .field {
  margin: 0;
}

.page-old-url-field span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.seo-expanded-field .seo-table-input,
.seo-expanded-field .seo-table-textarea,
.seo-expanded-field .seo-slug-field {
  border-color: #e1e1e1;
  background: #fff;
}

.seo-expanded-field .seo-slug-field {
  overflow: hidden;
  border-color: #d9d9d9;
}

.seo-expanded-field .seo-slug-field span {
  display: inline-flex;
  align-items: center;
  height: 100%;
  padding: 0 0 0 10px;
  background: #fff;
  color: #4f5c6f;
  text-transform: lowercase;
}

.seo-expanded-field .seo-slug-field .seo-table-slug-input {
  height: 100%;
  background: #fff;
}

.seo-expanded-title {
  display: none;
}

.seo-expanded-wide {
  grid-column: 1 / -1;
}

.seo-field-progress {
  display: block;
  width: var(--seo-progress, 0%);
  height: 3px;
  border-radius: 999px;
  background: #1f9e55;
}

@keyframes seoExpandedEnter {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.seo-table-scroll {
  overflow-x: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.seo-page-table {
  width: 100%;
  min-width: 1220px;
  border-collapse: separate;
  border-spacing: 0 9px;
  table-layout: fixed;
}

.seo-page-table th {
  padding: 0 16px 4px;
  border: 0;
  background: transparent;
  color: #8a8a8a;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-align: left;
  text-transform: uppercase;
}

.seo-page-table td {
  padding: 13px 16px;
  border-top: 1px solid #e7e7e7;
  border-bottom: 1px solid #e7e7e7;
  background: #fff;
  vertical-align: middle;
}

.seo-page-table tbody tr {
  transition: transform 0.16s ease;
}

.seo-page-table tbody tr:hover td {
  background: #fcfcfc;
  border-color: #dcdcdc;
}

.seo-page-table td:first-child {
  border-left: 1px solid #e7e7e7;
  border-radius: 14px 0 0 14px;
}

.seo-page-table td:last-child {
  border-right: 1px solid #e7e7e7;
  border-radius: 0 14px 14px 0;
}

.seo-page-table th:nth-child(1),
.seo-page-table td:nth-child(1) {
  width: 16%;
}

.seo-page-table th:nth-child(2),
.seo-page-table td:nth-child(2) {
  width: 16%;
}

.seo-page-table th:nth-child(3),
.seo-page-table td:nth-child(3) {
  width: 11%;
}

.seo-page-table th:nth-child(4),
.seo-page-table td:nth-child(4) {
  width: 13%;
}

.seo-page-table th:nth-child(5),
.seo-page-table td:nth-child(5) {
  width: 17%;
}

.seo-page-table th:nth-child(6),
.seo-page-table td:nth-child(6) {
  width: 8%;
}

.seo-page-table th:nth-child(7),
.seo-page-table td:nth-child(7) {
  width: 19%;
}

.seo-table-input,
.seo-table-textarea,
.seo-table-select {
  width: 100%;
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.84rem;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.seo-table-input,
.seo-table-select {
  height: 36px;
  padding: 8px 10px;
}

.seo-table-textarea {
  min-height: 54px;
  resize: none;
  overflow: hidden;
  padding: 8px 10px;
}

.seo-page-table .page-seo-score {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  min-width: 78px;
  padding: 0 2px;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.35;
}

.seo-page-name-cell {
  display: grid;
  grid-template-columns: calc(var(--seo-page-depth, 0) * 18px) minmax(0, 1fr);
  align-items: center;
  min-width: 0;
}

.seo-page-depth-marker {
  position: relative;
  display: block;
  height: 32px;
}

.seo-page-depth-marker::before {
  content: "";
  display: none;
  position: absolute;
  right: 7px;
  top: 4px;
  bottom: 4px;
  width: 8px;
  border-left: 1px solid #d9d9d9;
  border-bottom: 1px solid #d9d9d9;
}

.seo-page-table tr[style*="--seo-page-depth:1"] .seo-page-depth-marker::before,
.seo-page-table tr[style*="--seo-page-depth:2"] .seo-page-depth-marker::before,
.seo-page-table tr[style*="--seo-page-depth:3"] .seo-page-depth-marker::before,
.seo-page-table tr[style*="--seo-page-depth:4"] .seo-page-depth-marker::before,
.seo-page-table tr[style*="--seo-page-depth:5"] .seo-page-depth-marker::before,
.seo-page-table tr[style*="--seo-page-depth:6"] .seo-page-depth-marker::before {
  display: block;
}

.seo-page-name-stack {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.seo-table-title-input {
  font-weight: 600;
}

.seo-page-hierarchy-label {
  display: none;
  color: #8a8a8a;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seo-slug-field {
  display: flex;
  align-items: center;
  min-width: 0;
  height: 36px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.seo-slug-field span {
  flex: 0 0 auto;
  max-width: 65%;
  overflow: hidden;
  padding-left: 10px;
  color: #8a8a8a;
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 300;
  letter-spacing: unset;
}

.seo-slug-field:focus-within,
.seo-slug-field:hover {
  border-color: #d9d9d9;
  background: #fff;
}

.seo-slug-field:focus-within {
  box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.09);
}

.seo-slug-field .seo-table-slug-input {
  flex: 1 1 auto;
  min-width: 72px;
  border: 0;
  border-radius: 0 10px 10px 0;
  padding-left: 2px;
  font-weight: 400;
}

.seo-table-input:hover,
.seo-table-textarea:hover,
.seo-table-select:hover,
.seo-table-input:focus,
.seo-table-textarea:focus,
.seo-table-select:focus {
  border-color: #d9d9d9;
  background: #fff;
  outline: none;
}

.seo-table-input:focus,
.seo-table-textarea:focus,
.seo-table-select:focus {
  box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.09);
}

.seo-table-input[readonly],
.seo-table-textarea[readonly] {
  color: var(--muted);
  cursor: default;
}

.seo-table-slug-input {
  color: #303030;
  font-size: 0.79rem;
}

.seo-slug-field .seo-table-slug-input:hover,
.seo-slug-field .seo-table-slug-input:focus {
  background: transparent;
  box-shadow: none;
}

.seo-table-status-select {
  width: fit-content;
  max-width: 100%;
  min-width: 160px;
  min-height: 28px;
  height: 28px;
  padding: 0 28px 0 11px;
  border-color: #e6e6e6;
  border-radius: 999px;
  background-color: #fbfbfb;
  color: #767676;
  font-size: 0.69rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.seo-table-status-select.status-pending_approval {
  border-color: rgba(178, 107, 0, 0.22);
  background-color: rgba(255, 242, 220, 0.75);
  color: #b26b00;
}

.seo-table-status-select.status-approved {
  border-color: rgba(31, 143, 77, 0.2);
  background-color: rgba(228, 247, 235, 0.8);
  color: #1f8f4d;
}

.canvas.sync-busy::before,
.canvas.sync-busy::after,
.sitemap-canvas.sync-busy::before,
.sitemap-canvas.sync-busy::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 20;
}

.canvas.sync-busy::before,
.sitemap-canvas.sync-busy::before {
  background: linear-gradient(120deg, rgba(30, 144, 255, 0.05), rgba(255, 255, 255, 0.78), rgba(30, 144, 255, 0.05));
  background-size: 200% 100%;
  animation: aiShimmer 3s ease infinite;
}

.canvas.sync-busy::after,
.sitemap-canvas.sync-busy::after {
  content: attr(data-sync-label);
  inset: auto 28px 24px auto;
  padding: 10px 14px;
  border: 1px solid rgba(30, 144, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: dodgerblue;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.canvas.sync-busy .page-stack,
.canvas.sync-busy .sitemap-stage,
.canvas.sync-busy .empty-state,
.sitemap-canvas.sync-busy .page-stack,
.sitemap-canvas.sync-busy .sitemap-stage,
.sitemap-canvas.sync-busy .empty-state {
  transition: opacity 0.24s ease, transform 0.24s ease;
  opacity: 0.74;
}

.canvas.mode-transition-enter::before,
.sitemap-canvas.mode-transition-enter::before,
.canvas.page-transition-enter::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.08));
  animation: canvasModeWash 0.34s ease;
}

.canvas.mode-transition-enter .page-stack,
.canvas.mode-transition-enter .empty-state,
.canvas.mode-transition-enter .seo-table-screen,
.sitemap-canvas.mode-transition-enter .sitemap-stage {
  animation: canvasModeEnter 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.canvas.page-transition-enter .page-stack,
.canvas.page-transition-enter .empty-state {
  animation: canvasModeEnter 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.canvas.preview-mode .section-toolbar {
  display: none;
}

body.preview-mode .left-sidebar {
  display: none;
}

body.preview-mode .sidebar-resizer {
  display: none;
}

body.preview-mode .app-shell {
  grid-template-columns: 1fr;
}

body.zoomed-preview .canvas.preview-mode .page-stack {
  width: 100%;
  margin: 0 auto;
  transform: scale(0.78);
  transform-origin: top center;
  transition: transform 0.3s ease;
  max-width: 1024px;
}

.canvas.drag-over {
  background-color: #fafafa;
}

.empty-state {
  width: 100%;
  margin: 64px auto 0;
  padding: 44px 40px;
  border: 1px dashed var(--line-dark);
  background: rgba(255, 255, 255, 0.9);
  text-align: center;
}

.empty-state h2 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.empty-state p:last-child {
  color: var(--muted);
}

.page-stack {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 40px 44px 56px;
  background: #fff;
  display: grid;
  gap: 0;
  pointer-events: none;
}

.page-stack-title {
  font-size: 70px;
  font-weight: 700;
  margin-top: -20px;
  color: #eee;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.canvas.preview-mode .page-stack-title {
  font-size: 40px;
}

.page-stack-title-input {
  width: 100%;
  font-size: 70px!important;
  font-weight: 700;
  font-family: inherit;
  margin-top: -20px;
  margin-bottom: 5px;
  line-height: 0.95;
  letter-spacing: -0.04em;
  border: 0;
  border-bottom: 1px solid #e3e3e3;
  background: transparent;
  padding: 0;
  outline: none;
}

.page-stack > * {
  pointer-events: auto;
}

.page-add-section-prompt {
  width: 100%;
  margin: 16px 0 8px;
  padding: 22px 18px;
  border: 1px dashed var(--line-strong);
  background: #fafafa;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.page-add-section-prompt:hover,
.page-add-section-prompt:focus-visible {
  border-color: dodgerblue;
  background: #fcfdff;
  color: var(--ink);
  outline: none;
}

.page-add-section-icon {
  width: 24px;
  height: 24px;
  border: 1px solid currentColor;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  line-height: 1;
  padding-bottom: 1px;
}

.page-add-section-copy {
  font-size: 0.92rem;
  font-weight: 500;
}

.wireframe-section {
  width: 100%;
  margin: 0;
  margin-bottom: 0;
  padding: 32px 0 40px;
  border: 0;
  border-top: 2px solid #ededed;
  box-shadow: inset 0 0 0 0 dodgerblue;
  background: transparent;
  position: relative;
  transition:
    box-shadow 0.3s ease,
    border-top-color 0.3s ease,
    padding 0.3s ease,
    margin-bottom 0.3s ease,
    background 0.3s ease;
  pointer-events: auto;
}

.wireframe-section > .section-toolbar,
.wireframe-section > .wireframe-layout,
.wireframe-section > .section-toolbar *,
.wireframe-section > .wireframe-layout * {
  pointer-events: auto;
}

.wireframe-section:first-child {
  border-top: 0;
  padding-top: 0;
}

.wireframe-section.selected {
  border-top-color: transparent;
  box-shadow: inset 0 0 0 2px dodgerblue;
  padding: 20px;
  background: transparent;
  z-index: 3;
  margin-bottom: 30px;
}

.wireframe-section.locked-by-other {
  border-top-color: transparent;
  box-shadow: inset 0 0 0 2px var(--locked-section-border, rgba(223, 133, 0, 0.78));
  padding: 20px;
  background: var(--locked-section-background, rgba(255, 248, 239, 0.7));
  z-index: 3;
  margin-bottom: 30px;
}

.wireframe-section.drop-before {
  box-shadow: inset 0 3px 0 dodgerblue;
}

.wireframe-section.drop-after {
  box-shadow: inset 0 -3px 0 dodgerblue;
}

.wireframe-section.is-dragging::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.6);
  pointer-events: none;
  z-index: 4;
}

.canvas.has-selection .wireframe-section:not(.selected)::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.8);
  pointer-events: none;
  z-index: 2;
  transition: ease .5s;
  backdrop-filter: blur(3px);
}

.canvas.has-selection .wireframe-section:not(.selected):hover::after {
  backdrop-filter: blur(0);
}

.canvas.section-reorder-active.has-selection .wireframe-section:not(.selected)::after,
body.section-reorder-active .canvas.has-selection .wireframe-section:not(.selected)::after,
body:has(.drag-handle:active) .canvas.has-selection .wireframe-section:not(.selected)::after {
  content: none !important;
  display: none !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.section-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  /* border-bottom: 1px dashed #cfcfcf; */
  border-bottom: none;
}

.section-toolbar-center {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 20px;
}

.section-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.76rem;
}

.wireframe-section.locked-by-other .section-actions {
  display: none;
}

.section-actions {
  opacity: 0;
  pointer-events: none;
  transform: translateY(3px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.section-actions .section-icon-button {
  position: relative;
  min-width: 32px;
  height: 32px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  color: var(--muted);
  display: flex;
  gap: 5px;
  padding: 0 6px;
}

.section-actions .section-icon-button:hover,
.section-actions .section-icon-button:focus-visible {
  color: var(--ink);
}

.section-actions .section-icon-button.has-anchor {
  border-color: #cfe0ff;
  background: #eef5ff;
  color: #1256c4;
}

.section-actions .section-icon-button.has-anchor:hover,
.section-actions .section-icon-button.has-anchor:focus-visible {
  border-color: #9fc1ff;
  background: #e4efff;
  color: #0c4aa8;
}

.section-actions .section-icon-button.confirm-delete,
.section-actions .section-icon-button.confirm-delete:hover,
.section-actions .section-icon-button.confirm-delete:focus-visible {
  color: #fff;
}

.section-action-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.section-action-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border: 1px solid #fff;
  border-radius: 999px;
  background: #eaf2ff;
  color: #1256c4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1;
}

.section-actions .section-icon-button[data-tooltip]::before,
.section-actions .section-icon-button[data-tooltip]::after {
  position: absolute;
  left: 50%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
  z-index: 15;
}

.section-actions .section-icon-button[data-tooltip]::before {
  content: attr(data-tooltip);
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(4px);
  width: max-content;
  max-width: 220px;
  padding: 7px 9px;
  border-radius: 8px;
  background: rgba(16, 16, 16, 0.92);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: normal;
  text-align: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.section-actions .section-icon-button[data-tooltip]::after {
  content: "";
  bottom: calc(100% + 4px);
  transform: translateX(-50%) translateY(4px);
  width: 8px;
  height: 8px;
  background: rgba(16, 16, 16, 0.92);
  rotate: 45deg;
}

.section-actions .section-icon-button[data-tooltip]:hover::before,
.section-actions .section-icon-button[data-tooltip]:hover::after,
.section-actions .section-icon-button[data-tooltip]:focus-visible::before,
.section-actions .section-icon-button[data-tooltip]:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.wireframe-section:hover .section-actions,
.wireframe-section:focus-within .section-actions,
.wireframe-section.selected .section-actions {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

body.workspace-tour-comment-step .wireframe-section.selected .section-actions {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

body.workspace-tour-comment-step .wireframe-section.tour-reveal-actions .section-actions {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

body.workspace-tour-status-step .canvas-status-dock {
  z-index: 181;
}

body.seed-viewer-mode .section-actions {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.section-row-index {
  color: var(--muted);
  font-size: 0.76rem;
}

.section-last-edited {
  color: #6f7785;
  opacity: 0.5;
  font-style: italic;
}

.section-presence {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 2px;
}

.section-presence-avatar {
  --presence-border: rgba(223, 133, 0, 0.42);
  --presence-bg: #fff4e6;
  --presence-text: #b86800;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid var(--presence-border);
  background: var(--presence-bg);
  color: var(--presence-text);
  font-size: 0.68rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--presence-border) 28%, transparent);
}

.section-suggestion-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  padding: 5px 10px;
  font-size: 0.8rem;
  cursor: pointer;
}

.section-suggestion-toggle.has-suggestions {
  border-color: #c6d9ff;
  color: #1256c4;
}

.section-suggestion-count {
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #eaf2ff;
  color: #1256c4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 600;
}

.drag-handle {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 6px 9px;
  border: 1px dashed var(--line-strong);
  border-radius: 4px;
  background: #fff;
  color: var(--muted);
  cursor: grab;
}

.drag-handle:active {
  cursor: grabbing;
}

.drag-handle[data-tooltip]::before,
.drag-handle[data-tooltip]::after {
  position: absolute;
  left: 50%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
  z-index: 15;
}

.drag-handle[data-tooltip]::before {
  content: attr(data-tooltip);
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(4px);
  width: max-content;
  padding: 7px 9px;
  border-radius: 8px;
  background: rgba(16, 16, 16, 0.92);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.drag-handle[data-tooltip]::after {
  content: "";
  bottom: calc(100% + 4px);
  transform: translateX(-50%) translateY(4px);
  width: 8px;
  height: 8px;
  background: rgba(16, 16, 16, 0.92);
  rotate: 45deg;
}

.drag-handle[data-tooltip]:hover::before,
.drag-handle[data-tooltip]:hover::after,
.drag-handle[data-tooltip]:focus-visible::before,
.drag-handle[data-tooltip]:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.three-column-context-card {
  width: 100%;
}

.three-column-context-notes {
  min-height: 96px;
}

.section-grid,
.card-grid,
.stats-grid,
.logos-grid,
.contact-grid,
.faq-stack {
  display: grid;
  gap: 28px;
}

.section-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.section-grid.asymmetric {
  grid-template-columns: 1.15fr 0.85fr;
}

.card-grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid.cols-4,
.stats-grid.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.process-steps-grid.is-flex-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.process-steps-grid.is-flex-layout > .wire-card {
  flex: 1 1 0;
  min-width: 0;
}

.featured-metrics-grid.is-flex-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.featured-metrics-grid.is-flex-layout > .metric-card {
  flex: 1 1 0;
  min-width: 0;
}

.contact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.section-kicker,
.wire-chip,
.mini-kicker {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.68rem;
  font-weight: 600;
}

.mini-kicker {
  font-size: 13px;
}

.wire-title {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 2rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 50%;
}

.wire-text,
.wire-heading-small {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 50%;
}

.wire-heading-small {
  color: var(--ink);
  font-weight: 400;
}

.wire-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
}

.wire-card .wire-title,
.wire-card .wire-text,
.wire-card .wire-heading-small,
.wire-card h4,
.wire-card .section-kicker,
.metric-card .wire-title,
.metric-card .wire-text,
.detail-card .wire-title,
.detail-card .wire-text,
.faq-item .wire-title,
.faq-item .wire-text,
.tab-panel .wire-title,
.tab-panel .wire-text,
.pricing-cell .wire-text,
.pricing-cell h4,
.logo-chip .placeholder-label,
.tab-pill .editable,
.wire-tag .editable {
  max-width: 100%;
}

.wire-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  min-height: 34px;
  padding: 14px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #000;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 500;
  white-space: normal;
}

.wireframe-section.selected .wire-button .editable:focus, .wireframe-section.selected .wire-button .editable:hover, .wireframe-section .wire-button .editable:hover {
  color: #000;
}

.wire-button.secondary {
  background: #fff;
  color: #000;
}

.wireframe-layout {
  display: grid;
  gap: 22px;
  position: relative;
}

.intro-box,
.split-box,
.cta-box,
.logo-strip-box,
.faq-table,
.pricing-table {
  border: 1px solid var(--line-strong);
  background: #fff;
}

.canvas.preview-mode .intro-box,
.canvas.preview-mode .split-box,
.canvas.preview-mode .cta-box,
.canvas.preview-mode .logo-strip-box,
.canvas.preview-mode .faq-table,
.canvas.preview-mode .pricing-table,
.canvas.preview-mode .wire-card,
.canvas.preview-mode .metric-card,
.canvas.preview-mode .faq-item,
.canvas.preview-mode .pricing-cell,
.canvas.preview-mode .detail-card,
.canvas.preview-mode .tab-panel,
.canvas.preview-mode .logo-chip,
.canvas.preview-mode .logo-strip-head {
  border-color: #eeeeee;
}

.canvas.preview-mode .split-panel + .split-panel,
.canvas.preview-mode .split-box-reversed .split-copy-panel,
.canvas.preview-mode .split-box-reversed .split-panel + .split-panel {
  border-left-color: #eeeeee;
}

.canvas.preview-mode .wire-card .media-placeholder,
.canvas.preview-mode .gallery-card .media-placeholder,
.canvas.preview-mode .carousel-slide-card .media-placeholder {
  border-color: #eeeeee;
}

.intro-box {
  /* min-height: 188px; */
  padding: 28px 32px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.intro-title,
.intro-text {
  max-width: 50%;
  text-align: center;
}

.split-box {
  display: grid;
  overflow: hidden;
}

.split-box-even,
.split-box-page-banner {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-banner-featured-image {
  margin-bottom: 16px;
}

.page-banner-featured-media {
  min-height: clamp(220px, 28vw, 380px);
}

.split-box-page-banner {
  position: relative;
}

.split-box-page-banner.has-featured-image {
  background-image: linear-gradient(rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.86)), var(--page-banner-featured-image);
  background-size: cover;
  background-position: center;
}

.split-box-page-banner.has-featured-image .split-panel {
  position: relative;
  z-index: 1;
}

.longform-split-box {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}

.split-box-reversed .split-copy-panel {
  order: 2;
  border-left: 1px solid var(--line-strong);
}

.split-box-reversed .split-media-panel {
  order: 1;
}

.split-form-panel {
  padding: 0;
}

.split-panel {
  min-width: 0;
  padding: 28px 30px;
  display: grid;
  align-content: stretch;
  gap: 14px;
}

.split-panel + .split-panel {
  border-left: 1px solid var(--line-strong);
}

.split-box-reversed .split-panel + .split-panel {
  border-left: 0;
}

.split-copy-panel {
  justify-items: start;
}

.longform-main-panel {
  gap: 18px;
}

.longform-body {
  max-width: none;
}

.longform-sidebar-panel {
  align-content: start;
  gap: 12px;
  background: var(--surface-muted);
}

.longform-sidebar-title {
  margin: 0;
  font-size: 1rem;
}

.longform-sidebar-body {
  max-width: none;
}

.blog-sidebar-placeholder {
  display: grid;
  gap: 12px;
  align-content: start;
}

.blog-sidebar-placeholder-block {
  display: block;
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: var(--line-strong);
  opacity: 0.72;
}

.blog-sidebar-placeholder-block.is-heading {
  width: 68%;
  height: 16px;
  background: var(--ink-muted);
  opacity: 0.42;
}

.blog-sidebar-placeholder-block.is-short {
  width: 52%;
}

.blog-sidebar-placeholder-card {
  display: grid;
  gap: 10px;
  margin-top: 8px;
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
}

/* .checklist-split-panel {
  align-content: start;
} */

.case-study-split-box {
  align-items: start;
}

.case-study-main-panel {
  gap: 20px;
}

.case-study-detail-block {
  display: grid;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.case-study-detail-title {
  margin: 0;
  font-size: 1rem;
}

.case-study-detail-body,
.case-study-stat-text {
  max-width: none;
}

.case-study-sidebar-panel {
  gap: 16px;
}

.case-study-stat-list {
  display: grid;
  gap: 10px;
}

.case-study-stat {
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: #fff;
}

.split-panel-title,
.split-panel-text {
  max-width: 100%;
}

.split-description-panel {
  align-items: center;
}

.split-description-panel .split-panel-text {
  max-width: 100%;
}

.split-media-panel {
  padding: 0;
}

.media-placeholder,
.color-placeholder,
.form-placeholder,
.map-placeholder {
  min-height: 240px;
  border: 1px dashed var(--line-strong);
  background:
    repeating-linear-gradient(
      -45deg,
      #f1f1f1,
      #f1f1f1 12px,
      #fafafa 12px,
      #fafafa 24px
    );
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}

.media-placeholder.has-image,
.map-placeholder.has-image {
  border-style: solid;
  background: #f3f3f3;
}

.media-placeholder.is-uploading,
.map-placeholder.is-uploading,
.image-comparison-frame.is-uploading,
.icon-upload-field.is-uploading,
.gallery-upload-actions.is-uploading,
.three-column-card-media-choice.is-uploading,
.four-column-card-media-choice.is-uploading {
  overflow: hidden;
}

.media-placeholder.is-uploading::after,
.map-placeholder.is-uploading::after,
.image-comparison-frame.is-uploading::after,
.icon-upload-field.is-uploading::after,
.gallery-upload-actions.is-uploading::after,
.three-column-card-media-choice.is-uploading::after,
.four-column-card-media-choice.is-uploading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(30, 144, 255, 0.08), rgba(255, 255, 255, 0.7), rgba(30, 144, 255, 0.08));
  background-size: 200% 100%;
  animation: aiShimmer 3s ease infinite;
  pointer-events: none;
  z-index: 1;
}

.media-placeholder.is-uploading .placeholder-label,
.map-placeholder.is-uploading .placeholder-label,
.icon-upload-field.is-uploading .placeholder-label,
.three-column-card-media-choice.is-uploading .image-control-button,
.four-column-card-media-choice.is-uploading .image-control-button {
  position: relative;
  z-index: 2;
}

.media-placeholder.is-uploading .image-controls,
.map-placeholder.is-uploading .image-controls,
.image-comparison-block.is-uploading .image-controls,
.icon-upload-field.is-uploading .icon-remove-button,
.gallery-upload-actions.is-uploading .image-controls {
  position: relative;
  z-index: 2;
}

.media-placeholder img,
.map-placeholder img,
.inline-image-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.inline-image-preview {
  object-fit: contain;
  height: 60px;
}

.media-placeholder.has-image img,
.map-placeholder.has-image img {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.image-comparison-block {
  display: grid;
  grid-template-rows: auto minmax(320px, 1fr);
  gap: 10px;
  height: 100%;
  min-height: 100%;
}

.image-comparison-toolbar {
  position: static;
  inset: auto;
  align-self: start;
  justify-self: stretch;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  background: transparent;
}

.image-comparison-toolbar-group {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--line);
  background: #fafafa;
}

.image-comparison-toolbar-label {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.image-comparison-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.image-comparison-toolbar .image-control-button {
  max-width: none;
  min-height: 31px;
  padding: 6px 9px;
  background: #fff;
}

.image-comparison-frame {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  border: 1px dashed var(--line-strong);
  background:
    repeating-linear-gradient(
      -45deg,
      #f1f1f1,
      #f1f1f1 12px,
      #fafafa 12px,
      #fafafa 24px
    );
}

.image-comparison-frame.has-image {
  border-style: solid;
  background: #f3f3f3;
}

.image-comparison-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.image-comparison-before {
  background: rgba(255, 255, 255, 0.34);
}

.image-comparison-after {
  left: 50%;
  width: 50%;
  border-left: 1px solid rgba(17, 17, 17, 0.12);
  background: rgba(0, 0, 0, 0.04);
}

.image-comparison-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-comparison-after img {
  width: 200%;
  max-width: none;
  transform: translateX(-50%);
}

.image-comparison-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 1;
  width: 2px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.18);
  transform: translateX(-50%);
  pointer-events: none;
}

.image-comparison-divider span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(17, 17, 17, 0.2);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transform: translate(-50%, -50%);
}

.image-comparison-divider span::before,
.image-comparison-divider span::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.image-comparison-divider span::before {
  left: 11px;
  transform: translateY(-50%) rotate(-45deg);
}

.image-comparison-divider span::after {
  right: 11px;
  transform: translateY(-50%) rotate(135deg);
}

.image-comparison-labels {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}

.image-comparison-labels span {
  padding: 5px 8px;
  border: 1px solid rgba(17, 17, 17, 0.14);
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.placeholder-label {
  padding: 7px 11px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
}

.image-controls {
  position: relative;
  z-index: 1;
  align-self: end;
  justify-self: stretch;
  margin-top: 20px;
  padding: 0 10px 10px 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.image-controls.image-comparison-toolbar {
  position: static;
  align-self: start;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-content: stretch;
  gap: 10px;
  margin: 0;
  padding: 0;
  background: transparent;
}

@media (max-width: 520px) {
  .image-controls.image-comparison-toolbar {
    grid-template-columns: 1fr;
  }
}

.image-control-button {
  background: rgba(255, 255, 255, 0.96);
}

.image-control-button.is-uploading {
  position: relative;
  background: linear-gradient(120deg, rgba(30, 144, 255, 0.08), rgba(255, 255, 255, 0.92), rgba(30, 144, 255, 0.08));
  background-size: 200% 100%;
  animation: aiShimmer 3s ease infinite;
  cursor: wait;
}

.wire-card,
.metric-card,
.faq-item,
.tab-panel,
.detail-card {
  border: 1px solid var(--line);
  background: var(--surface);
}

.wire-card,
.metric-card,
.detail-card,
.faq-item,
.tab-panel {
  padding: 20px;
  display: grid;
  align-content: start;
  gap: 10px;
}

.metric-card {
  min-height: 168px;
  align-content: center;
  justify-items: center;
  text-align: center;
  gap: 12px;
  padding: 26px 22px;
}

.wire-card h4,
.metric-card h4,
.pricing-plan h4,
.detail-card h4,
.tab-panel h4 {
  margin: 0;
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.editable strong,
.editable b {
  font-weight: 700;
}

.metric-card .metric-value {
  margin: 0;
  color: var(--ink);
  font-size: 35px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.95;
  border: 0;
  width: auto;
  height: auto;
  min-height: 0;
  background: transparent;
}

.metric-card .metric-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.4;
  text-transform: none;
  max-width: 100%;
}

.wire-icon {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-weight: 600;
  background: #fafafa;
  text-align: center;
  margin-bottom: 30px!important;
}

.suggestion-modal[hidden] {
  display: none !important;
}

.suggestion-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
}

.suggestion-modal.is-closing {
  pointer-events: none;
}

.suggestion-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(6px);
  animation: modalBackdropEnter 0.28s ease;
}

.suggestion-modal.is-closing .suggestion-modal-backdrop {
  animation: modalBackdropExit 0.22s ease forwards;
}

.suggestion-modal-dialog {
  position: relative;
  /* width: min(1180px, calc(100vw - 48px)); */
  width: 75%;
  max-height: calc(100vh - 48px);
  margin: 24px auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  transform-origin: top center;
  animation: canvasModeEnter 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

#suggestion-modal .suggestion-modal-dialog {
  height: calc(100vh - 48px);
}

.suggestion-modal.is-closing .suggestion-modal-dialog {
  animation: modalDialogExit 0.22s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.suggestion-modal-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--line);
}

.suggestion-modal-header h2,
.suggestion-pane-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.suggestion-modal-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
}

.website-settings-dialog {
  width: min(680px, calc(100vw - 48px));
}

/* .section-history-dialog {
  width: min(1120px, calc(100vw - 48px));
} */

.page-history-dialog {
  width: min(540px, calc(100vw - 32px));
}

.link-editor-dialog,
.section-anchor-dialog {
  width: min(560px, calc(100vw - 32px));
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.link-editor-content,
.section-anchor-content {
  min-height: 0;
  padding: 20px 24px 0;
  display: grid;
  gap: 14px;
}

.link-editor-content .field,
.section-anchor-content .field {
  margin: 0;
}

.link-editor-content input,
.link-editor-content select,
.section-anchor-content input {
  width: 100%;
}

.ai-page-template-dialog {
  overflow: hidden;
  position: relative;
  width: min(620px, calc(100vw - 32px));
}

.ai-page-template-dialog.is-generating .suggestion-modal-header,
.ai-page-template-dialog.is-generating .ai-page-template-content,
.ai-page-template-dialog.is-generating .ai-page-template-footer {
  opacity: 0.38;
}

.ai-page-template-content {
  display: grid;
  gap: 14px;
  padding: 20px 24px 0;
}

.ai-page-template-content .field {
  margin: 0;
}

.ai-page-template-source-mode {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f5f5f5;
}

.ai-page-template-content textarea {
  min-height: 180px;
}

.ai-page-template-content input {
  width: 100%;
}

.ai-page-template-source-status:empty {
  display: none;
}

.ai-page-template-footer {
  padding: 18px 24px 22px;
}

.ai-page-template-loading[hidden] {
  display: none;
}

.ai-page-template-loading {
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: absolute;
  z-index: 4;
}

.ai-page-template-loading-card {
  background: #fff;
  border: none;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 10px;
  max-width: 360px;
  padding: 20px;
  text-align: left;
  width: 100%;
}

.ai-page-template-loading-card h3 {
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.25;
  margin: 0;
}

.ai-page-template-loading-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 0;
}

.link-editor-anchors {
  display: grid;
  gap: 8px;
}

.link-editor-anchor-heading {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.link-editor-anchor-list {
  display: grid;
  gap: 8px;
}

.link-editor-anchor-option {
  width: 100%;
  min-height: 42px;
  justify-content: space-between;
  gap: 12px;
  border-style: solid;
  background: #fff;
  text-align: left;
}

.link-editor-anchor-option span {
  font-weight: 700;
}

.link-editor-anchor-option small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 500;
}

.link-editor-anchor-option.is-active {
  border-color: #9fc1ff;
  background: #eef5ff;
  color: #1256c4;
}

.section-anchor-preview {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f7f7;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
}

.section-anchor-preview.is-warning {
  border-color: #d4892f;
  background: #fff7ec;
  color: #8a4b00;
}

.link-editor-dialog .suggestion-modal-footer,
.section-anchor-dialog .suggestion-modal-footer {
  padding: 18px 24px 22px;
}

.section-history-content {
  min-height: 0;
  overflow: hidden;
}

.page-history-content {
  padding: 20px 24px 24px;
  overflow-y: auto;
}

.page-history-simple-list {
  display: grid;
  gap: 10px;
}

.page-history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.page-history-row:last-child {
  border-bottom: 0;
}

.page-history-row time {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 650;
}

.page-history-older-button {
  justify-self: center;
  margin-top: 4px;
}

.section-history-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
}

.section-history-list {
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: 20px;
  border-right: 1px solid var(--line);
  background: var(--surface-muted);
}

.section-history-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  text-align: left;
  flex: 0 0 auto;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.section-history-item:not(.is-active) {
  cursor: pointer;
}

.section-history-item:hover,
.section-history-item:focus-visible,
.section-history-item.is-active {
  border-color: dodgerblue;
  box-shadow: 0 10px 22px rgba(30, 144, 255, 0.12);
  transform: translateY(-1px);
  outline: none;
}

.section-history-item-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.section-history-item-top strong {
  font-size: 0.9rem;
  color: var(--ink);
}

.section-history-item-top small,
.section-history-item-label,
.section-history-item-preview {
  color: var(--muted);
}

.section-history-item-label {
  font-size: 0.76rem;
  font-weight: 600;
}

.section-history-item-preview {
  font-size: 0.82rem;
  line-height: 1.35;
}

.section-history-preview-shell {
  min-height: 0;
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 20px;
}

.section-history-preview-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.section-history-preview-header h3 {
  margin: 4px 0 0;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.section-history-preview-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 18px 22px;
}

.section-history-preview-card .editable:hover,
.section-history-preview-card .editable:focus,
.section-history-preview-card .editable-inline-field:hover,
.section-history-preview-card .editable-inline-field:focus,
.section-history-preview-card .editable-field:hover .editable,
.section-history-preview-card .editable-field:focus-within .editable {
  background: transparent !important;
  box-shadow: none !important;
}

.section-history-preview-card .suggestion-diff-field:hover,
.section-history-preview-card .suggestion-diff-field:focus,
.section-history-preview-card .editable-field:hover .suggestion-diff-field,
.section-history-preview-card .editable-field:focus-within .suggestion-diff-field {
  background: rgba(255, 247, 220, 0.5) !important;
  box-shadow: none !important;
}

.current-page-settings-dialog,
.project-share-links-dialog {
  width: min(720px, calc(100vw - 32px));
}

.current-page-settings-content,
.project-share-links-content {
  padding: 20px 24px 24px;
  overflow-y: auto;
}

.current-page-settings-content {
  display: grid;
  gap: 16px;
}

.modal-page-settings-card,
.modal-share-link-card {
  gap: 16px;
}

.website-settings-modal-content {
  display: grid;
  gap: 16px;
  padding: 20px 24px 24px;
  overflow-y: auto;
}

.current-page-settings-subtabs,
.website-settings-subtabs {
  width: fit-content;
}

.current-page-settings-panel[hidden],
.website-settings-panel[hidden] {
  display: none !important;
}

.current-page-settings-panel.is-active,
.website-settings-panel.is-active {
  display: block;
}

.seo-settings-card textarea {
  min-height: 104px;
}

.seo-ai-actions {
  justify-content: flex-start;
  margin-top: -4px;
}

.seo-ai-fill-button {
  min-height: 34px;
}

.seo-ai-fill-button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.field-hint {
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 600;
}

.field-hint.is-good {
  color: #047857;
}

.field-hint.is-warning {
  color: #b45309;
}

.seo-guidance {
  display: grid;
  gap: 8px;
  padding-top: 2px;
}

.seo-guidance-row {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.seo-guidance-row.is-good {
  border-color: #a7f3d0;
  background: #ecfdf5;
  color: #047857;
}

.seo-guidance-row.is-warning {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #9a3412;
}

.modal-website-settings-card {
  border: 1px solid var(--line);
  box-shadow: none;
}

.suggestion-sidebar {
  min-height: 0;
  padding: 18px;
  border-right: 1px solid var(--line);
  background: #fafafa;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
}

.suggestion-sidebar-top,
.suggestion-list,
.suggestion-detail,
.suggestion-pane,
.suggestion-replies {
  display: grid;
  gap: 14px;
}

.suggestion-list-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.suggestion-list {
  min-height: 0;
  overflow-y: auto;
}

.suggestion-list-item {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: inherit;
  text-align: left;
  padding: 12px 13px;
  display: grid;
  gap: 6px;
  cursor: pointer;
  height: fit-content;
}

.suggestion-list-item.is-active {
  border-color: dodgerblue;
  background: #f8fbff;
}

.suggestion-list-item strong,
.suggestion-thread-label strong,
.suggestion-context-box strong {
  font-size: 0.84rem;
}

.suggestion-list-item span,
.suggestion-list-item small,
.suggestion-meta-note,
.suggestion-thread-label small {
  color: var(--muted);
  line-height: 1.45;
}

.suggestion-detail {
  min-height: 0;
  overflow-y: auto;
  padding: 22px 24px 24px;
}

.suggestion-pane-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 4px;
}

.suggestion-workflow-section {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.suggestion-workflow-section-edit {
  padding: 16px;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  background: #f7f7f7;
}

.suggestion-workflow-section-context {
  padding: 14px 16px 16px;
  border: 1px solid #cfe1f7;
  border-radius: 0;
  background: #f7fbff;
}

.suggestion-section-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

.suggestion-section-heading h4 {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
}

.suggestion-section-heading > span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1.4;
}

.suggestion-editor-stage {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
  overflow: hidden;
}

.suggestion-editor-card .wireframe-layout {
  gap: 18px;
}

.suggestion-preview-card .editable,
.suggestion-preview-card .editable-inline-field {
  cursor: default;
}

.editable-inline-field {
    width: fit-content;
}

.suggestion-preview-card .is-readonly:focus {
  outline: none;
}

.editable.editable-button-label.is-readonly:hover {
  color: unset!important;
}

.suggestion-context-box {
  display: grid;
  gap: 12px;
  border: 1px solid #cfe1f7;
  border-radius: 0;
  background: #f7fbff;
  padding: 16px 18px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.suggestion-thread-label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.suggestion-thread-label > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.suggestion-thread-marker {
  --presence-border: #d9d9d9;
  --presence-bg: #fff;
  --presence-text: var(--ink);
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: 1px solid var(--presence-border);
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--presence-bg);
  color: var(--presence-text);
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--presence-border) 20%, transparent), 0 4px 12px rgba(0, 0, 0, 0.05);
}

.suggestion-context-box p {
  margin: 0 0 0 40px;
  color: #2f2f2f;
  white-space: pre-wrap;
  line-height: 1.55;
}

.suggestion-replies {
  position: relative;
  padding: 16px 0 0 18px;
  border-top: 1px solid var(--line);
}

.suggestion-replies::before {
  content: "";
  position: absolute;
  left: 0;
  top: 58px;
  bottom: 4px;
  border-left: 2px solid #e5e5e5;
}

.suggestion-reply-list {
  display: grid;
  gap: 10px;
}

.suggestion-reply {
  position: relative;
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 13px 15px;
}

.suggestion-reply::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 26px;
  width: 18px;
  border-top: 2px solid #e5e5e5;
}

.suggestion-reply .suggestion-thread-marker {
  width: 26px;
  height: 26px;
  font-size: 0.66rem;
}

.suggestion-reply p {
  margin: 0 0 0 36px;
  color: var(--muted);
  white-space: pre-wrap;
  line-height: 1.55;
}

.suggestion-reply-form {
  display: grid;
  gap: 12px;
  padding: 14px 16px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafafa;
}

.suggestion-context-input {
  min-height: 110px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 11px 12px;
}

.suggestion-submit-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 5px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wire-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  background: #f5f5f5;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 500;
}

.section-banner {
  padding: 0;
}

.hero-layout {
  display: grid;
  gap: 26px;
}

.banner-headline {
  display: grid;
  gap: 16px;
}

.checklist {
  display: flex;
  gap: 15px;
  padding: 14px;
  border: 1px solid var(--line);
  background: #fafafa;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
}

.checklist-item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: var(--muted);
}

.check {
  color: var(--muted);
  font-weight: 600;
}

.icon-upload-field {
  display: inline-grid;
  gap: 6px;
  justify-items: start;
  margin-bottom: 10px;
  position: relative;
}

.icon-upload-trigger {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 120ms ease, background 120ms ease;
}

.icon-upload-trigger img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.icon-upload-field .placeholder-label {
  padding: 0;
  background: transparent;
  border: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.icon-remove-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  padding: 0;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.16s ease, visibility 0.16s ease;
  position: absolute;
}

.icon-remove-button:hover,
.icon-remove-button:focus-visible {
  color: var(--ink);
}

.wireframe-section.selected .icon-remove-button {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  bottom: -18px;
}

.icon-upload-trigger:hover,
.icon-upload-trigger:focus-visible {
  border-color: var(--line-strong);
}

.three-column-card-media-choice .icon-upload-trigger:hover,
.three-column-card-media-choice .icon-upload-trigger:focus-visible,
.four-column-card-media-choice .icon-upload-trigger:hover,
.four-column-card-media-choice .icon-upload-trigger:focus-visible {
  border-color: transparent;
  background: rgba(0, 0, 0, 0.045);
}

.three-column-card-media-choice,
.four-column-card-media-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
  position: relative;
}

.three-column-icon-field,
.four-column-icon-field {
  margin-bottom: 0;
}

.three-column-card-media-or,
.four-column-card-media-or {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.three-column-upload-button,
.four-column-upload-button {
  min-height: 46px;
  padding-inline: 14px;
  text-transform: none;
  letter-spacing: 0;
  border-radius: 0;
}

.three-column-card-media-choice .placeholder-label,
.four-column-card-media-choice .placeholder-label,
.three-column-upload-button,
.four-column-upload-button {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
}

.four-column-card-media-choice {
  gap: 10px;
}

.four-column-upload-button {
  padding-inline: 12px;
}

.three-column-card-media,
.four-column-card-media {
  min-height: 200px;
  max-height: 200px;
  overflow: hidden;
  margin-bottom: 10px;
}

.three-column-card-media .image-controls,
.four-column-card-media .image-controls {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.wireframe-section.selected .three-column-card-media .image-controls,
.wireframe-section.selected .four-column-card-media .image-controls {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.four-column-card-media {
  min-height: 150px;
  max-height: 150px;
}

.three-column-card-media img,
.four-column-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-band {
  overflow: hidden;
}

.split-background-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  background: #fff;
}

.split-background-card {
  position: relative;
  min-height: 320px;
  border: 0;
  padding: 0;
  gap: 0;
  align-content: end;
}

.split-background-card + .split-background-card {
  border-left: 1px solid var(--line);
}

.split-background-media {
  position: absolute;
  inset: 0;
  min-height: 100%;
  border: 0;
}

.split-background-copy {
  position: relative;
  z-index: 1;
  min-height: 100%;
  padding: 200px 20px 20px;
  display: grid;
  align-content: end;
  justify-items: start;
  gap: 10px;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.8) 36%, rgba(255, 255, 255, 0.08) 100%);
}

.split-background-copy .wire-text,
.split-background-copy h4 {
  max-width: 100%;
}

.pricing-table {
  overflow: hidden;
}

.pricing-head,
.pricing-row {
  display: grid;
  grid-template-columns: 220px repeat(4, minmax(0, 1fr));
}

.pricing-cell,
.pricing-feature {
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.pricing-head .pricing-cell {
  background: #fafafa;
  font-weight: 600;
}

.pricing-plan {
  display: grid;
  justify-items: start;
  gap: 8px;
}

.faq-stack {
  grid-template-columns: 1fr;
}

.faq-table {
  display: grid;
  gap: 12px;
  padding: 15px;
}

.faq-row {
  display: grid;
  gap: 0;
  border: 1px solid var(--line-strong);
  background: #fff;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.faq-row.is-open {
  border-color: #cfcfcf;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.faq-question-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  min-width: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.faq-toggle-indicator {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  background: #f7f7f7;
  position: relative;
  flex: 0 0 auto;
}

.faq-toggle-indicator span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1px;
  background: var(--muted);
  transform: translate(-50%, -50%);
}

.faq-toggle-indicator span:last-child {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-row.is-open .faq-toggle-indicator span:last-child {
  opacity: 0;
}

.faq-answer {
  display: none;
  padding: 16px 58px;
  border-top: 1px solid var(--line);
}

.faq-answer.is-open {
  display: block;
}

.faq-question h4,
.faq-answer .wire-text {
  margin: 0;
  max-width: 100%;
}

.suggestion-diff-field {
  background: rgba(255, 247, 220, 0.5);
}

.suggestion-diff-added {
  background: rgba(255, 214, 102, 0.62);
  color: inherit;
  padding: 0 0.03em;
  border-radius: 0.2em;
}

.keyword-highlight-match {
  background: rgba(255, 214, 102, 0.5);
  color: inherit;
  padding: 0 0.04em;
  border-radius: 0.22em;
}

.tab-strip {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  border: 1px solid var(--line-strong);
  overflow: hidden;
}

.tab-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 0;
  padding: 11px 12px;
  border: 0;
  border-right: 1px solid var(--line-strong);
  border-radius: 0;
  background: #fff;
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
}

.tab-pill .editable-inline-field {
  width: fit-content;
  max-width: 100%;
}

.tab-pill .editable {
  display: block;
  width: fit-content;
  max-width: 100%;
}

.tab-pill:last-child {
  border-right: 0;
}

.tab-pill.is-active {
  background: #f3f3f3;
}

.tab-panel {
  padding: 0;
  display: grid;
  gap: 0;
  border-color: var(--line-strong);
}

.tab-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

.logos-grid {
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0;
}

.logo-chip {
  min-height: 74px;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line-strong);
  background: #fff;
  overflow: hidden;
  position: relative;
  padding-top: 20px;
}

.logo-chip:last-child {
  border-right: 0;
}

.logo-strip-head {
  min-height: 96px;
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--line-strong);
  padding: 20px 24px;
}

.logo-strip-head .wire-title {
  max-width: 60%;
  text-align: center;
}

.cta-box {
  width: 100%;
  min-height: 212px;
  margin: 0 auto;
  padding: 30px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 10px;
  text-align: center;
  position: relative;
}

.cta-media-label {
  color: var(--muted);
  font-size: 0.84rem;
}

.cta-image-upload {
  width: 100%;
}

.cta-image-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.meta-line {
  max-width: 100%;
      display: flex;
    flex-direction: column;
    gap: 15px;
}

.mini-note {
  color: var(--muted);
  font-size: 0.8rem;
}

.editable {
  display: block;
  max-width: 100%;
  min-width: 0;
  outline: none;
  padding: 0;
  margin: 0;
  transition: background 120ms ease, box-shadow 120ms ease;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  border-radius: 0px;
  min-width: fit-content;
  cursor: text;
}

.editable-field {
  position: relative;
  display: grid;
}

.editable-assist {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: stretch;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.16s ease, visibility 0.16s ease;
  width: max-content;
}

.rich-text-toolbar {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  top: -20px;
  position: absolute;
  transition: opacity 0.16s ease, visibility 0.16s ease;
  width: max-content;
  max-width: none;
  white-space: nowrap;
}

.rich-text-button {
  border: 0;
  border-radius: 0;
  background: #ececec;
  color: var(--ink);
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  pointer-events: auto;
  cursor: pointer;
  transition: background 0.16s ease;
}

.rich-text-button:hover {
  background: #e1e1e1;
}

.rich-text-button.is-active,
.rich-text-button[aria-pressed="true"],
.rich-text-button.has-link,
.rich-text-button.has-link:hover,
.rich-text-button.has-link:focus-visible {
  background: #102033;
  color: #fff;
}

.rich-text-button.is-active:hover,
.rich-text-button.is-active:focus-visible,
.rich-text-button[aria-pressed="true"]:hover,
.rich-text-button[aria-pressed="true"]:focus-visible {
  background: #102033;
  color: #fff;
}

.rich-text-button strong,
.rich-text-button em {
  font-size: inherit;
}

.editable-field.ai-writing::before,
.wireframe-section.ai-writing::after {
  content: "";
  position: absolute;
  inset: -2px;
  pointer-events: none;
  border-radius: 10px;
  background: linear-gradient(120deg, rgba(30, 144, 255, 0.08), rgba(255, 255, 255, 0.6), rgba(30, 144, 255, 0.08));
  background-size: 200% 100%;
  animation: aiShimmer 3s linear infinite;
}

.wireframe-section.ai-writing::after {
  inset: 0;
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(30, 144, 255, 0.35);
}

.wireframe-section.remote-sync-flash .wireframe-layout::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(30, 144, 255, 0.05), rgba(255, 255, 255, 0.78), rgba(30, 144, 255, 0.05));
  background-size: 200% 100%;
  box-shadow: inset 0 0 0 1px rgba(30, 144, 255, 0.32);
  animation: aiShimmer 3s linear;
}

.editable.ai-writing {
  box-shadow: inset 0 0 0 1px rgba(30, 144, 255, 0.45);
  background: rgba(30, 144, 255, 0.06);
}

.ai-inline-button:disabled,
.utility-button:disabled {
  cursor: no-drop;
  opacity: 1;
}

.editable-field.ai-applied::before,
.wireframe-section.ai-applied::after {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(34, 139, 34, 0.2), 0 0 0 10px rgba(34, 139, 34, 0.08);
  animation: aiAppliedPulse 1.2s ease forwards;
}

.wireframe-section.ai-applied::after {
  inset: 0;
  border-radius: 18px;
}

[data-hidden-in-preview="true"] {
  opacity: 0.3;
  transition: opacity 0.2s ease;
}

[data-hidden-in-preview="false"] {
  opacity: 1;
  transition: opacity 0.2s ease;
}

.wireframe-section.selected .editable {
  box-shadow: inset 0 0 0 1px #f4f4f4;
}

.editable:hover {
  background: #f4f4f4;
}

.editable:focus {
  background: #f4f4f4;
}

.editable-heading {
  font-weight: 700;
  line-height: 1.15;
}

.editable-heading h2,
.editable-heading h3,
.editable-heading p {
  margin: 0;
}

.editable-heading .text-normal {
  font-weight: 400;
}

.editable-heading-h2 {
  font-size: 2.4rem;
}

.editable-heading-h3 {
  font-size: 1.8rem;
}

.editable-heading-h4 {
  font-size: 1.35rem;
}

.editable-heading h2 {
  font-size: 2.4rem;
  line-height: 1.1;
}

.editable-heading h3 {
  font-size: 1.8rem;
  line-height: 1.12;
}

.wire-icon.editable,
.editable-button-label {
  padding: 0;
  margin: 0;
  display: flex;
}

.editable-button-field {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.wire-button-wrap {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
}

.suggestion-modal-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  padding-bottom: 18px;
  padding-right: 25px;
}

.editable[data-placeholder][data-empty="true"]::before {
  content: attr(data-placeholder);
  color: #9a9a9a;
}

.wireframe-section.selected .editable[data-empty="true"] {
  opacity: 0.55;
}

.wireframe-section.selected .editable[data-empty="true"]:focus {
  opacity: 1;
}

.editable-button-label {
  display: inline-block;
  min-width: 0;
  max-width: 100%;
  text-align: center;
  white-space: normal;
}

.ai-inline-button {
  border: 0;
  border-radius: 0;
  background: #ececec;
  color: var(--ink);
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  pointer-events: auto;
  cursor: pointer;
}

.ai-inline-button:hover,
.ai-inline-button:focus-visible {
  background: #e1e1e1;
}

.ai-inline-button.is-hidden {
  display: none;
}

.ai-inline-button.confirm-ai {
  background: dodgerblue;
  color: #fff;
}

.ai-inline-button.confirm-ai:hover,
.ai-inline-button.confirm-ai:focus-visible {
  background: #0a74da;
  color: #fff;
}

.editable-field.ai-writing .ai-inline-button,
.wireframe-section.ai-writing [data-section-ai-fill] {
  background: linear-gradient(120deg, #dfeeff, #f8fbff, #dfeeff);
  background-size: 200% 100%;
  color: dodgerblue;
  animation: aiShimmer 3s ease infinite;
}

.inline-limit {
  position: static;
  color: var(--muted);
  background: #f3f3f3;
  padding: 5px;
  border-radius: 0;
  width: fit-content;
  font-weight: 400;
  font-size: 11px;
  line-height: 1;
  transition: color 0.16s ease;
}

.inline-limit.maxed {
  color: #d10000;
  font-weight: 600;
}

.review-card {
  align-content: start;
}

.review-stars-placeholder {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  line-height: 1;
}

.review-quote {
  font-size: 1rem;
  line-height: 1.5;
}

.review-author {
  margin: 4px 0 0;
}

.gallery-card .media-placeholder,
.carousel-slide-card .media-placeholder {
  min-height: 220px;
}

.two-column-grid-card-media {
  min-height: 180px;
}

.gallery-upload-actions {
  display: none;
  justify-content: center;
  margin: 6px 0 22px;
}

.wireframe-section.selected .gallery-upload-actions {
  display: flex;
}

.gallery-upload-actions .image-controls {
  position: static;
  inset: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0;
  background: transparent;
  border: 0;
  opacity: 1;
  visibility: visible;
}

.carousel-gallery-viewport {
  overflow: hidden;
  width: 100%;
}

.carousel-gallery-stack {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
  width: calc(100% + 220px);
  margin-left: -110px;
  margin-right: -110px;
}

.carousel-slide-card {
  text-align: center;
}

.carousel-slide-card .wire-text {
  margin-left: auto;
  margin-right: auto;
  max-width: 90%;
}

.section-repeater-actions {
  display: flex;
  justify-content: center;
  margin-top: 18px;
  gap: 10px;
}

.section-add-column-button {
  min-width: fit-content;
}

.wireframe-section.selected .editable-field:hover .editable-assist,
.wireframe-section.selected .editable-field:focus-within .editable-assist,
.wireframe-section.selected .editable-field:focus-within .rich-text-toolbar {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.suggestion-editor-card .editable-field:hover .editable-assist,
.suggestion-editor-card .editable-field:focus-within .editable-assist,
.suggestion-editor-card .editable-field:focus-within .rich-text-toolbar {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.ai-rewrite-compare-after .editable-field:hover .editable-assist,
.ai-rewrite-compare-after .editable-field:focus-within .editable-assist,
.ai-rewrite-compare-after .editable-field:focus-within .rich-text-toolbar {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.editable-field.ai-writing .editable-assist {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.wireframe-section.selected .editable-field:hover .inline-limit,
.wireframe-section.selected .editable-field:focus-within .inline-limit {
  opacity: 1;
  visibility: visible;
}

.suggestion-editor-card .editable-field:hover .inline-limit,
.suggestion-editor-card .editable-field:focus-within .inline-limit {
  opacity: 1;
  visibility: visible;
}

.ai-rewrite-compare-after .editable-field:hover .inline-limit,
.ai-rewrite-compare-after .editable-field:focus-within .inline-limit {
  opacity: 1;
  visibility: visible;
}

.ai-review-dialog {
  width: min(1040px, calc(100vw - 48px));
  max-width: none;
}

.ai-rewrite-compare-dialog {
  width: min(980px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
}

.ai-rewrite-compare-intro {
  padding: 18px 24px 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.ai-rewrite-compare-content {
  min-height: 0;
  overflow-y: auto;
  padding: 20px 24px 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.ai-rewrite-compare-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  padding: 4px;
  border: 1px solid var(--line);
  background: #f7f7f7;
}

.ai-rewrite-compare-tab {
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.ai-rewrite-compare-tab:hover,
.ai-rewrite-compare-tab:focus-visible {
  color: var(--ink);
  background: #ececec;
}

.ai-rewrite-compare-tab.is-active {
  color: #fff;
  background: var(--ink);
}

.ai-rewrite-compare-pane {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fcfcfc;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  min-height: min(62vh, 640px);
}

.ai-rewrite-compare-pane-header {
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 8px;
  background: #fff;
}

.ai-rewrite-compare-pane-header h3 {
  margin: 0;
  font-size: 1rem;
}

.ai-rewrite-compare-pane-header .panel-copy {
  margin: 0;
}

.ai-rewrite-compare-stage {
  min-height: 0;
  overflow-y: auto;
  overflow-x: auto;
  padding: 16px;
}

.ai-rewrite-compare-stage .wireframe-layout {
  padding: 0;
  background: transparent;
  border: 0;
}

.ai-rewrite-compare-before .editable {
  cursor: default;
}

.ai-rewrite-compare-before .section-repeater-actions {
  display: none;
}

.ai-rewrite-compare-footer {
  padding: 0 24px 24px;
}

.ai-rewrite-compare-footer .ghost-button:last-child {
  background: var(--ink);
  color: #fff;
}

.ai-rewrite-compare-footer .ghost-button:last-child:hover,
.ai-rewrite-compare-footer .ghost-button:last-child:focus-visible {
  background: #111;
  color: #fff;
}

@media (max-width: 680px) {
  .ai-rewrite-compare-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
  }

  .ai-rewrite-compare-intro {
    padding: 14px 16px 0;
  }

  .ai-rewrite-compare-content {
    padding: 16px;
  }

  .ai-rewrite-compare-tabs {
    width: 100%;
  }

  .ai-rewrite-compare-tab {
    flex: 1 1 0;
    min-width: 0;
    white-space: normal;
  }

  .ai-rewrite-compare-pane {
    min-height: min(68vh, 620px);
  }

  .ai-rewrite-compare-footer {
    padding: 0 16px 16px;
  }
}

.ai-review-content {
  min-height: 0;
  max-height: min(70vh, 760px);
  overflow-y: auto;
  padding: 0;
  display: grid;
  gap: 0;
  background: #f7f7f7;
}

.ai-review-report {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.ai-review-empty {
  display: grid;
  gap: 18px;
  margin: 24px;
  padding: 24px;
  border: 1px solid #dedede;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.ai-review-empty h3 {
  margin: 0 0 8px;
  font-size: 1.28rem;
}

.ai-review-empty p:not(.eyebrow) {
  margin: 0;
  max-width: 620px;
  color: #3f3f3f;
  font-size: 0.94rem;
  line-height: 1.55;
}

.ai-review-empty .ghost-button {
  width: fit-content;
  background: var(--ink);
  color: #fff;
}

.ai-review-empty-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-review-empty-grid span {
  padding: 7px 10px;
  border: 1px solid #dedede;
  border-radius: 999px;
  background: #f8f8f8;
  color: #454545;
  font-size: 0.78rem;
  font-weight: 650;
}

.ai-review-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 20px;
  align-items: stretch;
  padding: 22px;
  border: 1px solid #dedede;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.ai-review-hero-copy {
  min-width: 0;
  display: grid;
  gap: 8px;
  align-content: start;
}

.ai-review-hero-copy h3 {
  margin: 0;
  font-size: 1.42rem;
  font-weight: 700;
  letter-spacing: 0;
}

.ai-review-hero-copy p:not(.eyebrow) {
  margin: 0;
  color: #3f3f3f;
  font-size: 0.95rem;
  line-height: 1.55;
}

.ai-review-hero-copy span {
  color: var(--muted);
  font-size: 0.78rem;
}

.ai-review-score-card {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  min-height: 148px;
  padding: 18px 14px;
  border: 1px solid #1f1f1f;
  border-radius: 8px;
  background: #171717;
  color: #fff;
  text-align: center;
}

.ai-review-score-card span,
.ai-review-score-card small,
.ai-review-metric span,
.ai-review-metric small,
.ai-review-section-heading span {
  color: #6f6f6f;
  font-size: 0.76rem;
}

.ai-review-score-card strong {
  color: #fff;
  font-size: 2.35rem;
  font-weight: 750;
  line-height: 1;
}

.ai-review-score-card span,
.ai-review-score-card small {
  color: rgba(255, 255, 255, 0.72);
}

.ai-review-score-card.score-good {
  border-color: #174b2a;
  background: #143822;
}

.ai-review-score-card.score-mid {
  border-color: #745116;
  background: #3e321b;
}

.ai-review-score-card.score-bad {
  border-color: #7c2d28;
  background: #40201f;
}

.ai-review-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.ai-review-metric {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 14px 15px;
  border: 1px solid #dedede;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.ai-review-metric strong {
  color: var(--ink);
  font-size: 1.18rem;
  font-weight: 750;
}

.ai-review-metric strong.score-good {
  color: #167c3b;
}

.ai-review-metric strong.score-mid {
  color: #a26800;
}

.ai-review-metric strong.score-bad {
  color: #c83b31;
}

.ai-review-fixes,
.ai-review-details {
  display: grid;
  gap: 10px;
}

.ai-review-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ai-review-section-heading .sidebar-step {
  margin: 0;
}

.ai-review-fix-list,
.ai-review-accordion-list {
  display: grid;
  gap: 12px;
}

.ai-review-fix-highlight {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border: 1px solid #dedede;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.ai-review-fix-highlight > span {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #171717;
  color: #fff;
  display: inline-grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 700;
}

.ai-review-fix-highlight strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 0.9rem;
}

.ai-review-fix-highlight p {
  margin: 0;
  color: #3f3f3f;
  font-size: 0.88rem;
  line-height: 1.5;
}

.ai-review-accordion {
  border: 1px solid #dedede;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.ai-review-accordion[open] {
  border-color: #cfcfcf;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.ai-review-accordion summary {
  cursor: pointer;
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
}

.ai-review-accordion summary:hover,
.ai-review-accordion summary:focus-visible {
  background: #f8f8f8;
}

.ai-review-accordion summary::-webkit-details-marker {
  display: none;
}

.ai-review-accordion summary::after {
  content: "+";
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 700;
}

.ai-review-accordion[open] summary::after {
  content: "-";
}

.ai-review-accordion-title {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.ai-review-accordion-title strong {
  color: var(--ink);
  font-size: 0.94rem;
}

.ai-review-accordion-title span {
  color: var(--muted);
  font-size: 0.78rem;
}

.ai-review-accordion summary .page-seo-score {
  margin-left: auto;
  white-space: nowrap;
}

.ai-review-accordion-body {
  display: grid;
  gap: 12px;
  padding: 0 16px 16px;
  border-top: 1px solid #ededed;
}

.ai-review-accordion-body > div:first-child {
  padding-top: 14px;
}

.ai-review-fix-card {
  display: grid;
  gap: 6px;
  padding: 13px 14px;
  border: 1px solid #d8e3dc;
  border-radius: 8px;
  background: #f7faf8;
}

.ai-review-fix-card p {
  margin: 0;
  color: #263a2d;
  font-size: 0.88rem;
  line-height: 1.48;
}

.ai-review-finding {
  gap: 10px;
}

.ai-review-finding-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ai-review-loading {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.ai-review-loading-card {
  display: grid;
  gap: 8px;
  padding: 20px 22px;
  border: 1px solid #dedede;
  border-radius: 8px;
  background: #fff;
}

.ai-review-loading-card h3 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: 0;
}

.ai-review-loading-lines {
  display: grid;
  gap: 10px;
}

.ai-loading-line {
  display: block;
  height: 10px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, #e1e1e1 0%, #f7f7f7 45%, #d9d9d9 100%);
  background-size: 220% 100%;
  animation: aiLoadingShimmer 1.15s ease-in-out infinite;
}

.ai-loading-line:nth-child(2) {
  animation-delay: 0.12s;
}

.ai-loading-line:nth-child(3) {
  animation-delay: 0.24s;
}

.ai-loading-line:nth-child(4) {
  animation-delay: 0.36s;
}

.ai-loading-line.long {
  width: 100%;
}

.ai-loading-line.medium {
  width: 72%;
}

.ai-loading-line.short {
  width: 48%;
}

@keyframes aiLoadingShimmer {
  0% {
    background-position: 120% 0;
  }

  100% {
    background-position: -120% 0;
  }
}

@media (max-width: 760px) {
  .ai-review-dialog {
    width: min(100vw - 24px, 980px);
  }

  .ai-review-content {
    padding: 16px;
  }

  .ai-review-hero {
    grid-template-columns: 1fr;
  }

  .ai-review-score-card {
    min-height: 116px;
  }

  .ai-review-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ai-review-accordion summary {
    grid-template-columns: 1fr;
  }

  .ai-review-accordion summary .page-seo-score {
    margin-left: 0;
    width: fit-content;
  }
}

@media (max-width: 520px) {
  .ai-review-metrics {
    grid-template-columns: 1fr;
  }

  .ai-review-fix-highlight {
    grid-template-columns: 1fr;
  }
}

@keyframes aiShimmer {
  0% {
    background-position: 200% 0;
  }
  50% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes canvasModeEnter {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
    filter: blur(7px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes modalBackdropEnter {
  0% {
    opacity: 0;
    backdrop-filter: blur(0);
  }
  100% {
    opacity: 1;
    backdrop-filter: blur(6px);
  }
}

@keyframes modalDialogExit {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
  100% {
    opacity: 0;
    transform: translateY(6px) scale(0.99);
    filter: blur(4px);
  }
}

@keyframes modalBackdropExit {
  0% {
    opacity: 1;
    backdrop-filter: blur(6px);
  }
  100% {
    opacity: 0;
    backdrop-filter: blur(0);
  }
}

@keyframes canvasModeWash {
  0% {
    opacity: 0;
    transform: scale(0.992);
  }
  30% {
    opacity: 0.95;
  }
  100% {
    opacity: 0;
    transform: scale(1);
  }
}

@keyframes pagePresenceAvatarIn {
  0% {
    opacity: 0;
    transform: scale(0.82);
    filter: blur(3px);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

@keyframes pagePresenceAvatarOut {
  0% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
  100% {
    opacity: 0;
    transform: scale(0.82);
    filter: blur(3px);
  }
}


@keyframes aiAppliedPulse {
  0% {
    opacity: 0;
    transform: scale(0.995);
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(1);
  }
}

.template-empty {
  padding: 16px;
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  text-align: center;
  background: #fff;
}

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

  .sidebar-resizer {
    display: none;
  }

  .workspace-toolbar {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .toolbar-panel-actions::after,
  .toolbar-panel-keyword::after {
    display: none;
  }

  .toolbar-panel-keyword,
  .toolbar-panel-metrics {
    justify-content: flex-start;
  }

  .metrics-group {
    flex-wrap: wrap;
  }

  .toolbar-cluster.toolbar-actions {
    width: fit-content;
  }

  .left-sidebar {
    position: static;
    max-height: none;
    border-bottom: 1px solid var(--line);
  }

  .sidebar-frame {
    height: auto;
  }

  .template-library {
    overflow: visible;
  }

  .sidebar-frame::before,
  .sidebar-frame::after,
  #sidebar-panel-layouts::before,
  #sidebar-panel-layouts::after,
  #project-panel-pages::before,
  #project-panel-pages::after {
    display: none;
  }

  .project-summary {
    grid-template-columns: 1fr;
  }

  .workspace {
    min-height: 70vh;
  }
}

@media (max-width: 860px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .app-shell,
  .workspace,
  .left-sidebar,
  .canvas,
  .sitemap-canvas,
  .page-stack {
    max-width: 100vw;
    min-width: 0;
    overflow-x: hidden;
  }

  .app-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .left-sidebar {
    position: static;
    height: auto;
    min-height: 0;
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: #fff;
  }

  .sidebar {
    min-height: 0;
  }

  .sidebar-frame {
    height: auto;
    min-height: 0;
    gap: 0;
    padding: 12px 12px 14px;
    background: #fff;
  }

  .legacy-sidebar-tabs,
  .legacy-project-subtabs,
  #sidebar-panel-layouts,
  .sidebar-library-card,
  .sidebar-page-footer,
  #new-page-btn {
    display: none !important;
  }

  .sidebar-hero {
    display: block;
    padding: 0 2px 12px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--line);
  }

  .sidebar-hero-copy {
    gap: 5px;
  }

  .sidebar-hero-kicker {
    gap: 6px;
  }

  .sidebar-hero .eyebrow {
    font-size: 0.66rem;
  }

  .sidebar-hero h1 {
    font-size: 1.05rem;
    line-height: 1.18;
  }

  .sidebar-hero .panel-copy {
    display: none;
  }

  #sidebar-panel-projects,
  #project-panel-pages,
  .page-manager,
  .page-manager-body,
  .page-manager-body-inner,
  .page-list-shell,
  .page-list {
    width: 100%;
    max-width: 100%;
  }

  .page-manager {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .page-manager-body.is-collapsed {
    grid-template-rows: 1fr;
    opacity: 1;
    pointer-events: auto;
  }

  .page-manager-body-inner {
    overflow: visible;
  }

  .page-list-shell {
    max-height: none;
    overflow: visible;
  }

  .sidebar-section-heading {
    padding: 0 2px 8px;
  }

  .sidebar-accordion-toggle {
    display: none;
  }

  .sidebar-step {
    font-size: 0.7rem;
  }

  .page-list-item {
    width: auto;
    max-width: 100%;
    margin-left: calc(var(--page-depth, 0) * 10px);
    padding: 9px 8px;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
  }

  .page-row-main,
  .page-row-left,
  .page-select-button,
  .page-row-leading,
  .page-title-display {
    min-width: 0;
    max-width: 100%;
  }

  .page-row-main {
    gap: 4px 8px;
  }

  .page-select-button {
    width: 100%;
    min-height: 28px;
  }

  .page-title-display {
    width: auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.9rem;
    line-height: 1.2;
  }

  .page-item-meta {
    gap: 4px;
  }

  .page-row-settings,
  .page-row-delete,
  .page-drag-hint {
    display: none !important;
  }

  .workspace {
    grid-template-rows: auto auto 1fr;
    min-height: 0;
  }

  .workspace-toolbar {
    position: static;
    z-index: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
    border-bottom: 1px solid var(--line);
    background: #fff;
    backdrop-filter: none;
  }

  .toolbar-panel {
    width: 100%;
    min-width: 0;
  }

  .toolbar-panel-actions {
    order: 1;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 10px;
    padding-right: 0;
  }

  .toolbar-panel-actions::after,
  .toolbar-panel-keyword {
    display: none !important;
  }

  .toolbar-actions {
    order: 2;
    width: auto;
    margin-left: auto;
    justify-content: flex-end;
  }

  .status-chip-menu {
    left: 0;
    width: min(280px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
  }

  #ai-review-btn,
  body:not(.can-manage-website) #file-dropdown {
    display: none !important;
  }

  body:not(.can-manage-website) .toolbar-actions {
    display: none !important;
  }

  #file-dropdown {
    margin-left: auto;
  }

  .toolbar-dropdown-trigger {
    width: 40px;
    height: 40px;
    min-width: 40px;
    padding: 0;
    display: grid;
    place-items: center;
    border-radius: 10px;
  }

  .toolbar-dropdown-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .mobile-menu-icon {
    display: block;
    width: 18px;
    height: 12px;
    border-top: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    position: relative;
  }

  .mobile-menu-icon::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 3px;
    border-top: 2px solid currentColor;
  }

  .toolbar-dropdown-menu {
    left: auto;
    right: 0;
    min-width: 190px;
  }

  .toolbar-dropdown-menu > :not(#website-settings-menu-btn) {
    display: none !important;
  }

  .toolbar-panel-metrics {
    order: 2;
  }

  .metrics-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
  }

  .metrics-group .insight-card:not(:first-child):not(.score-card) {
    display: none;
  }

  .insight-card {
    min-width: 0;
    width: 100%;
    padding: 9px 10px;
    border: 1px solid #ededed;
    border-radius: 8px;
    background: #fff;
  }

  .insight-card strong {
    font-size: 1rem;
  }

  .insight-card span {
    font-size: 0.58rem;
    letter-spacing: 0.08em;
  }

  .page-status-banner {
    position: static;
    top: auto;
  }

  .floating-controls,
  .section-toolbar,
  .editable-assist,
  .rich-text-toolbar,
  .inline-limit,
  .image-controls,
  .section-repeater-actions,
  .page-add-section-prompt {
    display: none !important;
  }

  .canvas {
    padding: 0;
    background: #fff;
  }

  .page-stack {
    width: 100%;
    padding: 24px 16px 40px;
  }

  .page-stack-title,
  .page-stack-title-input {
    font-size: 2.4rem !important;
    letter-spacing: 0;
    line-height: 1;
    margin-top: 0;
    overflow-wrap: anywhere;
  }

  .wireframe-section {
    padding: 24px 0 28px;
  }

  .wireframe-section.selected,
  .wireframe-section.locked-by-other {
    padding: 24px 0 28px;
    margin-bottom: 0;
    box-shadow: none;
  }

  .canvas.has-selection .wireframe-section:not(.selected)::after {
    display: none;
  }

  .wireframe-layout,
  .wireframe-layout *,
  .editable-field,
  .editable {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  img,
  video,
  iframe {
    max-width: 100%;
  }

  .canvas {
    padding: 18px;
  }

  .page-stack {
    padding: 28px 20px 40px;
  }

  .section-grid.two,
  .section-grid.asymmetric,
  .card-grid.cols-2,
  .card-grid.cols-3,
  .card-grid.cols-4,
  .stats-grid.cols-4,
  .contact-grid,
  .logos-grid,
  .tab-layout,
  .faq-row,
  .pricing-head,
  .pricing-row {
    grid-template-columns: 1fr;
  }

  .process-steps-grid.is-flex-layout,
  .featured-metrics-grid.is-flex-layout {
    display: grid;
    grid-template-columns: 1fr;
  }

  .split-box-even,
  .split-box-page-banner,
  .longform-split-box,
  .split-background-grid {
    grid-template-columns: 1fr;
  }

  .content-image-split > .split-panel.split-media-panel,
  .content-image-split.split-box-reversed > .split-panel.split-media-panel {
    order: 1;
    border-left: 0;
    border-top: 0;
  }

  .content-image-split > .split-panel.split-copy-panel,
  .content-image-split.split-box-reversed > .split-panel.split-copy-panel {
    order: 2;
    border-left: 0;
    border-top: 1px solid var(--line-strong);
  }

  .cta-box .wire-actions,
  .cta-box .wire-button-wrap {
    justify-content: center;
  }

  .split-panel + .split-panel,
  .faq-cell + .faq-cell,
  .logo-chip {
    border-left: 0;
    border-top: 1px solid var(--line-strong);
    border-right: 0;
  }

  .tab-strip {
    flex-wrap: wrap;
  }

  .toolbar-panel {
    width: 100%;
  }

  .toolbar-panel-actions {
    flex-wrap: wrap;
  }

  .toolbar-panel-actions .status-chip {
    width: auto;
  }

  .compact-field {
    min-width: 0;
  }

  .metrics-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 8px 12px;
  }

  .insight-card {
    min-width: 0;
    width: 100%;
    border-left: 0;
    padding-left: 0;
  }

  .wireframe-section {
    padding: 22px 0 26px;
  }

  .wire-title,
  .wire-text,
  .wire-heading-small {
    max-width: 100%;
  }

  .intro-title,
  .intro-text,
  .logo-strip-head .wire-title,
  .cta-box {
    max-width: 100%;
    width: 100%;
  }

  body.preview-mode .left-sidebar {
    display: block;
  }

  .workspace-toolbar .toolbar-panel-actions {
    flex-wrap: nowrap;
  }

  .workspace-toolbar .metrics-group {
    gap: 8px;
  }

  .workspace-toolbar .insight-card {
    padding: 9px 10px;
    border: 1px solid #ededed;
  }

  .canvas {
    padding: 0;
  }

  .page-stack {
    padding: 24px 16px 40px;
  }
}

@media print {
  body {
    background: #fff;
  }

  .left-sidebar,
  .workspace-toolbar,
  .floating-sitemap-button,
  .section-toolbar,
  .onboarding-overlay {
    display: none !important;
  }

  .app-shell,
  .workspace {
    display: block;
    min-height: auto;
  }

  .canvas,
  .sitemap-canvas {
    overflow: visible !important;
    padding: 0 !important;
    background: #fff !important;
  }

  .wireframe-section {
    break-inside: avoid;
  }
}

@media (max-width: 900px) {
  .session-tour-card {
    width: min(calc(100vw - 24px), 360px);
    padding: 20px 18px 16px;
  }
}
