/* Shared interface tokens. Authored teaching content and certificate artwork keep their own hierarchy. */
:root {
  --ink: #233247;
  --sub: #536274;
  --teal: #23468b;
  --deep: #193b75;
  --line: #c6d1df;
  --paper: #fff;
  --bg: #f5f6f8;
  --focus: #315d94;
  --radius: 8px;
  --shadow: 0 2px 8px #18334b05;
  --b-primary: #23468b;
  --b-primary-hover: #1b3976;
  --b-primary-active: #152e62;
  --b-primary-light: #e8eef7;
  --b-primary-border: #aebed3;
  --b-dark: #233247;
  --b-dark-title: #233247;
  --b-text-main: #233247;
  --b-text-muted: #536274;
  --b-text-sub: #5a6d81;
  --b-border: #c6d1df;
  --b-border-subtle: #d8e0e9;
  --b-bg-page: #f5f6f8;
  --b-radius-sm: 5px;
  --b-radius-md: 8px;
  --b-radius-lg: 10px;
  --b-shadow-sm: 0 1px 3px #18334b06;
  --b-shadow-md: 0 2px 8px #18334b08;
  --ui-page-title: 1.875rem;
  --ui-section-title: 1.375rem;
  --ui-subsection-title: 1.0625rem;
}
html[data-theme='bridge'] body {
  background: var(--bg);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.7;
}
html[data-theme='bridge'] #app .workspace {
  min-width: 0;
  background: var(--bg);
}
html[data-theme='bridge'] #app .workspace-main {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px 34px 48px;
  min-width: 0;
}
html[data-theme='bridge']
  #app
  .workspace-main
  h1:not(
    :where(.course-document *, .ql-editor *, .d-authored-text *, .certificate-paper *, .site-page *)
  ) {
  font-size: var(--ui-page-title);
  font-weight: 550;
  line-height: 1.45;
  color: var(--ink);
  letter-spacing: -0.025em;
  text-wrap: balance;
}
html[data-theme='bridge']
  #app
  .workspace-main
  h2:not(
    :where(.course-document *, .ql-editor *, .d-authored-text *, .certificate-paper *, .site-page *)
  ) {
  font-size: var(--ui-section-title);
  font-weight: 550;
  line-height: 1.5;
  color: #263e55;
  letter-spacing: -0.015em;
}
html[data-theme='bridge']
  #app
  .workspace-main
  h3:not(
    :where(.course-document *, .ql-editor *, .d-authored-text *, .certificate-paper *, .site-page *)
  ) {
  font-size: var(--ui-subsection-title);
  font-weight: 500;
  line-height: 1.6;
  color: #29435e;
}
html[data-theme='bridge'] #app :is(.page-head, .b-experience-hero.compact) {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 4px 0 24px;
  margin: 0 0 24px;
  align-items: start;
}
html[data-theme='bridge'] #app :is(.page-head, .b-experience-hero.compact) p {
  max-width: 54em;
  color: var(--sub);
  font-size: 0.875rem;
  line-height: 1.9;
  margin-top: 10px;
}
html[data-theme='bridge'] #app .d-workbench-hero {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  margin: 0 0 24px;
}
html[data-theme='bridge'] #app .d-workbench-hero .page-head {
  padding: 8px 0 24px;
  margin: 0;
  border-bottom: 1px solid var(--line);
}
html[data-theme='bridge'] #app .d-workbench-hero .d-scope-label {
  font-size: 0.75rem;
  color: #536a7f;
  margin: 0 0 8px;
}
html[data-theme='bridge'] #app :is(.eyebrow, .b-experience-eyebrow) {
  color: #53687e;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}
