* {
	box-sizing: border-box;
}

body.one-my-me-app-body {
	margin: 0;
	background: #f4f0ea;
	color: #24211e;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	letter-spacing: 0;
}

body.customer-page {
	background:
		linear-gradient(180deg, rgba(18, 26, 21, 0.96) 0%, rgba(43, 31, 30, 0.94) 34%, rgba(247, 241, 229, 1) 86%),
		linear-gradient(90deg, rgba(201, 168, 103, 0.12) 0 1px, transparent 1px 56px),
		#171d18;
	color: #f8f1e6;
}

.one-my-me-app {
	width: min(100% - 32px, 1180px);
	margin: 0 auto;
	padding: 24px 0 48px;
}

.app-topbar,
.customer-hero {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 18px;
	padding: 18px 0;
}

.customer-hero {
	display: block;
	min-height: 260px;
	padding: 42px 0 28px;
}

.customer-hero--draw {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(220px, 310px);
	gap: 24px;
	align-items: end;
}

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

.customer-hero__note {
	display: grid;
	gap: 8px;
	padding: 18px;
	border: 1px solid #cfc3b7;
	border-radius: 8px;
	background: #fffdfa;
	box-shadow: 0 18px 42px rgba(36, 33, 30, 0.08);
}

.customer-hero__note span,
.customer-hero__note small {
	color: #5b534b;
	line-height: 1.6;
}

.customer-hero__note strong {
	color: #263f4a;
	font-size: 24px;
	line-height: 1.2;
}

.app-kicker {
	margin: 0 0 6px;
	color: #315f72;
	font-size: 13px;
	font-weight: 800;
	text-transform: uppercase;
}

.one-my-me-app h1,
.one-my-me-app h2,
.one-my-me-app h3 {
	margin: 0;
	letter-spacing: 0;
}

.one-my-me-app h1 {
	font-size: 34px;
	line-height: 1.18;
}

.customer-hero h1 {
	font-size: 46px;
}

.customer-hero p {
	max-width: 620px;
	color: #504942;
	font-size: 17px;
	line-height: 1.8;
}

.portal-grid {
	display: grid;
	gap: 14px;
}

.app-view-tabs {
	position: sticky;
	top: 0;
	z-index: 10;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 14px;
	padding: 10px;
	border: 1px solid #d8d0c5;
	border-radius: 8px;
	background: rgba(255, 253, 250, 0.94);
	backdrop-filter: blur(8px);
}

.app-view-tabs button {
	min-height: 38px;
	padding: 0 13px;
	border: 1px solid transparent;
	border-radius: 6px;
	background: transparent;
	color: #4f4942;
	font-weight: 800;
	cursor: pointer;
}

.app-view-tabs button.active {
	border-color: #315f72;
	background: #315f72;
	color: #fff;
}

.app-view {
	display: none;
}

.app-view.active {
	display: grid;
	gap: 14px;
}

.wizard-panel {
	position: relative;
	overflow: hidden;
}

.wizard-panel::before {
	content: "";
	position: absolute;
	inset: 0;
	border-left: 4px solid #315f72;
	pointer-events: none;
}

.wizard-roadmap {
	display: grid;
	gap: 10px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
	counter-reset: wizard;
}

.wizard-roadmap li {
	position: relative;
	display: grid;
	gap: 4px;
	padding: 12px 12px 12px 46px;
	border: 1px solid #e1d9ce;
	border-radius: 8px;
	background: #fff;
}

.wizard-roadmap li::before {
	counter-increment: wizard;
	content: counter(wizard);
	position: absolute;
	left: 12px;
	top: 12px;
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #315f72;
	color: #fff;
	font-weight: 800;
}

.wizard-roadmap span {
	color: #625a52;
}

.stats-grid {
	grid-template-columns: repeat(5, minmax(0, 1fr));
	margin-bottom: 14px;
}

.portal-main,
.customer-layout {
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	margin-bottom: 14px;
}

.customer-layout {
	grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr);
}

.app-panel,
.stat-tile {
	border: 1px solid #d8d0c5;
	border-radius: 8px;
	background: #fffdfa;
}

.app-panel {
	padding: 18px;
}

.stat-tile {
	padding: 14px;
}

.stat-tile strong {
	display: block;
	color: #5b534b;
	font-size: 12px;
}

.stat-tile span {
	display: block;
	margin-top: 8px;
	font-size: 28px;
	font-weight: 800;
}

