/* ========================================================================
   Clinic Audit Widget — Design System & Styles
   ======================================================================== */

/* ── CSS Variables (Design Tokens) ───────────────────────────────────── */
:root {
    /* Primary Colors - Blue Palette */
    --blue-900: #0f4f7f;
    --blue-700: #1875bb;
    --blue-500: #56b2e4;

    /* Secondary Colors */
    --gold-500: #f3ac40;
    --green-500: #2DBE7B;
    --green-600: #28a745;
    --red-500: #D94A4A;
    --red-600: #dc3545;
    --gray-500: #6c757d;

    /* Backgrounds */
    --bg-cream: #f4f8fb;
    --bg-panel: #ffffff;

    /* Typography */
    --text-dark: #0f1f2f;
    --text-muted: #5f6d7b;

    /* Borders & Shadows */
    --border-soft: #e3edf7;
    --shadow-soft: 0 16px 45px rgba(15, 31, 47, 0.08);
    --shadow-button: rgb(139, 139, 139) 1px 1px 2px 0;

    /* Border Radius */
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --radius-xs: 8px;

    /* Font */
    --font-family: 'Raleway', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --font-size-xs: 11px;
    --font-size-sm: 12px;
    --font-size-base: 13px;
    --font-size-md: 14px;
    --font-size-lg: 16px;
    --font-size-xl: 18px;

    /* Transitions */
    --transition-fast: 0.15s ease-in-out;
    --transition-base: 0.2s ease-in-out;
    --transition-slow: 0.3s ease;

    /* Z-index layers */
    --z-base: 1;
    --z-dropdown: 100;
    --z-modal: 1000;
    --z-toast: 2000;
    --z-camera: 3000;
    --z-preflight: 9999;

    /* Status Colors */
    --status-pending: #f5c72f;
    --status-in-progress: #168aef;
    --status-completed: #25b52a;

    /* Badge Colors */
    --badge-excellent: #25b52a;
    --badge-very-good: #168aef;
    --badge-good: #ffda62;
    --badge-needs-improvement: #f27e22;
    --badge-insufficient: #eb4d4d;

    /* Category Colors */
    --cat-pre-operation: #1875bb;
    --cat-on-operation: #f3ac40;
    --cat-post-operation: #2DBE7B;
    --cat-sterilization: #8e9df0;
    --cat-storage-layout: #75d6d1;
}

/* ── Reset & Base ────────────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-md);
    color: var(--text-dark);
    background-color: var(--bg-cream);
    margin: 0;
    padding: 0;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* ── Preflight Overlay ───────────────────────────────────────────────── */
#preflight-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-cream);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: var(--z-preflight);
    transition: opacity var(--transition-slow);
}

#preflight-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.preflight-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border-soft);
    border-top-color: var(--blue-500);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 16px;
}

.preflight-message {
    font-size: var(--font-size-lg);
    color: var(--text-muted);
    text-align: center;
    padding: 0 24px;
}

.preflight-error .preflight-spinner {
    display: none;
}

.preflight-error-icon {
    display: none;
    font-size: 48px;
    color: var(--red-500);
    margin-bottom: 16px;
}

.preflight-error .preflight-error-icon {
    display: block;
}

.preflight-error .preflight-message {
    color: var(--red-500);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ── App Root ────────────────────────────────────────────────────────── */
#app-root {
    max-width: 640px;
    margin: 0 auto;
    padding: 16px;
}

#app-root.preflight-hidden {
    display: none;
}

/* ── Main Panel ──────────────────────────────────────────────────────── */
.main-panel {
    background: var(--bg-panel);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 24px;
    margin-bottom: 16px;
}

/* ── Info Card (Header) ──────────────────────────────────────────────── */
.info-card {
    margin-bottom: 0;
}

.info-card-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--blue-900);
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-card-title i {
    color: var(--blue-500);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    background: var(--bg-cream);
    border-radius: var(--radius-xs);
}

.info-item.full-width {
    grid-column: 1 / -1;
}

