/*
 * Back office: the shell and components of docs/design.md (the owner's Business Hub style
 * guide). Loaded after base.css by layouts/portal.html and layouts/bare.html only; the public
 * site never loads it, so shared class names (.field, .badge, .pager …) can be restyled here.
 * Values come from tokens.css; §9 there holds the back-office additions.
 */

/* ---------- Base ---------- */
.bo { font-size: var(--text-base); }
.bo h1 { font-size: var(--text-4xl); line-height: var(--text-4xl--line-height); }
@media (min-width: 64rem) { .bo h1 { font-size: var(--text-5xl); line-height: 1; } }
.bo h2 { font-size: var(--text-3xl); line-height: var(--text-3xl--line-height); }
.bo h3 { font-size: var(--text-xl); line-height: var(--text-xl--line-height); }
.bo h4 { font-size: var(--text-xl); line-height: var(--text-xl--line-height); }
.bo h5, .bo h6 { font-size: var(--text-sm); font-weight: var(--font-weight-medium); }
.bo :focus-visible { outline: none; box-shadow: 0 0 0 var(--ring-width-strong) var(--ring); }
.bo a { text-underline-offset: 4px; }
.bo .eyebrow { color: var(--gold-text); }
.bo .surface-ink .eyebrow, .bo .card--dark .eyebrow { color: var(--gold); }
.bo .card-subtitle, .bo .action-link { color: var(--gold-text); }
.bo .muted { color: var(--muted-foreground); }
.lead { margin-top: 0.75rem; font-size: var(--text-lg); line-height: var(--leading-relaxed); color: var(--muted-foreground); }
.small { font-size: var(--text-sm); color: var(--muted-foreground); }
.text-link { font-weight: var(--font-weight-semibold); color: var(--gold-text); text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.prose-links a:not([class]) { font-weight: var(--font-weight-semibold); color: var(--gold-text); }

/* Interface icons (brk_ui::ui_icon) */
.i { flex-shrink: 0; width: 1rem; height: 1rem; }

/* ---------- Shell ---------- */
.bo-layout { min-height: 100dvh; }
@media (min-width: 48rem) {
  .bo-layout { display: flex; }
}

.bo-sidebar {
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: var(--ink-foreground);
  border-right: 1px solid var(--ink-border);
}
.bo-sidebar__logo { position: relative; display: flex; justify-content: center; padding: 1.5rem 1.25rem; border-bottom: 1px solid var(--ink-border); }
.bo-sidebar__logo img { width: 100%; max-width: 13rem; height: auto; }
.bo-sidebar__close { display: none; }
.bo-sidebar__scroll { flex: 1; overflow-x: hidden; overflow-y: auto; }

.bo-module { margin: 1rem 1rem 0.5rem; }
.bo-module > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--ink-border); border-radius: var(--radius-sm);
  background: var(--ink-raised);
  font-size: var(--text-sm); font-weight: var(--font-weight-semibold);
  transition: border-color var(--duration-fast);
}
.bo-module > summary:hover, .bo-module[open] > summary { border-color: var(--gold); }
.bo-module > summary .i { color: var(--gold); }
.bo-module__text { display: grid; min-width: 0; }
.bo-module__label { font-size: 10px; font-weight: var(--font-weight-semibold); letter-spacing: var(--tracking-wider); text-transform: uppercase; color: var(--gold); }
.bo-module__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bo-module .menu__list { left: 0; right: 0; width: auto; }

.bo-sections { display: flex; flex-direction: column; padding-block: 0.75rem; }
.bo-sections a {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  border-left: 4px solid transparent;
  font-size: var(--text-sm); color: var(--ink-muted); text-decoration: none;
  transition: background-color var(--duration-fast), color var(--duration-fast);
}
.bo-sections a .i { width: 1.25rem; height: 1.25rem; }
.bo-sections a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bo-sections a:hover { background: var(--ink-raised-60); color: var(--ink-foreground); }
.bo-sections a[aria-current] { border-left-color: var(--gold); background: var(--ink-raised); color: var(--ink-foreground); }
.bo-sections a:focus-visible { box-shadow: inset 0 0 0 2px var(--gold); }

.bo-collapse {
  position: absolute; right: -0.875rem; top: 50%; z-index: 10;
  display: none; place-items: center;
  width: 1.75rem; height: 3.5rem; translate: 0 -50%;
  border: 1px solid var(--gold-60); border-radius: var(--radius-full);
  background: var(--ink-raised); color: var(--gold);
  box-shadow: var(--shadow-elevated);
  transition: background-color var(--duration-fast), color var(--duration-fast);
}
.bo-collapse:hover { background: var(--gold); color: var(--gold-foreground); }
.bo-collapse[hidden] { display: none !important; }

.bo-frame { flex: 1; min-width: 0; }
.bo-main { padding-block: 2.5rem 4rem; }

/* Desktop: a sticky sidebar beside a light, sticky top bar */
@media (min-width: 48rem) {
  .bo-sidebar {
    position: sticky; top: 0; z-index: 30;
    flex-shrink: 0;
    width: var(--sidebar-width); height: 100dvh;
    transition: width var(--duration-slow) var(--ease-default);
  }
  .bo-collapse { display: grid; }
  :root[data-nav="collapsed"] .bo-sidebar { width: var(--sidebar-collapsed); }
  :root[data-nav="collapsed"] .bo-collapse .i { rotate: 180deg; }
  :root[data-nav="collapsed"] .bo-sidebar__logo { padding-inline: 0.5rem; }
  :root[data-nav="collapsed"] .bo-module__text,
  :root[data-nav="collapsed"] .bo-sections a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  :root[data-nav="collapsed"] .bo-module { margin-inline: 0.75rem; }
  :root[data-nav="collapsed"] .bo-module > summary { justify-content: center; padding-inline: 0; }
  :root[data-nav="collapsed"] .bo-module .menu__list { right: auto; width: 16rem; }
  :root[data-nav="collapsed"] .bo-sections a { justify-content: center; padding-inline: 0; }
  .bo-backdrop, .bo-menu-button, .bo-topbar__logo, .bo-crumbs-phone { display: none; }
}
@media (min-width: 64rem) {
  .bo-sidebar { width: var(--sidebar-width-lg); }
}

.bo-topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--gold-40);
  background: var(--background-95);
  backdrop-filter: blur(8px);
}
@media (min-width: 64rem) { .bo-topbar { padding-inline: 2rem; } }
/* The breadcrumbs take the room that's left and wrap, never under the search box, whose width
   follows the window's (narrower windows get a search button instead, below). */
.bo-topbar > .crumbs { flex: 1 1 0; min-width: 0; }
.bo-topbar__end { display: flex; flex: 0 0 auto; align-items: center; justify-content: flex-end; gap: 1rem; }
.bo-topbar__end > .bo-search { width: clamp(11rem, 24vw, 24rem); }

.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem; margin: 0; padding: 0; list-style: none; font-size: var(--text-sm); color: var(--muted-foreground); }
.crumbs li { display: flex; align-items: center; gap: 0.375rem; }
.crumbs .i { width: 0.875rem; height: 0.875rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--foreground); text-decoration: underline; }
.crumbs [aria-current] { font-weight: var(--font-weight-medium); color: var(--foreground); }

.avatar-initials { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border-radius: var(--radius-full); background: var(--gold); color: var(--gold-foreground); font-size: var(--text-sm); font-weight: var(--font-weight-semibold); }
.bo-user > summary { display: flex; align-items: center; gap: 0.5rem; border-radius: var(--radius-full); }
.bo-user__name { display: none; max-width: 10rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--text-sm); font-weight: var(--font-weight-medium); }
.bo-user > summary > .i { display: none; }
@media (min-width: 64rem) { .bo-user__name, .bo-user > summary > .i { display: inline; } }
.bo-user .menu__list { width: 14rem; }

/* Phone: a dark top bar; the sidebar opens over the page as a sheet */
@media (max-width: 47.999rem) {
  .bo-topbar { background: var(--ink); color: var(--ink-foreground); border-bottom-color: var(--ink-border); backdrop-filter: none; }
  .bo-topbar > .crumbs { display: none; }
  .bo-topbar__logo img { width: auto; height: 2.25rem; }
  .bo-topbar__end { gap: 0.75rem; }
  .bo-menu-button { display: inline-flex; padding: 0.25rem; color: inherit; }
  .bo-menu-button .i { width: 1.5rem; height: 1.5rem; }
  .bo-crumbs-phone { padding: 0.75rem 1.25rem; border-bottom: 1px solid var(--border); background: var(--background); }
  .bo-sidebar {
    position: fixed; inset: 0 auto 0 0; z-index: 60;
    width: min(18rem, 85vw);
    translate: -100% 0; visibility: hidden;
    transition: translate var(--duration-slow) var(--ease-default), visibility var(--duration-slow);
  }
  html:not(.js) .bo-sidebar:target, .bo-nav-open .bo-sidebar { translate: 0 0; visibility: visible; }
  .bo-sidebar__logo { justify-content: flex-start; padding: 1rem 3.5rem 1rem 1.25rem; }
  .bo-sidebar__logo img { max-width: 9rem; }
  .bo-sidebar__close { position: absolute; right: 1rem; top: 50%; translate: 0 -50%; display: inline-flex; padding: 0.25rem; color: var(--ink-foreground); }
  .bo-sidebar__close .i { width: 1.5rem; height: 1.5rem; }
  .bo-backdrop { position: fixed; inset: 0; z-index: 55; display: none; background: var(--overlay); }
  html:not(.js) .bo-sidebar:target ~ .bo-backdrop, .bo-nav-open .bo-backdrop { display: block; }
  .bo-main { padding-block: 1.75rem 3rem; }
}

/* Impersonation banner, inside the frame */
.bo .impersonation-banner { position: static; }

/* ---------- Menus (<details class="menu">) ---------- */
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.menu__list {
  position: absolute; left: 0; top: calc(100% + 0.25rem); z-index: 50;
  display: grid; width: 16rem; max-height: 70vh; overflow-y: auto;
  padding: 0.25rem;
  border: 1px solid var(--border); border-radius: var(--radius-md);
  background: var(--popover); color: var(--popover-foreground);
  box-shadow: var(--shadow-md);
  animation: pop-in var(--duration-base) var(--ease-default);
}
.menu--end .menu__list { left: auto; right: 0; }
.menu__item {
  display: flex; align-items: center; gap: 0.5rem; width: 100%;
  padding: 0.375rem 0.5rem; border: 0; border-radius: var(--radius-sm);
  background: none; font-size: var(--text-sm); text-align: left; text-decoration: none; color: inherit;
}
.menu__item:hover, .menu__item:focus-visible { background: var(--accent); color: var(--accent-foreground); box-shadow: none; }
.menu__item[aria-current] { font-weight: var(--font-weight-semibold); }
.menu__list form { margin: 0; }
.menu__label { padding: 0.375rem 0.5rem; font-size: var(--text-xs); font-weight: var(--font-weight-semibold); color: var(--muted-foreground); }
.menu__sep { margin: 0.25rem -0.25rem; border: 0; border-top: 1px solid var(--muted); }
.menu__who { padding: 0.375rem 0.5rem; font-size: var(--text-sm); font-weight: var(--font-weight-semibold); }
.menu__who p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu__who p + p { margin: 0; font-size: var(--text-xs); font-weight: var(--font-weight-normal); color: var(--muted-foreground); }
@keyframes pop-in { from { opacity: 0; scale: 0.95; } }

/* The notification bell, in the top bar */
.bo .bell summary { padding: 0.375rem; border-radius: var(--radius-full); color: inherit; }
.bo .bell summary:hover { background: var(--muted); }
@media (max-width: 47.999rem) { .bo .bell summary:hover { background: var(--ink-raised); } }
.bo .bell__count { display: inline-flex; align-items: center; justify-content: center; height: 1.25rem; min-width: 1.25rem; padding: 0 0.375rem; border-radius: var(--radius-full); background: var(--gold); color: var(--gold-foreground); font-size: 11px; font-weight: var(--font-weight-bold); line-height: 1; }
.bo .bell__panel { padding: 0.75rem; border-radius: var(--radius-md); background: var(--popover); color: var(--popover-foreground); box-shadow: var(--shadow-md); font-size: var(--text-sm); }
.bo .bell__panel > a { font-weight: var(--font-weight-semibold); color: var(--gold-text); }

/* ---------- Page header ---------- */
.page-header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.page-header__text { min-width: 0; max-width: var(--container-3xl); }
.page-header h1 { margin-top: 0.25rem; overflow-wrap: anywhere; }
.page-header__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.section-heading { margin-bottom: 1.5rem; }
.section-heading h2 { margin-top: 0.25rem; }

