/* Generated by CSS Extractor — Tailwind v3 */
/* Generated: 2026-05-15T09:05:08.073Z */
/* Rules: 492 */

*, ::before, ::after { --tw-border-spacing-x: 0; --tw-border-spacing-y: 0; --tw-translate-x: 0; --tw-translate-y: 0; --tw-rotate: 0; --tw-skew-x: 0; --tw-skew-y: 0; --tw-scale-x: 1; --tw-scale-y: 1; --tw-pan-x: ; --tw-pan-y: ; --tw-pinch-zoom: ; --tw-scroll-snap-strictness: proximity; --tw-gradient-from-position: ; --tw-gradient-via-position: ; --tw-gradient-to-position: ; --tw-ordinal: ; --tw-slashed-zero: ; --tw-numeric-figure: ; --tw-numeric-spacing: ; --tw-numeric-fraction: ; --tw-ring-inset: ; --tw-ring-offset-width: 0px; --tw-ring-offset-color: #fff; --tw-ring-color: rgb(59 130 246 / 0.5); --tw-ring-offset-shadow: 0 0 #0000; --tw-ring-shadow: 0 0 #0000; --tw-shadow: 0 0 #0000; --tw-shadow-colored: 0 0 #0000; --tw-blur: ; --tw-brightness: ; --tw-contrast: ; --tw-grayscale: ; --tw-hue-rotate: ; --tw-invert: ; --tw-saturate: ; --tw-sepia: ; --tw-drop-shadow: ; --tw-backdrop-blur: ; --tw-backdrop-brightness: ; --tw-backdrop-contrast: ; --tw-backdrop-grayscale: ; --tw-backdrop-hue-rotate: ; --tw-backdrop-invert: ; --tw-backdrop-opacity: ; --tw-backdrop-saturate: ; --tw-backdrop-sepia: ; --tw-contain-size: ; --tw-contain-layout: ; --tw-contain-paint: ; --tw-contain-style: ; }

::backdrop { --tw-border-spacing-x: 0; --tw-border-spacing-y: 0; --tw-translate-x: 0; --tw-translate-y: 0; --tw-rotate: 0; --tw-skew-x: 0; --tw-skew-y: 0; --tw-scale-x: 1; --tw-scale-y: 1; --tw-pan-x: ; --tw-pan-y: ; --tw-pinch-zoom: ; --tw-scroll-snap-strictness: proximity; --tw-gradient-from-position: ; --tw-gradient-via-position: ; --tw-gradient-to-position: ; --tw-ordinal: ; --tw-slashed-zero: ; --tw-numeric-figure: ; --tw-numeric-spacing: ; --tw-numeric-fraction: ; --tw-ring-inset: ; --tw-ring-offset-width: 0px; --tw-ring-offset-color: #fff; --tw-ring-color: rgb(59 130 246 / 0.5); --tw-ring-offset-shadow: 0 0 #0000; --tw-ring-shadow: 0 0 #0000; --tw-shadow: 0 0 #0000; --tw-shadow-colored: 0 0 #0000; --tw-blur: ; --tw-brightness: ; --tw-contrast: ; --tw-grayscale: ; --tw-hue-rotate: ; --tw-invert: ; --tw-saturate: ; --tw-sepia: ; --tw-drop-shadow: ; --tw-backdrop-blur: ; --tw-backdrop-brightness: ; --tw-backdrop-contrast: ; --tw-backdrop-grayscale: ; --tw-backdrop-hue-rotate: ; --tw-backdrop-invert: ; --tw-backdrop-opacity: ; --tw-backdrop-saturate: ; --tw-backdrop-sepia: ; --tw-contain-size: ; --tw-contain-layout: ; --tw-contain-paint: ; --tw-contain-style: ; }

*, ::after, ::before { box-sizing: border-box; border-width: 0px; border-style: solid; border-color: rgb(229, 231, 235); }

::after, ::before { --tw-content: ''; }

:host, html { line-height: 1.5; text-size-adjust: 100%; tab-size: 4; font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-feature-settings: normal; font-variation-settings: normal; -webkit-tap-highlight-color: transparent; }

body { margin: 0px; line-height: inherit; }

hr { height: 0px; color: inherit; border-top-width: 1px; }

abbr:where([title]) { text-decoration: underline dotted; }

h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }

a { color: inherit; text-decoration: inherit; }

b, strong { font-weight: bolder; }

code, kbd, pre, samp { font-family: "JetBrains Mono", monospace; font-feature-settings: normal; font-variation-settings: normal; font-size: 1em; }

small { font-size: 80%; }

sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }

sub { bottom: -0.25em; }

sup { top: -0.5em; }

table { text-indent: 0px; border-color: inherit; border-collapse: collapse; }

button, input, optgroup, select, textarea { font-family: inherit; font-feature-settings: inherit; font-variation-settings: inherit; font-size: 100%; font-weight: inherit; line-height: inherit; letter-spacing: inherit; color: inherit; margin: 0px; padding: 0px; }

button, select { text-transform: none; }

button, input:where([type="button"]), input:where([type="reset"]), input:where([type="submit"]) { appearance: button; background-color: transparent; background-image: none; }

progress { vertical-align: baseline; }

::-webkit-inner-spin-button, ::-webkit-outer-spin-button { height: auto; }

[type="search"] { appearance: textfield; outline-offset: -2px; }

::-webkit-search-decoration { appearance: none; }

::-webkit-file-upload-button { appearance: button; font: inherit; }

summary { display: list-item; }

blockquote, dd, dl, figure, h1, h2, h3, h4, h5, h6, hr, p, pre { margin: 0px; }

fieldset { margin: 0px; padding: 0px; }

legend { padding: 0px; }

menu, ol, ul { list-style: none; margin: 0px; padding: 0px; }

dialog { padding: 0px; }

textarea { resize: vertical; }

input::placeholder, textarea::placeholder { opacity: 1; color: rgb(156, 163, 175); }

[role="button"], button { cursor: pointer; }

:disabled { cursor: default; }

audio, canvas, embed, iframe, img, object, svg, video { display: block; vertical-align: middle; }

img, video { max-width: 100%; height: auto; }

[hidden]:where(:not([hidden="until-found"])) { display: none; }

.pointer-events-none { pointer-events: none; }

.fixed { position: fixed; }

.absolute { position: absolute; }

.relative { position: relative; }

