:root {
  color: #0d0d0d;
  background: #f7f7f8;
  font-family: "DM Sans", Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  --ink: #0d0d0d;
  --muted: #6b7280;
  --line: #e5e7eb;
  --line-strong: #d1d5db;
  --surface: #ffffff;
  --soft: #f7f7f8;
  --accent: #4f6bff;
  --accent-dark: #394fd6;
  --accent-soft: #eef1ff;
  --sidebar: #0d0d0d;
  --sidebar-soft: #1a1a1a;
  --success: #168653;
  --shadow: 0 12px 34px rgb(13 13 13 / 8%);
}

* { box-sizing: border-box; }

html { min-width: 320px; min-height: 100%; scroll-behavior: smooth; }

body { margin: 0; min-height: 100vh; background: #f7f7f8; color: var(--ink); }

button, input, select { font: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

button { color: inherit; }

a { color: inherit; }

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 9px;
  color: #fff;
  background: var(--accent);
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus { transform: translateY(0); }

.icon { width: 20px; height: 20px; flex: 0 0 auto; }

.studio-shell { min-height: 100vh; display: grid; grid-template-columns: 252px minmax(0, 1fr); }

.sidebar {
  position: sticky;
  z-index: 50;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 25px 18px 18px;
  overflow-y: auto;
  color: #f9fafb;
  background:
    radial-gradient(circle at 20% 7%, rgb(79 107 255 / 20%), transparent 25%),
    linear-gradient(180deg, #111111, #090909 72%);
  border-right: 1px solid rgb(255 255 255 / 6%);
}

.brand-lockup { display: flex; align-items: center; gap: 10px; padding: 0 7px 23px; }
.sidebar-collapse-button { width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 auto; padding: 0; margin-left: auto; border: 1px solid rgb(255 255 255 / 10%); border-radius: 8px; color: #aeb8c2; background: rgb(255 255 255 / 5%); cursor: pointer; }
.sidebar-collapse-button:hover, .sidebar-collapse-button:focus-visible { color: #fff; background: rgb(255 255 255 / 10%); }
.sidebar-collapse-button .icon { width: 15px; height: 15px; transform: rotate(180deg); transition: transform 180ms ease; }

.brand-mark { width: 30px; height: 24px; display: block; object-fit: contain; filter: invert(1); }
.brand-name { font-size: 18px; font-weight: 760; letter-spacing: -.4px; }
.brand-product { margin-left: -4px; font-size: 12px; font-weight: 650; color: #aeb8ff; }

.workspace-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 26px;
  gap: 10px;
  align-items: center;
  padding: 10px;
  margin-bottom: 24px;
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 12px;
  background: rgb(255 255 255 / 5%);
}

.workspace-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #ffffff;
  background: #4f6bff;
  font-size: 13px;
  font-weight: 800;
}

.workspace-copy, .workspace-copy strong, .workspace-copy small { display: block; min-width: 0; }
.workspace-copy strong { overflow: hidden; color: #f9fafb; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.workspace-copy small { margin-top: 3px; color: #9ca3af; font-size: 10px; }

.main-nav { flex: 1; }
.nav-label { margin: 0 10px 9px; color: #737373; font-size: 10px; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
.main-nav ul { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav-link { display: flex; align-items: center; gap: 12px; min-height: 43px; padding: 0 12px; border-radius: 10px; color: #a3a3a3; text-decoration: none; font-size: 13px; font-weight: 560; transition: color 150ms ease, background 150ms ease, transform 150ms ease; }
.nav-link .icon { width: 18px; height: 18px; }
.nav-link:hover { color: #ffffff; background: rgb(255 255 255 / 6%); transform: translateX(1px); }
.nav-link.is-active { color: #fff; background: linear-gradient(90deg, #3448c8, #4f6bff); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 10%), 0 8px 20px rgb(0 0 0 / 16%); }
.nav-link.is-active .icon { color: #ffffff; }

.sidebar-footer { display: grid; gap: 9px; padding-top: 18px; }
.local-safety { display: flex; align-items: center; gap: 10px; padding: 11px 10px; border: 1px solid rgb(122 143 255 / 22%); border-radius: 11px; color: #c8d0ff; background: rgb(79 107 255 / 12%); }
.local-safety .icon { width: 16px; height: 16px; }
.local-safety span, .local-safety strong, .local-safety small { display: block; }
.local-safety strong { color: #eef0ff; font-size: 11px; }
.local-safety small { margin-top: 2px; color: #9ea9e8; font-size: 9px; }
.profile-card { width: 100%; display: grid; grid-template-columns: 32px minmax(0, 1fr) 18px; gap: 9px; align-items: center; padding: 9px 8px; border: 0; border-radius: 10px; color: #e5e7eb; background: transparent; text-align: left; cursor: pointer; }
.profile-card:hover { background: rgb(255 255 255 / 5%); }
.profile-card span:nth-child(2), .profile-card strong, .profile-card small { display: block; min-width: 0; }
.profile-card strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.profile-card small { margin-top: 2px; color: #9ca3af; font-size: 9px; text-transform: capitalize; }
.profile-card .icon { width: 16px; height: 16px; color: #737373; }
.profile-avatar { width: 32px; height: 32px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: #ffffff; background: #4f6bff; font-size: 10px; font-weight: 800; }

@media (min-width: 901px) {
  .studio-shell[data-sidebar-collapsed="true"] { grid-template-columns: 76px minmax(0, 1fr); }
  .studio-shell[data-sidebar-collapsed="true"] .sidebar { padding-inline: 10px; overflow: hidden; }
  .studio-shell[data-sidebar-collapsed="true"] .brand-lockup { justify-content: center; padding-inline: 0; }
  .studio-shell[data-sidebar-collapsed="true"] .brand-name,
  .studio-shell[data-sidebar-collapsed="true"] .brand-product,
  .studio-shell[data-sidebar-collapsed="true"] .workspace-copy,
  .studio-shell[data-sidebar-collapsed="true"] .workspace-card > .icon-button,
  .studio-shell[data-sidebar-collapsed="true"] .nav-label,
  .studio-shell[data-sidebar-collapsed="true"] .nav-link span,
  .studio-shell[data-sidebar-collapsed="true"] .local-safety span,
  .studio-shell[data-sidebar-collapsed="true"] .profile-card span:nth-child(2),
  .studio-shell[data-sidebar-collapsed="true"] .profile-card > .icon { display: none; }
  .studio-shell[data-sidebar-collapsed="true"] .brand-mark { width: 32px; }
  .studio-shell[data-sidebar-collapsed="true"] .sidebar-collapse-button { position: absolute; top: 62px; margin: 0; }
  .studio-shell[data-sidebar-collapsed="true"] .sidebar-collapse-button .icon { transform: rotate(0); }
  .studio-shell[data-sidebar-collapsed="true"] .workspace-card { grid-template-columns: 34px; justify-content: center; padding: 8px; margin-top: 32px; }
  .studio-shell[data-sidebar-collapsed="true"] .nav-link { justify-content: center; padding: 0; }
  .studio-shell[data-sidebar-collapsed="true"] .local-safety { justify-content: center; padding: 11px; }
  .studio-shell[data-sidebar-collapsed="true"] .profile-card { grid-template-columns: 32px; justify-content: center; padding-inline: 0; }
}

.studio-column { min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 68px; position: sticky; z-index: 40; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 32px; border-bottom: 1px solid var(--line); background: rgb(255 255 255 / 92%); backdrop-filter: blur(14px); }
.topbar-left, .topbar-actions { display: flex; align-items: center; gap: 12px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.breadcrumb span, .breadcrumb b { color: #8a958e; font-weight: 500; }
.breadcrumb b { font-size: 10px; }
.breadcrumb strong { font-weight: 680; }
.mobile-menu-button { display: none !important; }

.global-search { width: min(260px, 24vw); height: 36px; display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 0 9px 0 11px; border: 1px solid var(--line); border-radius: 9px; background: #f8faf9; color: #7f8b83; }
.global-search:focus-within { border-color: #70aa89; box-shadow: 0 0 0 3px rgb(8 122 71 / 10%); background: #fff; }
.global-search .icon { width: 16px; height: 16px; }
.global-search input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 11px; }
.global-search input::placeholder { color: #909a94; }
.global-search kbd { padding: 2px 5px; border: 1px solid #d9e0dc; border-radius: 4px; color: #8c9790; background: #fff; font-family: inherit; font-size: 8px; box-shadow: 0 1px 1px rgb(0 0 0 / 4%); }
.preview-pill { height: 27px; display: inline-flex; align-items: center; gap: 6px; padding: 0 9px; border: 1px solid #cfe4d7; border-radius: 999px; color: #23714a; background: #f1faf5; font-size: 9px; font-weight: 700; white-space: nowrap; }
.preview-pill span { width: 6px; height: 6px; border-radius: 50%; background: #2faf65; box-shadow: 0 0 0 3px rgb(47 175 101 / 13%); }

.button { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 14px; border: 1px solid transparent; border-radius: 9px; text-decoration: none; font-size: 11px; font-weight: 700; line-height: 1; cursor: pointer; transition: background 150ms ease, border 150ms ease, color 150ms ease, transform 150ms ease, box-shadow 150ms ease; }
.button:hover { transform: translateY(-1px); }
.button .icon { width: 15px; height: 15px; }
.button-primary { color: #fff; background: var(--accent); box-shadow: 0 5px 12px rgb(8 122 71 / 18%); }
.button-primary:hover { background: var(--accent-dark); box-shadow: 0 7px 16px rgb(8 122 71 / 22%); }
.button-secondary { border-color: var(--line-strong); color: #36423b; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / 3%); }
.button-secondary:hover { border-color: #aebcb3; background: #f9fbfa; }
.button-danger { color: #ffffff; background: #b42318; box-shadow: 0 5px 12px rgb(180 35 24 / 18%); }
.button-danger:hover { background: #912018; box-shadow: 0 7px 16px rgb(180 35 24 / 23%); }
.button-light { color: #145332; background: #f2fff7; }
.button-light:hover { background: #fff; }
.button-ghost-light { border-color: rgb(255 255 255 / 26%); color: #e8f7ed; background: rgb(255 255 255 / 7%); }
.button-ghost-light:hover { background: rgb(255 255 255 / 13%); }
.button-icon { padding: 0 12px; }
.button:disabled { opacity: .58; cursor: wait; transform: none; }

.icon-button { width: 36px; height: 36px; display: inline-grid; place-items: center; flex: 0 0 auto; padding: 0; border: 1px solid transparent; border-radius: 9px; color: #5e6b63; background: transparent; cursor: pointer; }
.icon-button:hover { border-color: var(--line); color: var(--ink); background: #f7faf8; }
.icon-button .icon { width: 18px; height: 18px; }
.icon-button.compact { width: 26px; height: 26px; }
.icon-button.compact .icon { width: 14px; height: 14px; }

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex="0"]:focus-visible { outline: 3px solid rgb(41 85 243 / 32%); outline-offset: 2px; }

.studio-main { width: 100%; max-width: 1510px; margin: 0 auto; padding: 35px 34px 60px; outline: none; }
.page-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 26px; }
.page-heading h1 { margin: 3px 0 7px; color: #16231b; font-size: clamp(25px, 2.2vw, 34px); line-height: 1.08; letter-spacing: -.035em; }
.page-heading > div > p:last-child { max-width: 680px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.eyebrow { margin: 0; color: var(--accent); font-size: 9px; font-weight: 780; letter-spacing: .12em; text-transform: uppercase; }
.page-actions { display: flex; gap: 10px; }

.hero-card { min-height: 280px; position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); overflow: hidden; border-radius: 19px; color: #fff; background: linear-gradient(118deg, #0b4429 0%, #09643a 48%, #117b49 100%); box-shadow: 0 18px 46px rgb(8 72 40 / 17%); }
.hero-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 76% 10%, rgb(177 255 207 / 15%), transparent 31%), linear-gradient(90deg, transparent, rgb(255 255 255 / 3%)); }
.hero-copy { position: relative; z-index: 2; align-self: center; padding: 39px 42px; }
.hero-kicker { display: inline-flex; align-items: center; min-height: 23px; padding: 0 9px; border: 1px solid rgb(183 239 203 / 23%); border-radius: 999px; color: #c7efd5; background: rgb(255 255 255 / 7%); font-size: 9px; font-weight: 720; letter-spacing: .06em; text-transform: uppercase; }
.hero-copy h2 { max-width: 660px; margin: 14px 0 10px; font-size: clamp(25px, 3vw, 40px); line-height: 1.05; letter-spacing: -.045em; }
.hero-copy p { max-width: 520px; margin: 0; color: #c6dfd0; font-size: 12px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 23px; }
.hero-visual { position: relative; min-height: 280px; display: grid; place-items: center; overflow: hidden; }
.hero-visual::after { content: ""; position: absolute; width: 210px; height: 50px; bottom: 46px; border-radius: 50%; background: rgb(1 36 19 / 25%); filter: blur(10px); }
.hero-orbit { position: absolute; border: 1px solid rgb(187 236 203 / 15%); border-radius: 50%; }
.orbit-one { width: 340px; height: 340px; }
.orbit-two { width: 230px; height: 230px; }
.hero-product { position: relative; z-index: 2; width: 132px; height: 150px; display: grid; place-items: center; border: 1px solid rgb(255 255 255 / 18%); border-radius: 23px; background: linear-gradient(145deg, rgb(255 255 255 / 20%), rgb(255 255 255 / 7%)); box-shadow: inset 0 1px 0 rgb(255 255 255 / 22%), 0 24px 42px rgb(0 30 14 / 23%); transform: rotate(4deg); backdrop-filter: blur(5px); }
.hero-cube .icon { width: 68px; height: 68px; color: #dcf7e5; stroke-width: 1.2; }
.hero-product-label { position: absolute; right: -8px; top: 13px; min-width: 31px; padding: 5px 7px; border-radius: 6px; color: #134a2d; background: #ddfae7; font-size: 8px; font-weight: 800; box-shadow: 0 5px 12px rgb(0 0 0 / 12%); }
.hero-progress { position: absolute; z-index: 3; right: 25px; bottom: 21px; width: 170px; padding: 10px 12px; border: 1px solid rgb(255 255 255 / 14%); border-radius: 9px; color: #d9eee1; background: rgb(8 51 29 / 60%); backdrop-filter: blur(8px); }
.hero-progress span { display: flex; justify-content: space-between; font-size: 9px; }
.hero-progress strong { color: #fff; }
.hero-progress progress, .progress-cell progress { height: 4px; display: block; overflow: hidden; margin-top: 7px; border: 0; border-radius: 99px; appearance: none; background: rgb(255 255 255 / 15%); }
.hero-progress progress::-webkit-progress-bar, .progress-cell progress::-webkit-progress-bar { border-radius: 99px; background: rgb(255 255 255 / 15%); }
.hero-progress progress::-webkit-progress-value { border-radius: 99px; background: #78dda0; }
.hero-progress progress::-moz-progress-bar { border-radius: 99px; background: #78dda0; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin: 17px 0; }
.metric-card { min-height: 112px; display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 3px 14px rgb(26 48 34 / 3%); }
.metric-card > div { min-width: 0; }
.metric-card small, .metric-card strong, .metric-card p { display: block; }
.metric-card small { color: #69766e; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.metric-card strong { margin-top: 4px; font-size: 24px; letter-spacing: -.03em; }
.metric-card p { overflow: hidden; margin: 3px 0 0; color: #8a958e; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.metric-icon { width: 39px; height: 39px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 11px; }
.metric-icon .icon { width: 18px; height: 18px; }
.metric-icon.green { color: #137449; background: #e8f6ee; }
.metric-icon.blue { color: #315f8d; background: #edf4fb; }
.metric-icon.purple { color: #6b56a0; background: #f3effb; }
.metric-icon.amber { color: #9a6525; background: #fbf2e7; }

.content-grid { display: grid; gap: 17px; }
.content-grid.two-one { grid-template-columns: minmax(0, 1.65fr) minmax(280px, .75fr); }
.panel { border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: 0 4px 18px rgb(30 53 38 / 3%); }
.empty-state { min-width: 0; padding: 20px; }
.empty-state h1, .empty-state h2 { margin: 13px 0 8px; }
.empty-state p { max-width: 720px; margin: 0 0 15px; overflow-wrap: anywhere; color: var(--muted); line-height: 1.5; }
.empty-state > .button { width: fit-content; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 20px 21px 15px; }
.panel-heading h2 { margin: 3px 0 0; font-size: 15px; letter-spacing: -.02em; }
.panel-heading > a { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-size: 9px; font-weight: 700; text-decoration: none; }
.panel-heading > a .icon { width: 13px; height: 13px; }
.activity-list { margin: 0; padding: 0 21px 13px; list-style: none; }
.activity-item { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 11px; align-items: start; padding: 13px 0; border-top: 1px solid #edf1ee; }
.activity-dot { width: 8px; height: 8px; margin-top: 4px; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 2px currentColor; }
.activity-dot.tone-green { color: #38a668; background: #38a668; }
.activity-dot.tone-blue { color: #5488ba; background: #5488ba; }
.activity-dot.tone-amber { color: #d49a4f; background: #d49a4f; }
.activity-item strong { display: block; font-size: 11px; }
.activity-item p { margin: 3px 0 0; color: #7a867f; font-size: 9px; line-height: 1.45; }
.activity-item time { color: #9ba49e; font-size: 8px; }
.setup-score { min-width: 34px; padding: 5px 7px; border-radius: 99px; color: var(--accent); background: var(--accent-soft); font-size: 9px; font-weight: 800; text-align: center; }
.setup-list { display: grid; gap: 0; margin: 0; padding: 0 21px 17px; list-style: none; }
.setup-list li { min-height: 49px; display: grid; grid-template-columns: 25px 1fr; gap: 10px; align-items: center; border-top: 1px solid #edf1ee; }
.setup-list li > span { width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid #d8e0db; border-radius: 50%; color: #87938c; font-size: 8px; font-weight: 800; }
.setup-list li > span .icon { width: 12px; height: 12px; }
.setup-list li.is-done > span { border-color: #bfe3cd; color: #13824c; background: #ecf8f1; }
.setup-list strong, .setup-list small { display: block; }
.setup-list strong { font-size: 10px; }
.setup-list small { margin-top: 2px; color: #8a958e; font-size: 8px; }

.table-panel { overflow: hidden; }
.table-toolbar { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.table-toolbar > div:first-child { display: flex; align-items: baseline; gap: 9px; }
.table-toolbar h2 { margin: 0; font-size: 14px; }
.table-toolbar > div:first-child span { color: #929c96; font-size: 9px; }
.table-tools { display: flex; align-items: center; gap: 8px; }
.table-search { width: 215px; height: 36px; display: grid; grid-template-columns: 17px minmax(0, 1fr); gap: 8px; align-items: center; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; color: #849088; background: #fafcfb; }
.table-search:focus-within { border-color: #70aa89; box-shadow: 0 0 0 3px rgb(8 122 71 / 10%); background: #fff; }
.table-search .icon { width: 15px; height: 15px; }
.table-search input { min-width: 0; border: 0; outline: 0; background: transparent; font-size: 10px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { height: 36px; padding: 0 18px; color: #849088; background: #f8faf9; font-size: 8px; font-weight: 780; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
td { height: 68px; padding: 9px 18px; border-top: 1px solid #edf1ee; color: #5e6a63; font-size: 9px; white-space: nowrap; }
tbody tr:hover { background: #fbfdfc; }
.config-name { min-width: 205px; display: flex; align-items: center; gap: 11px; }
.config-name > span:last-child, .config-name strong, .config-name small { display: block; min-width: 0; }
.config-name strong { overflow: hidden; max-width: 220px; color: var(--ink); font-size: 10px; text-overflow: ellipsis; }
.config-name small { margin-top: 3px; color: #919b95; font-size: 8px; }
.config-thumb { width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; }
.config-thumb .icon { width: 20px; height: 20px; }
.thumb-3d { color: #285b7c; background: linear-gradient(145deg, #edf6fb, #dbeaf2); }
.thumb-2d { color: #9b5e36; background: linear-gradient(145deg, #fbf4ed, #f2e1d3); }
.thumb-gallery { color: #6a4f8f; background: linear-gradient(145deg, #f7f2fb, #e8dcf2); }
.thumb-published { color: #247249; background: linear-gradient(145deg, #eff9f3, #dcefe4); }
.status-badge { min-height: 23px; display: inline-flex; align-items: center; gap: 6px; padding: 0 8px; border-radius: 999px; font-size: 8px; font-weight: 730; text-transform: capitalize; }
.status-badge > span { width: 5px; height: 5px; border-radius: 50%; }
.status-published { color: #177046; background: #eaf7ef; }
.status-published > span { background: #2daf67; }
.status-ready { color: #3d668c; background: #edf4fa; }
.status-ready > span { background: #5c8eb9; }
.status-draft { color: #78694e; background: #f5f1e9; }
.status-draft > span { background: #a99469; }
.mode-badge, .version-chip, .role-chip { display: inline-flex; align-items: center; justify-content: center; min-width: 31px; min-height: 22px; padding: 0 7px; border: 1px solid var(--line); border-radius: 6px; color: #607068; background: #f8faf9; font-size: 8px; font-weight: 750; }
.mode-gallery { color: #71548f; border-color: #e1d8e9; background: #f8f4fb; }
.progress-cell { min-width: 120px; }
.progress-cell span { display: inline-block; width: 28px; color: #6d7971; }
.progress-cell progress { width: 60px; display: inline-block; margin: 0; vertical-align: middle; background: #e7ede9; }
.progress-cell progress::-webkit-progress-bar { background: #e7ede9; }
.progress-cell progress::-webkit-progress-value { border-radius: 99px; background: #52b879; }
.progress-cell progress::-moz-progress-bar { border-radius: 99px; background: #52b879; }
.row-actions { width: 52px; padding-left: 5px; padding-right: 10px; text-align: right; }
.row-actions .icon-button { width: 30px; height: 30px; }
.row-action-group { display: inline-flex; align-items: center; justify-content: flex-end; gap: 2px; }
.discard-action { color: #9a3b32; }
.discard-action:hover { border-color: #f0d2ce; color: #b42318; background: #fff5f4; }
td code { padding: 4px 6px; border-radius: 5px; color: #5e6c64; background: #f2f5f3; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 8px; }
.empty-inline { min-height: 150px; display: grid; justify-items: center; align-content: center; gap: 6px; color: #89958d; }
.empty-inline .icon { width: 25px; height: 25px; }
.empty-inline strong { color: #536158; font-size: 11px; }

.storage-banner, .info-banner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 16px 19px; margin-bottom: 17px; border: 1px solid #d7e7dd; border-radius: 14px; background: linear-gradient(90deg, #f7fbf8, #f0f8f3); }
.storage-banner > div:first-child { display: flex; align-items: center; gap: 12px; }
.storage-banner strong, .storage-banner p { display: block; margin: 0; }
.storage-banner strong { font-size: 11px; }
.storage-banner p { margin-top: 3px; color: #758179; font-size: 9px; }
.storage-meter { width: min(320px, 35%); }
.storage-meter span { display: flex; justify-content: flex-end; color: #7f8b83; font-size: 8px; }
.storage-meter span b { display: inline; height: auto; margin-right: 3px; color: #4e5d54; background: none; }
.storage-meter i { height: 5px; background: #dce7e0; }
.storage-meter i b { width: 10.1%; background: #49ac70; }
.asset-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.asset-card { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 4px 14px rgb(25 48 32 / 3%); transition: border 150ms ease, transform 150ms ease, box-shadow 150ms ease; }
.asset-card:hover { border-color: #c6d4cb; transform: translateY(-2px); box-shadow: var(--shadow); }
.asset-preview { height: 160px; position: relative; display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.asset-preview::before, .asset-preview::after { content: ""; position: absolute; border-radius: 50%; filter: blur(1px); }
.asset-preview::before { width: 150px; height: 150px; top: -50px; right: -30px; background: rgb(255 255 255 / 35%); }
.asset-preview::after { width: 120px; height: 40px; bottom: 18px; background: rgb(19 44 29 / 10%); filter: blur(10px); }
.asset-preview > span { z-index: 2; width: 70px; height: 70px; display: grid; place-items: center; border: 1px solid rgb(255 255 255 / 52%); border-radius: 18px; color: rgb(27 61 41 / 65%); background: rgb(255 255 255 / 38%); box-shadow: 0 15px 25px rgb(32 55 39 / 10%); backdrop-filter: blur(7px); }
.asset-preview > span .icon { width: 35px; height: 35px; stroke-width: 1.4; }
.asset-preview > small { position: absolute; z-index: 2; right: 10px; bottom: 9px; padding: 4px 6px; border-radius: 5px; color: #435148; background: rgb(255 255 255 / 75%); font-size: 7px; font-weight: 800; }
.asset-preview.tone-ocean { background: linear-gradient(145deg, #e6f3f6, #bdd7df); }
.asset-preview.tone-forest { background: linear-gradient(145deg, #e6f2ea, #bcd5c5); }
.asset-preview.tone-clay { background: linear-gradient(145deg, #f5ece3, #ddc6ae); }
.asset-preview.tone-stone { background: linear-gradient(145deg, #f1f2f1, #d4d8d5); }
.asset-preview.tone-sun { background: linear-gradient(145deg, #f8f0dc, #e7d4a4); }
.asset-preview.tone-ink { background: linear-gradient(145deg, #e4e8e6, #b5bfba); }
.asset-meta { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 13px; }
.asset-meta strong, .asset-meta span { display: block; }
.asset-meta strong { font-size: 10px; }
.asset-meta span { margin-top: 3px; color: #89948e; font-size: 8px; }
.info-banner { justify-content: flex-start; color: #1e6943; }
.info-banner > .icon { width: 21px; height: 21px; }
.info-banner strong { font-size: 10px; }
.info-banner p { margin: 3px 0 0; color: #63806e; font-size: 9px; line-height: 1.45; }

.integration-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.integration-card { min-height: 255px; display: flex; flex-direction: column; align-items: flex-start; padding: 21px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: 0 4px 16px rgb(31 52 38 / 3%); }
.integration-logo { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; font-size: 15px; font-weight: 850; }
.integration-wordpress { color: #23658a; background: #eaf3f8; }
.integration-api { color: #156a43; background: #e9f6ee; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.integration-shopify { color: #668f3e; background: #f0f6e9; }
.integration-copy { width: 100%; flex: 1; margin: 18px 0; }
.integration-copy > div { display: flex; align-items: start; justify-content: space-between; gap: 8px; }
.integration-copy h2 { margin: 0; font-size: 13px; }
.integration-copy p { margin: 9px 0 0; color: #748078; font-size: 9px; line-height: 1.6; }
.integration-state { padding: 4px 6px; border-radius: 99px; font-size: 7px; font-weight: 780; text-transform: capitalize; }
.state-connected { color: #167146; background: #e8f6ee; }
.state-available { color: #3f668b; background: #edf4fa; }
.state-planned { color: #7a6b52; background: #f3f0e9; }
.api-panel { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 22px; margin-top: 17px; }
.api-panel h2 { margin: 4px 0 6px; font-size: 14px; }
.api-panel p:last-child { max-width: 700px; margin: 0; color: #758179; font-size: 9px; line-height: 1.55; }
.api-panel > code { padding: 10px 12px; border: 1px solid #dfe5e1; border-radius: 8px; color: #24704a; background: #f3f8f5; font-size: 9px; white-space: nowrap; }
.connector-management { display: grid; gap: 16px; padding: 22px; margin-top: 17px; }
.connector-management-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; }
.connector-management-heading h2 { margin: 4px 0 6px; font-size: 17px; }
.connector-management-heading p:last-child { max-width: 720px; margin: 0; color: #758179; font-size: 9px; line-height: 1.55; }
.connector-security-state { display: inline-flex; align-items: center; gap: 6px; padding: 7px 9px; border-radius: 999px; color: #28734c; background: #eaf6ee; font-size: 8px; font-weight: 780; white-space: nowrap; }
.connector-security-state .icon, .connector-management-note .icon { width: 12px; height: 12px; }
.connector-site-list, .connector-binding-list { display: grid; gap: 9px; }
.connector-site-row { display: grid; grid-template-columns: minmax(210px, 1fr) minmax(260px, 1.15fr) auto; gap: 16px; align-items: center; padding: 14px; border: 1px solid #dde4df; border-radius: 11px; background: #fafcfb; }
.connector-site-row small, .connector-site-row strong, .connector-site-row code, .connector-binding-row small, .connector-binding-row strong, .connector-binding-row code { display: block; }
.connector-site-row small, .connector-binding-row small { color: #7b867f; font-size: 7px; font-weight: 760; text-transform: uppercase; }
.connector-site-row strong, .connector-binding-row strong { margin-top: 4px; font-size: 10px; }
.connector-site-row code, .connector-binding-row code { max-width: 100%; margin-top: 4px; overflow: hidden; color: #65716a; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.connector-site-row dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.connector-site-row dl div { padding: 8px; border-radius: 8px; background: #fff; }
.connector-site-row dt { color: #7b867f; font-size: 7px; }.connector-site-row dd { margin: 4px 0 0; font-size: 9px; font-weight: 780; }
.connector-binding-row { display: grid; grid-template-columns: minmax(150px, .65fr) minmax(190px, 1fr) minmax(190px, 1fr) auto auto; gap: 13px; align-items: center; padding: 12px 14px; border: 1px solid #e2e6e3; border-radius: 10px; background: #fff; }
.connector-management-note { display: flex; align-items: center; gap: 7px; margin: 0; color: #68736c; font-size: 8px; }

.settings-layout { display: grid; grid-template-columns: 180px minmax(0, 780px); gap: 18px; align-items: start; }
.settings-nav { position: sticky; top: 92px; display: grid; gap: 3px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.settings-nav a { padding: 9px 10px; border-radius: 7px; color: #6e7a72; font-size: 9px; font-weight: 650; text-decoration: none; }
.settings-nav a:hover, .settings-nav a.is-active { color: #176b43; background: #edf7f1; }
.settings-content { display: grid; gap: 15px; }
.settings-form { padding: 21px; }
.form-heading { padding-bottom: 17px; margin-bottom: 17px; border-bottom: 1px solid var(--line); }
.form-heading h2 { margin: 0; font-size: 14px; }
.form-heading p { margin: 5px 0 0; color: #7a867e; font-size: 9px; }
.settings-form > label { display: grid; gap: 7px; margin-top: 15px; }
.settings-form > label > span, .settings-form legend { color: #4d5a52; font-size: 9px; font-weight: 700; }
.settings-form input, .settings-form select, .create-dialog input, .create-dialog select { width: 100%; height: 39px; padding: 0 11px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--ink); background: #fff; font-size: 10px; }
.settings-form input:focus, .settings-form select:focus, .create-dialog input:focus { border-color: #70aa89; outline: 0; box-shadow: 0 0 0 3px rgb(8 122 71 / 10%); }
.settings-form input[readonly] { color: #758178; background: #f7f9f8; }
.settings-form label small { color: #8a958f; font-size: 8px; }
.copy-field { display: grid; grid-template-columns: 1fr auto; }
.copy-field input { border-radius: 8px 0 0 8px; }
.copy-field button { padding: 0 12px; border: 1px solid var(--line-strong); border-left: 0; border-radius: 0 8px 8px 0; color: var(--accent); background: #f8fbf9; font-size: 9px; font-weight: 750; cursor: pointer; }
.form-actions { display: flex; justify-content: flex-end; padding-top: 17px; margin-top: 19px; border-top: 1px solid var(--line); }
.member-row { display: flex; align-items: center; gap: 10px; }
.member-row > div { flex: 1; }
.member-row strong, .member-row small { display: block; }
.member-row strong { font-size: 10px; }
.member-row small { margin-top: 3px; color: #89948d; font-size: 8px; }
.role-chip { color: #166b43; border-color: #cde2d5; background: #eef8f2; }
.security-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; color: #59665e; font-size: 9px; }
.security-list li { display: flex; align-items: center; gap: 8px; }
.security-list .icon { width: 15px; height: 15px; color: #18804e; }

.create-dialog { width: min(540px, calc(100vw - 30px)); padding: 0; border: 0; border-radius: 17px; color: var(--ink); background: #fff; box-shadow: 0 30px 90px rgb(4 26 14 / 30%); }
.create-dialog::backdrop { background: rgb(8 27 17 / 58%); backdrop-filter: blur(4px); }
.create-dialog form { padding: 24px; }
.dialog-heading { display: flex; justify-content: space-between; align-items: start; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.dialog-heading h2 { margin: 4px 0 6px; font-size: 21px; letter-spacing: -.03em; }
.dialog-heading p:last-child { max-width: 420px; margin: 0; color: #758179; font-size: 9px; line-height: 1.5; }
.create-dialog form > label { display: grid; gap: 7px; margin: 19px 0; }
.create-dialog form > label span, .create-dialog legend { color: #4d5b52; font-size: 9px; font-weight: 720; }
.create-dialog form > label small { color: #7d8993; font-size: 8px; line-height: 1.45; }
.create-dialog fieldset { margin: 0; padding: 0; border: 0; }
.create-dialog legend { margin-bottom: 8px; }
.builder-start-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 18px !important; }
.builder-start-modes legend { grid-column: 1 / -1; }
.builder-start-modes label { position: relative; cursor: pointer; }
.builder-start-modes input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.builder-start-modes label > span { display: grid; align-content: center; gap: 4px; min-height: 74px; padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.builder-start-modes strong, .builder-start-modes small { display: block; }
.builder-start-modes strong { color: var(--ink); font-size: 9px; }
.builder-start-modes small { color: var(--muted); font-size: 8px; line-height: 1.4; }
.builder-start-modes input:checked + span { border-color: var(--accent); background: #f4f6ff; box-shadow: inset 0 0 0 1px var(--accent); }
.builder-start-modes input:focus-visible + span { outline: 3px solid rgb(79 107 255 / 20%); outline-offset: 2px; }
.create-dialog [data-start-mode-fields] { display: grid; gap: 15px; margin: 19px 0; }
.create-dialog [data-start-mode-fields] label { display: grid; gap: 7px; }
.create-dialog [data-start-mode-fields] span { color: #4d5b52; font-size: 9px; font-weight: 720; }
.create-dialog [data-start-mode-fields][hidden] { display: none; }
.mode-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mode-options label { position: relative; cursor: pointer; }
.mode-options input { position: absolute; opacity: 0; pointer-events: none; }
.mode-options label > span { min-height: 84px; display: grid; justify-items: start; align-content: center; gap: 4px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; color: #657169; background: #fbfcfb; }
.mode-options label > span .icon { width: 19px; height: 19px; margin-bottom: 2px; }
.mode-options strong { color: #344138; font-size: 10px; }
.mode-options small { font-size: 8px; }
.mode-options input:checked + span { border-color: #62a47e; color: var(--accent); background: #f0f9f4; box-shadow: 0 0 0 2px rgb(8 122 71 / 8%); }
.mode-options input:focus-visible + span { outline: 3px solid rgb(8 122 71 / 20%); outline-offset: 2px; }
.creation-direction { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 11px 12px; margin-top: 18px; border: 1px solid #cfd6ff; border-radius: 10px; color: #334194; background: #f5f7ff; }
.creation-direction > .icon { width: 22px; height: 22px; }
.creation-direction strong, .creation-direction small { display: block; }
.creation-direction strong { color: #151c4f; font-size: 10px; }
.creation-direction small { margin-top: 3px; color: #6a73a7; font-size: 8px; }
.creation-direction > span { padding: 5px 7px; border-radius: 999px; color: #3048bb; background: #e6ebff; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.dialog-note { display: flex; align-items: center; gap: 8px; padding: 10px; margin-top: 16px; border-radius: 8px; color: #64736a; background: #f3f7f4; font-size: 8px; }
.dialog-note .icon { width: 14px; height: 14px; color: #278256; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.discard-dialog { width: min(500px, calc(100vw - 30px)); }
.discard-dialog .dialog-heading p strong { color: #0d0d0d; }

.toast { position: fixed; z-index: 150; right: 20px; bottom: 20px; width: min(390px, calc(100vw - 40px)); display: grid; grid-template-columns: 24px minmax(0, 1fr) 26px; align-items: center; gap: 9px; padding: 11px 11px 11px 13px; border: 1px solid #bddfc9; border-radius: 11px; color: #27523a; background: #f6fff9; box-shadow: 0 16px 40px rgb(13 53 29 / 18%); animation: toast-in 180ms ease-out; }
.toast[hidden] { display: none; }
.toast > span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #29905a; }
.toast > span .icon { width: 13px; height: 13px; }
.toast p { margin: 0; font-size: 9px; font-weight: 650; line-height: 1.45; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

.sidebar-scrim { display: none; }

.read-back { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 11px; color: #617067; font-size: 9px; font-weight: 700; }
.read-back a, .read-back > span { display: inline-flex; align-items: center; gap: 7px; }
.read-back a { color: var(--accent); text-decoration: none; }
.read-back a .icon { width: 14px; height: 14px; transform: rotate(180deg); }
.read-back > span { padding: 6px 9px; border: 1px solid #d6e7dc; border-radius: 999px; color: #27734c; background: #f1f9f4; }
.read-back > span .icon { width: 12px; height: 12px; }
.read-only-banner { margin-top: -8px; }
.read-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 17px; }
.read-metrics article { min-height: 92px; padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: 0 3px 13px rgb(26 48 34 / 3%); }
.read-metrics small, .read-metrics strong, .read-metrics span { display: block; }
.read-metrics small { color: #7a867e; font-size: 8px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.read-metrics strong { margin-top: 7px; font-size: 16px; letter-spacing: -.02em; }
.read-metrics span { margin-top: 4px; overflow: hidden; color: #849087; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.read-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 17px; align-items: start; }
.read-primary { min-width: 0; display: grid; gap: 17px; }
.read-panel { overflow: hidden; }
.read-panel-heading { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 19px; border-bottom: 1px solid var(--line); }
.read-panel-heading h2 { margin: 4px 0 0; font-size: 14px; }
.read-panel-heading > span { color: #7a877f; font-size: 8px; font-weight: 700; }
.read-definition { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 7px 19px 19px; }
.read-definition > div { min-width: 0; padding: 13px 10px 11px 0; border-bottom: 1px solid #edf1ee; }
.read-definition dt { color: #7c8880; font-size: 8px; font-weight: 700; }
.read-definition dd { overflow: hidden; margin: 5px 0 0; color: #28362d; font-size: 10px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.read-definition code, .integrity-card code { color: #426151; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 8px; font-weight: 500; }
.read-structure { display: grid; gap: 14px; padding: 18px; }
.read-step { display: grid; grid-template-columns: 145px minmax(0, 1fr); gap: 14px; }
.read-step-heading { display: flex; align-items: flex-start; gap: 10px; padding: 13px; border-radius: 11px; color: #2b503a; background: #eef7f1; }
.read-step-heading > span { width: 25px; height: 25px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 7px; color: #fff; background: var(--accent); font-size: 9px; font-weight: 800; }
.read-step-heading p, .read-group-heading p { margin: 0; color: #7b8a81; font-size: 7px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.read-step-heading h3 { margin: 4px 0 0; font-size: 11px; }
.read-group-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.read-group { overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: #fbfcfb; }
.read-group-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; border-bottom: 1px solid var(--line); }
.read-group-heading h4 { margin: 4px 0 0; font-size: 10px; }
.read-group-heading > span { padding: 4px 6px; border-radius: 999px; color: #2b7450; background: #eaf6ee; font-size: 7px; font-weight: 750; }
.read-options { display: grid; margin: 0; padding: 5px 11px 9px; list-style: none; }
.read-options li { min-height: 43px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 2px; border-bottom: 1px solid #edf1ee; }
.read-options li:last-child { border-bottom: 0; }
.read-options strong, .read-options small { display: block; }
.read-options strong { font-size: 9px; }
.read-options small { margin-top: 3px; color: #8d9891; font-size: 7px; }
.read-options li > span { color: #397354; font-size: 8px; font-weight: 720; white-space: nowrap; }
.read-panel td strong { font-size: 9px; }
.read-panel td br { display: block; content: ""; margin-top: 4px; }
.cell-note { display: block; margin-top: 3px; color: #8c9790; font-size: 7px; }
.storage-key { display: block; max-width: 330px; overflow-wrap: anywhere; white-space: normal; }
.read-aside { position: sticky; top: 85px; }
.integrity-card { padding: 19px; }
.integrity-card h2 { margin: 5px 0 16px; font-size: 16px; }
.integrity-card ul { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.integrity-card li { min-height: 48px; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 8px; align-items: center; border-bottom: 1px solid #edf1ee; }
.integrity-card li > .icon { width: 22px; height: 22px; padding: 5px; border-radius: 50%; color: #fff; background: #2d9a61; }
.integrity-card li strong, .integrity-card li small { display: block; }
.integrity-card li strong { color: #35443a; font-size: 8px; line-height: 1.4; }
.integrity-card li small { margin-top: 2px; color: #2b8354; font-size: 7px; font-weight: 750; }
.integrity-card dl { display: grid; gap: 13px; margin: 17px 0 0; }
.integrity-card dl div { min-width: 0; }
.integrity-card dt { color: #7f8b83; font-size: 7px; font-weight: 730; text-transform: uppercase; }
.integrity-card dd { margin: 5px 0 0; overflow-wrap: anywhere; color: #445148; font-size: 8px; }
.integrity-card dd code { display: block; }
.read-state { min-height: 230px; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 30px; text-align: left; }
.read-state h2 { margin: 0; font-size: 15px; }
.read-state p { max-width: 520px; margin: 6px 0 0; color: #758179; font-size: 9px; line-height: 1.6; }
.validation-banner { border-color: #efd5b2; color: #8a561b; background: #fff9f0; }
.validation-banner p { color: #836a4d; }
.text-action { display: inline-flex; align-items: center; gap: 7px; padding: 0; border: 0; color: var(--accent); background: none; font-size: 9px; font-weight: 700; cursor: pointer; }
.text-action .icon { width: 14px; height: 14px; transform: rotate(180deg); }
.editor-form { display: grid; gap: 17px; }
.builder-workflow { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 16px; padding: 12px 14px; border: 1px solid #d7dcff; border-radius: 13px; background: #fff; box-shadow: var(--shadow-soft); }
.builder-workflow-heading { min-width: 82px; display: grid; gap: 3px; padding-right: 14px; border-right: 1px solid #e4e7f2; }
.builder-workflow-heading span { color: #767f91; font-size: 7px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.builder-workflow-heading strong { color: #27336f; font-size: 10px; }
.builder-workflow ol { min-width: 0; display: grid; grid-template-columns: repeat(5, minmax(105px, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.builder-workflow button { width: 100%; min-width: 0; display: grid; grid-template-columns: 25px minmax(0, 1fr); align-items: center; gap: 7px; padding: 7px; border: 1px solid transparent; border-radius: 9px; color: #5d6573; background: transparent; text-align: left; cursor: pointer; }
.builder-workflow button > span { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 7px; color: #70798d; background: #f0f2f6; font-size: 7px; font-weight: 800; }
.builder-workflow button strong, .builder-workflow button small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.builder-workflow button strong { font-size: 8px; }
.builder-workflow button small { margin-top: 2px; color: #8991a0; font-size: 7px; }
.builder-workflow button:hover { border-color: #dce1ff; background: #f8f9ff; }
.builder-workflow button.is-done > span { color: #fff; background: #4f6bff; }
.builder-workflow button.is-current { border-color: #aeb9f7; color: #293db2; background: #eef1ff; box-shadow: 0 0 0 2px rgb(79 107 255 / 8%); }
.builder-workflow button.is-current > span { color: #fff; background: #4f6bff; }
.builder-jump-target { scroll-margin-top: 86px; outline: 0; }
.builder-jump-target:focus { box-shadow: 0 0 0 3px rgb(79 107 255 / 12%), var(--shadow-soft); }
.editor-section { overflow: hidden; }
.editor-section-heading { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 17px 19px; border-bottom: 1px solid var(--line); }
.editor-section-heading h2 { margin: 4px 0 0; font-size: 14px; }
.editor-section-heading > code, .editor-section-heading > span { color: #6f7c74; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 8px; }
.builder-heading-actions { display: flex; align-items: center; gap: 12px; }
.builder-heading-actions code { color: #6f7c74; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 8px; }
.builder-workspace { display: grid; grid-template-columns: 250px minmax(0, 1fr); align-items: start; gap: 17px; }
.builder-canvas { min-width: 0; display: grid; gap: 17px; }
.builder-navigator { position: sticky; top: 84px; max-height: calc(100vh - 105px); overflow: auto; padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: var(--shadow-soft); }
.builder-navigator-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 2px 2px 12px; border-bottom: 1px solid var(--line); }
.builder-navigator-heading h2 { margin: 4px 0 0; font-size: 13px; }
.builder-navigator-heading > span { padding: 5px 7px; border-radius: 999px; color: var(--brand-blue); background: var(--brand-blue-soft); font-size: 7px; font-weight: 750; white-space: nowrap; }
.builder-navigator ol, .builder-navigator ul { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.builder-navigator > ol { gap: 9px; padding-top: 12px; }
.builder-navigator ul { padding: 5px 0 0 13px; border-left: 1px solid #e3e7f5; }
.builder-navigator button { width: 100%; min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 7px; padding: 7px 8px; border: 1px solid transparent; border-radius: 8px; color: #556176; background: transparent; text-align: left; cursor: pointer; }
.builder-navigator button > span { color: #8790a3; font-size: 7px; font-weight: 760; text-transform: uppercase; }
.builder-navigator button > strong { overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.builder-navigator button:hover { border-color: #d9def5; background: #f8f9ff; }
.builder-navigator button[aria-current="true"] { border-color: #aab5f4; color: #263bba; background: #eef1ff; box-shadow: 0 0 0 2px rgb(79 107 255 / 8%); }
.builder-focus-target { scroll-margin-top: 95px; outline: 0; transition: border-color .16s ease, box-shadow .16s ease; }
.builder-focus-target.is-selected { border-color: #9aa8f1; box-shadow: 0 0 0 3px rgb(79 107 255 / 9%), var(--shadow-soft); }
.builder-structure-toolbar { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 18px; border: 1px solid #cfe1d5; border-radius: 13px; background: #f4faf6; }
.builder-structure-toolbar h2 { margin: 4px 0 0; font-size: 13px; }
.builder-structure-toolbar > div > p:last-child { margin: 5px 0 0; color: #6b7280; font-size: 8px; }
.builder-order-actions { display: inline-flex; align-items: center; gap: 5px; }
.builder-order-actions button { min-height: 27px; padding: 0 8px; border: 1px solid #d6ded9; border-radius: 7px; color: #536159; background: #fff; font-size: 7px; font-weight: 750; cursor: pointer; }
.builder-order-actions button:hover:not(:disabled) { border-color: #75a98a; color: var(--accent); }
.builder-order-actions button:focus-visible { outline: 3px solid rgb(8 122 71 / 18%); outline-offset: 1px; }
.builder-order-actions button:disabled { opacity: .38; cursor: not-allowed; }
.builder-order-actions .builder-remove { border-color: #ebd7d2; color: #9a5445; }
.editor-fields { display: grid; gap: 13px; padding: 17px 19px; }
.editor-fields-two { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0; }
.editor-fields-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.editor-fields label { min-width: 0; display: grid; gap: 7px; color: #4d5a52; font-size: 9px; font-weight: 700; }
.editor-fields input, .editor-fields select { width: 100%; height: 40px; padding: 0 11px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--ink); background: #fff; font-size: 10px; }
.editor-fields input:focus, .editor-fields select:focus { border-color: #70aa89; outline: 0; box-shadow: 0 0 0 3px rgb(8 122 71 / 10%); }
.editor-group { margin: 0 19px 19px; padding: 17px; border: 1px solid var(--line); border-radius: 12px; background: #fafcfb; }
.editor-group legend { padding: 0 7px; color: #31513f; font-size: 10px; font-weight: 750; }
.builder-group-toolbar, .builder-option-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.builder-group-toolbar > span { color: #7b8880; font-size: 7px; font-weight: 760; letter-spacing: .06em; text-transform: uppercase; }
.builder-option-toolbar strong { color: #66736b; font-size: 8px; }
.editor-options { display: grid; gap: 9px; margin-top: 15px; }
.editor-option { padding: 13px; border: 1px solid #e2e8e4; border-radius: 10px; background: #fff; }
.builder-add-card { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 1px dashed #afcdbb; border-radius: 10px; color: var(--accent); background: #f7fbf8; font-size: 9px; font-weight: 750; cursor: pointer; }
.builder-add-card .icon { width: 14px; height: 14px; }
.builder-section-footer { display: flex; justify-content: flex-end; padding: 0 19px 19px; }
.builder-player { overflow: hidden; }
.builder-player-layout { height: clamp(470px, 58vh, 620px); min-height: 0; max-height: 620px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(270px, .75fr); align-items: stretch; }
.builder-player-stage { position: relative; height: 100%; min-height: 0; overflow: hidden; contain: layout paint size; border-right: 1px solid var(--line); background: var(--builder-viewer-stage-background, radial-gradient(circle at 48% 38%, #fff 0, #f3f7f4 48%, #e8f0eb 100%)); }
.builder-player-stage model-viewer { width: 100%; height: 100%; min-height: 0; max-height: 100%; display: block; contain: layout paint size; --poster-color: transparent; }
.builder-player-stage-status { position: absolute; left: 15px; bottom: 14px; display: inline-flex; align-items: center; gap: 7px; padding: 7px 9px; border: 1px solid rgb(201 220 208 / 86%); border-radius: 999px; color: #496056; background: rgb(255 255 255 / 88%); box-shadow: 0 7px 20px rgb(28 55 37 / 8%); backdrop-filter: blur(7px); }
.builder-player-stage-status > span { width: 7px; height: 7px; border-radius: 50%; background: #2f9d61; box-shadow: 0 0 0 3px rgb(47 157 97 / 13%); }
.builder-player-stage-status p { margin: 0; font-size: 8px; font-weight: 680; }
.builder-player-controls { min-height: 0; display: flex; flex-direction: column; gap: 15px; overflow-y: auto; padding: 20px; background: #fff; }
.builder-player-controls h3 { margin: 5px 0 0; font-size: 17px; letter-spacing: -.02em; }
.builder-player-groups { display: grid; gap: 13px; }
.builder-player-group { display: grid; grid-template-columns: repeat(var(--opr-desktop, 2), minmax(0, 1fr)); gap: 7px; margin: 0; padding: 0; border: 0; }
/* Runway BYG-3: the preview mirrors the published Player's Choice display. */
.builder-player-group-tooltip { grid-column: 1 / -1; margin: -2px 0 2px; color: #6a776f; font-size: 7px; line-height: 1.45; }
.builder-player-group--buttons .builder-player-swatch { display: none; }
.builder-player-group--buttons button { grid-template-columns: minmax(0, 1fr); min-height: 40px; text-align: center; justify-items: center; }
.builder-player-group--color_swatches { grid-template-columns: repeat(var(--opr-desktop, 4), minmax(0, 1fr)); }
.builder-player-group--color_swatches button { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 5px; padding: 8px 4px; }
.builder-player-group--color_swatches .builder-player-swatch { width: 26px; height: 26px; }
.builder-player-group--color_swatches .builder-player-swatch svg { width: 26px; height: 26px; }
.builder-player-dropdown { grid-column: 1 / -1; min-height: 38px; padding: 7px 9px; border: 1px solid #dde5df; border-radius: 9px; background: #fff; color: #3d4b42; font: inherit; font-size: 8px; font-weight: 700; }
.configurator-builder-v1[data-builder-device="tablet"] .builder-player-group { grid-template-columns: repeat(var(--opr-tablet, 2), minmax(0, 1fr)); }
.configurator-builder-v1[data-builder-device="tablet"] .builder-player-group--color_swatches { grid-template-columns: repeat(var(--opr-tablet, 4), minmax(0, 1fr)); }
.configurator-builder-v1[data-builder-device="mobile"] .builder-player-group { grid-template-columns: repeat(var(--opr-mobile, 1), minmax(0, 1fr)); }
.configurator-builder-v1[data-builder-device="mobile"] .builder-player-group--color_swatches { grid-template-columns: repeat(var(--opr-mobile, 3), minmax(0, 1fr)); }
.builder-choice-display { display: grid; gap: 7px; padding: 10px; border: 1px solid #e7ebe8; border-radius: 9px; background: #fafbfa; }
.builder-choice-display-heading { margin: 0; color: #526057; font-size: 7px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.builder-choice-display-per-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; align-items: end; }
.builder-choice-display-per-row > p { grid-column: 1 / -1; margin: 0; color: #526057; font-size: 7px; font-weight: 750; }
.builder-player-group legend { grid-column: 1 / -1; margin-bottom: 1px; color: #526057; font-size: 8px; font-weight: 750; }
.builder-player-group button { min-height: 54px; display: grid; grid-template-columns: 25px minmax(0, 1fr); align-items: center; gap: 8px; padding: 8px; border: 1px solid #dde5df; border-radius: 9px; color: #3d4b42; background: #fbfcfb; text-align: left; font-size: 8px; font-weight: 700; cursor: pointer; }
.builder-player-group button:hover { border-color: #8fbaa0; }
.builder-player-group button[aria-pressed="true"] { border-color: #4d9e70; color: #165f3b; background: #edf8f1; box-shadow: 0 0 0 2px rgb(40 137 82 / 9%); }
.builder-player-group button:focus-visible { outline: 3px solid rgb(8 122 71 / 18%); outline-offset: 2px; }
.builder-player-swatch { width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid rgb(35 57 43 / 10%); border-radius: 7px; color: #4d6757; background: #edf2ef; font-size: 14px; }
.builder-player-swatch svg { width: 20px; height: 20px; display: block; }
.builder-player-actions { min-height: 25px; display: flex; flex-wrap: wrap; gap: 5px; }
.builder-player-actions span { padding: 5px 7px; border-radius: 999px; color: #3f6e53; background: #eef7f1; font-size: 7px; font-weight: 680; }
.builder-player-total { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-top: 13px; margin-top: auto; border-top: 1px solid var(--line); }
.builder-player-total span { color: #758179; font-size: 8px; font-weight: 700; }
.builder-player-total strong { font-size: 18px; letter-spacing: -.02em; }
.builder-player[data-preview-state="invalid"] .builder-player-stage-status > span, .builder-player[data-preview-state="waiting"] .builder-player-stage-status > span { background: #d18a38; box-shadow: 0 0 0 3px rgb(209 138 56 / 14%); }
.builder-player[data-model-state="error"] .builder-player-stage-status > span { background: #c2410c; box-shadow: 0 0 0 3px rgb(194 65 12 / 14%); }
.mapping-editor { overflow: hidden; }
.model-asset-card { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 12px; margin: 17px 19px 0; padding: 14px; border: 1px solid #d8e6dc; border-radius: 11px; background: #f7fbf8; }
.model-asset-card small, .model-asset-card strong, .model-asset-card p { display: block; }
.model-asset-card small { color: #75837a; font-size: 7px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.model-asset-card strong { margin-top: 4px; font-size: 10px; }
.model-asset-card p { margin: 4px 0 0; color: #758179; font-size: 8px; }
.model-asset-card code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 7px; }
.model-asset-card dl { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 2px 0 0; padding-top: 12px; border-top: 1px solid #e1e4f3; }
.model-asset-card dl div { min-width: 0; }
.model-asset-card dt { color: #7b8292; font-size: 7px; font-weight: 750; text-transform: uppercase; }
.model-asset-card dd { margin: 5px 0 0; overflow-wrap: anywhere; color: #525c71; line-height: 1.35; }
.model-technical-details { grid-column: 1 / -1; padding-top: 10px; border-top: 1px solid #e1e4f3; }
.model-technical-details summary { width: fit-content; color: #53617a; font-size: 8px; font-weight: 730; cursor: pointer; }
.model-technical-details[open] summary { margin-bottom: 2px; }
.model-technical-details dl { padding-top: 10px; border-top: 0; }
.local-glb-picker { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 2px; padding-top: 12px; border-top: 1px solid #e1e4f3; }
.local-glb-picker input { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.local-glb-picker input:focus-visible + .button { outline: 3px solid rgba(37, 99, 235, .25); outline-offset: 2px; }
.local-glb-picker .button { cursor: pointer; }
.local-glb-picker small { color: #667085; font-size: 8px; font-weight: 550; letter-spacing: 0; text-transform: none; }
.asset-lock { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 999px; color: #28734c; background: #eaf6ee; font-size: 7px; font-weight: 750; white-space: nowrap; }
.asset-lock .icon { width: 11px; height: 11px; }
.mapping-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin: 11px 19px 0; }
.mapping-summary div { padding: 11px 12px; border: 1px solid #e0e4ef; border-radius: 9px; background: #fbfcff; }
.mapping-summary small, .mapping-summary strong { display: block; }
.mapping-summary small { color: #798196; font-size: 7px; font-weight: 720; }
.mapping-summary strong { margin-top: 4px; color: #303b78; font-size: 15px; }
.mapping-help { display: grid; gap: 3px; margin: 11px 19px 0; padding: 10px 12px; border-radius: 8px; color: #617068; background: #f3f6f4; font-size: 8px; line-height: 1.5; }
.mapping-help strong { color: #3e4b45; font-size: 8px; }
.mapping-reconciliation, .mapping-warning { display: grid; gap: 3px; margin: 11px 19px 0; padding: 10px 12px; border: 1px solid #cdd9ff; border-radius: 8px; background: #f4f7ff; color: #53607a; font-size: 8px; line-height: 1.5; }
.mapping-reconciliation strong { color: #2149a8; }
.mapping-warning { border-color: #f3d79a; background: #fff9eb; }
.mapping-warning strong { color: #8a5a00; }
.mapping-groups { display: grid; gap: 13px; padding: 15px 19px 19px; }
.mapping-group { overflow: hidden; border: 1px solid #e1e4ed; border-radius: 12px; background: #f8f9fc; }
.mapping-group-heading { min-height: 57px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid #e1e4ed; background: #f4f6fb; }
.mapping-group-heading small { color: #858ca0; font-size: 7px; font-weight: 730; text-transform: uppercase; }
.mapping-group-heading h3 { margin: 4px 0 0; font-size: 11px; }
.mapping-group-heading > span { padding: 5px 7px; border-radius: 999px; color: #4457c0; background: #e9edff; font-size: 7px; font-weight: 750; }
.mapping-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 12px; }
.mapping-card { overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: #fbfcfb; }
.mapping-card-heading { min-height: 57px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #fff; }
.mapping-card-heading small, .mapping-card-heading strong { display: block; }
.mapping-card-heading small { color: #87928b; font-size: 7px; }
.mapping-card-heading strong { margin-top: 3px; font-size: 9px; }
.mapping-state { padding: 5px 7px; border-radius: 999px; font-size: 7px; font-weight: 750; }
.mapping-state.is-mapped { color: #2d6f4e; background: #e6f5ec; }
.mapping-state.is-unmapped { color: #88591f; background: #fff0d8; }
.mapping-primary-fields { padding-bottom: 7px; }
.mapping-card .mapping-material-fields, .mapping-card .mapping-node-fields { padding-top: 6px; }
.mapping-card:not([data-mapping-kind="material_color"]) .mapping-material-fields { display: none; }
.mapping-card:not([data-mapping-kind="material_variant"]) .mapping-variant-fields { display: none; }
.mapping-card:not([data-mapping-kind="node_visibility"]) .mapping-node-fields { display: none; }
.mapping-color-input { padding: 5px !important; cursor: pointer; }
.mapping-empty { min-height: 140px; display: flex; align-items: center; justify-content: center; gap: 13px; padding: 24px; text-align: left; }
.mapping-empty > .icon { width: 34px; height: 34px; color: #7b9f89; }
.mapping-empty strong { font-size: 10px; }
.mapping-empty p { max-width: 500px; margin: 5px 0 0; color: #78847d; font-size: 8px; line-height: 1.5; }
.starter-onboarding { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 18px; padding: 18px 19px; border: 1px solid #cfd6ff; border-radius: var(--radius); background: linear-gradient(120deg, #fff, #f4f6ff); }
.starter-onboarding h2 { margin: 5px 0 0; font-size: 15px; }
.starter-onboarding > div > p:last-child { max-width: 500px; margin: 7px 0 0; color: #697386; font-size: 8px; line-height: 1.55; }
.starter-onboarding ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.starter-onboarding li { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: center; gap: 8px; padding: 9px; border: 1px solid #e0e4f3; border-radius: 9px; background: #fff; }
.starter-onboarding li > span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; color: #5160ad; background: #edf0ff; font-size: 8px; font-weight: 800; }
.starter-onboarding li.is-done > span { color: #fff; background: #4f6bff; }
.starter-onboarding strong, .starter-onboarding small { display: block; }
.starter-onboarding strong { font-size: 8px; }
.starter-onboarding small { margin-top: 3px; overflow: hidden; color: #778096; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.builder-readiness { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 20px; padding: 18px 19px; }
.builder-readiness > div > h2 { margin: 5px 0 0; font-size: 15px; }
.builder-readiness > div > p:last-child { max-width: 470px; margin: 7px 0 0; color: #697386; font-size: 8px; line-height: 1.55; }
.builder-readiness ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.builder-readiness li { min-width: 0; display: grid; grid-template-columns: 29px minmax(0, 1fr); align-items: center; gap: 8px; padding: 9px; border: 1px solid #e0e4ed; border-radius: 9px; background: #fafbfe; }
.builder-readiness li > span { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 8px; color: #3f52ba; background: #e9edff; font-size: 7px; font-weight: 800; }
.builder-readiness li strong, .builder-readiness li small { display: block; }
.builder-readiness li strong { font-size: 8px; }
.builder-readiness li small { margin-top: 3px; overflow: hidden; color: #7b8495; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.builder-readiness.is-ready { border-color: #cfe1d8; background: linear-gradient(110deg, #fff, #f6fbf8); }
.builder-readiness.has-issues { border-color: #edd5b7; background: #fffaf3; }
.builder-readiness.has-issues li:first-child > span { color: #8c5b1e; background: #ffefd7; }
.availability-toggle { display: inline-flex; align-items: center; gap: 8px; margin-top: 11px; color: #526058; font-size: 9px; font-weight: 650; cursor: pointer; }
.availability-toggle input { width: 16px; height: 16px; accent-color: var(--accent); }
.editor-sticky-actions { position: sticky; z-index: 10; bottom: 14px; min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 16px; border: 1px solid #cddbd2; border-radius: 13px; color: #607067; background: rgb(255 255 255 / 96%); box-shadow: 0 12px 35px rgb(17 44 27 / 13%); backdrop-filter: blur(8px); }
.editor-sticky-actions > div { display: flex; align-items: center; gap: 8px; font-size: 8px; }
.editor-sticky-actions > div:last-child { flex: 0 0 auto; }
.editor-sticky-actions .icon { width: 15px; height: 15px; color: var(--accent); }
.builder-save-status span, .builder-save-status strong, .builder-save-status small { display: block; }
.builder-save-status strong { color: #27272a; font-size: 8px; }
.builder-save-status small { max-width: 560px; margin-top: 2px; color: #737986; font-size: 7px; line-height: 1.4; }
.editor-sticky-actions .button-primary:disabled { opacity: .46; box-shadow: none; cursor: not-allowed; }
.publish-summary { display: grid; gap: 0; margin: 15px 0 0; }
.publish-summary > div { display: grid; grid-template-columns: 105px minmax(0, 1fr); gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.publish-summary dt { color: #7d8981; font-size: 8px; font-weight: 750; }
.publish-summary dd { min-width: 0; margin: 0; color: #35433a; font-size: 9px; font-weight: 650; overflow-wrap: anywhere; }
.publish-summary code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 8px; font-weight: 500; }

/* ConfigUX brand alignment: blue is the interaction colour; green is reserved for success. */
.breadcrumb span, .breadcrumb b, .metric-card small, .metric-card p, .activity-item p, .activity-item time,
.setup-list small, .storage-banner p, .integration-copy p, .form-heading p, .read-state p,
.read-metrics small, .read-metrics span, .editor-section-heading > code, .editor-section-heading > span,
.builder-heading-actions code, .model-asset-card small, .model-asset-card p, .mapping-help,
.mapping-card-heading small, .mapping-card-heading code, .mapping-empty p, .builder-player-total span {
  color: #6b7280;
}

.page-heading h1, .metric-card strong, .panel-heading h2, .table-toolbar h2, .config-name strong,
.integration-copy h2, .form-heading h2, .read-state h2, .read-metrics strong, .editor-section-heading h2,
.builder-structure-toolbar h2, .builder-player-controls h3, .model-asset-card strong,
.mapping-card-heading strong, .mapping-empty strong, .builder-player-total strong {
  color: #0d0d0d;
}

.global-search, .table-search, th, .mode-badge, .version-chip, .role-chip, .editor-group,
.editor-option, .builder-player-group button, .mapping-card, .mapping-help {
  background: #f9fafb;
}

.global-search:focus-within, .table-search:focus-within,
.settings-form input:focus, .settings-form select:focus, .create-dialog input:focus,
.editor-fields input:focus, .editor-fields select:focus {
  border-color: #4f6bff;
  box-shadow: 0 0 0 3px rgb(79 107 255 / 13%);
}

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible,
.builder-order-actions button:focus-visible, .builder-player-group button:focus-visible {
  outline-color: rgb(79 107 255 / 30%);
}

.preview-pill { border-color: #d7dcff; color: #394fd6; background: #f5f6ff; }
.preview-pill span { background: #4f6bff; box-shadow: 0 0 0 3px rgb(79 107 255 / 14%); }
.preview-pill.is-http { border-color: #b9c3ff; color: #263da8; background: #eef1ff; }
.preview-pill.is-blocked { border-color: #f0b9b5; color: #9f241b; background: #fff2f1; }
.preview-pill.is-blocked span { background: #c9362b; box-shadow: 0 0 0 3px rgb(201 54 43 / 13%); }

.authoring-runtime-banner {
  width: calc(100% - 68px);
  max-width: 1442px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 18px auto 0;
  padding: 13px 15px;
  border: 1px solid #cdd5ff;
  border-radius: 12px;
  color: #263da8;
  background: #f4f6ff;
}
.authoring-runtime-banner .icon { width: 18px; height: 18px; margin-top: 1px; }
.authoring-runtime-banner strong { display: block; font-size: 11px; }
.authoring-runtime-banner p { margin: 3px 0 0; color: #5e678d; font-size: 9px; line-height: 1.5; }
.authoring-runtime-banner.is-blocked { border-color: #efc4c1; color: #9f241b; background: #fff4f3; }
.authoring-runtime-banner.is-blocked p { color: #7f4541; }

.studio-update-banner {
  width: calc(100% - 68px);
  max-width: 1442px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px auto 0;
  padding: 13px 15px;
  border: 1px solid #e8c260;
  border-radius: 12px;
  color: #684700;
  background: #fff9e8;
}
.studio-update-banner > .icon { width: 18px; height: 18px; flex: 0 0 auto; }
.studio-update-banner > div { min-width: 0; flex: 1; }
.studio-update-banner strong { display: block; font-size: 11px; }
.studio-update-banner p { margin: 3px 0 0; color: #735f2d; font-size: 9px; line-height: 1.5; }

.studio-shell[data-authoring-phase="blocked"] .local-safety {
  border-color: rgb(255 137 128 / 30%);
  color: #ffd0cc;
  background: rgb(180 35 24 / 16%);
}
.studio-shell[data-authoring-phase="blocked"] .local-safety strong { color: #fff0ee; }
.studio-shell[data-authoring-phase="blocked"] .local-safety small { color: #eeb5b0; }
.button-primary { background: #4f6bff; box-shadow: 0 6px 15px rgb(79 107 255 / 22%); }
.button-primary:hover { background: #394fd6; box-shadow: 0 8px 20px rgb(79 107 255 / 27%); }
.button-secondary { color: #292929; }
.button-secondary:hover { border-color: #aeb4bf; background: #f9fafb; }
.button-light { color: #0d0d0d; background: #ffffff; }
.button-light:hover { color: #394fd6; background: #f5f6ff; }
.button-ghost-light { color: #ffffff; }
.button-danger { color: #ffffff; background: #b42318; }
.button-danger:hover { background: #912018; }
.icon-button { color: #6b7280; }
.icon-button:hover { background: #f3f4f6; }

.hero-card {
  background: linear-gradient(122deg, #0d0d0d 0%, #161820 52%, #26346e 100%);
  box-shadow: 0 20px 50px rgb(13 13 13 / 18%);
}
.hero-card::before { background: radial-gradient(circle at 77% 9%, rgb(126 145 255 / 28%), transparent 32%), linear-gradient(90deg, transparent, rgb(255 255 255 / 4%)); }
.hero-kicker { border-color: rgb(178 188 255 / 34%); color: #dce1ff; }
.hero-copy p { color: #d1d5db; }
.hero-orbit { border-color: rgb(178 188 255 / 22%); }
.hero-visual::after { background: rgb(0 0 0 / 32%); }
.hero-product { box-shadow: inset 0 1px 0 rgb(255 255 255 / 22%), 0 24px 42px rgb(0 0 0 / 28%); }
.hero-cube .icon { color: #eef0ff; }
.hero-product-label { color: #26346e; background: #e6e9ff; }
.hero-progress { color: #e5e7eb; background: rgb(10 12 22 / 70%); }
.hero-progress progress::-webkit-progress-value, .progress-cell progress::-webkit-progress-value { background: #6f84ff; }
.hero-progress progress::-moz-progress-bar, .progress-cell progress::-moz-progress-bar { background: #6f84ff; }

.metric-card, .panel, .read-metrics article, .asset-card, .integration-card { box-shadow: 0 4px 18px rgb(13 13 13 / 4%); }
.metric-icon.green, .metric-icon.blue { color: #394fd6; background: #eef1ff; }
.metric-icon.purple { color: #4f46a3; background: #f1f0ff; }
.setup-score { color: #394fd6; background: #eef1ff; }
.activity-dot.tone-blue { color: #4f6bff; background: #4f6bff; }
.panel-heading > a, .eyebrow, .text-action, .read-back a { color: #4f6bff; }

.review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin: 0 0 17px; }
.review-card { min-height: 185px; padding: 19px; border: 1px solid var(--line); border-radius: 14px; background: #ffffff; box-shadow: 0 4px 18px rgb(13 13 13 / 4%); }
.review-card h2 { margin: 13px 0 10px; color: #0d0d0d; font-size: 14px; letter-spacing: -.02em; }
.review-card ul { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.review-card li { position: relative; padding-left: 14px; color: #5f6570; font-size: 9px; line-height: 1.45; }
.review-card li::before { content: ""; position: absolute; left: 0; top: .55em; width: 5px; height: 5px; border-radius: 50%; background: #c4c7ce; }
.review-state { display: inline-flex; align-items: center; gap: 7px; color: #545b67; font-size: 8px; font-weight: 780; letter-spacing: .07em; text-transform: uppercase; }
.review-state i { width: 8px; height: 8px; border-radius: 50%; background: #9ca3af; box-shadow: 0 0 0 3px rgb(156 163 175 / 13%); }
.status-working { border-color: #d7dcff; background: linear-gradient(145deg, #ffffff, #f7f8ff); }
.status-working .review-state { color: #394fd6; }
.status-working .review-state i, .status-working li::before { background: #4f6bff; }
.status-working .review-state i { box-shadow: 0 0 0 3px rgb(79 107 255 / 14%); }
.status-reading .review-state i, .status-reading li::before { background: #6b7280; }
.status-locked { background: #f7f7f8; }
.status-locked .review-state i, .status-locked li::before { background: #a8acb4; }

.scope-strip { min-height: 48px; display: flex; align-items: center; flex-wrap: wrap; gap: 7px; padding: 11px 14px; margin: -8px 0 17px; border: 1px solid #e0e3eb; border-radius: 11px; color: #5f6570; background: #ffffff; font-size: 9px; }
.scope-strip strong { color: #27272a; }
.scope-dot { width: 7px; height: 7px; border-radius: 50%; }
.scope-dot.working { background: #4f6bff; }
.scope-dot.reading { background: #6b7280; }
.scope-separator { width: 1px; height: 18px; margin: 0 5px; background: #e5e7eb; }

.storage-banner, .info-banner { border-color: #dce1ff; background: linear-gradient(90deg, #fafaff, #f3f5ff); }
.info-banner { color: #394fd6; }
.info-banner p { color: #626a7a; }
.storage-meter i { background: #e3e6ef; }
.storage-meter i b { background: #4f6bff; }
.integration-api { color: #394fd6; background: #eef1ff; }
.state-available { color: #394fd6; background: #eef1ff; }
.settings-nav a:hover, .settings-nav a.is-active { color: #394fd6; background: #eef1ff; }
.api-panel > code { color: #394fd6; background: #f4f5ff; }

.read-back > span, .asset-lock { border-color: #dce1ff; color: #394fd6; background: #f4f5ff; }
.read-step-heading { color: #27336f; background: #f1f3ff; }
.read-group-heading > span { color: #394fd6; background: #eef1ff; }
.read-options li > span, .read-definition code, .integrity-card code { color: #4558c2; }
.builder-structure-toolbar, .model-asset-card { border-color: #dce1ff; background: #f6f7ff; }
.builder-order-actions button:hover:not(:disabled) { border-color: #8999f1; }
.builder-add-card { border-color: #aab4ef; background: #f8f9ff; }
.builder-player-stage { background: var(--builder-viewer-stage-background, radial-gradient(circle at 48% 38%, #ffffff 0, #f5f6fa 48%, #e9ebf1 100%)); }
.builder-player-group button:hover { border-color: #8d9cf0; }
.builder-player-group button[aria-pressed="true"] { border-color: #4f6bff; color: #2f43b5; background: #eef1ff; box-shadow: 0 0 0 2px rgb(79 107 255 / 10%); }
.builder-player-actions span { color: #394fd6; background: #eef1ff; }
.editor-sticky-actions { border-color: #d7dbe5; color: #5f6570; box-shadow: 0 12px 35px rgb(13 13 13 / 12%); }

/* Success remains green because it communicates a completed integrity or load state. */
.status-published, .state-connected, .setup-list li.is-done > span, .integrity-card li small { color: var(--success); }
.status-published > span, .builder-player-stage-status > span, .toast > span { background: var(--success); }

@media (max-width: 1120px) {
  .builder-workspace { grid-template-columns: 210px minmax(0, 1fr); }
  .topbar { padding: 0 24px; }
  .authoring-runtime-banner { width: calc(100% - 50px); }
  .studio-update-banner { width: calc(100% - 50px); }
  .studio-main { padding: 30px 25px 50px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .review-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .asset-grid, .integration-grid { grid-template-columns: repeat(2, 1fr); }
  .global-search { width: 190px; }
  .hero-card { grid-template-columns: minmax(0, 1.2fr) 300px; }
  .read-layout { grid-template-columns: minmax(0, 1fr) 245px; }
  .read-group-grid { grid-template-columns: 1fr; }
  .connector-site-row { grid-template-columns: minmax(190px, .8fr) minmax(240px, 1.2fr); }
  .connector-site-row .button { grid-column: 1 / -1; justify-self: start; }
  .connector-binding-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .connector-binding-row > .integration-state, .connector-binding-row > .button { justify-self: start; }
}

@media (max-width: 900px) {
  .builder-workflow { grid-template-columns: 1fr; gap: 9px; }
  .builder-workflow-heading { min-width: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 0 8px; border-right: 0; border-bottom: 1px solid #e4e7f2; }
  .builder-workflow ol { grid-template-columns: repeat(5, minmax(125px, 1fr)); overflow-x: auto; padding-bottom: 3px; }
  .builder-workspace { grid-template-columns: 1fr; }
  .builder-navigator { position: static; max-height: none; }
  .builder-navigator > ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .studio-shell { display: block; }
  .sidebar { position: fixed; left: 0; top: 0; width: 260px; transform: translateX(-105%); box-shadow: 20px 0 50px rgb(4 25 13 / 22%); transition: transform 190ms ease; }
  .studio-shell.menu-open .sidebar { transform: translateX(0); }
  .sidebar-scrim { position: fixed; z-index: 45; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: rgb(6 24 14 / 45%); opacity: 0; pointer-events: none; transition: opacity 180ms ease; }
  .studio-shell.menu-open .sidebar-scrim { display: block; opacity: 1; pointer-events: auto; }
  .mobile-menu-button { display: inline-grid !important; }
  .breadcrumb span, .breadcrumb b { display: none; }
  .top-create span { display: none; }
  .top-create { width: 38px; padding: 0; }
  .hero-card { grid-template-columns: minmax(0, 1fr) 270px; }
  .hero-copy { padding: 32px; }
  .content-grid.two-one { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .settings-layout { grid-template-columns: 145px 1fr; }
  .read-layout { grid-template-columns: 1fr; }
  .read-aside { position: static; }
  .integrity-card ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
}

@media (max-width: 680px) {
  .topbar { height: 61px; padding: 0 14px; }
  .topbar-actions { gap: 7px; }
  .global-search { width: 38px; display: grid; grid-template-columns: 1fr; place-items: center; padding: 0; cursor: pointer; }
  .global-search input, .global-search kbd { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
  .global-search:focus-within { position: absolute; z-index: 3; left: 53px; right: 108px; width: auto; grid-template-columns: 18px 1fr; padding: 0 10px; }
  .global-search:focus-within input { position: static; width: 100%; height: auto; opacity: 1; pointer-events: auto; }
  .preview-pill { display: none; }
  .authoring-runtime-banner { width: calc(100% - 30px); margin-top: 13px; padding: 11px 12px; }
  .studio-update-banner { width: calc(100% - 30px); margin-top: 13px; padding: 11px 12px; }
  .studio-main { padding: 24px 15px 45px; }
  .page-heading { align-items: flex-start; margin-bottom: 20px; }
  .page-heading h1 { font-size: 27px; }
  .page-heading > div > p:last-child { font-size: 11px; }
  .page-actions .button span { display: none; }
  .hero-card { min-height: 420px; grid-template-columns: 1fr; grid-template-rows: auto 180px; }
  .hero-copy { align-self: auto; padding: 28px 24px 10px; }
  .hero-copy h2 { font-size: 30px; }
  .hero-visual { min-height: 180px; }
  .hero-product { width: 94px; height: 105px; border-radius: 18px; }
  .hero-cube .icon { width: 48px; height: 48px; }
  .hero-orbit.orbit-one { width: 250px; height: 250px; }
  .hero-orbit.orbit-two { width: 160px; height: 160px; }
  .hero-progress { right: 18px; bottom: 14px; width: 145px; }
  .metric-grid { gap: 9px; }
  .review-card { min-height: 0; }
  .connector-management { padding: 16px; }
  .connector-management-heading { flex-direction: column; }
  .connector-site-row, .connector-binding-row { grid-template-columns: 1fr; }
  .connector-site-row dl { grid-template-columns: 1fr; }
  .scope-strip { align-items: flex-start; }
  .metric-card { min-height: 99px; gap: 10px; padding: 13px; }
  .metric-icon { width: 34px; height: 34px; }
  .metric-card strong { font-size: 20px; }
  .metric-card p { max-width: 105px; }
  .panel-heading { padding: 17px 16px 13px; }
  .activity-list, .setup-list { padding-left: 16px; padding-right: 16px; }
  .table-toolbar { align-items: flex-start; flex-direction: column; gap: 10px; padding: 14px; }
  .table-tools { width: 100%; }
  .table-search { width: auto; flex: 1; }
  th, td { padding-left: 14px; padding-right: 14px; }
  th:nth-child(4), td:nth-child(4), th:nth-child(5), td:nth-child(5) { display: none; }
  .config-name { min-width: 190px; }
  .asset-grid, .integration-grid { grid-template-columns: 1fr; }
  .asset-preview { height: 190px; }
  .storage-banner { align-items: flex-start; flex-direction: column; }
  .storage-meter { width: 100%; }
  .storage-meter span { justify-content: flex-start; }
  .api-panel { align-items: flex-start; flex-direction: column; gap: 14px; }
  .settings-layout { grid-template-columns: 1fr; }
  .settings-nav { position: static; display: flex; overflow-x: auto; white-space: nowrap; }
  .settings-form { padding: 17px; }
  .mode-options { grid-template-columns: 1fr; }
  .mode-options label > span { min-height: 62px; grid-template-columns: 25px auto; grid-template-rows: auto auto; align-items: center; column-gap: 8px; }
  .mode-options label > span .icon { grid-row: 1 / 3; margin: 0; }
  .dialog-actions .button { flex: 1; }
  .read-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .read-definition { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .read-step { grid-template-columns: 1fr; }
  .read-group-grid { grid-template-columns: 1fr; }
  .read-panel th:nth-child(4), .read-panel td:nth-child(4), .read-panel th:nth-child(5), .read-panel td:nth-child(5) { display: table-cell; }
  .editor-fields-three { grid-template-columns: 1fr; }
  .editor-section-heading, .builder-group-toolbar, .builder-option-toolbar { align-items: flex-start; flex-direction: column; }
  .builder-heading-actions { width: 100%; justify-content: space-between; }
  .builder-structure-toolbar { align-items: stretch; flex-direction: column; }
  .builder-structure-toolbar .button { width: 100%; }
  .builder-workflow { padding: 11px; }
  .builder-workflow ol { display: flex; gap: 7px; scroll-snap-type: x proximity; }
  .builder-workflow li { flex: 0 0 145px; scroll-snap-align: start; }
  .builder-order-actions { flex-wrap: wrap; }
  .builder-player-layout { height: auto; min-height: 0; max-height: none; grid-template-columns: 1fr; }
  .builder-player-stage { height: clamp(340px, 52vh, 430px); min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .builder-player-stage model-viewer { height: 100%; min-height: 0; }
  .builder-player-controls { overflow-y: visible; }
  .mapping-grid { grid-template-columns: 1fr; }
  .mapping-summary, .model-asset-card dl { grid-template-columns: 1fr; }
  .builder-readiness { grid-template-columns: 1fr; }
  .starter-onboarding { grid-template-columns: 1fr; }
  .model-asset-card { grid-template-columns: 42px minmax(0, 1fr); }
  .asset-lock { grid-column: 1 / -1; justify-self: start; }
  .editor-sticky-actions { position: static; align-items: stretch; flex-direction: column; }
  .editor-sticky-actions > .builder-save-status { align-items: flex-start; }
  .editor-sticky-actions > div:last-child { display: grid; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .builder-navigator > ol { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: 1fr; }
  .metric-card p { max-width: none; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .button { width: 100%; }
  .page-heading { flex-direction: column; }
  .page-actions { width: 100%; }
  .page-actions .button { width: 100%; }
  .empty-state { padding: 16px; }
  .empty-state .page-actions { flex-direction: column; }
  .empty-state > .button { width: 100%; }
  .scope-separator { width: 100%; height: 1px; margin: 4px 0; }
  .read-metrics, .read-definition { grid-template-columns: 1fr; }
  .integrity-card ul { grid-template-columns: 1fr; }
  .editor-fields-two { grid-template-columns: 1fr; }
  .builder-player-stage { height: clamp(300px, 52vh, 380px); }
  .builder-player-stage model-viewer { height: 100%; min-height: 0; }
  .builder-readiness ul { grid-template-columns: 1fr; }
}

@media (max-width: 390px) {
  .metric-grid { grid-template-columns: 1fr; }
  .metric-card p { max-width: none; }
  .hero-actions .button { width: 100%; }
  .page-heading { flex-direction: column; }
  .page-actions { width: 100%; }
  .page-actions .button { width: 100%; }
  th:nth-child(2), td:nth-child(2) { display: none; }
  .read-panel th:nth-child(2), .read-panel td:nth-child(2), .read-panel th:nth-child(4), .read-panel td:nth-child(4) { display: table-cell; }
  .read-back { align-items: flex-start; flex-direction: column; }
  .read-metrics { grid-template-columns: 1fr; }
  .read-definition { grid-template-columns: 1fr; }
  .integrity-card ul { grid-template-columns: 1fr; }
  .editor-fields-two { grid-template-columns: 1fr; }
  .builder-player-stage { height: clamp(300px, 52vh, 380px); }
  .builder-player-stage model-viewer { height: 100%; min-height: 0; }
  .builder-player-controls { padding: 16px; }
  .editor-group { margin-left: 12px; margin-right: 12px; padding: 13px; }
}

/* Blok 18D - functional Design editor */
.designer-editor-heading .page-heading { margin-top: 8px; }
.designer-editor-form { padding-bottom: 78px; }
.designer-toolbar { display: grid; grid-template-columns: minmax(210px, 1.2fr) repeat(3, minmax(180px, auto)); gap: 14px; align-items: end; padding: 15px; margin-bottom: 14px; }
.designer-toolbar label, .designer-toolbar label span, .designer-control-label { display: block; }
.designer-toolbar label > span, .designer-control-label { margin-bottom: 6px; color: #636b77; font-size: 8px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.designer-toolbar input, .designer-toolbar select { width: 100%; min-height: 38px; padding: 0 10px; border: 1px solid #d9dee7; border-radius: 8px; color: #20242b; background: #fff; font-size: 10px; }
.designer-segments { display: flex; min-height: 38px; padding: 3px; border: 1px solid #d9dee7; border-radius: 9px; background: #f4f5f8; }
.designer-segment { flex: 1; padding: 0 9px; border: 0; border-radius: 6px; color: #69717d; background: transparent; font-size: 8px; font-weight: 750; text-transform: capitalize; cursor: pointer; white-space: nowrap; }
.designer-segment.is-active { color: #3045c7; background: #fff; box-shadow: 0 2px 8px rgb(24 31 49 / 9%); }
.designer-segment:disabled { cursor: default; opacity: .62; }

.designer-workspace { min-width: 0; display: grid; grid-template-columns: 220px minmax(480px, 1fr) 245px; gap: 14px; align-items: start; }
.designer-library, .designer-inspector { position: sticky; top: 83px; min-width: 0; }
.designer-library { max-height: calc(100vh - 105px); padding: 14px; overflow-y: auto; }
.designer-library .form-heading h2 { margin: 3px 0 5px; font-size: 14px; }
.designer-library .form-heading p:last-child { margin: 0; color: #737b87; font-size: 8px; line-height: 1.45; }
.designer-library-list { display: grid; gap: 7px; margin-top: 13px; }
.designer-library-item { width: 100%; min-height: 53px; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 9px; align-items: center; padding: 8px; border: 1px solid #dfe3eb; border-radius: 9px; color: #343a45; background: #fff; text-align: left; cursor: grab; }
.designer-library-item:hover:not(:disabled) { border-color: #9dabfb; background: #f8f9ff; }
.designer-library-item:disabled { cursor: default; opacity: .55; }
.designer-library-icon { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 8px; color: #4056d8; background: #eef1ff; }
.designer-library-icon .icon { width: 15px; height: 15px; }
.designer-library-item strong, .designer-library-item small { display: block; }
.designer-library-item strong { font-size: 8px; }
.designer-library-item small { margin-top: 3px; color: #7a818d; font-size: 7px; line-height: 1.35; }

.designer-canvas-panel { min-width: 0; padding: 13px; overflow: hidden; }
.designer-stage { min-width: 0; overflow-x: auto; padding: 12px; border-radius: 11px; background: #eef0f5; }
.designer-device-label { width: min(100%, 1080px); display: flex; justify-content: space-between; gap: 10px; margin: 0 auto 8px; color: #737b88; font-size: 7px; text-transform: uppercase; letter-spacing: .06em; }
.designer-device-label span { font-weight: 850; color: #4056d8; }
.designer-canvas { width: 100%; max-width: 1080px; min-height: 620px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-flow: row dense; gap: 9px; align-content: start; padding: 10px; margin: 0 auto; border: 1px solid #cfd5e0; border-radius: 12px; background: #fff; box-shadow: 0 15px 38px rgb(23 29 43 / 9%); transition: max-width 180ms ease; }
.designer-stage.breakpoint-tablet .designer-canvas, .designer-stage.breakpoint-tablet .designer-device-label { max-width: 760px; }
.designer-stage.breakpoint-mobile .designer-canvas, .designer-stage.breakpoint-mobile .designer-device-label { max-width: 390px; }
.designer-stage.breakpoint-mobile .designer-canvas { min-width: 320px; }
.grid-start-1 { grid-column-start: 1; }.grid-start-2 { grid-column-start: 2; }.grid-start-3 { grid-column-start: 3; }.grid-start-4 { grid-column-start: 4; }
.grid-start-5 { grid-column-start: 5; }.grid-start-6 { grid-column-start: 6; }.grid-start-7 { grid-column-start: 7; }.grid-start-8 { grid-column-start: 8; }
.grid-start-9 { grid-column-start: 9; }.grid-start-10 { grid-column-start: 10; }.grid-start-11 { grid-column-start: 11; }.grid-start-12 { grid-column-start: 12; }
.grid-span-1 { grid-column-end: span 1; }.grid-span-2 { grid-column-end: span 2; }.grid-span-3 { grid-column-end: span 3; }.grid-span-4 { grid-column-end: span 4; }
.grid-span-5 { grid-column-end: span 5; }.grid-span-6 { grid-column-end: span 6; }.grid-span-7 { grid-column-end: span 7; }.grid-span-8 { grid-column-end: span 8; }
.grid-span-9 { grid-column-end: span 9; }.grid-span-10 { grid-column-end: span 10; }.grid-span-11 { grid-column-end: span 11; }.grid-span-12 { grid-column-end: span 12; }

.designer-zone { min-width: 0; min-height: 78px; padding: 8px; border: 1px dashed #cbd2df; border-radius: 10px; background: #f8f9fb; transition: border 130ms ease, background 130ms ease; }
.designer-zone.role-viewer { min-height: 330px; background: linear-gradient(145deg, #f7f8fb, #eceff4); }
.designer-zone.role-configuration { min-height: 330px; }
.designer-zone.role-navigation { min-height: 66px; }
.designer-zone.is-drop-ready { border-color: #7186ff; background: #f2f4ff; }
.designer-zone-heading { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 1px 2px 7px; }
.designer-zone-heading > div { display: flex; align-items: center; gap: 6px; }
.designer-zone-heading span { padding: 3px 5px; border-radius: 5px; color: #4056d8; background: #e9edff; font-size: 6px; font-weight: 850; text-transform: uppercase; }
.designer-zone-heading small { color: #8a919b; font-size: 6px; }
.designer-zone-heading strong { color: #5f6671; font-size: 7px; text-transform: capitalize; }
.designer-zone-elements { display: grid; gap: 7px; }
.designer-empty-zone { min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 1px dashed #d6dbe5; border-radius: 8px; color: #9299a4; font-size: 7px; }
.designer-empty-zone .icon { width: 13px; height: 13px; }

.designer-element { min-width: 0; overflow: hidden; border: 1px solid #dce1ea; border-radius: 9px; background: #fff; box-shadow: 0 3px 12px rgb(30 36 50 / 4%); }
.designer-element[draggable="true"] { cursor: grab; }
.designer-element:focus-visible { outline: 3px solid rgb(79 107 255 / 22%); outline-offset: 2px; }
.designer-element > header { min-height: 33px; display: flex; align-items: center; justify-content: space-between; gap: 7px; padding: 6px 7px; border-bottom: 1px solid #eceef2; background: #fafbfc; }
.designer-element > header span, .designer-element > header small { display: block; }
.designer-element > header span { font-size: 7px; font-weight: 800; }
.designer-element > header small { max-width: 180px; overflow: hidden; margin-top: 2px; color: #858c97; font-size: 6px; text-overflow: ellipsis; white-space: nowrap; }
.designer-element-actions { display: flex; gap: 3px; }
.designer-element-actions button { width: 23px; height: 23px; display: grid; place-items: center; padding: 0; border: 1px solid #e0e4eb; border-radius: 6px; color: #68707b; background: #fff; font-size: 8px; cursor: pointer; }
.designer-element-actions button:hover { color: #3045c7; border-color: #aeb9f9; }
.designer-element-actions .icon { width: 11px; height: 11px; }
.designer-element-preview { min-height: 38px; display: grid; place-items: center; padding: 8px; }
.designer-element.type-viewer .designer-element-preview { min-height: 235px; }
.designer-viewer-placeholder { display: grid; place-items: center; color: #586170; text-align: center; }
.designer-viewer-placeholder .icon { width: 48px; height: 48px; margin-bottom: 10px; color: #8190ed; }
.designer-viewer-placeholder strong, .designer-viewer-placeholder small { display: block; }
.designer-viewer-placeholder strong { font-size: 10px; }.designer-viewer-placeholder small { max-width: 190px; margin-top: 4px; color: #8a919d; font-size: 7px; line-height: 1.4; }
.designer-options-placeholder { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
.designer-options-placeholder span { padding: 9px; border: 1px solid #d9dee8; border-radius: 7px; color: #666f7d; font-size: 7px; }
.designer-options-placeholder small { grid-column: 1 / -1; color: #8a919d; font-size: 6px; }
.designer-price-placeholder { justify-self: end; font-size: 12px; }
.designer-quantity-placeholder { display: flex; align-items: center; gap: 8px; }
.designer-quantity-placeholder button { width: 25px; height: 25px; border: 1px solid #dce1e9; border-radius: 6px; background: #fff; }
.designer-cta-placeholder { width: 100%; padding: 11px; border-radius: 7px; color: #fff; background: #4f6bff; text-align: center; font-size: 8px; font-weight: 800; }
.designer-summary-placeholder span, .designer-summary-placeholder small { display: block; }.designer-summary-placeholder span { font-size: 8px; font-weight: 800; }.designer-summary-placeholder small { margin-top: 3px; color: #858d98; font-size: 6px; }
.designer-control-placeholder { padding: 7px 9px; border: 1px solid #dce1e9; border-radius: 7px; color: #5f6875; font-size: 7px; font-weight: 750; }
.designer-static-copy { justify-self: start; font-size: 10px; font-weight: 750; }
.type-text .designer-static-copy { color: #606976; font-size: 8px; font-weight: 500; }
.designer-content-field { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 6px; align-items: center; padding: 6px 7px; border-top: 1px solid #eceef2; }
.designer-content-field span { color: #747c88; font-size: 6px; font-weight: 750; text-transform: uppercase; }
.designer-content-field input { min-width: 0; height: 29px; padding: 0 7px; border: 1px solid #dce1e9; border-radius: 6px; font-size: 7px; }
.designer-state-placeholder { min-height: 44px; display: grid; place-items: center; gap: 3px; color: #68717e; text-align: center; }
.designer-state-placeholder .icon { width: 16px; height: 16px; }.designer-state-placeholder strong { font-size: 8px; }.designer-state-placeholder small { font-size: 6px; }
.designer-state-placeholder.is-loading { width: 100%; justify-items: start; }.designer-state-placeholder.is-loading span { width: 100%; height: 7px; border-radius: 999px; background: linear-gradient(90deg, #e6e9ef, #f5f6f8, #e6e9ef); }.designer-state-placeholder.is-loading span:nth-child(2) { width: 62%; }
.designer-state-placeholder.is-error { color: #a13a31; }.designer-state-placeholder.is-complete { color: #168653; }

.designer-inspector { display: grid; gap: 12px; }
.designer-inspector > .panel { padding: 14px; }
.designer-inspector h2 { margin: 4px 0 10px; font-size: 13px; }
.designer-readiness dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin: 12px 0 0; }
.designer-readiness dl div { padding: 7px; border-radius: 7px; background: #f5f6f8; }
.designer-readiness dt { color: #7c8490; font-size: 6px; }.designer-readiness dd { margin: 3px 0 0; font-size: 11px; font-weight: 850; }
.designer-preview-coverage { display: grid; gap: 7px; }
.designer-preview-coverage .checkbox-field { padding: 7px; border: 1px solid #e2e5eb; border-radius: 7px; background: #fafbfc; text-transform: capitalize; }
.designer-history { position: static; }
.designer-savebar { z-index: 60; }

@media (max-width: 1320px) {
  .designer-toolbar { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
  .designer-workspace { grid-template-columns: 210px minmax(440px, 1fr); }
  .designer-inspector { position: static; grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
  .designer-toolbar, .designer-workspace { grid-template-columns: 1fr; }
  .designer-library { position: static; max-height: none; }
  .designer-library-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .designer-inspector { grid-column: auto; grid-template-columns: 1fr; }
  .designer-canvas-panel { padding: 8px; }
}

@media (max-width: 680px) {
  .designer-toolbar { gap: 10px; }
  .designer-library-list { grid-template-columns: 1fr; }
  .designer-stage { padding: 7px; }
  .designer-canvas { padding: 7px; gap: 7px; }
  .designer-element > header { align-items: flex-start; }
  .designer-savebar { position: static; align-items: stretch; flex-direction: column; margin-top: 14px; }
  .designer-savebar > div:last-child { display: grid; grid-template-columns: 1fr; }
.designer-savebar .button { width: 100%; }
}

/* Functional Brand Profile v0.1 */
.brand-profile-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: #111722; }
.brand-profile-mark img { width: 21px; height: 21px; }
.brand-profile-list .button { white-space: nowrap; }
.brand-profile-editor-heading .page-heading { margin-bottom: 18px; }
.brand-profile-editor-form { padding-bottom: 84px; }
.brand-profile-basics { padding: 18px; margin-bottom: 16px; }
.brand-profile-basic-grid { display: grid; grid-template-columns: minmax(220px, 1.4fr) minmax(150px, .7fr) minmax(240px, 1fr); gap: 13px; align-items: end; }
.brand-profile-basic-grid > label, .brand-token-groups label, .brand-label-grid label { display: grid; gap: 6px; color: #59616d; font-size: 9px; font-weight: 800; }
.brand-profile-basic-grid input, .brand-profile-basic-grid select, .brand-token-groups input, .brand-token-groups select, .brand-label-grid input { width: 100%; height: 40px; min-width: 0; padding: 0 10px; border: 1px solid #d8dce5; border-radius: 8px; color: #17191d; background: #fff; font: inherit; }
.brand-profile-basic-grid input:focus, .brand-profile-basic-grid select:focus, .brand-token-groups input:focus, .brand-token-groups select:focus, .brand-label-grid input:focus { border-color: #7387f6; outline: 0; box-shadow: 0 0 0 3px rgb(79 107 255 / 10%); }
.brand-asset-toggle { align-self: stretch; }
.brand-switch { min-height: 40px; display: flex; align-items: center; gap: 8px; padding: 7px 9px; border: 1px solid #d8dce5; border-radius: 8px; background: #fafbfc; }
.brand-switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.brand-switch i { position: relative; width: 34px; height: 19px; flex: 0 0 auto; border-radius: 999px; background: #c9ced7; transition: background .16s ease; }
.brand-switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 13px; height: 13px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(20 25 35 / 22%); transition: transform .16s ease; }
.brand-switch input:checked + i { background: #2955f3; }
.brand-switch input:checked + i::after { transform: translateX(15px); }
.brand-switch input:focus-visible + i { outline: 3px solid rgb(41 85 243 / 25%); outline-offset: 2px; }
.brand-switch b { color: #56606d; font-size: 8px; }
.brand-profile-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.brand-profile-main, .brand-profile-sidebar { display: grid; gap: 16px; min-width: 0; }
.brand-profile-sidebar { position: sticky; top: 80px; }
.brand-section, .brand-profile-sidebar > .panel { padding: 20px; }
.brand-section .form-heading { margin-bottom: 17px; }
.brand-section .form-heading h2, .brand-profile-sidebar h2 { margin: 3px 0 6px; font-size: 16px; }
.brand-section .form-heading p:last-child, .brand-preview-note { color: #777f8b; font-size: 9px; line-height: 1.5; }
.brand-preset-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.brand-preset { min-width: 0; display: grid; grid-template-columns: 45px minmax(0, 1fr); gap: 2px 10px; align-items: center; padding: 11px; border: 1px solid #dce1e9; border-radius: 11px; color: #252a32; background: #fff; text-align: left; cursor: pointer; }
.brand-preset:hover { border-color: #aebafa; background: #fafbff; }
.brand-preset.is-active { border-color: #7186f8; background: #f5f7ff; box-shadow: 0 0 0 2px rgb(79 107 255 / 9%); }
.brand-preset strong, .brand-preset small { min-width: 0; display: block; }
.brand-preset strong { font-size: 10px; }.brand-preset small { color: #7a828e; font-size: 7px; }
.brand-preset-swatches { grid-row: 1 / 3; display: flex; width: 43px; height: 35px; overflow: hidden; border: 1px solid rgb(20 25 35 / 10%); border-radius: 8px; }
.brand-preset-swatches i { flex: 1; }.preset-configux i:nth-child(1) { background: #2955f3; }.preset-configux i:nth-child(2) { background: #f5f7f6; }.preset-configux i:nth-child(3) { background: #11131a; }
.preset-ink i:nth-child(1) { background: #6b7cff; }.preset-ink i:nth-child(2) { background: #11141c; }.preset-ink i:nth-child(3) { background: #f8faff; }
.preset-warm i:nth-child(1) { background: #8a3f1d; }.preset-warm i:nth-child(2) { background: #fff9f4; }.preset-warm i:nth-child(3) { background: #2b1810; }
.brand-contrast-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-bottom: 15px; }
.brand-contrast-card { display: grid; grid-template-columns: 42px minmax(0, 1fr) 20px; gap: 10px; align-items: center; padding: 10px; border: 1px solid #e0e4ea; border-radius: 10px; background: #fafbfc; }
.brand-contrast-card.is-pass { border-color: #b9dfce; background: #f5fbf8; }.brand-contrast-card.is-fail { border-color: #efc2bc; background: #fff7f6; }
.brand-contrast-sample { width: 40px; height: 40px; padding: 3px; border: 1px solid rgb(0 0 0 / 8%); border-radius: 8px; background: #fff; }
.brand-contrast-card strong, .brand-contrast-card small { display: block; }.brand-contrast-card strong { font-size: 9px; }.brand-contrast-card small { margin-top: 3px; color: #737b87; font-size: 7px; }.brand-contrast-card b { font-size: 14px; }.brand-contrast-card.is-pass b { color: #168653; }.brand-contrast-card.is-fail b { color: #b42318; }
.brand-color-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.brand-color-field { min-width: 0; display: grid; grid-template-columns: 1fr auto; gap: 4px 7px; padding: 9px; border: 1px solid #e1e4ea; border-radius: 9px; background: #fff; }
.brand-color-control { min-width: 0; display: flex; align-items: center; gap: 7px; }
.brand-color-control input { width: 28px; height: 28px; flex: 0 0 auto; padding: 2px; border: 1px solid #d7dbe3; border-radius: 7px; background: #fff; cursor: pointer; }
.brand-color-control b { overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }.brand-color-field code { align-self: center; color: #646c78; font-size: 7px; }.brand-color-field small { grid-column: 1 / -1; color: #89909a; font-size: 6px; line-height: 1.35; }
.brand-token-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.brand-token-groups fieldset { min-width: 0; display: grid; gap: 10px; margin: 0; padding: 13px; border: 1px solid #e0e4eb; border-radius: 11px; }
.brand-token-groups legend { padding: 0 5px; color: #242a33; font-size: 10px; font-weight: 850; }
.brand-inline-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }.brand-inline-fields.thirds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.brand-locale-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.brand-locale-panel { min-width: 0; padding: 14px; border: 1px solid #dde1e9; border-radius: 11px; background: #fafbfc; }
.brand-locale-panel > header { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }.brand-locale-panel > header strong, .brand-locale-panel > header small { display: block; }.brand-locale-panel > header strong { font-size: 10px; }.brand-locale-panel > header small { margin-top: 2px; color: #858d98; font-size: 7px; }
.brand-locale-code { width: 34px; height: 28px; display: grid; place-items: center; border-radius: 7px; color: #fff; background: #1b2230; font-size: 8px; font-weight: 900; }
.brand-label-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.brand-preview-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; margin-bottom: 13px; }.brand-preview-heading select { height: 32px; padding: 0 8px; border: 1px solid #d9dde5; border-radius: 7px; background: #fff; font-size: 8px; }
.brand-live-preview { overflow: hidden; border: 1px solid var(--brand-border); border-radius: var(--brand-radius-large); color: var(--brand-text); background: var(--brand-surface); font-family: var(--brand-font); font-weight: var(--brand-body-weight); box-shadow: 0 10px 28px rgb(20 27 43 / 10%); }
.brand-live-preview { border-color: #dce1e9; border-radius: 14px; background: #f5f7f9; }
.brand-live-preview > img { display: block; width: 100%; height: auto; }
.brand-live-preview > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px; border-bottom: 1px solid var(--brand-border); }.brand-live-preview > header button { padding: 6px 8px; border: 1px solid var(--brand-border); border-radius: var(--brand-radius-small); color: var(--brand-text); background: var(--brand-surface-muted); font-size: 7px; }
.brand-preview-logo { min-width: 0; display: flex; align-items: center; gap: 7px; }.brand-preview-logo img, .brand-preview-logo > span { width: 24px; height: 24px; display: grid; place-items: center; padding: 4px; border-radius: var(--brand-radius-small); color: var(--brand-accent-contrast); background: var(--brand-accent); }.brand-preview-logo strong { overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.brand-preview-body { display: grid; grid-template-columns: 1.1fr .9fr; min-height: 330px; }.brand-preview-viewer { display: grid; place-items: center; align-content: center; gap: 8px; padding: 15px; color: var(--brand-text-muted); background: var(--brand-viewer); text-align: center; }.brand-preview-viewer .icon { width: 44px; height: 44px; color: var(--brand-accent); }.brand-preview-viewer span { font-size: 7px; }
.brand-preview-body aside { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-left: 1px solid var(--brand-border); }.brand-preview-body aside > p { margin: 0; color: var(--brand-accent); font-size: 6px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }.brand-preview-body h3 { margin: 0; font-size: 14px; font-weight: var(--brand-heading-weight); }.brand-preview-muted { color: var(--brand-text-muted); font-size: 7px; line-height: 1.4; }
.brand-preview-choice { display: flex; align-items: center; justify-content: space-between; gap: 7px; padding: 9px; border: 1px solid var(--brand-border); border-radius: var(--brand-radius-medium); font-size: 7px; }.brand-preview-choice.is-selected { border-color: var(--brand-focus); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand-focus) 15%, transparent); }.brand-preview-choice b { color: var(--brand-accent); }
.brand-preview-total { display: flex; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 9px; border-top: 1px solid var(--brand-border); font-size: 8px; }.brand-preview-cta, .brand-preview-reset { width: 100%; min-height: 34px; border-radius: var(--brand-radius-medium); font-size: 8px; font-weight: 850; }.brand-preview-cta { border: 1px solid var(--brand-accent); color: var(--brand-accent-contrast); background: var(--brand-accent); }.brand-preview-reset { border: 1px solid var(--brand-border); color: var(--brand-text); background: var(--brand-surface-muted); }
.brand-preview-note { margin: 11px 0 0; }
.brand-profile-readiness .issue-chip-list { margin: 9px 0 13px; }.brand-profile-readiness dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin: 0; }.brand-profile-readiness dl div { padding: 8px; border-radius: 8px; background: #f5f6f8; }.brand-profile-readiness dt { color: #7c8490; font-size: 7px; }.brand-profile-readiness dd { margin: 3px 0 0; font-size: 11px; font-weight: 850; }
.brand-profile-savebar { z-index: 65; }

@media (max-width: 1240px) {
  .brand-profile-layout { grid-template-columns: minmax(0, 1fr) 320px; }
  .brand-color-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-token-groups { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .brand-profile-basic-grid, .brand-profile-layout { grid-template-columns: 1fr; }
  .brand-profile-sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-preview-panel { grid-column: 1 / -1; }
  .brand-profile-savebar { left: 14px; right: 14px; }
}
@media (max-width: 680px) {
  .brand-profile-editor-form { padding-bottom: 122px; }
  .brand-section, .brand-profile-sidebar > .panel, .brand-profile-basics { padding: 14px; }
  .brand-preset-grid, .brand-contrast-grid, .brand-color-grid, .brand-locale-grid, .brand-profile-sidebar { grid-template-columns: 1fr; }
  .brand-label-grid { grid-template-columns: 1fr; }
  .brand-preview-body { grid-template-columns: 1fr; }.brand-preview-viewer { min-height: 210px; }.brand-preview-body aside { border-top: 1px solid var(--brand-border); border-left: 0; }
  .brand-profile-savebar { align-items: stretch; flex-direction: column; }.brand-profile-savebar > div:last-child { display: grid; grid-template-columns: 1fr; }.brand-profile-savebar .button { width: 100%; }
}

/* Blok 18B - functional Product Setup authoring */
.button-small { min-height: 32px; padding: 0 10px; font-size: 9px; }
.back-link { display: inline-flex; margin-bottom: 12px; color: #4f6bff; font-size: 10px; font-weight: 800; text-decoration: none; }
.product-setup-list .button { white-space: nowrap; }
.product-setup-editor-heading .page-heading { margin-bottom: 18px; }
.product-setup-editor-form { padding-bottom: 82px; }
.product-setup-editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 16px; align-items: start; }
.product-setup-editor-main, .product-setup-steps, .product-setup-groups, .product-setup-options { display: grid; gap: 14px; min-width: 0; }
.product-setup-basics { padding: 20px; }
.product-setup-model-asset { display: grid; gap: 14px; padding: 20px; }
.product-setup-asset-state { display: flex; gap: 11px; align-items: flex-start; padding: 13px; border: 1px solid #dfe3ea; border-radius: 11px; background: #f8f9fb; }
.product-setup-asset-state.is-ready { border-color: #b8dfcc; background: #f4fbf7; }
.product-setup-asset-state.is-blocked { border-color: #ecd6a8; background: #fffaf0; }
.product-setup-asset-state .icon { width: 18px; height: 18px; flex: 0 0 auto; color: #4f6bff; }
.product-setup-asset-state strong, .product-setup-asset-state p, .product-setup-asset-state code { display: block; }
.product-setup-asset-state p { margin: 4px 0 0; color: #69727e; font-size: 9px; line-height: 1.5; }
.product-setup-asset-state code { max-width: 100%; margin-top: 7px; overflow: hidden; color: #7b8490; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.product-setup-glb-picker { margin-top: 0; }
.product-setup-field-grid { display: grid; gap: 12px; }
.basics-fields { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.group-fields { grid-template-columns: minmax(180px, 1fr) minmax(180px, .8fr) minmax(210px, .8fr); align-items: end; }
.option-fields { grid-template-columns: minmax(170px, 1fr) minmax(135px, .55fr) minmax(150px, .7fr) minmax(180px, .65fr); align-items: end; }
.product-setup-field-grid label, .product-setup-step-label { display: grid; gap: 6px; color: #555f69; font-size: 9px; font-weight: 800; }
.product-setup-field-grid input, .product-setup-field-grid select, .product-setup-step-label input { width: 100%; height: 40px; min-width: 0; padding: 0 11px; border: 1px solid #d8dce5; border-radius: 8px; color: #17191d; background: #fff; font-size: 10px; }
.product-setup-field-grid input:focus, .product-setup-field-grid select:focus, .product-setup-step-label input:focus { border-color: #7387f6; outline: 0; box-shadow: 0 0 0 3px rgb(79 107 255 / 10%); }
.product-setup-field-grid input:disabled, .product-setup-field-grid select:disabled, .product-setup-step-label input:disabled { color: #676d78; background: #f5f6f8; }
.checkbox-field { min-height: 40px; display: flex !important; grid-template-columns: auto 1fr; flex-direction: row; align-items: center; gap: 9px !important; padding: 0 11px; border: 1px solid #d8dce5; border-radius: 8px; color: #2d333b !important; background: #fff; }
.checkbox-field input { width: 15px; height: 15px; padding: 0; accent-color: #4f6bff; }
.product-setup-structure-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 5px; }
.product-setup-structure-heading h2 { margin: 2px 0 0; font-size: 18px; }
.product-setup-step { padding: 18px; border: 1px solid #d9ddeb; border-radius: 14px; background: #fff; box-shadow: 0 4px 14px rgb(20 28 45 / 4%); }
.product-setup-step:focus, .product-setup-group:focus, .product-setup-option:focus { outline: 3px solid rgb(79 107 255 / 13%); outline-offset: 2px; }
.product-setup-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.product-setup-card-heading h2, .product-setup-card-heading h3, .product-setup-card-heading h4 { margin: 2px 0 0; color: #16191e; }
.product-setup-card-heading h2 { font-size: 17px; }
.product-setup-card-heading h3 { font-size: 14px; }
.product-setup-card-heading h4 { font-size: 12px; }
.product-setup-step-label { max-width: 520px; margin-bottom: 15px; }
.product-setup-group { padding: 15px; border: 1px solid #cfd6f8; border-radius: 12px; background: #fafbff; }
.product-setup-option { padding: 13px; border: 1px solid #e1e4eb; border-radius: 10px; background: #fff; }
.add-entity { margin-top: 13px; }
.product-setup-editor-sidebar { position: sticky; top: 82px; display: grid; gap: 14px; }
.product-setup-editor-sidebar .panel { padding: 17px; }
.product-setup-editor-sidebar h2 { margin: 3px 0 11px; font-size: 15px; }
.product-setup-readiness > p:last-child { margin: 12px 0 0; color: #78808b; font-size: 9px; line-height: 1.55; }
.issue-chip-list { display: flex; flex-wrap: wrap; gap: 6px; }
.issue-chip-list span { padding: 5px 8px; border-radius: 999px; color: #6d4c05; background: #fff3cd; font-size: 8px; font-weight: 800; text-transform: capitalize; }
.product-setup-readiness dl { display: grid; gap: 7px; margin: 14px 0 0; }
.product-setup-readiness dl div { display: flex; justify-content: space-between; padding-top: 7px; border-top: 1px solid #eceef3; font-size: 9px; }
.product-setup-readiness dt { color: #7c838c; }
.product-setup-readiness dd { margin: 0; color: #1f2329; font-weight: 800; }
.product-setup-history ol { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.product-setup-history li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 9px; align-items: start; padding: 9px; border: 1px solid #e3e6ed; border-radius: 9px; }
.product-setup-history li > span { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 8px; color: #616a75; background: #f0f2f5; font-size: 9px; font-weight: 900; }
.product-setup-history li.is-current { border-color: #b9c4ff; background: #f7f8ff; }
.product-setup-history li.is-current > span { color: #fff; background: #4f6bff; }
.product-setup-history li div { min-width: 0; }
.product-setup-history strong { display: block; font-size: 9px; }
.product-setup-history code { display: block; margin-top: 3px; overflow: hidden; color: #858c96; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.product-setup-automapping { padding: 20px; }
.automapping-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.automapping-heading > div { max-width: 720px; }
.automapping-heading h2 { margin: 3px 0 6px; font-size: 18px; letter-spacing: -.02em; }
.automapping-heading p:last-child { margin: 0; color: #6d7580; font-size: 10px; line-height: 1.55; }
.automapping-summary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 17px; }
.automapping-summary div { padding: 11px; border: 1px solid #e3e6ed; border-radius: 10px; background: #f8f9fb; }
.automapping-summary strong, .automapping-summary span { display: block; }
.automapping-summary strong { color: #16191e; font-size: 18px; }
.automapping-summary span { margin-top: 3px; color: #737b86; font-size: 8px; font-weight: 750; }
.automapping-safety { display: flex; gap: 9px; margin-top: 12px; padding: 10px 11px; border: 1px solid #dce2ff; border-radius: 10px; color: #4e5870; background: #f6f8ff; font-size: 9px; line-height: 1.5; }
.automapping-safety .icon { width: 15px; height: 15px; flex: 0 0 auto; color: #4f6bff; }
.automapping-safety strong { color: #26345f; }
.automapping-list { display: grid; gap: 10px; margin-top: 14px; }
.automapping-suggestion { padding: 13px; border: 1px solid #dfe3ea; border-left: 4px solid #96a0ae; border-radius: 11px; background: #fff; }
.automapping-suggestion:focus { outline: 3px solid rgb(79 107 255 / 13%); outline-offset: 2px; }
.automapping-suggestion.state-pending { border-left-color: #4f6bff; }
.automapping-suggestion.state-review_required { border-left-color: #d98b2b; background: #fffdf9; }
.automapping-suggestion.state-accepted { border-left-color: #25945d; background: #fbfefc; }
.automapping-suggestion.state-rejected { border-left-color: #8d949e; background: #f8f9fa; }
.automapping-suggestion > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.automapping-suggestion > header strong { display: block; margin-top: 5px; font-size: 11px; line-height: 1.4; }
.automapping-state, .confidence-badge { display: inline-flex; align-items: center; min-height: 23px; padding: 0 8px; border-radius: 999px; font-size: 7px; font-weight: 850; text-transform: uppercase; letter-spacing: .035em; }
.automapping-state { color: #56606d; background: #edf0f4; }
.state-pending .automapping-state { color: #354bc8; background: #eef1ff; }
.state-review_required .automapping-state { color: #955809; background: #fff0dc; }
.state-accepted .automapping-state { color: #167348; background: #e9f7ef; }
.confidence-badge { flex: 0 0 auto; color: #8c570f; background: #fff2df; }
.confidence-badge.is-exact { color: #167348; background: #e9f7ef; }
.automapping-detail { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.automapping-detail span { padding: 6px 8px; border-radius: 7px; color: #6e7681; background: #f4f5f7; font-size: 8px; }
.automapping-detail b { color: #343a43; font-weight: 800; }
.automapping-suggestion details { margin-top: 10px; color: #6b7380; font-size: 8px; }
.automapping-suggestion summary { width: fit-content; color: #4b5fcf; font-weight: 800; cursor: pointer; }
.automapping-suggestion details ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.automapping-suggestion details li { padding: 5px 7px; border: 1px solid #e4e7ed; border-radius: 6px; background: #fafbfc; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 7px; }
.automapping-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.automapping-empty { padding: 20px; border: 1px dashed #cfd5df; border-radius: 11px; text-align: center; background: #fafbfc; }
.automapping-empty strong { font-size: 11px; }
.automapping-empty p { max-width: 560px; margin: 6px auto 0; color: #737b86; font-size: 9px; line-height: 1.5; }
.product-setup-savebar { position: fixed; z-index: 20; right: 24px; bottom: 14px; left: calc(var(--sidebar-width) + 24px); min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 13px; border: 1px solid #dce0e8; border-radius: 13px; background: rgb(255 255 255 / 96%); box-shadow: 0 10px 30px rgb(10 18 35 / 14%); backdrop-filter: blur(10px); }
.product-setup-savebar > div { display: flex; align-items: center; gap: 10px; }
.product-setup-savebar > div:first-child > .icon { width: 17px; color: #4f6bff; }
.product-setup-savebar strong, .product-setup-savebar small { display: block; }
.product-setup-savebar strong { font-size: 9px; }
.product-setup-savebar small { margin-top: 2px; color: #7b838d; font-size: 8px; }

@media (max-width: 1180px) {
  .basics-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .group-fields, .option-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .automapping-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .product-setup-editor-layout { grid-template-columns: 1fr; }
  .product-setup-editor-sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-setup-savebar { left: 14px; right: 14px; }
}

@media (max-width: 680px) {
  .product-setup-editor-form { padding-bottom: 0; }
  .product-setup-basics, .product-setup-model-asset, .product-setup-step { padding: 14px; }
  .product-setup-automapping { padding: 14px; }
  .automapping-heading, .automapping-suggestion > header { align-items: stretch; flex-direction: column; }
  .automapping-heading .button { width: 100%; }
  .automapping-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .confidence-badge { align-self: flex-start; }
  .basics-fields, .group-fields, .option-fields, .product-setup-editor-sidebar { grid-template-columns: 1fr; }
  .product-setup-card-heading, .product-setup-structure-heading { align-items: stretch; flex-direction: column; }
  .product-setup-card-heading .button, .product-setup-structure-heading .button, .add-entity { width: 100%; }
  .product-setup-savebar { position: static; align-items: stretch; flex-direction: column; margin-top: 14px; }
  .product-setup-savebar > div:last-child { display: grid; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 390px) {
  .automapping-summary { grid-template-columns: 1fr 1fr; }
  .automapping-actions { display: grid; grid-template-columns: 1fr; }
  .automapping-actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Block 16E: local clickable UX prototype. */
.ux-prototype { width: min(100%, 1540px); margin: 0 auto; }
.prototype-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.prototype-heading h1 { max-width: 760px; margin: 4px 0 8px; font-size: clamp(30px, 3.5vw, 48px); line-height: 1.02; letter-spacing: -.045em; }
.prototype-heading > div > p:last-child { max-width: 760px; margin: 0; color: #646b76; font-size: 12px; line-height: 1.65; }
.prototype-badge { display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; border: 1px solid #d7dcff; border-radius: 999px; color: #394fd6; background: #f5f6ff; font-size: 9px; font-weight: 750; white-space: nowrap; }
.prototype-badge .icon { width: 14px; height: 14px; }

.prototype-steps { margin-bottom: 12px; overflow: hidden; border: 1px solid #dfe3ed; border-radius: 15px; background: #ffffff; box-shadow: 0 4px 18px rgb(13 13 13 / 4%); }
.prototype-steps ol { display: grid; grid-template-columns: repeat(5, minmax(145px, 1fr)); margin: 0; padding: 0; list-style: none; }
.prototype-steps li { position: relative; min-width: 0; }
.prototype-steps li:not(:last-child)::after { content: ""; position: absolute; z-index: 1; top: 50%; right: -1px; width: 1px; height: 36px; background: #e7e9ef; transform: translateY(-50%); }
.prototype-steps a { min-height: 78px; display: grid; grid-template-columns: 28px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 9px; align-content: center; padding: 12px 15px; color: #656b76; text-decoration: none; }
.prototype-steps a > span { grid-row: 1 / 3; width: 27px; height: 27px; display: grid; place-items: center; align-self: center; border: 1px solid #d9dde6; border-radius: 8px; color: #777e89; background: #f8f9fb; font-size: 9px; font-weight: 800; }
.prototype-steps a > span .icon { width: 14px; height: 14px; }
.prototype-steps strong { align-self: end; color: #26282d; font-size: 10px; }
.prototype-steps small { align-self: start; margin-top: 2px; font-size: 8px; }
.prototype-steps li.is-current a { background: linear-gradient(135deg, #fafaff, #f0f2ff); }
.prototype-steps li.is-current a > span { border-color: #4f6bff; color: #ffffff; background: #4f6bff; box-shadow: 0 0 0 3px rgb(79 107 255 / 12%); }
.prototype-steps li.is-current strong { color: #2f43b5; }
.prototype-steps li.is-complete a > span { border-color: #b9d9c7; color: #168653; background: #edf9f2; }
.prototype-safety { min-height: 38px; display: flex; align-items: center; gap: 8px; padding: 8px 12px; margin-bottom: 15px; border: 1px solid #e1e4eb; border-radius: 10px; color: #626873; background: #fafafa; font-size: 9px; }
.prototype-safety .icon { width: 14px; height: 14px; color: #4f6bff; }

.prototype-stage { overflow: hidden; border: 1px solid #dfe3eb; border-radius: 17px; background: #ffffff; box-shadow: 0 14px 42px rgb(13 13 13 / 7%); }
.prototype-screen-heading { min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 24px; border-bottom: 1px solid #e7e9ef; background: linear-gradient(180deg, #ffffff, #fcfcfd); }
.prototype-screen-heading h2 { margin: 4px 0 5px; font-size: 21px; letter-spacing: -.035em; }
.prototype-screen-heading > div > p:last-child { max-width: 700px; margin: 0; color: #6b7280; font-size: 10px; line-height: 1.55; }
.prototype-readiness { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border: 1px solid #eadbb7; border-radius: 999px; color: #8a5a12; background: #fffaf0; font-size: 9px; font-weight: 750; white-space: nowrap; }
.prototype-readiness.is-ready { border-color: #c8e4d4; color: #168653; background: #f1faf5; }
.prototype-readiness .icon { width: 14px; height: 14px; }
.prototype-footer { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 22px; border-top: 1px solid #e7e9ef; background: #fafbfc; }

.prototype-setup-grid { display: grid; grid-template-columns: 225px minmax(380px, 1fr) 250px; gap: 14px; padding: 18px; background: #f4f5f8; }
.prototype-source-card, .prototype-review-queue, .prototype-logic-canvas { min-width: 0; border: 1px solid #dfe3eb; border-radius: 13px; background: #ffffff; }
.prototype-source-card { align-self: start; padding: 17px; }
.prototype-source-icon { width: 43px; height: 43px; display: grid; place-items: center; margin-bottom: 17px; border-radius: 12px; color: #ffffff; background: linear-gradient(145deg, #4f6bff, #2a377f); box-shadow: 0 9px 20px rgb(79 107 255 / 23%); }
.prototype-source-card h3, .prototype-review-queue h3 { margin: 4px 0 5px; font-size: 14px; }
.prototype-source-card > p:not(.eyebrow), .prototype-review-queue > p:not(.eyebrow) { margin: 0; color: #747b86; font-size: 9px; line-height: 1.55; }
.prototype-source-card dl { display: grid; gap: 8px; margin: 17px 0; }
.prototype-source-card dl div { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 7px; border-bottom: 1px solid #eceef2; font-size: 9px; }
.prototype-source-card dt { color: #747b86; }
.prototype-source-card dd { margin: 0; font-weight: 750; }
.prototype-source-card .button { width: 100%; }
.prototype-logic-canvas { padding: 14px; }
.prototype-logic-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 2px 13px; }
.prototype-logic-toolbar strong, .prototype-logic-toolbar small { display: block; }
.prototype-logic-toolbar strong { font-size: 11px; }
.prototype-logic-toolbar small { margin-top: 3px; color: #7b818b; font-size: 8px; }
.prototype-group-card { margin-top: 10px; padding: 13px; border: 1px solid #e1e4eb; border-radius: 11px; background: #fbfbfc; }
.prototype-group-card header { display: grid; grid-template-columns: 27px minmax(0, 1fr) 28px; gap: 9px; align-items: center; }
.prototype-group-card header > span { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; color: #394fd6; background: #eef1ff; font-size: 8px; font-weight: 800; }
.prototype-group-card h3, .prototype-group-card p { margin: 0; }
.prototype-group-card h3 { font-size: 10px; }
.prototype-group-card p { margin-top: 3px; color: #777e89; font-size: 8px; }
.prototype-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.prototype-options > button { min-width: 0; min-height: 53px; display: flex; align-items: center; gap: 8px; padding: 9px; border: 1px solid #dfe3e9; border-radius: 9px; background: #ffffff; text-align: left; cursor: pointer; }
.prototype-options > button[aria-pressed="true"] { border-color: #4f6bff; background: #f3f5ff; box-shadow: 0 0 0 2px rgb(79 107 255 / 10%); }
.prototype-options i, .prototype-choice-group i { width: 17px; height: 17px; display: block; flex: 0 0 auto; border: 1px solid rgb(13 13 13 / 9%); border-radius: 50%; }
.swatch-ocean { background: #245c73; }
.swatch-graphite { background: #303836; }
.prototype-options span, .prototype-options strong, .prototype-options small { display: block; min-width: 0; }
.prototype-options strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.prototype-options small { margin-top: 3px; color: #737985; font-size: 7px; }
.prototype-review-queue { align-self: start; padding: 17px; }
.prototype-match { display: grid; grid-template-columns: 42px minmax(0, 1fr) 17px; gap: 9px; align-items: center; padding: 10px; margin: 15px 0 11px; border: 1px solid #dce1ff; border-radius: 10px; background: #f6f7ff; }
.match-confidence { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 10px; color: #ffffff; background: #4f6bff; font-size: 9px; font-weight: 800; }
.prototype-match strong, .prototype-match small { display: block; }
.prototype-match strong { font-size: 9px; }
.prototype-match small { margin-top: 3px; color: #6c7280; font-size: 7px; }
.prototype-match .icon { width: 15px; height: 15px; color: #4f6bff; }
.prototype-review-queue .button { width: 100%; }
.prototype-help { display: block; margin-top: 10px; color: #858b95; font-size: 7px; line-height: 1.5; }

.prototype-designer { min-height: 610px; display: grid; grid-template-columns: 190px minmax(480px, 1fr) 215px; background: #eef0f4; }
.prototype-element-palette, .prototype-inspector { padding: 16px; background: #ffffff; }
.prototype-element-palette { border-right: 1px solid #dfe3eb; }
.prototype-inspector { border-left: 1px solid #dfe3eb; }
.prototype-element-palette h3, .prototype-inspector h3 { margin: 4px 0 5px; font-size: 13px; }
.prototype-element-palette > div > p:last-child, .prototype-inspector > p { margin: 0 0 15px; color: #747b86; font-size: 8px; line-height: 1.5; }
.prototype-element-palette > button { width: 100%; min-height: 54px; display: grid; grid-template-columns: 23px minmax(0, 1fr); gap: 8px; align-items: center; padding: 9px; margin-top: 8px; border: 1px solid #dfe3eb; border-radius: 9px; background: #ffffff; text-align: left; cursor: pointer; }
.prototype-element-palette > button[aria-pressed="true"] { border-color: #98a7fa; background: #f5f6ff; }
.prototype-element-palette > button .icon { width: 17px; height: 17px; color: #4f6bff; }
.prototype-element-palette button span, .prototype-element-palette button strong, .prototype-element-palette button small { display: block; }
.prototype-element-palette button strong { font-size: 9px; }
.prototype-element-palette button small { margin-top: 3px; color: #777e89; font-size: 7px; }
.prototype-palette-note { display: flex; gap: 7px; padding: 10px; margin-top: 15px; border-radius: 9px; color: #5f6673; background: #f5f6f8; font-size: 7px; line-height: 1.45; }
.prototype-palette-note .icon { width: 14px; height: 14px; color: #4f6bff; }
.prototype-canvas-wrap { min-width: 0; padding: 14px; }
.prototype-canvas-toolbar { height: 45px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 12px; border: 1px solid #dfe3eb; border-bottom: 0; border-radius: 12px 12px 0 0; background: #ffffff; }
.prototype-canvas-toolbar span, .prototype-canvas-toolbar b, .prototype-canvas-toolbar small { display: block; }
.prototype-canvas-toolbar b { font-size: 9px; }
.prototype-canvas-toolbar small { margin-top: 2px; color: #777e89; font-size: 7px; }
.prototype-canvas-toolbar > div { display: flex; gap: 3px; }
.prototype-canvas { position: relative; min-height: 505px; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(210px, .65fr); overflow: hidden; border: 1px solid #cfd4df; border-radius: 0 0 12px 12px; background: #f8f9fb; }
.prototype-canvas.layout-visual { grid-template-columns: minmax(0, 1fr); }
.prototype-canvas.layout-visual .prototype-customer-panel { position: absolute; z-index: 3; right: 16px; bottom: 16px; width: min(280px, 42%); max-height: calc(100% - 32px); overflow-y: auto; border: 1px solid rgb(255 255 255 / 72%); border-radius: 13px; box-shadow: 0 18px 42px rgb(13 13 13 / 18%); }
.prototype-canvas-viewer { position: relative; min-width: 0; overflow: hidden; border-right: 1px solid #e1e4eb; }
.prototype-floating-heading { position: absolute; z-index: 3; top: 18px; left: 18px; display: grid; padding: 10px 12px; border: 1px solid rgb(255 255 255 / 72%); border-radius: 9px; background: rgb(255 255 255 / 86%); box-shadow: 0 8px 22px rgb(13 13 13 / 8%); backdrop-filter: blur(8px); }
.prototype-floating-heading small { color: #5f6673; font-size: 7px; text-transform: uppercase; letter-spacing: .07em; }
.prototype-floating-heading strong { margin-top: 3px; font-size: 11px; }
.prototype-benefits { position: absolute; z-index: 3; left: 18px; bottom: 17px; display: flex; flex-wrap: wrap; gap: 5px; margin: 0; padding: 0; list-style: none; }
.prototype-benefits li { padding: 6px 8px; border: 1px solid rgb(255 255 255 / 75%); border-radius: 999px; color: #333842; background: rgb(255 255 255 / 86%); font-size: 7px; box-shadow: 0 5px 12px rgb(13 13 13 / 6%); }
.prototype-summary-chip { position: absolute; z-index: 4; right: 13px; top: 13px; padding: 7px 9px; border-radius: 999px; color: #168653; background: #edf9f2; font-size: 7px; font-weight: 750; }
.prototype-inspector > button { width: 100%; display: grid; grid-template-columns: 48px minmax(0, 1fr); grid-template-rows: auto auto; gap: 2px 9px; align-items: center; padding: 10px; margin-top: 9px; border: 1px solid #dfe3eb; border-radius: 10px; background: #ffffff; text-align: left; cursor: pointer; }
.prototype-inspector > button[aria-pressed="true"] { border-color: #4f6bff; background: #f4f5ff; box-shadow: 0 0 0 2px rgb(79 107 255 / 10%); }
.layout-mini { grid-row: 1 / 3; width: 48px; height: 34px; display: block; border: 1px solid #cfd4df; border-radius: 6px; background: linear-gradient(90deg, #e8eaff 0 60%, #ffffff 60%); }
.layout-mini.visual { background: linear-gradient(135deg, #dfe4ff, #ffffff 70%); }
.prototype-inspector button strong { font-size: 8px; }
.prototype-inspector button small { color: #777e89; font-size: 7px; }
.prototype-inspector-note { padding: 11px; margin-top: 15px; border-radius: 9px; background: #f5f6f8; }
.prototype-inspector-note strong { font-size: 8px; }
.prototype-inspector-note p { margin: 5px 0 0; color: #737985; font-size: 7px; line-height: 1.45; }

.prototype-product-visual { position: relative; min-height: 100%; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 50% 43%, #ffffff 0, #eff1f5 52%, #e2e5eb 100%); }
.prototype-product-orbit { position: absolute; border: 1px solid rgb(79 107 255 / 13%); border-radius: 50%; }
.prototype-product-orbit.orbit-a { width: 310px; height: 310px; }
.prototype-product-orbit.orbit-b { width: 205px; height: 205px; }
.prototype-chair-shape { position: relative; z-index: 2; width: 130px; height: 150px; display: grid; place-items: center; border: 1px solid rgb(255 255 255 / 70%); border-radius: 30px 30px 22px 22px; color: #ffffff; background: linear-gradient(145deg, #2b6e89, #173b4b); box-shadow: inset 0 1px 0 rgb(255 255 255 / 30%), 0 28px 50px rgb(20 45 57 / 24%); transform: perspective(550px) rotateY(-18deg) rotateX(3deg); }
.material-graphite .prototype-chair-shape { background: linear-gradient(145deg, #48504e, #202524); box-shadow: inset 0 1px 0 rgb(255 255 255 / 23%), 0 28px 50px rgb(20 25 24 / 24%); }
.prototype-chair-shape .icon { width: 63px; height: 63px; opacity: .85; }
.prototype-viewer-label { position: absolute; z-index: 2; bottom: 15px; padding: 6px 9px; border-radius: 999px; color: #5d6470; background: rgb(255 255 255 / 84%); font-size: 7px; }

.prototype-customer-panel { min-width: 0; padding: 22px; background: #ffffff; }
.prototype-customer-panel h3 { margin: 4px 0 18px; font-size: 20px; letter-spacing: -.035em; }
.prototype-customer-panel.is-compact { padding: 17px; }
.prototype-customer-panel.is-compact h3 { margin-bottom: 13px; font-size: 15px; }
.prototype-choice-group { margin-top: 13px; }
.prototype-choice-group > span { display: block; margin-bottom: 7px; font-size: 8px; font-weight: 750; }
.prototype-choice-group > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.prototype-choice-group button { min-height: 38px; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 7px; border: 1px solid #dfe3eb; border-radius: 8px; background: #ffffff; font-size: 8px; font-weight: 700; cursor: pointer; }
.prototype-choice-group button[aria-pressed="true"] { border-color: var(--prototype-accent, #4f6bff); color: var(--prototype-accent-dark, #2f43b5); background: var(--prototype-soft, #f2f4ff); box-shadow: 0 0 0 2px rgb(79 107 255 / 9%); }
.prototype-price { display: flex; align-items: end; justify-content: space-between; gap: 10px; padding-top: 16px; margin-top: 16px; border-top: 1px solid #e4e6eb; }
.prototype-price span { color: #6b7280; font-size: 8px; }
.prototype-price strong { font-size: 14px; }
.prototype-cta { width: 100%; min-height: 43px; margin-top: 12px; border: 0; border-radius: 9px; color: #ffffff; background: var(--prototype-accent, #4f6bff); font-size: 9px; font-weight: 800; cursor: pointer; box-shadow: 0 8px 18px rgb(79 107 255 / 20%); }

.brand-configux { --prototype-accent: #4f6bff; --prototype-accent-dark: #2f43b5; --prototype-soft: #eef1ff; }
.brand-midnight { --prototype-accent: #111827; --prototype-accent-dark: #020617; --prototype-soft: #eef0f3; }
.brand-warm { --prototype-accent: #9a5c36; --prototype-accent-dark: #653a21; --prototype-soft: #fbf0e8; }

.prototype-brand-grid { display: grid; grid-template-columns: minmax(390px, .8fr) minmax(430px, 1.2fr); gap: 18px; padding: 20px; background: #f4f5f8; }
.prototype-brand-options, .prototype-brand-preview { min-width: 0; border: 1px solid #dfe3eb; border-radius: 13px; background: #ffffff; }
.prototype-brand-options { padding: 17px; }
.prototype-brand-identity { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding-bottom: 17px; border-bottom: 1px solid #e7e9ef; }
.prototype-brand-identity img { width: 44px; height: 38px; padding: 8px; border-radius: 10px; background: #eef1ff; }
.prototype-brand-identity h3, .prototype-brand-identity p { margin: 0; }
.prototype-brand-identity h3 { margin-top: 3px; font-size: 13px; }
.prototype-brand-identity div > p:last-child { margin-top: 3px; color: #777e89; font-size: 8px; }
.prototype-brand-presets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.prototype-brand-presets button { min-width: 0; padding: 10px; border: 1px solid #dfe3eb; border-radius: 10px; background: #ffffff; text-align: left; cursor: pointer; }
.prototype-brand-presets button[aria-pressed="true"] { border-color: #4f6bff; box-shadow: 0 0 0 2px rgb(79 107 255 / 10%); }
.prototype-brand-presets button > span { display: flex; margin-bottom: 10px; }
.prototype-brand-presets i { width: 25px; height: 25px; display: block; margin-right: -5px; border: 2px solid #ffffff; border-radius: 50%; }
.preset-configux i:nth-child(1) { background: #4f6bff; }.preset-configux i:nth-child(2) { background: #0d0d0d; }.preset-configux i:nth-child(3) { background: #f3f4f6; }
.preset-midnight i:nth-child(1) { background: #111827; }.preset-midnight i:nth-child(2) { background: #334155; }.preset-midnight i:nth-child(3) { background: #e2e8f0; }
.preset-warm i:nth-child(1) { background: #9a5c36; }.preset-warm i:nth-child(2) { background: #d9b89c; }.preset-warm i:nth-child(3) { background: #fbf0e8; }
.prototype-brand-presets strong, .prototype-brand-presets small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prototype-brand-presets strong { font-size: 8px; }
.prototype-brand-presets small { margin-top: 3px; color: #777e89; font-size: 7px; }
.prototype-token-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 16px 0 0; }
.prototype-token-list div { padding: 10px; border-radius: 9px; background: #f6f7f9; }
.prototype-token-list dt { color: #777e89; font-size: 7px; }
.prototype-token-list dd { margin: 4px 0 0; font-size: 9px; font-weight: 750; }
.prototype-brand-preview { min-height: 500px; overflow: hidden; }
.prototype-brand-preview-bar { height: 50px; display: flex; align-items: center; gap: 8px; padding: 0 14px; color: #ffffff; background: var(--prototype-accent); }
.prototype-brand-preview-bar img { width: 27px; height: 22px; filter: brightness(0) invert(1); }
.prototype-brand-preview-bar strong { font-size: 10px; }
.prototype-brand-preview-bar span { margin-left: auto; padding: 5px 7px; border: 1px solid rgb(255 255 255 / 23%); border-radius: 999px; font-size: 7px; }
.prototype-brand-preview-content { min-height: 450px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(210px, .55fr); }

.prototype-preview-stage { background: #f8f9fb; }
.prototype-preview-frame { margin: 20px; overflow: hidden; border: 1px solid #d2d7e1; border-radius: 16px; background: #ffffff; box-shadow: 0 20px 55px rgb(13 13 13 / 13%); }
.prototype-preview-frame > header { height: 58px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 18px; color: #ffffff; background: var(--prototype-accent); }
.prototype-preview-frame > header a, .prototype-preview-frame > header button { border: 0; color: inherit; background: transparent; font-size: 8px; font-weight: 700; cursor: pointer; text-decoration: none; }
.prototype-preview-frame > header a { display: flex; align-items: center; gap: 6px; justify-self: start; }
.prototype-preview-frame > header a .icon { width: 14px; height: 14px; transform: rotate(180deg); }
.prototype-preview-frame > header > div { display: flex; align-items: center; gap: 8px; }
.prototype-preview-frame > header img { width: 28px; height: 23px; filter: brightness(0) invert(1); }
.prototype-preview-frame > header strong { font-size: 11px; }
.prototype-preview-frame > header button { justify-self: end; padding: 7px 9px; border: 1px solid rgb(255 255 255 / 25%); border-radius: 8px; }
.prototype-customer-shell { min-height: 580px; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr); }
.prototype-preview-frame.layout-visual .prototype-customer-shell { position: relative; grid-template-columns: 1fr; }
.prototype-preview-frame.layout-visual .prototype-customer-panel { position: absolute; z-index: 4; right: 24px; bottom: 24px; width: min(350px, 42%); max-height: calc(100% - 48px); overflow-y: auto; border: 1px solid rgb(255 255 255 / 72%); border-radius: 14px; box-shadow: 0 22px 50px rgb(13 13 13 / 20%); }
.prototype-preview-frame > footer { min-height: 45px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 18px; border-top: 1px solid #e6e8ed; color: #6b7280; background: #fafafa; font-size: 8px; }
.prototype-preview-frame > footer span { display: flex; align-items: center; gap: 6px; }
.prototype-preview-frame > footer .icon { width: 13px; height: 13px; color: #4f6bff; }
.prototype-preview-frame > footer button { border: 0; color: var(--prototype-accent); background: transparent; font-size: 8px; font-weight: 750; cursor: pointer; }

.prototype-review-layout { display: grid; grid-template-columns: minmax(430px, 1.25fr) minmax(280px, .75fr); gap: 18px; padding: 20px; background: #f4f5f8; }
.prototype-dependencies, .prototype-readiness-card { min-width: 0; padding: 18px; border: 1px solid #dfe3eb; border-radius: 13px; background: #ffffff; }
.prototype-dependencies h3, .prototype-readiness-card h3 { margin: 0 0 14px; font-size: 14px; }
.prototype-dependencies article { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 11px; align-items: center; padding: 12px 0; border-bottom: 1px solid #eceef2; }
.dependency-icon { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 10px; color: #394fd6; background: #eef1ff; font-size: 8px; font-weight: 850; }
.prototype-dependencies strong, .prototype-dependencies small { display: block; }
.prototype-dependencies strong { font-size: 10px; }
.prototype-dependencies small { margin-top: 3px; color: #777e89; font-size: 8px; }
.prototype-dependencies article > span:last-child { padding: 5px 7px; border-radius: 999px; color: #555d69; background: #f1f2f5; font-size: 7px; font-weight: 700; }
.prototype-readiness-card h3 { margin-top: 4px; }
.prototype-readiness-card ul { display: grid; gap: 9px; margin: 0 0 16px; padding: 0; list-style: none; }
.prototype-readiness-card li { display: grid; grid-template-columns: 27px minmax(0, 1fr); gap: 9px; align-items: center; }
.prototype-readiness-card li > svg, .prototype-readiness-card li > :first-child { width: 26px; height: 26px; display: grid; place-items: center; padding: 6px; border-radius: 8px; color: #7b818b; background: #eceef2; font-size: 8px; }
.prototype-readiness-card li.is-done > svg, .prototype-readiness-card li.is-done > :first-child { color: #168653; background: #edf9f2; }
.prototype-readiness-card li span, .prototype-readiness-card li strong, .prototype-readiness-card li small { display: block; }
.prototype-readiness-card li strong { font-size: 9px; }
.prototype-readiness-card li small { margin-top: 3px; color: #777e89; font-size: 7px; }
.prototype-readiness-card .button { width: 100%; }
.prototype-readiness-card > small { display: flex; gap: 6px; margin-top: 10px; color: #777e89; font-size: 7px; line-height: 1.45; }
.prototype-readiness-card > small .icon { width: 13px; height: 13px; flex: 0 0 auto; color: #4f6bff; }

.prototype-human-review { padding: 22px; border-top: 1px solid #dfe3eb; background: #ffffff; }
.prototype-human-review > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.prototype-human-review > header h3 { margin: 4px 0 5px; font-size: 18px; letter-spacing: -.025em; }
.prototype-human-review > header p:last-child { max-width: 680px; margin: 0; color: #69707c; font-size: 9px; line-height: 1.5; }
.prototype-review-status { flex: 0 0 auto; padding: 8px 10px; border: 1px solid #e2e5eb; border-radius: 999px; color: #656c77; background: #f5f6f8; font-size: 8px; font-weight: 800; }
.prototype-review-status.has-changes { border-color: #f3c991; color: #9b5c13; background: #fff7eb; }
.prototype-review-status.is-approved { border-color: #bee5cf; color: #168653; background: #edf9f2; }
.prototype-human-review-layout { display: grid; grid-template-columns: minmax(500px, 1.4fr) minmax(270px, .6fr); gap: 16px; align-items: start; }
.prototype-review-decisions { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.prototype-review-decision { min-width: 0; padding: 13px; border: 1px solid #dfe3eb; border-radius: 12px; background: #ffffff; box-shadow: 0 8px 24px rgb(13 13 13 / 4%); }
.prototype-review-decision.is-approved { border-color: #b9e1ca; background: #fbfefc; }
.prototype-review-decision.is-changes { border-color: #f0c88f; background: #fffdf9; }
.prototype-review-decision > header { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 9px; align-items: center; }
.prototype-review-decision > header > span { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 8px; color: #394fd6; background: #eef1ff; font-size: 7px; font-weight: 850; }
.prototype-review-decision > header strong, .prototype-review-decision > header small { display: block; }
.prototype-review-decision > header strong { font-size: 9px; }
.prototype-review-decision > header small { margin-top: 2px; color: #777e89; font-size: 7px; }
.prototype-review-decision > header a { color: #4358d8; font-size: 7px; font-weight: 800; text-decoration: none; }
.prototype-review-decision > p { min-height: 42px; margin: 12px 0; color: #5f6672; font-size: 8px; line-height: 1.5; }
.prototype-review-decision > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.prototype-review-decision button { min-height: 34px; display: flex; align-items: center; justify-content: center; gap: 5px; padding: 6px; border: 1px solid #dfe3eb; border-radius: 8px; color: #4f5662; background: #ffffff; font-size: 7px; font-weight: 800; cursor: pointer; }
.prototype-review-decision button .icon { width: 12px; height: 12px; }
.prototype-review-decision button[aria-pressed="true"][data-decision="approved"] { border-color: #8bc8a5; color: #137344; background: #edf9f2; }
.prototype-review-decision button[aria-pressed="true"][data-decision="changes"] { border-color: #e8b66f; color: #92530d; background: #fff5e7; }
.prototype-review-package-summary { min-width: 0; padding: 17px; border: 1px solid #dfe3eb; border-radius: 13px; background: #f7f8fa; }
.prototype-review-package-summary h3 { margin: 4px 0 14px; font-size: 15px; letter-spacing: -.02em; }
.prototype-review-package-summary dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0; }
.prototype-review-package-summary dl div { padding: 9px; border-radius: 9px; background: #ffffff; }
.prototype-review-package-summary dt { color: #747b87; font-size: 7px; }
.prototype-review-package-summary dd { margin: 5px 0 0; font-size: 15px; font-weight: 850; }
.prototype-qa-evidence { padding: 13px; margin-top: 12px; border-radius: 10px; background: #ffffff; }
.prototype-qa-evidence > strong { font-size: 9px; }
.prototype-qa-evidence ul { display: grid; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.prototype-qa-evidence li { display: flex; align-items: center; gap: 7px; color: #525965; font-size: 8px; }
.prototype-qa-evidence li .icon { width: 14px; height: 14px; padding: 2px; border-radius: 50%; color: #168653; background: #e8f7ef; }
.prototype-review-boundary { display: flex; gap: 7px; margin: 12px 0 0; color: #6c7380; font-size: 7px; line-height: 1.5; }
.prototype-review-boundary .icon { width: 14px; height: 14px; flex: 0 0 auto; color: #4f6bff; }

@media (max-width: 1280px) {
  .prototype-setup-grid { grid-template-columns: 210px minmax(380px, 1fr); }
  .prototype-review-queue { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(180px, .5fr) minmax(240px, 1fr) auto; gap: 12px; align-items: center; }
  .prototype-review-queue .eyebrow, .prototype-review-queue h3, .prototype-review-queue > p { grid-column: 1; }
  .prototype-review-queue h3 { align-self: end; }
  .prototype-review-queue > p { align-self: start; }
  .prototype-review-queue .prototype-match { grid-column: 2; grid-row: 1 / 4; margin: 0; }
  .prototype-review-queue .button { grid-column: 3; grid-row: 1 / 4; width: auto; }
  .prototype-review-queue .prototype-help { display: none; }
  .prototype-designer { grid-template-columns: 180px minmax(430px, 1fr); }
  .prototype-inspector { grid-column: 1 / -1; display: grid; grid-template-columns: auto repeat(2, minmax(190px, 1fr)) minmax(220px, 1fr); gap: 10px; align-items: center; border-top: 1px solid #dfe3eb; border-left: 0; }
  .prototype-inspector > .eyebrow, .prototype-inspector > h3 { display: none; }
  .prototype-inspector > button, .prototype-inspector-note { margin-top: 0; }
}

@media (max-width: 900px) {
  .prototype-steps { overflow-x: auto; }
  .prototype-steps ol { width: 780px; }
  .prototype-setup-grid, .prototype-brand-grid, .prototype-review-layout { grid-template-columns: 1fr; }
  .prototype-review-queue { display: block; }
  .prototype-review-queue .prototype-match { margin: 15px 0 11px; }
  .prototype-review-queue .button { width: 100%; }
  .prototype-review-queue .prototype-help { display: block; }
  .prototype-designer { grid-template-columns: 1fr; }
  .prototype-element-palette { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; border-right: 0; border-bottom: 1px solid #dfe3eb; }
  .prototype-element-palette > div:first-child, .prototype-palette-note { grid-column: 1 / -1; }
  .prototype-element-palette > button { margin-top: 0; }
  .prototype-inspector { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prototype-inspector-note { grid-column: 1 / -1; }
  .prototype-brand-preview-content { grid-template-columns: minmax(0, 1fr) minmax(220px, .6fr); }
  .prototype-customer-shell { grid-template-columns: minmax(0, 1fr) minmax(280px, .7fr); }
  .prototype-human-review-layout { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .prototype-heading { flex-direction: column; }
  .prototype-heading h1 { font-size: 33px; }
  .prototype-badge { align-self: flex-start; }
  .prototype-screen-heading { align-items: flex-start; flex-direction: column; padding: 18px; }
  .prototype-setup-grid, .prototype-brand-grid, .prototype-review-layout { padding: 12px; }
  .prototype-logic-toolbar { align-items: flex-start; flex-direction: column; }
  .prototype-logic-toolbar .button { width: 100%; }
  .prototype-options { grid-template-columns: 1fr; }
  .prototype-footer { padding: 12px; }
  .prototype-footer .button { flex: 1; }
  .prototype-element-palette { grid-template-columns: 1fr; }
  .prototype-element-palette > div:first-child, .prototype-palette-note { grid-column: auto; }
  .prototype-canvas-wrap { padding: 10px; }
  .prototype-canvas { min-height: 0; grid-template-columns: 1fr; }
  .prototype-canvas.layout-visual .prototype-customer-panel, .prototype-preview-frame.layout-visual .prototype-customer-panel { position: static; width: auto; max-height: none; overflow: visible; border-radius: 0; box-shadow: none; }
  .prototype-canvas-viewer { min-height: 380px; border-right: 0; border-bottom: 1px solid #e1e4eb; }
  .prototype-inspector { grid-template-columns: 1fr; }
  .prototype-brand-identity { grid-template-columns: 45px minmax(0, 1fr); }
  .prototype-brand-identity .button { grid-column: 1 / -1; width: 100%; }
  .prototype-brand-presets, .prototype-token-list { grid-template-columns: 1fr; }
  .prototype-brand-preview-content, .prototype-customer-shell { grid-template-columns: 1fr; }
  .prototype-brand-preview-content .prototype-product-visual, .prototype-customer-shell .prototype-product-visual { min-height: 390px; }
  .prototype-preview-frame { margin: 12px; }
  .prototype-preview-frame > header { grid-template-columns: auto 1fr auto; padding: 0 12px; }
  .prototype-preview-frame > header > div { justify-self: center; }
  .prototype-preview-frame > footer { align-items: flex-start; flex-direction: column; padding-top: 10px; padding-bottom: 10px; }
  .prototype-dependencies article { grid-template-columns: 38px minmax(0, 1fr); }
  .prototype-dependencies article > span:last-child { grid-column: 2; justify-self: start; }
  .prototype-human-review { padding: 16px 12px; }
  .prototype-human-review > header { flex-direction: column; }
  .prototype-review-status { align-self: flex-start; }
  .prototype-review-decisions { grid-template-columns: 1fr; }
  .prototype-review-decision > p { min-height: 0; }
}

@media (max-width: 390px) {
  .prototype-heading h1 { font-size: 29px; }
  .prototype-steps ol { width: 720px; }
  .prototype-screen-heading h2 { font-size: 19px; }
  .prototype-footer { align-items: stretch; flex-direction: column-reverse; }
  .prototype-footer .button { width: 100%; }
  .prototype-canvas-viewer, .prototype-brand-preview-content .prototype-product-visual, .prototype-customer-shell .prototype-product-visual { min-height: 330px; }
  .prototype-floating-heading { top: 12px; left: 12px; }
  .prototype-benefits { left: 12px; right: 12px; bottom: 12px; }
  .prototype-customer-panel { padding: 17px; }
}

/* Block 18F - local immutable publication trial */
.local-publication-page, .local-publication-detail { display: grid; gap: 17px; }
.local-publication-page > .page-heading, .local-publication-detail > .page-heading { margin-bottom: 0; }
.local-publication-page > .info-banner { margin-bottom: 0; }
.local-publication-source { overflow: hidden; }
.local-publication-source > header { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.local-publication-source > header h2, .local-publication-files h2, .local-publication-provenance h2 { margin: 4px 0 5px; font-size: 15px; letter-spacing: -.02em; }
.local-publication-source > header p:last-child { max-width: 720px; margin: 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.local-publication-source-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.local-publication-source-grid article { min-width: 0; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: center; padding: 16px; background: #fff; }
.local-publication-source-grid article > span:first-child { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; color: var(--accent-dark); background: var(--accent-soft); font-size: 8px; font-weight: 850; text-transform: uppercase; }
.local-publication-source-grid strong, .local-publication-source-grid small { display: block; }
.local-publication-source-grid strong { font-size: 9px; text-transform: capitalize; }
.local-publication-source-grid small { min-width: 0; margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.local-publication-source-grid code, .local-publication-checksums code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.local-publication-lock { grid-column: 2; justify-self: start; padding: 4px 6px; border-radius: 999px; color: var(--success); background: #edf9f2; font-size: 7px; font-weight: 800; }
.local-publication-checksums { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 1px; margin: 0; border-top: 1px solid var(--line); background: var(--line); }
.local-publication-checksums > div { min-width: 0; padding: 13px 18px; background: #fafbfc; }
.local-publication-checksums dt { color: var(--muted); font-size: 7px; font-weight: 700; }
.local-publication-checksums dd { min-width: 0; margin: 5px 0 0; overflow: hidden; color: #3d4551; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.local-publication-page .empty-inline span { color: var(--muted); font-size: 8px; }
.local-publication-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.local-publication-metrics article { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: 0 5px 15px rgb(13 13 13 / 3%); }
.local-publication-metrics small, .local-publication-metrics strong, .local-publication-metrics span { display: block; }
.local-publication-metrics small { color: var(--muted); font-size: 7px; font-weight: 750; text-transform: uppercase; }
.local-publication-metrics strong { margin-top: 8px; overflow: hidden; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.local-publication-metrics span { margin-top: 5px; color: #7b8290; font-size: 7px; }
.local-publication-player { min-height: 0; }
.local-publication-price-boundary { display: block; color: var(--muted); font-size: 7px; line-height: 1.5; }
.local-publication-detail-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr); gap: 17px; align-items: start; }
.local-publication-files, .local-publication-provenance { min-width: 0; padding: 19px; }
.local-publication-files header, .local-publication-provenance header { margin-bottom: 13px; }
.local-publication-files ul { display: grid; gap: 1px; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--line); list-style: none; }
.local-publication-files li { min-width: 0; display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 10px; align-items: center; padding: 11px; background: #fff; }
.local-publication-file-role { justify-self: start; padding: 5px 7px; border-radius: 6px; color: var(--accent-dark); background: var(--accent-soft); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.local-publication-files strong, .local-publication-files small { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.local-publication-files strong { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 8px; }
.local-publication-files small { margin-top: 4px; color: var(--muted); font-size: 7px; }
.local-publication-provenance dl { display: grid; gap: 1px; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--line); }
.local-publication-provenance dl > div { min-width: 0; padding: 10px; background: #fff; }
.local-publication-provenance dt { color: var(--muted); font-size: 7px; font-weight: 750; }
.local-publication-provenance dd { min-width: 0; margin: 5px 0 0; overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.local-publication-provenance code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.local-publication-provenance > p { display: flex; gap: 7px; margin: 13px 0 0; color: var(--muted); font-size: 7px; line-height: 1.5; }
.local-publication-provenance > p .icon { width: 14px; height: 14px; flex: 0 0 auto; color: var(--accent); }

@media (max-width: 1050px) {
  .local-publication-source-grid, .local-publication-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .local-publication-detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .local-publication-source > header { align-items: flex-start; flex-direction: column; }
  .local-publication-source-grid, .local-publication-metrics, .local-publication-checksums { grid-template-columns: 1fr; }
  .local-publication-detail .page-heading { align-items: flex-start; flex-direction: column; }
  .local-publication-detail .page-actions { width: 100%; }
  .local-publication-detail .page-actions .button { width: 100%; }
}

/* Block 18G - end-to-end QA review package */
.e2e-review-page { display: grid; gap: 17px; }
.e2e-review-page > .page-heading { margin-bottom: 0; }
.e2e-review-heading { align-items: center; }
.e2e-review-heading > div > p:last-child { max-width: 760px; }
.e2e-review-status { flex: 0 0 auto; padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: #f6f7f9; font-size: 8px; font-weight: 800; }
.e2e-review-status.has-changes { border-color: #e9bd7e; color: #945711; background: #fff6e9; }
.e2e-review-status.is-approved { border-color: #a9d9bd; color: #147545; background: #edf9f2; }
.e2e-review-hero { min-width: 0; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(360px, .75fr); gap: 24px; align-items: center; padding: 25px; overflow: hidden; border-radius: 17px; color: #fff; background: linear-gradient(135deg, #111426 0%, #18224e 55%, #253d97 100%); box-shadow: 0 20px 50px rgb(17 20 38 / 15%); }
.e2e-review-hero h2 { max-width: 700px; margin: 5px 0 8px; font-size: clamp(22px, 2.5vw, 34px); letter-spacing: -.035em; }
.e2e-review-hero > div > p:last-child { max-width: 740px; margin: 0; color: rgb(255 255 255 / 72%); font-size: 10px; line-height: 1.6; }
.e2e-review-hero .eyebrow { color: #9eb0ff; }
.e2e-review-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.e2e-review-metrics > div { min-width: 0; padding: 14px; border: 1px solid rgb(255 255 255 / 13%); border-radius: 12px; background: rgb(255 255 255 / 8%); }
.e2e-review-metrics dt { color: rgb(255 255 255 / 62%); font-size: 7px; font-weight: 750; text-transform: uppercase; }
.e2e-review-metrics dd { margin: 7px 0 3px; font-size: 25px; font-weight: 850; }
.e2e-review-metrics span { color: rgb(255 255 255 / 58%); font-size: 7px; }
.e2e-lanes { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.e2e-lanes > header { padding: 18px 20px; border-bottom: 1px solid var(--line); }
.e2e-lanes > header h2 { margin: 4px 0 0; font-size: 16px; letter-spacing: -.02em; }
.e2e-lanes > div { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.e2e-lanes a { min-width: 0; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 9px; align-items: center; padding: 16px; color: inherit; background: #fff; text-decoration: none; transition: background 140ms ease, transform 140ms ease; }
.e2e-lanes a:hover { z-index: 1; background: #f7f8ff; }
.e2e-lanes a > span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; color: var(--accent-dark); background: var(--accent-soft); font-size: 8px; font-weight: 850; }
.e2e-lanes a strong, .e2e-lanes a small { min-width: 0; display: block; grid-column: 2; }
.e2e-lanes a strong { align-self: end; font-size: 9px; }
.e2e-lanes a small { align-self: start; overflow: hidden; color: var(--muted); font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.e2e-lanes a > .icon { width: 15px; height: 15px; grid-column: 3; grid-row: 1 / 3; color: var(--accent); }
.e2e-boundary-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(330px, .75fr); gap: 14px; }
.e2e-composition-gap, .e2e-safety-boundary { min-width: 0; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.e2e-composition-gap { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 13px; align-items: center; padding: 19px; border-color: #e9bd7e; background: #fffaf2; }
.e2e-composition-gap > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; color: #9a5c14; background: #ffedcf; }
.e2e-composition-gap > span .icon { width: 19px; height: 19px; }
.e2e-composition-gap h2, .e2e-safety-boundary h2 { margin: 4px 0 5px; font-size: 14px; letter-spacing: -.02em; }
.e2e-composition-gap p:last-child { margin: 0; color: #695c4b; font-size: 8px; line-height: 1.55; }
.e2e-composition-gap > strong { justify-self: end; padding: 7px 9px; border-radius: 999px; color: #8a500d; background: #ffe9c5; font-size: 7px; white-space: nowrap; }
.e2e-safety-boundary { padding: 19px; }
.e2e-safety-boundary ul { display: grid; gap: 8px; margin: 13px 0 0; padding: 0; list-style: none; }
.e2e-safety-boundary li { display: flex; align-items: center; gap: 7px; color: #545c69; font-size: 8px; }
.e2e-safety-boundary li .icon { width: 14px; height: 14px; padding: 2px; border-radius: 50%; color: #168653; background: #e8f7ef; }
.e2e-review-package { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.e2e-review-package > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 20px; border-bottom: 1px solid var(--line); }
.e2e-review-package > header h2 { margin: 4px 0 5px; font-size: 18px; letter-spacing: -.025em; }
.e2e-review-package > header p:last-child { max-width: 700px; margin: 0; color: var(--muted); font-size: 8px; line-height: 1.5; }
.e2e-review-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, .6fr); gap: 15px; align-items: start; padding: 18px; background: #f6f7f9; }
.e2e-review-decisions { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.e2e-review-decision { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 7px 20px rgb(13 13 13 / 3%); }
.e2e-review-decision.is-approved { border-color: #afd9c0; background: #fbfefc; }
.e2e-review-decision.is-changes { border-color: #e9bd7e; background: #fffaf3; }
.e2e-review-decision > header { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 9px; align-items: center; }
.e2e-review-decision > header > span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; color: var(--accent-dark); background: var(--accent-soft); font-size: 7px; font-weight: 850; }
.e2e-review-decision > header strong, .e2e-review-decision > header small { display: block; }
.e2e-review-decision > header strong { font-size: 9px; }
.e2e-review-decision > header small { margin-top: 3px; color: var(--muted); font-size: 7px; }
.e2e-review-decision > header a { color: var(--accent); font-size: 7px; font-weight: 800; text-decoration: none; }
.e2e-review-decision > p { min-height: 48px; margin: 12px 0; color: #5f6672; font-size: 8px; line-height: 1.5; }
.e2e-review-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.e2e-review-actions button { min-height: 34px; display: flex; align-items: center; justify-content: center; gap: 5px; border: 1px solid var(--line); border-radius: 8px; color: #4f5662; background: #fff; font-size: 7px; font-weight: 800; cursor: pointer; }
.e2e-review-actions button .icon { width: 12px; height: 12px; }
.e2e-review-actions button[aria-pressed="true"][data-decision="approved"] { border-color: #8bc8a5; color: #137344; background: #edf9f2; }
.e2e-review-actions button[aria-pressed="true"][data-decision="changes"] { border-color: #e8b66f; color: #92530d; background: #fff5e7; }
.e2e-review-summary { min-width: 0; padding: 17px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.e2e-review-summary h3 { margin: 4px 0 13px; font-size: 15px; letter-spacing: -.02em; }
.e2e-review-summary dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0; }
.e2e-review-summary dl div { padding: 9px; border-radius: 9px; background: #f5f6f8; }
.e2e-review-summary dt { color: var(--muted); font-size: 7px; }
.e2e-review-summary dd { margin: 5px 0 0; font-size: 15px; font-weight: 850; }
.e2e-evidence { padding: 13px; margin-top: 12px; border-radius: 10px; background: #f7f8fa; }
.e2e-evidence > strong { font-size: 9px; }
.e2e-evidence ul { display: grid; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.e2e-evidence li { display: flex; align-items: center; gap: 7px; color: #525965; font-size: 8px; }
.e2e-evidence li .icon { width: 14px; height: 14px; padding: 2px; border-radius: 50%; color: #168653; background: #e8f7ef; }
.e2e-memory-note { display: flex; gap: 7px; margin: 13px 0 0; color: var(--muted); font-size: 7px; line-height: 1.5; }
.e2e-memory-note .icon { width: 14px; height: 14px; flex: 0 0 auto; color: var(--accent); }

@media (max-width: 1150px) {
  .e2e-review-hero, .e2e-boundary-grid, .e2e-review-layout { grid-template-columns: 1fr; }
  .e2e-lanes > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .e2e-review-heading, .e2e-review-package > header { align-items: flex-start; flex-direction: column; }
  .e2e-review-status { align-self: flex-start; }
  .e2e-review-hero { grid-template-columns: 1fr; padding: 19px; }
  .e2e-review-metrics, .e2e-lanes > div, .e2e-review-decisions { grid-template-columns: 1fr; }
  .e2e-composition-gap { grid-template-columns: 42px minmax(0, 1fr); }
  .e2e-composition-gap > strong { grid-column: 2; justify-self: start; }
  .e2e-review-layout { padding: 11px; }
  .e2e-review-package > header .button { width: 100%; }
  .e2e-review-decision > p { min-height: 0; }
}
.dependency-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.dependency-card-grid article {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line, #dfe3eb);
  border-radius: 12px;
  background: #f8f9fc;
}

.dependency-card-grid code {
  overflow: hidden;
  color: #5a6170;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .dependency-card-grid { grid-template-columns: 1fr; }
}

/* Block 23C: one Configurator Builder shell around one ConfigUX Player. */
.configurator-builder-v1 { min-width: 0; display: grid; gap: 14px; }
.builder-device-switcher, .builder-mode-switcher { display: inline-flex; padding: 3px; border: 1px solid #dfe3eb; border-radius: 9px; background: #f5f6f8; }
.builder-device-switcher button, .builder-mode-switcher button { min-height: 30px; padding: 0 10px; border: 0; border-radius: 6px; color: #646b76; background: transparent; font-size: 8px; font-weight: 750; cursor: pointer; }
.builder-device-switcher button[aria-pressed="true"], .builder-mode-switcher button[aria-pressed="true"] { color: #3047c8; background: #fff; box-shadow: 0 2px 8px rgb(13 13 13 / 8%); }
.unified-builder-form { gap: 14px; }
.unified-builder-workspace { min-width: 0; display: grid; grid-template-columns: 220px minmax(420px, 1fr) 220px; align-items: stretch; overflow: hidden; border: 1px solid #dfe3eb; border-radius: 16px; background: #eef0f4; box-shadow: 0 12px 34px rgb(13 13 13 / 6%); }
.unified-builder-toolbox, .unified-builder-inspector { min-width: 0; padding: 15px; background: #fff; }
.unified-builder-toolbox { border-right: 1px solid #dfe3eb; }
.unified-builder-inspector { border-left: 1px solid #dfe3eb; }
.builder-panel-heading h2, .builder-panel-heading p { margin: 0; }
.builder-panel-heading h2 { margin-top: 4px; font-size: 13px; }
.builder-panel-heading > p:last-child { margin-top: 5px; color: #737b87; font-size: 8px; line-height: 1.45; }
.unified-builder-toolbox ul { display: grid; gap: 7px; margin: 15px 0 0; padding: 0; list-style: none; }
.unified-builder-toolbox li button { width: 100%; min-height: 56px; display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 8px; border: 1px solid #dfe3eb; border-radius: 9px; color: #333842; background: #fff; text-align: left; cursor: pointer; }
.unified-builder-toolbox li button:hover, .unified-builder-toolbox li button:focus-visible { border-color: #9eabf6; background: #f7f8ff; outline: 0; }
.unified-builder-toolbox li button > span { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 7px; color: #394fd6; background: #eef1ff; font-size: 8px; font-weight: 850; }
.unified-builder-toolbox li button strong, .unified-builder-toolbox li button small { display: block; }
.unified-builder-toolbox li button strong { font-size: 8px; }
.unified-builder-toolbox li button small { margin-top: 3px; color: #7b828d; font-size: 7px; }
.unified-builder-toolbox li button em { color: #69717d; font-size: 6px; font-style: normal; font-weight: 800; text-transform: uppercase; }
.builder-toolbox-note { display: flex; align-items: flex-start; gap: 7px; padding: 10px; margin-top: 15px; border-radius: 9px; color: #5e6672; background: #f5f6f8; }
.builder-toolbox-note .icon { width: 14px; height: 14px; flex: 0 0 auto; color: #4f6bff; }
.builder-toolbox-note strong, .builder-toolbox-note small { display: block; font-size: 7px; }
.builder-toolbox-note small { margin-top: 3px; color: #818893; line-height: 1.4; }
.unified-builder-canvas { min-width: 0; padding: 12px; background: #eef0f4; }
.unified-builder-device-frame { width: 100%; min-width: 0; margin: 0 auto; overflow: hidden; border: 1px solid #cfd4df; border-radius: 12px; background: #fff; box-shadow: 0 10px 25px rgb(13 13 13 / 7%); transition: width 180ms ease; }
.unified-builder-device-frame .builder-player { border: 0; border-radius: 0; box-shadow: none; }
.unified-builder-device-frame .builder-player > .editor-section-heading { display: none; }
.unified-builder-device-frame .builder-player-layout { height: clamp(500px, 65vh, 670px); max-height: 670px; }
.configurator-builder-v1[data-builder-device="tablet"] .unified-builder-device-frame { width: min(820px, 100%); }
.configurator-builder-v1[data-builder-device="mobile"] .unified-builder-device-frame { width: min(390px, 100%); }
/* Runway BYG-1: tablet and mobile frames stack like the published Player and
   share the author-adjustable model/options split (--stacked-stage). The
   grid itself is owned by the Block 23J rules further down, where the tablet
   selector joins the mobile stacking rule. */
.configurator-builder-v1[data-builder-device="mobile"] .builder-player-layout,
.configurator-builder-v1[data-builder-device="tablet"] .builder-player-layout { height: clamp(560px, 74vh, 840px); max-height: none; }
.configurator-builder-v1[data-builder-device="mobile"] .builder-player-stage,
.configurator-builder-v1[data-builder-device="tablet"] .builder-player-stage { height: auto; min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
.configurator-builder-v1[data-builder-device="mobile"] .builder-player-controls,
.configurator-builder-v1[data-builder-device="tablet"] .builder-player-controls { max-height: none; min-height: 0; overflow-y: auto; }
.configurator-builder-v1[data-builder-device="mobile"] .builder-customer-zone-resizer,
.configurator-builder-v1[data-builder-device="tablet"] .builder-customer-zone-resizer { display: none; }
.builder-stacked-resizer { display: none; }
.configurator-builder-v1[data-builder-device="mobile"] .builder-stacked-resizer,
.configurator-builder-v1[data-builder-device="tablet"] .builder-stacked-resizer {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 0;
  right: 0;
  top: var(--stacked-stage, 44%);
  height: 26px;
  z-index: 9;
  transform: translateY(-50%);
  cursor: row-resize;
  touch-action: none;
}
.builder-stacked-resizer > span {
  width: 52px;
  height: 6px;
  border-radius: 999px;
  background: #cfd4df;
  opacity: .85;
  box-shadow: 0 1px 4px rgb(13 13 13 / 18%);
  transition: width 120ms ease, background 120ms ease;
}
.builder-stacked-resizer:hover > span,
.builder-stacked-resizer:focus-visible > span,
.builder-stacked-resizer[data-dragging="true"] > span {
  width: 72px;
  background: var(--builder-brand-accent, #2955f3);
}
.builder-stacked-resizer:focus-visible { outline: 2px solid var(--builder-brand-focus, #1739b7); outline-offset: -2px; }
.builder-inspector-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin: 15px 0; }
.builder-inspector-summary div { padding: 9px; border: 1px solid #e2e5eb; border-radius: 8px; background: #f8f9fb; }
.builder-inspector-summary dt { color: #7c838e; font-size: 6px; font-weight: 800; text-transform: uppercase; }
.builder-inspector-summary dd { margin: 4px 0 0; font-size: 10px; font-weight: 850; }
.unified-builder-inspector section { padding: 12px 0; border-top: 1px solid #e7e9ee; }
.unified-builder-inspector section h3, .unified-builder-inspector section p { margin: 0; }
.unified-builder-inspector section h3 { margin-top: 4px; font-size: 10px; }
.unified-builder-inspector section > p:last-child { margin-top: 5px; color: #757c87; font-size: 7px; line-height: 1.5; }
.builder-authoring-sections { display: grid; gap: 17px; }
.configurator-builder-v1[data-builder-mode="preview"] .unified-builder-workspace { display: block; border-color: transparent; background: transparent; box-shadow: none; }
.configurator-builder-v1[data-builder-mode="preview"] [data-builder-chrome] { display: none !important; }
.configurator-builder-v1[data-builder-mode="preview"] .unified-builder-canvas { padding: 0; background: transparent; }
.configurator-builder-v1[data-builder-mode="preview"] .unified-builder-device-frame { border-radius: 14px; }
.configurator-builder-v1[data-builder-mode="preview"][data-builder-device="desktop"] .unified-builder-device-frame { width: 100%; }
.configurator-builder-v1[data-builder-mode="preview"][data-builder-device="tablet"] .unified-builder-device-frame { width: min(820px, 100%); }
.configurator-builder-v1[data-builder-mode="preview"][data-builder-device="mobile"] .unified-builder-device-frame { width: min(390px, 100%); }

@media (max-width: 1260px) {
  .unified-builder-workspace { grid-template-columns: 195px minmax(380px, 1fr) 195px; }
  .builder-device-switcher button { padding: 0 7px; }
}

@media (max-width: 1080px) {
  .unified-builder-workspace { grid-template-columns: 190px minmax(0, 1fr); }
  .unified-builder-inspector { display: none; }
}

@media (max-width: 760px) {
  .builder-device-switcher { grid-column: 1 / -1; }
  .builder-device-switcher button { flex: 1; }
  .unified-builder-workspace { grid-template-columns: 1fr; }
  .unified-builder-toolbox { border-right: 0; border-bottom: 1px solid #dfe3eb; }
  .unified-builder-toolbox nav ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .unified-builder-toolbox li button { grid-template-columns: 26px minmax(0, 1fr); }
  .unified-builder-toolbox li button em { display: none; }
  .configurator-builder-v1[data-builder-mode="preview"] .builder-device-switcher { display: none; }
}

@media (max-width: 520px) {
  .builder-device-switcher { grid-column: auto; }
  .unified-builder-toolbox nav ul { grid-template-columns: 1fr; }
  .unified-builder-device-frame .builder-player-stage { height: 360px; }
}

/* Block 23C-R: viewport-bound Builder with contextual tools and stable Player sizing. */
.studio-shell[data-builder-active="true"] { height: 100dvh; min-height: 0; overflow: hidden; }
.studio-shell[data-builder-active="true"] .studio-column { height: 100dvh; min-height: 0; overflow: hidden; }
.studio-shell[data-builder-active="true"] .topbar { flex: 0 0 68px; }
.studio-shell[data-builder-active="true"] .studio-main { width: 100%; max-width: none; min-height: 0; flex: 1; padding: 12px; overflow: hidden; }
.studio-shell[data-builder-active="true"] .configurator-builder-v1 { height: 100%; min-height: 0; grid-template-rows: minmax(0, 1fr); gap: 0; }
.studio-shell[data-builder-active="true"] .unified-builder-form { min-height: 0; grid-template-rows: minmax(0, 1fr); overflow: hidden; }
.studio-shell[data-builder-active="true"] .unified-builder-workspace { height: 100%; min-height: 0; grid-template-columns: 250px minmax(0, 1fr); }
.studio-shell[data-builder-active="true"] .builder-authoring-sections,
.studio-shell[data-builder-active="true"] .editor-sticky-actions { display: none; }

.unified-builder-toolbox { min-height: 0; display: flex; flex-direction: column; padding: 13px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
.builder-context-heading h2, .builder-context-heading p { margin: 0; }
.builder-context-heading h2 { margin-top: 4px; font-size: 13px; }
.builder-context-heading > p:last-child { margin-top: 5px; color: #737b87; font-size: 8px; line-height: 1.45; }
.builder-context-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; padding: 11px 0; margin-top: 10px; border-top: 1px solid #e7e9ee; border-bottom: 1px solid #e7e9ee; }
.builder-context-tabs button { min-height: 31px; padding: 0 5px; border: 1px solid transparent; border-radius: 7px; color: #69717d; background: #f5f6f8; font-size: 7px; font-weight: 780; cursor: pointer; }
.builder-context-tabs button[aria-selected="true"] { border-color: #aab5f4; color: #2d43be; background: #eef1ff; box-shadow: 0 0 0 2px rgb(79 107 255 / 7%); }
.builder-context-content { flex: 1; min-width: 0; min-height: 0; padding-top: 13px; }
.builder-context-content section[hidden] { display: none; }
.builder-context-content h3, .builder-context-content p { margin: 0; }
.builder-context-content h3 { margin-top: 4px; font-size: 12px; }
.builder-context-content section > p:last-child { margin-top: 11px; color: #747c88; font-size: 8px; line-height: 1.5; }
.builder-context-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 12px 0 0; }
.builder-context-summary div { padding: 9px; border: 1px solid #e2e5eb; border-radius: 8px; background: #f8f9fb; }
.builder-context-summary dt { color: #7c838e; font-size: 6px; font-weight: 800; text-transform: uppercase; }
.builder-context-summary dd { margin: 4px 0 0; font-size: 10px; font-weight: 850; }
.builder-element-list, .builder-surface-list { display: grid; gap: 6px; margin-top: 12px; }
.builder-element-list button, .builder-surface-list button, .builder-context-action { width: 100%; min-height: 47px; display: grid; gap: 3px; align-content: center; padding: 8px 10px; border: 1px solid #dfe3eb; border-radius: 8px; color: #3f4650; background: #fff; text-align: left; }
.builder-element-list button:disabled { color: #626a76; background: #f8f9fb; opacity: 1; }
.builder-element-list strong, .builder-element-list small, .builder-surface-list strong, .builder-surface-list small { display: block; }
.builder-element-list strong, .builder-surface-list strong { font-size: 8px; }
.builder-element-list small, .builder-surface-list small { color: #7b838f; font-size: 7px; }
.builder-surface-list button, .builder-context-action { cursor: pointer; }
.builder-surface-list button[aria-current="true"], .builder-context-action[aria-current="true"] { border-color: #9eabf6; color: #2e43bb; background: #f2f4ff; }
.builder-context-action { display: block; min-height: 36px; margin-top: 12px; text-align: center; font-size: 8px; font-weight: 780; }
.unified-builder-toolbox .builder-toolbox-note { margin-top: 13px; }
.builder-product-panel { display: grid; gap: 14px; }
.builder-product-panel label { display: grid; gap: 5px; margin-top: 9px; color: #4e5662; font-size: 7px; font-weight: 760; }
.builder-product-panel input[type="text"], .builder-product-panel select { width: 100%; min-width: 0; height: 34px; padding: 0 9px; border: 1px solid #dfe3eb; border-radius: 7px; color: #1f242c; background: #fff; font-size: 8px; }
.builder-product-structure { display: grid; gap: 10px; padding-top: 13px; border-top: 1px solid #e7e9ee; }
.builder-product-summary { display: grid; gap: 3px; }
.builder-product-summary strong { font-size: 9px; }
.builder-product-summary span { color: #747c88; font-size: 7px; }
.builder-product-step { display: grid; gap: 9px; padding-top: 11px; border-top: 1px solid #dfe3eb; }
.builder-product-group { min-width: 0; display: block; padding: 10px 0 0; margin: 0; border: 0; border-top: 1px solid #e7e9ee; }
.builder-product-group > summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px; border-radius: 7px; color: #2f3540; background: #fff; cursor: pointer; list-style: none; }
.builder-product-group > summary::-webkit-details-marker { display: none; }
.builder-product-group > summary > span { min-width: 0; display: grid; gap: 2px; }
.builder-product-group > summary small, .builder-product-group > summary em { color: #747c88; font-size: 6px; font-style: normal; }
.builder-product-group > summary strong { overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.builder-product-group > summary b { flex: 0 0 auto; color: #466152; font-size: 6px; }
.builder-product-group.is-conditional > summary { background: #f3f4f6; }
.builder-product-group.is-inactive-variant > summary { color: #69717c; }
.builder-product-group.is-inactive-variant > summary b { color: #8a6a36; }
.builder-product-group-body { display: grid; gap: 8px; padding: 8px; }
.builder-product-options { display: grid; gap: 8px; }
.builder-product-option { min-width: 0; padding: 9px 0 0; border-top: 1px solid #edf0f4; }
.builder-product-toolbar { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.builder-product-toolbar > strong, .builder-product-toolbar > span { font-size: 7px; }
.builder-product-panel .builder-order-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 3px; }
.builder-product-panel .builder-order-actions button { min-height: 23px; padding: 0 5px; border: 1px solid #dfe3eb; border-radius: 5px; color: #59616c; background: #fff; font-size: 6px; cursor: pointer; }
.builder-product-panel .builder-order-actions button:disabled { opacity: .4; cursor: default; }
.builder-product-panel .builder-order-actions .builder-remove { color: #a33a31; }
.builder-product-panel .availability-toggle { grid-template-columns: auto 1fr; align-items: center; }
.builder-product-panel .availability-toggle input { margin: 0; }
.builder-option-mapping-note { margin: 7px 0 0; color: #747c88; font-size: 6px; line-height: 1.45; }
.builder-context-add { width: 100%; min-height: 31px; display: flex; align-items: center; justify-content: center; gap: 5px; border: 1px dashed #b8c0cd; border-radius: 7px; color: #344ac5; background: #fafbff; font-size: 7px; font-weight: 780; cursor: pointer; }
.builder-context-add .icon { width: 12px; height: 12px; }
.builder-viewer-panel { min-width: 0; display: grid; gap: 11px; }
.builder-viewer-panel > h3,
.builder-viewer-panel > p { margin: 0; }
.builder-viewer-panel > h3 { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.builder-viewer-panel > p:not(.eyebrow):not(.builder-viewer-source):not(.builder-viewer-reconciliation) { color: #747c88; font-size: 8px; line-height: 1.5; }
.builder-viewer-panel .local-glb-picker { min-width: 0; grid-column: auto; display: grid; gap: 6px; margin-top: 2px; }
.builder-viewer-panel .local-glb-picker input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.builder-viewer-panel .local-glb-picker .button { width: 100%; min-width: 0; min-height: 34px; justify-content: center; white-space: normal; }
.builder-viewer-panel .local-glb-picker small { min-width: 0; overflow-wrap: anywhere; color: #747c88; font-size: 7px; line-height: 1.45; }
.builder-viewer-source { display: flex; align-items: center; gap: 6px; color: #3f664f; font-size: 7px; font-weight: 760; }
.builder-viewer-source .icon { width: 12px; height: 12px; }
.builder-viewer-reconciliation { padding-top: 10px; border-top: 1px solid #e7e9ee; color: #875a1c; font-size: 7px; line-height: 1.45; }

.studio-shell[data-builder-active="true"] .unified-builder-canvas { min-height: 0; display: flex; flex-direction: column; padding: 10px; overflow: hidden; }
.studio-shell[data-builder-active="true"] .unified-builder-device-frame { height: 100%; min-height: 0; flex: 1; }
.studio-shell[data-builder-active="true"] .unified-builder-device-frame .builder-player,
.studio-shell[data-builder-active="true"] .unified-builder-device-frame .builder-player-layout { height: 100%; min-height: 0; max-height: none; }
.builder-player-stage { contain: none; }
.builder-player-stage model-viewer { position: absolute; inset: 0; contain: none; pointer-events: auto; }
.builder-player-stage-status { pointer-events: none; }
.builder-player-stage[aria-current="true"], .builder-player-controls[aria-current="true"] { box-shadow: inset 0 0 0 2px #4f6bff; }
.builder-player-controls { position: relative; }
.builder-surface-edit { position: absolute; z-index: 4; top: 12px; right: 12px; min-height: 28px; padding: 0 9px; border: 1px solid #ccd3f8; border-radius: 7px; color: #3047c8; background: rgb(255 255 255 / 92%); box-shadow: 0 4px 12px rgb(13 13 13 / 8%); font-size: 7px; font-weight: 780; cursor: pointer; }
.builder-player-controls > .builder-surface-edit { position: static; align-self: flex-end; flex: 0 0 auto; margin-bottom: -4px; }

.studio-shell[data-builder-active="true"] .configurator-builder-v1[data-builder-device="tablet"] .unified-builder-device-frame { width: min(820px, 100%); }
.studio-shell[data-builder-active="true"] .configurator-builder-v1[data-builder-device="mobile"] .unified-builder-device-frame { width: min(390px, 100%); }
/* Runway BYG-1: the stacked mobile/tablet grid is owned by the shared rule
   further down (search for --stacked-stage); this legacy override only kept
   fighting it and is deliberately gone. */
.studio-shell[data-builder-active="true"] .configurator-builder-v1[data-builder-device="mobile"] .builder-player-controls { max-height: none; overflow-y: auto; }

.studio-shell[data-builder-active="true"] .configurator-builder-v1[data-builder-mode="preview"] .unified-builder-workspace { height: 100%; display: block; }
.studio-shell[data-builder-active="true"] .configurator-builder-v1[data-builder-mode="preview"] .unified-builder-canvas { height: 100%; padding: 0; }
.studio-shell[data-builder-active="true"] .configurator-builder-v1[data-builder-mode="preview"] .unified-builder-device-frame { height: 100%; }

@media (max-width: 1080px) {
  .studio-shell[data-builder-active="true"] .unified-builder-workspace { grid-template-columns: 225px minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .studio-shell[data-builder-active="true"] { display: block; }
  .studio-shell[data-builder-active="true"] .topbar { flex-basis: 68px; }
  .sidebar-collapse-button { display: none; }
}

@media (max-width: 760px) {
  .studio-shell[data-builder-active="true"] .studio-main { padding: 8px; }
  .studio-shell[data-builder-active="true"] .configurator-builder-v1 { grid-template-rows: minmax(0, 1fr); }
  .studio-shell[data-builder-active="true"] .unified-builder-workspace { grid-template-columns: 1fr; grid-template-rows: minmax(150px, 36dvh) minmax(0, 1fr); }
  .studio-shell[data-builder-active="true"] .unified-builder-toolbox { border-right: 0; border-bottom: 1px solid #dfe3eb; }
}

/* Block 23C-R2: one compact Builder top bar and direct canvas start. */
.builder-topbar { padding: 0 14px; background: #fff; backdrop-filter: none; }
.builder-topbar-title { min-width: 0; flex: 1; gap: 8px; }
.builder-topbar-title > div { min-width: 150px; max-width: 520px; flex: 1; }
.builder-configurator-name { width: 100%; min-width: 0; height: 31px; padding: 2px 7px; border: 1px solid transparent; border-radius: 7px; color: #16191f; background: transparent; font: inherit; font-size: 17px; font-weight: 820; letter-spacing: -.025em; text-overflow: ellipsis; transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease; }
.builder-configurator-name:hover { border-color: #dfe3eb; background: #f8f9fb; }
.builder-configurator-name:focus { border-color: #9eabf6; outline: 0; background: #fff; box-shadow: 0 0 0 3px rgb(79 107 255 / 12%); }
.builder-draft-status { display: flex; align-items: center; gap: 5px; padding-left: 8px; margin-top: 1px; color: #6d7480; font-size: 7px; }
.builder-draft-status span { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: #1f9d61; }
.builder-topbar-actions { flex: 0 0 auto; gap: 8px; }
.builder-topbar-actions > .button { min-height: 38px; padding: 0 16px; }
.studio-shell[data-builder-active="true"] .unified-builder-canvas { padding: 8px; }

@media (max-width: 760px) {
  .builder-topbar { gap: 7px; padding: 0 8px; }
  .builder-topbar-title { gap: 3px; }
  .builder-topbar-title > div { min-width: 92px; }
  .builder-configurator-name { height: 28px; padding-inline: 4px; font-size: 13px; }
  .builder-draft-status { display: none; }
  .builder-topbar-actions { min-width: 0; gap: 4px; }
  .builder-topbar-actions .builder-device-switcher { display: none; }
  .builder-topbar-actions > .button { min-height: 34px; padding: 0 10px; }
}

/* Block 23C-R3: one flat Builder surface with separators instead of nested cards. */
.studio-shell[data-builder-active="true"] .studio-main {
  padding: 0;
  background: #fff;
}
.studio-shell[data-builder-active="true"] .unified-builder-workspace {
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}
.studio-shell[data-builder-active="true"] .unified-builder-toolbox {
  border-right: 1px solid #dfe3eb;
  background: #fff;
}
.studio-shell[data-builder-active="true"] .unified-builder-canvas {
  padding: 0;
  background: #fff;
}
.studio-shell[data-builder-active="true"] .unified-builder-device-frame,
.studio-shell[data-builder-active="true"] .configurator-builder-v1[data-builder-mode="preview"] .unified-builder-device-frame {
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}
.studio-shell[data-builder-active="true"] .unified-builder-device-frame .builder-player {
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}
.studio-shell[data-builder-active="true"] .builder-player-stage[aria-current="true"],
.studio-shell[data-builder-active="true"] .builder-player-controls[aria-current="true"] {
  box-shadow: none;
}
.studio-shell[data-builder-active="true"] [data-builder-surface-region][aria-current="true"] { box-shadow: none; }
.studio-shell[data-builder-active="true"] [data-builder-surface-region]:focus-visible { z-index: 5; outline: 3px solid color-mix(in srgb, var(--builder-brand-focus, #1739b7) 72%, white); outline-offset: -3px; }
.studio-shell[data-builder-active="true"] .builder-layout-placement:focus-visible { outline: 3px solid color-mix(in srgb, var(--builder-brand-focus, #1739b7) 72%, white); outline-offset: 3px; }
.studio-shell[data-builder-active="true"] .unified-builder-toolbox .builder-toolbox-note {
  padding: 12px 0 0;
  border-top: 1px solid #e7e9ee;
  border-radius: 0;
  background: transparent;
}
.studio-shell[data-builder-active="true"] .builder-context-summary div {
  padding: 9px 0;
  border: 0;
  border-top: 1px solid #e7e9ee;
  border-radius: 0;
  background: transparent;
}

/* Block 23H: cautious local automapping review. */
.builder-automapping-entry { display: grid; gap: 7px; padding-top: 11px; border-top: 1px solid #e7e9ee; }
.builder-automapping-entry > strong { font-size: 8px; }
.builder-automapping-entry > span { color: #747c88; font-size: 7px; line-height: 1.45; }
.builder-automapping-entry > div { display: flex; flex-wrap: wrap; gap: 6px; }
.builder-automapping-entry .button { min-height: 31px; padding: 0 9px; font-size: 7px; }
.builder-automapping-dialog { width: min(780px, calc(100vw - 32px)); max-height: min(760px, calc(100dvh - 32px)); padding: 0; border: 1px solid #dfe3eb; border-radius: 12px; color: #20242b; background: #fff; box-shadow: 0 22px 70px rgb(16 22 40 / 22%); }
.builder-automapping-dialog::backdrop { background: rgb(13 18 31 / 48%); }
.builder-automapping-dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 20px; border-bottom: 1px solid #e7e9ee; }
.builder-automapping-dialog-heading h2, .builder-automapping-dialog-heading p { margin: 0; }
.builder-automapping-dialog-heading h2 { margin-top: 4px; font-size: 20px; }
.builder-automapping-dialog-heading div > p:last-child { margin-top: 6px; color: #6f7783; font-size: 12px; line-height: 1.5; }
.builder-automapping-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid #e7e9ee; }
.builder-automapping-summary span { display: grid; gap: 3px; padding: 14px 20px; border-right: 1px solid #e7e9ee; color: #737b87; font-size: 10px; }
.builder-automapping-summary span:last-child { border-right: 0; }
.builder-automapping-summary strong { color: #20242b; font-size: 18px; }
.builder-automapping-list { max-height: 500px; display: grid; gap: 0; padding: 0 20px; overflow-y: auto; }
.builder-automapping-suggestion { display: grid; gap: 8px; padding: 16px 0; border-bottom: 1px solid #e7e9ee; }
.builder-automapping-suggestion:last-child { border-bottom: 0; }
.builder-automapping-suggestion header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.builder-automapping-suggestion header div { display: grid; gap: 4px; }
.builder-automapping-suggestion header span { color: #7a828d; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.builder-automapping-suggestion header strong { font-size: 13px; }
.builder-automapping-suggestion header b { color: #344ac5; font-size: 12px; }
.builder-automapping-suggestion > p { margin: 0; font-size: 12px; font-weight: 720; }
.builder-automapping-suggestion ul { margin: 0; padding-left: 18px; color: #6f7783; font-size: 10px; line-height: 1.5; }
.builder-automapping-suggestion > div { display: flex; gap: 7px; }
.builder-automapping-suggestion.state-review_required header b { color: #9b6420; }
.builder-automapping-suggestion.state-accepted header b { color: #24734d; }
.builder-automapping-suggestion.state-rejected { opacity: .58; }

@media (max-width: 620px) {
  .builder-automapping-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .builder-automapping-summary span:nth-child(2) { border-right: 0; }
  .builder-automapping-summary span:nth-child(-n+2) { border-bottom: 1px solid #e7e9ee; }
}

/* Block 23J: controlled standalone layout zones around the same Player. */
.studio-shell[data-builder-active="true"] .builder-player-layout {
  display: grid;
  grid-template-columns: minmax(0, var(--left-size)) minmax(0, 1fr) minmax(0, var(--right-size));
  grid-template-rows: minmax(0, var(--top-size)) minmax(0, 1fr) minmax(0, var(--bottom-size));
  grid-template-areas:
    "top top top"
    "left viewer right"
    "bottom bottom bottom";
  overflow: hidden;
  background: #fff;
}
.studio-shell[data-builder-active="true"] .builder-layout-zone.zone-left-sidebar,
.studio-shell[data-builder-active="true"] .builder-layout-zone.zone-right-sidebar { container-type: inline-size; }
.builder-layout-zone { min-width: 0; min-height: 0; position: relative; box-sizing: border-box; }
.builder-layout-zone[data-zone-enabled="false"] { display: none; }
.builder-layout-zone.zone-top-bar { grid-area: top; display: flex; align-items: center; gap: 0; padding: 9px 13px; overflow: hidden; border-bottom: 1px solid #e2e5eb; }
.builder-layout-zone.zone-left-sidebar { grid-area: left; border-right: 1px solid #e2e5eb; }
.builder-layout-zone.zone-viewer { grid-area: viewer; border: 0; }
.builder-layout-zone.zone-right-sidebar { grid-area: right; border-left: 1px solid #e2e5eb; }
.builder-layout-zone.zone-bottom-bar { grid-area: bottom; display: flex; align-items: center; gap: 0; padding: 9px 13px; overflow: hidden; border-top: 1px solid #e2e5eb; }
.builder-viewer-overlay { position: absolute; z-index: 3; inset: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; pointer-events: none; }
.builder-viewer-overlay[data-zone-enabled="false"] { display: none; }
.builder-viewer-overlay .builder-layout-placement { pointer-events: auto; }
/* Runway BYG-14: four corner clusters - hidden targets that light up while dragging. */
.builder-overlay-corner { display: flex; flex-direction: column; gap: 8px; padding: 15px; min-width: 0; min-height: 0; border-radius: 10px; }
.builder-overlay-corner[data-zone-orientation="horizontal"] { flex-direction: row; flex-wrap: wrap; }
.builder-overlay-corner.corner-top-left { align-items: flex-start; justify-content: flex-start; }
.builder-overlay-corner.corner-top-right { align-items: flex-end; justify-content: flex-start; }
.builder-overlay-corner.corner-bottom-left { align-items: flex-start; justify-content: flex-end; }
.builder-overlay-corner.corner-bottom-right { align-items: flex-end; justify-content: flex-end; }
.builder-overlay-corner[data-zone-orientation="horizontal"].corner-top-left { align-items: flex-start; }
.builder-overlay-corner[data-zone-orientation="horizontal"].corner-top-right { justify-content: flex-end; align-items: flex-start; }
.builder-overlay-corner[data-zone-orientation="horizontal"].corner-bottom-left { align-items: flex-end; justify-content: flex-start; }
.builder-overlay-corner[data-zone-orientation="horizontal"].corner-bottom-right { align-items: flex-end; justify-content: flex-end; }
.builder-overlay-corner.is-drop-ready { pointer-events: auto; box-shadow: inset 0 0 0 2px rgb(79 107 255 / 30%); background: rgb(79 107 255 / 4%); }
.builder-overlay-corner.is-drop-over { box-shadow: inset 0 0 0 2px rgb(79 107 255 / 75%); background: rgb(79 107 255 / 10%); }
/* Runway BYG-14: author-chosen element flow per customer area. */
.builder-layout-zone.zone-left-sidebar[data-zone-orientation="horizontal"] .builder-player-controls, .builder-layout-zone.zone-right-sidebar[data-zone-orientation="horizontal"] .builder-player-controls { flex-direction: row; flex-wrap: wrap; align-items: flex-start; }
.builder-layout-zone.zone-left-sidebar[data-zone-orientation="horizontal"], .builder-layout-zone.zone-right-sidebar[data-zone-orientation="horizontal"] { display: flex; flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 12px; padding: 14px; overflow-y: auto; }
.builder-layout-zone.zone-top-bar[data-zone-orientation="vertical"], .builder-layout-zone.zone-bottom-bar[data-zone-orientation="vertical"] { flex-direction: column; align-items: stretch; overflow-y: auto; }
.builder-layout-placement { min-width: 0; position: relative; cursor: pointer; }
.builder-layout-placement.is-selected { outline: 2px solid color-mix(in srgb, var(--builder-brand-focus, #1739b7) 32%, transparent); outline-offset: 3px; }
.builder-player-controls .builder-layout-placement + .builder-layout-placement { padding-top: 13px; border-top: 1px solid #e7e9ee; }
.builder-layout-option-group .builder-player-group { margin: 0; }
.builder-layout-heading, .builder-layout-text { margin: 0; }
.builder-layout-heading { font-size: 17px; letter-spacing: -.02em; }
.builder-layout-text { color: #68717d; font-size: 9px; line-height: 1.5; }
.builder-layout-image { min-height: 48px; display: flex; align-items: center; gap: 8px; color: #69717d; font-size: 8px; }
.builder-layout-image .icon { width: 18px; height: 18px; }
/* Runway BYG-13: hydrated image elements show the real image and hide the placeholder. */
.builder-layout-image img.builder-layout-image-render { display: none; max-width: 100%; max-height: 140px; border-radius: 8px; object-fit: contain; }
.builder-layout-image.has-image { min-height: 0; }
.builder-layout-image.has-image img.builder-layout-image-render { display: block; }
.builder-layout-image.has-image > .icon, .builder-layout-image.has-image > span { display: none; }
.builder-element-image-editor { display: grid; gap: 8px; margin-top: 10px; }
.builder-element-image-preview { display: flex; align-items: center; justify-content: center; min-height: 84px; border: 1px dashed #ccd3dc; border-radius: 10px; background: #f7f8fa; color: #8a919c; overflow: hidden; }
.builder-element-image-preview .icon { width: 22px; height: 22px; }
.builder-element-image-preview img { display: none; max-width: 100%; max-height: 140px; object-fit: contain; }
.builder-element-image-preview.has-image { border-style: solid; background: #fff; }
.builder-element-image-preview.has-image img { display: block; }
.builder-element-image-upload { display: grid; gap: 6px; }
.builder-element-image-upload > span { font-size: 11px; font-weight: 600; color: #3c434d; }
.builder-element-image-upload input[type="file"] { font-size: 11px; }
.builder-element-image-editor > small { color: #8a919c; font-size: 10px; }
.builder-layout-price { min-width: 180px; margin-top: 0; }
.builder-layout-price:has(> strong:only-child) { justify-content: flex-end; }
.builder-layout-primary-action, .builder-layout-reset { width: 100%; min-height: 38px; justify-content: center; }
.builder-layout-lead-form { display: grid; gap: 7px; padding: 10px; border: 1px solid #dce2e7; border-radius: 10px; background: #fff; color: #20252d; font-size: 9px; }
.builder-layout-lead-form > span { min-height: 30px; padding: 8px; border: 1px solid #dce2e7; border-radius: 7px; color: #68717d; }
.builder-layout-lead-form label { display: flex; gap: 6px; align-items: flex-start; line-height: 1.35; }
.builder-layout-lead-form input { margin: 0; }
.zone-top-bar .builder-layout-placement, .zone-bottom-bar .builder-layout-placement { flex: 0 0 var(--placement-basis, 100%); padding-inline: 9px; }
.zone-top-bar .builder-layout-price, .zone-bottom-bar .builder-layout-price { padding-top: 0; border-top: 0; }
.builder-layout-zone.is-drop-ready, .builder-viewer-overlay.is-drop-ready { background-image: linear-gradient(rgb(79 107 255 / 5%), rgb(79 107 255 / 5%)); box-shadow: inset 0 0 0 2px rgb(79 107 255 / 35%); }
.builder-layout-zone.is-drop-over, .builder-viewer-overlay.is-drop-over { background-image: linear-gradient(rgb(79 107 255 / 10%), rgb(79 107 255 / 10%)); box-shadow: inset 0 0 0 3px rgb(79 107 255 / 62%); }
.builder-layout-zone[aria-current="true"], .builder-viewer-overlay[aria-current="true"] { box-shadow: inset 0 0 0 2px rgb(79 107 255 / 20%); }

@container (max-width: 360px) {
  .builder-player-group,
  .builder-player-group--color_swatches { grid-template-columns: minmax(0, 1fr); }
  .builder-player-group button { min-width: 0; white-space: normal; overflow-wrap: normal; word-break: normal; }
  .builder-layout-price { min-width: 0; }
}
.builder-layout-presets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; margin-top: 11px; }
.builder-layout-presets button { min-height: 34px; padding: 5px; border: 1px solid #dfe3eb; border-radius: 7px; color: #4b5360; background: #fff; font-size: 7px; font-weight: 740; cursor: pointer; }
.builder-layout-zones { display: grid; gap: 5px; margin-top: 12px; }
.builder-layout-zone-control { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; gap: 5px; }
.builder-layout-zone-control > button:first-child { min-width: 0; display: grid; gap: 2px; padding: 8px; border: 1px solid #e1e4ea; border-radius: 7px; color: #434a55; background: #fff; text-align: left; cursor: pointer; }
.builder-layout-zone-control > button:first-child[aria-current="true"] { border-color: #9eabf6; color: #2f45c0; background: #f4f6ff; }
.builder-layout-zone-control strong { font-size: 8px; }
.builder-layout-zone-control small { color: #7b838f; font-size: 6px; }
.builder-layout-zone-control > span, .builder-zone-toggle { min-width: 45px; display: grid; place-items: center; padding: 0 5px; border: 1px solid #e1e4ea; border-radius: 7px; color: #69717d; background: #f7f8fa; font-size: 6px; font-weight: 800; }
.builder-zone-toggle { cursor: pointer; }
.builder-zone-toggle[aria-pressed="true"] { border-color: #aab5f4; color: #3047c8; background: #eef1ff; }
.builder-layout-selected { display: grid; gap: 4px; padding-top: 12px; margin-top: 12px; border-top: 1px solid #e7e9ee; }
.builder-layout-selected > strong { font-size: 9px; }
.builder-layout-selected > small { color: #7b838f; font-size: 7px; line-height: 1.4; }
.builder-layout-selected ol { display: grid; gap: 5px; margin: 7px 0 0; padding: 0; list-style: none; }
.builder-layout-selected li { display: flex; align-items: center; justify-content: space-between; gap: 5px; padding: 7px 0; border-top: 1px solid #edf0f4; }
.builder-layout-selected li > span:first-child { min-width: 0; display: grid; gap: 2px; }
.builder-layout-selected li strong { overflow: hidden; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.builder-layout-selected li small { color: #818893; font-size: 6px; }
.builder-layout-selected li.is-empty { color: #818893; font-size: 7px; }
.builder-layout-placement-actions { flex: 0 0 auto; display: flex; gap: 2px; }
.builder-layout-placement-actions button { width: 22px; height: 22px; border: 1px solid #dfe3eb; border-radius: 5px; color: #59616c; background: #fff; font-size: 8px; cursor: pointer; }
.builder-layout-placement-actions button:disabled { opacity: .35; cursor: default; }

@media (pointer: coarse) {
  .builder-device-switcher button,
  .builder-mode-switcher button,
  .builder-context-tabs button,
  .builder-layout-placement-actions button { min-width: 44px; min-height: 44px; }
}

/* Block 23-R4F F2: compact, collapsible and directly resizable Builder tools. */
.studio-shell[data-builder-active="true"] .unified-builder-workspace {
  grid-template-columns: var(--builder-toolbox-width, 220px) 8px minmax(0, 1fr);
}
.builder-toolbox-resizer {
  position: relative;
  z-index: 6;
  min-width: 8px;
  cursor: col-resize;
  touch-action: none;
  background: #fff;
}
.builder-toolbox-resizer::after {
  content: "";
  position: absolute;
  inset: 0 3px;
  background: #dfe3eb;
  transition: background 120ms ease, inset 120ms ease;
}
.builder-toolbox-resizer:hover::after,
.builder-toolbox-resizer:focus-visible::after,
.builder-toolbox-resizer[data-dragging="true"]::after {
  inset-inline: 2px;
  background: #4f6bff;
}
.builder-toolbox-resizer:focus-visible { outline: 0; }
.builder-context-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.builder-context-heading > div { min-width: 0; }
.builder-toolbox-collapse {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #dfe3eb;
  border-radius: 7px;
  color: #59616c;
  background: #fff;
  cursor: pointer;
}
.builder-toolbox-collapse .icon { width: 13px; height: 13px; transform: rotate(180deg); }
.configurator-builder-v1[data-builder-toolbox-collapsed="true"] .unified-builder-toolbox { padding: 10px 8px; overflow: hidden; }
.configurator-builder-v1[data-builder-toolbox-collapsed="true"] .builder-context-heading > div,
.configurator-builder-v1[data-builder-toolbox-collapsed="true"] .builder-context-tabs,
.configurator-builder-v1[data-builder-toolbox-collapsed="true"] .builder-context-content { display: none; }
.configurator-builder-v1[data-builder-toolbox-collapsed="true"] .builder-context-heading { justify-content: center; }
.configurator-builder-v1[data-builder-toolbox-collapsed="true"] .builder-toolbox-collapse .icon { transform: none; }
.configurator-builder-v1[data-builder-mode="preview"] .builder-toolbox-resizer { display: none; }

@media (max-width: 760px) {
  .studio-shell[data-builder-active="true"] .unified-builder-workspace {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(150px, 36dvh) minmax(0, 1fr);
  }
  .builder-toolbox-resizer { display: none; }
}

/* Block 23-R4F F3: direct left/right customer Sidebar resizing. */
.studio-shell[data-builder-active="true"] .builder-player-layout { position: relative; }
.builder-customer-zone-resizer {
  position: absolute;
  z-index: 8;
  touch-action: none;
}
.builder-customer-zone-resizer::before {
  /* Runway BYG-1: a visible full-length track so the drag target is
     discoverable next to the greedy model-viewer - misses used to become
     camera orbits with no hint of why. */
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: transparent;
  transition: background 120ms ease;
}
.builder-customer-zone-resizer::after {
  content: "";
  position: absolute;
  background: #cfd4df;
  border-radius: 999px;
  opacity: .58;
  transition: width 120ms ease, height 120ms ease, background 120ms ease, opacity 120ms ease;
}
.builder-customer-zone-resizer:hover::after,
.builder-customer-zone-resizer:focus-visible::after,
.builder-customer-zone-resizer[data-dragging="true"]::after {
  opacity: 1;
  background: var(--builder-brand-accent, #2955f3);
}
.builder-customer-zone-resizer:focus-visible {
  outline: 2px solid var(--builder-brand-focus, #1739b7);
  outline-offset: -2px;
}
.builder-customer-zone-resizer.edge-left-sidebar,
.builder-customer-zone-resizer.edge-right-sidebar {
  top: var(--top-size);
  bottom: var(--bottom-size);
  width: 28px;
  cursor: col-resize;
  transform: translateX(-50%);
}
.builder-customer-zone-resizer.edge-left-sidebar::before,
.builder-customer-zone-resizer.edge-right-sidebar::before {
  width: 2px;
}
.builder-customer-zone-resizer.edge-left-sidebar:hover::before,
.builder-customer-zone-resizer.edge-right-sidebar:hover::before,
.builder-customer-zone-resizer.edge-left-sidebar[data-dragging="true"]::before,
.builder-customer-zone-resizer.edge-right-sidebar[data-dragging="true"]::before {
  background: rgb(41 85 243 / 35%);
}
.builder-customer-zone-resizer.edge-left-sidebar::after,
.builder-customer-zone-resizer.edge-right-sidebar::after {
  top: 50%;
  left: 50%;
  width: 5px;
  height: 44px;
  transform: translate(-50%, -50%);
}
.builder-customer-zone-resizer.edge-left-sidebar:hover::after,
.builder-customer-zone-resizer.edge-right-sidebar:hover::after,
.builder-customer-zone-resizer.edge-left-sidebar[data-dragging="true"]::after,
.builder-customer-zone-resizer.edge-right-sidebar[data-dragging="true"]::after {
  height: 64px;
}
.builder-customer-zone-resizer.edge-top-bar,
.builder-customer-zone-resizer.edge-bottom-bar {
  left: 0;
  right: 0;
  height: 18px;
  cursor: row-resize;
  transform: translateY(-50%);
}
.builder-customer-zone-resizer.edge-top-bar::after,
.builder-customer-zone-resizer.edge-bottom-bar::after {
  top: 7px;
  left: 50%;
  width: 44px;
  height: 4px;
  transform: translateX(-50%);
}
.builder-customer-zone-resizer:hover::after,
.builder-customer-zone-resizer:focus-visible::after,
.builder-customer-zone-resizer[data-dragging="true"]::after {
  background: #4f6bff;
  opacity: 1;
}
.builder-customer-zone-resizer.edge-left-sidebar:hover::after,
.builder-customer-zone-resizer.edge-left-sidebar:focus-visible::after,
.builder-customer-zone-resizer.edge-left-sidebar[data-dragging="true"]::after,
.builder-customer-zone-resizer.edge-right-sidebar:hover::after,
.builder-customer-zone-resizer.edge-right-sidebar:focus-visible::after,
.builder-customer-zone-resizer.edge-right-sidebar[data-dragging="true"]::after {
  left: 6px;
  width: 6px;
}
.builder-customer-zone-resizer.edge-top-bar:hover::after,
.builder-customer-zone-resizer.edge-top-bar:focus-visible::after,
.builder-customer-zone-resizer.edge-top-bar[data-dragging="true"]::after,
.builder-customer-zone-resizer.edge-bottom-bar:hover::after,
.builder-customer-zone-resizer.edge-bottom-bar:focus-visible::after,
.builder-customer-zone-resizer.edge-bottom-bar[data-dragging="true"]::after {
  top: 6px;
  height: 6px;
}
.builder-customer-zone-resizer:focus-visible { outline: 0; }
.builder-customer-zone-resizer.edge-left-sidebar { left: var(--left-size); }
.builder-customer-zone-resizer.edge-right-sidebar { left: calc(100% - var(--right-size)); }
.builder-customer-zone-resizer.edge-top-bar { top: var(--top-size); }
.builder-customer-zone-resizer.edge-bottom-bar { top: calc(100% - var(--bottom-size)); }
.builder-placement-resizer {
  position: absolute;
  z-index: 9;
  top: 0;
  right: -9px;
  bottom: 0;
  width: 18px;
  cursor: col-resize;
  touch-action: none;
}
.builder-placement-resizer::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 7px;
  width: 4px;
  height: 32px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: #cfd4df;
  opacity: .58;
  transition: background-color .12s ease, left .12s ease, opacity .12s ease, width .12s ease;
}
.builder-placement-resizer:hover::after,
.builder-placement-resizer:focus-visible::after,
.builder-placement-resizer[data-dragging="true"]::after {
  left: 6px;
  width: 6px;
  background: #4f6bff;
  opacity: 1;
}
.builder-placement-resizer:focus-visible { outline: 0; }
.configurator-builder-v1[data-builder-mode="preview"] .builder-customer-zone-resizer { display: none; }
.configurator-builder-v1[data-builder-mode="preview"] .builder-placement-resizer { display: none; }

@media (max-width: 760px) {
  .builder-customer-zone-resizer, .builder-placement-resizer { display: none; }
}
.builder-element-list-heading { padding-top: 7px; color: #7a828d; font-size: 6px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.builder-element-list button:not(:disabled) { cursor: pointer; }
.builder-element-list button[draggable="true"] { cursor: grab; }
.builder-element-list button[draggable="true"]:active { cursor: grabbing; }
.builder-element-list button.is-pointer-dragging,
.builder-layout-placement.is-pointer-dragging,
.builder-surface-list li.is-pointer-dragging { cursor: grabbing; opacity: .58; }
.builder-element-editor { display: grid; gap: 10px; }
.builder-element-back { justify-self: start; padding: 0; border: 0; color: #3047c8; background: transparent; font-size: 7px; font-weight: 800; cursor: pointer; }
.builder-element-editor > p { margin: 0; color: #737b87; font-size: 7px; line-height: 1.45; }
.builder-element-editor > label { display: grid; gap: 5px; color: #59616c; font-size: 7px; font-weight: 760; }
.builder-element-editor input { width: 100%; min-height: 35px; padding: 7px 8px; border: 1px solid #dfe3eb; border-radius: 7px; color: #252a32; background: #fff; font: inherit; }
.builder-element-bound-note { display: grid; gap: 3px; padding: 9px 0; border-top: 1px solid #e7e9ee; border-bottom: 1px solid #e7e9ee; }
.builder-element-bound-note strong { font-size: 8px; }
.builder-element-bound-note span { color: #737b87; font-size: 7px; line-height: 1.45; }
.builder-element-editor-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
.builder-element-editor-actions button { min-height: 34px; border: 1px solid #dfe3eb; border-radius: 7px; color: #4e5662; background: #fff; font-size: 7px; font-weight: 760; cursor: pointer; }
.builder-element-editor-actions button.is-danger { color: #a43b36; }

.studio-shell[data-builder-active="true"] .configurator-builder-v1[data-builder-device="mobile"] .builder-player-layout,
.studio-shell[data-builder-active="true"] .configurator-builder-v1[data-builder-device="tablet"] .builder-player-layout {
  /* Runway BYG-1: tablet joins the stacked mobile flow, and the viewer row
     follows the author-adjustable split instead of a fixed fraction. The
     right row takes the leftover space because the standard presets put the
     customer controls there; a left-sidebar preset still stacks, just
     content-sized. */
  height: clamp(560px, 74vh, 840px);
  min-height: 0;
  max-height: none;
  grid-template-columns: 1fr;
  grid-template-rows: minmax(0, var(--top-size)) minmax(180px, var(--stacked-stage, 44%)) auto minmax(0, 1fr) minmax(0, var(--bottom-size));
  grid-template-areas: "top" "viewer" "left" "right" "bottom";
}

.studio-shell[data-builder-active="true"] .configurator-builder-v1[data-builder-device="mobile"] .builder-layout-zone[data-zone-enabled="false"],
.studio-shell[data-builder-active="true"] .configurator-builder-v1[data-builder-device="tablet"] .builder-layout-zone[data-zone-enabled="false"] {
  /* Stacked frames collapse disabled zones so no empty band separates the
     stage from the options; desktop keeps them as drop targets. */
  display: none;
}

.builder-empty-viewer {
  min-width: 0;
  min-height: 100%;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  padding: 24px;
  color: #68717d;
  text-align: center;
  background: #f7f8fa;
}
.builder-empty-viewer .icon { width: 34px; height: 34px; color: #4f6bff; }
.builder-empty-viewer strong { color: #252a32; font-size: 13px; }
.builder-empty-viewer span { max-width: 280px; font-size: 9px; line-height: 1.5; }
.studio-shell[data-builder-active="true"] .configurator-builder-v1[data-builder-device="mobile"] .builder-player-controls { max-height: 45%; border: 0; border-top: 1px solid #e2e5eb; }

/* Block 23K: exact local Brand Profile editing around the same Player. */
.builder-brand-panel { display: grid; gap: 11px; }
.builder-brand-panel > label, .builder-brand-advanced label, .builder-brand-labels label { display: grid; gap: 5px; color: #59616c; font-size: 7px; font-weight: 760; }
.builder-brand-panel input, .builder-brand-panel select { width: 100%; min-height: 34px; padding: 6px 8px; border: 1px solid #dfe3eb; border-radius: 7px; color: #252a32; background: #fff; font: inherit; }
.builder-brand-revision { display: flex; align-items: center; justify-content: space-between; gap: 7px; padding: 8px 0; border-top: 1px solid #e7e9ee; border-bottom: 1px solid #e7e9ee; font-size: 7px; }
.builder-brand-revision span { color: #24734d; font-weight: 800; }
.builder-brand-revision code { color: #727a86; font-size: 6px; }
.builder-brand-presets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.builder-brand-presets button { min-height: 32px; border: 1px solid #dfe3eb; border-radius: 7px; color: #4e5662; background: #fff; font-size: 7px; font-weight: 760; cursor: pointer; }
.builder-brand-presets button[aria-pressed="true"] { border-color: #9eabf6; color: #3047c8; background: #eef1ff; }
.builder-brand-colors { display: grid; gap: 0; border-top: 1px solid #e7e9ee; }
.builder-brand-color { padding: 7px 0; border-bottom: 1px solid #edf0f4; }
.builder-brand-color > span:last-child { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 7px; }
.builder-brand-color input[type="color"] { min-height: 28px; padding: 2px; }
.builder-brand-color code { color: #727a86; font-size: 7px; }
.builder-brand-advanced { border-top: 1px solid #e7e9ee; }
.builder-brand-advanced summary { padding: 10px 0; color: #38404b; font-size: 8px; font-weight: 800; cursor: pointer; }
.builder-brand-advanced[open] { display: grid; gap: 10px; }
.builder-brand-inline { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.builder-brand-labels { display: grid; gap: 10px; padding-top: 8px; border-top: 1px solid #edf0f4; }
.builder-brand-labels fieldset { display: grid; gap: 7px; padding: 0; border: 0; }
.builder-brand-labels legend { margin-bottom: 2px; font-size: 7px; font-weight: 850; }
.builder-brand-save { width: 100%; justify-content: center; }

.builder-player-layout {
  color: var(--builder-brand-text, #11131a);
  background: var(--builder-brand-surface, #fff);
  font-family: system-ui, sans-serif;
}
.builder-player-stage { background: var(--builder-viewer-stage-background, var(--builder-brand-viewer, #fff)); }
.builder-player-controls, .builder-layout-zone.zone-top-bar, .builder-layout-zone.zone-bottom-bar { color: var(--builder-brand-text, #11131a); background: var(--builder-brand-surface, #fff); }
.builder-player-group legend, .builder-layout-text, .builder-player-total span { color: var(--builder-brand-text-muted, #4a5260); }
.builder-player-group button { border-color: var(--builder-brand-border, #bec5ce); color: var(--builder-brand-text, #11131a); background: var(--builder-brand-surface-muted, #e8eceb); }
.builder-player-group button[aria-pressed="true"] { border-color: var(--builder-brand-accent, #2955f3); color: var(--builder-brand-text, #11131a); background: var(--builder-brand-surface, #fff); box-shadow: 0 0 0 2px color-mix(in srgb, var(--builder-brand-focus, #1739b7) 16%, transparent); }
.builder-player-group button:focus-visible { outline-color: var(--builder-brand-focus, #1739b7); }
.builder-layout-primary-action { border-color: var(--builder-brand-accent, #2955f3); color: var(--builder-brand-accent-contrast, #fff); background: var(--builder-brand-accent, #2955f3); }

/* Block 29S-2: content-addressed identity + quota states + portable export */
.asset-identity { display: inline-block; margin-top: 2px; font-size: 11px; color: #64708a; background: #f1f3f9; border-radius: 6px; padding: 1px 6px; }
.storage-banner.quota-warning .storage-meter i b { background: #b98900; }
.storage-banner.quota-exceeded .storage-meter i b { background: #b42318; }
.storage-meter i b.quota-fill-1 { width: 10%; }
.storage-meter i b.quota-fill-2 { width: 20%; }
.storage-meter i b.quota-fill-3 { width: 30%; }
.storage-meter i b.quota-fill-4 { width: 40%; }
.storage-meter i b.quota-fill-5 { width: 50%; }
.storage-meter i b.quota-fill-6 { width: 60%; }
.storage-meter i b.quota-fill-7 { width: 70%; }
.storage-meter i b.quota-fill-8 { width: 80%; }
.storage-meter i b.quota-fill-9 { width: 90%; }
.storage-meter i b.quota-fill-10 { width: 100%; }
.export-snapshot { width: 100%; font: 12px/1.5 ui-monospace, monospace; color: #33405c; background: #f7f8fc; border: 1px solid #dfe4ee; border-radius: 10px; padding: 10px; resize: vertical; }

/* Task P1: login page and session card */
.login-page { min-height: 100vh; display: grid; place-items: center; background: #0f1428; padding: 24px; }
.login-panel { max-width: 380px; width: 100%; background: #fff; border-radius: 14px; padding: 28px; display: grid; gap: 12px; }
.login-panel h1 { font-size: 20px; color: #17203a; }
.login-panel p { color: #5b6780; font-size: 13px; }
.login-panel form { display: grid; gap: 10px; }
.login-panel input { padding: 10px 12px; border: 1px solid #dfe4ee; border-radius: 10px; font: inherit; }
.profile-session { grid-template-columns: 32px minmax(0, 1fr) auto; }

/* Task P3: plan cards and simulated state controls */
.billing-plan-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.billing-plan-card { border: 1px solid #dfe4ee; border-radius: 10px; padding: 12px; display: grid; gap: 6px; }
.billing-plan-card.is-current { border-color: #2f6f4f; background: #f2f8f4; }
.billing-plan-card em { color: #2f6f4f; font-style: normal; font-size: 12px; }
.billing-state-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

/* Runway BYG-4: the Viewer settings section. */
.builder-viewer-settings { min-width: 0; max-width: 100%; display: grid; gap: 8px; margin-top: 14px; padding: 11px; border: 1px solid #e7ebe8; border-radius: 9px; background: #fafbfa; }
.builder-viewer-settings label { min-width: 0; display: grid; gap: 4px; font-size: 7px; font-weight: 750; color: #526057; }
.builder-viewer-settings input[type="range"] { width: 100%; accent-color: var(--builder-brand-accent, #2955f3); }
.builder-viewer-settings label span output { float: right; font-variant-numeric: tabular-nums; }
.builder-viewer-settings input[type="color"] { width: 46px; height: 28px; padding: 0; border: 1px solid #dfe3eb; border-radius: 6px; background: #fff; }
.builder-viewer-camera { display: grid; gap: 6px; }
.builder-viewer-camera > p { margin: 0; font-size: 7px; font-weight: 750; color: #526057; }
.builder-viewer-camera > div { display: flex; flex-wrap: wrap; gap: 6px; }
.builder-viewer-camera > div .button { min-width: 0; flex: 1 1 130px; white-space: normal; }
.builder-viewer-camera small { color: #757c87; font-size: 6.6px; }

/* Runway BYG-5: placed Player-control chips on the canvas. */
.builder-layout-control { display: inline-flex; align-items: center; gap: 5px; padding: 6px 9px; border: 1px solid #dde5df; border-radius: 999px; color: #3d4b42; background: rgb(255 255 255 / 92%); font-size: 7px; font-weight: 750; box-shadow: 0 4px 10px rgb(18 44 32 / 7%); }
.builder-layout-control svg { width: 11px; height: 11px; }

/* Runway BYG-6: the step bar in the Builder preview. */
.builder-player-step-bar { display: grid; gap: 6px; margin-bottom: 7px; padding: 8px 9px; border: 1px solid #e1e7e3; border-radius: 9px; background: #f6f8f7; }
.builder-player-step-bar .player-step-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.builder-player-step-bar .player-step-heading strong { font-size: 8px; }
.builder-player-step-bar .player-step-heading span { color: #6a776f; font-size: 6.6px; font-weight: 750; }
.builder-player-step-bar .player-step-nav { display: flex; gap: 5px; }
.builder-player-step-bar .player-step-nav button { flex: 1; min-height: 28px; border: 1px solid #dde5df; border-radius: 7px; background: #fff; font-size: 7px; font-weight: 750; color: #29433a; cursor: pointer; }
.builder-player-step-bar .player-step-nav button:disabled { opacity: .45; cursor: default; }

/* Runway BYG-8B: buyer inputs in the Builder preview. */
.builder-player-input { grid-column: 1 / -1; }
.builder-buyer-input { display: grid; gap: 4px; font-size: 7.4px; font-weight: 750; color: #3d4b42; }
.builder-buyer-input input { min-height: 34px; padding: 6px 9px; border: 1px solid #dde5df; border-radius: 8px; background: #fff; font: inherit; font-weight: 500; }
.builder-buyer-input--yes_no { grid-template-columns: auto 1fr; align-items: center; }
.builder-buyer-input--yes_no input { min-height: 0; width: 15px; height: 15px; accent-color: var(--builder-brand-accent, #2955f3); }
.builder-buyer-input--yes_no span { order: 2; }
.builder-buyer-input small { color: #a43b36; font-weight: 650; }

/* Runway BYG-10: one consistent control language in the Builder panels - no
   native browser look. */
.unified-builder-toolbox select,
.builder-choice-display select,
.builder-viewer-settings select {
  appearance: none;
  -webkit-appearance: none;
  min-height: 30px;
  padding: 5px 24px 5px 9px;
  border: 1px solid #dfe3eb;
  border-radius: 8px;
  /* Chevron drawn with gradients - the built shell must stay free of any
     http URL, including SVG namespaces. */
  background:
    linear-gradient(45deg, transparent 50%, #6a776f 50%) no-repeat right 13px center / 5px 5px,
    linear-gradient(135deg, #6a776f 50%, transparent 50%) no-repeat right 8px center / 5px 5px,
    #fff;
  color: #2d3a33;
  font: inherit;
  font-size: 7.4px;
  font-weight: 650;
  cursor: pointer;
}
.unified-builder-toolbox select:focus-visible,
.builder-viewer-settings select:focus-visible {
  outline: 2px solid var(--builder-brand-accent, #2955f3);
  outline-offset: 1px;
}
.builder-viewer-settings input[type="checkbox"],
.builder-choice-display input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: var(--builder-brand-accent, #2955f3);
}

/* Runway BYG-11: tighter toolbox typography without the intro block. */
.builder-context-heading.is-slim { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.builder-context-heading.is-slim .eyebrow { margin: 0; }

/* Runway BYG-12: revision integrity chip in the Builder topbar. */
.builder-integrity-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border: 1px solid #e1e7e3; border-radius: 999px; color: #526057; background: #f6f8f7; font-size: 6.6px; font-weight: 750; font-variant-numeric: tabular-nums; }
.builder-integrity-chip > span { width: 6px; height: 6px; border-radius: 50%; }
.builder-integrity-chip.is-ok > span { background: #2f9d61; box-shadow: 0 0 0 2px rgb(47 157 97 / 15%); }
.builder-integrity-chip.is-warn > span { background: #d18a38; box-shadow: 0 0 0 2px rgb(209 138 56 / 15%); }

/* Runway BYG-19: option card media in the Builder's customer preview. */
.builder-player-group button .builder-player-option-image { width: 100%; max-height: 84px; object-fit: cover; border-radius: 7px; display: block; }
.builder-player-group button.has-media { flex-direction: column; align-items: stretch; gap: 6px; text-align: center; }
.builder-option-image { margin-top: 8px; }

/* Runway BYG-24: many options in the customer preview. */
.builder-player-option-search { width: 100%; min-height: 30px; padding: 0 10px; border: 1px solid #ccd3dc; border-radius: 8px; font-size: 11px; }
.builder-player-group--many { max-height: 300px; overflow-y: auto; }

/* Runway BYG-25: missing image bytes banner. */
.builder-missing-images { display: flex; align-items: center; gap: 12px; margin: 8px 12px 0; padding: 9px 14px; border: 1px solid #f0d9a8; border-radius: 10px; background: #fdf6e3; color: #7a5b12; font-size: 12px; }
.builder-missing-images button { margin-left: auto; border: 1px solid #e3c778; border-radius: 8px; background: #fff; padding: 4px 12px; font-size: 11px; font-weight: 600; color: #7a5b12; cursor: pointer; }

/* Runway BYG-28: WordPress version status next to To WordPress. */
.builder-wp-status { display: inline-flex; align-items: center; gap: 5px; margin-left: 6px; padding: 3px 9px; border-radius: 999px; font-size: 10px; font-weight: 600; white-space: nowrap; }
.builder-wp-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.builder-wp-status.is-current { background: #e7f5ec; color: #14683a; }
.builder-wp-status.is-current::before { background: #1d9d57; }
.builder-wp-status.is-stale { background: #fdf3df; color: #7a5b12; }
.builder-wp-status.is-stale::before { background: #d9a23a; }

/* Runway BYG-30: undo/redo in the Builder topbar. */
[data-action="builder-undo"], [data-action="builder-redo"] { font-size: 15px; min-width: 34px; }
[data-action="builder-undo"]:disabled, [data-action="builder-redo"]:disabled { opacity: .35; cursor: default; }

/* Runway BYG-31: always-available reset-view on the Builder stage. */
.builder-stage-fit { position: absolute; right: 12px; bottom: 12px; z-index: 4; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid #d5dae2; border-radius: 999px; background: #fff; font-size: 11px; font-weight: 600; color: #3c434d; cursor: pointer; box-shadow: 0 1px 4px rgb(16 24 40 / 8%); }
.builder-stage-fit:hover { border-color: #9aa4b2; }
.builder-stage-fit .icon { width: 13px; height: 13px; }

/* Runway BYG-32: clear undo/redo buttons and the save split menu. */
.builder-history-buttons { display: inline-flex; border: 1px solid #d5dae2; border-radius: 9px; overflow: hidden; }
.builder-history-button { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 32px; border: 0; background: #fff; color: #3c434d; cursor: pointer; }
.builder-history-button + .builder-history-button { border-left: 1px solid #e4e8ee; }
.builder-history-button:hover:not(:disabled) { background: #f2f4f8; }
.builder-history-button:disabled { opacity: .35; cursor: default; }
.builder-history-button .icon { width: 15px; height: 15px; }
.builder-save-split { position: relative; display: inline-flex; }
.builder-save-split > .button-primary:first-child { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.builder-save-split-caret { border-top-left-radius: 0; border-bottom-left-radius: 0; margin-left: 1px; padding: 0 8px; min-width: 30px; }
.builder-save-split-caret .icon { width: 13px; height: 13px; }
.builder-save-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; background: #fff; border: 1px solid #d5dae2; border-radius: 10px; box-shadow: 0 8px 24px rgb(16 24 40 / 12%); padding: 5px; min-width: 210px; }
.builder-save-menu button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 8px 12px; border-radius: 7px; font-size: 12px; font-weight: 600; color: #23272f; cursor: pointer; }
.builder-save-menu button:hover { background: #f2f4f8; }

/* Runway BYG-39: compact element catalog and zone orientation pill. */
.builder-element-list button.is-compact { display: flex; align-items: center; gap: 9px; padding: 8px 11px; text-align: left; }
.builder-element-list button.is-compact .icon { width: 15px; height: 15px; flex: 0 0 auto; color: #5a6472; }
.builder-element-list button.is-compact strong { font-size: 12px; }
.builder-element-list button.is-compact small { margin-left: auto; font-size: 9px; color: #9aa4b2; }
.builder-zone-orientation-pill { display: none; position: absolute; top: 50%; right: 4px; transform: translateY(-50%); z-index: 5; width: 22px; height: 22px; border: 1px solid #c9cfdb; border-radius: 7px; background: #fff; font-size: 12px; line-height: 1; cursor: pointer; box-shadow: 0 1px 3px rgb(16 24 40 / 10%); }
.builder-layout-zone[aria-current="true"] .builder-zone-orientation-pill { display: block; }
.builder-layout-zone.zone-left-sidebar .builder-zone-orientation-pill, .builder-layout-zone.zone-right-sidebar .builder-zone-orientation-pill { top: 10px; right: 6px; transform: none; }
.builder-zone-orientation-pill:hover { border-color: #8d97a8; }

/* Runway BYG-40: the Builder opens fullscreen - the Studio navigation leaves
   the stage entirely while editing; the back arrow in the topbar returns. */
.studio-shell[data-builder-active="true"] { grid-template-columns: minmax(0, 1fr); }
.studio-shell[data-builder-active="true"] .sidebar { display: none; }
.builder-exit-button .icon { transform: rotate(180deg); }

/* Runway KONTO-5: trial chip and the soft trial wall. */
.konto-trial-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border: 1px solid #c9d4f5; border-radius: 999px; color: #2743b0; background: #eef2ff; font-size: 11px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.konto-trial-chip .icon { width: 13px; height: 13px; }
.konto-trial-chip:hover { border-color: #8fa4ea; }
.konto-trial-chip.is-overdue { color: #8a1f2d; border-color: #f0b9c0; background: #fdeef0; }
.konto-trial-wall { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px; background: rgb(9 12 24 / 55%); backdrop-filter: blur(3px); }
.konto-trial-wall-card { width: min(440px, 100%); display: grid; gap: 14px; padding: 28px; border-radius: 16px; background: #fff; box-shadow: 0 18px 60px rgb(9 12 24 / 30%); }
.konto-trial-wall-card h2 { font-size: 20px; }
.konto-trial-wall-card > p { color: #4b5565; font-size: 13px; }
.konto-plan-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid #dbe2ee; border-radius: 12px; background: #f7f9fd; }
.konto-plan-card small { display: block; margin-top: 2px; color: #6b7686; font-size: 11px; }
.konto-plan-price { font-size: 18px; font-weight: 800; }
.konto-plan-price small { font-size: 11px; font-weight: 600; color: #6b7686; }
.konto-trial-wall .button-ghost { border: 0; background: transparent; color: #5a6472; cursor: pointer; font-size: 12px; }
.konto-trial-wall .button-ghost:hover { color: #24272e; text-decoration: underline; }

/* Runway KONTO-7: admin fase A table. */
.konto-admin-transport { padding: 5px 10px; border: 1px solid #dbe2ee; border-radius: 999px; color: #5a6472; background: #f7f9fd; font-size: 10px; font-weight: 700; white-space: nowrap; }
.konto-admin-table-wrap { overflow-x: auto; }
.konto-admin-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.konto-admin-table th { padding: 9px 12px; border-bottom: 1px solid #e4e9f2; color: #6b7686; font-size: 10px; letter-spacing: 0.06em; text-align: left; text-transform: uppercase; }
.konto-admin-table td { padding: 11px 12px; border-bottom: 1px solid #eef1f7; vertical-align: top; }
.konto-admin-table td small { display: block; margin-top: 2px; color: #8a94a4; font-size: 10px; }
.konto-admin-state { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 10px; font-weight: 700; }
.konto-admin-state.is-active { color: #0c5132; background: #d9f2e4; }
.konto-admin-state.is-trialing { color: #2743b0; background: #e8edff; }
.konto-admin-state.is-ended { color: #6b7686; background: #eef1f7; }
.konto-admin-note { display: flex; gap: 8px; align-items: center; margin-top: 14px; color: #6b7686; font-size: 11px; }
.konto-admin-note .icon { width: 13px; height: 13px; flex: 0 0 auto; }

/* Runway KONTO-8a: the customer signup screen. */
.konto-auth-screen { min-height: 100vh; display: grid; place-items: center; padding: 28px; background: linear-gradient(180deg, #f4f6fb 0%, #e9edf6 100%); }
.konto-auth-card { width: min(400px, 100%); display: grid; gap: 12px; padding: 32px 30px; border: 1px solid #e2e7f0; border-radius: 18px; background: #fff; box-shadow: 0 18px 60px rgb(9 12 24 / 10%); }
.konto-auth-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 15px; }
.konto-auth-brand b { font-weight: 800; }
.konto-auth-card h1 { font-size: 22px; }
.konto-auth-sub { color: #5a6472; font-size: 12px; }
.konto-auth-field { display: grid; gap: 5px; font-size: 11px; font-weight: 700; color: #454e5c; }
.konto-auth-field input { padding: 10px 12px; border: 1px solid #c9d1de; border-radius: 10px; font-size: 13px; }
.konto-auth-field input:focus-visible { outline: 2px solid #4f6bff; outline-offset: 1px; }
.konto-auth-primary { width: 100%; justify-content: center; }
.konto-auth-google { width: 100%; justify-content: center; opacity: 0.7; }
.konto-auth-divider { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; color: #9aa4b2; font-size: 10px; text-transform: uppercase; }
.konto-auth-divider::before, .konto-auth-divider::after { content: ""; height: 1px; background: #e4e9f2; }
.konto-auth-switch { color: #5a6472; font-size: 12px; }
.konto-auth-switch button { border: 0; padding: 0; background: transparent; color: #2743b0; cursor: pointer; font: inherit; font-weight: 700; text-decoration: underline; }
.konto-auth-error { padding: 9px 12px; border: 1px solid #f0b9c0; border-radius: 10px; color: #8a1f2d; background: #fdeef0; font-size: 12px; }
.konto-auth-transport { color: #8a94a4; font-size: 10px; }
.konto-auth-hint { color: #5a6472; font-size: 12px; }
.konto-auth-ready { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid #bfe4cf; border-radius: 12px; background: #ecf9f1; font-size: 12px; }
.konto-auth-ready .icon { width: 16px; height: 16px; flex: 0 0 auto; color: #0c5132; }
.konto-auth-ready small { display: block; margin-top: 3px; color: #4b5565; }
.konto-auth-back { margin-top: 4px; color: #8a94a4; font-size: 11px; text-align: center; }

/* Core Block 7: installable, version-locked ConfigUX template library. */
.template-library-page { display: grid; gap: 22px; }
.template-library-page .page-header { margin-bottom: 0; }
.template-library-safety { display: flex; align-items: flex-start; gap: 12px; padding: 15px 18px; border: 1px solid #ccd7ff; border-radius: 13px; background: #f3f6ff; color: #34405c; }
.template-library-safety .icon { width: 18px; height: 18px; flex: 0 0 auto; color: #315cf5; }
.template-library-safety strong, .template-library-safety span { display: block; }
.template-library-safety span { margin-top: 3px; color: #667087; font-size: 12px; }
.template-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 440px)); gap: 18px; }
.template-card { overflow: hidden; border: 1px solid #dfe4ed; border-radius: 16px; background: #fff; box-shadow: 0 8px 24px rgb(21 31 54 / 5%); }
.template-card-preview { min-height: 190px; display: grid; place-items: center; align-content: center; gap: 12px; color: #fff; background: radial-gradient(circle at 70% 28%, #6984ff 0, #354fba 38%, #182044 100%); }
.template-card-preview span { width: 58px; height: 58px; display: grid; place-items: center; border: 1px solid rgb(255 255 255 / 30%); border-radius: 16px; background: rgb(255 255 255 / 12%); }
.template-card-preview .icon { width: 30px; height: 30px; }
.template-card-preview strong { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.template-card-body { display: grid; gap: 12px; padding: 20px; }
.template-card-body h2 { font-size: 20px; }
.template-card-body > p { color: #667087; font-size: 13px; line-height: 1.55; }
.template-card-meta, .template-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #7b8495; font-size: 11px; }
.template-card-facts { display: grid; gap: 7px; margin: 0; padding-left: 18px; color: #4f596b; font-size: 12px; }
.template-card-actions { padding-top: 4px; }
.template-card-actions .button { justify-content: center; }
.template-gate-note { padding: 10px 12px; border-radius: 9px; background: #f4f5f7; color: #697386 !important; font-size: 11px !important; }
@media (max-width: 720px) { .template-grid { grid-template-columns: 1fr; } .template-card-actions { align-items: stretch; flex-direction: column; } }

/* ALPHA-E7: human review corrections. The Builder keeps its exact responsive
   CSS viewport, but the review stage now reads as a device preview instead of
   a tiny white island in an unbounded desktop canvas. */
.workspace-locked { width: 28px; height: 28px; flex: 0 0 auto; display: grid; place-items: center; color: #8e98a8; }
.workspace-locked .icon { width: 13px; height: 13px; }
.connector-cloud-proof { display: inline-flex; align-items: center; gap: 6px; color: #17653b; font-size: 10px; font-weight: 750; white-space: nowrap; }
.connector-cloud-proof .icon { width: 13px; height: 13px; }
.operator-template-setup { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 24px 26px; }
.operator-template-setup h2 { margin: 4px 0 7px; }
.operator-template-setup p:not(.eyebrow) { max-width: 720px; margin: 0; color: #667085; }
.operator-template-submission { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(220px, 0.8fr) auto; gap: 18px; align-items: end; width: 100%; padding: 18px 0; border-top: 1px solid #e4e9f2; }
.operator-template-submission h3 { margin: 3px 0 5px; }
.operator-template-submission label { display: grid; gap: 6px; color: #344054; font-size: 12px; font-weight: 700; }
.operator-template-submission input { min-height: 42px; padding: 0 12px; border: 1px solid #d0d5dd; border-radius: 9px; font: inherit; font-weight: 400; }
.operator-template-submission .form-actions { display: flex; gap: 8px; }
.operator-template-upload { flex: 0 0 auto; cursor: pointer; }
.operator-template-upload input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.operator-template-upload:focus-within .button { outline: 3px solid rgb(76 107 255 / 22%); outline-offset: 2px; }
.studio-shell[data-builder-active="true"] .unified-builder-workspace { grid-template-columns: var(--builder-toolbox-width, 304px) 8px minmax(0, 1fr); }
.studio-shell[data-builder-active="true"] .unified-builder-toolbox { padding: 16px; }
.studio-shell[data-builder-active="true"] .builder-context-tabs { gap: 8px; }
.studio-shell[data-builder-active="true"] .builder-context-tabs button { min-height: 38px; padding-inline: 9px; font-size: 9px; }
.studio-shell[data-builder-active="true"] .builder-context-content { font-size: 11px; }
.studio-shell[data-builder-active="true"] .configurator-builder-v1[data-builder-mode="edit"][data-builder-device="tablet"] .unified-builder-canvas,
.studio-shell[data-builder-active="true"] .configurator-builder-v1[data-builder-mode="edit"][data-builder-device="mobile"] .unified-builder-canvas {
  position: relative;
  align-items: center;
  justify-content: center;
  padding: 42px 24px 24px;
  background: #edf1f7;
}
.studio-shell[data-builder-active="true"] .configurator-builder-v1[data-builder-mode="edit"][data-builder-device="tablet"] .unified-builder-canvas::before,
.studio-shell[data-builder-active="true"] .configurator-builder-v1[data-builder-mode="edit"][data-builder-device="mobile"] .unified-builder-canvas::before {
  position: absolute;
  top: 13px;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
  color: #687386;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .04em;
  white-space: nowrap;
}
.studio-shell[data-builder-active="true"] .configurator-builder-v1[data-builder-mode="edit"][data-builder-device="tablet"] .unified-builder-canvas::before { content: "Tablet preview · 820 px"; }
.studio-shell[data-builder-active="true"] .configurator-builder-v1[data-builder-mode="edit"][data-builder-device="mobile"] .unified-builder-canvas::before { content: "Mobile preview · 390 px"; }
.studio-shell[data-builder-active="true"] .configurator-builder-v1[data-builder-mode="edit"][data-builder-device="tablet"] .unified-builder-device-frame,
.studio-shell[data-builder-active="true"] .configurator-builder-v1[data-builder-mode="edit"][data-builder-device="mobile"] .unified-builder-device-frame {
  flex: 0 1 auto;
  max-height: 100%;
  border: 1px solid #cbd3df;
  border-radius: 14px;
  box-shadow: 0 18px 48px rgb(28 40 70 / 16%);
}
.studio-shell[data-builder-active="true"] .configurator-builder-v1[data-builder-mode="edit"][data-builder-device="tablet"] .unified-builder-device-frame {
  height: calc((100% - 8px) / 1.04);
  transform: scale(1.04);
}
.studio-shell[data-builder-active="true"] .configurator-builder-v1[data-builder-mode="edit"][data-builder-device="mobile"] .unified-builder-device-frame {
  height: calc((100% - 8px) / 1.16);
  transform: scale(1.16);
}
@media (max-width: 1100px) {
  .studio-shell[data-builder-active="true"] .unified-builder-workspace { grid-template-columns: minmax(240px, 280px) 8px minmax(0, 1fr); }
  .studio-shell[data-builder-active="true"] .configurator-builder-v1[data-builder-device="tablet"] .unified-builder-device-frame,
  .studio-shell[data-builder-active="true"] .configurator-builder-v1[data-builder-device="mobile"] .unified-builder-device-frame { transform: none; height: 100%; }
}
@media (max-width: 820px) {
  .operator-template-setup { align-items: stretch; flex-direction: column; }
  .operator-template-submission { grid-template-columns: 1fr; }
  .operator-template-upload .button { justify-content: center; width: 100%; }
}
