@font-face {
  font-family: "DM Sans";
  src: url(/fonts/dm-sans.woff2) format("woff2");
  font-display: swap;
  font-weight: 100 900;
}
@font-face {
  font-family: "Space Grotesk";
  src: url(/fonts/space-grotesk.woff2) format("woff2");
  font-display: swap;
  font-weight: 300 700;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url(/fonts/jetbrains-mono.woff2) format("woff2");
  font-display: swap;
  font-weight: 100 800;
}
:root {
  --canvas: #f7f7fc;
  --surface: #fff;
  --ink: #202027;
  --ink-2: #2d2c38;
  --subtle: #eeedf6;
  --text: #202027;
  --secondary: #606071;
  --inverse: #f7f7fc;
  --muted: #a2a1b5;
  --border: #e3e1ee;
  --accent: #8b7cf8;
  --strong: #6340ce;
  --accent-text: #5935bd;
  --soft: #eee8ff;
  --brand-cyan: #39c9f3;
  --brand-pink: #efb2de;
  --brand-gradient: linear-gradient(
    120deg,
    #285bd9 0%,
    #6340ce 65%,
    #7840b5 100%
  );
  --success: #157a45;
  --success-soft: #ddf3e6;
  --info: #2f5bea;
  --info-soft: #e1e8fd;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  line-height: 1.45;
}
h1,
h2,
h3,
strong {
  color: inherit;
}
h1,
h2,
h3 {
  font-family: "Space Grotesk", sans-serif;
  margin: 0 0 12px;
  font-weight: 700;
  line-height: 1.25;
}
h1 {
  font-size: 32px;
  letter-spacing: -0.7px;
}
h2 {
  font-size: 20px;
}
h3 {
  font-size: 16px;
}
p {
  margin: 0 0 12px;
}
a {
  color: var(--accent-text);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button {
  color: inherit;
}
input,
select,
textarea {
  width: 100%;
  padding: 11px 13px;
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text);
  min-height: 42px;
}
textarea {
  resize: vertical;
}
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  color: var(--secondary);
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.3;
}
.button:hover {
  text-decoration: none;
  filter: brightness(0.97);
}
.button.primary {
  background: var(--brand-gradient);
  color: white;
}
.button.secondary {
  background: white;
  border-color: var(--border);
  color: var(--ink);
}
.button.dark {
  background: var(--ink);
  color: white;
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--subtle);
  color: var(--secondary);
  font:
    500 11px/1.35 "JetBrains Mono",
    monospace;
  white-space: nowrap;
}
.chip.success {
  background: var(--success-soft);
  color: var(--success);
}
.chip.info {
  background: var(--info-soft);
  color: var(--info);
}
.chip.accent {
  background: var(--soft);
  color: var(--accent-text);
}
.eyebrow,
.source {
  font:
    500 11px/1.55 "JetBrains Mono",
    monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.muted,
small {
  color: var(--secondary);
}
small {
  display: block;
  font-size: 12px;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.row h2,
.row h3 {
  margin: 0;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.panel {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  min-width: 0;
}
.panel > h2 + .muted {
  margin-top: -5px;
  margin-bottom: 24px;
  font-size: 13px;
}
.panel.dark {
  background: var(--ink);
  color: var(--inverse);
  border-color: var(--ink);
}
.dark .muted,
.dark small {
  color: var(--muted);
}
.app-shell {
  display: flex;
  min-height: 100dvh;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 248px;
  background: var(--ink);
  color: var(--inverse);
  padding: 24px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}
.logo {
  font:
    700 28px "Space Grotesk",
    sans-serif;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 8px;
}
.ask-wordmark {
  display: block;
  width: 120px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
}
.logo small {
  font:
    500 11px "JetBrains Mono",
    monospace;
  color: var(--secondary);
}
.logo button {
  margin-left: auto;
  background: var(--ink-2);
  border: 0;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
}
.switcher {
  background: var(--ink-2);
  padding: 10px 12px;
  border-radius: 10px;
}
.switcher .eyebrow {
  color: var(--muted);
  font-size: 11px;
}
.switcher select {
  border: 0;
  background: var(--ink-2);
  color: var(--inverse);
  min-height: 28px;
  padding: 0;
  cursor: pointer;
  font-size: 14px;
}
.switcher-experience {
  border-top: 1px solid var(--ink);
  padding-top: 8px;
  margin-top: 4px;
}
.switcher-experience .row {
  gap: 4px;
}
.switcher-experience a {
  font-size: 12px;
  color: #c4b5fd;
}
.nav-group {
  font:
    500 11px "JetBrains Mono",
    monospace;
  color: var(--muted);
  letter-spacing: 0.08em;
  padding: 12px 12px 0;
  margin: 0 0 4px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  border-radius: 8px;
  min-height: 40px;
  padding: 9px 12px;
  font-size: 14px;
}
.nav-item:hover {
  background: var(--ink-2);
  text-decoration: none;
  color: var(--inverse);
}
.nav-item.active {
  background: linear-gradient(100deg, #443367, #302c42);
  box-shadow: inset 3px 0 0 var(--brand-cyan);
  color: var(--inverse);
  font-weight: 600;
}
.nav-item.active img {
  filter: brightness(1.7);
}
.count {
  margin-left: auto;
  font-size: 11px;
  background: var(--strong);
  color: white;
  padding: 1px 6px;
  border-radius: 8px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 32px;
}
.user {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 14px 8px 0;
  font-size: 13px;
}
.user small {
  color: var(--muted);
  font-size: 11px;
}
.user button {
  background: transparent;
  border: 0;
  color: var(--muted);
  margin-left: auto;
  font-size: 22px;
}
.dashboard {
  margin-left: 248px;
  width: calc(100% - 248px);
  padding: 36px 40px;
  min-width: 0;
}
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.page-header h1 {
  margin-bottom: 6px;
}
.page-header p {
  margin: 0;
  color: var(--secondary);
}
.header-actions {
  display: flex;
  gap: 12px;
}
.columns {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(280px, 1fr);
  gap: 24px;
  align-items: start;
}
.columns > .panel {
  min-height: 360px;
}
.experience-columns {
  grid-template-columns: minmax(270px, 360px) minmax(0, 1fr);
}
.experience-columns > .panel {
  min-height: 640px;
}
.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  margin: 20px 0;
}
.form-grid label {
  min-width: 0;
  font-size: 12px;
}
.qr {
  background: white;
  padding: 8px;
  border-radius: 9px;
  display: block;
  margin: 24px 0 14px;
  max-width: 100%;
  height: auto;
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.steps > div {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  gap: 10px;
  font-weight: 600;
}
.steps span {
  font:
    500 11px "JetBrains Mono",
    monospace;
  align-self: center;
  color: var(--secondary);
}
.steps .done {
  background: var(--success-soft);
  border-color: var(--success-soft);
}
.steps .done span {
  color: var(--success);
}
.steps .current {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.steps .current span {
  color: var(--accent);
}
.summary-stats {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}
.stat-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
  min-width: 120px;
  flex: 1;
}
.stat-card strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 26px;
  letter-spacing: -0.5px;
}
.stat-card > span {
  font-size: 12px;
  color: var(--secondary);
}
.gaps-callout {
  background: var(--soft);
  padding: 16px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 2.5;
}
.gaps-callout .button {
  margin-left: auto;
  font-size: 12px;
}
.setup-columns {
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1.1fr);
}
.source-list {
  margin-top: 24px;
}
.list-row {
  padding: 15px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--border);
}
.list-row:last-child {
  border-bottom: 0;
}
.list-row strong {
  font-weight: 600;
}
.list-row small {
  margin-top: 3px;
}
.test-console {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.test-question {
  background: var(--strong);
  color: white;
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 8px;
}
.test-answer {
  background: var(--ink-2);
  color: var(--inverse);
  padding: 12px 14px;
  border-radius: 10px;
}
.test-answer .source {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
}
.test-console form {
  display: flex;
  background: var(--ink-2);
  border-radius: 8px;
}
.test-console input {
  background: transparent;
  border: 0;
  color: var(--inverse);
  font-size: 13px;
}
.test-console input::placeholder {
  color: var(--muted);
}
.test-console button {
  border: 0;
  background: transparent;
  color: var(--accent);
  width: 42px;
}
.test-qr {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--ink-2);
  border-radius: 10px;
  padding: 14px;
  margin-top: 16px;
}
.test-qr img {
  background: white;
  padding: 6px;
  border-radius: 8px;
}
.test-qr p {
  margin: 7px 0;
  font-size: 13px;
}
.test-qr small {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
}
.accent {
  color: var(--accent);
}
.toolbar {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}
.toolbar input {
  background: white;
}
.table-scroll {
  overflow-x: auto;
  width: 100%;
  margin-top: 16px;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th {
  color: var(--secondary);
  font:
    500 11px "JetBrains Mono",
    monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--canvas);
  padding: 12px 14px;
}
td {
  padding: 16px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  vertical-align: middle;
}
td small {
  margin-top: 5px;
}
tr:last-child td {
  border-bottom: 0;
}
.review-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.review-item:first-of-type {
  padding-top: 8px;
}
.review-item h3 {
  font-size: 17px;
}
.diff-before,
.diff-after {
  padding: 14px;
  margin: 14px 0;
  background: var(--canvas);
  border-radius: 10px;
}
.diff-before {
  background: #fff0ed;
}
.diff-after {
  background: var(--success-soft);
}
.review-item small {
  line-height: 1.5;
}
.diff-before p,
.diff-after p {
  margin: 8px 0 0;
}
.experience-choice {
  display: block;
  width: 100%;
  background: white;
  border: 1px solid transparent;
  border-radius: 12px;
  text-align: left;
  padding: 16px;
  margin-top: 10px;
  position: relative;
}
.experience-choice strong {
  display: block;
  padding-right: 60px;
  font-size: 14px;
}
.experience-choice small {
  margin-top: 5px;
}
.experience-choice .chip {
  position: absolute;
  right: 14px;
  top: 16px;
}
.experience-choice.selected {
  background: var(--soft);
  border-color: var(--accent);
}
.toggle {
  display: block;
  width: 36px;
  height: 20px;
  background: var(--border);
  border-radius: 14px;
  position: relative;
}
.toggle:after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  left: 2px;
  top: 2px;
  border-radius: 50%;
  background: white;
}
.toggle.on {
  background: var(--accent);
}
.toggle.on:after {
  left: 18px;
}
.empty {
  text-align: center;
  padding: 56px 22px;
  max-width: 620px;
  margin: auto;
}
.empty p {
  color: var(--secondary);
  margin: 12px 0 24px;
}
.empty-symbol {
  display: block;
  font-size: 42px;
  color: var(--accent);
  margin-bottom: 12px;
}
.notice {
  padding: 12px 16px;
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.error {
  color: #a9211b;
}
.notice.error {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}
.notice button {
  background: transparent;
  border: 0;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: white;
  border-radius: 12px;
  padding: 14px 24px;
  z-index: 50;
  box-shadow: 0 6px 24px #0002;
}
.demo-label {
  font:
    500 11px "JetBrains Mono",
    monospace;
  color: var(--secondary);
  margin: -12px 0 18px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.demo-label > span {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #20202788;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal {
  width: 100%;
  max-width: 560px;
  max-height: 90dvh;
  overflow: auto;
  position: relative;
  box-shadow: 0 20px 80px #0003;
}
.modal form {
  gap: 18px;
  margin-top: 22px;
}
.close {
  position: absolute;
  right: 20px;
  top: 12px;
  background: transparent;
  border: 0;
  font-size: 28px;
}
.login {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1000px;
  gap: 80px;
  margin: 14vh auto;
  padding: 32px;
  align-items: center;
}
.login-intro h1 {
  font-size: 56px;
  line-height: 1.1;
  margin: 28px 0 18px;
}
.login-intro .logo {
  padding: 0;
}
.login-intro .ask-wordmark {
  width: 230px;
  height: auto;
}
.login-intro > .eyebrow {
  margin-top: 50px;
  color: var(--accent-text);
}
.login-intro p {
  color: var(--secondary);
  max-width: 330px;
}
.login .panel {
  padding: 36px;
}
.login form {
  margin-top: 24px;
  gap: 18px;
}
.loading {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.progress {
  height: 6px;
  background: var(--canvas);
  border-radius: 3px;
  margin: 22px 0;
}
.progress > span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
}
.checklist-row {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
}
.checklist-row > div {
  flex: 1;
}
.checklist-row strong {
  font-size: 14px;
}
.checklist-row small {
  margin-top: 4px;
}
.check {
  display: block;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--canvas);
}
.check.complete {
  background: var(--success);
  border-color: var(--success);
  color: white;
  display: grid;
  place-items: center;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (min-width: 1600px) {
  .dashboard {
    max-width: 1700px;
  }
}
@media (max-width: 1100px) {
  .dashboard {
    padding: 28px 24px;
  }
  .page-header {
    align-items: flex-start;
  }
  .header-actions {
    flex-direction: column;
  }
  .columns,
  .setup-columns {
    grid-template-columns: 1fr;
  }
  .summary-stats {
    flex-wrap: wrap;
  }
  .gaps-callout {
    flex-basis: 100%;
  }
  .steps {
    grid-template-columns: 1fr 1fr;
  }
  .experience-columns {
    grid-template-columns: 280px 1fr;
  }
  .experience-columns > .panel {
    min-height: 400px;
  }
}
@media (max-width: 760px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    position: relative;
    width: 100%;
    padding: 16px;
    gap: 12px;
  }
  .sidebar nav {
    display: flex;
    overflow-x: auto;
    gap: 4px;
  }
  .sidebar nav > div {
    flex-shrink: 0;
  }
  .sidebar .nav-group,
  .sidebar-bottom,
  .switcher-experience {
    display: none;
  }
  .switcher {
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 16px;
  }
  .sidebar .logo {
    font-size: 24px;
  }
  .dashboard {
    margin: 0;
    width: 100%;
    padding: 24px 16px;
  }
  .page-header {
    gap: 12px;
  }
  .page-header h1 {
    font-size: 26px;
  }
  .page-header p {
    font-size: 13px;
  }
  .header-actions .button {
    font-size: 12px;
    padding: 9px;
  }
  .columns,
  .experience-columns {
    grid-template-columns: 1fr;
  }
  .panel {
    padding: 20px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .stat-card {
    min-width: 110px;
  }
  .login {
    grid-template-columns: 1fr;
    margin: 20px auto;
    gap: 28px;
    padding: 24px;
  }
  .login-intro h1 {
    font-size: 42px;
  }
  .login-intro > .eyebrow {
    margin-top: 22px;
  }
  .login-intro .chip {
    display: none;
  }
  .checklist-row {
    gap: 10px;
  }
  .checklist-row .button {
    font-size: 12px;
  }
  .steps {
    gap: 8px;
  }
  .steps > div {
    padding: 12px;
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}
.tabs button {
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--secondary);
}
.tabs button[aria-selected="true"],
.tabs button[aria-pressed="true"] {
  background: var(--ink);
  color: white;
}
.word-diff {
  padding: 12px 0;
}
.word-diff p {
  margin: 6px 0;
}
.word-diff del {
  color: #a9211b;
}
.word-diff ins {
  color: var(--success);
}
details {
  margin-top: 16px;
}
summary {
  cursor: pointer;
  color: var(--secondary);
  font-size: 13px;
}
.content-form {
  margin: 24px 0 0;
  gap: 18px;
}
.content-form fieldset {
  border: 1px solid var(--border);
  border-radius: 10px;
}
.checkbox {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 8px;
}
.checkbox input {
  width: 16px;
  min-height: 16px;
  height: 16px;
}
.secret-key {
  display: block;
  overflow-wrap: anywhere;
  margin: 14px 0;
}
pre {
  padding: 16px;
  background: var(--ink);
  color: var(--inverse);
  border-radius: 10px;
  overflow: auto;
  font-size: 12px;
}
.compact {
  margin: 0;
}
.compact > div {
  padding: 10px;
  font-size: 12px;
}
.toolbar {
  margin-top: 24px;
}
.experience-editor {
  margin-top: 28px;
}
.experience-editor > .row select {
  max-width: 340px;
}
.template-choices {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.template-choices button {
  padding: 14px 10px;
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-align: left;
  min-width: 0;
}
.template-choices button.selected {
  background: var(--soft);
  border-color: var(--accent);
}
.template-choices strong {
  display: block;
  font-size: 13px;
  margin: 10px 0 5px;
}
.template-choices small {
  font-size: 12px;
}
.source-option {
  justify-content: space-between;
  background: var(--canvas);
  border-radius: 10px;
  margin-bottom: 10px;
  padding: 12px;
}
.source-option strong {
  color: var(--ink);
  font-weight: 600;
}
.source-option small {
  margin-top: 4px;
}
.dark label {
  color: var(--muted);
}
.code-input {
  background: var(--ink-2);
  color: var(--inverse);
  font:
    12px/1.7 "JetBrains Mono",
    monospace;
  border: 0;
  margin-top: 10px;
}
.dark .tabs button {
  color: var(--inverse);
}
.dark .tabs button[aria-selected="true"],
.dark .tabs button[aria-pressed="true"] {
  background: var(--strong);
}
.brand-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}
.brand-preview span {
  display: block;
  width: 38px;
  height: 38px;
  background: #202027;
  border-radius: 50%;
}
.brand-preview span:nth-child(2) {
  background: var(--accent);
}
.brand-preview span:nth-child(3) {
  background: var(--canvas);
}
.brand-preview p {
  width: 100%;
  margin-top: 12px;
}
@media (max-width: 760px) {
  .template-choices {
    grid-template-columns: repeat(3, 1fr);
  }
}
.sponsor-shell {
  max-width: 1240px;
  padding: 36px;
  margin: auto;
}
.sponsor-shell > .tabs {
  margin-bottom: 32px;
}
.sponsor-shell > .panel {
  margin-top: 24px;
}
.live-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--ink);
  color: white;
  border-radius: 12px;
  padding: 16px;
}
.live-strip .button {
  margin-left: auto;
}
.settings-form {
  margin-bottom: 24px;
}
.notification-button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--muted);
  text-align: left;
  padding: 8px;
  font-size: 12px;
}
.notification-button span {
  margin-left: auto;
  background: var(--strong);
  color: white;
  padding: 2px 7px;
  border-radius: 10px;
}

