@charset "UTF-8";
.tc-assist {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.tc-assist__button {
  position: relative;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: hsl(var(--accent));
  color: var(--accent-contrast);
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: transform .12s ease, background .12s ease;
}
.tc-assist__button:hover {
  transform: translateY(-2px);
}
.tc-assist__button:active {
  transform: translateY(0);
}
.tc-assist__button:focus-visible {
  outline: 3px solid hsl(var(--accent));
  outline-offset: 3px;
}
.tc-assist.is-open .tc-assist__button {
  background: var(--surface-3);
  color: var(--text);
}
.tc-assist__icon {
  display: block;
}
.tc-assist__badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--error);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--surface);
}
.tc-assist.has-unread .tc-assist__button {
  animation: tc-assist-pulse 2.4s ease-out 3;
}
@keyframes tc-assist-pulse {
  0%,
  100% {
    box-shadow: var(--shadow-lg);
  }
  50% {
    box-shadow: var(--shadow-lg), 0 0 0 8px hsl(var(--accent) / 18%);
  }
}
.tc-assist__panel {
  width: min(360px, calc(100vw - 40px));
  max-height: min(560px, calc(100vh - 140px));
  overflow-y: auto;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  animation: tc-assist-in .14s ease-out;
}
@keyframes tc-assist-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
.tc-assist__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 14px;
}
.tc-assist__back {
  margin-bottom: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-muted);
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
}
.tc-assist__back:hover {
  color: hsl(var(--accent));
}
.tc-assist__item {
  display: block;
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.tc-assist__item:hover {
  border-color: hsl(var(--accent));
}
.tc-assist__item-title {
  display: block;
  font-size: 14px;
  font-weight: 500;
}
.tc-assist__item-note {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-muted);
}
.tc-assist__label {
  display: block;
  margin: 10px 0 4px;
  font-size: 12.5px;
  color: var(--text-muted);
}
.tc-assist__field,
.tc-assist__search {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 14px;
}
.tc-assist__search {
  margin-bottom: 10px;
}
.tc-assist__results {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tc-assist__result {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.tc-assist__result:hover {
  background: var(--surface-3);
}
.tc-assist__result-name {
  display: block;
  font-size: 13.5px;
}
.tc-assist__result-path {
  display: block;
  font-size: 11.5px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tc-assist__note,
.tc-assist__text {
  margin: 6px 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
}
.tc-assist__text {
  color: var(--text);
}
.tc-assist__link {
  padding: 0;
  border: 0;
  background: none;
  color: hsl(var(--accent));
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
}
.tc-assist__note-item {
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  cursor: pointer;
}
.tc-assist__note-item.is-unread {
  border-left: 3px solid hsl(var(--accent));
}
.tc-assist__note-title {
  font-size: 13.5px;
  font-weight: 600;
}
.tc-assist__note-body {
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
}
.tc-assist__note-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 11.5px;
  color: var(--text-muted);
}
.tc-assist__row {
  display: flex;
  gap: 12px;
  margin: 8px 0;
}
.tc-assist__shots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.tc-assist__shot {
  position: relative;
  width: 72px;
  height: 54px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.tc-assist__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tc-assist__shot button {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  background: rgb(0 0 0 / 60%);
  color: #fff;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}
.tc-assist__diag {
  margin: 12px 0;
  font-size: 12.5px;
}
.tc-assist__diag summary {
  cursor: pointer;
  color: var(--text-muted);
}
.tc-assist__diag pre {
  margin: 8px 0 0;
  padding: 10px;
  max-height: 200px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-size: 11.5px;
  line-height: 1.6;
  white-space: pre-wrap;
}
.tc-assist__send {
  width: 100%;
  margin-top: 6px;
  padding: 10px;
  border: 0;
  border-radius: var(--radius-sm);
  background: hsl(var(--accent));
  color: var(--accent-contrast);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.tc-assist__send:disabled {
  opacity: .6;
  cursor: default;
}
.tc-assist__question {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-left: 3px solid hsl(var(--accent));
  background: var(--surface-2);
  font-size: 14px;
  line-height: 1.55;
}
.tc-support .tc-filelist__head,
.tc-support .tc-row {
  grid-template-columns: minmax(0, 2fr) 200px 130px 130px;
}
.tc-support__status {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 12px;
}
.tc-support__status--neu,
.tc-support__status--gesendet {
  color: hsl(var(--accent));
  border-color: currentColor;
}
.tc-support__status--rueckfrage {
  color: var(--warning);
  border-color: currentColor;
}
.tc-support__status--geloest {
  color: var(--success);
  border-color: currentColor;
}
.tc-support__status--abgelehnt {
  color: var(--text-muted);
}
@media (max-width: 700px) {
  .tc-assist {
    right: 14px;
    bottom: 14px;
  }
  .tc-support .tc-filelist__head,
  .tc-support .tc-row {
    grid-template-columns: minmax(0, 1fr) 120px;
  }
  .tc-support .tc-col--date {
    display: none;
  }
}
