:root {
  --yellow: #ffcc05;
  --blue: #0057b8;
  --red: #d71920;
  --bg: #07080d;
  --surface: #11131b;
  --surface-2: #191c27;
  --surface-3: #222635;
  --text: #f7f8fc;
  --muted: #aab1c2;
  --line: #303647;
  --ok: #4ade80;
  --error: #fb7185;
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 96px;
  background: var(--bg);
}

[id] {
  scroll-margin-top: 96px;
}

body {
  position: relative;
  z-index: 0;
  min-height: 100vh;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(0, 87, 184, 0.36) 0%, rgba(0, 87, 184, 0.2) 12%, rgba(7, 8, 13, 0.98) 37%, rgba(7, 8, 13, 0.98) 63%, rgba(215, 25, 32, 0.2) 88%, rgba(215, 25, 32, 0.36) 100%),
    linear-gradient(180deg, #0d1018 0%, var(--bg) 38%, #05060a 100%);
  background-attachment: fixed;
}

.site-bg-photos {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.site-bg-photos img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08);
  opacity: 0;
  transition: opacity 1800ms ease-in-out;
}

.site-bg-photos img.is-active {
  opacity: 0.085;
}

.site-bg-photos.is-cycling img {
  opacity: 0;
}

.site-bg-photos.is-cycling img.is-active {
  opacity: 0.085;
}

a {
  color: inherit;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(360px, auto) minmax(220px, 1fr);
  align-items: center;
  gap: 18px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(7, 8, 13, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(16px);
}

.page,
.site-footer {
  position: relative;
  z-index: 1;
}

.topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: linear-gradient(90deg, var(--blue) 0%, #1b4f9f 32%, #551f55 50%, #a31225 68%, var(--red) 100%);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(255,255,255,0.18), 0 10px 22px rgba(0,0,0,0.4);
}

.logo img {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: #08090d;
  box-shadow:
    -8px -8px 18px rgba(0, 87, 184, 0.52),
    8px 8px 18px rgba(0, 87, 184, 0.42),
    8px -8px 18px rgba(215, 25, 32, 0.48),
    -8px 8px 18px rgba(215, 25, 32, 0.4);
}

.logo span {
  transform: translateY(1px);
}

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

.site-nav {
  display: contents;
}

.nav-center,
.nav-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.nav-center {
  grid-column: 2;
  justify-content: center;
}

.nav-right {
  grid-column: 3;
  justify-content: flex-end;
}

.mobile-nav-toggle {
  display: none;
}

.site-nav a,
.site-nav button,
.nav-login {
  min-height: 40px;
  padding: 10px 14px;
  border: 0;
  background: transparent;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.link-button {
  min-height: 40px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.nav-shop-menu {
  position: relative;
}

.nav-shop-menu::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 10px;
}

.nav-shop-dropdown {
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(2, max-content);
  column-gap: 74px;
  row-gap: 4px;
  min-width: 360px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: rgba(10, 11, 17, 0.98);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.44);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translate(-50%, -4px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.nav-shop-menu:hover .nav-shop-dropdown,
.nav-shop-menu:focus-within .nav-shop-dropdown {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translate(-50%, 0);
}

.nav-shop-dropdown a {
  min-height: 34px;
  padding: 8px 6px;
  white-space: nowrap;
}

.nav-logout {
  margin: 0;
}

.site-nav a:hover,
.site-nav button:hover,
.nav-login:hover,
.link-button:hover {
  transform: translateY(-2px);
  background: rgba(255, 204, 5, 0.09);
}

.site-footer {
  margin-top: clamp(34px, 5vw, 70px);
  background: #0d0d0f;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr 0.9fr 1.35fr;
  gap: clamp(18px, 3.4vw, 48px);
  padding: clamp(30px, 4vw, 48px) clamp(20px, 5vw, 66px);
}

.site-footer section {
  display: grid;
  align-content: start;
  gap: 14px;
}

.site-footer h2 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 21px;
  line-height: 1.1;
}

.site-footer a,
.site-footer p {
  margin: 0;
  color: var(--yellow);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.site-footer a {
  position: relative;
  padding-left: 18px;
}

.site-footer a::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--text);
}

.site-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 16px clamp(96px, 7vw, 132px) 16px clamp(70px, 5vw, 92px);
  background: #050506;
  color: var(--muted);
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-socials a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  color: var(--yellow);
  border: 1px solid rgba(255, 204, 5, 0.32);
  background: rgba(255, 204, 5, 0.04);
  text-decoration: none;
}

.footer-socials svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-socials a:first-child svg {
  fill: currentColor;
  stroke: none;
}

.footer-socials a::before {
  content: none;
}

.footer-shop-info {
  gap: 4px;
}

.site-footer .footer-categories {
  grid-template-columns: repeat(2, max-content);
  row-gap: 14px;
  column-gap: clamp(40px, 5vw, 72px);
  justify-content: start;
}

.footer-categories h2 {
  grid-column: 1 / -1;
}

.footer-shop-info a,
.footer-shop-info p {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  color: #ffd84a;
  line-height: 1.35;
  padding-left: 0;
}

.footer-shop-info a::before {
  content: none;
}

.footer-shop-info span {
  color: var(--yellow);
  text-align: center;
  filter: drop-shadow(0 0 7px rgba(0, 87, 184, 0.42)) drop-shadow(0 0 7px rgba(215, 25, 32, 0.34));
}

.footer-shop-info .footer-icon {
  display: grid;
  place-items: center;
}

.footer-shop-info .footer-icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-hours {
  display: grid;
  gap: 0;
  margin-top: 5px;
}

.footer-shop-info .footer-hours p {
  margin: 0;
}

.footer-shop-info small {
  grid-column: 1 / -1;
  margin-top: 1px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.footer-shop-info small a {
  display: inline;
  padding: 0;
  color: var(--yellow);
  font-size: inherit;
  line-height: inherit;
}

.footer-shop-info small a::before {
  content: none;
}

.page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 64px;
}

.hero {
  position: relative;
  min-height: 500px;
  display: grid;
  align-content: center;
  padding: clamp(28px, 6vw, 76px);
  background:
    linear-gradient(135deg, rgba(255, 204, 5, 0.22), transparent 42%),
    linear-gradient(90deg, rgba(0, 87, 184, 0.72), rgba(215, 25, 32, 0.48)),
    var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  animation: rise 520ms ease both;
}

.hero::after {
  content: "PIAST";
  position: absolute;
  right: -18px;
  bottom: -22px;
  color: rgba(255, 255, 255, 0.055);
  font-size: clamp(82px, 19vw, 250px);
  font-weight: 900;
  line-height: 0.8;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--yellow);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 16px;
  font-size: clamp(36px, 7vw, 76px);
  line-height: 0.98;
}

h2 {
  font-size: 24px;
}

.panel.narrow h1 {
  max-width: none;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.05;
  white-space: nowrap;
}

p {
  color: var(--muted);
  line-height: 1.55;
}

.hero p:not(.eyebrow) {
  max-width: 640px;
  font-size: 18px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 0;
  background: var(--yellow);
  color: #08090d;
  padding: 0 20px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;
}

.button:hover,
button:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow: 0 12px 26px rgba(255, 204, 5, 0.18);
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.button.secondary {
  background: #050505;
  color: #ffffff;
  border: 1px solid var(--line);
}

.button.danger {
  background: rgba(215, 25, 32, 0.16);
  color: #ffffff;
  border: 1px solid rgba(215, 25, 32, 0.72);
}

.panel,
.card,
.notice {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)), var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.18);
}

.panel,
.notice {
  padding: clamp(20px, 4vw, 34px);
  animation: rise 360ms ease both;
}

.narrow {
  max-width: 560px;
  margin: 0 auto;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
  animation: rise 360ms ease both;
}

.section-head h1 {
  font-size: clamp(34px, 5vw, 56px);
}

.admin-title-head {
  margin-top: clamp(22px, 3vw, 42px);
  margin-bottom: 10px;
  align-items: end;
}

.admin-title-head h1 {
  font-size: clamp(34px, 4vw, 50px);
}

.category-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.category-bar a {
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  text-decoration: none;
  font-weight: 800;
}

.category-bar a.active,
.category-bar a:hover {
  background: var(--yellow);
  color: #08090d;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.shop-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  justify-content: center;
  align-items: start;
  gap: 42px 34px;
}

.card {
  padding: 18px;
  animation: rise 420ms ease both;
  transition: transform 180ms ease, border-color 180ms ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 204, 5, 0.45);
}

.product img,
.signup-card img,
.placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  margin-bottom: 16px;
  background:
    linear-gradient(135deg, rgba(0, 87, 184, 0.78), rgba(215, 25, 32, 0.72)),
    #111111;
}

.product-link {
  position: relative;
  display: block;
  color: var(--text);
  text-decoration: none;
  min-height: 420px;
  text-align: center;
}

.stock-ribbon {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 2;
  padding: 8px 10px;
  background: var(--red);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.stock-ribbon.out {
  background: var(--red);
  color: #ffffff;
}

.new-ribbon {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 2;
  padding: 8px 10px;
  background: var(--yellow);
  color: #08090d;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.shop-tools {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(280px, 420px);
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 14px;
}

.shop-sort {
  display: block;
  margin: 0;
}

.shop-sort label {
  display: grid;
  grid-template-columns: 78px minmax(160px, 1fr);
  align-items: center;
  max-width: 300px;
  min-height: 38px;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.shop-sort select {
  min-width: 0;
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--surface-2);
  color: var(--text);
  box-shadow: none;
}

.product-search {
  position: relative;
  justify-self: end;
  width: min(420px, 100%);
  margin: 0;
}

.product-search label {
  display: grid;
  grid-template-columns: 66px minmax(180px, 1fr);
  align-items: center;
  min-height: 38px;
  padding: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.product-search input {
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--surface-2);
  color: var(--text);
  box-shadow: none;
}

.product-search-results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 12;
  display: grid;
  width: min(420px, calc(100vw - 32px));
  max-height: 360px;
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--line);
  background: rgba(13, 15, 23, 0.98);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.46);
}

.product-search-results a {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px;
  color: var(--text);
  text-decoration: none;
}

.product-search-results a:hover,
.product-search-results a:focus {
  background: rgba(255, 204, 5, 0.1);
  outline: 0;
}

.product-search-results img,
.product-search-results span {
  width: 48px;
  height: 48px;
  object-fit: cover;
  background:
    linear-gradient(135deg, rgba(0, 87, 184, 0.78), rgba(215, 25, 32, 0.72)),
    #111111;
}

.product-search-results span {
  display: grid;
  place-items: center;
  color: var(--yellow);
  font-size: 10px;
  font-weight: 900;
}

.product-search-results strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.product-search-results small {
  color: var(--yellow);
  font-size: 12px;
  font-weight: 800;
}

.product-search-results p {
  margin: 0;
  padding: 10px;
  color: var(--muted);
  font-weight: 800;
}

.discount-ribbon {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 2;
  padding: 8px 10px;
  background: var(--yellow);
  color: #08090d;
  font-size: 13px;
  font-weight: 900;
}

.shop-grid .product img,
.shop-grid .placeholder {
  height: 360px;
  aspect-ratio: auto;
}

.shop-grid .product h2 {
  min-height: 48px;
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.35;
  text-transform: uppercase;
}

.shop-grid .product p {
  display: none;
}

.shop-grid .meta {
  display: grid;
  justify-content: center;
  margin: 8px 0 0;
}

.shop-grid .meta span {
  display: none;
}

.signup-detail {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1fr);
  gap: 24px;
  align-items: start;
}

.signup-detail-with-prices {
  grid-template-columns: minmax(280px, 0.9fr) minmax(420px, 1fr);
}

.signup-side {
  display: grid;
  gap: 12px;
}

.signup-hero {
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0f131d;
}

.signup-hero img,
.signup-hero .placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  margin: 0;
}

.signup-photo-gallery {
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
}

.signup-photo-gallery .thumbs {
  gap: 10px;
}