input::placeholder,
textarea::placeholder {
  color: var(--secondary);
  opacity: 1;
}
.media-fields {
  border: 0;
  padding: 0;
  margin: 24px 0 0;
  min-width: 0;
}
.media-experience {
  max-width: 420px;
}
.media-dropzone {
  border: 2px dashed var(--line, #dedad2);
  border-radius: 12px;
  background: var(--canvas, #f7f7fc);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.media-dropzone.dragging {
  border-color: #6340ce;
  background: #eee8ff;
}
.media-dropzone p,
.media-dropzone small {
  margin: 0;
}
.media-dropzone small {
  max-width: 680px;
  line-height: 1.6;
}
.media-upload-icon {
  font-size: 28px;
  color: #6340ce;
}
.media-file {
  border: 1px solid #dedad2;
  border-radius: 12px;
  padding: 20px;
}
.media-file-heading,
.media-upload-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.media-file-heading > div {
  min-width: 0;
  flex: 1;
}
.media-file-heading strong {
  overflow-wrap: anywhere;
}
.media-file-heading small {
  display: block;
  margin-top: 6px;
}
.media-file [role="alert"] {
  color: #a52d12;
}
.media-fields:disabled {
  opacity: 0.75;
}
.library-toolbar {
  margin: 0;
  flex-wrap: wrap;
}
.library-toolbar input {
  flex: 1;
  width: auto;
  min-width: 220px;
}
.library-count {
  margin: 0;
}
.library-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.library-layout.has-selection {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
}
.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 28px 20px;
  min-width: 0;
}
.library-card {
  display: block;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  color: var(--text);
  cursor: pointer;
  min-width: 0;
  border-radius: 12px;
}
.library-card-preview {
  aspect-ratio: 4 / 3;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.15s;
}
.library-card:hover .library-card-preview,
.library-card.selected .library-card-preview {
  border-color: var(--strong);
}
.library-card.selected .library-card-preview {
  box-shadow: 0 0 0 2px var(--strong);
}
.library-card-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.library-card-placeholder {
  height: 100%;
  padding: 24px 24px 42px;
  overflow: hidden;
}
.library-card-placeholder > span {
  display: block;
  font-size: 30px;
  color: var(--strong);
  margin-bottom: 12px;
}
.library-card-placeholder p {
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.kind-video,
.kind-audio {
  background: var(--ink);
  color: var(--inverse);
}
.library-card-type {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 4px 8px;
  border-radius: 5px;
  background: var(--subtle);
  color: var(--ink);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  text-transform: uppercase;
}
.library-card-caption {
  padding: 12px 2px 0;
}
.library-card-caption strong {
  display: block;
  font-size: 15px;
  overflow-wrap: anywhere;
}
.library-card-caption small {
  display: block;
  color: var(--secondary);
  margin-top: 5px;
  text-transform: capitalize;
}
.library-detail {
  position: sticky;
  top: 24px;
  min-width: 0;
}
.library-detail-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}
.library-detail h2 {
  overflow-wrap: anywhere;
}
.library-detail-image,
.library-detail video {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--canvas);
}
.library-detail audio {
  width: 100%;
}
.library-detail-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 260px;
  overflow: auto;
}
.library-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.library-placements {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.library-placements h3 {
  font-size: 18px;
  margin-bottom: 4px;
}
.library-placements > p {
  margin-top: 0;
}
.library-placements ul {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}
.library-placements li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.library-placements small {
  display: block;
  margin-top: 4px;
  color: var(--secondary);
}
.library-edit {
  border-top: 1px solid var(--border);
  margin-top: 24px;
  padding-top: 20px;
}
.library-edit summary {
  cursor: pointer;
  font-weight: 600;
}
.library-edit .panel {
  border: 0;
  padding: 20px 0 0;
  margin: 0;
}
@media (max-width: 1200px) {
  .library-layout.has-selection {
    grid-template-columns: minmax(0, 1fr);
  }
  .library-detail {
    position: static;
    grid-row: 1;
  }
}
@media (max-width: 600px) {
  .library-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 12px;
  }
  .library-card-placeholder {
    padding: 16px 16px 38px;
  }
}
.experience-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.experience-intro h2 {
  margin: 8px 0;
}
.experience-intro p {
  margin: 0;
}
.text-button {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--secondary);
  cursor: pointer;
  font: inherit;
}
.experience-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.experience-summary-card {
  color: var(--text);
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.experience-summary-card:hover {
  border-color: var(--strong);
}
.experience-summary-card h3 {
  font-size: 22px;
  margin-top: 28px;
}
.experience-summary-card p {
  color: var(--secondary);
  min-height: 60px;
}
.experience-card-footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-top: 28px;
}
.experience-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.experience-progress button {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  color: var(--text);
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  font: inherit;
}
.experience-progress button[aria-current="step"] {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.experience-progress button span {
  font-family: "JetBrains Mono", monospace;
  color: var(--strong);
}
.experience-progress button[aria-current="step"] span {
  color: #c4b5fd;
}
.experience-progress button:disabled {
  cursor: default;
  opacity: 0.6;
}
.experience-details-form {
  max-width: 760px;
}
.experience-content-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  max-height: 440px;
  overflow-y: auto;
  padding: 3px;
}
.experience-content-option {
  display: flex;
  align-items: start;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
  margin: 0;
  background: var(--canvas);
  cursor: pointer;
}
.experience-content-option.selected {
  border-color: var(--strong);
  background: var(--soft);
}
.experience-content-option input {
  width: auto;
  margin-top: 4px;
}
.experience-content-option small {
  display: block;
  margin-top: 6px;
  color: var(--secondary);
}
.experience-share-qr {
  display: block;
  width: 220px;
  max-width: 100%;
  height: auto;
  margin-bottom: 24px;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.experience-delivery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}
