/* layout.css - Header, app shell, and view styles
   Built up across phases — minimal in phase 1. */

/* ── Header ──────────────────────────────────────────────────────────────── */

#app-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 2px var(--color-shadow);
  flex-shrink: 0;
}

.header-logo { width: 32px; height: auto; }

.app-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary-dark);
  letter-spacing: 0.01em;
}

.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

#user-name {
  font-size: 11px;
  color: var(--color-text-muted);
  font-weight: 500;
}

#search-input {
  font-family: inherit;
  font-size: 11px;
  padding: 4px 8px;
  width: 180px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  background: var(--color-surface);
}
#search-input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.readonly-pill {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 2px 8px;
  cursor: help;
}

/* ── Main ────────────────────────────────────────────────────────────────── */

#app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

/* ── Phase 1 status card ─────────────────────────────────────────────────── */

.status-card {
  max-width: 520px;
  margin: 40px auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  box-shadow: 0 4px 16px var(--color-shadow);
}

.status-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #DCFCE7;
  color: #16A34A;
  font-size: 28px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.status-card.status-error .status-icon {
  background: #FEE2E2;
  color: #DC2626;
}

.status-card h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 12px;
}

.status-card p {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 8px;
  line-height: 1.5;
}

.status-card p strong { color: var(--color-text); }

.status-hint {
  margin-top: 14px !important;
  font-style: italic;
  font-size: 11px !important;
}

.status-counts {
  list-style: none;
  padding: 12px 16px;
  margin: 6px auto 0;
  background: var(--color-bg, #F8FAFC);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md, 6px);
  text-align: left;
  font-size: 11px;
  color: var(--color-text-muted);
  max-width: 360px;
}

.status-counts li { padding: 2px 0; }
.status-counts li strong { color: var(--color-text); }