/* ---------- Panels ---------- */
.stack-lg { display: grid; gap: 1.5rem; }
.panel { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); box-shadow: var(--shadow-card); }
.panel__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 0.75rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); }
.panel__head h2, .panel__head h3 { font-size: var(--text-xl); line-height: var(--text-xl--line-height); }
.panel__head p { margin-top: 0.25rem; font-size: var(--text-sm); color: var(--muted-foreground); }
.panel__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.panel__body { padding: 1.5rem; background: var(--background); }
.panel__body--flush { padding: 0; }
.panel__body--ink { background: var(--ink); color: var(--ink-foreground); }
.panel__foot { padding: 0.75rem 1.25rem; border-top: 1px solid var(--border); background: var(--muted); font-size: var(--text-xs); color: var(--muted-foreground); }
.panel__foot pre { margin: 0; overflow-x: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  height: 2.25rem; padding: 0 1rem;
  border: 1px solid transparent; border-radius: var(--radius-md);
  background: var(--primary); color: var(--primary-foreground);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-body); font-size: var(--text-sm); font-weight: var(--font-weight-medium); line-height: 1;
  white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: background-color var(--duration-fast), color var(--duration-fast), border-color var(--duration-fast);
}
.btn .i { width: 1rem; height: 1rem; }
.btn:hover { background: var(--primary-hover); }
.btn:focus-visible { box-shadow: 0 0 0 var(--ring-width) var(--ring); }
.btn[data-variant="secondary"] { background: var(--secondary); color: var(--secondary-foreground); box-shadow: var(--shadow-xs); }
.btn[data-variant="secondary"]:hover { background: var(--secondary-hover); }
.btn[data-variant="outline"] { border-color: var(--input); background: var(--background); color: var(--foreground); box-shadow: var(--shadow-xs); }
.btn[data-variant="ghost"] { background: transparent; color: var(--foreground); box-shadow: none; }
.btn[data-variant="outline"]:hover, .btn[data-variant="ghost"]:hover { background: var(--accent); color: var(--accent-foreground); }
.btn[data-variant="link"] { height: auto; padding: 0; background: none; color: var(--primary); box-shadow: none; }
.btn[data-variant="link"]:hover { text-decoration: underline; }
.btn[data-variant="destructive"] { background: var(--destructive); color: var(--destructive-foreground); box-shadow: var(--shadow-xs); }
.btn[data-variant="destructive"]:hover { background: var(--destructive-hover); }
.btn[data-size="sm"] { height: 2rem; padding: 0 0.75rem; font-size: var(--text-xs); }
.btn[data-size="lg"] { height: 2.5rem; padding: 0 2rem; }
.btn[data-size="icon"] { width: 2.25rem; padding: 0; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: var(--disabled-opacity); cursor: not-allowed; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.surface-ink .btn-brand[data-variant="outline"], .panel__body--ink .btn-brand[data-variant="outline"] { border: 1px solid var(--gold); background: transparent; color: var(--gold); box-shadow: none; }

/* ---------- Badges, pills, chips ---------- */
.badge {
  display: inline-flex; align-items: center; justify-self: start; gap: 0.25rem;
  padding: 0.125rem 0.625rem;
  border: 1px solid transparent; border-radius: var(--radius-md);
  background: var(--primary); color: var(--primary-foreground);
  font-size: var(--text-xs); font-weight: var(--font-weight-semibold); line-height: var(--text-xs--line-height);
  white-space: nowrap;
}
.badge[data-variant="secondary"] { background: var(--secondary); color: var(--secondary-foreground); }
.badge[data-variant="outline"] { border-color: var(--border); background: transparent; color: var(--foreground); }
.badge[data-variant="destructive"] { background: var(--destructive); color: var(--destructive-foreground); }
.badge[data-variant="success"] { border-color: var(--success-border); background: var(--success-soft); color: var(--success); }
.badge[data-variant="warning"] { border-color: var(--warning-border); background: var(--warning-soft); color: var(--warning); }
.badge[data-variant="info"] { border-color: var(--info-border); background: var(--info-soft); color: var(--info); }
.badge[data-variant="danger"] { border-color: var(--destructive-30); background: var(--destructive-soft); color: var(--destructive); }
.pill { display: inline-flex; align-items: center; padding: 0.25rem 0.75rem; border: 1px solid var(--border); border-radius: var(--radius-full); font-size: var(--text-xs); }
.pill--gold { border-color: transparent; background: var(--gold); color: var(--gold-foreground); font-weight: var(--font-weight-semibold); }
.tag-chip { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.125rem 0.625rem; border: 1px solid var(--gold-40); border-radius: var(--radius-full); background: var(--gold-10); font-size: var(--text-xs); font-weight: var(--font-weight-medium); }
.tag-chip button { margin-right: -0.25rem; padding: 0 0.25rem; border: 0; border-radius: var(--radius-full); background: none; color: var(--muted-foreground); }
.tag-chip button:hover { color: var(--foreground); }
.pending-badge { position: relative; display: inline-flex; align-items: center; justify-content: center; height: 1.25rem; min-width: 1.25rem; padding: 0 0.375rem; border-radius: var(--radius-full); background: var(--gold); color: var(--gold-foreground); font-size: 11px; font-weight: var(--font-weight-bold); line-height: 1; }
.pending-badge::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--gold); opacity: 0.4; animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite; }
@keyframes ping { 75%, 100% { scale: 2; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pending-badge::before { display: none; } }
.chip { display: inline-flex; align-items: center; gap: 0.25rem; max-width: 100%; padding: 0.25rem 0.375rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--muted-50); font-size: var(--text-xs); color: var(--muted-foreground); }
.chip .i { width: 0.75rem; height: 0.75rem; }
.chip[data-variant="overdue"] { border-color: var(--destructive-30); color: var(--destructive); }
.chip__note { margin-left: 0.25rem; color: var(--muted-foreground); }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 1.25rem; max-width: var(--container-2xl); }
@media (min-width: 40rem) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid > .field--wide, .form-grid > .form-actions, .form-grid > fieldset, .form-grid > .form-alert { grid-column: 1 / -1; }
}
.bo .field { display: grid; gap: 0.5rem; align-content: start; }
.bo .field > label, .bo fieldset.field > legend, .bo .label { font-size: var(--text-sm); font-weight: var(--font-weight-medium); line-height: 1; }
.bo fieldset.field > legend { margin-bottom: 0.5rem; }
.bo .field-hint { margin: 0; font-size: var(--text-xs); color: var(--muted-foreground); }
.bo .field-error, .bo .field .text-error { margin: 0; font-size: var(--text-xs); color: var(--destructive); }
.bo :is(input:not([type="checkbox"], [type="radio"], [type="file"], [type="hidden"], [type="submit"], [type="button"]), select, textarea) {
  width: 100%; height: 2.25rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--field-border); border-radius: var(--radius-md);
  background-color: var(--card); color: var(--foreground);
  box-shadow: var(--shadow-xs);
  font-size: var(--text-base);
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}
@media (min-width: 48rem) {
  .bo :is(input:not([type="checkbox"], [type="radio"], [type="file"]), select, textarea) { font-size: var(--text-sm); }
}
/* [rows]: as specific as the field rule above, so a textarea's rows set its height. */
.bo textarea, .bo textarea[rows] { height: auto; min-height: 3.75rem; padding-block: 0.5rem; resize: vertical; }
.bo :is(input, select, textarea)::placeholder { color: var(--muted-foreground); opacity: 1; }
.bo :is(input, select, textarea):focus-visible { border-color: var(--field-border); box-shadow: 0 0 0 var(--ring-width) var(--ring); }
.bo :is(input, select, textarea)[aria-invalid="true"] { border-color: var(--destructive); }
.bo :is(input, select, textarea, button):disabled { opacity: var(--disabled-opacity); cursor: not-allowed; }
/* :not([multiple]): as specific as the field rule above, so the arrow keeps its room. */
.bo select:not([multiple]) {
  appearance: none;
  padding-right: 2.25rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314110f' stroke-opacity='0.5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 0.75rem center; background-repeat: no-repeat; background-size: 1rem;
  cursor: pointer;
}
.bo select[multiple] { height: auto; padding-right: 0.75rem; background-image: none; }
.bo input[type="file"] { font-size: var(--text-sm); }
.bo input[type="file"]::file-selector-button { height: 2rem; margin-right: 0.75rem; padding: 0 0.75rem; border: 1px solid var(--input); border-radius: var(--radius-md); background: var(--background); color: var(--foreground); font: inherit; font-weight: var(--font-weight-medium); cursor: pointer; }
.bo input[type="file"]::file-selector-button:hover { background: var(--accent); }
.input-search { position: relative; }
.input-search > .i { position: absolute; left: 0.75rem; top: 50%; translate: 0 -50%; color: var(--muted-foreground); pointer-events: none; }
.bo .input-search > input { padding-left: 2.25rem; }

/* Checkbox and radio, from the native inputs */
.bo input[type="checkbox"], .bo input[type="radio"] {
  appearance: none; flex: none; display: inline-grid; place-content: center;
  width: 1rem; height: 1rem; margin: 0; padding: 0;
  border: 1px solid var(--primary); background: var(--card);
  box-shadow: var(--shadow-sm); cursor: pointer;
}
.bo input[type="checkbox"] { border-radius: var(--radius-sm); }
.bo input[type="radio"] { border-radius: var(--radius-full); }
.bo input[type="checkbox"]:checked { background: var(--primary); }
.bo input[type="checkbox"]:checked::before {
  content: ""; width: 0.75rem; height: 0.75rem; background: var(--primary-foreground);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.bo input[type="radio"]:checked::before { content: ""; width: 0.625rem; height: 0.625rem; border-radius: var(--radius-full); background: var(--primary); }
.bo input[type="checkbox"]:focus-visible, .bo input[type="radio"]:focus-visible { box-shadow: 0 0 0 var(--ring-width) var(--ring); }
.bo .checkbox, .check { display: flex; width: fit-content; align-items: center; gap: 0.75rem; font-size: var(--text-sm); font-weight: var(--font-weight-medium); line-height: 1.25; cursor: pointer; }
.check-group { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; }
.check-group .check { gap: 0.5rem; }
.bo .checkbox-grid { display: grid; gap: 0.75rem 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 11rem), 1fr)); }

/* Switch: <input type="checkbox" role="switch" class="switch"> */
.bo input.switch {
  position: relative; width: 2.25rem; height: 1.25rem;
  border: 2px solid transparent; border-radius: var(--radius-full);
  background: var(--input); box-shadow: var(--shadow-sm);
  transition: background-color var(--duration-fast);
}
.bo input.switch::before {
  content: ""; position: absolute; left: 0; top: 0;
  width: 1rem; height: 1rem; border-radius: var(--radius-full);
  background: var(--background); box-shadow: var(--shadow-lg);
  transition: translate var(--duration-fast);
  mask: none;
}
.bo input.switch:checked { background: var(--primary); }
.bo input.switch:checked::before { width: 1rem; height: 1rem; translate: 1rem 0; background: var(--background); mask: none; }
.bo input.switch:focus-visible { box-shadow: 0 0 0 2px var(--background), 0 0 0 4px var(--ring); }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 0.5rem; }
.bo .stack > * + * { margin-top: 1.25rem; }
.bo fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }

/* ---------- Pager ---------- */
.bo .pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; margin: 1rem 0 0; font-size: var(--text-sm); }
.pager__count { color: var(--muted-foreground); }
.pager__pages { display: flex; flex-wrap: wrap; gap: 0.25rem; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); }
.bo .data-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.bo .data-table th { height: 2.5rem; padding: 0 0.75rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; font-weight: var(--font-weight-medium); color: var(--muted-foreground); white-space: nowrap; }
.bo .data-table td { padding: 0.75rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.bo .data-table tbody tr:last-child td { border-bottom: 0; }
.bo .data-table tbody tr { transition: background-color var(--duration-fast); }
.bo .data-table tbody tr:hover { background: var(--muted-50); }
.bo .data-table tbody tr[aria-selected="true"] { background: var(--muted); }
.bo .data-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.bo .data-table td:first-child { font-weight: var(--font-weight-semibold); }
.bo .data-table td:first-child a { text-decoration: none; }
.bo .data-table td:first-child a:hover { color: var(--gold-text); text-decoration: underline; }
.bo .data-table td.cell-plain { font-weight: var(--font-weight-normal); }
.bo .data-table .cell-actions { text-align: right; white-space: nowrap; }
@media (max-width: 47.999rem) {
  .bo .data-table--stack thead { display: none; }
  .bo .data-table--stack tr { display: grid; gap: 0.25rem; padding: 0.75rem; border-bottom: 1px solid var(--border); }
  .bo .data-table--stack td { padding: 0; border: 0; }
  .bo .data-table--stack .cell-actions { text-align: left; }
}
.selection-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; padding: 0.625rem 1rem; border: 1px solid var(--gold-40); border-radius: var(--radius-lg); background: var(--gold-10); font-size: var(--text-sm); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 1.5rem; }
@media (min-width: 40rem) { .grid--2, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { padding: 1.5rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); color: var(--card-foreground); box-shadow: var(--shadow-card); }
.card h3 { margin-top: 0.25rem; font-size: var(--text-2xl); line-height: var(--text-2xl--line-height); }
.card > p:not(.eyebrow) { margin-top: 0.5rem; color: var(--muted-foreground); }
.card--dark { border-color: var(--ink-border); background: var(--ink); color: var(--ink-foreground); }
.card--dark > p:not(.eyebrow) { color: var(--ink-muted); }
.stat { padding: 1.25rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); }
.stat__label { font-size: var(--text-sm); color: var(--muted-foreground); }
.stat__value { margin-top: 0.25rem; font-family: var(--font-display); font-size: var(--text-3xl); font-weight: var(--font-weight-bold); line-height: var(--text-3xl--line-height); text-transform: uppercase; }
.stat__note { margin-top: 0.25rem; font-size: var(--text-xs); color: var(--gold-text); }
.approval { max-width: var(--container-md); padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); box-shadow: var(--shadow-sm); }
.approval { display: flex; gap: 0.75rem; }
.approval__icon { display: grid; flex-shrink: 0; place-items: center; width: 2rem; height: 2rem; margin-top: 0.125rem; border-radius: var(--radius-full); background: var(--gold-15); color: var(--gold-text); }
.approval__title { font-size: var(--text-sm); font-weight: var(--font-weight-semibold); }
.approval__why { margin-top: 0.25rem; font-size: var(--text-sm); color: var(--muted-foreground); }
.approval .btn-row { margin-top: 0.75rem; }
.placeholder-panel { max-width: var(--container-sm); padding: 1.25rem; border: 1px dashed var(--border); border-radius: var(--radius-lg); background: var(--card); }
.placeholder-panel__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; }
.placeholder-panel h3 { font-size: var(--text-base); line-height: 1.5; }
.placeholder-panel__about { margin-top: 0.25rem; font-size: var(--text-sm); color: var(--muted-foreground); }
.placeholder-panel__soon { margin-top: 1rem; font-size: var(--text-xs); letter-spacing: var(--tracking-wide); text-transform: uppercase; color: color-mix(in oklch, var(--muted-foreground) 70%, transparent); }
.profile-card { padding: 1.25rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); box-shadow: var(--shadow-card); text-align: center; }
.profile-card img, .profile-card .avatar-empty { width: 6rem; height: 6rem; margin-inline: auto; border-radius: var(--radius-full); object-fit: cover; }
.profile-card h3 { margin-top: 0.75rem; font-size: var(--text-xl); }
.profile-card__title { font-size: var(--text-sm); color: var(--gold-text); }
.profile-card__links { display: flex; justify-content: center; gap: 1rem; margin-top: 0.75rem; color: var(--muted-foreground); }
.profile-card__links a:hover { color: var(--gold-text); }

/* Link cards: a module's overview, the dashboard */
.link-card { display: block; padding: 1.25rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); box-shadow: var(--shadow-card); text-decoration: none; transition: border-color var(--duration-fast); }
.link-card:hover { border-color: var(--gold); }
.link-card h2, .link-card h3 { display: flex; align-items: center; gap: 0.5rem; font-size: var(--text-xl); }
.link-card h2 .i, .link-card h3 .i { width: 1.25rem; height: 1.25rem; color: var(--gold-text); }
.link-card p { margin-top: 0.5rem; font-size: var(--text-sm); color: var(--muted-foreground); }
.link-card__action { display: inline-flex; align-items: center; gap: 0.375rem; margin-top: 0.75rem; font-size: var(--text-sm); font-weight: var(--font-weight-medium); color: var(--foreground); }
.link-card__action .i { width: 1rem; height: 1rem; }

/* ---------- Media ---------- */
.shape-wide { aspect-ratio: 16 / 9; }
.shape-card { aspect-ratio: 4 / 3; }
.shape-square { aspect-ratio: 1; }
:is(.shape-wide, .shape-card, .shape-square) { width: 100%; height: auto; border-radius: var(--radius-lg); object-fit: cover; }
.shape-circle { width: 100%; aspect-ratio: 1; border-radius: var(--radius-full); object-fit: cover; }
.bo .rich-text { color: var(--foreground-85); }

/* ---------- Brand elements ---------- */
.seal { width: auto; height: 3rem; color: var(--gold); }
.bo .seal-divider span { background: var(--foreground-25); }
.bo .seal-divider .seal { height: 2rem; }
.bo hr.rule { border: 0; border-top: 1px solid var(--border); }

