/*
 * theFibra Member Area — interface da área de membro.
 * Todo o CSS está confinado a .thefibra-member (sem estilos globais) e herda a tipografia do tema/Elementor.
 * Tema escuro por omissão (o mesmo do portal); variante clara em .thefibra-member--light.
 */

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

.thefibra-member {
	--tfm-bg: #0e0e0e;
	--tfm-surface: #171717;
	--tfm-surface-2: #202020;
	--tfm-text: #ffffff;
	--tfm-muted: #b4b4b4;
	--tfm-border: #333333;
	--tfm-field-border: #8a8a8a;
	--tfm-accent: #ffffff;
	--tfm-on-accent: #0e0e0e;
	--tfm-link: #ffffff;
	--tfm-focus: #6ec1e4;
	--tfm-danger: #ffb0b0;
	--tfm-danger-bg: #3a1414;
	--tfm-danger-solid: #d93a3a;
	--tfm-success: #8ae6a8;
	--tfm-success-bg: #12301c;
	--tfm-info: #9ad9f3;
	--tfm-info-bg: #12303d;
	--tfm-font: var(--e-global-typography-text-font-family, "Inter"), system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	display: block;
	width: 100%;
	max-width: 1080px;
	margin: 0 auto;
	padding: 24px 16px 48px;
	background: var(--tfm-bg);
	color: var(--tfm-text);
	font-family: var(--tfm-font);
	font-size: 16px;
	line-height: 1.55;
	-webkit-text-size-adjust: 100%;
}

.thefibra-member--light {
	--tfm-bg: #ffffff;
	--tfm-surface: #f5f5f5;
	--tfm-surface-2: #ebebeb;
	--tfm-text: #0e0e0e;
	--tfm-muted: #565656;
	--tfm-border: #d4d4d4;
	--tfm-field-border: #707070;
	--tfm-accent: #0e0e0e;
	--tfm-on-accent: #ffffff;
	--tfm-link: #0e0e0e;
	--tfm-focus: #0b6a94;
	--tfm-danger: #9b1111;
	--tfm-danger-bg: #fde8e8;
	--tfm-danger-solid: #b42323;
	--tfm-success: #14612e;
	--tfm-success-bg: #e6f5ea;
	--tfm-info: #0b5a7a;
	--tfm-info-bg: #e6f4fa;
}

