body.design-index3 {
  --db-panel-width: 236px;
  --db-panel-collapsed-width: 34px;
  --db-tree-font-size: 10px;
  --editor-shell-height: 330px;
  --result-panel-height: 260px;
  --venn-panel-height: 250px;
  --page: #f5f5f5;
  --surface: #ffffff;
  --surface-2: #f0f3f2;
  --surface-3: #d6dcda;
  --header: #cfa4aa;
  --header-strong: #9d6871;
  --text: #111817;
  --muted: #66736f;
  --line: #d8dede;
  --line-strong: #9aa5a2;
  --sql: #2a7e8c;
  --graphic: #a04a81;
  --algebra: #5c589c;
  --run: #ead7d8;
  --syntax-number: #9a3412;
  --cyan: #55c2e4;
  --green: #00bb42;
  --yellow: #ede500;
  --red: #f45757;
  --autocomplete-ref-bg: #eaf6f4;
  --autocomplete-ref-line: #78bdb8;
  --venn-left: #41d353;
  --venn-right: #f1bea6;
  --venn-third: #55c2e4;
  --venn-fourth: #f0df69;
  --shadow: 0 22px 52px rgba(17, 24, 23, 0.12);
  --soft-shadow: 0 10px 26px rgba(17, 24, 23, 0.08);
  background: var(--page);
}

body.design-index3 ::selection {
  background-color: color-mix(in srgb, var(--sql) 25%, transparent);
  color: inherit;
}

body.design-index3.theme-dark ::selection {
  background-color: color-mix(in srgb, var(--sql) 45%, transparent);
  color: #ffffff;
}

body.design-index3.theme-dark {
  --page: #111514;
  --surface: #1a201f;
  --surface-2: #242b29;
  --surface-3: #303a37;
  --header: #6f4a52;
  --header-strong: #c98d98;
  --text: #eef6f3;
  --muted: #acbbb6;
  --line: #34423f;
  --line-strong: #60716c;
  --sql: #55d2e4;
  --graphic: #f0a0d4;
  --algebra: #9d98e5;
  --run: #352629;
  --syntax-number: #fbbf24;
  --cyan: #54bddb;
  --green: #25c761;
  --yellow: #d9d234;
  --red: #ff6767;
  --autocomplete-ref-bg: #203330;
  --autocomplete-ref-line: #4fa39d;
  --venn-left: #34cb62;
  --venn-right: #de8d6b;
  --venn-third: #4bb8d8;
  --venn-fourth: #d7c94c;
}

body.design-index3 .app-header {
  min-height: 78px;
  grid-template-columns: 128px minmax(360px, 1fr) auto;
  gap: 18px;
  padding: 10px 14px 10px 22px;
  overflow: visible;
  background: var(--header);
  border-bottom: 0;
  box-shadow: none;
}

body.design-index3 .brand img {
  width: 86px;
}

body.design-index3 .module-nav {
  justify-content: center;
  gap: clamp(20px, 4vw, 46px);
}

body.design-index3 .module-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 4px 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-shadow: none;
  text-decoration: none;
  box-shadow: none;
  transition: color 200ms ease;
}

body.design-index3 .module-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.8;
}

body.design-index3 .module-link.is-active {
  color: currentColor;
  transform: none;
  box-shadow: none;
  background: transparent;
}

body.design-index3 .module-link.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

body.design-index3 .module-link:hover {
  background: transparent;
  color: var(--text);
}

body.design-index3.theme-dark .module-link {
  color: var(--muted);
  background: transparent;
  border: 0;
}

body.design-index3.theme-dark .module-link.is-active {
  color: currentColor;
  background: transparent;
}

body.design-index3.theme-dark .module-link:hover {
  color: var(--text);
  background: transparent;
}

body.design-index3 .header-actions {
  gap: 12px;
  padding-right: 0;
}

body.design-index3 .theme-toggle {
  width: 36px;
  height: 36px;
}

body.design-index3 .theme-mark {
  width: 17px;
  height: 17px;
}

body.design-index3 .theme-mark::before {
  width: 17px;
  height: 17px;
  left: 6px;
  top: -4px;
  background: var(--header);
}

body.design-index3 .session-button {
  min-height: 34px;
  border-radius: 999px;
  padding: 0 21px;
  font-size: 13px;
  box-shadow: none;
}

body.design-index3 .session-button.register {
  min-width: 114px;
}

body.design-index3 .history-dock {
  right: 0;
  top: calc(100% - 1px);
  bottom: auto;
  width: 136px;
  height: 47px;
  padding: 7px 12px 8px 14px;
  justify-content: space-between;
  gap: 8px;
  background: var(--header);
  border-radius: 0 0 0 30px;
  box-shadow: none;
  z-index: 42;
}

body.design-index3 .history-dock::before {
  display: none;
}

body.design-index3 .dock-button {
  width: 38px;
  height: 36px;
  background: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 28px 28px;
  color: #050505;
  border-radius: 0;
  font-size: 0;
  overflow: hidden;
  text-indent: -9999px;
}

body.design-index3.theme-dark .dock-button {
  color: var(--text);
  filter: invert(1);
}

body.design-index3 #undoButton {
  background-image: url("../media/undo.svg");
}

body.design-index3 #redoButton {
  background-image: url("../media/redo.svg");
}

body.design-index3 .dock-button:hover {
  background-color: transparent;
  transform: scale(1.1);
}

body.design-index3 .dock-button:disabled {
  cursor: default;
  opacity: 0.35;
  transform: none;
}

body.design-index3 .dock-button::before {
  content: none;
}

body.design-index3 .app-layout {
  grid-template-columns: var(--db-panel-width) minmax(430px, 1fr) 318px;
  gap: 8px;
  padding: 0 12px 0 0;
  min-height: calc(100dvh - 78px);
  height: calc(100dvh - 78px);
  align-items: stretch;
  overflow: hidden;
  transition: grid-template-columns 180ms ease;
}

body.design-index3.no-transition .app-layout,
body.design-index3.no-transition .database-panel {
  transition: none !important;
}

/* Durante el arrastre del handle del panel de bases desactivamos toda
   transición del grid y del panel para que el ancho siga al cursor sin
   "rebote" o retraso. También fijamos el cursor de resize en todo el
   documento para que no parpadee al pasar por encima de elementos con
   cursor distinto, y evitamos selección accidental de texto. */
body.db-panel-resizing,
body.db-panel-resizing * {
  cursor: ew-resize !important;
  user-select: none;
}
body.db-panel-resizing .app-layout,
body.db-panel-resizing .database-panel {
  transition: none !important;
}

body.design-index3 .database-panel {
  position: relative;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  background: #e8e8e8;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
}

body.design-index3.theme-dark .database-panel {
  background: #202827;
}

body.design-index3 .panel-heading {
  display: flex;
  min-height: 34px;
  padding: 5px 6px 4px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  font-size: 14px;
  font-weight: bold;
  gap: 4px;
  overflow: hidden;
}

body.design-index3 .db-panel-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.design-index3 .panel-tools {
  display: flex;
  flex: 0 0 auto;
  gap: 3px;
}

body.design-index3 .panel-icon-button {
  position: relative;
  width: 25px;
  min-width: 25px;
  height: 24px;
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  border-radius: 4px;
  background-color: color-mix(in srgb, var(--surface) 80%, transparent);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 17px 17px;
  padding: 0;
  font-size: 0;
  overflow: hidden;
  text-indent: -9999px;
}

body.design-index3 .panel-icon-button:hover {
  background-color: color-mix(in srgb, var(--surface-2) 86%, transparent);
  border-color: color-mix(in srgb, var(--sql) 35%, transparent);
}

body.design-index3 .panel-refresh-button {
  background-image: url("../media/recargar.svg");
}

body.design-index3 .db-panel-toggle {
  background-image: url("../media/hamburguesa.svg");
}

body.design-index3 .db-expand-all-button {
  background-image: url("../media/expandir.svg");
}

body.design-index3 .db-collapse-all-button {
  background-image: url("../media/contraer.svg");
}

body.design-index3 .db-font-up-button {
  background-image: url("../media/Aumento%20fuente.svg");
}

body.design-index3 .db-font-down-button {
  background-image: url("../media/Decremento%20fuente.svg");
}

body.design-index3 .db-focus-button {
  background-image: url("../media/focus.svg");
}

body.design-index3 .db-up-button {
  background-image: url("../media/up.svg");
}

body.design-index3 .db-insert-button {
  background-image: url("../media/lanzar.svg");
}