.panel-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.help-dot {
	display: inline-grid;
	place-items: center;
	width: 24px;
	height: 24px;
	margin-left: 4px;
	border: 1px solid #b9aca0;
	border-radius: 50%;
	background: #fff;
	color: #315f72;
	font-size: 13px;
	font-weight: 900;
	cursor: pointer;
}

.help-dot:hover,
.help-dot:focus {
	border-color: #315f72;
	background: #eef5f6;
}

.app-form {
	display: grid;
	gap: 10px;
}

.form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.app-form label {
	display: grid;
	gap: 6px;
	color: #4e463f;
	font-size: 13px;
	font-weight: 700;
}

.app-form input,
.app-form textarea,
.app-form select {
	width: 100%;
	border: 1px solid #c9c0b5;
	border-radius: 6px;
	background: #fff;
	color: #24211e;
	font: inherit;
	min-height: 40px;
	padding: 8px 10px;
}

.app-form textarea {
	resize: vertical;
}

.app-button,
.app-link,
.one-my-me-auth-button,
.tabs button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0 14px;
	border: 1px solid #315f72;
	border-radius: 6px;
	background: #315f72;
	color: #fff;
	font-weight: 800;
	text-decoration: none;
	cursor: pointer;
}

.one-my-me-auth-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 16px;
}

.one-my-me-auth-button.provider-line {
	background: #06c755;
	border-color: #06c755;
	color: #fff;
}

.one-my-me-auth-button.provider-google {
	background: #fff;
	border-color: #c9c0b5;
	color: #24211e;
}

.one-my-me-auth-note,
.auth-error {
	display: inline-block;
	margin: 12px 0 0;
	padding: 10px 12px;
	border-radius: 6px;
	background: #fff3cd;
	color: #684a00;
}

.auth-error {
	background: #fdecec;
	color: #7a1f1f;
}

.app-button.secondary,
.app-link {
	background: #fff;
	color: #315f72;
}

.app-button:disabled {
	opacity: 0.55;
	cursor: progress;
}

.app-badge {
	display: inline-flex;
	align-items: center;
	min-height: 26px;
	padding: 0 9px;
	border-radius: 999px;
	background: #eee6dc;
	color: #554c43;
	font-size: 12px;
	font-weight: 800;
}

.muted {
	color: #625a52;
	line-height: 1.65;
}

.small {
	font-size: 13px;
}

.app-list {
	display: grid;
	gap: 10px;
}

.app-list.compact {
	margin-top: 12px;
}

.list-row,
.deck-option,
.offer-row {
	display: grid;
	gap: 6px;
	padding: 12px;
	border: 1px solid #e1d9ce;
	border-radius: 6px;
	background: #fff;
}

.list-row header,
.deck-option header,
.offer-row header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.list-row p,
.deck-option p,
.offer-row p {
	margin: 0;
	color: #625a52;
	line-height: 1.55;
}

.deck-grid {
	display: grid;
	gap: 10px;
}

.deck-studio-summary {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(230px, 360px);
	gap: 16px;
	align-items: center;
	padding: 16px;
	border: 1px solid #d8d0c5;
	border-radius: 8px;
	background:
		linear-gradient(135deg, rgba(238, 245, 246, 0.78), rgba(255, 253, 250, 0.96)),
		#fffdfa;
}

.deck-studio-summary h3 {
	font-size: 22px;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.deck-studio-summary p:not(.app-kicker) {
	margin: 8px 0 0;
	color: #5b534b;
	line-height: 1.65;
}

.deck-studio-meter {
	display: grid;
	gap: 10px;
	padding: 12px;
	border: 1px solid #e1d9ce;
	border-radius: 8px;
	background: #fff;
}

.deck-studio-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 12px;
}

.deck-option {
	text-align: left;
	cursor: pointer;
}

.deck-studio-card {
	gap: 0;
	min-width: 0;
	overflow: hidden;
	padding: 0;
	cursor: default;
	box-shadow: 0 10px 24px rgba(36, 33, 30, 0.05);
}

.deck-option .deck-cover {
	display: grid;
	place-items: center;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-radius: 6px;
	background:
		linear-gradient(135deg, rgba(255, 253, 250, 0.2), transparent),
		#263f4a;
	color: #fffdfa;
	font-weight: 800;
	text-align: center;
}

.deck-option .deck-cover span {
	display: -webkit-box;
	overflow: hidden;
	padding: 16px;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	line-height: 1.45;
	overflow-wrap: anywhere;
}