.inset-0 { inset: 0px; }

.bottom-2 { bottom: 0.5rem; }

.right-2 { right: 0.5rem; }

.z-40 { z-index: 40; }

.z-50 { z-index: 50; }

.z-\[1000\] { z-index: 1000; }

.z-\[9999\] { z-index: 9999; }

.mb-1 { margin-bottom: 0.25rem; }

.mb-1\.5 { margin-bottom: 0.375rem; }

.mb-2 { margin-bottom: 0.5rem; }

.mb-2\.5 { margin-bottom: 0.625rem; }

.mb-3 { margin-bottom: 0.75rem; }

.mb-4 { margin-bottom: 1rem; }

.ml-1 { margin-left: 0.25rem; }

.ml-auto { margin-left: auto; }

.mt-1 { margin-top: 0.25rem; }

.mt-1\.5 { margin-top: 0.375rem; }

.mt-2 { margin-top: 0.5rem; }

.mt-3\.5 { margin-top: 0.875rem; }

.block { display: block; }

.flex { display: flex; }

.hidden { display: none; }

.h-4 { height: 1rem; }

.h-48 { height: 12rem; }

.h-5 { height: 1.25rem; }

.h-\[18px\] { height: 18px; }

.h-full { height: 100%; }

.h-screen { height: 100vh; }

.w-16 { width: 4rem; }

.w-4 { width: 1rem; }

.w-48 { width: 12rem; }

.w-56 { width: 14rem; }

.w-7 { width: 1.75rem; }

.w-\[18px\] { width: 18px; }

.w-full { width: 100%; }

.min-w-\[360px\] { min-width: 360px; }

.max-w-\[90vw\] { max-width: 90vw; }

.flex-1 { flex: 1 1 0%; }

.flex-shrink-0 { flex-shrink: 0; }

.rotate-45 { --tw-rotate: 45deg; transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); }

.cursor-grab { cursor: grab; }

.cursor-pointer { cursor: pointer; }

.select-none { user-select: none; }

.resize-none { resize: none; }

.resize-y { resize: vertical; }

.flex-col { flex-direction: column; }

.flex-wrap { flex-wrap: wrap; }

.items-end { align-items: flex-end; }

.items-center { align-items: center; }

.justify-end { justify-content: flex-end; }

.justify-center { justify-content: center; }

.justify-between { justify-content: space-between; }

.gap-0 { gap: 0px; }

.gap-1 { gap: 0.25rem; }

.gap-1\.5 { gap: 0.375rem; }

.gap-2 { gap: 0.5rem; }

.gap-2\.5 { gap: 0.625rem; }

.gap-3 { gap: 0.75rem; }

.gap-4 { gap: 1rem; }

.gap-5 { gap: 1.25rem; }

.self-center { align-self: center; }

.overflow-hidden { overflow: hidden; }

.overflow-x-auto { overflow-x: auto; }

.overflow-y-auto { overflow-y: auto; }

.rounded { border-radius: 0.25rem; }

.rounded-\[5px\] { border-radius: 5px; }

.rounded-full { border-radius: 9999px; }

.rounded-lg { border-radius: 0.5rem; }

.rounded-md { border-radius: 0.375rem; }

.rounded-sm { border-radius: 0.125rem; }

.rounded-xl { border-radius: 0.75rem; }

.border { border-width: 1px; }

.border-2 { border-width: 2px; }

.border-\[1\.5px\] { border-width: 1.5px; }

.border-b { border-bottom-width: 1px; }

.border-b-2 { border-bottom-width: 2px; }

.border-l { border-left-width: 1px; }

.border-r { border-right-width: 1px; }

.border-t { border-top-width: 1px; }

.border-accent { --tw-border-opacity: 1; border-color: rgb(79 255 176 / var(--tw-border-opacity, 1)); }

.border-accent2 { --tw-border-opacity: 1; border-color: rgb(255 107 107 / var(--tw-border-opacity, 1)); }

.border-accent3 { --tw-border-opacity: 1; border-color: rgb(107 138 255 / var(--tw-border-opacity, 1)); }

.border-light-border { --tw-border-opacity: 1; border-color: rgb(221 225 236 / var(--tw-border-opacity, 1)); }

.border-transparent { border-color: transparent; }

.border-violet-400 { --tw-border-opacity: 1; border-color: rgb(167 139 250 / var(--tw-border-opacity, 1)); }

.bg-accent { --tw-bg-opacity: 1; background-color: rgb(79 255 176 / var(--tw-bg-opacity, 1)); }

.bg-black\/70 { background-color: rgba(0, 0, 0, 0.7); }

.bg-light-bg { --tw-bg-opacity: 1; background-color: rgb(240 242 247 / var(--tw-bg-opacity, 1)); }

.bg-light-border { --tw-bg-opacity: 1; background-color: rgb(221 225 236 / var(--tw-bg-opacity, 1)); }

.bg-light-panel { --tw-bg-opacity: 1; background-color: rgb(245 247 251 / var(--tw-bg-opacity, 1)); }

.bg-light-surface { --tw-bg-opacity: 1; background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1)); }

.bg-transparent { background-color: transparent; }

.bg-white { --tw-bg-opacity: 1; background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1)); }

.p-2\.5 { padding: 0.625rem; }

.p-5 { padding: 1.25rem; }

.p-6 { padding: 1.5rem; }

.px-1\.5 { padding-left: 0.375rem; padding-right: 0.375rem; }

.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }

.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }

.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }

.px-3\.5 { padding-left: 0.875rem; padding-right: 0.875rem; }

.px-4 { padding-left: 1rem; padding-right: 1rem; }

.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }

.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }

.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }

.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }

.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }

.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }

.py-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }

.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }

.pb-2 { padding-bottom: 0.5rem; }

.pb-3 { padding-bottom: 0.75rem; }

.pt-3 { padding-top: 0.75rem; }

.pt-3\.5 { padding-top: 0.875rem; }

.text-left { text-align: left; }

.text-center { text-align: center; }

.font-mono { font-family: "JetBrains Mono", monospace; }

.font-syne { font-family: Syne, sans-serif; }

.text-\[10px\] { font-size: 10px; }

.text-\[11px\] { font-size: 11px; }

.text-\[12px\] { font-size: 12px; }

.text-\[9px\] { font-size: 9px; }

.text-base { font-size: 1rem; line-height: 1.5rem; }

