/* =====================================================================
   Panel Management — Szkola Kalendarz
   School colors (defaults): #961A30 (burgundy), #1A4D95 (navy blue) — override via --sk-primary / --sk-secondary
   ===================================================================== */

/* --- Panel Header --- */
.sk-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}
.sk-panel-header h1 {
    margin: 0;
    font-size: 1.6rem;
    color: var(--sk-primary);
}
.sk-panel-user {
    margin: 4px 0 0;
    font-size: 0.9rem;
    color: #666;
}

/* --- Badges --- */
.sk-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    margin-left: 6px;
    vertical-align: middle;
}
.sk-badge-admin { background: #333; }
.sk-badge-director { background: var(--sk-primary); }
.sk-badge-teacher { background: #2BA84A; }

/* --- Tabs --- */
.sk-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.sk-tab {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: #666;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.sk-tab:hover {
    color: var(--sk-primary);
    background: #f5f7fa;
}
.sk-tab.active {
    color: var(--sk-primary);
    border-bottom-color: var(--sk-primary);
    font-weight: 600;
}

/* --- Tab Content --- */
.sk-tab-content {
    display: none;
}
.sk-tab-content.active {
    display: block;
}

/* --- Toolbar --- */
.sk-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}
.sk-toolbar-left,
.sk-toolbar-right {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

/* --- Buttons --- */
.sk-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
    line-height: 1.4;
}
.sk-btn-primary {
    background: var(--sk-primary);
    color: #fff;
}
.sk-btn-primary:hover {
    background: var(--sk-primary); filter: brightness(0.82);
}
.sk-btn-secondary {
    background: var(--sk-secondary);
    color: #fff;
}
.sk-btn-secondary:hover {
    background: var(--sk-secondary); filter: brightness(0.82);
}
.sk-btn-outline {
    background: transparent;
    color: #666;
    border: 1px solid #ccc;
}
.sk-btn-outline:hover {
    border-color: var(--sk-primary);
    color: var(--sk-primary);
}
.sk-btn-small {
    padding: 5px 12px;
    font-size: 0.8rem;
    background: #f0f0f0;
    color: #333;
}
.sk-btn-small:hover {
    background: #e0e0e0;
}
.sk-btn-danger {
    background: #dc3545;
    color: #fff;
}
.sk-btn-danger:hover {
    background: #c82333;
}
.sk-btn-success {
    background: #2BA84A;
    color: #fff;
}
.sk-btn-success:hover {
    background: #239b3e;
}

/* --- Form Elements --- */
.sk-input, .sk-select, .sk-textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: border-color 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}
.sk-input:focus, .sk-select:focus, .sk-textarea:focus {
    outline: none;
    border-color: var(--sk-primary);
    box-shadow: 0 0 0 2px rgba(26, 77, 149, 0.1);
}
.sk-form-row {
    margin-bottom: 14px;
}
.sk-form-row label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 4px;
    color: #333;
}
.sk-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.sk-description {
    font-size: 0.82rem;
    color: #888;
    margin: 2px 0 6px;
}
.sk-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.sk-checkbox-group label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 400;
    font-size: 0.85rem;
    padding: 3px 8px;
    border-radius: 4px;
    background: #f5f5f5;
    cursor: pointer;
}
.sk-checkbox-group label:hover {
    background: #e8e8e8;
}

/* --- Loading --- */
.sk-loading {
    text-align: center;
    padding: 40px;
    color: #888;
    font-size: 0.95rem;
}

/* --- Event / Template List --- */
.sk-list-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.sk-list-table th {
    text-align: left;
    padding: 10px 12px;
    background: #f5f7fa;
    border-bottom: 2px solid #e0e0e0;
    font-weight: 600;
    color: #333;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.sk-list-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
}
.sk-list-table tr:hover td {
    background: #fafbfc;
}
.sk-list-table .sk-actions {
    white-space: nowrap;
    display: flex;
    gap: 4px;
}
.sk-list-table .sk-actions button {
    padding: 4px 8px;
    font-size: 0.8rem;
}
.sk-group-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 500;
    margin: 1px 2px;
}
.sk-status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}
.sk-status-publish {
    background: #e8f5e9;
    color: #2e7d32;
}
.sk-status-draft {
    background: #fff3e0;
    color: #e65100;
}
.sk-checklist-progress {
    font-weight: 600;
    font-size: 0.85rem;
}

/* --- Modal --- */
.sk-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 16px;
    overflow-y: auto;
}
.sk-modal {
    background: #fff;
    border-radius: 10px;
    width: 100%;
    max-width: 640px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: sk-modal-in 0.2s ease-out;
}
@keyframes sk-modal-in {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
.sk-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e0e0e0;
}
.sk-modal-header h2 {
    margin: 0;
    font-size: 1.15rem;
    color: var(--sk-primary);
}
.sk-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}
.sk-modal-close:hover {
    color: var(--sk-secondary);
}
.sk-modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}
.sk-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 14px 20px;
    border-top: 1px solid #e0e0e0;
}

