* { box-sizing: border-box; }
:root { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #172033; background: #f5f7fb; }
body { margin: 0; line-height: 1.5; }
a { color: #2457c5; text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.site-header { background: #111827; color: #fff; }
.nav-wrap { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { color: #fff; font-weight: 750; font-size: 1.15rem; }
.site-header nav { display: flex; align-items: center; gap: 18px; }
.site-header nav a, .site-header .link-button { color: #dbe5ff; }
.page { padding: 36px 0 64px; }
.page-header, .section-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
h1 { margin: 0 0 6px; font-size: 2rem; }
h2 { margin: 0; }
.muted, .help { color: #687386; }
.help { font-size: .9rem; margin-top: 6px; }
.btn { display: inline-flex; align-items: center; justify-content: center; border: 1px solid #cfd6e4; background: #fff; color: #1f2937; padding: 9px 14px; border-radius: 8px; cursor: pointer; font: inherit; text-decoration: none; }
.btn:hover { text-decoration: none; background: #f3f4f6; }
.btn.primary { background: #2457c5; border-color: #2457c5; color: #fff; }
.btn.danger { background: #b42318; border-color: #b42318; color: #fff; }
.btn.ghost { background: transparent; }
.button-row { display: flex; gap: 10px; flex-wrap: wrap; }
.search-row { display: flex; gap: 10px; margin-bottom: 18px; }
.search-row .form-control { flex: 1; }
.form-control { width: 100%; border: 1px solid #cfd6e4; background: #fff; border-radius: 8px; padding: 10px 12px; font: inherit; color: inherit; }
.form-control:focus { outline: 2px solid #aac2ff; border-color: #2457c5; }
select.form-control[multiple] { min-height: 310px; }
.form-card, .auth-card { width: min(620px, 100%); margin: 0 auto; background: #fff; border: 1px solid #e1e5ed; border-radius: 12px; padding: 28px; box-shadow: 0 6px 20px rgba(17,24,39,.05); }
.form-card.wide { width: min(820px, 100%); }
.form-group { margin: 20px 0; }
.form-group label { display: block; font-weight: 650; margin-bottom: 7px; }
.field-error { color: #b42318; margin-top: 6px; font-size: .92rem; }
.table-card { overflow-x: auto; background: #fff; border: 1px solid #e1e5ed; border-radius: 12px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid #edf0f4; vertical-align: top; }
th { font-size: .83rem; text-transform: uppercase; letter-spacing: .04em; color: #687386; background: #fafbfc; }
tbody tr:last-child td { border-bottom: 0; }
.number { text-align: right; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.empty { text-align: center; color: #687386; padding: 36px; }
.inline-form { display: inline; margin: 0; }
.link-button { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.danger-link { color: #b42318 !important; }
.alert { padding: 12px 14px; border-radius: 8px; margin-bottom: 18px; background: #eaf2ff; border: 1px solid #bad1ff; }
.alert.error { background: #fff0ee; border-color: #ffcbc4; color: #8f1d13; }
.alert.success { background: #edf9f0; border-color: #c7ebcf; color: #176b2c; }
.stats { display: inline-flex; align-items: baseline; gap: 8px; background: #fff; border: 1px solid #e1e5ed; border-radius: 10px; padding: 12px 16px; margin-bottom: 28px; }
.stats strong { font-size: 1.4rem; }
.back-link { display: inline-block; margin-bottom: 8px; }
.pagination { display: flex; justify-content: center; gap: 18px; margin-top: 18px; }
@media (max-width: 720px) { .page-header, .section-header, .nav-wrap { align-items: flex-start; flex-direction: column; } .site-header nav { flex-wrap: wrap; padding-bottom: 14px; } .search-row { flex-wrap: wrap; } .actions { min-width: 180px; } }
.alert.warning { background: #fff8e6; border-color: #f2d58a; color: #72510d; }
.full-width { width: 100%; }
.separator { display: flex; align-items: center; gap: 12px; color: #687386; margin: 22px 0; }
.separator::before, .separator::after { content: ""; flex: 1; height: 1px; background: #e1e5ed; }
.code-sample { background: #111827; color: #e5e7eb; border-radius: 8px; padding: 12px 14px; overflow-x: auto; }
.code-sample pre { margin: 0; }
.checkbox-row { display: flex !important; align-items: center; gap: 9px; }
.checkbox-row input { width: auto; }
