.sh {
  --bg:#f5f7f8; --panel:#fff; --line:#e2e8e7; --text:#172422; --muted:#62716e;
  --secondary:#52625f; --accent:#006d65; --soft:#e3f3ef; --pressed:#005a53;
  --pending:#80501a; --pending-bg:#faf0de;
  --font-number:Bahnschrift,"DIN Alternate","Helvetica Neue",sans-serif;
  color-scheme:light; color:var(--text); min-width:0; font-family:"PingFang SC","Microsoft YaHei","Noto Sans CJK SC",sans-serif; line-height:1.7;
}
.sh *, .sh *::before, .sh *::after { box-sizing:border-box; }
.sh button, .sh input, .sh select, .sh textarea { font:inherit; }
.sh :where(button) { cursor:pointer; color:inherit; }
.sh button:disabled { cursor:not-allowed; opacity:.55; }
.sh button:focus-visible, .sh input:focus-visible, .sh select:focus-visible, .sh textarea:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.sh h1, .sh h2, .sh p { margin:0; }
.sh h1 { font-size:1.5rem; line-height:1.35; }
.sh h2 { font-size:1.25rem; line-height:1.35; }
.sh .btn, .sh-link, .sh-back, .sh-hero-cta { display:inline-flex; align-items:center; justify-content:center; gap:.4rem; font-weight:600; text-decoration:none; }
.sh .btn.primary { color:#fff; background:var(--accent); border-color:var(--accent); }
.sh .btn.primary:active { background:var(--pressed); }
.sh .btn.secondary { background:var(--panel); color:var(--accent); border-color:var(--line); }
.sh .btn { min-height:44px; border-radius:8px; }
.sh-link, .sh-back { padding:3px 0; background:none; border:0; color:var(--muted); font-size:.87rem; }
.sh-link:hover, .sh-back:hover { color:var(--accent); }
.sh-back { margin-bottom:20px; }
.sh-section-title, .sh-page-head { display:flex; align-items:center; justify-content:space-between; gap:14px; }
.sh-section-title { margin-bottom:16px; }
.sh-section-title h1, .sh-section-title h2 { min-width:0; overflow-wrap:anywhere; }
.sh-section-title button { flex-shrink:0; }
.sh-page-title, .sh-page-head { margin:0 0 24px; }
.sh-page-head .sh-page-title { margin:0; }
.sh-page-title p, .sh-prose, .sh-description p { color:var(--muted); line-height:1.7; margin-top:8px; overflow-wrap:anywhere; white-space:pre-line; }
.sh[data-page="home"] { background:var(--panel); min-height:100%; }
.sh-storefront { padding:0 16px; }
.sh-brand-intro,.sh-hero { width:100%; overflow:hidden; color:var(--text); }
.sh-brand-intro { display:flex; align-items:center; gap:16px; padding:24px 16px; background:var(--bg); border-radius:12px; }
.sh-brand-intro img { display:block; width:86px; aspect-ratio:1.6; object-fit:contain; border-radius:8px; }
.sh-brand-intro h1 { font-size:1.5rem; }
.sh-brand-intro p { color:var(--muted); margin:4px 0 0; }
.sh-slides { display:grid; touch-action:pan-y pinch-zoom; }
.sh-slide { grid-area:1/1; min-width:0; }
.sh-slide[aria-hidden="true"] { visibility:hidden; }
.sh-hero-art { display:block; width:100%; aspect-ratio:2 / 1; height:auto; max-height:240px; object-fit:contain; background:var(--bg); border-radius:8px; }
.sh-hero-link { display:block; width:100%; border:0; padding:0; background:transparent; border-radius:8px; }
.sh-hero-copy { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:12px 0 0; }
.sh-hero-copy h1,.sh-hero-copy p { overflow-wrap:anywhere; }
.sh-hero-copy h1 { font-size:1.125rem; }
.sh-hero-copy p { color:var(--secondary); font-size:.875rem; }
.sh-hero-cta { flex:none; padding:6px 12px; border:0; border-radius:8px; background:var(--accent); color:white!important; font-size:.875rem!important; }
.sh-hero-footer,.sh-dots { display:flex; justify-content:center; align-items:center; }
.sh-dot { display:grid; place-items:center; width:30px; height:22px; border:0; background:transparent; padding:0; }
.sh-dot::after { content:""; width:12px; height:3px; border-radius:3px; background:#d5dfdd; }
.sh-dot.selected::after { width:23px; background:var(--accent); }
.sh-shortcuts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); padding:4px 0 16px; }
.sh-shortcut { display:flex; align-items:center; justify-content:center; gap:6px; min-width:0; min-height:44px; padding:0; border:0; background:transparent; white-space:nowrap; }
.sh-shortcut + .sh-shortcut { border-left:1px solid var(--line); }
.sh-shortcut strong { font-size:.875rem; font-weight:550; }
.sh-shortcut:hover,.sh-product:hover { background:#f2f7f6; }
.sh-quick-icon,.sh-row-icon { display:grid; place-items:center; width:32px; height:32px; flex-shrink:0; border-radius:8px; background:var(--soft); color:var(--accent); }
.sh-shortcut:nth-child(2) .sh-quick-icon { color:#855b2d; background:#f7efdf; }
.sh-shortcut:nth-child(3) .sh-quick-icon { color:#465f88; background:#eaf0f8; }
.sh-custom-entry { display:flex; align-items:center; gap:10px; width:100%; min-height:44px; margin-bottom:12px; padding:8px 12px; border:1px solid #c8dfd9; border-radius:8px; background:var(--soft); color:var(--accent); text-align:left; }
.sh-custom-entry span { min-width:0; display:flex; align-items:baseline; gap:8px; flex-wrap:wrap; }
.sh-custom-entry strong { font-size:.9375rem; }
.sh-custom-entry small { color:var(--secondary); font-size:.75rem; }
.sh-custom-entry > svg:last-child { margin-left:auto; }
.sh-row-text,.sh-bill-value { min-width:0; display:flex; flex-direction:column; gap:4px; }
.sh-row-text strong { font-size:1rem; color:var(--text); font-weight:600; }
.sh-row-text small,.sh-bill-value small,.sh-payment small { color:var(--muted); font-size:.75rem; }
.sh-featured { border-top:6px solid var(--bg); padding:12px 16px 16px; }
.sh-featured .sh-section-title { margin:0; }
.sh-featured .sh-section-title h2 { font-weight:600; }
.sh-featured .sh-section-title .sh-link { min-height:40px; font-size:.75rem; color:var(--secondary); }
.sh-tabs.sh-home-filters { padding:4px 0 8px; margin:0; }
.sh-grid { background:var(--panel); }
.sh-service-row { display:flex; align-items:center; gap:4px; border-bottom:1px solid var(--line); }
.sh-service-row:last-child { border-bottom:0; }
.sh-product { flex:1 1 0; min-width:0; display:flex; align-items:center; gap:12px; padding:12px 0; text-align:left; background:transparent; border:0; }
.sh-product-art { width:clamp(88px,29%,120px); height:auto; object-fit:cover; display:block; flex:none; border-radius:5px; }
.sh-card-body { min-width:0; display:grid; gap:2px; }
.sh-category,.sh-summary { color:var(--muted); font-size:.75rem; }
.sh-card-body > strong { color:var(--text); font-size:1rem; font-weight:600; line-height:1.5; }
.sh-price { color:var(--accent); font-size:.75rem; white-space:nowrap; }
.sh-price b { font:600 1.25rem/1.1 var(--font-number); font-variant-numeric:tabular-nums; }
.sh-price span { color:var(--muted); }
.sh-quick-order { position:relative; isolation:isolate; min-width:44px; min-height:44px; padding:0; border:0; background:transparent; color:var(--pressed)!important; font-size:.75rem!important; }
.sh-quick-order::before { content:""; position:absolute; z-index:-1; inset:8px 0; border:1px solid #b6d6d0; border-radius:6px; }
.sh[data-page="products"] .sh-grid { border-radius:12px; padding:0 12px; }
.sh-filters { display:flex; gap:14px; align-items:center; justify-content:space-between; flex-wrap:wrap; margin-bottom:20px; }
.sh-search { display:flex; align-items:center; gap:9px; background:var(--panel); border:1px solid var(--line); padding:0 12px; border-radius:8px; color:var(--muted); min-width:180px; max-width:100%; }
.sh-search input { min-width:0; width:100%; color:var(--text); border:0; outline:0!important; background:transparent; padding:10px 0; }
.sh-search:focus-within { border-color:var(--accent); }
.sh-tabs, .sh-presets, .sh-actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.sh-tabs button, .sh-presets button { padding:7px 13px; min-height:35px; font-size:.88rem; color:var(--muted); background:var(--panel); border:1px solid var(--line); border-radius:8px; }
.sh-tabs button.active,.sh-presets button:hover { color:var(--accent); border-color:var(--accent); background:var(--soft); }
.sh-gap { margin-bottom:16px; }
.sh-box,.sh-thread { background:var(--panel); border:1px solid var(--line); border-radius:12px; }
.sh-box + .sh-box, .sh-box + section { margin-top:16px; }
.sh-empty { border:1px dashed var(--line); border-radius:12px; text-align:center; padding:48px 20px; color:var(--muted); }
.sh-empty > svg { color:var(--muted); }
.sh-empty p { margin:13px 0; }
.sh-detail { display:grid; gap:12px; margin-bottom:20px; }
.sh-detail-art { width:100%; height:auto; max-height:240px; object-fit:contain; border-radius:8px; }
.sh-detail-photo { display:block; width:100%; height:auto; margin-top:12px; border-radius:8px; }
.sh-detail-copy { padding:16px; background:var(--panel); border:1px solid var(--line); border-radius:12px; }
.sh-price.big { margin-top:8px; }
.sh-price.big b { font-size:2rem; }
.sh-description { padding:0; }
.sh-description .sh-section-title { margin-bottom:9px; }
.sh-fields { display:grid; gap:18px; }
.sh-fields .sh-section-title { margin-bottom:0; }
.sh-fields > .btn { justify-self:start; }
.sh-checkout { max-width:780px; }
.sh-form:not(.sh-checkout) { max-width:700px; }
.sh-order-item { display:flex; gap:15px; align-items:center; }
.sh-order-item img { width:90px; aspect-ratio:1.48; border-radius:8px; object-fit:cover; }
.sh-order-item strong,.sh-order-item small { display:block; }
.sh-order-item small { margin-top:4px; color:var(--muted); }
.sh-data-row,.sh-payment,.sh-wallet { display:flex; align-items:center; justify-content:space-between; gap:14px; }
.sh-data-row > :first-child { flex-shrink:0; color:var(--muted); font-size:.92rem; }
.sh-data-row > strong { font-size:.96rem; text-align:right; font-weight:550; overflow-wrap:anywhere; white-space:pre-line; }
.sh-stepper { display:inline-flex; align-items:center; border:1px solid var(--line); background:var(--bg); border-radius:8px; }
.sh-stepper button,.sh-stepper input { background:transparent; border:0; padding:0; color:var(--text); }
.sh-stepper button { width:34px; height:34px; display:grid; place-items:center; }
.sh-stepper input { width:44px; min-width:0; text-align:center; appearance:textfield; }
.sh-stepper input::-webkit-inner-spin-button,.sh-stepper input::-webkit-outer-spin-button { -webkit-appearance:none; margin:0; }
.sh-field { display:block; font-size:.93rem; font-weight:550; }
.sh-optional { color:var(--muted); font-size:.82rem; margin-left:3px; font-weight:400; }
.sh-field input,.sh-field textarea,.sh-field select,.sh-composer input { width:100%; margin-top:8px; padding:10px 12px; border:1px solid var(--line); border-radius:8px; background:var(--bg); color:var(--text); font-weight:400; outline-offset:2px; }
.sh-field select { appearance:auto; }
.sh-field textarea { min-height:86px; resize:vertical; }
.sh-choice { display:flex; align-items:center; gap:11px; cursor:pointer; padding:2px 0; }
.sh-choice input { accent-color:var(--accent); width:17px; height:17px; flex:none; margin:0; }
.sh-choice strong,.sh-choice small { display:block; }
.sh-choice strong { font-size:.95rem; }
.sh-choice small { font-size:.84rem; color:var(--muted); margin-top:5px; }
.sh-payment > div { display:grid; gap:4px; }
.sh-payment strong { color:var(--accent); font-size:1.35rem; }
.sh-payment .btn { flex:none; }
.sh-wallet { background:var(--soft); border:1px solid var(--line); border-radius:12px; padding:clamp(20px,3.5vw,36px); margin:0 0 24px; }
.sh-wallet span { color:var(--secondary); font-size:.94rem; }
.sh-wallet strong { display:block; margin:6px 0 0; color:var(--accent); font-size:2.4rem; line-height:1.3; }
.sh-wallet small { font-size:.9rem; font-weight:500; margin-left:8px; }
.sh-row,.sh-bill { display:flex; align-items:center; gap:13px; text-align:left; width:100%; background:transparent; border:0; padding:16px 20px; }
.sh-row + .sh-row,.sh-bill + .sh-bill { border-top:1px solid var(--line); }
.sh-row:hover { background:var(--bg); }
.sh-row-text small { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sh-row-text strong { overflow-wrap:anywhere; }
.sh-row > svg:last-child { flex:none; margin-left:auto; color:var(--muted); }
.sh-bill-value { margin-left:auto; text-align:right; flex:none; }
.sh-bill-value b { font-size:1.1rem; }
.sh-bill-value b.credit { color:var(--accent); }
.sh-pill { font-size:.76rem; font-weight:500; color:var(--pending); background:var(--pending-bg); border:1px solid transparent; border-radius:8px; padding:2px 7px; display:inline-block; vertical-align:middle; white-space:nowrap; }
.sh-pill.done { color:var(--accent); border-color:transparent; background:var(--soft); }
.sh-row-text .sh-pill { margin-left:4px; }
.sh-timeline ol { list-style:none; padding:0; margin:4px 0 0 4px; }
.sh-timeline li { position:relative; padding:0 0 18px 22px; border-left:1px solid var(--line); }
.sh-timeline li:last-child { border-color:transparent; padding-bottom:0; }
.sh-timeline li::before { content:""; position:absolute; left:-4px; top:5px; width:7px; height:7px; border-radius:50%; background:var(--accent); }
.sh-timeline strong,.sh-timeline time { display:block; }
.sh-timeline strong { font-weight:520; overflow-wrap:anywhere; white-space:pre-line; }
.sh-timeline time { font-size:.8rem; color:var(--muted); margin-top:4px; }
.sh-thread { overflow:hidden; max-width:900px; }
.sh-thread-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:16px 19px; border-bottom:1px solid var(--line); }
.sh-thread-head h1 { font-size:1.16rem; }
.sh-thread-head small { color:var(--muted); display:block; margin-top:4px; }
.sh-thread-head .sh-link { flex-shrink:0; }
.sh-thread-body { overflow-y:auto; overscroll-behavior:contain; height:clamp(260px,46dvh,530px); padding:20px; background:var(--bg); }
.sh-chat-empty { margin:25px auto!important; text-align:center; color:var(--muted); font-size:.9rem; }
.sh-msg { margin-bottom:16px; display:flex; flex-direction:column; align-items:flex-start; }
.sh-msg.mine { align-items:flex-end; }
.sh-msg small { font-size:.78rem; color:var(--muted); }
.sh-msg p { margin:4px 0 0; padding:9px 12px; max-width:85%; background:var(--panel); color:var(--text); border-radius:8px; white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.5; }
.sh-msg.mine p { color:var(--accent); background:var(--soft); }
.sh-composer { display:flex; gap:10px; padding:12px 16px; border-top:1px solid var(--line); }
.sh-composer input { margin:0; min-width:0; }
.sh-composer button { flex-shrink:0; }
.sh-filters { margin-bottom:12px; }
.sh-search { width:100%; background:var(--panel); }
.sh-tabs { gap:8px; }
.sh-tabs.sh-category-tabs { position:relative; flex-wrap:nowrap; align-items:center; min-width:0; max-width:100%; overflow-x:auto; overscroll-behavior-x:contain; scrollbar-width:thin; }
.sh-category-tabs button { flex:none; max-width:calc(100% - 12px); white-space:normal; overflow-wrap:anywhere; }
.sh-tabs button,.sh-presets button { min-height:0; border:0; border-radius:6px; padding:4px 12px; color:var(--secondary); background:var(--bg); line-height:1.5; }
.sh-tabs button.active { background:var(--soft); color:var(--pressed); font-weight:600; }
.sh-fields,.sh-payment { padding:16px; }
.sh-fields { gap:12px; }
.sh-box + .sh-section-title,.sh-empty + .sh-box,.sh-form + .sh-section-title { margin-top:20px; }
.sh-page-title,.sh-page-head { margin-bottom:16px; }
.sh-section-title { margin-bottom:10px; }
.sh-tabs.sh-order-filters { flex-wrap:nowrap; overflow-x:auto; padding-bottom:4px; }
.sh-order-filters button { flex:none; }
.sh-text-block small { color:var(--muted); }
.sh-text-block p,.sh-order-item strong { white-space:pre-wrap; overflow-wrap:anywhere; }
.sh-order-item > span { min-width:0; }
.sh-cancel { margin:12px 0; }
.sh-dock { position:fixed; z-index:6; bottom:0; left:50%; transform:translateX(-50%); display:flex; align-items:center; gap:12px; width:min(100%,var(--phone-width,480px)); padding:10px 16px calc(10px + env(safe-area-inset-bottom)); background:var(--panel); border-top:1px solid var(--line); }
.sh-detail-actions .primary,.sh-payment .primary { flex:1; }.sh-detail-actions .secondary { flex:0 1 auto; }
.sh-payment .primary { max-width:65%; }.sh-payment small { line-height:1.3; }
.sh-payment strong,.sh-wallet strong,.sh-bill-value b { font-family:var(--font-number); font-variant-numeric:tabular-nums; }
.sh-note,.sh-pay-hint,.sh-profile small { font-size:.875rem; color:var(--muted); }
.sh-pay-hint { display:block; margin-top:8px; }
.sh[data-page="product"],.sh[data-page="checkout"],.sh[data-page="chats"][data-detail="true"] { padding-bottom:calc(72px + env(safe-area-inset-bottom)); }
.sh-wallet { padding:20px; margin-bottom:20px; }
.sh-row,.sh-bill { padding:12px 14px; }
.sh-profile { display:flex; gap:12px; align-items:center; margin-bottom:16px; }
.sh-profile h1 { font-size:1.25rem; }
.sh-orders { display:grid; gap:12px; }
.sh-order-card { text-align:left; padding:14px 16px; color:var(--text); }
.sh-order-card + .sh-order-card { margin:0; }
.sh-order-meta { display:flex; align-items:center; justify-content:space-between; font-size:.75rem; color:var(--muted); margin-bottom:12px; }
.sh-order-total { display:block; text-align:right; font-size:.875rem; color:var(--secondary); margin-top:8px; }
.sh-order-total b { font:600 1.125rem/1 var(--font-number); color:var(--accent); }
.sh-roster { margin:16px 0 20px; }
.sh-roster .sh-section-title { align-items:baseline; }
.sh-roster small { color:var(--muted); font-size:.8125rem; }
.sh-roster ul { list-style:none; padding:0; margin:0; }
.sh-roster li,.sh-roster-empty { padding:10px 14px; }
.sh-roster li + li { border-top:1px solid var(--line); }
.sh-roster li div { display:flex; justify-content:space-between; align-items:center; gap:8px; }
.sh-roster li strong { min-width:0; overflow-wrap:anywhere; }
.sh-roster li small { display:block; }
.sh-roster-empty { color:var(--muted); }
.sh-attribution .sh-link { color:var(--accent); }
.sh-bill:focus-visible { outline:2px solid var(--accent); outline-offset:-2px; }
.sh-form[data-form="recharge"] .primary { width:100%; }
.sh-fields textarea { min-height:70px; }
.sh-thread-body { padding:16px; height:clamp(235px,calc(100dvh - 280px),680px); }
.sh-composer input { background:var(--bg); }
.sh-thread-head { padding:12px 16px; }
.sh .sh-thread-head h1 { font-size:1.125rem; }
@container (max-width:330px) {
  .sh-shortcut { gap:4px; }.sh-shortcut strong { font-size:.8125rem; }
  .sh-quick-icon { width:26px; height:28px; }.sh-quick-icon svg { width:18px; height:18px; }
  .sh-tabs { gap:5px; }.sh-tabs button { padding:4px 8px; font-size:.8125rem; }
  .sh-product { gap:8px; }.sh-product-art { width:80px; }
  .sh-row,.sh-bill { padding:12px; gap:8px; }
}
