*, ::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.19 | MIT License | https://tailwindcss.com
*/

/*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/

*,
::before,
::after {
  box-sizing: border-box;
  /* 1 */
  border-width: 0;
  /* 2 */
  border-style: solid;
  /* 2 */
  border-color: #e5e7eb;
  /* 2 */
}

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

/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
7. Disable tap highlights on iOS
*/

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

/*
1. Remove the margin in all browsers.
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
*/

body {
  margin: 0;
  /* 1 */
  line-height: inherit;
  /* 2 */
}

/*
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
3. Ensure horizontal rules are visible by default.
*/

hr {
  height: 0;
  /* 1 */
  color: inherit;
  /* 2 */
  border-top-width: 1px;
  /* 3 */
}

/*
Add the correct text decoration in Chrome, Edge, and Safari.
*/

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

/*
Remove the default font size and weight for headings.
*/

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

/*
Reset links to optimize for opt-in styling instead of opt-out.
*/

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

/*
Add the correct font weight in Edge and Safari.
*/

b,
strong {
  font-weight: bolder;
}

/*
1. Use the user's configured `mono` font-family by default.
2. Use the user's configured `mono` font-feature-settings by default.
3. Use the user's configured `mono` font-variation-settings by default.
4. Correct the odd `em` font sizing in all browsers.
*/

code,
kbd,
samp,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  /* 1 */
  font-feature-settings: normal;
  /* 2 */
  font-variation-settings: normal;
  /* 3 */
  font-size: 1em;
  /* 4 */
}

/*
Add the correct font size in all browsers.
*/

small {
  font-size: 80%;
}

/*
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/

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

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
3. Remove gaps between table borders by default.
*/

table {
  text-indent: 0;
  /* 1 */
  border-color: inherit;
  /* 2 */
  border-collapse: collapse;
  /* 3 */
}

/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/

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

/*
Remove the inheritance of text transform in Edge and Firefox.
*/

button,
select {
  text-transform: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/

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

/*
Use the modern Firefox focus style for all focusable elements.
*/

:-moz-focusring {
  outline: auto;
}

/*
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/

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

/*
Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
  vertical-align: baseline;
}

/*
Correct the cursor style of increment and decrement buttons in Safari.
*/

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

/*
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/

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

/*
Remove the inner padding in Chrome and Safari on macOS.
*/

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

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to `inherit` in Safari.
*/

::-webkit-file-upload-button {
  -webkit-appearance: button;
  /* 1 */
  font: inherit;
  /* 2 */
}

/*
Add the correct display in Chrome and Safari.
*/

summary {
  display: list-item;
}

/*
Removes the default spacing and border for appropriate elements.
*/

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

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

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

/*
Reset default styling for dialogs.
*/

dialog {
  padding: 0;
}

/*
Prevent resizing textareas horizontally by default.
*/

textarea {
  resize: vertical;
}

/*
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
2. Set the default placeholder color to the user's configured gray 400 color.
*/

input::-moz-placeholder, textarea::-moz-placeholder {
  opacity: 1;
  /* 1 */
  color: #9ca3af;
  /* 2 */
}

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

/*
Set the default cursor for buttons.
*/

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

/*
Make sure disabled buttons don't get the pointer cursor.
*/

:disabled {
  cursor: default;
}

/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
   This can trigger a poorly considered lint error in some tools but is included by design.
*/

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

/*
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/

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

/* Make elements with the HTML hidden attribute stay hidden by default */

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

.\!container {
  width: 100% !important;
}

.container {
  width: 100%;
}

@media (min-width: 640px) {
  .\!container {
    max-width: 640px !important;
  }

  .container {
    max-width: 640px;
  }
}

@media (min-width: 768px) {
  .\!container {
    max-width: 768px !important;
  }

  .container {
    max-width: 768px;
  }
}

@media (min-width: 1024px) {
  .\!container {
    max-width: 1024px !important;
  }

  .container {
    max-width: 1024px;
  }
}

@media (min-width: 1280px) {
  .\!container {
    max-width: 1280px !important;
  }

  .container {
    max-width: 1280px;
  }
}

@media (min-width: 1536px) {
  .\!container {
    max-width: 1536px !important;
  }

  .container {
    max-width: 1536px;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

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

.\!visible {
  visibility: visible !important;
}

.visible {
  visibility: visible;
}

.collapse {
  visibility: collapse;
}

.fixed {
  position: fixed;
}

.absolute {
  position: absolute;
}

.relative {
  position: relative;
}

.sticky {
  position: sticky;
}

.inset-0 {
  inset: 0px;
}

.bottom-0 {
  bottom: 0px;
}

.left-0 {
  left: 0px;
}

.right-0 {
  right: 0px;
}

.right-3 {
  right: 0.75rem;
}

.top-0 {
  top: 0px;
}

.top-1\/2 {
  top: 50%;
}

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

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

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

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

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

.m-0 {
  margin: 0px;
}

.mx-1 {
  margin-left: 0.25rem;
  margin-right: 0.25rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.my-10 {
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
}

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

.mb-10 {
  margin-bottom: 2.5rem;
}

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

.mb-20 {
  margin-bottom: 5rem;
}

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

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

.mb-5 {
  margin-bottom: 1.25rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

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

.mb-\[104px\] {
  margin-bottom: 104px;
}

.me-2\.5 {
  margin-inline-end: 0.625rem;
}

.ml-2 {
  margin-left: 0.5rem;
}

.ml-3 {
  margin-left: 0.75rem;
}

.mr-2 {
  margin-right: 0.5rem;
}

.mr-3 {
  margin-right: 0.75rem;
}

.mr-\[20px\] {
  margin-right: 20px;
}

.ms-1 {
  margin-inline-start: 0.25rem;
}

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

.mt-10 {
  margin-top: 2.5rem;
}

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

.mt-3 {
  margin-top: 0.75rem;
}

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

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

.mt-5 {
  margin-top: 1.25rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.mt-7 {
  margin-top: 1.75rem;
}

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

.mt-\[100px\] {
  margin-top: 100px;
}

.mt-\[40px\] {
  margin-top: 40px;
}

.mt-\[64px\] {
  margin-top: 64px;
}

.mt-\[6px\] {
  margin-top: 6px;
}

.mt-\[70px\] {
  margin-top: 70px;
}

.mt-auto {
  margin-top: auto;
}

.line-clamp-4 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.block {
  display: block;
}

.inline-block {
  display: inline-block;
}

.inline {
  display: inline;
}

.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

.\!grid {
  display: grid !important;
}

.grid {
  display: grid;
}

.hidden {
  display: none;
}

.h-3 {
  height: 0.75rem;
}

.h-5 {
  height: 1.25rem;
}

.h-6 {
  height: 1.5rem;
}

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

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

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

.h-auto {
  height: auto;
}

.h-full {
  height: 100%;
}

.h-screen {
  height: 100vh;
}

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

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

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

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

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

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

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

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

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

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

.min-h-screen {
  min-height: 100vh;
}

.w-1\/2 {
  width: 50%;
}

.w-3 {
  width: 0.75rem;
}

.w-5 {
  width: 1.25rem;
}

.w-6 {
  width: 1.5rem;
}

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

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

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

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

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

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

.w-full {
  width: 100%;
}

.w-screen {
  width: 100vw;
}

.min-w-0 {
  min-width: 0px;
}

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

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

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

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

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

.min-w-full {
  min-width: 100%;
}

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

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

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

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

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

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

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

.max-w-full {
  max-width: 100%;
}

.max-w-screen-2xl {
  max-width: 1536px;
}

.max-w-sm {
  max-width: 24rem;
}

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

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

.shrink {
  flex-shrink: 1;
}

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

.-translate-y-1\/2 {
  --tw-translate-y: -50%;
  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));
}

.translate-x-0 {
  --tw-translate-x: 0px;
  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));
}

.translate-x-full {
  --tw-translate-x: 100%;
  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));
}

.scale-90 {
  --tw-scale-x: .9;
  --tw-scale-y: .9;
  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));
}

.transform {
  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-not-allowed {
  cursor: not-allowed;
}

.cursor-pointer {
  cursor: pointer;
}

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

.resize {
  resize: both;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.flex-row {
  flex-direction: row;
}

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

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

.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-1 {
  gap: 0.25rem;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-5 {
  gap: 1.25rem;
}

.space-x-1 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-x-reverse: 0;
  margin-right: calc(0.25rem * var(--tw-space-x-reverse));
  margin-left: calc(0.25rem * calc(1 - var(--tw-space-x-reverse)));
}

.space-x-6 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-x-reverse: 0;
  margin-right: calc(1.5rem * var(--tw-space-x-reverse));
  margin-left: calc(1.5rem * calc(1 - var(--tw-space-x-reverse)));
}

.space-y-2 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.5rem * var(--tw-space-y-reverse));
}

.space-y-3 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.75rem * var(--tw-space-y-reverse));
}

.space-y-4 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1rem * var(--tw-space-y-reverse));
}

.overflow-hidden {
  overflow: hidden;
}

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

.rounded {
  border-radius: 0.25rem;
}

.rounded-2xl {
  border-radius: 1rem;
}

.rounded-3xl {
  border-radius: 1.5rem;
}

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

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

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

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

.border {
  border-width: 1px;
}

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

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

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

.border-\[\#808080\] {
  --tw-border-opacity: 1;
  border-color: rgb(128 128 128 / var(--tw-border-opacity, 1));
}

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

.border-gray-200 {
  --tw-border-opacity: 1;
  border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}

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

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

.border-red-500 {
  --tw-border-opacity: 1;
  border-color: rgb(239 68 68 / var(--tw-border-opacity, 1));
}

