:root {
  --ink: var(--color-ink);
  --muted: var(--color-muted);
  --line: var(--color-hairline);
  --canvas: var(--color-bg);
  --green: var(--color-accent);
  --lime: var(--color-on-accent);
  --white: var(--color-surface);
  --sidebar: 242px;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
button,
a {
  transition:
    background var(--motion-fast),
    color var(--motion-fast),
    box-shadow var(--motion-fast),
    transform var(--motion-fast);
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
[role="button"]:focus-visible {
  outline: 3px solid var(--color-muted);
  outline-offset: 3px;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--color-muted);
  outline-offset: 1px;
}
button svg,
a svg {
  flex-shrink: 0;
}
svg {
  vertical-align: middle;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 29px;
  letter-spacing: -1.1px;
  font-weight: 550;
  line-height: 1.25;
}
h2 {
  font-size: 22px;
  letter-spacing: -0.5px;
  font-weight: 550;
}
h3 {
  font-size: 16px;
  font-weight: 550;
}
p {
  line-height: 1.65;
}
small {
  font-size: 12px;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 26px 0;
}
[hidden] {
  display: none !important;
}
.sidebar {
  width: var(--sidebar);
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  padding: 28px 18px 14px;
  border-right: 1px solid var(--line);
  background: var(--color-bg);
  z-index: 20;
  overflow: auto;
}
.wordmark {
  display: flex;
  align-items: center;
  padding: 0 12px;
}
.forms-wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  color: var(--color-ink);
  font-family: var(--font-sans);
  line-height: 1;
}
.forms-wordmark-name {
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -1px;
}
.forms-wordmark-attribution {
  font-size: 9px;
  letter-spacing: 1.5px;
  font-weight: 500;
}
.forms-wordmark--compact .forms-wordmark-name {
  font-size: 17px;
  letter-spacing: -0.5px;
}
.forms-wordmark--compact .forms-wordmark-attribution {
  font-size: 7px;
  letter-spacing: 1px;
}
.workspace-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 32px 0 25px;
  background: var(--color-surface);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-sm);
  padding: 9px;
}
.workspace-switch select {
  min-width: 0;
  border: 0;
  background: transparent;
  font-size: 11px;
  font-weight: 600;
  flex: 1;
  color: var(--ink);
}
.avatar {
  height: 30px;
  width: 30px;
  border-radius: var(--radius-sm);
  background: var(--color-accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}
.avatar.dark {
  background: var(--color-accent-soft);
}
.avatar.small {
  border-radius: 50%;
  height: 29px;
  width: 29px;
  font-size: 10px;
}
.nav-label {
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 1.6px;
  color: var(--color-muted);
  padding: 0 12px;
  margin-bottom: 11px;
}
.nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  text-align: left;
  gap: 11px;
  background: transparent;
  border: 0;
  border-radius: 7px;
  padding: 12px;
  font-size: 12px;
  margin: 2px 0;
  color: var(--color-muted);
}
.nav-item:hover {
  background: var(--color-accent-soft);
}
.nav-item.active {
  background: var(--color-accent-soft);
  color: var(--color-accent);
  font-weight: 600;
}
.nav-item.selected {
  background: var(--color-hairline);
}
.nav-item span:nth-child(2) {
  flex: 1;
}
.nav-count {
  font-size: 10px;
  background: var(--color-bg);
  padding: 2px 6px;
  border-radius: 4px;
}
.folder-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 30px;
}
.icon-button {
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  border-radius: 6px;
  color: var(--color-muted);
}
.icon-button:hover,
.icon-button.selected {
  background: var(--color-accent-soft);
  color: var(--ink);
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 30px;
}
.app-shell {
  margin-left: var(--sidebar);
}
.topbar {
  height: 74px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 38px;
  background: var(--color-surface);
}
.top-actions {
  display: flex;
  gap: 18px;
  align-items: center;
}
.main {
  padding: 38px;
  max-width: 1700px;
  margin: auto;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.eyebrow {
  display: block;
  font-size: 9px;
  letter-spacing: 1.8px;
  font-weight: 650;
  color: var(--color-muted);
  margin-bottom: 12px;
}
.page-heading p {
  font-size: 12px;
  color: var(--color-muted);
  margin-top: 10px;
}
.primary {
  background: var(--green);
  color: var(--color-surface);
}
.primary:hover {
  background: var(--color-accent);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--color-ink) 10%, transparent);
}
.secondary {
  background: var(--color-surface);
  border-color: var(--line);
}
.secondary:hover {
  background: var(--color-bg);
}
.danger {
  color: var(--color-danger);
}
.text-button {
  background: transparent;
  border: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  font-size: 11px;
  font-weight: 600;
}
.welcome-banner {
  border-radius: 13px;
  min-height: 263px;
  background: var(--color-accent-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 39px;
  overflow: hidden;
  position: relative;
}
.welcome-banner h2 {
  font: 35px/1.16 var(--font-display);
  letter-spacing: -0.8px;
}
.welcome-banner em {
  font-weight: 400;
  color: var(--color-muted);
}
.welcome-banner p {
  font-size: 11px;
  color: var(--color-muted);
  line-height: 1.7;
  margin-top: 14px;
}
.welcome-banner .text-button {
  margin-top: 17px;
}
.welcome-banner .eyebrow {
  font-size: 8px;
  letter-spacing: 1.7px;
  margin-bottom: 13px;
}
.hero-art {
  position: relative;
  width: 360px;
  height: 215px;
  margin-right: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-art:before,
.hero-art:after {
  content: "";
  position: absolute;
  border: 1px solid var(--color-hairline);
  width: 300px;
  height: 300px;
  border-radius: 50%;
  right: -40px;
}
.hero-art:after {
  width: 410px;
  height: 410px;
  right: -95px;
}
.floating-note {
  background: var(--color-surface);
  width: 224px;
  padding: 24px 24px 20px;
  border-radius: 9px;
  transform: rotate(-7deg);
  box-shadow: 4px 12px 30px color-mix(in srgb, var(--color-ink) 7%, transparent);
  z-index: 1;
}
.floating-note > span {
  font-size: 7px;
  letter-spacing: 1.5px;
  color: var(--color-muted);
}
.floating-note h3 {
  font: 23px/1.2 var(--font-display);
  margin: 11px 0 17px;
}
.floating-note small {
  font-size: 7px;
  color: var(--color-muted);
}
.faces {
  display: flex;
  gap: 9px;
  margin: 8px 0 13px;
}
.faces b {
  font-size: 24px;
  font-weight: 400;
  color: var(--color-muted);
  line-height: 30px;
  width: 32px;
  text-align: center;
}
.faces .chosen {
  background: var(--color-accent-soft);
  color: var(--color-muted);
  border-radius: 50%;
}
.floating-label {
  position: absolute;
  right: -4px;
  bottom: -1px;
  background: var(--color-hairline);
  border: 1px solid var(--color-hairline);
  padding: 10px 14px;
  border-radius: 30px;
  font-size: 9px;
  z-index: 2;
  transform: rotate(6deg);
  display: flex;
  align-items: center;
  gap: 7px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 24px 0 34px;
}
.metric {
  background: var(--color-surface);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 18px 19px;
  min-height: 118px;
}
.metric > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: var(--color-muted);
}
.metric strong {
  font-size: 29px;
  font-weight: 500;
  letter-spacing: -1px;
  display: block;
  margin: 13px 0 5px;
}
.metric small {
  font-size: 9px;
  color: var(--color-muted);
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 24px 0 19px;
}
.section-heading > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-heading h2 {
  font-size: 17px;
  letter-spacing: -0.4px;
}
.count-pill {
  border: 1px solid var(--color-accent-soft);
  background: var(--color-hairline);
  border-radius: 5px;
  font-size: 10px;
  padding: 3px 6px;
  color: var(--color-muted);
}
.toolbar {
  gap: 6px !important;
}
.search {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--color-surface);
  border-radius: 7px;
  padding: 7px 10px;
  gap: 8px;
  color: var(--color-muted);
  margin-right: 8px;
}
.search input {
  font-size: 10px;
  outline: 0;
  border: 0;
  width: 140px;
  background: transparent;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 19px;
}
.form-card {
  background: var(--color-surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}
.form-card:hover {
  box-shadow: 0 8px 24px color-mix(in srgb, var(--color-ink) 4%, transparent);
  transform: translateY(-2px);
}
.card-art {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 163px;
  border: 0;
  position: relative;
  overflow: hidden;
}
.sage {
  background: var(--color-accent-soft);
}
.ink {
  background: var(--color-hairline);
}
.lavender {
  background: var(--color-accent-soft);
}
.clay {
  background: var(--color-accent-soft);
}
.ocean {
  background: var(--color-accent-soft);
}
.mini-form {
  width: 115px;
  background: var(--color-surface);
  border-radius: 5px;
  position: relative;
  z-index: 2;
  transform: rotate(-5deg);
  padding: 13px 14px;
  box-shadow: 0 4px 15px color-mix(in srgb, var(--color-ink) 7%, transparent);
  text-align: left;
}
.mini-form > span {
  display: block;
  width: 10px;
  height: 10px;
  background: var(--color-hairline);
  border-radius: 50%;
  margin-bottom: 7px;
}
.mini-form strong {
  font-size: 8px;
  display: block;
  max-width: 95px;
  overflow: hidden;
  white-space: nowrap;
}
.mini-line {
  height: 3px;
  background: var(--color-hairline);
  margin-top: 5px;
  width: 43px;
}
.mini-line.wide {
  width: 69px;
  margin-top: 8px;
}
.mini-input {
  height: 15px;
  border: 1px solid var(--color-hairline);
  border-radius: 3px;
  margin: 9px 0;
}
.mini-button {
  background: var(--color-muted);
  height: 10px;
  width: 33px;
  border-radius: 2px;
}
.card-badge {
  position: absolute;
  left: 13px;
  top: 13px;
  z-index: 3;
}
.badge {
  display: inline-flex;
  padding: 4px 7px;
  border-radius: 5px;
  background: var(--color-bg);
  color: var(--color-muted);
  font-size: 8px;
  line-height: 1.25;
  border: 1px solid var(--color-hairline);
  text-transform: capitalize;
  white-space: nowrap;
}
.badge.green {
  background: var(--color-ok-soft);
  color: var(--color-ok);
  border-color: var(--color-ok-soft);
}
.art-ring {
  position: absolute;
  right: 27px;
  top: 31px;
  width: 120px;
  height: 120px;
  border: 1px solid color-mix(in srgb, var(--color-ink) 25%, transparent);
  border-radius: 50%;
}
.art-ring:after {
  content: "";
  position: absolute;
  inset: -19px;
  border: 1px solid color-mix(in srgb, var(--color-ink) 19%, transparent);
  border-radius: 50%;
}
.card-body {
  padding: 16px 16px 12px;
}
.card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
}
.card-title > button:first-child {
  padding: 0;
  background: none;
  border: 0;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.45;
  text-align: left;
}
.card-body p {
  font-size: 10px;
  color: var(--color-muted);
  margin-top: 5px;
}
.card-footer {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  font-size: 8px;
  color: var(--color-muted);
  border-top: 1px solid var(--color-hairline);
  padding-top: 12px;
  margin-top: 16px;
}
.card-footer span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.new-card {
  min-height: 278px;
  border: 1px dashed var(--color-hairline);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  gap: 10px;
}
.new-card:hover {
  background: var(--color-accent-soft);
}
.new-card > span {
  width: 41px;
  height: 41px;
  border-radius: 50%;
  background: var(--color-accent-soft);
  color: var(--color-muted);
  display: grid;
  place-items: center;
  margin-bottom: 5px;
}
.new-card strong {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-muted);
}
.new-card small {
  font-size: 10px;
  color: var(--color-muted);
}
.list-view {
  display: block;
}
.list-view .form-card {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}
.list-view .card-art {
  width: 130px;
  height: 95px;
  flex-shrink: 0;
}
.list-view .mini-form {
  transform: scale(0.55);
}
.list-view .card-body {
  flex: 1;
}
.list-view .card-footer {
  margin-top: 7px;
}
.list-view .new-card {
  min-height: 90px;
}
.template-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.template-card {
  background: var(--color-surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 0 24px;
  text-align: left;
  overflow: hidden;
}
.template-card h3,
.template-card p,
.template-card > .text-button {
  margin: 18px 22px 0;
}
.template-card p {
  font-size: 12px;
  color: var(--color-muted);
  min-height: 40px;
}
.template-art {
  aspect-ratio: 3/2;
  overflow: hidden;
  background: var(--color-accent-soft);
}
.template-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.theme-1 {
  background: var(--color-accent-soft);
}
.theme-2 {
  background: var(--color-accent-soft);
}
.theme-3 {
  background: var(--color-accent-soft);
}
.theme-4 {
  background: var(--color-accent-soft);
}
.template-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px color-mix(in srgb, var(--color-ink) 6%, transparent);
}
.sheet-list {
  background: var(--color-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.sheet-list > button {
  border: 0;
  background: var(--color-surface);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 25px;
  width: 100%;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.sheet-list > button:hover {
  background: var(--color-bg);
}
.sheet-list > button > div {
  flex: 1;
}
.sheet-list p {
  font-size: 11px;
  color: var(--color-muted);
  margin-top: 5px;
  max-width: 650px;
}
.sheet-list > button > span {
  font-size: 11px;
  color: var(--color-muted);
}
.sheet-icon {
  width: 43px;
  height: 43px;
  border-radius: 10px;
  background: var(--color-accent-soft);
  display: grid;
  place-items: center;
  color: var(--color-muted) !important;
}
.empty-state {
  text-align: center;
  padding: 70px 25px;
}
.empty-state > div {
  margin: auto auto 18px;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  background: var(--color-accent-soft);
  border-radius: 20px;
  color: var(--color-muted);
}
.empty-state p {
  font-size: 12px;
  max-width: 380px;
  margin: 12px auto 24px;
  color: var(--color-muted);
}
.editor-main {
  padding: 0;
  max-width: none;
}
.editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 24px 29px;
  background: var(--color-surface);
}
.editor-header > div {
  display: flex;
  align-items: center;
  gap: 13px;
}
.editor-header h1 {
  font-size: 16px;
  letter-spacing: -0.4px;
  max-width: 390px;
}
.editor-header #save-state {
  font-size: 10px;
  color: var(--color-muted);
  display: block;
  margin-top: 7px;
}
.editor-tabs {
  display: flex;
  align-items: center;
  gap: 27px;
  padding: 0 35px;
  border-bottom: 1px solid var(--line);
  background: var(--color-surface);
}
.editor-tabs button {
  border: 0;
  background: none;
  padding: 17px 0;
  font-size: 11px;
  color: var(--color-muted);
  border-bottom: 2px solid transparent;
}
.editor-tabs button.active {
  border-bottom-color: var(--color-muted);
  color: var(--color-accent);
}
.editor-tabs span {
  margin-left: 7px;
  padding: 2px 5px;
  background: var(--color-hairline);
  border-radius: 3px;
  font-size: 9px;
}
.builder {
  display: grid;
  grid-template-columns: 215px minmax(320px, 1fr) 260px;
  min-height: calc(100vh - 210px);
}
.question-list,
.properties {
  padding: 25px 18px;
  background: var(--color-surface);
}
.question-list {
  border-right: 1px solid var(--line);
}
.properties {
  border-left: 1px solid var(--line);
}
.panel-title {
  font-size: 8px;
  letter-spacing: 1.8px;
  color: var(--color-muted);
  display: flex;
  justify-content: space-between;
  margin-bottom: 19px;
}
.question-link {
  display: flex;
  gap: 9px;
  border: 1px solid transparent;
  padding: 12px 8px;
  width: 100%;
  text-align: left;
  background: transparent;
  border-radius: 6px;
  margin-bottom: 6px;
}
.question-link.active {
  background: var(--color-accent-soft);
  border-color: var(--color-accent-soft);
}
.question-link > span {
  color: var(--color-muted);
  font-size: 9px;
  padding-top: 2px;
}
.question-link > div {
  font-size: 10px;
  line-height: 1.5;
}
.question-link small {
  display: block;
  font-size: 8px;
  color: var(--color-muted);
  margin-top: 5px;
}
.add-field {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--color-surface);
  border: 1px dashed var(--color-hairline);
  border-radius: 6px;
  padding: 11px;
  width: 100%;
  font-size: 10px;
  margin-top: 17px;
}
.builder-tip {
  display: flex;
  gap: 8px;
  color: var(--color-muted);
  margin-top: 36px;
  padding: 12px 5px;
}
.builder-tip svg {
  flex-shrink: 0;
}
.builder-tip p {
  font-size: 9px;
  line-height: 1.8;
}
.builder-canvas {
  padding: 24px 28px 50px;
  background: var(--color-hairline);
  background-image: radial-gradient(var(--color-hairline) 1px, transparent 1px);
  background-size: 12px 12px;
}
.canvas-label {
  font-size: 8px;
  letter-spacing: 1.7px;
  color: var(--color-muted);
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}
.canvas-label > span {
  font-size: 8px;
  letter-spacing: 0;
}
.form-paper {
  background: var(--color-surface);
  border-radius: 10px;
  padding: 34px 29px;
  box-shadow: 0 7px 24px color-mix(in srgb, var(--color-ink) 3%, transparent);
  max-width: 700px;
  margin: auto;
}
.paper-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 1px;
  margin-bottom: 27px;
}
.paper-brand img {
  max-height: 35px;
  max-width: 120px;
}
.title-input {
  font: 27px/1.2 var(--font-display);
  border: 0;
  background: transparent;
  width: 100%;
  color: var(--ink);
  padding: 0 0 10px;
}
.description-input {
  font-size: 11px;
  line-height: 1.7;
  color: var(--color-muted);
  border: 0;
  width: 100%;
  background: transparent;
  resize: vertical;
  min-height: 55px;
}
.question-preview {
  position: relative;
  border: 1px solid transparent;
  padding: 18px 12px;
  margin: 9px -12px;
  border-radius: 6px;
  cursor: pointer;
}
.question-preview:hover {
  background: var(--color-bg);
}
.question-preview.selected {
  border-color: var(--color-muted);
  background: var(--color-bg);
}
.question-preview label {
  font-size: 12px;
  display: block;
  line-height: 1.5;
}
.question-preview p {
  font-size: 10px;
  color: var(--color-muted);
  margin-top: 5px;
}
.question-number {
  font-size: 8px;
  color: var(--color-muted);
  display: block;
  margin-bottom: 6px;
}
.required {
  color: var(--color-muted);
}
.preview-input,
.preview-area {
  border: 1px solid var(--color-accent-soft);
  border-radius: 5px;
  background: var(--color-surface);
  padding: 11px;
  font-size: 10px;
  color: var(--color-muted);
  margin-top: 12px;
  min-height: 33px;
}
.preview-area {
  height: 90px;
}
.preview-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  padding: 10px;
  border: 1px solid var(--color-hairline);
  border-radius: 5px;
  margin-top: 7px;
}
.preview-option i {
  border: 1px solid var(--color-hairline);
  border-radius: 50%;
  width: 11px;
  height: 11px;
}
.preview-option .square {
  border-radius: 2px;
}
.preview-upload {
  padding: 24px 8px;
  border: 1px dashed var(--color-hairline);
  text-align: center;
  font-size: 10px;
  color: var(--color-muted);
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.rating-preview {
  border: 1px solid var(--color-accent-soft);
  border-radius: 5px;
  display: inline-block;
  padding: 13px 18px;
  color: var(--color-muted);
  margin-top: 13px;
}
.signature-hint {
  font: italic 22px var(--font-display);
  color: var(--color-muted);
}
.preview-submit {
  display: inline-flex;
  gap: 20px;
  background: var(--green);
  color: var(--color-surface);
  border-radius: 5px;
  padding: 12px 17px;
  font-size: 10px;
  margin: 17px 0;
}
.form-credit {
  text-align: center;
  color: var(--color-muted);
  font-size: 8px;
  margin-top: 27px;
}
.form-credit span {
  font-size: 7px;
}
.control {
  display: block;
  margin: 18px 0;
}
.control > span {
  display: block;
  font-size: 11px;
  font-weight: 550;
  margin-bottom: 8px;
  color: var(--color-muted);
}

.control textarea {
  line-height: 1.7;
  resize: vertical;
}
.control small {
  display: block;
  font-size: 10px;
  color: var(--color-muted);
  line-height: 1.7;
  margin-top: 6px;
}
.control input[type="color"] {
  padding: 4px;
  height: 38px;
}
.control input[type="file"] {
  font-size: 10px;
  padding: 10px 5px;
}
.toggle-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 0;
  border-bottom: 1px solid var(--color-hairline);
  cursor: pointer;
}
.toggle-row strong {
  font-size: 11px;
  font-weight: 500;
  display: block;
}
.toggle-row small {
  display: block;
  color: var(--color-muted);
  font-size: 10px;
  line-height: 1.65;
  margin-top: 6px;
  max-width: 380px;
}
.toggle-row input {
  position: absolute;
  right: 0;
  width: 35px;
  height: 22px;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}
