/* Shared local account portal. The universe interfaces keep their own skins. */
.portal-page-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 18px 22px;
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  padding-block: 22px 19px;
  border-block-end: 1px solid rgba(145, 159, 208, .46);
  flex: 0 0 auto;
  overflow-anchor: none;
}
.portal-page-brand {
  grid-column: 1 / -1;
  grid-row: 1;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 9px;
  width: 100%;
  max-width: 580px;
  min-width: 0;
  margin-inline: auto;
  text-align: center;
}
.portal-page-brand img { display: block; width: 120px; max-width: 100%; height: auto; object-fit: contain; }
.portal-page-brand h1, .portal-page-brand .portal-page-title { margin: 0; color: #e2efff; font-size: 29px; line-height: 1.25; font-weight: 600; letter-spacing: -.025em; overflow-wrap: anywhere; }
.portal-page-brand p { margin: 0; max-width: 520px; color: #b7c6df; font-size: 13px; line-height: 1.5; }
.portal-page-tools { grid-column: 1 / -1; grid-row: 1; justify-self: end; display: grid; justify-items: end; align-content: start; gap: 7px; min-width: 0; padding-block-start: 5px; }
.portal-nav { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 1fr; align-items: stretch; gap: 10px; width: 100%; min-width: 0; margin: 0; padding: 0; }
.portal-nav > a, .portal-nav > button, .portal-document-nav > a, .portal-document-nav > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  max-width: 100%;
  padding: 9px 15px;
  border: 1px solid #596d91;
  border-radius: 8px;
  color: #d8e8ff;
  background: rgba(11, 21, 39, .95);
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.portal-nav > a:hover, .portal-nav > button:hover, .portal-document-nav > a:hover, .portal-document-nav > button:hover { border-color: #a0cee9; background: #1a2a43; }
.portal-nav > a:focus-visible, .portal-document-nav > a:focus-visible, .portal-back-link:focus-visible { outline: 2px solid #83e6ff; outline-offset: 4px; }
.portal-nav [aria-current="page"], .portal-document-nav [aria-current="page"] { border-color: #93dbf1; color: #f0f8ff; background: #1c3048; }
.portal-nav > a, .portal-nav > button { width: 100%; min-width: 0; min-height: 52px; padding: 13px 16px; border-color: #64799c; border-radius: 10px; background: linear-gradient(120deg, #14243b, #0c172a 72%, #1a142b); box-shadow: inset 0 1px 0 rgba(188, 219, 255, .08), 0 4px 12px rgba(0, 0, 0, .13); font-size: 14px; font-weight: 500; white-space: normal; hyphens: auto; }
.portal-nav > a:hover, .portal-nav > button:hover { border-color: #a0d8ed; background: linear-gradient(120deg, #1b314b, #122139 72%, #241b38); color: #f2f7ff; }
.portal-nav [aria-current="page"] { border-color: #a2dcf0; background: linear-gradient(120deg, #203b52, #172b42 72%, #2b1f3b); color: #f4faff; }
.portal-nav > a:focus-visible, .portal-nav > button:focus-visible { outline: 2px solid #83e6ff; outline-offset: 3px; }
.portal-page-main { display: grid; flex: 0 0 auto; gap: 20px; width: 100%; max-width: 1100px; min-width: 0; margin: 29px auto 32px; overflow-anchor: none; }
.portal-page-main > * { min-width: 0; }
.universe-card button:disabled { opacity: .45; box-shadow: none; filter: saturate(.35); }
.portal-panel, .portal-document {
  min-width: 0;
  padding: 25px;
  border: 1px solid #627396;
  border-radius: 16px;
  background: linear-gradient(115deg, #101a2c, #090f1e 73%, #160f25);
  color: #dfe9fb;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .2);
}
.portal-panel-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; margin-block-end: 17px; }
.portal-panel-heading h2, .portal-panel > h2 { margin: 0; color: #e1efff; font-size: 22px; line-height: 1.3; font-weight: 600; letter-spacing: -.015em; }
.portal-panel-intro { margin: 0 0 18px; max-width: 820px; color: #bccbe3; font-size: 14px; line-height: 1.6; }
.portal-panel-heading .portal-panel-intro { margin: 0; }
.portal-action-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; align-items: stretch; gap: 12px; min-width: 0; margin-block-start: 18px; }
.portal-action-grid--legal, .portal-action-grid--community { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.portal-action-grid--account { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.portal-action-grid .portal-action-link { display: flex; align-items: center; justify-content: flex-start; gap: 13px; width: 100%; min-width: 0; min-height: 76px; padding: 17px 18px; border: 1px solid #647898; border-radius: 11px; background: linear-gradient(125deg, #16263d, #0c1729 75%, #1b152d); color: #dfedff; box-shadow: inset 0 1px 0 rgba(192, 219, 255, .07), 0 5px 15px rgba(0, 0, 0, .12); font-size: 14px; line-height: 1.45; font-weight: 500; text-align: start; text-decoration: none; white-space: normal; overflow-wrap: anywhere; hyphens: auto; }
.portal-action-grid .portal-action-link:hover { border-color: #a0d9ed; background: linear-gradient(125deg, #203750, #13243b 75%, #291d3b); color: #f1f7ff; }
.portal-action-grid .portal-action-link:focus-visible { outline: 2px solid #83e6ff; outline-offset: 3px; }
.portal-action-grid .portal-action-link[aria-current="page"] { border-color: #a2dcf0; background: linear-gradient(125deg, #203b52, #172b42 75%, #2b1f3b); color: #f4faff; }
.portal-action-icon { display: grid; place-items: center; flex: 0 0 28px; width: 28px; height: 28px; color: #b3dfff; }
.portal-action-icon svg, svg.portal-action-icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.portal-action-label { display: block; flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.universe-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.universe-card { display: flex; flex-direction: column; gap: 16px; min-width: 0; padding: 22px; border: 1px solid #607396; border-radius: 13px; background: #0b1425; }
.universe-card[data-state="active"], .universe-card.is-active { border-color: #7dbacf; background: linear-gradient(135deg, #132238, #0a1527); }
.universe-card[data-state="closed"], .universe-card.is-closed { border-color: #726282; background: linear-gradient(135deg, #1a192b, #101525); }
.universe-card-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; }
.universe-card-title, .universe-card h2, .universe-card h3 { margin: 0; color: #e4efff; font-size: 24px; line-height: 1.25; font-weight: 600; }
.universe-state { display: inline-flex; align-items: center; align-self: flex-start; min-height: 27px; padding: 4px 10px; border: 1px solid #6d819d; border-radius: 20px; color: #cceaff; background: #172a3d; font-size: 11px; line-height: 1.4; }
.universe-state[data-state="closed"], .is-closed .universe-state, [data-state="closed"] > .universe-card-header .universe-state { border-color: #796a8f; color: #d9c8ee; background: #292037; }
.universe-card p { margin: 0; color: #bdcce4; font-size: 13px; line-height: 1.6; }
.universe-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; margin: 0; padding: 0; list-style: none; }
.universe-facts > div, .universe-facts > li { min-width: 0; }
.universe-facts dt, .universe-facts .fact-label { color: #aebfd9; font-size: 12px; line-height: 1.5; }
.universe-facts dd, .universe-facts .fact-value { margin: 3px 0 0; color: #e0ecff; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.universe-action { margin-block-start: auto; }
.universe-action .primary-button, .universe-action .secondary-button { width: 100%; }
.universe-card > .primary-button, .universe-card > .secondary-button { width: 100%; margin-block-start: auto; }
.portal-settings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.portal-fold { min-width: 0; border: 1px solid #5b7092; border-radius: 12px; background: #0b1425; overflow-anchor: none; }
.portal-fold > summary { min-height: 52px; padding: 14px 18px; border-radius: 11px; color: #e1edff; font-size: 15px; font-weight: 500; list-style-position: inside; cursor: pointer; overflow-wrap: anywhere; }
.portal-fold > summary:hover { background: #17263d; }
.portal-fold[open] > summary { border-block-end: 1px solid #465b7c; border-end-start-radius: 0; border-end-end-radius: 0; }
.portal-fold-body, .portal-fold > .portal-form { padding: 18px; }
.portal-fold-body > p { margin: 0 0 15px; color: #b9c9e2; font-size: 13px; line-height: 1.6; }
.portal-form { display: grid; gap: 17px; min-width: 0; }
.portal-form .field { min-width: 0; }
.portal-form .field-label, .portal-form > label { color: #dce8fa; font-size: 14px; }
.portal-form input:not([type="checkbox"]):not([type="radio"]), .portal-form select, .portal-form textarea { box-sizing: border-box; width: 100%; min-width: 0; min-height: 46px; padding: 10px 12px; border: 1px solid #7382a1; border-radius: 7px; background: #0a1527; color: #edf3ff; font-size: 16px; }
.portal-form input::placeholder, .portal-form textarea::placeholder { color: #9faec8; opacity: 1; }
.portal-form input[type="checkbox"], .portal-form input[type="radio"] { accent-color: #83e6ff; }
.portal-form .primary-button { justify-self: start; min-width: 180px; font-size: 15px; }
.portal-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.portal-form-note { margin: 0; color: #aebed7; font-size: 12px; line-height: 1.6; }
.portal-status { margin: 0; padding: 10px 12px; border-inline-start: 2px solid #83cde9; color: #ceebff; background: #14283c; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.portal-status:empty { display: none; }
.portal-status[data-state="error"] { border-color: #e5a3c8; color: #ffe0ee; background: #321d31; }
.portal-alert { margin: 0; padding: 13px 16px; border-inline-start: 2px solid #88cce8; border-radius: 0 7px 7px 0; color: #c6d9ee; background: #14243a; font-size: 13px; line-height: 1.65; }
html[dir="rtl"] .portal-alert { border-radius: 7px 0 0 7px; }
.portal-alert p { margin: 0; }
.portal-alert p + p { margin-block-start: 8px; }
.portal-document { width: 100%; max-width: 920px; margin-inline: auto; padding: 29px; font-size: 15px; line-height: 1.75; }
.portal-panel .portal-document { padding: 0; border: 0; background: transparent; box-shadow: none; }
.portal-document h1 { margin: 0 0 20px; color: #e5f0ff; font-size: 30px; line-height: 1.25; font-weight: 600; letter-spacing: -.02em; }
.portal-document h2 { margin: 29px 0 10px; color: #deebff; font-size: 21px; line-height: 1.35; font-weight: 600; }
.portal-document h3 { margin: 23px 0 8px; color: #dbe9ff; font-size: 17px; line-height: 1.4; font-weight: 600; }
.portal-document p { margin: 0 0 15px; color: #c7d5eb; overflow-wrap: anywhere; }
.portal-document > :first-child { margin-block-start: 0; }
.portal-document > :last-child { margin-block-end: 0; }
.portal-document ul, .portal-document ol { margin: 10px 0 18px; padding-inline-start: 25px; color: #c7d5eb; }
.portal-document li + li { margin-block-start: 7px; }
.portal-document a { color: #aedaff; text-underline-offset: 3px; overflow-wrap: anywhere; }
.portal-document strong { color: #e2ecfc; font-weight: 600; }
.portal-document pre { margin: 15px 0; white-space: pre-wrap; overflow-wrap: anywhere; color: #c9d8ed; font-size: 13px; }
.portal-document table { width: 100%; border-collapse: collapse; font-size: 13px; }
.portal-document th, .portal-document td { padding: 11px 12px; border-block-end: 1px solid #3d4f6d; text-align: start; vertical-align: top; overflow-wrap: anywhere; }
.portal-document th { color: #e0edff; font-weight: 600; }
.portal-document-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; width: 100%; max-width: 920px; margin: 0 auto; }
.portal-back-link { display: block; width: fit-content; max-width: 100%; margin-inline: auto; text-align: center; }
@media (max-width: 900px) {
  .portal-action-grid--legal, .portal-action-grid--community { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .portal-page-header { gap: 16px; padding-block-start: 18px; }
  .portal-page-brand { max-width: 400px; }
  .portal-page-brand h1, .portal-page-brand .portal-page-title { font-size: 25px; }
  .portal-panel { padding: 21px; }
  .universe-card { padding: 19px; }
  .portal-settings { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 800px) {
  .portal-page-header { display: flex; flex-direction: column; align-items: center; gap: 16px; }
  .portal-page-brand { max-width: 100%; }
  .portal-page-tools { justify-items: center; padding-block-start: 0; }
}
@media (max-width: 680px) {
  .portal-page-header { display: flex; flex-direction: column; align-items: center; gap: 16px; }
  .portal-page-brand { max-width: 100%; }
  .portal-page-brand img { width: 106px; }
  .portal-page-tools { justify-items: center; padding-block-start: 0; }
  .portal-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; gap: 8px; }
  .portal-nav > a, .portal-nav > button { min-height: 52px; padding-inline: 12px; font-size: 13px; }
  .portal-page-main { gap: 16px; margin-block-start: 22px; }
  .universe-grid { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .portal-document { padding: 23px; font-size: 14px; }
  .portal-document h1 { font-size: 26px; }
}
@media (max-width: 520px) {
  .portal-action-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .portal-action-grid--legal, .portal-action-grid--community { grid-template-columns: minmax(0, 1fr); }
  .portal-action-grid .portal-action-link { gap: 10px; min-height: 70px; padding: 14px; font-size: 13px; }
  .portal-action-icon { flex-basis: 24px; width: 24px; height: 24px; }
  .portal-action-icon svg, svg.portal-action-icon { width: 22px; height: 22px; }
}
@media (max-width: 420px) {
  .portal-panel { padding: 18px; border-radius: 13px; }
  .portal-panel-heading h2, .portal-panel > h2 { font-size: 20px; }
  .portal-panel-intro { font-size: 13px; }
  .universe-card { padding: 18px; }
  .universe-card-title, .universe-card h2, .universe-card h3 { font-size: 22px; }
  .universe-facts { gap: 10px 14px; }
  .portal-fold-body, .portal-fold > .portal-form { padding: 15px; }
  .portal-form .primary-button { width: 100%; min-width: 0; }
  .portal-document { padding: 19px; }
  .portal-document h1 { font-size: 24px; }
  .portal-document h2 { font-size: 19px; }
  .portal-document-nav > a, .portal-document-nav > button { padding: 9px 11px; font-size: 12px; }
}
@media (pointer: coarse) {
  .portal-nav > a, .portal-nav > button, .portal-document-nav > a, .portal-document-nav > button { min-height: 44px; }
  .portal-fold > summary { min-height: 52px; }
  .portal-form input:not([type="checkbox"]):not([type="radio"]), .portal-form select { min-height: 48px; }
}
