/* styles.css - Checklist App (трёхвариантная оценка, адаптивные кнопки) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --primary-color: #4361ee;
    --primary-light: #e0e7ff;
    --primary-dark: #3a56d4;
    --success-color: #10b981;
    --success-light: #d1fae5;
    --success-dark: #0da271;
    --warning-color: #f59e0b;
    --warning-light: #fef3c7;
    --danger-color: #ef4444;
    --danger-light: #fee2e2;
    --partial-color: #f59e0b;
    --partial-light: #fef3c7;
    --light-gray: #f8fafc;
    --medium-gray: #e2e8f0;
    --dark-gray: #64748b;
    --text-color: #1e293b;
    --text-light: #94a3b8;
    --card-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --transition: all 0.2s ease;
    --header-bg: #f1f5f9;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--text-color);
    line-height: 1.4;
    height: 100vh;
    overflow: hidden;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.container {
    max-width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.hidden {
    display: none !important;
}

.app-header {
    background: var(--header-bg);
    backdrop-filter: blur(8px);
    padding: 12px 16px 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 100;
    flex-shrink: 0;
    min-height: 75px;
}

.salon-info {
    text-align: center;
    margin-bottom: 8px;
}

.salon-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 10px;
}

.checklist-name {
    font-size: 0.9rem;
    color: var(--dark-gray);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 10px;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: var(--medium-gray);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--success-color));
    border-radius: 3px;
    width: 0%;
    transition: var(--transition);
}

.progress-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark-gray);
    min-width: 50px;
    text-align: right;
}

.content {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    position: relative;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 75px;
}

.loading-screen, .error-screen, .success-screen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
    padding: 24px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

.loading-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 16px;
    animation: pulse 1.5s infinite;
}

.error-icon {
    font-size: 3rem;
    color: var(--danger-color);
    margin-bottom: 16px;
}

.success-icon {
    font-size: 3.5rem;
    color: var(--success-color);
    margin-bottom: 16px;
    animation: bounce 0.8s;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-12px); }
    60% { transform: translateY(-6px); }
}

.loading-screen h2, .error-screen h2, .success-screen h2 {
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 700;
    font-size: 1.3rem;
}

.loading-screen p, .error-screen p, .success-screen p {
    color: var(--dark-gray);
    margin-bottom: 20px;
    max-width: 280px;
    line-height: 1.4;
    font-size: 1rem;
}

.item-screen {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 20px 18px 0px;
    margin-bottom: 75px;
    position: relative;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.item-header {
    margin-bottom: 8px;
    flex-shrink: 0;
    padding-top: 2px;
}

.item-category-container {
    position: relative;
    margin-bottom: 8px;
}

.item-category {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--primary-light);
    padding: 7px 14px;
    border-radius: 100px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    position: relative;
    padding-right: 35px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.item-category.expanded {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--primary-light);
    padding: 7px 14px 25px 14px;
    padding-right: 14px;
    position: relative;
    min-height: auto;
}

.item-category::after {
    content: '⋯';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.3rem;
    background: var(--primary-light);
    padding-left: 5px;
}

.item-category.expanded::after {
    content: '▲';
    position: absolute;
    right: 10px;
    bottom: 5px;
    top: auto;
    transform: none;
    background: var(--primary-light);
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 0.9rem;
}

.item-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.item-weight {
    font-size: 0.9rem;
    font-weight: 700;
    color: #FF9800;
    background: #FFF3E0;
    padding: 5px 12px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    border: 2px solid #FF9800;
    box-shadow: 0 2px 4px rgba(255, 152, 0, 0.2);
    height: 28px;
}

.item-weight i {
    font-size: 0.8rem;
    color: #FF9800;
}

.item-weight-value {
    font-size: 1rem;
    font-weight: 800;
    color: #FF9800;
}

.item-weight-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: #FF9800;
}

.item-number {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #2196F3, #1976D2);
    padding: 5px 12px;
    border-radius: 100px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
    border: 2px solid #1976D2;
    box-shadow: 0 2px 4px rgba(25, 118, 210, 0.2);
    height: 28px;
}

.item-number-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
}

.item-number-value {
    font-weight: 800;
    color: white;
    font-size: 1rem;
    min-width: 20px;
    text-align: center;
}

.item-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.35;
    color: var(--text-color);
    flex-shrink: 0;
}

.item-description-container {
    position: relative;
    margin-bottom: 10px;
    flex-shrink: 0;
}

.item-description {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--dark-gray);
    padding: 12px 0;
    border-top: 1px solid var(--medium-gray);
    border-bottom: 1px solid var(--medium-gray);
    cursor: pointer;
    transition: var(--transition);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    height: 2.8em;
    display: flex;
    align-items: center;
}

.item-description.expanded {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    height: auto;
    min-height: 2.8em;
    align-items: flex-start;
    padding-top: 12px;
    padding-bottom: 30px;
}

.item-description::after {
    content: '⋯';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    padding-left: 5px;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
}

.item-description.expanded::after {
    content: '▲';
    top: auto;
    bottom: 10px;
    transform: none;
    font-size: 1.2rem;
    line-height: 1;
}

.answer-section {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.answer-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.answer-title i {
    color: var(--primary-color);
    font-size: 1.05rem;
}

.answer-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.answer-btn {
    padding: 14px 6px;
    border: 2px solid var(--medium-gray);
    background: white;
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 55px;
    flex-shrink: 0;
}

.answer-btn:hover, .answer-btn.active {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-width: 2px;
}

/* Кнопка "Да" (полностью) */
.answer-btn-yes.active {
    background: rgba(16, 185, 129, 0.7);
    border-color: rgba(16, 185, 129, 0.7);
    color: white;
}

