@font-face {
	font-family: 'KyivTypeSans-Heavy';
	src: url('/web/fonts/KyivTypeSans-Heavy.otf') format('opentype');
}
@font-face {
	font-family: 'TBSGartek-Display';
	src: url('/web/fonts/TBSGartek-Display.otf') format('opentype');
}
@font-face {
	font-family: 'AGaramondPro-Bold';
	src: url('/web/fonts/AGaramondPro-Bold.otf') format('opentype');
}
@font-face {
	font-family: 'AuBordDeLaSeine';
	src: url('/web/fonts/AuBordDeLaSeine.ttf') format('truetype');
}
@font-face {
	font-family: 'Oswald-SemiBold';
	src: url('/web/fonts/Oswald-SemiBold.ttf') format('truetype');
}
@font-face {
	font-family: 'Roboto-Light';
	src: url('/web/fonts/Roboto-Light.ttf') format('truetype');
}

.editor-topbar {
	position: sticky;
	top: 0;
	z-index: 200;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 24px;
	background: var(--white);
	border-bottom: 1px solid var(--neutral-100);
}

.editor-topbar-back {
	gap: 4px;
	font-size: var(--type-body-tight);
	font-weight: 500;
	color: var(--text-primary);
	padding: 6px 12px 6px 4px;
	border-radius: var(--radius-md);
}

.editor-topbar-back:hover {
	background: var(--surface-neutral);
}

.editor-topbar-center {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	pointer-events: none;
}

.editor-topbar-logo {
	height: 32px;
}

.editor-topbar-right {
	width: 75px;
}

.editor-main {
	padding-bottom: 90px;
	background: var(--brand-cream);
	min-height: 100vh;
	overflow-x: hidden;
}

body.recipes-lock {
	overflow: hidden !important;
	height: 100vh !important;
}

.editor-main.step-recipes-active {
	overflow: hidden;
	height: calc(100vh - 53px);
	padding-bottom: 0;
	display: flex;
	flex-direction: column;
}

.editor-progress {
	background: var(--white);
	border-bottom: 1px solid var(--neutral-100);
	padding: 14px 0 12px;
	position: sticky;
	top: 53px;
	z-index: 100;
	flex-shrink: 0;
}

.step-recipes-active .editor-progress {
	position: relative;
	top: auto;
}

.editor-progress-row-title {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 24px;
	text-align: center;
}

.editor-progress-title {
	font-family: var(--font-display);
	font-size: var(--type-body-sm);
	font-weight: 500;
	letter-spacing: 0.5px;
	color: var(--text-primary);
	text-transform: none;
}

.editor-progress-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	max-width: 1100px;
	position: relative;
	margin: 8px auto 0;
	padding: 0 24px;
}

.editor-progress-info {
	max-width: 1100px;
	margin: 10px auto 0;
	padding: 0 24px;
	text-align: center;
	font-family: var(--font-body);
	font-size: var(--type-body-2xs);
	font-weight: 400;
	font-style: italic;
	color: var(--text-editor-muted);
}

.progress-step {
	display: flex;
	align-items: center;
	gap: 8px;
	opacity: 0.35;
	transition: opacity var(--duration-default);
}

.progress-step.active {
	opacity: 1;
}

.progress-step.done {
	opacity: 0.7;
	cursor: pointer;
}

.progress-step.done:hover {
	opacity: 0.9;
}

.progress-step.reachable {
	opacity: 0.55;
	cursor: pointer;
}

.progress-step.reachable:hover {
	opacity: 0.75;
}

.progress-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	min-width: 32px;
	height: 32px;
	flex-shrink: 0;
	border-radius: var(--radius-round);
	background: var(--neutral-150);
	color: var(--white);
	font-family: var(--font-body);
	font-size: var(--type-body-sm);
	font-weight: 400;
	transition: background var(--duration-default);
}

.progress-step.active .progress-num {
	background: var(--primary);
}

.progress-step.done .progress-num {
	background: var(--brand-green);
}

.progress-label {
	font-family: var(--font-body);
	font-size: var(--type-body-sm);
	font-weight: 500;
	color: var(--text-primary);
}

.editor-topbar-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-left: auto;
	flex-shrink: 0;
}

.btn-topbar-draft {
	white-space: nowrap;
	min-width: 200px;
}

.btn-spinner {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid var(--white-40);
	border-top-color: var(--white);
	border-radius: var(--radius-round);
	animation: spin 0.6s linear infinite;
	vertical-align: middle;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

.progress-line {
	width: 48px;
	height: 2px;
	background: var(--neutral-150);
	margin: 0 12px;
}

.progress-line-last {
	width: 28px;
	margin: 0 8px;
}

.progress-preview-btn {
	gap: 6px;
	padding: 9px 24px;
	background: var(--neutral-350);
	color: var(--white);
	font-size: var(--type-body-sm);
	opacity: 0.45;
	transition:
		background var(--duration-fast),
		opacity var(--duration-fast);
	white-space: nowrap;
	min-width: 200px;
}

.progress-preview-btn.enabled {
	background: var(--neutral-600);
	opacity: 1;
}

.progress-preview-btn.enabled:hover {
	background: var(--text-soft);
}

.progress-preview-btn.active {
	background: var(--neutral-700);
	opacity: 1;
	box-shadow: 0 0 0 3px var(--focus-neutral-ring);
}

.editor-step {
	display: none;
	padding: 48px 0 48px;
	animation: fadeIn var(--duration-medium) ease;
}

.editor-step-active {
	display: block;
}

#step-recipes.editor-step-active {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
	overflow: hidden;
	padding-bottom: 0;
}

