:root {
  --ink: #101318;
  --ink-soft: #1a222c;
  --blue: #005cfe;
  --blue-deep: #0042fe;
  --navy: #0b1f33;
  --paper: #f4f6f8;
  --muted: #6b7583;
  --line: rgba(16, 19, 24, 0.12);
  --card: #fff;
  --bad: #b42318;
  --ok: #1a7f4b;
  --on-accent: #fff;
  --font: "DM Sans", system-ui, sans-serif;
  --heading-font: "Bebas Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
}

#app {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 20px 80px;
}

.brand {
  font-family: var(--heading-font);
  letter-spacing: 0.04em;
  font-size: 15px;
  color: var(--blue);
  margin: 0 0 8px;
}

h1 {
  font-family: var(--heading-font);
  font-size: 42px;
  line-height: 0.95;
  letter-spacing: 0.02em;
  margin: 0 0 8px;
}

.sub {
  color: var(--muted);
  margin: 0 0 24px;
  font-size: 15px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
}

label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 12px 0 6px;
}

input[type="email"],
input[type="password"],
input[type="text"],
input[type="datetime-local"],
textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--card);
  box-sizing: border-box;
}

input[type="datetime-local"] {
  display: block;
  -webkit-appearance: none;
  appearance: none;
  line-height: 1.3;
}

textarea {
  min-height: 72px;
  resize: vertical;
}

.row {
  display: flex;
  gap: 10px;
}

.row > * {
  flex: 1;
  min-width: 0;
}

.dates {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
  scroll-margin-top: 24px;
}

.dates > * {
  min-width: 0;
  width: 100%;
}

@media (min-width: 640px) {
  .dates {
    flex-direction: row;
    gap: 10px;
  }

  .dates > * {
    flex: 1;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 14px 16px;
  background: var(--blue);
  color: var(--on-accent);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  margin-top: 16px;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn.ghost {
  background: transparent;
  color: var(--blue);
  border: 1px solid var(--line);
}

.error {
  color: var(--bad);
  font-size: 14px;
  margin-top: 10px;
}

.ok {
  color: var(--ok);
}

.thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
  background: #e8ecf1;
}

.item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.dropdown {
  border: 1px solid var(--line);
  background: var(--card);
  margin-bottom: 8px;
  border-radius: 12px;
  overflow: hidden;
}

.dropdown-head {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.dropdown-head.static {
  cursor: default;
}

.bundle-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.compare {
  color: var(--muted);
  text-decoration: line-through;
}

.bundle-item h3 {
  font-size: 17px;
}

.bundle-parts {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.bundle-parts li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.bundle-part-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.bundle-part-icon .cat-icon {
  width: 16px;
  height: 16px;
  transform: scale(0.8);
}

.icon-tile {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-tile.open {
  border-color: color-mix(in srgb, var(--blue) 35%, transparent);
  background: color-mix(in srgb, var(--blue) 8%, var(--paper));
}

.dropdown-title {
  display: block;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
}

.dropdown-meta {
  display: block;
  color: var(--blue);
  font-size: 12px;
  margin-top: 2px;
}

.dropdown-body {
  padding: 0 14px 8px;
}

.dropdown-body .item:first-child {
  border-top: 1px solid var(--line);
}

.cat-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.icon-tile.open .cat-icon {
  color: var(--blue);
}

.cat-icon.speaker .cab {
  width: 13px;
  height: 19px;
  border: 2px solid currentColor;
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 2px;
  box-sizing: border-box;
}

.cat-icon.speaker .tweeter {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
}

.cat-icon.speaker .woofer {
  margin-top: 1px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid currentColor;
  box-sizing: border-box;
}

.cat-icon.mic {
  flex-direction: column;
}

.cat-icon.mic .capsule {
  width: 8px;
  height: 11px;
  border-radius: 4px;
  border: 2px solid currentColor;
  box-sizing: border-box;
}

.cat-icon.mic .stem {
  width: 2px;
  height: 3px;
  background: currentColor;
}

.cat-icon.mic .base {
  width: 11px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.cat-icon.fader {
  gap: 3px;
  height: 17px;
  align-items: stretch;
}

.cat-icon.fader .track {
  width: 6px;
  position: relative;
}

.cat-icon.fader .track::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: currentColor;
  opacity: 0.4;
}

.cat-icon.fader .knob {
  position: absolute;
  left: 0;
  width: 6px;
  height: 4px;
  border-radius: 2px;
  background: currentColor;
}

.cat-icon.level {
  align-items: flex-end;
  gap: 3px;
}

.cat-icon.level span {
  width: 4px;
  border-radius: 2px;
  background: currentColor;
}

.cat-icon.cable {
  flex-direction: column;
  gap: 1px;
}

.cat-icon.cable .plug {
  width: 5px;
  height: 6px;
  border-radius: 1px;
  background: currentColor;
}

.cat-icon.cable .plug:last-child {
  align-self: flex-end;
}

.cat-icon.cable .lead {
  width: 14px;
  height: 2px;
  background: currentColor;
  transform: rotate(-18deg);
}

.item:first-child {
  border-top: 0;
  padding-top: 0;
}

.item h3 {
  margin: 0;
  font-size: 16px;
}

.item p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.grow {
  flex: 1;
}

.stepper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stepper-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.max-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.stepper button {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 18px;
  cursor: pointer;
}

.qty {
  min-width: 20px;
  text-align: center;
  font-weight: 700;
}

.cat {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 18px 0 6px;
}

.toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
}

.modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.modes.triple {
  grid-template-columns: 1fr 1fr 1fr;
}

@media (max-width: 420px) {
  .modes.triple {
    grid-template-columns: 1fr;
  }
}

.modes.triple button {
  padding: 10px 8px;
  font-size: 13px;
}

.modes button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.modes button {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  font: inherit;
}

.modes button.on {
  border-color: var(--blue);
  color: var(--blue);
  font-weight: 700;
}

.total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 18px;
  font-weight: 700;
}

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

.userbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}

.userbar button {
  border: 0;
  background: none;
  color: var(--blue);
  font: inherit;
  cursor: pointer;
}
