/* Native ESC/POS editor: left settings / right preview on desktop; stacked on Android. */
.ticket-workspace { grid-template-columns: minmax(480px,1.18fr) minmax(340px,.82fr); }
.ticket-workspace .native-print-settings { margin:12px 0; }
.native-print-settings .two-cols { margin:12px 0; }
.native-print-settings input, .native-print-settings textarea, .native-print-settings select,
.native-block-label input, .native-block-label textarea {width:100%;box-sizing:border-box;background:#fff;border:1px solid #cfdae1;border-radius:9px;padding:11px 12px;font:inherit;color:#213d4a;}
.native-print-settings label,.native-block-label {display:flex;flex-direction:column;gap:7px;color:#536f7f;font-size:calc(12px * var(--ui-scale,1));font-weight:600;}
.native-print-settings label textarea {min-height:112px;resize:vertical;line-height:1.6;}
.native-command-details {padding-top:12px;margin-top:8px;border-top:1px solid #e7edf2;color:#546e7f;font-size:calc(12px * var(--ui-scale,1));}
.native-command-details summary {cursor:pointer;font-weight:700;padding:10px 0;}
#ticketCommands {max-height:280px;}
.ticket-paper {max-height:920px;overflow:auto;}
#ticketImageInfo {color:#57768a;}
#ticketClock {min-height:38px;padding:10px 12px;border-radius:8px;background:#f1f6f8;color:#587487;}
@media(max-width:950px){.ticket-workspace{grid-template-columns:1fr}.ticket-paper{max-height:680px}}
@media(max-width:620px){.native-print-settings .two-cols{grid-template-columns:1fr}.ticket-workspace .card{padding:15px}}

/* Mobile: form first, preview after (same workflow as desktop). */
@media(max-width:620px){.ticket-workspace .result-card{order:0}.ticket-workspace .settings-card{order:0}}

/* Fix7: all nine print modes are visible; no dropdown discovery required. */
.print-mode-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:18px}
.print-mode-button{min-height:48px;white-space:normal}
.print-mode-button[aria-pressed="true"]{background:#176b76;color:white;border-color:#176b76}
@media(max-width:520px){.print-mode-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
