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

:root {
	--bg: #0d0d0d;
	--surface: #141414;
	--surface2: #1c1c1c;
	--surface3: #222;
	--border: #282828;
	--border2: #333;
	--text: #f0f0f0;
	--muted: #707070;
	--muted2: #999;
	--cyan: #2dd4bf;
	--cyan-d: #0e6b62;
	--cyan-bg: #051a18;
	--green: #4ade80;
	--green-d: #166534;
	--green-bg: #052210;
	--yellow: #facc15;
	--yellow-d: #854d0e;
	--yellow-bg: #1c1200;
	--red: #f87171;
	--red-d: #991b1b;
	--red-bg: #1c0505;
	--blue: #60a5fa;
	--brown: #b45309;
	--brown-d: #92400e;
	--brown-bg: #2b1a0e;
	--radius: 24px;
	--radius-sm: 18px;
	--ac: var(--cyan);
	--ac-d: var(--cyan-d);
	--ac-bg: var(--cyan-bg);
}

html,
body {
	background: var(--bg);
	color: var(--text);
	font-family: 'DM Sans', sans-serif;
	font-size: clamp(14px, 3.2vw, 20px);
	min-height: 100vh;
	overflow-x: hidden
}

#app-root {
	width: 100%;
}

.screen {
	display: none;
	flex-direction: column;
	min-height: calc(100vh - 110px)
}

.screen.active {
	display: flex;
	animation: fadeIn .22s ease both
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(12px)
	}

	to {
		opacity: 1;
		transform: translateY(0)
	}
}

.header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(13, 13, 13, .96);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--border);
	padding: clamp(12px, 3vw, 20px) clamp(16px, 4vw, 24px);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px
}

.logo {
	font-family: 'Cormorant Garamond', serif;
	font-style: italic;
	font-size: clamp(40px, 8vw, 60px);
	font-weight: 600;
	color: var(--ac)
}

.header-left {
	display: flex;
	align-items: center;
	gap: clamp(10px, 3vw, 18px)
}

.period-btn {
	display: flex;
	align-items: center;
	gap: 10px;
	background: var(--surface2);
	border: 1px solid var(--border2);
	border-radius: var(--radius-sm);
	padding: clamp(10px, 2.5vw, 14px) clamp(16px, 4vw, 22px);
	color: var(--muted2);
	font-size: clamp(16px, 4vw, 25px);
	cursor: pointer
}

.period-dot {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--ac);
	animation: pulse 2.5s ease-in-out infinite
}

@keyframes pulse {

	0%,
	100% {
		opacity: 1;
		transform: scale(1)
	}

	50% {
		opacity: .35;
		transform: scale(.6)
	}
}

.history-btn {
	display: flex;
	align-items: center;
	gap: 10px;
	background: #0e2443;
	border: 1px solid #174070;
	border-radius: var(--radius-sm);
	padding: clamp(10px, 2.5vw, 14px) clamp(16px, 4vw, 20px);
	color: var(--blue);
	font-size: clamp(20px, 5vw, 30px);
	font-weight: 600;
	cursor: pointer
}

.menu-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--surface2);
	border: 1px solid var(--border2);
	border-radius: var(--radius-sm);
	width: clamp(48px, 8vw, 60px);
	height: clamp(48px, 8vw, 60px);
	color: var(--muted2);
	font-size: clamp(28px, 6vw, 36px);
	cursor: pointer;
	transition: all 0.2s;
	flex-shrink: 0;
}

.menu-btn:hover {
	border-color: var(--ac);
	color: var(--ac);
}

.scroll {
	padding: clamp(20px, 4vw, 30px) clamp(16px, 4vw, 24px) 150px;
	display: flex;
	flex-direction: column;
	gap: clamp(24px, 5vw, 36px);
	flex: 1
}

.card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden
}

.card-head {
	padding: clamp(16px, 4vw, 24px) clamp(16px, 4vw, 24px) clamp(12px, 3vw, 16px);
	display: flex;
	align-items: center;
	justify-content: space-between
}

.card-title {
	font-size: clamp(14px, 3vw, 20px);
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--muted)
}

.profile-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: clamp(20px, 5vw, 32px);
	display: flex;
	gap: clamp(18px, 4vw, 28px);
	align-items: center;
	flex-wrap: wrap
}

.profile-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(45, 212, 191, 0.08);
	border-color: var(--border2);
}

.profile-card {
	transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.avatar {
	width: clamp(70px, 15vw, 110px);
	height: clamp(70px, 15vw, 110px);
	border-radius: 20px;
	border: 1px solid var(--border2);
	flex-shrink: 0;
	background: var(--surface2);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: clamp(36px, 8vw, 58px);
	overflow: hidden
}

.profile-info {
	flex: 1;
	min-width: 180px
}

.profile-name {
	font-size: clamp(20px, 5vw, 28px);
	font-weight: 600;
	color: var(--cyan)
}

.profile-sub {
	font-size: clamp(16px, 4vw, 25px);
	color: var(--muted);
	margin-top: clamp(8px, 2vw, 12px);
	line-height: 1.65
}

.profile-badge {
	display: inline-block;
	background: var(--surface2);
	border: 1px solid var(--border2);
	border-radius: 12px;
	padding: 6px 16px;
	font-size: clamp(16px, 4vw, 25px);
	color: var(--muted2);
	margin-top: 12px;
	text-transform: uppercase;
	letter-spacing: .07em
}

.results-row {
	display: flex;
	gap: clamp(20px, 5vw, 32px);
	align-items: center;
	padding: clamp(20px, 5vw, 28px) clamp(16px, 4vw, 24px) clamp(24px, 5vw, 32px);
	flex-wrap: wrap
}

.donut-wrap {
	position: relative;
	flex-shrink: 0;
	width: clamp(140px, 30vw, 210px);
	height: clamp(140px, 30vw, 210px)
}

.donut-center {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center
}

.donut-pct {
	font-size: clamp(28px, 6vw, 38px);
	font-weight: 700;
	line-height: 1
}

.donut-lbl {
	font-size: clamp(12px, 2.5vw, 16px);
	color: var(--muted);
	margin-top: 8px;
	letter-spacing: .06em;
	text-transform: uppercase
}

.legend {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: clamp(12px, 3vw, 16px);
	min-width: 160px
}

.legend-item {
	display: flex;
	align-items: center;
	justify-content: space-between
}

.legend-left {
	display: flex;
	align-items: center;
	gap: clamp(10px, 3vw, 16px)
}

.legend-dot {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	flex-shrink: 0
}

.legend-name {
	font-size: clamp(16px, 4vw, 25px);
	color: var(--muted2)
}

.legend-right {
	text-align: right
}

.legend-count {
	font-size: clamp(20px, 5vw, 30px);
	font-weight: 600;
	color: var(--text);
	display: block
}

.legend-pct {
	font-size: clamp(14px, 3vw, 20px);
	color: var(--muted)
}

.stat-total {
	border-top: 1px solid var(--border);
	margin: 0 clamp(16px, 4vw, 24px);
	padding: 18px 0;
	display: flex;
	justify-content: space-between;
	align-items: center
}

.stat-total-lbl {
	font-size: clamp(14px, 3vw, 20px);
	color: var(--muted);
	text-transform: uppercase;
	letter-spacing: .07em
}

.stat-total-val {
	font-size: clamp(20px, 5vw, 30px);
	font-weight: 600;
	color: var(--text)
}

.openings-toggle {
	display: flex;
	gap: 8px;
	background: var(--surface2);
	border-radius: 14px;
	padding: 6px
}

.tog-btn {
	font-size: clamp(16px, 4vw, 25px);
	font-weight: 600;
	padding: clamp(6px, 1.5vw, 8px) clamp(12px, 3vw, 18px);
	border-radius: 10px;
	border: none;
	background: none;
	color: var(--muted);
	cursor: pointer;
	letter-spacing: .04em
}

.tog-btn.active {
	background: var(--ac-d);
	color: var(--ac)
}

.bar-list {
	padding: clamp(16px, 4vw, 20px) clamp(16px, 4vw, 24px) clamp(20px, 5vw, 28px);
	display: flex;
	flex-direction: column;
	gap: clamp(16px, 3.5vw, 20px)
}

.bar-item {
	display: flex;
	flex-direction: column;
	gap: 8px
}

.bar-meta {
	display: flex;
	justify-content: space-between;
	align-items: baseline
}

.bar-name {
	font-size: clamp(14px, 3vw, 20px);
	color: var(--muted2);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 70%
}

.bar-val {
	font-size: clamp(16px, 4vw, 25px);
	font-weight: 600;
	color: var(--ac);
	flex-shrink: 0
}

.bar-track {
	height: 12px;
	background: var(--surface3);
	border-radius: 6px;
	overflow: hidden
}

.bar-fill {
	height: 100%;
	border-radius: 6px;
	background: var(--ac);
	transition: width .5s cubic-bezier(.4, 0, .2, 1)
}

.section-label {
	font-size: clamp(14px, 3vw, 20px);
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--muted);
	padding: 0 2px
}