/* ---------- Navigation ---------- */
.tabs { display: inline-flex; align-items: center; gap: 0; height: 2.25rem; padding: 0.25rem; border-radius: var(--radius-lg); background: var(--muted); color: var(--muted-foreground); }
.tabs a { display: inline-flex; align-items: center; height: 100%; padding: 0 0.75rem; border-radius: var(--radius-md); font-size: var(--text-sm); font-weight: var(--font-weight-medium); white-space: nowrap; text-decoration: none; transition: background-color var(--duration-fast), color var(--duration-fast); }
.tabs a:hover { color: var(--foreground); }
.tabs a[aria-current] { background: var(--background); color: var(--foreground); box-shadow: var(--shadow-sm); }
.tabs a:focus-visible { box-shadow: 0 0 0 2px var(--background), 0 0 0 4px var(--ring); }
.tabs-row { margin-bottom: 1.5rem; overflow-x: auto; }
.social-links { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.social-links a { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--muted-foreground); transition: border-color var(--duration-fast), color var(--duration-fast); }
.social-links a:hover { border-color: var(--gold); color: var(--gold-text); }
.surface-ink .social-links a, .panel__body--ink .social-links a { border-color: var(--ink-border); color: var(--ink-muted); }
.surface-ink .social-links a:hover, .panel__body--ink .social-links a:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Feedback ---------- */
.bo .toaster { inset: auto 1.5rem 1.5rem auto; gap: 0.875rem; width: min(22.25rem, calc(100vw - 2rem)); }
@media (max-width: 40rem) { .bo .toaster { inset: auto 1rem 1rem 1rem; width: auto; } }
.bo .toast { display: flex; align-items: center; gap: 0.75rem; padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--background); color: var(--foreground); box-shadow: var(--shadow-lg); font-size: var(--text-sm); animation: pop-in var(--duration-base) var(--ease-default); }
.bo .toast::before { content: ""; flex-shrink: 0; width: 1.25rem; height: 1.25rem; background: var(--success); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm4.7 7.7-5.5 5.5a1 1 0 0 1-1.4 0l-2.5-2.5a1 1 0 1 1 1.4-1.4l1.8 1.8 4.8-4.8a1 1 0 1 1 1.4 1.4Z'/%3E%3C/svg%3E") center / contain no-repeat; }
.bo .toast[data-kind="error"]::before { background: var(--destructive); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm0 5a1 1 0 0 1 1 1v4a1 1 0 1 1-2 0V8a1 1 0 0 1 1-1Zm0 8.5a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5Z'/%3E%3C/svg%3E"); }
.bo .toast p { margin: 0; }
.bo .toast p + p { margin-top: 0.25rem; }

.alert { position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: 0.75rem; padding: 0.75rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--background); color: var(--foreground); font-size: var(--text-sm); }
.alert > .i { margin-top: 0.125rem; }
.alert > :not(.i) { grid-column: 2; }
.alert:not(:has(> .i)) > * { grid-column: 1 / -1; }
.alert__title { margin-bottom: 0.25rem; font-size: var(--text-sm); font-weight: var(--font-weight-medium); line-height: 1; }
.alert p { margin: 0; line-height: var(--leading-relaxed); }
.alert[data-variant="destructive"] { border-color: var(--destructive-border); color: var(--destructive); }
.alert[data-variant="success"] { border-color: var(--success-border); background: var(--success-soft); color: var(--success); }
.alert[data-variant="warning"] { border-color: var(--warning-border); background: var(--warning-soft); color: var(--warning); }
.alert[data-variant="info"] { border-color: var(--info-border); background: var(--info-soft); color: var(--info); }
.bo .form-alert { margin: 0 0 1.25rem; padding: 0.75rem 1rem; border: 1px solid var(--destructive-border); border-radius: var(--radius-lg); background: var(--background); color: var(--destructive); font-size: var(--text-sm); }
.bo .form-success { margin: 0 0 1.25rem; padding: 0.75rem 1rem; border: 1px solid var(--success-border); border-radius: var(--radius-lg); background: var(--success-soft); color: var(--success); font-size: var(--text-sm); }

/* Dialog: <dialog class="dialog"> */
.dialog { width: 100%; max-width: 32rem; margin: auto; padding: 1.5rem; border: 1px solid var(--border); background: var(--background); color: var(--foreground); box-shadow: var(--shadow-lg); }
@media (min-width: 40rem) { .dialog { border-radius: var(--radius-lg); } }
.dialog[open] { animation: pop-in var(--duration-base) var(--ease-default); }
.dialog::backdrop { background: var(--overlay); }
.dialog__title { font-family: var(--font-body); font-size: var(--text-lg); font-weight: var(--font-weight-semibold); line-height: 1; text-transform: none; }
.dialog__about { margin-top: 0.375rem; font-size: var(--text-sm); color: var(--muted-foreground); }
.dialog__close { position: absolute; right: 1rem; top: 1rem; padding: 0; border: 0; border-radius: var(--radius-sm); background: none; color: inherit; opacity: 0.7; }
.dialog__close:hover { opacity: 1; }
.dialog .form-actions { justify-content: flex-end; margin-top: 1.5rem; }

/* Tooltip: data-tooltip="…" on an element that also has an aria-label */
[data-tooltip] { position: relative; }
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute; left: 50%; bottom: calc(100% + 0.375rem); z-index: 50;
  padding: 0.375rem 0.75rem; border-radius: var(--radius-md);
  background: var(--primary); color: var(--primary-foreground);
  font-size: var(--text-xs); font-weight: var(--font-weight-normal); line-height: 1.25; white-space: nowrap;
  translate: -50% 0.125rem; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--duration-fast), translate var(--duration-fast), visibility var(--duration-fast);
}
[data-tooltip]:hover::after, [data-tooltip]:focus-visible::after { translate: -50% 0; opacity: 1; visibility: visible; transition-delay: 300ms; }

.skeleton { border-radius: var(--radius-md); background: var(--skeleton); animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
.skeleton--block { height: 8rem; border-radius: var(--radius-lg); }
.skeleton--line { height: 1rem; }
@keyframes pulse { 50% { opacity: 0.5; } }
.empty-state { display: grid; justify-items: center; padding: 2rem; border: 1px dashed var(--border); border-radius: var(--radius-lg); text-align: center; }
.empty-state .seal { height: 2.5rem; }
.empty-state__title { margin-top: 0.75rem; font-weight: var(--font-weight-semibold); }
.empty-state__about { font-size: var(--text-sm); color: var(--muted-foreground); }
.empty-state .btn { margin-top: 1rem; }

/* ---------- Small shared pieces ---------- */
.bo .avatar { width: 2.5rem; height: 2.5rem; border-radius: var(--radius-full); object-fit: cover; }
.bo .avatar-empty { background: var(--muted); }
.person-cell { display: flex; align-items: center; gap: 0.75rem; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1rem; margin: 0; font-size: var(--text-sm); }
.facts dt { color: var(--muted-foreground); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.inline-form { display: inline; margin: 0; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.filters > * { flex: 0 1 auto; }
.filters > .input-search, .filters > input[type="search"] { flex: 1 1 16rem; }
.bo .filters select { width: auto; min-width: 10rem; }
.count-line { margin-bottom: 0.75rem; font-size: var(--text-sm); color: var(--muted-foreground); }

/* Sign-in (layouts/bare.html) */
.bo-auth { display: grid; place-items: center; min-height: 100dvh; padding: 3rem 1rem; }
.bo-auth .panel { width: min(100%, 26rem); }
.bo-auth .bo-auth__logo { display: flex; justify-content: center; margin-bottom: 1.5rem; }
.bo-auth .bo-auth__logo img { width: 13rem; height: auto; }

/* Dashboard widgets: a panel with a small tracked heading and an icon (as the Hub's) */
.widget { background: var(--card); }
.widget .panel__head { align-items: center; padding-block: 0.875rem; }
.widget .panel__head h2 { display: flex; align-items: center; gap: 0.5rem; font-size: var(--text-sm); line-height: 1.25; letter-spacing: var(--tracking-widest); }
.widget .panel__head h2 .i { color: var(--muted-foreground); letter-spacing: 0; }
.widget .panel__body { background: var(--card); }
.widget__list { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.widget__title { font-weight: var(--font-weight-medium); }

/* Notifications page */
.bo .notification-list { display: grid; gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.bo .notification-list li { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 0.25rem 1rem; padding: 1rem 1.25rem; border: 1px solid var(--border); border-left-width: 4px; border-radius: var(--radius-lg); background: var(--card); box-shadow: var(--shadow-card); }
.bo .notification-list li.is-unread { border-left-color: var(--gold); }
.bo .notification-list li > .small { grid-column: 1; }
.bo .notification-list li > .badge { grid-column: 2; grid-row: 1; }
.bo .notification-list__title { all: unset; cursor: pointer; font-weight: var(--font-weight-semibold); }
.bo .notification-list__title:focus-visible { box-shadow: 0 0 0 2px var(--ring); }
.bo .notification-list__body { margin-top: 0.25rem; font-size: var(--text-sm); color: var(--muted-foreground); }
.bo-auth > div { width: min(100%, 26rem); }
.bo-auth .panel { width: 100%; }
.bo .auth-title { font-size: var(--text-4xl); line-height: var(--text-4xl--line-height); }
.bo .auth-subtitle { font-size: var(--text-xl); }
.bo-auth .btn[data-size="lg"] { width: 100%; }

/* Account and publishing states, as the status palette (docs/design.md, "Badges") */
.badge[data-status="Active"] { border-color: var(--success-border); background: var(--success-soft); color: var(--success); }
.badge[data-status="Invited"] { border-color: var(--info-border); background: var(--info-soft); color: var(--info); }
.badge[data-status="Disabled"] { border-color: var(--destructive-30); background: var(--destructive-soft); color: var(--destructive); }
.badge[data-status="Archived"] { border-color: var(--border); background: var(--muted); color: var(--muted-foreground); }
.badge[data-tone="warning"] { border-color: var(--warning-border); background: var(--warning-soft); color: var(--warning); }

/* An unstyled <button> in a page is an outline workspace button (small in toolbars). */
.bo-main button:not([class]), .bo-main input[type="submit"]:not([class]) {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  height: 2.25rem; padding: 0 1rem;
  border: 1px solid var(--input); border-radius: var(--radius-md);
  background: var(--background); color: var(--foreground);
  box-shadow: var(--shadow-xs);
  font-size: var(--text-sm); font-weight: var(--font-weight-medium); line-height: 1; white-space: nowrap;
  transition: background-color var(--duration-fast), color var(--duration-fast);
}
.bo-main button:not([class]):hover, .bo-main input[type="submit"]:not([class]):hover { background: var(--accent); color: var(--accent-foreground); }
.bo-main button:not([class]):focus-visible { box-shadow: 0 0 0 var(--ring-width) var(--ring); }
.bo-main :is(.order-buttons, .block-editor__controls, .block-editor__add) button:not([class]) { height: 2rem; padding: 0 0.75rem; font-size: var(--text-xs); }
.bo-main :is(.order-buttons, .block-editor__controls, .block-editor__add) .btn { height: 2rem; padding: 0 0.75rem; font-size: var(--text-xs); }
.bo .data-table .cell-sub { display: block; font-weight: var(--font-weight-normal); color: var(--muted-foreground); }
@media (min-width: 48rem) { .filters .checkbox { white-space: nowrap; } }
.bo .person-layout { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 64rem) { .bo .person-layout { grid-template-columns: minmax(0, 1fr) 20rem; } }
.bo .narrow-form { max-width: var(--container-3xl); }
.bo .form-section { margin-top: 0.5rem; padding-top: 1rem; border-top: 1px solid var(--border); font-size: var(--text-lg); }
.history { display: grid; gap: 0.75rem; margin: 0; padding: 0; list-style: none; font-size: var(--text-sm); }
.bo .field-grid, .bo .field-row { gap: 1.25rem; }
.plain-list { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.bo .hours-wrap { max-width: 28rem; }
.bo .hours-table th[scope="row"] { height: auto; padding: 0.5rem 0.75rem; color: var(--foreground); }
.bo .hours-table td { padding: 0.5rem 0.75rem; font-weight: var(--font-weight-normal); }
.bo .add-member { align-items: end; }
.bo .add-member .field:last-child { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }

/* ---------- Style guide pages (apps/office style_guide) ---------- */
.swatch { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); font-size: var(--text-sm); }
.swatch p { padding-inline: 0.75rem; }
.swatch p:first-of-type { padding-top: 0.75rem; }
.swatch p:last-child { margin: 0; padding-bottom: 0.75rem; color: var(--muted-foreground); }
.swatch strong { font-weight: var(--font-weight-semibold); }
.sw { height: 5rem; }
.sw-gold { background: var(--gold); } .sw-gold-dark { background: var(--gold-dark); } .sw-gold-soft { background: var(--gold-soft); }
.sw-ink { background: var(--ink); } .sw-ink-raised { background: var(--ink-raised); } .sw-gradient { background: var(--gradient-gold); }
.sw-gold-text { background: var(--gold-text); }
.sw-background { background: var(--background); } .sw-card { background: var(--card); } .sw-muted { background: var(--muted); } .sw-border { background: var(--border); }
.sw-foreground { background: var(--foreground); } .sw-muted-foreground { background: var(--muted-foreground); } .sw-field-border { background: var(--field-border); } .sw-ink-muted { background: var(--ink-muted); }
.sw-success { background: linear-gradient(90deg, var(--success) 50%, var(--success-soft) 50%); }
.sw-warning { background: linear-gradient(90deg, var(--warning) 50%, var(--warning-soft) 50%); }
.sw-info { background: linear-gradient(90deg, var(--info) 50%, var(--info-soft) 50%); }
.sw-destructive { background: linear-gradient(90deg, var(--destructive) 50%, var(--destructive-soft) 50%); }
.sg-h2 { font-size: var(--text-4xl); line-height: var(--text-4xl--line-height); }
@media (min-width: 64rem) { .bo .sg-h2 { font-size: var(--text-5xl); line-height: 1; } }
.bo .sg-h3 { margin-top: 0.25rem; font-size: var(--text-2xl); line-height: var(--text-2xl--line-height); }
.sg-ink-muted { margin-top: 0.75rem; color: var(--ink-muted); }
.sg-shadow { display: grid; place-items: center; height: 4rem; border-radius: var(--radius-lg); background: var(--card); font-size: var(--text-sm); }
.sg-shadow--card { box-shadow: var(--shadow-card); } .sg-shadow--elevated { box-shadow: var(--shadow-elevated); } .sg-shadow--gold { box-shadow: var(--shadow-gold); }
.sg-display { font-family: var(--font-display); font-size: var(--text-5xl); font-weight: 700; line-height: 1; text-transform: uppercase; }
.sg-body { font-size: var(--text-3xl); line-height: var(--text-3xl--line-height); }
.sg-headings { display: grid; gap: 0.75rem; }
.sg-headings h4 { font-size: var(--text-xl); }
.sg-flush { margin-bottom: 0; }
.sg-reading { display: grid; gap: 0.75rem; max-width: var(--container-2xl); }
.sg-reading p + p, .sg-reading .lead { margin-top: 0; }
.sg-steps { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; font-size: var(--text-sm); color: var(--muted-foreground); }
.sg-steps li { display: grid; grid-template-columns: 5rem 1fr; align-items: center; }
.sg-bar { display: block; height: 0.75rem; border-radius: var(--radius-sm); background: var(--gold); }
.sg-bar--1 { width: 4px; } .sg-bar--2 { width: 8px; } .sg-bar--3 { width: 12px; } .sg-bar--4 { width: 16px; } .sg-bar--6 { width: 24px; } .sg-bar--8 { width: 32px; } .sg-bar--10 { width: 40px; } .sg-bar--16 { width: 64px; } .sg-bar--20 { width: 80px; }
.sg-containers { display: grid; gap: 0.75rem; }
.sg-container { margin-inline: auto; padding: 0.75rem 1rem; border: 1px dashed var(--gold); border-radius: var(--radius-md); font-size: var(--text-sm); }
.sg-container--7xl { width: 100%; } .sg-container--5xl { width: 80%; } .sg-container--3xl { width: 60%; }
.sg-corners { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.sg-corner { display: grid; place-items: center; width: 7rem; height: 5rem; border: 1px solid var(--border); background: var(--muted); font-size: var(--text-xs); }
.sg-corner--sm { border-radius: var(--radius-sm); } .sg-corner--md { border-radius: var(--radius-md); } .sg-corner--lg { border-radius: var(--radius-lg); } .sg-corner--full { width: 7rem; height: 7rem; border-radius: var(--radius-full); }
.sg-cell { height: 4rem; border-radius: var(--radius-lg); background: var(--muted); }
.sg-gap { gap: 1rem; }
.sg-mt { margin-top: 1rem; }
.sg-self-end { align-self: end; }
.sg-seals { gap: 2rem; }
.bo .sg-seal--lg { height: 4rem; } .bo .sg-seal--dark { color: var(--gold-dark); } .bo .sg-seal--ink { height: 2rem; color: var(--ink); }
.sg-split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 64rem) { .sg-split { grid-template-columns: 1fr 1fr; } }
.sg-split h2 { margin-top: 0.25rem; font-size: var(--text-3xl); }
.sg-split .rich-text { margin-top: 1rem; }
.sg-shadow-card { box-shadow: var(--shadow-card); }
.sg-sections { max-width: 20rem; padding: 0; }
.sg-toasts { display: grid; gap: 0.875rem; max-width: 22.25rem; }
.sg-menu-demo { min-height: 14rem; }
.sg-w-2-3 { width: 66%; } .sg-w-1-2 { width: 50%; }
.pager__gap { display: inline-flex; align-items: center; padding: 0 0.25rem; color: var(--muted-foreground); }

/* ---------- Page structure the editors share ---------- */
/* Panels, tables and sections that follow each other in a page */
.bo-main > :is(.panel, .table-wrap, section, form, .grid, .person-layout, .media-edit-layout) + :is(.panel, .table-wrap, section, form, .grid, .person-layout, .media-edit-layout) { margin-top: 1.5rem; }
.bo-main > .filters + :is(section, .table-wrap) { margin-top: 0; }
/* A form's groups: a rule and a small heading between them */
.bo .panel__body > fieldset > legend, .bo .panel__body > .stack > fieldset > legend { width: 100%; margin-bottom: 0.75rem; padding-top: 1.25rem; border-top: 1px solid var(--border); font-family: var(--font-display); font-size: var(--text-lg); font-weight: var(--font-weight-bold); line-height: 1.25; text-transform: uppercase; }
.bo .panel__body > fieldset:first-child > legend, .bo .panel__body > .form-alert + fieldset > legend { padding-top: 0; border-top: 0; }
.bo .panel__body > fieldset > legend + * { margin-top: 0; }
/* Older blocks, styled as panels until each is converted */
.bo .account-panel, .bo .danger-zone, .bo .admin-group { padding: 1.25rem 1.5rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); box-shadow: var(--shadow-card); }
.bo .danger-zone { display: grid; gap: 0.75rem; justify-items: start; margin-top: 1.5rem; }
.bo .account-panel + form, .bo .account-panel + .panel { margin-top: 1.5rem; }
.bo :is(.account-panel, .danger-zone, .admin-group) h2 { font-size: var(--text-xl); }
.bo .danger-panel .panel__head h2 { color: var(--destructive); }
.bo .form-note { margin-top: 0.75rem; font-size: var(--text-sm); color: var(--muted-foreground); }
.bo .form-note a, .bo .lead a, .bo .field-hint a { font-weight: var(--font-weight-semibold); color: var(--gold-text); }
.bo .ordered-list li { border-color: var(--border); }
.bo .media-grid img { border-radius: var(--radius-lg); }
.bo .profile-photo-field .avatar-empty { width: 6rem; height: 6rem; border-radius: var(--radius-full); }
.bo .profile-photo-field img { width: 6rem; height: 6rem; border-radius: var(--radius-full); object-fit: cover; }
.bo .block-editor__block { border-color: var(--border); border-radius: var(--radius-lg); background: var(--card); }
.bo .block-editor__item { border-radius: var(--radius-md); }
.filters--spaced { margin-top: 1.5rem; }
.bo .lead-message { margin: 0; padding: 1rem 1.25rem; border-left: 4px solid var(--gold); border-radius: 0 var(--radius-md) var(--radius-md) 0; background: var(--card); white-space: pre-wrap; }
.bo .lead-note { padding-block: 0.75rem; border-top: 1px solid var(--border); }
.bo .lead-note p { margin: 0; }
.bo .lead-note p + p { margin-top: 0.25rem; white-space: pre-wrap; }
/* Form panels run the full width like every other panel; their fields keep a reading width. */
.bo .panel.narrow-form { max-width: none; }
.bo .panel.narrow-form > .panel__body > * { max-width: var(--container-3xl); }
/* Collapsed sidebar: the seal stands in for the logo */
.bo-sidebar__seal { display: none; }
@media (min-width: 48rem) {
  :root[data-nav="collapsed"] .bo-sidebar__logo img { display: none; }
  :root[data-nav="collapsed"] .bo-sidebar__seal { display: block; height: 2.25rem; }
}
@media (max-width: 47.999rem) { .bo .data-table--stack .num { text-align: left; } }
.bo .empty-state__about { margin-top: 0.25rem; }

.bo fieldset.block-editor__block { padding: 1rem 1.25rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); }
.bo fieldset.block-editor__block > legend { padding-inline: 0.375rem; font-weight: var(--font-weight-semibold); }
.bo fieldset.block-editor__item { padding: 0.75rem 1rem; border: 1px dashed var(--border); border-radius: var(--radius-md); }
.bo fieldset.field > legend { font-family: var(--font-body); font-size: var(--text-sm); font-weight: var(--font-weight-medium); text-transform: none; }

/* ---------- Top-bar search (apps/office search.rs) ---------- */
.bo-search { position: relative; width: 100%; max-width: 24rem; margin-left: auto; }
.bo-search > .i { position: absolute; left: 0.75rem; top: 50%; translate: 0 -50%; color: var(--muted-foreground); pointer-events: none; }
.bo .bo-search input { height: 2.5rem; padding-left: 2.25rem; border-color: var(--input); border-radius: var(--radius-full); background: var(--muted-40); box-shadow: none; }
.bo .bo-search input:focus-visible { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold-30); }
.bo-search__results { position: absolute; left: 0; right: 0; top: calc(100% + 0.375rem); z-index: 50; }
.bo-search__results:empty { display: none; }
.search-suggest { display: grid; max-height: 70vh; overflow-y: auto; padding: 0.25rem; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--popover); color: var(--popover-foreground); box-shadow: var(--shadow-md); animation: pop-in var(--duration-base) var(--ease-default); }
.search-suggest .menu__item { align-items: flex-start; }
.search-suggest .menu__item > .i { margin-top: 0.125rem; color: var(--muted-foreground); }
.search-suggest .menu__item > span { display: grid; min-width: 0; }
.search-suggest__detail { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--text-xs); color: var(--muted-foreground); }
.search-suggest .menu__item:hover .search-suggest__detail, .search-suggest .menu__item:focus-visible .search-suggest__detail { color: inherit; }
.search-suggest__none { padding: 0.5rem; font-size: var(--text-sm); color: var(--muted-foreground); }
.search-suggest__all { font-weight: var(--font-weight-medium); }
.bo-search-button { display: none; padding: 0.25rem; color: inherit; }
.bo-search-button .i { width: 1.25rem; height: 1.25rem; }
/* Phones and narrower desktops: a search button (to the search page), so the breadcrumbs keep room */
@media (max-width: 71.999rem) {
  .bo-search { display: none; }
  .bo-search-button { display: inline-flex; }
}
/* The search page */
.result-list { margin: 0; padding: 0; list-style: none; }
.result-list li + li { border-top: 1px solid var(--border); }
.result-list a { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.875rem 1.25rem; text-decoration: none; transition: background-color var(--duration-fast); }
.result-list a:hover { background: var(--muted-50); }
.result-list a > .i { margin-top: 0.2rem; color: var(--muted-foreground); }
.result-list a > span { display: grid; gap: 0.125rem; min-width: 0; }
.result-list a:hover strong { color: var(--gold-text); }
/* The search box's clear button, in the muted text colour rather than the browser's blue */
.bo input[type="search"]::-webkit-search-cancel-button {
  appearance: none; width: 0.875rem; height: 0.875rem; margin-left: 0.5rem;
  background: var(--muted-foreground); cursor: pointer;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* `hidden` always wins over a component's display */
.bo [hidden] { display: none !important; }
.bo .dialog__title { font-size: var(--text-lg); line-height: 1.25; }
.bo .dialog__about { margin-top: 0.5rem; line-height: var(--leading-relaxed); }
.bo .dialog__word { margin-top: 1rem; }
.bo .dialog__close { position: absolute; }
.dialog { position: fixed; }
/* Phones: Previous, this page and Next; the count line says where you are */
@media (max-width: 40rem) {
  .pager__pages > a[data-variant="ghost"], .pager__gap { display: none; }
}

/* ---------- Pending items (apps/office pending.rs) ---------- */
.bo-pending { padding: 0.75rem; }
.bo-pending:empty, .bo-pending:has(> span:only-child:empty) { display: none; }
.bo-pending__button {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--gold-40); border-radius: var(--radius-lg);
  background: var(--ink-raised); color: var(--ink-foreground);
  font-size: var(--text-sm); font-weight: var(--font-weight-medium); line-height: 1.35;
  transition: border-color var(--duration-fast);
}
.bo-pending__button:hover, .bo-pending__menu[open] > .bo-pending__button { border-color: var(--gold); }
.menu--up .menu__list { top: auto; bottom: calc(100% + 0.25rem); left: 0; right: 0; width: auto; }
.bo-pending .menu__item { align-items: flex-start; }
.bo-pending .menu__item > .i { margin-top: 0.125rem; color: var(--muted-foreground); }
.bo-pending .menu__item > span { display: grid; min-width: 0; }
@media (min-width: 48rem) {
  :root[data-nav="collapsed"] .bo-pending { padding-inline: 0.5rem; }
  :root[data-nav="collapsed"] .bo-pending__button { justify-content: center; padding-inline: 0; }
  :root[data-nav="collapsed"] .bo-pending__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  :root[data-nav="collapsed"] .bo-pending .menu__list { right: auto; width: 16rem; }
}
.bo-pending-phone { display: none; }
@media (max-width: 47.999rem) {
  .bo-pending-phone:not([hidden]) { display: inline-flex; }
}
.bo .result-list a > .pending-badge { margin-left: auto; align-self: center; }
.bo .bell summary svg, .bo-topbar__end > * { flex-shrink: 0; }
.bo-pending .search-suggest__detail { white-space: normal; }
.bo-pending-phone .pending-badge { margin-right: 0.25rem; }

