/* The repeated body class intentionally outranks the legacy dark-theme selectors.
   The working tools share the mist / navy / blue language of the demo home.
   Screen-only rules deliberately leave labels, exported SVGs and print geometry intact. */
@media screen {
  body.lime-site.lime-site {
    --lt-bg: #f6f8fc;
    --lt-panel: #fff;
    --lt-soft: #edf2f9;
    --lt-preview: #e3ecff;
    --lt-ink: #18263e;
    --lt-muted: #697a94;
    --lt-line: #dce4f0;
    --lt-line-strong: #b5c6df;
    --lt-lime: #1456f5;
    --lt-primary-ink: #fff;
    --lt-primary-hover: #0642d3;
    --lt-selected: #dbe7ff;
    --lt-accent: #0642d3;
    --lt-deep: #152b4b;
    --lt-error: #aa3931;
    --lt-error-soft: #fff1ed;
    --lt-shadow: 0 12px 32px #152b4b06;
  }
  html[data-theme="dark"] body.lime-site.lime-site {
    --lt-bg: #101927;
    --lt-panel: #172439;
    --lt-soft: #1d2e45;
    --lt-preview: #132036;
    --lt-ink: #eef3fb;
    --lt-muted: #a3b4cb;
    --lt-line: #31435e;
    --lt-line-strong: #617ea6;
    --lt-selected: #1a3c78;
    --lt-accent: #5594ff;
    --lt-lime: #5594ff;
    --lt-primary-ink: #152b4b;
    --lt-primary-hover: #7aacff;
    --lt-deep: #101927;
    --lt-error: #ffb3a7;
    --lt-error-soft: #422822;
    --lt-shadow: 0 12px 32px #0000000c;
  }

  /* Shared form language. All selectors stay within the tool surface. */
  body.lime-site.lime-site :is(.label-editor, .format-generator, .ean-tool) {
    color: var(--lt-ink);
    font-family: inherit;
    --article-panel: var(--lt-panel);
    --article-soft: var(--lt-soft);
    --article-line: var(--lt-line);
    --article-text: var(--lt-ink);
    --article-heading: var(--lt-ink);
    --article-muted: var(--lt-muted);
    --article-accent: var(--lt-accent);
    --article-accent-soft: var(--lt-selected);
  }
  body.lime-site.lime-site :is(.label-editor, .format-generator, .ean-tool) :is(input, select, textarea, button) {
    font-family: inherit;
  }
  body.lime-site.lime-site :is(.label-editor, .format-generator, .ean-tool) button {
    color: var(--lt-ink);
    background: var(--lt-panel);
    border-color: var(--lt-line);
    border-radius: 8px;
    box-shadow: none;
    transition: background-color .18s, border-color .18s, box-shadow .18s;
  }
  body.lime-site.lime-site :is(.label-editor, .format-generator, .ean-tool) button:hover:not(:disabled) {
    background: var(--lt-soft);
    border-color: var(--lt-line-strong);
    box-shadow: none;
    transform: none;
  }
  body.lime-site.lime-site :is(.label-editor, .format-generator, .ean-tool) :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
    color: var(--lt-ink);
    background-color: var(--lt-panel);
    border-color: var(--lt-line);
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.5;
    box-shadow: none;
  }
  body.lime-site.lime-site :is(.label-editor, .format-generator, .ean-tool) :is(input, textarea)::placeholder {
    color: var(--lt-muted);
    opacity: .85;
  }
  body.lime-site.lime-site :is(.label-editor, .format-generator, .ean-tool) :is(input[type="checkbox"], input[type="radio"]) {
    accent-color: var(--lt-accent);
  }
  body.lime-site.lime-site :is(.label-editor, .format-generator, .ean-tool) :is(button, a, select, input, textarea, summary):focus-visible {
    outline: 2px solid var(--lt-accent);
    outline-offset: 3px;
  }
  body.lime-site.lime-site :is(.label-editor, .format-generator, .ean-tool) [hidden] { display: none !important; }
  body.lime-site.lime-site :is(.label-editor, .format-generator, .ean-tool) button:disabled {
    opacity: .43;
    cursor: not-allowed;
  }

  /* Template choices and editable fields. */
  body.lime-site.lime-site .label-editor { background: var(--lt-bg); }
  body.lime-site.lime-site .label-editor .editor-main { padding-top: 24px; padding-bottom: 36px; }
  body.lime-site.lime-site .label-editor :is(h1, h2, h3, h4, label, nav strong) { color: var(--lt-ink); }
  body.lime-site.lime-site .label-editor :is(.lead, .hint, nav span, #category-note, #status, .explanation p, .brand-placement-note, .paste-feedback, #export-status) {
    color: var(--lt-muted);
  }
  body.lime-site.lime-site .label-editor :is(a, .eyebrow, .custom-field-settings>summary) { color: var(--lt-accent); }
  body.lime-site.lime-site .label-editor .choice-heading { font-size: 22px; letter-spacing: -.5px; margin-top: 16px; }
  body.lime-site.lime-site .label-editor .size-controls { gap: 12px; margin: 22px 0 14px; }
  body.lime-site.lime-site .label-editor .size-controls .size-picker { max-width: 360px; font-size: 12px; font-weight: 500; color: var(--lt-muted); }
  body.lime-site.lime-site .label-editor .size-controls>button { min-height: 48px; padding-inline: 17px; font-size: 13px; }
  body.lime-site.lime-site .label-editor .hint { line-height: 1.65; }
  body.lime-site.lime-site .label-editor :is(aside, .preview-panel, .product-detection, .parent-category-panel) {
    background: var(--lt-panel);
    border: 1px solid var(--lt-line);
    border-radius: 14px;
    box-shadow: var(--lt-shadow);
  }
  body.lime-site.lime-site .label-editor .workspace { gap: 24px; }
  body.lime-site.lime-site .label-editor .workspace>aside { padding: 24px; }
  body.lime-site.lime-site .label-editor .workspace>aside :is(input, select, textarea) { color: var(--lt-ink); font-family: inherit; }
  body.lime-site.lime-site .label-editor .panel-title { gap: 14px; }
  body.lime-site.lime-site .label-editor .panel-title h2 { font-size: 19px; font-weight: 600; letter-spacing: -.4px; }
  body.lime-site.lime-site .label-editor .panel-title button { padding: 7px 10px; font-size: 11px; }
  body.lime-site.lime-site .label-editor #fields>label { margin-top: 19px; font-size: 12px; font-weight: 500; }
  body.lime-site.lime-site .label-editor #fields :is(input, textarea) { padding-block: 12px; }
  body.lime-site.lime-site .label-editor #fields label:has([data-field="highlight"]) {
    color: var(--lt-ink);
    background: var(--lt-soft);
    border-color: var(--lt-line);
  }
  body.lime-site.lime-site .label-editor :is(#layouts, #categories) { gap: 12px; padding: 2px; }
  body.lime-site.lime-site .label-editor #layouts>button {
    border: 1px solid var(--lt-line);
    background: var(--lt-panel);
    border-radius: 12px;
    padding: 12px;
    box-shadow: none;
  }
  body.lime-site.lime-site .label-editor #layouts>button:hover { border-color: var(--lt-line-strong); background: var(--lt-soft); }
  body.lime-site.lime-site .label-editor #layouts>button[aria-selected="true"],
  body.lime-site.lime-site .label-editor #layouts #custom-start[aria-selected="true"] {
    background: var(--lt-selected);
    border-color: var(--lt-line-strong);
    padding: 12px;
  }
  body.lime-site.lime-site .label-editor #layouts strong { font-size: 15px; font-weight: 600; letter-spacing: -.2px; }
  body.lime-site.lime-site .label-editor #layouts span { font-size: 12px; line-height: 1.5; }
  body.lime-site.lime-site .label-editor #layouts .layout-thumbnail { background: var(--lt-soft); border-radius: 7px; }
  body.lime-site.lime-site .label-editor #layouts .custom-sample { background: #fff; color: #20251f; }
  body.lime-site.lime-site .label-editor #layouts .custom-sample span { color: #727969; }
  body.lime-site.lime-site .label-editor #layouts .custom-sample { padding: 6px; justify-content: space-between; gap: 2px; }
  body.lime-site.lime-site .label-editor #layouts .custom-sample>* { flex: 0 0 auto; line-height: 1.15; margin-block: 0; }
  body.lime-site.lime-site .label-editor #layouts .custom-sample b { font-size: clamp(7px, 6.4cqw, 13px); }
  body.lime-site.lime-site .label-editor #layouts .custom-sample em { font-size: clamp(6px, 5.2cqw, 11px); }
  body.lime-site.lime-site .label-editor #layouts .custom-sample span { font-size: clamp(6px, 5cqw, 10px); }
  body.lime-site.lime-site .label-editor #layouts .custom-sample-bars { height: clamp(9px, 11cqh, 18px); margin-top: 3px; }

  body.lime-site.lime-site .label-editor #layouts #custom-start { background: var(--lt-panel); color: var(--lt-ink); border-color: var(--lt-line); }
  body.lime-site.lime-site .label-editor #parent-categories { gap: 9px; }
  body.lime-site.lime-site .label-editor #parent-categories button {
    background: var(--lt-soft);
    border-color: transparent;
    color: var(--lt-muted);
    padding: 11px 15px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 500;
  }
  body.lime-site.lime-site .label-editor #parent-categories button[aria-pressed="true"] {
    color: var(--lt-primary-ink);
    background: var(--lt-lime);
    border-color: var(--lt-lime);
  }
  body.lime-site.lime-site .label-editor #categories button { border-color: var(--lt-line); border-radius: 9px; background: var(--lt-panel); }
  body.lime-site.lime-site .label-editor #categories button[aria-selected="true"] { background: var(--lt-selected); border-color: var(--lt-line-strong); }
  body.lime-site.lime-site .label-editor :is(.selected-category, .size-badge, .preset-placement) {
    background: var(--lt-selected);
    color: var(--lt-accent);
    border-color: var(--lt-line);
  }
  body.lime-site.lime-site .label-editor .size-badge { border-radius: 5px; font-size: 11px; padding: 6px 9px; }
  body.lime-site.lime-site .label-editor .selected-category-caption { color: var(--lt-muted); }
  body.lime-site.lime-site .label-editor :is(.explanation, .custom-storage, .alignment-icons, .ozon-source, .batch-pdf-panel) { border-color: var(--lt-line); }
  body.lime-site.lime-site .label-editor :is(.custom-field, .custom-field-zone) { border-color: var(--lt-line); background: var(--lt-soft); border-radius: 9px; }
  body.lime-site.lime-site .label-editor .custom-field-zone.drop-active { border-color: var(--lt-accent); background: var(--lt-selected); }
  body.lime-site.lime-site .label-editor .custom-field-zone.drop-full { border-color: var(--lt-error); }
  body.lime-site.lime-site .label-editor .custom-field-name { background: var(--lt-panel); border-color: var(--lt-line); }
  body.lime-site.lime-site .label-editor .custom-field-name input { background: transparent; }
  body.lime-site.lime-site .label-editor :is(.custom-drag-handle, .custom-field-remove, .format-toggle span, .alignment-icons button) { color: var(--lt-muted); }
  body.lime-site.lime-site .label-editor #custom-editor .custom-field-actions button { background: transparent; border-color: transparent; color: var(--lt-muted); }
  body.lime-site.lime-site .label-editor #custom-editor .format-toggle input:checked+span,
  body.lime-site.lime-site .label-editor #custom-editor .alignment-icons button[aria-pressed="true"] { color: var(--lt-accent); background: var(--lt-selected); border-color: var(--lt-line-strong); }
  body.lime-site.lime-site .label-editor #custom-editor .format-toggle:hover input:not(:disabled)+span,
  body.lime-site.lime-site .label-editor #custom-editor .alignment-icons button:hover,
  body.lime-site.lime-site .label-editor #custom-editor .custom-field-actions button:not(:disabled):hover { background: var(--lt-soft); border-color: var(--lt-line); }
  body.lime-site.lime-site .label-editor .custom-icon-tooltip { background: #152b4b; color: #f6f8fc; border-radius: 5px; }

  /* A single chevron, consistently centred, replaces the old blue arrow well. */
  body.lime-site.lime-site .label-editor .editor-select-trigger { color: var(--lt-ink); background: var(--lt-panel); border-color: var(--lt-line); min-height: 48px; border-radius: 8px; }
  body.lime-site.lime-site .label-editor .editor-select-trigger>span:first-child { padding: 12px 14px; }
  body.lime-site.lime-site .label-editor .editor-select-arrow,
  body.lime-site.lime-site .label-editor .custom-field-name .custom-preset-toggle {
    position: relative;
    opacity: 1;
    color: var(--lt-muted);
    background: transparent;
    border-color: transparent;
    font-size: 0 !important;
  }
  body.lime-site.lime-site .label-editor .editor-select-arrow::after,
  body.lime-site.lime-site .label-editor .custom-field-name .custom-preset-toggle::after {
    content: "";
    position: absolute;
    width: 6px;
    height: 6px;
    left: calc(50% - 3px);
    top: calc(50% - 5px);
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
  }
  body.lime-site.lime-site .label-editor .custom-preset-menu { background: var(--lt-panel); border-color: var(--lt-line); box-shadow: 0 12px 28px #152b4b1c; border-radius: 9px; padding: 5px; }
  body.lime-site.lime-site .label-editor .editor-select-menu .custom-preset-menu button { background: var(--lt-panel); color: var(--lt-ink); }
  body.lime-site.lime-site .label-editor .editor-select-menu .custom-preset-menu button[aria-selected="true"] { background: var(--lt-selected); color: var(--lt-accent); }
  body.lime-site.lime-site .label-editor .custom-preset-menu button:hover { background: var(--lt-soft); }
  body.lime-site.lime-site .label-editor .clearable-value :is(.paste-value, .clear-value) { background: transparent; color: var(--lt-muted); }
  body.lime-site.lime-site .label-editor .clearable-value :is(.paste-value, .clear-value):hover { color: var(--lt-accent); background: var(--lt-soft); }
  body.lime-site.lime-site .label-editor .clearable-value:focus-within>input,
  body.lime-site.lime-site .label-editor .clearable-value:focus-within>textarea,
  body.lime-site.lime-site .label-editor .custom-field-name:focus-within,
  body.lime-site.lime-site .label-editor .editor-select-menu:focus-within .editor-select-trigger {
    border-color: var(--lt-accent);
    box-shadow: 0 0 0 3px #1456f51c;
    outline: none;
  }
  body.lime-site.lime-site .label-editor #preview {
    background-color: var(--lt-preview);
    background-image: radial-gradient(#869ab840 .8px, transparent .8px);
    background-size: 16px 16px;
    border: 1px solid var(--lt-line);
    border-radius: 10px;
    box-shadow: none;
  }
  body.lime-site.lime-site .label-editor .preview-panel { padding: 26px; }
  body.lime-site.lime-site .label-editor .actions { gap: 8px; margin-top: 20px; }
  body.lime-site.lime-site .label-editor .actions button { min-height: 43px; padding: 11px 15px; font-size: 13px; }
  body.lime-site.lime-site .label-editor .actions button:first-child,
  body.lime-site.lime-site .label-editor #batch-pdf-export {
    color: var(--lt-primary-ink);
    background: var(--lt-lime);
    border-color: var(--lt-lime);
    font-weight: 600;
  }
  body.lime-site.lime-site .label-editor .actions button:first-child:hover:not(:disabled),
  body.lime-site.lime-site .label-editor #batch-pdf-export:hover:not(:disabled) { background: var(--lt-primary-hover); border-color: var(--lt-primary-hover); }
  body.lime-site.lime-site .label-editor #batch-pdf-progress { background: #101927ec; color: #eef3fb; }
  body.lime-site.lime-site .label-editor .batch-pdf-panel input[type="file"]::file-selector-button { background: var(--lt-selected); color: var(--lt-accent); border-color: var(--lt-line); }

  /* Spreadsheet import and its independent per-row editor. */
  body.lime-site.lime-site .label-editor .excel-import { margin: 0; background: var(--lt-panel); color: var(--lt-ink); border: 1px solid var(--lt-line); border-radius: 14px; box-shadow: var(--lt-shadow); }
  body.lime-site.lime-site .label-editor .excel-panel { padding: 30px; }
  body.lime-site.lime-site .label-editor .excel-panel h3 { font-size: 22px; letter-spacing: -.5px; font-weight: 600; }
  body.lime-site.lime-site .label-editor .excel-panel>p { color: var(--lt-muted); font-size: 14px; line-height: 1.7; }
  body.lime-site.lime-site .label-editor .excel-tabs { background: var(--lt-soft); gap: 8px; padding: 10px; }
  body.lime-site.lime-site .label-editor .excel-tabs button[aria-pressed="true"] { background: var(--lt-lime); color: var(--lt-primary-ink); border-color: var(--lt-lime); }
  body.lime-site.lime-site .label-editor .excel-templates { margin-block: 20px; }
  body.lime-site.lime-site .label-editor .excel-templates a { background: var(--lt-soft); color: var(--lt-ink); border-color: var(--lt-line); border-radius: 7px; padding: 11px 16px; font-size: 13px; }
  body.lime-site.lime-site .label-editor .excel-templates a:hover { background: var(--lt-selected); border-color: var(--lt-line-strong); }
  body.lime-site.lime-site .label-editor .excel-upload { padding: 22px; background: var(--lt-soft); border: 1px dashed var(--lt-line-strong); border-radius: 10px; gap: 18px; margin: 24px 0; }
  body.lime-site.lime-site .label-editor .excel-panel label { color: var(--lt-muted); gap: 8px; font-size: 12px; font-weight: 500; }
  body.lime-site.lime-site .label-editor .excel-panel :is(input, select) { min-height: 45px; margin-top: 0; color: var(--lt-ink); background: var(--lt-panel); border-color: var(--lt-line); }
  body.lime-site.lime-site .label-editor .excel-panel input[type="file"] { font-size: 12px; padding: 7px; }
  body.lime-site.lime-site .label-editor .excel-panel input[type="file"]::file-selector-button { padding: 7px 11px; margin-right: 10px; background: var(--lt-selected); color: var(--lt-accent); border: 0; border-radius: 5px; font-family: inherit; font-size: 12px; font-weight: 500; line-height: 1.5; cursor: pointer; }
  body.lime-site.lime-site .label-editor .excel-panel summary { font-size: 13px; color: var(--lt-ink); }
  body.lime-site.lime-site .label-editor .excel-controls { gap: 10px; }
  body.lime-site.lime-site .label-editor .excel-controls>button { min-height: 43px; font-size: 13px; padding: 10px 15px; }
  body.lime-site.lime-site .label-editor #excel-download:not(:disabled) { background: var(--lt-lime); border-color: var(--lt-lime); color: var(--lt-primary-ink); font-weight: 600; }
  body.lime-site.lime-site .label-editor #excel-download:not(:disabled):hover { background: var(--lt-primary-hover); border-color: var(--lt-primary-hover); }
  body.lime-site.lime-site .label-editor .excel-layout-section { padding-top: 20px; border-top: 1px solid var(--lt-line); }
  body.lime-site.lime-site .label-editor .excel-layout-cards>button { border-radius: 9px; padding: 15px; background: var(--lt-panel); }
  body.lime-site.lime-site .label-editor .excel-layout-cards>button[aria-pressed="true"] { background: var(--lt-selected); border-color: var(--lt-line-strong); color: var(--lt-ink); }
  body.lime-site.lime-site .label-editor .excel-layout-cards small { color: var(--lt-muted); opacity: 1; }
  body.lime-site.lime-site .label-editor .excel-layout-icon { color: var(--lt-accent); border-radius: 4px; }
  body.lime-site.lime-site .label-editor .excel-rows { scrollbar-width: thin; scrollbar-color: var(--lt-line-strong) transparent; }
  body.lime-site.lime-site .label-editor .excel-rows button { background: var(--lt-soft); border-color: transparent; border-radius: 7px; color: var(--lt-ink); padding: 14px 12px; }
  body.lime-site.lime-site .label-editor .excel-rows button[aria-pressed="true"] { background: var(--lt-selected); border-color: var(--lt-line-strong); color: var(--lt-accent); }
  body.lime-site.lime-site .label-editor .excel-label { background: var(--lt-preview); border: 1px solid var(--lt-line); border-radius: 9px; }
  body.lime-site.lime-site .label-editor :is(.excel-preview, .excel-row-editor) h3 { font-size: 17px; letter-spacing: -.3px; }
  body.lime-site.lime-site .label-editor .excel-row-editor { border-color: var(--lt-line); }
  body.lime-site.lime-site .label-editor .excel-combo { border-color: var(--lt-line); background: var(--lt-panel); color: var(--lt-ink); }
  body.lime-site.lime-site .label-editor .excel-combo:focus-within { outline-color: var(--lt-accent); }
  body.lime-site.lime-site .label-editor .excel-combo input { min-height: 0; }
  body.lime-site.lime-site .label-editor .excel-options { color: var(--lt-ink); background: var(--lt-panel); border-color: var(--lt-line); box-shadow: 0 12px 28px #152b4b1c; }
  body.lime-site.lime-site .label-editor .excel-options button:hover { background: var(--lt-selected); }
  body.lime-site.lime-site .label-editor .excel-error { color: var(--lt-error); }

  /* Standalone Code 128, Code 39, EAN and QR tools. */
  body.lime-site.lime-site .format-generator { padding: clamp(24px, 3.4vw, 44px); border-color: var(--lt-line); border-radius: 14px; background: var(--lt-panel); box-shadow: var(--lt-shadow); }
  body.lime-site.lime-site .format-generator h2 { font-size: clamp(24px, 2.4vw, 31px); letter-spacing: -.85px; font-weight: 500; }
  body.lime-site.lime-site .format-generator>p { color: var(--lt-muted); }
  body.lime-site.lime-site .format-generator__layout { gap: 34px; margin-top: 24px; }
  body.lime-site.lime-site .format-generator__field { color: var(--lt-ink); font-weight: 500; font-size: 13px; gap: 10px; }
  body.lime-site.lime-site .format-generator :is(input, textarea) { min-height: 50px; padding: 13px 14px; background: var(--lt-bg); }
  body.lime-site.lime-site .format-generator textarea { min-height: 120px; }
  body.lime-site.lime-site .format-generator :is(input, textarea)[aria-invalid="true"] { border-color: var(--lt-error); background: var(--lt-error-soft); }
  body.lime-site.lime-site .format-generator__form>button { min-height: 50px; color: var(--lt-primary-ink); background: var(--lt-lime); border-color: var(--lt-lime); font-weight: 600; }
  body.lime-site.lime-site .format-generator__form>button:hover:not(:disabled) { background: var(--lt-primary-hover); border-color: var(--lt-primary-hover); }
  body.lime-site.lime-site .format-generator__preview { padding: 22px; background: var(--lt-soft); border-color: var(--lt-line); border-radius: 10px; }
  body.lime-site.lime-site .format-generator__image { min-height: 175px; border-radius: 6px; background: #fff; }
  body.lime-site.lime-site .format-generator__downloads { gap: 9px; margin-top: 20px; }
  body.lime-site.lime-site .format-generator__downloads button { background: var(--lt-panel); color: var(--lt-ink); border-color: var(--lt-line); font-size: 13px; font-weight: 500; }
  body.lime-site.lime-site .format-generator__downloads button:hover:not(:disabled) { background: var(--lt-selected); border-color: var(--lt-line-strong); }
  body.lime-site.lime-site .format-generator__downloads button:first-child { background: var(--lt-lime); border-color: var(--lt-lime); color: var(--lt-primary-ink); }
  body.lime-site.lime-site .format-generator__downloads button:first-child:hover:not(:disabled) { background: var(--lt-primary-hover); border-color: var(--lt-primary-hover); }
  body.lime-site.lime-site .format-generator .format-generator__status { color: var(--lt-accent); }
  body.lime-site.lime-site .format-generator .format-generator__status[data-error="true"] { color: var(--lt-error); }
  body.lime-site.lime-site .format-generator .format-generator__privacy { color: var(--lt-muted); border-color: var(--lt-line); }
  body.lime-site.lime-site .ean-tool { background: var(--lt-soft); border: 1px solid var(--lt-line); border-radius: 12px; box-shadow: none; padding: 28px; }
  body.lime-site.lime-site .ean-tool :is(.ean-tool__intro, .ean-tool__hint, .ean-tool__privacy, .ean-tool__notice) { color: var(--lt-muted); }
  body.lime-site.lime-site .ean-tool :is(.ean-tool__field, .ean-tool__notice strong) { color: var(--lt-ink); }
  body.lime-site.lime-site .ean-tool .ean-tool__button { background: var(--lt-lime); border-color: var(--lt-lime); color: var(--lt-primary-ink); font-weight: 600; }
  body.lime-site.lime-site .ean-tool .ean-tool__button:hover { background: var(--lt-primary-hover); border-color: var(--lt-primary-hover); }
  body.lime-site.lime-site .ean-tool__result { color: var(--lt-ink); background: var(--lt-panel); border-color: var(--lt-line); border-radius: 7px; }
  body.lime-site.lime-site .ean-tool__result--success { color: var(--lt-accent); background: var(--lt-selected); border-color: var(--lt-line-strong); }
  body.lime-site.lime-site .ean-tool__result--error,
  body.lime-site.lime-site .ean-tool input[aria-invalid="true"] { color: var(--lt-error); background: var(--lt-error-soft); border-color: var(--lt-error); box-shadow: none; }
  body.lime-site.lime-site .ean-tool__notice { border-color: var(--lt-line); }
}

@media screen and (min-width: 1101px) {
  body.lime-site.lime-site .label-editor .workspace { grid-template-columns: minmax(300px, .78fr) minmax(0, 1.22fr); }
  body.lime-site.lime-site .label-editor .preview-panel { top: 100px; }
}
@media screen and (max-width: 1100px) {
  body.lime-site.lime-site .label-editor .excel-panel { padding: 24px; }
  body.lime-site.lime-site .label-editor .excel-results { grid-template-columns: 170px minmax(0, 1fr); }
  body.lime-site.lime-site .label-editor .excel-row-editor { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--lt-line); padding: 22px 0 0; }
  body.lime-site.lime-site .format-generator__layout { gap: 24px; }
}
@media screen and (max-width: 800px) {
  body.lime-site.lime-site .label-editor .workspace { grid-template-columns: minmax(0, 1fr); }
  body.lime-site.lime-site .label-editor .preview-panel { position: static; }
  body.lime-site.lime-site .label-editor :is(.workspace>aside, .preview-panel) { padding: 22px; }
}
@media screen and (max-width: 600px) {
  body.lime-site.lime-site .label-editor { width: calc(100% - 36px); margin-inline: auto; }
  body.lime-site.lime-site .label-editor .editor-main { padding: 12px 0 24px; }
  body.lime-site.lime-site .label-editor .choice-heading { font-size: 20px; }
  body.lime-site.lime-site .label-editor .size-controls .size-picker { max-width: none; flex-basis: 190px; }
  body.lime-site.lime-site .label-editor .size-controls>button { flex: 0 0 auto; }
  body.lime-site.lime-site .label-editor #layouts { gap: 10px; }
  body.lime-site.lime-site .label-editor #layouts>button { gap: 0 14px; border-radius: 9px; }
  body.lime-site.lime-site .label-editor #layouts .layout-thumbnail { height: 130px; }
  body.lime-site.lime-site .label-editor #parent-categories button { padding: 11px 13px; min-height: 42px; }
  body.lime-site.lime-site .label-editor :is(.workspace>aside, .preview-panel, .parent-category-panel) { padding: 18px; border-radius: 10px; }
  body.lime-site.lime-site .label-editor .panel-title h2 { font-size: 17px; }
  body.lime-site.lime-site .label-editor .panel-title { flex-wrap: wrap; gap: 10px; }
  body.lime-site.lime-site .label-editor .actions button { flex: 1 1 90px; }
  body.lime-site.lime-site .label-editor .excel-panel { padding: 18px; }
  body.lime-site.lime-site .label-editor .excel-panel h3 { font-size: 20px; }
  body.lime-site.lime-site .label-editor .excel-upload { padding: 16px; grid-template-columns: minmax(0, 1fr); }
  body.lime-site.lime-site .label-editor .excel-layout-cards { grid-template-columns: minmax(0, 1fr); }
  body.lime-site.lime-site .label-editor .excel-results { grid-template-columns: minmax(0, 1fr); }
  body.lime-site.lime-site .label-editor .excel-row-editor { grid-column: auto; }
  body.lime-site.lime-site .label-editor .excel-controls { gap: 8px; }
  body.lime-site.lime-site .label-editor .excel-controls>button { flex: 1 1 135px; min-height: 45px; }
  body.lime-site.lime-site .label-editor .excel-templates a { flex: 1 1 135px; justify-content: center; }
  body.lime-site.lime-site .label-editor .excel-extra { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) 32px; gap: 6px; }
  body.lime-site.lime-site .format-generator { padding: 23px 18px; border-radius: 10px; }
  body.lime-site.lime-site .format-generator__preview { padding: 16px; }
  body.lime-site.lime-site .format-generator__form { grid-template-columns: minmax(0, 1fr); }
  body.lime-site.lime-site .format-generator__form>button { grid-column: 1; grid-row: 3; }
  body.lime-site.lime-site .format-generator__downloads button { flex-basis: 110px; }
  body.lime-site.lime-site .ean-tool { padding: 22px 18px; }
}
@media screen and (prefers-reduced-motion: reduce) {
  body.lime-site.lime-site :is(.label-editor, .format-generator, .ean-tool) *,
  body.lime-site.lime-site :is(.label-editor, .format-generator, .ean-tool) *::before,
  body.lime-site.lime-site :is(.label-editor, .format-generator, .ean-tool) *::after { transition: none !important; }
}
