:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1d2939;
  background: #f7f8fc;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, select { font: inherit; }
button { border: 0; border-radius: 10px; padding: 11px 16px; cursor: pointer; background: #2d6cdf; color: white; font-weight: 650; }
button:hover { background: #2159bd; }
button:disabled { cursor: not-allowed; opacity: .55; }
button.secondary { background: #e9eef9; color: #284b87; }
button.secondary:hover { background: #dbe6fa; }

.shell { max-width: 1060px; margin: 0 auto; padding: 50px 22px 72px; }
.page-header { max-width: 760px; margin-bottom: 28px; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 10px; font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.045em; }
h2 { margin-bottom: 8px; font-size: 1.25rem; letter-spacing: -.02em; }
.intro { color: #526174; line-height: 1.55; margin-bottom: 0; }
.intro.compact { max-width: 860px; font-size: .94rem; }
.eyebrow { color: #4775c3; font-weight: 750; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 7px; }

.card { background: white; border: 1px solid #e4e8f0; box-shadow: 0 8px 25px rgba(32, 55, 91, .06); border-radius: 16px; padding: 24px; margin: 18px 0; }
.auth-card { max-width: 700px; }
.session-card { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.session-card p { margin-bottom: 0; }
.section-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-heading p, .section-heading h2 { margin-bottom: 0; }
.pill { white-space: nowrap; background: #ecf3ff; color: #3566af; padding: 6px 10px; border-radius: 999px; font-size: .85rem; font-weight: 650; }

.inline-form { display: flex; gap: 10px; margin-top: 16px; }
.inline-form input { flex: 1; }
input, select { width: 100%; border: 1px solid #cbd5e1; border-radius: 10px; background: white; padding: 11px 12px; color: #1d2939; }
input:focus, select:focus { outline: 3px solid rgba(45,108,223,.18); border-color: #2d6cdf; }
.import-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0; }
label { display: grid; gap: 8px; font-size: .9rem; font-weight: 650; color: #344054; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.steps { color: #526174; padding-left: 20px; line-height: 1.55; }
.steps li + li { margin-top: 6px; }
.status { min-height: 1.2em; margin: 14px 0 0; color: #526174; line-height: 1.45; }
.status.ok { color: #087443; }
.status.error { color: #b42318; }
.progress-panel { margin-top: 22px; padding: 16px; border-radius: 12px; background: #f5f8ff; }
.analysis-summary { margin-top: 18px; padding: 16px; border-radius: 12px; background: #f5f8ff; color: #344054; line-height: 1.5; }
.analysis-summary p { margin: 0; }
.analysis-summary p + p { margin-top: 7px; }
.progress-heading { display: flex; justify-content: space-between; gap: 18px; margin-bottom: 10px; }
.progress-heading span { white-space: nowrap; color: #526174; font-size: .9rem; }
progress { width: 100%; height: 11px; accent-color: #2d6cdf; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid #e8ecf2; font-size: .9rem; }
th { color: #526174; font-weight: 650; }
td { color: #344054; }
.muted { color: #667085; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

@media (max-width: 680px) {
  .shell { padding: 30px 15px 48px; }
  .card { padding: 18px; border-radius: 13px; }
  .inline-form, .session-card { align-items: stretch; flex-direction: column; }
  .import-grid { grid-template-columns: 1fr; }
  .progress-heading { flex-direction: column; gap: 4px; }
}