/* ---------- Rich text editor (js/rich-text.js, Trix) ---------- */
.rt { overflow: hidden; border: 1px solid var(--field-border); border-radius: var(--radius-md); background: var(--card); box-shadow: var(--shadow-xs); transition: border-color var(--duration-fast), box-shadow var(--duration-fast); }
.rt:focus-within { box-shadow: 0 0 0 var(--ring-width) var(--ring); }
.rt[data-invalid] { border-color: var(--destructive); }
.rt trix-toolbar { position: sticky; top: 0; z-index: 2; display: block; border-bottom: 1px solid var(--border); background: var(--background); }
.rt-toolbar { display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; padding: 0.375rem; white-space: normal; }
.rt-group { display: inline-flex; gap: 0.125rem; }
.rt-group + .rt-group { padding-left: 0.5rem; border-left: 1px solid var(--border); }
.rt-group--end { margin-left: auto; }
.rt-button { display: inline-grid; place-items: center; width: 2rem; height: 2rem; padding: 0; border: 0; border-radius: var(--radius-sm); background: none; color: var(--foreground); cursor: pointer; transition: background-color var(--duration-fast); }
.rt-button:hover { background: var(--accent); color: var(--accent-foreground); }
.rt-button.trix-active { background: var(--primary); color: var(--primary-foreground); }
.rt-button:disabled { opacity: 0.35; cursor: default; background: none; }
.rt-button:focus-visible { box-shadow: 0 0 0 2px var(--ring); }
.rt-dialogs { position: relative; }
.rt-dialog { display: none; flex-wrap: wrap; align-items: end; gap: 0.5rem; padding: 0.625rem; border-top: 1px solid var(--border); background: var(--background); }
.rt-dialog[data-trix-active] { display: flex; }
.rt-dialog__label { display: grid; flex: 1 1 16rem; gap: 0.375rem; font-size: var(--text-sm); font-weight: var(--font-weight-medium); }
.rt-dialog__buttons { display: flex; gap: 0.375rem; }
.bo .rt-dialog input[type="url"] { height: 2rem; }
.rt-editor { display: block; min-height: 10rem; max-height: 70vh; overflow-y: auto; padding: 0.75rem 1rem; outline: none; font-size: var(--text-base); line-height: var(--leading-relaxed); color: var(--foreground); }
.rt-editor:empty::before { color: var(--muted-foreground); }
.bo .rt-editor > * + * { margin-top: 0.75rem; }
.bo .rt-editor h2 { font-size: var(--text-2xl); line-height: 1.2; }
.bo .rt-editor h3 { font-size: var(--text-xl); line-height: 1.25; color: var(--gold-text); }
.bo .rt-editor ul, .bo .rt-editor ol { padding-left: 1.5rem; }
.bo .rt-editor ul { list-style: disc; }
.bo .rt-editor ol { list-style: decimal; }
.bo .rt-editor blockquote { padding-left: 1rem; border-left: 3px solid var(--gold); color: var(--muted-foreground); }
.bo .rt-editor a { color: var(--gold-text); text-decoration: underline; }
.bo .rt-editor figure { margin: 0; }
.bo .rt-editor figure img { border-radius: var(--radius-lg); }
.bo .rt-editor .attachment__caption { display: none; }
/* The photo picker */
.photo-picker { max-width: 48rem; }
.photo-picker__search { margin-top: 1rem; }
.photo-picker__results { max-height: 55vh; margin-top: 1rem; overflow-y: auto; }
.photo-picker__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.photo-picker__grid button { display: grid; gap: 0.375rem; width: 100%; padding: 0.375rem; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--card); text-align: left; cursor: pointer; transition: border-color var(--duration-fast); }
.photo-picker__grid button:hover, .photo-picker__grid button:focus-visible { border-color: var(--gold); }
.photo-picker__grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); background: var(--muted); }
.photo-picker__name { overflow: hidden; font-size: var(--text-xs); text-overflow: ellipsis; white-space: nowrap; }
.photo-picker__more { margin-top: 1rem; text-align: center; }
.photo-picker__grid button { position: relative; }
.photo-picker__grid button[aria-pressed="true"] { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); }
.photo-picker__check { position: absolute; top: 0.625rem; right: 0.625rem; display: none; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: var(--radius-full); background: var(--gold); color: var(--primary-foreground, #fff); box-shadow: 0 0 0 2px var(--card); }
.photo-picker__check .i { width: 1rem; height: 1rem; }
.photo-picker__grid button[aria-pressed="true"] .photo-picker__check { display: grid; }
.photo-picker__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.photo-picker__footer[hidden] { display: none; }

/* Photo fields (brk_ui::PhotoField, js/photo-library.js) */
.bo .field > .field-label { font-size: var(--text-sm); font-weight: var(--font-weight-medium); line-height: 1; }
.photo-field__chosen { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.photo-field__chosen:empty { display: none; }
.photo-field__item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.75rem; padding: 0.5rem; border: 1px solid var(--field-border); border-radius: var(--radius-md); background: var(--card); }
/* Phones: the buttons go under the name, so a long name and its badge keep their room. */
@media (max-width: 29.99rem) {
  .photo-field__item { grid-template-columns: auto minmax(0, 1fr); }
  .photo-field .photo-field__thumb { grid-row: span 2; }
  .photo-field__tools { grid-column: 2; justify-self: start; margin-left: -0.5rem; }
}
.photo-field .photo-field__thumb { width: 4rem; max-width: none; height: 4rem; border-radius: var(--radius-sm); object-fit: cover; background: var(--muted); }
.photo-field__about { display: grid; justify-items: start; gap: 0.25rem; min-width: 0; }
.photo-field__about .badge { max-width: 100%; white-space: normal; }
.photo-field__name { max-width: 100%; overflow: hidden; font-size: var(--text-sm); font-weight: var(--font-weight-medium); text-overflow: ellipsis; white-space: nowrap; }
.photo-field__tools { display: flex; flex: none; gap: 0.125rem; }
.photo-field__tools[hidden] { display: none; }
.photo-field__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.photo-field__actions[hidden], .photo-field__fallback[hidden], .photo-field__empty[hidden] { display: none; }
.photo-field__empty { margin: 0; color: var(--muted-foreground); }
.photo-field__fallback { display: grid; gap: 0.375rem; }
.photo-field__status:empty { display: none; }
.photo-field[data-invalid="true"] .photo-field__item { border-color: var(--destructive); }
/* A video's thumbnail (brk_content video_field): the copy of the provider's, and a photo to use
   instead, grouped under the video's link. */
.video-thumb { display: grid; gap: 1rem; padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--muted); }
.video-thumb__row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.75rem; }
.video-thumb .photo-field__thumb { width: 4rem; max-width: none; height: 4rem; border-radius: var(--radius-sm); object-fit: cover; background: var(--card); }
.video-thumb__state { margin: 0; overflow-wrap: anywhere; }
.video-thumb__title { font-weight: var(--font-weight-medium); }
.video-list-thumbs { display: grid; gap: 0.75rem; }
.video-list-thumbs > summary { cursor: pointer; font-weight: var(--font-weight-medium); }
.video-list-thumbs[open] > summary { margin-bottom: 0.75rem; }
.video-list-thumbs > .video-thumb + .video-thumb { margin-top: 0.75rem; }
@media (max-width: 30rem) {
  .video-thumb__row { grid-template-columns: auto minmax(0, 1fr); }
  .video-thumb__row .btn { grid-column: 1 / -1; justify-self: start; }
}