.toggle-row i {
  display: block;
  background: var(--color-accent-soft);
  border-radius: 30px;
  min-width: 32px;
  height: 19px;
  position: relative;
}
.toggle-row i:after {
  content: "";
  display: block;
  width: 13px;
  height: 13px;
  background: var(--color-surface);
  border-radius: 50%;
  position: absolute;
  top: 3px;
  left: 3px;
  transition: transform 0.2s;
}
.toggle-row input:checked + i {
  background: var(--color-accent);
}
.toggle-row input:checked + i:after {
  transform: translateX(13px);
}
.toggle-row input:focus-visible + i {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}
.logic-panel {
  margin: 24px 0;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.logic-panel h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 14px;
}
.logic-panel p {
  font-size: 12px;
  line-height: 1.6;
  margin: 12px 0 18px;
}
.condition-rules {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}
.condition-rule {
  min-width: 0;
  margin: 0;
  padding: 16px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.condition-rule legend {
  padding: 0 6px;
  font-size: 12px;
  font-weight: 600;
}
.condition-rule .button {
  width: 100%;
  white-space: normal;
}
.logic-panel .condition-requirement {
  padding: 12px;
  border-radius: 8px;
  background: var(--bg);
}
.field-actions {
  display: flex;
  gap: 5px;
  margin-top: 25px;
}
.field-actions .button {
  padding: 8px 10px;
}
.help-box {
  font-size: 9px;
  padding: 10px;
  background: var(--color-accent-soft);
  border-radius: 5px;
}
.help-box code {
  display: block;
  font-size: 8px;
  overflow-wrap: anywhere;
}
.settings-layout {
  display: grid;
  grid-template-columns: 440px minmax(0, 1fr);
  gap: 35px;
  padding: 30px;
}
.settings-panel {
  background: var(--color-surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px;
}
.settings-panel > p {
  font-size: 12px;
  color: var(--color-muted);
  margin-top: 10px;
}
.settings-panel > h3 {
  margin: 27px 0 10px;
  font-size: 13px;
}
.settings-panel > h2 {
  font-size: 22px;
}
.muted {
  color: var(--color-muted);
  font-size: 11px;
  line-height: 1.7;
}
.theme-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 23px 0;
}
.theme-swatch {
  padding: 4px 4px 9px;
  background: var(--color-surface);
  border: 1px solid var(--color-accent-soft);
  border-radius: 6px;
  font-size: 8px;
  text-align: left;
  position: relative;
}
.theme-swatch > span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 55px;
  font: 23px var(--font-display);
  border-radius: 3px;
  margin-bottom: 8px;
}
.theme-swatch.active {
  border-color: var(--color-muted);
}
.theme-swatch svg {
  position: absolute;
  bottom: 7px;
  right: 3px;
}
.swatch-sage {
  background: var(--color-accent-soft);
  color: var(--color-accent);
}
.swatch-ink {
  background: var(--color-hairline);
  color: var(--color-ink-2);
}
.swatch-lavender {
  background: var(--color-accent-soft);
  color: var(--color-muted);
}
.swatch-clay {
  background: var(--color-accent-soft);
  color: var(--color-muted);
}
.swatch-ocean {
  background: var(--color-accent-soft);
  color: var(--color-muted);
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.design-preview {
  padding: 15px 0;
}
.design-preview iframe {
  width: 100%;
  height: 900px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--color-surface);
}
.settings-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  padding: 30px;
}
.main > .settings-columns {
  padding: 0;
}
.help-text {
  font-size: 10px;
  color: var(--color-muted);
  line-height: 1.8;
  margin: 12px 0;
}
.save-row {
  display: flex;
  gap: 12px;
  margin-top: 25px;
}
.share-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 35px;
  padding: 35px;
}
.copy-input {
  display: flex;
  gap: 8px;
}
.copy-input input {
  min-width: 0;
}
.share-preview {
  min-width: 0;
  align-self: start;
}
.share-preview .help-text {
  margin: 16px 0 0;
  line-height: 1.7;
}
.link-preview-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}
.link-preview-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 28px;
  border-bottom: 1px solid var(--line);
}
.link-preview-brand[data-align="center"] {
  justify-content: center;
}
.link-preview-brand[data-align="right"] {
  justify-content: flex-end;
}
.link-preview-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: min(180px, 100%);
  max-height: 56px;
  object-fit: contain;
}
.link-preview-logo[data-logo-pending] {
  opacity: 0;
}
.link-preview-image {
  aspect-ratio: 1.91;
  overflow: hidden;
  background: var(--color-bg);
}
.link-preview-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.link-preview-content {
  padding: 28px;
  overflow-wrap: anywhere;
}
.link-preview-footer {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.link-preview-domain {
  display: block;
  color: var(--color-muted);
  font-size: 11px;
  letter-spacing: 0.02em;
}
.link-preview-content h3 {
  font-size: 20px;
  line-height: 1.4;
  margin: 0;
}
.link-preview-content p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--color-muted);
  margin: 10px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.custom-domain-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.custom-domain-heading > strong {
  min-width: 0;
  overflow-wrap: anywhere;
}
.custom-domain-actions {
  display: flex;
  gap: 8px;
  margin-inline-start: auto;
}
.custom-domain-actions .button {
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
}
.responses-page,
.analytics-page {
  padding: 30px;
}
.sheet-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--color-surface);
  margin-top: 22px;
}
.response-sheet {
  border-collapse: collapse;
  min-width: 100%;
  font-size: 11px;
}
.response-sheet th {
  background: var(--color-bg);
  padding: 14px 18px;
  text-align: left;
  color: var(--color-muted);
  font-size: 10px;
  font-weight: 550;
  white-space: nowrap;
  border-bottom: 1px solid var(--color-accent-soft);
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.response-sheet td {
  padding: 17px 18px;
  border-bottom: 1px solid var(--color-hairline);
  min-width: 150px;
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.response-sheet td small {
  display: block;
  font-size: 8px;
  color: var(--color-muted);
  margin-top: 6px;
}
.response-sheet tbody tr {
  cursor: pointer;
}
.response-sheet tbody tr:hover {
  background: var(--color-bg);
}
.pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 15px;
}
.pagination > span {
  font-size: 10px;
  color: var(--color-muted);
  margin-right: auto;
}
.insights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 21px;
}
.insight-card {
  border: 1px solid var(--line);
  background: var(--color-surface);
  border-radius: 10px;
  padding: 25px;
}
.insight-card > h3 {
  margin-bottom: 10px;
}
.insight-card.wide {
  grid-column: 1/-1;
}
.summary-card {
  background: var(--color-accent-soft);
  border-color: var(--color-accent-soft);
}
.summary-card h2 {
  font: 26px/1.2 var(--font-display);
}
.summary-card p {
  font-size: 12px;
  margin: 17px 0;
  color: var(--color-muted);
}
.summary-card small {
  font-size: 9px;
  color: var(--color-muted);
  line-height: 1.7;
  display: block;
}
.bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
  font-size: 10px;
}
.bar-row > span {
  width: 75px;
  color: var(--color-muted);
}
.bar-row > div {
  height: 8px;
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  flex: 1;
  overflow: hidden;
}
.bar-row i {
  display: block;
  height: 100%;
  background: var(--color-muted);
  border-radius: var(--radius-sm);
}
.bar-row i.sentiment-negative {
  background: var(--color-danger);
}
.bar-row i.sentiment-unclassified {
  background: var(--color-hairline);
}
.topic-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-hairline);
  font-size: 11px;
}
.topic-row strong {
  font-size: 10px;
  color: var(--color-muted);
  font-weight: 500;
}
.empty-note {
  font-size: 12px;
  color: var(--color-muted);
  padding: 28px 0;
  line-height: 1.8;
}
.journey-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 25px 0;
}
.journey-stats strong {
  display: block;
  font-size: 25px;
  font-weight: 400;
}
.journey-stats span {
  display: block;
  font-size: 8px;
  color: var(--color-muted);
  margin-top: 7px;
}
.journey-stats b {
  color: var(--color-muted);
  font-weight: 400;
}
.daily-chart {
  min-height: 150px;
  display: flex;
  align-items: flex-end;
  gap: 18px;
  padding: 20px 0;
}
.daily-chart > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  max-width: 70px;
  gap: 7px;
}
.daily-chart i {
  width: 100%;
  background: var(--color-muted);
  border-radius: 4px 4px 0 0;
  display: block;
}
.daily-chart span,
.daily-chart small {
  font-size: 9px;
  color: var(--color-muted);
}
.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.quote-grid blockquote {
  margin: 0;
  padding: 20px;
  background: var(--color-bg);
  border-radius: var(--radius-sm);
  font: italic 17px/1.6 var(--font-display);
  color: var(--color-muted);
}
.quote-grid cite {
  display: block;
  font: 8px Arial;
  letter-spacing: 1px;
  margin-top: 18px;
  color: var(--color-muted);
}
.outbox-item {
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.outbox-item strong {
  font-size: 11px;
  display: block;
}
.outbox-item small {
  font-size: 9px;
  color: var(--color-muted);
  display: block;
  margin-top: 7px;
}
.outbox-item a {
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: color-mix(in srgb, var(--color-ink) 31%, transparent);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}
.modal {
  position: relative;
  background: var(--color-surface);
  border-radius: 14px;
  padding: 36px;
  width: 570px;
  max-width: 100%;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 30px 100px color-mix(in srgb, var(--color-ink) 19%, transparent);
}
.modal-close {
  position: absolute;
  right: 15px;
  top: 15px;
}
.modal h2 {
  font: 29px var(--font-display);
  margin-bottom: 12px;
}
.modal > p {
  font-size: 12px;
  color: var(--color-muted);
}
.template-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 25px;
}
.template-options button {
  padding: 15px 10px;
  background: var(--color-surface);
  border: 1px solid var(--color-accent-soft);
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  text-align: left;
}
.template-options button:hover {
  background: var(--color-accent-soft);
}
.template-options button svg:last-child {
  margin-left: auto;
}
.menu-actions {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}
.response-detail {
  margin: 25px 0;
}
.response-detail > div {
  padding: 17px 0;
  border-bottom: 1px solid var(--color-accent-soft);
}
.response-detail label {
  font-size: 10px;
  color: var(--color-muted);
  display: block;
  margin-bottom: 10px;
}
.response-detail p {
  font-size: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.signature-image {
  max-width: 100%;
  max-height: 150px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.file-link {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  margin: 8px 0;
}
.file-link small {
  margin-left: auto;
  font-size: 9px;
  color: var(--color-muted);
}
.toast {
  position: fixed;
  bottom: 27px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: var(--color-surface);
  padding: 14px 22px;
  border-radius: 9px;
  font-size: 12px;
  z-index: 200;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--color-ink) 13%, transparent);
  max-width: 90vw;
}
.toast.error {
  background: var(--color-danger);
}
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
.login-story {
  position: relative;
  overflow: hidden;
  background: var(--color-accent-soft);
  padding: 50px 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
}
.login-story .wordmark {
  padding: 0;
  position: relative;
  z-index: 1;
}
.login-story h1 {
  font: clamp(40px, 5vw, 76px)/1.12 var(--font-display);
  letter-spacing: -2.5px;
}
.login-story h1 em {
  color: var(--color-muted);
}
.login-story > div {
  z-index: 1;
  margin: 55px 0;
}
.login-story p {
  font-size: 13px;
  color: var(--color-muted);
  margin-top: 25px;
}
.login-story > small {
  font-size: 10px;
  color: var(--color-muted);
}
.login-box {
  max-width: 460px;
  padding: 50px;
  align-self: center;
  justify-self: center;
  width: 100%;
}
.login-box h2 {
  font: 34px var(--font-display);
}
.login-box > p {
  font-size: 12px;
  color: var(--color-muted);
  margin: 15px 0 30px;
}
.login-box form > .button {
  width: 100%;
  margin-top: 10px;
}
.login-box > small {
  display: block;
  font-size: 10px;
  color: var(--color-muted);
  line-height: 1.8;
  margin-top: 40px;
}
.login-box #login-error {
  font-size: var(--text-sm);
  color: var(--color-danger);
  margin-top: 14px;
}
.loading {
  padding: 80px;
  text-align: center;
  color: var(--color-muted);
  font: 24px var(--font-display);
}
/* Cloud sign-in keeps instructions, feedback and actions visibly separate. */
.cloud-login-page .login-box {
  max-width: 520px;
  width: calc(100% - 64px);
  margin: 32px;
  padding: 36px;
  background: var(--color-surface);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.login-heading {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
}
.login-heading h2 {
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.8px;
}
.login-heading p {
  font-size: 15px;
  color: var(--color-muted);
  line-height: 1.65;
}
.login-flow,
#cloud-login {
  display: grid;
  gap: 20px;
}
#cloud-login:has(> .button[hidden]) {
  display: none;
}
#cloud-login .control {
  margin: 0;
}
.login-flow .button,
.login-flow .control input {
  min-height: 48px;
  font-size: 16px;
}
.login-flow form > .button {
  margin: 4px 0 0;
}
.login-recovery {
  width: 100%;
}
.login-feedback {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--color-border-control);
  border-left-width: 4px;
  border-radius: var(--radius-sm);
  background: var(--color-panel);
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.6;
}
.login-feedback strong {
  font-weight: 650;
}
.login-feedback[data-kind="error"] {
  border-color: var(--color-danger);
  background: var(--color-danger-soft);
}
.login-feedback[data-kind="error"] strong {
  color: var(--color-danger);
}
.login-feedback[data-kind="success"] {
  border-color: var(--color-ok);
  background: var(--color-ok-soft);
}
.login-feedback[data-kind="success"] strong {
  color: var(--color-ok);
}
.login-flow > .help-text {
  padding-top: 20px;
  border-top: 1px solid var(--color-hairline);
  font-size: 12px;
  line-height: 1.7;
  color: var(--color-muted);
}
.cloud-settings > form {
  display: grid;
  justify-items: start;
  gap: 16px;
  margin-top: 20px;
}
.cloud-settings > form .control {
  width: 100%;
  max-width: 480px;
  margin: 0;
}
.cloud-settings > .button {
  margin-top: 20px;
}
.cloud-settings .account-actions {
  align-items: start;
}
.cloud-settings .account-status:empty {
  display: none;
}
.cloud-settings .account-status:not(:empty) {
  margin-top: 12px;
  font-size: 14px;
}
.cloud-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.public-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.public-shell .cloud-login-page {
  flex: 1;
  min-height: 0;
}
.public-shell .login-story {
  min-height: 0;
}
.public-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 16px 32px;
  border-top: 1px solid var(--color-hairline);
  background: var(--color-surface);
  color: var(--color-muted);
  font-size: 12px;
}
.public-footer nav {
  display: flex;
  gap: 24px;
}
.public-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.legal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 32px;
}
.legal-header .wordmark {
  padding: 0;
}
.legal-page {
  flex: 1;
  width: min(100% - 40px, 760px);
  margin: 32px auto 64px;
  font-size: 16px;
  line-height: 1.75;
}
.legal-page h1 {
  font-size: 40px;
}
.legal-page section {
  margin: 32px 0;
}
.legal-page h2 {
  font-size: 22px;
  margin-bottom: 12px;
}
.legal-page a {
  text-decoration: underline;
  color: var(--color-accent);
}
.panel-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.cloud-settings .account-actions {
  margin-top: 24px;
  margin-bottom: 0;
}
.cloud-settings .account-actions form {
  margin: 0;
}
.cloud-settings .account-actions .button {
  min-height: 44px;
}
.data-panel {
  display: grid;
  align-content: start;
  gap: 28px;
}
.data-panel header h2 {
  font-size: 22px;
}
.data-panel header p,
.data-section > p,
.notifications-panel > p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-muted);
  margin-top: 12px;
}
.data-section {
  display: grid;
  gap: 16px;
  border-top: 1px solid var(--color-hairline);
  padding-top: 24px;
}
.data-section h3 {
  font-size: 17px;
}
.data-section > p {
  margin: 0;
}
.data-section .help-text {
  font-size: 12px;
}
.allowance-list {
  display: grid;
  gap: 12px;
}
.allowance-list > div {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}
.allowance-list dt {
  color: var(--color-muted);
  font-size: 14px;
}
.allowance-list dd {
  font-size: 14px;
  font-weight: 650;
  margin: 0;
}
.archive-list {
  display: grid;
  gap: 20px;
  min-width: 0;
}
.archive-item {
  display: grid;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--color-hairline);
  min-width: 0;
}
.archive-item h3 {
  font-size: 15px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.archive-item .button {
  min-height: 44px;
}
.modal details .archive-list {
  margin-top: 20px;
}
.delete-explanation {
  margin: 20px 0 28px;
  font-size: 15px;
  line-height: 1.7;
}
.notification-list {
  display: grid;
  gap: 20px;
  margin-top: 28px;
}
.notification-item {
  display: grid;
  justify-items: start;
  gap: 12px;
  padding: 20px 0;
  border-top: 1px solid var(--color-hairline);
}
.notification-item h3 {
  font-size: 16px;
  overflow-wrap: anywhere;
}
.notification-item p {
  color: var(--color-muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}
@media (max-width: 650px) {
  .public-footer {
    padding: 16px 24px;
  }
  .cloud-settings .account-actions {
    display: grid;
  }
  .cloud-settings .account-actions .button {
    width: 100%;
  }
  .archive-item .panel-actions {
    align-items: stretch;
  }
  .archive-item .button {
    flex: 1 1 120px;
  }
}
@media (max-width: 650px) {
  .cloud-login-page .login-box {
    width: calc(100% - 32px);
    margin: 24px 16px;
    padding: 24px;
  }
  .cloud-login-page.is-verifying .login-story > div {
    display: none;
  }
  .cloud-settings .topic-row {
    flex-wrap: wrap;
    gap: 16px;
  }
}
.respondent {
  font-family: var(--form-font);
  background: var(--form-bg);
  color: var(--form-ink);
  min-height: 100vh;
  padding: 65px 24px;
  position: relative;
}
.response-card {
  width: 100%;
  max-width: 670px;
  margin: 0 auto;
  background: var(--color-surface);
  border-radius: 17px;
  padding: 49px 55px;
  box-shadow: 0 12px 60px color-mix(in srgb, var(--color-ink) 6%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-ink) 25%, transparent);
}
.respondent-header {
  margin-bottom: 40px;
}
.respondent-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 1px;
  margin-bottom: 26px;
  font-weight: 600;
}
.respondent h1 {
  font: 40px/1.17 var(--form-font);
  letter-spacing: -1.5px;
  color: var(--form-ink);
}
.respondent-header > p,
.respondent-story > p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--color-muted);
  margin-top: 20px;
}
.respondent-logo {
  max-height: 60px;
  max-width: 180px;
  display: block;
  margin-bottom: 26px;
  object-fit: contain;
}
.respondent-cover {
  width: calc(100% + 110px);
  height: 190px;
  object-fit: cover;
  margin: -49px -55px 36px;
  border-radius: 17px 17px 0 0;
}
.response-field {
  margin: 0 0 30px;
}
.field-heading {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
}
.field-index {
  font-size: 9px;
  color: var(--color-muted);
}
.field-heading > label {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
}
.field-description {
  font-size: 11px;
  color: var(--color-muted);
  margin: 0 0 13px 23px;
}
.response-field > input,
.response-field > textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--color-accent-soft);
  border-radius: 7px;
  background: var(--color-surface);
  font-size: 14px;
  color: var(--form-ink);
  line-height: 1.6;
  resize: vertical;
}
.response-field > input:focus,
.response-field > textarea:focus {
  outline: 2px solid var(--form-accent);
  outline-offset: 1px;
}
.choice-list {
  display: grid;
  gap: 9px;
}
.yes-no-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.choice-list > label {
  border: 1px solid var(--color-accent-soft);
  border-radius: 7px;
  padding: 13px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 12px;
  background: var(--color-surface);
}
.choice-list input {
  accent-color: var(--form-accent);
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 0;
}
.choice-list > label:has(input:checked) {
  border-color: var(--form-accent);
  background: var(--form-bg);
}
.choice-letter {
  flex-shrink: 0;
  font-size: 9px;
  background: var(--color-bg);
  color: var(--color-muted);
  border-radius: 4px;
  padding: 4px 5px;
}
.rating-options {
  display: flex;
  gap: 10px;
}
.rating-options label {
  flex: 1;
  cursor: pointer;
  position: relative;
}
.rating-options input {
  position: absolute;
  opacity: 0;
}
.rating-options span {
  display: block;
  text-align: center;
  border: 1px solid var(--color-accent-soft);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: 12px;
  background: var(--color-surface);
}
.rating-options small {
  display: block;
  font-size: 24px;
  margin-top: 5px;
  color: var(--color-muted);
}
.rating-options input:checked + span {
  background: var(--form-bg);
  border-color: var(--form-accent);
  box-shadow: 0 0 0 1px var(--form-accent);
}
.rating-options input:focus-visible + span {
  outline: 2px solid var(--form-accent);
  outline-offset: 3px;
}
.upload-area {
  border: 1px dashed var(--color-hairline);
  border-radius: var(--radius-sm);
  padding: 23px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  background: var(--color-surface);
}
.upload-area > span {
  font-size: 25px;
  color: var(--color-muted);
}
.upload-area input {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  font-size: 11px;
}
.upload-area input::file-selector-button {
  min-height: 44px;
  padding: 10px 12px;
  margin-inline-end: 12px;
  border: 1px solid var(--form-control-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--form-ink);
  font: inherit;
  cursor: pointer;
}
.upload-area small {
  font-size: 12px;
  line-height: 1.6;
  color: var(--color-muted);
}
.signature-wrap {
  border: 1px solid var(--color-accent-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-surface);
}
.signature-wrap canvas {
  width: 100%;
  height: 155px;
  display: block;
  touch-action: none;
}
.signature-wrap > div {
  border-top: 1px dashed var(--color-accent-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-muted);
}
.signature-clear {
  min-height: 44px;
  flex-shrink: 0;
  padding: 10px 14px;
  border: 1px solid var(--form-control-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--form-ink);
  font: 500 14px var(--form-font);
  cursor: pointer;
}
.signature-alternative {
  display: block;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-muted);
}
.signature-alternative input {
  display: block;
  width: 100%;
  border: 1px solid var(--color-accent-soft);
  padding: 8px;
  border-radius: 4px;
  margin-top: 7px;
  font: italic 17px var(--font-display);
  color: var(--color-muted);
}
.response-field output {
  display: block;
  padding: 15px;
  border-radius: 7px;
  background: var(--form-bg);
  font-size: 23px;
}
.section-break {
  border-top: 1px solid var(--color-accent-soft);
  padding-top: 26px;
}
.section-break h2 {
  font: 24px var(--form-font);
}
.section-break p {
  font-size: 12px;
  color: var(--color-muted);
  margin-top: 8px;
}
.submission-footer {
  margin-top: 38px;
}
.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  background: var(--form-accent);
  color: var(--color-surface);
  border: 0;
  border-radius: 7px;
  padding: 14px 24px;
  font-size: 12px;
  min-width: 140px;
}
.submit-button:hover {
  filter: brightness(1.1);
}
.required-note {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-muted);
  margin: 0 0 24px;
  text-align: start;
}
.respondent-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  font-size: 9px;
  color: var(--color-muted);
  margin-top: 48px;
  padding-top: 25px;
  border-top: 1px solid var(--color-hairline);
}
.form-error {
  color: var(--color-muted);
  font-size: 12px;
  margin-bottom: 16px;
  line-height: 1.6;
}
.respondent.split {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  padding: 0;
  min-height: 100vh;
}
.respondent-story {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 70px 55px;
  background: var(--form-cover);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.respondent-story h1 {
  font-size: clamp(32px, 3.6vw, 57px);
  z-index: 1;
}
.respondent-credit {
  position: absolute;
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-muted);
  font-size: 9px;
}
.respondent-story .respondent-brand {
  position: absolute;
  top: 40px;
  left: 55px;
  right: 55px;
}
.respondent.split .response-card {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding-top: 65px;
  padding-bottom: 45px;
  max-width: 750px;
  align-self: start;
}
.respondent.split .respondent-cover {
  margin-top: -65px;
  border-radius: 0;
}
.preview-banner {
  position: sticky;
  top: 0;
  text-align: center;
  background: var(--color-accent-soft);
  padding: 10px;
  font-size: 8px;
  letter-spacing: 1px;
  z-index: 10;
  margin: -65px -24px 35px;
  color: var(--color-muted);
}
.split .preview-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  margin: 0;
}
.thank-you {
  text-align: center;
  padding: 35px 0;
}
.thank-check {
  width: 64px;
  height: 64px;
  margin: auto auto 25px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--form-bg);
  color: var(--form-accent);
  font-size: 27px;
}
.thank-you h2 {
  font: 32px var(--form-font);
}
.thank-you p {
  font-size: 13px;
  color: var(--color-muted);
  margin-top: 18px;
}
.thank-you > small {
  display: block;
  font-size: 9px;
  color: var(--color-muted);
  margin: 20px;
}
.thank-you > .button {
  margin-top: 24px;
}
.closed-form {
  text-align: center;
  padding: 40px 0;
}
.closed-form > span {
  font-size: 45px;
  color: var(--color-muted);
}
.closed-form h2 {
  margin: 20px 0;
}
.closed-form p {
  font-size: 13px;
  color: var(--color-muted);
}
@media (min-width: 1500px) {
  .main {
    padding: 45px 55px;
  }
  .editor-main {
    padding: 0;
  }
  .form-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .welcome-banner {
    padding: 35px 50px;
  }
  .welcome-banner h2 {
    font-size: 42px;
  }
}
@media (max-width: 1150px) {
  :root {
    --sidebar: 210px;
  }
  .main {
    padding: 27px;
  }
  .topbar {
    padding: 0 27px;
  }
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .builder {
    grid-template-columns: 155px minmax(280px, 1fr) 220px;
  }
  .question-list,
  .properties {
    padding: 20px 12px;
  }
  .builder-canvas {
    padding: 20px 15px;
  }
  .form-paper {
    padding: 28px 20px;
  }
  .editor-main {
    padding: 0;
  }
  .settings-layout {
    grid-template-columns: 340px minmax(0, 1fr);
    padding: 20px;
    gap: 20px;
  }
  .metrics {
    gap: 9px;
  }
  .metric {
    padding: 15px;
  }
  .hero-art {
    width: 270px;
    margin: 0;
  }
  .template-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .settings-columns {
    gap: 17px;
    padding: 20px;
  }
  .settings-panel {
    padding: 23px;
  }
  .editor-header {
    padding: 20px;
  }
  .editor-header h1 {
    max-width: 220px;
  }
  .share-layout {
    padding: 24px;
    gap: 20px;
  }
  .welcome-banner h2 {
    font-size: 31px;
  }
}
@media (max-width: 900px) {
  :root {
    --sidebar: 180px;
  }
  .sidebar {
    padding: 22px 10px 12px;
  }
  .sidebar .forms-wordmark-name {
    font-size: 23px;
  }
  .nav-item {
    font-size: 11px;
    gap: 8px;
  }
  .workspace-switch {
    padding: 7px;
    margin-top: 25px;
  }
  .workspace-switch .avatar {
    display: none;
  }
  .topbar {
    height: 60px;
  }
  .main {
    padding: 24px;
  }
  .editor-main {
    padding: 0;
  }
  .page-heading h1 {
    font-size: 23px;
  }
  .welcome-banner {
    padding: 25px;
  }
  .hero-art {
    width: 180px;
    transform: scale(0.8);
    transform-origin: center right;
    margin-left: -25px;
  }
  .welcome-banner h2 {
    font-size: 29px;
  }
  .welcome-banner p {
    font-size: 10px;
  }
  .welcome-banner .eyebrow {
    font-size: 7px;
  }
  .metric small {
    display: none;
  }
  .metric {
    min-height: 100px;
  }
  .metric > span {
    font-size: 9px;
  }
  .metric > span svg {
    display: none;
  }
  .metrics {
    margin-bottom: 25px;
  }
  .builder {
    grid-template-columns: minmax(300px, 1fr) 230px;
  }
  .question-list {
    display: none;
  }
  .settings-layout,
  .settings-columns,
  .share-layout {
    grid-template-columns: 1fr;
  }
  .design-preview iframe {
    height: 700px;
  }
  .editor-header {
    flex-wrap: wrap;
  }
  .editor-header > div:last-child {
    margin-left: auto;
  }
  .editor-header h1 {
    max-width: 350px;
  }
  .editor-tabs {
    gap: 22px;
    overflow: auto;
    padding: 0 23px;
  }
  .insights-grid {
    grid-template-columns: 1fr;
  }
  .insight-card.wide {
    grid-column: auto;
  }
  .section-heading {
    flex-wrap: wrap;
  }
  .login-story {
    padding: 40px;
  }
  .login-box {
    padding: 35px;
  }
  .respondent.split {
    grid-template-columns: 1fr;
  }
  .respondent-story {
    position: relative;
    height: auto;
    min-height: 300px;
    padding: 85px 35px 50px;
  }
  .respondent-story .respondent-credit {
    display: none;
  }
  .respondent.split .response-card {
    max-width: none;
  }
}
@media (max-width: 650px) {
  :root {
    --sidebar: 0px;
  }
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    padding: 15px 18px;
    display: block;
    border-bottom: 1px solid var(--line);
    border-right: 0;
  }
  .sidebar .wordmark {
    padding: 0;
  }
  .sidebar nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 15px;
    gap: 8px;
  }
  .sidebar .nav-item {
    padding: 10px;
    min-height: 44px;
    font-size: 12px;
    gap: 8px;
  }
  .sidebar .nav-item svg {
    width: 16px;
    height: 16px;
  }
  .sidebar > .nav-label,
  .sidebar > .nav-item,
  .sidebar .workspace-switch,
  .sidebar-bottom {
    display: none;
  }
  .sidebar nav .nav-count {
    display: none;
  }
  .topbar {
    height: 48px;
    padding: 0 20px;
  }
  .top-actions {
    gap: 10px;
  }
  .main {
    padding: 25px 18px;
  }
  .page-heading {
    align-items: flex-start;
    gap: 10px;
  }
  .page-heading h1 {
    font-size: 23px;
  }
  .page-heading .eyebrow {
    font-size: 7px;
  }
  .page-heading .button {
    padding: 10px;
    font-size: var(--text-sm);
  }
  .page-heading .button svg {
    width: 16px;
    height: 16px;
  }
  .page-heading p {
    font-size: 10px;
  }
  .welcome-banner {
    padding: 25px 22px;
    min-height: 240px;
  }
  .welcome-banner h2 {
    font-size: 32px;
  }
  .hero-art {
    display: none;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 18px 0;
  }
  .metric {
    padding: 16px;
  }
  .metric > span {
    font-size: 10px;
  }
  .metric strong {
    font-size: 27px;
  }
  .form-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .card-art {
    height: 130px;
  }
  .card-body {
    padding: 11px;
  }
  .card-title > button:first-child {
    font-size: 11px;
  }
  .card-title .icon-button {
    flex-shrink: 0;
  }
  .card-body p {
    font-size: 8px;
  }
  .card-footer {
    font-size: 7px;
    display: block;
    line-height: 1.7;
  }
  .card-footer span + span {
    margin-top: 3px;
  }
  .new-card {
    min-height: 245px;
    padding: 12px;
    text-align: center;
  }
  .new-card strong {
    font-size: 10px;
  }
  .new-card small {
    font-size: 8px;
  }
  .search input {
    width: 100px;
  }
  .section-heading {
    gap: 15px;
  }
  .section-heading h2 {
    font-size: 16px;
  }
  .template-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .template-card h3,
  .template-card p,
  .template-card > .text-button {
    margin: 15px 13px 0;
  }
  .template-card h3 {
    font-size: 13px;
  }
  .template-card p {
    font-size: 10px;
  }
  .template-card > .text-button {
    font-size: 9px;
  }
  .sheet-list > button {
    padding: 20px 15px;
    gap: 12px;
  }
  .sheet-list h3 {
    font-size: 13px;
  }
  .sheet-list > button > span:not(.sheet-icon) {
    font-size: 9px;
  }
  .editor-main {
    padding: 0;
  }
  .editor-header {
    padding: 17px;
  }
  .editor-header h1 {
    font-size: 14px;
    max-width: 230px;
  }
  .editor-header .button {
    padding: 9px;
    font-size: var(--text-sm);
  }
  .editor-tabs {
    gap: 20px;
    padding: 0 18px;
  }
  .editor-tabs button {
    font-size: 10px;
  }
  .builder {
    display: flex;
    flex-direction: column;
  }
  .builder-canvas {
    order: 1;
    padding: 20px;
  }
  .properties {
    order: 2;
    border: 0;
    border-top: 1px solid var(--line);
    padding: 25px;
  }
  .question-list {
    display: block;
    order: 0;
    padding: 15px;
  }
  .question-list > .panel-title,
  .question-link,
  .builder-tip {
    display: none;
  }
  .question-list .add-field {
    margin: 0;
  }
  .form-paper {
    padding: 28px 23px;
  }
  .settings-columns,
  .settings-layout,
  .share-layout {
    padding: 18px;
  }
  .settings-panel {
    padding: 22px;
  }
  .theme-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .responses-page,
  .analytics-page {
    padding: 18px;
  }
  .quote-grid {
    grid-template-columns: 1fr;
  }
  .modal-backdrop {
    padding: 15px;
  }
  .modal {
    padding: 30px 22px;
  }
  .template-options {
    grid-template-columns: 1fr;
  }
  .login-page {
    display: block;
  }
  .login-story {
    min-height: 0;
    padding: 28px 32px;
  }
  .login-story > div {
    margin: 40px 0 20px;
  }
  .login-story h1 {
    font-size: 40px;
  }
  .login-story .eyebrow {
    font-size: 7px;
  }
  .login-story > small {
    display: none;
  }
  .login-box {
    padding: 35px;
    margin: auto;
  }
  .login-box > small {
    margin-top: 25px;
  }
  .respondent {
    padding: 20px 12px;
  }
  .response-card {
    padding: 32px 23px;
    border-radius: var(--radius-md);
  }
  .respondent h1 {
    font-size: 30px;
  }
  .respondent-cover {
    width: calc(100% + 46px);
    margin: -32px -23px 30px;
    height: 150px;
    border-radius: 12px 12px 0 0;
  }
  .preview-banner {
    margin: -20px -12px 20px;
  }
  .response-field {
    margin-bottom: 26px;
  }
  .rating-options {
    gap: 7px;
  }
  .rating-options span {
    padding: 10px 7px;
  }
  .respondent.split .response-card {
    padding: 35px 24px;
  }
  .respondent.split .respondent-cover {
    margin-top: -35px;
  }
  .respondent-story {
    padding: 90px 28px 40px;
  }
  .respondent-story h1 {
    font-size: 38px;
  }
  .respondent-footer {
    margin-top: 35px;
  }
  .upload-area {
    padding: 17px;
  }
  .response-field > input,
  .response-field > textarea {
    font-size: 16px;
  }
  .control input,
  .control textarea,
  .control select {
    font-size: var(--text-base);
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  .sidebar,
  .topbar,
  .editor-header,
  .editor-tabs,
  .toolbar {
    display: none;
  }
  .app-shell {
    margin: 0;
  }
  .main {
    padding: 0;
  }
  .sheet-wrap {
    overflow: visible;
  }
  .response-sheet td {
    white-space: normal;
  }
}

