/* Platform identity. Shared control behavior lives in /app/base.css. */
.admin-shell {
  --ink: #30251f;
  --muted: #736358;
  --line: #e3d5c3;
  --white: #fffdf8;
  --paper: #f8f3e9;
  --red: #ad3427;
  --green: #b52b1f;
  --deep: #2b221c;
  --soft: #f8e5d9;
  --amber: #844d13;
  --gold: #fbefd2;
  --peach: #fbe6e0;
  --radius: 12px;
  --serif: "Noto Serif SC","Songti SC","STSong","SimSun",serif;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter","PingFang SC","Microsoft YaHei",sans-serif;
  font-size: 1rem;
}
.admin-shell :focus-visible {
  outline: 3px solid #b36c28;
  outline-offset: 3px;
}
.admin-shell [hidden] { display: none !important; }
.admin-shell input:focus,.admin-shell select:focus {
  border-color: #ae3f2b;
  box-shadow: 0 0 0 3px #b52b1f16;
}
.admin-shell input[type="checkbox"] { accent-color: var(--green); }
.admin-shell .btn {
  border-radius: 7px;
  background: #b52b1f;
  border-color: #b52b1f;
  color: #fffdf5;
}
.admin-shell .btn.alt {
  background: #fffdf8;
  border-color: #d9cbb9;
  color: #663b2b;
}
.admin-shell .btn.link { background: transparent; border-color: transparent; color: #a33023; }
.admin-shell .btn.bad { background: #fae6df; border-color: #e6bbac; color: #922d20; }
.admin-shell .btn:hover { filter: brightness(.95); }
.admin-shell .field input,.admin-shell .field select,.admin-shell .search {
  background: #fffefb;
  border-color: #d9c9b8;
  border-radius: 7px;
  color: var(--ink);
}
.admin-shell .field input::placeholder,.admin-shell .search::placeholder { color: #897970; }
.admin-shell .brand .mark {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border-radius: 9px;
  background: #b52b1f url("/assets/brand.svg?v=hotpot-20261121") center/cover no-repeat;
  color: transparent;
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1;
  border: 1px solid #c54833;
}
.platform { min-height: 100svh; display: grid; grid-template-columns: 229px minmax(0,1fr); }
.platform-body { min-width: 0; }
.platform-side {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 24px 14px 19px;
  color: #fcf0d8;
  background: #28211d;
}
.side-brand {
  position: relative;
  margin: 3px 8px 23px;
  padding: 0 0 25px;
  border-bottom: 1px solid #514236;
}
.side-brand .brand { color: #fff4df; gap: 10px; font-size: 1.28rem; }
.side-brand > span { display: block; margin: -2px 0 0 47px; color: #c1ae96; font-size: .79rem; }
.platform-side nav { display: grid; gap: 27px; }
.side-group { display: grid; gap: 3px; }
.nav-compact { display: none; }
.side-caption {
  margin: 0 12px 9px;
  font-size: .78rem;
  color: #c1ad94;
  font-weight: 650;
}
.platform-side nav button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  padding: 9px 14px;
  border-radius: 7px;
  color: #eddfc9;
  text-align: left;
  font-size: .98rem;
}
.platform-side nav button:hover { background: #3d332b; }
.platform-side nav .current,.platform-side nav .current:hover {
  background: #ad3023;
  color: #fff5e3;
  font-weight: 720;
}
.side-foot {
  margin: auto 8px 0;
  border-top: 1px solid #514236;
  padding-top: 10px;
}
.side-foot a {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-height: 44px;
  color: #e0cfb5;
  padding: 0 10px;
  font-size: .9rem;
}
.platform-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 65px;
  padding: 7px clamp(20px,3.5vw,50px);
  border-bottom: 1px solid var(--line);
  background: #fffaf1;
}
.breadcrumb,.platform-top .right,.account-trigger { display: flex; align-items: center; }
.breadcrumb { gap: 10px; color: var(--muted); font-size: .88rem; }
.breadcrumb i { display: block; width: 1px; height: 13px; background: #b9a487; transform: rotate(18deg); }
.breadcrumb b { color: #4e4038; font-weight: 600; }
.platform-top .right { gap: 15px; }
.platform-top time { color: #756354; font-size: .85rem; font-variant-numeric: tabular-nums; }
.account-trigger {
  gap: 8px;
  min-height: 44px;
  max-width: 19rem;
  border-left: 1px solid var(--line);
  padding: 0 0 0 14px;
  color: var(--ink);
}
.account-trigger span {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: #eed5b8;
  color: #713524;
  font-weight: 750;
}
.account-trigger b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; }
.platform-main { max-width: 1450px; margin: auto; padding: clamp(22px,3vw,43px) clamp(20px,3.5vw,50px) 65px; }
.platform-main > .intro { align-items: center; }
.platform-main .intro h1,.audit-hero h1,.auth-pane h1,.sheet-head h2 {
  font-family: var(--serif);
  font-weight: 750;
  letter-spacing: -.045em;
}
.platform-main .intro h1 { font-size: clamp(1.8rem,3.5vw,2.7rem); }
.platform-main .intro .overline { color: #994631; }
.platform-main .intro .overline:empty { display: none; }
.platform-main .intro p { color: var(--muted); font-size: .98rem; }
.audit-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 157px;
  overflow: hidden;
  isolation: isolate;
  color: #fff6e5;
  background: #38271f;
  border-radius: 12px;
  margin-bottom: 16px;
}
.audit-hero::before {
  position: absolute;
  content: "";
  inset: 0 0 0 30%;
  z-index: -2;
  background-image: url("/assets/grill-skewers.webp?v=hotpot-20261121");
  background-size: cover;
  background-position: 55% 53%;
}
.audit-hero::after {
  position: absolute;
  content: "";
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg,#30231c 0%,#39261e 30%,#422a1fe8 47%,#3b271e38 73%,#291c1420);
}
.audit-hero > div { padding: 25px clamp(20px,3vw,39px); max-width: 69%; }
.audit-hero h1 { font-size: clamp(2.15rem,4vw,3.25rem); line-height: 1.18; margin: 0; }
.audit-hero p { color: #f2dfc3; font-size: .98rem; margin: 12px 0 0; line-height: 1.65; }
.platform-main > .stack { gap: 21px; }
.summary-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
.summary-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 17px clamp(15px,1.8vw,25px);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  text-align: left;
}
.summary-card:hover { border-color: #b6805b; }
.summary-card small { display: block; color: #705e50; font-size: .86rem; font-weight: 650; margin-bottom: 5px; }
.summary-card b { font-size: clamp(1.65rem,3vw,2.5rem); line-height: 1; color: #382b24; letter-spacing: -.045em; }
.summary-card em { font-style: normal; font-size: .85rem; margin-left: 7px; color: #766453; }
.summary-card > .admin-icon { color: #a67e4d; margin-right: 4px; }
.metric-pending { background: #fae9d6; border-color: #e3c4a7; }
.metric-pending b,.metric-pending .admin-icon { color: #a13923; }
.merchant-register,.admin-shell .panel,.admin-shell .list { border: 1px solid var(--line); border-radius: 11px; background: var(--white); }
.merchant-register { overflow: hidden; }
.register-head,.register-tools { display: flex; justify-content: space-between; align-items: center; gap: 13px; }
.register-head { padding: 17px 21px 8px; }
.register-head h2,.platform-main .section-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 750;
  font-size: 1.38rem;
}
.register-tools { padding: 4px 21px 14px; flex-wrap: wrap; }
.register-tools .filterset { gap: 4px; }
.admin-shell .chip {
  min-height: 38px;
  padding: 5px 11px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  font-size: .89rem;
  color: #6d5a4a;
}
.admin-shell .chip:hover { background: #f4eddf; }
.admin-shell .chip.on { background: #f6dfcf; color: #8e3022; font-weight: 700; }
.admin-search { display: flex; align-items: center; position: relative; width: min(245px,100%); }
.admin-search .admin-icon { position: absolute; left: 10px; color: #8c7766; pointer-events: none; }
.admin-search .search { min-height: 38px; padding: 7px 9px 7px 35px; font-size: .9rem; }
.admin-table-wrap { overflow-x: auto; }
.admin-table-wrap table { width: 100%; border-collapse: collapse; text-align: left; }
.admin-table-wrap th,.admin-table-wrap td { padding: 12px 15px; }
.admin-table-wrap th:first-child,.admin-table-wrap td:first-child { padding-left: 21px; }
.admin-table-wrap th:last-child,.admin-table-wrap td:last-child { padding-right: 21px; }
.admin-table-wrap th {
  background: #f5edde;
  border-block: 1px solid #e7dbca;
  color: #665547;
  font-size: .86rem;
  font-weight: 650;
  white-space: nowrap;
}
.admin-table-wrap td { border-bottom: 1px solid #eee5d9; font-size: .94rem; font-variant-numeric: tabular-nums; }
.admin-table-wrap tr:last-child td { border-bottom: none; }
.admin-table-wrap tbody tr:hover { background: #fbf5eb; }
.admin-table-wrap th:last-child,.row-actions { text-align: right; }
.row-actions .btn { white-space: nowrap; }
.merchant-name > div { display: flex; align-items: center; gap: 10px; }
.merchant-name b { display: block; overflow-wrap: anywhere; }
.merchant-name small { display: block; color: var(--muted); margin-top: 2px; font-size: .76rem; }
.merchant-name .ic-shop { width: 31px; height: 31px; background: #f4e8d5; color: #98653d; border-radius: 7px; }
.admin-shell .tag { font-size: .82rem; border-radius: 5px; }
.admin-shell .tag.state-pending { background: #fff0ca; color: #805216; }
.admin-shell .tag.state-active,.admin-shell .tag:not([class*="state-"]):not(.dim):not(.danger):not(.warn) { background: #e3ebda; color: #405b37; }
.admin-shell .tag.state-rejected,.admin-shell .tag.danger { background: #f8e0d9; color: #963a2b; }
.admin-shell .tag.state-disabled,.admin-shell .tag.dim { background: #eee8de; color: #60544b; }
.empty-state,.admin-shell .empty {
  display: grid;
  gap: 11px;
  justify-items: center;
  padding: 40px 18px 48px;
  border-top: 1px dashed #d9c6ae;
  color: var(--muted);
  text-align: center;
}
.empty-state strong { font-size: 1.02rem; color: #584538; }
.empty-state .ic-empty { color: #997542; }
.platform-main .list-row,.platform-main .list-button { min-height: 70px; padding: 15px 21px; }
.platform-main .list-button:hover { background: #fbf3e7; }
.admin-shell .banner { border-color: #ead2a9; background: #fff2d7; color: #76531e; }
.admin-shell dialog { border: 1px solid #d9c8af; border-radius: 13px; background: var(--white); box-shadow: 0 32px 86px #321d1740; }
.admin-shell dialog::backdrop { background: #21171180; }
.admin-shell .sheet-head { padding: 15px 22px; background: var(--white); }
.admin-shell .sheet-head h2 { font-size: 1.55rem; color: #3b2c24; }
.admin-shell .x { color: #6e5140; }
.admin-shell .x:hover { background: #f6eadb; }
.admin-shell .sheet-body { gap: 15px; padding: 18px 22px 24px; }
.merchant-ticket {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  padding: 17px 18px;
  background: #f8eddd;
  border-left: 4px solid #af3524;
  border-bottom: 1px dashed #c8ab8a;
}
.merchant-ticket small { color: #765c43; font-size: .83rem; font-variant-numeric: tabular-nums; }
.merchant-ticket h3 { margin: 4px 0 0; font-family: var(--serif); font-size: 1.35rem; overflow-wrap: anywhere; }
.receipt-fields .kv { padding: 10px 0; }
.admin-shell .kv strong { overflow-wrap: anywhere; }
.feature-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; border: 1px solid var(--line); border-radius: 8px; padding: 10px; }
.feature-choices legend { padding: 0 5px; font-size: .95rem; font-weight: 650; }
.feature-choices .check { min-height: 42px; padding: 7px; border-radius: 5px; }
.feature-choices .check:has(input:checked) { background: #f7e9dc; color: #763b2b; }
.admin-shell #notice { background: #342923; color: #fff5e8; }
.admin-shell .auth-wrap { max-width: none; grid-template-columns: minmax(320px,1.02fr) minmax(400px,.98fr); }
.admin-shell .auth-art {
  overflow: hidden;
  padding: clamp(25px,5vw,72px);
  background-color: #39271d;
  background-image: linear-gradient(5deg,#25180ef2 2%,#36221854 58%,#24180e61),url("/assets/grill-skewers.webp?v=hotpot-20261121");
  background-size: cover;
  background-position: 51% 49%;
}
.admin-shell .auth-art .brand { background: #30241dd9; border: 1px solid #a2896b87; color: #ffeed6; }
.admin-shell .auth-art h2 { font-size: clamp(2.7rem,5.5vw,6rem); font-family: var(--serif); color: #fff0d5; margin: 0; }
.admin-shell .auth-pane { max-width: 570px; margin: auto; padding: clamp(34px,4vw,68px); }
.admin-shell .auth-pane .overline { font-size: .91rem; color: #a33b28; border-left: 3px solid #c95132; padding-left: 10px; letter-spacing: .06em; }
.admin-shell .auth-pane h1 { color: #3c2b20; font-size: clamp(2.2rem,3.6vw,3.4rem); margin: 15px 0; }
.admin-shell .auth-pane .muted { color: #776352; }
.admin-shell .auth-pane .forms { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 22px; gap: 18px; }
.admin-shell .auth-foot a { color: #8d4430; }
.admin-shell .auth-foot a:hover,.side-foot a:hover { text-decoration: underline; text-underline-offset: 4px; }
/* Line icons keep navigation recognizable at both sidebar sizes. */
.admin-icon { display: inline-grid; place-items: center; position: relative; width: 21px; height: 21px; flex: 0 0 auto; }
.admin-icon::before,.admin-icon::after { content: ""; position: absolute; box-sizing: border-box; }
.ic-merchants::before,.ic-logs::before,.ic-empty::before { width: 13px; height: 17px; border: 1.6px solid currentColor; border-radius: 2px; }
.ic-merchants::after,.ic-logs::after,.ic-empty::after { width: 7px; height: 5px; border-block: 1.4px solid currentColor; }
.ic-plans::before { width: 17px; height: 12px; border: 1.6px solid currentColor; border-radius: 3px; }
.ic-plans::after { width: 13px; height: 1.5px; background: currentColor; transform: translateY(-2px); }
.ic-usage::before { width: 3px; height: 7px; background: currentColor; transform: translate(-6px,4px); box-shadow: 5px -3px 0 currentColor,10px -7px 0 currentColor; }
.ic-usage::after { width: 17px; height: 1.4px; background: currentColor; transform: translateY(8px); }
.ic-accounts::before { width: 8px; height: 8px; border: 1.5px solid currentColor; border-radius: 50%; transform: translateY(-4px); }
.ic-accounts::after { width: 16px; height: 8px; border: 1.5px solid currentColor; border-radius: 9px 9px 2px 2px; transform: translateY(5px); }
.ic-shop::before { width: 14px; height: 11px; border: 1.5px solid currentColor; border-radius: 1px; transform: translateY(2px); }
.ic-shop::after { width: 17px; height: 5px; border: 1.5px solid currentColor; border-radius: 3px 3px 1px 1px; transform: translateY(-4px); }
.ic-search::before { width: 11px; height: 11px; border: 1.6px solid currentColor; border-radius: 50%; transform: translate(-2px,-2px); }
.ic-search::after { width: 7px; height: 1.6px; background: currentColor; transform: translate(4px,4px) rotate(45deg); }
@media (max-width: 1100px) {
  .platform { grid-template-columns: 190px minmax(0,1fr); }
  .platform-main { padding: 23px; }
  .platform-top { padding-inline: 23px; }
  .register-tools { align-items: start; }
  .admin-table-wrap td,.admin-table-wrap th { padding: 10px; }
}
@media (max-width: 800px) {
  .platform { display: block; }
  .platform-side {
    position: relative;
    height: auto;
    padding: 11px 14px 8px;
  }
  .side-brand { padding: 0; margin: 0 0 6px; border: 0; display: flex; align-items: center; gap: 10px; }
  .side-brand .brand { font-size: 1.08rem; }
  .side-brand .brand .mark { width: 27px; height: 27px; border-radius: 6px; font-size: 1.05rem; }
  .side-brand > span { margin: 0; font-size: .78rem; }
  .platform-side nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: thin; padding: 1px 1px 3px; }
  .side-group { display: contents; }
  .side-caption,.side-foot { display: none; }
  .platform-side nav button { min-height: 40px; flex: 0 0 auto; padding: 7px 10px; font-size: .88rem; gap: 5px; }
  .platform-side nav .admin-icon { width: 15px; transform: scale(.8); }
  .platform-top { min-height: 49px; padding: 2px 17px; }
  .platform-top time { display: none; }
  .account-trigger { border: none; max-width: 57vw; }
  .account-trigger span { width: 26px; height: 26px; }
  .platform-main { padding: 16px 15px 42px; }
  .audit-hero { min-height: 120px; }
  .audit-hero > div { max-width: 78%; }
  .summary-card > .admin-icon { display: none; }
  .summary-card { padding: 12px 14px; }
  .summary-card small { margin-bottom: 7px; }
  .register-tools { align-items: center; }
}
@media (max-width: 590px) {
  .platform-side nav { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 1px; }
  .platform-side nav button { justify-content: center; padding-inline: 0; font-size: .83rem; white-space: nowrap; }
  .nav-name { display: none; }
  .nav-compact { display: inline; }
  .platform-side nav .admin-icon { display: none; }
  .audit-hero > div { max-width: 87%; padding: 17px; }
  .audit-hero h1 { font-size: 2rem; }
  .audit-hero p { font-size: .86rem; }
  .summary-grid { gap: 6px; }
  .summary-card { padding: 11px; }
  .summary-card small { font-size: .81rem; }
  .summary-card b { font-size: 1.65rem; }
  .summary-card em { margin-left: 4px; font-size: .76rem; }
  .register-head { padding: 12px 13px 6px; }
  .register-tools { padding: 2px 13px 11px; gap: 8px; }
  .register-tools .filterset { order: 2; gap: 1px; }
  .register-tools .chip { min-height: 37px; padding: 5px 7px; font-size: .83rem; }
  .admin-search { width: 100%; }
  .admin-table-wrap { overflow-x: visible; }
  .admin-table-wrap table,.admin-table-wrap tbody { display: block; }
  .admin-table-wrap thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .admin-table-wrap tbody tr {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    column-gap: 9px;
    row-gap: 4px;
    border-top: 1px solid var(--line);
    padding: 12px 13px;
  }
  .admin-table-wrap tbody td,.admin-table-wrap tbody td:first-child,.admin-table-wrap tbody td:last-child {
    border: 0; padding: 0; font-size: .86rem;
  }
  .admin-table-wrap td[data-label] { grid-column: 1; }
  .admin-table-wrap td[data-label]::before { content: attr(data-label); color: var(--muted); margin-right: 8px; }
  .admin-table-wrap .merchant-name { grid-column: 1; grid-row: 1; }
  .merchant-name .ic-shop { display: none; }
  .admin-table-wrap .row-actions { grid-column: 2; grid-row: 1 / span 4; align-self: center; }
  .admin-shell .feature-choices { grid-template-columns: 1fr; }
  .admin-shell dialog { margin: auto auto 0; width: 100%; border-radius: 15px 15px 0 0; }
  .admin-shell .sheet-head { padding: 12px 17px; }
  .admin-shell .sheet-body { padding: 14px 17px max(20px,env(safe-area-inset-bottom)); }
  .admin-shell .auth-wrap { display: block; }
  .admin-shell .auth-art { min-height: 128px; max-height: 145px; padding: 14px 21px; background-position: 55% 52%; }
  .admin-shell .auth-art h2 { font-size: 1.8rem; }
  .admin-shell .auth-pane { padding: 22px 16px; }
  .admin-shell .auth-pane h1 { font-size: 2rem; }
  .admin-shell .auth-pane .forms { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .admin-shell *, .admin-shell *::before, .admin-shell *::after { scroll-behavior: auto; transition: none; }
}

