/* KitCollectives tema i Paperclip (mørk tilstand). Gælder kun, når kc-theme.js har sat
   data-kc-company, altså på sider under /KIT/. Guapo og lyst tema bruger Paperclips egne værdier.
   Kun Paperclips egne tokens og få stabile klasser (.paperclip-markdown, .task-detail-properties). */

html.dark[data-kc-company="KIT"] {
  --background: #111113;
  --foreground: #ededef;
  --side-panel-bg: #111113;
  --side-panel-fg: #ededef;
  --streamlined-task-detail-bg: #111113;
  --card: #141417;
  --card-foreground: #ededef;
  --popover: #18181b;
  --popover-foreground: #ededef;
  --bubble-agent: #141417;

  --primary: #5e6ad2;
  --primary-foreground: #ffffff;
  --secondary: #1b1b1f;
  --secondary-foreground: #ededef;
  --muted: #1b1b1f;
  --muted-foreground: #8a8a93;
  --accent: #1b1b1f;
  --accent-foreground: #ededef;

  --border: rgb(255 255 255 / 0.07);
  --input: rgb(255 255 255 / 0.1);
  --ring: #5e6ad2;
  --scrollbar-thumb: #2a2a2e;
  --scrollbar-thumb-hover: #3a3a3f;

  --sidebar: #0b0b0c;
  --sidebar-foreground: #c4c4cc;
  --sidebar-primary: #5e6ad2;
  --sidebar-primary-foreground: #ffffff;
  --sidebar-accent: #18181b;
  --sidebar-accent-foreground: #ededef;
  --sidebar-border: rgb(255 255 255 / 0.05);
  --sidebar-ring: #5e6ad2;

  /* Brugerens beskeder i tråden: mørk indigo i stedet for Paperclips klare blå. */
  --liveness-blue: #2b2e52;

  /* Status: gul = venter/kører, grøn = færdig, lilla = i gang. */
  --status-task-icon-in_progress: #7c83e8;
  --status-task-icon-in_review: #e2b340;
  --status-task-icon-done: #3fb950;
}

/* Lidt mindre tekst på desktop. På telefon bliver 16 px, så Safari ikke zoomer i felter. */
@media (min-width: 768px) {
  html[data-kc-company="KIT"] {
    font-size: 15px;
  }
}

/* Agentbeskeder og kommentarer: mindre tekst, mere luft mellem linjerne. */
html[data-kc-company="KIT"] .paperclip-markdown {
  font-size: 13.5px;
  line-height: 1.65;
}
html[data-kc-company="KIT"] .paperclip-markdown :is(h1, h2) {
  font-size: 1.1em;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin-top: 1.2em;
}
html[data-kc-company="KIT"] .paperclip-markdown h3 {
  font-size: 1em;
  font-weight: 600;
}
html[data-kc-company="KIT"] .paperclip-markdown table {
  font-size: 12.5px;
}
html[data-kc-company="KIT"] .paperclip-markdown :is(th, td) {
  border-color: var(--border);
  padding: 6px 10px;
}
html[data-kc-company="KIT"] .paperclip-markdown code {
  font-size: 0.9em;
}

/* Properties-panelet: samme størrelse som Linear. */
html[data-kc-company="KIT"] .task-detail-properties {
  font-size: 12.5px;
}