body.design-index3 .db-panel-actions {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 5px 6px 4px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
}

body.design-index3 .db-focus-button.is-active,
body.design-index3 .db-up-button.is-active,
body.design-index3 .db-insert-button.is-active {
  background-color: color-mix(in srgb, var(--sql) 24%, var(--surface));
  border-color: color-mix(in srgb, var(--sql) 50%, transparent);
}

body.design-index3 .db-create-button {
  margin-left: auto;
  background-image: url("../media/nueva%20base%20de%20datos.svg");
}

body.design-index3 .database-panel .tree-search,
body.design-index3 .snippets-panel .tree-search {
  padding: 6px 6px 4px;
}

body.design-index3 .snippet-search-container {
  display: flex;
  align-items: center;
  gap: 6px;
}

body.design-index3 .snippet-view-controls {
  display: flex;
  gap: 2px;
}

body.design-index3 .tree-search input {
  min-height: 24px;
  padding: 0 6px;
  border-radius: 4px;
  font-size: 10px;
}

body.design-index3 .database-tree {
  min-height: 0;
  max-height: none;
  overflow-x: hidden;
  overflow-y: auto;
  padding-bottom: 10px;
  font-size: var(--db-tree-font-size);
}

body.design-index3 .tree-icon.database {
  border: 0;
  border-radius: 0;
  background: url("../media/basedatos.svg") center / 11px 11px no-repeat;
}

body.design-index3 .tree-icon.table {
  border: 0;
  border-radius: 0;
  background: url("../media/tabla.svg") center / 11px 11px no-repeat;
}

body.design-index3 .tree-icon.column {
  border: 0;
  border-radius: 0;
  background: url("../media/dato.svg") center / 11px 11px no-repeat;
}

body.design-index3 .db-resize-handle {
  position: absolute;
  right: -4px;
  top: 0;
  z-index: 7;
  width: 8px;
  height: 100%;
  border: 0;
  background: transparent;
  cursor: ew-resize;
  padding: 0;
}

body.design-index3 .db-resize-handle::before {
  content: "";
  position: absolute;
  right: 3px;
  top: 0;
  width: 2px;
  height: 100%;
  background: color-mix(in srgb, var(--sql) 28%, transparent);
  opacity: 0;
  transition: opacity 140ms ease;
}

body.design-index3 .db-resize-handle:hover::before,
body.design-index3.db-panel-resizing .db-resize-handle::before {
  opacity: 1;
}

body.design-index3.db-panel-collapsed {
  --db-panel-width: var(--db-panel-collapsed-width);
}

body.design-index3.db-panel-collapsed .database-panel {
  overflow: hidden;
}

body.design-index3.db-panel-collapsed .database-panel .panel-heading {
  justify-content: center;
  padding: 5px 2px;
}

body.design-index3.db-panel-collapsed .db-panel-title,
body.design-index3.db-panel-collapsed #refreshTree,
body.design-index3.db-panel-collapsed .db-panel-actions,
body.design-index3.db-panel-collapsed .database-panel .tree-search,
body.design-index3.db-panel-collapsed .database-tree,
body.design-index3.db-panel-collapsed .db-resize-handle {
  display: none;
}

body.design-index3.db-panel-collapsed .database-panel .panel-tools {
  width: 100%;
  justify-content: center;
}

body.design-index3 .tree-row {
  grid-template-columns: 13px 13px minmax(0, 1fr);
  gap: 2px;
  min-height: 14px;
  padding: 0 4px;
}

body.design-index3 .tree-children {
  margin-left: 11px;
}

body.design-index3 .tree-expander {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 2px;
  font-size: 0;
  background: url("../media/mas.svg") center / 10px 10px no-repeat;
}

body.design-index3 .tree-expander.is-expanded {
  background-image: url("../media/menos.svg");
}

body.design-index3 .tree-expander.is-leaf {
  background: transparent;
}

body.design-index3 .tree-icon {
  width: 11px;
  height: 11px;
}

body.design-index3 .workspace {
  grid-template-rows: max-content max-content max-content max-content;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 12px 0 0;
}

body.design-index3 .sql-toolbar {
  grid-template-columns: max-content 1fr;
  gap: 12px;
  padding: 0;
}

body.design-index3 .database-control {
  display: flex;
  align-items: center;
  gap: 6px;
}

body.design-index3 .database-pill {
  min-height: 36px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--run);
  color: #2a0d12;
  font-size: 22px;
  box-shadow: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

body.design-index3 .database-pill img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

body.design-index3 .editor-database-badge img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

body.design-index3 .database-lock-button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 22px 22px;
  font-size: 0;
  text-indent: -9999px;
  overflow: hidden;
  cursor: pointer;
}

body.design-index3 .database-lock-button.is-locked {
  background-image: url("../media/bloqueado.svg");
}

body.design-index3 .database-lock-button.is-unlocked {
  background-image: url("../media/desbloqueado.svg");
}

body.design-index3 .database-lock-button:hover {
  opacity: 0.72;
}

body.design-index3 .command-group {
  gap: 13px;
}

body.design-index3 .command-button {
  min-width: 68px;
  min-height: 28px;
  border-radius: 0;
  background: var(--run);
  color: #2a0d12;
  font-size: 11px;
  padding: 0 18px;
  box-shadow: none;
}

body.design-index3 .command-button.primary {
  background: var(--run);
}

