@import url("https://fonts.googleapis.com/css2?family=Russo+One&display=swap");

/* ============================================================
   Кабинет мониторинга PocketMine — assets/mp/pages/user.css
   Классы страницы: uc-*. Подключается каркасом assets/mp/shell.php.
   ============================================================ */

.uc-page {
	--uc-green: #248a2a;
	--uc-green-dark: #1b6b21;
	--uc-green-soft: rgba(44, 152, 48, 0.10);
	--uc-green-line: #cfe3d3;
	--uc-ink: #17231b;
	--uc-text: #33433a;
	--uc-muted: #6b7a70;
	--uc-faint: #94a29a;
	--uc-line: #e3eae5;
	--uc-line-soft: #eef3ef;
	--uc-card: #ffffff;
	--uc-radius: 14px;
	position: relative;
	width: 100%;
	max-width: 1160px;
	min-width: 0;
	padding: 6px 0 36px;
	color: var(--uc-text);
	font-size: 14px;
	line-height: 1.45;
}

.uc-page,
.uc-page *,
.uc-page *::before,
.uc-page *::after {
	box-sizing: border-box;
}

.uc-page i {
	font-style: normal;
}

/* ---------- Хлебные крошки ---------- */
.uc-crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin: 0 0 14px;
	font-size: 12.5px;
	color: var(--uc-muted);
}
.uc-crumbs a {
	color: var(--uc-muted);
	text-decoration: none;
	transition: color 0.15s ease;
}
.uc-crumbs a:hover {
	color: var(--uc-green);
}
.uc-crumbs span[aria-hidden="true"] {
	color: #b3c0b7;
}
.uc-crumbs span[aria-current="page"] {
	color: var(--uc-text);
	font-weight: 500;
}

/* ---------- Кнопки ---------- */
.uc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	height: 38px;
	padding: 0 15px;
	border: 1px solid #dce5df;
	border-radius: 9px;
	background: #fff;
	color: var(--uc-text);
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.uc-btn:hover {
	background: #f4f9f5;
	border-color: #c7d8cc;
	color: var(--uc-ink);
}
.uc-btn:focus-visible {
	outline: 2px solid var(--uc-green);
	outline-offset: 2px;
}
.uc-btn i {
	font-size: 12px;
	margin: 0;
}
.uc-btn--sm {
	height: 34px;
	padding: 0 12px;
	border-radius: 8px;
	font-size: 12.5px;
}
.uc-btn--green {
	background: linear-gradient(180deg, #2a9a32 0%, #248a2a 100%);
	border-color: #1f7d26;
	color: #fff;
	box-shadow: 0 2px 8px rgba(31, 125, 38, 0.22);
}
.uc-btn--green:hover {
	background: linear-gradient(180deg, #248a2a 0%, #1f7a24 100%);
	border-color: #1b6b21;
	color: #fff;
}
.uc-btn--white {
	background: #fff;
	border-color: #fff;
	color: var(--uc-green-dark);
}
.uc-btn--white:hover {
	background: #f0f8f1;
	border-color: #fff;
	color: var(--uc-green-dark);
}
.uc-btn--outline {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.5);
	color: #fff;
}
.uc-btn--outline:hover {
	background: rgba(255, 255, 255, 0.14);
	border-color: rgba(255, 255, 255, 0.8);
	color: #fff;
}

/* ---------- Шапка кабинета ---------- */
.uc-head {
	position: relative;
	overflow: hidden;
	padding: 24px;
	border: 1px solid #dde8e0;
	border-radius: 16px;
	background:
		radial-gradient(120% 150% at 100% 0%, rgba(44, 152, 48, 0.12) 0%, rgba(44, 152, 48, 0) 58%),
		linear-gradient(180deg, #ffffff 0%, #fbfdfb 100%);
	box-shadow: 0 1px 2px rgba(17, 45, 25, 0.04), 0 12px 32px rgba(17, 45, 25, 0.05);
}
.uc-head__row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 22px;
}
.uc-head__who {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	min-width: 0;
}
.uc-avatar {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 54px;
	height: 54px;
	border-radius: 14px;
	background: linear-gradient(145deg, #2ca334 0%, #1f7a24 100%);
	box-shadow: 0 6px 16px rgba(31, 122, 36, 0.28);
	color: #fff;
	font-family: "Russo One", "Roboto", sans-serif;
	font-size: 24px;
	line-height: 1;
	text-transform: uppercase;
}
.uc-head__txt {
	min-width: 0;
}
.uc-page .uc-title {
	margin: 0;
	padding: 0;
	color: var(--uc-ink);
	font-family: "Russo One", "Roboto", sans-serif;
	font-size: 28px;
	font-weight: 400;
	line-height: 1.1;
	letter-spacing: 0.4px;
	text-transform: uppercase;
}
.uc-head__lead {
	margin: 6px 0 0;
	color: var(--uc-muted);
	font-size: 13.5px;
	line-height: 1.45;
}
.uc-head__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	margin-top: 10px;
	color: var(--uc-muted);
	font-size: 12.5px;
}
.uc-head__meta > * {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	min-width: 0;
}
.uc-head__meta > * + *::before {
	content: "·";
	margin-right: 6px;
	color: #b6c3b9;
}
.uc-head__meta i {
	font-size: 10px;
	color: var(--uc-faint);
}
.uc-head__email {
	max-width: 260px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	overflow-wrap: anywhere;
}
.uc-head__logout {
	color: var(--uc-muted);
	text-decoration: none;
}
.uc-head__logout:hover {
	color: #b3261e;
}
.uc-head__logout::before {
	color: #b6c3b9;
}
.uc-head__cta {
	display: flex;
	flex: 0 0 auto;
	flex-wrap: wrap;
	gap: 8px;
}

/* ---------- Краткие цифры ---------- */
.uc-kpis {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	margin-top: 22px;
}
.uc-kpi {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
	padding: 12px 14px;
	border: 1px solid #e6ede8;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.78);
}
.uc-kpi__label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--uc-muted);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	line-height: 1.3;
	text-transform: uppercase;
}
.uc-kpi__label i {
	font-size: 11px;
	color: var(--uc-faint);
}
.uc-kpi__value {
	color: var(--uc-ink);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.15;
	font-variant-numeric: tabular-nums;
	overflow-wrap: anywhere;
}
.uc-kpi--money .uc-kpi__value {
	color: var(--uc-green-dark);
}