/* --- Checklist in form --- */
.sk-checklist {
    margin-bottom: 8px;
}
.sk-checklist-row {
    display: grid;
    grid-template-columns: auto 1fr 110px minmax(140px, 1fr) 32px;
    gap: 6px;
    align-items: center;
    margin-bottom: 6px;
}
.sk-checklist-row input[type="text"],
.sk-checklist-row input[type="date"],
.sk-checklist-row input[type="number"] {
    padding: 6px 8px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: 0.82rem;
    box-sizing: border-box;
    width: 100%;
}
.sk-checklist-row .sk-remove-row {
    background: none;
    border: none;
    color: var(--sk-secondary);
    cursor: pointer;
    font-size: 1.1rem;
}
/* Who field - tag input */
.sk-cl-who-wrap {
    min-width: 0;
}
.sk-who-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    padding: 3px 4px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    background: #fff;
    min-height: 30px;
    cursor: text;
}
.sk-who-tag {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: var(--sk-primary);
    color: #fff;
    border-radius: 3px;
    padding: 1px 6px;
    font-size: 0.78rem;
    white-space: nowrap;
}
.sk-who-tag-x {
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0 1px;
    line-height: 1;
}
.sk-who-tag-x:hover {
    color: #fff;
}
.sk-who-input {
    border: none !important;
    outline: none;
    padding: 2px 4px !important;
    font-size: 0.8rem;
    min-width: 50px;
    flex: 1;
}

/* --- Card (for school year / copy year) --- */
.sk-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
}
.sk-card h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
    color: var(--sk-primary);
}

/* --- School Year Sticky Save Bar --- */
.sk-sticky-save {
    position: sticky;
    bottom: 0;
    background: #fff;
    border-top: 2px solid var(--sk-primary);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    margin: 16px -16px -16px;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
}
.sk-sticky-save .sk-save-hint {
    font-size: 0.82rem;
    color: #888;
}

/* --- School Year Collapsible Section --- */
.sk-sy-section {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
}
.sk-sy-section-header {
    padding: 10px 14px;
    background: #f5f7fa;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}
.sk-sy-section-header:hover {
    background: #eef1f6;
}
.sk-sy-section-header .sk-sy-toggle {
    font-size: 0.8rem;
    color: #999;
    transition: transform 0.2s;
}
.sk-sy-section.collapsed .sk-sy-toggle {
    transform: rotate(-90deg);
}
.sk-sy-section.collapsed .sk-sy-section-body {
    display: none;
}
.sk-sy-section-body {
    padding: 14px;
}

/* --- School Year Group Card --- */
.sk-sy-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
}
.sk-sy-card-header {
    padding: 10px 14px;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.sk-sy-card-header .sk-sy-toggle {
    font-size: 0.8rem;
    opacity: 0.7;
}
.sk-sy-card.collapsed .sk-sy-card-body {
    display: none;
}
.sk-sy-card-body {
    padding: 12px 14px;
    background: #fff;
}
.sk-sy-teacher-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 6px;
    flex-wrap: wrap;
}
.sk-sy-teacher-row select,
.sk-sy-teacher-row input[type="text"] {
    padding: 6px 8px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: 0.85rem;
}
.sk-sy-teacher-row select { min-width: 180px; }
.sk-sy-teacher-row input[type="text"] { flex: 1; min-width: 140px; }

