:root {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --surface-soft: #f9faf7;
  --surface-warm: #fff8eb;
  --line: #dedbd3;
  --line-strong: #bcb7ac;
  --text: #252a31;
  --text-strong: #111827;
  --muted: #72706a;
  --muted-strong: #55524c;
  --primary: #2357c6;
  --primary-dark: #173f99;
  --primary-soft: #eaf0ff;
  --accent: #00856f;
  --accent-soft: #e3f5f0;
  --warning: #a76700;
  --warning-soft: #fff1d6;
  --danger: #b9414c;
  --danger-soft: #ffecef;
  --ink: #111827;
  --focus: 0 0 0 3px rgba(35, 87, 198, 0.16);
  --shadow: 0 18px 42px rgba(17, 24, 39, 0.12);
  --shadow-soft: 0 10px 26px rgba(17, 24, 39, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI Variable", "Segoe UI", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.45;
}

button,
input,
select {
  font: inherit;
}

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

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  color: var(--text-strong);
  font-size: 30px;
  line-height: 1.14;
  margin-bottom: 0;
}

h2 {
  color: var(--text-strong);
  font-size: 20px;
  line-height: 1.24;
  margin-bottom: 6px;
}

.hidden {
  display: none !important;
}

.eyebrow {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  font-weight: 850;
  padding: 0 14px;
  transition:
    background-color 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
  white-space: nowrap;
}

.button:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-soft);
}

.button:active {
  transform: translateY(1px);
}

.button.secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

.button.secondary:hover {
  border-color: var(--line-strong);
  background: #fbfbf8;
  color: var(--text-strong);
}

.button.danger {
  border-color: #f3b4bd;
  background: var(--danger-soft);
  color: var(--danger);
}

.button.danger:hover {
  border-color: #df7d8b;
  background: #ffdce2;
  color: #8f2532;
}

.button.small {
  min-height: 34px;
  padding: 0 10px;
  font-size: 13px;
}

.button:disabled {
  border-color: #dedbd3;
  background: #e8e5df;
  color: #89857d;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

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

.btn-spinner {
  display: inline-block;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
}

.button.loading {
  gap: 8px;
  pointer-events: none;
  opacity: 0.85;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted-strong);
  cursor: pointer;
}

.icon-button:hover {
  border-color: var(--line-strong);
  color: var(--text-strong);
}

.field {
  display: grid;
  gap: 7px;
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 800;
}

.field {
  margin-bottom: 14px;
}

.field input,
.field select {
  min-width: 0;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  outline: none;
  padding: 0 12px;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    background-color 0.16s ease;
}

.field input:focus,
.field select:focus {
  border-color: var(--primary);
  box-shadow: var(--focus);
}

.field input:disabled,
.field select:disabled {
  border-color: #e3e0d8;
  background: #f4f2ec;
  color: var(--muted-strong);
  cursor: not-allowed;
  opacity: 1;
}

.login-screen {
  display: grid;
  min-height: 100vh;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(0, 133, 111, 0.10), rgba(35, 87, 198, 0.08)),
    var(--bg);
  padding: 28px;
}

.login-layout {
  display: grid;
  width: 100%;
  max-width: 1040px;
  min-height: min(680px, calc(100vh - 56px));
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  overflow: hidden;
  border: 1px solid rgba(188, 183, 172, 0.66);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.login-intro {
  display: grid;
  align-content: space-between;
  gap: 34px;
  background: #172033;
  color: #fff;
  padding: 36px;
}

.copyright-mark {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.login-copyright {
  color: rgba(255, 255, 255, 0.68);
}

.login-panel {
  display: grid;
  align-content: center;
  min-width: 0;
  padding: 42px;
}

.login-panel .field {
  color: var(--muted-strong);
  font-weight: 760;
}

.login-panel .field input {
  color: var(--text-strong);
  font-weight: 650;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand-wordmark {
  position: relative;
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 7px;
  color: var(--text-strong);
  font-size: 20px;
  font-weight: 950;
  line-height: 1;
  padding: 7px 0 7px 14px;
  white-space: nowrap;
}

.brand-wordmark::before {
  content: "";
  position: absolute;
  top: 7px;
  bottom: 7px;
  left: 0;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), var(--primary));
}

.brand-wordmark::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 14px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), rgba(35, 87, 198, 0));
  opacity: 0.5;
}

.brand-wordmark span {
  color: inherit;
}

.brand-wordmark span:last-child {
  color: var(--accent);
}

.login-brand .brand-wordmark {
  color: #fff;
  font-size: 22px;
}

.login-brand .brand-wordmark span:last-child {
  color: #9ce0d5;
}

.login-brand .brand-wordmark::before {
  background: linear-gradient(180deg, #9ce0d5, #7aa7ff);
}

.login-brand .brand-wordmark::after {
  background: linear-gradient(90deg, #9ce0d5, rgba(122, 167, 255, 0));
  opacity: 0.7;
}

.login-heading {
  margin-bottom: 22px;
}

.login-heading h2 {
  font-size: 28px;
  font-weight: 900;
}

.login-heading p:last-child,
.login-copy p:last-child {
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 0;
}

.login-copy {
  max-width: 470px;
}

.login-copy .eyebrow {
  color: #9ce0d5;
}

.login-copy h1 {
  color: #fff;
  font-size: 38px;
  margin-bottom: 14px;
}

.login-copy p:last-child {
  color: #d9e2ef;
}

.login-snapshot {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  padding: 18px;
}

.snapshot-bar,
.snapshot-row,
.snapshot-grid span {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.22);
}

.snapshot-bar {
  width: 42%;
  height: 12px;
}

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

.snapshot-grid span {
  height: 58px;
}

.snapshot-grid span:nth-child(1) {
  background: rgba(0, 133, 111, 0.72);
}

.snapshot-grid span:nth-child(2) {
  background: rgba(35, 87, 198, 0.62);
}

.snapshot-grid span:nth-child(3) {
  background: rgba(245, 166, 35, 0.66);
}

.snapshot-row {
  height: 12px;
}

.snapshot-row.strong {
  width: 86%;
  background: rgba(0, 133, 111, 0.74);
}

.snapshot-row.short {
  width: 58%;
}

.auth-mode {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f2f1ed;
  padding: 4px;
}

.auth-mode-button {
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted-strong);
  cursor: pointer;
  font-weight: 760;
}

.auth-mode-button.active {
  background: var(--surface);
  color: var(--primary);
  font-weight: 900;
  box-shadow: 0 2px 10px rgba(17, 24, 39, 0.08);
}

.password-input-wrap {
  position: relative;
  display: block;
}

.password-input-wrap input {
  width: 100%;
  padding-right: 64px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 7px;
  min-width: 48px;
  height: 30px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
  transform: translateY(-50%);
}

.password-toggle:hover,
.password-toggle:focus-visible {
  border-color: var(--line);
  background: var(--primary-soft);
  outline: 0;
}

.auth-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  margin: -2px 0 16px;
  color: var(--muted-strong);
  cursor: pointer;
  font-size: 13px;
  line-height: 1.35;
}

.auth-option input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--primary);
  cursor: pointer;
}

.auth-option strong,
.auth-option small {
  display: block;
}

.auth-option strong {
  color: var(--text-strong);
  font-weight: 760;
}

.auth-option small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.login-button {
  width: 100%;
  margin-top: 6px;
}

.login-panel-copyright {
  display: none;
  margin-top: 14px;
  text-align: center;
}

.form-error,
.form-notice {
  border-radius: 8px;
  font-weight: 800;
  line-height: 1.45;
  margin-bottom: 14px;
  overflow-wrap: anywhere;
  padding: 12px;
}

.form-error {
  background: var(--danger-soft);
  color: var(--danger);
}

.form-notice {
  background: var(--accent-soft);
  color: var(--accent);
}

.text-button {
  width: fit-content;
  border: 0;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  font-weight: 850;
  margin: -2px 0 14px;
  padding: 0;
}

.app-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.app-copyright {
  flex-shrink: 0;
  width: min(1320px, calc(100vw - 32px));
  margin: auto auto 0;
  padding: 0 0 20px;
  text-align: right;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(222, 219, 211, 0.86);
  background: rgba(246, 245, 242, 0.94);
  backdrop-filter: blur(12px);
  padding: 14px max(24px, calc((100vw - 1320px) / 2));
}

.app-header .brand-wordmark {
  color: var(--text-strong);
}

.app-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f2f1ed;
  padding: 4px;
}

.app-nav-button {
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted-strong);
  cursor: pointer;
  font-size: 13px;
  font-weight: 850;
  padding: 0 12px;
}

.app-nav-button.active {
  background: var(--surface);
  color: var(--primary);
  box-shadow: 0 2px 10px rgba(17, 24, 39, 0.08);
}

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

.user-box {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 3px;
}

.user-box span {
  max-width: 220px;
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#logoutButton.button.danger {
  border-color: #f3b4bd;
  background: var(--danger-soft);
  color: var(--danger);
}

#logoutButton.button.danger:hover {
  border-color: #df7d8b;
  background: #ffdce2;
  color: #8f2532;
}

.workspace {
  flex: 0 0 auto;
  width: min(1320px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 24px 0 32px;
}

.ticket-filter-panel {
  margin-bottom: 14px;
}

.market-strip {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
}

.market-strip > div {
  display: flex;
  align-items: center;
  min-height: 58px;
}

.market-strip h1 {
  margin-bottom: 0;
}

.market-nav {
  min-width: 0;
}

.market-select-field {
  display: none;
}

.market-button-list {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.market-button {
  flex: 0 0 auto;
  min-width: 180px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  padding: 11px 12px;
  text-align: left;
  transition:
    border-color 0.16s ease,
    background-color 0.16s ease,
    box-shadow 0.16s ease;
}

.market-button:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
}

.market-button.active {
  border-color: rgba(0, 133, 111, 0.54);
  background: var(--accent-soft);
}

.market-button strong,
.market-button span {
  display: block;
}

.market-button strong {
  color: var(--text-strong);
  line-height: 1.3;
}

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

.summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.ticket-filter-panel .summary-strip {
  margin-bottom: 0;
}

.metric {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: inherit;
  cursor: pointer;
  padding: 14px;
  text-align: left;
  transition:
    border-color 0.16s ease,
    background-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

.metric:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.metric:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.metric.active {
  border-color: rgba(35, 87, 198, 0.46);
  background: var(--primary-soft);
}

.metric.all strong {
  color: var(--primary);
}

.metric.available strong {
  color: var(--accent);
}

.metric.reserved strong {
  color: var(--warning);
}

.metric.sold strong {
  color: var(--danger);
}

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

.metric strong {
  color: var(--text-strong);
  font-size: 28px;
  line-height: 1;
}

.metric.all {
  border-color: rgba(35, 87, 198, 0.18);
}

.metric.available {
  border-color: rgba(0, 133, 111, 0.28);
}

.metric.reserved {
  border-color: rgba(167, 103, 0, 0.26);
}

.metric.sold {
  border-color: rgba(185, 65, 76, 0.24);
}

.catalog-notice {
  border: 1px solid rgba(0, 133, 111, 0.28);
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
  margin-bottom: 14px;
  padding: 11px 14px;
}

.checkout-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(35, 87, 198, 0.28);
  border-radius: 8px;
  background: var(--primary-soft);
  margin-bottom: 14px;
  padding: 12px 14px;
}

.checkout-bar.pending {
  border-color: rgba(167, 103, 0, 0.32);
  background: var(--warning-soft);
}

.checkout-kicker {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  margin-bottom: 2px;
  text-transform: uppercase;
}

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

.checkout-bar span {
  display: block;
  max-width: min(650px, 52vw);
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checkout-discount {
  display: block;
  width: fit-content;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  margin-top: 3px;
}

.checkout-market,
.checkout-error {
  display: block;
  width: fit-content;
  font-size: 12px;
  font-weight: 900;
  margin-top: 3px;
}

.checkout-market {
  color: var(--muted-strong);
}

.checkout-error {
  max-width: min(680px, 58vw);
  color: var(--danger);
  overflow-wrap: anywhere;
}

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

.content-grid {
  display: block;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.ticket-tools {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  min-width: 280px;
}

.ticket-tools .field {
  margin-bottom: 0;
}

.account-lookup-form {
  display: grid;
  width: fit-content;
  max-width: 100%;
  min-width: 0;
  grid-template-columns: minmax(220px, 420px) auto auto;
  align-items: end;
  justify-content: start;
  gap: 12px;
}

.account-lookup-field {
  width: 420px;
  max-width: 100%;
}

.account-lookup-form .button {
  min-width: 92px;
}

.ticket-search {
  position: relative;
  display: flex;
  width: min(380px, 100%);
  min-height: 44px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(17, 24, 39, 0.03);
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    background-color 0.16s ease;
}

.ticket-search:focus-within {
  border-color: rgba(35, 87, 198, 0.58);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(35, 87, 198, 0.1);
}

.search-mark {
  position: relative;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-left: 13px;
  color: var(--muted);
}

.search-mark::before {
  position: absolute;
  top: 1px;
  left: 1px;
  width: 10px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 999px;
  content: "";
}

.search-mark::after {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 8px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
  transform: rotate(45deg);
  transform-origin: center;
}

.ticket-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-strong);
  font: inherit;
  padding: 0 42px 0 10px;
}

.ticket-search input::placeholder {
  color: var(--muted);
}

.ticket-search input::-webkit-search-cancel-button {
  display: none;
}

.search-clear {
  position: absolute;
  right: 8px;
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.search-clear:hover {
  border-color: var(--line);
  background: var(--surface-soft);
  color: var(--text-strong);
}

.ticket-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 320px));
  gap: 12px;
  align-items: stretch;
  justify-content: start;
}

.ticket-pagination {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  margin-top: 4px;
  padding-top: 14px;
}

.ticket-pagination > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.ticket-pagination-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ticket-page-number {
  display: inline-grid;
  min-width: 34px;
  min-height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted-strong);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  padding: 0 9px;
}

.ticket-page-number:hover {
  border-color: var(--line-strong);
  color: var(--text-strong);
}

.ticket-page-number.active {
  border-color: rgba(35, 87, 198, 0.5);
  background: var(--primary-soft);
  color: var(--primary);
}

.ticket-page-ellipsis {
  min-width: 20px;
  color: var(--muted);
  text-align: center;
  font-weight: 900;
}

.order-toolbar {
  align-items: end;
  grid-template-columns: minmax(180px, 0.85fr) minmax(150px, 0.75fr) minmax(180px, 0.85fr) minmax(260px, 1.35fr);
  margin: 14px 0 18px;
  padding: 2px 0;
}

.order-filter-panel {
  display: grid;
  gap: 8px;
  margin: 12px 0 16px;
}

.order-filter-panel > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.order-status-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.order-status-chips::-webkit-scrollbar {
  display: none;
}

.order-status-chip {
  flex: 0 0 auto;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted-strong);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  padding: 0 13px;
  white-space: nowrap;
}

.order-status-chip.active {
  border-color: rgba(35, 87, 198, 0.5);
  background: var(--primary);
  color: #fff;
}

.order-summary-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px;
}

.order-summary-card {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  padding: 12px;
  text-align: left;
  transition:
    border-color 0.16s ease,
    background 0.16s ease,
    transform 0.16s ease;
}

.order-summary-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.order-summary-card.active {
  border-color: rgba(35, 87, 198, 0.45);
  background: var(--primary-soft);
}

.order-summary-card.refund.active {
  border-color: rgba(176, 122, 0, 0.4);
  background: #fff8e8;
}

.order-summary-card span {
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.3;
}

.order-summary-card strong {
  color: var(--text-strong);
  font-size: 26px;
  line-height: 1;
}

.reconciliation-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.reconciliation-card {
  display: grid;
  min-height: 86px;
  align-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 14px;
}

.reconciliation-card span {
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
}

.reconciliation-card strong {
  color: var(--text-strong);
  font-size: 22px;
  line-height: 1;
  overflow-wrap: anywhere;
}

.reconciliation-card.positive {
  border-color: rgba(0, 133, 111, 0.22);
  background: var(--accent-soft);
}

.reconciliation-card.negative,
.reconciliation-card.warning {
  border-color: rgba(185, 65, 76, 0.2);
  background: var(--danger-soft);
}

.reconciliation-card.compact {
  background: var(--surface-soft);
}

.money-history-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.money-history-card {
  position: relative;
  display: grid;
  min-height: 104px;
  align-content: end;
  gap: 12px;
  overflow: hidden;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 14px;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.1), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(250, 249, 245, 0.88));
  box-shadow: 0 16px 36px rgba(17, 24, 39, 0.06);
  padding: 18px;
}

.money-history-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--primary);
  content: "";
}

.money-history-card span {
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
  text-transform: uppercase;
}