#step-recipes.editor-step-active > .container {
	flex: 1;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

#step-recipes .editor-step-header {
	flex-shrink: 0;
	max-width: none;
	width: 100%;
	padding: 24px 40px 20px;
	margin: 0;
	box-sizing: border-box;
}

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

.editor-step-header {
	max-width: 960px;
	margin: 0 auto;
	padding: 24px 0 32px;
}

.editor-step-header h2 {
	font-family: var(--font-display);
	font-size: var(--type-title-md);
	font-weight: 500;
	text-transform: none;
	color: var(--text-primary);
	text-align: left;
	margin: 0 0 6px;
	letter-spacing: 0.02em;
}

.editor-step-header .editor-step-desc {
	font-family: var(--font-body);
	font-size: var(--type-body-compact);
	color: var(--text-muted);
	text-align: left;
	margin: 0;
}

.editor-step h2 {
	font-family: var(--font-display);
	font-size: var(--type-title-md);
	font-weight: 500;
	text-transform: none;
	color: var(--text-primary);
	text-align: left;
	margin-bottom: 8px;
}

.editor-step-desc {
	font-family: var(--font-body);
	font-size: var(--type-body-compact);
	color: var(--text-muted);
	text-align: left;
	margin-bottom: 36px;
}

.format-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 20px;
	max-width: 960px;
	margin: 0 auto;
}

.format-card {
	background: var(--white);
	border: 2px solid transparent;
	border-radius: var(--radius-card);
	padding: 28px 20px;
	text-align: center;
	cursor: pointer;
	transition:
		border-color var(--duration-fast),
		box-shadow var(--duration-fast),
		transform var(--duration-fast);
}

.format-card:hover {
	border-color: var(--neutral-200);
	transform: translateY(-2px);
}

.format-card.selected {
	border-color: var(--primary);
	box-shadow: 0 0 0 3px var(--accent-orange-ring);
}

.format-card-name {
	font-family: var(--font-display);
	font-size: var(--type-body-lg);
	font-weight: 500;
	text-transform: none;
	color: var(--text-primary);
	margin-bottom: 12px;
}

.format-card-details {
	font-family: var(--font-body);
	font-size: var(--type-body-sm);
	color: var(--text-secondary);
	margin-bottom: 14px;
	white-space: nowrap;
}

.format-card-price {
	font-family: var(--font-body);
	font-size: var(--type-heading-sm);
	font-weight: 400;
	color: var(--primary);
	text-align: center;
}

.format-card-ebook {
	font-family: var(--font-body);
	font-size: var(--type-label-sm);
	color: var(--text-light);
	text-align: center;
	margin-top: 2px;
}

.cover-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 20px;
	max-width: 960px;
	margin: 0 auto;
}

.cover-card {
	background: var(--white);
	border: 3px solid transparent;
	border-radius: var(--radius-lg);
	overflow: hidden;
	cursor: pointer;
	position: relative;
	transition:
		border-color var(--duration-fast),
		box-shadow var(--duration-fast),
		transform var(--duration-fast);
}

.cover-card:hover {
	border-color: var(--neutral-200);
	transform: translateY(-2px);
}

.cover-card.selected {
	border-color: var(--primary);
	box-shadow: 0 0 0 3px var(--accent-orange-ring);
}

.cover-card img {
	width: 100%;
	display: block;
}

.cover-card-name {
	font-family: var(--font-body);
	font-size: var(--type-body-xs);
	color: var(--text-secondary);
	text-align: center;
	padding: 10px 8px;
}

.cover-check {
	display: none;
	position: absolute;
	top: 8px;
	right: 8px;
	width: 26px;
	height: 26px;
	background: var(--primary);
	color: var(--white);
	border-radius: var(--radius-round);
	align-items: center;
	justify-content: center;
}

.cover-card.selected .cover-check {
	display: flex;
}

.title-editor {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	max-width: 960px;
	margin: 0 auto;
	align-items: start;
}

.title-preview-wrapper {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.title-preview-scroll {
	width: 420px;
	height: 420px;
	overflow: hidden;
	background: var(--surface-muted);
	border-radius: var(--radius-2xl);
	position: relative;
}
.title-preview-scroll.zoomed {
	overflow: auto;
}

.title-preview-sizer {
	width: 420px;
	height: 420px;
	display: flex;
	align-items: center;
	justify-content: center;
	transform-origin: top left;
}

.title-preview {
	position: relative;
	width: 420px;
	height: 420px;
	flex-shrink: 0;
}

.title-preview img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	border-radius: var(--radius-2xl);
}

.cover-zoom-controls {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 14px;
}
.cover-zoom-btn {
	width: 32px;
	height: 32px;
	border: 1px solid var(--neutral-300);
	font-size: var(--type-body-xl);
	color: var(--text-strong);
}
.cover-zoom-btn:hover {
	background: var(--neutral-050);
	border-color: var(--text-muted);
}
.cover-zoom-level {
	font-family: var(--font-body);
	font-size: var(--type-body-sm);
	color: var(--text-soft);
	min-width: 40px;
	text-align: center;
}

