@font-face {
  font-family: Inter;
  src: url("/assets/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --sidebar: 244px;
  color-scheme: light;
  font-family: var(--font-sans);
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 600;
  letter-spacing: -0.03em;
}
h1 {
  font-size: 38px;
  line-height: 1.15;
}
h2 {
  font-size: 24px;
}
h3 {
  font-size: 18px;
}
p {
  line-height: 1.65;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button,
a {
  touch-action: manipulation;
}
button {
  color: inherit;
}
input,
textarea,
select {
  max-width: 100%;
  min-width: 0;
}
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
textarea,
select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-none);
  padding: 12px 13px;
  min-height: 46px;
  color: var(--ink);
  font-size: 16px;
  width: 100%;
}
textarea {
  resize: vertical;
  line-height: 1.5;
}
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--fg);
  width: 18px;
  height: 18px;
  flex: none;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 500;
}
label > input,
label > textarea,
label > select {
  margin-top: 8px;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
legend {
  padding: 0;
}
small {
  font-size: 12px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--fg);
  outline-offset: 4px;
}
::selection {
  background: var(--border);
}
[hidden] {
  display: none !important;
}
.icon {
  width: 19px;
  height: 19px;
  flex: none;
}
.muted {
  color: var(--fg-muted);
}
.eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 11px 17px;
  border: 1px solid var(--border);
  border-radius: var(--r-none);
  background: var(--surface);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  transition:
    background-color 0.2s,
    transform 0.2s;
}
.btn:hover {
  background: var(--hover-bg);
  transform: translateY(-1px);
}
.btn.primary {
  background: var(--ink);
  color: var(--surface);
  border-color: var(--ink);
}
.btn.primary:hover {
  background: var(--n-600);
}
.btn.accent {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--fg-inverse);
}
.btn.ghost {
  border-color: transparent;
  background: transparent;
}
.btn.small {
  min-height: 36px;
  padding: 8px 11px;
  font-size: 11px;
}
.icon-button {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  background: none;
  border: 0;
  border-radius: var(--r-none);
}
.icon-button:hover {
  background: var(--hover-bg);
}
.text-link {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  font-size: 12px;
  border: 0;
  background: none;
  padding: 8px 0;
  color: var(--fg-muted);
}
.text-link:hover {
  color: var(--fg);
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.between {
  justify-content: space-between;
}
.stack {
  display: grid;
  gap: 20px;
}
.grow {
  flex: 1;
  min-width: 0;
}
.wrap {
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.055em;
}
.brand img {
  object-fit: contain;
}
.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 0.17em;
  color: var(--fg-muted);
  margin-top: 5px;
  font-weight: 500;
}
.skip {
  position: fixed;
  top: -100px;
  left: 20px;
  background: var(--ink);
  color: var(--fg-inverse);
  padding: 12px;
  z-index: 500;
}
.skip:focus {
  top: 12px;
}
.initial-load {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--fg-muted);
}
.loading-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--fg);
  animation: pulse 1s infinite;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: var(--r-none);
  padding: 5px 8px;
  white-space: nowrap;
}
.badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: var(--r-pill);
  background: var(--fg-subtle);
}
.badge.published {
  background: var(--hover-bg);
  color: var(--n-600);
  border-color: var(--selected-bg);
}
.badge.published::before {
  background: var(--fg-muted);
}
.badge.draft {
  background: var(--hover-bg);
  color: var(--fg-muted);
  border-color: var(--selected-bg);
}
.badge.draft::before {
  background: var(--fg-subtle);
}
.badge.closed {
  background: var(--hover-bg);
}
.error {
  color: var(--n-600);
  background: var(--hover-bg);
  padding: 11px 14px;
  border-radius: var(--r-none);
  font-size: 13px;
}
.help {
  font-size: 12px;
  color: var(--fg-muted);
  line-height: 1.6;
}
.empty {
  text-align: center;
  padding: 56px 20px;
  display: grid;
  justify-items: center;
  gap: 12px;
}
.empty p {
  max-width: 420px;
  color: var(--fg-muted);
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  background: var(--hover-bg);
  border-right: 1px solid var(--border);
  z-index: 40;
  display: flex;
  flex-direction: column;
  padding: 30px 19px 16px;
}
.sidebar .brand {
  padding: 0 8px 30px;
}
.nav-section {
  padding: 21px 12px 10px;
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--fg-subtle);
  font-weight: 500;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  min-height: 44px;
  border-radius: var(--r-none);
  color: var(--fg-muted);
  font-size: 12px;
  margin-bottom: 4px;
}
.nav-link.active {
  background: var(--selected-bg);
  color: var(--ink);
  font-weight: 600;
}
.nav-link:hover {
  background: var(--hover-bg);
}
.nav-link .count {
  margin-left: auto;
  font-size: 9px;
  border: 1px solid var(--border);
  border-radius: var(--r-none);
  padding: 2px 5px;
}
.sidebar-bottom {
  margin-top: auto;
}
.sidebar-note {
  margin: 25px 11px 28px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 10px;
  color: var(--fg-subtle);
  line-height: 1.7;
}
.sidebar-note span {
  display: block;
  color: var(--n-600);
  margin-bottom: 4px;
}
.user-row {
  border-top: 1px solid var(--border);
  padding: 18px 7px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  background: var(--selected-bg);
  width: 33px;
  height: 33px;
  border-radius: var(--r-pill);
  display: grid;
  place-items: center;
  font-size: 11px;
}
.user-row strong {
  display: block;
  text-transform: capitalize;
  font-size: 12px;
  font-weight: 500;
}
.user-row small {
  font-size: 10px;
  color: var(--fg-muted);
}
.user-row .icon-button {
  margin-left: auto;
  color: var(--fg-muted);
}
.shell-main {
  margin-left: var(--sidebar);
  min-height: 100vh;
}
.topbar {
  height: 76px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
  font-size: 11px;
  color: var(--fg-muted);
  gap: 12px;
}
.topbar .crumb {
  display: flex;
  align-items: center;
  gap: 10px;
}
.topbar .crumb .icon {
  width: 13px;
  height: 13px;
  color: var(--n-300);
}
.topbar .crumb strong {
  color: var(--n-600);
  font-weight: 500;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 23px;
}
.workspace-status {
  display: flex;
  align-items: center;
  gap: 7px;
}
.workspace-status:before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--fg-muted);
  border-radius: var(--r-pill);
}
.menu-button {
  display: none;
}
.content {
  padding: 38px 42px 24px;
  max-width: 1540px;
  margin: auto;
}
.page-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.page-head h1 {
  margin: 9px 0 10px;
}
.page-head p {
  font-size: 13px;
  color: var(--fg-muted);
}
.page-head h1 em {
  font-family: var(--font-sans);
  font-weight: 400;
}
.page-actions {
  display: flex;
  gap: 9px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--r-none);
  background: var(--surface);
  margin-bottom: 33px;
}
.stat {
  padding: 22px 23px;
  border-right: 1px solid var(--border);
}
.stat:last-child {
  border: 0;
}
.stat .row {
  justify-content: space-between;
  font-size: 10px;
  color: var(--fg-muted);
  margin-bottom: 15px;
}
.stat .row .icon {
  width: 16px;
  height: 16px;
  color: var(--fg-subtle);
}
.stat strong {
  font-size: 29px;
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
}
.stat small {
  display: block;
  font-size: 10px;
  color: var(--fg-subtle);
  margin-top: 10px;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.section-header h2 {
  font-size: 18px;
  letter-spacing: -0.035em;
}
.section-header .eyebrow {
  font-size: 9px;
}
.tool-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 18px;
  margin-bottom: 33px;
}
.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-none);
  padding: 25px;
  display: flex;
  gap: 20px;
  transition:
    border-color 0.2s,
    transform 0.2s;
}
.tool-card:hover {
  border-color: var(--n-300);
  transform: translateY(-2px);
}
.tool-icon {
  width: 45px;
  height: 45px;
  border-radius: var(--r-none);
  background: var(--hover-bg);
  display: grid;
  place-items: center;
  flex: none;
  color: var(--fg-muted);
}
.tool-icon.rose {
  background: var(--hover-bg);
  color: var(--fg-muted);
}
.tool-card h3 {
  font-size: 17px;
  margin: 2px 0 9px;
}
.tool-card p {
  color: var(--fg-muted);
  font-size: 11px;
  max-width: 370px;
}
.tool-card .text-link {
  color: var(--n-600);
  margin-top: 13px;
  font-size: 11px;
}
.tool-tag {
  display: inline-flex;
  background: var(--hover-bg);
  border-radius: var(--r-none);
  font-size: 8px;
  letter-spacing: 0.03em;
  padding: 4px 6px;
  margin-left: 7px;
  vertical-align: middle;
  color: var(--fg-muted);
}
.lower-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 25px;
}
.panel {
  border: 1px solid var(--border);
  border-radius: var(--r-none);
  background: var(--surface);
  overflow: hidden;
}
.survey-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}
.survey-row:last-child {
  border: 0;
}
.survey-row:hover {
  background: var(--bg);
}
.survey-thumb {
  width: 40px;
  height: 45px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--r-none);
  background: var(--hover-bg);
  color: var(--fg-subtle);
  flex: none;
}
.survey-row h3 {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.5;
  margin-bottom: 4px;
}
.survey-row p {
  font-size: 9px;
  color: var(--fg-muted);
}
.survey-row > .icon {
  width: 15px;
  color: var(--fg-subtle);
}
.activity-list {
  padding: 2px 0;
}
.activity-item {
  display: flex;
  gap: 13px;
  font-size: 11px;
  padding: 12px 0;
}
.activity-dot {
  height: 26px;
  width: 26px;
  flex: none;
  border-radius: var(--r-pill);
  background: var(--selected-bg);
  display: grid;
  place-items: center;
}
.activity-dot .icon {
  width: 12px;
  height: 12px;
  color: var(--fg-muted);
}
.activity-item p {
  color: var(--fg-muted);
  line-height: 1.6;
}
.activity-item strong {
  font-weight: 500;
  color: var(--n-600);
  text-transform: capitalize;
}
.activity-item small {
  font-size: 9px;
  color: var(--fg-subtle);
}
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  margin-top: 43px;
  padding: 18px 0 0;
  font-size: 9px;
  color: var(--fg-subtle);
}
.footer span:last-child {
  display: flex;
  gap: 8px;
  align-items: center;
}
.footer .icon {
  height: 11px;
  width: 11px;
}
.login {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
.login-story {
  padding: 42px 56px;
  background: var(--hover-bg);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.login-story > .brand {
  position: relative;
  z-index: 1;
}
.login-story h1 {
  font-size: clamp(42px, 4.5vw, 68px);
  max-width: 600px;
  letter-spacing: -0.065em;
  line-height: 1.04;
  position: relative;
  z-index: 1;
  margin: 20px 0;
}
.login-story h1 em {
  font-family: var(--font-sans);
  font-weight: 400;
}
.login-story > p {
  max-width: 380px;
  color: var(--fg-muted);
  font-size: 13px;
  margin-bottom: 30px;
}
.login-caption {
  font-size: 10px;
  color: var(--fg-muted);
  letter-spacing: 0.07em;
}
.login-form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px;
}
.login-form {
  width: 100%;
  max-width: 345px;
  display: grid;
  gap: 23px;
}
.login-form h2 {
  font-size: 31px;
  margin: 12px 0;
}
.login-form .help {
  margin-bottom: 12px;
}
.login-form .btn {
  width: 100%;
  justify-content: space-between;
  padding: 14px 17px;
  min-height: 48px;
}
.password-wrap {
  position: relative;
}
.password-wrap input {
  padding-right: 55px !important;
}
.password-wrap button {
  position: absolute;
  right: 3px;
  top: 2px;
}
.login-form .privacy {
  font-size: 10px;
  text-align: center;
  color: var(--fg-subtle);
  border-top: 1px solid var(--border);
  padding-top: 22px;
}
.login-form label {
  margin-bottom: 8px;
}
.filters {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.search-field {
  position: relative;
  flex: 1;
  max-width: 360px;
}
.search-field .icon {
  position: absolute;
  left: 14px;
  top: 14px;
  color: var(--fg-muted);
  width: 17px;
}
.search-field input {
  padding-left: 42px !important;
  font-size: 13px !important;
  background: transparent !important;
}
.filter-tabs {
  display: flex;
  gap: 5px;
}
.filter-tab {
  border: 0;
  padding: 12px 16px;
  background: transparent;
  color: var(--fg-muted);
  border-radius: var(--r-none);
  font-size: 12px;
}
.filter-tab.active {
  background: var(--selected-bg);
  color: var(--ink);
}
.surveys-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.survey-card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--r-none);
  overflow: hidden;
}
.survey-card-body {
  padding: 23px;
}
.survey-card h3 {
  font-size: 19px;
  line-height: 1.25;
  margin-bottom: 10px;
}
.survey-card p {
  font-size: 11px;
  color: var(--fg-muted);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 37px;
}
.survey-card-meta {
  font-size: 10px;
  color: var(--fg-muted);
  display: flex;
  gap: 15px;
  margin: 19px 0;
}
.survey-card-actions {
  border-top: 1px solid var(--border);
  padding-top: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.survey-card-actions a {
  font-size: 11px;
}
.editor-tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.editor-tabs button {
  padding: 13px 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--fg-muted);
  font-size: 12px;
}
.editor-tabs button.active {
  border-color: var(--ink);
  color: var(--ink);
}
.editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 25px;
  align-items: start;
}
.editor-section {
  padding: 25px;
  margin-bottom: 20px;
}
.editor-section h2 {
  font-size: 19px;
  margin-bottom: 20px;
}
.fields {
  display: grid;
  gap: 20px;
}
.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.question-editor {
  padding: 23px;
  border: 1px solid var(--border);
  border-radius: var(--r-none);
  background: var(--surface);
  margin-bottom: 14px;
}
.question-editor .q-head {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
}
.question-number {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--r-none);
  font-size: 11px;
  color: var(--fg-muted);
}
.q-head select {
  width: auto;
  font-size: 12px;
  min-height: 38px;
  padding: 8px;
}
.q-head .tools {
  margin-left: auto;
  display: flex;
}
.q-head .tools button {
  min-width: 32px;
  min-height: 36px;
  font-size: 15px;
}
.question-editor .fields {
  gap: 14px;
}
.question-editor .title-input {
  font-size: 17px !important;
  font-weight: 500;
}
.question-editor .check-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
}
.question-editor .check-label input {
  margin: 0;
}
.condition {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 12px;
}
.condition summary {
  cursor: pointer;
  font-size: 11px;
  color: var(--fg-muted);
}
.condition .two-cols {
  margin-top: 15px;
}
.add-question {
  width: 100%;
  border-style: dashed;
  background: transparent;
}
.editor-aside {
  position: sticky;
  top: 20px;
}
.editor-aside .panel {
  padding: 23px;
}
.editor-aside h3 {
  margin-bottom: 13px;
}
.editor-aside p {
  font-size: 12px;
  color: var(--fg-muted);
  margin-bottom: 16px;
}
.editor-aside .btn {
  width: 100%;
  margin-top: 10px;
}
.publish-note {
  font-size: 11px;
  color: var(--fg-muted);
  padding: 12px;
  background: var(--hover-bg);
  border: 1px solid var(--selected-bg);
  border-radius: var(--r-none);
  line-height: 1.6;
}
.save-state {
  font-size: 11px;
  color: var(--fg-muted);
}
.responses-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.response-summary {
  padding: 24px;
}
.response-summary h3 {
  font-size: 15px;
  line-height: 1.4;
  margin-bottom: 20px;
}
.bar-row {
  margin: 14px 0;
  font-size: 11px;
}
.bar-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 7px;
  gap: 10px;
}
.bar-track {
  height: 6px;
  border-radius: var(--r-none);
  background: var(--hover-bg);
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: var(--fg-subtle);
  max-width: 100%;
  border-radius: var(--r-none);
}
.response-entry {
  padding: 22px;
  border-bottom: 1px solid var(--border);
}
.response-entry:last-child {
  border: 0;
}
.response-entry summary {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 12px;
}
.response-answer {
  padding-top: 17px;
  display: grid;
  gap: 5px;
  overflow-wrap: anywhere;
}
.response-answer strong {
  font-size: 12px;
  font-weight: 500;
}
.response-answer p {
  font-size: 12px;
  color: var(--fg-muted);
  white-space: pre-wrap;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.team-card {
  padding: 25px;
}
.team-card .avatar {
  width: 48px;
  height: 48px;
  font-size: 17px;
  margin-bottom: 18px;
}
.team-card h3 {
  text-transform: capitalize;
  margin-bottom: 8px;
}
.code {
  background: var(--fg);
  color: var(--selected-bg);
  padding: 22px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border-radius: var(--r-none);
  font-family: ui-monospace, monospace;
  font-size: 11px;
  line-height: 1.9;
  overflow: auto;
}
.key-row {
  padding: 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 15px;
}
.key-row:last-child {
  border: 0;
}
.key-row h3 {
  font-size: 13px;
}
.key-row p {
  font-size: 11px;
  color: var(--fg-muted);
  margin-top: 6px;
}
.key-secret {
  word-break: break-all;
  padding: 15px;
  background: var(--hover-bg);
  border-radius: var(--r-none);
  font-size: 12px;
}
.agent-note {
  display: flex;
  gap: 15px;
  background: var(--hover-bg);
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: var(--r-none);
  font-size: 12px;
  color: var(--fg-muted);
  margin: 22px 0;
}
.agent-note .icon {
  color: var(--fg-muted);
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--fg);
  color: var(--fg-inverse);
  border: 1px solid var(--n-600);
  box-shadow: var(--shadow-md);
  padding: 15px 22px;
  border-radius: var(--r-none);
  z-index: 300;
  font-size: 12px;
  max-width: calc(100vw - 30px);
}
dialog {
  width: 560px;
  max-width: calc(100vw - 30px);
  max-height: 90svh;
  border: 1px solid var(--border);
  border-radius: var(--r-none);
  padding: 30px;
  background: var(--bg);
  color: var(--ink);
  box-shadow: var(--shadow-md);
}
dialog::backdrop {
  background: var(--overlay-scrim);
  backdrop-filter: blur(3px);
}
dialog .dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  gap: 15px;
}
dialog h2 {
  font-size: 25px;
}
dialog p {
  font-size: 12px;
  color: var(--fg-muted);
}
dialog form {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}
.dialog-actions {
  display: flex;
  justify-content: end;
  gap: 10px;
  margin-top: 9px;
}
.prompt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.prompt-chip {
  padding: 9px 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--r-none);
  font-size: 10px;
}
.loading-state {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fg-muted);
  font-size: 12px;
  padding: 10px;
}
.scrim {
  display: none;
}
@keyframes pulse {
  50% {
    opacity: 0.3;
  }
}