.spark-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: clamp(16px, 4vw, 20px)
}

.spark-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: clamp(18px, 4vw, 24px) clamp(14px, 3vw, 18px) clamp(14px, 3vw, 18px);
	cursor: pointer;
	position: relative;
	overflow: hidden
}

.spark-card::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 5px;
	background: var(--sc, #fff);
	opacity: .6
}

.sc-mode {
	font-size: clamp(14px, 3vw, 20px);
	font-weight: 600;
	color: var(--sc, #fff);
	text-transform: uppercase;
	letter-spacing: .08em;
	margin-bottom: 8px
}

.sc-rating {
	font-size: clamp(28px, 7vw, 46px);
	font-weight: 700;
	line-height: 1;
	color: var(--text)
}

.sc-delta {
	font-size: clamp(14px, 3vw, 20px);
	font-weight: 600;
	margin: 8px 0 16px
}

.sc-delta.pos {
	color: var(--green)
}

.sc-delta.neg {
	color: var(--red)
}

.sc-canvas {
	position: relative;
	height: clamp(100px, 20vw, 150px)
}

.rating-hero {
	background: var(--surface);
	border: 1px solid var(--border);
	border-left: 6px solid var(--ac);
	border-radius: var(--radius);
	padding: clamp(20px, 5vw, 32px) clamp(16px, 4vw, 24px)
}

.rating-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 24px;
	flex-wrap: wrap
}

.rating-val {
	font-size: clamp(44px, 12vw, 82px);
	font-weight: 700;
	line-height: 1;
	color: var(--ac)
}

.rating-delta {
	font-size: clamp(14px, 3vw, 20px);
	font-weight: 600;
	margin-top: 8px
}

.rating-delta.pos {
	color: var(--ac)
}

.rating-delta.neg {
	color: var(--red)
}

.rating-meta {
	font-size: clamp(12px, 2.5vw, 16px);
	color: var(--muted);
	margin-top: 8px
}

.filter-row {
	display: flex;
	gap: clamp(8px, 2vw, 14px);
	flex-wrap: wrap
}

.filter-chip {
	background: var(--surface2);
	border: 1px solid var(--border2);
	border-radius: 40px;
	padding: clamp(8px, 2vw, 12px) clamp(16px, 4vw, 24px);
	font-size: clamp(12px, 3vw, 16px);
	font-weight: 600;
	color: var(--muted2);
	cursor: pointer
}

.filter-chip.active {
	background: var(--ac-bg);
	border-color: var(--ac-d);
	color: var(--ac)
}

.chart-wrap {
	padding: clamp(12px, 3vw, 16px) clamp(16px, 4vw, 24px) clamp(20px, 5vw, 28px)
}

.chart-canvas-wrap {
	position: relative;
	height: clamp(200px, 40vw, 280px)
}

.hourly-wrap {
	padding: clamp(12px, 3vw, 16px) clamp(16px, 4vw, 24px) clamp(20px, 5vw, 28px)
}

.hourly-canvas-wrap {
	position: relative;
	height: clamp(160px, 35vw, 220px)
}

.hourly-legend {
	display: flex;
	gap: clamp(12px, 3vw, 28px);
	justify-content: center;
	margin-top: 20px;
	flex-wrap: wrap
}

.hourly-legend-item {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: clamp(11px, 2.5vw, 15px);
	color: var(--muted2)
}

.hourly-legend-dot {
	width: 14px;
	height: 14px;
	border-radius: 50%
}

.bottom-nav {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: rgba(13, 13, 13, .97);
	backdrop-filter: blur(20px);
	border-top: 1px solid var(--border);
	display: flex;
	align-items: center;
	justify-content: space-around;
	padding: 12px 0 max(12px, env(safe-area-inset-bottom));
	z-index: 100
}

.nav-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 8px 12px;
	cursor: pointer;
	transition: transform .1s
}

.nav-item:active {
	transform: scale(.92)
}

.nav-icon {
	font-size: clamp(44px, 10vw, 65px);
	color: var(--muted);
	transition: color .15s;
	display: flex;
	align-items: center;
	justify-content: center;
}

.nav-lbl {
	font-size: clamp(10px, 2.5vw, 13px);
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--muted)
}

.nav-item.active .nav-icon,
.nav-item.active .nav-lbl {
	color: var(--ac)
}

.sheet {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: none;
	flex-direction: column;
	justify-content: flex-end
}

.sheet.open {
	display: flex
}

.sheet-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .72)
}

.sheet-panel {
	position: relative;
	background: var(--surface);
	border-top: 1px solid var(--border2);
	border-radius: 32px 32px 0 0;
	padding: clamp(24px, 5vw, 32px) clamp(20px, 5vw, 32px) max(32px, env(safe-area-inset-bottom));
	max-height: 85vh;
	overflow-y: auto
}

.sheet-handle {
	width: 56px;
	height: 8px;
	background: var(--border2);
	border-radius: 4px;
	margin: 0 auto 28px
}

.sheet-title {
	font-size: clamp(20px, 5vw, 24px);
	font-weight: 600;
	color: var(--text);
	margin-bottom: 20px
}

.period-options {
	display: flex;
	flex-wrap: wrap;
	gap: 16px
}

.period-opt {
	background: var(--surface2);
	border: 1px solid var(--border2);
	border-radius: var(--radius-sm);
	padding: clamp(12px, 3vw, 14px) clamp(20px, 5vw, 28px);
	font-size: clamp(18px, 4.5vw, 25px);
	color: var(--muted2);
	cursor: pointer
}

.period-opt.sel {
	background: var(--ac-bg);
	border-color: var(--ac-d);
	color: var(--ac);
	font-weight: 600
}

