/* Busy times — year contribution calendar inside Live Gossip chrome */

.ao-busy-times {
  --bt-l0: #e8edf4;
  --bt-l1: #c5d4eb;
  --bt-l2: #7a9bc8;
  --bt-l3: #3a6aaa;
  --bt-l4: #0f2d5c;
  margin-top: 0.15rem;
}

.ao-busy-panel {
  margin: 0 0 1.15rem;
  padding: 0.95rem 1.05rem 1.1rem;
  background: var(--ao-blue-pale);
  border: 1px solid var(--ao-border-light);
  border-top: 2px solid var(--ao-gold);
}

.ao-busy-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  margin-bottom: 0.35rem;
}

.ao-busy-panel-title {
  font-family: var(--ao-font-serif);
  font-size: 1.15rem;
  font-weight: bold;
  color: var(--ao-blue-deep);
  margin: 0;
}

.ao-busy-panel-meta {
  margin: 0;
  font-family: var(--ao-font-sans);
  font-size: var(--ao-fs-ui-sm);
  color: var(--ao-text-muted);
}

.ao-busy-panel-intro {
  margin: 0 0 0.85rem;
  font-family: var(--ao-font-sans);
  font-size: var(--ao-fs-ui-md);
  line-height: var(--ao-lh-ui);
  color: var(--ao-text-secondary);
  max-width: 40rem;
}

.ao-busy-times-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  margin: 0 0 0.95rem;
  font-family: var(--ao-font-sans);
}

.ao-busy-times-nav .ao-btn.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

.ao-busy-year-label {
  font-family: var(--ao-font-serif);
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--ao-blue-deep);
  min-width: 3.5rem;
  text-align: center;
}

.ao-busy-year-select select,
.ao-busy-tz-select select {
  font: inherit;
  font-size: var(--ao-fs-ui-md);
  padding: 0.28rem 0.45rem;
  border: 1px solid var(--ao-border);
  background: var(--ao-bg);
  color: var(--ao-text);
  border-radius: 2px;
}

.ao-busy-tz-select {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: 0.15rem;
}

.ao-busy-tz-label {
  font-size: var(--ao-fs-ui-sm);
  color: var(--ao-text-muted);
}

.ao-pulse-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.4rem;
  margin: 0 0 0.65rem;
  font-family: var(--ao-font-sans);
  font-size: var(--ao-fs-ui-md);
}

.ao-pulse-crumbs a {
  color: var(--ao-blue);
  text-decoration: none;
  font-weight: bold;
}

.ao-pulse-crumbs a:hover {
  text-decoration: underline;
}

.ao-pulse-crumb-sep {
  color: var(--ao-text-muted);
}

.ao-pulse-crumb-current {
  color: var(--ao-blue-deep);
  font-weight: bold;
}

/* Year → 12 month tiles */
.ao-pulse-month-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0.25rem 0 0.5rem;
}

@media (max-width: 640px) {
  .ao-pulse-month-tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.ao-pulse-month-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  padding: 0.65rem 0.7rem;
  border-radius: 3px;
  border: 1px solid var(--ao-border-light);
  background: var(--ao-bg);
  text-decoration: none;
  color: var(--ao-text);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.ao-pulse-month-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 6px rgba(15, 45, 92, 0.12);
  outline: 2px solid var(--ao-gold);
}

.ao-pulse-month-tile.is-disabled {
  opacity: 0.35;
}

