/* BF V5.4.4.4 — shared visual language for the staff and student workspaces.
   This file is deliberately loaded after the feature styles. It changes
   presentation only: date controls, permissions and workflow states remain
   owned by their respective modules. */

:root {
  color-scheme: light;
  --navy: #000000;
  --ink: #000000;
  --muted: #5c5c5c;
  --blue: #000000;
  --blue-soft: #f7f7f7;
  --bg: #f7f7f7;
  --paper: #f7f7f7;
  --white: #ffffff;
  --line: #e0e0e0;
  --green: #000000;
  --green-dark: #000000;
  --green-soft: #f0f0f0;
  --mint: #f0f0f0;
  --amber: #000000;
  --orange: #000000;
  --amber-soft: #f7f7f7;
  --red: #000000;
  --red-soft: #f0f0f0;
  --shadow: 0 3px 18px rgb(0 0 0 / 3%);
  --radius: 16px;
  --ws-ink: var(--ink);
  --ws-muted: var(--muted);
  --ws-border: var(--line);
  --ws-soft: #f7f7f7;
  --ws-accent: var(--blue);
  --ps-ink: var(--ink);
  --ps-muted: var(--muted);
  --ps-line: var(--line);
  --bf-control-height: 46px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans CJK SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  font-synthesis: none;
}

