/* Create page layout: one design tool at a time, and a pinned preview on phones.
   Presentation only. QR cells, colours and export canvases keep their own rendering. */

.create-sr-only {
  position: absolute !important; width: 1px; height: 1px; margin: -1px !important; padding: 0 !important;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* Header: sign-in sits beside the navigation. */
body.authoring-create .px-app-header__inner { flex-wrap: wrap; gap: 8px 16px; }
body.authoring-create .px-app-nav { margin-left: auto; }
body.authoring-create .px-app-header .auth-bar {
  display: flex; align-items: center; flex: 0 0 auto; gap: 0; margin: 0; padding: 0; border: 0; min-height: 0;
}
body.authoring-create .px-app-header .google-btn {
  min-height: 40px; padding: 6px 12px; border: 1px solid var(--px-line); border-radius: var(--px-radius);
  font: 600 13px/1.4 var(--px-font); white-space: nowrap;
}
body.authoring-create .px-app-header .qr-codes-link { min-height: 40px; font: 600 13px/1.4 var(--px-font); }

/* Page frame. */
.authoring-create .container {
  grid-template-areas: 'title title' 'form preview'; gap: 16px 32px; padding-top: 24px;
}
.authoring-create .authoring-intro h1 { margin: 0; font-size: clamp(22px, 2.6vw, 30px); }
.authoring-create .authoring-section { padding: 20px; margin-bottom: 16px; }
.authoring-create .authoring-section-heading { margin-bottom: 14px; }
.authoring-create .authoring-section-heading h2 { font-size: 18px; }
.authoring-create .authoring-section .form-group:last-child { margin-bottom: 0; }
.authoring-create #createDesignGuidance:not([hidden]) {
  margin-top: 10px; padding: 10px 12px; border-left: 3px solid #a33b00; background: #fff5e9; color: #542b16;
}

/* Setup: the two starting points share one row. */
.authoring-create .create-mode-switch { flex-wrap: nowrap !important; }
.authoring-create .create-mode-switch > button {
  flex: 1 1 0; min-width: 0; justify-content: center; text-align: center; padding: 10px 8px !important;
}
.authoring-create #createModeSection { margin-bottom: 16px; }
.authoring-create #gs1Section > .form-label { display: block; }

/* Design tools: a switcher, with one panel on screen. */
.authoring-create .authoring-tool-nav {
  display: flex; flex-wrap: nowrap; gap: 4px; margin: 0 0 18px; padding: 4px;
  border-radius: var(--px-radius-panel); background: var(--px-canvas);
}
.authoring-create .authoring-tool-nav button {
  flex: 1 1 0; min-width: 0; min-height: 44px; padding: 8px 6px; border: 0; border-radius: var(--px-radius);
  background: transparent; color: var(--px-muted); font: 650 14px/1.4 var(--px-font);
  white-space: nowrap; cursor: pointer;
}
.authoring-create .authoring-tool-nav button:hover { color: var(--px-ink); }
.authoring-create .authoring-tool-nav button[aria-pressed='true'] {
  background: var(--px-surface); color: var(--px-accent); box-shadow: 0 0 0 1px var(--px-line);
}
.authoring-create .authoring-tool-nav button[hidden] { display: none; }
.authoring-create .authoring-tool-nav button:focus-visible { outline: 3px solid var(--px-focus); outline-offset: 2px; }

body[data-create-tool] [data-create-panel]:not(.is-active-tool) { display: none !important; }
body[data-create-tool] [data-create-panel] { margin-top: 0; padding-top: 0; border-top: 0; }
body[data-create-tool] details[data-create-panel] > summary,
body[data-create-tool] #createStyleControls > details > summary { display: none; }

/* Panels sit directly on the card; no boxes inside boxes. */
body[data-create-tool] #createBrandTool .brand-workbench { padding-top: 0; }
body[data-create-tool] #createBrandTool .brand-brief { padding: 0; border: 0; border-radius: 0; background: transparent; }
body[data-create-tool] #createBrandTool #brandEditManually { display: none; }
body[data-create-tool] #createBrandTool h3,
body[data-create-tool] #createLogoTool h3 { margin: 0 0 4px; font-size: 16px; letter-spacing: 0; }
body[data-create-tool] #createLogoTool { margin: 0; padding: 0; border: 0; border-radius: 0; }
body[data-create-tool] #createStyleControls > details { margin: 0; padding: 0; border: 0; }
/* Until there are designs to compare, the exploration column holds only its status line. */
#createBrandTool .brand-exploration:has(#brandEmpty:not([hidden])) :is(.brand-exploration-heading, #brandEmpty, .brand-check-note) { display: none; }
/* The status line is a live region: it stays rendered, and takes no room while empty. */
#createBrandTool .brand-status:empty { min-height: 0; margin: 0; }
/* The options grid fits as many columns as the space allows, whatever the workbench state. */
body.authoring-create[data-create-tool] #createBrandTool .brand-exploration .brand-result-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
body[data-create-tool] #createBrandTool details > summary { font-size: 14px; font-weight: 600; }
/* Exploring keeps the page's two columns, so the working design stays beside the options. */
@media (min-width: 901px) {
  body.authoring-create.brand-workbench-open .container {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 420px); grid-template-areas: 'title title' 'form preview';
  }
  body.authoring-create.brand-workbench-open .preview-section { position: sticky; max-width: none; justify-self: stretch; }
  body.authoring-create.brand-workbench-open #createBrandTool .brand-workbench { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 1180px) {
  body[data-create-tool='brand'] #createBrandTool .brand-workbench:not(:has(#brandEmpty:not([hidden]))) {
    grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
  }
}

/* The keyboard hint for the template list appears when the keyboard is in the list. */
.authoring-create .create-key-hint {
  position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.authoring-create #authoringTemplates:has(#snippetGrid :focus-visible) .create-key-hint {
  position: static; width: auto; height: auto; margin: 0; overflow: visible; clip-path: none; white-space: normal;
}

/* A tool that cannot be used on this draft stays reachable and reads as secondary. */
.authoring-create .authoring-tool-nav button.is-unavailable:not([aria-pressed='true']) { font-weight: 400; }
.authoring-create .authoring-hint a { color: var(--px-accent); }
body[data-create-tool] #createLogoTool .form-label { display: block; margin-top: 12px; }

/* GS1 setup: the product number and Generate lead; the rest is one row away. */
.authoring-create #gs1Section #generateGs1PreviewBtn { flex: 1 1 auto; justify-content: center; min-height: 44px; }
.authoring-create .gs1-settings-panel { margin-top: 12px; padding: 0 12px; border: 1px solid var(--px-line); border-radius: var(--px-radius-panel); }
.authoring-create .gs1-settings-panel[open] { padding-bottom: 12px; }
.authoring-create .gs1-settings-panel > summary { padding: 11px 0; color: var(--px-ink); font: 600 14px/1.5 var(--px-font); cursor: pointer; }
.authoring-create .gs1-settings-panel > summary:focus-visible { outline: 3px solid var(--px-focus); outline-offset: 2px; }
.authoring-create .gs1-settings-panel > div[style*='grid-template-columns'] { grid-template-columns: minmax(0, 1fr) !important; }
.authoring-create .gs1-encoder-choice label { display: block; margin-bottom: 6px; font: 600 14px/1.5 var(--px-font); }
.authoring-create .gs1-encoder-choice select {
  width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid var(--px-line); border-radius: var(--px-radius);
  background: var(--px-surface); color: var(--px-ink); font: 16px/1.4 var(--px-font);
}
.authoring-create .gs1-encoder-choice p { margin: 6px 0 0; color: var(--px-muted); font-size: 13px !important; line-height: 1.5; }

/* Layer controls under the preview. */
.authoring-create .entity-selector :is([class*='entity-selector__'], .entity-chip) {
  font-family: var(--px-font); font-size: 13px !important; line-height: 1.4; letter-spacing: 0; text-transform: none;
}

/* Preview card: status and Save or Activate first, Studio second. */
.authoring-create .preview-card { padding: 20px; }
.authoring-create .preview-card__footer {
  display: flex; flex-direction: column; gap: 10px; margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--px-line); background: none;
}
.authoring-create .preview-card__footer > * { margin-top: 0 !important; margin-bottom: 0 !important; }
.authoring-create .preview-card__footer .preview-actions:not(:has(> button:not([style*='display: none']))) { display: none; }
.authoring-create .preview-card__footer .authoring-primary.editor-transfer-link {
  border: 1px solid var(--px-accent); background: var(--px-surface); color: var(--px-accent);
}
.authoring-create .preview-card__footer .authoring-primary.editor-transfer-link:hover { background: var(--px-accent-soft); color: var(--px-accent); }
.authoring-create .studio-transfer-note > summary {
  padding: 10px 0; color: var(--px-muted); font: 500 13px/1.5 var(--px-font); cursor: pointer;
}
.authoring-create .studio-transfer-note > summary:focus-visible { outline: 3px solid var(--px-focus); outline-offset: 2px; }
.authoring-create .studio-transfer-note > p { margin: 0 0 6px; }
.authoring-create .preview-note { text-align: left; font-size: 13px; }
.authoring-create .preview-note strong { display: inline; margin: 0 6px 0 0; font-size: 13px; }