/* Readable titles and responsive authoring refinements. */
.title-input {
  resize: vertical;
  min-height: 74px;
  line-height: 1.3;
  overflow: hidden;
}
.response-search {
  width: 280px;
  margin-top: 18px;
}
.response-search input {
  width: 220px;
}
.modal details summary {
  cursor: pointer;
  font-size: 12px;
}
.modal details .button {
  margin-top: 10px;
}

.help-text,
.control small {
  color: var(--color-muted);
}
.field-description,
.respondent-header > p,
.respondent-story > p {
  color: var(--color-muted);
}
.required-note,
.respondent-footer {
  color: var(--color-muted);
}

/* Workspace conventions; respondent colors remain chosen by the form owner. */
.sidebar {
  background: var(--color-surface);
}
.main {
  font-size: var(--text-sm);
}
.page-heading h1,
.editor-header h1 {
  font-family: var(--font-sans);
}
.form-card,
.settings-panel,
.metric,
.modal {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}
.form-error {
  color: var(--color-danger);
}

.editor-header > div:last-child {
  flex-wrap: wrap;
}

/* Account screens use the same surface, typography and control tokens. */
.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
}
.account-profile {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0 0 32px;
}
.account-profile h2 {
  margin: 0;
}
.account-profile p {
  color: var(--muted);
}
.account-avatar {
  width: 80px;
  height: 80px;
  font-size: 32px;
  border-radius: 24px;
}
.account-section-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
}
.account-section-heading p {
  max-width: 680px;
}
.team-member {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.team-member small,
.topic-row small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}
.team-member form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.team-member select {
  min-width: 130px;
}
.account-status {
  flex-basis: 100%;
  margin: 0;
  color: var(--muted);
}
.role-guide {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.settings-panel + .settings-panel {
  margin-top: 24px;
}
.settings-columns > .settings-panel + .settings-panel {
  margin-top: 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
[hidden] {
  display: none !important;
}
@media (max-width: 700px) {
  .account-section-heading,
  .team-member {
    align-items: stretch;
    flex-direction: column;
  }
  .role-guide {
    grid-template-columns: 1fr;
  }
  .team-member form {
    width: 100%;
  }
  .account-profile {
    gap: 16px;
  }
  .account-actions .button {
    width: 100%;
  }
}
button.avatar {
  border: 0;
  color: var(--ink);
  cursor: pointer;
}
.role-guide > .settings-panel {
  margin-top: 0;
}
.role-guide > .settings-panel > h3:first-child {
  margin-top: 0;
}
.team-role.control {
  margin: 0;
}
.account-section-heading > .button {
  flex-shrink: 0;
  white-space: nowrap;
}

/* Per-form brand assets use the same surface tokens as other settings. */
.brand-image-preview {
  margin: 0 0 12px;
  padding: 12px;
  background: var(--color-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.brand-image-preview img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}
.brand-image-preview--logo img {
  width: auto;
  max-width: 100%;
  height: 64px;
  object-fit: contain;
}

/* Respondent quality defaults shared by every template and brand. */
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/4f007781ee76d2683b6e/instrument-sans.woff2") format("woff2");
}
.respondent {
  --form-control-border: var(--color-muted);
  --form-brand-gap: 40px;
}
.respondent .response-card {
  padding: 32px 40px;
}
.respondent-header {
  margin-bottom: 28px;
}
.respondent-brand,
.completion-brand {
  padding-block: 12px;
  margin: 0 0 var(--form-brand-gap);
}
.respondent-logo {
  width: var(--form-logo-width, 200px);
  max-width: 100%;
  height: auto;
  max-height: 80px;
  object-fit: contain;
  object-position: left;
  margin: 0;
}
.respondent h1 {
  font-size: var(--form-heading-size, 32px);
  letter-spacing: -0.7px;
  overflow-wrap: anywhere;
}
.respondent-header > p,
.respondent-story > p {
  font-size: 16px;
  line-height: 1.6;
  margin-top: 12px;
}
.respondent .intro-note {
  font-size: 14px;
  margin-top: 12px;
}
.respondent-cover {
  width: calc(100% + 80px);
  height: var(--form-cover-height, 150px);
  object-position: 50% var(--form-cover-position, 50%);
  margin: -32px -40px 24px;
}
.respondent.unnumbered .field-index {
  display: none;
}
.field-index {
  font-size: 12px;
}
.field-heading > label {
  font-size: 16px;
}
.field-description {
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 12px;
}
.response-field > input,
.response-field > textarea,
.choice-list > label,
.rating-options span,
.signature-wrap,
.signature-alternative input,
.upload-area {
  border-color: var(--form-control-border);
}
.response-field > input,
.response-field > textarea,
.choice-list > label,
.rating-options span,
.upload-area input {
  font-size: 16px;
  font-family: inherit;
}
.response-field input:focus-visible,
.response-field textarea:focus-visible,
.response-field canvas:focus-visible,
.respondent button:focus-visible,
.respondent a:focus-visible {
  outline: 2px solid var(--form-ink);
  outline-offset: 3px;
}
.rating-options input:focus-visible + span {
  outline-color: var(--form-ink);
}
/* Keep focus on the choice card, without boxing in the native radio or checkbox. */
.response-field .choice-list input:focus {
  outline: none;
}
.choice-list > label:has(input:focus-visible) {
  outline: 2px solid var(--form-ink);
  outline-offset: 3px;
}
.response-field .signature-wrap canvas:focus-visible {
  outline-offset: -4px;
}
.field-error {
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-danger);
  margin-top: 8px;
}
.field-error[hidden] {
  display: none;
}
.respondent .submit-button {
  color: var(--form-button-ink);
  font: 500 16px var(--form-font);
  min-height: 48px;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.required-note,
.privacy-note,
.form-error {
  font-size: 14px;
  line-height: 1.6;
}
.privacy-note {
  margin-top: 18px;
  color: var(--color-muted);
}
.privacy-note a {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: inherit;
}
.thank-you p {
  font-size: 16px;
  line-height: 1.6;
}
.brand-presets {
  padding: 20px;
  margin: 24px 0;
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-md);
  background: var(--color-bg);
}
.brand-presets .account-actions {
  margin-bottom: 20px;
}
.respondent.split .response-card {
  padding-top: 32px;
}
.respondent.split .respondent-cover {
  margin-top: -32px;
}
@media (max-width: 700px) {
  .respondent .response-card {
    padding: 24px;
  }
  .respondent-cover {
    width: calc(100% + 48px);
    height: var(--form-mobile-cover-height, 110px);
    margin: -24px -24px 20px;
  }
  .respondent h1 {
    font-size: min(var(--form-heading-size, 32px), 30px);
  }
  .respondent {
    --form-brand-gap: 28px;
  }
  .respondent-brand,
  .completion-brand {
    padding-block: 8px;
    margin-bottom: var(--form-brand-gap);
  }
  .respondent-logo {
    max-height: 60px;
  }
  .respondent-header {
    margin-bottom: 24px;
  }
  .respondent.split .response-card {
    padding: 24px;
  }
  .respondent.split .respondent-cover {
    margin-top: -24px;
  }
  .respondent-story {
    padding: 70px 24px 28px;
    min-height: 0;
  }
  .respondent-story .respondent-brand {
    position: static;
  }
  .required-note {
    margin: 0 0 16px;
  }
  .rating-options {
    gap: 6px;
  }
  .rating-options span {
    padding: 10px 6px;
  }
}

/* Reusable visual styles and completion composition. */
.form-style-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 24px;
}
.form-style-option {
  padding: 12px;
  text-align: left;
  border: 1px solid var(--color-hairline);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  min-width: 0;
}
.form-style-option.active {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px var(--color-accent);
}
.style-option-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  margin-top: 12px;
}
.form-style-option small {
  display: block;
  font-size: 12px;
  line-height: 1.6;
  color: var(--color-muted);
  margin-top: 5px;
}
.style-thumbnail {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 16px;
  background: var(--color-bg);
  border: 1px solid var(--color-hairline);
  border-radius: 10px;
  height: 124px;
}
.style-thumbnail i {
  height: 12px;
  width: 35%;
  background: var(--color-accent);
  opacity: 0.75;
  border-radius: 3px;
}
.style-thumbnail b {
  height: 5px;
  width: 75%;
  background: var(--color-muted);
  border-radius: 2px;
}
.style-thumbnail em {
  display: block;
  height: 18px;
  border: 1px solid var(--color-muted);
  border-radius: 4px;
}
.style-thumbnail strong {
  height: 12px;
  width: 35%;
  background: var(--color-accent);
  border-radius: 3px;
}
.style-thumbnail--editorial,
.style-thumbnail--editorial em,
.style-thumbnail--editorial strong {
  border-radius: 0;
}
.style-thumbnail--editorial {
  border-top: 4px solid var(--color-ink);
  background: var(--color-surface);
}
.style-thumbnail--minimal {
  background: var(--color-surface);
  border-color: transparent;
}
.style-thumbnail--minimal em {
  border-width: 0 0 1px;
  border-radius: 0;
}
.preview-toolbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
  padding: 12px 24px;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-hairline);
  font: 13px var(--font-sans);
  color: var(--color-ink);
}
.preview-exit {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  font-weight: 600;
  white-space: nowrap;
}
.preview-toolbar p {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--color-muted);
  font-size: 12px;
  line-height: 1.5;
}
.preview-toolbar strong {
  color: var(--color-ink);
  font-size: 13px;
  font-weight: 600;
}
.preview-screens {
  display: flex;
  gap: 3px;
  padding: 3px;
  background: var(--color-bg);
  border-radius: var(--radius-sm);
}
.preview-screens a {
  padding: 10px 14px;
  min-height: 40px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  border-radius: 6px;
  color: var(--color-muted);
}
.preview-screens a[aria-current] {
  background: var(--color-surface);
  box-shadow: 0 1px 4px color-mix(in srgb, var(--color-ink) 10%, transparent);
  color: var(--color-ink);
}
.respondent.is-preview {
  min-height: calc(100vh - 68px);
  padding-top: 36px;
}
.respondent.is-preview.split {
  padding-top: 0;
}
.is-preview .respondent-story {
  top: 68px;
  height: calc(100vh - 68px);
}
.respondent .response-card {
  border-color: color-mix(in srgb, var(--form-ink) 14%, var(--color-surface));
  box-shadow: 0 24px 64px -32px color-mix(in srgb, var(--form-ink) 20%, transparent);
}
.respondent .response-field > input,
.respondent .response-field > textarea {
  border-radius: 10px;
  box-shadow: 0 1px 2px color-mix(in srgb, var(--form-ink) 3%, transparent);
}
.respondent .submit-button {
  border-radius: 10px;
  box-shadow: 0 4px 10px -5px var(--form-accent);
}
.respondent .submit-button:hover {
  filter: none;
}
.respondent.style-editorial .response-card {
  border-radius: 2px;
  box-shadow: none;
  border-top: 3px solid var(--form-accent);
}
.style-editorial .respondent-cover {
  border-radius: 0;
}
.respondent.style-editorial .response-field > input,
.respondent.style-editorial .response-field > textarea,
.style-editorial .choice-list > label,
.style-editorial .rating-options span,
.respondent.style-editorial .submit-button {
  border-radius: 2px;
  box-shadow: none;
}
.style-editorial .respondent-header {
  padding-bottom: 24px;
  border-bottom: 1px solid color-mix(in srgb, var(--form-ink) 14%, transparent);
}
.respondent.style-minimal .response-card {
  background: var(--color-surface);
  border-color: transparent;
  border-radius: 0;
  box-shadow: none;
}
.style-minimal .respondent-cover {
  border-radius: 12px;
}
.respondent.style-minimal .response-field > input,
.respondent.style-minimal .response-field > textarea {
  border-width: 0 0 1px;
  border-radius: 0;
  background: var(--color-surface);
  box-shadow: none;
}
.respondent.is-complete .response-card {
  padding-bottom: 40px;
}
.completion-brand {
  display: flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
}
/* Keep uploaded logo whitespace from dictating the thank-you text measure. */
.thank-you {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0 8px;
  text-align: center;
}
.thank-check {
  width: 56px;
  height: 56px;
  margin: 0 0 24px;
  border: 1px solid color-mix(in srgb, var(--form-accent) 18%, var(--color-surface));
  background: color-mix(in srgb, var(--form-accent) 6%, var(--color-surface));
}
.thank-check svg {
  width: 28px;
  height: 28px;
  display: block;
}
.completion-kicker {
  font: 500 11px/1.5 var(--form-font);
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 12px;
}
.respondent .thank-you h1 {
  font: 500 clamp(26px, 3vw, 34px)/1.22 var(--form-font);
  letter-spacing: -0.75px;
  max-width: 21ch;
  margin: 0;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.thank-you .completion-message {
  font: 400 16px/1.75 var(--form-font);
  color: var(--color-muted);
  max-width: 40ch;
  margin: 18px 0 0;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.completion-actions {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 32px;
}
.completion-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  min-height: 48px;
  max-width: 100%;
  padding: 12px 20px;
  border: 1px solid var(--form-control-border);
  border-radius: 9px;
  background: var(--color-surface);
  color: var(--form-ink);
  font: 500 14px/1.5 var(--form-font);
}
.thank-you .completion-receipt {
  margin: 24px 0 0;
  font: 12px/1.6 var(--form-font);
  color: var(--color-muted);
}
.completion-receipt span {
  font-family: var(--font-mono);
  margin-inline-start: 8px;
}
.style-editorial .completion-button {
  border-radius: 2px;
}
.style-minimal .completion-button {
  background: transparent;
}
.with-motion .response-card,
.form-paper.with-motion {
  animation: form-enter var(--form-motion-duration, 360ms) ease-out both;
}
.with-motion .thank-check {
  animation: completion-enter 440ms cubic-bezier(0.2, 0.7, 0.3, 1) both;
}
.with-motion .thank-check path {
  stroke-dasharray: 26;
  stroke-dashoffset: 0;
  animation: completion-check 380ms 140ms ease-out both;
}
.with-motion .response-field input,
.with-motion .response-field textarea,
.with-motion .choice-list > label,
.with-motion .rating-options span {
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}
.with-motion .submit-button,
.with-motion .completion-button {
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}
.with-motion .submit-button > .ui-icon,
.with-motion .completion-button > .ui-icon {
  transition: translate 160ms ease;
}
.with-motion .submit-button:hover > .ui-icon--arrow {
  translate: 3px 0;
}
.with-motion .completion-button:hover > .ui-icon--back {
  translate: -3px 0;
}
[dir="rtl"] .with-motion .submit-button:hover > .ui-icon--arrow {
  translate: -3px 0;
}
[dir="rtl"] .with-motion .completion-button:hover > .ui-icon--back {
  translate: 3px 0;
}
.with-motion .submit-button:active,
.with-motion .completion-button:active {
  transform: translateY(1px);
}
.without-motion *,
.without-motion *::before,
.without-motion *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
@keyframes form-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes completion-enter {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes completion-check {
  from {
    stroke-dashoffset: 26;
  }
  to {
    stroke-dashoffset: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .respondent *,
  .respondent *::before,
  .respondent *::after,
  .preview-toolbar * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (max-width: 700px) {
  .form-style-grid {
    grid-template-columns: 1fr;
  }
  .form-style-option {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 4px 14px;
    align-items: start;
  }
  .style-thumbnail {
    grid-row: span 2;
    height: 100px;
    padding: 10px;
  }
  .style-option-title {
    margin: 8px 0 0;
  }
  .form-style-option small {
    margin: 0;
  }
  .preview-toolbar {
    flex-wrap: wrap;
    gap: 8px;
    min-height: 64px;
    padding: 8px 12px;
  }
  .preview-toolbar p {
    display: none;
  }
  .preview-screens a {
    padding: 8px 10px;
  }
  .respondent.is-preview {
    padding-top: 20px;
  }
  .is-preview .respondent-story {
    top: 0;
    height: auto;
  }
  .respondent.is-complete .response-card {
    padding-bottom: 28px;
  }
  .thank-you {
    padding-top: 12px;
  }
  .respondent .thank-you h1 {
    font-size: 28px;
    line-height: 1.25;
  }
  .completion-actions {
    margin-top: 26px;
  }
}

.bulk-brand-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px;
  margin: 0 0 20px;
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  font-size: 13px;
}
.bulk-select {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  cursor: pointer;
}
.bulk-select input,
.form-select input {
  width: 17px;
  height: 17px;
  accent-color: var(--color-accent);
}
.bulk-count {
  color: var(--color-muted);
  white-space: nowrap;
}
.bulk-preset {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  min-width: 160px;
  font-size: 12px;
  color: var(--color-muted);
}
.bulk-preset select {
  min-height: 40px;
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  padding: 8px;
  color: var(--color-ink);
  max-width: 100%;
}
.bulk-brand-toolbar p {
  color: var(--color-muted);
  line-height: 1.6;
}
.form-card {
  position: relative;
}
.form-select {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 4px 9px;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  border: 1px solid var(--color-hairline);
  font-size: 12px;
  cursor: pointer;
}
.form-card:has(.form-select input:checked) {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.list-view .form-select {
  position: static;
  flex-shrink: 0;
  margin: 12px;
}
@media (max-width: 700px) {
  .bulk-brand-toolbar {
    gap: 10px;
  }
  .bulk-preset {
    flex-basis: 100%;
  }
  .bulk-brand-toolbar > .button {
    flex: 1;
  }
  .preview-exit {
    font-size: 12px;
  }
}
.form-select {
  z-index: 4;
}
.form-card:has(.form-select) .card-badge {
  left: auto;
  right: 12px;
}
.bulk-brand-toolbar [hidden] {
  display: none;
}
/* Completion headings receive screen-reader focus without looking like a control. */
#thank-title:focus {
  outline: none;
}
.completion-brand {
  justify-content: flex-start;
}

/* Shared Forms icons and native dropdowns, including account and modal controls. */
.ui-icon {
  display: inline-block;
  vertical-align: middle;
  flex: none;
  pointer-events: none;
}
[dir="rtl"] :is(.ui-icon--arrow, .ui-icon--back, .ui-icon--chevron) {
  transform: scaleX(-1);
}
.icon-button {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  flex: none;
}
.icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
.icon-button:disabled:hover {
  background: transparent;
}
.control > .select-field,
.select-field {
  display: block;
  position: relative;
  min-width: 0;
  width: 100%;
  margin: 0;
  font: inherit;
  color: var(--color-ink);
}
.select-field > select {
  display: block;
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: var(--control-height);
  padding: var(--space-2) var(--space-3);
  padding-inline-end: 40px;
  border: 1px solid var(--color-border-control);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-ink);
  font: 400 var(--text-sm)/1.5 var(--font-sans);
  cursor: pointer;
  text-overflow: ellipsis;
}
.select-field > .ui-icon {
  position: absolute;
  inset-inline-end: 12px;
  top: 50%;
  translate: 0 -50%;
  color: var(--color-muted);
}
.select-field:has(select:focus-visible) > .ui-icon {
  color: var(--color-accent);
}
.select-field > select:disabled {
  background: var(--color-bg);
  color: var(--color-muted);
  cursor: not-allowed;
}
.select-field:has(select:disabled) > .ui-icon {
  opacity: 0.45;
}
.workspace-switch {
  padding: 4px 9px;
}
.workspace-switch > .select-field {
  flex: 1;
}
.workspace-switch .select-field > select {
  border: 0;
  background: transparent;
  font-size: 11px;
  font-weight: 600;
  padding-inline-start: 0;
  padding-inline-end: 25px;
}
.workspace-switch .select-field > .ui-icon {
  inset-inline-end: 0;
}
.bulk-preset .select-field > select {
  padding-inline-end: 40px;
}
.privacy-note a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.closed-form > .ui-icon {
  margin-bottom: 16px;
  color: var(--color-muted);
}
.upload-area > .ui-icon {
  color: var(--color-muted);
}
@media (max-width: 650px) {
  .select-field > select {
    font-size: var(--text-base);
  }
  .icon-button {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }
}
@media (forced-colors: active) {
  .select-field > select {
    appearance: auto;
    -webkit-appearance: auto;
  }
  .select-field > .ui-icon {
    display: none;
  }
}

:is(.logic-panel, .modal details) > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  min-height: 44px;
}
:is(.logic-panel, .modal details) > summary::-webkit-details-marker {
  display: none;
}
:is(.logic-panel, .modal details) > summary > .ui-icon--down {
  margin-inline-start: auto;
}
:is(.logic-panel, .modal details)[open] > summary > .ui-icon--down {
  transform: rotate(180deg);
}

.workspace-settings-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
  border-bottom: 1px solid var(--color-hairline);
  padding-bottom: 12px;
}
.workspace-settings-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  color: var(--color-muted);
  font-weight: 500;
}
.workspace-settings-nav a[aria-current] {
  background: var(--color-accent-soft);
  color: var(--color-accent);
}
.selection-toggle {
  white-space: nowrap;
}
@media (max-width: 700px) {
  .section-heading:has(.selection-toggle) {
    flex-wrap: wrap;
  }
  .section-heading:has(.selection-toggle) .toolbar {
    flex-wrap: wrap;
    justify-content: flex-start;
    max-width: 100%;
  }
  .selection-toggle {
    min-height: 44px;
  }
}

