@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: #fff;
  border-bottom: 1px solid #eee;
}

.editor-topbar-back {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Roboto', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  padding: 6px 12px 6px 4px;
  border-radius: 8px;
  transition: background 0.15s;
}

.editor-topbar-back:hover {
  background: #f5f5f5;
}

.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: #fefaf0;
  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: #fff;
  border-bottom: 1px solid #eee;
  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: 'Oswald', sans-serif;
  font-size: 0.85rem;
  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: 'Roboto', sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  font-style: italic;
  color: #5e5b5b;
}

.progress-cart-btn-REMOVED {
  display: none;
  margin-left: auto;
  font-family: 'Roboto', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  padding: 10px 28px;
  border-radius: 28px;
  border: none;
  cursor: pointer;
  background: #d4dfca;
  color: #6b7a5a;
  opacity: 0.55;
  transition: all 0.2s;
  white-space: nowrap;
}

.progress-cart-btn:disabled {
  cursor: not-allowed;
}

.progress-cart-btn.ready {
  background: #839363;
  color: #fff;
  opacity: 1;
  cursor: pointer;
}

.progress-cart-btn.ready:hover {
  background: #6f7f52;
}

.progress-step {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.35;
  transition: opacity 0.3s;
}

.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: 50%;
  background: #e0e0e0;
  color: #fff;
  font-family: 'Roboto', sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  transition: background 0.3s;
}

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

.progress-step.done .progress-num {
  background: #839363;
}

.progress-label {
  font-family: 'Roboto', sans-serif;
  font-size: 0.85rem;
  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 {
  font-family: 'Roboto', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 9px 24px;
  border-radius: 24px;
  border: none;
  background: #E67E50;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
  min-width: 200px;
  text-align: center;
}
.btn-topbar-draft:hover:not(:disabled) {
  background: #d46a3e;
}
.btn-topbar-draft:disabled {
  background: #c5c5c5;
  color: #fff;
  cursor: not-allowed;
  opacity: 0.7;
}

.btn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
}

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

.progress-line {
  width: 48px;
  height: 2px;
  background: #e0e0e0;
  margin: 0 12px;
}

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

.progress-preview-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 24px;
  border-radius: 24px;
  border: none;
  background: #c0c0c0;
  color: #fff;
  font-family: 'Roboto', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: not-allowed;
  opacity: 0.45;
  transition: background 0.2s, opacity 0.2s;
  white-space: nowrap;
  min-width: 200px;
}

.progress-preview-btn.enabled {
  background: #888;
  cursor: pointer;
  opacity: 1;
}

.progress-preview-btn.enabled:hover {
  background: #666;
}

.progress-preview-btn.active {
  background: #555;
  cursor: pointer;
  opacity: 1;
  box-shadow: 0 0 0 3px rgba(100, 100, 100, 0.25);
}

.editor-step {
  display: none;
  padding: 48px 0 48px;
  animation: fadeIn 0.35s 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: 'Oswald', sans-serif;
  font-size: 1.5rem;
  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: 'Roboto', sans-serif;
  font-size: 0.92rem;
  color: #999;
  text-align: left;
  margin: 0;
}

.editor-step h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
  text-transform: none;
  color: var(--text-primary);
  text-align: left;
  margin-bottom: 8px;
}

.editor-step-desc {
  font-family: 'Roboto', sans-serif;
  font-size: 0.92rem;
  color: #999;
  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: #fff;
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.format-card:hover {
  border-color: #ddd;
  transform: translateY(-2px);
}

.format-card.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(230, 126, 80, 0.15);
}

.format-card-name {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  text-transform: none;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.format-card-details {
  font-family: 'Roboto', sans-serif;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
  white-space: nowrap;
}

.format-card-price {
  font-family: 'Roboto', sans-serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--primary);
  text-align: center;
}

.format-card-ebook {
  font-family: 'Roboto', sans-serif;
  font-size: 0.78rem;
  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: #fff;
  border: 3px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.cover-card:hover {
  border-color: #ddd;
  transform: translateY(-2px);
}

.cover-card.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(230, 126, 80, 0.15);
}

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

.cover-card-name {
  font-family: 'Roboto', sans-serif;
  font-size: 0.82rem;
  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);
  border-radius: 50%;
  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: #f0ece4;
  border-radius: 14px;
  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: 14px;
}