.signup-photo-gallery .thumbs img {
  aspect-ratio: 1;
  object-fit: cover;
  background: transparent;
}

.signup-photo-gallery .main-photo img {
  aspect-ratio: 4 / 5;
  object-fit: contain;
  background: #0f131d;
}

.signup-photo-gallery .main-photo {
  overflow: hidden;
  background: #0f131d;
}

.participants {
  display: grid;
  gap: 14px;
}

.participant-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
}

.participant-card:not([open]) {
  gap: 0;
}

.participant-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
}

.participant-head::-webkit-details-marker {
  display: none;
}

.participant-head strong {
  color: var(--yellow);
  font-size: 18px;
}

.participant-remove {
  min-height: 34px;
  padding: 6px 10px;
  background: rgba(215, 25, 32, 0.14);
  border: 1px solid rgba(215, 25, 32, 0.45);
  color: #ffffff;
}

.field-error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(251, 113, 133, 0.18);
}

.field-error-text {
  color: var(--error);
  font-size: 13px;
  font-weight: 800;
}

.field-info-text {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.signup-size-picker {
  display: grid;
  grid-template-columns: 92px repeat(auto-fit, minmax(54px, 1fr));
  gap: 10px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.signup-size-picker > span {
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}

.signup-size-picker label {
  display: grid;
  place-items: center;
  min-height: 50px;
  padding: 8px 6px;
  border: 1px solid transparent;
  cursor: pointer;
}

.signup-size-picker input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.signup-size-picker b {
  color: var(--text);
  font-size: 18px;
}

.signup-size-picker label:has(input:checked) {
  border-color: var(--yellow);
  background: rgba(255, 204, 5, 0.08);
}

.two-factor-card {
  max-width: 560px;
}

.panel.narrow.two-factor-card h1 {
  margin-bottom: 10px;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.08;
}

.two-factor-note {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.two-factor-form {
  gap: 18px;
}

.otp-code-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(42px, 1fr));
  gap: 8px;
}

.otp-code-grid input {
  min-height: 64px;
  padding: 0;
  border-radius: 8px;
  text-align: center;
  font-size: 30px;
  font-weight: 900;
}

.otp-code-grid input:focus {
  border-color: #2d7cff;
  box-shadow: 0 0 0 3px rgba(45, 124, 255, 0.22);
}

.top-travelers {
  display: grid;
  gap: 10px;
}

.top-travelers p {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.top-travelers strong {
  color: var(--yellow);
}

.compact-history {
  align-content: start;
}

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

.compact-search {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto;
  gap: 10px;
  min-width: min(100%, 360px);
}

.compact-search > * {
  min-width: 0;
}

.mini-card-list {
  display: grid;
  gap: 10px;
}

.mini-card-list.district-breakdown {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mini-card-list.trips {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.mini-stat-card {
  display: grid;
  gap: 7px;
  padding: 14px;
  min-height: 112px;
  background: linear-gradient(145deg, rgba(255, 204, 5, 0.08), rgba(0, 87, 184, 0.1));
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.mini-stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 204, 5, 0.55);
  background: linear-gradient(145deg, rgba(255, 204, 5, 0.14), rgba(0, 87, 184, 0.14));
}

.mini-stat-card span {
  font-weight: 900;
}

.mini-stat-card em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.mini-stat-card strong {
  color: var(--yellow);
  align-self: end;
}

.traveler-line-card {
  min-height: 0;
  padding: 12px 14px;
  background: var(--surface-2);
}

.traveler-line-card > summary {
  cursor: pointer;
  list-style: none;
}

.traveler-line-card > summary::-webkit-details-marker,
.traveler-line-card > summary::marker {
  display: none;
  content: "";
}

.traveler-line-card span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.25;
}

.traveler-line-card strong {
  display: inline;
  align-self: auto;
}

.traveler-line-card em {
  display: inline;
  color: var(--muted);
  font-size: 0.74em;
  font-style: normal;
}

.traveler-trip-list {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.traveler-trip-list a {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--text);
  text-decoration: none;
}

.traveler-trip-list a:hover {
  border-color: rgba(255, 204, 5, 0.45);
}

.traveler-trip-list span {
  white-space: normal;
}

.traveler-trip-list em {
  font-size: 0.82rem;
}

.traveler-trip-list small {
  color: var(--muted);
  font-size: 0.74rem;
}

.meta del,
.detail-price del {
  color: var(--muted);
  font-size: 14px;
  margin-right: 8px;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
  padding: clamp(18px, 4vw, 36px);
  background: #f4f4f4;
  color: #08090d;
  animation: rise 420ms ease both;
}

.back-link {
  grid-column: 1 / -1;
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 10px 0;
  color: #07080d;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.product-detail p {
  color: #555b66;
}

.product-gallery {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 22px;
}

.thumbs {
  display: grid;
  align-content: start;
  gap: 12px;
}

.thumbs img,
.thumbs .small {
  width: 100%;
  aspect-ratio: 1 / 1.25;
  object-fit: cover;
  background: transparent;
  opacity: 0.72;
  cursor: pointer;
  border: 2px solid transparent;
  transition: opacity 150ms ease, border-color 150ms ease;
}

.thumbs img.active,
.thumbs img:hover {
  opacity: 1;
  border-color: var(--yellow);
}

.main-photo {
  position: relative;
  overflow: hidden;
}

.main-photo img,
.main-photo .placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  background: #0f131d;
}

.main-photo img {
  transition: opacity 180ms ease, transform 180ms ease, filter 180ms ease;
}

.main-photo img.is-switching {
  opacity: 0;
  filter: blur(5px);
  transform: scale(0.985);
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  background: rgba(7, 8, 13, 0.82);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  overflow: hidden;
  transform: translateY(-50%);
}

.gallery-arrow::before {
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  text-indent: 0;
}

.gallery-arrow.prev::before {
  content: '‹';
  transform: translate(-54%, -55%);
}

.gallery-arrow.next::before {
  content: '›';
  transform: translate(-46%, -55%);
}

.gallery-arrow.prev {
  left: 14px;
}

.gallery-arrow.next {
  right: 14px;
}

.signup-photo-gallery .thumbs img {
  border-color: transparent;
  box-shadow: none;
}

.signup-photo-gallery .thumbs img.active,
.signup-photo-gallery .thumbs img:hover {
  border-color: var(--yellow);
}

.zoom-lens {
  position: absolute;
  z-index: 4;
  width: 150px;
  height: 150px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 18px 44px rgba(0,0,0,0.35);
  background-repeat: no-repeat;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.zoom-lens[hidden] {
  display: none;
}

.product-buy {
  padding-top: 4px;
}

.product-buy h1 {
  color: #07080d;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
  text-transform: uppercase;
}

.state-line {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 38px;
  color: #263041;
  font-weight: 800;
  text-transform: uppercase;
}

.badge-out {
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 900;
}

.badge-out {
  background: var(--red);
  color: #ffffff;
}

.badge-new {
  padding: 10px 12px;
  background: var(--yellow);
  color: #08090d;
  font-size: 13px;
  font-weight: 900;
}

.detail-price {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 28px 0 34px;
  padding-bottom: 34px;
  border-bottom: 1px solid #dedede;
}

.detail-price strong {
  font-size: 32px;
}

.detail-price span {
  background: var(--red);
  color: #ffffff;
  padding: 6px 8px;
  font-weight: 900;
}

.size-picker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 28px 0;
  border-bottom: 1px solid #dedede;
  border-top: 1px solid #dedede;
}

.size-picker > span {
  margin-right: 20px;
  color: #465064;
  font-weight: 800;
  text-transform: uppercase;
}

.size-picker label {
  display: inline-grid;
  place-items: center;
  gap: 2px;
  min-width: 52px;
  min-height: 52px;
  border: 2px solid transparent;
  color: #07080d;
  cursor: pointer;
}

.size-picker input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.size-picker label:has(input:checked) {
  border-color: #07080d;
}

.size-picker label.disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.size-picker small {
  color: #6c7280;
  font-size: 10px;
}

.spray-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  padding: 28px 0;
  border-bottom: 1px solid #dedede;
  border-top: 1px solid #dedede;
}

.spray-picker > span {
  grid-column: 1 / -1;
  color: #465064;
  font-weight: 900;
  text-transform: uppercase;
}

.spray-picker label {
  position: relative;
  display: grid;
  gap: 6px;
  justify-items: start;
  padding: 14px;
  background: #ffffff;
  border: 2px solid #e5e5e5;
  color: #08090d;
  cursor: pointer;
}

.spray-picker input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.spray-picker i {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid #08090d;
  box-shadow: inset 0 0 0 4px #ffffff;
}

.spray-picker label:has(input:checked) {
  border-color: var(--yellow);
  box-shadow: inset 0 -4px 0 var(--yellow);
}

.spray-picker label.disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.buy-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  margin-top: 48px;
}

.buy-row input {
  background: #eeeeee;
  color: #07080d;
  text-align: center;
}

.buy-row button {
  background: #08090d;
  color: #ffffff;
}

.placeholder {
  display: grid;
  place-items: center;
  color: var(--yellow);
  font-size: 32px;
  font-weight: 900;
}

.meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0;
  color: var(--muted);
}

.meta strong {
  color: var(--yellow);
  font-size: 20px;
}

.empty-category {
  grid-column: 1 / -1;
  padding: 36px;
  background: var(--surface);
  border: 1px dashed rgba(255, 204, 5, 0.45);
  text-align: center;
}

.empty-category h2 {
  color: var(--yellow);
}

.stack {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  padding: 0 13px;
  outline: none;
}

.district-select-field {
  position: relative;
}

.district-select-field .district-native-select {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 1px;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}

.district-picker {
  position: relative;
  width: 100%;
}

.district-picker-button {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 18px;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 6px 12px;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--line);
  text-align: left;
}

.district-picker-button:has(.district-logo-badge.is-empty) {
  grid-template-columns: minmax(0, 1fr) 18px;
}

.district-picker-button:hover,
.district-picker-option:hover {
  transform: none;
  box-shadow: none;
}

.district-picker.open .district-picker-button,
.district-picker-button:focus-visible {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255, 204, 5, 0.18);
}

.district-picker-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.district-picker-arrow {
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  transform: rotate(90deg);
}

.district-picker-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 5px);
  z-index: 45;
  display: none;
  max-height: 270px;
  overflow: auto;
  padding: 6px;
  background: rgba(13, 15, 23, 0.99);
  border: 1px solid var(--line);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.48);
}

.district-picker.open .district-picker-list {
  display: grid;
  gap: 4px;
}

.district-picker-option {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  justify-content: start;
  width: 100%;
  min-height: 42px;
  padding: 5px 8px;
  background: transparent;
  color: var(--text);
  border: 1px solid transparent;
  text-align: left;
}

.district-picker-option:not(:has(.district-logo-badge)) {
  grid-template-columns: minmax(0, 1fr);
  padding-left: 16px;
}

.district-picker-option span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.district-picker-option:hover,
.district-picker-option.is-selected {
  background: rgba(255, 204, 5, 0.1);
  border-color: rgba(255, 204, 5, 0.36);
}

.district-logo-badge {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 204, 5, 0.48);
  background:
    linear-gradient(135deg, var(--district-logo-start, var(--blue)), var(--district-logo-end, var(--red)));
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
  text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.district-logo-badge.is-empty {
  display: none;
}

.district-logo-badge.has-image {
  background-color: transparent;
  background-origin: content-box;
  padding: 0;
  border-color: transparent;
  box-shadow: none;
}

input[type="date"],
input[type="datetime-local"] {
  position: relative;
  color-scheme: dark;
  cursor: pointer;
  padding-right: 34px;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  position: absolute;
  right: 9px;
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 3px;
  cursor: pointer;
  filter: invert(1);
  opacity: 0.62;
}

textarea {
  min-height: 110px;
  padding-top: 12px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255, 204, 5, 0.2);
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check input {
  width: 18px;
  min-height: 18px;
}

