/**
 * Club LiteraturArte — Tracking de Leitura
 * Folha de estilo única e auto-contida (própria convenção deste plugin,
 * deliberadamente à parte do Guia de Design oficial --la-*/Bebas Neue+Nunito
 * — mesmo princípio de auto-contenção já usado no adel-classificador e no
 * literaturarte-bd-mestres). Paleta/tipografia tal como o protótipo de
 * design (LiteraturArte App.dc.html). Ícones: emoji nativos, sem icon-font.
 *
 * REGRA: todo o font-size é em `em`, nunca `px`, e só é definido em
 * elementos que renderizam texto diretamente (nunca em contentores) — para
 * herdar o tamanho base do tema sem efeitos de composição em cascata.
 * Conversão de referência: 1em = 16px (o valor do protótipo original).
 */

.ltl-app {
	--ltl-bg: #EDEBE4;
	--ltl-surface: #F7F5F0;
	--ltl-card: #FFFFFF;
	--ltl-primary: #8fcea8;
	--ltl-primary-ink: #1f3d2c;
	--ltl-primary-soft: #E7EEE3;
	--ltl-primary-soft-ink: #2f6b47;
	--ltl-accent: #ffd66a;
	--ltl-accent-ink: #4a3610;
	--ltl-coral: #f37267;
	--ltl-coral-soft: #F3DFD6;
	--ltl-text: #232323;
	--ltl-muted: #6B6B63;
	--ltl-muted-2: #8a877c;
	--ltl-border: #E3E0D5;
	--ltl-tbr-bg: #EFEBDF;
	--ltl-tbr-ink: #8a661f;
	--ltl-ofereci-bg: #EAE4F0;
	--ltl-ofereci-ink: #5B3A5C;
	--ltl-session-dark: #1B1E19;
	--ltl-session-text: #F4F1E8;
	--ltl-session-muted: #9BA394;
	--ltl-session-border: #5B6357;
	--ltl-session-card: #252822;
	--ltl-radius-lg: 16px;
	--ltl-radius-md: 12px;
	--ltl-radius-sm: 8px;
	--ltl-font-display: 'Alumni Sans', sans-serif;
	--ltl-font-body: 'Inter', sans-serif;

	box-sizing: border-box;
	color: var(--ltl-text);
	font-family: var(--ltl-font-body);
	-webkit-font-smoothing: antialiased;
}
.ltl-app *, .ltl-app *::before, .ltl-app *::after { box-sizing: border-box; }
.ltl-app a { color: var(--ltl-primary-soft-ink); text-decoration: none; }
.ltl-app a:hover { text-decoration: underline; }
.ltl-app button { font-family: inherit; }
.ltl-app input, .ltl-app textarea, .ltl-app select { font-family: inherit; }
.ltl-app img { max-width: 100%; }

/* ==================== LAYOUT ==================== */

.ltl-shell {
	max-width: 640px;
	margin: 0 auto;
	padding: 0 20px 40px;
	background: var(--ltl-bg);
	min-height: 60vh;
	border-radius: var(--ltl-radius-lg);
}
@media (min-width: 900px) {
	.ltl-shell { max-width: 820px; padding: 0 32px 56px; }
	.ltl-shell--wide { max-width: 1100px; }
}

.ltl-header {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 18px 0 12px;
	position: sticky;
	top: 0;
	background: var(--ltl-bg);
	z-index: 5;
}
.ltl-header__back {
	width: 34px; height: 34px; flex: none;
	display: flex; align-items: center; justify-content: center;
	border-radius: 17px; background: var(--ltl-card); border: 1px solid var(--ltl-border);
	cursor: pointer; font-size: 1.125em; line-height: 1; color: var(--ltl-text);
	text-decoration: none; user-select: none;
}
.ltl-app a.ltl-header__back:hover { text-decoration: none; background: var(--ltl-primary-soft); }
.ltl-header__back:hover { background: var(--ltl-primary-soft); }
.ltl-header__title { font-family: var(--ltl-font-display); font-size: 1.1875em; font-weight: 600; letter-spacing: .2px; }

/* Navegação persistente (Estante/Estatísticas/Perfil) — bottom-nav em
   mobile, topo em desktop, tal como o design (showBottomNav só nesses 3
   ecrãs). */