.text-lg { font-size: 1.125rem; line-height: 1.75rem; }

.text-xs { font-size: 0.75rem; line-height: 1rem; }

.font-black { font-weight: 900; }

.font-semibold { font-weight: 600; }

.uppercase { text-transform: uppercase; }

.leading-\[1\.7\] { line-height: 1.7; }

.leading-\[1\.8\] { line-height: 1.8; }

.leading-relaxed { line-height: 1.625; }

.tracking-tight { letter-spacing: -0.025em; }

.tracking-wide { letter-spacing: 0.025em; }

.tracking-wider { letter-spacing: 0.05em; }

.tracking-widest { letter-spacing: 0.1em; }

.text-accent { --tw-text-opacity: 1; color: rgb(79 255 176 / var(--tw-text-opacity, 1)); }

.text-accent2 { --tw-text-opacity: 1; color: rgb(255 107 107 / var(--tw-text-opacity, 1)); }

.text-amber-400 { --tw-text-opacity: 1; color: rgb(251 191 36 / var(--tw-text-opacity, 1)); }

.text-black { --tw-text-opacity: 1; color: rgb(0 0 0 / var(--tw-text-opacity, 1)); }

.text-gray-300 { --tw-text-opacity: 1; color: rgb(209 213 219 / var(--tw-text-opacity, 1)); }

.text-gray-400 { --tw-text-opacity: 1; color: rgb(156 163 175 / var(--tw-text-opacity, 1)); }

.text-gray-500 { --tw-text-opacity: 1; color: rgb(107 114 128 / var(--tw-text-opacity, 1)); }

.text-gray-700 { --tw-text-opacity: 1; color: rgb(55 65 81 / var(--tw-text-opacity, 1)); }

.text-gray-800 { --tw-text-opacity: 1; color: rgb(31 41 55 / var(--tw-text-opacity, 1)); }

.text-violet-400 { --tw-text-opacity: 1; color: rgb(167 139 250 / var(--tw-text-opacity, 1)); }

.no-underline { text-decoration-line: none; }

.opacity-85 { opacity: 0.85; }

.outline-none { outline: transparent solid 2px; outline-offset: 2px; }

.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }

.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, -webkit-text-decoration-color; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }

body { font-family: Syne, sans-serif; }

.canvas-dots-dark { background-color: rgb(8, 10, 15); background-image: radial-gradient(circle, rgb(28, 32, 48) 1px, transparent 1px); background-size: 24px 24px; }

.canvas-dots-light { background-color: rgb(240, 242, 247); background-image: radial-gradient(circle, rgb(197, 202, 216) 1px, transparent 1px); background-size: 24px 24px; }

.canvas-dots-gost { background-color: rgb(245, 245, 240); background-image: radial-gradient(circle, rgb(200, 200, 192) 1px, transparent 1px); background-size: 24px 24px; }

.canvas-dots-gost-dark { background-color: rgb(37, 40, 48); background-image: radial-gradient(circle, rgb(54, 58, 70) 1px, transparent 1px); background-size: 24px 24px; }

.color-swatch.active { border-color: rgb(255, 255, 255) !important; }

.dark .color-swatch.active { border-color: rgb(255, 255, 255) !important; }

.light .color-swatch.active { border-color: rgb(0, 0, 0) !important; }

.theme-toggle { position: relative; width: 44px; height: 24px; }

.theme-toggle input { opacity: 0; width: 0px; height: 0px; }

.theme-toggle-track { position: absolute; inset: 0px; border-radius: 9999px; cursor: pointer; transition: background 0.2s; }

.theme-toggle-thumb { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: rgb(255, 255, 255); transition: transform 0.2s; display: flex; align-items: center; justify-content: center; font-size: 10px; line-height: 1; }

input:checked + .theme-toggle-track { background: rgb(79, 255, 176); }

input:checked + .theme-toggle-track .theme-toggle-thumb { transform: translateX(20px); }

input:not(:checked) + .theme-toggle-track { background: rgb(55, 65, 81); }

::-webkit-scrollbar { width: 4px; }

::-webkit-scrollbar-track { background: transparent; }

::-webkit-scrollbar-thumb { background: rgb(55, 65, 81); border-radius: 4px; }

.dark ::-webkit-scrollbar-thumb { background: rgb(55, 65, 81); }

.light ::-webkit-scrollbar-thumb { background: rgb(203, 213, 225); }

select option { background: rgb(19, 24, 40); color: rgb(232, 234, 240); }

.dark select option { background: rgb(19, 24, 40); color: rgb(232, 234, 240); }

html:not(.dark) select option { background: rgb(245, 247, 251); color: rgb(26, 32, 44); }

select:disabled, input:disabled { opacity: 0.45; cursor: not-allowed; }

#canvas, #canvasWrap { user-select: none; }

