.okges-portal-page {
	background: #f3f6fa;
}

.okges-portal-page .site-footer {
	margin-top: 0;
}

.portal-shell {
	min-height: calc(100vh - 84px);
}

.portal-shell h1,
.portal-shell h2,
.portal-shell h3 {
	letter-spacing: -0.035em;
}

.portal-shell h1 {
	font-size: clamp(2.15rem, 4vw, 3.55rem);
}

.portal-shell h2 {
	font-size: clamp(1.45rem, 2.2vw, 2rem);
}

.portal-kicker {
	color: #4a6fa5;
	display: block;
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	margin-bottom: 10px;
	text-transform: uppercase;
}

.portal-kicker--light {
	color: #b9c9df;
}

.portal-login {
	background: #fff;
	display: grid;
	grid-template-columns: minmax(380px, 0.95fr) minmax(420px, 1.05fr);
	min-height: calc(100vh - 84px);
}

.portal-login__brand-panel {
	background:
		radial-gradient(circle at 80% 15%, rgba(74, 111, 165, 0.42), transparent 32%),
		radial-gradient(circle at 15% 88%, rgba(255, 193, 7, 0.09), transparent 30%),
		linear-gradient(145deg, #071b36, #0d3466);
	color: #dce6f2;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	overflow: hidden;
	padding: clamp(54px, 7vw, 100px);
	position: relative;
}

.portal-login__brand-panel::after {
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
	background-size: 52px 52px;
	content: "";
	inset: 0;
	mask-image: linear-gradient(135deg, transparent, #000);
	opacity: 0.6;
	pointer-events: none;
	position: absolute;
}

.portal-login__brand-content,
.portal-login__security {
	position: relative;
	z-index: 1;
}

.portal-login__brand-content h1 {
	color: #fff;
	font-size: clamp(2.65rem, 5vw, 4.8rem);
	margin-bottom: 26px;
	max-width: 710px;
}

.portal-login__brand-content > p {
	color: #b9c9df;
	font-size: 1.05rem;
	max-width: 620px;
}

.portal-login__benefits {
	display: grid;
	gap: 14px;
	list-style: none;
	margin: 38px 0 0;
	padding: 0;
}

.portal-login__benefits li {
	align-items: center;
	display: flex;
	font-size: 0.9rem;
	gap: 12px;
}

.portal-login__benefits li span {
	align-items: center;
	background: rgba(255, 193, 7, 0.14);
	border: 1px solid rgba(255, 193, 7, 0.25);
	border-radius: 50%;
	color: #ffc107;
	display: inline-flex;
	height: 25px;
	justify-content: center;
	width: 25px;
}

.portal-login__security {
	align-items: center;
	border-top: 1px solid rgba(255, 255, 255, 0.11);
	display: flex;
	gap: 14px;
	margin-top: 70px;
	padding-top: 24px;
}

.portal-login__security-icon {
	align-items: center;
	background: rgba(5, 150, 105, 0.16);
	border-radius: 50%;
	color: #53d5a8;
	display: flex;
	font-size: 0.65rem;
	height: 38px;
	justify-content: center;
	width: 38px;
}

.portal-login__security div {
	display: grid;
}

.portal-login__security strong {
	color: #fff;
	font-size: 0.84rem;
}

.portal-login__security span {
	color: #9cb0cb;
	font-size: 0.75rem;
}

.portal-login__form-panel {
	align-items: center;
	background: #fff;
	display: flex;
	justify-content: center;
	padding: clamp(45px, 7vw, 110px);
}

.portal-login__form-wrap {
	max-width: 480px;
	width: 100%;
}

.portal-back-link {
	color: #667386;
	display: inline-flex;
	font-size: 0.82rem;
	font-weight: 650;
	margin-bottom: 48px;
}

.portal-back-link:hover {
	color: #0d2e5a;
}

.portal-login__form-wrap h2 {
	font-size: clamp(2.3rem, 4vw, 3.4rem);
	margin-bottom: 14px;
}

.portal-login__intro {
	color: #667386;
	margin-bottom: 32px;
}

.portal-login-form {
	display: grid;
	gap: 20px;
}

.portal-field {
	display: grid;
	gap: 8px;
	min-width: 0;
}

.portal-field > span:first-child {
	color: #283241;
	font-size: 0.78rem;
	font-weight: 750;
}

.portal-field input,
.portal-field select,
.portal-search input,
.portal-filters select {
	background: #fff;
	border: 1px solid #ccd7e4;
	border-radius: 12px;
	color: #171b22;
	min-height: 49px;
	outline: none;
	padding: 11px 14px;
	transition: border-color 150ms ease, box-shadow 150ms ease;
	width: 100%;
}

.portal-field input:focus,
.portal-field select:focus,
.portal-search input:focus,
.portal-filters select:focus {
	border-color: #4a6fa5;
	box-shadow: 0 0 0 4px rgba(74, 111, 165, 0.12);
}

.portal-field small {
	color: #748195;
	font-size: 0.72rem;
	line-height: 1.45;
}

.portal-remember {
	align-items: center;
	color: #283241;
	display: flex;
	font-size: 0.82rem;
	font-weight: 600;
	gap: 10px;
}

.portal-remember input {
	accent-color: #0d2e5a;
	flex: none;
	height: 17px;
	margin: 0;
	width: 17px;
}

.portal-password {
	display: block;
	position: relative;
}

.portal-password input {
	padding-right: 78px;
}

.portal-password__toggle {
	background: transparent;
	border: 0;
	color: #4a6fa5;
	cursor: pointer;
	font-size: 0.72rem;
	font-weight: 750;
	padding: 7px;
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%);
}

.portal-inline-action {
	background: transparent;
	border: 0;
	color: #0d2e5a;
	cursor: pointer;
	font-size: inherit;
	font-weight: 750;
	padding: 0 0 0 5px;
	text-decoration: underline;
}

.portal-button {
	align-items: center;
	border: 1px solid transparent;
	border-radius: 11px;
	cursor: pointer;
	display: inline-flex;
	font-size: 0.82rem;
	font-weight: 750;
	gap: 10px;
	justify-content: center;
	line-height: 1.2;
	min-height: 45px;
	padding: 11px 18px;
	transition: background 150ms ease, border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.portal-button:hover {
	box-shadow: 0 10px 24px rgba(13, 46, 90, 0.12);
	transform: translateY(-1px);
}

.portal-button--primary {
	background: #0d2e5a;
	color: #fff;
}

.portal-button--primary:hover {
	background: #123c72;
}

.portal-button--secondary {
	background: #fff;
	border-color: #cbd7e4;
	color: #0d2e5a;
}

.portal-button--ghost {
	background: transparent;
	color: #667386;
}

.portal-button--danger-ghost {
	background: #fff;
	border-color: #f0c7c4;
	color: #b42318;
}

.portal-button--danger-ghost:hover {
	background: #fff6f5;
	border-color: #e8a39e;
}

.portal-button--light {
	background: #fff;
	color: #0d2e5a;
}

.portal-button--full {
	margin-top: 8px;
	width: 100%;
}

.portal-login__help {
	color: #748195;
	font-size: 0.78rem;
	margin: 26px 0 0;
	text-align: center;
}

.portal-login__help a,
.portal-text-link {
	color: #0d2e5a;
	font-weight: 750;
}

.portal-notice {
	align-items: flex-start;
	background: #edf8f4;
	border: 1px solid #bce5d6;
	border-radius: 12px;
	color: #075f45;
	display: flex;
	gap: 11px;
	margin-bottom: 24px;
	padding: 13px 15px;
}

.portal-notice--error {
	background: #fff3f2;
	border-color: #f1cbc7;
	color: #8f241b;
}

.portal-notice__icon {
	align-items: center;
	background: currentColor;
	border-radius: 50%;
	color: #fff;
	display: inline-flex;
	flex: 0 0 auto;
	font-size: 0.68rem;
	font-weight: 900;
	height: 21px;
	justify-content: center;
	margin-top: 2px;
	width: 21px;
}

.portal-notice p {
	font-size: 0.82rem;
	margin: 0;
}

.portal-app {
	background: #f3f6fa;
	display: grid;
	grid-template-columns: 250px minmax(0, 1fr);
	min-height: calc(100vh - 84px);
}

.portal-sidebar {
	background: #091f3d;
	color: #cfdaea;
	display: flex;
	flex-direction: column;
	min-height: 100%;
	padding: 28px 18px 22px;
}

.portal-sidebar__brand {
	align-items: center;
	color: #fff;
	display: flex;
	gap: 12px;
	margin: 0 10px 42px;
}

.portal-sidebar__brand-mark,
.portal-client__brand > span {
	align-items: center;
	background: #ffc107;
	border-radius: 10px;
	color: #10213a;
	display: inline-flex;
	font-size: 1.15rem;
	font-weight: 900;
	height: 39px;
	justify-content: center;
	width: 39px;
}

.portal-sidebar__brand > span:last-child {
	display: grid;
	line-height: 1.1;
}

.portal-sidebar__brand strong {
	font-size: 1rem;
}

.portal-sidebar__brand small {
	color: #8fa4bf;
	font-size: 0.64rem;
	font-weight: 600;
	margin-top: 4px;
}

.portal-sidebar__nav {
	display: grid;
	gap: 5px;
}

.portal-sidebar__nav a {
	align-items: center;
	border-radius: 10px;
	color: #aabbd0;
	display: flex;
	font-size: 0.78rem;
	font-weight: 650;
	gap: 12px;
	padding: 12px 13px;
	transition: background 150ms ease, color 150ms ease;
}

.portal-sidebar__nav a:hover,
.portal-sidebar__nav a.is-active {
	background: rgba(255, 255, 255, 0.09);
	color: #fff;
}

.portal-sidebar__nav a.is-active {
	box-shadow: inset 3px 0 #ffc107;
}

.portal-sidebar__nav .icon {
	height: 18px;
	width: 18px;
}

.portal-sidebar__nav a > span:not(.portal-sidebar__count) {
	min-width: 0;
}

.portal-sidebar__count {
	align-items: center;
	background: #ffc107;
	border-radius: 999px;
	color: #10213a;
	display: inline-flex;
	font-size: 0.58rem;
	font-weight: 900;
	height: 21px;
	justify-content: center;
	margin-left: auto;
	min-width: 21px;
	padding: 0 6px;
}

.portal-sidebar__footer {
	border-top: 1px solid rgba(255, 255, 255, 0.09);
	display: flex;
	justify-content: space-between;
	margin-top: auto;
	padding: 20px 10px 0;
}

.portal-sidebar__footer a {
	color: #91a5be;
	font-size: 0.7rem;
	font-weight: 650;
}

.portal-workspace {
	min-width: 0;
}

.portal-topbar {
	align-items: center;
	background: #fff;
	border-bottom: 1px solid #dce4ed;
	display: flex;
	height: 72px;
	justify-content: flex-end;
	padding: 0 clamp(24px, 4vw, 54px);
}

.portal-topbar__identity,
.portal-client__identity {
	align-items: center;
	display: flex;
	gap: 10px;
}

.portal-topbar__identity > span:nth-child(2),
.portal-client__identity > span:nth-child(2) {
	display: grid;
	line-height: 1.2;
}

.portal-topbar__identity strong,
.portal-client__identity strong {
	color: #263244;
	font-size: 0.75rem;
}

.portal-topbar__identity small,
.portal-client__identity small {
	color: #8591a2;
	font-size: 0.64rem;
	margin-top: 3px;
}

.portal-avatar {
	align-items: center;
	background: #e8eef6;
	border-radius: 50%;
	color: #0d2e5a;
	display: inline-flex;
	font-size: 0.76rem;
	font-weight: 850;
	height: 36px;
	justify-content: center;
	width: 36px;
}

.portal-sidebar-toggle,
.portal-mobile-nav {
	display: none;
}

.portal-content {
	margin: 0 auto;
	max-width: 1480px;
	padding: clamp(34px, 4.5vw, 64px);
}

.portal-page-heading {
	align-items: flex-end;
	display: flex;
	gap: 30px;
	justify-content: space-between;
	margin-bottom: 34px;
}

.portal-page-heading h1 {
	font-size: clamp(2rem, 3.5vw, 3.15rem);
	margin-bottom: 11px;
}

.portal-page-heading p {
	color: #6b7789;
	margin: 0;
}

.portal-page-heading--compact,
.portal-page-heading--detail {
	align-items: flex-start;
}

.portal-page-heading--compact .portal-back-link,
.portal-page-heading--detail .portal-back-link {
	margin-bottom: 30px;
}

.portal-title-line {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.portal-title-line h1 {
	margin-bottom: 0;
}

.portal-stat-grid {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin-bottom: 26px;
}

.portal-stat {
	align-items: center;
	background: #fff;
	border: 1px solid #e0e7ef;
	border-radius: 15px;
	box-shadow: 0 10px 32px rgba(13, 46, 90, 0.045);
	display: flex;
	gap: 15px;
	min-width: 0;
	padding: 19px;
}

.portal-stat__icon {
	align-items: center;
	background: #eaf1fa;
	border-radius: 12px;
	color: #38669d;
	display: inline-flex;
	flex: 0 0 auto;
	height: 44px;
	justify-content: center;
	width: 44px;
}

.portal-stat__icon--green {
	background: #e6f7f1;
	color: #087d5b;
}

.portal-stat__icon--yellow {
	background: #fff7d7;
	color: #9a7200;
}

.portal-stat__icon--navy {
	background: #e7ecf3;
	color: #0d2e5a;
}

.portal-stat__icon .icon {
	height: 20px;
	width: 20px;
}

.portal-stat > div {
	display: grid;
	min-width: 0;
}

.portal-stat > div > span {
	color: #788598;
	font-size: 0.67rem;
	font-weight: 750;
	text-transform: uppercase;
}

.portal-stat strong {
	color: #172238;
	font-size: 1.75rem;
	line-height: 1.12;
	margin: 3px 0;
}

.portal-stat small {
	color: #8792a2;
	font-size: 0.63rem;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.portal-card,
.portal-form {
	background: #fff;
	border: 1px solid #e0e7ef;
	border-radius: 16px;
	box-shadow: 0 12px 38px rgba(13, 46, 90, 0.045);
	margin-bottom: 24px;
	overflow: hidden;
}

.portal-card__header {
	align-items: center;
	border-bottom: 1px solid #e7edf3;
	display: flex;
	justify-content: space-between;
	padding: 23px 26px;
}

.portal-card__header .portal-kicker {
	margin-bottom: 6px;
}

.portal-card__header h2 {
	font-size: 1.2rem;
	margin: 0;
}

.portal-card__meta {
	color: #7a8798;
	font-size: 0.7rem;
}

.portal-table-wrap {
	overflow-x: auto;
}

.portal-table {
	border-collapse: collapse;
	font-size: 0.75rem;
	width: 100%;
}

.portal-table th {
	background: #f8fafc;
	color: #6d7a8d;
	font-size: 0.62rem;
	font-weight: 800;
	letter-spacing: 0.07em;
	padding: 12px 17px;
	text-align: left;
	text-transform: uppercase;
	white-space: nowrap;
}

.portal-table td {
	border-top: 1px solid #edf1f5;
	color: #445064;
	padding: 15px 17px;
	vertical-align: middle;
	white-space: nowrap;
}

.portal-table tbody tr {
	transition: background 120ms ease;
}

.portal-table tbody tr[data-row-href] {
	cursor: pointer;
}

.portal-table tbody tr[data-row-href]:focus-visible {
	outline: 3px solid #ffc107;
	outline-offset: -3px;
}

.portal-table tbody tr:hover {
	background: #fbfcfe;
}

.portal-report-table tbody tr.is-new {
	background: #f6faff;
}

.portal-report-table tbody tr.is-new:hover {
	background: #eef6ff;
}

.portal-table td:first-child {
	min-width: 190px;
	white-space: normal;
}

.portal-table td strong {
	color: #1c2739;
	display: block;
	font-size: 0.78rem;
}

.portal-table td small {
	color: #8793a3;
	display: block;
	font-size: 0.65rem;
	margin-top: 2px;
}

.portal-row-link {
	align-items: center;
	background: #edf2f8;
	border-radius: 8px;
	color: #0d2e5a;
	display: inline-flex;
	font-weight: 850;
	height: 31px;
	justify-content: center;
	width: 31px;
}

.portal-row-link:hover,
.portal-row-link:focus-visible {
	background: #dfe8f3;
}

.portal-row-actions {
	align-items: center;
	display: flex;
	gap: 7px;
	justify-content: flex-end;
}

.portal-row-delete-form {
	margin: 0;
}

.portal-row-delete {
	align-items: center;
	background: #fff;
	border: 1px solid #f0c7c4;
	border-radius: 8px;
	color: #b42318;
	cursor: pointer;
	display: inline-flex;
	height: 31px;
	justify-content: center;
	padding: 0;
	transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
	width: 31px;
}

.portal-row-delete:hover,
.portal-row-delete:focus-visible {
	background: #fff0ee;
	border-color: #e8a39e;
	color: #8f1d14;
}

.portal-badge {
	background: #eef2f6;
	border-radius: 999px;
	color: #5c6879;
	display: inline-flex;
	font-size: 0.61rem;
	font-weight: 800;
	letter-spacing: 0.02em;
	line-height: 1;
	padding: 7px 9px;
	white-space: nowrap;
}

.portal-badge--success {
	background: #e5f7f0;
	color: #087857;
}

.portal-badge--info {
	background: #e5f0ff;
	color: #1d5eaa;
}

.portal-badge--warning,
.portal-badge--scheduled {
	background: #fff4cf;
	color: #835e00;
}

.portal-badge--danger,
.portal-badge--disabled {
	background: #fdecea;
	color: #a22a20;
}

.portal-badge--large {
	font-size: 0.72rem;
	padding: 10px 14px;
}

.portal-empty {
	color: #778397;
	padding: 52px 30px;
	text-align: center;
}

.portal-empty strong {
	color: #263247;
	display: block;
	margin-bottom: 4px;
}

.portal-empty p {
	font-size: 0.78rem;
	margin-bottom: 17px;
}

.portal-empty--card {
	background: #fff;
	border: 1px solid #e0e7ef;
	border-radius: 16px;
}

.portal-filters {
	align-items: center;
	background: #fff;
	border: 1px solid #e0e7ef;
	border-radius: 14px;
	display: flex;
	gap: 12px;
	margin-bottom: 18px;
	padding: 13px;
}

.portal-search {
	flex: 1 1 340px;
	position: relative;
}

.portal-search .icon {
	color: #8490a0;
	height: 17px;
	left: 14px;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 17px;
}

.portal-search input {
	border-color: transparent;
	min-height: 42px;
	padding-left: 41px;
}

.portal-filters select {
	min-height: 42px;
	min-width: 160px;
}

.portal-filters .portal-button {
	min-height: 42px;
}

.portal-pagination {
	border-top: 1px solid #e7edf3;
	display: flex;
	gap: 7px;
	justify-content: center;
	padding: 18px;
}

.portal-pagination a {
	align-items: center;
	border: 1px solid #d8e1eb;
	border-radius: 8px;
	color: #5c687a;
	display: inline-flex;
	font-size: 0.72rem;
	height: 34px;
	justify-content: center;
	width: 34px;
}

.portal-pagination a.is-current {
	background: #0d2e5a;
	border-color: #0d2e5a;
	color: #fff;
}

.portal-pagination__gap {
	align-items: center;
	color: #7d8999;
	display: inline-flex;
	height: 34px;
	justify-content: center;
	width: 22px;
}

.portal-form {
	overflow: visible;
}

.portal-form__section {
	padding: clamp(24px, 3vw, 36px);
}

.portal-form__section + .portal-form__section {
	border-top: 1px solid #e5ebf2;
}

.portal-form__heading {
	align-items: center;
	display: flex;
	justify-content: space-between;
	margin-bottom: 26px;
}

.portal-form__heading h2 {
	font-size: 1.35rem;
	margin: 0;
}

.portal-form__grid {
	display: grid;
	gap: 21px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.portal-form__grid--three {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portal-field--wide {
	grid-column: span 2;
}

.portal-form__grid--three .portal-field--wide {
	grid-column: span 2;
}

.portal-switch {
	align-items: center;
	color: #3c485a;
	cursor: pointer;
	display: inline-flex;
	font-size: 0.72rem;
	font-weight: 700;
	gap: 9px;
}

.portal-switch input {
	height: 1px;
	opacity: 0;
	position: absolute;
	width: 1px;
}

.portal-switch span {
	background: #c8d2de;
	border-radius: 999px;
	height: 23px;
	position: relative;
	transition: background 150ms ease;
	width: 42px;
}

.portal-switch span::after {
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
	content: "";
	height: 17px;
	left: 3px;
	position: absolute;
	top: 3px;
	transition: transform 150ms ease;
	width: 17px;
}

.portal-switch input:checked + span {
	background: #059669;
}

.portal-switch input:checked + span::after {
	transform: translateX(19px);
}

.portal-switch input:focus-visible + span {
	outline: 3px solid #ffc107;
	outline-offset: 3px;
}

.portal-form__actions {
	align-items: center;
	background: #f8fafc;
	border-top: 1px solid #e5ebf2;
	display: flex;
	gap: 10px;
	justify-content: flex-end;
	padding: 18px clamp(24px, 3vw, 36px);
}

.portal-detail-stats {
	display: grid;
	gap: 15px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin-bottom: 24px;
}

.portal-report-delete-form {
	flex: 0 0 auto;
	margin: 0;
}

.portal-report-actions {
	align-items: center;
	display: flex;
	flex: 0 0 auto;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: flex-end;
}

.portal-report-copy-button {
	font-size: 0.76rem;
	min-height: 43px;
	padding: 10px 15px;
	white-space: nowrap;
}

.portal-report-copy-button.is-copied {
	background: #ecfdf3;
	border-color: #a6f4c5;
	color: #067647;
}

.portal-report-copy-button.is-copy-error {
	background: #fff6f5;
	border-color: #f0c7c4;
	color: #b42318;
}

.portal-detail-stats article {
	background: #fff;
	border: 1px solid #e0e7ef;
	border-radius: 13px;
	display: grid;
	padding: 17px 19px;
}

.portal-detail-stats span {
	color: #7b8798;
	font-size: 0.64rem;
	font-weight: 750;
	text-transform: uppercase;
}

.portal-detail-stats strong {
	color: #1f2a3b;
	font-size: 1rem;
	margin: 4px 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.portal-detail-stats small {
	color: #8994a3;
	font-size: 0.62rem;
}

.portal-report-layout {
	align-items: start;
	display: grid;
	gap: 24px;
	grid-template-columns: minmax(0, 1.75fr) minmax(310px, 0.85fr);
}

.portal-report-layout__main,
.portal-report-layout__side {
	min-width: 0;
}

.portal-report-copy {
	color: #334155;
	font-size: 0.84rem;
	line-height: 1.75;
	overflow-wrap: anywhere;
	padding: clamp(24px, 3vw, 34px);
	white-space: pre-wrap;
}

.portal-report-status-form {
	display: grid;
	gap: 15px;
	padding: 22px 24px 24px;
}

.portal-report-status-form .portal-field {
	gap: 8px;
}

.portal-report-meta {
	display: grid;
	margin: 0;
}

.portal-report-meta > div {
	border-top: 1px solid #e9eef4;
	display: grid;
	gap: 5px;
	padding: 15px 24px;
}

.portal-report-meta > div:first-child {
	border-top: 0;
}

.portal-report-meta dt {
	color: #7b8798;
	font-size: 0.6rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.portal-report-meta dd {
	color: #334155;
	font-size: 0.75rem;
	margin: 0;
	min-width: 0;
	overflow-wrap: anywhere;
}

.portal-report-meta dd small,
.portal-report-meta dd code {
	color: #8490a0;
	display: block;
	font-size: 0.63rem;
	margin-top: 4px;
	overflow-wrap: anywhere;
	white-space: normal;
}

.portal-report-diagnostics .portal-report-muted {
	padding: 22px 24px 24px;
}

.portal-report-muted {
	color: #7d8999;
	font-size: 0.75rem;
	line-height: 1.6;
	margin: 0;
}

.portal-exception-card__body {
	background: #0c1d32;
	padding: clamp(22px, 3vw, 30px);
}

.portal-report-exception-type {
	display: grid;
	gap: 7px;
	margin-bottom: 18px;
}

.portal-report-exception-type span {
	color: #8fa7c4;
	font-size: 0.6rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.portal-report-exception-type code {
	color: #dbeafe;
	font-size: 0.72rem;
	overflow-wrap: anywhere;
	white-space: normal;
}

.portal-exception-card pre {
	background: #071525;
	border: 1px solid rgba(143, 167, 196, 0.18);
	border-radius: 10px;
	color: #d8e5f4;
	font-size: 0.68rem;
	line-height: 1.65;
	margin: 0;
	max-height: 520px;
	overflow: auto;
	padding: 18px;
	white-space: pre-wrap;
	word-break: break-word;
}

.portal-exception-card .portal-report-muted {
	color: #9fb1c8;
}

.portal-device-list {
	display: grid;
}

.portal-device {
	align-items: center;
	display: grid;
	gap: 16px;
	grid-template-columns: auto minmax(0, 1fr) auto;
	padding: 18px 25px;
}

.portal-device + .portal-device {
	border-top: 1px solid #e9eef4;
}

.portal-device__icon {
	align-items: center;
	background: #eaf0f7;
	border-radius: 11px;
	color: #426b9e;
	display: inline-flex;
	height: 42px;
	justify-content: center;
	width: 42px;
}

.portal-device__icon .icon {
	height: 19px;
	width: 19px;
}

.portal-device__main {
	min-width: 0;
}

.portal-device__main > div {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
}

.portal-device__main strong {
	color: #1e293b;
	font-size: 0.82rem;
}

.portal-device__main small {
	color: #7d899a;
	display: block;
	font-size: 0.68rem;
	margin-top: 3px;
}

.portal-device__main code {
	background: transparent;
	color: #9aa4b2;
	display: block;
	font-size: 0.59rem;
	margin-top: 4px;
}

.portal-timeline {
	padding: 4px 25px 12px;
}

.portal-timeline__item {
	align-items: center;
	display: grid;
	gap: 14px;
	grid-template-columns: auto minmax(0, 1fr) auto;
	padding: 14px 0;
	position: relative;
}

.portal-timeline__item + .portal-timeline__item {
	border-top: 1px solid #edf1f5;
}

.portal-timeline__dot {
	background: #4a6fa5;
	border: 4px solid #e7eef7;
	border-radius: 50%;
	height: 13px;
	width: 13px;
}

.portal-timeline__item strong {
	color: #243044;
	display: block;
	font-size: 0.75rem;
}

.portal-timeline__item p {
	color: #7e8999;
	font-size: 0.66rem;
	margin: 1px 0 0;
}

.portal-timeline__item time {
	color: #8a95a4;
	font-size: 0.65rem;
	white-space: nowrap;
}

.portal-setup,
.portal-fatal {
	align-items: flex-start;
	background: #fff;
	border: 1px solid #e0e7ef;
	border-radius: 18px;
	display: flex;
	gap: 22px;
	padding: clamp(30px, 5vw, 54px);
}

.portal-setup__icon,
.portal-fatal > span {
	align-items: center;
	background: #fff3cd;
	border-radius: 50%;
	color: #8a6400;
	display: inline-flex;
	flex: 0 0 auto;
	font-size: 1rem;
	font-weight: 900;
	height: 50px;
	justify-content: center;
	width: 50px;
}

.portal-setup h1,
.portal-fatal h1 {
	font-size: 2rem;
	margin-bottom: 12px;
}

.portal-setup p,
.portal-fatal p {
	color: #6f7b8d;
	max-width: 720px;
}

.portal-client {
	background: #f3f6fa;
	min-height: calc(100vh - 84px);
}

.portal-client__header {
	background: #0a294f;
	color: #fff;
}

.portal-client__header-inner {
	align-items: center;
	display: flex;
	justify-content: space-between;
	min-height: 74px;
}

.portal-client__brand {
	align-items: center;
	display: flex;
	gap: 12px;
}

.portal-client__brand > span {
	border-radius: 8px;
	height: 34px;
	width: 34px;
}

.portal-client__brand strong {
	font-size: 0.9rem;
}

.portal-client__identity .portal-avatar {
	background: rgba(255, 255, 255, 0.13);
	color: #fff;
}

.portal-client__identity strong {
	color: #fff;
}

.portal-client__identity small {
	color: #aebed2;
}

.portal-client__identity > a {
	border-left: 1px solid rgba(255, 255, 255, 0.15);
	color: #c4d0df;
	font-size: 0.7rem;
	margin-left: 9px;
	padding-left: 18px;
}

.portal-client__content {
	padding-block: clamp(45px, 6vw, 80px);
}

.portal-client-grid {
	display: grid;
	gap: 20px;
	grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.65fr);
	margin-bottom: 23px;
}

.portal-license-hero {
	background:
		radial-gradient(circle at 85% 10%, rgba(74, 111, 165, 0.35), transparent 33%),
		linear-gradient(135deg, #091f3d, #0e386d);
	border-radius: 18px;
	box-shadow: 0 20px 45px rgba(7, 31, 61, 0.18);
	color: #d7e1ed;
	overflow: hidden;
	padding: clamp(27px, 4vw, 42px);
	position: relative;
}

.portal-license-hero::after {
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
	background-size: 42px 42px;
	content: "";
	inset: 0;
	mask-image: linear-gradient(90deg, transparent, #000);
	pointer-events: none;
}

.portal-license-hero__top,
.portal-license-hero__details {
	position: relative;
	z-index: 1;
}

.portal-license-hero__top {
	align-items: flex-start;
	display: flex;
	justify-content: space-between;
	margin-bottom: 42px;
}

.portal-license-hero__top > div {
	display: grid;
}

.portal-license-hero__top span {
	color: #a9bad0;
	font-size: 0.68rem;
	font-weight: 750;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.portal-license-hero__top strong {
	color: #fff;
	font-size: clamp(1.8rem, 3vw, 2.7rem);
	line-height: 1.1;
	margin-top: 6px;
}

.portal-license-mark {
	align-items: center;
	background: #ffc107;
	border-radius: 12px;
	color: #152238 !important;
	display: inline-flex;
	font-size: 1.45rem !important;
	height: 49px;
	justify-content: center;
	width: 49px;
}

.portal-license-hero__details {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.portal-license-hero__details div {
	display: grid;
	min-width: 0;
}

.portal-license-hero__details span {
	color: #93a8c3;
	font-size: 0.62rem;
	font-weight: 700;
	text-transform: uppercase;
}

.portal-license-hero__details strong {
	color: #f7f9fc;
	font-size: 0.75rem;
	margin-top: 4px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.portal-usage-card {
	background: #fff;
	border: 1px solid #e0e7ef;
	border-radius: 18px;
	padding: 27px;
}

.portal-usage-card h2 {
	font-size: 1.35rem;
	margin-bottom: 20px;
}

.portal-usage-card__number {
	align-items: baseline;
	display: flex;
	gap: 7px;
}

.portal-usage-card__number strong {
	color: #0d2e5a;
	font-size: 3.1rem;
	line-height: 1;
}

.portal-usage-card__number span {
	color: #8490a1;
	font-size: 0.83rem;
}

.portal-progress {
	background: #e5ebf2;
	border-radius: 999px;
	height: 7px;
	margin: 21px 0 9px;
	overflow: hidden;
}

.portal-progress span {
	background: linear-gradient(90deg, #0d2e5a, #4a78ad);
	border-radius: inherit;
	display: block;
	height: 100%;
}

.portal-usage-card > small {
	color: #7e8a9a;
	font-size: 0.7rem;
}

.portal-client-bottom {
	display: grid;
	gap: 23px;
	grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
}

.portal-support-card {
	background:
		radial-gradient(circle at 90% 5%, rgba(255, 193, 7, 0.11), transparent 32%),
		#0b2b54;
	border-radius: 16px;
	color: #c8d5e5;
	padding: 30px;
}

.portal-support-card h2 {
	color: #fff;
	font-size: 1.65rem;
	margin-bottom: 13px;
}

.portal-support-card p {
	color: #aabbd0;
	font-size: 0.78rem;
	margin-bottom: 24px;
}

.portal-fatal {
	display: block;
	margin-block: 70px;
	text-align: center;
}

.portal-fatal > span {
	margin: 0 auto 20px;
}

.portal-fatal > div {
	align-items: center;
	display: flex;
	gap: 18px;
	justify-content: center;
}

@media (max-width: 1200px) {
	.portal-stat-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.portal-detail-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.portal-form__grid--three {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.portal-license-hero__details {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.portal-report-layout {
		grid-template-columns: minmax(0, 1.45fr) minmax(290px, 0.9fr);
	}
}

@media (max-width: 980px) {
	.portal-login {
		grid-template-columns: 1fr;
	}

	.portal-login__brand-panel {
		min-height: auto;
		padding: 58px max(28px, 7vw);
	}

	.portal-login__brand-content h1 {
		font-size: clamp(2.6rem, 8vw, 4.3rem);
	}

	.portal-login__security {
		margin-top: 45px;
	}

	.portal-login__form-panel {
		padding: 60px max(24px, 7vw) 80px;
	}

	.portal-app {
		display: block;
	}

	.portal-sidebar {
		display: none;
	}

	.portal-topbar {
		justify-content: space-between;
	}

	.portal-sidebar-toggle {
		background: #edf2f7;
		border: 0;
		border-radius: 8px;
		color: #0d2e5a;
		cursor: pointer;
		display: inline-flex;
		font-size: 1rem;
		padding: 8px 10px;
	}

	.portal-mobile-nav {
		background: #0a294f;
		color: #fff;
		padding: 13px 24px;
	}

	.portal-mobile-nav:not([hidden]) {
		display: grid;
		gap: 4px;
	}

	.portal-mobile-nav a {
		border-bottom: 1px solid rgba(255, 255, 255, 0.09);
		font-size: 0.78rem;
		padding: 10px 4px;
	}

	.portal-client-grid,
	.portal-client-bottom {
		grid-template-columns: 1fr;
	}

	.portal-report-layout {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 760px) {
	.portal-page-heading {
		align-items: flex-start;
		flex-direction: column;
	}

	.portal-report-actions {
		display: grid;
		grid-template-columns: 1fr;
		width: 100%;
	}

	.portal-report-delete-form {
		width: 100%;
	}

	.portal-page-heading .portal-button {
		width: 100%;
	}

	.portal-content {
		padding: 30px 20px 50px;
	}

	.portal-stat-grid,
	.portal-detail-stats {
		grid-template-columns: 1fr;
	}

	.portal-filters {
		align-items: stretch;
		flex-direction: column;
	}

	.portal-filters select {
		width: 100%;
	}

	.portal-table thead {
		display: none;
	}

	.portal-table,
	.portal-table tbody,
	.portal-table tr,
	.portal-table td {
		display: block;
		width: 100%;
	}

	.portal-table tr {
		padding: 13px 17px;
	}

	.portal-table tr + tr {
		border-top: 1px solid #e8edf3;
	}

	.portal-table td {
		border: 0;
		display: flex;
		justify-content: space-between;
		padding: 6px 0;
		text-align: right;
		white-space: normal;
	}

	.portal-table td::before {
		color: #7b8798;
		content: attr(data-label);
		font-size: 0.62rem;
		font-weight: 750;
		margin-right: 18px;
		text-align: left;
		text-transform: uppercase;
	}

	.portal-table td:first-child {
		display: block;
		padding-bottom: 10px;
		text-align: left;
	}

	.portal-table td:first-child::before,
	.portal-table td:last-child::before {
		display: none;
	}

	.portal-table td:last-child {
		justify-content: flex-end;
	}

	.portal-form__heading {
		align-items: flex-start;
		flex-direction: column;
		gap: 17px;
	}

	.portal-form__grid,
	.portal-form__grid--three {
		grid-template-columns: 1fr;
	}

	.portal-field--wide,
	.portal-form__grid--three .portal-field--wide {
		grid-column: auto;
	}

	.portal-device {
		align-items: flex-start;
		grid-template-columns: auto minmax(0, 1fr);
	}

	.portal-device form {
		grid-column: 2;
	}

	.portal-timeline__item {
		align-items: flex-start;
		grid-template-columns: auto minmax(0, 1fr);
	}

	.portal-timeline__item time {
		grid-column: 2;
	}

	.portal-client__header-inner {
		align-items: flex-start;
		flex-direction: column;
		gap: 16px;
		padding-block: 17px;
	}

	.portal-license-hero__details {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 520px) {
	.portal-login__brand-panel {
		padding: 45px 22px;
	}

	.portal-login__benefits {
		font-size: 0.8rem;
	}

	.portal-login__form-panel {
		padding-inline: 20px;
	}

	.portal-form__actions {
		align-items: stretch;
		flex-direction: column-reverse;
	}

	.portal-form__actions .portal-button {
		width: 100%;
	}

	.portal-license-hero__details {
		grid-template-columns: 1fr;
	}

	.portal-client__identity {
		align-items: flex-start;
		flex-wrap: wrap;
	}

	.portal-client__identity > a {
		border: 0;
		margin: 0 0 0 auto;
		padding: 8px 0;
	}

	.portal-fatal > div {
		flex-direction: column;
	}
}

@media (prefers-reduced-motion: reduce) {
	.portal-button,
	.portal-sidebar__nav a,
	.portal-switch span,
	.portal-switch span::after {
		transition: none;
	}
}
