.portal-wrap { max-width: 1160px; margin: 0 auto; padding: 32px 20px 64px; }
.portal-wrap section:not(.portal-card) { padding: 0; }
.portal-intro { max-width: 800px; margin: 24px auto 32px; }
.portal-intro h1 { max-width: 18ch; }
.portal-intro > p:not(.eyebrow) { color: #425e76; font-size: 1.08rem; max-width: 65ch; }
.service-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.service-facts span { background: #e8f2fb; color: var(--navy); border-radius: 999px; padding: 8px 13px; font-size: .9rem; }
.portal-card { background: white; border: 1px solid var(--line); border-radius: 16px; padding: 24px; box-shadow: var(--shadow); min-width: 0; }
.auth-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr); gap: 20px; max-width: 900px; margin: 0 auto; align-items: start; }
.auth-social, .portal-stack, .item-list { display: grid; gap: 12px; }
.auth-social button, .full { width: 100%; }
.calm-card { background: #eef5fc; box-shadow: none; }
.portal-steps { padding-left: 22px; display: grid; gap: 16px; margin: 22px 0; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .9rem; margin: 22px 0; }
.divider::before, .divider::after { content: ''; height: 1px; background: var(--line); flex: 1; }
.auth-links, .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 16px 0; }
.auth-links { justify-content: space-between; }
.auth-links button, .text-action { border: 0; padding: 0; background: none; color: var(--blue); font: inherit; cursor: pointer; text-decoration: underline; }
.portal-heading { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-bottom: 24px; }
.portal-heading h2 { margin-bottom: 4px; }
.refresh-owner { margin-bottom: 16px; }
.access-card { min-width: 240px; background: #e7f4ed; border-radius: 12px; padding: 14px 18px; color: #155b38; }
.access-card.pending { background: #f3f6fa; color: #425e76; }
.access-card a { color: inherit; font-weight: 800; font-size: 1.15rem; }
.portal-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.portal-stack { gap: 20px; }
.portal-card h3 { margin-bottom: 8px; }
.portal-card p:last-child { margin-bottom: 0; }
.portal-notice { max-width: 900px; margin: 0 auto 20px; padding: 13px 16px; border-radius: 10px; color: #134e32; background: #e6f6ec; }
.portal-notice.error { color: #8b1d13; background: #fff0ee; }
.item { padding: 14px; border: 1px solid var(--line); border-radius: 10px; overflow-wrap: anywhere; }
.item button.open-item { background: none; border: 0; padding: 0; text-align: left; color: var(--navy); font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; }
.item p { margin: 5px 0; }
.tag { display: inline-block; border-radius: 999px; padding: 3px 9px; background: #e8f2fb; color: #17436e; font-size: .85rem; }
.messages { display: grid; gap: 10px; margin: 18px 0; }
.message { padding: 12px 14px; border-radius: 10px; background: #f1f5f9; white-space: pre-wrap; overflow-wrap: anywhere; }
.message.owner-message { background: #e8f2fb; }
.message small { display: block; color: var(--muted); margin-bottom: 4px; }
.payment-box { padding: 16px; background: #fff8e7; border: 1px solid #efdbad; border-radius: 10px; margin: 16px 0; overflow-wrap: anywhere; }
.portal-footer { background: #fff; border-top: 1px solid var(--line); color: var(--muted); padding: 22px 0; }
.portal-footer a { color: var(--blue); }
.back-link { font-weight: 700; text-decoration: none; }
@media (max-width: 760px) { .auth-grid, .portal-layout { grid-template-columns: 1fr; } .portal-heading { flex-direction: column; } .access-card { width: 100%; } .portal-wrap { padding: 20px 16px 48px; } }
@media (max-width: 420px) { .top-actions { gap: 5px; } .back-link { font-size: .85rem; } }
