:root {
  color-scheme: light;
  --ink: #14213d;
  --muted: #5d6678;
  --paper: #fbfcfe;
  --surface: #ffffff;
  --line: #d9dee8;
  --coral: #f06449;
  --teal: #169c9c;
  --yellow: #f5b82e;
  --blue: #3267d6;
  --purple: #7f56d9;
  --green: #2b9f68;
  --shadow: 0 20px 50px rgba(20, 33, 61, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgba(240, 100, 73, 0.08) 0 25%, transparent 25% 100%),
    linear-gradient(180deg, #f4f7fb 0%, #fbfcfe 38%, #eef6f5 100%);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.site-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 32px;
  align-items: end;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 28px;
}

.site-header > *,
.layout > *,
.field,
fieldset {
  min-width: 0;
}

.eyebrow,
.section-kicker,
.status-label {
  margin: 0 0 8px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  overflow-wrap: break-word;
  font-size: 3.45rem;
  line-height: 1.02;
  text-wrap: balance;
}

h2 {
  font-size: 1.7rem;
  line-height: 1.16;
  text-wrap: balance;
}

.intro {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}

.status-panel,
.summary-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.status-panel {
  padding: 20px;
}

.status-panel strong {
  display: block;
  font-size: 2.1rem;
  line-height: 1;
}

.progress-track {
  overflow: hidden;
  height: 12px;
  margin-top: 18px;
  border-radius: 999px;
  background: #e6ebf2;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--coral), var(--yellow), var(--teal));
  transition: width 180ms ease;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 56px;
}

.brief-form {
  display: grid;
  gap: 18px;
}

.form-section {
  padding: 28px;
  border: 1px solid var(--line);
  border-left-width: 8px;
  border-radius: 8px;
  background: var(--surface);
}

.accent-coral {
  border-left-color: var(--coral);
}

.accent-teal {
  border-left-color: var(--teal);
}

.accent-yellow {
  border-left-color: var(--yellow);
}

.accent-blue {
  border-left-color: var(--blue);
}

.accent-purple {
  border-left-color: var(--purple);
}

.accent-green {
  border-left-color: var(--green);
}

.section-heading {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.section-heading > span {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
}

.idea-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.idea-list span {
  min-height: 42px;
  padding: 11px 12px;
  border: 1px solid #d5dce8;
  border-radius: 8px;
  background: #f8fafc;
  color: var(--ink);
  font-weight: 750;
}

.question-block {
  display: grid;
  gap: 12px;
  min-width: 0;
  margin-top: 22px;
}

.question-block:first-of-type {
  margin-top: 0;
}

.field-grid,
.option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field.wide {
  grid-column: 1 / -1;
}

.field span,
fieldset legend {
  color: var(--ink);
  font-weight: 750;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  border: 1px solid #c9d1df;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

input[type="text"],
input[type="email"] {
  min-height: 46px;
  padding: 0 13px;
}

textarea {
  min-height: 104px;
  resize: vertical;
  padding: 13px;
  line-height: 1.5;
}

input:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(50, 103, 214, 0.14);
}

small {
  color: #b42318;
  font-size: 0.86rem;
}

.choice-card {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 132px;
  gap: 8px;
  align-content: start;
  padding: 16px;
  border: 1px solid #d5dce8;
  border-radius: 8px;
  background: #fff;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.choice-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(20, 33, 61, 0.1);
}

.choice-card input {
  width: 20px;
  height: 20px;
  accent-color: var(--teal);
}

.choice-card span {
  font-size: 1.05rem;
  font-weight: 800;
}

.choice-card small {
  color: var(--muted);
  line-height: 1.45;
}

.choice-card:has(input:checked),
.tag-grid label:has(input:checked),
.radio-stack label:has(input:checked),
.segmented label:has(input:checked) {
  border-color: var(--teal);
  background: #edfbfa;
}

.recommended::after {
  content: "V1";
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff2cc;
  color: #7a4d00;
  font-size: 0.72rem;
  font-weight: 900;
}

.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-grid label {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid #d5dce8;
  border-radius: 8px;
  background: #fff;
  font-weight: 700;
}

.tag-grid input,
.radio-stack input,
.segmented input {
  accent-color: var(--blue);
}

fieldset {
  margin: 0 0 22px;
  padding: 0;
  border: 0;
}

fieldset:last-child {
  margin-bottom: 0;
}

.radio-stack {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.radio-stack label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid #d5dce8;
  border-radius: 8px;
  background: #fff;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.segmented label {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid #d5dce8;
  border-radius: 8px;
  background: #fff;
  font-weight: 800;
  text-align: center;
}

.actions,
.summary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.actions {
  padding: 6px 0 0;
}

.primary-button,
.ghost-button {
  min-height: 46px;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 850;
}

.primary-button {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
}

.ghost-button {
  border: 1px solid #c9d1df;
  background: #fff;
  color: var(--ink);
}

.danger-button {
  min-height: 42px;
  border: 1px solid #b42318;
  border-radius: 8px;
  background: #fff;
  color: #b42318;
  font-weight: 800;
  padding: 0 14px;
}

.primary-button:hover,
.ghost-button:hover:not(:disabled),
.danger-button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.summary-panel {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 16px;
  padding: 22px;
}

.summary-content {
  display: grid;
  gap: 12px;
  color: var(--muted);
  line-height: 1.55;
}

.summary-content dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.summary-content div {
  padding-bottom: 12px;
  border-bottom: 1px solid #e6ebf2;
}

.summary-content dt {
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 850;
  text-transform: uppercase;
}

.summary-content dd {
  margin: 4px 0 0;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: min(360px, calc(100% - 36px));
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
}

.quiz-form-page {
  position: relative;
  min-height: 100vh;
  padding: 14px 14px 56px;
  color: #f6f3ed;
  background:
    radial-gradient(circle at 12% 16%, rgba(139, 97, 255, 0.12), transparent 22%),
    radial-gradient(circle at 78% 74%, rgba(120, 86, 255, 0.09), transparent 26%),
    linear-gradient(180deg, #04030a 0%, #070611 44%, #05040b 100%);
}

.quiz-page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.quiz-topbar,
.quiz-form-page .site-header,
.quiz-form-page .layout {
  position: relative;
  z-index: 1;
}

.quiz-topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(1180px, calc(100% - 28px));
  min-height: 64px;
  margin: 0 auto 14px;
  padding: 0 24px;
  border: 1px solid rgba(246, 243, 237, 0.08);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(14, 11, 28, 0.82), rgba(8, 7, 16, 0.88)),
    rgba(11, 10, 22, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(24px) saturate(120%);
}

.quiz-topbar .portfolio-admin-link {
  margin-left: auto;
  border: 1px solid rgba(246, 243, 237, 0.1);
  border-radius: 999px;
  padding: 11px 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 28%),
    rgba(255, 255, 255, 0.018);
  color: rgba(246, 243, 237, 0.68);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.quiz-form-page .site-header {
  align-items: stretch;
  padding: 42px 0 28px;
}

.quiz-form-page .site-header > div,
.quiz-form-page .status-panel,
.quiz-form-page .summary-panel,
.quiz-form-page .form-section {
  border: 1px solid rgba(246, 243, 237, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 22%),
    linear-gradient(180deg, rgba(88, 64, 156, 0.06), transparent 44%),
    rgba(11, 10, 22, 0.72);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px) saturate(120%);
}

.quiz-form-page .site-header > div {
  min-height: 320px;
  border-radius: 32px;
  padding: clamp(28px, 5vw, 52px);
}

.quiz-form-page .eyebrow,
.quiz-form-page .section-kicker,
.quiz-form-page .status-label {
  color: #cfb2ff;
}

.quiz-form-page h1,
.quiz-form-page h2 {
  color: #f7f3ff;
}

.quiz-form-page h1 {
  max-width: 760px;
  font-family: "Syne", "Instrument Sans", sans-serif;
  font-size: clamp(2.8rem, 4.8vw, 4.75rem);
  line-height: 0.94;
  background: linear-gradient(180deg, #f7f3ee 0%, #efe8ff 58%, #d4c1ff 120%);
  background-clip: text;
  color: transparent;
  -webkit-background-clip: text;
}

.quiz-form-page .intro {
  max-width: 760px;
  color: rgba(246, 243, 237, 0.7);
}

.quiz-form-page .status-panel {
  display: grid;
  align-content: center;
  border-radius: 28px;
  padding: 24px;
}

.quiz-form-page .status-panel strong {
  color: #f7f3ff;
}

.quiz-form-page .progress-track {
  background: rgba(246, 243, 237, 0.1);
}

.quiz-form-page .progress-track span {
  background: linear-gradient(90deg, #7b55ff 0%, #b77dff 58%, #e0b4ff 100%);
}

.quiz-form-page .layout {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
}

.quiz-form-page .brief-form {
  gap: 16px;
}

.quiz-form-page .form-section {
  border-left-width: 1px;
  border-radius: 24px;
  padding: 26px;
}

.quiz-form-page .accent-coral,
.quiz-form-page .accent-teal,
.quiz-form-page .accent-yellow,
.quiz-form-page .accent-blue,
.quiz-form-page .accent-purple,
.quiz-form-page .accent-green {
  border-left-color: rgba(246, 243, 237, 0.08);
}

.quiz-form-page .section-heading > span {
  border: 1px solid rgba(246, 243, 237, 0.1);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 28%),
    linear-gradient(135deg, #7b55ff 0%, #b77dff 58%, #e0b4ff 100%);
  color: #fff;
  box-shadow: 0 12px 36px rgba(127, 86, 255, 0.18);
}

.quiz-form-page .field span,
.quiz-form-page fieldset legend,
.quiz-form-page .choice-card span,
.quiz-form-page .summary-content dt {
  color: #f7f3ff;
}

.quiz-form-page .idea-list span,
.quiz-form-page .choice-card,
.quiz-form-page .tag-grid label,
.quiz-form-page .radio-stack label,
.quiz-form-page .segmented label {
  border: 1px solid rgba(246, 243, 237, 0.09);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 22%),
    rgba(255, 255, 255, 0.025);
  color: rgba(246, 243, 237, 0.82);
}

.quiz-form-page .choice-card:hover {
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.quiz-form-page .choice-card small,
.quiz-form-page .summary-content,
.quiz-form-page .summary-content dd {
  color: rgba(246, 243, 237, 0.62);
}

.quiz-form-page .choice-card:has(input:checked),
.quiz-form-page .tag-grid label:has(input:checked),
.quiz-form-page .radio-stack label:has(input:checked),
.quiz-form-page .segmented label:has(input:checked) {
  border-color: rgba(207, 178, 255, 0.48);
  background:
    linear-gradient(180deg, rgba(139, 97, 255, 0.18), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.03);
  box-shadow: 0 0 0 4px rgba(139, 97, 255, 0.1);
}

.quiz-form-page input[type="text"],
.quiz-form-page input[type="email"],
.quiz-form-page textarea {
  border: 1px solid rgba(246, 243, 237, 0.12);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 22%),
    rgba(255, 255, 255, 0.035);
  color: #f7f3ff;
}

.quiz-form-page textarea::placeholder,
.quiz-form-page input::placeholder {
  color: rgba(246, 243, 237, 0.34);
}

.quiz-form-page input:focus,
.quiz-form-page textarea:focus {
  border-color: rgba(203, 174, 255, 0.42);
  box-shadow: 0 0 0 4px rgba(139, 97, 255, 0.14);
}

.quiz-form-page input,
.quiz-form-page textarea {
  accent-color: #b77dff;
}

.quiz-form-page small {
  color: #ffb4a8;
}

.quiz-form-page .recommended::after {
  background: rgba(207, 178, 255, 0.14);
  color: #ead8ff;
}

.quiz-form-page .primary-button,
.quiz-form-page .ghost-button {
  min-height: 50px;
  border-radius: 999px;
}

.quiz-form-page .primary-button {
  border-color: rgba(246, 243, 237, 0.1);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 28%),
    linear-gradient(135deg, #7b55ff 0%, #b77dff 58%, #e0b4ff 100%);
  color: #f8f3ff;
  box-shadow: 0 12px 36px rgba(127, 86, 255, 0.24);
}

.quiz-form-page .ghost-button {
  border-color: rgba(246, 243, 237, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 28%),
    rgba(255, 255, 255, 0.018);
  color: rgba(246, 243, 237, 0.82);
}

.quiz-form-page .summary-panel {
  border-radius: 24px;
}

.quiz-form-page .summary-content div {
  border-bottom-color: rgba(246, 243, 237, 0.08);
}

.quiz-form-page .toast {
  border: 1px solid rgba(246, 243, 237, 0.1);
  background: rgba(11, 10, 22, 0.92);
  color: #f7f3ff;
}

.home-shell,
.admin-shell {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
}

.home-admin-link {
  position: absolute;
  top: 48px;
  right: 0;
}

.home-hero {
  padding-right: 110px;
  margin-bottom: 28px;
}

.forms-list {
  display: grid;
  grid-template-columns: minmax(0, 420px);
}

.form-card {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-left: 8px solid var(--teal);
  border-radius: 8px;
  background: var(--surface);
}

.form-card p {
  margin: 0;
}

.form-card a {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  text-decoration: none;
}

.portfolio-home {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 16%, rgba(139, 97, 255, 0.12), transparent 22%),
    radial-gradient(circle at 78% 74%, rgba(120, 86, 255, 0.09), transparent 26%),
    linear-gradient(180deg, #04030a 0%, #070611 44%, #05040b 100%);
  color: #f6f3ed;
  font-family: "Instrument Sans", Inter, system-ui, sans-serif;
}

.portfolio-shell {
  width: min(1240px, calc(100% - 28px));
  min-height: calc(100vh - 28px);
  margin: 14px auto;
  padding: 32px 22px 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(23, 18, 42, 0.78), rgba(8, 6, 18, 0.92)),
    rgba(8, 6, 18, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 32px 80px rgba(0, 0, 0, 0.45);
}

.portfolio-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 44px;
  color: rgba(246, 243, 237, 0.62);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-mark,
.portfolio-admin-link,
.portfolio-primary-link {
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  color: #efe9ff;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
}

.portfolio-admin-link {
  margin-left: auto;
  color: #f6f3ed;
}

.portfolio-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 48px;
  align-items: end;
  padding: clamp(88px, 13vw, 170px) 0 84px;
}

.portfolio-kicker,
.card-meta {
  color: rgba(246, 243, 237, 0.52);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.portfolio-hero h1 {
  max-width: 760px;
  margin: 10px 0 0;
  color: #f6f3ed;
  font-size: clamp(3.25rem, 8vw, 6.75rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.portfolio-hero p {
  margin: 0;
  color: rgba(246, 243, 237, 0.68);
  font-size: 1.04rem;
  line-height: 1.7;
}

.portfolio-card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.portfolio-form-card {
  display: grid;
  min-height: 230px;
  gap: 14px;
  align-content: end;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    rgba(18, 14, 34, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.card-meta {
  display: flex;
  justify-content: space-between;
}

.portfolio-form-card h2,
.portfolio-form-card p {
  margin: 0;
}

.portfolio-form-card h2 {
  max-width: 560px;
  color: #f6f3ed;
  font-size: clamp(1.55rem, 3vw, 2.4rem);
  letter-spacing: 0;
}

.portfolio-form-card p {
  max-width: 540px;
  color: rgba(246, 243, 237, 0.6);
  line-height: 1.6;
}

.portfolio-primary-link {
  width: fit-content;
  margin-top: 8px;
  border: 1px solid rgba(246, 243, 237, 0.18);
  border-radius: 999px;
  padding: 12px 16px;
  background: #f6f3ed;
  color: #080612;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.simple-forms-home {
  display: grid;
  min-height: 100vh;
  padding: 14px;
}

.simple-forms-shell {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  align-content: stretch;
  width: 100%;
  min-height: calc(100vh - 28px);
  gap: clamp(42px, 8vh, 96px);
  margin: 0;
  padding: 22px 24px 18px;
  border: 1px solid rgba(246, 243, 237, 0.08);
  border-radius: 40px;
  background:
    linear-gradient(180deg, rgba(14, 11, 28, 0.9), rgba(8, 7, 16, 0.96)),
    rgba(11, 10, 22, 0.72);
  box-shadow:
    0 44px 140px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.02),
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 -1px 0 rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(24px) saturate(120%);
}

.simple-forms-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 12%),
    radial-gradient(circle at 50% 100%, rgba(101, 76, 188, 0.1), transparent 34%);
  opacity: 0.9;
}

.simple-forms-grid-bg,
.simple-forms-noise,
.simple-forms-spotlight,
.simple-forms-vignette,
.simple-forms-aurora {
  position: absolute;
  pointer-events: none;
}

.simple-forms-grid-bg {
  inset: 0;
  background-image:
    linear-gradient(rgba(246, 243, 237, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 243, 237, 0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.62), transparent 96%);
}

.simple-forms-noise {
  inset: 0;
  opacity: 0.05;
  background-image: radial-gradient(rgba(255, 255, 255, 0.8) 0.6px, transparent 0.6px);
  background-size: 13px 13px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.66), transparent 100%);
}

.simple-forms-spotlight {
  inset: 0;
  background:
    conic-gradient(
      from 208deg at 50% 28%,
      transparent 0deg,
      rgba(255, 255, 255, 0.036) 30deg,
      transparent 58deg,
      transparent 360deg
    ),
    linear-gradient(118deg, transparent 32%, rgba(255, 255, 255, 0.014) 50%, transparent 68%),
    linear-gradient(180deg, rgba(148, 108, 255, 0.018), transparent 42%);
  mix-blend-mode: overlay;
  animation: spotlight-breathe 12s ease-in-out infinite;
}

.simple-forms-vignette {
  inset: 0;
  background: radial-gradient(circle at center, transparent 38%, rgba(5, 5, 12, 0.4) 100%);
}

.simple-forms-aurora {
  border-radius: 999px;
  filter: blur(86px);
  opacity: 0.5;
  animation: orb-float 14s ease-in-out infinite;
}

.simple-forms-aurora-a {
  width: 540px;
  aspect-ratio: 1;
  left: -180px;
  top: -140px;
  background: rgba(178, 120, 255, 0.14);
}

.simple-forms-aurora-b {
  width: 460px;
  aspect-ratio: 1;
  right: -120px;
  top: 90px;
  background: rgba(112, 80, 255, 0.14);
  animation-duration: 18s;
}

.simple-forms-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
}

