.bookstore-page {
	max-width: 710px;
}

.bookstore-page__title {
	margin: 0 0 6px;
	font-size: 28px;
	line-height: 1.15;
	color: #1f3a57;
}

.bookstore-page__lede {
	margin: 0 0 16px;
	font-size: 14px;
	line-height: 1.45;
	color: #4a6075;
}

.bookstore-shell {
	padding: 14px;
	border-radius: 12px;
	background: linear-gradient(180deg, #fffdf8 0%, #f4efe4 100%);
}

.bookstore-hud {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px 12px;
	margin-bottom: 10px;
}

.bookstore-hud__shop {
	grid-column: 1 / -1;
	margin: 0 0 2px;
	font-size: 15px;
	font-weight: bold;
	line-height: 1.25;
	color: #1f3a57;
}

.bookstore-hud__stat {
	padding: 10px 12px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.82);
	border: 1px solid rgba(35, 78, 112, 0.14);
}

.bookstore-hud__label {
	display: block;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #66788a;
}

.bookstore-hud__value {
	font-size: 20px;
	color: #1f3a57;
}

.bookstore-day-track {
	grid-column: 1 / -1;
	display: flex;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.bookstore-day-track__dot {
	flex: 1;
	height: 8px;
	border-radius: 999px;
	background: #d8e0e8;
	transition: background 0.25s ease, transform 0.25s ease;
}

.bookstore-day-track__dot.is-done {
	background: #6aaed6;
}

.bookstore-day-track__dot.is-current {
	background: #234e70;
	transform: scaleY(1.25);
}

.bookstore-hud__actions {
	grid-column: 1 / -1;
	display: flex;
	justify-content: flex-end;
}

.bookstore-end-run-btn {
	font-size: 12px;
	padding: 6px 12px;
}

.bookstore-hud__loan {
	grid-column: 1 / -1;
	margin: 0;
	padding: 8px 10px;
	border-radius: 8px;
	background: #fff7ed;
	border: 1px solid #fdba74;
	font-size: 12px;
	color: #9a3412;
}

.bookstore-plan-warning {
	margin: 0 0 12px;
	padding: 10px 12px;
	border-radius: 8px;
	background: #fffbeb;
	border: 1px solid #fcd34d;
	font-size: 13px;
	line-height: 1.45;
	color: #92400e;
}

.bookstore-result__notes {
	margin: 14px 0;
	padding: 12px 14px;
	border-radius: 8px;
	background: #f8fafc;
	border: 1px solid #dbe3ea;
}

.bookstore-result__notes-title {
	margin: 0 0 8px;
	font-size: 14px;
	color: #1f3a57;
}

.bookstore-result__notes-list {
	margin: 0;
	padding-left: 18px;
	color: #334155;
}

.bookstore-result__notes-list li {
	margin-bottom: 6px;
	font-size: 13px;
	line-height: 1.45;
}

.bookstore-finish__summary {
	margin: 12px 0;
	padding: 12px 14px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.82);
	border: 1px solid rgba(35, 78, 112, 0.12);
	font-size: 13px;
	line-height: 1.5;
	color: #334155;
}

.bookstore-finish__summary p {
	margin: 0 0 6px;
}

.bookstore-finish__summary p:last-child {
	margin-bottom: 0;
}

.bookstore-recap {
	margin: 12px 0;
	padding: 12px 14px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid rgba(35, 78, 112, 0.14);
}

.bookstore-recap__eyebrow {
	margin: 0 0 4px;
	font-size: 11px;
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #66788a;
}

.bookstore-recap__shop {
	margin: 0 0 10px;
	font-size: 18px;
	line-height: 1.2;
	color: #1f3a57;
}

.bookstore-recap__stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px 12px;
	margin: 0;
}

.bookstore-recap__stat {
	margin: 0;
}

.bookstore-recap__stat dt {
	margin: 0;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #66788a;
}

.bookstore-recap__stat dd {
	margin: 2px 0 0;
	font-size: 15px;
	font-weight: bold;
	color: #1f3a57;
}

.bookstore-recap__rank {
	margin: 10px 0 0;
	font-size: 13px;
	line-height: 1.4;
	color: #4a6075;
}

.bookstore-recap__actions {
	display: flex;
	justify-content: flex-end;
	margin-top: 12px;
}

.bookstore-recap__copy.is-copied {
	border-color: #059669;
	color: #047857;
}

.bookstore-toast-region {
	position: fixed;
	left: 50%;
	bottom: 18px;
	z-index: 12000;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	width: min(92vw, 420px);
	transform: translateX(-50%);
	pointer-events: none;
}

