/* ==========================================================================
   Section 1 — Base rules (error pages)
   Carried forward unscoped and unchanged from src/connect/errorPage.ts's
   former inline STYLE_BLOCK. Do not modify these selectors or add any new
   class to them (e.g. `account-shell`) — renderErrorPage()'s visual output
   must stay byte-identical to its pre-Phase-15 rendering.
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  background: #FFFFFF;
  color: #1A1A1A;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  padding: 24px;
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
}

.content {
  max-width: 480px;
}

h1 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 8px 0;
}

p {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   Section 2 — Account-site rules (Phase 15 redesign)
   All new selectors below are scoped under new classes and never modify the
   bare body/.content/h1/p selectors above. See 15-UI-SPEC.md for the full
   design contract and 15-01-PLAN.md's <interfaces> block for the exact
   class-name contract shared with Plan 15-02.
   ========================================================================== */

body.account-shell {
  background: #F8FAFC;
  display: block;
  padding: 0;
}

/* Header bar (D-04-D-06) */

.site-header {
  width: 100%;
  height: 56px;
  background: #1E1B4B;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.site-header__name {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  color: #FFFFFF;
  text-decoration: none;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-header__link {
  font-size: 14px;
  font-weight: 400;
  color: #FFFFFF;
  text-decoration: none;
}

.site-header__logout {
  display: inline-flex;
  margin: 0;
}

/* Content layout (D-07) */

.content-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  box-shadow: none;
  max-width: 400px;
  padding: 24px;
  margin: 32px auto 48px auto;
}

.content-card > * + * {
  margin-top: 16px;
}

.content-card h2 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  margin: 24px 0 8px 0;
}

.docs-example {
  font-style: italic;
  color: #6B7280;
}

.docs-endpoint {
  display: block;
  width: 100%;
  max-width: 480px;
  margin: 8px 0;
  padding: 8px 10px;
  font: inherit;
  font-family: monospace;
  color: #1A1A1A;
  background: #F8FAFC;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  user-select: all;
}

.docs-endpoint:focus-visible {
  outline: 2px solid #1E1B4B;
  outline-offset: 1px;
}

/* Check-ins list (D-11) */

.checkin-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.checkin-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 16px;
}

.checkin-card__row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
}

.checkin-card__venue {
  font-size: 16px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checkin-card__time {
  font-size: 14px;
  font-weight: 400;
  color: #1A1A1A;
}

.checkin-card__shout {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #6B7280;
  margin-top: 8px;
}

/* Buttons (D-08/D-09) */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.btn--neutral {
  background: transparent;
  border: 1px solid #D1D5DB;
  color: #1A1A1A;
}

/* Scoped (not on .btn--neutral itself) because the Dashboard-connected page's
   standalone Log-out button reuses .btn--neutral outside the header and must
   stay dark-text on its white content-card background. */
.site-header__logout .btn--neutral {
  border-color: #FFFFFF;
  color: #FFFFFF;
}

.btn--danger {
  background: #DC2626;
  border: none;
  color: #FFFFFF;
}

/* Links (D-03/D-10) */

.link-accent {
  color: #B45309;
}

/* Accessibility */

.link-accent:focus-visible,
.btn:focus-visible,
.site-header__link:focus-visible,
.site-header__name:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* Responsive (~480px breakpoint, UI-SPEC.md Section 6) */

@media (max-width: 480px) {
  .site-header {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 16px;
  }

  .site-header__nav {
    flex-wrap: wrap;
  }

  .content-card {
    max-width: none;
    width: calc(100% - 32px);
  }
}