/* Physical logo alignment stays consistent for both LTR and RTL forms. */
.respondent-brand.brand-align-left,
.completion-brand.brand-align-left,
.paper-brand.brand-align-left {
  justify-content: left;
  text-align: left;
}
.respondent-brand.brand-align-center,
.completion-brand.brand-align-center,
.paper-brand.brand-align-center {
  justify-content: center;
  text-align: center;
}
.respondent-brand.brand-align-right,
.completion-brand.brand-align-right,
.paper-brand.brand-align-right {
  justify-content: right;
  text-align: right;
}
.brand-align-left .respondent-logo {
  object-position: left;
}
.brand-align-center .respondent-logo {
  object-position: center;
}
.brand-align-right .respondent-logo {
  object-position: right;
}

.animation-settings {
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--color-hairline);
}
.animation-settings h3 {
  margin-top: 0;
}
.motion-fade.with-motion .response-card,
.form-paper.motion-fade.with-motion {
  animation-name: form-fade;
}
.speed-quick {
  --form-motion-duration: 200ms;
  --form-feedback-duration: 100ms;
}
.speed-standard {
  --form-motion-duration: 360ms;
  --form-feedback-duration: 160ms;
}
.speed-calm {
  --form-motion-duration: 600ms;
  --form-feedback-duration: 240ms;
}
.with-motion .thank-check,
.with-motion .thank-check path {
  animation-duration: var(--form-motion-duration, 360ms);
}
.with-motion .response-field input,
.with-motion .response-field textarea,
.with-motion .choice-list > label,
.with-motion .rating-options span,
.with-motion .submit-button,
.with-motion .completion-button {
  transition-duration: var(--form-feedback-duration, 160ms);
}
@keyframes form-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .form-paper.with-motion {
    animation: none !important;
  }
}
@media (min-width: 901px) {
  .design-preview {
    position: sticky;
    top: 16px;
    align-self: start;
  }
  .design-preview iframe {
    height: calc(100vh - 100px);
    min-height: 420px;
  }
}

