:root {
  --ink: #17251f;
  --ink-2: #30423a;
  --brand: #24634f;
  --brand-2: #174b3b;
  --brand-soft: #e8f2ed;
  --price: #be412b;
  --price-soft: #f9ebe7;
  --paper: #f4f6f3;
  --surface: #ffffff;
  --surface-2: #f8faf8;
  --line: #dce4de;
  --line-strong: #c8d4cc;
  --muted: #65726a;
  --muted-2: #6b776f;
  --warning: #986019;
  --warning-soft: #fbf0de;
  --danger: #b6403a;
  --danger-soft: #f9e8e6;
  --info: #376d80;
  --info-soft: #e7f0f3;
  --violet: #65538d;
  --violet-soft: #eeebf6;
  --shadow-float: 0 20px 55px rgba(18, 38, 29, .16);
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-display: "Barlow Condensed", "DIN Condensed", var(--font-body);
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }
html, body, #root { width: 100%; min-width: 320px; min-height: 100%; margin: 0; }
body { overflow: hidden; color: var(--ink); background: #e7ebe7; font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button { color: inherit; cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(36, 99, 79, .22); outline-offset: 2px; }
.icon { flex: 0 0 auto; }

.prototype-root { min-height: 100vh; }
.prototype-toolbar { position: fixed; z-index: 1000; inset: 0 0 auto 0; height: 64px; display: flex; align-items: center; gap: 28px; padding: 0 24px; border-bottom: 1px solid rgba(23, 37, 31, .1); background: rgba(249, 251, 249, .92); backdrop-filter: blur(18px); }
.prototype-brand { display: flex; align-items: center; gap: 10px; min-width: 190px; }
.brand-stamp { display: grid; width: 30px; height: 30px; place-items: center; color: white; background: var(--brand); border-radius: 8px 2px 8px 2px; font: 700 21px/1 var(--font-display); }
.prototype-brand b { font-size: 14px; letter-spacing: .01em; }
.surface-switch, .scenario-switch { display: flex; align-items: center; gap: 3px; padding: 3px; background: #e9eeea; border-radius: 8px; }
.surface-switch button, .scenario-switch button { height: 30px; padding: 0 12px; border: 0; border-radius: 6px; color: var(--muted); background: transparent; font-size: 12px; }
.surface-switch button.active, .scenario-switch button.active { color: var(--ink); background: white; box-shadow: 0 1px 4px rgba(20, 38, 29, .1); font-weight: 600; }
.scenario-switch { gap: 0; background: transparent; }
.scenario-switch button { border-radius: 0; border-bottom: 2px solid transparent; }
.scenario-switch button.active { color: var(--brand); border-bottom-color: var(--brand); background: transparent; box-shadow: none; }
.prototype-note { margin-left: auto; color: var(--muted); font: 500 11px var(--font-mono); }
.prototype-content { min-height: 100vh; padding-top: 64px; }
.prototype-toast { position: fixed; z-index: 2000; left: 50%; bottom: 28px; display: flex; align-items: center; gap: 8px; padding: 11px 16px; color: white; background: rgba(23, 37, 31, .94); border-radius: 8px; box-shadow: var(--shadow-float); transform: translateX(-50%); font-size: 13px; animation: toast-in .2s ease-out; }

/* Mobile prototype */
.surface-app .prototype-content { min-height: 100vh; background: radial-gradient(circle at 50% 15%, rgba(255,255,255,.92), transparent 36%), #dfe5e0; }
.mobile-stage { display: grid; grid-template-columns: 390px 180px; align-items: center; justify-content: center; gap: 28px; min-height: calc(100vh - 64px); padding: 22px 30px; }
.mobile-frame { position: relative; width: 390px; height: min(844px, calc(100vh - 96px)); min-height: 680px; overflow: hidden; border: 7px solid #14231c; border-radius: 38px; background: var(--paper); box-shadow: 0 32px 80px rgba(20, 37, 29, .28); }
.mobile-speaker { position: absolute; z-index: 80; top: 7px; left: 50%; width: 78px; height: 22px; background: #14231c; border-radius: 0 0 15px 15px; transform: translateX(-50%); }
.mobile-caption { align-self: end; padding-bottom: 56px; color: var(--muted); }
.mobile-caption span { font: 500 11px var(--font-mono); }
.mobile-caption p { max-width: 160px; margin: 10px 0 0; font-size: 12px; line-height: 1.7; }
.mobile-screen { position: relative; height: 100%; overflow: hidden; background: var(--paper); }
.mobile-status { position: relative; z-index: 10; display: flex; height: 31px; align-items: center; justify-content: space-between; padding: 5px 20px 0; color: var(--ink); font-size: 11px; }
.mobile-status > span { display: flex; align-items: end; gap: 2px; }
.mobile-status i { display: block; width: 3px; background: currentColor; border-radius: 1px; }
.mobile-status i:nth-child(1) { height: 5px; }.mobile-status i:nth-child(2) { height: 8px; }.mobile-status i:nth-child(3) { height: 11px; }
.mobile-scroll { height: calc(100% - 31px); overflow-y: auto; scrollbar-width: none; }
.mobile-scroll::-webkit-scrollbar { display: none; }
.with-bottom-nav { padding-bottom: 78px; }
.app-topbar { display: flex; align-items: center; gap: 16px; padding: 9px 15px 13px; background: rgba(244, 246, 243, .96); }
.wordmark { display: flex; flex-direction: column; width: 48px; font: 700 13px/.82 var(--font-display); letter-spacing: .08em; }
.wordmark b { color: var(--brand); }
.mobile-search { display: flex; flex: 1; height: 38px; align-items: center; justify-content: center; gap: 8px; padding: 0 13px; text-align: center; border: 1px solid var(--line); border-radius: 11px; background: white; color: var(--muted); font-size: 13px; }
.commerce-banner { position: relative; height: 208px; margin: 0 14px 16px; overflow: hidden; border-radius: 18px 4px 18px 4px; color: white; background: #1c4b3b; }
.commerce-banner::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 78% 26%, rgba(204, 224, 213, .32), transparent 32%), linear-gradient(115deg, rgba(255,255,255,.03), transparent 55%); }
.commerce-banner .product-art { position: absolute; right: -27px; bottom: -14px; width: 235px; height: 190px; }
.banner-copy { position: relative; z-index: 2; width: 58%; padding: 25px 0 0 23px; }
.banner-kicker { display: inline-flex; padding: 4px 7px; color: #dceae3; border: 1px solid rgba(255,255,255,.25); border-radius: 4px; font-size: 9px; letter-spacing: .12em; }
.banner-copy h1 { margin: 13px 0 15px; font-size: 24px; line-height: 1.25; letter-spacing: .02em; }
.banner-copy button { display: inline-flex; height: 29px; align-items: center; gap: 3px; padding: 0 9px; border: 0; border-radius: 5px; color: var(--brand-2); background: #f2f6f2; font-size: 11px; font-weight: 600; }
.banner-index { position: absolute; right: 13px; bottom: 11px; font: 500 9px var(--font-mono); opacity: .7; }
.quick-grid { display: block; padding: 2px 14px 17px; }
.quick-grid-row { display: grid; gap: 3px; }
.quick-grid-row + .quick-grid-row { margin-top: 13px; }
.quick-grid button { display: flex; min-width: 0; flex-direction: column; align-items: center; gap: 7px; padding: 0; border: 0; background: transparent; color: var(--ink-2); font-size: 10px; }
.quick-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 13px 3px 13px 3px; color: var(--brand); background: var(--brand-soft); }
.quick-seckill { color: var(--price); background: var(--price-soft); }.quick-group { color: var(--info); background: var(--info-soft); }.quick-coupon { color: var(--warning); background: var(--warning-soft); }.quick-points { color: var(--violet); background: var(--violet-soft); }
.product-section { padding: 14px 14px 24px; background: white; }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.section-heading > div { display: flex; align-items: center; gap: 8px; }
.section-heading h2 { margin: 0; font-size: 17px; letter-spacing: -.01em; }
.section-heading > span { color: var(--muted); font-size: 9px; }
.shelf-mark { display: inline-block; width: 5px; height: 17px; border-radius: 1px; background: var(--brand); }
.category-strip { display: flex; gap: 6px; margin-bottom: 13px; overflow-x: auto; scrollbar-width: none; }
.category-strip button { flex: 0 0 auto; height: 27px; padding: 0 12px; border: 1px solid transparent; border-radius: 6px; color: var(--muted); background: var(--paper); font-size: 10px; }
.category-strip button.active { color: var(--brand); border-color: #bed1c6; background: var(--brand-soft); font-weight: 600; }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.product-card { display: flex; min-width: 0; overflow: hidden; flex-direction: column; padding: 0 0 12px; text-align: left; border: 1px solid #e7ece8; border-radius: 13px 3px 13px 3px; background: white; }
.product-card .product-art { width: 100%; height: 142px; border-radius: 0; }
.product-card-name, .product-card-sub, .product-card-meta { margin-inline: 10px; }
.product-card-name { margin-top: 10px; overflow: hidden; font-size: 12px; font-weight: 700; line-height: 1.4; white-space: nowrap; text-overflow: ellipsis; }
.product-card-sub { margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 9px; white-space: nowrap; text-overflow: ellipsis; }
.product-card-meta { display: flex; align-items: end; justify-content: space-between; margin-top: 10px; }
.product-card-meta b { color: var(--price); font: 700 18px var(--font-display); }.product-card-meta small { color: var(--muted-2); font-size: 8px; }
.mobile-empty { grid-column: 1 / -1; display: flex; min-height: 180px; align-items: center; justify-content: center; flex-direction: column; gap: 7px; color: var(--muted); }
.mobile-empty b { color: var(--ink); font-size: 13px; }.mobile-empty span { font-size: 10px; }
.mobile-bottom-nav { position: absolute; z-index: 40; right: 0; bottom: 0; left: 0; display: grid; height: 66px; grid-template-columns: repeat(4, 1fr); padding: 6px 8px 8px; border-top: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(14px); }
.mobile-bottom-nav button { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 3px; border: 0; background: transparent; color: var(--muted); font-size: 9px; }
.mobile-bottom-nav button.active { color: var(--brand); font-weight: 600; }

/* Product detail and mobile sheets */
.detail-gallery { position: relative; height: 345px; overflow: hidden; margin-top: -31px; background: #e9efeb; }
.detail-gallery > .product-art { width: 100%; height: 100%; border-radius: 0; transform: scale(1.02); transition: transform .25s ease; }
.detail-gallery > .variant-1 { transform: scale(1.1) translateX(-10px); }.detail-gallery > .variant-2 { transform: scale(1.08) translateX(10px); }
.detail-floatbar { position: absolute; z-index: 6; top: 42px; right: 14px; left: 14px; display: flex; justify-content: space-between; }
.detail-floatbar > div { display: flex; gap: 8px; }
.detail-floatbar button { display: grid; width: 34px; height: 34px; place-items: center; border: 0; border-radius: 50%; color: var(--ink); background: rgba(255,255,255,.88); box-shadow: 0 3px 12px rgba(20,40,30,.12); }
.detail-floatbar button.is-favorite { color: var(--price); }
.gallery-dots { position: absolute; right: 0; bottom: 14px; left: 0; display: flex; justify-content: center; gap: 5px; }
.gallery-dots button { width: 5px; height: 5px; padding: 0; border: 0; border-radius: 50%; background: rgba(23,37,31,.3); }.gallery-dots button.active { width: 17px; border-radius: 3px; background: var(--brand); }
.detail-scroll-content { height: calc(100% - 345px + 31px); padding-bottom: 78px; }
.detail-main-info, .review-block, .product-story { padding: 17px 16px; background: white; }
.price-line { display: flex; align-items: center; gap: 8px; }.price-line > b { color: var(--price); font: 700 28px var(--font-display); }.price-line del { color: var(--muted-2); font-size: 10px; }
.detail-main-info h1 { margin: 11px 0 6px; font-size: 18px; line-height: 1.4; }.detail-main-info > p { margin: 0; color: var(--muted); font-size: 11px; }
.detail-metrics { display: flex; justify-content: space-between; margin-top: 14px; padding-top: 12px; border-top: 1px solid #edf0ed; color: var(--muted); font-size: 9px; }
.detail-choice-row { display: grid; width: 100%; min-height: 48px; grid-template-columns: 42px 1fr auto; align-items: center; gap: 7px; padding: 0 16px; text-align: left; border: 0; border-top: 8px solid var(--paper); background: white; font-size: 11px; }
.choice-label { color: var(--muted); }.detail-choice-row b { font-weight: 600; }.static-row { border-bottom: 8px solid var(--paper); }.freight { color: var(--brand); font-size: 9px; }
.review-block { margin-bottom: 8px; }.section-heading.compact { margin-bottom: 10px; }.section-heading.compact h2 { font-size: 14px; }.section-heading.compact .shelf-mark { height: 14px; }
.section-heading.compact button { display: flex; align-items: center; border: 0; color: var(--muted); background: transparent; font-size: 9px; }
.review-item { padding: 13px 0; border-top: 1px solid #edf0ed; }.review-item > div { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 7px; }.review-item b { font-size: 10px; }.review-item span { color: var(--muted); font-size: 8px; }.review-item p { margin: 8px 0 0 35px; font-size: 10px; line-height: 1.65; }
.story-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 12px 3px 12px 3px; }.story-panel .product-art { width: 100%; height: 190px; border-radius: 0; }.story-panel > div { display: flex; flex-direction: column; gap: 5px; padding: 12px; }.story-panel b { font-size: 12px; }.story-panel span { color: var(--muted); font-size: 9px; line-height: 1.5; }
.mobile-action-bar { position: absolute; z-index: 35; right: 0; bottom: 0; left: 0; display: grid; height: 67px; grid-template-columns: 48px 48px 1fr 1fr; align-items: center; gap: 7px; padding: 8px 10px; border-top: 1px solid var(--line); background: rgba(255,255,255,.97); }
.mobile-action-bar button { height: 46px; border: 0; border-radius: 9px; }.action-icon { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 2px; background: transparent; color: var(--muted); font-size: 8px; }.secondary-action { color: var(--brand); background: var(--brand-soft); font-size: 11px; font-weight: 700; }.primary-action { color: white; background: var(--brand); font-size: 11px; font-weight: 700; }
.sheet-mask, .dialog-mask, .drawer-mask { position: absolute; z-index: 100; inset: 0; background: rgba(16, 29, 23, .42); animation: fade-in .15s ease-out; }
.mobile-sheet { position: absolute; right: 0; bottom: 0; left: 0; padding: 10px 16px 18px; border-radius: 18px 18px 0 0; background: white; animation: sheet-in .22s ease-out; }
.sheet-handle { width: 34px; height: 3px; margin: 0 auto 13px; border-radius: 2px; background: #ccd5cf; }
.sku-summary { position: relative; display: grid; grid-template-columns: 88px 1fr; gap: 11px; }.sku-summary .product-art { width: 88px; height: 88px; border-radius: 9px; }.sku-summary > div { display: flex; flex-direction: column; justify-content: center; gap: 5px; }.sku-summary b { color: var(--price); font: 700 21px var(--font-display); }.sku-summary span, .sku-summary small { color: var(--muted); font-size: 9px; }.sku-summary > button { position: absolute; right: 0; top: 0; width: 25px; height: 25px; border: 0; border-radius: 50%; background: var(--paper); color: var(--muted); }
.option-group { margin-top: 16px; }.option-group label, .quantity-row label { display: block; margin-bottom: 8px; font-size: 11px; font-weight: 700; }.option-group > div { display: flex; gap: 7px; }.option-group button { min-width: 65px; height: 31px; padding: 0 11px; border: 1px solid var(--line); border-radius: 6px; background: white; font-size: 10px; }.option-group button.active { color: var(--brand); border-color: var(--brand); background: var(--brand-soft); font-weight: 600; }
.quantity-row { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }.quantity-row label { margin: 0; }
.quantity-control { display: grid; grid-template-columns: 29px 36px 29px; align-items: center; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }.quantity-control button { display: grid; height: 27px; place-items: center; border: 0; background: var(--paper); }.quantity-control b { text-align: center; font: 600 10px var(--font-mono); }
.sheet-confirm { width: 100%; height: 44px; margin-top: 18px; border: 0; border-radius: 8px; color: white; background: var(--brand); font-size: 12px; font-weight: 700; }

/* Confirm and order detail */
.mobile-page-title { display: grid; height: 44px; grid-template-columns: 40px 1fr 40px; align-items: center; padding: 0 8px; border-bottom: 0; background: white; }.mobile-page-title h1 { margin: 0; text-align: center; font-size: 15px; }.mobile-page-title button { display: grid; width: 36px; height: 36px; place-items: center; border: 0; background: transparent; }
.confirm-scroll { height: calc(100% - 31px - 44px); padding: 12px 12px 80px; }.address-panel { display: grid; width: 100%; grid-template-columns: 38px 1fr auto; align-items: center; gap: 9px; padding: 15px 13px; text-align: left; border: 1px solid var(--line); border-radius: 12px 3px 12px 3px; background: white; }.address-icon { display: grid; width: 34px; height: 34px; place-items: center; color: var(--brand); background: var(--brand-soft); border-radius: 9px 2px 9px 2px; }.address-panel b { font-size: 11px; }.address-panel p { margin: 5px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.confirm-shop-card, .confirm-options, .price-summary, .order-goods, .order-timeline, .order-info-list { margin-top: 10px; padding: 13px; border: 1px solid #e6ebe7; border-radius: 12px 3px 12px 3px; background: white; }.shop-line { display: flex; align-items: center; gap: 5px; font-size: 10px; }.shop-line .icon:last-child { margin-left: auto; color: var(--muted); }
.confirm-product { display: grid; grid-template-columns: 86px 1fr; gap: 10px; margin-top: 12px; }.confirm-product .product-art { width: 86px; height: 86px; border-radius: 8px; }.confirm-product > div { display: flex; min-width: 0; flex-direction: column; gap: 5px; }.confirm-product b { font-size: 11px; line-height: 1.45; }.confirm-product span { color: var(--muted); font-size: 9px; }.confirm-product > div > div { display: flex; align-items: end; justify-content: space-between; margin-top: auto; }.confirm-product strong { color: var(--price); font: 700 17px var(--font-display); }
.message-input { display: grid; grid-template-columns: 65px 1fr; align-items: center; margin-top: 12px; padding-top: 11px; border-top: 1px solid #edf0ed; font-size: 9px; }.message-input input { border: 0; outline: 0; text-align: right; font-size: 9px; }
.confirm-options button, .confirm-options > div, .price-summary > div, .order-info-list > div { display: flex; width: 100%; align-items: center; justify-content: space-between; min-height: 34px; padding: 0; border: 0; background: transparent; font-size: 10px; }.confirm-options button > span:last-child { display: flex; align-items: center; }.confirm-options b, .price-summary b, .order-info-list b { font-weight: 600; }.saving { color: var(--price) !important; }
.summary-total { margin-top: 5px; padding-top: 9px !important; border-top: 1px solid #edf0ed !important; }.summary-total strong { color: var(--price); font: 700 18px var(--font-display); }
.confirm-submit-bar { position: absolute; z-index: 30; right: 0; bottom: 0; left: 0; display: flex; height: 65px; align-items: center; justify-content: space-between; padding: 8px 11px; border-top: 1px solid var(--line); background: white; }.confirm-submit-bar > div { display: flex; flex-direction: column; gap: 2px; }.confirm-submit-bar span { color: var(--muted); font-size: 8px; }.confirm-submit-bar b { color: var(--price); font: 700 20px var(--font-display); }.confirm-submit-bar button { width: 132px; height: 44px; border: 0; border-radius: 8px; color: white; background: var(--brand); font-size: 12px; font-weight: 700; }
.dark-title { color: white; border: 0; background: var(--ink); }.dark-title button { color: white; }
.order-detail-scroll { height: calc(100% - 31px - 44px); padding: 0 12px 75px; background: var(--paper); }
.order-state-panel { display: flex; align-items: center; gap: 12px; margin: 0 -12px; padding: 20px 18px 24px; color: white; background: var(--ink); }.state-icon { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid rgba(255,255,255,.22); border-radius: 12px 3px 12px 3px; }.order-state-panel h2 { margin: 0 0 4px; font-size: 17px; }.order-state-panel p { margin: 0; color: rgba(255,255,255,.65); font-size: 9px; }
.logistics-preview { display: grid; width: 100%; grid-template-columns: 1fr auto; align-items: center; margin-top: -10px; padding: 13px; text-align: left; border: 1px solid var(--line); border-radius: 10px; background: white; box-shadow: 0 6px 18px rgba(20,40,30,.08); }.logistics-preview div { display: flex; flex-direction: column; gap: 3px; }.logistics-preview span, .logistics-preview small { color: var(--muted); font-size: 8px; }.logistics-preview b { font-size: 10px; }
.order-address { display: grid; grid-template-columns: 25px 1fr; gap: 8px; padding: 15px 2px; }.order-address > .icon { color: var(--brand); }.order-address b { font-size: 10px; }.order-address p { margin: 5px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.order-goods { margin-top: 0; }.order-timeline .section-heading { margin-bottom: 5px; }.timeline-row { position: relative; display: grid; min-height: 37px; grid-template-columns: 15px 1fr auto; align-items: start; color: var(--muted); font-size: 9px; }.timeline-row::before { content: ""; position: absolute; top: 12px; bottom: -5px; left: 4px; width: 1px; background: var(--line); }.timeline-row:last-child::before { display: none; }.timeline-row i { position: relative; z-index: 1; width: 9px; height: 9px; margin-top: 2px; border: 2px solid #aebbb2; border-radius: 50%; background: white; }.timeline-row.active i { border-color: var(--brand); background: var(--brand); }.timeline-row.active b { color: var(--ink); }
.order-detail-actions { position: absolute; z-index: 30; right: 0; bottom: 0; left: 0; display: flex; justify-content: flex-end; gap: 8px; height: 62px; padding: 9px 11px; border-top: 1px solid var(--line); background: white; }.order-detail-actions button { min-width: 102px; border: 1px solid var(--line-strong); border-radius: 8px; background: white; font-size: 10px; }.order-detail-actions button.primary { color: white; border-color: var(--brand); background: var(--brand); }

/* Admin shell */
.admin-shell { display: grid; height: calc(100vh - 64px); grid-template-columns: 226px 1fr; background: var(--paper); }
.admin-sidebar { display: flex; min-height: 0; flex-direction: column; padding: 18px 14px 14px; color: #dce7e1; background: #18352a; }
.admin-logo { display: flex; align-items: center; gap: 11px; padding: 2px 8px 24px; }.admin-logo .brand-stamp { color: var(--brand-2); background: #e9f1ec; }.admin-logo > div { display: flex; flex-direction: column; gap: 3px; }.admin-logo b { color: white; font-size: 15px; }.admin-logo small { color: #8ea99d; font-size: 10px; }
.sidebar-section-label { padding: 0 12px 9px; color: #789488; font-size: 9px; font-weight: 600; letter-spacing: .12em; }
.admin-sidebar nav { display: flex; flex-direction: column; gap: 4px; }.admin-sidebar nav button { position: relative; display: flex; width: 100%; height: 42px; align-items: center; gap: 11px; padding: 0 12px; text-align: left; border: 0; border-radius: 7px; color: #a9beb5; background: transparent; font-size: 12px; }.admin-sidebar nav button:hover { color: white; background: rgba(255,255,255,.06); }.admin-sidebar nav button.active { color: white; background: rgba(255,255,255,.1); font-weight: 600; }.admin-sidebar nav button.active i { position: absolute; right: 0; width: 3px; height: 20px; border-radius: 2px 0 0 2px; background: #d0a05d; }
.sidebar-shop { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 9px; margin-top: auto; padding: 12px 8px 3px; border-top: 1px solid rgba(255,255,255,.1); }.sidebar-shop > div { display: flex; min-width: 0; flex-direction: column; gap: 2px; }.sidebar-shop b { overflow: hidden; color: white; font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }.sidebar-shop small { color: #829e91; font: 9px var(--font-mono); }
.admin-workspace { min-width: 0; overflow: hidden; }
.admin-topbar { display: flex; height: 56px; align-items: center; justify-content: space-between; padding: 0 24px; border-bottom: 1px solid var(--line); background: white; }.admin-topbar > div { display: flex; align-items: center; gap: 8px; }.admin-topbar span { color: var(--muted); font-size: 11px; }.admin-topbar b { font-size: 12px; }.admin-topbar button { position: relative; display: grid; width: 32px; height: 32px; place-items: center; border: 0; border-radius: 6px; background: transparent; color: var(--muted); }.admin-topbar button:hover { background: var(--paper); }.notification-button i { position: absolute; top: 6px; right: 6px; width: 5px; height: 5px; border: 1px solid white; border-radius: 50%; background: var(--price); }
.admin-page { height: calc(100vh - 120px); padding: 22px 24px 30px; overflow: auto; scrollbar-width: thin; scrollbar-color: #bec9c1 transparent; }
.admin-page-heading { display: flex; min-height: 52px; align-items: start; justify-content: space-between; margin-bottom: 16px; }.admin-page-heading h1 { margin: 0; font-size: 22px; letter-spacing: -.02em; }.admin-page-heading p { margin: 6px 0 0; color: var(--muted); font-size: 11px; }.quiet-button, .primary-heading-button { display: flex; height: 34px; align-items: center; gap: 7px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 6px; background: white; font-size: 11px; }.primary-heading-button { color: white; border-color: var(--brand); background: var(--brand); }
.admin-filter-bar { display: flex; align-items: end; gap: 18px; padding: 15px 16px; border: 1px solid var(--line); border-radius: 8px; background: #fafcfa; }.filter-fields { display: flex; flex: 1; align-items: end; gap: 14px; flex-wrap: wrap; }.filter-fields label, .dialog-field, .edit-form-grid label { display: flex; min-width: 160px; flex-direction: column; gap: 6px; }.filter-fields label > span, .dialog-field > span, .edit-form-grid label > span { color: var(--ink-2); font-size: 10px; font-weight: 600; }.filter-fields input, .filter-fields select, .dialog-field input, .dialog-field select, .dialog-field textarea, .edit-form-grid input, .edit-form-grid select, .edit-form-grid textarea { height: 34px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 6px; outline: 0; background: white; color: var(--ink); font-size: 11px; }.filter-fields input:focus, .filter-fields select:focus, .dialog-field input:focus, .dialog-field select:focus, .dialog-field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(36,99,79,.1); }.filter-actions { display: flex; gap: 8px; }.filter-actions button { display: flex; height: 34px; align-items: center; gap: 6px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 6px; background: white; font-size: 11px; }.filter-actions button.primary { color: white; border-color: var(--brand); background: var(--brand); }
.admin-table-frame { position: relative; margin-top: 14px; overflow: visible; border: 1px solid var(--line); border-radius: 8px; background: white; }.table-toolbar { display: flex; height: 48px; align-items: center; justify-content: space-between; padding: 0 14px; border-bottom: 1px solid var(--line); }.table-toolbar > div { display: flex; align-items: center; gap: 8px; }.table-toolbar b { font-size: 12px; }.table-toolbar .shelf-mark { height: 15px; }.table-toolbar button { display: flex; height: 28px; align-items: center; gap: 5px; padding: 0 8px; border: 1px solid var(--line); border-radius: 5px; background: white; color: var(--muted); font-size: 10px; }.toolbar-summary span { color: var(--muted); font-size: 10px; }.toolbar-summary b { font: 600 13px var(--font-mono); }
.admin-table { width: 100%; border-collapse: collapse; table-layout: auto; }.admin-table th { height: 42px; padding: 0 12px; text-align: left; color: #65736b; background: #f5f8f5; border-bottom: 1px solid var(--line); font-size: 10px; font-weight: 600; white-space: nowrap; }.admin-table td { height: 59px; padding: 8px 12px; color: var(--ink-2); border-bottom: 1px solid #edf1ee; font-size: 10px; vertical-align: middle; }.admin-table tbody tr:hover { background: #fbfdfb; }.admin-table tbody tr:last-child td { border-bottom: 0; }.admin-table .numeric { text-align: right; font-variant-numeric: tabular-nums; }.admin-table .actions { text-align: right; white-space: nowrap; }.member-table-cell { display: flex; align-items: center; gap: 9px; }.member-table-cell > div { display: flex; flex-direction: column; gap: 3px; }.member-table-cell b, .admin-table td > b { font-size: 10px; }.member-table-cell small, .cell-sub { display: block; color: var(--muted-2); font-size: 8px; }.cell-sub { margin-top: 4px; }.mono { font-family: var(--font-mono); letter-spacing: -.02em; }.points-number, .amount-strong { color: var(--ink); font-family: var(--font-mono); font-weight: 600; }.low-stock { color: var(--danger); font-weight: 700; }
.table-link, .table-more, .table-primary { height: 27px; padding: 0 7px; border: 0; border-radius: 4px; color: var(--brand); background: transparent; font-size: 10px; }.table-link:hover, .table-more:hover { background: var(--brand-soft); }.table-primary { color: white; background: var(--brand); }.table-more { color: var(--muted); }.row-menu-wrap { position: relative; display: inline-block; }.row-menu { position: absolute; z-index: 20; top: 32px; right: 0; display: flex; width: 112px; overflow: hidden; flex-direction: column; padding: 4px; border: 1px solid var(--line); border-radius: 7px; background: white; box-shadow: 0 10px 30px rgba(20,38,29,.16); }.row-menu button { height: 30px; padding: 0 9px; text-align: left; border: 0; border-radius: 4px; background: transparent; font-size: 10px; }.row-menu button:hover { background: var(--paper); }
.admin-pagination { display: flex; height: 48px; align-items: center; justify-content: flex-end; gap: 5px; padding: 0 14px; border-top: 1px solid var(--line); }.admin-pagination > span { margin-right: 8px; color: var(--muted); font-size: 10px; }.admin-pagination button { display: grid; width: 27px; height: 27px; place-items: center; border: 1px solid var(--line); border-radius: 5px; background: white; font-size: 10px; }.admin-pagination button.active { color: white; border-color: var(--brand); background: var(--brand); }.admin-pagination select { height: 28px; margin-left: 6px; border: 1px solid var(--line); border-radius: 5px; background: white; font-size: 10px; }
.status-ticket { display: inline-flex; min-height: 23px; align-items: center; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: 4px; color: var(--muted); background: var(--surface-2); font-size: 9px; font-weight: 600; white-space: nowrap; }.status-ticket.is-small { min-height: 20px; padding: 0 6px; font-size: 8px; }.tone-success { color: var(--brand); border-color: #bcd4c7; background: var(--brand-soft); }.tone-warning { color: var(--warning); border-color: #ead3b1; background: var(--warning-soft); }.tone-danger { color: var(--danger); border-color: #e7bfbb; background: var(--danger-soft); }.tone-info { color: var(--info); border-color: #bfd3da; background: var(--info-soft); }.tone-price { color: var(--price); border-color: #edc6bd; background: var(--price-soft); }
.avatar { display: inline-grid; flex: 0 0 auto; place-items: center; border-radius: 10px 3px 10px 3px; color: #234438; background: #d7e7df; font-size: 12px; font-weight: 700; }.avatar-amber { color: #754a15; background: #f3dfbf; }.avatar-blue { color: #275c70; background: #dceaf0; }.avatar-red { color: #853a34; background: #f1d7d4; }.avatar-violet { color: #554579; background: #e4def0; }
.admin-empty { display: flex; min-height: 230px; align-items: center; justify-content: center; flex-direction: column; gap: 7px; color: var(--muted); }.admin-empty b { color: var(--ink); font-size: 12px; }.admin-empty span { font-size: 10px; }

/* Admin drawers and dialogs */
.drawer-mask { position: fixed; z-index: 1100; top: 64px; background: rgba(13, 26, 20, .34); }.admin-drawer { position: absolute; top: 0; right: 0; bottom: 0; width: 485px; overflow-y: auto; padding: 22px; background: white; box-shadow: -18px 0 45px rgba(18,36,27,.18); animation: drawer-in .23s ease-out; }.order-drawer, .product-edit-drawer { width: 560px; }
.drawer-head, .dialog-head { display: flex; align-items: start; justify-content: space-between; padding-bottom: 17px; border-bottom: 1px solid var(--line); }.drawer-head h2, .dialog-head h2 { margin: 2px 0 0; font-size: 18px; }.drawer-kicker { color: var(--brand); font: 600 9px var(--font-mono); letter-spacing: .12em; }.drawer-head > button, .dialog-head > button { width: 29px; height: 29px; border: 1px solid var(--line); border-radius: 6px; background: white; color: var(--muted); }
.profile-summary { display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 12px; padding: 20px 0; }.profile-summary h3 { margin: 0 0 4px; font-size: 15px; }.profile-summary span { color: var(--muted); font-size: 10px; }
.profile-metrics { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); }.profile-metrics div { display: flex; min-height: 76px; align-items: center; justify-content: center; flex-direction: column; gap: 7px; border-right: 1px solid var(--line); }.profile-metrics div:last-child { border: 0; }.profile-metrics span { color: var(--muted); font-size: 9px; }.profile-metrics b { font: 600 17px var(--font-mono); }
.description-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin-top: 18px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }.description-grid > div { display: flex; min-height: 58px; justify-content: center; flex-direction: column; gap: 6px; padding: 10px 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }.description-grid > div.wide { grid-column: 1 / -1; }.description-grid span { color: var(--muted); font-size: 9px; }.description-grid b { font-size: 10px; line-height: 1.45; }
.drawer-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }.drawer-actions button, .dialog-actions button { min-width: 90px; height: 34px; border: 1px solid var(--line-strong); border-radius: 6px; background: white; font-size: 11px; }.drawer-actions button.primary, .dialog-actions button.primary { color: white; border-color: var(--brand); background: var(--brand); }
.dialog-mask { position: fixed; z-index: 1200; top: 64px; display: grid; place-items: center; background: rgba(13,26,20,.42); }.admin-dialog { width: 430px; padding: 20px; border-radius: 10px; background: white; box-shadow: var(--shadow-float); animation: dialog-in .18s ease-out; }.points-dialog { width: 450px; }.dialog-member { display: flex; align-items: center; gap: 10px; margin: 17px 0; padding: 11px; border-radius: 7px; background: var(--paper); }.dialog-member > div { display: flex; flex-direction: column; gap: 3px; }.dialog-member b { font-size: 11px; }.dialog-member span { color: var(--muted); font-size: 9px; }.dialog-field { margin-top: 14px; }.dialog-field textarea, .edit-form-grid textarea { min-height: 72px; padding-top: 8px; resize: vertical; }.dialog-field small { color: var(--muted-2); font-weight: 400; }.balance-preview, .shipping-order { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding: 10px 11px; border: 1px solid #c9dbd0; border-radius: 6px; background: var(--brand-soft); font-size: 10px; }.balance-preview b { color: var(--brand); font: 600 15px var(--font-mono); }.shipping-order { border-color: var(--line); background: var(--paper); }.shipping-order b { font-size: 10px; }.dialog-hint { display: flex; align-items: center; gap: 7px; margin-top: 13px; color: var(--muted); font-size: 9px; }.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.order-detail-heading { display: flex; align-items: center; justify-content: space-between; padding: 17px 0; }.order-detail-heading > div { display: flex; flex-direction: column; gap: 5px; }.order-detail-heading span { color: var(--muted); font-size: 9px; }.order-detail-heading b { font-size: 11px; }.drawer-section { padding: 15px 0; border-top: 1px solid var(--line); }.drawer-section h3 { margin: 0 0 12px; font-size: 12px; }.drawer-product { display: grid; grid-template-columns: 82px 1fr; gap: 12px; }.drawer-product .product-art { width: 82px; height: 82px; border-radius: 7px; }.drawer-product > div { display: flex; flex-direction: column; gap: 7px; }.drawer-product b { font-size: 11px; }.drawer-product span { color: var(--muted); font-size: 9px; }.drawer-product strong { margin-top: auto; color: var(--price); font: 700 16px var(--font-display); }
.order-money { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }.order-money span { display: flex; min-height: 60px; justify-content: center; flex-direction: column; gap: 5px; padding: 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); font-size: 9px; }.order-money b { color: var(--ink); font: 600 12px var(--font-mono); }.order-money .total { color: var(--brand); border-color: #bcd4c7; background: var(--brand-soft); }.order-money .total b { color: var(--brand); }

/* Merchant products */
.admin-product-cell { display: grid; min-width: 230px; grid-template-columns: 46px 1fr; align-items: center; gap: 9px; }.admin-product-cell .product-art { width: 46px; height: 46px; border-radius: 6px; }.admin-product-cell > div { display: flex; flex-direction: column; gap: 4px; }.admin-product-cell b { font-size: 10px; }.admin-product-cell small { color: var(--muted); font-size: 8px; }
.edit-product-preview { display: grid; grid-template-columns: 105px 1fr; align-items: center; gap: 14px; padding: 18px 0; }.edit-product-preview .product-art { width: 105px; height: 86px; border-radius: 8px; }.edit-product-preview > div { display: flex; flex-direction: column; gap: 6px; }.edit-product-preview b { font-size: 13px; }.edit-product-preview span { color: var(--muted); font-size: 10px; }.edit-form-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }.edit-form-grid label { min-width: 0; }.edit-form-grid label.wide { grid-column: 1 / -1; }
.placeholder-layout { min-height: 320px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 9px; border: 1px dashed var(--line-strong); border-radius: 8px; color: var(--muted); background: rgba(255,255,255,.5); }.placeholder-layout b { color: var(--ink); font-size: 13px; }.placeholder-layout p { margin: 0; font-size: 10px; }

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheet-in { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes drawer-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

@media (max-width: 900px) {
  body { overflow: auto; }
  .prototype-toolbar { position: sticky; height: auto; min-height: 64px; flex-wrap: wrap; gap: 8px 14px; padding: 10px 14px; }
  .prototype-brand { min-width: 160px; }.prototype-note { display: none; }.scenario-switch { order: 3; width: 100%; overflow-x: auto; }
  .prototype-content { padding-top: 0; }
  .mobile-stage { grid-template-columns: minmax(320px,390px); padding: 14px 0; }.mobile-caption { display: none; }.mobile-frame { width: min(390px, calc(100vw - 16px)); height: calc(100vh - 96px); min-height: 650px; }
  .admin-shell { height: calc(100vh - 104px); grid-template-columns: 66px 1fr; }.admin-sidebar { padding-inline: 8px; }.admin-logo > div, .sidebar-section-label, .admin-sidebar nav span, .sidebar-shop > div, .sidebar-shop > .icon { display: none; }.admin-logo { justify-content: center; padding-inline: 0; }.admin-sidebar nav button { justify-content: center; padding: 0; }.sidebar-shop { display: flex; justify-content: center; }.admin-page { padding-inline: 14px; }.filter-fields { flex-direction: column; align-items: stretch; }.filter-fields label { width: 100%; }.admin-table-frame { overflow-x: auto; }.admin-table { min-width: 900px; }
}

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