body.garant-cabinet-page .site-header,
body.garant-cabinet-page .site-footer,
body.garant-cabinet-page #wpadminbar { display: none !important; }
html:has(body.garant-cabinet-page) { margin-top: 0 !important; }
body.garant-cabinet-page { margin: 0; min-height: 100vh; background: #f5f7fb; }
body.garant-cabinet-page .cabinet { min-height: 100vh; }
body.garant-cabinet-page .cabinet-sidebar { display: flex; flex-direction: column; min-height: 100vh; }
body.garant-cabinet-page .cabinet-nav { flex: 1 1 auto; }
body.garant-cabinet-page .cabinet-sidebar__footer { margin-top: auto; display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid rgba(148, 163, 184, .18); }

.ge-adaptive-logo { display: inline-flex; align-items: center; line-height: 0; }
.ge-adaptive-logo__image { display: block; width: 100%; height: 100%; object-fit: contain; filter: none; transition: opacity 160ms ease; }
.site-header .ge-adaptive-logo { width: 178px; height: 32px; }
.auth-brand .ge-adaptive-logo { width: 190px; height: 35px; }
.cabinet-sidebar .ge-adaptive-logo,
.site-footer .ge-adaptive-logo { color: #fff; }
.cabinet-sidebar .ge-adaptive-logo__image,
.site-footer .ge-adaptive-logo__image { filter: none; }
.cabinet-brand > div { display: none !important; }
.cabinet-brand__mark.has-custom-logo { background: transparent !important; box-shadow: none !important; border-radius: 0 !important; width: 178px !important; height: 32px !important; padding: 0 !important; }
.cabinet-brand__mark .ge-brand-logo { width: 178px !important; height: 32px !important; object-fit: contain; filter: none; }
.auth-brand { display: flex; align-items: center; margin-bottom: 28px; }
.auth-brand__logo { width: 190px; height: 35px; }

.portal-profile-button { width: 100%; display: grid; grid-template-columns: 42px minmax(0, 1fr) 20px; align-items: center; gap: 10px; padding: 10px; border: 1px solid rgba(148, 163, 184, .22); border-radius: 14px; background: rgba(255, 255, 255, .06); color: inherit; text-align: left; cursor: pointer; }
.portal-profile-button:hover,.portal-profile-button:focus-visible { background: rgba(255, 255, 255, .1); outline: none; }
.portal-profile-button__avatar { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; overflow: hidden; background: rgba(255, 255, 255, .12); font-weight: 700; }
.portal-profile-button__avatar img { width: 100%; height: 100%; object-fit: cover; }
.portal-profile-button__text { min-width: 0; display: grid; gap: 2px; }
.portal-profile-button__text strong,.portal-profile-button__text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-profile-button__text small { opacity: .68; }
.portal-icon,.portal-profile-button [data-ge-icon-name] { width: 18px; height: 18px; display: inline-grid; place-items: center; flex: 0 0 auto; }

.portal-notification-center { position: relative; }
.portal-notification-center > [data-portal-notification-toggle] { position: relative; z-index: 102; }
.portal-notification-dropdown { position: absolute; top: calc(100% + 12px); right: 0; z-index: 100; width: min(420px, calc(100vw - 28px)); background: #fff; border: 1px solid #e2e8f0; border-radius: 18px; box-shadow: 0 24px 70px rgba(15, 23, 42, .18); overflow: hidden; }
.portal-notification-dropdown[hidden] { display: none; }
.portal-notifications__header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px 14px; border-bottom: 1px solid #eef2f7; }
.portal-notifications__header strong { font-size: 16px; color: #0f172a; }
.portal-notifications__header button { border: 0; background: transparent; color: #2563eb; font: inherit; font-size: 13px; cursor: pointer; }
.portal-notifications__body { max-height: min(520px, 70vh); overflow-y: auto; }
.portal-notification { display: grid; grid-template-columns: 10px 1fr; gap: 10px; padding: 15px 18px; border-bottom: 1px solid #f1f5f9; background: #fff; }
.portal-notification.is-unread { background: #f8fbff; }
.portal-notification__dot { width: 7px; height: 7px; margin-top: 6px; border-radius: 50%; background: transparent; }
.portal-notification.is-unread .portal-notification__dot { background: #2563eb; }
.portal-notification__content { min-width: 0; }
.portal-notification__content strong { display: block; margin-bottom: 4px; font-size: 14px; color: #0f172a; }
.portal-notification__content p { margin: 0 0 7px; font-size: 13px; line-height: 1.45; color: #64748b; }
.portal-notification__content time { font-size: 11px; color: #94a3b8; }
.portal-notification__content a { margin-left: 10px; font-size: 12px; font-weight: 700; color: #2563eb; text-decoration: none; }
.portal-notifications__empty,.portal-notifications__loading { padding: 28px 20px; text-align: center; color: #64748b; }

.portal-account { display: grid; gap: 18px; max-width: 1080px; }
.portal-account__hero,.portal-account-card { background: #fff; border: 1px solid #e5eaf1; border-radius: 20px; box-shadow: 0 8px 28px rgba(15,23,42,.045); }
.portal-account__hero { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 24px; }
.portal-account__avatar-wrap { position: relative; width: 82px; height: 82px; }
.portal-profile__avatar { width: 82px; height: 82px; display: grid; place-items: center; overflow: hidden; border-radius: 22px; background: #0f172a; color: #fff; font-size: 28px; font-weight: 750; }
.portal-profile__avatar img { width: 100%; height: 100%; object-fit: cover; }
.portal-avatar-upload { position: absolute; right: -5px; bottom: -5px; width: 32px; height: 32px; display: grid; place-items: center; border: 3px solid #fff; border-radius: 50%; background: #2563eb; color: #fff; cursor: pointer; box-shadow: 0 5px 14px rgba(37,99,235,.28); }
.portal-avatar-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.portal-avatar-upload .portal-icon { width: 15px; height: 15px; }
.portal-account__identity > span { font-size: 12px; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .05em; }
.portal-account__identity h2 { margin: 2px 0 4px; font-size: 26px; color: #0f172a; }
.portal-account__identity p { margin: 0; color: #64748b; }
.portal-account__avatar-delete { display: inline-flex; align-items: center; gap: 7px; border: 0; background: transparent; color: #b42318; cursor: pointer; font-weight: 650; }
.portal-account__columns { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(300px,.8fr); gap: 18px; }
.portal-account-card { padding: 24px; }
.portal-account-card header > div,.portal-account-card__split > div { display: flex; align-items: flex-start; gap: 11px; }
.portal-account-card header .portal-icon { margin-top: 2px; color: #2563eb; }
.portal-account-card h3 { margin: 0 0 3px; font-size: 17px; color: #0f172a; }
.portal-account-card header p { margin: 0; font-size: 13px; color: #64748b; }
.portal-account-form { display: grid; gap: 16px; margin-top: 22px; }
.portal-account-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.portal-account-form label { display: grid; gap: 7px; color: #344054; font-size: 13px; font-weight: 650; }
.portal-account-form label small { color: #98a2b3; font-size: 11px; font-weight: 450; line-height: 1.45; }
.portal-account-form textarea.form-control { resize: vertical; min-height: 96px; }
.portal-account-form .button { justify-self: start; }
.portal-account-message { padding: 10px 12px; border-radius: 10px; background: #ecfdf3; color: #027a48; font-size: 13px; }
.portal-account-message--error { background: #fff1f3; color: #b42318; }
.portal-account-card__split { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.portal-sessions { display: grid; gap: 10px; margin-top: 18px; }
.portal-session { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; padding: 13px 14px; border: 1px solid #edf1f6; border-radius: 14px; background: #fbfcfe; }
.portal-session.is-current { border-color: #bfdbfe; background: #f8fbff; }
.portal-session__icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; background: #eef4ff; color: #2563eb; }
.portal-session__content { display: grid; gap: 2px; min-width: 0; }
.portal-session__content strong { color: #0f172a; font-size: 13px; }
.portal-session__content span,.portal-session__content small { color: #64748b; font-size: 11px; overflow-wrap: anywhere; }
.portal-account-error { padding: 28px; border: 1px solid #e5eaf1; border-radius: 20px; background: #fff; }

.auth-remember { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #475569; }
.auth-submit { width: 100%; justify-content: center; }

@media (max-width: 760px) {
	.portal-notification-dropdown { position: fixed; top: 72px; right: 14px; left: 14px; width: auto; }
	.portal-account__hero { grid-template-columns: auto 1fr; padding: 20px; }
	.portal-account__avatar-delete { grid-column: 1 / -1; justify-self: start; }
	.portal-account__columns { grid-template-columns: 1fr; }
	.portal-account-form__row { grid-template-columns: 1fr; }
	.portal-account-card__split { align-items: flex-start; flex-direction: column; }
	.site-header .ge-adaptive-logo { width: 148px; height: 28px; }
}
