/* assets/css/core/base.css */
:root {
	--wtapp-bg: #f5f7fb;
	--wtapp-bg-accent: #e8ecf7;
	--wtapp-surface: rgba(255, 255, 255, 0.92);
	--wtapp-surface-strong: #ffffff;
	--wtapp-ink: #111827;
	--wtapp-muted: #5f687c;
	--wtapp-line: rgba(40, 52, 89, 0.1);
	--wtapp-brand: #3666f4;
	--wtapp-brand-deep: #2148bc;
	--wtapp-shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
	--wtapp-radius: 28px;
	--wtapp-radius-sm: 18px;
	--wtapp-width: 1240px;
	--wtapp-font-display: "Palatino Linotype", "Book Antiqua", Palatino, serif;
	--wtapp-font-ui: "Trebuchet MS", "Gill Sans", sans-serif;
	--wtapp-safe-top: env(safe-area-inset-top, 0px);
	--wtapp-safe-bottom: env(safe-area-inset-bottom, 0px);
}

body.wtapp-shell-body {
	background:
		radial-gradient(circle at top left, rgba(54, 102, 244, 0.12), transparent 28%),
		radial-gradient(circle at right 20%, rgba(33, 72, 188, 0.08), transparent 22%),
		linear-gradient(180deg, #f5f7fb 0%, #eef2f9 100%);
	color: var(--wtapp-ink);
	font-family: var(--wtapp-font-ui);
	overflow-x: hidden;
}

.wtapp-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
}

.wtapp-skip-link:focus {
	left: 20px;
	top: 20px;
	z-index: 120;
	background: var(--wtapp-brand-deep);
	color: #fff;
	padding: 10px 14px;
	border-radius: 999px;
}

.wtapp-site-shell {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.wtapp-topbar {
	position: sticky;
	top: 0;
	z-index: 40;
	backdrop-filter: blur(20px);
	background: rgba(246, 241, 231, 0.86);
	border-bottom: 1px solid var(--wtapp-line);
}

.wtapp-topbar__inner,
.wtapp-layout,
.wtapp-footer__inner {
	width: min(calc(100% - 32px), var(--wtapp-width));
	margin: 0 auto;
}

.wtapp-topbar__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(280px, 360px);
	gap: 20px;
	align-items: center;
	padding: 18px 0;
}

.wtapp-brand__mark {
	display: inline-flex;
	flex-direction: column;
	gap: 2px;
	text-decoration: none;
}

.wtapp-brand__copy {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.wtapp-brand__icon,
.wtapp-mobile-brand__icon {
	display: none;
}

.wtapp-brand__title,
.wtapp-brand__subtitle {
	display: block;
}

.wtapp-brand__title {
	font-family: var(--wtapp-font-display);
	font-size: 1.55rem;
	font-weight: 700;
	color: var(--wtapp-brand-deep);
}

.wtapp-brand__subtitle {
	font-size: 0.78rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wtapp-muted);
}

.wtapp-nav {
	display: inline-flex;
	gap: 12px;
	padding: 8px;
	border-radius: 999px;
	background: rgba(255, 250, 242, 0.85);
	border: 1px solid var(--wtapp-line);
	box-shadow: 0 10px 25px rgba(65, 41, 18, 0.05);
}

.wtapp-nav__link {
	padding: 10px 14px;
	border-radius: 999px;
	text-decoration: none;
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--wtapp-muted);
	transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.wtapp-nav__link:hover,
.wtapp-nav__link:focus-visible {
	color: var(--wtapp-brand-deep);
	background: rgba(54, 102, 244, 0.1);
	transform: translateY(-1px);
}

.wtapp-nav__link.is-active {
	background: linear-gradient(135deg, var(--wtapp-brand), var(--wtapp-brand-deep));
	color: #fff;
}

.wtapp-tools {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
}

.wtapp-search {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	border-radius: 999px;
	background: rgba(255, 250, 242, 0.9);
	border: 1px solid var(--wtapp-line);
}

.wtapp-search__input {
	border: 0;
	background: transparent;
	min-width: 0;
	width: 100%;
	font-size: 0.95rem;
	color: var(--wtapp-ink);
}

.wtapp-search__input:focus {
	outline: none;
}

.wtapp-search:focus-within {
	border-color: rgba(33, 72, 188, 0.4);
	box-shadow: 0 0 0 3px rgba(54, 102, 244, 0.12);
}

.wtapp-search__submit,
.wtapp-auth-link,
.wtapp-button {
	border: 0;
	border-radius: 999px;
	padding: 10px 16px;
	font-weight: 700;
	text-decoration: none;
	font-family: inherit;
	cursor: pointer;
}

.wtapp-search__submit,
.wtapp-button {
	background: linear-gradient(135deg, var(--wtapp-brand), var(--wtapp-brand-deep));
	color: #fff;
}

.wtapp-auth-link,
.wtapp-button--secondary {
	background: rgba(54, 102, 244, 0.08);
	color: var(--wtapp-brand-deep);
}

.wtapp-button--ghost {
	background: transparent;
	color: var(--wtapp-brand-deep);
	border: 1px solid rgba(33, 72, 188, 0.24);
}

.wtapp-search__submit:focus-visible,
.wtapp-auth-link:focus-visible,
.wtapp-button:focus-visible,
.wtapp-theme-toggle:focus-visible,
.wtapp-header-action:focus-visible,
.wtapp-header-account:focus-visible,
.wtapp-mobile-header-action:focus-visible,
.wtapp-mobile-tab:focus-visible,
.wtapp-drawer__close:focus-visible,
.wtapp-drawer__links a:focus-visible,
.wtapp-footer__links a:focus-visible,
.wtapp-modal__close:focus-visible,
.wtapp-badge-link:focus-visible {
	outline: 3px solid rgba(54, 102, 244, 0.34);
	outline-offset: 3px;
}

.wtapp-site-content {
	flex: 1;
	padding: 28px 0 40px;
}

.wtapp-mobile-topbar,
.wtapp-mobile-tabs,
.wtapp-footer__mobile {
	display: none;
}

.wtapp-mobile-support.is-hidden {
	display: none;
}

.wtapp-drawer-root.is-hidden {
	display: none;
}

.wtapp-main-shell {
	outline: none;
}

.wtapp-screen {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.wtapp-hero,
.wtapp-surface {
	background: transparent;
	border: 1px solid var(--wtapp-line);
	box-shadow: var(--wtapp-shadow);
}

.wtapp-hero {
	border-radius: var(--wtapp-radius);
	padding: 20px;
	position: relative;
	overflow: hidden;
}

.wtapp-hero::after {
	content: "";
	position: absolute;
	inset: auto -8% -42% auto;
	width: 320px;
	height: 320px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(54, 102, 244, 0.16) 0%, transparent 68%);
	pointer-events: none;
}

.wtapp-hero__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 24px;
	align-items: start;
	position: relative;
	z-index: 1;
}

.wtapp-hero__copy {
	min-width: 0;
}

.wtapp-hero__eyebrow,
.wtapp-footer__eyebrow {
	margin: 0 0 10px;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wtapp-brand);
}

.wtapp-hero__title {
	margin: 0;
	font-family: var(--wtapp-font-display);
	font-size: clamp(2rem, 4vw, 3.4rem);
	line-height: 1.05;
	letter-spacing: -0.03em;
}

.wtapp-hero__summary {
	max-width: 72ch;
	margin: 14px 0 0;
	font-size: 1rem;
	line-height: 1.75;
	color: var(--wtapp-muted);
}

.wtapp-hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 22px 0 0;
}

.wtapp-hero__meta-item {
	display: inline-flex;
	align-items: baseline;
	gap: 8px;
	padding: 10px 12px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.56);
}

.wtapp-hero__meta-item dt {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wtapp-muted);
}

.wtapp-hero__meta-item dd {
	margin: 0;
	font-weight: 700;
}

.wtapp-hero__meta-link {
	color: inherit;
	text-decoration: none;
}

.wtapp-hero__meta-link:hover,
.wtapp-hero__meta-link:focus-visible {
	text-decoration: underline;
	text-underline-offset: 0.16em;
}

.wtapp-hero__media {
	min-width: 0;
}

.wtapp-hero__media img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
}

.wtapp-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 24px;
}

.wtapp-surface {
	border-radius: var(--wtapp-radius);
	padding: 28px;
}

.wtapp-surface--prose {
	padding: 20px;
}

.wtapp-surface--inset {
	padding: 18px 20px;
	border-radius: 20px;
	box-shadow: none;
	background: var(--wtapp-surface-strong);
}

.wtapp-prose,
.wtapp-prose p,
.wtapp-prose li {
	font-size: 1rem;
	line-height: 1.9;
	color: var(--wtapp-ink);
}

.wtapp-prose h1,
.wtapp-prose h2,
.wtapp-prose h3,
.wtapp-prose h4 {
	font-family: var(--wtapp-font-display);
	color: var(--wtapp-brand-deep);
}

.wtapp-prose a {
	color: var(--wtapp-brand-deep);
}

.wtapp-empty-state {
	margin: 0;
	color: var(--wtapp-muted);
}

.wtapp-novel-layout {
	display: grid;
	grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
	gap: 24px;
	align-items: start;
}

.wtapp-novel-cover__frame {
	background: linear-gradient(180deg, #f5e9d7, #efddc0);
	padding: 14px;
	border-radius: 24px;
}

.wtapp-novel-cover__frame .novel-image {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 16px;
}

.wtapp-meta-card-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin-top: 18px;
}

.wtapp-meta-card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 16px;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.6);
	border: 1px solid rgba(33, 72, 188, 0.12);
}

.wtapp-meta-card strong {
	color: var(--wtapp-brand-deep);
}

.wtapp-article__media {
	margin-bottom: 24px;
}

.wtapp-article__media img {
	width: 100%;
	height: auto;
	border-radius: 22px;
	display: block;
}

.wtapp-post-nav {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin-top: 28px;
}

.wtapp-post-nav__item {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 18px;
	border-radius: 20px;
	text-decoration: none;
	background: rgba(255, 255, 255, 0.72);
	border: 1px solid rgba(33, 72, 188, 0.12);
	color: var(--wtapp-ink);
}

.wtapp-post-nav__item--next {
	text-align: right;
}

.wtapp-post-nav__label {
	font-size: 0.78rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wtapp-muted);
}

.wtapp-footer {
	padding: 18px 0 34px;
}

.wtapp-footer__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 3fr);
	gap: 28px;
	padding: 28px 0;
}

.wtapp-footer__intro,
.wtapp-footer__group {
	padding: 24px;
	border-radius: 24px;
	background: rgba(255, 250, 242, 0.84);
	border: 1px solid var(--wtapp-line);
}

.wtapp-footer__text,
.wtapp-footer__links {
	margin: 0;
	color: var(--wtapp-muted);
}

.wtapp-footer__groups {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.wtapp-footer__heading {
	margin: 0 0 12px;
	font-family: var(--wtapp-font-display);
	font-size: 1.2rem;
}

.wtapp-footer__links {
	list-style: none;
	padding: 0;
}

.wtapp-footer__links li + li {
	margin-top: 8px;
}

.wtapp-footer__links a {
	color: var(--wtapp-brand-deep);
	text-decoration: none;
}

.wtapp-footer__compact {
	display: grid;
	gap: 14px;
}

.wtapp-footer__compact-group {
	padding: 18px 20px;
	border-radius: 20px;
	background: rgba(255, 250, 242, 0.84);
	border: 1px solid var(--wtapp-line);
}

html[data-wtapp-public-theme="light"] {
	--wtapp-line: rgba(100, 116, 139, 0.16);
	--wtapp-shell-bg: rgba(255, 255, 255, 0.92);
	--wtapp-shell-surface: #f1f5ff;
	--wtapp-shell-surface-strong: #ffffff;
	--wtapp-shell-ink: #364152;
	--wtapp-shell-muted: #4b5565;
	--wtapp-shell-line: rgba(100, 116, 139, 0.16);
	--wtapp-shell-divider: rgba(148, 163, 184, 0.5);
	--wtapp-shell-brand: #3666f4;
	--wtapp-shell-brand-deep: #2148bc;
	--wtapp-shell-pill-active: rgba(54, 102, 244, 0.14);
	--wtapp-shell-wallet-bg: #efe6ad;
	--wtapp-shell-wallet-ink: #8b5a15;
	--wtapp-shell-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

html[data-wtapp-public-theme="dark"] {
	--wtapp-line: rgba(148, 163, 184, 0.18);
	--wtapp-shell-bg: rgba(9, 14, 25, 0.9);
	--wtapp-shell-surface: rgba(17, 24, 39, 0.92);
	--wtapp-shell-surface-strong: rgba(15, 23, 42, 0.98);
	--wtapp-shell-ink: #eef4ff;
	--wtapp-shell-muted: #c8d3eb;
	--wtapp-shell-line: rgba(148, 163, 184, 0.18);
	--wtapp-shell-divider: rgba(148, 163, 184, 0.28);
	--wtapp-shell-brand: #4c6fcf;
	--wtapp-shell-brand-deep: #2f4f9d;
	--wtapp-shell-pill-active: rgba(76, 111, 207, 0.2);
	--wtapp-shell-wallet-bg: rgba(255, 220, 116, 0.2);
	--wtapp-shell-wallet-ink: #ffe7a3;
	--wtapp-shell-shadow: 0 22px 52px rgba(0, 0, 0, 0.3);
}

.wtapp-topbar {
	background: var(--wtapp-shell-bg);
	border-bottom: 1px solid var(--wtapp-shell-line);
	box-shadow: var(--wtapp-shell-shadow);
}

.wtapp-topbar__inner {
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: 28px;
	padding: 18px 0;
}

.wtapp-brand__mark {
	flex-direction: row;
	align-items: center;
	gap: 14px;
}

.wtapp-brand__icon,
.wtapp-mobile-brand__icon {
	display: inline-flex;
	width: 42px;
	height: 42px;
	flex: 0 0 42px;
	border-radius: 14px;
	position: relative;
	background: color-mix(in srgb, var(--wtapp-shell-brand) 8%, var(--wtapp-shell-surface-strong));
	border: 2px solid color-mix(in srgb, var(--wtapp-shell-brand) 72%, transparent);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--wtapp-shell-brand) 18%, transparent);
}

.wtapp-brand__icon::before,
.wtapp-mobile-brand__icon::before,
.wtapp-brand__icon::after,
.wtapp-mobile-brand__icon::after {
	content: "";
	position: absolute;
	left: 8px;
	right: 8px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--wtapp-shell-brand) 82%, #fff 18%);
}

.wtapp-brand__icon::before,
.wtapp-mobile-brand__icon::before {
	top: 7px;
	height: 17px;
	background: transparent;
	border: 3px solid color-mix(in srgb, var(--wtapp-shell-brand) 82%, #fff 18%);
}

.wtapp-brand__icon::after,
.wtapp-mobile-brand__icon::after {
	bottom: 8px;
	height: 4px;
}

.wtapp-brand__title {
	font-family: "Avenir Next", "Segoe UI", sans-serif;
	font-size: 1.28rem;
	font-weight: 800;
	letter-spacing: -0.03em;
	color: var(--wtapp-shell-brand);
}

.wtapp-brand__subtitle {
	display: none;
}

.wtapp-nav {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
}

.wtapp-nav__link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 5px 10px;
	border-radius: 16px;
	font-family: "Avenir Next", "Segoe UI", sans-serif;
	font-size: 1.02rem;
	font-weight: 700;
	color: var(--wtapp-shell-ink);
	background: transparent;
	transition: background-color 160ms ease, color 160ms ease;
}

.wtapp-nav__icon,
.wtapp-badge-link__icon,
.wtapp-header-action__icon,
.wtapp-social-links__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.wtapp-nav__icon svg,
.wtapp-badge-link__icon svg,
.wtapp-header-action__icon svg,
.wtapp-social-links__icon svg {
	width: 18px;
	height: 18px;
}

.wtapp-nav__link:hover,
.wtapp-nav__link:focus-visible {
	color: var(--wtapp-shell-brand);
	background: color-mix(in srgb, var(--wtapp-shell-brand) 10%, transparent);
	transform: none;
}

.wtapp-nav__link.is-active {
	background: var(--wtapp-shell-pill-active);
	color: var(--wtapp-shell-brand);
}

.wtapp-topbar__rail,
.wtapp-tools,
.wtapp-public-tools,
.wtapp-member-tools,
.wtapp-auth-tools {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
}

.wtapp-topbar__rail {
	justify-self: end;
	min-width: 0;
}

.wtapp-topbar__social {
	display: flex;
	align-items: center;
}

.wtapp-topbar__divider {
	width: 1px;
	height: 34px;
	background: var(--wtapp-shell-divider);
}

.wtapp-social-links {
	display: flex;
	align-items: center;
	gap: 0px;
}

.wtapp-social-links__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: transparent;
	color: var(--wtapp-shell-muted);
	text-decoration: none;
}

.wtapp-social-links__link:hover,
.wtapp-social-links__link:focus-visible {
	color: var(--wtapp-shell-brand);
	background: color-mix(in srgb, var(--wtapp-shell-brand) 8%, transparent);
}

.wtapp-auth-link--outline,
.wtapp-auth-link--primary,
.wtapp-badge-link,
.wtapp-header-action,
.wtapp-header-account {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 12px 18px;
	border-radius: 16px;
	font-family: "Avenir Next", "Segoe UI", sans-serif;
	font-size: 1rem;
	font-weight: 700;
	text-decoration: none;
}

.wtapp-auth-link--outline,
.wtapp-header-account,
.wtapp-header-action--ghost {
	background: var(--wtapp-shell-surface-strong);
	border: 1px solid var(--wtapp-shell-line);
	color: var(--wtapp-shell-ink);
}

