
/* ARK CONNECTOR V11 */

#arkIndexConnectionsPanel[hidden],
#v-connections[hidden] {
  display: none !important;
}

#arkIndexConnectionsPanel:not([hidden]),
#v-connections:not([hidden]) {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  padding-bottom: 8px !important;
}

#arkIndexConnectionsFrame,
#arkConnectionsFrame {
  display: block !important;
  width: 100% !important;
  height: var(--ark-v11-height, 620px) !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: hidden !important;
  border: 0 !important;
  background: transparent;
}

body:has(
  #arkIndexConnectionsPanel:not([hidden])
),
body:has(
  #v-connections:not([hidden])
) {
  height: auto !important;
  min-height: 100dvh !important;
  overflow-y: auto !important;
}

html.ark-conn-embedded,
html.ark-conn-embedded body {
  height: auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

html.ark-conn-embedded header.top {
  display: none !important;
}

html.ark-conn-embedded body {
  padding: 5px 2px 8px !important;
}

html.ark-conn-embedded main.wrap {
  max-width: none !important;
  margin: 0 !important;
}

#arkUniversalActions {
  width: 100%;
  margin-top: 18px;
  min-width: 0;
}

#arkUniversalActions .ark-v11-fields {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0;
}

#arkUniversalActions .ark-v11-fields .fld {
  min-width: 0;
}

#arkUniversalActions select,
#arkUniversalActions input {
  width: 100%;
  min-width: 0;
  min-height: 40px;
}

#arkUniversalActions select:not(:disabled) {
  cursor: pointer;
}

#arkUniversalActions #arkPrompt {
  width: 100%;
  min-height: 95px;
}

#arkUniversalActions .ark-v11-actions {
  margin: 12px 0;
}

#arkUniversalActions #arkActionParams:empty,
#arkUniversalActions #arkActionResult[hidden] {
  display: none !important;
}

#arkUniversalActions #arkActionNote {
  padding: 9px 11px;
  margin: 10px 0;
  border-radius: 9px;
  background: var(--raise, #232327);
}

#arkUniversalActions #arkActionResult {
  max-height: 300px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: var(--field, #0b0b0c);
  padding: 12px;
  border-radius: 9px;
}

#arkUniversalActions #arkFigmaMount {
  border-top: 1px solid var(--line, #302b2d);
  margin-top: 16px;
  padding-top: 16px;
}

#arkUniversalActions #arkFigmaMount[hidden] {
  display: none !important;
}

#arkUniversalActions .ark-v11-figma-inline {
  width: 100% !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html,
body,
dialog,
textarea,
pre {
  scrollbar-width: thin;
  scrollbar-color:
    var(--accent, #e11d2e)
    transparent;
}

@media (max-width: 700px) {
  #arkUniversalActions .ark-v11-fields {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  #arkUniversalActions *,
  #arkUniversalActions *::before {
    transition: none !important;
    animation: none !important;
  }
}