.money-history-card strong {
  color: var(--text-strong);
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1;
  white-space: nowrap;
}

.money-history-card.positive {
  border-color: rgba(0, 133, 111, 0.22);
  background:
    radial-gradient(circle at top right, rgba(0, 133, 111, 0.14), transparent 38%),
    linear-gradient(135deg, rgba(237, 251, 246, 0.96), rgba(255, 255, 255, 0.9));
}

.money-history-card.positive::before {
  background: var(--accent);
}

.money-history-card.negative,
.money-history-card.warning {
  border-color: rgba(185, 65, 76, 0.2);
  background:
    radial-gradient(circle at top right, rgba(185, 65, 76, 0.12), transparent 38%),
    linear-gradient(135deg, rgba(255, 241, 243, 0.96), rgba(255, 255, 255, 0.9));
}

.money-history-card.negative::before,
.money-history-card.warning::before {
  background: var(--danger);
}

.money-history-card.neutral::before {
  background: var(--line-strong);
}

.reconciliation-money {
  color: var(--text-strong);
  white-space: nowrap;
}

.reconciliation-money.positive {
  color: var(--accent);
}

.reconciliation-money.negative {
  color: var(--danger);
}

.reconciliation-money.neutral {
  color: var(--text-strong);
}

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

.order-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 12px;
}

.order-card {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 14px;
  box-shadow: 0 1px 0 rgba(17, 24, 39, 0.03);
}

.order-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.order-card h3 {
  margin: 4px 0 0;
  color: var(--text-strong);
  font-size: 17px;
  line-height: 1.3;
}

.order-card small,
.order-muted {
  color: var(--muted);
}

.order-code {
  display: block;
  color: var(--text-strong);
  font-size: 16px;
  line-height: 1.25;
  margin-top: 3px;
}

.order-amount {
  color: var(--primary) !important;
  font-size: 18px;
}

.order-detail-button {
  width: 100%;
}

.order-card-main,
.order-items {
  display: grid;
  gap: 10px;
}

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

.order-card-main div,
.order-items div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 10px;
}

.order-card-main span,
.order-items span,
.order-detail-section h3 {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.order-card-main strong,
.order-items strong {
  display: block;
  margin-top: 4px;
  color: var(--text-strong);
  overflow-wrap: anywhere;
}

.order-items small {
  display: block;
  margin-top: 4px;
}

.order-download-button {
  margin-top: 10px;
}

.order-source-delivery {
  display: inline-flex;
  width: fit-content;
  margin-top: 10px;
  border-radius: 8px;
  background: #e8f7f2;
  color: #00745f;
  padding: 7px 9px;
  font-size: 12px;
  font-weight: 900;
}

.order-source-delivery.warning {
  background: #fff8e8;
  color: #9a6500;
}

.order-item-delivery {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  border-color: rgba(31, 111, 235, 0.16) !important;
  background: #f8fbff !important;
}

.order-item-delivery-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
}

.order-item-delivery-head span:last-child {
  color: var(--muted-strong);
}

.order-item-delivery .delivery-error {
  color: #a43d3d;
  font-weight: 850;
}

.order-item-delivery .delivery-wait-note {
  border: 1px solid rgba(31, 111, 235, 0.16);
  border-radius: 10px;
  background: rgba(31, 111, 235, 0.06);
  color: #2b5c8f;
  padding: 9px 10px;
}

.manual-gift-retry-form {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  border: 1px solid rgba(176, 122, 0, 0.24);
  border-radius: 12px;
  background: #fffaf0;
  padding: 12px;
}

.manual-gift-retry-head {
  display: grid;
  gap: 3px;
}

.manual-gift-retry-head strong {
  margin: 0;
  color: #7a4f00;
}

.manual-gift-retry-head small {
  color: var(--muted);
}

.manual-gift-retry-form label {
  display: grid;
  gap: 6px;
  margin: 0;
}

.manual-gift-retry-form label span {
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 900;
}

.manual-gift-retry-form input {
  min-height: 38px;
}

.manual-gift-retry-form .button {
  width: fit-content;
}

.order-refund-note {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(176, 122, 0, 0.25);
  border-radius: 8px;
  background: #fff8e8;
  color: #7a4f00;
  padding: 10px;
}

.order-refund-note span {
  overflow-wrap: anywhere;
}

.order-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 900;
  padding: 4px 8px;
  white-space: nowrap;
}

.order-pill.pending,
.order-pill.refund-pending,
.order-pill.delivery-pending,
.order-pill.delivery-sending {
  background: #fff8e8;
  color: #9a6500;
}

.order-pill.paid,
.order-pill.refund-completed,
.order-pill.delivery-sent {
  background: #e8f7f2;
  color: #00745f;
}

.order-pill.expired,
.order-pill.cancelled,
.order-pill.failed,
.order-pill.rejected,
.order-pill.refund-rejected,
.order-pill.refund-cancelled,
.order-pill.delivery-failed {
  background: #f7ecec;
  color: #a43d3d;
}

.order-pill.refund_required,
.order-pill.refund-approved {
  background: var(--primary-soft);
  color: var(--primary);
}

.order-pill.delivery-provider_accepted,
.order-pill.source-delivery-waiting {
  background: rgba(31, 111, 235, 0.1);
  color: #2357c6;
}

.order-pill.source-delivery-retry,
.order-pill.source-delivery-processing,
.order-pill.source-delivery-mixed {
  background: #fff8e8;
  color: #9a6500;
}

.order-pill.source-delivery-sent {
  background: #e8f7f2;
  color: #00745f;
}

.order-pill.source-delivery-failed {
  background: #f7ecec;
  color: #a43d3d;
}

.order-pill.log-info {
  background: #e8f7f2;
  color: #00745f;
}

.order-pill.log-warn {
  background: #fff8e8;
  color: #9a6500;
}

.order-pill.log-error {
  background: #f7ecec;
  color: #a43d3d;
}

.order-detail-section {
  display: grid;
  gap: 10px;
}

.order-detail-section h3 {
  margin: 0;
  text-transform: uppercase;
}

.order-detail-section textarea {
  width: 100%;
  resize: vertical;
}

.admin-search-field input {
  min-width: 260px;
}

.ticket-row {
  display: grid;
  width: 100%;
  min-height: 210px;
  grid-template-rows: auto minmax(0, 1fr) auto auto auto;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(17, 24, 39, 0.03);
  padding: 14px;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

.ticket-row:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.ticket-row.selected {
  border-color: rgba(35, 87, 198, 0.58);
}

.ticket-row.in-cart {
  border-color: rgba(0, 133, 111, 0.58);
  background: linear-gradient(180deg, #fff, #f4fbf8);
}

.ticket-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #eff6ff, #ecfdf5);
}

.ticket-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ticket-visual-fallback {
  display: grid;
  place-items: center;
}

.ticket-visual-fallback::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(35, 87, 198, 0.16), transparent 45%),
    linear-gradient(315deg, rgba(0, 133, 111, 0.18), transparent 48%);
  content: "";
}

.detail-visual {
  margin-bottom: 12px;
}

.detail-panel .detail-visual {
  display: grid;
  height: min(44vh, 360px);
  min-height: 180px;
  place-items: center;
  background: #f7f7f2;
}

.detail-panel .detail-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ticket-main {
  min-width: 0;
}

.ticket-title-line {
  display: grid;
  gap: 8px;
  margin-bottom: 9px;
}

.ticket-title-line strong {
  color: var(--text-strong);
  font-size: 18px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.unit-badge {
  display: inline-flex;
  width: fit-content;
  min-height: 24px;
  align-items: center;
  border-radius: 8px;
  background: #f0eee8;
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 850;
  padding: 3px 8px;
}

.unit-badge.bundle {
  background: var(--accent-soft);
  color: #006b5a;
}

.unit-badge.single {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.unit-badge.class {
  background: #fff4d7;
  color: #9a5b00;
}

.ticket-main span,
.ticket-main small {
  color: var(--muted);
  font-size: 13px;
}

.ticket-main small {
  display: block;
  margin-top: 8px;
}

.price {
  color: var(--text-strong);
  font-size: 20px;
  font-weight: 950;
}

.sale-price-display {
  display: grid;
  gap: 4px;
}

.sale-price-display strong {
  color: var(--text-strong);
  font-size: inherit;
  font-weight: 950;
  line-height: 1.1;
}

.sale-price-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.sale-price-meta s {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-decoration-thickness: 1.5px;
}

.sale-price-meta span {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  border-radius: 8px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  padding: 3px 7px;
  white-space: nowrap;
}

.side-total-price,
.payment-price {
  justify-items: end;
  text-align: right;
}

.payment-price {
  font-size: 18px;
}

.ticket-row > .price,
.ticket-row > .status,
.ticket-row > .ticket-action {
  align-self: end;
}

.admin-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.admin-hero-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.admin-stats div,
.admin-card,
.admin-table-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(17, 24, 39, 0.03);
}

.admin-stats div {
  display: grid;
  gap: 3px;
  padding: 14px;
}

.admin-stats span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.admin-stats strong {
  color: var(--text-strong);
  font-size: 24px;
  line-height: 1.15;
}

.admin-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.admin-tab {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted-strong);
  cursor: pointer;
  font-weight: 900;
  padding: 0 14px;
  text-align: left;
}

.admin-tab strong {
  display: inline-grid;
  min-width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--text-strong);
  font-size: 14px;
}

.admin-tab.active {
  border-color: rgba(35, 87, 198, 0.38);
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.admin-tab.active strong {
  background: var(--primary);
  color: #fff;
}

.admin-panel {
  display: grid;
  gap: 12px;
}

.admin-editor-workspace {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  padding: 14px;
}

.admin-editor-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.admin-editor-hero h2 {
  margin-bottom: 0;
}

.admin-editor-workspace .admin-editor {
  border: 0;
  background: transparent;
  box-shadow: none;
  margin: 0;
  padding: 0;
}

.admin-editor-workspace .admin-editor > .admin-card-head {
  display: none;
}

.common-modal .admin-editor,
.common-drawer .admin-editor {
  border: 0;
  box-shadow: none;
  margin: 0;
  padding: 0;
}

.common-modal .admin-editor > .admin-card-head,
.common-drawer .admin-editor > .admin-card-head {
  display: none;
}

.admin-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(4, minmax(132px, 0.8fr));
  gap: 10px;
  align-items: end;
}

.admin-toolbar label {
  display: grid;
  gap: 7px;
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 850;
}

.admin-toolbar input,
.admin-toolbar select {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  outline: none;
  padding: 0 12px;
}

.admin-toolbar input:focus,
.admin-toolbar select:focus {
  border-color: var(--primary);
  box-shadow: var(--focus);
}

.system-log-dashboard {
  display: grid;
  gap: 16px;
  border: 1px solid rgba(222, 219, 211, 0.95);
  border-radius: 18px;
  background:
    radial-gradient(circle at 12% 0%, rgba(0, 133, 111, 0.11), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f8f7f2 100%);
  box-shadow: 0 18px 48px rgba(17, 24, 39, 0.08);
  margin-bottom: 16px;
  padding: 18px;
}

.system-log-hero {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.system-log-hero h1 {
  margin: 0;
}

.system-log-hero p:not(.eyebrow) {
  max-width: 620px;
  margin: 6px 0 0;
  color: var(--muted-strong);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
}

.system-log-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.system-log-summary-card {
  display: grid;
  min-height: 82px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  cursor: pointer;
  padding: 14px;
  text-align: left;
  transition:
    border-color 0.16s ease,
    background 0.16s ease,
    transform 0.16s ease;
}

.system-log-summary-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.system-log-summary-card.active {
  border-color: rgba(35, 87, 198, 0.45);
  background: var(--primary-soft);
  box-shadow: 0 12px 24px rgba(35, 87, 198, 0.1);
}

.system-log-summary-card span {
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.system-log-summary-card strong {
  color: var(--text-strong);
  font-size: 30px;
  line-height: 0.9;
}

.system-log-toolbar {
  grid-template-columns: minmax(220px, 1.2fr) minmax(150px, 0.8fr) repeat(3, minmax(136px, 0.7fr));
  gap: 12px;
  border: 1px solid rgba(222, 219, 211, 0.85);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  margin: 0;
  padding: 14px;
}

.system-log-filter-wide {
  grid-column: span 2;
}

.system-log-table {
  border-radius: 18px;
}

.system-log-table table {
  min-width: 1120px;
}

.system-log-table td[data-label="Message"] {
  max-width: 320px;
  line-height: 1.45;
  white-space: normal;
}

.system-log-detail-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  padding: 4px 0;
}

.system-log-detail-button::before {
  content: "▶";
  font-size: 9px;
  line-height: 1;
}

.system-log-detail-button:hover {
  color: var(--primary-strong);
  text-decoration: underline;
}

.system-log-detail-modal {
  width: min(920px, calc(100vw - 32px));
  max-height: min(86vh, 760px);
}

.system-log-detail-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.system-log-detail-item {
  display: grid;
  min-width: 0;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  padding: 12px;
}

.system-log-detail-item span,
.system-log-detail-message span,
.system-log-detail-json span {
  color: var(--muted-strong);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.system-log-detail-item strong {
  color: var(--text-strong);
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.system-log-detail-message,
.system-log-detail-json {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  margin-top: 12px;
  padding: 14px;
}

.system-log-detail-message p {
  color: var(--text);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
  margin: 0;
  overflow-wrap: anywhere;
}

.system-log-detail-json-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.system-log-detail-json-head > div {
  display: grid;
  gap: 4px;
}

.system-log-detail-json small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.system-log-copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  border: 1px solid rgba(35, 87, 198, 0.22);
  border-radius: 10px;
  background: rgba(35, 87, 198, 0.08);
  color: var(--primary);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  padding: 7px 10px;
  transition:
    background 150ms ease,
    border-color 150ms ease,
    color 150ms ease,
    transform 150ms ease;
}

.system-log-copy-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.system-log-copy-button:hover:not(:disabled) {
  border-color: rgba(35, 87, 198, 0.42);
  background: rgba(35, 87, 198, 0.14);
  transform: translateY(-1px);
}

.system-log-copy-button:disabled {
  cursor: default;
  opacity: 0.86;
}

.system-log-copy-button.copied {
  border-color: rgba(0, 133, 111, 0.3);
  background: rgba(0, 133, 111, 0.11);
  color: var(--success);
}

.system-log-copy-button.failed {
  border-color: rgba(191, 61, 72, 0.28);
  background: rgba(191, 61, 72, 0.1);
  color: var(--danger);
}

.system-log-detail-json pre {
  max-height: 360px;
  margin: 0;
  overflow: auto;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 12px;
  background: #111827;
  color: #e5f3ff;
  font-family: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  font-size: 12px;
  line-height: 1.55;
  padding: 14px;
  white-space: pre-wrap;
}

.admin-actions-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.source-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.75fr);
  gap: 12px;
}

.source-provider-card,
.source-sync-card {
  display: grid;
  gap: 12px;
}

.source-provider-select {
  max-width: 360px;
}

.source-provider-select select {
  height: 40px;
}

.source-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.source-metrics div {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 10px;
}

.source-metrics span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.source-metrics strong {
  color: var(--text-strong);
  font-size: 20px;
  line-height: 1.15;
}

.source-sync-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.source-sync-actions .button {
  min-width: 132px;
}

.source-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.source-row-selected td {
  background: var(--primary-soft);
}

.source-row-import-selected td {
  background: rgba(31, 111, 235, 0.06);
}

.source-row-skipped td {
  background: #fbfaf8;
  color: var(--muted-strong);
}

.source-status-cell {
  display: grid;
  gap: 5px;
  align-items: start;
}

.source-status-cell .admin-table-subtext {
  max-width: 220px;
  line-height: 1.35;
  white-space: normal;
}

.source-orders-table {
  min-width: 980px !important;
}

.source-tickets-table {
  min-width: 940px !important;
}

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

.source-import-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.source-import-summary div,
.source-import-note {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 10px;
}

.source-import-summary span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  margin-bottom: 4px;
}

.source-import-summary strong {
  color: var(--text-strong);
  overflow-wrap: anywhere;
}

.admin-form-two.source-import-main-row {
  grid-template-columns: minmax(180px, 240px) minmax(220px, 320px);
  justify-content: start;
}

.source-import-group-mode-field {
  max-width: 320px;
}

.source-import-market-field {
  max-width: 240px;
}

.source-import-market-field input[readonly] {
  cursor: default;
  color: var(--text-strong);
  opacity: 1;
}

.source-import-price-image-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.source-import-price-image-row > .field,
.source-import-price-field input,
.source-import-image-field,
.source-import-image-field .admin-file-upload {
  min-width: 0;
  width: 100%;
}

.source-import-image-field {
  display: grid;
  align-content: start;
  gap: 8px;
}