.alert {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  min-width: min(300px, calc(100vw - 32px));
  max-width: min(360px, calc(100vw - 32px));
  padding: 12px 12px 12px 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.36);
  animation: toastIn 180ms ease both;
}

.alert.hide {
  animation: toastOut 180ms ease both;
}

.alert span {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  text-align: left;
}

.toast-message span {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  text-align: left;
}

.alert button,
.toast-message button {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: start;
  width: 24px;
  min-height: 24px;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
}

.alert button:hover,
.toast-message button:hover {
  color: var(--text);
  transform: none;
}

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

.alert.error {
  color: var(--error);
}

.hint {
  margin: -4px 0 2px;
  font-size: 13px;
}

.cart-list {
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
}

.cart-row {
  display: grid;
  grid-template-columns: 92px 1fr 120px 54px;
  align-items: center;
  gap: 18px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015)), var(--surface-2);
  border: 1px solid var(--line);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.16);
}

.cart-remove,
.delete-form button {
  display: grid;
  place-items: center;
  min-height: 46px;
  min-width: 46px;
  padding: 0;
  background: rgba(215, 25, 32, 0.12);
  border: 1px solid rgba(215, 25, 32, 0.5);
  color: #ffffff;
}

.cart-remove span {
  position: relative;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 0;
}

.cart-remove span::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M8 6V4h8v2'/%3E%3Cpath d='M19 6l-1 14H6L5 6'/%3E%3Cpath d='M10 11v6'/%3E%3Cpath d='M14 11v6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M8 6V4h8v2'/%3E%3Cpath d='M19 6l-1 14H6L5 6'/%3E%3Cpath d='M10 11v6'/%3E%3Cpath d='M14 11v6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.cart-remove span::after {
  content: "";
  display: none;
}

.cart-row img,
.mini-placeholder {
  width: 92px;
  aspect-ratio: 1;
  object-fit: cover;
  background: linear-gradient(135deg, var(--blue), var(--red));
}

.cart-product-image {
  display: block;
  width: 92px;
  color: inherit;
  text-decoration: none;
}

.cart-product-link {
  display: block;
  color: var(--text);
  text-decoration: none;
  font-weight: 900;
}

.cart-product-link:hover {
  color: var(--yellow);
}

.mini-placeholder {
  display: grid;
  place-items: center;
  color: var(--yellow);
  font-weight: 900;
}

.cart-row strong,
.cart-row span,
.cart-row small {
  display: block;
}

.cart-row span,
.cart-row small {
  color: var(--muted);
  margin-top: 4px;
}

.cart-price-line {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.cart-price-line del {
  color: #8f98aa;
  text-decoration-color: rgba(215, 25, 32, 0.85);
}

.cart-price-line strong {
  display: inline;
  color: var(--yellow);
}

.cart-price-line em {
  display: inline-grid;
  place-items: center;
  min-height: 22px;
  padding: 2px 7px;
  background: #d71920;
  color: #fff;
  font-style: normal;
  font-weight: 900;
}

.cart-price-line span {
  display: inline;
  margin: 0;
}

.cart-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 18px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  padding: 16px;
}

.cart-summary h2,
.cart-summary p {
  margin: 0;
}

.cart-summary h2 {
  grid-column: 1 / -1;
  font-size: 20px;
}

.cart-summary p {
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: var(--muted);
}

.cart-summary p strong {
  color: var(--yellow);
}

.cart-summary .cart-total-line {
  font-size: 18px;
  font-weight: 900;
  color: var(--text);
  text-transform: uppercase;
}

.cart-summary .cart-total-line strong {
  font-size: 22px;
}

.cart-summary-actions {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.cart-summary-actions form {
  margin: 0;
}

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

.checkout-choice > div,
.locker-map {
  padding: 18px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.map-grid {
  min-height: 220px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 16px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    #0c0f17;
  background-size: 34px 34px;
}

.map-grid button {
  min-height: 54px;
  background: var(--surface-3);
  color: var(--text);
  border: 1px solid var(--line);
}

.map-grid button.selected {
  background: var(--yellow);
  color: #08090d;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.stats-month-filter {
  display: flex;
  justify-content: flex-end;
  align-items: end;
  gap: 12px;
  margin: 0;
}

.stats-month-filter label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.stats-month-filter input {
  min-height: 42px;
  min-width: 180px;
}

.stats-month-filter > span {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  color: var(--yellow);
  font-weight: 900;
}

.stats-range-toggle {
  min-height: 34px;
  padding: 0 10px;
  font-size: 12px;
  white-space: nowrap;
}

.stats div {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
}

.stats div > span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.stats strong {
  display: block;
  margin-top: 8px;
  color: var(--yellow);
  font-size: 30px;
}

.size-stock-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
  gap: 10px;
}

.form-subsection {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.form-subsection > summary {
  min-height: 48px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  color: var(--yellow);
  font-weight: 900;
  cursor: pointer;
}

.form-subsection > label {
  padding: 0 14px 14px;
}

.away-prices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(255, 204, 5, 0.1), rgba(0, 87, 184, 0.11));
  border: 1px solid rgba(255, 204, 5, 0.24);
}

.away-prices[hidden],
.gadget-price[hidden] {
  display: none;
}

.fare-options {
  display: grid;
  gap: 10px;
}

.fare-options[hidden],
.fare-options [hidden] {
  display: none;
}

.fare-options label {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  cursor: pointer;
}

.fare-options input[type="radio"] {
  width: 18px;
  min-height: 18px;
  padding: 0;
  border: 0;
  box-shadow: none;
  accent-color: var(--yellow);
}

.fare-options input[type="radio"]:focus {
  box-shadow: none;
}

.fare-options label:has(input:checked) {
  border-color: rgba(255, 204, 5, 0.7);
  box-shadow: inset 4px 0 0 var(--yellow);
}

.fare-options label.is-disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.fare-options strong {
  color: var(--yellow);
}

.split-submit {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid rgba(255, 204, 5, 0.72);
  background: rgba(255, 204, 5, 0.08);
}

.split-submit button {
  min-height: 54px;
  border: 0;
  background: transparent;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.split-submit button + button {
  border-left: 1px solid rgba(255, 204, 5, 0.72);
}

.split-submit button:hover {
  background: var(--yellow);
  color: #08090d;
  transform: none;
}

.section-head.compact {
  margin-bottom: 16px;
}

.admin-search {
  max-width: 420px;
}

.order-search {
  display: flex;
  gap: 8px;
  width: min(520px, 100%);
}

.order-search input {
  max-width: none;
}

.order-search button {
  min-height: 48px;
}

.account-order-button {
  width: 100%;
  justify-content: flex-start;
  margin: 8px 0;
  padding: 0 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text);
  text-align: left;
}

.account-order-button:hover {
  border-color: rgba(255, 204, 5, 0.55);
  color: var(--yellow);
}

.account-order-button.payment-pending {
  border-color: rgba(244, 114, 182, 0.5);
  background: rgba(131, 24, 67, 0.16);
}

.account-order-button.canceled {
  border-color: rgba(215, 25, 32, 0.66);
  background: rgba(215, 25, 32, 0.14);
}

.order-pay-again-form {
  display: flex;
  justify-content: flex-end;
  margin: 18px 0 0;
}

.order-pay-again-form button {
  min-width: 150px;
}

.account-signup-list {
  display: grid;
  gap: 10px;
}

.account-signup-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.account-signup-card.payment-pending {
  border-color: rgba(244, 114, 182, 0.5);
  background: rgba(131, 24, 67, 0.16);
}

.account-signup-card strong,
.account-signup-card b {
  display: block;
  color: var(--text);
}

.account-signup-card span,
.account-signup-card small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

.account-signup-card b {
  text-align: right;
}

.account-signup-pay-form {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  margin: 0;
}

.account-signup-pay-form button {
  min-width: 150px;
}

.admin-collapsible > summary .order-search,
.admin-collapsible > summary .compact-search {
  flex: 0 1 540px;
  margin: 0;
}

details.admin-modal-details.modal-details-open {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  align-content: start;
  justify-items: center;
  grid-auto-rows: max-content;
  padding: 56px 18px 24px;
  overflow: auto;
  background: rgba(3, 4, 8, 0.76);
  border: 0;
  box-shadow: none;
  backdrop-filter: blur(10px);
  animation: none;
}

details.admin-modal-details.modal-details-open > summary {
  display: none;
}

details.admin-modal-details.modal-details-open > form,
details.admin-modal-details.modal-details-open > .price-rules,
details.admin-modal-details.modal-details-open > .actions,
details.admin-modal-details.modal-details-open > .delete-form,
details.admin-modal-details.modal-details-open > .district-modal-head,
details.admin-modal-details.modal-details-open > .district-trip-list {
  width: min(860px, calc(100vw - 36px));
  margin: 0;
  border-inline: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

details.admin-modal-details.modal-details-open > form:first-of-type {
  padding: 20px;
  border-top: 1px solid var(--line);
}

details.admin-modal-details.modal-details-open > form.stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  align-items: end;
}

details.admin-modal-details.modal-details-open > form.stack > label:has(textarea),
details.admin-modal-details.modal-details-open > form.stack > .size-stock-grid,
details.admin-modal-details.modal-details-open > form.stack > .form-subsection,
details.admin-modal-details.modal-details-open > form.stack > .away-prices,
details.admin-modal-details.modal-details-open > form.stack > .create-price-rules,
details.admin-modal-details.modal-details-open > form.stack > .admin-user-actions,
details.admin-modal-details.modal-details-open > form.stack > .actions {
  grid-column: 1 / -1;
}

details.admin-modal-details.modal-details-open textarea {
  min-height: 86px;
}

details.admin-modal-details.modal-details-open .check {
  min-height: 42px;
  align-self: end;
}

details.admin-modal-details.modal-details-open .away-prices {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
}

details.admin-modal-details.modal-details-open > .price-rules,
details.admin-modal-details.modal-details-open > .actions,
details.admin-modal-details.modal-details-open > .delete-form {
  padding-inline: 20px;
}

details.admin-modal-details.modal-details-open > .price-rules {
  padding-block: 20px;
}

details.admin-modal-details.modal-details-open > .actions,
details.admin-modal-details.modal-details-open > .delete-form {
  padding-block: 14px 24px;
}

.modal-details-close {
  position: fixed;
  top: 14px;
  right: max(24px, calc((100vw - min(860px, calc(100vw - 36px))) / 2 + 10px));
  z-index: 72;
}

.order-history {
  margin: 8px 0;
}

.order-list {
  display: grid;
  gap: 12px;
}

.order-row {
  display: grid;
  grid-template-columns: 1.15fr 0.65fr auto;
  gap: 12px 18px;
  align-items: center;
  padding: 15px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.order-row.shipped {
  border-color: rgba(74, 222, 128, 0.65);
  background: rgba(34, 197, 94, 0.14);
}

.order-row.canceled {
  border-color: rgba(215, 25, 32, 0.66);
  background: rgba(215, 25, 32, 0.14);
}

.order-row.pending {
  border-color: rgba(255, 200, 0, 0.68);
  background: rgba(255, 200, 0, 0.12);
}

.order-row.payment-pending {
  border-color: rgba(244, 114, 182, 0.5);
  background: rgba(131, 24, 67, 0.16);
}

.payment-pending-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(244, 114, 182, 0.45);
  background: rgba(131, 24, 67, 0.16);
  color: #fce7f3;
  font-weight: 800;
}

.payment-pending-note form {
  margin: 0;
}

.button.tiny,
button.tiny {
  min-height: 32px;
  padding: 0 12px;
  font-size: 12px;
}

.order-row strong,
.order-row span {
  display: block;
}

.order-row span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.order-items {
  grid-column: 1 / -1;
  display: grid;
  gap: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.order-info-button {
  min-height: 46px;
}

.order-status-form,
.ticket-send-form {
  margin: 0;
}

.order-status-form select {
  min-height: 42px;
}

.price-rules {
  display: grid;
  gap: 10px;
  padding: 20px;
  border-top: 1px solid var(--line);
}

.music-list > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.price-rule-row {
  position: relative;
  padding: 12px 24px 12px 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
}

.price-rule-edit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  gap: 18px;
  align-items: end;
  min-width: 0;
}

