:root {
  color: #17211c;
  background: #f5f5ed;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-synthesis: none;
  --ink: #17211c;
  --muted: #68736c;
  --line: #dfe2d8;
  --paper: #fffef8;
  --green: #176b4d;
  --green-dark: #0e4a35;
  --lime: #d9f43a;
  --soft: #edf2e7;
  --danger: #b53f35;
  --shadow: 0 18px 55px rgba(31, 47, 38, 0.09);
}

* { box-sizing: border-box; }
html { overflow-y: scroll; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: radial-gradient(circle at 92% 4%, #e9f2ce 0, transparent 28rem), #f5f5ed; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }

.site-header { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; min-height: 76px; padding: 12px max(24px, calc((100vw - 1180px) / 2)); border-bottom: 1px solid rgba(23,33,28,.09); background: rgba(245,245,237,.88); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 13px; color: white; background: var(--green); font-weight: 800; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 1rem; letter-spacing: .04em; }
.brand small { margin-top: 2px; color: var(--muted); font-size: .72rem; }
.account-actions { display: flex; align-items: center; gap: 10px; }
.account-label { color: var(--muted); font-size: .88rem; }
.credit-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid #cbd8cd;
  border-radius: 999px;
  background: rgba(255, 254, 248, .82);
  color: var(--green-dark);
  box-shadow: 0 7px 18px rgba(23,107,77,.08);
}
.credit-pill span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
}
.credit-pill strong {
  font-size: .94rem;
}

