.portal-chrome, .portal-footer { color: #dce8f6; }
.portal-chrome { position: sticky; top: 0; z-index: 70; background: #101927; border-bottom: 1px solid #b9955c61; }
.portal-chrome-inner { max-width: 1320px; margin: auto; padding: 7px max(12px,2vw); display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 8px 16px; }
.portal-chrome-brand { display: inline-flex; align-items: center; gap: 6px; color: #f1f4fc; font-size: 1.07rem; font-weight: 850; line-height: 1.15; white-space: nowrap; }
.portal-chrome-brand b { color: #edc47d; }
.portal-chrome-brand small { display: block; color: #a9bbcf; font-size: .53rem; letter-spacing: .07em; margin-top: 3px; }
.portal-chrome img, .portal-footer img { object-fit: contain; flex: none; }
.portal-chrome-nav { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 4px; }
.portal-chrome-nav a, .portal-chrome-actions > a { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 5px 6px; min-height: 40px; border: 1px solid #3b526c; border-radius: 8px; background: #152337; color: #e0ebfa; font-size: .76rem; font-weight: 740; text-align: center; }
.portal-chrome-nav a { min-width: 0; }
.portal-chrome-nav a:hover, .portal-chrome-nav a[aria-current="page"], .portal-chrome-actions > a:hover { border-color: #d2aa70; color: #ffe0a3; background: #22354b; }
.portal-chrome-actions { display: flex; align-items: center; gap: 5px; }
.portal-chrome-actions > a { padding-inline: 8px; white-space: nowrap; }
.portal-chrome-actions .portal-chrome-download { color: #142033; background: #efd09a; border-color: #f7dda9; }
.portal-chrome-actions .portal-chrome-download:hover { color: #142033; background: #ffe3ad; }
.portal-chrome-nav svg, .portal-chrome-actions > a svg { width: 17px; height: 17px; color: #e3c393; flex: none; }
.portal-chrome-actions .portal-chrome-download svg { color: #142033; }
.portal-chrome .alp-notifications { margin: 0; position: relative; }
.portal-chrome .alp-notifications summary { position: relative; display: grid; width: 40px; height: 40px; min-height: 40px; padding: 0; place-items: center; border: 1px solid #836740; border-radius: 8px; background: #222b38; color: #f6cf88; }
.portal-chrome .alp-notifications summary > b { position: absolute; right: -4px; top: -4px; background: #efb975; color: #20130c; border-radius: 20px; }
.portal-chrome .alp-notifications summary > b.is-support-unread { background: #db354f; color: #fff; }
.portal-chrome .alp-notifications summary > b[hidden] { display:none; }
.portal-chrome .alp-notifications > section { position: fixed; top: var(--notice-top,65px); right: max(10px,4vw); max-width: calc(100vw - 20px); }
.portal-chrome :is(a,summary,button):focus-visible, .portal-footer :is(a,button):focus-visible { outline: 2px solid #ecca8c; outline-offset: 2px; }

.portal-footer { border-top: 1px solid #3e556c; background: #101a2a; padding: 22px max(12px,3vw) 15px; margin-top: 20px; }
.portal-footer-inner { max-width: 1280px; margin-inline: auto; display: grid; grid-template-columns: 1.2fr repeat(3,minmax(0,1fr)); gap: 14px; align-items: start; }
.portal-footer-brand { display: grid; align-content: start; gap: 8px; }
.portal-footer-links { display: grid; gap: 2px 8px; grid-template-columns: repeat(2,minmax(0,1fr)); align-content: start; }
.portal-footer-links h2 { grid-column: 1/-1; margin: 0 0 4px; color: #f0ce95; font-size: .86rem; text-align: left; }
.portal-footer-links :is(a,button), .portal-footer-bottom a, .portal-footer-community { min-height: 30px; display: inline-flex; align-items: center; color: #bbcee4; font-size: .78rem; overflow-wrap: anywhere; }
.portal-footer-links :is(a,button):hover, .portal-footer-bottom a:hover, .portal-footer-community:hover { color: #ffdf9e; }
.portal-footer-links button { min-width: 0; padding: 0; background: transparent; box-shadow: none; border: 0; font-weight: inherit; letter-spacing: normal; text-transform: none; text-align: left; justify-content: flex-start; }
.page-events main, .page-news main:has(.market-web), .page-market_web_review main { padding-bottom: 24px; }
.portal-footer-social, .portal-footer-bottom { display: flex; flex-wrap: wrap; gap: 5px; }
.portal-footer-social a { display: inline-flex; align-items: center; min-height: 36px; padding: 4px 6px; gap: 4px; border: 1px solid #465c76; border-radius: 7px; color: #e5eefb; font-size: .7rem; }
.portal-footer-social a:nth-child(1) img { background: #424daa; border-radius: 4px; padding: 2px; }
.portal-footer-social a:nth-child(2) img { background: #993d70; border-radius: 4px; padding: 2px; }
.portal-footer-bottom { max-width: 1280px; margin: 13px auto 0; padding-top: 8px; column-gap: 14px; border-top: 1px solid #3a5068; }
.portal-footer-community { color: #edce93; }
@media(max-width: 1080px) {
  .portal-chrome-inner { grid-template-columns: minmax(0,1fr) auto; }
  .portal-chrome-nav { grid-row: 2; grid-column: 1/-1; }
  .portal-chrome .alp-notifications > section { top: var(--notice-top,106px); }
  .portal-footer-inner { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width: 600px) {
  .portal-chrome { position: relative; }
  .portal-chrome-inner { padding: 5px 7px; gap: 5px; }
  .portal-chrome-nav { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .portal-chrome-brand { font-size: .85rem; }
  .portal-chrome .portal-chrome-brand img { width: 31px; height: 34px; }
  .portal-chrome-brand small { font-size: .43rem; letter-spacing: .03em; }
  .portal-chrome-actions > a { padding-inline: 5px; }
  .portal-footer-inner { gap: 12px 8px; }
  .portal-footer-links { grid-template-columns: 1fr; }
  .portal-footer-brand, .portal-footer-links:nth-child(2) { grid-column: 1/-1; }
  .portal-footer-links:nth-child(2) { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .portal-footer-links :is(a,button), .portal-footer-bottom a { min-height: 34px; }
}
