button {
  border: 0;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

button:active {
  transform: translateY(0.0625rem);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.primary {
  background: var(--accent);
  color: #0b1f17;
  padding: 0.625rem 1.125rem;
  border-radius: 62.4375rem;
  box-shadow: none;
}

.primary:hover {
  background: var(--accent-dark);
}

.ghost {
  background: transparent;
  color: var(--ink);
  border: 0.0625rem solid var(--stroke);
  padding: 0.625rem 1rem;
  border-radius: 62.4375rem;
}

.topbar .ghost {
  color: #f8fffb;
  border-color: rgba(248, 255, 251, 0.4);
}

.topbar .primary {
  box-shadow: none;
}

.ghost.small {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 0.75rem;
  border-radius: 62.4375rem;
  border: 0.0625rem solid rgba(255, 255, 255, 0.25);
}

body[data-theme="dark"] .user-chip {
  background: rgba(15, 36, 31, 0.9);
  border-color: rgba(200, 255, 230, 0.12);
}

.user-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 0.75rem;
  display: grid;
  place-items: center;
  background: rgba(37, 211, 102, 0.18);
  font-weight: 700;
}

.user-name {
  margin: 0;
  font-weight: 600;
}

.user-role {
  margin: 0.125rem 0 0;
  font-size: 0.6875rem;
  color: rgba(248, 255, 251, 0.7);
}

body[data-theme="dark"] .user-role {
  color: #a7b8b1;
}

.filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pill {
  padding: 0.375rem 0.75rem;
  border-radius: 62.4375rem;
  border: 0.0625rem solid transparent;
  background: rgba(26, 26, 26, 0.06);
  font-size: 0.75rem;
}

.pill.active {
  background: var(--accent);
  color: white;
}

body[data-theme="dark"] .pill {
  background: rgba(255, 255, 255, 0.1);
  color: #e8f5ef;
}

.department-list {
  display: grid;
  gap: 0.75rem;
}

.dept-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.875rem 1rem;
  border-radius: 0.875rem;
  border: 0.0625rem solid transparent;
  background: #f4f2ef;
  transition: transform 0.2s ease, border 0.2s ease;
  text-align: left;
  width: 100%;
}

.dept-card.active {
  border-color: var(--accent);
  transform: translateY(-0.125rem);
}

.dept-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.dept-card p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
}

body[data-theme="dark"] .dept-card {
  background: #0f2a25;
}

.dept-badge {
  background: rgba(37, 211, 102, 0.16);
  color: var(--accent-dark);
  padding: 0.375rem 0.625rem;
  border-radius: 62.4375rem;
  font-weight: 700;
  font-size: 0.75rem;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0.875rem;
  border-radius: 1rem;
  background: #f7f8f8;
  border: 0.0625rem solid var(--stroke);
}

body[data-theme="dark"] .search-box {
  background: rgba(15, 36, 31, 0.9);
}

.search-box input {
  border: 0;
  background: transparent;
  width: 100%;
  font-size: 0.875rem;
  outline: none;
  color: var(--ink);
}

body[data-theme="dark"] .search-box input::placeholder {
  color: #a7b8b1;
}

.search-tag {
  font-size: 0.75rem;
  background: rgba(26, 26, 26, 0.08);
  padding: 0.25rem 0.5rem;
  border-radius: 62.4375rem;
}

body[data-theme="dark"] .search-tag {
  background: rgba(255, 255, 255, 0.12);
  color: #d5e5df;
}

.conversation-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.conversation-card {
  border: 0.0625rem solid transparent;
  border-bottom: 0.0625rem solid rgba(7, 94, 84, 0.08);
  background: transparent;
  border-radius: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  padding: 0.875rem;
  text-align: left;
  transition: border 0.2s ease, transform 0.2s ease;
}

body[data-theme="dark"] .conversation-card {
  border-bottom: 0.0625rem solid rgba(200, 255, 230, 0.08);
}

.conversation-card.active {
  border-color: transparent;
  background: rgba(37, 211, 102, 0.12);
  transform: none;
}

body[data-theme="dark"] .conversation-card.active {
  background: rgba(18, 140, 126, 0.25);
}

.conversation-card:hover {
  background: rgba(37, 211, 102, 0.08);
}

body[data-theme="dark"] .conversation-card:hover {
  background: rgba(18, 140, 126, 0.2);
}

.avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  background: rgba(37, 211, 102, 0.2);
  font-weight: 700;
}

.conversation-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.conversation-name {
  margin: 0;
  font-weight: 600;
}

.conversation-time {
  font-size: 0.75rem;
  color: var(--muted);
}

.conversation-preview {
  margin: 0.375rem 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

.conversation-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  background: rgba(26, 26, 26, 0.08);
  font-size: 0.6875rem;
  padding: 0.25rem 0.5rem;
  border-radius: 62.4375rem;
}

body[data-theme="dark"] .tag {
  background: rgba(255, 255, 255, 0.1);
  color: #d5e5df;
}

.tag-alert {
  background: rgba(37, 211, 102, 0.2);
  color: var(--accent-dark);
}

.tag-info {
  background: rgba(59, 120, 255, 0.2);
  color: #1f4ed5;
}

.tag-muted {
  background: rgba(26, 26, 26, 0.08);
  color: var(--muted);
}

body[data-theme="dark"] .tag-muted {
  background: rgba(255, 255, 255, 0.12);
  color: #a7b8b1;
}

.tag-online {
  background: rgba(37, 211, 102, 0.18);
  color: var(--accent-dark);
}

.tag-away {
  background: rgba(255, 193, 7, 0.2);
  color: #7a5b00;
}

.profile-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  background: #f4f2ef;
  border-radius: 1.125rem;
  padding: 0.875rem;
}

body[data-theme="dark"] .profile-card {
  background: #0f2a25;
}

.profile-avatar {
  width: 3.125rem;
  height: 3.125rem;
  border-radius: 1.125rem;
  display: grid;
  place-items: center;
  background: rgba(37, 211, 102, 0.18);
  font-weight: 700;
}

.profile-name {
  margin: 0;
  font-weight: 600;
}

.profile-sub {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.info-item {
  background: #f4f2ef;
  border-radius: 0.875rem;
  padding: 0.75rem;
}

body[data-theme="dark"] .info-item {
  background: #0f2a25;
}

.info-item p {
  margin: 0 0 0.375rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.info-item h4 {
  margin: 0;
  font-size: 0.9375rem;
}

.timeline {
  background: #f4f2ef;
  border-radius: 1.125rem;
  padding: 1rem;
  min-height: 0;
}

body[data-theme="dark"] .timeline {
  background: #0f2a25;
}

.timeline h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 0.75rem 1fr;
  gap: 0.625rem;
  align-items: start;
  margin-bottom: 0.75rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 0.375rem;
}

.timeline-title {
  margin: 0;
  font-size: 0.8125rem;
}

.timeline-meta {
  margin: 0.25rem 0 0;
  font-size: 0.6875rem;
  color: var(--muted);
}

.empty-state {
  padding: 1.125rem;
  border-radius: 1rem;
  text-align: center;
  color: var(--muted);
  background: #ffffff;
  border: 0.0625rem dashed var(--stroke);
  font-size: 0.8125rem;
}

body[data-theme="dark"] .empty-state {
  background: #0f241f;
}