body { background: var(--bg); color: var(--ink); font-size: 15px; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { touch-action: manipulation; }
button:disabled { cursor: not-allowed; }
button:focus-visible, a:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible,
.bf-course-center button:focus-visible, .bf-course-center a:focus-visible {
  outline: 3px solid #000000;
  outline-offset: 3px;
}
::selection { background: #e0e0e0; color: #000000; }
h1, h2, h3, h4 { text-wrap: balance; }
p, .hint, .small-text { overflow-wrap: anywhere; }
[hidden] { display: none !important; }

/* A quiet permanent frame, with a single strong navigation accent. */
.sidebar {
  width: 240px;
  padding: 32px 22px 24px;
  background: #000000;
  border-right: 0;
  color: #ffffff;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #5c5c5c #000000;
}
.sidebar .brand { gap: 12px; padding: 0 8px; }
.brand-mark { border-radius: 12px; background: var(--ink); font-weight: 750; letter-spacing: -1.5px; }
.sidebar .brand-mark { width: 42px; height: 42px; background: #ffffff; color: #000000; }
.sidebar .brand-title { color: #ffffff; font-size: 17px; letter-spacing: .02em; }
.sidebar .brand-sub { color: #c4c4c4; font-size: 9px; letter-spacing: .13em; }
.sidebar-caption { color: #737373; font-size: 10px; letter-spacing: .18em; margin: 38px 13px 15px; }
.side-nav { gap: 6px; }
.sidebar .nav-item {
  position: relative;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 10px;
  color: #c4c4c4;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  gap: 12px;
}
.sidebar .nav-item svg { width: 19px; height: 19px; opacity: .9; }
.sidebar .nav-item:hover { color: #ffffff; background: #000000; }
.sidebar .nav-item.active { background: #ffffff; color: #000000; font-weight: 700; }
.sidebar .nav-item.active svg { color: var(--blue); opacity: 1; }
.sidebar .nav-count { color: #000000; background: #f0f0f0; font-size: 11px; border-radius: 5px; }
.sidebar-note { padding: 28px 11px 0; font-size: 12px; color: #c4c4c4; line-height: 1.9; }
.sidebar-note strong { color: #f0f0f0; font-size: 12px; margin-bottom: 7px; }
.workspace { margin-left: 240px; }
.bf-app-shell .topbar {
  min-height: 82px;
  height: auto;
  padding: 16px 38px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}
.breadcrumb { color: var(--muted); font-size: 13px; }
.breadcrumb strong { color: #000000; font-weight: 600; }
.topbar-right { gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.profile-name { display: block; font-size: 13px; }
.profile-role { font-size: 11px; color: var(--muted); }
.env-tag { color: #5c5c5c; background: #f7f7f7; border-color: #f0f0f0; font-size: 11px; }
.avatar { background: #f0f0f0; color: #5c5c5c; }
.main { max-width: 1600px; padding: 34px clamp(24px, 3vw, 46px) 64px; }

/* Clear hierarchy and calmer surfaces; real status colours stay semantic. */
.page-head { align-items: flex-start; gap: 24px; margin-bottom: 28px; }
.page-head h1, .bf-course-center .page-head h1 { font-size: clamp(27px, 2.25vw, 34px); font-weight: 720; letter-spacing: -.035em; line-height: 1.35; }
.page-head p, .bf-course-center .page-head p { font-size: 14px; color: var(--muted); max-width: 760px; margin-top: 10px; line-height: 1.8; }
.head-actions { flex-wrap: wrap; justify-content: flex-end; }
.ws-welcome { padding: 6px 0 28px; align-items: flex-start; }
.ws-welcome h1 { font-size: clamp(29px, 2.5vw, 38px); letter-spacing: -.04em; margin: 10px 0; line-height: 1.35; }
.ws-welcome p { font-size: 14px; }
.ws-overline, .eyebrow { font-size: 11px; letter-spacing: .11em; font-weight: 700; color: #5c5c5c; }
.ws-summary { border-radius: 16px; padding: 26px 28px; margin-bottom: 26px; box-shadow: var(--shadow); }
.ws-summary span { font-size: 14px; }
.ws-summary strong { font-size: 34px; font-weight: 650; letter-spacing: -.045em; }
.ws-dashboard { gap: 24px; grid-template-columns: minmax(0, 1fr) 290px; }
.panel, .section, .bf-course-center .panel, .bf-course-center .card,
.ws-course, .ws-student-card, .ws-setting, .bf-wage-card {
  border-color: var(--line);
  background: #ffffff;
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.panel-head, .bf-course-center .panel-head { padding: 22px 24px; align-items: flex-start; gap: 16px; border-bottom-color: #f0f0f0; }
.panel-head h2, .bf-course-center .panel-head h2, .section-head h2 { color: var(--ink); font-size: 17px; font-weight: 680; line-height: 1.5; }
.panel-head p, .bf-course-center .panel-head p, .section-head p { color: var(--muted); font-size: 13px; line-height: 1.75; }
.panel-body, .bf-course-center .panel-body { padding: 24px; }
.section-title { margin: 30px 0 16px; align-items: baseline; flex-wrap: wrap; }
.section-title h2 { font-size: 19px; font-weight: 650; }
.section-title span { font-size: 13px; color: var(--muted); }
.metrics, .bf-course-center .metrics { gap: 16px; }
.metric, .bf-course-center .metric { border-radius: 14px; padding: 22px; border-color: var(--line); box-shadow: none; }
.metric-label, .metric small, .bf-course-center .metric small { color: var(--muted); font-size: 13px; }
.metric-value, .metric strong, .bf-course-center .metric strong { font-weight: 650; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.metric-foot, .metric p, .bf-course-center .metric p { font-size: 12px; line-height: 1.7; color: var(--muted); }
.hero, .bf-payroll-overview { background: #000000; border-radius: 16px; box-shadow: none; }
.hero:after { display: none; }
.hero { padding: 28px 30px; }
.hero h2 { font-size: 25px; letter-spacing: -.025em; }
.hero p { font-size: 14px; color: #e0e0e0; }
.hero .eyebrow { color: #c4c4c4; font-size: 11px; }
.hero-aside span { color: #c4c4c4; font-size: 13px; }
.hero .btn { background: #ffffff; color: #000000; }
.hero .btn:hover { background: #f0f0f0; color: #000000; }

/* Comfortable controls retain native semantics and visible keyboard focus. */
.btn, .bf-course-center .btn {
  min-height: var(--bf-control-height);
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 11px 17px;
  background: var(--blue);
  color: #ffffff;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: 0;
  box-shadow: none;
  transition: background-color .15s, border-color .15s, box-shadow .15s;
}
.btn:hover, .bf-course-center .btn:hover { background: #000000; }
.btn.secondary, .bf-course-center .btn.secondary { color: #000000; background: #f7f7f7; border-color: #f0f0f0; }
.btn.secondary:hover, .bf-course-center .btn.secondary:hover { background: #f0f0f0; border-color: #e0e0e0; }
.btn.ghost, .bf-course-center .btn.ghost { color: #5c5c5c; background: #ffffff; border-color: #e0e0e0; }
.btn.ghost:hover, .bf-course-center .btn.ghost:hover { background: #f7f7f7; border-color: #e0e0e0; }
.btn.danger, .bf-course-center .btn.danger { color: var(--red); background: var(--red-soft); border-color: #e0e0e0; }
.btn.danger:hover, .bf-course-center .btn.danger:hover { background: #e0e0e0; }
.btn.success, .bf-course-center .btn.success { color: var(--green); background: var(--green-soft); border-color: #e0e0e0; }
.btn.small, .bf-course-center .btn.small { min-height: 38px; padding: 8px 12px; font-size: 13px; }
.btn.wide, .bf-course-center .btn.wide { min-height: 48px; font-size: 15px; }
.btn svg, .bf-course-center .btn svg { width: 17px; height: 17px; }
.link-button, .text-btn, .bf-course-center .link-button { color: var(--blue); font-size: 13px; font-weight: 550; line-height: 1.6; }
.field, .bf-course-center .field { font-size: 13px; font-weight: 600; color: #5c5c5c; gap: 8px; margin-bottom: 20px; min-width: 0; }
.field input:not([type=checkbox]):not([type=radio]), .field select, .field textarea,
.bf-course-center .field input:not([type=checkbox]):not([type=radio]), .bf-course-center .field select, .bf-course-center .field textarea,
.search-input, .month-input {
  min-height: var(--bf-control-height);
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  background: #ffffff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  padding: 11px 13px;
  box-shadow: 0 1px 2px rgb(0 0 0 / 2%);
}
.field .bf-date-control input:not([type=checkbox]):not([type=radio]),
.bf-course-center .field .bf-date-control input:not([type=checkbox]):not([type=radio]) { padding-right: 56px; }
.field textarea, .bf-course-center .field textarea { min-height: 104px; resize: vertical; line-height: 1.8; }
.field select, .bf-course-center .field select { padding-right: 28px; }
.field input::placeholder, .field textarea::placeholder, .search-input::placeholder { color: #5c5c5c; opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus,
.bf-course-center .field input:focus, .bf-course-center .field select:focus, .bf-course-center .field textarea:focus {
  border-color: #000000;
  box-shadow: 0 0 0 3px #f0f0f0;
  outline: 0;
}
.field input[readonly], .field input:disabled, .field select:disabled,
.bf-course-center .field input[readonly], .bf-course-center .field input:disabled, .bf-course-center .field select:disabled {
  background: #f7f7f7;
  color: #5c5c5c;
  border-color: #f0f0f0;
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible,
.bf-course-center .field input:focus-visible, .bf-course-center .field select:focus-visible, .bf-course-center .field textarea:focus-visible {
  outline: 2px solid #000000;
  outline-offset: 2px;
}
.field input[type=checkbox], .field input[type=radio], .check-row input, .confirm-ack input { accent-color: var(--blue); }
.form-grid { gap: 0 20px; }
.hint, .small-text, .bf-course-center .hint, .bf-course-center .small { color: var(--muted); font-size: 13px; font-weight: 400; line-height: 1.8; }
.form-error, .bf-course-center .form-error { font-size: 14px; border-radius: 10px; line-height: 1.75; }
.check-row, .confirm-ack { font-size: 14px; line-height: 1.8; }
.icon-button, .icon-btn { min-width: 40px; min-height: 40px; border-radius: 10px; color: #5c5c5c; }

/* Filters read as one tool: fields, shortcuts, then applied-result summary. */
.range-controls, .ps-filters, .bf-filter-toolbar,
.filters, .bf-course-center .filters {
  align-items: flex-end;
  gap: 14px;
  padding: 22px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: none;
}
.bf-filter-toolbar > .range-controls, .bf-filter-toolbar > .ps-filters,
.bf-filter-toolbar > .filters { border: 0; padding: 0; margin: 0; border-radius: 0; }
.range-controls .field, .ps-filters .field, .filters .field,
.bf-filter-toolbar .field, .bf-course-center .filters .field {
  min-width: 140px;
  margin-bottom: 0;
  font-size: 13px;
  max-width: none;
}
.range-controls .btn, .ps-filters .btn, .filters .btn { min-height: 46px; }
.range-controls .form-error, .filters .form-error, .bf-filter-toolbar .form-error { flex-basis: 100%; margin: 0; }
.ps-filters .field > span { color: #5c5c5c; font-size: 13px; }
/* Filter summaries already spell out the applied range. Keep date captions
   available to assistive technology without misaligning neighbouring fields. */
.range-controls .bf-date-caption, .filters .bf-date-caption, .ps-filters .bf-date-caption, .bf-filter-toolbar .bf-date-caption, .bf-course-filters .bf-date-caption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.bf-filter-shortcuts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex-basis: 100%; width: 100%; margin-top: 4px; }
.bf-filter-shortcuts > span, .bf-filter-shortcuts > small { color: var(--muted); font-size: 12px; margin-right: 3px; }
.bf-filter-shortcuts button, .bf-filter-shortcuts .btn,
.bf-course-center .bf-filter-shortcuts button {
  min-height: 34px;
  padding: 6px 12px;
  background: #f7f7f7;
  color: #5c5c5c;
  border: 1px solid #f0f0f0;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.5;
  box-shadow: none;
}
.bf-filter-shortcuts button:hover, .bf-filter-shortcuts .btn:hover,
.bf-course-center .bf-filter-shortcuts button:hover { background: #f0f0f0; color: #000000; border-color: #e0e0e0; }
.bf-filter-shortcuts button[aria-pressed=true], .bf-filter-shortcuts button.active { background: #f0f0f0; color: #000000; border-color: #e0e0e0; }
.bf-filter-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-left: auto; }
.bf-filter-summary, .filter-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  color: #5c5c5c;
  font-size: 13px;
  line-height: 1.8;
}
.bf-filter-summary { margin: 12px 2px 22px; }
.bf-filter-summary strong { color: #000000; font-weight: 650; }
.bf-filter-chip { display: inline-flex; align-items: center; gap: 5px; color: #5c5c5c; background: #f0f0f0; border-radius: 6px; padding: 3px 9px; font-size: 12px; line-height: 1.6; }
.bf-filter-pending { flex-basis: 100%; width: 100%; margin: 0; padding: 10px 13px; border: 1px solid #e0e0e0; border-radius: 9px; background: #f7f7f7; color: #000000; font-size: 13px; line-height: 1.8; }
.bf-filter-pending:empty { display: none; }
.ws-student-filters { gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #ffffff; }
.ws-student-filters .field { margin: 0; }
.ws-sort-caption { margin: 12px 2px 22px; color: var(--muted); font-size: 13px; }

.bf-room-date-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 14px; background: #ffffff; }
.bf-room-day-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bf-room-date-toolbar > .field { flex: 0 1 210px; margin: 0; }
.bf-room-date-toolbar > .small-text { flex: 1 1 200px; }

/* Secondary navigation uses an understated, consistent selection treatment. */
.tabs, .bf-course-center .tabs { padding: 5px; gap: 4px; background: #f0f0f0; border-radius: 11px; }
.tab, .tabs button, .bf-course-center .tabs button { min-height: 42px; padding: 10px 15px; border-radius: 8px; color: #5c5c5c; font-size: 14px; font-weight: 550; }
.tab.active, .tabs button.active, .bf-course-center .tabs button.active { background: #ffffff; color: #000000; box-shadow: 0 1px 3px rgb(0 0 0 / 8%); font-weight: 650; }
.ws-detail-tabs { gap: 8px; border-bottom-color: var(--line); }
.ws-detail-tabs button { color: #5c5c5c; font-size: 14px; padding: 15px 16px; }
.ws-detail-tabs button.active { color: var(--blue); border-color: var(--blue); }
.ws-task-filters { gap: 8px; padding-bottom: 18px; }
.ws-task-filters button { min-height: 36px; padding: 8px 13px; color: #5c5c5c; background: #f7f7f7; border-radius: 7px; font-size: 13px; }
.ws-task-filters button.active { background: #f0f0f0; color: #000000; }

/* Readable, aligned data. Tables remain horizontally scrollable when needed. */
.table-wrap { overflow-x: auto; overscroll-behavior-inline: contain; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
table, .bf-course-center table { color: #000000; font-size: 14px; }
th, .bf-course-center th { background: #f7f7f7; color: #5c5c5c; font-size: 12px; font-weight: 600; padding: 15px 20px; border-bottom: 1px solid var(--line); }
td, .bf-course-center td { padding: 18px 20px; border-bottom-color: #f0f0f0; line-height: 1.7; }
td strong, .bf-course-center td strong { color: #000000; font-weight: 650; }
tbody tr:hover { background: #fcfcfc; }
td .subline, .subline, .bf-course-center td small { color: #5c5c5c; font-size: 12px; line-height: 1.7; }
.table-action { min-height: 34px; padding: 7px 10px; border-radius: 7px; font-size: 12px; }
.num, .amount, .balance strong, .ws-summary strong, .bf-payroll-total strong { font-variant-numeric: tabular-nums; }
.empty, .bf-course-center .empty { padding: 42px 24px; font-size: 14px; color: var(--muted); line-height: 1.8; }
.empty strong, .bf-course-center .empty strong { font-size: 17px; font-weight: 650; color: #000000; }
.empty .btn, .bf-course-center .empty .btn { margin-top: 16px; }
.status, .badge, .bf-course-center .badge { font-size: 12px; font-weight: 550; line-height: 1.6; border-radius: 6px; padding: 4px 8px; }
.status.blue, .bf-course-center .badge.blue { background: #f7f7f7; color: #000000; }
.status.green, .bf-course-center .badge.good { background: var(--green-soft); color: var(--green); }
.status.amber, .bf-course-center .badge.warn { background: var(--amber-soft); color: var(--amber); }
.status.red, .bf-course-center .badge.bad { background: var(--red-soft); color: var(--red); }
.info, .note, .bf-course-center .note { border-radius: 10px; font-size: 13px; line-height: 1.85; }
.info:not(.warn):not(.danger), .note:not(.warn):not(.danger):not(.bad):not(.error) { color: #5c5c5c; }
.info.warn, .note.warn, .bf-course-center .note.warn { background: var(--amber-soft); color: #000000; border-color: #e0e0e0; }
.info.danger, .note.danger, .bf-course-center .note.bad { background: var(--red-soft); color: var(--red); border-color: #e0e0e0; }

/* Task and calendar cards preserve familiar positions with clearer hierarchy. */
.ws-task { padding: 22px 24px; gap: 16px; }
.ws-task h3 { font-size: 17px; line-height: 1.5; margin: 6px 0; }
.ws-task p { color: var(--muted); font-size: 14px; }
.ws-task-dot { width: 7px; height: 7px; background: #737373; }
.ws-task-dot.urgent { background: #000000; }
.ws-shortcuts { padding: 10px 16px 18px; gap: 6px; }
.ws-shortcuts > .btn { justify-content: flex-start; min-height: 44px; color: #5c5c5c; background: #f7f7f7; border-color: transparent; }
.ws-shortcuts > .btn:hover { background: #f0f0f0; color: #000000; }
.ws-schedule-row { padding: 22px 24px; gap: 22px; }
.ws-schedule-row time { color: #000000; font-variant-numeric: tabular-nums; }
.ws-student-grid { gap: 22px; }
.ws-student-card { padding: 24px; }
.ws-student-heading h2 { font-size: 20px; letter-spacing: -.02em; }
.ws-avatar { border-radius: 12px; background: #f0f0f0; color: #5c5c5c; }
.ws-student-balances > div { border-bottom-color: #f0f0f0; }
.ws-student-card > .btn { margin-top: 4px; }
.ws-setting { border-radius: 14px; padding: 26px; }
.ws-setting:hover { background: #fcfcfc; border-color: #c4c4c4; box-shadow: 0 3px 18px rgb(0 0 0 / 4%); }
.ws-setting-icon { background: #f7f7f7; color: #000000; border-radius: 11px; }
.ws-setting small { font-size: 14px; }
.ps-next { border-radius: 16px; background: #000000; }
.ps-card { border-radius: 14px; border-color: var(--line); box-shadow: none; }
.ps-card h3 { font-size: 18px; }
.ps-time strong { font-variant-numeric: tabular-nums; }
.ps-home-panel .ps-card { border-radius: 0; }
.bf-course-center { --radius: 16px; --accent: var(--blue); --soft: var(--blue-soft); --amber: #000000; }
.bf-course-center .shell { padding: 0; }
.bf-course-center .card { padding: 24px; }
.bf-course-center .course-type { font-size: 12px; }
.bf-course-center .mini-stats span { font-size: 12px; }
.bf-course-center .card .description { font-size: 14px; }
.bf-booking-request { border-color: var(--line); border-radius: 14px; padding: 22px; background: #ffffff; }
.bf-booking-request h3 { font-size: 18px; }
.bf-booking-request p, .bf-request-reason { font-size: 14px; }
.bf-booking-exception { border-radius: 12px; line-height: 1.8; }
.bf-exception-check { font-size: 14px; }

/* Financial density stays compact enough to compare people, while retaining
   the payor column and horizontal scrolling on narrow screens. */
.bf-payroll-overview { padding: 24px 26px; border-radius: 15px; margin: 22px 0 16px; background: #000000; }
.bf-payroll-overview h2 { font-size: 25px; letter-spacing: -.02em; }
.bf-payroll-overview p { font-size: 14px; color: #e0e0e0; }
.bf-payroll-total strong { font-size: 35px; font-weight: 650; letter-spacing: -.04em; }
.bf-pay-month-shortcuts { gap: 9px; }
.bf-wage-grid { border-color: var(--line); border-radius: 14px; }
.bf-wage-expand > summary.bf-wage-line { min-height: 88px; padding-top: 18px; padding-bottom: 18px; }
.bf-wage-line-teacher > strong { font-size: 15px; }
.bf-wage-line-cell > span, .bf-wage-line-teacher > small { color: #5c5c5c; font-size: 12px; }
.bf-wage-line-cell > strong { font-size: 15px; }
.bf-wage-line-grand > strong { color: #000000; font-size: 20px; }
.bf-wage-line-open { color: #5c5c5c; font-size: 12px; }
.bf-wage-expanded { background: #fcfcfc; border-top-color: var(--line); }
.bf-wage-detail h3 { font-size: 17px; }
.bf-pay-table { font-size: 13px; }
.bf-pay-table th { font-size: 12px; }
.bf-pay-warning, .bf-pay-pending { line-height: 1.8; }

/* Dialogs remain scroll containers; their headings stay visible without
   turning every form into a different layout. */
dialog { max-width: 680px; border: 1px solid #e0e0e0; border-radius: 18px; background: #ffffff; box-shadow: 0 28px 95px rgb(0 0 0 / 25%); }
dialog::backdrop, dialog.bf-course-center::backdrop { background: rgb(0 0 0 / 47%); backdrop-filter: blur(4px); }
dialog.bf-course-center { border-radius: 18px; border-color: #e0e0e0; box-shadow: 0 28px 95px rgb(0 0 0 / 25%); }
.dialog-head, .bf-course-center .dialog-head { position: sticky; top: 0; z-index: 3; background: #ffffff; padding: 22px 26px; border-bottom: 1px solid var(--line); gap: 16px; }
.dialog-head h2, .bf-course-center .dialog-head h2 { font-size: 20px; font-weight: 680; line-height: 1.5; letter-spacing: -.025em; }
.dialog-body, .bf-course-center .dialog-body { padding: 26px; }
.dialog-footer, .bf-course-center .dialog-footer { margin-top: 26px; padding-top: 22px; border-top-color: var(--line); gap: 10px; }
.dialog-footer > .btn, .bf-course-center .dialog-footer > .btn { min-width: 98px; }
.dialog-lead { color: var(--muted); font-size: 14px; line-height: 1.85; }
.detail-row { padding-block: 14px; font-size: 14px; gap: 18px; }
.detail-row > span { color: var(--muted); }
.detail-row > strong { color: #000000; }
.toast { border-radius: 10px; background: #000000; font-size: 14px; line-height: 1.75; box-shadow: 0 8px 30px rgb(0 0 0 / 18%); }
.toast.error { background: #000000; }

/* The student portal uses the same typography and controls in a lighter
   frame; its existing three destination tabs remain in place. */
.bf-student-shell .topbar { background: #ffffff; padding-block: 20px; border-bottom-color: var(--line); }
.bf-student-shell .brand strong { color: var(--ink); font-size: 17px; }
.bf-student-shell .brand span { color: var(--muted); font-size: 10px; letter-spacing: .12em; }
.bf-student-shell .shell { max-width: 1200px; padding: 32px 28px 120px; }
.bf-student-shell .intro { margin-bottom: 24px; }
.bf-student-shell h1 { font-size: 29px; line-height: 1.4; letter-spacing: -.035em; }
.bf-student-shell .intro p { font-size: 14px; line-height: 1.8; }
.bf-student-shell .hero { padding: 28px; border-radius: 16px; }
.bf-student-shell .hero .amount { font-size: 46px; font-weight: 600; }
.bf-student-shell .hero .btn { background: #ffffff; color: #000000; }
.bf-student-shell .hero-sub { color: #e0e0e0; font-size: 13px; }
.bf-student-shell .content-grid { gap: 24px; }
.bf-student-shell .section-head { padding: 21px 24px; }
.bf-student-shell .section-body { padding: 24px; }
.bf-student-shell .lesson, .bf-student-shell .feedback, .bf-student-shell .ledger-row { padding: 22px 24px; }
.bf-student-shell .lesson-date, .bf-student-shell .lesson-meta { font-size: 13px; color: #5c5c5c; }
.bf-student-shell .lesson-time { font-size: 25px; }
.bf-student-shell .lesson-time small { font-size: 12px; }
.bf-student-shell .lesson-meta .place { color: #000000; background: #f7f7f7; }
.bf-student-shell .sync { font-size: 12px; line-height: 1.7; }
.bf-student-shell .bottom-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); border-top-color: var(--line); box-shadow: 0 -4px 20px rgb(0 0 0 / 3%); }
.bf-student-shell .bottom-nav .nav-item { min-height: 48px; font-size: 13px; color: #5c5c5c; }
.bf-student-shell .bottom-nav .nav-item.active { color: #000000; background: #f7f7f7; }
.bf-student-shell .count { color: #5c5c5c; background: #f7f7f7; font-size: 12px; }
.bf-student-shell .viewer-pill { color: #5c5c5c; font-size: 12px; }
.bf-student-shell .todo strong, .bf-student-shell .ledger-row h3, .bf-student-shell .notice h3 { font-size: 15px; }
.bf-student-shell .todo p, .bf-student-shell .task p, .bf-student-shell .feedback .pre, .bf-student-shell .ledger-row p, .bf-student-shell .notice p { font-size: 13px; }
.bf-student-shell .footer-note { font-size: 12px; color: #5c5c5c; }

/* Sign-in belongs to the same system, with restrained editorial contrast. */
.auth-story { background: #f0f0f0; min-height: 720px; }
.auth-story:after { display: none; }
.auth-copy h1 { font-size: clamp(34px, 3.3vw, 49px); font-weight: 680; letter-spacing: -.045em; }
.auth-copy > p { color: #5c5c5c; font-size: 15px; max-width: 390px; }
.auth-flow { color: #5c5c5c; font-size: 13px; gap: 8px; }
.auth-flow span { padding: 9px 12px; border-color: #e0e0e0; background: #f7f7f7; border-radius: 7px; }
.auth-story .sample-card { border-color: #e0e0e0; box-shadow: none; border-radius: 14px; padding: 24px; }
.auth-card { max-width: 400px; }
.auth-card h2 { font-size: 30px; font-weight: 680; letter-spacing: -.035em; }
.auth-card .lead, .auth-note { color: var(--muted); font-size: 14px; }
.auth-bottom, .auth-footer { color: #5c5c5c; font-size: 12px; }
.bf-student-shell .auth-card { max-width: none; border-radius: 18px; padding: 30px; }

@media (max-width: 1180px) {
  .sidebar { width: 212px; padding-inline: 16px; }
  .sidebar .brand { gap: 9px; padding-inline: 5px; }
  .sidebar .brand-title { font-size: 16px; }
  .sidebar .nav-item { padding-inline: 12px; }
  .workspace { margin-left: 212px; }
  .main { padding-inline: 26px; }
  .bf-app-shell .topbar { padding-inline: 26px; }
  .topbar-right { gap: 9px; }
  .ws-dashboard { grid-template-columns: minmax(0, 1fr) 250px; gap: 20px; }
  .ws-welcome-actions { flex-direction: column; }
  .page-head, .bf-course-center .page-head { flex-wrap: wrap; }
  .head-actions { justify-content: flex-start; }
  .ws-summary { padding-inline: 22px; }
  .ws-summary > div { padding-inline: 20px; }
  .range-controls .field, .filters .field, .bf-course-center .filters .field { flex: 1 1 170px; }
}

@media (max-width: 980px) {
  .ws-dashboard { grid-template-columns: minmax(0, 1fr); }
  .ws-dashboard > aside { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .ws-dashboard > aside > .panel { margin-top: 0; }
  .ws-summary > div { padding-inline: 16px; }
  .ws-summary strong { font-size: 29px; }
  .ws-profile-grid { grid-template-columns: 1fr; }
  .range-controls, .ps-filters, .bf-filter-toolbar, .filters, .bf-course-center .filters { padding: 20px; gap: 12px; }
  .bf-filter-actions { margin-left: 0; }
  .bf-student-shell .content-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  :root { --bf-control-height: 46px; }
  .sidebar { display: none; }
  .workspace { margin-left: 0; }
  .bf-app-shell .topbar { padding: 12px 16px; min-height: 70px; }
  .topbar-right { gap: 6px; }
  .profile-name { font-size: 12px; }
  .main { padding: 25px 18px 116px; }
  .page-head, .bf-course-center .page-head { gap: 18px; margin-bottom: 24px; }
  .page-head h1, .bf-course-center .page-head h1, .ws-welcome h1 { font-size: 28px; }
  .page-head p, .bf-course-center .page-head p { font-size: 13px; max-width: none; line-height: 1.8; }
  .head-actions { width: 100%; gap: 8px; }
  .head-actions .btn { font-size: 13px; min-height: 44px; padding-inline: 13px; }
  .ws-welcome-actions { flex-direction: row; flex-wrap: wrap; }
  .ws-welcome-actions .btn { flex: 1 1 auto; }
  .ws-summary { padding: 20px 16px; gap: 10px; border-radius: 14px; }
  .ws-summary > div { padding: 0 8px; }
  .ws-summary span { font-size: 12px; }
  .ws-summary strong { font-size: 27px; }
  .ws-summary small { font-size: 12px; }
  .ws-dashboard > aside { grid-template-columns: 1fr; }
  .panel-head, .panel-body, .bf-course-center .panel-head, .bf-course-center .panel-body { padding: 20px; }
  .panel-head h2, .bf-course-center .panel-head h2 { font-size: 17px; }
  .panel-head p, .bf-course-center .panel-head p { font-size: 13px; }
  .panel-head { flex-wrap: wrap; }
  .panel-head > .btn { flex-shrink: 0; }
  .metric, .bf-course-center .metric { padding: 18px 16px; }
  .metric-label, .metric small, .bf-course-center .metric small { font-size: 12px; }
  .metric-foot, .metric p, .bf-course-center .metric p { font-size: 12px; }
  .hero, .bf-student-shell .hero { padding: 23px; }
  .hero h2 { font-size: 22px; }
  .hero p { font-size: 13px; }
  .hero-aside span { font-size: 12px; }
  .btn, .bf-course-center .btn { min-height: 46px; font-size: 14px; padding: 10px 14px; }
  .btn.small, .bf-course-center .btn.small, .table-action { min-height: 40px; font-size: 13px; }
  .field, .bf-course-center .field { font-size: 13px; margin-bottom: 18px; }
  .field input:not([type=checkbox]):not([type=radio]), .field select, .field textarea,
  .bf-course-center .field input:not([type=checkbox]):not([type=radio]), .bf-course-center .field select, .bf-course-center .field textarea,
  .search-input, .month-input { font-size: 16px; min-height: 46px; }
  .form-grid { gap: 0 14px; }
  .range-controls, .ps-filters, .bf-filter-toolbar, .filters, .bf-course-center .filters { gap: 14px 12px; padding: 18px; border-radius: 13px; }
  .range-controls .field, .ps-filters .field, .filters .field, .bf-course-center .filters .field, .bf-filter-toolbar .field { flex: 1 1 calc(50% - 12px); min-width: 0; max-width: none; margin-bottom: 0; }
  .range-controls .bf-pay-search, .ps-filters .ps-search, .filters .search-wrap { flex-basis: 100%; }
  .bf-filter-shortcuts { gap: 7px; margin-top: 2px; }
  .bf-filter-shortcuts button, .bf-filter-shortcuts .btn, .bf-course-center .bf-filter-shortcuts button { min-height: 38px; padding-inline: 11px; font-size: 12px; }
  .bf-filter-actions { width: 100%; margin-left: 0; }
  .bf-filter-actions > .btn { flex: 1 1 100px; }
  .bf-filter-summary { gap: 7px 10px; margin: 12px 1px 20px; font-size: 12px; }
  .bf-filter-pending { font-size: 13px; }
  .ws-student-filters { padding: 18px; gap: 14px 12px; }
  .ws-student-filters .field { min-width: 0; flex: 1 1 calc(50% - 12px); }
  .ws-student-filters .search-wrap { min-width: 0; flex-basis: 100%; }
  .tabs, .bf-course-center .tabs { gap: 4px; }
  .tab, .tabs button, .bf-course-center .tabs button { padding: 10px 13px; min-height: 42px; font-size: 13px; }
  .ws-task { padding: 20px; }
  .ws-task h3 { font-size: 16px; }
  .ws-task > .btn { margin-left: 23px; min-height: 42px; }
  .ws-task-filters { padding-inline: 20px; }
  .ws-shortcuts > .btn { min-height: 46px; }
  .ws-schedule-row { padding: 20px; }
  .ws-student-card { padding: 22px; }
  .ws-setting { padding: 22px; }
  .ps-card-actions .btn { min-height: 42px; font-size: 13px; }
  .ps-card, .ps-card.compact { padding: 20px 18px; border-radius: 13px; }
  .ps-card h3 { font-size: 17px; }
  .bf-course-center .card { padding: 22px; }
  .bf-booking-request { padding: 20px; }
  table, .bf-course-center table { font-size: 13px; }
  th, .bf-course-center th { padding: 13px 16px; font-size: 12px; }
  td, .bf-course-center td { padding: 16px; }
  .status, .badge, .bf-course-center .badge { font-size: 11px; }
  .lesson-title { font-size: 14px; }
  .lesson-meta { font-size: 12px; }
  .lesson-side .btn { font-size: 12px; min-height: 40px; }
  .bf-payroll-overview { padding: 22px; }
  .bf-payroll-overview h2 { font-size: 23px; }
  .bf-payroll-overview p { font-size: 13px; }
  .bf-payroll-total strong { font-size: 31px; }
  .bf-pay-batch .btn { font-size: 13px; min-height: 42px; }
  dialog, dialog.bf-course-center { width: calc(100% - 24px); max-height: calc(100dvh - 30px); border-radius: 16px; }
  .dialog-head, .bf-course-center .dialog-head { padding: 19px 20px; }
  .dialog-head h2, .bf-course-center .dialog-head h2 { font-size: 19px; }
  .dialog-body, .bf-course-center .dialog-body { padding: 22px 20px; }
  .dialog-footer, .bf-course-center .dialog-footer { gap: 10px; padding-top: 20px; margin-top: 24px; }
  .dialog-footer > .btn, .bf-course-center .dialog-footer > .btn { flex: 1 1 110px; min-height: 46px; }
  .empty, .bf-course-center .empty { padding: 34px 20px; }
  .bf-app-shell .bottom-nav { gap: 4px; padding: 9px 8px calc(9px + env(safe-area-inset-bottom, 0px)); border-top-color: var(--line); box-shadow: 0 -4px 20px rgb(0 0 0 / 3%); }
  .bottom-nav .mobile-nav { min-height: 50px; font-size: 11px; gap: 4px; color: #5c5c5c; padding: 6px 3px; }
  .bottom-nav .mobile-nav.active { color: #000000; background: #f7f7f7; }
  .bottom-nav .mobile-nav svg { width: 21px; height: 21px; }
  .toast { bottom: 96px; font-size: 14px; }
  .bf-student-shell .topbar { padding: 16px 18px; }
  .bf-student-shell .brand strong { font-size: 16px; }
  .bf-student-shell .brand span { font-size: 9px; }
  .bf-student-shell .shell { padding: 25px 18px 120px; }
  .bf-student-shell h1 { font-size: 27px; }
  .bf-student-shell .intro { flex-wrap: wrap; gap: 16px; }
  .bf-student-shell .intro .btn { min-height: 42px; font-size: 13px; }
  .bf-student-shell .hero .amount { font-size: 38px; }
  .bf-student-shell .section-head, .bf-student-shell .section-body,
  .bf-student-shell .lesson, .bf-student-shell .feedback, .bf-student-shell .ledger-row { padding: 20px; }
  .bf-student-shell .lesson-time { font-size: 24px; }
  .bf-student-shell .bottom-nav .nav-item { min-height: 52px; font-size: 12px; gap: 4px; }
  .bf-student-shell .nav-item svg { width: 21px; height: 21px; }
  .bf-student-shell .metrics { gap: 10px; }
  .bf-student-shell .metric { padding: 16px 13px; }
  .auth-copy h1 { font-size: 34px; }
  .auth-card h2 { font-size: 27px; }
  .auth-form-area { padding: 28px 24px 72px; }
  .auth-bottom { font-size: 11px; text-align: center; }
}

@media (max-width: 520px) {
  .range-controls .field, .filters .field, .ps-filters .field, .bf-filter-toolbar .field, .bf-course-filters .field { flex-basis: 100%; }
  .form-grid > .field, .bf-course-center .form-grid > .field { grid-column: 1 / -1; }
  .bf-room-date-toolbar { padding: 18px; }
  .bf-room-day-nav { width: 100%; gap: 8px; }
  .bf-room-day-nav > .btn { flex: 1; font-size: 12px; padding-inline: 10px; }
  .bf-room-date-toolbar > .field { flex: 1 1 100%; }
}

@media (max-width: 420px) {
  .main { padding-inline: 16px; }
  .page-head h1, .bf-course-center .page-head h1, .ws-welcome h1 { font-size: 26px; }
  .ws-summary { padding: 18px 12px; }
  .ws-summary > div { padding-inline: 6px; }
  .ws-summary strong { font-size: 25px; }
  .ws-summary span { font-size: 12px; }
  .bf-student-shell .shell { padding-inline: 16px; }
  .bf-student-shell .hero { flex-wrap: wrap; gap: 20px; }
  .bf-student-shell .hero-right { text-align: left; }
  .bf-student-shell .hero .amount { font-size: 39px; }
  .dialog-head, .bf-course-center .dialog-head { padding-inline: 17px; }
  .dialog-body, .bf-course-center .dialog-body { padding-inline: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .bf-course-center .btn, .ws-setting, .toast { transition: none; }
}

@media print {
  body { background: #ffffff; }
  .sidebar, .bottom-nav, .topbar, .bf-filter-shortcuts, .bf-filter-pending { display: none !important; }
  .workspace { margin: 0; }
  .main { padding: 0; max-width: none; }
  .panel, .section, .metric, .bf-course-center .panel { box-shadow: none; }
  .table-wrap { overflow: visible; }
  table { font-size: 11px; }
}

/* BF brand edition: exact black/white/neutral greys, signature yellow, and
   small pastel status surfaces. The supplied artwork remains unmodified. */
:root {
  --navy: #000000; --ink: #000000; --muted: #626262;
  --blue: #000000; --blue-soft: #f5f5f5;
  --bg: #f7f7f7; --paper: #f7f7f7; --white: #ffffff; --line: #e5e5e5;
  --green: #000000; --green-dark: #000000; --green-soft: #dcfce7; --mint: #dcfce7;
  --amber: #000000; --orange: #000000; --amber-soft: #fff9c4;
  --red: #b91c1c; --red-soft: #ffe4ec;
  --bf-yellow: #ffff00; --bf-mint: #dcfce7; --bf-pink: #ffe4ec;
  --bf-lilac: #eee7ff; --bf-sky: #e4f2ff;
  --bf-signal-green: #16a34a; --bf-signal-red: #e11d48; --bf-signal-amber: #f59e0b;
  --shadow: none; --radius: 14px;
  --ws-ink: #000000; --ws-muted: #626262; --ws-border: #e5e5e5;
  --ws-soft: #f7f7f7; --ws-accent: #000000;
  --ps-ink: #000000; --ps-muted: #626262; --ps-line: #e5e5e5;
}
body { background: var(--bg); color: #000000; }
::selection { background: #ffff00; color: #000000; }
a { text-underline-offset: .2em; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible, .bf-course-center button:focus-visible,
.bf-course-center a:focus-visible {
  outline: 2px solid #000000; outline-offset: 3px;
  box-shadow: 0 0 0 5px #ffff00;
}
.bf-brand { min-width: 0; gap: 16px; }
.bf-brand-logo { display: block; width: 240px; max-width: 100%; height: auto; object-fit: contain; flex: none; }
.bf-brand-caption { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bf-brand-caption strong { font-size: 14px; font-weight: 700; color: #000000; line-height: 1.5; }
.bf-brand-caption span { color: #626262; font-size: 9px; font-weight: 500; line-height: 1.5; letter-spacing: .13em; }
.bf-loading-brand { width: min(320px, 80vw); }
.bf-loading-brand .bf-brand-logo { width: 100%; }
.bf-loading-brand + p { color: #626262; }
.sidebar { background: #000000; color: #ffffff; scrollbar-color: #737373 #000000; }
.sidebar .bf-brand { display: flex; flex-direction: column; align-items: stretch; padding: 0; gap: 17px; }
.sidebar .bf-brand-logo { width: 100%; padding: 14px 10px; border-radius: 0; background: #ffffff; }
.sidebar .bf-brand-caption { padding-left: 9px; }
.sidebar .bf-brand-caption strong { color: #ffffff; font-size: 16px; }
.sidebar .bf-brand-caption span { color: #bdbdbd; }
.sidebar-caption { color: #bdbdbd; }
.sidebar .nav-item { color: #d9d9d9; border-radius: 9px; }
.sidebar .nav-item:hover { color: #ffffff; background: #292929; }
.sidebar .nav-item.active { background: #ffff00; color: #000000; font-weight: 750; }
.sidebar .nav-item.active svg { color: #000000; }
.sidebar .nav-count { color: #000000; background: #ffff00; border-radius: 5px; }
.sidebar .nav-item.active .nav-count { color: #ffffff; background: #000000; }
.sidebar-note { color: #bdbdbd; }
.sidebar-note strong { color: #ffffff; }
.bf-app-shell .topbar { background: #ffffff; border-bottom-color: #e5e5e5; }
.breadcrumb strong { color: #000000; }
.env-tag { color: #626262; background: #f7f7f7; border-color: #e5e5e5; }
.avatar, .ws-avatar { background: #eee7ff; color: #000000; }
.avatar.green { background: #dcfce7; color: #000000; }
.avatar.amber { background: #fff9c4; color: #000000; }
.avatar.red { background: #ffe4ec; color: #000000; }
.page-head h1, .bf-course-center .page-head h1, .ws-welcome h1 { font-weight: 780; letter-spacing: -.035em; color: #000000; }
.ws-overline, .eyebrow { color: #000000; }
.ws-welcome .ws-overline, .ps-home .ws-overline {
  display: inline-flex; width: fit-content; padding: 4px 9px;
  background: #ffff00; color: #000000; border-radius: 0;
  font-size: 10px; font-weight: 750; letter-spacing: .13em;
}
.panel, .section, .bf-course-center .panel, .bf-course-center .card,
.ws-course, .ws-student-card, .ws-setting, .bf-wage-card,
.ws-summary, .metric, .bf-course-center .metric {
  background: #ffffff; border-color: #e5e5e5; box-shadow: none;
}
.ws-summary { border-top: 4px solid #ffff00; border-radius: 0 0 14px 14px; }
.hero, .bf-payroll-overview, .ps-next { background: #000000; color: #ffffff; box-shadow: none; }
.hero h2, .bf-payroll-overview h2, .ps-next h2 { color: #ffffff; }
.hero p, .hero .eyebrow, .hero-aside span, .bf-payroll-overview p,
.bf-student-shell .hero-sub { color: #d9d9d9; }
.hero .amount, .bf-payroll-total strong { color: #ffff00; }
.hero .btn, .hero .btn:hover, .bf-student-shell .hero .btn { color: #000000; background: #ffff00; border-color: #ffff00; }
.btn, .bf-course-center .btn, .bf-completion-button {
  color: #000000; background: #ffff00; border: 1px solid #ffff00;
  border-radius: 9px; font-weight: 700; box-shadow: none;
}
.btn:hover, .bf-course-center .btn:hover, .bf-completion-button:hover { background: #000000; border-color: #000000; color: #ffffff; }
.btn.secondary, .bf-course-center .btn.secondary, .bf-completion-button.secondary {
  background: #ffffff; border-color: #d9d9d9; color: #000000;
}
.btn.secondary:hover, .bf-course-center .btn.secondary:hover,
.bf-completion-button.secondary:hover { background: #f2f2f2; color: #000000; border-color: #000000; }
.btn.ghost, .bf-course-center .btn.ghost { background: #ffffff; color: #000000; border-color: #e5e5e5; }
.btn.ghost:hover, .bf-course-center .btn.ghost:hover { color: #000000; background: #f2f2f2; border-color: #bdbdbd; }
.btn.danger, .bf-course-center .btn.danger { color: #b91c1c; background: #ffe4ec; border-color: #ffe4ec; }
.btn.danger:hover, .bf-course-center .btn.danger:hover { color: #b91c1c; background: #ffd4e2; border-color: #b91c1c; }
.btn.success, .bf-course-center .btn.success { color: #000000; background: #dcfce7; border-color: #dcfce7; }
.btn.success:hover, .bf-course-center .btn.success:hover { color: #000000; background: #bbf7d0; border-color: #16a34a; }
.link-button, .text-btn, .bf-course-center .link-button { color: #000000; text-decoration-color: #000000; }
.link-button:hover, .text-btn:hover { text-decoration: underline; }
.icon-button, .icon-btn { color: #000000; }
.icon-button:hover, .icon-btn:hover { background: #f2f2f2; }
.field, .bf-course-center .field, .ps-filters .field > span { color: #000000; }
.field input:not([type=checkbox]):not([type=radio]), .field select, .field textarea,
.bf-course-center .field input:not([type=checkbox]):not([type=radio]), .bf-course-center .field select,
.bf-course-center .field textarea, .search-input, .month-input { border-color: #d9d9d9; box-shadow: none; }
.field input:focus, .field select:focus, .field textarea:focus,
.bf-course-center .field input:focus, .bf-course-center .field select:focus, .bf-course-center .field textarea:focus {
  border-color: #000000; box-shadow: 0 0 0 3px #ffff00;
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible,
.bf-course-center .field input:focus-visible, .bf-course-center .field select:focus-visible,
.bf-course-center .field textarea:focus-visible { outline-color: #000000; }
.field input[readonly], .field input:disabled, .field select:disabled,
.bf-course-center .field input[readonly], .bf-course-center .field input:disabled, .bf-course-center .field select:disabled {
  background: #f2f2f2; border-color: #e5e5e5; color: #626262;
}
.field input::placeholder, .field textarea::placeholder, .search-input::placeholder { color: #737373; }
.bf-filter-shortcuts button, .bf-filter-shortcuts .btn, .bf-course-center .bf-filter-shortcuts button { background: #f7f7f7; color: #000000; border-color: #e5e5e5; }
.bf-filter-shortcuts button:hover, .bf-filter-shortcuts .btn:hover,
.bf-course-center .bf-filter-shortcuts button:hover { background: #ffffff; color: #000000; border-color: #000000; }
.bf-filter-shortcuts button[aria-pressed=true], .bf-filter-shortcuts button.active { background: #ffff00; color: #000000; border-color: #ffff00; }
.bf-filter-chip { color: #000000; background: #eee7ff; }
.bf-filter-summary, .filter-summary { color: #626262; }
.bf-filter-summary strong { color: #000000; }
.bf-filter-pending { color: #000000; border-color: #f5e99b; background: #fff9c4; }
.tabs, .bf-course-center .tabs { background: #ededed; }
.tab, .tabs button, .bf-course-center .tabs button { color: #626262; }
.tab.active, .tabs button.active, .bf-course-center .tabs button.active { color: #000000; background: #ffffff; box-shadow: 0 0 0 1px #e5e5e5; }
.ws-detail-tabs button { color: #626262; }
.ws-detail-tabs button.active { color: #000000; border-bottom: 3px solid #000000; background: #ffff00; }
.ws-task-filters button { background: #f2f2f2; color: #626262; }
.ws-task-filters button.active, .bf-completion-filters button[aria-pressed=true] { background: #ffff00; border-color: #ffff00; color: #000000; }
.ws-task-dot { background: #737373; }
.ws-task-dot.urgent { background: #f59e0b; }
.ws-shortcuts > .btn { color: #000000; background: #f7f7f7; }
.ws-shortcuts > .btn:hover { color: #000000; background: #ffff00; }
.ws-setting:hover { background: #ffffff; border-color: #000000; box-shadow: none; }
.ws-setting-icon { color: #000000; background: #eee7ff; }
.ws-setting:nth-child(3n+2) .ws-setting-icon { background: #dcfce7; }
.ws-setting:nth-child(3n) .ws-setting-icon { background: #ffe4ec; }
table, .bf-course-center table, td strong, .bf-course-center td strong { color: #000000; }
th, .bf-course-center th { color: #626262; background: #f7f7f7; }
tbody tr:hover { background: #fafafa; }
.bf-wage-line-grand > strong { color: #000000; }
.bf-wage-expanded { background: #fafafa; }
.bf-course-center { --accent: #000000; --soft: #f5f5f5; --amber: #000000; }
.status, .badge, .bf-course-center .badge { color: #000000; background: #f2f2f2; }
.status.blue, .bf-course-center .badge.blue, .badge.awaiting_admin, .badge.scheduled,
.ps-status.upcoming { color: #000000; background: #e4f2ff; }
.status.green, .bf-course-center .badge.good, .badge.settled, .badge.approved,
.badge.done, .badge.fulfilled, .badge.refunded, .badge.exempt, .ps-status.completed {
  color: #000000; background: #dcfce7;
}
.status.amber, .bf-course-center .badge.warn, .badge.awaiting_student, .badge.pending,
.badge.planned, .badge.held, .badge.frozen, .ps-status.pending { color: #000000; background: #fff9c4; }
.status.red, .bf-course-center .badge.bad, .badge.disputed, .badge.rejected,
.badge.charged, .ps-status.exception { color: #000000; background: #ffe4ec; }
.info:not(.warn):not(.danger), .note:not(.warn):not(.danger):not(.bad):not(.error) { color: #000000; background: #f7f7f7; border-color: #e5e5e5; }
.info.warn, .note.warn, .bf-course-center .note.warn, .bf-booking-exception,
.bf-pay-warning, .bf-pay-pending { color: #000000; background: #fff9c4; border-color: #f5e99b; }
.info.danger, .note.danger, .bf-course-center .note.bad,
.bf-completion-issues, .bf-completion-notice.error { color: #000000; background: #ffe4ec; border-color: #ffc8da; }
.form-error, .bf-course-center .form-error, .error-title { color: #b91c1c; }
.toast { background: #000000; color: #ffffff; }
.toast.error { background: #000000; color: #ffffff; border-left: 5px solid #e11d48; }
.ps-next .ps-type { background: #ffffff; color: #000000; }
.ps-next .ps-status { color: #000000; background: #fff9c4; }
.ps-next .ps-status.completed { background: #dcfce7; }
.ps-next .ps-status.exception { background: #ffe4ec; }
.ps-next .btn.secondary { color: #ffffff; border-color: #737373; background: transparent; }
.ps-next .btn.secondary:hover { color: #000000; background: #ffffff; }
.bf-student-shell .topbar { background: #ffffff; }
.bf-student-shell .topbar .bf-brand-logo { width: 210px; }
.bf-student-shell .bf-brand-caption strong { color: #000000; font-size: 14px; }
.bf-student-shell .bf-brand-caption span { color: #626262; font-size: 9px; }
.bf-student-shell .lesson-meta .place { color: #000000; background: #eee7ff; }
.bf-student-shell .bottom-nav { background: #ffffff; box-shadow: none; }
.bf-student-shell .bottom-nav .nav-item { color: #626262; }
.bf-student-shell .bottom-nav .nav-item.active { color: #000000; background: #ffff00; }
.bf-student-shell .count { color: #626262; background: #f2f2f2; }
.student-dossier .section-head { background: #ffffff; border-top: 4px solid #ffff00; }
.dossier-next { border-left-color: #000000; background: #f7f7f7; }
.bf-student-shell .todo-icon { background: #fff9c4; color: #000000; }
.bf-student-shell .homework { background: #eee7ff; border-color: #eee7ff; }
.mock-personal-charge { color: #000000; background: #e4f2ff; }
.sync-dot { background: #16a34a; }
.sync.offline { color: #626262; }
.sync.offline .sync-dot { background: #f59e0b; }
.unread-dot { background: #000000; }
.bf-completion-legend > span:before, .bf-completion-photo i { background: #f59e0b; }
.bf-completion-legend > .green:before, .bf-completion-person.light-green i { background: #16a34a; }
.bf-completion-legend > .red:before, .bf-completion-person.light-red i { background: #e11d48; }
.bf-completion-legend > .gray:before, .bf-completion-person.light-gray i { background: #737373; }
.bf-completion-person-copy > span, .light-green .bf-completion-person-copy > span,
.light-red .bf-completion-person-copy > span { color: #000000; }
.bf-completion-charge { color: #000000; background: #eee7ff; }
.bf-completion button:focus-visible, .bf-completion input:focus-visible,
.bf-completion textarea:focus-visible { outline-color: #000000; box-shadow: 0 0 0 4px #ffff00; }
dialog, dialog.bf-course-center { border-color: #e5e5e5; box-shadow: 0 24px 80px #00000026; }
dialog::backdrop, dialog.bf-course-center::backdrop { background: #00000066; }
.auth-story { background: #ffffff; border-right: 1px solid #e5e5e5; }
.auth-story > .bf-brand { display: block; max-width: 390px; }
.auth-story > .bf-brand .bf-brand-logo { width: 100%; }
.auth-story > .bf-brand .bf-brand-caption { margin-top: 22px; flex-direction: row; align-items: center; gap: 15px; }
.auth-story > .bf-brand .bf-brand-caption strong { font-size: 13px; }
.auth-story > .bf-brand .bf-brand-caption span { font-size: 10px; }
.auth-copy { margin-top: clamp(44px, 8vh, 95px); }
.auth-copy .eyebrow { display: inline-flex; background: #ffff00; color: #000000; padding: 7px 11px; font-size: 11px; }
.auth-copy h1 { color: #000000; font-weight: 800; line-height: 1.35; }
.auth-copy > p { color: #626262; }
.auth-flow { color: #000000; }
.auth-flow span { background: #f7f7f7; border-color: #e5e5e5; }
.auth-story .sample-card { max-width: 390px; border-radius: 0; border-width: 0 0 0 4px; border-left-color: #ffff00; background: #f7f7f7; }
.auth-footer, .auth-bottom { color: #626262; }
.auth-form-area { background: #fafafa; }
.auth-card h2 { color: #000000; font-weight: 750; }
.bf-student-shell .auth-wrap > .bf-brand { display: block; }
.bf-student-shell .auth-wrap > .bf-brand .bf-brand-logo { width: 100%; }
.bf-student-shell .auth-wrap > .bf-brand .bf-brand-caption { margin-top: 20px; flex-direction: row; align-items: center; justify-content: space-between; }
.bf-student-shell .auth-card { border-radius: 14px; box-shadow: none; }

@media (max-width: 1180px) {
  .sidebar .bf-brand-logo { padding: 12px 8px; }
  .sidebar .bf-brand-caption { padding-left: 5px; }
}
@media (max-width: 760px) {
  .auth-card .mobile-brand.bf-brand { display: block; margin-bottom: 32px; }
  .auth-card .mobile-brand.bf-brand .bf-brand-logo { width: min(310px, 100%); }
  .auth-card .mobile-brand .bf-brand-caption { flex-direction: row; align-items: center; margin-top: 16px; }
  .auth-form-area { background: #ffffff; }
  .bf-student-shell .topbar { padding: 16px; gap: 10px; }
  .bf-student-shell .topbar .bf-brand { gap: 10px; flex: 1; }
  .bf-student-shell .topbar .bf-brand-logo { width: 160px; max-width: 100%; }
  .bf-student-shell .topbar .bf-brand-caption { display: none; }
}
@media (max-width: 420px) {
  .bf-student-shell .topbar .bf-brand-logo { width: 144px; }
  .bf-student-shell .topbar .top-actions { gap: 3px; }
  .bf-student-shell .topbar .icon-btn { min-width: 35px; width: 35px; }
}
@media print {
  .hero, .bf-payroll-overview, .ps-next { background: #ffffff; color: #000000; border: 1px solid #e5e5e5; }
  .hero h2, .hero p, .hero .eyebrow, .hero .amount, .bf-payroll-overview h2,
  .bf-payroll-overview p, .bf-payroll-total strong, .ps-next h2 { color: #000000; }
}

/* The compact sidebar uses the supplied symbol, keeping the long logo readable
   at its full horizontal proportions on sign-in and page headers. */
.bf-brand-symbol { display:none; width:76px; max-width:100%; height:auto; object-fit:contain; flex:none; }
.sidebar .bf-brand { flex-direction:row; align-items:center; gap:12px; }
.sidebar .bf-brand-logo { display:none; }
.sidebar .bf-brand-symbol { display:block; }
.sidebar .bf-brand-caption { padding:0; gap:4px; }
.sidebar .bf-brand-caption::before { content:"BF TOKYO"; display:block; color:#ffffff; font-size:17px; font-weight:750; letter-spacing:-.025em; line-height:1.3; white-space:nowrap; }
.sidebar .bf-brand-caption strong { color:#bdbdbd; font-size:12px; font-weight:500; }
.sidebar .bf-brand-caption span { display:none; }
.trial-step h3 > span { color:#000000; background:#ffff00; }
.bf-attendance-tabs [aria-pressed=true] { color:#000000; background:#ffff00; border-color:#ffff00; }
.bf-attendance-status.pending { color:#000000; background:#fff9c4; }
.bf-attendance-status.resolved { color:#000000; background:#dcfce7; }
.bf-attendance-notice.error { color:#000000; background:#ffe4ec; }
.bf-attendance-editor [data-ta-form-error] { color:#b91c1c; }
.bf-attendance button:focus-visible, .bf-attendance input:focus-visible,
.bf-attendance select:focus-visible, .bf-attendance textarea:focus-visible { outline-color:#000000; box-shadow:0 0 0 4px #ffff00; }
.consult-selection-status.free { color:#000000; background:#dcfce7; border-color:#dcfce7; }
.consult-selection-status.busy, .consult-selection-status.closed { color:#000000; background:#ffe4ec; border-color:#ffc8da; }
.consult-selection-status.time { color:#000000; background:#fff9c4; border-color:#f5e99b; }
.consult-error, .consult-read-error { color:#000000; background:#ffe4ec; border-color:#ffc8da; }
.bf-admin-access-banner { color:#000000; background:#fff9c4; border-color:#f5e99b; }

/* Keep the BF symbol visible when mobile navigation replaces the sidebar. */
.bf-topbar-mark { display:block; width:30px; height:30px; flex:none; object-fit:contain; filter:brightness(0); }
.bf-app-shell .topbar .breadcrumb { min-width:0; }
.bf-app-shell .topbar .breadcrumb strong { min-width:0; }
.note.error, .bf-course-center .note.error { color:#000000; background:#ffe4ec; border-color:#ffc8da; }
@media (max-width:760px) {
  .bf-app-shell .topbar { gap:10px; }
  .bf-app-shell .topbar .breadcrumb { gap:8px; flex:0 1 auto; }
  .bf-app-shell .topbar .breadcrumb strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
}


/* V5.4.4.5: legible mobile brand, comfortable avatars, restrained pastels. */
.bf-topbar-brand { display:inline-flex; align-items:center; min-width:0; flex:none; }
.bf-topbar-brand .bf-topbar-wordmark { display:none; }
.bf-topbar-brand .bf-topbar-mark { width:36px; height:36px; }
.bf-student-mobile-brand { display:none; }
.bf-app-shell .avatar { width:40px; height:40px; font-size:13px; }
.bf-app-shell .v4-person .avatar,
.bf-app-shell .v4-room-people .avatar,
.bf-app-shell .v4-lesson-people .avatar { width:34px; height:34px; font-size:12px; }
.bf-app-shell .v4-table-person .photo-avatar,
.bf-app-shell .table-user .avatar { width:38px; height:38px; font-size:13px; }
.bf-app-shell .profile-summary .avatar { width:64px; height:64px; font-size:24px; }
.bf-app-shell .photo-avatar.large { width:76px; height:76px; font-size:29px; border-radius:22px; }
.bf-app-shell .ws-avatar { width:54px; height:54px; font-size:20px; }
.bf-app-shell .ws-avatar.large { width:80px; height:80px; font-size:29px; }
.bf-app-shell .ws-student-hero .ws-avatar.large { width:72px; height:72px; }
.bf-course-center .course-avatar { width:36px; height:36px; font-size:13px; background:var(--bf-lilac); color:#000000; }
.ps-avatar { width:28px; height:28px; font-size:12px; }
.bf-wage-avatar { width:50px; height:50px; font-size:20px; }
.bf-student-shell .avatar { width:40px; height:40px; font-size:15px; color:#000000; background:var(--bf-lilac); }
.bf-student-shell .avatar.large { width:64px; height:64px; font-size:24px; }
.bf-student-shell .bf-student-account { padding:2px; width:44px; height:44px; border:0; background:transparent; }
.bf-student-shell .bf-student-account .avatar { border-radius:50%; border-color:#e5e5e5; }

/* Pastels distinguish quiet surfaces; yellow remains the main action color.
   Status badges and completion signal colors retain their existing meaning. */
.ws-shortcuts > .btn { --bf-shortcut-tint:var(--bf-sky); background:var(--bf-shortcut-tint); border-color:transparent; }
.ws-shortcuts > .btn:nth-child(4n+2) { --bf-shortcut-tint:var(--bf-mint); }
.ws-shortcuts > .btn:nth-child(4n+3) { --bf-shortcut-tint:var(--bf-lilac); }
.ws-shortcuts > .btn:nth-child(4n) { --bf-shortcut-tint:var(--bf-pink); }
.ws-shortcuts > .btn:hover { background:var(--bf-yellow); border-color:#000000; }
.metrics > .metric:nth-child(4n+1) .metric-icon { color:#000000; background:var(--bf-lilac); }
.metrics > .metric:nth-child(4n+2) .metric-icon { color:#000000; background:var(--bf-mint); }
.metrics > .metric:nth-child(4n+3) .metric-icon { color:#000000; background:var(--bf-sky); }
.metrics > .metric:nth-child(4n) .metric-icon { color:#000000; background:var(--bf-pink); }
.bf-student-shell .metrics > .metric:nth-child(3n+1) { background:var(--bf-sky); }
.bf-student-shell .metrics > .metric:nth-child(3n+2) { background:var(--bf-lilac); }
.bf-student-shell .metrics > .metric:nth-child(3n) { background:var(--bf-mint); }
.bf-app-shell .topbar [data-action="completion-panel"] { background:var(--bf-mint); border-color:transparent; color:#000000; }
.bf-app-shell .topbar [data-action="v4-notifications"],
.bf-student-shell .topbar [data-action="notices"] { background:var(--bf-lilac); border-color:transparent; color:#000000; }
.bf-app-shell .topbar [data-action="completion-panel"]:hover,
.bf-app-shell .topbar [data-action="v4-notifications"]:hover,
.bf-student-shell .topbar [data-action="notices"]:hover { background:var(--bf-yellow); }

@media (max-width:760px) {
  .bf-topbar-brand .bf-topbar-mark { width:46px; height:46px; }
  .bf-topbar-brand .bf-topbar-wordmark {
    display:flex; flex-direction:column; gap:3px; padding-left:8px;
    color:#000000; letter-spacing:0; min-width:0;
  }
  .bf-topbar-brand .bf-topbar-wordmark b {
    display:block; font-size:16px; font-weight:800; line-height:1.15;
    letter-spacing:-.025em; white-space:nowrap; color:#000000;
  }
  .bf-topbar-brand .bf-topbar-wordmark small {
    display:block; font-size:11px; font-weight:600; line-height:1.4;
    letter-spacing:.12em; color:#626262; white-space:nowrap;
  }
  .bf-app-shell .topbar { min-height:76px; padding:12px 14px; gap:10px; }
  .bf-app-shell .topbar .breadcrumb { flex:0 0 auto; gap:0; }
  .bf-app-shell .topbar .bf-breadcrumb-page,
  .bf-app-shell .topbar .breadcrumb > svg { display:none; }
  .bf-app-shell .topbar-right { flex-wrap:nowrap; gap:4px; min-width:0; }
  .bf-app-shell .topbar .v4-notice-button,
  .bf-app-shell .topbar .icon-button {
    position:relative; flex:none; width:44px; height:44px; min-height:44px;
    min-width:44px; padding:0; display:flex; align-items:center; justify-content:center;
  }
  .bf-app-shell .topbar .v4-notice-button > span { display:none; }
  .bf-app-shell .topbar .v4-notice-button b { position:absolute; top:-3px; right:-3px; }
  .bf-app-shell .topbar .profile-button { padding:2px; min-width:44px; min-height:44px; }
  .bf-app-shell .topbar .profile-button > span:not(.avatar),
  .bf-app-shell .topbar .profile-button > svg { display:none; }
  .bf-app-shell .topbar .profile-button .avatar { width:40px; height:40px; }
  .bf-app-shell .photo-avatar.large { width:64px; height:64px; font-size:25px; border-radius:19px; }
  .bf-app-shell .ws-avatar.large { width:72px; height:72px; font-size:26px; }
  .bf-app-shell .ws-student-hero .ws-avatar.large { width:68px; height:68px; }
  .bf-wage-avatar { width:44px; height:44px; font-size:18px; }
  .bf-student-shell .avatar.large { width:56px; height:56px; font-size:22px; }
  .bf-student-shell .topbar { min-height:76px; padding:12px 14px; gap:8px; }
  .bf-student-shell .topbar .bf-brand { min-width:0; flex:1; }
  .bf-student-shell .topbar .bf-brand-logo,
  .bf-student-shell .topbar .bf-brand-caption { display:none; }
  .bf-student-shell .topbar .bf-student-mobile-brand { display:inline-flex; }
  .bf-student-shell .topbar .top-actions { flex:none; gap:4px; }
  .bf-student-shell .topbar .icon-btn { width:44px; min-width:44px; height:44px; }
}
@media (max-width:360px) {
  .bf-app-shell .topbar, .bf-student-shell .topbar { flex-wrap:wrap; padding:12px; gap:10px; }
  .bf-app-shell .topbar .breadcrumb, .bf-student-shell .topbar .bf-brand { flex:1 0 100%; }
  .bf-app-shell .topbar-right { width:100%; justify-content:flex-start; gap:8px; }
  .bf-app-shell .topbar .profile-button { margin-left:auto; }
  .bf-student-shell .topbar .top-actions { width:100%; gap:8px; }
  .bf-student-shell .topbar .bf-student-account { margin-left:auto; }
}

/* V5.4.4.9: one original brand per desktop frame; an aligned compact mobile header.
   Inverting the original black-on-white PNG and screening on pure black preserves
   every supplied logo detail without manufacturing or cropping a second asset. */
.bf-header-brand {
  display:flex; flex-direction:column; align-items:flex-start; gap:4px;
  flex:0 1 220px; width:220px; min-width:0; max-width:100%;
}
.bf-header-logo {
  display:block; width:100%; max-width:220px; height:auto;
  object-fit:contain; flex:none;
}
.bf-header-title {
  display:block; color:#000000; font-size:14px; font-weight:700;
  line-height:1.45; letter-spacing:0; white-space:nowrap;
}
.sidebar .bf-brand { flex-direction:column; align-items:stretch; gap:14px; }
.sidebar .bf-brand-logo {
  display:block; width:100%; height:auto; padding:0; border:0; border-radius:0;
  background:transparent; filter:invert(1); mix-blend-mode:screen;
}
.sidebar .bf-brand-caption { padding:0; }
.sidebar .bf-brand-caption::before { content:none; }
.sidebar .bf-brand-caption strong { color:#ffffff; font-size:15px; line-height:1.5; white-space:nowrap; }
.bf-app-shell .topbar, .bf-student-shell .topbar {
  display:flex; flex-wrap:nowrap; align-items:center; gap:0; min-width:0;
}
.bf-app-shell .topbar .breadcrumb { flex:1 1 auto; flex-wrap:nowrap; gap:12px; min-width:0; margin-right:16px; }
.bf-app-shell .topbar .bf-breadcrumb-page { display:block; overflow-wrap:anywhere; }
.bf-app-shell .topbar .breadcrumb > svg { display:none; }
.bf-app-shell .topbar-right {
  display:flex; position:relative; align-items:center; flex:0 0 auto; width:auto;
  flex-wrap:nowrap; max-width:none; min-width:0; gap:12px; margin-left:auto;
}
.bf-app-shell .topbar .profile-button { flex:none; min-width:48px; min-height:48px; padding:2px; margin-left:0; }
.bf-app-shell .topbar .profile-button .avatar,
.bf-student-shell .topbar .bf-student-account .avatar { width:44px; height:44px; font-size:16px; }
.bf-app-shell .topbar-right > .v4-notice-button { position:relative; flex:none; min-height:44px; }
.bf-header-tools { position:static; flex:none; }
.bf-header-tools > summary {
  display:flex; align-items:center; justify-content:center; gap:5px; list-style:none;
  height:44px; min-width:44px; padding:0 9px; border:1px solid #e0e0e0;
  border-radius:12px; background:#ffffff; color:#000000; cursor:pointer; font-size:12px;
}
.bf-header-tools > summary::-webkit-details-marker { display:none; }
.bf-header-tools > summary::marker { content:''; }
.bf-header-tools > summary:focus-visible { outline:3px solid #737373; outline-offset:3px; }
.bf-header-tools[open] > summary { background:#ffffd6; border-color:#000000; }
.bf-header-tool-list {
  position:absolute; z-index:45; top:calc(100% + 10px); right:0; width:216px;
  padding:7px; border:1px solid #dedede; border-radius:14px; background:#ffffff;
  box-shadow:0 12px 30px rgb(0 0 0 / 12%);
}
.bf-app-shell .topbar .bf-header-tool-list > button {
  display:flex; align-items:center; justify-content:flex-start; width:100%; min-width:0;
  min-height:46px; height:auto; gap:10px; padding:11px 12px; border:0;
  border-radius:8px; color:#000000; background:transparent; font-size:13px;
}
.bf-app-shell .topbar .bf-header-tool-list > button:hover { background:#f3f3f3; }
.bf-app-shell .topbar .bf-header-tool-list > button > span { display:inline; }
.bf-student-shell .topbar .bf-header-brand { flex:0 1 220px; margin-right:16px; }
.bf-student-shell .topbar .top-actions {
  flex:0 0 auto; flex-wrap:nowrap; width:auto; max-width:none; gap:7px; margin-left:auto;
}
.bf-student-shell .topbar .icon-btn { width:44px; min-width:44px; height:44px; }
.bf-student-shell .topbar .bf-student-account { width:48px; min-width:48px; height:48px; padding:1px; margin-left:0; }
@media (min-width:761px) {
  .bf-app-shell .topbar .bf-topbar-brand { display:none; }
}
@media (max-width:1180px) {
  .bf-app-shell .topbar { padding:14px 22px; }
  .bf-app-shell .topbar .env-tag { display:none; }
  .bf-app-shell .topbar-right { gap:8px; }
  .bf-app-shell .topbar .profile-button > span:not(.avatar),
  .bf-app-shell .topbar .profile-button > svg { display:none; }
}
@media (max-width:760px) {
  .bf-app-shell .topbar, .bf-student-shell .topbar { padding:12px 16px; min-height:76px; gap:0; }
  .bf-app-shell .topbar .breadcrumb { flex:1 1 auto; min-width:0; margin-right:12px; }
  .bf-student-shell .topbar .bf-header-brand { margin-right:12px; }
  .bf-app-shell .topbar .bf-topbar-brand, .bf-student-shell .topbar .bf-header-brand { flex:0 1 190px; width:190px; }
  .bf-app-shell .topbar .bf-breadcrumb-page { display:none; }
  .bf-app-shell .topbar-right, .bf-student-shell .topbar .top-actions { gap:6px; width:auto; }
  .bf-app-shell .topbar .bf-header-tools > summary { width:44px; padding:0; }
  .bf-app-shell .topbar .bf-header-tools > summary > span { display:none; }
  .bf-app-shell .topbar-right > .v4-notice-button { width:44px; min-width:44px; height:44px; padding:0; display:flex; align-items:center; justify-content:center; }
  .bf-app-shell .topbar-right > .v4-notice-button > span { display:none; }
  .bf-app-shell .topbar-right > .v4-notice-button b { position:absolute; top:-3px; right:-3px; }
  .bf-app-shell .topbar .bf-header-title, .bf-student-shell .topbar .bf-header-title { font-size:13px; }
}
@media (max-width:420px) {
  .bf-app-shell .topbar, .bf-student-shell .topbar { padding:12px; gap:0; }
  .bf-app-shell .topbar .breadcrumb { flex:1 1 0; margin-right:8px; }
  .bf-student-shell .topbar .bf-header-brand { margin-right:8px; }
  .bf-app-shell .topbar .bf-topbar-brand, .bf-student-shell .topbar .bf-header-brand { flex:0 1 176px; width:176px; min-width:0; }
  .bf-app-shell .topbar-right, .bf-student-shell .topbar .top-actions { width:auto; gap:4px; justify-content:flex-end; }
  .bf-app-shell .topbar .bf-header-title, .bf-student-shell .topbar .bf-header-title { font-size:12px; }
}