.simple-forms-brandline {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.simple-forms-brand,
.simple-forms-eyebrow {
  margin: 0;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.simple-forms-brand {
  color: #cfb2ff;
  font-size: 0.86rem;
  font-weight: 800;
  text-shadow: 0 0 18px rgba(160, 126, 255, 0.08);
}

.simple-forms-eyebrow {
  color: rgba(246, 243, 237, 0.56);
  font-size: 0.8rem;
  font-weight: 700;
}

.simple-forms-content {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 100%;
  gap: 28px;
}

.simple-forms-content h1 {
  align-self: start;
  margin: 0;
  max-width: min(100%, 920px);
  font-family: "Syne", "Instrument Sans", sans-serif;
  font-size: clamp(4.2rem, 6.2vw, 7.25rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: 0;
  text-wrap: balance;
  background: linear-gradient(180deg, #f7f3ee 0%, #efe8ff 58%, #d4c1ff 120%);
  background-clip: text;
  color: transparent;
  -webkit-background-clip: text;
}

.simple-forms-header .portfolio-admin-link {
  margin-left: auto;
  border: 1px solid rgba(246, 243, 237, 0.1);
  border-radius: 999px;
  padding: 12px 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 28%),
    rgba(255, 255, 255, 0.018);
  color: rgba(246, 243, 237, 0.66);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.simple-forms-header .portfolio-admin-link:hover {
  border-color: rgba(246, 243, 237, 0.3);
  background: rgba(255, 255, 255, 0.09);
  color: #f6f3ed;
}

.simple-forms-list {
  display: grid;
  align-content: end;
  align-items: end;
  align-self: end;
  width: min(100%, 430px);
  gap: 14px;
}

.simple-form-link {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 148px;
  border: 1px solid rgba(246, 243, 237, 0.08);
  border-radius: 24px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 20%),
    linear-gradient(180deg, rgba(88, 64, 156, 0.06), transparent 44%),
    rgba(255, 255, 255, 0.018);
  color: #f6f3ed;
  font-family: "Syne", "Instrument Sans", sans-serif;
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.12;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.simple-form-link::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 34%);
  pointer-events: none;
}

.simple-form-link::after {
  content: ">";
  display: grid;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  margin-left: 20px;
  place-items: center;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 28%),
    linear-gradient(135deg, #7b55ff 0%, #b77dff 58%, #e0b4ff 100%);
  color: #f8f3ff;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
  box-shadow:
    0 12px 36px rgba(127, 86, 255, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.simple-form-link span {
  position: relative;
  z-index: 1;
  max-width: 18ch;
}

.simple-form-link:hover {
  border-color: rgba(246, 243, 237, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 22%),
    linear-gradient(180deg, rgba(88, 64, 156, 0.08), transparent 44%),
    rgba(255, 255, 255, 0.024);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 24px 62px rgba(0, 0, 0, 0.3);
  transform: translateY(-6px);
}

.admin-header,
.admin-toolbar,
.admin-grid {
  display: flex;
  gap: 16px;
}

.admin-header {
  align-items: end;
  justify-content: space-between;
  margin-bottom: 24px;
}

.admin-toolbar {
  align-items: end;
  margin-bottom: 18px;
}

.admin-toolbar label {
  display: grid;
  gap: 8px;
}

.admin-toolbar select,
.admin-toolbar input {
  min-height: 46px;
  border: 1px solid #c9d1df;
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
}

.admin-grid {
  align-items: start;
}

.table-wrap,
.detail-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.table-wrap {
  flex: 1 1 auto;
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

tbody tr {
  cursor: pointer;
}

tbody tr:hover {
  background: #f8fafc;
}

.detail-panel {
  flex: 0 0 360px;
  padding: 22px;
}

.detail-panel dl {
  margin: 18px 0 0;
}

.detail-panel dt {
  font-weight: 800;
}

.detail-panel dd {
  margin: 4px 0 14px;
  color: var(--muted);
}

@media (max-width: 920px) {
  .portfolio-shell {
    border-radius: 20px;
    padding: 24px 18px 18px;
  }

  .portfolio-nav {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px 14px;
  }

  .portfolio-admin-link {
    margin-left: 0;
  }

  .portfolio-hero {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 72px 0 48px;
  }

  .simple-forms-shell {
    min-height: calc(100vh - 24px);
    gap: 34px;
    padding: 20px;
    border-radius: 30px;
  }

  .simple-forms-header {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .simple-forms-header .portfolio-admin-link {
    margin-top: 0;
    margin-left: auto;
  }

  .simple-forms-brandline {
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  .simple-forms-content h1 {
    max-width: none;
    font-size: clamp(3rem, 13vw, 5rem);
  }

  .simple-forms-list {
    align-self: stretch;
    width: 100%;
  }

  .simple-form-link {
    min-height: 120px;
  }

  .site-header,
  .layout {
    grid-template-columns: 1fr;
  }

  .summary-panel {
    position: static;
  }

  .quiz-form-page .site-header,
  .quiz-form-page .layout {
    grid-template-columns: 1fr;
  }

  .quiz-form-page .site-header {
    padding-top: 20px;
  }

  .quiz-form-page h1 {
    font-size: clamp(2.45rem, 8.5vw, 3.5rem);
  }

  .quiz-topbar {
    width: 100%;
    padding: 0 18px;
  }

  .quiz-topbar .simple-forms-eyebrow {
    max-width: 130px;
  }

  .admin-header,
  .admin-toolbar,
  .admin-grid {
    flex-direction: column;
    align-items: stretch;
  }

  .home-admin-link {
    position: static;
    width: fit-content;
    margin-left: auto;
    margin-bottom: 24px;
  }

  .home-hero {
    padding-right: 0;
  }

  .detail-panel {
    flex-basis: auto;
  }

  h1 {
    font-size: 2.75rem;
  }
}

@media (max-width: 640px) {
  .site-header {
    width: calc(100% - 24px);
    padding-top: 32px;
  }

  .layout {
    width: calc(100% - 24px);
  }

  .form-section {
    padding: 20px;
  }

  h1 {
    font-size: 2.05rem;
    line-height: 1.08;
  }

  h2 {
    font-size: 1.32rem;
  }

  .intro {
    max-width: 340px;
    font-size: 0.98rem;
  }

  .status-panel,
  .form-section,
  .summary-panel {
    max-width: 100%;
  }

  .field-grid,
  .option-grid,
  .idea-list,
  .segmented {
    grid-template-columns: 1fr;
  }

  .section-heading {
    gap: 12px;
  }

  .actions button,
  .summary-actions button {
    flex: 1 1 140px;
  }

  .simple-forms-home {
    padding: 12px;
  }

  .simple-forms-shell {
    min-height: calc(100vh - 24px);
    border-radius: 24px;
    padding: 18px;
  }

  .simple-forms-header {
    gap: 18px;
  }

  .simple-forms-eyebrow {
    font-size: 0.72rem;
  }

  .quiz-form-page .site-header > div {
    min-height: auto;
  }

  .quiz-form-page h1 {
    font-size: clamp(2.35rem, 10vw, 3.1rem);
    line-height: 0.96;
  }

  .simple-form-link {
    min-height: 112px;
    border-radius: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .simple-forms-aurora,
  .simple-forms-spotlight {
    animation: none !important;
  }
}
