/* B-layout shared tokens, shell and presentation components. */
:root { --blue:#245dd7; --blue-hover:#1e50bd; --blue-soft:#edf4ff; --text:#182a43; --body:#354b68; --muted:#718299; --faint:#8d9bb0; --line:#e1e8f1; --divider:#edf1f6; --shadow:0 2px 5px rgba(29,58,100,.025); }
body { background:#f4f7fb; font-family:"Microsoft YaHei UI","Microsoft YaHei","Segoe UI",sans-serif; color:var(--text); }
button,input,select,textarea { font-family:inherit; }
button { cursor:pointer; }
button:disabled { cursor:default; }
button:focus-visible,a:focus-visible,summary:focus-visible { outline:2px solid var(--blue); outline-offset:3px; }
.b-icon { width:17px; height:17px; object-fit:contain; flex:none; }
.b-shell { display:grid; grid-template-columns:220px minmax(0,1fr); grid-template-rows:60px minmax(0,1fr); height:100dvh; }
.b-sidebar { grid-row:1 / -1; min-height:0; background:#f8faff; border-right:1px solid var(--line); overflow-y:auto; padding:0 16px 18px; }
.b-brand { height:78px; display:flex; gap:11px; align-items:center; padding-left:10px; text-decoration:none; color:var(--text); }
.b-brand > img { width:35px; height:35px; border-radius:10px; }
.b-brand span { display:grid; gap:2px; }.b-brand strong { font-size:20px; line-height:26px; }.b-brand small { color:var(--muted);font-size:11px; }
.b-nav-group { margin:0 0 12px; }.b-nav-heading { color:#8d9bb0;font-size:11px;margin:16px 12px 7px;line-height:17px; }
.b-nav-item { width:100%; min-height:41px; display:flex; align-items:center; gap:11px; padding:0 13px; margin:3px 0; border:1px solid transparent; border-radius:8px; background:transparent;color:#536783;text-align:left;font-size:13px;position:relative; }
.b-nav-item > span:first-of-type { flex:1; }.b-nav-item:hover { background:#eef3fb; }.b-nav-item.active { background:#e9f0ff; border-color:#dce7fc; color:var(--blue);font-weight:600; }
.b-nav-item.active .b-icon { filter:invert(29%) sepia(81%) saturate(1673%) hue-rotate(213deg) brightness(90%) contrast(92%); }
.b-nav-item .nav-badges { margin-left:0; }.b-nav-item .nav-badge { border-width:0;font-size:10px;font-weight:500;min-width:17px;height:17px;line-height:17px; }
.b-topbar { display:flex;justify-content:space-between;align-items:center;padding:0 30px;background:#fff;border-bottom:1px solid var(--line); }
.b-breadcrumb { display:flex;align-items:center;gap:10px;font-size:12px;color:var(--muted); }.b-breadcrumb .b-icon { width:14px;height:14px; }.b-breadcrumb strong { font-weight:500;color:var(--body); }
.b-admin-menu { position:relative;z-index:8; }.b-admin-menu summary { list-style:none;display:flex;align-items:center;gap:10px;font-size:12px;cursor:pointer; }.b-admin-menu summary::-webkit-details-marker { display:none; }.b-admin-menu summary .b-icon:first-child { width:33px;height:33px; }.b-admin-menu summary .b-icon:last-child { width:14px;height:14px; }
.b-admin-dropdown { position:absolute;right:0;top:43px;width:160px;display:grid;padding:8px;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 8px 30px #182a4317; }.b-admin-dropdown > * { padding:9px 12px; }.b-admin-dropdown span { color:var(--muted);font-size:11px; }.b-admin-dropdown button { background:transparent;text-align:left;border:0;border-radius:6px;color:var(--body); }.b-admin-dropdown button:hover { background:var(--blue-soft); }
/* Every page uses the home page's content frame, including scrollbar space. */
.main.b-main { padding:26px 30px 30px;min-width:0;min-height:0;overflow:auto;scrollbar-gutter:stable; }.b-main .content { width:100%;max-width:1500px;min-width:0;margin:0 auto; }
.b-main .page-head { display:flex;min-height:60px;margin-bottom:14px;gap:18px;align-items:flex-start; }.b-main .page-head > :first-child { flex:1;min-width:0; }.b-main .page-title { font-size:26px;line-height:36px;font-weight:600; }.b-main .page-subtitle { font-size:12px;line-height:20px;margin-top:2px; }.b-main .head-actions { flex:none;padding-top:3px;gap:10px;flex-wrap:wrap;justify-content:flex-end; }.b-main .head-actions:empty { display:none; }
.b-main .card { border-radius:11px; }.b-main .btn { height:35px;padding:0 13px;font-size:12px; }.b-main .btn.primary { color:#fff; }.b-main .btn.small { height:30px; }.b-main .field-control { font-size:13px; }.b-main .panel-head { min-height:30px;height:auto;gap:12px;justify-content:space-between; }.b-main .panel-head h2 { font-size:15px; }.b-main .panel-head h3 { margin:0;font-size:14px; }.b-main .panel-subtitle { font-size:12px;line-height:20px; }.b-main .form-row { margin:14px 0; }.b-main .two-col { grid-template-columns:repeat(2,minmax(0,1fr)); }.b-main .two-col > * { min-width:0; }.b-main .table-scroll { max-width:100%;overflow-x:auto; }.b-main .footer { padding:24px 0 0;font-size:11px; }
.b-main .content-tabs,.b-main .platform-tabs,.b-main .payment-subnav,.b-tabs { display:flex;gap:20px;align-items:center;flex-wrap:wrap;border-bottom:1px solid var(--line);margin:0 0 20px;background:transparent;padding:0; }
.b-main .content-tabs button,.b-main .platform-tab,.b-main .payment-subnav button,.b-tabs button { min-height:42px;display:inline-flex;align-items:center;gap:7px;background:transparent;border:0;border-bottom:2px solid transparent;border-radius:0;padding:0 3px;color:var(--muted);font-size:13px; }
.b-main .content-tabs button.active,.b-main .platform-tab.active,.b-main .payment-subnav button.active,.b-tabs button.active { color:var(--blue);border-bottom-color:var(--blue);font-weight:600;box-shadow:none; }.b-tabs .b-icon { width:15px;height:15px; }
.b-home-toolbar { display:flex;align-items:flex-start;justify-content:space-between;gap:15px;border-bottom:1px solid var(--line);margin-bottom:20px; }.b-home-toolbar .b-tabs { margin:0;border:0; }.b-home-actions { display:flex;align-items:center;gap:12px;padding:3px 0 10px; }.b-home-actions .refresh-time { font-size:10px;white-space:nowrap; }.b-range { display:flex;padding:3px;border:1px solid var(--line);border-radius:7px;background:#fff;gap:2px; }.b-range button { border:0;background:transparent;border-radius:5px;padding:5px 11px;color:var(--muted);font-size:12px; }.b-range button.active { background:#e9f1ff;color:var(--blue); }
.b-metrics { display:grid;grid-template-columns:minmax(0,2.3fr) repeat(3,minmax(0,1fr));gap:16px; }.b-metric { min-height:142px;padding:19px 18px;display:flex;flex-direction:column;align-items:flex-start; }.b-metric > div { display:flex;align-items:center;gap:9px;font-size:13px;min-height:32px; }.b-metric > div .b-icon { width:32px;height:32px; }.b-metric > strong { font-size:28px;line-height:40px;font-weight:600;letter-spacing:-.5px;margin-top:6px; }.b-metric > small { font-size:11px;color:var(--muted);line-height:18px;margin-top:3px; }.b-hero { background:#eaf2ff url('assets/layout-b/hero-input-waves.svg') center/cover no-repeat;border-color:#d9e6fd;padding:18px 23px; }.b-hero > div { width:100%; }.b-hero > div small { margin-left:auto;background:#ffffff91;border:1px solid #d9e5fb;border-radius:5px;font-size:10px;color:#6d86ac;padding:1px 8px; }.b-hero > strong { font-size:38px;line-height:43px;color:#234d94;letter-spacing:-1px; }.b-hero em { font-size:13px;font-style:normal;color:#6b83a4;font-weight:400;letter-spacing:0;margin-left:9px; }
.b-home-secondary { display:grid;grid-template-columns:minmax(0,1.83fr) minmax(0,1fr);gap:18px;margin-top:20px; }.b-input-panel,.b-status-panel { padding:20px 22px;min-width:0;min-height:262px; }.b-panel-title { display:flex;align-items:center;gap:9px;min-height:32px; }.b-panel-title h2 { font-size:15px;font-weight:600;margin:0; }.b-panel-title > span { margin-left:auto;font-size:11px;color:var(--muted); }.b-panel-title > .b-icon { width:32px;height:32px; }
.b-usage-row { display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px 16px;margin-top:20px; }.b-usage-row > div:first-child { display:flex;align-items:center;gap:9px; }.b-usage-row .b-icon { width:26px;height:26px; }.b-usage-row strong { font-size:13px;font-weight:500; }.b-usage-row small { color:var(--muted);font-size:11px;margin-left:7px; }.b-usage-value { display:flex;align-items:center;gap:7px; }.b-usage-value strong { font-size:20px;color:#285ba8;font-weight:600; }.b-usage-value span { color:var(--muted);font-size:11px; }.b-usage-track { grid-column:1 / -1;height:7px;border-radius:5px;background:#edf2fa;overflow:hidden;margin-left:35px; }.b-usage-track i { display:block;height:100%;border-radius:inherit;background:#8eb5f3; }.b-usage-row:nth-of-type(3) .b-usage-track i { background:#bccff3; }.b-panel-footnote { font-size:10px;color:#8b9ab0;margin:18px 0 0; }
.b-status-list { display:grid;margin-top:12px; }.b-status-list button { display:flex;align-items:center;gap:10px;border:0;border-bottom:1px solid var(--divider);padding:14px 0;background:transparent;text-align:left;font-size:12px;color:var(--muted);min-width:0; }.b-status-list button:last-child { border:0; }.b-status-list strong { font-size:12px;font-weight:500;margin-left:auto;color:var(--body);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:46%; }.b-status-list .b-icon { width:15px;height:15px; }.b-status-list .b-blue { color:var(--blue); }
.b-device-link { display:flex;align-items:center;gap:14px;width:100%;padding:17px 20px;margin-top:20px;text-align:left; }.b-device-link > .b-icon:first-child { width:37px;height:37px; }.b-device-link span { display:grid;gap:4px; }.b-device-link strong { font-size:13px;font-weight:600;color:var(--text); }.b-device-link small { color:var(--muted);font-size:11px; }.b-device-link b { margin-left:auto;font-size:12px;font-weight:400;color:var(--blue); }.b-device-link > .b-icon:last-child { width:15px;height:15px; }
.b-detail-metrics { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:20px; }.b-detail-metrics article { padding:20px;display:grid;gap:12px; }.b-detail-metrics span { color:var(--muted);font-size:13px; }.b-detail-metrics strong { font-size:25px;font-weight:600; }
.b-table-filters { justify-content:flex-start!important;padding:16px 20px!important;border-bottom:1px solid var(--line); }.b-table-filters .user-search { max-width:330px; }.b-main .user-filter { max-width:160px; }.b-main .b-rules-only { grid-template-columns:minmax(0,1fr);margin-top:0;max-width:950px; }.b-main .b-rules-only .form-row { max-width:700px;grid-template-columns:180px minmax(0,1fr); }.b-context-note { display:flex;align-items:center;justify-content:space-between;gap:15px;font-size:12px;color:var(--muted);margin:0 0 18px;padding:12px 15px;background:#edf4ff;border:1px solid #dce7fb;border-radius:8px; }.b-main p.b-context-note { margin:16px 0 0; }.b-main #page > .card.panel { margin-top:18px; }.b-models-single { display:block; }.b-models-single .service-status { display:grid;grid-template-columns:repeat(2,minmax(0,1fr)); }.b-main .payment-config-layout { display:grid;grid-template-columns:minmax(0,1fr);gap:20px; }.b-payment-active { grid-row:1; }.b-main .payment-status-panel .analytics-capability-list { display:flex;gap:30px;flex-wrap:wrap; }.b-main .payment-active-channel { margin:15px 0; }.b-main .payment-status-panel .payment-missing { margin:12px 0; }.b-main .help-say-tabs { margin-top:5px; }.b-main .release-alert { overflow-wrap:anywhere; }
@media(max-width:1250px) { .b-home-toolbar { flex-wrap:wrap;gap:0; }.b-home-actions { margin-left:auto; }.b-home-secondary { grid-template-columns:minmax(0,1.5fr) minmax(0,1fr); }.b-metrics { gap:12px;grid-template-columns:repeat(4,minmax(0,1fr)); }.b-metric { padding:16px 13px; }.b-metric > div { font-size:12px;gap:6px; }.b-hero > div small { display:none; }.b-metric > strong { font-size:25px; }.b-hero > strong { font-size:30px; }.b-main .config-grid { grid-template-columns:1fr; }.b-main .head-actions { gap:8px; } }
@media(max-width:1050px) { .b-shell { grid-template-columns:190px minmax(0,1fr); }.b-sidebar { padding:0 10px 15px; }.b-nav-item { padding:0 10px;font-size:12px;gap:8px; }.main.b-main { padding:24px 22px; }.b-home-secondary { grid-template-columns:1fr; }.b-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }.b-main .two-col { grid-template-columns:1fr; }.b-main .custom-content-layout { grid-template-columns:1fr; }.b-main .b-models-single .service-status { grid-template-columns:1fr; }.b-main .page-head { flex-wrap:wrap; } }
@media(max-width:760px) { .b-shell { grid-template-columns:65px minmax(0,1fr); }.b-brand { padding:0;justify-content:center; }.b-brand > span,.b-nav-heading,.b-nav-item > span:first-of-type { display:none; }.b-nav-item { justify-content:center;min-height:43px; }.b-nav-group { border-bottom:1px solid var(--line);padding-bottom:8px; }.b-nav-item .nav-badges { position:absolute;top:0;right:-5px;gap:0; }.b-topbar { padding:0 16px; }.main.b-main { padding:20px 16px; }.b-home-actions { flex-wrap:wrap;margin:0; }.b-home-actions .refresh-time { width:100%; }.b-tabs { gap:14px; }.b-device-link small { max-width:260px; }.b-device-link b { display:none; }.b-main .b-rules-only .form-row { grid-template-columns:1fr; }.b-main .page-title { font-size:23px; } }

/* Version history uses the shared page grid; inset only the platform labels. */
.b-main .platform-tabs { padding-inline:12px; }
.release-batch-actions,.release-pagination { display:flex; align-items:center; gap:12px; }
.release-toolbar { flex-wrap:wrap; gap:12px; }
.release-pagination { justify-content:flex-end; padding:16px 20px; border-top:1px solid var(--line); }
.release-list-panel .release-table .release-select-cell { width:44px; text-align:center; }
.release-list-panel .release-table th:nth-child(2) { width:190px; }
.release-list-panel .release-table th:nth-child(4),.release-list-panel .release-table td:nth-child(4) { width:100px; }
.release-list-panel .release-table th:nth-child(5) { width:170px; }
.release-select-cell input { width:16px; height:16px; accent-color:var(--blue); }
.release-batch-result { padding:12px 20px; white-space:pre-wrap; overflow-wrap:anywhere; background:#f4f7fb; }
.release-batch-list { max-height:240px; overflow-y:auto; line-height:1.8; }
