:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #202322;
  font-synthesis: none;
  color-scheme: light;
  --ink: #202322;
  --muted: #727773;
  --border: #e6e8e5;
  --surface: #fff;
  --canvas: #f7f8f6;
  --green: #42634c;
  --green-soft: #edf3ed;
  --danger: #ae3d3b;
  --sidebar-width: 232px;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 14px; background: var(--canvas); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, select, input[type="checkbox"] { cursor: pointer; }
button, a { touch-action: manipulation; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
button:disabled { cursor: not-allowed; opacity: .4; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
input, textarea, select { color: var(--ink); }
input::placeholder, textarea::placeholder { color: #929791; }
input[type="checkbox"] { width: 16px; height: 16px; margin: 0; accent-color: var(--ink); flex-shrink: 0; }
input[type="number"] { font-variant-numeric: tabular-nums; }
button svg, a svg { flex-shrink: 0; }
svg { display: block; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
.skip-link { position: fixed; top: -100px; left: 16px; padding: 12px 20px; background: var(--ink); color: white; z-index: 100; }
.skip-link:focus { top: 10px; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar-width); display: flex; flex-direction: column; padding: 30px 16px 18px; background: var(--surface); border-right: 1px solid var(--border); z-index: 30; overflow: hidden; }
.brand { display: block; width: fit-content; margin: 0 auto 28px; }
.brand img { display: block; width: 95px; height: 60px; object-fit: contain; }
.sidebar-heading { display: flex; align-items: center; justify-content: space-between; padding: 20px 9px; border-top: 1px solid var(--border); font-weight: 650; font-size: 14px; }
.version-label { font-size: 10px; color: var(--muted); border: 1px solid var(--border); border-radius: 3px; padding: 3px 5px; font-weight: 400; }
.nav-group-label { margin: 21px 13px 9px; color: #8b908b; font-size: 11px; }
.nav-group-label:first-child { margin-top: 4px; }
.nav-link { display: flex; align-items: center; gap: 12px; min-height: 39px; margin: 2px 0; padding: 9px 13px; border-radius: 5px; color: #666d66; font-size: 13px; transition: background 150ms, color 150ms; }
.nav-link svg { width: 18px; height: 18px; }
.nav-link:hover { color: var(--ink); background: #f4f5f2; }
.nav-link[aria-current="page"] { color: white; background: var(--ink); font-weight: 550; }
.nav-link .nav-count { margin-left: auto; font-size: 10px; border-radius: 3px; background: #f0f2ef; color: #626961; padding: 1px 6px; line-height: 18px; }
.nav-link[aria-current="page"] .nav-count { color: white; background: #ffffff20; }
.sidebar-footer { margin-top: auto; padding: 26px 10px 0; }
.logout-button { margin: 18px 0 0; display: flex; align-items: center; gap: 9px; border: 0; padding: 5px 0; background: none; color: #757b74; font-size: 12px; }
.logout-button:hover { color: var(--ink); }
.workspace { margin-left: var(--sidebar-width); min-height: 100vh; display: flex; flex-direction: column; }
.topbar { min-height: 72px; padding: 0 36px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--border); background: white; }
.breadcrumb { display: flex; align-items: center; gap: 13px; font-size: 12px; color: #92978f; }
.breadcrumb strong { color: #4c534c; font-weight: 500; }
.breadcrumb-divider { color: #c4c8c1; }
.scope-controls { display: flex; align-items: center; gap: 22px; margin-left: auto; margin-right: 18px; }
.country-flag { display: block; flex-shrink: 0; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px #20232212; }
.region-trigger { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 0 5px; border: 0; border-radius: 4px; background: transparent; color: #414a3d; font-size: 12px; white-space: nowrap; transition: background 150ms; }
.region-trigger:hover { background: #f7f8f5; }
.channel-tabs { position: relative; display: inline-grid; grid-template-columns: repeat(2, 78px); flex-shrink: 0; align-self: stretch; }
.channel-button { min-height: 44px; padding: 0 8px; border: 0; background: transparent; color: #747b70; font-size: 12px; transition: color 180ms ease; }
.channel-button:hover, .channel-button[aria-pressed="true"] { color: var(--ink); }
.channel-button[aria-pressed="true"] { font-weight: 600; }
.channel-indicator { position: absolute; bottom: 0; left: 0; width: 50%; height: 2px; background: var(--ink); transform: translateX(0) scaleX(.76); transition: transform 280ms cubic-bezier(.22, .61, .36, 1); pointer-events: none; }
.channel-tabs[data-channel="outlet"] .channel-indicator { transform: translateX(100%) scaleX(.76); }
.topbar-account { display: flex; align-items: center; gap: 11px; font-size: 12px; }
.avatar { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; background: #eef0ea; color: #777e70; font-size: 12px; }
.main-content { flex: 1; width: 100%; max-width: 1720px; margin: 0 auto; padding: 34px 36px 28px; outline: none; }
.workspace-footer { display: flex; justify-content: space-between; gap: 14px; padding: 10px 36px 23px; color: #92978f; font-size: 10px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 27px; }
.page-heading h1 { font-size: 25px; font-weight: 650; letter-spacing: -.5px; line-height: 1.4; }
.page-heading p { margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.heading-actions { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.date-label { display: flex; align-items: center; gap: 8px; padding: 9px 12px; color: #727970; background: white; border: 1px solid var(--border); border-radius: 5px; font-size: 11px; }
.date-label svg { width: 14px; height: 14px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 37px; padding: 8px 13px; border: 1px solid #dce0d8; border-radius: 4px; background: white; font-size: 12px; font-weight: 500; white-space: nowrap; transition: background 150ms; }
.button svg { width: 15px; height: 15px; }
.button:hover:not(:disabled) { background: #f4f5f2; }
.button.primary { border-color: var(--ink); color: white; background: var(--ink); }
.button.primary:hover:not(:disabled) { background: #3a413b; }
.button.danger { color: var(--danger); border-color: #ead0cf; }
.button.danger.solid { background: var(--danger); border-color: var(--danger); color: white; }
.button.small { min-height: 30px; padding: 5px 9px; font-size: 11px; }
.text-button { background: none; border: 0; padding: 5px 2px; font-size: 12px; color: #4c5f4d; white-space: nowrap; }
.text-button:hover { text-decoration: underline; text-underline-offset: 3px; }
.text-button.danger { color: var(--danger); }
.text-button svg { width: 14px; height: 14px; }
.icon-button { display: inline-grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; border: 1px solid var(--border); border-radius: 4px; background: white; }
.icon-button:hover { background: var(--canvas); }
.icon-button svg { width: 18px; height: 18px; }
.menu-button { display: none; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; margin-bottom: 22px; }
.stat-card { padding: 22px 22px 19px; background: white; border: 1px solid var(--border); border-radius: 6px; }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #6e756c; font-size: 12px; }
.stat-icon { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #edf0e9; background: #f8f9f6; border-radius: 6px; color: #707e69; }
.stat-icon svg { width: 16px; height: 16px; }
.stat-value { display: flex; align-items: baseline; gap: 8px; margin: 12px 0 15px; font-size: 31px; line-height: 1; font-weight: 600; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.stat-value span { color: #969c93; font-size: 11px; font-weight: 400; letter-spacing: 0; }
.stat-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid #f0f1ee; padding-top: 13px; color: #8b9186; font-size: 10px; }
.stat-bottom strong { color: #5d6e53; font-weight: 500; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(270px, 1fr); gap: 21px; margin-bottom: 22px; }
.panel { background: white; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; min-width: 0; }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 21px 23px; }
.panel-header h2 { font-size: 14px; font-weight: 600; }
.panel-header p { margin-top: 6px; color: #92978f; font-size: 10px; }
.panel-header .text-button { display: flex; align-items: center; gap: 6px; font-size: 11px; }
.panel-body { padding: 0 23px 23px; }
.overview-period { border: 1px solid var(--border); background: #fafbf9; border-radius: 4px; padding: 6px 9px; color: #777e71; font-size: 10px; }
.chart-summary { display: flex; align-items: baseline; gap: 8px; margin-bottom: 18px; }
.chart-summary strong { font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; }
.chart-summary span { color: #8b9286; font-size: 10px; }
.bar-chart { width: 100%; height: 157px; overflow: visible; }
.chart-grid { stroke: #edf0e9; stroke-dasharray: 3 4; }
.chart-bar { fill: #bac9b1; }
.chart-bar:last-of-type { fill: #617f56; }
.chart-label { font-family: inherit; fill: #979d92; font-size: 10px; }
.chart-value { fill: #5e6d55; font-size: 10px; font-family: inherit; }
.progress-overview { display: flex; align-items: center; gap: 24px; padding-top: 12px; min-height: 209px; }
.donut { width: 136px; height: 136px; flex-shrink: 0; }
.donut-track { stroke: #edf0e9; }
.donut-complete { stroke: #66805b; }
.donut-running { stroke: #b7c6a8; }
.donut-total { font-size: 24px; font-weight: 600; fill: var(--ink); font-family: inherit; }
.donut-caption { font-size: 9px; fill: #959d8e; font-family: inherit; }
.legend { display: grid; gap: 16px; flex: 1; font-size: 11px; }
.legend-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.legend-row span:first-child { display: flex; align-items: center; gap: 8px; color: #8b9283; }
.legend-row strong { font-weight: 550; font-variant-numeric: tabular-nums; }
.legend-dot { display: inline-block; width: 7px; height: 7px; background: #66805b; border-radius: 2px; }
.legend-dot.running { background: #b7c6a8; }
.legend-dot.waiting { background: #edf0e9; border: 1px solid #dbe1d5; }
.resource-strip { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 17px 22px; margin-bottom: 22px; border: 1px solid #e2e8da; border-radius: 6px; background: #f0f3eb; }
.resource-strip p { color: #78816e; font-size: 11px; line-height: 1.7; }
.resource-strip strong { color: #536447; font-size: 12px; font-weight: 550; }
.resource-strip .button { font-size: 11px; border-color: #d4ddca; background: transparent; }
.table-scroll { width: 100%; overflow-x: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; white-space: nowrap; font-size: 12px; }
th { padding: 12px 20px; color: #969c90; background: #fafbf8; font-size: 10px; font-weight: 500; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
td { padding: 17px 20px; border-bottom: 1px solid #edf0e8; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fcfdfa; }
th:first-child, td:first-child { padding-left: 23px; }
th:last-child, td:last-child { padding-right: 23px; }
.numeric { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.subtext { display: block; margin-top: 5px; color: #969c90; font-size: 10px; }
.primary-text { color: #384332; font-weight: 500; }
.product-cell { display: flex; align-items: center; gap: 12px; min-width: 176px; }
.product-thumb { display: grid; place-items: center; width: 37px; height: 43px; border: 1px solid #eef0e9; background: #f4f5f1; border-radius: 4px; flex-shrink: 0; }
.product-thumb svg { width: 30px; height: 34px; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; color: #718068; background: #f0f4ec; border-radius: 4px; font-size: 10px; line-height: 1.2; white-space: nowrap; }
.pill::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.pill.amber { color: #9a7a3e; background: #faf5e8; }
.pill.blue { color: #5a778e; background: #edf3f7; }
.pill.gray { color: #969b91; background: #f1f3ee; }
.pill.red { color: #a46863; background: #fbefed; }
.row-actions { display: flex; align-items: center; gap: 12px; }
.row-actions .text-button { font-size: 11px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 21px; flex-wrap: wrap; }
.toolbar-group { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.search-box { display: flex; align-items: center; gap: 9px; width: 265px; min-height: 36px; border: 1px solid #e0e4da; border-radius: 4px; padding: 0 11px; background: white; }
.search-box:focus-within { outline: 2px solid var(--green); outline-offset: 2px; }
.search-box svg { width: 15px; height: 15px; color: #8f9687; flex-shrink: 0; }
.search-box input { width: 100%; min-width: 0; border: 0; padding: 9px 0; background: transparent; font-size: 11px; outline: none; }
.filter-select { min-height: 36px; padding: 0 29px 0 10px; border: 1px solid #e0e4da; border-radius: 4px; background: white; font-size: 11px; }
.selection-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 11px 22px; border-top: 1px solid #e5eadf; background: #f3f6ee; font-size: 11px; }
.selection-bar strong { color: #617452; font-weight: 500; }
.selection-bar .text-button { font-size: 11px; }
.selection-bar .clear-selection { margin-left: auto; }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 17px 22px; border-top: 1px solid var(--border); font-size: 10px; color: #92988b; }
.pagination-controls { display: flex; align-items: center; gap: 6px; }
.page-button { display: grid; place-items: center; min-width: 28px; height: 28px; padding: 4px 7px; border: 1px solid var(--border); border-radius: 3px; background: white; color: #777f6c; font-size: 10px; }
.page-button svg { width: 12px; height: 12px; }
.page-button[aria-current="page"] { color: white; background: var(--ink); border-color: var(--ink); }
.pagination select { margin-left: 10px; min-height: 28px; padding: 0 6px; border: 1px solid var(--border); border-radius: 3px; font-size: 10px; background: white; }
.empty-state { padding: 57px 22px; text-align: center; }
.empty-icon { display: grid; place-items: center; width: 46px; height: 46px; margin: 0 auto 15px; background: #f1f4ec; border-radius: 9px; color: #99a38d; }
.empty-icon svg { width: 22px; height: 22px; }
.empty-state h3 { font-size: 14px; font-weight: 550; }
.empty-state p { max-width: 440px; margin: 9px auto 17px; color: #959b8e; font-size: 12px; line-height: 1.8; }
.check-cell { width: 47px; }
.cart-count { display: inline-flex; align-items: center; gap: 7px; color: #535f4c; }
.cart-count svg { width: 14px; height: 14px; color: #929e86; }
.cart-success { color: var(--green); font-weight: 600; }
.cart-separator { color: #8b9383; padding: 0 3px; }
.switch { display: inline-flex; align-items: center; gap: 8px; background: transparent; border: 0; padding: 5px 0; color: #8a9380; font-size: 11px; }
.switch-track { position: relative; width: 28px; height: 16px; border-radius: 20px; background: #d7ddcf; }
.switch-track::before { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; background: white; border-radius: 50%; transition: transform 150ms; box-shadow: 0 1px 2px #0001; }
.switch[aria-checked="true"] .switch-track { background: #718967; }
.switch[aria-checked="true"] .switch-track::before { transform: translateX(12px); }
.address-detail { max-width: 320px; white-space: normal; line-height: 1.7; color: #727d67; font-size: 11px; }
.compact-stats { display: flex; align-items: center; gap: 28px; margin-bottom: 24px; padding: 16px 21px; border: 1px solid var(--border); border-radius: 5px; background: white; flex-wrap: wrap; }
.compact-stat { display: flex; align-items: baseline; gap: 9px; color: #909985; font-size: 11px; }
.compact-stat strong { color: #4e5b43; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.compact-stat + .compact-stat { border-left: 1px solid var(--border); padding-left: 28px; }
.reservation-progress { width: 100px; }
progress { display: block; width: 100%; height: 4px; appearance: none; border: 0; border-radius: 4px; overflow: hidden; background: #edf1e7; color: #81966d; }
progress::-webkit-progress-bar { background: #edf1e7; border-radius: 4px; }
progress::-webkit-progress-value { background: #81966d; border-radius: 4px; }
progress::-moz-progress-bar { background: #81966d; border-radius: 4px; }
.reservation-progress small { display: block; margin-top: 6px; color: #9aa28f; font-size: 9px; }
.gift-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding: 0 22px 22px; }
.gift-card { padding: 22px; border: 1px solid #e2e7d9; border-radius: 7px; background: linear-gradient(130deg, #f3f5ed, #fff 75%); }
.gift-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 30px; }
.gift-card-brand { font-size: 13px; font-weight: 650; color: #627153; }
.gift-card-number { color: #929d86; font-size: 11px; letter-spacing: 1px; }
.gift-card-balance { margin: 12px 0 25px; font-size: 27px; font-weight: 550; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.gift-card-balance small { font-size: 11px; color: #919c85; font-weight: 400; letter-spacing: 0; }
.gift-card-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px solid #e7ecdf; color: #9aa38e; font-size: 10px; }
.query-layout { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(230px, 1fr); gap: 23px; align-items: start; }
.query-box { padding: 28px; }
.query-box h2 { font-size: 16px; font-weight: 550; }
.query-box > p { margin-top: 10px; color: #929c85; font-size: 12px; line-height: 1.8; }
.query-form { display: flex; align-items: end; gap: 11px; margin-top: 25px; }
.query-form .form-field { flex: 1; min-width: 0; margin: 0; }
.query-form .button { min-height: 40px; }
.helper-panel { padding: 23px; }
.helper-panel h3 { font-size: 12px; font-weight: 550; margin-bottom: 16px; }
.helper-item { display: flex; align-items: start; gap: 11px; margin-top: 19px; color: #9ba58e; font-size: 11px; line-height: 1.8; }
.helper-item svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: #98a388; }
.helper-item strong { display: block; color: #7b8867; font-weight: 500; margin-bottom: 3px; }
.query-result { margin-top: 22px; }
.query-note { display: flex; align-items: center; gap: 7px; padding: 10px 16px; color: #9b8c5b; border-bottom: 1px solid #eae7d8; background: #fbf9ef; font-size: 10px; }
.query-note svg { width: 14px; height: 14px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.detail-item dt { color: #98a18d; font-size: 11px; margin-bottom: 9px; }
.detail-item dd { margin: 0; font-size: 13px; color: #5c6a4d; overflow-wrap: anywhere; line-height: 1.7; }
.detail-item.wide { grid-column: 1 / -1; }
.query-result-body { padding: 25px; }
.shipment-route { display: flex; align-items: center; gap: 19px; padding: 24px; border-bottom: 1px solid var(--border); }
.shipment-route strong { font-size: 19px; font-weight: 550; }
.shipment-route svg { width: 38px; height: 18px; color: #a6b296; }
.shipment-route .pill { margin-left: auto; }
.timeline { padding: 26px 25px 5px; }
.timeline-item { position: relative; padding: 0 0 28px 26px; border-left: 1px solid #e6ecdc; margin-left: 5px; }
.timeline-item::before { position: absolute; content: ""; top: 2px; left: -4px; width: 7px; height: 7px; border-radius: 50%; background: #c7d1bb; }
.timeline-item:first-child::before { background: #6b8554; box-shadow: 0 0 0 4px #eef4e7; }
.timeline-item:last-child { border-color: transparent; }
.timeline-item h3 { color: #64764e; font-size: 12px; font-weight: 500; }
.timeline-item p { margin-top: 7px; color: #9ba58e; font-size: 11px; }
.timeline-item time { display: block; color: #a7b098; font-size: 10px; margin-top: 9px; }
.product-result { display: grid; grid-template-columns: minmax(175px, 1fr) 1.5fr; gap: 30px; padding: 28px; }
.product-art { display: grid; place-items: center; min-height: 260px; background: #f4f6ef; border-radius: 5px; }
.product-art svg { width: 160px; height: 190px; }
.product-info .sku-label { font-size: 11px; color: #98a58b; }
.product-info h2 { margin: 10px 0; font-size: 21px; font-weight: 550; }
.product-info > p { color: #8c9a7b; font-size: 12px; line-height: 1.9; }
.product-price { margin: 19px 0; font-size: 24px; font-weight: 550; }
.product-attributes { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 24px; }
.product-attributes div { color: #6f805b; font-size: 11px; }
.product-attributes span { display: block; margin-bottom: 7px; font-size: 10px; color: #a1ad93; }
dialog { width: min(550px, calc(100vw - 32px)); max-height: min(86vh, 850px); padding: 0; border: 1px solid #e6eadf; border-radius: 9px; box-shadow: 0 20px 90px #101b1540; color: var(--ink); }
dialog.wide { width: min(720px, calc(100vw - 32px)); }
dialog::backdrop { background: rgb(25 31 26 / 35%); backdrop-filter: blur(2px); }
.region-dialog { width: min(380px, calc(100vw - 32px)); }
.region-dialog[open] { animation: region-dialog-in 180ms ease-out; }
.region-dialog .dialog-header { align-items: center; padding: 21px 22px 17px; }
.region-dialog .dialog-header h2 { font-size: 17px; }
.region-options { display: grid; gap: 10px; padding: 19px 22px 23px; }
.region-option { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 5px; background: white; font-size: 14px; text-align: left; transition: border-color 150ms, background 150ms; }
.region-option:hover { border-color: #b2b9ac; background: #fafbf8; }
.region-option[aria-pressed="true"] { border-color: #54644a; background: #f4f7f0; }
.region-check { width: 20px; height: 20px; margin-left: auto; color: #42634c; visibility: hidden; }
.region-option[aria-pressed="true"] .region-check { visibility: visible; }
@keyframes region-dialog-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.dialog-header { display: flex; align-items: start; justify-content: space-between; gap: 15px; padding: 25px 25px 20px; border-bottom: 1px solid var(--border); }
.dialog-header h2 { font-size: 18px; font-weight: 600; }
.dialog-header p { max-width: 560px; margin-top: 9px; color: #919b84; font-size: 11px; line-height: 1.8; }
.dialog-body { padding: 24px 25px; }
.dialog-footer { display: flex; align-items: center; justify-content: end; gap: 9px; border-top: 1px solid var(--border); padding: 17px 25px; background: #fafbf8; }
.form-field { display: flex; flex-direction: column; gap: 9px; margin-bottom: 20px; }
.form-field > label { color: #6b785b; font-size: 12px; font-weight: 500; }
.form-field > input, .form-field > select, .form-field > textarea { width: 100%; min-height: 40px; padding: 10px 12px; border: 1px solid #dce3d3; border-radius: 4px; background: white; font-size: 12px; }
.form-field > textarea { min-height: 180px; resize: vertical; line-height: 1.9; white-space: pre; }
.form-field small { color: #a1ad92; font-size: 10px; line-height: 1.8; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; }
.form-grid .wide { grid-column: 1 / -1; }
.checkbox-label { display: flex; align-items: center; gap: 9px; color: #7f8d6c; font-size: 12px; }
.form-error { padding: 11px 13px; margin-bottom: 18px; border: 1px solid #ebd1ca; border-radius: 4px; color: #ac6251; background: #fff6f2; line-height: 1.8; font-size: 12px; }
.dialog-notice { padding: 13px; color: #8b957b; background: #f6f8f1; border: 1px solid #e7ecd9; font-size: 11px; line-height: 1.9; border-radius: 4px; margin-bottom: 20px; }
.delete-description { line-height: 1.9; color: #7d8970; font-size: 13px; }
.toast-region { position: fixed; bottom: 25px; right: 25px; max-width: min(420px, calc(100vw - 32px)); z-index: 100; }
.toast { padding: 14px 19px; border: 1px solid #dfe6d5; border-radius: 6px; color: #5e714e; background: white; box-shadow: 0 7px 25px #18200f15; font-size: 12px; line-height: 1.8; }
.toast.error { border-color: #e6c8c0; color: #a76150; }
.field-query-error { margin-top: 13px; color: var(--danger); font-size: 12px; line-height: 1.7; }
.order-product { margin-bottom: 25px; }
.form-field input[readonly] { background: #f5f7f0; color: #69735c; }
.sidebar nav { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
.sidebar-heading { flex-shrink: 0; }
.sidebar-footer { flex-shrink: 0; padding-top: 20px; }
.page-heading p, .subtext, .stat-top, .stat-bottom, .panel-header p, .legend-row span:first-child, .date-label, .nav-group-label, .version-label, .logout-button, .breadcrumb, .workspace-footer, .pagination, th, .compact-stat, .reservation-progress small, .gift-card-number, .gift-card-footer, .gift-card-balance small, .query-box > p, .helper-item, .helper-item strong, .detail-item dt, .timeline-item p, .timeline-item time, .product-info .sku-label, .product-info > p, .product-attributes span, .form-field small, .checkbox-label, .dialog-header p, .dialog-notice { color: #6a7263; }
.chart-label, .donut-caption { fill: #6a7263; }
.query-note { color: #786736; }
.pill { color: #506642; }
.pill.amber { color: #856629; }
.pill.blue { color: #42667f; }
.pill.gray { color: #6b7361; }
.gift-card-brand, .address-detail, .primary-text { color: #414e36; }
.storage-notice { margin-bottom: 22px; padding: 13px 17px; border: 1px solid #e9dfbd; color: #968042; background: #fffbeb; border-radius: 5px; line-height: 1.8; font-size: 12px; }
.sidebar-backdrop { position: fixed; inset: 0; border: 0; background: #1d261c60; z-index: 25; }
@media (min-width: 1550px) { .stats-grid { gap: 22px; } .main-content { padding-top: 40px; } .stat-card { padding: 25px; } }
@media (max-width: 1200px) { :root { --sidebar-width: 208px; } .main-content { padding: 27px 24px; } .topbar { padding: 0 24px; } .dashboard-grid { grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr); gap: 17px; } .stat-card { padding: 17px; } .progress-overview { gap: 13px; } .donut { width: 110px; height: 110px; } .gift-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .query-layout { grid-template-columns: minmax(0, 1fr) 245px; } }
@media (max-width: 1000px) { .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dashboard-grid { grid-template-columns: 1fr; } .progress-overview { min-height: auto; padding: 5px 0 12px; gap: 35px; } .donut { width: 136px; height: 136px; } .legend { max-width: 260px; } .query-layout { grid-template-columns: 1fr; } .helper-panel { display: none; } .page-heading { align-items: start; } .heading-actions { flex-wrap: wrap; justify-content: end; } .date-label { display: none; } }
@media (max-width: 760px) { :root { --sidebar-width: 232px; } .sidebar { transform: translateX(-100%); transition: transform 180ms ease; } .sidebar.is-open { transform: translateX(0); } .workspace { margin-left: 0; } .menu-button { display: grid; margin-right: 2px; width: 30px; height: 30px; } .topbar { min-height: 62px; padding: 0 18px; } .topbar-account { gap: 7px; } .account-name { display: none; } .main-content { padding: 25px 18px; } .workspace-footer { padding: 12px 18px 20px; font-size: 9px; flex-wrap: wrap; } .page-heading { gap: 16px; flex-wrap: wrap; margin-bottom: 22px; } .page-heading h1 { font-size: 23px; } .heading-actions { justify-content: start; } .stats-grid { gap: 12px; } .stat-card { padding: 16px; } .stat-value { font-size: 27px; } .stat-bottom { flex-wrap: wrap; line-height: 1.7; } .panel-header { padding: 18px; } .panel-body { padding: 0 18px 18px; } .toolbar { padding: 16px; gap: 12px; } .toolbar-group { gap: 7px; } .search-box { width: 100%; flex: 1; min-width: 160px; } .toolbar > .toolbar-group { flex: 1; } .toolbar > .toolbar-group:last-child { justify-content: end; flex: 0 auto; } .toolbar .button { font-size: 11px; } .resource-strip { align-items: start; padding: 16px; } .resource-strip .button { margin-top: 2px; flex-shrink: 0; } .pagination { padding: 15px; flex-wrap: wrap; } .compact-stats { gap: 16px; padding: 16px; } .compact-stat + .compact-stat { padding-left: 16px; } .gift-grid { padding: 0 16px 16px; gap: 14px; } .gift-card { padding: 18px; } .query-box { padding: 21px; } .query-result-body { padding: 21px; } .product-result { grid-template-columns: 1fr; padding: 22px; gap: 22px; } .product-art { min-height: 200px; } .product-art svg { width: 140px; height: 160px; } }
@media (max-width: 480px) { .main-content { padding: 22px 14px; } .topbar { padding: 0 14px; } .breadcrumb { gap: 9px; } .breadcrumb > span:first-of-type { display: none; } .breadcrumb-divider { display: none; } .stats-grid { gap: 10px; } .stat-card { padding: 13px; } .stat-top { font-size: 11px; } .stat-icon { width: 27px; height: 27px; } .stat-value { font-size: 25px; margin-top: 16px; } .stat-bottom { font-size: 9px; gap: 4px; } .resource-strip { flex-wrap: wrap; } .gift-grid { grid-template-columns: 1fr; } .query-form { flex-direction: column; align-items: stretch; } .form-grid { grid-template-columns: 1fr; } .form-grid .wide { grid-column: auto; } .dialog-body { padding: 20px; } .dialog-header { padding: 22px 20px; } .dialog-footer { padding: 15px 20px; } .compact-stat { flex: 0 0 calc(50% - 8px); } .compact-stat + .compact-stat { padding-left: 0; border: 0; } .detail-grid { gap: 20px 14px; } .shipment-route { gap: 12px; padding: 20px; } .shipment-route strong { font-size: 17px; } .shipment-route .pill { font-size: 9px; } }
@media (max-width: 1150px) and (min-width: 761px) { .topbar { gap: 9px; } .scope-controls { gap: 12px; margin-right: 0; } .account-name { display: none; } .topbar-account { gap: 8px; } }
@media (max-width: 920px) and (min-width: 761px) { .channel-tabs { grid-template-columns: repeat(2, 72px); } }
@media (max-width: 760px) { .topbar { flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; row-gap: 8px; } .breadcrumb { order: 0; } .topbar-account { order: 1; margin-left: auto; } .scope-controls { order: 2; width: 100%; margin: 0; gap: 14px; justify-content: space-between; } .region-trigger { justify-content: start; padding-left: 0; } }

.connection-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; min-height: 280px; padding: 32px; text-align: center; }
.connection-state h2 { font-size: 18px; }
.connection-state p { max-width: 420px; color: #68745d; font-size: 13px; line-height: 1.8; }
.loading-ring { width: 28px; height: 28px; border: 2px solid #e1e6da; border-top-color: #667953; border-radius: 50%; animation: connection-spin .8s linear infinite; }
.workspace[aria-busy="true"] { cursor: progress; }
@keyframes connection-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .loading-ring { animation: none; } }

/* One set of records and controls, with a layout based on the panel width. */
.record-panel { container: records / inline-size; }
.record-label, .record-select-label { display: none; }
.record-value { min-width: 0; }
.record-choice { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
@container records (max-width: 760px) {
  .table-scroll { overflow: visible; }
  .record-table, .record-table thead, .record-table tbody { display: block; width: 100%; }
  .record-table { white-space: normal; }
  .record-table thead tr { display: block; }
  .record-table thead th:not(.record-selection-head),
  .record-table:not(.has-selection) thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .record-table thead th.record-selection-head { display: block; width: auto; border: 0; padding: 3px 12px; background: white; }
  .record-table thead .record-choice { min-height: 44px; padding: 0 4px; }
  .record-select-label { display: inline; color: #59644f; font-size: 12px; }
  .record-table tbody { display: grid; gap: 12px; padding: 12px; background: var(--canvas); }
  .record-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr); padding: 15px; border: 1px solid var(--border); border-radius: 6px; background: white; }
  .record-table tbody tr:hover { background: white; }
  .record-table td { display: grid; grid-column: 1 / -1; grid-template-columns: minmax(82px, .34fr) minmax(0, 1fr); gap: 12px; align-items: center; width: auto; min-width: 0; padding: 8px 0; border: 0; font-size: 13px; }
  .record-label { display: block; color: #6a7263; font-size: 12px; font-weight: 400; line-height: 1.65; }
  .record-value { overflow-wrap: anywhere; line-height: 1.65; }
  .record-table td.record-primary { display: flex; align-items: center; min-height: 44px; padding: 0 0 11px; margin-bottom: 4px; border-bottom: 1px solid #edf0e8; font-size: 14px; font-weight: 600; }
  .record-primary .record-label, .record-actions .record-label { display: none; }
  .record-primary .record-value { width: 100%; }
  .record-table.has-selection tbody tr { grid-template-columns: 44px minmax(0, 1fr); column-gap: 8px; }
  .record-table td.record-select { display: block; grid-column: 1; grid-row: 1; padding: 0; }
  .record-select .record-choice { width: 44px; height: 44px; justify-content: center; }
  .record-table.has-selection td.record-primary { grid-column: 2; grid-row: 1; }
  .record-table input[type="checkbox"] { width: 20px; height: 20px; }
  .record-table td.record-actions { display: flex; justify-content: flex-end; margin-top: 7px; padding: 12px 0 0; border-top: 1px solid #edf0e8; }
  .record-actions .record-value { display: flex; flex: 1; justify-content: flex-end; }
  .record-actions .row-actions { justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
  .record-actions .text-button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 8px 13px; border: 1px solid #dce0d8; border-radius: 4px; font-size: 12px; background: white; }
  .record-actions .text-button.danger { border-color: #ead0cf; }
  .record-table .product-cell { min-width: 0; align-items: center; }
  .record-table .product-cell > span:last-child { min-width: 0; }
  .record-table .subtext { font-size: 11px; line-height: 1.6; }
  .record-table .address-detail { max-width: none; color: #4e5b43; font-size: 13px; }
  .record-table td[data-label="收货地址"] { align-items: start; }
  .record-table .cart-count { font-size: 14px; }
  .record-table .switch { min-height: 44px; padding: 0; font-size: 12px; }
  .record-table .reservation-progress { width: 100%; max-width: 170px; }
  .record-table .reservation-progress small { font-size: 11px; }
  .record-table .pill { font-size: 11px; }
  .record-table.is-empty thead, .record-table.is-empty tbody { display: none; }
  .toolbar { padding: 14px; gap: 10px; }
  .toolbar > .toolbar-group:first-child { flex: 1 1 100%; width: 100%; min-width: 0; justify-content: flex-start; gap: 8px; }
  .toolbar > .toolbar-group + .toolbar-group { flex: 1 1 100%; justify-content: flex-end; }
  .toolbar .search-box { width: 100%; flex: 1 1 100%; min-width: 0; min-height: 44px; }
  .search-box input { font-size: 13px; padding: 12px 0; }
  .toolbar .filter-select { flex: 1; min-width: 0; min-height: 44px; font-size: 12px; }
  .toolbar .button { min-height: 44px; font-size: 12px; }
  .selection-bar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 12px 14px; }
  .selection-bar strong { grid-column: 1 / -1; font-size: 12px; padding: 2px 0 4px; }
  .selection-bar .text-button { min-height: 40px; padding: 8px; border: 1px solid #d5dfcb; border-radius: 4px; background: white; font-size: 12px; white-space: normal; }
  .selection-bar .text-button.danger { border-color: #ead0cf; }
  .selection-bar .clear-selection { margin-left: 0; }
  .pagination { flex-direction: column; align-items: stretch; padding: 14px; gap: 12px; font-size: 11px; }
  .pagination-controls { gap: 7px; flex-wrap: wrap; }
  .pagination .page-button { min-width: 38px; height: 40px; font-size: 12px; }
  .pagination .page-button:not([aria-label]):not([aria-current="page"]) { display: none; }
  .pagination select { min-height: 40px; margin-left: auto; max-width: 110px; font-size: 11px; }
}
@media (max-width: 760px) {
  .page-heading > div:first-child { flex: 1 1 150px; min-width: 0; }
  .page-heading .button { min-height: 44px; }
  .compact-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 16px; }
  .compact-stat { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0; }
  .compact-stat + .compact-stat { padding-left: 0; border: 0; }
  .compact-stat-label { min-height: 34px; line-height: 1.55; }
}

.main-content.log-development-main { display: flex; flex-direction: column; max-width: none; padding: 0; }
.log-development {
  --log-ink: #2c4434;
  position: relative;
  isolation: isolate;
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 620px;
  overflow: hidden;
  background: #f0f3ec;
}
.log-landscape { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.log-landscape g { stroke: #d5dfce; stroke-width: 1; opacity: .58; }
.log-stage { flex: 1; width: 100%; max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 1fr; grid-template-rows: auto auto; align-content: center; justify-items: center; gap: 22px; padding: 36px clamp(34px, 4vw, 78px) 40px; }
.log-copy { position: relative; z-index: 1; text-align: center; }
.log-development-status { display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; margin-bottom: 27px; background: #e6ecdd; border: 1px solid #d1ddc6; border-radius: 20px; color: #526844; font-size: 11px; }
.log-development-status > span { width: 5px; height: 5px; border-radius: 50%; background: #6f865f; }
.log-copy h1 { color: var(--log-ink); font-size: clamp(38px, 4.5vw, 62px); font-weight: 600; line-height: 1.2; letter-spacing: -1px; }
.log-illustration { grid-row: 1; width: 100%; max-width: 500px; min-width: 0; }
.log-illustration > svg { display: block; width: 100%; height: auto; overflow: visible; }
.log-mountain { stroke: #b8c8ac; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.log-trail-base { stroke: #d2dec8; stroke-width: 1.5; stroke-dasharray: 5 7; }
.log-trail { stroke: #849b72; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; animation: log-trail-draw 2.2s ease .2s both; }
.log-book { transform-box: fill-box; transform-origin: center; transform: rotate(-6deg); animation: log-book-arrive 1.2s cubic-bezier(.22, .61, .36, 1) .25s both; }
.log-development-footer { display: flex; align-items: center; justify-content: center; gap: 15px; padding: 0 30px 32px; color: #74816a; font-size: 10px; letter-spacing: 1px; }
.log-footer-line { width: 34px; height: 1px; background: #bfcdb3; }
@keyframes log-trail-draw { from { stroke-dashoffset: 1; opacity: .35; } to { stroke-dashoffset: 0; opacity: 1; } }
@keyframes log-book-arrive { from { opacity: 0; transform: translateY(23px) rotate(-10deg); } to { opacity: 1; transform: translateY(0) rotate(-6deg); } }
@media (max-width: 1100px) {
  .log-stage { padding: 28px 28px 35px; }
  .log-illustration { max-width: 420px; }
  .log-copy h1 { font-size: 38px; }
  .log-development-status { margin-bottom: 16px; }
  .log-development-footer { padding-bottom: 25px; }
}
@media (max-width: 760px) { .log-development { min-height: 0; } .log-illustration { max-width: 380px; } .log-stage { padding-top: 15px; } }
@media (max-width: 480px) { .log-stage { padding: 22px 18px 30px; } .log-illustration { max-width: 280px; } .log-copy h1 { font-size: 34px; } .log-development-footer { gap: 10px; font-size: 9px; letter-spacing: .5px; padding-bottom: 24px; } .log-footer-line { width: 22px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