.price-rule-edit-row .price-rule-form {
  display: grid;
  margin: 0;
  min-width: 0;
}

.price-rule-delete-form {
  position: static;
  align-self: start;
  justify-self: center;
  margin: 0;
  padding-top: 45px;
}

.price-rule-delete-form .delete-icon-button {
  --delete-icon-size: 17px;
  width: 36px;
  min-width: 36px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  background: rgba(215, 25, 32, 0.22) !important;
  border: 1px solid rgba(215, 25, 32, 0.72);
  box-shadow: none;
  opacity: 1;
}

.price-rule-delete-form .delete-icon-button:hover,
.price-rule-delete-form .delete-icon-button:focus-visible {
  transform: none;
  background: rgba(215, 25, 32, 0.34) !important;
  border-color: var(--red);
  box-shadow: none;
}

.price-rule-delete-form .delete-icon-button:hover span,
.price-rule-delete-form .delete-icon-button:focus-visible span,
.price-rule-delete-form .delete-icon-button:hover span::after,
.price-rule-delete-form .delete-icon-button:focus-visible span::after {
  border-color: #ffffff;
}

.price-rule-delete-form .delete-icon-button:hover span::before,
.price-rule-delete-form .delete-icon-button:focus-visible span::before {
  background: #ffffff;
}

.music-list {
  display: grid;
  gap: 10px;
}

.music-list > div {
  align-items: end;
}

.music-edit-form {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 96px 96px auto;
  gap: 10px;
  align-items: end;
  margin: 0;
}

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

.background-admin {
  padding: 16px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
}

.background-admin strong {
  color: var(--yellow);
}

.background-admin-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.background-admin-list > div {
  position: relative;
  min-height: 92px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.background-admin-list img {
  display: block;
  width: 100%;
  height: 92px;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08);
  opacity: 0.72;
}

.background-admin-list form {
  position: absolute;
  right: 6px;
  top: 6px;
  margin: 0;
}

.background-admin-list p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
}

.price-rule-form,
.site-settings-grid,
.district-trip-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.site-settings-grid > form:first-child {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-content: start;
}

.site-settings-grid > form:first-child > label:first-of-type,
.site-settings-grid > form:first-child > .shop-hours-admin,
.site-settings-grid > form:first-child > .actions {
  grid-column: 1 / -1;
}

.shop-hours-admin {
  display: grid;
  grid-template-columns: 150px repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
  padding: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
}

.shop-hours-admin strong,
.footer-links-admin strong {
  color: var(--yellow);
  align-self: center;
}

.footer-links-admin {
  align-self: start;
  padding: 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
}

.price-rule-form {
  grid-template-columns: minmax(218px, 1.35fr) repeat(3, minmax(88px, 1fr)) 74px;
  gap: 10px 12px;
  align-items: end;
  min-width: 0;
}

.price-rule-form.gadget-rule-form {
  grid-template-columns: minmax(218px, 1.35fr) minmax(120px, 1fr) 74px;
}

.price-rule-existing-form {
  grid-template-columns: minmax(235px, 1.2fr) repeat(3, minmax(112px, 1fr));
}

.price-rule-existing-form.gadget-rule-form {
  grid-template-columns: minmax(235px, 1.35fr) minmax(120px, 1fr);
}

.price-rule-form button {
  min-height: 48px;
  padding-inline: 8px;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.price-rule-form label,
.price-rule-form input,
.price-rule-create-row label,
.price-rule-create-row input {
  min-width: 0;
}

.price-rule-form input {
  font-size: 15px;
}

.price-rule-form input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.price-rule-form input[type="number"]::-webkit-outer-spin-button,
.price-rule-form input[type="number"]::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.price-rule-create-row {
  display: grid;
  grid-template-columns: minmax(218px, 1.35fr) repeat(3, minmax(88px, 1fr)) 42px;
  gap: 12px;
  align-items: end;
  padding: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  min-width: 0;
}

.price-rule-create-row label {
  min-width: 0;
  gap: 8px;
}

.price-rule-create-row input {
  width: 100%;
  min-width: 0;
}

.price-rule-create-row input[type="datetime-local"] {
  min-width: 0;
}

.price-rule-create-row .delete-icon-button {
  width: 44px;
  height: 48px;
  min-height: 48px;
  align-self: end;
  justify-self: end;
  padding: 0;
}

.price-rule-delete-form .delete-icon-button span,
.price-rule-create-row .delete-icon-button span {
  width: var(--delete-icon-size, 19px);
  height: var(--delete-icon-size, 19px);
  border: 0;
}

.price-rule-delete-form .delete-icon-button span::before,
.price-rule-create-row .delete-icon-button span::before {
  left: auto;
  top: auto;
  width: 100%;
  height: 100%;
}

.price-rule-delete-form .delete-icon-button span::after,
.price-rule-create-row .delete-icon-button span::after {
  display: none;
}

.variant-builder {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.variant-builder-wrap > span {
  display: block;
  margin-bottom: 8px;
  font-weight: 900;
}

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

.variant-builder-row {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr 0.8fr 0.8fr auto;
  gap: 8px;
  align-items: end;
  padding: 10px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
}

.variant-builder-row label {
  margin: 0;
}

.terms-check {
  align-items: flex-start;
}

.terms-check a {
  color: var(--yellow);
  font-weight: 900;
}

.terms-panel h2 {
  color: var(--yellow);
  margin-top: 22px;
}

.create-price-rules {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  align-items: start;
}

.create-price-rules [data-price-rule-list] {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.create-price-rules > button {
  justify-self: start;
  min-width: 150px;
  min-height: 44px;
  padding-inline: 18px;
}

.district-trip-stats article {
  padding: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.district-trip-stats h3 {
  margin: 0 0 10px;
  color: var(--yellow);
}

.district-trip-stats p {
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.admin-products {
  margin-top: 18px;
}

.panel.admin-collapsible + .panel.admin-collapsible,
.admin-quick-actions + .panel.admin-collapsible,
.order-history + .admin-quick-actions {
  margin-top: 8px;
}

.admin-quick-actions {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.admin-quick-actions .panel.admin-collapsible + .panel.admin-collapsible {
  margin-top: 0;
}

.admin-collapsible > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 68px;
  padding: 0 28px;
  cursor: pointer;
  list-style: none;
}

details.admin-collapsible > summary,
.district-admin-compact > summary {
  min-height: 68px;
  padding: 0 28px;
  background: transparent;
}

.panel.admin-collapsible {
  padding: 0;
}

.admin-quick-actions .admin-collapsible {
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0;
}

.admin-collapsible > summary::-webkit-details-marker,
.admin-collapsible > summary::marker,
.district-admin-compact summary::-webkit-details-marker,
.district-admin-compact summary::marker {
  display: none;
  content: "";
}

.admin-collapsible > summary span,
.admin-collapsible > summary h2 {
  color: var(--yellow);
  font-size: 22px;
  font-weight: 900;
}

.admin-collapsible > summary small,
.admin-collapsible > summary p {
  color: var(--muted);
  margin: 0;
  font-size: 14px;
  text-align: right;
}

.admin-collapsible > summary > div {
  display: grid;
  gap: 8px;
}

.admin-collapsible > summary > small,
.admin-collapsible > summary > a,
.admin-collapsible > summary > div + small {
  margin-left: auto;
  max-width: 420px;
}

.admin-collapsible > summary > a {
  flex: 0 0 auto;
}

.admin-collapsible > form,
.admin-collapsible > .site-settings-grid,
.admin-collapsible > .category-tabs,
.admin-collapsible > .admin-category,
.admin-collapsible > .admin-section-note,
.admin-collapsible > .mini-card-list,
.admin-collapsible > .order-list,
.admin-collapsible > .pagination,
.admin-collapsible > .admin-user-list {
  margin-top: 0;
  padding: 18px;
  border-top: 1px solid var(--line);
}

.admin-section-note {
  margin: 0;
  color: var(--muted);
}

.district-stat-links {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
  max-height: 130px;
  margin-top: 14px;
  overflow: hidden;
}

.district-stat-links a,
.district-stat-details > summary {
  display: inline-grid;
  grid-template-columns: 30px max-content;
  justify-content: start;
  align-items: center;
  gap: 6px;
  width: auto;
  min-width: 0;
  min-height: 38px;
  padding: 0 9px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--muted);
  text-decoration: none;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  list-style: none;
  overflow: hidden;
}

.district-stat-label {
  min-width: 0;
  line-height: 1.12;
  white-space: nowrap;
}

.district-stat-label strong {
  color: inherit;
  white-space: nowrap;
}

.district-stat-details {
  position: relative;
  flex: 0 0 auto;
  min-width: max-content;
  max-width: 100%;
  width: auto;
}

.district-stat-details > summary::-webkit-details-marker,
.district-stat-details > summary::marker {
  display: none;
  content: "";
}

.district-stat-links a:hover,
.district-stat-details > summary:hover {
  border-color: rgba(255, 204, 5, 0.55);
  color: var(--yellow);
}

.district-trip-list {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 160;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: clamp(6px, 1.2vw, 10px);
  width: min(720px, calc(100vw - 28px));
  max-height: min(440px, calc(100vh - 120px));
  margin: 0;
  padding: clamp(10px, 2vw, 16px);
  overflow: auto;
  border: 1px solid var(--line);
  background: rgba(15, 21, 32, 0.98);
  box-shadow: 0 26px 76px rgba(0, 0, 0, 0.55);
  transform: translate(-50%, -50%);
}

.district-trip-list a {
  display: grid;
  gap: 4px;
  min-height: 0;
  padding: clamp(8px, 1.7vw, 12px);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

.district-trip-list span {
  font-weight: 900;
  font-size: clamp(12px, 1.7vw, 15px);
  line-height: 1.16;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.district-trip-list small {
  color: var(--muted);
}

.district-stat-details[open]::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(0, 0, 0, 0.48);
}

.district-stat-details.modal-details-open[open]::before {
  display: none;
}

details.admin-modal-details.modal-details-open > .district-trip-list {
  position: static;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  max-height: min(620px, calc(100vh - 112px));
  padding: 20px;
  border-top: 0;
  overflow: auto;
  transform: none;
}

details.admin-modal-details.modal-details-open > .district-modal-head {
  display: grid;
  gap: 4px;
  padding: 20px 20px 14px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.district-modal-head h2 {
  margin: 0;
  color: var(--yellow);
}

.district-stat-pages {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}

.district-stat-pages[hidden] {
  display: none;
}

.district-stat-pages button {
  min-width: 38px;
  min-height: 34px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 20px;
  line-height: 1;
}

.district-stat-pages button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.district-stat-pages span {
  color: var(--muted);
  font-weight: 900;
}

.category-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.category-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  font-weight: 900;
}

.category-tabs a.active,
.category-tabs a:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #08090d;
}

.admin-category {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.admin-events-grid {
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
}

.admin-category h3 {
  grid-column: 1 / -1;
  margin: 0 0 10px;
  color: var(--yellow);
  font-size: 18px;
  text-transform: uppercase;
}

.admin-product {
  overflow: hidden;
  border: 1px solid var(--line);
  background: #11151f;
}

.admin-product[open] {
  grid-column: 1 / -1;
}

.admin-products .admin-product[open] > summary {
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: center;
}

.admin-products .admin-product[open] .admin-product-thumb {
  width: 180px;
  height: 180px;
  aspect-ratio: auto;
}

.admin-product summary {
  display: grid;
  gap: 12px;
  cursor: pointer;
  font-weight: 900;
  list-style: none;
}

.admin-product summary::-webkit-details-marker {
  display: none;
}

.admin-product-thumb {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--blue), var(--red));
  overflow: hidden;
}

.admin-event-card > summary {
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  min-height: 150px;
  gap: 0;
}

.admin-event-card .admin-product-thumb {
  width: 150px;
  height: 150px;
  aspect-ratio: auto;
  min-height: 0;
}

.admin-event-card .admin-product-info {
  align-content: center;
  gap: 8px;
  min-width: 0;
  padding: 18px;
}

.admin-event-card .admin-product-info strong {
  font-size: 18px;
  line-height: 1.2;
}

.admin-event-card .admin-product-info span {
  font-size: 13px;
}

.admin-event-card .admin-product-info b {
  white-space: nowrap;
}

.admin-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-product-thumb span {
  color: var(--yellow);
  font-size: 26px;
  font-weight: 900;
}

.admin-product-thumb em {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 8px;
  background: var(--red);
  color: #ffffff;
  font-style: normal;
}

.admin-product-thumb em.status-new {
  top: 10px;
  left: 10px;
  right: auto;
  background: var(--yellow);
  color: #08090d;
}

.admin-product-thumb em.status-live {
  background: var(--yellow);
  color: #08090d;
}

.admin-product-thumb em.status-closed {
  background: var(--red);
}

.admin-product-thumb em.status-discount {
  top: 10px;
  right: 10px;
}

.admin-product-info {
  display: grid;
  gap: 5px;
  padding: 0 14px 14px;
}

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

.admin-product-info b {
  color: var(--yellow);
  font-size: 20px;
}

.admin-product-info b del {
  display: inline-block;
  margin-right: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.admin-product-sort {
  margin: 0 0 18px;
}

.admin-image-remove-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  grid-column: 1 / -1;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.admin-image-remove-list > strong {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 13px;
}

.admin-image-remove-list label {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.admin-image-remove-list img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
}

.admin-image-remove-list label.image-missing::before {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  content: 'Brak pliku';
  border: 1px dashed rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 0.22);
  color: var(--muted);
  font-size: 12px;
}

.admin-image-remove-list label.image-missing img {
  display: none;
}

.admin-image-remove-list span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.admin-image-remove-list input {
  width: 16px;
  height: 16px;
  min-height: 16px;
  padding: 0;
}

.admin-product form {
  margin: 0;
  padding: 14px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.admin-product > .delete-form button {
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  background: rgba(215, 25, 32, 0.18);
  border-color: rgba(215, 25, 32, 0.75);
  color: #ffffff;
  font-weight: 900;
}

.admin-product > .delete-form button:hover {
  background: var(--red);
}

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

.admin-edit-form label:has(textarea),
.admin-edit-form .size-stock-grid,
.admin-edit-form .actions {
  grid-column: 1 / -1;
}

.signup-dashboard {
  display: grid;
  grid-template-columns: minmax(180px, 0.35fr) 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.signup-counts {
  display: grid;
  gap: 12px;
}

.signup-counts p {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  color: var(--text);
  font-weight: 800;
}

.signup-counts span {
  color: var(--muted);
}

.signup-counts strong {
  color: var(--yellow);
  font-size: 22px;
}

.district-chart {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  align-items: center;
}

.district-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.district-legend h2 {
  flex-basis: 100%;
  margin-bottom: 2px;
}

.district-legend p,
.district-legend a {
  display: inline-grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  min-width: 160px;
  margin: 0;
  padding: 8px 10px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--muted);
  text-decoration: none;
  font-weight: 800;
}

.district-legend span:not(.district-inline-logo),
.district-stat-links span:not(.district-inline-logo) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.district-stat-links span:not(.district-inline-logo) {
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
  line-height: 1.1;
}

.district-inline-logo {
  display: inline-grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  overflow: hidden;
  border: 1px solid rgba(255, 204, 5, 0.42);
  background: linear-gradient(135deg, var(--blue), var(--red));
  color: #ffffff;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
}

.district-inline-logo img {
  width: 100%;
  height: 100%;
  padding: 0;
  background: transparent;
  object-fit: contain;
}

.district-inline-logo:has(img),
.district-admin-logo:has(img) {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.district-legend a:hover,
.district-legend a.active {
  border-color: rgba(255, 204, 5, 0.7);
  color: var(--yellow);
}

.district-legend strong {
  color: var(--text);
}

.active-filter-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 204, 5, 0.24);
  background: rgba(255, 204, 5, 0.08);
  color: var(--muted);
  font-weight: 800;
}

.active-filter-note strong {
  color: var(--yellow);
}

.pie {
  width: 140px;
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1), 0 0 0 8px rgba(255,255,255,0.04);
}

.pie-svg {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
}

.pie-svg path,
.pie-svg circle {
  transition: filter 150ms ease, transform 150ms ease;
  transform-origin: center;
}

.pie-svg path:hover,
.pie-svg circle:hover {
  filter: brightness(1.2);
}

.chart-tooltip {
  position: fixed;
  z-index: 90;
  padding: 8px 10px;
  background: #05070c;
  border: 1px solid rgba(255, 204, 5, 0.55);
  color: var(--text);
  box-shadow: 0 14px 34px rgba(0,0,0,0.35);
  font-weight: 800;
  pointer-events: none;
}

.district-add-form,
.district-admin-row,
.district-admin-row form:first-child {
  display: grid;
  gap: 10px;
  align-items: center;
}

.district-add-form {
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) max-content 160px;
  margin-bottom: 14px;
}

.district-admin-list {
  display: grid;
  gap: 10px;
}

.district-admin-row {
  grid-template-columns: minmax(0, 1fr) 46px;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.district-admin-row form:first-child {
  grid-template-columns: minmax(220px, 1fr) 46px minmax(220px, 1fr) max-content 120px;
  min-width: 0;
}

.district-admin-row form {
  margin: 0;
}

.district-admin-row .delete-icon-button {
  width: 46px;
  min-width: 46px;
  height: 48px;
  min-height: 48px;
}

.district-admin-logo {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border: 1px solid rgba(255, 204, 5, 0.35);
  background: linear-gradient(135deg, var(--blue), var(--red));
}

.district-admin-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.district-admin-logo b {
  color: #ffffff;
  font-size: 12px;
}

.district-logo-file {
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
  min-width: 0;
}

.district-logo-file input {
  width: 100%;
  min-height: 38px;
  padding: 7px;
  overflow: hidden;
  font-size: 12px;
}

.district-list-end-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: rgba(12, 16, 28, 0.42);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.district-list-end-check input {
  width: 16px;
  height: 16px;
  min-height: 16px;
  padding: 0;
}

.shop-category-add-form,
.shop-category-admin-row,
.shop-category-admin-row form:first-child {
  display: grid;
  gap: 10px;
  align-items: center;
}

.shop-category-add-form {
  grid-template-columns: minmax(220px, 1fr) minmax(160px, 240px);
  margin-top: 16px;
  margin-bottom: 14px;
}

.shop-category-admin-list {
  display: grid;
  gap: 10px;
}

.shop-category-admin-row {
  grid-template-columns: minmax(0, 1fr) 46px;
  gap: 10px;
  padding: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.shop-category-admin-row form:first-child {
  grid-template-columns: minmax(220px, 1fr) minmax(120px, 160px);
  min-width: 0;
}

.shop-category-admin-row form {
  margin: 0;
}

.shop-category-admin-row .delete-icon-button {
  width: 46px;
  min-width: 46px;
  height: 48px;
  min-height: 48px;
}

.district-admin-compact {
  margin-top: 22px;
}

.district-admin-compact summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  cursor: pointer;
  list-style: none;
}

.district-admin-compact summary::-webkit-details-marker {
  display: none;
}

.district-admin-compact summary span {
  font-size: 22px;
}

.district-admin-compact summary small {
  color: var(--muted);
}

.district-admin-compact .district-add-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) max-content 160px;
  margin-top: 16px;
  margin-bottom: 10px;
}

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

