/* FieldNotes studio: white pages, green navigation, tactile template covers. */
:root {
  --canvas: #f7f8f6;
  --paper: #fff;
  --forest: #254e42;
  --ink: #243a32;
  --muted: #66756e;
  --line: #e3e8e3;
  --mint: #eef3ec;
  --lilac: #eeebf7;
  --apricot: #fae9de;
  --blue: #e9f0f7;
}
svg {
  flex-shrink: 0;
  vertical-align: middle;
}
.error:empty {
  display: none;
}
.button {
  border-radius: 8px;
  min-height: 42px;
  padding: 11px 18px;
  font-weight: 600;
}
.button.secondary {
  color: var(--ink);
}
.button.ghost:hover {
  background: var(--mint);
}
.icon-button {
  min-width: 36px;
  height: 36px;
}
.brand b {
  display: none;
}
.workbench {
  background: #fbfcfa;
}
.app-sidebar {
  width: 232px;
  height: 100vh;
  height: 100dvh;
  position: fixed;
  inset: 0 auto 0 0;
  padding: 31px 22px 22px;
  background: #edf2eb;
  border-right: 1px solid #e3e9df;
  display: flex;
  flex-direction: column;
  z-index: 10;
}
.app-sidebar .brand {
  font-size: 23px;
  padding: 0 3px;
  gap: 9px;
}
.app-sidebar .brand img {
  width: 26px;
  height: 29px;
}
.sidebar-create {
  width: 100%;
  justify-content: space-between;
  margin-top: 36px;
  box-shadow: 0 3px 5px #183d3012;
}
.sidebar-create span {
  font-size: 21px;
  font-weight: 400;
  line-height: 1;
}
.app-nav {
  display: grid;
  gap: 6px;
  margin-top: 24px;
}
.app-nav a,
.app-nav button {
  border: 0;
  background: transparent;
  display: flex;
  gap: 12px;
  align-items: center;
  text-align: left;
  text-decoration: none;
  border-radius: 7px;
  padding: 12px;
  font-size: 14px;
  color: #53695d;
}
.app-nav [aria-current="page"] {
  background: #dbe6d6;
  color: #294d3c;
  font-weight: 650;
}
.app-nav a:hover,
.app-nav button:hover {
  background: #e1e9dc;
}
.sidebar-note {
  margin: auto 4px 25px;
  padding-top: 55px;
}
.sidebar-note img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  object-position: 50% 56%;
  border-radius: 7px;
  opacity: 0.85;
}
.sidebar-note p {
  font-size: 13px;
  line-height: 1.6;
  color: #6c7d6d;
  margin: 12px 0 0;
}
.sidebar-bottom {
  border-top: 1px solid #d9e2d3;
  padding-top: 19px;
}
.account-block {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
}
.account-block > span:last-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.account-block strong {
  font-size: 12px;
  font-weight: 600;
}
.account-label {
  display: block;
  max-width: 140px;
  font-size: 11px;
}
.account-block #account-avatar {
  height: 33px;
  width: 33px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: #d8e2d1;
  border: 1px solid #c8d6bf;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 650;
}
.sidebar-signout {
  border: 0;
  background: transparent;
  color: #5a6b60;
  padding: 10px 0 0 43px;
  font-size: 11px;
}
.sidebar-signout:hover {
  text-decoration: underline;
}
.app-body {
  margin-left: 232px;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.app-topbar {
  height: 74px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
  gap: 22px;
  background: #ffffffb8;
}
.workspace-location {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #708075;
  font-size: 12px;
  min-width: 0;
}
.workspace-location > span:last-child {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.quiet-link {
  font-size: 12px;
  color: #6e7d74;
  text-decoration: none;
  white-space: nowrap;
}
.quiet-link:hover {
  text-decoration: underline;
}
.quiet-link span {
  padding-left: 8px;
}
.workbench .workspace {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 37px 42px 52px;
  flex: 1;
}
.workbench .footer {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 22px 42px;
  font-size: 11px;
  background: #fff;
  border-top: 1px solid var(--line);
}
.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.section-heading h2 {
  font-size: 18px;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin: 0;
}
.section-heading > span {
  font-size: 12px;
}
.template-shelf {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.template-tile {
  padding: 0;
  text-align: left;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color 0.15s;
}
.template-tile:hover {
  border-color: #a8bba6;
}
.template-tile > img,
.blank-cover {
  width: 100%;
  height: auto;
  aspect-ratio: 1.7;
  object-fit: cover;
  display: block;
}
.template-tile > img {
  object-position: 50% 55%;
}
.blank-cover {
  display: grid;
  place-items: center;
  background: #f2f4ef;
  position: relative;
}
.blank-cover:before {
  content: "";
  position: absolute;
  width: 58px;
  height: 74px;
  background: #fff;
  border: 1px solid #d7e0d3;
  border-radius: 4px;
  box-shadow: 4px 5px 0 #e3e9de;
}
.blank-cover svg {
  z-index: 1;
  color: #78916e;
}
.template-caption {
  display: grid;
  grid-template-columns: 1fr auto;
  padding: 16px 17px;
  gap: 5px;
  align-items: center;
}
.template-caption strong {
  font-size: 13px;
  font-weight: 600;
  min-width: 0;
}
.template-caption > span {
  font-size: 11px;
  color: var(--muted);
  grid-column: 1;
  grid-row: 2;
}
.template-caption svg {
  grid-column: 2;
  grid-row: 1 / span 2;
  color: #7d8e81;
}
.quick-start {
  padding-bottom: 35px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 34px;
}
.workspace-head {
  margin: 0 0 19px;
  align-items: center;
}
.workspace-head h1 {
  font-size: 25px;
  letter-spacing: -0.035em;
}
.library-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.count-badge {
  font-size: 11px;
  min-width: 24px;
  padding: 4px 7px;
  background: #edf1eb;
  color: #657660;
  text-align: center;
  border-radius: 5px;
}
.view-switch {
  display: flex;
  padding: 3px;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}
.view-switch button {
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  border-radius: 4px;
  width: 32px;
  height: 30px;
  color: #8b978e;
}
.view-switch button[aria-pressed="true"] {
  color: var(--forest);
  background: #edf2e9;
}
.view-switch svg {
  width: 16px;
  height: 16px;
}
.toolbar {
  margin: 0 0 21px;
}
.tabs {
  gap: 18px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  align-self: stretch;
  align-items: center;
}
.tabs button {
  border-radius: 0;
  padding: 12px 0;
  border-bottom: 2px solid transparent;
  font-size: 12px;
}
.tabs button[aria-selected="true"] {
  background: transparent;
  box-shadow: none;
  border-color: var(--forest);
  font-weight: 650;
}
.search {
  position: relative;
  max-width: 240px;
}
.search svg {
  position: absolute;
  left: 12px;
  top: 12px;
  color: #8a988f;
}
.search input {
  padding: 10px 12px 10px 37px !important;
  font-size: 12px !important;
  border-radius: 7px !important;
}
.form-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.form-card {
  box-shadow: none;
  transition: border-color 0.15s;
  background: #fff;
  border-radius: 9px;
  min-width: 0;
}
.form-card:hover {
  transform: none;
  box-shadow: none;
  border-color: #aabca9;
}
.card-open {
  display: flex;
  position: relative;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
  min-height: 160px;
  padding: 20px;
}
.form-cover {
  width: 43px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  flex-shrink: 0;
  border-left: 4px solid #b6cbaa;
  background: #eaf1e5;
  color: #698a5c;
}
.cover-1 {
  background: #efeaf6;
  border-color: #c5b6da;
  color: #8a71a5;
}
.cover-2 {
  background: #f9ece2;
  border-color: #ddc0a7;
  color: #aa8362;
}
.cover-3 {
  background: #e8eef6;
  border-color: #aec2da;
  color: #6c89aa;
}
.form-card-copy {
  width: 100%;
  min-width: 0;
}
.card-open h2 {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 5px;
  letter-spacing: -0.015em;
}
.card-open p {
  font-size: 12px;
  line-height: 1.5;
}
.card-open .status {
  position: absolute;
  right: 20px;
  top: 23px;
}
.status {
  font-size: 10px;
  padding: 4px 7px;
  border-radius: 5px;
  white-space: nowrap;
}
.status.open {
  color: #426c3c;
  background: #edf4e6;
}
.status.draft {
  color: #886e38;
  background: #f7f0de;
}
.status.closed {
  color: #6e7580;
  background: #edf0f4;
}
.card-foot {
  padding: 15px 20px;
  font-size: 11px;
  gap: 15px;
  align-items: center;
}
.response-shortcut {
  display: flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  color: #587053;
}
.response-shortcut:hover {
  text-decoration: underline;
}
.form-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
}
.form-list .form-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 216px;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
}
.form-list .form-card:last-child {
  border-bottom: 0;
}
.form-list .form-card:hover {
  background: #fbfcfa;
}
.form-list .card-open {
  min-height: 0;
  flex-wrap: nowrap;
  align-items: center;
  padding: 22px 24px;
}
.form-list .form-card-copy {
  flex: 1;
}
.form-list .card-open .status {
  position: static;
  margin-left: 14px;
}
.form-list .card-open h2 {
  font-size: 14px;
  margin: 0 0 5px;
}
.form-list .card-open p {
  font-size: 11px;
  -webkit-line-clamp: 1;
}
.form-list .card-foot {
  border: 0;
  padding: 20px 24px 20px 12px;
  justify-content: flex-end;
  gap: 24px;
}
.form-list .card-foot > span:last-child {
  white-space: nowrap;
}
.empty {
  padding: 35px;
  background: #fff;
  gap: 28px;
  border-style: dashed;
}
.empty h2 {
  font-size: 25px;
}
.empty p {
  font-size: 13px;
}
.empty-art {
  width: 145px;
}
.empty-actions .button {
  font-size: 12px;
  min-height: 38px;
  padding: 9px 13px;
}
.template-dialog {
  max-width: 900px;
  padding: 30px;
}
.template-dialog h2 {
  font-size: 27px;
}
.template-dialog .dialog-head p {
  font-size: 13px;
  margin: 0;
}
.template-dialog .template-shelf {
  margin-top: 27px;
  gap: 14px;
}
.workbench .workspace.is-editor {
  padding-top: 0;
  max-width: 1380px;
}
.editor-head {
  min-height: 87px;
  padding: 16px 0;
  border: 0;
  position: sticky;
  top: 0;
  z-index: 4;
  background: #fbfcfa;
}
/* Scrolling to a focused field leaves room for the sticky editor header. */
.editor-main input,
.editor-main textarea,
.editor-main select,
.editor-main button,
.editor-main a,
.editor-main summary {
  scroll-margin-top: 112px;
}
.back-link {
  font-size: 12px;
  margin-right: 8px;
}
.back-link:before {
  content: "‹";
  font-size: 22px;
  margin-right: 10px;
  vertical-align: -1px;
}
.editor-head #save-label {
  font-size: 11px;
  margin: 0 8px 0 0;
}
.editor-head .button {
  min-height: 38px;
  font-size: 12px;
  padding: 9px 14px;
}
.editor-nav {
  flex-direction: row;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  gap: 28px;
  margin: 0;
  padding: 0;
  background: transparent;
}
.editor-nav button {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 14px 0;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  font-size: 12px;
  color: #7b877e;
}
.editor-nav button[aria-selected="true"] {
  background: transparent;
  border-color: var(--forest);
  color: var(--forest);
  font-weight: 650;
}
.editor-nav svg {
  width: 16px;
  height: 16px;
}
.editor-layout {
  grid-template-columns: 180px minmax(0, 700px);
  gap: 32px;
  justify-content: start;
  margin-top: 28px;
}
.question-outline {
  font-size: 12px;
  align-self: start;
  position: sticky;
  top: 110px;
  padding: 9px 0;
}
.question-outline > p {
  margin: 0 0 17px;
  color: #8a958d;
  font-size: 11px;
}
.question-outline > a {
  display: flex;
  gap: 9px;
  text-decoration: none;
  align-items: baseline;
  font-size: 11px;
  padding: 10px 0;
  color: #687b6c;
  line-height: 1.6;
}
.question-outline > a > span:first-child {
  width: 18px;
  flex-shrink: 0;
  background: #eef2eb;
  text-align: center;
  border-radius: 3px;
  font-size: 10px;
}
.question-outline > a:hover {
  color: var(--forest);
}
.question-outline > a > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.paper {
  border-radius: 10px;
  padding: 29px;
  margin-bottom: 20px;
}
.paper .field:last-child {
  margin-bottom: 0;
}
.field {
  font-size: 11px;
  color: #6e7d73;
  gap: 9px;
}
.paper input.form-title-input {
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 4px 0 13px;
  border-radius: 0;
  font-size: 28px !important;
  font-weight: 600 !important;
  color: var(--ink);
}
.paper textarea {
  min-height: 70px;
  font-size: 13px;
}
.section-card {
  border: 1px solid #d8e0d2;
  background: #fbfcfa;
  border-radius: 10px;
  padding: 22px 22px 20px;
  margin-bottom: 22px;
}
.section-card .question-card {
  background: #fff;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6e7d73;
  margin-bottom: 12px;
}
.section-card input.section-title-input {
  font-size: 19px !important;
  font-weight: 600 !important;
  color: var(--ink);
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 3px 0 10px;
  background: transparent;
}
.section-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px dashed var(--line);
  font-size: 11px;
  color: #6e7d73;
}
.section-flow select,
.skip-logic select {
  font-size: 12px;
  background: #fff;
  padding: 8px 10px;
  max-width: 230px;
}
.skip-logic {
  margin-top: 15px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.skip-logic > p {
  font-size: 11px;
  color: #6e7d73;
  margin: 0 0 10px;
}
.skip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  font-size: 13px;
  color: var(--ink);
}
.skip-row > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.add-section {
  margin-top: 4px;
}
.question-outline > p.outline-section {
  margin: 16px 0 3px;
  color: var(--forest);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.question-card {
  padding: 19px 24px 22px;
  scroll-margin-top: 105px;
  border-radius: 9px;
  position: relative;
  margin-bottom: 16px;
}
.question-card:focus-within {
  border-color: #98ad90;
  box-shadow: -3px 0 0 #587c49;
}
.question-top {
  font-size: 11px;
  margin-bottom: 10px;
}
.question-card .field > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.question-card .field input {
  font-size: 15px;
  font-weight: 500;
  padding: 11px 12px;
  color: var(--ink);
}
.question-settings select {
  max-width: 205px;
  font-size: 12px;
  background: #fafbf9;
  padding: 8px 10px;
}
.check {
  font-size: 12px;
  color: #6e7d73;
}
.question-tools .icon-button {
  font-size: 15px;
  color: #8c988e;
  min-width: 30px;
  height: 30px;
}
.add-question {
  background: #f3f6ef;
  border-color: #c6d3be;
  font-size: 12px;
  color: #5b7550;
  padding: 14px;
}
.question-card .options .field > span {
  position: static;
  width: auto;
  height: auto;
  clip-path: none;
}
.share-art {
  width: 110px;
  height: 74px;
  object-fit: cover;
  border-radius: 7px;
  margin-bottom: 22px;
}
.share-paper h2 {
  font-size: 27px;
  margin-bottom: 12px;
}
.share-paper > .muted {
  font-size: 13px;
}
.share-box {
  margin: 20px 0;
}
.responses-head h2 {
  font-size: 24px;
}
.response-list {
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
}
.response-row {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 20px 23px;
}
.response-row:last-child {
  border-bottom: 0;
}
.response-row:hover {
  background: #f5f8f1;
}
.response-row strong {
  font-size: 13px;
}
.response-row span {
  font-size: 11px;
}
.danger-zone p {
  font-size: 12px;
}
.danger-zone h3 {
  font-size: 16px;
}
.home-page {
  background: #fafbf8;
}
.home-page .topbar {
  padding-top: 30px;
  padding-bottom: 30px;
}
.home-page .landing {
  background: transparent;
  border: 0;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
  margin-top: 30px;
  min-height: 610px;
  overflow: visible;
}
.home-page .landing-copy {
  padding: 40px 38px 45px 0;
}
.product-note {
  font-size: 12px;
  color: #6c7f6c;
  display: flex;
  align-items: center;
  gap: 8px;
}
.product-note > span {
  width: 6px;
  height: 6px;
  background: #769260;
  border-radius: 50%;
}
.home-page .landing h1 {
  font-size: clamp(46px, 4.7vw, 70px);
  font-weight: 550;
  line-height: 1.06;
  letter-spacing: -0.05em;
  margin: 24px 0;
  max-width: 500px;
}
.home-page .landing-copy > p:not(.signin-terms) {
  font-size: 16px;
  line-height: 1.65;
  margin: 0 0 29px;
}
.home-page .landing-art {
  border-radius: 17px;
  min-height: 570px;
  background: #e6e0ed;
  overflow: hidden;
  justify-content: flex-start;
  position: relative;
}
.home-page .landing-art > img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  object-position: center 47%;
  mix-blend-mode: multiply;
}
.example-note {
  position: relative;
  width: 78%;
  padding: 27px 29px;
  background: #fff;
  border-radius: 10px;
  transform: rotate(-3deg);
  box-shadow: 0 9px 35px #42305912;
  margin-top: -20px;
}
.example-label {
  font-size: 10px;
  color: #8a9690;
  display: block;
  margin-bottom: 19px;
}
.example-note > strong {
  display: block;
  font-size: 18px;
  letter-spacing: -0.025em;
  font-weight: 550;
}
.example-rating {
  display: flex;
  gap: 9px;
  margin: 22px 0 20px;
}
.example-rating span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 37px;
  border: 1px solid #e2e8de;
  border-radius: 7px;
  font-size: 13px;
  color: #73816e;
}
.example-rating .chosen {
  background: #e9f0e2;
  color: #47623b;
  border-color: #98b582;
  box-shadow: 0 0 0 2px #e9f0e2;
}
.example-end {
  font-size: 10px;
  color: #90998f;
}
.art-credit {
  font-size: 11px;
  color: #7f7189;
  margin: 28px 0;
}
.home-page .footer {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.form-banner {
  height: 115px;
  background: #ece7f2;
}
.form-banner span {
  color: #6b5c80;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  top: 48px;
}
.form-banner img {
  width: 230px;
  right: 3px;
  top: -13px;
  mix-blend-mode: multiply;
  opacity: 0.8;
}
.participant-paper {
  padding-top: 35px;
}
.participant-paper .description {
  font-size: 14px;
}
.participant h1 {
  font-size: 34px;
  letter-spacing: -0.035em;
}
.participant-question legend {
  font-size: 15px;
}
.participant-question input,
.participant-question textarea {
  font-size: 14px !important;
}
.participant .option-label {
  font-size: 13px;
  background: #fcfdfb;
}
/* Enhancement: the visible native input already shows the choice. */
.participant .option-label:has(input:checked) {
  background: #f0f5e9;
}
.participant .submit-area .notice {
  font-size: 11px;
}
@media (min-width: 1550px) {
  .app-body .workspace {
    padding-top: 45px;
  }
  .template-tile > img,
  .blank-cover {
    aspect-ratio: 1.85;
  }
  .sidebar-note {
    margin-bottom: 38px;
  }
}
@media (max-width: 1180px) {
  .app-sidebar {
    width: 206px;
    padding: 28px 18px 20px;
  }
  .app-body {
    margin-left: 206px;
  }
  .workbench .workspace {
    padding: 30px 28px 40px;
  }
  .app-topbar {
    padding: 0 28px;
  }
  .workbench .footer {
    padding: 20px 28px;
  }
  .template-shelf {
    gap: 12px;
  }
  .template-caption {
    padding: 13px;
  }
  .template-caption strong {
    font-size: 12px;
  }
  .template-caption svg {
    display: none;
  }
  .form-list .form-card {
    grid-template-columns: minmax(0, 1fr) 175px;
  }
  .form-list .card-foot {
    gap: 14px;
    padding-right: 18px;
  }
  .form-list .card-open {
    padding: 19px;
  }
  .editor-layout {
    grid-template-columns: 145px minmax(0, 1fr);
    gap: 24px;
  }
  .editor-head #save-label {
    display: none;
  }
  .home-page .landing {
    margin-left: 40px;
    margin-right: 40px;
    gap: 25px;
  }
  .home-page .landing-copy {
    padding-right: 0;
  }
  .home-page .landing-art {
    min-height: 535px;
  }
  .example-note {
    padding: 24px;
  }
  .home-page .landing-art > img {
    height: 315px;
  }
  .example-rating {
    gap: 6px;
  }
}
@media (max-width: 940px) {
  .app-sidebar {
    width: 180px;
    padding: 25px 14px 20px;
  }
  .app-sidebar .brand {
    font-size: 20px;
    gap: 6px;
  }
  .app-sidebar .brand img {
    width: 23px;
  }
  .app-body {
    margin-left: 180px;
  }
  .app-nav a,
  .app-nav button {
    font-size: 12px;
    padding: 11px;
    gap: 9px;
  }
  .sidebar-create {
    margin-top: 30px;
  }
  .account-label {
    max-width: 106px;
  }
  .template-shelf {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
  }
  .template-tile > img,
  .blank-cover {
    aspect-ratio: 2.25;
  }
  .form-list .form-card {
    grid-template-columns: 1fr;
  }
  .form-list .card-open {
    padding-bottom: 13px;
  }
  .form-list .card-foot {
    padding: 0 19px 17px 76px;
    justify-content: space-between;
  }
  .form-grid:not(.form-list) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .question-outline {
    display: none;
  }
  .editor-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .editor-head > div {
    gap: 7px;
  }
  .editor-head .editor-preview {
    padding-left: 6px;
    padding-right: 6px;
  }
  .editor-preview svg {
    display: none;
  }
  .editor-head .button {
    font-size: 11px;
    padding: 9px 11px;
  }
  .template-dialog {
    max-width: 640px;
  }
  .home-page .landing {
    min-height: 535px;
  }
  .home-page .landing-art {
    min-height: 500px;
  }
  .home-page .landing-art > img {
    height: 290px;
  }
  .example-note {
    padding: 23px 20px;
  }
  .example-note > strong {
    font-size: 16px;
  }
  .example-rating span {
    height: 32px;
    width: 30px;
  }
  .home-page .landing-copy > p:not(.signin-terms) {
    font-size: 15px;
  }
}
@media (max-width: 680px) {
  .app-sidebar {
    position: static;
    width: auto;
    height: auto;
    padding: 17px 20px;
    background: #edf2eb;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0 15px;
    border-right: 0;
    border-bottom: 1px solid #dce6d5;
  }
  .app-sidebar .brand {
    font-size: 21px;
  }
  .sidebar-create {
    margin: 0;
    padding: 8px 13px;
    font-size: 12px;
    min-height: 36px;
    gap: 17px;
    width: auto;
  }
  .app-nav {
    display: flex;
    grid-column: 1 / -1;
    margin-top: 18px;
    gap: 8px;
  }
  .app-nav a,
  .app-nav button {
    padding: 8px 11px;
    min-height: 35px;
    font-size: 12px;
    gap: 6px;
  }
  .app-nav svg {
    width: 16px;
    height: 16px;
  }
  .sidebar-note {
    display: none;
  }
  .sidebar-bottom {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 0;
    padding: 15px 0 0;
    gap: 8px;
  }
  .account-block {
    gap: 8px;
  }
  .account-block strong {
    display: none;
  }
  .account-block #account-avatar {
    width: 24px;
    height: 24px;
    font-size: 10px;
  }
  .account-label {
    display: block;
    max-width: 205px;
    font-size: 10px;
  }
  .sidebar-signout {
    padding: 5px;
    font-size: 10px;
  }
  .app-body {
    margin-left: 0;
    min-height: calc(100vh - 171px);
    min-height: calc(100dvh - 171px);
  }
  .app-topbar {
    display: none;
  }
  .workbench .workspace {
    margin: 0;
    padding: 26px 20px 35px;
  }
  .workbench .footer {
    padding: 19px 20px;
    font-size: 10px;
  }
  .workbench .footer nav {
    gap: 15px;
  }
  .section-heading {
    margin-bottom: 16px;
  }
  .section-heading h2 {
    font-size: 17px;
  }
  .section-heading > span {
    display: none;
  }
  .template-shelf {
    gap: 12px;
  }
  .template-tile > img,
  .blank-cover {
    aspect-ratio: 1.75;
  }
  .template-caption {
    padding: 12px;
  }
  .template-caption strong {
    font-size: 12px;
  }
  .template-caption > span {
    font-size: 10px;
  }
  .quick-start {
    padding-bottom: 25px;
    margin-bottom: 27px;
  }
  .workspace-head {
    margin: 0 0 18px;
  }
  .workspace-head h1 {
    font-size: 24px;
  }
  .toolbar {
    gap: 13px;
    flex-direction: column;
  }
  .tabs {
    align-self: stretch;
    justify-content: flex-start;
    gap: 22px;
  }
  .tabs button {
    padding: 8px 0 11px;
  }
  .search {
    max-width: none;
    width: 100%;
  }
  .form-list .card-open {
    padding: 19px 16px 11px;
    gap: 12px;
  }
  .form-list .card-open h2 {
    font-size: 13px;
  }
  .form-list .card-open p {
    font-size: 11px;
  }
  .form-list .card-open .status {
    margin-left: 3px;
    font-size: 9px;
    max-width: 65px;
  }
  .form-cover {
    height: 45px;
    width: 36px;
  }
  .form-cover svg {
    width: 21px;
  }
  .form-list .card-foot {
    padding: 0 16px 17px 64px;
    font-size: 10px;
  }
  .form-grid:not(.form-list) {
    grid-template-columns: 1fr;
  }
  .template-dialog {
    padding: 23px 19px;
  }
  .template-dialog h2 {
    font-size: 24px;
    line-height: 1.2;
  }
  .template-dialog .dialog-head p {
    font-size: 12px;
    margin-top: 10px;
  }
  .template-dialog .template-caption {
    padding: 11px;
  }
  .template-dialog .template-shelf {
    gap: 10px;
  }
  .empty {
    padding: 25px;
    gap: 20px;
  }
  .empty-art {
    width: 110px;
  }
  .empty h2 {
    font-size: 25px;
  }
  .workbench .workspace.is-editor {
    padding: 0 16px 30px;
  }
  .editor-head {
    padding: 13px 0;
    min-height: 100px;
    gap: 10px;
  }
  .editor-head > div:first-child {
    width: 100%;
    justify-content: space-between;
  }
  .editor-head > div:last-child {
    margin-left: 0;
    justify-content: flex-end;
    width: 100%;
  }
  .editor-head .button {
    font-size: 11px;
    min-height: 35px;
    padding: 8px 12px;
  }
  .back-link {
    font-size: 11px;
  }
  .editor-head .editor-preview {
    margin-right: auto;
  }
  .editor-nav {
    background: transparent;
    border-radius: 0;
    padding: 0;
    gap: 24px;
    justify-content: center;
  }
  .editor-nav button {
    font-size: 11px;
    padding: 13px 0;
    flex: initial;
    gap: 6px;
  }
  .editor-nav button[aria-selected="true"] {
    background: transparent;
  }
  .editor-layout {
    margin-top: 19px;
    display: block;
  }
  .paper {
    padding: 23px 20px;
  }
  .paper input.form-title-input {
    font-size: 24px !important;
  }
  .question-card {
    padding: 15px 17px 20px;
  }
  .question-settings {
    gap: 15px;
  }
  .question-settings select {
    max-width: 180px;
    font-size: 11px;
  }
  .question-settings .check {
    font-size: 11px;
    white-space: nowrap;
  }
  .question-card .field input {
    font-size: 14px;
  }
  .responses-head {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }
  .responses-head h2 {
    font-size: 20px;
  }
  .responses-head .button {
    padding: 8px 10px;
    font-size: 11px;
    min-height: 35px;
  }
  .home-page .topbar {
    padding: 22px 20px;
  }
  .home-page .toplinks > .button {
    font-size: 11px;
    padding: 8px 11px;
    min-height: 35px;
  }
  .home-page .landing {
    margin: 10px 20px 30px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-height: 0;
  }
  .home-page .landing-copy {
    padding: 24px 5px 5px;
  }
  .home-page .landing h1 {
    font-size: 49px;
    margin: 20px 0;
  }
  .product-note {
    font-size: 11px;
  }
  .home-page .landing-copy > p:not(.signin-terms) {
    font-size: 15px;
    margin-bottom: 23px;
  }
  .home-page .landing-art {
    height: auto;
    min-height: 0;
    padding-bottom: 4px;
    border-radius: 12px;
  }
  .home-page .landing-art > img {
    height: 250px;
    width: 100%;
    position: static;
  }
  .example-note {
    width: 76%;
    max-width: 320px;
    padding: 22px;
    margin-top: -18px;
  }
  .example-note > strong {
    font-size: 16px;
  }
  .example-rating span {
    width: 35px;
    height: 33px;
  }
  .example-rating {
    margin: 19px 0 16px;
    gap: 8px;
  }
  .art-credit {
    font-size: 10px;
    margin: 25px 0 21px;
  }
  .home-page .footer {
    margin: 20px;
    padding: 20px 0;
    gap: 16px;
  }
  .participant {
    margin: 5px 15px 28px;
  }
  .participant h1 {
    font-size: 29px;
  }
  .participant-paper {
    padding: 28px 23px;
  }
  .form-banner {
    height: 84px;
  }
  .form-banner span {
    font-size: 10px;
    top: 36px;
    left: 23px;
  }
  .form-banner img {
    width: 170px;
    right: -5px;
    top: -12px;
  }
  .participant-question legend {
    font-size: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .template-tile,
  .form-card {
    transition: none;
  }
  .example-note {
    transform: none;
  }
}

