* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: #eef2f5;
    padding: 32px 24px;
    color: #1a2c3e;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.header {
    margin-bottom: 32px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
}
.brand h1 {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1c6e5c, #238b6e);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.3px;
    margin-bottom: 6px;
}
.brand .tag {
    color: #4a6f8a;
    border-left: 4px solid #2b9b7a;
    padding-left: 14px;
    font-weight: 450;
    font-size: 0.9rem;
}

.two-columns {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 32px;
}

.form-card {
    background: #ffffff;
    border-radius: 36px;
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.1);
    padding: 28px 30px;
    border: 1px solid rgba(44, 158, 110, 0.15);
    width: 100%;
}

.form-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}
.form-col-left {
    flex: 1.2;
    min-width: 220px;
}
.form-col-right {
    flex: 1.8;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.form-group {
    margin-bottom: 20px;
}
.form-col-left .form-group:last-child {
    margin-bottom: 0;
}
label {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    color: #1b4b5e;
    font-size: 0.85rem;
}
input, select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e2edf2;
    border-radius: 28px;
    font-size: 0.9rem;
    background: #ffffff;
    transition: all 0.2s;
    font-family: inherit;
}
select[multiple] {
    padding: 8px;
    border-radius: 24px;
    min-height: 120px;
    max-height: 140px;
    overflow-y: auto;
}
input:focus, select:focus {
    outline: none;
    border-color: #2b9b7a;
    box-shadow: 0 0 0 3px rgba(43, 155, 122, 0.2);
}
small {
    font-size: 0.7rem;
    color: #6c8faa;
    margin-top: 4px;
    display: inline-block;
}
.radio-group {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-top: 8px;
}
.radio-group label {
    font-weight: normal;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}
.btn {
    flex: 1;
    padding: 12px 16px;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #f0f4f8;
    color: #1f5a49;
}
.btn-primary {
    background: linear-gradient(95deg, #1f7b5c, #249c73);
    color: white;
    box-shadow: 0 6px 14px rgba(31,123,92,0.25);
}
.btn-primary:hover {
    background: linear-gradient(95deg, #176e51, #1d8864);
    transform: scale(0.98);
}
.btn-secondary {
    background: #eef2f7;
    border: 1px solid #cbdde6;
    color: #2c6979;
}
.btn-print {
    background: #ffffff;
    border: 1px solid #bdd8cd;
    color: #1a6e58;
}
hr {
    margin: 20px 0;
    border: none;
    border-top: 2px dotted #cde3ec;
}

.result-card {
    background: #ffffff;
    border-radius: 36px;
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.1);
    padding: 28px 30px;
    border: 1px solid rgba(44, 158, 110, 0.15);
    width: 100%;
}

.protocol {
    background: #fefbf5;
    border-radius: 28px;
    padding: 18px 22px;
    margin-top: 20px;
    border-left: 6px solid #2b9b7a;
}
.stage {
    background: #f9fcfd;
    border-radius: 24px;
    padding: 18px 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    border: 1px solid #e6f0ec;
}
.stage h4 {
    margin: 0 0 8px 0;
    color: #1a5f4e;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.4;
    word-break: break-word;
}
.stage h4 a {
    white-space: normal;
    word-break: break-word;
}
.warning {
    background: #fff6e8;
    border-left: 4px solid #e98c3e;
    padding: 14px 18px;
    border-radius: 24px;
    margin: 16px 0;
    font-size: 0.85rem;
}
.conflict-warning {
    background: #ffe5e5;
    border-left: 4px solid #d9534f;
    padding: 14px 18px;
    border-radius: 24px;
    margin: 16px 0;
    font-size: 0.85rem;
}
.logic-explanation {
    background: #e8f0fe;
    border-left: 4px solid #2b9b7a;
    padding: 14px 18px;
    border-radius: 24px;
    margin: 16px 0;
    font-size: 0.85rem;
}
.tech-card {
    background: #eef4fa;
    border-radius: 20px;
    padding: 14px 18px;
    margin: 12px 0;
    font-size: 0.95rem;
}
.recommendation-card {
    background: #e8f3ef;
    border-radius: 24px;
    padding: 18px 22px;
    margin-top: 24px;
    border-left: 6px solid #e98c3e;
}
.protocol a, .stage a, .tech-card a, .recommendation-card a, .warning a, .conflict-warning a, .logic-explanation a {
    color: #1a5f4e;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}
.protocol a:hover, .stage a:hover, .tech-card a:hover, .recommendation-card a:hover,
.warning a:hover, .conflict-warning a:hover, .logic-explanation a:hover {
    color: #249c73;
    text-decoration: underline;
}

.practical-materials {
    background: #e8f3ef;
    border-left-color: #e98c3e;
}

.download-btn {
    background: #2b9b7a;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.75rem;
    transition: background 0.2s ease;
    white-space: nowrap;
}
.download-btn:hover {
    background: #1f7b5c;
    text-decoration: none;
}

.video-item {
    margin: 12px 0;
}
.video-item video {
    width: 100%;
    max-width: 400px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.video-caption {
    font-size: 0.8rem;
    color: #4a6f8a;
    margin-top: 6px;
    display: flex;
    justify-content: space-between;
}

.btn-inline {
    background: linear-gradient(95deg, #1f7b5c, #249c73);
    color: white;
    border: none;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
    margin: 0 4px;
}
.btn-inline:hover {
    background: linear-gradient(95deg, #176e51, #1d8864);
    transform: scale(0.98);
}
.btn-inline:active {
    transform: scale(0.95);
}

footer {
    text-align: center;
    margin-top: 32px;
    font-size: 0.7rem;
    color: #6c8da5;
    border-top: 1px solid #d3e2ea;
    padding-top: 24px;
}
@media print {
    body { background: white; padding: 0.2in; margin: 0; }
    .form-card, .button-group, .btn, footer, .no-print { display: none !important; }
    .result-card { box-shadow: none; border: none; padding: 0; width: 100%; margin: 0; }
    .two-columns { display: block; }
    .stage, .protocol { break-inside: avoid; border: 1px solid #ccc; }
}
@media (max-width: 780px) {
    body { padding: 16px; }
    .form-card, .result-card { padding: 20px; }
    .button-group { flex-direction: column; }
    .form-grid {
        flex-direction: column;
    }
    .btn-inline {
        padding: 3px 8px;
        font-size: 0.75rem;
    }
}