/* Forms are white (owner, 2026-11-06): every field, and any panel or block that holds a form.
   Panels that only show things keep the guide's off-white body. */
.bo form.panel > .panel__body,
.bo .panel__body:has(form, input:not([type="hidden"]), select, textarea, trix-editor),
.bo form.panel__body { background: var(--card); }
.bo .block-editor__block, .bo .block-editor__item, .bo .rt-dialog, .bo .rt trix-toolbar { background: var(--card); }
.bo .rt trix-toolbar { border-bottom-color: var(--border); }
.bo input.switch { background: var(--input); }
.bo input.switch::before { background: var(--card); }
.bo input[type="file"] { width: 100%; padding: 0.5rem; border: 1px solid var(--field-border); border-radius: var(--radius-md); background: var(--card); }
/* The photo page's "Used on" list */
.bo .used-in { margin-inline: -1.5rem; border-block: 1px solid var(--border); }
.bo .used-in a, .bo .used-in__plain { padding-inline: 1.5rem; }
.bo .used-in__plain { display: flex; padding-block: 0.875rem; }
.bo .used-in a > span, .bo .used-in__plain > span { display: grid; gap: 0.125rem; }
.bo .panel.narrow-form > .panel__body > .used-in { max-width: none; }

/* File buttons (forms::file_button): the input sits inside the button, out of sight. */
.file-field__row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; }
.file-button { position: relative; cursor: pointer; }
.file-button:has(input:focus-visible) { box-shadow: 0 0 0 var(--ring-width) var(--ring); }
.file-field__chosen { margin: 0; min-width: 0; overflow-wrap: anywhere; }

