:root {
    font-family: Tahoma, Arial, sans-serif;
    color: #152235;
    background: #f4f7fb;
    font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; background: #f4f7fb; }
.topbar {
    height: 72px;
    background: #fff;
    border-bottom: 1px solid #e8edf4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5vw;
    position: sticky;
    top: 0;
    z-index: 10;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
    width: 42px; height: 42px; border-radius: 13px;
    display: grid; place-items: center;
    background: #112b4a; color: #fff; font-weight: 800; font-size: 21px;
}
.brand strong, .brand small { display: block; }
.brand small { color: #758399; margin-top: 2px; }
.phase-badge, .status, .result-count {
    border-radius: 999px; padding: 7px 12px; font-size: 12px; font-weight: 700;
}
.phase-badge { background: #edf2f8; color: #42546b; }
.page-shell { width: min(1180px, 92vw); margin: 32px auto 70px; }
.hero-card {
    padding: 34px; border-radius: 24px;
    background: linear-gradient(135deg, #102943, #214a72);
    color: #fff; margin-bottom: 22px;
    box-shadow: 0 18px 50px rgba(18, 45, 74, .16);
}
.hero-card h1 { margin: 8px 0 10px; font-size: clamp(25px, 4vw, 40px); }
.hero-card p { margin: 0; line-height: 2; color: #d9e5f1; max-width: 850px; }
.eyebrow { color: #7990a8; font-size: 12px; font-weight: 800; letter-spacing: .3px; }
.hero-card .eyebrow { color: #9fc2df; }
.panel {
    background: #fff; border: 1px solid #e6ecf3; border-radius: 20px;
    padding: 24px; margin-top: 18px;
    box-shadow: 0 8px 30px rgba(33, 59, 86, .055);
}
.prompt-panel { padding: 26px; }
.field-label { display: block; font-weight: 800; margin-bottom: 11px; }
.prompt-input {
    width: 100%; resize: vertical; min-height: 128px;
    border: 1px solid #d9e2ec; border-radius: 15px; padding: 16px;
    font: inherit; font-size: 15px; line-height: 2; outline: none;
    background: #fbfcfe;
}
.prompt-input:focus { border-color: #5a7fa3; box-shadow: 0 0 0 4px rgba(70, 112, 153, .09); }
.prompt-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; color: #758399; font-size: 12px; }
.primary-btn {
    border: 0; border-radius: 12px; padding: 12px 22px; cursor: pointer;
    background: #183c61; color: #fff; font: inherit; font-weight: 800;
}
.primary-btn:hover { background: #102f50; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.section-title h2 { margin: 5px 0 0; font-size: 20px; }
.summary { color: #52657b; line-height: 2; }
.status.success { background: #e9f8f0; color: #16704a; }
.status.warning { background: #fff6dd; color: #8a6514; }
.result-count { background: #eef4fa; color: #294e72; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { padding: 8px 11px; border-radius: 10px; background: #f2f6fa; color: #40566d; font-size: 12px; }
.alert { padding: 14px 16px; border-radius: 12px; margin-top: 16px; line-height: 1.8; }
.alert.error { background: #fff0f0; color: #9b2e2e; border: 1px solid #f2d0d0; }
.alert.warning { background: #fff8e8; color: #795c1c; border: 1px solid #f2e0b5; }
.table-wrap { overflow-x: auto; margin-top: 18px; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { text-align: right; padding: 14px 12px; border-bottom: 1px solid #edf1f5; font-size: 13px; }
th { color: #6c7e92; font-size: 12px; background: #f9fbfd; }
td strong, td small { display: block; }
td small { margin-top: 4px; color: #8b98a7; direction: ltr; text-align: right; }
.empty-state { margin-top: 18px; padding: 30px; text-align: center; color: #718195; background: #f9fbfd; border-radius: 14px; }

@media (max-width: 700px) {
    .topbar { padding: 0 4vw; }
    .phase-badge { display: none; }
    .page-shell { width: 94vw; margin-top: 18px; }
    .hero-card, .panel { padding: 20px; border-radius: 17px; }
    .prompt-footer, .section-title { align-items: stretch; flex-direction: column; }
    .primary-btn { width: 100%; }
}