body.design-index3 .command-button:hover,
body.design-index3 .venn-toggle.is-active {
  background: color-mix(in srgb, var(--run) 82%, #ffffff);
}

body.design-index3.theme-dark .database-pill,
body.design-index3.theme-dark .command-button {
  background-color: #898989;
  color: #2b0c12;
}

body.design-index3.theme-dark .database-pill img {
  filter: brightness(0) saturate(100%) invert(52%) sepia(87%) saturate(153%) hue-rotate(297deg) brightness(53%) contrast(100%);
}

body.design-index3 .venn-panel {
  position: relative;
  height: var(--venn-panel-height);
  min-height: 220px;
  border-radius: 0;
  border: 1px solid color-mix(in srgb, var(--sql) 22%, var(--line));
  box-shadow: none;
  background: var(--surface);
  overflow: hidden;
}

body.design-index3 .venn-stage {
  position: relative;
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: var(--surface);
  overflow: hidden;
}

body.design-index3.theme-dark .venn-stage {
  border-color: transparent;
}

body.design-index3 .venn-diagram {
  --venn-label-font-size: 18px;
  height: 100%;
  min-height: 0;
  isolation: isolate;
}

body.design-index3 .venn-svg {
  width: 100%;
  height: 100%;
  display: block;
  transform: scale(var(--venn-scale));
  transform-origin: center;
  transition: transform 160ms ease;
}

body.design-index3 .venn-circle {
  stroke-width: 2.2;
  opacity: 0.84;
  mix-blend-mode: multiply;
}

body.design-index3 .venn-left {
  fill: color-mix(in srgb, var(--venn-left) 72%, transparent);
  stroke: color-mix(in srgb, var(--venn-left) 58%, var(--sql));
}

body.design-index3 .venn-right {
  fill: color-mix(in srgb, var(--venn-right) 72%, transparent);
  stroke: color-mix(in srgb, var(--venn-right) 55%, var(--sql));
}

body.design-index3 .venn-set-circle {
  stroke-width: 2.2;
  opacity: 0.76;
  mix-blend-mode: multiply;
}

body.design-index3 .venn-set-1 {
  fill: color-mix(in srgb, var(--venn-left) 72%, transparent);
  stroke: color-mix(in srgb, var(--venn-left) 58%, var(--sql));
}

body.design-index3 .venn-set-2 {
  fill: color-mix(in srgb, var(--venn-right) 72%, transparent);
  stroke: color-mix(in srgb, var(--venn-right) 55%, var(--sql));
}

body.design-index3 .venn-set-3 {
  fill: color-mix(in srgb, var(--venn-third) 66%, transparent);
  stroke: color-mix(in srgb, var(--venn-third) 58%, var(--sql));
}

body.design-index3 .venn-set-4 {
  fill: color-mix(in srgb, var(--venn-fourth) 62%, transparent);
  stroke: color-mix(in srgb, var(--venn-fourth) 60%, var(--sql));
}

.venn-multi-set-layer,
.venn-limit-message {
  display: none;
}

body.design-index3 .venn-diagram.is-multi-join .venn-multi-set-layer,
body.design-index3 .venn-diagram.is-limited-join .venn-limit-message {
  display: block;
}

body.design-index3 .venn-region {
  fill: url(#vennHatchPattern);
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: multiply;
}

body.design-index3 .venn-region-join-label {
  fill: var(--text);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  opacity: 0.72;
  cursor: pointer;
}

body.design-index3 .venn-multi-join-label {
  cursor: pointer;
}

body.design-index3 .venn-limit-title {
  fill: var(--text);
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 800;
  text-anchor: middle;
}

body.design-index3 .venn-limit-detail {
  fill: var(--muted);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  text-anchor: middle;
}

.venn-hatch-line {
  stroke: color-mix(in srgb, var(--text) 58%, var(--green));
  stroke-width: 1.15;
}

.venn-result-area {
  opacity: 0;
  pointer-events: none;
  stroke: none;
  mix-blend-mode: multiply;
}

body.design-index3 .venn-result-left {
  fill: color-mix(in srgb, var(--green) 46%, var(--venn-left));
}

body.design-index3 .venn-result-right {
  fill: color-mix(in srgb, var(--green) 42%, var(--venn-right));
}

.venn-hatch-area {
  fill: url(#vennHatchPattern);
  opacity: 0;
  pointer-events: none;
  stroke: none;
  mix-blend-mode: multiply;
  animation: none;
}

.venn-intersection-shape {
  fill: color-mix(in srgb, var(--venn-left) 38%, var(--venn-right));
  opacity: 0;
  cursor: pointer;
  pointer-events: all;
  animation: none;
}

body.design-index3 .venn-diagram.is-inner-join .venn-intersection-shape {
  opacity: 0.52;
}

body.design-index3 .venn-diagram.is-inner-join .venn-hatch-intersection {
  opacity: 0.66;
  animation: vennHatchPulse 2.1s ease-in-out infinite;
}

body.design-index3 .venn-diagram.is-left-join .venn-result-left,
body.design-index3 .venn-diagram.is-right-join .venn-result-right,
body.design-index3 .venn-diagram.is-full-join .venn-result-left,
body.design-index3 .venn-diagram.is-full-join .venn-result-right,
body.design-index3 .venn-diagram.is-cross-join .venn-result-left,
body.design-index3 .venn-diagram.is-cross-join .venn-result-right {
  opacity: 0.34;
}

body.design-index3 .venn-diagram.is-left-exclusive-join .venn-result-left {
  opacity: 0.34;
  mask: url(#venn-cut-right);
  -webkit-mask: url(#venn-cut-right);
}

body.design-index3 .venn-diagram.is-right-exclusive-join .venn-result-right {
  opacity: 0.34;
  mask: url(#venn-cut-left);
  -webkit-mask: url(#venn-cut-left);
}

body.design-index3 .venn-diagram.is-outer-exclusive-join .venn-result-left,
body.design-index3 .venn-diagram.is-outer-exclusive-join .venn-result-right {
  opacity: 0.34;
}

body.design-index3 .venn-diagram.is-outer-exclusive-join .venn-result-left {
  mask: url(#venn-cut-right);
  -webkit-mask: url(#venn-cut-right);
}

body.design-index3 .venn-diagram.is-outer-exclusive-join .venn-result-right {
  mask: url(#venn-cut-left);
  -webkit-mask: url(#venn-cut-left);
}

body.design-index3 .venn-diagram.is-left-join .venn-hatch-left,
body.design-index3 .venn-diagram.is-right-join .venn-hatch-right,
body.design-index3 .venn-diagram.is-full-join .venn-hatch-left,
body.design-index3 .venn-diagram.is-full-join .venn-hatch-right,
body.design-index3 .venn-diagram.is-cross-join .venn-hatch-left,
body.design-index3 .venn-diagram.is-cross-join .venn-hatch-right,
body.design-index3 .venn-diagram.is-left-exclusive-join .venn-hatch-left,
body.design-index3 .venn-diagram.is-right-exclusive-join .venn-hatch-right,
body.design-index3 .venn-diagram.is-outer-exclusive-join .venn-hatch-left,
body.design-index3 .venn-diagram.is-outer-exclusive-join .venn-hatch-right,
body.design-index3 .venn-diagram.is-multi-join .venn-region-active {
  opacity: 0.62;
  animation: vennHatchPulse 2.1s ease-in-out infinite;
}

body.design-index3 .venn-diagram.is-left-exclusive-join .venn-hatch-left {
  mask: url(#venn-cut-right);
  -webkit-mask: url(#venn-cut-right);
}

body.design-index3 .venn-diagram.is-right-exclusive-join .venn-hatch-right {
  mask: url(#venn-cut-left);
  -webkit-mask: url(#venn-cut-left);
}

body.design-index3 .venn-diagram.is-outer-exclusive-join .venn-hatch-left {
  mask: url(#venn-cut-right);
  -webkit-mask: url(#venn-cut-right);
}

body.design-index3 .venn-diagram.is-outer-exclusive-join .venn-hatch-right {
  mask: url(#venn-cut-left);
  -webkit-mask: url(#venn-cut-left);
}

body.design-index3 .venn-diagram.is-cross-join .venn-result-left,
body.design-index3 .venn-diagram.is-cross-join .venn-result-right {
  opacity: 0.26;
}

body.design-index3 .venn-label {
  fill: #24322f;
  font-family: var(--font-ui);
  font-size: var(--venn-label-font-size);
  font-weight: 800;
  dominant-baseline: middle;
  paint-order: stroke;
  stroke: color-mix(in srgb, var(--surface) 72%, transparent);
  stroke-width: 2px;
  stroke-linejoin: round;
  cursor: default;
  pointer-events: auto;
}

body.design-index3 .venn-label-join {
  fill: #11201e;
  cursor: pointer;
  stroke-width: 2px;
}

body.design-index3 .venn-label-join:focus,
body.design-index3 .venn-label-join:focus-visible {
  outline: 0;
}

body.design-index3 .venn-label-left,
body.design-index3 .venn-label-right {
  cursor: default;
}

body.design-index3.theme-dark .venn-circle {
  mix-blend-mode: screen;
  opacity: 0.76;
}

body.design-index3.theme-dark .venn-set-circle {
  mix-blend-mode: screen;
  opacity: 0.76;
}

body.design-index3.theme-dark .venn-intersection-shape {
  opacity: 0;
}

body.design-index3.theme-dark .venn-diagram.is-inner-join .venn-intersection-shape {
  opacity: 0.58;
}

body.design-index3.theme-dark .venn-result-area {
  mix-blend-mode: screen;
}

body.design-index3.theme-dark .venn-hatch-line {
  stroke: color-mix(in srgb, var(--text) 74%, var(--green));
}

body.design-index3.theme-dark .venn-hatch-area {
  mix-blend-mode: screen;
}

body.design-index3.theme-dark .venn-region {
  mix-blend-mode: screen;
}

body.design-index3.theme-dark .venn-label {
  fill: #eef6f3;
  stroke: color-mix(in srgb, var(--surface) 78%, transparent);
}

body.design-index3 .venn-table-view {
  min-height: 0;
  height: 100%;
  overflow: hidden;
  cursor: grab;
}

body.design-index3 .venn-table-view.is-panning {
  cursor: grabbing;
}

body.design-index3 .table-view-svg {
  display: block;
  width: 100%;
  height: 100%;
}

body.design-index3 .tv-table {
  cursor: move;
}

body.design-index3 .tv-header {
  fill: #2e7d6f;
  rx: 4;
}

body.design-index3 .tv-header-text {
  fill: #fff;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
}

body.design-index3 .tv-cell-bg {
  fill: var(--surface);
  stroke: color-mix(in srgb, var(--line) 60%, transparent);
  stroke-width: 0.5;
}

body.design-index3 .tv-cell-bg-alt {
  fill: color-mix(in srgb, var(--line) 18%, var(--surface));
  stroke: color-mix(in srgb, var(--line) 60%, transparent);
  stroke-width: 0.5;
}

body.design-index3 .tv-cell-text {
  fill: var(--text);
  font-family: var(--font-mono, monospace);
  font-size: 11px;
}

body.design-index3 .tv-col-header {
  fill: color-mix(in srgb, var(--line) 30%, var(--surface));
  stroke: color-mix(in srgb, var(--line) 60%, transparent);
  stroke-width: 0.5;
}

body.design-index3 .tv-col-text {
  fill: var(--text);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
}

body.design-index3 .tv-result .tv-header {
  fill: #1565c0;
}

body.design-index3 rect.tv-cell-bg.tv-hl,
body.design-index3 rect.tv-cell-bg-alt.tv-hl,
body.design-index3 rect.tv-col-header.tv-hl {
  fill: color-mix(in srgb, var(--yellow) 38%, var(--surface-3));
  transition: fill 0.12s ease;
}

body.design-index3 .tv-anim-field {
  opacity: 0;
}

body.design-index3 .tv-table-border {
  fill: none;
  stroke: color-mix(in srgb, var(--line) 80%, transparent);
  stroke-width: 1;
  rx: 4;
}

body.design-index3 .tv-connection-line {
  stroke: #1565c0;
  opacity: 0.62;
}

/* Tema oscuro */
body.design-index3.theme-dark .tv-header {
  fill: #1a5c50;
}

body.design-index3.theme-dark .tv-connection-line {
  stroke: #4fc3f7;
  opacity: 0.35;
}

body.design-index3.theme-dark .tv-result .tv-header {
  fill: #0d47a1;
}

body.design-index3.theme-dark .tv-cell-bg {
  fill: var(--surface);
  stroke: color-mix(in srgb, var(--line) 40%, transparent);
}

body.design-index3.theme-dark .tv-cell-bg-alt {
  fill: color-mix(in srgb, var(--line) 12%, var(--surface));
  stroke: color-mix(in srgb, var(--line) 40%, transparent);
}

body.design-index3 .venn-mode {
  top: 10px;
}

body.design-index3 #simpleVenn {
  right: 64px;
}

body.design-index3 #tableVenn {
  right: 26px;
}

body.design-index3 .venn-zoom {
  bottom: 10px;
}

body.design-index3 #zoomIn {
  right: 56px;
}

body.design-index3 #zoomOut {
  right: 26px;
}

body.design-index3 .venn-mode,
body.design-index3 .venn-zoom {
  border: 0;
  border-radius: 0;
  background-color: #727f7b;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: none;
  font-size: 0;
  text-indent: -9999px;
  overflow: hidden;
}

body.design-index3 .venn-mode::before,
body.design-index3 .venn-zoom::before {
  content: none;
}

body.design-index3 .venn-mode {
  width: 32px;
  height: 32px;
  mask-position: center;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
}

body.design-index3 #simpleVenn {
  mask-image: url("../media/venn.svg");
  -webkit-mask-image: url("../media/venn.svg");
  mask-size: 40px 40px;
  -webkit-mask-size: 40px 40px;
}

body.design-index3 #tableVenn {
  mask-image: url("../media/tabla.svg");
  -webkit-mask-image: url("../media/tabla.svg");
  mask-size: 20px 20px;
  -webkit-mask-size: 20px 20px;
}

body.design-index3 #algebraVenn {
  top: 6px;
  left: 15px;
  width: 40px;
  height: 30px;
  mask-image: url("../media/AB.svg");
  -webkit-mask-image: url("../media/AB.svg");
  mask-size: 40px 30px;
  -webkit-mask-size: 40px 30px;
  overflow: visible;
}

body.design-index3 .venn-algebra-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}
body.design-index3 .venn-algebra-overlay[hidden] {
  display: none !important;
}

body.design-index3 .algebra-main-expr {
  position: absolute;
  top: 14px;
  left: 60px;
}

body.design-index3 .algebra-sectors {
  position: absolute;
  top: 42px;
  left: 15px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

body.design-index3 .algebra-main-expr,
body.design-index3 .algebra-sector-item {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  pointer-events: auto;
  cursor: default;
  transition: color 150ms ease;
  width: max-content;
}

body.design-index3.theme-dark .algebra-main-expr,
body.design-index3.theme-dark .algebra-sector-item {
  color: #ffffff;
}

body.design-index3 .algebra-main-expr:hover,
body.design-index3 .algebra-sector-item:hover {
  color: var(--green);
}

body.design-index3.theme-dark .algebra-main-expr:hover,
body.design-index3.theme-dark .algebra-sector-item:hover {
  color: var(--green);
}

/* Resaltado de regiones */
.venn-highlight-region {
  fill: #e63946 !important; /* Rojo distintivo */
  stroke: #9a031e !important;
  opacity: 0.85 !important;
  mix-blend-mode: normal !important;
  animation: none !important;
}

body.design-index3.theme-dark .venn-highlight-region {
  fill: #ff4d6d !important;
  stroke: #ffffff !important;
}

body.design-index3 .venn-mode.is-disabled {
  opacity: 0.3;
  pointer-events: none;
}

body.design-index3 .venn-mode.is-active {
  background-color: var(--green);
}

body.design-index3 .venn-zoom {
  width: 24px;
  height: 24px;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: 17px 17px;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 17px 17px;
}

body.design-index3 #zoomIn {
  mask-image: url("../media/mas.svg");
  -webkit-mask-image: url("../media/mas.svg");
}

body.design-index3 #zoomOut {
  mask-image: url("../media/menos.svg");
  -webkit-mask-image: url("../media/menos.svg");
}

body.design-index3 .venn-zoom:active {
  background-color: var(--green);
}

@keyframes vennJoinAreaPulse {
  0%, 100% {
    fill: color-mix(in srgb, var(--venn-left) 38%, var(--venn-right));
    opacity: 0.42;
    filter: saturate(1.18) brightness(1.02);
  }
  50% {
    fill: color-mix(in srgb, var(--green) 48%, var(--venn-right));
    opacity: 0.68;
    filter: saturate(1.55) brightness(1.12);
  }
}

@keyframes vennResultAreaPulse {
  0%, 100% {
    opacity: 0.24;
    filter: saturate(1.12) brightness(1);
  }
  50% {
    opacity: 0.48;
    filter: saturate(1.45) brightness(1.12);
  }
}

@keyframes vennHatchPulse {
  0%, 100% {
    opacity: 0.18;
  }
  50% {
    opacity: 0.72;
  }
}

body.design-index3.theme-dark .venn-intersection-shape {
  animation-name: vennJoinAreaPulseDark;
}

@keyframes vennJoinAreaPulseDark {
  0%, 100% {
    fill: color-mix(in srgb, var(--venn-left) 38%, var(--venn-right));
    opacity: 0.46;
    filter: saturate(1.15) brightness(1.02);
  }
  50% {
    fill: color-mix(in srgb, var(--green) 58%, var(--venn-right));
    opacity: 0.72;
    filter: saturate(1.45) brightness(1.12);
  }
}

body.design-index3 .venn-resize-handle {
  position: absolute;
  right: 3px;
  bottom: 3px;
  z-index: 6;
  width: 18px;
  height: 18px;
  border: 0;
  background: transparent;
  cursor: nwse-resize;
  padding: 0;
}

body.design-index3 .venn-resize-handle::before {
  content: "";
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 12px;
  height: 12px;
  opacity: 0.65;
  background:
    linear-gradient(135deg, transparent 0 46%, color-mix(in srgb, var(--sql) 55%, transparent) 46% 54%, transparent 54%) 0 0 / 100% 100% no-repeat;
}

body.design-index3 .venn-resize-handle:hover::before,
body.design-index3.venn-resizing .venn-resize-handle::before {
  opacity: 1;
}

body.design-index3 .editor-shell {
  position: relative;
  height: var(--editor-shell-height);
  min-height: 330px;
  max-height: 78vh;
  grid-template-rows: 38px 28px minmax(0, 1fr) 28px;
  border-radius: 0;
  overflow: hidden;
  box-shadow: var(--soft-shadow);
  clip-path: inset(0 -32px -32px -32px);
  border: 1px solid color-mix(in srgb, var(--sql) 22%, var(--line));
  border-left: 0;
  border-top: 0;
  align-self: start;
}

body.design-index3 .editor-database-badge {
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: color-mix(in srgb, var(--sql) 74%, var(--text));
  font-size: 12px;
  font-weight: 800;
  font-family: var(--font-mono, monospace);
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: default;
  display: flex;
  align-items: center;
  gap: 6px;
}

body.design-index3 .editor-database-badge.is-warning img {
  display: none;
}

body.design-index3 .editor-database-badge.is-warning {
  width: 22px;
  height: 22px;
  max-width: 22px;
  background: transparent url("../media/aviso.svg") center / 20px 20px no-repeat;
  font-size: 0;
  text-indent: -9999px;
  cursor: pointer;
}

body.design-index3 .editor-database-badge.is-warning:hover {
  opacity: 0.72;
}

body.design-index3 .editor-database-badge[hidden] {
  display: none;
}

body.design-index3 .editor-database-unlink {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background: color-mix(in srgb, var(--muted) 78%, transparent);
  cursor: pointer;
  font-size: 0;
  overflow: hidden;
  text-indent: -9999px;
  mask: url("../media/unlink.svg") center / 18px 18px no-repeat;
  -webkit-mask: url("../media/unlink.svg") center / 18px 18px no-repeat;
}

body.design-index3 .editor-database-unlink:hover {
  background: var(--green);
}

body.design-index3 .editor-database-unlink[hidden] {
  display: none;
}

body.design-index3 .editor-topbar {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  height: 38px;
  background: var(--page);
  border-bottom: 0;
  border-left: 0;
}

body.design-index3 .editor-topbar::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: color-mix(in srgb, var(--sql) 22%, var(--line));
  pointer-events: none;
  z-index: 2;
}

body.design-index3 .tab-strip-viewport {
  position: relative;
  min-width: 0;
  overflow: hidden;
}

body.design-index3 .tab-strip {
  display: flex;
  align-items: end;
  gap: 2px;
  height: 100%;
  padding: 0 8px 0 0;
  width: max-content;
  background: transparent;
  border-bottom: 0;
  overflow: visible;
}

body.design-index3 .editor-tab,
body.design-index3 .add-tab {
  position: relative;
  z-index: 1;
  height: 31px;
  min-width: 124px;
  max-width: 124px;
  flex: 0 0 124px;
  border-radius: 7px 7px 0 0;
  border: 1px solid var(--line-strong);
  border-bottom: 0;
  background: var(--surface-2);
  color: var(--text);
  font-size: 12px;
  padding: 0 12px;
}

body.design-index3 .tab-name {
  flex: 1 1 auto;
  min-width: 0;
}

body.design-index3 .editor-tab.is-active {
  z-index: 3;
  height: 35px;
  background: var(--surface);
}

body.design-index3 .add-tab {
  width: 32px;
  min-width: 32px;
  max-width: 32px;
  flex: 0 0 32px;
  justify-content: center;
  padding: 0;
  background-image: url("../media/mas.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 15px 15px;
  font-size: 0;
  text-indent: -9999px;
  overflow: hidden;
}

body.design-index3 .tab-scroll-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  border-top: 1px solid color-mix(in srgb, var(--sql) 22%, var(--line));
  border-left: 1px solid color-mix(in srgb, var(--sql) 22%, var(--line));
  background: color-mix(in srgb, var(--surface) 72%, var(--page));
}

body.design-index3 .tab-scroll-button {
  width: 22px;
  min-width: 22px;
  height: 22px;
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  border-radius: 4px;
  background-color: color-mix(in srgb, var(--surface) 88%, transparent);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 14px 14px;
  font-size: 0;
  padding: 0;
  overflow: hidden;
  text-indent: -9999px;
}

body.design-index3 .tab-scroll-left {
  background-image: url("../media/izquierda.svg");
}

body.design-index3 .tab-scroll-right {
  background-image: url("../media/derecha.svg");
}

body.design-index3 .tab-scroll-button:hover {
  background-color: color-mix(in srgb, var(--surface-2) 86%, transparent);
}

body.design-index3 .tab-scroll-button:disabled {
  opacity: 0.35;
  cursor: default;
}

body.design-index3 .editor-controls {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  min-height: 0;
  border-left: 1px solid color-mix(in srgb, var(--sql) 22%, var(--line));
  background: var(--surface);
}

body.design-index3 .editor-gutter-fill {
  min-width: 0;
  height: 100%;
  border-right: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  background: var(--surface-2);
}

body.design-index3 .editor-controls-main {
  display: flex;
  justify-content: flex-end;
  align-items: end;
  gap: 0;
  min-width: 0;
  padding: 0 12px;
  background: var(--surface);
}

body.design-index3 .editor-info-toggle {
  background-color: #898989;
  mask-image: url("../media/informacion.svg");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: 22px 22px;
  -webkit-mask-image: url("../media/informacion.svg");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: 22px 22px;
}

body.design-index3 .editor-placeholder-toggle {
  background-color: #898989;
  mask-image: url("../media/edicion.svg");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: 22px 22px;
  -webkit-mask-image: url("../media/edicion.svg");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: 22px 22px;
}

body.design-index3 .editor-info-toggle.is-active,
body.design-index3 .editor-placeholder-toggle.is-active {
  background-color: var(--green);
}

body.design-index3 .editor-save-button,
body.design-index3 .editor-info-toggle,
body.design-index3 .editor-placeholder-toggle {
  width: 28px;
  height: 24px;
  border: 0;
  border-radius: 0;
  background-position: center;
  background-repeat: no-repeat;
  font-size: 0;
  padding: 0;
  cursor: pointer;
  transition: all 140ms ease;
}

body.design-index3 .editor-save-button {
  background-color: transparent;
  background-image: url("../media/save.svg");
  background-size: 22px 22px;
}

body.design-index3 .editor-save-button:hover,
body.design-index3 .editor-info-toggle:hover,
body.design-index3 .editor-placeholder-toggle:hover {
  opacity: 0.7;
}

body.design-index3 .editor-body {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 14px;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  background: var(--surface);
  border-left: 1px solid color-mix(in srgb, var(--sql) 22%, var(--line));
}

body.design-index3 .editor-vertical-scroll {
  min-width: 0;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--surface);
}

body.design-index3 .editor-vertical-scroll[hidden] {
  display: none;
}

body.design-index3 .editor-vertical-scroll-inner {
  width: 1px;
}

body.design-index3 .editor-database-actions {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  min-height: 0;
  border-left: 1px solid color-mix(in srgb, var(--sql) 22%, var(--line));
  background: var(--surface);
}

body.design-index3 .editor-database-actions-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 0 34px 0 12px;
  background: var(--surface);
}

body.design-index3 .editor-horizontal-scroll {
  flex: 1 1 auto;
  min-width: 0;
  height: 14px;
  overflow-x: auto;
  overflow-y: hidden;
}

body.design-index3 .editor-horizontal-scroll[hidden] {
  display: none;
}

body.design-index3 .editor-horizontal-scroll-inner {
  height: 1px;
}

body.design-index3 .editor-database-button-group {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex: 0 0 auto;
  min-width: 0;
  margin-left: auto;
}

body.design-index3 .line-numbers {
  padding: 0 8px 32px 4px;
  border-right: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  background: var(--surface-2);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 28px;
  overflow: hidden;
  user-select: none;
}

body.design-index3 .line-number-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 4px;
  height: 28px;
}

body.design-index3 .line-number-text {
  display: block;
  text-align: right;
}

body.design-index3 .line-number-row.is-join-ready .line-number-text {
  color: var(--green);
  font-weight: 800;
}

body.design-index3 .line-venn-slot {
  display: grid;
  place-items: center;
  width: 18px;
  height: 28px;
}

body.design-index3 .line-venn-button {
  width: 19px;
  height: 19px;
  padding: 0;
  border: 0;
  background-color: #898989;
  cursor: pointer;
  mask: url("../media/venn.svg") center / 19px 19px no-repeat;
  -webkit-mask: url("../media/venn.svg") center / 19px 19px no-repeat;
}

body.design-index3 .line-venn-button.is-ready {
  background-color: var(--green);
  animation: lineVennPulse 1.05s steps(1, end) infinite;
}

body.design-index3 .line-venn-button.is-incomplete {
  opacity: 0.62;
}

body.design-index3 .line-venn-button:hover {
  opacity: 0.82;
}

@keyframes lineVennPulse {
  0%,
  100% {
    background-color: #898989;
  }
  50% {
    background-color: var(--green);
  }
}

body.design-index3 .editor-canvas {
  position: relative;
  min-height: 0;
  max-height: 100%;
  width: 100%;
  height: auto;
  align-self: stretch;
  overflow: hidden;
  contain: paint;
  isolation: isolate;
  background: var(--surface);
}

body.design-index3 .sql-highlight,
body.design-index3 #sqlEditor {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0 24px 32px 18px;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--font-mono, monospace);
  font-size: 13px;
  line-height: 28px;
  white-space: pre;
  word-wrap: normal;
  scrollbar-gutter: stable;
  box-sizing: border-box;
}

body.design-index3 .sql-highlight {
  z-index: 3;
  width: calc(100% - 18px);
  color: var(--text);
  -webkit-text-fill-color: var(--text);
  pointer-events: none;
  min-height: 100%;
  overflow: hidden;
  overflow-wrap: normal;
  opacity: 1;
  user-select: none;
  scrollbar-width: none;
}

body.design-index3 .sql-highlight::-webkit-scrollbar {
  width: 0;
  height: 0;
}

body.design-index3 .sql-highlight.is-empty {
  visibility: hidden;
}

body.design-index3 #sqlEditor {
  z-index: 2;
  color: transparent;
  -webkit-text-fill-color: transparent;
  caret-color: #111817;
  cursor: text;
  resize: none;
  background: var(--surface);
  overflow: hidden;
}

body.design-index3 #sqlEditor::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

body.design-index3.theme-dark #sqlEditor {
  caret-color: #eef6f3;
}

@media (forced-colors: active) {
  body.design-index3 #sqlEditor {
    caret-color: CanvasText;
    cursor: text;
  }
}

body.design-index3 .hl-empty-line {
  color: transparent;
  -webkit-text-fill-color: transparent;
}

body.design-index3 .hl-line {
  display: block;
  height: 28px;
  line-height: 28px;
  white-space: pre;
}

body.design-index3 .sql-highlight span:not(.hl-empty-line):not(.hl-placeholder) {
  background: transparent;
}

body.design-index3 .sql-autocomplete {
  position: fixed;
  z-index: 12;
  display: none;
  width: 320px;
  max-height: 230px;
  overflow-y: auto;
  border: 1px solid color-mix(in srgb, var(--sql) 72%, var(--line));
  background: var(--surface);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--text) 18%, transparent);
  font-family: var(--font-mono, monospace);
  font-size: 12px;
}

