.mz-seg{display:inline-flex;align-self:flex-start;width:fit-content;max-width:100%;border:2px solid var(--hard,#334155);border-radius:999px;overflow:hidden;background:var(--panel,transparent)}
.mz-seg button{border:0;background:transparent;color:inherit;font:inherit;font-weight:800;padding:6px 16px;cursor:pointer;min-height:2.25rem}
.mz-seg button.active{background:var(--accent,#2563eb);color:#fff}
.mz-list{display:flex;flex-direction:column;gap:6px}
.mz-row{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"t ctl" "c ctl";gap:2px 6px;align-items:center;background:var(--bg);border:2px solid var(--hard);border-radius:10px;padding:5px 6px}
.mz-row.pic{grid-template-columns:40px minmax(0,1fr) auto;grid-template-areas:"th t ctl"}
.mz-row .t{grid-area:t}.mz-row .c{grid-area:c}.mz-row .ctl{grid-area:ctl;display:flex;align-items:center}.mz-row .th{grid-area:th}
.mz-row input[type=text]{min-width:0;border:0;background:transparent;padding:5px 4px;border-radius:6px;font-weight:700;font-size:.9rem}
.mz-row input.c{font-weight:500;font-size:.78rem;color:var(--muted);padding-top:0}
.mz-row input[type=text]:focus{outline:2px solid var(--sky,#38bdf8)}
.mz-row .th{width:40px;height:40px;border-radius:8px;border:2px solid var(--hard);background:#fff;overflow:hidden;display:grid;place-items:center}
.mz-row .th img{width:100%;height:100%;object-fit:contain}
.mz-row .mini{border:0;background:transparent;color:var(--muted);cursor:pointer;font-size:.8rem;width:26px;height:26px;border-radius:50%;display:grid;place-items:center}
.mz-row .mini:hover:not(:disabled){background:var(--panel2);color:var(--text)}
.mz-row .mini:disabled{opacity:.25;cursor:default}
.mz-none{text-align:center;color:var(--muted);padding:12px 6px;font-size:.9rem}
.mz-pv{display:flex;flex-direction:column;gap:12px;align-items:center;min-height:0}   /* 1.203.518: flex, like Word Search; a grid here let iPad Safari size the row from the canvas and push the page down */
.mz-pv-page{position:relative;background:#fff;box-shadow:0 6px 24px rgba(0,0,0,.35);border-radius:3px;width:min(100%,680px);aspect-ratio:210/297}
.mz-pv-page canvas{display:block;width:100%;height:100%;border-radius:3px}
.mz-pv-busy{position:absolute;right:8px;bottom:8px;background:rgba(15,23,42,.85);color:#fff;font-size:.8rem;font-weight:700;padding:4px 10px;border-radius:999px}
.mz-pv-busy[hidden]{display:none}
.mz-pv-note{margin:0;text-align:center}
#clearBtn{align-self:flex-start}
.mz-seg button{white-space:nowrap}

/* ---- the options sit BESIDE the page preview. The frame itself (box, halves, header heights, full screen, fit mode) is shared: class gic-frame on the layout, gic-frameapp on .app (assets/css/layout.css). 1.203.516: the copied frame rules are gone. ---- */
  /* the page fits inside the space left for it, both ways (cqw / cqh of the preview box) */
  html.gic-wide .mz-pv { flex: 1 1 auto; container-type: size; min-height: 14rem; display: grid; place-items: center; }
  html.gic-wide .mz-pv-page { width: min(100cqw, 70.7cqh); }
