:root {
  color-scheme: dark;
  --ink: #f5f2fa;
  --muted: #9c98a8;
  --faint: #6d6879;
  --night: #0b0a10;
  --panel: #121117;
  --panel-soft: #17151e;
  --line: rgba(255, 255, 255, 0.1);
  --violet: #a98afa;
  --violet-bright: #c9b7ff;
  --violet-deep: #5e42b7;
  --acid: #d9ff8c;
  --danger: #ffbd80;
  --display: "Space Grotesk", sans-serif;
  --body: "Manrope", sans-serif;
  --mono: "DM Mono", monospace;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 84% 12%, rgba(121, 82, 221, 0.13), transparent 24rem),
    var(--night);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--violet-bright);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.grain {
  position: fixed;
  z-index: 100;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
}

.brand,
.header-actions,
.hub-link {
  display: flex;
  align-items: center;
}

.brand {
  gap: 9px;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.brand-mark {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  font-size: 13px;
}

.edition {
  display: none;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.header-actions {
  gap: 13px;
}

.text-button,
.clear-button,
.filter-button,
.inline-link {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
}

.hub-link {
  min-height: 42px;
  gap: 12px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  transition: border-color 180ms, background 180ms;
}

.hub-link:hover {
  border-color: rgba(169, 138, 250, 0.6);
  background: rgba(169, 138, 250, 0.08);
}

.view {
  display: none;
}

.view.is-active {
  display: block;
  animation: view-in 500ms ease both;
}

@keyframes view-in {
  from { opacity: 0; transform: translateY(10px); }
}

.intro {
  position: relative;
  min-height: calc(100vh - 74px);
  padding: 54px 20px 82px;
}

.intro-copy {
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-index {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 0 5px rgba(217, 255, 140, 0.07);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  50% { box-shadow: 0 0 0 9px rgba(217, 255, 140, 0); }
}

.intro h1 {
  max-width: 750px;
  margin: 28px 0 23px;
  font-family: var(--display);
  font-size: clamp(48px, 14vw, 122px);
  font-weight: 600;
  line-height: 0.87;
  letter-spacing: -0.075em;
}

h1 em,
h2 em {
  color: var(--violet-bright);
  font-family: Georgia, serif;
  font-weight: 400;
}

.intro-lead {
  max-width: 470px;
  margin: 0;
  color: #aaa6b4;
  font-size: 14px;
  line-height: 1.65;
}

.intro-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 31px;
}

.primary-button,
.secondary-button {
  min-height: 50px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition: transform 180ms, background 180ms, border-color 180ms;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 0 8px 0 21px;
  border: 0;
  background: var(--ink);
  color: #0c0b10;
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
}

.button-arrow {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--violet);
}

.micro-copy {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.6;
  letter-spacing: 0.08em;
}

.intro-visual {
  position: relative;
  height: 410px;
  margin: 25px -20px -30px;
  overflow: hidden;
}

.machine {
  position: absolute;
  top: 80px;
  left: 50%;
  width: min(69vw, 310px);
  aspect-ratio: 0.82;
  padding: 14px;
  transform: translateX(-43%) rotate(5deg);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(44, 40, 55, 0.96), rgba(15, 14, 20, 0.98));
  box-shadow: 0 40px 90px #050407, inset 0 0 0 4px rgba(255, 255, 255, 0.025);
}

.machine-topline,
.machine-footer {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.machine-topline {
  margin: 1px 2px 11px;
  color: #8a8493;
}

.machine-window {
  position: relative;
  height: calc(100% - 45px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background:
    linear-gradient(115deg, transparent 35%, rgba(192, 172, 255, 0.08)),
    #0b0a0f;
}

.machine-window::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 48%, rgba(255, 255, 255, 0.07) 49%, transparent 63%);
  content: "";
}

.fan {
  position: absolute;
  right: 15%;
  width: 80px;
  height: 80px;
  border: 12px dotted rgba(171, 141, 250, 0.38);
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(157, 119, 255, 0.16), inset 0 0 16px rgba(157, 119, 255, 0.22);
  animation: spin 18s linear infinite;
}

.fan::after {
  position: absolute;
  inset: 20px;
  border: 1px solid var(--violet);
  border-radius: 50%;
  content: "";
}

.fan-a { top: 24px; }
.fan-b { top: 117px; }

@keyframes spin {
  to { transform: rotate(360deg); }
}

