:root {
  color-scheme: light;
  --bg: #f7fbfb;
  --panel: rgba(255, 255, 255, 0.68);
  --panel-strong: rgba(255, 255, 255, 0.86);
  --line: rgba(31, 42, 55, 0.12);
  --text: #17202a;
  --muted: #667085;
  --soft: #8a94a6;
  --pink: #ec4dcc;
  --yellow: #f2d847;
  --mint: #79ead3;
  --blue: #4b7dff;
  --success: #0f9f6e;
  --warn: #b7791f;
  --danger: #c2413b;
  --shadow: 0 24px 80px rgba(31, 42, 55, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  background:
    radial-gradient(circle at 12% 10%, rgba(236, 77, 204, 0.18), transparent 30%),
    radial-gradient(circle at 82% 8%, rgba(121, 234, 211, 0.22), transparent 28%),
    linear-gradient(135deg, #fbfefe 0%, var(--bg) 52%, #fff9ef 100%);
  color: var(--text);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-shell {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.glow {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
  pointer-events: none;
}

.glow-a {
  left: -110px;
  top: 120px;
  background: linear-gradient(135deg, var(--pink), var(--yellow));
}

.glow-b {
  right: -120px;
  bottom: 100px;
  background: linear-gradient(135deg, var(--mint), #c8f5ff);
}

.shell {
  width: 100%;
  margin: 0;
  padding: 18px 22px 42px;
  position: relative;
  z-index: 1;
}

.topbar,
.auth-card,
.glass,
.module-card,
.admin-panel,
.placeholder-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.topbar {
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  position: sticky;
  top: 14px;
  z-index: 5;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 12px;
  background: white;
}

.brand-title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.1;
}

.brand-subtitle {
  margin-top: 3px;
  font-size: 12px;
  color: var(--muted);
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.profile-menu {
  position: relative;
}

.avatar-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #111827;
  background: linear-gradient(135deg, rgba(236, 77, 204, 0.3), rgba(242, 216, 71, 0.28), rgba(121, 234, 211, 0.42));
  font-weight: 850;
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 20;
  width: min(280px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.profile-summary {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}

.profile-summary strong,
.profile-summary span {
  display: block;
}

.profile-summary span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.avatar-large {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(236, 77, 204, 0.3), rgba(121, 234, 211, 0.42));
  font-weight: 850;
}

.profile-item {
  width: 100%;
  min-height: 38px;
  border: 0;
  border-radius: 10px;
  padding: 0 10px;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.profile-item:hover {
  background: rgba(31, 42, 55, 0.06);
}

.profile-item.danger {
  color: var(--danger);
}

.button,
.ghost-button,
.icon-button {
  border: 1px solid var(--line);
  border-radius: 12px;
  min-height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.72);
}

.button.primary {
  color: #111827;
  border-color: rgba(236, 77, 204, 0.18);
  background: linear-gradient(135deg, rgba(236, 77, 204, 0.22), rgba(242, 216, 71, 0.25), rgba(121, 234, 211, 0.28));
}

.button:disabled,
.ghost-button:disabled {
  cursor: not-allowed;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.44);
}

.icon {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.hero {
  padding: 40px 6px 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.headline {
  margin: 0;
  font-size: clamp(36px, 5.2vw, 64px);
  line-height: 1;
  letter-spacing: 0;
}

.lead {
  margin: 16px 0 0;
  max-width: 920px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.profile-card {
  padding: 18px;
  border-radius: 18px;
}

.profile-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.profile-row:last-child {
  border-bottom: 0;
}

.label {
  font-size: 13px;
  color: var(--muted);
}

.value {
  font-weight: 700;
  text-align: right;
}

.section-title {
  margin: 26px 0 12px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.section-title h2 {
  margin: 0;
  font-size: 22px;
}

.section-title p {
  margin: 5px 0 0;
  color: var(--muted);
}

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.module-card {
  min-height: 232px;
  border-radius: 18px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.module-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(236, 77, 204, 0.12), rgba(242, 216, 71, 0.08), rgba(121, 234, 211, 0.14));
  opacity: 0.85;
  pointer-events: none;
}

.module-card > * {
  position: relative;
}

.module-card.span-third {
  grid-column: span 4;
}

.module-card.span-half {
  grid-column: span 6;
}

.module-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.module-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.7);
  font-size: 22px;
}

.badge {
  align-self: flex-start;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  color: #24313e;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
  white-space: nowrap;
}

.badge.success {
  color: var(--success);
}

.badge.warn {
  color: var(--warn);
}

.badge.danger {
  color: var(--danger);
}

.module-card h3 {
  margin: 18px 0 9px;
  font-size: 24px;
}

.module-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.module-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.auth-layout {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
}

.auth-card {
  width: min(980px, 100%);
  border-radius: 22px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 420px;
}

.auth-intro {
  padding: 42px;
  background: linear-gradient(135deg, rgba(236, 77, 204, 0.16), rgba(242, 216, 71, 0.16), rgba(121, 234, 211, 0.22));
}

.auth-intro img {
  width: 170px;
  height: auto;
}

.auth-intro h1 {
  margin: 36px 0 12px;
  font-size: 44px;
  line-height: 1.06;
}

.auth-intro p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.auth-form {
  padding: 36px;
  background: var(--panel-strong);
}

.auth-form h2 {
  margin: 0 0 20px;
  font-size: 26px;
}

.form-grid {
  display: grid;
  gap: 14px;
}

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

.field span {
  color: var(--muted);
  font-size: 13px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
  color: var(--text);
  padding: 10px 12px;
  outline: none;
}

.field textarea {
  min-height: 84px;
  resize: vertical;
}

.form-footer {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.link-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: #305ccf;
}

.message {
  margin-top: 14px;
  min-height: 20px;
  color: var(--danger);
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.admin-panel {
  border-radius: 18px;
  padding: 18px;
}

.admin-panel.span-2 {
  grid-column: span 2;
}

.admin-panel.span-3 {
  grid-column: span 3;
}

.admin-panel.span-6 {
  grid-column: span 6;
}

.admin-panel h3 {
  margin: 0 0 12px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  font-size: 14px;
}

th {
  color: var(--muted);
  font-weight: 700;
}

td select,
td input {
  min-height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
  padding: 6px 8px;
}

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.tab {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.64);
  border-radius: 999px;
  padding: 9px 14px;
}

.tab.active {
  background: rgba(121, 234, 211, 0.28);
}

.placeholder-panel {
  border-radius: 20px;
  padding: 32px;
  margin-top: 20px;
}

.placeholder-panel h1 {
  margin: 0 0 10px;
  font-size: 34px;
}

.placeholder-panel p {
  color: var(--muted);
  line-height: 1.8;
}

.empty-zone {
  min-height: 300px;
  margin-top: 20px;
  border-radius: 18px;
  border: 1px dashed rgba(31, 42, 55, 0.2);
  background: rgba(255, 255, 255, 0.36);
}

.empty-zone.compact {
  min-height: 180px;
}

.selection-hero,
.selection-sidebar,
.selection-panel,
.selection-create,
.selection-filters,
.record-card,
.score-card,
.supply-field-card,
.kpi-card {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.selection-hero {
  margin-top: 20px;
  border-radius: 20px;
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 18px;
  align-items: end;
  overflow: hidden;
  position: relative;
}

.selection-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(236, 77, 204, 0.12), rgba(242, 216, 71, 0.12), rgba(121, 234, 211, 0.18));
  pointer-events: none;
}

.selection-hero > * {
  position: relative;
}

.selection-hero h1 {
  margin: 12px 0 8px;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1;
  letter-spacing: 0;
}

.selection-hero p {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.75;
}

.selection-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.kpi-card {
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.52);
}

.kpi-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.kpi-card strong {
  display: block;
  margin-top: 6px;
  font-size: 28px;
}

.selection-layout {
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(210px, 260px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.selection-sidebar {
  border-radius: 18px;
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  position: sticky;
  top: 92px;
  min-width: 0;
  overflow: hidden;
}

.selection-menu {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  overflow: hidden;
}

.selection-menu-item {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.52);
  padding: 10px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  text-align: left;
  color: var(--text);
  overflow: hidden;
}

.selection-menu-item.active {
  border-color: rgba(236, 77, 204, 0.34);
  background: linear-gradient(135deg, rgba(236, 77, 204, 0.13), rgba(242, 216, 71, 0.12), rgba(121, 234, 211, 0.2));
}

.selection-menu-item strong,
.selection-menu-item small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.selection-menu-item strong {
  font-size: 14px;
  line-height: 1.25;
  white-space: nowrap;
}

.selection-menu-item small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
  white-space: nowrap;
}

.selection-menu-item em {
  min-width: 24px;
  min-height: 24px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.selection-menu-icon {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.72);
  font-weight: 850;
}

.selection-menu-item > span:not(.selection-menu-icon) {
  min-width: 0;
}

.selection-stage-products {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  min-width: 0;
}

.selection-rail-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.selection-rail-title span {
  color: var(--muted);
  font-size: 12px;
}

.selection-create,
.selection-filters {
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.52);
}

.selection-create.wide {
  box-shadow: none;
}

.selection-workbench {
  display: grid;
  gap: 16px;
}

.selection-section-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.selection-section-head h2 {
  margin: 0;
}

.selection-section-head p {
  margin: 6px 0 0;
  color: var(--muted);
}

.selection-filters.horizontal {
  display: grid;
  grid-template-columns: minmax(140px, 180px) minmax(180px, 220px) minmax(220px, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.selection-create h3,
.selection-form h3 {
  margin: 0 0 12px;
}

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

.selection-list {
  display: grid;
  gap: 8px;
}

.selection-list.list-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compact-list .selection-product {
  min-height: 68px;
}

.selection-product {
  width: 100%;
  min-height: 76px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.56);
  padding: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  text-align: left;
}

.selection-product.active {
  border-color: rgba(236, 77, 204, 0.35);
  background: linear-gradient(135deg, rgba(236, 77, 204, 0.12), rgba(121, 234, 211, 0.18));
}

.selection-product strong,
.selection-product small {
  display: block;
}

.selection-product small {
  margin-top: 5px;
  color: var(--muted);
}

.score-pill {
  flex: 0 0 auto;
  min-width: 68px;
  border-radius: 999px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  text-align: center;
  font-size: 12px;
  color: var(--warn);
}

.score-pill.pass {
  color: var(--success);
}

.selection-panel {
  border-radius: 20px;
  padding: 18px;
}

.selection-panel.empty {
  min-height: 420px;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.selection-panel.empty p,
.selection-empty span {
  color: var(--muted);
}

.selection-detail-head,
.report-actions,
.record-title,
.score-summary {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.selection-detail-head h2 {
  margin: 12px 0 6px;
  font-size: 30px;
}

.selection-detail-head p {
  margin: 0;
  color: var(--muted);
}

.selection-actions {
  display: flex;
  justify-content: flex-end;
}

.step-rail {
  margin: 18px 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.step {
  min-height: 38px;
  border-radius: 999px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.48);
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

.step.active {
  color: #18332e;
  background: rgba(121, 234, 211, 0.28);
}

.stage-context {
  margin: 0 0 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.48);
}

.stage-context p {
  margin: 8px 0 0;
  color: var(--muted);
}

.selection-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.selection-form,
.selection-stack {
  display: grid;
  gap: 14px;
}

.form-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.score-summary {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.52);
  align-items: center;
}

.score-summary strong {
  display: block;
  margin-top: 4px;
  font-size: 30px;
}

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

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

.score-card {
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.54);
}

.supply-field-card {
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.54);
}

.score-card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.score-card-head span {
  color: var(--muted);
  font-size: 13px;
}

.score-card input,
.score-card textarea,
.supply-field-card textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  padding: 10px 12px;
}

.score-card textarea,
.supply-field-card textarea {
  min-height: 76px;
  margin-top: 8px;
  resize: vertical;
}

.inline-field {
  min-width: 260px;
}

.selection-records {
  display: grid;
  gap: 12px;
}

.record-card {
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.54);
}