/* ---------- Уведомление ---------- */
.uc-note {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-top: 14px;
	padding: 12px 16px;
	border: 1px solid var(--uc-green-line);
	border-radius: 12px;
	background: #eef8ef;
	color: #1d5c24;
	font-size: 13.5px;
	line-height: 1.45;
}
.uc-note i {
	margin-top: 2px;
	font-size: 14px;
	color: var(--uc-green);
}

/* ---------- Заголовок секции ---------- */
.uc-block {
	margin-top: 22px;
}
.uc-sec-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}
.uc-h2 {
	margin: 0;
	color: var(--uc-ink);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.01em;
}
.uc-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 24px;
	height: 22px;
	margin-left: 6px;
	padding: 0 7px;
	border-radius: 7px;
	background: var(--uc-green-soft);
	color: var(--uc-green-dark);
	font-size: 12px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	vertical-align: 1px;
}
.uc-sec-add {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--uc-green-dark);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}
.uc-sec-add i {
	font-size: 11px;
}
.uc-sec-add:hover {
	color: var(--uc-green);
}

/* ---------- Карточки серверов ---------- */
.uc-servers {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.uc-srv {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr) auto;
	grid-template-areas: "logo main actions";
	align-items: center;
	gap: 10px 16px;
	min-width: 0;
	padding: 16px 18px;
	border: 1px solid #e0e8e2;
	border-radius: var(--uc-radius);
	background: var(--uc-card);
	box-shadow: 0 1px 2px rgba(17, 45, 25, 0.03);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.uc-srv:hover {
	border-color: #c8dccd;
	box-shadow: 0 6px 22px rgba(17, 45, 25, 0.07);
}
.uc-srv__logo {
	grid-area: logo;
	position: relative;
	overflow: hidden;
	width: 56px;
	height: 56px;
	border: 1px solid #e3ebe5;
	border-radius: 12px;
	background: linear-gradient(150deg, #eef8ef 0%, #e2f1e4 100%);
}
.uc-srv__letter {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	color: #2a7a31;
	font-family: "Russo One", "Roboto", sans-serif;
	font-size: 22px;
	line-height: 1;
	text-transform: uppercase;
}
.uc-srv__logo img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.uc-srv__main {
	grid-area: main;
	min-width: 0;
}
.uc-srv__title {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 8px;
	min-width: 0;
}
.uc-srv__name {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.01em;
	min-width: 0;
}
.uc-srv__name a {
	color: var(--uc-ink);
	text-decoration: none;
	overflow-wrap: anywhere;
}
.uc-srv__name a:hover {
	color: var(--uc-green-dark);
}
.uc-pill {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	height: 22px;
	padding: 0 8px;
	border-radius: 6px;
	background: #f1f4f2;
	color: #52615a;
	font-size: 11.5px;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
}
.uc-pill i {
	font-size: 10px;
	color: #7c8b82;
}
.uc-pill__dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
	flex: 0 0 auto;
}
.uc-pill.is-ok {
	background: #e9f7ea;
	color: #1c6b22;
}
.uc-pill.is-wait {
	background: #fff4e0;
	color: #96600a;
}
.uc-pill.is-neutral {
	background: #f1f4f2;
	color: #52615a;
}
.uc-pill--plat {
	background: #f4f6f5;
	color: #5a6a61;
	font-weight: 500;
}

.uc-srv__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 14px;
	margin-top: 8px;
	color: var(--uc-muted);
	font-size: 12.5px;
}
.uc-meta {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	min-width: 0;
	font-variant-numeric: tabular-nums;
}
.uc-meta b {
	color: var(--uc-text);
	font-weight: 700;
}
.uc-meta i {
	font-size: 11px;
	color: var(--uc-faint);
}
.uc-meta--muted {
	color: var(--uc-faint);
	font-size: 12px;
}
.uc-meta--online.is-on {
	color: #1c6b22;
	font-weight: 600;
}
.uc-meta--online.is-on b {
	color: #1c6b22;
}
.uc-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #b9c6bd;
	flex: 0 0 auto;
}
.uc-meta--online.is-on .uc-dot {
	background: #2c9830;
	box-shadow: 0 0 0 3px rgba(44, 152, 48, 0.14);
	animation: uc-pulse 2.4s ease-in-out infinite;
}
@keyframes uc-pulse {
	0%, 100% { box-shadow: 0 0 0 3px rgba(44, 152, 48, 0.14); }
	50% { box-shadow: 0 0 0 5px rgba(44, 152, 48, 0.06); }
}
@media (prefers-reduced-motion: reduce) {
	.uc-meta--online.is-on .uc-dot {
		animation: none;
	}
}
.uc-star {
	color: #c58a12;
	font-size: 12px;
	line-height: 1;
}