.ltl-nav {
	display: flex; border-top: 1px solid var(--ltl-border); background: var(--ltl-surface);
	position: sticky; bottom: 0; margin: 24px -20px 0; padding: 0 20px;
	border-radius: 0 0 var(--ltl-radius-lg) var(--ltl-radius-lg);
}
.ltl-nav__item {
	flex: 1; text-align: center; padding: 12px 0 14px; cursor: pointer;
	display: flex; flex-direction: column; align-items: center; gap: 5px;
	user-select: none;
}
.ltl-app a.ltl-nav__item, .ltl-app a.ltl-nav__item:hover { text-decoration: none; }
.ltl-nav__dot { width: 8px; height: 8px; border-radius: 4px; background: #D8D4C7; }
.ltl-nav__item.is-active .ltl-nav__dot { background: var(--ltl-primary-soft-ink); }
.ltl-nav__label { font-size: 0.656em; font-weight: 600; color: var(--ltl-muted-2); }
.ltl-nav__item.is-active .ltl-nav__label { color: var(--ltl-text); }
@media (min-width: 900px) {
	.ltl-nav { position: static; border-top: none; border-bottom: 1px solid var(--ltl-border); margin: 0 -32px 24px; border-radius: 0; }
	.ltl-nav__item { flex-direction: row; justify-content: center; }
}

.ltl-login-required { padding: 40px 20px; text-align: center; color: var(--ltl-muted); }

/* ==================== BOTÕES / CHIPS ==================== */

.ltl-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	border-radius: 14px; padding: 14px 0; font-weight: 600; font-size: 0.9375em;
	cursor: pointer; border: none; width: 100%; user-select: none;
	transition: filter .12s ease, background .12s ease;
}
.ltl-btn:hover { filter: brightness(0.96); }
.ltl-btn--primary { background: var(--ltl-primary); color: var(--ltl-primary-ink); }
.ltl-btn--danger { background: var(--ltl-coral); color: #fff; }
.ltl-btn--outline { background: var(--ltl-card); color: var(--ltl-text); border: 1px solid var(--ltl-border); padding: 11px 0; font-size: 0.78em; }
.ltl-btn--outline:hover { background: var(--ltl-primary-soft); border-color: var(--ltl-primary); }
.ltl-btn--ghost { background: transparent; color: var(--ltl-primary-ink); border: 1px solid var(--ltl-primary-ink); border-radius: 20px; width: auto; padding: 10px 18px; font-size: 0.8125em; cursor: pointer; user-select: none; }
.ltl-btn--ghost:hover { background: var(--ltl-primary-soft); }
.ltl-btn--link {
	background: none; border: none; color: var(--ltl-primary-soft-ink); font-size: 0.8125em;
	width: auto; cursor: pointer; padding: 8px 10px; border-radius: 10px;
	text-decoration: underline; text-underline-offset: 3px; user-select: none;
}
.ltl-btn--link:hover { background: rgba(0,0,0,.05); }
.ltl-btn--soft {
	flex: none; background: var(--ltl-primary-soft); color: var(--ltl-primary-soft-ink);
	border: 1px solid transparent; border-radius: 10px; padding: 8px 11px;
	font-size: 0.719em; font-weight: 600; cursor: pointer; text-align: center;
	line-height: 1.3; user-select: none; max-width: 40%;
}
.ltl-btn--soft:hover { border-color: var(--ltl-primary-soft-ink); }
.ltl-btn-row { display: flex; gap: 8px; margin-bottom: 20px; }
.ltl-btn-row .ltl-btn { flex: 1; }

.ltl-chip-row { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.ltl-chip {
	flex: none; padding: 7px 13px; border-radius: 20px; font-size: 0.78em; font-weight: 500;
	cursor: pointer; white-space: nowrap; background: var(--ltl-card); color: var(--ltl-text);
	border: 1.5px solid var(--ltl-border); user-select: none;
	transition: background .12s ease, border-color .12s ease;
}
.ltl-chip:hover { border-color: var(--ltl-primary); }
.ltl-chip.is-active {
	background: var(--ltl-primary); color: var(--ltl-primary-ink);
	border-color: var(--ltl-primary-ink); font-weight: 700;
}

.ltl-tabs { display: flex; gap: 6px; background: #E9E6DC; padding: 4px; border-radius: 12px; margin-bottom: 14px; }
.ltl-tabs__item { flex: 1; text-align: center; padding: 9px 0; border-radius: 9px; font-size: 0.8125em; font-weight: 600; cursor: pointer; color: var(--ltl-muted-2); user-select: none; }
.ltl-tabs__item.is-active { background: var(--ltl-card); color: var(--ltl-text); box-shadow: 0 1px 3px rgba(0,0,0,.08); }

/* ==================== ESTANTE ==================== */

.ltl-shelf-head { display: flex; align-items: baseline; justify-content: space-between; margin: 6px 0 14px; padding-top: 18px; }
.ltl-shelf-head h1 { font-family: var(--ltl-font-display); font-size: 1.625em; font-weight: 600; margin: 0; }
.ltl-streak { font-size: 0.75em; color: var(--ltl-accent-ink); background: var(--ltl-accent); padding: 5px 10px; border-radius: 20px; font-weight: 600; white-space: nowrap; }

.ltl-book-row { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--ltl-border); cursor: pointer; align-items: center; }
.ltl-book-row:hover .ltl-book-row__title { color: var(--ltl-primary-soft-ink); }
.ltl-book-row__cover { width: 48px; height: 68px; flex: none; border-radius: 6px; object-fit: cover; background: var(--ltl-border); }
.ltl-book-row__cover--sm { width: 40px; height: 56px; }

/* Placeholder de capa — usado por LTL.coverHtml() sempre que não há
   cover_url, para nunca deixar um <img src=""> no DOM (o browser substitui
   isso por um placeholder nativo de "imagem partida" que ocupa muito mais
   espaço do que isto). */
.ltl-cover-placeholder {
	display: flex; align-items: center; justify-content: center;
	background: var(--ltl-border); color: var(--ltl-muted-2);
	border: 1px dashed #C9C5B7; font-size: 1.125em;
}
.ltl-book-row__body { flex: 1; min-width: 0; }
.ltl-book-row__title { font-family: var(--ltl-font-display); font-size: 0.969em; font-weight: 600; line-height: 1.25; }
.ltl-book-row__author { font-size: 0.75em; color: var(--ltl-muted); margin-top: 2px; }
.ltl-book-row__meta { display: flex; align-items: center; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.ltl-book-row__arrow { font-size: 1.125em; color: #B9B6AB; flex: none; }

.ltl-badge { font-size: 0.656em; padding: 2px 7px; border-radius: 10px; font-weight: 600; white-space: nowrap; }
.ltl-badge--tbr { background: var(--ltl-tbr-bg); color: var(--ltl-tbr-ink); }
.ltl-badge--a_ler { background: var(--ltl-primary-soft); color: var(--ltl-primary-soft-ink); }
.ltl-badge--lido { background: #DDE7E1; color: var(--ltl-primary-ink); }
.ltl-badge--abandonei { background: var(--ltl-coral-soft); color: var(--ltl-coral); }
.ltl-badge--ofereci { background: var(--ltl-ofereci-bg); color: var(--ltl-ofereci-ink); }
.ltl-badge--genero { background: var(--ltl-border); color: var(--ltl-muted); }

.ltl-empty { padding: 40px 0; text-align: center; color: var(--ltl-muted-2); font-size: 0.8125em; }

.ltl-birthday-banner { background: var(--ltl-accent); border: 1px solid #f0c452; border-radius: 12px; padding: 12px 14px; font-size: 0.75em; color: var(--ltl-accent-ink); line-height: 1.5; margin-bottom: 14px; }

/* ==================== ADICIONAR LIVRO ==================== */

.ltl-field-label { font-size: 0.75em; font-weight: 600; color: var(--ltl-muted); margin-bottom: 6px; }
.ltl-input, .ltl-textarea {
	width: 100%; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--ltl-border);
	font-size: 0.875em; outline: none; background: var(--ltl-card); color: var(--ltl-text);
}
.ltl-input:focus, .ltl-textarea:focus { border-color: var(--ltl-primary); }
.ltl-textarea { resize: none; font-family: var(--ltl-font-body); }
.ltl-hint { font-size: 0.6875em; color: var(--ltl-muted-2); margin: 4px 0 14px; }

.ltl-search-input-row { display: flex; gap: 8px; align-items: center; }
.ltl-search-input-row .ltl-input { flex: 1; margin-bottom: 0; }

.ltl-search-loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 36px 0; color: var(--ltl-muted); font-size: 0.8125em; }
.ltl-spinner { width: 18px; height: 18px; flex: none; border-radius: 50%; border: 2.5px solid var(--ltl-border); border-top-color: var(--ltl-primary-ink); animation: ltl-spin 0.8s linear infinite; }
@keyframes ltl-spin { to { transform: rotate(360deg); } }

.ltl-scan-overlay {
	position: fixed; inset: 0; z-index: 999; background: #0b0b0b;
	display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px;
}
.ltl-scan-overlay video { width: 100%; max-width: 440px; border-radius: 14px; background: #000; }
.ltl-scan-overlay__close { position: absolute; top: 20px; right: 20px; color: #fff; font-size: 1.375em; cursor: pointer; line-height: 1; }
.ltl-scan-overlay__hint { color: #fff; opacity: 0.85; font-size: 0.8125em; margin-top: 18px; text-align: center; max-width: 320px; }
.ltl-scan-overlay__error { color: #fff; background: var(--ltl-coral); border-radius: 12px; padding: 14px 18px; font-size: 0.8125em; text-align: center; max-width: 320px; }

.ltl-search-result { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--ltl-border); cursor: pointer; align-items: center; }
.ltl-search-result:hover { background: rgba(255,255,255,.5); }
.ltl-search-result__title { font-family: var(--ltl-font-display); font-size: 0.875em; font-weight: 600; line-height: 1.25; }
.ltl-search-result__meta { font-size: 0.719em; color: var(--ltl-muted); margin-top: 2px; }
.ltl-search-source { font-size: 0.625em; padding: 2px 7px; border-radius: 8px; background: var(--ltl-tbr-bg); color: var(--ltl-tbr-ink); font-weight: 600; margin-left: 6px; white-space: nowrap; }
.ltl-search-source--masterdb { background: var(--ltl-primary-soft); color: var(--ltl-primary-soft-ink); }

.ltl-option-group { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.ltl-option {
	flex: 1; min-width: 80px; text-align: center; padding: 10px 0; border-radius: 10px;
	font-size: 0.78em; font-weight: 600; cursor: pointer; background: var(--ltl-card);
	color: var(--ltl-text); border: 1.5px solid var(--ltl-border); user-select: none;
	transition: background .12s ease, border-color .12s ease;
}
.ltl-option:hover { border-color: var(--ltl-primary); }
.ltl-option.is-active {
	background: var(--ltl-primary); color: var(--ltl-primary-ink);
	border-color: var(--ltl-primary-ink); font-weight: 700;
}
.ltl-option--pill { flex: none; padding: 8px 13px; border-radius: 16px; white-space: nowrap; }

/* ==================== DETALHE DO LIVRO ==================== */

.ltl-detail-head { display: flex; gap: 16px; margin: 6px 0 16px; }
.ltl-detail-head__cover { width: 100px; height: 142px; flex: none; border-radius: 8px; object-fit: cover; background: var(--ltl-border); }
.ltl-detail-head__title { font-family: var(--ltl-font-display); font-size: 1.1875em; font-weight: 600; line-height: 1.25; }
.ltl-detail-head__author { font-size: 0.8125em; color: var(--ltl-muted); margin-top: 3px; }
.ltl-detail-head__line { font-size: 0.719em; color: var(--ltl-muted); margin-top: 8px; }

.ltl-progress { height: 6px; background: var(--ltl-border); border-radius: 3px; overflow: hidden; }
.ltl-progress__fill { height: 100%; background: var(--ltl-primary); transition: width .2s ease; }
.ltl-progress-label { font-size: 0.75em; color: var(--ltl-muted); margin-top: 6px; }

.ltl-section-title { font-size: 0.78em; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; margin: 4px 0 8px; }

.ltl-session-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--ltl-border); font-size: 0.78em; }
.ltl-quote-card { background: var(--ltl-card); border: 1px solid var(--ltl-border); border-radius: 10px; padding: 12px 14px; margin-bottom: 8px; }
.ltl-quote-card__text { font-family: var(--ltl-font-display); font-size: 0.844em; font-style: italic; line-height: 1.4; }
.ltl-quote-card__meta { font-size: 0.6875em; color: var(--ltl-muted-2); margin-top: 6px; }

/* ==================== SESSÃO ==================== */

.ltl-session {
	background: var(--ltl-surface);
	border-radius: 20px;
	min-height: 70vh;
	display: flex;
	flex-direction: column;
	padding: 24px 20px 32px;
	margin-top: 18px;
}
.ltl-session.is-dark { background: var(--ltl-session-dark); color: var(--ltl-session-text); }

.ltl-duration-picker { display: flex; gap: 10px; justify-content: center; margin: 24px 0 20px; flex-wrap: wrap; }
.ltl-duration-chip {
	padding: 12px 20px; border-radius: 16px; font-size: 0.875em; font-weight: 600;
	cursor: pointer; background: var(--ltl-card); border: 1.5px solid var(--ltl-border);
	user-select: none; transition: background .12s ease, border-color .12s ease;
}
.ltl-duration-chip:hover { border-color: var(--ltl-primary); }
.ltl-duration-chip.is-active {
	background: var(--ltl-primary); color: var(--ltl-primary-ink);
	border-color: var(--ltl-primary-ink); font-weight: 700;
}

.ltl-timer-wrap { position: relative; width: 280px; height: 280px; max-width: 100%; margin: 0 auto; }
.ltl-timer-ring { position: absolute; inset: 0; transform: rotate(-90deg); width: 100%; height: 100%; }
.ltl-timer-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.ltl-timer-center__cover { width: 104px; height: 146px; border-radius: 8px; object-fit: cover; background: var(--ltl-border); }
.ltl-timer-center__title { font-size: 0.719em; letter-spacing: .5px; text-transform: uppercase; text-align: center; padding: 0 40px; color: var(--ltl-muted-2); max-height: 2.6em; overflow: hidden; }
.ltl-session.is-dark .ltl-timer-center__title { color: var(--ltl-session-muted); }
.ltl-timer-center__time { font-family: var(--ltl-font-display); font-size: 2.5em; font-weight: 700; letter-spacing: 1px; font-variant-numeric: tabular-nums; }

.ltl-session-actions { display: flex; gap: 20px; margin-top: 32px; justify-content: center; }
.ltl-icon-btn {
	width: 64px; height: 64px; border-radius: 32px; border: 1.5px solid var(--ltl-border);
	display: flex; align-items: center; justify-content: center; cursor: pointer;
	font-size: 1.25em; line-height: 1; background: var(--ltl-card); user-select: none;
	transition: background .12s ease, border-color .12s ease;
}
.ltl-icon-btn:hover { border-color: var(--ltl-primary); }
.ltl-session.is-dark .ltl-icon-btn { border-color: var(--ltl-session-border); color: var(--ltl-session-text); background: var(--ltl-session-card); }
.ltl-icon-btn--sm {
	width: 34px; height: 34px; flex: none; border-radius: 17px;
	border: 1.5px solid var(--ltl-border); background: var(--ltl-card);
	display: flex; align-items: center; justify-content: center;
	cursor: pointer; font-size: 0.875em; line-height: 1; user-select: none;
}
.ltl-session.is-dark .ltl-icon-btn--sm { border-color: var(--ltl-session-border); background: var(--ltl-session-card); color: var(--ltl-session-text); }

.ltl-quote-capture { margin-top: 20px; width: 100%; background: var(--ltl-card); border-radius: 12px; padding: 14px; }
.ltl-session.is-dark .ltl-quote-capture { background: var(--ltl-session-card); }
.ltl-quote-capture textarea { width: 100%; min-height: 60px; background: transparent; border: none; font-size: 0.8125em; resize: none; outline: none; color: inherit; font-family: var(--ltl-font-body); }

.ltl-overlay { position: fixed; inset: 0; background: rgba(247,245,240,.96); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 30px; z-index: 50; }
.ltl-overlay.is-dark { background: rgba(15,17,13,.92); color: var(--ltl-session-text); }
.ltl-overlay .ltl-btn--link { color: inherit; opacity: .75; }
.ltl-overlay .ltl-btn--link:hover { opacity: 1; background: transparent; }
.ltl-coin { width: 76px; height: 76px; border-radius: 50%; background: linear-gradient(135deg,#ffe08a,#ffd66a); display: flex; align-items: center; justify-content: center; font-size: 1.625em; color: var(--ltl-accent-ink); margin-bottom: 24px; }
.ltl-coin.is-spinning { animation: ltl-coin-spin 1.1s ease-in-out; }
@keyframes ltl-coin-spin { 0% { transform: rotateY(0deg); } 100% { transform: rotateY(1800deg); } }

.ltl-step-label { font-size: 0.719em; color: var(--ltl-muted-2); font-weight: 600; letter-spacing: .4px; text-transform: uppercase; margin: 28px 0 20px; }

.ltl-mood-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ltl-mood-option {
	text-align: center; padding: 14px 0; border-radius: 14px; cursor: pointer;
	background: var(--ltl-card); border: 1.5px solid var(--ltl-border); user-select: none;
	transition: background .12s ease, border-color .12s ease;
}
.ltl-mood-option:hover { border-color: var(--ltl-primary); }
.ltl-mood-option.is-active { background: var(--ltl-primary-soft); border-color: var(--ltl-primary-soft-ink); }
.ltl-mood-option__icon { font-size: 1.375em; line-height: 1.2; }
.ltl-mood-option__label { font-size: 0.6875em; margin-top: 6px; font-weight: 500; }
.ltl-mood-option.is-active .ltl-mood-option__label { font-weight: 700; color: var(--ltl-primary-soft-ink); }

.ltl-stars { display: flex; gap: 4px; justify-content: center; margin-bottom: 14px; }
.ltl-star { position: relative; width: 36px; height: 36px; font-size: 2em; line-height: 1; }
.ltl-star__bg, .ltl-star__fg { position: absolute; inset: 0; }
.ltl-star__bg { color: var(--ltl-border); }
.ltl-star__fg { color: var(--ltl-primary); overflow: hidden; }
.ltl-star__hit { position: absolute; top: 0; height: 100%; width: 50%; cursor: pointer; z-index: 2; }
.ltl-star__hit--left { left: 0; }
.ltl-star__hit--right { right: 0; }

.ltl-slider-row { margin-bottom: 18px; }
.ltl-slider-row__head { display: flex; justify-content: space-between; font-size: 0.8125em; font-weight: 600; margin-bottom: 6px; }
.ltl-slider-row__value { color: var(--ltl-primary-soft-ink); }
.ltl-slider-row input[type="range"] { width: 100%; accent-color: var(--ltl-primary-soft-ink); }
.ltl-app input[type="range"] { accent-color: var(--ltl-primary-soft-ink); }

/* ==================== CELEBRAÇÃO ==================== */

.ltl-confetti-piece { position: absolute; top: 0; width: 8px; height: 8px; border-radius: 2px; animation: ltl-confetti-fall 1.8s ease-in forwards; pointer-events: none; }
@keyframes ltl-confetti-fall { 0% { transform: translateY(-20px) rotate(0deg); opacity: 1; } 100% { transform: translateY(680px) rotate(340deg); opacity: 0; } }

.ltl-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.ltl-stat-card { background: var(--ltl-card); border: 1px solid var(--ltl-border); border-radius: 12px; padding: 12px; text-align: center; min-width: 0; }
.ltl-stat-card__value { font-family: var(--ltl-font-display); font-size: 1.25em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ltl-stat-card__label { font-size: 0.6875em; color: var(--ltl-muted-2); }

.ltl-reading-card { background: var(--ltl-session-dark); border-radius: 16px; padding: 20px; display: flex; gap: 14px; margin-bottom: 16px; color: var(--ltl-session-text); }
.ltl-reading-card__cover { width: 70px; height: 100px; flex: none; border-radius: 6px; object-fit: cover; background: #33362C; }
.ltl-reading-card__title { font-family: var(--ltl-font-display); font-size: 0.9375em; font-weight: 600; line-height: 1.25; }
.ltl-reading-card__author { font-size: 0.6875em; color: var(--ltl-session-muted); margin-top: 2px; }
.ltl-reading-card__stars { font-size: 0.8125em; color: var(--ltl-accent); margin-top: 8px; }
.ltl-reading-card__mood { font-size: 0.6875em; color: var(--ltl-session-muted); margin-top: 6px; }
.ltl-reading-card__seal { font-size: 0.594em; color: #5B6357; margin-top: 8px; letter-spacing: .5px; text-transform: uppercase; }

.ltl-share-row { display: flex; gap: 8px; margin-bottom: 10px; }
.ltl-share-btn { flex: 1; text-align: center; padding: 11px 0; border-radius: 11px; background: var(--ltl-primary); color: var(--ltl-primary-ink); font-size: 0.75em; font-weight: 600; cursor: pointer; }
.ltl-app a.ltl-share-btn, .ltl-app a.ltl-share-btn:hover { text-decoration: none; }
.ltl-share-btn--outline { background: transparent; border: 1px solid var(--ltl-border); color: var(--ltl-text); }

/* ==================== EMPRÉSTIMOS ==================== */

.ltl-loan-form { margin-top: 24px; background: var(--ltl-card); border: 1px solid var(--ltl-border); border-radius: 14px; padding: 16px; }
.ltl-loan-form__title { font-size: 0.8125em; font-weight: 600; margin-bottom: 10px; }
.ltl-suggest-chip { font-size: 0.719em; padding: 6px 11px; border-radius: 14px; background: var(--ltl-primary-soft); color: var(--ltl-primary-soft-ink); cursor: pointer; user-select: none; }
.ltl-suggest-chip:hover { background: var(--ltl-primary); color: var(--ltl-primary-ink); }

.ltl-shelf-chip {
	display: inline-flex; align-items: center; gap: 6px; font-size: 0.78em; font-weight: 600;
	padding: 6px 8px 6px 13px; border-radius: 16px; background: var(--ltl-primary); color: var(--ltl-primary-ink);
}
.ltl-shelf-chip [data-action="remove-shelf-chip"] { display: flex; cursor: pointer; opacity: 0.75; }
.ltl-shelf-chip [data-action="remove-shelf-chip"]:hover { opacity: 1; }

/* ==================== ESTATÍSTICAS ==================== */

.ltl-curiosidade { background: var(--ltl-accent); border: 1px solid #f0c452; border-radius: 12px; padding: 14px; font-size: 0.78em; color: var(--ltl-accent-ink); line-height: 1.5; margin-bottom: 24px; }

.ltl-calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 12px; }
.ltl-calendar__day {
	aspect-ratio: 1; border-radius: 9px; display: flex; flex-direction: column;
	align-items: center; justify-content: center; cursor: pointer;
	background: var(--ltl-card); border: 1.5px solid var(--ltl-border); user-select: none;
}
.ltl-calendar__day:hover { border-color: var(--ltl-primary); }
.ltl-calendar__day.has-reading { background: var(--ltl-primary-soft); }
.ltl-calendar__day.is-selected { background: var(--ltl-primary); border-color: var(--ltl-primary-ink); }
.ltl-calendar__day-num { font-size: 0.6875em; font-weight: 600; }
.ltl-calendar__dot { width: 4px; height: 4px; border-radius: 2px; background: var(--ltl-primary-soft-ink); margin-top: 2px; }

.ltl-year-cards { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.ltl-year-card { flex: none; width: 150px; height: 190px; border-radius: 16px; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; }
.ltl-year-card__label { font-size: 0.6875em; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; opacity: .8; }
.ltl-year-card__value { font-family: var(--ltl-font-display); font-size: 1.875em; font-weight: 600; }

/* ==================== PERFIL ==================== */

.ltl-profile-head { display: flex; align-items: center; gap: 14px; margin: 10px 0 20px; padding-top: 18px; }
.ltl-profile-head__avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--ltl-border); }
.ltl-profile-head__name { font-family: var(--ltl-font-display); font-size: 1.1875em; font-weight: 600; }
.ltl-profile-head__since { font-size: 0.75em; color: var(--ltl-muted); }

.ltl-list-link { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--ltl-border); cursor: pointer; }
.ltl-app a.ltl-list-link, .ltl-app a.ltl-list-link:hover { text-decoration: none; color: inherit; }
.ltl-list-link:hover .ltl-list-link__label { color: var(--ltl-primary-soft-ink); }
.ltl-list-link__label { font-size: 0.875em; font-weight: 500; }
.ltl-list-link__arrow { color: #B9B6AB; font-size: 1.125em; }

/* ==================== TOAST ==================== */

/* Anexado a document.body — fora do scope .ltl-app, por isso as cores são
   fixas (as variáveis --ltl-* não existem lá fora). */
.ltl-toast {
	position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
	background: #1B1E19; color: #F4F1E8;
	padding: 12px 20px; border-radius: 12px; font-size: 0.8125em; z-index: 100;
	box-shadow: 0 8px 24px rgba(0,0,0,.2);
	font-family: 'Inter', sans-serif; max-width: 90vw; text-align: center;
}