.district-admin-compact .district-admin-row {
  grid-template-columns: minmax(0, 1fr) 46px;
  padding: 10px;
}

.district-admin-compact .district-admin-row form:first-child {
  grid-template-columns: minmax(220px, 1fr) 46px minmax(220px, 1fr) max-content 110px;
  gap: 10px;
}

.district-admin-compact .district-admin-row form:first-child .district-logo-file {
  grid-column: auto;
}

.district-admin-compact .district-admin-row input {
  min-width: 0;
}

.person-search {
  margin-bottom: 14px;
}

.signup-list {
  display: grid;
  gap: 12px;
}

.signup-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.signup-row.payment-pending {
  border-color: rgba(244, 114, 182, 0.5);
  background: rgba(131, 24, 67, 0.16);
}

.signup-row-main {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.signup-row-main strong,
.signup-row-main span,
.signup-row-main small {
  overflow-wrap: anywhere;
}

.signup-row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.signup-row-actions form {
  margin: 0;
}

.signup-row-actions .ticket-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  min-height: 42px;
  padding-inline: 14px;
  white-space: nowrap;
  line-height: 1;
}

.signup-edit-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.signup-edit-form label:first-of-type,
.signup-edit-form .actions {
  grid-column: 1 / -1;
}

.signup-payment-summary,
.bulk-message-form {
  display: grid;
  gap: 10px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
}

.signup-payment-summary h2,
.bulk-message-form h2 {
  margin: 0;
  color: var(--yellow);
  font-size: 20px;
}

.signup-payment-summary p {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  color: var(--muted);
}

.signup-payment-summary strong {
  color: var(--text);
}

.signup-payment-summary .total {
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--yellow);
  font-weight: 900;
}

.signup-payment-summary .total strong {
  color: var(--yellow);
}

.bulk-message-form {
  margin-top: 10px;
}

.bulk-message-form button {
  width: fit-content;
  min-width: 180px;
}

.pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 4px;
}

.pagination-center {
  grid-column: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.pagination a {
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 900;
  text-decoration: none;
}

.pagination a.disabled {
  pointer-events: none;
  opacity: 0.4;
}

.pagination-jump {
  margin: 0;
}

.pagination-jump input {
  width: 74px;
  min-height: 42px;
  text-align: center;
  font-weight: 900;
}

.pagination small {
  justify-self: end;
  color: var(--muted);
  font-weight: 800;
}

.pagination a.active,
.pagination-center a:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #08090d;
}

.signup-print-report {
  display: none;
}

.ticket-send-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.ticket-send-form input[type="file"] {
  max-width: 180px;
  min-height: 42px;
  padding: 8px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.72);
  opacity: 0;
  transition: opacity 160ms ease;
}

