* { box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: #f2f4f7;
    margin: 0;
    padding: 24px 12px 60px;
    color: #1f2933;
}

.wrap {
    max-width: 780px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 10px;
    padding: 28px 30px 36px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

h1 {
    margin: 0 0 6px;
    font-size: 24px;
    color: #0b3d5c;
}

.sub {
    margin: 0 0 22px;
    color: #52606d;
    font-size: 14px;
    line-height: 1.5;
}

.alert {
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 18px;
    font-size: 14px;
}
.alert.success {
    background: #e6f7ec;
    border: 1px solid #34c759;
    color: #1b5e33;
}
.alert.error {
    background: #fdecec;
    border: 1px solid #e5484d;
    color: #7d1b1e;
}

.progress-box {
    margin-bottom: 26px;
}
.progress-bar-bg {
    background: #e2e8f0;
    border-radius: 20px;
    height: 14px;
    overflow: hidden;
}
.progress-bar-fill {
    background: linear-gradient(90deg, #2e9e5b, #34c759);
    height: 100%;
    transition: width 0.3s ease;
}
.progress-text {
    margin-top: 6px;
    font-size: 13px;
    color: #52606d;
}

.group {
    margin-bottom: 26px;
}
.group h2 {
    font-size: 16px;
    color: #0b3d5c;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 6px;
    margin-bottom: 12px;
}

.doc-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 8px;
    background: #fafbfc;
    transition: background 0.2s, border-color 0.2s;
}
.doc-row.checked {
    background: #eefcf3;
    border-color: #bdeecb;
}

.doc-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex: 1 1 260px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
}
.doc-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #34c759;
}

.note-input {
    flex: 1 1 180px;
    padding: 7px 10px;
    border: 1px solid #d3dce6;
    border-radius: 6px;
    font-size: 13px;
}

.actions {
    text-align: center;
    margin-top: 24px;
}
.save-btn {
    background: #0b3d5c;
    color: #fff;
    border: none;
    padding: 12px 26px;
    font-size: 15px;
    border-radius: 8px;
    cursor: pointer;
}
.save-btn:hover {
    background: #0a3350;
}

.footer-note {
    margin-top: 26px;
    font-size: 12px;
    color: #8b98a5;
    text-align: center;
}
code {
    background: #f0f2f5;
    padding: 1px 5px;
    border-radius: 4px;
}

@media (max-width: 480px) {
    .wrap { padding: 20px 16px 30px; }
    .doc-row { flex-direction: column; align-items: stretch; }
    .note-input { width: 100%; }
}
