/* «Генератор этикеток» /generator/ (owner 2026-11-19): the approved mock-up «Генератор этикеток — макет (Codex 2026-11-19)».
   Owner's changes of 19.11: «Размер этикетки» as wide as its neighbours; select arrows centred as in the site's other selects. */
.g-symbols{position:absolute;width:0;height:0;overflow:hidden}
.gen{max-width:1408px;margin:auto;padding:42px 48px 64px;font-size:15px;line-height:1.45}
.gen button{font:inherit;color:inherit;border:0;background:none;margin:0}.gen button:disabled{opacity:.45;cursor:default}
.gen :focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.gen h1,.gen h2,.gen p{margin:0}
.gen h1{font-size:48px;letter-spacing:-1.6px;font-weight:650;line-height:1.08}
.g-ico{display:block;width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
/* Owner 2026-11-19: no line under the title («Просто генератор этикеток и все»); the form keeps the same distance. */
.gen>h1{margin-bottom:30px}
.g-work{display:grid;grid-template-columns:minmax(0,1fr) 418px;align-items:start;gap:24px}
.g-stack{display:grid;gap:12px;min-width:0}
.g-card,.g-preview{background:var(--alt);border-radius:24px;min-width:0}
.gen summary{list-style:none;cursor:pointer}.gen summary::-webkit-details-marker{display:none}
.g-card>summary,.g-preview-head{display:flex;align-items:center;gap:14px;padding:20px 22px}
.g-marker{width:38px;height:38px;display:grid;place-items:center;flex:none;background:var(--card);border-radius:12px;color:var(--accent)}
.g-marker .g-ico{width:21px;height:21px}
.g-head{min-width:0;flex:1}.g-head strong,.gen h2{display:block;font-size:21px;letter-spacing:-.55px;font-weight:650;line-height:1.25}
.g-sub{display:block;font-size:13px;color:var(--muted);margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.g-chev{transform:rotate(-90deg);color:var(--muted);transition:transform .16s}.g-card[open]>summary .g-chev{transform:none}
.g-body{background:var(--card);margin:0 4px 4px;padding:16px 17px;border:1px solid var(--line);border-radius:20px}
.g-card[open]{padding-bottom:1px}
.g-seller,.g-actions,.g-paging,.g-bottom,.g-product-top,.g-bar{display:flex;align-items:center;gap:10px}
.g-seller{flex-wrap:wrap;padding-bottom:14px;border-bottom:1px solid var(--line);margin-bottom:12px}
.g-check{display:inline-flex;gap:8px;align-items:center;font-size:14px;cursor:pointer}
.gen input[type="checkbox"]{display:inline-block;accent-color:var(--fill);margin:0;padding:0;width:16px;height:16px;flex:none;cursor:pointer}
.g-field{position:relative;min-width:0}
.g-field label,.g-group{display:block;font-size:12px;font-weight:550;color:var(--muted);margin-bottom:4px}
.gen .g-field input,.gen .g-field select{display:block;width:100%;min-width:0;height:38px;margin:0;border:1px solid var(--field);border-radius:12px;background-color:var(--bg);color:var(--text);padding:0 9px;font-size:14px;line-height:1.2}
/* Select arrows as in the site's other selects (owner 19.11): centred, 14 px from the right edge. */
.gen .g-field select{-webkit-appearance:none;appearance:none;padding-right:36px;background:var(--bg) var(--select-chevron) no-repeat right 9px center/12px 12px;cursor:pointer}

.g-field-label{display:flex;align-items:center;gap:4px;height:21px;margin-bottom:4px}.g-field-label label{margin:0;white-space:nowrap}
.g-field-label .g-help{width:16px;height:16px;font-size:11px;flex:none}
.gen .g-field input[aria-invalid="true"]{border-color:var(--err)}.g-err{font-size:12px;line-height:1.3;color:var(--err);margin-top:4px}
#g-shared-wrap{width:220px;margin-left:auto}.g-seller .g-help{margin-left:-4px}
.g-product{padding:10px 0;border-bottom:1px solid var(--line)}
.g-grid{display:grid;grid-template-columns:1.55fr 1.48fr 1fr .91fr .67fr .96fr .78fr 28px;gap:6px;align-items:start}
.g-grid.g-shared{grid-template-columns:1.55fr 1.65fr 1.03fr 1.04fr .69fr .85fr 28px}
.gen .g-grid>.g-ib{align-self:start;margin-top:25px;width:28px;height:38px}
.g-product-top{display:none}.g-bar{justify-content:space-between;margin-top:14px}.g-bar-start{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.g-fields-menu{position:relative}.g-menu{position:absolute;z-index:30;top:calc(100% + 6px);left:0;width:min(360px,calc(100vw - 32px));grid-template-columns:1fr;gap:10px;padding:12px 16px;background:var(--card);border:1px solid var(--line);border-radius:14px;box-shadow:0 10px 30px rgba(0,0,0,.18)}.g-menu[hidden]{display:none}.g-menu.g-checks{grid-template-columns:1fr}
.g-btn,.g-link,.g-ib{display:inline-flex;align-items:center;justify-content:center;gap:8px;cursor:pointer}
.gen .g-btn{min-height:44px;padding:0 18px;font-size:15px;font-weight:600;border-radius:14px;background:var(--alt);line-height:1.2}
.gen .g-primary{background:var(--fill);color:#fff}.gen .g-primary:hover:enabled{filter:brightness(1.08)}
.gen .g-secondary:hover:enabled,.gen .g-ib:hover:enabled{background:var(--line)}
.gen .g-link{padding:6px 2px;font-size:13px;color:var(--muted)}.gen .g-link:hover:enabled{color:var(--accent)}
.gen .g-add{color:var(--accent);background:var(--soft);font-size:14px;min-height:38px}
.gen .g-ib{width:32px;height:32px;border-radius:9px;padding:0;color:var(--muted)}.g-ib .g-ico{width:16px;height:16px}
.gen .g-help{display:inline-grid;place-items:center;background:var(--card);border:1px solid var(--field);border-radius:50%;width:19px;height:19px;padding:0;color:var(--muted);font-size:12px;font-weight:650;cursor:pointer}
#g-tip{position:fixed;z-index:60;max-width:min(260px,88vw);padding:10px 13px;background:var(--card);border:1px solid var(--field);color:var(--text);border-radius:12px;box-shadow:var(--shadow);font-size:13px;pointer-events:none}
.g-form,.g-extra,.g-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px}
/* Owner 2026-11-19 («почему… страна производства… ячейка самая огромная?»): the extra fields take the columns of the row above. */
.g-extra{margin-top:10px;gap:6px;grid-template-columns:1.55fr 1.48fr 1fr .91fr .67fr .96fr .78fr 28px}.g-extra.g-shared{grid-template-columns:1.55fr 1.65fr 1.03fr 1.04fr .69fr .85fr 28px}
.g-full{grid-column:1/-1}.g-group{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:600;color:var(--text);margin-bottom:7px}
.g-poses{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.gen .g-pose{display:flex;align-items:center;justify-content:center;gap:5px;flex-direction:column;padding:8px 4px;border:1px solid var(--line);border-radius:12px;color:var(--muted);font-size:13px;cursor:pointer}
.gen .g-pose[aria-pressed="true"]{color:var(--accent);border-color:var(--accent);background:var(--soft)}.g-pose svg{width:42px;height:28px}.g-seller>.g-check{font-weight:500}
.g-more{margin-top:14px;border-top:1px solid var(--line);padding-top:10px;font-size:13px;color:var(--muted)}.g-more summary{color:var(--accent);font-weight:550}.g-more p{margin-top:6px!important}
.g-preview{position:sticky;top:74px;border:1px solid var(--line);background:var(--card);overflow:hidden}
.g-preview-head{padding:18px 18px 8px}.g-preview-head .g-marker{background:var(--soft)}.g-preview-head{margin-bottom:12px}.g-preview-head .g-spec{margin-left:auto}.g-spec{font-size:12px;color:var(--muted)}
.g-proof{margin:0 12px;background-color:var(--alt);border-radius:16px;padding:18px 14px 16px;text-align:center}
/* Owner 2026-11-19: a taller preview; the whole card still ends above «Написать в поддержку» (shorter windows: a smaller preview). */
.g-mount{height:clamp(120px,calc(100vh - 600px),540px);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px}
.g-paper{max-width:100%;max-height:100%;display:block;filter:drop-shadow(0 2px 4px rgba(28,27,26,.15))}
.g-dim{display:flex;align-items:center;gap:7px;font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}
.g-dim:before,.g-dim:after{content:"";display:block;width:24px;height:1px;background:var(--field)}
.g-paging{justify-content:center;gap:12px;font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}.gen .g-paging button{background:var(--card)}
.g-foot{padding:18px}
.g-actions .g-btn{flex:1}.g-bottom{display:none!important}.g-empty{padding:32px 12px;font-size:14px;color:var(--muted)}
#g-notice{font-size:13px;color:var(--err);margin-top:8px}#g-notice:empty{display:none}#g-notice.g-success{color:var(--ok)}
@keyframes g-spin{to{transform:rotate(360deg)}}.g-spinner{width:16px;height:16px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:g-spin .8s linear infinite}
@media(prefers-reduced-motion:reduce){.gen *{animation:none!important;transition:none!important}}
@media(max-width:800px){
 .g-work{display:block}.g-preview{position:static;margin-top:16px}
 .gen{padding:28px 14px 0}
 .gen h1{font-size:34px;letter-spacing:-1.1px}.gen>h1{margin-bottom:22px}.g-mount{height:min(380px,60vh)}
 .g-card>summary{padding:14px;gap:10px}.g-head strong,.gen h2{font-size:19px}.g-sub{font-size:12px}.g-body{padding:12px}
 .g-product{border:1px solid var(--line);border-radius:14px;padding:10px;margin-top:10px}
 .g-product-top{display:flex;justify-content:space-between;font-weight:600;font-size:14px;margin-bottom:6px}
 .g-grid,.g-grid.g-shared{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.g-grid>.g-ib{display:none}
 .gen .g-field input,.gen .g-field select{font-size:16px;height:42px}.g-extra,.g-extra.g-shared{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 #g-shared-wrap{width:100%;margin:0}.g-seller{border:0;padding:0}.g-checks{grid-template-columns:1fr}.g-bar{gap:8px;position:relative}.g-bar-start{flex:1;flex-wrap:nowrap;gap:8px}.g-bar-start>.g-add,.g-fields-menu{flex:1}.g-fields-menu{position:static}.g-fields-menu>.g-add{width:100%}.gen .g-bar .g-add{padding:6px 10px;line-height:1.2}.g-menu{width:auto;right:0}
 .g-bottom{display:flex!important;position:sticky;bottom:0;z-index:40;margin:22px -14px 0;justify-content:space-between;background:var(--bg);border-top:1px solid var(--line);padding:10px 16px max(10px,env(safe-area-inset-bottom));font-size:13px}.gen .g-bottom .g-btn{min-height:42px}
 .g-actions{display:none}.g-foot{padding:15px}.g-proof{margin:0 9px}
 body:has(.g-bottom) .sc-fab{bottom:calc(var(--sc-bar-height, 64px) + 12px)}
}

.gen .g-add svg{width:18px;height:18px}

/* Redesign 2026-11-25 (Макеты/generator.html): the title moves to the page head; white cards with a line, coloured icon tiles
   (products blue, label orange, design violet, preview orange), the site's container width and buttons. */
.gen{max-width:1440px;padding:40px 64px 96px}
.g-card,.g-preview{background:var(--card);border:1px solid var(--line);border-radius:24px}
.g-stack{gap:16px}
.g-card>summary,.g-preview-head{padding:22px 26px;gap:16px}
.g-marker{width:52px;height:52px;border-radius:14px}
.g-marker .g-ico{width:26px;height:26px}
.g-stack>.g-card:nth-child(1) .g-marker{background:var(--t-bl);color:var(--i-bl)}
.g-stack>.g-card:nth-child(2) .g-marker{background:var(--t-or);color:var(--i-or)}
.g-stack>.g-card:nth-child(3) .g-marker{background:var(--t-vi);color:var(--i-vi)}
.g-preview-head .g-marker{background:var(--t-or);color:var(--i-or)}
.g-head strong,.gen h2{font-size:20px;font-weight:700;letter-spacing:-.02em}
.g-sub{font-size:14px}
.g-body{background:transparent;margin:0;border:0;border-top:1px solid var(--line);border-radius:0;padding:22px 26px}
.g-card[open]{padding-bottom:0}
.gen .g-field input,.gen .g-field select{height:44px;border-radius:12px;padding:0 12px;font-size:15px}
.gen .g-btn{min-height:40px;border-radius:10px;font-weight:700}
.gen .g-primary{min-height:48px;border-radius:12px;font-size:16px;box-shadow:0 8px 20px -10px rgba(210,67,0,.8)}
.g-preview{top:96px}
.g-preview-head{margin-bottom:0;padding-bottom:18px}
.g-proof{margin:0 24px;border-radius:18px;padding:28px 24px 18px}
.g-foot{padding:18px 24px 24px}
.gen .promo{margin-top:40px}
@media (max-width:1180px){.gen{padding:32px 32px 72px}}
@media (max-width:800px){.gen{padding:24px 16px 56px}.g-card>summary,.g-preview-head{padding:16px 18px}.g-body{padding:16px 18px}.g-marker{width:44px;height:44px;border-radius:12px}.g-proof{margin:0 14px}.g-foot{padding:16px}}
@media (max-width:420px){.g-bar{flex-wrap:wrap;row-gap:4px}}
