:root {
  --lkl-petrol: #0c3c42;
  --lkl-tuerkis: #0bb2d9;
  --bg: #f4f7f8;
  --card: #fff;
  --line: #d8e0e2;
  --sidebar-width: 260px;
  --editor-ratio: 0.5;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: #16191a;
}

body.editor-layout {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  overflow: hidden;
}

body.is-resizing {
  cursor: col-resize;
  user-select: none;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 2rem;
  max-width: 420px;
  width: 90%;
}

.toolbar {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.25rem;
  min-height: 52px;
  padding: 0.2rem 0.65rem;
  background: var(--lkl-petrol);
  color: #fff;
  z-index: 60;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}

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

.toolbar-cluster {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.toolbar-cluster-start {
  flex-shrink: 0;
  margin-right: 0.5rem;
}

.toolbar-cluster-actions {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0.1rem 0;
  align-items: stretch;
}

.toolbar-cluster-actions::-webkit-scrollbar {
  display: none;
}

.toolbar-cluster-end {
  flex-shrink: 0;
  margin-left: auto;
  gap: 0.65rem;
}

.toolbar-brand {
  font-weight: 650;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.toolbar-sep {
  width: 1px;
  align-self: stretch;
  min-height: 2rem;
  background: rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
  margin: 0 0.2rem;
}

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

.tb-tool {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  min-width: 2.65rem;
  padding: 0.28rem 0.35rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}

.tb-tool:hover {
  background: rgba(255, 255, 255, 0.1);
}

.tb-tool:focus-visible {
  outline: 2px solid var(--lkl-tuerkis);
  outline-offset: 2px;
}

.tb-tool-icon-only {
  min-width: 2.25rem;
  padding: 0.4rem;
}

.tb-tool-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  line-height: 1;
}

.tb-tool-glyph-text {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  width: 1.5rem;
  height: 1.2rem;
}

.tb-tool-label {
  font-size: 0.62rem;
  font-weight: 500;
  line-height: 1;
  opacity: 0.88;
  letter-spacing: 0.01em;
}

.tb-tool-primary {
  background: var(--lkl-tuerkis);
  color: var(--lkl-petrol);
  border-radius: 9px;
}

.tb-tool-primary:hover {
  background: #2ec4e8;
  color: var(--lkl-petrol);
}

.tb-tool-primary .tb-tool-label {
  opacity: 1;
  font-weight: 600;
}

.tb-tool-accent {
  background: rgba(11, 178, 217, 0.16);
  outline: 1px solid rgba(11, 178, 217, 0.45);
}

.tb-tool-accent:hover {
  background: rgba(11, 178, 217, 0.28);
}

.tb-tool-ghost {
  opacity: 0.95;
}

.tb-tool[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.18);
  outline: 1px solid rgba(255, 255, 255, 0.25);
}

.tb-tool[aria-pressed="false"]#btn-preview-toggle {
  opacity: 0.55;
}

.tb-segment {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.tb-segment-btn {
  font: inherit;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.45rem 0.55rem;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  line-height: 1;
}

.tb-segment-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.tb-segment-btn.is-active,
.tb-segment-btn[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.tb-segment-btn:focus-visible {
  outline: 2px solid var(--lkl-tuerkis);
  outline-offset: -2px;
}

.tb-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 14rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.82);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tb-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}

.tb-status[data-state="ok"]::before {
  background: #6ee7b7;
}

.tb-status[data-state="busy"]::before {
  background: #fcd34d;
  animation: tb-pulse 1.2s ease-in-out infinite;
}

.tb-status[data-state="pending"]::before {
  background: #fbbf24;
}

.tb-status[data-state="error"]::before {
  background: #fca5a5;
}

.storage-tier {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.storage-tier--server {
  background: #f59e0b;
  color: #1a1200;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.storage-tier--nc {
  background: #34d399;
  color: #052e1a;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.storage-tier--busy {
  background: #fbbf24;
  color: #422006;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
  animation: tb-pulse 1.2s ease-in-out infinite;
}

.storage-tier--pending {
  background: #fde68a;
  color: #422006;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.storage-tier--error {
  background: #f87171;
  color: #450a0a;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

body[data-storage-tier="server_only"] .app-header {
  box-shadow: inset 0 -3px 0 #f59e0b;
}

body[data-storage-tier="nextcloud"] .app-header {
  box-shadow: inset 0 -3px 0 #34d399;
}

@keyframes tb-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

@media (max-width: 960px) {
  .toolbar-brand {
    display: none;
  }

  .tb-status {
    max-width: 5rem;
  }

  .tb-tool-label {
    display: none;
  }

  .tb-tool {
    min-width: 2.1rem;
  }
}

.workspace {
  display: flex;
  flex: 1;
  min-height: 0;
}

.workspace.sidebar-hidden .sidebar,
.workspace.sidebar-hidden #sidebar-resizer {
  display: none;
}

.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background: var(--card);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.col-resizer {
  width: 6px;
  flex-shrink: 0;
  cursor: col-resize;
  background: var(--line);
  transition: background 0.15s;
}

.col-resizer:hover,
body.is-resizing .col-resizer {
  background: var(--lkl-tuerkis);
}

.main-column {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  min-height: 0;
}

.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
}

