/*
 * Painel administrativo do Portal (index.php) com o design da
 * área admin do English Club in Brazil — o mesmo CSS do painel do
 * Speak br (speak-br/content/admin/admin.css), com o logo do ECIB.
 * Tokens:
 *   ink #22301c · blue #2e5c8a · blue-hover #4779a8 · purple #ad7bcc ·
 *   teal #a9c2cb · green #c7c7c2 · sand #e3dacb · peach #f0e8de ·
 *   paper #f7f5f0 · line #e0e0e0 · danger #e5484d
 */

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

html {
	-webkit-text-size-adjust: 100%;
}

:root {
	--pt-header-h: 64px;
}

body {
	margin: 0;
	background: #f7f5f0;
	font-family: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 14px;
	line-height: 1.5;
	color: #22301c;
}

a {
	color: #2e5c8a;
}

a:hover,
a:focus {
	color: #ad7bcc;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

[hidden] {
	display: none !important;
}

/* ---- Botões e campos ---- */
.sb-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 32px;
	padding: 0 12px;
	border: 1px solid #2e5c8a;
	border-radius: 8px;
	background: #fff;
	color: #2e5c8a;
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
	cursor: pointer;
	transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.sb-button:hover,
.sb-button:focus {
	border-color: #ad7bcc;
	color: #ad7bcc;
	outline: none;
}

.sb-button:focus-visible {
	box-shadow: 0 0 0 2px #2e5c8a;
}

.sb-button-primary {
	background: #2e5c8a;
	border-color: #2e5c8a;
	color: #fff;
}

.sb-button-primary:hover,
.sb-button-primary:focus {
	background: #4779a8;
	border-color: #4779a8;
	color: #fff;
}

a.sb-button {
	text-decoration: none;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="search"],
input[type="password"] {
	width: 100%;
	padding: 6px 12px;
	border: 1px solid #c7c7c2;
	border-radius: 8px;
	background: #fff;
	color: #22301c;
	font: inherit;
	font-size: 14px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="search"]:focus,
input[type="password"]:focus {
	border-color: #2e5c8a;
	box-shadow: 0 0 0 1px #2e5c8a;
	outline: none;
}

/* "Sair", "Ver o app": pílula branca com borda azul (card do usuário). */
.sb-pill {
	display: inline-flex;
	align-items: center;
	padding: 6px 14px;
	border: 1px solid #2e5c8a;
	border-radius: 999px;
	background: #fff;
	color: #2e5c8a;
	font: inherit;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.5;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
}

.sb-pill:hover,
.sb-pill:focus {
	border-color: #ad7bcc;
	color: #ad7bcc;
	outline: none;
}

/* ---- Avisos ---- */
.sb-notice {
	margin: 0 0 16px;
	padding: 10px 14px;
	border: 1px solid #e0e0e0;
	border-left: 4px solid #2e5c8a;
	border-radius: 8px;
	background: #fff;
}

.sb-notice-error {
	border-left-color: #e5484d;
}

/* ================= Tela de login ================= */
/* O mesmo degradê suave do banner da home do ECIB (teal → cinza →
   areia → pêssego), logo em branco e card branco com cantos de 16px. */
.sb-login {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	min-height: calc(100vh - var(--pt-header-h));
	min-height: calc(100dvh - var(--pt-header-h));
	padding: 24px 16px;
	background: linear-gradient(100deg, #a9c2cb 0%, #c7c7c2 45%, #e3dacb 88%, #f0e8de 100%);
}

.sb-login-box {
	width: 100%;
	max-width: 320px;
}

/* Logo do ECIB em branco: o SVG entra como máscara e a cor vem do
   background (mesma técnica do logo do ECIB no login dele). */
.sb-login-logo {
	height: 64px;
	margin: 0 0 28px;
	background: #fff;
	-webkit-mask: url("logo-ecib-header-2.svg") no-repeat center / contain;
	mask: url("logo-ecib-header-2.svg") no-repeat center / contain;
}

.sb-login-form {
	padding: 32px 28px 28px;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 30px 60px -20px rgba(34, 48, 28, 0.35);
}

.sb-login-title {
	margin: 0 0 20px;
	font-size: 18px;
	font-weight: 900;
	text-align: center;
}

.sb-login-form p {
	margin: 0 0 16px;
}

.sb-login-form label {
	display: block;
	margin-bottom: 4px;
	font-weight: 700;
	font-size: 0.9rem;
}

.sb-login-form input[type="text"],
.sb-login-form input[type="password"] {
	min-height: 40px;
	border-color: rgba(34, 48, 28, 0.2);
	font-size: 1rem;
}

.sb-login-submit {
	display: flex;
	justify-content: flex-end;
	margin: 24px 0 0 !important;
}

.sb-login-submit .sb-button {
	min-height: 36px;
	padding: 0 20px;
	font-size: 14px;
}

.sb-login-back {
	margin: 20px 0 0;
	text-align: center;
	font-size: 13px;
}

.sb-login-back a {
	color: #22301c;
	text-decoration: none;
}

.sb-login-back a:hover,
.sb-login-back a:focus {
	color: #2e5c8a;
}

/* ================= Painel ================= */
.sb-admin {
	min-height: calc(100vh - var(--pt-header-h));
	background: #f7f5f0;
}

/* Container no padrão do Bootstrap 5, como o do gestor no ECIB. */
.sb-container {
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	padding: 0 12px;
}

@media (min-width: 576px) { .sb-container { max-width: 540px; } }
@media (min-width: 768px) { .sb-container { max-width: 720px; } }
@media (min-width: 992px) { .sb-container { max-width: 960px; } }
@media (min-width: 1200px) { .sb-container { max-width: 1140px; } }
@media (min-width: 1400px) { .sb-container { max-width: 1320px; } }

.sb-wrap {
	min-width: 0;
	padding: 20px 0 40px;
}

.sb-wrap h1 {
	margin: 0 0 16px;
	font-size: 23px;
	font-weight: 900;
	line-height: 1.3;
	letter-spacing: -0.01em;
}

/* Painel: card do usuário numa coluna à esquerda da caixa de atalhos. */
.sb-dashboard-grid {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	column-gap: 20px;
	align-items: start;
}

.sb-userbar {
	display: flex;
	margin: 20px 0 0;
}

.sb-user-card {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 220px;
	padding: 28px 20px;
	border-radius: 12px;
	background: linear-gradient(170deg, #a9c2cb 0%, #c7c7c2 45%, #e3dacb 88%, #f0e8de 100%);
	text-align: center;
}

.sb-avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 72px;
	height: 72px;
	border: 3px solid #fff;
	border-radius: 50%;
	background: #2e5c8a;
	color: #fff;
	font-size: 28px;
	font-weight: 900;
}

.sb-user-text {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	min-width: 0;
}

.sb-user-text strong {
	font-size: 16px;
}

.sb-user-card .sb-desc {
	color: rgba(34, 48, 28, 0.75);
}

.sb-user-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	width: 100%;
	margin: 8px 0 0;
}

/* Caixa com cabeçalho em degradê (o "postbox" do ECIB). */
.sb-postbox {
	overflow: hidden;
	border: 1px solid #e0e0e0;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 10px 30px -22px rgba(34, 48, 28, 0.35);
}

.sb-postbox-header {
	margin: 0;
	padding: 12px 16px;
	background: linear-gradient(100deg, #a9c2cb 0%, #c7c7c2 45%, #e3dacb 88%, #f0e8de 100%);
	font-size: 14px;
	font-weight: 700;
}

.sb-postbox-body {
	padding: 16px;
}

/* Cards de atalho em dois níveis. */
.sb-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sb-card {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 4px;
	width: 100%;
	min-height: 84px;
	padding: 12px 14px;
	border: 1px solid #e0e0e0;
	border-radius: 10px;
	background: #fff;
	color: #22301c;
	font: inherit;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
	transition: border-color 0.15s ease, transform 0.15s ease;
}

.sb-card:hover,
.sb-card:focus {
	border-color: #ad7bcc;
	color: #22301c;
	transform: translateY(-1px);
	outline: none;
}

.sb-card:focus-visible {
	box-shadow: 0 0 0 2px #2e5c8a;
}

.sb-card strong {
	font-size: 14px;
}

.sb-desc {
	font-size: 12px;
	color: rgba(34, 48, 28, 0.65);
}

.sb-more {
	position: absolute;
	top: 10px;
	right: 14px;
	font-size: 20px;
	line-height: 1;
	color: #ad7bcc;
}

.sb-subhead {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 16px;
	padding: 0 0 12px;
	border-bottom: 1px solid #e0e0e0;
	font-size: 14px;
}

/* "Voltar": texto azul com um chevron (‹) desenhado em CSS, sem caixa. */
.sb-back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 6px 4px 2px;
	border: none;
	background: none;
	color: #2e5c8a;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
}

.sb-back::before {
	content: "";
	display: inline-block;
	width: 9px;
	height: 9px;
	margin-right: 2px;
	border-left: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
}

.sb-back:hover,
.sb-back:focus {
	color: #ad7bcc;
	outline: none;
}

.sb-back:focus-visible {
	border-radius: 4px;
	box-shadow: 0 0 0 2px #2e5c8a;
}

/* Telas internas: "Voltar ao painel" à esquerda, Sair à direita. */
.sb-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 16px 0 4px;
}

