:root {
  --app-primary: #0f61fd;
  --app-surface: #ffffff;
  --app-surface-alt: #f5f7fa;
  --app-text: #212529;
  --app-muted: #687384;
  --app-border: #d9dee7;
  --app-radius: 3px;
  --app-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--app-surface); color: var(--app-text); font-family: var(--app-font); font-size: 13px; line-height: 1.45; }
a { color: var(--app-primary); }
a:hover { color: #0849c3; }
.app-nav { align-items: center; background: #282e31; color: #fff; display: flex; gap: 22px; min-height: 56px; padding: 0 12px; }
.app-nav__brand { align-items: center; display: inline-flex; }
.app-nav__logo { display: block; height: 48px; width: auto; }
.app-nav__links { align-items: center; display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.app-nav__links a, .app-nav__account summary { color: #f4f7fa; display: block; padding: 8px 10px; text-decoration: none; }
.app-nav__links a:hover, .app-nav__account summary:hover { background: #3b4449; }
.app-nav__account { margin-left: auto; position: relative; }
.app-nav__account summary { cursor: pointer; list-style: none; }
.app-nav__account summary::-webkit-details-marker { display: none; }
.app-nav__account summary::after { content: "▾"; margin-left: 7px; }
.app-nav__menu { background: var(--app-surface); border: 1px solid var(--app-border); box-shadow: 0 4px 12px rgb(0 0 0 / 15%); min-width: 130px; padding: 4px; position: absolute; right: 0; top: calc(100% + 2px); z-index: 2; }
.app-nav__menu a { display: block; padding: 7px 9px; text-decoration: none; }
.page-shell { margin: 48px auto 0; max-width: 1180px; padding: 0 20px 40px; }
.body-container { margin-top: 0; padding-bottom: 40px; }
h1, h2, h3, h4, h5, h6 { font-weight: 600; line-height: 1.25; margin: 0 0 12px; }
h1 { font-size: 20px; } h2 { font-size: 17px; } h3 { font-size: 15px; } h4 { font-size: 14px; }
hr { border: 0; border-top: 1px solid var(--app-border); margin: 12px 0 20px; }
.lead { font-size: 16px; font-weight: 400; }
.row { display: flex; flex-wrap: wrap; margin: 0 -10px; }
[class*="col-"] { padding: 0 10px; }
.col-sm-12, .col-md-12 { flex: 0 0 100%; max-width: 100%; }
.col-sm-10, .col-md-10 { flex: 0 0 83.333%; max-width: 83.333%; }
.col-sm-6, .col-md-6 { flex: 0 0 50%; max-width: 50%; }
.col-sm-5, .col-md-5 { flex: 0 0 41.667%; max-width: 41.667%; }
.col-sm-4, .col-md-4 { flex: 0 0 33.333%; max-width: 33.333%; }
.col-sm-3, .col-md-3 { flex: 0 0 25%; max-width: 25%; }
.col-sm-2, .col-md-2 { flex: 0 0 16.667%; max-width: 16.667%; }
.col-sm-1, .col-md-1 { flex: 0 0 8.333%; max-width: 8.333%; }
.card { background: var(--app-surface); border: 1px solid var(--app-border); margin-bottom: 16px; }
.card-header { background: var(--app-surface-alt); border-bottom: 1px solid var(--app-border); font-weight: 600; padding: 9px 12px; }
.card-body { padding: 12px; }
.card-footer { border-top: 1px solid var(--app-border); padding: 9px 12px; }
.card-title { margin: 0 0 8px; padding: 0; }
label, .col-form-label { display: inline-block; font-weight: 500; margin-bottom: 5px; }
.form-group { margin-bottom: 14px; }
.form-control { background: var(--app-surface); border: 1px solid #b9c1ce; border-radius: var(--app-radius); color: var(--app-text); display: block; font: inherit; min-height: 32px; padding: 5px 8px; width: 100%; }
.form-control:focus { border-color: var(--app-primary); box-shadow: 0 0 0 2px rgb(15 97 253 / 18%); outline: 0; }
.form-check { align-items: center; display: flex; gap: 7px; }
.form-check-input { margin: 0; }
.btn { background: var(--app-primary); border: 1px solid var(--app-primary); border-radius: var(--app-radius); color: #fff; cursor: pointer; display: inline-block; font: inherit; line-height: 1.3; margin: 0 4px 4px 0; padding: 6px 10px; text-decoration: none; }
.btn:hover { background: #0849c3; border-color: #0849c3; color: #fff; }
.btn-secondary { background: transparent; border-color: #8c96a5; color: var(--app-text); }
.btn-secondary:hover { background: var(--app-surface-alt); color: var(--app-text); }
.btn-dark { background: #343b42; border-color: #343b42; }
.btn-info { background: var(--app-primary); }
.btn-success { background: #198754; border-color: #198754; }
.btn-danger { background: #b42318; border-color: #b42318; }
.btn-lg { font-size: 15px; padding: 8px 14px; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible { outline: 2px solid var(--app-primary); outline-offset: 2px; }
.table { border-collapse: collapse; margin-bottom: 16px; width: 100%; }
.table th, .table td { border-bottom: 1px solid var(--app-border); padding: 8px 6px; text-align: left; vertical-align: middle; }
.table th { background: var(--app-surface-alt); font-weight: 600; }
.table tbody tr:hover { background: var(--app-surface-alt); }
.section-tabs { border-bottom: 1px solid var(--app-border); display: flex; gap: 4px; margin-bottom: 20px; }
.section-tabs a { border-bottom: 2px solid transparent; color: var(--app-muted); padding: 8px 12px; text-decoration: none; }
.section-tabs a:hover, .section-tabs a.is-active { border-bottom-color: var(--app-primary); color: var(--app-primary); }
.alert { border: 1px solid; border-radius: var(--app-radius); margin: 12px 0; padding: 10px 12px; }
.alert-danger { background: #fff2f0; border-color: #f2b8b5; color: #7d1d16; }
.alert-warning { background: #fff8e1; border-color: #efd48a; color: #6b4c00; }
.text-danger, .danger { color: #b42318; }
.text-muted { color: var(--app-muted); }
.float-right { float: right; } .ml-auto { margin-left: auto; } .ml-1 { margin-left: 4px; } .m-3 { margin: 16px; }
.mt-3 { margin-top: 16px; } .mb-3 { margin-bottom: 16px; } .p-0 { padding: 0; }
.list-inline { list-style: none; margin: 0; padding: 0; } .list-inline-item { display: inline-block; margin-right: 5px; }
.welcome-page li { list-style: none; padding: 4px; }
.logged-out-page iframe { display: none; height: 0; width: 0; }
.grants-page .card { margin-top: 20px; }
.login-column { display: flex; }
.login-card { display: flex; flex-direction: column; width: 100%; }
.login-card .card-body { flex: 1; }
.login-card--external .card-header { background: rgb(15 97 253 / 8%); }
.login-providers { list-style: none; margin: 0; padding: 0; }
.login-providers li { margin: 0; }
.login-provider { display: block; text-align: center; width: 100%; }
[hidden] { display: none !important; }
@media (max-width: 700px) {
  .app-nav { align-items: flex-start; flex-wrap: wrap; gap: 6px; padding: 4px 10px; }
  .app-nav__links { order: 3; width: 100%; }
  .app-nav__account { margin-left: auto; }
  .page-shell { margin-top: 28px; padding: 0 12px 28px; }
  .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-10, .col-sm-12 { flex-basis: 100%; max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
