:root {
  color-scheme: light;
  font-family: "Segoe UI", Arial, sans-serif;
  color: #202833;
  background: #f0f2f5;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --text: #202833;
  --secondary: #607080;
  --border: #d0d5dd;
  --accent: #245d8c;
  --page: #f0f2f5;
  --panel: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--page); }
a { color: inherit; }
.portal-header {
  min-height: 60px; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 8px clamp(16px, 3vw, 32px); background: #202833; color: #f8fafc;
}
.portal-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.portal-brand > span:last-child { display: grid; gap: 1px; }
.portal-brand strong { font-size: 14px; line-height: 1.2; }
.portal-brand small { color: #c2ccd7; font-size: 11px; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #667487; border-radius: 8px; color: #fff; font-weight: 700; }
.header-context { color: #d5dce4; font-size: 13px; }
.portal-main { width: min(1100px, 100%); margin: 0 auto; padding: clamp(32px, 6vw, 72px) clamp(18px, 4vw, 48px) 64px; }
.eyebrow { margin: 0 0 10px; color: var(--secondary); font-size: 11px; font-weight: 700; letter-spacing: .1em; }
h1 { margin: 0; font-size: clamp(30px, 4vw, 44px); line-height: 1.14; font-weight: 600; letter-spacing: -.025em; }
.lead { max-width: 690px; margin: 14px 0 42px; color: var(--secondary); font-size: 16px; line-height: 1.55; }
.portal-section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 14px; }
.portal-section-heading h2 { margin: 0; font-size: 18px; font-weight: 600; }
.muted-count { color: var(--secondary); font-size: 13px; }
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 410px), 1fr)); gap: 14px; }
.catalog-card { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto 18px; align-items: start; gap: 14px; min-height: 132px; padding: 20px; color: var(--text); background: var(--panel); border: 1px solid var(--border); border-radius: 10px; text-decoration: none; transition: border-color .15s ease, background-color .15s ease; }
.catalog-card:hover { border-color: #aeb8c5; background: #fcfdff; }
.catalog-card:focus-visible { outline: 3px solid #8cb8da; outline-offset: 2px; }
.catalog-icon { display: grid; place-items: center; width: 44px; height: 44px; color: #244e6d; background: #e7eef5; border-radius: 9px; font-size: 13px; font-weight: 700; }
.catalog-card-body { display: grid; gap: 7px; min-width: 0; }
.catalog-group { color: var(--secondary); font-size: 12px; }
.catalog-card-body strong { font-size: 16px; line-height: 1.3; font-weight: 600; }
.catalog-description { color: var(--secondary); font-size: 13px; line-height: 1.45; }
.catalog-status { padding: 4px 8px; color: #486556; background: #eaf1ec; border-radius: 12px; font-size: 11px; white-space: nowrap; }
.catalog-arrow { color: #66778a; font-size: 24px; line-height: 1; }
.portal-footer { padding: 20px clamp(18px, 4vw, 48px); border-top: 1px solid var(--border); color: var(--secondary); font-size: 12px; text-align: center; }
.loading-message, .empty-state { color: var(--secondary); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #8cb8da; outline-offset: 2px; }
@media (max-width: 560px) {
  .portal-main { padding-top: 34px; }
  .lead { margin-bottom: 30px; font-size: 14px; }
  .catalog-card { grid-template-columns: 42px minmax(0, 1fr) 16px; gap: 10px; min-height: 0; padding: 16px; }
  .catalog-icon { width: 40px; height: 40px; }
  .catalog-status { grid-column: 2; grid-row: 2; justify-self: start; }
  .catalog-arrow { grid-column: 3; grid-row: 1; }
}