.bookstore-toast {
	padding: 10px 14px;
	border-radius: 10px;
	background: #1f3a57;
	color: #fff;
	font-size: 13px;
	line-height: 1.45;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.22);
	pointer-events: auto;
}

.bookstore-toast--error {
	background: #991b1b;
}

.bookstore-scene-wrap {
	position: relative;
	margin-bottom: 14px;
	border-radius: 12px;
	overflow: hidden;
	border: 2px solid #324b63;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.bookstore-scene {
	display: block;
	width: 100%;
	height: auto;
	background: #87ceeb;
}

.bookstore-forecast-panel {
	margin-bottom: 10px;
}

.bookstore-forecast-panel .bookstore-forecast-card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 10px 12px 11px;
	border-radius: 10px;
	background: rgba(255, 253, 247, 0.96);
	border: 1px solid rgba(35, 78, 112, 0.18);
	box-shadow: inset 4px 0 0 #234e70;
}

.bookstore-forecast-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
}

.bookstore-forecast-card__weather-badge {
	margin: 0;
	padding: 3px 8px;
	border-radius: 999px;
	font-size: 11px;
	line-height: 1.35;
	font-weight: 600;
	color: #35556f;
	background: rgba(35, 78, 112, 0.08);
	border: 1px solid rgba(35, 78, 112, 0.12);
	white-space: nowrap;
}

.bookstore-forecast-card__weather-badge--alert {
	color: #9a3412;
	background: #fff7ed;
	border-color: #fdba74;
}

.bookstore-forecast-card__main {
	display: flex;
	gap: 10px;
	align-items: flex-start;
}

.bookstore-forecast-card__lead {
	flex: 1 1 auto;
	min-width: 0;
}