.thefibra-member a,
.thefibra-member a:visited {
	color: var(--tfm-link);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.thefibra-member a:hover,
.thefibra-member a:active,
.thefibra-member a:focus {
	color: var(--tfm-link);
	text-decoration-thickness: 2px;
}

.thefibra-member label {
	display: inline-block;
	line-height: 1.4;
	vertical-align: baseline;
}

.thefibra-member :focus-visible {
	outline: 3px solid var(--tfm-focus);
	outline-offset: 2px;
}

.thefibra-member p {
	margin: 0 0 12px;
}

.thefibra-member ul,
.thefibra-member ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Acessibilidade ------------------------------------------------------ */

.thefibra-member-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.thefibra-member-hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Tipografia ---------------------------------------------------------- */

.thefibra-member-eyebrow {
	margin: 0 0 4px;
	color: var(--tfm-muted);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.thefibra-member-title,
.thefibra-member-section__title {
	margin: 0 0 12px;
	color: var(--tfm-text);
	font-family: var(--tfm-font);
	font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
	font-weight: 700;
	line-height: 1.2;
}

.thefibra-member-subtitle {
	margin: 24px 0 12px;
	color: var(--tfm-text);
	font-family: var(--tfm-font);
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1.3;
}

.thefibra-member-intro {
	color: var(--tfm-muted);
}

.thefibra-member-muted {
	color: var(--tfm-muted);
	font-size: 0.9375rem;
}

/* Autenticação -------------------------------------------------------- */

.thefibra-member--auth {
	max-width: 480px;
	/* O cartão tem o seu próprio fundo; o contentor fica transparente para se fundir com a página. */
	background: transparent;
}

.thefibra-member-card {
	padding: 24px 20px;
	background: var(--tfm-surface);
	border: 1px solid var(--tfm-border);
}

.thefibra-member a.thefibra-member-brand,
.thefibra-member a.thefibra-member-brand:visited,
.thefibra-member a.thefibra-member-brand:hover {
	display: inline-block;
	margin-bottom: 20px;
	color: var(--tfm-text);
	text-decoration: none;
}

.thefibra-member-brand__logo {
	display: block;
	width: auto;
	max-width: 160px;
	max-height: 56px;
	height: auto;
}

/* Logótipo oficial (branco): na variante clara passa a preto. */
.thefibra-member--light .thefibra-member-brand__logo--official {
	filter: brightness(0);
}

.thefibra-member-brand__text {
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.thefibra-member-links {
	margin-top: 20px !important;
	display: grid;
	gap: 8px;
	color: var(--tfm-muted);
	font-size: 0.9375rem;
}

/* Formulários --------------------------------------------------------- */

.thefibra-member-form {
	display: grid;
	gap: 16px;
	margin-top: 8px;
}

.thefibra-member-form--wide {
	max-width: 640px;
}

.thefibra-member-field {
	display: grid;
	gap: 6px;
}

.thefibra-member-field__label {
	font-size: 0.875rem;
	font-weight: 600;
}

.thefibra-member-field__req {
	color: var(--tfm-muted);
}

.thefibra-member-field input[type="text"],
.thefibra-member-field input[type="email"],
.thefibra-member-field input[type="password"],
.thefibra-member-field input[type="url"],
.thefibra-member-field textarea {
	display: block;
	width: 100%;
	min-height: 48px;
	padding: 10px 12px;
	background: var(--tfm-bg);
	color: var(--tfm-text);
	border: 1px solid var(--tfm-field-border);
	border-radius: 0;
	font-family: var(--tfm-font);
	font-size: 16px;
	line-height: 1.4;
	box-shadow: none;
}

.thefibra-member-field textarea {
	min-height: 112px;
	resize: vertical;
}

.thefibra-member-field input:focus,
.thefibra-member-field textarea:focus {
	border-color: var(--tfm-focus);
}

.thefibra-member-field--invalid input,
.thefibra-member-field--invalid textarea {
	border-color: var(--tfm-danger);
}

.thefibra-member-field__hint {
	margin: 0 !important;
	color: var(--tfm-muted);
	font-size: 0.8125rem;
}

.thefibra-member-field__error {
	margin: 0 !important;
	color: var(--tfm-danger);
	font-size: 0.875rem;
	font-weight: 600;
}

.thefibra-member-password {
	position: relative;
}

.thefibra-member-password input {
	padding-right: 92px !important;
}

.thefibra-member .thefibra-member-password__toggle,
.thefibra-member .thefibra-member-password__toggle:hover,
.thefibra-member .thefibra-member-password__toggle:focus,
.thefibra-member .thefibra-member-password__toggle:active {
	position: absolute;
	top: 0;
	right: 0;
	min-width: 84px;
	height: 100%;
	padding: 0 12px;
	background: transparent;
	color: var(--tfm-text);
	border: 0;
	border-left: 1px solid var(--tfm-border);
	border-radius: 0;
	font-family: var(--tfm-font);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
}

.thefibra-member-check {
	display: grid;
	grid-template-columns: 24px 1fr;
	gap: 4px 10px;
	align-items: start;
}

.thefibra-member-check input[type="checkbox"] {
	width: 22px;
	height: 22px;
	margin: 2px 0 0;
	accent-color: var(--tfm-accent);
}

.thefibra-member-check label {
	font-size: 0.9375rem;
}

.thefibra-member-check .thefibra-member-field__error {
	grid-column: 2;
}

.thefibra-member-check .thefibra-member-check__hint {
	grid-column: 2;
}

.thefibra-member-check--spaced {
	margin: 8px 0 20px;
}

.thefibra-member-count {
	color: var(--tfm-muted);
	font-size: 0.8125rem;
}

.thefibra-member-details {
	margin-top: 20px;
	border-top: 1px solid var(--tfm-border);
	padding-top: 14px;
}

.thefibra-member-details summary {
	min-height: 44px;
	display: flex;
	align-items: center;
	cursor: pointer;
	font-weight: 600;
}

/* Botões --------------------------------------------------------------
 * Seletores com o prefixo .thefibra-member (especificidade 0,2,0) e estados explícitos (0,3,0):
 * vencem as regras genéricas de `button`/`[type=button]`/`a:hover` de temas como o Hello Elementor,
 * mesmo quando o CSS do tema é carregado depois deste.
 */

.thefibra-member .thefibra-member-button,
.thefibra-member a.thefibra-member-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 20px;
	background: transparent;
	color: var(--tfm-text);
	border: 1px solid var(--tfm-field-border);
	border-radius: 0;
	font-family: var(--tfm-font);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
	transition: none;
	-webkit-appearance: none;
	appearance: none;
}

.thefibra-member .thefibra-member-button:hover,
.thefibra-member .thefibra-member-button:focus,
.thefibra-member .thefibra-member-button:active,
.thefibra-member a.thefibra-member-button:hover,
.thefibra-member a.thefibra-member-button:focus,
.thefibra-member a.thefibra-member-button:active {
	background: transparent;
	color: var(--tfm-text);
	border-color: var(--tfm-text);
	text-decoration: none;
}

.thefibra-member .thefibra-member-button--primary,
.thefibra-member a.thefibra-member-button--primary,
.thefibra-member .thefibra-member-button--primary:hover,
.thefibra-member .thefibra-member-button--primary:focus,
.thefibra-member .thefibra-member-button--primary:active,
.thefibra-member a.thefibra-member-button--primary:hover,
.thefibra-member a.thefibra-member-button--primary:focus,
.thefibra-member a.thefibra-member-button--primary:active {
	background: var(--tfm-accent);
	color: var(--tfm-on-accent);
	border-color: var(--tfm-accent);
}

.thefibra-member .thefibra-member-button--primary:hover,
.thefibra-member a.thefibra-member-button--primary:hover {
	opacity: 0.88;
}

.thefibra-member .thefibra-member-button--ghost,
.thefibra-member .thefibra-member-button--ghost:hover,
.thefibra-member .thefibra-member-button--ghost:focus {
	background: transparent;
	color: var(--tfm-muted);
	border-color: var(--tfm-border);
}

.thefibra-member .thefibra-member-button--ghost:hover,
.thefibra-member .thefibra-member-button--ghost:focus {
	color: var(--tfm-text);
	border-color: var(--tfm-text);
}

.thefibra-member .thefibra-member-button--danger,
.thefibra-member .thefibra-member-button--danger:hover,
.thefibra-member .thefibra-member-button--danger:focus,
.thefibra-member .thefibra-member-button--danger:active {
	background: var(--tfm-danger-solid);
	border-color: var(--tfm-danger-solid);
	color: #ffffff;
}

.thefibra-member .thefibra-member-button[disabled],
.thefibra-member .thefibra-member-button[aria-busy="true"] {
	opacity: 0.6;
	cursor: progress;
}

.thefibra-member .thefibra-member-form .thefibra-member-button {
	width: 100%;
}

@media (min-width: 640px) {
	.thefibra-member .thefibra-member-form--wide .thefibra-member-button {
		width: auto;
		justify-self: start;
	}
}

/* Avisos -------------------------------------------------------------- */

.thefibra-member-notice {
	margin: 0 0 16px;
	padding: 12px 16px;
	border-left: 4px solid currentColor;
	font-size: 0.9375rem;
}

.thefibra-member-notice p {
	margin: 0;
}

.thefibra-member-notice__list {
	margin: 8px 0 0 !important;
	padding-left: 20px !important;
	list-style: disc !important;
}

.thefibra-member-notice__list a {
	color: inherit !important;
}

.thefibra-member-notice--error {
	background: var(--tfm-danger-bg);
	color: var(--tfm-danger);
}

.thefibra-member-notice--success {
	background: var(--tfm-success-bg);
	color: var(--tfm-success);
}

.thefibra-member-notice--info {
	background: var(--tfm-info-bg);
	color: var(--tfm-info);
}

/* Painel -------------------------------------------------------------- */

.thefibra-member-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--tfm-border);
}

