@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
:root {
  font-family:
    Inter,
    system-ui,
    -apple-system,
    "Segoe UI",
    Arial,
    sans-serif;
  color: #161719;
  background: #f8f8fa;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --red: #d4000b;
  --red-dark: #b90009;
  --ink: #17181a;
  --muted: #667080;
  --line: #e6e8ed;
  --panel: #fff;
  --side: #111113;
  --green: #168a28;
  --shadow: 0 8px 28px rgba(22, 28, 39, 0.055);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
a {
  color: inherit;
  text-decoration: none;
}
.app-shell {
  min-height: 100vh;
}
.icon {
  width: 22px;
  height: 22px;
  display: block;
  flex: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.sidebar {
  position: fixed;
  z-index: 30;
  inset: 0 auto 0 0;
  width: 268px;
  padding: 24px 16px 18px;
  background: var(--side);
  color: #f6f6f7;
  display: flex;
  flex-direction: column;
  box-shadow: 10px 0 32px rgba(0, 0, 0, 0.1);
}
.sidebar-brand {
  height: 72px;
  padding: 0 10px 20px;
  border-bottom: 1px solid #2c2c30;
}
.sidebar-brand > a,
.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid #e9e9eb;
  border-radius: 12px;
  color: white;
  font-size: 23px;
  font-weight: 800;
  line-height: 1;
}
.sidebar-brand strong,
.login-brand strong {
  display: block;
  font-size: 16px;
  letter-spacing: 0.01em;
}
.sidebar-brand small,
.login-brand small {
  display: block;
  color: #9c9da3;
  font-size: 9px;
  letter-spacing: 0.15em;
  margin-top: 4px;
}
.primary-navigation {
  padding-top: 24px;
  display: grid;
  gap: 7px;
}
.nav-link {
  width: 100%;
  min-height: 50px;
  padding: 0 13px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #e3e3e5;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  transition:
    background 0.16s,
    color 0.16s;
}
.nav-link:hover,
.subnav-link:hover {
  background: #242427;
  color: #fff;
}
.nav-link .icon {
  width: 21px;
  height: 21px;
}
.nav-link.active {
  background: #29292d;
  color: #fff;
}
.nav-parent {
  cursor: pointer;
}
.nav-parent.expanded {
  background: #202023;
  color: #fff;
}
.nav-chevron {
  margin-left: auto;
  color: #aaa;
  transition: transform 0.2s;
}
.nav-parent.expanded .nav-chevron {
  transform: rotate(180deg);
}
.subnav {
  display: none;
  padding: 2px 0 7px 48px;
  gap: 3px;
}
.subnav.open {
  display: grid;
}
.subnav-link {
  min-height: 38px;
  padding: 0 11px;
  display: flex;
  align-items: center;
  color: #bfc0c5;
  border-radius: 9px;
  font-size: 13px;
}
.subnav-link:before {
  content: "";
  width: 5px;
  height: 5px;
  margin-right: 10px;
  border-radius: 50%;
  background: #67686d;
}
.subnav-link.active {
  color: #fff;
  background: #28282c;
}
.subnav-link.active:before {
  background: #f5f5f6;
}
.sidebar-bottom {
  margin-top: auto;
  display: grid;
  gap: 7px;
}
.sidebar-bottom .nav-link {
  color: #c5c6ca;
}
.sidebar-bottom .nav-link:hover {
  color: #fff;
}
.sidebar-version {
  padding: 13px 13px 0;
  color: #7e7f84;
  border-top: 1px solid #2c2c30;
  font-size: 10px;
  letter-spacing: 0.04em;
}
.mobile-close,
.menu-trigger,
.mobile-scrim {
  display: none;
}
.app-content {
  margin-left: 268px;
  min-height: 100vh;
}
.topbar {
  height: 70px;
  padding: 0 clamp(20px, 3vw, 44px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #eceef1;
  background: rgba(255, 255, 255, 0.88);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #89909a;
  font-size: 12px;
}
.breadcrumb .icon {
  width: 15px;
  height: 15px;
}
.breadcrumb strong {
  color: #25272b;
  font-weight: 600;
}
.topbar-account {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #535860;
  font-size: 12px;
  font-weight: 500;
}
.account-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff0f0;
  color: var(--red);
  font-weight: 700;
}
.main-content {
  width: min(100%, 1500px);
  margin: 0 auto;
  padding: 24px clamp(20px, 3vw, 44px) 48px;
  outline: 0;
}
.home-banner,
.page-banner {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #9b765a;
  isolation: isolate;
  color: #fff;
  box-shadow: var(--shadow);
}
.home-banner {
  height: 194px;
  padding: 32px 4.5%;
  display: flex;
  align-items: center;
}
.home-banner > img,
.banner-art {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}
.home-banner:after,
.page-banner:after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(103, 72, 49, 0.82),
    rgba(120, 88, 63, 0.48) 47%,
    rgba(120, 88, 63, 0) 100%
  );
}
.home-banner-copy {
  position: relative;
}
.eyebrow {
  margin: 0 0 8px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.17em;
  opacity: 0.9;
}
.home-banner h1,
.page-banner h1 {
  margin: 0;
  font-size: clamp(23px, 2.35vw, 34px);
  font-weight: 750;
  letter-spacing: -0.04em;
}
.home-banner-copy > p:last-child,
.page-banner-copy > p:last-child {
  margin: 9px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.93);
}
.page-banner {
  height: 142px;
  padding: 25px 32px;
  display: flex;
  align-items: center;
  margin-bottom: 18px;
}
.page-banner:after {
  background: linear-gradient(
    90deg,
    rgba(106, 75, 53, 0.88),
    rgba(132, 99, 73, 0.59) 55%,
    rgba(132, 99, 73, 0.04)
  );
}
.page-banner-copy {
  max-width: 460px;
  position: relative;
  z-index: 1;
}
.page-banner h1 {
  font-size: clamp(22px, 2vw, 29px);
}
.page-banner-copy > p:last-child {
  font-size: 14px;
  margin-top: 5px;
}
.page-banner .eyebrow {
  font-size: 8px;
}
.banner-art {
  object-position: center 54%;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0 24px;
}
.stat-card {
  min-height: 91px;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}