.wtapp-auth-link--outline {
	border-width: 2px;
	border-color: color-mix(in srgb, var(--wtapp-shell-brand) 72%, transparent);
	color: var(--wtapp-shell-brand);
}

.wtapp-auth-link--primary,
.wtapp-header-action--primary {
	background: linear-gradient(135deg, var(--wtapp-shell-brand), var(--wtapp-shell-brand-deep));
	color: #fff;
}

.wtapp-badge-link {
	background: var(--wtapp-shell-wallet-bg);
	border: 1px solid color-mix(in srgb, var(--wtapp-shell-wallet-ink) 18%, transparent);
	color: var(--wtapp-shell-wallet-ink);
}

.wtapp-badge-link__plus {
	font-size: 1.2rem;
	line-height: 1;
}

.wtapp-header-account {
	max-width: 240px;
}

.wtapp-header-account-menu {
	position: relative;
}

.wtapp-notification-center {
	position: relative;
}

.wtapp-notification-center__toggle {
	position: relative;
	min-width: 40px;
	min-height: 40px;
	padding: 0;
	flex: 0 0 40px;
	border-radius: 12px;
}

.wtapp-mobile-header-action--notification {
	position: relative;
}

.wtapp-notification-center__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.wtapp-notification-center__dot {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 9px;
	height: 9px;
	border-radius: 999px;
	background: #ef4444;
	box-shadow: 0 0 0 2px var(--wtapp-shell-surface-strong);
	opacity: 0;
	transform: scale(0.8);
	transition: opacity 0.16s ease, transform 0.16s ease;
}

.wtapp-notification-center__dot.has-unread {
	opacity: 1;
	transform: scale(1);
}

.wtapp-notification-center__panel {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	z-index: 30;
	display: none;
	width: min(360px, calc(100vw - 32px));
	padding: 10px;
	border-radius: 18px;
	background: var(--wtapp-shell-surface-strong);
	border: 1px solid var(--wtapp-shell-line);
	box-shadow: var(--wtapp-shell-shadow);
}

.wtapp-notification-center.is-open .wtapp-notification-center__panel {
	display: block;
}

.wtapp-notification-center__panel-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 4px 4px 10px;
}

.wtapp-notification-center__title {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 800;
	color: var(--wtapp-shell-ink);
}

.wtapp-notification-center__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 24px;
	min-height: 24px;
	padding: 0 8px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--wtapp-shell-brand) 12%, transparent);
	color: var(--wtapp-shell-brand);
	font-size: 0.78rem;
	font-weight: 800;
}

.wtapp-notification-center__feed {
	display: grid;
	gap: 8px;
	max-height: 420px;
	overflow-y: auto;
	padding-right: 2px;
}

.wtapp-notification-feed__list {
	display: grid;
	gap: 8px;
}

.wtapp-notification-feed__item {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 14px;
	border-radius: 16px;
	background: color-mix(in srgb, var(--wtapp-shell-surface) 94%, transparent);
	border: 1px solid var(--wtapp-shell-line);
	color: var(--wtapp-shell-ink);
	text-decoration: none;
	transition: border-color 0.16s ease, background-color 0.16s ease, transform 0.16s ease;
}

.wtapp-notification-feed__item:hover,
.wtapp-notification-feed__item:focus-visible {
	border-color: color-mix(in srgb, var(--wtapp-shell-brand) 20%, transparent);
	background: color-mix(in srgb, var(--wtapp-shell-brand) 8%, var(--wtapp-shell-surface-strong));
	transform: translateY(-1px);
	outline: none;
}

.wtapp-notification-feed__item.is-unread {
	border-color: color-mix(in srgb, var(--wtapp-shell-brand) 26%, transparent);
	background: color-mix(in srgb, var(--wtapp-shell-brand) 7%, var(--wtapp-shell-surface-strong));
}

.wtapp-notification-feed__item-body {
	display: grid;
	gap: 4px;
	min-width: 0;
	width: 100%;
}

.wtapp-notification-feed__item-head {
	display: flex;
	align-items: baseline;
	gap: 10px;
	width: 100%;
	min-width: 0;
}

.wtapp-notification-feed__item-title,
.wtapp-notification-feed__item-message {
	margin: 0;
}

.wtapp-notification-feed__item-title {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 0.9rem;
	font-weight: 800;
	line-height: 1.35;
	color: var(--wtapp-shell-ink);
}

.wtapp-notification-feed__item-message {
	font-size: 0.84rem;
	line-height: 1.45;
	color: var(--wtapp-shell-muted);
}

.wtapp-notification-feed__item-meta {
	flex: 0 0 auto;
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--wtapp-shell-muted);
	white-space: nowrap;
}

.wtapp-notification-feed__empty {
	padding: 20px 14px;
	border-radius: 16px;
	background: color-mix(in srgb, var(--wtapp-shell-surface) 94%, transparent);
	border: 1px dashed var(--wtapp-shell-line);
	color: var(--wtapp-shell-muted);
	font-size: 0.88rem;
	text-align: center;
}

.wtapp-header-account--menu {
	cursor: pointer;
}

.wtapp-header-account__chevron {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	color: var(--wtapp-shell-muted);
	transition: transform 180ms ease, color 180ms ease;
}

.wtapp-header-account-menu.is-open .wtapp-header-account__chevron {
	transform: rotate(180deg);
	color: var(--wtapp-shell-brand);
}

.wtapp-header-account__avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	object-fit: cover;
	border: 1px solid color-mix(in srgb, var(--wtapp-shell-brand) 24%, transparent);
}

.wtapp-header-account__name {
	max-width: 130px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wtapp-header-account-menu__panel {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	z-index: 30;
	display: none;
	flex-direction: column;
	gap: 4px;
	min-width: 200px;
	padding: 8px;
	border-radius: 18px;
	background: var(--wtapp-shell-surface-strong);
	border: 1px solid var(--wtapp-shell-line);
	box-shadow: var(--wtapp-shell-shadow);
}

.wtapp-header-account-menu.is-open .wtapp-header-account-menu__panel {
	display: flex;
}

.wtapp-header-account-menu__item {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 10px;
	width: 100%;
	padding: 12px 14px;
	border: 0;
	border-radius: 14px;
	background: transparent;
	color: var(--wtapp-shell-ink);
	cursor: pointer;
	font-family: inherit;
	font-size: 0.96rem;
	font-weight: 700;
	text-decoration: none;
	text-align: left;
}

.wtapp-header-account-menu__item:hover,
.wtapp-header-account-menu__item:focus-visible {
	background: color-mix(in srgb, var(--wtapp-shell-brand) 10%, transparent);
	color: var(--wtapp-shell-brand-deep);
	outline: none;
}

.wtapp-header-account-menu__item-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
}

.wtapp-header-account-menu__item--logout {
	color: #dc2626;
}

.wtapp-header-account-menu__item--logout:hover,
.wtapp-header-account-menu__item--logout:focus-visible {
	background: color-mix(in srgb, #dc2626 12%, transparent);
	color: #b91c1c;
}

.wtapp-modal__panel--notifications {
	width: min(460px, calc(100vw - 24px));
}

.wtapp-header-action {
	border: 0;
	cursor: pointer;
	font-family: inherit;
}

.wtapp-header-action--icon {
	width: 48px;
	height: 48px;
	padding: 0;
}

.wtapp-theme-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border-radius: 12px;
	border: 1px solid var(--wtapp-shell-line);
	background: var(--wtapp-shell-surface-strong);
	color: var(--wtapp-shell-ink);
	box-shadow: none;
}

.wtapp-theme-toggle__glyph {
	position: relative;
	width: 18px;
	height: 18px;
	display: inline-flex;
}

.wtapp-theme-toggle__glyph::before {
	content: "";
	position: absolute;
	top: 2px;
	left: 4px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: currentColor;
}

.wtapp-theme-toggle__glyph::after {
	content: "";
	position: absolute;
	top: 1px;
	left: 8px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--wtapp-shell-surface-strong);
}

[data-wtapp-public-theme-state="dark"] .wtapp-theme-toggle__glyph::before {
	top: 4px;
	left: 4px;
	width: 10px;
	height: 10px;
	background: transparent;
	border: 2px solid currentColor;
}

[data-wtapp-public-theme-state="dark"] .wtapp-theme-toggle__glyph::after {
	top: 8px;
	left: 8px;
	width: 2px;
	height: 2px;
	background: currentColor;
	box-shadow:
		0 -8px 0 0 currentColor,
		0 8px 0 0 currentColor,
		-8px 0 0 0 currentColor,
		8px 0 0 0 currentColor,
		-6px -6px 0 0 currentColor,
		6px -6px 0 0 currentColor,
		-6px 6px 0 0 currentColor,
		6px 6px 0 0 currentColor;
}

.wtapp-search__submit:focus-visible,
.wtapp-auth-link:focus-visible,
.wtapp-button:focus-visible,
.wtapp-theme-toggle:focus-visible,
.wtapp-header-action:focus-visible,
.wtapp-header-account:focus-visible,
.wtapp-mobile-header-action:focus-visible,
.wtapp-mobile-tab:focus-visible,
.wtapp-drawer__close:focus-visible,
.wtapp-drawer__links a:focus-visible,
.wtapp-footer__links a:focus-visible,
.wtapp-modal__close:focus-visible,
.wtapp-badge-link:focus-visible,
.wtapp-social-links__link:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--wtapp-shell-brand) 34%, transparent);
	outline-offset: 3px;
}

.wtapp-footer {
	padding: 0;
	background: transparent;
}

.wtapp-footer__inner--compact {
	display: grid;
	gap: 5px;
	align-items: center;
	justify-items: center;
	padding: 10px 0;
	text-align: center;
}

.wtapp-footer__meta {
	display: flex;
	align-items: center;
	justify-content: space-evenly;
	flex-wrap: wrap;
	gap: 8px 14px;
	width: 100%;
}

.wtapp-footer__social {
	display: flex;
	align-items: center;
	justify-content: center;
}

.wtapp-footer__social .wtapp-social-links {
	gap: 2px;
}

.wtapp-footer__social .wtapp-social-links__link {
	width: 32px;
	height: 32px;
}

.wtapp-footer__social .wtapp-social-links__icon {
	width: 16px;
	height: 16px;
}

.wtapp-footer__link-row {
	width: 100%;
}

.wtapp-footer__links--inline {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wtapp-footer__links--inline li {
	display: inline-flex;
	align-items: center;
	margin-top: 8px;
}

.wtapp-footer__links--inline li + li::before {
	content: "•";
	margin: 0 10px;
	color: color-mix(in srgb, var(--wtapp-shell-muted) 42%, transparent);
}

.wtapp-footer__links--inline a {
	color: var(--wtapp-shell-brand);
	text-decoration: none;
	font-size: 0.78rem;
	font-weight: 600;
	line-height: 1.35;
}

.wtapp-footer__copyright {
	margin: 0;
	color: var(--wtapp-shell-muted);
	font-size: 0.76rem;
	line-height: 1.35;
}

.wtapp-footer__inner--mobile .wtapp-footer__meta {
	gap: 6px 12px;
}

.wtapp-footer__inner--mobile .wtapp-footer__links--inline a {
	font-size: 0.74rem;
}

.wtapp-footer__inner--mobile .wtapp-footer__links--inline li + li::before {
	margin: 0 8px;
}

.wtapp-footer__inner--mobile .wtapp-footer__copyright {
	font-size: 0.72rem;
}

.wtapp-footer__social .wtapp-social-links__link {
	background: color-mix(in srgb, var(--wtapp-shell-surface) 88%, transparent);
	border: 0;
	color: var(--wtapp-shell-muted);
}

.wtapp-drawer__social {
	margin-top: 12px;
}

.wtapp-social-links--drawer {
	flex-wrap: wrap;
	gap: 10px;
}

.wtapp-social-links--drawer .wtapp-social-links__link {
	width: auto;
	height: auto;
	padding: 10px 14px;
	border-radius: 16px;
	background: color-mix(in srgb, var(--wtapp-shell-surface) 88%, transparent);
	border: 1px solid var(--wtapp-shell-line);
}

.wtapp-social-links__label {
	font-size: 0.92rem;
	font-weight: 700;
}

@media (max-width: 1180px) {
	.wtapp-topbar__inner {
		grid-template-columns: auto minmax(0, 1fr);
	}

	.wtapp-topbar__rail {
		grid-column: 1 / -1;
		justify-self: start;
		flex-wrap: wrap;
	}
}

@media (max-width: 960px) {
	.wtapp-topbar__social,
	.wtapp-topbar__divider {
		display: none;
	}

	.wtapp-topbar__rail {
		justify-self: end;
	}
}


/* assets/css/components/overlays.css */
.wtapp-drawer-root {
	position: fixed;
	inset: 0;
	z-index: 75;
	pointer-events: none;
	opacity: 0;
	transition: opacity 180ms ease;
}

.wtapp-drawer-root.is-active {
	pointer-events: auto;
	opacity: 1;
}

.wtapp-drawer {
	position: absolute;
	inset: 0;
}

.wtapp-drawer__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(31, 27, 24, 0.42);
	backdrop-filter: blur(6px);
}

.wtapp-drawer__panel {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: calc(18px + var(--wtapp-safe-top)) 20px calc(26px + var(--wtapp-safe-bottom));
	background:
		radial-gradient(circle at top right, rgba(54, 102, 244, 0.16), transparent 26%),
		linear-gradient(180deg, rgba(255, 251, 245, 0.98), rgba(245, 235, 221, 0.97));
	transform: translateY(-100%);
	transition: transform 220ms ease;
	overflow: auto;
}

.wtapp-drawer-root.is-active .wtapp-drawer__panel {
	transform: translateY(0);
}

.wtapp-drawer__header,
.wtapp-drawer__auth {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.wtapp-drawer__eyebrow,
.wtapp-sheet__eyebrow {
	margin: 0 0 6px;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wtapp-brand);
}

.wtapp-drawer__title {
	margin: 0;
	font-family: var(--wtapp-font-display);
	font-size: clamp(1.5rem, 4vw, 2rem);
	color: var(--wtapp-brand-deep);
}

.wtapp-drawer__close,
.wtapp-mobile-header-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 0;
	border-radius: 999px;
	padding: 10px 14px;
	background: rgba(54, 102, 244, 0.08);
	color: var(--wtapp-brand-deep);
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
}

.wtapp-mobile-header-action__avatar {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	object-fit: cover;
	border: 1px solid rgba(33, 72, 188, 0.16);
}

.wtapp-mobile-topbar__title-wrap {
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
}

.wtapp-mobile-topbar__eyebrow {
	margin: 0;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wtapp-brand);
}

