/* DRR DAMSON — końcowa warstwa spójności wizualnej, 2026-08 */
:root {
  --drr-final-bg: #071214;
  --drr-final-surface: #0b1d1f;
  --drr-final-surface-2: #102729;
  --drr-final-border: rgba(119, 207, 185, .20);
  --drr-final-text: #edf8f5;
  --drr-final-muted: #a9c5be;
  --drr-final-mint: #72d8bd;
  --drr-final-gold: #dfbd72;
  --drr-final-danger: #ff817a;
  --drr-final-radius: 18px;
  --drr-final-shadow: 0 18px 55px rgba(0, 0, 0, .28);
}

/* V11 — czytelność jasnych kart, formularzy, katalogu i narzędzi. */
body.stage19-b2b :where(.stage19-section,.stage19-trust,.b2b-package,.b2b-audience-grid article),
body.stage19-knowledge :where(.stage19-section,.stage19-trust),
body.stage21-creators :where(.creators-section,.creators-tool-card,.creators-trust,.creators-generator-grid a,.creators-path-grid article,.creators-faq),
body.stage22-realizations :where(.real-stats,.real-gallery,.real-card,.real-process),
body.stage23-offer :where(.offer-quick,.offer-catalog,.offer-process,.offer-details,.product-card,.modal-card){color:#302a24!important}

body.stage19-b2b :where(.stage19-section,.stage19-trust,.b2b-package,.b2b-audience-grid article) :where(h2,h3,strong),
body.stage19-knowledge :where(.stage19-section,.stage19-trust) :where(h2,h3,strong),
body.stage21-creators :where(.creators-section,.creators-tool-card,.creators-trust,.creators-generator-grid a,.creators-path-grid article,.creators-faq) :where(h2,h3,strong),
body.stage22-realizations :where(.real-stats,.real-gallery,.real-card,.real-process) :where(h2,h3,strong),
body.stage23-offer :where(.offer-quick,.offer-catalog,.offer-process,.offer-details,.product-card,.modal-card) :where(h2,h3,strong){color:#342517!important}

body.stage19-b2b :where(.stage19-section,.stage19-trust,.b2b-package,.b2b-audience-grid article) :where(p,li,small),
body.stage19-knowledge :where(.stage19-section,.stage19-trust) :where(p,li,small),
body.stage21-creators :where(.creators-section,.creators-tool-card,.creators-trust,.creators-generator-grid a,.creators-path-grid article,.creators-faq) :where(p,li,small),
body.stage22-realizations :where(.real-stats,.real-gallery,.real-card,.real-process) :where(p,li,small),
body.stage23-offer :where(.offer-quick,.offer-catalog,.offer-process,.offer-details,.product-card,.modal-card) :where(p,li,small){color:#5c554d!important;opacity:1!important}

body.stage19-b2b .stage19-heading p:not(.stage19-eyebrow),body.stage19-knowledge .stage19-section :where(p,li){font-size:14px!important;line-height:1.6!important}
body.stage19-b2b .b2b-audience-grid p{font-size:13px!important}
body.stage19-b2b .b2b-package>p{min-height:64px;font-size:12px!important}
body.stage19-b2b .b2b-package li{font-size:12px!important;line-height:1.45!important}
body.stage19-b2b .b2b-package .btn{font-size:11px!important}
body.stage19-b2b .stage19-eyebrow,body.stage19-knowledge .stage19-eyebrow{color:#8a5a17!important;font-size:11px!important}
body.stage19-b2b .section-link{color:#8a5a17!important;font-weight:900}
body.stage19-knowledge :where(.stage19-section,.stage19-trust) small{font-size:12px!important}

body.stage17-contact :where(label,.contact-field__hint,.contact-consent,small),body.stage20-quote :where(label,.quote-field__hint,.quote-consent,small){font-size:13px!important;line-height:1.5!important;opacity:1!important}
body.stage17-contact :where(input,select,textarea),body.stage20-quote :where(input,select,textarea){font-size:16px!important}
body.stage17-contact :where(.contact-card,.contact-form-card,.contact-trust),body.stage20-quote :where(.quote-form-card,.quote-form-section,.quote-trust){color:#342f29!important}
body.stage17-contact :where(.contact-card,.contact-form-card,.contact-trust) :where(p,li,small,label),body.stage20-quote :where(.quote-form-card,.quote-form-section,.quote-trust) :where(p,li,small,label){color:#5c554d!important}

body.stage21-creators :where(.creators-tool-card,.creators-path-grid article,.creators-faq) :where(p,li){font-size:13px!important;line-height:1.6!important}
body.stage21-creators :where(.creators-tool-card,.creators-trust,.creators-generator-grid,.creators-filter__buttons,.creators-console) small{font-size:12px!important}
body.stage21-creators :where(.creators-filter__buttons button,.creators-task-list b,.creators-generator-grid strong){font-size:12px!important}
body.stage22-realizations :where(.real-card__body p,.real-process p,.real-section-heading p){font-size:13px!important;line-height:1.6!important}
body.stage22-realizations :where(.real-filters button,.real-card__label,.real-card__actions a,.real-card__actions button,.real-stats small){font-size:12px!important}

body.stage23-offer :where(.product-short,.offer-process__steps p,.offer-details__content p,.modal-desc){font-size:13px!important;line-height:1.55!important}
body.stage23-offer :where(.offer-quick__grid span,.tree-root,.tree-main,.tree-sub,.offer-results-meta p,.catalog-breadcrumb,.stage23-results-head p,.stage23-results-head span,.catalog-pagination__info){font-size:12px!important}
body.stage23-offer :where(.brand-pill,.badge,.tree-root em,.tree-main em,.tree-sub em,.tree-meta span,.tree-section-label){font-size:10px!important}
body.stage23-offer :where(.actions a,.actions button,.buy-row a,.empty-state button){min-height:40px;font-size:11px!important}
body.stage23-offer .product-title{font-size:14px!important;line-height:1.35!important}

body.tool-clean-page :where(label,.mini,.info,.filehint,.muted-note,.field .val,.stat .k){font-size:13px!important;line-height:1.45!important;opacity:1!important}
body.tool-clean-page :where(input,select,textarea){font-size:16px!important}
body.tool-clean-page :where(button,.btn,.boxgen-btn){font-size:12px}
body.drr-generator-basics .preview svg :where(path,circle,line,polyline,polygon,rect){vector-effect:non-scaling-stroke;stroke-width:1.1px!important}

/* Dogłębny audyt: osobny hub tematów zamiast przypadkowej kopii strony głównej. */
.drr-topic-hub{padding-top:28px;padding-bottom:56px}
.drr-topic-crumb{display:flex;align-items:center;gap:10px;margin:0 0 18px;color:#56706a;font-size:14px}
.drr-topic-crumb a{color:#0f6a59;font-weight:800;text-decoration:none}
.drr-topic-hero{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(250px,.7fr);gap:28px;align-items:center;padding:clamp(28px,5vw,58px);border-radius:28px;background:radial-gradient(circle at 92% 12%,rgba(224,179,83,.24),transparent 28%),linear-gradient(135deg,#08231f,#071513);color:#fff;box-shadow:0 24px 70px rgba(2,19,16,.18)}
.drr-topic-eyebrow{margin:0 0 10px;color:#dcb75f;font-size:13px;font-weight:900;letter-spacing:.12em;text-transform:uppercase}
.drr-topic-hero h1{max-width:820px;margin:0;font-family:Georgia,serif;font-size:clamp(38px,6vw,72px);line-height:1.02;letter-spacing:-.035em}
.drr-topic-hero h1 span{display:block;color:#f1cf7b}
.drr-topic-hero>div>p:not(.drr-topic-eyebrow){max-width:760px;margin:22px 0 0;color:#d6ebe5;font-size:18px;line-height:1.7}
.drr-topic-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:26px}
.drr-topic-hero aside{padding:24px;border:1px solid rgba(255,255,255,.14);border-radius:20px;background:rgba(255,255,255,.07)}
.drr-topic-hero aside strong{display:block;margin-bottom:10px;color:#f1cf7b;font-size:18px}
.drr-topic-hero aside ul{margin:0;padding-left:20px;color:#e2f1ed;line-height:1.85}
.drr-topic-section{padding-top:54px}
.drr-topic-heading{display:flex;align-items:end;justify-content:space-between;gap:28px;margin-bottom:24px}
.drr-topic-heading h2,.drr-topic-cta h2{margin:0;color:#0a2a24;font-family:Georgia,serif;font-size:clamp(30px,4vw,48px);line-height:1.08}
.drr-topic-heading>p{max-width:520px;margin:0;color:#536862;line-height:1.7}
.drr-topic-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.drr-topic-grid article{display:flex;min-height:245px;flex-direction:column;padding:24px;border:1px solid #d9e5e1;border-radius:20px;background:#fff;box-shadow:0 12px 34px rgba(11,46,39,.07);transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
.drr-topic-grid article:hover{transform:translateY(-3px);border-color:#d9b25b;box-shadow:0 18px 42px rgba(11,46,39,.12)}
.drr-topic-grid article>i{display:grid;width:46px;height:46px;place-items:center;margin-bottom:18px;border-radius:14px;background:#eaf5f1;color:#116a59;font-size:20px}
.drr-topic-grid h3{margin:0 0 10px;font-size:21px;line-height:1.25}
.drr-topic-grid h3 a{color:#0a2a24;text-decoration:none}
.drr-topic-grid p{margin:0 0 18px;color:#5d6f69;line-height:1.65}
.drr-topic-grid article>a{margin-top:auto;color:#9a6c12;font-weight:900;text-decoration:none}
.drr-topic-cta{display:flex;align-items:center;justify-content:space-between;gap:30px;margin-top:46px;padding:32px;border:1px solid #d7e5df;border-radius:24px;background:linear-gradient(135deg,#f7fbf9,#fff7e7)}
.drr-topic-cta p:not(.drr-topic-eyebrow){max-width:760px;margin:12px 0 0;color:#526761;line-height:1.7}
.drr-topic-cta>.btn{flex:0 0 auto}
@media (max-width:980px){.drr-topic-hero{grid-template-columns:1fr}.drr-topic-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.drr-topic-heading,.drr-topic-cta{align-items:flex-start;flex-direction:column}}
@media (max-width:620px){.drr-topic-hub{padding-top:18px;padding-bottom:36px}.drr-topic-hero{padding:26px 20px;border-radius:20px}.drr-topic-hero h1{font-size:38px}.drr-topic-hero>div>p:not(.drr-topic-eyebrow){font-size:16px}.drr-topic-grid{grid-template-columns:1fr}.drr-topic-grid article{min-height:0}.drr-topic-cta{padding:24px}.drr-topic-cta>.btn{width:100%}}

html { scroll-behavior: smooth; color-scheme: dark; }
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--drr-final-bg);
  color: var(--drr-final-text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video, canvas { max-width: 100%; }
img { height: auto; }
main, section, article, aside, nav, header, footer { min-width: 0; }
a { text-underline-offset: .18em; }
:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid rgba(114, 216, 189, .72) !important;
  outline-offset: 3px;
}

/* Wspólna szerokość i rytm — niezależnie od generacji szablonu. */
:where(.container, .stage15-container, .wrap, .site-container) {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}
:where(main, .page-main, .site-main) { overflow-wrap: anywhere; }
:where(h1, h2, h3) { line-height: 1.12; text-wrap: balance; }
:where(p, li) { text-wrap: pretty; }

/* Nagłówki i stopki z różnych etapów dostają tę samą temperaturę kolorów. */
:where(.brand-header, .site-header, .main-header, header.header, .navbar, .main-nav, .top-nav) {
  border-color: var(--drr-final-border) !important;
}
:where(.main-nav, .navbar, .top-nav) {
  background: rgba(5, 20, 21, .96) !important;
  backdrop-filter: blur(14px);
}
:where(.main-nav a, .navbar a, .top-nav a, .nav-links a) {
  border-radius: 10px;
  transition: color .18s ease, background-color .18s ease, transform .18s ease;
}
:where(.main-nav a, .navbar a, .top-nav a, .nav-links a):hover {
  color: #fff !important;
  background: rgba(114, 216, 189, .10);
}

/* Starsze nagłówki (forum, kubki, projekty) zachowują ten sam ciemny pasek nawigacji. */
.main-nav-v2 {
  background: #0a1b1c !important;
  border-block-color: var(--drr-final-border) !important;
}
.main-nav-v2 .nav-v2-list {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: center !important;
  gap: 2px !important;
}
.main-nav-v2 .nav-v2-list > li > a {
  min-height: 48px !important;
  padding: 13px 10px !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: transparent !important;
  color: #edf8f5 !important;
  font-size: .82rem !important;
  white-space: nowrap !important;
}
.main-nav-v2 .nav-v2-list > li > a:hover,
.main-nav-v2 .nav-v2-list > li > a[aria-current="page"] {
  background: rgba(223, 189, 114, .12) !important;
  color: var(--drr-final-gold) !important;
}
:where(.site-footer, footer.footer, .footer) {
  border-top: 1px solid var(--drr-final-border) !important;
  background: #051012 !important;
}
:where(.site-footer a, footer.footer a, .footer a):hover { color: var(--drr-final-gold) !important; }

/* Karty, panele i kafelki — jeden materiał zamiast pięciu przypadkowych. */
:where(
  .card, .panel, .forum-panel, .forum-note, .project-card,
  .quote-form-card, .quote-side-card, .contact-form-card, .contact-side-card,
  .stage19-section, .b2b-form-card, .category-card, .tool-card,
  .product-card, .knowledge-card, .service-card, .status-box
) {
  border-color: var(--drr-final-border) !important;
  box-shadow: var(--drr-final-shadow);
}
:where(.card, .panel, .forum-panel, .quote-side-card, .contact-side-card, .tool-card, .knowledge-card) {
  border-radius: var(--drr-final-radius) !important;
}

/* Forum: czytelność po wielu historycznych warstwach CSS. */
body.drr-forum .forum-hero h1 { color: #fffaf0 !important; }
body.drr-forum .forum-hero .forum-lead { color: #c8ddd7 !important; }
body.drr-forum .forum-panel :where(h2, h3),
body.drr-forum .forum-card :where(h2, h3) { color: var(--drr-final-gold) !important; }
body.drr-forum .forum-panel :where(p, li, small),
body.drr-forum .forum-card :where(p, li, small),
body.drr-forum .forum-note,
body.drr-forum .forum-clean-list { color: #d7e8e3 !important; }
body.drr-forum .btn-drr:not(.secondary) {
  background: linear-gradient(135deg, #d5a950, #f0d48f) !important;
  color: #211805 !important;
}
body.drr-forum .btn-drr.secondary {
  background: #102729 !important;
  border-color: rgba(223, 189, 114, .42) !important;
  color: #fff !important;
}

/* Stage26 dodaje wysoką specyficzność — poniższe reguły świadomie wygrywają ten most. */
body.stage26-skin.drr-forum:not(.stage26-print-catalog) .stage26-section.forum-hero h1 {
  color: #fffaf0 !important;
}
body.stage26-skin.drr-forum:not(.stage26-print-catalog) .stage26-section.forum-hero .forum-lead {
  color: #c8ddd7 !important;
}
body.stage26-skin.drr-forum:not(.stage26-print-catalog) .stage26-section .forum-panel :where(h2, h3),
body.stage26-skin.drr-forum:not(.stage26-print-catalog) .stage26-section .forum-card :where(h2, h3) {
  color: var(--drr-final-gold) !important;
}
body.stage26-skin.drr-forum:not(.stage26-print-catalog) .stage26-section .forum-panel :where(p, li, small),
body.stage26-skin.drr-forum:not(.stage26-print-catalog) .stage26-section .forum-card :where(p, li, small) {
  color: #d7e8e3 !important;
}
body.stage26-skin.drr-forum:not(.stage26-print-catalog) form.stage26-form.forum-form :where(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  border-color: rgba(136, 207, 189, .34) !important;
  background: #071719 !important;
  color: #edf8f5 !important;
  -webkit-text-fill-color: #edf8f5 !important;
}
body.stage26-skin.drr-forum:not(.stage26-print-catalog) form.stage26-form.forum-form :where(input, textarea)::placeholder {
  color: #89a69f !important;
  -webkit-text-fill-color: #89a69f !important;
}
body.stage26-skin form.stage26-form .drr-file-privacy-note {
  border-color: #bfdccf !important;
  background: #edf7f1 !important;
  color: #2c453d !important;
  -webkit-text-fill-color: #2c453d !important;
  opacity: 1 !important;
}
body.stage26-skin form.stage26-form .drr-file-privacy-note :not(a) {
  color: #2c453d !important;
  -webkit-text-fill-color: #2c453d !important;
}
body.stage26-skin form.stage26-form .drr-file-privacy-note strong { color: #243c35 !important; }
body.stage26-skin form.stage26-form .drr-file-privacy-note a {
  color: #087767 !important;
  -webkit-text-fill-color: #087767 !important;
}
body.stage26-skin form.stage26-form[data-payment-ready="manual-quote-first"]::after {
  border-color: #dfc68f !important;
  background: #fbf5e7 !important;
  color: #59471f !important;
  -webkit-text-fill-color: #59471f !important;
}

/* Wstrzyknięty nagłówek Stage26 ma taki sam rytm jak nowsze strony Stage15. */
body.stage26-skin .stage26-site-top > nav.main-nav.stage26-main-nav {
  background: #0a1b1c !important;
  border-block-color: var(--drr-final-border) !important;
}
body.stage26-skin .stage26-main-nav .main-nav__links {
  width: 100%;
  flex-wrap: nowrap !important;
  justify-content: center !important;
  gap: 0 !important;
}
body.stage26-skin .stage26-main-nav .main-nav__links > a {
  min-height: 49px !important;
  padding: 14px 8px !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: transparent !important;
  color: #edf8f5 !important;
  font-size: .78rem !important;
  white-space: nowrap !important;
}
body.stage26-skin .stage26-main-nav .main-nav__links > a:hover,
body.stage26-skin .stage26-main-nav .main-nav__links > a.is-active {
  background: rgba(223, 189, 114, .12) !important;
  color: var(--drr-final-gold) !important;
}
body.stage26-skin .stage26-main-nav .main-nav__links > a.nav-project-cta {
  margin: 5px !important;
  min-height: 39px !important;
  padding: 10px 14px !important;
  border: 1px solid rgba(241, 201, 111, .65) !important;
  background: linear-gradient(135deg,#d6a34a,#f0ca74) !important;
  color: #211704 !important;
  box-shadow: 0 5px 16px rgba(214,163,74,.18) !important;
}
/* Awaryjna obsługa menu dla samodzielnych narzędzi, które ładują most Stage26
   bez pełnego arkusza Stage32 (np. kreator produktów). */
body.stage26-skin .stage26-main-nav .main-nav__inner { position: relative; }
body.stage26-skin .stage26-main-nav [data-stage26-nav-toggle] { display: none; }

/* Kubki korzystają z tego samego złotego CTA co oferta i wycena. */
.kubki-btn.primary {
  background: linear-gradient(135deg, #d5a950, #f0d48f) !important;
  color: #211805 !important;
}

/* Formularze zapytań, wyceny, koszyka i forum. */
:where(form[action*="send-form.php"], form[action*="/forum/api/submit.php"]) {
  --form-field-bg: #071719;
  --form-field-border: rgba(136, 207, 189, .30);
}
:where(form[action*="send-form.php"], form[action*="/forum/api/submit.php"]) :where(label, legend) {
  color: var(--drr-final-text);
  font-weight: 750;
}
:where(form[action*="send-form.php"], form[action*="/forum/api/submit.php"]) :where(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea) {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--form-field-border) !important;
  border-radius: 12px !important;
  background: var(--form-field-bg) !important;
  color: var(--drr-final-text) !important;
  font: inherit;
  padding: 11px 13px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
:where(form[action*="send-form.php"], form[action*="/forum/api/submit.php"]) textarea {
  min-height: 124px;
  resize: vertical;
}
:where(form[action*="send-form.php"], form[action*="/forum/api/submit.php"]) :where(input, select, textarea):hover {
  border-color: rgba(114, 216, 189, .48) !important;
}
:where(form[action*="send-form.php"], form[action*="/forum/api/submit.php"]) :where(input, select, textarea):focus {
  border-color: var(--drr-final-mint) !important;
  box-shadow: 0 0 0 4px rgba(114, 216, 189, .12) !important;
}
:where(form[action*="send-form.php"], form[action*="/forum/api/submit.php"]) :where(input, textarea)::placeholder {
  color: #78978f;
  opacity: 1;
}
:where(form[action*="send-form.php"], form[action*="/forum/api/submit.php"]) :where(input[type="checkbox"], input[type="radio"]) {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  accent-color: var(--drr-final-mint);
}
:where(form[action*="send-form.php"], form[action*="/forum/api/submit.php"]) :where(button[type="submit"], .btn, .btn-drr) {
  min-height: 46px;
  border: 0;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #d5a950, #f0d48f) !important;
  color: #211805 !important;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(213, 169, 80, .18);
  transition: transform .18s ease, filter .18s ease, opacity .18s ease;
}
:where(form[action*="send-form.php"], form[action*="/forum/api/submit.php"]) :where(button[type="submit"], .btn, .btn-drr):hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}
:where(form[action*="send-form.php"], form[action*="/forum/api/submit.php"]).is-submitting button[type="submit"] {
  cursor: wait;
  opacity: .72;
}
.drr-form-status {
  grid-column: 1 / -1;
  display: none;
  margin: 4px 0 0;
  padding: 11px 13px;
  border: 1px solid rgba(255, 129, 122, .42);
  border-radius: 12px;
  background: rgba(255, 129, 122, .09);
  color: #ffd3d0;
  font-weight: 750;
}
.drr-form-status.is-visible { display: block; }

/* Tabele i bardzo szerokie elementy nie rozrywają wersji mobilnej. */
:where(.table-wrap, .category-table, .comparison-table, .pricing-table) { max-width: 100%; }
:where(table) { border-collapse: collapse; }
:where(table) th { color: var(--drr-final-gold); }
:where(table) th, :where(table) td { border-color: var(--drr-final-border) !important; }

/* Jedna geometria przycisków także poza formularzami. */
:where(.btn-shell, a.btn, button.btn, .btn-drr, .buy-btn, .cta-button) {
  border-radius: 12px !important;
  min-height: 44px;
}

/* Widżet FOX nie może przykrywać koszyka ani mobilnego CTA. */
@media (max-width: 760px) {
  :where(.vsa-widget, #vsa-widget, [data-vsa-widget], .fox-vsa-widget) { bottom: 78px !important; }
  body { padding-bottom: env(safe-area-inset-bottom); }
}

@media (max-width: 900px) {
  :where(.container, .stage15-container, .wrap, .site-container) { width: min(100% - 24px, 1180px); }
  :where(.footer-grid, .contact-layout, .quote-layout, .forum-layout, .cols-main) { min-width: 0; }
  :where(table) { font-size: .92rem; }
  .main-nav-v2 .nav-v2-list { display: none !important; }

  /* Ikona menu działa także wtedy, gdy zewnętrzny font ikon się nie załaduje. */
  [data-nav-toggle] {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    color: #fff !important;
  }
  [data-nav-toggle]::before { content: "☰"; font-size: 25px; line-height: 1; }
  [data-nav-toggle][aria-expanded="true"]::before { content: "×"; font-size: 31px; }
  [data-nav-toggle] > i { display: none !important; }

  body.stage26-skin .stage26-main-nav .main-nav__links {
    display: none !important;
    position: absolute;
    z-index: 90;
    inset: 100% 0 auto;
    width: 100%;
    max-height: min(70vh, 560px);
    overflow-y: auto;
    padding: 8px 12px 14px;
    border-top: 1px solid var(--drr-final-border);
    background: #0a1b1c;
    box-shadow: 0 18px 34px rgba(0, 0, 0, .38);
  }
  body.stage26-skin .stage26-main-nav .main-nav__links.is-open { display: grid !important; }
  body.stage26-skin .stage26-main-nav .main-nav__links > a {
    width: 100%;
    min-height: 44px !important;
    padding: 11px 12px !important;
    white-space: normal !important;
  }
  body.stage26-skin .stage26-main-nav [data-stage26-nav-toggle] {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 46px;
    min-width: 46px;
    height: 46px;
    margin: 2px 0;
    border: 1px solid rgba(223, 189, 114, .42);
    border-radius: 10px;
    background: #102729;
    color: #fff;
    cursor: pointer;
  }
  body.stage26-skin .stage26-main-nav [data-stage26-nav-toggle]::before {
    content: "☰";
    font-size: 25px;
    line-height: 1;
  }
  body.stage26-skin .stage26-main-nav [data-stage26-nav-toggle][aria-expanded="true"]::before {
    content: "×";
    font-size: 31px;
  }
  body.stage26-skin .stage26-main-nav [data-stage26-nav-toggle] > i { display: none !important; }
}

@media (max-width: 640px) {
  :where(.container, .stage15-container, .wrap, .site-container) { width: min(100% - 18px, 1180px); }
  :where(h1) { font-size: clamp(2rem, 10vw, 3rem) !important; }
  :where(h2) { font-size: clamp(1.45rem, 7vw, 2.1rem); }
  .kubki-hero h1 {
    max-width: none !important;
    font-size: 28px !important;
    overflow-wrap: normal !important;
    hyphens: auto;
  }
  :where(form[action*="send-form.php"], form[action*="/forum/api/submit.php"]) :where(input, select, textarea, button) { font-size: 16px; }
  :where(.mobile-cta) { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
  :where(.category-table, .comparison-table, .pricing-table) { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Dogłębny audyt mobilny: długi tytuł kubków musi mieścić się w obszarze hero. */
@media (max-width: 640px) {
  body.kubki-page .kubki-hero h1 {
    width: 100% !important;
    max-width: 100% !important;
    font-size: clamp(1.65rem, 7vw, 1.9rem) !important;
    line-height: 1.08 !important;
    letter-spacing: -.025em !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    hyphens: auto;
  }
}

/* DRR DAMSON — globalny ciemny motyw V8, 2026-08-11
   Ostatnia warstwa świadomie wygrywa z historycznym, kremowym Stage26. */
:root {
  --drr-final-bg: #04090a;
  --drr-final-surface: #091618;
  --drr-final-surface-2: #0d2022;
  --drr-final-border: rgba(112, 207, 184, .24);
  --drr-final-text: #f1f8f6;
  --drr-final-muted: #b6cbc6;
  --drr-final-gold: #efc86f;
  --drr-dark-card: linear-gradient(180deg, rgba(15, 31, 33, .98), rgba(7, 17, 19, .98));
  --drr-dark-card-soft: linear-gradient(180deg, #102426, #0a181a);
}

body:not(.stage26-print-catalog) {
  background:
    radial-gradient(900px 520px at 8% 4%, rgba(38, 158, 131, .13), transparent 62%),
    radial-gradient(760px 460px at 88% 12%, rgba(220, 172, 73, .10), transparent 62%),
    linear-gradient(180deg, #061012 0%, #04090a 72%, #020607 100%) !important;
  color: var(--drr-final-text) !important;
}

body:not(.stage26-print-catalog) :where(.stage15-shell, .stage26-main-content, main.site-main, main.page-main) {
  background: transparent !important;
}

body:not(.stage26-print-catalog) main :where(h1, h2, h3, h4, h5, h6) {
  color: #f5faf8 !important;
  text-shadow: none !important;
}
body:not(.stage26-print-catalog) main :where(p, li, dt, dd, label, small) {
  color: var(--drr-final-muted) !important;
}
body:not(.stage26-print-catalog) main :where(a:not(.btn):not(.btn-shell):not(.boxgen-btn)) {
  color: #f0cb7a;
}

/* Globalne panele i karty ze starszych oraz nowszych szablonów. */
body:not(.stage26-print-catalog) :where(
  .panel, .card, .tool-card, .generator-card, .calculator-card,
  .product-card, .knowledge-card, .service-card, .status-box,
  .quote-form-card, .quote-side-card, .contact-form-card, .contact-side-card,
  .forum-panel, .forum-card, .drr-seo-natural, .drr-stage7x-cluster,
  .drr-topic-grid article, .drr-topic-cta, details
) {
  border-color: var(--drr-final-border) !important;
  background: var(--drr-dark-card) !important;
  color: var(--drr-final-text) !important;
  box-shadow: 0 16px 42px rgba(0, 0, 0, .30) !important;
}

body:not(.stage26-print-catalog) :where(.panel__body, .product-card__body) {
  color: var(--drr-final-text) !important;
}
body:not(.stage26-print-catalog) :where(.category-menu li + li, .trust-item + .trust-item) {
  border-color: rgba(255, 255, 255, .09) !important;
}
body:not(.stage26-print-catalog) :where(.category-menu a, .mini-list li, .trust-item span, .product-card__category) {
  color: #b7cac5 !important;
}
body:not(.stage26-print-catalog) .category-menu a:hover {
  background: rgba(239, 200, 111, .09) !important;
  color: #ffe3a0 !important;
}

/* Strona główna i karty oferty. */
body.stage15-production {
  background: linear-gradient(180deg, #061012, #030809) !important;
  color: var(--drr-final-text) !important;
}
body.stage15-production :where(.trust-strip, .real-stats, .rating-card, .creator-card) {
  border-color: var(--drr-final-border) !important;
  background: var(--drr-dark-card-soft) !important;
}
body.stage15-production :where(.trust-item strong, .product-card h3, .product-card h3 a, .price, .section-heading h2, .rating-card strong, .creator-card h3) {
  color: #f2f7f5 !important;
}
body.stage15-production :where(.section-heading p, .creator-card p, .rating-card p) {
  color: var(--drr-final-muted) !important;
}
body.stage15-production :where(.trust-item__icon) {
  border-color: rgba(239, 200, 111, .34) !important;
  background: #142326 !important;
  color: #efc86f !important;
}
body.stage15-production :where(.product-card__media, .product-card__media--contain img) {
  background: #152225 !important;
}

/* JavaScript dodaje Stage26 — te reguły usuwają kremowe tło ze wszystkich stron publicznych. */
body.stage26-skin:not(.stage26-print-catalog) {
  background:
    radial-gradient(900px 520px at 8% 4%, rgba(38, 158, 131, .13), transparent 62%),
    linear-gradient(180deg, #061012, #030809) !important;
  color: var(--drr-final-text) !important;
}
body.stage26-skin:not(.stage26-print-catalog) .stage26-section,
body.stage26-skin:not(.stage26-print-catalog) .stage26-form {
  border-color: var(--drr-final-border) !important;
  background: var(--drr-dark-card) !important;
  color: var(--drr-final-text) !important;
  box-shadow: 0 16px 44px rgba(0, 0, 0, .30) !important;
}
body.stage26-skin:not(.stage26-print-catalog) :where(.stage26-section, .stage26-form) :is(h1, h2, h3, h4, h5, h6) {
  color: #f5faf8 !important;
}
body.stage26-skin:not(.stage26-print-catalog) :where(.stage26-section, .stage26-form) :is(p, li, dt, dd, label, small) {
  color: var(--drr-final-muted) !important;
}
body.stage26-skin:not(.stage26-print-catalog) .stage26-section :is(.card, .panel, .tool-card, .generator-card, .calculator-card),
body.stage26-skin:not(.stage26-print-catalog) .stage26-main-content :is(.card, .panel, .tool-card, .generator-card, .calculator-card):not(.hero-card):not(.stage26-hero) {
  border-color: var(--drr-final-border) !important;
  background: var(--drr-dark-card-soft) !important;
  color: var(--drr-final-text) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .27) !important;
}
body.stage26-skin:not(.stage26-print-catalog) :where(.stage26-form, .kubki-form) :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea),
body:not(.stage26-print-catalog) main :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  border-color: rgba(112, 207, 184, .35) !important;
  background: #061214 !important;
  color: #f3faf8 !important;
  -webkit-text-fill-color: #f3faf8 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025) !important;
}
body:not(.stage26-print-catalog) main :is(input, textarea)::placeholder {
  color: #8eaaa4 !important;
  -webkit-text-fill-color: #8eaaa4 !important;
  opacity: 1 !important;
}
body:not(.stage26-print-catalog) main select option {
  background: #071416 !important;
  color: #f3faf8 !important;
}

/* Sklep — ciemne karty, koszyk i zakładki, bez zmian w logice zakupowej. */
body.stage26-skin.stage26-page--shop #app { color: var(--drr-final-text) !important; }
body.stage26-skin.stage26-page--shop #app :is(.card, .panel) {
  border-color: var(--drr-final-border) !important;
  background: var(--drr-dark-card-soft) !important;
  color: var(--drr-final-text) !important;
}
body.stage26-skin.stage26-page--shop #app .card :is(h2, h3, p, span),
body.stage26-skin.stage26-page--shop #app .field span { color: var(--drr-final-muted) !important; }
body.stage26-skin.stage26-page--shop #app .card :is(h2, h3) { color: #f5faf8 !important; }
body.stage26-skin.stage26-page--shop #app .tabs button,
body.stage26-skin.stage26-page--shop #app .secondary {
  border-color: rgba(239, 200, 111, .28) !important;
  background: #102124 !important;
  color: #f4d893 !important;
}
body.stage26-skin.stage26-page--shop #app .tabs button:is(:hover, .active) {
  border-color: #dcae4c !important;
  background: #1a292b !important;
  color: #ffe09a !important;
}

/* Szczegóły produktu, poradniki i realizacje. */
body.stage29-product,
body.stage30-generic,
body.stage30-guide,
body.stage30-nosidla,
body.stage30-404 {
  background: linear-gradient(180deg, #061012, #030809) !important;
  color: var(--drr-final-text) !important;
}
body.stage29-product :where(.s29-gallery, .s29-summary, .s29-copy, .s29-side-card),
body.stage30-guide .article.site-main .container,
body.stage30-404 .stage30-404-card,
body:not(.stage26-print-catalog) :where(.real-stats, .real-gallery, .real-process, .real-final-cta) {
  border-color: var(--drr-final-border) !important;
  background: var(--drr-dark-card) !important;
  color: var(--drr-final-text) !important;
}

/* Generator pudełek: pełny kontrast i brak jasnej ramy dodanej przez Stage26. */
body.stage26-skin.boxgen-page .stage26-main-content {
  width: min(1280px, calc(100% - 32px)) !important;
  background: transparent !important;
}
body.stage26-skin.boxgen-page :is(.boxgen-hero.stage26-section, .boxgen-grid.stage26-section) {
  margin: 0 0 22px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
body.stage26-skin.boxgen-page :is(.boxgen-card, .boxgen-preview-card, .boxgen-seo) {
  border-color: rgba(94, 222, 185, .25) !important;
  background: linear-gradient(180deg, #102326, #081416) !important;
  color: #f2faf7 !important;
}
body.stage26-skin.boxgen-page .boxgen-alert {
  border-color: rgba(255, 120, 128, .34) !important;
  background: #281216 !important;
  color: #ffd7da !important;
}
body.stage26-skin.boxgen-page :is(.boxgen-title, .boxgen-controls h2, .boxgen-preview-card h2, .boxgen-seo h2) {
  color: #f6fbf9 !important;
}
body.stage26-skin.boxgen-page :is(.boxgen-lead, .boxgen-field label, .boxgen-field small, .boxgen-checks label, .boxgen-stats, .boxgen-seo p, .boxgen-seo li) {
  color: #bad0ca !important;
}
body.stage26-skin.boxgen-page .boxgen-svg-shell {
  border-color: rgba(94, 222, 185, .24) !important;
  background: #dce5e1 !important;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08) !important;
}

@media (max-width: 760px) {
  body.stage26-skin.boxgen-page .stage26-main-content { width: min(100% - 18px, 1280px) !important; }
}

/* DRR Generator Studio — wspólny wygląd kreatorów zgodny z kreatorem koszulek. */
body.drr-generator-studio,
body.drr-generator-hub {
  --drr-studio-bg: #03100f;
  --drr-studio-panel: #071817;
  --drr-studio-panel-2: #0a1d1c;
  --drr-studio-line: rgba(102, 211, 177, .22);
  --drr-studio-gold: #efbd51;
  --drr-studio-gold-deep: #d5972e;
  --drr-studio-text: #f6fbf9;
  --drr-studio-muted: #a8c2bc;
  padding: 0 !important;
  background:
    radial-gradient(900px 520px at 12% 8%, rgba(25, 130, 105, .13), transparent 64%),
    linear-gradient(180deg, #061312, #020807) !important;
}

body.drr-generator-studio main,
body.drr-generator-hub main.site-main {
  color: var(--drr-studio-text) !important;
}

body.drr-generator-studio main.tool-page,
body.drr-generator-studio main.boxgen-wrap,
body.drr-generator-hub main.site-main {
  width: min(1280px, calc(100% - 32px)) !important;
  max-width: 1280px !important;
  margin: 24px auto 42px !important;
  padding: 18px !important;
  border: 1px solid rgba(239, 189, 81, .20) !important;
  border-top-color: rgba(239, 189, 81, .62) !important;
  border-radius: 16px !important;
  background-color: var(--drr-studio-bg) !important;
  background-image:
    linear-gradient(rgba(77, 209, 170, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 209, 170, .045) 1px, transparent 1px) !important;
  background-size: 20px 20px !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .45) !important;
}

body.drr-generator-studio main :is(.panel, .card, .controls, .boxgen-card, .boxgen-preview-card, .boxgen-seo),
body.drr-generator-hub main.site-main .card {
  border: 1px solid var(--drr-studio-line) !important;
  border-radius: 14px !important;
  background: linear-gradient(180deg, rgba(10, 29, 28, .98), rgba(5, 16, 16, .98)) !important;
  color: var(--drr-studio-text) !important;
  box-shadow: 0 18px 46px rgba(0, 0, 0, .36) !important;
}

body.drr-generator-studio main :is(h1, h2, h3, h4),
body.drr-generator-hub main :is(h1, h2, h3, h4) {
  color: var(--drr-studio-text) !important;
  text-shadow: none !important;
}

body.drr-generator-studio main :is(p, label, small, .mini, .val, .boxgen-muted, .boxgen-stats),
body.drr-generator-hub main p {
  color: var(--drr-studio-muted) !important;
}

body.drr-generator-studio main :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  border: 1px solid rgba(102, 211, 177, .34) !important;
  border-radius: 9px !important;
  background: #041110 !important;
  color: var(--drr-studio-text) !important;
  -webkit-text-fill-color: var(--drr-studio-text) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025) !important;
}

body.drr-generator-studio main :is(input, select, textarea):focus {
  border-color: rgba(239, 189, 81, .82) !important;
  outline: 2px solid rgba(239, 189, 81, .15) !important;
  outline-offset: 1px;
}

body.drr-generator-studio main input[type="range"] { accent-color: var(--drr-studio-gold) !important; }
body.drr-generator-studio main :is(input, textarea)::placeholder { color: #78928c !important; }

body.drr-generator-studio main :is(button, .btn, .btn-primary, .boxgen-btn),
body.drr-generator-hub main.site-main .card > a.btn {
  border: 1px solid rgba(255, 220, 139, .45) !important;
  border-radius: 9px !important;
  background: linear-gradient(180deg, #f2c75f, var(--drr-studio-gold-deep)) !important;
  color: #101310 !important;
  -webkit-text-fill-color: #101310 !important;
  font-weight: 900 !important;
  text-shadow: none !important;
  box-shadow: 0 8px 20px rgba(213, 151, 46, .20) !important;
}

body.drr-generator-studio main :is(button, .btn, .btn-primary, .boxgen-btn):hover,
body.drr-generator-hub main.site-main .card > a.btn:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
}

body.drr-generator-studio main :is(.btn-ghost, .boxgen-btn--ghost) {
  border-color: rgba(239, 189, 81, .36) !important;
  background: #0b1b1a !important;
  color: #f2d58f !important;
  -webkit-text-fill-color: #f2d58f !important;
  box-shadow: none !important;
}

body.drr-generator-studio main .btn-danger {
  border-color: rgba(255, 104, 111, .42) !important;
  background: #2a1115 !important;
  color: #ffd8db !important;
  -webkit-text-fill-color: #ffd8db !important;
}

/* Linijka, ekierka i kątomierz: ustawienia z lewej, duży podgląd z prawej. */
body.drr-generator-studio.drr-generator-measure main.tool-page > .container {
  display: grid !important;
  grid-template-columns: minmax(270px, 340px) minmax(0, 1fr) !important;
  grid-template-rows: auto minmax(360px, auto) auto !important;
  gap: 16px !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.drr-generator-studio.drr-generator-measure main.tool-page > .container > h1 {
  grid-column: 1 / -1;
  margin: 0 !important;
  padding: 4px 2px 0;
  text-align: left !important;
  font-size: clamp(1.75rem, 3vw, 2.5rem) !important;
}

body.drr-generator-studio.drr-generator-measure main .controls {
  grid-column: 1;
  grid-row: 2 / span 2;
  display: block !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 18px !important;
}

body.drr-generator-studio.drr-generator-measure main .controls > div { margin-bottom: 12px; }

body.drr-generator-studio.drr-generator-measure main :is(#previewWrap, #ek_preview_wrap, #k_preview_wrap) {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  min-height: 420px;
  margin: 0 !important;
  padding: 18px !important;
  border: 1px solid var(--drr-studio-line) !important;
  border-radius: 14px !important;
  background-color: #03100f !important;
  background-image:
    linear-gradient(rgba(77, 209, 170, .052) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 209, 170, .052) 1px, transparent 1px) !important;
  background-size: 18px 18px !important;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .35), 0 18px 46px rgba(0, 0, 0, .30) !important;
  overflow: auto;
}

body.drr-generator-studio.drr-generator-measure main .export-buttons {
  grid-column: 2;
  grid-row: 3;
  margin: 0 !important;
  padding: 14px !important;
  border: 1px solid var(--drr-studio-line);
  border-radius: 12px;
  background: #071817;
}

/* Generator tabeli: formularz i obszar roboczy w dwóch kolumnach. */
body.drr-generator-studio.generator-tekst-page main.tool-page {
  display: grid !important;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr) !important;
  align-items: start;
  gap: 16px !important;
}

body.drr-generator-studio.generator-tekst-page main.tool-page > .panel {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 18px !important;
}

body.drr-generator-studio.generator-tekst-page main.tool-page > #result {
  min-width: 0;
  min-height: 520px;
  margin: 0 !important;
  padding: 22px !important;
  border: 1px solid var(--drr-studio-line);
  border-radius: 14px;
  background-color: #03100f;
  background-image:
    linear-gradient(rgba(77, 209, 170, .052) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 209, 170, .052) 1px, transparent 1px);
  background-size: 18px 18px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, .30);
  overflow: auto;
}

body.drr-generator-studio.generator-tekst-page #result table {
  box-shadow: 0 12px 30px rgba(0, 0, 0, .38) !important;
}

/* Generator podstaw: kompaktowe ustawienia i szeroki podgląd projektu. */
body.drr-generator-studio.drr-generator-basics main.tool-page > .grid {
  grid-template-columns: minmax(360px, .78fr) minmax(0, 1.22fr) !important;
  gap: 16px !important;
}

body.drr-generator-studio.drr-generator-basics main .card .head {
  border-bottom-color: rgba(239, 189, 81, .22) !important;
  background: linear-gradient(90deg, rgba(239, 189, 81, .09), rgba(62, 174, 143, .05)) !important;
}

body.drr-generator-studio.drr-generator-basics main :is(.field, .toggle, .stat) {
  border-color: rgba(102, 211, 177, .18) !important;
  background: #061514 !important;
}

body.drr-generator-studio.drr-generator-basics main .preview {
  border-color: var(--drr-studio-line) !important;
  background-color: #03100f !important;
  background-image:
    linear-gradient(rgba(77, 209, 170, .052) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 209, 170, .052) 1px, transparent 1px) !important;
  background-size: 18px 18px !important;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .30) !important;
}

/* Pudełka: podgląd i formularz zachowują pełny kontrast, a eksport pozostaje bez zmian. */
body.drr-generator-studio.boxgen-page main.boxgen-wrap {
  display: block !important;
}

body.drr-generator-studio.boxgen-page main :is(.boxgen-hero, .boxgen-grid) {
  background: transparent !important;
}

body.drr-generator-studio.boxgen-page main .boxgen-grid {
  gap: 16px !important;
}

body.drr-generator-studio.boxgen-page main .boxgen-badge {
  border-color: rgba(239, 189, 81, .32) !important;
  background: rgba(239, 189, 81, .08) !important;
  color: #f3d58e !important;
}

body.drr-generator-studio.boxgen-page main .boxgen-svg-shell {
  border-color: rgba(102, 211, 177, .30) !important;
  background: #dce5e1 !important;
}

/* Hub generatorów: te same panele i jeden, czytelny kolor akcji. */
body.drr-generator-hub main.site-main > div {
  gap: 18px !important;
}

body.drr-generator-hub main.site-main .card {
  position: relative;
  flex-basis: 300px !important;
  padding: 20px !important;
  overflow: hidden;
}

body.drr-generator-hub main.site-main .card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--drr-studio-gold), rgba(102, 211, 177, .65));
}

body.drr-generator-hub main.site-main .card > a.btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 42px;
}

@media (max-width: 900px) {
  body.drr-generator-studio.drr-generator-measure main.tool-page > .container,
  body.drr-generator-studio.generator-tekst-page main.tool-page,
  body.drr-generator-studio.drr-generator-basics main.tool-page > .grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: auto !important;
  }

  body.drr-generator-studio.drr-generator-measure main.tool-page > .container > *,
  body.drr-generator-studio.generator-tekst-page main.tool-page > *,
  body.drr-generator-studio.drr-generator-basics main.tool-page > .grid > * {
    grid-column: 1 !important;
    grid-row: auto !important;
  }

  body.drr-generator-studio.drr-generator-measure main :is(#previewWrap, #ek_preview_wrap, #k_preview_wrap),
  body.drr-generator-studio.generator-tekst-page main.tool-page > #result {
    min-height: 360px;
  }
}

@media (max-width: 620px) {
  body.drr-generator-studio main.tool-page,
  body.drr-generator-studio main.boxgen-wrap,
  body.drr-generator-hub main.site-main {
    width: min(100% - 16px, 1280px) !important;
    margin: 12px auto 28px !important;
    padding: 10px !important;
    border-radius: 12px !important;
  }

  body.drr-generator-studio.drr-generator-measure main .controls,
  body.drr-generator-studio.generator-tekst-page main.tool-page > .panel {
    padding: 14px !important;
  }

  body.drr-generator-studio main :is(button, .btn, .boxgen-btn),
  body.drr-generator-hub main.site-main .card > a.btn {
    min-height: 44px;
  }
}
