/* Mobile portal — Aiesec-portal--mobile (Мобильная версия. Правила) */
body.Aiesec-portal--mobile {
	--aiesec-mobile-tab-h: 3.5rem;
	padding-bottom: calc(var(--aiesec-mobile-tab-h) + env(safe-area-inset-bottom, 0px));
	font-size: 16px;
}

body.Aiesec-portal--mobile .Aiesec-cabinet__nav--top,
body.Aiesec-portal--mobile .Aiesec-cabinet__nav-shell,
body.Aiesec-portal--mobile .Aiesec-cabinet__nav-textmenu,
body.Aiesec-portal--mobile .Aiesec-cabinet__nav-textmenu.is-floating,
body.Aiesec-portal--mobile .Aiesec-cabinet__nav-textmenu.is-open,
body.Aiesec-portal--mobile > .Aiesec-cabinet__nav-textmenu,
body.Aiesec-portal--mobile .Aiesec-cabinet__nav-edit,
body.Aiesec-portal--mobile .Aiesec-cabinet__nav-save,
body.Aiesec-portal--mobile .Aiesec-cabinet__nav-textmenu-t,
body.Aiesec-portal--mobile .Aiesec-cabinet__nav-textmenu-k,
body.Aiesec-portal--mobile .Aiesec-cabinet__nav-color-reset,
body.Aiesec-portal--mobile .Aiesec-cabinet__nav-font-up,
body.Aiesec-portal--mobile .Aiesec-cabinet__nav-font-down,
body.Aiesec-portal--mobile .Aiesec-cabinet__nav-editmode,
body.Aiesec-portal--mobile .Aiesec-forms-aside,
body.Aiesec-portal--mobile .Aiesec-dash-aside,
body.Aiesec-portal--mobile .Aiesec-aside,
body.Aiesec-portal--mobile .Aiesec-dev-switch,
body.Aiesec-portal--mobile footer.dd-footer,
body.Aiesec-portal--mobile .dd-footer,
body.Aiesec-portal--mobile #aiesec-lk-dock,
body.Aiesec-portal--mobile .Aiesec-lk-dock,
body.Aiesec-portal--mobile .Aiesec-hover-tip,
body.Aiesec-portal--mobile .Aiesec-col-resize-handle {
	display: none !important;
}

body.Aiesec-portal--mobile .Aiesec-dash-hub {
	grid-template-columns: minmax(0, 1fr);
}

body.Aiesec-portal--mobile .Aiesec-dash-lifecycle-feed {
	display: none !important;
}

body.Aiesec-portal--mobile .Aiesec-forms-layout,
body.Aiesec-portal--mobile .Aiesec-body {
	display: block;
	grid-template-columns: none;
}

