/* DeepSeek workbench — thin theme on top of chatgpt.css */
:root {
  --accent: #4d6bfe;
  --accent-ink: #f5f7ff;
  --soft: rgba(77, 107, 254, 0.14);
  --user: rgba(77, 107, 254, 0.16);
}

.brand-mark {
  background: linear-gradient(135deg, #4d6bfe, #7c8cff);
  color: #fff;
}

.welcome-mark {
  background: linear-gradient(135deg, #4d6bfe, #7c8cff);
  color: #fff;
}

.message.assistant .message-avatar {
  background: linear-gradient(135deg, #4d6bfe, #7c8cff);
  color: #fff;
}

.ds-card .big {
  font-variant-numeric: tabular-nums;
}

.ds-card.limit {
  border-color: rgba(255, 123, 123, 0.45);
}

.reasoning {
  margin-bottom: 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.86rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.reasoning summary {
  cursor: pointer;
  font-weight: 650;
  color: #c9d4e4;
  margin-bottom: 0.35rem;
}

.session-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: 32vh;
  overflow: auto;
  margin: 0 0 0.85rem;
  padding: 0;
  position: relative;
  z-index: 1;
}
.session-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  min-height: 2.55rem;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  border-radius: 10px;
  padding: 0.45rem 0.45rem 0.45rem 0.7rem;
  font-size: 0.8rem;
  cursor: pointer;
}
.session-item:hover {
  border-color: rgba(77, 107, 254, 0.4);
  background: rgba(77, 107, 254, 0.08);
}
.session-item.active {
  border-color: rgba(77, 107, 254, 0.55);
  background: rgba(77, 107, 254, 0.16);
}
.session-item .ttl {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  color: var(--ink);
  pointer-events: none;
}
.session-item .del {
  flex: none;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 8px;
  opacity: 0.7;
  font-size: 1rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}
.session-item .del:hover { opacity: 1; color: var(--danger); background: rgba(255,123,123,.12); }

.sidebar .section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.section-hint {
  float: none;
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  opacity: 0.55;
  text-transform: none;
}

.sidebar-close {
  display: none;
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 2;
  width: 1.9rem;
  height: 1.9rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 700px) {
  .sidebar {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .sidebar-close { display: inline-flex; }
  .session-list { max-height: none; }
}
