:root {
  color-scheme: light;
  --ink: #604754;
  --ink-strong: #4d3542;
  --muted: #927782;
  --paper: #fffdfd;
  --canvas: #fff5f8;
  --soft: #fde8f0;
  --soft-lilac: #f4edf9;
  --line: #f2d3df;
  --line-strong: #e8b9ca;
  --primary: #eb82a8;
  --primary-dark: #c9577e;
  --primary-soft: #fff0f6;
  --yellow: #ffd880;
  --yellow-soft: #fff8df;
  --green: #65aa91;
  --green-soft: #e8f7f0;
  --red: #c86572;
  --red-soft: #fff0f2;
  --slate: #816c77;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--canvas);
  color: var(--ink);
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 10% -4%, rgba(255, 208, 224, .68) 0, rgba(255, 208, 224, 0) 19rem),
    radial-gradient(circle at 97% 18%, rgba(255, 230, 168, .34) 0, rgba(255, 230, 168, 0) 22rem),
    linear-gradient(180deg, #fff9fb 0, var(--canvas) 48%, #fff8fa 100%);
}

button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { touch-action: manipulation; }

.page-shell { min-height: 100vh; overflow: clip; }

.top-banner {
  width: min(1200px, 100%);
  margin: 0 auto;
}

.top-banner img {
  display: block;
  width: 100%;
  height: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px max(18px, calc((100vw - 760px) / 2));
  border-bottom: 1px solid rgba(242, 211, 223, .84);
  background: rgba(255, 253, 253, .89);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-strong);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  border: 1px solid #e47ea5;
  border-radius: 15px 15px 15px 6px;
  background: linear-gradient(145deg, #ffb4cb, #ed7fa8);
  box-shadow: 3px 3px 0 #ffd4e1;
  color: #fffdfd;
  font-family: "Noto Sans TC", sans-serif;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -.04em;
}

.brand strong, .brand small { display: block; line-height: 1.12; }
.brand strong { font-size: 15px; letter-spacing: .03em; }
.brand small { margin-top: 3px; color: var(--muted); font-size: 10px; letter-spacing: .04em; }

.content {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 25px 18px 65px;
}