.respondent-logo[data-logo-pending] {
  visibility: hidden;
}
.paper-brand {
  display: flex;
}
.submission-footer .submit-button {
  justify-content: center;
  gap: 0;
}

/* Distinct compositions share the same brand, controls and completion content. */
.style-thumbnail--gallery {
  position: relative;
  padding-left: 48%;
  background: var(--color-surface);
  overflow: hidden;
}
.style-thumbnail--gallery:before {
  content: "";
  position: absolute;
  inset: 0 58% 0 0;
  background: linear-gradient(145deg, var(--color-accent-soft), var(--color-muted));
  border-radius: inherit;
}
.style-thumbnail--canvas {
  position: relative;
  border: 0;
  border-radius: 0;
  background: var(--color-surface);
  padding-top: 32px;
}
.style-thumbnail--canvas:before {
  content: "";
  height: 18px;
  position: absolute;
  inset: 8px 8px auto;
  background: var(--color-accent-soft);
}
.style-thumbnail--canvas em {
  border: 0;
  border-bottom: 1px solid var(--color-muted);
  border-radius: 0;
}
.style-thumbnail--statement {
  border: 2px solid var(--color-ink);
  border-radius: 0;
  box-shadow: 4px 4px 0 var(--color-accent-soft);
  background: var(--color-surface);
}
.style-thumbnail--statement em,
.style-thumbnail--statement strong {
  border-radius: 0;
}
.respondent.style-gallery:not(.split) .response-card:has(> .respondent-cover) {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  max-width: 1080px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 28px 80px -44px color-mix(in srgb, var(--form-ink) 35%, transparent);
}
.style-gallery:not(.split) .response-card:has(> .respondent-cover) > * {
  grid-column: 2;
  min-width: 0;
}
.style-gallery:not(.split) .response-card > .respondent-cover {
  grid-column: 1;
  grid-row: 1/6;
  width: 100%;
  height: 100%;
  min-height: 560px;
  margin: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: center var(--form-cover-position, 50%);
}
.style-gallery:not(.split) .response-card:has(> .respondent-cover) > .respondent-header {
  margin: 36px 36px 28px;
}
.style-gallery:not(.split) .response-card:has(> .respondent-cover) > form {
  margin: 0 36px 36px;
}
.style-gallery:not(.split) .response-card:has(> .respondent-cover) > .completion-brand {
  margin: 36px 36px var(--form-brand-gap);
}
.style-gallery:not(.split) .response-card:has(> .respondent-cover) > .thank-you {
  margin: 0 36px 36px;
}
.style-gallery:not(.split) .response-card:has(> .respondent-cover) > .respondent-footer {
  margin: 0 36px 24px;
}
.style-gallery:not(.split) .response-card:has(> .respondent-cover) > .password-form,
.style-gallery:not(.split) .response-card:has(> .respondent-cover) > .closed-form {
  margin: 0 36px 36px;
}
.respondent.style-gallery .response-field > input,
.respondent.style-gallery .response-field > textarea {
  background: color-mix(in srgb, var(--form-ink) 3%, var(--color-surface));
  border-radius: 6px;
}
.respondent.style-gallery .submit-button,
.style-gallery .completion-button {
  border-radius: 6px;
  min-height: 50px;
}
.respondent.style-canvas {
  background: var(--color-surface);
}
.respondent.style-canvas .response-card {
  max-width: 900px;
  background: var(--color-surface);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding-top: 48px;
}
.style-canvas .respondent-cover {
  height: var(--form-cover-height, 150px);
  border-radius: 0;
  margin-bottom: 36px;
}
.style-canvas .respondent-header {
  border-bottom: 1px solid var(--form-control-border);
  padding-bottom: 32px;
  margin-bottom: 32px;
}
.respondent.style-canvas .response-field > input,
.respondent.style-canvas .response-field > textarea {
  border: 0;
  border-bottom: 1px solid var(--form-control-border);
  border-radius: 0;
  box-shadow: none;
  padding-inline: 0;
}
.respondent.style-canvas .submit-button,
.style-canvas .completion-button {
  border-radius: 100px;
  min-height: 50px;
  padding-inline: 28px;
  box-shadow: none;
}
.style-canvas .thank-check {
  border-radius: 50%;
  background: transparent;
  border-color: var(--form-accent);
}
.respondent.style-statement .response-card {
  border: 2px solid var(--form-ink);
  border-radius: 0;
  box-shadow: 10px 10px 0 color-mix(in srgb, var(--form-accent) 22%, var(--form-bg));
  padding-top: 32px;
}
.style-statement .respondent-cover {
  width: 100%;
  margin: 0 0 24px;
  border-radius: 0;
}
.style-statement .respondent-header {
  border-bottom: 2px solid var(--form-ink);
  padding-bottom: 28px;
}
.respondent.style-statement .response-field > input,
.respondent.style-statement .response-field > textarea,
.style-statement .choice-list > label,
.style-statement .rating-options span {
  border: 1px solid var(--form-ink);
  border-radius: 0;
  box-shadow: none;
}
.respondent.style-statement .submit-button,
.style-statement .completion-button {
  border: 2px solid var(--form-ink);
  border-radius: 0;
  box-shadow: 4px 4px 0 var(--form-ink);
  font-weight: 600;
}
.style-statement .thank-check {
  border-radius: 0;
  border: 2px solid var(--form-accent);
  background: transparent;
}
@media (max-width: 700px) {
  .respondent.style-gallery:not(.split) .response-card:has(> .respondent-cover) {
    display: block;
    padding: 24px;
    border-radius: 12px;
  }
  .style-gallery:not(.split) .response-card > .respondent-cover {
    width: calc(100% + 48px);
    height: var(--form-mobile-cover-height, 110px);
    min-height: 0;
    margin: -24px -24px 20px;
    border-radius: 0;
  }
  .style-gallery:not(.split) .response-card:has(> .respondent-cover) > .respondent-header {
    margin: 0 0 24px;
  }
  .style-gallery:not(.split) .response-card:has(> .respondent-cover) > form,
  .style-gallery:not(.split) .response-card:has(> .respondent-cover) > .thank-you,
  .style-gallery:not(.split) .response-card:has(> .respondent-cover) > .password-form,
  .style-gallery:not(.split) .response-card:has(> .respondent-cover) > .closed-form {
    margin: 0;
  }
  .style-gallery:not(.split) .response-card:has(> .respondent-cover) > .completion-brand {
    margin: 0 0 var(--form-brand-gap);
  }
  .style-gallery:not(.split) .response-card:has(> .respondent-cover) > .respondent-footer {
    margin: 24px 0 0;
  }
  .respondent.style-canvas .response-card {
    padding: 24px;
  }
  .style-canvas .respondent-cover {
    height: var(--form-mobile-cover-height, 110px);
    margin-bottom: 24px;
  }
  .respondent.style-statement .response-card {
    padding: 24px;
    box-shadow: 5px 5px 0 color-mix(in srgb, var(--form-accent) 22%, var(--form-bg));
  }
  .style-statement .respondent-cover {
    margin-top: 0;
  }
}