/* Training (learning): video cards, rails, the watched meter and the lesson player. */
.video-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
@media (max-width: 1250px) { .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .video-grid { grid-template-columns: minmax(0, 1fr); } }
.video-card { display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; padding-bottom: 0.75rem; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); box-shadow: var(--shadow-card); transition: border-color var(--duration-fast); }
.video-card:hover { border-color: var(--gold); }
.video-card > :not(.video-card__link) { margin: 0; padding-inline: 1rem; }
.video-card__link { display: flex; flex-direction: column; gap: 0.75rem; color: inherit; text-decoration: none; }
.video-card__thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--muted); }
.video-card__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-card__placeholder { display: grid; place-items: center; height: 100%; color: var(--muted-foreground); }
.video-card__placeholder .i { width: 2rem; height: 2rem; }
.video-card__badge { position: absolute; top: 0.5rem; left: 0.5rem; }
.video-card__title { padding-inline: 1rem; font-family: var(--font-body); font-size: var(--text-base); font-weight: var(--font-weight-semibold); text-transform: none; letter-spacing: normal; line-height: 1.35; overflow-wrap: anywhere; }
.video-card__link:focus-visible .video-card__title { text-decoration: underline; }
.video-card__meta { font-size: var(--text-xs); color: var(--muted-foreground); }
.video-card__progress { display: flex; align-items: center; gap: 0.5rem; font-size: var(--text-xs); color: var(--muted-foreground); }
.video-card__progress span, .lesson__coverage span { white-space: nowrap; }
.video-card .save-toggle { margin-top: auto; }
.rail { min-width: 0; }
.rail h2 { margin-bottom: 0.75rem; font-size: var(--text-xl); }
.rail__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1rem; margin-bottom: 0.75rem; }
.rail__head h2 { margin-bottom: 0; }
.rail__track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(15rem, 18rem); gap: 1rem; padding-bottom: 0.5rem; overflow-x: auto; scroll-snap-type: x proximity; }
.rail__track > * { scroll-snap-align: start; }
.meter { flex: 1 1 auto; width: 100%; max-width: 12rem; height: 0.375rem; border: 0; border-radius: var(--radius-full); background: var(--muted); appearance: none; overflow: hidden; }
.meter::-webkit-progress-bar { border-radius: var(--radius-full); background: var(--muted); }
.meter::-webkit-progress-value { border-radius: var(--radius-full); background: var(--gold); }
.meter::-moz-progress-bar { border-radius: var(--radius-full); background: var(--gold); }
.lesson { display: grid; gap: 1rem; max-width: 70rem; }
.lesson > * { margin: 0; }
.lesson__head h1 { overflow-wrap: anywhere; }
.lesson-player { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius-lg); background: var(--ink); box-shadow: var(--shadow-card); }
.lesson-player__start { position: absolute; inset: 0; display: block; }
.lesson-player__start img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lesson-player__play { position: absolute; top: 50%; left: 50%; width: 4.5rem; height: 4.5rem; border-radius: var(--radius-full); background: var(--ink); box-shadow: var(--shadow-elevated); transform: translate(-50%, -50%); transition: transform var(--duration-fast); }
.lesson-player__play::after { content: ""; position: absolute; top: 50%; left: 54%; border-block: 0.8rem solid transparent; border-left: 1.3rem solid var(--gold); transform: translate(-50%, -50%); }
.lesson-player__start:hover .lesson-player__play, .lesson-player__start:focus-visible .lesson-player__play { transform: translate(-50%, -50%) scale(1.05); }
.lesson-player__start:focus-visible { outline: none; box-shadow: inset 0 0 0 var(--ring-width-strong) var(--ring); }
.lesson-player__frame, .lesson-player__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lesson__coverage { display: flex; align-items: center; gap: 0.75rem; font-size: var(--text-sm); color: var(--muted-foreground); }
.lesson__coverage .meter { max-width: 20rem; }
.lesson__elsewhere a { display: inline-flex; align-items: center; gap: 0.35rem; }
.lesson__elsewhere .i { width: 0.95rem; height: 0.95rem; }
.tab-count { margin-left: 0.25rem; font-size: var(--text-xs); color: var(--muted-foreground); font-variant-numeric: tabular-nums; }
.lesson__message:empty { display: none; }
.lesson__missed ul { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.5rem 0 0; padding: 0; list-style: none; }
.lesson__missed[hidden] { display: none; }
.library-filters .filters { margin-bottom: 0.5rem; }
.bo .library-filters select.library-sort { min-width: 15rem; }
.library-more { margin-bottom: 1rem; }
.library-more > summary { width: fit-content; cursor: pointer; font-size: var(--text-sm); font-weight: var(--font-weight-medium); color: var(--gold-text); }
.library-more__body { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr)); align-items: end; gap: 0.75rem 1rem; margin-top: 0.75rem; padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); }
.library-more__body .field { margin: 0; }
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.active-filters .tag-chip { text-decoration: none; }
.inline-edit { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.inline-edit input { flex: 1 1 12rem; min-width: 0; }
.lesson__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.lesson__tools p { margin: 0; }
.lesson__summary { display: grid; gap: 0.75rem; max-width: 65ch; line-height: var(--leading-relaxed); }
@media (prefers-reduced-motion: reduce) { .lesson-player__play, .video-card { transition: none; } }
.sg-player { max-width: 32rem; }

/* Training: courses, certificates, a lesson's place in a course or playlist, resources. */
.course-card__text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.course-card .action-link { font-size: var(--text-sm); }
.course-card__program { display: grid; place-items: center; background: var(--muted); color: var(--gold-dark); }
.course-card__program > svg { width: 3rem; height: 3rem; }
.courses-footer { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin-top: 1.5rem; color: var(--muted-foreground); }
.courses-footer > svg { width: 1.1rem; height: 1.1rem; flex: none; }
.course-section + .course-section { margin-top: 1.25rem; }
.course-section h3 { margin-bottom: 0.5rem; font-size: var(--text-lg); }
.course-outline { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); }
.course-outline__item { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr) auto; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; }
/* A course's numbered lessons (01, 02 …) have a column for the number. */
.course-outline__item:has(> .course-outline__number) { grid-template-columns: 1.5rem 1.5rem minmax(0, 1fr) auto; }
.course-outline__item + .course-outline__item { border-top: 1px solid var(--border); }
.course-outline__mark { display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border: 1px solid var(--field-border); border-radius: var(--radius-full); color: var(--status-foreground); }
.course-outline__item.is-done .course-outline__mark { border-color: var(--success); background: var(--success); }
.course-outline__mark .i { width: 0.875rem; height: 0.875rem; }
.course-outline__title { min-width: 0; overflow-wrap: anywhere; font-weight: var(--font-weight-medium); }
.course-outline__summary { display: block; margin-top: 0.125rem; font-weight: var(--font-weight-normal, 400); color: var(--muted-foreground); }
.course-outline__meta { font-size: var(--text-xs); color: var(--muted-foreground); white-space: nowrap; }
@media (max-width: 600px) {
  .course-outline__item { grid-template-columns: 1.5rem minmax(0, 1fr); }
  .course-outline__meta { grid-column: 2; white-space: normal; }
  .course-outline__item:has(> .course-outline__number) { grid-template-columns: 1.5rem 1.25rem minmax(0, 1fr); gap: 0.5rem; padding: 0.75rem; }
  .course-outline__item:has(> .course-outline__number) .course-outline__meta { grid-column: 3; }
}
.certificate-card { border-color: var(--gold); background: linear-gradient(135deg, var(--card), var(--background)); }
.certificate-card .btn-row { margin-top: 1rem; }
.lesson__within a { display: inline-flex; align-items: center; gap: 0.25rem; font-size: var(--text-sm); font-weight: var(--font-weight-medium); color: var(--gold-text); text-decoration: none; }
.lesson__within a:hover { text-decoration: underline; }
.lesson__pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.lesson__pager a { display: grid; gap: 0.25rem; padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); font-weight: var(--font-weight-medium); text-decoration: none; overflow-wrap: anywhere; transition: border-color var(--duration-fast); }
.lesson__pager a:hover { border-color: var(--gold); }
.lesson__pager-next { grid-column: 2; text-align: right; }
@media (max-width: 600px) { .lesson__pager { grid-template-columns: minmax(0, 1fr); } .lesson__pager-next { grid-column: 1; } }
.resource-list, .due-list { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.resource-list a { display: inline-flex; align-items: center; gap: 0.5rem; overflow-wrap: anywhere; }
.policy-list a[aria-current="page"] { font-weight: 600; text-decoration: none; }
.course-edit-section { display: grid; gap: 0.75rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }

/* Training compliance: reminders, the Code of Ethics, policy documents. */
.pre-line { white-space: pre-line; overflow-wrap: anywhere; }
.reminders { display: grid; gap: 0.75rem; margin-bottom: 1.5rem; }
.reminder .btn-row { margin-top: 0.5rem; }
.ethics-card__wording { max-width: 70ch; font-size: var(--text-base); line-height: 1.8; }
.ethics-card__statement { padding: 0.75rem 1rem; border-left: 3px solid var(--gold); background: var(--background); }
.ethics-history { list-style: none; padding: 0; margin: 0; }
.ethics-history details { padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
.ethics-history summary { cursor: pointer; font-size: var(--text-sm); }
.ethics-edit { padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.policy-preview { position: relative; aspect-ratio: 8.5 / 11; max-height: 80vh; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); }
.policy-preview iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.orientation .rich-text { max-width: 70ch; }

/* Quick Start (training, step 5): summary, module cards, checklists, activity choices, quiz. */
.qs-summary { display: grid; gap: 0.75rem; align-items: center; }
@media (min-width: 48rem) { .qs-summary { grid-template-columns: auto 1fr; gap: 2rem; } }
.qs-summary__figure { font-family: var(--font-display); font-size: var(--text-4xl); line-height: 1; margin: 0.25rem 0; }
.qs-card { display: flex; flex-direction: column; gap: 0.75rem; }
.qs-card h2 { margin: 0; }
.qs-card__text { flex: 1; color: var(--muted-foreground); font-size: var(--text-sm); }
.qs-card .btn { align-self: flex-start; }
.qs-gold { border-color: var(--gold); }
.qs-checklist { margin: 0; padding-left: 1.25rem; display: grid; gap: 0.5rem; font-size: var(--text-sm); }
.qs-choices { display: grid; gap: 0.6rem; margin-top: 0.5rem; }
.qs-results { margin: 0; padding-left: 1.25rem; }
.qs-result p { margin: 0.25rem 0; }
.qs-result .i { vertical-align: -0.15em; color: var(--destructive); }
.qs-result.is-right .i { color: var(--success); }
.qs-summary-item { padding-bottom: 0.75rem; border-bottom: 1px solid var(--border); }
.qs-summary-item:last-child { border-bottom: 0; padding-bottom: 0; }
.qs-summary-item .facts { display: block; margin: 0.5rem 0 0; }
.qs-summary-item .facts dt { font-size: var(--text-xs); color: var(--muted-foreground); }
.qs-summary-item .facts dd { margin: 0 0 0.5rem; overflow-wrap: anywhere; }
.qs-summary .meter { max-width: none; }
.qs-fields fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.qs-fields fieldset.field legend { padding: 0; font-size: var(--text-sm); font-weight: var(--font-weight-medium); }

/* Business Plan (training, step 6a): builder, live numbers, activities, dashboard, report. */
.plan-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; margin-bottom: 1.25rem; }
.plan-save-status { color: var(--muted-foreground); font-size: var(--text-sm); }
.plan-views { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-left: auto; }
.plan-year { display: flex; gap: 0.5rem; align-items: center; }
.plan-year label { white-space: nowrap; }
.plan-hero { padding: 1.5rem 1.75rem; border-radius: var(--radius-lg); background: var(--ink); color: var(--ink-foreground); }
.plan-hero h1 { color: inherit; }
.plan-hero .eyebrow { color: var(--gold); }
.plan-hero .lead { color: var(--ink-muted); }
.plan-hero label { color: var(--ink-foreground); }
.plan-hero .btn[data-variant="outline"] { background: transparent; color: var(--ink-foreground); border-color: var(--ink-border); }
.plan-style-card, .plan-report-card { margin-bottom: 1rem; }
.plan-style-card .panel__body, .plan-report-card .panel__body { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1rem; }
.plan-style-card p, .plan-report-card p { margin: 0.25rem 0 0; }
.plan-crm__address { display: grid; gap: 0.5rem; padding: 1rem 1.25rem; border: 1px solid var(--gold); border-radius: var(--radius-md); background: var(--card); }
.plan-crm__address p { margin: 0; }
.plan-crm__required { display: flex; align-items: center; gap: 0.5rem; }
.plan-calls { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1rem; padding: 1.25rem; border-left: 4px solid var(--gold); border-radius: var(--radius-md); background: var(--muted); }
.plan-calls h3, .plan-calls p { margin: 0; }
.plan-calls__target { display: grid; text-align: right; }
.plan-calls__target strong { font-family: var(--font-display, inherit); font-size: var(--text-3xl, 1.875rem); line-height: 1; }
.plan-return .plan-stats dd { font-size: var(--text-2xl, 1.5rem); }
.plan-builder { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 64rem) { .plan-builder { grid-template-columns: 17rem minmax(0, 1fr); } }
.plan-journey { display: grid; gap: 0.75rem; padding: 1.25rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); }
@media (min-width: 64rem) { .plan-journey { position: sticky; top: 5rem; } }
.plan-journey__head { margin: 0; display: flex; justify-content: space-between; gap: 0.5rem; }
.plan-journey .meter { max-width: none; }
.plan-journey__foot { margin: 0; font-family: var(--font-display); letter-spacing: 0.04em; }
.plan-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.25rem; }
.plan-steps a { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.5rem; border-radius: var(--radius-md); color: inherit; text-decoration: none; }
.plan-steps a:hover { background: var(--muted); }
.plan-steps__item.is-current a { background: var(--muted); }
.plan-steps__mark { flex: none; display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem; border: 1px solid var(--border); border-radius: var(--radius-full); font-size: var(--text-xs); font-weight: var(--font-weight-semibold); }
.plan-steps__item.is-done .plan-steps__mark { background: var(--success); border-color: var(--success); color: #fff; }
.plan-steps__item.is-current .plan-steps__mark { border-color: var(--gold); border-width: 2px; }
.plan-steps__title { display: block; font-weight: var(--font-weight-medium); font-size: var(--text-sm); }
.plan-steps .small { display: block; }
.plan-step { min-width: 0; }
.plan-fields { border: 0; padding: 0; margin: 0; min-width: 0; }
.plan-goal { display: grid; gap: 1.25rem; align-items: start; }
@media (min-width: 48rem) { .plan-goal { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.plan-live { min-width: 0; }
.plan-target { display: grid; gap: 0.25rem; padding: 1.25rem; border: 1px solid var(--gold); border-radius: var(--radius-lg); background: var(--background); }
.plan-target__figure { font-family: var(--font-display); font-size: var(--text-4xl); line-height: 1; }
.plan-target__figure small { font-size: var(--text-base); margin-left: 0.25rem; }
.plan-stats { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 11rem), 1fr)); margin: 0; }
.plan-stats > div { padding: 0.75rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--card); }
.plan-stats dt { font-size: var(--text-xs); color: var(--muted-foreground); }
.plan-stats dd { margin: 0.25rem 0 0; font-weight: var(--font-weight-semibold); font-size: var(--text-lg); overflow-wrap: anywhere; }
.plan-stats dd .small { display: block; font-weight: normal; }
.plan-stats--wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); }
.plan-return, .plan-crm, .plan-callout, .plan-guidance, .plan-checklist, .plan-exercise { display: grid; gap: 0.75rem; }
.plan-crm, .plan-callout, .plan-exercise { padding: 1.25rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--background); }
.plan-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.plan-checks li { display: flex; gap: 0.5rem; align-items: flex-start; }
.plan-checks .i { flex: none; color: var(--success); margin-top: 0.15rem; }
.plan-exercise__result { padding: 1rem; }
.plan-exercise__result p { margin: 0.25rem 0; }
.plan-suggestion { display: flex; flex-direction: column; gap: 0.5rem; }
.plan-suggestion.is-added { border-color: var(--success); }
.plan-suggestion .btn { align-self: flex-start; margin-top: auto; }
.plan-picker { display: grid; gap: 0.75rem; }
.plan-picker__grid { display: grid; gap: 0.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
.plan-picker__item { display: flex; gap: 0.5rem; align-items: flex-start; padding: 0.75rem; border: 1px solid var(--border); border-radius: var(--radius-md); color: inherit; text-decoration: none; background: var(--card); }
.plan-picker__item:hover { border-color: var(--gold); }
.plan-picker__item.is-chosen { border-color: var(--success); }
.plan-picker__item .small { display: block; }
.plan-picker__item[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }
.plan-activities { display: grid; gap: 0.75rem; }
.plan-activity { display: grid; gap: 0.75rem; padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--card); }
@media (min-width: 40rem) { .plan-activity { grid-template-columns: minmax(0, 1fr) auto; } }
.plan-activity h3 { margin: 0.25rem 0; }
.plan-activity p { margin: 0.25rem 0; overflow-wrap: anywhere; }
.plan-activity__cost { display: flex; flex-direction: column; align-items: flex-end; gap: 0.25rem; text-align: right; }
.plan-checklist ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
ul.plan-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
ul.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
ul.checklist li[data-done="false"], ul.checklist li[data-done="false"] .i { color: var(--destructive); }
.plan-checklist li { overflow-wrap: anywhere; }
.plan-checklist .i { vertical-align: -0.15em; color: var(--muted-foreground); }
.plan-checklist .is-blocking, .plan-checklist .is-blocking .i { color: var(--destructive); }
.plan-budget { display: grid; gap: 0.25rem; margin: 0; }
.plan-budget > div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
.plan-budget dd { margin: 0; font-weight: var(--font-weight-semibold); }
.plan-summary { display: grid; gap: 1.25rem; padding: 1.25rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); }
.plan-summary > h3 { margin: 0; }
.plan-summary section { display: grid; gap: 0.75rem; min-width: 0; }
.plan-summary h4 { margin: 0; font-size: var(--text-sm); text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted-foreground); }
.plan-summary h5 { margin: 0; font-size: var(--text-base); }
.plan-summary ul { margin: 0.25rem 0 0; padding-left: 1.1rem; }
.plan-summary p { margin: 0; }
.plan-summary__sources { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); }
.plan-summary__source { padding: 0.75rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-md); }
.plan-summary__rhythm { padding-bottom: 0.5rem; border-bottom: 1px solid var(--border); }
.plan-return { max-width: 40rem; }
.plan-return label output { margin-left: 0.5rem; font-weight: var(--font-weight-semibold); }
.plan-return input[type="range"] { width: 100%; height: auto; padding: 0.25rem 0; border: 0; background: none; box-shadow: none; accent-color: var(--primary); }
.plan-return__ends { display: flex; justify-content: space-between; }
.plan-return__bands { display: grid; gap: 0.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); margin: 0.5rem 0; }
.plan-return__bands > div { padding: 0.5rem 0.75rem; border: 1px solid var(--border); border-radius: var(--radius-md); }
.plan-return__bands dt { font-weight: var(--font-weight-semibold); }
.plan-return__bands dd { margin: 0; font-size: var(--text-sm); color: var(--muted-foreground); }
.plan-budget__total dt, .plan-budget__total dd { font-size: var(--text-lg); font-weight: var(--font-weight-semibold); }
.plan-budget__total .small { display: block; font-weight: normal; }
.plan-rhythm h3 { margin-bottom: 0.25rem; }
.plan-rhythm p { margin: 0.5rem 0; }
.plan-step__foot { flex-wrap: wrap; }
.plan-under { margin-top: 0.75rem; }
.plan-focus { display: grid; gap: 1rem; align-items: center; }
@media (min-width: 48rem) { .plan-focus { grid-template-columns: minmax(0, 1fr) auto; } }
.plan-focus__ring { display: grid; place-items: center; align-content: center; width: 8rem; height: 8rem; margin: 1rem; border: 6px solid var(--gold); border-radius: var(--radius-full); text-align: center; }
.plan-focus__ring strong { font-family: var(--font-display); font-size: var(--text-3xl); }
.plan-months th, .plan-months td { white-space: nowrap; }
.plan-month-form { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 10rem), 1fr)); align-items: end; }
.plan-month-form > p { grid-column: 1 / -1; margin: 0; }
.plan-history { display: grid; gap: 1rem; }
.plan-history__row { display: grid; gap: 0.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.plan-history__row:last-child { border-bottom: 0; }
.plan-history__row h3 { margin: 0; }
.plan-history__snapshots { margin: 0; padding-left: 1.25rem; font-size: var(--text-sm); }
.plan-resources { display: grid; gap: 0.5rem; }
.plan-report h2 { margin-top: 1.5rem; }
@media print {
  .bo-sidebar, .bo-topbar, .bo-backdrop, .bo-collapse, .no-print, #toasts { display: none !important; }
  .bo-layout, .bo-frame { display: block !important; }
  body { background: #fff !important; }
}

/* Working Style. */
.lesson-player__resume { position: absolute; left: 50%; bottom: 1rem; transform: translateX(-50%); padding: 0.25rem 0.75rem; border-radius: 999px; background: rgb(0 0 0 / 0.7); color: #fff; font-size: var(--text-sm); white-space: nowrap; }
.lesson__speed { display: inline-flex; align-items: center; gap: 0.4rem; margin-left: auto; }
.lesson__speed select { width: auto; }
.course-outline__number { color: var(--muted-foreground); font-variant-numeric: tabular-nums; font-size: var(--text-sm); }
.coach-counts { display: flex; gap: 0.75rem; margin: 0; }
.coach-counts > div { flex: 1; padding: 0.5rem 0.75rem; border: 1px solid var(--border); border-radius: var(--radius-md); }
.coach-counts dt { font-size: var(--text-xs); color: var(--muted-foreground); }
.coach-counts dd { margin: 0; font-weight: var(--font-weight-semibold); font-size: var(--text-lg); }
.week-pick { display: flex; flex-wrap: nowrap; gap: 0.5rem; align-items: center; }
.week-pick input[type="date"] { width: auto; }
.week-table caption .small { display: block; font-weight: normal; }
.style-facts { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin: 0; padding: 0; list-style: none; font-weight: var(--font-weight-medium); }
.style-facts li { display: inline-flex; align-items: center; gap: 0.4rem; }
.style-insights { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.style-insights article { padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius-md); min-width: 0; }
.style-insights h3 { margin: 0.5rem 0 0.25rem; font-size: var(--text-base); }
.style-insights p { margin: 0; }
.style-report__grid { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.style-report__grid article { padding: 0.75rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-md); min-width: 0; }
.style-report__grid h4 { margin: 0 0 0.35rem; font-size: var(--text-base); }
.style-report__grid p { margin: 0.25rem 0 0; }
.style-report h3 { margin-bottom: 0; }
.plan-ws-status { white-space: nowrap; }
.style-question fieldset { border: 0; padding: 0 0 1.25rem; margin: 0; min-width: 0; border-bottom: 1px solid var(--border); }
.style-question legend { padding: 0; font-weight: var(--font-weight-medium); }
.style-question legend .small { display: block; font-weight: normal; margin-top: 0.25rem; }
.style-question--one legend { font-size: var(--text-lg); }
.style-question--one fieldset { border-bottom: 0; padding-bottom: 0; }
.style-scale { display: grid; gap: 0.5rem; margin-top: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.5rem), 1fr)); }
.style-scale label { display: flex; gap: 0.5rem; align-items: center; padding: 0.5rem 0.75rem; border: 1px solid var(--border); border-radius: var(--radius-md); font-size: var(--text-sm); cursor: pointer; }
.style-scale label:has(input:checked) { border-color: var(--gold); background: var(--background); }
.style-scores { display: grid; gap: 0.75rem; margin: 0; }
.style-scores dt { font-size: var(--text-sm); }
.style-scores dt .small { display: block; }
.style-scores dd { margin: 0.25rem 0 0; display: flex; gap: 0.5rem; align-items: center; }
.style-scores .meter { max-width: 16rem; }
.plan-checklist .i { display: inline-block; width: 1em; height: 1em; vertical-align: -0.15em; }
.plan-fields > p { margin: 0; }
@media (max-width: 63.99rem) { .plan-journey { order: 2; } }
/* The activity editor shows only the cadence fields that apply. */
form:has(#f-frequency option[value="custom"]:not(:checked)) .field:has(#f-occurrences) { display: none; }
form:has(#f-frequency :is(option[value="once"], option[value="semiannual"], option[value="custom"]):checked) .field:has(#f-repetitions) { display: none; }
form:has(input[name="use_goal"]:checked) .field:has(#f-recipients) { display: none; }

/* Coaching (training, step 6b): meetings, action items, notes, Weekly Coaching, My agents. */
.coach-meetings, .coach-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.coach-meeting { display: grid; gap: 0.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.coach-meeting:last-child { border-bottom: 0; padding-bottom: 0; }
.coach-meeting p { margin: 0; overflow-wrap: anywhere; }
.coach-meeting__summary { padding: 0.75rem 1rem; border-left: 3px solid var(--gold); background: var(--background); }
.coach-respond { display: grid; gap: 0.5rem; }
.coach-respond .inline-edit { flex-wrap: wrap; }
.coach-request { padding-top: 1rem; border-top: 1px solid var(--border); }
.coach-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.coach-items li { display: flex; gap: 0.75rem; align-items: flex-start; }
.coach-items li > span { display: grid; min-width: 0; overflow-wrap: anywhere; }
.coach-items__check { flex: none; display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; padding: 0; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--card); cursor: pointer; }
.coach-items li.is-done .coach-items__check { background: var(--success); border-color: var(--success); color: #fff; }
.coach-items li.is-done .coach-items__title { text-decoration: line-through; color: var(--muted-foreground); }
.coach-items li.is-overdue .small { color: var(--destructive); }
.coach-notes li { padding-bottom: 0.75rem; border-bottom: 1px solid var(--border); }
.coach-notes p { margin: 0.25rem 0 0; }
.week-table caption { text-align: left; font-family: var(--font-display); font-size: var(--text-lg); padding: 0 0 0.5rem; }
.week-table th[scope="row"] { font-weight: var(--font-weight-medium); min-width: 12rem; }
.week-table__cadence { display: block; font-weight: normal; }
.week-table__num { width: 6rem; }
.attention-grid { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 10rem), 1fr)); }
.attention-card { display: grid; gap: 0.25rem; padding: 0.75rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--card); color: inherit; text-decoration: none; }
.attention-card strong { font-family: var(--font-display); font-size: var(--text-2xl); }
.attention-card:hover, .attention-card.is-active { border-color: var(--gold); }
.agent-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem; }
.bo .week-table th, .bo .week-table td { white-space: normal; }
.week-table__cadence { max-width: 34rem; overflow-wrap: anywhere; }

