:root { color-scheme: light; font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; color: #172033; background: #f4f6fa; }
* { box-sizing: border-box; }
body { margin: 0; }
a { color: #2457d6; text-decoration: none; }
button, .button { border: 0; border-radius: .45rem; background: #2457d6; color: #fff; padding: .65rem 1rem; cursor: pointer; font: inherit; }
.topbar { height: 4rem; padding: 0 1.5rem; background: #12213f; color: #fff; display: flex; align-items: center; justify-content: space-between; }
.brand { color: #fff; font-weight: 700; font-size: 1.1rem; }
.account { display: flex; align-items: center; gap: .8rem; }.account form { margin: 0; }.role { background: #31456b; border-radius: 2rem; padding: .25rem .65rem; font-size: .8rem; }
.link-button, .danger-link { background: transparent; padding: 0; }.danger-link { color: #b42318; }.link-button { color: #fff; }
.shell { display: grid; grid-template-columns: 14rem minmax(0, 1fr); min-height: calc(100vh - 4rem); }
.sidebar { background: #fff; border-right: 1px solid #dce2ed; padding: 1.2rem; display: flex; flex-direction: column; gap: .5rem; }.sidebar a { padding: .7rem; border-radius: .4rem; }.sidebar a:hover { background: #eef3ff; }
.content { padding: 1.5rem; min-width: 0; }.page-title { display: flex; justify-content: space-between; align-items: center; }
.filters, .edit-form { background: #fff; border: 1px solid #dce2ed; border-radius: .65rem; padding: 1rem; display: grid; gap: 1rem; }.filters { grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); align-items: end; margin-bottom: 1rem; }.edit-form { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 60rem; }
label { display: grid; gap: .35rem; font-size: .9rem; font-weight: 600; }input, select, textarea { width: 100%; border: 1px solid #bec8d8; border-radius: .4rem; padding: .6rem; background: #fff; font: inherit; }textarea { min-height: 6rem; resize: vertical; }.wide, .form-actions { grid-column: 1 / -1; }.form-actions { display: flex; align-items: center; gap: 1rem; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid #dce2ed; border-radius: .65rem; }table { width: 100%; border-collapse: collapse; }th, td { padding: .75rem; text-align: left; border-bottom: 1px solid #e7ebf2; white-space: nowrap; }.actions { display: flex; gap: .7rem; }.actions form { margin: 0; }
.pagination { display: flex; gap: 1rem; justify-content: center; padding: 1rem; }.details { display: grid; grid-template-columns: 10rem 1fr; background: #fff; padding: 1rem; border-radius: .65rem; }.details dt, .details dd { margin: 0; padding: .6rem; border-bottom: 1px solid #edf0f5; }
.message { border-radius: .45rem; padding: .75rem 1rem; }.success { color: #067647; background: #ecfdf3; }.field-error { color: #b42318; font-size: .82rem; font-weight: 400; }
@media (max-width: 760px) { .shell { grid-template-columns: 1fr; }.sidebar { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid #dce2ed; }.content { padding: 1rem; }.edit-form { grid-template-columns: 1fr; }.account .role { display: none; } }
.login-page, .error-page { min-height: 100vh; display: grid; place-items: center; padding: 1rem; background: linear-gradient(145deg, #eef3ff, #f8fafc); }
.login-card, .error-card { width: min(100%, 28rem); background: #fff; border: 1px solid #dce2ed; border-radius: .9rem; padding: 2rem; box-shadow: 0 1rem 3rem rgba(18, 33, 63, .12); }
.login-form { display: grid; gap: 1rem; }.error-status { margin: 0; color: #2457d6; font-size: 3rem; font-weight: 800; }.error-card .button { display: inline-block; margin-top: 1rem; }