.wtapp-mobile-topbar__meta {
	max-width: 100%;
	font-size: 0.74rem;
	font-weight: 700;
	color: var(--wtapp-muted);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wtapp-drawer__auth {
	flex-wrap: wrap;
	justify-content: flex-start;
}

.wtapp-drawer__member {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 18px;
	border-radius: 22px;
	background: rgba(255, 252, 247, 0.88);
	border: 1px solid rgba(33, 72, 188, 0.12);
	box-shadow: 0 14px 32px rgba(59, 38, 17, 0.07);
}

.wtapp-drawer__member-avatar {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	object-fit: cover;
	border: 1px solid rgba(33, 72, 188, 0.16);
}

.wtapp-drawer__member-meta {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.wtapp-drawer__member-name {
	font-size: 1rem;
	line-height: 1.2;
	color: var(--wtapp-brand-deep);
}

.wtapp-drawer__member-wallet {
	color: var(--wtapp-muted);
	font-size: 0.9rem;
}

.wtapp-drawer__groups {
	display: grid;
	gap: 14px;
}

.wtapp-drawer__group {
	padding: 18px 18px 16px;
	border-radius: 22px;
	background: rgba(255, 252, 247, 0.88);
	border: 1px solid rgba(33, 72, 188, 0.12);
	box-shadow: 0 14px 32px rgba(59, 38, 17, 0.07);
}

.wtapp-drawer__heading {
	margin: 0 0 12px;
	font-family: var(--wtapp-font-display);
	font-size: 1.15rem;
	color: var(--wtapp-brand-deep);
}

.wtapp-drawer__links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
}

.wtapp-drawer__links a {
	display: block;
	padding: 12px 14px;
	border-radius: 16px;
	text-decoration: none;
	color: var(--wtapp-brand-deep);
	background: rgba(54, 102, 244, 0.06);
	font-weight: 700;
}

.wtapp-modal-root,
.wtapp-toast-root {
	position: fixed;
	inset: auto 20px 20px auto;
	z-index: 70;
}

.wtapp-toast-root {
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-width: 320px;
}

.wtapp-toast {
	transform: translateY(6px);
	opacity: 0;
	padding: 14px 16px;
	border-radius: 18px;
	background: rgba(31, 27, 24, 0.92);
	color: #fff;
	box-shadow: 0 18px 40px rgba(20, 13, 7, 0.24);
	transition: opacity 160ms ease, transform 160ms ease;
}

.wtapp-toast.is-visible {
	transform: translateY(0);
	opacity: 1;
}

.wtapp-skeleton-root {
	position: fixed;
	inset: 0;
	z-index: 60;
	pointer-events: none;
	opacity: 0;
	transition: opacity 120ms ease;
	background: rgba(246, 241, 231, 0.4);
	backdrop-filter: blur(4px);
}

.wtapp-skeleton-root.is-active {
	opacity: 1;
}

.wtapp-skeleton-root__shine {
	position: absolute;
	inset: 18px;
	border-radius: 32px;
	background: linear-gradient(90deg, rgba(255,255,255,0.18), rgba(255,255,255,0.6), rgba(255,255,255,0.18));
	background-size: 200% 100%;
	animation: wtapp-shine 1.2s linear infinite;
}

@keyframes wtapp-shine {
	from {
		background-position: 200% 0;
	}
	to {
		background-position: -200% 0;
	}
}

@media (max-width: 1100px) {
	.wtapp-topbar__inner,
	.wtapp-footer__inner {
		grid-template-columns: 1fr;
	}

	.wtapp-topbar__inner {
		gap: 14px;
	}

	.wtapp-nav {
		flex-wrap: wrap;
		justify-content: flex-start;
	}

	.wtapp-tools {
		justify-content: flex-start;
	}

	.wtapp-footer__groups,
	.wtapp-post-nav,
	.wtapp-meta-card-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 860px) {
	.wtapp-nav,
	.wtapp-tools {
		width: 100%;
	}

	.wtapp-search {
		flex: 1;
	}

	.wtapp-novel-layout,
	.wtapp-footer__groups,
	.wtapp-post-nav,
	.wtapp-meta-card-grid {
		grid-template-columns: 1fr;
	}

	.wtapp-hero,
	.wtapp-surface {
		padding: 22px;
	}
}

.wtapp-drawer__backdrop {
	background: rgba(7, 12, 24, 0.46);
}

.wtapp-drawer__panel {
	background:
		radial-gradient(circle at top right, color-mix(in srgb, var(--wtapp-shell-brand) 18%, transparent), transparent 28%),
		linear-gradient(180deg, color-mix(in srgb, var(--wtapp-shell-surface-strong) 96%, transparent), color-mix(in srgb, var(--wtapp-shell-surface) 94%, transparent));
}

.wtapp-drawer__eyebrow,
.wtapp-mobile-topbar__eyebrow {
	color: var(--wtapp-shell-brand);
}

.wtapp-drawer__title,
.wtapp-drawer__member-name {
	color: var(--wtapp-shell-ink);
}

.wtapp-drawer__close,
.wtapp-mobile-header-action {
	border-radius: 14px;
	background: var(--wtapp-shell-surface-strong);
	border: 1px solid var(--wtapp-shell-line);
	color: var(--wtapp-shell-ink);
}

.wtapp-mobile-header-action__avatar {
	border-color: color-mix(in srgb, var(--wtapp-shell-brand) 24%, transparent);
}

.wtapp-mobile-topbar__meta,
.wtapp-drawer__member-wallet {
	color: var(--wtapp-shell-muted);
}

.wtapp-drawer__member,
.wtapp-drawer__group {
	background: color-mix(in srgb, var(--wtapp-shell-surface-strong) 96%, transparent);
	border: 1px solid var(--wtapp-shell-line);
	box-shadow: 0 14px 32px color-mix(in srgb, var(--wtapp-shell-ink) 8%, transparent);
}

.wtapp-drawer__heading {
	color: var(--wtapp-shell-ink);
}

.wtapp-drawer__links a {
	background: color-mix(in srgb, var(--wtapp-shell-brand) 8%, transparent);
	color: var(--wtapp-shell-brand);
}


/* assets/css/components/workspace.css */
.wtapp-footer.is-hidden {
	display: none;
}

.wtapp-inline-notice {
	padding: 14px 18px;
	border-radius: 18px;
	border: 1px solid rgba(54, 102, 244, 0.16);
	background: rgba(255, 246, 235, 0.92);
	color: var(--wtapp-brand-deep);
	font-weight: 700;
	box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.wtapp-screen--landing,
.wtapp-screen--browse,
.wtapp-screen--collection,
.wtapp-screen--article,
.wtapp-screen--novel,
.wtapp-screen--missing,
.wtapp-screen--static,
.wtapp-screen--app-auth,
.wtapp-screen--app-account,
.wtapp-screen--app-home,
.wtapp-screen--app-browse,
.wtapp-screen--app-library,
.wtapp-screen--app-create,
.wtapp-screen--app-editor {
	gap: 22px;
}

.wtapp-grid {
	display: block;
}

.wtapp-surface--auth,
.wtapp-surface--dashboard,
.wtapp-surface--library,
.wtapp-surface--account-form,
.wtapp-surface--wallet,
.wtapp-surface--tts,
.wtapp-surface--workspace {
	padding: 30px;
}

.wtapp-surface--landing-grid,
.wtapp-surface--novel-meta,
.wtapp-surface--chapters {
	padding: 28px;
}

.wtapp-auth-layout,
.wtapp-wallet-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	align-items: start;
}

.wtapp-auth-layout--single {
	grid-template-columns: minmax(0, 720px);
	justify-content: center;
}

.wtapp-auth-card,
.wtapp-auth-aside,
.wtapp-panel,
.wtapp-library-section {
	background: rgba(255, 252, 247, 0.9);
	border: 1px solid rgba(33, 72, 188, 0.12);
	border-radius: 24px;
	box-shadow: 0 16px 38px rgba(72, 44, 16, 0.08);
	padding: 24px;
}

.wtapp-panel,
.wtapp-auth-card,
.wtapp-auth-aside,
.wtapp-library-section {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.wtapp-dashboard-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.wtapp-library-hub {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.wtapp-library-switcher {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
}

.wtapp-library-switcher__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
	border-radius: 18px;
	border: 1px solid rgba(33, 72, 188, 0.12);
	background: rgba(255, 255, 255, 0.86);
	color: var(--wtapp-brand-deep);
	font-weight: 700;
	text-decoration: none;
}

.wtapp-library-switcher__link.is-active {
	background: linear-gradient(135deg, rgba(168, 91, 39, 0.16), rgba(209, 140, 80, 0.1));
	border-color: rgba(168, 91, 39, 0.3);
	box-shadow: 0 10px 24px rgba(33, 72, 188, 0.08);
}

.wtapp-library-switcher__label,
.wtapp-library-switcher__count {
	display: block;
}

.wtapp-library-switcher__count {
	min-width: 2.1rem;
	padding: 4px 8px;
	border-radius: 999px;
	background: rgba(33, 72, 188, 0.08);
	text-align: center;
	font-size: 0.86rem;
}

.wtapp-retention-summary-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	margin-bottom: 20px;
}

.wtapp-retention-summary-grid--compact {
	margin-bottom: 0;
}

.wtapp-rewards-summary-lines,
.wtapp-rewards-checkin-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.wtapp-status-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 6px 12px;
	border-radius: 999px;
	border: 1px solid rgba(51, 128, 82, 0.18);
	background: rgba(51, 128, 82, 0.12);
	color: #245838;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.wtapp-card-list--rewards .wtapp-card-list__item.is-complete {
	border-color: rgba(51, 128, 82, 0.22);
	background: linear-gradient(180deg, rgba(245, 255, 249, 0.96), rgba(255, 255, 255, 0.92));
}

.wtapp-retention-metric {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 18px 20px;
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid rgba(33, 72, 188, 0.12);
	box-shadow: 0 10px 24px rgba(72, 44, 16, 0.06);
}

.wtapp-retention-metric__title {
	margin: 0;
	font-size: 0.84rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wtapp-muted);
}

.wtapp-retention-metric__value {
	margin: 0;
	font-family: var(--wtapp-font-display);
	font-size: clamp(1.5rem, 2.5vw, 2.1rem);
	line-height: 1;
	color: var(--wtapp-brand-deep);
}

.wtapp-wallet-stack {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-top: 20px;
}

.wtapp-wallet-module {
	position: relative;
	overflow: hidden;
}

.wtapp-wallet-module__header {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.wtapp-wallet-module__body {
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
}

.wtapp-wallet-module__body .mycred-history-wrapper {
	overflow-x: auto;
}

body.wtapp-shell-body.wtapp-route-app .wtapp-screen--app-wallet {
	--wtapp-wallet-card-bg: color-mix(in srgb, var(--wtapp-shell-surface-strong) 96%, transparent);
	--wtapp-wallet-soft-bg: color-mix(in srgb, var(--wtapp-shell-surface) 90%, transparent);
	--wtapp-wallet-line: var(--wtapp-shell-line);
	--wtapp-wallet-shadow: 0 10px 28px color-mix(in srgb, var(--wtapp-shell-ink) 8%, transparent);
	--wtapp-wallet-hero-start: var(--wtapp-shell-brand);
	--wtapp-wallet-hero-end: #11b5de;
	--wtapp-wallet-hero-soft-bg: rgba(255, 255, 255, 0.12);
	--wtapp-wallet-hero-soft-border: rgba(255, 255, 255, 0.18);
	--wtapp-wallet-hero-shadow: 0 18px 40px color-mix(in srgb, var(--wtapp-shell-ink) 16%, transparent);
	--wtapp-wallet-table-bg: color-mix(in srgb, var(--wtapp-shell-surface-strong) 98%, transparent);
}

html[data-wtapp-public-theme="dark"] body.wtapp-shell-body.wtapp-route-app .wtapp-screen--app-wallet {
	--wtapp-wallet-card-bg: color-mix(in srgb, var(--wtapp-shell-surface-strong) 92%, transparent);
	--wtapp-wallet-soft-bg: color-mix(in srgb, var(--wtapp-shell-surface) 94%, transparent);
	--wtapp-wallet-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
	--wtapp-wallet-hero-start: color-mix(in srgb, var(--wtapp-shell-brand) 82%, #13203b 18%);
	--wtapp-wallet-hero-end: color-mix(in srgb, #11b5de 72%, #0f172a 28%);
	--wtapp-wallet-hero-soft-bg: rgba(255, 255, 255, 0.08);
	--wtapp-wallet-hero-soft-border: rgba(255, 255, 255, 0.12);
	--wtapp-wallet-hero-shadow: 0 18px 42px rgba(0, 0, 0, 0.3);
	--wtapp-wallet-table-bg: color-mix(in srgb, var(--wtapp-shell-surface-strong) 94%, transparent);
}

body.wtapp-shell-body.wtapp-route-app .wtapp-surface--wallet.wtapp-surface--wallet-dashboard {
	padding: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
}

.wtapp-wallet-dashboard__section {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 22px;
	border-radius: 28px;
	border: 1px solid var(--wtapp-wallet-line);
	background: var(--wtapp-wallet-card-bg);
	box-shadow: var(--wtapp-wallet-shadow);
	min-width: 0;
}

.wtapp-wallet-dashboard__section {
	scroll-margin-top: 120px;
}

.wtapp-wallet-dashboard__section-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.wtapp-wallet-dashboard__rich-content {
	min-width: 0;
}

.wtapp-wallet-dashboard__rich-content .myCRED-buy-form,
.wtapp-wallet-dashboard__rich-content .myCRED-buy-form form,
.wtapp-wallet-dashboard__rich-content form {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: flex-end;
	margin: 0;
}

.wtapp-wallet-dashboard__rich-content label {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-weight: 700;
	color: var(--wtapp-shell-ink);
}

.wtapp-wallet-dashboard__rich-content input[type="number"],
.wtapp-wallet-dashboard__rich-content input[type="text"],
.wtapp-wallet-dashboard__rich-content input[type="email"],
.wtapp-wallet-dashboard__rich-content select,
.wtapp-wallet-dashboard__rich-content textarea {
	min-height: 42px;
	padding: 10px 14px;
	border-radius: 16px;
	border: 1px solid var(--wtapp-wallet-line);
	background: color-mix(in srgb, var(--wtapp-shell-surface-strong) 96%, transparent);
	color: var(--wtapp-shell-ink);
	font-size: 0.95rem;
}

.wtapp-wallet-dashboard__rich-content button,
.wtapp-wallet-dashboard__rich-content input[type="submit"],
.wtapp-wallet-dashboard__rich-content .button,
.wtapp-wallet-dashboard__rich-content .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 10px 16px;
	border-radius: 999px;
	border: 1px solid transparent;
	background: linear-gradient(135deg, var(--wtapp-shell-brand), var(--wtapp-shell-brand-deep));
	color: #fff;
	font-size: 0.92rem;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
}

.wtapp-wallet-dashboard__rich-content a {
	color: var(--wtapp-shell-brand);
}

.wtapp-wallet-dashboard__rich-content .mycred-history-wrapper {
	overflow: auto;
	border-radius: 22px;
	border: 1px solid var(--wtapp-wallet-line);
	background: var(--wtapp-wallet-table-bg);
}

.wtapp-wallet-dashboard__rich-content table {
	border-collapse: separate;
	border-spacing: 0;
	background: transparent;
}

.wtapp-wallet-dashboard__rich-content th,
.wtapp-wallet-dashboard__rich-content td {
	padding: 12px 14px;
	border-bottom: 1px solid color-mix(in srgb, var(--wtapp-wallet-line) 86%, transparent);
	text-align: left;
	vertical-align: top;
}

.wtapp-wallet-dashboard__rich-content th {
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wtapp-shell-muted);
}

.wtapp-wallet-dashboard__rich-content td {
	color: var(--wtapp-shell-ink);
	line-height: 1.5;
}

.wtapp-wallet-dashboard__rich-content tbody tr:last-child td {
	border-bottom: 0;
}

.wtapp-wallet-dashboard__rich-content .mycred-history-wrapper + .pagination,
.wtapp-wallet-dashboard__rich-content .mycred-history-wrapper + .mycred-paginate,
.wtapp-wallet-dashboard__rich-content .pagination,
.wtapp-wallet-dashboard__rich-content .mycred-paginate {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 14px;
}

.wtapp-wallet-dashboard__rich-content .page-numbers,
.wtapp-wallet-dashboard__rich-content .pagination a,
.wtapp-wallet-dashboard__rich-content .pagination span,
.wtapp-wallet-dashboard__rich-content .mycred-paginate a,
.wtapp-wallet-dashboard__rich-content .mycred-paginate span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	min-height: 38px;
	padding: 0 12px;
	border-radius: 999px;
	border: 1px solid var(--wtapp-wallet-line);
	background: color-mix(in srgb, var(--wtapp-shell-surface) 92%, transparent);
	color: var(--wtapp-shell-ink);
	text-decoration: none;
}

.wtapp-wallet-dashboard__rich-content .current,
.wtapp-wallet-dashboard__rich-content .page-numbers.current {
	background: linear-gradient(135deg, var(--wtapp-shell-brand), var(--wtapp-shell-brand-deep));
	border-color: transparent;
	color: #fff;
}

.wtapp-wallet-page {
	display: flex;
	flex-direction: column;
	gap: 22px;
	font-size: 0.95rem;
}

.wtapp-wallet-page__header,
.wtapp-wallet-page__primary,
.wtapp-wallet-page__secondary {
	display: grid;
	gap: 18px;
}

.wtapp-wallet-page__header {
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: start;
}

.wtapp-wallet-page__header-copy {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
}

.wtapp-wallet-page__eyebrow,
.wtapp-wallet-page__overview-eyebrow,
.wtapp-wallet-page__aside-eyebrow {
	margin: 0;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.wtapp-wallet-page__eyebrow {
	color: var(--wtapp-shell-brand);
}

.wtapp-wallet-page__title {
	margin: 0;
	font-family: var(--wtapp-font-display);
	font-size: clamp(2.2rem, 4vw, 3.6rem);
	line-height: 0.98;
	color: var(--wtapp-shell-brand-deep);
}

.wtapp-wallet-page__summary {
	max-width: 48rem;
	margin: 0;
	color: var(--wtapp-shell-muted);
	font-size: 1.05rem;
	line-height: 1.65;
}

.wtapp-wallet-page__header-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 12px;
}

.wtapp-wallet-page__primary {
	grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.85fr);
	align-items: start;
}

.wtapp-wallet-page__secondary {
	grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.95fr);
	align-items: start;
}

.wtapp-wallet-page__overview {
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 26px;
	border-radius: 30px;
	background: linear-gradient(135deg, var(--wtapp-wallet-hero-start), var(--wtapp-wallet-hero-end));
	box-shadow: var(--wtapp-wallet-hero-shadow);
	color: #fff;
}

.wtapp-wallet-page__overview-top {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(220px, 0.72fr);
	gap: 18px;
	align-items: start;
}

.wtapp-wallet-page__overview-copy,
.wtapp-wallet-page__balance-panel {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
}

.wtapp-wallet-page__overview-eyebrow {
	color: rgba(247, 250, 255, 0.84);
}

.wtapp-wallet-page__overview-title {
	margin: 0;
	font-family: inherit;
	font-size: clamp(2.1rem, 3.8vw, 3.15rem);
	font-weight: 800;
	line-height: 1.02;
	letter-spacing: -0.035em;
}

.wtapp-wallet-page__overview-text,
.wtapp-wallet-page__balance-note,
.wtapp-wallet-page__stat-copy {
	margin: 0;
	color: rgba(247, 250, 255, 0.88);
	line-height: 1.6;
}

.wtapp-wallet-page__balance-panel,
.wtapp-wallet-page__stat-card,
.wtapp-wallet-page__action-card {
	border-radius: 24px;
	background: var(--wtapp-wallet-hero-soft-bg);
	border: 1px solid var(--wtapp-wallet-hero-soft-border);
}

.wtapp-wallet-page__balance-panel {
	padding: 18px 20px;
}

.wtapp-wallet-page__balance-amount {
	margin: 0;
	font-size: clamp(2.3rem, 4vw, 3.5rem);
	font-weight: 800;
	line-height: 0.95;
	letter-spacing: -0.04em;
	color: #fff;
}

.wtapp-wallet-page__balance-amount span {
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: 0;
}

.wtapp-wallet-page__stat-grid,
.wtapp-wallet-page__action-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.wtapp-wallet-page__stat-card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 16px;
}

.wtapp-wallet-page__stat-label {
	margin: 0;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(247, 250, 255, 0.82);
}

.wtapp-wallet-page__stat-value {
	margin: 0;
	font-size: 1.12rem;
	font-weight: 800;
	line-height: 1.2;
	color: #fff;
}