/* Копирование IP */
.uc-ip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	width: auto;
	max-width: 100%;
	height: 27px;
	max-height: 27px;
	padding: 0 9px;
	border: 1px solid #e3eae5;
	border-radius: 7px;
	background: #f8faf8;
	color: #31503a;
	font-family: inherit;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	font-variant-numeric: tabular-nums;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}
.uc-ip i {
	margin: 0;
	font-size: 11px;
	color: #7c8b82;
}
.uc-ip:hover {
	background: #eef6ef;
	border-color: #cfe1d3;
	opacity: 1;
}
.uc-ip:focus-visible {
	outline: 2px solid var(--uc-green);
	outline-offset: 2px;
}
.uc-ip__val,
.uc-ip__done {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.uc-ip__done {
	display: none;
	color: #1c6b22;
}
.uc-ip.is-copied .uc-ip__val {
	display: none;
}
.uc-ip.is-copied .uc-ip__done {
	display: inline;
}

/* Скрыть сервер */
.uc-hide-form {
	display: inline-flex;
	margin: 0 0 0 auto;
	padding: 0;
}
.uc-hide {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	width: auto;
	height: auto;
	max-height: none;
	padding: 3px 5px;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: var(--uc-faint);
	font-family: inherit;
	font-size: 11.5px;
	font-weight: 500;
	line-height: 1.2;
	white-space: nowrap;
	cursor: pointer;
	transition: color 0.15s ease, background-color 0.15s ease;
}
.uc-hide i {
	margin: 0;
	font-size: 11px;
}
.uc-hide:hover {
	background: rgba(179, 38, 30, 0.07);
	color: #b3261e;
	opacity: 1;
}
.uc-hide:focus-visible {
	outline: 2px solid var(--uc-green);
	outline-offset: 1px;
}

/* Действия */
.uc-srv__actions {
	grid-area: actions;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 8px;
	min-width: 0;
}
.uc-srv__actions .uc-btn {
	flex: 0 0 auto;
}

/* ---------- Пустое состояние ---------- */
.uc-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 44px 24px;
	border: 1px dashed #cfded4;
	border-radius: var(--uc-radius);
	background: linear-gradient(180deg, #ffffff 0%, #fafdfa 100%);
	text-align: center;
}
.uc-empty__icon {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	margin-bottom: 14px;
	border-radius: 16px;
	background: #e9f7ea;
	color: var(--uc-green);
	font-size: 22px;
}
.uc-empty__title {
	margin: 0 0 6px;
	color: var(--uc-ink);
	font-size: 19px;
	font-weight: 700;
	line-height: 1.3;
}
.uc-empty__text {
	max-width: 520px;
	margin: 0 0 18px;
	color: var(--uc-muted);
	font-size: 13.5px;
	line-height: 1.55;
}
.uc-empty__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}