.test-checkout-note {
  margin: 0 0 12px;
  color: #8b6734;
  font-size: 13px;
  font-weight: 700;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 2px 0 24px;
  padding: 25px 27px 22px;
  border: 1px solid #f0b9ce;
  border-radius: 23px 23px 23px 9px;
  background:
    radial-gradient(circle at 89% 18%, rgba(255, 255, 255, .72) 0 1.5rem, transparent 1.55rem),
    linear-gradient(135deg, #ffd7e4 0%, #fff1f6 55%, #fff9ed 100%);
  box-shadow: 0 11px 28px rgba(212, 111, 149, .11);
  color: var(--ink-strong);
}

.hero::before, .hero::after {
  position: absolute;
  z-index: -1;
  font-family: Arial, sans-serif;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.hero::before {
  top: -6px;
  right: 17px;
  color: rgba(235, 130, 168, .35);
  content: "♡";
  font-size: 77px;
  transform: rotate(11deg);
}

.hero::after {
  right: 100px;
  bottom: 6px;
  color: rgba(255, 205, 97, .72);
  content: "✦";
  font-size: 27px;
  transform: rotate(-14deg);
}

.hero-main { max-width: 555px; }

.hero h1 {
  max-width: 580px;
  margin: 8px 0 10px;
  color: #713c53;
  font-family: "Noto Sans TC", "PingFang TC", sans-serif;
  font-size: clamp(27px, 6.5vw, 40px);
  font-weight: 900;
  letter-spacing: .045em;
  line-height: 1.36;
}

.hero .eyebrow { color: #bc567c; }

.hero-copy {
  max-width: 530px;
  margin: 0;
  color: #926677;
  font-size: 14px;
  line-height: 1.7;
}

.hero-next { margin-top: 16px; }

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 21px;
}

.hero-fact {
  min-width: 0;
  padding: 9px 10px 8px;
  border: 0;
  border-left: 1px solid rgba(188, 86, 124, .3);
  background: transparent;
}
.hero-fact:first-child { border-left: 0; }

.hero-fact strong, .hero-fact span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-fact strong { color: #8b4762; font-size: 14px; font-variant-numeric: tabular-nums; }
.hero-fact span { margin-top: 3px; color: #aa7b8d; font-size: 10px; }

.hero-orders { background: linear-gradient(135deg, #fce4ee 0%, #fff4f6 58%, #fef9e9 100%); }
.hero-admin { border-color: #e9cadc; background: linear-gradient(135deg, #f5eef8 0%, #fff9fb 64%, #fff4f6 100%); }
.hero-admin::before { color: rgba(161, 121, 179, .27); }
.hero-admin::after { color: rgba(112, 184, 157, .54); }

.eyebrow {
  margin: 0 0 5px;
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .13em;
}

.muted {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.card {
  margin: 14px 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 253, .92);
  box-shadow: 0 6px 17px rgba(173, 106, 136, .045);
}

.card h2, .card h3 { margin: 0; color: var(--ink-strong); letter-spacing: .025em; }

.login-card {
  border-color: #edbdd1;
  background:
    linear-gradient(125deg, rgba(255, 237, 244, .97), rgba(255, 253, 253, .94) 63%),
    var(--paper);
}

.accent-card { border-color: #efd48e; background: linear-gradient(120deg, #fff9e8, #fffdf8); }

.stack-actions { display: grid; gap: 12px; margin-top: 17px; }

.dev-login-box {
  padding: 11px 12px;
  border: 1px dashed #d7b5c8;
  border-radius: 13px;
  background: rgba(255, 253, 253, .76);
  color: #715565;
  font-size: 13px;
}

.dev-login-box strong { color: #674b59; font-size: 13px; }
.dev-login-box p { margin: 4px 0 10px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.dev-account-buttons { display: flex; flex-wrap: wrap; gap: 7px; }
.preview-login-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; align-items: end; }
.preview-login-form .field-label { font-size: 12px; }

.button {
  display: inline-flex;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
  letter-spacing: .015em;
  line-height: 1.15;
  text-decoration: none;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.button:hover:not(:disabled) { transform: translateY(-1px) rotate(-.15deg); }

.button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid rgba(235, 130, 168, .3);
  outline-offset: 2px;
}

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

.button-primary {
  border-color: #e56f99;
  background: linear-gradient(180deg, #f29abb, #e978a2);
  box-shadow: 0 4px 0 #cf5c84, 0 8px 15px rgba(219, 99, 143, .16);
  color: #fffdfd;
}

.button-primary:hover:not(:disabled) { border-color: var(--primary-dark); background: linear-gradient(180deg, #ee8db0, #dc6b95); }

.button-secondary { border-color: #e9bbcd; background: #fff4f8; color: var(--primary-dark); }
.button-secondary:hover:not(:disabled) { border-color: #df94b2; background: #ffebf3; }
.button-quiet { border-color: var(--line); background: transparent; color: #775b68; }
.button-quiet:hover:not(:disabled) { border-color: var(--line-strong); background: var(--soft); }
.button-small { min-height: 34px; padding: 7px 10px; border-radius: 10px; font-size: 12px; }
.button-wide { width: 100%; min-height: 47px; margin-top: 4px; }

.account-chip {
  display: inline-flex;
  max-width: 145px;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border: 1px solid #f1cad9;
  border-radius: 12px;
  background: #fff0f6;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 900;
}

.account-name { max-width: 78px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-dot { padding: 2px 5px; border-radius: 6px; background: #f9d58b; color: #74531a; font-size: 10px; }

.tab-nav {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  margin: 25px 0 19px;
  padding: 5px;
  border: 1px solid #f4dce6;
  border-radius: 15px;
  background: rgba(252, 232, 240, .64);
  scrollbar-width: none;
}

.tab-nav::-webkit-scrollbar { display: none; }

.tab-button {
  position: relative;
  flex: 1 0 auto;
  min-height: 37px;
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  box-shadow: none;
}

.tab-button:hover:not(:disabled) { color: var(--ink); transform: none; }
.tab-active { border-color: #edc5d4; background: #fffdfd; box-shadow: 0 2px 7px rgba(198, 92, 131, .09); color: var(--primary-dark); }

.section-title { margin: 6px 2px 16px; }
.section-title h1 { margin: 0; color: #633d50; font-size: 25px; font-weight: 900; letter-spacing: .035em; line-height: 1.34; }

.auction-date-list { display: grid; gap: 11px; }
.auction-date-card {
  display: grid;
  gap: 5px;
  width: 100%;
  min-height: 104px;
  padding: 17px 19px;
  border: 1px solid #edbfd0;
  border-radius: 17px 17px 17px 7px;
  background: linear-gradient(120deg, #fffdfd, #fff0f5);
  box-shadow: 0 6px 17px rgba(199, 88, 129, .07);
  color: var(--ink-strong);
  text-align: left;
}
.auction-date-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.auction-date-pending { background: linear-gradient(120deg, #fffdfd, #fff7fa); border-color: #e8d6dd; }
.auction-date-card strong { font-size: 20px; line-height: 1.35; }
.auction-date-label { color: var(--primary-dark); font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.auction-date-count { color: var(--muted); font-size: 12px; }
.date-back { margin-bottom: 14px; }

.session-heading, .order-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.session-heading h2 { font-size: 19px; line-height: 1.42; }

.pill {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: 10px 10px 10px 4px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

.pill-open, .status-confirmed { border-color: #bee3d1; background: var(--green-soft); color: #397e66; }
.pill-closed, .status-cancelled { border-color: #e3d8dc; background: #f7f2f4; color: #7c6d73; }
.status-pending { border-color: #f3dc9b; background: var(--yellow-soft); color: #917018; }
.status-contact { border-color: #efc0c7; background: var(--red-soft); color: #ad5965; }

.lot-filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px;
  gap: 8px;
  margin-top: 17px;
}

.lot-search-input, .lot-filter-select { min-height: 42px; padding-top: 9px; padding-bottom: 9px; font-size: 13px; }

.lot-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.lot-row {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-height: 122px;
  min-width: 0;
  padding: 15px;
  border: 1px solid #efd2dd;
  border-radius: 24px 24px 24px 9px;
  background: linear-gradient(145deg, #fffdfd, #fff1f6);
  box-shadow: 0 4px 11px rgba(195, 100, 140, .06);
  cursor: pointer;
  transition: background .14s ease, color .14s ease, transform .14s ease;
}

.lot-row:nth-child(3n + 2) { background: linear-gradient(145deg, #fffdfd, #fff8ef); }
.lot-row:hover:not(.lot-locked) { border-color: var(--primary); transform: translateY(-2px); }
.lot-row[hidden] { display: none; }
.lot-row:focus-within { outline: 2px solid rgba(222, 108, 154, .62); outline-offset: 2px; }

.lot-row input {
  position: absolute;
  top: 13px;
  right: 13px;
  width: 19px;
  height: 19px;
  margin: 0;
  accent-color: var(--primary);
}

.lot-row:has(input:checked) {
  border-color: #a9426a;
  background: #a9426a;
  box-shadow: 0 8px 19px rgba(133, 43, 82, .27);
  color: #fff;
}
.lot-row:nth-child(3n + 2):has(input:checked) { background: #a9426a; }
.lot-row:has(input:checked) .lot-price { color: #fff; }
.lot-row:has(input:checked) input { accent-color: #fff; }
.lot-unavailable { color: #95848d; }
.lot-locked { cursor: not-allowed; background: #faf6f8; }
.lot-locked input { cursor: not-allowed; }
.lot-locked .lot-price { color: #8a7881; }
.lot-name { min-width: 0; padding-right: 20px; line-height: 1.48; font-weight: 800; overflow-wrap: anywhere; }
.lot-price { margin-top: auto; color: #664653; font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lot-state { color: #ae7e91; font-size: 11px; font-weight: 800; }
.lot-filter-result { margin: 9px 1px 0; color: #a27d8c; font-size: 12px; font-weight: 700; }
.lot-filter-empty { grid-column: 1 / -1; margin: 0; padding: 19px 5px 5px; color: #9c7c89; font-size: 13px; line-height: 1.55; text-align: center; }

.preview-product-count { margin: 14px 0 4px; color: var(--primary-dark); font-size: 13px; font-weight: 800; }
.preview-product-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 13px 0 0; padding: 0; list-style: none; }
.preview-product-row { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 13px; width: 100%; min-width: 0; min-height: 112px; padding: 15px; border: 1px solid #efd2dd; border-radius: 24px 24px 24px 9px; background: linear-gradient(145deg, #fffdfd, #fff1f6); box-shadow: 0 4px 11px rgba(195, 100, 140, .06); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.preview-product-list li:nth-child(3n + 2) .preview-product-row { background: linear-gradient(145deg, #fffdfd, #fff8ef); }
.preview-product-row:hover, .preview-product-row:focus-visible { border-color: #d46f99; box-shadow: 0 6px 16px rgba(195, 100, 140, .16); outline: none; }
.preview-product-row.preview-product-active,
.preview-product-list li:nth-child(3n + 2) .preview-product-row.preview-product-active {
  border-color: #a9426a;
  background: #a9426a;
  box-shadow: 0 8px 19px rgba(133, 43, 82, .27);
  color: #fff;
}
.preview-product-active .preview-product-status { background: #fff; color: #9b355e; }
.preview-product-active:hover, .preview-product-active:focus-visible { background: #97355c; outline: 3px solid #f1adc7; outline-offset: 2px; }
.preview-product-row:active { transform: scale(.98); }
.pending-selection-summary { display: grid; gap: 11px; margin: 17px 0; padding: 16px; border: 1px solid #eeb5ca; border-radius: 18px; background: #fff5f9; }
.pending-selection-summary h3 { margin: 0; color: #853d5e; font-size: 17px; }
.pending-selection-items { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pending-selection-items li { padding: 5px 9px; border-radius: 9px; background: #fff; color: #784257; font-size: 13px; font-weight: 700; }
.pending-selection-amounts { display: flex; flex-wrap: wrap; gap: 7px 14px; color: #8b5670; font-size: 13px; }
.pending-selection-amounts strong { color: #793a58; }
.pending-selection-summary .button { justify-self: start; }
.preview-product-name { min-width: 0; line-height: 1.45; font-weight: 800; overflow-wrap: anywhere; }
.preview-product-status { padding: 4px 7px; border-radius: 9px; background: #fff1f6; color: var(--primary-dark); font-size: 11px; font-weight: 800; }
.preview-product-detail { display: grid; gap: 10px; margin-top: 18px; padding: 19px; border: 2px solid #e9b9ce; border-radius: 23px; background: #fff7fa; scroll-margin-top: 84px; }
.preview-product-detail h3 { margin: 0; color: var(--ink-strong); font-size: 21px; }
.preview-product-detail p { margin: 0; }
.preview-product-detail .button { width: 100%; }
.preview-test-note { margin: 20px 0 10px; font-size: 13px; line-height: 1.55; }
.preview-test-action { width: 100%; }

.selection-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 13px;
  border: 1px solid #f0c4d3;
  border-radius: 14px;
  background: linear-gradient(110deg, #fff0f6, #fff8fb);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 900;
}

.selection-summary .button { flex: 0 0 auto; }

.checkout-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #ecc0d0;
  border-top: 4px solid #ec88ac;
  background: linear-gradient(135deg, #fffdfd, #fff7fa);
}

.checkout-card::before {
  position: absolute;
  top: 6px;
  right: 18px;
  color: #f2a2bd;
  content: "♡";
  font-family: Arial, sans-serif;
  font-size: 28px;
  font-weight: 700;
}

.checkout-card h2 { color: #783e57; font-size: 23px; }

.checkout-items, .order-items { margin: 16px 0 0; padding: 0; list-style: none; }

.checkout-items li, .order-items li {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 10px 0;
  border-bottom: 1px dashed #ecd4de;
  font-size: 14px;
  line-height: 1.45;
}

.checkout-items strong, .order-items strong { flex: 0 0 auto; font-variant-numeric: tabular-nums; }

.totals {
  margin: 16px 0 19px;
  padding: 11px 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.totals div { display: flex; justify-content: space-between; gap: 20px; padding: 4px 0; }
.totals dt { color: var(--muted); font-size: 14px; }
.totals dd { margin: 0; font-weight: 900; font-variant-numeric: tabular-nums; }
.totals div:last-child { margin-top: 4px; color: var(--primary-dark); font-size: 20px; }

.field-label { display: grid; gap: 7px; color: var(--ink-strong); font-size: 14px; font-weight: 900; }

.text-input, .select-input, .import-textarea, .textarea-input {
  width: 100%;
  border: 1px solid #e9cbd7;
  border-radius: 12px;
  background: #fffefe;
  color: var(--ink);
  padding: 11px 12px;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.text-input:hover, .select-input:hover, .import-textarea:hover, .textarea-input:hover { border-color: #ddb0c1; }
.text-input:focus, .select-input:focus, .import-textarea:focus, .textarea-input:focus { border-color: #e783a8; }
.text-input::placeholder, .import-textarea::placeholder, .textarea-input::placeholder { color: #b4a0a9; }

.confirm-label {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin: 16px 0 10px;
  color: #765967;
  font-size: 13px;
  line-height: 1.6;
}

.confirm-label input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; accent-color: var(--primary); }

.info-note {
  margin: 0 0 14px;
  padding: 10px 11px;
  border-left: 3px solid #f1c05f;
  border-radius: 0 9px 9px 0;
  background: #fff9e9;
  color: #8e7751;
  font-size: 12px;
  line-height: 1.55;
}

.inline-form { display: flex; gap: 9px; align-items: center; margin-top: 14px; }
.inline-form .text-input { flex: 1; }
.session-create-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 12px; align-items: end; margin-top: 14px; }
.session-create-form .button { grid-column: 1 / -1; justify-self: start; }
.session-date-form { display: flex; align-items: end; gap: 9px; margin-top: 14px; }
.session-date-form .field-label { flex: 1; font-size: 12px; }

.empty-state {
  margin: 14px 0;
  padding: 30px 18px;
  border: 1px dashed #dfbccb;
  border-radius: 18px;
  background: rgba(255, 253, 253, .5);
  color: var(--muted);
  text-align: center;
}

.empty-state h2 { margin: 0 0 7px; color: var(--ink-strong); font-size: 19px; }
.empty-state p { margin: 0; font-size: 14px; line-height: 1.6; }
.empty-inline { padding: 12px 0 3px; }

.order-card { padding: 18px 19px; }
.order-heading h3 { font-size: 17px; line-height: 1.42; }
.customer-detail { margin: 12px 0 -1px; color: #775c69; font-size: 13px; line-height: 1.55; }
.order-total { margin: 13px 0 0; color: var(--primary-dark); font-size: 15px; font-weight: 900; font-variant-numeric: tabular-nums; }
.order-updated { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.order-progress { margin: 13px 0 0; padding: 10px 11px; border-left: 3px solid #efb656; border-radius: 0 9px 9px 0; background: #fff9e9; color: #856f55; font-size: 12px; line-height: 1.6; }
.order-shipping-note { margin: 16px 0 0; padding: 15px 16px; border: 1px solid #efb2cb; border-radius: 14px; background: #fff0f6; color: #823b5d; font-size: clamp(18px, 3vw, 23px); font-weight: 900; line-height: 1.55; }

.subheading { margin: 30px 2px 10px; color: #6d4458; font-size: 21px; font-weight: 900; letter-spacing: .035em; }
.create-session-card { border-top: 4px solid #b398ac; }

.import-details { margin-top: 15px; border-top: 1px solid var(--line); }
.import-details summary { padding: 14px 0 5px; color: var(--primary-dark); cursor: pointer; font-size: 14px; font-weight: 900; }
.import-details[open] summary { margin-bottom: 4px; }
.import-textarea { display: block; min-height: 108px; margin: 10px 0; resize: vertical; line-height: 1.5; }
.draft-section { margin-top: 16px; padding: 16px; border: 1px solid #e9c9d6; border-radius: 15px; background: #fff8fb; }
.draft-section h4 { margin: 0 0 5px; color: var(--ink-strong); font-size: 16px; }
.draft-section > .muted { margin: 0 0 12px; }
.draft-list { display: grid; gap: 7px; max-height: 420px; overflow: auto; }
.draft-row { display: grid; grid-template-columns: minmax(0, 1fr) 120px; align-items: center; gap: 9px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: white; font-size: 13px; }
.draft-row span { overflow-wrap: anywhere; }
.draft-row .text-input { min-width: 0; padding: 8px; }
.draft-section > .button { margin: 12px 8px 0 0; }

.status-control {
  display: flex;
  align-items: end;
  gap: 9px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.status-control label { flex: 1; display: grid; gap: 5px; color: var(--muted); font-size: 12px; }
.status-control .select-input { padding: 8px 9px; }

.admin-notes { margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line); }
.admin-notes h4 { margin: 0; color: #674a58; font-size: 13px; letter-spacing: .01em; }
.admin-note-list { display: grid; gap: 8px; margin: 10px 0; padding: 0; list-style: none; }
.admin-note { padding: 10px 11px; border-left: 3px solid #a7d8c2; border-radius: 0 10px 10px 0; background: #f1faf5; }
.admin-note p { margin: 0; color: #56434b; font-size: 13px; line-height: 1.5; white-space: pre-wrap; }
.admin-note small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }

.note-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 11px; align-items: end; }
.textarea-input { display: block; min-height: 72px; resize: vertical; line-height: 1.45; }

.admin-tools { padding: 18px; border-top: 4px solid #b398ac; background: linear-gradient(135deg, #fffafd, #fffdfd); }
.admin-tools h2 { font-size: 18px; }
.filter-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.filter-label { display: grid; gap: 5px; color: var(--muted); font-size: 12px; font-weight: 900; }
.filter-label .select-input { padding: 9px 10px; }
.admin-stats { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.admin-stats span { padding: 6px 8px; border: 1px solid #ebcddd; border-radius: 8px; background: #fff2f7; color: #805066; font-size: 12px; font-weight: 900; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.admin-actions .button { flex: 1 1 190px; }
.admin-backup-actions { margin-top: 12px; }
.admin-backup-actions .button { width: auto; min-height: 40px; font-size: .9rem; }
.warning-text { color: var(--red); font-size: 13px; line-height: 1.55; }
.myship-import-warning { margin: 12px 0; padding: 12px 14px; border: 1px solid #eebd8d; border-radius: 14px; background: #fff5e9; color: #814d23; font-weight: 700; line-height: 1.6; }

.site-footer { padding: 19px; color: #9b7f8c; font-size: 12px; line-height: 1.55; text-align: center; }

.toast-region {
  position: fixed;
  z-index: 30;
  right: 16px;
  bottom: 18px;
  left: 16px;
  display: grid;
  gap: 8px;
  pointer-events: none;
}

.toast {
  width: min(430px, 100%);
  justify-self: center;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .36);
  border-radius: 14px;
  background: #735467;
  box-shadow: 0 15px 32px rgba(123, 67, 91, .22);
  color: #fffdfd;
  font-size: 14px;
  line-height: 1.45;
}

.toast-success { background: #56967f; }
.toast-error { background: #be6571; }
.mobile-checkout { display: none; }

@media (max-width: 639px) {
  .content { padding-bottom: 124px; }

  .mobile-checkout {
    position: fixed;
    z-index: 20;
    right: 12px;
    bottom: calc(11px + env(safe-area-inset-bottom));
    left: 12px;
    display: block;
  }

  .mobile-checkout-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 9px 8px 13px;
    border: 1px solid #ecc3d3;
    border-radius: 16px;
    background: rgba(255, 253, 253, .97);
    box-shadow: 0 13px 32px rgba(174, 90, 128, .18);
    backdrop-filter: blur(12px);
  }

  .mobile-checkout-copy { display: grid; min-width: 0; gap: 2px; }
  .mobile-checkout-copy strong { color: var(--ink-strong); font-size: 13px; }
  .mobile-checkout-copy small { color: var(--primary-dark); font-size: 11px; font-weight: 900; font-variant-numeric: tabular-nums; }
  .mobile-checkout-bar .button { flex: 0 0 auto; }
  .toast-region { bottom: calc(93px + env(safe-area-inset-bottom)); }
}

@media (max-width: 470px) {
  .site-header { padding-right: 13px; padding-left: 13px; }
  .content { padding-right: 13px; padding-left: 13px; }
  .brand small { display: none; }
  .hero { margin-top: 0; padding: 22px 18px 18px; border-radius: 20px 20px 20px 8px; }
  .hero h1 { font-size: 27px; }
  .hero-facts { gap: 5px; margin-top: 18px; }
  .hero-fact { padding: 8px 7px; }
  .hero-fact strong { font-size: 12px; }
  .hero-fact span { font-size: 9px; }
  .card { padding: 17px; border-radius: 16px; }
  .lot-filter-bar { grid-template-columns: minmax(0, 1fr) 110px; }
  .inline-form { align-items: stretch; flex-direction: column; }
  .inline-form .button { width: 100%; }
  .session-create-form { grid-template-columns: 1fr; }
  .session-create-form .button { width: 100%; }
  .session-date-form { align-items: stretch; flex-direction: column; }
  .session-date-form .button { width: 100%; }
  .draft-row { grid-template-columns: 1fr 95px; }
  .draft-section > .button { width: 100%; }
  .preview-login-form { grid-template-columns: 1fr; }
  .preview-login-form .button { width: 100%; }
  .selection-summary { align-items: stretch; flex-direction: column; }
  .selection-summary .button { width: 100%; }
  .status-control { align-items: stretch; flex-direction: column; }
  .status-control .button { width: 100%; }
  .filter-grid { grid-template-columns: 1fr; }
  .note-form { grid-template-columns: 1fr; }
  .note-form .button { width: 100%; }
  .admin-actions { flex-direction: column; }
  .admin-actions .button { width: 100%; }
}

@media (min-width: 640px) {
  .toast-region { left: auto; width: 430px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