.core-chip {
  position: absolute;
  top: 39%;
  left: 18%;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: #191621;
  color: var(--violet-bright);
  font-family: var(--mono);
  font-size: 10px;
}

.gpu-line {
  position: absolute;
  bottom: 35px;
  left: 10%;
  width: 74%;
  height: 40px;
  border: 1px solid #514760;
  background: #16131b;
}

.gpu-line span {
  display: inline-block;
  width: 24px;
  height: 24px;
  margin: 7px 2px 0 8px;
  border: 1px dashed #5c4f6d;
  border-radius: 50%;
}

.machine-footer {
  align-items: center;
  margin: 10px 2px;
  color: #5d5866;
}

.signal {
  color: var(--acid);
  letter-spacing: 0.2em;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
}

.orb-one {
  top: 50px;
  right: -120px;
  width: 300px;
  height: 300px;
  background: rgba(118, 75, 222, 0.22);
}

.orb-two {
  bottom: 0;
  left: -130px;
  width: 240px;
  height: 240px;
  background: rgba(87, 68, 136, 0.12);
}

.visual-note {
  position: absolute;
  color: #77717f;
  font-family: var(--mono);
  font-size: 7px;
  line-height: 1.5;
  letter-spacing: 0.14em;
}

.note-one { top: 42px; left: 20px; }
.note-two { right: 20px; bottom: 50px; text-align: right; }

.scroll-cue {
  position: absolute;
  bottom: 22px;
  left: 20px;
  display: flex;
  gap: 13px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  text-transform: uppercase;
}

.builder {
  padding: 34px 20px 80px;
}

.builder-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  max-width: 1440px;
  margin: 0 auto 29px;
}

.builder-heading h2 {
  margin: 13px 0 0;
  font-family: var(--display);
  font-size: clamp(31px, 7vw, 58px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.build-pill {
  display: flex;
  min-height: 49px;
  align-items: center;
  gap: 9px;
  padding: 0 15px;
  border: 1px solid rgba(169, 138, 250, 0.4);
  border-radius: 999px;
  background: rgba(169, 138, 250, 0.1);
  cursor: pointer;
  color: #bbb4cc;
  font-size: 10px;
}

.build-pill strong {
  display: none;
  color: var(--ink);
}

.build-pill-icon {
  color: var(--violet-bright);
  font-size: 16px;
}

.stepper-shell {
  max-width: 1440px;
  margin: 0 auto 35px;
}

.category-stepper {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 1px 12px;
  scrollbar-width: none;
}

.category-stepper::-webkit-scrollbar {
  display: none;
}

.category-tab {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--faint);
  cursor: pointer;
  font-size: 10px;
  white-space: nowrap;
  transition: 180ms ease;
}

.category-tab:hover {
  color: var(--ink);
}

.category-tab.is-active {
  border-color: var(--violet);
  background: var(--violet);
  color: #100d17;
  font-weight: 700;
}

.category-tab.is-complete::before {
  margin-right: 7px;
  content: "✓";
}

.stepper-progress {
  height: 1px;
  background: var(--line);
}

.stepper-progress span {
  display: block;
  width: 9%;
  height: 100%;
  background: var(--violet);
  transition: width 300ms ease;
}

.builder-layout {
  max-width: 1440px;
  margin: auto;
}

.catalog-toolbar,
.build-panel-header,
.catalog-meta,
.total-line,
.build-actions,
.catalog-nav,
.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.catalog-toolbar {
  margin-bottom: 18px;
}

.catalog-toolbar h3,
.build-panel h3 {
  margin: 5px 0 0;
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: -0.04em;
}

.catalog-meta {
  gap: 10px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
}

.filter-button {
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

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

.loading-card {
  grid-column: 1 / -1;
  min-height: 250px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
}

.loading-card span {
  margin-left: 10px;
  color: var(--violet);
  letter-spacing: 0.3em;
}

.component-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  cursor: pointer;
  text-align: left;
  transition: border-color 180ms, transform 180ms, background 180ms;
}

.component-card:hover {
  transform: translateY(-3px);
  border-color: rgba(169, 138, 250, 0.55);
  background: #17141d;
}

.component-card.is-selected {
  border-color: var(--violet);
  box-shadow: inset 0 0 0 1px var(--violet);
}

.component-card.is-selected::after {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--violet);
  color: #141019;
  content: "✓";
  font-size: 10px;
  font-weight: 800;
}