@media (max-width: 768px) {
  #headerButtons { display: none; }
  #mobileMenuBtn { display: none !important; }
  #mobileToolbar { align-items: center; justify-content: center; gap: 4px; padding: 6px 8px; display: flex !important; }
  .mtb-btn { width: 34px; height: 34px; border-radius: 8px; border: 1px solid; font-size: 15px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.15s; flex-shrink: 0; background: transparent; -webkit-tap-highlight-color: transparent; }
  .mtb-btn.danger { font-size: 11px; font-weight: 700; font-family: "JetBrains Mono", monospace; color: rgb(255, 107, 107); border-color: rgba(255, 107, 107, 0.4); }
  .mtb-btn.danger:active { background: rgba(255, 107, 107, 0.15); }
  .mtb-sep { width: 1px; height: 20px; flex-shrink: 0; background: currentcolor; opacity: 0.15; }
  #mobileThemePill { display: flex; align-items: center; gap: 2px; }
  #mobileMoreMenu { position: fixed; top: 96px; right: 8px; z-index: 300; display: none; flex-direction: column; gap: 4px; padding: 8px; border-radius: 10px; border: 1px solid; min-width: 160px; box-shadow: rgba(0, 0, 0, 0.4) 0px 8px 24px; }
  #mobileMoreMenu.open { display: flex; }
  .mmm-btn { width: 100%; text-align: left; padding: 9px 12px; border-radius: 7px; font-family: "JetBrains Mono", monospace; font-size: 12px; font-weight: 500; border: 1px solid transparent; cursor: pointer; background: transparent; transition: 0.12s; -webkit-tap-highlight-color: transparent; }
  #leftSidebar { bottom: 0px; left: 0px; right: 0px; max-height: 50vh; overflow-y: auto; z-index: 150; transform: translateY(100%); transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1); border-top: 1px solid; position: fixed !important; width: 100% !important; border-right-width: medium !important; border-right-style: none !important; border-right-color: currentcolor !important; }
  #leftSidebar.mobile-open { transform: translateY(0px); }
  #rightSidebar { bottom: 0px; left: 0px; right: 0px; max-height: 55vh; overflow-y: auto; z-index: 150; transform: translateY(100%); transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1); border-top: 1px solid; position: fixed !important; width: 100% !important; border-left-width: medium !important; border-left-style: none !important; border-left-color: currentcolor !important; }
  #rightSidebar.mobile-open { transform: translateY(0px); }
  #mobileFabs { position: fixed; bottom: 8px; right: 12px; flex-direction: column; gap: 8px; z-index: 120; display: flex !important; }
  .mobile-fab { width: 44px; height: 44px; border-radius: 12px; border: 1px solid; font-size: 18px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.15s; box-shadow: rgba(0, 0, 0, 0.4) 0px 4px 12px; }
  .mobile-fab.active { border-color: rgb(79, 255, 176) !important; color: rgb(79, 255, 176) !important; }
  #statusBar { display: none !important; }
  #sheetsStrip { left: 0px !important; right: 0px !important; }
  #canvasWrap { width: 100% !important; }
  #minimap { width: 90px !important; height: 58px !important; bottom: 8px !important; right: 60px !important; }
  header { padding: 6px 10px; }
  header .text-lg { font-size: 16px; }
  #leftSidebar .palette-item { padding: 10px 12px; font-size: 13px; }
  #mobileBackdrop { display: none; position: fixed; inset: 0px; z-index: 140; background: rgba(0, 0, 0, 0.5); }
  #mobileBackdrop.active { display: block; }
}

@media (min-width: 769px) {
  #mobileMenuBtn { display: none !important; }
  #mobileFabs { display: none !important; }
  #mobileMenu { display: none !important; }
  #mobileMoreMenu { display: none !important; }
  #mobileToolbar { display: none !important; }
  #mobileBackdrop { display: none !important; }
}

.hover\:translate-x-0\.5:hover { --tw-translate-x: 0.125rem; transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); }

.hover\:border-accent:hover { --tw-border-opacity: 1; border-color: rgb(79 255 176 / var(--tw-border-opacity, 1)); }

.hover\:bg-accent:hover { --tw-bg-opacity: 1; background-color: rgb(79 255 176 / var(--tw-bg-opacity, 1)); }

.hover\:bg-accent2:hover { --tw-bg-opacity: 1; background-color: rgb(255 107 107 / var(--tw-bg-opacity, 1)); }

.hover\:bg-emerald-400:hover { --tw-bg-opacity: 1; background-color: rgb(52 211 153 / var(--tw-bg-opacity, 1)); }

.hover\:bg-light-bg:hover { --tw-bg-opacity: 1; background-color: rgb(240 242 247 / var(--tw-bg-opacity, 1)); }

.hover\:bg-violet-400:hover { --tw-bg-opacity: 1; background-color: rgb(167 139 250 / var(--tw-bg-opacity, 1)); }

.hover\:text-accent:hover { --tw-text-opacity: 1; color: rgb(79 255 176 / var(--tw-text-opacity, 1)); }

.hover\:text-black:hover { --tw-text-opacity: 1; color: rgb(0 0 0 / var(--tw-text-opacity, 1)); }

.hover\:text-gray-600:hover { --tw-text-opacity: 1; color: rgb(75 85 99 / var(--tw-text-opacity, 1)); }

.hover\:text-white:hover { --tw-text-opacity: 1; color: rgb(255 255 255 / var(--tw-text-opacity, 1)); }

.focus\:border-accent:focus { --tw-border-opacity: 1; border-color: rgb(79 255 176 / var(--tw-border-opacity, 1)); }

.dark\:block:is(.dark *) { display: block; }

.dark\:hidden:is(.dark *) { display: none; }

.dark\:border-dark-border:is(.dark *) { --tw-border-opacity: 1; border-color: rgb(30 37 64 / var(--tw-border-opacity, 1)); }

.dark\:bg-dark-bg:is(.dark *) { --tw-bg-opacity: 1; background-color: rgb(13 15 20 / var(--tw-bg-opacity, 1)); }

.dark\:bg-dark-border:is(.dark *) { --tw-bg-opacity: 1; background-color: rgb(30 37 64 / var(--tw-bg-opacity, 1)); }

.dark\:bg-dark-panel:is(.dark *) { --tw-bg-opacity: 1; background-color: rgb(19 24 40 / var(--tw-bg-opacity, 1)); }

.dark\:bg-dark-surface:is(.dark *) { --tw-bg-opacity: 1; background-color: rgb(14 18 32 / var(--tw-bg-opacity, 1)); }

.dark\:text-amber-300:is(.dark *) { --tw-text-opacity: 1; color: rgb(252 211 77 / var(--tw-text-opacity, 1)); }

.dark\:text-gray-100:is(.dark *) { --tw-text-opacity: 1; color: rgb(243 244 246 / var(--tw-text-opacity, 1)); }

.dark\:text-gray-200:is(.dark *) { --tw-text-opacity: 1; color: rgb(229 231 235 / var(--tw-text-opacity, 1)); }

.dark\:text-gray-400:is(.dark *) { --tw-text-opacity: 1; color: rgb(156 163 175 / var(--tw-text-opacity, 1)); }

.dark\:text-gray-500:is(.dark *) { --tw-text-opacity: 1; color: rgb(107 114 128 / var(--tw-text-opacity, 1)); }

.dark\:hover\:border-accent:hover:is(.dark *) { --tw-border-opacity: 1; border-color: rgb(79 255 176 / var(--tw-border-opacity, 1)); }

.dark\:hover\:bg-dark-surface:hover:is(.dark *) { --tw-bg-opacity: 1; background-color: rgb(14 18 32 / var(--tw-bg-opacity, 1)); }

.dark\:hover\:text-gray-200:hover:is(.dark *) { --tw-text-opacity: 1; color: rgb(229 231 235 / var(--tw-text-opacity, 1)); }