.experience-delivery-grid input,
.experience-delivery-grid textarea {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
}
.experience-delivery-grid .button {
  margin-top: 12px;
}
.interaction-field {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.interaction-field > label {
  flex: 1;
  min-width: 120px;
}
.interaction-field > .checkbox {
  min-width: 100px;
}
@media (max-width: 1100px) {
  .experience-delivery-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 650px) {
  .experience-progress {
    grid-template-columns: 1fr;
  }
  .experience-intro {
    flex-wrap: wrap;
  }
}
.insights-filters {
  display: flex;
  gap: 16px;
  align-items: end;
  flex-wrap: wrap;
}
.insights-filters label {
  min-width: 180px;
  flex: 1;
  margin: 0;
}
.insights-filters h2 {
  margin: 0;
  flex: 1;
}
.insights-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.analytics-method {
  line-height: 1.65;
  margin: 0;
}
.insight-topic {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  width: 100%;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--border);
  padding: 20px 0;
  color: var(--text);
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.insight-topic p {
  margin: 6px 0;
  color: var(--secondary);
}
.insight-topic small {
  color: var(--secondary);
}
.insight-topic:hover strong {
  color: var(--strong);
}
.insight-totals > div {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  gap: 16px;
}
.question-evidence {
  border-top: 1px solid var(--border);
  padding: 18px 0;
}
.question-evidence summary {
  cursor: pointer;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}
.question-evidence summary > span:first-child {
  font-weight: 600;
  overflow-wrap: anywhere;
}
.question-evidence > p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.question-evidence > small {
  color: var(--secondary);
}
.sponsor-targets {
  max-height: 260px;
  overflow-y: auto;
}
.report-attribution {
  margin-top: 24px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.report-attribution summary {
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 16px;
}
@media (max-width: 1000px) {
  .insights-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Type labels accompany color so every next step is recognizable. */
.interaction-tile,
.interaction-editor {
  border: 1px solid var(--border, #d8d9dc);
  border-left: 5px solid var(--interaction-accent);
  border-radius: 12px;
  padding: 18px;
  background: var(--interaction-tint);
}
.interaction-tile {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.interaction-tile small {
  display: block;
  margin-top: 5px;
}
.interaction-funnel {
  --interaction-accent: #6250bd;
  --interaction-tint: #f4f1ff;
}
.interaction-form {
  --interaction-accent: #237549;
  --interaction-tint: #edf8f1;
}
.interaction-action {
  --interaction-accent: #b15e19;
  --interaction-tint: #fff5e9;
}
.interaction-connection {
  --interaction-accent: #2769a6;
  --interaction-tint: #eef6ff;
}

.experience-included-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}
.experience-included-card {
  overflow: hidden;
  border: 1px solid #d8d9dc;
  border-radius: 12px;
  background: #fff;
}
.experience-included-card > .stack {
  padding: 16px;
  gap: 12px;
}
.experience-included-card .library-card-preview {
  height: 140px;
}
.experience-included-card small {
  overflow-wrap: anywhere;
  color: #50545c;
}

.experience-included-card .library-card-preview {
  width: 100%;
  aspect-ratio: auto;
  border-radius: 0;
  border-width: 0 0 1px;
}
.experience-included-card .row {
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
}
.experience-included-card .button {
  white-space: normal;
}
.experience-included-card .library-card-placeholder {
  padding: 16px;
}
.experience-included-card .library-card-placeholder > span {
  font-size: 24px;
  margin-bottom: 6px;
}
.interaction-tile .row {
  flex-wrap: wrap;
}
.interaction-tile .button {
  white-space: normal;
  text-align: left;
}

.campaign-dates {
  grid-template-columns: minmax(0, 1fr);
}
.campaign-dates input {
  min-width: 0;
  max-width: 100%;
}
.insights-data-mode {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}
.insights-data-mode.sample {
  border-color: #d5c8f5;
  background: #f1edff;
}
.insights-data-mode p {
  margin: 4px 0 0;
  color: var(--secondary);
  font-size: 13px;
}
.timeline-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.timeline-heading label {
  min-width: 220px;
}
.timeline-heading .eyebrow {
  margin: 0 0 8px;
  color: var(--secondary);
}
.timeline-summary {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.timeline-summary > strong {
  font-size: 36px;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -1px;
}
.trend-change {
  font-size: 12px;
  padding: 5px 9px;
  border-radius: 7px;
  background: var(--canvas);
  color: var(--secondary);
}
.trend-change.positive {
  color: #17613d;
  background: #e9f5ed;
}
.timeline-legend {
  display: flex;
  gap: 22px;
  font-size: 12px;
  color: var(--secondary);
  margin-bottom: 12px;
}
.timeline-legend > span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.timeline-legend i {
  display: inline-block;
  width: 18px;
  height: 3px;
  border-radius: 2px;
}
.timeline-legend i.prior {
  background: repeating-linear-gradient(
    90deg,
    #78818e 0 5px,
    transparent 5px 8px
  );
}
.timeline-svg {
  width: 100%;
  height: auto;
  min-height: 170px;
  overflow: visible;
  touch-action: pan-y;
}
.timeline-svg text {
  fill: #606071;
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
}
.timeline-svg circle {
  cursor: pointer;
  outline-offset: 4px;
}
.timeline-svg circle:focus {
  outline: 3px solid #202027;
}
.timeline-day {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 13px;
  min-height: 36px;
  padding: 10px 14px;
  background: var(--canvas);
  border-radius: 9px;
}
.timeline-note {
  font-size: 12px;
  line-height: 1.6;
  margin: 16px 0 10px;
}
.timeline-table summary {
  cursor: pointer;
  font-weight: 600;
  min-height: 28px;
}
.timeline-table .table-scroll {
  max-height: 320px;
  overflow: auto;
  margin: 12px 0;
}
.insights-health {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.insights-health article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.insights-health article > span {
  font-weight: 600;
}
.insights-health article > strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 30px;
  line-height: 1.2;
}
.insights-health article > small {
  font-size: 12px;
  color: var(--secondary);
  line-height: 1.6;
}
.channel-row {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) minmax(60px, 1fr) 30px;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.channel-track {
  height: 7px;
  border-radius: 8px;
  background: var(--canvas);
  overflow: hidden;
}
.channel-track i {
  display: block;
  height: 100%;
  background: #6250bd;
  border-radius: 8px;
}
@media (max-width: 900px) {
  .insights-health {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .timeline-heading {
    flex-direction: column;
  }
  .timeline-heading label {
    width: 100%;
  }
}
@media (max-width: 600px) {
  .insights-data-mode {
    flex-direction: column;
    align-items: flex-start;
  }
  .insights-data-mode .button {
    white-space: normal;
  }
  .insights-health {
    grid-template-columns: 1fr;
  }
  .timeline-summary {
    gap: 8px;
  }
  .timeline-day {
    gap: 8px;
  }
  .timeline-svg text {
    font-size: 15px;
  }
  .channel-row {
    grid-template-columns: minmax(95px, 1fr) minmax(40px, 1fr) 24px;
  }
}
.timeline-inspector {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  margin: 4px 0 12px;
}
.timeline-inspector input {
  padding: 0;
  min-height: 32px;
  accent-color: #6340ce;
  flex: 1;
  max-width: 340px;
}

/* Ask brand: colorful identity with quiet, readable working surfaces. */
.sidebar .logo {
  min-height: 68px;
  padding-bottom: 8px;
}
.sidebar {
  border-right: 1px solid #393342;
}
.page-header {
  position: relative;
}
.stat-card {
  border-top: 2px solid #d8cff8;
}
.login {
  position: relative;
}
.login::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -80px -60px;
  background:
    radial-gradient(ellipse at 5% 20%, #39c9f31c, transparent 48%),
    radial-gradient(ellipse at 90% 70%, #efb2de33, transparent 50%);
  pointer-events: none;
}
@media (max-width: 760px) {
  .login::before {
    inset: 0;
  }
}

.panel > a:not(.button),
.panel p a:not(.button) {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Adaptive page template choices and private draft preview. */
.layout-choices {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.layout-choices legend {
  font-weight: 600;
  margin-bottom: 14px;
}
.layout-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.layout-choice {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  background: var(--surface);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  min-width: 0;
}
.layout-choice.is-selected {
  border-color: var(--strong);
  background: var(--soft);
  box-shadow: 0 0 0 1px var(--strong);
}
.layout-choice:focus-within {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.layout-choice input[type="radio"] {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 17px;
  height: 17px;
  min-height: 17px;
  padding: 0;
  margin: 0;
  accent-color: var(--strong);
}
.layout-choice input[type="radio"]:focus-visible {
  outline: none;
}
.layout-choice > span {
  font-size: 12px;
  color: var(--secondary);
  line-height: 1.5;
}
.layout-choices:disabled .layout-choice {
  cursor: default;
}
.layout-sketch {
  width: 100%;
  max-width: 180px;
  height: 118px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
  padding: 10px;
  margin: 16px auto 8px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.layout-sketch-header {
  height: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.layout-sketch-header span {
  height: 5px;
  width: 35%;
  background: var(--ink);
  border-radius: 8px;
}
.layout-sketch-header span + span {
  width: 12px;
  background: var(--accent);
}
.layout-sketch-answer {
  display: grid;
  gap: 4px;
}
.layout-sketch-answer i {
  height: 4px;
  width: 100%;
  background: var(--border);
  border-radius: 8px;
}
.layout-sketch-answer i:last-child {
  width: 65%;
}
.layout-sketch-source {
  width: 40%;
  height: 3px;
  background: var(--accent);
  border-radius: 8px;
}
.layout-sketch-modules {
  display: flex;
  gap: 5px;
  flex: 1;
  min-height: 20px;
}
.layout-sketch-modules > span {
  border-radius: 5px;
  background: var(--soft);
  flex: 1;
  padding: 5px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.layout-sketch-modules i {
  display: block;
  height: 4px;
  background: var(--accent);
  border-radius: 3px;
}
.layout-sketch-recap .layout-sketch-modules > span {
  background: var(--ink);
}
.layout-sketch-recap .layout-sketch-modules i {
  background: var(--inverse);
}
.layout-sketch-article .layout-sketch-modules {
  flex-direction: column;
  gap: 3px;
}
.layout-sketch-article .layout-sketch-modules > span {
  padding: 3px 5px;
}
.layout-sketch-article .layout-sketch-modules i + i {
  display: none;
}
.layout-sketch-commerce .layout-sketch-modules > span:not(:first-child) {
  display: none;
}
.layout-sketch-action {
  height: 7px;
  border-radius: 5px;
  background: var(--strong);
  width: 65%;
}
.layout-selection-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  align-items: center;
  gap: 24px;
  padding: 20px;
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.layout-selection-preview h3 {
  margin: 8px 0;
}
.layout-selection-preview p {
  color: var(--secondary);
  margin: 0;
  line-height: 1.6;
}
.layout-live-preview {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--canvas);
}
.layout-live-preview iframe {
  display: block;
  width: 100%;
  max-width: 420px;
  height: 640px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  margin: 16px auto 0;
}
@media (max-width: 600px) {
  .layout-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .layout-selection-preview {
    grid-template-columns: 1fr;
  }
  .layout-selection-preview > .layout-sketch {
    display: none;
  }
  .layout-live-preview {
    padding: 8px;
  }
}

.freshness-policy {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.freshness-summary {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--secondary);
}
.freshness-summary strong {
  color: var(--text);
}
.freshness-items {
  list-style: none;
  margin: 0;
  padding: 0;
}
.freshness-items li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}
.freshness-items li > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.freshness-items small {
  display: block;
  color: var(--secondary);
  margin-top: 4px;
}

/* Pilot setup and verification status */
.readiness-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.readiness-toolbar,
.readiness-check-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.readiness-toolbar p {
  margin: 8px 0 16px;
}
.readiness-checks,
.readiness-sources {
  list-style: none;
  margin: 0;
  padding: 0;
}
.readiness-checks li {
  padding: 22px 0;
  border-bottom: 1px solid var(--border, #e4e4ec);
}
.readiness-checks li:first-child {
  padding-top: 8px;
}
.readiness-checks li:last-child {
  border-bottom: 0;
  padding-bottom: 4px;
}
.readiness-checks h3 {
  margin: 0;
  font-size: 16px;
}
.readiness-checks p,
.readiness-sources p {
  line-height: 1.6;
  margin: 12px 0;
  overflow-wrap: anywhere;
}
.readiness-checks a,
.readiness-sources a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.readiness-note {
  margin: 20px 0 0;
  padding: 16px;
  border-radius: 12px;
  background: #f5f3ff;
  color: #514775;
  line-height: 1.6;
}
.readiness-links {
  flex-wrap: wrap;
}
.readiness-sources li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border, #e4e4ec);
}
@media (max-width: 1000px) {
  .readiness-columns {
    grid-template-columns: minmax(0, 1fr);
  }
}
.readiness-panel .chip.warning {
  background: #fff0d6;
  color: #85500a;
}
.readiness-sources + details {
  margin: 12px 0 20px;
}

/* Experience controls use the existing Figma card and field tokens. */
.capability-options{display:flex;flex-wrap:wrap;gap:16px;margin:12px 0}.goal-editor{border:1px solid var(--border);border-radius:12px;padding:18px;min-width:0}.goal-editor legend{font-weight:600;padding:0 6px}.goal-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:16px}.goal-fields label{min-width:0}.goal-progress{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:16px 0;border-bottom:1px solid var(--border)}.goal-progress progress{width:100%;accent-color:var(--accent);grid-column:1/-1}.goal-progress p{margin:0}.goal-progress small{grid-column:1/-1}@media(max-width:640px){.goal-fields{grid-template-columns:1fr}}
.content-usage { border: 1px solid var(--border); border-radius: 8px; padding: 12px; margin: 8px 0; min-width: 0; }
.content-usage legend { font-size: 12px; font-weight: 600; padding: 0 4px; }
.content-usage .checkbox { margin: 6px 0; }

.source-setting { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.source-switch { display:flex; flex-direction:row; justify-content:space-between; align-items:center; gap:20px; cursor:pointer; margin-bottom:12px; }
.source-switch span { display:grid; gap:4px; }
.source-switch input[role="switch"] { appearance:none; -webkit-appearance:none; position:relative; flex:0 0 44px; width:44px; height:26px; min-height:26px; padding:0; margin:0; border:1px solid var(--secondary); border-radius:999px; background:var(--secondary); cursor:pointer; }
.source-switch input[role="switch"]::after { content:""; position:absolute; width:20px; height:20px; left:2px; top:2px; border-radius:50%; background:var(--surface); }
.source-switch input[role="switch"]:checked { background:var(--strong); border-color:var(--strong); }
.source-switch input[role="switch"]:checked::after { left:20px; }
@media (forced-colors:active) { .source-switch input[role="switch"] { appearance:auto; -webkit-appearance:auto; } .source-switch input[role="switch"]::after { display:none; } }

/* Hybrid setup shares the existing Ask controls and draft model. */
.hybrid-workspace { display:grid; grid-template-columns:minmax(280px,350px) minmax(0,1fr); gap:24px; align-items:start; }
.hybrid-editor { min-width:0; display:grid; gap:20px; }
.hybrid-savebar { display:flex; align-items:center; flex-wrap:wrap; gap:12px; padding:12px 16px; background:var(--surface); border:1px solid var(--border); border-radius:12px; font-size:12px; }
.hybrid-savebar .button { margin-left:auto; }
.setup-chat { position:sticky; top:16px; background:var(--surface); border:1px solid var(--border); border-radius:20px; padding:20px; min-width:0; display:grid; gap:14px; }
.setup-chat h3 { margin:0; font-size:21px; letter-spacing:-.5px; }
.setup-chat p { margin:0; line-height:1.6; }
.setup-chat-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.setup-chat-disclosure { font-size:12px; }
.setup-stage-tip { padding:12px; background:var(--soft,#f1edff); border-radius:12px; font-size:13px; }
.setup-chat-log { max-height:340px; overflow:auto; display:flex; flex-direction:column; gap:12px; overscroll-behavior:contain; }
.setup-turn { font-size:13px; line-height:1.65; white-space:pre-wrap; overflow-wrap:anywhere; padding:12px; border:1px solid var(--border); border-radius:12px; }
.setup-turn.user { background:#eee8ff; align-self:flex-end; max-width:94%; border-color:#e1d7ff; }
.setup-turn.assistant { background:var(--canvas); }
.setup-chat-empty { color:var(--secondary); font-size:13px; padding:12px 0; }
.setup-chat-prompts { display:flex; gap:6px; flex-wrap:wrap; }
.setup-chat-prompts button { border:1px solid var(--border); border-radius:18px; padding:7px 10px; font-size:11px; background:var(--surface); color:var(--ink); text-align:left; }
.setup-chat form { display:grid; gap:8px; }
.setup-chat textarea { width:100%; min-height:85px; resize:vertical; }
.setup-proposal { display:grid; gap:10px; border:1px solid #cdbdf3; border-radius:12px; padding:12px; background:#fcfaff; }
.setup-proposal > .muted { font-size:11px; }
.setup-change { display:flex; align-items:flex-start; gap:9px; padding-block:8px; border-top:1px solid var(--border); margin:0; }
.setup-change > input { flex:0 0 16px; width:16px; min-height:16px; height:16px; margin-top:3px; }
.setup-change > span { display:grid; gap:5px; font-size:12px; min-width:0; overflow-wrap:anywhere; }
.setup-change small { color:var(--secondary); }
.setup-proposal .actions { display:grid; }
.setup-chat .button { font-size:12px; }
.hybrid-test-frame { display:block; width:100%; min-height:680px; border:1px solid var(--border); border-radius:14px; background:var(--canvas); }
.hybrid-flow .experience-progress { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); }
.hybrid-flow .experience-progress button { min-width:0; }
@media (max-width:1150px) { .hybrid-workspace { grid-template-columns:minmax(250px,300px) minmax(0,1fr); gap:16px; } }
@media (max-width:900px) { .hybrid-workspace { grid-template-columns:1fr; } .setup-chat { position:static; } .setup-chat-log { max-height:230px; } .hybrid-flow .experience-progress { display:flex; overflow-x:auto; } .hybrid-flow .experience-progress button { min-width:100px; flex:1 0 auto; } .hybrid-test-frame { min-height:600px; } }
.setup-chat { max-height:calc(100dvh - 40px); overflow:auto; overscroll-behavior:contain; scrollbar-gutter:stable; }
.setup-chat-content { display:grid; gap:14px; min-width:0; }
.setup-chat-toggle { display:none; border:1px solid var(--border); border-radius:8px; background:var(--surface); padding:9px 12px; color:var(--ink); }
.setup-chat-log:focus-visible { outline:3px solid var(--accent); outline-offset:2px; }
.hybrid-editor > .columns { grid-template-columns:minmax(0,1fr); }
@media(max-width:900px) { .setup-chat { max-height:none; overflow:visible; } .setup-chat-toggle { display:block; } .setup-chat.is-collapsed .setup-chat-content { display:none; } }
.setup-chat { overflow:hidden; grid-template-rows:auto auto auto minmax(0,1fr); }
.setup-chat-content { min-height:0; overflow:auto; overscroll-behavior:contain; scrollbar-gutter:stable; padding-right:3px; }
@media(max-width:900px) { .setup-chat { overflow:visible; grid-template-rows:none; } .setup-chat-content { overflow:visible; } }