.record-title {
  margin-bottom: 12px;
}

.record-title span {
  color: var(--muted);
}

.handoff-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.selection-empty {
  border: 1px dashed rgba(31, 42, 55, 0.2);
  border-radius: 16px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.36);
}

.selection-empty strong,
.selection-empty span {
  display: block;
}

.selection-empty span {
  margin-top: 5px;
}

.report-body {
  min-height: 360px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  line-height: 1.6;
}

@media (max-width: 920px) {
  .topbar,
  .hero,
  .auth-card,
  .selection-hero {
    grid-template-columns: 1fr;
  }

  .selection-layout {
    grid-template-columns: minmax(196px, 224px) minmax(0, 1fr);
    gap: 12px;
  }

  .selection-sidebar {
    top: 76px;
    padding: 10px;
  }

  .selection-menu-item {
    grid-template-columns: 24px minmax(0, 1fr) auto;
    min-height: 54px;
    padding: 9px;
  }

  .selection-menu-icon {
    width: 24px;
    height: 24px;
  }

  .selection-menu-item strong {
    font-size: 13px;
  }

  .selection-menu-item small {
    font-size: 10px;
  }

  .form-grid.three,
  .score-grid,
  .supply-template-grid,
  .selection-list.list-grid,
  .selection-filters.horizontal {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .step-rail {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .topbar {
    align-items: flex-start;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
  }

  .hero {
    padding-top: 24px;
  }

  .module-card.span-third,
  .module-card.span-half,
  .admin-panel.span-2,
  .admin-panel.span-3,
  .admin-panel.span-6 {
    grid-column: 1 / -1;
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }

  .auth-intro {
    padding: 30px;
  }

  .auth-form {
    padding: 28px;
  }
}

@media (max-width: 620px) {
  .selection-layout {
    grid-template-columns: 1fr;
  }

  .selection-sidebar {
    position: static;
  }

  .selection-menu {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
  }

  .selection-menu-item {
    flex: 0 0 204px;
    scroll-snap-align: start;
  }

  .selection-stage-products {
    display: none;
  }

  .form-grid.three,
  .score-grid,
  .supply-template-grid,
  .selection-list.list-grid,
  .selection-filters.horizontal {
    grid-template-columns: 1fr;
  }

  .step-rail {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .shell {
    width: 100%;
    padding: 10px 10px 30px;
  }

  .brand-title {
    font-size: 16px;
  }

  .button,
  .ghost-button {
    width: auto;
  }

  .headline {
    font-size: 34px;
  }

  .lead {
    font-size: 15px;
  }

  .auth-intro h1 {
    font-size: 34px;
  }
}