/* Brand content must remain readable at narrow widths and on dark page backgrounds. */
.respondent {
  overflow-wrap: anywhere;
}
.respondent .response-card,
.respondent-story {
  min-width: 0;
}
.choice-list > label > span:last-child {
  min-width: 0;
}
.rating-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}
.rating-options label {
  min-width: 0;
}
.rating-options span {
  padding: 12px 4px;
}
.rating-options input {
  width: 1px;
  height: 1px;
}
.choice-list > label:has(input:checked),
.rating-options input:checked + span,
.response-field output {
  background: color-mix(in srgb, var(--form-ink) 7%, var(--color-surface));
}
.respondent .respondent-story {
  height: auto;
  min-height: 100vh;
  overflow: visible;
  align-self: start;
  gap: 0;
}
.respondent-story .respondent-brand {
  position: static;
  flex-shrink: 0;
}
.respondent-story .respondent-credit {
  position: static;
  margin-top: 32px;
}
@media (max-width: 900px) {
  .respondent .respondent-story {
    min-height: 0;
  }
}
@media (min-width: 701px) and (max-width: 1000px) {
  .respondent.style-gallery:not(.split) .response-card:has(> .respondent-cover) {
    grid-template-columns: minmax(0, 0.65fr) minmax(0, 1.35fr);
  }
  .style-gallery:not(.split) .response-card:has(> .respondent-cover) > .respondent-header {
    margin: 28px 24px 24px;
  }
  .style-gallery:not(.split) .response-card:has(> .respondent-cover) > form,
  .style-gallery:not(.split) .response-card:has(> .respondent-cover) > .thank-you {
    margin: 0 24px 28px;
  }
  .style-gallery:not(.split) .response-card:has(> .respondent-cover) > .completion-brand {
    margin: 28px 24px var(--form-brand-gap);
  }
}