.deck-option .deck-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.deck-studio-body {
	display: grid;
	gap: 10px;
	padding: 12px;
}

.deck-studio-body header strong {
	overflow-wrap: anywhere;
	line-height: 1.35;
}

.deck-studio-body > p {
	overflow-wrap: anywhere;
}

.deck-studio-facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 8px;
}

.deck-studio-facts span {
	display: grid;
	gap: 3px;
	min-width: 0;
	padding: 8px;
	border-radius: 6px;
	background: #f7f4ef;
	color: #625a52;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.35;
}

.deck-studio-facts strong {
	color: #24211e;
	font-size: 13px;
	overflow-wrap: anywhere;
}

.deck-progress {
	overflow: hidden;
	height: 7px;
	border-radius: 999px;
	background: #eee6dc;
}

.deck-progress span {
	display: block;
	width: var(--deck-progress, 0%);
	height: 100%;
	border-radius: inherit;
	background: #315f72;
}

.deck-public-path {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
	font-size: 13px;
	font-weight: 800;
}

.deck-public-path code {
	max-width: 100%;
	padding: 3px 6px;
	border-radius: 5px;
	background: #eef5f6;
	color: #315f72;
	font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
	font-size: 12px;
	overflow-wrap: anywhere;
}

.deck-actions .app-button {
	flex: 1 1 140px;
	min-width: 0;
}

.deck-meta {
	font-size: 13px;
	font-weight: 700;
}

.deck-option.active {
	border-color: #315f72;
	box-shadow: inset 0 0 0 1px #315f72;
}

.deck-option img,
.draw-result img {
	width: 100%;
	border-radius: 6px;
	display: block;
}

.draw-result {
	margin-top: 14px;
	display: grid;
	gap: 12px;
}

.draw-card {
	display: grid;
	grid-template-columns: minmax(180px, 240px) 1fr;
	gap: 16px;
	align-items: start;
}

.offer-list {
	display: grid;
	gap: 10px;
	margin-top: 12px;
}

.tabs {
	display: flex;
	gap: 8px;
	margin-bottom: 12px;
}

.tabs button {
	min-height: 34px;
	background: #fff;
	color: #315f72;
}

.tabs button.active {
	background: #315f72;
	color: #fff;
}

.empty-state {
	padding: 24px;
	border: 1px dashed #c7bcb0;
	border-radius: 8px;
	color: #625a52;
	text-align: center;
}

.row-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 6px;
}

.inline-editor {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid #e1d9ce;
}

.card-workshop-summary {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(220px, 340px);
	gap: 16px;
	align-items: center;
	padding: 16px;
	border: 1px solid #d8d0c5;
	border-radius: 8px;
	background:
		linear-gradient(135deg, rgba(238, 245, 246, 0.78), rgba(255, 253, 250, 0.94)),
		#fffdfa;
}

.card-workshop-summary h3 {
	font-size: 22px;
	line-height: 1.35;
}

.card-workshop-summary p:not(.app-kicker) {
	margin: 8px 0 0;
	color: #5b534b;
	line-height: 1.65;
}

.workshop-progress {
	display: grid;
	gap: 10px;
	padding: 12px;
	border: 1px solid #e1d9ce;
	border-radius: 8px;
	background: #fff;
}

.workshop-progress__label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	color: #4f4942;
	font-weight: 800;
}

.workshop-progress__label span {
	color: #315f72;
	font-size: 13px;
}

.workshop-progress__bar {
	overflow: hidden;
	height: 8px;
	border-radius: 999px;
	background: #eee6dc;
}

.workshop-progress__bar span {
	display: block;
	width: var(--card-progress, 0%);
	height: 100%;
	border-radius: inherit;
	background: #315f72;
}

.workshop-status-counts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
}

.workshop-status-counts span {
	display: grid;
	gap: 2px;
	min-width: 0;
	padding: 8px;
	border-radius: 6px;
	background: #f7f4ef;
	color: #625a52;
	font-size: 12px;
	font-weight: 800;
	text-align: center;
}

.workshop-status-counts strong {
	color: #24211e;
	font-size: 18px;
}

.card-workshop-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 12px;
}

.workshop-card {
	display: grid;
	min-width: 0;
	overflow: hidden;
	border: 1px solid #e1d9ce;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 10px 24px rgba(36, 33, 30, 0.06);
}

.workshop-card.status-public {
	border-color: rgba(49, 95, 114, 0.42);
}

.workshop-card.status-private {
	border-color: rgba(85, 76, 67, 0.34);
}

