@font-face {
  font-family: Golos;
  src: url('/assets/GolosText.ttf') format('truetype');
  font-weight: 400 900;
  font-display: swap;
}
:root {
  --ink: #f4efea;
  --surface: #202022;
  --quiet: #bfb8b2;
  --brick: #ef885f;
  --brick-soft: #41302a;
}
html,
body,
#kc-workspace {
  font-family: Golos, 'Segoe UI', sans-serif;
  letter-spacing: -0.015em;
  color: var(--ink);
  background: #141416;
}
button,
input,
textarea,
select {
  font-family: inherit;
}
#kc-workspace {
  --kc-accent: var(--brick);
  --kc-soft: var(--brick-soft);
  --kc-on-accent: #28170f;
  --kc-muted: var(--quiet);
  --kc-line: #3b3634;
  --kc-radius: 18px;
}
#kc-workspace h1 {
  font-size: clamp(25px, 2.6vw, 34px);
  line-height: 1.22;
  letter-spacing: -1px;
  font-weight: 650;
}
#kc-workspace h2 {
  font-size: 20px;
  letter-spacing: -0.45px;
  font-weight: 600;
}
#kc-workspace h3 {
  font-weight: 600;
  letter-spacing: -0.2px;
}
#kc-workspace .kc-panel,
#kc-workspace .kc-summary {
  background: #212123;
  border: 1px solid #373331;
  box-shadow: 0 8px 28px #0000000c;
}
#kc-workspace .kc-top {
  background: #19191b;
  border-bottom-color: #35302e;
  min-height: 78px;
  padding-block: 14px;
}
#kc-workspace .kc-sidebar {
  background: #19191b;
  border-right-color: #35302e;
}
#kc-workspace .kc-nav button[aria-current='page'] {
  background: #41302a;
  color: #ffb591;
  box-shadow: inset 3px 0 #ef885f;
}
#kc-workspace .kc-nav button {
  font-weight: 500;
  border-radius: 11px;
  transition:
    background 0.18s,
    color 0.18s;
}
#kc-workspace .kc-button {
  border-radius: 11px;
  min-height: 42px;
  font-weight: 550;
  letter-spacing: -0.15px;
}
#kc-workspace .kc-button.kc-primary {
  background: #ef885f;
  color: #28170f;
  border-color: #ef885f;
  box-shadow: 0 3px 10px #ef885f12;
}
#kc-workspace .kc-button.kc-primary:hover {
  background: #f49c7a;
  transform: translateY(-1px);
}
#kc-workspace .kc-kicker {
  color: #eca489;
  letter-spacing: 0.1em;
  font-weight: 600;
}
#kc-workspace .kc-help,
#kc-workspace .kc-caption {
  color: #c6bdb7;
}
#kc-workspace input,
#kc-workspace select,
#kc-workspace textarea {
  background: #19191c;
  border-color: #4b423e;
  border-radius: 11px;
  color: #f4efea;
}
#kc-workspace input:focus,
#kc-workspace select:focus,
#kc-workspace textarea:focus {
  border-color: #ef885f;
  box-shadow: 0 0 0 3px #ef885f1c;
  outline: 0;
}
#kc-workspace :focus-visible {
  outline-color: #ef885f;
}
.kc-brand-logo {
  display: block;
  object-fit: contain;
  max-width: 100%;
  height: auto;
  background: #fffaf5;
  padding: 10px 13px;
  border-radius: 6px;
  box-sizing: content-box;
}
#kc-workspace .kc-brand {
  flex-shrink: 1;
}
#kc-workspace .kc-brand-logo {
  width: 170px;
}
.login {
  background: #171719;
}
.login-card {
  background: #222224;
  border: 1px solid #3a3330;
  border-radius: 22px;
  box-shadow: 0 28px 90px #0005;
}
.login-brand {
  justify-content: flex-start;
  margin-bottom: 28px;
}
.login-primary {
  background: #ef885f;
  color: #28170f;
  border: 0;
  border-radius: 11px;
  font-weight: 600;
}
.login input {
  background: #19191b;
  border-color: #49413d;
}
.login input:focus {
  outline-color: #ef885f;
}
.startup {
  background: #fbf7f1;
  color: #312720;
}
.startup-content {
  width: min(440px, 100%);
}
.startup-logo-wrap {
  padding: 28px 20px;
  animation: brand-entrance 1.15s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.startup-logo {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.startup .startup-subtitle {
  font-size: 13px;
  letter-spacing: 0.03em;
  color: #796a61;
  margin: 18px 0 25px;
  animation: caption-entrance 0.7s 0.4s both;
}
.startup .startup-track {
  height: 2px;
  width: 180px;
  margin: auto;
  border-radius: 4px;
  background: #e7d9ce;
  overflow: hidden;
}
.startup .startup-track::after {
  content: '';
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: left;
  background: #b53520;
  animation: brand-progress 2.4s cubic-bezier(0.15, 0.6, 0.3, 1) both;
}
@keyframes brand-entrance {
  from {
    opacity: 0;
    transform: translateY(12px);
    clip-path: inset(0 100% 0 0);
  }
  to {
    opacity: 1;
    transform: none;
    clip-path: inset(0 0 0 0);
  }
}
@keyframes caption-entrance {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes brand-progress {
  0% {
    transform: scaleX(0);
  }
  65% {
    transform: scaleX(0.82);
  }
  100% {
    transform: scaleX(1);
  }
}
#kc-workspace .kc-chat-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 24px;
}
#kc-workspace .kc-chat-tabs .is-active {
  background: #41302a;
  color: #ffb591;
  border-color: #78503e;
}
#kc-workspace .kc-chat-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 18px;
  margin-top: 20px;
  align-items: start;
}
#kc-workspace .kc-chat-list {
  padding: 10px;
  display: grid;
  gap: 6px;
  max-height: 650px;
  overflow: auto;
}
#kc-workspace .kc-chat-choice {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 12px;
  text-align: left;
  padding: 14px 12px;
  color: #f4efea;
  cursor: pointer;
  min-width: 0;
}
#kc-workspace .kc-chat-choice strong,
#kc-workspace .kc-chat-choice small {
  display: block;
  overflow-wrap: anywhere;
}
#kc-workspace .kc-chat-choice strong {
  font-size: 14px;
  line-height: 1.5;
}
.kc-chat-choice small {
  margin-top: 5px;
}
#kc-workspace .kc-chat-choice.is-selected {
  background: #382b25;
  border-color: #6d4939;
}
#kc-workspace .kc-chat-choice:hover {
  background: #2e2926;
}
#kc-workspace .kc-chat {
  padding: 22px;
  min-width: 0;
}
#kc-workspace .kc-chat-log {
  height: 420px;
  max-height: 52vh;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 2px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
