.heading-actions .button[data-action="recipe-sheets"] { display: inline-flex; }
@media (max-width: 900px) {
  .page-heading:has([data-action="recipe-sheets"]) { flex-wrap: wrap; }
  .page-heading:has([data-action="recipe-sheets"]) .heading-actions { width: 100%; max-width: 100%; flex-shrink: 1; flex-wrap: wrap; padding-top: 0; }
}
.recipe-sheet-creator.dialog { width: min(1240px, calc(100vw - 36px)); max-width: calc(100vw - 36px); max-height: calc(100dvh - 36px); }
.recipe-sheet-creator .dialog-header { flex-shrink: 0; }
.recipe-sheet-creator .dialog-header h2 { margin-top: 5px; font-size: 23px; }
.recipe-sheet-creator .dialog-body { padding: 20px 24px 24px; min-height: 0; }
.sheet-creator-intro { max-width: 900px; font-size: 12px; line-height: 1.8; color: #7c8b70; margin-bottom: 20px; }
.sheet-creator-layout { display: grid; grid-template-columns: minmax(260px, 310px) minmax(0, 1fr); align-items: start; gap: 23px; }
.sheet-creator-controls { min-width: 0; }
.sheet-creator-controls > .field { margin-bottom: 22px; }
.sheet-creator-controls h3 { font-size: 13px; margin-bottom: 8px; }
.sheet-control-hint { color: #7d8c70; font-size: 11px; line-height: 1.75; margin-bottom: 13px; }
.sheet-recipe-selector > .field { margin: 13px 0 10px; }
.sheet-selection-actions { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.sheet-selection-actions .text-button { min-height: 36px; font-size: 11px; }
.sheet-selection-count { font-size: 11px; color: #536c48; margin-bottom: 10px; }
.sheet-recipe-checklist { max-height: 280px; overflow: auto; overscroll-behavior: contain; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.sheet-recipe-choice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 13px; cursor: pointer; }
.sheet-recipe-choice + .sheet-recipe-choice { border-top: 1px solid #edf0e8; }
.sheet-recipe-choice:has(input:checked) { background: #f0f5e7; }
.sheet-recipe-choice input { width: 16px; height: 16px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--green); }
.sheet-recipe-choice span { min-width: 0; }
.sheet-recipe-choice strong { display: block; overflow-wrap: anywhere; color: #3a5438; font-size: 12px; line-height: 1.5; font-weight: 500; }
.sheet-recipe-choice small { display: block; color: #879479; font-size: 10px; line-height: 1.6; margin-top: 3px; }
.sheet-source-badge { display: inline-block; width: fit-content; max-width: 100%; padding: 2px 6px; border-radius: 5px; margin-top: 4px; color: #58704d; background: #edf2e5; font-size: 9px; line-height: 1.5; font-weight: 500; overflow-wrap: anywhere; }
.sheet-source-shared { color: #5b587e; background: #efedf7; }
.sheet-order-name .sheet-source-badge { display: block; }
.sheet-checklist-empty { color: #7b8a6e; padding: 17px 14px; font-size: 11px; line-height: 1.8; }
.sheet-order-section { margin-top: 22px; }
.sheet-selection-order { list-style: none; padding: 0; margin: 0; max-height: 270px; overflow: auto; overscroll-behavior: contain; }
.sheet-selection-order li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid #e8eddf; }
.sheet-selection-order li.sheet-order-empty { font-size: 11px; color: #879479; line-height: 1.7; border: none; }
.sheet-order-name { min-width: 0; overflow-wrap: anywhere; font-size: 11px; color: #536c48; line-height: 1.6; }
.sheet-order-actions { display: flex; align-items: center; gap: 3px; flex-shrink: 0; }
.sheet-order-actions .button.icon { width: 30px; height: 32px; min-height: 32px; padding: 4px; border-radius: 6px; font-size: 17px; background: #fff; }
.sheet-style-options { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 20px; }
.sheet-check-option { display: flex; align-items: flex-start; gap: 9px; margin: 14px 0; font-size: 12px; line-height: 1.6; color: #58704d; }
.sheet-check-option input { width: 16px; height: 16px; accent-color: var(--green); margin: 2px 0 0; flex-shrink: 0; }
.sheet-missing-warning { background: #fcf3e3; border: 1px solid #eadbbd; border-radius: 8px; padding: 12px; color: #947a46; font-size: 11px; line-height: 1.8; margin-top: 15px; }
.sheet-creator-preview { min-width: 0; background: #edf0e8; border: 1px solid #e0e6d9; border-radius: 12px; overflow: hidden; }
.sheet-preview-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 17px; background: #f7f9f2; border-bottom: 1px solid #e0e6d9; }
.sheet-preview-toolbar h3 { font-size: 13px; color: #48613d; }
.sheet-preview-toolbar p { font-size: 10px; color: #8a967e; line-height: 1.6; margin-top: 4px; }
.sheet-preview-toolbar .input { width: auto; max-width: 132px; font-size: 11px; padding: 8px 10px; min-height: 36px; }
.sheet-preview-viewport { min-width: 0; max-height: 850px; overflow: auto; overscroll-behavior: contain; padding-bottom: 14px; }
.sheet-preview-pages { min-width: 0; width: max-content; min-width: 100%; padding: 12px; }
.sheet-preview-empty { width: min(420px, 100%); margin: 30px auto; min-height: 330px; padding: 50px 24px; text-align: center; color: #829372; font-size: 12px; line-height: 1.8; }
.sheet-preview-empty h3 { font-size: 16px; color: #567149; margin: 18px 0 10px; }
.sheet-preview-symbol { display: inline-grid; place-items: center; width: 62px; height: 86px; background: #fff; box-shadow: 0 3px 13px #183c2810; border: 1px solid #d7dfce; font-size: 19px; border-radius: 4px; }
.sheet-preview-page { width: max-content; margin: 0 auto 18px; }
.sheet-preview-page:last-child { margin-bottom: 0; }
.sheet-page-label { color: #7f8d73; margin: 2px 0 8px; font-size: 10px; }
.sheet-page-frame { position: relative; width: 793.7px; height: 1122.52px; }
.sheet-paper { position: absolute; top: 0; left: 0; width: 793.7008px; height: 1122.5197px; box-sizing: border-box; padding: 37.7953px; background: #fff; color: #000; box-shadow: 0 2px 8px #193b3920; transform-origin: top left; font: 16px/1.2 Arial, sans-serif; isolation: isolate; }
.sheet-paper .sheet-paper-title { position: relative; z-index: 1; margin: 0 0 14px; font: 700 26.6667px/1.15 Arial, sans-serif; text-align: center; text-decoration: underline; overflow-wrap: anywhere; color: #000; letter-spacing: normal; }
.sheet-paper-watermark { position: absolute; z-index: 0; left: 5%; top: 50%; width: 90%; height: 90%; max-height: 90%; object-fit: contain; transform: translateY(-50%); pointer-events: none; }
.sheet-table { position: relative; z-index: 1; display: table; border-collapse: collapse; border-spacing: 0; width: 100%; table-layout: fixed; font: 16px/1.2 Arial, sans-serif; background: transparent; color: #000; }
.sheet-table thead { display: table-header-group; }
.sheet-table tbody { display: table-row-group; }
.sheet-table tr, .sheet-table tbody tr { display: table-row; position: static; margin: 0; padding: 0; border: none; border-radius: 0; background: transparent; }
.sheet-table tbody tr:hover { background: transparent; }
.sheet-table th, .sheet-table td { display: table-cell; position: static; padding: 6px; border: 1.3333px solid #000; font: 400 16px/1.2 Arial, sans-serif; vertical-align: top; text-align: left; background: transparent; color: #000; white-space: normal; overflow-wrap: anywhere; letter-spacing: normal; }
.sheet-table th { border-width: 2px; }
.sheet-table tbody tr:last-child td { border-bottom: 1.3333px solid #000; }
.sheet-cell-text { white-space: pre-wrap; }
.sheet-glass-photo { display: block; object-fit: contain; width: auto; max-width: 100%; height: 90px; margin: 6px auto 0; }
.sheet-creator-footer { justify-content: space-between; flex-shrink: 0; gap: 16px; flex-wrap: wrap; }
.sheet-creator-status { color: #7e8e72; font-size: 11px; line-height: 1.7; flex: 1 1 180px; }
.sheet-download-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.sheet-creator-error { margin-bottom: 12px; font-size: 12px; }
.recipe-sheet-creator [data-sheet-retry] { margin-bottom: 12px; }
@media (max-width: 950px) {
  .sheet-creator-layout { grid-template-columns: minmax(235px, 285px) minmax(0, 1fr); gap: 18px; }
  .sheet-preview-toolbar { align-items: flex-start; flex-wrap: wrap; }
}
@media (max-width: 720px) {
  .recipe-sheet-creator.dialog { width: calc(100vw - 20px); max-width: calc(100vw - 20px); max-height: calc(100dvh - 20px); border-radius: 15px; }
  .recipe-sheet-creator .dialog-header { padding: 18px 16px; }
  .recipe-sheet-creator .dialog-header h2 { font-size: 20px; }
  .recipe-sheet-creator .dialog-body { padding: 16px; }
  .sheet-creator-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .sheet-recipe-checklist { max-height: 250px; }
  .sheet-selection-order { max-height: 230px; }
  .sheet-order-actions .button.icon { width: 36px; height: 38px; min-height: 38px; }
  .sheet-creator-footer { padding: 12px 16px 16px; gap: 9px; }
  .sheet-creator-status { flex-basis: 100%; font-size: 10px; }
  .sheet-download-actions { display: grid; width: 100%; grid-template-columns: minmax(0, 1fr); gap: 7px; }
  .sheet-download-actions .button { min-width: 0; white-space: normal; font-size: 11px; min-height: 42px; padding: 10px 8px; }
  .sheet-download-actions > .button:first-child { display: none; }
  .sheet-preview-toolbar { padding: 12px; gap: 10px; }
  .sheet-preview-viewport { max-height: 650px; }
}
