:root { color-scheme: light; --ink: #172036; --muted: #64748b; --brand: #315cdb; --brand-dark: #2449ad; --line: #dfe5ef; --soft: #f6f8fc; --success: #167a4a; --danger: #b42318; --white: #fff; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--soft); font-family: Inter, "Segoe UI", system-ui, sans-serif; line-height: 1.55; }
.app-nav { height: 68px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); }
.app-nav-inner { width: min(1120px, calc(100% - 40px)); height: 100%; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.brand { color: var(--ink); text-decoration: none; font-size: 18px; font-weight: 800; }
.app-links { display: flex; align-items: center; gap: 22px; }
.app-links a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 700; }
.app-links a:hover { color: var(--brand); }
.app-links .app-link { color: var(--brand); }
main { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 42px 0 64px; }
.app-header { margin-bottom: 28px; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.app-header h1 { margin: 0 0 4px; font-size: clamp(36px, 5vw, 52px); line-height: 1.05; letter-spacing: -.03em; }
.app-header p { max-width: 520px; margin: 0; color: var(--muted); }
.privacy-note { border: 1px solid #cbd8fb; border-radius: 999px; background: #eef3ff; color: #29458a; padding: 7px 12px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.card { margin: 18px 0; padding: 28px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); box-shadow: 0 12px 32px rgba(23,32,54,.05); }
.card-heading { margin-bottom: 18px; display: flex; align-items: start; gap: 12px; }
.step-number { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--brand); color: white; font-size: 13px; font-weight: 800; }
.card-heading h2 { margin: 0; font-size: 22px; line-height: 1.25; }
.card-heading p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
h3 { margin: 24px 0 10px; font-size: 15px; }
label { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 750; }
input[type="text"],select { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 8px; background: white; padding: 10px 12px; font: inherit; }
.upload-zone { border: 1.5px dashed #b8c6e6; border-radius: 12px; background: var(--soft); padding: 28px; text-align: center; transition: border-color .15s, background .15s; }
.upload-zone.dragging { border-color: var(--brand); background: #edf3ff; }
.upload-zone input[type="file"] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.upload-icon { width: 42px; height: 42px; margin: 0 auto 12px; border-radius: 10px; display: grid; place-items: center; background: #eaf0ff; color: var(--brand); font-size: 20px; font-weight: 800; }
.upload-zone strong { display: block; font-size: 15px; }
.upload-zone label.file-picker { width: fit-content; margin: 14px auto 0; border-radius: 8px; background: var(--brand); color: white; padding: 10px 16px; cursor: pointer; }
.file-info { margin-top: 12px; border-radius: 8px; background: white; border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.file-info[hidden] { display: none !important; }
.hint,.muted { color: var(--muted); font-size: 13px; line-height: 1.5; }
.grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.checks { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin: 14px 0; }
.check { min-height: 44px; border: 1px solid var(--line); border-radius: 8px; display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 12px; font-weight: 650; background: white; }
.check input { width: 17px; height: 17px; margin: 0; accent-color: var(--brand); }
fieldset { border: 0; padding: 0; margin: 0; }
.legend { color: var(--muted); }
.actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; }
button,.button { min-height: 44px; border: 1px solid transparent; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: var(--brand); color: white; padding: 10px 16px; font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; }
button.secondary { border-color: var(--line); background: white; color: var(--ink); }
button:hover:not(:disabled),.button:hover { background: var(--brand-dark); }
button.secondary:hover:not(:disabled) { border-color: #b8c6e6; background: var(--soft); }
button:disabled { opacity: .48; cursor: not-allowed; }
.status { margin-top: 16px; border-radius: 8px; border: 1px solid var(--line); background: white; padding: 11px 13px; color: var(--muted); font-size: 14px; }
.status.error { border-color: #f0b4ad; background: #fff6f5; color: var(--danger); }
.status.success { border-color: #abd4c0; background: #f4fbf7; color: var(--success); }
.status.loading::before { content: "Working locally · "; font-weight: 800; }
.stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.stat { min-width: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); padding: 14px; }
.stat strong { display: block; overflow-wrap: anywhere; font-size: 20px; }
.stat span { color: var(--muted); font-size: 12px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th,td { padding: 11px 12px; border-bottom: 1px solid var(--line); font-size: 13px; overflow-wrap: anywhere; }
tr:last-child td { border-bottom: 0; }
th { background: var(--soft); color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.type-badge { border-radius: 999px; display: inline-flex; background: #eef3ff; color: #29458a; padding: 3px 8px; font-size: 12px; font-weight: 750; }
.type-badge.mixed { background: #fff3d8; color: #805c0a; }
.type-badge.empty { background: #eef0f4; color: var(--muted); }
#report-operations,#warnings { margin: 8px 0 0; padding-left: 20px; color: var(--muted); }
.export-actions { align-items: end; }
.export-actions .export-format { width: 150px; }
.exclusion-section { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 18px; }
.exclusion-columns { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 10px; }
button.exclusion-column { flex: 0 0 auto; width: auto; min-height: 38px; border-color: var(--line); background: white; color: var(--ink); }
button.exclusion-column:hover:not(:disabled) { border-color: #b8c6e6; background: var(--soft); }
.exclusion-popup { position: relative; margin-top: 8px; border: 1px solid var(--line); border-radius: 10px; background: white; padding: 12px; box-shadow: 0 10px 24px rgba(23,32,54,.08); }
.exclusion-popup-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.exclusion-popup-header button { min-height: 36px; }
.exclusion-values { max-height: 220px; overflow-y: auto; display: grid; gap: 6px; margin-top: 8px; }
.exclusion-value { min-height: 38px; margin: 0; border: 1px solid var(--line); border-radius: 7px; display: grid; grid-template-columns: 17px minmax(0,1fr) auto; align-items: center; gap: 8px; padding: 8px 10px; }
.exclusion-value input { width: 17px; height: 17px; margin: 0; accent-color: var(--brand); }
.exclusion-value small { border-radius: 999px; background: var(--soft); color: var(--muted); padding: 2px 7px; }
.selected-exclusions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.excluded-value-chip { min-height: 36px; border-radius: 999px; background: #eef3ff; color: #29458a; display: inline-flex; align-items: center; gap: 8px; padding: 5px 7px 5px 10px; font-size: 12px; }
.chip-remove { min-height: 26px; width: auto; border-radius: 999px; background: white; color: var(--danger); padding: 2px 7px; font-size: 11px; }
.chip-remove:hover:not(:disabled) { background: white; }
.specific-actions { align-items: stretch; }
.specific-clean-actions { display: grid; grid-template-columns: repeat(2,minmax(180px,1fr)); gap: 12px; width: min(520px,100%); }
[hidden] { display: none !important; }
@media(max-width:760px) { .app-nav-inner,main { width: calc(100% - 32px); } .app-links a:not(.app-link):not(.brand-link) { display: none; } .app-header { align-items: start; flex-direction: column; } .privacy-note { white-space: normal; } .card { padding: 20px; } .checks,.grid,.stats { grid-template-columns: 1fr; } .actions { align-items: stretch; flex-direction: column; } button,.button { width: 100%; } .export-actions { align-items: stretch; } .export-actions .export-format { width: 100%; } .specific-clean-actions { width: 100%; grid-template-columns: 1fr; } .exclusion-popup-header { align-items: stretch; } }
