.portal-masthead, .portal-masthead * { box-sizing: border-box; }
.portal-masthead { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 26px clamp(20px, 5vw, 72px); border-bottom: 1px solid #29302e; background: #0b100e; color: #f5f7f6; }
.portal-masthead .portal-brand { display: flex; align-items: center; gap: 14px; color: #f5f7f6; text-decoration: none; flex-shrink: 0; }
.portal-mark { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; color: #b6edce; background: #183429; border: 1px solid #345747; }
.portal-mark svg { width: 30px; height: 30px; }
.portal-name { display: block; font-size: 23px; font-weight: 700; letter-spacing: -.7px; line-height: 1.25; }
.portal-subtitle { display: block; margin-top: 5px; color: #abbab2; font-size: 12px; font-weight: 400; letter-spacing: .4px; line-height: 1.4; }
.portal-platforms { display: flex; gap: 10px; }
.portal-masthead .portal-platform { display: flex; align-items: center; gap: 12px; min-height: 62px; padding: 10px 16px; color: #f5f7f6; text-decoration: none; border: 1px solid #39433e; border-radius: 12px; background: #151c18; transition: background .18s, border-color .18s; }
.portal-platform svg { width: 23px; height: 23px; flex-shrink: 0; color: #b6edce; }
.platform-caption { display: block; font-size: 10px; line-height: 1.4; color: #abbab2; font-weight: 400; }
.platform-name { display: block; font-size: 14px; line-height: 1.5; font-weight: 650; white-space: nowrap; }
.platform-arrow { font-size: 16px; color: #8fa69a; margin-left: 6px; }
.portal-masthead .portal-platform-web { background: #20382c; border-color: #426450; }
.portal-masthead .portal-platform:hover { color: white; background: #294233; border-color: #92c5a8; }
.portal-masthead a:focus-visible { outline: 3px solid #b6edce; outline-offset: 4px; }
body.portal-public { display: flex; flex-direction: column; justify-content: flex-start; align-items: center; height: auto; min-height: 100vh; min-height: 100svh; padding: 0; background: radial-gradient(ellipse at 50% 0%, #15251c 0%, #080c09 52%, #050505 100%); }
.portal-public > .container { box-sizing: border-box; flex-shrink: 0; width: calc(100% - 40px); max-width: 480px; margin: 64px auto; padding: 40px; border: 1px solid #344138; box-shadow: 0 24px 70px #0004; background: #111713; color: #f5f5f5; }
.portal-public > .container h1 { font-size: 32px; letter-spacing: -1px; line-height: 1.2; }
.portal-public > .container > p { color: #b9c5be; }
.portal-public .btn-primary, .portal-public button[type=submit] { background: #b6edce; color: #10251a; }
.portal-public .btn-primary:hover, .portal-public button[type=submit]:hover { background: #d1f8e0; }
.portal-public .btn-secondary { background: #24342a; color: #f5f5f5; border-color: #445b4b; }
.portal-public .btn:focus-visible, .portal-public button:focus-visible { outline: 3px solid #b6edce; outline-offset: 4px; }
.portal-public .portal-eyebrow { color: #b6edce; font-size: 11px; font-weight: 600; letter-spacing: 2px; margin: 0 0 20px; }
body > .header { flex-wrap: wrap; gap: 14px; }
@media (max-width: 900px) {
  .portal-masthead { flex-direction: column; align-items: flex-start; gap: 22px; padding: 24px; }
  .portal-platforms { width: 100%; }
  .portal-platforms .portal-platform { flex: 1; justify-content: center; }
  body > .header .header-left { flex-wrap: wrap; gap: 12px; }
  body > .header .nav-links { display: flex; flex-wrap: wrap; gap: 10px 16px; }
  body > .header .nav-links a { margin-right: 0; }
}
@media (max-width: 480px) {
  .portal-masthead { padding: 22px 18px; }
  .portal-platforms { gap: 7px; }
  .portal-platforms .portal-platform { padding: 11px 7px; flex-direction: column; gap: 7px; text-align: center; }
  .platform-arrow { display: none; }
  .platform-name { font-size: 13px; }
  .platform-caption { font-size: 9px; }
  .portal-public > .container { margin: 32px auto; padding: 28px 22px; }
  .portal-public > .container h1 { font-size: 28px; }
  .portal-public .form-row { flex-wrap: wrap; }
}

/* Personal account portal */
.account-page { margin:0; background:radial-gradient(ellipse at 10% 0%,#173025 0%,#0b110e 45%,#080c0a 100%); color:#f0f6f2; font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; line-height:1.6; }
.account-page * { box-sizing:border-box; }
.account-nav { display:flex; justify-content:space-between; flex-wrap:wrap; gap:16px; padding:18px clamp(20px,5vw,72px); border-bottom:1px solid #2b3b30; background:#101a14; font-size:14px; }
.account-nav div { display:flex; gap:24px; flex-wrap:wrap; }
.account-nav a { color:#b9c9bf; text-decoration:none; font-weight:600; }
.account-nav a[aria-current],.account-nav a:hover { color:#b6edce; }
.account-nav span a { margin-left:20px; }
.account-shell { max-width:1120px; padding:0 28px; margin:48px auto 80px; }
.account-welcome { margin-bottom:32px; }
.eyebrow { color:#b6edce; font-size:11px; letter-spacing:1.8px; font-weight:700; }
.account-welcome h1 { font-size:clamp(30px,4vw,44px); letter-spacing:-1.3px; line-height:1.2; margin:12px 0; overflow-wrap:anywhere; }
.account-welcome p:not(.eyebrow) { color:#b9c9bf; font-size:17px; }
.account-grid { display:grid; grid-template-columns:.85fr 1.15fr; gap:26px; align-items:start; }
.account-card { padding:30px; background:#131e17; border:1px solid #354a3c; border-radius:20px; margin-bottom:24px; }
.account-card h2 { font-size:24px; letter-spacing:-.6px; margin:10px 0 16px; line-height:1.3; }
.account-card h3 { font-size:17px; margin:18px 0 8px; }
.account-card p { color:#bdccc2; }
.count { float:right; font-size:13px; font-weight:600; letter-spacing:0; background:#253d2e; color:#c8ecd6; border-radius:30px; padding:6px 12px; }
.account-button,.account-page button { display:inline-block; background:#b6edce; color:#10251a; font:600 15px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; padding:13px 20px; border:0; border-radius:10px; text-decoration:none; cursor:pointer; }
.account-button:hover,.account-page button:hover { background:#d1f8e0; }
.account-page a:focus-visible,.account-page button:focus-visible,.account-page input:focus-visible,.account-page summary:focus-visible { outline:3px solid #b6edce; outline-offset:4px; }
.account-page .form-group { margin:16px 0; }
.account-page label { display:block; font-size:14px; font-weight:600; margin-bottom:7px; color:#e3ece6; }
.account-page input[type=text],.account-page input[type=email] { width:100%; min-width:0; border:1px solid #4b6353; border-radius:9px; padding:12px; background:#0d1610; color:#f0f6f2; font:16px -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
.account-page .toggle-row { display:flex; align-items:center; gap:22px; justify-content:space-between; padding:18px; border:1px solid #415c49; border-radius:12px; background:#1a2e21; }
.account-page input[type=checkbox] { width:24px; height:24px; flex-shrink:0; accent-color:#b6edce; }
.small { font-size:13px; }.muted { color:#adbcaf; }.toggle-row .small { display:block; margin-top:4px; font-weight:400; }
.account-page hr { border:0; border-top:1px solid #354a3c; margin:26px 0; }
.account-page summary { cursor:pointer; font-weight:600; }.admin-settings { margin:24px 0; }
.empty-phone { font-size:100px; line-height:1.5; text-align:center; color:#729e82; }
.phone-summary-list { list-style:none; padding:0; margin:24px 0; }.phone-summary-list li { display:flex; align-items:center; gap:12px; padding:14px 0; border-bottom:1px solid #354a3c; overflow-wrap:anywhere; }.phone-icon { font-size:34px; color:#b6edce; }.linked-label { margin-left:auto; font-size:12px; color:#b6edce; }
.account-alert { padding:16px 20px; border-radius:10px; margin:16px 0; border:1px solid #496a53; background:#1a3525; }.account-alert.error { background:#401e20; border-color:#875054; }
.phone-entry { padding:12px 0 24px; border-bottom:1px solid #354a3c; }.phone-entry:last-child { border:0; padding-bottom:0; }.phone-entry h3 { overflow-wrap:anywhere; }.phone-rename { display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin-bottom:12px; }.phone-rename label { width:100%; margin:0; }.phone-rename input[type=text] { flex:1; min-width:150px; }.account-page .remove-phone { color:#ffceca; background:transparent; padding-left:0; text-decoration:underline; }
.phone-page .container { max-width:850px; }.phone-page .card { background:#131e17; border-color:#354a3c; }.phone-page .instructions { background:#1a2e21; color:#c3daca; }.phone-page .search-box { flex-wrap:wrap; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }
@media(max-width:720px) { .account-grid { grid-template-columns:1fr; gap:0; }.account-shell { padding:0 18px; margin-top:32px; }.account-card { padding:24px; }.account-nav { padding:16px 20px; }.account-nav div { gap:18px; }.phone-page .container { padding:0 18px; }.phone-page .search-box button { width:100%; } }