.cover-zoom-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}
.cover-zoom-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  transition: background 0.15s, border-color 0.15s;
}
.cover-zoom-btn:hover {
  background: #f0f0f0;
  border-color: #999;
}
.cover-zoom-level {
  font-family: 'Roboto', sans-serif;
  font-size: 0.85rem;
  color: #666;
  min-width: 40px;
  text-align: center;
}

.title-overlay {
  position: absolute;
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  color: #1a1a1a;
  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: 'Roboto', sans-serif;
  font-size: 0.88rem;
  color: #999;
  margin: 0 0 12px;
}

.title-input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  color: var(--text-primary);
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
}

.title-input:focus {
  border-color: var(--primary);
}

.title-char-count {
  font-family: 'Roboto', sans-serif;
  font-size: 0.8rem;
  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: #faf6ed;
  border-radius: 14px;
  padding: 18px 18px 18px;
  border: 1px solid #f0e6d6;
  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: 'Roboto', sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-primary);
}
.recipes-right-icons {
  display: flex;
  align-items: center;
  gap: 8px;
}
.format-info-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  padding: 2px;
  transition: color 0.15s;
  vertical-align: middle;
  margin-left: 4px;
}
.format-info-btn:hover {
  color: var(--primary);
}
.recipes-info-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  padding: 2px;
  transition: color 0.15s;
}
.recipes-info-btn:hover {
  color: var(--primary);
}
.recipes-right-count {
  font-family: 'Roboto', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-light);
  background: #f5f5f5;
  padding: 2px 8px;
  border-radius: 10px;
}