.source-import-image-field > span {
  grid-column: 1 / -1;
}

.source-import-image-field:has(.source-import-image-preview:not(.hidden)) {
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
}

.source-import-image-field:has(.source-import-image-preview:not(.hidden)) .admin-file-upload {
  grid-column: 2;
}

.source-import-image-field .source-import-image-preview:not(.hidden) {
  grid-column: 1;
  width: 96px;
  height: 64px;
  aspect-ratio: auto;
  margin-bottom: 0;
}

.source-import-note {
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.source-import-selection-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
}

.source-import-selection-bar span {
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 850;
}

.source-import-selection-bar div {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.source-import-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.source-import-check input {
  width: 16px;
  height: 16px;
}

.source-import-ticket-list {
  padding: 0;
}

.source-import-ticket-cards {
  --source-import-ticket-grid:
    76px
    minmax(120px, 1fr)
    116px
    minmax(132px, 0.9fr)
    minmax(104px, 0.7fr)
    minmax(120px, 0.75fr)
    minmax(132px, 0.8fr);
  display: grid;
  gap: 10px;
  padding: 12px 14px 14px;
}

.source-import-ticket-header {
  display: none;
}

.source-import-ticket-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 12px;
}

.source-import-ticket-card.source-row-import-selected {
  border-color: rgba(37, 99, 235, 0.34);
  background: rgba(31, 111, 235, 0.06);
}

.source-import-ticket-card.source-row-skipped {
  background: #fbfaf8;
  color: var(--muted-strong);
}

.source-import-ticket-card-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.source-import-ticket-main {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.source-import-ticket-main strong,
.source-import-ticket-main span {
  overflow-wrap: anywhere;
}

.source-import-ticket-main span {
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 800;
}

.source-import-ticket-price {
  display: grid;
  min-width: 96px;
  justify-items: end;
  gap: 3px;
  text-align: right;
}

.source-import-ticket-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.source-import-ticket-price strong {
  white-space: nowrap;
}

.source-import-ticket-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.source-import-ticket-meta > div {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  padding: 9px;
}

.source-import-ticket-meta .admin-pill {
  width: fit-content;
  max-width: 100%;
  white-space: normal;
}

@media (min-width: 861px) {
  .source-import-ticket-header {
    display: grid;
    grid-template-columns: var(--source-import-ticket-grid);
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0;
    padding: 0 10px 8px;
    text-transform: uppercase;
  }

  .source-import-ticket-card {
    grid-template-columns: var(--source-import-ticket-grid);
    align-items: center;
    gap: 10px;
    padding: 10px;
  }

  .source-import-ticket-card-head,
  .source-import-ticket-meta {
    display: contents;
  }

  .source-import-ticket-price {
    min-width: 0;
    justify-items: start;
    text-align: left;
  }

  .source-import-ticket-label {
    display: none;
  }

  .source-import-ticket-meta > div {
    min-height: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
  }

  .source-import-ticket-card .source-status-cell .admin-table-subtext {
    display: none;
  }
}

.admin-user-actions-row {
  justify-content: flex-start;
  margin: 14px 0 18px;
  padding: 2px 0;
}

.account-actions-row {
  justify-content: flex-start;
  margin: 14px 0 18px;
  padding: 2px 0;
}

.account-overview-card,
.account-settings-stack {
  width: min(1040px, 100%);
  margin-inline: auto;
}

.account-overview-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(17, 24, 39, 0.03);
  padding: 18px;
}

.account-avatar {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 19px;
  font-weight: 950;
}

.account-overview-main {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.account-overview-main .eyebrow {
  margin-bottom: 0;
}

.account-overview-main h1 {
  margin-bottom: 0;
}

.account-overview-meta {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 7px;
}

.account-overview-meta span {
  display: inline-flex;
  max-width: 100%;
  min-height: 28px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 850;
  padding: 4px 10px;
  overflow-wrap: anywhere;
}

.account-settings-stack {
  display: grid;
  gap: 12px;
  margin-top: 0;
}

.account-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f2f1ed;
  padding: 5px;
}

.account-tabs button {
  display: inline-flex;
  min-width: 0;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted-strong);
  cursor: pointer;
  font-weight: 900;
  padding: 0 12px;
  text-align: center;
}

.account-tabs button.active {
  background: var(--surface);
  color: var(--primary);
  box-shadow: 0 2px 10px rgba(17, 24, 39, 0.08);
}

.account-tabs .account-tab-logout {
  display: none;
  color: var(--danger);
}

.account-tabs .account-tab-logout:hover {
  background: var(--danger-soft);
  color: #8f2532;
}

.account-tab-panel {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.account-section-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(17, 24, 39, 0.03);
}

.account-panel-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(17, 24, 39, 0.03);
}

.account-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 16px 18px;
}

.account-panel-head > div {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.account-panel-head h2 {
  margin: 0;
  font-size: 20px;
}

.account-panel-head span:not(.account-role-badge) {
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 750;
}

.account-panel-body {
  display: grid;
  gap: 14px;
  padding: 16px 18px 18px;
}

.account-form-card {
  display: grid;
  min-width: 0;
  gap: 0;
  padding: 0;
}

.account-form-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.account-form-card h2 {
  margin: 0;
  font-size: 20px;
}

.account-collapse-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  border: 0;
  border-radius: 0;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-weight: 850;
  margin: 0;
  padding: 16px 18px;
  text-align: left;
}

.account-collapse-head h2 {
  margin: 0;
}

.account-collapse-title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.account-collapse-title h2 {
  min-width: 0;
}

.account-collapse-title > span:not(.account-role-badge) {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 850;
  padding: 5px 9px;
}

.account-other-sessions-toggle {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-weight: 850;
  padding: 0 12px;
}

.account-collapse-head:hover,
.account-other-sessions-toggle:hover {
  background: var(--surface-soft);
}

.account-collapse-head:focus-visible {
  border-color: var(--primary);
  box-shadow: var(--focus);
  outline: none;
}

.account-chevron {
  display: inline-grid;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  background: var(--primary-soft);
}

.account-chevron::before {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.16s ease;
}

.account-collapse-head[aria-expanded="true"] .account-chevron::before {
  transform: translateY(2px) rotate(225deg);
}

.account-collapse-body {
  display: grid;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding: 16px 18px 18px;
}

.account-role-badge {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 850;
  padding: 5px 9px;
}

.account-form-card .field {
  margin-bottom: 0;
}

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

.account-section-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.account-form-card .button {
  margin-top: 0;
}

.account-device-panel {
  display: grid;
  gap: 0;
  padding: 0;
}

.account-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

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

.account-section-head > span {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 850;
  padding: 5px 9px;
}

.account-session-list {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 10px;
}

.account-other-sessions-toggle {
  align-self: start;
  justify-self: stretch;
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
}

.account-other-session-list {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 1fr;
  gap: 12px;
}

.account-session-card {
  display: grid;
  grid-template-columns: minmax(190px, 0.9fr) minmax(0, 1.5fr) auto;
  align-items: center;
  min-width: 0;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 12px 13px;
}

.account-session-card.current {
  border-color: rgba(0, 133, 111, 0.34);
  background: var(--accent-soft);
}

.account-session-main {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.account-session-main strong {
  color: var(--text-strong);
  font-size: 16px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.account-session-main span,
.account-session-main small {
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.account-session-main small {
  color: var(--text);
  font-weight: 850;
}

.account-session-badge {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #d5f2ea;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  padding: 5px 8px;
}

.account-session-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.account-session-meta div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 8px 9px;
}

.account-session-meta dt {
  color: var(--muted-strong);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.account-session-meta dd {
  min-width: 0;
  margin: 3px 0 0;
  color: var(--text-strong);
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.account-session-action {
  display: grid;
  min-width: 112px;
  justify-items: end;
  gap: 8px;
}

.account-session-card .button {
  justify-self: end;
}

.account-danger-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-color: #f3b4bd;
  background: var(--danger-soft);
  padding: 16px 18px;
  margin: 0;
}

.account-danger-panel div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.account-danger-panel strong {
  color: #8f2532;
  font-size: 16px;
  line-height: 1.25;
}

.account-danger-panel span {
  color: #9d3b48;
  font-size: 13px;
  font-weight: 750;
}

.account-confirm-text {
  margin: 0;
  color: var(--muted-strong);
  font-weight: 750;
}

.contact-page {
  display: grid;
  gap: 16px;
}

.contact-settings-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(0, 133, 111, 0.2);
  border-radius: 14px;
  background:
    radial-gradient(circle at 8% 0%, rgba(35, 87, 198, 0.13), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #eefaf6 100%);
  padding: 22px;
}

.contact-settings-hero p {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--muted-strong);
  font-weight: 750;
}

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

.contact-channel-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 108px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 14px 32px rgba(17, 24, 39, 0.06);
  padding: 16px;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.contact-channel-card:hover {
  border-color: rgba(35, 87, 198, 0.36);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.contact-channel-mark {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 13px;
  font-weight: 950;
}

.contact-channel-card.zalo .contact-channel-mark,
.contact-channel-mark.zalo {
  background: #eaf2ff;
  color: #1d4ed8;
}

.contact-channel-card.facebook .contact-channel-mark,
.contact-channel-mark.facebook,
.contact-channel-card.fanpage .contact-channel-mark,
.contact-channel-mark.fanpage {
  background: var(--primary-soft);
  color: var(--primary);
}

.contact-channel-card.telegram .contact-channel-mark,
.contact-channel-mark.telegram {
  background: #e7f7ff;
  color: #0f7ea8;
}

.contact-channel-card strong,
.contact-channel-card small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.contact-channel-card strong {
  color: var(--text-strong);
  font-size: 17px;
}

.contact-channel-card small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.contact-channel-card b {
  border: 1px solid rgba(35, 87, 198, 0.18);
  border-radius: 999px;
  background: #fff;
  color: var(--primary);
  font-size: 12px;
  padding: 5px 9px;
}

.contact-channel-card b.muted {
  color: var(--muted);
}

.contact-note {
  border: 1px dashed rgba(0, 133, 111, 0.28);
  border-radius: 12px;
  background: var(--accent-soft);
  padding: 14px 16px;
}

.contact-note strong {
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
}

.contact-note p {
  margin: 0;
  color: var(--muted-strong);
  font-weight: 750;
}

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

.contact-settings-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(0, 133, 111, 0.22);
  border-radius: 12px;
  background: linear-gradient(135deg, #ffffff 0%, #f0fbf7 100%);
  padding: 13px;
}

.contact-settings-toggle input {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  accent-color: var(--accent);
}

.contact-settings-toggle span {
  display: grid;
  gap: 3px;
}

.contact-settings-toggle strong {
  color: var(--text-strong);
}

.contact-settings-toggle small {
  color: var(--muted);
  font-weight: 750;
}

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

.contact-settings-channel {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  padding: 13px;
}

.contact-settings-channel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-strong);
}

.contact-settings-channel .contact-channel-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 11px;
}

.contact-settings-note {
  margin-bottom: 0;
}

.contact-settings-note textarea {
  width: 100%;
  resize: vertical;
}

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

.contact-settings-actions span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.admin-selected-bar,
.admin-selected-note,
.admin-empty {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted-strong);
}

.admin-selected-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
}

.admin-selected-bar strong {
  color: var(--text-strong);
  white-space: nowrap;
}

.admin-selected-bar span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.admin-selected-bar.warning {
  border-color: rgba(167, 103, 0, 0.28);
  background: var(--warning-soft);
  color: var(--warning);
}

.admin-selected-note {
  margin-bottom: 12px;
  padding: 10px 12px;
}

.admin-regroup-preview {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(167, 103, 0, 0.28);
  border-radius: 8px;
  background: var(--warning-soft);
  padding: 12px;
}

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

.admin-regroup-head h3 {
  color: var(--text-strong);
  font-size: 16px;
  line-height: 1.25;
  margin: 0;
}

.admin-regroup-head span {
  color: var(--warning);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

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

.admin-regroup-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) minmax(160px, 1fr) minmax(160px, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(167, 103, 0, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  padding: 10px;
}

.admin-regroup-row strong,
.admin-regroup-row span,
.admin-regroup-row p {
  overflow-wrap: anywhere;
}

.admin-regroup-row strong {
  display: block;
  color: var(--text-strong);
}

.admin-regroup-row span,
.admin-regroup-row p {
  color: var(--muted-strong);
  font-size: 13px;
}

.admin-regroup-row p {
  margin: 0;
}

.admin-confirm {
  align-items: flex-start;
  color: var(--warning);
}

.admin-ticket-warning {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(185, 65, 76, 0.26);
  border-radius: 8px;
  background: var(--danger-soft);
  color: var(--danger);
  padding: 12px;
}

.admin-ticket-warning strong {
  color: var(--danger);
}

.admin-ticket-warning p {
  color: #7d2932;
  font-size: 13px;
  font-weight: 800;
  margin: 0;
}

.admin-ticket-warning div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-inline-note {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.admin-empty {
  padding: 20px;
  text-align: center;
}

.admin-editor {
  margin-bottom: 2px;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.admin-card {
  padding: 14px;
}

.admin-import-card {
  border-color: rgba(37, 99, 235, 0.18);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.admin-import-card .admin-card-head {
  margin-bottom: 8px;
}

.admin-import-form {
  display: grid;
  grid-template-columns: minmax(0, max-content) auto;
  align-items: start;
  gap: 10px;
}

.admin-import-fields {
  display: grid;
  grid-template-columns: minmax(170px, 230px) minmax(170px, 220px) minmax(170px, 220px);
  gap: 10px;
}

.admin-import-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  margin-top: 26px;
}

.admin-import-check {
  min-height: 44px;
  white-space: nowrap;
}

.admin-import-button {
  min-width: 82px;
  min-height: 44px;
  padding-inline: 14px;
}

.admin-card.wide {
  grid-column: 1 / -1;
}

.admin-card-head,
.admin-table-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.admin-card-head h2,
.admin-table-head h2 {
  margin-bottom: 0;
}

.admin-table-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

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

.admin-form .field {
  margin-bottom: 0;
}

.admin-file-field > span {
  display: block;
  margin-bottom: 0;
}

.admin-file-upload {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  width: min(100%, 240px);
  min-height: 44px;
  border: 1px solid rgba(37, 99, 235, 0.28);
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  padding: 7px 9px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.admin-file-upload:hover {
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.1);
  transform: translateY(-1px);
}

.admin-file-upload input[type="file"] {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.admin-file-upload-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 28px;
  border-radius: 7px;
  background: rgba(22, 163, 74, 0.1);
  color: #15803d;
  font-size: 12px;
  font-weight: 950;
}

.admin-file-upload-badge.pdf {
  background: rgba(185, 65, 76, 0.1);
  color: var(--danger);
}

.admin-file-upload-badge.image {
  background: rgba(0, 133, 111, 0.12);
  color: var(--accent);
}

.admin-ticket-pdf-field .admin-file-upload,
.admin-ticket-image-field .admin-file-upload {
  width: min(100%, 320px);
}

.admin-ticket-image-preview {
  position: relative;
  width: min(100%, 320px);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #eff6ff, #ecfdf5);
  margin-bottom: 8px;
}

.admin-ticket-image-preview.is-clickable {
  cursor: zoom-in;
}

.admin-ticket-image-preview.is-clickable:hover,
.admin-image-thumb:hover {
  border-color: var(--line-strong);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.1);
}

.admin-ticket-image-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-ticket-image-preview-loading {
  display: grid;
  place-items: center;
}

.admin-ticket-image-preview-loading span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.admin-image-thumb {
  position: relative;
  display: block;
  width: 72px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #eff6ff, #ecfdf5);
  cursor: zoom-in;
  padding: 0;
}

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

.ticket-image-preview-full {
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f7f2;
}

.ticket-image-preview-full img {
  display: block;
  width: 100%;
  max-height: min(70vh, 720px);
  object-fit: contain;
}

.ticket-image-lightbox-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(17, 24, 39, 0.62);
  animation: modalBackdropIn 160ms ease-out;
}

.ticket-image-lightbox-backdrop.is-closing {
  pointer-events: none;
  animation: modalBackdropOut 180ms ease-in forwards;
}

.ticket-image-lightbox {
  position: relative;
  display: grid;
  gap: 12px;
  width: min(920px, calc(100vw - 36px));
  max-height: calc(100dvh - 36px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 16px;
  animation: modalPopIn 160ms cubic-bezier(0.22, 1, 0.36, 1);
}

.ticket-image-lightbox-backdrop.is-closing .ticket-image-lightbox {
  animation: modalPopOut 160ms ease-in forwards;
}

.ticket-image-lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
}

.ticket-image-lightbox-head {
  padding-right: 42px;
}

.ticket-image-lightbox-head h2 {
  margin-bottom: 0;
}

.ticket-image-lightbox .ticket-image-preview-full img {
  max-height: min(76vh, 760px);
}

.admin-file-upload-copy {
  display: grid;
  min-width: 0;
}

.admin-file-upload-copy strong,
.admin-file-upload-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-file-upload-copy strong {
  color: var(--text-strong);
}

.admin-file-upload-copy small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.admin-form select[multiple] {
  height: auto;
  min-height: 168px;
  padding: 8px 10px;
}

.admin-form-two,
.admin-form-three {
  display: grid;
  gap: 10px;
}

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

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

.admin-static-field {
  display: grid;
  min-height: 44px;
  align-content: center;
  gap: 3px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 7px 10px;
}

.admin-static-field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.admin-static-field strong {
  color: var(--text-strong);
  overflow-wrap: anywhere;
}

.admin-derived-price {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.06);
  padding: 10px 12px;
}