.card-art {
  position: relative;
  display: grid;
  height: 112px;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 45% 45%, rgba(169, 138, 250, 0.18), transparent 37%),
    linear-gradient(135deg, #16131d, #0c0b10);
}

.card-number {
  position: absolute;
  top: 10px;
  left: 11px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 7px;
}

.component-glyph {
  position: relative;
  width: 65px;
  height: 47px;
  transform: rotate(-6deg);
  border: 1px solid rgba(197, 178, 255, 0.65);
  border-radius: 4px;
  background: linear-gradient(145deg, rgba(169, 138, 250, 0.25), rgba(20, 17, 27, 0.9));
  box-shadow: 8px 12px 24px rgba(0, 0, 0, 0.45);
}

.component-glyph::before,
.component-glyph::after {
  position: absolute;
  border: 1px solid rgba(217, 255, 140, 0.5);
  border-radius: 50%;
  content: "";
}

.component-glyph::before {
  top: 10px;
  left: 9px;
  width: 21px;
  height: 21px;
}

.component-glyph::after {
  top: 13px;
  right: 9px;
  width: 15px;
  height: 15px;
}

.glyph-cpu,
.glyph-ram,
.glyph-storage {
  width: 48px;
  height: 48px;
}

.glyph-cpu::before {
  inset: 8px;
  width: auto;
  height: auto;
  border-radius: 2px;
}

.glyph-cpu::after { display: none; }

.glyph-ram {
  width: 76px;
  height: 28px;
}

.glyph-ram::before {
  top: 7px;
  left: 8px;
  width: 10px;
  height: 10px;
  border-radius: 1px;
  box-shadow: 16px 0 rgba(169, 138, 250, 0.2), 32px 0 rgba(169, 138, 250, 0.2), 48px 0 rgba(169, 138, 250, 0.2);
}

.glyph-ram::after { display: none; }

.glyph-cooling {
  width: 55px;
  height: 55px;
  border-radius: 50%;
}

.glyph-cooling::before {
  inset: 8px;
  width: auto;
  height: auto;
}

.glyph-cooling::after {
  inset: 18px;
  width: auto;
  height: auto;
}

.card-copy {
  min-height: 139px;
  padding: 13px;
}

.card-brand {
  margin: 0 0 7px;
  color: var(--violet-bright);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card-name {
  min-height: 49px;
  margin: 0;
  overflow: hidden;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
}

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

.card-price {
  font-family: var(--mono);
  font-size: 11px;
  white-space: nowrap;
}

.card-add {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--violet-bright);
  font-size: 18px;
}

.catalog-nav {
  gap: 9px;
  margin-top: 22px;
}

.secondary-button {
  padding: 0 19px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
}

.primary-button.compact {
  gap: 18px;
  padding-right: 20px;
}

.build-panel {
  position: fixed;
  z-index: 60;
  inset: auto 0 0;
  max-height: 85vh;
  overflow-y: auto;
  padding: 22px 20px max(22px, env(safe-area-inset-bottom));
  border: 1px solid var(--line);
  border-radius: 22px 22px 0 0;
  background: #111016;
  box-shadow: 0 -30px 80px rgba(0, 0, 0, 0.55);
  transform: translateY(105%);
  visibility: hidden;
  transition: transform 300ms ease, visibility 300ms;
}

.build-panel.is-open {
  transform: translateY(0);
  visibility: visible;
}

.close-build {
  display: grid;
}

.clear-button {
  display: none;
}

.icon-button {
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
  font-size: 22px;
}

.compatibility {
  display: flex;
  gap: 11px;
  margin-top: 18px;
  padding: 13px;
  border: 1px solid rgba(255, 189, 128, 0.25);
  border-radius: 11px;
  background: rgba(255, 189, 128, 0.06);
}

.warning-icon {
  display: grid;
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--danger);
  color: #23170e;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
}

.compatibility strong {
  color: #ffd5ae;
  font-size: 10px;
}

.compatibility p {
  margin: 3px 0 0;
  color: #a99380;
  font-size: 9px;
  line-height: 1.5;
}

.build-list {
  margin-top: 20px;
}

.empty-build {
  display: grid;
  min-height: 230px;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.13);
  border-radius: 13px;
  color: var(--faint);
  text-align: center;
}

.empty-build-visual {
  display: grid;
  width: 62px;
  height: 62px;
  margin: 0 auto 15px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--violet);
  font-size: 26px;
}

.empty-build strong {
  display: block;
  color: var(--muted);
  font-family: var(--display);
  font-size: 14px;
}