.dark\:hover\:text-gray-300:hover:is(.dark *) { --tw-text-opacity: 1; color: rgb(209 213 219 / var(--tw-text-opacity, 1)); }

body { font-family: 'Syne', sans-serif; }

.canvas-dots-dark {
    background-color: #080a0f;
    background-image: radial-gradient(circle, #1c2030 1px, transparent 1px);
    background-size: 24px 24px;
  }

.canvas-dots-light {
    background-color: #f0f2f7;
    background-image: radial-gradient(circle, #c5cad8 1px, transparent 1px);
    background-size: 24px 24px;
  }

.canvas-dots-gost {
    background-color: #f5f5f0;
    background-image: radial-gradient(circle, #c8c8c0 1px, transparent 1px);
    background-size: 24px 24px;
  }

.canvas-dots-gost-dark {
    background-color: #252830;
    background-image: radial-gradient(circle, #363a46 1px, transparent 1px);
    background-size: 24px 24px;
  }

.color-swatch.active { border-color: #fff !important; }

.dark .color-swatch.active { border-color: #fff !important; }

.light .color-swatch.active { border-color: #000 !important; }

/* Theme toggle pill */
  .theme-toggle { position: relative; width: 44px; height: 24px; }

.theme-toggle input { opacity: 0; width: 0; height: 0; }

.theme-toggle-track {
    position: absolute; inset: 0; border-radius: 9999px; cursor: pointer; transition: background 0.2s;
  }

.theme-toggle-thumb {
    position: absolute; top: 3px; left: 3px;
    width: 18px; height: 18px; border-radius: 50%;
    background: #fff; transition: transform 0.2s;
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; line-height: 1;
  }

input:checked + .theme-toggle-track { background: #4fffb0; }

input:not(:checked) + .theme-toggle-track { background: #374151; }

/* Scrollbar */
  ::-webkit-scrollbar { width: 4px; }

::-webkit-scrollbar-thumb { background: #374151; border-radius: 4px; }

.dark ::-webkit-scrollbar-thumb { background: #374151; }

.light ::-webkit-scrollbar-thumb { background: #cbd5e1; }

select option { background: #131828; color: #e8eaf0; }

.dark select option { background: #131828; color: #e8eaf0; }

html:not(.dark) select option { background: #f5f7fb; color: #1a202c; }

/* Prevent browser text selection during drag/rubber-band */
  #canvas, #canvasWrap {
    user-select: none;
    -webkit-user-select: none;
  }

/* ===== MOBILE ADAPTATIONS ===== */
  @media (max-width: 768px) {
    /* Header: hide desktop buttons, show compact icon toolbar */
    #headerButtons { display: none; }
    #mobileMenuBtn { display: none !important; }

    /* Compact mobile toolbar strip — below header */
    #mobileToolbar {
      display: flex !important;
      align-items: center;
      justify-content: center;
      gap: 4px;
      padding: 6px 8px;
    }
    .mtb-btn {
      width: 34px; height: 34px;
      border-radius: 8px;
      border: 1px solid;
      font-size: 15px;
      display: flex; align-items: center; justify-content: center;
      cursor: pointer;
      transition: all 0.15s;
      flex-shrink: 0;
      background: transparent;
      -webkit-tap-highlight-color: transparent;
    }
    .mtb-btn.danger {
      font-size: 11px;
      font-weight: 700;
      font-family: 'JetBrains Mono', monospace;
      color: #ff6b6b;
      border-color: rgba(255,107,107,0.4);
    }
    .mtb-btn.danger:active { background: rgba(255,107,107,0.15); }
    /* Separator line */
    .mtb-sep {
      width: 1px; height: 20px; flex-shrink: 0;
      background: currentColor; opacity: 0.15;
    }
    /* Theme pill in toolbar */
    #mobileThemePill {
      display: flex; align-items: center; gap: 2px;
    }

    /* Dropdown for export/import — slides down */
    #mobileMoreMenu {
      position: fixed; top: 96px; right: 8px; z-index: 300;
      display: none; flex-direction: column; gap: 4px;
      padding: 8px;
      border-radius: 10px;
      border: 1px solid;
      min-width: 160px;
      box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    }
    #mobileMoreMenu.open { display: flex; }
    .mmm-btn {
      width: 100%; text-align: left;
      padding: 9px 12px; border-radius: 7px;
      font-family: 'JetBrains Mono', monospace;
      font-size: 12px; font-weight: 500;
      border: 1px solid transparent;
      cursor: pointer;
      background: transparent;
      transition: all 0.12s;
      -webkit-tap-highlight-color: transparent;
    }

    /* Mobile FAB toolbar — now only shapes+props, no menu fab */

    /* Left sidebar: hidden by default, slides up from bottom */
    #leftSidebar {
      position: fixed !important;
      bottom: 0; left: 0; right: 0;
      width: 100% !important;
      max-height: 50vh;
      overflow-y: auto;
      z-index: 150;
      transform: translateY(100%);
      transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
      border-top: 1px solid;
      border-right: none !important;
    }
    #leftSidebar.mobile-open { transform: translateY(0); }

    /* Right sidebar: hidden by default, slides up from bottom */
    #rightSidebar {
      position: fixed !important;
      bottom: 0; left: 0; right: 0;
      width: 100% !important;
      max-height: 55vh;
      overflow-y: auto;
      z-index: 150;
      transform: translateY(100%);
      transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
      border-top: 1px solid;
      border-left: none !important;
    }
    #rightSidebar.mobile-open { transform: translateY(0); }

    /* Mobile FAB toolbar — sits above status bar, right side */
    #mobileFabs {
      display: flex !important;
      position: fixed;
      bottom: 8px;
      right: 12px;
      flex-direction: column;
      gap: 8px;
      z-index: 120;
    }
    .mobile-fab {
      width: 44px; height: 44px;
      border-radius: 12px;
      border: 1px solid;
      font-size: 18px;
      display: flex; align-items: center; justify-content: center;
      cursor: pointer;
      transition: all 0.15s;
      box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    }
    .mobile-fab.active {
      border-color: #4fffb0 !important;
      color: #4fffb0 !important;
    }

    /* Status bar: hidden on mobile */
    #statusBar { display: none !important; }

    /* Sheet tabs strip: full width */
    #sheetsStrip { left: 0 !important; right: 0 !important; }

    /* Canvas takes full space */
    #canvasWrap { width: 100% !important; }

    /* Minimap smaller on mobile */
    #minimap { width: 90px !important; height: 58px !important; bottom: 8px !important; right: 60px !important; }

    /* Header smaller */
    header { padding: 6px 10px; }
    header .text-lg { font-size: 16px; }

    /* Palette items: larger touch targets */
    #leftSidebar .palette-item { padding: 10px 12px; font-size: 13px; }

    /* Overlay backdrop for sidebars */
    #mobileBackdrop {
      display: none;
      position: fixed; inset: 0; z-index: 140;
      background: rgba(0,0,0,0.5);
    }
    #mobileBackdrop.active { display: block; }
  }

*, ::before, ::after{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246 / 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }

::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246 / 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }

/* ! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com */*,::after,::before{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}

::after,::before{--tw-content:''}

:host,html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}

body{margin:0;line-height:inherit}

hr{height:0;color:inherit;border-top-width:1px}

abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}

h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}

a{color:inherit;text-decoration:inherit}

b,strong{font-weight:bolder}

code,kbd,pre,samp{font-family:JetBrains Mono, monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}

small{font-size:80%}

sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}

sub{bottom:-.25em}

sup{top:-.5em}

table{text-indent:0;border-color:inherit;border-collapse:collapse}

button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}

button,select{text-transform:none}

button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}