.workshop-card__preview {
	position: relative;
	aspect-ratio: 0.76;
	overflow: hidden;
	background: #263f4a;
}

.workshop-card__preview img,
.workshop-card__placeholder {
	width: 100%;
	height: 100%;
}

.workshop-card__preview img {
	display: block;
	object-fit: cover;
}

.workshop-card__placeholder {
	display: grid;
	place-items: center;
	padding: 18px;
	background:
		linear-gradient(135deg, rgba(255, 253, 250, 0.16), transparent 44%),
		repeating-linear-gradient(90deg, rgba(255, 253, 250, 0.08) 0 1px, transparent 1px 12px),
		#263f4a;
	color: #fffdfa;
	text-align: center;
}

.workshop-card__placeholder span {
	display: -webkit-box;
	overflow: hidden;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	font-size: 18px;
	font-weight: 900;
	line-height: 1.45;
}

.workshop-status {
	position: absolute;
	right: 10px;
	top: 10px;
	background: rgba(255, 253, 250, 0.94);
	color: #315f72;
	box-shadow: 0 8px 18px rgba(36, 33, 30, 0.12);
}

.workshop-card__body {
	display: grid;
	gap: 10px;
	padding: 12px;
}

.workshop-card__body header {
	display: grid;
	gap: 5px;
	min-width: 0;
}

.workshop-card__body strong {
	overflow-wrap: anywhere;
	line-height: 1.35;
}

.workshop-card__number {
	color: #315f72;
	font-size: 12px;
	font-weight: 900;
}

.workshop-card__body p {
	margin: 0;
	color: #625a52;
	line-height: 1.55;
	overflow-wrap: anywhere;
}

