:root {
  color-scheme: light;
  --bo-page: #f1f7fa;
  --bo-paper: #fff;
  --bo-ink: #192b40;
  --bo-muted: #53667d;
  --bo-line: #dae5ef;
  --bo-track: #eaf0f7;
  --bo-accent: #075cbd;
  --bo-accentwash: #e7f2ff;
  --bo-chart: #2f78d4;
  --bo-neutral: #677b95;
  --bo-red: #b33a34;
  --bo-green: #17694f;
  --bo-control-height: 34px;
  --bo-control-radius: 4px;
  --bo-control-line: #c8d6e4;
  --bo-focus-ring: 0 0 0 2px rgb(7 92 189 / 17%);
  --top-height: 52px;
  --gutter: 26px;
}
* { box-sizing: border-box }
[hidden] { display: none !important }
body { margin: 0; background: var(--bo-page); color: var(--bo-ink); font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif }
h1, h2, h3, p { margin: 0 }
button, input, select { font: inherit; color: inherit }
button, select { cursor: pointer }
a { color: var(--bo-accent) }
:focus-visible { outline: 2px solid var(--bo-chart); outline-offset: 2px }
.bo-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap }
.bo-shell { min-height: 100dvh }
.bo-top { position: sticky; top: 0; z-index: 10; display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 16px; height: var(--top-height); padding: 0 20px; background: linear-gradient(100deg, #0064c7, #006ed3); color: #fff }
.bo-brand { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; white-space: nowrap }
.bo-logo, .bo-menu { display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 5px; background: rgb(255 255 255 / 18%); color: inherit }
.bo-menu { display: none }
.bo-top-source { justify-self: end; font-size: 12px; white-space: nowrap }
.bo-icon { width: 16px; height: 16px; vertical-align: middle; flex: none }
.bo-nav { display: flex; align-self: stretch; gap: 3px }
.bo-nav button { position: relative; flex: none; display: flex; align-items: center; gap: 7px; margin: 6px 0; padding: 0 12px; border: 0; border-radius: 4px; background: transparent; color: #fff; white-space: nowrap }
.bo-nav button:hover { background: rgb(255 255 255 / 13%) }
.bo-nav button[aria-current] { background: rgb(255 255 255 / 24%); font-weight: 700 }
.bo-nav button:focus-visible, .bo-menu:focus-visible { outline-color: #fff; outline-offset: -2px }
.bo-main { min-width: 0; padding: 4px var(--gutter) 30px }
.bo-heading, .bo-toolbar { display: flex; align-items: center; gap: 12px }
.bo-heading { position: sticky; top: var(--top-height); z-index: 4; padding: 8px 0; border-bottom: 1px solid var(--bo-line); margin-bottom: 14px; background: var(--bo-page) }
.bo-page-identity { display: flex; align-items: center; gap: 10px; flex: none }
.bo-shop { color: var(--bo-muted); font-size: 12px; padding-left: 10px; border-left: 1px solid #cedbe8 }
h1 { font-size: 25px; font-weight: 700; line-height: 1.25 }
.bo-toolbar { position: relative; justify-content: flex-end; flex-wrap: wrap; margin-left: auto }
.bo-dates { color: var(--bo-muted); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap }
select, input { min-height: 34px; padding: 4px 9px; border: 1px solid #c8d6e4; border-radius: 4px; background: var(--bo-paper); font-size: 13px }
select { color: var(--bo-ink); max-width: 100% }
.bo-fullscreen, .bo-query { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; padding: 4px 12px; border: 1px solid var(--bo-accent); border-radius: 4px; background: var(--bo-accent); color: #fff; white-space: nowrap; font-size: 13px }
.bo-fullscreen:hover, .bo-query:hover { background: #034f9d }
.bo-screen-hint { z-index: 5; position: absolute; top: calc(100% + 6px); right: 0; width: min(290px, 100%); padding: 9px 12px; background: var(--bo-paper); border: 1px solid var(--bo-line); border-radius: 4px; font-size: 12px }
.bo-directory { display: flex; align-items: center; overflow: auto; min-height: 37px; margin-inline-start: auto }
@media (width > 900px) {
  .bo-directory:not([hidden]) + .bo-toolbar { flex-wrap: nowrap; margin-inline-start: 0 }
}
.bo-directory button { position: relative; flex: none; padding: 8px 14px; border: 0; background: transparent; color: var(--bo-muted); font-size: 13px }
.bo-directory button + button::before { content: ""; position: absolute; left: 0; top: 11px; height: 14px; border-left: 1px solid #cedbe8 }
.bo-directory button:hover, .bo-directory button[aria-current] { color: var(--bo-accent) }
.bo-directory button[aria-current] { font-weight: 700 }
.bo-directory button[aria-current]::after { content: ""; position: absolute; bottom: 0; left: 14px; right: 14px; height: 2px; background: var(--bo-accent) }
[data-overview-section] { min-width: 0 }
.bo-title { display: flex; align-items: center; gap: 8px; color: var(--bo-accent); font-size: 16px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere }
.bo-title-icon { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 4px; background: var(--bo-accentwash) }
.bo-section-title { margin-bottom: 10px }
.bo-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px }
.bo-stat, .bo-panel { min-width: 0; background: var(--bo-paper); border: 1px solid var(--bo-line); border-radius: 6px }
.bo-stat { display: grid; align-content: start; gap: 7px; padding: 14px 15px; container-type: inline-size }
.bo-stat-label { font-weight: 600; color: var(--bo-muted); font-size: 13px }
.bo-value { font-size: clamp(14px, 12.7cqw, 29px); font-weight: 700; letter-spacing: -.025em; font-variant-numeric: tabular-nums; line-height: 1.17; white-space: nowrap }
.bo-compare { color: var(--bo-muted); font-size: 12px }
.bo-positive { color: var(--bo-green) }
.bo-negative { color: var(--bo-red) }
.bo-columns { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 14px; align-items: start }
.bo-columns-trend { grid-template-columns: minmax(0, 1.95fr) minmax(0, 1fr); align-items: stretch }
.bo-panel { padding: 14px 16px }
.bo-panel-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px 10px }
.bo-stack { display: grid; gap: 14px }
.bo-table-lead, .bo-empty { margin-top: 10px; color: var(--bo-muted); font-size: 12px; overflow-wrap: anywhere }
.bo-picker { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 9px 0 0; color: var(--bo-muted); font-size: 13px }
.bo-picker select { min-width: 0 }
.bo-inline, .bo-search { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px 10px }
.bo-picker > input { width: min(180px,100%); color: var(--bo-ink) }
.bo-inline + .bo-picker, .bo-picker + .bo-picker { margin-left: 10px }
.bo-chart { margin-top: 10px }
.bo-trend > svg { display: block; width: 100%; height: 255px }
.bo-trend .bo-axis-label { font: 11px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; fill: var(--bo-muted) }
.bo-xlabels { position: relative; height: 17px; margin: 0 4% 0 13%; color: var(--bo-muted); font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap }
.bo-xlabels span { position: absolute; left: var(--bo-axis-position); transform: translateX(-50%) }
.bo-cmark { fill: var(--bo-chart); stroke: var(--bo-paper); stroke-width: 2 }
.bo-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; color: var(--bo-muted); font-size: 12px }
.bo-legend span { display: inline-flex; align-items: center; gap: 7px }
.bo-legend span::before { content: ""; width: 16px; border-top: 2px solid var(--bo-chart) }
.bo-legend .bo-baseline::before { border-top: 2px dashed var(--bo-neutral) }
.bo-bars { display: grid; gap: 12px; margin-top: 15px }
.bo-columns-trend .bo-bars { gap: 9px }
.bo-barrow { display: grid; gap: 3px }
.bo-barlabel, .bo-channel-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 13px }
.bo-barlabel strong, .bo-channel-meta { font-variant-numeric: tabular-nums }
.bo-barlabel strong { white-space: nowrap }
.bo-channel-meta { font-size: 12px; color: var(--bo-muted) }
.bo-bartrack { height: 6px; background: var(--bo-track); border-radius: 3px; overflow: hidden }
.bo-barfill { display: block; height: 100%; background: var(--bo-chart); border-radius: inherit; animation: fill-in 360ms ease-out both; transform-origin: left }
@keyframes fill-in { from { transform: scaleX(0) } }
@media (prefers-reduced-motion: reduce) { .bo-barfill { animation: none } }
.bo-action, .bo-link, .bo-dialog-x { color: var(--bo-accent); background: transparent; border: 0; border-radius: 4px; min-height: 32px; padding: 4px 8px; font-size: 13px }
.bo-action:hover:enabled, .bo-link:hover, .bo-dialog-x:hover { background: var(--bo-accentwash) }
.bo-action:disabled { color: var(--bo-muted); opacity: .55; cursor: default }
.bo-tablewrap { overflow: auto; margin-top: 10px; max-height: 480px; border: 1px solid var(--bo-line); border-radius: 4px }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px }
th, td { height: 42px; border-bottom: 1px solid var(--bo-line); text-align: left; padding: 6px 10px; vertical-align: middle }
th { position: sticky; top: 0; z-index: 1; color: #405773; background: #edf4fb; font-weight: 650; white-space: nowrap }
.bo-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap }
.bo-status-cell { text-align: center; min-width: 100px }
tbody tr:last-child td { border-bottom: 0 }
tbody tr:hover td { background: #f6faff }
tbody tr.bo-selected td { background: var(--bo-accentwash) }
.bo-link { min-height: auto; padding: 1px 2px; text-align: left; line-height: 1.35; font-weight: 650; overflow-wrap: anywhere }
.bo-note { margin-top: 12px; border-left: 3px solid #8ab6eb; background: #f1f7ff; border-radius: 0 4px 4px 0; padding: 9px 11px; font-size: 12px }
.bo-note b { display: block; color: var(--bo-accent); margin-bottom: 2px }
.bo-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); margin: 10px 0 0; gap: 11px 18px }
.bo-facts div { min-width: 0; border-top: 1px solid var(--bo-line); padding-top: 7px }
.bo-facts dt, .bo-footrow { color: var(--bo-muted); font-size: 12px }
.bo-facts dd { margin: 2px 0 0; font-size: 16px; font-weight: 650; font-variant-numeric: tabular-nums; overflow-wrap: anywhere }
[data-overview-section="payment"] .bo-facts { grid-template-columns: repeat(4,minmax(0,1fr)) }
.bo-footrow { display: block; margin-top: 2px; white-space: nowrap }
.bo-pagination, .bo-row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 9px; margin-top: 8px }
.bo-pagination { justify-content: flex-end }
.bo-pagination small, .bo-footer { color: var(--bo-muted); font-size: 12px }
.bo-footer { margin-top: 18px; overflow-wrap: anywhere }
.bo-dialog { width: min(720px,calc(100% - 24px)); max-height: min(740px,calc(100dvh - 28px)); padding: 0; border: 1px solid var(--bo-line); border-radius: 8px; background: var(--bo-paper); color: var(--bo-ink); box-shadow: 0 16px 60px rgb(22 46 73 / 20%); overflow: hidden }
.bo-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto }
.bo-dialog::backdrop { background: rgb(22 46 73 / 38%) }
body:has(.bo-dialog[open]) { overflow: hidden }
.bo-dialog header, .bo-dialog footer { display: flex; gap: 10px; align-items: center; padding: 10px 16px; background: var(--bo-paper) }
.bo-dialog header { justify-content: space-between; border-bottom: 1px solid var(--bo-line) }
.bo-dialog footer { justify-content: flex-end; border-top: 1px solid var(--bo-line) }
.bo-dialog h2 { font-size: 16px; color: var(--bo-accent); overflow-wrap: anywhere }
.bo-dialog-x { font-size: 22px; line-height: 1 }
.bo-dialog-body { padding: 8px 16px 18px; overflow: auto }
@media (max-width: 1150px) {
  :root { --gutter: 20px }
  .bo-nav button { padding-inline: 7px }
  .bo-columns-trend { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) }
}
@media (max-width: 980px) {
  .bo-columns { grid-template-columns: minmax(0,1fr) }
  .bo-top { display: flex; justify-content: space-between }
  .bo-menu { display: grid; width: 32px; height: 32px }
  .bo-logo { display: none }
  .bo-nav { display: none; position: absolute; top: var(--top-height); left: 0; right: 0; flex-wrap: wrap; gap: 4px; padding: 6px var(--gutter); background: var(--bo-paper); box-shadow: 0 10px 20px rgb(22 46 73 / 10%) }
  .bo-nav button { min-height: 43px; flex: 1 0 105px; justify-content: center; margin: 0; padding: 0 6px; color: var(--bo-ink) }
  .bo-nav button:hover, .bo-nav button[aria-current] { background: var(--bo-accentwash); color: var(--bo-accent) }
  .bo-nav button:focus-visible { outline-color: var(--bo-chart) }
  .bo-nav.is-open { display: flex }
}
@media (900px < width <= 980px) {
  .bo-heading, .bo-toolbar { column-gap: 8px }
  .bo-directory button { padding-inline: 6px }
  .bo-directory button[aria-current]::after { inset-inline: 6px }
}
@media (max-width: 900px) {
  .bo-heading { flex-wrap: wrap; row-gap: 3px }
  .bo-directory { order: 1; flex-basis: 100%; margin-inline: 0; justify-content: safe flex-end }
}
@media (max-width: 760px) {
  :root { --gutter: 12px }
  .bo-top { padding: 0 12px }
  .bo-toolbar { gap: 6px }
  [data-overview-section="payment"] .bo-facts { grid-template-columns: repeat(2,minmax(0,1fr)) }
}
@media (max-width: 490px) {
  .bo-toolbar { justify-content: flex-start; margin-left: 0 }
  .bo-top-source { display: none }
  .bo-stats { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px }
  .bo-stat { padding: 10px }
  .bo-panel { padding: 12px }
}

/* Select controls from the Finance UI standards demo. */
.ui-select { position:relative; display:block; min-width:0; }
.ui-select-native { position:absolute !important; width:1px !important; height:1px !important; padding:0 !important; opacity:0; pointer-events:none; }
.ui-select-trigger { width:100%; height:var(--bo-control-height); display:flex; align-items:center; gap:10px; padding:5px 10px; border:1px solid var(--bo-control-line); border-radius:var(--bo-control-radius); background:var(--bo-paper); color:var(--bo-ink); font:inherit; text-align:left; cursor:pointer; }
.ui-select-trigger > span { min-width:0; flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ui-select-trigger::after { content:""; width:7px; height:7px; flex-shrink:0; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:translateY(-2px) rotate(45deg); }
.ui-select-trigger[aria-expanded="true"] { border-color:var(--bo-accent); box-shadow:var(--bo-focus-ring); }
.ui-select-trigger[aria-expanded="true"]::after { transform:translateY(2px) rotate(225deg); }
.ui-select-trigger:disabled { color:var(--bo-muted); background:var(--bo-track); cursor:not-allowed; }
.ui-select-menu { position:fixed; inset:auto; z-index:110; margin:0; padding:6px; border:1px solid var(--bo-line); border-radius:var(--bo-control-radius); background:var(--bo-paper); color:var(--bo-ink); box-shadow:0 14px 34px rgb(23 48 45 / 14%); overflow:hidden; }
.ui-select-menu:not([hidden]) { display:flex; flex-direction:column; gap:6px; }
.ui-select-menu .ui-select-search { width:100%; flex-shrink:0; height:34px; padding:5px 9px; border:1px solid var(--bo-control-line); border-radius:4px; font:inherit; background:var(--bo-paper); color:var(--bo-ink); }
.ui-select-options { overflow-y:auto; min-height:0; overscroll-behavior:contain; }
.ui-select-option { display:flex; align-items:center; gap:10px; min-height:38px; padding:8px 10px; border-radius:4px; font-size:14px; line-height:22px; overflow-wrap:anywhere; cursor:pointer; }
.ui-select-option > span { flex:1; min-width:0; }
.ui-select-option[aria-selected="true"] { background:var(--bo-accentwash); color:var(--bo-accent); font-weight:600; }
.ui-select-option[aria-selected="true"]::after { content:"✓"; flex-shrink:0; }
.ui-select-option.is-active,.ui-select-option:hover { background:var(--bo-accentwash); }
.ui-select-option[aria-disabled="true"] { color:var(--bo-muted); opacity:.6; cursor:not-allowed; }
.ui-select-empty { margin:0; padding:18px 10px; color:var(--bo-muted); font-size:13px; }

.ui-select-trigger:focus-visible, .ui-select-menu .ui-select-search:focus-visible { outline:0; border-color:var(--bo-accent); box-shadow:var(--bo-focus-ring) }
.ui-select-option.is-active { box-shadow:inset 0 0 0 1px #aac8ec }
.bo-picker .ui-select { width:max-content; max-width:min(218px, 75vw) }
[data-filters] .ui-select { width:105px }
@media (pointer: coarse) { .ui-select-option { min-height:44px } }

.bo-top-actions { display:flex; justify-self:end; align-items:center; gap:9px; white-space:nowrap }
.bo-manage-button { color:#fff; background:rgb(255 255 255 / 13%); border:1px solid rgb(255 255 255 / 40%); border-radius:4px; min-height:30px; padding-inline:8px; font-size:12px }
.bo-manage-button:hover { background:rgb(255 255 255 / 24%) }
.bo-shop { background:transparent; border:0; border-radius:0; border-left:1px solid #cedbe8; padding:2px 0 2px 10px; white-space:nowrap }
.bo-shop::after { content:"⌄"; display:inline-block; margin-left:6px }
.bo-shop:hover { color:var(--bo-accent) }
.bo-error { color:var(--bo-red); margin-top:8px; font-size:13px }
.bo-error:empty { display:none }
.bo-fieldset { border:1px solid var(--bo-line); border-radius:4px; padding:8px 10px; margin:0 0 14px }
.bo-fieldset legend { padding-inline:5px }
[data-shop-choices] { display:flex; flex-wrap:wrap; align-items:center; gap:4px 14px; max-height:220px; overflow-y:auto }
[data-shop-choices] label { display:inline-flex; min-height:32px; align-items:center; gap:5px }
[data-shop-choices] input { min-height:0; margin:0; accent-color:var(--bo-accent) }
[data-scope-form] { display:grid; grid-template-rows:minmax(0,1fr) auto; min-height:0 }
.bo-form-field { display:grid; gap:5px; font-size:13px; color:var(--bo-muted) }
.bo-form-field :is(input, select) { color:var(--bo-ink); max-width:100%; min-width:0 }
.bo-management { width:min(960px,calc(100% - 24px)) }
.bo-admin-section { padding:14px 0 12px }
.bo-admin-section + .bo-admin-section { border-top:1px solid var(--bo-line) }
.bo-admin-section h3 { color:var(--bo-accent); font-size:15px; margin-bottom:9px }
.bo-admin-form { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(130px,100%),1fr)); align-items:end; gap:8px }
.bo-admin-form [type=file] { width:100%; padding-inline:4px }
.bo-admin-form button:disabled { opacity:.55; cursor:default }
.bo-coverage { margin:0 0 14px; color:var(--bo-muted); font-size:13px }
.bo-coverage strong { color:var(--bo-accent); margin-right:8px }
.bo-dimensions { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px }
.bo-dimensions .bo-panel { padding:12px; min-width:0 }
.bo-record-source { color:var(--bo-muted); font-size:12px; font-weight:400 }
.bo-efficiency { display:grid; gap:14px }
@media (max-width: 1120px) { .bo-top-source { display:none } }
@media (max-width: 900px) { .bo-dimensions { grid-template-columns:minmax(0,1fr) } }
@media (max-width: 480px) {
  .bo-brand { font-size:14px; gap:6px }
  .bo-top { gap:7px }
  .bo-shop { max-width:52vw; overflow:hidden; text-overflow:ellipsis }
}
.bo-error.bo-success { color:var(--bo-green) }