.admin-derived-price div {
  display: grid;
  gap: 2px;
}

.admin-derived-price span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.admin-derived-price strong {
  color: var(--text-strong);
  font-size: 16px;
}

.admin-derived-price p {
  grid-column: 1 / -1;
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 750;
  margin: 0;
}

.admin-derived-price.error {
  border-color: rgba(220, 38, 38, 0.32);
  background: rgba(220, 38, 38, 0.07);
}

.admin-derived-price.error p {
  color: #b91c1c;
}

.admin-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 800;
}

.admin-checkbox input {
  width: 16px;
  height: 16px;
}

.admin-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.admin-data-grid {
  display: grid;
  gap: 12px;
}

.admin-table-card {
  padding: 14px;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table-card table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.admin-table-card th,
.admin-table-card td {
  border-bottom: 1px solid var(--line);
  padding: 9px 8px;
  text-align: left;
  vertical-align: top;
}

.admin-table-card th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-table-card td {
  color: var(--text);
  font-size: 13px;
}

.admin-table-card tbody tr:last-child td {
  border-bottom: 0;
}

.admin-table-card tbody tr:hover td {
  background: #fbfbf8;
}

.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 12px 14px 0;
}

.admin-pagination > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.admin-pagination-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.admin-page-number {
  display: inline-grid;
  min-width: 34px;
  min-height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted-strong);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  padding: 0 9px;
}

.admin-page-number:hover {
  border-color: var(--line-strong);
  color: var(--text-strong);
}

.admin-page-number.active {
  border-color: rgba(35, 87, 198, 0.5);
  background: var(--primary-soft);
  color: var(--primary);
}

.admin-page-ellipsis {
  min-width: 20px;
  color: var(--muted);
  text-align: center;
  font-weight: 900;
}

.admin-check-col {
  width: 42px;
  text-align: center !important;
}

.admin-check-col input {
  width: 16px;
  height: 16px;
}

.admin-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 900;
  padding: 5px 9px;
  white-space: nowrap;
}

.admin-pill.available {
  background: var(--accent-soft);
  color: var(--accent);
}

.admin-pill.reserved,
.admin-pill.draft {
  background: var(--warning-soft);
  color: var(--warning);
}

.admin-pill.sold {
  background: var(--danger-soft);
  color: var(--danger);
}

.admin-pill.hidden-status {
  background: #eceae5;
  color: var(--muted-strong);
}

.admin-code-list {
  display: inline-block;
  max-width: 300px;
  overflow-wrap: anywhere;
}

.admin-file-status {
  display: grid;
  gap: 4px;
  min-width: 120px;
}

.admin-file-status span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-price-stack {
  display: grid;
  gap: 3px;
  min-width: 96px;
}

.admin-price-stack strong {
  color: var(--text);
  font-weight: 900;
  white-space: nowrap;
}

.admin-price-stack small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.admin-table-subtext {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  margin-top: 3px;
  overflow-wrap: anywhere;
}

.admin-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.status {
  display: inline-flex;
  width: fit-content;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.status.available {
  background: var(--accent-soft);
  color: var(--accent);
}

.status.sold {
  background: var(--danger-soft);
  color: var(--danger);
}

.status.reserved {
  background: var(--warning-soft);
  color: var(--warning);
}

.ticket-action {
  width: 100%;
}

.common-modal-backdrop,
.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 24, 39, 0.34);
  padding: 16px;
  animation: modalBackdropIn 160ms ease-out;
}