.sidebar-head button {
  font: inherit;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}

.sidebar-section {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--line);
  overflow: auto;
  flex: 1;
  min-height: 0;
}

.draft-list {
  list-style: none;
  margin: 0;
  padding: 0.5rem;
  overflow: auto;
  max-height: 42vh;
}

.draft-row {
  display: flex;
  gap: 0.25rem;
  align-items: stretch;
}

.draft-list button {
  font: inherit;
  cursor: pointer;
  border: none;
  border-radius: 6px;
  background: transparent;
}

.draft-row > button:first-child {
  flex: 1;
  text-align: left;
  padding: 0.45rem 0.6rem;
}

.draft-row > button:first-child:hover { background: #eef6f7; }
.draft-row > button.active:first-child {
  background: #d4eef5;
  font-weight: 600;
}

.draft-rename {
  padding: 0.35rem 0.45rem !important;
  opacity: 0.55;
  font-size: 0.85rem;
}

.draft-rename:hover { opacity: 1; background: #eef6f7 !important; }

.draft-badge {
  align-self: center;
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
}

.draft-badge--server {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}

.draft-badge--nc {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.storage-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0 0 0.5rem;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.session-banner-text {
  flex: 1;
  min-width: 0;
}

.session-banner-dismiss {
  flex-shrink: 0;
  margin: -0.15rem -0.25rem -0.15rem 0;
  padding: 0.1rem 0.35rem;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.55;
}

.session-banner-dismiss:hover,
.session-banner-dismiss:focus-visible {
  opacity: 1;
  background: rgba(0, 0, 0, 0.06);
  outline: none;
}

.storage-notice--server {
  background: #fff8e6;
  border: 1px solid #f0d78c;
  color: #5c4a12;
}

.storage-notice--nc {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #064e3b;
}

.storage-notice-icon {
  flex-shrink: 0;
  font-size: 1rem;
  line-height: 1.2;
}

.doc-outline { margin-top: 0.5rem; }

.outline-empty {
  margin: 0;
  font-size: 0.85rem;
  color: #667;
}

.outline-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.outline-list button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.3rem 0.4rem;
  border: none;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  border-radius: 4px;
}

.outline-list button:hover { background: #eef6f7; }
.outline-l2 button { padding-left: 0.9rem; }
.outline-l3 button { padding-left: 1.4rem; }
.outline-l4 button { padding-left: 1.9rem; }

.split {
  display: grid;
  flex: 1;
  min-height: 0;
  grid-template-columns: 1fr;
}

.split.split-preview-on {
  grid-template-columns: calc((100% - 6px) * var(--editor-ratio)) 6px 1fr;
}

.split.split-preview-off {
  grid-template-columns: 1fr;
}

.split.split-preview-off .preview-pane,
.split.split-preview-off #split-resizer {
  display: none;
}

.pane { min-height: 0; overflow: hidden; }

.editor-pane {
  display: flex;
  flex-direction: column;
  background: #fff;
}

.draftly-editor-host {
  flex: 1;
  min-height: 0;
  height: 100%;
}

.draftly-editor-host .cm-editor {
  height: 100%;
  outline: none;
}

.editor-raw-mode .cm-editor {
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

.toolbar-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
}

.preview-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #667;
  padding: 0.35rem 0.75rem;
  border-bottom: 1px solid var(--line);
  background: #fafcfc;
}

.preview-pane {
  background: #fff;
  border-left: 1px solid var(--line);
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.preview-surface {
  flex: 1;
  min-height: 0;
  width: 100%;
}

.preview-surface iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #fff;
}

.editor-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  border-top: 1px solid var(--line);
  background: #fff;
  color: #445;
}

.doc-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}

.doc-title-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #667;
  white-space: nowrap;
}

.doc-title-input {
  flex: 1;
  min-width: 0;
  font: inherit;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.field-hint {
  font-size: 0.78rem;
  color: #667;
}

@media (max-width: 900px) {
  .split.split-preview-on {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 6px 1fr;
  }
  .split.split-preview-on #split-resizer {
    width: 100%;
    height: 6px;
    cursor: row-resize;
  }
  .preview-pane { border-left: none; border-top: 1px solid var(--line); }
}

[hidden] { display: none !important; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(12, 60, 66, 0.5);
}

/* Über anderen Modals (z. B. KI-Dialog + Bestätigung) */
.modal.modal-on-top {
  z-index: 260;
}

.modal-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(12, 60, 66, 0.18);
  width: min(440px, 100%);
  max-height: min(90vh, 720px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-card-wide { width: min(560px, 100%); }
.modal-card-sm { width: min(400px, 100%); }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--line);
}

.modal-header h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.modal-close {
  border: none;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: #667;
  padding: 0.15rem 0.35rem;
  border-radius: 6px;
}