.sb-topbar-logout {
	margin: 0;
}

/* ---- Tabela de contas ---- */
.sb-tablenav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 12px;
}

.sb-count {
	color: rgba(34, 48, 28, 0.65);
	font-weight: 700;
}

.sb-search {
	flex: 0 1 320px;
}

.sb-table {
	width: 100%;
	overflow: hidden;
	border: 1px solid #e0e0e0;
	border-collapse: separate;
	border-spacing: 0;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 10px 30px -22px rgba(34, 48, 28, 0.35);
}

.sb-table th,
.sb-table td {
	padding: 10px 14px;
	border-bottom: 1px solid #e0e0e0;
	text-align: left;
	vertical-align: middle;
}

.sb-table thead th {
	background: #f0e8de;
	font-weight: 700;
}

.sb-table tbody tr:last-child td {
	border-bottom: none;
}

.sb-table tbody tr:hover {
	background: #f7f5f0;
}

.sb-table tr.is-highlight {
	background: #f0e8de;
}

.sb-table td a {
	text-decoration: none;
	word-break: break-all;
}

.sb-empty td {
	padding: 24px 14px;
	color: rgba(34, 48, 28, 0.65);
	text-align: center;
}

.sb-muted {
	color: rgba(34, 48, 28, 0.45);
}

