* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #1c1f23; background: #f5f6f8; }
.wrap { max-width: 860px; margin: 0 auto; padding: 14px; }
.wrap.narrow { max-width: 360px; padding-top: 40px; }
h1 { font-size: 1.25rem; margin: 0; }
h2 { font-size: 1.05rem; margin: 0 0 8px; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.card { background: #fff; border: 1px solid #dde1e6; border-radius: 8px; padding: 14px; margin-bottom: 14px; }
label { display: block; font-size: .85rem; font-weight: 600; margin: 0 0 4px; }
textarea, select, input[type=password] { width: 100%; padding: 8px; border: 1px solid #b9c0c8; border-radius: 6px; font: inherit; background: #fff; }
textarea { resize: vertical; }
.row { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0; }
.row > div { flex: 1 1 140px; min-width: 0; }
button { font: inherit; cursor: pointer; border-radius: 6px; border: 1px solid #b9c0c8; background: #fff; padding: 8px 14px; }
button.primary { background: #2456d6; border-color: #2456d6; color: #fff; font-weight: 600; }
button.primary:disabled { opacity: .55; cursor: not-allowed; }
button.link { border: 0; background: none; color: #555; text-decoration: underline; padding: 0; }
.badge { background: #e8eefc; color: #1b3f9e; border-radius: 999px; padding: 3px 12px; font-size: .85rem; font-weight: 600; white-space: nowrap; }
.badge.empty { background: #fde8e8; color: #9b1c1c; }
.hint { font-size: .85rem; color: #5a626b; margin: 6px 0 10px; }
.disclaimer { background: #fff7e0; border: 1px solid #f0d98a; border-radius: 8px; padding: 10px 12px; font-size: .88rem; margin-bottom: 14px; }
.progress { margin-top: 10px; font-weight: 600; }
.progress .track { height: 8px; background: #e3e6ea; border-radius: 4px; overflow: hidden; margin-top: 4px; }
.progress .fill { height: 100%; background: #2456d6; transition: width .4s; }
.error { color: #9b1c1c; background: #fde8e8; border-radius: 6px; padding: 8px 10px; }
.logout { text-align: center; margin-top: 8px; }
.summary { margin: 0 0 10px; font-weight: 600; }
.export { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.tablewrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid #e6e9ed; vertical-align: middle; word-break: break-word; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: #5a626b; }
td.num { white-space: nowrap; }
.bar { background: #e3e6ea; border-radius: 4px; height: 10px; min-width: 60px; }
.bar > span { display: block; height: 100%; background: #2456d6; border-radius: 4px; }
details { border: 1px solid #e6e9ed; border-radius: 6px; padding: 6px 10px; margin-top: 6px; }
details summary { cursor: pointer; font-weight: 600; }
details ul { margin: 6px 0; padding-left: 20px; word-break: break-word; }
.muted { color: #5a626b; }
@media (max-width: 480px) { .wrap { padding: 10px; } .card { padding: 10px; } }