/* No text below 12px anywhere in the workspace. */
.authoring-create :is(#gs1Section, #authoringColours, #textInputSection, #importQrModal, .preview-card) :is(div, span, label, p, button, select, input)[style*='font-size: 0.4'],
.authoring-create :is(#gs1Section, #authoringColours, #textInputSection, #importQrModal, .preview-card) :is(div, span, label, p, button, select, input)[style*='font-size: 0.5'],
.authoring-create :is(#gs1Section, #authoringColours, #textInputSection, #importQrModal, .preview-card) :is(div, span, label, p, button, select, input)[style*='font-size: 0.6'] {
  font-size: 13px !important; line-height: 1.5 !important;
}
.authoring-create .text-constraints-toggle, .authoring-create .text-constraints-toggle span { font-size: 13px !important; }

/* On wider screens the code's wrapper has no box of its own. */
.authoring-create .qr-pin { display: contents; }

@media (max-width: 900px) {
  /* The jump bar is gone: the preview is pinned instead. */
  body.authoring-create { padding-bottom: 0; }
  html:has(body.authoring-create) { scroll-padding-top: calc(clamp(132px, 44vw, 208px) + 32px); }
  .authoring-create .container { gap: 14px; padding: 14px 16px 32px; }
  .authoring-create :is(.form-section, .preview-section, .preview-card, .preview-card__body) { display: contents; }
  /* Every control keeps its keyboard order: setup, tools, then the preview's own controls and the actions.
     Only the code itself, which takes no focus, moves up. */
  .authoring-create .authoring-intro { order: 0; }
  .authoring-create .qr-pin { order: 1; }
  .authoring-create #authoring-setup { order: 2; }
  .authoring-create .preview-card > .authoring-section-heading { order: 3; }
  .authoring-create #authoring-design { order: 4; }
  .authoring-create .preview-card__footer { order: 6; }
  .authoring-create :is(#gs1VerificationPanel, #gs1VerificationLiveStatus) { order: 7; }
  .authoring-create .authoring-section { margin-bottom: 0; padding: 16px; }

  /* The code stays in view while the tools scroll beneath it. The band is a real box,
     so a tap beside the code stops there and cannot reach a control underneath. */
  .authoring-create .qr-pin {
    display: flex; flex-direction: column; align-items: center; position: sticky; top: 0; z-index: 40;
    margin: 0 -16px; padding: 8px 16px 10px; background: var(--px-canvas); border-bottom: 1px solid var(--px-line);
  }
  .authoring-create #qrPreview { flex: 0 0 auto; width: clamp(132px, 44vw, 208px); height: auto; aspect-ratio: 1; margin: 0; }

  /* Under the code: a caption only while it is the example. */
  .authoring-create .preview-card > .authoring-section-heading { margin: -6px 0 0; padding: 0; text-align: center; }
  .authoring-create .preview-card > .authoring-section-heading h2,
  .authoring-create #authoringPreviewStatus:not([data-state='example']),
  .authoring-create .preview-card > .authoring-section-heading:has(#authoringPreviewStatus:not([data-state='example'])) {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
  .authoring-create #authoringPreviewStatus[data-state='example'] { margin: 0; font-size: 13px; }

  .authoring-create #maximizePreviewBtn {
    position: static; align-self: center; width: auto; height: auto; min-height: 44px; margin: 0; padding: 6px 12px;
    border: 0; background: transparent; color: var(--px-muted); font: 500 13px/1.4 var(--px-font); gap: 6px;
  }
  .authoring-create #maximizePreviewBtn::after { content: 'View large'; }
  .authoring-create #contentEntitySelector { width: 100%; margin-top: 0 !important; }

  .authoring-create .preview-card__footer {
    margin-top: 0; padding: 16px; border: 1px solid var(--px-line); border-radius: var(--px-radius-panel); background: var(--px-surface);
  }
  .authoring-create #authoring-review > #gs1VerificationPanel { margin-top: 0; }
}

/* A phone held sideways has no height to spare: the code scrolls with the page. */
@media (max-width: 900px) and (max-height: 520px) {
  html:has(body.authoring-create) { scroll-padding-top: 0; }
  .authoring-create .qr-pin { position: static; }
}

@media (max-width: 1100px) {
  /* Brand and sign-in share the first row; the links take the next row, and wrap when they do not all fit. */
  body.authoring-create .px-app-header__inner { justify-content: space-between; }
  body.authoring-create .px-app-nav {
    order: 3; flex: 1 0 100%; width: auto; margin-left: 0; flex-wrap: wrap; justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  body.authoring-create .px-app-header__inner { padding: 12px 16px; }
  body.authoring-create .px-brand { font-size: 17px; }
  body.authoring-create .px-brand img { width: 30px; height: 30px; }
  body.authoring-create .px-app-nav { gap: 8px; }
  /* Sign-in stays in view at every width: it is Create's primary action. It sits just before the Menu button. */
  body.authoring-create .px-app-header .auth-bar { order: 1; margin-left: auto; }
  body.authoring-create .px-app-header .px-app-menu-button { order: 2; margin-left: 0; }
  body.authoring-create .px-app-nav a { padding: 8px 9px; font-size: 13px; }
  .authoring-create .authoring-intro h1 { font-size: 20px; letter-spacing: -.4px; }
}

/* Under 480 px the brand, sign-in and Menu do not fit one row: sign-in takes its own row under them. */
@media (max-width: 479px) {
  body.authoring-create .px-app-header .px-app-menu-button { order: 1; margin-left: auto; }
  body.authoring-create .px-app-header .auth-bar { order: 4; flex: 0 0 100%; margin-left: 0; }
  /* At the row's start from the first paint, where it stays once the sign-in check has run. */
  body.authoring-create .px-app-header :is(#authLoggedOut, #authLoggedIn.visible) { justify-content: flex-start; }
}

/* Six tools need about 540px in a row: on phones, and beside the preview on small laptops, they take two rows of three. */
@media (max-width: 640px), (min-width: 901px) and (max-width: 1100px) {
  .authoring-create .authoring-tool-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* A code can open a contact or Wi-Fi page made on pixie.codes (create-page-destination.js). */
.hosted-page-offer, .hosted-page-note { margin: 8px 0 0; font-size: 14px; line-height: 1.6; color: var(--px-muted, #4B5563); overflow-wrap: anywhere; }
.hosted-page-offer[hidden], .hosted-page-note[hidden] { display: none; }
.link-button { display: inline; margin: 0; padding: 6px 2px; border: 0; background: none; color: var(--px-ink, #1A1A2E); font: inherit; font-weight: 650;
  text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.hosted-page-note a { color: var(--px-ink, #1A1A2E); font-weight: 650; padding: 6px 2px; }
.hosted-page-offer .link-button, .hosted-page-note .link-button, .hosted-page-note a { white-space: nowrap; }
.hosted-page-note p { margin: 0; }
.hosted-page-note .hosted-page-actions { display: flex; flex-wrap: wrap; gap: 0 16px; }
.link-button:focus-visible, .hosted-page-note a:focus-visible { outline: 3px solid var(--px-focus, #2563EB); outline-offset: 2px; }

/* Shared frame (November 21, 2026): Create on the site's grid, type and controls. Markup and behaviour are unchanged;
   where the page writes its own inline colours (the old navy, #1A1A2E), the rules below override them by state until
   create-int-5.html itself can change. */
.authoring-create .container { max-width: calc(var(--px-page) + 2 * var(--px-gutter)); padding-left: var(--px-gutter); padding-right: var(--px-gutter); }
.authoring-create .authoring-intro h1 { font-size: clamp(24px, 1.6vw + 14px, 32px); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; color: var(--px-ink); }
.authoring-create .authoring-section-heading h2 { font-weight: 600; letter-spacing: -0.01em; color: var(--px-ink); }
.authoring-create .form-input { border-color: var(--px-line-strong); border-radius: var(--px-radius); }
.authoring-create .form-input::placeholder { color: #6e766f; }
/* The starting point: one segmented control, as on Plans. The script marks the chosen part with aria-pressed. */
.authoring-create .create-mode-switch { gap: 4px !important; padding: 3px; border: 1px solid var(--px-line-strong); border-radius: calc(var(--px-radius) + 3px); background: var(--px-surface); }
.authoring-create .create-mode-switch > button { min-height: 40px !important; border: 0 !important; border-radius: var(--px-radius) !important; font: 500 15px/1.3 var(--px-font) !important; }
.authoring-create .create-mode-switch > button[aria-pressed='true'] { background: var(--px-ink) !important; color: #fff !important; }
.authoring-create .create-mode-switch > button[aria-pressed='false'] { background: transparent !important; color: var(--px-muted) !important; }
.authoring-create .create-mode-switch > button[aria-pressed='false']:hover { color: var(--px-ink) !important; }
/* The design tools: a quieter switcher under it. */
.authoring-create .authoring-tool-nav { padding: 3px; gap: 2px; border-radius: calc(var(--px-radius) + 3px); }
.authoring-create .authoring-tool-nav button { border-radius: var(--px-radius); font: 500 15px/1.4 var(--px-font); }
.authoring-create .authoring-tool-nav button[aria-pressed='true'] { color: var(--px-ink); box-shadow: 0 0 0 1px var(--px-line-strong); }
.authoring-create :is(.submit-btn, .add-to-qr-btn) { border-radius: var(--px-radius); font-weight: 500 !important; }
/* The shared footer and the notice, on the page's grid (the footer sits outside the page container). */
body.authoring-create > .create-footer { max-width: var(--px-page); margin: 48px max(var(--px-gutter), calc((100% - var(--px-page)) / 2)) 0 !important; padding: 16px 0 0 !important; }
body.authoring-create > .create-footer a { display: inline-flex; align-items: center; min-height: 44px; }
body.authoring-create > footer.create-footer + .trademark-notice { max-width: var(--px-page) !important; margin: 0 max(var(--px-gutter), calc((100% - var(--px-page)) / 2)) !important; padding: 8px 0 32px !important; text-align: left !important; color: var(--px-muted) !important; }
@media (max-width: 720px) {
  .authoring-create .authoring-intro h1 { font-size: 22px; letter-spacing: -0.01em; }
  .authoring-create .create-mode-switch > button { padding: 8px !important; font-size: 14px !important; }
  body.authoring-create > .create-footer { margin-top: 32px !important; }
}

/* Pass 2 (November 21, 2026): one job per screen. The form reads as a document on the page, its sections ruled rather
   than boxed; the code is the one white artboard, larger, and stays beside the form while it scrolls. */
@media (min-width: 901px) {
  .authoring-create .container { grid-template-columns: minmax(0, 1fr) minmax(400px, 480px); column-gap: 48px; }
  .authoring-create .form-section > .authoring-section { padding: 24px 0 32px; margin: 0; border: 0; border-top: 1px solid var(--px-line); border-radius: 0; background: transparent; }
  .authoring-create .form-section > .authoring-section:first-child { border-top: 2px solid var(--px-ink); }
  .authoring-create .authoring-section-heading h2 { font-size: 20px; }
  .authoring-create .preview-section { position: sticky; top: 24px; align-self: start; }
  .authoring-create .preview-card { padding: 24px; border-color: var(--px-line); }
  .authoring-create .preview-card .authoring-section-heading h2 { font-size: 17px; }
}
@media (max-width: 900px) {
  /* On phones the sections sit on the page too, divided by a rule; the pinned code band stays as it is. */
  .authoring-create .authoring-section { padding: 16px 0 24px; border: 0; border-top: 1px solid var(--px-line); border-radius: 0; background: transparent; }
  .authoring-create #authoring-setup { border-top: 0; padding-top: 4px; }
  .authoring-create .preview-card__footer { border-radius: var(--px-radius-panel); }
}


/* Rebuild (November 22, 2026): Create in the site's system, GS1 mode and phones first. One job per part: the product
   (a GTIN and Generate code) or where the code goes, then the design (the code large, then the text in it), then save
   and download. One button style: green for the step's main action, an outline for everything else. */

/* The headline follows the mode the page is in (create-int-5.html sets body[data-create-mode]). */
.authoring-create .create-title-gs1 { display: none; }
body.authoring-create[data-create-mode="gs1"] .create-title-creative { display: none; }
body.authoring-create[data-create-mode="gs1"] .create-title-gs1 { display: inline; }

/* The parts are numbered, so the order reads at a glance. */
.authoring-create .container { counter-reset: create-step; }
.authoring-create :is(#authoring-setup, #authoring-design) .authoring-section-heading h2::before,
.authoring-create .preview-card > .authoring-section-heading h2::before { counter-increment: create-step; content: counter(create-step) "  "; font: 500 13px/1 var(--px-mono); color: var(--px-accent); letter-spacing: 0.04em; white-space: pre; vertical-align: 0.2em; }

/* Buttons: one shape and one weight; filled green only for each part's main action. */
.authoring-create :is(.submit-btn, .add-to-qr-btn, .brand-primary, .preview-subtle-btn) {
  min-height: 44px; padding: 10px 16px !important; border: 1px solid var(--px-line-strong) !important; border-radius: var(--px-radius) !important;
  background: var(--px-surface) !important; color: var(--px-ink) !important; box-shadow: none !important;
  font: 500 15px/1.3 var(--px-font) !important; letter-spacing: 0 !important; text-transform: none !important;
}
.authoring-create :is(.submit-btn, .add-to-qr-btn, .brand-primary, .preview-subtle-btn):hover:not(:disabled) { border-color: var(--px-ink) !important; }
.authoring-create :is(#generateGs1PreviewBtn, #generateGs1Btn, #saveBtn, #activateBtn, .add-to-qr-btn, .brand-primary, .gs1-verifier-action--primary, #importQrProceedBtn) {
  background: var(--px-accent) !important; border-color: var(--px-accent) !important; color: #fff !important;
}
.authoring-create :is(#generateGs1PreviewBtn, #generateGs1Btn, #saveBtn, #activateBtn, .add-to-qr-btn, .brand-primary, .gs1-verifier-action--primary, #importQrProceedBtn):hover:not(:disabled) {
  background: var(--px-accent-strong) !important; border-color: var(--px-accent-strong) !important;
}
.authoring-create :is(.submit-btn, .add-to-qr-btn, .brand-primary):disabled { opacity: .55; cursor: not-allowed; }
/* The starting point keeps its segmented control (rules above), restated so the button rules do not reach it. */
.authoring-create .create-mode-switch > button { border: 0 !important; padding: 8px 12px !important; }
.authoring-create .create-mode-switch > button[aria-pressed='true'] { background: var(--px-ink) !important; color: #fff !important; }
.authoring-create .create-mode-switch > button[aria-pressed='false'] { background: transparent !important; color: var(--px-muted) !important; }
.authoring-create .brand-quiet { color: var(--px-accent); font: 500 15px/1.4 var(--px-font); }

/* GS1 product step: the GTIN field and Generate code in one row on wide screens, the button under it on phones. */
.authoring-create #gs1Section { margin-top: 16px !important; padding: 0 !important; border: 0 !important; background: transparent !important; }
.authoring-create #gs1Section > div[style*='grid-template-columns'] { grid-template-columns: minmax(0, 1fr) !important; }
.authoring-create #gs1Section div[style*='justify-content: flex-end'] { justify-content: flex-start !important; flex-wrap: wrap; }
.authoring-create #generateGs1PreviewBtn { min-width: 160px !important; }
.authoring-create #gs1GuestCreateOrganizationBtn { border: 0 !important; background: transparent !important; color: var(--px-accent) !important; padding: 10px 4px !important; text-decoration: underline; text-underline-offset: 3px; }
/* Notes: quiet text with a rule on the left, never a coloured box. */
.authoring-create :is(.create-note, #gs1ResourcePinNotice, #fixedDestinationNote) {
  margin: 8px 0 !important; padding: 2px 0 2px 12px !important; border: 0 !important; border-left: 2px solid var(--px-line-strong) !important;
  border-radius: 0 !important; background: transparent !important; font-size: 14px !important; line-height: 1.5 !important; color: var(--px-muted) !important;
}
.authoring-create #gs1ResourcePinNotice[style*="255, 246, 223"] { border-left-color: var(--px-warn-line) !important; color: var(--px-warn-ink) !important; }
/* A saved GS1 design reopened from its product page (the first script sets data-create-pinned): the notice keeps its room,
   unseen, from the first paint, so the GS1 fields don't grow 40 px when the page shows it (the Single walk of 923e67a2). */
body.authoring-create[data-create-mode='gs1'][data-create-pinned] #gs1ResourcePinNotice[style*='display: none'] { display: block !important; visibility: hidden; }
.authoring-create #createDesignGuidance:not([hidden]) { padding: 2px 0 2px 12px; border-left: 2px solid var(--px-warn-line); background: transparent; color: var(--px-warn-ink); }
.authoring-create .gs1-encoder-choice { margin-top: 16px !important; }
.authoring-create .gs1-encoder-choice p[id] { font-size: 14px !important; color: var(--px-muted); }
.authoring-create :is(.gs1-settings-panel, .gs1-advanced-panel) { border-color: var(--px-line) !important; background: transparent !important; box-shadow: none !important; }

/* Design step: in GS1 mode the code carries a brand name, so the marketing phrases (SCAN ME, MENU) step aside. */
body.authoring-create[data-create-mode="gs1"] #textInputSection .suggestion-chips { display: none; }
.authoring-create .suggestion-chips .text-chip { min-height: 40px; border: 1px solid var(--px-line) !important; border-radius: var(--px-radius) !important; background: var(--px-surface) !important; color: var(--px-ink) !important; box-shadow: none !important; font: 400 14px/1.3 var(--px-font) !important; }

/* Preview: the result card. */
.authoring-create .preview-note { color: var(--px-muted); }
.authoring-create #previewContextNoteTitle { color: var(--px-ink); font-weight: 600; }

/* Header on phones: the brand, Sign in and Menu on one row while the Menu button holds the links; without the menu
   (no JavaScript, or the script did not arrive) the links wrap onto their own rows as on every other page. The row
   stays one row with the Menu open too: the opened list lies over the page (workspace.css, November 28, 2026). */
@media (max-width: 720px) {
  :is(.px-menu-pending, .px-menu-ready) body.authoring-create .px-app-header__inner { flex-wrap: nowrap; }
  body.authoring-create .px-app-header .auth-bar { order: 1; flex: 0 0 auto; margin-left: auto; }
  body.authoring-create .px-app-header .px-app-menu-button { order: 2; margin-left: 0; }
  body.authoring-create .px-app-header .google-btn { min-height: 44px; padding: 6px 12px; gap: 8px; }
  body.authoring-create .px-app-header .google-btn-more { display: none; }
  body.authoring-create .px-brand img { width: 36px; height: 36px; }
  body.authoring-create .px-brand { font-size: 18px; }
}
@media (max-width: 479px) {
  body.authoring-create .px-app-header .px-app-menu-button { order: 2; margin-left: 0; }
  body.authoring-create .px-app-header .auth-bar { order: 1; flex: 0 0 auto; margin-left: auto; }
}
@media (max-width: 400px) {
  /* Room for a wider fallback font in the one header row. */
  body.authoring-create .px-app-header__inner { gap: 8px; }
  body.authoring-create .px-app-header .google-btn { padding: 6px 10px; gap: 6px; }
  :is(.px-menu-pending, .px-menu-ready) body.authoring-create .px-app-header .px-app-menu-button { padding: 8px 12px; }
}
@media (max-width: 359px) {
  /* The word mark gives way to Sign in and Menu; the logo and its name stay for screen readers. */
  body.authoring-create .px-brand-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (max-width: 900px) {
  /* The code first and large in the design step; it stays in view while the text below it changes. */
  .authoring-create #qrPreview { width: clamp(160px, 62vw, 280px); }
  .authoring-create .authoring-intro h1 { font-size: 24px; }
}

/* GS1 buttons keep the site's size (an older rule shrinks small inline sizes to 13 px). */
.authoring-create #gs1Section .submit-btn, .authoring-create .preview-card__footer .submit-btn { font-size: 15px !important; line-height: 1.3 !important; }
/* Disclosures: one hairline, no inner box or shadow. */
.authoring-create .gs1-advanced-panel { border: 1px solid var(--px-line) !important; border-radius: var(--px-radius-panel) !important; box-shadow: none !important; background: var(--px-surface) !important; }
.authoring-create .gs1-advanced-panel > summary { border: 0 !important; box-shadow: none !important; background: transparent !important; border-radius: 0 !important; }

/* No text under 13 px anywhere on the page: older inline sizes of 0.4 to 0.7 rem (6 to 11 px) are raised. */
.authoring-create .container :is(div, span, label, p, button, select, input, small)[style*='font-size: 0.4'],
.authoring-create .container :is(div, span, label, p, button, select, input, small)[style*='font-size: 0.5'],
.authoring-create .container :is(div, span, label, p, button, select, input, small)[style*='font-size: 0.6'],
.authoring-create .container :is(div, span, label, p, button, select, input, small)[style*='font-size: 0.7'],
.authoring-create .container :is(div, span, label, p, button, select, input, small)[style*='font-size: .6'] { font-size: 13px !important; line-height: 1.5 !important; }
.authoring-create .container .create-mode-switch > button { font-size: 15px !important; line-height: 1.3 !important; }
@media (max-width: 720px) { .authoring-create .container .create-mode-switch > button { font-size: 14px !important; } }

/* The text for the code (November 22, 2026; November 24: the art tools follow it on the first view), in both modes:
   after the mode's first field (the destination URL or the GTIN), the text for the code and its button. */
.authoring-create .create-quick-start { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; margin-top: 16px; }
.authoring-create .create-quick-field { display: grid; gap: 4px; margin-bottom: 0; }
.authoring-create .create-quick-field .form-label { margin: 0; }
.authoring-create #destinationFormGroup + .create-quick-start { margin-top: 0; }
.authoring-create .create-quick-start .form-input { font-size: 16px !important; }
.authoring-create .create-quick-hint { margin: 0; font-size: 14px; line-height: 1.5; color: var(--px-muted); }



/* The starting point sits above the headline, so the mode's first field is the first control after it. On wider
   screens it keeps its own width, like a pair of tabs. */
.authoring-create #createModeSection { margin: 0 0 16px; }
@media (min-width: 721px) {
  .authoring-create .create-mode-switch { display: inline-flex !important; }
  .authoring-create .create-mode-switch > button { flex: 0 0 auto; padding: 8px 18px !important; }
}

/* In the quick start the parts are not numbered and the setup heading is read out, not shown; More options brings both
   back with the full set of parts. */
body.authoring-create #authoring-setup { padding-top: 8px; }
body.authoring-create #gs1Section > .form-label { margin-top: 0; }
body.authoring-create[data-create-mode="gs1"] #gs1OrganizationPolicyNotice { font-size: 13px !important; margin: 6px 0 4px !important; }
@media (max-width: 900px) {
  .authoring-create .authoring-intro h1 { font-size: 22px; }
  body.authoring-create #gs1Section { margin-top: 4px !important; }
  body.authoring-create #destinationFormGroup { margin-bottom: 0; }
  /* The code large: most of a phone's width while the quick start is all there is. With More options open it shrinks
     back to the pinned band the tools scroll under. */
  body.authoring-create #qrPreview { width: clamp(200px, 76vw, 320px); }
  body.authoring-create .qr-pin { padding-top: 4px; padding-bottom: 6px; }
  /* The step under the code sits on the page in the quick start, not in a box of its own. */
  /* The setup sits close to the headline and the code. */
  body.authoring-create #authoring-setup { padding-top: 0; padding-bottom: 6px; }
  .authoring-create #createModeSection { margin-bottom: 12px; }
}
/* The page's own notes under the code (the preview link in Creative, progress, errors) read as a line with a rule, as
   the letter check does, not as a blue, green or red box: a muted rule for news, green for done, red for a fault. */
.authoring-create #resultInfo { margin: 0 0 4px !important; padding: 2px 0 2px 12px !important; border: 0 !important; border-left: 2px solid var(--px-line-strong) !important; border-radius: 0 !important; background: transparent !important; color: var(--px-muted) !important; text-align: left !important; }
.authoring-create #resultInfo.success { border-left-color: var(--px-accent) !important; color: var(--px-accent) !important; }
.authoring-create #resultInfo.error { border-left-color: var(--px-error-ink) !important; color: var(--px-error-ink) !important; }

/* Under the code in GS1 mode: the letter check (amber when a letter changed, green when every letter came out as typed),
   then the next step. The layer controls wait behind More options with the other editing tools. */
.authoring-create #gs1LetteringNotice:not([hidden]) { margin: 0 0 12px; padding: 2px 0 2px 12px; border: 0; border-left: 2px solid var(--px-warn-line); background: transparent; color: var(--px-warn-ink); font-size: 14px; line-height: 1.5; }
.authoring-create #gs1LetteringNotice[data-state="intact"]:not([hidden]) { border-left-color: var(--px-accent); color: var(--px-accent); }
.authoring-create .entity-selector { border: 1px solid var(--px-line) !important; border-radius: var(--px-radius-panel) !important; background: var(--px-surface) !important; box-shadow: none !important; }
.authoring-create .arrow-btn { border: 1px solid var(--px-line-strong) !important; border-radius: var(--px-radius) !important; background: var(--px-surface) !important; box-shadow: none !important; color: var(--px-ink) !important; }
/* With More options open in GS1 mode the plain Generate code is a secondary choice under Make my code, with room above. */

/* Before the page's scripts run (body[data-create-early], set by the first script in the body from the address, the
   saved draft, the sign-in and the pages setting, and lifted by create-quick-start.js once the scripts have run): the
   mode's own fields, GS1's sign-in notice and the page offer's room, as the scripts will leave them, so nothing moves
   on load. Each rule matches what the page's script then does in the same state. */
body.authoring-create[data-create-early][data-create-mode="gs1"] #destinationFormGroup { display: none !important; }
body.authoring-create[data-create-early][data-create-mode="gs1"] #gs1Section { display: block !important; }
body.authoring-create[data-create-early][data-pages-on] #hostedPageOffer[hidden] { display: block; visibility: hidden; }
body.authoring-create:not([data-file-pages-on]) #hostedPageOffer .offer-with-files,
body.authoring-create[data-file-pages-on] #hostedPageOffer .offer-without-files { display: none; }
body.authoring-create[data-create-early][data-create-mode="gs1"] .create-mode-switch > #modeGs1Btn { background: var(--px-ink) !important; color: #fff !important; }
body.authoring-create[data-create-early][data-create-mode="gs1"] .create-mode-switch > #modePixieBtn { background: transparent !important; color: var(--px-muted) !important; }
/* The GTIN takes the row unless the company-prefix choice is shown beside it (the page sets that inline). */
.authoring-create #gs1GtinInput { grid-column: 1 / span 2; }
/* The sign-in step in the note under the code, when the server no longer accepts the saved sign-in. */
.authoring-create #resultInfo .result-sign-in { min-height: 44px; padding: 0 2px; color: var(--px-accent); text-decoration: underline; text-underline-offset: 3px; }

/* Nothing jumps (November 24, 2026). Every part
   that changes keeps one size: the code's box, the status line under it (always there, empty when idle), the footer
   with the main action, and the tool panels, which scroll inside a box of fixed height. A notice is written into the
   status line, never inserted above a control. */
.authoring-create .preview-card > .authoring-section-heading {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.authoring-create .qr-preview { position: relative; margin-bottom: 0; }
/* While the code on screen is the example, it says so on the code itself. */
.authoring-create .preview-card:has(#authoringPreviewStatus[data-state='example']) .qr-preview::after {
  content: 'Sample'; position: absolute; top: 8px; left: 8px; padding: 4px 8px; background: var(--px-ink); color: #fff;
  font: 500 13px/1.2 var(--px-font); letter-spacing: 0; text-transform: none; pointer-events: none;
}
.authoring-create .preview-card__footer {
  display: grid; grid-template-rows: 80px 44px 44px; gap: 8px; height: 200px; margin-top: 16px; padding: 12px 0 0;
  border-top: 1px solid var(--px-line); overflow: hidden; box-sizing: border-box;
}
.authoring-create .create-status { min-height: 0; overflow-y: auto; }
.authoring-create .create-status > * { margin: 0 0 4px !important; }
/* The status row has room for the one-line letter check and a two-line refusal (80 px), so a refusal appears where the
   status line is, moving nothing (the coordinator, November 28, 2026: taking the check away for the GTIN limit moved the
   line up 29 px). A check that names changed letters is longer and still gives way to a refusal. */
.authoring-create .create-status:has(#resultInfo.error) #gs1LetteringNotice:not([data-state="intact"]):not([hidden]) { display: none !important; }
/* The letter check keeps its one line of room when hidden, in both modes: a refusal clears it (clearCreateLetterCheck)
   and the refusal appears where the status line is (re-walk of cb278f25: the line moved up 29 px), and Creative's line
   for a changed letter appears without pushing the status line down (the coordinator, November 28, 2026). */
body.authoring-create .create-status #gs1LetteringNotice[hidden] { display: block !important; visibility: hidden; padding: 2px 0; font-size: 14px; line-height: 1.5; min-height: calc(1.5em + 4px); box-sizing: border-box; }
/* The plan step (a money step: its message, its button and the line about coming back) gets the room it needs; the
   status row grows only for it, after the visitor pressed Save or Activate. */
.authoring-create .preview-card__footer:has(.create-plan-action) { grid-template-rows: auto 44px 44px; height: auto; }
.authoring-create .create-status:has(.create-plan-action) { overflow: visible; }
/* So does the refusal of a design the server would not save (DESIGN_NOT_SAVED: nothing activated, nothing charged),
   which is three lines or more: in 80 px its last line went under the Activate button (walked November 30, 2026). */
.authoring-create .preview-card__footer:has(#resultInfo.result-money-line:not(:empty)) { grid-template-rows: auto 44px 44px; height: auto; }
.authoring-create .create-status:has(#resultInfo.result-money-line:not(:empty)) { overflow: visible; }
.authoring-create #resultInfo { display: block !important; min-height: 0; font-size: 14px !important; line-height: 1.5 !important; }
.authoring-create #resultInfo:empty { border-left-color: transparent !important; padding: 0 !important; }
.authoring-create .preview-card__footer .preview-actions { display: flex; gap: 8px; height: 44px; margin: 0 !important; }
.authoring-create .preview-card__footer .preview-actions:not(:has(> button:not([style*='display: none']))) { display: flex; visibility: hidden; }
.authoring-create .preview-card__footer .preview-actions > button { flex: 1 1 0; min-width: 0; height: 44px; min-height: 44px; }
.authoring-create .create-secondary-actions { display: flex; align-items: center; gap: 8px; height: 44px; min-width: 0; }
.authoring-create .create-secondary-actions > * { margin: 0 !important; }
.authoring-create .preview-card__footer .authoring-primary.editor-transfer-link {
  flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; height: 44px; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--px-line-strong); border-radius: var(--px-radius); background: var(--px-surface); color: var(--px-ink);
  font: 500 15px/1.3 var(--px-font); text-decoration: none; white-space: nowrap;
}
.authoring-create .preview-card__footer .authoring-primary.editor-transfer-link:hover { border-color: var(--px-ink); background: var(--px-surface); color: var(--px-ink); }
.authoring-create #studioSavedGs1Link:not([hidden]) { flex: 0 1 auto; font: 500 14px/1.3 var(--px-font); color: var(--px-accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.authoring-create .preview-card #maximizePreviewBtn, .authoring-create .preview-card #maximizePreviewBtn:hover {
  position: static; flex: 0 0 auto; width: auto; height: 44px; min-height: 44px; margin: 0; padding: 0 16px; transform: none;
  border: 1px solid var(--px-line-strong); border-radius: var(--px-radius); background: var(--px-surface); color: var(--px-ink);
  font: 500 15px/1.3 var(--px-font); box-shadow: none;
}
.authoring-create .preview-card #maximizePreviewBtn::after { content: none; }
/* View large keeps its room, unseen, until there is a code, so the Studio link and Undo don't move when it comes
   (walk of 03296aa4, 1280 px). */
.authoring-create .preview-card #maximizePreviewBtn:not([style*='display: flex']) { display: inline-flex !important; visibility: hidden; }
/* Explanations that sat under the code are gone from the card; the status line and the buttons say what is needed. */
.authoring-create .preview-card__footer :is(#gs1PreviewLinkNote, #studioTransferNote, #previewContextNote) { display: none !important; }

/* The text tool's notice and button keep their room whether or not they show, so the suggestions under them stay put. */
.authoring-create #addTextToQrBtn[style*='display: none'] { display: flex !important; visibility: hidden; }
/* The setup heading is read out, never shown, open or closed, so More options inserts nothing above the fields. */
body.authoring-create #authoring-setup .authoring-section-heading {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.authoring-create :is(#authoring-setup, #authoring-design) .authoring-section-heading h2::before,
.authoring-create .preview-card > .authoring-section-heading h2::before { content: none; counter-increment: none; }

@media (max-width: 900px) {
  .authoring-create .preview-card__footer {
    height: 200px; margin-top: 0; padding: 12px 0 0; border: 0; border-top: 1px solid var(--px-line); border-radius: 0; background: transparent;
  }
}

/* The first view shows the art tools (November 24, 2026). In both modes, with no toggle: the mode's first field, "Text in your QR" with its suggestions (Creative),
   a strip of finished template codes, and the tools row (Logo, Color, Style, Move, More) over a tool area of fixed
   height. More holds only the advanced settings. */
.authoring-create #authoring-design .authoring-section-heading {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.authoring-create #authoring-design { padding-top: 24px; }
.authoring-create .create-row-label {
  margin: 0 0 8px; font: 500 15px/1.4 var(--px-font); letter-spacing: 0; text-transform: none; color: var(--px-ink);
}
/* Suggestions under the field: a chip puts its words into the code at once. */
.authoring-create .create-quick-field { margin-bottom: 0; }
.authoring-create .create-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.authoring-create .create-chips[hidden], body.authoring-create[data-create-mode='gs1'] .create-chips { display: none; }
.authoring-create .create-chips .text-chip {
  min-height: 40px; padding: 8px 12px; border: 1px solid var(--px-line-strong) !important; border-radius: var(--px-radius) !important;
  background: var(--px-surface) !important; color: var(--px-ink) !important; box-shadow: none !important; transform: none !important;
  font: 400 14px/1.3 var(--px-font) !important; letter-spacing: 0; cursor: pointer;
}
/* A chip's box is reserved at its width in IBM Plex Sans (--chip-width, beside each label in create-int-5.html), so
   the row wraps at the same places whichever typeface has arrived. Sized by their text, the six chips were 35 px wider
   in the fallback typeface: at 1280 px they wrapped into two rows and everything below moved up 48 px when Plex came
   (layout shift 0.095, integration 12). The fallback's words are at most 11 px wider than Plex's and run into the
   chip's own side padding until Plex arrives. */
.authoring-create .create-chips .text-chip {
  box-sizing: border-box; flex: none; width: var(--chip-width, auto); white-space: nowrap;
  /* Centered even when the words are wider than the box, so the fallback's extra width is shared by both sides. */
  display: inline-flex; align-items: center; justify-content: center;
}
.authoring-create .create-chips .text-chip:hover { border-color: var(--px-ink) !important; }
.authoring-create .create-chips .text-chip:active,
.authoring-create .create-chips .text-chip[aria-pressed='true'] { background: var(--px-ink) !important; border-color: var(--px-ink) !important; color: #fff !important; }
.authoring-create .create-chips .text-chip:focus-visible { outline: 3px solid var(--px-focus); outline-offset: 2px; }
/* The template strip: each template's art alone, with no code around it, centred on the tile's plain background at the largest whole number of pixels a square that leaves
   at least 3 px of it on every side of the 84 px tile (each picture's --art-large, set beside it in the page), so every
   square stays square. Half the earlier 147 px (December 1, 2026). */
.authoring-create .create-template-strip { margin: 0 0 24px; }
.authoring-create .create-template-strip[hidden] { display: none; }
.authoring-create .create-template-strip .create-row-label { display: flex; align-items: baseline; justify-content: space-between; }
.authoring-create .create-template-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px; margin: -4px; }
.authoring-create .create-template-row::-webkit-scrollbar { display: none; }
.authoring-create .create-template-tile {
  flex: 0 0 auto; box-sizing: content-box; width: 84px; height: 84px; padding: 0; border: 1px solid var(--px-line); border-radius: 0;
  background: var(--px-surface); cursor: pointer; display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.authoring-create .create-template-tile img { display: block; flex: 0 0 auto; width: var(--art-large, 84px); height: var(--art-large, 84px); image-rendering: pixelated; }
.authoring-create .create-template-tile:hover { border-color: var(--px-ink); }
.authoring-create .create-template-tile[aria-pressed='true'] { outline: 3px solid var(--px-ink); outline-offset: 2px; }
.authoring-create .create-template-tile:active { outline: 3px solid var(--px-line-strong); outline-offset: 2px; }
.authoring-create .create-template-tile:focus-visible { outline: 3px solid var(--px-focus); outline-offset: 2px; }
.authoring-create .create-template-all {
  width: auto; height: auto; padding: 0; border: 0; background: none; color: var(--px-accent);
  font: 500 14px/1.4 var(--px-font); letter-spacing: 0; text-transform: none; text-decoration: underline; text-underline-offset: 3px;
}
/* The tools row: five tabs in one row at every width. */
.authoring-create .authoring-tool-nav { display: flex !important; margin-bottom: 12px; }
.authoring-create .authoring-tool-nav button { flex: 1 1 0; min-width: 0; padding: 8px 4px; }
/* The tool area: a box of fixed height that scrolls inside, so a tab switch moves nothing under it. */
.authoring-create .create-tool-area {
  box-sizing: border-box; height: 360px; overflow-y: auto; overscroll-behavior: contain; padding: 16px;
  border: 1px solid var(--px-line); border-radius: var(--px-radius-panel); background: var(--px-surface);
}
.authoring-create .create-tool-area [data-create-panel] { margin: 0; padding: 0; border: 0; background: transparent; }
.authoring-create .create-tool-area > details > summary { display: none; }
/* The text tool's own field stays in the page as the source the scripts read, never on screen. */
.authoring-create #textInputSection { display: none !important; }
/* More: the advanced settings, in order. The brand explorer opens at its end and no longer reshapes the page. */
.authoring-create #createMoreTool > * + * { margin-top: 16px; }
.authoring-create #createMoreTool .create-more-gs1 { display: none; }
body.authoring-create[data-create-mode='gs1'] #createMoreTool .create-more-gs1 { display: block; }
.authoring-create #createMoreTool #generateGs1PreviewBtn, .authoring-create #createMoreTool #generateGs1Btn { display: none !important; }
.authoring-create #createMoreTool .create-more-gs1 > div[style*='justify-content'] { justify-content: flex-start !important; }
.authoring-create #createMoreTool #createBrandTool > summary { display: list-item; padding: 10px 0; font: 600 15px/1.4 var(--px-font); cursor: pointer; }
.authoring-create #createMoreTool #createBrandTool > summary span { display: none; }
@media (min-width: 901px) {
  body.authoring-create.brand-workbench-open .container { grid-template-columns: minmax(0, 1fr) minmax(400px, 480px); }
  body.authoring-create.brand-workbench-open .preview-section { position: sticky; top: 24px; }
}
/* The layer list and move controls, in the Move tool. */
.authoring-create #createMoveTool #contentEntitySelector { margin: 0 !important; border: 0 !important; padding: 0 !important; }
/* The template library: every template, as a grid that wraps inside the tool area (since November 24, 2026). Each item
   is the template's art alone in a box of fixed size, drawn at whole pixels a square (public/create-template-art.js),
   with its name under it in two lines of room, so nothing in the grid moves as the pictures and names arrive. The box
   is 120 px (--library-art-box, which the page reads once when it draws), 96 up to a 365 px window, where two columns
   of 120 do not fit (a window of at least 366 px holds two: the list has the window less 78 px). */
.authoring-create #authoringTemplates #snippetPrevBtn, .authoring-create #authoringTemplates #snippetNextBtn,
.authoring-create #authoringTemplates #snippetTranslateTrigger, .authoring-create #authoringTemplates #snippetArrowPad { display: none !important; }
.authoring-create #authoringTemplates #snippetCarouselContainer { overflow: visible !important; }
.authoring-create #authoringTemplates #snippetGrid {
  --library-art-box: 120px;
  display: grid !important; grid-template-columns: repeat(auto-fill, minmax(calc(var(--library-art-box) + 18px), 1fr)); gap: 16px 12px;
  padding: 4px 0 !important; transform: none !important;
}
.authoring-create #authoringTemplates #snippetGrid > div { grid-column: 1 / -1 !important; }
.authoring-create .create-library-item {
  display: grid; grid-template-rows: var(--library-art-box) auto; justify-items: center; align-content: start; gap: 6px;
  box-sizing: border-box; width: 100%; min-width: 0; margin: 0; padding: 8px; border: 1px solid var(--px-line); border-radius: var(--px-radius);
  background: var(--px-surface); color: var(--px-ink); cursor: pointer; font: inherit; text-transform: none; letter-spacing: 0;
}
.authoring-create .create-library-art { display: flex; align-items: center; justify-content: center; width: var(--library-art-box); height: var(--library-art-box); overflow: hidden; }
.authoring-create .create-library-art canvas { display: block; flex: 0 0 auto; image-rendering: pixelated; }
.authoring-create .create-library-name {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; width: 100%; min-height: calc(2 * 1.3 * 13px);
  font: 500 13px/1.3 var(--px-font); text-align: center; overflow-wrap: anywhere;
}
.authoring-create .create-library-item--none .create-library-art { font: 500 15px/1.3 var(--px-font); color: var(--px-muted); }
.authoring-create .create-library-item:hover { border-color: var(--px-ink); }
.authoring-create .create-library-item[aria-pressed='true'] { border-color: var(--px-ink); box-shadow: inset 0 0 0 2px var(--px-ink); }
@media (max-width: 365px) {
  .authoring-create #authoringTemplates #snippetGrid { --library-art-box: 96px; }
}

@media (max-width: 900px) {
  /* On a phone: the code first, then the fields and suggestions, the template strip, the tools (order above). */
  .authoring-create #authoring-design { padding-top: 16px; }
  .authoring-create .create-tool-area { height: 320px; }
}
@media (max-width: 900px) {
  /* On a phone the strip is one row that scrolls sideways, each tile 68 px, four whole tiles and the edge of the next at
     375; the art in it at the largest whole number of pixels a square that leaves at least 3 px around it (each picture's
     --art-small). */
  .authoring-create .create-template-tile { width: 68px; height: 68px; }
  .authoring-create .create-template-tile img { width: var(--art-small, 68px); height: var(--art-small, 68px); }
}
@media (max-width: 480px) {
  /* Four suggestions in two rows on a phone. */
  .authoring-create .create-chips .text-chip:nth-child(n+5) { display: none; }
  /* Two columns, so the row's height never depends on when the typeface arrives (it wrapped into three rows at 320 px
     before the font loaded and moved the strip below: spacing guard, November 24, 2026). */
  .authoring-create .create-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .authoring-create .create-chips .text-chip { width: auto; }
  body.authoring-create[data-create-mode='gs1'] .create-chips { display: none; }
}

body.authoring-create:has(#textInputSection[style*="display: none"]) #createQuickTextField { visibility: hidden; }
/* With text and templates off (GS1), Draw still makes the code from the GTIN, and its refusals still show. */
body.authoring-create:has(#textInputSection[style*="display: none"]) #createQuickTextField .create-draw-btn,
body.authoring-create:has(#textInputSection[style*="display: none"]) #createQuickTextField .create-field-note { visibility: visible; }

/* A code that doesn't scan says so on the code itself (create-scan-check.js); the status line says what to do. */
.authoring-create .qr-preview[data-scan='fails'] { outline: 3px solid var(--px-error-ink); outline-offset: -3px; }
.authoring-create .preview-card:has(#qrPreview[data-scan='fails']) .preview-actions button { opacity: .55; cursor: not-allowed; }

/* Feedback within 100 ms (November 24, 2026). While the server draws, the code on screen stays, dimmed, with
   "Drawing…" over it; buttons show a pressed state at once. */
.authoring-create .qr-preview > * { transition: opacity .12s linear; }
.authoring-create .qr-preview.is-drawing > * { opacity: .4; }
.authoring-create .qr-preview.is-drawing::before {
  content: 'Drawing\2026'; position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%, -50%);
  padding: 8px 16px; border-radius: var(--px-radius); background: var(--px-ink); color: #fff; font: 500 15px/1.3 var(--px-font);
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) { .authoring-create .qr-preview > * { transition: none; } }
/* The line under the text field: a refusal of the text in plain words, or GS1's hint; one line kept for it. */
/* Two lines are kept for the line under the field, so a refusal never pushes the suggestions down (review, Nov 24). */
.authoring-create .create-field-note { height: 42px; margin-top: 4px; overflow: hidden; }
.authoring-create .create-field-note > p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.authoring-create .create-field-note > p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--px-muted); }
.authoring-create .create-field-status:empty { display: none; }
.authoring-create .create-field-status.is-error { color: var(--px-error-ink); }
.authoring-create .create-field-status:not(:empty) + .create-quick-hint { display: none; }
.authoring-create .create-field-fix { padding: 0 2px; color: var(--px-accent); font-weight: 600; }

/* The code and the controls together (November 24, 2026), so both are in view at once. Desktop: the card with the code is the only thing in the sticky right column, at a
   size that fits the screen; the GS1 checks sit with the controls. Phone: the code's band sticks to the top at about a
   third of the screen's height and is drawn larger at the top of the page. The band keeps one layout height; the code
   is scaled inside it (create-workspace.js sets --create-code-scale on scroll), so the change moves nothing. */
@media (min-width: 901px) {
  .authoring-create .preview-section { position: sticky; top: 24px; align-self: start; max-height: none; }
  .authoring-create #authoring-review .qr-preview { width: min(100%, var(--responsive-preview-square-size, 100%), calc(100vh - 300px)) !important; }
  .authoring-create .form-section > #gs1VerificationPanel { margin-top: 24px; }
}
@media (max-width: 900px) {
  .authoring-create {
    --create-code-large: min(calc(100vw - 32px), 420px, 45vh);
    --create-code-small: max(150px, calc(33vh - 16px));
  }
  .authoring-create .qr-pin { top: min(0px, calc(var(--create-code-small) - var(--create-code-large))); padding: 8px 16px; }
  body.authoring-create #qrPreview {
    width: var(--create-code-large) !important; transform: scale(var(--create-code-scale, 1)); transform-origin: 50% 100%;
  }
  /* The variables live on body, so html spells the band's height out (review, November 24, 2026), with the status
     line's own row under the code (46 px: two lines and the gap above them). */
  html:has(body.authoring-create) { scroll-padding-top: calc(max(150px, calc(33vh - 16px)) + 70px); }
}
@media (max-width: 900px) and (max-height: 520px) {
  body.authoring-create #qrPreview { width: clamp(160px, 40vw, 240px) !important; transform: none; }
}

/* Moving a layer (November 24, 2026). The selected layer is outlined on the code; a drag on the code moves it in whole
   squares. The Move tool: the layer's name, a d-pad of 48 px buttons, the layer list, and Delete in a row of its own. */
.authoring-create #qrPreview .create-layer-overlay {
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; image-rendering: pixelated;
}
.authoring-create #qrPreview.has-layers .create-layer-overlay { pointer-events: auto; cursor: grab; touch-action: pan-y; }
/* On a touch screen a drag moves a layer only with the Move tool open; elsewhere a swipe on the code scrolls the page. */
body.authoring-create[data-create-tool='move'] #qrPreview.has-layers .create-layer-overlay { touch-action: none; }
/* The outline shows with the Move tool open or while a layer moves; elsewhere the code is shown clean (the drag still
   works from any tool). */
.authoring-create #qrPreview .create-layer-overlay { opacity: 0; transition: opacity .12s ease; }
body.authoring-create[data-create-tool='move'] #qrPreview .create-layer-overlay,
.authoring-create #qrPreview.is-moving .create-layer-overlay { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .authoring-create #qrPreview .create-layer-overlay { transition: none; } }
.authoring-create #qrPreview.has-layers .create-layer-overlay:active { cursor: grabbing; }
.authoring-create #createMoveTool #contentEntitySelector,
.authoring-create #createMoveTool #contentEntityActionPanel { display: block !important; margin: 0; padding: 0; border: 0 !important; background: transparent !important; }
.authoring-create #createMoveTool .create-dpad {
  display: grid; grid-template-columns: repeat(3, 48px); grid-template-rows: repeat(2, 48px); gap: 6px; margin: 0 0 16px;
}
.authoring-create #createMoveTool .create-dpad .arrow-btn {
  width: 48px; height: 48px; min-height: 48px; padding: 0; display: flex; align-items: center; justify-content: center;
  font: 500 22px/1 var(--px-font) !important; color: var(--px-ink) !important;
}
.authoring-create #createMoveTool .create-dpad .arrow-btn:active:not(:disabled) { background: var(--px-ink) !important; color: #fff !important; }
.authoring-create #createMoveTool .create-dpad .arrow-btn:disabled { opacity: .4; cursor: not-allowed; }
.authoring-create #createMoveTool .create-dpad .arrow-btn:focus-visible { outline: 3px solid var(--px-focus); outline-offset: 2px; }
.authoring-create #createMoveTool #contentEntitySelectorLabel { margin: 0 0 6px; font: 500 15px/1.4 var(--px-font); letter-spacing: 0; text-transform: none; color: var(--px-ink); }
.authoring-create #createMoveTool #contentEntityList { margin-bottom: 24px; }
.authoring-create .create-delete-layer {
  min-height: 44px; padding: 8px 16px; border: 1px solid var(--px-error-line); border-radius: var(--px-radius); background: var(--px-surface);
  color: var(--px-error-ink); font: 500 15px/1.3 var(--px-font); cursor: pointer;
}
.authoring-create .create-delete-layer:hover:not(:disabled) { border-color: var(--px-error-ink); }
.authoring-create .create-delete-layer:disabled { opacity: .45; cursor: not-allowed; }
/* The card's second row: Studio, Undo, View large. */
.authoring-create .create-secondary-btn, .authoring-create .create-secondary-btn:hover {
  flex: 0 0 auto; height: 44px; min-height: 44px; padding: 0 14px; border: 1px solid var(--px-line-strong); border-radius: var(--px-radius);
  background: var(--px-surface); color: var(--px-ink); font: 500 15px/1.3 var(--px-font); cursor: pointer;
}
.authoring-create .create-secondary-btn:disabled { opacity: .45; cursor: not-allowed; }
.authoring-create .create-secondary-btn:focus-visible { outline: 3px solid var(--px-focus); outline-offset: 2px; }
@media (max-width: 400px) {
  .authoring-create .create-secondary-actions { gap: 6px; }
  .authoring-create .create-secondary-btn, .authoring-create .preview-card__footer .authoring-primary.editor-transfer-link { padding: 0 10px; font-size: 14px; }
  /* View large too, so the row fits at 320 (walk of 03296aa4: it ran 1 px past the row and its border was cut). */
  .authoring-create .preview-card #maximizePreviewBtn, .authoring-create .preview-card #maximizePreviewBtn:hover { padding: 0 10px; font-size: 14px; }
}

/* The text field and its button as one control (November 24, 2026). The button sits at the field's right end, the field's height,
   sized to its word; Enter does the same. On a phone it stays in the field's row. */
.authoring-create .create-draw-field { display: flex; align-items: stretch; min-width: 0; }
.authoring-create .create-draw-field #createQuickText { flex: 1 1 auto; min-width: 0; border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; }
.authoring-create .create-draw-field .create-draw-btn {
  flex: 0 0 auto; min-width: 0; min-height: 44px; margin: 0 0 0 -1px; padding: 0 20px; border: 1px solid var(--px-accent);
  border-radius: 0 var(--px-radius) var(--px-radius) 0; background: var(--px-accent); color: #fff; font: 500 16px/1 var(--px-font); cursor: pointer;
}
.authoring-create .create-draw-field .create-draw-btn:hover { background: var(--px-accent-strong); border-color: var(--px-accent-strong); }
.authoring-create .create-draw-field .create-draw-btn:active,
.authoring-create .create-draw-field .create-draw-btn[aria-busy='true'] { background: var(--px-accent-strong); border-color: var(--px-accent-strong); }
.authoring-create .create-draw-field .create-draw-btn:focus-visible { outline: 3px solid var(--px-focus); outline-offset: 2px; position: relative; z-index: 1; }

/* A code made for GS1's example GTIN can't be saved; the code says so ("Sample GTIN") and the main button reads
   "Enter your GTIN to save" (November 24, 2026). */
.authoring-create .qr-preview[data-sample-gtin='true']::after {
  content: 'Sample GTIN';
}
/* Both labels sit under the code, in the gap above the card's footer, never on the code's own squares (November 30,
   2026: the label covered a corner mark and the first letter of the name). Positioned, so nothing moves. */
.authoring-create .preview-card:has(#authoringPreviewStatus[data-state='example']) .qr-preview::after,
.authoring-create .qr-preview[data-sample-gtin='true']::after {
  position: absolute; top: calc(100% + 1px); left: 0; padding: 0; background: none; color: var(--px-ink);
  font: 500 12px/14px var(--px-font); letter-spacing: 0; text-transform: none; pointer-events: none;
}

/* GS1 mode: a red, orange or yellow ink is flagged in the Color tool (create-int-5.html, syncGs1InkWarning). */
.authoring-create .create-ink-warning:not([hidden]) {
  margin: 0 0 12px; padding: 2px 0 2px 12px; border-left: 2px solid var(--px-warn-line); color: var(--px-warn-ink); font-size: 14px; line-height: 1.5;
}

/* The Studio link is not offered for GS1 drafts (create-int-5.html, syncCreateStudioGuidance). It is also out by the
   mode alone, which is known before the first paint (body[data-create-mode]): hidden only by the script, it was there
   for the first half second in GS1 mode and Undo and View large moved left when it went (layout shift 0.0014 at
   1280 px, integration 12). */
.authoring-create #studioTransferLink[hidden],
body.authoring-create[data-create-mode='gs1'] #studioTransferLink { display: none !important; }

/* The status line's message in the code's band on a phone (create-workspace.js, mountBandStatus). It has a line of its
   own under the code, inside the band, two lines high whether it holds a message or not: it never lies over a label or
   a control, and nothing moves when a message comes or goes (November 28, 2026; until then it floated just under the
   band, over the page, and covered the "Destination URL" label and the top of its field). A longer message is cut at two
   lines; the status line with Save and Activate holds the whole of it. It reads as the status line does on a wider
   screen: a muted rule for news, green for done, red for a fault. Wider screens show the status line beside the code
   (its row in the card is reserved too) and never this copy. */
.authoring-create .create-band-status { display: none; }
@media (max-width: 900px) {
  .authoring-create .create-band-status {
    --create-band-status-height: 42px;
    display: block; align-self: stretch; box-sizing: border-box; height: var(--create-band-status-height); margin: 4px 0 0; padding: 0;
    overflow: hidden; background: transparent; color: var(--px-muted); font: 400 14px/21px var(--px-font); text-align: left; pointer-events: none;
  }
  /* The rule runs beside the words only, one line or two, not down the whole row. */
  .authoring-create .create-band-status__text {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
    padding-left: 10px; border-left: 2px solid var(--px-line-strong);
  }
  .authoring-create .create-band-status[hidden] { visibility: hidden; }
  .authoring-create .create-band-status[data-kind='success'] { color: var(--px-accent); }
  .authoring-create .create-band-status[data-kind='success'] .create-band-status__text { border-left-color: var(--px-accent); }
  .authoring-create .create-band-status[data-kind='error'] { color: var(--px-error-ink); }
  .authoring-create .create-band-status[data-kind='error'] .create-band-status__text { border-left-color: var(--px-error-ink); }
}
/* A phone held sideways: the band scrolls with the page and the status line's own copy is not needed above it. */
@media (max-width: 900px) and (max-height: 520px) {
  .authoring-create .create-band-status { display: none; }
}

/* Two-tone's pair check (copy audit CF-57): one line with a mark, not two brightness numbers. */
/* Two lines of room, so the longer warning ("These colors differ…") moves nothing below it (walk of 03296aa4, 375 px). */
.authoring-create .create-two-tone-check { margin: 8px 0 0; padding-left: 10px; border-left: 2px solid var(--px-accent); color: var(--px-accent); font-size: 14px; line-height: 1.5; min-height: 3em; }
.authoring-create .create-two-tone-check[data-state='fail'] { border-left-color: var(--px-warn-line); color: var(--px-warn-ink); }

/* The Brand tool's own copies of the text field, logo upload and colour controls are not shown on Create
   (create-brand-ui.js with the page's briefInputs, November 24, 2026). */
.authoring-create #createBrandTool [hidden] { display: none !important; }
/* The Brand tool's heading repeats its section's own name: kept for screen readers only. Its option labels ("Faithful")
   and the font switch's "Advanced" tag in sentence case, like every other label on Create. */
.authoring-create #createBrandTool #brandBriefTitle { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.authoring-create #createBrandTool .brand-result__direction,
.authoring-create .text-constraints-badge { text-transform: none !important; letter-spacing: 0 !important; }

/* The skip link shows as a white box over a white header when focused, so it gets the page's focus ring too (keyboard
   pass, November 24, 2026). */
.authoring-create .px-skip-link:focus, body.authoring-create .px-skip-link:focus { outline: 3px solid var(--px-focus); outline-offset: 2px; }
/* "Use the picture's colors" / "Back to grey" (December 1, 2026): one control in one place, the Color tab, with two
   states. Both labels share one grid cell, so the button is the size of the longer one in either state and nothing moves
   or changes kind when it is pressed. With no picture it keeps its place, unseen. */
.authoring-create .create-picture-palette-control { margin-bottom: 12px; }
.authoring-create .create-picture-palette-toggle { display: inline-grid; align-items: center; justify-items: center; }
.authoring-create .create-picture-palette-toggle > span { grid-area: 1 / 1; }
.authoring-create .create-picture-palette-toggle[aria-pressed='true'] > .create-picture-palette-toggle__off,
.authoring-create .create-picture-palette-toggle[aria-pressed='false'] > .create-picture-palette-toggle__on { visibility: hidden; }
.authoring-create .create-picture-palette-toggle[data-no-picture] { visibility: hidden; }
/* Two-tone, while it can't be used with the design's colors (the picture's colors on): hidden, with no note. */
.authoring-create #colorDipoleContainer[data-unavailable] { display: none !important; }

/* The sample's label shows (December 1, 2026). The preview clips its own overflow (create-int-5.html .qr-preview), so the
   label placed under the code on November 30 was cut off: nothing said the Honey jar or the bubbles were a sample, and
   with the organizations failed a visitor could take the jar for their own code. While a label is up the preview lets it
   out. Up to 900 px the row under the code also carries the status copy (.create-band-status): the label sits at its
   right end and the copy keeps clear of it. */
.authoring-create .preview-card:has(#authoringPreviewStatus[data-state='example']) .qr-preview,
.authoring-create .qr-preview[data-sample-gtin='true'] { overflow: visible; }
@media (max-width: 900px) {
  .authoring-create .preview-card:has(#authoringPreviewStatus[data-state='example']) .qr-preview::after,
  .authoring-create .qr-preview[data-sample-gtin='true']::after { left: auto; right: 0; }
  .authoring-create .preview-card:has(#authoringPreviewStatus[data-state='example']) .create-band-status__text,
  .authoring-create .qr-pin:has(.qr-preview[data-sample-gtin='true']) .create-band-status__text { margin-right: 96px; }
}
