/* SB Builder: wygląd edytora (nakładka na editor.css Vvveb, bez zmian w jego plikach) */
:root {
	--hb-accent: #1f5c55;
	--hb-accent-dark: #174841;
	--hb-accent-soft: #e8f1ef;
	--hb-ink: #1b2a28;
}

/* logo zamiast „W” Vvveb */
.logo a.hb-logo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 9px;
	background: var(--hb-accent);
	color: #fff !important;
	font: 700 13px/1 system-ui, sans-serif;
	letter-spacing: .02em;
	text-decoration: none;
}
.logo a.hb-logo:hover { background: var(--hb-accent-dark); }

/* kolory przycisków Bootstrapa */
.btn-primary {
	--bs-btn-bg: var(--hb-accent);
	--bs-btn-border-color: var(--hb-accent);
	--bs-btn-hover-bg: var(--hb-accent-dark);
	--bs-btn-hover-border-color: var(--hb-accent-dark);
	--bs-btn-active-bg: var(--hb-accent-dark);
	--bs-btn-active-border-color: var(--hb-accent-dark);
	--bs-btn-disabled-bg: #9dbab5;
	--bs-btn-disabled-border-color: #9dbab5;
}
.btn-outline-primary {
	--bs-btn-color: var(--hb-accent);
	--bs-btn-border-color: var(--hb-accent);
	--bs-btn-hover-bg: var(--hb-accent);
	--bs-btn-hover-border-color: var(--hb-accent);
	--bs-btn-active-bg: var(--hb-accent-dark);
}
.nav-link.active, .nav-tabs .nav-link.active { color: var(--hb-accent) !important; }
a, .text-primary { color: var(--hb-accent); }

/* Save: wyraźny, z zaokrągleniem; stan „zapisane” spokojniejszy */
#top-panel .save-btn {
	border-radius: 8px;
	padding-left: 16px;
	padding-right: 16px;
	font-weight: 600;
}
#top-panel .hb-versions-btn {
	border-radius: 8px;
	font-weight: 500;
}

/* mniej bałaganu: funkcje Vvveb, których w WordPressie nie używamy */
#ai-assistant-btn,
#download-btn,
#designer-mode-btn,
#translate-code-btn,
#save-reusable-btn {
	display: none !important;
}

/* lewy pasek ikon: aktywna zakładka w kolorze marki */
#elements-tabs .nav-link.active,
#elements-tabs .nav-link:hover {
	background: var(--hb-accent-soft) !important;
	color: var(--hb-accent) !important;
	border-radius: 10px;
}

/* nagłówki sekcji w panelach trochę wyraźniejsze */
.drag-elements-sidepane .header label,
.component-properties .section-header {
	font-weight: 600;
	color: var(--hb-ink);
}

/* biblioteka mediów w edytorze: „Usuń” i „Zmień nazwę” z Vvveb nie działały w WordPressie (plik zostawał,
   znikał tylko z listy), a usunięcie zdjęcia użytego na innej stronie by ją zepsuło – pliki usuwa się w Mediach WP */
#MediaModal .btn-delete,
#MediaModal .btn-rename { display: none !important; }

/* płótno nie może się przewijać (przewijana jest tylko strona w ramce) – inaczej podgląd „ucieka” w górę */
#vvveb-builder #canvas { overflow: clip; }

