/* Storefront 2 — ice-white surfaces, mist-blue outlines; no mascots or remote assets. */
:root {
  color-scheme: light;
  --bg: #f5f7fc;
  --surface: #fcfdff;
  --text: #425466;
  --muted: #6c7f91;
  --faint: #8295a8;
  --line: #dce6ef;
  --blue: #567da4;
  --blue-dark: #3f668c;
  --blue-soft: #e8f0fa;
  --radius: 24px;
  --shadow: 0 6px 25px #6686a508;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.65;
}
* { box-sizing: border-box; }
html { min-width: 320px; scrollbar-gutter: stable; }
body { margin: 0; color: var(--text); background: var(--bg); min-height: 100vh; -webkit-font-smoothing: antialiased; }
body[data-portal="0"] { padding-bottom: calc(116px + env(safe-area-inset-bottom, 0px)); }
body:has(dialog[open]) { overflow: hidden; }
[hidden], .hidden { display: none !important; }
::selection { color: #365d82; background: #dae9f8; }
a { color: var(--blue-dark); text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, .button {
  display: inline-flex; justify-content: center; align-items: center; gap: 9px;
  min-height: 48px; padding: 12px 21px; border: 1px solid #cdddec; border-radius: 17px;
  color: #466b8f; background: #e7f0fa; box-shadow: inset 0 1px 0 #ffffffb0;
  font-size: 14px; line-height: 1.45; font-weight: 650; text-align: center; cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
  -webkit-tap-highlight-color: transparent;
}
button:disabled { opacity: .5; cursor: not-allowed; }
button.secondary, .button.secondary { color: #62788e; background: #fcfdff; border-color: var(--line); }
button.danger-button { color: #965167; background: #faf0f4; border-color: #e9d3dc; }
button.small, .button.small { min-height: 38px; padding: 8px 13px; border-radius: 13px; font-size: 12px; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #8dabcd; outline-offset: 3px; }
button:active:not(:disabled), .button:active { transform: scale(.98); }
.icon { display: block; width: 23px; height: 23px; flex-shrink: 0; }
.icon-button { width: 44px; height: 44px; min-height: 44px; padding: 10px; border: 1px solid #dde7f0; border-radius: 15px; background: #fbfdff; color: #7993ad; box-shadow: none; flex-shrink: 0; }
.icon-button.compact { width: 32px; height: 32px; min-height: 32px; padding: 7px; border-radius: 10px; }
.icon-button.compact .icon { width: 17px; height: 17px; }
.text-button { padding: 6px 0; min-height: 38px; color: #587a9b; background: transparent; border: 0; box-shadow: none; }
.text-button .icon { width: 20px; height: 20px; }
.text-link, .back-link { display: inline-flex; gap: 7px; align-items: center; color: #5c7d9c; font-size: 13px; }
.full-width { width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 12px; color: #42566b; font-size: clamp(28px, 3vw, 36px); font-weight: 720; line-height: 1.35; letter-spacing: -.7px; }
h2 { margin: 0; font-size: 19px; line-height: 1.4; font-weight: 650; }
h3 { margin-bottom: 12px; font-size: 16px; font-weight: 650; }
p { margin-bottom: 12px; }
.muted { color: var(--muted); font-size: 14px; }
.tiny-muted { color: var(--muted); font-size: 12px; }
.eyebrow { margin-bottom: 12px; color: #7c94ac; font-size: 10px; letter-spacing: 2.5px; font-weight: 550; }
code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; overflow-wrap: anywhere; }
label { display: flex; flex-direction: column; gap: 8px; color: #5c7186; font-size: 13px; }
input, textarea, select { min-width: 0; width: 100%; min-height: 47px; padding: 12px 14px; border: 1px solid #d9e4ee; border-radius: 15px; color: var(--text); background: #fcfdff; outline: none; transition: border-color .18s, box-shadow .18s; }
input:focus, textarea:focus, select:focus { border-color: #a3bfd8; box-shadow: 0 0 0 3px #dfeaf680; }
input::placeholder, textarea::placeholder { color: #7f92a5; opacity: 1; }
textarea { resize: vertical; }
select { cursor: pointer; }
input[type=checkbox] { width: 18px; height: 18px; min-height: 0; margin: 0; accent-color: #789cc0; flex-shrink: 0; }
input:-webkit-autofill { -webkit-text-fill-color: var(--text); -webkit-box-shadow: 0 0 0 100px #eef5fc inset; }
.check { flex-direction: row; align-items: center; gap: 9px; }
.appbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; width: min(1120px, calc(100% - 64px)); min-height: 96px; margin: 0 auto; border-bottom: 1px solid #e5ebf3; }
.brand { display: flex; align-items: center; gap: 13px; color: #4b6075; font-size: 21px; font-weight: 700; letter-spacing: .5px; }
.brand-mark { display: grid; place-items: center; width: 43px; height: 43px; color: #7f9fc0; background: #e7f0fa; border: 1px solid #d8e6f4; border-radius: 15px; }
.brand-mark .icon { width: 24px; height: 24px; }
.appbar-right { display: flex; align-items: center; gap: 20px; }
.header-label { color: #7e91a4; font-size: 12px; letter-spacing: .5px; }
.app-shell { width: min(1120px, calc(100% - 64px)); margin: 0 auto; padding-top: 32px; }
.view-page { min-width: 0; outline: 0; }
.store-intro { padding: 10px 0 26px; }
.store-intro h1 { margin-bottom: 10px; }
.store-intro .muted { margin-bottom: 0; }
.catalog-tools { display: flex; gap: 12px; align-items: center; margin-bottom: 19px; }
.search-field { display: flex; flex-direction: row; gap: 12px; align-items: center; min-width: 0; min-height: 55px; border: 1px solid #dbe6f0; border-radius: 18px; background: #fafcff; color: #8299b0; }
.search-field > .icon { margin-left: 17px; width: 21px; height: 21px; }
.search-field input { border: 0; min-height: 53px; padding: 12px 14px 12px 0; box-shadow: none; background: transparent; font-size: 14px; }
.search-field:focus-within { border-color: #a8c3dd; box-shadow: 0 0 0 3px #dfeaf64d; }
.catalog-tools .search-field { flex: 1; }
.sort-control { display: flex; flex-direction: row; gap: 7px; align-items: center; height: 55px; padding-left: 14px; border: 1px solid #dbe6f0; border-radius: 18px; background: #fafcff; color: #7b93ab; }
.sort-control .icon { width: 18px; height: 18px; }
.sort-control select { width: 134px; border: 0; background: transparent; box-shadow: none; padding: 12px 10px 12px 0; font-size: 12px; }
.announcement-strip { display: flex; width: 100%; min-height: 48px; gap: 11px; margin-bottom: 30px; padding: 12px 16px; border: 1px solid #e0eaf4; border-radius: 16px; color: #657f99; background: #edf3fa; box-shadow: none; text-align: left; font-weight: 400; }
.announcement-strip > .icon { width: 18px; height: 18px; color: #809fbd; }
.announcement-strip > span { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.section-heading h2 { display: flex; align-items: center; gap: 10px; }
.catalog-heading { margin-bottom: 19px; }
.count { padding: 2px 7px; border-radius: 7px; color: #7c96af; background: #eaf1f9; font-size: 11px; font-weight: 500; }
.count:empty { display: none; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 19px; }
.product-card { display: block; min-width: 0; padding: 7px; overflow: hidden; border: 1px solid #dee7f1; border-radius: 22px; background: #fcfdff; box-shadow: 0 3px 12px #718ca007; text-align: left; }
.product-art, .detail-product-art, .order-thumb { position: relative; display: grid; place-items: center; overflow: hidden; background: #eaf1f9; border: 1px solid #e0e9f3; border-radius: 16px; }
.product-art { aspect-ratio: 1 / .9; }
.product-art img, .detail-product-art img, .order-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.art-placeholder { display: flex; flex-direction: column; align-items: center; gap: 12px; color: #8da9c4; }
.art-placeholder .icon { width: 39px; height: 39px; stroke-width: 1.2; }
.art-placeholder > span { font-size: 10px; letter-spacing: 3px; }
.product-body { padding: 16px 8px 11px; }
.product-body h3 { margin: 0 0 6px; color: #4c6177; font-size: 15px; line-height: 1.55; font-weight: 620; overflow-wrap: anywhere; }
.product-meta { margin-bottom: 14px; color: #7a8fa4; font-size: 11px; font-weight: 400; }
.product-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { color: #5a7f9f; font-size: 23px; font-weight: 650; letter-spacing: -.4px; font-variant-numeric: tabular-nums; }
.product-open { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid #d7e4f1; border-radius: 10px; color: #83a1bd; background: #f2f7fd; }
.product-open .icon { width: 17px; height: 17px; }
.page-footnote { margin: 25px 0 15px; color: #75899e; font-size: 12px; line-height: 1.9; text-align: center; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 8px 0 28px; }
.page-heading h1 { margin-bottom: 9px; font-size: 30px; }
.page-heading .muted { margin: 0; }
.page-backbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 25px; color: #7e93a7; font-size: 12px; }
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 38px; align-items: start; }
.detail-product-art { aspect-ratio: 1 / 1; border-radius: 26px; }
.detail-product-art .art-placeholder .icon { width: 65px; height: 65px; }
.product-detail-copy { padding: 16px 0; }
.product-detail-copy h1 { margin-bottom: 19px; font-size: 27px; overflow-wrap: anywhere; }
.detail-price { margin-bottom: 24px; color: #577e9e; font-size: 34px; font-weight: 650; }
.service-facts { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 28px; color: #6e879f; font-size: 12px; }
.service-facts span { display: inline-flex; align-items: center; gap: 6px; }
.service-facts .icon { width: 17px; height: 17px; }
.purchase-note { padding: 21px; margin-bottom: 23px; border: 1px solid #dee7f1; border-radius: 20px; background: #fafcff; }
.purchase-note h3 { font-size: 14px; }
.purchase-note p { color: #6c8094; font-size: 12px; line-height: 1.9; }
.purchase-note p:last-child { margin-bottom: 0; }
.purchase-actions { margin-bottom: 12px; }
.purchase-actions button { min-height: 54px; }
#orders-page, #detail-page { max-width: 850px; margin: 0 auto; }
#settings-page { max-width: 720px; margin: 0 auto; }
.filter-tabs { display: flex; gap: 8px; margin: 0 0 19px; padding-bottom: 4px; overflow-x: auto; scrollbar-width: none; }
.filter-tabs::-webkit-scrollbar { display: none; }
.filter-tab { flex-shrink: 0; min-height: 38px; padding: 8px 15px; color: #778b9e; background: transparent; border: 1px solid transparent; border-radius: 13px; box-shadow: none; font-size: 12px; font-weight: 500; }
.filter-tab.active { color: #567c9f; background: #e8f0f9; border-color: #d6e4f2; font-weight: 650; }
.order-search { margin-bottom: 22px; }
.orders-list { display: flex; flex-direction: column; gap: 14px; }
.order-card { display: flex; width: 100%; min-width: 0; align-items: center; gap: 18px; padding: 18px; border: 1px solid #dee7f0; border-radius: 22px; background: #fcfdff; box-shadow: var(--shadow); text-align: left; font-weight: 400; }
.order-thumb { width: 94px; height: 94px; border-radius: 16px; flex-shrink: 0; }
.order-thumb .art-placeholder .icon { width: 28px; height: 28px; }
.order-thumb .art-placeholder > span { display: none; }
.order-card-info { min-width: 0; flex: 1; }
.order-line { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.order-line h3 { margin: 0; font-size: 15px; font-weight: 620; overflow-wrap: anywhere; }
.order-date { margin: 9px 0 12px; color: #7a8fa2; font-size: 11px; }
.order-price { color: #5b7996; font-size: 18px; font-weight: 600; }
.order-link { display: inline-flex; gap: 4px; align-items: center; color: #7d96ac; font-size: 11px; }
.order-link .icon { width: 15px; height: 15px; }
.status { flex-shrink: 0; padding: 4px 9px; border-radius: 8px; color: #64829f; background: #eaf2fa; font-size: 10px; font-weight: 550; white-space: nowrap; }
.status.pending { color: #856838; background: #f6f0e2; }
.status.available { color: #4f7c91; background: #eaf4f8; }
.status.active { color: #5277a0; background: #e7f0fc; }
.status.review { color: #7a7197; background: #f0eef7; }
.status.completed { color: #4c7d6e; background: #eaf4ef; }
.status.cancelled { color: #8e6377; background: #f5edf1; }
.order-status-banner { display: flex; align-items: center; gap: 18px; padding: 26px; margin-bottom: 18px; border: 1px solid #d9e5f2; border-radius: 24px; background: #eaf2fb; }
.status-icon { display: grid; place-items: center; width: 53px; height: 53px; border-radius: 18px; border: 1px solid #d6e3f1; color: #7b9cba; background: #f6faff; flex-shrink: 0; }
.status-icon .icon { width: 27px; height: 27px; }
.order-status-banner h1 { margin: 0 0 5px; color: #547595; font-size: 22px; }
.order-status-banner p { margin: 0; color: #6e88a0; font-size: 12px; }
.order-status-banner.cancelled { background: #f3f1f6; }
.order-status-banner.completed { background: #edf5f3; }
.panel { min-width: 0; padding: 25px; border: 1px solid #dde7f0; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.order-product-summary { display: flex; align-items: center; gap: 18px; padding-bottom: 23px; border-bottom: 1px solid #e8eef5; }
.order-product-summary h2 { margin-bottom: 10px; font-size: 17px; overflow-wrap: anywhere; }
.order-product-summary .order-thumb { width: 75px; height: 75px; }
.order-info { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 16px; margin: 25px 0; font-size: 12px; }
.order-info dt { color: #7c90a3; }
.order-info dd { min-width: 0; margin: 0; color: #5b7288; overflow-wrap: anywhere; }
.order-id-value { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.order-actionbar { display: flex; flex-wrap: wrap; gap: 11px; }
.order-actionbar:empty { display: none; }
.history { margin-top: 24px; padding-top: 19px; border-top: 1px solid #e3ebf3; }
summary { color: #71889f; font-size: 12px; cursor: pointer; }
.history-item { padding-top: 15px; border-bottom: 1px solid #edf1f6; }
.history-item small { font-size: 10px; }
.history-item p { margin: 5px 0 12px; font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat { margin-top: 18px; }
.chat h2 .icon { width: 21px; height: 21px; color: #7c9ab8; }
.chat-messages { display: flex; flex-direction: column; gap: 14px; max-height: 400px; min-height: 100px; padding: 15px; border: 1px solid #e3ebf3; border-radius: 18px; background: #f5f8fc; overflow: auto; scrollbar-width: thin; scrollbar-color: #c6d7e8 transparent; }
.chat-empty { margin: 12px 0; color: #7a91a5; font-size: 12px; text-align: center; }
.message { align-self: flex-start; max-width: 90%; padding: 12px 15px; border: 1px solid #dce7f2; border-radius: 17px 17px 17px 5px; background: #fff; }
.message.mine { align-self: flex-end; border-color: #d3e3f3; border-radius: 17px 17px 5px 17px; background: #e8f1fb; }
.message small { color: #728aa2; font-size: 10px; }
.message p { margin: 5px 0 0; color: #4e6a83; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-form { display: flex; align-items: stretch; gap: 11px; margin-top: 14px; }
.chat-form textarea { font-size: 13px; }
.chat-form button { flex-shrink: 0; padding: 10px 16px; font-size: 12px; }
.chat-form .icon { width: 18px; height: 18px; }
.chat > .tiny-muted { margin: 12px 0 0; }
.identity-card { display: flex; align-items: center; gap: 17px; padding: 23px; margin-bottom: 28px; border: 1px solid #dde7f1; border-radius: 25px; background: #fafcff; }
.identity-icon { display: grid; place-items: center; width: 57px; height: 57px; border: 1px solid #d7e4f1; border-radius: 19px; color: #8ba3bb; background: #edf3fb; }
.identity-icon .icon { width: 28px; height: 28px; }
.identity-card h2 { margin-bottom: 6px; color: #546c82; font-size: 18px; }
.identity-card p { margin: 0; color: #7b8fa3; font-size: 12px; }
.local-tag { margin-left: auto; color: #8297ad; font-size: 10px; }
.settings-group { margin-bottom: 27px; }
.settings-group-title { margin: 0 0 11px 7px; color: #8195a8; font-size: 12px; font-weight: 500; }
.settings-row { display: flex; align-items: center; gap: 16px; width: 100%; min-height: 85px; padding: 17px 21px; margin-bottom: 10px; border: 1px solid #e0e8f1; border-radius: 21px; color: #586e83; background: #fcfdff; box-shadow: none; text-align: left; font-weight: 400; }
.settings-row > span:not(.row-icon):not(.sync-dot) { flex: 1; min-width: 0; }
.settings-row strong { display: block; color: #526b82; font-size: 14px; font-weight: 570; }
.settings-row small { display: block; margin-top: 4px; color: #7c91a4; font-size: 11px; }
.settings-row > .icon { width: 18px; height: 18px; margin-left: auto; color: #92a7ba; }
.row-icon { display: grid; place-items: center; width: 36px; height: 36px; color: #8aa3bb; flex-shrink: 0; }
.row-icon .icon { width: 24px; height: 24px; }
.static-row { cursor: default; }
.sync-dot { width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: #83b2a5; box-shadow: 0 0 0 4px #83b2a513; }
.sync-dot.offline { background: #bb9c75; box-shadow: 0 0 0 4px #bb9c7513; }
.bottom-nav {
  --nav-index: 0;
  position: fixed; z-index: 50; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; width: min(470px, calc(100% - 32px)); min-height: 76px; padding: 7px;
  border: 1px solid #d8e4f0; border-radius: 25px; background: #fcfdfff2; box-shadow: 0 8px 28px #7896b115;
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
.nav-indicator { position: absolute; left: 7px; top: 7px; bottom: 7px; width: calc((100% - 14px) / 3); border: 1px solid #dae7f4; border-radius: 19px; background: #eaf2fc; transform: translateX(calc(var(--nav-index) * 100%)); transition: transform .26s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.nav-item { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; gap: 5px; min-width: 0; min-height: 60px; padding: 4px; border: 0; border-radius: 19px; color: #8a9caf; background: transparent; box-shadow: none; font-size: 11px; font-weight: 500; }
.nav-item .icon { width: 23px; height: 23px; transition: color .18s ease, transform .18s ease; }
.nav-item.active { color: #648bb1; font-weight: 650; }
.nav-item.active .icon { transform: translateY(-1px); }
.nav-badge { position: absolute; top: 4px; left: calc(50% + 12px); min-width: 15px; height: 15px; padding: 0 4px; border: 1px solid #fff; border-radius: 8px; color: #607f9b; background: #dbe9f8; font-size: 9px; line-height: 13px; }
.empty-state { grid-column: 1 / -1; width: 100%; padding: 55px 20px; text-align: center; border: 1px dashed #dbe6f1; border-radius: 24px; background: #f9fbfe; }
.empty-symbol { display: inline-grid; place-items: center; width: 66px; height: 66px; margin-bottom: 19px; border: 1px solid #e0e9f3; border-radius: 22px; color: #9db4ca; background: #edf3fa; }
.empty-symbol .icon { width: 31px; height: 31px; stroke-width: 1.2; }
.empty-state h3 { color: #687e94; font-size: 16px; font-weight: 550; }
.empty-state p { max-width: 400px; margin: 0 auto 20px; font-size: 12px; }
.empty-state button { min-height: 42px; padding: 10px 20px; font-size: 12px; }
.skeleton { border: 1px solid #e2eaf3; border-radius: 23px; background: #ebf1f8; }
.product-skeleton { min-height: 270px; }
.toast { position: fixed; z-index: 200; top: calc(18px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%); width: max-content; max-width: min(580px, calc(100% - 28px)); padding: 14px 19px; border: 1px solid #cddfed; border-radius: 17px; color: #4f7290; background: #f4f9ff; box-shadow: 0 9px 40px #516e8a1c; font-size: 12px; overflow-wrap: anywhere; }
.toast.danger { color: #915c6c; background: #fff6f8; border-color: #ead5de; }
.toast .text-link { display: block; margin-top: 8px; }
.sheet-dialog { width: min(490px, calc(100% - 32px)); max-height: min(84dvh, 800px); margin: auto; padding: 28px; overflow: auto; border: 1px solid #dce6ef; border-radius: 28px; color: var(--text); background: #f7f9fe; box-shadow: 0 25px 100px #465d7933; }
.sheet-dialog::backdrop { background: #34465d45; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.sheet-dialog[open] { animation: dialog-in .2s cubic-bezier(.2,.7,.2,1); }
.dialog-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.dialog-top h2 { font-size: 21px; }
.dialog-top .eyebrow { font-size: 9px; margin-bottom: 8px; }
.dialog-top .icon-button { background: #f0f5fb; }
.dialog-description { white-space: pre-wrap; font-size: 14px; line-height: 1.9; color: #6a8197; }
.dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 25px; }
.info-content p { margin-bottom: 17px; color: #688097; font-size: 13px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }
.staff-options { margin: 23px 0; }
.staff-options .settings-row { min-height: 82px; padding: 15px 16px; }
.notice { padding: 18px; margin-bottom: 20px; border: 1px solid #d9e4ee; border-radius: 17px; color: #627f98; background: #edf4fc; font-size: 13px; white-space: pre-wrap; }
.notice.danger { background: #fff2f6; color: #95586f; border-color: #ead1dc; }
.login-panel { max-width: 450px; margin: 22px auto 65px; padding: 32px; }
.login-symbol { display: grid; place-items: center; width: 60px; height: 60px; margin: 28px 0 23px; border: 1px solid #dce8f3; border-radius: 20px; color: #89a7c4; background: #eaf2fb; }
.login-symbol .icon { width: 31px; height: 31px; }
.login-panel h1 { font-size: 28px; }
.login-panel > .muted { font-size: 12px; margin-bottom: 28px; }
.mismatch { max-width: 650px; margin: 30px auto; }
.mismatch h2 { margin-bottom: 15px; }
.staff-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.pill { padding: 6px 12px; border: 1px solid #d9e5f1; border-radius: 30px; color: #6b87a2; background: #edf4fc; font-size: 11px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin: 22px 0; }
.stat { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 20px; border: 1px solid #dce7f1; border-radius: 20px; background: #fafcff; }
.stat strong { color: #6c90b0; font-size: 28px; font-weight: 550; }
.stat .muted { font-size: 12px; }
.staff-section { margin: 30px 0; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.stack h3 { margin-bottom: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 15px; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; }
.compact-list { display: flex; flex-direction: column; gap: 13px; margin-top: 14px; }
.compact-item { display: flex; justify-content: space-between; align-items: center; gap: 13px; padding-bottom: 13px; border-bottom: 1px solid #e2ebf3; font-size: 12px; overflow-wrap: anywhere; }
.compact-item > span { min-width: 0; }
.compact-item button { min-height: 34px; padding: 6px 10px; font-size: 11px; border-radius: 11px; }
.compact-item .button-row { flex-shrink: 0; gap: 6px; }
.narrow { max-width: 440px; margin-top: 20px; }
.setup-shell { max-width: 660px; margin: 60px auto; padding: 0 24px; }
.setup-shell h1 { font-size: 28px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@media (hover: hover) {
  button:hover:not(:disabled), .button:hover { border-color: #b8cfe4; background: #e1ecf8; }
  .product-card:hover, .order-card:hover { background: #fff; border-color: #bcd3e8; box-shadow: 0 6px 25px #718ba414; transform: translateY(-2px); }
  .settings-row:hover { background: #f1f6fd; border-color: #ccdfee; }
  button.danger-button:hover { background: #f6e5ed; }
  .nav-item:hover { border-color: transparent; background: transparent; color: #6388aa; }
  .text-button:hover { background: transparent; color: #3f6587; }
}
@media (min-width: 1350px) { .product-grid { gap: 22px; } }
@media (max-width: 1000px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-detail-grid { gap: 27px; }
  .product-detail-copy { padding-top: 3px; }
  .appbar { width: calc(100% - 44px); }
  .app-shell { width: calc(100% - 44px); }
}
@media (max-width: 720px) {
  .appbar { min-height: 82px; width: calc(100% - 38px); }
  .brand { font-size: 19px; gap: 11px; }
  .brand-mark { width: 39px; height: 39px; border-radius: 14px; }
  .header-label { display: none; }
  .app-shell { width: calc(100% - 38px); padding-top: 24px; }
  .store-intro { padding: 7px 0 23px; }
  .store-intro h1 { font-size: 29px; }
  .store-intro .muted { font-size: 13px; }
  .eyebrow { font-size: 9px; letter-spacing: 2px; }
  .catalog-tools { gap: 9px; }
  .search-field { min-height: 51px; border-radius: 16px; gap: 9px; }
  .search-field input { min-height: 49px; font-size: 13px; }
  .search-field > .icon { margin-left: 14px; width: 19px; height: 19px; }
  .sort-control { height: 51px; border-radius: 16px; padding-left: 10px; gap: 5px; }
  .sort-control .icon { width: 16px; height: 16px; }
  .sort-control select { width: 100px; min-height: 48px; font-size: 10px; padding-right: 4px; }
  .announcement-strip { margin-bottom: 26px; }
  .section-heading h2 { font-size: 18px; }
  .section-heading .tiny-muted { font-size: 10px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
  .product-card { padding: 6px; border-radius: 20px; }
  .product-art { border-radius: 14px; aspect-ratio: 1 / .95; }
  .product-body { padding: 14px 7px 9px; }
  .product-body h3 { font-size: 14px; }
  .product-meta { font-size: 10px; margin-bottom: 13px; }
  .price { font-size: 22px; }
  .product-open { width: 27px; height: 27px; border-radius: 9px; }
  .product-detail-grid { grid-template-columns: 1fr; gap: 22px; }
  .detail-product-art { aspect-ratio: 1 / .75; border-radius: 24px; }
  .product-detail-copy { padding: 0 2px; }
  .product-detail-copy h1 { font-size: 26px; }
  .detail-price { font-size: 31px; margin-bottom: 21px; }
  .purchase-note { padding: 20px; }
  .page-heading { padding: 7px 0 24px; }
  .page-heading h1 { font-size: 29px; }
  .page-heading .muted { font-size: 13px; }
  .page-backbar { margin-bottom: 20px; }
  .filter-tabs { gap: 4px; margin-right: -19px; padding-right: 19px; }
  .filter-tab { font-size: 11px; padding: 8px 12px; }
  .order-card { padding: 14px; gap: 13px; border-radius: 21px; }
  .order-thumb { width: 74px; height: 80px; border-radius: 14px; }
  .order-line { gap: 8px; }
  .order-line h3 { font-size: 13px; }
  .order-date { margin: 8px 0 10px; font-size: 10px; }
  .order-price { font-size: 17px; }
  .order-link { font-size: 10px; }
  .status { font-size: 9px; padding: 3px 6px; border-radius: 7px; }
  .order-status-banner { padding: 22px 18px; gap: 14px; border-radius: 22px; }
  .order-status-banner h1 { font-size: 21px; }
  .order-status-banner p { font-size: 11px; }
  .status-icon { width: 47px; height: 47px; border-radius: 16px; }
  .panel { padding: 21px 18px; border-radius: 22px; }
  .order-product-summary { gap: 14px; }
  .order-product-summary h2 { font-size: 16px; }
  .order-info { grid-template-columns: 68px minmax(0, 1fr); gap: 14px; font-size: 11px; }
  .order-info code { font-size: 10px; }
  .order-actionbar { gap: 9px; }
  .order-actionbar button, .order-actionbar .button { min-height: 44px; padding: 10px 15px; font-size: 12px; flex: 1; }
  .chat-messages { padding: 12px; max-height: 370px; }
  .chat-form { gap: 9px; }
  .chat-form button { padding: 9px 13px; }
  .chat-form button .icon { display: none; }
  .identity-card { padding: 21px 18px; gap: 14px; margin-bottom: 27px; }
  .identity-icon { width: 51px; height: 51px; border-radius: 18px; }
  .identity-card h2 { font-size: 17px; }
  .identity-card p { font-size: 11px; }
  .settings-row { gap: 11px; min-height: 83px; padding: 16px 14px; border-radius: 20px; }
  .settings-row strong { font-size: 14px; }
  .settings-row small { font-size: 10px; }
  .row-icon { width: 32px; }
  .local-tag { font-size: 9px; }
  .page-footnote { font-size: 11px; }
  .admin-grid { grid-template-columns: 1fr; }
  .stats { gap: 9px; }
  .stat { display: block; padding: 16px; }
  .stat strong { display: block; margin-top: 7px; font-size: 26px; }
  .stat .muted { font-size: 10px; }
  .compact-item { flex-wrap: wrap; }
  .login-panel { margin: 12px auto 50px; padding: 28px 23px; }
  .setup-shell { margin: 35px auto; padding: 0 19px; }
}
@media (max-width: 520px) {
  .sheet-dialog { width: 100%; max-height: 87dvh; margin: auto 0 0; padding: 26px 24px calc(24px + env(safe-area-inset-bottom, 0px)); border-radius: 29px 29px 0 0; border-bottom: 0; }
  .dialog-top h2 { font-size: 20px; }
  .sheet-dialog .settings-row { min-height: 84px; }
  .bottom-nav { bottom: calc(12px + env(safe-area-inset-bottom, 0px)); width: calc(100% - 30px); min-height: 73px; border-radius: 24px; }
  .nav-item { min-height: 57px; font-size: 10px; }
}
@media (max-width: 360px) {
  .app-shell, .appbar { width: calc(100% - 28px); }
  .store-intro h1 { font-size: 26px; }
  .sort-control > .icon { display: none; }
  .sort-control { padding-left: 7px; }
  .sort-control select { width: 89px; }
  .order-card { gap: 10px; padding: 11px; }
  .order-thumb { width: 58px; height: 68px; }
  .order-line h3 { font-size: 12px; }
  .order-line { flex-wrap: wrap; }
  .local-tag { display: none; }
  .two-col { grid-template-columns: 1fr; }
  .product-body { padding-left: 4px; padding-right: 4px; }
  .price { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .bottom-nav, .product-card, .panel, .settings-row, .order-card, button, .button { border: 1px solid CanvasText; }
  .nav-item.active, .filter-tab.active { outline: 2px solid Highlight; }
}