@media (min-width: 1600px) {
  .content {
    padding: 45px 60px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat:nth-child(2) {
    border: 0;
  }
  .stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border);
  }
  .editor-layout {
    grid-template-columns: 1fr;
  }
  .editor-aside {
    position: static;
  }
  .responses-grid {
    grid-template-columns: 1fr;
  }
  .login-story {
    padding: 35px;
  }
  .login-form-wrap {
    padding: 35px;
  }
  .login-story h1 {
    font-size: 46px;
  }
}
@media (max-width: 760px) {
  :root {
    --sidebar: 245px;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .scrim.open {
    display: block;
    position: fixed;
    inset: 0;
    background: var(--overlay-scrim);
    z-index: 35;
  }
  .shell-main {
    margin: 0;
  }
  .menu-button {
    display: inline-grid;
  }
  .topbar {
    padding: 0 18px;
    height: 64px;
  }
  .topbar-right .date-label {
    display: none;
  }
  .content {
    padding: 28px 20px 20px;
  }
  .page-head {
    flex-wrap: wrap;
    gap: 20px;
  }
  .page-head h1 {
    font-size: 32px;
  }
  .page-actions {
    justify-content: start;
  }
  .stats {
    margin-bottom: 28px;
  }
  .stat {
    padding: 20px;
  }
  .tool-card {
    padding: 23px;
  }
  .tool-grid {
    gap: 14px;
  }
  .lower-grid {
    gap: 26px;
  }
  .login {
    grid-template-columns: 1fr;
  }
  .login-story {
    min-height: 250px;
    padding: 25px 28px;
  }
  .login-story .brand img {
    width: 36px;
    height: 36px;
  }
  .login-story h1 {
    font-size: 39px;
    margin: 35px 0 12px;
    max-width: 340px;
  }
  .login-story > p,
  .login-caption {
    display: none;
  }
  .login-form-wrap {
    padding: 38px 28px 50px;
  }
  .login-form {
    max-width: 440px;
  }
  .footer {
    gap: 15px;
    line-height: 1.5;
  }
  .filters {
    align-items: start;
    flex-direction: column;
  }
  .search-field {
    max-width: none;
    width: 100%;
  }
  .filter-tabs {
    width: 100%;
    justify-content: space-between;
  }
  .filter-tab {
    padding: 11px 13px;
  }
  .editor-section,
  .question-editor {
    padding: 18px;
  }
  .two-cols {
    grid-template-columns: 1fr;
  }
  .q-head {
    flex-wrap: wrap;
  }
  .q-head .tools {
    margin-left: auto;
  }
  .q-head select {
    max-width: 180px;
  }
  .editor-tabs {
    gap: 23px;
  }
  .survey-row {
    padding: 16px;
    gap: 11px;
  }
  .survey-row h3 {
    font-size: 11px;
  }
  .survey-row > .badge {
    font-size: 9px;
  }
  .survey-row > .icon {
    display: none;
  }
  .responses-grid {
    grid-template-columns: 1fr;
  }
  .key-row {
    align-items: start;
    flex-wrap: wrap;
  }
  .key-row .btn {
    margin-left: auto;
  }
  dialog {
    padding: 24px;
  }
  .topbar .workspace-status {
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 760px) {
  .sidebar {
    visibility: hidden;
  }
  .sidebar.open {
    visibility: visible;
  }
}
.survey-subnav {
  margin: 1px 0 8px 21px;
  padding-left: 13px;
  border-left: 1px solid var(--border);
}
.survey-subnav .nav-link {
  font-size: 11px;
  min-height: 40px;
  padding: 9px 10px;
}
.survey-subnav .icon {
  width: 16px;
  height: 16px;
}
.survey-subnav .nav-link.active {
  background: var(--selected-bg);
}
.error {
  border-left: 3px solid var(--n-600);
}
.tool-icon.rose {
  color: var(--n-600);
}
.badge.published::before {
  background: var(--fg);
}
.badge.draft::before {
  background: var(--fg-subtle);
}
/* Use an in-page picker so zoom and OS popup coordinates cannot separate it
   from the field. Browsers without base-select keep their accessible native UI. */
@supports (appearance: base-select) {
  select,
  select::picker(select) {
    appearance: base-select;
  }
  select {
    align-items: center;
    justify-content: space-between;
  }
  select::picker(select) {
    margin: 6px 0 0;
    inset: auto;
    position-area: block-end span-inline-end;
    position-try-order: normal;
    min-width: anchor-size(width);
    max-width: min(420px, calc(100vw - 24px));
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid var(--n-300);
    border-radius: var(--r-none);
    background: var(--surface);
    box-shadow: var(--shadow-md);
    color: var(--fg);
    font:
      13px Inter,
      Arial,
      sans-serif;
    padding: 5px;
    position-try-fallbacks: flip-block;
  }
  select option {
    padding: 10px 13px;
    min-height: 38px;
    border-radius: var(--r-none);
    gap: 10px;
  }
  select option:checked {
    background: var(--selected-bg);
    color: var(--fg);
    font-weight: 600;
  }
  select option:hover,
  select option:focus {
    background: var(--fg);
    color: var(--surface);
  }
  select::picker-icon {
    width: 14px;
    margin-left: 14px;
    color: currentColor;
  }
  .q-head select {
    min-width: 160px;
  }
}

/* Compact app interpretation of the Good Omens component kit. */
.icon { display: inline-flex; align-items: center; justify-content: center; }
.icon > svg { display: block; width: 100%; height: 100%; overflow: visible; }
button, .btn, .badge, .tool-tag, .nav-link .count { flex-shrink: 0; white-space: nowrap; }
button .icon, a .icon { transition: transform var(--dur-base) var(--ease-out); }
button:hover > .icon, a:hover > .icon { transform: translateX(2px); }
.btn { letter-spacing: .02em; transition: background-color var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out); }
.btn:hover { transform: none; background-color: var(--fg); color: var(--fg-inverse); border-color: var(--fg); }
.btn.primary:hover { background-color: var(--surface); color: var(--fg); }
.sidebar { background: var(--surface-2); }
.topbar { background: var(--bg); }
.tool-card:hover { transform: none; border-color: var(--border-strong); }
.survey-card-status { padding: var(--s-5) var(--s-5) 0; }
.survey-card-body { padding: var(--s-5); }
.login-story { background: var(--bg-inverse); color: var(--fg-inverse); }
.login-story .brand img { filter: invert(1); }
.login-story .brand small, .login-story > p, .login-caption { color: var(--n-300); }
.login-story h1 { margin-top: auto; font-weight: 600; letter-spacing: -.03em; }
.login-caption { margin-top: auto; }
.login-form { max-width: var(--content-form, 420px); }
.error { color: var(--signal-red); border-color: var(--signal-red); background: var(--surface); }
.toast { box-shadow: var(--shadow-md); }
dialog { box-shadow: var(--shadow-lg); }
dialog::backdrop, .scrim { background: var(--overlay-scrim); }
.stats, .question-number, .date-label, .response-entry, input[type=date] { font-variant-numeric: tabular-nums; }
.code, .key-secret { font-family: var(--font-mono); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