/* Кнопка "Частично" */
.answer-btn-partial.active {
    background: rgba(245, 158, 11, 0.7);
    border-color: rgba(245, 158, 11, 0.7);
    color: white;
}

/* Кнопка "Нет" (не соответствует) */
.answer-btn-no.active {
    background: rgba(239, 68, 68, 0.7);
    border-color: rgba(239, 68, 68, 0.7);
    color: white;
}

/* Цвет иконок в неактивном состоянии */
.answer-btn-yes .answer-icon {
    color: var(--success-color);
}
.answer-btn-partial .answer-icon {
    color: var(--partial-color);
}
.answer-btn-no .answer-icon {
    color: var(--danger-color);
}

/* Белые иконки в активном состоянии */
.answer-btn-yes.active .answer-icon,
.answer-btn-partial.active .answer-icon,
.answer-btn-no.active .answer-icon {
    color: white;
}

.answer-icon {
    font-size: 1.4rem;
}

.answer-label {
    font-size: 0.95rem;
    font-weight: 700;
    white-space: nowrap;
}

.comment-section {
    margin-bottom: 0px;
    flex-shrink: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

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

.comment-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.comment-title i {
    color: var(--primary-color);
    font-size: 1.05rem;
}

.add-comment-btn {
    background: var(--primary-light);
    border: 1.5px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.add-comment-btn:hover {
    transform: scale(1.05);
}

.add-comment-btn i {
    font-size: 0.8rem;
}

.comment-input {
    width: 100%;
    max-width: 100%;
    padding: 16px;
    border: 1.5px solid var(--medium-gray);
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    min-height: 160px;
    max-height: 280px;
    transition: var(--transition);
    line-height: 1.5;
    color: var(--text-color);
    background: var(--light-gray);
    box-sizing: border-box;
    flex-grow: 1;
}

.comment-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 2px rgba(67, 97, 238, 0.1);
}

.comment-input::placeholder {
    color: var(--text-light);
    opacity: 0.8;
    font-size: 0.95rem;
}

.reviewer-section {
    background: var(--light-gray);
    border-radius: var(--border-radius);
    padding: 16px;
    margin-top: 8px;
    margin-bottom: 20px;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Вертикальная зеленая линия */
.reviewer-section::before {
    content: '';
    position: absolute;
    left: -2px;
    top: 8px;
    bottom: 8px;
    width: 3px;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        transparent 0.2%,
        var(--success-color) 10%, 
        var(--success-color) 90%, 
        transparent 99.8%,
        transparent 100%);
    border-radius: 0 2px 2px 0;
    z-index: 1;
}

.reviewer-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.reviewer-title i {
    color: var(--warning-color);
}

.reviewer-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 16px;
    background: white;
    padding: 14px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--medium-gray);
    flex-shrink: 0;
}