.divider-row {
	display: flex;
	align-items: center;
	gap: 18px;
	margin: 28px 0 22px
}

.divider-line {
	flex: 1;
	height: 1px;
	background: var(--border2)
}

.divider-text {
	font-size: clamp(14px, 3vw, 20px);
	color: var(--muted);
	letter-spacing: .08em;
	text-transform: uppercase
}

.estudos-hero {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 20px
}

.streak-card {
	background: var(--surface);
	border: 1px solid var(--cyan-d);
	border-radius: var(--radius);
	padding: clamp(20px, 4vw, 32px);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	position: relative;
	overflow: hidden;
}

.streak-card::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse at 50% 100%, rgba(45, 212, 191, .12) 0%, transparent 70%);
	pointer-events: none;
}

.streak-lbl {
	font-size: clamp(14px, 3vw, 20px);
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--cyan);
	opacity: .7;
}

.streak-body {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
}

.streak-num {
	font-size: clamp(80px, 12vw, 140px);

	font-weight: 800;
	line-height: 1;
	color: var(--cyan);
	text-shadow: 0 0 40px rgba(45, 212, 191, 0.4), 0 0 80px rgba(45, 212, 191, 0.15);
}

.streak-fogo {
	width: clamp(48px, 10vw, 72px);

	height: auto;
	filter: drop-shadow(0 0 20px rgba(45, 212, 191, 0.5)) drop-shadow(0 0 40px rgba(45, 212, 191, 0.3));
	animation: firePulse 2s ease-in-out infinite alternate;
}

@keyframes firePulse {
	from {
		filter: drop-shadow(0 0 15px rgba(45, 212, 191, 0.4));
	}

	to {
		filter: drop-shadow(0 0 30px rgba(45, 212, 191, 0.8)) drop-shadow(0 0 60px rgba(45, 212, 191, 0.4));
	}
}

.streak-sub {
	font-size: clamp(11px, 2.5vw, 14px);
	color: var(--muted);
	margin-top: 8px
}

.sugestao-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: clamp(18px, 4vw, 24px);
	display: flex;
	flex-direction: column;
	gap: 18px
}

.sugestao-title {
	font-size: clamp(14px, 3vw, 20px);
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--muted)
}

.sugestao-body {
	display: flex;
	align-items: center;
	gap: clamp(16px, 4vw, 24px);
	flex-wrap: wrap
}

.sugestao-legend {
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex: 1;
	min-width: 150px
}

.sugestao-leg-item {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: clamp(16px, 4vw, 25px);
	color: var(--muted2)
}

.sugestao-leg-dot {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	flex-shrink: 0
}

.sugestao-leg-pct {
	font-weight: 600;
	color: var(--text);
	margin-left: auto
}

.tasks-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden
}

.tasks-card-header {
	padding: clamp(16px, 4vw, 24px);
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid var(--border);
	flex-wrap: wrap;
	gap: 12px
}

.tasks-progress-pill {
	background: var(--surface2);
	border: 1px solid var(--border2);
	border-radius: 32px;
	padding: 6px 16px;
	font-size: clamp(12px, 2.8vw, 16px);
	font-weight: 600;
	color: var(--muted2)
}

.tasks-progress-pill.done {
	background: var(--cyan-bg);
	border-color: var(--cyan-d);
	color: var(--cyan)
}

.tasks-date-lbl {
	font-size: clamp(14px, 3vw, 18px);
	color: var(--muted)
}

.tasks-list {
	display: flex;
	flex-direction: column
}

.task-item {
	display: flex;
	align-items: center;
	gap: clamp(12px, 3vw, 20px);
	padding: clamp(14px, 3.5vw, 20px) clamp(16px, 4vw, 24px);
	border-bottom: 1px solid var(--border);
	cursor: pointer
}

.task-item:active {
	background: var(--surface2)
}

.task-item.completed .task-name {
	color: var(--muted);
	text-decoration: line-through
}

.task-checkbox {
	width: clamp(26px, 6vw, 32px);
	height: clamp(26px, 6vw, 32px);
	border: 2px solid var(--border2);
	border-radius: 9px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	background: transparent
}

.task-item.completed .task-checkbox {
	background: var(--cyan-d);
	border-color: var(--cyan)
}

.task-checkbox-check {
	display: none;
	width: 18px;
	height: 16px
}

.task-checkbox-check::before {
	content: '';
	display: block;
	width: 18px;
	height: 16px;
	border-left: 2px solid var(--cyan);
	border-bottom: 2px solid var(--cyan);
	transform: rotate(-45deg) translate(1px, -1px)
}

.task-item.completed .task-checkbox-check {
	display: block
}

.task-name {
	font-size: clamp(16px, 4vw, 25px);
	color: var(--text);
	flex: 1;
	line-height: 1.3
}

.task-delete {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	color: var(--muted);
	font-size: clamp(20px, 5vw, 22px);
	cursor: pointer;
	flex-shrink: 0
}

.task-delete:active {
	background: var(--red-bg);
	color: var(--red)
}

.tasks-all-done {
	display: none;
	align-items: center;
	justify-content: center;
	gap: 14px;
	padding: clamp(16px, 4vw, 20px) 24px;
	background: var(--cyan-bg);
	border-top: 1px solid var(--cyan-d);
	font-size: clamp(12px, 2.8vw, 17px);
	font-weight: 600;
	color: var(--cyan)
}

.tasks-all-done.visible {
	display: flex
}

.task-add-row {
	display: flex;
	align-items: center;
	gap: clamp(12px, 3vw, 18px);
	padding: clamp(14px, 3.5vw, 20px) clamp(16px, 4vw, 24px);
	border-top: 1px solid var(--border);
	flex-wrap: wrap
}

.task-add-input {
	flex: 1;
	background: var(--surface2);
	border: 1px solid var(--border2);
	border-radius: var(--radius-sm);
	padding: clamp(12px, 3vw, 15px) clamp(14px, 3.5vw, 18px);
	color: var(--text);
	font-size: clamp(16px, 4vw, 22px);
	outline: none
}

.task-add-input::placeholder {
	color: var(--muted)
}

.task-add-input:focus {
	border-color: var(--cyan-d)
}

.task-add-btn {
	background: var(--cyan-d);
	border: 1px solid var(--cyan);
	border-radius: var(--radius-sm);
	color: var(--cyan);
	font-size: clamp(16px, 4vw, 20px);
	font-weight: 600;
	padding: clamp(12px, 3vw, 15px) clamp(18px, 4.5vw, 26px);
	cursor: pointer;
	white-space: nowrap;
	flex-shrink: 0;
	min-width: fit-content
}

.task-add-btn:active {
	opacity: .7
}

.cal-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: auto
}

.cal-header {
	padding: clamp(14px, 3vw, 20px) clamp(16px, 4vw, 24px);
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px
}

.cal-title {
	font-family: 'Cormorant Garamond', serif;
	font-style: italic;
	font-size: clamp(36px, 8vw, 50px);
	font-weight: 600;
	color: var(--cyan)
}

.cal-nav {
	display: flex;
	gap: 14px
}

.cal-nav-btn {
	background: var(--surface2);
	border: 1px solid var(--border2);
	border-radius: 14px;
	color: var(--muted2);
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 20px
}