.wtapp-wallet-page__meter {
	display: block;
	width: 100%;
	height: 11px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.18);
	overflow: hidden;
}

.wtapp-wallet-page__meter-fill {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, #f8fbff, rgba(255, 255, 255, 0.72));
}

.wtapp-wallet-page__action-card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 18px;
	color: #fff;
	text-decoration: none;
}

.wtapp-wallet-page__action-card strong,
.wtapp-wallet-page__action-card span {
	display: block;
}

.wtapp-wallet-page__action-card strong {
	font-size: 1rem;
	font-weight: 800;
	line-height: 1.2;
}

.wtapp-wallet-page__action-card span {
	color: rgba(247, 250, 255, 0.82);
	line-height: 1.5;
}

.wtapp-wallet-page__aside {
	gap: 18px;
}

.wtapp-wallet-page__aside-title {
	margin: 4px 0 0;
	font-family: var(--wtapp-font-display);
	font-size: clamp(1.55rem, 2.3vw, 2.1rem);
	line-height: 1.06;
	color: var(--wtapp-shell-brand-deep);
}

.wtapp-wallet-page__aside-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 14px;
	border-radius: 999px;
	border: 1px solid rgba(54, 102, 244, 0.18);
	background: color-mix(in srgb, var(--wtapp-shell-brand) 10%, transparent);
	color: var(--wtapp-shell-brand);
	font-size: 0.84rem;
	font-weight: 800;
	white-space: nowrap;
}

.wtapp-wallet-page__aside-badge.is-positive {
	border-color: rgba(51, 128, 82, 0.18);
	background: rgba(51, 128, 82, 0.12);
	color: #245838;
}

.wtapp-wallet-page__aside-meter {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 16px 18px;
	border-radius: 22px;
	background: var(--wtapp-wallet-soft-bg);
	border: 1px solid var(--wtapp-wallet-line);
}

.wtapp-wallet-page__aside-meter-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	color: var(--wtapp-shell-muted);
}

.wtapp-wallet-page__aside-meter-head strong {
	color: var(--wtapp-shell-ink);
}

.wtapp-wallet-page__usage-list {
	display: grid;
	gap: 12px;
}

.wtapp-wallet-page__usage-item,
.wtapp-wallet-page__packs,
.wtapp-wallet-page__pending,
.wtapp-wallet-page__tip {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 16px 18px;
	border-radius: 22px;
	background: var(--wtapp-wallet-soft-bg);
	border: 1px solid var(--wtapp-wallet-line);
}

.wtapp-wallet-page__usage-item h3,
.wtapp-wallet-page__usage-item p,
.wtapp-wallet-page__tip p {
	margin: 0;
}

.wtapp-wallet-page__usage-item h3,
.wtapp-wallet-page__subheading {
	margin: 0;
	font-size: 1.04rem;
	line-height: 1.2;
	color: var(--wtapp-shell-ink);
}

.wtapp-wallet-page__usage-item p,
.wtapp-wallet-page__tip p {
	color: var(--wtapp-shell-muted);
	line-height: 1.55;
}

.wtapp-wallet-page__recharge {
	gap: 16px;
}

.wtapp-wallet-page__pack-list {
	display: grid;
	gap: 12px;
}

.wtapp-wallet-page__pack-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 20px;
	border-radius: 22px;
	background: color-mix(in srgb, var(--wtapp-shell-surface-strong) 98%, transparent);
	border: 1px solid var(--wtapp-wallet-line);
}

.wtapp-wallet-page__pack-card.is-featured {
	border-color: color-mix(in srgb, var(--wtapp-shell-brand) 34%, var(--wtapp-wallet-line));
	box-shadow: 0 10px 24px color-mix(in srgb, var(--wtapp-shell-brand) 10%, transparent);
}

.wtapp-wallet-page__pack-copy,
.wtapp-wallet-page__pack-head {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.wtapp-wallet-page__pack-head {
	gap: 8px;
}

.wtapp-wallet-page__pack-copy h4,
.wtapp-wallet-page__pack-copy p {
	margin: 0;
}

.wtapp-wallet-page__pack-copy h4 {
	font-size: 1.15rem;
	line-height: 1.15;
	color: var(--wtapp-shell-ink);
}

.wtapp-wallet-page__pack-copy p {
	color: #2f9a63;
	font-size: 1rem;
	line-height: 1.4;
}

.wtapp-wallet-page__pack-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: flex-start;
	padding: 6px 12px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--wtapp-shell-brand) 12%, #eff6ff);
	color: var(--wtapp-shell-brand);
	font-size: 0.8rem;
	font-weight: 800;
}

.wtapp-wallet-page__pack-price {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 102px;
	min-height: 52px;
	padding: 0 18px;
	border-radius: 999px;
	background: #11182d;
	color: #fff;
	font-size: 1.18rem;
	font-weight: 800;
	white-space: nowrap;
}

html[data-wtapp-public-theme="dark"] body.wtapp-shell-body.wtapp-route-app .wtapp-wallet-page__title,
html[data-wtapp-public-theme="dark"] body.wtapp-shell-body.wtapp-route-app .wtapp-wallet-page__aside-title {
	color: #eef4ff;
}

html[data-wtapp-public-theme="dark"] body.wtapp-shell-body.wtapp-route-app .wtapp-wallet-page__aside-badge.is-positive {
	color: #9be2b5;
}

html[data-wtapp-public-theme="dark"] body.wtapp-shell-body.wtapp-route-app .wtapp-wallet-page__pack-card {
	background: color-mix(in srgb, var(--wtapp-shell-surface-strong) 94%, transparent);
	border-color: color-mix(in srgb, var(--wtapp-wallet-line) 84%, transparent);
}

html[data-wtapp-public-theme="dark"] body.wtapp-shell-body.wtapp-route-app .wtapp-wallet-page__pack-card.is-featured {
	border-color: color-mix(in srgb, var(--wtapp-shell-brand) 42%, var(--wtapp-wallet-line));
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

html[data-wtapp-public-theme="dark"] body.wtapp-shell-body.wtapp-route-app .wtapp-wallet-page__pack-copy h4 {
	color: #eef4ff;
}

html[data-wtapp-public-theme="dark"] body.wtapp-shell-body.wtapp-route-app .wtapp-wallet-page__pack-copy p {
	color: #7fe0a9;
}

html[data-wtapp-public-theme="dark"] body.wtapp-shell-body.wtapp-route-app .wtapp-wallet-page__pack-badge {
	background: color-mix(in srgb, var(--wtapp-shell-brand) 18%, var(--wtapp-shell-surface-strong));
	color: #9bc5ff;
}

html[data-wtapp-public-theme="dark"] body.wtapp-shell-body.wtapp-route-app .wtapp-wallet-page__pack-price {
	background: color-mix(in srgb, #11182d 78%, #020617);
	color: #f8fbff;
}

html[data-wtapp-public-theme="dark"] body.wtapp-shell-body.wtapp-route-app .wtapp-wallet-page__tip,
html[data-wtapp-public-theme="dark"] body.wtapp-shell-body.wtapp-route-app .wtapp-wallet-page__pending,
html[data-wtapp-public-theme="dark"] body.wtapp-shell-body.wtapp-route-app .wtapp-wallet-page__packs,
html[data-wtapp-public-theme="dark"] body.wtapp-shell-body.wtapp-route-app .wtapp-wallet-page__usage-item,
html[data-wtapp-public-theme="dark"] body.wtapp-shell-body.wtapp-route-app .wtapp-wallet-page__aside-meter {
	background: color-mix(in srgb, var(--wtapp-shell-surface) 96%, transparent);
	border-color: color-mix(in srgb, var(--wtapp-wallet-line) 82%, transparent);
}

html[data-wtapp-public-theme="dark"] body.wtapp-shell-body.wtapp-route-app .wtapp-wallet-dashboard__rich-content input[type="number"],
html[data-wtapp-public-theme="dark"] body.wtapp-shell-body.wtapp-route-app .wtapp-wallet-dashboard__rich-content input[type="text"],
html[data-wtapp-public-theme="dark"] body.wtapp-shell-body.wtapp-route-app .wtapp-wallet-dashboard__rich-content input[type="email"],
html[data-wtapp-public-theme="dark"] body.wtapp-shell-body.wtapp-route-app .wtapp-wallet-dashboard__rich-content select,
html[data-wtapp-public-theme="dark"] body.wtapp-shell-body.wtapp-route-app .wtapp-wallet-dashboard__rich-content textarea {
	background: color-mix(in srgb, var(--wtapp-shell-surface-strong) 88%, transparent);
	border-color: color-mix(in srgb, var(--wtapp-wallet-line) 78%, transparent);
	color: #eef4ff;
}

html[data-wtapp-public-theme="dark"] body.wtapp-shell-body.wtapp-route-app .wtapp-wallet-dashboard__rich-content th {
	color: #b6c5e2;
}

html[data-wtapp-public-theme="dark"] body.wtapp-shell-body.wtapp-route-app .wtapp-wallet-dashboard__rich-content td,
html[data-wtapp-public-theme="dark"] body.wtapp-shell-body.wtapp-route-app .wtapp-wallet-page__usage-item p,
html[data-wtapp-public-theme="dark"] body.wtapp-shell-body.wtapp-route-app .wtapp-wallet-page__tip p,
html[data-wtapp-public-theme="dark"] body.wtapp-shell-body.wtapp-route-app .wtapp-wallet-page__summary,
html[data-wtapp-public-theme="dark"] body.wtapp-shell-body.wtapp-route-app .wtapp-wallet-page__aside-meter-head,
html[data-wtapp-public-theme="dark"] body.wtapp-shell-body.wtapp-route-app .wtapp-card-summary {
	color: #b6c5e2;
}

html[data-wtapp-public-theme="dark"] body.wtapp-shell-body.wtapp-route-app .wtapp-wallet-page__usage-item h3,
html[data-wtapp-public-theme="dark"] body.wtapp-shell-body.wtapp-route-app .wtapp-wallet-page__subheading,
html[data-wtapp-public-theme="dark"] body.wtapp-shell-body.wtapp-route-app .wtapp-card-title,
html[data-wtapp-public-theme="dark"] body.wtapp-shell-body.wtapp-route-app .wtapp-wallet-page__aside-meter-head strong {
	color: #eef4ff;
}

.wtapp-surface--monetization-note {
	padding: 28px;
}

.wtapp-monetization-note {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
	gap: 20px;
	align-items: start;
}

.wtapp-monetization-note__eyebrow {
	margin: 0 0 8px;
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wtapp-brand);
}

.wtapp-monetization-note__meta {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 20px;
	border-radius: 22px;
	background: rgba(255, 252, 247, 0.82);
	border: 1px solid rgba(33, 72, 188, 0.12);
}

.wtapp-monetization-note__wallet {
	margin: 0;
	font-weight: 700;
	color: var(--wtapp-brand-deep);
}

.wtapp-monetization-note__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.wtapp-article {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.wtapp-article__media img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 24px;
}

.wtapp-novel-cover,
.wtapp-novel-meta {
	min-width: 0;
}

.wtapp-novel-cover {
	position: sticky;
	top: 108px;
	align-self: start;
}

.wtapp-surface--novel-meta {
	padding: 28px;
}

.wtapp-surface--chapters {
	padding: 28px;
}

.wtapp-account-form-wrap {
	max-width: 760px;
	margin: 0 auto;
}

.wtapp-panel-form,
.wtapp-auth-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.wtapp-form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.wtapp-card-title {
	margin: 0;
	font-family: var(--wtapp-font-display);
	font-size: clamp(1.35rem, 2vw, 1.75rem);
	line-height: 1.1;
	color: var(--wtapp-brand-deep);
}

.wtapp-card-summary {
	margin: 0;
	color: var(--wtapp-muted);
	line-height: 1.6;
}

.wtapp-feature-list {
	margin: 0;
	padding-left: 20px;
	display: grid;
	gap: 10px;
	color: var(--wtapp-muted);
}

.wtapp-feature-list li::marker {
	color: var(--wtapp-brand);
}

.wtapp-auth-links {
	margin: 4px 0 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	color: var(--wtapp-muted);
}

.wtapp-auth-links a,
.wtapp-inline-link {
	color: var(--wtapp-brand-deep);
	font-weight: 700;
	text-decoration: none;
}

/* Auth modal (tabbed Sign In / Sign Up) */
.wtapp-auth-modal__header {
	margin-bottom: 12px;
}

.wtapp-auth-modal__title {
	margin: 0;
	font-size: 1.35rem;
	font-weight: 700;
	color: var(--wtapp-brand-deep);
}

.wtapp-auth-modal__tabs {
	display: flex;
	gap: 0;
	border-bottom: 1px solid rgba(33, 72, 188, 0.14);
	margin-bottom: 20px;
}

.wtapp-auth-modal__tab {
	padding: 10px 16px 12px;
	font-weight: 700;
	color: var(--wtapp-muted);
	background: none;
	border: 0;
	border-bottom: 3px solid transparent;
	cursor: pointer;
	text-decoration: none;
	font-size: 1rem;
}

.wtapp-auth-modal__tab:hover {
	color: var(--wtapp-brand-deep);
}

.wtapp-auth-modal__tab.is-active {
	color: var(--wtapp-brand-deep);
	border-bottom-color: var(--wtapp-brand);
}

.wtapp-auth-modal__panel {
	display: none;
}

.wtapp-auth-modal__panel.is-active {
	display: block;
}

.wtapp-auth-modal__forgot-link,
.wtapp-auth-modal__switch-tab,
.wtapp-auth-modal__back {
	background: none;
	border: 0;
	padding: 0;
	font: inherit;
	color: var(--wtapp-brand-deep);
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
}

.wtapp-auth-modal__forgot-link:hover,
.wtapp-auth-modal__switch-tab:hover,
.wtapp-auth-modal__back:hover {
	text-decoration: underline;
}

.wtapp-turnstile {
	margin: 12px 0;
	min-height: 65px;
}

.wtapp-auth-divider {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 4px 0;
	color: var(--wtapp-muted);
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.wtapp-auth-divider::before {
	content: "";
	position: absolute;
	inset: 50% 0 auto;
	border-top: 1px solid rgba(33, 72, 188, 0.14);
}

.wtapp-auth-divider span {
	position: relative;
	z-index: 1;
	padding: 0 12px;
	background: rgba(255, 252, 247, 0.94);
}

.wtapp-google-auth {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 44px;
}

.wtapp-google-auth__button {
	width: min(100%, 320px);
	margin: 0 auto;
}

.wtapp-google-auth__button > div,
.wtapp-google-auth__button iframe {
	margin: 0 auto;
}

.wtapp-inline-link--button {
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	font: inherit;
}

.wtapp-inline-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.wtapp-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--wtapp-brand-deep);
}

.wtapp-field input,
.wtapp-field textarea,
.wtapp-field select {
	width: 100%;
	border-radius: 18px;
	border: 1px solid rgba(33, 72, 188, 0.14);
	background: rgba(255, 255, 255, 0.96);
	padding: 14px 16px;
	font: inherit;
	font-weight: 400;
	color: var(--wtapp-ink);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.wtapp-field textarea {
	min-height: 144px;
	resize: vertical;
}

.wtapp-field input:focus,
.wtapp-field textarea:focus,
.wtapp-field select:focus {
	outline: none;
	border-color: rgba(54, 102, 244, 0.4);
	box-shadow: 0 0 0 4px rgba(54, 102, 244, 0.12);
}

.wtapp-field input.is-invalid,
.wtapp-field textarea.is-invalid,
.wtapp-field select.is-invalid {
	border-color: #b33b28;
	box-shadow: 0 0 0 4px rgba(179, 59, 40, 0.12);
}

.wtapp-check {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--wtapp-muted);
	font-weight: 600;
}

.wtapp-check input {
	margin: 0;
}

.wtapp-form-errors[hidden] {
	display: none;
}

.wtapp-form-errors:not([hidden]) {
	display: block;
	padding: 14px 16px;
	border-radius: 18px;
	background: rgba(179, 59, 40, 0.08);
	border: 1px solid rgba(179, 59, 40, 0.18);
	color: #8c2c1f;
}

.wtapp-form-errors p {
	margin: 0;
}

.wtapp-form-errors p + p {
	margin-top: 8px;
}

.wtapp-stat-line {
	margin: 0;
	color: var(--wtapp-muted);
	line-height: 1.6;
}

.wtapp-card-list {
	display: grid;
	gap: 14px;
}

.wtapp-card-list__item {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 18px 20px;
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid rgba(33, 72, 188, 0.12);
}

.wtapp-card-list__item h3,
.wtapp-card-list__item p {
	margin: 0;
}

.wtapp-card-list__item h3 {
	font-size: 1.08rem;
	line-height: 1.3;
}

.wtapp-card-list__item h3 a {
	color: var(--wtapp-brand-deep);
	text-decoration: none;
}

.wtapp-card-list__item p {
	color: var(--wtapp-muted);
	line-height: 1.6;
}

.wtapp-card-list__eyebrow {
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wtapp-brand);
}

.wtapp-card-list__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 14px;
	font-size: 0.9rem;
}

.wtapp-card-list__meta span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.wtapp-card-list__item--update.is-unread {
	border-color: rgba(168, 91, 39, 0.28);
	box-shadow: 0 14px 28px rgba(168, 91, 39, 0.08);
}