body.design-index3 .sql-autocomplete.is-visible {
  display: block;
}

body.design-index3 .sql-autocomplete-reference {
  display: grid;
  gap: 5px;
  padding: 7px 9px;
  border-bottom: 1px solid color-mix(in srgb, var(--autocomplete-ref-line) 62%, var(--line));
  background: var(--autocomplete-ref-bg);
  color: var(--text);
  font-family: var(--font-sans, sans-serif);
  font-size: 11px;
  line-height: 1.35;
}

body.design-index3 .sql-autocomplete-reference strong,
body.design-index3 .sql-autocomplete-reference span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.design-index3 .autocomplete-reference-divider {
  display: block;
  height: 1px;
  background: color-mix(in srgb, var(--autocomplete-ref-line) 72%, var(--line));
}

body.design-index3 .sql-autocomplete-option {
  display: grid;
  grid-template-columns: minmax(95px, 1fr) 126px 42px;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 22px;
  padding: 2px 7px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

body.design-index3 .sql-autocomplete-option.is-active {
  background: var(--sql);
  color: #fff;
}

body.design-index3 .autocomplete-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

body.design-index3 .autocomplete-detail {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

body.design-index3 .sql-autocomplete-option.is-active .autocomplete-detail,
body.design-index3 .sql-autocomplete-option.is-active .autocomplete-kind {
  color: color-mix(in srgb, #fff 82%, var(--sql));
}

body.design-index3 .autocomplete-kind {
  color: var(--muted);
  font-size: 10px;
  text-align: right;
  text-transform: uppercase;
}

/* Resaltado didáctico */
body.design-index3 .hl-keyword {
  color: var(--green);
  -webkit-text-fill-color: currentColor;
  font-weight: bold;
  cursor: default;
}

body.design-index3 .hl-keyword-simple {
  color: var(--sql);
  -webkit-text-fill-color: currentColor;
  font-weight: bold;
}

body.design-index3 .hl-placeholder {
  border-radius: 3px;
  background: color-mix(in srgb, var(--yellow) 38%, transparent);
  color: var(--text);
  -webkit-text-fill-color: var(--text);
  cursor: pointer;
  animation: placeholderPulse 1.05s ease-in-out infinite;
}

@keyframes placeholderPulse {
  0%, 100% {
    background: color-mix(in srgb, var(--yellow) 35%, transparent);
  }
  50% {
    background: color-mix(in srgb, var(--cyan) 35%, transparent);
  }
}

/* Tooltip didáctico personalizado */
.didactic-tooltip {
  position: fixed;
  z-index: 1000;
  padding: 8px 12px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--sql);
  box-shadow: var(--shadow);
  font-size: 12px;
  pointer-events: none;
  display: none;
  max-width: 280px;
  line-height: 1.4;
}

.didactic-tooltip.is-pinned {
  width: 430px;
  min-width: 280px;
  min-height: 170px;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 24px);
  padding-right: 34px;
  pointer-events: auto;
  resize: both;
  overflow: auto;
}

.didactic-tooltip.is-pinned::after {
  content: "";
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 13px;
  height: 13px;
  background:
    linear-gradient(135deg, transparent 0 45%, color-mix(in srgb, var(--sql) 72%, var(--text)) 46% 54%, transparent 55%) 8px 8px / 5px 5px no-repeat,
    linear-gradient(135deg, transparent 0 45%, color-mix(in srgb, var(--sql) 72%, var(--text)) 46% 54%, transparent 55%) 4px 4px / 9px 9px no-repeat;
  pointer-events: none;
}

.didactic-tooltip .tooltip-close-button {
  position: absolute;
  top: 5px;
  right: 7px;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 20px;
}

.didactic-tooltip .tooltip-close-button:hover {
  color: var(--text);
}

.didactic-tooltip.is-rich {
  gap: 6px;
}

.didactic-tooltip.is-rich strong {
  font-weight: 700;
}

.didactic-tooltip .tooltip-divider {
  display: block;
  width: 100%;
  height: 1px;
  background: color-mix(in srgb, var(--sql) 55%, var(--line));
}

.didactic-tooltip.is-snippet {
  width: 280px;
  max-width: min(560px, calc(100vw - 24px));
  overflow-wrap: normal;
  word-break: normal;
}

.didactic-tooltip.is-snippet.is-pinned {
  width: 430px;
  max-width: calc(100vw - 24px);
}

.didactic-tooltip.is-snippet .tooltip-section-content {
  display: block;
  max-height: calc(1.45em * 17);
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: normal;
  overflow: hidden;
  line-height: 1.45;
}

.didactic-tooltip.is-snippet .tooltip-section-content.is-code {
  font-family: var(--font-mono, monospace);
  font-size: 12px;
}

.didactic-tooltip.is-snippet .tooltip-ellipsis {
  display: block;
  line-height: 1.45;
}

.didactic-tooltip.is-snippet .tooltip-section-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.didactic-tooltip .tooltip-table-wrap {
  display: grid;
  gap: 5px;
  max-width: 100%;
  overflow: auto;
}

.didactic-tooltip.is-pinned .tooltip-table-wrap {
  max-height: none;
}

.didactic-tooltip.is-pinned .tooltip-result-table th,
.didactic-tooltip.is-pinned .tooltip-result-table td {
  max-width: none;
}

.didactic-tooltip .tooltip-table-summary {
  color: var(--text);
  font-family: var(--font-mono, monospace);
  font-size: 11px;
}

.didactic-tooltip .tooltip-result-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  line-height: 1.25;
}

