:root {
  --bg: #061521;
  --panel: #0b2334;
  --line: #29485d;
  --text: #f5f1e8;
  --muted: #88a2b3;
  --gold: #f4b753;
  --cyan: #55c5eb;
  --green: #43d7a0;
  --red: #ef7c78;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); font-family: Inter, "Segoe UI", Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.portal-header { position: sticky; z-index: 20; top: 0; height: 74px; display: flex; align-items: center; gap: 24px; padding: 0 max(24px, calc((100vw - 1180px) / 2)); border-bottom: 1px solid rgba(74,112,136,.35); background: rgba(6,21,33,.94); backdrop-filter: blur(18px); }
.portal-brand { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 800; }
.portal-brand img { width: 34px; height: 34px; object-fit: contain; }
.portal-brand strong { color: var(--gold); }
.portal-nav { display: flex; gap: 24px; margin-left: auto; color: #9ab0be; font-size: 12px; }
.portal-nav a:hover { color: white; }
.portal-action { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; border: 1px solid rgba(244,183,83,.5); border-radius: 6px; background: var(--gold); color: #071624; font-size: 12px; font-weight: 800; cursor: pointer; }
.portal-main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 72px 0 88px; }
.portal-hero { max-width: 780px; margin-bottom: 44px; }
.portal-kicker { margin: 0 0 13px; color: var(--cyan); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.portal-hero h1 { margin: 0; font-family: Georgia, serif; font-size: clamp(42px, 6vw, 72px); font-weight: 500; line-height: 1.02; }
.portal-hero > p:last-child { max-width: 700px; margin: 20px 0 0; color: var(--muted); font-size: 16px; line-height: 1.7; }
.docs-hero { max-width: 920px; }
.doc-quick-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.doc-quick-actions a { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0 15px; border: 1px solid rgba(85,197,235,.35); border-radius: 6px; background: rgba(85,197,235,.08); color: #d8f3ff; font-size: 12px; font-weight: 800; }
.doc-quick-actions a:hover { border-color: rgba(244,183,83,.65); color: white; }
.status-summary, .portal-card, .link-card { border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(145deg, rgba(15,45,66,.93), rgba(8,28,43,.96)); }
.status-summary { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; padding: 24px; }
.status-light { width: 16px; height: 16px; flex: 0 0 auto; border-radius: 50%; background: #6d8190; box-shadow: 0 0 0 7px rgba(109,129,144,.1); }
.status-light.online { background: var(--green); box-shadow: 0 0 0 7px rgba(67,215,160,.11); }
.status-light.issue { background: var(--red); box-shadow: 0 0 0 7px rgba(239,124,120,.11); }
.status-summary h2 { margin: 0 0 5px; font-size: 20px; }
.status-summary p { margin: 0; color: var(--muted); font-size: 12px; }
.status-time { margin-left: auto; color: #6f8b9d; font-size: 11px; }
.status-grid, .link-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.status-service { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 14px; padding: 20px; }
.status-icon, .link-icon { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid #345b73; border-radius: 7px; color: var(--cyan); }
.status-icon svg, .link-icon svg { width: 20px; }
.status-service h3 { margin: 0 0 5px; font-size: 14px; }
.status-service p { margin: 0; color: var(--muted); font-size: 11px; }
.status-pill { padding: 7px 10px; border-radius: 999px; background: rgba(109,129,144,.12); color: #9db0bc; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.status-pill.online { background: rgba(67,215,160,.1); color: var(--green); }
.status-pill.issue { background: rgba(239,124,120,.1); color: var(--red); }
.doc-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 30px; }
.doc-sidebar { position: sticky; top: 98px; align-self: start; display: grid; gap: 6px; }
.doc-sidebar a { padding: 11px 12px; border-left: 2px solid transparent; border-radius: 4px; color: var(--muted); font-size: 12px; }
.doc-sidebar a:hover { border-left-color: var(--gold); background: var(--panel); color: white; }
.doc-content { display: grid; gap: 18px; }
.doc-section { scroll-margin-top: 96px; padding: 26px; }
.doc-section-title { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.doc-section-title span { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(85,197,235,.35); border-radius: 6px; background: rgba(85,197,235,.08); color: var(--cyan); font-size: 11px; font-weight: 900; }
.doc-section h2 { margin: 0 0 8px; font-size: 22px; }
.doc-section h3 { margin: 22px 0 7px; font-size: 14px; color: var(--cyan); }
.doc-section p, .doc-section li { color: var(--muted); font-size: 13px; line-height: 1.7; }
.doc-section ol, .doc-section ul { margin-bottom: 0; padding-left: 20px; }
.doc-section code { padding: 2px 5px; border-radius: 4px; background: #061724; color: var(--gold); }
.doc-note { padding: 12px 14px; border: 1px solid rgba(244,183,83,.28); border-radius: 6px; background: rgba(244,183,83,.07); color: #dcc48c !important; }
.doc-steps, .doc-grid, .doc-data-list, .confidence-row { display: grid; gap: 12px; margin-top: 18px; }
.doc-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.doc-steps div, .doc-grid article, .doc-data-list div, .confidence-row div { border: 1px solid rgba(74,112,136,.75); border-radius: 7px; background: rgba(4,18,29,.35); padding: 16px; }
.doc-steps strong, .doc-data-list strong, .confidence-row strong { display: block; margin-bottom: 7px; color: var(--text); font-size: 13px; }
.doc-steps p, .doc-grid p, .doc-data-list span, .confidence-row span { display: block; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.doc-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.doc-data-list { grid-template-columns: 1fr; }
.confidence-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.confidence-row div:nth-child(1) { border-color: rgba(85,197,235,.35); }
.confidence-row div:nth-child(2) { border-color: rgba(244,183,83,.35); }
.confidence-row div:nth-child(3) { border-color: rgba(67,215,160,.35); }
.doc-section details { border-top: 1px solid rgba(74,112,136,.55); padding: 14px 0; }
.doc-section details:first-of-type { margin-top: 12px; }
.doc-section summary { cursor: pointer; color: var(--text); font-size: 14px; font-weight: 800; }
.doc-section details p { margin-bottom: 0; }
.link-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.link-card { min-height: 205px; display: flex; flex-direction: column; padding: 24px; color: var(--text); text-align: left; cursor: pointer; transition: transform .18s ease, border-color .18s ease; }
.link-card:hover { transform: translateY(-3px); border-color: #426b84; }
.link-icon { width: 45px; height: 45px; margin-bottom: 28px; }
.link-card h2 { margin: 0 0 7px; font-size: 17px; }
.link-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.link-card .link-label { margin-top: auto; padding-top: 22px; color: var(--gold); font-size: 11px; font-weight: 800; }
.portal-footer { padding: 28px 20px; border-top: 1px solid var(--line); color: #6f8999; font-size: 11px; text-align: center; }
.copy-feedback { min-height: 18px; margin-top: 14px; color: var(--green); font-size: 11px; }
@media (max-width: 760px) {
  .portal-header { height: 66px; padding: 0 16px; }
  .portal-nav { display: none; }
  .portal-action { margin-left: auto; }
  .portal-main { width: min(100% - 28px, 1180px); padding-top: 46px; }
  .status-grid, .link-grid { grid-template-columns: 1fr; }
  .status-summary { align-items: flex-start; }
  .status-time { display: none; }
  .doc-layout { grid-template-columns: 1fr; }
  .doc-sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc-steps, .doc-grid.two, .confidence-row { grid-template-columns: 1fr; }
}