.stat-icon {
  width: 58px;
  height: 58px;
  border-radius: 15px;
  background: #fff0f0;
  color: var(--red);
  display: grid;
  place-items: center;
  flex: none;
}
.stat-icon .icon {
  width: 28px;
  height: 28px;
}
.stat-card h2 {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 600;
  color: #3f444d;
}
.stat-card strong {
  font-size: 27px;
  line-height: 1;
  font-weight: 750;
  letter-spacing: -0.04em;
}
.quick-section {
  margin: 0 0 24px;
}
.section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 13px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.section-heading .icon {
  width: 26px;
  height: 26px;
  color: var(--red);
}
.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.quick-action {
  min-height: 60px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #f1f2f4;
  color: #111317;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.quick-action:hover,
.menu-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 22px rgba(25, 30, 42, 0.1);
}
.quick-action .icon {
  width: 26px;
  height: 26px;
}
.quick-action strong {
  font-size: 15px;
}
.quick-action .icon:last-child {
  margin-left: auto;
  width: 21px;
  height: 21px;
}
.quick-action.primary {
  background: linear-gradient(110deg, #d9000c, #bc0008);
  border-color: #d4000b;
  color: #fff;
}
.quick-action.primary .icon {
  color: #fff;
}
.menu-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.menu-tile {
  position: relative;
  min-height: 111px;
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  box-shadow: var(--shadow);
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.menu-tile > .icon:first-child {
  width: 25px;
  height: 25px;
  margin-bottom: 8px;
  color: var(--red);
}
.menu-tile strong {
  font-size: 13px;
  line-height: 1.3;
}
.menu-tile span {
  margin-top: 4px;
  color: #6c727d;
  font-size: 10.5px;
  line-height: 1.3;
}
.tile-chevron {
  position: absolute;
  right: 10px;
  top: 45%;
  width: 17px;
  height: 17px;
  color: #636a73;
}
.grand-prize-chance {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:12px 16px;
  margin:0 0 16px;
  padding:14px 18px;
  border:1px solid #eed7b4;
  border-radius:14px;
  background:#fff8ed;
  color:#762238;
}
.grand-prize-chance > svg { flex:none; width:24px; height:24px; color:#a15a1e; }
.grand-prize-chance > div { flex:1 1 220px; }
.grand-prize-chance h2 { margin:0; font-size:15px; line-height:1.3; }
.grand-prize-chance strong { font-size:clamp(20px,3vw,30px); font-variant-numeric:tabular-nums; white-space:nowrap; }

.toolbar {
  display: flex;
  gap: 12px;
  margin: 0 0 14px;
}
.search-field {
  height: 44px;
  min-width: 0;
  flex: 1;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid #dfe2e8;
  border-radius: 11px;
  background: #f3f4f6;
  color: #535d6e;
}
.search-field .icon {
  width: 20px;
  height: 20px;
}
.search-field input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #20242b;
  font-size: 13px;
}
.search-field input::placeholder {
  color: #667080;
}
.button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
  transition:
    background 0.16s,
    transform 0.16s;
}
.button:hover:not(:disabled) {
  transform: translateY(-1px);
}
.button-primary {
  background: var(--red);
  color: #fff;
}
.button-primary:hover {
  background: var(--red-dark);
}
.button-primary .icon {
  width: 19px;
  height: 19px;
}
.button-quiet {
  background: #fff;
  color: #343943;
  border-color: #dfe2e8;
}
.button-quiet:hover {
  background: #f6f7f8;
}
.button-danger {
  background: #fff0f0;
  color: #c10009;
  border-color: #ffd3d5;
}
.button-wide {
  width: 100%;
  min-height: 46px;
}
.data-card {
  border: 1px solid #e7e9ee;
  border-radius: 15px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.data-card-header {
  min-height: 59px;
  padding: 14px 18px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.data-card-header > .icon {
  width: 24px;
  height: 24px;
  color: var(--red);
}
.data-card-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.count-chip {
  margin-left: 4px;
  padding: 5px 11px;
  border-radius: 20px;
  background: #ffeded;
  color: #c90009;
  font-size: 11px;
  font-weight: 650;
}
.table-scroll {
  overflow-x: auto;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
.data-table th {
  height: 37px;
  padding: 0 12px;
  background: #f1f2f4;
  color: #272a30;
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}
.data-table th:first-child {
  padding-left: 18px;
}
.data-table td {
  height: 53px;
  padding: 8px 12px;
  border-bottom: 1px solid #eceef2;
  vertical-align: middle;
}
.data-table td:first-child {
  padding-left: 18px;
}
.data-table .row-number {
  width: 64px;
  color: #687181;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.data-table tbody tr:last-child td {
  border-bottom: 0;
}
.data-table td strong {
  font-size: 12px;
  font-weight: 650;
}
.secondary-text {
  display: block;
  margin-top: 3px;
  color: #687181;
  font-size: 10.5px;
}
.status-pill {
  min-height: 22px;
  padding: 3px 9px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.status-active {
  background: #e2f7e6;
  color: #16842a;
}
.status-used {
  background: #ffe9e8;
  color: #c52c2c;
}
.status-inactive {
  background: #eff0f2;
  color: #707781;
}
.row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  white-space: nowrap;
}
.icon-button {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #22262b;
  display: inline-grid;
  place-items: center;
}
.icon-button:hover {
  background: #f1f2f4;
}
.icon-button .icon {
  width: 18px;
  height: 18px;
}
.danger-icon {
  color: #d6000b;
}
.outline-action {
  min-height: 29px;
  padding: 3px 9px;
  border: 1px solid #e11a25;
  border-radius: 8px;
  background: #fff;
  color: #c90009;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}
.outline-action .icon {
  width: 15px;
  height: 15px;
}
.reward-pill {
  max-width: 190px;
  padding: 4px 9px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}
.reward-pill .icon {
  width: 14px;
  height: 14px;
}
.reward-general {
  background: #e6f8e7;
  color: #238238;
}
.reward-basket {
  background: #e5f1ff;
  color: #1764b1;
}
.reward-set {
  background: #f3e9ff;
  color: #702ab4;
}
.code-value {
  letter-spacing: 0.03em;
}
.loading-cell,
.empty-cell,
.error-cell {
  text-align: center !important;
  color: #727985;
}
.loading-cell,
.error-cell {
  height: 130px !important;
}
.empty-cell {
  height: 210px !important;
}
.empty-cell > div {
  display: grid;
  justify-items: center;
  gap: 8px;
}
.empty-cell .icon {
  width: 29px;
  height: 29px;
  color: #b6bbc4;
}
.empty-cell strong {
  font-size: 13px !important;
  color: #414650;
}
.empty-cell span {
  font-size: 11px;
}
.text-button {
  border: 0;
  background: transparent;
  color: #b90009;
  text-decoration: underline;
  font-size: 12px;
}
.pagination {
  min-height: 51px;
  padding: 8px 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #566174;
  font-size: 12px;
}
.pagination-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}
.pagination-controls > span {
  min-width: 61px;
  text-align: center;
  color: #292d33;
  font-weight: 600;
}
.pagination-controls .icon-button {
  font-size: 24px;
  color: #505b70;
}
.toolbar-products {
  align-items: flex-end;
}
.filter-field {
  width: min(34%, 320px);
  display: grid;
  gap: 4px;
  color: #282b30;
  font-size: 10px;
  font-weight: 600;
}
.filter-field select {
  height: 34px;
  padding: 0 11px;
  border: 1px solid #dfe2e8;
  border-radius: 9px;
  background: #fff;
  color: #4d5662;
  font-size: 11px;
}
.toolbar-products .search-field {
  height: 34px;
}
.toolbar-products .button {
  min-height: 34px;
}
.product-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 225px;
}
.product-thumb {
  width: 54px;
  height: 44px;
  flex: none;
  object-fit: cover;
  border-radius: 8px;
  background: #f2f2f2;
}
.product-thumb-empty {
  display: grid;
  place-items: center;
  color: #9da3ad;
}
.product-thumb-empty .icon {
  width: 21px;
  height: 21px;
}
.group-pill {
  padding: 5px 9px;
  border-radius: 18px;
  background: #ffeded;
  color: #a3363b;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 600;
}
.group-pill .icon {
  width: 14px;
  height: 14px;
  color: #cc1019;
}
.fair-price {
  color: var(--red);
}
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.wheel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 3px 0 22px;
}
.wheel-heading h1 { margin: 0 0 7px; font-size: clamp(25px, 3vw, 34px); letter-spacing: -0.045em; }
.wheel-heading p:not(.eyebrow) { margin: 0; color: #69717d; font-size: 13px; }
.wheel-heading .eyebrow { margin: 0 0 6px; color: var(--red); font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.wheel-probability-card {
  display: flex; align-items: center; gap: 15px; margin: 0 0 18px; padding: 17px 19px;
  border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow);
}
.wheel-summary-icon { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 14px; color: var(--red); background: #fff0f0; }
.wheel-summary-icon .icon { width: 25px; height: 25px; }
.wheel-summary-copy { min-width: 0; flex: 1; }
.wheel-summary-copy strong { font-size: 14px; }
.wheel-summary-copy strong span { margin-left: 4px; color: var(--red); }
.wheel-summary-copy p { margin: 4px 0 8px; color: #737985; font-size: 11px; }
.wheel-progress { height: 6px; overflow: hidden; border-radius: 10px; background: #f0f1f3; }
.wheel-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#d9000c,#ff6b72); transition: width .2s ease; }
.wheel-progress span.is-complete { background: #16854b; }
.wheel-remaining { flex: none; padding: 7px 10px; border-radius: 20px; background: #fff0f0; color: var(--red); font-size: 11px; font-weight: 700; }
.wheel-prizes-card .data-card-header { margin-bottom: 0; }
.wheel-prize-cell { display: flex; align-items: center; gap: 11px; min-width: 220px; }
.wheel-prize-cell > span:last-child { display: grid; gap: 3px; }
.wheel-prize-cell strong { font-size: 13px; }
.wheel-prize-cell small { color: #7a808a; font-size: 10px; }
.wheel-prize-thumb,.wheel-prize-icon { width: 42px; height: 42px; flex: none; border-radius: 10px; object-fit: cover; }
.wheel-prize-icon { display: grid; place-items: center; color: var(--red); background: #fff0f0; }
.wheel-prize-icon .icon { width: 21px; height: 21px; }
.wheel-barcode { display: block; }
.wheel-type-badge { display: inline-flex; padding: 6px 9px; border-radius: 20px; background: #f4f5f6; color: #515762; font-size: 10px; white-space: nowrap; }
.wheel-chance { color: #20232a; font-size: 14px; }
.wheel-table-note { margin: 0; padding: 12px 16px; border-top: 1px solid var(--line); color: #747a84; font-size: 10px; }
.wheel-prize-fields[hidden] { display: none; }
.wheel-upload { position: relative; min-height: 86px; display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px dashed #cbd0d7; border-radius: 12px; background: #fafafb; cursor: pointer; transition: border-color .15s, background .15s; }
.wheel-upload:hover,.wheel-upload.is-dragging { border-color: var(--red); background: #fff8f8; }
.wheel-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.wheel-upload-preview { width: 54px; height: 54px; flex: none; display: grid; place-items: center; overflow: hidden; border-radius: 9px; background: #f0f1f3; color: #757c87; }
.wheel-upload-preview .icon { width: 23px; height: 23px; }
.wheel-upload-preview img { width: 100%; height: 100%; object-fit: cover; }
.wheel-upload-copy { flex: 1; display: grid; gap: 4px; }
.wheel-upload-copy strong { font-size: 11px; }
.wheel-upload-copy small { color: #777e88; font-size: 10px; }
.wheel-upload-button { padding: 7px 9px; border: 1px solid #e1e3e7; border-radius: 8px; background: white; font-size: 10px; font-weight: 600; }
.dialog .field-hint { color: #777e88; font-size: 10px; }
.setting-tile {
  min-height: 92px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}
.setting-tile > .icon:first-child {
  width: 27px;
  height: 27px;
  color: var(--red);
}
.setting-tile > span {
  display: grid;
  gap: 5px;
  flex: 1;
}
.setting-tile strong {
  font-size: 14px;
}
.setting-tile small {
  color: #707782;
  font-size: 11px;
}
.setting-tile > svg:last-child {
  color: #69717d;
}
.setting-static {
  box-shadow: none;
}
.not-found,
.error-state {
  padding: 60px 20px;
  text-align: center;
}
.not-found h1,
.error-state h1 {
  font-size: 23px;
}
.not-found a {
  color: var(--red);
  text-decoration: underline;
}
.error-state p {
  color: #707782;
}
.dialog-backdrop {
  position: fixed;
  z-index: 60;
  inset: 0;
  padding: 20px;
  display: grid;
  place-items: center;
  background: rgba(15, 17, 21, 0.58);
  backdrop-filter: blur(3px);
}
.dialog {
  width: min(100%, 480px);
  max-height: min(92vh, 760px);
  overflow: auto;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.25);
}
.dialog-header {
  position: sticky;
  top: 0;
  padding: 17px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #eceef2;
  background: #fff;
  z-index: 1;
}
.dialog-header h2 {
  margin: 0;
  font-size: 17px;
}
.dialog-form {
  margin: 0;
}
.dialog-body {
  padding: 20px;
  display: grid;
  gap: 15px;
}
.dialog-footer {
  position: sticky;
  bottom: 0;
  padding: 14px 20px;
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  border-top: 1px solid #eceef2;
  background: #fff;
}
.field {
  display: grid;
  gap: 7px;
  color: #333942;
  font-size: 11px;
  font-weight: 600;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #dfe2e8;
  border-radius: 9px;
  background: #fff;
  color: #1f2329;
  outline: none;
  font-size: 13px;
  font-weight: 400;
}
.field textarea {
  resize: vertical;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: #d4000b;
  box-shadow: 0 0 0 3px rgba(212, 0, 11, 0.09);
}
.field small {
  color: #687181;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
}
.image-dropzone {
  position: relative;
  min-height: 116px;
  padding: 8px;
  border: 1px dashed #cfd4dd;
  border-radius: 14px;
  background: linear-gradient(140deg, #fcfcfd, #f7f8fa);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.image-dropzone:hover,
.image-dropzone.is-dragging {
  border-color: #d4000b;
  background: #fff8f8;
  box-shadow: 0 0 0 3px rgba(212, 0, 11, 0.06);
}
.image-dropzone.has-file {
  border-style: solid;
  border-color: #e3b5b8;
}
.image-dropzone__input {
  display: none;
}
.image-dropzone__target {
  width: 100%;
  min-height: 98px;
  padding: 8px 34px 8px 8px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #252a32;
  text-align: left;
  cursor: pointer;
}
.image-dropzone__target:focus-visible {
  outline: 2px solid #d4000b;
  outline-offset: 2px;
}
.image-dropzone__preview {
  width: 82px;
  height: 82px;
  flex: 0 0 82px;
  display: grid;
  place-items: center;
  gap: 4px;
  overflow: hidden;
  border: 1px solid #e5e7ec;
  border-radius: 11px;
  background: #fff;
  color: #89909c;
}
.image-dropzone__preview > .icon {
  width: 23px;
  height: 23px;
  color: #bd2932;
}
.image-dropzone__preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.image-dropzone__preview small {
  color: #89909c;
  font-size: 9px;
}
.image-dropzone__copy {
  min-width: 0;
  display: grid;
  justify-items: start;
  gap: 5px;
}
.image-dropzone__copy strong {
  font-size: 12px;
  font-weight: 650;
}
.image-dropzone__copy > span {
  color: #687181;
  font-size: 11px;
}
.image-dropzone__copy em {
  color: #bd111b;
  font-style: normal;
  font-weight: 650;
}
.image-dropzone__copy small {
  max-width: 100%;
  overflow: hidden;
  color: #89909c;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.image-dropzone__clear {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid #e6e8ed;
  border-radius: 50%;
  background: #fff;
  color: #687181;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.image-dropzone__clear:hover {
  border-color: #d4000b;
  color: #d4000b;
}
.image-dropzone__clear[hidden] {
  display: none;
}
.confirm-copy {
  margin: 0;
  color: #4e5561;
  font-size: 13px;
  line-height: 1.6;
}
.cart-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.cart-list li {
  padding: 12px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.cart-list small {
  color: #76808d;
}
.toast-region {
  position: fixed;
  z-index: 90;
  right: 22px;
  bottom: 22px;
  display: grid;
  gap: 9px;
}
.toast {
  max-width: min(370px, calc(100vw - 32px));
  padding: 13px 16px;
  border: 1px solid #d1ebd6;
  border-radius: 11px;
  background: #f0faf2;
  color: #176a27;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.13);
  font-size: 12px;
}
.toast-error {
  border-color: #ffd4d6;
  background: #fff3f3;
  color: #ae0008;
}
.login-view {
  min-height: 100vh;
  padding: 24px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at top left, #38251d 0, transparent 45%), #121214;
}
.login-card {
  width: min(100%, 420px);
  padding: 34px;
  border: 1px solid #343438;
  border-radius: 18px;
  background: #1a1a1d;
  color: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}
.login-brand {
  padding-bottom: 23px;
  border-bottom: 1px solid #37373b;
}
.login-card h1 {
  margin: 27px 0 7px;
  font-size: 24px;
}
.login-card > p {
  margin: 0 0 22px;
  color: #b7b7bd;
  font-size: 12px;
}
.login-card .field {
  color: #e6e6e8;
}
.login-card .field input {
  border-color: #44444a;
  background: #111113;
  color: #fff;
}
.login-card .form-error {
  min-height: 17px;
  margin: 10px 0;
  color: #ff7d83;
  font-size: 11px;
}
.login-card .button-primary {
  margin-top: 2px;
}
.users-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 8px 0 20px;
}
.users-heading h1 { margin: 3px 0 6px; font-size: 25px; }
.users-heading p:last-child { margin: 0; color: var(--muted); font-size: 13px; }
.users-heading .eyebrow { margin: 0; color: var(--red); font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.users-table { min-width: 620px; }
.users-table .row-actions { justify-content: flex-start; flex-wrap: wrap; }
.users-table .outline-action { min-height: 34px; font-size: 11px; }
.users-permission-count { padding: 4px 9px; border-radius: 999px; background: #f1f3f6; color: #4d5562; font-size: 11px; font-weight: 650; white-space: nowrap; }
.permission-picker { min-width: 0; margin: 0; padding: 12px; border: 1px solid #e3e6eb; border-radius: 11px; }
.permission-picker legend { padding: 0 5px; color: #333942; font-size: 11px; font-weight: 700; }
.permission-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.permission-option { min-height: 38px; padding: 7px 9px; display: flex; align-items: center; gap: 9px; border: 1px solid #eceef2; border-radius: 8px; color: #333942; font-size: 12px; font-weight: 550; cursor: pointer; }
.permission-option:has(input:checked) { border-color: #f0a3a7; background: #fff7f7; color: #9c1118; }
.permission-option input { width: 16px; height: 16px; margin: 0; accent-color: #d20a14; }
.permission-option span { min-width: 0; }
.permission-option:focus-within { outline: 2px solid #ef9ca2; outline-offset: 2px; }
.generated-password { font-family: ui-monospace, SFMono-Regular, Consolas, monospace !important; font-size: 15px !important; letter-spacing: .03em; user-select: all; }
@media (max-width: 760px) {
  .users-heading { align-items: flex-start; margin: 5px 0 14px; }
  .users-heading h1 { font-size: 21px; }
  .users-heading p:last-child { max-width: 210px; font-size: 11px; line-height: 1.45; }
  .users-heading .button { flex: none; min-height: 38px; padding-inline: 10px; font-size: 10px; }
  .users-table { min-width: 0; }
  .permission-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) {
  .sidebar {
    width: 244px;
  }
  .app-content {
    margin-left: 244px;
  }
  .menu-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .main-content {
    padding-inline: 22px;
  }
  .data-table {
    min-width: 730px;
  }
}
@media (max-width: 760px) {
  .sidebar {
    width: min(300px, 84vw);
    transform: translateX(-105%);
    visibility: hidden;
    transition: transform 0.24s ease, visibility 0.24s;
    box-shadow: 18px 0 48px rgba(0, 0, 0, 0.28);
  }
  .app-shell.menu-open .sidebar {
    transform: translateX(0);
    visibility: visible;
  }
  .mobile-scrim {
    display: block;
    position: fixed;
    z-index: 29;
    inset: 0;
    background: rgba(6, 7, 8, 0.55);
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.2s,
      visibility 0.2s;
  }
  .app-shell.menu-open .mobile-scrim {
    opacity: 1;
    visibility: visible;
  }
  .mobile-close {
    display: inline-grid;
    position: absolute;
    right: 10px;
    top: 25px;
    color: #ddd;
  }
  .app-content {
    margin-left: 0;
  }
  .topbar {
    height: 58px;
    padding: 0 15px;
    gap: 10px;
  }
  .menu-trigger {
    display: inline-grid;
    flex: none;
  }
  .breadcrumb {
    margin-right: auto;
    gap: 6px;
    font-size: 10px;
  }
  .breadcrumb .icon {
    width: 13px;
    height: 13px;
  }
  .topbar-account {
    font-size: 0;
  }
  .account-avatar {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }
  .main-content {
    padding: 14px 12px 32px;
  }
  .home-banner {
    height: 154px;
    padding: 18px;
    border-radius: 13px;
  }
  .home-banner:after {
    background: linear-gradient(
      90deg,
      rgba(103, 72, 49, 0.77),
      rgba(120, 88, 63, 0.33) 70%,
      rgba(120, 88, 63, 0.05)
    );
  }
  .home-banner > img {
    object-position: 58% center;
  }
  .home-banner h1 {
    max-width: 210px;
    font-size: 21px;
    line-height: 1.15;
  }
  .home-banner-copy > p:last-child {
    max-width: 190px;
    font-size: 10px;
    line-height: 1.45;
  }
  .home-banner .eyebrow {
    font-size: 7px;
  }
  .desktop-only {
    display: none;
  }
  .stats-grid {
    gap: 8px;
    margin: 10px 0 20px;
  }
  .stat-card {
    min-height: 84px;
    padding: 9px 9px;
    gap: 8px;
    border-radius: 12px;
  }
  .stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }
  .stat-icon .icon {
    width: 20px;
    height: 20px;
  }
  .stat-card h2 {
    margin-bottom: 4px;
    font-size: 9px;
    line-height: 1.25;
  }
  .stat-card strong {
    font-size: 22px;
  }
  .section-heading {
    gap: 7px;
    margin-bottom: 9px;
    font-size: 16px;
  }
  .section-heading .icon {
    width: 21px;
    height: 21px;
  }
  .quick-section {
    margin-bottom: 19px;
  }
  .quick-grid {
    gap: 8px;
  }
  .quick-action {
    min-height: 47px;
    padding: 0 11px;
    gap: 8px;
    border-radius: 10px;
  }
  .quick-action .icon {
    width: 20px;
    height: 20px;
  }
  .quick-action strong {
    font-size: 11px;
  }
  .quick-action .icon:last-child {
    width: 15px;
    height: 15px;
  }
  .menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .menu-tile {
    min-height: 82px;
    padding: 9px 10px;
    border-radius: 11px;
  }
  .menu-tile > .icon:first-child {
    width: 20px;
    height: 20px;
    margin-bottom: 3px;
  }
  .menu-tile strong {
    font-size: 11px;
  }
  .menu-tile span {
    font-size: 9px;
  }
  .menu-tile:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    min-height: 61px;
    padding-left: 43px;
    justify-content: center;
  }
  .menu-tile:last-child:nth-child(odd) > .icon:first-child {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
  }
  .tile-chevron {
    right: 7px;
    width: 15px;
    height: 15px;
  }
  .page-banner {
    height: 99px;
    padding: 13px 15px;
    margin-bottom: 10px;
    border-radius: 12px;
  }
  .page-banner > img {
    object-position: 57% center;
  }
  .page-banner:after {
    background: linear-gradient(
      90deg,
      rgba(105, 74, 51, 0.83),
      rgba(130, 97, 72, 0.46) 65%,
      rgba(130, 97, 72, 0.04)
    );
  }
  .page-banner h1 {
    max-width: 210px;
    font-size: 19px;
    line-height: 1.15;
  }
  .page-banner-copy > p:last-child {
    max-width: 190px;
    margin-top: 4px;
    font-size: 10px;
    line-height: 1.35;
  }
  .page-banner .eyebrow {
    margin-bottom: 4px;
    font-size: 6px;
  }
  .toolbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 10px;
  }
  .toolbar-products {
    grid-template-columns: 1fr 1fr;
  }
  .toolbar-products .filter-field {
    grid-column: 1 / -1;
    width: 100%;
  }
  .toolbar-products .search-field {
    height: 39px;
  }
  .toolbar-products .button {
    height: 39px;
    min-height: 39px;
  }
  .search-field {
    height: 39px;
    padding-inline: 10px;
  }
  .search-field input {
    font-size: 11px;
  }
  .toolbar .button {
    height: 39px;
    min-height: 39px;
  }
  .filter-field {
    width: 100%;
    font-size: 9px;
  }
  .filter-field select {
    height: 36px;
    font-size: 10px;
  }
  .data-card {
    border-radius: 12px;
  }
  .data-card-header {
    min-height: 48px;
    padding: 9px 11px;
    gap: 7px;
  }
  .data-card-header > .icon {
    width: 20px;
    height: 20px;
  }
  .data-card-header h2 {
    font-size: 14px;
  }
  .count-chip {
    margin-left: auto;
    padding: 4px 8px;
    font-size: 9px;
  }
  .table-scroll {
    overflow: visible;
  }
  .data-table {
    min-width: 0;
    width: 100%;
    font-size: 10px;
  }
  .data-table thead {
    display: none;
  }
  .data-table tbody {
    display: block;
    padding: 0 9px;
  }
  .data-table tr {
    position: relative;
    min-height: 65px;
    padding: 8px 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    border-bottom: 1px solid #eceef2;
  }
  .data-table tbody tr:last-child {
    border-bottom: 0;
  }
  .data-table td {
    height: auto;
    min-height: 0;
    padding: 2px 0;
    border: 0;
    font-size: 10px;
  }
  .data-table td:first-child {
    padding-left: 0;
  }
  .data-table td strong {
    font-size: 10px;
  }
  .data-table td:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }
  .data-table td:nth-child(3) {
    grid-column: 1;
    grid-row: 2;
  }
  .data-table td:nth-child(4) {
    grid-column: 2;
    grid-row: 2;
  }
  .data-table td:nth-child(5) {
    grid-column: 1;
    grid-row: 3;
  }
  .data-table td:last-child:not(:first-child) {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: center;
  }
  .data-table .secondary-text {
    font-size: 9px;
    max-width: 210px;
  }
  .product-cell {
    min-width: 0;
    gap: 7px;
  }
  .product-thumb {
    width: 38px;
    height: 35px;
    border-radius: 6px;
  }
  .group-pill {
    max-width: 120px;
    overflow: hidden;
    font-size: 8px;
  }
  .group-pill .icon {
    width: 11px;
    height: 11px;
  }
  .status-pill {
    min-height: 19px;
    padding: 2px 7px;
    font-size: 9px;
  }
  .status-dot {
    width: 7px;
    height: 7px;
  }
  .row-actions {
    gap: 1px;
  }
  .row-actions .icon-button {
    width: 29px;
    height: 29px;
  }
  .row-actions .icon-button .icon {
    width: 16px;
    height: 16px;
  }
  .outline-action {
    min-height: 25px;
    padding: 2px 6px;
    font-size: 8px;
  }
  .outline-action .icon {
    width: 12px;
    height: 12px;
  }
  .reward-pill {
    max-width: 130px;
    padding: 3px 6px;
    gap: 3px;
    font-size: 8px;
  }
  .reward-pill .icon {
    width: 12px;
    height: 12px;
  }
  .loading-cell,
  .error-cell {
    height: 100px !important;
  }
  .empty-cell {
    height: 170px !important;
  }
  .empty-cell > div {
    grid-column: 1 / -1;
  }
  .empty-cell .icon {
    width: 25px;
    height: 25px;
  }
  .empty-cell strong {
    font-size: 11px !important;
  }
  .empty-cell span {
    font-size: 9px;
  }
  .pagination {
    min-height: 43px;
    padding: 7px 10px;
    font-size: 10px;
  }
  .pagination-controls {
    gap: 2px;
  }
  .pagination-controls .icon-button {
    width: 27px;
    height: 27px;
    font-size: 21px;
  }
  .pagination-controls > span {
    min-width: 50px;
  }
  .settings-grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }
  .setting-tile {
    min-height: 75px;
    padding: 14px;
  }
  .setting-tile > .icon:first-child {
    width: 23px;
    height: 23px;
  }
  .setting-tile strong {
    font-size: 12px;
  }
  .setting-tile small {
    font-size: 10px;
  }
}
@media (max-width: 390px) {
  .main-content {
    padding-inline: 9px;
  }
  .home-banner h1 {
    font-size: 19px;
    max-width: 190px;
  }
  .stat-card {
    gap: 6px;
    padding: 8px 7px;
  }
  .stat-icon {
    width: 32px;
    height: 32px;
  }
  .stat-card h2 {
    font-size: 8px;
  }
  .stat-card strong {
    font-size: 20px;
  }
  .quick-action {
    padding-inline: 8px;
    gap: 6px;
  }
  .quick-action strong {
    font-size: 10px;
  }
  .data-card-header h2 {
    font-size: 13px;
  }
  .data-table tbody {
    padding-inline: 7px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
@media (max-width: 760px) {
  .wheel-heading { align-items: flex-start; }
  .wheel-heading .button { flex: none; padding-inline: 10px; }
  .wheel-heading .button span { display: none; }
  .wheel-probability-card { align-items: flex-start; gap: 10px; padding: 13px; }
  .wheel-summary-icon { width: 38px; height: 38px; border-radius: 11px; }
  .wheel-summary-copy strong { font-size: 12px; }
  .wheel-summary-copy p { font-size: 10px; }
  .wheel-remaining { padding: 6px 7px; font-size: 9px; }
  .wheel-prizes-table tr { grid-template-columns: minmax(125px, 1fr) auto auto 52px; padding-right: 0; gap: 6px; }
  .wheel-prizes-table td.row-actions { position: static; grid-column: auto; grid-row: auto; transform: none; }
  .wheel-prizes-table td { min-width: 0; }
  .wheel-prize-cell { min-width: 0; gap: 7px; }
  .wheel-prize-thumb,.wheel-prize-icon { width: 34px; height: 34px; }
  .wheel-prize-cell strong { font-size: 11px; }
  .wheel-type-badge { padding: 5px 6px; font-size: 8px; white-space: normal; }
  .wheel-chance { font-size: 11px; }
  .wheel-prizes-table td.row-actions .icon-button { width: 24px; height: 28px; }
  .data-table tr {
    grid-template-columns: minmax(0, 1fr) auto 54px;
    padding-right: 54px;
  }
  .data-table td.row-actions {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    grid-column: auto;
    grid-row: auto;
    align-self: auto;
  }
  .data-table td.row-actions .icon-button {
    width: 26px;
    height: 28px;
  }
  .data-table td.row-actions .icon-button .icon {
    width: 15px;
    height: 15px;
  }
  .data-table tr:has(td.row-actions .outline-action) {
    min-height: 88px;
    padding-right: 0;
    padding-bottom: 38px;
  }
  .data-table tr:has(td.row-actions .outline-action) td.row-actions {
    right: 3px;
    top: auto;
    bottom: 4px;
    transform: none;
  }
}
.sidebar .mobile-close,
.topbar .menu-trigger {
  display: none;
}
@media (max-width: 760px) {
  .sidebar .mobile-close,
  .topbar .menu-trigger {
    display: inline-grid;
  }
}

.password-dialog { color: var(--ink); padding: 0; border: 0; max-width: calc(100% - 32px); }
.password-dialog::backdrop { background: rgba(6, 7, 8, 0.55); }