.didactic-tooltip .tooltip-result-table th,
.didactic-tooltip .tooltip-result-table td {
  max-width: 140px;
  padding: 3px 6px;
  border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.didactic-tooltip .tooltip-result-table th {
  background: color-mix(in srgb, var(--surface-2) 86%, var(--surface));
  color: var(--text);
  font-weight: 800;
}

.didactic-tooltip .tooltip-result-table .is-left-origin {
  background: color-mix(in srgb, var(--venn-left) 28%, var(--surface));
  border-color: color-mix(in srgb, var(--venn-left) 52%, var(--line));
}

.didactic-tooltip .tooltip-result-table .is-right-origin {
  background: color-mix(in srgb, var(--venn-right) 38%, var(--surface));
  border-color: color-mix(in srgb, var(--venn-right) 55%, var(--line));
}

.didactic-tooltip .tooltip-result-table .is-both-origin {
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--venn-left) 28%, var(--surface)) 0 50%,
    color-mix(in srgb, var(--venn-right) 38%, var(--surface)) 50% 100%
  );
  border-color: color-mix(in srgb, var(--sql) 45%, var(--line));
}

.didactic-tooltip .tooltip-result-table .is-set-3-origin {
  background: color-mix(in srgb, var(--venn-third) 30%, var(--surface));
  border-color: color-mix(in srgb, var(--venn-third) 54%, var(--line));
}