body.modal-open {
  overflow: hidden;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-backdrop.open {
  opacity: 1;
}

.modal-card {
  position: relative;
  width: min(760px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  transform: translateY(12px);
  transition: transform 160ms ease;
}

.modal-backdrop.open .modal-card {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  min-height: 44px;
  padding: 0;
  background: transparent;
  color: var(--yellow);
  border: 0;
  font-size: 30px;
}

.order-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.order-info-grid p,
.order-modal-items {
  margin: 0;
  padding: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.order-info-grid .wide {
  grid-column: 1 / -1;
}

.order-info-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 4px;
}

.order-modal-items {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.order-item-line {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) minmax(110px, auto) minmax(90px, auto);
  gap: 12px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.order-item-line.compact {
  grid-template-columns: minmax(0, 1fr) minmax(110px, auto) minmax(90px, auto);
}

.order-item-line:last-child {
  border-bottom: 0;
}

.order-item-line img,
.order-item-line i {
  width: 54px;
  height: 54px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--blue), var(--red));
}

.order-item-line i {
  display: grid;
  place-items: center;
  color: var(--yellow);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.order-item-line strong,
.order-item-line small {
  display: block;
}

.order-item-line small,
.order-item-line em {
  color: var(--muted);
  font-style: normal;
}

.order-item-line b {
  color: var(--text);
  text-align: right;
}

.shop-sale-note {
  margin: 0;
  padding: 14px;
  background: rgba(255, 204, 5, 0.1);
  border: 1px solid rgba(255, 204, 5, 0.36);
  color: var(--yellow);
  font-weight: 800;
}

.facebook-corner {
  position: absolute !important;
  right: 14px !important;
  top: 118px !important;
  bottom: auto !important;
  z-index: 8;
  width: min(300px, calc(100vw - 28px));
  height: 450px;
  margin: 0 !important;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 14px 36px rgba(0,0,0,0.32);
  overflow: hidden;
  transform: translateZ(0);
}

.facebook-corner iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.background-music {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 12;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0.01;
}

.music-toggle {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 70;
  width: 44px;
  min-height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  background: var(--yellow);
  border: 1px solid var(--yellow);
  color: #05070d;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.music-toggle svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.music-toggle .speaker-body {
  fill: currentColor;
  stroke: currentColor;
}

.music-toggle .speaker-muted-line {
  display: none;
}

.music-toggle.is-muted {
  background: var(--surface);
  color: var(--muted);
  border-color: var(--line);
}

.music-toggle.is-muted .speaker-wave {
  display: none;
}

.music-toggle.is-muted .speaker-muted-line {
  display: block;
}

.signup-row form {
  margin: 0;
}

.signup-row span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

.signup-meta-line {
  display: block;
  margin-top: 5px;
  color: #8f98aa;
  font-size: 12px;
  font-weight: 700;
}

.signup-row.printed {
  border-color: rgba(74, 222, 128, 0.65);
  background: rgba(34, 197, 94, 0.16);
}

.ticket-toggle {
  min-width: 118px;
  min-height: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  background: rgba(255, 204, 5, 0.12);
  color: var(--yellow);
  border: 1px solid rgba(255, 204, 5, 0.48);
}

.signup-row.printed .ticket-toggle {
  background: rgba(74, 222, 128, 0.18);
  color: var(--ok);
  border-color: rgba(74, 222, 128, 0.6);
}

.delete-icon-button {
  display: grid;
  place-items: center;
  min-width: 46px;
  min-height: 46px;
  padding: 0;
  background: rgba(215, 25, 32, 0.12);
  border: 1px solid rgba(215, 25, 32, 0.5);
  color: #ffffff;
}

.delete-icon-button span {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--delete-icon-size, 19px);
  height: var(--delete-icon-size, 19px);
  border: 0;
}

.delete-icon-button span::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M8 6V4h8v2'/%3E%3Cpath d='M19 6l-1 14H6L5 6'/%3E%3Cpath d='M10 11v6'/%3E%3Cpath d='M14 11v6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M8 6V4h8v2'/%3E%3Cpath d='M19 6l-1 14H6L5 6'/%3E%3Cpath d='M10 11v6'/%3E%3Cpath d='M14 11v6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.delete-icon-button span::after {
  content: "";
  display: none;
}

.floating-cart-wrap {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 25;
  display: grid;
  justify-items: end;
  gap: 12px;
}

.scroll-top-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  margin: 0 8px 14px 0;
  padding: 0;
  border-radius: 50%;
  background: var(--surface);
  color: var(--yellow);
  border: 1px solid rgba(255, 204, 5, 0.45);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

.floating-cart {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  background: var(--yellow);
  color: #08090d;
  border-radius: 50%;
  border: 0;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34), 0 0 0 5px rgba(255, 204, 5, 0.16);
  text-decoration: none;
}

.cart-popover {
  position: absolute;
  right: 0;
  bottom: 78px;
  width: 380px;
  max-height: 520px;
  overflow: auto;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 22px 60px rgba(0,0,0,0.35);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 170ms ease, transform 170ms ease;
}

.floating-cart:hover + .cart-popover,
.cart-popover:hover {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cart-popover b {
  display: block;
  margin-top: 12px;
  color: var(--yellow);
  text-align: right;
}

.mini-cart-row {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.mini-cart-row img,
.mini-cart-row span {
  width: 52px;
  aspect-ratio: 1;
  object-fit: cover;
  background: linear-gradient(135deg, var(--blue), var(--red));
}

.mini-cart-row span {
  display: grid;
  place-items: center;
  color: var(--yellow);
  font-weight: 900;
}

.mini-cart-row strong,
.mini-cart-row small {
  display: block;
}

.mini-cart-row small {
  color: var(--muted);
  margin-top: 4px;
}

.cart-symbol {
  width: 43px;
  height: 43px;
  fill: none;
  stroke: #08090d;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.floating-cart #cartCount {
  position: absolute;
  right: -9px;
  top: 1px;
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--red);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.muted-row {
  opacity: 0.55;
}

.map-needed {
  display: grid;
  gap: 8px;
  padding: 22px;
  background: var(--surface-3);
  border: 1px dashed rgba(255, 204, 5, 0.5);
}

inpost-geowidget {
  display: block;
  height: 520px;
}

[hidden] {
  display: none !important;
}

.color-size-picker {
  display: grid;
  gap: 14px;
  padding: 22px 0;
  border-top: 1px solid #d9d9d9;
  border-bottom: 1px solid #d9d9d9;
}

.color-size-picker > span {
  color: #465064;
  font-weight: 900;
  text-transform: uppercase;
}

.color-choice-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.color-choice-list label {
  position: relative;
  min-width: 126px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid #d9d9d9;
  color: #07080d;
  cursor: pointer;
}

.color-choice-list input {
  position: absolute;
  opacity: 0;
}

.color-choice-list i {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #08090d;
  box-shadow: inset 0 0 0 4px #ffffff;
}

.color-choice-list label:has(input:checked) {
  border-color: #08090d;
  box-shadow: inset 0 -4px 0 var(--yellow);
}

.color-choice-list b,
.color-choice-list small {
  display: block;
  margin-top: 7px;
}

.color-choice-list small {
  color: #6c7280;
}

.order-list .order-items {
  gap: 0;
  padding-top: 6px;
}

.order-list .order-item-line.compact {
  min-height: 30px;
  padding: 3px 0;
  font-size: 12px;
}

.order-list .order-item-line.compact small {
  font-size: 11px;
}

.order-item-line {
  color: inherit;
  text-decoration: none;
}

.order-item-line:hover strong {
  color: var(--yellow);
}

.order-total-line {
  grid-template-columns: minmax(0, 1fr) minmax(90px, auto);
  border-top: 1px solid var(--line);
  color: var(--yellow);
  font-weight: 900;
}

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

.delivery-fields label:first-child {
  grid-column: 1 / -1;
}

.checkout-form {
  gap: 12px;
}

.checkout-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.checkout-fields-grid label:last-child {
  grid-column: 1 / -1;
}

.checkout-notes {
  display: block;
}

.checkout-notes input {
  width: 100%;
}

.checkout-summary {
  display: grid;
  gap: 8px;
  padding: 18px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.checkout-summary h2 {
  margin: 0 0 6px;
  color: var(--yellow);
}

.checkout-summary hr {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--line);
  margin: 8px 0;
}

.checkout-summary-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
  color: var(--text);
  text-decoration: none;
}

.checkout-summary-item:hover span {
  color: var(--yellow);
}

.checkout-summary-item img,
.checkout-summary-item i {
  width: 46px;
  height: 46px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--blue), var(--red));
}

.checkout-summary-item i {
  display: grid;
  place-items: center;
  color: var(--yellow);
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
}

.checkout-summary-item span {
  min-width: 0;
  color: var(--muted);
  transition: color 160ms ease;
}

.checkout-discount-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.checkout-discount-line del {
  color: #8f98aa;
  text-decoration-color: rgba(215, 25, 32, 0.85);
}

.checkout-discount-line b {
  color: var(--yellow);
}

.checkout-discount-line em {
  display: inline-grid;
  place-items: center;
  min-height: 20px;
  padding: 2px 7px;
  background: #d71920;
  color: #fff;
  font-style: normal;
  font-weight: 900;
}

.checkout-discount-line i {
  width: auto;
  height: auto;
  background: transparent;
  color: var(--muted);
  font-size: inherit;
  font-style: normal;
  font-weight: 700;
}

.checkout-summary p {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  color: var(--muted);
}

.checkout-summary strong {
  color: var(--text);
}

.checkout-summary .total {
  margin-top: 8px;
  color: var(--yellow);
  font-weight: 900;
}

.phone-row {
  display: grid;
  grid-template-columns: minmax(130px, 0.35fr) 1fr;
  gap: 12px;
}

.register-name-row,
.register-contact-row {
  display: grid;
  gap: 12px;
}

.register-name-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.register-contact-row {
  grid-template-columns: minmax(250px, 1.15fr) minmax(220px, 1.2fr);
  align-items: end;
}

.register-phone-field {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-weight: 800;
}

.register-phone-combo {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
}

.register-phone-combo select {
  border-right: 0;
}

.register-district-other {
  width: 100%;
  justify-self: stretch;
}

.g-recaptcha {
  min-height: 78px;
}

.remember-check {
  justify-content: flex-end;
  justify-self: end;
  font-size: 13px;
  color: var(--muted);
}

.remember-check input {
  width: 14px;
  min-height: 14px;
}

.small-account-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin-top: 12px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 204, 5, 0.32);
  color: var(--text);
  text-decoration: none;
  font-weight: 900;
  box-shadow: inset 0 -3px 0 rgba(255, 204, 5, 0.18);
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease, transform 160ms ease;
}

.small-account-link:hover {
  background: rgba(255, 204, 5, 0.1);
  border-color: var(--yellow);
  color: var(--yellow);
  transform: translateY(-1px);
}

.login-link-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.login-link-actions .small-account-link {
  margin-top: 0;
}

.signup-limit-note {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.signup-limit-note span {
  padding: 5px 8px;
  background: rgba(255, 204, 5, 0.1);
  border: 1px solid rgba(255, 204, 5, 0.34);
  color: var(--yellow);
  font-size: 13px;
  font-weight: 900;
}

.signup-price-list {
  display: grid;
  gap: 12px;
  align-self: start;
  width: 100%;
  padding: 13px 14px;
  background: linear-gradient(135deg, rgba(255, 204, 5, 0.08), rgba(0, 87, 184, 0.08));
  border: 1px solid rgba(255, 204, 5, 0.24);
  box-shadow: inset 4px 0 0 rgba(255, 204, 5, 0.85);
  color: var(--muted);
  font-size: 13px;
}

.signup-price-row,
.signup-price-thresholds {
  display: grid;
  gap: 8px 14px;
  align-items: start;
}

.signup-price-thresholds {
  padding-top: 10px;
  border-top: 1px solid rgba(255, 204, 5, 0.18);
}

.signup-price-threshold {
  display: grid;
  gap: 7px;
}

.signup-price-threshold + .signup-price-threshold {
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.signup-price-list strong {
  color: var(--yellow);
  font-size: 15px;
  text-transform: uppercase;
}

.signup-price-list span {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--text);
}

.signup-price-list em {
  color: var(--muted);
  font-style: normal;
}

.signup-price-list b {
  color: var(--text);
  text-align: right;
}

.account-panel {
  padding-top: 28px;
}

.account-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}

.account-header h1,
.account-header p,
.account-header form {
  margin: 0;
}

.account-header p {
  color: var(--muted);
  margin-top: 6px;
}

.account-settings-layout {
  display: grid;
  gap: 14px;
}

.account-edit {
  padding: 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.account-edit h2 {
  margin: 0 0 12px;
  color: var(--yellow);
  font-size: 18px;
}

.account-data-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.account-data-form .wide {
  grid-column: span 2;
}

.account-data-form button {
  min-height: 45px;
}

.account-security-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 14px;
  align-items: start;
}

.admin-user-create {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 16px;
  border-top: 1px solid var(--line);
}

.admin-user-create button,
.account-security-grid .account-edit {
  align-self: start;
}

.account-2fa-card {
  min-height: 100%;
}

.totp-box {
  display: grid;
  gap: 6px;
  padding: 12px;
  background: rgba(255, 200, 0, 0.08);
  border: 1px solid rgba(255, 200, 0, 0.28);
}

.totp-box span,
.totp-box small {
  color: var(--muted);
}

.totp-box strong {
  word-break: break-all;
  color: var(--yellow);
  letter-spacing: 0;
}