.border-b-gray-200 {
  --tw-border-opacity: 1;
  border-bottom-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}

.bg-\[\#1C2320\] {
  --tw-bg-opacity: 1;
  background-color: rgb(28 35 32 / var(--tw-bg-opacity, 1));
}

.bg-\[\#41A69A\] {
  --tw-bg-opacity: 1;
  background-color: rgb(65 166 154 / var(--tw-bg-opacity, 1));
}

.bg-\[\#47B5A8\] {
  --tw-bg-opacity: 1;
  background-color: rgb(71 181 168 / var(--tw-bg-opacity, 1));
}

.bg-\[\#EEEEEE\] {
  --tw-bg-opacity: 1;
  background-color: rgb(238 238 238 / var(--tw-bg-opacity, 1));
}

.bg-\[\#F6F6F6\] {
  --tw-bg-opacity: 1;
  background-color: rgb(246 246 246 / var(--tw-bg-opacity, 1));
}

.bg-\[\#f8fafc\] {
  --tw-bg-opacity: 1;
  background-color: rgb(248 250 252 / var(--tw-bg-opacity, 1));
}

.bg-gray-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
}

.bg-gray-200 {
  --tw-bg-opacity: 1;
  background-color: rgb(229 231 235 / var(--tw-bg-opacity, 1));
}

.bg-gray-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
}

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

.bg-gray-900 {
  --tw-bg-opacity: 1;
  background-color: rgb(17 24 39 / var(--tw-bg-opacity, 1));
}

.bg-red-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(239 68 68 / var(--tw-bg-opacity, 1));
}

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

.bg-opacity-50 {
  --tw-bg-opacity: 0.5;
}

