:root {
    --brand-blue: #073d87;
    --brand-navy: #102f61;
    --brand-orange: #ed9625;
    --surface: #fff;
    --background: #f4f6fa;
    --border: #dce3ee;
    --muted: #52647d;
    font-family: "Segoe UI", Arial, sans-serif;
    color: #192e4e;
    background: var(--background);
    line-height: 1.6;
    font-size: 16px;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--brand-blue); text-underline-offset: .2em; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); padding: 1.25rem 4vw; display: flex; gap: 2rem; justify-content: space-between; align-items: center; }
.brand { min-width: 0; flex-shrink: 0; display: flex; gap: 1.35rem; align-items: center; text-decoration: none; }
.brand img { display: block; width: 176px; height: auto; flex-shrink: 0; }
.brand-description { min-width: 0; display: flex; flex-direction: column; border-left: 1px solid var(--border); padding-left: 1.35rem; }
.brand-description strong { font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }
.brand-description > span { font-size: .8rem; color: var(--muted); }
nav { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.site-header nav a { text-decoration: none; font-size: .9rem; font-weight: 600; padding: .45rem 0; border-bottom: 2px solid transparent; }
.site-header nav a:hover { border-color: var(--brand-orange); }
.header-actions { min-width: 0; display: flex; flex-direction: column; align-items: flex-end; gap: .65rem; }
.header-actions nav { justify-content: flex-end; }
.user-account { min-width: 0; max-width: 100%; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: .5rem 1rem; font-size: .8rem; }
.user-identity { min-width: 0; max-width: 100%; display: flex; align-items: baseline; flex-wrap: wrap; gap: .25rem .5rem; padding: .3rem .65rem; border-radius: 6px; background: #eaf0f8; }
.user-status { color: var(--muted); }
.user-name { color: var(--brand-navy); overflow-wrap: anywhere; min-width: 0; }
.user-account a { max-width: 100%; overflow-wrap: anywhere; }
main { max-width: 1200px; margin: 0 auto; padding: 2.5rem 1.5rem; }
h1 { color: var(--brand-navy); font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.18; letter-spacing: -.035em; margin: 1rem 0 1.5rem; }
h2 { color: var(--brand-navy); font-size: 1.5rem; margin-top: 2rem; line-height: 1.3; }
h3 { color: var(--brand-navy); font-size: 1.1rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .13em; font-size: .75rem; font-weight: 750; color: var(--brand-blue); }
.intro { max-width: 700px; font-size: 1.1rem; }
.welcome-hero { position: relative; overflow: hidden; padding: clamp(2rem, 5vw, 4rem); border-radius: 16px; background: radial-gradient(ellipse at 100% 100%, #1554a0 0, transparent 55%), linear-gradient(115deg, var(--brand-navy), var(--brand-blue)); color: #fff; }
.welcome-hero::after { content: ""; position: absolute; width: 330px; height: 330px; border: 1px solid #ffffff16; border-radius: 50%; right: -120px; top: -120px; pointer-events: none; }
.welcome-hero .eyebrow { color: var(--brand-orange); }
.welcome-hero h1 { color: #fff; max-width: 920px; font-size: clamp(2rem, 3.6vw, 3rem); margin-top: 1.25rem; }
.welcome-hero .intro { color: #e0e9f8; margin-bottom: 2rem; }
.hero-caption { display: inline-block; border-left: 3px solid var(--brand-orange); padding-left: .8rem; color: #e0e9f8; font-size: .85rem; }
.welcome-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; margin: 2rem 0; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 1.5rem; margin: 1rem 0; box-shadow: 0 3px 12px #102f6105; }
.card h2:first-child { margin-top: 0; }
.access-card { margin: 0; padding: 2rem; border-top: 3px solid var(--brand-orange); }
.access-card h2 { margin-top: .8rem; }
.muted { color: var(--muted); font-size: .9rem; }
.welcome-workflow h2 { margin: .5rem 0 1.25rem; font-size: 1.2rem; }
.workflow-list { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.workflow-list li { position: relative; padding: 0 0 1.3rem 3rem; counter-increment: step; }
.workflow-list li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 0; color: var(--brand-blue); font-size: .8rem; font-weight: 750; background: #e7eef9; border-radius: 7px; padding: .3rem .5rem; }
.workflow-list strong, .workflow-list span { display: block; }
.workflow-list strong { color: var(--brand-navy); font-size: .95rem; }
.workflow-list span { color: var(--muted); font-size: .85rem; }
.notice, .error { padding: 1rem 1.2rem; border-left: 4px solid var(--brand-orange); background: #fff7eb; margin: 1rem 0; border-radius: 0 6px 6px 0; }
.error { background: #fff0ed; border-color: #ae3528; }
.success { padding: 1rem 1.2rem; border-left: 4px solid #237347; background: #eef8f1; margin: 1rem 0; border-radius: 0 6px 6px 0; }
.import-progress { display: flex; align-items: flex-start; gap: 1rem; background: #eaf0f8; padding: 1rem; margin-top: 1rem; border-radius: 6px; }
.import-progress[hidden] { display: none; }
.import-progress p { margin: .25rem 0 0; }
.spinner { flex-shrink: 0; width: 1.5rem; height: 1.5rem; margin-top: .2rem; border: 3px solid var(--border); border-top-color: var(--brand-blue); border-radius: 50%; animation: import-spin .8s linear infinite; }
@keyframes import-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }
button:disabled { opacity: .7; cursor: wait; }
#file-status { overflow-wrap: anywhere; color: var(--muted); }
button, .button { background: var(--brand-blue); color: #fff; padding: .8rem 1.2rem; border: 0; border-radius: 6px; font: inherit; font-weight: 650; display: inline-block; text-decoration: none; cursor: pointer; }
button:hover, .button:hover { background: var(--brand-navy); }
.access-card .button { background: var(--brand-orange); color: var(--brand-navy); }
.access-card .button:hover { background: #f4aa45; }
label { display: block; font-weight: 600; margin: 1.1rem 0 .35rem; }
input, select, textarea { width: 100%; max-width: 650px; font: inherit; padding: .7rem; border: 1px solid #92a3ba; border-radius: 5px; background: var(--surface); color: #192e4e; }
textarea { min-height: 100px; }
input[type=checkbox] { width: auto; }
.check { font-weight: 400; display: flex; gap: .7rem; align-items: flex-start; margin-bottom: 1rem; }
:focus-visible { outline: 3px solid var(--brand-orange); outline-offset: 3px; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2rem 0; }
.metrics > div { background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--brand-blue); padding: 1.25rem; border-radius: 8px; }
.metrics strong { display: block; color: var(--brand-blue); font-size: 2rem; }
.metrics span { font-size: .9rem; color: var(--muted); }
.badge { display: inline-block; color: var(--brand-blue); background: #e7eef9; font-size: .8rem; padding: .2rem .5rem; border-radius: 5px; margin-left: .4rem; }
.sections { padding: 1rem 0; border-bottom: 1px solid var(--border); }
summary { cursor: pointer; font-weight: 650; overflow-wrap: anywhere; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .82rem; background: #f0f3f8; padding: 1rem; max-height: 500px; overflow: auto; }
.mono { font-family: Consolas, monospace; font-size: .8rem; overflow-wrap: anywhere; }
table { width: 100%; border-collapse: collapse; background: var(--surface); }
.table-scroll { overflow-x: auto; }
.form-field { border: 1px solid var(--border); border-radius: 6px; padding: 1rem; margin: 1rem 0; }
.form-field legend { color: var(--brand-navy); font-weight: 600; }
.table-scroll td { min-width: 190px; }
button + button { margin-left: .5rem; }
th, td { text-align: left; border-bottom: 1px solid var(--border); padding: 1rem; }
th { color: var(--brand-navy); background: #eaf0f8; font-size: .9rem; }
caption { text-align: left; font-size: .85rem; margin: .5rem 0; color: var(--muted); }
.table-wrap { overflow: auto; border-radius: 8px; }
.site-footer { max-width: 1200px; margin: 0 auto; padding: 1.5rem; border-top: 1px solid var(--border); font-size: .75rem; color: var(--muted); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.site-footer strong { color: var(--brand-blue); font-weight: 650; }
.skip { position: absolute; z-index: 10; left: 1rem; top: -100px; background: #fff; padding: .7rem; }
.skip:focus { top: 1rem; }
@media (max-width: 1000px) {
    .site-header { align-items: flex-start; flex-direction: column; gap: 1rem; }
    .header-actions { width: 100%; align-items: flex-start; }
    .header-actions nav { justify-content: flex-start; }
    .user-account { width: 100%; justify-content: flex-start; border-top: 1px solid var(--border); padding-top: .75rem; }
}
@media (max-width: 700px) {
    .user-account { flex-direction: column; align-items: flex-start; }
    .brand { gap: .9rem; }
    .brand img { width: 140px; }
    .brand-description { padding-left: .9rem; }
    .brand-description > span { max-width: 130px; font-size: .7rem; }
    .welcome-grid, .metrics { grid-template-columns: 1fr; gap: 1.5rem; }
    main { padding: 1.5rem 1rem; }
    nav { gap: 1rem; }
    .welcome-hero { border-radius: 10px; }
    .welcome-hero h1 br { display: none; }
    .access-card { padding: 1.5rem; }
    .site-footer { margin: 0 1rem; padding: 1.5rem 0; }
}

.answer-text { white-space: pre-wrap; overflow-wrap: anywhere; }