.totp-box.compact {
  margin: 0;
}

.totp-status {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(34, 197, 94, 0.32);
  background: rgba(34, 197, 94, 0.1);
  color: var(--muted);
  font-size: 0.9rem;
}

.totp-modal {
  max-width: 480px;
}

.totp-qr {
  width: 220px;
  height: 220px;
  margin: 10px auto 14px;
  display: block;
  background: #ffffff;
  padding: 10px;
}

.phone-combo {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 8px;
}

.phone-combo select,
.phone-combo input {
  width: 100%;
}

.admin-user-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, auto);
  gap: 12px;
  align-items: start;
  padding: 18px;
  border-top: 1px solid var(--line);
}

.admin-user-search {
  margin-top: 0;
  width: 100%;
}

.admin-user-create-panel {
  position: relative;
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.admin-user-create-panel > summary {
  display: grid;
  place-items: center;
  min-height: 48px;
  padding: 0 18px;
  background: var(--yellow);
  color: #08090d;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.admin-user-create-panel > summary::-webkit-details-marker,
.admin-user-create-panel > summary::marker {
  display: none;
  content: "";
}

.admin-user-create-panel[open] {
  grid-column: 1 / -1;
}

.admin-user-list {
  display: grid;
  gap: 10px;
}

.admin-user-row {
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.admin-user-row summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  cursor: pointer;
}

.admin-user-row summary strong {
  color: var(--yellow);
}

.admin-user-row summary span {
  color: var(--muted);
}

.admin-user-row form {
  padding: 14px;
  border-top: 1px solid var(--line);
}

.admin-user-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-user-actions > button:first-child {
  flex: 1 1 auto;
}

.admin-user-actions .danger {
  flex: 0 0 auto;
}

.inline-delete-form {
  display: none !important;
}

.order-modal-items .order-item-line {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.order-modal-items .order-item-line:has(+ .order-summary-start) {
  border-bottom: 0;
}

.order-modal-items .order-item-line.last-product-line {
  border-bottom: 0;
}

.order-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 6px 0;
  color: var(--muted);
}

.order-summary-row b {
  color: var(--text);
}

.order-summary-row.order-total-line {
  padding-top: 10px;
  color: var(--yellow);
  font-weight: 900;
}

.order-summary-start {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding-top: 88px;
  padding-right: clamp(28px, 8vw, 150px);
  background: transparent;
  opacity: 0;
  transition: opacity 220ms ease;
}

.login-overlay[hidden] {
  display: none;
}

.login-overlay.open {
  opacity: 1;
}

.login-drawer {
  width: min(430px, calc(100vw - 32px));
  padding: 44px 70px 54px;
  background: rgba(13, 15, 23, 0.98);
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
  transform: translateY(-130%);
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.login-overlay.open .login-drawer {
  transform: translateY(0);
}

.login-drawer h2 {
  margin-bottom: 30px;
  color: var(--text);
  text-align: center;
  font-size: 30px;
}

.drawer-form {
  display: grid;
  gap: 22px;
}

.drawer-form input:not([type="checkbox"]) {
  min-height: 46px;
  border: 1px solid var(--line);
  border-bottom: 2px solid rgba(255, 204, 5, 0.58);
  background: var(--surface-2);
  color: var(--text);
  text-align: center;
}

.drawer-form .remember-check {
  margin-top: -10px;
  margin-bottom: -8px;
  font-size: 12px;
}

.drawer-form a,
.drawer-register {
  color: var(--text);
  text-align: center;
  text-decoration: none;
  font-weight: 800;
}

.drawer-form button {
  margin-top: 2px;
  min-height: 58px;
  background: rgba(255, 204, 5, 0.08);
  color: var(--text);
  border: 2px solid rgba(255, 204, 5, 0.46);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.drawer-register {
  display: block;
  margin-top: 18px;
}

.login-close {
  position: fixed;
  top: 42px;
  right: clamp(28px, 8vw, 150px);
  z-index: 41;
  min-width: 42px;
  min-height: 42px;
  padding: 0;
  background: transparent;
  color: var(--yellow);
  border: 0;
  font-size: 38px;
  line-height: 1;
}

.toast-stack {
  position: fixed;
  right: 18px;
  top: calc(88px + env(safe-area-inset-top, 0px));
  bottom: auto;
  z-index: 260;
  display: grid;
  gap: 10px;
  justify-items: end;
  pointer-events: none;
}

.toast-stack > * {
  pointer-events: auto;
}

.toast-message {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  min-width: min(280px, calc(100vw - 32px));
  max-width: min(360px, calc(100vw - 32px));
  padding: 12px 12px 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 180ms ease, transform 180ms ease;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.36);
}

.toast-message.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-message.ok {
  border-color: rgba(74, 222, 128, 0.55);
}

.toast-message.error {
  border-color: rgba(251, 113, 133, 0.65);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateY(14px);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .admin-category {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .account-data-form,
  .account-security-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    background-attachment: scroll;
  }

  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
  }

  .mobile-nav-toggle {
    display: inline-grid;
    place-items: center;
    align-content: center;
    gap: 5px;
    width: 48px;
    min-height: 42px;
    padding: 8px 12px;
    background: rgba(255, 204, 5, 0.08);
    border: 1px solid rgba(255, 204, 5, 0.36);
    color: var(--text);
  }

  .mobile-nav-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--yellow);
  }

  .site-nav {
    grid-column: 1 / -1;
    display: none;
    width: 100%;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    overflow-x: auto;
    scrollbar-width: thin;
  }

  body.mobile-nav-open .site-nav {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 6px;
    overflow-x: visible;
  }

  .logo {
    max-width: 100%;
    font-size: 17px;
    line-height: 1.05;
  }

  .logo img {
    width: 36px;
    height: 36px;
  }

  .page {
    width: min(100% - 20px, 1180px);
    padding: 20px 0 86px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 14px;
  }

  .nav-center,
  .nav-right {
    display: contents;
  }

  .site-nav a,
  .site-nav button,
  .nav-login {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 36px;
    padding: 8px 6px;
    font-size: 14px;
    white-space: nowrap;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.035);
  }

  .nav-shop-menu,
  .nav-logout {
    min-width: 0;
    margin: 0;
  }

  .nav-shop-dropdown {
    position: static;
    display: none;
    min-width: min(360px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    margin-top: 6px;
    column-gap: 32px;
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: none;
  }

  .nav-shop-menu:hover .nav-shop-dropdown,
  .nav-shop-menu:focus-within .nav-shop-dropdown {
    display: grid;
    transform: none;
  }

  .shop-tools {
    grid-template-columns: 1fr;
  }

  .product-search {
    justify-self: stretch;
  }

  .product-search label {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .register-name-row,
  .register-contact-row {
    grid-template-columns: 1fr;
  }

  .register-district-other {
    width: 100%;
  }

  .two-col,
  .admin-quick-actions,
  .checkout-choice,
  .signup-dashboard,
  .district-chart,
  .signup-detail,
  .admin-edit-form,
  .order-row,
  .signup-row,
  .price-rule-form,
  .site-settings-grid,
  .district-trip-stats,
  .account-data-form,
  .account-security-grid,
  .checkout-fields-grid,
  .music-edit-form,
  .music-time-grid,
  .price-rule-create-row,
  .variant-builder-row {
    grid-template-columns: 1fr;
  }

  .panel,
  .notice {
    padding: 16px;
  }

  img,
  video,
  svg {
    max-width: 100%;
  }

  input,
  select,
  textarea,
  button,
  .button {
    max-width: 100%;
  }

  .card,
  .panel,
  .notice,
  .admin-product,
  .signup-row,
  .order-row,
  .cart-row {
    min-width: 0;
  }

  .hero {
    min-height: 360px;
    padding: 26px 18px;
  }

  .hero p:not(.eyebrow) {
    font-size: 16px;
  }

  .actions,
  .split-submit,
  .cart-summary-actions,
  .admin-user-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .actions > *,
  .split-submit > *,
  .cart-summary-actions > *,
  .admin-user-actions > * {
    width: 100%;
  }

  .category-bar,
  .category-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 4px;
  }

  .category-bar a,
  .category-tabs a {
    flex: 0 0 auto;
  }

  .district-add-form,
  .district-admin-row,
  .district-admin-row form:first-child,
  .shop-category-add-form,
  .shop-category-admin-row,
  .shop-category-admin-row form:first-child {
    grid-template-columns: 1fr;
  }

  .signup-price-list {
    width: 100%;
  }

  .account-data-form .wide,
  .checkout-fields-grid label:last-child {
    grid-column: auto;
  }

  .account-header {
    flex-direction: column;
  }

  .order-items {
    grid-column: 1;
    grid-row: auto;
  }

  .modal-backdrop {
    align-items: start;
    padding: 12px;
  }

  .modal-card {
    width: min(100%, 680px);
    max-height: calc(100vh - 24px);
    padding: 18px;
  }

  .order-modal h2 {
    padding-right: 44px;
    font-size: clamp(28px, 8vw, 42px);
    line-height: 1.05;
  }

  .order-info-grid {
    gap: 8px;
  }

  .order-info-grid p,
  .order-modal-items {
    padding: 10px;
  }

  .order-item-line,
  .order-item-line.compact {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 8px 12px;
    align-items: center;
    padding: 12px 0;
  }

  .order-item-line img,
  .order-item-line i {
    grid-row: 1 / span 3;
    width: 72px;
    height: 72px;
  }

  .order-item-line span,
  .order-item-line em,
  .order-item-line b {
    grid-column: 2;
    min-width: 0;
    text-align: left;
  }

  .order-item-line strong {
    overflow-wrap: break-word;
    word-break: normal;
    line-height: 1.15;
  }

  .order-item-line em {
    line-height: 1.2;
  }

  .order-item-line b {
    font-size: 18px;
    line-height: 1.15;
  }

  .order-summary-row {
    align-items: flex-start;
  }

  .order-summary-row span {
    min-width: 0;
    overflow-wrap: break-word;
  }

  .ticket-send-form {
    align-items: stretch;
    flex-direction: column;
  }

  .order-search {
    width: 100%;
    flex-direction: column;
  }

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

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

  .shop-grid .product {
    padding: 10px;
  }

  .shop-grid .product img,
  .shop-grid .placeholder {
    height: auto;
    aspect-ratio: 1 / 1.12;
  }

  .shop-grid .product h2 {
    font-size: 15px;
    line-height: 1.12;
  }

  .shop-grid .product p,
  .shop-grid .meta {
    font-size: 12px;
  }

  .product-link {
    min-height: 0;
  }

  .product-link h2 {
    min-height: 0;
  }

  .cart-row {
    grid-template-columns: 70px minmax(0, 1fr) 54px;
    gap: 12px;
    padding: 12px;
  }

  .cart-row input {
    grid-column: 2;
    width: min(130px, 100%);
  }

  .cart-remove {
    grid-column: 3;
    grid-row: 1 / span 2;
    justify-self: end;
  }

  .cart-row img,
  .mini-placeholder,
  .cart-product-image {
    width: 70px;
  }

  .account-signup-card {
    grid-template-columns: 1fr;
  }

  .account-signup-card b {
    text-align: left;
  }

  .account-signup-pay-form,
  .account-signup-pay-form button {
    width: 100%;
  }

  .cart-summary {
    grid-template-columns: 1fr;
  }

  .cart-summary-actions {
    grid-column: 1;
    grid-row: auto;
    justify-content: stretch;
  }

  h1 {
    font-size: 34px;
    line-height: 1.05;
  }

  .panel.narrow h1 {
    font-size: clamp(27px, 6.8vw, 34px);
  }

  .product-detail,
  .product-gallery {
    grid-template-columns: 1fr;
  }

  .product-detail {
    padding: 14px;
  }

  .thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    order: 2;
  }

  .main-photo {
    order: 1;
  }

  .product-buy h1 {
    font-size: 30px;
  }

  .detail-price {
    margin: 18px 0 22px;
    padding-bottom: 22px;
  }

  .detail-price strong {
    font-size: 27px;
  }

  .size-picker,
  .spray-picker,
  .color-size-picker {
    gap: 8px;
  }

  .buy-row {
    grid-template-columns: 1fr;
  }

  .shop-sort,
  .shop-sort label {
    align-items: stretch;
  }

  .shop-sort label {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .shop-sort select {
    min-width: 0;
  }

  .away-prices {
    grid-template-columns: 1fr;
  }

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

  .participant-card,
  .signup-payment-summary,
  .signup-price-list {
    padding: 12px;
  }

  .district-chart {
    justify-items: start;
  }

  .district-legend {
    width: 100%;
  }

  .district-stat-links {
    grid-template-columns: 1fr;
  }

  .district-legend a,
  .district-legend p {
    width: 100%;
  }

  .district-trip-list {
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
    width: calc(100vw - 24px);
    max-height: min(420px, calc(100vh - 96px));
    padding: 10px;
  }

  .district-picker-list {
    max-height: 240px;
  }

  .district-logo-badge {
    width: 32px;
    height: 32px;
  }

  details.admin-modal-details.modal-details-open {
    padding: 48px 10px 18px;
  }

  details.admin-modal-details.modal-details-open > form,
  details.admin-modal-details.modal-details-open > .price-rules,
  details.admin-modal-details.modal-details-open > .actions,
  details.admin-modal-details.modal-details-open > .delete-form {
    width: calc(100vw - 20px);
  }

  details.admin-modal-details.modal-details-open > form.stack,
  details.admin-modal-details.modal-details-open .away-prices,
  .price-rule-edit-row,
  .price-rule-create-row {
    grid-template-columns: 1fr;
  }

  .price-rule-delete-form {
    justify-self: start;
    padding-top: 0;
  }

  .price-rule-delete-form .delete-icon-button,
  .price-rule-create-row .delete-icon-button {
    width: 100%;
    min-width: 0;
  }

  .admin-collapsible > summary,
  details.admin-collapsible > summary,
  .district-admin-compact > summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    min-height: 0;
    padding: 16px;
  }

  .admin-collapsible > summary small,
  .admin-collapsible > summary p,
  .district-admin-compact summary small {
    text-align: left;
  }

  .district-admin-logo {
    width: 52px;
    height: 52px;
  }

  .site-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 16px;
    padding: 24px 16px;
  }

  .site-footer .footer-categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 14px;
  }

  .site-footer .footer-shop-info {
    grid-column: 1 / -1;
  }

  .site-footer h2 {
    font-size: 17px;
  }

  .site-footer a,
  .site-footer p {
    font-size: 13px;
    overflow-wrap: anywhere;
  }

  .site-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 18px;
  }

  .floating-cart-wrap {
    right: 12px;
    bottom: 12px;
  }

  .scroll-top-button {
    width: 38px;
    height: 38px;
    min-height: 38px;
  }

  .login-drawer {
    width: calc(100vw - 24px);
    padding: 38px 28px 42px;
  }

  .login-close {
    right: 22px;
  }
}

