* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f7fa;
    min-height: 100vh;
    padding: 24px;
}

.container {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid #e4e7ed;
}

.header {
    text-align: center;
    margin-bottom: 28px;
}

.header h1 {
    font-size: 24px;
    font-weight: 600;
    color: #1a2c3e;
    margin-bottom: 8px;
}

.header p {
    font-size: 14px;
    color: #6c7a8e;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #1a2c3e;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #1a5dd0;
}

.progress {
    margin: 24px 0;
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
    color: #6c7a8e;
}

.progress-bar {
    background: #e4e7ed;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    background: #1a5dd0;
    width: 0%;
    height: 100%;
    transition: width 0.3s;
}

.question-card {
    background: #f8fafd;
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    margin: 24px 0;
    border: 1px solid #e4e7ed;
    position: relative;
}

.question-text {
    font-size: 18px;
    font-weight: 500;
    color: #1a2c3e;
    line-height: 1.5;
}

.answer-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: #e4e7ed;
    color: #6c7a8e;
}

.answer-badge.yes {
    background: #d4edda;
    color: #155724;
}

.answer-badge.no {
    background: #f8d7da;
    color: #721c24;
}

.controls {
    margin-bottom: 16px;
}

.btn-start {
    width: 100%;
    padding: 14px 24px;
    background: #1a5dd0;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 12px;
}

.btn-start:hover {
    background: #1449a3;
}

.btn-start.listening {
    background: #dc2626;
}

.control-group {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.btn-pause, .btn-resume {
    flex: 1;
    padding: 10px 16px;
    background: #f0f2f5;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    color: #3b4b62;
}

.btn-pause:hover:not(:disabled), .btn-resume:hover:not(:disabled) {
    background: #e4e7ed;
}

.btn-pause:disabled, .btn-resume:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nav-group {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.btn-nav {
    flex: 1;
    padding: 10px 16px;
    background: white;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    color: #3b4b62;
}

.btn-nav:hover:not(:disabled) {
    background: #f8fafd;
    border-color: #1a5dd0;
    color: #1a5dd0;
}

.btn-nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.status {
    background: #f8fafd;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-size: 13px;
    color: #6c7a8e;
    margin: 16px 0;
    border: 1px solid #e4e7ed;
}

.partial {
    text-align: center;
    font-size: 13px;
    color: #8ba0bc;
    font-style: italic;
    margin: 12px 0;
    min-height: 40px;
}

.actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.actions button {
    flex: 1;
    padding: 10px 16px;
    background: white;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    color: #3b4b62;
}

.actions button:hover {
    background: #f8fafd;
    border-color: #1a5dd0;
    color: #1a5dd0;
}

.btn-danger:hover {
    border-color: #dc2626;
    color: #dc2626;
}

.btn-primary {
    background: #1a5dd0 !important;
    color: white !important;
    border-color: #1a5dd0 !important;
}

.btn-primary:hover {
    background: #1449a3 !important;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 25px;
    width: 90%;
    max-width: 800px;
    max-height: 80%;
    overflow-y: auto;
    border-radius: 16px;
}

.close {
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.editor-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-bottom: 1px solid #e4e7ed;
}

.editor-question {
    flex: 1;
    font-size: 14px;
}

.editor-buttons {
    display: flex;
    gap: 8px;
}

.editor-yes, .editor-no {
    padding: 6px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
}

.editor-yes {
    background: #d4edda;
    color: #155724;
}

.editor-no {
    background: #f8d7da;
    color: #721c24;
}

.editor-yes.active {
    background: #155724;
    color: white;
}

.editor-no.active {
    background: #721c24;
    color: white;
}

@media (max-width: 550px) {
    body { padding: 16px; }
    .container { padding: 20px; }
    .question-text { font-size: 16px; }
    .control-group, .nav-group { flex-direction: column; }
}