:root {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #172b45;
  background: #f3f6fa;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; }
.ld-shell { display: flex; min-height: 100vh; }
.ld-sidebar { width: 235px; flex-shrink: 0; background: #142b49; color: white; padding: 20px; }
.ld-sidebar h2 { margin: 0 0 8px; }
.ld-sidebar nav { display: grid; gap: 5px; margin-top: 20px; }
button, nav a { font: inherit; font-weight: 600; border-radius: 6px; }
nav a { min-height: 44px; display: flex; align-items: center; color: white; padding: 10px; text-decoration: none; }
nav a:hover, nav a[aria-current] { background: #275a94; }
:focus-visible { outline: 3px solid #608bc8; outline-offset: 3px; }
.ld-main { flex: 1; min-width: 0; max-width: 1400px; padding: 24px; }
.ld-main h1 { margin: 0 0 20px; }
.notice { margin: 0 0 18px; padding: 10px 14px; background: #e3edf9; border: 1px solid #c0d3ed; border-radius: 6px; }
.ld-tabs, .master-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ld-tabs { margin-bottom: 16px; }
.ld-tabs button { min-height: 44px; padding: 9px 14px; background: #dce5ef; color: #17334f; border: 0; cursor: pointer; }
.ld-tabs button[aria-pressed=true] { background: #245b99; color: white; }
.master-panel, .card { background: white; padding: 20px; border: 1px solid #dce3ec; border-radius: 8px; margin-bottom: 16px; }
.master-toolbar { justify-content: space-between; margin-bottom: 14px; }
h2, h3 { margin: 0 0 12px; }
.master-toolbar h2 { margin: 0; }
input { color: inherit; font: inherit; padding: 9px; border: 1px solid #8294ab; border-radius: 5px; max-width: 100%; }
.master-table { overflow: auto; }
table { border-collapse: collapse; width: 100%; font-size: .875rem; }
th, td { padding: 11px; border-bottom: 1px solid #e2e8f0; text-align: left; white-space: nowrap; }
th { background: #eef3f8; }
details { margin-top: 12px; border-top: 1px solid #e2e8f0; padding: 12px 0 0; }
summary { cursor: pointer; color: #245b99; font-weight: 600; padding: 6px 0; }
details section { margin: 12px 0; }
.ld-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.card { color: inherit; text-decoration: none; }
.card:hover { border-color: #245b99; }
.card strong { display: block; color: #245b99; font-size: 1.4rem; margin-top: 8px; }
@media (max-width: 960px) { .ld-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) {
  .ld-shell { display: block; }
  .ld-sidebar { width: auto; padding: 14px; }
  .ld-sidebar nav { display: flex; overflow-x: auto; margin-top: 10px; }
  nav a { flex-shrink: 0; }
  .ld-main { padding: 14px; }
  .master-panel, .card { padding: 13px; }
}

