.sch-root *, .sch-root ::before, .sch-root ::after {
  box-sizing: border-box;
}
.sch-text { color: var(--sch-text-700); font-family: var(--sch-font-sans); font-size: var(--sch-text-base); line-height: var(--sch-leading-normal); }
.sch-h1 { font-family: var(--sch-font-display); font-size: clamp(1.75rem); line-height: var(--sch-leading-tight); color: var(--sch-text-900); font-weight: 700; letter-spacing: -0.01em; }
.sch-h2 { font-family: var(--sch-font-display); font-size: 1.375rem; line-height: var(--sch-leading-snug); color: var(--sch-text-800); font-weight: 700; }
.sch-h3 { font-family: var(--sch-font-display); font-size: 1.125rem; line-height: var(--sch-leading-snug); color: var(--sch-text-800); font-weight: 600; }
.sch-muted { color: var(--sch-text-500); }
.sch-surface { background: var(--sch-surface); border: 1px solid var(--sch-border); border-radius: var(--sch-radius-lg); box-shadow: var(--sch-shadow-sm); }
.sch-surface-raised { background: var(--sch-surface); border: 1px solid var(--sch-border); border-radius: var(--sch-radius-lg); box-shadow: var(--sch-shadow-md); }
.sch-card { background: var(--sch-surface); border: 1px solid var(--sch-border); border-radius: var(--sch-radius-lg); box-shadow: var(--sch-shadow-sm); padding: var(--sch-card-padding); }
.sch-card-header { display: flex; align-items: center; justify-content: space-between; gap: var(--sch-space-3); padding-bottom: var(--sch-space-4); border-bottom: 1px solid var(--sch-border); margin-bottom: var(--sch-space-4); }
.sch-stack { display: flex; flex-direction: column; gap: var(--sch-space-4); }
.sch-row { display: flex; align-items: center; gap: var(--sch-space-3); }
.sch-row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--sch-space-3); }
.sch-grid { display: grid; gap: var(--sch-space-5); }
.sch-grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sch-grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sch-grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 991px) {
  .sch-grid-cols-2, .sch-grid-cols-3, .sch-grid-cols-4 { grid-template-columns: 1fr; }
}
.sch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--sch-radius-md);
  border: 1px solid transparent;
  padding: 0.625rem 1rem;
  height: var(--sch-control-height);
  line-height: 1;
  font-family: var(--sch-font-sans);
  font-size: var(--sch-text-sm);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--sch-transition-base), border-color var(--sch-transition-base), box-shadow var(--sch-transition-base), transform var(--sch-transition-base), color var(--sch-transition-base);
  white-space: nowrap;
}
.sch-btn:focus-visible { outline: none; box-shadow: var(--sch-focus-ring); }
.sch-btn-sm { height: var(--sch-control-height-sm); padding: 0.4rem 0.75rem; font-size: 0.8rem; border-radius: 0.5rem; }
.sch-btn-lg { height: var(--sch-control-height-lg); padding: 0.85rem 1.1rem; font-size: 1rem; border-radius: 0.75rem; }
.sch-btn-primary { background: var(--sch-primary); color: #fff; box-shadow: 0 6px 14px rgba(31, 78, 140, 0.22); }
.sch-btn-primary:hover { background: var(--sch-primary-600); }
.sch-btn-secondary { background: var(--sch-surface); color: var(--sch-text-700); border-color: var(--sch-border-strong); }
.sch-btn-secondary:hover { background: var(--sch-surface-muted); }
.sch-btn-success { background: var(--sch-success); color: #fff; }
.sch-btn-danger { background: var(--sch-danger); color: #fff; }
.sch-btn-ghost { background: transparent; color: var(--sch-primary); border-color: rgba(31, 78, 140, 0.16); }
.sch-btn-ghost:hover { background: rgba(31, 78, 140, 0.08); }
.sch-field { display: flex; flex-direction: column; gap: 0.35rem; }
.sch-label { font-size: var(--sch-text-sm); font-weight: 600; color: var(--sch-text-700); }
.sch-label .sch-required::after { content: " *"; color: var(--sch-danger); }
.sch-control, .sch-select, .sch-textarea {
  width: 100%;
  border-radius: 0.625rem;
  border: 1px solid var(--sch-border-strong);
  background: var(--sch-surface);
  color: var(--sch-text-800);
  padding: 0.75rem 0.85rem;
  font-family: var(--sch-font-sans);
  font-size: var(--sch-text-sm);
  line-height: 1.2;
  transition: border-color var(--sch-transition-base), box-shadow var(--sch-transition-base);
  min-height: var(--sch-control-height);
}
.sch-textarea { min-height: 120px; line-height: var(--sch-leading-normal); resize: vertical; }
.sch-control::placeholder { color: var(--sch-text-400); }
.sch-control:focus, .sch-select:focus, .sch-textarea:focus {
  border-color: var(--sch-primary);
  outline: none;
  box-shadow: var(--sch-focus-ring);
}
.sch-control[aria-invalid="true"], .sch-select[aria-invalid="true"], .sch-textarea[aria-invalid="true"] {
  border-color: var(--sch-danger);
  box-shadow: 0 0 0 3px var(--sch-ring-danger);
}
.sch-help { color: var(--sch-text-500); font-size: 0.8rem; }
.sch-error { color: var(--sch-danger); font-size: 0.8rem; font-weight: 500; }
.sch-badge { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.25rem 0.6rem; border-radius: var(--sch-radius-full); font-size: 0.75rem; font-weight: 600; line-height: 1.1; }
.sch-badge-success { background: rgba(22, 163, 74, 0.12); color: #166534; }
.sch-badge-warning { background: rgba(249, 115, 22, 0.12); color: #9A3412; }
.sch-badge-danger { background: rgba(220, 38, 38, 0.12); color: #991B1B; }
.sch-badge-info { background: rgba(37, 99, 235, 0.12); color: #1D4ED8; }
.sch-badge-neutral { background: rgba(148, 163, 184, 0.2); color: var(--sch-text-600); }
.sch-alert { border-radius: var(--sch-radius-md); border: 1px solid var(--sch-border); padding: 0.9rem 1rem; display: flex; gap: 0.75rem; align-items: flex-start; box-shadow: var(--sch-shadow-xs); }
.sch-alert-info { background: rgba(37, 99, 235, 0.08); border-color: rgba(37, 99, 235, 0.18); color: #1E3A8A; }
.sch-alert-success { background: rgba(22, 163, 74, 0.08); border-color: rgba(22, 163, 74, 0.18); color: #14532D; }
.sch-alert-warning { background: rgba(245, 158, 11, 0.1); border-color: rgba(245, 158, 11, 0.22); color: #92400E; }
.sch-alert-danger { background: rgba(220, 38, 38, 0.08); border-color: rgba(220, 38, 38, 0.2); color: #7F1D1D; }
.sch-table-wrap { border: 1px solid var(--sch-border); border-radius: var(--sch-radius-lg); overflow: hidden; background: var(--sch-surface); box-shadow: var(--sch-shadow-sm); }
.sch-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--sch-text-sm); color: var(--sch-text-700); }
.sch-table thead th { background: var(--sch-surface-alt); color: var(--sch-text-600); font-weight: 600; text-align: left; padding: 0.85rem 1rem; border-bottom: 1px solid var(--sch-border); font-size: 0.8rem; letter-spacing: 0.01em; }
.sch-table tbody td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--sch-border); vertical-align: middle; }
.sch-table tbody tr:last-child td { border-bottom: none; }
.sch-table tbody tr:hover { background: rgba(31, 78, 140, 0.03); }
.sch-kpi { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.1rem; border-radius: var(--sch-radius-lg); background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%); border: 1px solid var(--sch-border); box-shadow: var(--sch-shadow-sm); position: relative; overflow: hidden; }
.sch-kpi-label { color: var(--sch-text-500); font-size: 0.85rem; font-weight: 500; }
.sch-kpi-value { font-size: 1.8rem; line-height: 1.1; font-weight: 700; color: var(--sch-text-900); letter-spacing: -0.01em; }
.sch-kpi-meta { color: var(--sch-text-500); font-size: 0.8rem; }
.sch-kpi-accent::before { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 9999px; background: rgba(31, 78, 140, 0.06); }
.sch-progress { height: 8px; background: var(--sch-surface-muted); border-radius: 9999px; overflow: hidden; }
.sch-progress-bar { height: 100%; background: linear-gradient(90deg, var(--sch-primary) 0%, var(--sch-primary-500) 100%); border-radius: inherit; }
.sch-tag { display: inline-flex; align-items: center; padding: 0.2rem 0.55rem; border-radius: 9999px; background: rgba(31, 78, 140, 0.08); color: var(--sch-primary-600); font-size: 0.72rem; font-weight: 600; }
.sch-empty { padding: 2.5rem 1rem; text-align: center; border: 1px dashed var(--sch-border-strong); border-radius: var(--sch-radius-lg); background: var(--sch-surface-alt); color: var(--sch-text-500); }
.sch-shell { background: var(--sch-bg-page); }
.sch-shell-admin { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; }
@media (max-width: 991px) {
  .sch-shell-admin { grid-template-columns: 1fr; }
}
.sch-sidebar { background: #0F2344; color: #E2E8F0; border-right: 1px solid rgba(255,255,255,0.05); }
.sch-main { min-width: 0; display: flex; flex-direction: column; }
.sch-topbar { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,0.92); backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid var(--sch-border); }
.sch-page { padding: var(--sch-space-5) var(--sch-space-5) var(--sch-space-10); }
.sch-login-wrap { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: linear-gradient(135deg, #EEF2F8 0%, #FFFFFF 50%); }
@media (max-width: 991px) { .sch-login-wrap { grid-template-columns: 1fr; } }
.sch-login-card { border-radius: var(--sch-radius-xl); background: #fff; box-shadow: var(--sch-shadow-lg); border: 1px solid var(--sch-border); }
.sch-visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