.didactic-tooltip .tooltip-result-table .is-set-1-origin {
  background: color-mix(in srgb, var(--venn-left) 28%, var(--surface));
  border-color: color-mix(in srgb, var(--venn-left) 52%, var(--line));
}

.didactic-tooltip .tooltip-result-table .is-set-2-origin {
  background: color-mix(in srgb, var(--venn-right) 38%, var(--surface));
  border-color: color-mix(in srgb, var(--venn-right) 55%, var(--line));
}

.didactic-tooltip .tooltip-result-table .is-set-4-origin {
  background: color-mix(in srgb, var(--venn-fourth) 34%, var(--surface));
  border-color: color-mix(in srgb, var(--venn-fourth) 58%, var(--line));
}

.didactic-tooltip .tooltip-result-table .is-set-5-origin {
  background: color-mix(in srgb, #b39ddb 30%, var(--surface));
  border-color: color-mix(in srgb, #b39ddb 54%, var(--line));
}

.didactic-tooltip.is-visible {
  display: block;
}

.didactic-tooltip.is-rich.is-visible {
  display: grid;
}

body.design-index3 .hl-string {
  color: var(--graphic);
  -webkit-text-fill-color: currentColor;
}

body.design-index3 .hl-number {
  color: var(--syntax-number);
  -webkit-text-fill-color: currentColor;
}

body.design-index3 .hl-comment {
  color: #2ecc71;
  -webkit-text-fill-color: currentColor;
  font-style: italic;
}


body.design-index3 .close-tab {
  width: 21px;
  height: 21px;
  margin-left: auto;
  flex: 0 0 21px;
  border: 0;
  border-radius: 999px;
  background: transparent url("../media/borrar.svg") center / 14px 14px no-repeat;
  font-size: 0;
  padding: 0;
}

body.design-index3 .close-tab::before {
  content: none;
}

body.design-index3 .editor-resize-handle {
  position: absolute;
  right: 4px;
  bottom: 4px;
  z-index: 6;
  width: 18px;
  height: 18px;
  border: 0;
  background: transparent;
  cursor: nwse-resize;
  padding: 0;
}

body.design-index3 .editor-resize-handle::before {
  content: "";
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 12px;
  height: 12px;
  background:
    linear-gradient(135deg, transparent 0 46%, color-mix(in srgb, var(--sql) 55%, transparent) 46% 54%, transparent 54%) 0 0 / 100% 100% no-repeat;
  opacity: 0.75;
}

body.design-index3 .editor-resize-handle:hover::before,
body.design-index3.editor-resizing .editor-resize-handle::before {
  opacity: 1;
}

body.design-index3 .result-grid {
  position: relative;
  grid-template-columns: minmax(0, 1.58fr) minmax(230px, 1fr);
  gap: 8px;
  height: var(--result-panel-height);
  min-height: 154px;
}

body.design-index3 .result-grid.metadata-collapsed {
  grid-template-columns: minmax(0, 1fr) 42px;
}

body.design-index3 .output-panel,
body.design-index3 .metadata-panel {
  position: relative;
  min-height: 0;
  border-radius: 0;
  box-shadow: none;
  border: 1px solid color-mix(in srgb, var(--sql) 22%, var(--line));
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

body.design-index3 .result-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 30px;
  padding: 9px 28px 4px;
}

body.design-index3 .output-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

body.design-index3 .output-copy-button,
body.design-index3 .block-copy-button {
  border: 0;
  background-color: transparent;
  background-image: url("../media/copiar.svg");
  background-position: center;
  background-repeat: no-repeat;
  font-size: 0;
  text-indent: -9999px;
  overflow: hidden;
  cursor: pointer;
}

body.design-index3 .output-copy-button {
  width: 24px;
  height: 24px;
  background-size: 18px 18px;
}

body.design-index3 .output-copy-button:hover,
body.design-index3 .block-copy-button:hover {
  opacity: 0.7;
}

body.design-index3 .metadata-toggle {
  margin-left: auto;
}

body.design-index3 .result-heading h2,
body.design-index3 .snippets-header h2 {
  font-size: 14px;
}

body.design-index3 .output-content,
body.design-index3 .metadata-content {
  min-height: 0;
  max-height: none;
  padding: 6px 8px 14px;
  overflow: auto;
}

body.design-index3 .metadata-item {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: 8px 12px;
}

body.design-index3 .metadata-item:last-child {
  border-bottom: 0;
}

body.design-index3 .metadata-list {
  gap: 0;
}

body.design-index3 .execution-block {
  position: relative;
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  overflow: visible;
  padding-bottom: 22px;
}

body.design-index3 .execution-block:last-child {
  border-bottom: 0;
}

body.design-index3 .execution-block header {
  padding: 9px 12px 6px;
  background: transparent;
}

body.design-index3 .execution-block pre {
  padding: 8px 12px;
}

body.design-index3 .block-copy-button {
  position: absolute;
  right: 12px;
  bottom: 5px;
  width: 18px;
  height: 18px;
  background-size: 15px 15px;
}

body.design-index3 .execution-message {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding-right: 10px;
}

body.design-index3 .execution-message pre {
  flex: 1 1 auto;
  min-width: 0;
  padding-left: 0;
}

body.design-index3 .sql-error-help {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 10px;
  margin-left: 10px;
  background-color: var(--red);
  mask: url("../media/informacionia.svg") center / 18px 18px no-repeat;
  -webkit-mask: url("../media/informacionia.svg") center / 18px 18px no-repeat;
  font-size: 0;
  text-indent: -9999px;
  overflow: hidden;
  animation: errorHelpPulse 1.4s ease-in-out infinite;
}

body.design-index3 .sql-error-help:hover {
  background-color: color-mix(in srgb, var(--red) 72%, var(--text));
  animation-play-state: paused;
}

@keyframes errorHelpPulse {
  0%, 100% {
    background-color: var(--red);
  }
  50% {
    background-color: color-mix(in srgb, var(--red) 58%, #ffffff);
  }
}

body.design-index3 .metadata-panel.is-collapsed .metadata-content {
  display: none;
}

body.design-index3 .metadata-panel.is-collapsed .result-heading {
  justify-content: center;
  padding: 5px 2px;
  min-height: 100%;
}

body.design-index3 .metadata-panel.is-collapsed .result-heading h2 {
  display: none;
}

body.design-index3 .metadata-panel.is-collapsed .metadata-toggle {
  margin-left: 0;
}

body.design-index3 .result-resize-handle {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  cursor: ns-resize;
  padding: 0;
  z-index: 10;
}

body.design-index3 .result-resize-handle::before {
  content: "";
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 11px;
  height: 11px;
  opacity: 0.55;
  background:
    linear-gradient(135deg, transparent 0 46%, color-mix(in srgb, var(--sql) 55%, transparent) 46% 54%, transparent 54%) 0 0 / 100% 100% no-repeat;
}

body.design-index3 .result-resize-handle:hover::before,
body.design-index3.result-resizing .result-resize-handle::before {
  opacity: 1;
}

body.design-index3 .snippets-panel {
  height: calc(100% - 58px);
  min-height: 364px;
  max-height: calc(100% - 58px);
  margin-top: 58px;
  border-radius: 0;
  box-shadow: none;
  padding: 12px 0 0;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--sql) 22%, var(--line));
  overflow-y: auto;
}

body.design-index3 .snippets-header {
  min-height: 32px;
  padding: 0 14px 7px 22px;
  border-bottom: 1px solid var(--line);
}

body.design-index3 .snippet-panel-switch {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}

body.design-index3 .snippet-panel-mode {
  min-height: 24px;
  border: 0;
  border-radius: 0;
  padding: 0 10px;
  background: var(--surface-2);
  color: var(--muted);
  font: 700 11px/1 var(--font-ui);
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

body.design-index3 .snippet-panel-mode.is-active {
  background: var(--green);
  color: #ffffff;
}

body.design-index3 .snippet-panel-mode:not(.is-active):hover {
  background: var(--surface-3);
  color: var(--text);
}

body.design-index3 .snippets-header .panel-tools {
  gap: 3px;
  margin-top: 4px;
}

body.design-index3 .snippet-view-toggle {
  width: 25px;
  height: 24px;
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  border-radius: 4px;
  background-color: transparent;
  position: relative;
  cursor: pointer;
  transition: all 140ms ease;
  padding: 0;
}

body.design-index3 .snippet-view-toggle::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #898989;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: 14px 14px;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: 14px 14px;
  z-index: 1;
}

body.design-index3 .snippet-view-toggle.toggle-desc::before {
  mask-image: url("../media/informacion.svg");
  -webkit-mask-image: url("../media/informacion.svg");
}

body.design-index3 .snippet-view-toggle.toggle-code::before {
  mask-image: url("../media/codigo.svg");
  -webkit-mask-image: url("../media/codigo.svg");
}

body.design-index3 .snippet-view-toggle.is-active {
  background-color: var(--green);
  border-color: var(--green);
}

body.design-index3 .snippet-view-toggle.is-active::before {
  background-color: #ffffff;
}

body.design-index3 .snippet-view-toggle:hover {
  border-color: color-mix(in srgb, var(--sql) 35%, transparent);
}

body.design-index3 .snippet-view-toggle:not(.is-active):hover {
  background-color: color-mix(in srgb, var(--surface-2) 86%, transparent);
}

body.design-index3 .snippet-section {
  padding: 7px 8px 0;
}

body.design-index3 .section-title-row {
  gap: 4px;
}

body.design-index3 .section-toggle {
  min-height: 28px;
  font-size: 16px;
  font-weight: 500;
  justify-content: flex-start;
}

body.design-index3 .snippet-list {
  display: grid;
  gap: 8px;
  padding: 4px 0 16px;
}

body.design-index3 .snippet-group-header {
  grid-column: 1 / -1;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 40%, transparent);
  font-size: 11px;
  font-weight: normal;
  letter-spacing: 0.02em;
  color: var(--muted);
  padding: 12px 8px 4px 4px;
  margin-bottom: 4px;
  cursor: pointer;
  text-align: left;
}