html[data-theme='bridge'] #app .b-breadcrumb {
  font-size: 0.75rem;
  color: #5b6c7b;
  line-height: 1.85;
  gap: 7px;
  margin-bottom: 17px;
}
html[data-theme='bridge'] #app :is(.panel, .b-panel, .editor-section) {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: none;
}
html[data-theme='bridge']
  :is(#app, #modal, dialog)
  :is(.primary, .secondary, .quiet, .icon-button) {
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.55;
  border-radius: 6px;
  min-height: 40px;
  padding: 9px 15px;
  gap: 7px;
  text-decoration: none;
  box-shadow: none;
  transition:
    background-color 120ms ease,
    border-color 120ms ease;
}
html[data-theme='bridge'] :is(#app, #modal, dialog) .primary {
  background: #23468b;
  color: #fff;
  border: 1px solid #23468b;
}
html[data-theme='bridge'] :is(#app, #modal, dialog) .primary:hover {
  background: #1b3976;
  border-color: #1b3976;
}
html[data-theme='bridge'] :is(#app, #modal, dialog) .primary:active {
  background: #152e62;
}
html[data-theme='bridge'] :is(#app, #modal, dialog) .secondary {
  background: #fff;
  color: #274e81;
  border: 1px solid #9db0c6;
}
html[data-theme='bridge'] :is(#app, #modal, dialog) .secondary:hover {
  background: #edf2f8;
  border-color: #6984a5;
}
html[data-theme='bridge'] :is(#app, #modal, dialog) .quiet {
  color: #355574;
  background: transparent;
  border: 1px solid transparent;
}
html[data-theme='bridge'] :is(#app, #modal, dialog) .quiet:hover {
  background: #edf2f8;
}
html[data-theme='bridge'] :is(#app, #modal, dialog) .small {
  font-size: 0.75rem;
  min-height: 34px;
  padding: 7px 11px;
}
html[data-theme='bridge'] :is(#app, #modal, dialog) .icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  min-width: 40px;
  padding: 10px;
  background: #fff;
  border: 1px solid #a7b8cb;
  color: #355574;
}
html[data-theme='bridge']
  :is(#app, #modal, dialog)
  :is(button, a, summary, input, textarea, select):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
html[data-theme='bridge'] :is(#app, #modal, dialog) :is(button, input, select, textarea):disabled {
  cursor: not-allowed;
  opacity: 0.6;
}
html[data-theme='bridge']
  :is(#app, #modal, dialog)
  :is(
    input:not([type='checkbox'], [type='radio'], [type='range'], [type='file']),
    select,
    textarea
  ) {
  border: 1px solid #9bafc5;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.75;
  min-height: 42px;
  padding: 9px 12px;
  max-width: 100%;
}
html[data-theme='bridge'] :is(#app, #modal, dialog) :is(input, textarea)::placeholder {
  color: #65768a;
  opacity: 1;
}
html[data-theme='bridge'] :is(#app, #modal, dialog) label.field {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #30475e;
  line-height: 1.7;
  gap: 7px;
}
html[data-theme='bridge'] :is(#app, #modal, dialog) :is(.help, .muted, .small.muted) {
  color: #536a7f;
  font-size: 0.75rem;
  line-height: 1.85;
  font-weight: 400;
}
html[data-theme='bridge'] :is(#app, #modal, dialog) :is(.form-error, .error) {
  color: #a42821;
  font-size: 0.8125rem;
  line-height: 1.75;
}
html[data-theme='bridge'] #app .badge {
  font-size: 0.6875rem;
  font-weight: 500;
  border-radius: 5px;
  line-height: 1.6;
  padding: 4px 8px;
  background: #edf1f7;
  color: #3f5772;
}
html[data-theme='bridge'] #app .badge.good {
  background: #e6f2ed;
  color: #21624e;
}
html[data-theme='bridge'] #app .badge.warm {
  background: #fbf0df;
  color: #86521d;
}
html[data-theme='bridge'] #app .workspace-sections {
  min-height: 54px;
  padding: 7px 30px;
  gap: 6px;
  background: #fbfcfe;
  border-bottom: 1px solid var(--line);
}
html[data-theme='bridge'] #app .workspace-sections > span {
  font-size: 0.6875rem;
  color: #5a6d81;
  margin-right: 8px;
}
html[data-theme='bridge'] #app .workspace-sections a {
  padding: 8px 12px;
  min-height: 38px;
  border: 0;
  border-radius: 5px;
  font-size: 0.75rem;
  font-weight: 400;
  color: #3d526d;
  box-shadow: none;
}
html[data-theme='bridge'] #app .workspace-sections a[aria-current='page'] {
  background: #e8eef7;
  color: #23468b;
  font-weight: 550;
  box-shadow: none;
}
html[data-theme='bridge'] #app :is(.tabs, .view-tabs) {
  gap: 8px;
  border-color: var(--line);
}
html[data-theme='bridge'] #app .view-tabs a {
  font-size: 0.8125rem;
  font-weight: 400;
  border-radius: 5px;
  box-shadow: none;
  min-height: 42px;
}
html[data-theme='bridge'] #app .view-tabs a[aria-current] {
  background: #e8eef7;
  color: #23468b;
  font-weight: 550;
  box-shadow: none;
}
html[data-theme='bridge'] #app :is(th, td):not(:where(.site-page *)) {
  font-size: 0.8125rem;
  line-height: 1.8;
  padding: 13px 15px;
  vertical-align: top;
  border-color: #d8e0e9;
}
html[data-theme='bridge'] #app th:not(:where(.site-page *)) {
  background: #f4f6f9;
  color: #536274;
  font-weight: 500;
}
html[data-theme='bridge'] #app tr:hover td {
  background: #fafbfd;
}
html[data-theme='bridge'] #app :is(.table-wrap, .table-scroll) {
  border-radius: 7px;
  border-color: var(--line);
  max-width: 100%;
  overflow-x: auto;
}
html[data-theme='bridge'] #app :is(.stat, .stat-card, .metric) {
  background: #fff;
  border-color: var(--line);
  border-radius: 7px;
  box-shadow: none;
}
html[data-theme='bridge'] #app :is(.stat strong, .stat-card strong, .metric strong) {
  font-weight: 500;
  color: var(--ink);
}
html[data-theme='bridge']
  #app
  :is(.card, .course-card, .b-course-card, .d-course-card, .workbench-card) {
  border-color: var(--line);
  border-radius: 8px;
  box-shadow: none;
  background: #fff;
}
html[data-theme='bridge'] #app .d-course-title h2 {
  font-size: 1.3125rem;
  font-weight: 550;
  line-height: 1.5;
}
html[data-theme='bridge'] #app .d-course-body {
  padding: 22px 24px;
}
html[data-theme='bridge'] #app .d-course-summary {
  color: var(--sub);
  font-size: 0.875rem;
  line-height: 1.85;
}
html[data-theme='bridge'] #app .d-course-kicker {
  font-size: 0.6875rem;
  font-weight: 500;
  color: #53687e;
}
html[data-theme='bridge'] #app .d-course-facts {
  font-size: 0.75rem;
  color: #4c6075;
}
html[data-theme='bridge'] #app .d-code {
  font-size: 0.75rem;
  color: #3c5c7f;
}
html[data-theme='bridge'] #app .d-chip {
  border-radius: 5px;
  border: 1px solid #b5c3d3;
  color: #3b526a;
  background: #fff;
  min-height: 34px;
  font-size: 0.75rem;
  padding: 6px 13px;
}
html[data-theme='bridge'] #app .d-chip.active {
  background: #e8eef7;
  border-color: #869fbe;
  color: #23468b;
}
html[data-theme='bridge'] #app :is(.callout, .context-ribbon) {
  background: #f1f5fa;
  border-color: #c4d2e1;
  color: #36516b;
  border-radius: 6px;
  font-size: 0.8125rem;
  line-height: 1.9;
}
html[data-theme='bridge'] #app .empty {
  border: 1px dashed #b4c3d3;
  background: #fafbfd;
  border-radius: 8px;
  padding: 40px 24px;
  color: var(--sub);
}
html[data-theme='bridge'] #app .empty h3 {
  color: #30475e;
  font-size: 1.125rem;
}
html[data-theme='bridge'] #modal {
  border: 1px solid #b5c4d4;
  border-radius: 10px;
  box-shadow: 0 20px 70px #18334b29;
  max-height: calc(100dvh - 40px);
  max-width: min(960px, calc(100vw - 32px));
}
html[data-theme='bridge'] #modal::backdrop {
  background: #253a534d;
  backdrop-filter: blur(3px);
}
html[data-theme='bridge'] dialog .dialog-notice {
  margin: 0;
  padding: 12px 20px;
  background: #fff1ef;
  border-bottom: 1px solid #d5a49c;
  color: #9e2d25;
  font-size: 0.875rem;
  line-height: 1.8;
  flex: 0 0 auto;
}
html[data-theme='bridge'] #modal > form > header {
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
  padding: 20px 24px;
}
html[data-theme='bridge'] #modal h2 {
  font-size: 1.3125rem;
  font-weight: 550;
  color: #263e55;
  line-height: 1.5;
}
html[data-theme='bridge'] #app .site-footer {
  padding: 24px 34px;
  color: #5a6d81;
  border-top: 1px solid #d8e0e9;
  font-size: 0.6875rem;
  background: transparent;
}
html[data-theme='bridge'] #app .auth-layout {
  max-width: 1000px;
  margin: 28px auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: none;
}
html[data-theme='bridge'] #app .auth-form {
  box-shadow: none;
  border: 0;
  padding: 32px;
  max-width: 540px;
}
html[data-theme='bridge'] #app .auth-layout > img {
  height: 100%;
  object-fit: cover;
}
@media (max-width: 1000px) {
  html[data-theme='bridge'] #app .workspace-main {
    padding: 24px 26px 40px;
  }
  html[data-theme='bridge'] #app .workspace-sections {
    padding-inline: 22px;
  }
}
@media (max-width: 760px) {
  :root {
    --ui-page-title: 1.5625rem;
    --ui-section-title: 1.3125rem;
    --ui-subsection-title: 1.0625rem;
  }
  html[data-theme='bridge'] #app .workspace-main {
    padding: 20px 16px 36px;
  }
  html[data-theme='bridge']
    :is(#app, #modal, dialog)
    :is(.primary, .secondary, .quiet, .icon-button) {
    min-height: 44px;
  }
  html[data-theme='bridge'] #app .workspace-sections {
    padding: 6px 12px;
    flex-wrap: nowrap;
    overflow: auto;
    scrollbar-width: thin;
  }
  html[data-theme='bridge'] #app .workspace-sections > span {
    display: none;
  }
  html[data-theme='bridge'] #app .workspace-sections > a {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 10px;
  }
  html[data-theme='bridge'] #app :is(.page-head, .b-experience-hero.compact) {
    padding-bottom: 20px;
    margin-bottom: 20px;
  }
  html[data-theme='bridge'] #app .d-course-body {
    padding: 20px;
  }
  html[data-theme='bridge'] #app .d-course-title h2 {
    font-size: 1.25rem;
  }
  html[data-theme='bridge'] #app .auth-layout {
    margin: 0;
    display: block;
  }
  html[data-theme='bridge'] #app .auth-layout > img {
    display: none;
  }
  html[data-theme='bridge'] #app .auth-form {
    padding: 24px 20px;
  }
  html[data-theme='bridge'] #modal {
    max-height: calc(100dvh - 24px);
    max-width: calc(100vw - 16px);
    border-radius: 8px;
  }
  html[data-theme='bridge'] #app .site-footer {
    padding: 24px 16px;
  }
  html[data-theme='bridge'] #app .workspace-main.b-guided-author > .page-head {
    display: block;
  }
  html[data-theme='bridge'] #app .b-guided-author > .page-head .head-actions {
    margin-top: 10px;
    max-width: none;
    width: 100%;
  }
  html[data-theme='bridge'] #app .b-wizard-footer {
    padding: 10px 12px;
  }
  html[data-theme='bridge'] #app .b-wizard-footer > .row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
  }
  html[data-theme='bridge'] #app .b-wizard-footer > .row > button {
    font-size: 0.75rem;
    padding: 8px 10px;
    white-space: nowrap;
    min-width: 0;
  }
  html[data-theme='bridge'] #app .b-wizard-footer [data-action='wizard-exit'] {
    grid-column: auto;
    grid-row: auto;
    width: auto;
  }
  html[data-theme='bridge'] #app .b-wizard-footer .help {
    margin: 6px 0 0;
    font-size: 0.6875rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  html[data-theme='bridge'] :is(#app, #modal, dialog) * {
    scroll-behavior: auto;
    transition: none !important;
    animation: none !important;
  }
}