.info-item-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: var(--font-size-md);
    background: var(--blue-500);
    color: #fff;
}

.info-item-content {
    flex: 1;
    min-width: 0;
}

.info-item-label {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.info-item-value {
    font-size: var(--font-size-md);
    font-weight: 600;
    color: var(--text-dark);
    word-break: break-word;
}

/* ── Badges ──────────────────────────────────────────────────────────── */
.badge-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: #fff;
}

.badge-category {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: #fff;
}

.badge-monthly {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: var(--font-size-md);
    font-weight: 700;
    color: #fff;
}

.location-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

.location-badge.verified {
    color: var(--green-500);
}

.location-badge.not-verified {
    color: var(--red-500);
}

/* ── Progress Bar ────────────────────────────────────────────────────── */
.progress-section {
    margin-bottom: 20px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.progress-text {
    font-size: var(--font-size-md);
    font-weight: 600;
    color: var(--text-dark);
}

.progress-bar-track {
    width: 100%;
    height: 10px;
    background: var(--border-soft);
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--blue-500);
    border-radius: 5px;
    transition: width var(--transition-slow);
    min-width: 0;
}

/* ── Step Wizard ─────────────────────────────────────────────────────── */
#wizard-section {
    display: none;
}

.step-card {
    display: none;
    animation: fadeIn var(--transition-slow);
}

.step-card.active {
    display: block;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--blue-500);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--font-size-lg);
    flex-shrink: 0;
}

.step-title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--text-dark);
}

.step-description {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    line-height: 1.6;
    padding: 10px 14px;
    background: var(--bg-cream);
    border-radius: var(--radius-xs);
    border-left: 3px solid var(--blue-500);
    margin-bottom: 16px;
}

/* Step extras (photo + notes) — hidden until verdict selected */
.step-extras {
    animation: fadeIn var(--transition-slow);
}

/* Note field */
.note-field {
    margin-top: 12px;
}

.note-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.note-optional {
    font-weight: 400;
    color: var(--text-muted);
}

.note-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-xs);
    font-family: var(--font-family);
    font-size: var(--font-size-md);
    color: var(--text-dark);
    background: var(--bg-panel);
    resize: vertical;
    transition: border-color var(--transition-base);
}

.note-input:focus {
    outline: none;
    border-color: var(--blue-500);
}

.note-input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