.team-invite {
  margin: 24px 0;
}
.team-invite > summary {
  width: fit-content;
  cursor: pointer;
  list-style: none;
}
.team-invite > summary::-webkit-details-marker {
  display: none;
}
.team-invite > form {
  margin-top: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}
.team-invite .settings-columns {
  gap: 16px;
}
.team-invite .account-status {
  margin: 16px 0;
}
.invitation-result {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.invitation-result .button {
  margin: 8px 8px 0 0;
}
.team-member > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
@media (max-width: 700px) {
  .team-invite > form {
    padding: 16px;
  }
  .team-invite .settings-columns {
    grid-template-columns: 1fr;
  }
}

.team-invite > summary:focus-visible {
  outline: 3px solid var(--color-muted);
  outline-offset: 3px;
}

/* Workspace disclosure: full names, one focus ring, usable on narrow screens. */
.workspace-picker {
  position: relative;
  margin: 28px 0 24px;
  min-width: 0;
}
.workspace-picker > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  cursor: pointer;
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  padding: 10px;
  min-height: 48px;
  font-size: var(--text-sm);
  font-weight: 600;
}
.workspace-picker > summary::-webkit-details-marker {
  display: none;
}
.workspace-picker > summary:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}
.workspace-picker .avatar,
.workspace-picker .ui-icon {
  flex-shrink: 0;
}
.workspace-name {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.4;
}
.workspace-picker[open] > summary > .ui-icon {
  transform: rotate(180deg);
}
.workspace-options {
  position: absolute;
  inset-inline: 0;
  top: calc(100% + 8px);
  z-index: 60;
  padding: 8px;
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  max-height: 50vh;
  overflow: auto;
}
.workspace-options > p {
  font-size: 12px;
  color: var(--color-muted);
  margin: 6px 8px 10px;
}
.workspace-options > button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 10px;
  text-align: start;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.workspace-options > button > span {
  flex: 1;
  overflow-wrap: anywhere;
}
.workspace-options > button:hover,
.workspace-options > button[aria-current] {
  background: var(--color-bg);
}
.workspace-options > button:last-child {
  border-top: 1px solid var(--color-hairline);
  margin-top: 6px;
  border-radius: 0;
}
.branding-settings,
.properties .animation-settings {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--color-hairline);
}
.branding-settings h3 {
  margin-top: 0;
}
.form-paper .title-input,
.form-paper .description-input {
  display: block;
  box-sizing: border-box;
  resize: none;
  min-height: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  width: 100%;
  padding: 0;
  background: transparent;
  box-shadow: none;
}
.form-paper .title-input {
  font-family: var(--builder-font, var(--font-sans));
  font-size: 28px;
  line-height: 1.3;
  margin: 0 0 16px;
  letter-spacing: -0.025em;
}
.form-paper .description-input {
  font-family: var(--builder-font, var(--font-sans));
  font-size: 14px;
  line-height: 1.65;
  margin: 0 0 28px;
}
.form-paper .title-input:focus-visible,
.form-paper .description-input:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 6px;
}
.platform-credit {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px;
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.6;
  color: var(--color-muted);
}
.platform-credit-name {
  font-size: 14px;
  font-weight: 650;
  color: var(--ink);
  white-space: nowrap;
}
.platform-credit-name > span {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--color-muted);
}
.form-credit,
.respondent-footer {
  display: flex;
  align-items: center;
  padding-block: 24px 0;
  margin-top: 32px;
}
.form-credit .platform-credit {
  font-size: 12px;
}
.form-credit .platform-credit-name {
  font-size: 14px;
}
.form-credit .platform-credit-name > span {
  font-size: 10px;
}
.credit-align-left {
  justify-content: flex-start;
  text-align: left;
}
.credit-align-center {
  justify-content: center;
  text-align: center;
}
.credit-align-right {
  justify-content: flex-end;
  text-align: right;
}
@media (max-width: 650px) {
  .sidebar .workspace-picker {
    display: block;
    margin: 18px 0 0;
  }
  .workspace-picker > summary {
    min-height: 48px;
  }
  .workspace-options {
    max-height: 55vh;
  }
  .form-paper .title-input {
    font-size: 25px;
  }
}
@media (max-width: 900px) {
  .builder > .question-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    grid-column: 1/-1;
    max-height: 230px;
    overflow: auto;
    border-bottom: 1px solid var(--color-hairline);
  }
  .question-list > .panel-title {
    display: block;
    flex-basis: 100%;
    margin-bottom: 4px;
  }
  .question-list > .question-link {
    display: flex;
    width: auto;
    max-width: 240px;
    margin: 0;
    min-height: 44px;
    flex: 1 1 160px;
  }
  .question-list > .add-field {
    width: auto;
    min-height: 44px;
    margin: 0;
    flex: 1 1 160px;
  }
  .question-list > .builder-tip {
    display: none;
  }
}