.thefibra-member-header__who {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
}

.thefibra-member-name {
	margin: 0 !important;
	font-size: 1.25rem;
	font-weight: 700;
	overflow-wrap: anywhere;
}

.thefibra-member-avatar {
	display: block;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
	background: var(--tfm-surface-2);
}

.thefibra-member-avatar--large {
	width: 96px;
	height: 96px;
}

.thefibra-member-avatar--initials {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	background: var(--tfm-surface-2);
	border: 1px solid var(--tfm-border);
	color: var(--tfm-text);
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.thefibra-member-avatar--large.thefibra-member-avatar--initials {
	font-size: 2rem;
}

.thefibra-member-avatar-edit {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
}

.thefibra-member-avatar-edit input[type="file"] {
	max-width: 100%;
	color: var(--tfm-text);
	font-family: var(--tfm-font);
	font-size: 0.9375rem;
}

.thefibra-member-logout .thefibra-member-button {
	width: auto;
}

.thefibra-member-nav {
	margin: 0 -16px 24px;
	border-bottom: 1px solid var(--tfm-border);
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.thefibra-member-nav ul {
	display: flex;
	gap: 4px;
	min-width: max-content;
	padding: 0 16px;
}

.thefibra-member .thefibra-member-nav a,
.thefibra-member .thefibra-member-nav a:visited {
	display: flex;
	align-items: center;
	min-height: 48px;
	padding: 0 14px;
	color: var(--tfm-muted);
	border-bottom: 3px solid transparent;
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.thefibra-member .thefibra-member-nav a:hover {
	color: var(--tfm-text);
}

.thefibra-member .thefibra-member-nav a[aria-current="page"],
.thefibra-member .thefibra-member-nav a[aria-current="page"]:visited {
	color: var(--tfm-text);
	border-bottom-color: var(--tfm-text);
}

.thefibra-member-cards {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
	margin: 16px 0 8px !important;
}

@media (min-width: 640px) {
	.thefibra-member-cards {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 960px) {
	.thefibra-member-cards {
		grid-template-columns: repeat(4, 1fr);
	}
}

.thefibra-member-stat {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 18px;
	background: var(--tfm-surface);
	border: 1px solid var(--tfm-border);
}

.thefibra-member-stat > a {
	margin-top: auto;
	padding-top: 8px;
	font-size: 0.875rem;
	font-weight: 600;
}

.thefibra-member-stat__value {
	margin: 0 !important;
	font-size: 2.25rem;
	font-weight: 700;
	line-height: 1;
}

.thefibra-member-status {
	display: grid;
	gap: 4px;
	font-size: 0.9375rem;
}

.thefibra-member-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.thefibra-member-chips li {
	padding: 4px 10px;
	background: var(--tfm-surface-2);
	border: 1px solid var(--tfm-border);
	font-size: 0.8125rem;
}

.thefibra-member-block {
	margin-bottom: 36px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--tfm-border);
}

.thefibra-member-block:last-child {
	border-bottom: 0;
}

.thefibra-member-block > .thefibra-member-subtitle:first-child {
	margin-top: 0;
}

.thefibra-member-cards + .thefibra-member-block {
	margin-top: 32px;
}

.thefibra-member-fieldset {
	margin: 0 0 24px;
	padding: 0;
	border: 0;
	min-width: 0;
}

.thefibra-member-fieldset legend {
	margin-bottom: 10px;
	padding: 0;
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.thefibra-member-choices {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 8px;
}

.thefibra-member-choices li {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 48px;
	padding: 0 12px;
	background: var(--tfm-surface);
	border: 1px solid var(--tfm-border);
}

.thefibra-member-choices li:has(input:checked) {
	border-color: var(--tfm-text);
}

.thefibra-member-choices input {
	width: 20px;
	height: 20px;
	margin: 0;
	flex: none;
	accent-color: var(--tfm-accent);
}

.thefibra-member-choices label {
	flex: 1;
	padding: 12px 0;
	font-size: 0.9375rem;
	cursor: pointer;
}

/* Listas de notícias / comentários ------------------------------------ */

.thefibra-member-list {
	display: grid;
	gap: 12px;
	margin: 16px 0 !important;
}

.thefibra-member-item {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
	padding: 14px;
	background: var(--tfm-surface);
	border: 1px solid var(--tfm-border);
}

.thefibra-member-item__thumb {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--tfm-surface-2);
}

.thefibra-member-item__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.thefibra-member-item__title {
	margin: 0 0 6px;
	font-family: var(--tfm-font);
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.35;
}

.thefibra-member .thefibra-member-item__title a,
.thefibra-member .thefibra-member-item__title a:visited {
	text-decoration: none;
}

.thefibra-member .thefibra-member-item__title a:hover {
	text-decoration: underline;
}

.thefibra-member-item__meta {
	color: var(--tfm-muted);
	font-size: 0.8125rem;
}

.thefibra-member-item__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}

.thefibra-member-inline-form {
	display: inline-flex;
	margin: 0;
}

@media (min-width: 640px) {
	.thefibra-member-item:has(.thefibra-member-item__thumb) {
		grid-template-columns: 220px 1fr;
	}
}

/* Colecções de notícias guardadas. */
.thefibra-member-collections ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 16px !important;
	padding: 0 !important;
	list-style: none;
}

.thefibra-member .thefibra-member-collections a {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	min-height: 44px;
	padding: 0 14px;
	border: 1px solid var(--tfm-border);
	color: var(--tfm-text);
	text-decoration: none;
}

.thefibra-member .thefibra-member-collections a[aria-current="page"] {
	border-color: var(--tfm-text);
	font-weight: 700;
}

.thefibra-member-move {
	gap: 6px;
	align-items: center;
}

.thefibra-member .thefibra-member-select {
	min-height: 44px;
	max-width: 12rem;
	padding: 0 10px;
	background: var(--tfm-bg);
	color: var(--tfm-text);
	border: 1px solid var(--tfm-field-border);
	font: inherit;
}

/* Listas compactas de descoberta («Para si», «Continuar a ler», relacionados). */
.thefibra-member-list--compact .thefibra-member-item {
	gap: 12px;
	padding: 12px;
}

.thefibra-member-list--compact .thefibra-member-item__title {
	margin-bottom: 4px;
	font-size: 1rem;
}

@media (min-width: 640px) {
	.thefibra-member-list--compact .thefibra-member-item:has(.thefibra-member-item__thumb) {
		grid-template-columns: 140px 1fr;
	}
}

/* Blocos [thefibra_para_si] e [thefibra_relacionados] fora das páginas do plugin. */
.thefibra-member--foryou,
.thefibra-member--related {
	margin: 24px 0;
}

.thefibra-member--foryou > .thefibra-member-subtitle,
.thefibra-member--related > .thefibra-member-subtitle {
	margin-top: 0;
}

.thefibra-member-empty {
	padding: 32px 20px;
	text-align: center;
	background: var(--tfm-surface);
	border: 1px dashed var(--tfm-field-border);
}

.thefibra-member-live {
	min-height: 0;
}

.thefibra-member-pagination .page-numbers {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: center;
	margin-top: 8px !important;
}

.thefibra-member-pagination .page-numbers a,
.thefibra-member-pagination .page-numbers span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 12px;
	border: 1px solid var(--tfm-border);
	font-size: 0.875rem;
	text-decoration: none;
}