.workshop-keywords {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.workshop-keywords span {
	display: inline-flex;
	align-items: center;
	max-width: 100%;
	min-height: 26px;
	padding: 0 9px;
	border-radius: 999px;
	background: #eef5f6;
	color: #315f72;
	font-size: 12px;
	font-weight: 800;
	overflow-wrap: anywhere;
}

.workshop-keywords .workshop-muted-chip {
	background: #f7f4ef;
	color: #766d64;
}

.ai-wizard {
	background:
		linear-gradient(135deg, rgba(255, 253, 250, 0.95), rgba(245, 239, 231, 0.92)),
		#fffdfa;
}

.ai-result {
	margin-top: 14px;
}

.generated-summary {
	display: grid;
	gap: 10px;
	padding: 14px;
	border: 1px solid #d8d0c5;
	border-radius: 8px;
	background: #fff;
}

.generated-summary header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.generated-summary p {
	margin: 0;
	color: #625a52;
	line-height: 1.65;
}

.suggestion-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.suggestion-chips span {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	padding: 0 10px;
	border-radius: 999px;
	background: #eef5f6;
	color: #315f72;
	font-size: 12px;
	font-weight: 800;
}

.history-panel {
	margin-top: 14px;
}

.offer-heading {
	margin-top: 18px;
}

.character-agent {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 1000;
	font-family: inherit;
}

.character-agent__launcher {
	position: relative;
	display: grid;
	place-items: center;
	width: 76px;
	height: 76px;
	padding: 0;
	border: 1px solid #d8c6ad;
	border-radius: 50%;
	background: #fffdfa;
	box-shadow: 0 16px 38px rgba(36, 33, 30, 0.22);
	cursor: pointer;
	overflow: hidden;
}

.character-agent__launcher img {
	width: 92px;
	max-width: none;
	transform: translateY(10px);
}

.character-agent__launcher span {
	position: absolute;
	right: 4px;
	top: 4px;
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #315f72;
	color: #fff;
	font-weight: 900;
}

.character-agent__panel {
	position: absolute;
	right: 0;
	bottom: 88px;
	display: grid;
	grid-template-columns: 92px minmax(0, 1fr);
	gap: 12px;
	width: min(360px, calc(100vw - 28px));
	padding: 14px;
	border: 1px solid #d8c6ad;
	border-radius: 8px;
	background: #fffdfa;
	box-shadow: 0 18px 46px rgba(36, 33, 30, 0.24);
}

.character-agent__panel[hidden] {
	display: none;
}

.character-agent__close {
	position: absolute;
	right: 8px;
	top: 8px;
	width: 28px;
	height: 28px;
	border: 0;
	border-radius: 50%;
	background: #efe8df;
	color: #4f4942;
	font-size: 18px;
	cursor: pointer;
}

.character-agent__portrait {
	align-self: end;
	overflow: hidden;
	height: 132px;
	border-radius: 8px;
	background: #f5efe7;
}

.character-agent__portrait img {
	width: 150px;
	max-width: none;
	transform: translate(-28px, 8px);
}

.character-agent__body {
	padding-right: 22px;
}

.character-agent__name {
	margin: 0 0 6px;
	color: #315f72;
	font-weight: 900;
}

.character-agent__body p:last-child {
	margin: 0;
	color: #4f4942;
	line-height: 1.65;
}

.draw-surface {
	overflow: hidden;
}

.import-panel {
	border-color: #b7c9ca;
	background: linear-gradient(135deg, #f7fbfb 0%, #fffdfa 100%);
}

.import-result {
	margin-top: 12px;
}

.ritual-stage {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
	gap: 20px;
	align-items: center;
	min-height: 320px;
	padding: 24px;
	border: 1px solid #cfc3b7;
	border-radius: 8px;
	background:
		linear-gradient(135deg, rgba(255, 253, 250, 0.94), rgba(239, 232, 224, 0.94)),
		#fffdfa;
	isolation: isolate;
}

.ritual-stage::before,
.ritual-stage::after {
	content: "";
	position: absolute;
	inset: 18px;
	border: 1px solid rgba(49, 95, 114, 0.18);
	border-radius: 6px;
	pointer-events: none;
}

.ritual-stage::after {
	inset: 28px;
	border-color: rgba(107, 79, 125, 0.16);
}

.ritual-copy {
	position: relative;
	z-index: 1;
	max-width: 390px;
}

.ritual-copy h3 {
	font-size: 28px;
	line-height: 1.25;
}

.ritual-copy p:not(.app-kicker) {
	margin: 12px 0 0;
	color: #5b534b;
	line-height: 1.8;
}

.deck-altar {
	position: relative;
	z-index: 1;
	min-height: 230px;
	perspective: 900px;
}

.ritual-card {
	position: absolute;
	left: 50%;
	top: 50%;
	width: min(44vw, 154px);
	max-width: 154px;
	aspect-ratio: 0.68;
	border-radius: 8px;
	transform: translate(-50%, -50%);
	box-shadow: 0 18px 36px rgba(36, 33, 30, 0.18);
}

.card-back {
	border: 1px solid rgba(255, 253, 250, 0.68);
	background:
		linear-gradient(135deg, rgba(255, 253, 250, 0.16) 0 18%, transparent 18% 82%, rgba(255, 253, 250, 0.12) 82% 100%),
		repeating-linear-gradient(90deg, rgba(255, 253, 250, 0.08) 0 1px, transparent 1px 12px),
		#263f4a;
}

.card-back::before {
	content: "";
	position: absolute;
	inset: 12px;
	border: 1px solid rgba(255, 253, 250, 0.42);
	border-radius: 6px;
}

.card-back::after {
	content: "";
	position: absolute;
	inset: 34px 28px;
	border-top: 1px solid rgba(239, 232, 224, 0.58);
	border-bottom: 1px solid rgba(239, 232, 224, 0.58);
	transform: rotate(-18deg);
}

.back-left {
	transform: translate(-62%, -49%) rotate(-8deg);
	background-color: #6b4f7d;
}

.back-right {
	transform: translate(-38%, -51%) rotate(8deg);
	background-color: #315f72;
}

.back-center {
	transform: translate(-50%, -53%) rotate(0deg);
	transition: transform 760ms ease, box-shadow 760ms ease;
}

.ritual-stage .draw-button {
	position: absolute;
	z-index: 2;
	right: 24px;
	bottom: 24px;
	min-width: 140px;
	background: #263f4a;
	border-color: #263f4a;
}

.ritual-stage.is-drawing .back-left {
	animation: quiet-left-card 1050ms ease both;
}

.ritual-stage.is-drawing .back-right {
	animation: quiet-right-card 1050ms ease both;
}

.ritual-stage.is-drawing .back-center {
	animation: quiet-center-card 1050ms ease both;
}

.ritual-stage.is-revealed .back-center {
	transform: translate(-50%, -58%) rotateY(12deg) rotate(-1deg);
	box-shadow: 0 22px 42px rgba(49, 95, 114, 0.2);
}

.draw-card {
	display: grid;
	grid-template-columns: minmax(220px, 380px) minmax(0, 1fr);
	gap: 18px;
	margin-top: 16px;
	padding: 16px;
	border: 1px solid #d8d0c5;
	border-radius: 8px;
	background: #fffdfa;
	opacity: 0;
	transform: translateY(12px);
	animation: reveal-reading 620ms ease forwards;
}

.revealed-card-frame {
	position: relative;
	padding: 8px;
	border: 1px solid #cfc3b7;
	border-radius: 8px;
	background: #f8f4ee;
	box-shadow: 0 16px 30px rgba(36, 33, 30, 0.1);
}

.revealed-card-frame::before {
	content: "";
	position: absolute;
	inset: 4px;
	border: 1px solid rgba(49, 95, 114, 0.18);
	border-radius: 6px;
	pointer-events: none;
}

.draw-card img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 6px;
}

.draw-reading {
	display: grid;
	gap: 12px;
	align-content: start;
}

.draw-reading h3 {
	font-size: 28px;
	line-height: 1.3;
}

.reading-lead {
	margin: 0;
	color: #3f3832;
	font-size: 18px;
	line-height: 1.7;
}

.reading-detail {
	border-top: 1px solid #e3dbd0;
	padding-top: 12px;
}

.card-image-placeholder {
	display: grid;
	place-items: center;
	aspect-ratio: 0.68;
	border-radius: 6px;
	background:
		repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 14px),
		#263f4a;
	color: #fffdfa;
	padding: 18px;
	text-align: center;
	font-weight: 800;
	line-height: 1.5;
}