.info-panel {
  background: #fef9f2;
  border: 1px solid #f0e0cc;
  border-radius: 10px;
  padding: 10px 16px;
  margin-top: 8px;
}
.info-panel-list {
  list-style: disc;
  padding-left: 20px;
  margin: 0;
}
.info-panel-list li {
  font-family: 'Roboto', sans-serif;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.55;
  padding: 2px 0;
}
.recipes-info-panel {
  background: #fef9f2;
  border: 1px solid #f0e0cc;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 10px;
}
.recipes-info-panel p {
  font-family: 'Roboto', sans-serif;
  font-size: 0.82rem;
  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 {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  padding: 2px;
  transition: color 0.15s;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.import-info-toggle:hover {
  color: var(--primary);
}
.import-info-panel {
  width: 100%;
  background: #fef9f2;
  border: 1px solid #f0e0cc;
  border-radius: 10px;
  padding: 10px 14px;
  margin-top: 0;
}
.import-info-panel p {
  font-family: 'Roboto', sans-serif;
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0;
}
.import-info-panel .import-info-copyright {
  color: #E67E50;
  margin-top: 6px;
  font-size: 0.75rem;
}

.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: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-family: 'Roboto', sans-serif;
  font-size: 0.82rem;
  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 {
  background: none;
  border: none;
  cursor: pointer;
  color: #999;
  padding: 2px;
  font-size: 16px;
  line-height: 1;
}
.recipe-doc-file-item .file-remove:hover {
  color: #e74c3c;
}

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

.recipe-url-input {
  flex: 1;
  padding: 10px 14px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-family: 'Roboto', sans-serif;
  font-size: 0.88rem;
  color: var(--text-primary);
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
}

.recipe-url-input:focus {
  border-color: var(--primary);
}

.btn-sm {
  padding: 10px 20px !important;
  font-size: 0.85rem !important;
  min-width: 100px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-sm:disabled {
  background: #c5c5c5 !important;
  color: #fff !important;
  cursor: not-allowed;
  opacity: 0.7;
}

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

.recipe-count-bar span {
  font-family: 'Roboto', sans-serif;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.recipe-count-progress {
  height: 6px;
  background: #e8e8e8;
  border-radius: 3px;
  margin-top: 8px;
  overflow: hidden;
}

.recipe-count-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 3px;
  transition: width 0.3s;
}

.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: #e5e0d8;
  border-radius: 3px;
}
.recipe-cards-scroll::-webkit-scrollbar-thumb {
  background: #bbb3a5;
  border-radius: 3px;
}
.recipe-cards-scroll::-webkit-scrollbar-thumb:hover {
  background: #a39b8d;
}
@supports not selector(::-webkit-scrollbar) {
  .recipe-cards-scroll {
    scrollbar-width: thin;
    scrollbar-color: #bbb3a5 #e5e0d8;
  }
}

.recipe-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #eee;
  transition: box-shadow 0.15s;
}
.recipe-card:hover {
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.recipe-card-left {
  flex-shrink: 0;
}
.recipe-card-photo {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
}
.recipe-card-photo-placeholder {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.recipe-card-center {
  flex: 1;
  min-width: 0;
}
.recipe-card-num {
  font-family: 'Roboto', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 2px;
}
.recipe-card-title {
  font-family: 'Roboto', sans-serif;
  font-size: 0.92rem;
  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: 'Roboto', sans-serif;
  font-size: 0.75rem;
}
.recipe-card-alert span {
  line-height: 1.2;
}
.conformity-ok {
  color: #4caf50;
}
.conformity-error {
  color: #d32f2f;
}
.conformity-warn {
  color: #d32f2f;
}

.recipe-card-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  align-items: center;
}
.recipe-card-edit {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  border: none;
  cursor: pointer;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.15s;
}
.recipe-card-edit:hover {
  opacity: 0.85;
}
.recipe-card-remove {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #d32f2f;
  border: none;
  cursor: pointer;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.15s;
}
.recipe-card-remove:hover {
  opacity: 0.85;
}

.book-preview-mini {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

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

.preview-cover img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

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

.preview-page {
  background: #faf6ed;
  border-radius: 4px;
  padding: 12px 10px;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-page span {
  font-family: 'Roboto', sans-serif;
  font-size: 0.72rem;
  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: #ffe6dd;
  border-top: 1px solid #f5b49e;
  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: rgba(230, 126, 80, 0.15);
  border-radius: 3px;
  width: 320px;
}

.editor-bottombar-progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 3px;
  transition: width 0.4s ease;
}

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

.btn-bottombar-cart {
  font-family: 'Roboto', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 9px 24px;
  border-radius: 24px;
  border: none;
  cursor: pointer;
  background: #839363;
  color: #fff;
  transition: opacity 0.2s, background 0.2s;
  white-space: nowrap;
  min-width: 200px;
}
.btn-bottombar-cart:disabled {
  background: #c5c5c5;
  color: #fff;
  cursor: not-allowed;
  opacity: 0.7;
}
.btn-bottombar-cart:not(:disabled):hover {
  background: #6f7f52;
}

.btn-bottombar-draft {
  font-family: 'Roboto', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 9px 24px;
  border-radius: 24px;
  border: none;
  cursor: pointer;
  background: var(--primary);
  color: #fff;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.btn-bottombar-draft:hover {
  opacity: 0.85;
}

.editor-bottombar-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Roboto', sans-serif;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.bottombar-format {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 0.88rem;
  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: 0.92rem;
}

.bottombar-state {
  font-weight: 500;
  color: #b0a090;
  font-style: italic;
}

.bottombar-state.complete {
  color: #839363;
  font-style: normal;
  font-weight: 600;
}

.bottombar-sep {
  color: #d0d0d0;
  font-size: 0.75rem;
}

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

.recipe-empty-state p {
  font-family: 'Roboto', sans-serif;
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 8px;
}

.recipe-add-manual-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 2px dashed #ddd;
  border-radius: 10px;
  padding: 12px 20px;
  font-family: 'Roboto', sans-serif;
  font-size: 0.88rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
  width: 100%;
  justify-content: center;
  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: rgba(0,0,0,0.4);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

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

.recipe-modal {
  background: #fff;
  border-radius: 14px;
  padding: 36px;
  width: 90%;
  max-width: 680px;
  max-height: 85vh;
  overflow-y: auto;
}

.recipe-modal h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  text-transform: none;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.recipe-modal label {
  display: block;
  font-family: 'Roboto', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
  margin-top: 16px;
}

.recipe-modal input,
.recipe-modal textarea {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-family: 'Roboto', sans-serif;
  font-size: 0.88rem;
  color: var(--text-primary);
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.recipe-modal input:focus,
.recipe-modal textarea:focus {
  border-color: var(--primary);
}

.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: 0.85rem;
  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;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  border-radius: 28px;
  font-family: 'Roboto', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  background: #f2f2f2;
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: #e8e8e8;
}

@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: 0.7rem;
    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: 1.1rem;
  }
  .editor-step-header {
    padding: 12px 16px 12px;
  }
  .editor-step-header h2 {
    font-size: 1.15rem;
  }
  .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: 0.75rem;
  }

  .editor-progress-info {
    padding: 0 16px;
    font-size: 0.72rem;
  }

  .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: 0.78rem;
    padding: 8px 16px;
    min-width: auto;
  }

  .progress-preview-btn {
    font-size: 0.78rem;
    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: 0.78rem;
  }

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

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