body.wtapp-shell-body.wtapp-route-app .wtapp-screen--app-home {
	gap: 14px;
	--wtapp-app-home-card-bg: color-mix(in srgb, var(--wtapp-shell-surface-strong) 96%, transparent);
	--wtapp-app-home-soft-bg: color-mix(in srgb, var(--wtapp-shell-surface) 90%, transparent);
	--wtapp-app-home-soft-strong-bg: color-mix(in srgb, var(--wtapp-shell-surface) 88%, transparent);
	--wtapp-app-home-cover-bg:
		linear-gradient(
			180deg,
			color-mix(in srgb, var(--wtapp-shell-surface-strong) 82%, #e2e8f0 18%),
			color-mix(in srgb, var(--wtapp-shell-surface) 88%, #cbd5e1 12%)
		);
	--wtapp-app-home-hero-start: var(--wtapp-shell-brand);
	--wtapp-app-home-hero-end: #11b5de;
	--wtapp-app-home-hero-soft-bg: rgba(255, 255, 255, 0.12);
	--wtapp-app-home-hero-soft-border: rgba(255, 255, 255, 0.18);
	--wtapp-app-home-hero-solid-bg: #ffffff;
	--wtapp-app-home-hero-solid-ink: var(--wtapp-shell-brand-deep);
	--wtapp-app-home-shadow: 0 10px 28px color-mix(in srgb, var(--wtapp-shell-ink) 8%, transparent);
}

html[data-wtapp-public-theme="dark"] body.wtapp-shell-body.wtapp-route-app .wtapp-screen--app-home {
	--wtapp-app-home-card-bg: color-mix(in srgb, var(--wtapp-shell-surface-strong) 92%, transparent);
	--wtapp-app-home-soft-bg: color-mix(in srgb, var(--wtapp-shell-surface) 94%, transparent);
	--wtapp-app-home-soft-strong-bg: color-mix(in srgb, var(--wtapp-shell-surface) 92%, transparent);
	--wtapp-app-home-cover-bg:
		linear-gradient(
			180deg,
			color-mix(in srgb, var(--wtapp-shell-brand) 14%, var(--wtapp-shell-surface-strong)),
			color-mix(in srgb, var(--wtapp-shell-brand-deep) 10%, var(--wtapp-shell-surface))
		);
	--wtapp-app-home-hero-start: color-mix(in srgb, var(--wtapp-shell-brand) 82%, #13203b 18%);
	--wtapp-app-home-hero-end: color-mix(in srgb, #11b5de 70%, #0f172a 30%);
	--wtapp-app-home-hero-soft-bg: rgba(255, 255, 255, 0.08);
	--wtapp-app-home-hero-soft-border: rgba(255, 255, 255, 0.14);
	--wtapp-app-home-hero-solid-bg: color-mix(in srgb, var(--wtapp-shell-surface-strong) 92%, transparent);
	--wtapp-app-home-hero-solid-ink: #eef4ff;
	--wtapp-app-home-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}

body.wtapp-shell-body.wtapp-route-app .wtapp-surface--dashboard-home {
	padding: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
}

.wtapp-app-home-dashboard {
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr) 320px;
	gap: 18px;
	align-items: start;
	font-size: 0.94rem;
}

.wtapp-app-home-dashboard__sidebar,
.wtapp-app-home-dashboard__main,
.wtapp-app-home-dashboard__rail {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.wtapp-app-home-card {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 18px;
	border-radius: 28px;
	border: 1px solid var(--wtapp-shell-line);
	background: var(--wtapp-app-home-card-bg);
	box-shadow: var(--wtapp-app-home-shadow);
}

.wtapp-app-home-card__title {
	margin: 0;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 800;
	line-height: 1.2;
	color: var(--wtapp-shell-ink);
}

.wtapp-app-home-card__title--light {
	color: #fff;
}

.wtapp-app-home-card__muted {
	margin: 0;
	color: var(--wtapp-shell-muted);
	line-height: 1.5;
}

.wtapp-app-home-card__muted--light {
	color: rgba(247, 250, 255, 0.88);
}

.wtapp-app-home-kicker {
	margin: 0;
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--wtapp-shell-muted);
}

.wtapp-app-home-kicker--light {
	color: rgba(247, 250, 255, 0.9);
}

.wtapp-app-home-profile {
	display: flex;
	align-items: center;
	gap: 14px;
}

.wtapp-app-home-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	flex: 0 0 64px;
	border-radius: 18px;
	background: linear-gradient(135deg, var(--wtapp-shell-brand), var(--wtapp-app-home-hero-end));
	color: #fff;
	font-size: 1.55rem;
	font-weight: 800;
	overflow: hidden;
}

.wtapp-app-home-avatar img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wtapp-app-home-profile__copy {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.wtapp-app-home-meter {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 14px 16px;
	border-radius: 22px;
	background: var(--wtapp-app-home-soft-strong-bg);
}

.wtapp-app-home-meter__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	color: var(--wtapp-shell-muted);
	font-size: 0.88rem;
}

.wtapp-app-home-meter__head strong {
	color: var(--wtapp-shell-ink);
	font-size: 0.98rem;
}

.wtapp-app-home-meter__track {
	position: relative;
	display: block;
	width: 100%;
	height: 12px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--wtapp-shell-brand) 12%, var(--wtapp-shell-line));
	overflow: hidden;
}

.wtapp-app-home-meter__fill {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--wtapp-shell-brand), #16b3e8);
}

.wtapp-app-home-nav {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.wtapp-app-home-nav__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-height: 30px;
	padding: 5px 8px;
	border-radius: 999px;
	color: var(--wtapp-shell-ink);
	font-size: 0.92rem;
	font-weight: 700;
	text-decoration: none;
}

.wtapp-app-home-nav__link.is-active {
	background: linear-gradient(135deg, var(--wtapp-shell-brand), var(--wtapp-shell-brand-deep));
	color: #fff;
}

.wtapp-app-home-nav__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 26px;
	height: 20px;
	padding: 0 8px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--wtapp-shell-brand) 12%, var(--wtapp-app-home-card-bg));
	color: var(--wtapp-shell-brand);
	font-size: 0.76rem;
	font-weight: 800;
}

.wtapp-app-home-card--tip {
	background: linear-gradient(135deg, var(--wtapp-app-home-hero-start), var(--wtapp-app-home-hero-end));
	border-color: transparent;
}

.wtapp-app-home-card--hero {
	padding: 0;
	overflow: hidden;
}

.wtapp-app-home-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 16px;
	padding: 20px 22px;
	background: linear-gradient(135deg, var(--wtapp-app-home-hero-start), var(--wtapp-app-home-hero-end));
}

.wtapp-app-home-hero__copy {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.wtapp-app-home-hero__title {
	margin: 0;
	max-width: 11ch;
	font-family: inherit;
	font-size: clamp(1.9rem, 3vw, 2.6rem);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.03em;
	color: #fff;
}

.wtapp-app-home-hero__actions {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
}

.wtapp-app-home-mini-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 30px;
	padding: 5px 8px;
	border-radius: 999px;
	border: 1px solid transparent;
	font-size: 0.85rem;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.wtapp-app-home-mini-button--solid {
	background: var(--wtapp-app-home-hero-solid-bg);
	color: var(--wtapp-app-home-hero-solid-ink);
}

.wtapp-app-home-mini-button--soft {
	background: var(--wtapp-app-home-hero-soft-bg);
	border-color: var(--wtapp-app-home-hero-soft-border);
	color: #fff;
}

.wtapp-app-home-mini-button--ghost {
	background: color-mix(in srgb, var(--wtapp-shell-surface) 90%, transparent);
	border-color: var(--wtapp-shell-line);
	color: var(--wtapp-shell-ink);
}

.wtapp-app-home-stat-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	padding: 16px 18px 18px;
}

.wtapp-app-home-stat {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 14px;
	border-radius: 22px;
	border: 1px solid var(--wtapp-shell-line);
	background: var(--wtapp-app-home-soft-bg);
	text-decoration: none;
}

.wtapp-app-home-stat__label {
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wtapp-shell-muted);
}

.wtapp-app-home-stat__value {
	color: var(--wtapp-shell-ink);
	font-size: 1.1rem;
	font-weight: 800;
	line-height: 1;
}

.wtapp-app-home-section-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.wtapp-app-home-inline-link {
	display: inline-flex;
	align-items: center;
	min-height: 30px;
	padding: 5px 8px;
	color: var(--wtapp-shell-brand);
	font-size: 0.86rem;
	font-weight: 700;
	text-decoration: none;
}

.wtapp-app-home-reading-list,
.wtapp-app-home-update-list,
.wtapp-app-home-recommended-list {
	display: grid;
	gap: 16px;
}

.wtapp-app-home-reading-card {
	display: grid;
	grid-template-columns: 108px minmax(0, 1fr);
	gap: 16px;
	padding: 16px;
	border-radius: 26px;
	border: 1px solid var(--wtapp-shell-line);
	background: var(--wtapp-app-home-soft-bg);
}

.wtapp-app-home-reading-card__cover {
	min-height: 152px;
	border-radius: 22px;
	background: var(--wtapp-app-home-cover-bg);
}

.wtapp-app-home-reading-card__content {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
}

.wtapp-app-home-reading-card__top,
.wtapp-app-home-reading-card__progress-head,
.wtapp-app-home-goals-card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.wtapp-app-home-reading-card__tags {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	min-width: 0;
}

.wtapp-app-home-tag {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 24px;
	padding: 0 10px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--wtapp-shell-brand) 10%, var(--wtapp-app-home-card-bg));
	color: var(--wtapp-shell-brand);
	font-size: 0.8rem;
	font-weight: 700;
}

.wtapp-app-home-reading-card__chapter-title,
.wtapp-app-home-reading-card__time,
.wtapp-app-home-goals-card__meta,
.wtapp-app-home-update-card__time {
	color: var(--wtapp-shell-muted);
	font-size: 0.88rem;
}

.wtapp-app-home-reading-card__title,
.wtapp-app-home-update-card__title,
.wtapp-app-home-recommended-item__title {
	margin: 0;
	font-size: 0.98rem;
	line-height: 1.25;
	color: var(--wtapp-shell-ink);
}

.wtapp-app-home-reading-card__title a,
.wtapp-app-home-update-card__title a {
	color: inherit;
	text-decoration: none;
}

.wtapp-app-home-reading-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.wtapp-app-home-quick-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.wtapp-app-home-quick-link,
.wtapp-app-home-update-card,
.wtapp-app-home-goals-card,
.wtapp-app-home-recommended-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
	border-radius: 22px;
	border: 1px solid var(--wtapp-shell-line);
	background: var(--wtapp-app-home-soft-bg);
}

.wtapp-app-home-quick-link {
	text-decoration: none;
}

.wtapp-app-home-quick-link__glyph {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	flex: 0 0 34px;
	border-radius: 14px;
	background: color-mix(in srgb, var(--wtapp-shell-brand) 10%, var(--wtapp-app-home-card-bg));
	color: var(--wtapp-shell-brand);
	font-size: 0.88rem;
	font-weight: 800;
}

.wtapp-app-home-quick-link__label {
	flex: 1;
	color: var(--wtapp-shell-ink);
	font-size: 0.96rem;
	font-weight: 700;
}

.wtapp-app-home-update-card,
.wtapp-app-home-goals-card {
	flex-direction: column;
	align-items: stretch;
}

.wtapp-app-home-recommended-item__title {
	flex: 1;
}

.wtapp-app-home-mini-button:focus-visible,
.wtapp-app-home-inline-link:focus-visible,
.wtapp-app-home-nav__link:focus-visible,
.wtapp-app-home-stat:focus-visible,
.wtapp-app-home-quick-link:focus-visible,
.wtapp-app-home-update-card__title a:focus-visible,
.wtapp-app-home-reading-card__title a:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--wtapp-shell-brand) 36%, transparent);
	outline-offset: 3px;
}

.wtapp-library-toggle[data-saved="1"],
.wtapp-inline-link--button.wtapp-library-toggle[data-saved="1"] {
	color: var(--wtapp-brand);
}

.wtapp-surface--workspace {
	min-height: 420px;
}

.wtapp-surface--workspace > *:first-child,
.wtapp-surface--wallet > *:first-child,
.wtapp-surface--tts > *:first-child {
	margin-top: 0;
}

.wtapp-surface--workspace table,
.wtapp-surface--wallet table {
	width: 100%;
}

.wtapp-footer__group,
.wtapp-footer__intro {
	min-width: 0;
}

.wtapp-modal-root {
	position: fixed;
	inset: 0;
	z-index: 80;
	pointer-events: none;
}

.wtapp-modal-root.is-active {
	pointer-events: auto;
}

.wtapp-modal {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 28px;
}

.wtapp-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(31, 27, 24, 0.45);
	backdrop-filter: blur(6px);
}

.wtapp-modal__panel {
	position: relative;
	z-index: 1;
	width: min(720px, 100%);
	max-height: min(86vh, 920px);
	overflow: auto;
	padding: 28px;
	border-radius: 28px;
	background: var(--wtapp-surface-strong);
	border: 1px solid rgba(33, 72, 188, 0.12);
	box-shadow: 0 28px 60px rgba(33, 22, 10, 0.24);
}