.bookstore-forecast-card__signals {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.bookstore-forecast-card__signal {
	padding: 8px 9px;
	border-radius: 8px;
	background: rgba(35, 78, 112, 0.04);
}

.bookstore-forecast-card__signal-label {
	margin: 0 0 3px;
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #66788a;
	font-weight: bold;
}

.bookstore-forecast-card__signal-text {
	margin: 0;
	font-size: 12px;
	line-height: 1.4;
	color: #4a6075;
}

.bookstore-forecast-card__icon {
	flex: 0 0 42px;
	width: 42px;
	height: 42px;
	border-radius: 8px;
	background: transparent;
	overflow: hidden;
}

.bookstore-forecast-card__icon svg {
	display: block;
	width: 42px;
	height: 42px;
	border-radius: 8px;
}

.bookstore-forecast-card__icon--rain {
	background-color: #dbeafe;
	background-image: radial-gradient(circle at 30% 35%, #93c5fd 0 24%, transparent 25%), radial-gradient(circle at 65% 55%, #60a5fa 0 18%, transparent 19%);
}

.bookstore-forecast-card__icon--sun {
	background-color: #fef3c7;
	background-image: radial-gradient(circle at 50% 50%, #fbbf24 0 32%, transparent 33%);
}

.bookstore-forecast-card__icon--cloud {
	background-color: #e5e7eb;
	background-image: radial-gradient(circle at 35% 55%, #fff 0 28%, transparent 29%), radial-gradient(circle at 62% 50%, #f3f4f6 0 34%, transparent 35%);
}

.bookstore-forecast-card__icon--heat {
	background-color: #ffedd5;
	background-image: radial-gradient(circle at 50% 50%, #fb923c 0 30%, transparent 31%);
}

.bookstore-forecast-card__icon--snow {
	background-color: #eff6ff;
	background-image: radial-gradient(circle at 30% 40%, #fff 0 8%, transparent 9%), radial-gradient(circle at 60% 60%, #fff 0 10%, transparent 11%), radial-gradient(circle at 45% 70%, #fff 0 6%, transparent 7%);
}

.bookstore-forecast-card__eyebrow {
	margin: 0 0 2px;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #6b7280;
}

.bookstore-forecast-card__title {
	margin: 0 0 3px;
	font-size: 15px;
	line-height: 1.2;
	color: #1f3a57;
}

.bookstore-forecast-card__summary {
	margin: 0;
	font-size: 12px;
	line-height: 1.4;
	color: #4a6075;
}

.bookstore-forecast-card__weather,
.bookstore-forecast-card__street-report,
.bookstore-forecast-card__clue {
	display: none;
}

.bookstore-intro__name {
	margin: 14px 0 16px;
}

.bookstore-intro__name-label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: bold;
	color: #1f3a57;
}

.bookstore-intro__name-input {
	width: 100%;
	max-width: 280px;
	box-sizing: border-box;
}

.bookstore-intro__name-hint {
	display: block;
	margin-top: 6px;
	font-size: 11px;
	line-height: 1.35;
	color: #64748b;
}

.bookstore-intro,
.bookstore-result,
.bookstore-finish {
	padding: 16px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.78);
	border: 1px solid rgba(35, 78, 112, 0.12);
}

.bookstore-intro__title,
.bookstore-result__title,
.bookstore-finish__title {
	margin: 0 0 8px;
	font-size: 20px;
	color: #1f3a57;
}

.bookstore-intro__text {
	margin: 0 0 14px;
	font-size: 14px;
	line-height: 1.45;
	color: #4a6075;
}

.bookstore-choice-group {
	margin-bottom: 14px;
}

.bookstore-choice-group--split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.bookstore-choice-group__title {
	margin: 0 0 8px;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #516579;
}

.bookstore-choice-cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

#bookstore-stock-cards.bookstore-choice-cards {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bookstore-choice-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	padding: 10px 11px;
	border: 2px solid #c7d6e4;
	border-radius: 10px;
	background: #fff;
	color: #1f2937;
	text-align: left;
	cursor: pointer;
	transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.bookstore-choice-card:hover {
	border-color: #6aaed6;
	transform: translateY(-1px);
	box-shadow: 0 4px 10px rgba(35, 78, 112, 0.12);
}

.bookstore-choice-card.is-selected {
	border-color: #234e70;
	background: #edf6fd;
	box-shadow: 0 0 0 1px rgba(35, 78, 112, 0.15);
}

.bookstore-choice-card:focus-visible {
	outline: 2px solid #234e70;
	outline-offset: 2px;
}

.bookstore-choice-card.is-disabled,
.bookstore-choice-card:disabled {
	opacity: 0.62;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.bookstore-choice-card.is-disabled:hover,
.bookstore-choice-card:disabled:hover {
	border-color: #c7d6e4;
	transform: none;
	box-shadow: none;
}

.bookstore-choice-card__cost-was {
	text-decoration: line-through;
	color: #94a3b8;
	margin-right: 4px;
}

.bookstore-choice-card__cost-now {
	font-weight: bold;
	color: #234e70;
}

.bookstore-choice-card__unavailable {
	display: block;
	margin-top: 2px;
	font-size: 10px;
	line-height: 1.35;
	color: #8b5a2b;
}

.bookstore-morning-bulletin {
	margin: 0;
	padding: 8px 10px;
	border-radius: 8px;
	background: rgba(255, 251, 235, 0.92);
	border: 1px solid rgba(180, 130, 40, 0.22);
}

.bookstore-forecast-card .bookstore-morning-bulletin {
	margin-top: 0;
}

.bookstore-morning-bulletin__eyebrow {
	margin: 0 0 2px;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #92702a;
}

.bookstore-morning-bulletin__title {
	margin: 0 0 4px;
	font-size: 15px;
	line-height: 1.25;
	color: #1f3a57;
}

.bookstore-morning-bulletin__summary {
	margin: 0;
	font-size: 12px;
	line-height: 1.45;
	color: #4a6075;
}

.bookstore-choice-card__emoji {
	font-size: 18px;
	line-height: 1;
}

.bookstore-choice-card__label {
	font-size: 13px;
	font-weight: bold;
	line-height: 1.25;
}

.bookstore-choice-card__cost {
	font-size: 11px;
	color: #64748b;
}

.bookstore-choice-card__hint {
	display: block;
	font-size: 10px;
	line-height: 1.3;
	color: #94a3b8;
}

.bookstore-plan-lede {
	margin: 0 0 14px;
	padding: 10px 12px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.72);
	border: 1px solid rgba(35, 78, 112, 0.12);
	font-size: 13px;
	line-height: 1.45;
	color: #4a6075;
}

.bookstore-choice-group__note {
	font-size: 11px;
	font-weight: normal;
	text-transform: none;
	letter-spacing: 0;
	color: #64748b;
}

.bookstore-plan-footer__costs {
	flex: 1;
	min-width: 220px;
}

.bookstore-plan-footer__breakdown {
	margin: 4px 0 0;
	font-size: 12px;
	line-height: 1.4;
	color: #64748b;
}

.bookstore-result__ledger {
	margin-bottom: 12px;
	padding: 12px 14px;
	border-radius: 8px;
	background: #f8fafc;
	border: 1px solid #dbe4ec;
}

.bookstore-result__ledger p {
	margin: 0 0 8px;
	font-size: 13px;
	line-height: 1.45;
	color: #334155;
}

.bookstore-result__ledger p:last-child {
	margin-bottom: 0;
	padding-top: 4px;
	border-top: 1px solid #dbe4ec;
}

.bookstore-plan-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 4px;
}

.bookstore-plan-footer__estimate {
	margin: 0;
	font-size: 13px;
	color: #4a6075;
}

.bookstore-result__stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	margin-bottom: 12px;
}

@media (min-width: 640px) {
	.bookstore-result__stats {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.bookstore-result__stat {
	padding: 10px 8px;
	border-radius: 8px;
	background: #f8fafc;
	text-align: center;
}

.bookstore-result__stat--profit {
	background: #ecfdf5;
}

.bookstore-result__label {
	display: block;
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #64748b;
}

.bookstore-result__stat strong {
	font-size: 16px;
	color: #1f3a57;
}

.bookstore-result__stat strong.is-negative {
	color: #b42318;
}

.bookstore-page [hidden] {
	display: none !important;
}

.bookstore-event-card {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin: 0 0 14px;
	padding: 10px 12px;
	border-radius: 10px;
	background: rgba(255, 253, 247, 0.96);
	border: 1px solid rgba(35, 78, 112, 0.14);
	border-left-width: 4px;
	border-left-color: #d97706;
}

.bookstore-event-card[data-event-tone="positive"] {
	background: #f0fdf4;
}

.bookstore-event-card[data-event-tone="negative"] {
	background: #fef2f2;
}

.bookstore-event-card[data-event-tone="mixed"] {
	background: #fffbeb;
}

.bookstore-event-card__copy {
	flex: 1 1 auto;
	min-width: 0;
}

.bookstore-event-card__art {
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
}

.bookstore-event-card__art svg {
	display: block;
	width: 48px;
	height: 48px;
	border-radius: 8px;
}

@keyframes bookstore-event-pop {
	0% {
		transform: scale(0.88);
		opacity: 0.55;
	}
	65% {
		transform: scale(1.04);
	}
	100% {
		transform: scale(1);
		opacity: 1;
	}
}

.bookstore-event-card:not([hidden]) .bookstore-event-card__art svg {
	animation: bookstore-event-pop 0.45s ease-out;
}

@media (prefers-reduced-motion: reduce) {
	.bookstore-event-card:not([hidden]) .bookstore-event-card__art svg {
		animation: none;
	}
}

.bookstore-event-card__label {
	margin: 0 0 4px;
	font-size: 14px;
	font-weight: 600;
	color: #1f3a57;
}

.bookstore-event-card__message {
	margin: 0;
	font-size: 13px;
	line-height: 1.45;
	color: #4a6075;
}

.bookstore-result__note {
	margin: 0 0 12px;
	padding: 10px 12px;
	border-radius: 8px;
	background: #fff7ed;
	border: 1px solid #fed7aa;
	font-size: 13px;
	line-height: 1.4;
	color: #7c2d12;
}

.bookstore-finish__cash,
.bookstore-finish__best {
	margin: 0 0 8px;
	font-size: 16px;
	color: #1f3a57;
}

.bookstore-finish__message {
	margin: 0 0 14px;
	font-size: 14px;
	line-height: 1.4;
	color: #4a6075;
}

.bookstore-best-box {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 18px;
	padding: 16px 18px;
	border: 1px solid #8eb4d8;
	border-radius: 10px;
	background: #d9e8f5;
	color: #1f3a57;
}

.bookstore-best-box__icon {
	flex: 0 0 auto;
	font-size: 34px;
	line-height: 1;
	color: #1f3a57;
}

.bookstore-best-box__title {
	margin: 0 0 4px;
	font-size: 18px;
	font-weight: bold;
	line-height: 1.2;
}

.bookstore-best-box__text {
	margin: 0;
	font-size: 13px;
	line-height: 1.35;
	color: #35516d;
}

@media (max-width: 640px) {
	.bookstore-choice-group--split,
	.bookstore-result__stats,
	.bookstore-recap__stats,
	.bookstore-choice-cards {
		grid-template-columns: 1fr;
	}

	.bookstore-forecast-card__signals {
		grid-template-columns: 1fr;
	}

	#bookstore-stock-cards.bookstore-choice-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.bookstore-morning-bulletin__title {
		font-size: 14px;
	}

	.bookstore-forecast-card__summary,
	.bookstore-forecast-card__signal-text,
	.bookstore-morning-bulletin__summary {
		font-size: 12px;
	}

	.bookstore-choice-card {
		padding: 9px 10px;
	}
}