.sidebar-note {
  display: none;
}
.sidebar-bottom {
  margin-top: auto;
}
@media (max-width: 680px) {
  .sidebar-bottom {
    margin-top: 0;
  }
}
@media (max-width: 680px) {
  .quick-start .template-shelf {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding-bottom: 5px;
    gap: 12px;
  }
  .quick-start .template-tile {
    flex: 0 0 150px;
    scroll-snap-align: start;
  }
  .quick-start .template-tile > img,
  .quick-start .blank-cover {
    height: 88px;
    aspect-ratio: auto;
  }
}

/* Keep the same workspace frame on account and guide pages. */
.workbench.account-page {
  display: block;
}
.workbench .app-body {
  min-width: 0;
}
.workbench .account-main {
  max-width: 1000px;
}
.workbench .help-main {
  width: auto;
  margin: 48px clamp(20px, 4vw, 64px) 80px;
}
.workbench .help-hero {
  gap: 32px;
}
.workbench .help-layout {
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 32px;
}
.build-meta {
  font-size: 11px;
  color: var(--muted, #52655b);
  white-space: nowrap;
}
.footer {
  flex-wrap: wrap;
}
@media (max-width: 1000px) {
  .workbench .help-hero {
    grid-template-columns: 1fr;
  }
  .workbench .help-layout {
    grid-template-columns: 1fr;
  }
  .workbench .help-index {
    position: static;
  }
}
.unfinished-setting .check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 10px;
  font-size: 13px;
  color: var(--ink);
}
.unfinished-setting p.muted {
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 10px;
}
/* Responses: one row of controls above a summary or the individual list. */
:root {
  --chart: #2f8f5b; /* one data hue; passes contrast and chroma on paper */
  --chart-track: #eef2eb;
}
.text-button {
  border: 0;
  background: none;
  padding: 4px 0;
  font: inherit;
  font-size: 12px;
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.responses-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin: 4px 0 18px;
}
.segmented {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2px;
  background: var(--paper);
}
.segmented button {
  border: 0;
  background: none;
  padding: 7px 14px;
  border-radius: 6px;
  font: inherit;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
}
.segmented button[aria-pressed="true"] {
  background: var(--mint);
  color: var(--forest);
  font-weight: 600;
}
.responses-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.responses-filter select {
  font-size: 12px;
  padding: 7px 10px;
  max-width: 280px;
  background: var(--paper);
}
.kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.kpi {
  display: grid;
  gap: 2px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}