:-moz-focusring{outline:auto}

:-moz-ui-invalid{box-shadow:none}

progress{vertical-align:baseline}

::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}

[type=search]{-webkit-appearance:textfield;outline-offset:-2px}

::-webkit-search-decoration{-webkit-appearance:none}

::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}

summary{display:list-item}

blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}

fieldset{margin:0;padding:0}

legend{padding:0}

menu,ol,ul{list-style:none;margin:0;padding:0}

dialog{padding:0}

textarea{resize:vertical}

input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}

[role=button],button{cursor:pointer}

:disabled{cursor:default}

audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}

img,video{max-width:100%;height:auto}

[hidden]:where(:not([hidden=until-found])){display:none}

.pointer-events-none{pointer-events:none}

.fixed{position:fixed}

.absolute{position:absolute}

.relative{position:relative}

.inset-0{inset:0px}

.bottom-2{bottom:0.5rem}

.right-2{right:0.5rem}

.z-40{z-index:40}

.z-50{z-index:50}

.z-\[1000\]{z-index:1000}

.z-\[9999\]{z-index:9999}

.mb-1{margin-bottom:0.25rem}

.mb-1\.5{margin-bottom:0.375rem}

.mb-2{margin-bottom:0.5rem}

.mb-2\.5{margin-bottom:0.625rem}

.mb-3{margin-bottom:0.75rem}

.mb-4{margin-bottom:1rem}

.ml-1{margin-left:0.25rem}

.ml-auto{margin-left:auto}

.mt-1{margin-top:0.25rem}

.mt-1\.5{margin-top:0.375rem}

.mt-2{margin-top:0.5rem}

.mt-3\.5{margin-top:0.875rem}

.block{display:block}

.flex{display:flex}

.hidden{display:none}

.h-4{height:1rem}

.h-48{height:12rem}

.h-5{height:1.25rem}

.h-\[18px\]{height:18px}

.h-full{height:100%}

.h-screen{height:100vh}

.w-16{width:4rem}

.w-4{width:1rem}

.w-48{width:12rem}

.w-56{width:14rem}

.w-7{width:1.75rem}

.w-\[18px\]{width:18px}

.w-full{width:100%}

.min-w-\[360px\]{min-width:360px}

.max-w-\[90vw\]{max-width:90vw}

.flex-1{flex:1 1 0%}

.flex-shrink-0{flex-shrink:0}

.rotate-45{--tw-rotate:45deg;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}

.cursor-grab{cursor:grab}

.cursor-pointer{cursor:pointer}

.select-none{-webkit-user-select:none;user-select:none}

.resize-none{resize:none}

.resize-y{resize:vertical}

.flex-col{flex-direction:column}

.flex-wrap{flex-wrap:wrap}

.items-end{align-items:flex-end}

.items-center{align-items:center}

.justify-end{justify-content:flex-end}

.justify-center{justify-content:center}

.justify-between{justify-content:space-between}

.gap-0{gap:0px}

.gap-1{gap:0.25rem}

.gap-1\.5{gap:0.375rem}

.gap-2{gap:0.5rem}

.gap-2\.5{gap:0.625rem}

.gap-3{gap:0.75rem}

.gap-4{gap:1rem}

.gap-5{gap:1.25rem}

.self-center{align-self:center}

.overflow-hidden{overflow:hidden}

.overflow-x-auto{overflow-x:auto}

.overflow-y-auto{overflow-y:auto}

.rounded{border-radius:0.25rem}

.rounded-\[5px\]{border-radius:5px}

.rounded-full{border-radius:9999px}

.rounded-lg{border-radius:0.5rem}

.rounded-md{border-radius:0.375rem}

.rounded-sm{border-radius:0.125rem}

.rounded-xl{border-radius:0.75rem}

.border{border-width:1px}

.border-2{border-width:2px}

.border-\[1\.5px\]{border-width:1.5px}

.border-b{border-bottom-width:1px}

.border-b-2{border-bottom-width:2px}

.border-l{border-left-width:1px}

.border-r{border-right-width:1px}

.border-t{border-top-width:1px}

.border-accent{--tw-border-opacity:1;border-color:rgb(79 255 176 / var(--tw-border-opacity, 1))}

.border-accent2{--tw-border-opacity:1;border-color:rgb(255 107 107 / var(--tw-border-opacity, 1))}

.border-accent3{--tw-border-opacity:1;border-color:rgb(107 138 255 / var(--tw-border-opacity, 1))}

.border-light-border{--tw-border-opacity:1;border-color:rgb(221 225 236 / var(--tw-border-opacity, 1))}

.border-transparent{border-color:transparent}

.border-violet-400{--tw-border-opacity:1;border-color:rgb(167 139 250 / var(--tw-border-opacity, 1))}

.bg-accent{--tw-bg-opacity:1;background-color:rgb(79 255 176 / var(--tw-bg-opacity, 1))}

.bg-black\/70{background-color:rgb(0 0 0 / 0.7)}

.bg-light-bg{--tw-bg-opacity:1;background-color:rgb(240 242 247 / var(--tw-bg-opacity, 1))}