/* Photo area */
.photo-area {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #eef3f8;
    border-radius: var(--radius-sm);
    border: 2px dashed var(--border-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 16px;
    cursor: pointer;
    transition: border-color var(--transition-base);
}

.photo-area:hover {
    border-color: var(--blue-500);
}

.photo-area.has-photo {
    border-style: solid;
    border-color: var(--green-500);
    cursor: default;
}

.photo-placeholder {
    text-align: center;
    color: var(--text-muted);
}

.photo-placeholder i {
    font-size: 48px;
    margin-bottom: 8px;
    color: var(--blue-500);
    display: block;
}

.photo-placeholder span {
    font-size: var(--font-size-md);
    font-weight: 600;
}

.photo-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.photo-area.has-photo .photo-placeholder {
    display: none;
}

.photo-area.has-photo .photo-preview {
    display: block;
}

.photo-upload-spinner {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    z-index: 2;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.photo-upload-spinner.active {
    display: flex;
}

.photo-upload-spinner .spinner-icon {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border-soft);
    border-top-color: var(--blue-500);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 8px;
}

.photo-upload-spinner span {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

.btn-retake {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    border-radius: var(--radius-xs);
    padding: 6px 12px;
    font-size: var(--font-size-sm);
    font-weight: 600;
    cursor: pointer;
    z-index: 1;
    display: none;
    font-family: var(--font-family);
}

.photo-area.has-photo .btn-retake {
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-retake:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Pass / Fail buttons */
.verdict-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.btn-verdict {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    border: 2px solid var(--border-soft);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-lg);
    font-weight: 700;
    font-family: var(--font-family);
    cursor: pointer;
    transition: all var(--transition-base);
    background: var(--bg-panel);
    color: var(--text-muted);
}

.btn-verdict:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-verdict.btn-pass {
    border-color: var(--border-soft);
}

.btn-verdict.btn-pass:not(:disabled):hover,
.btn-verdict.btn-pass.selected {
    background: var(--green-500);
    border-color: var(--green-500);
    color: #fff;
}

.btn-verdict.btn-fail {
    border-color: var(--border-soft);
}

.btn-verdict.btn-fail:not(:disabled):hover,
.btn-verdict.btn-fail.selected {
    background: var(--red-500);
    border-color: var(--red-500);
    color: #fff;
}

/* Step navigation */
.step-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.btn-step {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-xs);
    font-size: var(--font-size-md);
    font-weight: 600;
    font-family: var(--font-family);
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-step:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-back {
    background: var(--bg-cream);
    color: var(--text-dark);
}

.btn-back:not(:disabled):hover {
    background: var(--border-soft);
}

.btn-next {
    background: var(--blue-500);
    color: #fff;
    margin-left: auto;
}

.btn-next:not(:disabled):hover {
    background: var(--blue-700);
}

/* ── Signature Pad ───────────────────────────────────────────────────── */
.signature-block {
    margin-bottom: 16px;
}

.signature-label {
    font-size: var(--font-size-md);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.signature-label i {
    color: var(--blue-500);
}

.signature-pad-wrapper {
    position: relative;
    border: 2px solid var(--border-soft);
    border-radius: var(--radius-xs);
    background: #fff;
    overflow: hidden;
}

.signature-pad-wrapper.signed {
    border-color: var(--green-500);
}

.signature-canvas {
    display: block;
    width: 100%;
    height: 150px;
    cursor: crosshair;
    touch-action: none;
}

.btn-clear-signature {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    border-radius: var(--radius-xs);
    padding: 4px 10px;
    font-size: var(--font-size-xs);
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-family);
    display: none;
}

.signature-pad-wrapper.signed .btn-clear-signature {
    display: block;
}

.btn-clear-signature:hover {
    background: rgba(0, 0, 0, 0.7);
}

.signature-hint {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    text-align: center;
    padding: 4px;
}

.signature-pad-wrapper.signed .signature-hint {
    display: none;
}

/* ── Submit Section ──────────────────────────────────────────────────── */
#submit-section {
    display: none;
}

.summary-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-soft);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    flex-shrink: 0;
}

.summary-item-name {
    flex: 1;
    font-weight: 600;
    font-size: var(--font-size-md);
}

.summary-item-result {
    font-size: 20px;
    flex-shrink: 0;
}

.summary-item-thumb {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-xs);
    object-fit: cover;
    flex-shrink: 0;
    cursor: pointer;
}

.btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px;
    background: var(--green-500);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-lg);
    font-weight: 700;
    font-family: var(--font-family);
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-submit:hover {
    background: var(--green-600);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-submit .spinner-icon {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ── Success Screen ──────────────────────────────────────────────────── */
#success-section {
    display: none;
}

.success-content {
    text-align: center;
    padding: 32px 16px;
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--green-500);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 16px;
}

.success-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.success-message {
    font-size: var(--font-size-md);
    color: var(--text-muted);
}

/* ── Completed View ──────────────────────────────────────────────────── */
#completed-section {
    display: none;
}

.score-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
    border-radius: var(--radius-md);
    color: #fff;
    margin-bottom: 20px;
}

.score-value {
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
}

.score-label {
    font-size: var(--font-size-sm);
    opacity: 0.8;
    margin-bottom: 4px;
}

.score-badge-label {
    font-size: var(--font-size-sm);
    opacity: 0.8;
    margin-top: 8px;
}

.checklist-title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.checklist-table {
    width: 100%;
    border-collapse: collapse;
}

.checklist-table th {
    text-align: left;
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    padding: 8px 10px;
    border-bottom: 2px solid var(--border-soft);
}

.checklist-table td {
    padding: 10px;
    border-bottom: 1px solid var(--border-soft);
    font-size: var(--font-size-md);
    vertical-align: middle;
}