.bg-\[linear-gradient\(\#47B5A8\2c \#3A6E67\)\] {
  background-image: linear-gradient(#47B5A8,#3A6E67);
}

.object-contain {
  -o-object-fit: contain;
     object-fit: contain;
}

.p-0 {
  padding: 0px;
}

.p-1 {
  padding: 0.25rem;
}

.p-10 {
  padding: 2.5rem;
}

.p-2 {
  padding: 0.5rem;
}

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

.p-3 {
  padding: 0.75rem;
}

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

.p-4 {
  padding: 1rem;
}

.p-5 {
  padding: 1.25rem;
}

.p-6 {
  padding: 1.5rem;
}

.p-8 {
  padding: 2rem;
}

.p-\[40px\] {
  padding: 40px;
}

.px-10 {
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}

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

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

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

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

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

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

.px-\[10px\] {
  padding-left: 10px;
  padding-right: 10px;
}

.px-\[30px\] {
  padding-left: 30px;
  padding-right: 30px;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

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

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

.pb-4 {
  padding-bottom: 1rem;
}

.pb-\[20px\] {
  padding-bottom: 20px;
}

.pb-\[60px\] {
  padding-bottom: 60px;
}

.pr-12 {
  padding-right: 3rem;
}

.pr-2 {
  padding-right: 0.5rem;
}

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

.pt-\[130px\] {
  padding-top: 130px;
}

.pt-\[64px\] {
  padding-top: 64px;
}

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

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

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

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

.align-top {
  vertical-align: top;
}

.align-middle {
  vertical-align: middle;
}

.align-bottom {
  vertical-align: bottom;
}

.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}

.text-5xl {
  font-size: 3rem;
  line-height: 1;
}

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

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

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

.text-\[1rem\] {
  font-size: 1rem;
}

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

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

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

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

.font-bold {
  font-weight: 700;
}

.font-medium {
  font-weight: 500;
}

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

.lowercase {
  text-transform: lowercase;
}

.italic {
  font-style: italic;
}

.leading-6 {
  line-height: 1.5rem;
}

.leading-7 {
  line-height: 1.75rem;
}

.leading-\[55px\] {
  line-height: 55px;
}

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

.text-\[\#1C2526\] {
  --tw-text-opacity: 1;
  color: rgb(28 37 38 / var(--tw-text-opacity, 1));
}

.text-\[\#1E1E1E\] {
  --tw-text-opacity: 1;
  color: rgb(30 30 30 / var(--tw-text-opacity, 1));
}

.text-\[\#41A69A\] {
  --tw-text-opacity: 1;
  color: rgb(65 166 154 / var(--tw-text-opacity, 1));
}

.text-\[\#6D788C\] {
  --tw-text-opacity: 1;
  color: rgb(109 120 140 / var(--tw-text-opacity, 1));
}

.text-\[\#808080\] {
  --tw-text-opacity: 1;
  color: rgb(128 128 128 / var(--tw-text-opacity, 1));
}

.text-\[\#A7A9A3\] {
  --tw-text-opacity: 1;
  color: rgb(167 169 163 / var(--tw-text-opacity, 1));
}

.text-\[\#E8B01F\] {
  --tw-text-opacity: 1;
  color: rgb(232 176 31 / var(--tw-text-opacity, 1));
}

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

.text-gray-200 {
  --tw-text-opacity: 1;
  color: rgb(229 231 235 / 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-600 {
  --tw-text-opacity: 1;
  color: rgb(75 85 99 / 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-gray-900 {
  --tw-text-opacity: 1;
  color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}

.text-red-500 {
  --tw-text-opacity: 1;
  color: rgb(239 68 68 / var(--tw-text-opacity, 1));
}

.text-red-600 {
  --tw-text-opacity: 1;
  color: rgb(220 38 38 / var(--tw-text-opacity, 1));
}

.text-rose-600 {
  --tw-text-opacity: 1;
  color: rgb(225 29 72 / var(--tw-text-opacity, 1));
}

.text-slate-500 {
  --tw-text-opacity: 1;
  color: rgb(100 116 139 / var(--tw-text-opacity, 1));
}

.text-slate-600 {
  --tw-text-opacity: 1;
  color: rgb(71 85 105 / var(--tw-text-opacity, 1));
}

.text-slate-700 {
  --tw-text-opacity: 1;
  color: rgb(51 65 85 / var(--tw-text-opacity, 1));
}

.text-slate-800 {
  --tw-text-opacity: 1;
  color: rgb(30 41 59 / var(--tw-text-opacity, 1));
}

.text-slate-900 {
  --tw-text-opacity: 1;
  color: rgb(15 23 42 / var(--tw-text-opacity, 1));
}

.text-teal-600 {
  --tw-text-opacity: 1;
  color: rgb(13 148 136 / var(--tw-text-opacity, 1));
}

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

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

.opacity-0 {
  opacity: 0;
}

.opacity-60 {
  opacity: 0.6;
}

.shadow {
  --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.shadow-lg {
  --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.shadow-md {
  --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.shadow-xl {
  --tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.shadow-gray-200 {
  --tw-shadow-color: #e5e7eb;
  --tw-shadow: var(--tw-shadow-colored);
}

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

.outline {
  outline-style: solid;
}

.blur {
  --tw-blur: blur(8px);
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}

.filter {
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}

.transition {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.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;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

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

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

.duration-300 {
  transition-duration: 300ms;
}

.ease-in-out {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

@font-face {
  font-family: "Noto Color Emoji";

  src: url("/fonts/NotoColorEmoji.ttf") format("truetype");

  font-display: swap;
}

/* Editor v4 Design - Birebir eşleşme */

/* Ensure no gap above canvas (grid starts from very top) */

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

:root {
  --edge-gap: 10px;
}

/* ========== Editor shell: full viewport, no top gap ========== */

.editor-shell {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-width: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

/* ========== Loading screen (until localStorage read) - eski proje ile aynı ========== */

.editor-loader {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.92);
  z-index: 99999;
  backdrop-filter: blur(2px);
}

.editor-loader.hidden {
  display: none;
}

.loader-spinner {
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  border: 4px solid #dbeafe;
  border-top-color: #0a449e;
  animation: editor-loader-spin 0.9s linear infinite;
}

@keyframes editor-loader-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ========== Top Bar (fixed on top of grid, above editor) ========== */

.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2300;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 12px var(--edge-gap);
  border-bottom: none;
}

/* ========== Page Tabs (workspace-tabs) - editor-v4 birebir ========== */

.workspace-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  flex: 1;
  min-width: 0;
}

.workspace-tabs .tabs-track {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 4px;
  scrollbar-width: none;
}

.workspace-tabs .tabs-track::-webkit-scrollbar {
  display: none;
}

.workspace-tabs .tab-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 20px;
  background: transparent;
  color: #1f2937;
  border: none;
  border-radius: 0;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.15s ease;
  white-space: nowrap;
  position: relative;
}

.workspace-tabs .tab-pill:hover {
  background: rgba(15, 23, 42, 0.04);
}

.workspace-tabs .tab-pill.active {
  background: transparent;
  border-color: transparent;
  box-shadow: 0 3px 0 #0A449E;
  font-weight: 600;
}

.workspace-tabs .tab-label {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.workspace-tabs .tab-type {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #0f172a;
}

.workspace-tabs .tab-pill.active .tab-type {
  background: #d6e4ff;
  color: #1e3a8a;
}

.workspace-tabs .tab-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
}

.workspace-tabs .tab-pill:not(.active) .tab-actions {
  opacity: 0;
  pointer-events: none;
}

.workspace-tabs .tab-pill.active .tab-actions {
  opacity: 1;
}

.workspace-tabs .tab-icon-btn {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  border: 1px solid transparent;
  display: grid;
  place-items: center;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;
}

.workspace-tabs .tab-icon-btn:hover {
  background: #f1f5f9;
}

.workspace-tabs .tab-icon-btn svg {
  width: 14px;
  height: 14px;
}

/* Eski proje: scroll okları frame üzerine gelince görünsün, ayrılınca zamanlayıcı ile kaybolsun */

.workspace-tabs .nav-btn {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #f8fafc;
  display: grid;
  place-items: center;
  color: #0f172a;
  cursor: pointer;
  transition: opacity 0.2s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  opacity: 0;
}

.workspace-tabs.show-nav-hover .nav-btn,
.workspace-tabs .nav-btn:focus {
  opacity: 1;
}

.workspace-tabs .nav-btn:hover {
  background: #e8eefc;
  border-color: #2b6cb0;
  color: #1e3a8a;
}

.workspace-tabs .nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  background: #f1f5f9;
  border-color: rgba(148, 163, 184, 0.4);
}

.workspace-tabs.show-nav-hover .nav-btn:disabled {
  opacity: 0.35;
}

.workspace-tabs .add-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #f8fafc;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.workspace-tabs .add-btn:hover {
  background: #e8eefc;
  border-color: #2b6cb0;
  color: #1e3a8a;
}

/* ========== Project Header (sol üst) ========== */

.project-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 10px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.project-header .divider {
  width: 1px;
  height: 20px;
  background: rgba(148, 163, 184, 0.35);
}

.project-header .icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: #0f172a;
  transition: all 0.15s ease;
}

.project-header .icon-btn:hover {
  background: rgba(15, 23, 42, 0.06);
}

.project-header .icon-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  background: transparent;
}

.project-header img.undo-logo,
.project-header img.redo-logo {
  filter: brightness(0);
  width: 16px;
  height: 16px;
}

.project-header .saving-pill {
  height: 28px;
  margin-left: 4px;
  padding: 0 10px;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #f8fafc;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

.project-header .saving-text {
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
}

.project-header .saving-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.project-header .saving-dot.is-saved {
  background: #16a34a;
}

.project-header .saving-dot.is-saving {
  background: #0a449e;
  animation: pulse-dot 1s ease-in-out infinite;
}

.project-header .project-logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

/* ========== Top Controls (sağ üst) ========== */

.top-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  margin-right: 10px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.top-controls .icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: #0f172a;
  transition: all 0.15s ease;
}

.top-controls .icon-btn:hover {
  background: rgba(15, 23, 42, 0.06);
}

.top-controls .icon-btn svg {
  width: 16px;
  height: 16px;
}

.top-controls .zoom-icon svg {
  width: 18px;
  height: 18px;
}

.top-controls .divider {
  display: none;
}

.top-controls .zoom-indicator {
  font-size: 13px;
  font-weight: 500;
  color: #0f172a;
  min-width: 46px;
  text-align: center;
}

.top-controls .toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: #f8fafc;
  color: #0f172a;
  transition: all 0.15s ease;
}

.top-controls .toggle-btn.active {
  background: #0a449e;
  border-color: #0a449e;
  color: white;
}

.top-controls .toggle-btn:not(.active):hover {
  background: #e2e8f0;
}

.top-controls .grid-size-select {
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: #f8fafc;
  font-size: 13px;
  padding: 0 4px;
  transition: all 0.15s ease;
}

.top-controls .grid-size-select:hover {
  background: #e2e8f0;
}

.top-controls .io-wrapper {
  position: relative;
  display: flex;
}

.top-controls .io-btn {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 8px;
  border: none;
  background: transparent;
  gap: 0;
}

.top-controls .io-btn:hover {
  background: rgba(15, 23, 42, 0.06);
}

.top-controls .io-btn.active {
  background: rgba(15, 23, 42, 0.08);
}

.top-controls .io-menu {
  position: absolute;
  top: 42px;
  right: 0;
  width: 172px;
  padding: 8px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 3000;
}

.top-controls .io-item {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 8px 10px;
  font-size: 13px;
  color: #0f172a;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.top-controls .io-item:hover {
  background: #f1f5f9;
}

.top-controls .io-item-icon {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.top-controls .help-wrapper {
  position: relative;
  display: flex;
}

.top-controls .help-menu {
  position: absolute;
  top: 40px;
  right: 0;
  width: 220px;
  padding: 12px 10px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2200;
}

.top-controls .help-item {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 6px 10px;
  font-size: 14px;
  color: #0f172a;
  border-radius: 6px;
  cursor: pointer;
}

.top-controls .help-item:hover {
  background: #f8fafc;
}

.top-controls .account-wrapper {
  position: relative;
  display: flex;
}

.top-controls .account-btn {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: #f8fafc;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.top-controls .account-btn:hover {
  background: #e2e8f0;
}

.top-controls .account-btn .avatar {
  font-weight: 700;
  font-size: 12px;
}

.top-controls .account-menu {
  position: absolute;
  right: 0;
  top: 40px;
  width: 220px;
  padding: 12px 10px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2200;
}

.top-controls .account-meta {
  padding: 6px 8px 8px;
  border-bottom: 1px solid #e5e7eb;
}

.top-controls .account-meta .name {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.top-controls .account-meta .sub {
  font-size: 12px;
  color: #475569;
}

.top-controls .account-item {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 8px 10px;
  font-size: 14px;
  color: #0f172a;
  border-radius: 6px;
  cursor: pointer;
}

.top-controls .account-item:hover {
  background: #f8fafc;
}

.top-controls .account-item.text-rose-600 {
  color: #e11d48;
}

@keyframes pulse-dot {
  0% {
    transform: scale(0.8);
  }

  50% {
    transform: scale(1.3);
  }

  100% {
    transform: scale(0.8);
  }
}

/* ========== Left Panel (sol toolbar) - editor-v4 left.vue birebir ========== */

.left-panel {
  min-width: 52px;
  background: #ffffff;
  border-radius: 4px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  position: fixed;
  left: var(--edge-gap);
  top: 50%;
  transform: translateY(-50%);
  z-index: 1200;
}

.left-panel ul {
  padding: 8px 0;
}

.left-panel li {
  list-style: none;
}

.left-panel .left-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 0;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.left-panel .left-item-btn {
  padding: 8px;
  border-radius: 5px;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.left-panel .left-item-icon {
  width: 26px;
  height: 26px;
  display: block;
}

.left-panel .left-item:hover .left-item-btn,
.left-panel .left-item.active .left-item-btn {
  background-color: #e3e5e8;
}

.left-panel .left-item.webgpu-on .left-item-btn {
  background-color: #e8f0ff;
}

.left-panel .left-item.webgpu-on:hover .left-item-btn {
  background-color: #dbe7ff;
}

.left-panel .mask-icon {
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  background-color: #1f1f1f;
}

.left-panel .left-item.active .mask-icon,
.left-panel .left-item:hover .mask-icon {
  background-color: #0a449e !important;
}

.left-panel .left-item.webgpu-on .mask-icon {
  background-color: #0a449e;
}

.left-panel .mask-mouse {
  -webkit-mask-image: url(/editor/mouse.svg);
  mask-image: url(/editor/mouse.svg);
}

.left-panel .mask-hand {
  -webkit-mask-image: url(/editor/hand.svg);
  mask-image: url(/editor/hand.svg);
}

.left-panel .mask-figures {
  -webkit-mask-image: url(/editor/figures.svg);
  mask-image: url(/editor/figures.svg);
}

.left-panel .mask-emoji {
  -webkit-mask-image: url(/editor/emoji.svg);
  mask-image: url(/editor/emoji.svg);
}

.left-panel .mask-image {
  -webkit-mask-image: url(/editor/image.svg);
  mask-image: url(/editor/image.svg);
}

.left-panel .mask-components {
  -webkit-mask-image: url(/editor/components.svg);
  mask-image: url(/editor/components.svg);
}

.left-panel .mask-ai {
  -webkit-mask-image: url(/ai.svg);
  mask-image: url(/ai.svg);
}

.left-panel .mask-log {
  -webkit-mask-image: url(/editor/log.svg);
  mask-image: url(/editor/log.svg);
}

.left-panel .mask-webgpu {
  -webkit-mask-image: url(/editor/renderer.svg);
  mask-image: url(/editor/renderer.svg);
}

.left-panel #webgpu-toggle {
  display: none;
}

.left-panel .left-item img.left-item-icon {
  width: 26px;
  height: 26px;
  -o-object-fit: contain;
     object-fit: contain;
}

.left-panel .left-item.log-on .left-item-btn {
  background-color: #e8f7ed;
}

.left-panel .left-item.log-on .mask-icon {
  background-color: #10b981;
}

.left-panel .left-item.hidden {
  display: none;
}

/* Figures popup - left.vue birebir */

.left-popup {
  position: absolute;
  left: calc(100% + 12px);
  top: -8px;
  background: #ffffff;
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  max-width: calc(100vw - 100px);
  width: 200px;
  overflow-x: hidden;
  z-index: 1300;
}

.left-popup.hidden {
  display: none !important;
}

.left-popup:not(.hidden) {
  display: block;
}

.left-popup ul {
  padding: 8px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.shape-popup-item {
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 8px;
  background: transparent;
  transition: background-color 0.15s;
  text-decoration: none;
  color: inherit;
}

.shape-popup-item:hover {
  background-color: #e3e5e8;
}

.shape-child-icon {
  width: 26px;
  height: 26px;
  background-color: #1f1f1f;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  transition: background-color 0.15s;
}

.shape-popup-item:hover .shape-child-icon {
  background-color: #0a449e !important;
}

.shape-child-icon.mask-line {
  -webkit-mask-image: url(/editor/line.svg);
  mask-image: url(/editor/line.svg);
}

.shape-child-icon.mask-arrow {
  -webkit-mask-image: url(/editor/arrow.svg);
  mask-image: url(/editor/arrow.svg);
}

.shape-child-icon.mask-figured_arrow {
  -webkit-mask-image: url(/editor/figured_arrow.svg);
  mask-image: url(/editor/figured_arrow.svg);
}

.shape-child-icon.mask-square {
  -webkit-mask-image: url(/editor/square.svg);
  mask-image: url(/editor/square.svg);
}

.shape-child-icon.mask-circle {
  -webkit-mask-image: url(/editor/circle.svg);
  mask-image: url(/editor/circle.svg);
}

.shape-child-icon.mask-triangle {
  -webkit-mask-image: url(/editor/triangle.svg);
  mask-image: url(/editor/triangle.svg);
}

.shape-child-icon.mask-romb {
  -webkit-mask-image: url(/editor/romb.svg);
  mask-image: url(/editor/romb.svg);
}

.shape-child-icon.mask-star {
  -webkit-mask-image: url(/editor/star.svg);
  mask-image: url(/editor/star.svg);
}

.shape-child-icon.mask-follow {
  -webkit-mask-image: url(/editor/follow.svg);
  mask-image: url(/editor/follow.svg);
}

/* Emoji popup dropdown */

.emoji-popup {
  width: 300px;
  padding: 8px;
}

.emoji-picker-inner {
  max-height: 240px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
}

.emoji-popup-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.emoji-popup-cell {
  width: 40px;
  height: 40px;
  font-size: 20px;
  border: none;
  border-radius: 8px;
  background: #f8fafc;
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.emoji-popup-cell:hover {
  background: #e3e5e8;
}

/* Image upload popup - editor-v4 ImageUploader */

.image-popup {
  width: 240px;
  padding: 12px;
}

.image-uploader {
  width: 100%;
}

.image-uploader-drop {
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
  min-height: 120px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.image-uploader-drop:hover,
.image-uploader-drop.dragover {
  border-color: #0a449e;
  background: #eff6ff;
}

.image-uploader-text {
  font-size: 12px;
  color: #64748b;
  text-align: center;
  padding: 0 12px;
}

.shape-emoji-icon {
  display: block;
  width: 26px;
  height: 26px;
  line-height: 26px;
  text-align: center;
  font-size: 20px;
}

/* ========== Editor Area (full screen, behind toolbar) ========== */

/* ========== Breakpoint Bar (Page mode) ========== */

.breakpoint-bar {
  position: fixed;
  top: 64px;
  /* fallback; overridden by JS to sit just above the page */
  /* Center within available canvas area (full width minus right panel) */
  left: calc((100vw - var(--right-panel-visible-width, 0px)) / 2);
  transform: translateX(-50%);
  z-index: 2200;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
  transition: opacity 0.2s ease;
}

.breakpoint-bar.hidden {
  display: none;
}

.bp-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border: none;
  background: transparent;
  border-radius: 7px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  transition: background 0.12s, color 0.12s;
  white-space: nowrap;
}

.bp-btn:hover {
  background: #f1f5f9;
  color: #1e293b;
}

.bp-btn.active {
  background: #6366f1;
  color: #ffffff;
}

.bp-btn.active svg {
  stroke: #ffffff;
}

.bp-width {
  font-size: 10px;
  opacity: 0.7;
}

.bp-btn.active .bp-width {
  opacity: 0.85;
}

.editor-area {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  z-index: 0;
  margin: 0;
  padding: 0;
}

/* Shrink editor canvas/topbar when right panel is visible */

.editor-shell.right-panel-open .top-bar {
  right: 0 !important;
  width: 100% !important;
}

.editor-shell.right-panel-open .editor-area {
  right: 0 !important;
  width: 100% !important;
}

.editor-canvas-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  cursor: default;
}

.editor-canvas-container canvas {
  display: block;
  vertical-align: top;
  margin: 0;
  padding: 0;
  cursor: default;
  -moz-user-select: none;
       user-select: none;
  -webkit-user-select: none;
}

/* Link modal */

.link-modal {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.link-modal.hidden {
  display: none;
}

.link-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}

.link-modal-panel {
  position: relative;
  z-index: 1;
  width: 360px;
  max-width: calc(100vw - 32px);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.link-modal-panel > .link-modal-title {
  padding: 16px 20px 0;
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 0;
}

.link-modal-body {
  padding: 16px 20px 16px;
}

.workspace-modal-panel > .link-modal-title {
  padding: 16px 20px 0;
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 0;
}

.link-modal-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.link-type {
  cursor: pointer;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.link-type.active,
#link-type-external-label.active,
#link-type-internal-label.active {
  border-color: #0a449e;
  box-shadow: 0 10px 20px rgba(10, 68, 158, 0.12);
}

.link-type-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.link-type-desc {
  font-size: 11px;
  color: #64748b;
}

.link-modal-section {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.link-modal-label {
  font-size: 12px;
  font-weight: 600;
  color: #334155;
}

.link-modal-input {
  width: 100%;
  height: 36px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  padding: 0 10px;
  font-size: 13px;
  color: #0f172a;
}

.link-modal-input:focus {
  outline: 2px solid #0a449e;
  outline-offset: 1px;
}

.link-modal-select {
  width: 100%;
  height: 36px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  padding: 0 10px;
  font-size: 13px;
  color: #0f172a;
  background: #ffffff;
}

.link-modal-select:focus {
  outline: 2px solid #0a449e;
  outline-offset: 1px;
}

.link-modal-help {
  font-size: 11px;
  color: #94a3b8;
}

.link-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
  padding: 0 20px 16px;
}

.link-modal-spacer {
  flex: 1;
}

.link-modal-btn {
  height: 36px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.link-modal-btn-ghost {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #f8fafc;
  color: #0f172a;
}

.link-modal-btn-ghost:hover {
  background: #e8eefc;
  border-color: #2b6cb0;
}

.link-modal-btn-primary {
  padding: 8px 16px;
  border-radius: 10px;
  background: #0a449e;
  color: #ffffff;
}

.link-modal-btn-primary:hover {
  background: #093a86;
}

.link-modal-btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.link-modal-btn-danger {
  padding: 8px 16px;
  border-radius: 10px;
  background: #dc2626;
  color: #ffffff;
}

.link-modal-btn-danger:hover {
  background: #b91c1c;
}

.link-modal-btn-danger:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Workspace modals (Workspace settings / New workspace / Confirm delete) - birebir köhnə layihə */

.workspace-modal-panel {
  width: 440px;
  max-width: 92vw;
}

.workspace-modal-panel > .workspace-modal-body {
  padding: 0 20px;
}

.workspace-modal-panel > .link-modal-actions {
  margin-top: 12px;
  padding: 0 20px 16px;
}

.workspace-modal-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 0;
  padding-bottom: 0;
}

.workspace-modal-field {
  display: flex;
  flex-direction: column;
}

.workspace-modal-label {
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  margin-bottom: 8px;
  margin-top: 0;
}

.workspace-modal-field .link-modal-input {
  height: 40px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  padding: 0 12px;
  font-size: 14px;
}

.workspace-modal-field .link-modal-input:disabled {
  background: #f1f5f9;
  color: #94a3b8;
  border-color: #e2e8f0;
  cursor: not-allowed;
}

.workspace-modal-error {
  font-size: 11px;
  color: #be123c;
  margin-top: 2px;
}

.workspace-modal-error.hidden {
  display: none;
}

.workspace-modal-help {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}

.workspace-modal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #64748b;
}

.workspace-modal-type-label {
  font-size: 13px;
  color: #64748b;
}

.workspace-modal-type-value {
  font-weight: 600;
  color: #0f172a;
  text-transform: capitalize;
}

.workspace-modal-delete {
  font-size: 14px;
  font-weight: 600;
  color: #dc2626;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.workspace-modal-delete:hover:not(:disabled) {
  text-decoration: underline;
}

.workspace-modal-delete:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.workspace-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.workspace-type-option {
  display: flex;
  gap: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.workspace-type-option:hover {
  border-color: #0a449e;
}

.workspace-type-option.active {
  border-color: #0a449e;
  background: rgba(10, 68, 158, 0.05);
}

.workspace-type-title {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
}

.workspace-type-desc {
  font-size: 12px;
  color: #64748b;
}

.workspace-type-option div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.workspace-type-title {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
}

.workspace-type-desc {
  font-size: 12px;
  color: #64748b;
}

.workspace-delete-message {
  font-size: 13px;
  color: #334155;
  margin: 0 0 12px;
}

.workspace-delete-target {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #fecaca;
  background: #fef2f2;
}

.workspace-delete-label {
  font-size: 12px;
  font-weight: 600;
  color: #b91c1c;
}

.workspace-delete-name {
  font-size: 13px;
  font-weight: 600;
  color: #991b1b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ========== Layers Panel (sağ) ========== */

.layers-panel-wrapper {
  position: fixed;
  right: 0 !important;
  left: auto !important;
  top: 0;
  height: 100vh;
  transform: none;
  z-index: 2000;
  /* Always above AI panel (1900) */
  max-width: min(520px, calc(100vw - 12px));
  width: -moz-fit-content;
  width: fit-content;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
}

.layers-panel-wrapper > * {
  pointer-events: auto;
}

.layers-panel {
  position: relative;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  min-height: 40vh;
  max-height: 70vh;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
  overflow: hidden;
  width: clamp(280px, 30vw, 420px);
}

.layers-resizer {
  position: absolute;
  left: -6px;
  top: 0;
  bottom: 0;
  width: 12px;
  cursor: ew-resize;
  z-index: 1200;
  display: block;
}

.layers-resizer:hover {
  background: rgba(10, 68, 158, 0.08);
}

.layers-tabs {
  display: flex;
  gap: 20px;
  padding: 0 16px;
  margin-top: 12px;
  margin-bottom: 0;
  border-bottom: 1px solid #f1f5f9;
}

.layers-tabs .tab-btn {
  padding: 12px 0;
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease;
}

.layers-tabs .tab-btn:hover {
  color: #475569;
}

.layers-tabs .tab-btn.active {
  color: #0f172a;
  font-weight: 700;
}

.layers-tabs .tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #0a449e;
  border-radius: 2px 2px 0 0;
}

.layers-panel .tab-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

.layers-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid #e5e7eb;
}

.layers-search-wrapper {
  position: relative;
  flex: 1;
}

.layers-search-wrapper .search-icon {
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: #94a3b8;
  pointer-events: none;
}

.layer-search {
  width: 100%;
  padding: 6px 10px 6px 28px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 13px;
  color: #0f172a;
  background: #fff;
}

.layer-search:focus {
  outline: 2px solid #0a449e;
  outline-offset: 1px;
}

.layers-tool-buttons {
  display: flex;
  gap: 6px;
}

.layers-tool-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #f8fafc;
  color: #0f172a;
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.layers-tool-btn:hover {
  background: #e2e8f0;
}

.layers-list {
  flex: 1;
  overflow: auto;
  padding: 8px;
  overscroll-behavior: contain;
}

.layers-empty-state {
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
  padding: 32px 0;
}

.layer-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s;
}

.layer-row:hover {
  background: #f1f5f9;
}

.layer-row.selected,
.layer-item.selected .layer-row {
  background: #e0f2fe;
  color: #0a449e;
  font-weight: 600;
}

.layer-row-type {
  text-transform: capitalize;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.layer-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.layer-row-id {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 400;
}

.layer-row.selected .layer-row-id,
.layer-item.selected .layer-row .layer-row-id {
  color: #0a449e;
  opacity: 0.8;
}

.layer-item {
  margin-bottom: 2px;
}

.layer-item.group .layer-row {
  font-weight: 600;
}

.layer-item.is-hidden .layer-row {
  opacity: 0.45;
}

.layer-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0.65;
}

.layer-row:hover .layer-actions {
  opacity: 1;
}

.layer-action-btn {
  border: none;
  background: transparent;
  padding: 2px 4px;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  border-radius: 4px;
}

.layer-action-btn:hover {
  background: #e2e8f0;
}

.layer-rename-input {
  font-size: 13px;
  padding: 2px 6px;
  border: 1px solid #cbd5f5;
  border-radius: 6px;
  min-width: 120px;
  outline: none;
}

.layer-item.group.selected .layer-row {
  background: #e0f2fe;
  color: #0a449e;
}

.layer-expand-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: none;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  border-radius: 4px;
  flex-shrink: 0;
}

.layer-expand-btn:hover {
  color: #0f172a;
  background: #e2e8f0;
}

.layer-indent {
  display: inline-block;
  width: 20px;
  flex-shrink: 0;
}

.layer-group-children {
  padding-left: 8px;
  border-left: 2px solid #e2e8f0;
  margin-left: 10px;
  margin-top: 2px;
}

.layers-empty-drop {
  min-height: 32px;
  flex: 1;
  background: transparent;
}

.layer-item.layer-child .layer-row {
  padding-left: 8px;
}

.layers-toggle-btn {
  z-index: 2100;
  /* Above layers panel (2000) and AI panel (1900) */
  position: fixed;
  right: var(--edge-gap);
  top: 50%;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
}

.layers-toggle-btn[data-visible="true"] {
  display: none !important;
}

.layers-toggle-btn[data-visible="false"] {
  position: fixed !important;
  right: calc(var(--edge-gap) + 5px) !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
}

.layers-toggle-btn:hover {
  background: #f3f4f6;
}

.layers-toggle-btn img {
  width: 18px;
  height: 26px;
  display: block;
  transition: transform 0.2s ease, scale 0.2s ease;
}

.layers-toggle-btn[data-visible="true"] img {
  transform: rotate(180deg);
  scale: 0.75;
}

.hidden {
  display: none !important;
}

/* ========== Properties Tab ========== */

.properties-tab {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 120px);
  flex: 1;
  min-height: 0;
}

.properties-scroll {
  flex: 1;
  min-height: 0;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px;
  overscroll-behavior: contain;
}

@media (max-width: 900px) {
  .layers-panel-wrapper {
    right: 0;
    top: auto;
    bottom: 0;
    transform: none;
    max-width: calc(100vw - 12px);
  }

  .layers-panel {
    width: calc(100vw - 24px);
    max-height: 75vh;
  }

  .layers-resizer {
    display: none;
  }

  .prop-padding-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .properties-panel .prop-input {
    width: 100%;
  }
}

.properties-empty-state {
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
  padding: 40px 16px;
}

.properties-panel .prop-section {
  margin-bottom: 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 14px 16px;
}

.prop-header {
  margin-bottom: 12px;
}

.prop-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0f172a;
}

.prop-dimensions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.prop-input-mini {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0 8px;
  height: 28px;
  background: #f8fafc;
}

.prop-input-mini .prefix {
  font-size: 11px;
  color: #64748b;
  margin-right: 6px;
  font-weight: 500;
}

.prop-input-mini input {
  flex: 1;
  width: 100%;
  min-width: 0;
  border: none;
  padding: 0;
  font-size: 13px;
  color: #0f172a;
  outline: none;
  background: transparent;
}

.prop-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.prop-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.prop-row label {
  font-size: 13px;
  color: #475569;
  font-weight: 600;
}

.prop-font-size-combo {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.prop-font-size-input {
  padding-right: 28px;
}

.prop-combo-caret {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  cursor: pointer;
}

.prop-combo-caret::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 6px solid #6b7280;
  transform: translate(-50%, -20%);
}

.prop-combo-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  padding: 6px 0;
  z-index: 20;
}

.prop-combo-item {
  width: 100%;
  text-align: left;
  padding: 6px 12px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  color: #111827;
}

.prop-combo-item:hover {
  background: #f3f4f6;
}

.prop-textarea {
  width: 100%;
  min-height: 60px;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 13px;
  color: #0f172a;
  background: #f8fafc;
  resize: vertical;
}

.prop-textarea,
.prop-input,
.prop-input-mini input,
.link-modal-input,
.layer-rename-input,
input[type="text"],
input[type="search"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="tel"],
input[type="number"],
textarea {
  cursor: text;
}

.prop-textarea:focus {
  outline: none;
  border-color: #0a449e;
  background: #ffffff;
}

.prop-input {
  width: 80px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 13px;
  color: #0f172a;
  background: #f8fafc;
}

.properties-panel .prop-input {
  max-width: 100%;
}

.prop-input-compact {
  width: 56px;
}

.prop-input-wide {
  width: 100%;
}

.prop-input-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.prop-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.prop-checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #64748b;
}

.prop-checkbox-inline input {
  width: 14px;
  height: 14px;
}

.prop-toggle-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

#prop-autolayout-add {
  margin-bottom: 10px;
}