/* ---------- Баланс и история ---------- */
.uc-bottom {
	display: grid;
	grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
	align-items: start;
	gap: 14px;
	margin-top: 22px;
}
.uc-wallet {
	position: relative;
	overflow: hidden;
	padding: 20px;
	border-radius: var(--uc-radius);
	background: linear-gradient(135deg, #1d7a2b 0%, #2c9830 58%, #38a53a 100%);
	box-shadow: 0 12px 28px rgba(29, 102, 38, 0.22);
	color: #fff;
}
.uc-wallet::after {
	content: "";
	position: absolute;
	top: -46px;
	right: -46px;
	width: 168px;
	height: 168px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	pointer-events: none;
}
.uc-wallet > * {
	position: relative;
	z-index: 1;
}
.uc-wallet__label {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: rgba(255, 255, 255, 0.85);
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.uc-wallet__label i {
	font-size: 11px;
}
.uc-wallet__value {
	margin: 10px 0 6px;
	font-size: 34px;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
	overflow-wrap: anywhere;
}
.uc-wallet__note {
	margin: 0 0 16px;
	color: rgba(255, 255, 255, 0.84);
	font-size: 12.5px;
	line-height: 1.5;
}
.uc-wallet__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.uc-wallet .uc-btn {
	height: 36px;
	font-size: 12.5px;
}

.uc-panel {
	min-width: 0;
	border: 1px solid #e0e8e2;
	border-radius: var(--uc-radius);
	background: var(--uc-card);
	box-shadow: 0 1px 2px rgba(17, 45, 25, 0.03);
}
.uc-panel__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 16px 18px 10px;
}
.uc-panel__head .uc-h2 {
	font-size: 16px;
}

.uc-table-wrap {
	padding: 0 16px 14px;
}
.uc-table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
	font-size: 13px;
}
.uc-table th {
	padding: 8px;
	border-bottom: 1px solid #e8eee9;
	color: #78877d;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-align: left;
	text-transform: uppercase;
	white-space: nowrap;
}
.uc-table td {
	padding: 11px 8px;
	border-bottom: 1px solid var(--uc-line-soft);
	vertical-align: middle;
}
.uc-table tbody tr:last-child td {
	border-bottom: 0;
}
.uc-table th:nth-child(1),
.uc-table td:nth-child(1) {
	width: 96px;
}
.uc-table th:nth-child(3),
.uc-table td:nth-child(3) {
	width: 104px;
}
.uc-table th:nth-child(4),
.uc-table td:nth-child(4) {
	width: 110px;
}
.uc-table .num {
	text-align: right;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
.uc-his__date {
	color: #5d6c63;
	font-size: 12.5px;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
.uc-his__time {
	display: block;
	color: var(--uc-faint);
	font-size: 11px;
	line-height: 1.25;
}
.uc-his__op {
	color: #243029;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.uc-his__sum {
	font-weight: 700;
}
.uc-his__sum.is-plus {
	color: #1e7b25;
}
.uc-his__sum.is-minus {
	color: #b3261e;
}
.uc-his__bal {
	color: var(--uc-muted);
	font-size: 12.5px;
}

.uc-history-empty {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 18px 22px;
	color: var(--uc-muted);
	font-size: 13px;
}
.uc-history-empty i {
	font-size: 20px;
	color: #b4c3b9;
}
.uc-history-empty b {
	display: block;
	margin-bottom: 2px;
	color: #28362d;
	font-size: 13.5px;
	font-weight: 600;
}
.uc-history-empty span {
	display: block;
}

/* ---------- Адаптив ---------- */
@media (max-width: 1023px) {
	.uc-bottom {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 959px) {
	.uc-srv {
		grid-template-columns: 56px minmax(0, 1fr);
		grid-template-areas:
			"logo main"
			".    actions";
		align-items: start;
	}
	.uc-srv__actions {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 8px;
		margin-top: 2px;
	}
	.uc-srv__actions .uc-btn {
		width: 100%;
		padding: 0 8px;
	}
}

@media (max-width: 767px) {
	.uc-page {
		padding: 12px 14px 30px;
	}
}

@media (max-width: 719px) {
	.uc-head {
		padding: 18px;
	}
	.uc-head__row {
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
	}
	.uc-head__cta {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 8px;
	}
	.uc-head__cta .uc-btn {
		width: 100%;
		padding: 0 10px;
	}
	.uc-page .uc-title {
		font-size: 23px;
	}
	.uc-kpis {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 8px;
		margin-top: 18px;
	}
	.uc-kpi {
		padding: 10px 12px;
	}
	.uc-kpi__value {
		font-size: 19px;
	}
	.uc-avatar {
		width: 46px;
		height: 46px;
		border-radius: 12px;
		font-size: 20px;
	}
	.uc-head__email {
		max-width: 100%;
	}
}

@media (max-width: 639px) {
	.uc-page {
		padding: 10px 12px 28px;
	}
	.uc-head {
		padding: 16px;
	}
	.uc-head__meta {
		gap: 4px 12px;
	}
	.uc-head__meta > * + *::before {
		display: none;
	}
	.uc-head__who {
		gap: 12px;
	}
	.uc-empty {
		padding: 34px 18px;
	}
	.uc-empty__actions {
		width: 100%;
		flex-direction: column;
		align-items: stretch;
	}
	.uc-empty__actions .uc-btn {
		width: 100%;
	}

	.uc-srv {
		grid-template-columns: 44px minmax(0, 1fr);
		gap: 10px 12px;
		padding: 14px;
	}
	.uc-srv__logo {
		width: 44px;
		height: 44px;
		border-radius: 10px;
	}
	.uc-srv__letter {
		font-size: 18px;
	}
	.uc-srv__name {
		font-size: 15px;
	}
	.uc-srv__meta {
		gap: 6px 10px;
	}
	.uc-hide-form {
		width: 100%;
		margin-left: 0;
	}
	.uc-hide {
		padding-left: 0;
	}
	.uc-srv__actions {
		grid-column: 1 / -1;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		margin-top: 4px;
	}
	.uc-srv__actions .uc-btn--promote {
		grid-column: 1 / -1;
	}
	.uc-srv__actions .uc-btn {
		padding: 0 6px;
		font-size: 12px;
	}

	.uc-wallet {
		padding: 18px;
	}
	.uc-wallet__value {
		font-size: 30px;
	}
	.uc-wallet__actions .uc-btn {
		flex: 1 1 auto;
	}

	/* История — карточки вместо таблицы, без горизонтального скролла */
	.uc-table-wrap {
		padding: 0 0 6px;
	}
	.uc-table,
	.uc-table tbody {
		display: block;
		width: 100%;
	}
	.uc-table thead {
		display: none;
	}
	.uc-table tr {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-areas:
			"date sum"
			"op   bal";
		gap: 2px 10px;
		padding: 12px 16px;
		border-top: 1px solid var(--uc-line-soft);
	}
	.uc-table tbody tr:first-child {
		border-top: 0;
	}
	.uc-table td {
		display: block;
		width: auto !important;
		padding: 0;
		border: 0;
		white-space: normal;
	}
	.uc-his__date {
		grid-area: date;
	}
	.uc-his__time {
		display: inline;
		margin-left: 6px;
	}
	.uc-his__sum {
		grid-area: sum;
		align-self: center;
		font-size: 14px;
	}
	.uc-his__op {
		grid-area: op;
		font-size: 12.5px;
		overflow: visible;
		text-overflow: clip;
	}
	.uc-his__bal {
		grid-area: bal;
		text-align: right;
		font-size: 11.5px;
	}
	.uc-his__bal::before {
		content: "Баланс: ";
		color: #9aa79f;
		font-size: 10.5px;
		letter-spacing: 0.02em;
		white-space: nowrap;
	}

	.uc-panel__head {
		padding: 14px 16px 8px;
	}
}

@media (max-width: 359px) {
	.uc-head__cta {
		grid-template-columns: minmax(0, 1fr);
	}
	.uc-kpi__value {
		font-size: 17px;
	}
	.uc-srv__actions .uc-btn {
		font-size: 11.5px;
		padding: 0 4px;
	}
	.uc-srv__title {
		gap: 5px 6px;
	}
	.uc-pill {
		font-size: 11px;
		padding: 0 6px;
	}
}
