* { box-sizing: border-box; }
:root { color-scheme: light; font-family: "Segoe UI", Arial, "Microsoft YaHei", sans-serif; color: #1f2937; background: #f4f7fb; }
body { margin: 0; min-height: 100vh; background: #f4f7fb; }
[hidden] { display: none !important; }
.container { width: min(100% - 32px, 1120px); margin: 40px auto; padding: 0 0 40px; }
.card { background: #fff; border: 1px solid #e2e8f0; border-radius: 18px; padding: 28px; margin-bottom: 20px; box-shadow: 0 10px 30px rgba(15, 23, 42, .07); }
h1, h2 { color: #111827; margin: 0 0 12px; }
h1 { font-size: clamp(26px, 4vw, 34px); letter-spacing: -.025em; }
h2 { font-size: 21px; }
p { margin: 8px 0; }
.eyebrow { color: #2563eb; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; margin-bottom: 8px; }
.subtitle { color: #4b5563; line-height: 1.7; max-width: 950px; }
code { background: #e5eefc; padding: 2px 6px; border-radius: 6px; color: #1e3a8a; }
.upload-area { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 160px; margin-top: 20px; padding: 20px; gap: 8px; text-align: center; border: 2px dashed #93c5fd; border-radius: 14px; background: #eff6ff; cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.upload-area:hover, .upload-area.is-dragging { background: #dbeafe; border-color: #2563eb; }
.upload-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #dbeafe; color: #1d4ed8; font-size: 24px; font-weight: 500; }
.upload-title { font-size: 17px; font-weight: 650; }
.upload-hint { color: #64748b; font-size: 14px; line-height: 1.5; }
.dual-upload-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.compact-upload { min-height: 125px; margin-top: 0; }
.file-info { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: #f8fafc; color: #334155; overflow-wrap: anywhere; }
.actions { margin-top: 18px; }
button { border: 0; border-radius: 10px; padding: 12px 18px; background: #2563eb; color: #fff; cursor: pointer; font-size: 15px; font-weight: 600; transition: background .15s ease, transform .15s ease; }
button:not(:disabled):hover { background: #1d4ed8; transform: translateY(-1px); }
button:disabled { background: #9ca3af; cursor: not-allowed; }
.ghost-button { background: #e5e7eb; color: #111827; padding: 8px 12px; font-size: 13px; }
.ghost-button:not(:disabled):hover { background: #d1d5db; }
.progress { width: 100%; height: 10px; margin: 12px 0; overflow: hidden; border-radius: 999px; background: #e5e7eb; }
#progressBar { width: 0; height: 100%; background: linear-gradient(90deg, #2563eb, #38bdf8); transition: width .25s ease; }
.status-text { color: #334155; }
.log-area { min-height: 180px; max-height: 360px; overflow: auto; padding: 14px; border-radius: 12px; background: #0f172a; color: #e2e8f0; white-space: pre-wrap; line-height: 1.55; }
.error { color: #b91c1c; margin-top: 14px; line-height: 1.6; }
.success { border-color: #86efac; background: #f0fdf4; }
.download-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
a.download { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 9px; background: #15803d; color: #fff; text-decoration: none; font-weight: 600; overflow-wrap: anywhere; }
a.download:hover { background: #166534; }
.personal-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 18px 0 12px; }
.personal-tabs, .feature-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.personal-tabs button { background: #e5e7eb; color: #334155; padding: 9px 14px; font-size: 14px; }
.personal-tabs button.is-active { background: #2563eb; color: #fff; }
.personal-toolbar input[type="search"] { min-width: 220px; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 9px; font: inherit; }
.feature-actions { margin: 12px 0; }
.feature-toggle-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.feature-toggle { display: inline-flex; align-items: flex-start; gap: 6px; padding: 6px 9px; border: 1px solid #dbe3ef; border-radius: 8px; background: #f8fafc; color: #334155; font-size: 13px; }
.feature-toggle input { margin: 2px 0 0; accent-color: #2563eb; }
.personal-summary { margin: 10px 0; color: #64748b; font-size: 14px; }
.table-scroll { width: 100%; overflow: auto; border: 1px solid #e2e8f0; border-radius: 10px; }
.personal-table { width: 100%; border-collapse: collapse; font-size: 13px; white-space: nowrap; }
.personal-table th, .personal-table td { padding: 9px 11px; border-bottom: 1px solid #e2e8f0; text-align: right; }
.personal-table th { position: sticky; top: 0; z-index: 1; background: #f1f5f9; color: #334155; }
.personal-table th:first-child, .personal-table th:nth-child(2), .personal-table td:first-child, .personal-table td:nth-child(2) { text-align: left; }
.personal-table tbody tr:hover { background: #f8fafc; }
#loadingOverlay { position: fixed; inset: 0; z-index: 9999; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; background: rgba(255,255,255,.92); text-align: center; }
.spinner { width: 44px; height: 44px; border: 4px solid #dbeafe; border-top-color: #2563eb; border-radius: 50%; animation: spin 1s linear infinite; }
.loading-title { font-size: 18px; font-weight: 650; }
.loading-subtitle { color: #4b5563; max-width: 620px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 720px) { .container { margin: 20px auto; } .card { padding: 20px; border-radius: 14px; } .dual-upload-grid { grid-template-columns: 1fr; } .actions button { width: 100%; } }