.sb-code-cell {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.sb-code-cell form {
	margin: 0;
}

.sb-code {
	font-variant-numeric: tabular-nums;
	font-weight: 900;
	font-size: 15px;
	letter-spacing: 0.12em;
}

/* Título da lista com "Adicionar conta" ao lado (como o "Adicionar
   novo" do wp-admin). */
.sb-heading {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0 0 16px;
}

.sb-heading h1 {
	margin: 0;
}

/* Foto do perfil (ou a inicial no círculo verde do app). */
.sb-user-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 36px;
	height: 36px;
	overflow: hidden;
	border-radius: 50%;
	background: #2a8c4a;
	color: #fff;
	font-size: 15px;
	font-weight: 900;
}

.sb-user-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.sb-user-avatar-lg {
	width: 72px;
	height: 72px;
	border: 3px solid #fff;
	box-shadow: 0 10px 30px -18px rgba(34, 48, 28, 0.6);
	font-size: 28px;
}

.sb-name-cell {
	display: flex;
	align-items: center;
	gap: 12px;
}

.sb-profile-head {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0 0 20px;
}

.sb-profile-head h1 {
	margin: 0;
}

.sb-name {
	color: #22301c;
	font-weight: 700;
	text-decoration: none;
}

.sb-row-action {
	display: block;
	margin-top: 2px;
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
}

/* ---- Editar / nova conta ---- */
.sb-wrap-narrow {
	max-width: 640px;
}

