:root {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: #1f2937;
    background: #f5f7fa;
    font-synthesis: none;
    line-height: 1.5;
    --accent: #2563eb;
    --muted: #667085;
    --border: #e4e7ec;
    --surface: #fff;
}
.upload-progress { width: 100%; height: 12px; accent-color: var(--accent); }
.upload-list-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 24px 0 12px; }
.upload-list-heading label { display: flex; align-items: center; gap: 10px; margin: 0; }
.upload-list-heading select { width: auto; }
.upload-items { padding-left: 28px; font-size: .8rem; max-height: 32rem; overflow-y: auto; }
.upload-items li { padding: 10px 6px; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
.upload-items strong, .upload-items span { display: block; }
.upload-items span { color: var(--muted); font-size: .75rem; margin-top: 4px; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { outline-offset: 4px; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 1.55rem; font-weight: 650; line-height: 1.35; letter-spacing: -.035em; margin-bottom: 7px; color: #182230; }
h2 { font-size: 1rem; font-weight: 650; line-height: 1.5; margin-bottom: 8px; color: #182230; }
h3 { font-size: .9rem; font-weight: 650; margin-bottom: 8px; }
svg { flex-shrink: 0; }
code { font-family: Consolas, monospace; font-size: .88em; overflow-wrap: anywhere; }
.skip-link { position: fixed; top: -60px; left: 24px; z-index: 100; padding: 12px 18px; background: #fff; border: 2px solid var(--accent); border-radius: 6px; }
.skip-link:focus { top: 10px; }
.sidebar { width: 232px; position: fixed; inset: 0 auto 0 0; overflow-y: auto; background: #fff; border-right: 1px solid var(--border); display: flex; flex-direction: column; z-index: 30; }
.brand { display: flex; align-items: center; gap: 10px; color: #17243b; font-size: 1.05rem; font-weight: 750; letter-spacing: -.025em; }
.brand:hover { text-decoration: none; }
.sidebar > .brand { min-height: 80px; padding: 20px 22px; }
.brand-mark { width: 34px; height: 36px; border-radius: 9px; background: var(--accent); display: grid; place-items: center; color: #fff; font-size: 1.35rem; font-weight: 700; }
.brand-mark svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.brand small { display: block; color: #778299; font-size: .63rem; letter-spacing: .07em; font-weight: 500; margin-top: 1px; }
.desktop-nav { padding: 18px 12px; }
.nav-caption { margin: 0 12px 12px; font-size: .68rem; color: #8b95a7; font-weight: 600; letter-spacing: .06em; }
.nav-link { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 11px 13px; margin-bottom: 5px; border-radius: 7px; color: #556176; font-size: .84rem; font-weight: 500; }
.nav-link:hover { background: #f4f6f9; color: #17243b; text-decoration: none; }
.nav-link.active { background: #eef4ff; color: var(--accent); font-weight: 650; }
.navicon { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sidebar-bottom { margin-top: auto; padding: 14px 16px 0; }
.workspace-label { display: flex; align-items: center; gap: 10px; font-size: .75rem; color: #4b5565; padding: 12px; background: #f8fafc; border-radius: 7px; }
.workspace-label small { display: block; font-size: .65rem; color: #8791a3; margin-top: 3px; }
.workspace-dot { width: 7px; height: 7px; border-radius: 50%; background: #22a06b; box-shadow: 0 0 0 4px #e3f5ed; }
.sidebar-account { display: flex; align-items: center; gap: 9px; border-top: 1px solid var(--border); margin-top: 20px; padding: 17px 0; }
.sidebar-account > div { min-width: 0; flex: 1; }
.sidebar-account strong { display: block; font-size: .76rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.sidebar-account span:not(.avatar) { color: #8891a1; font-size: .62rem; }
.avatar { display: inline-grid; place-items: center; height: 32px; width: 32px; border-radius: 50%; background: #eaf0fa; color: #4a648a; font-size: .63rem; font-weight: 700; flex-shrink: 0; }
.icon-button { display: inline-grid; place-items: center; width: 32px; height: 36px; padding: 0; background: transparent; color: #7c879a; border: none; border-radius: 6px; }
.icon-button:hover { background: #f1f4f9; color: #273a55; }
.workspace { margin-left: 232px; min-height: 100vh; display: flex; flex-direction: column; }
.topbar { height: 65px; padding: 0 32px; background: #fff; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 20px; position: sticky; top: 0; z-index: 20; }
.breadcrumbs { display: flex; align-items: center; gap: 12px; color: #637087; font-size: .76rem; min-width: 0; white-space: nowrap; }
.breadcrumbs a { color: #344054; }
.breadcrumb-home { color: #8992a3; }
.breadcrumb-divider { color: #c0c6d0; }
.breadcrumb-detail { display: flex; align-items: center; gap: 12px; overflow: hidden; text-overflow: ellipsis; }
.topbar-tools { display: flex; align-items: center; gap: 19px; }
.currency-chip { display: inline-flex; align-items: center; gap: 9px; color: #566277; background: #f8fafc; border: 1px solid #e8ebf0; border-radius: 6px; font-size: .68rem; padding: 6px 10px; white-space: nowrap; }
.currency-chip strong { color: #394b68; font-size: .69rem; font-weight: 650; }
.currency-chip:hover { background: #eff4fd; text-decoration: none; }
.mobile-menu { display: none; }
main { width: 100%; max-width: 1570px; min-width: 0; padding: 30px 32px 14px; margin: 0 auto; flex: 1; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 25px; }
.page-heading .muted { margin: 0; }
.page-heading > div:first-child { min-width: 0; }
.eyebrow { color: #738198; font-size: .7rem; font-weight: 600; margin-bottom: 6px; letter-spacing: .035em; }
.muted, .help { color: var(--muted); font-size: .8rem; font-weight: 400; }
.help { font-size: .73rem; line-height: 1.7; margin-top: 8px; margin-bottom: 18px; }
.field-note { color: #778297; font-size: .72rem; margin: 7px 0 0; line-height: 1.65; }
.normal-weight { font-weight: 500; }
.warning-text { color: #b77920 !important; }
.panel { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 23px 24px; margin-bottom: 24px; box-shadow: 0 1px 3px #17243b04, 0 1px 2px #17243b03; min-width: 0; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section-heading h2, .section-heading p { margin: 0; }
.section-heading > div { min-width: 0; }
.section-heading > div > p { margin-top: 5px; }
.count-pill { font-size: .7rem; line-height: 1.3; font-weight: 500; color: #718098; background: #f2f4f7; border: 1px solid #e8ebf0; border-radius: 5px; padding: 2px 6px; vertical-align: middle; margin-left: 5px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.stat { display: block; color: inherit; padding: 19px 22px; position: relative; }
a.stat:hover { text-decoration: none; border-color: #bdcdec; }
.stat > span:first-child { display: block; font-size: .75rem; font-weight: 500; color: #69758a; }
.stat strong { display: block; font-size: 1.75rem; line-height: 1.3; color: #243349; font-weight: 650; margin: 11px 0 8px; letter-spacing: -.03em; }
.stat small { color: #7b879a; font-size: .67rem; }
.stat-icon { position: absolute; right: 20px; top: 18px; display: grid; place-items: center; width: 31px; height: 31px; border-radius: 7px; background: #edf4ff; color: #5284df; }
.compact-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.compact-stats .stat { display: grid; grid-template-columns: 1fr auto; align-items: center; padding-top: 17px; padding-bottom: 17px; }
.compact-stats .stat strong { grid-column: 2; grid-row: 1 / 3; margin: 0 0 0 20px; font-size: 1.6rem; }
.compact-stats .stat small { margin-top: 5px; }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(270px, 1fr); gap: 24px; }
.dashboard-context { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin: -8px 0 18px; font-size: .74rem; color: var(--muted); }
.dashboard-stats .stat { min-width: 0; }
.dashboard-stats .stat strong { font-size: clamp(1.15rem, 2vw, 1.8rem); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.dashboard-periods { display: inline-flex; flex-shrink: 0; padding: 3px; gap: 3px; border: 1px solid var(--border); border-radius: 7px; background: #f8fafc; }
.dashboard-periods a { color: #667085; font-size: .75rem; padding: 7px 13px; border-radius: 5px; }
.dashboard-periods a[aria-current] { background: #fff; color: var(--accent); box-shadow: 0 1px 3px #17243b15; font-weight: 600; }
.dashboard-period-totals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-block: 1px solid var(--border); padding-block: 18px; margin-bottom: 20px; }
.dashboard-period-totals > div + div { border-left: 1px solid var(--border); padding-left: 24px; }
.dashboard-period-totals span, .dashboard-period-totals small { display: block; font-size: .72rem; color: var(--muted); font-weight: 400; }
.dashboard-period-totals strong { display: block; margin: 5px 0; font-size: 1.3rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.dashboard-period-totals small { display: inline; }
.dashboard-chart-caption { display: flex; justify-content: space-between; gap: 12px; font-size: .7rem; color: var(--muted); }
.dashboard-chart { display: block; width: 100%; height: clamp(160px, 20vw, 250px); }
.dashboard-chart-axis { display: flex; justify-content: space-between; padding-inline: 2.93%; color: #7c879a; font-size: .72rem; font-variant-numeric: tabular-nums; }
.chart-grid, .chart-line, .chart-point { vector-effect: non-scaling-stroke; }
.chart-grid { fill: none; stroke: #e8edf4; stroke-dasharray: 4 5; }
.chart-area { fill: #2563eb0c; }
.chart-line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; }
.chart-point { fill: #fff; stroke: var(--accent); stroke-width: 1.5; }
.dashboard-zero { color: var(--muted); font-size: .76rem; margin: 16px 0 -8px; }
.dashboard-daily { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 12px; }
.dashboard-daily summary, .dashboard-definitions summary { cursor: pointer; color: #586780; font-size: .76rem; }
.dashboard-daily .table-scroll { margin-top: 12px; }
.dashboard-lower-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.dashboard-tasks a { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid #edf0f4; color: #475467; font-size: .8rem; }
.dashboard-tasks a:last-child { border: 0; padding-bottom: 0; }
.dashboard-tasks small { display: block; margin-top: 3px; color: #8490a3; font-size: .68rem; }
.dashboard-tasks strong { font-size: 1.15rem; font-weight: 600; }
.dashboard-tasks .task-attention { color: #b77920; }
.dashboard-products { padding: 0; list-style: none; counter-reset: products; }
.dashboard-products li { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid #edf0f4; counter-increment: products; }
.dashboard-products li::before { content: counter(products); color: #8190a6; background: #f3f6fb; border-radius: 5px; padding: 3px 8px; font-size: .72rem; }
.dashboard-products li > div:first-child { flex: 1; min-width: 0; }
.dashboard-products strong { display: block; font-size: .79rem; font-weight: 550; overflow-wrap: anywhere; }
.dashboard-products small { display: block; color: var(--muted); font-size: .68rem; margin-top: 4px; }
.dashboard-definitions { padding: 0 2px 18px; color: var(--muted); font-size: .73rem; line-height: 1.8; }
.dashboard-definitions p { margin: 10px 0 0; }
@media (max-width: 680px) {
    .dashboard-trend .section-heading { align-items: flex-start; flex-wrap: wrap; gap: 12px; }
    .dashboard-periods a { min-height: 38px; padding: 9px 14px; }
    .dashboard-lower-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .dashboard-period-totals > div + div { padding-left: 14px; }
    .dashboard-period-totals strong { font-size: 1.05rem; }
    .dashboard-page .list-panel .section-heading { align-items: flex-start; flex-wrap: wrap; gap: 10px; }
    .dashboard-page .list-panel .section-heading > a { font-size: .75rem; }
}
.quick-links { display: flex; flex-direction: column; gap: 3px; }
.quick-links a { display: flex; align-items: center; gap: 13px; padding: 13px 0; color: #344054; border-bottom: 1px solid #edf0f4; }
.quick-links a:last-child { border-bottom: 0; }
.quick-links a:hover { text-decoration: none; color: var(--accent); }
.quick-links a > span:last-child { margin-left: auto; color: #98a2b3; }
.quick-links strong { display: block; font-size: .8rem; font-weight: 550; }
.quick-links small { color: #7c879a; display: block; font-size: .7rem; margin-top: 3px; }
.overview-note { font-size: .75rem; line-height: 1.8; color: #667085; margin-bottom: 0; }
.channel-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.channel-summary > div { border: 1px solid #e8edf4; border-radius: 8px; padding: 16px; }
.channel-summary strong { display: block; color: #344054; font-size: 1.3rem; margin-top: 9px; }
.table-scroll { overflow-x: auto; min-width: 0; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .79rem; }
th { background: #f8fafc; color: #758198; font-size: .69rem; font-weight: 550; white-space: nowrap; }
td, th { border-bottom: 1px solid #edf0f4; padding: 15px 15px; vertical-align: middle; }
td { overflow-wrap: anywhere; color: #475467; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fcfdff; }
.list-panel { padding: 0; overflow: hidden; }
.list-panel > .section-heading { padding: 21px 24px 19px; margin: 0; }
.list-panel .table-scroll { border-top: 1px solid #edf0f4; }
.list-panel td:first-child, .list-panel th:first-child { padding-left: 24px; }
.list-panel td:last-child, .list-panel th:last-child { padding-right: 24px; }
.table-footer { padding: 15px 24px; border-top: 1px solid #edf0f4; color: #8390a3; font-size: .69rem; }
.table-actions { text-align: right; white-space: nowrap; }
.table-actions .button + .button { margin-left: 4px; }
.align-right { text-align: right; }
.nowrap { white-space: nowrap; }
.title-link { font-size: .8rem; color: #344054; font-weight: 550; }
.title-link:hover { color: var(--accent); }
.subline { display: block; color: #8993a4; font-size: .67rem; line-height: 1.55; margin-top: 4px; }
.entity-cell { display: flex; align-items: center; gap: 11px; min-width: 0; }
.entity-cell > div { min-width: 0; }
.entity-icon { display: grid; place-items: center; width: 36px; height: 37px; border-radius: 8px; flex-shrink: 0; background: #eff4fd; color: #648acc; }
.entity-icon.violet { background: #f2effb; color: #8b72bd; }
.entity-icon.mint { background: #eaf7f1; color: #5a9e82; }
.entity-icon.amber { background: #fcf4e8; color: #c09a56; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; color: #208461; background: #edf8f2; border-radius: 5px; font-size: .68rem; white-space: nowrap; font-weight: 500; }
.badge.off { color: #8791a1; background: #f1f3f6; }
.badge.blue { color: #517ec0; background: #eff4fc; }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.price-pair { display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; min-width: 0; max-width: 100%; }
.price-pair .primary, .price-primary { color: #25364e; font-size: .81rem; font-weight: 600; overflow-wrap: anywhere; }
.price-pair .secondary, .price-secondary { color: #667085; font-size: .72rem; margin-top: 5px; overflow-wrap: anywhere; font-weight: 400; }
.price-pair .currency-code { font-size: .66rem; color: #768299; margin-left: 3px; font-weight: 500; }
.price-pair .unavailable { font-size: .65rem; color: #98a2b3; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 7px; padding: 9px 15px; border: 1px solid var(--accent); border-radius: 6px; background: var(--accent); color: #fff; font-size: .77rem; line-height: 1.5; font-weight: 550; min-height: 38px; white-space: nowrap; box-shadow: 0 1px 2px #17243b0a; }
.button:hover { text-decoration: none; background: #1d55cc; }
.button.secondary { background: #fff; color: #4a5870; border-color: #dce1e9; }
.button.secondary:hover { background: #f7f9fc; border-color: #c7d1e1; }
.button.ghost { color: #637188; background: transparent; border-color: transparent; box-shadow: none; }
.button.ghost:hover { background: #f1f4f9; color: #344054; }
.button.danger { color: #ad5353; border-color: #eccfcf; background: #fff; }
.button.small { min-height: 31px; padding: 5px 10px; font-size: .69rem; }
.full { width: 100%; }
.text-button { border: 0; background: none; color: var(--muted); padding: 0; }
.header-actions, .actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.page-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.editor-form > label:not(.check) { margin-top: 18px; }
.editor-form > label:has(> input[type=checkbox]) { display: flex; gap: 9px; align-items: flex-start; line-height: 1.6; }
.editor-form > label > input[type=checkbox] { margin-top: 2px; }
.editor-page { max-width: 1040px; margin-inline: auto; }
.notice.info { color: #1d4ed8; border-color: #bfdbfe; background: #eff6ff; }
.report-error { display: block; margin-top: 6px; color: #a24949; font-size: .75rem; }
.report-error.field-validation-valid { display: none; }
.report-footnote { color: var(--muted); font-size: .73rem; line-height: 1.7; margin: -8px 2px 24px; }
.report-page { max-width: none; }
.report-form .section-heading { flex-wrap: wrap; gap: 12px; }
.report-form .section-heading .actions { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.report-filter-primary, .report-order-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 24px; }
.report-filter-primary > div, .report-order-grid > div { min-width: 0; }
.report-kind { max-width: none; }
.report-filter-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 16px 0; }
.report-presets { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.report-filter-bottom .field-note { margin: 0; }
#report-order-filters { border-top: 1px solid var(--border); padding-top: 16px; }
#report-order-filters > summary { width: fit-content; cursor: pointer; font-size: .78rem; color: #475467; }
.report-order-grid { margin-top: 18px; }
.report-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.report-summary .panel { padding: 19px 22px; }
.report-summary span { color: #667085; font-size: .77rem; }
.report-summary strong { display: block; color: #243349; font-size: clamp(1.3rem, 2vw, 1.8rem); font-weight: 650; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; margin: 10px 0 5px; }
.report-summary small { font-size: .72rem; font-weight: 400; color: #667085; }
.report-summary p { color: #7b879a; font-size: .7rem; margin: 0; }
.report-results .section-heading { flex-wrap: wrap; gap: 12px; }
.report-results .help { margin-bottom: 0; }
.report-table-scroll { max-height: 660px; }
#report-table { min-width: 920px; }
#report-table th { position: sticky; top: 0; z-index: 1; padding-block: 13px; }
#report-table td { padding-block: 17px; vertical-align: top; max-width: 300px; }
.report-id { display: inline-block; font: .72rem/1.65 Consolas, monospace; max-width: 17ch; overflow-wrap: anywhere; }
.report-number { white-space: nowrap; font-variant-numeric: tabular-nums; color: #25364e; font-weight: 550; }
.report-time { min-width: 110px; font-variant-numeric: tabular-nums; }
.report-more { min-width: 115px; }
.report-more summary { color: var(--accent); cursor: pointer; white-space: nowrap; font-size: .73rem; }
.report-more details[open] { width: 260px; }
.report-more dl { margin: 14px 0 0; font-size: .73rem; }
.report-more dl > div { border-bottom: 1px solid #edf0f4; padding: 7px 0; }
.report-more dt { color: #7b879a; font-size: .68rem; }
.report-more dd { margin: 3px 0 0; overflow-wrap: anywhere; }
.report-empty { text-align: center; padding: 48px 20px; border-top: 1px solid var(--border); }
.report-empty strong { color: #475467; font-weight: 550; }
.report-empty p { margin: 8px 0 18px; color: #7b879a; font-size: .78rem; }
@media (max-width: 1100px) {
    .report-order-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .report-summary { gap: 12px; }
    .report-summary .panel { padding: 16px; }
}
@media (max-width: 680px) {
    .report-filter-primary, .report-order-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .report-form .section-heading { align-items: flex-start; }
    .report-form .section-heading .actions { width: 100%; }
    .report-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 20px; }
    .report-summary .panel { margin: 0; }
    .report-summary .panel:last-child { grid-column: 1 / -1; }
    .report-summary strong { font-size: 1.45rem; }
    .report-footnote { margin-top: 0; }
}

.editor-page > .page-heading { align-items: flex-start; }
.field-stack { display: grid; gap: 22px; }
.field-stack .help, .field-grid .help { margin-bottom: 0; }
.field-section { min-width: 0; margin: 24px 0 0; padding: 22px 0 0; border: 0; border-top: 1px solid var(--border); }
.field-section legend { float: left; padding: 0; font-size: .82rem; font-weight: 600; }
.field-section legend + * { clear: both; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice-row { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 14px; border: 1px solid var(--border); border-radius: 7px; cursor: pointer; line-height: 1.5; }
.choice-row:has(:checked) { border-color: #8daff0; background: #f5f8ff; }
.choice-row input { margin-top: 2px; }
.choice-row span { min-width: 0; overflow-wrap: anywhere; }
.choice-row small { display: block; color: var(--muted); font-size: .7rem; font-weight: 400; margin-top: 4px; }
.section-tabs { display: flex; align-items: center; gap: 24px; overflow-x: auto; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.section-tabs a { padding: 12px 0; border-bottom: 2px solid transparent; color: #667085; font-size: .8rem; white-space: nowrap; }
.section-tabs a[aria-current=page], .section-tabs a.active { border-color: var(--accent); color: var(--accent); font-weight: 600; }
.section-tabs a:hover { text-decoration: none; color: var(--accent); }
.provider-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.provider-card { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 24px; color: var(--text); border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.provider-card:hover { border-color: #8daff0; background: #fcfdff; text-decoration: none; }
.provider-card h2 { margin: 0; }
.provider-card p { color: #667085; font-size: .8rem; line-height: 1.7; margin: 0 0 6px; }
.provider-next { margin-top: auto; color: var(--accent); font-size: .78rem; }
.pagination { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.pagination > div { display: flex; gap: 8px; }
.row-details { font-size: .75rem; min-width: 0; }
.row-details summary { color: var(--accent); cursor: pointer; padding: 7px 0; }
.row-details dl { max-width: 260px; font-size: .7rem; }
.row-details dt { color: var(--muted); margin-top: 9px; }
.row-details dd { margin: 4px 0 0; overflow-wrap: anywhere; }
.badge.warning { color: #9a6018; background: #fff5df; }
.actions { margin-top: 23px; }
.actions > a:not(.button) { font-size: .76rem; color: #687891; }
.save-bar { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 17px 0; border-top: 1px solid #e7ebf1; }
.save-bar > .muted { margin-right: auto; }
.toolbar { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; padding: 18px 24px; border-top: 1px solid #edf0f4; }
.toolbar > div { min-width: 140px; }
.toolbar .search-field { flex: 1; min-width: 180px; }
.toolbar label { font-size: .69rem; color: #7b879b; }
.toolbar input, .toolbar select { min-width: 0; }
.notice, .validation { font-size: .77rem; line-height: 1.65; padding: 13px 16px; border: 1px solid #efd4d4; border-radius: 7px; background: #fff5f5; color: #a24949; margin-bottom: 22px; overflow-wrap: anywhere; }
.notice.success { background: #effaf4; border-color: #ccebd9; color: #2e7b55; }
.wallet-form .save-bar { position: static; }
.notice.info { background: #f0f5ff; border-color: #d9e6fc; color: #5072a9; }
.notice p:last-child { margin-bottom: 0; }
.validation ul { margin: 0; padding-left: 19px; }
.validation:empty, .validation.validation-summary-valid { display: none; }
label { display: block; font-size: .77rem; font-weight: 550; color: #475467; margin: 0 0 7px; }
input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select, textarea { width: 100%; min-width: 0; padding: 9px 11px; border: 1px solid #dce1e9; border-radius: 6px; background: #fff; color: #344054; font-size: .8rem; box-shadow: 0 1px 2px #17243b04; line-height: 1.5; }
input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select { min-height: 39px; }
input::placeholder, textarea::placeholder { color: #a2abba; }
input[readonly] { color: #8791a3 !important; background: #f8fafc !important; }
input.input-validation-error, select.input-validation-error, textarea.input-validation-error { border-color: #c37676; }
textarea { resize: vertical; min-height: 94px; }
input[type=checkbox], input[type=radio] { width: 17px; height: 17px; accent-color: var(--accent); flex-shrink: 0; margin: 0; }
.check { display: flex; align-items: flex-start; gap: 9px; margin-top: 13px; margin-bottom: 9px; line-height: 1.65; font-weight: 500; }
.check input { margin-top: 2px; }
.form-grid, .field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.field-wide { grid-column: 1 / -1; }
.form-aside { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(255px, 1fr); gap: 24px; align-items: start; }
.split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(285px, 1fr); gap: 24px; align-items: start; }
.panel > h2 { margin-bottom: 20px; }
.panel .form-description { color: #7b879b; font-size: .75rem; margin-top: -10px; margin-bottom: 20px; }
.small-input { max-width: 150px; }
.inline-form { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.inline-form input { max-width: 210px; }
.inline-form .check { margin: 0; }
.details-section { margin-top: 23px; border-top: 1px solid var(--border); padding-top: 22px; }
.key { font-family: Consolas, monospace; color: #2f745a; background: #f1f8f4; border: 1px solid #ddece2; border-radius: 7px; padding: 16px; font-size: .86rem; user-select: all; white-space: pre-wrap; overflow-wrap: anywhere; }
.setting-tabs { display: flex; gap: 24px; border-bottom: 1px solid #dde3ec; margin-bottom: 24px; }
.setting-tabs a { display: block; color: #78859a; font-size: .8rem; padding: 0 2px 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.setting-tabs a.active { border-color: var(--accent); color: var(--accent); font-weight: 600; }
.setting-tabs a:hover { text-decoration: none; color: var(--accent); }
.settings-row { display: grid; grid-template-columns: minmax(230px, 1fr) minmax(0, 2fr); gap: 36px; }
.settings-intro { padding-top: 4px; }
.settings-intro p { color: #7b879b; font-size: .76rem; line-height: 1.85; }
.setting-current { display: flex; gap: 14px; align-items: center; padding: 17px; margin-bottom: 23px; border: 1px solid #e5ebf3; border-radius: 8px; background: #fafcff; }
.setting-current > div { min-width: 0; }
.setting-current strong { display: block; font-size: .8rem; }
.setting-current p { margin: 4px 0 0; font-size: .72rem; color: #8290a4; }
.empty { padding: 20px; font-size: .8rem; text-align: center; color: #8390a3; }
.empty-state { text-align: center; padding: 46px 24px; color: #8390a3; }
.empty-state h3 { color: #475467; font-size: .9rem; margin-top: 17px; }
.empty-state p { font-size: .76rem; line-height: 1.8; margin: 8px 0 22px; }
.empty-symbol { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; color: #90a0b9; background: #f1f4f8; font-size: 1.5rem; }
.current-version { font-size: .68rem; color: #91a0b4; }
.compact { margin-bottom: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.heading-count { display: inline-block; font-size: .73rem; line-height: 1.4; padding: 3px 8px; margin-left: 4px; border-radius: 5px; color: #77859b; background: #eaf0f7; font-weight: 500; vertical-align: middle; letter-spacing: 0; }
.product-item { display: flex; align-items: center; gap: 12px; min-width: 0; }
.product-item > div { min-width: 0; }
.product-avatar { display: grid; place-items: center; flex-shrink: 0; width: 39px; height: 41px; border-radius: 8px; background: #f8edf0; color: #b87489; font-size: .65rem; padding: 5px; overflow: hidden; overflow-wrap: anywhere; }
.product-avatar.violet { background: #f0edf9; color: #8f7cba; }
.product-avatar.blue { background: #edf3fc; color: #7b96bf; }
.product-avatar.amber { background: #fbf3e6; color: #b89760; }
.product-avatar.mint { background: #eaf7f0; color: #679c82; }
.table-context { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 16px 0; font-size: .68rem; color: #8a95a7; }
.table-context a { margin-left: 8px; color: #6c83a7; }
.panel > .toolbar { padding: 0 0 18px; border: 0; border-bottom: 1px solid #edf0f4; }
.list-panel > .toolbar { padding: 18px 24px; border: 0; }
.row-action { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; font-size: .72rem; padding: 5px 10px; border: 1px solid #e0e6ef; border-radius: 5px; color: #627798; background: #fff; white-space: nowrap; }
.row-action:hover { text-decoration: none; color: var(--accent); border-color: #c1d3f1; background: #f9fbff; }
.text-link { display: inline-flex; min-height: 38px; align-items: center; font-size: .75rem; color: #7386a4; }
.context-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 13px; padding: 15px 18px; border: 1px solid #dce6f6; border-radius: 8px; background: #f2f6fd; margin-bottom: 24px; font-size: .77rem; }
.context-label { color: #7d90ad; font-size: .7rem; }
.context-strip > strong { color: #47638c; font-size: .78rem; font-weight: 550; }
.context-currency { margin-left: auto; font-size: .69rem; color: #5d7ba7; }
.context-strip > .muted { font-size: .65rem; color: #8b9db7; }
.saved-price { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 0; margin-bottom: 12px; border-bottom: 1px solid #edf0f4; }
.saved-price > .help { margin: 0; font-size: .69rem; color: #8895a9; }
.selected-row, tbody tr.selected-row:hover { background: #f2f7ff; }
#pricing, #category-editor, #currency-editor { scroll-margin-top: 88px; }
.pricing-panel h3 { line-height: 1.7; }
.login-page .workspace { margin-left: 0; }
.login-page .topbar { position: static; justify-content: center; height: 110px; background: transparent; border: 0; }
.login-page main { padding-top: 25px; }
.login-card { width: min(430px, 100%); margin: 10px auto 60px; padding: 34px; border-radius: 12px; box-shadow: 0 12px 35px #17243b07; }
.login-card h1 { font-size: 1.45rem; }
.login-card label { margin-top: 22px; }
.login-card .button { margin-top: 24px; min-height: 43px; }
.login-card .help { margin: 25px 0 0; padding-top: 22px; border-top: 1px solid #e9edf3; }
footer { color: #8b96a7; font-size: .65rem; text-align: center; padding: 17px 24px 24px; }
@media (max-width: 1200px) {
    .topbar { padding: 0 25px; }
    main { padding: 27px 25px 12px; }
    .stats { gap: 15px; }
    .stat { padding: 18px; }
    .stat-icon { right: 16px; }
    .form-aside, .split { grid-template-columns: minmax(0, 1.4fr) minmax(250px, 1fr); gap: 20px; }
    .overview-grid { grid-template-columns: minmax(0, 1.4fr) minmax(250px, 1fr); gap: 20px; }
    .panel { padding: 21px; }
    .list-panel { padding: 0; }
    .table-actions .button.small { padding-left: 7px; padding-right: 7px; }
    .settings-row { grid-template-columns: minmax(200px, 1fr) minmax(0, 2fr); gap: 25px; }
}
@media (max-width: 1050px) {
    .stats:not(.compact-stats) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .form-aside, .split, .overview-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .overview-grid .panel { margin-bottom: 24px; }
    .settings-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .settings-intro { max-width: 640px; }
    .breadcrumb-detail { display: none; }
}
@media (max-width: 1100px) {
    .split { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
@media (max-width: 900px) {
    .sidebar { display: none; }
    .workspace { margin-left: 0; }
    .topbar { height: 64px; padding: 0 20px; gap: 16px; }
    .breadcrumbs { margin-right: auto; gap: 10px; }
    .breadcrumb-home, .breadcrumbs > .breadcrumb-divider { display: none; }
    .mobile-menu { display: block; }
    .mobile-menu summary { display: flex; align-items: center; justify-content: center; gap: 6px; list-style: none; height: 44px; cursor: pointer; color: #5b6d87; font-size: .72rem; }
    .mobile-menu summary::-webkit-details-marker { display: none; }
    .mobile-menu[open] summary { color: var(--accent); }
    .mobile-menu-content { position: absolute; left: 0; right: 0; top: 64px; max-height: calc(100dvh - 64px); overflow-y: auto; padding: 18px 20px 23px; background: #fff; border-top: 1px solid #e9edf3; border-bottom: 1px solid #d8e0ed; box-shadow: 0 20px 30px #22365217; }
    .mobile-menu-content .brand { margin: 0 10px 20px; }
    .mobile-menu-content .nav-link { min-height: 48px; margin-bottom: 7px; }
    .mobile-menu-content form { margin: 17px 10px 0; }
    .topbar-tools { gap: 14px; }
    main { padding: 24px 20px 10px; }
}
@media (max-width: 680px) {
    .provider-grid, .choice-grid { grid-template-columns: minmax(0, 1fr); }
    .provider-card { padding: 20px; gap: 12px; }
    .page-actions { width: 100%; }
    .page-actions > .button { flex: 1; }
    .section-tabs { gap: 20px; margin-bottom: 20px; }
    .editor-page .save-bar { flex-wrap: wrap; }
    .editor-page .save-bar > .button { flex: 1; }
    .editor-page .save-bar > .muted { flex-basis: 100%; }
    .table-cards .row-details { text-align: left; }
    h1 { font-size: 1.35rem; }
    h2 { font-size: .93rem; }
    .topbar { padding: 0 16px; gap: 13px; }
    .breadcrumbs { font-size: .74rem; }
    .header-avatar { display: none; }
    .currency-chip { padding: 5px 8px; gap: 6px; font-size: .7rem; min-height: 44px; }
    .currency-chip strong { font-size: .66rem; }
    .mobile-menu summary span { display: none; }
    .mobile-menu summary { width: 44px; }
    .mobile-menu-content { padding: 18px 14px 20px; }
    main { padding: 23px 16px 8px; }
    .page-heading { align-items: stretch; flex-direction: column; gap: 16px; margin-bottom: 22px; }
    .page-heading .button { align-self: flex-start; }
    .page-heading .header-actions { width: 100%; }
    .page-heading .header-actions .button { flex: 1; }
    .muted { font-size: .77rem; line-height: 1.7; }
    .panel { padding: 19px 18px; border-radius: 9px; margin-bottom: 20px; }
    .stats { gap: 12px; }
    .stat { padding: 16px; margin-bottom: 12px; }
    .stat > span:first-child { font-size: .7rem; }
    .stat strong { font-size: 1.65rem; margin-top: 13px; }
    .stat small { font-size: .63rem; }
    .stat-icon { position: static; width: 27px; height: 27px; margin-top: 8px; float: right; }
    .stat-icon svg { width: 17px; height: 17px; }
    .compact-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
    .compact-stats .stat { display: block; padding: 13px 12px; }
    .compact-stats .stat strong { font-size: 1.5rem; margin: 10px 0 0; }
    .compact-stats .stat small { display: none; }
    .section-heading { gap: 10px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 16px; }
    .section-heading > .muted { font-size: .68rem; }
    .list-panel { padding: 0; background: transparent; border: 0; box-shadow: none; overflow: visible; }
    .list-panel > .section-heading { padding: 0 0 13px; }
    .list-panel .table-scroll { border: 0; }
    .table-scroll:has(.table-cards) { overflow: visible; }
    .table-cards, .table-cards tbody, .table-cards tr, .table-cards td { display: block; width: 100%; }
    .table-cards thead { display: none; }
    .table-cards tbody tr { border: 1px solid var(--border); background: #fff; border-radius: 9px; padding: 5px 16px 7px; margin-bottom: 13px; box-shadow: 0 1px 3px #17243b04; }
    .table-cards td { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 12px; align-items: start; padding: 10px 0 !important; border-bottom: 0; text-align: right; font-size: .875rem; }
    .table-cards td::before { content: attr(data-label); color: #667085; font-size: .8rem; text-align: left; padding-top: 1px; }
    .table-cards td:first-child { display: block; padding: 13px 0 14px !important; margin-bottom: 5px; border-bottom: 1px solid #eef1f6; text-align: left; }
    .table-cards td:first-child::before { display: none; }
    .table-cards td > .badge, .table-cards td > .price-pair, .table-cards td > .subline, .table-cards td > strong { justify-self: end; }
    .table-cards td:not(:first-child) > .subline:not(:first-child) { grid-column: 2; margin-top: -8px; }
    .table-cards td.table-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding-top: 13px !important; margin-top: 6px; border-top: 1px solid #eef1f6; }
    .table-cards td.table-actions::before { margin-right: auto; }
    .table-actions .button + .button { margin-left: 0; }
    .table-footer { padding: 3px 0 10px; border: 0; font-size: .65rem; }
    .title-link { font-size: .875rem; }
    .entity-icon { width: 36px; height: 38px; }
    .badge { font-size: .75rem; }
    .price-pair .primary, .price-primary { font-size: .94rem; }
    .price-pair .secondary, .price-secondary { font-size: .75rem; }
    .button, .button.small, .icon-button { min-height: 44px; }
    .button { font-size: .77rem; padding: 10px 15px; }
    .button.small { font-size: .72rem; padding: 8px 12px; }
    .actions { gap: 10px; }
    .save-bar { position: sticky; bottom: 0; background: #fff; padding: 13px 0 max(13px, env(safe-area-inset-bottom)); z-index: 5; margin-top: 18px; }
    .save-bar .button { flex: 1; }
    .save-bar > .muted { display: none; }
    .editor-page .save-bar { position: static; }
    .toolbar { padding: 15px; gap: 12px; background: #fff; border: 1px solid var(--border); border-radius: 9px; margin-bottom: 16px; }
    .toolbar > div, .toolbar .search-field { flex: 1 1 100%; min-width: 0; }
    .toolbar .button { flex: 1; }
    .panel > .toolbar { margin-bottom: 0; padding-bottom: 17px; border-radius: 0; }
    .list-panel > .toolbar { padding: 16px; margin-bottom: 16px; border: 1px solid var(--border); border-radius: 9px; }
    .row-action { min-height: 44px; padding: 9px 13px; }
    .table-context { padding: 15px 0; font-size: .67rem; gap: 7px; }
    .table-context > span:last-child { width: 100%; }
    .context-strip { padding: 14px; gap: 6px 10px; margin-bottom: 20px; }
    .context-label { font-size: .67rem; }
    .context-strip > strong { max-width: 100%; overflow-wrap: anywhere; }
    .context-currency { width: 100%; margin: 6px 0 0; }
    .context-strip > .muted { margin-top: 0; }
    .saved-price { gap: 10px; }
    input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select, textarea { font-size: 16px; }
    input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select { min-height: 44px; }
    .form-grid, .field-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .field-wide { grid-column: auto; }
    .form-aside, .split, .overview-grid { gap: 0; }
    .check { min-height: 44px; padding: 4px 0; }
    .help, .field-note { font-size: .73rem; }
    .notice, .validation { padding: 12px 14px; font-size: .75rem; }
    .setting-tabs { gap: 20px; margin-bottom: 22px; }
    .setting-tabs a { font-size: .76rem; }
    .settings-intro p { margin-bottom: 20px; }
    .setting-current { padding: 14px; }
    .channel-summary { gap: 12px; }
    .login-page .topbar { height: 95px; }
    .login-page main { padding-top: 15px; }
    .login-card { margin-top: 0; padding: 27px 23px; }
    footer { padding: 18px 16px 24px; font-size: .62rem; }
}
/* Shared by inventory and the original order delivery view; preserve and wrap the complete card text. */
.inventory-card-content{display:block;min-width:0;max-width:100%;max-height:14rem;margin:0;padding:10px 12px;border:1px solid var(--border);border-radius:6px;background:#f8fafc;color:#24324a;text-align:left;white-space:pre-wrap;overflow-wrap:anywhere;overflow:auto;tab-size:4;font:13px/1.7 ui-monospace,SFMono-Regular,Consolas,monospace;user-select:text}
.inventory-card-content code{padding:0;background:none;color:inherit;font:inherit;white-space:inherit;overflow-wrap:inherit}
.inventory-card-content:focus-visible{outline:2px solid #2862ef;outline-offset:2px}
.inventory-card-unavailable{display:block;margin:0;font-size:12px}
