:root {
  --portal-navy: #224685;
  --portal-ink: #17315f;
  --portal-pink: #e86da9;
  --portal-paper: #fbfaf8;
  --portal-soft: #f8edf3;
  --portal-line: rgba(34, 70, 133, 0.14);
  --portal-muted: #6b7892;
  --portal-green: #23836b;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
body { margin: 0; font-family: "Manrope", sans-serif; color: var(--portal-ink); background: #f5f7fa; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.portal-body { min-height: 100vh; }
.portal-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; display: flex; width: 248px; flex-direction: column; overflow-y: auto; padding: 24px 18px; border-right: 1px solid rgba(34,70,133,.12); background: var(--portal-soft); color: var(--portal-navy); isolation: isolate; }
.portal-sidebar-close, .portal-sidebar-backdrop { display: none; }
.portal-brand { display: grid; min-height: 112px; margin-bottom: 22px; padding: 10px; place-items: center; background: transparent; }
.portal-brand img { display: block; width: 100px; max-height: 78px; object-fit: contain; }
.portal-nav { display: grid; gap: 5px; }
.portal-nav a, .portal-nav-disabled, .portal-sidebar-footer a { display: flex; min-height: 46px; align-items: center; gap: 12px; padding: 0 13px; color: rgba(34,70,133,.72); }
.portal-nav a:hover, .portal-nav a.active, .portal-sidebar-footer a:hover { background: rgba(232,109,169,.14); color: var(--portal-navy); }
.portal-nav a.active { box-shadow: inset 3px 0 0 var(--portal-pink); }
.portal-nav-disabled { color: rgba(34,70,133,.3); cursor: not-allowed; }
.portal-nav i, .portal-sidebar-footer i { width: 20px; font-size: 1.05rem; }
.portal-nav-disabled .portal-nav-lock { width: auto; margin-left: auto; font-size: .68rem; }
.portal-sidebar-footer { display: grid; gap: 5px; margin-top: auto; }
.portal-main { min-height: 100vh; margin-left: 248px; }
.portal-topbar { position: sticky; top: 0; z-index: 10; display: flex; min-height: 78px; align-items: center; gap: 18px; padding: 12px 32px; border-bottom: 1px solid var(--portal-line); background: rgba(255,255,255,.96); }
.portal-topbar p { margin: 0 0 2px; color: var(--portal-muted); font-size: .75rem; font-weight: 700; text-transform: uppercase; }
.portal-topbar > div > strong { font-size: 1.1rem; }
.portal-menu-button { display: none; border: 0; background: transparent; color: var(--portal-navy); font-size: 1.4rem; }
.portal-account { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.portal-account > span { display: grid; width: 38px; height: 38px; place-items: center; background: var(--portal-soft); color: var(--portal-pink); font-weight: 700; }
.portal-account div { display: grid; }
.portal-account small { color: var(--portal-muted); }
.portal-content { max-width: 1460px; margin: 0 auto; padding: 32px; }
.portal-page-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.portal-page-heading h1 { margin: 0 0 6px; font-family: "Cormorant Garamond", serif; font-size: 2.7rem; line-height: 1; }
.portal-page-heading p { margin: 0; color: var(--portal-muted); }
.portal-button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 8px; padding: 0 17px; border: 1px solid var(--portal-navy); background: var(--portal-navy); color: #fff; font-weight: 700; cursor: pointer; }
.portal-button.secondary { background: #fff; color: var(--portal-navy); }
.portal-button.danger { border-color: #b34055; background: #b34055; }
.portal-button.small { min-height: 34px; padding: 0 12px; font-size: .82rem; }
.portal-alert { margin-bottom: 22px; padding: 14px 16px; border: 1px solid var(--portal-line); background: #fff; }
.portal-alert.success { border-color: rgba(35,131,107,.35); color: var(--portal-green); }
.portal-alert.error { border-color: rgba(179,64,85,.35); color: #a53148; }
.portal-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px,1fr)); gap: 16px; margin-bottom: 24px; }
.portal-stat { position: relative; padding: 22px; border: 1px solid var(--portal-line); background: #fff; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.portal-stat:hover { transform: translateY(-3px); border-color: rgba(34,70,133,.34); box-shadow: 0 12px 28px rgba(23,49,95,.08); }
.portal-stat span { color: var(--portal-muted); font-size: .78rem; font-weight: 700; text-transform: uppercase; }
.portal-stat strong { display: block; margin-top: 10px; font-family: "Cormorant Garamond", serif; font-size: 2.4rem; line-height: 1; }
.portal-stat > i { position: absolute; top: 19px; right: 19px; color: var(--portal-pink); }
.portal-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.portal-panel { border: 1px solid var(--portal-line); background: #fff; }
.portal-section-gap { margin-top: 18px; }
.portal-panel-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 20px; border-bottom: 1px solid var(--portal-line); }
.portal-panel-header h2 { margin: 0; font-family: "Cormorant Garamond", serif; font-size: 1.65rem; }
.portal-panel-header small { display: block; margin-top: 3px; color: var(--portal-muted); }
.portal-panel-body { padding: 20px; }
.portal-table-wrap { overflow-x: auto; }
.portal-table { width: 100%; border-collapse: collapse; }
.portal-table th, .portal-table td { padding: 13px 15px; border-bottom: 1px solid var(--portal-line); text-align: left; vertical-align: middle; }
.portal-table th { color: var(--portal-muted); font-size: .75rem; text-transform: uppercase; }
.portal-table tr:last-child td { border-bottom: 0; }
.portal-member-title { color: var(--portal-pink); font-weight: 700; }
.portal-row-actions { display: flex; justify-content: flex-end; gap: 7px; }
.portal-icon-action { display: grid; width: 34px; height: 34px; padding: 0; place-items: center; border: 1px solid var(--portal-line); background: #fff; color: var(--portal-navy); cursor: pointer; transition: background .18s ease, color .18s ease, border-color .18s ease; }
.portal-icon-action:hover { border-color: var(--portal-navy); background: var(--portal-navy); color: #fff; }
.portal-icon-action.danger { border-color: rgba(179,64,85,.32); color: #b34055; }
.portal-icon-action.danger:hover { border-color: #b34055; background: #b34055; color: #fff; }
.portal-row-deleted { opacity: .62; background: #fafafa; }
.portal-directory-tools { padding: 17px 20px; }
.portal-directory-tools form { display: grid; grid-template-columns: minmax(280px,1.8fr) minmax(180px,.8fr) auto auto; gap: 12px; align-items: end; }
.portal-directory-tools > p { margin: 12px 0 0; color: var(--portal-muted); font-size: .82rem; }
.portal-pagination { display: flex; align-items: center; justify-content: center; gap: 22px; padding: 20px; color: var(--portal-muted); }
.portal-pagination a { display: inline-flex; align-items: center; gap: 6px; color: var(--portal-navy); font-weight: 700; }
.portal-credential-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 15px; margin-bottom: 20px; }
.portal-credential-grid > div { display: grid; gap: 7px; padding: 15px; border: 1px solid var(--portal-line); background: #fafbfc; }
.portal-credential-grid small { color: var(--portal-muted); font-weight: 700; text-transform: uppercase; }
.portal-credential-grid code { overflow-wrap: anywhere; color: var(--portal-pink); font-size: .95rem; font-weight: 700; }
.portal-secret-field { display: flex; min-width: 0; border: 1px solid var(--portal-line); background: #fff; }
.portal-secret-field input { min-width: 0; width: 100%; height: 38px; padding: 8px 10px; border: 0; outline: 0; background: transparent; color: var(--portal-pink); font-size: .9rem; font-weight: 700; }
.portal-secret-field button { display: grid; width: 40px; flex: 0 0 40px; place-items: center; border: 0; border-left: 1px solid var(--portal-line); background: transparent; color: var(--portal-navy); cursor: pointer; }
.portal-secret-field button:hover { background: var(--portal-soft); color: var(--portal-pink); }
.portal-guidance { max-width: 850px; color: var(--portal-muted); line-height: 1.65; }
.portal-badge { display: inline-flex; min-height: 28px; align-items: center; padding: 0 9px; background: var(--portal-soft); color: var(--portal-pink); font-size: .74rem; font-weight: 700; }
.portal-form { display: grid; gap: 18px; }
.portal-form-compact { gap: 14px; }
.portal-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.portal-field { display: grid; gap: 7px; }
.portal-field.full { grid-column: 1 / -1; }
.portal-field label { color: var(--portal-muted); font-size: .78rem; font-weight: 700; text-transform: uppercase; }
.portal-field input, .portal-field select, .portal-field textarea { width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid var(--portal-line); border-radius: 0; background: #fff; color: var(--portal-ink); }
.portal-field textarea { min-height: 120px; resize: vertical; }
.portal-field textarea.portal-textarea-short { min-height: 78px; }
.portal-field > small { color: var(--portal-muted); line-height: 1.5; }
.portal-field input:focus, .portal-field select:focus, .portal-field textarea:focus { outline: 2px solid rgba(232,109,169,.2); border-color: var(--portal-pink); }
.portal-field select[multiple] { min-height: 152px; }
.portal-title-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.portal-title-field > legend { float: none; width: auto; margin-bottom: 7px; padding: 0; color: var(--portal-muted); font-size: .78rem; font-weight: 700; line-height: 1.4; text-transform: uppercase; }
.portal-title-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.portal-title-options > label { display: flex; min-width: 0; min-height: 46px; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--portal-line); background: #fff; color: var(--portal-ink); font-size: .86rem; font-weight: 600; text-transform: none; cursor: pointer; }
.portal-title-options > label:has(input:checked) { border-color: var(--portal-pink); background: var(--portal-soft); }
.portal-title-options input[type=checkbox] { appearance: auto; width: 17px; height: 17px; min-height: 17px; flex: 0 0 17px; margin: 0; padding: 0; border: 0; accent-color: var(--portal-pink); }
.portal-title-options input:disabled + span { opacity: .38; }
.portal-title-options > label:has(input:disabled) { cursor: not-allowed; }
.portal-admin-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; max-height: 280px; overflow-y: auto; padding: 8px; border: 1px solid var(--portal-line); background: #fafbfc; }
.portal-admin-option { display: flex; align-items: center; gap: 11px; min-height: 54px; padding: 8px 10px; background: #fff; color: var(--portal-ink) !important; font-size: .9rem !important; font-weight: 400 !important; text-transform: none !important; cursor: pointer; }
.portal-admin-option input { width: 18px; min-height: 18px; flex: 0 0 18px; padding: 0; accent-color: var(--portal-pink); }
.portal-admin-option span { display: grid; gap: 2px; min-width: 0; }
.portal-admin-option small { overflow: hidden; color: var(--portal-muted); font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.portal-upload-current { display: flex; align-items: center; gap: 13px; padding: 10px; border: 1px solid var(--portal-line); background: #fafbfc; }
.portal-upload-current img { width: 82px; height: 62px; flex: 0 0 82px; object-fit: contain; background: #fff; }
.portal-upload-current small { color: var(--portal-muted); line-height: 1.45; }
.portal-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.portal-empty { padding: 36px 20px; color: var(--portal-muted); text-align: center; }
.portal-login-body { display: grid; min-height: 100vh; place-items: center; padding: 24px; background: var(--portal-paper); }
.portal-login { width: min(440px, 100%); padding: 34px; border: 1px solid var(--portal-line); background: #fff; }
.portal-login img.portal-login-logo { display: block; width: 118px; max-height: 96px; margin: 0 auto 34px; object-fit: contain; }
.portal-login h1 { margin: 0 0 12px; font-family: "Cormorant Garamond", serif; font-size: 2.45rem; line-height: 1.05; }
.portal-login > p { margin: 0 0 24px; color: var(--portal-muted); line-height: 1.7; }
.portal-login .portal-login-kicker { margin-bottom: 8px; color: var(--portal-pink); font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.portal-login .portal-login-note { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--portal-line); font-size: .78rem; }
.portal-code-input { font-size: 1.7rem !important; font-weight: 700; letter-spacing: .45em; text-align: center; }
.portal-login-links { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 19px; color: var(--portal-navy); font-size: .82rem; font-weight: 700; }
.portal-login-links form { margin: 0; }
.portal-text-button { padding: 0; border: 0; background: transparent; color: var(--portal-navy); font-weight: 700; cursor: pointer; }
.portal-text-button:hover, .portal-login-links a:hover { color: var(--portal-pink); }
.portal-text-button:disabled { color: var(--portal-muted); cursor: not-allowed; opacity: .72; }
.portal-login-symbol { display: grid; width: 54px; height: 54px; margin-bottom: 18px; place-items: center; border-radius: 50%; background: var(--portal-soft); color: var(--portal-green); font-size: 1.5rem; }
.portal-security-note { position: relative; padding-top: 74px; }
.portal-security-note > i { position: absolute; top: 22px; left: 20px; color: var(--portal-pink); font-size: 2rem; }
.portal-security-note h3 { margin: 0 0 8px; font-family: "Cormorant Garamond", serif; font-size: 1.8rem; }
.portal-security-note p { margin: 0; color: var(--portal-muted); line-height: 1.75; }
.portal-invitation-note { display: flex; align-items: center; gap: 12px; padding: 13px 15px; border: 1px solid var(--portal-line); background: var(--portal-soft); }
.portal-invitation-note > i { color: var(--portal-pink); font-size: 1.25rem; }
.portal-invitation-note small { display: block; margin-top: 3px; color: var(--portal-muted); line-height: 1.45; }
.portal-resend-form { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--portal-line); }
.portal-broadcast-progress { margin-bottom: 18px; }
.portal-broadcast-progress .portal-panel-header > strong { color: var(--portal-navy); font-size: 1.1rem; }
.portal-progress-track { overflow: hidden; height: 9px; margin-bottom: 13px; background: var(--portal-soft); }
.portal-progress-track span { display: block; height: 100%; background: linear-gradient(90deg, var(--portal-pink), var(--portal-navy)); transition: width .3s ease; }
.portal-broadcast-progress p { margin: 0; color: var(--portal-muted); }
.portal-broadcast-progress .portal-button { margin-top: 14px; }
.portal-post { padding: 20px; border-bottom: 1px solid var(--portal-line); }
.portal-post:last-child { border-bottom: 0; }
.portal-post-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 10px; color: var(--portal-muted); font-size: .8rem; }
.portal-post h3 { margin: 0 0 10px; font-family: "Cormorant Garamond", serif; font-size: 1.7rem; }
.portal-post p { margin: 0; line-height: 1.75; white-space: pre-wrap; }
.portal-calendar-panel { overflow: hidden; }
.portal-calendar-toolbar { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 18px; border-bottom: 1px solid var(--portal-line); }
.portal-calendar-toolbar h2 { min-width: 220px; margin: 0; font-family: "Cormorant Garamond", serif; font-size: 1.8rem; text-align: center; }
.portal-calendar-weekdays, .portal-calendar { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); }
.portal-calendar-weekdays span { padding: 11px; border-right: 1px solid var(--portal-line); color: var(--portal-muted); font-size: .72rem; font-weight: 700; text-align: center; text-transform: uppercase; }
.portal-calendar-day { min-height: 128px; padding: 10px; border-top: 1px solid var(--portal-line); border-right: 1px solid var(--portal-line); background: #fff; }
.portal-calendar-day.muted { background: #fafbfc; }
.portal-calendar-day > strong { display: block; margin-bottom: 7px; font-size: .8rem; }
.portal-calendar-day a, .portal-calendar-event { display: block; margin-top: 5px; padding: 6px 7px; background: var(--portal-soft); color: var(--portal-navy); font-size: .72rem; font-weight: 700; line-height: 1.35; }
.portal-calendar-day a span, .portal-calendar-event span { display: block; color: var(--portal-pink); font-size: .65rem; }
.portal-community-layout { display: grid; grid-template-columns: minmax(280px, .72fr) minmax(0, 1.5fr); gap: 18px; align-items: start; }
.portal-compose { position: sticky; top: 100px; }
.portal-feed { display: grid; gap: 18px; }
.portal-thread .portal-post { border-bottom: 1px solid var(--portal-line); }
.portal-comment { margin: 0 20px; padding: 14px 0; border-bottom: 1px solid var(--portal-line); }
.portal-comment strong { font-size: .82rem; }
.portal-comment p { margin: 5px 0 0; color: var(--portal-muted); line-height: 1.55; }
.portal-reply { display: flex; gap: 9px; padding: 14px 20px; }
.portal-reply input { min-width: 0; flex: 1; min-height: 40px; padding: 8px 11px; border: 1px solid var(--portal-line); }
.portal-reply button { min-height: 40px; padding: 0 15px; border: 1px solid var(--portal-navy); background: var(--portal-navy); color: #fff; font-weight: 700; cursor: pointer; }
.portal-message-list { display: grid; }
.portal-message-item { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; border-bottom: 1px solid var(--portal-line); background: #fff; }
.portal-message-item:last-child { border-bottom: 0; }
.portal-message-item:hover { background: #fafbfc; }
.portal-message-item.unread { border-left: 3px solid var(--portal-pink); background: var(--portal-soft); }
.portal-message-open { min-width: 0; padding: 16px 19px; }
.portal-message-open span { display: flex; justify-content: space-between; gap: 16px; }
.portal-message-list small { color: var(--portal-muted); }
.portal-message-open p { margin: 6px 0 0; overflow: hidden; color: var(--portal-muted); text-overflow: ellipsis; white-space: nowrap; }
.portal-message-actions { display: flex; gap: 6px; padding: 12px 16px 12px 0; }
.portal-message-actions form, .portal-message-detail .portal-actions form { margin: 0; }
.portal-message-detail .portal-panel-body > p { min-height: 100px; margin: 0 0 22px; line-height: 1.8; white-space: pre-wrap; }
.portal-message-context { padding: 15px 17px; border-left: 3px solid var(--portal-pink); background: var(--portal-soft); }
.portal-message-context small { color: var(--portal-muted); }
.portal-message-context p { margin: 8px 0 0; color: var(--portal-muted); line-height: 1.6; white-space: pre-wrap; }
.portal-profile-card { padding: 28px; }
.portal-profile-intro { display: flex; align-items: center; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid var(--portal-line); }
.portal-profile-intro > img, .portal-profile-intro > span { display: grid; width: 96px; height: 96px; flex: 0 0 96px; place-items: center; object-fit: cover; background: var(--portal-soft); color: var(--portal-pink); font-family: "Cormorant Garamond", serif; font-size: 2.8rem; }
.portal-profile-intro h2 { margin: 0; font-family: "Cormorant Garamond", serif; font-size: 2.2rem; }
.portal-profile-intro p { margin: 4px 0 12px; color: var(--portal-muted); }
.portal-profile-details { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; padding: 25px 0; border-bottom: 1px solid var(--portal-line); }
.portal-profile-details div { display: grid; gap: 5px; }
.portal-profile-details small { color: var(--portal-muted); font-weight: 700; text-transform: uppercase; }
.portal-profile-bio { max-width: 820px; padding: 24px 0; }
.portal-profile-bio h3 { margin: 0 0 8px; font-family: "Cormorant Garamond", serif; font-size: 1.6rem; }
.portal-profile-bio p { margin: 0; line-height: 1.75; }
.portal-profile-actions { padding-top: 22px; border-top: 1px solid var(--portal-line); }
.portal-broadcast-layout { grid-template-columns: minmax(330px,.85fr) minmax(0,1.15fr); }
.portal-choice-group { display: grid; gap: 9px; margin: 0; padding: 0; border: 0; }
.portal-choice-group legend { margin-bottom: 3px; color: var(--portal-muted); font-size: .78rem; font-weight: 700; text-transform: uppercase; }
.portal-choice-card { display: flex; align-items: center; gap: 13px; padding: 14px 15px; border: 1px solid var(--portal-line); background: #fff; cursor: pointer; transition: border-color .18s ease, background .18s ease; }
.portal-choice-card:hover, .portal-choice-card:has(input:checked) { border-color: var(--portal-pink); background: var(--portal-soft); }
.portal-choice-card input { width: 17px; height: 17px; accent-color: var(--portal-pink); }
.portal-choice-card span, .portal-choice-card small { display: block; }
.portal-choice-card small { margin-top: 3px; color: var(--portal-muted); }
.portal-recipient-panel { padding: 16px; border: 1px solid var(--portal-line); background: #fafbfc; }
.portal-check-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.portal-check-grid > label { display: flex; min-width: 0; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid var(--portal-line); background: #fff; cursor: pointer; }
.portal-check-grid > label:has(input:checked) { border-color: var(--portal-pink); background: var(--portal-soft); }
.portal-check-grid input { width: 16px; height: 16px; flex: 0 0 auto; accent-color: var(--portal-pink); }
.portal-check-grid span, .portal-check-grid small { display: block; min-width: 0; }
.portal-check-grid small { margin-top: 2px; overflow: hidden; color: var(--portal-muted); font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.portal-recipient-summary { display: flex; align-items: center; gap: 13px; padding: 15px; border: 1px solid var(--portal-line); background: var(--portal-soft); }
.portal-recipient-summary > i { color: var(--portal-pink); font-size: 1.3rem; }
.portal-recipient-summary small { display: block; margin-top: 3px; color: var(--portal-muted); }

@media (max-width: 1050px) {
  .portal-stat-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .portal-sidebar { z-index: 40; width: min(300px, 86vw); visibility: hidden; transform: translateX(-100%); box-shadow: 16px 0 40px rgba(23,49,95,.16); transition: transform .2s ease, visibility 0s linear .2s; }
  .portal-sidebar.open { visibility: visible; transform: translateX(0); transition-delay: 0s; }
  .portal-sidebar-close { position: absolute; top: 14px; right: 14px; z-index: 2; display: grid; width: 38px; height: 38px; padding: 0; place-items: center; border: 1px solid var(--portal-line); background: #fff; color: var(--portal-navy); cursor: pointer; }
  .portal-sidebar-backdrop { position: fixed; inset: 0; z-index: 30; display: block; visibility: hidden; padding: 0; border: 0; background: rgba(16,35,70,.48); opacity: 0; pointer-events: none; transition: opacity .2s ease, visibility 0s linear .2s; }
  .portal-menu-open .portal-sidebar-backdrop { visibility: visible; opacity: 1; pointer-events: auto; transition-delay: 0s; }
  .portal-menu-open { overflow: hidden; }
  .portal-brand { flex: 0 0 auto; }
  .portal-nav { flex: 0 0 auto; }
  .portal-main { margin-left: 0; }
  .portal-menu-button { display: inline-flex; }
  .portal-directory-tools form { grid-template-columns: minmax(0,1fr) minmax(180px,.65fr); }
}

@media (max-width: 700px) {
  .portal-content, .portal-topbar { padding-left: 18px; padding-right: 18px; }
  .portal-account div { display: none; }
  .portal-page-heading { align-items: start; flex-direction: column; }
  .portal-stat-grid, .portal-grid, .portal-form-grid, .portal-community-layout { grid-template-columns: 1fr; }
  .portal-compose { position: static; }
  .portal-field.full { grid-column: auto; }
  .portal-calendar-weekdays { display: none; }
  .portal-calendar { grid-template-columns: 1fr; }
  .portal-calendar-day.muted { display: none; }
  .portal-calendar-day { min-height: auto; }
  .portal-profile-details { grid-template-columns: 1fr 1fr; }
  .portal-directory-tools form { grid-template-columns: 1fr; }
  .portal-credential-grid { grid-template-columns: 1fr; }
  .portal-message-item { grid-template-columns: 1fr; }
  .portal-message-actions { padding: 0 18px 14px; }
  .portal-check-grid { grid-template-columns: 1fr; }
  .portal-admin-options { grid-template-columns: 1fr; }
  .portal-title-options { grid-template-columns: 1fr; }
}