/* Folder navigation stays uncluttered; actions belong in the opened folder. */
.folder-row {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.folder-row .nav-item {
  flex: 1;
  min-width: 0;
}
.folder-row .nav-item span {
  overflow-wrap: anywhere;
}
@media (max-width: 650px) {
  .folder-row {
    display: flex;
  }
  .sidebar > .folder-label {
    display: flex;
    margin-top: 12px;
  }
}
@media (max-width: 650px) {
  .sidebar-bottom {
    display: block;
    padding-top: 8px;
    margin-top: 0;
  }
}

.section-heading > div:first-child {
  position: relative;
  min-width: 0;
  max-width: 100%;
}
.section-heading h2 {
  min-width: 0;
  overflow-wrap: anywhere;
}
.folder-options {
  flex: none;
}
.folder-options > summary {
  list-style: none;
  width: 44px;
  min-height: 44px;
  cursor: pointer;
}
.folder-options > summary::-webkit-details-marker {
  display: none;
}
.folder-options-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 30;
  min-width: 170px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}
.folder-options-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--color-danger);
  text-align: left;
}
.folder-options-menu button:hover {
  background: var(--color-accent-soft);
}

/* CYAIOS platform administration shares the Forms design tokens. */
.platform-shell {
  min-height: 100vh;
}
.platform-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px max(24px, calc((100vw - 1200px) / 2));
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.platform-header > a {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.platform-header > a > span {
  color: var(--muted);
  font-size: 12px;
}
.platform-header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.platform-header-actions > span {
  color: var(--muted);
  font-size: 14px;
}
.platform-main {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: 48px 0;
}
.platform-heading {
  display: grid;
  gap: 14px;
  margin-bottom: 32px;
}
.platform-heading h1 {
  font-size: 36px;
  overflow-wrap: anywhere;
}
.platform-heading p,
.platform-card p,
.platform-stat p,
.platform-section-heading p {
  color: var(--muted);
  line-height: 1.65;
}
.platform-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.platform-stat,
.platform-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  min-width: 0;
}
.platform-stat {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.platform-stat > span {
  color: var(--muted);
  font-size: 13px;
}
.platform-stat > strong {
  font-size: 28px;
  line-height: 1.25;
}
.platform-stat p {
  font-size: 12px;
}
.platform-section-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0;
}
.platform-section-links a {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  font-size: 14px;
}
.platform-section-links a:hover {
  background: var(--color-accent-soft);
}
.platform-section {
  margin-top: 36px;
  scroll-margin-top: 24px;
}
.platform-section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}
.platform-accounts,
.platform-workspaces {
  display: grid;
  gap: 20px;
}
.platform-account,
.platform-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.platform-account h3,
.platform-card-heading h3 {
  margin-bottom: 8px;
}
.platform-account p,
.platform-account small {
  overflow-wrap: anywhere;
}
.platform-account small,
.platform-activity small {
  display: block;
  color: var(--muted);
  margin-top: 8px;
}
.platform-account .button {
  flex-shrink: 0;
}
.platform-pagination,
.platform-pagination > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.platform-pagination {
  margin-top: 24px;
  font-size: 14px;
  color: var(--muted);
}
.platform-usage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-bottom: 28px;
}
.platform-usage > div > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 14px;
}
.platform-usage span {
  color: var(--muted);
  text-align: right;
}
.platform-usage progress {
  width: 100%;
  height: 10px;
  accent-color: var(--green);
}
.platform-allowance {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 24px;
  display: grid;
  gap: 12px;
}
.platform-back {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.platform-label {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--color-accent-soft);
  color: var(--ink);
  font-size: 12px;
  white-space: nowrap;
}
.platform-label.is-warning {
  background: var(--canvas);
  border: 1px solid var(--line);
}
.platform-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 24px;
}
.platform-controls fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.platform-controls legend {
  font-weight: 600;
  margin-bottom: 12px;
}
.platform-check {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 8px 0;
  cursor: pointer;
}
.platform-check input {
  width: 20px;
  height: 20px;
  accent-color: var(--green);
  flex-shrink: 0;
}
.platform-confirm {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.platform-confirm .control {
  width: 100%;
}
.platform-feedback {
  font-size: 14px;
  overflow-wrap: anywhere;
}
.platform-feedback:empty {
  display: none;
}
.platform-activity {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}
.platform-activity li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.platform-activity time {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--muted);
}
.platform-empty {
  margin-top: 24px;
}
.platform-footer {
  text-align: center;
  padding: 24px;
  color: var(--muted);
  font-size: 12px;
}
@media (max-width: 900px) {
  .platform-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .platform-controls {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .platform-header {
    padding: 20px;
    align-items: flex-start;
  }
  .platform-header-actions > span {
    display: none;
  }
  .platform-header-actions .button {
    padding: 10px;
    min-height: 44px;
    font-size: 12px;
  }
  .platform-main {
    width: calc(100% - 32px);
    padding: 32px 0;
  }
  .platform-heading h1 {
    font-size: 28px;
  }
  .platform-stats {
    gap: 12px;
  }
  .platform-stat,
  .platform-card {
    padding: 20px;
  }
  .platform-stat > strong {
    font-size: 24px;
  }
  .platform-account,
  .platform-card-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
  .platform-account .button,
  .platform-confirm .button {
    width: 100%;
  }
  .platform-usage {
    grid-template-columns: 1fr;
  }
  .platform-activity li {
    flex-direction: column;
    gap: 12px;
  }
}

.platform-shell .help-text {
  font-size: 14px;
  line-height: 1.65;
}

.platform-allowance-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 12px 0;
}
.platform-allowance-fields .control {
  min-width: 0;
  margin: 0;
}
.platform-allowance-fields .control > span {
  font-size: 14px;
}
.platform-allowance-fields small {
  font-size: 12px;
  color: var(--muted);
}
.platform-allowance-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
@media (max-width: 600px) {
  .platform-allowance-fields {
    grid-template-columns: 1fr;
  }
  .platform-allowance-actions .button {
    width: 100%;
  }
}

.custom-domain {
  display: grid;
  gap: 18px;
  min-width: 0;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.custom-domain > p {
  margin: 0;
  overflow-wrap: anywhere;
}
.custom-domain > .button {
  justify-self: start;
}
.domain-records {
  display: grid;
  gap: 16px;
  min-width: 0;
}
.domain-record {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
}
.domain-record .control {
  margin: 0;
  min-width: 0;
}

/* Validation remains visible after each presentation style's control borders. */
.respondent .response-field :is(input, textarea, canvas)[aria-invalid="true"],
.respondent .choice-list > label:has(input[aria-invalid="true"]),
.respondent .rating-options input[aria-invalid="true"] + span,
.respondent .upload-area:has(input[aria-invalid="true"]),
.respondent .signature-wrap:has(canvas[aria-invalid="true"]) {
  border-color: var(--color-danger);
}
