:root { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #172033; background: #f4f6f9; }
* { box-sizing: border-box; }
body { margin: 0; }
.page { width: min(1180px, calc(100% - 32px)); margin: 24px auto 48px; }
header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.header-actions { display: flex; align-items: center; gap: 12px; }
h1 { margin: 0; font-size: 26px; } h2 { margin: 0 0 15px; font-size: 17px; }
.card { background: white; border: 1px solid #e1e6ef; border-radius: 10px; padding: 18px; margin: 14px 0; box-shadow: 0 2px 8px #17203308; }
.status-grid, .progress-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.status-grid strong, .progress-grid strong { display: block; margin-top: 7px; font-size: 16px; }
.status-warning { color: #a16207; }
.status-critical { color: #b42318; }
.label, .muted { color: #6e788b; font-size: 13px; }
.section-title, .toolbar, .actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.action-feedback { flex-basis: 100%; min-height: 18px; }
.action-feedback.success { color: #18794e; }
.action-feedback.error { color: #b42318; }
.section-title { justify-content: space-between; } .toolbar { margin-bottom: 14px; }
button, .button { border: 1px solid #cbd3df; border-radius: 6px; padding: 8px 12px; background: #fff; color: #172033; cursor: pointer; text-decoration: none; font-size: 14px; }
button:hover, .button:hover { background: #f1f5fa; } button.primary { color: #fff; border-color: #2563eb; background: #2563eb; } button.danger { color: #a11; }
.field-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px 18px; max-height: 300px; overflow: auto; padding: 4px; }
.field-item { display: flex; gap: 8px; align-items: center; padding: 6px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
label { display: grid; gap: 6px; font-size: 13px; color: #556176; } input, select { padding: 9px; border: 1px solid #cbd3df; border-radius: 6px; background: #fff; color: #172033; }
input[type="radio"], input[type="checkbox"] { padding: 0; }
section.card > label:not(.field-item) { display: inline-flex; align-items: center; gap: 6px; }
[hidden] { display: none !important; }
#journal-lines { width: 100%; padding: 10px; }
.journal-preview-table { max-height: 340px; overflow: auto; margin-top: 12px; }
.journal-preview-table table { width: 100%; border-collapse: collapse; font-size: 13px; }
.journal-preview-table th, .journal-preview-table td { text-align: left; padding: 8px; border-bottom: 1px solid #e1e6ef; }
.journal-preview-table th { position: sticky; top: 0; background: #f4f6f9; white-space: nowrap; }
button:disabled { opacity: .5; cursor: wait; }
.login-body { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: #eef2f7; }
.login-card { width: min(420px, 100%); padding: 30px; border: 1px solid #dce3ed; border-radius: 14px; background: #fff; box-shadow: 0 18px 50px #17203318; }
.login-card h1 { margin-bottom: 10px; }
.login-eyebrow { margin: 0 0 12px; color: #2563eb; font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.login-form { display: grid; gap: 16px; margin-top: 22px; }
.login-form input { width: 100%; font-size: 16px; }
.login-form button { width: 100%; }
.login-error { padding: 10px 12px; border-radius: 6px; color: #991b1b; background: #fef2f2; font-size: 14px; }
@media (max-width: 640px) { header { display: block; } h1 { margin-bottom: 6px; } .header-actions { justify-content: space-between; } }