.format-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.format-popup {
  background: #fff;
  border-radius: 16px;
  padding: 32px 36px;
  max-width: 440px;
  width: 90%;
  text-align: center;
  box-shadow: 0 8px 40px rgba(0,0,0,0.15);
}
.format-popup h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.format-popup p {
  font-family: 'Roboto', sans-serif;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 8px;
}
.format-popup-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}
.format-popup-btn-continue {
  font-family: 'Roboto', sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  padding: 12px 28px;
  border-radius: 28px;
  border: 2px solid #ddd;
  background: #fff;
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color 0.15s;
}
.format-popup-btn-continue:hover {
  border-color: var(--primary);
}
.format-popup-btn-cart {
  font-family: 'Roboto', sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  padding: 12px 28px;
  border-radius: 28px;
  border: none;
  background: #839363;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.15s;
}
.format-popup-btn-cart:hover {
  opacity: 0.85;
}

.cloch-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.cloch-popup-overlay.active {
  opacity: 1;
}
.cloch-popup {
  background: #fff;
  border-radius: 18px;
  padding: 36px 40px 28px;
  max-width: 520px;
  width: auto;
  min-width: 320px;
  text-align: center;
  box-shadow: 0 12px 48px rgba(0,0,0,0.15);
  animation: popupSlideIn 0.25s ease;
}
@keyframes popupSlideIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cloch-popup-icon {
  margin-bottom: 16px;
}
.cloch-popup-icon.warning {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff3ec;
}
.cloch-popup-icon.success {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #f0f4e8;
}
.cloch-popup-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.cloch-popup-message {
  font-family: 'Roboto', sans-serif;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 4px;
}
.cloch-popup-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 22px;
}
.cloch-popup-btn {
  font-family: 'Roboto', sans-serif;
  font-size: 0.92rem;
  font-weight: 400;
  padding: 11px 28px;
  border-radius: 28px;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
}
.cloch-popup-btn.primary {
  background: #839363;
  color: #fff;
}
.cloch-popup-btn.primary:hover {
  opacity: 0.85;
}
.cloch-popup-btn.orange {
  background: var(--primary);
  color: #fff;
}
.cloch-popup-btn.orange:hover {
  opacity: 0.85;
}
.cloch-popup-btn.secondary {
  background: #f5f5f5;
  color: var(--text-secondary);
  border: 1px solid #e0e0e0;
}
.cloch-popup-btn.secondary:hover {
  background: #eee;
}