.thefibra-member-pagination .page-numbers .current {
	background: var(--tfm-accent);
	color: var(--tfm-on-accent);
	border-color: var(--tfm-accent);
	font-weight: 700;
}

@media (min-width: 960px) {
	.thefibra-member {
		padding: 40px 24px 64px;
	}

	.thefibra-member--auth {
		padding: 48px 16px 72px;
	}

	.thefibra-member-card {
		padding: 32px 28px;
	}

	.thefibra-member-nav {
		margin-left: 0;
		margin-right: 0;
	}

	.thefibra-member-nav ul {
		padding: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.thefibra-member * {
		transition: none !important;
		animation: none !important;
	}
}

/* Notificações ------------------------------------------------------- */
.thefibra-member .thefibra-member-badge {
	display: inline-block;
	margin-right: 6px;
	padding: 1px 8px;
	border-radius: 999px;
	background: var(--tfm-accent);
	color: var(--tfm-on-accent);
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1.5;
	vertical-align: middle;
}

.thefibra-member .thefibra-member-badge--count {
	margin: 0 0 0 4px;
}

.thefibra-member-notification.is-unread {
	border-left: 3px solid var(--tfm-accent);
	padding-left: 12px;
}

.thefibra-member-notification__text {
	margin: 0 0 4px;
}

.thefibra-member-actions-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 16px 0 0;
}