.sb-wrap-narrow .sb-postbox + .sb-postbox {
	margin-top: 20px;
}

.sb-form p {
	margin: 0 0 16px;
}

.sb-form label {
	display: block;
	margin-bottom: 4px;
	font-weight: 700;
}

.sb-form input[type="text"],
.sb-form input[type="email"],
.sb-form input[type="tel"],
.sb-form input[type="password"] {
	min-height: 38px;
}

.sb-optional {
	color: rgba(34, 48, 28, 0.55);
	font-weight: 400;
}

.sb-help {
	display: block;
	margin-top: 6px;
	color: rgba(34, 48, 28, 0.65);
	font-size: 12px;
}

.sb-check label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 400;
	cursor: pointer;
}

.sb-check input {
	width: 16px;
	height: 16px;
	margin: 0;
	accent-color: #2e5c8a;
}

.sb-form-actions {
	display: flex;
	gap: 8px;
	margin: 24px 0 0 !important;
}

.sb-form-actions .sb-button {
	min-height: 36px;
	padding: 0 16px;
	font-size: 14px;
}

.sb-code-lg {
	display: block;
	font-size: 22px;
}

/* ---- Painel: "Estatísticas do app" (o "Analytics do site" do ECIB) ---- */
.sb-stats {
	margin-top: 20px;
}

.sb-periods {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 4px 0 16px;
	padding: 4px;
	border-radius: 999px;
	background: #f7f5f0;
}

.sb-periods a {
	padding: 6px 14px;
	border-radius: 999px;
	color: #22301c;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}

.sb-periods a:hover {
	color: #2e5c8a;
}

.sb-periods a.is-active {
	background: #2e5c8a;
	color: #fff;
}

.sb-stat-cards {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
}

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

@media (max-width: 500px) {
	.sb-stat-cards {
		grid-template-columns: 1fr;
	}
}

.sb-stat-cards li {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0;
	padding: 16px;
	border: 1px solid rgba(34, 48, 28, 0.1);
	border-radius: 12px;
	background: #fff;
}

.sb-stat-label {
	font-size: 13px;
	color: rgba(34, 48, 28, 0.7);
}

.sb-stat-number {
	font-size: 28px;
	font-weight: 900;
	line-height: 1.2;
	color: #2e5c8a;
	font-variant-numeric: tabular-nums;
}

.sb-stat-hint {
	font-size: 12px;
	color: rgba(34, 48, 28, 0.6);
}

.sb-stats-title {
	margin: 0 0 8px;
	font-size: 14px;
	font-weight: 700;
}

.sb-stats-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.sb-stats-table th,
.sb-stats-table td {
	padding: 10px 8px;
	border-bottom: 1px solid rgba(34, 48, 28, 0.08);
	text-align: right;
	vertical-align: top;
	font-variant-numeric: tabular-nums;
}

.sb-stats-table th:first-child,
.sb-stats-table td:first-child {
	text-align: left;
}

.sb-stats-table th {
	font-weight: 700;
	color: rgba(34, 48, 28, 0.7);
}

.sb-stats-empty {
	margin: 0;
	color: rgba(34, 48, 28, 0.7);
}

.sb-stats-note {
	margin: 16px 0 0;
	color: rgba(34, 48, 28, 0.55);
	font-size: 12px;
}

/* ---- Rodapé ---- */
.sb-footer {
	margin-top: 24px;
	padding-bottom: 24px;
	color: rgba(34, 48, 28, 0.6);
	font-size: 13px;
	font-weight: 700;
}

/* ---- Telas estreitas ---- */
@media (max-width: 782px) {
	.sb-dashboard-grid {
		display: block;
	}

	.sb-user-card {
		flex-direction: row;
		min-height: 0;
		padding: 16px;
		text-align: left;
	}

	.sb-avatar {
		width: 56px;
		height: 56px;
		font-size: 22px;
	}

	.sb-user-text {
		align-items: flex-start;
	}

	.sb-user-links {
		flex-direction: column;
		width: auto;
		margin: 0 0 0 auto;
	}

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

	/* Tabela vira uma lista de cartões: cada célula com o rótulo dela. */
	.sb-table thead {
		display: none;
	}

	.sb-table,
	.sb-table tbody,
	.sb-table tr,
	.sb-table td {
		display: block;
	}

	.sb-table tr {
		border-bottom: 1px solid #e0e0e0;
	}

	.sb-table tbody tr:last-child {
		border-bottom: none;
	}

	.sb-table td {
		padding: 6px 14px;
		border-bottom: none;
	}

	.sb-table td:first-child {
		padding-top: 12px;
	}

	.sb-table td:last-child {
		padding-bottom: 12px;
	}

	.sb-table td[data-label]::before {
		content: attr(data-label);
		display: block;
		color: rgba(34, 48, 28, 0.6);
		font-size: 12px;
		font-weight: 700;
	}

	.sb-tablenav {
		flex-direction: column;
		align-items: stretch;
	}

	.sb-search {
		flex-basis: auto;
	}
}

@media (max-width: 500px) {
	.sb-grid {
		grid-template-columns: 1fr;
	}
}

/* ================= Header do portal ================= */
/* Barra fixa no topo com a marca e o combo que troca a área mostrada
   abaixo: portais (aluno, professor) e administração (portal, Speak br,
   site do ECIB). */
.pt-header {
	position: sticky;
	top: 0;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	height: var(--pt-header-h);
	padding: 0 20px;
	border-bottom: 1px solid #e0e0e0;
	background: #fff;
}

.pt-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	color: #22301c;
	text-decoration: none;
}

