.c-skip-link {
  position: fixed;
  left: 12px;
  top: 10px;
  z-index: 100;
  transform: translateY(-160%);
  padding: 9px 14px;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  transition: transform .12s ease;
}
.c-skip-link:focus { transform: translateY(0); }
.c-brand { text-decoration: none; font-size: 1.1rem; letter-spacing: .01em; }
.c-brand strong { color: var(--brand); }
.c-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 11px;
  border-radius: 999px;
  background: #edf1f7;
  color: var(--text-soft);
  font-size: .8rem;
  font-weight: 700;
}
.c-badge--brand { background: var(--brand-soft); color: var(--brand); }
.c-badge--success { background: #dcfce7; color: #166534; }
.c-badge--warning { background: #fef3c7; color: #92400e; }
.c-badge--error { background: #ffe4e6; color: #9f1239; }
.c-action-row { display: flex; flex-wrap: wrap; gap: var(--space-3); margin: var(--space-5) 0 0; }
.c-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.c-button:hover { filter: brightness(.96); }
.c-button--secondary { background: #edf1f7; color: var(--text); }
.c-button--danger { background: #b42318; color: #fff; }
.c-button--disabled, .c-button:disabled { opacity: .52; cursor: default; filter: none; }
.c-button:focus-visible,
.c-admin-nav a:focus-visible,
.c-brand:focus-visible,
.p-event-card:focus-visible,
.p-photo-card:focus-visible,
.p-parent__back a:focus-visible,
.p-parent__text-button:focus-visible,
.p-selection__clear:focus-visible,
.p-selection__fallback a:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}
.c-note { margin: var(--space-3) 0 0; color: var(--text-soft); font-size: .9rem; }
.c-meta { margin-top: 3px; color: var(--text-soft); font-size: .82rem; }
.c-panel {
  min-width: 0;
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}
.c-panel--quiet { box-shadow: none; background: rgba(255,255,255,.55); }
.c-panel > :last-child { margin-bottom: 0; }
.c-form { display: grid; gap: var(--space-4); }
.c-form--compact { margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--line); }
.c-form-field { display: grid; gap: var(--space-2); font-weight: 700; min-width: 0; }
.c-input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
textarea.c-input { min-height: 110px; resize: vertical; }
.c-input:focus-visible { outline: 3px solid var(--brand-soft); border-color: var(--brand); }
.c-alert { margin: 0 0 var(--space-4); padding: 12px 14px; border-radius: var(--radius-sm); background: #eef3f8; }
.c-alert--success { background: #ecfdf3; color: #166534; }
.c-alert--warning { background: #fff7ed; color: #9a3412; border: 1px solid #fed7aa; }
.c-alert--error { background: #fff1f2; color: #9f1239; }
.c-admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  background: #f5f7fa;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.c-admin-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 13px;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: .9rem;
}
.c-admin-nav a[aria-current="page"] { background: var(--surface); box-shadow: 0 1px 5px rgba(15,23,42,.08); color: var(--brand); }
.c-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-4); }
.c-section-heading h2 { margin: 0 0 6px; }
.c-section-heading p { margin: 0; color: var(--text-soft); }
.c-table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.c-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: .92rem; }
.c-table th, .c-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.c-table th { color: var(--text-soft); font-size: .8rem; font-weight: 800; white-space: nowrap; }
.c-table tbody tr:last-child td { border-bottom: 0; }
.c-table__action { width: 1%; white-space: nowrap; }
.c-table__action form { display: inline-flex; margin: 2px 0 2px 6px; }
.c-table__action .c-button { min-height: 40px; padding: 8px 14px; }
.c-empty { padding: 24px 16px; border: 1px dashed var(--line); border-radius: var(--radius-sm); color: var(--text-soft); text-align: center; }
@media (max-width: 640px) {
  .c-action-row { align-items: stretch; }
  .c-action-row .c-button { flex: 1 1 160px; }
  .c-admin-nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; }
  .c-admin-nav a { flex: 0 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .c-skip-link { transition: none; }
}