.modal-close:hover { background: #eef6f7; }

.modal-body {
  padding: 1rem 1.1rem;
  overflow: auto;
}

.modal-lead {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #445;
}

.modal-toolbar {
  padding: 0.65rem 1.1rem 0;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.85rem 1.1rem;
  border-top: 1px solid var(--line);
  background: #fafcfc;
}

.btn-primary,
.btn-secondary {
  font: inherit;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid var(--line);
}

.btn-secondary { background: #fff; color: #223; }
.btn-primary {
  background: var(--lkl-petrol);
  color: #fff;
  border-color: var(--lkl-petrol);
}

.inline-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
}

.form-stack {
  display: grid;
  gap: 0.85rem;
}

.form-stack label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #334;
}

.form-stack input,
.form-stack select,
.form-stack textarea {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-weight: 400;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface, #fff);
}

.form-stack textarea {
  resize: vertical;
  min-height: 6rem;
  line-height: 1.45;
}

.checkbox-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500 !important;
}

.save-target {
  background: #eef6f7;
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
  margin-bottom: 1rem;
}

.save-target-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #667;
  margin-bottom: 0.2rem;
}

.save-target strong {
  display: block;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.95rem;
  word-break: break-all;
}

.save-target-folder {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.82rem;
  color: #556;
}

.callout-warn {
  margin-top: 0.75rem;
  padding: 0.65rem 0.75rem;
  background: #fff8ee;
  border: 1px solid #f0dcc0;
  border-radius: 8px;
  font-size: 0.88rem;
}

.breadcrumb-path {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem;
  padding: 0.5rem 1.1rem;
  font-size: 0.82rem;
}

.breadcrumb-path button {
  border: none;
  background: #eef6f7;
  color: var(--lkl-petrol);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  cursor: pointer;
  font: inherit;
}

.breadcrumb-sep { color: #99a; }

.file-list {
  margin: 0.5rem 1.1rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  max-height: 320px;
  overflow: auto;
}

.file-list button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.5rem 0.75rem;
  border: none;
  border-bottom: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
}

.file-list button:last-child { border-bottom: none; }
.file-list button:hover { background: #f4fafb; }

.file-list .nc-file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.file-list .nc-file-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-list .nc-file-date {
  flex-shrink: 0;
  font-size: 0.78rem;
  color: #667;
}

.nc-loading {
  padding: 0.75rem;
  margin: 0;
  font-size: 0.88rem;
  color: #667;
}

#toast-root {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
  max-width: min(420px, calc(100vw - 2rem));
}

.toast {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  line-height: 1.4;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s;
}

.toast-visible { opacity: 1; transform: translateY(0); }
.toast-success { background: #e8f7ee; color: #0d4a2a; border: 1px solid #b8e6c8; }
.toast-error { background: #fdeeee; color: #7a1212; border: 1px solid #f5c2c2; }

.ai-dialog-card .modal-body {
  max-height: min(70vh, 720px);
  overflow: auto;
}

.ai-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 0.5rem 2rem;
  gap: 0.65rem;
}

.ai-loading-spinner {
  width: 2.5rem;
  height: 2.5rem;
  border: 3px solid #e2eaec;
  border-top-color: var(--lkl-tuerkis);
  border-radius: 50%;
  animation: ai-spin 0.85s linear infinite;
}

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

.ai-loading-title {
  margin: 0.35rem 0 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--lkl-petrol);
}

.ai-loading-hint,
.ai-loading-elapsed {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #556;
  max-width: 28rem;
}

.ai-loading-elapsed {
  font-variant-numeric: tabular-nums;
  color: #778;
}

.tb-tool:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.ai-diff-summary {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: #445;
}

.ai-diff-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  min-height: 12rem;
}

@media (max-width: 720px) {
  .ai-diff-panels {
    grid-template-columns: 1fr;
  }
}

.ai-diff-pane {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fafbfc;
}

.ai-diff-heading {
  margin: 0;
  padding: 0.45rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #eef2f4;
  border-bottom: 1px solid var(--line);
  color: #445;
}

.ai-diff-pre {
  margin: 0;
  padding: 0.65rem;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.78rem;
  line-height: 1.45;
  overflow: auto;
  max-height: min(50vh, 420px);
  white-space: pre-wrap;
  word-break: break-word;
}

.nc-advanced {
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.35rem 0.75rem 0.75rem;
  background: #f8fafb;
}

.nc-advanced > summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--lkl-petrol);
  padding: 0.35rem 0;
}

.nc-advanced-body {
  margin-top: 0.75rem;
}

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

.btn-link {
  font: inherit;
  background: none;
  border: none;
  color: var(--lkl-petrol);
  text-decoration: underline;
  cursor: pointer;
  padding: 0.35rem 0.5rem;
}

.btn-link:hover {
  color: var(--lkl-tuerkis);
}

.ai-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ai-example-block {
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
  display: grid;
  gap: 0.65rem;
}

.ai-example-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.ai-example-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
}

.ai-example-empty {
  color: #667;
  font-size: 0.88rem;
}

.btn-link {
  font: inherit;
  border: none;
  background: none;
  color: var(--lkl-petrol);
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.btn-link-danger {
  color: #a33;
}