#prop-layout-frame-sizing .prop-row + .prop-row {
  margin-top: 8px;
}

.prop-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #1f2937;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}

.prop-chip-btn {
  height: 28px;
  min-width: 52px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #1f2937;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.15s;
}

.prop-chip-btn.disabled {
  opacity: 0.6;
  pointer-events: none;
}

.prop-icon-btn:hover {
  border-color: #0a449e;
  color: #0a449e;
  background: #eef2ff;
}

.prop-chip-btn:hover {
  border-color: #0a449e;
  color: #0a449e;
  background: #eef2ff;
}

.prop-icon-btn.active {
  border-color: #0a449e;
  color: #0a449e;
  background: #e0e7ff;
}

.layout-justify-group.axis-vertical .prop-icon-btn svg,
.layout-align-group.axis-horizontal .prop-icon-btn svg {
  transform: rotate(90deg);
  transform-origin: center;
}

.prop-chip-btn.active {
  border-color: #0a449e;
  color: #0a449e;
  background: #e0e7ff;
}

.prop-chip-btn.link-active {
  border-color: #93c5fd;
  color: #0a449e;
  background: #eff6ff;
}

.prop-btn-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.prop-chip-danger {
  border-color: #fecaca;
  color: #b91c1c;
  background: #fff1f2;
}