.button { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; padding: 0 17px; border: 1px solid transparent; border-radius: 11px; cursor: pointer; font-weight: 700; transition: transform .18s, box-shadow .18s, background .18s; }
.button:hover { transform: translateY(-1px); }
.button.primary { color: white; background: var(--green); box-shadow: 0 7px 20px rgba(23,107,77,.18); }
.button.primary:hover { background: var(--green-dark); }
.button.secondary { color: var(--green-dark); border-color: #bfcec2; background: white; }
.button.ghost { color: var(--green-dark); border-color: transparent; background: transparent; }
.button.large { min-height: 48px; padding-inline: 24px; }
.button.small { min-height: 34px; padding-inline: 12px; font-size: .84rem; }
.button.full { width: 100%; }
.button:disabled { cursor: not-allowed; opacity: .55; transform: none; }
.danger-button { color: var(--danger) !important; }

.page-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.hero { display: grid; grid-template-columns: 1.4fr .7fr; gap: 56px; align-items: end; padding: 28px 0 22px; }
.feature-layout { display: grid; grid-template-columns: 215px 1fr; gap: 20px; align-items: start; }
.feature-sidebar {
  position: sticky;
  top: 108px;
  display: grid;
  gap: 9px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.sidebar-title {
  margin: 0;
  padding: 2px 0 6px;
  color: var(--muted);
  font-size: .76rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.feature-item {
  justify-content: flex-start;
  text-align: left;
  min-height: 44px;
  padding-inline: 14px;
  border-radius: 11px;
  border: 1px solid transparent;
  color: var(--ink);
  background: transparent;
}
.feature-item:hover { background: var(--soft); }
.feature-item.active { color: white; background: var(--green); border-color: var(--green); }
.feature-content { min-width: 0; }

.eyebrow { display: block; margin-bottom: 14px; color: var(--green); font-size: .76rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.hero h1, .admin-intro h1 { max-width: 760px; margin: 0; font-family: Georgia, "Songti SC", serif; font-size: clamp(1.4rem, 2vw, 1.8rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.14; }
.hero > div > p, .admin-intro p { max-width: 660px; margin: 26px 0 0; color: var(--muted); font-size: 1.04rem; line-height: 1.8; }
.hero > div > p.disclaimer { margin-top: 10px; font-size: .78rem; line-height: 1.5; color: #7b867f; }
.hero-note { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; padding: 24px; border: 1px solid #dce2d1; border-radius: 20px; background: rgba(255,254,248,.7); box-shadow: var(--shadow); }
.hero-note strong { grid-column: 1 / -1; margin-bottom: 5px; }
.hero-note span { padding: 8px 10px; border-radius: 8px; color: #4d5b52; background: var(--soft); font-size: .8rem; }

.tool-panel, .admin-card { width: 100%; margin-bottom: 56px; padding: 34px; border: 1px solid var(--line); border-radius: 24px; background: var(--paper); box-shadow: var(--shadow); }
.panel-heading { display: flex; justify-content: space-between; gap: 32px; align-items: start; margin-bottom: 28px; }
.panel-heading > div { display: flex; align-items: center; gap: 13px; }
.panel-heading h2 { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: 1.65rem; }
.panel-heading p { max-width: 440px; margin: 4px 0 0; color: var(--muted); font-size: .88rem; line-height: 1.6; text-align: right; }
.step-number { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: var(--green-dark); background: var(--lime); font-size: .72rem; font-weight: 900; }
.input-grid { display: block; }
.default-date-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.manual-ticket-panel { margin-top: 0; }
.manual-ticket-panel .panel-heading { margin-bottom: 0; }
.manual-ticket-result { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: var(--soft); color: var(--green-dark); }
.manual-ticket-result span { font-size: .84rem; font-weight: 800; }
.manual-ticket-result strong { color: var(--green-dark); }
.age-rules { max-width: 760px; margin: 28px auto 0; }
.booking-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.booking-card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.booking-image {
  position: relative;
  height: 186px;
  overflow: hidden;
  background: linear-gradient(125deg, #dce8d1, #e5f4fa);
  border-bottom: 1px solid var(--line);
}
.booking-image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(15, 23, 18, 0.06), rgba(15, 23, 18, 0.3));
}
.booking-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.booking-title {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 4px 9px;
  border-radius: 999px;
  color: #1f4f37;
  font-weight: 800;
  font-size: .74rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}
.booking-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.booking-mini {
  min-height: 34px;
  padding-inline: 10px;
  font-size: .8rem;
}
.booking-detail { padding: 15px 15px 14px; display: grid; gap: 8px; }
.booking-detail h3 { margin: 0; font-size: 1rem; }
.booking-detail p { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.55; }
.booking-detail strong { font-size: 1.12rem; color: var(--green-dark); }
.booking-rules {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.booking-rules span {
  padding: 4px 8px;
  border-radius: 999px;
  color: #536158;
  background: #eef3e9;
  font-size: .74rem;
  font-weight: 800;
}
.booking-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
}
.booking-card-footer strong {
  flex: 0 0 auto;
}
.booking-card:nth-child(1) .booking-image { background: linear-gradient(140deg, #d8f7e0, #f5e6b8); }
.booking-card:nth-child(2) .booking-image { background: linear-gradient(140deg, #dceffd, #f4d3ff); }
.booking-card:nth-child(3) .booking-image { background: linear-gradient(140deg, #ffede0, #f4ffe1); }
.booking-card:nth-child(4) .booking-image { background: linear-gradient(140deg, #e7dbff, #d0ebff); }
.booking-card:nth-child(5) .booking-image { background: linear-gradient(140deg, #d7ebff, #dff6e0); }
.booking-card:nth-child(6) .booking-image { background: linear-gradient(140deg, #fdebd6, #f9d6f7); }
.booking-reservation {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid #cfd9cd;
  border-radius: 16px;
  background: #f7faf2;
}
.reservation-page .booking-reservation {
  margin-top: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.booking-reservation:focus { outline: none; }
.reservation-back-row {
  margin: -10px 0 20px;
}
.reservation-summary {
  display: grid;
  gap: 5px;
  margin-bottom: 18px;
}
.reservation-summary .eyebrow { margin-bottom: 2px; }
.reservation-summary h3 {
  margin: 0;
  font-size: 1.18rem;
}
.reservation-summary p {
  display: none;
}
.reservation-top-grid {
  display: grid;
  grid-template-columns: minmax(300px, .8fr) minmax(420px, 1.2fr);
  gap: 20px;
  align-items: stretch;
  margin-bottom: 20px;
}
.reservation-basic-info {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 20px;
  border: 1px solid #d9e2d6;
  border-radius: 16px;
  background: var(--soft);
}
.reservation-paste-field {
  align-content: start;
  padding: 20px;
  border: 1px solid #d9e2d6;
  border-radius: 16px;
  background: var(--soft);
}
.reservation-paste-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 700;
}
.reservation-paste-heading .button {
  flex: none;
}
.reservation-paste-field textarea {
  min-height: 158px;
  white-space: pre;
  overflow-x: auto;
}
.reservation-paste-field small {
  white-space: nowrap;
}
.reservation-paste-field textarea {
  min-height: 128px;
}
.reservation-date-field {
  max-width: 320px;
}
.reservation-date-field input[readonly] {
  cursor: pointer;
  color: var(--green-dark);
  font-weight: 700;
  background: #fff;
}
.reservation-price-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: end;
  margin-bottom: 12px;
}

@media (max-width: 900px) {
  .reservation-top-grid { grid-template-columns: minmax(0, 1fr); }
  .reservation-paste-field textarea { white-space: pre-wrap; }
  .reservation-paste-field small { white-space: normal; }
}
.reservation-total {
  display: grid;
  gap: 6px;
  min-height: 72px;
  padding: 11px 14px;
  border: 1px solid #d9e2d6;
  border-radius: 12px;
  background: white;
}
.reservation-total span {
  color: #3f4a43;
  font-size: .82rem;
  font-weight: 800;
}
.reservation-total strong {
  align-self: center;
  color: var(--green-dark);
  font-size: 1.24rem;
}
.reservation-travelers {
  display: grid;
  gap: 12px;
}
.reservation-traveler {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #dfe7dc;
  border-radius: 12px;
  background: white;
}
.reservation-traveler > strong {
  color: var(--green-dark);
  font-size: .88rem;
}
.reservation-traveler-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.reservation-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.side-controls { display: flex; flex-direction: column; gap: 13px; padding: 20px; border-radius: 17px; background: var(--soft); }
.auto-parse-note { display: grid; gap: 7px; margin-top: auto; padding: 18px; border-radius: 13px; color: var(--green-dark); background: #fffef8; }
.auto-parse-note strong { font-size: .92rem; }
.auto-parse-note span { color: var(--muted); font-size: .8rem; line-height: 1.6; }
.auto-parse-inline { display: flex; gap: 12px; align-items: center; margin: 12px 0 20px; padding: 12px 15px; border-radius: 11px; color: var(--green-dark); background: var(--soft); }
.auto-parse-inline span { color: var(--muted); font-size: .8rem; }
.field { display: grid; gap: 8px; }
.field > span, .upload-box > span { color: #3f4a43; font-size: .82rem; font-weight: 800; }
.field input, .field textarea { width: 100%; border: 1px solid #d6dcd3; border-radius: 11px; outline: none; color: var(--ink); background: white; transition: border .18s, box-shadow .18s; }
.field input { height: 44px; padding: 0 13px; }
.field textarea { padding: 13px; resize: vertical; line-height: 1.65; }
.field input:focus, .field textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(23,107,77,.11); }
.field select {
  height: 44px;
  border: 1px solid #d6dcd3;
  border-radius: 11px;
  outline: none;
  color: var(--ink);
  background: white;
  transition: border .18s, box-shadow .18s;
  padding: 0 13px;
}
.field select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(23,107,77,.11);
}
.order-filters {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
}
.order-filter-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.order-filter-actions .button {
  min-height: 44px;
  min-width: 96px;
}
.order-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}
.order-pagination span {
  min-width: 180px;
  color: var(--muted);
  text-align: center;
}
.order-refund-button {
  min-width: 78px;
  padding-inline: 12px;
}
.order-actions-cell {
  display: flex;
  gap: 8px;
}
.order-detail-button {
  min-width: 64px;
}
.order-table-wrap {
  overflow-x: hidden;
}
.order-table {
  table-layout: fixed;
}
.order-table th,
.order-table td {
  min-width: 0;
  padding: 12px 10px;
  overflow-wrap: anywhere;
}
.order-table th:nth-child(1) { width: 16%; }
.order-table th:nth-child(2) { width: 12%; }
.order-table th:nth-child(3) { width: 30%; }
.order-table th:nth-child(4) { width: 11%; }
.order-table th:nth-child(5) { width: 16%; }
.order-table th:nth-child(6) { width: 15%; }
.order-number-cell {
  overflow: hidden;
  color: var(--green-dark);
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.order-payment-cell,
.order-content-cell {
  vertical-align: top;
}
.order-payment-cell strong {
  display: block;
  margin-bottom: 5px;
  color: var(--green-dark);
  font-size: .95rem;
}
.order-payment-cell span,
.order-content-cell span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.45;
}
.order-content-cell strong {
  display: block;
  line-height: 1.45;
}
.order-content-cell b {
  color: var(--green-dark);
  white-space: nowrap;
}
.order-status-cell {
  color: var(--green-dark);
  font-weight: 800;
}
.order-created-cell {
  color: var(--muted);
  font-size: .8rem;
}
.order-table .order-actions-cell {
  min-width: 0;
  white-space: nowrap;
}
.order-table .order-actions-cell .button + .button {
  margin-left: 5px;
}
.rich-editor-shell { overflow: hidden; border: 1px solid #d6dcd3; border-radius: 11px; background: white; transition: border .18s, box-shadow .18s; }
.rich-editor-shell:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(23,107,77,.11); }
.rich-toolbar { display: flex; flex-wrap: wrap; gap: 5px; padding: 8px; border-bottom: 1px solid #e4e8e1; background: #f6f8f3; }
.rich-toolbar button { min-width: 34px; height: 32px; padding: 0 9px; border: 1px solid transparent; border-radius: 7px; color: #354139; background: transparent; cursor: pointer; font-size: .78rem; }
.rich-toolbar button:hover, .rich-toolbar button:focus { border-color: #cbd5ca; color: var(--green-dark); background: white; }
.rich-toolbar > span { align-self: center; margin-left: auto; color: var(--muted); font-size: .74rem; }
.rich-editor { min-height: 150px; padding: 13px; outline: none; line-height: 1.7; }
.rich-editor:empty::before { color: #9aa29c; content: attr(data-placeholder); pointer-events: none; }
.rich-editor p, .rich-content p { margin: 0 0 .7em; }
.rich-editor p:last-child, .rich-content p:last-child { margin-bottom: 0; }
.rich-editor ul, .rich-editor ol, .rich-content ul, .rich-content ol { margin: .55em 0; padding-left: 1.5em; }
.rich-editor a, .rich-content a { color: var(--green); text-decoration: underline; }
.rich-editor img, .rich-content img { display: block; max-width: 100%; height: auto; margin: 12px auto; border-radius: 10px; }
.rich-content { color: var(--muted); line-height: 1.75; }
.empty-state { margin-top: 22px; padding: 36px; border: 1px dashed #cbd3c8; border-radius: 16px; color: var(--muted); text-align: center; }
.result-area { margin-top: 24px; }
.clear-strip { width: 100%; height: 34px; margin-top: 12px; border: 1px solid #e2c9c6; border-radius: 8px; color: #9d4038; background: #fff7f5; cursor: pointer; font-size: .8rem; font-weight: 700; transition: background .18s, border .18s; }
.clear-strip:hover { border-color: #d6a9a4; background: #fdebe8; }
.result-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 13px; }
.result-toolbar span { color: var(--muted); font-size: .85rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; background: white; }
th, td { min-width: 130px; padding: 13px 14px; border-bottom: 1px solid #edf0ea; text-align: left; vertical-align: middle; }
th { color: #5f6b63; background: #f4f6f0; font-size: .76rem; letter-spacing: .05em; }
td { font-size: .88rem; }
tbody tr:last-child td { border-bottom: 0; }
td input { width: 100%; min-width: 140px; height: 38px; padding: 0 10px; border: 1px solid #d8ddd5; border-radius: 8px; }
.ticket-badge { display: inline-flex; min-width: 76px; min-height: 30px; align-items: center; justify-content: center; padding: 4px 10px; border-radius: 999px; color: var(--green-dark); background: #e6f1d5; font-weight: 800; white-space: nowrap; }
.ticket-badge.pending { color: #846318; background: #fff2c7; }
.icon-button { width: 34px; height: 34px; border: 0; border-radius: 9px; color: var(--danger); background: #fbeceb; cursor: pointer; }
.permission-card { display: flex; align-items: center; gap: 18px; padding: 28px; border: 1px dashed #c6d0c5; border-radius: 18px; background: var(--soft); }
.permission-card div { flex: 1; }
.permission-card p { margin: 6px 0 0; color: var(--muted); }
.lock-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 14px; color: var(--green-dark); background: var(--lime); font-size: .8rem; font-weight: 900; }
.action-row { display: flex; gap: 12px; margin-top: 18px; }
.gal-code { color: var(--green-dark); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-weight: 800; word-break: break-all; }
.gal-table-wrap { overflow-x: hidden; }
.gal-table { table-layout: fixed; }
.gal-table th, .gal-table td { min-width: 0; padding: 10px 8px; }
.gal-name-column { width: 13%; }
.gal-id-column { width: 24%; }
.gal-date-column { width: 19%; }
.gal-code-column { width: auto; }
.gal-action-column { width: 50px; }
.gal-name-cell { font-weight: 700; overflow-wrap: anywhere; }
.gal-id-cell { overflow-wrap: anywhere; }
.gal-table td input { min-width: 0; padding-inline: 7px; }
.gal-park-select { width: 100%; min-width: 0; margin-top: 6px; padding: 7px; }
.gal-code-list { display: grid; gap: 6px; }
.gal-code-item { display: flex; align-items: center; gap: 7px; min-width: 0; }
.gal-code-item .gal-code { flex: 1; min-width: 0; }
.gal-copy-button { flex: 0 0 auto; min-width: 48px; min-height: 34px; padding: 0 9px; border: 1px solid #b8cdbf; border-radius: 8px; color: var(--green-dark); background: #eff6ea; cursor: pointer; font-size: .78rem; font-weight: 800; }
.gal-copy-button:active { background: #dcebd3; }
.result-note { display: block; margin-top: 4px; color: var(--muted); font-size: .75rem; }
footer { padding: 34px 20px 50px; color: #7b867f; font-size: .78rem; text-align: center; }

.modal { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(15,27,21,.54); backdrop-filter: blur(7px); }
.modal-card { position: relative; width: min(520px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; padding: 34px; border-radius: 22px; background: var(--paper); box-shadow: 0 30px 100px rgba(0,0,0,.25); }
.modal-card h2 { margin: 0 0 12px; font-family: Georgia, "Songti SC", serif; font-size: 2rem; }
.modal-card p { color: var(--muted); line-height: 1.7; }
.modal-close { position: absolute; top: 15px; right: 15px; width: 34px; height: 34px; border: 0; border-radius: 50%; color: var(--muted); background: #edf0e9; cursor: pointer; font-size: 1.35rem; }
.order-confirm-card {
  width: min(680px, 100%);
}
.order-confirm-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}
.order-confirm-summary article {
  display: grid;
  gap: 7px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f7faf2;
}
.order-confirm-summary .order-confirm-product {
  grid-column: 1 / -1;
}
.order-confirm-summary span,
.order-confirm-traveler span {
  color: var(--muted);
  font-size: .82rem;
}
.order-confirm-summary strong {
  color: var(--green-dark);
  font-size: .98rem;
}
.order-confirm-travelers h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}
#order-confirm-travelers {
  display: grid;
  gap: 8px;
}
.order-confirm-traveler {
  display: grid;
  grid-template-columns: minmax(130px, .8fr) 170px minmax(220px, 1.6fr);
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid #e2e8df;
  border-radius: 10px;
  background: white;
}
.order-confirm-traveler strong {
  color: var(--green-dark);
  font-size: .86rem;
}
.order-confirm-traveler select {
  width: 100%;
  height: 36px;
  border: 1px solid #d8ddd5;
  border-radius: 8px;
  color: var(--ink);
  background: white;
}
.order-confirm-traveler select:disabled {
  opacity: 1;
  color: var(--green-dark);
  background: #f1f5ed;
  cursor: not-allowed;
}
.order-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}
.order-detail-card {
  width: min(880px, 100%);
}
.order-detail-content {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}
.order-detail-statusbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 18px;
  border-radius: 14px;
  color: white;
  background: var(--green-dark);
}
.order-detail-statusbar > div {
  display: grid;
  gap: 5px;
}
.order-detail-statusbar > div:last-child {
  text-align: right;
}
.order-detail-statusbar span {
  color: rgba(255,255,255,.72);
  font-size: .76rem;
}
.order-detail-statusbar strong {
  font-size: 1.12rem;
}
.order-detail-statusbar b {
  font-size: .9rem;
  white-space: nowrap;
}
.order-detail-section {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fbfcf8;
}
.order-detail-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}
.order-detail-section-heading h3 {
  margin: 0;
  font-size: 1rem;
}
.order-detail-section-heading > span {
  color: var(--muted);
  font-size: .78rem;
}
.order-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}
.order-detail-grid article {
  display: grid;
  gap: 6px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}
.order-detail-grid article:first-child {
  grid-column: span 2;
}
.order-detail-grid span,
.order-detail-traveler div > span {
  color: var(--muted);
  font-size: .8rem;
}
.order-detail-grid strong,
.order-detail-traveler div > strong {
  overflow-wrap: anywhere;
  color: var(--green-dark);
  font-size: .94rem;
}
.order-detail-travelers {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
}
.order-detail-traveler-table {
  width: 100%;
  table-layout: fixed;
}
.order-detail-traveler-table th,
.order-detail-traveler-table td {
  min-width: 0;
  padding: 12px 13px;
  overflow-wrap: anywhere;
}
.order-detail-traveler-table th:nth-child(1) { width: 18%; }
.order-detail-traveler-table th:nth-child(2) { width: 34%; }
.order-detail-traveler-table th:nth-child(3) { width: 26%; }
.order-detail-traveler-table th:nth-child(4) { width: 22%; }
.order-detail-traveler-table td {
  color: var(--green-dark);
  font-size: .9rem;
  font-weight: 800;
}
.order-detail-traveler-table tbody tr:last-child td {
  border-bottom: 0;
}
.order-detail-refund,
.order-detail-empty {
  padding: 14px;
  border-radius: 10px;
  color: var(--muted);
  background: white;
}
.price-calendar-card {
  width: min(820px, 100%);
  padding: 30px;
}
.price-modal-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.price-modal-heading p {
  margin: 0;
  font-size: .88rem;
}
.calendar-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
}
.calendar-controls strong {
  min-width: 112px;
  color: var(--green-dark);
  text-align: center;
  font-size: .94rem;
}
.calendar-arrow {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 10px;
  color: var(--green-dark);
  background: var(--soft);
  cursor: pointer;
  font-size: 1.45rem;
  line-height: 1;
}
.calendar-arrow:hover { background: #dfead7; }
.calendar-weekdays,
.price-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.calendar-weekdays {
  overflow: hidden;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  background: #eef4ea;
}
.calendar-weekdays span {
  padding: 9px 4px;
  color: #59655d;
  text-align: center;
  font-size: .8rem;
  font-weight: 800;
}
.price-calendar-grid {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0 0 14px 14px;
  background: white;
}
.price-day {
  min-height: 78px;
  padding: 9px;
  border: 0;
  border-right: 1px solid #edf0ea;
  border-bottom: 1px solid #edf0ea;
  background: white;
  text-align: left;
}
.price-day:nth-child(7n) { border-right: 0; }
.price-day:nth-last-child(-n + 7) { border-bottom: 0; }
.price-day.outside { background: #fafbf8; }
.price-day.unavailable {
  color: #9aa39d;
  background: #fbfcf9;
  cursor: not-allowed;
}
.price-day.available {
  display: grid;
  align-content: space-between;
  color: var(--green-dark);
  cursor: pointer;
  transition: background .18s, box-shadow .18s, transform .18s;
}
.price-day.available:hover {
  position: relative;
  z-index: 1;
  background: #f0f8e8;
  box-shadow: inset 0 0 0 2px var(--green);
  transform: translateY(-1px);
}
.price-day.sold-out {
  display: grid;
  align-content: space-between;
  color: #8b928d;
  background: #f5f5f1;
  cursor: not-allowed;
}
.date-number {
  font-size: .86rem;
  font-weight: 900;
}
.stock-state {
  justify-self: start;
  padding: 2px 6px;
  border-radius: 999px;
  color: #176b4d;
  background: #dcefd4;
  font-size: .68rem;
  font-weight: 900;
}
.price-day.sold-out .stock-state {
  color: #8c4e42;
  background: #f6d9d3;
}
.price-day-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px;
}
.early-bird-tag {
  padding: 2px 4px;
  border-radius: 999px;
  color: var(--green-dark);
  background: #dcefd4;
  font-size: .68rem;
  font-weight: 900;
  white-space: nowrap;
}
.price-day strong {
  justify-self: end;
  color: var(--green);
  font-size: .92rem;
}
.price-day em {
  justify-self: end;
  min-height: 18px;
  padding: 2px 6px;
  border-radius: 999px;
  font-style: normal;
  font-size: .68rem;
  font-weight: 900;
}
.price-day em:empty {
  display: none;
}
.price-day.lowest-price {
  background: #eef8e7;
}
.price-day.lowest-price strong {
  color: #167048;
}
.price-day.lowest-price em {
  color: #145c3c;
  background: #d7f0c8;
}
.price-day.highest-price {
  background: #fff3ec;
}
.price-day.highest-price strong {
  color: #bd4b2e;
}
.price-day.highest-price em {
  color: #963b25;
  background: #ffdcca;
}
#price-modal .price-day {
  border: 1px solid #d7e0e7;
  background: rgba(255, 255, 255, .78);
}
#price-modal .price-day.outside {
  border-color: #e5eaee;
  background: rgba(230, 235, 240, .58);
}
#price-modal .price-day.unavailable {
  color: #9aa6b1;
  border-color: #dce3e8;
  background: #edf1f4;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72);
}
#price-modal .price-day.unavailable .date-number { color: #8d9aa6; }
#price-modal .price-day.available {
  border-color: #7fc3dd;
  color: #174f70;
  background: linear-gradient(145deg, #e2f5ff, #e6f8ef);
  box-shadow: inset 0 0 0 1px rgba(25, 151, 190, .08), inset 0 1px 0 #fff;
}
#price-modal .price-day.available .stock-state {
  display: inline-flex !important;
  color: #07684b;
  background: #c6eedc;
}
#price-modal .price-day.available strong { color: #0877bb; }
#price-modal .price-day.sold-out {
  border-color: #d7dde2;
  color: #8b98a3;
  background: repeating-linear-gradient(135deg, #eef1f3 0, #eef1f3 7px, #e7ebee 7px, #e7ebee 14px);
}
#price-modal .price-day.sold-out .stock-state {
  display: inline-flex !important;
  color: #a43c32;
  background: #f7d8d4;
}
#price-modal .price-day.lowest-price {
  border-color: #61b58e;
  background: linear-gradient(145deg, #d9f5e6, #e9f9f0);
}
#price-modal .price-day.highest-price {
  border-color: #e1a066;
  background: linear-gradient(145deg, #fff0df, #fff7ee);
}
#order-detail-modal .modal-card.order-detail-card { width: min(1080px, calc(100vw - 32px)); }
#order-detail-modal .order-detail-section .order-detail-traveler-table th:nth-child(1) { width: 14%; }
#order-detail-modal .order-detail-section .order-detail-traveler-table th:nth-child(2) { width: 28%; }
#order-detail-modal .order-detail-section .order-detail-traveler-table th:nth-child(3) { width: 19%; }
#order-detail-modal .order-detail-section .order-detail-traveler-table th:nth-child(4) { width: 24%; }
#order-detail-modal .order-detail-section .order-detail-traveler-table th:nth-child(5) { width: 15%; }
.calendar-footnote {
  margin-top: 13px;
  color: var(--muted);
  font-size: .82rem;
  text-align: center;
}
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 24px 0 20px; padding: 4px; border-radius: 11px; background: #edf0e9; }
.auth-tabs button { height: 39px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; cursor: pointer; font-weight: 800; }
.auth-tabs button.active { color: var(--green-dark); background: white; box-shadow: 0 3px 10px rgba(0,0,0,.05); }
#auth-form, #password-form { display: grid; gap: 15px; }
.text-button { display: block; margin: 16px auto 0; border: 0; color: var(--green); background: none; cursor: pointer; }
.form-message { min-height: 22px; margin: 12px 0 0 !important; color: var(--danger) !important; font-size: .84rem; text-align: center; }
.contact-image, .ad-image { display: block; max-width: 100%; max-height: 360px; margin: 18px auto; border-radius: 14px; object-fit: contain; }
.toast { position: fixed; z-index: 200; top: 50%; left: 50%; width: max-content; max-width: min(480px, calc(100vw - 32px)); padding: 14px 22px; border-radius: 12px; color: white; background: #1d4ed8; box-shadow: 0 18px 50px rgba(20, 32, 45, .28); font-size: .9rem; line-height: 1.6; text-align: center; transform: translate(-50%, -50%); }
.toast.success { background: #126b4f; }
.toast.warning { background: #b65b09; }
.toast.error { background: #b42318; }
.toast.info { background: #1d4ed8; }

.admin-shell { padding-bottom: 50px; }
.admin-intro { padding: 68px 0 38px; }
.admin-intro h1 { font-size: clamp(2.5rem, 5vw, 4.6rem); }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.admin-grid .admin-card { display: flex; flex-direction: column; gap: 16px; margin-bottom: 0; }
.admin-settings-grid { align-items: stretch; }
.admin-settings-grid .admin-card { align-self: stretch; }
.admin-setting-card .panel-heading { display: grid; grid-template-columns: minmax(0, 1fr); align-items: flex-start; gap: 7px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.admin-setting-card .panel-heading > div { margin: 0; }
.admin-setting-card .panel-heading p { max-width: none; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; text-align: left; }
.admin-setting-card .admin-ad-toggle { display: inline-flex; width: auto; min-height: 32px; margin-left: 14px; padding: 3px 8px 3px 10px; gap: 8px; flex: none; border-radius: 999px; font-size: .75rem; white-space: nowrap; }
.admin-setting-card .admin-ad-toggle > input[type="checkbox"] { flex-basis: 36px; width: 36px; min-width: 36px; height: 21px; min-height: 21px; }
.admin-setting-card .admin-ad-toggle > input[type="checkbox"]::before { top: 2px; left: 2px; width: 15px; height: 15px; }
.admin-setting-card .admin-ad-toggle > input[type="checkbox"]:checked::before { transform: translateX(15px); }
.admin-setting-row { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 14px; }
.admin-setting-card .rich-editor-shell { overflow: hidden; }
.admin-setting-card .rich-toolbar { flex-wrap: wrap; gap: 8px 18px; }
.admin-setting-card .rich-toolbar > span { margin-left: auto; }
.admin-contact-card .field { flex: 1; grid-template-rows: auto minmax(150px, 1fr); }
.admin-contact-card textarea { width: 100%; height: 100%; min-height: 150px; resize: vertical; }
.admin-setting-submit { width: 100%; margin-top: 2px; }
.admin-settings-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .56);
  box-shadow: 0 14px 34px rgba(52, 72, 89, .08);
  backdrop-filter: blur(20px) saturate(130%);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
}
.admin-settings-actions > span { color: var(--muted); font-size: .82rem; }
.admin-settings-actions > .button { min-width: 240px; }
@media (min-width: 981px) {
  .admin-grid.admin-settings-grid { grid-template-columns: minmax(0, 1.45fr) minmax(360px, .75fr); }
}

.dashboard-refund-card {
  position: relative;
  padding-right: 92px !important;
}

.dashboard-card-link {
  position: absolute;
  top: 50%;
  right: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(44, 117, 218, .2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .62);
  color: #1767be;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-50%);
}

.dashboard-card-link:hover {
  background: rgba(255, 255, 255, .9);
  border-color: rgba(44, 117, 218, .38);
}

#admin-orders-section {
  scroll-margin-top: 86px;
}

.operation-log-section { grid-column: 1 / -1; }
.operation-log-heading-actions { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .86rem; }
.operation-log-heading-actions .button { min-height: 38px; padding: 0 16px; }
.operation-log-filters { display: grid; grid-template-columns: minmax(250px, 1.35fr) minmax(180px, .8fr) minmax(220px, 1fr) auto; gap: 12px; align-items: end; margin-bottom: 5px; }
.operation-log-filters .button { min-height: 44px; min-width: 96px; }
.operation-log-search-hint { margin: 0 0 16px; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.operation-log-table { table-layout: fixed; font-family: inherit; font-size: .88rem; }
.operation-log-table th:nth-child(1) { width: 16%; }
.operation-log-table th:nth-child(2) { width: 18%; }
.operation-log-table th:nth-child(3) { width: 10%; }
.operation-log-table th:nth-child(4) { width: 22%; }
.operation-log-table th:nth-child(5) { width: 24%; }
.operation-log-table th:nth-child(6) { width: 10%; }
.operation-log-table td { vertical-align: middle; }
.operation-log-table td strong,
.operation-log-table td small { display: block; }
.operation-log-table td small { margin-top: 4px; color: var(--muted); font-size: .76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.operation-log-detail { display: grid; gap: 4px; margin-top: 7px; color: var(--muted); font-size: .76rem; line-height: 1.45; }
.operation-log-detail-item { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px; align-items: start; }
.operation-log-detail-label { color: var(--text); font-weight: 700; white-space: nowrap; }
.operation-role,
.operation-result { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 999px; font-size: .78rem; font-weight: 800; white-space: nowrap; }
.operation-role-admin { background: #e7efff; color: #175fb0; }
.operation-role-employee { background: #f1ebff; color: #7140b5; }
.operation-result-success { background: #e5f7ef; color: #15724f; }
.operation-result-failed { background: #ffebee; color: #b42335; }

@media (max-width: 980px) {
  .operation-log-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .operation-log-filters .button { width: 100%; }
}

@media (max-width: 720px) {
  .operation-log-heading { align-items: center; }
  .operation-log-heading-actions { margin-top: 0; }
  .operation-log-filters { grid-template-columns: 1fr; }
  .operation-log-filters .button { width: 100%; }
  .operation-log-table-wrap { overflow: visible; }
  .operation-log-table,
  .operation-log-table tbody,
  .operation-log-table tr,
  .operation-log-table td { display: block; width: 100%; }
  .operation-log-table thead { display: none; }
  .operation-log-table tbody { display: grid; gap: 10px; }
  .operation-log-table tr { padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.62); }
  .operation-log-table td { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 10px; padding: 7px 0; border: 0; }
  .operation-log-table td::before { content: attr(data-label); color: var(--muted); font-size: .78rem; font-weight: 700; }
  .operation-log-table .empty-table-cell { display: block; text-align: center; }
  .operation-log-table .empty-table-cell::before { display: none; }
}
@media (max-width: 620px) {
  .admin-settings-actions { align-items: stretch; flex-direction: column; gap: 10px; }
  .admin-settings-actions > .button { width: 100%; min-width: 0; }
}
.switch-row { display: flex; align-items: center; justify-content: space-between; padding: 14px; border-radius: 11px; background: var(--soft); font-weight: 700; }
.switch-row input { width: 20px; height: 20px; accent-color: var(--green); }
.permission-toggle { width: 19px; height: 19px; accent-color: var(--green); }
.users-table { min-width: 1080px; table-layout: fixed; }
.users-table th,
.users-table td { min-width: 0; padding: 9px 10px; }
.users-table th { height: 52px; }
.users-table td { height: 64px; }
.users-table th:nth-child(1) { width: 12%; }
.users-table th:nth-child(2) { width: 19%; }
.users-table th:nth-child(3) { width: 11%; }
.users-table th:nth-child(4) { width: 22%; }
.users-table th:nth-child(5) { width: 10%; }
.users-table th:nth-child(6) { width: 12%; }
.users-table th:nth-child(7) { width: 14%; }
.users-table tbody tr:hover td { background: rgba(255, 255, 255, .42); }
.user-account-cell,
.user-register-date,
.user-remaining-credit { white-space: nowrap; }
.user-account-cell { color: var(--green-dark); font-weight: 700; }
.user-nickname-editor { display: flex; align-items: center; gap: 8px; }
.user-nickname-editor .admin-credit-input { flex: 1; width: auto; min-width: 0; margin: 0; }
.user-nickname-editor .button { flex: 0 0 auto; min-height: 36px; padding-inline: 12px; }
.permission-status-button { min-width: 82px; min-height: 32px; padding: 0 12px; border: 1px solid rgba(71, 85, 105, .14); border-radius: 999px; color: #64748b; background: rgba(241, 245, 249, .9); cursor: pointer; font-weight: 800; white-space: nowrap; }
.permission-status-button.enabled { border-color: rgba(37, 99, 235, .2); color: #1d4ed8; background: rgba(219, 234, 254, .88); }
.permission-status-button:disabled { cursor: default; opacity: .72; }
.upload-box { display: grid; gap: 9px; padding: 16px; border: 1px dashed #c9d2c7; border-radius: 13px; background: #fafbf7; }
.upload-box small { color: var(--muted); }
.upload-preview { max-width: 100%; max-height: 230px; margin-top: 6px; border-radius: 10px; object-fit: contain; }
.admin-list-toolbar { display: flex; justify-content: flex-start; margin-bottom: 16px; }
.admin-list-toolbar .field { width: min(320px, 100%); }
.admin-accounts-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  margin-bottom: 12px;
}
.admin-accounts-heading .panel-heading { align-items: center; margin: 0; }
.admin-accounts-heading .panel-heading p { margin-top: 0; }
.admin-accounts-heading .admin-password-trigger { margin: 0; white-space: nowrap; }
.admin-accounts-card > .admin-list-toolbar { margin-bottom: 12px; padding-bottom: 12px; }
.staff-management-grid { display: grid; grid-template-columns: minmax(360px, .75fr) minmax(0, 1.25fr); gap: 18px; align-items: start; }
.staff-create-panel, .staff-list-panel { padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: var(--soft); }
.staff-create-panel { display: grid; gap: 16px; }
.staff-list-panel { display: grid; grid-template-rows: auto minmax(0, 1fr); max-height: 590px; overflow: hidden; }
.staff-panel-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.staff-panel-title > span { color: var(--muted); font-size: .78rem; }
.staff-permission-block { display: grid; gap: 10px; }
.staff-permission-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.staff-permission-grid label { display: flex; position: relative; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 11px; overflow: hidden; border: 1px solid #d8e1d4; border-radius: 10px; background: #fff; cursor: pointer; font-size: .84rem; text-align: center; white-space: nowrap; transition: border-color .16s, color .16s, background .16s, box-shadow .16s, transform .16s; }
.staff-permission-grid input { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; opacity: 0; clip-path: inset(50%); pointer-events: none; }
.staff-permission-grid label:hover { border-color: rgba(23, 107, 77, .38); background: rgba(255, 255, 255, .82); }
.staff-permission-grid label:focus-within { outline: 3px solid rgba(23, 107, 77, .16); outline-offset: 2px; }
.staff-permission-grid label:has(input:checked) { border-color: var(--green); color: #fff; background: var(--green); box-shadow: 0 8px 18px rgba(23, 107, 77, .18); font-weight: 800; }
.staff-permission-grid label:has(input:checked):hover { background: var(--green-dark); }
.staff-list { display: grid; align-content: start; gap: 9px; min-height: 0; margin-top: 12px; padding-right: 5px; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.staff-record { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 9px 12px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.staff-record-header, .staff-record-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.staff-record-header { grid-column: 1 / -1; }
.staff-record-header > div { display: flex; align-items: center; gap: 10px; min-width: 0; }
.staff-record-header input { min-height: 36px; font-weight: 700; }
.staff-record-header span { color: var(--muted); font-size: .8rem; }
.staff-nickname-editor { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; }
.staff-nickname-editor .user-nickname-value { max-width: 120px; overflow: hidden; color: var(--ink); font-size: .86rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.staff-nickname-editor .admin-credit-input { width: 132px; min-width: 0; margin: 0; }
.staff-nickname-editor .button { flex: none; min-height: 36px; padding-inline: 11px; }
.staff-record-phone { flex: none; white-space: nowrap; }
.staff-password-state { flex: none; padding: 5px 9px; border-radius: 999px; background: #edf3e8; color: var(--green) !important; }
.staff-record .staff-permission-grid.compact { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.staff-permission-grid.compact label { min-height: 38px; padding: 5px; font-size: .72rem; line-height: 1.25; white-space: nowrap; }
.staff-record-actions { grid-column: 2; grid-row: 2; justify-content: flex-end; }
.staff-record-actions .button { min-height: 36px; padding: 0 13px; white-space: nowrap; }
.staff-password-card { width: min(480px, calc(100vw - 30px)); }
.staff-password-card > p { color: var(--muted); line-height: 1.7; }
@media (max-width: 980px) {
  .staff-management-grid { grid-template-columns: 1fr; }
  .staff-record { grid-template-columns: 1fr; }
  .staff-record .staff-permission-grid.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .staff-record-actions { grid-column: 1; grid-row: auto; }
}
@media (max-width: 680px) {
  .staff-permission-grid, .staff-permission-grid.compact { grid-template-columns: 1fr; }
  .staff-record .staff-permission-grid.compact { grid-template-columns: 1fr; }
  .staff-record-header, .staff-record-header > div { align-items: flex-start; flex-direction: column; }
  .staff-record-header input { width: 100%; }
}
.user-pagination { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 16px; color: var(--muted); font-size: .82rem; }
.admin-password-modal-card { width: min(520px, 100%); }
.admin-password-form { display: grid; gap: 16px; margin-top: 20px; }
.admin-password-form h3 { margin: 0 0 16px; font-size: 1rem; }
.admin-password-fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.admin-password-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
#password-page-form { max-width: 680px; }
#password-page-form .admin-password-fields { grid-template-columns: minmax(0, 1fr); gap: 16px; }
.admin-password-trigger { margin: 0; color: #fff; background: #8b5cf6 !important; box-shadow: 0 7px 20px rgba(139, 92, 246, .2) !important; }
.statement-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.statement-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}
.statement-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
}
.statement-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.statement-actions .button {
  min-height: 44px;
  min-width: 96px;
}
.amount-plus {
  color: #176b4d;
  font-weight: 800;
}
.amount-minus {
  color: #b53f35;
  font-weight: 800;
}
.statement-summary article {
  display: grid;
  gap: 5px;
  padding: 14px;
  border-radius: 12px;
  background: var(--soft);
  color: var(--ink);
}
.statement-summary strong { font-size: .85rem; color: var(--muted); }
.statement-summary span { font-size: 1.08rem; font-weight: 800; }
.prototype-note {
  margin-top: 14px;
  padding: 11px 14px;
  border-radius: 10px;
  color: #6f7a72;
  background: #eef3e7;
  font-size: .84rem;
}

.admin-dashboard { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 38px 0 22px; }
.admin-dashboard article { display: grid; gap: 7px; min-height: 112px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(145deg, #fff, #f3f7ed); box-shadow: 0 10px 28px rgba(25, 58, 42, .07); }
.admin-dashboard span { color: var(--muted); font-size: .84rem; font-weight: 800; }
.admin-dashboard strong { color: var(--green-dark); font-size: 1.9rem; }
.admin-product-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 18px; }
.admin-editor-panel { display: grid; align-content: start; gap: 14px; padding: 18px; border-radius: 15px; background: var(--soft); }
.admin-editor-panel form { display: grid; gap: 14px; }
.admin-product-picker { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.admin-product-picker .button { min-height: 44px; }
.product-cover-upload { background: white; }
.product-cover-upload .upload-preview { width: 100%; aspect-ratio: 12 / 7; max-height: none; object-fit: cover; }
.product-price-batch-form { padding-top: 16px; border-top: 1px solid var(--line); }
.product-price-batch-form > strong { color: var(--green-dark); }
.booking-empty { grid-column: 1 / -1; padding: 54px; }
.admin-inline-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.admin-price-table { max-height: 390px; margin-top: 2px; overflow: auto; background: white; }
.admin-order-filters { display: grid; grid-template-columns: 1.4fr .6fr; gap: 12px; margin-bottom: 16px; }
.admin-order-actions { display: flex; flex-wrap: wrap; gap: 6px; min-width: 170px; }
.admin-data-table { table-layout: fixed; }
.admin-data-table th,
.admin-data-table td { min-width: 0; }
.admin-order-table-wrap,
.admin-statement-table-wrap { overflow: hidden; }
.admin-order-table th:nth-child(1) { width: 11%; }
.admin-order-table th:nth-child(2) { width: 14%; }
.admin-order-table th:nth-child(3) { width: 20%; }
.admin-order-table th:nth-child(4) { width: 9%; }
.admin-order-table th:nth-child(5) { width: 10%; }
.admin-order-table th:nth-child(6) { width: 13%; }
.admin-order-table th:nth-child(7) { width: 9%; }
.admin-order-table th:nth-child(8) { width: 14%; }
.admin-order-table td { line-height: 1.45; overflow-wrap: anywhere; }
.admin-order-number-cell,
.admin-order-date-cell,
.admin-order-amount-cell,
.admin-order-created-cell { white-space: nowrap; }
.admin-order-number-cell,
.admin-order-amount-cell,
.admin-order-created-cell { color: var(--green-dark); font-family: inherit; font-weight: 800; font-variant-numeric: tabular-nums; }
.admin-order-content-cell { font-weight: 750; }
.admin-order-table .admin-order-actions { display: table-cell; min-width: 0; white-space: normal; }
.admin-order-action-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.admin-order-action-group .button { min-height: 34px; padding: 6px 10px; white-space: nowrap; }
.admin-order-detail-statusbar { min-height: 64px; padding: 14px 18px; background: linear-gradient(115deg, #147ee8, #5b64e9); box-shadow: 0 14px 30px rgba(38, 99, 190, .2); }
.admin-order-detail-statusbar strong { font-size: 1.2rem; }
.admin-order-detail-statusbar b { font-size: .92rem; }
#admin-order-detail-modal .order-detail-card { width: min(1180px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow-y: auto; }
#admin-order-detail-modal .order-detail-content { gap: 10px; margin-top: 12px; }
#admin-order-detail-modal .order-detail-section { padding: 13px 15px; background: rgba(255, 255, 255, .56); }
#admin-order-detail-modal .order-detail-section-heading { margin-bottom: 10px; }
.admin-order-detail-summary { display: grid; grid-template-columns: minmax(190px, 1.15fr) minmax(220px, 1.35fr) minmax(130px, .8fr) minmax(130px, .8fr); gap: 8px; }
.admin-order-detail-summary article { display: grid; align-content: start; gap: 4px; min-width: 0; padding: 9px 11px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255, 255, 255, .74); }
.admin-order-detail-summary article span { color: var(--muted); font-size: .75rem; }
.admin-order-detail-summary article strong { color: var(--green-dark); font-size: .9rem; line-height: 1.4; overflow-wrap: normal; }
.admin-order-detail-product { grid-column: auto; }
.admin-order-detail-traveler-table { table-layout: auto; }
.admin-order-detail-traveler-table th,
.admin-order-detail-traveler-table td { min-width: 0; padding: 10px 12px; font-size: .8rem; overflow-wrap: normal; word-break: keep-all; white-space: nowrap; }
.admin-order-detail-traveler-table th:nth-child(1) { width: 12%; }
.admin-order-detail-traveler-table th:nth-child(2) { width: 10%; }
.admin-order-detail-traveler-table th:nth-child(3) { width: 23%; }
.admin-order-detail-traveler-table th:nth-child(4) { width: 16%; }
.admin-order-detail-traveler-table th:nth-child(5) { width: 23%; }
.admin-order-detail-traveler-table th:nth-child(6) { width: 16%; }
.admin-traveler-state-cell { text-align: left; }
.admin-traveler-state-cell small { display: block; margin-top: 5px; color: var(--muted); font-size: .67rem; line-height: 1.4; white-space: nowrap; }
.admin-traveler-state { display: inline-flex; align-items: center; min-height: 26px; padding: 4px 9px; border-radius: 999px; font-size: .72rem; font-weight: 850; line-height: 1.25; white-space: nowrap; }
.admin-traveler-state.is-issued { color: #075f45; background: #dcf5e9; }
.admin-traveler-state.is-pending { color: #315d88; background: #e8f2fb; }
.admin-traveler-state.is-refunding { color: #9a6200; background: #fff0c9; }
.admin-traveler-state.is-refunded { color: #a12d55; background: #ffe3ed; }
.admin-traveler-state.is-rejected { color: #b42318; background: #fee9e7; }
.admin-order-refund-section .admin-refund-review { margin: 0 0 12px; }
.admin-order-refund-list { display: grid; gap: 9px; }
.admin-order-refund-record { display: grid; gap: 6px; padding: 12px 13px; border: 1px solid var(--line); border-left-width: 4px; border-radius: 11px; background: rgba(255, 255, 255, .72); }
.admin-order-refund-record.is-success { border-left-color: #22a06b; }
.admin-order-refund-record.is-pending { border-left-color: #e5a11a; }
.admin-order-refund-record.is-rejected { border-left-color: #d14343; }
.admin-order-refund-record-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.admin-order-refund-record-header strong { color: var(--green-dark); }
.admin-refund-review-list { display: grid; gap: 10px; }
.admin-refund-review-list .admin-refund-review { margin: 0; }
.admin-order-refund-record-header span,
.admin-order-refund-record small { color: var(--muted); font-size: .72rem; }
.admin-order-refund-record p { margin: 0; color: #425466; font-size: .8rem; line-height: 1.5; }
.admin-order-refund-record .admin-order-refund-reason { color: #b42318; font-weight: 750; }
.admin-order-detail-empty { margin: 0; padding: 18px; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); text-align: center; }
.admin-order-sync-section > div:last-child { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 13px; border-radius: 10px; background: rgba(231, 241, 250, .7); }
.admin-order-sync-section > div:last-child strong { color: #176fcb; white-space: nowrap; }
.admin-order-sync-section > div:last-child p { margin: 0; color: #425466; font-size: .8rem; line-height: 1.45; }
.admin-order-sync-section > div:last-child span { color: var(--muted); font-size: .72rem; white-space: nowrap; }
.admin-statement-table th:nth-child(1) { width: 15%; }
.admin-statement-table th:nth-child(2) { width: 24%; }
.admin-statement-table th:nth-child(3) { width: 14%; }
.admin-statement-table th:nth-child(4) { width: 13%; }
.admin-statement-table th:nth-child(5) { width: 21%; }
.admin-statement-table th:nth-child(6) { width: 13%; }
.admin-statement-table td:nth-child(1),
.admin-statement-table td:nth-child(4),
.admin-statement-table td:nth-child(5),
.admin-statement-table td:nth-child(6) { white-space: nowrap; }
.admin-order-table,
.admin-statement-table { font-family: inherit; font-size: .88rem; }
.admin-order-table th,
.admin-order-table td,
.admin-statement-table th,
.admin-statement-table td { font-family: inherit; font-size: inherit; }
.admin-order-table tbody td,
.admin-statement-table tbody td { font-weight: 500; }
.admin-order-table .admin-order-number-cell,
.admin-order-table .admin-order-amount-cell,
.admin-order-table .admin-order-created-cell,
.admin-order-table .admin-order-content-cell,
.admin-order-table .order-status-cell { font-weight: 500; }
@media (max-width: 720px) {
  #admin-order-detail-modal .order-detail-card { width: 100%; max-height: calc(100dvh - 12px); padding: 22px 14px; }
  .admin-order-detail-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-order-detail-account,
  .admin-order-detail-product { grid-column: 1 / -1; }
  .admin-order-detail-traveler-table thead { display: none; }
  .admin-order-detail-traveler-table,
  .admin-order-detail-traveler-table tbody { display: block; }
  .admin-order-detail-traveler-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; padding: 9px; border-bottom: 1px solid var(--line); }
  .admin-order-detail-traveler-table tr:last-child { border-bottom: 0; }
  .admin-order-detail-traveler-table td { display: grid; gap: 3px; padding: 7px; border: 0; white-space: normal; }
  .admin-order-detail-traveler-table td::before { color: var(--muted); content: attr(data-label); font-size: .66rem; font-weight: 750; }
  .admin-order-detail-traveler-table td:nth-child(3) { grid-column: 1 / -1; }
  .admin-traveler-state-cell { grid-column: 1 / -1; }
  .admin-order-refund-record-header { align-items: flex-start; flex-direction: column; gap: 4px; }
  .admin-order-sync-section > div:last-child { grid-template-columns: 1fr; gap: 6px; }
}
.admin-credit-input { width: 112px; height: 36px; margin-right: 6px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; }
.admin-credit-cell { min-width: 0; }
.admin-credit-content { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.admin-credit-content strong { color: var(--green-dark); white-space: nowrap; }
.admin-credit-content .button { flex: 0 0 auto; white-space: nowrap; }
.credit-list-actions { display: inline-flex; align-items: center; gap: 5px; }
.credit-list-actions .button { min-height: 32px; padding-inline: 10px; }
.credit-reduce-button { color: #b91c1c; border-color: rgba(220, 38, 38, .14); background: rgba(254, 242, 242, .72); }
.credit-reduce-button:hover { border-color: rgba(220, 38, 38, .28); background: rgba(254, 226, 226, .84); }
.credit-modal-card { width: min(980px, 100%); }
.reset-password-modal-card { width: min(520px, 100%); padding: 28px 30px; }
.reset-password-heading { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; padding-right: 42px; }
.reset-password-warning-icon { display: grid; flex: 0 0 46px; width: 46px; height: 46px; place-items: center; border: 1px solid rgba(220, 38, 38, .16); border-radius: 14px; color: #b91c1c; background: rgba(254, 226, 226, .82); font-size: 1.3rem; font-weight: 900; }
.reset-password-modal-card h2 { margin: 0; font-size: 1.75rem; line-height: 1.2; }
.reset-password-intro { margin: 0 0 8px; color: var(--muted); line-height: 1.65; }
.reset-password-intro span { margin: 0 3px; color: var(--text); font-weight: 800; }
.reset-password-account { display: block; padding: 14px 16px; border: 1px solid rgba(220, 38, 38, .16); border-radius: 12px; color: #172033; background: rgba(255, 255, 255, .82); font-size: 1.18rem; font-weight: 900; letter-spacing: .01em; box-shadow: inset 3px 0 0 #dc2626; }
.reset-password-credential { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; padding: 14px 16px; border-radius: 12px; color: #7f1d1d; background: rgba(254, 226, 226, .72); }
.reset-password-credential span { font-size: .82rem; font-weight: 700; }
.reset-password-credential strong { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 1.05rem; letter-spacing: .04em; }
.reset-password-notices { display: grid; gap: 6px; margin: 14px 0 18px; padding-left: 20px; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.reset-password-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 15px; border-top: 1px solid var(--line); }
.button.danger-action { min-height: 44px; color: #fff; border-color: #dc2626; background: #dc2626; box-shadow: 0 10px 24px rgba(220, 38, 38, .22); }
.button.danger-action:hover { background: #b91c1c; box-shadow: 0 12px 28px rgba(185, 28, 28, .26); }
.button.danger-action:disabled { cursor: wait; opacity: .62; transform: none; }
.staff-record-actions .staff-reset-password-button { min-height: 36px; padding: 0 13px; }
.refund-reject-modal-card { width: min(560px, 100%); padding: 28px 30px; }
.refund-reject-heading { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; padding-right: 42px; }
.refund-reject-heading .eyebrow { display: block; margin-bottom: 4px; color: #b91c1c; }
.refund-reject-heading h2 { margin: 0; font-size: 1.75rem; line-height: 1.2; }
.refund-reject-icon { display: grid; flex: 0 0 46px; width: 46px; height: 46px; place-items: center; border: 1px solid rgba(220, 38, 38, .18); border-radius: 14px; color: #b91c1c; background: rgba(254, 226, 226, .86); font-size: 1.3rem; font-weight: 900; }
.refund-reject-target { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 5px 12px; margin-bottom: 18px; padding: 14px 16px; border: 1px solid rgba(220, 38, 38, .13); border-radius: 14px; background: rgba(255, 255, 255, .7); box-shadow: inset 3px 0 0 #dc2626; }
.refund-reject-target span { color: var(--muted); font-size: .78rem; font-weight: 750; }
.refund-reject-target strong { color: #172033; font-size: 1.08rem; }
.refund-reject-target small { grid-column: 1 / -1; color: var(--muted); line-height: 1.5; overflow-wrap: anywhere; }
.refund-reject-form { display: grid; gap: 18px; }
.refund-reject-form textarea { min-height: 118px; resize: vertical; background: rgba(255, 255, 255, .9); }
.refund-reject-form .field small { color: var(--muted); }
.refund-reject-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 15px; border-top: 1px solid var(--line); }
.admin-action-dialog-card { width: min(560px, 100%); padding: 28px 30px; }
.admin-action-dialog-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; padding-right: 42px; }
.admin-action-dialog-heading h2 { margin: 0; font-size: 1.75rem; line-height: 1.2; }
.admin-action-dialog-heading .eyebrow { display: block; margin-bottom: 4px; color: var(--blue); }
.admin-action-dialog-icon { display: grid; flex: 0 0 46px; width: 46px; height: 46px; place-items: center; border: 1px solid rgba(37, 99, 235, .16); border-radius: 14px; color: #1d4ed8; background: rgba(219, 234, 254, .78); font-size: 1.22rem; font-weight: 900; }
.admin-action-dialog-card.is-danger .admin-action-dialog-heading .eyebrow { color: #b91c1c; }
.admin-action-dialog-card.is-danger .admin-action-dialog-icon { color: #b91c1c; border-color: rgba(220, 38, 38, .18); background: rgba(254, 226, 226, .86); }
.admin-action-dialog-message { margin: 0; color: #334155; line-height: 1.7; }
.admin-action-dialog-detail { margin-top: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; color: #475569; background: rgba(255, 255, 255, .66); font-size: .86rem; font-weight: 750; }
.admin-action-dialog-form { display: grid; gap: 16px; margin-top: 18px; }
.admin-action-dialog-form .field input { background: rgba(255, 255, 255, .9); }
.admin-action-dialog-form .field small { color: var(--muted); }
.admin-action-dialog-error { min-height: 20px; margin: -5px 0 0; color: #b91c1c; font-size: .8rem; font-weight: 750; line-height: 1.5; }
.admin-action-dialog-error:empty { display: none; }
.admin-action-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 15px; border-top: 1px solid var(--line); }
@media (min-width: 981px) {
  .statement-filters {
    grid-template-columns: minmax(190px, .82fr) minmax(220px, 1fr) minmax(190px, .82fr) max-content;
    align-items: end;
    column-gap: 12px;
  }
  .admin-order-filters {
    grid-template-columns: minmax(160px, .82fr) minmax(160px, .82fr) minmax(240px, 1.25fr) minmax(180px, .82fr) max-content !important;
    align-items: end;
    column-gap: 12px;
    justify-content: start;
  }
  .statement-filters .statement-actions,
  .admin-order-filters .statement-actions {
    grid-column: 5 !important;
    grid-row: 1 !important;
    align-self: end;
    justify-self: end;
    flex-wrap: nowrap;
    margin: 0;
  }
  .statement-filters .statement-actions .button,
  .admin-order-filters .statement-actions .button {
    min-height: 44px;
    white-space: nowrap;
  }
  .admin-order-filters .statement-actions .button {
    min-width: 0;
    padding-inline: 14px;
  }
}

@media (min-width: 1280px) {
  .admin-order-filters {
    grid-template-columns: minmax(180px, .82fr) minmax(180px, .82fr) minmax(280px, 1.25fr) minmax(200px, .82fr) max-content !important;
  }
}
.credit-account-title { margin: 7px 0 18px; font-size: clamp(1.55rem, 2.6vw, 2.1rem); line-height: 1.2; }
.credit-account-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 18px; }
.credit-modal-card .credit-account-summary { border: 0; background: transparent; }
.credit-account-summary > div { display: grid; gap: 7px; padding: 15px 17px; border: 1px solid rgba(255, 255, 255, .66); border-radius: 14px; background: var(--soft); }
.credit-account-summary span { color: var(--muted); font-size: .78rem; font-weight: 700; }
.credit-account-summary strong { color: var(--green-dark); font-size: 1.08rem; }
.credit-add-form { display: grid; gap: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, .55); }
.credit-form-fields { display: grid; grid-template-columns: minmax(220px, .65fr) minmax(0, 1.35fr); align-items: start; gap: 18px; }
.credit-form-fields .field { align-content: start; }
.credit-form-fields input { min-height: 48px; }
.credit-form-fields textarea { min-height: 106px; resize: vertical; }
.credit-amount-field small { margin-top: 8px; color: var(--muted); font-size: .76rem; }
.credit-form-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 15px; border-top: 1px solid var(--line); }
.credit-form-footer > span { color: var(--muted); font-size: .78rem; line-height: 1.55; }
.credit-form-footer .button { min-width: 178px; min-height: 46px; }
.credit-record-section { display: grid; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.credit-record-section > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-inline: 14px; }
.credit-record-section > div:first-child span { color: var(--muted); font-size: .76rem; }
.credit-record-section .table-wrap { max-height: 280px; overflow: auto; }
.credit-record-table { width: 100%; table-layout: fixed; }
.credit-record-table th,
.credit-record-table td { min-width: 0; padding: 13px 16px; vertical-align: middle; }
.credit-record-table th:nth-child(1) { width: 21%; }
.credit-record-table th:nth-child(2) { width: 17%; }
.credit-record-table th:nth-child(3) { width: 44%; }
.credit-record-table th:nth-child(4) { width: 18%; }
.credit-record-table td:nth-child(1),
.credit-record-table td:nth-child(2),
.credit-record-table td:nth-child(4) { white-space: nowrap; }
.credit-record-table td:nth-child(3) { line-height: 1.55; overflow-wrap: anywhere; }
.credit-record-increase { color: #047857; font-weight: 800; }
.credit-record-reduction { color: #b91c1c; font-weight: 800; }
@media (max-width: 720px) { .credit-form-fields, .credit-account-summary { grid-template-columns: 1fr; } .credit-form-footer { align-items: stretch; flex-direction: column; } .credit-form-footer .button { width: 100%; } }
.admin-empty-cell { padding: 30px !important; color: var(--muted); text-align: center !important; }
@media (min-width: 821px) and (max-height: 800px) {
  .price-calendar-card { max-height: calc(100vh - 24px); padding-block: 18px; }
  .price-day { min-height: 58px; }
  .calendar-footnote { margin-top: 8px; }
}
@media (max-width: 980px) { .admin-dashboard { grid-template-columns: repeat(2, minmax(0, 1fr)); } .admin-product-layout { grid-template-columns: 1fr; } }

@media (max-width: 820px) {
  .feature-layout { grid-template-columns: 1fr; }
  .feature-sidebar { position: static; top: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sidebar-title { display: none; }
  .feature-item { min-height: 42px; }
  .feature-content { margin-top: 8px; }
  .order-filters { grid-template-columns: 1fr; }
  .site-header { padding-inline: 16px; }
  .account-label { display: none; }
  .credit-pill span { display: none; }
  .page-shell { width: min(100% - 24px, 1180px); }
  .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 48px; }
  .booking-grid { grid-template-columns: 1fr; }
  .reservation-date-field { max-width: none; }
  .reservation-top-grid,
  .reservation-price-row,
  .reservation-traveler-fields { grid-template-columns: 1fr; }
  .price-modal-heading { display: grid; align-items: stretch; }
  .calendar-controls { justify-content: space-between; }
  .hero h1 { font-size: clamp(1.4rem, 4.5vw, 1.8rem); }
  .input-grid, .admin-grid { grid-template-columns: 1fr; }
  .admin-password-fields { grid-template-columns: 1fr; }
  .admin-accounts-heading { grid-template-columns: 1fr; gap: 12px; }
  .admin-accounts-heading .admin-password-trigger { justify-self: start; }
  .default-date-row { grid-template-columns: 1fr; }
  .panel-heading { display: block; }
  .panel-heading > div { margin-bottom: 10px; }
  .panel-heading p { text-align: left; }
  .tool-panel, .admin-card { padding: 22px; border-radius: 18px; }
  .manual-ticket-panel { padding: 22px; border-radius: 18px; }
  .statement-summary { grid-template-columns: 1fr; }
  .statement-filters { grid-template-columns: 1fr; }
  .permission-card { align-items: flex-start; flex-wrap: wrap; }
  .admin-order-filters, .admin-inline-fields, .admin-product-picker { grid-template-columns: 1fr; }
  .order-table thead { display: none; }
  .order-table,
  .order-table tbody,
  .order-table tr,
  .order-table td { display: block; width: 100%; }
  .order-table tbody { display: grid; gap: 12px; }
  .order-table tr { padding: 8px 14px; border: 1px solid var(--line); border-radius: 13px; background: white; }
  .order-table td { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-bottom: 1px solid #edf0ea; }
  .order-table td::before { content: attr(data-label); color: var(--muted); font-size: .76rem; font-weight: 800; }
  .order-table .order-payment-cell,
  .order-table .order-content-cell { display: grid; grid-template-columns: 86px minmax(0, 1fr); }
  .order-table .order-payment-cell::before,
  .order-table .order-content-cell::before { grid-row: 1 / span 4; }
  .order-table .order-payment-cell > *,
  .order-table .order-content-cell > * { grid-column: 2; }
  .order-table .order-actions-cell { display: flex; padding-top: 12px; border-bottom: 0; }
  .order-table .order-actions-cell::before { display: none; }
  .order-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .order-detail-traveler { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .brand small { display: none !important; }
  .brand-mark { width: 38px; height: 38px; }
  .credit-pill { display: none; }
  .button { padding-inline: 12px; }
  .hero { padding-top: 38px; }
  .hero-note { grid-template-columns: 1fr; }
  .hero-note strong { grid-column: auto; }
  .panel-heading h2 { font-size: 1.35rem; }
  .modal-card { padding: 28px 22px; }
  .action-row { flex-direction: column; }
  .order-confirm-summary,
  .order-confirm-traveler,
  .order-detail-content { grid-template-columns: 1fr; }
  .order-confirm-actions { flex-direction: column; }
  .order-actions-cell { grid-template-columns: 1fr; }
  .order-filter-actions { flex-direction: column; }
  .order-filter-actions .button { width: 100%; }
  .statement-actions { flex-direction: column; }
  .statement-actions .button { width: 100%; }
  .price-calendar-card { padding: 26px 16px; }
  .calendar-weekdays span { font-size: .72rem; }
  .price-day { min-height: 60px; padding: 6px; }
  .date-number { font-size: .78rem; }
  .price-day strong { font-size: .78rem; }
  .reservation-actions { flex-direction: column; }
  .admin-dashboard { grid-template-columns: 1fr; }
  .gal-table-wrap { border: 0; border-radius: 0; }
  .gal-table, .gal-table tbody { display: block; }
  .gal-table colgroup, .gal-table thead { display: none; }
  .gal-table tr { display: grid; grid-template-columns: minmax(0, 1fr) 38px; gap: 5px 8px; margin-bottom: 10px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 12px; background: white; }
  .gal-table td { min-width: 0; padding: 3px 0; border: 0; }
  .gal-table td:not(.gal-remove-cell) { display: grid; grid-template-columns: 62px minmax(0, 1fr); align-items: center; gap: 7px; }
  .gal-table td:not(.gal-remove-cell)::before { color: var(--muted); font-size: .72rem; font-weight: 700; }
  .gal-name-cell { grid-column: 1; grid-row: 1; }
  .gal-name-cell::before { content: "姓名"; }
  .gal-id-cell, .gal-date-cell, .gal-result-cell { grid-column: 1 / -1; }
  .gal-id-cell::before { content: "证件号"; }
  .gal-date-cell::before { content: "出游日期"; }
  .gal-result-cell::before { content: "GAL码"; align-self: start; padding-top: 8px; }
  .gal-remove-cell { grid-column: 2; grid-row: 1; justify-self: end; }
  .gal-id-cell { font-size: .8rem; }
  .gal-table td input { height: 36px; }
  .gal-code-item { gap: 6px; }
  .gal-copy-button { min-width: 52px; min-height: 36px; }
}
.reservation-inline-message { display: block; margin: 8px 0 0; color: var(--muted); font-size: .82rem; }
.reservation-inline-message.success { color: #16785b; font-weight: 700; }
.reservation-inline-message.error { color: #b5423c; font-weight: 700; }
.reservation-policy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 18px 0; }
.reservation-policy-grid article { padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fffaf0; }
.reservation-policy-grid strong { color: var(--ink); }
.reservation-policy-grid p { margin: 8px 0 0; color: var(--muted); line-height: 1.7; white-space: pre-wrap; }
.refund-modal-card { max-width: 560px; }
.refund-modal-card textarea { resize: vertical; }

@media (max-width: 720px) {
  .reservation-policy-grid { grid-template-columns: 1fr; }
}

/* Responsive polish layer: desktop refinement and mobile-first layouts. */
body {
  background:
    radial-gradient(circle at 86% 4%, rgba(202, 255, 83, 0.16), transparent 30rem),
    radial-gradient(circle at 4% 42%, rgba(28, 126, 91, 0.08), transparent 34rem),
    #f5f5ec;
}

.site-header {
  border-bottom-color: rgba(19, 70, 51, 0.1);
  box-shadow: 0 10px 34px rgba(29, 63, 46, 0.05);
  backdrop-filter: blur(18px);
}

.tool-panel,
.feature-sidebar,
.booking-card,
.admin-card,
.admin-grid > * {
  border-color: rgba(21, 70, 51, 0.1);
  box-shadow: 0 18px 46px rgba(37, 59, 43, 0.075);
}

input,
textarea,
select {
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #1d7d5b;
  box-shadow: 0 0 0 4px rgba(29, 125, 91, 0.11);
}

.button,
.feature-item,
.calendar-arrow,
.price-day {
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

@media (hover: hover) {
  .button:hover,
  .feature-item:hover,
  .calendar-arrow:hover:not(:disabled) {
    transform: translateY(-1px);
  }

  .booking-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 58px rgba(29, 72, 50, 0.14);
  }
}

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

  body {
    background:
      radial-gradient(circle at 94% 6%, rgba(210, 255, 89, 0.2), transparent 18rem),
      linear-gradient(180deg, #f8f8ef 0%, #f2f4e9 100%);
  }

  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
    align-items: center;
    padding: 10px 14px 9px;
  }

  .site-header .brand {
    min-width: 0;
  }

  .site-header .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    flex: 0 0 38px;
  }

  .site-header .brand strong {
    font-size: 16px;
    white-space: nowrap;
  }

  .site-header .brand small,
  .site-header .account-label {
    display: none !important;
  }

  .site-header .account-actions {
    display: contents;
  }

  .site-header .account-actions > .button {
    min-height: 38px;
    padding: 8px 12px;
    white-space: nowrap;
  }

  .site-header .credit-pill:not(.hidden) {
    display: flex !important;
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: space-between;
    width: 100%;
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid rgba(29, 125, 91, 0.13);
    border-radius: 12px;
    background: linear-gradient(90deg, rgba(29, 125, 91, 0.09), rgba(211, 255, 84, 0.15));
    box-shadow: none;
  }

  .site-header .credit-pill span {
    display: inline !important;
    font-size: 12px;
  }

  .site-header .credit-pill strong {
    font-size: 15px;
  }

  .page-shell,
  .admin-shell {
    width: 100%;
    max-width: 100%;
    padding-left: 12px;
    padding-right: 12px;
  }

  .hero {
    padding-top: 28px;
    padding-bottom: 20px;
  }

  .hero h1 {
    font-size: clamp(25px, 8vw, 34px);
    line-height: 1.15;
  }

  .feature-layout,
  .reservation-top-grid,
  .reservation-basic-info,
  .booking-grid,
  .admin-product-layout,
  .admin-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .feature-sidebar {
    width: 100%;
    padding: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    border-radius: 20px;
  }

  .feature-sidebar h2 {
    grid-column: 1 / -1;
    margin-bottom: 2px;
  }

  .feature-item {
    min-width: 0;
    min-height: 44px;
    padding: 10px 9px;
    border-radius: 12px;
    text-align: center;
  }

  .feature-content,
  .feature-panel,
  .tool-panel,
  .admin-card,
  .admin-grid,
  .admin-grid > *,
  .admin-editor-panel {
    min-width: 0;
    max-width: 100%;
  }

  .tool-panel,
  .admin-card,
  .admin-grid > * {
    padding: 20px;
    border-radius: 22px;
  }

  .panel-heading {
    align-items: flex-start;
    gap: 10px;
  }

  .panel-heading h2 {
    font-size: 23px;
    line-height: 1.2;
  }

  .input-grid,
  .order-filters,
  .statement-filters,
  .admin-order-filters,
  .admin-inline-fields,
  .admin-product-picker,
  .admin-list-toolbar,
  .admin-password-fields {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .action-row,
  .order-filter-actions,
  .statement-actions,
  .admin-order-actions,
  .reservation-actions,
  .order-confirm-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 9px;
  }

  .action-row .button,
  .order-filter-actions .button,
  .statement-actions .button,
  .admin-order-actions .button,
  .reservation-actions .button,
  .order-confirm-actions .button {
    width: 100%;
    min-width: 0;
  }

  .booking-grid {
    gap: 18px;
  }

  .booking-card {
    width: 100%;
    border-radius: 21px;
    overflow: hidden;
  }

  .booking-photo,
  .booking-image {
    aspect-ratio: 16 / 10;
  }

  .booking-detail,
  .booking-card-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .booking-card-footer {
    align-items: end;
  }

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

  .booking-actions .button {
    width: 100%;
    padding-left: 8px;
    padding-right: 8px;
  }

  .reservation-back-row {
    margin-bottom: 14px;
  }

  .reservation-summary,
  .reservation-traveler,
  .order-confirm-card {
    border-radius: 18px;
  }

  .reservation-price-row {
    grid-template-columns: minmax(0, 1fr) minmax(96px, 0.55fr);
    gap: 10px;
  }

  .reservation-total {
    padding: 14px 16px;
  }

  .reservation-traveler {
    padding: 16px;
  }

  .reservation-traveler .input-grid {
    gap: 12px;
  }

  .modal {
    align-items: flex-end;
    padding: 10px 10px 0;
  }

  .modal-card {
    width: 100%;
    max-width: 100%;
    max-height: calc(100dvh - 10px);
    margin: 0;
    padding: 22px 18px;
    border-radius: 24px 24px 0 0;
  }

  .price-calendar-card {
    height: min(730px, calc(100dvh - 10px));
    padding: 22px 12px 14px;
  }

  .price-modal-heading {
    padding-right: 34px;
  }

  .price-modal-heading h2 {
    font-size: 24px;
    line-height: 1.15;
  }

  .price-modal-heading p {
    margin-top: 8px;
    font-size: 13px;
  }

  .calendar-controls {
    margin-top: 14px;
    padding: 7px;
    border-radius: 14px;
  }

  .calendar-arrow {
    width: 36px;
    height: 36px;
  }

  .calendar-weekdays span {
    padding: 8px 0;
    font-size: 12px;
  }

  .price-calendar-grid {
    border-radius: 14px;
    overflow: hidden;
  }

  .price-day {
    min-width: 0;
    min-height: 62px;
    padding: 6px 2px;
    gap: 2px;
    overflow: hidden;
  }

  .price-day .date-number {
    font-size: 12px;
  }

  .price-day > span:not(.date-number) {
    display: none;
  }

  .price-day strong {
    font-size: 11px;
    line-height: 1;
    white-space: nowrap;
  }

  .price-day em {
    max-width: 100%;
    padding: 2px 4px;
    font-size: 8px;
    line-height: 1;
    white-space: nowrap;
  }

  .calendar-footnote {
    margin-top: 10px;
    font-size: 12px;
  }

  #order-feature .table-wrap,
  #statement-feature .table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  #order-feature table,
  #statement-feature table,
  #order-feature tbody,
  #statement-feature tbody {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
  }

  #order-feature thead,
  #statement-feature thead {
    display: none;
  }

  #order-feature tbody tr,
  #statement-feature tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px 10px;
    width: 100%;
    margin-bottom: 12px;
    padding: 16px;
    border: 1px solid rgba(22, 74, 53, 0.11);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(32, 64, 46, 0.07);
  }

  #order-feature tbody tr {
    grid-template-areas:
      "number number"
      "content content"
      "amount status"
      "created created"
      "actions actions";
  }

  #order-feature tbody td,
  #statement-feature tbody td {
    display: flex;
    min-width: 0;
    padding: 0;
    border: 0;
    flex-direction: column;
    gap: 4px;
    overflow-wrap: anywhere;
  }

  #order-feature tbody td::before,
  #statement-feature tbody td::before {
    color: #7a847d;
    font-size: 11px;
    font-weight: 700;
  }

  #order-feature tbody td:nth-child(1),
  #order-feature tbody td:nth-child(6),
  #statement-feature tbody td:nth-child(1) {
    grid-column: 1 / -1;
  }

  #order-feature tbody td::before,
  #statement-feature tbody td::before { content: attr(data-label); }

  #order-feature tbody td:nth-child(1) { grid-area: number; }
  #order-feature tbody td:nth-child(2) { grid-area: amount; }
  #order-feature tbody td:nth-child(3) { grid-area: content; }
  #order-feature tbody td:nth-child(4) { grid-area: status; }
  #order-feature tbody td:nth-child(5) { grid-area: created; }
  #order-feature tbody td:nth-child(6) { grid-area: actions; }

  #order-feature tbody td:last-child,
  #statement-feature tbody td:last-child {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  #order-feature tbody td:last-child::before,
  #statement-feature tbody td:last-child::before {
    width: 100%;
  }

  #order-feature tbody td[colspan],
  #statement-feature tbody td[colspan] {
    grid-column: 1 / -1;
  }

  #order-feature tbody td[colspan]::before,
  #statement-feature tbody td[colspan]::before {
    content: none;
  }

  .order-pagination,
  .user-pagination {
    gap: 8px;
    font-size: 12px;
  }

  .order-pagination .button,
  .user-pagination .button {
    min-width: 0;
    padding: 8px 10px;
  }

  .admin-page,
  .admin-shell,
  .admin-card,
  .admin-grid,
  .admin-editor-panel,
  #product-form,
  .admin-product-picker,
  .admin-inline-fields,
  .upload-box,
  .field {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

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

  .admin-dashboard article {
    min-height: 116px;
    padding: 18px;
    border-radius: 19px;
  }

  .admin-dashboard article strong {
    font-size: 28px;
  }

  .admin-product-picker,
  .admin-list-toolbar {
    gap: 10px;
  }

  .admin-card .table-wrap,
  .admin-price-table {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    border-radius: 14px;
    box-shadow: inset -18px 0 18px -20px rgba(20, 55, 39, 0.35);
  }

  .admin-card table {
    font-size: 13px;
  }

  .admin-order-actions .button,
  .admin-list-toolbar .button {
    min-height: 42px;
  }
}

@media (max-width: 420px) {
  .site-header .account-actions > .button {
    padding-left: 10px;
    padding-right: 10px;
    font-size: 13px;
  }

  .tool-panel,
  .admin-card,
  .admin-grid > * {
    padding: 18px;
  }

  .panel-heading h2 {
    font-size: 21px;
  }

  .reservation-price-row,
  .action-row,
  .admin-order-actions {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Wide desktop layout requested for the booking workspace. */
@media (min-width: 761px) {
  .page-shell {
    width: 100%;
    max-width: none;
    padding-left: 24px;
    padding-right: 24px;
  }

  .feature-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
  }

  .feature-sidebar {
    position: sticky;
    top: 92px;
  }
}

@media (min-width: 1100px) {
  .booking-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  .booking-card {
    min-width: 0;
  }

  .booking-detail {
    padding-left: 18px;
    padding-right: 18px;
  }

  .booking-card-footer {
    padding-left: 18px;
    padding-right: 18px;
  }
}

@media (min-width: 761px) and (max-width: 1099px) {
  .booking-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Desktop and mobile layouts are intentionally isolated by breakpoint. */
@media (min-width: 1100px) {
  .page-shell {
    width: calc(100% - 48px);
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
  }

  .feature-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 22px;
  }

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

@media (min-width: 761px) and (max-width: 1099px) {
  .page-shell {
    width: calc(100% - 36px);
    max-width: 1040px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
  }

  .feature-layout {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 18px;
  }

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

@media (max-width: 760px) {
  .page-shell {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding-left: 12px;
    padding-right: 12px;
  }

  .feature-layout,
  .booking-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Desktop ticket tools use the available width side by side. */
@media (min-width: 1100px) {
  #ticket-feature {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
  }

  #ticket-feature > #ticket-panel,
  #ticket-feature > #manual-ticket-panel {
    grid-column: auto;
    width: 100%;
    min-width: 0;
    margin-top: 0;
  }

  #ticket-feature > #age-rules {
    grid-column: 1 / -1;
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .manual-ticket-panel .age-rules {
    margin-top: 18px;
  }
}

@media (max-width: 1099px) {
  #ticket-feature {
    display: block;
  }

  #ticket-feature > .manual-ticket-panel,
  #ticket-feature > #age-rules {
    margin-top: 18px;
  }
}

/* Verified wide-screen ticket layout: three purposeful columns, not stretched rows. */
@media (min-width: 1100px) {
  .page-shell {
    width: calc(100% - 32px);
    max-width: 1520px;
  }

  #ticket-feature {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(250px, 0.85fr);
    gap: 20px;
    align-items: stretch;
  }

  #ticket-feature > #ticket-panel,
  #ticket-feature > #manual-ticket-panel,
  #ticket-feature > #age-rules {
    grid-column: auto;
    grid-row: 1;
    height: 100%;
    min-width: 0;
    margin: 0;
  }

  #manual-ticket-panel .panel-heading {
    display: block;
  }

  #manual-ticket-panel .panel-heading > div {
    width: 100%;
  }

  #manual-ticket-panel .panel-heading h2 {
    font-size: clamp(20px, 1.55vw, 25px);
    white-space: nowrap;
  }

  #manual-ticket-panel .panel-heading p {
    margin-top: 10px;
    text-align: left;
  }

  #manual-ticket-panel .default-date-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  #ticket-feature > #age-rules {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    padding: 24px;
  }

  #ticket-feature > #age-rules strong,
  #ticket-feature > #age-rules span {
    grid-column: 1;
  }
}

@media (min-width: 1100px) {
  #ticket-panel .panel-heading {
    display: block;
  }

  #ticket-panel .panel-heading > div {
    width: 100%;
  }

  #ticket-panel .panel-heading h2 {
    font-size: clamp(20px, 1.55vw, 25px);
    white-space: nowrap;
  }

  #ticket-panel .panel-heading p {
    margin-top: 10px;
    text-align: left;
  }
}

/* Result-friendly desktop layout: wide parser on the left, compact tools stacked right. */
@media (min-width: 1100px) {
  #ticket-feature {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "rules rules"
      "parser manual"
      "results results";
    gap: 20px;
    align-items: start;
  }

  #ticket-feature > #ticket-panel {
    grid-area: parser;
    width: 100%;
    height: auto;
    align-self: start;
  }

  #ticket-feature > #manual-ticket-panel {
    grid-area: manual;
    width: 100%;
    height: auto;
    align-self: start;
  }

  #ticket-feature > #age-rules {
    grid-area: auto;
  }

  #ticket-feature > #ticket-results {
    grid-area: results;
  }

  #ticket-panel .table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
  }

  #ticket-panel .table-wrap table {
    width: 100%;
    min-width: 660px;
  }

  #manual-ticket-panel .default-date-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #manual-ticket-panel > #age-rules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: none;
    margin: 18px 0 0;
  }

  #manual-ticket-panel > #age-rules strong {
    grid-column: 1 / -1;
  }

  #manual-ticket-panel > #age-rules span {
    grid-column: auto;
  }
}

/* The age guide is a separate compact strip above both desktop tools. */
@media (min-width: 1100px) {
  #ticket-feature > #age-rules {
    grid-area: rules;
    grid-row: auto;
    justify-self: end;
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    width: auto;
    max-width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 12px 16px;
    gap: 8px;
  }

  #ticket-feature > #age-rules strong,
  #ticket-feature > #age-rules span {
    grid-column: auto;
    width: auto;
    margin: 0;
    white-space: nowrap;
  }
}

@media (max-width: 1099px) {
  #ticket-feature > #age-rules {
    width: 100%;
    max-width: none;
    margin: 0 0 18px;
  }
}

.ticket-results-panel {
  width: 100%;
  min-width: 0;
  padding: 22px;
  border: 1px solid rgba(21, 70, 51, 0.1);
  border-radius: 22px;
  background: #fffef9;
  box-shadow: 0 18px 46px rgba(37, 59, 43, 0.075);
}

@media (max-width: 1099px) {
  #manual-ticket-panel > #age-rules {
    width: 100%;
    max-width: none;
    margin: 18px 0 0;
  }

  .ticket-results-panel {
    margin-top: 18px;
  }
}

@media (min-width: 1100px) {
  #ticket-panel .table-wrap table {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed;
  }

  #ticket-panel .table-wrap th,
  #ticket-panel .table-wrap td {
    min-width: 0 !important;
    padding-left: 8px;
    padding-right: 8px;
    overflow: hidden;
  }

  #ticket-panel .table-wrap th:nth-child(1) { width: 18%; }
  #ticket-panel .table-wrap th:nth-child(2) { width: 16%; }
  #ticket-panel .table-wrap th:nth-child(3) { width: 24%; }
  #ticket-panel .table-wrap th:nth-child(4) { width: 19%; }
  #ticket-panel .table-wrap th:nth-child(5) { width: 19%; }
  #ticket-panel .table-wrap th:nth-child(6) { width: 4%; }

  #ticket-panel .table-wrap input,
  #ticket-panel .table-wrap select,
  #ticket-panel .table-wrap button {
    width: 100%;
    min-width: 0 !important;
    max-width: 100%;
    box-sizing: border-box;
  }
}

@media (min-width: 1100px) {
  #ticket-feature > #ticket-panel,
  #ticket-feature > #manual-ticket-panel {
    height: 100%;
    align-self: stretch;
  }

  #ticket-feature > #age-rules strong {
    margin-right: 20px;
  }
}

#manual-ticket-panel .default-date-row {
  grid-template-columns: minmax(0, 1fr);
}

#ticket-feature > #ticket-empty {
  grid-area: results;
  width: 100%;
  box-sizing: border-box;
}

#order-feature th:first-child,
#order-feature td:first-child,
.admin-card #admin-orders-body td:first-child {
  white-space: nowrap;
}

/* Admin product list and focused editor. */
.admin-product-list-view {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.admin-product-list-heading,
.admin-product-editor-heading,
.admin-calendar-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.admin-product-list-heading > div,
.admin-product-editor-heading > div,
.admin-calendar-heading > div:first-child {
  display: grid;
  gap: 4px;
}

.admin-product-list-heading strong,
.admin-product-editor-heading strong,
.admin-calendar-heading strong {
  color: var(--green-dark);
  font-size: 1.05rem;
}

.admin-product-list-heading span,
.admin-product-editor-heading span,
.admin-calendar-heading span {
  color: var(--muted);
  font-size: .78rem;
}

.admin-product-list-heading b {
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--green-dark);
  background: var(--soft);
  font-size: .78rem;
}

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

.admin-product-record {
  display: grid;
  grid-template-columns: 42px 124px minmax(220px, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.admin-product-record:hover {
  border-color: rgba(19, 112, 78, .32);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(32, 71, 51, .07);
}

.admin-product-drag-handle {
  display: flex;
  align-self: stretch;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 42px;
  min-height: 56px;
  padding: 4px 0;
  border: 0;
  border-radius: 11px;
  color: #8998a5;
  background: transparent;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}

.admin-product-drag-handle:hover,
.admin-product-drag-handle:focus-visible {
  color: var(--green-dark);
  background: rgba(255, 255, 255, .64);
  outline: none;
}

.admin-product-drag-handle:focus-visible {
  box-shadow: 0 0 0 3px rgba(37, 126, 255, .2);
}

.admin-product-drag-handle:active { cursor: grabbing; }

.admin-product-grip {
  width: 16px;
  height: 16px;
  opacity: .75;
  background: radial-gradient(circle, currentColor 1.5px, transparent 1.8px) 0 0 / 8px 6px;
}

.admin-product-record.is-dragging {
  z-index: 3;
  opacity: .76;
  border-color: rgba(37, 126, 255, .48);
  transform: scale(.992);
  box-shadow: 0 22px 44px rgba(49, 82, 114, .2);
}

.admin-product-list.is-saving .admin-product-drag-handle {
  opacity: .42;
  pointer-events: none;
}

body.is-sorting-products,
body.is-sorting-products * {
  cursor: grabbing !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}

.admin-product-record > img {
  width: 124px;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  object-fit: cover;
  background: var(--soft);
}

.admin-product-index {
  color: #9aa59c;
  font-family: Georgia, serif;
  font-size: 1rem;
  font-weight: 800;
  text-align: center;
}

.admin-product-record-info {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.admin-product-record-info > strong {
  overflow: hidden;
  color: var(--green-dark);
  font-size: 1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-product-record-info > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--muted);
  font-size: .78rem;
}

.admin-product-identifier,
.admin-product-record-info > .admin-product-identifier {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}
.admin-product-identifier-field { display: grid; gap: 4px; flex: 1 1 200px; min-width: 0; color: var(--muted); font-size: .78rem; }
.admin-product-identifier-field input { width: 100%; min-width: 0; padding: 8px; font-size: .8rem; }
.admin-product-identifier .button { min-height: 36px; padding: 8px 10px; flex-shrink: 0; font-size: .78rem; }
.admin-product-identifier .button:focus-visible,
.admin-product-identifier-field input:focus-visible { outline: 2px solid var(--green-dark); outline-offset: 2px; }
.admin-product-identifier .button:disabled { cursor: not-allowed; opacity: .5; }

@media (max-width: 640px) {
  .admin-page .admin-product-record-info { grid-column: 1 / -1; grid-row: 2; }
  .admin-page .admin-product-record-info > strong { white-space: normal; overflow-wrap: anywhere; }
  .admin-page .admin-product-record > .button { grid-column: 3; grid-row: 1; }
  .admin-page .admin-product-record > .admin-product-list-toggle { grid-column: 1 / span 2; grid-row: 3; }
  .admin-page .admin-product-record > .admin-product-delete-slot { grid-column: 3; grid-row: 3; }
}

.admin-product-status {
  min-width: 64px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 900;
  text-align: center;
}

.admin-product-status.is-on { color: #09633f; background: #ddf4e5; }
.admin-product-status.is-off { color: #8a5d16; background: #f7ecd8; }

.admin-product-editor-heading {
  margin: 18px 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.admin-product-editor-heading > div { text-align: right; }
.product-basic-editor { grid-template-rows: auto auto auto auto 1fr; }
.product-basic-editor .switch-row span,
.selected-price-editor .switch-row span { display: grid; gap: 3px; }
.product-basic-editor .switch-row small,
.selected-price-editor .switch-row small { color: var(--muted); font-weight: 500; }

.product-calendar-editor { gap: 16px; }
.admin-calendar-nav { display: flex; align-items: center; gap: 10px; }
.admin-calendar-nav b { min-width: 96px; color: var(--green-dark); text-align: center; }
.admin-calendar-nav .icon-button { width: 34px; height: 34px; }
.admin-calendar-nav .icon-button:disabled { cursor: not-allowed; opacity: .34; }

.admin-calendar-weekdays,
.admin-price-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.admin-calendar-weekdays span {
  padding: 4px;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 900;
  text-align: center;
}

.admin-price-day {
  display: grid;
  align-content: space-between;
  gap: 3px;
  min-height: 76px;
  padding: 8px;
  border: 1px solid #dce4d9;
  border-radius: 10px;
  color: var(--muted);
  background: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.admin-price-day b { color: var(--green-dark); font-size: .78rem; }
.admin-price-day span { color: #8a948d; font-size: .68rem; }
.admin-price-day small { color: #168059; font-size: .65rem; font-weight: 900; }
.admin-price-day.has-price { border-color: #bcd6c5; background: #f4faf2; }
.admin-price-day.is-sold-out { border-color: #ead2c5; background: #fff5ef; }
.admin-price-day.is-sold-out small { color: #b35d37; }
.admin-price-day.is-selected { outline: 2px solid var(--green); outline-offset: 1px; }
.admin-price-day.is-blank { border-color: transparent; background: transparent; cursor: default; }

.admin-page .admin-shell { grid-template-columns: minmax(0, 1fr); }
.admin-product-layout > *,
.product-calendar-editor form { min-width: 0; }
.admin-calendar-scroll { overflow-x: auto; }
.admin-calendar-scroll .admin-calendar-weekdays,
.admin-calendar-scroll .admin-price-calendar { min-width: 630px; }
.admin-page .admin-price-day.is-editable { min-width: 0; min-height: 122px; padding: 8px; gap: 8px; cursor: default; }
.admin-price-day-heading { display: flex; align-items: center; justify-content: space-between; gap: 2px; }
.admin-page .admin-price-day.is-editable input,
.admin-page .admin-price-day.is-editable select { width: 100%; min-width: 0; height: 34px; padding: 4px; border: 1px solid var(--line); border-radius: 4px; color: var(--green-dark); background: #fff; font: inherit; font-size: .75rem; }
.admin-price-day.is-editable input::-webkit-inner-spin-button,
.admin-price-day.is-editable input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.admin-price-day.is-editable input { -moz-appearance: textfield; }
.admin-page .admin-price-day.is-dirty { border-color: var(--green); }
.admin-price-day.is-editable:focus-within { outline: 2px solid var(--green); outline-offset: 1px; }
.product-price-save-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--line); }
.product-price-save-bar p { margin: 0; color: var(--muted); font-size: .8rem; }
.product-price-save-bar button:disabled { opacity: .5; cursor: not-allowed; }
.product-price-batch-details { padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.product-price-batch-details summary { color: var(--green-dark); font-size: .82rem; font-weight: 900; cursor: pointer; }
.product-price-batch-details .product-price-batch-form { margin-top: 12px; padding-top: 0; border-top: 0; }

@media (max-width: 820px) {
  .admin-product-record {
    grid-template-columns: 32px 88px minmax(0, 1fr) auto;
    gap: 10px;
  }

  .admin-product-record > img { width: 88px; }
  .admin-product-status { grid-column: 3; justify-self: start; }
  .admin-product-record > .button { grid-column: 4; grid-row: 1 / span 2; }
  .admin-product-editor-heading { align-items: flex-start; }
  .admin-price-day { min-height: 64px; padding: 6px; }
  .admin-price-day span { font-size: .6rem; }
}

@media (max-width: 520px) {
  .admin-product-record {
    grid-template-columns: 34px 74px minmax(0, 1fr) auto;
  }

  .admin-product-index { display: none; }
  .admin-product-drag-handle { min-width: 34px; }
  .admin-product-record > img { width: 74px; }
  .admin-product-status { grid-column: 3; }
  .admin-product-record > .button { grid-column: 4; }
  .admin-product-list-heading { align-items: flex-start; }
  .admin-calendar-heading { align-items: flex-start; flex-direction: column; }
  .admin-calendar-nav { width: 100%; justify-content: space-between; }
  .admin-price-calendar { gap: 3px; }
  .admin-price-day { min-height: 54px; padding: 4px; border-radius: 7px; }
  .admin-price-day span { display: none; }
}
.price-import { min-width: 0; padding: 16px; margin-bottom: 20px; border: 1px solid var(--line, #d9e5de); border-radius: 12px; }
.price-import > summary { cursor: pointer; font-weight: 700; }
.price-import-toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin-top: 16px; }
.price-import-toolbar .field { flex: 1; min-width: 0; }
.price-import input[type="file"] { width: 100%; min-width: 0; }
.price-import-confirm { display: flex; align-items: start; gap: 8px; flex: 1 1 100%; }
.price-import-confirm input { width: auto; flex-shrink: 0; margin-top: 4px; }
.price-import-table-wrap { max-width: 100%; overflow: auto; max-height: 480px; border: 1px solid var(--line, #d9e5de); }
.price-import-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 14px; }
.price-import-table th, .price-import-table td { padding: 12px; text-align: left; border-bottom: 1px solid var(--line, #d9e5de); }
.price-import-table th { background: var(--surface, #fff); position: sticky; top: 0; }
.price-import-table td:first-child { max-width: 320px; overflow-wrap: anywhere; }
.price-import-table small { display: block; color: var(--muted, #64756d); margin-top: 4px; }
.price-import-sold-out { background: #fff5e8; }
.price-import-error { color: #a32626; }
@media (max-width: 640px) {
  .price-import { padding: 12px; }
  .price-import-toolbar .field { flex-basis: 100%; }
}