.kpi-value {
  font-size: 26px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.1;
}
.kpi-label {
  font-size: 11px;
  color: var(--muted);
}
.summary-section {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--forest);
  margin: 26px 0 10px;
}
.summary-card {
  padding: 20px 22px;
  margin-bottom: 14px;
}
.summary-card h4 {
  font-size: 15px;
  line-height: 1.4;
  margin: 0 0 3px;
  color: var(--ink);
}
.summary-card > .muted {
  font-size: 12px;
  margin: 0 0 12px;
}
.summary-bars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.summary-bars li {
  display: grid;
  grid-template-columns: minmax(110px, 34%) 1fr 76px;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}
.summary-label {
  color: var(--ink);
  line-height: 1.35;
}
.summary-track {
  display: block;
  height: 12px;
  background: var(--chart-track);
}
.summary-bar {
  display: block;
  height: 100%;
  background: var(--chart);
  border-radius: 0 4px 4px 0; /* rounded at the value end, square at the baseline */
}
.summary-value {
  text-align: right;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.summary-average {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 10px;
}
.summary-average strong {
  font-size: 22px;
  color: var(--ink);
  margin-right: 4px;
}
.summary-quotes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.summary-quotes li {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink);
  padding: 10px 12px;
  border-left: 3px solid var(--line);
  background: #fafbf9;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.summary-more {
  margin-top: 10px;
}
.summary-more summary {
  font-size: 12px;
  color: var(--forest);
  cursor: pointer;
}
.summary-more .summary-quotes {
  margin-top: 10px;
}
/* Editor: routes at a glance, folded skip logic, recovered edits. */
.routes-card summary {
  cursor: pointer;
  font-size: 14px;
}
.route-list {
  margin: 14px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 12px;
}
.route-when {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 3px;
}
.route-path {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.skip-logic.is-folded {
  padding-top: 10px;
}
.skip-rules {
  list-style: none;
  margin: 0 0 6px;
  padding: 0;
  font-size: 12px;
  color: var(--ink);
  display: grid;
  gap: 4px;
}
.question-outline .outline-jump {
  flex-shrink: 0;
  color: var(--forest);
  font-size: 11px;
}
.question-outline > p.outline-next {
  margin: 2px 0 6px 27px;
  font-size: 10px;
  color: #8a958d;
}
.recovery {
  border-left: 3px solid #efce73;
}
.recovery h3 {
  margin-top: 0;
}
.settings-pointer {
  margin-top: 4px;
}
@media (max-width: 640px) {
  .summary-bars li {
    grid-template-columns: 1fr 64px;
  }
  .summary-track {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}
/* Developer preview badge. The sidebar is too narrow to fit it beside the
   brand, so it sits under the name, lined up with the wordmark. */
.preview-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border: 1px solid #dcc176;
  border-radius: 999px;
  background: #f7e3a8; /* #5a4100 text on this fill is 7.5:1 */
  color: #5a4100;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
}
.preview-badge:hover {
  text-decoration: underline;
}
.preview-badge:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 2px;
}
.app-sidebar .preview-badge {
  align-self: flex-start;
  margin: 6px 0 0 38px;
}
.app-sidebar .preview-badge + .sidebar-create {
  margin-top: 24px;
}
@media (max-width: 940px) {
  .app-sidebar .preview-badge {
    margin-left: 32px;
  }
  .app-sidebar .preview-badge + .sidebar-create {
    margin-top: 20px;
  }
}
@media (max-width: 680px) {
  .app-sidebar .preview-badge {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    margin: 2px 0 0 32px;
  }
  .app-sidebar .preview-badge + .sidebar-create {
    grid-row: 1 / span 2;
    align-self: center;
    margin-top: 0;
  }
}
