/* The 3D code maker on QR-Verse.html (qr3d-studio.js) and every sheet the maker's modules open inside .q3.
   The look is a press proof: proof sheets on the grey table of a viewing booth, crop marks, a registration target, a cm
   ruler and a colour bar on the proof, the "OK to print" stamp, and one ink per plate (A cyan, B magenta).
   Tokens are defined once here, under .q3, and reused by qr3d-bulk.js, qr3d-insights.js and qr3d-model.js's sheets.
   Logical properties throughout (Arabic runs right to left); the proof itself is a picture and stays left to right. */

.q3 {
    --q3-booth: #c6c8c8;          /* the viewing-booth table the sheets sit on */
    --q3-sheet: #fbfbf9;          /* a proof sheet */
    --q3-key: #1d1d1b;            /* text and rules */
    --q3-rule: #8d9192;           /* hairlines only: 3.1:1 on the sheet, too light for text */
    --q3-ink-2: #5d6162;          /* secondary and slug text: 6.1:1 on the sheet */
    --q3-cyan: #009fe3;           /* the 3D layer: primary actions, focus, variant A (key text on it, never white) */
    --q3-magenta: #e5007d;        /* variant B, the second plate (white text on it: 4.5:1) */
    --q3-yellow: #ffe500;         /* warnings only, always with key text */
    --q3-error: #b3001b;
    --q3-cyan-tint: #e3f3fb;
    --q3-magenta-tint: #fbe5f1;
    --q3-hair: rgba(29, 29, 27, .15);
    --q3-shadow: 0 1px 0 rgba(29, 29, 27, .25), 0 10px 24px -14px rgba(29, 29, 27, .45);
    --q3-font: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    display: block;
    position: relative;
    background: var(--q3-booth);
    color: var(--q3-key);
    font-family: var(--q3-font);
    font-size: 15.5px;
    line-height: 1.5;
    font-weight: 400;
    font-stretch: 100%;
    text-align: start;
    padding: 76px 24px 56px;
    border-bottom: 1px solid rgba(29, 29, 27, .3);
}
.q3 *, .q3 *::before, .q3 *::after { box-sizing: border-box; }
.q3 [hidden] { display: none !important; }
.q3 :focus-visible {
    outline: 2px solid var(--q3-cyan);
    outline-offset: 2px;
    box-shadow: 0 0 0 2px var(--q3-key);
}
.q3 img { max-width: 100%; }
.q3 p { margin: 0 0 8px; }
.q3 ::selection { background: var(--q3-cyan-tint); }
.q3-wrap { max-width: 1320px; margin: 0 auto; }
.q3-offscreen { position: fixed; inset-inline-start: -9999px; top: 0; opacity: 0; }