/* Logo do ECIB em ink (máscara do SVG, como no resto do portal). */
.pt-brand-mark {
	flex: 0 0 auto;
	width: 30px;
	height: 30px;
	background: #22301c;
	-webkit-mask: url("logo-ecib-header-2.svg") no-repeat center / contain;
	mask: url("logo-ecib-header-2.svg") no-repeat center / contain;
}

.pt-brand-text {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
	white-space: nowrap;
}

.pt-brand-text strong {
	font-size: 16px;
	font-weight: 900;
}

.pt-brand-text span {
	font-size: 12px;
	color: rgba(34, 48, 28, 0.6);
}

.pt-switch {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 0 auto;
}

.pt-switch label {
	font-size: 13px;
	font-weight: 700;
	color: rgba(34, 48, 28, 0.7);
	white-space: nowrap;
}

.pt-switch select {
	min-width: 220px;
	min-height: 38px;
	padding: 0 36px 0 12px;
	border: 1px solid #c7c7c2;
	border-radius: 8px;
	background: #fff url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27%3e%3cpath fill=%27none%27 stroke=%27%232e5c8a%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 d=%27m4 6 4 4 4-4%27/%3e%3c/svg%3e") no-repeat right 10px center / 16px;
	color: #22301c;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.pt-switch select:focus {
	border-color: #2e5c8a;
	box-shadow: 0 0 0 1px #2e5c8a;
	outline: none;
}

/* Admins do Speak br e do site: o painel real, embutido, ocupando o
   resto da tela. */
.pt-frame {
	display: block;
	width: 100%;
	height: calc(100vh - var(--pt-header-h));
	height: calc(100dvh - var(--pt-header-h));
	border: 0;
	background: #f7f5f0;
}

/* Portal do aluno / do professor: "em construção" no degradê do ECIB. */
.pt-stage {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: calc(100vh - var(--pt-header-h));
	min-height: calc(100dvh - var(--pt-header-h));
	padding: 32px 16px;
	background: linear-gradient(100deg, #a9c2cb 0%, #c7c7c2 45%, #e3dacb 88%, #f0e8de 100%);
	text-align: center;
}

.pt-soon {
	width: 100%;
	max-width: 480px;
	padding: 40px 32px 36px;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 30px 60px -20px rgba(34, 48, 28, 0.35);
}

.pt-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 18px;
	padding: 6px 14px;
	border-radius: 999px;
	background: #f0e8de;
	font-size: 13px;
	font-weight: 700;
}

/* Ponto pulsando: "em andamento". */
.pt-badge::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #ad7bcc;
	animation: pt-pulse 1.6s ease-in-out infinite;
}