.bg-light-border{--tw-bg-opacity:1;background-color:rgb(221 225 236 / var(--tw-bg-opacity, 1))}

.bg-light-panel{--tw-bg-opacity:1;background-color:rgb(245 247 251 / var(--tw-bg-opacity, 1))}

.bg-light-surface{--tw-bg-opacity:1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}

.bg-transparent{background-color:transparent}

.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}

.p-2\.5{padding:0.625rem}

.p-5{padding:1.25rem}

.p-6{padding:1.5rem}

.px-1\.5{padding-left:0.375rem;padding-right:0.375rem}

.px-2{padding-left:0.5rem;padding-right:0.5rem}

.px-2\.5{padding-left:0.625rem;padding-right:0.625rem}

.px-3{padding-left:0.75rem;padding-right:0.75rem}

.px-3\.5{padding-left:0.875rem;padding-right:0.875rem}

.px-4{padding-left:1rem;padding-right:1rem}

.px-5{padding-left:1.25rem;padding-right:1.25rem}

.py-0\.5{padding-top:0.125rem;padding-bottom:0.125rem}

.py-1{padding-top:0.25rem;padding-bottom:0.25rem}

.py-1\.5{padding-top:0.375rem;padding-bottom:0.375rem}

.py-2{padding-top:0.5rem;padding-bottom:0.5rem}

.py-2\.5{padding-top:0.625rem;padding-bottom:0.625rem}

.py-3\.5{padding-top:0.875rem;padding-bottom:0.875rem}

.py-5{padding-top:1.25rem;padding-bottom:1.25rem}

.pb-2{padding-bottom:0.5rem}

.pb-3{padding-bottom:0.75rem}

.pt-3{padding-top:0.75rem}

.pt-3\.5{padding-top:0.875rem}

.text-left{text-align:left}

.text-center{text-align:center}

.font-mono{font-family:JetBrains Mono, monospace}

.font-syne{font-family:Syne, sans-serif}

.text-\[10px\]{font-size:10px}

.text-\[11px\]{font-size:11px}

.text-\[12px\]{font-size:12px}

.text-\[9px\]{font-size:9px}

.text-base{font-size:1rem;line-height:1.5rem}

.text-lg{font-size:1.125rem;line-height:1.75rem}

.text-xs{font-size:0.75rem;line-height:1rem}

.font-black{font-weight:900}

.font-semibold{font-weight:600}

.uppercase{text-transform:uppercase}

.leading-\[1\.7\]{line-height:1.7}

.leading-\[1\.8\]{line-height:1.8}

.leading-relaxed{line-height:1.625}

.tracking-tight{letter-spacing:-0.025em}

.tracking-wide{letter-spacing:0.025em}

.tracking-wider{letter-spacing:0.05em}

.tracking-widest{letter-spacing:0.1em}

.text-accent{--tw-text-opacity:1;color:rgb(79 255 176 / var(--tw-text-opacity, 1))}

.text-accent2{--tw-text-opacity:1;color:rgb(255 107 107 / var(--tw-text-opacity, 1))}

.text-amber-400{--tw-text-opacity:1;color:rgb(251 191 36 / var(--tw-text-opacity, 1))}

.text-black{--tw-text-opacity:1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}

.text-gray-300{--tw-text-opacity:1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}

.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}

.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}

.text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}

.text-gray-800{--tw-text-opacity:1;color:rgb(31 41 55 / var(--tw-text-opacity, 1))}

.text-violet-400{--tw-text-opacity:1;color:rgb(167 139 250 / var(--tw-text-opacity, 1))}

.no-underline{-webkit-text-decoration-line:none;text-decoration-line:none}

.opacity-85{opacity:0.85}

.outline-none{outline:2px solid transparent;outline-offset:2px}

.transition-all{transition-property:all;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}

.transition-colors{transition-property:color, background-color, border-color, fill, stroke, -webkit-text-decoration-color;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, -webkit-text-decoration-color;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}

.hover\:translate-x-0\.5:hover{--tw-translate-x:0.125rem;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}

.hover\:border-accent:hover{--tw-border-opacity:1;border-color:rgb(79 255 176 / var(--tw-border-opacity, 1))}

.hover\:bg-accent:hover{--tw-bg-opacity:1;background-color:rgb(79 255 176 / var(--tw-bg-opacity, 1))}

.hover\:bg-accent2:hover{--tw-bg-opacity:1;background-color:rgb(255 107 107 / var(--tw-bg-opacity, 1))}

.hover\:bg-emerald-400:hover{--tw-bg-opacity:1;background-color:rgb(52 211 153 / var(--tw-bg-opacity, 1))}

.hover\:bg-light-bg:hover{--tw-bg-opacity:1;background-color:rgb(240 242 247 / var(--tw-bg-opacity, 1))}

.hover\:bg-violet-400:hover{--tw-bg-opacity:1;background-color:rgb(167 139 250 / var(--tw-bg-opacity, 1))}

.hover\:text-accent:hover{--tw-text-opacity:1;color:rgb(79 255 176 / var(--tw-text-opacity, 1))}

.hover\:text-black:hover{--tw-text-opacity:1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}

.hover\:text-gray-600:hover{--tw-text-opacity:1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}

.hover\:text-white:hover{--tw-text-opacity:1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}

.focus\:border-accent:focus{--tw-border-opacity:1;border-color:rgb(79 255 176 / var(--tw-border-opacity, 1))}

.dark\:block:is(.dark *){display:block}

.dark\:hidden:is(.dark *){display:none}

.dark\:border-dark-border:is(.dark *){--tw-border-opacity:1;border-color:rgb(30 37 64 / var(--tw-border-opacity, 1))}

.dark\:bg-dark-bg:is(.dark *){--tw-bg-opacity:1;background-color:rgb(13 15 20 / var(--tw-bg-opacity, 1))}

.dark\:bg-dark-border:is(.dark *){--tw-bg-opacity:1;background-color:rgb(30 37 64 / var(--tw-bg-opacity, 1))}

.dark\:bg-dark-panel:is(.dark *){--tw-bg-opacity:1;background-color:rgb(19 24 40 / var(--tw-bg-opacity, 1))}

.dark\:bg-dark-surface:is(.dark *){--tw-bg-opacity:1;background-color:rgb(14 18 32 / var(--tw-bg-opacity, 1))}