/* --- Toast notification --- */
.sk-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 12px 20px;
    border-radius: 8px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 10001;
    animation: sk-toast-in 0.3s ease-out;
    max-width: 360px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.sk-toast-success { background: #2BA84A; }
.sk-toast-error { background: #dc3545; }
@keyframes sk-toast-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Empty state --- */
.sk-empty {
    text-align: center;
    padding: 40px;
    color: #aaa;
    font-size: 0.95rem;
}

/* --- Login Page (/logowanie) --- */
.sk-login-page {
    max-width: 440px;
    margin: 0 auto;
}
.sk-login-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 6px 30px rgba(0,0,0,0.08);
    overflow: hidden;
}
.sk-login-header {
    text-align: center;
    padding: 28px 24px 18px;
    background: linear-gradient(135deg, #f8f9fb 0%, #eef1f6 100%);
    border-bottom: 1px solid #e8e8e8;
}
.sk-login-logo {
    max-height: 70px;
    width: auto;
    margin-bottom: 12px;
}
.sk-login-header h1 {
    margin: 0;
    font-size: 1.35rem;
    color: var(--sk-primary);
    font-weight: 700;
}
.sk-login-header p {
    margin: 4px 0 0;
    font-size: 0.85rem;
    color: #888;
}
.sk-login-form {
    padding: 24px;
}
.sk-login-field {
    margin-bottom: 16px;
}
.sk-login-field label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    color: #333;
    margin-bottom: 6px;
}
.sk-login-field label i {
    color: var(--sk-primary);
    margin-right: 4px;
    width: 16px;
    text-align: center;
}
.sk-login-field .sk-input {
    padding: 10px 14px;
    font-size: 0.95rem;
}
.sk-login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.85rem;
}
.sk-login-remember {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #555;
    cursor: pointer;
}
.sk-login-forgot {
    color: var(--sk-secondary);
    text-decoration: none;
    font-weight: 500;
}
.sk-login-forgot:hover {
    text-decoration: underline;
}
.sk-login-submit {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    font-weight: 600;
    justify-content: center;
    border-radius: 8px;
}
.sk-login-alert {
    margin: 16px 24px 0;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 500;
}
.sk-login-alert i {
    margin-right: 4px;
}
.sk-login-alert-error {
    background: #fef2f2;
    color: var(--sk-secondary);
    border: 1px solid #f5c6cb;
}
.sk-login-alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}
.sk-login-info {
    text-align: center;
    margin-top: 18px;
    padding: 14px 18px;
    font-size: 0.84rem;
    color: #777;
    line-height: 1.5;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.sk-login-info i {
    color: var(--sk-primary);
    margin-right: 3px;
}
.sk-login-info strong {
    color: var(--sk-primary);
}
.sk-login-info a {
    color: var(--sk-secondary);
    text-decoration: none;
}
.sk-login-info a:hover {
    text-decoration: underline;
}

/* --- Parent Badge --- */
.sk-badge-parent { background: #8E44AD; }

/* --- Students Table --- */
.sk-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.sk-table th {
    text-align: left;
    padding: 10px 12px;
    background: #f5f7fa;
    border-bottom: 2px solid #e0e0e0;
    font-weight: 600;
    color: #333;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.sk-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}
.sk-table tr:hover td {
    background: #fafbfc;
}
.sk-student-group-select {
    padding: 4px 8px;
    font-size: 0.82rem;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    min-width: 120px;
}
.sk-group-select-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}
.sk-group-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}
.sk-btn-inline-add {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 1px 8px;
    margin-left: 6px;
    background: #2BA84A;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    vertical-align: middle;
}
.sk-btn-inline-add:hover {
    background: #239b3e;
}
.sk-parent-created-info {
    margin-top: 8px;
    padding: 8px 12px;
    background: #e8f5e9;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #2e7d32;
}

/* --- Parent Panel: Child Cards --- */
.sk-child-card {
    margin-bottom: 20px;
}
.sk-child-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.sk-child-header h3 {
    margin: 0;
    font-size: 1.15rem;
    color: var(--sk-primary);
}
.sk-badge-group {
    background: var(--sk-primary);
    color: #fff;
    font-size: 0.8rem;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 600;
}
.sk-badge-waiting {
    background: #f0ad4e;
    color: #fff;
    font-size: 0.8rem;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 600;
}
.sk-child-info {
    margin-bottom: 12px;
    color: #555;
    font-size: 0.9rem;
}
.sk-child-info p {
    margin: 4px 0;
}
.sk-child-info i {
    color: var(--sk-primary);
    width: 18px;
    text-align: center;
    margin-right: 4px;
}
.sk-child-teachers {
    margin-bottom: 12px;
}
.sk-child-teachers h4 {
    margin: 0 0 8px;
    font-size: 0.95rem;
    color: #444;
}
.sk-child-teachers ul {
    margin: 0;
    padding-left: 20px;
    line-height: 1.8;
}
.sk-child-teachers .text-muted {
    color: #888;
    font-size: 0.85rem;
}
.sk-badge-small {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 3px;
    background: #eef1f6;
    color: var(--sk-primary);
    font-size: 0.75rem;
    font-weight: 500;
}
.sk-school-whatsapp {
    margin-bottom: 16px;
    padding: 12px 16px;
    background: #f0faf3;
    border-radius: 8px;
    border: 1px solid #25D36640;
}
.sk-child-whatsapp {
    margin-top: 12px;
}
.sk-btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #25D366;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
}
.sk-btn-whatsapp:hover {
    background: #1ebe57;
    color: #fff;
}