.empty-build p {
  max-width: 180px;
  margin: 7px auto 0;
  font-size: 10px;
  line-height: 1.5;
}

.build-item {
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.build-item-icon {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border-radius: 8px;
  background: rgba(169, 138, 250, 0.09);
  color: var(--violet-bright);
  font-family: var(--mono);
  font-size: 7px;
  text-transform: uppercase;
}

.build-item-copy {
  min-width: 0;
}

.build-item-category,
.build-item-name,
.build-item-price {
  margin: 0;
}

.build-item-category {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 7px;
  text-transform: uppercase;
}

.build-item-name {
  overflow: hidden;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.build-item-price {
  margin-top: 3px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
}

.remove-item {
  width: 35px;
  height: 35px;
  border: 0;
  background: transparent;
  color: var(--faint);
  cursor: pointer;
  font-size: 18px;
}

.build-total {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.total-line span {
  color: var(--muted);
  font-size: 11px;
}

.total-line strong {
  font-family: var(--display);
  font-size: 25px;
  letter-spacing: -0.04em;
}

.build-total > p {
  margin: 5px 0 0;
  color: var(--faint);
  font-size: 8px;
  text-align: right;
}

.build-actions {
  gap: 8px;
  margin-top: 18px;
}

.save-button {
  flex: 1;
}

.share-button {
  min-width: 95px;
}

.scrim {
  position: fixed;
  z-index: 50;
  inset: 0;
  background: rgba(4, 3, 7, 0.72);
  backdrop-filter: blur(5px);
}

dialog {
  color: var(--ink);
}

dialog::backdrop {
  background: rgba(4, 3, 7, 0.8);
  backdrop-filter: blur(6px);
}

.detail-modal,
.auth-modal {
  width: calc(100% - 24px);
  max-width: 920px;
  max-height: calc(100vh - 24px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 19px;
  background: #111016;
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.7);
}

.modal-close {
  position: absolute;
  z-index: 3;
  top: 13px;
  right: 13px;
  display: grid;
  background: rgba(12, 10, 16, 0.75);
}

.detail-art {
  position: relative;
  display: grid;
  min-height: 260px;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle, rgba(169, 138, 250, 0.24), transparent 40%),
    linear-gradient(145deg, #221b31, #0c0b10);
}

.detail-art::before {
  position: absolute;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  content: "";
}

.detail-art .component-glyph {
  width: 130px;
  height: 92px;
  transform: rotate(-8deg) scale(1.05);
}

.detail-category,
.detail-stock {
  position: absolute;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.detail-category {
  top: 20px;
  left: 20px;
  color: var(--violet-bright);
}

.detail-stock {
  right: 20px;
  bottom: 18px;
  color: var(--acid);
}

.detail-copy {
  padding: 29px 22px 25px;
}

.detail-brand {
  margin: 19px 0 6px;
  color: var(--violet-bright);
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
}

.detail-copy h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(28px, 7vw, 46px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.detail-price {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 18px;
}

.detail-description {
  margin: 20px 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 0 0 25px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.spec-grid div {
  min-width: 0;
  padding: 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.spec-grid dt {
  overflow: hidden;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 7px;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.spec-grid dd {
  overflow: hidden;
  margin: 5px 0 0;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-add {
  width: 100%;
}

.auth-side {
  display: none;
}

.auth-form-wrap {
  padding: 26px 22px 30px;
}

.auth-tabs {
  display: flex;
  gap: 4px;
  width: fit-content;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.auth-tabs button {
  min-height: 38px;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
}

.auth-tabs button.is-active {
  background: var(--violet);
  color: #100d17;
  font-weight: 700;
}

.auth-heading {
  margin: 38px 0 28px;
}

.auth-heading h2 {
  max-width: 440px;
  margin: 10px 0 0;
  font-family: var(--display);
  font-size: clamp(28px, 7vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.auth-form > label:not(.check-label) {
  display: block;
  margin-bottom: 17px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-form input:not([type="checkbox"]) {
  width: 100%;
  height: 49px;
  margin-top: 8px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0c0b10;
  color: var(--ink);
  font-family: var(--body);
  font-size: 12px;
}

.auth-form input::placeholder {
  color: #55515e;
}

.check-label {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 9px;
}

.check-label input {
  accent-color: var(--violet);
}

.inline-link {
  padding: 0;
  color: var(--violet-bright);
  font-size: 9px;
}

.auth-form .primary-button {
  width: 100%;
  margin-top: 10px;
}

.form-note {
  margin: 14px 0 0;
  color: var(--faint);
  font-size: 8px;
  text-align: center;
}

.toast-region {
  position: fixed;
  z-index: 90;
  right: 12px;
  bottom: 12px;
  left: 12px;
  pointer-events: none;
}

.toast {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 11px;
  align-items: center;
  max-width: 355px;
  margin: 8px 0 0 auto;
  padding: 13px;
  border: 1px solid rgba(169, 138, 250, 0.33);
  border-radius: 13px;
  background: rgba(24, 21, 31, 0.97);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: 250ms ease;
}

.toast.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.toast-icon {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 50%;
  background: var(--violet);
  color: #17121e;
  font-size: 12px;
  font-weight: 700;
}

.toast strong {
  font-size: 10px;
}

.toast p {
  margin: 3px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
}

.toast button {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: var(--faint);
  cursor: pointer;
}

@media (min-width: 700px) {
  .site-header {
    height: 82px;
    padding: 0 38px;
  }

  .edition {
    display: inline;
  }

  .header-actions {
    gap: 25px;
  }

  .hub-link {
    padding: 0 19px;
  }

  .intro {
    min-height: calc(100vh - 82px);
    padding: 75px 6vw 90px;
  }

  .intro-lead {
    font-size: 15px;
  }

  .intro-visual {
    position: absolute;
    top: 0;
    right: 0;
    width: 48%;
    height: 100%;
    margin: 0;
  }

  .machine {
    top: 19%;
    width: min(33vw, 360px);
  }

  .note-one { top: 13%; }
  .note-two { bottom: 15%; }
  .scroll-cue { left: 6vw; }

  .builder {
    padding: 48px 38px 90px;
  }

  .build-pill strong {
    display: inline;
    margin-left: 5px;
  }

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

  .card-art {
    height: 145px;
  }

  .card-copy {
    min-height: 141px;
    padding: 15px;
  }

  .card-name {
    min-height: 42px;
    font-size: 14px;
  }

  .detail-modal[open] {
    display: grid;
    grid-template-columns: 45% 55%;
  }

  .detail-art {
    min-height: 570px;
  }

  .detail-copy {
    padding: 55px 45px 35px;
  }

  .auth-modal[open] {
    display: grid;
    grid-template-columns: 38% 62%;
    min-height: 620px;
  }

  .auth-side {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px;
    background:
      radial-gradient(circle at 50% 45%, rgba(174, 145, 255, 0.25), transparent 35%),
      linear-gradient(155deg, #261d37, #0c0b10 80%);
  }

  .auth-side > div p {
    margin: 0 0 10px;
    font-family: var(--display);
    font-size: 30px;
    font-weight: 600;
    line-height: 0.95;
    letter-spacing: -0.05em;
  }

  .auth-side > div span {
    color: var(--violet-bright);
    font-family: var(--mono);
    font-size: 8px;
  }

  .auth-form-wrap {
    padding: 35px 50px;
  }
}

@media (min-width: 1080px) {
  .site-header {
    padding: 0 4.5vw;
  }

  .intro {
    display: none;
    padding-left: 8vw;
  }

  .intro.view.is-active {
    display: block;
  }

  .intro-copy {
    padding-top: 2vh;
  }

  .intro h1 {
    margin-top: 4vh;
    font-size: clamp(78px, 7.7vw, 122px);
  }

  .intro-visual {
    width: 50%;
  }

  .machine {
    top: 12%;
    width: min(31vw, 430px);
  }

  .builder {
    padding: 52px 4.5vw 90px;
  }

  .stepper-shell {
    margin-bottom: 44px;
  }

  .builder-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 35px;
    align-items: start;
  }

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

  .card-art {
    height: 165px;
  }

  .build-pill {
    display: none;
  }

  .build-panel {
    position: sticky;
    z-index: auto;
    top: 20px;
    max-height: none;
    padding: 21px;
    overflow: visible;
    border-radius: var(--radius);
    box-shadow: none;
    transform: none;
    visibility: visible;
  }

  .close-build {
    display: none;
  }

  .clear-button {
    display: block;
  }

  .scrim {
    display: none !important;
  }
}

@media (min-width: 1350px) {
  .builder-layout {
    grid-template-columns: minmax(0, 1fr) 375px;
    gap: 45px;
  }

  .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
  }

  .card-art {
    height: 190px;
  }

  .card-copy {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