@media (max-width: 480px) {
  .toast-stack {
    top: calc(72px + env(safe-area-inset-top, 0px));
    right: 10px;
  }

  .payment-success h1 {
    font-size: clamp(1.45rem, 8vw, 2rem);
  }

  .payment-success-mark {
    width: 72px;
    height: 72px;
  }

  .page {
    width: calc(100% - 14px);
  }

  .topbar {
    padding-inline: 8px;
  }

  .logo {
    font-size: 15px;
  }

  .site-nav a,
  .site-nav button,
  .nav-login {
    padding-inline: 8px;
    font-size: 13px;
  }

  .nav-shop-dropdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 2px;
    min-width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    column-gap: 20px;
  }

  .panel,
  .notice {
    padding: 12px;
  }

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

  .shop-grid .product {
    padding: 8px;
  }

  .shop-grid .product h2 {
    font-size: 13px;
  }

  .cart-row {
    grid-template-columns: 58px minmax(0, 1fr) 46px;
    gap: 10px;
  }

  .cart-row img,
  .mini-placeholder,
  .cart-product-image {
    width: 58px;
  }

  .cart-remove {
    min-width: 42px;
    min-height: 42px;
  }

  .signup-size-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .signup-size-picker > span {
    grid-column: 1 / -1;
  }

  .district-picker-button {
    grid-template-columns: 30px minmax(0, 1fr) 16px;
    gap: 8px;
    padding-inline: 9px;
  }

  .district-picker-option {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .district-logo-badge,
  .district-inline-logo {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }
}

.season-filter {
  margin: 8px 0 14px;
}

.season-filter label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.85rem;
}

.admin-collapsible > summary .compact-search:has(select) {
  grid-template-columns: minmax(108px, 0.62fr) minmax(135px, 1fr) minmax(82px, auto);
}

.season-settings {
  align-content: start;
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

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

.season-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.season-list span {
  color: var(--yellow);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.payment-success,
.payment-gateway {
  max-width: 720px;
  margin: 36px auto;
}

.payment-success {
  position: relative;
  overflow: hidden;
  text-align: center;
}

.payment-success::before,
.payment-success::after {
  content: "";
  position: absolute;
  inset: auto;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(28px);
  opacity: 0.28;
}

.payment-success::before {
  top: -90px;
  left: -70px;
  background: var(--blue);
  animation: successGlowBlue 3.2s ease-in-out infinite;
}

.payment-success::after {
  right: -80px;
  bottom: -100px;
  background: var(--red);
  animation: successGlowRed 3.2s ease-in-out infinite;
}

.payment-success > * {
  position: relative;
  z-index: 1;
}

.payment-success h1 {
  white-space: nowrap;
  font-size: clamp(2rem, 4.6vw, 3.2rem);
}

.payment-success-mark {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  margin: 0 auto 16px;
  border: 2px solid rgba(255, 204, 5, 0.72);
  border-radius: 999px;
  background: rgba(255, 204, 5, 0.1);
  box-shadow: 0 0 0 0 rgba(255, 204, 5, 0.35), 0 0 36px rgba(0, 87, 184, 0.32), 0 0 42px rgba(215, 25, 32, 0.22);
  animation: successPulse 1.9s ease-in-out infinite;
}

.payment-success-mark span {
  width: 34px;
  height: 18px;
  border-left: 5px solid var(--yellow);
  border-bottom: 5px solid var(--yellow);
  transform: rotate(-45deg) translate(3px, -2px);
  animation: successCheck 520ms ease-out both;
}

@keyframes successPulse {
  50% {
    box-shadow: 0 0 0 14px rgba(255, 204, 5, 0), 0 0 48px rgba(0, 87, 184, 0.42), 0 0 54px rgba(215, 25, 32, 0.32);
    transform: scale(1.04);
  }
}

@keyframes successCheck {
  from {
    opacity: 0;
    transform: rotate(-45deg) translate(3px, -2px) scale(0.62);
  }
  to {
    opacity: 1;
    transform: rotate(-45deg) translate(3px, -2px) scale(1);
  }
}

@keyframes successGlowBlue {
  50% {
    opacity: 0.42;
    transform: translate(18px, 10px) scale(1.08);
  }
}

@keyframes successGlowRed {
  50% {
    opacity: 0.42;
    transform: translate(-16px, -8px) scale(1.08);
  }
}

.payment-gateway-box {
  display: grid;
  gap: 6px;
  margin: 18px 0;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.payment-gateway-box span {
  color: var(--muted);
}

.payment-gateway-box strong {
  color: var(--yellow);
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.admin-stat-panel {
  min-height: 190px;
}

.admin-stat-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.admin-stat-grid > .panel,
.admin-stat-grid > details.panel {
  width: 100%;
  min-width: 0;
}

.admin-stat-grid > details.compact-history {
  min-height: 82px;
}

.admin-compact-stat-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  margin-bottom: 18px;
}

.admin-compact-stat-grid > details.panel,
.admin-compact-stat-grid > details.panel.admin-collapsible {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin-top: 0;
}

.admin-compact-stat-grid > details.panel.admin-collapsible + details.panel.admin-collapsible {
  margin-top: 0;
}

.admin-compact-stat-grid > details.compact-history:not([open]) {
  height: 88px;
  min-height: 88px;
  overflow: visible;
}

.admin-compact-stat-grid > details.compact-history:not([open]) > summary {
  height: 86px;
  min-height: 86px;
  box-sizing: border-box;
}

.admin-compact-stat-grid > details.compact-history.admin-collapsible:not([open]) {
  display: block;
}

.stat-panel-head {
  display: grid;
  grid-template-columns: auto auto;
  gap: 16px;
  align-items: start;
  justify-content: space-between;
}

.stat-panel-head h2 {
  margin: 0;
}

.season-filter.inline {
  justify-self: end;
  margin: 0;
}

.season-filter.inline select {
  min-width: 150px;
  min-height: 40px;
  padding-block: 8px;
}

.compact-history.admin-collapsible > summary {
  display: grid;
  grid-template-columns: minmax(128px, 0.55fr) minmax(0, 1.45fr);
  gap: 14px;
  min-height: 80px;
  height: 80px;
  align-items: center;
  align-content: center;
  padding-inline: 24px;
  overflow: hidden;
}

.compact-history.admin-collapsible > summary > div {
  display: flex;
  align-items: center;
  height: 100%;
}

.compact-history.admin-collapsible > summary h2 {
  margin: 0;
  line-height: 1.05;
}

.compact-history.admin-collapsible > summary .compact-search {
  display: grid;
  grid-template-columns: minmax(98px, 0.85fr) minmax(0, 1.25fr) auto;
  align-items: center;
  align-content: center;
  min-width: 0;
  width: 100%;
  justify-self: end;
  height: 100%;
}

.compact-history.admin-collapsible > summary .compact-search select,
.compact-history.admin-collapsible > summary .compact-search input {
  min-height: 40px;
  padding-block: 8px;
}

.compact-history.admin-collapsible > summary .compact-search button {
  min-height: 40px;
  padding-inline: 18px;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .stat-panel-head,
  .compact-history.admin-collapsible > summary,
  .admin-user-toolbar {
    grid-template-columns: 1fr;
  }

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

  .site-settings-grid > form:first-child,
  .shop-hours-admin,
  .footer-links-admin {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 620px) {
  .site-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 14px;
  }

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

  .site-footer .footer-shop-info {
    grid-column: 1 / -1;
  }

  .site-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .facebook-corner {
    display: none !important;
  }
}

@media (max-width: 1400px) {
  .facebook-corner {
    position: absolute !important;
    right: 14px !important;
    top: 118px !important;
    width: min(300px, calc(100vw - 28px));
    height: 450px;
    margin: 0 !important;
  }
}

@media print {
  @page {
    margin: 14mm;
  }

  html,
  body {
    background: #fff !important;
    background-image: none !important;
    min-height: auto !important;
    overflow: visible !important;
  }

  body::before,
  body::after,
  .page::before,
  .page::after {
    display: none !important;
    content: none !important;
  }

  body > *:not(.page),
  .page > *:not(.signup-print-report) {
    display: none !important;
  }

  .page {
    display: block !important;
    min-height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    background-image: none !important;
    box-shadow: none !important;
  }

  .signup-print-report {
    display: block !important;
    position: static !important;
    width: 100%;
    min-height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #000;
    background: #fff !important;
    background-image: none !important;
    font-family: Arial, sans-serif;
    box-shadow: none !important;
  }

  .signup-print-report h1 {
    margin: 0 0 6px;
    font-size: 22px;
  }

  .signup-print-report h2 {
    margin: 18px 0 8px;
    font-size: 16px;
  }

  .signup-print-report table {
    width: 100%;
    border-collapse: collapse;
    page-break-inside: avoid;
  }

  .signup-print-report th,
  .signup-print-report td {
    padding: 7px 9px;
    border: 1px solid #222;
    text-align: left;
    font-size: 12px;
  }

  .signup-print-report th {
    background: #eee;
  }
}