body.design-index3 .snippet-group-header::before {
  content: "\25BE"; /* Flecha hacia abajo */
  font-size: 10px;
  transition: transform 140ms ease;
  display: inline-block;
}

body.design-index3 .snippet-group-header.is-collapsed::before {
  transform: rotate(-90deg);
}

body.design-index3 .snippet-group-header:hover {
  color: var(--text);
  background-color: color-mix(in srgb, var(--surface-2) 40%, transparent);
}

body.design-index3 .snippet-card {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

body.design-index3 .snippet-card header {
  padding: 4px 12px 5px;
}

body.design-index3 .snippet-card h3 {
  font-size: 14px;
  font-weight: 500;
}

body.design-index3 .snippet-card p,
body.design-index3 .snippet-code {
  display: none;
}

body.design-index3 .command-list {
  padding: 8px 0 16px;
}

body.design-index3 .snippets-panel.is-command-mode {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body.design-index3 .snippets-panel.is-command-mode .snippets-header,
body.design-index3 .snippets-panel.is-command-mode .tree-search {
  flex: 0 0 auto;
}

body.design-index3 .snippets-panel.is-command-mode .snippet-command-section {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 6px;
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
}

body.design-index3 .snippets-panel.is-command-mode .command-list {
  position: relative;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
}

body.design-index3 .command-alpha-scroll {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 0 16px;
  scrollbar-width: none;
}

body.design-index3 .command-alpha-scroll::-webkit-scrollbar {
  display: none;
}

body.design-index3 .command-alpha-button {
  min-height: 18px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--muted);
  font: 700 10px/1 var(--font-ui);
  cursor: pointer;
  padding: 0;
}

body.design-index3 .command-alpha-button:hover {
  background: color-mix(in srgb, var(--green) 14%, transparent);
  color: var(--green);
}

body.design-index3 .command-card {
  border-bottom: 1px solid var(--line);
  background: transparent;
}

body.design-index3 .command-card header {
  display: grid;
  gap: 5px;
  padding: 4px 12px 10px;
}

body.design-index3 .command-card-title {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

body.design-index3 .command-card h3 {
  display: block;
  margin: 0;
  font-family: var(--font-mono, monospace);
  font-size: 13px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--green);
}

body.design-index3 .command-doc-link {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  border: 0;
  background-color: var(--muted);
  mask: url("../media/informacion.svg") center / 14px 14px no-repeat;
  -webkit-mask: url("../media/informacion.svg") center / 14px 14px no-repeat;
  font-size: 0;
  text-indent: -9999px;
  overflow: hidden;
}

body.design-index3 .command-doc-link:hover,
body.design-index3 .command-doc-link:focus-visible {
  background-color: var(--green);
  outline: 0;
}

body.design-index3 .command-card p {
  display: block !important;
  margin: 0;
  color: #000000;
  font-size: 12px;
  line-height: 1.35;
}

body.design-index3.theme-dark .command-card p {
  color: #ffffff;
}

body.design-index3 .snippet-actions {
  gap: 8px;
  padding: 0 12px 9px;
}

body.design-index3 .mini-button {
  min-height: 22px;
  border-radius: 999px;
  padding: 0 13px;
  font-size: 10px;
  font-weight: normal;
}

body.design-index3 .snippet-actions .insert,
body.design-index3 .create-snippet {
  background-color: var(--sql); /* Turquesa/azul refinado */
  color: #ffffff;
  font-weight: 500;
}

body.design-index3 .snippet-actions .info {
  background-color: #6a9c78; /* Verde salvia suave */
  color: #ffffff;
  font-weight: 500;
}

body.design-index3 .snippet-actions .edit {
  background-color: #d69664; /* Naranja terracota suave */
  color: #ffffff;
  font-weight: 500;
}

body.design-index3 .snippet-actions .delete {
  background-color: #b97a7a; /* Rojo rosado suave */
  color: #ffffff;
  font-weight: 500;
}

/* Ajustes de tema oscuro: tonos suaves más claros para contraste */
body.design-index3.theme-dark .snippet-actions .insert,
body.design-index3.theme-dark .create-snippet {
  background-color: color-mix(in srgb, var(--sql) 65%, #fff);
  color: #000;
}

body.design-index3.theme-dark .snippet-actions .info {
  background-color: #8db599; /* Verde suave más claro */
  color: #000;
}

body.design-index3.theme-dark .snippet-actions .edit {
  background-color: #e5b28a; /* Naranja suave más claro */
  color: #000;
}

body.design-index3.theme-dark .snippet-actions .delete {
  background-color: #cf9393;
  color: #000;
}

body.design-index3 .modal {
  border-radius: 0;
  border: 0;
  box-shadow: 0 22px 52px color-mix(in srgb, #000000 24%, transparent);
}

body.design-index3 .modal-header {
  background: var(--header);
  border-bottom: 0;
}

body.design-index3 .modal-header .icon-button {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 0;
  background: transparent url("../media/cerrar.svg") center / 20px 20px no-repeat;
  font-size: 0;
  border: 0;
}

body.design-index3 .modal-header .icon-button:hover {
  background-color: transparent;
  filter: brightness(0) saturate(100%) invert(23%) sepia(90%) saturate(2213%) hue-rotate(340deg) brightness(98%) contrast(92%);
  transform: none;
}

body.design-index3 .snippet-form label {
  font-weight: 400;
}

body.design-index3 .snippet-form input,
body.design-index3 .snippet-form textarea,
body.design-index3 .save-modal select,
body.design-index3 .create-db-modal select {
  border-radius: 0;
}

body.design-index3 #snippetDescription,
body.design-index3 #snippetCode {
  font-family: var(--font-ui);
  font-size: var(--db-tree-font-size);
  font-weight: 400;
}

body.design-index3 .save-modal select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  padding: 0 12px;
}

body.design-index3 .create-db-modal select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  padding: 0 12px;
}