.wtapp-modal__body {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.wtapp-modal__close {
	position: absolute;
	top: 16px;
	right: 16px;
	border: 0;
	border-radius: 999px;
	padding: 10px 14px;
	background: rgba(54, 102, 244, 0.08);
	color: var(--wtapp-brand-deep);
	font-weight: 700;
	cursor: pointer;
}

.wtapp-modal--sheet {
	align-items: flex-end;
	padding: 0;
}

.wtapp-modal__panel--sheet {
	width: min(760px, 100%);
	max-height: min(90dvh, 820px);
	margin: 0 auto;
	border-radius: 28px 28px 0 0;
	padding: 58px 22px calc(28px + var(--wtapp-safe-bottom));
}

.wtapp-modal__panel--search,
.wtapp-modal__panel--auth {
	background:
		radial-gradient(circle at top right, rgba(54, 102, 244, 0.16), transparent 28%),
		var(--wtapp-surface-strong);
}

/* Auth modal: centered, narrower (public theme overrides in theme.css) */
.wtapp-modal--sheet:has(.wtapp-modal__panel--auth) {
	align-items: center;
	justify-content: center;
	padding: 28px;
}

.wtapp-modal--sheet:has(.wtapp-modal__panel--auth) .wtapp-modal__panel--auth {
	width: min(420px, 100%);
	max-height: min(88vh, 720px);
	margin: 0;
	border-radius: 28px;
	padding: 28px 24px 24px;
}

.wtapp-sheet {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.wtapp-sheet--monetization {
	gap: 18px;
}

.wtapp-monetization-sheet__facts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.wtapp-monetization-sheet__fact {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 14px 16px;
	border-radius: 18px;
	background: rgba(255, 252, 247, 0.84);
	border: 1px solid rgba(33, 72, 188, 0.1);
}

.wtapp-monetization-sheet__fact-label {
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wtapp-copy-soft);
}

.wtapp-monetization-sheet__fact-value {
	font-size: 1rem;
	font-weight: 700;
	color: var(--wtapp-brand-deep);
}

.wtapp-monetization-sheet__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.wtapp-monetization-sheet__restriction {
	padding: 16px;
	border-radius: 20px;
	background: rgba(255, 252, 247, 0.84);
	border: 1px solid rgba(33, 72, 188, 0.1);
}

.wtapp-monetization-sheet__restriction > *:first-child,
.wtapp-monetization-sheet__restriction .urcr-restrict-msg > *:first-child {
	margin-top: 0;
}

.wtapp-monetization-sheet__restriction > *:last-child,
.wtapp-monetization-sheet__restriction .urcr-restrict-msg > *:last-child {
	margin-bottom: 0;
}

.wtapp-monetization-sheet__modules {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.wtapp-sheet__actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-top: 6px;
}

.wtapp-toast--success {
	background: rgba(31, 101, 68, 0.94);
}

.wtapp-toast--error {
	background: rgba(140, 44, 31, 0.96);
}

.wtapp-toast--warning {
	background: rgba(33, 72, 188, 0.96);
}

body.wtapp-is-loading .wtapp-topbar {
	pointer-events: none;
}

@media (max-width: 1200px) {
	.wtapp-app-home-dashboard {
		grid-template-columns: 240px minmax(0, 1fr) 280px;
	}

	.wtapp-app-home-stat-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.wtapp-wallet-page__primary,
	.wtapp-wallet-page__secondary {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 900px) {
	.wtapp-auth-layout,
	.wtapp-wallet-grid,
	.wtapp-dashboard-grid,
	.wtapp-retention-summary-grid,
	.wtapp-novel-layout {
		grid-template-columns: 1fr;
	}

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

	.wtapp-monetization-note,
	.wtapp-monetization-sheet__facts {
		grid-template-columns: 1fr;
	}

	.wtapp-form-grid {
		grid-template-columns: 1fr;
	}

	.wtapp-novel-cover {
		position: static;
	}

	.wtapp-app-home-dashboard {
		grid-template-columns: 1fr;
	}

	.wtapp-app-home-dashboard__main {
		order: 1;
	}

	.wtapp-app-home-dashboard__sidebar {
		order: 2;
	}

	.wtapp-app-home-dashboard__rail {
		order: 3;
	}

	.wtapp-app-home-hero,
	.wtapp-app-home-reading-card {
		grid-template-columns: 1fr;
	}

	.wtapp-app-home-hero__actions {
		align-items: flex-start;
	}

	.wtapp-wallet-page__header,
	.wtapp-wallet-page__overview-top {
		grid-template-columns: 1fr;
	}

	.wtapp-wallet-page__header-actions {
		justify-content: flex-start;
	}

	.wtapp-wallet-page__stat-grid,
	.wtapp-wallet-page__action-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.wtapp-surface--auth,
	.wtapp-surface--dashboard,
	.wtapp-surface--library,
	.wtapp-surface--account-form,
	.wtapp-surface--wallet,
	.wtapp-surface--tts,
	.wtapp-surface--workspace,
	.wtapp-panel,
	.wtapp-auth-card,
	.wtapp-auth-aside,
	.wtapp-library-section {
		padding: 20px;
	}

	.wtapp-member-tools,
	.wtapp-auth-tools {
		width: 100%;
	}

	.wtapp-header-account,
	.wtapp-badge-link,
	.wtapp-header-action {
		width: 100%;
	}

	.wtapp-modal {
		padding: 16px;
	}

	.wtapp-modal__panel {
		padding: 24px 18px;
	}

	.wtapp-app-home-card {
		padding: 16px;
		border-radius: 24px;
	}

	.wtapp-app-home-hero {
		padding: 18px;
	}

	.wtapp-app-home-hero__title {
		max-width: none;
		font-size: 1.95rem;
	}

	.wtapp-app-home-hero__actions,
	.wtapp-app-home-reading-card__actions,
	.wtapp-app-home-goals-card__meta,
	.wtapp-app-home-reading-card__top,
	.wtapp-app-home-reading-card__progress-head,
	.wtapp-app-home-section-head {
		flex-direction: column;
		align-items: flex-start;
	}

	.wtapp-app-home-stat-grid,
	.wtapp-app-home-quick-grid {
		grid-template-columns: 1fr;
	}

	.wtapp-wallet-dashboard__section {
		padding: 18px;
		border-radius: 24px;
	}

	.wtapp-wallet-dashboard__rich-content .myCRED-buy-form,
	.wtapp-wallet-dashboard__rich-content .myCRED-buy-form form,
	.wtapp-wallet-dashboard__rich-content form {
		flex-direction: column;
		align-items: stretch;
	}

	.wtapp-wallet-dashboard__rich-content button,
	.wtapp-wallet-dashboard__rich-content input[type="submit"],
	.wtapp-wallet-dashboard__rich-content .button,
	.wtapp-wallet-dashboard__rich-content .btn {
		width: 100%;
	}

	.wtapp-wallet-dashboard__rich-content--history table,
	.wtapp-wallet-dashboard__rich-content--pending table {
		min-width: 560px;
	}

	.wtapp-wallet-page__title {
		font-size: clamp(1.9rem, 10vw, 2.8rem);
	}

	.wtapp-wallet-page__summary,
	.wtapp-wallet-page__overview-text {
		font-size: 0.98rem;
	}

	.wtapp-wallet-page__overview,
	.wtapp-wallet-page__usage-item,
	.wtapp-wallet-page__pending,
	.wtapp-wallet-page__tip {
		border-radius: 24px;
	}

	.wtapp-wallet-page__overview {
		padding: 20px;
	}

	.wtapp-wallet-page__stat-grid,
	.wtapp-wallet-page__action-grid {
		grid-template-columns: 1fr;
	}

	.wtapp-wallet-page__header-actions,
	.wtapp-wallet-page__header-actions .wtapp-button {
		width: 100%;
	}

	.wtapp-wallet-page__header-actions .wtapp-button {
		justify-content: center;
	}

	.wtapp-app-home-quick-link,
	.wtapp-app-home-recommended-item {
		align-items: flex-start;
	}

	.wtapp-app-home-mini-button,
	.wtapp-app-home-inline-link,
	.wtapp-app-home-nav__link {
		width: 100%;
	}
}


/* assets/css/components/mobile-shell.css */
body.wtapp-mobile-drawer-open,
body.wtapp-mobile-sheet-open {
	overflow: hidden;
}

.wtapp-mobile-support:not(.is-hidden) {
	position: fixed;
	left: 24px;
	bottom: 24px;
	z-index: 59;
	display: block;
	pointer-events: none;
}

.wtapp-mobile-support__link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 18px;
	background: linear-gradient(135deg, #ff38b8, #ff4f95);
	color: #fff;
	text-decoration: none;
	box-shadow: 0 14px 28px rgba(255, 56, 184, 0.28);
	pointer-events: auto;
	transition: transform 160ms ease, box-shadow 160ms ease;
}

.wtapp-mobile-support__link:hover,
.wtapp-mobile-support__link:focus-visible {
	transform: translateY(-1px);
	box-shadow: 0 18px 36px rgba(255, 56, 184, 0.32);
}

.wtapp-mobile-support__link:focus-visible {
	outline: 3px solid rgba(255, 56, 184, 0.28);
	outline-offset: 3px;
}

.wtapp-mobile-support__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	flex: 0 0 26px;
}

.wtapp-mobile-support__icon svg {
	width: 22px;
	height: 22px;
}

@media (max-width: 860px) {
	#page[data-shell-mode="public"] .wtapp-topbar__inner {
		display: none;
	}

	#page[data-shell-mode="public"] .wtapp-mobile-topbar:not(.is-hidden) {
		display: block;
	}

	#page[data-shell-mode="public"] .wtapp-mobile-topbar__inner {
		display: grid;
		grid-template-columns: auto minmax(0, 1fr) auto;
		align-items: center;
		gap: 10px;
		width: min(calc(100% - 20px), var(--wtapp-width));
		margin: 0 auto;
		padding: calc(12px + var(--wtapp-safe-top)) 0 12px;
	}

	#page[data-shell-mode="public"] .wtapp-mobile-brand {
		display: inline-flex;
		align-items: center;
		min-width: 0;
		text-decoration: none;
	}

	#page[data-shell-mode="public"] .wtapp-mobile-brand__title {
		font-family: var(--wtapp-font-display);
		font-size: 1.15rem;
		font-weight: 700;
		color: var(--wtapp-brand-deep);
	}

	#page[data-shell-mode="public"] .wtapp-mobile-topbar__title {
		min-width: 0;
		padding: 0 4px;
		font-size: 0.96rem;
		font-weight: 700;
		color: var(--wtapp-brand-deep);
		text-align: center;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	#page[data-shell-mode="public"] .wtapp-mobile-header-action {
		min-height: 42px;
		padding-inline: 12px;
	}

	#page[data-shell-mode="public"] .wtapp-rewarded-entry--mobile {
		display: inline-flex;
		align-items: center;
	}

	#page[data-shell-mode="public"] .wtapp-rewarded-entry__mobile-button {
		white-space: nowrap;
		background: linear-gradient(135deg, var(--wtapp-shell-brand), var(--wtapp-shell-brand-deep));
		border-color: transparent;
		color: #fff;
	}

	#page[data-shell-mode="public"] .wtapp-layout {
		width: min(calc(100% - 20px), var(--wtapp-width));
	}

	#page[data-shell-mode="public"] .wtapp-site-content {
		padding: 0;
	}

	#page[data-shell-mode="public"] .wtapp-screen {
		gap: 16px;
	}

	#page[data-shell-mode="public"] .wtapp-surface {
		padding: 0;
		border-radius: 22px;
	}

	#page[data-shell-mode="public"] .wtapp-hero {
		padding: 20px;
		border-radius: 22px;
	}

	#page[data-shell-mode="public"] .wtapp-surface--prose {
		padding: 20px;
	}

	#page[data-shell-mode="public"] .wtapp-hero::after {
		width: 220px;
		height: 220px;
		inset: auto -20% -28% auto;
	}

	#page[data-shell-mode="public"] .wtapp-hero__title {
		font-size: clamp(1.85rem, 9vw, 2.7rem);
	}

	#page[data-shell-mode="public"] .wtapp-hero__summary {
		margin-top: 0;
		line-height: 1.65;
	}

	#page[data-shell-mode="public"] .wtapp-hero__meta {
		margin-top: 18px;
		gap: 10px;
	}

	#page[data-shell-mode="public"] .wtapp-hero__meta-item {
		width: 100%;
		justify-content: space-between;
	}

	#page[data-shell-mode="public"] .wtapp-hero__actions,
	#page[data-shell-mode="public"] .wtapp-inline-actions {
		flex-direction: column;
		align-items: stretch;
	}

	#page[data-shell-mode="public"] .wtapp-hero__actions > *,
	#page[data-shell-mode="public"] .wtapp-inline-actions > * {
		width: 100%;
		justify-content: center;
	}

	#page[data-shell-mode="public"] .wtapp-novel-layout,
	#page[data-shell-mode="public"] .wtapp-meta-card-grid,
	#page[data-shell-mode="public"] .wtapp-post-nav {
		grid-template-columns: 1fr;
	}

	#page[data-shell-mode="public"] .wtapp-novel-cover {
		position: static;
	}

	#page[data-shell-mode="public"] .wtapp-card-list__item,
	#page[data-shell-mode="public"] .wtapp-post-nav__item {
		padding: 16px;
	}

	body.wtapp-shell-body.wtapp-route-public:not(.wtapp-reader-mode) .wtapp-browse-list-card__summary {
		min-height: calc(1.45em * 2);
		-webkit-line-clamp: 2;
	}

	#page[data-shell-mode="public"] .wtapp-prose,
	#page[data-shell-mode="public"] .wtapp-prose p,
	#page[data-shell-mode="public"] .wtapp-prose li {
		font-size: 0.98rem;
		line-height: 1.75;
	}

	#page[data-shell-mode="public"] .wtapp-mobile-tabs:not(.is-hidden) {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 58;
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 8px;
		padding: 10px 8px calc(10px + var(--wtapp-safe-bottom));
		border-radius: 0;
		background: var(--wtapp-shell-surface-strong);
		border: 0;
		border-top: 1px solid var(--wtapp-shell-line);
		box-shadow: 0 -4px 20px color-mix(in srgb, var(--wtapp-shell-ink) 10%, transparent);
		backdrop-filter: none;
	}

	#page[data-shell-mode="public"] .wtapp-mobile-tab {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-height: 48px;
		padding: 0 10px;
		border: 0;
		border-radius: 18px;
		background: transparent;
		color: var(--wtapp-muted);
		text-decoration: none;
		font-family: inherit;
		font-size: 0.88rem;
		font-weight: 700;
		cursor: pointer;
	}

	#page[data-shell-mode="public"] .wtapp-mobile-tab.is-active {
		background: linear-gradient(135deg, var(--wtapp-brand), var(--wtapp-brand-deep));
		color: #fff;
		box-shadow: 0 12px 24px rgba(33, 72, 188, 0.22);
	}

	#page[data-shell-mode="public"] .wtapp-mobile-tab:not(.is-active):active,
	#page[data-shell-mode="public"] .wtapp-mobile-header-action.is-active {
		background: rgba(54, 102, 244, 0.16);
	}

	#page[data-shell-mode="public"] .wtapp-footer__desktop {
		display: none;
	}

	#page[data-shell-mode="public"] #wtapp-footer[data-mobile-footer-variant="hidden"] {
		display: none;
	}

	#page[data-shell-mode="public"] #wtapp-footer[data-mobile-footer-variant="compact"] {
		display: block;
		padding: 0 0 calc(104px + var(--wtapp-safe-bottom));
	}

	#page[data-shell-mode="public"] #wtapp-footer[data-mobile-footer-variant="compact"] .wtapp-footer__mobile {
		display: block;
		width: min(calc(100% - 20px), var(--wtapp-width));
		margin: 0 auto;
	}

	#page[data-mobile-shell-context="app"] .wtapp-topbar__inner {
		display: none;
	}

	#page[data-mobile-shell-context="app"] .wtapp-mobile-topbar:not(.is-hidden) {
		display: block;
	}

	#page[data-mobile-shell-context="app"] .wtapp-mobile-topbar__inner {
		display: grid;
		grid-template-columns: auto minmax(0, 1fr) auto;
		align-items: center;
		gap: 10px;
		width: min(calc(100% - 20px), var(--wtapp-width));
		margin: 0 auto;
		padding: calc(12px + var(--wtapp-safe-top)) 0 12px;
	}

	#page[data-mobile-shell-context="app"] .wtapp-mobile-brand,
	#page[data-mobile-shell-context="app"] .wtapp-mobile-header-action--back {
		justify-self: start;
	}

	#page[data-mobile-shell-context="app"] .wtapp-mobile-brand--app {
		display: inline-flex;
		align-items: center;
		text-decoration: none;
	}

	#page[data-mobile-shell-context="app"] .wtapp-mobile-brand__title {
		font-family: var(--wtapp-font-display);
		font-size: 1.1rem;
		font-weight: 700;
		color: var(--wtapp-brand-deep);
	}

	#page[data-mobile-shell-context="app"] .wtapp-mobile-topbar__title {
		min-width: 0;
		padding: 0 4px;
		font-size: 1rem;
		font-weight: 700;
		color: var(--wtapp-brand-deep);
		text-align: center;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	#page[data-mobile-shell-context="app"] .wtapp-mobile-header-action {
		min-height: 42px;
		padding-inline: 12px;
	}

	#page[data-mobile-shell-context="app"] .wtapp-layout {
		width: min(calc(100% - 20px), var(--wtapp-width));
	}

	#page[data-mobile-shell-context="app"] .wtapp-site-content {
		padding: 16px 0 calc(104px + var(--wtapp-safe-bottom));
	}

	#page[data-mobile-shell-context="app"][data-mobile-header-variant="app-detail"] .wtapp-mobile-topbar__eyebrow {
		display: none;
	}

	#page[data-mobile-shell-context="app"][data-mobile-header-variant="writer-focus"] .wtapp-site-content {
		padding-bottom: 24px;
	}

	#page[data-mobile-shell-context="app"][data-mobile-header-variant="writer-focus"] .wtapp-mobile-topbar__eyebrow,
	#page[data-mobile-shell-context="app"][data-mobile-header-variant="writer-focus"] .wtapp-mobile-topbar__meta {
		display: none;
	}

	#page[data-mobile-shell-context="app"][data-mobile-header-variant="writer-focus"] .wtapp-mobile-topbar__inner {
		padding-bottom: 10px;
	}

	#page[data-mobile-shell-context="app"] .wtapp-screen {
		gap: 16px;
	}

	#page[data-mobile-shell-context="app"] .wtapp-hero,
	#page[data-mobile-shell-context="app"] .wtapp-surface {
		padding: 20px 18px;
		border-radius: 22px;
	}

	#page[data-mobile-shell-context="app"] .wtapp-hero::after {
		width: 220px;
		height: 220px;
		inset: auto -20% -28% auto;
	}

	#page[data-mobile-shell-context="app"] .wtapp-hero__title {
		font-size: clamp(1.75rem, 8vw, 2.55rem);
	}

	#page[data-mobile-shell-context="app"] .wtapp-hero__summary {
		margin-top: 12px;
		line-height: 1.65;
	}

	#page[data-mobile-shell-context="app"] .wtapp-hero__meta {
		margin-top: 18px;
		gap: 10px;
	}

	#page[data-mobile-shell-context="app"] .wtapp-hero__meta-item {
		width: 100%;
		justify-content: space-between;
	}

	#page[data-mobile-shell-context="app"] .wtapp-hero__actions,
	#page[data-mobile-shell-context="app"] .wtapp-inline-actions,
	#page[data-mobile-shell-context="app"] .wtapp-auth-links {
		flex-direction: column;
		align-items: stretch;
	}

	#page[data-mobile-shell-context="app"] .wtapp-hero__actions > *,
	#page[data-mobile-shell-context="app"] .wtapp-inline-actions > *,
	#page[data-mobile-shell-context="app"] .wtapp-auth-links > * {
		width: 100%;
		justify-content: center;
	}

	#page[data-mobile-shell-context="app"] .wtapp-auth-layout,
	#page[data-mobile-shell-context="app"] .wtapp-wallet-grid,
	#page[data-mobile-shell-context="app"] .wtapp-dashboard-grid,
	#page[data-mobile-shell-context="app"] .wtapp-retention-summary-grid,
	#page[data-mobile-shell-context="app"] .wtapp-form-grid {
		grid-template-columns: 1fr;
	}

	#page[data-mobile-shell-context="app"] .wtapp-library-switcher {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	#page[data-mobile-shell-context="app"] .wtapp-account-form-wrap {
		max-width: none;
	}

	#page[data-mobile-shell-context="app"] .wtapp-mobile-tabs:not(.is-hidden) {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 58;
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 8px;
		padding: 10px 8px calc(10px + var(--wtapp-safe-bottom));
		border-radius: 0;
		background: var(--wtapp-shell-surface-strong);
		border: 0;
		border-top: 1px solid var(--wtapp-shell-line);
		box-shadow: 0 -4px 20px color-mix(in srgb, var(--wtapp-shell-ink) 10%, transparent);
		backdrop-filter: none;
	}

	#page[data-mobile-shell-context="app"] .wtapp-mobile-tab {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-height: 48px;
		padding: 0 10px;
		border: 0;
		border-radius: 18px;
		background: transparent;
		color: var(--wtapp-muted);
		text-decoration: none;
		font-family: inherit;
		font-size: 0.88rem;
		font-weight: 700;
		cursor: pointer;
	}

	#page[data-mobile-shell-context="app"] .wtapp-mobile-tab.is-active {
		background: linear-gradient(135deg, var(--wtapp-brand), var(--wtapp-brand-deep));
		color: #fff;
		box-shadow: 0 12px 24px rgba(33, 72, 188, 0.22);
	}

	#page[data-mobile-shell-context="app"] .wtapp-mobile-tab:not(.is-active):active,
	#page[data-mobile-shell-context="app"] .wtapp-mobile-header-action.is-active {
		background: rgba(54, 102, 244, 0.16);
	}

	#page[data-mobile-shell-context="app"] .wtapp-footer__desktop {
		display: none;
	}

	#page[data-mobile-shell-context="app"] #wtapp-footer[data-mobile-footer-variant="hidden"] {
		display: none;
	}

	#page[data-mobile-shell-context="app"] #wtapp-footer[data-mobile-footer-variant="compact"] {
		display: block;
		padding: 0 0 calc(104px + var(--wtapp-safe-bottom));
	}

	#page[data-mobile-shell-context="app"] #wtapp-footer[data-mobile-footer-variant="compact"] .wtapp-footer__mobile {
		display: block;
		width: min(calc(100% - 20px), var(--wtapp-width));
		margin: 0 auto;
	}

	.wtapp-toast-root {
		inset: auto 12px calc(96px + var(--wtapp-safe-bottom)) 12px;
		max-width: none;
	}

	body.wtapp-mobile-sheet-open .wtapp-toast-root {
		inset: auto 12px min(calc(44dvh + var(--wtapp-safe-bottom)), calc(360px + var(--wtapp-safe-bottom))) 12px;
	}

	.wtapp-toast {
		width: 100%;
	}

	.wtapp-modal__panel--sheet {
		width: 100%;
		max-width: none;
		max-height: min(90dvh, 760px);
		border-radius: 28px 28px 0 0;
		padding-inline: 18px;
	}
}