.common-modal {
  position: relative;
  width: min(540px, calc(100vw - 32px));
  max-height: min(78vh, 620px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: 18px;
  animation: modalPopIn 160ms cubic-bezier(0.22, 1, 0.36, 1);
}

.common-drawer-backdrop {
  align-items: stretch;
  justify-content: flex-end;
  padding: 0;
  background: rgba(17, 24, 39, 0.38);
  animation: drawerBackdropIn 160ms ease-out;
}

.common-drawer {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(520px, 100vw);
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  border-left: 1px solid var(--line);
  background: var(--surface);
  box-shadow: -18px 0 48px rgba(15, 23, 42, 0.18);
  padding: 18px;
  animation: drawerSlideInRight 220ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.common-modal-backdrop.is-closing,
.common-drawer-backdrop.is-closing {
  pointer-events: none;
  animation: modalBackdropOut 180ms ease-in forwards;
}

.common-modal.is-closing {
  animation: modalPopOut 160ms ease-in forwards;
}

.common-drawer.is-closing {
  animation: drawerSlideOutRight 220ms cubic-bezier(0.55, 0, 1, 0.45) forwards;
}

.common-drawer.common-modal-lg {
  width: min(720px, 100vw);
}

.common-drawer.source-import-drawer {
  width: min(1120px, 100vw);
}

.common-drawer.camp-slot-create-drawer {
  width: min(860px, 100vw);
  background:
    radial-gradient(circle at 0 0, rgba(35, 87, 198, 0.1), transparent 30%),
    linear-gradient(180deg, #fffefa 0%, #f8fcfa 100%);
}

.common-drawer.camp-campaign-create-drawer {
  width: min(980px, 100vw);
  background:
    radial-gradient(circle at 0 0, rgba(0, 133, 111, 0.1), transparent 32%),
    linear-gradient(180deg, #fffefa 0%, #f8fcfa 100%);
}

.common-drawer .common-modal-body {
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
}

.common-drawer .common-modal-footer {
  position: sticky;
  bottom: 0;
  background: var(--surface);
}

.common-modal-sm {
  width: min(420px, calc(100vw - 32px));
}

.confirm-modal {
  max-height: min(70vh, 420px);
}

.common-modal-md {
  width: min(540px, calc(100vw - 32px));
}

.common-modal-lg {
  width: min(760px, calc(100vw - 32px));
}

.common-modal .button {
  min-width: 0;
  min-height: 42px;
  height: auto;
  padding: 9px 12px;
  text-align: center;
  white-space: normal;
}

.common-modal-close,
.sheet-close {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 2;
  width: 36px;
  height: 36px;
}

.confirm-modal .common-modal-close {
  right: 0;
  top: 0;
  width: 36px;
  height: 36px;
  border-color: transparent;
  border-radius: 0 8px 0 8px;
  background: transparent;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
}

.confirm-modal .common-modal-close:hover {
  border-color: transparent;
  background: var(--surface-soft);
  color: var(--text-strong);
  box-shadow: none;
}

.confirm-modal .common-modal-head {
  padding-right: 34px;
}

.detail-empty {
  color: var(--muted);
  margin-bottom: 0;
}

.common-modal-head,
.side-panel-head {
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
  min-height: 38px;
  padding-right: 46px;
  padding-bottom: 12px;
}

.common-modal-head h2,
.side-panel-head h2 {
  max-width: 100%;
  font-size: 18px;
  line-height: 1.28;
  margin-bottom: 0;
  overflow-wrap: anywhere;
}

.common-modal-body {
  min-width: 0;
}

.common-modal-footer {
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 12px;
}

.confirm-modal .common-modal-footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

@keyframes modalBackdropIn {
  from {
    background: rgba(17, 24, 39, 0);
  }
  to {
    background: rgba(17, 24, 39, 0.34);
  }
}

@keyframes modalBackdropOut {
  from {
    background: rgba(17, 24, 39, 0.38);
  }
  to {
    background: rgba(17, 24, 39, 0);
  }
}

@keyframes drawerBackdropIn {
  from {
    background: rgba(17, 24, 39, 0);
  }
  to {
    background: rgba(17, 24, 39, 0.38);
  }
}

@keyframes modalPopIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes modalPopOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
}

@keyframes drawerSlideInRight {
  from {
    opacity: 0.92;
    transform: translateX(36px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes drawerSlideOutRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0.92;
    transform: translateX(42px);
  }
}

@keyframes drawerSlideInUp {
  from {
    opacity: 0.94;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drawerSlideOutDown {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0.94;
    transform: translateY(32px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .common-drawer-backdrop,
  .common-drawer,
  .common-modal-backdrop,
  .common-modal {
    animation: none;
    transition: none;
  }
}

.side-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(0, 133, 111, 0.22);
  border-radius: 8px;
  background: var(--accent-soft);
  margin-bottom: 12px;
  padding: 12px 14px;
}

.side-total span {
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 850;
}

.side-total strong {
  color: var(--text-strong);
  font-size: 24px;
  line-height: 1.1;
  text-align: right;
  overflow-wrap: anywhere;
}

.side-total .sale-price-display strong {
  font-size: 24px;
}

.side-note {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 14px;
  overflow-wrap: anywhere;
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.quick-facts > div {
  display: grid;
  min-height: 62px;
  align-content: start;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 10px;
}

.quick-facts > div > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.quick-facts > div > strong {
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.quick-facts-wide {
  grid-column: 1 / -1;
}

.quick-facts .status {
  width: fit-content;
}

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

.detail-full-action {
  width: 100%;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  background: rgba(17, 24, 39, 0.62);
  padding: 20px;
}

.payment-modal,
.refund-modal {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.payment-modal {
  width: min(800px, 100%);
  padding: 24px;
  padding-right: 58px;
}

.payment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 316px;
  gap: 24px;
  align-items: center;
}

.camp-slot-payment-modal {
  width: min(800px, calc(100vw - 32px));
}

.camp-slot-payment-layout {
  align-items: center;
}

.camp-slot-payment-side {
  display: grid;
  gap: 14px;
}

.camp-slot-payment-modal .payment-info {
  margin-bottom: 0;
}

.camp-slot-qr-box {
  min-height: 300px;
}

.camp-slot-qr-box img {
  width: min(260px, 100%);
  height: auto;
  aspect-ratio: 1;
}

.close-button {
  position: absolute;
  right: 14px;
  top: 14px;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  font-size: 20px;
  line-height: 1;
}

.payment-info {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
}

.payment-info div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 9px;
}

/* ── Account Lookup result cards ─────────────────────────── */
.lookup-loading {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 52px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.lookup-loading-ring {
  width: 38px;
  height: 38px;
  border: 3px solid var(--line);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

.bank-lookup-summary {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(35, 87, 198, 0.22);
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
}

.bank-lookup-account {
  display: inline-block;
  background: rgba(35, 87, 198, 0.12);
  border-radius: 4px;
  padding: 1px 7px;
  font-family: ui-monospace, "Cascadia Code", "Fira Mono", monospace;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.bank-result-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(17, 24, 39, 0.05);
  overflow: hidden;
  transition:
    box-shadow 0.15s ease,
    border-color 0.15s ease;
}

.bank-result-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
}

.bank-result-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.bank-result-avatar {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
  border: 1px solid rgba(35, 87, 198, 0.14);
}

.bank-result-title {
  flex: 1;
  min-width: 0;
}

.bank-result-title strong {
  display: block;
  color: var(--text-strong);
  font-size: 13.5px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bank-result-code {
  display: block;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  margin-top: 2px;
}

.bank-result-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 20px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 10.5px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bank-result-info {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 2px 16px 6px;
}

.bank-result-info div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.bank-result-info div:last-child {
  border-bottom: none;
}

.bank-result-info dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  flex-shrink: 0;
}

.bank-result-info dd {
  margin: 0;
  color: var(--text-strong);
  font-size: 13px;
  font-weight: 700;
  text-align: right;
  word-break: break-all;
}
/* ─────────────────────────────────────────────────────────── */

.payment-recipient {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

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

.payment-recipient-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.payment-recipient input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 750;
  padding: 0 12px;
}

.payment-recipient input:focus {
  border-color: rgba(35, 87, 198, 0.55);
  box-shadow: 0 0 0 3px rgba(35, 87, 198, 0.12);
  outline: none;
}

.payment-recipient-error {
  border-radius: 8px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.45;
  padding: 9px 10px;
}

dt {
  color: var(--muted);
  font-weight: 750;
}

dd {
  min-width: 0;
  margin: 0;
  color: var(--text-strong);
  text-align: right;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.qr-box {
  display: grid;
  min-height: 316px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 18px;
}

.qr-box img {
  display: block;
  width: 246px;
  height: 246px;
}

.qr-loading,
.qr-error {
  font-weight: 850;
  padding: 20px;
  text-align: center;
}

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

.qr-error {
  color: var(--danger);
}

.qr-success {
  display: grid;
  gap: 10px;
  justify-items: center;
  color: var(--accent);
  font-weight: 850;
  padding: 24px;
  text-align: center;
}

.qr-success strong {
  color: var(--text-strong);
  font-size: 20px;
}

.qr-success small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.success-mark {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 40px;
  line-height: 1;
}

.payment-countdown {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(35, 87, 198, 0.24);
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 850;
  margin-top: 14px;
  padding: 12px;
}

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

.payment-countdown strong {
  font-variant-numeric: tabular-nums;
  font-size: 24px;
}

.payment-countdown.warning {
  border-color: rgba(167, 103, 0, 0.3);
  background: var(--warning-soft);
  color: var(--warning);
}

.payment-cancel {
  width: 100%;
  margin-top: 12px;
}

.payment-status,
.refund-validation,
.refund-submit-status {
  border-radius: 8px;
  font-weight: 850;
  line-height: 1.45;
  padding: 12px;
}

.payment-status {
  margin-top: 14px;
}

.payment-status.checking,
.refund-validation.checking,
.refund-submit-status.checking {
  background: var(--warning-soft);
  color: var(--warning);
}

.payment-status.paid,
.refund-validation.success,
.refund-submit-status.success {
  background: var(--accent-soft);
  color: var(--accent);
}

.payment-status.error,
.refund-validation.error,
.refund-submit-status.error {
  background: var(--danger-soft);
  color: var(--danger);
}

.refund-modal {
  width: min(620px, 100%);
  max-height: min(92vh, 820px);
  overflow: auto;
  padding: 24px;
}

.refund-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.refund-mark {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--warning-soft);
  color: var(--warning);
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
}

.refund-message {
  border: 1px solid rgba(167, 103, 0, 0.28);
  border-radius: 8px;
  background: var(--warning-soft);
  color: #654800;
  font-weight: 750;
  line-height: 1.5;
  margin-bottom: 18px;
  padding: 12px;
}

.refund-info {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
}

.refund-info div {
  display: grid;
  grid-template-columns: minmax(0, 180px) minmax(0, 1fr);
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.refund-info dd {
  overflow-wrap: anywhere;
}

.refund-form {
  display: grid;
  gap: 12px;
}

.refund-helper {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

.refund-form .field {
  margin-bottom: 0;
}

.refund-account-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.refund-account-row input {
  width: 100%;
}

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

.refund-actions .button {
  width: 100%;
}

.refund-form[data-camp-slot-ticket-class-form] .refund-actions,
.refund-form[data-camp-slot-refund-form] .refund-actions {
  display: flex;
  justify-content: center;
}

.refund-form[data-camp-slot-ticket-class-form] .refund-actions .button,
.refund-form[data-camp-slot-refund-form] .refund-actions .button {
  width: min(100%, 280px);
}

.refund-form[data-camp-slot-ticket-class-form],
.refund-form[data-camp-slot-refund-form] {
  gap: 13px;
}

.refund-form[data-camp-slot-ticket-class-form] .field,
.refund-form[data-camp-slot-refund-form] .field {
  gap: 6px;
  font-size: 13px;
}

.refund-form[data-camp-slot-ticket-class-form] input,
.refund-form[data-camp-slot-ticket-class-form] select,
.refund-form[data-camp-slot-refund-form] input,
.refund-form[data-camp-slot-refund-form] select {
  width: 100%;
  height: 44px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 850;
  padding-inline: 12px;
}

.empty-state {
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted);
  padding: 28px;
  text-align: center;
}

.ticket-list > .empty-state {
  grid-column: 1 / -1;
}

.empty-state strong {
  display: block;
  color: var(--text-strong);
  font-size: 16px;
  margin-bottom: 6px;
}

.empty-state p {
  max-width: 460px;
  margin: 0 auto;
  line-height: 1.5;
}

.empty-state .button {
  margin-top: 16px;
}

.empty-state.dark {
  color: var(--muted);
}

@media (max-width: 1120px) {
  .admin-form-grid,
  .admin-stats,
  .admin-toolbar {
    grid-template-columns: 1fr;
  }

  .source-overview-grid {
    grid-template-columns: 1fr;
  }

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

  .money-history-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .market-strip {
    align-items: stretch;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .market-strip > div {
    min-height: auto;
  }

  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .ticket-tools,
  .ticket-search {
    width: 100%;
    min-width: 0;
  }

  .account-lookup-form {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .account-lookup-field {
    width: 100%;
    grid-column: 1 / -1;
  }

  .account-lookup-form .button {
    width: 100%;
    min-width: 0;
  }

}

@media (max-width: 820px) {
  .admin-tabs {
    grid-template-columns: 1fr;
  }

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

  .source-import-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-form-two,
  .admin-form-three {
    grid-template-columns: 1fr;
  }

  .admin-import-form,
  .admin-import-fields {
    grid-template-columns: 1fr;
  }

  .admin-import-actions,
  .admin-import-button {
    width: 100%;
  }

  .admin-import-actions {
    justify-content: space-between;
    margin-top: 0;
  }

  .admin-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-hero-actions,
  .admin-hero-actions .button {
    width: 100%;
  }

  .admin-selected-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .ticket-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-pagination-actions {
    justify-content: space-between;
  }

  .ticket-pagination-actions {
    justify-content: space-between;
  }

  .order-card-main {
    grid-template-columns: 1fr;
  }

  .login-layout {
    grid-template-columns: 1fr;
  }

  .login-intro {
    min-height: 330px;
  }

  .summary-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .reconciliation-toolbar {
    grid-template-columns: 1fr;
  }

  .payment-layout {
    grid-template-columns: 1fr;
  }

  .side-total {
    align-items: flex-start;
    flex-direction: column;
  }

  .side-total strong {
    text-align: left;
  }

  .quick-facts,
  .detail-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .login-screen {
    padding: 14px;
  }

  .login-layout {
    width: calc(100vw - 28px);
    max-width: calc(100vw - 28px);
    min-height: calc(100vh - 28px);
  }

  .login-intro,
  .login-panel {
    padding: 22px;
  }

  .login-copy h1 {
    font-size: 28px;
    overflow-wrap: anywhere;
  }

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

  .app-header,
  .app-nav,
  .user-box,
  .checkout-bar,
  .checkout-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .app-nav {
    width: 100%;
  }

  .app-nav-button {
    width: 100%;
  }

  .app-header {
    position: static;
    padding: 14px 16px;
  }

  .workspace {
    width: calc(100vw - 24px);
    padding: 16px 0 24px;
  }

  .market-button-list {
    margin-right: -12px;
  }

  .market-button {
    min-width: 158px;
  }

  .checkout-bar span {
    max-width: none;
    white-space: normal;
  }

  .checkout-error {
    max-width: none;
  }

  .ticket-list {
    grid-template-columns: 1fr;
  }

  .status {
    width: 100%;
  }

  .refund-info div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .refund-info dd,
  dd {
    text-align: left;
  }

  .refund-account-row,
  .refund-actions {
    grid-template-columns: 1fr;
  }
}

/* Responsive refinements for touch devices */
@media (max-width: 920px) {
  h1 {
    font-size: 24px;
    line-height: 1.18;
  }

  h2 {
    font-size: 18px;
  }

  .account-overview-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .account-overview-card .button {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .account-form-grid,
  .account-form-grid.password-grid {
    grid-template-columns: 1fr;
  }

  .account-session-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-session-card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .account-session-action {
    min-width: 0;
    justify-items: stretch;
  }

  .button,
  .icon-button,
  .app-nav-button,
  .market-button,
  .metric,
  .order-summary-card,
  .admin-tab {
    touch-action: manipulation;
  }

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

  .app-header .brand {
    min-width: 0;
  }

  .app-header .brand-wordmark {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .app-nav {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 100%;
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .app-nav::-webkit-scrollbar,
  .market-nav::-webkit-scrollbar,
  .market-button-list::-webkit-scrollbar,
  .summary-strip::-webkit-scrollbar,
  .order-summary-strip::-webkit-scrollbar,
  .admin-tabs::-webkit-scrollbar,
  .ticket-pagination-actions::-webkit-scrollbar,
  .admin-pagination-actions::-webkit-scrollbar {
    display: none;
  }

  .app-nav-button {
    width: auto;
    flex: 0 0 auto;
    padding-inline: 14px;
    white-space: nowrap;
  }

  .user-box {
    max-width: 220px;
    flex-direction: row;
    align-items: center;
  }

  .workspace {
    width: min(100% - 24px, 1320px);
  }

  .summary-strip,
  .order-summary-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(132px, 1fr);
    grid-template-columns: none;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
  }

  .metric,
  .order-summary-card {
    min-height: 64px;
    padding: 11px 12px;
  }

  .metric strong,
  .order-summary-card strong {
    font-size: 23px;
  }

  .ticket-list {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    justify-content: stretch;
  }

  .ticket-row {
    grid-template-columns: 112px minmax(0, 1fr);
    grid-template-areas:
      "visual main"
      "visual price"
      "status status"
      "action action";
    align-items: start;
    min-height: 0;
    gap: 11px;
  }

  .ticket-row > .ticket-visual {
    grid-area: visual;
    height: 100%;
    min-height: 112px;
    aspect-ratio: auto;
  }

  .ticket-main {
    grid-area: main;
  }

  .price {
    grid-area: price;
    align-self: end;
  }

  .ticket-row > .status {
    grid-area: status;
    justify-self: start;
  }

  .ticket-action {
    grid-area: action;
  }

  .order-list {
    grid-template-columns: 1fr;
  }

  .admin-tabs {
    display: flex;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }

  .admin-tab {
    min-width: 156px;
    flex: 0 0 auto;
  }

  .admin-table-card {
    min-width: 0;
  }

  .admin-table-wrap {
    margin-inline: -14px;
    padding-inline: 14px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .admin-table-card table {
    min-width: 760px;
  }

  .admin-card-head,
  .admin-table-head {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-card-head .button,
  .admin-table-head .button {
    width: fit-content;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }

  .button {
    min-height: 44px;
    padding-inline: 13px;
  }

  .button.small {
    min-height: 38px;
  }

  .login-screen {
    min-height: 100dvh;
    place-items: start center;
    padding: 12px;
  }

  .login-layout {
    width: calc(100vw - 48px);
    max-width: calc(100vw - 48px);
    min-width: 0;
    min-height: auto;
    justify-self: center;
  }

  .login-intro {
    min-height: auto;
    gap: 0;
    padding: 16px 18px;
  }

  .login-copyright {
    display: none;
  }

  .login-copy h1 {
    font-size: 22px;
  }

  .login-copy > p:not(.eyebrow),
  .login-snapshot {
    display: none;
  }

  .login-panel {
    padding: 22px 20px 18px;
  }

  .auth-mode {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    margin-bottom: 16px;
    padding: 3px;
  }

  .auth-mode-button {
    min-height: 38px;
    padding-inline: 6px;
  }

  .login-heading {
    margin-bottom: 18px;
  }

  .login-heading h2 {
    font-size: 26px;
  }

  .text-button {
    justify-self: end;
    margin-bottom: 16px;
    font-size: 13px;
  }

  .login-panel-copyright {
    display: block;
  }

  .brand-wordmark {
    min-height: 36px;
    font-size: 18px;
  }

  .app-header {
    position: sticky;
    top: 0;
    padding: 9px 12px;
  }

  .app-header .brand-wordmark {
    font-size: 17px;
  }

  .app-copyright {
    width: calc(100vw - 20px);
    padding-bottom: 18px;
    text-align: center;
  }

  .user-box {
    min-height: 0;
    border: 0;
    background: transparent;
    padding: 0;
  }

  .user-box span {
    display: none;
  }

  .user-box .button {
    min-height: 36px;
    padding-inline: 10px;
  }

  .app-nav {
    margin-inline: -2px;
    padding: 3px;
  }

  .app-nav-button {
    min-height: 36px;
    font-size: 13px;
  }

  .workspace {
    width: min(100% - 24px, 1320px);
    max-width: 100%;
    padding: 14px 0 92px;
  }

  .ticket-filter-panel {
    display: grid;
    gap: 10px;
    border: 1px solid rgba(222, 219, 211, 0.88);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 8px 22px rgba(17, 24, 39, 0.06);
    margin-bottom: 12px;
    max-width: 100%;
    min-width: 0;
    padding: 10px;
    overflow: hidden;
  }

  .market-strip {
    display: block;
    margin-bottom: 0;
  }

  .market-strip > div,
  .market-button-list {
    display: none;
  }

  .market-nav {
    width: 100%;
  }

  .market-select-field {
    position: relative;
    display: grid;
    gap: 6px;
    min-width: 0;
  }

  .market-select-field > span,
  .summary-strip::before {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1;
    text-transform: uppercase;
  }

  .market-select-toggle {
    position: relative;
    display: grid;
    width: 100%;
    min-height: 46px;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
    color: var(--text-strong);
    cursor: pointer;
    font-weight: 850;
    padding: 8px 34px 8px 12px;
    text-align: left;
  }

  .market-select-toggle::after {
    position: absolute;
    right: 12px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    content: "";
    transform: translateY(-65%) rotate(45deg);
  }

  .market-select-toggle[aria-expanded="true"]::after {
    transform: translateY(-35%) rotate(225deg);
  }

  .market-select-toggle:focus-visible {
    border-color: rgba(35, 87, 198, 0.58);
    box-shadow: 0 0 0 3px rgba(35, 87, 198, 0.1);
    outline: 0;
  }

  .market-select-toggle strong,
  .market-select-toggle span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .market-select-toggle span {
    color: var(--muted-strong);
    font-size: 12px;
    font-weight: 850;
  }

  .market-option-list {
    position: static;
    display: grid;
    max-height: min(260px, 46dvh);
    overflow-y: auto;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 16px 34px rgba(17, 24, 39, 0.16);
    padding: 4px;
  }

  .market-option {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text-strong);
    cursor: pointer;
    font-weight: 850;
    padding: 10px;
    text-align: left;
  }

  .market-option:hover,
  .market-option.active {
    background: var(--primary-soft);
    color: var(--primary);
  }

  .market-option strong,
  .market-option span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .market-option span {
    color: inherit;
    font-size: 12px;
    opacity: 0.82;
  }

  .summary-strip {
    display: grid;
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin: 0;
    overflow: visible;
    padding: 0;
  }

  .summary-strip::before {
    grid-column: 1 / -1;
    content: "Trạng thái";
  }

  .metric {
    display: grid;
    min-height: 50px;
    min-width: 0;
    align-content: center;
    justify-items: start;
    gap: 3px;
    border-radius: 8px;
    padding: 8px 10px;
    box-shadow: none;
    text-align: left;
    white-space: normal;
  }

  .metric:hover {
    box-shadow: none;
    transform: none;
  }

  .metric span {
    font-size: 12px;
    line-height: 1;
    max-width: 100%;
    overflow: hidden;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .metric strong {
    font-size: 17px;
    line-height: 1;
  }

  .metric.active.all {
    background: var(--primary);
    color: #fff;
  }

  .metric.active.available {
    background: var(--accent);
    color: #fff;
  }

  .metric.active.reserved {
    background: var(--warning);
    color: #fff;
  }

  .metric.active.sold {
    background: var(--danger);
    color: #fff;
  }

  .metric.active strong,
  .metric.active span {
    color: inherit;
  }

  .section-head {
    margin-bottom: 10px;
  }

  .ticket-search {
    min-height: 46px;
  }

  .ticket-list {
    gap: 14px;
    max-width: 100%;
    min-width: 0;
    padding-bottom: 2px;
    overflow: hidden;
  }

  .ticket-row {
    grid-template-columns: 104px minmax(0, 1fr);
    grid-template-areas:
      "visual main"
      "visual price"
      "status status"
      "action action";
    gap: 10px;
    border-color: rgba(17, 24, 39, 0.14);
    background: linear-gradient(180deg, #fff, #fffefa);
    box-shadow: 0 8px 22px rgba(17, 24, 39, 0.07);
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    padding: 13px;
  }

  .ticket-row:hover {
    box-shadow: 0 8px 22px rgba(17, 24, 39, 0.07);
    transform: none;
  }

  .ticket-row.selected {
    border-color: rgba(35, 87, 198, 0.62);
    box-shadow:
      0 0 0 2px rgba(35, 87, 198, 0.08),
      0 10px 24px rgba(17, 24, 39, 0.08);
  }

  .ticket-row.in-cart {
    border-color: rgba(0, 133, 111, 0.68);
    background: linear-gradient(180deg, #fff, #f3fbf8);
    box-shadow:
      0 0 0 2px rgba(0, 133, 111, 0.08),
      0 10px 24px rgba(17, 24, 39, 0.08);
  }

  .ticket-row > .ticket-visual {
    grid-area: visual;
    min-height: 108px;
  }

  .ticket-main {
    grid-area: main;
  }

  .ticket-title-line {
    gap: 6px;
    margin-bottom: 6px;
  }

  .ticket-title-line strong {
    display: -webkit-box;
    font-size: 16px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .ticket-main > span {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .price {
    grid-area: price;
    align-self: center;
    font-size: 18px;
  }

  .ticket-row > .status {
    grid-area: status;
    width: fit-content;
    align-self: center;
    justify-self: start;
  }

  .ticket-action {
    grid-area: action;
    min-height: 44px;
    max-width: 100%;
  }

  .checkout-bar {
    position: sticky;
    bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 7;
    align-items: stretch;
    gap: 10px;
    margin-inline: -2px;
    padding: 11px;
    box-shadow: var(--shadow-soft);
  }

  .checkout-bar strong {
    font-size: 16px;
    line-height: 1.25;
  }

  .checkout-bar span {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    white-space: normal;
  }

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

  .checkout-actions .button {
    width: 100%;
    white-space: normal;
  }

  .ticket-pagination,
  .admin-pagination {
    gap: 10px;
    padding-top: 12px;
  }

  .ticket-pagination-actions,
  .admin-pagination-actions {
    max-width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
  }

  .ticket-page-number,
  .admin-page-number {
    min-width: 36px;
    flex: 0 0 auto;
  }

  .order-summary-strip {
    grid-auto-columns: minmax(128px, 1fr);
    gap: 8px;
  }

  .reconciliation-summary {
    grid-template-columns: 1fr;
  }

  .money-history-summary {
    grid-template-columns: 1fr;
  }

  .reconciliation-card {
    min-height: 72px;
  }

  .money-history-card {
    min-height: 82px;
    padding: 14px 16px;
  }

  .order-card {
    gap: 12px;
    border-color: rgba(17, 24, 39, 0.14);
    box-shadow: 0 8px 22px rgba(17, 24, 39, 0.07);
    overflow: hidden;
    padding: 13px;
  }

  .order-card header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .order-card h3 {
    display: -webkit-box;
    font-size: 16px;
    margin: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .order-card-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .order-card-main div:first-child {
    grid-column: 1 / -1;
  }

  .order-items {
    grid-template-columns: 1fr;
  }

  .order-card > .button {
    width: 100%;
  }

  .order-filter-panel {
    margin: 10px 0 12px;
  }

  .order-status-chips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-right: 0;
    overflow: visible;
    padding-right: 0;
  }

  .order-status-chip {
    min-height: 36px;
    min-width: 0;
    padding-inline: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
  }

  .admin-hero {
    gap: 10px;
  }

  .admin-hero .button,
  .admin-actions-row .button {
    width: 100%;
  }

  .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .admin-stats div {
    padding: 11px;
  }

  .admin-stats span {
    font-size: 12px;
  }

  .admin-stats strong {
    font-size: 21px;
  }

  .account-profile-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 10px 0;
  }

  .account-profile-card {
    padding: 12px;
  }

  .account-profile-card strong,
  .account-email-card strong {
    font-size: 18px;
  }

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

  .account-avatar {
    width: 42px;
    height: 42px;
    font-size: 15px;
  }

  .account-overview-main h1 {
    font-size: 22px;
    line-height: 1.16;
  }

  .account-overview-meta {
    gap: 6px;
  }

  .account-overview-meta span {
    width: fit-content;
    max-width: 100%;
    min-height: 24px;
    font-size: 11px;
    padding: 3px 8px;
  }

  .account-overview-card .button {
    grid-column: 2;
    justify-self: start;
    width: auto;
    min-height: 34px;
    padding-inline: 10px;
  }

  .account-settings-stack {
    gap: 10px;
    margin-top: 10px;
  }

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

  .account-tabs .account-tab-logout {
    display: inline-flex;
  }

  .account-tabs button {
    min-height: 38px;
    padding-inline: 8px;
  }

  .account-danger-panel {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    margin: 0;
  }

  .account-danger-panel div {
    width: 100%;
  }

  .account-danger-panel .button {
    width: 100%;
  }

  .account-layout-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 12px 0;
  }

  .account-forms-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 0;
  }

  .account-form-card {
    padding: 12px;
  }

  .account-section-card.account-form-card,
  .account-section-card.account-device-panel {
    padding: 0;
  }

  .account-form-card header {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .account-role-badge {
    width: fit-content;
  }

  .account-collapse-head {
    width: 100%;
  }

  .account-collapse-title {
    flex-wrap: wrap;
  }

  .account-form-card .button {
    justify-self: stretch;
    width: 100%;
  }

  .account-collapse-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 13px 14px;
  }

  .account-collapse-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
  }

  .account-collapse-title h2 {
    font-size: 18px;
    line-height: 1.2;
  }

  .account-collapse-title > span:not(.account-role-badge),
  .account-role-badge {
    width: fit-content;
    min-height: 24px;
    padding: 3px 8px;
    font-size: 11px;
  }

  .account-collapse-body {
    padding: 12px;
  }

  .account-section-actions {
    flex-direction: column;
  }

  .account-form-card .field {
    gap: 6px;
  }

  .account-form-card .field input {
    height: 42px;
  }

  .account-device-panel {
    padding: 0;
  }

  .account-section-head {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .account-section-head > span {
    width: fit-content;
  }

  .account-session-list {
    grid-template-columns: 1fr;
  }

  .account-other-session-list {
    grid-template-columns: 1fr;
  }

  .account-session-meta {
    grid-template-columns: 1fr;
  }

  .account-session-card .button {
    justify-self: stretch;
    width: 100%;
  }

  .admin-toolbar {
    gap: 9px;
  }

  .admin-editor-workspace {
    padding: 12px;
  }

  .admin-editor-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-editor-hero .button {
    width: 100%;
  }

  .admin-search-field input,
  .admin-toolbar input,
  .admin-toolbar select {
    min-width: 0;
    height: 44px;
  }

  .admin-actions-row {
    align-items: stretch;
    flex-direction: column;
  }

  .source-sync-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .source-sync-actions .button {
    width: 100%;
  }

  .source-row-actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .source-row-actions .button {
    width: 100%;
  }

  .source-import-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-form-two.source-import-main-row {
    grid-template-columns: 1fr;
  }

  .admin-form-two.source-import-price-image-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .source-import-group-mode-field {
    max-width: none;
  }

  .source-import-market-field {
    max-width: none;
  }

  .source-import-selection-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .source-import-selection-bar div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .source-import-ticket-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .source-import-drawer,
  .source-import-drawer .common-modal-body,
  .source-import-drawer .source-import-form,
  .source-import-drawer .admin-table-card {
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }

  .source-import-drawer .admin-table-wrap {
    max-width: 100%;
    overflow-x: auto;
  }

  .admin-card,
  .admin-table-card {
    padding: 12px;
  }

  .admin-import-form,
  .admin-import-fields {
    gap: 9px;
  }

  .admin-import-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    height: auto;
    width: 100%;
  }

  .admin-import-button {
    width: auto;
  }

  .admin-file-upload,
  .admin-ticket-pdf-field .admin-file-upload,
  .admin-ticket-image-field .admin-file-upload,
  .admin-ticket-image-preview {
    width: 100%;
  }

  .admin-form select[multiple] {
    min-height: 190px;
  }

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

  .admin-regroup-head,
  .admin-selected-bar {
    align-items: stretch;
  }

  .admin-regroup-head {
    flex-direction: column;
  }

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

  .admin-checkbox {
    align-items: flex-start;
  }

  .admin-table-wrap {
    margin-inline: -12px;
    padding-inline: 12px;
  }

  .admin-table-card table {
    min-width: 760px;
  }

  .admin-file-status span {
    max-width: 150px;
  }

  .common-modal-backdrop {
    align-items: center;
    justify-content: center;
    place-items: center;
    padding: 16px;
  }

  .sheet-backdrop,
  .modal-backdrop {
    align-items: end;
    place-items: end center;
    padding: 10px 10px 0;
  }

  .common-modal {
    width: min(420px, calc(100vw - 24px));
    max-height: calc(100dvh - 32px);
    border-radius: 12px;
    overflow: auto;
  }

  .common-modal.common-modal-lg {
    width: min(680px, calc(100vw - 24px));
  }

  .common-drawer,
  .payment-modal,
  .refund-modal {
    width: 100%;
    max-height: calc(100dvh - 20px);
    border-radius: 8px 8px 0 0;
    overflow: auto;
  }

  .common-modal {
    padding: 16px;
  }

  .common-modal-backdrop.common-confirm-backdrop {
    align-items: center;
    justify-content: center;
    place-items: center;
    padding: 16px;
  }

  .common-modal-backdrop.camp-slot-payment-backdrop {
    align-items: flex-start;
    justify-content: center;
    place-items: start center;
    padding: max(54px, env(safe-area-inset-top)) 10px 10px;
  }

  .common-modal.confirm-modal {
    width: min(420px, calc(100vw - 32px));
    max-height: calc(100dvh - 32px);
    border-radius: 8px;
    overflow: auto;
  }

  .common-drawer-backdrop {
    align-items: end;
    justify-content: center;
    padding: 10px 10px 0;
  }

  .common-drawer {
    height: calc(100dvh - 10px);
    max-height: calc(100dvh - 10px);
    border-left: 1px solid var(--line);
    padding: 16px;
    animation-name: drawerSlideInUp;
  }

  .common-drawer.is-closing {
    animation-name: drawerSlideOutDown;
  }

  .common-modal-head {
    min-height: 36px;
    padding-right: 42px;
  }

  .detail-panel .common-modal-head h2 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .detail-panel .detail-visual {
    height: min(38dvh, 300px);
    min-height: 150px;
    margin-bottom: 10px;
  }

  .common-modal-footer {
    position: sticky;
    bottom: 0;
    background: var(--surface);
    border-top: 1px solid var(--line);
    margin-top: 10px;
    padding-top: 10px;
    padding-bottom: max(0px, env(safe-area-inset-bottom));
  }

  .confirm-modal .common-modal-footer {
    position: static;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 12px;
    padding-bottom: 0;
  }

  .side-total {
    align-items: flex-start;
    padding: 11px 12px;
  }

  .side-total strong {
    font-size: 22px;
  }

  .quick-facts {
    grid-template-columns: 1fr;
  }

  .detail-actions {
    grid-template-columns: 1fr;
  }

  .payment-modal {
    padding: 18px;
    padding-top: 54px;
  }

  .payment-layout {
    gap: 16px;
  }

  .payment-info div {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .payment-info dd,
  dd {
    text-align: left;
  }

  .camp-slot-payment-modal {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    width: min(390px, calc(100vw - 20px));
    max-height: calc(100dvh - max(74px, env(safe-area-inset-top)) - 10px);
    border-radius: 12px;
    overflow: hidden;
  }

  .camp-slot-payment-modal .common-modal-body {
    min-height: 0;
    overflow: auto;
    padding-right: 0;
  }

  .camp-slot-payment-layout {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }

  .camp-slot-payment-side {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .camp-slot-payment-modal .payment-status {
    order: 1;
    margin: 0;
    padding: 10px 12px;
    font-size: 13px;
  }

  .camp-slot-payment-modal .payment-info {
    order: 2;
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
  }

  .camp-slot-payment-modal .payment-info div {
    display: grid;
    grid-template-columns: minmax(92px, 0.42fr) minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    border-bottom: 1px solid var(--line);
    padding: 10px 12px;
  }

  .camp-slot-payment-modal .payment-info div:last-child {
    border-bottom: 0;
  }

  .camp-slot-payment-modal .payment-info dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
  }

  .camp-slot-payment-modal .payment-info dd {
    text-align: right;
    font-size: 14px;
    line-height: 1.32;
  }

  .payment-recipient-row {
    grid-template-columns: 1fr;
  }

  .payment-recipient-row .button {
    width: 100%;
  }

  .payment-countdown {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .qr-box {
    min-height: 0;
    padding: 14px;
  }

  .qr-box img {
    width: min(230px, 72vw);
    height: auto;
    aspect-ratio: 1;
  }

  .camp-slot-qr-box {
    order: -1;
    min-height: 0;
    border-radius: 14px;
    padding: 12px;
  }

  .camp-slot-qr-box img {
    width: min(252px, 78vw);
  }

  .refund-modal {
    padding: 18px;
    padding-top: 54px;
  }

  .refund-head {
    align-items: flex-start;
  }

  .refund-mark {
    width: 44px;
    height: 44px;
    font-size: 26px;
  }

  .refund-message,
  .empty-state {
    padding: 14px;
  }

  .refund-account-row,
  .refund-actions {
    gap: 8px;
  }

  .refund-form[data-camp-slot-ticket-class-form] input,
  .refund-form[data-camp-slot-ticket-class-form] select,
  .refund-form[data-camp-slot-refund-form] input,
  .refund-form[data-camp-slot-refund-form] select {
    height: 44px;
    font-size: 15px;
  }

  .refund-form[data-camp-slot-ticket-class-form] .refund-actions,
  .refund-form[data-camp-slot-refund-form] .refund-actions {
    margin-top: 2px;
  }
}

@media (max-width: 380px) {
  .workspace {
    width: min(100% - 20px, 1320px);
  }

  .app-header {
    padding-inline: 8px;
  }

  .market-button {
    padding-inline: 10px;
  }

  .summary-strip {
    gap: 6px;
  }

  .metric {
    min-height: 44px;
    padding-inline: 9px;
  }

  .metric span {
    font-size: 12px;
  }

  .ticket-row {
    grid-template-columns: 88px minmax(0, 1fr);
    grid-template-areas:
      "visual main"
      "visual price"
      "status status"
      "action action";
    gap: 10px;
    padding: 11px;
  }

  .ticket-row > .ticket-visual {
    min-height: 96px;
  }

  .ticket-title-line strong {
    font-size: 15px;
  }

  .unit-badge {
    min-height: 22px;
    font-size: 11px;
    padding-inline: 7px;
  }

  .ticket-row > .status {
    justify-self: start;
  }

  .checkout-actions,
  .admin-import-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .admin-table-card {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .source-orders-table,
  .source-tickets-table {
    min-width: 0 !important;
  }

  .admin-table-head {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    margin-bottom: 10px;
    padding: 12px;
  }

  .admin-table-wrap {
    margin-inline: 0;
    overflow: visible;
    padding-inline: 0;
  }

  .admin-table-card table,
  .admin-table-card thead,
  .admin-table-card tbody,
  .admin-table-card tr,
  .admin-table-card th,
  .admin-table-card td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .admin-table-card table {
    min-width: 0;
    border-collapse: separate;
  }

  .admin-table-card thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .admin-table-card tbody {
    display: grid;
    gap: 10px;
  }

  .admin-table-card tbody tr {
    display: grid;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 1px 0 rgba(17, 24, 39, 0.03);
    padding: 8px 10px;
  }

  .admin-table-card tbody tr:hover td {
    background: transparent;
  }

  .admin-table-card td {
    display: grid;
    grid-template-columns: minmax(104px, 0.42fr) minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    border-bottom: 1px solid var(--line);
    color: var(--text);
    padding: 9px 0;
    text-align: left;
    overflow-wrap: anywhere;
  }

  .admin-table-card tbody tr:last-child td:not(:last-child),
  .admin-table-card tbody tr td:not(:last-child) {
    border-bottom: 1px solid var(--line);
  }

  .admin-table-card td:last-child,
  .admin-table-card tbody tr:last-child td:last-child {
    border-bottom: 0;
  }

  .admin-table-card td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.35;
    text-transform: uppercase;
  }

  .admin-table-card td[data-label="Thao tác"] {
    grid-template-columns: 1fr;
  }

  .admin-table-card td[data-label="Thao tác"]::before {
    display: none;
  }

  .admin-table-card td[data-label="Thao tác"] .button {
    width: 100%;
  }

  .admin-row-actions {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr;
  }

  .admin-check-col {
    width: auto;
    text-align: left !important;
  }

  .admin-check-col input {
    justify-self: start;
  }

  .admin-code-list,
  .admin-file-status,
  .admin-file-status span {
    max-width: none;
    min-width: 0;
  }

  .admin-file-status span {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }

  .admin-pill,
  .order-pill {
    width: fit-content;
    max-width: 100%;
    white-space: normal;
  }

  .admin-pagination {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    margin-top: 10px;
    padding: 12px;
  }
}

@media (max-width: 560px) {
  .admin-form-two.source-import-price-image-row {
    grid-template-columns: 1fr;
  }

  .source-import-ticket-card-head {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
  }

  .source-import-ticket-price {
    grid-column: 2;
    justify-items: start;
    text-align: left;
  }

  .source-import-ticket-meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .admin-table-card td {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .source-import-summary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .app-header {
    position: sticky;
    top: 0;
    z-index: 18;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    border-bottom-color: rgba(222, 219, 211, 0.72);
    padding: 8px 10px;
  }

  .app-header .brand {
    min-width: 0;
  }

  .app-header .brand-wordmark {
    min-height: 34px;
    font-size: 18px;
    padding-top: 5px;
    padding-bottom: 5px;
  }

  .user-box {
    justify-self: end;
    display: none;
  }

  .user-box span {
    display: none;
  }

  .user-box .button {
    min-height: 34px;
    border-color: var(--line);
    background: var(--surface);
    color: var(--text-strong);
    font-size: 12px;
    padding-inline: 10px;
  }

  .app-nav {
    position: fixed;
    right: max(8px, env(safe-area-inset-right));
    bottom: max(8px, env(safe-area-inset-bottom));
    left: max(8px, env(safe-area-inset-left));
    z-index: 18;
    display: flex;
    flex-direction: row;
    width: auto;
    max-width: none;
    grid-column: auto;
    gap: 4px;
    align-items: center;
    border: 1px solid rgba(222, 219, 211, 0.92);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 32px rgba(17, 24, 39, 0.14);
    margin: 0;
    overflow: hidden;
    padding: 5px;
    backdrop-filter: blur(16px);
  }

  .app-nav-button {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    flex: 1 1 0;
    border-radius: 10px;
    font-size: 0;
    line-height: 1.15;
    padding: 0 6px;
    white-space: normal;
  }

  .app-nav-button::after {
    content: attr(data-mobile-label);
    font-size: 12px;
    font-weight: 850;
    line-height: 1.15;
  }

  .app-nav-button[data-app-view="admin-orders"],
  .app-nav-button[data-app-view="admin-camp-slots"],
  .app-nav-button[data-app-view="admin-reconciliation"],
  .app-nav-button[data-app-view="admin-logs"],
  .app-nav-button[data-app-view="admin-users"] {
    display: none !important;
  }

  .workspace {
    padding-bottom: 112px;
  }

  .checkout-bar {
    position: sticky;
    bottom: calc(max(8px, env(safe-area-inset-bottom)) + 64px);
    z-index: 7;
  }

  .app-copyright {
    padding-bottom: 84px;
  }

  .mobile-admin-nav {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(94px, 1fr);
    gap: 8px;
    margin: 0 0 12px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: 2px 0 4px;
    scrollbar-width: none;
  }

  .mobile-admin-nav::-webkit-scrollbar {
    display: none;
  }

  .mobile-admin-nav button {
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f2f1ed;
    color: var(--muted-strong);
    cursor: pointer;
    font-size: 12px;
    font-weight: 900;
    padding: 0 10px;
    white-space: nowrap;
  }

  .mobile-admin-nav button.active {
    border-color: transparent;
    background: var(--primary);
    color: #fff;
    box-shadow: 0 8px 18px rgba(35, 87, 198, 0.22);
  }

  .mobile-admin-nav button[data-mobile-admin-view="admin-logs"] {
    display: none;
  }

  .system-log-dashboard {
    border-radius: 14px;
    padding: 12px;
  }

  .system-log-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .system-log-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .system-log-summary-card {
    min-height: 68px;
    border-radius: 12px;
    padding: 12px;
  }

  .system-log-summary-card strong {
    font-size: 24px;
  }

  .system-log-toolbar {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .system-log-filter-wide {
    grid-column: auto;
  }

  .system-log-detail-modal {
    max-height: calc(100dvh - 20px);
  }

  .system-log-detail-overview {
    grid-template-columns: 1fr;
  }

  .system-log-detail-json-head {
    align-items: start;
    flex-direction: column;
  }

  .system-log-detail-json pre {
    max-height: 42dvh;
    font-size: 11px;
  }
}

@media (max-width: 380px) {
  .app-nav {
    right: max(6px, env(safe-area-inset-right));
    bottom: max(6px, env(safe-area-inset-bottom));
    left: max(6px, env(safe-area-inset-left));
  }

  .app-nav-button {
    min-height: 42px;
    padding-inline: 4px;
  }

  .app-nav-button::after {
    font-size: 11px;
  }

}

.camp-slot-intro {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(0, 133, 111, 0.22);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(0, 133, 111, 0.1), rgba(35, 87, 198, 0.06)),
    var(--surface);
  color: var(--muted-strong);
  margin-bottom: 14px;
  padding: 16px;
}

.camp-slot-intro-copy {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.camp-slot-intro-copy strong {
  color: var(--accent);
  white-space: nowrap;
}

.camp-slot-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.camp-slot-flow > div {
  position: relative;
  min-height: 118px;
  border: 1px solid rgba(222, 219, 211, 0.88);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  padding: 14px;
}

.camp-slot-flow-title {
  display: flex;
  align-items: center;
  gap: 9px;
}

.camp-slot-flow span {
  display: inline-flex;
  min-width: 34px;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 950;
}

.camp-slot-flow strong,
.camp-slot-flow small {
  display: block;
}

.camp-slot-flow strong {
  color: var(--text-strong);
}

.camp-slot-flow small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  margin-top: 10px;
}

.camp-slot-refund-note {
  border: 1px solid rgba(180, 83, 9, 0.18);
  border-radius: 14px;
  background: rgba(255, 247, 237, 0.88);
  color: #9a3412;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.45;
  margin: 0;
  padding: 10px 12px;
}

.camp-slot-form {
  position: relative;
  display: grid;
  gap: 16px;
  border: 1px solid rgba(222, 219, 211, 0.95);
  border-radius: 20px;
  background:
    radial-gradient(circle at 0 0, rgba(35, 87, 198, 0.13), transparent 28%),
    linear-gradient(135deg, #fffefa 0%, #ffffff 52%, #f8fcfa 100%);
  margin-bottom: 16px;
  padding: 18px;
  box-shadow: 0 18px 50px rgba(17, 24, 39, 0.09);
}

.camp-slot-form-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-right: 42px;
}

.camp-slot-form-head h2 {
  margin-bottom: 0;
}

.camp-slot-form-head-actions {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  display: grid;
}

.camp-slot-toggle-button {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--primary);
  cursor: pointer;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.06);
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

.camp-slot-toggle-button:hover {
  border-color: rgba(35, 87, 198, 0.34);
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.11);
  transform: translateY(-1px);
}

.camp-slot-toggle-button:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.camp-slot-form-head-actions > span,
.camp-slot-form-head > span {
  max-width: 460px;
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 750;
  text-align: right;
}

.camp-slot-request-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.55fr);
  gap: 16px;
  align-items: stretch;
}

.camp-slot-create-drawer .common-modal-body {
  padding-right: 0;
}

.camp-slot-form-drawer {
  border: 0;
  background: transparent;
  box-shadow: none;
  margin: 0;
  padding: 0;
}

.camp-slot-form-drawer .camp-slot-request-layout {
  grid-template-columns: minmax(0, 1fr);
  width: min(640px, 100%);
  margin-inline: auto;
  gap: 14px;
}

.camp-slot-campaign-spotlight {
  position: relative;
  overflow: hidden;
  display: grid;
  align-self: start;
  align-content: start;
  gap: 14px;
  border: 1px solid rgba(0, 133, 111, 0.2);
  border-radius: 18px;
  background:
    radial-gradient(circle at 80% 0, rgba(0, 133, 111, 0.2), transparent 36%),
    linear-gradient(160deg, #0f172a 0%, #163c39 72%, #0d332d 100%);
  color: #fff;
  padding: 18px;
}

.camp-slot-campaign-spotlight.has-image {
  border-color: rgba(255, 255, 255, 0.22);
  background-image:
    linear-gradient(160deg, rgba(8, 17, 30, 0.58) 0%, rgba(8, 31, 37, 0.72) 56%, rgba(6, 25, 22, 0.88) 100%),
    var(--camp-campaign-image);
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.camp-slot-campaign-spotlight strong {
  color: #fff;
  font-size: 22px;
  line-height: 1.18;
}

.camp-slot-kicker {
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.camp-slot-campaign-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.camp-slot-campaign-metrics div {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.08);
  padding: 10px;
}

.camp-slot-campaign-metrics span {
  display: block;
  color: rgba(255, 255, 255, 0.66);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.camp-slot-campaign-metrics b {
  display: block;
  color: #fff;
  font-size: 13px;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.camp-slot-rank-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.camp-slot-rank-cloud span {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 850;
  padding: 6px 9px;
}

.camp-slot-request-main {
  display: grid;
  gap: 12px;
}

.camp-slot-refund-account {
  display: grid;
  gap: 11px;
  border: 1px solid rgba(35, 87, 198, 0.14);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(239, 245, 255, 0.86), rgba(255, 255, 255, 0.92)),
    var(--surface);
  padding: 12px;
}

.camp-slot-refund-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.camp-slot-refund-head strong {
  color: var(--text-strong);
  font-size: 14px;
  font-weight: 950;
}

.camp-slot-refund-head span {
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 750;
  text-align: right;
}

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

.camp-slot-refund-grid label {
  min-width: 0;
}

.camp-slot-refund-bank-field,
.camp-slot-refund-holder-field,
.camp-slot-refund-check-row {
  grid-column: 1 / -1;
}

.camp-slot-refund-check-row {
  display: grid;
  align-items: end;
  justify-items: end;
}

.camp-slot-refund-check-row .button {
  min-height: 46px;
  width: min(240px, 100%);
  white-space: nowrap;
}

.camp-slot-form-drawer .camp-slot-refund-check-row .button {
  min-height: 42px;
  width: 100%;
}

.camp-slot-refund-check-row .camp-slot-refund-check-button {
  border-color: rgba(35, 87, 198, 0.22);
  background: linear-gradient(135deg, rgba(35, 87, 198, 0.14), rgba(0, 133, 111, 0.12));
  color: var(--primary);
}

.camp-slot-refund-check-row .camp-slot-refund-check-button:hover:not(:disabled) {
  border-color: rgba(35, 87, 198, 0.36);
  background: linear-gradient(135deg, rgba(35, 87, 198, 0.2), rgba(0, 133, 111, 0.18));
  color: var(--primary-strong);
}

.camp-slot-refund-account input[readonly] {
  color: var(--text-strong);
  cursor: default;
  opacity: 1;
}

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

.camp-slot-form-drawer .camp-slot-form-grid,
.camp-slot-form-drawer .camp-slot-refund-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.camp-slot-form-drawer .camp-slot-campaign-spotlight {
  gap: 11px;
  border-radius: 16px;
  padding: 14px;
}

.camp-slot-form-drawer .camp-slot-campaign-spotlight strong {
  font-size: 20px;
}

.camp-slot-form-drawer .camp-slot-refund-account {
  gap: 10px;
  padding: 12px;
}

.camp-slot-form-drawer .camp-slot-refund-head {
  justify-content: flex-start;
}

.camp-slot-form label,
.camp-slot-note-field {
  display: grid;
  gap: 7px;
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 850;
}

.camp-slot-form input,
.camp-slot-form select,
.camp-slot-form textarea,
.camp-slot-toolbar input,
.camp-slot-toolbar select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  outline: none;
  padding: 0 13px;
}

.camp-slot-form input,
.camp-slot-form select,
.camp-slot-toolbar input,
.camp-slot-toolbar select {
  min-height: 46px;
}

.camp-slot-form-drawer input,
.camp-slot-form-drawer select {
  min-height: 42px;
}

.camp-slot-form textarea {
  min-height: 98px;
  padding-block: 11px;
  resize: vertical;
}

.camp-slot-form-drawer textarea {
  min-height: 82px;
}

.camp-slot-form input:focus,
.camp-slot-form select:focus,
.camp-slot-form textarea:focus,
.camp-slot-toolbar input:focus,
.camp-slot-toolbar select:focus {
  border-color: var(--primary);
  box-shadow: var(--focus);
}

.camp-slot-ticket-class-field small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.camp-slot-toolbar {
  grid-template-columns: auto minmax(180px, 0.45fr) minmax(280px, 1fr);
  margin-bottom: 14px;
}

.camp-slot-toolbar-head {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.camp-slot-toolbar-head strong {
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.camp-slot-add-button {
  min-height: 36px;
  border-radius: 9px;
  padding-inline: 12px;
}

.camp-slot-policy-note {
  position: relative;
  display: block;
  border: 1px solid rgba(125, 211, 252, 0.32);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(236, 253, 245, 0.18), rgba(219, 234, 254, 0.1)),
    rgba(255, 255, 255, 0.08);
  color: #ef4444;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.45;
  padding: 12px 14px 12px 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 12px 26px rgba(0, 0, 0, 0.12);
}

.camp-slot-policy-note::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 9px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f87171, #dc2626);
}

.camp-slot-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(35, 87, 198, 0.14);
  border-radius: 16px;
  background: var(--primary-soft);
  padding: 12px;
}

.camp-slot-submit-row span {
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 800;
}

.admin-camp-tabs {
  display: inline-flex;
  width: fit-content;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  margin-bottom: 14px;
  padding: 5px;
  box-shadow: var(--shadow-soft);
}

.admin-camp-tab {
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted-strong);
  cursor: pointer;
  font-weight: 900;
  min-height: 38px;
  padding: 0 14px;
}

.admin-camp-tab.active {
  background: var(--surface);
  color: var(--primary);
  box-shadow: 0 10px 24px rgba(35, 87, 198, 0.12);
}

.admin-camp-panel {
  display: grid;
  gap: 14px;
}

.admin-camp-panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.admin-camp-panel-head h2 {
  margin-bottom: 0;
}

.admin-camp-panel-head > span {
  max-width: 520px;
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 750;
  text-align: right;
}

.camp-slot-class-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 0.8fr)) repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.camp-slot-class-summary-card {
  display: grid;
  gap: 4px;
  min-height: 82px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    radial-gradient(circle at 100% 0, rgba(35, 87, 198, 0.08), transparent 42%),
    var(--surface-soft);
  padding: 12px;
}

.camp-slot-class-summary-card.total {
  border-color: rgba(35, 87, 198, 0.24);
  background:
    radial-gradient(circle at 100% 0, rgba(35, 87, 198, 0.12), transparent 42%),
    var(--primary-soft);
}

.camp-slot-class-summary-card.class-stat {
  border-color: rgba(0, 133, 111, 0.2);
}

.camp-slot-class-summary-card span {
  color: var(--muted-strong);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.camp-slot-class-summary-card strong {
  color: var(--text);
  font-size: 21px;
  font-weight: 950;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.camp-slot-class-summary-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.camp-campaign-panel {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0, rgba(0, 133, 111, 0.11), transparent 30%),
    var(--surface);
  margin-bottom: 16px;
  padding: 16px;
  box-shadow: var(--shadow-soft);
}

.camp-campaign-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.camp-campaign-head h2 {
  margin-bottom: 0;
}

.camp-campaign-head > span {
  max-width: 460px;
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 750;
}

.camp-campaign-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.camp-campaign-create-form {
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 14px;
  border: 1px solid rgba(35, 87, 198, 0.08);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(246, 251, 249, 0.86)),
    var(--surface);
  padding: 12px;
}

.camp-campaign-form-main {
  display: grid;
  gap: 12px;
}

.camp-campaign-form-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  padding: 12px;
}

.camp-campaign-form-section-info {
  grid-template-columns: minmax(220px, 1fr) minmax(160px, 0.44fr) minmax(170px, 0.42fr);
}

.camp-campaign-image-field {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 160px);
  gap: 10px;
  align-items: stretch;
}

.camp-campaign-image-field .admin-file-upload {
  min-height: 72px;
}

.camp-campaign-image-preview {
  min-height: 72px;
  border: 1px solid rgba(222, 219, 211, 0.95);
  border-radius: 13px;
  background-color: rgba(15, 23, 42, 0.08);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.camp-campaign-form-section-config {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.camp-campaign-form-section-detail {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.camp-campaign-section-title {
  display: flex;
  grid-column: 1 / -1;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.camp-campaign-section-title strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 950;
}

.camp-campaign-section-title span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-align: right;
}

.camp-campaign-form-error {
  grid-column: 1 / -1;
}

.camp-campaign-form-actions {
  display: flex;
  justify-content: flex-end;
}

.camp-campaign-form-actions .button {
  min-width: 220px;
}

.camp-campaign-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
  color: var(--muted-strong);
}

.camp-campaign-list-head strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 950;
}

.camp-campaign-list-head span {
  font-size: 12px;
  font-weight: 850;
}

.camp-campaign-form:not(.camp-campaign-create-form) .button {
  align-self: end;
}

.camp-campaign-form label {
  display: grid;
  gap: 7px;
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 850;
}

.camp-campaign-form .camp-campaign-featured-toggle {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(35, 87, 198, 0.16);
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  padding: 0 12px;
}

.camp-campaign-form .camp-campaign-featured-toggle input {
  width: 16px;
  min-height: 0;
  height: 16px;
  flex: 0 0 auto;
}

.camp-campaign-form .camp-campaign-featured-toggle span {
  font-weight: 900;
}

.camp-campaign-form input,
.camp-campaign-form select,
.camp-campaign-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  outline: none;
  padding: 0 12px;
}

.camp-campaign-form input,
.camp-campaign-form select {
  min-height: 44px;
}

.camp-campaign-form textarea {
  min-height: 78px;
  padding-block: 10px;
  resize: vertical;
}

.camp-campaign-form input:focus,
.camp-campaign-form select:focus,
.camp-campaign-form textarea:focus {
  border-color: var(--primary);
  box-shadow: var(--focus);
}

.camp-campaign-wide {
  grid-column: span 2;
}

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

.camp-campaign-card {
  display: grid;
  grid-template-columns: 70px minmax(220px, 1.5fr) auto repeat(2, minmax(90px, 0.6fr)) minmax(180px, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  padding: 11px;
}

.camp-campaign-thumb {
  width: 70px;
  height: 52px;
  border: 1px solid rgba(222, 219, 211, 0.92);
  border-radius: 10px;
  background:
    radial-gradient(circle at 80% 0, rgba(0, 133, 111, 0.18), transparent 42%),
    linear-gradient(160deg, #0f172a 0%, #163c39 72%, #0d332d 100%);
  background-position: center;
  background-size: cover;
}

.camp-campaign-thumb.empty {
  opacity: 0.5;
}

.camp-campaign-card strong,
.camp-campaign-card small,
.camp-campaign-card span {
  display: block;
}

.camp-campaign-card small,
.camp-campaign-card span {
  color: var(--muted);
}

.camp-campaign-card span {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.camp-campaign-featured-badge {
  width: fit-content;
  margin-top: 5px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark) !important;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 900;
}

.camp-campaign-ranks strong {
  overflow-wrap: anywhere;
}

.order-pill.camp-campaign-draft {
  background: var(--surface);
  color: var(--muted-strong);
}

.order-pill.camp-campaign-open {
  background: #e8f7f2;
  color: #00745f;
}

.order-pill.camp-campaign-closed,
.order-pill.camp-campaign-pricing {
  background: #fff8e8;
  color: #9a6500;
}

.order-pill.camp-campaign-finished {
  background: var(--primary-soft);
  color: var(--primary);
}

.order-pill.camp-campaign-cancelled {
  background: #f7ecec;
  color: #a43d3d;
}

.camp-slot-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.camp-slot-list-head {
  display: grid;
  grid-template-columns: minmax(240px, 1.25fr) minmax(130px, 0.58fr) minmax(150px, 0.68fr) minmax(165px, 0.72fr) minmax(320px, 0.98fr);
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  padding: 0 16px 4px;
  text-transform: uppercase;
}

.camp-slot-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(240px, 1.25fr) minmax(130px, 0.58fr) minmax(150px, 0.68fr) minmax(165px, 0.72fr) minmax(320px, 0.98fr);
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(222, 219, 211, 0.92);
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0, rgba(35, 87, 198, 0.1), transparent 28%),
    linear-gradient(135deg, #fffdf7 0%, #ffffff 46%, #f8fbff 100%);
  padding: 14px 16px;
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.09);
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

.camp-slot-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: #d8d3c8;
  content: "";
}

.camp-slot-card:hover {
  border-color: rgba(35, 87, 198, 0.24);
  box-shadow: 0 20px 46px rgba(17, 24, 39, 0.13);
  transform: translateY(-1px);
}

.camp-slot-card-deposit_pending::before,
.camp-slot-card-deposit_expired::before,
.camp-slot-card-balance_pending::before,
.camp-slot-card-price_offered::before {
  background: linear-gradient(180deg, #f5b02e, #d98300);
}

.camp-slot-card-deposit_paid::before,
.camp-slot-card-balance_paid::before,
.camp-slot-card-partially_assigned::before,
.camp-slot-card-ticket_assigned::before,
.camp-slot-card-delivering::before,
.camp-slot-card-provider_accepted::before,
.camp-slot-card-fulfilled::before {
  background: linear-gradient(180deg, var(--accent), var(--primary));
}

.camp-slot-card-customer_declined::before,
.camp-slot-card-price_declined::before,
.camp-slot-card-failed::before,
.camp-slot-card-deposit_late_paid::before,
.camp-slot-card-refund_required::before,
.camp-slot-card-refund_requested::before,
.camp-slot-card-refunded::before,
.camp-slot-card-cancelled::before {
  background: linear-gradient(180deg, #d55a5a, #a43d3d);
}

.camp-slot-card > [data-label] {
  min-width: 0;
}

.camp-slot-card > [data-label]::before {
  display: none;
  color: var(--muted);
  content: attr(data-label);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.camp-slot-refund-reason {
  display: block;
  margin-top: 4px;
  color: #a43d3d;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
}

.camp-slot-refund-reason-line {
  color: #a43d3d;
}

.camp-slot-row-main,
.camp-slot-row-money,
.camp-slot-row-ticket {
  display: grid;
  gap: 3px;
}

.camp-slot-row-main small,
.camp-slot-row-main span,
.camp-slot-row-money small,
.camp-slot-row-money span,
.camp-slot-row-ticket small,
.camp-slot-row-ticket span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.camp-slot-row-main strong {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: baseline;
  color: var(--text-strong);
  font-size: 15px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.camp-slot-row-main strong span {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.camp-slot-row-main strong em {
  color: var(--muted-strong);
  font-size: 13px;
  font-style: normal;
  font-weight: 850;
  white-space: nowrap;
}

.camp-slot-row-ticket strong {
  color: var(--text-strong);
  font-size: 15px;
}

.camp-slot-row-money span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
}

.camp-slot-row-status {
  display: grid;
  gap: 9px;
  justify-items: start;
}

.camp-slot-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.camp-slot-card header small,
.camp-slot-card .camp-slot-source-line,
.camp-slot-wait-note {
  color: var(--muted);
}

.camp-slot-card header strong {
  display: block;
  color: var(--text-strong);
  font-size: 16px;
}

.camp-slot-card-title {
  display: grid;
  gap: 5px;
}

.camp-slot-card-title h3 {
  margin: 0;
  color: var(--text-strong);
  font-size: 18px;
  line-height: 1.28;
}

.camp-slot-card-title span {
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 850;
}

.camp-slot-progress {
  overflow: hidden;
  height: 8px;
  width: 100%;
  border-radius: 999px;
  background: #ece8df;
}

.camp-slot-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.28s ease;
}

.camp-slot-card-grid,
.camp-slot-qr-info,
.camp-slot-assign-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.camp-slot-card-grid div,
.camp-slot-qr-info div,
.camp-slot-assign-summary div {
  min-width: 0;
  border: 1px solid rgba(222, 219, 211, 0.8);
  border-radius: 13px;
  background: linear-gradient(180deg, #fff, var(--surface-soft));
  padding: 10px 11px;
}

.camp-slot-card-grid span,
.camp-slot-qr-info span,
.camp-slot-assign-summary span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.camp-slot-card-grid strong,
.camp-slot-qr-info strong,
.camp-slot-assign-summary strong {
  display: block;
  margin-top: 3px;
  color: var(--text-strong);
  overflow-wrap: anywhere;
}

.camp-slot-source-line {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 12px;
  font-weight: 850;
}

.camp-slot-source-line span {
  border-radius: 999px;
  background: #f0eee7;
  color: var(--muted-strong);
  padding: 6px 9px;
}

.camp-slot-actions {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  justify-content: stretch;
}

.camp-slot-actions .button {
  flex: 1 1 0;
  min-width: 0;
  justify-content: center;
  padding-inline: 10px;
  font-size: 13px;
  white-space: nowrap;
}

.camp-slot-wait-note {
  width: 100%;
  border: 1px dashed rgba(35, 87, 198, 0.28);
  border-radius: 13px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  padding: 10px 11px;
  font-size: 13px;
  font-weight: 800;
}

.order-pill.camp-slot-deposit_pending,
.order-pill.camp-slot-deposit_expired,
.order-pill.camp-slot-balance_pending,
.order-pill.camp-slot-price_offered,
.order-pill.camp-slot-partially_assigned,
.order-pill.camp-slot-ticket_assigned,
.order-pill.camp-slot-delivering {
  background: #fff8e8;
  color: #9a6500;
}

.order-pill.camp-slot-deposit_paid,
.order-pill.camp-slot-balance_paid,
.order-pill.camp-slot-provider_accepted,
.order-pill.camp-slot-fulfilled {
  background: #e8f7f2;
  color: #00745f;
}

.order-pill.camp-slot-customer_declined,
.order-pill.camp-slot-price_declined,
.order-pill.camp-slot-failed,
.order-pill.camp-slot-deposit_late_paid,
.order-pill.camp-slot-refund_required,
.order-pill.camp-slot-refund_requested,
.order-pill.camp-slot-refunded,
.order-pill.camp-slot-cancelled {
  background: #f7ecec;
  color: #a43d3d;
}

.camp-slot-qr {
  display: grid;
  gap: 14px;
}

.camp-slot-qr img {
  width: min(260px, 100%);
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 10px;
}

.camp-slot-admin-table .admin-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.camp-slot-user-cell {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.camp-slot-user-email {
  color: var(--text);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.camp-slot-membership-pill {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(180, 83, 9, 0.22);
  border-radius: 999px;
  background: linear-gradient(135deg, #fff7df 0%, #fff1b8 100%);
  color: #8a4b00;
  padding: 5px 7px 5px 9px;
  box-shadow: 0 6px 16px rgba(180, 83, 9, 0.08);
}

.camp-slot-membership-label {
  color: #9a5a00;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.camp-slot-membership-pill strong {
  color: var(--text-strong);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.camp-slot-membership-copy {
  min-height: 24px;
  border: 1px solid rgba(35, 87, 198, 0.28);
  border-radius: 999px;
  background: #fff;
  color: var(--primary);
  cursor: pointer;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  padding: 0 8px;
  text-transform: uppercase;
}

.camp-slot-membership-copy:hover:not(:disabled) {
  border-color: rgba(35, 87, 198, 0.48);
  background: #eef4ff;
}

.camp-slot-membership-copy:disabled {
  cursor: default;
  opacity: 0.82;
}

.camp-slot-membership-copy.copied {
  border-color: rgba(15, 118, 110, 0.28);
  background: #e7f8f4;
  color: var(--accent);
}

.camp-slot-membership-copy.failed {
  border-color: rgba(190, 18, 60, 0.24);
  background: #fff1f2;
  color: var(--danger);
}

.camp-slot-assign-form {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.camp-source-ticket-list {
  display: grid;
  gap: 9px;
}

.camp-assigned-ticket-list {
  display: grid;
  gap: 9px;
  margin: 14px 0;
}

.camp-assigned-ticket-head {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.camp-assigned-ticket-head small {
  color: var(--muted);
  text-align: right;
}

.camp-assigned-ticket-row {
  align-items: center;
  background: #f8fbff;
  border: 1px solid #c9dbff;
  border-radius: 10px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 10px;
}

.camp-assigned-ticket-row strong,
.camp-assigned-ticket-row small {
  display: block;
  overflow-wrap: anywhere;
}

.camp-assigned-ticket-row small {
  color: var(--muted);
  margin-top: 3px;
}

.camp-source-ticket-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  padding: 10px;
}

.camp-source-ticket-row input {
  margin-top: 4px;
}

.camp-source-ticket-row.is-disabled {
  opacity: 0.48;
}

.camp-source-ticket-row strong,
.camp-source-ticket-row small {
  display: block;
  overflow-wrap: anywhere;
}

.camp-source-ticket-row small {
  color: var(--muted);
  margin-top: 3px;
}

@media (max-width: 760px) {
  .camp-slot-intro,
  .camp-slot-form-head {
    align-items: center;
    flex-direction: row;
  }

  .camp-slot-toggle-button {
    width: 32px;
    height: 32px;
    font-size: 22px;
  }

  .camp-slot-form-head {
    padding-right: 38px;
  }

  .camp-slot-form-head-actions {
    top: 10px;
    right: 10px;
  }

  .camp-slot-intro {
    gap: 10px;
    border-radius: 14px;
    margin-bottom: 12px;
    padding: 12px;
  }

  .camp-slot-intro-copy {
    display: grid;
  }

  .camp-slot-intro-copy strong {
    white-space: normal;
  }

  .camp-slot-toolbar-head {
    min-height: 38px;
  }

  .camp-slot-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .camp-slot-flow > div {
    min-height: auto;
    border-radius: 12px;
    padding: 10px;
  }

  .camp-slot-flow-title {
    gap: 7px;
  }

  .camp-slot-flow span {
    min-width: 28px;
    min-height: 24px;
    font-size: 11px;
  }

  .camp-slot-flow strong {
    font-size: 13px;
    line-height: 1.2;
  }

  .camp-slot-flow small {
    display: none;
  }

  .camp-slot-form,
  .camp-slot-card {
    border-radius: 12px;
    padding: 12px;
  }

  .camp-slot-form label,
  .camp-slot-note-field {
    gap: 5px;
    font-size: 12px;
  }

  .camp-slot-form input,
  .camp-slot-form select,
  .camp-slot-toolbar input,
  .camp-slot-toolbar select {
    min-height: 38px;
    border-radius: 10px;
    font-size: 14px;
    padding-inline: 10px;
  }

  .camp-slot-form textarea {
    min-height: 72px;
    border-radius: 10px;
    font-size: 14px;
    padding: 9px 10px;
  }

  .camp-slot-form-drawer {
    border: 0;
    background: transparent;
    box-shadow: none;
    margin: 0;
    padding: 0;
  }

  .camp-slot-form-head-actions {
    right: 10px;
    left: auto;
    width: auto;
    justify-items: end;
  }

  .camp-slot-form-head-actions > span {
    max-width: none;
    text-align: left;
  }

  .camp-slot-form-head-actions .button {
    width: auto;
  }

  .camp-slot-list-head {
    display: none;
  }

  .camp-slot-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 9px;
  }

  .camp-slot-card > [data-label] {
    display: grid;
    gap: 4px;
  }

  .camp-slot-card > [data-label]::before {
    display: none;
  }

  .camp-slot-row-main,
  .camp-slot-row-status,
  .camp-slot-actions {
    grid-column: 1 / -1;
  }

  .camp-slot-row-main {
    border-bottom: 1px solid rgba(222, 219, 211, 0.72);
    padding-bottom: 8px;
  }

  .camp-slot-row-main small {
    font-size: 11px;
  }

  .camp-slot-row-main strong {
    font-size: 16px;
  }

  .camp-slot-row-main strong em {
    font-size: 13px;
  }

  .camp-slot-row-status {
    gap: 7px;
  }

  .camp-slot-row-status {
    justify-items: stretch;
  }

  .camp-slot-row-money,
  .camp-slot-row-ticket {
    border: 1px solid rgba(222, 219, 211, 0.8);
    border-radius: 10px;
    background: var(--surface-soft);
    padding: 9px;
  }

  .camp-slot-row-ticket strong {
    font-size: 14px;
  }

  .camp-slot-row-money strong {
    font-size: 12px;
  }

  .camp-slot-row-money span,
  .camp-slot-row-ticket small,
  .camp-slot-row-ticket span {
    font-size: 11px;
  }

  .camp-slot-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 8px;
    border-top: 1px solid rgba(222, 219, 211, 0.72);
    padding-top: 9px;
  }

  .camp-slot-actions .button {
    width: 100%;
    justify-content: center;
    min-height: 38px;
    border-radius: 9px;
    font-size: 13px;
    padding-inline: 12px;
  }

  .camp-slot-card-price_offered .camp-slot-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .camp-slot-card-price_offered .camp-slot-actions .button {
    width: 100%;
    justify-content: center;
  }

  .camp-slot-request-layout {
    grid-template-columns: 1fr;
  }

  .camp-slot-campaign-spotlight {
    border-radius: 16px;
    gap: 10px;
    padding: 13px;
  }

  .camp-slot-kicker {
    font-size: 10px;
  }

  .camp-slot-campaign-spotlight strong {
    font-size: 19px;
  }

  .camp-slot-campaign-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .camp-slot-campaign-metrics div {
    border-radius: 10px;
    padding: 7px;
  }

  .camp-slot-campaign-metrics span {
    font-size: 10px;
  }

  .camp-slot-campaign-metrics b {
    font-size: 12px;
  }

  .camp-slot-rank-cloud {
    max-height: 32px;
    gap: 5px;
    overflow: hidden;
  }

  .camp-slot-rank-cloud span {
    font-size: 11px;
    padding: 4px 7px;
  }

  .camp-slot-policy-note {
    border-radius: 12px;
    font-size: 12px;
    line-height: 1.4;
    padding: 9px 10px 9px 15px;
  }

  .camp-slot-policy-note::before {
    top: 9px;
    bottom: 9px;
    left: 7px;
    width: 2px;
  }

  .camp-slot-form-grid,
  .camp-slot-refund-grid,
  .camp-campaign-form,
  .camp-campaign-create-form,
  .camp-campaign-form-section,
  .camp-campaign-form-section-info,
  .camp-campaign-form-section-config,
  .camp-campaign-form-section-detail,
  .camp-slot-toolbar,
  .camp-slot-list,
  .camp-slot-card-grid,
  .camp-slot-qr-info,
  .camp-slot-assign-summary {
    grid-template-columns: 1fr;
  }

  .camp-slot-create-drawer .common-modal-body {
    padding-right: 0;
  }

  .camp-slot-form-drawer {
    gap: 12px;
  }

  .camp-slot-toolbar label {
    grid-template-columns: 78px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
  }

  .camp-slot-toolbar label > span {
    white-space: nowrap;
  }

  .camp-slot-form-drawer .camp-slot-request-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .camp-slot-form-drawer .camp-slot-campaign-spotlight {
    gap: 10px;
    border-radius: 16px;
    padding: 14px;
  }

  .camp-slot-form-drawer .camp-slot-campaign-spotlight strong {
    font-size: 20px;
  }

  .camp-slot-submit-row {
    align-items: stretch;
    flex-direction: column;
  }

  .camp-slot-refund-account {
    border-radius: 12px;
    padding: 10px;
  }

  .camp-slot-refund-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .camp-slot-refund-head span {
    text-align: left;
  }

  .camp-slot-submit-row .button {
    width: 100%;
  }

  .admin-camp-tabs {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 12px;
  }

  .admin-camp-tab {
    min-height: 36px;
    padding-inline: 8px;
  }

  .admin-camp-panel-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .admin-camp-panel-head > span {
    text-align: left;
  }

  .camp-slot-class-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .camp-slot-class-summary-card {
    min-height: 74px;
    border-radius: 12px;
    padding: 10px;
  }

  .camp-slot-class-summary-card strong {
    font-size: 18px;
  }

  .camp-campaign-head {
    flex-direction: column;
  }

  .camp-campaign-section-title {
    display: grid;
    gap: 3px;
  }

  .camp-campaign-section-title span {
    text-align: left;
  }

  .camp-campaign-wide {
    grid-column: auto;
  }

  .camp-campaign-image-field {
    grid-template-columns: 1fr;
  }

  .camp-campaign-image-preview {
    min-height: 120px;
  }

  .camp-campaign-card {
    grid-template-columns: 1fr;
  }

  .camp-campaign-thumb {
    width: 100%;
    height: 120px;
  }

  .camp-slot-admin-table .admin-row-actions {
    justify-content: stretch;
  }

  .camp-slot-admin-table .admin-row-actions .button {
    width: 100%;
  }

  .contact-settings-hero,
  .contact-settings-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .contact-channel-grid,
  .contact-settings-grid {
    grid-template-columns: 1fr;
  }

  .contact-channel-card {
    min-height: 0;
    padding: 13px;
  }

  .contact-channel-card b {
    display: none;
  }
}

@media (max-width: 380px) {
  .camp-slot-toolbar label {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .camp-slot-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .camp-slot-flow > div {
    padding: 8px;
  }

  .camp-slot-flow-title {
    gap: 5px;
  }

  .camp-slot-flow span {
    min-width: 24px;
    min-height: 22px;
    font-size: 10px;
  }

  .camp-slot-flow strong {
    font-size: 12px;
  }
}
