/* Lightweight customer portal: server-rendered HTML, no JS framework. */
.portal-body { background: #f2f5fa; }
.portal-logo { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: #2463eb; color: white; font-weight: 800; font-size: 22px; }
.portal-header { height: 76px; padding: 0 max(24px, calc((100vw - 1320px)/2)); display: flex; align-items: center; justify-content: space-between; background: #101d34; color: #eaf1ff; }
.portal-brand { display: flex; gap: 12px; align-items: center; color: inherit; }
.portal-brand strong { font-size: 19px; }.portal-brand small { display: block; color: #9eafc9; font-size: 11px; font-weight: 400; margin-top: 3px; }
.portal-account { display: flex; gap: 18px; align-items: center; font-size: 13px; }
.portal-header .button { background: #21314a; border-color: #35445d; color: #dce7fa; }
.portal-main { max-width: 1320px; margin: 0 auto; padding: 34px 24px 60px; }
.portal-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 26px; }
.portal-heading p { margin-bottom: 0; }.portal-heading .eyebrow { margin-bottom: 8px; }
.portal-workspace { display: grid; grid-template-columns: 280px minmax(0,1fr); gap: 24px; align-items: start; }
.portal-people { padding: 20px 14px; }.portal-people h2 { padding: 0 8px; }
.people-list { display: grid; gap: 6px; margin: 16px 0; max-height: 55vh; overflow: auto; }
.person-link { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 10px; color: var(--ink); border: 1px solid transparent; }
.person-link:hover { background: #f4f7fc; }.person-link.selected { background: #edf3ff; border-color: #ceddfa; }
.person-link strong,.person-link small { display: block; overflow-wrap: anywhere; }.person-link strong { font-size: 14px; }.person-link small { font-size: 11px; color: var(--muted); margin-top: 4px; }
.person-avatar { width: 34px; height: 34px; flex-shrink: 0; display: grid; place-items: center; border-radius: 10px; background: #e2eafa; color: #3564b8; font-weight: 700; }
.portal-create { border-top: 1px solid var(--line); padding: 16px 8px 0; }.portal-create summary { color: var(--blue); font-weight: 600; cursor: pointer; }.portal-create form { margin-top: 18px; }
.portal-detail { display: grid; gap: 24px; }.self-tag { font-size: 11px; font-weight: 400; color: var(--blue); margin-left: 12px; }
.portal-profile { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 14px; margin: 18px 0; }
.portal-profile label,.portal-access-fields label { display: grid; gap: 7px; color: var(--muted); font-size: 12px; }
.portal-person-actions { display: flex; flex-wrap: wrap; align-items: start; gap: 16px; border-top: 1px solid var(--line); padding-top: 16px; }
.portal-person-actions details { max-width: 300px; }.portal-person-actions summary { cursor: pointer; font-size: 13px; padding: 8px 0; }.portal-person-actions form.form-stack { margin-top: 12px; }.portal-remove summary { color: var(--red); }
.portal-device-section > .panel-heading { margin-bottom: 16px; }.portal-device { padding: 0; margin-bottom: 14px; overflow: hidden; }
.portal-device > summary { display: flex; gap: 12px; align-items: center; padding: 20px; cursor: pointer; list-style: none; }.portal-device > summary::-webkit-details-marker { display: none; }
.portal-device > summary::after { content: '＋'; color: #7d8da8; }.portal-device[open] > summary::after { content: '−'; }
.device-symbol { color: #4c73b6; font-size: 25px; }.device-caption { flex: 1; min-width: 0; }.device-caption strong { display: block; overflow-wrap: anywhere; font-size: 14px; }.device-caption small { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; }
.portal-access-form { border-top: 1px solid var(--line); padding: 20px; }.portal-access-fields { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 14px; }
.portal-access-form h3 { font-size: 13px; margin: 24px 0 12px; }.portal-software-choices { display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 10px; }
.portal-software-choices label { display: flex; align-items: center; gap: 10px; background: #f8faff; border: 1px solid #e4eaf4; border-radius: 9px; padding: 12px; cursor: pointer; }
.portal-software-choices input { width: 16px; height: 16px; accent-color: var(--blue); }.portal-software-choices strong { font-size: 13px; }.portal-software-choices small { display: block; color: var(--muted); font-size: 10px; margin-top: 5px; }
.portal-access-footer { display: flex; gap: 16px; align-items: center; justify-content: space-between; margin-top: 20px; }.portal-access-footer small { font-size: 11px; }
.portal-login { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: #eef3fa; }
.portal-login-shell { max-width: 1000px; width: 100%; display: grid; grid-template-columns: 1.1fr 1fr; border-radius: 22px; overflow: hidden; box-shadow: 0 24px 80px #14253d18; }
.portal-intro { padding: 64px 46px; color: white; background: radial-gradient(ellipse at 0 0, #294e83, transparent), #12223a; }.portal-intro .eyebrow { color: #92add8; margin-top: 50px; }.portal-intro h1 { font-size: 36px; }.portal-intro > p:not(.eyebrow) { color: #b6c7e3; line-height: 1.8; font-size: 14px; }
.intro-lines { display: grid; gap: 14px; margin-top: 50px; font-size: 13px; color: #bfd0e9; }.intro-lines span::before { content: '✓'; color: #6cbeff; margin-right: 12px; }
.portal-login-card { background: white; padding: 64px 46px; }.portal-login-card h2 { font-size: 26px; margin: 12px 0; }.portal-login-card .form-stack { margin-top: 30px; }.portal-hint { font-size: 12px; color: var(--muted); line-height: 1.8; margin: 24px 0 0; }
@media(max-width:900px) { .portal-workspace { grid-template-columns: 230px minmax(0,1fr); gap: 16px; }.portal-profile,.portal-access-fields { grid-template-columns: 1fr; }.portal-profile .button { justify-self: start; } }
@media(max-width:650px) { .portal-header { padding: 0 16px; }.portal-account { gap: 8px; }.portal-account > span { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.portal-main { padding: 24px 16px; }.portal-workspace { grid-template-columns: 1fr; }.people-list { max-height: 230px; }.portal-heading { align-items: start; }.portal-heading h1 { font-size: 24px; }.portal-access-footer { flex-direction: column; align-items: start; }.portal-login-shell { grid-template-columns: 1fr; }.portal-intro { display: none; }.portal-login-card { padding: 36px 24px; }.portal-device > summary { padding: 16px; } }