@keyframes pt-pulse {
	50% { opacity: 0.3; }
}

@media (prefers-reduced-motion: reduce) {
	.pt-badge::before { animation: none; }
}

.pt-soon h1 {
	margin: 0 0 12px;
	font-size: clamp(24px, 6vw, 30px);
	font-weight: 900;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.pt-soon p {
	margin: 0;
	color: rgba(34, 48, 28, 0.75);
	font-size: 16px;
}

@media (max-width: 600px) {
	:root {
		--pt-header-h: 112px;
	}

	/* Marca e perfil na primeira linha; o combo embaixo. */
	.pt-header {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-areas: "brand profile" "switch switch";
		align-content: center;
		gap: 10px;
		padding: 0 16px;
	}

	.pt-brand { grid-area: brand; }
	.pt-profile { grid-area: profile; }

	.pt-switch {
		grid-area: switch;
		margin: 0;
	}

	.pt-profile-name {
		display: none;
	}

	.pt-switch select {
		flex: 1 1 auto;
		min-width: 0;
	}
}

/* ---- Perfil no header ---- */
.pt-profile {
	position: relative;
}

.pt-profile-btn {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 4px 10px 4px 4px;
	border: 1px solid transparent;
	border-radius: 999px;
	background: none;
	color: #22301c;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}

.pt-profile-btn::after {
	content: "";
	width: 7px;
	height: 7px;
	margin: -3px 2px 0 0;
	border-right: 2px solid #2e5c8a;
	border-bottom: 2px solid #2e5c8a;
	transform: rotate(45deg);
}

.pt-profile-btn:hover,
.pt-profile-btn[aria-expanded="true"] {
	border-color: #e0e0e0;
	background: #f7f5f0;
}

.pt-profile-btn:focus-visible {
	outline: 2px solid #2e5c8a;
	outline-offset: 2px;
}

.pt-profile-name {
	max-width: 160px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Avatar: inicial no círculo azul, com a foto por cima quando houver. */
.pt-avatar {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	overflow: hidden;
	border-radius: 50%;
	background: #2e5c8a;
	color: #fff;
	font-weight: 900;
}

.pt-avatar img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pt-avatar-sm { width: 36px; height: 36px; font-size: 15px; }
.pt-avatar-md { width: 44px; height: 44px; font-size: 18px; }
.pt-avatar-lg { width: 88px; height: 88px; font-size: 34px; border: 3px solid #fff; box-shadow: 0 10px 30px -18px rgba(34, 48, 28, 0.6); }

.pt-menu {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 20;
	width: 260px;
	padding: 8px;
	border: 1px solid #e0e0e0;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 20px 40px -16px rgba(34, 48, 28, 0.35);
}

.pt-menu-head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 6px;
	padding: 8px 8px 12px;
	border-bottom: 1px solid #e0e0e0;
}

.pt-menu-head > span:last-child {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.pt-menu-head strong {
	font-size: 14px;
}

.pt-menu-head > span:last-child span {
	overflow: hidden;
	color: rgba(34, 48, 28, 0.6);
	font-size: 12px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.pt-menu form {
	margin: 0;
}

.pt-menu-item {
	display: block;
	width: 100%;
	padding: 9px 10px;
	border: none;
	border-radius: 8px;
	background: none;
	color: #22301c;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
}

.pt-menu-item:hover,
.pt-menu-item:focus {
	background: #f7f5f0;
	color: #2e5c8a;
	outline: none;
}

.pt-menu-logout {
	margin-top: 6px;
	border-top: 1px solid #e0e0e0;
	border-radius: 0 0 8px 8px;
	color: #e5484d;
}

/* ---- Alterar dados: foto ---- */
.pt-photo-field {
	display: flex;
	align-items: center;
	gap: 20px;
	margin: 0 0 20px;
}

.pt-photo-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.pt-photo-actions .sb-help {
	flex-basis: 100%;
	margin: 0;
}

.sb-form .pt-photo-actions label.sb-button {
	display: inline-flex;
	margin: 0;
	cursor: pointer;
}