.reviewer-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.reviewer-info-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-gray);
}

.reviewer-info-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.4;
    word-break: break-word;
}

.reviewer-info-value.yes {
    color: var(--success-color);
}
.reviewer-info-value.partial {
    color: var(--partial-color);
}
.reviewer-info-value.no {
    color: var(--danger-color);
}

.reviewer-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.reviewer-btn {
    padding: 12px 10px;
    border: 2px solid var(--medium-gray);
    background: transparent;
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 48px;
    flex-shrink: 0;
}

.reviewer-btn:hover, .reviewer-btn.active {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

body.mode-2 .reviewer-btn-accept i.answer-icon {
    color: var(--success-color);
}
body.mode-2 .reviewer-btn-reject i.answer-icon {
    color: var(--danger-color);
}

body.mode-2 .reviewer-btn-accept.active {
    background: rgba(16, 185, 129, 0.7);
    border-color: rgba(16, 185, 129, 0.7);
    color: white;
}
body.mode-2 .reviewer-btn-reject.active {
    background: rgba(239, 68, 68, 0.7);
    border-color: rgba(239, 68, 68, 0.7);
    color: white;
}
body.mode-2 .reviewer-btn-accept.active i.answer-icon,
body.mode-2 .reviewer-btn-reject.active i.answer-icon {
    color: white;
}

body.mode-2 .reviewer-btn-accept:not(.active):hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--success-color);
}
body.mode-2 .reviewer-btn-reject:not(.active):hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--danger-color);
}
body.mode-2 .reviewer-btn-accept:not(.active):hover i.answer-icon {
    color: var(--success-dark);
}
body.mode-2 .reviewer-btn-reject:not(.active):hover i.answer-icon {
    color: var(--danger-color);
}

.navigation {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--header-bg);
    backdrop-filter: blur(8px);
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 100;
    min-height: 65px;
}

.nav-btn {
    flex: 1;
    padding: 12px 10px;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 45px;
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.nav-btn-prev {
    background: var(--light-gray);
    color: var(--text-color);
    border: 1px solid var(--medium-gray);
}

.nav-btn-prev:not(:disabled):hover {
    background: var(--medium-gray);
    transform: translateY(-1px);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
}

.nav-btn-next, .nav-btn-submit {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.nav-btn-next:not(:disabled):hover, .nav-btn-submit:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 1px 8px rgba(67, 97, 238, 0.25);
}

.nav-btn-submit {
    background: linear-gradient(135deg, var(--success-color), var(--success-dark));
}

.stats {
    display: flex;
    justify-content: space-around;
    margin: 20px 0 10px;
    padding: 16px;
    background: linear-gradient(135deg, #f8fafc, white);
    border-radius: var(--border-radius);
    border: 2px solid var(--primary-light);
    box-shadow: 0 2px 8px rgba(67, 97, 238, 0.08);
    flex-shrink: 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 12px;
    flex: 1;
    min-width: 0;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--primary-color);
    line-height: 1;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--dark-gray);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    width: 100%;
}

.stat-value.updated {
    animation: pulseStat 0.5s ease-in-out;
}

@keyframes pulseStat {
    0%, 100% { 
        transform: scale(1); 
        color: var(--primary-color);
    }
    50% { 
        transform: scale(1.1); 
        color: var(--primary-dark);
    }
}

#userCommentItem {
    transition: opacity 0.2s ease, max-height 0.3s ease;
    overflow: hidden;
}
#userCommentItem.hidden {
    opacity: 0;
    max-height: 0;
    margin: 0;
    padding: 0;
}
#userCommentItem:not(.hidden) {
    opacity: 1;
    max-height: 800px;
}

