:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172033;
  background: #edf4f4;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: linear-gradient(145deg, #eff7f6, #e8eef5); }
button, input, select, textarea { font: inherit; }
.admin-shell { width: min(1480px, calc(100% - 32px)); margin: 0 auto; padding: 32px 0 64px; }
.admin-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 24px; }
.admin-header h1 { margin: 4px 0; font-size: clamp(1.8rem, 4vw, 3rem); color: #0c386b; }
.admin-header p { margin: 0; color: #59677b; }
.admin-header nav { display: flex; gap: 10px; }
.eyebrow, .section-label { color: #c45100 !important; font-size: .78rem; font-weight: 800; letter-spacing: .12em; }
.summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 18px 0; }
.summary-grid article, .card { border: 1px solid #d5e0e5; border-radius: 18px; background: rgba(255,255,255,.94); box-shadow: 0 12px 30px rgba(25,53,78,.08); }
.summary-grid article { padding: 20px; }
.summary-grid span { color: #64748b; font-weight: 700; }
.summary-grid strong { display: block; margin-top: 8px; font-size: 1.8rem; color: #0f766e; }
.admin-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); gap: 18px; }
.card { padding: 22px; margin-bottom: 18px; }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.card h2 { margin: 3px 0 0; color: #133b66; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: grid; gap: 7px; color: #334155; font-weight: 700; }
.wide { grid-column: 1 / -1; }
input, select, textarea { width: 100%; border: 1px solid #cbd7df; border-radius: 10px; padding: 11px 12px; color: #172033; background: white; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(15,118,110,.15); border-color: #0f766e; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 10px; border: 1px solid transparent; padding: 9px 16px; font-weight: 800; text-decoration: none; cursor: pointer; }
.primary { background: #0f766e; color: white; }
.secondary { background: white; color: #133b66; border-color: #cbd7df; }
.danger { background: #fff4f3; color: #b42318; border-color: #fecaca; }
.message { min-height: 24px; margin: 0 0 8px; font-weight: 700; color: #0f766e; }
.message.error { color: #b42318; }
.hint { color: #64748b; font-size: .9rem; }
.table-wrap { overflow-x: auto; margin-bottom: 14px; }
table { width: 100%; min-width: 900px; border-collapse: collapse; }
th, td { padding: 10px 8px; border-bottom: 1px solid #e2e8f0; text-align: left; }
th { color: #64748b; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
td input { min-width: 110px; }
.employee-form { display: grid; grid-template-columns: 1fr 2fr 1fr auto; gap: 12px; margin-bottom: 16px; }
.employee-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.employee-card { border: 1px solid #dbe5ea; border-radius: 12px; padding: 14px; display: flex; justify-content: space-between; gap: 12px; }
.employee-card h3, .employee-card p { margin: 0; }
.employee-card p { margin-top: 4px; color: #64748b; }
.employee-card.inactive { opacity: .55; }
@media (max-width: 900px) {
  .admin-grid, .summary-grid { grid-template-columns: 1fr 1fr; }
  .admin-header { align-items: flex-start; flex-direction: column; }
  .employee-form { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .admin-shell { width: min(100% - 20px, 1480px); padding-top: 18px; }
  .summary-grid, .admin-grid, .form-grid, .employee-form { grid-template-columns: 1fr; }
  .wide { grid-column: auto; }
  .admin-header nav { width: 100%; }
  .admin-header nav > * { flex: 1; }
}