/* ---------------------------------------------------------------- type */
.q3-title, .q3-h2, .q3-h3, .q3-h4, .q3-h5, .q3-step-title {
    font-stretch: 115%;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0;
    color: var(--q3-key);
}
.q3-title { font-size: clamp(34px, 5.2vw, 60px); line-height: 1; letter-spacing: -0.025em; }
.q3-h2 { font-size: 26px; line-height: 1.15; }
.q3-h3 { font-size: 20px; line-height: 1.2; margin-bottom: 8px; }
.q3-h4 { font-size: 16px; line-height: 1.3; margin: 18px 0 8px; }
.q3-h5 { font-size: 14px; line-height: 1.3; margin: 0 0 6px; }
.q3-lead { max-width: 56ch; margin: 12px 0 0; font-size: 17px; }
.q3-slug {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 10px;
    margin: 0;
    font-size: 12.5px;
    line-height: 1.45;
    font-weight: 500;
    font-stretch: 75%;
    color: var(--q3-ink-2);
    font-variant-numeric: tabular-nums;
}
/* fields of a slug line are parted by a hairline, the way a printer's slug runs */
.q3-slug > span + span { border-inline-start: 1px solid var(--q3-rule); padding-inline-start: 10px; }
.q3-hint { margin: 2px 0 6px; font-size: 13.5px; line-height: 1.45; color: var(--q3-ink-2); }
.q3-label { display: block; margin: 0 0 4px; font-weight: 600; font-size: 14.5px; line-height: 1.35; }
.q3-err { margin: 4px 0 0; color: var(--q3-error); font-size: 14px; font-weight: 500; }
.q3-link { color: var(--q3-key); text-decoration: underline; text-decoration-color: var(--q3-cyan); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.q3-link:hover { text-decoration-color: var(--q3-key); }

/* ---------------------------------------------------------------- sheets, notes */
.q3-sheet {
    background: var(--q3-sheet);
    border: 1px solid var(--q3-hair);
    border-radius: 2px;
    box-shadow: var(--q3-shadow);
}
.q3-note {
    margin: 8px 0 12px;
    padding: 9px 12px;
    border-inline-start: 3px solid var(--q3-key);
    background: rgba(29, 29, 27, .045);
    font-size: 14.5px;
}
.q3-note--warn { border: 0; background: var(--q3-yellow); color: var(--q3-key); }
.q3 > .q3-wrap > .q3-note--warn { margin: 0 0 16px; padding: 12px 16px; font-weight: 500; box-shadow: var(--q3-shadow); }
.q3-warnings { list-style: none; margin: 8px 0; padding: 0; }
.q3-warnings li { margin: 0 0 4px; padding: 6px 10px; background: var(--q3-yellow); color: var(--q3-key); font-size: 14px; line-height: 1.4; }
.q3-errors { margin: 8px 0; padding: 8px 12px; border-inline-start: 4px solid var(--q3-error); color: var(--q3-error); font-size: 14px; background: #fff; }
.q3-errors p { margin: 0 0 4px; font-weight: 600; }
.q3-errors ul { margin: 0; padding-inline-start: 18px; }
.q3-status { min-height: 1.5em; margin: 6px 0 14px; font-weight: 500; }
.q3-status:empty { margin: 0; min-height: 0; }
.q3-status--ok::before { content: ''; display: inline-block; width: .7em; height: .7em; margin-inline-end: 8px; background: var(--q3-cyan); vertical-align: 0; }
.q3-status--error { color: var(--q3-error); }
.q3-loading { padding: 24px 0; color: var(--q3-ink-2); }

/* ---------------------------------------------------------------- buttons */
.q3-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--q3-key);
    border-radius: 6px;
    background: var(--q3-sheet);
    color: var(--q3-key);
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}
.q3-btn:hover { background: var(--q3-cyan-tint); }
.q3-btn:active { transform: translateY(1px); }
.q3-btn:disabled, .q3-btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.q3-btn--primary { background: var(--q3-cyan); border-color: var(--q3-cyan); color: var(--q3-key); }
.q3-btn--primary:hover { background: #2bb0ea; border-color: #2bb0ea; }
.q3-btn--big { min-height: 50px; padding: 0 26px; font-size: 17px; font-stretch: 110%; }
.q3-btn--small { min-height: 34px; padding: 0 11px; font-size: 14px; }
.q3-btn--quiet { border-color: transparent; background: transparent; text-decoration: underline; text-decoration-color: var(--q3-cyan); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.q3-btn--quiet:hover { background: transparent; text-decoration-color: var(--q3-key); }
.q3-btn--danger { border-color: rgba(29, 29, 27, .45); background: transparent; }
.q3-btn--danger:hover { background: var(--q3-magenta); border-color: var(--q3-magenta); color: #fff; }
.q3-btn--danger-solid { background: var(--q3-magenta); border-color: var(--q3-magenta); color: #fff; }
.q3-btn--danger-solid:hover { background: #c4006b; border-color: #c4006b; }
.q3-toggle[aria-pressed="true"] { background: var(--q3-key); border-color: var(--q3-key); color: var(--q3-sheet); }
.q3-unread {
    display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 10px;
    background: var(--q3-key); color: var(--q3-sheet); font-size: 12px; line-height: 20px; font-stretch: 75%; font-variant-numeric: tabular-nums;
}
.q3-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0; }

/* ---------------------------------------------------------------- the head of the table */
.q3-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 32px; margin: 0 0 22px; }
.q3-head-text { min-width: 0; }
.q3-head-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------------------------------------------------------------- the proof rack */
.q3-rack {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
    gap: 22px 20px;
    align-items: start;
}
.q3-card { container-type: inline-size; padding: 16px 16px 12px; min-width: 0; }
.q3-card--new { border-top: 4px solid var(--q3-cyan); }
.q3-card-top { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; grid-template-areas: "thumb id stamps"; gap: 4px 14px; align-items: start; }
.q3-card-thumb { grid-area: thumb; width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; border: 1px solid var(--q3-hair); display: block; }
.q3-card-thumb--none { background: repeating-linear-gradient(135deg, #eceeed 0 6px, #f6f7f6 6px 12px); }
.q3-card-id { grid-area: id; min-width: 0; }
.q3-card-title { margin: 0 0 4px; font-size: 18px; line-height: 1.2; font-stretch: 115%; font-weight: 700; overflow-wrap: anywhere; }
.q3-card-title:focus { outline: none; }
.q3-card-desc { margin: 0; font-size: 14px; color: var(--q3-ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.q3-stamps { grid-area: stamps; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
/* a narrow sheet: the stamps go under the name (after the base rules, so they win) */
@container (max-width: 380px) {
    .q3-card-top { grid-template-columns: 64px minmax(0, 1fr); grid-template-areas: "thumb id" "thumb stamps"; }
    .q3-stamps { justify-content: flex-start; margin-top: 6px; }
}
.q3-card .q3-slug { margin: 14px 0 0; padding-top: 10px; border-top: 1px solid var(--q3-hair); }
.q3-card-unread { margin: 8px 0 0; font-size: 13.5px; font-weight: 600; }
.q3-card-unread::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--q3-key); margin-inline-end: 6px; vertical-align: 1px; }
.q3-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 12px 0 0; }
.q3-card-actions .q3-btn--quiet { padding: 0 7px; }
/* the quiet group (Copy link, Pause, Delete) sits at the end of the row, or on a row of its own */
.q3-card-more { display: flex; flex-wrap: wrap; gap: 2px; margin-inline-start: auto; }
.q3-btn--quiet-danger { text-decoration-color: var(--q3-rule); }
.q3-btn--quiet-danger:hover { background: var(--q3-magenta); color: #fff; text-decoration-color: #fff; }

/* a status stamp: a rubber stamp, two rules, slightly off square */
.q3-stamp {
    display: inline-block;
    padding: 2px 8px 1px;
    border: 1.5px solid currentColor;
    border-radius: 3px;
    font-size: 12.5px;
    line-height: 1.4;
    font-weight: 700;
    font-stretch: 110%;
    white-space: nowrap;
    transform: rotate(-2.5deg);
    font-variant-numeric: tabular-nums;
}
.q3-stamp--live { color: var(--q3-key); border-color: var(--q3-cyan); background: var(--q3-cyan-tint); box-shadow: inset 0 0 0 1px var(--q3-cyan); }
.q3-stamp--paused { color: var(--q3-key); background: rgba(29, 29, 27, .06); }
.q3-stamp--soon { color: var(--q3-ink-2); border-style: dashed; }
.q3-stamp--ended { color: var(--q3-ink-2); text-decoration: line-through; text-decoration-thickness: 1px; }
.q3-stamp--private { color: var(--q3-sheet); background: var(--q3-key); border-color: var(--q3-key); }
.q3-ab { display: inline-flex; transform: rotate(-2.5deg); }
.q3-ab span { display: inline-block; min-width: 20px; padding: 1px 4px; font-size: 12px; font-weight: 700; text-align: center; line-height: 1.5; }
.q3-ab-a { background: var(--q3-cyan); color: var(--q3-key); }
.q3-ab-b { background: var(--q3-magenta); color: #fff; mix-blend-mode: multiply; margin-inline-start: -3px; }

.q3-empty { max-width: 680px; padding: 28px 30px 30px; }
.q3-empty p { max-width: 58ch; }
.q3-empty .q3-btn { margin-top: 8px; }

/* codes made before: quiet, on the table itself */
.q3-legacy { margin: 44px 0 0; padding-top: 18px; border-top: 1px solid rgba(29, 29, 27, .3); }
.q3-legacy-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.q3-legacy-row {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    gap: 6px 14px;
    align-items: center;
    padding: 10px 12px;
    background: rgba(251, 251, 249, .55);
    border: 1px solid var(--q3-hair);
    border-radius: 2px;
}
.q3-legacy-qr { width: 56px; height: 56px; object-fit: contain; background: #fff; border: 1px solid var(--q3-hair); }
.q3-legacy-name { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.q3-legacy-id .q3-hint { margin: 2px 0 0; }
.q3-legacy-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }

/* ---------------------------------------------------------------- dialogs (confirm; the side sheet for stats) */
.q3-dialog { padding: 0; border: 0; background: transparent; color: var(--q3-key); max-width: min(560px, calc(100vw - 32px)); width: 100%; font-family: var(--q3-font); }
.q3-dialog::backdrop { background: rgba(29, 29, 27, .5); }
.q3-dialog-body { padding: 22px 24px 18px; }
.q3-dialog-body p { max-width: 52ch; }
.q3-dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.q3-dialog--sheet {
    margin: 0;
    margin-inline-start: auto;
    width: min(900px, 100vw);
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
}
.q3-sheet-panel { height: 100%; overflow: auto; border-radius: 0; padding: 20px 24px 32px; overscroll-behavior: contain; }
.q3-sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin: 0 0 16px; padding-bottom: 12px; border-bottom: 2px solid var(--q3-key); }
.q3-sheet-head .q3-h3 { margin: 0 0 2px; overflow-wrap: anywhere; }
@media (prefers-reduced-motion: no-preference) {
    .q3-dialog--sheet[open] .q3-sheet-panel { animation: q3-sheet-in .2s ease-out; }
    .q3-dialog--confirm[open] .q3-dialog-body { animation: q3-fade-in .14s ease-out; }
}
@keyframes q3-sheet-in { from { transform: translateX(28px); opacity: .4; } to { transform: none; opacity: 1; } }
[dir="rtl"] .q3-dialog--sheet[open] .q3-sheet-panel { animation-name: q3-sheet-in-rtl; }
@keyframes q3-sheet-in-rtl { from { transform: translateX(-28px); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes q3-fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- the editor: job ticket beside the proof */
.q3-editor-bar { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px 18px; margin: 0 0 18px; }
.q3-editor-bar .q3-btn--quiet { padding-inline-start: 0; }
.q3-editor-bar > div { min-width: 0; flex: 1; }
.q3-editor-bar .q3-h2 { overflow-wrap: anywhere; }
.q3-editor-bar .q3-h2:focus { outline: none; }
.q3-editor-slug { margin-top: 4px; }
.q3-editor-slug .q3-link { font-size: 13px; }
.q3-editor-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(340px, .88fr); gap: 24px; align-items: start; }
.q3-editor-grid.is-loading { opacity: .55; pointer-events: none; }
.q3-side { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }

.q3-ticket { padding: 6px 26px 22px; min-width: 0; }
.q3-steps { list-style: none; margin: 0; padding: 0; }
.q3-step { border-bottom: 1px solid var(--q3-key); }
.q3-step-h { margin: 0; font: inherit; }
.q3-step-head {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    grid-template-areas: "num title" "num sum";
    column-gap: 14px;
    align-items: center;
    width: 100%;
    min-height: 72px;
    padding: 14px 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: start;
    cursor: pointer;
}
.q3-step-num {
    grid-area: num;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--q3-key);
    font-size: 26px;
    line-height: 1;
    font-weight: 800;
    font-stretch: 125%;
    font-variant-numeric: tabular-nums;
}
.q3-step.is-open .q3-step-num { background: var(--q3-cyan); border-color: var(--q3-cyan); }
.q3-step-head:hover .q3-step-num { background: var(--q3-cyan-tint); }
.q3-step.is-open .q3-step-head:hover .q3-step-num { background: var(--q3-cyan); }
.q3-step-title { grid-area: title; font-size: 21px; line-height: 1.15; align-self: end; }
.q3-step-sum { grid-area: sum; display: block; align-self: start; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q3-step-body { padding: 4px 0 26px; padding-inline-start: 68px; }
.q3-step-next { margin-top: 22px; }

/* fields */
.q3-field { margin: 0 0 14px; min-width: 0; }
.q3 input[type="text"], .q3 input[type="url"], .q3 input[type="email"], .q3 input[type="number"], .q3 input[type="datetime-local"],
.q3 select, .q3 textarea, .q3-textarea {
    display: block;
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid var(--q3-rule);
    border-radius: 4px;
    background: #fff;
    color: var(--q3-key);
    font: inherit;
    font-size: 15.5px;
    line-height: 1.4;
}
.q3 textarea { resize: vertical; min-height: 76px; }
.q3 input[aria-invalid="true"], .q3 textarea[aria-invalid="true"] { border-color: var(--q3-error); box-shadow: inset 0 0 0 1px var(--q3-error); }
.q3 input[type="color"] { display: block; width: 100%; height: 40px; padding: 3px; border: 1px solid var(--q3-rule); border-radius: 4px; background: #fff; cursor: pointer; }
.q3 input[type="file"] { display: block; width: 100%; max-width: 100%; font: inherit; font-size: 14px; color: var(--q3-ink-2); }
.q3 input[type="file"]::file-selector-button {
    margin-inline-end: 12px; min-height: 40px; padding: 0 14px; border: 1px solid var(--q3-key); border-radius: 6px;
    background: var(--q3-sheet); color: var(--q3-key); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
}
.q3 input[type="file"]::file-selector-button:hover { background: var(--q3-cyan-tint); }
.q3 input[type="checkbox"], .q3 input[type="radio"] { accent-color: var(--q3-key); width: 18px; height: 18px; margin: 0; flex: none; }
.q3-range { display: block; width: 100%; accent-color: var(--q3-key); }
.q3-num { max-width: 96px; }
.q3-check { display: grid; grid-template-columns: 18px minmax(0, 1fr); column-gap: 10px; align-items: start; margin: 0 0 12px; }
.q3-check > input { margin-top: 3px; }
.q3-check > label { font-weight: 500; cursor: pointer; }
.q3-check > .q3-hint, .q3-check > .q3-err { grid-column: 2; margin-top: 0; }
.q3-radios { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.q3-radios > legend { padding: 0; }
.q3-radios-row { display: flex; flex-wrap: wrap; gap: 8px; }
.q3-radio { display: flex; align-items: center; gap: 9px; min-height: 42px; padding: 7px 12px; border: 1px solid var(--q3-rule); border-radius: 6px; background: #fff; }
.q3-radio label { cursor: pointer; font-weight: 500; }
.q3-radio:has(input:checked) { border-color: var(--q3-cyan); box-shadow: inset 0 0 0 1px var(--q3-cyan); background: var(--q3-cyan-tint); }
.q3-group { border: 0; border-top: 1px solid var(--q3-hair); margin: 22px 0 0; padding: 16px 0 2px; min-width: 0; }
.q3-group > legend { float: inline-start; width: 100%; padding: 0; margin: 0 0 6px; font-size: 16px; font-weight: 700; font-stretch: 115%; }
/* every box after the floated legend clears it (the first one may be a hidden note) */
.q3-group > legend ~ * { clear: both; }
.q3-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
.q3-cols--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.q3-progress { display: flex; align-items: center; gap: 10px; margin: 8px 0; }
.q3-progress progress { flex: 1; height: 6px; border: 0; border-radius: 0; background: rgba(29, 29, 27, .12); -webkit-appearance: none; appearance: none; accent-color: var(--q3-cyan); }
.q3-progress progress::-webkit-progress-bar { background: rgba(29, 29, 27, .12); }
.q3-progress progress::-webkit-progress-value { background: var(--q3-cyan); }
.q3-progress progress::-moz-progress-bar { background: var(--q3-cyan); }
.q3-progress-text { font-size: 13px; font-stretch: 75%; font-weight: 500; color: var(--q3-ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* step 1: models. A is the cyan plate, B the magenta plate. */
.q3-model { margin: 0 0 6px; padding-inline-start: 0; }
.q3-steps.has-b .q3-model { padding-inline-start: 14px; border-inline-start: 4px solid var(--q3-cyan); }
.q3-steps.has-b .q3-model--b { border-inline-start-color: var(--q3-magenta); margin-top: 22px; }
.q3-plate-label { margin-top: 4px; }
.q3-steps:not(.has-b) .q3-model--a > .q3-plate-label { display: none; }
.q3-model-ab { display: inline-block; padding: 1px 8px; font-size: 14px; }
.q3-model--a .q3-model-ab { background: var(--q3-cyan); color: var(--q3-key); }
.q3-model--b .q3-model-ab { background: var(--q3-magenta); color: #fff; }
.q3-current { margin: 4px 0 8px; padding: 10px 12px; background: #fff; border: 1px solid var(--q3-hair); }
.q3-current-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0; }
.q3-file-name { overflow-wrap: anywhere; }
.q3-src-panel { margin: 4px 0 6px; }
.q3-report { margin: 14px 0 6px; }
.q3-report-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 0; border-top: 1px solid var(--q3-key); }
.q3-report-list > div { padding: 7px 10px 8px 0; border-bottom: 1px solid var(--q3-hair); min-width: 0; }
.q3-report-list dt { font-size: 12.5px; font-stretch: 75%; font-weight: 500; color: var(--q3-ink-2); }
.q3-report-list dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.q3-lighter, .q3-usdz, .q3-thumb { margin: 14px 0 0; }
.q3-before-after { margin: 6px 0 2px; font-weight: 600; font-variant-numeric: tabular-nums; }
.q3-slug-list { margin: 2px 0 0; padding-inline-start: 18px; font-size: 13px; color: var(--q3-ink-2); }
.q3-thumb-row { display: flex; align-items: center; gap: 12px; }
.q3-thumb-img { width: 72px; height: 72px; object-fit: contain; background: #fff; border: 1px solid var(--q3-hair); }
.q3-addb { margin: 22px 0 0; padding-top: 14px; border-top: 1px dashed rgba(29, 29, 27, .3); }
.q3-split { margin: 12px 0 4px; }
.q3-split .q3-field { margin-bottom: 4px; }
.q3-split-out { display: block; font-weight: 700; font-variant-numeric: tabular-nums; }
.q3-versona-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
.q3-consent { padding: 10px 12px; border: 1px solid var(--q3-key); background: #fff; }
.q3-consent > label { font-weight: 600; }

/* step 2: hotspots, narration, poster */
.q3-hs-list { list-style: none; margin: 4px 0 0; padding: 0; }
.q3-hs { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 10px 0; border-top: 1px solid var(--q3-hair); }
.q3-hs-num, .q3-pin {
    display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%;
    background: var(--q3-key); color: var(--q3-sheet); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.q3-hs-fields .q3-field { margin-bottom: 8px; }
.q3-hs .q3-btn { margin-top: 26px; }
.q3-pin { border: 2px solid var(--q3-sheet); box-shadow: 0 1px 3px rgba(0, 0, 0, .35); padding: 0; cursor: pointer; font-family: var(--q3-font); }
.q3-audio { display: block; width: 100%; margin: 8px 0 4px; }
.q3-poster { margin-top: 6px; }
.q3-poster-img { display: block; max-width: 220px; margin: 10px 0; border: 1px solid var(--q3-hair); box-shadow: var(--q3-shadow); }

/* step 3: the page, its mock, the iPhone banner mock, actions */
.q3-brand { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: start; margin: 8px 0 0; }
.q3-mock-fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.q3-scanmock {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 188px;
    aspect-ratio: 9 / 17;
    padding: 12px;
    border: 7px solid #1d1d1b;
    border-radius: 22px;
    overflow: hidden;
    background: #000;
    color: #fff;
    font-family: var(--q3-font);
}
.q3-mock-logo { position: absolute; top: 10px; inset-inline-start: 10px; max-width: 60px; max-height: 24px; object-fit: contain; }
.q3-mock-model { flex: 1; min-height: 0; width: 100%; object-fit: contain; margin-top: 26px; }
.q3-mock-model--none { background: radial-gradient(closest-side, rgba(255, 255, 255, .18), transparent); }
.q3-mock-sheet { display: flex; flex-direction: column; gap: 4px; }
.q3-mock-name { margin: 0; font-size: 13px; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.q3-mock-desc { margin: 0; font-size: 10px; line-height: 1.3; opacity: .82; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.q3-mock-btn { display: block; margin-top: 4px; padding: 6px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 700; text-align: center; }
.q3-mock-acts { display: flex; flex-wrap: wrap; gap: 4px; }
.q3-mock-act { padding: 2px 7px; border: 1px solid; border-radius: 999px; font-size: 9px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q3-group .q3-mock-fig { align-items: stretch; margin-top: 6px; }
.q3-banner-mock {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    max-width: 380px; padding: 18px 14px 14px; border-radius: 4px;
    background: linear-gradient(180deg, #5d6162 0%, #3c3f40 100%);
    font-family: -apple-system, 'SF Pro Text', system-ui, sans-serif;
}
.q3-banner-mock { position: relative; }
.q3-banner-mock::before { content: ''; position: absolute; inset: auto 10px 10px; height: calc(100% - 28px); border-radius: 13px; background: rgba(255, 255, 255, .96); }
.q3-bm-text, .q3-bm-btn { position: relative; }
.q3-bm-text { min-width: 0; padding-inline-start: 12px; }
.q3-bm-text p { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q3-bm-title { font-size: 14px; font-weight: 600; color: #1d1d1f; }
.q3-bm-sub { font-size: 12px; color: #6e6e73; }
.q3-bm-price { font-size: 12px; font-weight: 600; color: #1d1d1f; }
.q3-bm-btn { flex: none; margin-inline-end: 12px; padding: 6px 14px; border-radius: 999px; background: #0071e3; color: #fff; font-size: 13px; font-weight: 600; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q3-banner-mock .is-empty { opacity: .4; }
.q3-act-list { list-style: none; margin: 4px 0 0; padding: 0; }
.q3-act { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 10px 0 2px; border-top: 1px solid var(--q3-hair); }
.q3-act-fields { display: grid; grid-template-columns: 150px minmax(0, 1fr) minmax(0, 1.4fr); column-gap: 12px; }
.q3-act .q3-btn { margin-top: 26px; }

/* step 5: the look */
.q3-look { margin: 0 0 6px; }
.q3-look > output { display: block; margin: -8px 0 16px; }
.q3-status--local { margin: 10px 0 0; }
.q3-size { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.q3-size .q3-num { margin-bottom: 14px; }
.q3-print-out .q3-row { margin: 6px 0 10px; }

/* the foot of the ticket */
.q3-foot { margin-top: 2px; padding-top: 18px; }
.q3-foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.q3-foot-note { margin: 0; max-width: 46ch; font-size: 14.5px; color: var(--q3-ink-2); }
.q3-foot-err { margin: 0 0 14px; padding: 10px 14px; border-inline-start: 4px solid var(--q3-error); background: #fff; color: var(--q3-error); }
.q3-foot-err p { margin: 0 0 6px; font-weight: 600; }

/* ---------------------------------------------------------------- the plate: the live model */
.q3-plate { padding: 14px 16px 12px; border-top: 6px solid var(--q3-cyan); }
.q3-plate--b { border-top-color: var(--q3-magenta); }
.q3-plate-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.q3-plate-head .q3-h4 { margin: 0; }
.q3-plate-tabs { display: inline-flex; gap: 0; }
.q3-plate-tab { min-height: 32px; padding: 0 10px; border: 1px solid var(--q3-key); background: var(--q3-sheet); color: var(--q3-key); font: inherit; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer; }
.q3-plate-tab--a { border-start-start-radius: 6px; border-end-start-radius: 6px; }
.q3-plate-tab--b { border-start-end-radius: 6px; border-end-end-radius: 6px; margin-inline-start: -1px; }
.q3-plate-tab--a[aria-pressed="true"] { background: var(--q3-cyan); border-color: var(--q3-cyan); }
.q3-plate-tab--b[aria-pressed="true"] { background: var(--q3-magenta); border-color: var(--q3-magenta); color: #fff; }
.q3-mv-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    background:
        linear-gradient(rgba(29, 29, 27, .05) 1px, transparent 1px) 0 0 / 24px 24px,
        linear-gradient(90deg, rgba(29, 29, 27, .05) 1px, transparent 1px) 0 0 / 24px 24px,
        #f1f2f1;
    border: 1px solid var(--q3-hair);
}
.q3-mv { display: block; width: 100%; height: 100%; --poster-color: transparent; background: transparent; }
.q3-plate.is-placing .q3-mv-wrap { outline: 2px dashed var(--q3-cyan); outline-offset: -6px; }
.q3-plate.is-placing .q3-mv { cursor: crosshair; }
.q3-plate-note { margin: 8px 0 0; font-size: 13px; color: var(--q3-ink-2); }

/* ---------------------------------------------------------------- the proof */
.q3-proof { position: relative; padding: 14px 16px 14px; }
.q3-proof-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.q3-proof-head .q3-h4 { margin: 0; }
.q3-stage-wrap { display: flex; justify-content: center; overflow: auto; padding: 4px 0; }
.q3-proof.is-actual .q3-stage-wrap { justify-content: flex-start; }
.q3-stage { position: relative; flex: none; }
.q3-marks { position: absolute; inset: 0; overflow: visible; }
.q3-trim { position: absolute; background: #fff; }
.q3-code, .q3-plates { position: absolute; inset: 0; }
.q3-code > canvas, .q3-code > svg, .q3-code > img { display: block; width: 100% !important; height: 100% !important; max-width: none !important; }
.q3-code .q3-err { padding: 8px; font-size: 13px; }
.q3-plates { display: none; pointer-events: none; }
.q3-plate-ink { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: multiply; }
.q3-trim.is-registering .q3-plates { display: block; }
.q3-trim.is-registering .q3-code { opacity: 0; }
.q3-trim.is-registering .q3-plate-ink--c { animation: q3-reg-c .6s cubic-bezier(.2, .9, .3, 1.15) both; }
.q3-trim.is-registering .q3-plate-ink--m { animation: q3-reg-m .6s .12s cubic-bezier(.2, .9, .3, 1.15) both; }
.q3-trim.is-registering .q3-plate-ink--k { animation: q3-reg-k .6s .24s cubic-bezier(.2, .9, .3, 1.15) both; }
@keyframes q3-reg-c { from { transform: translate(-7px, 5px); opacity: .6; } 70% { transform: translate(.6px, -.4px); opacity: 1; } to { transform: none; } }
@keyframes q3-reg-m { from { transform: translate(6px, -5px); opacity: .6; } 70% { transform: translate(-.5px, .4px); opacity: 1; } to { transform: none; } }
@keyframes q3-reg-k { from { transform: translate(3px, 6px); opacity: 0; } 70% { transform: translate(0, -.5px); opacity: 1; } to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
    .q3 *, .q3 *::before, .q3 *::after { animation: none !important; transition: none !important; }
    .q3-trim.is-registering .q3-plates { display: none; }
    .q3-trim.is-registering .q3-code { opacity: 1; }
}
.q3-stage-box { position: relative; }
.q3-okstamp {
    position: absolute;
    bottom: 2px;
    inset-inline-end: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px 12px 4px;
    margin: 0;
    border: 2.5px solid var(--q3-key);
    border-radius: 4px;
    box-shadow: inset 0 0 0 2px var(--q3-sheet), inset 0 0 0 3px var(--q3-key);
    background: rgba(251, 251, 249, .82);
    transform: rotate(-7deg);
    pointer-events: none;
}
.q3-okstamp-main { font-size: 17px; line-height: 1.1; font-weight: 800; font-stretch: 125%; }
.q3-okstamp-sub { font-size: 10.5px; font-weight: 500; font-stretch: 75%; font-variant-numeric: tabular-nums; }
.q3-proof-slug { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 8px; padding-top: 9px; border-top: 1px solid var(--q3-rule); }
.q3-proof-slug .q3-slug { flex: 1; min-width: 0; }
.q3-slug-addr { overflow-wrap: anywhere; }
.q3-colorbar { display: inline-flex; flex: none; border: 1px solid var(--q3-hair); }
.q3-colorbar i { display: block; width: 13px; height: 13px; }
.q3-cb-c { background: #009fe3; } .q3-cb-m { background: #e5007d; } .q3-cb-y { background: #ffe500; } .q3-cb-k { background: #1d1d1b; }
.q3-cb-c50 { background: #80cff1; } .q3-cb-m50 { background: #f280be; } .q3-cb-y50 { background: #fff280; } .q3-cb-k50 { background: #8e8e8d; }
.q3-checks .q3-warnings, .q3-checks .q3-note { margin: 10px 0 0; }

/* ---------------------------------------------------------------- narrow screens: one column, the model first */
@media (max-width: 1000px) {
    .q3-editor-grid { grid-template-columns: minmax(0, 1fr); }
    .q3-side { display: contents; }
    .q3-plate { order: -1; }
    .q3-plate:not(.has-model) { display: none; }
    .q3-ticket { order: 0; }
    .q3-proof { order: 1; }
}
@media (max-width: 720px) {
    .q3 { padding: 68px 16px 40px; font-size: 15px; }
    .q3-lead { font-size: 16px; }
    .q3-head-actions { width: 100%; }
    .q3-head-actions .q3-btn { flex: 1 1 auto; }
    .q3-ticket { padding: 2px 16px 18px; }
    .q3-step-head { grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; min-height: 64px; }
    .q3-step-num { width: 38px; height: 38px; font-size: 21px; }
    .q3-step-title { font-size: 18.5px; }
    .q3-step-body { padding-inline-start: 0; }
    .q3-cols, .q3-cols--3 { grid-template-columns: minmax(0, 1fr); }
    .q3-brand { grid-template-columns: minmax(0, 1fr); }
    .q3-mock-fig { align-items: center; }
    .q3-act-fields { grid-template-columns: minmax(0, 1fr); }
    .q3-act .q3-btn, .q3-hs .q3-btn { margin-top: 0; }
    .q3-act { grid-template-columns: minmax(0, 1fr); }
    .q3-legacy-row { grid-template-columns: 48px minmax(0, 1fr); }
    .q3-legacy-qr { width: 48px; height: 48px; }
    .q3-legacy-actions { grid-column: 1 / -1; justify-content: flex-start; }
    .q3-sheet-panel { padding: 16px 16px 28px; }
    .q3-dialog-body { padding: 18px 16px 16px; }
    .q3-okstamp { bottom: 0; inset-inline-end: 0; }
    .q3-foot-row .q3-btn--big { width: 100%; }
}

/* ---------------------------------------------------------------- touch screens: 44 px targets */
@media (pointer: coarse) {
    .q3-btn, .q3-btn--small, .q3-plate-tab { min-height: 44px; }
    .q3 input[type="text"], .q3 input[type="url"], .q3 input[type="email"], .q3 input[type="number"], .q3 input[type="datetime-local"],
    .q3 select, .q3 input[type="color"] { min-height: 44px; }
    .q3 input[type="file"]::file-selector-button { min-height: 44px; }
    .q3 input[type="checkbox"], .q3 input[type="radio"] { width: 24px; height: 24px; }
    .q3-check { grid-template-columns: 24px minmax(0, 1fr); }
    .q3-check > input { margin-top: 10px; }
    .q3-check > label { display: flex; align-items: center; min-height: 44px; }
    .q3-radio { min-height: 48px; }
    .q3-pin { width: 36px; height: 36px; }
}
