:root { color-scheme: light; font: 16px/1.6 system-ui, sans-serif; color: #172d50; background: #f0f5ff; }
* { box-sizing: border-box; }
body { margin: 0; }
main { max-width: 960px; margin: auto; padding: 28px 20px 64px; }
h1 { font-size: clamp(26px, 5vw, 36px); color: #1446c8; margin: 12px 0 0; }
h2 { margin: 0 0 12px; font-size: 21px; }
p { color: #425575; margin: 10px 0; }
a { color: #1446c8; }
section { background: #fff; border: 1px solid #bdcdeb; border-radius: 16px; padding: 24px; margin-top: 20px; }
label, legend { display: block; font-weight: 700; margin-top: 14px; }
input:not([type=checkbox]), select { display: block; width: 100%; padding: 12px; min-height: 48px; font: inherit; border: 1px solid #7285a6; border-radius: 8px; color: #172d50; background: #fff; }
input[type=number] { max-width: 220px; }
fieldset { border: 1px solid #bdcdeb; border-radius: 8px; margin: 20px 0; padding: 12px 16px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 0; }
input[type=checkbox] { width: 20px; height: 20px; accent-color: #1446c8; cursor: pointer; flex-shrink: 0; }
#categories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
button, .download { display: inline-flex; align-items: center; justify-content: center; padding: 10px 16px; min-height: 48px; border: 1px solid #7285a6; border-radius: 8px; background: #fff; color: #17366c; font: 700 15px/1.4 system-ui; cursor: pointer; text-decoration: none; }
button.primary, .download { background: #1446c8; color: #fff; border-color: #1446c8; }
button:hover, .download:hover { filter: brightness(.94); }
button:active { transform: translateY(1px); }
button:disabled { opacity: .6; cursor: wait; }
:focus-visible { outline: 3px solid #1446c8; outline-offset: 3px; }
.actions, .section-head { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 16px; }
.section-head { justify-content: space-between; margin: 0; }
#status { background: #e0eaff; padding: 12px 16px; border-radius: 8px; color: #17366c; }
#status.error { background: #fff0ee; color: #9a2323; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid #dbe3f0; overflow-wrap: anywhere; }
th { background: #edf3ff; }
@media (max-width: 540px) { section { padding: 18px; } #categories { grid-template-columns: 1fr; } .actions button { flex: 1 1 160px; } }