.dark\:text-amber-300:is(.dark *){--tw-text-opacity:1;color:rgb(252 211 77 / var(--tw-text-opacity, 1))}

.dark\:text-gray-100:is(.dark *){--tw-text-opacity:1;color:rgb(243 244 246 / var(--tw-text-opacity, 1))}

.dark\:text-gray-200:is(.dark *){--tw-text-opacity:1;color:rgb(229 231 235 / var(--tw-text-opacity, 1))}

.dark\:text-gray-400:is(.dark *){--tw-text-opacity:1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}

.dark\:text-gray-500:is(.dark *){--tw-text-opacity:1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}

.dark\:hover\:border-accent:hover:is(.dark *){--tw-border-opacity:1;border-color:rgb(79 255 176 / var(--tw-border-opacity, 1))}

.dark\:hover\:bg-dark-surface:hover:is(.dark *){--tw-bg-opacity:1;background-color:rgb(14 18 32 / var(--tw-bg-opacity, 1))}

.dark\:hover\:text-gray-200:hover:is(.dark *){--tw-text-opacity:1;color:rgb(229 231 235 / var(--tw-text-opacity, 1))}

.dark\:hover\:text-gray-300:hover:is(.dark *){--tw-text-opacity:1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}
/* ============================================================
   AI FLOWCHART WIDGET
   ============================================================ */

@keyframes aiWidgetPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(79,255,176,0.45),
                0 12px 40px rgba(79,255,176,0.28),
                0 4px 12px rgba(0,0,0,0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(79,255,176,0),
                0 12px 40px rgba(79,255,176,0.38),
                0 4px 12px rgba(0,0,0,0.4);
  }
}

@keyframes aiIconSpin {
  0%   { transform: rotate(0deg) scale(1); }
  50%  { transform: rotate(180deg) scale(1.2); }
  100% { transform: rotate(360deg) scale(1); }
}

/* Base widget */
#aiFlowWidget {
  position: fixed;
  bottom: 24px;
  right: 20px;
  left: auto;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 26px 18px 18px;
  border-radius: 22px;
  border: 2px solid rgba(79,255,176,0.65);
  background: linear-gradient(135deg, rgba(13,15,20,0.97) 0%, rgba(19,24,40,0.97) 100%);
  box-shadow: 0 12px 40px rgba(79,255,176,0.28), 0 4px 12px rgba(0,0,0,0.4);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-family: 'JetBrains Mono', monospace;
  max-width: 360px;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  animation: aiWidgetPulse 2.8s ease-in-out infinite;
}

#aiFlowWidget:hover {
  animation: none;
  border-color: rgba(79,255,176,1);
  box-shadow: 0 16px 52px rgba(79,255,176,0.38), 0 4px 16px rgba(0,0,0,0.5);
  transform: translateY(-3px) scale(1.02);
}

#aiFlowWidget:hover .ai-arrow {
  transform: translateX(4px);
}

/* Badge */
#aiFlowWidget .ai-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #4fffb0;
  color: #0a0f1a;
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 99px;
  text-transform: uppercase;
  line-height: 1.5;
  white-space: nowrap;
}

/* Icon wrapper */
#aiFlowWidget .ai-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(79,255,176,0.22) 0%, rgba(107,138,255,0.22) 100%);
  border: 1px solid rgba(79,255,176,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 28px;
  line-height: 1;
}

/* Spinning star icon */
#aiFlowWidget .ai-icon-star {
  display: inline-block;
  color: #4fffb0;
  animation: aiIconSpin 5s linear infinite;
}

/* Text block */
#aiFlowWidget .ai-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

#aiFlowWidget .ai-title {
  font-size: 16px;
  font-weight: 800;
  color: #4fffb0;
  white-space: nowrap;
  letter-spacing: 0.03em;
}

#aiFlowWidget .ai-subtitle {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

/* Arrow */
#aiFlowWidget .ai-arrow {
  font-size: 22px;
  color: rgba(79,255,176,0.7);
  flex-shrink: 0;
  margin-left: 2px;
  transition: transform 0.22s ease;
}

/* ---- Light theme overrides ---- */
html:not(.dark) #aiFlowWidget {
  background: linear-gradient(135deg, #ffffff 0%, #edfff6 100%);
  border-color: rgba(5,150,105,0.6);
  box-shadow: 0 12px 40px rgba(5,150,105,0.18), 0 4px 12px rgba(0,0,0,0.08);
  animation: none;
}

html:not(.dark) #aiFlowWidget:hover {
  border-color: rgba(5,150,105,1);
  box-shadow: 0 16px 52px rgba(5,150,105,0.28), 0 4px 16px rgba(0,0,0,0.1);
}

html:not(.dark) #aiFlowWidget .ai-badge {
  background: #059669;
  color: #fff;
}

html:not(.dark) #aiFlowWidget .ai-icon-wrap {
  background: linear-gradient(135deg, rgba(5,150,105,0.12) 0%, rgba(107,138,255,0.1) 100%);
  border-color: rgba(5,150,105,0.3);
}

html:not(.dark) #aiFlowWidget .ai-icon-star { color: #059669; }
html:not(.dark) #aiFlowWidget .ai-title    { color: #059669; }
html:not(.dark) #aiFlowWidget .ai-subtitle { color: rgba(0,0,0,0.45); }
html:not(.dark) #aiFlowWidget .ai-arrow    { color: rgba(5,150,105,0.7); }

/* ---- Mobile: left side, smaller ---- */
@media (max-width: 768px) {
  #aiFlowWidget {
    right: auto;
    left: 12px;
    bottom: 8px;
    z-index: 100;
    gap: 9px;
    padding: 10px 14px 10px 10px;
    border-radius: 14px;
    max-width: 220px;
  }

  #aiFlowWidget .ai-icon-wrap {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    font-size: 17px;
  }

  #aiFlowWidget .ai-title {
    font-size: 11px;
  }

  #aiFlowWidget .ai-subtitle {
    font-size: 8.5px;
  }

  #aiFlowWidget .ai-arrow {
    font-size: 14px;
  }

  #aiFlowWidget .ai-badge {
    font-size: 7.5px;
    padding: 1px 5px;
    top: -7px;
    right: -7px;
  }
}

/* ============================================================
   MINIMAP — desktop: move to bottom-left
   ============================================================ */
@media (min-width: 769px) {
  #minimap {
    right: auto !important;
    left: 8px !important;
    bottom: 62px !important;
  }
}