@media (max-width: 860px) {
	#page[data-mobile-shell-context="public"] .wtapp-topbar__inner,
	#page[data-mobile-shell-context="app"] .wtapp-topbar__inner {
		display: none;
	}

	#page[data-mobile-shell-context="public"] .wtapp-mobile-topbar:not(.is-hidden),
	#page[data-mobile-shell-context="app"] .wtapp-mobile-topbar:not(.is-hidden) {
		display: block;
	}

	#page[data-shell-mode="public"] .wtapp-mobile-topbar,
	#page[data-mobile-shell-context="app"] .wtapp-mobile-topbar {
		background: var(--wtapp-shell-bg);
		border-bottom: 1px solid var(--wtapp-shell-line);
		box-shadow: var(--wtapp-shell-shadow);
	}

	#page[data-shell-mode="public"] .wtapp-mobile-topbar__inner,
	#page[data-mobile-shell-context="public"] .wtapp-mobile-topbar__inner,
	#page[data-mobile-shell-context="app"] .wtapp-mobile-topbar__inner {
		grid-template-columns: auto minmax(0, 1fr) auto;
		align-items: center;
		gap: 12px;
		width: min(calc(100% - 24px), var(--wtapp-width));
		padding: calc(12px + var(--wtapp-safe-top)) 0 12px;
	}

	#page[data-shell-mode="public"] .wtapp-mobile-brand,
	#page[data-mobile-shell-context="public"] .wtapp-mobile-brand,
	#page[data-mobile-shell-context="app"] .wtapp-mobile-brand {
		display: inline-flex;
		align-items: center;
		gap: 10px;
		min-width: 0;
		text-decoration: none;
	}

	#page[data-shell-mode="public"] .wtapp-mobile-brand__title,
	#page[data-mobile-shell-context="public"] .wtapp-mobile-brand__title,
	#page[data-mobile-shell-context="app"] .wtapp-mobile-brand__title {
		font-family: "Avenir Next", "Segoe UI", sans-serif;
		font-size: 1.1rem;
		font-weight: 800;
		color: var(--wtapp-shell-brand);
	}

	#page[data-shell-mode="public"] .wtapp-mobile-topbar__title-wrap,
	#page[data-mobile-shell-context="public"] .wtapp-mobile-topbar__title-wrap,
	#page[data-mobile-shell-context="app"] .wtapp-mobile-topbar__title-wrap {
		display: flex;
		flex-direction: column;
		min-width: 0;
		gap: 2px;
	}

	#page[data-shell-mode="public"] .wtapp-mobile-topbar__title,
	#page[data-mobile-shell-context="public"] .wtapp-mobile-topbar__title,
	#page[data-mobile-shell-context="app"] .wtapp-mobile-topbar__title {
		padding: 0;
		font-size: 0.98rem;
		font-weight: 700;
		color: var(--wtapp-shell-ink);
		text-align: center;
	}

	#page[data-shell-mode="public"] .wtapp-mobile-topbar__eyebrow,
	#page[data-mobile-shell-context="public"] .wtapp-mobile-topbar__eyebrow,
	#page[data-mobile-shell-context="app"] .wtapp-mobile-topbar__eyebrow,
	#page[data-shell-mode="public"] .wtapp-mobile-topbar__meta,
	#page[data-mobile-shell-context="public"] .wtapp-mobile-topbar__meta,
	#page[data-mobile-shell-context="app"] .wtapp-mobile-topbar__meta {
		color: var(--wtapp-shell-muted);
	}

	#page[data-shell-mode="public"] .wtapp-mobile-topbar__actions,
	#page[data-mobile-shell-context="public"] .wtapp-mobile-topbar__actions,
	#page[data-mobile-shell-context="app"] .wtapp-mobile-topbar__actions {
		display: flex;
		align-items: center;
		gap: 8px;
		min-width: 0;
	}

	#page[data-shell-mode="public"] .wtapp-search--mobile-inline,
	#page[data-mobile-shell-context="public"] .wtapp-search--mobile-inline,
	#page[data-mobile-shell-context="app"] .wtapp-search--mobile-inline {
		flex: 0 1 auto;
		width: 44px;
		min-width: 44px;
		padding: 0;
		gap: 0;
		justify-content: center;
		border-radius: 14px;
		background: var(--wtapp-shell-surface-strong);
		border: 1px solid var(--wtapp-shell-line);
		transition: width 180ms ease, padding 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
	}

	#page[data-shell-mode="public"] .wtapp-search--mobile-inline.is-open,
	#page[data-mobile-shell-context="public"] .wtapp-search--mobile-inline.is-open,
	#page[data-mobile-shell-context="app"] .wtapp-search--mobile-inline.is-open {
		width: min(210px, calc(100vw - 148px));
		padding: 0 0 0 12px;
		gap: 8px;
		justify-content: flex-start;
	}

	#page[data-shell-mode="public"] .wtapp-search--mobile-inline .wtapp-search__input,
	#page[data-mobile-shell-context="public"] .wtapp-search--mobile-inline .wtapp-search__input,
	#page[data-mobile-shell-context="app"] .wtapp-search--mobile-inline .wtapp-search__input {
		width: 0;
		padding: 0;
		opacity: 0;
		pointer-events: none;
	}

	#page[data-shell-mode="public"] .wtapp-search--mobile-inline.is-open .wtapp-search__input,
	#page[data-mobile-shell-context="public"] .wtapp-search--mobile-inline.is-open .wtapp-search__input,
	#page[data-mobile-shell-context="app"] .wtapp-search--mobile-inline.is-open .wtapp-search__input {
		width: 100%;
		opacity: 1;
		pointer-events: auto;
	}

	#page[data-shell-mode="public"] .wtapp-search--mobile-inline .wtapp-search__submit,
	#page[data-mobile-shell-context="public"] .wtapp-search--mobile-inline .wtapp-search__submit,
	#page[data-mobile-shell-context="app"] .wtapp-search--mobile-inline .wtapp-search__submit {
		min-width: 42px;
		min-height: 42px;
		padding: 0;
		flex: 0 0 42px;
	}

	#page[data-shell-mode="public"] .wtapp-mobile-header-action,
	#page[data-mobile-shell-context="public"] .wtapp-mobile-header-action,
	#page[data-mobile-shell-context="app"] .wtapp-mobile-header-action,
	#page[data-shell-mode="public"] .wtapp-theme-toggle--mobile,
	#page[data-mobile-shell-context="public"] .wtapp-theme-toggle--mobile,
	#page[data-mobile-shell-context="app"] .wtapp-theme-toggle--mobile {
		min-width: 44px;
		min-height: 44px;
		padding-inline: 12px;
		border-radius: 14px;
		background: var(--wtapp-shell-surface-strong);
		border: 1px solid var(--wtapp-shell-line);
		color: var(--wtapp-shell-ink);
	}

	#page[data-shell-mode="public"] .wtapp-mobile-header-action--menu span:last-child,
	#page[data-mobile-shell-context="public"] .wtapp-mobile-header-action--menu span:last-child,
	#page[data-mobile-shell-context="app"] .wtapp-mobile-header-action--menu span:last-child {
		display: none;
	}

	#page[data-shell-mode="public"] .wtapp-mobile-tabs:not(.is-hidden),
	#page[data-mobile-shell-context="public"] .wtapp-mobile-tabs:not(.is-hidden),
	#page[data-mobile-shell-context="app"] .wtapp-mobile-tabs:not(.is-hidden) {
		left: 0;
		right: 0;
		bottom: 0;
		padding: 10px 8px calc(10px + var(--wtapp-safe-bottom));
		border-radius: 0;
		background: var(--wtapp-shell-surface-strong);
		border: 0;
		border-top: 1px solid var(--wtapp-shell-line);
		box-shadow: 0 -4px 20px color-mix(in srgb, var(--wtapp-shell-ink) 10%, transparent);
		backdrop-filter: none;
	}

	#page[data-shell-mode="public"] .wtapp-mobile-support:not(.is-hidden),
	#page[data-mobile-shell-context="public"] .wtapp-mobile-support:not(.is-hidden),
	#page[data-mobile-shell-context="app"] .wtapp-mobile-support:not(.is-hidden) {
		left: 12px;
		bottom: calc(96px + var(--wtapp-safe-bottom));
	}

	#page[data-shell-mode="public"] .wtapp-mobile-support__link,
	#page[data-mobile-shell-context="public"] .wtapp-mobile-support__link,
	#page[data-mobile-shell-context="app"] .wtapp-mobile-support__link {
		width: 52px;
		height: 52px;
		border-radius: 16px;
	}

	#page[data-reader-mode="1"] .wtapp-mobile-support:not(.is-hidden) {
		left: 12px;
		bottom: calc(16px + var(--wtapp-safe-bottom));
	}

	#page[data-shell-mode="public"] .wtapp-mobile-tab,
	#page[data-mobile-shell-context="public"] .wtapp-mobile-tab,
	#page[data-mobile-shell-context="app"] .wtapp-mobile-tab {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		min-height: 52px;
		padding: 6px 4px;
		color: var(--wtapp-shell-ink);
		font-size: 0.7rem;
		font-weight: 600;
		background: transparent;
		box-shadow: none;
	}

	#page[data-shell-mode="public"] .wtapp-mobile-tab.is-active,
	#page[data-mobile-shell-context="public"] .wtapp-mobile-tab.is-active,
	#page[data-mobile-shell-context="app"] .wtapp-mobile-tab.is-active {
		color: var(--wtapp-shell-brand);
		background: color-mix(in srgb, var(--wtapp-shell-brand) 14%, var(--wtapp-shell-surface-strong));
		border-radius: 12px;
		box-shadow: 0 1px 3px color-mix(in srgb, var(--wtapp-shell-brand) 22%, transparent);
	}

	#page[data-shell-mode="public"] .wtapp-mobile-tab__icon,
	#page[data-mobile-shell-context="public"] .wtapp-mobile-tab__icon,
	#page[data-mobile-shell-context="app"] .wtapp-mobile-tab__icon {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 24px;
		height: 24px;
		color: inherit;
	}

	#page[data-shell-mode="public"] .wtapp-mobile-tab__icon svg,
	#page[data-mobile-shell-context="public"] .wtapp-mobile-tab__icon svg,
	#page[data-mobile-shell-context="app"] .wtapp-mobile-tab__icon svg {
		width: 22px;
		height: 22px;
	}

	#page[data-shell-mode="public"] .wtapp-mobile-tab__icon--avatar,
	#page[data-mobile-shell-context="public"] .wtapp-mobile-tab__icon--avatar,
	#page[data-mobile-shell-context="app"] .wtapp-mobile-tab__icon--avatar {
		width: 26px;
		height: 26px;
	}

	#page[data-shell-mode="public"] .wtapp-mobile-tab__avatar,
	#page[data-mobile-shell-context="public"] .wtapp-mobile-tab__avatar,
	#page[data-mobile-shell-context="app"] .wtapp-mobile-tab__avatar {
		display: block;
		width: 26px;
		height: 26px;
		border-radius: 999px;
		object-fit: cover;
		border: 1.5px solid color-mix(in srgb, var(--wtapp-shell-line) 82%, transparent);
		background: var(--wtapp-shell-surface);
	}

	#page[data-shell-mode="public"] .wtapp-mobile-tab.is-active .wtapp-mobile-tab__avatar,
	#page[data-mobile-shell-context="public"] .wtapp-mobile-tab.is-active .wtapp-mobile-tab__avatar,
	#page[data-mobile-shell-context="app"] .wtapp-mobile-tab.is-active .wtapp-mobile-tab__avatar {
		border-color: color-mix(in srgb, var(--wtapp-shell-brand) 72%, transparent);
		box-shadow: 0 0 0 2px color-mix(in srgb, var(--wtapp-shell-brand) 18%, transparent);
	}

	#page[data-shell-mode="public"] .wtapp-footer__desktop,
	#page[data-mobile-shell-context="public"] .wtapp-footer__desktop,
	#page[data-mobile-shell-context="app"] .wtapp-footer__desktop {
		display: none;
	}

	#page[data-shell-mode="public"] #wtapp-footer[data-mobile-footer-variant="compact"],
	#page[data-mobile-shell-context="public"] #wtapp-footer[data-mobile-footer-variant="compact"],
	#page[data-mobile-shell-context="app"] #wtapp-footer[data-mobile-footer-variant="compact"] {
		display: block;
		padding: 0 0 calc(104px + var(--wtapp-safe-bottom));
	}

	#page[data-shell-mode="public"] #wtapp-footer[data-mobile-footer-variant="compact"] .wtapp-footer__mobile,
	#page[data-mobile-shell-context="public"] #wtapp-footer[data-mobile-footer-variant="compact"] .wtapp-footer__mobile,
	#page[data-mobile-shell-context="app"] #wtapp-footer[data-mobile-footer-variant="compact"] .wtapp-footer__mobile {
		display: block;
		width: min(calc(100% - 24px), var(--wtapp-width));
		margin: 0 auto;
	}

	#page[data-shell-mode="public"] .wtapp-footer__inner--mobile,
	#page[data-mobile-shell-context="public"] .wtapp-footer__inner--mobile,
	#page[data-mobile-shell-context="app"] .wtapp-footer__inner--mobile {
		padding-bottom: 12px;
	}
}


/* assets/css/components/discussion.css */
.wtapp-social-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: -6px;
}

.wtapp-social-meta__item {
	display: inline-flex;
	align-items: center;
	padding: 8px 12px;
	border-radius: 999px;
	background: rgba(33, 72, 188, 0.08);
	color: var(--wtapp-muted);
	font-size: 0.92rem;
	font-weight: 700;
}

.wtapp-discussion {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.wtapp-discussion__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 18px;
}

.wtapp-discussion__eyebrow {
	margin: 0 0 6px;
	font-size: 0.82rem;
	font-weight: 800;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--wtapp-brand);
}

.wtapp-discussion-auth {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: 18px 20px;
	border-radius: 22px;
	background: rgba(255, 248, 238, 0.82);
	border: 1px solid rgba(33, 72, 188, 0.12);
}

.wtapp-discussion-auth .wtapp-card-summary {
	margin: 0;
}

.wtapp-discussion-auth__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.wtapp-discussion-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 20px;
	border-radius: 24px;
	background: rgba(255, 252, 247, 0.82);
	border: 1px solid rgba(33, 72, 188, 0.12);
}

.wtapp-discussion-form textarea {
	width: 100%;
	min-height: 132px;
	padding: 14px 16px;
	border-radius: 18px;
	border: 1px solid rgba(33, 72, 188, 0.16);
	background: #fff;
	color: var(--wtapp-ink);
	font: inherit;
	line-height: 1.6;
	resize: vertical;
}

.wtapp-discussion-form__actions {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
}

.wtapp-discussion-form__buttons {
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	margin-left: auto;
	flex-wrap: wrap;
}

.wtapp-discussion-form__actions .wtapp-turnstile--discussion {
	flex: 0 1 auto;
}

.wtapp-rating-input {
	margin: 0;
	padding: 0;
	border: 0;
}

.wtapp-rating-input legend {
	margin-bottom: 10px;
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--wtapp-ink);
}

.wtapp-rating-input__stars {
	display: flex;
	flex-direction: row-reverse;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
}

.wtapp-rating-input__option {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.wtapp-rating-input__option input {
	position: absolute;
	inset: 0;
	opacity: 0;
	cursor: pointer;
}

.wtapp-rating-input__option span[aria-hidden="true"] {
	font-size: 1.7rem;
	line-height: 1;
	color: rgba(54, 102, 244, 0.26);
	transition: color 160ms ease, transform 160ms ease;
}

.wtapp-rating-input__option:hover span[aria-hidden="true"],
.wtapp-rating-input__option:hover ~ .wtapp-rating-input__option span[aria-hidden="true"],
.wtapp-rating-input__option input:checked + span[aria-hidden="true"] {
	color: var(--wtapp-brand);
	transform: translateY(-1px);
}

.wtapp-discussion-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
}

.wtapp-discussion-card {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr);
	gap: 14px;
	padding: 18px 20px;
	border-radius: 22px;
	background: rgba(255, 252, 247, 0.92);
	border: 1px solid rgba(33, 72, 188, 0.1);
}

.wtapp-discussion-card__avatar {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
	border: 1px solid rgba(33, 72, 188, 0.1);
}

.wtapp-discussion-card__avatar--placeholder {
	display: inline-block;
	background: rgba(54, 102, 244, 0.12);
}

.wtapp-discussion-card__avatar-wrap {
	display: flex;
	align-items: flex-start;
	justify-content: center;
}

.wtapp-discussion-card__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
}

.wtapp-discussion-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	color: var(--wtapp-muted);
	font-size: 0.92rem;
}

.wtapp-discussion-card__content {
	color: var(--wtapp-ink);
}