/* Playbook. */
.playbook { display: grid; gap: 1.5rem; }
@media (min-width: 64rem) { .playbook { grid-template-columns: 16rem minmax(0, 1fr); align-items: start; } }
.playbook__search { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.playbook__search input { flex: 1; min-width: 0; }
.playbook-crumbs { margin: -0.5rem 0 1rem; }
.topic-tree, .topic-tree ul { margin: 0; padding: 0; list-style: none; }
.topic-tree ul { padding-left: 0.875rem; border-left: 1px solid var(--border); margin: 0.125rem 0 0.375rem 0.5rem; }
.topic-tree a { display: flex; justify-content: space-between; gap: 0.5rem; padding: 0.375rem 0.5rem; border-radius: var(--radius-md); color: var(--foreground); text-decoration: none; font-size: var(--text-sm); }
.topic-tree a:hover { background: var(--muted); }
.topic-tree a[aria-current="page"] { background: var(--muted); font-weight: var(--font-weight-semibold); }
.topic-tree__count { color: var(--muted-foreground); font-variant-numeric: tabular-nums; }
.guide-card__text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.guide { display: grid; gap: 1.5rem; }
@media (min-width: 64rem) { .guide { grid-template-columns: minmax(0, 1fr) 18rem; align-items: start; } .guide__side { position: sticky; top: 5rem; } }
.guide__main { min-width: 0; max-width: 46rem; }
.guide-videos { margin-bottom: 1.5rem; }
.guide-video { display: grid; gap: 0.5rem; grid-column: 1 / -1; }
.guide-video__title { margin: 0; font-size: var(--text-lg); }
.player-embed { gap: 0.5rem; }
.course-outline__status { display: block; color: var(--muted-foreground); font-weight: 400; }
.orientation-promises, .orientation-services { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); }
.orientation-promises li, .orientation-services li { display: flex; align-items: center; gap: 0.5rem; padding: 0.75rem; border: 1px solid var(--border); border-radius: var(--radius-md, 0.5rem); }
.qs-card__number { margin: 0; font-family: var(--font-display, inherit); font-size: 2.5rem; line-height: 1; color: var(--muted-foreground); }
.topic-hero { align-items: center; justify-content: flex-start; gap: 1.5rem; }
.topic-hero__photo { position: relative; flex: 0 0 auto; width: min(100%, 16rem); aspect-ratio: 16 / 9; border-radius: var(--radius-lg, 0.75rem); overflow: hidden; background: var(--muted, #eee); }
.topic-hero__photo img, .topic-hero__photo picture { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-card__kicker { margin: 0; font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted-foreground); }
.guide-videos__grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); }
.guide-checklist__heading { margin: 1rem 0 0.5rem; font-size: var(--text-base); }
.guide__body { margin-top: 1.25rem; }
.guide__body h2, .guide__body h3 { scroll-margin-top: 5rem; }
.guide__side-title { font-size: var(--text-sm); font-weight: var(--font-weight-semibold); margin: 0 0 0.5rem; }
.guide-toc, .guide-links { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.375rem; font-size: var(--text-sm); }
.guide-toc__sub { padding-left: 0.875rem; }
.guide-links a { display: inline-flex; gap: 0.375rem; align-items: center; }
.guide__checklist { margin-top: 2rem; }
.guide-checklist { margin: 0.75rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.5rem; }
.guide-checklist li { display: flex; gap: 0.625rem; align-items: flex-start; }
.guide-checklist__box { flex: none; width: 1rem; height: 1rem; margin-top: 0.2rem; border: 1.5px solid var(--foreground); border-radius: 3px; }
.guide-reader { max-width: 46rem; }
.guide-reader > h2 { margin-top: 2rem; }
.guide-topic-choices { display: grid; gap: 0.375rem; }
.guide-topic-choice { display: flex; gap: 0.5rem; align-items: center; font-size: var(--text-sm); }
.guide-topic-choice--sub { padding-left: 1.25rem; }
.guide-row-actions { display: inline-flex; flex-wrap: wrap; gap: 0.25rem; align-items: center; }
.topic-row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.topic-row input { flex: 1 1 12rem; min-width: 0; }
.topic-row__name { font-weight: var(--font-weight-medium); }
.topic-subs { margin: 0; padding: 0 0 0 1.25rem; list-style: none; display: grid; gap: 0.5rem; border-left: 2px solid var(--border); }
.lesson__transcript { margin-top: 1rem; }
.lesson__transcript summary { cursor: pointer; font-weight: var(--font-weight-medium); }
.transcript { margin: 0.75rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.375rem; max-height: 24rem; overflow-y: auto; font-size: var(--text-sm); }
.transcript li { display: flex; gap: 0.75rem; align-items: baseline; }
.transcript__time { flex: none; border: 0; background: none; padding: 0; color: var(--primary); font: inherit; font-variant-numeric: tabular-nums; cursor: pointer; text-decoration: underline; }
.pre-line { white-space: pre-line; }
@media print {
  .guide-reader { max-width: none; font-size: 11pt; color: #000; }
  .guide-reader .lead, .guide-reader .small, .guide-reader .rich-text, .guide-reader .rich-text * { color: #000; }
  .guide-checklist li { break-inside: avoid; }
}

.ethics-status__body { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.ethics-status__body h2, .ethics-status__body p { margin: 0; }
.ethics-card__hint { flex-basis: 100%; margin: 0; }
.live-card__summary { margin: 0.25rem 0 0; color: var(--muted-foreground); }

/* The plan's working-style approach and the result page's next step. */
.plan-approach__list { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); margin: 0; }
.plan-approach__list dt { font-size: var(--text-xs); color: var(--muted-foreground); text-transform: uppercase; letter-spacing: 0.04em; }
.plan-approach__list dd { margin: 0.2rem 0 0; }
[data-disc="D"] { --disc: var(--disc-d); --disc-fill: var(--disc-d-fill); --disc-ink: var(--disc-d-ink); }
[data-disc="I"] { --disc: var(--disc-i); --disc-fill: var(--disc-i-fill); --disc-ink: var(--disc-i-ink); }
[data-disc="S"] { --disc: var(--disc-s); --disc-fill: var(--disc-s-fill); --disc-ink: var(--disc-s-ink); }
[data-disc="C"] { --disc: var(--disc-c); --disc-fill: var(--disc-c-fill); --disc-ink: var(--disc-c-ink); }
.disc-letter { display: inline-grid; place-items: center; flex: 0 0 auto; width: 2.5rem; height: 2.5rem; border-radius: var(--radius-md); background: var(--disc-fill); color: var(--disc-ink); font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 700; }
.style-overview__head h2 .small { white-space: nowrap; }
.style-intro-layout { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; }
@media (max-width: 900px) { .style-intro-layout { grid-template-columns: 1fr; } }
.disc-styles { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.disc-styles li { display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem; border: 1px solid color-mix(in oklch, var(--disc) 32%, var(--border)); border-left: 4px solid var(--disc); border-radius: var(--radius-lg); background: color-mix(in oklch, var(--disc) 6%, var(--card)); }
.disc-styles h3 { margin: 0 0 0.25rem; color: var(--disc); }
.disc-styles p { margin: 0; color: var(--muted-foreground); }
.style-scores > div[data-disc] { padding: 0.75rem 1rem; border: 1px solid color-mix(in oklch, var(--disc) 32%, var(--border)); border-top: 3px solid var(--disc); border-radius: var(--radius-md); background: color-mix(in oklch, var(--disc) 6%, var(--card)); }
.style-scores > div[data-disc] dt { display: grid; grid-template-columns: auto 1fr; column-gap: 0.75rem; align-items: center; }
.style-scores > div[data-disc] dt .disc-letter { grid-row: span 2; width: 2rem; height: 2rem; font-size: var(--text-lg); }
.style-scores > div[data-disc] dt strong { color: var(--disc); }
.style-scores > div[data-disc] .meter { accent-color: var(--disc); }
.style-scores > div[data-disc] .meter::-webkit-progress-value { background: var(--disc); }
.style-scores > div[data-disc] .meter::-moz-progress-bar { background: var(--disc); }
article[data-disc] { border-top: 3px solid var(--disc); padding-top: 0.75rem; }
article[data-disc] h4, article[data-disc] > .eyebrow { color: var(--disc); }
.style-example { padding: 0.75rem 1rem; border-radius: var(--radius-md); background: var(--muted); }
.style-example p { margin: 0.25rem 0 0; }
.style-prompt { margin: 0; font-weight: var(--font-weight-semibold); }
.style-next__body { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.style-next__body > div { flex: 1 1 16rem; }
.style-next__body h2 { margin: 0 0 0.25rem; }
.style-next__body p { margin: 0; }

/* The Business Plan's sides chart. */
.sides-chart-wrap { margin: 0; }
.sides-chart { width: 100%; height: auto; max-height: 14rem; display: block; }
.sides-chart__bar { fill: var(--gold); }
.sides-chart__plan { stroke: var(--foreground); stroke-width: 1.5; stroke-dasharray: 5 4; }
.sides-chart__axis { stroke: var(--border); }
.sides-chart__label { fill: var(--muted-foreground); font-size: 11px; }
.sides-chart__key { margin-left: 0.75rem; }
.sides-chart__key::before { content: ""; display: inline-block; width: 0.75rem; height: 0.5rem; margin-right: 0.3rem; vertical-align: middle; }
.sides-chart__key--bar::before { background: var(--gold); }
.sides-chart__key--plan::before { border-top: 2px dashed var(--foreground); height: 0; }

/* The Playbook's topic cards (TRAIN21's grid). */
.playbook__find { margin-bottom: 1rem; }
.playbook__find input { width: 100%; max-width: 24rem; }
.topic-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); margin-bottom: 1.5rem; }
.topic-card { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--card); color: inherit; text-decoration: none; }
.topic-card[hidden] { display: none; }
.topic-card:hover, .topic-card:focus-visible { border-color: var(--gold); }
.topic-card__photo { position: relative; aspect-ratio: 16 / 9; background: #2b2b2b; display: grid; place-items: center; overflow: hidden; }
.topic-card__photo img, .topic-card__photo picture { width: 100%; height: 100%; object-fit: cover; display: block; }
.topic-card__placeholder { color: rgb(255 255 255 / 0.5); }
.topic-card__placeholder .i { width: 2rem; height: 2rem; }
.topic-card__badge { position: absolute; top: 0.5rem; left: 0.5rem; background: #1f1f1f; color: #fff; }
.topic-card__body { display: flex; flex-direction: column; gap: 0.35rem; padding: 0.9rem 1rem; flex: 1; }
.topic-card__body h2 { margin: 0; font-size: var(--text-lg); }
.topic-card__body p { margin: 0; }
.topic-card__text { color: var(--muted-foreground); font-size: var(--text-sm); }
.topic-card__go { margin-top: auto; padding-top: 0.6rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; font-weight: var(--font-weight-semibold); font-size: var(--text-sm); }

/* The monthly schedule as a branded sheet, with a calendar grid (TRAIN21's look). */
.schedule-views { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.schedule-sheet { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--card); }
.schedule-sheet__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.25rem 1.5rem; background: #1f1f1f; color: #fff; border-top: 4px solid var(--gold); }
.schedule-sheet__head h2 { margin: 0.25rem 0; color: #fff; }
.schedule-sheet__head h2 span { font-weight: normal; }
.schedule-sheet__head .small { color: rgb(255 255 255 / 0.8); }
.schedule-sheet__head img { width: 9rem; height: auto; }
.schedule-sheet__brand { margin: 0; color: var(--gold); letter-spacing: 0.15em; font-weight: var(--font-weight-semibold); }
.schedule-sheet__body { padding: 1rem; }
.schedule-sheet__body .table-wrap { border: 0; }
.schedule-sheet__foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; padding: 0.75rem 1rem; border-top: 1px solid var(--border); }
.schedule-grid { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); }
.schedule-grid__row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; }
.schedule-grid__days span { padding: 0.4rem; background: var(--muted); font-size: var(--text-xs); font-weight: var(--font-weight-semibold); text-align: center; }
.schedule-grid__day { min-height: 6.5rem; padding: 0.35rem; background: var(--card); display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.schedule-grid__day.is-blank { background: var(--muted); }
.schedule-grid__day.is-today .schedule-grid__num { background: var(--primary); color: var(--primary-foreground); border-radius: 999px; padding: 0 0.4rem; }
.schedule-grid__num { align-self: flex-start; font-size: var(--text-xs); font-weight: var(--font-weight-semibold); }
.schedule-grid__item { display: block; padding: 0.2rem 0.35rem; border-left: 3px solid var(--gold); background: var(--background); font-size: var(--text-xs); line-height: 1.3; overflow-wrap: anywhere; text-decoration: none; color: inherit; }
.schedule-grid__item.is-meeting { border-left-color: var(--muted-foreground); }
.schedule-grid__item.is-cancelled { text-decoration: line-through; opacity: 0.7; }
.schedule-grid__time { font-weight: var(--font-weight-semibold); }
@media (max-width: 700px) {
  .schedule-grid__days { display: none; }
  .schedule-grid__row { grid-template-columns: 1fr; }
  .schedule-grid__day { min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: baseline; }
  .schedule-grid__day.is-blank, .schedule-grid__day:not(:has(.schedule-grid__item)) { display: none; }
  .schedule-grid__item { flex: 1 1 100%; }
  .schedule-sheet__head img { display: none; }
}
@media print {
  .page-header__actions, .schedule-views, .live-months, .filters { display: none !important; }
  .schedule-sheet { border-color: #999; }
  .schedule-sheet__head { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .schedule-grid__day { min-height: 5rem; break-inside: avoid; }
}

/* Calendar subscription address (account). */
.feed-url { width: 100%; font-family: var(--font-mono, monospace); font-size: var(--text-sm); }

/* Live training. */
.live-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 1.5rem; }
@media (max-width: 40rem) { .live-stats .stat { padding: 0.75rem; } .live-stats .stat__value { font-size: var(--text-xl); } .live-stats .stat__label { font-size: var(--text-xs); } }
.live-list { margin: 1rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.75rem; }
.live-card { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 1rem 1.25rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.live-card.is-cancelled { opacity: 0.7; }
.live-card__main { min-width: 0; flex: 1 1 18rem; }
.live-card__badges { display: flex; flex-wrap: wrap; gap: 0.375rem; margin: 0 0 0.5rem; }
.live-card__title { font-size: var(--text-xl); margin: 0; }
.live-card__title a { color: inherit; text-decoration: none; }
.live-card__title a:hover { text-decoration: underline; }
.live-card__meta { margin: 0.25rem 0 0; }
.live-card__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.live-card__actions:empty { display: none; }
.live-card__organizer { margin-top: 0.5rem; }
.live-card__organizer .btn-row { margin: 0.25rem 0 0; }
.live-card__meet { overflow-wrap: anywhere; }
.live-checks { margin: 0.5rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.375rem; }
.live-checks li { display: flex; gap: 0.5rem; align-items: center; }
.live-checks li.is-done { color: var(--muted-foreground); }
.live-months { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.live-months form { display: flex; gap: 0.5rem; align-items: center; }
.live-months input[type=month] { width: auto; }
.live-review { display: grid; gap: 0.5rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border); list-style: none; }
.live-review .inline-edit { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.live-review select { flex: 1 1 16rem; min-width: 0; }
.live-actions summary { cursor: pointer; }
.live-actions[open] { display: grid; gap: 0.75rem; min-width: 14rem; }
.live-pad { padding: 1rem 1.25rem; }
.inline-form { display: inline; }
tr.is-cancelled td { color: var(--muted-foreground); }

/* Points and Learning Leaders. */
.points-card { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem 1rem; align-items: center; margin-bottom: 1.5rem; padding: 1rem 1.25rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); color: inherit; text-decoration: none; }
.points-card:hover { border-color: var(--gold); }
.points-card__icon { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 999px; background: var(--muted); color: var(--gold); }
.points-card__main { display: grid; }
.points-card__main strong { font-family: var(--font-display); font-size: var(--text-3xl); line-height: 1.1; }
.points-card__goal { display: grid; gap: 0.375rem; grid-column: 1 / -1; }
@media (min-width: 48rem) { .points-card { grid-template-columns: auto minmax(0, 1fr) minmax(0, 18rem); } .points-card__goal { grid-column: auto; } }
.leaders-filters { align-items: center; }
.leaders { display: grid; gap: 1.5rem; }
@media (min-width: 64rem) { .leaders { grid-template-columns: minmax(0, 1fr) 20rem; align-items: start; } }
.podium { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.podium__place { display: grid; gap: 0.25rem; padding: 1.25rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.podium__place[data-rank="1"] { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.podium__place.is-me, tr.is-me td { background: var(--muted); }
.podium__rank { font-family: var(--font-display); font-size: var(--text-2xl); color: var(--gold); }
.podium__points { font-weight: var(--font-weight-semibold); }
.leaders-total strong { font-family: var(--font-display); font-size: var(--text-4xl, 2.25rem); line-height: 1; margin-right: 0.25rem; }
.leaders-how summary { cursor: pointer; padding: 1rem 1.25rem; font-weight: var(--font-weight-medium); }
.leaders-history { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.5rem; font-size: var(--text-sm); }
.leaders-history li { display: flex; justify-content: space-between; gap: 0.75rem; }

/* Resources. */
.resource-destination { display: grid; gap: 0.5rem; }
.resource-destination > a { color: inherit; text-decoration: none; }
.resource-add { margin-top: 1rem; }
.resource-add summary { cursor: pointer; font-weight: var(--font-weight-medium); margin-bottom: 0.75rem; }
.resource-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.25rem; }
.resource-item { display: grid; gap: 0.125rem; padding: 0.75rem 0; border-bottom: 1px solid var(--border); }
.resource-item__title { display: inline-flex; gap: 0.5rem; align-items: center; font-weight: var(--font-weight-medium); }

/* Training Home (step 11): happening now, the hero or focus beside upcoming sessions, progress. */
.happening { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; border: 1px solid var(--gold); border-radius: var(--radius-lg); background: var(--card); color: inherit; text-decoration: none; }
.happening__dot { flex: none; width: 0.625rem; height: 0.625rem; border-radius: 999px; background: var(--destructive, #c0392b); box-shadow: 0 0 0 0.25rem color-mix(in srgb, var(--destructive, #c0392b) 20%, transparent); }
.happening__text { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.5rem; }
.training-hero { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 1.5rem; align-items: stretch; }
.home-next, .home-focus, .home-upcoming { display: flex; flex-direction: column; }
.home-upcoming .panel__body { flex: 1 1 auto; }
.home-next .panel__body { flex: 1 1 auto; display: grid; align-content: start; gap: 0.5rem; }
.home-focus .panel__body { flex: 1 1 auto; }
.home-next h2 { font-size: 1.5rem; }
.focus-list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.focus-list a { display: grid; align-content: start; height: 100%; gap: 0.125rem; padding: 0.75rem; border: 1px solid var(--border); border-radius: var(--radius-md, 0.5rem); color: inherit; text-decoration: none; }
.focus-list a:hover { border-color: var(--gold); }
.focus-list strong { font-size: 1.5rem; }
.upcoming-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.progress-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1rem; }
.progress-strip__item { display: grid; gap: 0.375rem; height: 100%; padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); color: inherit; text-decoration: none; }
a.progress-strip__item:hover { border-color: var(--gold); }
.progress-strip__item .meter { max-width: none; }
@media (max-width: 900px) {
  .training-hero { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .focus-list { grid-template-columns: 1fr; }
}
/* My training and an agent's overview. */
.profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; align-items: start; }
@media (max-width: 900px) {
  .profile-grid { grid-template-columns: 1fr; }
}
.ack { padding: 0.75rem 0; border-top: 1px solid var(--border); }
.ack:first-child { border-top: 0; }
.progress-strip__done { color: var(--success, #2e7d32); }
.progress-strip__done svg { width: 1em; height: 1em; vertical-align: -0.15em; }
.profile-board input { max-width: 20rem; }
.schedule-meetings { margin: 2rem 0 0.75rem; }
.bulk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; padding: 0.75rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); }
.bulk-bar label { font-weight: 600; }
.cell-check { width: 2.5rem; }
.bulk-bar select { width: auto; max-width: 100%; }
.unlinked-accounts { margin-bottom: 1.25rem; }
.unlinked-accounts__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; padding: 0.5rem 0; border-top: 1px solid var(--border); }
.unlinked-accounts__row:first-child { border-top: 0; }
.stage-question { display: grid; gap: 0.375rem; margin: 0; padding: 0.75rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-md, 0.5rem); }
.stage-question legend { padding: 0 0.25rem; font-weight: 600; }
.stage-question.is-wrong { border-color: var(--destructive, #b42318); }
/* Quick Start overview: each module's contents, as on the prototype. */
.qs-card__items { list-style: none; margin: 0.75rem 0 0; padding: 0; border-top: 1px solid var(--border); }
.qs-card__items li { border-bottom: 1px solid var(--border); }
.qs-card__items a, .qs-card__line { display: flex; align-items: flex-start; gap: 0.625rem; padding: 0.5rem 0; color: inherit; text-decoration: none; }
.qs-card__items a:hover { color: var(--gold); }
.qs-card__mark { flex: none; display: grid; place-items: center; width: 1.125rem; height: 1.125rem; margin-top: 0.125rem; border: 1px solid var(--border); border-radius: 999px; }
.qs-card__mark.is-done { border-color: var(--gold); background: var(--gold); color: var(--card); }
.qs-card__mark svg { width: 0.75rem; height: 0.75rem; }
.qs-card__note { display: block; }
.qs-card__checklist { margin-top: 0.75rem; }
.qs-card__checklist summary { display: inline-flex; align-items: center; gap: 0.375rem; cursor: pointer; font-weight: 600; }
.qs-card__checklist summary svg { width: 1rem; height: 1rem; }
.qs-card__checklist ul { margin: 0.5rem 0 0; padding-left: 1.25rem; }
.qs-card__line.is-unavailable { color: var(--muted-foreground); }
.plan-personalize__styles { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
.plan-personalize__styles li { display: grid; gap: 0.25rem; padding: 0.75rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); }
.plan-personalize__styles span { font-size: var(--text-sm); color: var(--muted-foreground); }
.goal-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.goal-card { display: grid; gap: 0.5rem; align-content: start; padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); }
.goal-card h3 { font-size: var(--text-lg); margin: 0; }
.goal-card .meter { width: 100%; }
.goal-edit summary, .coach-schedule summary { cursor: pointer; }
.goal-edit summary { font-size: var(--text-sm); color: var(--muted-foreground); }
.goal-add > summary, .coach-schedule > summary { list-style: none; display: inline-flex; }
.goal-add > summary::-webkit-details-marker, .coach-schedule > summary::-webkit-details-marker { display: none; }
.goal-add[open] > summary, .coach-schedule[open] > summary { margin-bottom: 1rem; }
.live-card__instructor { display: flex; align-items: center; gap: 0.5rem; margin: 0.25rem 0; }
.conversation-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.conversation-list li { display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; align-items: center; }
.agent-stats .stat__value { font-size: var(--text-2xl); }
.coach-schedule { padding: 0 1.25rem 1rem; }
.agents-table { overflow-x: auto; }
.agents-table .agent-cell { min-width: 14rem; }
.agent-flags { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-top: 0.35rem; }
.agents-page, .agents-page > form { min-width: 0; max-width: 100%; }
.ethics-progress { display: grid; gap: 0.5rem; margin-bottom: 1.5rem; }
.ethics-progress p { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; margin: 0; }
.ethics-progress .meter { width: 100%; max-width: none; }
.ethics-page { max-width: 64rem; }
.calendar-tabs { margin-bottom: 1.25rem; }
.my-calendar-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
@media (min-width: 900px) { .my-calendar-list { display: none; } }
@media (max-width: 899px) { .schedule-grid.my-calendar-grid { display: none; } }
.library-label { display: inline-flex; align-items: center; gap: 0.5rem; font-size: var(--text-sm); font-weight: var(--font-weight-semibold); }
.bo-main > .reminders { margin-bottom: 1.25rem; }
.fintrac-prompt { position: fixed; inset: 0; z-index: 60; margin: auto; width: min(32rem, calc(100% - 2rem)); padding: 0; border: 1px solid var(--gold); border-radius: var(--radius-lg); background: var(--card); color: var(--foreground); box-shadow: 0 0 0 100vmax color-mix(in oklch, var(--ink) 45%, transparent), 0 1.5rem 3rem color-mix(in oklch, var(--ink) 30%, transparent); }
.fintrac-prompt__body { padding: 1.75rem; }
.fintrac-prompt__body h2, .fintrac-prompt__body p { margin: 0; }
.fintrac-prompt__icon svg { width: 2rem; height: 2rem; color: var(--gold-text); }
.ethics-card { display: grid; gap: 1rem; padding: 2rem 2.5rem; border: 1px solid var(--gold); border-radius: var(--radius-lg); background: var(--card); box-shadow: 0 0.5rem 0 -0.25rem var(--muted), 0 1rem 0 -0.5rem var(--border); }
@media (max-width: 640px) { .ethics-card { padding: 1.25rem; } }
.ethics-card__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; }
.ethics-card__top .eyebrow, .ethics-card__kicker { margin: 0; }
.ethics-card__title { margin: 0; padding-bottom: 1rem; border-bottom: 1px solid var(--border); font-size: var(--text-3xl); }
.ethics-confirm { display: grid; gap: 0.75rem; padding: 1.25rem; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--muted); }
.ethics-confirm__statement { margin: 0; }
.ethics-confirm__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; }
.ethics-confirm__row p { margin: 0; }
.ethics-nav { display: flex; flex-wrap: wrap; align-items: end; gap: 0.75rem; }
.ethics-nav__jump { display: grid; gap: 0.25rem; flex: 1 1 18rem; }
.ethics-nav__jump select { width: 100%; }
.ethics-nav__hint { margin: 0; text-align: center; }
.ethics-history { border-top: 1px solid var(--border); }
.ethics-history > summary { margin: 0 1.25rem 1.25rem; width: fit-content; list-style: none; }
.ethics-history > summary::-webkit-details-marker { display: none; }
.fintrac-more .video-grid { grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); }
/* Orientation's live sections (team, offices). */
.orientation-live { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.orientation-live h3 { margin: 0; font-size: var(--text-lg); }
.contact-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.contact-card { display: grid; gap: 0.25rem; align-content: start; padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); overflow-wrap: anywhere; }
.contact-card .eyebrow { margin: 0; }
.contact-card details summary { cursor: pointer; font-size: var(--text-sm); color: var(--muted-foreground); }
.contact-card__links { display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; }
.support-roles { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); }
.support-roles textarea { width: 100%; }
/* Onboarding cards and the first-week checklist. */
.onboarding-cards { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); margin-bottom: 1.5rem; }
.onboarding-card { display: grid; gap: 0.35rem; padding: 0.9rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); color: inherit; text-decoration: none; }
.onboarding-card:hover { border-color: var(--gold-dark); }
.onboarding-card__title { font-weight: 600; }
.onboarding-card .meter { width: 100%; }
.first-week { margin-top: 1.5rem; }
.first-week__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.first-week__item { display: grid; grid-template-columns: 1.4rem 1fr; column-gap: 0.6rem; row-gap: 0.15rem; align-items: start; padding: 0.6rem 0.75rem; border: 1px solid var(--border); border-radius: var(--radius-md, 0.5rem); }
.first-week__item > .small { grid-column: 2; }
.first-week__item.is-done { background: var(--muted); }
.first-week__item form { display: contents; }
.first-week__tick { display: inline-grid; place-items: center; width: 1.4rem; height: 1.4rem; flex: none; border: 1.5px solid var(--border); border-radius: 0.35rem; background: var(--card); padding: 0; cursor: pointer; }
.first-week__item.is-done .first-week__tick { background: var(--success, #2f7d4f); border-color: var(--success, #2f7d4f); color: #fff; }
.first-week__tick .i { width: 0.9rem; height: 0.9rem; }
.stage-mode-note { padding: 0 1.25rem; }
/* Connect With Heritage and Training & What Comes Next. */
.channel-list, .qs-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.channel-card { justify-items: start; }
.channel-card__qr { display: block; width: 9.5rem; height: 9.5rem; }
.channel-card__qr svg { width: 100%; height: 100%; }

/* My training: TRAIN21's identity card, and people's specialties. */
.avatar-initials--lg { width: 4rem; height: 4rem; font-size: var(--text-xl); }
.profile-identity__body { display: flex; gap: 1.25rem; align-items: flex-start; flex-wrap: wrap; }
.profile-identity__body > .stack { flex: 1 1 18rem; min-width: 0; }
.profile-identity__body > .profile-identity__photo { flex: 0 0 auto; align-items: center; text-align: center; }
.profile-cards > .panel { display: flex; flex-direction: column; }
.profile-cards > .panel > .panel__body { flex: 1; }
.profile-identity__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); gap: 0.75rem 1.5rem; margin: 0; }
.profile-identity__facts dt { font-size: var(--text-xs); color: var(--muted-foreground); text-transform: uppercase; letter-spacing: 0.04em; }
.profile-identity__facts dd { margin: 0.125rem 0 0; overflow-wrap: anywhere; }
.tag-list { display: flex; flex-wrap: wrap; gap: 0.375rem; margin: 0; padding: 0; list-style: none; }
.contact-card__help { color: var(--gold-text); }