.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: 'Oswald', sans-serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--text-primary);
  margin: 0 0 6px;
}
.book-reader-subtitle {
  font-family: 'Roboto', sans-serif;
  font-size: 0.9rem;
  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-radius: 50%;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  flex-shrink: 0;
  color: var(--text-primary);
}
.book-reader-arrow:hover:not(:disabled) {
  background: #f5f5f5;
  border-color: #bbb;
}
.book-reader-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}
.book-reader-spread {
  width: 100%;
  max-width: 750px;
  aspect-ratio: 860 / 608;
  display: flex;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  position: relative;
}
.reader-page {
  width: 50%;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.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;
}
.reader-page-left {
  border-right: 1px solid rgba(0,0,0,0.08);
}
.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: 'Oswald', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}
.reader-info-text {
  font-family: 'Roboto', sans-serif;
  font-size: 0.7rem;
  color: #666;
  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-label {
  font-family: 'Roboto', sans-serif;
  font-size: 0.7rem;
  color: #aaa;
  text-align: center;
}
.reader-guard-sub {
  font-family: 'Roboto', sans-serif;
  font-size: 0.6rem;
  color: #bbb;
  font-style: italic;
  text-align: center;
  margin-top: 2px;
}
.reader-toc {
  padding: 8% 6%;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.reader-toc-title {
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: #333;
  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: 'Roboto', sans-serif;
  color: #888;
  width: 18px;
  flex-shrink: 0;
}
.reader-toc-text {
  font-family: 'Roboto', sans-serif;
  color: #333;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.reader-toc-dots {
  flex: 0 0 30px;
  height: 1px;
  border-bottom: 1px dotted #ddd;
  margin: 0 2px;
}
.reader-toc-page {
  font-family: 'Roboto', sans-serif;
  color: #666;
  width: 18px;
  text-align: right;
  flex-shrink: 0;
}
.reader-recipe-text-page {
  background: #fff;
}
.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: #1a1a1a;
  line-height: 1.15;
  margin-bottom: 4%;
}
.reader-recipe-indications {
  display: flex;
  gap: 16px;
  padding-bottom: 4px;
  border-bottom: 0.5px solid rgba(0,0,0,0.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: 'Oswald', sans-serif;
  font-size: clamp(3.5px, 0.5vw, 6px);
  color: #1a1a1a;
  letter-spacing: 0.2px;
  font-weight: 600;
  margin-bottom: 1px;
}
.reader-recipe-ind-val {
  font-family: 'Roboto', sans-serif;
  font-size: clamp(4px, 0.55vw, 6.5px);
  color: #1a1a1a;
  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: 'Oswald', sans-serif;
  font-size: clamp(4px, 0.55vw, 6px);
  color: #666;
  letter-spacing: 0.2px;
  margin-bottom: 3px;
  font-weight: 600;
}
.reader-recipe-ing-line {
  font-family: 'Roboto', sans-serif;
  font-size: clamp(4px, 0.55vw, 6px);
  color: #333;
  line-height: 1.35;
}
.reader-recipe-step-line {
  font-family: 'Roboto', sans-serif;
  font-size: clamp(4px, 0.55vw, 6px);
  color: #333;
  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: rgba(255,255,255,0.3);
  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: #1a1a1a;
  line-height: 1.4;
}
.book-reader-footer {
  text-align: center;
  margin-top: 16px;
}
.book-reader-pages {
  font-family: 'Roboto', sans-serif;
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 8px;
}
.book-reader-progress-bar {
  width: 100%;
  max-width: 400px;
  height: 3px;
  background: #e0e0e0;
  border-radius: 2px;
  margin: 0 auto 8px;
  overflow: hidden;
}
.book-reader-progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.3s ease;
}
.book-reader-hint {
  font-family: 'Roboto', sans-serif;
  font-size: 0.75rem;
  color: #999;
}

.book-reader-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  gap: 16px;
  font-family: 'Roboto', sans-serif;
  color: #666;
}
.book-reader-loading p {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
}
.reader-loading-sub {
  font-size: 0.85rem !important;
  font-weight: 400 !important;
  color: #999 !important;
}
.reader-spinner {
  width: 44px;
  height: 44px;
  border: 3.5px solid #e8dcc8;
  border-top-color: #E67E50;
  border-radius: 50%;
  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 0.3s ease, transform 0.3s 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 0.22s ease, transform 0.22s ease;
}
.pdf-spread-pages.pdf-spread-exit-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.pdf-page-wrapper {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  border-radius: 2px;
  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: 'Roboto', sans-serif;
  font-size: 0.82rem;
  line-height: 1.4;
  color: #333;
  max-width: 420px;
}
.bottombar-checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  accent-color: #839363;
  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 #d4c9b8;
  background: #fff;
  border-radius: 8px;
  font-size: 18px;
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  color: #555;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}
.zoom-btn:hover:not(:disabled) {
  background: #f5efe5;
  border-color: #b8a994;
}
.zoom-btn:disabled {
  opacity: 0.35;
  cursor: default;
}
.zoom-btn.zoom-reset {
  font-size: 16px;
  margin-left: 4px;
}
.zoom-level {
  font-family: 'Roboto', sans-serif;
  font-size: 0.85rem;
  color: #777;
  min-width: 40px;
  text-align: center;
}