.wtapp-discussion-card__content > *:first-child {
	margin-top: 0;
}

.wtapp-discussion-card__content > *:last-child {
	margin-bottom: 0;
}

.wtapp-discussion-card__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.wtapp-discussion-card__action {
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	gap: 6px;
	min-height: 24px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--wtapp-muted);
	font-size: 0.8rem;
	font-weight: 700;
	line-height: 1;
	box-shadow: none;
	transition: color 160ms ease, opacity 160ms ease;
}

.wtapp-discussion-card__action-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1.02rem;
	line-height: 1;
}

.wtapp-discussion-card__action:hover {
	color: var(--wtapp-brand);
	opacity: 1;
}

.wtapp-discussion-card__action.is-active {
	color: var(--wtapp-brand);
}

.wtapp-discussion-card__action-count {
	font-variant-numeric: tabular-nums;
	color: currentColor;
}

.wtapp-discussion-card__reply-wrap {
	padding-top: 4px;
}

.wtapp-discussion-form--reply {
	padding: 14px;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.6);
}

.wtapp-discussion-form--reply textarea {
	min-height: 96px;
}

.wtapp-discussion-card__replies {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
	padding-top: 4px;
}

.wtapp-discussion-card--reply {
	grid-template-columns: 44px minmax(0, 1fr);
	padding: 14px 16px;
	border-radius: 18px;
	background: rgba(248, 250, 255, 0.92);
}

.wtapp-discussion-card--reply .wtapp-discussion-card__avatar {
	width: 44px;
	height: 44px;
}

.wtapp-discussion-card__top,
.wtapp-discussion-card__footer {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.wtapp-discussion-card__identity {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.wtapp-discussion-card__author {
	font-size: 1rem;
	line-height: 1.15;
	color: var(--wtapp-ink);
}

.wtapp-discussion-card__author-meta,
.wtapp-discussion-card__date {
	font-size: 0.95rem;
	color: var(--wtapp-muted);
}

.wtapp-discussion-card__rating,
.wtapp-review-summary__stars {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	color: rgba(54, 102, 244, 0.24);
}

.wtapp-star.is-filled {
	color: var(--wtapp-brand);
}

.wtapp-discussion__header--reviews {
	align-items: center;
}

.wtapp-discussion-form-anchor--review[hidden] {
	display: none !important;
}

.wtapp-discussion-list[hidden],
.wtapp-review-feed__empty[hidden],
.wtapp-review-feed__more-wrap[hidden] {
	display: none !important;
}

.wtapp-review-feed {
	gap: 12px;
}

.wtapp-review-feed__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;
}

.wtapp-review-feed__heading {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.wtapp-review-feed__title-row {
	display: flex;
	align-items: center;
	gap: 10px;
}

.wtapp-review-feed__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	color: var(--wtapp-ink);
}

.wtapp-review-feed__icon svg {
	width: 24px;
	height: 24px;
}

.wtapp-review-feed__summary {
	margin: 0;
}

.wtapp-review-feed__cta {
	min-width: 154px;
	border-radius: 16px;
	font-weight: 800;
	background: #091634;
	border-color: #091634;
	color: #fff;
}

.wtapp-discussion-list--reviews {
	gap: 12px;
}

.wtapp-discussion-card--review {
	grid-template-columns: 60px minmax(0, 1fr);
	padding: 18px 20px;
	border-radius: 22px;
	background: rgba(255, 255, 255, 0.7);
	border: 1px solid rgba(33, 72, 188, 0.14);
	box-shadow: 0 10px 22px rgba(17, 30, 68, 0.05);
}

.wtapp-discussion-card--review .wtapp-discussion-card__avatar {
	width: 48px;
	height: 48px;
	border: 0;
	background: rgba(86, 122, 194, 0.16);
}

.wtapp-discussion-card--review .wtapp-discussion-card__content {
	font-size: 0.9rem;
	line-height: 1.65;
	color: color-mix(in srgb, var(--wtapp-ink) 78%, #4a628d 22%);
}

.wtapp-discussion-card--review .wtapp-discussion-card__rating {
	flex: 0 0 auto;
	font-size: 0.95rem;
	color: #f59e0b;
}

.wtapp-discussion-card--review .wtapp-star {
	color: rgba(245, 158, 11, 0.28);
}

.wtapp-discussion-card--review .wtapp-star.is-filled {
	color: #f59e0b;
}

.wtapp-review-feed__empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 150px;
	padding: 20px 18px;
	border-radius: 22px;
	background: rgba(255, 255, 255, 0.58);
	border: 1px solid rgba(33, 72, 188, 0.12);
	text-align: center;
}

.wtapp-review-feed__empty-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	color: rgba(88, 101, 127, 0.6);
}

.wtapp-review-feed__empty-icon svg {
	width: 36px;
	height: 36px;
}

.wtapp-review-feed__empty-title,
.wtapp-review-feed__empty-copy {
	margin: 0;
}

.wtapp-review-feed__empty-title {
	font-size: 1rem;
	font-weight: 700;
	color: var(--wtapp-ink);
}

.wtapp-review-feed__empty-copy {
	max-width: 24rem;
	color: var(--wtapp-muted);
	font-size: 0.9rem;
}

.wtapp-review-feed__more-wrap {
	position: relative;
	display: flex;
	justify-content: center;
	padding-top: 18px;
	margin-top: -4px;
}

.wtapp-review-feed__more-wrap::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 44px;
	background: linear-gradient(180deg, rgba(245, 247, 255, 0) 0%, rgba(245, 247, 255, 0.9) 62%, rgba(245, 247, 255, 1) 100%);
	pointer-events: none;
}

.wtapp-review-feed__more {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 168px;
	border: 1px solid rgba(33, 72, 188, 0.16);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.9);
	color: var(--wtapp-brand);
	font-weight: 700;
	box-shadow: 0 10px 20px rgba(17, 30, 68, 0.06);
}

.wtapp-review-feed__more:disabled {
	opacity: 0.75;
	cursor: wait;
}

html[data-wtapp-public-theme="dark"] .wtapp-discussion-card--review {
	background: color-mix(in srgb, var(--wtapp-public-surface) 88%, var(--wtapp-public-brand) 12%);
	border-color: color-mix(in srgb, var(--wtapp-public-brand) 28%, var(--wtapp-public-line));
	box-shadow: none;
}

html[data-wtapp-public-theme="dark"] .wtapp-review-feed__empty {
	background: color-mix(in srgb, var(--wtapp-public-surface) 78%, transparent);
	border-color: color-mix(in srgb, var(--wtapp-public-brand) 24%, var(--wtapp-public-line));
}

html[data-wtapp-public-theme="dark"] .wtapp-review-feed__more-wrap::before {
	background: linear-gradient(180deg, rgba(10, 13, 20, 0) 0%, rgba(10, 13, 20, 0.82) 62%, rgba(10, 13, 20, 1) 100%);
}

html[data-wtapp-public-theme="dark"] .wtapp-review-feed__more {
	background: color-mix(in srgb, var(--wtapp-public-surface-strong) 88%, var(--wtapp-public-brand) 12%);
	border-color: color-mix(in srgb, var(--wtapp-public-brand) 26%, var(--wtapp-public-line));
	color: var(--wtapp-public-heading);
}

html[data-wtapp-public-theme="dark"] body.wtapp-shell-body.wtapp-route-public:not(.wtapp-reader-mode) .wtapp-social-meta__item {
	background: color-mix(in srgb, var(--wtapp-public-brand) 14%, var(--wtapp-public-surface-strong));
	border: 1px solid color-mix(in srgb, var(--wtapp-public-brand) 20%, var(--wtapp-public-line));
	color: var(--wtapp-public-muted);
}

html[data-wtapp-public-theme="dark"] body.wtapp-shell-body.wtapp-route-public:not(.wtapp-reader-mode) .wtapp-discussion-auth,
html[data-wtapp-public-theme="dark"] body.wtapp-shell-body.wtapp-route-public:not(.wtapp-reader-mode) .wtapp-discussion-form,
html[data-wtapp-public-theme="dark"] body.wtapp-shell-body.wtapp-route-public:not(.wtapp-reader-mode) .wtapp-discussion-card,
html[data-wtapp-public-theme="dark"] body.wtapp-shell-body.wtapp-route-public:not(.wtapp-reader-mode) .wtapp-review-feed__empty,
html[data-wtapp-public-theme="dark"] body.wtapp-shell-body.wtapp-route-public:not(.wtapp-reader-mode) .wtapp-review-summary {
	background: color-mix(in srgb, var(--wtapp-public-surface) 90%, var(--wtapp-public-brand) 10%);
	border-color: color-mix(in srgb, var(--wtapp-public-brand) 24%, var(--wtapp-public-line));
	box-shadow: none;
}

html[data-wtapp-public-theme="dark"] body.wtapp-shell-body.wtapp-route-public:not(.wtapp-reader-mode) .wtapp-discussion-form textarea {
	background: color-mix(in srgb, var(--wtapp-public-surface-strong) 96%, transparent);
	border-color: color-mix(in srgb, var(--wtapp-public-brand) 20%, var(--wtapp-public-line));
	color: var(--wtapp-public-ink);
}

html[data-wtapp-public-theme="dark"] body.wtapp-shell-body.wtapp-route-public:not(.wtapp-reader-mode) .wtapp-discussion-form textarea::placeholder {
	color: color-mix(in srgb, var(--wtapp-public-muted) 82%, transparent);
}

html[data-wtapp-public-theme="dark"] body.wtapp-shell-body.wtapp-route-public:not(.wtapp-reader-mode) .wtapp-discussion-auth .wtapp-card-summary,
html[data-wtapp-public-theme="dark"] body.wtapp-shell-body.wtapp-route-public:not(.wtapp-reader-mode) .wtapp-discussion-card__meta,
html[data-wtapp-public-theme="dark"] body.wtapp-shell-body.wtapp-route-public:not(.wtapp-reader-mode) .wtapp-discussion-card__author-meta,
html[data-wtapp-public-theme="dark"] body.wtapp-shell-body.wtapp-route-public:not(.wtapp-reader-mode) .wtapp-discussion-card__date,
html[data-wtapp-public-theme="dark"] body.wtapp-shell-body.wtapp-route-public:not(.wtapp-reader-mode) .wtapp-review-feed__empty-copy,
html[data-wtapp-public-theme="dark"] body.wtapp-shell-body.wtapp-route-public:not(.wtapp-reader-mode) .wtapp-review-summary__meta {
	color: var(--wtapp-public-muted);
}

html[data-wtapp-public-theme="dark"] body.wtapp-shell-body.wtapp-route-public:not(.wtapp-reader-mode) .wtapp-rating-input legend,
html[data-wtapp-public-theme="dark"] body.wtapp-shell-body.wtapp-route-public:not(.wtapp-reader-mode) .wtapp-discussion-card__author,
html[data-wtapp-public-theme="dark"] body.wtapp-shell-body.wtapp-route-public:not(.wtapp-reader-mode) .wtapp-review-feed__icon,
html[data-wtapp-public-theme="dark"] body.wtapp-shell-body.wtapp-route-public:not(.wtapp-reader-mode) .wtapp-review-feed__empty-title,
html[data-wtapp-public-theme="dark"] body.wtapp-shell-body.wtapp-route-public:not(.wtapp-reader-mode) .wtapp-review-summary__score {
	color: var(--wtapp-public-heading);
}

html[data-wtapp-public-theme="dark"] body.wtapp-shell-body.wtapp-route-public:not(.wtapp-reader-mode) .wtapp-discussion-card__content,
html[data-wtapp-public-theme="dark"] body.wtapp-shell-body.wtapp-route-public:not(.wtapp-reader-mode) .wtapp-discussion-card__content :not(a) {
	color: var(--wtapp-public-ink);
}

html[data-wtapp-public-theme="dark"] body.wtapp-shell-body.wtapp-route-public:not(.wtapp-reader-mode) .wtapp-discussion-card__content a {
	color: var(--wtapp-public-brand);
}

html[data-wtapp-public-theme="dark"] body.wtapp-shell-body.wtapp-route-public:not(.wtapp-reader-mode) .wtapp-discussion-card__action {
	color: var(--wtapp-public-muted);
}

html[data-wtapp-public-theme="dark"] body.wtapp-shell-body.wtapp-route-public:not(.wtapp-reader-mode) .wtapp-discussion-card__action.is-active {
	color: var(--wtapp-public-heading);
}

html[data-wtapp-public-theme="dark"] body.wtapp-shell-body.wtapp-route-public:not(.wtapp-reader-mode) .wtapp-discussion-card--reply,
html[data-wtapp-public-theme="dark"] body.wtapp-shell-body.wtapp-route-public:not(.wtapp-reader-mode) .wtapp-discussion-form--reply {
	background: color-mix(in srgb, var(--wtapp-public-surface-strong) 90%, transparent);
	border-color: color-mix(in srgb, var(--wtapp-public-brand) 20%, var(--wtapp-public-line));
}

html[data-wtapp-public-theme="dark"] body.wtapp-shell-body.wtapp-route-public:not(.wtapp-reader-mode) .wtapp-discussion-auth__actions .wtapp-button--secondary,
html[data-wtapp-public-theme="dark"] body.wtapp-shell-body.wtapp-route-public:not(.wtapp-reader-mode) .wtapp-discussion-auth__actions .wtapp-button--ghost {
	background: color-mix(in srgb, var(--wtapp-public-surface-strong) 94%, transparent);
	border: 1px solid color-mix(in srgb, var(--wtapp-public-brand) 18%, var(--wtapp-public-line));
	color: var(--wtapp-public-heading);
}

html[data-wtapp-public-theme="dark"] body.wtapp-shell-body.wtapp-route-public:not(.wtapp-reader-mode) .wtapp-review-feed__cta {
	background: linear-gradient(135deg, var(--wtapp-public-brand), var(--wtapp-public-brand-deep));
	border-color: transparent;
	color: var(--wtapp-public-filter-active-ink);
}

.wtapp-review-summary {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 18px;
	border-radius: 22px;
	background: rgba(33, 72, 188, 0.07);
}

.wtapp-review-summary__score {
	font-size: clamp(2rem, 4vw, 2.8rem);
	font-weight: 800;
	line-height: 1;
	color: var(--wtapp-brand-deep);
}

.wtapp-review-summary__meta {
	display: flex;
	flex-direction: column;
	gap: 4px;
	color: var(--wtapp-muted);
}

.wtapp-review-summary__meta p {
	margin: 0;
}

@media (max-width: 860px) {
	.wtapp-discussion__header,
	.wtapp-discussion-auth {
		flex-direction: column;
		align-items: stretch;
	}

	.wtapp-review-feed__header {
		flex-direction: column;
		align-items: stretch;
	}

	.wtapp-review-feed__cta {
		width: 100%;
	}

	.wtapp-discussion-form__actions {
		align-items: stretch;
		justify-content: stretch;
	}

	.wtapp-discussion-form__buttons {
		width: 100%;
		margin-left: 0;
	}

	.wtapp-discussion-form__actions .wtapp-button,
	.wtapp-discussion-auth__actions .wtapp-button {
		width: 100%;
		justify-content: center;
	}

	.wtapp-discussion-card__actions .wtapp-discussion-card__action {
		flex: 1 1 auto;
	}

	.wtapp-review-summary {
		width: 100%;
	}

	.wtapp-discussion-card--review {
		grid-template-columns: 1fr;
		padding: 22px 20px;
	}

	.wtapp-discussion-card--review .wtapp-discussion-card__avatar-wrap {
		justify-content: flex-start;
	}

	.wtapp-discussion-card__top {
		flex-direction: column;
	}
}

@media (max-width: 640px) {
	#page[data-shell-mode="public"] .wtapp-mobile-topbar__inner,
	#page[data-shell-mode="public"] #wtapp-footer[data-mobile-footer-variant="compact"] .wtapp-footer__mobile,
	#page[data-shell-mode="public"] .wtapp-layout {
		width: min(calc(100% - 16px), var(--wtapp-width));
	}

	#page[data-shell-mode="public"] .wtapp-mobile-tabs:not(.is-hidden) {
		left: 8px;
		right: 8px;
		bottom: calc(8px + var(--wtapp-safe-bottom));
		padding: 8px;
		border-radius: 22px;
	}

	#page[data-shell-mode="public"] .wtapp-mobile-tab {
		min-height: 46px;
		padding: 5px;
		font-size: 0.82rem;
	}

	#page[data-mobile-shell-context="app"] .wtapp-mobile-topbar__inner,
	#page[data-mobile-shell-context="app"] #wtapp-footer[data-mobile-footer-variant="compact"] .wtapp-footer__mobile,
	#page[data-mobile-shell-context="app"] .wtapp-layout {
		width: min(calc(100% - 16px), var(--wtapp-width));
	}

	#page[data-mobile-shell-context="app"] .wtapp-mobile-tabs:not(.is-hidden) {
		left: 8px;
		right: 8px;
		bottom: calc(8px + var(--wtapp-safe-bottom));
		padding: 8px;
		border-radius: 22px;
	}

	#page[data-mobile-shell-context="app"] .wtapp-mobile-tab {
		min-height: 46px;
		padding: 0 6px;
		font-size: 0.82rem;
	}

	.wtapp-drawer__panel {
		padding-inline: 16px;
	}

	.wtapp-drawer__auth {
		flex-direction: column;
		align-items: stretch;
	}

	.wtapp-drawer__auth .wtapp-button {
		width: 100%;
	}

	.wtapp-sheet__actions {
		grid-template-columns: 1fr;
	}

	.wtapp-modal__panel--sheet {
		padding: 54px 16px calc(24px + var(--wtapp-safe-bottom));
	}
}