.cal-nav-btn:active {
	background: var(--cyan-bg);
	border-color: var(--cyan-d);
	color: var(--cyan)
}

.cal-grid {
	padding: 0 clamp(12px, 3vw, 20px) 24px;
	overflow-x: auto
}

.cal-weekdays {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	margin-bottom: 16px;
	min-width: 280px
}

.cal-weekday {
	text-align: center;
	font-size: clamp(14px, 3.5vw, 22px);
	font-weight: 600;
	letter-spacing: .06em;
	color: var(--cyan);
	padding: 10px 0;
	text-transform: uppercase
}

.cal-days {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: clamp(6px, 2vw, 10px);
	min-width: 280px
}

.cal-day {
	text-align: center;
	padding: clamp(8px, 2.5vw, 16px) clamp(4px, 1.5vw, 6px);
	border-radius: 14px;
	font-size: clamp(16px, 4vw, 25px);
	color: var(--muted);
	border: 1px solid transparent
}

.cal-day.has-day {
	color: var(--text)
}

.cal-day.done {
	background: var(--cyan-bg);
	border-color: var(--cyan-d);
	color: var(--cyan);
	font-weight: 700
}

.cal-day.today {
	border-color: var(--border2);
	color: var(--text);
	font-weight: 600
}

.ab-table-wrapper {
	overflow-x: auto;
	margin: 0 clamp(12px, 3vw, 20px) 24px
}

.ab-table {
	width: 100%;
	border-collapse: collapse;
	min-width: 500px
}

.ab-table thead tr {
	background: var(--cyan-bg);
	border-bottom: 1px solid var(--cyan-d)
}

.ab-table th {
	padding: clamp(12px, 3vw, 18px) clamp(12px, 3vw, 18px);
	font-size: clamp(16px, 4vw, 25px);
	font-weight: 600;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: var(--cyan);
	text-align: left
}

.ab-table th:not(:first-child) {
	text-align: right
}

.ab-table td {
	padding: clamp(12px, 3vw, 16px) clamp(12px, 3vw, 18px);
	font-size: clamp(16px, 4vw, 25px);
	border-bottom: 1px solid var(--border);
	color: var(--text)
}

.ab-table td:not(:first-child) {
	text-align: right;
	font-weight: 600
}

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

.ab-table .ab-name {
	color: var(--muted2);
	font-size: clamp(18px, 4.5vw, 28px);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: clamp(120px, 30vw, 240px);
	display: block
}

.ab-wr-bad {
	color: var(--red)
}

.ab-wr-ok {
	color: var(--muted2)
}

.estudos-btns {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px
}

.estudos-btn {
	border: none;
	border-radius: var(--radius);
	padding: clamp(18px, 4vw, 24px) 16px;
	font-size: clamp(18px, 4.5vw, 25px);
	font-weight: 600;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px
}

.estudos-btn:active {
	opacity: .75
}

.estudos-btn-primary {
	background: var(--cyan-d);
	color: var(--cyan);
	border: 1px solid var(--cyan)
}

.estudos-btn-secondary {
	background: var(--surface2);
	color: var(--muted2);
	border: 1px solid var(--border2)
}

#analise-sheet {
	z-index: 400
}

#analise-panel {
	position: relative;
	background: var(--surface);
	border-top: 1px solid var(--border2);
	border-radius: 36px 36px 0 0;
	height: clamp(600px, 85vh, 90vh);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

#analise-header {
	padding: clamp(16px, 4vw, 24px) clamp(20px, 5vw, 28px) 0;
	flex-shrink: 0;
	border-bottom: 1px solid var(--border)
}

#analise-header-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px
}

#analise-header-title {
	font-size: clamp(18px, 5vw, 24px);
	font-weight: 600;
	color: var(--text)
}

#analise-close-btn {
	background: none;
	border: none;
	color: var(--muted);
	font-size: clamp(28px, 7vw, 38px);
	cursor: pointer;
	line-height: 1
}

#analise-body {
	flex: 1;
	overflow: hidden;
	display: flex;
	flex-direction: column
}

@media(min-width:768px) {
	#analise-body {
		flex-direction: row
	}

	#analise-left {
		border-right: 1px solid var(--border);
		overflow-y: auto;
		width: auto;
		flex-shrink: 0
	}

	#analise-right {
		flex: 1;
		overflow-y: auto
	}
}

#analise-left {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: clamp(20px, 5vw, 32px) clamp(16px, 4vw, 20px) clamp(20px, 5vw, 28px);
	gap: 20px
}

#analise-right {
	flex: 1;
	overflow-y: auto
}

.aboard {
	display: grid;
	grid-template-columns: repeat(8, 1fr);
	grid-template-rows: repeat(8, 1fr);
	width: min(calc(100vw - 48px), 560px);
	height: min(calc(100vw - 48px), 560px);
	max-width: 560px;
	max-height: 560px;
	border: 2px solid #374151;
	border-radius: 10px;
	overflow: hidden;
	flex-shrink: 0;
}

.asq {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: calc(min(calc(100vw - 48px), 560px) / 8 * 0.82);
	line-height: 1;
	user-select: none;
	overflow: hidden;
	width: 100%;
	height: 100%
}

.asq-l {
	background: #f0d9b5;
}

.asq-d {
	background: #b58863;
}

.apc-w {
	color: #fff8e7;
	text-shadow: -1.5px -1.5px 0 #3a2000, 1.5px -1.5px 0 #3a2000, -1.5px 1.5px 0 #3a2000, 1.5px 1.5px 0 #3a2000, -1.5px 0 0 #3a2000, 1.5px 0 0 #3a2000, 0 -1.5px 0 #3a2000, 0 1.5px 0 #3a2000
}

.apc-b {
	color: #100c04;
	text-shadow: -1px -1px 0 rgba(245, 225, 185, .7), 1px -1px 0 rgba(245, 225, 185, .7), -1px 1px 0 rgba(245, 225, 185, .7), 1px 1px 0 rgba(245, 225, 185, .7)
}

#analise-move-lbl {
	font-size: clamp(14px, 3vw, 18px);
	font-weight: 600;
	color: var(--blue);
	min-height: 1.4em;
	text-align: center
}

.analise-ctrl-row {
	display: flex;
	gap: clamp(12px, 3vw, 18px);
	align-items: center;
	flex-wrap: wrap;
	justify-content: center
}

.abtn-move {
	background: var(--cyan-d);
	color: var(--cyan);
	border: 1px solid var(--cyan);
	width: clamp(60px, 12vw, 80px);
	height: clamp(52px, 12vw, 68px);
	border-radius: 16px;
	cursor: pointer;
	font-size: clamp(1.6rem, 6vw, 2.4rem);
	display: flex;
	align-items: center;
	justify-content: center
}

.abtn-move:active {
	opacity: .7
}

.abtn-move:disabled {
	opacity: .25;
	cursor: not-allowed
}

.abtn-nav {
	background: var(--surface2);
	color: var(--text);
	border: 1px solid var(--border2);
	padding: clamp(10px, 2.5vw, 14px) clamp(20px, 5vw, 28px);
	border-radius: 16px;
	cursor: pointer;
	font-size: clamp(12px, 2.8vw, 16px);
	font-weight: 600
}

.abtn-nav:active {
	opacity: .7
}

.abtn-nav:disabled {
	opacity: .25;
	cursor: not-allowed
}