.checklist-table tr.passed {
    background: rgba(45, 190, 123, 0.06);
}

.checklist-table tr.failed {
    background: rgba(217, 74, 74, 0.06);
}

.checklist-table .result-icon {
    font-size: 20px;
}

.checklist-table .result-icon.pass {
    color: var(--green-500);
}

.checklist-table .result-icon.fail {
    color: var(--red-500);
}

.checklist-thumb {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-xs);
    object-fit: cover;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.checklist-thumb:hover {
    transform: scale(1.1);
}

/* ── Camera Modal (Fullscreen) ───────────────────────────────────────── */
#camera-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: var(--z-camera);
    flex-direction: column;
}

#camera-modal.active {
    display: flex;
}

.camera-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
}

.camera-title {
    font-size: var(--font-size-md);
    font-weight: 600;
}

.btn-camera-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

.camera-body {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#camera-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#camera-canvas {
    display: none;
}

.camera-captured {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.camera-captured.active {
    display: block;
}

.camera-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 16px 24px;
    background: rgba(0, 0, 0, 0.7);
}

.btn-capture {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 4px solid #fff;
    background: transparent;
    cursor: pointer;
    position: relative;
    transition: all var(--transition-fast);
}

.btn-capture::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    border-radius: 50%;
    background: #fff;
    transition: all var(--transition-fast);
}

.btn-capture:hover::after {
    background: var(--red-500);
}

.btn-capture:active {
    transform: scale(0.9);
}

.btn-camera-action {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-xs);
    font-size: var(--font-size-md);
    font-weight: 600;
    font-family: var(--font-family);
    cursor: pointer;
}

.btn-camera-retake {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.btn-camera-retake:hover {
    background: rgba(255, 255, 255, 0.3);
}

.btn-camera-use {
    background: var(--green-500);
    color: #fff;
}

.btn-camera-use:hover {
    background: var(--green-600);
}

/* Camera states */
.camera-controls-capture {
    display: flex;
}

.camera-controls-review {
    display: none;
}

#camera-modal.review-mode .camera-controls-capture {
    display: none;
}

#camera-modal.review-mode .camera-controls-review {
    display: flex;
    gap: 16px;
}

#camera-modal.review-mode #camera-video {
    display: none;
}

#camera-modal.review-mode .camera-captured {
    display: block;
}

/* ── Photo Lightbox ──────────────────────────────────────────────────── */
#lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: var(--z-modal);
    align-items: center;
    justify-content: center;
}

#lightbox-modal.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    z-index: 1;
}

#lightbox-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: var(--radius-xs);
}

/* ── Toast Notification ──────────────────────────────────────────────── */
.toast-container {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 360px;
    width: calc(100% - 32px);
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-panel);
    border-radius: var(--radius-xs);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: slideIn var(--transition-slow);
    border-left: 4px solid var(--text-muted);
}

.toast.toast-error {
    border-left-color: var(--red-500);
}

.toast.toast-success {
    border-left-color: var(--green-500);
}

.toast-icon {
    font-size: var(--font-size-lg);
    flex-shrink: 0;
}

.toast-error .toast-icon {
    color: var(--red-500);
}

.toast-success .toast-icon {
    color: var(--green-500);
}

.toast-message {
    flex: 1;
    font-size: var(--font-size-sm);
    color: var(--text-dark);
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: var(--font-size-lg);
    padding: 0;
    line-height: 1;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    #app-root {
        padding: 8px;
    }

    .main-panel {
        padding: 16px;
        border-radius: var(--radius-md);
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .score-card {
        flex-direction: column;
        text-align: center;
    }

    .verdict-buttons {
        gap: 8px;
    }

    .btn-verdict {
        padding: 14px 8px;
        font-size: var(--font-size-md);
    }

    .step-nav {
        flex-wrap: wrap;
    }

    .checklist-table th,
    .checklist-table td {
        padding: 8px 6px;
        font-size: var(--font-size-sm);
    }
}

/* ── Utility Classes ─────────────────────────────────────────────────── */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