.title-overlay {
	position: absolute;
	font-family: var(--font-display);
	font-weight: 500;
	color: var(--text-primary);
	text-transform: none;
	word-wrap: break-word;
	line-height: 1.1;
	pointer-events: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.title-form {
	text-align: left;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.title-form-hint {
	font-family: var(--font-body);
	font-size: var(--type-body-md);
	color: var(--text-muted);
	margin: 0 0 12px;
}

.title-input {
	padding: 14px 18px;
	border-color: var(--neutral-150);
	border-width: 2px;
	border-radius: var(--radius-lg);
	font-size: var(--type-body-lg);
	transition: border-color var(--duration-fast);
}

.title-char-count {
	font-family: var(--font-body);
	font-size: var(--type-body-2xs);
	color: var(--text-light);
	margin-top: 8px;
	text-align: right;
}

.recipes-two-col {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 1fr;
	gap: 40px;
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 40px 60px;
	align-items: stretch;
	flex: 1;
	min-height: 0;
	overflow: hidden;
}

.recipes-left {
	align-self: start;
}

.recipes-right {
	display: flex;
	flex-direction: column;
	background: var(--surface);
	border-radius: var(--radius-2xl);
	padding: 18px 18px 18px;
	border: 1px solid var(--border-warm);
	overflow: hidden;
	height: calc(100vh - 355px);
	min-height: 250px;
}

.recipes-right-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 6px;
}
.recipes-right-title {
	font-family: var(--font-body);
	font-size: var(--type-body-compact);
	font-weight: 500;
	color: var(--text-primary);
}
.recipes-right-icons {
	display: flex;
	align-items: center;
	gap: 8px;
}
.format-info-btn {
	width: 22px;
	height: 22px;
	background: none;
	border: none;
	color: var(--text-light);
	padding: 2px;
	vertical-align: middle;
	margin-left: 4px;
}
.format-info-btn:hover {
	color: var(--primary);
}
.recipes-info-btn {
	width: 24px;
	height: 24px;
	background: none;
	border: none;
	color: var(--text-light);
	padding: 2px;
}
.recipes-info-btn:hover {
	color: var(--primary);
}
.recipes-right-count {
	font-family: var(--font-body);
	font-size: var(--type-body-2xs);
	font-weight: 600;
	color: var(--text-light);
	background: var(--surface-neutral);
	padding: 2px 8px;
	border-radius: var(--radius-lg);
}

.info-panel {
	background: var(--surface-info-warm);
	border: 1px solid var(--border-info-warm);
	border-radius: var(--radius-lg);
	padding: 10px 16px;
	margin-top: 8px;
}
.info-panel-list {
	list-style: disc;
	padding-left: 20px;
	margin: 0;
}
.info-panel-list li {
	font-family: var(--font-body);
	font-size: var(--type-body-xs);
	color: var(--text-secondary);
	line-height: 1.55;
	padding: 2px 0;
}
.recipes-info-panel {
	background: var(--surface-info-warm);
	border: 1px solid var(--border-info-warm);
	border-radius: var(--radius-lg);
	padding: 12px 16px;
	margin-bottom: 10px;
}
.recipes-info-panel p {
	font-family: var(--font-body);
	font-size: var(--type-body-xs);
	color: var(--text-secondary);
	line-height: 1.5;
	margin: 0;
}

.recipe-import-box {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
	flex-wrap: wrap;
	row-gap: 8px;
}
.import-info-toggle {
	width: 24px;
	height: 24px;
	background: none;
	border: none;
	color: var(--text-light);
	padding: 2px;
	flex-shrink: 0;
}
.import-info-toggle:hover {
	color: var(--primary);
}
.import-info-panel {
	width: 100%;
	background: var(--surface-info-warm);
	border: 1px solid var(--border-info-warm);
	border-radius: var(--radius-lg);
	padding: 10px 14px;
	margin-top: 0;
}
.import-info-panel p {
	font-family: var(--font-body);
	font-size: var(--type-label-sm);
	color: var(--text-secondary);
	line-height: 1.45;
	margin: 0;
}
.import-info-panel .import-info-copyright {
	color: var(--accent-orange);
	margin-top: 6px;
	font-size: var(--type-caption);
}

.recipe-doc-files {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 6px;
}
.recipe-doc-files:empty {
	margin-bottom: 0;
}
.recipe-doc-file-item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 10px;
	background: var(--white);
	border: 1px solid var(--neutral-150);
	border-radius: var(--radius-md);
	font-family: var(--font-body);
	font-size: var(--type-body-xs);
	color: var(--text-primary);
	max-width: 100%;
	min-width: 0;
}
.recipe-doc-file-item .file-icon {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	color: var(--primary);
}
.recipe-doc-file-item .file-name {
	flex: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.recipe-doc-file-item .file-remove {
	width: 24px;
	height: 24px;
	background: none;
	border: none;
	color: var(--text-muted);
	padding: 2px;
	font-size: var(--type-body-lg);
	line-height: 1;
}
.recipe-doc-file-item .file-remove:hover {
	color: var(--editor-danger);
}

.recipe-photo-label {
	cursor: pointer;
}

.recipe-url-input {
	flex: 1;
	padding: 10px 14px;
	border-color: var(--neutral-150);
	border-width: 2px;
	border-radius: var(--radius-lg);
	font-size: var(--type-body-md);
	transition: border-color var(--duration-fast);
}

.recipe-import-box .btn {
	min-width: 100px;
	min-height: 40px;
}

.recipe-count-bar {
	margin-bottom: 20px;
}

.recipe-count-bar span {
	font-family: var(--font-body);
	font-size: var(--type-body-sm);
	color: var(--text-secondary);
	font-weight: 500;
}

.recipe-count-progress {
	height: 6px;
	background: var(--neutral-125);
	border-radius: var(--radius-3xs);
	margin-top: 8px;
	overflow: hidden;
}

.recipe-count-fill {
	height: 100%;
	width: 0;
	background: var(--primary);
	border-radius: var(--radius-3xs);
	transition: width var(--duration-default);
}

.recipe-cards-scroll {
	flex: 1 1 0;
	min-height: 0;
	overflow-y: scroll;
	padding: 4px 0 0 0;
	position: relative;
}
.recipe-cards-scroll .recipe-card {
	margin-bottom: 10px;
	margin-right: 14px;
}
.recipe-scroll-spacer {
	height: calc(100vh - 400px);
	min-height: 200px;
	pointer-events: none;
}
.recipe-cards-scroll::-webkit-scrollbar {
	width: 5px;
}
.recipe-cards-scroll::-webkit-scrollbar-track {
	background: var(--surface-editor-scrollbar);
	border-radius: var(--radius-3xs);
}
.recipe-cards-scroll::-webkit-scrollbar-thumb {
	background: var(--editor-scrollbar-thumb);
	border-radius: var(--radius-3xs);
}
.recipe-cards-scroll::-webkit-scrollbar-thumb:hover {
	background: var(--editor-scrollbar-thumb-hover);
}
@supports not selector(::-webkit-scrollbar) {
	.recipe-cards-scroll {
		scrollbar-width: thin;
		scrollbar-color: var(--editor-scrollbar-thumb) var(--surface-editor-scrollbar);
	}
}

.recipe-card {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 10px 14px;
	background: var(--white);
	border-radius: var(--radius-card);
	border: 1px solid var(--neutral-100);
	transition: box-shadow var(--duration-snappy);
}
.recipe-card:hover {
	box-shadow: 0 2px 10px var(--black-06);
}

.recipe-card-left {
	flex-shrink: 0;
}
.recipe-card-photo {
	width: 60px;
	height: 60px;
	border-radius: var(--radius-md);
	object-fit: cover;
}
.recipe-card-photo-placeholder {
	width: 60px;
	height: 60px;
	border-radius: var(--radius-md);
	color: var(--white-50);
	display: flex;
	align-items: center;
	justify-content: center;
}

.recipe-card-center {
	flex: 1;
	min-width: 0;
}
.recipe-card-num {
	font-family: var(--font-body);
	font-size: var(--type-micro);
	font-weight: 600;
	color: var(--text-light);
	margin-bottom: 2px;
}
.recipe-card-title {
	font-family: var(--font-body);
	font-size: var(--type-body-compact);
	font-weight: 500;
	color: var(--text-primary);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin-bottom: 4px;
}
.recipe-card-alert {
	display: flex;
	align-items: center;
	gap: 5px;
	font-family: var(--font-body);
	font-size: var(--type-caption);
}
.recipe-card-alert span {
	line-height: 1.2;
}
.conformity-ok {
	color: var(--editor-valid);
}
.conformity-error {
	color: var(--danger);
}
.conformity-warn {
	color: var(--danger);
}

.recipe-card-actions {
	display: flex;
	gap: 8px;
	flex-shrink: 0;
	align-items: center;
}
.recipe-card-edit {
	width: 34px;
	height: 34px;
	border-radius: var(--radius-round);
	background: var(--primary);
	border: none;
	color: var(--white);
}
.recipe-card-edit:hover {
	opacity: 0.85;
}
.recipe-card-remove {
	width: 34px;
	height: 34px;
	border-radius: var(--radius-round);
	background: var(--danger);
	border: none;
	color: var(--white);
}
.recipe-card-remove:hover {
	opacity: 0.85;
}

.book-preview-mini {
	background: var(--white);
	border-radius: var(--radius-card);
	padding: 24px;
	box-shadow: 0 4px 20px var(--black-06);
}

.preview-cover {
	margin-bottom: 16px;
}

.preview-cover img {
	width: 100%;
	border-radius: var(--radius-sm);
	box-shadow: 0 4px 16px var(--black-10);
}

.preview-pages {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.preview-page {
	background: var(--surface);
	border-radius: var(--radius-xs);
	padding: 12px 10px;
	min-height: 80px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.preview-page span {
	font-family: var(--font-body);
	font-size: var(--type-micro);
	color: var(--text-light);
	text-align: center;
}

.preview-page-filled {
	border-left: 3px solid var(--primary);
}

.preview-page-filled span {
	color: var(--text-secondary);
	text-align: left;
	width: 100%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.editor-bottombar {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: var(--surface-primary-alert);
	border-top: 1px solid var(--border-primary-alert);
	z-index: 200;
}

.editor-bottombar-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 24px;
	padding: 14px 24px;
}

.editor-bottombar-left {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.editor-bottombar-progress {
	height: 6px;
	background: var(--accent-orange-ring);
	border-radius: var(--radius-3xs);
	width: 320px;
}

.editor-bottombar-progress-fill {
	height: 100%;
	width: 0;
	background: var(--primary);
	border-radius: var(--radius-3xs);
	transition: width var(--duration-medium) ease;
}

.editor-cart-popup-overlay {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--black-40);
}

.editor-cart-popup {
	width: 90%;
	max-width: 420px;
	padding: 32px;
	border-radius: var(--radius-panel);
	background: var(--white);
	text-align: center;
}

.editor-cart-popup-icon {
	margin-bottom: 12px;
	color: var(--brand-green);
}

.editor-cart-popup-title {
	margin-bottom: 8px;
	color: var(--text-primary);
	font-family: var(--font-body);
	font-size: var(--type-card-title);
	font-weight: 600;
}

.editor-cart-popup-message {
	margin-bottom: 24px;
	color: var(--text-soft);
	font-family: var(--font-body);
	font-size: var(--type-body-md);
	line-height: 1.5;
}

.editor-cart-popup-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.editor-bottombar-buttons {
	display: flex;
	gap: 14px;
	flex-shrink: 0;
}
.editor-bottombar-buttons button {
	text-align: center;
}

.btn-bottombar-cart {
	white-space: nowrap;
	min-width: 200px;
}

.editor-bottombar-info {
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: var(--font-body);
	font-size: var(--type-body-sm);
	color: var(--text-secondary);
}

.bottombar-format {
	font-family: var(--font-display);
	font-weight: 500;
	font-size: var(--type-body-md);
	text-transform: none;
	color: var(--text-primary);
}

.bottombar-count {
	font-weight: 500;
	color: var(--text-primary);
}

.bottombar-price {
	font-weight: 400;
	color: var(--primary);
	font-size: var(--type-body-compact);
}

.bottombar-state {
	font-weight: 500;
	color: var(--text-warm-muted);
	font-style: italic;
}

.bottombar-state.complete {
	color: var(--brand-green);
	font-style: normal;
	font-weight: 600;
}

.bottombar-sep {
	color: var(--neutral-250);
	font-size: var(--type-caption);
}

.recipe-empty-state {
	text-align: center;
	padding: 40px 20px;
}

.recipe-empty-state p {
	font-family: var(--font-body);
	font-size: var(--type-body-md);
	color: var(--text-light);
	margin-bottom: 8px;
}

.recipe-add-manual-btn {
	background: none;
	border: 2px dashed var(--neutral-200);
	border-radius: var(--radius-lg);
	padding: 12px 20px;
	font-size: var(--type-body-md);
	font-weight: 400;
	color: var(--text-secondary);
	margin-bottom: 14px;
}

.recipe-add-manual-btn:hover {
	border-color: var(--primary);
	color: var(--primary);
}

.recipe-modal-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: var(--black-40);
	z-index: 9999;
	align-items: center;
	justify-content: center;
}

.recipe-modal-overlay.visible {
	display: flex;
}

.recipe-modal {
	background: var(--white);
	border-radius: var(--radius-2xl);
	padding: 36px;
	width: 90%;
	max-width: 680px;
	max-height: 85vh;
	overflow-y: auto;
}

.recipe-modal h3 {
	font-family: var(--font-display);
	font-size: var(--type-heading-sm);
	font-weight: 500;
	text-transform: none;
	color: var(--text-primary);
	margin-bottom: 20px;
}

.recipe-modal label {
	display: block;
	font-family: var(--font-body);
	font-size: var(--type-body-sm);
	font-weight: 500;
	color: var(--text-secondary);
	margin-bottom: 6px;
	margin-top: 16px;
}

.recipe-modal-control {
	padding: 10px 14px;
	border-color: var(--neutral-150);
	border-width: 2px;
	border-radius: var(--radius-lg);
	font-size: var(--type-body-md);
	transition: border-color var(--duration-fast);
}

.recipe-modal textarea {
	min-height: 100px;
	resize: vertical;
}

.recipe-modal-row {
	display: flex;
	gap: 12px;
	margin-bottom: 4px;
}
.recipe-modal-field {
	flex: 1;
}
.recipe-modal-field label {
	font-size: var(--type-body-sm);
	margin-bottom: 4px;
}
.recipe-modal-field input[type='number'] {
	width: 100%;
	text-align: center;
	-moz-appearance: textfield;
}
.recipe-modal-field input[type='number']::-webkit-inner-spin-button,
.recipe-modal-field input[type='number']::-webkit-outer-spin-button {
	opacity: 1;
}

.recipe-modal-actions {
	display: flex;
	gap: 12px;
	margin-top: 24px;
	justify-content: flex-end;
}

@media (max-width: 767px) {
	.editor-topbar-center {
		position: static;
		transform: none;
		margin-left: auto;
	}

	.cover-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 10px;
	}
	.cover-card-name {
		font-size: var(--type-micro-sm);
		padding: 6px 4px;
	}

	.title-editor {
		grid-template-columns: 1fr;
		gap: 16px;
	}
	.title-preview-scroll {
		width: 280px;
		height: 280px;
		margin: 0 auto;
	}
	.title-preview-sizer {
		width: 420px;
		height: 420px;
		transform-origin: top left;
		transform: scale(0.667);
	}
	.title-preview {
		width: 420px;
		height: 420px;
	}
	.title-preview-wrapper {
		max-width: 100%;
		overflow: hidden;
		align-items: center;
	}
	.editor-step-title {
		font-size: var(--type-body-xl);
	}
	.editor-step-header {
		padding: 12px 16px 12px;
	}
	.editor-step-header h2 {
		font-size: var(--type-section-title);
	}
	.editor-progress {
		position: relative;
		top: auto;
	}
	.cover-zoom-controls {
		display: none;
	}

	.editor-main.step-recipes-active {
		overflow: auto;
		height: auto;
		display: block;
	}
	.step-recipes-active .editor-progress {
		position: sticky;
		top: 53px;
	}
	#step-recipes.editor-step-active {
		height: auto !important;
		overflow: visible !important;
		display: block !important;
		flex: none !important;
		min-height: auto !important;
	}
	#step-recipes.editor-step-active > .container {
		overflow: visible !important;
		display: block !important;
		flex: none !important;
	}
	#step-recipes .editor-step-header {
		padding-left: 16px;
		padding-right: 16px;
	}
	.recipes-two-col {
		grid-template-columns: 1fr !important;
		height: auto !important;
		min-height: 0 !important;
		overflow: visible !important;
		padding: 0 16px 30px;
		gap: 24px;
	}
	.recipes-left {
		position: static !important;
		overflow: visible !important;
	}
	.recipes-right {
		height: auto !important;
		min-height: 0 !important;
		max-height: none !important;
		overflow: visible !important;
		align-self: auto !important;
	}
	.recipe-cards-scroll {
		max-height: none !important;
		overflow: visible !important;
	}

	.progress-label {
		display: none;
	}

	.progress-preview-btn span {
		display: none;
	}

	.editor-progress-title {
		font-size: var(--type-caption);
	}

	.editor-progress-info {
		padding: 0 16px;
		font-size: var(--type-micro);
	}

	.editor-progress-inner {
		flex-wrap: wrap;
		justify-content: center;
		padding: 0 12px;
		gap: 0;
	}

	.editor-topbar-actions {
		width: 100%;
		justify-content: center;
		margin-left: 0;
		margin-top: 10px;
		gap: 8px;
	}

	.btn-topbar-draft {
		font-size: var(--type-label-sm);
		padding: 8px 16px;
		min-width: auto;
	}

	.progress-preview-btn {
		font-size: var(--type-label-sm);
		padding: 8px 16px;
		min-width: auto;
	}

	.progress-line {
		width: 24px;
		margin: 0 4px;
	}

	.progress-line-last {
		width: 16px;
		margin: 0 4px;
	}

	.progress-num {
		width: 28px;
		min-width: 28px;
		height: 28px;
		font-size: var(--type-label-sm);
	}

	.editor-progress-row-title {
		padding: 0 16px;
	}

	.editor-bottombar-inner {
		flex-direction: column;
		gap: 10px;
	}
	.editor-bottombar-buttons {
		width: 100%;
		justify-content: center;
	}
}