#analise-counter {
	font-size: clamp(13px, 3vw, 17px);
	color: var(--muted);
	min-width: 80px;
	text-align: center
}

#analise-list-wrap {
	padding: 20px 0
}

.analise-list-item {
	display: flex;
	align-items: center;
	gap: clamp(12px, 3vw, 18px);
	padding: clamp(14px, 3.5vw, 20px) clamp(20px, 5vw, 28px);
	border-bottom: 1px solid var(--border);
	cursor: pointer
}

.analise-list-item:active {
	background: var(--surface2)
}

.analise-list-item.active {
	background: var(--cyan-bg);
	border-left: 5px solid var(--cyan)
}

.analise-list-item.active .ali-name {
	color: var(--cyan)
}

.ali-idx {
	font-size: clamp(12px, 2.8vw, 16px);
	color: var(--muted);
	min-width: 40px;
	text-align: right
}

.ali-info {
	flex: 1;
	min-width: 0
}

.ali-name {
	font-size: clamp(14px, 3.5vw, 18px);
	font-weight: 600;
	color: var(--text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis
}

.ali-meta {
	font-size: clamp(12px, 2.5vw, 15px);
	color: var(--muted);
	margin-top: 4px
}

.ali-wr {
	font-size: clamp(14px, 3vw, 17px);
	font-weight: 600;
	flex-shrink: 0
}

.ali-wr.bad {
	color: var(--red)
}

.ali-wr.ok {
	color: var(--muted2)
}

#analise-empty,
#analise-loading {
	text-align: center;
	padding: clamp(40px, 10vw, 60px) 32px;
	font-size: clamp(14px, 3vw, 17px);
	color: var(--muted)
}

#analise-nome {
	font-size: clamp(14px, 3.5vw, 18px);
	font-weight: 600;
	color: var(--yellow);
	text-align: center;
	line-height: 1.3;
	max-width: min(calc(100vw - 32px), 440px)
}

@keyframes fadeUp {
	from {
		opacity: 0;
		transform: translateY(20px)
	}

	to {
		opacity: 1;
		transform: translateY(0)
	}
}

.a1 {
	animation: fadeUp .5s .05s ease both
}

.a2 {
	animation: fadeUp .5s .12s ease both
}

.a3 {
	animation: fadeUp .5s .19s ease both
}

.a4 {
	animation: fadeUp .5s .26s ease both
}

.a5 {
	animation: fadeUp .5s .33s ease both
}

.a6 {
	animation: fadeUp .5s .40s ease both
}

.nav-icon-img {
	height: clamp(28px, 8vw, 60px);
	width: auto;
	display: block;
	margin: 0 auto;
	object-fit: contain;
}

.ritmo-img {
	height: clamp(44px, 10vw, 70px);
	width: auto;
	object-fit: contain;
	filter: drop-shadow(0 0 9px rgba(74, 222, 128, .8));
}

@media (max-width: 560px) {
	.header {
		flex-wrap: wrap;
		gap: 12px;
	}

	.header-left {
		flex: 1;
	}

	.period-btn {
		padding: 8px 12px;
		font-size: 0.9rem;
	}

	.history-btn {
		padding: 8px 12px;
		font-size: 0.9rem;
	}

	.rating-val {
		font-size: 2.4rem;
	}

	.profile-name {
		font-size: 1.2rem;
	}

	.profile-sub {
		font-size: 0.85rem;
	}

	.legend-name,
	.legend-count,
	.legend-pct {
		font-size: 0.85rem;
	}

	.bar-name,
	.bar-val {
		font-size: 0.85rem;
	}

	.card-title {
		font-size: 0.75rem;
	}

	.estudos-hero {
		grid-template-columns: 1fr;
	}

	.estudos-btns {
		grid-template-columns: 1fr;
	}

	.tasks-card-header {
		flex-direction: column;
		align-items: flex-start;
	}


	.task-add-btn {
		padding: 10px 14px;
		font-size: 14px;
	}

	.task-add-input {
		font-size: 14px;
		padding: 10px 12px;
	}

}

@media (max-width: 380px) {
	.profile-card {
		flex-direction: column;
		text-align: center;
	}

	.avatar {
		margin-bottom: 8px;
	}

	.results-row {
		flex-direction: column;
		align-items: center;
	}

	.legend {
		width: 100%;
	}

	.nav-lbl {
		font-size: 7px;
	}
}