/* Training → Administration: areas as cards, headline numbers, recent activity. */
.admin-stats { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.admin-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.admin-links .link-card { height: 100%; padding: 1rem; }
.admin-links .link-card h3 { font-size: var(--text-lg); }
.admin-activity { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.admin-activity li { display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border); }
.admin-activity li > span:first-of-type { flex: 1 1 12rem; min-width: 0; overflow-wrap: anywhere; }
.field-label { font-weight: var(--font-weight-medium); font-size: var(--text-sm); margin: 0; }

/* An agent's Quick Start for their reviewer: each lesson and activity, ticked when done. */
.qs-items { display: grid; gap: 0.375rem; margin: 0; padding: 0; list-style: none; }
.qs-items li { display: flex; gap: 0.5rem; align-items: center; font-size: var(--text-sm); }
.qs-items li .i { width: 1rem; height: 1rem; flex-shrink: 0; color: var(--muted-foreground); }
.qs-items li.is-done .i { color: var(--success, var(--gold-text)); }

/* Playbook: a guide's subject, level and curator; its card's foot. */
.guide-meta { display: flex; flex-wrap: wrap; gap: 0.375rem 0.5rem; align-items: center; margin: 0.25rem 0 0; }
.guide-card__foot { display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; align-items: baseline; justify-content: space-between; margin-top: 0.5rem; }

/* Business Plan: monthly results stay closed until asked for (TRAIN21). */
.plan-results-entry > summary { list-style: none; cursor: pointer; width: fit-content; }
.plan-results-entry > summary::-webkit-details-marker { display: none; }
.plan-results-entry[open] > summary { margin-bottom: 0.75rem; }

/* Working Style: the result's summary card (TRAIN21's "Your working-style blend"). */
.style-overview__head { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: flex-start; }
.style-overview__head > .stack { flex: 1 1 18rem; min-width: 0; }
.style-scores dd .small { white-space: nowrap; }

/* Orientation: each item as a card with its own check (TRAIN21). */
.stage-item { display: grid; gap: 0.5rem; padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); }
.stage-item > h3 { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin: 0; font-size: var(--text-lg); }
.stage-board select { max-width: 24rem; }

/* Training › Office setup: one panel per office (TRAIN21's Global Settings › Offices). */
.office-setups { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 26rem), 1fr)); align-items: start; }
.office-setup .panel__head > div { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.office-setup .facts dd { overflow-wrap: anywhere; }
.office-setup details summary { cursor: pointer; font-size: var(--text-sm); color: var(--primary); }
.office-setup details[open] summary { margin-bottom: 0.5rem; }
.resource-help__body { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.resource-help__body > div { flex: 1 1 16rem; }
.resource-help__body h2 { margin: 0 0 0.25rem; font-size: var(--text-lg); }

/* A plain list of links, each with a line under it (Google organizer's Other integrations). */
ul.link-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
ul.link-list li { display: grid; gap: 0.125rem; }

.people-summary { margin: 0; font-size: var(--text-sm); }

/* Training › Video sources: one card per source. */
.source-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); }
.source-cards h2 { margin: 0; font-size: var(--text-lg); }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.source-cards .source-count { margin: 0; font-size: var(--text-sm); color: var(--muted-foreground); }
.source-cards .source-count strong { font-size: var(--text-2xl); color: var(--foreground); }