.editor-popup-overlay {
	position: fixed;
	inset: 0;
	background: var(--black-35);
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity var(--duration-fast) ease;
}
.editor-popup-overlay.active {
	opacity: 1;
}
.editor-popup {
	background: var(--white);
	border-radius: var(--radius-3xl);
	padding: 36px 40px 28px;
	max-width: 520px;
	width: auto;
	min-width: 320px;
	text-align: center;
	box-shadow: 0 12px 48px var(--black-15);
	animation: editorPopupSlideIn var(--duration-quick) ease;
}
@keyframes editorPopupSlideIn {
	from {
		transform: translateY(20px);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}
.editor-popup-icon {
	margin-bottom: 16px;
}
.editor-popup-icon.warning {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: var(--radius-round);
	background: var(--surface-primary-pale);
	color: var(--accent-orange);
}
.editor-popup-icon.success {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: var(--radius-round);
	background: var(--surface-editor-success);
	color: var(--brand-green);
}
.editor-popup-title {
	font-family: var(--font-display);
	font-size: var(--type-section-title);
	font-weight: 500;
	color: var(--text-primary);
	margin-bottom: 10px;
}
.editor-popup-message {
	font-family: var(--font-body);
	font-size: var(--type-body-tight);
	color: var(--text-secondary);
	line-height: 1.5;
	margin-bottom: 4px;
}
.editor-popup-buttons {
	display: flex;
	gap: 12px;
	justify-content: center;
	margin-top: 22px;
}
.editor-popup-btn {
	font-size: var(--type-body-compact);
	padding: 11px 28px;
	flex: 1;
	min-width: 0;
	white-space: nowrap;
}

.book-reader {
	max-width: 900px;
	margin: 0 auto;
	padding: 20px 0 40px;
}
.book-reader-header {
	text-align: center;
	margin-bottom: 28px;
}
.book-reader-header h2 {
	font-family: var(--font-display);
	font-size: var(--type-page-title);
	font-weight: 400;
	color: var(--text-primary);
	margin: 0 0 6px;
}
.book-reader-subtitle {
	font-family: var(--font-body);
	font-size: var(--type-body-tight);
	color: var(--text-secondary);
}
.book-reader-viewport {
	display: flex;
	align-items: center;
	gap: 12px;
	justify-content: center;
}
.book-reader-arrow {
	width: 44px;
	height: 44px;
	border: 1px solid var(--neutral-200);
	background: var(--white);
	flex-shrink: 0;
	color: var(--text-primary);
}
.book-reader-arrow:hover:not(:disabled) {
	background: var(--surface-neutral);
	border-color: var(--neutral-400);
}
.book-reader-arrow:disabled {
	cursor: default;
}
.book-reader-spread {
	width: 100%;
	max-width: 750px;
	aspect-ratio: 860 / 608;
	display: flex;
	border-radius: var(--radius-sm);
	overflow: hidden;
	box-shadow: 0 8px 32px var(--black-18);
	position: relative;
}
.reader-page {
	width: 50%;
	height: 100%;
	position: relative;
	overflow: hidden;
}
.reader-page-cream {
	background: var(--brand-cream);
}
.reader-page-cover {
	background: var(--text-primary);
	overflow: hidden;
	position: relative;
}
.reader-page-cover-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--primary);
}
.reader-cover-image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.reader-cover-title {
	position: absolute;
	line-height: 1.1;
	text-transform: uppercase;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.reader-cover-title-center {
	text-align: center;
}
.reader-cover-title-font-kyiv {
	font-family: 'KyivTypeSans-Heavy', serif;
}
.reader-cover-title-font-oswald,
.reader-cover-fallback-title {
	font-family: 'Oswald-SemiBold', 'Oswald', sans-serif;
}
.reader-cover-fallback-title {
	color: var(--white);
	font-size: var(--type-body-md);
	text-align: center;
}
.reader-page-empty-text {
	background: var(--surface-neutral);
}
.reader-page-empty-photo {
	background: var(--neutral-125);
}
.reader-page-back-cover {
	background: var(--text-primary);
}
.reader-page-scaled {
	position: absolute;
	top: 0;
	left: 0;
	width: 430px;
	height: 608px;
	transform-origin: top left;
}
.reader-page-scaled .fre-page {
	width: 430px;
	height: 608px;
	position: relative;
	overflow: hidden;
}
.book-reader-spread .reader-page-scaled .fre-zone-frame,
.book-reader-spread .reader-page-scaled .fre-zone-frame.fre-frame-ok,
.book-reader-spread .reader-page-scaled .fre-zone-frame.fre-frame-overflow {
	border: none !important;
}
.book-reader-spread .fre-photo-format-portrait .fre-photo-img,
.book-reader-spread .fre-photo-format-portrait .fre-photo-placeholder {
	width: 68%;
	height: 62%;
}
.book-reader-spread .fre-photo-format-landscape .fre-photo-img,
.book-reader-spread .fre-photo-format-landscape .fre-photo-placeholder {
	width: 86%;
	height: 48%;
}
.reader-page-left {
	border-right: 1px solid var(--shadow);
}
.reader-info-page {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	height: 100%;
	padding: 20px;
	text-align: center;
}
.reader-info-title {
	font-family: var(--font-display);
	font-size: var(--type-body-sm);
	font-weight: 600;
	color: var(--text-strong);
	margin-bottom: 12px;
	letter-spacing: 0.3px;
}
.reader-info-text {
	font-family: var(--font-body);
	font-size: var(--type-micro-sm);
	color: var(--text-soft);
	line-height: 1.5;
	margin-bottom: 4px;
}
.reader-guard-content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	height: 100%;
}
.reader-guard-content svg {
	color: var(--neutral-400);
}
.reader-guard-label {
	font-family: var(--font-body);
	font-size: var(--type-micro-sm);
	color: var(--neutral-500);
	text-align: center;
}
.reader-guard-label-strong {
	font-family: var(--font-display);
	letter-spacing: 1px;
}
.reader-guard-sub {
	font-family: var(--font-body);
	font-size: var(--type-nano);
	color: var(--neutral-400);
	font-style: italic;
	text-align: center;
	margin-top: 2px;
}
.reader-guard-sub-spaced {
	margin-top: 6px;
}
.reader-guard-sub-photo {
	margin-top: 8px;
}
.reader-back-cover-label {
	color: var(--neutral-600);
}
.reader-back-cover-sub {
	color: var(--text-soft);
}
.reader-toc {
	padding: 8% 6%;
	height: 100%;
	display: flex;
	flex-direction: column;
}
.reader-toc-title {
	font-family: var(--font-display);
	font-size: var(--type-body-2xs);
	font-weight: 600;
	letter-spacing: 1px;
	color: var(--text-strong);
	margin-bottom: 10px;
}
.reader-toc-list {
	flex: 1;
	overflow: hidden;
}
.reader-toc-item {
	display: flex;
	align-items: center;
	padding: 1px 0;
	gap: 4px;
}
.reader-toc-num {
	font-family: var(--font-body);
	color: var(--neutral-600);
	width: 18px;
	flex-shrink: 0;
}
.reader-toc-text {
	font-family: var(--font-body);
	color: var(--text-strong);
	flex: 1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.reader-toc-dots {
	flex: 0 0 30px;
	height: 1px;
	border-bottom: 1px dotted var(--neutral-200);
	margin: 0 2px;
}
.reader-toc-page {
	font-family: var(--font-body);
	color: var(--text-soft);
	width: 18px;
	text-align: right;
	flex-shrink: 0;
}
.reader-toc-density-normal .reader-toc-num,
.reader-toc-density-normal .reader-toc-text,
.reader-toc-density-normal .reader-toc-page {
	font-size: 10px;
}
.reader-toc-density-dense .reader-toc-num,
.reader-toc-density-dense .reader-toc-text,
.reader-toc-density-dense .reader-toc-page {
	font-size: 9px;
}
.reader-toc-density-compact .reader-toc-num,
.reader-toc-density-compact .reader-toc-text,
.reader-toc-density-compact .reader-toc-page {
	font-size: 8px;
}
.reader-recipe-text-page {
	background: var(--white);
}
.reader-recipe-text-content {
	height: 100%;
	padding: 6.5% 12.7% 4% 5.5%;
	display: flex;
	flex-direction: column;
}
.reader-recipe-title {
	font-size: clamp(8px, 1.8vw, 16px);
	color: var(--text-primary);
	line-height: 1.15;
	margin-bottom: 4%;
}
.reader-recipe-indications {
	display: flex;
	gap: 16px;
	padding-bottom: 4px;
	border-bottom: 0.5px solid var(--black-25);
	margin-bottom: 4%;
	justify-content: center;
}
.reader-recipe-ind {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	min-width: 36px;
}
.reader-recipe-ind-label {
	font-family: var(--font-display);
	font-size: clamp(3.5px, 0.5vw, 6px);
	color: var(--text-primary);
	letter-spacing: 0.2px;
	font-weight: 600;
	margin-bottom: 1px;
}
.reader-recipe-ind-val {
	font-family: var(--font-body);
	font-size: clamp(4px, 0.55vw, 6.5px);
	color: var(--text-primary);
	margin-top: 1px;
}
.reader-recipe-body {
	display: flex;
	gap: 4px;
	flex: 1;
	overflow: hidden;
}
.reader-recipe-ing-col {
	width: 32%;
	flex-shrink: 0;
}
.reader-recipe-steps-col {
	flex: 1;
	overflow: hidden;
}
.reader-recipe-section-title {
	font-family: var(--font-display);
	font-size: clamp(4px, 0.55vw, 6px);
	color: var(--text-soft);
	letter-spacing: 0.2px;
	margin-bottom: 3px;
	font-weight: 600;
}
.reader-recipe-ing-line {
	font-family: var(--font-body);
	font-size: clamp(4px, 0.55vw, 6px);
	color: var(--text-strong);
	line-height: 1.35;
}
.reader-recipe-step-line {
	font-family: var(--font-body);
	font-size: clamp(4px, 0.55vw, 6px);
	color: var(--text-strong);
	line-height: 1.35;
	margin-bottom: 1px;
	text-align: justify;
}
.reader-recipe-photo-page {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	position: relative;
}
.reader-recipe-photo-center {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
}
.reader-recipe-photo {
	width: 58.6%;
	aspect-ratio: 0.787;
	object-fit: cover;
}
.reader-recipe-photo-placeholder {
	width: 58.6%;
	aspect-ratio: 0.787;
	background: var(--white-30);
	display: flex;
	align-items: center;
	justify-content: center;
}
.reader-recipe-note {
	position: absolute;
	bottom: 6%;
	left: 5%;
	right: 5%;
	text-align: center;
	font-family: 'AuBordDeLaSeine', cursive;
	font-size: clamp(5px, 0.7vw, 9px);
	color: var(--text-primary);
	line-height: 1.4;
}
.book-reader-footer {
	text-align: center;
	margin-top: 16px;
}
.book-reader-pages {
	font-family: var(--font-body);
	font-size: var(--type-body-2xs);
	color: var(--text-soft);
	margin-bottom: 8px;
}
.book-reader-progress-bar {
	width: 100%;
	max-width: 400px;
	height: 3px;
	background: var(--neutral-150);
	border-radius: var(--radius-2xs);
	margin: 0 auto 8px;
	overflow: hidden;
}
.book-reader-progress-fill {
	height: 100%;
	background: var(--primary);
	border-radius: var(--radius-2xs);
	transition: width var(--duration-default) ease;
}
.book-reader-hint {
	font-family: var(--font-body);
	font-size: var(--type-caption);
	color: var(--text-muted);
}

.book-reader-loading {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 400px;
	gap: 16px;
	font-family: var(--font-body);
	color: var(--text-soft);
}
.book-reader-loading p {
	margin: 0;
	font-size: var(--type-body-lg);
	font-weight: 500;
}
.reader-loading-sub {
	font-size: var(--type-body-sm) !important;
	font-weight: 400 !important;
	color: var(--text-muted) !important;
}
.reader-spinner {
	width: 44px;
	height: 44px;
	border: 3.5px solid var(--border-reader-spinner);
	border-top-color: var(--accent-orange);
	border-radius: var(--radius-round);
	animation: readerSpin 0.8s linear infinite;
}
@keyframes readerSpin {
	to {
		transform: rotate(360deg);
	}
}

.pdf-spread-pages {
	display: inline-flex;
	justify-content: flex-start;
	align-items: flex-start;
	min-width: 100%;
	min-height: 100%;
	gap: 2px;
	opacity: 0;
	transform: translateX(0);
	transition:
		opacity var(--duration-default) ease,
		transform var(--duration-default) ease;
}
.pdf-spread-pages.pdf-spread-visible {
	opacity: 1;
	transform: translateX(0);
}
.pdf-spread-pages.pdf-spread-exit-left {
	opacity: 0;
	transform: translateX(-60px);
	transition:
		opacity var(--duration-fast) ease,
		transform var(--duration-fast) ease;
}
.pdf-spread-pages.pdf-spread-exit-right {
	opacity: 0;
	transform: translateX(60px);
	transition:
		opacity var(--duration-fast) ease,
		transform var(--duration-fast) ease;
}
.pdf-page-wrapper {
	background: var(--white);
	box-shadow: 0 2px 12px var(--black-10);
	border-radius: var(--radius-2xs);
	overflow: hidden;
	flex-shrink: 0;
}
.pdf-page-wrapper canvas {
	display: block;
}
.pdf-page-wrapper .textLayer {
	opacity: 0.3;
	line-height: 1;
}
.pdf-page-wrapper .textLayer span {
	color: transparent;
	position: absolute;
	white-space: pre;
	transform-origin: 0% 0%;
}

.editor-bottombar-validation {
	padding: 0 20px;
	flex-shrink: 0;
}
.bottombar-checkbox-label {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	font-family: var(--font-body);
	font-size: var(--type-body-xs);
	line-height: 1.4;
	color: var(--text-strong);
	max-width: 420px;
}
.bottombar-checkbox-label input[type='checkbox'] {
	width: 18px;
	height: 18px;
	min-width: 18px;
	accent-color: var(--brand-green);
	cursor: pointer;
}

.pdf-page-wrapper {
	position: relative;
	overflow: hidden;
}
.book-reader-zoom-controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 8px;
}
.zoom-btn {
	width: 34px;
	height: 34px;
	border: 1.5px solid var(--border-editor-zoom);
	border-radius: var(--radius-md);
	font-size: var(--type-heading-xs);
	font-weight: 500;
	color: var(--neutral-700);
}
.zoom-btn:hover:not(:disabled) {
	background: var(--surface-editor-zoom);
	border-color: var(--border-editor-zoom-hover);
}
.zoom-btn:disabled {
	cursor: default;
}
.zoom-btn.zoom-reset {
	font-size: var(--type-body-lg);
	margin-left: 4px;
}
.zoom-level {
	font-family: var(--font-body);
	font-size: var(--type-body-sm);
	color: var(--neutral-650);
	min-width: 40px;
	text-align: center;
}
