:root {
  --bg: #f6f7fb;
  --panel: #fff;
  --text: #182033;
  --muted: #667085;
  --line: #e5e7ef;
  --primary: #335cff;
  --primary-dark: #2445c7;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.45; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }
.topnav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 18px; padding: 14px 28px; background: rgba(255,255,255,.92); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.brand { margin-right: 12px; color: var(--text); font-weight: 800; letter-spacing: -.03em; font-size: 18px; }
.nav-links { display: flex; align-items: center; gap: 18px; flex: 1; }
.nav-links > .small { margin-left: auto; }
.nav-links button, footer button { border: 0; background: none; color: var(--primary); padding: 0; box-shadow: none; }
.nav-links button:hover, footer button:hover { text-decoration: underline; }
.nav-links button.active { color: var(--text); }
.nav-toggle { display: none !important; margin-left: auto; padding: 8px 11px; }
.shell { max-width: 1180px; margin: 0 auto; padding: 28px; }
.compact-home { max-width: 760px; padding-top: 52px; }
h1 { font-size: 34px; letter-spacing: -.04em; line-height: 1.2; margin: 0 0 8px; }
h2, h3 { margin-top: 0; letter-spacing: -.02em; }
h2 { font-size: 24px; }
h3 { font-size: 18px; }
.import-intro { text-align: center; margin: 0 0 28px; }
.import-intro h1 { font-size: 42px; margin-bottom: 10px; }
.import-intro p { color: var(--muted); font-size: 17px; margin: 0; }
.intro { margin-bottom: 22px; }
.muted, .small { color: var(--muted); }
.small { font-size: .92em; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 20px; margin: 16px 0; box-shadow: 0 8px 24px rgba(16,24,40,.05); }
.import-card { padding: 28px; margin: 0; }
label { display: block; margin-bottom: 9px; color: #344054; font-weight: 650; }
input, textarea, select { font: inherit; color: var(--text); border: 1px solid #d0d5dd; border-radius: 12px; padding: 11px 12px; background: white; }
select, textarea, input[type=file] { width: 100%; }
textarea { min-height: 180px; resize: vertical; }
input[type=checkbox] { accent-color: var(--primary); margin-right: 8px; }
input[type=date] { min-width: 145px; }
.primary, .secondary { display: inline-block; border: 0; padding: 10px 14px; border-radius: 12px; font-weight: 750; text-align: center; text-decoration: none !important; }
.primary { color: white; background: var(--primary); box-shadow: 0 6px 14px rgba(51,92,255,.2); }
.primary:hover { background: var(--primary-dark); }
.secondary { color: #3446a7; background: #eef2ff; }
.secondary:hover { background: #e4eaff; }
button:disabled { cursor: not-allowed; opacity: .48; box-shadow: none; }
.field { margin-bottom: 24px; }
.dropzone { position: relative; display: block; padding: 28px 20px; border: 1.5px dashed #c4c9d4; border-radius: 14px; background: #fafbfc; text-align: center; cursor: pointer; transition: border-color .16s ease, background .16s ease; }
.dropzone:hover, .dropzone.dragging { border-color: var(--primary); background: #f4f6ff; }
.dropzone:focus-within { outline: 2px solid var(--primary); outline-offset: 3px; }
.dropzone strong { display: block; font-weight: 700; color: var(--text); }
.dropzone .small { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; font-weight: 400; }
.dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.selected-file { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; padding: 10px 12px; background: #f2f4f7; border-radius: 10px; font-size: 14px; }
.selected-file[hidden] { display: none; }
.selected-file span { min-width: 0; overflow-wrap: anywhere; }
.file-remove { padding: 5px 9px; border: 0; background: transparent; color: var(--muted); }
.divider { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: var(--muted); font-size: 13px; }
.divider::before, .divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.full { width: 100%; padding: 13px 18px; font-size: 16px; }
.security { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.55; margin-bottom: 0; }
.security strong { color: var(--text); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.notice { padding: 12px 14px; color: #946300; background: #fff8e6; border-radius: 12px; margin: 15px 0; }
.setup-notice { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 22px; }
.error { color: #b42318; background: #fff0f0; }
.success { color: #067647; background: #ecfdf3; }
.progress { margin-top: 14px; padding: 14px; border: 1px solid #dbe3ff; border-radius: 12px; background: #f5f7ff; color: #3446a7; font-size: 14px; font-weight: 700; }
.progress[hidden] { display: none; }
.progress progress { display: block; width: 100%; height: 6px; margin-bottom: 10px; accent-color: var(--primary); }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 14px; background: white; }
table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 14px; }
th, td { border-bottom: 1px solid var(--line); padding: 10px 11px; vertical-align: top; text-align: left; }
th { background: #f8fafc; color: #475467; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
tr:last-child td { border-bottom: 0; }
td input[type=text] { min-width: 250px; width: 100%; }
td .small { max-width: 300px; font-size: 12px; }
.badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 700; color: #067647; background: #ecfdf3; white-space: nowrap; }
.badge.warn { color: #946300; background: #fff8e6; }
.impact-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin: 16px 0; }
.impact { padding: 14px; border: 1px solid var(--line); border-radius: 12px; text-align: center; background: white; }
.impact strong { display: block; font-size: 24px; }
.checkline { display: flex; align-items: center; gap: 4px; font-weight: 400; }
.calendar-list label { padding: 8px 0; font-weight: 400; }
.prose { max-width: 780px; }
.prose h2 { margin-top: 26px; }
.prose details { border-top: 1px solid var(--line); padding: 16px 0; }
.prose details:first-of-type { border-top: 0; }
.prose summary { font-weight: 750; cursor: pointer; }
.prose details p { color: #475467; }
.footer { max-width: 1180px; margin: 0 auto; padding: 0 28px 28px; color: var(--muted); font-size: 12px; }
.footer.compact { max-width: 760px; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
@media (max-width: 800px) {
  .shell { padding: 16px; }
  .compact-home { padding-top: 34px; }
  .import-intro h1 { font-size: 34px; }
  .import-card { padding: 28px; }
  .topnav { flex-wrap: wrap; padding: 12px 16px; }
  .nav-toggle { display: inline-block !important; }
  .nav-links { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 4px; }
  .nav-links.open { display: flex; }
  .nav-links button, .nav-links .small { text-align: left; padding: 10px 2px; margin-left: 0; }
  .impact-grid { grid-template-columns: 1fr; }
  .footer { padding: 0 16px 24px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