.thefibra-member .thefibra-member-item__reason {
	margin: 4px 0 0;
	color: var(--tfm-muted);
	font-size: 0.8125rem;
}

/* =====================================================================
   Painel do membro (1.6.0): estilo da maqueta aprovada.
   Tudo limitado a .thefibra-member--dashboard (as páginas de acesso não mudam).
   ===================================================================== */

.thefibra-member--dashboard {
	--tfm-bg: #0b0b0c;
	--tfm-surface: #151517;
	--tfm-surface-2: #232327;
	--tfm-border: #26262a;
	--tfm-line: #2e2e33;
	--tfm-muted: #a1a1aa;
	--tfm-soft: #d4d4d8;
	--tfm-pop: #ff5a36;
	--tfm-pop-text: #ff6b4a;
	--tfm-on-pop: #0b0b0c;
	--tfm-radius: 22px;
	max-width: 1180px;
	padding: 40px 16px 56px;
}

.thefibra-member--dashboard.thefibra-member--light {
	--tfm-bg: #ffffff;
	--tfm-surface: #f4f4f5;
	--tfm-surface-2: #e4e4e7;
	--tfm-border: #e4e4e7;
	--tfm-line: #d4d4d8;
	--tfm-muted: #52525b;
	--tfm-soft: #3f3f46;
	--tfm-pop-text: #b93815;
}

@media (min-width: 768px) {
	.thefibra-member--dashboard {
		padding: 48px 40px 64px;
	}
}

/* Cabeçalho da visão geral. */
.thefibra-member-hero {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin: 0 0 28px;
}

.thefibra-member-hero__who {
	display: flex;
	align-items: center;
	gap: 16px;
	min-width: 0;
}

.thefibra-member .thefibra-member-avatar--hero {
	width: 56px;
	height: 56px;
	font-size: 20px;
}

.thefibra-member .thefibra-member-avatar--small {
	width: 40px;
	height: 40px;
	font-size: 14px;
}

.thefibra-member .thefibra-member-hero__title {
	margin: 0;
	color: var(--tfm-text);
	font-family: var(--tfm-font);
	font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.25rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.1;
}

.thefibra-member .thefibra-member-hero__sub {
	margin: 4px 0 0;
	color: var(--tfm-muted);
	font-size: 0.9375rem;
}

.thefibra-member .thefibra-member-hero__sub a,
.thefibra-member .thefibra-member-hero__sub a:visited {
	color: var(--tfm-text);
	font-weight: 600;
	text-decoration: none;
}

.thefibra-member .thefibra-member-hero__sub a:hover {
	text-decoration: underline;
}

.thefibra-member-hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.thefibra-member-hero__actions .thefibra-member-logout {
	margin: 0;
}

/* Barra das secções. */
.thefibra-member-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 0 0 24px;
}

