:root {
  color-scheme: dark;
  --paper: #ead9b5;
  --paper-light: #f1e3c6;
  --paper-ink: #402d1c;
  --gold: #d4b46d;
  --brass-light: #f1d78b;
  --wood-dark: #2d1b12;
  --wood-mid: #684526;
  --forest-dark: #1c3429;
  --nav-bg: #0c2b2b;
  --nav-line: #516c65;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Arial, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 12px; }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: #f1e7d0;
  background: #0a1020 url('./assets/masterpi-thais-bay.png') center 38% / cover fixed no-repeat;
  font: 13px/1.45 var(--sans);
}
body::before { position: fixed; z-index: -1; inset: 0; content: ''; pointer-events: none; background: linear-gradient(90deg,#09102075 0%,#09102020 19%,transparent 50%,#09102020 81%,#09102075 100%),linear-gradient(180deg,#0b102033,transparent 48%,#090e1b55); }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid #f2d890; outline-offset: 2px; }
.skip-link { position: absolute; z-index: 30; top: -60px; left: 10px; padding: 8px 12px; color: #281d10; background: #f2dfb4; }
.skip-link:focus { top: 8px; }

.portal-frame { position: relative; z-index: 1; width: min(1370px, calc(100% - 28px)); min-height: 100vh; margin: 0 auto; }
.wayfinding-world { font-size: 15px; letter-spacing: .04em; }
.page-shell { display: grid; grid-template-columns: 177px minmax(0,1fr) 181px; align-items: start; gap: 16px; padding: 0 10px 26px 55px; }
.left-column, .center-column, .right-column { display: grid; min-width: 0; align-content: start; gap: 8px; }
.left-column { padding-top: 7px; }
.center-column { padding-top: 160px; }
.right-column { padding-top: 70px; }

.brand { display: grid; justify-items: center; align-content: start; gap: 4px; min-height: 150px; padding: 4px 2px 2px; text-align: center; text-shadow: 1px 2px 3px #080a11; }
.brand-mark { width: 110px; height: 110px; display: grid; place-items: center; clip-path: polygon(8% 0,92% 0,92% 62%,50% 100%,8% 62%); background: linear-gradient(145deg,#f0dc91,#866b37 48%,#dfc474); filter: drop-shadow(0 3px 4px #050812); }
.brand-mark-core { width: calc(100% - 8px); height: calc(100% - 8px); display: grid; place-items: center; clip-path: polygon(8% 0,92% 0,92% 62%,50% 100%,8% 62%); color: #f0d990; background: linear-gradient(145deg,#302d24,#18202a); box-shadow: inset 0 0 0 3px #101720; font: 700 30px var(--serif); letter-spacing: -2px; }
.brand-copy { display: grid; line-height: 1.06; }
.brand-copy strong { color: #f2e6cd; font: 700 22px var(--serif); letter-spacing: .11em; }
.brand-copy small { margin-top: 3px; color: #dfc77e; font-size: 7px; font-weight: 800; letter-spacing: .16em; }
.account-actions { display: grid; gap: 4px; margin-bottom: 38px; padding: 2px 1px 4px; }
.portal-action { display: flex; align-items: center; justify-content: center; width: 100%; position: relative; min-height: 42px; padding: 4px 8px 4px 25px; border: 5px ridge #ddbf70; outline: 1px solid #21150e; border-radius: 2px; color: #ffe9ad; background: linear-gradient(90deg,#28160f 0%,#6f3422 10%,#8a4a2a 50%,#51271b 90%,#24140e 100%); box-shadow: inset 0 2px 0 #ffe8a566,inset 0 -4px 7px #170b08,0 3px 6px #000c; font: 700 11px var(--serif); letter-spacing: .08em; text-transform: uppercase; text-shadow: 1px 2px #251209; }
.portal-action:disabled { cursor: not-allowed; opacity: .94; filter: saturate(.92); }
.login-action { background: linear-gradient(90deg,#28120f 0%,#762c20 10%,#9a3e2b 50%,#64251c 90%,#26120e 100%); }
.create-action { min-height: 34px; border-top: 5px ridge #ddbf70; color: #f6e9bf; background: linear-gradient(90deg,#19241a 0%,#344b2b 12%,#50633a 50%,#33472a 90%,#182319 100%); border-color: #cdb16a; font-size: 9px; }
.download-action { margin-top: 5px; background: linear-gradient(90deg,#2b1c11 0%,#765127 12%,#a27635 50%,#705026 90%,#26180f 100%); }
.sidebar-box { border: 5px ridge #9c7b40; outline: 2px solid #24170f; background: linear-gradient(135deg,#1d352c,#10231f 65%,#0a1917); box-shadow: inset 0 0 0 2px #d7bb7188,inset 0 0 0 5px #523820,0 4px 10px #000c; }
.sidebar-heading { position: relative; min-height: 34px; display: flex; align-items: center; margin: 0; padding: 5px 9px 5px 28px; border: 2px ridge #c5a253; border-bottom-width: 3px; color: #f5e5c2; background: linear-gradient(180deg,#77512f 0%,#53351f 52%,#362317 100%); box-shadow: inset 0 1px #f8dda866,inset 0 -2px #160d08; font: 700 14px var(--serif); text-shadow: 1px 2px #211309; }
.side-nav { display: grid; padding: 3px 4px 5px; background: linear-gradient(180deg,#152b24,#0c1d19); }
.side-nav .nav-group + .nav-group { margin-top: 3px; border-top: 1px solid #a58a50; }
.side-nav a { min-height: 30px; display: flex; align-items: center; padding: 5px 7px 5px 11px; border-bottom: 1px solid #c0a05b33; color: #e9dfc5; font: 600 11px var(--serif); text-shadow: 1px 1px #101713; }
.side-nav a:hover, .side-nav .side-active { color: #ffeab0; background: linear-gradient(90deg,#743225,#482019 78%,#251710); box-shadow: inset 0 1px #e7c77a88,inset 0 -1px #120b07; }
.account-panel p { margin: 8px; color: #dae0d3; font-size: 9px; }

.ticker-bar { min-height: 39px; display: flex; align-items: center; gap: 8px; padding: 5px 9px; border: 2px ridge #9f8860; color: #f1e7d3; background: linear-gradient(180deg,#792d2c 0%,#592122 52%,#39191e 100%); box-shadow: inset 0 1px #d0a07877,0 2px 5px #0009; }
.ticker-label { flex: 0 0 auto; color: #f3d78e; font: 800 8px var(--serif); letter-spacing: .08em; }
.ticker-bar p { margin: 0; font-size: 9px; }
.ticker-state { margin-left: auto; color: #e5ce91; font-size: 8px; font-weight: 800; }
.ticker-bar + .content-window { margin-top: 18px; }
.content-window { overflow: hidden; border: 5px ridge #a5874a; outline: 2px solid #24170f; background: #382719; box-shadow: inset 0 0 0 2px #e0c477aa,inset 0 0 0 5px #523820,0 4px 12px #000d; }
.wood-heading { min-height: 35px; display: flex; align-items: center; margin: 0; padding: 5px 12px; border-bottom: 3px double #d0ae5d; color: #f8e9c7; background: linear-gradient(180deg,#70422b 0%,#4a2b1d 52%,#2e1d15 100%); box-shadow: inset 0 2px #f3d28d55,inset 0 -2px #160d08; font: 700 16px var(--serif); text-shadow: 1px 2px #21130b; }
.portal-action::before { content: ""; position: absolute; left: 8px; top: 50%; width: 11px; height: 15px; transform: translateY(-50%); clip-path: polygon(8% 0,92% 0,92% 65%,50% 100%,8% 65%); border: 1px solid #f1d68a; background: linear-gradient(135deg,#e5c46f,#7c562b 55%,#3e2918); box-shadow: 0 0 0 1px #24160d; }
.sidebar-heading::before { content: ""; position: absolute; left: 8px; top: 50%; width: 12px; height: 16px; transform: translateY(-50%); clip-path: polygon(8% 0,92% 0,92% 65%,50% 100%,8% 65%); border: 1px solid #f2d487; background: linear-gradient(135deg,#b2402a,#642118 58%,#34140f); box-shadow: 0 0 0 1px #23150c; }
.wood-heading::before { content: "◆"; margin-right: 9px; color: #e2c06d; font-size: 12px; text-shadow: 0 1px #21130b; }
.promo-heading::before { content: "✦"; margin-right: 6px; color: #dfbf70; font-size: 12px; text-shadow: 0 1px #172116; }.paper-sheet { padding: 12px 14px; border: 4px ridge #bd9e61; color: var(--paper-ink); background: linear-gradient(135deg,#faedcf,#e8d2a8 58%,#f6e5c2); box-shadow: inset 0 0 0 2px #fff6df,inset 0 0 20px #7b552333; }
.paper-sheet p { margin: 6px 0; font-size: 10px; line-height: 1.55; }
.paper-title-row { display: flex; align-items: center; justify-content: space-between; padding-bottom: 7px; border-bottom: 1px solid #b39b71; }
.paper-date { color: #705735; font-size: 8px; font-weight: 900; letter-spacing: .1em; }
.paper-state { color: #624c2d; font-size: 7px; font-weight: 900; letter-spacing: .08em; }
.news-sheet { min-height: 166px; }
.news-sheet h2 { margin: 18px 0 7px; color: #432f1b; font: 600 20px var(--serif); }
.news-sheet p { max-width: 680px; margin: 0; font-size: 11px; }
.project-sheet p { margin-top: 0; font-size: 10px; }
.project-facts { display: grid; grid-template-columns: 1fr 1fr 1.15fr; gap: 6px; margin-top: 12px; }
.project-facts div { display: grid; gap: 3px; padding: 7px; border: 1px solid #ad956c; background: #f4e4c493; }
.project-facts span { color: #725b3a; font-size: 7px; font-weight: 800; letter-spacing: .08em; }
.project-facts strong { color: #45321e; font: 600 11px var(--serif); }
.split-sheet { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.split-sheet > div + div { padding-left: 10px; border-left: 1px solid #ad956c; }
.split-sheet p { min-height: 33px; }
.lower-content { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 0; background: transparent; box-shadow: none; }
.lower-content .paper-sheet { min-height: 118px; }
.lower-content .paper-sheet + .paper-sheet { border-left: 0; }
.lower-content h2 { margin: 5px 0; color: #45321e; font: 600 14px var(--serif); }
.lower-content p { margin: 0; }

.promo-box { overflow: hidden; border: 5px ridge #9b7d43; outline: 2px solid #24170f; background: #362619; box-shadow: inset 0 0 0 2px #d9bb6e99,inset 0 0 0 5px #523820,0 4px 10px #000c; }
.promo-heading { min-height: 34px; display: flex; align-items: center; justify-content: center; margin: 0; padding: 5px; border: 2px ridge #c4a35b; border-bottom: 3px double #d3b566; color: #f6e8c6; background: linear-gradient(180deg,#3e6043 0%,#29442f 52%,#1d3125 100%); box-shadow: inset 0 2px #f2dfa255,inset 0 -2px #111b14; font: 700 13px var(--serif); text-align: center; text-shadow: 1px 2px #172116; }
.promo-paper { padding: 9px; border: 4px ridge #b39a6b; color: #44331f; background: linear-gradient(145deg,#f7ebd1,#eddbb7); }
.status-item { display: flex; align-items: flex-start; gap: 6px; margin: 3px 0 9px; }
.status-light { width: 7px; height: 7px; flex: 0 0 auto; margin-top: 3px; border: 1px solid #64714c; border-radius: 50%; background: #a1a05d; }
.status-dim { border-color: #7d7b6b; background: #a7a18d; }
.status-item div { display: grid; }
.status-item b { font-size: 9px; }
.status-item small { color: #66543a; font-size: 8px; }
.promo-note { margin: 7px 0 0; padding-top: 6px; border-top: 1px solid #ad956c; color: #69563c; font-size: 8px; }
.promo-feature { padding: 0 0 9px; }
.promo-art { height: 90px; border-bottom: 2px solid #927a50; background: #171d2b url('./assets/masterpi-thais-bay.png') center 48% / cover no-repeat; }
.promo-feature h3 { margin: 8px 8px 4px; color: #493721; font: 600 12px var(--serif); }
.promo-feature p { margin: 0 8px 6px; color: #66543a; font-size: 8px; }
.promo-feature a { display: block; margin: 0 8px; color: #594328; font-size: 8px; font-weight: 800; }
.promo-feature a span { float: right; font-size: 13px; }
.promo-empty { min-height: 74px; display: grid; align-content: center; text-align: center; }
.promo-empty strong { color: #493922; font: 600 11px var(--serif); }

.center-column.is-account-view > :not(.registration-view) { display: none; }
.registration-view[hidden] { display: none; }
.account-inline-link { margin: 2px 10px 10px; padding: 5px 8px; border: 1px solid #cdb16a; color: #f0dca6; background: #1a2b24; font: 700 9px var(--serif); cursor: pointer; }
.account-inline-link:hover,.account-inline-link:focus-visible { color: #fff2c9; background: #35472e; outline: 2px solid #e3c879; outline-offset: 2px; }
.local-preview-link { display: inline-block; margin: 0 0 4px; color: #65431e; font-size: 10px; font-weight: 700; }
.local-preview-link[hidden] { display: none; }
.login-grid { max-width: 680px; }
.registration-sheet { padding: 14px; }
.registration-intro { margin: 0 0 12px; color: #57432b; font: 600 12px var(--serif); }
.registration-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.registration-field { min-width: 0; display: grid; gap: 4px; }
.registration-email { grid-column: 1 / -1; }
.registration-field label { color: #493721; font: 700 10px var(--serif); }
.registration-field input { width: 100%; min-height: 34px; padding: 6px 8px; border: 2px ridge #a5874a; border-radius: 2px; color: #f1e7d0; background: linear-gradient(180deg,#152b24,#0c1d19); box-shadow: inset 0 1px #e0c47755; font: 11px var(--sans); }
.registration-field input:focus { outline: 2px solid #78572b; outline-offset: 1px; border-color: #d4b46d; }
.registration-actions { display: flex; gap: 8px; margin-top: 12px; }
.registration-submit,.registration-back { min-height: 36px; width: auto; flex: 1; padding: 5px 9px; font-size: 9px; }
.registration-back { border: 4px ridge #9c7b40; color: #eee2c5; background: linear-gradient(90deg,#2b2419,#493620 50%,#2b2118); }
.registration-status { min-height: 18px; margin: 9px 0 0; color: #28452e; font-size: 10px; font-weight: 700; }
.registration-note { margin: 8px 0 0; padding-top: 7px; border-top: 1px solid #ad956c; color: #66543a; font-size: 9px; }
.registration-submit:disabled { cursor: wait; opacity: .7; }
@media (max-width: 650px) { .registration-grid { grid-template-columns: 1fr; } .registration-email { grid-column: auto; } .registration-actions { flex-direction: column; } }
.promo-empty p { margin: 5px 0 0; color: #66553a; font-size: 8px; }
.site-footer { min-height: 42px; display: flex; align-items: center; gap: 12px; padding: 7px 8px; border-top: 1px solid #c4b18488; color: #eee2ca; background: #10172382; font-size: 8px; text-shadow: 1px 1px #000; }
.footer-brand { color: #f1dfb8; font: 700 13px var(--serif); letter-spacing: .13em; }
.site-footer a { margin-left: auto; color: #e4ca89; }

@media (max-width: 1100px) {
  .portal-frame { width: min(100% - 18px, 1050px); }
  .page-shell { grid-template-columns: 142px minmax(0,1fr) 145px; gap: 8px; padding: 0 3px 22px; }
  .center-column { padding-top: 160px; }
  .right-column { padding-top: 70px; }
  .brand { gap: 4px; }
  .brand-mark { width: 76px; height: 76px; }
  .brand-mark-core { font-size: 22px; }
  .brand-copy strong { font-size: 17px; letter-spacing: .08em; }
  .brand-copy small { font-size: 6px; }
  .portal-action { min-height: 38px; font-size: 8px; }
  .create-action { min-height: 28px; }
}
@media (max-width: 680px) {
  .portal-frame { width: 100%; }
  .page-shell { grid-template-columns: 1fr; gap: 10px; padding: 0 8px 20px; }
  .left-column { grid-row: 1; grid-template-columns: 1fr 1.2fr; align-items: start; }
  .brand { display: flex; grid-column: 1 / -1; min-height: 58px; align-items: center; justify-content: flex-start; gap: 8px; padding-top: 0; text-align: left; }
  .brand-mark { width: 43px; height: 43px; }
  .brand-mark-core { font-size: 15px; }
  .brand-copy strong { font-size: 17px; }
  .account-actions { grid-column: 1; align-self: start; margin: 0; }
  .navigation-panel { grid-column: 2; grid-row: 2 / span 2; }
  .account-panel { grid-column: 1; }
  .center-column { grid-row: 2; padding-top: 0; }
  .right-column { grid-row: 3; grid-column: 1; grid-template-columns: 1fr 1fr; padding-top: 0; }
}
@media (max-width: 440px) {
  .left-column, .right-column, .lower-content, .split-sheet { grid-template-columns: 1fr; }
  .brand { grid-column: 1; }
  .account-actions, .navigation-panel, .account-panel { grid-column: 1; grid-row: auto; }
  .center-column { grid-row: 2; }
  .right-column { grid-row: 3; }
  .project-facts { grid-template-columns: 1fr 1fr; }
  .project-facts div:last-child { grid-column: 1 / -1; }
  .split-sheet > div + div { padding: 8px 0 0; border-top: 1px solid #ad956c; border-left: 0; }
  .lower-content .paper-sheet + .paper-sheet { border-top: 0; border-left: 3px double #8d744d; }
  .site-footer { flex-wrap: wrap; }
  .site-footer span:nth-child(2) { flex-basis: 100%; order: 3; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* R143: refinamento de legibilidade mantendo a moldura medieval existente. */
.page-shell { grid-template-columns: 194px minmax(0, 1fr) 205px; gap: 14px; padding-right: 14px; }
.portal-action { min-height: 44px; font-size: 12px; }
.create-action { min-height: 40px; font-size: 11px; }
.side-nav a { min-height: 36px; font-size: 13px; }
.account-panel p { font-size: 12px; line-height: 1.5; }
.ticker-label, .ticker-state { font-size: 10px; }
.ticker-bar p { font-size: 12px; line-height: 1.4; }
.wood-heading { min-height: 40px; font-size: 18px; }
.paper-sheet { padding: 14px 16px; }
.paper-sheet p, .project-sheet p { font-size: 13px; line-height: 1.6; }
.paper-date, .paper-state { font-size: 10px; }
.project-facts span { font-size: 9px; }
.project-facts strong { font-size: 13px; }
.lower-content h2 { font-size: 16px; }
.status-item { gap: 8px; margin-bottom: 10px; }
.status-item b { font-size: 12px; }
.status-item small { font-size: 11px; line-height: 1.45; }
.promo-note { font-size: 10px; line-height: 1.45; }
.promo-feature h3 { font-size: 15px; }
.promo-feature p, .promo-feature a, .promo-empty p { font-size: 11px; line-height: 1.45; }
.promo-empty strong { font-size: 14px; }
.account-inline-link { min-height: 36px; font-size: 11px; }
.registration-field label { font-size: 12px; }
.registration-field input { min-height: 40px; font-size: 14px; }
.registration-intro { font-size: 14px; }
.registration-status { font-size: 12px; line-height: 1.5; }
.registration-note { font-size: 11px; line-height: 1.5; }
.site-footer { font-size: 10px; }
.ranking-section { min-width: 0; }
.ranking-table-wrap { width: 100%; overflow-x: auto; margin: 10px 0 8px; }
.ranking-table { width: 100%; border-collapse: collapse; color: #402d1c; background: #f3e4c5; font-size: 12px; }
.ranking-table th, .ranking-table td { padding: 8px 9px; border: 1px solid #ad956c; text-align: left; }
.ranking-table th { color: #f7e8c7; background: linear-gradient(180deg,#64432b,#382519); font: 700 12px var(--serif); white-space: nowrap; }
.ranking-table td:first-child { width: 1%; color: #735626; font-weight: 800; text-align: center; }
.ranking-table tbody tr:nth-child(even) { background: #ead8b2; }
.ranking-table tbody tr:hover { background: #f8ebcf; }
.ranking-table tbody td[colspan] { color: #6b5738; font-style: italic; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.status-light.status-online { border-color: #345d2d; background: #64a54b; box-shadow: 0 0 6px #74b957; }
.status-light.status-offline { border-color: #782e23; background: #b24735; }
.status-light.status-unknown { border-color: #89723f; background: #d2ae56; }
.world-updated { margin-top: 3px; }

@media (max-width: 900px) {
  .portal-frame { width: min(100% - 20px, 850px); }
  .page-shell { grid-template-columns: minmax(165px, .7fr) minmax(0, 1.8fr); gap: 12px; padding: 0 8px 22px; }
  .center-column { grid-column: 2; grid-row: 1 / span 2; padding-top: 78px; }
  .right-column { grid-column: 1; grid-row: 2; grid-template-columns: 1fr; padding-top: 0; }
  .brand { min-height: 130px; }
  .brand-mark { width: 86px; height: 86px; }
  .brand-mark-core { font-size: 24px; }
  .brand-copy strong { font-size: 19px; }
  .portal-action { font-size: 10px; }
  .create-action { font-size: 10px; }
}
@media (max-width: 680px) {
  .portal-frame { width: 100%; }
  .page-shell { grid-template-columns: 1fr; gap: 12px; padding: 0 9px 18px; }
  .left-column { grid-row: 1; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
  .brand { min-height: 58px; grid-column: 1 / -1; }
  .brand-mark { width: 48px; height: 48px; }
  .brand-mark-core { font-size: 16px; }
  .brand-copy strong { font-size: 18px; }
  .account-actions { grid-column: 1; margin: 0; }
  .navigation-panel { grid-column: 2; grid-row: 2 / span 2; }
  .account-panel { grid-column: 1; }
  .center-column { grid-column: 1; grid-row: 2; padding-top: 0; }
  .right-column { grid-column: 1; grid-row: 3; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ticker-bar { flex-wrap: wrap; }
  .ticker-state { margin-left: auto; }
  .ranking-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .ranking-table, .ranking-table tbody { display: block; width: 100%; }
  .ranking-table tr { display: grid; grid-template-columns: 1fr 1fr; margin: 0 0 8px; border: 1px solid #ad956c; }
  .ranking-table td { display: flex; justify-content: space-between; gap: 10px; border: 0; border-bottom: 1px solid #c8b58d; padding: 7px 8px; text-align: right; overflow-wrap: anywhere; }
  .ranking-table td::before { content: attr(data-label); color: #705735; font-weight: 800; text-align: left; }
  .ranking-table td[colspan] { grid-column: 1 / -1; text-align: left; }
  .ranking-table td[colspan]::before { content: none; }
  .ranking-table tr td:last-child, .ranking-table tr td:nth-last-child(2) { border-bottom: 0; }
  .site-footer { font-size: 11px; }
}
@media (max-width: 440px) {
  .left-column, .right-column, .lower-content, .split-sheet { grid-template-columns: 1fr; }
  .brand { grid-column: 1; }
  .account-actions, .navigation-panel, .account-panel { grid-column: 1; grid-row: auto; }
  .center-column { grid-row: 2; }
  .right-column { grid-row: 3; }
  .project-facts { grid-template-columns: 1fr 1fr; }
  .project-facts div:last-child { grid-column: 1 / -1; }
  .split-sheet > div + div { padding: 8px 0 0; border-top: 1px solid #ad956c; border-left: 0; }
  .lower-content .paper-sheet + .paper-sheet { border-top: 0; border-left: 3px double #8d744d; }
  .ranking-table tr { grid-template-columns: 1fr; }
  .ranking-table tr td:nth-last-child(2) { border-bottom: 1px solid #c8b58d; }
  .registration-actions { flex-direction: column; }
}

/* R2: keep the complete navigation visible on narrow touch viewports. */
@media (max-width: 680px) {
  .left-column { grid-template-columns: minmax(0, 1fr); }
  .navigation-panel, .account-actions, .account-panel { grid-column: 1; grid-row: auto; }
  .account-panel { min-width: 0; }
  .account-panel p { overflow-wrap: anywhere; }
  .ticker-bar p { min-width: 0; overflow-wrap: anywhere; }
}