@media (min-width: 1024px) {


	body {
		display: flex;
		flex-direction: column;
		align-items: center;
		padding-left: 220px;
	}

	.screen {
		max-width: 1400px;
		width: 100%;
		margin: 0 auto;
		min-height: 100vh;
	}

	.scroll {
		padding: 20px 28px 40px !important;
	}


	.header {
		padding: 8px 28px;
	}

	.logo {
		font-size: 28px !important;
	}

	.ritmo-img {
		height: 36px !important;
	}

	.period-btn,
	.history-btn {
		padding: 5px 14px !important;
		font-size: 13px !important;
	}

	.menu-btn {
		width: 36px !important;
		height: 36px !important;
		font-size: 18px !important;
	}


	.card-title {
		font-size: 12px !important;
	}

	.profile-card {
		padding: 16px 20px !important;
	}

	.avatar {
		width: 68px;
		height: 68px;
		font-size: 32px;
	}

	.profile-name {
		font-size: 18px !important;
	}

	.profile-sub {
		font-size: 13px !important;
	}

	.profile-badge {
		font-size: 13px !important;
		padding: 3px 10px;
	}

	.donut-wrap {
		width: 130px;
		height: 130px;
	}

	.donut-pct {
		font-size: 22px !important;
	}

	.donut-lbl {
		font-size: 11px !important;
	}

	.legend-name,
	.legend-count,
	.legend-pct {
		font-size: 13px !important;
	}

	.stat-total-lbl {
		font-size: 11px !important;
	}

	.stat-total-val {
		font-size: 16px !important;
	}

	.bar-name,
	.bar-val {
		font-size: 13px !important;
	}

	.bar-track {
		height: 8px;
	}

	.sc-mode {
		font-size: 12px !important;
	}

	.sc-rating {
		font-size: 26px !important;
	}

	.sc-delta {
		font-size: 12px !important;
	}

	.rating-val {
		font-size: 40px !important;
	}

	.rating-delta {
		font-size: 13px !important;
	}

	.rating-meta {
		font-size: 11px !important;
	}

	.filter-chip {
		padding: 5px 13px !important;
		font-size: 12px !important;
	}

	.chart-canvas-wrap {
		height: 200px !important;
	}

	.hourly-canvas-wrap {
		height: 200px !important;
	}

	.section-label {
		font-size: 12px !important;
	}

	.tog-btn {
		font-size: 12px !important;
	}


	#s-dashboard .scroll {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 16px;
	}

	#s-dashboard .profile-card {
		grid-column: 1;
		grid-row: 1;
	}

	#s-dashboard .card:has(#d-bars) {
		grid-column: 1;
		grid-row: 2/4;
	}

	#s-dashboard .card:has(#d-donut) {
		grid-column: 2;
		grid-row: 1;
	}

	#s-dashboard .section-label {
		grid-column: 2;
		grid-row: 2;
		margin-bottom: 0;
		align-self: end;
	}

	#s-dashboard .spark-grid {
		grid-column: 2;
		grid-row: 3;
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
		align-content: start;
	}


	#s-rapidas .scroll {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 16px;
	}

	#s-rapidas .rating-hero {
		grid-column: 1 / -1;
	}

	#s-rapidas .card:has(#r-evo) {
		grid-column: 1;
	}

	#s-rapidas .card:has(#r-donut) {
		grid-column: 2;
	}

	#s-rapidas .card:has(#r-hourly) {
		grid-column: 1;
	}

	#s-rapidas .card:has(#r-bars) {
		grid-column: 2;
	}


	#s-blitz .scroll {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 16px;
	}

	#s-blitz .rating-hero {
		grid-column: 1 / -1;
	}

	#s-blitz .card:has(#bl-evo) {
		grid-column: 1;
	}

	#s-blitz .card:has(#bl-donut) {
		grid-column: 2;
	}

	#s-blitz .card:has(#bl-hourly) {
		grid-column: 1;
	}

	#s-blitz .card:has(#bl-bars) {
		grid-column: 2;
	}


	#s-bullet .scroll {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 16px;
	}

	#s-bullet .rating-hero {
		grid-column: 1 / -1;
	}

	#s-bullet .card:has(#bu-evo) {
		grid-column: 1;
	}

	#s-bullet .card:has(#bu-donut) {
		grid-column: 2;
	}

	#s-bullet .card:has(#bu-hourly) {
		grid-column: 1;
	}

	#s-bullet .card:has(#bu-bars) {
		grid-column: 2;
	}

	#s-rapidas .card:has(#r-hourly),
	#s-blitz .card:has(#bl-hourly),
	#s-bullet .card:has(#bu-hourly) {
		display: flex;
		flex-direction: column;
	}

	.hourly-wrap {
		flex: 1;
		display: flex;
		flex-direction: column;
		justify-content: center;
	}


	#s-estudos .scroll {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 16px;
	}

	#s-estudos .estudos-hero {
		grid-column: 1 / -1;
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 16px;
	}

	#s-estudos .tasks-card {
		grid-column: 1;
	}

	#s-estudos .cal-card {
		grid-column: 2;
	}

	#s-estudos .card:has(.ab-table) {
		grid-column: 1 / -1;
	}

	#s-estudos .estudos-btns {
		grid-column: 1 / -1;
	}


	.streak-num {
		font-size: 56px !important;
	}

	.streak-lbl {
		font-size: 12px !important;
	}

	.streak-fire {
		font-size: 22px !important;
	}

	.streak-sub {
		font-size: 11px !important;
	}

	.streak-card {
		width: clamp(220px, 22vw, 300px);
		max-width: 300px;
		margin: 0 auto;
		padding: 20px 12px !important;
	}

	.sugestao-title {
		font-size: 12px !important;
	}

	.sugestao-leg-item {
		font-size: 13px !important;
	}

	.task-name {
		font-size: 14px !important;
	}

	.task-add-input {
		font-size: 14px !important;
		padding: 10px 12px !important;
	}

	.task-add-btn {
		font-size: 13px !important;
		padding: 10px 16px !important;
	}

	.task-item {
		padding: 11px 16px !important;
	}

	.tasks-card-header {
		padding: 14px 16px !important;
	}

	.cal-title {
		font-size: 26px !important;
	}

	.cal-weekday {
		font-size: 12px !important;
	}

	.cal-day {
		font-size: 14px !important;
		padding: 8px 4px !important;
	}

	.ab-table th {
		font-size: 13px !important;
		padding: 10px 14px !important;
	}

	.ab-table td {
		font-size: 13px !important;
		padding: 9px 14px !important;
	}

	.ab-name {
		font-size: 14px !important;
	}

	.estudos-btn {
		font-size: 14px !important;
		padding: 14px 12px !important;
	}

	.estudos-btn-primary {
		font-size: 18px !important;
		padding: 18px 32px !important;
	}

	.lc-title {
		font-size: 20px !important;
	}

	.lc-desc {
		font-size: 13px !important;
	}

	.lc-icon {
		font-size: 26px !important;
	}

	.lc-tag {
		font-size: 10px !important;
	}

	.lc-body {
		padding: 16px 16px 16px 22px !important;
		gap: 14px !important;
	}

	.treino-section-lbl {
		font-size: 10px !important;
	}


	.bottom-nav {
		position: fixed !important;
		top: 0 !important;
		left: 0 !important;
		bottom: 0 !important;
		right: auto !important;
		width: 220px !important;
		height: 100vh !important;
		border-top: none !important;
		border-right: 1px solid var(--border) !important;
		border-radius: 0 !important;
		flex-direction: column !important;
		justify-content: flex-start !important;
		align-items: stretch !important;
		padding: 60px 0 20px !important;
		transform: none !important;
		max-width: none !important;
		gap: 2px;
	}

	.bottom-nav::before {
		display: none !important;
	}

	.bottom-nav::after {
		content: 'Lumière';
		font-family: 'Cormorant Garamond', serif;
		font-style: italic;
		font-size: 22px;
		font-weight: 600;
		color: var(--ac);
		text-shadow: 0 0 24px rgba(45, 212, 191, 0.35);
		display: block !important;
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		padding: 16px 20px 14px;
		text-align: center;
		letter-spacing: 0.01em;
		pointer-events: none;
	}


	.nav-item {
		flex-direction: row !important;
		justify-content: flex-start !important;
		width: 100% !important;
		padding: 11px 20px !important;
		gap: 12px !important;
		border-radius: 0 !important;
		border-left: 3px solid transparent;
		margin-top: 0 !important;
		transition: background 0.15s, border-color 0.15s;
	}


	.nav-item:active {
		transform: none !important;
	}


	.nav-item.active {
		background: var(--ac-bg);
		border-left-color: var(--ac) !important;
	}

	.nav-item.active::after {
		display: none !important;
	}


	.nav-icon {
		font-size: 18px !important;
		width: 26px !important;
		height: 26px !important;
		flex-shrink: 0;
	}

	.nav-icon-img {
		height: 24px !important;
		width: auto !important;
		margin: 0 !important;
	}


	.nav-lbl {
		font-size: 13px !important;
		letter-spacing: 0.03em;
		white-space: nowrap;
		text-transform: none;
		font-weight: 500;
	}

	.nav-item.active .nav-lbl {
		font-weight: 600;
	}
}

@media (min-width: 1600px) {
	.screen {
		max-width: 1600px;
	}

	.scroll {
		padding-left: 40px !important;
		padding-right: 40px !important;
	}

	.bottom-nav {
		width: 240px !important;
	}

	body {
		padding-left: 240px;
	}

	.hourly-canvas-wrap {
		height: 240px !important;
	}
}

::-webkit-scrollbar {
	width: 5px;
	height: 5px;
}

::-webkit-scrollbar-track {
	background: transparent;
}

::-webkit-scrollbar-thumb {
	background: var(--border2);
	border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
	background: var(--muted);
}

html,
body {
	background:
		radial-gradient(ellipse 70% 50% at 10% 20%, rgba(45, 212, 191, 0.04) 0%, transparent 100%),
		radial-gradient(ellipse 55% 40% at 90% 80%, rgba(96, 165, 250, 0.03) 0%, transparent 100%),
		var(--bg);
}

.header {
	position: relative;
}

.header::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent 0%, var(--ac) 35%, var(--ac) 65%, transparent 100%);
	opacity: 0.2;
	pointer-events: none;
}