body.design-index3 .inline-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

body.design-index3 .inline-checkbox input {
  width: 16px;
  height: 16px;
  margin: 0;
}

@media (max-width: 1180px) {
  body.design-index3 .app-layout {
    grid-template-columns: var(--db-panel-width) minmax(0, 1fr);
    padding-right: 12px;
    height: auto;
  }

  body.design-index3 .snippets-panel {
    grid-column: 2;
    height: auto;
    min-height: 260px;
    max-height: none;
  }
}

@media (max-width: 820px) {
  body.design-index3 .app-header {
    grid-template-columns: 1fr;
    padding-bottom: 78px;
  }

  body.design-index3 .module-nav,
  body.design-index3 .header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  body.design-index3 .history-dock {
    top: auto;
    bottom: 0;
    left: auto;
    right: 0;
  }

  body.design-index3 .app-layout,
  body.design-index3 .sql-toolbar,
  body.design-index3 .result-grid {
    grid-template-columns: 1fr;
  }

  body.design-index3 .database-panel,
  body.design-index3 .snippets-panel {
    grid-column: auto;
    height: auto;
    max-height: none;
  }

  body.design-index3 .venn-left {
    left: calc(50% - 150px);
  }

  body.design-index3 .venn-right {
    right: calc(50% - 150px);
  }
}
