body {
  font-family: system-ui, -apple-system, sans-serif;
  background: #f4f6f8;
  color: #1f2937;
  margin: 0;
  padding: 20px;
}
.container { max-width: 900px; margin: 0 auto; }
.hidden { display: none !important; }
header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.card { background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); margin-bottom: 20px; }
.sub-card { background: #f9fafb; padding: 15px; border-radius: 6px; border: 1px solid #e5e7eb; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
label { display: block; margin-bottom: 10px; font-size: 14px; }
input[type="text"], input[type="password"], input[type="number"], input[type="month"], input[type="date"], select {
  padding: 8px; border: 1px solid #d1d5db; border-radius: 4px; width: 100%; box-sizing: border-box; margin-top: 4px;
}
.inline-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.inline-form input[type="text"], .inline-form input[type="password"] { width: auto; flex: 1; }
.inline-form > input[type="date"] { width: auto; }
.tab-list { display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid #d1d5db; margin: 0 0 16px; }
.tab-button { background: #e5e7eb; color: #374151; border-radius: 6px 6px 0 0; }
.tab-button:hover { background: #dbeafe; color: #1d4ed8; }
.tab-button[aria-selected="true"] { background: #2563eb; color: #fff; }
.tab-button:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }
.tab-panel[hidden] { display: none !important; }
button { background: #2563eb; color: #fff; border: none; padding: 9px 16px; border-radius: 4px; cursor: pointer; font-weight: 500; }
button:hover { background: #1d4ed8; }
button.secondary { background: #6b7280; }
table { width: 100%; border-collapse: collapse; margin-top: 15px; }
th, td { text-align: left; padding: 10px; border-bottom: 1px solid #e5e7eb; }
input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; }
.hint { color: #6b7280; font-size: 14px; }
.error { color: #dc2626; font-size: 14px; }
.success { color: #16a34a; font-size: 14px; }
.locked-badge { background: #fee2e2; color: #991b1b; padding: 2px 8px; border-radius: 12px; font-size: 12px; }
.open-badge { background: #dcfce7; color: #166534; padding: 2px 8px; border-radius: 12px; font-size: 12px; }
button.danger { background: #dc2626; }
button.danger:hover { background: #b91c1c; }
button.small { padding: 5px 10px; font-size: 13px; margin-right: 6px; }
.attendee-list { font-size: 13px; color: #4b5563; max-width: 240px; }
.audit-details { margin: 0; max-width: 460px; white-space: pre-wrap; word-break: break-word; font-size: 12px; }

@media (max-width: 640px) {
  body { padding: 12px; }
  .container { width: 100%; }
  header { gap: 12px; align-items: flex-start; }
  header h2 { font-size: 1.25rem; }
  header button { flex: 0 0 auto; }
  .card { padding: 14px; margin-bottom: 14px; }
  .grid-2 { grid-template-columns: 1fr; gap: 14px; }
  .tab-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: 100%;
    gap: 6px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .tab-button { flex: 0 0 auto; min-height: 44px; padding: 9px 13px; white-space: nowrap; }
  .inline-form { align-items: stretch; flex-direction: column; }
  .inline-form label { width: 100%; margin-bottom: 0; }
  .inline-form input[type="text"],
  .inline-form input[type="password"],
  .inline-form > input[type="date"] { width: 100%; flex: none; }
  input[type="text"],
  input[type="password"],
  input[type="number"],
  input[type="month"],
  input[type="date"],
  select { min-height: 44px; font-size: 16px; }
  button { min-height: 44px; }
  .inline-form button { width: 100%; }
  table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  th, td { padding: 8px; }
  input[type="checkbox"] { width: 22px; height: 22px; }
  .attendee-list select { min-width: 160px; }
  .audit-details { max-width: 260px; }
  button.small { min-height: 40px; }
}