.prop-chip-danger:hover {
  border-color: #fca5a5;
  color: #991b1b;
  background: #ffe4e6;
}

.prop-primary-btn {
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid #0a449e;
  background: #0a449e;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  align-self: flex-start;
}

.prop-primary-btn:hover {
  filter: brightness(1.05);
}

.prop-primary-btn.link-active {
  background: #eff6ff;
  color: #0a449e;
  border-color: #93c5fd;
}

.prop-padding-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.prop-padding-grid .prop-input-mini {
  min-width: 0;
}

.label-top {
  flex-direction: column;
  height: auto;
  padding: 6px 6px 4px;
  gap: 4px;
}

.label-top .top-label {
  font-size: 10px;
  color: #94a3b8;
  font-weight: 700;
  text-transform: uppercase;
}

.prop-wrap-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.prop-dual-inputs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.checkbox-wrapper input {
  width: 16px;
  height: 16px;
}

.spacer-row {
  height: 4px;
}

.prop-note {
  font-size: 12px;
  color: #64748b;
}

.prop-color {
  width: 48px;
  height: 28px;
  padding: 2px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  background: #f8fafc;
}

/* Shape Style: single responsive column without overflow */

#prop-shape-style .prop-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

#prop-shape-style .prop-row {
  display: grid;
  grid-template-columns: minmax(110px, auto) minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