.ao-pulse-month-tile.l1 { background: #e8eef7; border-color: #c5d4eb; }
.ao-pulse-month-tile.l2 { background: #c5d4eb; border-color: #7a9bc8; }
.ao-pulse-month-tile.l3 { background: #7a9bc8; border-color: #3a6aaa; color: #fff; }
.ao-pulse-month-tile.l4 { background: #0f2d5c; border-color: #0f2d5c; color: #e8eef7; }

.ao-pulse-month-name {
  font-family: var(--ao-font-serif);
  font-weight: bold;
  font-size: 1rem;
}

.ao-pulse-month-count {
  font-family: var(--ao-font-sans);
  font-size: var(--ao-fs-ui-sm);
  opacity: 0.9;
}

/* Month calendar (legacy large tiles — unused; kept selectors harmlessly) */
.ao-pulse-month-cal {
  width: 100%;
  margin: 0.25rem 0 0.5rem;
}

.ao-pulse-month-head,
.ao-pulse-month-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr)) 3.2rem;
  gap: 0.3rem;
  margin-bottom: 0.3rem;
}

.ao-pulse-month-head span {
  font-family: var(--ao-font-sans);
  font-size: 10px;
  color: var(--ao-text-muted);
  text-align: center;
}

.ao-pulse-week-col {
  text-align: right !important;
}

.ao-pulse-mday {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  border-radius: 3px;
  border: 1px solid rgba(15, 45, 92, 0.1);
  background: #e8edf4;
  font-family: var(--ao-font-sans);
  font-size: 12px;
  font-weight: bold;
  color: var(--ao-blue-deep);
  text-decoration: none;
}

.ao-pulse-mday.is-empty {
  visibility: hidden;
  border: none;
  background: transparent;
}

.ao-pulse-mday.l1 { background: #c5d4eb; }
.ao-pulse-mday.l2 { background: #7a9bc8; color: #fff; }
.ao-pulse-mday.l3 { background: #3a6aaa; color: #fff; }
.ao-pulse-mday.l4 { background: #0f2d5c; color: #e8eef7; }

.ao-pulse-mday:hover {
  outline: 2px solid var(--ao-gold);
}

.ao-pulse-mday.is-selected {
  box-shadow: 0 0 0 2px var(--ao-gold);
}

.ao-pulse-week-link {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-family: var(--ao-font-sans);
  font-size: 11px;
  color: var(--ao-blue);
  text-decoration: none;
  font-weight: bold;
  padding-right: 0.15rem;
}

.ao-pulse-week-link:hover {
  text-decoration: underline;
}

.ao-pulse-month-week.is-selected .ao-pulse-week-link {
  color: var(--ao-gold-dark);
}

/* Month calendar heat map (Mon-Sun columns, week rows).
   Heat colors inherit --bt-l* from .ao-busy-times (dark theme overrides there). */
.ao-busy-month-cal {
  width: 100%;
  max-width: 28rem;
  margin: 0.4rem 0 0.55rem;
}

.ao-busy-month-cal-head,
.ao-busy-month-cal-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr)) 2.75rem;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
  align-items: stretch;
}

.ao-busy-month-cal-head span {
  font-family: var(--ao-font-sans);
  font-size: 11px;
  color: var(--ao-text-muted);
  text-align: center;
  line-height: 1;
}

.ao-busy-month-cal-wk {
  text-align: right !important;
  padding-right: 0.15rem;
}

.ao-busy-month-day {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  min-width: 0;
  border-radius: 3px;
  border: 1px solid rgba(15, 45, 92, 0.12);
  background: var(--bt-l0);
  text-decoration: none;
  color: var(--ao-blue-deep);
  font-family: var(--ao-font-sans);
  font-size: 12px;
  font-weight: bold;
  line-height: 1;
  transition: transform 0.12s ease, outline-color 0.12s ease;
}

.ao-busy-month-day.is-empty {
  visibility: hidden;
  border: none;
  background: transparent;
}

.ao-busy-month-day.l1 { background: var(--bt-l1); }
.ao-busy-month-day.l2 { background: var(--bt-l2); color: #f4f7fb; }
.ao-busy-month-day.l3 { background: var(--bt-l3); color: #f4f7fb; }
.ao-busy-month-day.l4 { background: var(--bt-l4); color: #e8eef7; }

.ao-busy-month-day:hover,
.ao-busy-month-day:focus-visible {
  outline: 2px solid var(--ao-gold);
  outline-offset: 0;
  z-index: 1;
  transform: scale(1.08);
}

.ao-busy-month-day.is-selected {
  box-shadow: 0 0 0 2px var(--ao-gold);
  z-index: 2;
  animation: ao-pulse-selected 1.6s ease-in-out infinite;
}

.ao-busy-month-day.is-press {
  transform: scale(0.9);
}

.ao-busy-month-day.is-reunion {
  outline: 2px solid #e8c35a;
  outline-offset: 1px;
  box-shadow: 0 0 0 2px rgba(15, 45, 92, 0.55);
  z-index: 2;
}

.ao-busy-month-day.is-high-boss {
  outline: 2px solid #b57cff;
  outline-offset: 1px;
  box-shadow: 0 0 0 2px rgba(40, 10, 70, 0.55);
  z-index: 2;
}

.ao-busy-month-day.is-super-rare {
  outline: 2px solid #e8457a;
  outline-offset: 1px;
  box-shadow: 0 0 0 2px rgba(90, 16, 40, 0.55);
  z-index: 2;
}

.ao-busy-month-day.is-reunion.is-high-boss,
.ao-busy-month-day.is-reunion.is-super-rare,
.ao-busy-month-day.is-high-boss.is-super-rare {
  outline: 2px solid #e8c35a;
  box-shadow:
    0 0 0 2px #c94a7a,
    0 0 0 4px rgba(15, 45, 92, 0.45);
}

.ao-busy-cell.is-reunion {
  position: relative;
  z-index: 3;
  outline: 2px solid #e8c35a;
  outline-offset: 1px;
  box-shadow: 0 0 0 1px rgba(15, 45, 92, 0.55);
}

.ao-busy-cell.is-high-boss {
  position: relative;
  z-index: 3;
  outline: 2px solid #b57cff;
  outline-offset: 1px;
  box-shadow: 0 0 0 1px rgba(40, 10, 70, 0.55);
}

.ao-busy-cell.is-super-rare {
  position: relative;
  z-index: 3;
  outline: 2px solid #e8457a;
  outline-offset: 1px;
  box-shadow: 0 0 0 1px rgba(90, 16, 40, 0.55);
}

.ao-busy-cell.is-reunion.is-high-boss,
.ao-busy-cell.is-reunion.is-super-rare,
.ao-busy-cell.is-high-boss.is-super-rare {
  outline: 2px solid #e8c35a;
  box-shadow:
    0 0 0 2px #c94a7a,
    0 0 0 3px rgba(15, 45, 92, 0.4);
}

.ao-busy-badges {
  position: absolute;
  top: -0.4rem;
  right: -0.4rem;
  display: flex;
  flex-direction: row-reverse;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 1px;
  max-width: 2.4rem;
  pointer-events: none;
  z-index: 4;
}

.ao-busy-badge {
  display: block;
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.55));
  animation: ao-marker-glow 1.6s ease-in-out infinite;
}

.ao-busy-cell .ao-busy-badge {
  width: 0.9rem;
  height: 0.9rem;
}

/* Mark SVG icons live in gossip-pulse-marks.css (shared with Live Gossip). */

.ao-busy-month-day-num {
  position: relative;
  z-index: 1;
}

.ao-busy-month-cal-total {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-family: var(--ao-font-sans);
  font-size: 11px;
  font-weight: bold;
  color: var(--ao-blue);
  text-decoration: none;
  padding-right: 0.1rem;
}

.ao-busy-month-cal-total:hover {
  text-decoration: underline;
}

.ao-busy-month-cal-total.is-selected {
  color: var(--ao-gold-dark);
}

.ao-busy-month-cal-total.is-empty {
  visibility: hidden;
}

.ao-busy-month-cal-week.is-selected .ao-busy-month-cal-total {
  color: var(--ao-gold-dark);
}

/* Compact GitHub-style week strip */
.ao-busy-compact-wrap {
  margin: 0.35rem 0 0.55rem;
  width: 100%;
  overflow-x: auto;
}

.ao-busy-week-strip {
  --ao-busy-cell: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.65rem;
  width: max-content;
  max-width: 100%;
  padding: 0.15rem 0;
}

.ao-busy-week-strip-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  min-width: 2rem;
}

.ao-busy-week-strip-dow {
  font-family: var(--ao-font-sans);
  font-size: 10px;
  color: var(--ao-text-muted);
  line-height: 1;
}

.ao-busy-week-strip .ao-busy-cell {
  width: var(--ao-busy-cell);
  height: var(--ao-busy-cell);
  aspect-ratio: auto;
  flex: none;
}

.ao-busy-week-strip-day {
  font-family: var(--ao-font-sans);
  font-size: 10px;
  color: var(--ao-blue-deep);
  line-height: 1;
}

/* Week day cards (legacy) */
.ao-pulse-week-cards {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 0.25rem 0 0.5rem;
}

@media (max-width: 640px) {
  .ao-pulse-week-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.ao-pulse-day-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.55rem 0.35rem;
  border-radius: 3px;
  border: 1px solid var(--ao-border-light);
  background: var(--ao-bg);
  text-decoration: none;
  color: var(--ao-text);
  transition: transform 0.12s ease;
}

.ao-pulse-day-card:hover {
  transform: translateY(-2px);
  outline: 2px solid var(--ao-gold);
}

.ao-pulse-day-card.is-selected {
  box-shadow: 0 0 0 2px var(--ao-gold);
}

.ao-pulse-day-card.l1 { background: #e8eef7; }
.ao-pulse-day-card.l2 { background: #c5d4eb; }
.ao-pulse-day-card.l3 { background: #7a9bc8; color: #fff; }
.ao-pulse-day-card.l4 { background: #0f2d5c; color: #e8eef7; }

.ao-pulse-day-dow {
  font-family: var(--ao-font-sans);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.85;
}

.ao-pulse-day-num {
  font-family: var(--ao-font-serif);
  font-size: 1.25rem;
  font-weight: bold;
  line-height: 1;
}

.ao-pulse-day-count {
  font-family: var(--ao-font-sans);
  font-size: 11px;
  opacity: 0.9;
}

.ao-pulse-day-swatch {
  display: block;
  width: 100%;
  max-width: 2rem;
  aspect-ratio: 1;
  border-radius: 3px;
  border: 1px solid rgba(15, 45, 92, 0.12);
  background: #e8edf4;
}

.ao-pulse-day-swatch.l1 { background: #c5d4eb; }
.ao-pulse-day-swatch.l2 { background: #7a9bc8; }
.ao-pulse-day-swatch.l3 { background: #3a6aaa; }
.ao-pulse-day-swatch.l4 { background: #0f2d5c; }

.ao-pulse-hour-heat {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.28rem;
  margin: 0.35rem 0 0;
}

@media (min-width: 700px) {
  .ao-pulse-hour-heat {
    grid-template-columns: repeat(24, minmax(0, 1fr));
  }
}

.ao-pulse-day-board {
  margin: 0.15rem 0 0.65rem;
  padding: 0.55rem 0.65rem 0.6rem;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(15, 45, 92, 0.1);
  border-radius: 6px;
}

.ao-pulse-day-board .ao-busy-compact-wrap {
  margin: 0 0 0.45rem;
}

.ao-pulse-day-board.is-day .ao-busy-week-strip {
  --ao-busy-cell: 16px;
  gap: 0.45rem 0.85rem;
  margin: 0 auto;
}

.ao-pulse-hour-cell {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  aspect-ratio: 1;
  border-radius: 3px;
  border: 1px solid rgba(15, 45, 92, 0.1);
  background: var(--bt-l0);
  padding: 0.15rem;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
}

a.ao-pulse-hour-cell:hover,
a.ao-pulse-hour-cell:focus-visible {
  outline: 2px solid var(--ao-gold);
  outline-offset: 0;
  z-index: 1;
  position: relative;
}

.ao-pulse-chart-hint {
  margin: 0.35rem 0 0;
  font-family: var(--ao-font-sans);
  font-size: var(--ao-fs-ui-sm);
  color: var(--ao-text-muted);
}

.ao-pulse-hour-cell.l0 { background: var(--bt-l0); }
.ao-pulse-hour-cell.l1 { background: var(--bt-l1); }
.ao-pulse-hour-cell.l2 { background: var(--bt-l2); }
.ao-pulse-hour-cell.l3 { background: var(--bt-l3); }
.ao-pulse-hour-cell.l4 { background: var(--bt-l4); }

.ao-pulse-hour-label {
  font-family: var(--ao-font-sans);
  font-size: 9px;
  color: var(--ao-blue-deep);
  line-height: 1;
}

.ao-pulse-hour-cell.l2 .ao-pulse-hour-label,
.ao-pulse-hour-cell.l3 .ao-pulse-hour-label,
.ao-pulse-hour-cell.l4 .ao-pulse-hour-label {
  color: #e8eef7;
}

.ao-pulse-browse-label {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: var(--ao-blue-deep);
}

.ao-pulse-chart-block {
  margin: 0.65rem 0 0.15rem;
  padding: 0.55rem 0.6rem 0.55rem;
  background: var(--ao-bg);
  border: 1px solid var(--ao-border-light);
  border-radius: 6px;
}

.ao-pulse-chart-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.55rem;
}

.ao-pulse-chart-heading {
  font-family: var(--ao-font-serif);
  font-size: 1rem;
  font-weight: bold;
  color: var(--ao-blue-deep);
}

.ao-pulse-chart-types {
  display: inline-flex;
  gap: 0.25rem;
}

.ao-pulse-chart-type {
  font-family: var(--ao-font-sans);
  font-size: var(--ao-fs-ui-sm);
  padding: 0.28rem 0.55rem;
  border: 1px solid var(--ao-border);
  background: var(--ao-cream);
  color: var(--ao-blue);
  cursor: pointer;
  border-radius: 2px;
}

.ao-pulse-chart-type:hover {
  background: var(--ao-blue-light);
}

.ao-pulse-chart-type.is-active,
.ao-pulse-chart-type[aria-pressed="true"] {
  background: var(--ao-blue);
  border-color: var(--ao-blue);
  color: #fff;
}

.ao-busy-calendar-scroll {
  /* Do not set overflow-x:hidden alone — CSS turns overflow-y into auto and
     badge overhang then creates a useless vertical scrollbar. */
  overflow: visible;
  padding: 0.55rem 0.2rem 0.55rem;
  width: 100%;
}

.ao-busy-year-grid {
  /* --bt-l* inherited from .ao-busy-times so dark theme heat applies */
  --ao-busy-gap: 2px;
  --ao-busy-dow-col: 1.6rem;
  display: grid;
  grid-template-columns: var(--ao-busy-dow-col) repeat(var(--ao-busy-weeks, 53), minmax(0, 1fr));
  grid-template-rows: 1rem repeat(7, auto);
  gap: var(--ao-busy-gap);
  width: 100%;
  max-width: 100%;
}

/* Year cells: keep markers inside the square so the grid does not grow/scroll */
.ao-busy-year-grid .ao-busy-cell {
  position: relative;
  overflow: visible;
}

.ao-busy-year-grid .ao-busy-badges {
  top: -0.15rem;
  right: -0.15rem;
  max-width: 100%;
  flex-wrap: nowrap;
  gap: 0;
}

.ao-busy-year-grid .ao-busy-badge {
  width: 0.7rem;
  height: 0.7rem;
}

.ao-busy-month-row {
  display: contents;
}

.ao-busy-dow-spacer {
  grid-column: 1;
  height: 1rem;
}

.ao-busy-month-label {
  height: 1rem;
  font-family: var(--ao-font-sans);
  font-size: 11px;
  line-height: 1rem;
  color: var(--ao-text-muted);
  overflow: visible;
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  z-index: 2;
  min-width: 0;
  /* Text spills into empty neighbor week columns (GitHub-style) */
  pointer-events: none;
}

a.ao-busy-month-label {
  pointer-events: auto;
}

a.ao-busy-month-label:hover {
  color: var(--ao-blue);
  text-decoration: underline;
}

.ao-busy-month-label.is-empty {
  font-size: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.ao-busy-year-grid > .ao-busy-dow {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 0.25rem;
  font-family: var(--ao-font-sans);
  font-size: 9px;
  color: var(--ao-text-muted);
  line-height: 1;
  min-height: 0;
}

.ao-busy-year-grid > .ao-busy-dow.is-quiet {
  color: transparent;
}

.ao-busy-cell {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  height: auto;
  min-width: 0;
  min-height: 0;
  border-radius: 2px;
  border: 1px solid rgba(15, 45, 92, 0.1);
  background: var(--bt-l0);
  padding: 0;
  text-decoration: none;
  box-sizing: border-box;
}

.ao-busy-cell.is-out {
  visibility: hidden;
  pointer-events: none;
  border: none;
  background: transparent;
}

.ao-busy-cell:hover,
.ao-busy-cell:focus-visible {
  outline: 2px solid var(--ao-gold);
  outline-offset: 0;
  z-index: 1;
  position: relative;
  transform: scale(1.35);
  transition: transform 0.12s ease, outline-color 0.12s ease;
}

.ao-busy-cell.is-selected {
  box-shadow: 0 0 0 2px var(--ao-gold);
  border-color: var(--ao-gold-dark);
  z-index: 2;
  position: relative;
  animation: ao-pulse-selected 1.6s ease-in-out infinite;
}

.ao-busy-cell.is-press {
  transform: scale(0.85);
}

.ao-busy-tip {
  position: absolute;
  z-index: 80;
  max-width: min(22rem, calc(100vw - 1.5rem));
  padding: 0.55rem 0.7rem;
  background: #0f2d5c;
  color: #f4f7fb;
  border: 1px solid var(--ao-gold, #d4ad54);
  border-radius: 3px;
  box-shadow: 0 6px 18px rgba(15, 45, 92, 0.28);
  font-family: var(--ao-font-sans);
  font-size: 12px;
  line-height: 1.35;
  pointer-events: none;
}

.ao-busy-tip-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ao-busy-tip-item {
  margin: 0 0 0.3rem;
  padding: 0 0 0.3rem;
  border-bottom: 1px solid rgba(232, 238, 247, 0.18);
}

.ao-busy-tip-item:last-of-type {
  margin-bottom: 0.35rem;
}

.ao-busy-tip-meta {
  margin: 0;
  padding-top: 0.15rem;
  color: #c5d4eb;
  font-size: 11px;
}

.ao-busy-week-strip-col.is-reunion-day .ao-busy-week-strip-day {
  color: var(--ao-gold-dark, #8a6a00);
  font-weight: bold;
}

.ao-busy-week-strip-col.is-super-rare-day .ao-busy-week-strip-day {
  color: #c94a7a;
  font-weight: bold;
}

.ao-busy-legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  margin: 0.45rem 0 0.2rem;
  padding: 0.45rem 0.6rem;
  font-family: var(--ao-font-sans);
  font-size: 11px;
  color: var(--ao-text-muted);
  background:
    linear-gradient(135deg, rgba(232, 195, 90, 0.07), transparent 42%),
    linear-gradient(180deg, rgba(15, 45, 92, 0.035), rgba(15, 45, 92, 0.015));
  border: 1px solid rgba(15, 45, 92, 0.1);
  border-radius: 6px;
}

.ao-busy-legend-marks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.85rem;
}

.ao-busy-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--ao-blue-deep);
  font-weight: bold;
  letter-spacing: 0.01em;
}

.ao-busy-legend-text {
  line-height: 1.2;
}

.ao-busy-legend-scale {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 0.15rem;
  margin-left: auto;
}

.ao-busy-legend-scale-label {
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ao-text-muted);
}

.ao-busy-legend-scale-row {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
}

.ao-busy-legend-pm {
  font-family: var(--ao-font-sans);
  font-size: 14px;
  font-weight: bold;
  line-height: 1;
  color: var(--ao-blue-deep);
  min-width: 0.75rem;
  text-align: center;
}

.ao-busy-legend .ao-busy-sw {
  width: 11px;
  height: 11px;
  border-radius: 2px;
  border: 1px solid rgba(15, 45, 92, 0.16);
  background: var(--bt-l0, #e8edf4);
}

.ao-busy-legend .ao-busy-sw.l1 { background: var(--bt-l1); }
.ao-busy-legend .ao-busy-sw.l2 { background: var(--bt-l2); }
.ao-busy-legend .ao-busy-sw.l3 { background: var(--bt-l3); }
.ao-busy-legend .ao-busy-sw.l4 { background: var(--bt-l4); }

.ao-busy-hourly.ao-busy-panel {
  margin-top: 0;
}

.ao-busy-hourly .ao-busy-caption {
  font-family: var(--ao-font-sans);
  font-size: var(--ao-fs-ui-sm);
  color: var(--ao-text-muted);
  margin: 0.25rem 0 0.85rem;
}

.ao-busy-chart-wrap {
  position: relative;
  height: 220px;
  max-width: 100%;
  background: transparent;
  border: none;
  padding: 0.25rem 0.1rem 0;
}

.ao-busy-peak {
  margin: 0.45rem 0 0;
  font-family: var(--ao-font-sans);
  font-size: var(--ao-fs-ui-sm);
  color: var(--ao-blue);
}

.ao-gossip-pulse .ao-gossip-mirror-scope {
  padding: 0.45rem 0.7rem;
  margin-bottom: 0.65rem;
}

.ao-gossip-pulse .ao-gossip-mirror-scope .ao-callout-title {
  margin-bottom: 0.2rem;
  font-size: 0.95rem;
}

.ao-gossip-pulse .ao-gossip-mirror-scope-table th,
.ao-gossip-pulse .ao-gossip-mirror-scope-table td {
  padding: 0.12rem 0.4rem 0.12rem 0;
  font-size: var(--ao-fs-ui-sm);
}

/* --- Motion --- */

@keyframes ao-pulse-fade-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ao-pulse-cell-in {
  from {
    opacity: 0;
    transform: scale(0.55);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes ao-pulse-selected {
  0%,
  100% {
    box-shadow: 0 0 0 2px var(--ao-gold);
  }
  50% {
    box-shadow: 0 0 0 3px var(--ao-gold-light, #d8ba76);
  }
}

@keyframes ao-pulse-hourly-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ao-marker-glow {
  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.55));
  }
  50% {
    transform: scale(1.1);
    filter: drop-shadow(0 0 5px rgba(232, 195, 90, 0.55));
  }
}

@keyframes ao-reunion-sparkle {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.12);
  }
}

@keyframes ao-high-boss-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.12);
  }
}

.ao-pulse-fade {
  animation: ao-pulse-fade-up 0.45s ease both;
}

.ao-busy-cell.l1 { background: var(--bt-l1); }
.ao-busy-cell.l2 { background: var(--bt-l2); }
.ao-busy-cell.l3 { background: var(--bt-l3); }
.ao-busy-cell.l4 { background: var(--bt-l4); }

.ao-pulse-cell-in {
  animation: ao-pulse-cell-in 0.38s ease both;
  animation-delay: calc(var(--ao-pulse-i, 0) * 5ms);
}

.ao-pulse-hour-heat .ao-pulse-hour-cell {
  animation: ao-pulse-hourly-in 0.45s ease both;
  animation-delay: calc(var(--ao-pulse-i, 0) * 18ms);
}

.ao-pulse-hourly-in {
  animation: ao-pulse-hourly-in 0.5s ease both;
}

@media (prefers-reduced-motion: reduce) {
  .ao-pulse-fade,
  .ao-pulse-cell-in,
  .ao-pulse-hourly-in,
  .ao-pulse-hour-heat .ao-pulse-hour-cell,
  .ao-busy-cell.is-selected,
  .ao-busy-badge,
  .ao-busy-reunion-mark,
  .ao-busy-high-boss-mark,
  .ao-busy-super-rare-mark {
    animation: none !important;
  }

  .ao-busy-cell:hover,
  .ao-busy-cell:focus-visible,
  .ao-busy-cell.is-press,
  .ao-busy-month-day:hover,
  .ao-busy-month-day:focus-visible,
  .ao-busy-month-day.is-press {
    transform: none;
    transition: none;
  }

  .ao-busy-month-day.is-selected {
    animation: none !important;
  }
}

/* Dark theme — softer surfaces, no white ghost buttons, readable heat */
html[data-ao-theme="dark"] .ao-busy-times {
  --bt-l0: #1c2738;
  --bt-l1: #2a4060;
  --bt-l2: #3d5f8f;
  --bt-l3: #5a85c0;
  --bt-l4: #8eb4e8;
}

html[data-ao-theme="dark"] .ao-busy-panel {
  background: #161f30;
  border-color: rgba(140, 180, 232, 0.16);
  border-top-color: rgba(200, 168, 76, 0.55);
}

html[data-ao-theme="dark"] .ao-busy-panel-title,
html[data-ao-theme="dark"] .ao-busy-year-label,
html[data-ao-theme="dark"] .ao-pulse-crumb-current,
html[data-ao-theme="dark"] .ao-pulse-chart-heading {
  color: #e4ecf8;
}

html[data-ao-theme="dark"] .ao-busy-legend-item {
  color: #d2dde8;
}

html[data-ao-theme="dark"] .ao-gossip-pulse .ao-btn--ghost {
  background: rgba(28, 40, 58, 0.9);
  color: #c8d6e8 !important;
  border-color: rgba(140, 180, 232, 0.28);
  box-shadow: none;
}

html[data-ao-theme="dark"] .ao-gossip-pulse .ao-btn--ghost:hover,
html[data-ao-theme="dark"] .ao-gossip-pulse .ao-btn--ghost:focus-visible {
  background: rgba(48, 72, 110, 0.55);
  color: #f0d078 !important;
  border-color: rgba(200, 168, 76, 0.55);
}

html[data-ao-theme="dark"] .ao-gossip-pulse .ao-btn--ghost.is-disabled {
  background: rgba(20, 28, 40, 0.6);
  color: #6a7a90 !important;
  border-color: rgba(140, 180, 232, 0.12);
}

html[data-ao-theme="dark"] .ao-busy-year-select select,
html[data-ao-theme="dark"] .ao-busy-tz-select select {
  background: #121a28;
  border-color: rgba(140, 180, 232, 0.28);
  color: #e4ecf8;
}

html[data-ao-theme="dark"] .ao-pulse-day-board {
  background: rgba(12, 18, 28, 0.55);
  border-color: rgba(140, 180, 232, 0.14);
}

html[data-ao-theme="dark"] .ao-busy-legend {
  background: rgba(12, 18, 28, 0.45);
  border-color: rgba(140, 180, 232, 0.14);
}

html[data-ao-theme="dark"] .ao-busy-legend-scale-label {
  color: #8ca0b8;
}

html[data-ao-theme="dark"] .ao-busy-legend-pm {
  color: #c9a84c;
}

html[data-ao-theme="dark"] .ao-pulse-crumbs a,
html[data-ao-theme="dark"] .ao-busy-month-cal-total,
html[data-ao-theme="dark"] .ao-busy-peak,
html[data-ao-theme="dark"] .ao-busy-week-total {
  color: #8cb4e8;
}

html[data-ao-theme="dark"] .ao-busy-panel-intro,
html[data-ao-theme="dark"] .ao-busy-panel-meta,
html[data-ao-theme="dark"] .ao-busy-tz-label,
html[data-ao-theme="dark"] .ao-busy-month-cal-head span,
html[data-ao-theme="dark"] .ao-busy-legend,
html[data-ao-theme="dark"] .ao-busy-week-strip-dow,
html[data-ao-theme="dark"] .ao-busy-month-label {
  color: #8ca0b8;
}

html[data-ao-theme="dark"] .ao-busy-week-strip-day {
  color: #c8d6e8;
}

html[data-ao-theme="dark"] .ao-busy-month-day {
  color: #e8eef8;
  border-color: rgba(140, 180, 232, 0.18);
}

html[data-ao-theme="dark"] .ao-busy-month-day.l0,
html[data-ao-theme="dark"] .ao-busy-month-day:not([class*="l"]) {
  color: #b8c8dc;
  background: var(--bt-l0);
}

html[data-ao-theme="dark"] .ao-busy-month-day.l1 { background: var(--bt-l1); }
html[data-ao-theme="dark"] .ao-busy-month-day.l2 { background: var(--bt-l2); color: #0c1420; }
html[data-ao-theme="dark"] .ao-busy-month-day.l3 { background: var(--bt-l3); color: #0c1420; }
html[data-ao-theme="dark"] .ao-busy-month-day.l4 { background: var(--bt-l4); color: #0c1420; }

html[data-ao-theme="dark"] .ao-busy-cell {
  border-color: rgba(140, 180, 232, 0.18);
  background: var(--bt-l0);
}

html[data-ao-theme="dark"] .ao-busy-cell.l1 { background: var(--bt-l1); }
html[data-ao-theme="dark"] .ao-busy-cell.l2 { background: var(--bt-l2); }
html[data-ao-theme="dark"] .ao-busy-cell.l3 { background: var(--bt-l3); }
html[data-ao-theme="dark"] .ao-busy-cell.l4 { background: var(--bt-l4); }

html[data-ao-theme="dark"] .ao-pulse-chart-block {
  background: #121a28;
  border-color: rgba(140, 180, 232, 0.14);
}

html[data-ao-theme="dark"] .ao-busy-chart-wrap {
  background: transparent;
  border: none;
}

html[data-ao-theme="dark"] .ao-pulse-chart-type {
  color: #c8d6e8;
  border-color: rgba(140, 180, 232, 0.28);
  background: #1a2436;
}

html[data-ao-theme="dark"] .ao-pulse-chart-type:hover {
  background: #243448;
}

html[data-ao-theme="dark"] .ao-pulse-chart-type.is-active,
html[data-ao-theme="dark"] .ao-pulse-chart-type[aria-pressed="true"] {
  background: #3a6ab8;
  border-color: #5a85c0;
  color: #fff;
}

html[data-ao-theme="dark"] .ao-busy-sw {
  border-color: rgba(140, 180, 232, 0.28);
}

html[data-ao-theme="dark"] .ao-pulse-hour-cell {
  border-color: rgba(140, 180, 232, 0.16);
}

html[data-ao-theme="dark"] .ao-pulse-hour-label {
  color: #b8c8dc;
}

html[data-ao-theme="dark"] .ao-pulse-hour-cell.l2 .ao-pulse-hour-label,
html[data-ao-theme="dark"] .ao-pulse-hour-cell.l3 .ao-pulse-hour-label,
html[data-ao-theme="dark"] .ao-pulse-hour-cell.l4 .ao-pulse-hour-label {
  color: #0c1420;
}

html[data-ao-theme="dark"] .ao-busy-tip {
  background: #0c1424;
  border-color: rgba(200, 168, 76, 0.55);
  color: #e4ecf8;
}

html[data-ao-theme="dark"] .ao-busy-week-strip-col.is-reunion-day .ao-busy-week-strip-day {
  color: #e8c35a;
}

html[data-ao-theme="dark"] .ao-busy-week-strip-col.is-super-rare-day .ao-busy-week-strip-day {
  color: #f0a0b8;
}

html[data-ao-theme="dark"] .ao-pulse-chart-hint {
  color: #8ca0b8;
}

html[data-ao-theme="dark"] .ao-busy-cell.is-selected,
html[data-ao-theme="dark"] .ao-busy-month-day.is-selected {
  outline-color: #e8c35a;
  box-shadow: 0 0 0 1px rgba(232, 195, 90, 0.35);
}

