﻿		:root {
			--paper: #F4E6D0;
			--card: #FFF9F1;
			--tile: #F6EBD8;
			--ink: #2A2118;
			--muted: #8C735C;
			--line: #E4D2B8;
			--crimson: #C23A32;
			--cream: #FFF8EE;
			--track: #E7D7C2;
			--gold: #C4A05A;
		}
		@font-face {
			font-family: 'Modam VF';
			src: url('../themes/dkr/assets/fonts/ModamVF.woff') format('woff-variations'),
				url('../themes/dkr/assets/fonts/ModamVF.woff') format('woff');
			font-weight: 100 900;
			font-display: fallback;
		}
		* { box-sizing: border-box; }
		body {
			margin: 0;
			background: #e6d5bc;
			color: var(--ink);
			font-family: 'Modam VF', Tahoma, sans-serif;
			font-variation-settings: "wght" 400, "wdth" 92;
		}
		button, input { font-family: inherit; }
		button { cursor: pointer; }
		.app {
			max-width: 430px;
			min-height: 100vh;
			margin: 0 auto;
			padding: 16px 16px 0;
			background: var(--paper);
			position: relative;
			display: flex;
			flex-direction: column;
		}
		.view { display: none; padding: 16px 0 28px; }
		.view.is-on { display: block; }
		.view.pad-dock { padding-bottom: 108px; }
		.header { display: flex; justify-content: center; padding: 8px 0 4px; }
		.header img { width: 71px; height: 71px; }
		.stats {
			background: var(--card);
			color: var(--ink);
			border: 1px solid var(--line);
			border-radius: 20px;
			padding: 14px;
			box-shadow: 0 8px 20px #2A211814;
		}
		.stats h2 {
			margin: 0 0 10px;
			font-size: 13px;
			font-weight: 700;
			text-align: center;
			color: var(--crimson);
		}
		.stat-grid { display: flex; flex-direction: column; gap: 8px; }
		.stat {
			display: flex;
			align-items: center;
			justify-content: space-between;
			gap: 12px;
			background: var(--tile);
			border-radius: 14px;
			padding: 12px 14px;
			min-height: 52px;
		}
		.stat strong {
			margin: 0;
			font-size: 18px;
			font-weight: 700;
			white-space: nowrap;
			line-height: 1.2;
		}
		.stat strong small {
			font-size: 12px;
			font-weight: 600;
			color: var(--muted);
			margin-right: 4px;
		}
		.stat span.cap {
			margin: 0;
			color: var(--muted);
			font-size: 12px;
			line-height: 1.4;
			text-align: left;
		}
		.hero {
			overflow: hidden;
			margin-top: 14px;
			padding: 16px 14px;
			border-radius: 24px;
			background: linear-gradient(120deg, #F3D7A2 0%, #FFF9F1 28%, #E5F2F4 52%, #F6D5CE 76%, #F3D7A2 100%);
			background-size: 280% 280%;
			animation: hero-flow 9s ease-in-out infinite;
			box-shadow: 0 8px 20px #2A211814;
		}
		@keyframes hero-flow {
			0% { background-position: 0% 40%; }
			50% { background-position: 100% 60%; }
			100% { background-position: 0% 40%; }
		}
		.hero-art {
			float: left;
			width: 158px;
			height: auto;
			margin: 0 0 -70px -28px;
			pointer-events: none;
			filter: blur(14px);
			animation: hero-focus .8s ease 2s forwards;
		}
		@keyframes hero-focus {
			to { filter: blur(0); }
		}
		.hero-copy { text-align: right; }
		.eyebrow { margin: 0 0 8px; color: var(--crimson); font-size: 13px; font-weight: 700; }
		.hero h1 { margin: 0 0 8px; font-size: 28px; line-height: 1.45; }
		.hero p { margin: 0; font-size: 14px; line-height: 1.7; }
		.stack { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; padding-bottom: 10px }
		.partners { margin: 18px -16px 20px; }
		.partners h2 {
			margin: 0 16px 10px;
			text-align: center;
			font-size: 23px;
			font-weight: 700;
			color: var(--crimson);
		}
		.marquee { overflow: hidden; direction: ltr; }
		.marquee-track {
			display: flex;
			align-items: center;
			width: max-content;
			animation: partners-move 28s linear infinite;
		}
		.marquee-track img {
			width: auto;
			max-width: 128px;
			object-fit: contain;
			padding: 8px 14px;
		}
		@keyframes partners-move {
			from { transform: translateX(-50%); }
			to { transform: translateX(0); }
		}
		.action {
			background: var(--card);
			border-radius: 20px;
			padding: 16px;
			box-shadow: 0 8px 20px #2A211814;
		}
		.action-top { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
		.action-copy { flex: 1; }
		.action h2 { margin: 0 0 4px; font-size: 16px; }
		.action p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
		.icon-box {
			width: 46px; height: 46px; border-radius: 14px;
			background: #C4A05A2E; color: #6B5344;
			display: grid; place-items: center; flex: 0 0 auto;
		}
		.btn {
			width: 100%; min-height: 46px; border: 0; border-radius: 14px;
			background: var(--crimson); color: var(--cream);
			font-weight: 700; font-size: 15px;
			box-shadow: 0 8px 16px #C23A3247;
			display: inline-flex; align-items: center; justify-content: center;
			text-decoration: none;
		}
		.btn:disabled { background: var(--track); color: var(--muted); box-shadow: none; cursor: default; }
		.btn-quiet {
			background: var(--card); color: var(--muted); border: 1px solid var(--line); box-shadow: none;
		}
		.back-row { display: flex; justify-content: flex-start; margin-bottom: 12px; }
		.back {
			height: 44px; border: 0; border-radius: 22px; padding: 0 14px;
			background: var(--card); color: var(--ink); font-weight: 700;
			display: inline-flex; align-items: center; gap: 6px;
			box-shadow: 0 6px 14px #2A211814;
		}
		.lead { margin: 0 0 4px; font-size: 15px; font-weight: 600; line-height: 1.7; }
		.sub { margin: 0 0 14px; color: var(--muted); font-size: 13px; line-height: 1.7; }
		.search {
			display: flex; align-items: center; gap: 8px;
			height: 48px; padding: 0 14px; margin-bottom: 12px;
			background: var(--card); border: 1px solid var(--line); border-radius: 14px;
		}
		.search input {
			flex: 1; border: 0; background: transparent; text-align: right;
			font-size: 14px; color: var(--ink); outline: none;
		}
		.search input::placeholder { color: var(--muted); }
		.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
		.tab {
			height: 48px; border-radius: 14px; border: 1px solid var(--line);
			background: var(--card); color: var(--ink); font-weight: 700; font-size: 15px;
		}
		.tab.is-on { background: var(--crimson); color: var(--cream); border-color: var(--crimson); box-shadow: 0 6px 14px #C23A3233; }
		[hidden] { display: none !important; }
		.books { display: flex; flex-direction: column; gap: 12px; }
		.book {
			background: var(--card); border-radius: 20px; padding: 12px;
			box-shadow: 0 8px 20px #2A211814; border: 1px solid transparent;
		}
		.book.is-on { border-color: var(--gold); }
		.book-main { display: flex; gap: 12px; align-items: center; }
		.book-copy { flex: 1; min-width: 0; }
		.book h3 { margin: 0; font-size: 17px; }
		.price-row { display: flex; align-items: center; justify-content: flex-start; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
		.now { font-size: 18px; font-weight: 700; }
		.now small { font-size: 13px; font-weight: 500; color: var(--muted); margin-right: 4px; }
		.old { color: var(--crimson); text-decoration: line-through; font-size: 13px; }
		.off {
			background: var(--crimson); color: #fff; border-radius: 99px;
			padding: 2px 8px; font-size: 12px; font-weight: 700;
		}
		.pick, .done, .stepper { margin-top: 10px; }
		.done { background: var(--track); color: var(--muted); box-shadow: none; }
		.stepper {
			display: flex; align-items: center; justify-content: space-between;
			background: var(--tile); border-radius: 14px; padding: 4px;
		}
		.stepper button {
			width: 36px; height: 36px; border: 0; border-radius: 10px; background: #fff; color: var(--ink);
			display: grid; place-items: center; padding: 0;
		}
		.stepper button svg { width: 18px; height: 18px; display: block; }
		.stepper button.plus { background: var(--crimson); color: var(--cream); }
		.stepper input {
			width: 64px; height: 36px; border: 1px solid var(--line); border-radius: 8px;
			text-align: center; font-weight: 700; font-size: 15px; background: #fff;
		}
		.need { margin: 10px 0 6px; color: var(--muted); font-size: 12px; text-align: right; white-space: nowrap; }
		.bar { height: 8px; border-radius: 99px; background: var(--track); overflow: hidden; direction: ltr; }
		.bar span { display: block; height: 100%; background: var(--crimson); border-radius: 99px; }
		.cover {
			width: 92px; height: 128px; border-radius: 12px; color: #fff;
			display: flex; align-items: flex-end; justify-content: flex-end;
			padding: 8px; font-weight: 700; font-size: 13px; flex: 0 0 auto;
			background: linear-gradient(100deg, var(--tile) 30%, #fff 50%, var(--tile) 70%);
			background-size: 200% 100%;
			animation: cover-shine 1.2s ease-in-out infinite;
		}
		.cover:has(img) { padding: 0; }
		@keyframes cover-shine {
			from { background-position: 100% 0; }
			to { background-position: -100% 0; }
		}
		@media (prefers-reduced-motion: reduce) {
			.cover { animation: none; }
			.hero { animation: none; }
			.hero-art { animation: none; filter: none; }
			.marquee-track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; padding: 0 16px; }
			.marquee-track img[aria-hidden="true"] { display: none; }
		}
		.dock {
			position: sticky; bottom: 12px; z-index: 5;
			display: none; gap: 20px; align-items: center;
			margin-top: 12px;
			background: var(--crimson);
			border: 1px solid #fff;
			border-radius: 18px;
			min-height: 72px;
			padding: 14px 16px;
		}
		.view.has-dock .dock { display: flex; }
		.dock .btn {
			width: 150px; flex: none; min-height: 44px;
			background: #FFF9F1; color: #000; box-shadow: none;
		}
		.dock-sum { text-align: center; min-width: 118px; }
		.dock-sum span { display: block; color: #fff; font-size: 12px; }
		.dock-sum strong { color: #fff; font-size: 14px; }
		.panel h2 { margin: 4px 0 12px; font-size: 16px; }
		.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
		.chip-caption { grid-column: 1 / -1; margin: 6px 0 0; font-size: 13px; font-weight: 700; }
		.chip-full { grid-column: 1 / -1; }
		.chip {
			display: flex; align-items: center; justify-content: center; gap: 6px;
			border: 1px solid var(--line); background: #fff; border-radius: 16px;
			min-height: 72px; color: var(--ink); font-weight: 700;
		}
		.chip small { font-weight: 500; color: var(--muted); font-size: 12px; }
		.chip.is-on { background: var(--crimson); color: var(--cream); border-color: var(--crimson); }
		.chip.is-on small { color: var(--cream); }
		.field { margin-top: 12px; }
		.field label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 13px; }
		.field label b { color: var(--crimson); font-weight: 700; }
		.field input, .money-input {
			width: 100%; height: 48px; border: 1px solid var(--line); border-radius: 14px;
			background: var(--card); padding: 0 14px; font-size: 15px; text-align: right; color: var(--ink);
		}
		.money-line {
			display: flex; align-items: center; gap: 8px;
			height: 48px; padding: 0 0 0 14px;
			border: 1px solid var(--line); border-radius: 14px; background: var(--card);
		}
		.money-line:focus-within { border-color: var(--ink); }
		.money-line .money-input {
			flex: 1; width: auto; height: 100%;
			border: 0; border-radius: 0; background: transparent;
			outline: none; box-shadow: none;
		}
		.money-line .money-input:focus { outline: none; border: 0; box-shadow: none; }
		.money-line span { color: var(--muted); font-size: 13px; flex: none; }
		.hint { margin: 14px 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
		.section-title { margin: 18px 0 8px; font-size: 15px; }
		.foot {
			background: var(--ink); color: #E8D4BC; text-align: center;
			font-size: 12px; line-height: 1.8; padding: 12px 16px 18px;
			margin: auto -16px 0;
		}
		.scrim {
			position: fixed; inset: 0; background: #2A211859; opacity: 0; pointer-events: none;
			transition: opacity .25s ease; z-index: 20;
		}
		.scrim.is-on { opacity: 1; pointer-events: auto; }
		.sheet {
			position: fixed; left: 50%; bottom: 0; width: min(430px, 100%);
			transform: translate(-50%, 110%);
			background: var(--card); border-radius: 28px 28px 0 0;
			box-shadow: 0 -10px 28px #2A211840;
			z-index: 21; padding: 18px 16px 22px;
			transition: transform .32s ease;
			max-height: min(78vh, 680px); overflow: hidden;
			display: flex; flex-direction: column;
		}
		.sheet.is-on { transform: translate(-50%, 0); }
		.sheet h2 { margin: 0; text-align: center; font-size: 16px; font-weight: 700; }
		.step-line { position: relative; height: 12px; margin-top: 10px; }
		.step-line::before {
			content: ""; position: absolute; left: 12px; right: 12px; top: 4px; height: 3px;
			background: var(--track); border-radius: 99px;
		}
		.sheet.is-pay .step-line::after {
			content: ""; position: absolute; right: 12px; top: 4px; height: 3px; width: calc(50% - 12px);
			background: var(--crimson); border-radius: 99px;
		}
		.step-line i {
			position: absolute; top: 0; width: 12px; height: 12px; border-radius: 50%;
			background: #E4D2B8;
		}
		.step-line i:nth-child(1) { right: 0; background: var(--crimson); }
		.step-line i:nth-child(2) { left: 50%; transform: translateX(-50%); }
		.sheet.is-pay .step-line i:nth-child(2) { background: var(--crimson); }
		.step-line i:nth-child(3) { left: 0; }
		#sheet-body { flex: 1; min-height: 0; overflow: auto; }
		#sheet-body:has(.sheet-foot) { display: flex; flex-direction: column; overflow: hidden; }
		.sheet-scroll { flex: 1; min-height: 0; overflow: auto; }
		.sheet-foot { flex: none; background: var(--card); }
		.sheet-books { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
		.sheet-book {
			display: flex; gap: 12px; align-items: center;
			background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 12px;
		}
		.sheet-book-copy { flex: 1; min-width: 0; }
		.sheet-remove {
			flex: none; width: 36px; height: 36px; padding: 0; border: 0;
			background: transparent; color: var(--crimson); cursor: pointer;
			display: grid; place-items: center;
		}
		.sheet-remove svg { width: 18px; height: 18px; display: block; fill: currentColor; }
		.sheet-cover {
			width: 64px; height: 88px; border-radius: 8px; color: #fff; flex: 0 0 auto;
			display: flex; align-items: flex-end; justify-content: flex-end; padding: 6px;
			font-size: 11px; font-weight: 700;
		}
		.sheet-book h3 { margin: 0 0 8px; font-size: 16px; }
		.sheet-price { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
		.sheet-price .now { font-size: 16px; font-weight: 700; }
		.sheet-price .now small { font-size: 11px; font-weight: 500; color: var(--muted); margin-right: 2px; }
		.sheet-price .tag { color: var(--crimson); font-size: 11px; font-weight: 700; }
		.sheet-price .old { color: var(--muted); font-size: 12px; text-decoration: line-through; }
		.sum-line {
			display: flex; justify-content: space-between; gap: 12px; align-items: center;
			padding: 8px 0;
		}
		.sum-line b { font-size: 14px; }
		.sum-line span { color: var(--muted); font-size: 13px; }
		.sum-line .discount { color: var(--crimson); }
		.sum-block { margin-top: 8px; }
		.sum-line.due { border-top: 1px solid var(--track); margin-top: 4px; padding-top: 12px; }
		.sum-line.due span, .sum-line.due b { color: var(--ink); font-weight: 700; }
		.sheet .btn { margin-top: 8px; }
		.sheet-actions { display: flex; gap: 8px; align-items: center; margin-top: 14px; }
		.sheet-actions .btn { flex: 1; }
		.sheet-actions .due-label { font-weight: 700; min-width: 108px; text-align: left; }
		.success { text-align: center; padding-top: 28px; }
		.success img { width: 180px; height: auto; }
		.success h1 { margin: 12px 0 6px; font-size: 22px; }
		.success.is-ok h1 { color: #1F7A4D; }
		.success.is-bad h1 { color: var(--crimson); }
		.success .note { color: var(--muted); margin: 0 0 16px; }
		.receipt { background: var(--card); border-radius: 16px; text-align: right; padding: 4px 14px; margin-bottom: 16px; }
		.receipt div { display: flex; justify-content: space-between; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); }
		.receipt div:last-child { border-bottom: 0; }
		.receipt span { color: var(--muted); }
		.error:empty { display: none; }
		.error:not(:empty) {
			color: var(--crimson);
			font-size: 13px;
			line-height: 1.6;
			margin: 10px 0 0;
			padding: 10px 12px;
			background: #fff;
			border: 1px solid var(--crimson);
			border-radius: 12px;
		}
		.price-row, .sheet-price { direction: rtl; }
		.cover, .sheet-cover { overflow: hidden; }
		.cover img, .sheet-cover img {
			width: 100%;
			height: 100%;
			object-fit: cover;
			display: block;
			border-radius: 12px;
		}
		a.back { text-decoration: none; }