/* --- Parent Actions Row --- */
.sk-parent-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 16px;
}
.sk-parent-actions .sk-school-whatsapp {
    margin-bottom: 0;
}
.sk-btn-app-download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--sk-primary, #1A4D95);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
}
.sk-btn-app-download:hover {
    background: var(--sk-secondary, #961A30);
    color: #fff;
}

/* --- Parent Panel: Events Sections --- */
.sk-events-section-title {
    margin: 0 0 12px;
    font-size: 1.1rem;
    color: var(--sk-primary);
}
.sk-past-events-toggle {
    margin: 20px 0 12px;
    text-align: center;
}
.sk-past-events-toggle button {
    gap: 6px;
}
.sk-event-past {
    opacity: 0.6;
}
.sk-event-past:hover {
    opacity: 0.9;
}

/* --- Parent Panel: Events Grid --- */
.sk-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.sk-event-card {
    padding: 16px;
}
.sk-event-card h4 {
    margin: 8px 0 6px;
    color: var(--sk-primary);
    font-size: 1rem;
}
.sk-event-date {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--sk-secondary);
    text-transform: uppercase;
}
.sk-event-time,
.sk-event-location {
    margin: 4px 0;
    font-size: 0.85rem;
    color: #666;
}
.sk-event-time i,
.sk-event-location i {
    width: 16px;
    text-align: center;
    margin-right: 4px;
    color: #999;
}
.sk-event-groups {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.sk-empty-sub {
    font-size: 0.85rem;
    color: #aaa;
    margin-top: 6px;
}

/* --- Past events --- */
.sk-event-past td {
    opacity: 0.55;
}
.sk-event-past:hover td {
    opacity: 0.85;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    /* Reduce top gap on mobile (sticky header is shorter) */
    .panel-section {
        padding-top: 80px !important;
    }

    /* General */
    .sk-panel-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .sk-panel-header h1 {
        font-size: 1.3rem;
    }

    /* Tabs */
    .sk-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .sk-tab {
        padding: 8px 12px;
        font-size: 0.82rem;
        white-space: nowrap;
    }
    .sk-tab i {
        font-size: 0.9rem;
    }

    /* Toolbar */
    .sk-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .sk-toolbar-left,
    .sk-toolbar-right {
        width: 100%;
    }
    .sk-toolbar-right .sk-select {
        flex: 1;
        min-width: 0;
    }

    /* Buttons */
    .sk-btn {
        padding: 7px 12px;
        font-size: 0.84rem;
    }

    /* Forms */
    .sk-form-grid {
        grid-template-columns: 1fr;
    }

    /* Tables → card layout */
    .sk-list-table {
        font-size: 0.84rem;
    }
    .sk-list-table thead {
        display: none;
    }
    .sk-list-table tbody {
        display: block;
    }
    .sk-list-table tbody tr {
        display: block;
        padding: 10px 12px;
        border: 1px solid #e8e8e8;
        border-radius: 8px;
        margin-bottom: 8px;
        background: #fff;
    }
    .sk-list-table tbody tr:hover td {
        background: transparent;
    }
    .sk-list-table td {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 3px 0;
        border: none;
    }
    .sk-list-table td::before {
        content: attr(data-label);
        font-weight: 600;
        font-size: 0.75rem;
        color: #999;
        min-width: 56px;
        flex-shrink: 0;
        text-transform: uppercase;
        letter-spacing: 0.2px;
    }
    .sk-list-table td.sk-actions {
        justify-content: flex-end;
        padding-top: 6px;
        margin-top: 4px;
        border-top: 1px solid #f0f0f0;
    }
    .sk-list-table td.sk-actions::before {
        display: none;
    }

    /* Students table mobile → card layout */
    .sk-table thead {
        display: none;
    }
    .sk-table tbody tr {
        display: block;
        padding: 10px 12px;
        border: 1px solid #e8e8e8;
        border-radius: 8px;
        margin-bottom: 8px;
        background: #fff;
    }
    .sk-table td {
        display: block;
        padding: 3px 0;
        border: none;
    }

    /* Events grid single column */
    .sk-events-grid {
        grid-template-columns: 1fr;
    }

    /* Child card */
    .sk-child-header {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Hide less important event columns on mobile */
    #events-list .sk-list-table td[data-label="Typ"],
    #events-list .sk-list-table td[data-label="Zadania"],
    #events-list .sk-list-table td[data-label="Dodał"] {
        display: none;
    }

    /* Past events on mobile */
    .sk-event-past {
        border-left: 3px solid #ccc !important;
    }

    /* School year cards */
    .sk-card {
        padding: 14px;
    }
    .sk-card h3 {
        font-size: 1rem;
    }
    .sk-sy-card-header {
        font-size: 0.88rem;
        padding: 8px 12px;
    }
    .sk-sy-card-body {
        padding: 10px 12px;
    }
    .sk-sy-teacher-row {
        gap: 6px;
    }
    .sk-sy-teacher-row select {
        min-width: 0 !important;
        flex: 1;
        font-size: 0.82rem;
    }
    .sk-sy-teacher-row input[type="text"] {
        min-width: 0 !important;
        flex: 1;
        font-size: 0.82rem;
    }
    .sk-sy-teacher-row .sk-sy-remove {
        flex-shrink: 0;
    }

    /* Rada rows mobile */
    .sk-rada-row {
        flex-wrap: wrap !important;
    }
    .sk-rada-row .sk-input {
        min-width: 0 !important;
    }

    /* Users table hide email on mobile */
    #users-table td[data-label="E-mail"] {
        display: none;
    }

    /* Modal */
    .sk-modal {
        max-width: 100%;
        margin: 0;
    }
    .sk-modal-overlay {
        padding: 16px 8px;
    }
    .sk-modal-body {
        max-height: 70vh;
    }

    /* Checklist rows */
    .sk-checklist-row {
        grid-template-columns: auto 1fr 32px;
    }
    .sk-checklist-row input[type="date"],
    .sk-cl-who-wrap {
        grid-column: 2;
    }
}