.deck-options {
	display: grid;
	gap: 12px;
}

.draw-result {
	display: grid;
}

.offer-list {
	display: grid;
	gap: 12px;
	margin-top: 14px;
}

.experience-points {
	display: grid;
	gap: 10px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}

.experience-points li {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr);
	gap: 12px;
	align-items: start;
	padding: 12px;
	border: 1px solid #e3dbd0;
	border-radius: 8px;
	background: #fff;
}

.experience-points strong {
	color: #315f72;
}

.experience-points span {
	color: #5b534b;
	line-height: 1.65;
}

body.customer-page::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(90deg, rgba(248, 241, 230, 0.055) 0 1px, transparent 1px 74px),
		linear-gradient(0deg, rgba(248, 241, 230, 0.04) 0 1px, transparent 1px 74px);
	pointer-events: none;
}

.customer-page .one-my-me-app {
	width: min(100% - 36px, 1120px);
	padding-top: 28px;
}

.customer-page .customer-hero {
	position: relative;
	min-height: 340px;
	margin-bottom: 22px;
	padding: 68px 0 34px;
}

.customer-page .customer-hero::before {
	content: "";
	position: absolute;
	inset: 22px 0 auto;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(201, 168, 103, 0.82), transparent);
}

.customer-page .customer-hero__copy {
	position: relative;
	padding-left: 18px;
}