#prop-shape-style .prop-row label {
  margin: 0;
}

#prop-shape-style .prop-input,
#prop-shape-style .prop-color {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

/* Fill preview: show checker when fill is empty/transparent */

.prop-fill-row-right {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.prop-fill-preview {
  display: inline-block;
  width: 48px;
  height: 28px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  flex-shrink: 0;
  box-sizing: border-box;
  cursor: pointer;
}

.prop-fill-preview.prop-fill-checker {
  background-image: linear-gradient(45deg, #ccc 25%, transparent 25%),
    linear-gradient(-45deg, #ccc 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #ccc 75%),
    linear-gradient(-45deg, transparent 75%, #ccc 75%);
  background-size: 8px 8px;
  background-position: 0 0, 0 4px, 4px -4px, -4px 0;
  background-color: #fff;
}

#prop-shape-style .prop-row-fill .prop-color {
  width: 48px;
  min-width: 48px;
}

@media (max-width: 680px) {
  #prop-shape-style .prop-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
}

.emoji-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  max-height: 140px;
  overflow-y: auto;
}

.emoji-cell {
  width: 36px;
  height: 36px;
  font-size: 20px;
  border: none;
  border-radius: 8px;
  background: #f1f5f9;
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.emoji-cell:hover {
  background: #e0f2fe;
}

.emoji-cell.active {
  background: #dbeafe;
  box-shadow: inset 0 0 0 1px #93c5fd;
}

.prop-emoji-current {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.shape-emoji-icon {
  font-size: 24px;
  line-height: 1;
}

/* Sticky note plus handles */

.sticky-plus-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 100;
}

.sticky-plus-layer button {
  pointer-events: auto;
}

.sticky-plus-btn {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(10, 68, 158, 0.25);
  background: #ffffff;
  color: #0a449e;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.sticky-plus-icon {
  display: block;
  line-height: 1;
  transform: translateY(0);
}

.sticky-plus-btn:hover {
  background: #eff6ff;
  color: #0a449e;
  border-color: rgba(10, 68, 158, 0.4);
  box-shadow: 0 4px 12px rgba(10, 68, 158, 0.15);
  transform: scale(1.08);
}

.sticky-plus-btn:active {
  transform: scale(0.98);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.1);
}

/* Floating Toolbar - editor-v4 birebir */

.floating-toolbar {
  position: fixed;
  z-index: 1300;
  pointer-events: auto;
}

.floating-toolbar.hidden {
  display: none;
}

.floating-toolbar-inner {
  background: white;
  border-radius: 16px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  padding: 8px 12px;
  gap: 0;
}

.floating-toolbar-content {
  display: flex;
  align-items: center;
  gap: 6px;
}

.floating-toolbar-content.hidden,
.shape-toolbar-root.hidden,
.img-toolbar-wrap.hidden {
  display: none;
}

.text-toolbar-wrap.hidden {
  display: none;
}

.sticky-toolbar-wrap.hidden {
  display: none;
}

/* Image Toolbar - editor-v4 image-toolbar.vue birebir */

.img-toolbar-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.img-toolbar-list {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.img-tb-item {
  min-width: 32px;
  height: 100%;
  padding: 4px;
  border-radius: 8px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  color: #334155;
}

.img-tb-item:hover {
  background: #f8fafc;
}

.img-tb-item.link-active {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #0a449e;
}

.img-tb-item.img-tb-export {
  padding: 8px;
}

.img-tb-item.img-tb-delete {
  padding: 8px;
}

.img-tb-item.img-tb-delete:hover {
  background: #fef2f2;
  color: #ef4444;
}

.img-tb-svg {
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.img-tb-svg-flip {
  transform: scaleX(-1);
}

/* Sticky Toolbar - editor-v4 text-toolbar.vue style */

.sticky-toolbar-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.sticky-toolbar-list {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  line-height: 1;
}

.sticky-toolbar-item {
  display: flex;
  align-items: center;
  height: 100%;
}

.sticky-color-btn {
  cursor: pointer;
  height: 100%;
  width: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sticky-color-icon {
  width: 22px;
  height: 22px;
  pointer-events: none;
}

.sticky-bg-preview {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.02);
}

.sticky-select {
  height: 32px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 0 10px;
  font-size: 13px;
  color: #334155;
}

.sticky-btn {
  min-width: 28px;
  height: 32px;
  padding: 0 8px;
  border-radius: 8px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  color: #475569;
}

.sticky-btn:hover {
  background: #f8fafc;
}

.sticky-btn.active {
  color: #41a69a;
}

.sticky-italic {
  font-style: italic;
  font-weight: 600;
}

.sticky-bold {
  font-weight: 700;
}

.sticky-underline {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  font-weight: 600;
}

.sticky-link-icon {
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.sticky-btn.link-active {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #0a449e;
}

.sticky-delete:hover {
  background: #fef2f2;
  color: #ef4444;
}

/* Text Toolbar - editor-v4 text-toolbar.vue style */

.text-toolbar-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.text-toolbar-list {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  line-height: 1;
}

.text-toolbar-item {
  display: flex;
  align-items: center;
  height: 100%;
}

.text-color-btn {
  cursor: pointer;
  height: 100%;
  width: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.text-color-icon {
  width: 24px;
  height: 24px;
  pointer-events: none;
}

.text-select {
  height: 32px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 0 10px;
  font-size: 13px;
  color: #334155;
}

.text-btn {
  min-width: 28px;
  height: 100%;
  padding: 8px;
  border-radius: 8px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  color: #475569;
}

.text-btn:hover {
  background: #f8fafc;
}

.text-btn.active {
  color: #41a69a;
}

.text-italic {
  font-style: italic;
  font-weight: 600;
}

.text-bold {
  font-weight: 700;
}

.text-underline {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  font-weight: 600;
}

.text-link-icon {
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.text-btn.link-active {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #0a449e;
}

.text-delete:hover {
  background: #fef2f2;
  color: #ef4444;
}

/* Custom select (text toolbar) */

.custom-select-container {
  position: relative;
  z-index: 2200;
}

.custom-select-container .label-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 8px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.custom-select-container .label-text {
  font-size: 13px;
  color: #334155;
}

.custom-select-container .custom-caret {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #64748b;
}

.custom-select-container .items {
  position: absolute;
  background: #ffffff;
  left: -10px;
  padding: 6px;
  min-width: 200px;
  margin-top: 8px;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
  z-index: 2200;
  display: none;
}

.custom-select-container.open .items {
  display: block;
}

.custom-select-container .custom-search {
  margin: 6px 4px 8px;
}

.custom-select-container .custom-search-input {
  width: 100%;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  font-size: 12px;
  outline: none;
}

.custom-select-container .custom-items {
  max-height: 200px;
  overflow-y: auto;
  overflow-x: hidden;
  list-style: none;
  padding: 0;
  margin: 0;
  overscroll-behavior: contain;
}

.custom-select-container .custom-items li {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 12px;
  color: #0f172a;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.custom-select-container .custom-items li:last-child {
  border-bottom: none;
}

.custom-select-container .custom-items li:hover {
  background: #f8fafc;
}

.custom-select-container .custom-check {
  margin-left: auto;
  color: #41a69a;
  font-weight: 700;
}

.custom-select-container .align-icon {
  width: 20px;
  height: 20px;
}

.custom-select-container .align-items {
  min-width: 90px;
}

/* Emoji Toolbar - editor-v4 emoji-toolbar.vue */

.emoji-toolbar-list {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.emoji-tb-item {
  min-width: 28px;
  height: 100%;
  padding: 8px;
  border-radius: 8px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  color: #334155;
}

.emoji-tb-item:hover {
  background: #f8fafc;
}

.emoji-tb-item.link-active {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #0a449e;
}

.emoji-tb-item.emoji-tb-delete:hover {
  background: #fef2f2;
  color: #ef4444;
}

.emoji-tb-icon {
  width: 20px;
  height: 20px;
  pointer-events: none;
}

/* Shape Toolbar - editor-v4 shape-toolbar.vue birebir */

.shape-toolbar-root {
  display: flex;
  align-items: center;
  gap: 8px;
}

.shape-tb-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  color: #374151;
}

.shape-tb-btn:hover {
  background: #f8fafc;
}

.shape-tb-btn.link-active {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #0a449e;
}

.shape-tb-icon {
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.shape-tb-fill-btn {
  overflow: hidden;
  padding: 0;
}

.shape-tb-fill-preview {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 28px;
  min-height: 28px;
}

.shape-tb-checker {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 32px;
  min-height: 32px;
  background-image: linear-gradient(45deg, #ccc 25%, transparent 25%),
    linear-gradient(-45deg, #ccc 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #ccc 75%),
    linear-gradient(-45deg, transparent 75%, #ccc 75%);
  background-size: 8px 8px;
  background-position: 0 0, 0 4px, 4px -4px, -4px 0;
  background-color: #fff;
}

.shape-tb-divider {
  width: 1px;
  height: 32px;
  background: #e2e8f0;
  margin: 0 8px;
}

.shape-tb-border-icon {
  width: 100%;
  height: 100%;
  padding: 6px;
  box-sizing: border-box;
}

.shape-tb-delete {
  width: 36px;
  height: 36px;
}

.shape-tb-delete-icon {
  width: 20px;
  height: 20px;
  pointer-events: none;
}

/* Popovers */

.shape-tb-fill-wrap,
.shape-tb-border-wrap {
  position: relative;
}

.shape-tb-popover {
  position: absolute;
  z-index: 1100;
  margin-top: 8px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
  border: 1px solid #e2e8f0;
  padding: 16px;
}

.shape-tb-popover.hidden {
  display: none;
}

.shape-tb-popover-fill {
  width: 256px;
  left: 0;
}

.shape-tb-popover-fill .shape-tb-popover-section + .shape-tb-popover-section {
  margin-top: 16px;
}

.shape-tb-popover-border {
  min-width: 288px;
  left: 0;
}

.shape-tb-popover-section {
  margin-bottom: 16px;
}

.shape-tb-popover-section:last-child {
  margin-bottom: 0;
}

.shape-tb-popover-label {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 4px;
}

.shape-tb-color-block,
.shape-tb-transparent-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  background: transparent;
  transition: background 0.15s;
}

.shape-tb-color-block:hover,
.shape-tb-transparent-btn:hover {
  background: #f8fafc;
}

.shape-tb-color-preview {
  display: block;
  width: 100%;
  height: 100%;
}

.shape-tb-popover-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.shape-tb-stroke-picker {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
}

.shape-tb-transparent-btn {
  width: 32px;
  height: 32px;
}

.shape-tb-fill-image-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.shape-tb-fill-image-btn {
  flex: 1;
  height: 40px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  color: #4b5563;
  cursor: pointer;
  transition: background 0.15s;
}

.shape-tb-fill-image-btn:hover {
  background: #f8fafc;
}

.shape-tb-fill-image-icon {
  width: 16px;
  height: 16px;
}

.shape-tb-clear-icon {
  width: 100%;
  height: 100%;
  padding: 8px;
  box-sizing: border-box;
}

.shape-tb-range {
  width: 100%;
  accent-color: #475569;
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Text/Sticky/Emoji toolbars - kept for later */

.ft-color-input {
  width: 28px;
  height: 28px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  background: transparent;
}

.ft-color-wrap {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.ft-input-num {
  width: 48px;
  height: 28px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0 6px;
  font-size: 13px;
  text-align: center;
}

.ft-select {
  height: 28px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0 8px;
  font-size: 13px;
  min-width: 64px;
}

.ft-btn {
  width: 28px;
  height: 28px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.15s, color 0.15s;
}

.ft-btn:hover {
  background: #f8fafc;
}

.ft-btn.ft-format {
  font-weight: 600;
}

.ft-btn.ft-format.active {
  color: #41a69a;
}

.ft-btn.ft-delete:hover {
  background: #fef2f2;
  color: #ef4444;
}

.ft-btn-icon {
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.ft-divider {
  width: 1px;
  height: 20px;
  background: #e2e8f0;
  margin: 0 4px;
}

/* ========== AI Chat Panel ========== */

.ai-panel {
  position: fixed;
  right: 21px;
  top: 80px;
  bottom: 16px;
  width: clamp(280px, 30vw, 420px);
  height: auto;
  background: white;
  border-left: 1px solid #e5e7eb;
  z-index: 900;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 16px rgba(0,0,0,0.05);
}

.ai-panel .tab-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

.ai-chat-header {
  display: flex;
  align-items: center;
  padding: 8px 16px 4px;
  background: #ffffff;
}

.ai-panel.hidden {
  display: none;
}

.ai-tab {
  background: #ffffff;
}

.ai-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid #e5e7eb;
  height: 56px;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.new-btn, .back-btn {
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #111827;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.new-btn:hover, .back-btn:hover {
  background: #f3f4f6;
}

.back-btn.hidden {
  display: none;
}

.ai-header-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ai-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}

.ai-subtitle {
  font-size: 12px;
  color: #6b7280;
}

.close-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #6b7280;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-btn:hover {
  background: #f3f4f6;
  color: #111827;
}

.ai-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  position: relative;
}

.topics-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.topic-item {
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  color: #111827;
  cursor: pointer;
  width: 100%;
}

.topic-item .topic-title {
  font-weight: 600;
}

.topic-item .topic-sub {
  font-size: 11px;
  color: #6b7280;
}

.topic-item.active {
  border-color: #2563eb;
  background: #eff6ff;
}

.chat-empty {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
  color: #6b7280;
  margin-top: 32px;
}

.empty-title {
  font-weight: 600;
  color: #111827;
}

.empty-subtitle {
  font-size: 13px;
}

.provider-input {
  height: 28px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  padding: 0 8px;
  font-size: 12px;
  color: #0f172a;
  background: white;
}

.suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 8px;
}

.chip {
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  color: #111827;
  cursor: pointer;
}

.chip:hover {
  background: #f9fafb;
}

.chip:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.chat-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.loading-row {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
}

.ai-loading-spinner {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 3px solid rgba(148, 163, 184, 0.35);
  border-top-color: #10a37f;
  animation: spin 0.9s linear infinite;
}

.chat-row {
  display: flex;
}

.chat-row.user {
  justify-content: flex-end;
}

.bubble {
  max-width: 85%;
  background: #f3f4f6;
  border-radius: 12px;
  padding: 10px 12px;
  color: #111827;
  border: 1px solid #e5e7eb;
}

.bubble-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.bubble-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: #6b7280;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.chat-row:hover .bubble-copy-btn {
  opacity: 1;
  pointer-events: auto;
}

.bubble-copy-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #e2e8f0;
}

.chat-row.user .bubble {
  background: #e0f2fe;
  border-color: #bae6fd;
}

.bubble-label {
  font-size: 11px;
  color: #6b7280;
  margin-bottom: 4px;
}

.bubble-text {
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
  -webkit-user-select: text;
     -moz-user-select: text;
          user-select: text;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.ai-footer {
  border-top: 1px solid #e5e7eb;
  padding: 12px 12px 20px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ai-footer-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 18px;
}

.ai-provider-select {
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #374151;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 12px;
}

.ai-provider-select.hidden {
  display: none;
}

.footer-hint {
  font-size: 12px;
  color: #64748b;
  margin-left: auto;
  text-align: right;
}

.footer-hint.hidden {
  display: none;
}

.composer-input-wrap {
  position: relative;
}

.composer-fab {
  position: absolute;
  right: 16px;
  bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.composer-input {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 96px 52px 10px;
  font-size: 14px;
  resize: none;
  outline: none;
  background: #f7f7f8;
  overflow-y: hidden;
}

.composer-input:focus {
  border-color: #93c5fd;
  background: #fff;
}

.composer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.send-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.ghost-btn {
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #374151;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
}

.ghost-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.send-btn {
  border: none;
  background: #10a37f;
  color: #fff;
  padding: 0;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
  width: 34px;
  height: 34px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.send-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.send-btn:hover:not(:disabled) {
  background: #0f8a6c;
}

.send-btn:active:not(:disabled) {
  transform: translateY(1px);
}

.send-btn.loading {
  background: #ef4444;
}

.send-btn.loading:hover:not(:disabled) {
  background: #dc2626;
}

.send-btn .btn-stop {
  display: none;
}

.send-btn.loading .btn-label {
  display: none;
}

.send-btn.loading .btn-stop {
  display: inline-flex;
}

.send-btn .send-icon {
  display: block;
}

.stop-btn {
  border: 1px solid #ef4444;
  background: #fff;
  color: #b91c1c;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
}

.stop-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.stop-btn.hidden {
  display: none;
}

.spinner {
  position: static;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.6);
  border-top-color: #ffffff;
  border-right-color: #ffffff;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.footer-error {
  margin-top: 8px;
  font-size: 12px;
  color: #b91c1c;
  text-align: center;
}

.footer-error.hidden {
  display: none;
}

/* ========== Templates / Components Modal ========== */

#templates-modal,
#templates-confirm-modal {
  z-index: 99999;
}

.tpl-modal-panel {
  width: calc(100vw - 100px);
  height: calc(100vh - 100px);
  max-width: calc(100vw - 100px);
  max-height: calc(100vh - 100px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.tpl-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 0;
  border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.tpl-modal-tabs {
  display: flex;
  gap: 0;
}

.tpl-tab {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  margin-bottom: -1px;
}

.tpl-tab:hover {
  color: #0f172a;
}

.tpl-tab.active {
  color: #2563eb;
  border-bottom-color: #2563eb;
}

.tpl-modal-close {
  background: none;
  border: none;
  padding: 6px;
  border-radius: 8px;
  cursor: pointer;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tpl-modal-close:hover {
  background: #f1f5f9;
}

.tpl-panel {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.tpl-panel.hidden {
  display: none;
}

.tpl-loading {
  padding: 24px;
  font-size: 14px;
  color: #64748b;
  text-align: center;
}

.tpl-loading.hidden {
  display: none;
}

.tpl-empty {
  padding: 24px;
  font-size: 14px;
  color: #64748b;
  text-align: center;
}

.tpl-empty.hidden {
  display: none;
}

.tpl-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.template-card,
.component-card {
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: white;
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  text-align: left;
  width: 100%;
}

.template-card:hover,
.component-card:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.template-preview,
.component-preview {
  width: 100%;
  height: 140px;
  border-radius: 6px;
  background: #f1f5f9;
  display: grid;
  place-items: center;
  color: #64748b;
  font-size: 14px;
  margin-bottom: 8px;
  overflow: hidden;
}

.component-preview img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 6px;
}

.template-name,
.component-name {
  font-size: 13px;
  font-weight: 500;
  color: #0f172a;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.template-desc,
.component-desc {
  font-size: 12px;
  color: #475569;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ========== Shortcuts Modal ========== */

.shortcuts-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shortcuts-modal.hidden {
  display: none;
}

.shortcuts-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}

.shortcuts-modal-panel {
  position: relative;
  background: white;
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.16);
  border: 1px solid #e2e8f0;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.shortcuts-modal-title {
  padding: 20px 20px 0;
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
}

.shortcuts-scroll {
  max-height: calc(75vh - 80px);
  overflow-y: auto;
  padding: 20px;
  padding-right: 26px;
}

.shortcuts-lead {
  font-size: 13px;
  color: #475569;
  margin-bottom: 18px;
}

.shortcuts-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  justify-items: stretch;
}

.shortcut-section {
  border-radius: 16px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.04), rgba(15, 23, 42, 0.015));
  border: 1px solid rgba(15, 23, 42, 0.07);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.section-pill {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  background: rgba(79, 70, 229, 0.1);
  padding: 4px 10px;
  border-radius: 999px;
}

.section-caption {
  font-size: 12px;
  color: #64748b;
}

.shortcut-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shortcut-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(15, 23, 42, 0.08);
  flex-wrap: wrap;
}

.shortcut-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.shortcut-label {
  font-size: 13px;
  color: #0f172a;
  flex: 1 1 220px;
  min-width: 180px;
}

.shortcut-keys {
  display: flex;
  flex: 1 1 220px;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-start;
  min-width: 180px;
}

.shortcut-keys kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 8px;
  background: white;
  border: 1px solid rgba(148, 163, 184, 0.8);
  box-shadow: inset 0 -1px 0 rgba(15, 23, 42, 0.08);
  font-size: 12px;
  font-weight: 600;
  color: #111827;
  min-height: 28px;
}

.shortcuts-modal-actions {
  padding: 16px 20px;
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid #e5e7eb;
}

/* ========== Context Menu ========== */

.context-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2100;
  background: transparent;
}

.context-menu {
  position: fixed;
  z-index: 2101;
  min-width: 200px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #ffffff;
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.16);
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: min(70vh, 420px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.context-menu-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: #0f172a;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}

.context-menu-item:hover:not(:disabled) {
  background: rgba(15, 23, 42, 0.08);
}

.context-menu-item:disabled {
  color: rgba(15, 23, 42, 0.35);
  cursor: not-allowed;
}

/* ========== Export / Import Modal (birebir eski proje) ========== */

.export-import-modal-panel {
  width: 440px;
  max-width: 94vw;
}

.export-import-modal-panel > .workspace-modal-body {
  padding: 0 20px;
}

.export-import-modal-panel > .link-modal-actions {
  margin-top: 12px;
  padding: 0 20px 16px;
}

.import-file-name {
  font-size: 12px;
  color: #475569;
  margin-top: 4px;
}

/* ========== Export Modal format list ========== */

.format-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.format-item {
  display: flex;
  gap: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.format-item:hover {
  border-color: #0a449e;
  background: rgba(10, 68, 158, 0.05);
}

.format-item.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.format-item.is-disabled:hover {
  border-color: #e2e8f0;
  background: transparent;
}

.format-radio {
  margin-top: 4px;
}

.format-body {
  flex: 1;
}

.format-title {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
}

.format-desc {
  font-size: 12px;
  color: #64748b;
}

/* ========== Import Modal ========== */

.import-drop-zone {
  min-height: 160px;
  border-radius: 12px;
  border: 2px dashed #cbd5e1;
  background: #f8fafc;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.import-drop-zone.drag-over {
  border-color: #0a449e;
  background: rgba(10, 68, 158, 0.05);
}

.import-drop-content {
  width: 100%;
  padding: 24px;
  text-align: center;
  color: #64748b;
  font-size: 13px;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.import-drop-content svg,
.import-drop-icon {
  margin: 8px auto;
  display: block;
}

.import-drop-icon {
  display: flex;
  justify-content: center;
}

:root {
  --edge-gap: 10px;
}

.hover\:border-\[\#47B5A8\]:hover {
  --tw-border-opacity: 1;
  border-color: rgb(71 181 168 / var(--tw-border-opacity, 1));
}

.hover\:bg-\[\#992732\]:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(153 39 50 / var(--tw-bg-opacity, 1));
}

.hover\:bg-gray-50:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
}

.hover\:text-\[\#2e776e\]:hover {
  --tw-text-opacity: 1;
  color: rgb(46 119 110 / var(--tw-text-opacity, 1));
}

.hover\:text-\[\#41A69A\]:hover {
  --tw-text-opacity: 1;
  color: rgb(65 166 154 / var(--tw-text-opacity, 1));
}

.hover\:text-\[\#47B5A8\]:hover {
  --tw-text-opacity: 1;
  color: rgb(71 181 168 / var(--tw-text-opacity, 1));
}

.hover\:text-\[\#F5F3EF\]:hover {
  --tw-text-opacity: 1;
  color: rgb(245 243 239 / 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\:opacity-90:hover {
  opacity: 0.9;
}

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

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

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

.focus\:ring-2:focus {
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

.focus\:ring-\[\#41A69A\]:focus {
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(65 166 154 / var(--tw-ring-opacity, 1));
}

.focus\:ring-offset-2:focus {
  --tw-ring-offset-width: 2px;
}

.disabled\:border-gray-50:disabled {
  --tw-border-opacity: 1;
  border-color: rgb(249 250 251 / var(--tw-border-opacity, 1));
}

.disabled\:bg-\[\#eaebe6\]:disabled {
  --tw-bg-opacity: 1;
  background-color: rgb(234 235 230 / var(--tw-bg-opacity, 1));
}

.disabled\:bg-gray-100:disabled {
  --tw-bg-opacity: 1;
  background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
}

.disabled\:bg-gray-200:disabled {
  --tw-bg-opacity: 1;
  background-color: rgb(229 231 235 / var(--tw-bg-opacity, 1));
}

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

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

.group:hover .group-hover\:opacity-100 {
  opacity: 1;
}

.peer:checked ~ .peer-checked\:border-\[\#41A69A\] {
  --tw-border-opacity: 1;
  border-color: rgb(65 166 154 / var(--tw-border-opacity, 1));
}

.peer:checked ~ .peer-checked\:bg-\[\#41A69A\] {
  --tw-bg-opacity: 1;
  background-color: rgb(65 166 154 / var(--tw-bg-opacity, 1));
}

@media (min-width: 640px) {
  .sm\:mx-0 {
    margin-left: 0px;
    margin-right: 0px;
  }

  .sm\:ml-4 {
    margin-left: 1rem;
  }

  .sm\:mt-3 {
    margin-top: 0.75rem;
  }

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

  .sm\:w-full {
    width: 100%;
  }

  .sm\:max-w-\[530px\] {
    max-width: 530px;
  }

  .sm\:max-w-lg {
    max-width: 32rem;
  }

  .sm\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sm\:flex-row {
    flex-direction: row;
  }

  .sm\:gap-5 {
    gap: 1.25rem;
  }

  .sm\:p-8 {
    padding: 2rem;
  }

  .sm\:px-10 {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }

  .sm\:px-12 {
    padding-left: 3rem;
    padding-right: 3rem;
  }

  .sm\:px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .sm\:px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .sm\:text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
  }

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

  .sm\:text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
  }

  .sm\:text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
  }
}

@media (min-width: 768px) {
  .md\:mb-\[84px\] {
    margin-bottom: 84px;
  }

  .md\:ms-2 {
    margin-inline-start: 0.5rem;
  }

  .md\:mt-10 {
    margin-top: 2.5rem;
  }

  .md\:mt-\[64px\] {
    margin-top: 64px;
  }

  .md\:flex {
    display: flex;
  }

  .md\:max-h-\[500px\] {
    max-height: 500px;
  }

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

  .md\:flex-row {
    flex-direction: row;
  }

  .md\:space-x-2 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-x-reverse: 0;
    margin-right: calc(0.5rem * var(--tw-space-x-reverse));
    margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse)));
  }

  .md\:px-16 {
    padding-left: 4rem;
    padding-right: 4rem;
  }

  .md\:text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
  }
}

@media (min-width: 1024px) {
  .lg\:mt-3 {
    margin-top: 0.75rem;
  }

  .lg\:flex {
    display: flex;
  }

  .lg\:hidden {
    display: none;
  }

  .lg\:w-1\/2 {
    width: 50%;
  }

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

  .lg\:max-w-2xl {
    max-width: 42rem;
  }

  .lg\:max-w-\[calc\(100\%-45\%\)\] {
    max-width: calc(100% - 45%);
  }

  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lg\:flex-row {
    flex-direction: row;
  }

  .lg\:p-10 {
    padding: 2.5rem;
  }

  .lg\:px-10 {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }

  .lg\:px-16 {
    padding-left: 4rem;
    padding-right: 4rem;
  }

  .lg\:px-20 {
    padding-left: 5rem;
    padding-right: 5rem;
  }

  .lg\:px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .lg\:px-\[40px\] {
    padding-left: 40px;
    padding-right: 40px;
  }

  .lg\:text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
  }

  .lg\:text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
  }

  .lg\:text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }
}

@media (min-width: 1280px) {
  .xl\:mt-0 {
    margin-top: 0px;
  }

  .xl\:block {
    display: block;
  }

  .xl\:flex {
    display: flex;
  }

  .xl\:hidden {
    display: none;
  }

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

  .xl\:px-0 {
    padding-left: 0px;
    padding-right: 0px;
  }

  .xl\:px-24 {
    padding-left: 6rem;
    padding-right: 6rem;
  }
}

.rtl\:rotate-180:where([dir="rtl"], [dir="rtl"] *) {
  --tw-rotate: 180deg;
  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));
}

.rtl\:space-x-reverse:where([dir="rtl"], [dir="rtl"] *) > :not([hidden]) ~ :not([hidden]) {
  --tw-space-x-reverse: 1;
}