body.Aiesec-portal--mobile .Aiesec-forms-main,
body.Aiesec-portal--mobile .Aiesec-body__main {
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

body.Aiesec-portal--mobile,
body.Aiesec-portal--mobile input,
body.Aiesec-portal--mobile select,
body.Aiesec-portal--mobile textarea,
body.Aiesec-portal--mobile button {
	font-size: max(16px, 1rem);
}

body.Aiesec-portal--mobile input[type="checkbox"],
body.Aiesec-portal--mobile input[type="radio"] {
	width: 1.375rem;
	height: 1.375rem;
	min-width: 44px;
	min-height: 44px;
}

body.Aiesec-portal--mobile .Aiesec-mobile-login__submit,
body.Aiesec-portal--mobile .Aiesec-mobile-tabbar__item,
body.Aiesec-portal--mobile .Aiesec-btn,
body.Aiesec-portal--mobile button,
body.Aiesec-portal--mobile a.Aiesec-landing__btn {
	min-height: 44px;
}

body.Aiesec-portal--mobile textarea,
body.Aiesec-portal--mobile input[type="text"],
body.Aiesec-portal--mobile input[type="password"],
body.Aiesec-portal--mobile input[type="email"],
body.Aiesec-portal--mobile input[type="search"],
body.Aiesec-portal--mobile input[type="datetime-local"],
body.Aiesec-portal--mobile input[type="date"],
body.Aiesec-portal--mobile input[type="time"],
body.Aiesec-portal--mobile select {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

/* Dark-only while mobile (light CSS kept for desktop) */
html[data-aiesec-theme="light"] body.Aiesec-portal--mobile {
	color-scheme: dark;
}

body.Aiesec-portal--mobile .Aiesec-open-pkg-popup {
	display: none !important;
}

.Aiesec-mobile-tabbar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 13000;
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: flex-start;
	gap: var(--space-2, 8px);
	min-height: var(--aiesec-mobile-tab-h, 3.5rem);
	padding: var(--space-2, 8px) var(--space-4, 16px) calc(var(--space-2, 8px) + env(safe-area-inset-bottom, 0px));
	background: linear-gradient(180deg, #2C2C2C 0%, #000 100%);
	border-top: 2px solid var(--c-orange, #FA924A);
	box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.35);
	overflow-x: clip;
}

.Aiesec-mobile-tabbar__item {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-align: left;
	padding: var(--space-2, 8px) 0;
	font-family: var(--font-primary, Inter, system-ui, sans-serif);
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.2;
	color: rgba(255, 255, 255, 0.87);
	text-decoration: none;
	border: 0;
	background: transparent;
	cursor: pointer;
	white-space: nowrap;
}

.Aiesec-mobile-tabbar__sep {
	flex: 0 0 auto;
	color: rgba(255, 255, 255, 0.55);
	font-size: 0.875rem;
	line-height: 1;
	user-select: none;
	pointer-events: none;
}

.Aiesec-mobile-tabbar__item.is-active {
	color: var(--c-orange, #FA924A);
}

.Aiesec-mobile-tabbar__item.Aiesec-mobile-return-desktop {
	color: var(--c-orange, #FA924A);
}

.Aiesec-mobile-forcebar {
	position: fixed;
	top: var(--space-2, 8px);
	right: var(--space-2, 8px);
	z-index: 13001;
}

.Aiesec-mobile-return-desktop,
.Aiesec-mobile-forcebar .Aiesec-mobile-return-desktop {
	min-height: 44px;
	padding: var(--space-2, 8px) var(--space-4, 16px);
	border: 1px solid rgba(250, 146, 74, 0.45);
	background: #2C2C2C;
	color: var(--c-orange, #FA924A);
	font-size: 0.875rem;
	cursor: pointer;
}

.Aiesec-mobile-login {
	margin: var(--space-6, 24px) 0;
	padding: var(--space-6, 24px);
	background: linear-gradient(180deg, #2C2C2C 0%, #000 100%);
	box-shadow: inset 3px 0 0 var(--c-orange, #FA924A);
	border-radius: 0;
}

.Aiesec-mobile-login__title {
	margin: 0 0 var(--space-4, 16px);
	padding-bottom: var(--space-2, 8px);
	border-bottom: 2px solid var(--c-orange, #FA924A);
	font-size: 1.25rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.87);
}

.Aiesec-mobile-login__label {
	display: block;
	margin-bottom: var(--space-4, 16px);
	color: rgba(255, 255, 255, 0.87);
}

.Aiesec-mobile-login__label span {
	display: block;
	margin-bottom: var(--space-2, 8px);
}

.Aiesec-mobile-login__label input {
	display: block;
	width: 100%;
	padding: var(--space-3, 12px) var(--space-4, 16px);
	border: 1px solid rgba(250, 146, 74, 0.35);
	background: #000;
	color: #fff;
	box-sizing: border-box;
}

.Aiesec-mobile-login__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: var(--space-3, 12px) var(--space-5, 32px);
	border: 0;
	background: var(--c-orange, #FA924A);
	color: #000;
	font-weight: 600;
	cursor: pointer;
}

.Aiesec-mobile-desktop-only {
	max-width: 28rem;
	margin: var(--space-8, 48px) auto;
	padding: var(--space-6, 24px);
	background: linear-gradient(180deg, #2C2C2C 0%, #000 100%);
	color: rgba(255, 255, 255, 0.87);
}

.Aiesec-mobile-desktop-only__title {
	margin: 0 0 var(--space-4, 16px);
	padding-bottom: var(--space-2, 8px);
	border-bottom: 2px solid var(--c-orange, #FA924A);
	font-size: 1.25rem;
}

.Aiesec-mobile-desktop-only__text {
	margin: 0 0 var(--space-6, 24px);
	line-height: 1.5;
}

.Aiesec-mobile-desktop-only__link {
	color: var(--c-orange, #FA924A);
}

/* Force-mobile on wide screens still uses mobile chrome */
body.Aiesec-portal--mobile.Aiesec-portal--force-mobile .Aiesec-cabinet__nav--top {
	display: none !important;
}

/* Card-list hint: tables stack more comfortably */
@media (max-width: 767px) {
	body.Aiesec-portal--mobile .Aiesec-cbl-table,
	body.Aiesec-portal--mobile .Aiesec-dash-table {
		font-size: 0.875rem;
	}
}

/* UI-932 / UI-933 — chat & calendar mobile lists (desktop unchanged) */
body.Aiesec-portal--mobile .Aiesec-chat-mlist,
body.Aiesec-portal--mobile .Aiesec-chat-mthread,
body.Aiesec-portal--mobile .Aiesec-cal-mlist {
	display: flex;
	flex-direction: column;
	gap: var(--space-4, 16px);
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

body.Aiesec-portal--mobile .Aiesec-chat-mlist__card,
body.Aiesec-portal--mobile .Aiesec-chat-mthread__card,
body.Aiesec-portal--mobile .Aiesec-cal-mlist__card {
	padding: var(--space-4, 16px);
	border: 1px solid rgba(250, 146, 74, 0.28);
	border-radius: 0;
	background: linear-gradient(180deg, #2C2C2C 0%, #000 100%);
	box-shadow: inset 3px 0 0 var(--c-orange, #FA924A);
}

body.Aiesec-portal--mobile .Aiesec-chat-mlist__num,
body.Aiesec-portal--mobile .Aiesec-chat-mthread__num,
body.Aiesec-portal--mobile .Aiesec-cal-mlist__num {
	margin: 0 0 var(--space-2, 8px);
	font-weight: 600;
	color: var(--c-orange, #FA924A);
}

body.Aiesec-portal--mobile .Aiesec-chat-mlist__row,
body.Aiesec-portal--mobile .Aiesec-cal-mlist__row {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0 0 var(--space-2, 8px);
}

body.Aiesec-portal--mobile .Aiesec-chat-mlist__lab,
body.Aiesec-portal--mobile .Aiesec-cal-mlist__lab {
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.62);
}

body.Aiesec-portal--mobile .Aiesec-chat-mlist__val,
body.Aiesec-portal--mobile .Aiesec-cal-mlist__val,
body.Aiesec-portal--mobile .Aiesec-chat-mthread__body,
body.Aiesec-portal--mobile .Aiesec-chat-mthread__author,
body.Aiesec-portal--mobile .Aiesec-chat-mthread__meta {
	color: var(--c-text, rgba(255, 255, 255, 0.87));
	overflow-wrap: anywhere;
	word-break: break-word;
}

body.Aiesec-portal--mobile .Aiesec-chat-mlist__open,
body.Aiesec-portal--mobile .Aiesec-chat-mthread__send,
body.Aiesec-portal--mobile .Aiesec-cal-mlist__ack {
	color: var(--c-orange, #FA924A);
	text-decoration: underline;
	font-weight: 500;
}

body.Aiesec-portal--mobile .Aiesec-chat-mlist__open-wrap,
body.Aiesec-portal--mobile .Aiesec-chat-mthread__send-wrap,
body.Aiesec-portal--mobile .Aiesec-cal-mlist__ack-wrap,
body.Aiesec-portal--mobile .Aiesec-cal-mlist__ack-done {
	margin: var(--space-2, 8px) 0 0;
}

body.Aiesec-portal--mobile .Aiesec-chat-mthread__compose {
	margin-top: var(--space-4, 16px);
	display: flex;
	flex-direction: column;
	gap: var(--space-2, 8px);
}

body.Aiesec-portal--mobile .Aiesec-chat-mthread__compose .Aiesec-chat-reply-input {
	width: 100%;
	min-height: 4.5rem;
	box-sizing: border-box;
}

body.Aiesec-portal--mobile .Aiesec-cal-mlist__empty,
body.Aiesec-portal--mobile .Aiesec-chat-mlist__empty {
	margin: 0;
	color: var(--c-text, rgba(255, 255, 255, 0.87));
}