@media (max-width: 480px) {
    .content {
        padding: 12px;
        padding-bottom: 70px;
    }
    
    .item-screen {
        padding: 18px 16px 30px;
        margin-bottom: 70px;
        min-height: auto;
        padding-bottom: 0px;
    }
    
    .app-header {
        padding: 10px 12px 8px;
        min-height: 70px;
    }
    
    .salon-name {
        font-size: 1.1rem;
    }
    
    .checklist-name {
        font-size: 0.85rem;
    }
    
    .item-title {
        font-size: 1.15rem;
        margin-bottom: 12px;
    }
    
    .item-description {
        font-size: 0.9rem;
        padding: 10px 0;
        height: 2.5em;
    }
    .item-description.expanded {
        min-height: 2.5em;
        padding-bottom: 25px;
    }
    
    .answer-buttons {
        gap: 6px;
    }
    .answer-btn {
        padding: 12px 4px;
        min-height: 52px;
        font-size: 0.9rem;
        gap: 4px;
    }
    .answer-icon {
        font-size: 1.2rem;
    }
    .answer-label {
        font-size: 0.85rem;
    }
    
    .comment-input {
        min-height: 140px;
        max-height: 200px;
        padding: 14px;
        font-size: 0.95rem;
    }
    
    .comment-section {
        margin-bottom: 0px;
    }
    
    .reviewer-section {
        margin-bottom: 16px;
        margin-top: 6px;
    }
    .reviewer-section::before {
        width: 3px;
        left: -1px;
        top: 6px;
        bottom: 6px;
    }
    
    .navigation {
        padding: 10px 12px;
        min-height: 60px;
    }
    
    .nav-btn {
        padding: 10px 8px;
        font-size: 1rem;
        min-height: 42px;
        gap: 6px;
    }
    
    .stats {
        padding: 14px 8px;
        margin: 16px 0 8px;
    }
    .stat-item {
        padding: 0 8px;
        min-width: 60px;
    }
    .stat-value {
        font-size: 1.6rem;
        min-height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .stat-label {
        font-size: 0.6rem;
        letter-spacing: 0.2px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 2px;
        line-height: 1.1;
    }
}

/* Дополнительная адаптация для экранов ≤360px */
@media (max-width: 360px) {
    .answer-btn {
        padding: 10px 2px;
        font-size: 0.8rem;
        gap: 3px;
        min-height: 48px;
    }
    .answer-icon {
        font-size: 1rem;
    }
    .answer-label {
        font-size: 0.7rem;
    }
    
    .stat-label {
        font-size: 0.55rem;
        letter-spacing: 0.15px;
        height: 28px;
    }
    .stat-value {
        font-size: 1.5rem;
    }
    .stat-item {
        padding: 0 6px;
        min-width: 55px;
    }
    .reviewer-section::before {
        width: 2px;
        top: 5px;
        bottom: 5px;
    }
}

.content::-webkit-scrollbar {
    width: 5px;
}
.content::-webkit-scrollbar-track {
    background: transparent;
}
.content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.12);
    border-radius: 2.5px;
}
.content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}

@media (max-height: 600px) {
    .app-header {
        min-height: 65px;
        padding: 8px 10px 6px;
    }
    .item-screen {
        margin-bottom: 65px;
        min-height: auto;
        padding-bottom: 0px;
    }
    .item-title {
        font-size: 1.1rem;
    }
    .item-description {
        font-size: 0.9rem;
        padding: 10px 0;
        height: 2.5em;
    }
    .item-description.expanded {
        min-height: 2.5em;
        padding-bottom: 25px;
    }
    .answer-btn {
        min-height: 48px;
        padding: 10px 4px;
    }
    .comment-input {
        min-height: 120px;
    }
    .comment-section {
        margin-bottom: 0px;
    }
    .reviewer-section {
        margin-bottom: 14px;
    }
    .navigation {
        min-height: 55px;
    }
}

.item-category, .item-title, .item-description,
.comment-input, .reviewer-info-value {
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

@supports (-webkit-touch-callout: none) {
    .content {
        padding-bottom: max(75px, env(safe-area-inset-bottom));
    }
    .navigation {
        padding-bottom: max(12px, env(safe-area-inset-bottom));
    }
}

.mode-2 .item-screen {
    background: linear-gradient(to bottom, white 0%, white 85%, #f8fafc 100%);
}
.mode-2 .reviewer-section {
    background: var(--light-gray);
    border: 2px solid var(--light-gray);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

body.mode-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
body.mode-2 {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

@media (max-height: 600px) and (max-width: 480px) {
    .stat-label {
        font-size: 0.55rem;
        height: 28px;
    }
    .stat-value {
        font-size: 1.4rem;
        min-height: 28px;
    }
}