/* App header: brand, class switch, round actions */

.eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-weight: 700;
      font-size: 13px;
      letter-spacing: .02em;
      color: rgba(255,255,255,.78);
      margin-bottom: 8px;
    }
.toolbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 14px;
    }
.toolbar-actions {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-left: auto;
    }
@media (max-width: 1100px) {
.toolbar {
        position: sticky;
        top: 0;
        z-index: 12;
        align-items: center;
        flex-direction: row;
        background: rgba(238,243,246,.94);
        backdrop-filter: blur(12px);
        padding: 10px 0 4px;
      }
.toolbar-actions { flex: 0 0 auto; }
}
@media (max-width: 620px) {
.eyebrow { font-size: 12px; }
.toolbar { margin-left: 14px; margin-right: 14px; }
.toolbar { margin-top: 0; padding-top: 8px; }
.toolbar-actions { gap: 6px; }
.toolbar-actions .action-btn { font-size: 12px; }
}
@media print {
.toolbar { display: none !important; }
}
.hero .eyebrow, .hero h1, .hero-meta { position: relative; z-index: 2; }
.eyebrow { color: var(--accent); font-size: 14px; letter-spacing: .035em; }
.meta-pill .lucide { width: 18px; height: 18px; color: var(--accent); }
.toolbar {
      position: sticky;
      top: 0;
      z-index: 15;
      display: flex;
      padding: 6px 4px;
      margin-bottom: 6px;
      background: rgba(238,247,251,.94);
      backdrop-filter: blur(14px);
    }
.toolbar-actions { margin-left: 10px; }
.heading-kicker { display: block; color: var(--accent); font-size: 12px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
@media (max-width: 1080px) {
.toolbar { flex-wrap: wrap; }
.toolbar-actions { order: 3; margin-left: auto; }
}
@media (max-width: 700px) {
.toolbar { margin: 0 12px 10px; padding-top: 10px; }
}
@media (max-width: 480px) {
.toolbar-actions .action-btn span { display: none; }
.toolbar-actions .action-btn { width: 44px; padding: 8px; }
}
.app-header {
  position: sticky;
  top: 8px;
  z-index: 30;
  min-height: 92px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 16px 20px;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 28px;
  background: rgba(231,241,253,.82);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.98), inset 0 -1px 0 rgba(123,171,228,.15), 0 16px 38px rgba(52,92,145,.12);
  backdrop-filter: blur(24px) saturate(145%);
  clip-path: inset(0 0 0 0 round 28px);
  transition: clip-path var(--dur-base) var(--ease-out), border-radius var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), min-height var(--dur-base) var(--ease-out), padding var(--dur-base) var(--ease-out);
}
.app-header > * { transition: transform var(--dur-base) var(--ease-out), font-size var(--dur-base) var(--ease-out); }
.app-header.is-compact {
  min-height: 58px;
  padding-top: 7px;
  padding-bottom: 7px;
  border-radius: 0 0 22px 22px;
  clip-path: inset(0 0 0 0 round 0 0 22px 22px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.98), 0 10px 26px rgba(52,92,145,.10);
}
.app-header.is-compact > * { transform: none; }
.brand {
  width: max-content;
  color: var(--sm-ink);
  font-size: 27px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.055em;
  text-decoration: none;
}
.brand span { color: var(--sm-blue); }
.app-header.is-compact .brand { font-size: 21px; }
.class-switch {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  font-size: 26px;
  font-weight: 900;
  cursor: default;
}
.class-info { min-width: 0; display: grid; justify-items: center; align-content: center; }
.class-meta { max-height: 16px; margin-top: -4px; color: #536b8a; font-size: 12px; line-height: 1.2; font-weight: 750; white-space: nowrap; opacity: 1; transition: max-height .18s ease, margin .18s ease, opacity .14s ease, transform .18s ease; }
.app-header.is-compact .class-switch { min-height: 30px; font-size: 20px; }
.app-header.is-compact .class-meta { max-height: 0; margin-top: 0; opacity: 0; transform: translateY(-5px); }
.class-switch .lucide { width: 19px; height: 19px; }
.header-actions { justify-self: end; display: flex; gap: 10px; }
.round-action {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.84);
  border-radius: 50%;
  background: rgba(255,255,255,.54);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.96), 0 8px 18px rgba(36,68,113,.09);
  cursor: pointer;
}
.round-action .lucide { width: 24px; height: 24px; stroke-width: 2.2; }
.app-header.is-compact .round-action { width: 40px; height: 40px; }
.app-header.is-compact .round-action .lucide { width: 19px; height: 19px; }
.round-action:hover { background: rgba(255,255,255,.82); }
.app-header.is-compact ~ .settings-popover { top: 66px; }
@media (max-width: 760px) {
.app-header { top: 0; min-height: 84px; padding: 11px 14px; border-radius: 0 0 27px 27px; clip-path: inset(0 0 0 0 round 0 0 27px 27px); }
.app-header.is-compact { min-height: 52px; padding-top: 6px; padding-bottom: 6px; clip-path: inset(0 0 0 0 round 0 0 21px 21px); }
.app-header.is-compact > * { transform: none; }
.brand { font-size: 24px; }
.app-header.is-compact .brand { font-size: 20px; }
.class-switch { min-height: 38px; font-size: 24px; padding: 0 8px; }
.class-meta { margin-top: -5px; font-size: 11px; }
.round-action { width: 46px; height: 46px; }
.app-header.is-compact .round-action { width: 36px; height: 36px; }
.app-header.is-compact ~ .settings-popover { top: 58px; }
}
@media print {
.app-header { display: none !important; }
}
