  /* Compact overview; details and history stay folded by default. */
  .wrap { max-width: 1080px; }
  header { margin-bottom: 18px; gap: 12px; }
  h1 small { display: block; margin: 5px 0 0; font-size: 12px; }
  .overview { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; color: var(--muted); font-size: 12px; }
  .overview-item { padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px; background: #15181e; }
  .overview-item strong { color: var(--text); margin-right: 4px; font-variant-numeric: tabular-nums; }
  .overview-item.success strong { color: var(--ok); }
  .overview-note { margin-left: auto; }
  #sites { columns: 2; column-gap: 10px; }
  .site-card { padding: 0; margin: 0 0 10px; break-inside: avoid; overflow: hidden; border-radius: 11px; min-width: 0; transition: border-color .15s; }
  .site-card:hover { border-color: #414956; }
  .site-card.expanded { border-color: #466da5; }
  .card-top { display: flex; align-items: center; gap: 4px; padding: 12px; min-height: 92px; }
  .card-main { display: flex; align-items: center; gap: 11px; min-width: 0; flex: 1; background: none; border: 0; padding: 2px; text-align: left; }
  .card-main:hover { background: none; }
  .site-avatar { display: grid; place-items: center; width: 38px; height: 42px; flex-shrink: 0; border: 1px solid #344058; border-radius: 9px; color: #a9c9ff; background: #232e43; font-size: 16px; font-weight: 650; }
  .site-copy { flex: 1; min-width: 0; }
  .site-name { display: block; color: var(--text); font-size: 14px; font-weight: 650; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .card-status { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; line-height: 1.6; margin-top: 4px; flex-wrap: wrap; }
  .state-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
  .card-status.success { color: var(--ok); }
  .card-status.failed { color: #ff918b; }
  .card-status.success .state-dot { background: var(--ok); }
  .card-status.failed .state-dot { background: var(--err); }
  .credential-chip { color: var(--muted); border-left: 1px solid var(--border); padding-left: 6px; }
  .card-caret { color: #bac7d9; font-size: 14px; margin: 0 4px; transition: transform .15s; }
  .expanded .card-caret { transform: rotate(180deg); }
  .quick-check { font-size: 12px; padding: 7px 10px; flex-shrink: 0; background: #242b38; border-color: #364257; }
  .site-details { border-top: 1px solid var(--border); padding: 14px; background: #161a21; }
  .site-details[hidden] { display: none; }
  .detail-meta { display: flex; justify-content: space-between; align-items: start; flex-wrap: wrap; gap: 6px; font-size: 11px; color: var(--muted); margin-bottom: 12px; }
  .detail-meta a { color: #a9c9ff; text-decoration: none; }
  .detail-meta a:hover { text-decoration: underline; }
  .site-btns { margin-top: 13px; gap: 6px; padding-top: 12px; border-top: 1px solid var(--border); }
  .site-btns button { font-size: 11px; padding: 7px 9px; border-radius: 7px; }
  .calendar-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
  .calendar-heading h3 { font-size: 13px; font-weight: 600; }
  .calendar-nav { display: flex; gap: 5px; align-items: center; }
  .calendar-nav button { padding: 4px 8px; font-size: 12px; min-width: 28px; }
  .calendar-month { min-width: 72px; text-align: center; color: var(--text); font-size: 12px; font-variant-numeric: tabular-nums; }
  .calendar-count { font-size: 11px; color: var(--muted); margin-bottom: 10px; min-height: 16px; }
  .calendar-count strong { color: var(--ok); font-weight: 500; }
  .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
  .calendar-weekday { text-align: center; font-size: 11px; padding-bottom: 5px; color: var(--muted); }
  .calendar-day { min-height: 34px; padding: 6px 2px; border-radius: 6px; font-size: 11px; background: #1c212b; border: 1px solid transparent; color: #a7aebb; position: relative; font-variant-numeric: tabular-nums; }
  .calendar-day:hover { border-color: #7185a3; }
  .calendar-day.success { background: #18372b; color: #8ae3aa; }
  .calendar-day.failed { background: #3b2427; color: #ffa3a0; }
  .calendar-day.today { box-shadow: inset 0 0 0 1px #7897c4; }
  .calendar-day.selected { outline: 2px solid #9dbce9; outline-offset: 0; }
  .calendar-day.future { opacity: .28; }
  .calendar-day.success::after, .calendar-day.failed::after { content: ''; width: 3px; height: 3px; border-radius: 50%; background: currentColor; position: absolute; bottom: 3px; left: calc(50% - 1.5px); }
  .calendar-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 10px; margin-top: 10px; }
  .legend-key { display: inline-block; width: 7px; height: 7px; border-radius: 2px; margin-right: 4px; background: #2c3341; }
  .legend-key.success { background: #318653; }
  .legend-key.failed { background: #ba5755; }
  .calendar-selection { margin-top: 11px; padding: 9px 10px; border: 1px solid var(--border); border-radius: 7px; min-height: 60px; font-size: 11px; line-height: 1.7; color: var(--muted); overflow-wrap: anywhere; }
  .calendar-selection strong { color: var(--text); display: block; font-weight: 500; }
  .calendar-selection p { margin-top: 3px; white-space: pre-wrap; }
  .history-note { color: var(--muted); font-size: 10px; line-height: 1.7; margin-top: 9px; }
  .calendar-error { color: #ffb0a9; font-size: 12px; line-height: 1.8; }
  .calendar-loading { color: var(--muted); padding: 18px 0; font-size: 12px; }
  .page-error { color: #ffb0a9; font-size: 12px; padding: 12px; border: 1px solid #66383a; border-radius: 8px; margin-bottom: 12px; }
  .page-error[hidden] { display: none; }
  button:focus-visible, a:focus-visible { outline: 2px solid #a9c9ff; outline-offset: 3px; }
  @media (max-width: 640px) {
    .wrap { padding: 18px 12px 40px; }
    header { align-items: center; margin-bottom: 14px; }
    h1 { font-size: 19px; }
    h1 small { font-size: 10px; }
    #sites { columns: 1; }
    .site-card { margin-bottom: 8px; }
    .card-top { min-height: 84px; padding: 11px 12px; }
    .site-avatar { width: 34px; height: 38px; }
    .overview { gap: 6px; }
    .overview-note { width: 100%; margin: 2px 0 0; font-size: 10px; }
    .overview-item { padding: 5px 8px; font-size: 11px; }
  }
  @media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