#kc-workspace .kc-message {
  align-self: flex-start;
  max-width: 85%;
  background: #2c2b2d;
  border: 1px solid #3c3734;
  border-radius: 15px 15px 15px 4px;
  padding: 13px 16px;
  overflow-wrap: anywhere;
  margin: 0;
}
#kc-workspace .kc-message.is-own {
  align-self: flex-end;
  background: #3b2e27;
  border-color: #624431;
  border-radius: 15px 15px 4px 15px;
}
#kc-workspace .kc-message.is-call {
  align-self: stretch;
  max-width: none;
  background: #282624;
  border: 1px solid #73513d;
}
#kc-workspace .kc-message-author {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  font-size: 12px;
  color: #d3b9a9;
  flex-wrap: wrap;
}
#kc-workspace .kc-message-author span {
  font-size: 11px;
  color: #b4aaa2;
}
#kc-workspace .kc-message p {
  font-size: 14px;
  margin-top: 6px;
}
#kc-workspace .kc-chat-file {
  display: flex;
  gap: 10px;
  flex-direction: column;
  color: #ffd0b4;
  text-decoration: none;
  margin-top: 9px;
  padding: 8px;
  border: 1px solid #7d6047;
  border-radius: 10px;
  background: #18161544;
}
#kc-workspace .kc-chat-file img {
  max-width: 280px;
  max-height: 240px;
  object-fit: contain;
  border-radius: 6px;
}
#kc-workspace .kc-chat-file small {
  display: block;
  margin-top: 5px;
}
#kc-workspace .kc-compose {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  border-top: 1px solid #413630;
  padding-top: 18px;
}
#kc-workspace .kc-compose .kc-grow {
  flex: 1 1 100%;
}
#kc-workspace .kc-compose textarea {
  min-height: 88px;
  resize: vertical;
}
#kc-workspace .kc-chat-attachment {
  border: 1px solid #5b4940;
  border-radius: 10px;
  display: flex;
  gap: 8px;
  flex-direction: column;
  padding: 9px 12px;
  font-size: 13px;
}
#kc-workspace .kc-chat-attachment input {
  max-width: 220px;
  font-size: 12px;
  padding: 0;
  border: 0;
  background: transparent;
}
#kc-workspace .kc-compose [data-file-name] {
  flex: 1;
  min-width: 120px;
  overflow-wrap: anywhere;
}
#kc-workspace .kc-call-banner {
  background: #332820;
  border-color: #6d4a36;
  padding: 14px;
  margin-top: 16px;
  margin-bottom: 0;
}
#kc-workspace .kc-participant-option:has(input:checked) {
  background: #ef885f20;
}
@media (max-width: 850px) {
  #kc-workspace .kc-chat-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  #kc-workspace .kc-chat-list {
    display: flex;
    overflow-x: auto;
    max-height: none;
    max-width: 100%;
    padding: 8px;
  }
  #kc-workspace .kc-chat-choice {
    min-width: 170px;
    max-width: 250px;
    flex-shrink: 0;
  }
  #kc-workspace .kc-chat {
    padding: 16px;
  }
  #kc-workspace .kc-message {
    max-width: 94%;
  }
}
@media (max-width: 650px) {
  #kc-workspace .kc-top {
    padding: 12px 16px;
    gap: 10px;
  }
  #kc-workspace .kc-brand-logo {
    width: 130px;
    padding: 7px 9px;
  }
  #kc-workspace .kc-top-actions {
    gap: 6px;
  }
  #kc-workspace .kc-chat-tabs .kc-button {
    flex: 1 1 100%;
    text-align: left;
  }
  #kc-workspace .kc-compose .kc-button {
    width: 100%;
  }
  #kc-workspace .kc-compose [data-file-name] {
    font-size: 12px;
  }
  #kc-workspace .kc-chat-file img {
    max-width: 100%;
  }
  #kc-workspace .kc-message-author {
    gap: 6px;
  }
  #kc-workspace .kc-chat-log {
    height: 390px;
    max-height: 55dvh;
  }
  .startup-logo-wrap {
    padding: 20px 5px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .startup-logo-wrap,
  .startup .startup-subtitle,
  .startup .startup-track::after {
    animation: none !important;
  }
  .kc-primary:hover {
    transform: none !important;
  }
}

#kc-workspace .kc-chat { display:block; }
#kc-workspace .kc-chat-log { margin-top:14px; }
@media(max-width:650px){#kc-workspace .kc-chat-tabs{flex-wrap:nowrap;overflow-x:auto;padding-bottom:5px;}#kc-workspace .kc-chat-tabs .kc-button{flex:0 0 auto;white-space:nowrap;min-height:42px;}#kc-workspace .kc-chat-list{margin-bottom:0;}#kc-workspace .kc-chat{padding:14px;}#kc-workspace .kc-chat-log{max-height:52dvh;} }
.kc-metric-help { margin-top: 0.65rem; }
.kc-metric-help summary { color: var(--kc-accent, #e8a376); cursor: pointer; font-size: .9rem; }
.kc-metric-help p, .kc-metric-help li { font-size: .88rem; line-height: 1.55; }
.kc-metric-help ul { padding-inline-start: 1.2rem; }
.kc-audit-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  gap: .75rem;
  align-items: end;
  margin-bottom: .9rem;
}
.kc-audit-filters .kc-actions { margin: 0; }
.kc-attention-button { white-space: nowrap; }
#kc-attention { scroll-margin-top: 6rem; }