.logo {
	text-shadow: 0 0 36px rgba(45, 212, 191, 0.3);
}

.period-dot {
	box-shadow: 0 0 8px var(--ac), 0 0 16px rgba(45, 212, 191, 0.2);
}

.history-btn {
	transition: background 0.18s ease, box-shadow 0.18s ease;
}

.history-btn:hover {
	background: #122d56;
	box-shadow: 0 0 18px rgba(96, 165, 250, 0.18);
}

.card {
	transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(45, 212, 191, 0.08);
	border-color: var(--border2);
}

.profile-card {
	position: relative;
	overflow: hidden;
}

.profile-card::before {
	content: '';
	position: absolute;
	top: -40px;
	left: -40px;
	width: 240px;
	height: 240px;
	background: radial-gradient(circle, rgba(45, 212, 191, 0.08) 0%, transparent 65%);
	pointer-events: none;
}

.avatar {
	box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--cyan-d), 0 0 20px rgba(45, 212, 191, 0.15);
	transition: box-shadow 0.22s ease;
}

.avatar:hover {
	box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--cyan), 0 0 30px rgba(45, 212, 191, 0.28);
}

.rating-hero {
	position: relative;
	overflow: hidden;
	box-shadow: inset 2px 0 20px rgba(45, 212, 191, 0.06), 0 4px 24px rgba(0, 0, 0, 0.28);
}

.rating-hero::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(115deg, rgba(45, 212, 191, 0.05) 0%, transparent 40%);
	pointer-events: none;
}

@keyframes barShimmer {
	0% {
		transform: translateX(-200%);
	}

	100% {
		transform: translateX(300%);
	}
}

.bar-fill {
	position: relative;
	overflow: hidden;
	background: linear-gradient(90deg, var(--ac) 0%, color-mix(in srgb, var(--ac) 75%, #ffffff) 100%) !important;
}

.bar-fill::after {
	content: '';
	position: absolute;
	inset: 0;
	width: 35%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
	transform: translateX(-200%);
	animation: barShimmer 2.8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.spark-card {
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.spark-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 12%;
	right: 12%;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--sc, #fff), transparent);
	opacity: 0.35;
}

.spark-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 36px rgba(0, 0, 0, 0.52);
}

.section-label {
	display: flex;
	align-items: center;
	gap: 10px;
}

.section-label::before {
	content: '';
	display: inline-block;
	width: 20px;
	height: 2px;
	background: var(--ac);
	border-radius: 1px;
	opacity: 0.7;
	flex-shrink: 0;
}

.filter-chip {
	transition: all 0.15s ease;
}

.filter-chip:hover:not(.active) {
	border-color: var(--ac-d);
	color: var(--text);
}

.tog-btn {
	transition: all 0.18s ease;
}

.nav-item {
	position: relative;
}

.nav-item.active::after {
	content: '';
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 28px;
	height: 2px;
	background: var(--ac);
	border-radius: 0 0 3px 3px;
	box-shadow: 0 0 10px var(--ac), 0 0 20px rgba(45, 212, 191, 0.3);
}

.bottom-nav {
	position: relative;
}

.bottom-nav::before {
	content: '';
	position: absolute;
	top: -24px;
	left: 0;
	right: 0;
	height: 24px;
	background: linear-gradient(to bottom, transparent, rgba(13, 13, 13, 0.6));
	pointer-events: none;
}

.streak-num {
	text-shadow: 0 0 40px rgba(45, 212, 191, 0.4), 0 0 80px rgba(45, 212, 191, 0.15);
}

.cal-day.done {
	box-shadow: 0 0 10px rgba(45, 212, 191, 0.2), inset 0 0 8px rgba(45, 212, 191, 0.06);
}

.card-head {
	border-bottom: 1px solid rgba(40, 40, 40, 0.8);
}

.profile-badge {
	transition: border-color 0.2s ease;
}

.profile-badge:hover {
	border-color: var(--cyan-d);
}

.analise-list-item.active {
	box-shadow: inset 3px 0 12px rgba(45, 212, 191, 0.08);
}

.treino-section-lbl {
	font-size: clamp(10px, 2.2vw, 12px);
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--muted);
	padding: 0 2px;
}

.lichess-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	position: relative;
	cursor: pointer;
	transition: border-color .2s, transform .18s cubic-bezier(.22, 1, .36, 1), box-shadow .2s;
	text-decoration: none;
	display: block;
}

.lichess-card:hover {
	border-color: var(--lc-accent, var(--cyan));
	transform: translateY(-3px);
	box-shadow: 0 12px 40px rgba(0, 0, 0, .5), 0 0 0 1px var(--lc-accent, var(--cyan)) inset;
}

.lichess-card:active {
	transform: scale(.98);
}

.lichess-card::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 4px;
	background: var(--lc-accent, var(--cyan));
	opacity: .85;
}

.lc-body {
	display: flex;
	align-items: center;
	gap: clamp(16px, 4vw, 24px);
	padding: clamp(20px, 5vw, 28px) clamp(20px, 5vw, 28px) clamp(20px, 5vw, 28px) clamp(28px, 6vw, 36px);
}

.lc-icon {
	font-size: clamp(38px, 9vw, 54px);
	flex-shrink: 0;
	line-height: 1;
}

.lc-info {
	flex: 1;
	min-width: 0;
}

.lc-tag {
	font-size: clamp(10px, 2vw, 11px);
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--lc-accent, var(--cyan));
	opacity: .7;
	margin-bottom: 5px;
}

.lc-title {
	font-family: 'Cormorant Garamond', serif;
	font-style: italic;
	font-size: clamp(24px, 6vw, 36px);
	font-weight: 600;
	color: var(--text);
	line-height: 1.1;
	margin-bottom: 7px;
}

.lc-desc {
	font-size: clamp(13px, 3vw, 16px);
	color: var(--muted);
	line-height: 1.55;
}

.lc-arrow {
	flex-shrink: 0;
	width: clamp(32px, 7vw, 42px);
	height: clamp(32px, 7vw, 42px);
	border-radius: 50%;
	border: 1px solid var(--border2);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--muted);
	font-size: clamp(16px, 4vw, 20px);
	transition: border-color .2s, color .2s;
}

.lichess-card:hover .lc-arrow {
	border-color: var(--lc-accent, var(--cyan));
	color: var(--lc-accent, var(--cyan));
}

.estrategia-teaser {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	position: relative;
}

.estrategia-teaser::after {
	content: '';
	position: absolute;
	inset: 0;
	background: repeating-linear-gradient(-45deg,
			transparent,
			transparent 8px,
			rgba(255, 255, 255, .015) 8px,
			rgba(255, 255, 255, .015) 9px);
	pointer-events: none;
}

.est-teaser-body {
	padding: clamp(24px, 5vw, 32px);
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.est-teaser-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.est-teaser-badge {
	font-size: clamp(9px, 2vw, 11px);
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	background: rgba(250, 204, 21, .1);
	color: var(--yellow);
	border: 1px solid rgba(250, 204, 21, .2);
	border-radius: 8px;
	padding: 4px 10px;
	flex-shrink: 0;
}

.est-teaser-title {
	font-family: 'Cormorant Garamond', serif;
	font-style: italic;
	font-size: clamp(22px, 5.5vw, 32px);
	font-weight: 600;
	color: var(--text);
	line-height: 1.15;
}

.est-teaser-desc {
	font-size: clamp(13px, 3vw, 16px);
	color: var(--muted);
	line-height: 1.6;
}

.est-teaser-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 4px;
}