/* --- Help Tab --- */
.sk-help-toc { background: #f0f4fa; border-left: 4px solid var(--sk-primary); padding: 16px 20px; border-radius: 0 8px 8px 0; margin-bottom: 24px; }
.sk-help-toc ol { margin: 8px 0 0 20px; }
.sk-help-toc a { color: var(--sk-primary); text-decoration: none; }
.sk-help-toc a:hover { color: var(--sk-secondary); }
.sk-help-section { margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid #f0f0f0; }
.sk-help-section:last-child { border-bottom: none; margin-bottom: 0; }
.sk-help-section h3 { color: var(--sk-primary); margin-top: 0; font-size: 1.1rem; }
.sk-help-section ul, .sk-help-section ol { padding-left: 20px; line-height: 1.8; }
.sk-help-section code { background: #f0f4fa; padding: 1px 6px; border-radius: 3px; font-size: 0.88em; }
.sk-help-code { display: block; padding: 10px; background: #f5f5f5; border-radius: 4px; word-break: break-all; margin-bottom: 8px; font-size: 0.88em; }
.sk-help-note { background: #fef9e7; padding: 10px 14px; border-radius: 6px; border-left: 3px solid #F18F01; }

/* =====================================================================
   Polls v2 — Mobile-first styles
   ===================================================================== */

/* --- Staff Poll Cards (mobile-first: 1 column) --- */
.sk-polls-grid { display: flex; flex-direction: column; gap: 16px; }
.sk-poll-card { border-left: 4px solid var(--sk-primary); }
.sk-poll-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; gap: 8px; }
.sk-poll-card-header h3 { margin: 0; font-size: 1.05rem; flex: 1; }
.sk-poll-status { display: inline-block; padding: 3px 12px; border-radius: 12px; font-size: 0.8rem; font-weight: 600; white-space: nowrap; }
.sk-poll-open { background: #d4edda; color: #155724; }
.sk-poll-closed { background: #f8d7da; color: #721c24; }
.sk-poll-card-meta { font-size: 0.88rem; color: #555; margin-bottom: 10px; }
.sk-poll-card-meta p { margin: 3px 0; }
.sk-poll-card-meta i { width: 18px; text-align: center; color: #888; }
.sk-poll-card-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* --- Question Builder (Staff Modal) --- */
.sk-modal-wide { max-width: 800px; width: 95vw; }
.sk-form-inline { display: flex; gap: 20px; flex-wrap: wrap; }
.sk-form-inline label { display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: 0.95rem; }
.sk-chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.sk-chip-label { cursor: pointer; }
.sk-chip-label input { display: none; }
.sk-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 18px; border-radius: 10px; font-size: 0.95rem; font-weight: 600; border: 3px solid transparent; background: color-mix(in srgb, var(--chip-color, #666) 15%, #fff); color: var(--chip-color, #666); transition: all 0.2s; min-height: 42px; }
.sk-chip-label input:checked + .sk-chip { background: var(--chip-color, var(--sk-primary)); color: #fff; border-color: color-mix(in srgb, var(--chip-color, var(--sk-primary)) 70%, #000); box-shadow: 0 2px 8px rgba(0,0,0,0.15); }

.sk-question-card { border: 2px solid #d0d5dd; border-radius: 12px; padding: 0; margin-bottom: 16px; background: #f8f9fb; overflow: hidden; }

/* Collapsible header bar */
.sk-question-collapse-header { display: flex; align-items: center; gap: 8px; padding: 12px 16px; cursor: pointer; background: #edf0f5; -webkit-tap-highlight-color: transparent; }
.sk-question-num { font-weight: 700; font-size: 0.85rem; color: var(--sk-primary, #4a6cf7); white-space: nowrap; }
.sk-question-preview { flex: 1; font-size: 0.9rem; color: #444; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sk-question-meta { font-size: 0.8rem; color: #888; white-space: nowrap; }
.sk-question-toggle-icon { font-size: 0.8rem; color: #999; transition: transform 0.3s; }
.sk-question-open .sk-question-toggle-icon { transform: rotate(180deg); }
.sk-question-open .sk-question-collapse-header { background: #dce1ea; }

/* Collapsible body */
.sk-question-body { display: none; padding: 16px; }
.sk-question-open .sk-question-body { display: block; }

.sk-question-header { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.sk-question-header .sk-input { flex: 1; font-weight: 600; font-size: 1rem; padding: 10px 12px; }
.sk-question-type { display: flex; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.sk-radio-label { display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: 0.92rem; padding: 6px 12px; background: #fff; border: 1px solid #ddd; border-radius: 8px; transition: all 0.15s; }
.sk-radio-label:has(input:checked) { background: var(--sk-primary, #4a6cf7); color: #fff; border-color: var(--sk-primary, #4a6cf7); }
.sk-radio-label input { accent-color: #fff; }
.sk-label-small { font-size: 0.85rem; font-weight: 600; color: #555; margin-bottom: 6px; display: block; }
.sk-question-options { margin-bottom: 10px; }

/* Option card — mobile-first, stacked layout */
.sk-option-card { background: #fff; border: 1px solid #d0d5dd; border-radius: 10px; padding: 12px; margin-bottom: 10px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.sk-question-desc, .sk-option-desc { font-size: 0.9rem; margin-top: 6px; resize: vertical; min-height: 32px; }
.sk-option-desc { margin-top: 4px; font-size: 0.85rem; }
.sk-opt-row { display: flex; gap: 8px; align-items: center; }
.sk-opt-row + .sk-opt-row { margin-top: 8px; }
.sk-opt-row .sk-option-text { flex: 1; min-width: 0; font-size: 1rem; font-weight: 500; padding: 10px 12px; }
.sk-opt-img-row { flex-wrap: wrap; }
.sk-opt-img-row .sk-option-image { flex: 1; min-width: 0; font-size: 0.88rem; padding: 8px 10px; color: #666; }
.sk-option-preview { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; flex-shrink: 0; border: 1px solid #ddd; }
.sk-upload-btn { flex-shrink: 0; font-size: 0.85rem !important; padding: 8px 14px !important; cursor: pointer; white-space: nowrap; border-radius: 8px !important; }
.sk-opt-price-wrap { display: flex; align-items: center; gap: 6px; }
.sk-opt-price-label { font-size: 0.9rem; color: #555; font-weight: 500; white-space: nowrap; }
.sk-opt-price-currency { font-size: 0.95rem; font-weight: 600; color: #555; }
.sk-option-price { width: 90px !important; flex: 0 0 auto !important; text-align: right; padding: 8px 10px; font-size: 1rem; }
/* Question images — builder thumbnails */
.sk-q-images { margin-bottom: 12px; }
.sk-q-images-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.sk-q-img-thumb { position: relative; width: 72px; height: 72px; border-radius: 10px; overflow: hidden; border: 1px solid #ddd; }
.sk-q-img-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sk-q-img-remove { position: absolute; top: 2px; right: 2px; background: rgba(0,0,0,0.55); color: #fff; border: none; border-radius: 50%; width: 22px; height: 22px; font-size: 0.7rem; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.sk-q-img-add { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px !important; border-style: dashed !important; border-width: 2px !important; border-radius: 8px !important; font-size: 0.88rem !important; cursor: pointer; }
.sk-uploading { opacity: 0.6; pointer-events: none; }

/* Question images — parent vote display */
.sk-vote-question-images { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.sk-vote-question-img { max-width: 100%; max-height: 200px; border-radius: 10px; object-fit: cover; border: 1px solid #ddd; }
@media (min-width: 480px) {
    .sk-vote-question-img { max-width: 48%; }
}

.sk-btn-icon { border: none; background: none; cursor: pointer; padding: 4px 8px; color: var(--sk-danger, #dc3545); font-size: 1rem; }
.sk-btn-icon:hover { opacity: 0.7; }
.sk-btn-block { width: 100%; }
.sk-btn-lg { padding: 14px 20px; font-size: 1.05rem; }
.sk-hidden { display: none !important; }
.sk-add-option { margin-top: 6px; width: 100%; padding: 10px !important; border-style: dashed !important; border-width: 2px !important; font-size: 0.92rem !important; }
.sk-remove-question { flex-shrink: 0; }

/* --- Results: Summary header --- */
.sk-res-summary { display: flex; justify-content: center; gap: 24px; padding: 16px 0; margin-bottom: 8px; }
.sk-res-stat { text-align: center; }
.sk-res-stat-num { font-size: 2rem; font-weight: 800; line-height: 1.1; }
.sk-res-stat-voted { color: #28a745; }
.sk-res-stat-missing { color: #dc3545; }
.sk-res-stat-label { font-size: 0.8rem; color: #888; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }
.sk-res-progress { height: 8px; background: #e9ecef; border-radius: 4px; overflow: hidden; margin-bottom: 24px; }
.sk-res-progress-fill { height: 100%; border-radius: 4px; transition: width 0.5s ease; }

/* --- Results: Per-question chart --- */
.sk-res-question { margin-bottom: 24px; background: #f8f9fa; border-radius: 12px; padding: 16px; }
.sk-res-q-header { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.sk-res-q-num { background: var(--sk-primary); color: #fff; font-size: 0.75rem; font-weight: 700; padding: 2px 8px; border-radius: 10px; white-space: nowrap; }
.sk-res-q-text { font-weight: 600; font-size: 1rem; flex: 1; }
.sk-res-q-type { font-size: 0.75rem; color: #888; background: #e9ecef; padding: 2px 8px; border-radius: 10px; }
.sk-res-options { display: flex; flex-direction: column; gap: 10px; }
.sk-res-opt-label { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.sk-res-opt-text { font-size: 0.95rem; font-weight: 500; flex: 1; }
.sk-res-opt-price { font-size: 0.85rem; color: var(--sk-primary); font-weight: 600; }
.sk-res-opt-bar-row { display: flex; align-items: center; gap: 8px; }
.sk-res-opt-bar { flex: 1; height: 22px; background: #e9ecef; border-radius: 6px; overflow: hidden; }
.sk-res-opt-bar-fill { height: 100%; border-radius: 6px; transition: width 0.4s ease; min-width: 2px; }
.sk-res-opt-count { font-weight: 700; font-size: 0.95rem; min-width: 24px; text-align: right; }
.sk-res-opt-pct { font-size: 0.8rem; color: #888; min-width: 36px; text-align: right; }

/* --- Results: Collapsible sections --- */
.sk-res-section { margin-top: 20px; border: 1px solid #e0e0e0; border-radius: 12px; overflow: hidden; }
.sk-res-section-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: #f8f9fa; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; }
.sk-res-section-header h4 { margin: 0; font-size: 0.95rem; display: flex; align-items: center; gap: 8px; }
.sk-res-toggle-icon { color: #999; font-size: 0.85rem; transition: transform 0.2s; }
.sk-res-section-body { padding: 12px 16px; }

/* --- Results: Voter cards --- */
.sk-res-voter { padding: 10px 14px; background: #fff; border-radius: 8px; border-left: 3px solid var(--sk-primary); margin-bottom: 8px; }
.sk-res-voter-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sk-res-voter-parent { font-size: 0.85rem; color: #888; }
.sk-res-voter-cost { margin-left: auto; font-weight: 700; color: var(--sk-primary); font-size: 0.95rem; white-space: nowrap; }
.sk-res-voter-answer { font-size: 0.85rem; margin-top: 6px; color: #555; }
.sk-res-voter-q { color: #888; }
.sk-res-voter-chip { display: inline-block; background: #e8f0fe; padding: 2px 8px; border-radius: 10px; font-size: 0.8rem; margin: 1px 2px; }
.sk-res-total-cost { margin-top: 12px; padding: 10px 14px; background: #e8f5e9; border-radius: 8px; font-size: 0.95rem; display: flex; align-items: center; gap: 8px; }

/* --- Results: Not voted --- */
.sk-res-notvoted-grid { display: flex; flex-direction: column; gap: 6px; }
.sk-res-notvoted-item { display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: #fff5f5; border-radius: 8px; font-size: 0.9rem; }
.sk-res-notvoted-item i { color: #dc3545; font-size: 0.85rem; }

/* legacy compat */
.sk-progress-bar { height: 10px; background: #e9ecef; border-radius: 5px; overflow: hidden; }
.sk-progress-fill { height: 100%; background: var(--sk-primary); border-radius: 5px; transition: width 0.3s; }

/* --- Polls under child card --- */
.sk-child-polls { margin-top: 16px; padding-top: 14px; border-top: 1px solid #e0e0e0; }
.sk-child-polls-title { margin: 0 0 10px; font-size: 0.95rem; color: #555; font-weight: 600; }

/* --- Parent Poll Cards (mobile-first) --- */
.sk-poll-parent-card { border-left: 4px solid var(--sk-secondary, #1A4D95); margin-bottom: 12px; padding: 12px 14px; border-radius: 10px; background: #f8f9fa; }

/* Accordion header */
.sk-poll-accordion-header { display: flex; flex-direction: column; gap: 6px; cursor: pointer; -webkit-tap-highlight-color: transparent; padding: 0; position: relative; }
.sk-poll-accordion-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sk-poll-card-title { margin: 0; font-size: 1rem; font-weight: 600; flex: 1; }
.sk-poll-accordion-icon { position: absolute; right: 0; top: 4px; font-size: 0.85rem; color: #999; transition: transform 0.3s; }
.sk-poll-expanded .sk-poll-accordion-icon { transform: rotate(180deg); }
.sk-poll-voted-badge { background: #d4edda; color: #155724; font-size: 0.8rem; font-weight: 600; padding: 3px 10px; border-radius: 14px; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.sk-poll-needs-vote { background: #fff3cd; color: #856404; font-size: 0.8rem; font-weight: 600; padding: 3px 10px; border-radius: 14px; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }

/* Accordion body (collapsed by default) */
.sk-poll-accordion-body { display: none; padding-top: 0; }
.sk-poll-expanded .sk-poll-accordion-body { display: block; padding-top: 14px; }

/* Deadline — big, red, with days remaining */
.sk-poll-deadline-big { font-size: 1rem; font-weight: 600; color: #c0392b; margin: 4px 0 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sk-poll-deadline-big i { font-size: 0.95rem; }
.sk-poll-days-left { display: inline-block; background: #fdecea; color: #c0392b; padding: 2px 10px; border-radius: 12px; font-size: 0.85rem; font-weight: 700; }
.sk-poll-deadline-urgent .sk-poll-days-left { background: #c0392b; color: #fff; animation: sk-pulse-deadline 1.5s ease-in-out infinite; }
.sk-poll-deadline-expired { opacity: 0.6; }
.sk-poll-deadline-expired .sk-poll-days-left { background: #999; color: #fff; }
@keyframes sk-pulse-deadline { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } }

.sk-poll-child-section { margin-bottom: 4px; }
.sk-poll-child-section h4 { margin: 0 0 12px; font-size: 1rem; color: var(--sk-primary); }

/* --- Vote Form (mobile-first, large touch targets) --- */
.sk-vote-question { margin-bottom: 20px; }
.sk-vote-question-text { font-size: 1.05rem; font-weight: 600; margin: 0 0 4px; color: #222; }
.sk-vote-question-desc { font-size: 0.9rem; color: #555; margin: 0 0 6px; line-height: 1.4; }
.sk-vote-opt-desc { display: block; font-size: 0.82rem; color: #777; font-weight: 400; margin-top: 2px; line-height: 1.3; }
.sk-vote-question-img { max-width: 100%; max-height: 200px; border-radius: 10px; margin: 6px 0; object-fit: cover; }
.sk-vote-question-price { font-weight: 700; color: var(--sk-primary); font-size: 0.95rem; margin: 0 0 4px; }
.sk-vote-question-hint { font-size: 0.85rem; color: #888; margin: 0 0 10px; font-style: italic; }
.sk-vote-options { display: flex; flex-direction: column; gap: 8px; }

.sk-vote-option { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #fff; border: 2px solid #e0e0e0; border-radius: 10px; cursor: pointer; transition: all 0.15s; min-height: 48px; -webkit-tap-highlight-color: transparent; }
.sk-vote-option:hover { border-color: var(--sk-primary); background: #f0f4fa; }
.sk-vote-option:has(input:checked) { border-color: var(--sk-primary); background: #e8f0fe; }
.sk-vote-option input { width: 20px; height: 20px; flex-shrink: 0; accent-color: var(--sk-primary); }
.sk-vote-option-body { display: flex; align-items: center; gap: 10px; flex: 1; }
.sk-vote-option-img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.sk-vote-option-text { flex: 1; font-size: 1rem; }
.sk-vote-option-price { font-weight: 700; color: var(--sk-primary); white-space: nowrap; font-size: 0.95rem; }

.sk-poll-total-live { font-size: 1.1rem; font-weight: 700; color: var(--sk-primary); margin: 10px 0; padding: 8px 0; border-top: 1px solid #e0e0e0; }

/* --- Voted state --- */
.sk-poll-voted { margin-top: 6px; background: #f0faf2; border-radius: 10px; padding: 14px; border: 1px solid #c8e6c9; }
.sk-voted-header { color: #155724; font-weight: 700; font-size: 0.95rem; margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.sk-voted-q { margin-bottom: 12px; }
.sk-voted-q:last-of-type { margin-bottom: 0; }
.sk-voted-q-title { font-size: 0.85rem; color: #666; font-weight: 600; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.3px; }
.sk-voted-options { display: flex; flex-direction: column; gap: 4px; }
.sk-voted-opt-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; background: #fff; border-radius: 8px; }
.sk-voted-opt-name { font-size: 0.95rem; color: #2e7d32; display: flex; align-items: center; gap: 6px; }
.sk-voted-opt-name i { font-size: 0.75rem; color: #43a047; }
.sk-voted-opt-price { font-weight: 700; color: var(--sk-primary); font-size: 0.95rem; white-space: nowrap; }
.sk-voted-total { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding: 10px 12px; background: #fff; border-radius: 8px; border-top: 2px solid #c8e6c9; font-weight: 600; font-size: 1rem; }
.sk-voted-total-val { font-weight: 800; color: var(--sk-primary); font-size: 1.1rem; }
.sk-poll-voted .sk-btn-outline { margin-top: 14px; background: #fff; border: 2px solid #90caf9; color: #1565c0; font-weight: 600; }
.sk-poll-voted .sk-btn-outline:hover { background: #e3f2fd; border-color: #1565c0; }
.sk-poll-closed-msg { color: #721c24; font-style: italic; }

/* --- Read-only detail view --- */
.sk-voted-detail { margin-top: 12px; }
.sk-voted-detail-q { margin-bottom: 16px; }
.sk-vote-option-readonly { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #f5f5f5; border: 2px solid #e0e0e0; border-radius: 10px; min-height: 48px; cursor: default; }
.sk-vote-option-chosen { background: #e8f5e9; border-color: #66bb6a; }
.sk-voted-detail-check { color: #43a047; font-size: 1.1rem; flex-shrink: 0; }
.sk-voted-detail-unchecked { color: #ccc; font-size: 1.1rem; flex-shrink: 0; }
.sk-btn-view-details { margin-top: 14px; background: #fff; border: 2px solid #bbb; color: #555; font-weight: 600; }
.sk-btn-view-details:hover { background: #f5f5f5; border-color: #888; }

/* --- Lightbox --- */
.sk-lightbox { display: none; position: fixed; inset: 0; z-index: 99999; background: rgba(0,0,0,0.85); align-items: center; justify-content: center; padding: 16px; }
.sk-lightbox.sk-lightbox-open { display: flex; }
.sk-lightbox img { max-width: 100%; max-height: 90vh; object-fit: contain; border-radius: 8px; }
.sk-lightbox-close { position: absolute; top: 12px; right: 16px; background: none; border: none; color: #fff; font-size: 2.2rem; cursor: pointer; line-height: 1; padding: 4px 10px; }
.sk-vote-question-img, .sk-vote-option-img { cursor: zoom-in; }

/* --- Desktop (grid for staff cards) --- */
@media (min-width: 768px) {
    .sk-polls-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
    .sk-option-row { flex-wrap: nowrap; }
    .sk-question-body { padding: 18px; }
}
