/* Opt-in page reset; every other selector and token belongs to this shell. */
body.bcl-ui-page { margin: 0; background: #f5f6fa; }
.bcl-ui-shell {
  --bcl-ui-brand: #b51f34; --bcl-ui-hover: #95172b; --bcl-ui-ink: #1a1a2e;
  --bcl-ui-text: #374151; --bcl-ui-muted: #6b7280; --bcl-ui-line: #e5e7eb;
  --bcl-ui-soft: #fdf2f3; --bcl-ui-warning: #945610;
  --bcl-ui-canvas: #f5f6fa; --bcl-ui-surface: #fff;
  --bcl-ui-blue: #316bcc; --bcl-ui-teal: #138478; --bcl-ui-amber: #ad6816;
  --bcl-ui-violet: #795cb6; --bcl-ui-positive: #18724f;
  --bcl-ui-font: "Inter", "Noto Sans TC", system-ui, sans-serif;
  --bcl-ui-radius-control: 8px; --bcl-ui-radius-panel: 12px;
  --bcl-ui-shadow-panel: 0 2px 7px rgb(32 38 48 / 2%);
  display: grid; grid-template-columns: 232px minmax(0, 1fr); grid-template-rows: 60px minmax(0, 1fr);
  min-height: 100svh; color: var(--bcl-ui-text); background: var(--bcl-ui-canvas);
  font: 14px/1.7 var(--bcl-ui-font);
  font-synthesis: none; color-scheme: light; font-variant-numeric: tabular-nums;
}
.bcl-ui-shell [hidden] { display: none !important; }
.bcl-ui-header, .bcl-ui-sidebar, .bcl-ui-main, .bcl-ui-button, .bcl-ui-icon-button, .bcl-ui-state-card, .bcl-ui-nav-item { box-sizing: border-box; }
.bcl-ui-shell :where(.bcl-ui-button,.bcl-ui-icon-button,.bcl-ui-nav-item,.bcl-ui-skip):focus-visible,
.bcl-ui-main:focus-visible { outline: 3px solid var(--bcl-ui-brand); outline-offset: 4px; }
.bcl-ui-icon { width: 21px; height: 21px; display: block; flex: 0 0 auto; }
.bcl-ui-header { grid-column: 1 / -1; grid-row: 1; display: flex; align-items: center; gap: 16px; height: 60px; position: sticky; top: 0; z-index: 20; padding: 0 24px; color: var(--bcl-ui-muted); background: white; border-bottom: 1px solid var(--bcl-ui-line); }
.bcl-ui-header .bcl-ui-icon-button:focus-visible { outline-color: var(--bcl-ui-brand); }
.bcl-ui-brand { display: flex; align-items: center; gap: 11px; color: var(--bcl-ui-brand); font-size: 21px; font-weight: 700; letter-spacing: .09em; white-space: nowrap; }
.bcl-ui-brand-mark { display: none; grid-template-columns: 11px 11px; gap: 3px; transform: rotate(-9deg); }
.bcl-ui-brand-mark i { width: 11px; height: 11px; background: white; border-radius: 3px; }
.bcl-ui-brand-mark i:nth-child(2) { opacity: .6; }
.bcl-ui-brand-mark i:nth-child(3) { opacity: .8; }
.bcl-ui-header-label { margin-left: auto; font-size: 12px; letter-spacing: .08em; }
.bcl-ui-icon-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: 0 0 auto; padding: 0; border: 0; border-radius: var(--bcl-ui-radius-control); background: transparent; color: inherit; cursor: pointer; transition: background-color 160ms ease; touch-action: manipulation; }
.bcl-ui-icon-button:hover { background: rgb(0 0 0 / 6%); }
.bcl-ui-menu-toggle { display: none; }
.bcl-ui-sidebar { grid-column: 1; grid-row: 2; display: flex; flex-direction: column; position: sticky; top: 60px; height: calc(100svh - 60px); padding: 22px 12px 20px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; background: white; border-right: 1px solid var(--bcl-ui-line); }
.bcl-ui-nav-group + .bcl-ui-nav-group { margin-top: 30px; }
.bcl-ui-nav-label { margin: 0 14px 10px; color: var(--bcl-ui-muted); font-size: 12px; font-weight: 500; }
.bcl-ui-nav-item { position: relative; display: flex; align-items: center; gap: 11px; min-height: 46px; padding: 12px 14px; margin: 3px 0; border-radius: var(--bcl-ui-radius-control); color: inherit; text-decoration: none; font-size: 14px; font-weight: 500; transition: background-color 160ms ease, color 160ms ease; touch-action: manipulation; }
.bcl-ui-nav-item:hover { background: #eff1f5; color: var(--bcl-ui-ink); }
.bcl-ui-nav-item[aria-current="page"], .bcl-ui-nav-item[aria-current="page"]:hover { background: var(--bcl-ui-brand); color: white; font-weight: 600; }
.bcl-ui-entry-title { min-width: 0; overflow-wrap: anywhere; }
.bcl-ui-disabled, .bcl-ui-disabled:hover { display: grid; grid-template-columns: 21px minmax(0,1fr); color: var(--bcl-ui-muted); background: transparent; }
.bcl-ui-offline { grid-column: 2; color: var(--bcl-ui-warning); font-size: 11px; }
.bcl-ui-nav-empty { margin: 0; padding: 4px 14px; color: var(--bcl-ui-muted); font-size: 12px; }
.bcl-ui-account { margin: auto 8px 0; padding-top: 40px; overflow-wrap: anywhere; }
.bcl-ui-account-copy { border-top: 1px solid var(--bcl-ui-line); padding-top: 18px; margin-bottom: 16px; }
.bcl-ui-account-name { margin: 0 0 3px; font-size: 13px; font-weight: 600; }
.bcl-ui-account-email, .bcl-ui-account-note { margin: 0; color: var(--bcl-ui-muted); font-size: 11px; }
.bcl-ui-account .bcl-ui-button { width: 100%; }
.bcl-ui-workspace { grid-column: 2; grid-row: 2; display: flex; flex-direction: column; min-width: 0; }
.bcl-ui-main { width: 100%; min-width: 0; margin: 0; padding: 32px 32px 40px; }
.bcl-ui-heading { margin-bottom: 28px; }
.bcl-ui-eyebrow { margin: 0 0 4px; color: var(--bcl-ui-muted); font-size: 12px; }
.bcl-ui-title { margin: 0; color: var(--bcl-ui-ink); font-size: 28px; font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; }
.bcl-ui-description { margin: 12px 0 0; color: var(--bcl-ui-muted); font-size: 13px; }
.bcl-ui-content { min-width: 0; }
.bcl-ui-home-summary { box-sizing: border-box; min-height: 240px; padding: 32px; border: 1px solid var(--bcl-ui-line); border-radius: var(--bcl-ui-radius-panel); background: var(--bcl-ui-surface); box-shadow: var(--bcl-ui-shadow-panel); display: flex; flex-direction: column; justify-content: center; }
.bcl-ui-home-summary h2 { font-size: 20px; margin: 0; color: var(--bcl-ui-ink); }
.bcl-ui-home-summary p { color: var(--bcl-ui-muted); margin: 12px 0 0; }
.bcl-ui-home-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 24px; align-items: stretch; }
.bcl-ui-home-intro { border-left: 3px solid var(--bcl-ui-brand); }
.bcl-ui-home-intro h2 { max-width: 19em; }
.bcl-ui-home-intro p { max-width: 48em; }
.bcl-ui-home-tools { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; }
.bcl-ui-home-tools h2 { font-size: 17px; }
.bcl-ui-home-tools .bcl-ui-home-tool-link { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 50px; margin-top: 18px; padding: 11px 14px; border: 1px solid var(--bcl-ui-line); border-radius: var(--bcl-ui-radius-control); color: var(--bcl-ui-ink); text-decoration: none; font-weight: 600; overflow-wrap: anywhere; }
.bcl-ui-home-tools .bcl-ui-home-tool-link:hover { border-color: var(--bcl-ui-brand); color: var(--bcl-ui-brand); background: var(--bcl-ui-soft); }
.bcl-ui-home-tool-link:focus-visible { outline: 3px solid var(--bcl-ui-brand); outline-offset: 3px; }
.bcl-ui-home-tool-link span:last-child { flex: 0 0 auto; color: var(--bcl-ui-brand); }
.bcl-ui-state-card { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: 340px; max-width: 740px; padding: 32px; border: 1px solid var(--bcl-ui-line); border-radius: var(--bcl-ui-radius-panel); background: var(--bcl-ui-surface); }
.bcl-ui-state-icon { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: 22px; border-radius: 12px; background: var(--bcl-ui-soft); color: var(--bcl-ui-brand); }
.bcl-ui-state-icon .bcl-ui-icon { width: 26px; height: 26px; }
.bcl-ui-state-kicker { margin: 0 0 4px; color: var(--bcl-ui-muted); font-size: 12px; font-weight: 600; }
.bcl-ui-state-title { margin: 0; color: var(--bcl-ui-ink); font-size: 20px; line-height: 1.6; font-weight: 600; }
.bcl-ui-state-description { margin: 10px 0 0; max-width: 40em; color: var(--bcl-ui-muted); font-size: 14px; }
.bcl-ui-state-card .bcl-ui-button { margin-top: 24px; }
.bcl-ui-button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 44px; max-width: 100%; padding: 10px 16px; border: 1px solid transparent; border-radius: var(--bcl-ui-radius-control); font: 600 14px/1.6 var(--bcl-ui-font); text-decoration: none; text-align: center; cursor: pointer; touch-action: manipulation; transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease; }
.bcl-ui-primary { background: var(--bcl-ui-brand); color: white; }
.bcl-ui-primary:hover { background: var(--bcl-ui-hover); }
.bcl-ui-secondary { background: white; color: var(--bcl-ui-text); border-color: #cbd0d9; }
.bcl-ui-secondary:hover { background: #f5f6f8; border-color: #8f97a5; }
.bcl-ui-button:active { transform: translateY(1px); }
.bcl-ui-button:disabled { cursor: wait; opacity: .65; }
.bcl-ui-loading-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bcl-ui-brand); animation: bcl-ui-pulse 1.4s ease-in-out infinite; }
.bcl-ui-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; margin: auto 32px 0; padding: 24px 0; border-top: 1px solid var(--bcl-ui-line); font-size: 11px; color: var(--bcl-ui-muted); }
.bcl-ui-fixture { margin: 0 0 20px; padding: 8px 12px; border-left: 3px solid var(--bcl-ui-warning); background: #fff8ed; color: var(--bcl-ui-warning); font-size: 12px; }
.bcl-ui-noscript { color: var(--bcl-ui-warning); font-size: 13px; }
.bcl-ui-skip { position: fixed; z-index: 80; top: 10px; left: 16px; padding: 10px 18px; border: 1px solid var(--bcl-ui-brand); border-radius: var(--bcl-ui-radius-control); color: var(--bcl-ui-ink); background: white; transform: translateY(-180%); }
.bcl-ui-skip:focus { transform: translateY(0); }
.bcl-ui-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.bcl-ui-mobile-heading, .bcl-ui-backdrop { display: none; }
/* Shared presentation primitives. Page owners keep data and action handlers. */
.bcl-ui-panel { min-width: 0; border: 1px solid var(--bcl-ui-line); border-radius: var(--bcl-ui-radius-panel); background: var(--bcl-ui-surface); box-shadow: var(--bcl-ui-shadow-panel); }
.bcl-ui-field { display: grid; gap: 8px; min-width: 0; color: var(--bcl-ui-ink); font-size: 14px; font-weight: 600; }
.bcl-ui-field :is(input,select,textarea) { box-sizing: border-box; width: 100%; min-width: 0; min-height: 44px; padding: 9px 12px; border: 1px solid #cbd0d9; border-radius: var(--bcl-ui-radius-control); background: var(--bcl-ui-surface); color: var(--bcl-ui-ink); font: 400 14px/1.6 var(--bcl-ui-font); }
.bcl-ui-field :is(input,select,textarea):focus-visible, .bcl-ui-table-scroll:focus-visible { outline: 3px solid var(--bcl-ui-brand); outline-offset: 3px; }
.bcl-ui-table-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
.bcl-ui-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.bcl-ui-table :is(th,td) { padding: 12px 14px; border-bottom: 1px solid var(--bcl-ui-line); text-align: left; }
.bcl-ui-table thead th { color: var(--bcl-ui-ink); background: var(--bcl-ui-canvas); font-size: 12px; font-weight: 700; }
.bcl-ui-banner { display: grid; gap: 4px; padding: 12px 16px; border: 1px solid var(--bcl-ui-line); border-radius: var(--bcl-ui-radius-control); background: var(--bcl-ui-surface); color: var(--bcl-ui-text); overflow-wrap: anywhere; }
.bcl-ui-banner strong { color: var(--bcl-ui-ink); font-size: 14px; }
.bcl-ui-banner span { font-size: 13px; }
.bcl-ui-banner[data-tone="warning"] { color: var(--bcl-ui-warning); background: #fff5e5; border-color: #ead9b9; }
.bcl-ui-banner[data-tone="error"] { color: var(--bcl-ui-brand); background: var(--bcl-ui-soft); border-color: #e7bbc2; }
/* Public login presentation only; auth routes and private chrome are unchanged. */
.bcl-ui-shell.bcl-login-layout { display: block; position: relative; isolation: isolate; min-height: 100svh; background: #f5f5fa; font-size: 16px; }
.bcl-login-layout [data-ui-header], .bcl-login-layout [data-ui-sidebar], .bcl-login-layout [data-ui-backdrop] { display: none !important; }
.bcl-login-layout .bcl-ui-workspace { display: block; min-height: 100svh; }
.bcl-login-layout .bcl-ui-main { display: grid; grid-template-columns: minmax(0,1fr) 440px; align-items: center; gap: 80px; width: min(100%,1360px); min-height: 100svh; margin-inline: auto; padding: 80px; }
.bcl-login-visual { min-width: 0; padding-block: 24px; }
.bcl-login-brand { display: grid; justify-items: start; gap: 8px; position: relative; z-index: 1; }
.bcl-login-brand .bcl-platform-brand { display: inline-flex; align-items: center; gap: 12px; color: #202630; text-decoration: none; font-size: 32px; font-weight: 700; letter-spacing: .04em; line-height: 1.5; }
.bcl-login-brand .bcl-platform-brand:focus-visible { outline: 3px solid var(--bcl-ui-brand); outline-offset: 5px; border-radius: 6px; }
.bcl-login-platform-name { display: block; margin-left: 44px; color: #646f7f; font-size: 16px; line-height: 24px; }
.bcl-login-platform-name::after { content: ''; display: block; width: 28px; height: 2px; margin-top: 14px; background: var(--bcl-ui-brand); }
.bcl-login-art { margin: 32px -25px -20px; pointer-events: none; }
.bcl-login-artwork { display: block; width: 100%; height: auto; overflow: visible; }
.bcl-login-form { position: relative; min-width: 0; width: 100%; }
.bcl-login-form [data-ui-status] { min-width: 0; }
.bcl-login-card { box-sizing: border-box; display: flex; flex-direction: column; align-items: stretch; width: 100%; padding: 40px; border: 1px solid #eeedf4; border-radius: 24px; background: #fff; box-shadow: 0 12px 40px rgb(48 39 80 / 5%), 0 2px 8px rgb(48 39 80 / 2%); }
.bcl-login-title { margin: 0; color: #202630; font-size: 32px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.bcl-login-title::before { content: ''; display: block; width: 28px; height: 2px; margin-bottom: 18px; background: var(--bcl-ui-brand); }
.bcl-login-description { margin: 12px 0 0; color: #646f7f; font-size: 16px; line-height: 1.75; overflow-wrap: anywhere; }
.bcl-login-google { width: 100%; min-height: 52px; gap: 12px; margin-top: 32px; padding: 12px 16px; border: 1px solid var(--bcl-ui-brand); border-radius: 10px; background: var(--bcl-ui-brand); color: #fff; font-size: 16px; font-weight: 600; line-height: 24px; }
.bcl-login-google:hover { background: var(--bcl-ui-hover); border-color: var(--bcl-ui-hover); }
.bcl-login-google:focus-visible { outline: 3px solid var(--bcl-ui-brand); outline-offset: 4px; }
.bcl-login-google:disabled { background: #eeeef3; border-color: #dddde5; color: #646f7f; cursor: wait; opacity: 1; }
.bcl-login-google-icon { box-sizing: border-box; flex: 0 0 24px; width: 24px; height: 24px; padding: 3px; background: white; border-radius: 5px; }
.bcl-login-help { margin: 28px 0 0; text-align: center; color: #646f7f; font-size: 14px; line-height: 22px; overflow-wrap: anywhere; }
@media (min-width: 851px) and (max-height: 800px) {
  .bcl-login-layout .bcl-ui-main { padding-block: 32px; }
  .bcl-login-visual { padding-block: 0; }
  .bcl-login-art { margin-top: 24px; }
  .bcl-login-artwork { max-height: calc(100svh - 300px); }
}
@media (max-width: 1100px) {
  .bcl-login-layout .bcl-ui-main { grid-template-columns: minmax(0,1fr) 420px; gap: 40px; padding: 56px 40px; }
  .bcl-login-card { padding: 36px; }
}
@media (max-width: 850px) {
  .bcl-login-layout .bcl-ui-main { grid-template-columns: minmax(0,440px); justify-content: center; align-content: center; gap: 40px; padding: 48px 24px 40px; }
  .bcl-login-visual { position: relative; min-height: 150px; padding: 0; }
  .bcl-login-brand { justify-items: start; }
  .bcl-login-brand .bcl-platform-brand { font-size: 28px; }
  .bcl-login-platform-name { margin-left: 44px; }
  .bcl-login-art { position: absolute; z-index: 0; top: 25px; right: -8px; width: 150px; margin: 0; opacity: .65; }
  .bcl-login-artwork { width: 100%; }
  .bcl-login-card { padding: 32px; }
}
@media (max-width: 540px) {
  .bcl-login-layout .bcl-ui-main { align-content: start; gap: 40px; padding: 48px 24px 40px; }
  .bcl-login-title { font-size: 28px; }
  .bcl-login-card { padding: 28px 24px; border-radius: 20px; }
  .bcl-login-google { padding-inline: 12px; gap: 10px; }
}

/* Existing Core modules consume the same semantic variables and control sizes.
   More specific selectors keep these values when each module CSS loads later. */
.bcl-ui-shell .bcl-meta.bcl-meta-platform { --surface: var(--bcl-ui-surface); --white: var(--bcl-ui-surface); --ink: var(--bcl-ui-ink); --text: var(--bcl-ui-text); --muted: var(--bcl-ui-muted); --line: var(--bcl-ui-line); --sage-deep: var(--bcl-ui-brand); --green: var(--bcl-ui-positive); --amber: var(--bcl-ui-warning); font-family: var(--bcl-ui-font); line-height: 1.7; }
.bcl-ui-shell .bcl-meta-platform .workspace { border-color: var(--bcl-ui-line); border-radius: var(--bcl-ui-radius-panel); box-shadow: var(--bcl-ui-shadow-panel); }
.bcl-ui-shell .bcl-meta-platform .filter-bar :is(input,select), .bcl-ui-shell .bcl-meta-platform .button, .bcl-ui-shell .bcl-meta-platform .pagination .button { min-height: 44px; border-radius: var(--bcl-ui-radius-control); font: 600 14px/1.6 var(--bcl-ui-font); }
.bcl-ui-shell .bcl-meta-platform .filter-bar :is(input,select) { font-weight: 400; }
.bcl-ui-shell .bcl-meta-platform :is(button,a,input,select,summary,.table-scroll):focus-visible { outline-color: var(--bcl-ui-brand); }
.bcl-ui-shell .audit-content { --ink: var(--bcl-ui-ink); --text: var(--bcl-ui-text); --muted: var(--bcl-ui-muted); --line: var(--bcl-ui-line); --soft: var(--bcl-ui-canvas); --surface: var(--bcl-ui-surface); --focus: var(--bcl-ui-brand); --warning: var(--bcl-ui-warning); }
.bcl-ui-shell .audit-content :is(.audit-panel,.audit-filters) { border-color: var(--bcl-ui-line); border-radius: var(--bcl-ui-radius-panel); background: var(--bcl-ui-surface); }
.bcl-ui-shell .audit-content .audit-panel { padding: 24px; border: 1px solid var(--bcl-ui-line); }
.bcl-ui-shell .audit-content :is(.button,.audit-field input,.audit-field select,.audit-page-actions .button) { min-height: 44px; border-radius: var(--bcl-ui-radius-control); }
.bcl-ui-shell .audit-content .audit-search { min-height: 46px; }
.bcl-ui-shell .audit-content .audit-field :is(input,select) { font: 400 14px/1.6 var(--bcl-ui-font); }
.bcl-ui-shell .audit-content .button-primary { background: var(--bcl-ui-brand); border-color: var(--bcl-ui-brand); color: white; }
.bcl-ui-shell .bcl-ui-content [data-users-admin] fieldset { border-color: var(--bcl-ui-line); border-radius: var(--bcl-ui-radius-panel); background: var(--bcl-ui-surface); }
.bcl-ui-shell .bcl-ui-content [data-users-admin] :is(input[type="email"],select) { min-height: 44px; border-radius: var(--bcl-ui-radius-control); border-color: #cbd0d9; }
@keyframes bcl-ui-pulse { 0%,100% { opacity: .45; } 50% { opacity: 1; } }
@media (min-width: 1600px) {
  .bcl-ui-main { padding: 32px 40px 40px; }
  .bcl-ui-footer { margin-left: 40px; margin-right: 40px; }
}
@media (max-width: 1279px) {
  .bcl-ui-home-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 1100px) {
  .bcl-ui-shell { grid-template-columns: 212px minmax(0,1fr); }
  .bcl-ui-main { padding: 24px 24px 32px; }
  .bcl-ui-footer { margin-left: 24px; margin-right: 24px; }
}
@media (max-width: 760px) {
  .bcl-ui-shell { grid-template-columns: minmax(0,1fr); }
  .bcl-ui-header { padding: 0 16px 0 60px; gap: 8px; }
  .bcl-ui-brand { font-size: 19px; }
  .bcl-ui-header-label { font-size: 10px; letter-spacing: 0; }
  .bcl-ui-menu-toggle { display: inline-flex; position: absolute; left: 8px; }
  .bcl-ui-workspace { grid-column: 1; }
  .bcl-ui-sidebar { position: fixed; z-index: 60; inset: 0 auto 0 0; width: min(296px,85vw); height: 100svh; padding: 12px 12px 24px; transform: translateX(-100%); visibility: hidden; transition: transform 200ms ease-out, visibility 0s linear 200ms; box-shadow: 12px 0 36px rgb(25 27 35 / 12%); }
  .bcl-ui-sidebar[data-enhanced="true"][data-open="true"] { transform: translateX(0); visibility: visible; transition: transform 200ms ease-out; }
  .bcl-ui-mobile-heading { display: flex; align-items: center; justify-content: space-between; padding: 0 2px 16px 14px; margin-bottom: 14px; border-bottom: 1px solid var(--bcl-ui-line); }
  .bcl-ui-mobile-heading strong { font-size: 15px; }
  .bcl-ui-backdrop:not([hidden]) { display: block; position: fixed; z-index: 50; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: rgb(25 27 35 / 35%); cursor: pointer; }
  .bcl-ui-main { padding: 24px 20px 32px; }
  .bcl-ui-title { font-size: 24px; }
  .bcl-ui-state-card { padding: 24px; }
  .bcl-ui-home-summary { min-height: 0; padding: 24px; }
  .bcl-ui-footer { margin: auto 20px 0; padding: 20px 0 28px; font-size: 10px; }
  .bcl-ui-shell:has(.bcl-ui-noscript) .bcl-ui-sidebar { position: static; grid-column: 1; grid-row: auto; width: 100%; height: auto; transform: none; visibility: visible; box-shadow: none; }
  .bcl-ui-shell:has(.bcl-ui-noscript) .bcl-ui-workspace { grid-row: auto; }
  .bcl-ui-shell:has(.bcl-ui-noscript) .bcl-ui-mobile-heading { display: none; }
  .bcl-ui-shell:has(.bcl-ui-noscript) .bcl-ui-account { padding-top: 16px; }
  .bcl-ui-shell .audit-content .audit-panel { padding: 18px; }
}
@media (max-width: 540px) {
  .bcl-ui-main { padding: 24px 16px 32px; }
  .bcl-ui-footer { margin-left: 16px; margin-right: 16px; }
}
@media (max-width: 700px) {
  .bcl-ui-field :is(input,select,textarea),
  .bcl-ui-shell .bcl-meta-platform .filter-bar :is(input,select),
  .bcl-ui-shell .audit-content .audit-field :is(input,select),
  .bcl-ui-shell .bcl-ui-content [data-users-admin] :is(input[type="email"],select) { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .bcl-ui-shell :where(.bcl-ui-sidebar,.bcl-ui-button,.bcl-ui-icon-button,.bcl-ui-nav-item,.bcl-ui-loading-dot) { transition: none !important; animation: none !important; }
}

/* One shared chrome and semantic type scale for HOME, META and administration.
   Login intentionally retains its public, standalone layout above. */
.bcl-platform-layout {
  --bcl-font-family: "Inter", "Noto Sans TC", "Segoe UI", "Microsoft JhengHei", system-ui, sans-serif;
  --bcl-type-page-size:24px; --bcl-type-page-line:32px;
  --bcl-type-section-size:18px; --bcl-type-section-line:28px;
  --bcl-type-body-size:16px; --bcl-type-body-line:24px;
  --bcl-type-support-size:14px; --bcl-type-support-line:22px;
  --bcl-type-metric-size:30px; --bcl-type-metric-line:40px;
  --bcl-type-nav-size:15px; --bcl-type-nav-line:22px;
  --bcl-type-control-size:16px; --bcl-type-control-line:24px;
  --bcl-page-gutter:32px; --bcl-sidebar-width:264px;
  --bcl-ui-brand:#b51f34; --bcl-ui-hover:#95172b; --bcl-ui-ink:#202630;
  --bcl-ui-text:#374151; --bcl-ui-muted:#646f7f; --bcl-ui-line:#e5e7eb;
  --bcl-ui-canvas:#f4f6fa; --bcl-ui-surface:#fff; --bcl-ui-soft:#fcf0f2;
  --bcl-ui-font:var(--bcl-font-family); --bcl-ui-radius-control:8px;
  display:block; min-height:100svh; min-width:0; background:var(--bcl-ui-canvas); color:var(--bcl-ui-text);
  font:var(--bcl-type-body-size)/var(--bcl-type-body-line) var(--bcl-font-family);
  font-synthesis:none; font-variant-numeric:tabular-nums; color-scheme:light;
}
.bcl-platform-layout [hidden] { display:none !important; }
.bcl-platform-layout .bcl-type-page-title { font:700 var(--bcl-type-page-size)/var(--bcl-type-page-line) var(--bcl-font-family); }
.bcl-platform-layout .bcl-type-section-title { font:600 var(--bcl-type-section-size)/var(--bcl-type-section-line) var(--bcl-font-family); }
.bcl-platform-layout .bcl-type-body { font-size:var(--bcl-type-body-size); line-height:var(--bcl-type-body-line); }
.bcl-platform-layout .bcl-type-support { font-size:var(--bcl-type-support-size); line-height:var(--bcl-type-support-line); }
.bcl-platform-layout .bcl-type-metric { font:700 var(--bcl-type-metric-size)/var(--bcl-type-metric-line) var(--bcl-font-family); }
.bcl-platform-layout .bcl-type-nav { font-size:var(--bcl-type-nav-size); line-height:var(--bcl-type-nav-line); }
.bcl-platform-layout .bcl-type-control { min-height:44px; font-size:var(--bcl-type-control-size); line-height:var(--bcl-type-control-line); }
.bcl-platform-chrome-host { height:0; }
.bcl-platform-layout .bcl-platform-workspace { display:block; min-width:0; margin-left:var(--bcl-sidebar-width); padding-top:60px; }
.bcl-platform-layout .bcl-ui-main { padding:var(--bcl-page-gutter); }
.bcl-platform-layout .bcl-ui-header { position:fixed; top:0; left:var(--bcl-sidebar-width); right:0; height:60px; padding:0 24px; gap:12px; z-index:40; background:#fff; border-bottom:1px solid var(--bcl-ui-line); }
.bcl-platform-layout .bcl-ui-sidebar { position:fixed; inset:0 auto 0 0; z-index:45; width:var(--bcl-sidebar-width); height:100svh; padding:0; overflow:hidden; background:#fff; border-right:1px solid var(--bcl-ui-line); }
.bcl-platform-layout .bcl-platform-brand-row { display:flex; align-items:center; justify-content:space-between; flex:0 0 60px; box-sizing:border-box; height:60px; padding:0 20px; border-bottom:1px solid #f3f4f6; }
.bcl-platform-layout .bcl-platform-brand { display:flex; align-items:center; gap:8px; min-height:44px; white-space:nowrap; color:#111827; text-decoration:none; border-radius:8px; font:700 var(--bcl-type-body-size)/var(--bcl-type-body-line) var(--bcl-font-family); letter-spacing:.025em; }
.bcl-platform-brand svg { width:32px; height:32px; flex:0 0 32px; }
.bcl-platform-layout .bcl-ui-sidebar nav { display:flex; flex:1 1 auto; min-height:0; overflow-y:auto; overscroll-behavior:contain; flex-direction:column; gap:4px; padding:16px 12px; }
.bcl-platform-layout .bcl-ui-sidebar-footer { display:flex; flex:0 0 60px; align-items:center; justify-content:flex-end; box-sizing:border-box; min-height:60px; padding:7px 12px; border-top:1px solid var(--bcl-ui-line); background:#fff; }
.bcl-platform-layout .bcl-ui-nav-primary { display:flex; flex-direction:column; gap:4px; padding-bottom:8px; }
.bcl-platform-layout .bcl-ui-nav-primary:empty { display:none; }
.bcl-platform-layout .bcl-ui-nav-split { display:flex; align-items:stretch; }
.bcl-platform-layout .bcl-ui-nav-split > a { flex:1 1 auto; min-width:0; }
.bcl-platform-layout .bcl-ui-nav-split > button { flex:0 0 44px; justify-content:center; }
.bcl-platform-layout .bcl-ui-nav-group { display:flex; flex-direction:column; gap:4px; margin-top:4px; }
.bcl-platform-layout .bcl-ui-nav-group + .bcl-ui-nav-group { margin-top:4px; }
.bcl-platform-layout .bcl-ui-nav-category { display:flex; align-items:center; justify-content:space-between; gap:8px; min-height:44px; padding:10px 12px; border:0; border-radius:8px; background:transparent; color:#5b6778; font:500 var(--bcl-type-nav-size)/var(--bcl-type-nav-line) var(--bcl-font-family); text-align:left; cursor:pointer; }
.bcl-platform-layout .bcl-ui-nav-category:hover { background:#f4f6fa; color:var(--bcl-ui-ink); }
.bcl-platform-layout .bcl-ui-nav-category:focus-visible { outline:3px solid var(--bcl-ui-brand); outline-offset:2px; }
.bcl-platform-layout .bcl-ui-category-label { display:flex; align-items:center; gap:10px; min-width:0; }
.bcl-platform-layout .bcl-ui-category-label .bcl-ui-icon { width:22px; height:22px; }
.bcl-platform-layout .bcl-ui-category-chevron { width:16px; height:16px; flex:0 0 16px; transition:transform 160ms ease-out; }
.bcl-platform-layout .bcl-ui-nav-category[aria-expanded="false"] .bcl-ui-category-chevron { transform:rotate(-90deg); }
.bcl-platform-layout .bcl-ui-nav-group-items { display:flex; flex-direction:column; gap:4px; margin-left:14px; padding-left:8px; border-left:1px solid var(--bcl-ui-line); }
.bcl-platform-layout .bcl-ui-nav-unavailable { padding:8px 12px; color:var(--bcl-ui-muted); font-size:12px; line-height:20px; }
.bcl-platform-layout .bcl-ui-unavailable { cursor:default; }
.bcl-platform-layout .bcl-ui-unavailable:hover { background:transparent; color:var(--bcl-ui-muted); }
.bcl-platform-layout .bcl-ui-unavailable .bcl-ui-offline { font-size:12px; line-height:18px; color:var(--bcl-ui-muted); }
.bcl-platform-layout .bcl-ui-nav-primary:has([data-assistant-entry]) [data-ui-assistant-unavailable] { display:none; }
.bcl-platform-layout .bcl-ui-nav-label { display:none; }
.bcl-platform-layout .bcl-ui-nav-item { gap:10px; margin:0; min-height:44px; padding:10px 12px; border:0; border-radius:8px; font:500 var(--bcl-type-nav-size)/var(--bcl-type-nav-line) var(--bcl-font-family); color:#303d50; }
.bcl-platform-layout .bcl-ui-nav-item:hover { background:#f3f4f6; }
.bcl-platform-layout .bcl-ui-nav-item:is([aria-current="page"],[aria-current="location"]),
.bcl-platform-layout .bcl-ui-nav-item:is([aria-current="page"],[aria-current="location"]):hover { background:#b51f34; color:white; font-weight:600; }
.bcl-platform-layout .bcl-ui-icon { width:20px; height:20px; }
.bcl-platform-layout .bcl-ui-nav-item .bcl-ui-icon { width:22px; height:22px; }
.bcl-platform-layout .bcl-ui-category-chevron { width:16px; height:16px; }
.bcl-platform-layout .bcl-ui-entry-title { overflow-wrap:normal; }
.bcl-platform-layout .bcl-ui-nav-empty, .bcl-platform-layout .bcl-ui-offline { font-size:var(--bcl-type-support-size); line-height:var(--bcl-type-support-line); }
.bcl-platform-layout .bcl-ui-account { display:flex; align-items:center; gap:12px; min-width:0; margin:0 0 0 auto; padding:0; }
.bcl-platform-layout .bcl-ui-account-copy { min-width:0; max-width:320px; margin:0; padding:0; border:0; text-align:right; }
.bcl-platform-layout .bcl-ui-account-name { margin:0; font:600 var(--bcl-type-body-size)/var(--bcl-type-body-line) var(--bcl-font-family); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.bcl-platform-layout .bcl-ui-account-email { margin:0; color:var(--bcl-ui-muted); font:400 var(--bcl-type-support-size)/var(--bcl-type-support-line) var(--bcl-font-family); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.bcl-platform-layout .bcl-ui-icon-button { width:44px; height:44px; min-height:44px; color:var(--bcl-ui-text); }
.bcl-platform-layout .bcl-ui-icon-button:disabled { cursor:wait; opacity:.6; }
.bcl-platform-layout .bcl-ui-mobile-close { display:none; }
.bcl-platform-layout .bcl-ui-menu-toggle { display:none; position:static; flex-shrink:0; }
.bcl-platform-layout .bcl-ui-nav-tooltip { position:fixed; z-index:70; max-width:calc(100vw - 96px); padding:8px 12px; border:1px solid var(--bcl-ui-line); border-radius:8px; background:#202630; color:#fff; box-shadow:0 3px 8px #20263026; font:500 var(--bcl-type-nav-size)/var(--bcl-type-nav-line) var(--bcl-font-family); overflow-wrap:anywhere; }
.bcl-platform-layout :where(.bcl-ui-button,.bcl-ui-icon-button,.bcl-ui-nav-item,.bcl-ui-skip,.bcl-platform-brand):focus-visible { outline:3px solid var(--bcl-ui-brand); outline-offset:3px; }
.bcl-platform-layout .bcl-ui-title { font-size:var(--bcl-type-page-size); line-height:var(--bcl-type-page-line); }
.bcl-platform-layout :is(.bcl-ui-description,.bcl-ui-eyebrow,.bcl-ui-state-kicker,.bcl-ui-fixture,.bcl-ui-noscript,.bcl-ui-banner span) { font-size:var(--bcl-type-support-size); line-height:var(--bcl-type-support-line); }
.bcl-platform-layout .bcl-ui-state-title { font-size:var(--bcl-type-section-size); line-height:var(--bcl-type-section-line); }
.bcl-platform-layout :is(.bcl-ui-state-description,.bcl-ui-table,.bcl-ui-banner strong) { font-size:var(--bcl-type-body-size); line-height:var(--bcl-type-body-line); }
.bcl-platform-layout .bcl-ui-table thead th { font-size:var(--bcl-type-support-size); line-height:var(--bcl-type-support-line); }
.bcl-platform-layout :is(.bcl-ui-button,.bcl-ui-field input,.bcl-ui-field select,.bcl-ui-field textarea) { min-height:44px; font-size:var(--bcl-type-control-size); line-height:var(--bcl-type-control-line); }
@media(min-width:1024px) {
  .bcl-platform-layout[data-ui-collapsed="true"] { --bcl-sidebar-width:72px; }
  .bcl-platform-layout[data-ui-collapsed="true"] .bcl-platform-brand-row { padding-inline:14px; }
  .bcl-platform-layout[data-ui-collapsed="true"] .bcl-platform-brand { justify-content:center; width:44px; }
  .bcl-platform-layout[data-ui-collapsed="true"] .bcl-ui-sidebar nav { padding-inline:14px; }
  .bcl-platform-layout[data-ui-collapsed="true"] .bcl-ui-sidebar-footer { justify-content:center; padding-inline:14px; }
  .bcl-platform-layout[data-ui-collapsed="true"] .bcl-ui-collapse-icon { transform:rotate(180deg); }
  .bcl-platform-layout[data-ui-collapsed="true"] .bcl-ui-nav-item { justify-content:center; gap:0; padding-inline:10px; }
  .bcl-platform-layout[data-ui-collapsed="true"] .bcl-ui-nav-category { display:none; }
  .bcl-platform-layout[data-ui-collapsed="true"] .bcl-ui-nav-group-items { margin-left:0; padding-left:0; border-left:0; }
  .bcl-platform-layout[data-ui-collapsed="true"] .bcl-ui-unavailable { display:flex; }
  .bcl-platform-layout[data-ui-collapsed="true"] .bcl-ui-nav-primary { padding-bottom:4px; }
  .bcl-platform-layout[data-ui-collapsed="true"] :is(.bcl-platform-brand>span,.bcl-ui-entry-title,.bcl-ui-offline,.bcl-ui-nav-empty) { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
}
@media(max-width:1023.99px) {
  .bcl-platform-layout { --bcl-page-gutter:24px; }
  .bcl-platform-layout .bcl-platform-workspace { margin-left:0; }
  .bcl-platform-layout .bcl-ui-header { left:0; padding:0 16px; }
  .bcl-platform-layout .bcl-ui-menu-toggle { display:inline-flex; position:static; }
  .bcl-platform-layout .bcl-ui-sidebar-footer { display:none; }
  .bcl-platform-layout .bcl-ui-mobile-close { display:inline-flex; }
  .bcl-platform-layout .bcl-ui-sidebar { z-index:60; width:280px; max-width:calc(100vw - 32px); height:100svh; transform:translateX(-100%); visibility:hidden; box-shadow:12px 0 36px rgb(25 27 35 / 12%); transition:transform 200ms ease-out,visibility 0s linear 200ms; }
  .bcl-platform-layout .bcl-ui-sidebar[data-enhanced="true"][data-open="true"] { transform:translateX(0); visibility:visible; transition:transform 200ms ease-out; }
  .bcl-platform-layout .bcl-platform-brand-row { padding:0 12px 0 20px; }
  .bcl-platform-layout .bcl-ui-backdrop:not([hidden]) { display:block; position:fixed; z-index:50; inset:0; width:100%; height:100%; padding:0; border:0; background:rgb(25 27 35 / 35%); cursor:pointer; }
  .bcl-platform-layout .bcl-ui-main { padding:var(--bcl-page-gutter); }
}
@media(max-width:540px) {
  .bcl-platform-layout { --bcl-page-gutter:16px; }
  .bcl-platform-layout .bcl-ui-header { gap:8px; padding:0 8px; }
  .bcl-platform-layout .bcl-ui-account { gap:4px; max-width:calc(100% - 52px); }
  .bcl-platform-layout .bcl-ui-main { padding:var(--bcl-page-gutter); }
}
@media(max-width:760px) {
  .bcl-platform-layout { --bcl-type-metric-size:26px; --bcl-type-metric-line:36px; }
}
@media(prefers-reduced-motion:reduce) {
  .bcl-platform-layout :where(.bcl-ui-sidebar,.bcl-ui-icon-button,.bcl-ui-nav-item,.bcl-ui-category-chevron) { transition:none !important; }
}