/* ---------- Asystent AI: okno, animacja pracy, zasłona nad elementem, pasek wyniku ---------- */
.hb-ai-modal { position: fixed; inset: 0; z-index: 99998; display: none; align-items: flex-start; justify-content: center; padding-top: 72px; background: rgba(11, 15, 14, .32); font: 14px/1.45 "Geist", system-ui, sans-serif; }
.hb-ai-card { width: min(620px, 94vw); max-height: 80vh; overflow: auto; padding: 18px 20px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px rgba(11, 15, 14, .06), 0 24px 60px -18px rgba(11, 15, 14, .45); }
.hb-ai-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.hb-ai-head > div { flex: 1; }
.hb-ai-head strong { display: block; font-size: 15px; color: #0b0f0e; }
.hb-ai-head small { display: block; font-size: 12px; color: #848d89; }
.hb-ai-head [data-x] { border: 0; background: none; font-size: 22px; line-height: 1; color: #4a5451; cursor: pointer; }
.hb-ai-badge { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #07110f; color: #c6f36b; font-size: 17px; }
.hb-ai-orig { padding: 10px 12px; border-radius: 9px; background: #f6f7f5; color: #3c434a; max-height: 120px; overflow: auto; }
.hb-ai-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.hb-ai-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.hb-ai-row select { width: auto; }
.hb-ai-row small { color: #848d89; font-size: 12px; }
.hb-ai-ask { margin-top: 12px; }
.hb-ai-ask textarea { min-height: 84px; font-size: 14px; border-radius: 10px; }
.hb-ai-out { display: none; margin-top: 14px; padding: 10px 12px; border: 2px solid #0f766e; border-radius: 10px; }

.hb-ai-work { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; color: #0f766e; }
.hb-ai-orb { flex: none; width: 18px; height: 18px; border-radius: 50%; background: conic-gradient(from 0deg, #0f766e, #10b981, #c6f36b, #0f766e); -webkit-mask: radial-gradient(farthest-side, transparent 55%, #000 58%); mask: radial-gradient(farthest-side, transparent 55%, #000 58%); animation: hb-ai-spin .9s linear infinite; }
.hb-ai-msg { transition: opacity .22s, transform .22s; }
.hb-ai-msg.out { opacity: 0; transform: translateY(-4px); }
@keyframes hb-ai-spin { to { transform: rotate(1turn); } }

.hb-ai-veil { position: fixed; z-index: 99990; display: grid; place-items: center; overflow: hidden; border-radius: 10px; outline: 2px solid rgba(15, 118, 110, .75); background: rgba(246, 247, 245, .55); -webkit-backdrop-filter: blur(2px) saturate(.7); backdrop-filter: blur(2px) saturate(.7); pointer-events: auto; }
.hb-ai-veil::before { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(198, 243, 107, .5) 48%, rgba(16, 185, 129, .25) 52%, transparent 70%); background-size: 250% 100%; animation: hb-ai-sweep 1.8s ease-in-out infinite; }
.hb-ai-pill { position: relative; padding: 10px 16px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px rgba(11, 15, 14, .06), 0 12px 28px -12px rgba(11, 15, 14, .4); }
@keyframes hb-ai-sweep { from { background-position: 120% 0; } to { background-position: -120% 0; } }

.hb-ai-flash { position: fixed; z-index: 99990; pointer-events: none; border-radius: 10px; animation: hb-ai-flash 1.5s ease-out forwards; }
@keyframes hb-ai-flash { 0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, .0), inset 0 0 0 2px rgba(16, 185, 129, .9); } 40% { box-shadow: 0 0 0 10px rgba(198, 243, 107, .35), inset 0 0 0 2px rgba(16, 185, 129, .9); } 100% { box-shadow: 0 0 0 22px rgba(198, 243, 107, 0), inset 0 0 0 2px rgba(16, 185, 129, 0); } }

/* pasek wyniku AI przy zmienionym elemencie – w stylu paska akcji zaznaczenia (biały, zielony = główna akcja) */
.hb-ai-bar { position: fixed; z-index: 99995; top: 0; left: 0; display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 10px; background: #fff; color: #0b0f0e; font: 500 12.5px/1.3 "Geist", system-ui, sans-serif; box-shadow: 0 0 0 1px rgba(11, 15, 14, .08), 0 12px 28px -12px rgba(11, 15, 14, .35); opacity: 0; pointer-events: none; transition: opacity .18s; }
.hb-ai-bar.on { opacity: 1; pointer-events: auto; }
.hb-ai-bar-msg { display: inline-flex; align-items: center; gap: 7px; padding: 0 8px 0 6px; color: #4a5451; white-space: nowrap; }
.hb-ai-bar-msg i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: #07110f; color: #c6f36b; font-size: 12px; }
.hb-ai-bar.err .hb-ai-bar-msg { color: #b32d2e; white-space: normal; max-width: 360px; }
.hb-ai-bar button { height: 28px; padding: 0 11px; border: 0; border-radius: 7px; background: none; color: #4a5451; font: inherit; cursor: pointer; white-space: nowrap; }
.hb-ai-bar button:hover { background: #eef0ec; color: #0b0f0e; }
.hb-ai-bar button[data-k] { background: #0f766e; color: #fff; font-weight: 600; }
.hb-ai-bar button[data-k]:hover { background: #0d665f; color: #fff; }
.hb-ai-bar.err button[data-k] { background: none; color: #4a5451; font-weight: 400; font-size: 18px; padding: 0 8px; }

@media (prefers-reduced-motion: reduce) {
	.hb-ai-orb, .hb-ai-veil::before, .hb-ai-flash { animation-duration: 0s; animation-iteration-count: 1; }
}

/* „Ulepsz z AI”: przycisk-karta i lista propozycji z polami wyboru */
.hb-ai-review { margin-top: 12px; }
.hb-ai-rev-btn { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 1px dashed #c9cec8; border-radius: 10px; background: #fff; text-align: left; cursor: pointer; font: inherit; color: #0b0f0e; }
.hb-ai-rev-btn:hover { border-color: #0f766e; background: #e6f6ef; }
.hb-ai-rev-btn i { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: #07110f; color: #c6f36b; font-size: 16px; }
.hb-ai-rev-btn b { display: block; font-size: 13.5px; }
.hb-ai-rev-btn small { display: block; font-size: 12px; color: #848d89; }
.hb-ai-rlist { display: grid; gap: 6px; }
.hb-ai-rlist > .hb-ai-work { padding: 10px 2px; }
.hb-ai-sug { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 9px 10px; border: 1px solid #e7e9e5; border-radius: 10px; cursor: pointer; transition: border-color .15s, background .15s; }
.hb-ai-sug:hover { background: #f6f7f5; }
.hb-ai-sug:has(input:checked) { border-color: #0f766e; background: #e6f6ef; }
.hb-ai-sug input { flex: none; margin-top: 3px; accent-color: #0f766e; width: 16px; height: 16px; }
.hb-ai-sug b { display: block; font-size: 13.5px; color: #0b0f0e; }
.hb-ai-sug small { display: block; font-size: 12.5px; color: #4a5451; line-height: 1.4; }
.hb-ai-review + .hb-ai-ask { border-top: 1px solid #e7e9e5; padding-top: 12px; }

/* przycisk „Auto” obok różdżki: bez tła, ikonka w kolorze paska; najechanie = zielony */
#select-actions #hb-ai-auto { background: none !important; color: #4a5451; }
#select-actions #hb-ai-auto:hover { background: #e6f6ef !important; color: #0f766e; }
#select-actions #hb-ai-auto svg { display: block; margin: auto; }

/* komentarze klienta: okno w edytorze i licznik w pasku */
.hb-cm-badge { background: #0f766e !important; color: #fff !important; }
.hb-cm-share { margin: 4px 0 14px; padding: 12px; border-radius: 10px; background: #f6f7f5; }
.hb-cm-share p { margin: 0 0 10px; color: #4a5451; font-size: 13px; }
.hb-cm-linkrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hb-cm-linkrow input { flex: 1 1 240px; min-width: 0; font: 500 12px "Geist Mono", ui-monospace, monospace; }
.hb-cm-linkrow select { width: auto; }
.hb-cm-check { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; color: #4a5451; }
.hb-cm-check input { accent-color: #0f766e; }
.hb-cm-linkacts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 8px; }
.hb-cm-linkacts small { margin-right: auto; color: #848d89; font-size: 12px; }
.hb-cm-link { border: 0; background: none; padding: 2px 0; color: #0f766e; font: 500 12.5px inherit; font-family: inherit; cursor: pointer; }
.hb-cm-link:hover { text-decoration: underline; }
.hb-cm-link.danger { color: #b42318; }
.hb-cm-tabs { display: flex; gap: 2px; padding: 3px; margin-bottom: 10px; border: 1px solid #e7e9e5; border-radius: 10px; }
.hb-cm-tabs button { flex: 1; border: 0; border-radius: 7px; padding: 6px; background: none; color: #4a5451; font: 500 13px inherit; font-family: inherit; cursor: pointer; }
.hb-cm-tabs button.on { background: #e6f6ef; color: #0f766e; font-weight: 600; }
.hb-cm-list { display: grid; gap: 8px; }
.hb-cm-item { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 10px; border: 1px solid #e7e9e5; border-radius: 10px; }
.hb-cm-item.done { opacity: .65; }
.hb-cm-num { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50% 50% 50% 4px; background: #0f766e; color: #fff; font-size: 12px; font-weight: 700; }
.hb-cm-item.done .hb-cm-num { background: #848d89; }
.hb-cm-headrow { display: flex; justify-content: space-between; gap: 8px; }
.hb-cm-headrow small { color: #848d89; font-size: 12px; }
.hb-cm-item p { margin: 2px 0 6px; white-space: pre-wrap; overflow-wrap: anywhere; color: #0b0f0e; }
.hb-cm-acts { display: flex; flex-wrap: wrap; gap: 12px; }
.hb-cm-empty { margin: 8px 0; color: #848d89; text-align: center; }
#elements-tabs .hb-rail-comments .nav-link { position: relative; }
.hb-rail-badge { position: absolute; top: 2px; right: 8px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: #c6f36b; color: #07110f; font: 700 10px/16px system-ui, sans-serif; font-style: normal; text-align: center; }
.hb-cm-tabsrow { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.hb-cm-tabsrow .hb-cm-tabs { flex: 1; margin-bottom: 0; }
.hb-cm-refresh { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 1px solid #e7e9e5; border-radius: 10px; background: #fff; color: #4a5451; font: 500 13px inherit; font-family: inherit; cursor: pointer; }
.hb-cm-refresh:hover { background: #e6f6ef; color: #0f766e; border-color: #cfe9de; }
.hb-cm-refresh.spin i { animation: hb-cm-spin .7s linear infinite; }
@keyframes hb-cm-spin { to { transform: rotate(360deg); } }
/* Auto: warianty i lista „co poprawiłem” przy pasku */
.hb-ai-vars { display: inline-flex; align-items: center; gap: 2px; padding: 0 4px; border-left: 1px solid #e7e9e5; border-right: 1px solid #e7e9e5; color: #4a5451; white-space: nowrap; }
.hb-ai-bar .hb-ai-vars button { height: 26px; width: 26px; padding: 0; font-size: 16px; line-height: 1; }
.hb-ai-bar .hb-ai-vars button:disabled { opacity: .35; cursor: default; background: none; }
.hb-ai-vars [data-vi] { min-width: 74px; text-align: center; font-variant-numeric: tabular-nums; }
.hb-ai-notes { position: absolute; top: calc(100% + 6px); right: 0; width: 300px; padding: 10px 12px; border-radius: 10px; background: #fff; color: #0b0f0e; box-shadow: 0 0 0 1px rgba(11, 15, 14, .08), 0 12px 28px -12px rgba(11, 15, 14, .35); font-weight: 400; }
.hb-ai-notes b { display: block; margin-bottom: 4px; font-weight: 600; }
.hb-ai-notes ul { margin: 0; padding-left: 18px; }
.hb-ai-notes li { margin: 2px 0; }
.hb-cm-link.hb-cm-ai { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 6px; background: #07110f; color: #c6f36b; font-weight: 600; }
.hb-cm-link.hb-cm-ai:hover { text-decoration: none; background: #0f766e; color: #fff; }

/* przeciąganie: linia wstawiania, „duszek” przy kursorze, uchwyt szerokości kolumn */
.hb-drop-line { position: fixed; z-index: 99990; display: none; pointer-events: none; border-radius: 3px; background: #0f766e; box-shadow: 0 0 0 2px rgba(255, 255, 255, .9), 0 0 14px rgba(15, 118, 110, .5); }
.hb-drop-line.on { display: block; }
.hb-drop-line.inside { background: rgba(15, 118, 110, .08); box-shadow: none; outline: 2px dashed #0f766e; outline-offset: -2px; }
.hb-drag-ghost { position: fixed; z-index: 99996; top: 0; left: 0; display: none; align-items: center; gap: 8px; padding: 7px 12px 7px 9px; border-radius: 10px; background: #07110f; color: #fff; font: 600 12.5px/1.2 "Geist", system-ui, sans-serif; pointer-events: none; box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .5); }
.hb-drag-ghost.on { display: inline-flex; }
.hb-drag-ghost i { color: #c6f36b; font-size: 15px; }
.hb-seam { position: fixed; z-index: 99989; display: none; width: 12px; cursor: col-resize; }
.hb-seam.on { display: block; }
.hb-seam::before { content: ""; position: absolute; left: 5px; top: 0; bottom: 0; width: 2px; border-radius: 2px; background: #0f766e; opacity: .35; transition: opacity .15s; }
.hb-seam::after { content: ""; position: absolute; left: 1px; top: 50%; width: 10px; height: 36px; margin-top: -18px; border-radius: 6px; background: #0f766e; box-shadow: 0 0 0 2px #fff; }
.hb-seam:hover::before, .hb-seam.drag::before { opacity: 1; }
.hb-seam-tip { position: fixed; z-index: 99996; display: none; transform: translateX(-50%); padding: 5px 10px; border-radius: 8px; background: #07110f; color: #fff; font: 600 12px/1.2 "Geist", system-ui, sans-serif; font-variant-numeric: tabular-nums; white-space: pre; pointer-events: none; }
.hb-seam-tip.on { display: block; }
.hb-cm-pal { display: flex; gap: 4px; margin: 0 0 8px; }
.hb-cm-pal i { width: 22px; height: 22px; border-radius: 6px; box-shadow: 0 0 0 1px rgba(11, 15, 14, .12) inset; }

/* telefon: szuflada zamiast stałego panelu, pasek górny tylko z cofnij / zapisz */
@media (max-width: 760px) {
	body.hb-m:not(.hb-m-open) #vvveb-builder #left-panel { display: none !important; }
	body.hb-m.hb-m-open #vvveb-builder #left-panel { z-index: 1045; right: 0; width: auto !important; max-width: none !important; background: #fff; box-shadow: 14px 0 40px -14px rgba(11, 15, 14, .45); }
	body.hb-m #top-panel .hb-mode,
	body.hb-m #top-panel .hb-doc { display: none !important; }
	body.hb-m #top-panel { grid-template-columns: auto 1fr auto !important; }
	body.hb-m .sd-demo-bar { bottom: 8px; gap: 6px; padding: 5px 6px 5px 8px; font-size: 12px; }
	body.hb-m .sd-demo-bar button { padding: 5px 8px; }
	/* pasek ikon po lewej: Bootstrap chowa go poniżej 768 px pod hamburgerem – na telefonie zawsze widoczny */
	body.hb-m #sidebarNav.collapse { display: block !important; }
	body.hb-m .sidebar .navbar-toggler { display: none !important; }
	body.hb-m #top-panel .hb-seg { display: none !important; }
	body.hb-m #vvveb-builder #canvas { padding: 0 !important; }
	body.hb-m #select-actions { max-width: calc(100vw - 90px); overflow-x: auto; flex-wrap: nowrap; }
}
/* dotyk: przeciąganie chwytem i uchwytem kolumn bez przewijania strony */
#drag-btn, .hb-seam { touch-action: none; }

/* samouczek przy pierwszym wejściu */
.hb-tour-ring { position: fixed; z-index: 100001; border-radius: 12px; box-shadow: 0 0 0 3px #0f766e, 0 0 0 9999px rgba(7, 17, 15, .45); pointer-events: none; transition: all .25s ease; }
.hb-tour-card { position: fixed; z-index: 100002; display: grid; gap: 6px; padding: 16px 16px 14px; border-radius: 14px; background: #fff; color: #0b0f0e; font: 400 14px/1.5 "Geist", system-ui, sans-serif; box-shadow: 0 24px 60px -18px rgba(11, 15, 14, .5); transition: top .25s ease, left .25s ease; }
.hb-tour-card small { color: #0f766e; font-weight: 600; font-size: 12px; }
.hb-tour-card b { font-size: 16px; font-weight: 650; letter-spacing: -.01em; }
.hb-tour-card p { margin: 0 0 6px; color: #4a5451; }
.hb-tour-act { display: flex; justify-content: flex-end; gap: 6px; }
.hb-tour-act button { border: 0; border-radius: 9px; padding: 8px 14px; background: none; color: #4a5451; font: 500 13.5px inherit; font-family: inherit; cursor: pointer; }
.hb-tour-act button.on { background: #0f766e; color: #fff; font-weight: 600; }

/* uchwyty zaznaczonego elementu: szerokość i odstęp nad/pod */
.hb-handle { position: fixed; z-index: 99988; display: none; border-radius: 6px; background: #fff; box-shadow: 0 0 0 2px #0f766e, 0 4px 10px -4px rgba(11, 15, 14, .45); touch-action: none; }
.hb-handle.on { display: block; }
.hb-handle:hover, .hb-handle.drag { background: #0f766e; }
.hb-h-w { width: 8px; height: 28px; cursor: ew-resize; }
.hb-h-t, .hb-h-b { width: 28px; height: 8px; cursor: ns-resize; }

/* menu pod prawym przyciskiem */
.hb-ctx { position: fixed; z-index: 100003; display: none; min-width: 210px; padding: 6px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px rgba(11, 15, 14, .08), 0 18px 44px -14px rgba(11, 15, 14, .45); font: 500 13.5px/1.3 "Geist", system-ui, sans-serif; }
.hb-ctx.on { display: grid; }
.hb-ctx button { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 0; border-radius: 8px; background: none; color: #0b0f0e; font: inherit; text-align: left; cursor: pointer; }
.hb-ctx button i { width: 18px; color: #4a5451; font-size: 16px; text-align: center; }
.hb-ctx button:hover:not(:disabled) { background: #e6f6ef; color: #0f766e; }
.hb-ctx button:hover:not(:disabled) i { color: #0f766e; }
.hb-ctx button:disabled { opacity: .4; cursor: default; }
.hb-ctx button.danger, .hb-ctx button.danger i { color: #b42318; }
.hb-ctx button.danger:hover { background: #fdecea; color: #b42318; }
.hb-tour-ring.hb-tour-none { box-shadow: 0 0 0 9999px rgba(7, 17, 15, .45); }

/* telefon (próba): ikony Start / Edycja / Elementy… jako pasek na dole, panel jako arkusz wysuwany od dołu */
@media (max-width: 760px) {
	body.hb-m #container .sidebar { position: fixed !important; left: 0; right: 0; bottom: 0; top: auto; width: 100% !important; height: 60px; z-index: 1046; background: #fff; border-top: 1px solid #e7e9e5; box-shadow: 0 -8px 24px -18px rgba(11, 15, 14, .4); }
	body.hb-m #container .sidebar .logo, body.hb-m #container .sidebar .navbar-brand { display: none !important; }
	body.hb-m #container .sidebar .navbar, body.hb-m #container #sidebarNav { width: 100% !important; max-width: none !important; height: 100%; padding: 0 !important; margin: 0 !important; }
	body.hb-m #container #elements-tabs { flex-direction: row !important; justify-content: space-around; align-items: stretch; width: 100% !important; max-width: none !important; height: 100%; padding: 0 4px !important; overflow-x: auto; gap: 0 !important; }
	body.hb-m #container #elements-tabs > li { flex: 1 1 0; min-width: 0; }
	body.hb-m #container #elements-tabs > li > a { height: 100%; padding: 6px 2px !important; margin: 0 !important; border-radius: 10px; }
	body.hb-m #container #elements-tabs > li > a .title, body.hb-m #container #elements-tabs > li > a span { font-size: 10px !important; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
	body.hb-m #container #elements-tabs .hb-rail-badge { right: 4px; }
	body.hb-m #vvveb-builder, body.hb-m #vvveb-builder #top-panel { width: 100% !important; }
	body.hb-m #vvveb-builder #canvas { left: 0 !important; right: 0 !important; width: auto !important; bottom: 60px !important; height: auto !important; }
	body.hb-m.hb-m-open #vvveb-builder #left-panel { left: 0 !important; right: 0 !important; top: 38vh !important; bottom: 60px !important; width: 100% !important; height: auto !important; max-height: none !important; overflow: auto; border-radius: 16px 16px 0 0; box-shadow: 0 -16px 40px -14px rgba(11, 15, 14, .45); }
	body.hb-m .sd-demo-bar { bottom: 68px; }
}
/* pole „Tekst” dla elementów z samym tekstem (span, div…) */
.hb-text-field { display: grid; gap: 8px; margin: 0 0 12px; padding: 14px; border: 1px solid #e7e9e5; border-radius: 12px; background: #fff; }
.hb-text-field .hb-text-title { font-size: 14px; font-weight: 600; }
.hb-text-field textarea { display: block !important; width: 100%; min-height: 84px; }
/* krótki komunikat na dole (np. AI niepodłączone) */
.hb-note { position: fixed; z-index: 100005; left: 50%; bottom: 24px; transform: translate(-50%, 12px); max-width: min(440px, calc(100vw - 24px)); padding: 12px 16px; border-radius: 12px; background: #07110f; color: #fff; font: 500 14px/1.45 "Geist", system-ui, sans-serif; box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .55); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.hb-note.on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 760px) { .hb-note { bottom: 76px; } }
@media (max-width: 760px) { body.hb-m .toast-container.bottom-0 { bottom: 64px !important; margin-bottom: 8px !important; } }