.thefibra-member-topbar__who {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.thefibra-member-topbar__name {
	color: var(--tfm-muted);
	font-size: 0.875rem;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

@media (max-width: 479px) {
	.thefibra-member-topbar__name {
		display: none;
	}
}

.thefibra-member-back {
	margin: 0;
}

.thefibra-member--dashboard .thefibra-member-section {
	margin: 0;
}

.thefibra-member--dashboard .thefibra-member-section__title {
	margin: 0 0 8px;
	font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);
	font-weight: 800;
	letter-spacing: -0.02em;
}

.thefibra-member--dashboard .thefibra-member-intro {
	margin: 0 0 24px;
	color: var(--tfm-muted);
}

/* Pílulas (botões e ligações de acção). */
.thefibra-member .thefibra-member-pill,
.thefibra-member a.thefibra-member-pill,
.thefibra-member a.thefibra-member-pill:visited {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	padding: 0 18px;
	border: 1px solid var(--tfm-line);
	border-radius: 999px;
	background: transparent;
	color: var(--tfm-text);
	font-family: var(--tfm-font);
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.2;
	text-decoration: none;
	text-transform: none;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.thefibra-member .thefibra-member-pill:hover,
.thefibra-member a.thefibra-member-pill:hover {
	border-color: var(--tfm-text);
	background: transparent;
	color: var(--tfm-text);
}

.thefibra-member .thefibra-member-pill--quiet,
.thefibra-member .thefibra-member-pill--quiet:hover {
	border-color: transparent;
	color: var(--tfm-muted);
}

.thefibra-member .thefibra-member-pill--quiet:hover {
	color: var(--tfm-text);
}

.thefibra-member .thefibra-member-pill--solid,
.thefibra-member a.thefibra-member-pill--solid,
.thefibra-member a.thefibra-member-pill--solid:visited,
.thefibra-member a.thefibra-member-pill--solid:hover {
	border-color: var(--tfm-text);
	background: var(--tfm-text);
	color: var(--tfm-bg);
	font-weight: 700;
}

/* Botões do painel: pílulas, sem maiúsculas. */
.thefibra-member--dashboard .thefibra-member-button,
.thefibra-member--dashboard a.thefibra-member-button {
	border-radius: 999px;
	border-color: var(--tfm-line);
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
}

.thefibra-member--dashboard .thefibra-member-button--primary,
.thefibra-member--dashboard a.thefibra-member-button--primary,
.thefibra-member--dashboard .thefibra-member-button--primary:hover,
.thefibra-member--dashboard .thefibra-member-button--primary:focus,
.thefibra-member--dashboard a.thefibra-member-button--primary:hover {
	background: var(--tfm-text);
	border-color: var(--tfm-text);
	color: var(--tfm-bg);
	font-weight: 700;
}

.thefibra-member--dashboard .thefibra-member-button--ghost,
.thefibra-member--dashboard .thefibra-member-button--ghost:hover,
.thefibra-member--dashboard .thefibra-member-button--ghost:focus {
	border-color: transparent;
}

.thefibra-member--dashboard .thefibra-member-form .thefibra-member-button {
	width: auto;
}

/* Campos. */
.thefibra-member--dashboard input[type="text"],
.thefibra-member--dashboard input[type="email"],
.thefibra-member--dashboard input[type="password"],
.thefibra-member--dashboard textarea,
.thefibra-member--dashboard select {
	border-radius: 12px;
}

/* Cartões e listas. */
.thefibra-member--dashboard .thefibra-member-item,
.thefibra-member--dashboard .thefibra-member-empty,
.thefibra-member--dashboard .thefibra-member-notice {
	border-radius: var(--tfm-radius);
	border-color: var(--tfm-border);
}

.thefibra-member--dashboard .thefibra-member-item {
	padding: 18px 20px;
}

.thefibra-member--dashboard .thefibra-member-empty {
	padding: 40px 24px;
	border-style: solid;
}

.thefibra-member--dashboard .thefibra-member-item .thefibra-member-eyebrow {
	color: var(--tfm-pop-text);
	font-weight: 700;
	letter-spacing: 0.1em;
}

.thefibra-member--dashboard .thefibra-member-item__thumb {
	border-radius: 14px;
}

/* Notícias guardadas: grelha de cartões com imagem em cima. */
.thefibra-member--dashboard .thefibra-member-list:has(> [data-thefibra-member-item]) {
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 20px;
}

.thefibra-member--dashboard [data-thefibra-member-item].thefibra-member-item {
	display: flex;
	flex-direction: column;
	gap: 0;
	padding: 0;
	overflow: hidden;
}

.thefibra-member--dashboard [data-thefibra-member-item] .thefibra-member-item__thumb {
	border-radius: 0;
}

.thefibra-member--dashboard [data-thefibra-member-item] .thefibra-member-item__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 18px 20px 20px;
}

.thefibra-member--dashboard [data-thefibra-member-item] .thefibra-member-item__actions {
	margin-top: auto;
	padding-top: 12px;
}

/* Colecções: pílulas, a actual preenchida. */
.thefibra-member--dashboard .thefibra-member-collections a {
	min-height: 40px;
	border-color: var(--tfm-line);
	border-radius: 999px;
	font-size: 0.875rem;
	font-weight: 600;
}

.thefibra-member--dashboard .thefibra-member-collections a[aria-current="page"] {
	background: var(--tfm-text);
	border-color: var(--tfm-text);
	color: var(--tfm-bg);
}

.thefibra-member--dashboard .thefibra-member-collections a[aria-current="page"] .thefibra-member-count {
	color: var(--tfm-bg);
}

.thefibra-member--dashboard .thefibra-member-details {
	border: 1px solid var(--tfm-border);
	border-radius: var(--tfm-radius);
	padding: 4px 20px;
	background: var(--tfm-surface);
}

.thefibra-member--dashboard .thefibra-member-block {
	padding: 22px;
	border: 1px solid var(--tfm-border);
	border-radius: var(--tfm-radius);
	background: var(--tfm-surface);
}

.thefibra-member--dashboard .thefibra-member-block > .thefibra-member-subtitle:first-child {
	margin-top: 0;
}

/* Blocos («bento»). */
.thefibra-member-bento {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-auto-flow: dense;
	gap: 12px;
}

@media (min-width: 900px) {
	.thefibra-member-bento {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		grid-auto-rows: minmax(180px, auto);
		gap: 16px;
	}
}

.thefibra-member-bento__tile {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
	padding: 18px;
	border: 1px solid var(--tfm-border);
	border-radius: var(--tfm-radius);
	background: var(--tfm-surface);
	color: var(--tfm-text);
}

@media (min-width: 900px) {
	.thefibra-member-bento__tile {
		padding: 22px;
	}
}

.thefibra-member-bento__tile--feature,
.thefibra-member-bento__tile--wide,
.thefibra-member-bento__tile--strip {
	grid-column: span 2;
}

@media (min-width: 900px) {
	.thefibra-member-bento__tile--feature.is-tall {
		grid-row: span 3;
	}

	.thefibra-member-bento__tile--feature.is-mid {
		grid-row: span 2;
	}
}

.thefibra-member .thefibra-member-bento__tile--link,
.thefibra-member .thefibra-member-bento__tile--link:visited {
	justify-content: space-between;
	color: var(--tfm-text);
	text-decoration: none;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

@media (max-width: 899px) {
	.thefibra-member .thefibra-member-bento__tile--link:not(.thefibra-member-bento__tile--strip) {
		aspect-ratio: 1 / 1;
	}

	.thefibra-member-bento__body--big {
		font-size: 1rem;
	}
}

.thefibra-member .thefibra-member-bento__tile--link:hover {
	border-color: var(--tfm-line);
	background: var(--tfm-surface-2);
}

.thefibra-member .thefibra-member-bento__tile--link:focus-visible,
.thefibra-member .thefibra-member-bento__tile a:focus-visible {
	outline: 3px solid var(--tfm-focus);
	outline-offset: 2px;
}

.thefibra-member .thefibra-member-bento__tile--pop,
.thefibra-member .thefibra-member-bento__tile--pop:visited,
.thefibra-member .thefibra-member-bento__tile--pop:hover {
	border-color: var(--tfm-pop);
	background: var(--tfm-pop);
	color: var(--tfm-on-pop);
}


.thefibra-member .thefibra-member-bento__tile--pop:hover {
	opacity: 0.92;
}

.thefibra-member-bento__tile--pop .thefibra-member-bento__title,
.thefibra-member-bento__tile--pop .thefibra-member-bento__body,
.thefibra-member-bento__tile--pop .thefibra-member-bento__note {
	color: var(--tfm-on-pop);
}

.thefibra-member-bento__tile--pop .thefibra-member-bento__note {
	font-weight: 700;
}

.thefibra-member-bento__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.thefibra-member .thefibra-member-bento__label {
	margin: 0;
	color: var(--tfm-muted);
	font-family: var(--tfm-font);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1.2;
	text-transform: uppercase;
}

.thefibra-member .thefibra-member-bento__aside,
.thefibra-member .thefibra-member-bento__aside:visited {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	margin: -12px 0;
	color: var(--tfm-muted);
	font-size: 0.8125rem;
	font-weight: 600;
	text-decoration: none;
}

.thefibra-member .thefibra-member-bento__aside:hover {
	color: var(--tfm-text);
}

.thefibra-member-bento__title {
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.25;
}

.thefibra-member-bento__value {
	font-size: clamp(2.25rem, 1.8rem + 1.2vw, 2.75rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.thefibra-member-bento__body {
	display: -webkit-box;
	overflow: hidden;
	color: var(--tfm-soft);
	font-size: 0.875rem;
	line-height: 1.4;
	overflow-wrap: anywhere;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
}

.thefibra-member-bento__body--big {
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.25;
}

.thefibra-member-bento__note {
	color: var(--tfm-muted);
	font-size: 0.8125rem;
	line-height: 1.35;
}

.thefibra-member-bento__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 28px;
	height: 28px;
	padding: 0 9px;
	border-radius: 999px;
	background: var(--tfm-pop);
	color: var(--tfm-on-pop);
	font-size: 0.8125rem;
	font-weight: 800;
}

.thefibra-member-bento__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.thefibra-member-bento__chip {
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	padding: 5px 10px;
	border-radius: 999px;
	background: var(--tfm-surface-2);
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.3;
}

.thefibra-member-bento__chip--line {
	border: 1px solid var(--tfm-line);
	background: transparent;
	font-size: 0.8125rem;
}

.thefibra-member-bento__lede {
	margin: 0;
	color: var(--tfm-soft);
	font-size: 1rem;
	line-height: 1.5;
}

.thefibra-member-bento__tile--feature .thefibra-member-pill {
	align-self: flex-start;
}

/* «Para si»: notícia em destaque e duas linhas. */
.thefibra-member .thefibra-member-bento__lead,
.thefibra-member .thefibra-member-bento__lead:visited {
	display: flex;
	flex-direction: column;
	gap: 8px;
	color: var(--tfm-text);
	text-decoration: none;
}

.thefibra-member-bento__media {
	display: block;
	aspect-ratio: 16 / 9;
	margin-bottom: 4px;
	overflow: hidden;
	border-radius: 16px;
	background: var(--tfm-surface-2);
}

.thefibra-member-bento__media img,
.thefibra-member-bento__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.thefibra-member-bento__kicker {
	color: var(--tfm-pop-text);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.thefibra-member-bento__headline {
	font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.5rem);
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.2;
}

.thefibra-member .thefibra-member-bento__lead:hover .thefibra-member-bento__headline,
.thefibra-member .thefibra-member-bento__row:hover .thefibra-member-bento__rowtitle {
	text-decoration: underline;
}

.thefibra-member-bento__rows,
.thefibra-member-bento__pair {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0 !important;
	padding: 14px 0 0 !important;
	border-top: 1px solid var(--tfm-border);
	list-style: none;
}

.thefibra-member-bento__pair {
	padding: 0 !important;
	border-top: 0;
}

@media (min-width: 600px) {
	.thefibra-member-bento__pair {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px;
	}
}

.thefibra-member-bento__rows li,
.thefibra-member-bento__pair li {
	margin: 0;
	padding: 0;
}

.thefibra-member .thefibra-member-bento__row,
.thefibra-member .thefibra-member-bento__row:visited {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 44px;
	color: var(--tfm-text);
	text-decoration: none;
}

.thefibra-member-bento__thumb {
	flex: none;
	width: 72px;
	height: 54px;
	overflow: hidden;
	border-radius: 10px;
	background: var(--tfm-surface-2);
}

.thefibra-member-bento__thumb--square {
	width: 60px;
	height: 60px;
	border-radius: 12px;
}

.thefibra-member-bento__rowtext {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.thefibra-member-bento__rowtitle {
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.3;
}

/* Conta: faixa fina. */
.thefibra-member .thefibra-member-bento__tile--strip {
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;
	gap: 16px;
}

@media (min-width: 900px) {
	.thefibra-member .thefibra-member-bento__tile--strip {
		align-self: stretch;
	}
}

.thefibra-member-bento__icon {
	flex: none;
}

.thefibra-member-bento__striptext {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.thefibra-member-bento__go {
	flex: none;
	color: var(--tfm-muted);
	font-size: 0.8125rem;
	font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
	.thefibra-member .thefibra-member-bento__tile--link {
		transition: none;
	}
}

/* O bloco de sugestões nunca corta o texto. */
.thefibra-member-bento__tile--pop .thefibra-member-bento__body {
	display: block;
	-webkit-line-clamp: unset;
	line-clamp: none;
}

/* Painel 1.6.0 — acabamentos das secções. */

/* Botões secundários: superfície própria (não parecem texto solto). */
.thefibra-member--dashboard .thefibra-member-button--ghost,
.thefibra-member--dashboard .thefibra-member-button--ghost:hover,
.thefibra-member--dashboard .thefibra-member-button--ghost:focus,
.thefibra-member--dashboard .thefibra-member-button--ghost:active {
	background: var(--tfm-surface-2);
	border-color: var(--tfm-surface-2);
	color: var(--tfm-text);
}

.thefibra-member--dashboard .thefibra-member-button--ghost:hover {
	border-color: var(--tfm-line);
}

.thefibra-member--dashboard .thefibra-member-block .thefibra-member-button--ghost,
.thefibra-member--dashboard .thefibra-member-item .thefibra-member-button--ghost {
	background: var(--tfm-bg);
	border-color: var(--tfm-bg);
}

/* Botões de formulário com a largura do texto. */
.thefibra-member.thefibra-member--dashboard .thefibra-member-form .thefibra-member-button {
	width: auto;
	align-self: flex-start;
	justify-self: start;
}

/* «Mostrar» palavra-passe sem maiúsculas. */
.thefibra-member--dashboard .thefibra-member-password__toggle,
.thefibra-member--dashboard .thefibra-member-password__toggle:hover,
.thefibra-member--dashboard .thefibra-member-password__toggle:focus {
	border-radius: 0 12px 12px 0;
	font-size: 0.8125rem;
	letter-spacing: 0;
	text-transform: none;
}

.thefibra-member--dashboard .thefibra-member-password input {
	border-radius: 12px;
}

/* Temas em pílulas. */
.thefibra-member--dashboard .thefibra-member-choices {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.thefibra-member--dashboard .thefibra-member-choices li {
	min-height: 44px;
	padding: 0 16px 0 12px;
	border-color: var(--tfm-line);
	border-radius: 999px;
	background: transparent;
}

.thefibra-member--dashboard .thefibra-member-choices li:has(input:checked) {
	border-color: var(--tfm-text);
	background: var(--tfm-surface-2);
}

.thefibra-member--dashboard .thefibra-member-choices label {
	padding: 10px 0;
	white-space: nowrap;
}

.thefibra-member--dashboard .thefibra-member-choices input {
	width: 18px;
	height: 18px;
}

/* Notícias guardadas: o título e a imagem já abrem a notícia; as acções numa linha. */
.thefibra-member--dashboard [data-thefibra-member-item] .thefibra-member-item__actions > a.thefibra-member-button {
	display: none;
}

.thefibra-member--dashboard [data-thefibra-member-item] .thefibra-member-item__actions {
	align-items: center;
}

.thefibra-member--dashboard .thefibra-member-move {
	flex-wrap: nowrap;
}

.thefibra-member--dashboard .thefibra-member-select {
	min-width: 0;
	border-radius: 999px;
	background-color: var(--tfm-bg);
}

/* «Gerir colecções»: só a pílula; o painel abre por baixo. */
.thefibra-member--dashboard .thefibra-member-details {
	padding: 0;
	border: 0;
	background: transparent;
}

.thefibra-member--dashboard .thefibra-member-details > summary {
	display: inline-flex;
	min-height: 44px;
	padding: 0 18px;
	border: 1px solid var(--tfm-line);
	border-radius: 999px;
	font-size: 0.875rem;
	list-style: none;
}

.thefibra-member--dashboard .thefibra-member-details > summary::-webkit-details-marker {
	display: none;
}

.thefibra-member--dashboard .thefibra-member-details[open] > summary {
	margin-bottom: 12px;
	border-color: var(--tfm-text);
}

.thefibra-member--dashboard .thefibra-member-details[open] > form {
	padding: 20px;
	border: 1px solid var(--tfm-border);
	border-radius: var(--tfm-radius);
	background: var(--tfm-surface);
}

.thefibra-member--dashboard .thefibra-member-details[open] > form + form {
	margin-top: 12px;
}

/* Listas (histórico, notificações): acções junto ao texto. */
.thefibra-member--dashboard .thefibra-member-item__actions {
	margin-top: 8px;
}

.thefibra-member--dashboard .thefibra-member-notification.is-unread {
	border-left-width: 1px;
	padding-left: 20px;
	box-shadow: inset 3px 0 0 var(--tfm-pop);
}

.thefibra-member--dashboard .thefibra-member-badge {
	background: var(--tfm-pop);
	color: var(--tfm-on-pop);
}