.customer-page .customer-hero__copy::before {
	content: "";
	position: absolute;
	left: 0;
	top: 6px;
	bottom: 6px;
	width: 3px;
	border-radius: 999px;
	background: linear-gradient(180deg, #d9bd76, #7d2e46, #6f8d84);
}

.customer-page .app-kicker {
	color: #c9a867;
	font-size: 12px;
	letter-spacing: 0.08em;
}

.customer-page .customer-hero h1 {
	max-width: 760px;
	color: #fff8ea;
	font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
	font-size: 56px;
	font-weight: 700;
	line-height: 1.12;
	text-shadow: 0 14px 38px rgba(0, 0, 0, 0.28);
}

.customer-page .customer-hero p {
	max-width: 690px;
	color: #eadfca;
}

.customer-page .customer-hero__note,
.customer-page .app-panel,
.customer-page .draw-card,
.customer-page .experience-points li {
	border-color: rgba(201, 168, 103, 0.32);
	background:
		linear-gradient(145deg, rgba(255, 252, 244, 0.96), rgba(245, 236, 220, 0.94)),
		#fff8ea;
	box-shadow: 0 24px 72px rgba(17, 21, 18, 0.18);
}

.customer-page .customer-hero__note {
	align-self: center;
	padding: 20px;
}

.customer-page .customer-hero__note span,
.customer-page .customer-hero__note small,
.customer-page .muted,
.customer-page .deck-option p,
.customer-page .offer-row p {
	color: #615342;
}

.customer-page .customer-hero__note strong {
	color: #5d2438;
	font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
	font-size: 31px;
}

.customer-page .app-view-tabs {
	border-color: rgba(201, 168, 103, 0.32);
	background: rgba(255, 248, 234, 0.92);
	box-shadow: 0 18px 42px rgba(17, 21, 18, 0.16);
}

.customer-page .app-view-tabs button {
	color: #513f35;
}

.customer-page .app-view-tabs button.active,
.customer-page .app-button {
	border-color: #5d2438;
	background: #5d2438;
	color: #fff8ea;
}

.customer-page .app-button.secondary,
.customer-page .app-link {
	border-color: #b7934e;
	background: #fffaf0;
	color: #5d2438;
}

.customer-page .app-badge {
	background: rgba(201, 168, 103, 0.18);
	color: #5d2438;
}

.customer-page .app-panel {
	position: relative;
	overflow: hidden;
}

.customer-page .app-panel::before {
	content: "";
	position: absolute;
	left: 18px;
	right: 18px;
	top: 0;
	height: 3px;
	border-radius: 999px;
	background: linear-gradient(90deg, #c9a867, #6f8d84, #7d2e46);
}

.customer-page .panel-heading h2,
.customer-page .draw-reading h3,
.customer-page .ritual-copy h3 {
	color: #241f1b;
	font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
}

.customer-page .deck-option {
	position: relative;
	overflow: hidden;
	border-color: rgba(201, 168, 103, 0.28);
	background:
		linear-gradient(145deg, rgba(255, 252, 244, 0.96), rgba(241, 232, 216, 0.96)),
		#fff8ea;
	box-shadow: 0 16px 34px rgba(31, 28, 24, 0.08);
	transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.customer-page .deck-option:hover,
.customer-page .deck-option:focus-visible {
	border-color: #c9a867;
	box-shadow: 0 22px 48px rgba(31, 28, 24, 0.16);
	transform: translateY(-2px);
}

.customer-page .deck-option.active {
	border-color: #5d2438;
	box-shadow:
		inset 0 0 0 1px #5d2438,
		0 22px 48px rgba(31, 28, 24, 0.16);
}

.customer-page .deck-option .deck-cover {
	aspect-ratio: 4 / 3;
	border: 1px solid rgba(201, 168, 103, 0.32);
	background:
		linear-gradient(135deg, rgba(201, 168, 103, 0.22), transparent),
		#1b241d;
}

.customer-page .deck-option .deck-cover img {
	filter: saturate(0.92) contrast(1.04);
	transform: scale(1.02);
}

.customer-page .deck-option header strong {
	color: #241f1b;
	font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
	font-size: 20px;
	line-height: 1.35;
}

.customer-page .deck-meta {
	color: #7d2e46;
}

.customer-page .ritual-stage {
	min-height: 390px;
	border-color: rgba(201, 168, 103, 0.38);
	background:
		linear-gradient(135deg, rgba(28, 36, 30, 0.97), rgba(65, 38, 45, 0.94)),
		#1c241e;
	color: #fff8ea;
	box-shadow: inset 0 0 0 1px rgba(255, 248, 234, 0.08), 0 28px 70px rgba(17, 21, 18, 0.26);
}

.customer-page .ritual-stage::before {
	border-color: rgba(201, 168, 103, 0.28);
}

.customer-page .ritual-stage::after {
	border-color: rgba(111, 141, 132, 0.24);
}

.customer-page .ritual-copy h3 {
	color: #fff8ea;
}

.customer-page .ritual-copy p:not(.app-kicker) {
	color: #eadfca;
}

.customer-page .card-back {
	border-color: rgba(255, 248, 234, 0.72);
	background:
		linear-gradient(135deg, rgba(255, 248, 234, 0.14) 0 18%, transparent 18% 82%, rgba(255, 248, 234, 0.1) 82% 100%),
		repeating-linear-gradient(90deg, rgba(255, 248, 234, 0.08) 0 1px, transparent 1px 12px),
		#22332c;
}

.customer-page .back-left {
	background-color: #7d2e46;
}

.customer-page .back-right {
	background-color: #6f8d84;
}

.customer-page .ritual-stage .draw-button {
	border-color: #c9a867;
	background: #c9a867;
	color: #241f1b;
	box-shadow: 0 16px 32px rgba(0, 0, 0, 0.24);
}

.customer-page .draw-card {
	border-color: rgba(201, 168, 103, 0.36);
	background:
		linear-gradient(145deg, rgba(255, 252, 244, 0.98), rgba(245, 236, 220, 0.96)),
		#fff8ea;
}

.customer-page .revealed-card-frame {
	border-color: rgba(201, 168, 103, 0.45);
	background: #f6ead5;
}

.customer-page .revealed-card-frame::before {
	border-color: rgba(93, 36, 56, 0.18);
}

.customer-page .reading-lead {
	color: #3f3128;
}

.customer-page .empty-state {
	border-color: rgba(201, 168, 103, 0.36);
	background: rgba(255, 248, 234, 0.72);
	color: #5b493a;
}

.customer-notice {
	position: fixed;
	left: 50%;
	bottom: 18px;
	z-index: 1100;
	width: min(420px, calc(100vw - 32px));
	padding: 12px 14px;
	border: 1px solid rgba(201, 168, 103, 0.46);
	border-radius: 8px;
	background: rgba(255, 248, 234, 0.96);
	color: #3b3028;
	box-shadow: 0 18px 44px rgba(17, 21, 18, 0.22);
	transform: translateX(-50%);
}

.customer-notice[hidden] {
	display: none;
}

.customer-page .experience-points strong {
	color: #5d2438;
}

@keyframes quiet-left-card {
	0% {
		transform: translate(-62%, -49%) rotate(-8deg);
	}
	45% {
		transform: translate(-76%, -50%) rotate(-13deg);
	}
	100% {
		transform: translate(-62%, -49%) rotate(-8deg);
	}
}

@keyframes quiet-right-card {
	0% {
		transform: translate(-38%, -51%) rotate(8deg);
	}
	45% {
		transform: translate(-24%, -50%) rotate(13deg);
	}
	100% {
		transform: translate(-38%, -51%) rotate(8deg);
	}
}

@keyframes quiet-center-card {
	0% {
		transform: translate(-50%, -53%) rotate(0deg);
	}
	46% {
		transform: translate(-50%, -62%) rotateY(18deg) rotate(1deg);
	}
	100% {
		transform: translate(-50%, -53%) rotate(0deg);
	}
}

@keyframes reveal-reading {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 900px) {
	.stats-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.portal-main,
	.customer-layout {
		grid-template-columns: 1fr;
	}

	.card-workshop-summary {
		grid-template-columns: 1fr;
	}

	.deck-studio-summary {
		grid-template-columns: 1fr;
	}

	.ritual-stage {
		grid-template-columns: 1fr;
	}

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

	.deck-altar {
		min-height: 250px;
	}
}

@media (max-width: 560px) {
	.one-my-me-app {
		width: min(100% - 20px, 1180px);
		padding-top: 12px;
	}

	.app-topbar,
	.panel-heading,
	.list-row header,
	.deck-option header,
	.offer-row header {
		align-items: flex-start;
		flex-direction: column;
	}

	.form-row,
	.draw-card {
		grid-template-columns: 1fr;
	}

	.card-workshop-grid {
		grid-template-columns: 1fr;
	}

	.deck-studio-grid {
		grid-template-columns: 1fr;
	}

	.card-workshop-summary,
	.deck-studio-summary,
	.workshop-card__body {
		padding: 12px;
	}

	.deck-studio-facts,
	.workshop-status-counts {
		grid-template-columns: 1fr;
	}

	.deck-actions .app-button,
	.workshop-card .app-button {
		width: 100%;
	}

	.ritual-stage {
		min-height: 430px;
		padding: 18px;
	}

	.ritual-stage .draw-button {
		left: 18px;
		right: 18px;
	}

	.customer-hero h1 {
		font-size: 34px;
	}

	.customer-page .customer-hero {
		min-height: auto;
		padding: 42px 0 18px;
	}

	.customer-page .customer-hero h1 {
		font-size: 36px;
		line-height: 1.18;
	}

	.customer-page .customer-hero p {
		font-size: 16px;
	}

	.customer-page .customer-hero__copy {
		padding-left: 14px;
	}

	.customer-page .customer-hero__note {
		padding: 16px;
	}

	.customer-page .app-view-tabs {
		gap: 6px;
		padding: 8px;
	}

	.customer-page .app-view-tabs button {
		flex: 1 1 auto;
		min-width: 92px;
		padding: 0 10px;
	}

	.customer-page .ritual-stage {
		min-height: 430px;
	}

	.customer-page .deck-altar {
		min-height: 220px;
	}

	.character-agent {
		right: 10px;
		bottom: 10px;
	}

	.character-agent__launcher {
		width: 64px;
		height: 64px;
	}

	.character-agent__panel {
		grid-template-columns: 76px minmax(0, 1fr);
		bottom: 74px;
	}

	.character-agent__portrait {
		height: 110px;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 1ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: 1ms !important;
	}
}