.est-chip {
	font-size: clamp(11px, 2.5vw, 13px);
	background: var(--surface2);
	border: 1px solid var(--border2);
	border-radius: 8px;
	padding: 5px 12px;
	color: var(--muted2);
}


.menu-panel {
	position: absolute !important;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(85vw, 320px);
	max-height: 100vh;
	border-radius: 32px 0 0 32px !important;
	border-top: none !important;
	border-right: none !important;
	padding: 24px 20px 32px !important;
	transform: translateX(100%);
	transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.4, 1);
}

#menu-sheet.open .menu-panel {
	transform: translateX(0);
}

.menu-panel .sheet-handle {
	margin-bottom: 20px;
}

.menu-item {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px 8px;
	font-size: 1.2rem;
	font-weight: 500;
	color: var(--text);
	border-bottom: 1px solid var(--border);
	cursor: pointer;
	transition: background 0.15s;
}

.menu-item:hover {
	background: var(--surface2);
}

.menu-item:last-of-type {
	border-bottom: none;
}

.menu-icon {
	font-size: 1.8rem;
	width: 32px;
	text-align: center;
}


.slider-container {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 20px 0;
}

.slider-label {
	display: flex;
	justify-content: space-between;
	font-size: 1rem;
	color: var(--muted2);
}

.slider-value {
	color: var(--ac);
	font-weight: 700;
}

input[type=range] {
	-webkit-appearance: none;
	width: 100%;
	background: transparent;
}

input[type=range]::-webkit-slider-runnable-track {
	height: 6px;
	background: var(--surface3);
	border-radius: 3px;
}

input[type=range]::-webkit-slider-thumb {
	-webkit-appearance: none;
	height: 22px;
	width: 22px;
	border-radius: 50%;
	background: var(--ac);
	margin-top: -8px;
	box-shadow: 0 0 8px var(--ac);
	border: 2px solid var(--surface);
	cursor: pointer;
}

input[type=range]:focus {
	outline: none;
}


.cor-selector {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 24px;
}

.cor-chip {
	background: var(--surface2);
	border: 1px solid var(--border2);
	border-radius: 40px;
	padding: 10px 20px;
	font-size: 1rem;
	font-weight: 600;
	color: var(--muted2);
	cursor: pointer;
	transition: all 0.15s;
}

.cor-chip.active {
	background: var(--ac-bg);
	border-color: var(--ac-d);
	color: var(--ac);
}


.btn-iniciar {
	width: 100%;
	background: var(--ac-d);
	border: 1px solid var(--ac);
	border-radius: var(--radius-sm);
	color: var(--ac);
	font-size: 1.3rem;
	font-weight: 700;
	padding: 18px;
	cursor: pointer;
	margin-top: 10px;
	transition: opacity 0.2s;
}

.btn-iniciar:active {
	opacity: 0.7;
}


.estudos-hero.a6 {
	grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
}


.lc-icon-img {
	width: 2.5em;
	height: 2.5em;
	object-fit: contain;
	display: block;
}

#lc-splash {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #0d0d0d;
	background-image:
		radial-gradient(ellipse 60% 60% at 50% 50%, rgba(45, 212, 191, 0.08) 0%, transparent 70%);
	transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

#lc-splash.fade-out {
	opacity: 0;
	pointer-events: none;
}

#splash-canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

#splash-logo-wrap {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 22px;
	animation: splashLogoIn 0.8s 0.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes splashLogoIn {
	from {
		opacity: 0;
		transform: scale(0.78);
		filter: blur(8px);
	}

	to {
		opacity: 1;
		transform: scale(1);
		filter: blur(0);
	}
}

#splash-logo-img {
	width: clamp(140px, 28vw, 210px);
	height: clamp(140px, 28vw, 210px);
	object-fit: contain;
	animation: splashGlow 2.0s 0.9s ease-in-out infinite alternate;
	filter: drop-shadow(0 0 28px rgba(45, 212, 191, 0.55)) drop-shadow(0 0 60px rgba(45, 212, 191, 0.2));
}

@keyframes splashGlow {
	from {
		filter: drop-shadow(0 0 22px rgba(45, 212, 191, 0.50)) drop-shadow(0 0 50px rgba(45, 212, 191, 0.18));
	}

	to {
		filter: drop-shadow(0 0 42px rgba(45, 212, 191, 0.80)) drop-shadow(0 0 90px rgba(45, 212, 191, 0.32));
	}
}

#splash-name {
	font-family: 'Cormorant Garamond', serif;
	font-style: italic;
	font-size: clamp(32px, 6vw, 52px);
	font-weight: 600;
	color: #2dd4bf;
	text-shadow: 0 0 40px rgba(45, 212, 191, 0.5), 0 0 80px rgba(45, 212, 191, 0.18);
	letter-spacing: 0.01em;
	animation: splashNameIn 0.8s 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes splashNameIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

#splash-bar-wrap {
	width: clamp(100px, 18vw, 160px);
	height: 2px;
	background: rgba(45, 212, 191, 0.12);
	border-radius: 1px;
	overflow: hidden;
	animation: splashNameIn 0.7s 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

#splash-bar {
	height: 100%;
	width: 0%;
	background: linear-gradient(90deg, #0e6b62, #2dd4bf, #5eead4);
	border-radius: 1px;
	box-shadow: 0 0 8px rgba(45, 212, 191, 0.6);
	transition: width 0.08s linear;
}

.streak-card,
.tasks-card,
.cal-card,
.sugestao-card {
	transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.streak-card:hover,
.tasks-card:hover,
.cal-card:hover,
.sugestao-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(45, 212, 191, 0.08);
	border-color: var(--cyan);
}


[data-theme="light"] {

	--bg: #f7f5f0;
	--surface: #ffffff;
	--surface2: #f0ede8;
	--surface3: #e8e4dc;
	--border: #e0dbd0;
	--border2: #cec8bc;
	--text: #1a1814;
	--muted: #8a8278;
	--muted2: #5a5550;


	--cyan-bg: #e6faf8;
	--green-bg: #edfdf4;
	--yellow-bg: #fefce8;
	--red-bg: #fef2f2;
	--brown-bg: #fdf6ee;

	--cyan-d: #0e9488;
	--green-d: #16a34a;
	--yellow-d: #ca8a04;
	--red-d: #dc2626;
	--brown-d: #92400e;
}

[data-theme="light"] .header {
	background: rgba(247, 245, 240, 0.96);
}

[data-theme="light"] .bottom-nav {

	background: rgba(255, 255, 255, 1);
	backdrop-filter: blur(20px);
	border-top: 1px solid var(--border);
}

[data-theme="light"] .history-btn {

	background: #f7f5f0;
	border: 1px solid #cec8bc;

}

[data-theme="light"] .card-head {

	border-bottom: 1px solid #cec8bc;
}

[data-theme="light"] .ab-table thead tr {
	border-bottom: 1px solid #cec8bc;
}


[data-theme="light"] #lc-splash {
	background: #f7f5f0;
}

[data-theme="light"] #splash-logo-img {
	transform: scale(2.0);
	transform-origin: center center;
}