/* Kitchen Label Studio – label maker page */
.is-maker .site-header .wrap { max-width: none; height: 64px; }
.is-maker .nav ul { display: none; }

.maker { display: grid; grid-template-columns: 400px 1fr; min-height: calc(100vh - 64px); font-size: 16px; line-height: 1.5; }
.maker .panel { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; }
.maker .tabs { display: flex; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--paper); z-index: 5; overflow-x: auto; }
.admin-bar .maker .tabs { top: 32px; }
.maker .tab { flex: 1; padding: 14px 6px 12px; background: none; border: 0; border-bottom: 3px solid transparent; cursor: pointer; font-weight: 600; color: var(--ink-soft); }
.maker .tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--saffron); }
.maker .tab:hover { color: var(--ink); }
.maker .tab-panel { padding: 24px; display: grid; gap: 26px; }
.maker .tab-panel[hidden], .maker [hidden] { display: none; }

.maker .field > .field-label { display: block; font-weight: 600; margin-bottom: 8px; }
.maker .hint { color: var(--ink-soft); font-size: .875rem; margin: 6px 0 0; }
.maker .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.maker .mini-label { display: block; font-size: .875rem; color: var(--ink-soft); margin-bottom: 4px; }
.maker input[type="text"], .maker input[type="number"], .maker input[type="month"], .maker select, .maker textarea {
  width: 100%; padding: .6rem .75rem; border: 2px solid var(--line); border-radius: 10px; background: var(--paper);
}
.maker input:focus, .maker select:focus, .maker textarea:focus { border-color: var(--ink); outline: none; }
.maker textarea { min-height: 220px; resize: vertical; line-height: 1.55; }
.maker input[type="range"] { width: 100%; accent-color: var(--ink); }

.maker .seg { display: flex; flex-wrap: wrap; gap: 8px; }
.maker .seg button { padding: .45rem .85rem; border-radius: 999px; border: 2px solid var(--line); background: var(--paper); cursor: pointer; font-weight: 500; }
.maker .seg button:hover { border-color: var(--ink-soft); }
.maker .seg button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.maker .seg.small button { font-size: .85rem; padding: .3rem .7rem; }

.maker .tpl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.maker .tpl { background: none; border: 2px solid transparent; border-radius: 14px; padding: 6px 2px 8px; cursor: pointer; display: grid; gap: 4px; justify-items: center; font-size: .78rem; font-weight: 500; line-height: 1.2; text-align: center; }
.maker .tpl:hover { border-color: var(--line); }
.maker .tpl[aria-pressed="true"] { border-color: var(--ink); }
.maker .tpl svg { width: 100%; height: auto; aspect-ratio: 1; }

.maker .swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.maker .swatch { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line); cursor: pointer; padding: 0; }
.maker .swatch:hover { transform: scale(1.08); }
.maker .colour-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; margin-top: 10px; }
.maker input[type="color"] { width: 46px; height: 34px; border: 2px solid var(--line); border-radius: 8px; padding: 2px; background: var(--paper); cursor: pointer; }

.maker .font-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.maker .font-opt { border: 2px solid var(--line); border-radius: 10px; background: var(--paper); padding: .5rem .6rem; cursor: pointer; text-align: left; font-size: 1.2rem; line-height: 1.2; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.maker .font-opt:hover { border-color: var(--ink-soft); }
.maker .font-opt[aria-pressed="true"] { border-color: var(--ink); background: var(--pistachio); }

.maker .check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.maker .check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.maker .check small { display: block; color: var(--ink-soft); font-size: .875rem; }

.maker details.presets { border: 2px solid var(--line); border-radius: 12px; }
.maker details.presets + details.presets { margin-top: 8px; }
.maker details.presets summary { padding: .6rem .9rem; cursor: pointer; font-weight: 600; }
.maker details.presets .seg { padding: 0 .9rem .9rem; gap: 6px; }
.maker details.presets .seg button { font-size: .875rem; padding: .3rem .7rem; }
.maker .list-tools { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: .875rem; color: var(--ink-soft); }
.maker .list-tools div { display: flex; gap: 12px; }
.maker .btn { font-size: 1rem; padding: .7rem 1.2rem; }
.maker .btn-text { padding: .3rem .2rem; font-size: .875rem; }

.maker .stage { background: var(--pistachio); min-width: 0; }
.maker .stage-inner { padding: 32px; display: grid; gap: 32px; }
.maker .hero-preview { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; }
.maker .hero-label { display: flex; justify-content: center; align-items: center; min-height: 300px; }
.maker .hero-label svg { max-width: 100%; max-height: 300px; filter: drop-shadow(0 10px 18px rgba(35,48,42,.18)); }
.maker .nav-btn { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.maker .nav-btn:hover { background: var(--ink); color: var(--paper); }
.maker .nav-btn:disabled { opacity: .3; cursor: default; background: var(--paper); color: var(--ink); }
.maker .edit-one { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.maker .edit-one input { max-width: 280px; text-align: center; font-weight: 600; }
.maker .edit-one .count { color: var(--ink-soft); font-size: .9rem; }
.maker .actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.maker .sheet-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.maker .sheet-head h2 { font-size: 1.5rem; }
.maker .sheet-head p { color: var(--ink-soft); }
.maker .pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; margin-top: 16px; }
.maker .page-fig { margin: 0; }
.maker .page { background: #fff; box-shadow: 0 1px 0 var(--line), 0 18px 36px -24px rgba(35,48,42,.5); }
.maker .page svg { display: block; width: 100%; height: auto; }
.maker .page-cap { font-size: .85rem; color: var(--ink-soft); margin-top: 8px; }
.maker .page g.slot { cursor: pointer; }
.maker .saved-note { font-size: .85rem; color: var(--ink-soft); text-align: center; }
.maker .saved-note .btn-text { font-size: .85rem; padding: 0; display: inline; }

#print-root { display: none; }

@media (max-width: 900px) {
  .maker { grid-template-columns: 1fr; }
  .maker .stage { order: -1; }
  .maker .panel { border-right: 0; border-top: 1px solid var(--line); }
  .maker .stage-inner { padding: 20px 16px; gap: 24px; }
  .maker .hero-label { min-height: 220px; }
  .maker .hero-label svg { max-height: 220px; }
}
@media (max-width: 782px) { .admin-bar .maker .tabs { top: 0; } }

@media print {
  body > *:not(#print-root) { display: none !important; }
  html, body { margin: 0 !important; padding: 0 !important; }
  #print-root { display: block; }
  #print-root .print-page { break-after: page; page-break-after: always; overflow: hidden; }
  #print-root .print-page:last-child { break-after: auto; page-break-after: auto; }
  #print-root svg { display: block; }
}
