* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { font-family: system-ui, -apple-system, sans-serif; margin: 0; background: #f5f5f5; color: #1a1a1a; }
#app { max-width: 960px; margin: 0 auto; padding: 1rem; }
.header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding: 0.5rem 0; border-bottom: 2px solid #333; }
.header-brand { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; background: #252525; padding: 0.35rem 0.75rem; border-radius: 8px; }
.header-logo { height: 56px; width: auto; max-width: 280px; object-fit: contain; display: block; flex-shrink: 0; }
.club-name { margin: 0; font-size: 1.1rem; font-weight: 600; color: #f0f0f0; line-height: 1.3; }
.header h1 { margin: 0; font-size: 1.5rem; }
.auth-area { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.auth-area.logged-in .auth-guest { display: none !important; }
.auth-guest { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.auth-form { display: flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; margin: 0; }
.auth-form .form-hint { width: 100%; margin: 0 0 0.35rem 0; font-size: 0.9rem; color: #555; }
.auth-form-link { margin-left: 0.25rem; font-size: 0.9rem; }
.auth-form input { padding: 0.4rem 0.5rem; border: 1px solid #ccc; border-radius: 4px; font-size: 0.9rem; }
.add-participant-block { margin-top: 0.75rem; padding-top: 0.5rem; border-top: 1px solid #eee; }
.add-participant-select { padding: 0.35rem 0.5rem; min-width: 200px; font-size: 0.9rem; }
.checkbox-label { display: flex; align-items: center; gap: 0.4rem; font-size: 0.9rem; margin: 0.25rem 0; }
.checkbox-label a { color: #1877f2; }
.btn-link { background: none; border: none; color: #1877f2; cursor: pointer; text-decoration: underline; font-size: inherit; padding: 0; }
.btn-link:hover { color: #166fe5; }
.user-name { font-weight: 600; color: #333; }
.btn { padding: 0.5rem 1rem; border-radius: 6px; border: none; font-size: 0.95rem; cursor: pointer; }
.btn-primary { background: #1877f2; color: #fff; }
.btn-primary:hover { background: #166fe5; }
.btn-ghost { background: transparent; color: #555; border: 1px solid #ccc; }
.btn-ghost:hover { background: #eee; }
.btn-success { background: #2e7d32; color: #fff; }
.btn-danger { background: #c62828; color: #fff; }
.main { margin-top: 1.5rem; }
.calendar-section { background: #fff; border-radius: 8px; padding: 1rem; margin-bottom: 1.5rem; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.calendar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.calendar-header h2 { margin: 0; font-size: 1.25rem; }
.calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.calendar .day-label { text-align: center; font-weight: 600; font-size: 0.8rem; color: #666; padding: 0.25rem; }
.calendar .day-cell { min-height: 72px; padding: 4px; border: 1px solid #e0e0e0; border-radius: 4px; background: #fafafa; font-size: 0.85rem; }
.calendar .day-cell.other-month { background: #f0f0f0; color: #999; }
.calendar .day-cell .day-num { font-weight: 600; margin-bottom: 4px; }
.calendar .day-cell .session-tag { display: block; margin-top: 2px; padding: 2px 4px; background: #1877f2; color: #fff; border-radius: 3px; font-size: 0.75rem; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.calendar .day-cell .session-tag:hover { background: #166fe5; }
.sessions-section h2, .session-detail h2, .form-panel h2 { margin: 0 0 0.75rem 0; font-size: 1.1rem; }
.sessions-list { display: flex; flex-direction: column; gap: 0.5rem; }
.session-list-item { display: flex; flex-direction: column; gap: 0; }
.session-card { background: #fff; border-radius: 6px; padding: 0.75rem 1rem; border: 1px solid #e0e0e0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.session-card .date-time { font-weight: 600; }
.session-card .spots { color: #666; font-size: 0.9rem; }
.session-detail-inline { background: #fafafa; border: 1px solid #e0e0e0; border-top: none; border-radius: 0 0 6px 6px; padding: 1rem 1rem 1.25rem; margin: 0 0 0.5rem 0; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.session-detail-inline p { margin: 0.25rem 0 0.5rem 0; }
.session-detail-inline ul { list-style: none; padding: 0; margin: 0 0 0.75rem 0; }
.session-detail-inline li { padding: 0.35rem 0; border-bottom: 1px solid #eee; }
.session-detail-inline .reserves-label { margin: 0.5rem 0 0.25rem 0; font-weight: 600; color: #555; }
.session-detail-inline .reserves-list { list-style: decimal; padding-left: 1.25rem; margin-bottom: 1rem; }
.session-detail-inline .on-reserve { color: #2e7d32; font-weight: 600; margin-bottom: 0.5rem; }
.session-detail-inline .full { color: #c62828; font-weight: 600; }
.session-detail-inline .add-participant-block { margin-top: 0.75rem; padding-top: 0.5rem; border-top: 1px solid #eee; }
.session-detail-inline .session-edit-capacity { margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px solid #eee; }
.session-detail-inline .session-edit-capacity input[type="number"] { padding: 0.25rem 0.35rem; margin: 0 0.25rem 0 0; }
.session-detail, .form-panel { background: #fff; border-radius: 8px; padding: 1rem; margin-bottom: 1rem; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.users-list .user-row { padding: 0.5rem 0; border-bottom: 1px solid #eee; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.users-list .user-role { font-size: 0.85rem; color: #666; }
.admin-hint { font-size: 0.9rem; color: #666; margin-bottom: 0.75rem; }
.session-detail ul { list-style: none; padding: 0; margin: 0 0 1rem 0; }
.session-detail li { padding: 0.35rem 0; border-bottom: 1px solid #eee; }
form label { display: block; margin-bottom: 0.5rem; }
form input { margin-left: 0.5rem; padding: 0.35rem 0.5rem; border: 1px solid #ccc; border-radius: 4px; }
form button { margin-right: 0.5rem; margin-top: 0.5rem; }
#sessionDetailContent .full { color: #c62828; font-weight: 600; }
#sessionDetailContent .reserves-label { margin: 0.5rem 0 0.25rem 0; font-weight: 600; color: #555; }
#sessionDetailContent .reserves-list { list-style: decimal; padding-left: 1.25rem; margin-bottom: 1rem; }
#sessionDetailContent .on-reserve { color: #2e7d32; font-weight: 600; margin-bottom: 0.5rem; }
.btn-secondary { background: #5c6bc0; color: #fff; }
.btn-secondary:hover { background: #4a56a8; }
.btn-danger-outline { color: #c62828; border-color: #c62828; }
.btn-danger-outline:hover { background: #ffebee; }
.stats-by-user { margin: 1rem 0; }
.stats-table { width: 100%; border-collapse: collapse; }
.stats-table th, .stats-table td { padding: 0.5rem 0.75rem; text-align: left; border-bottom: 1px solid #eee; }
.stats-table th { font-weight: 600; color: #555; }
.footer { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid #ddd; font-size: 0.9rem; }
.footer a { color: #1877f2; }
