:root {
  --green: #008675;
  --fiber-dark: #123f4a;
  --fiber-orange: #f59b32;
  --fiber-mint: #e8f6f2;
}

html, body {
  height: 100%;
  overscroll-behavior: none;
}

body.workspace-open {
  overflow: hidden;
}

main {
  min-height: 0;
  overflow: hidden;
  box-shadow: 0 18px 55px rgb(18 63 74 / 12%);
}

.rail,
.inbox,
.chat {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.conversation-list,
.messages {
  min-height: 0;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

#chat-content {
  min-height: 0;
  overflow: hidden;
}

.brand-mark {
  width: auto;
  min-width: 94px;
  height: 48px;
  padding: 0 12px;
  display: flex;
  gap: 1px;
  align-items: center;
  justify-content: center;
  border-radius: 14px 14px 14px 4px;
  background: linear-gradient(135deg, var(--fiber-dark), var(--green));
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.5px;
  box-shadow: 0 8px 20px rgb(0 134 117 / 22%);
}

.brand-mark b {
  color: #ffd08d;
}

.brand-mark.compact {
  min-width: 54px;
  width: 54px;
  padding: 0 6px;
  font-size: 14px;
}

.rail {
  background: linear-gradient(180deg, #f5faf9, #edf4f5);
  border-color: #dfe9e9;
}

.rail-label,
.tag {
  font-weight: 700;
}

.inbox header h1 {
  color: var(--fiber-dark);
}

.conversation.active {
  background: linear-gradient(90deg, #e5f5f1, #f5faf9);
  box-shadow: inset 4px 0 var(--green);
}

[dir="rtl"] .conversation.active {
  box-shadow: inset -4px 0 var(--green);
}

.inbox footer.connected .offline-dot {
  background: #16a56f;
  box-shadow: 0 0 0 4px rgb(22 165 111 / 12%);
}

.demo-banner {
  border-bottom: 1px solid #f2dfab;
  font-weight: 600;
}

.demo-banner.connected {
  color: #075b48;
  background: #dcf5e9;
  border-bottom-color: #b9e6d2;
}

.empty-icon {
  width: 108px;
  height: 108px;
  display: grid;
  place-items: center;
  border-radius: 30px 30px 30px 8px;
  background: linear-gradient(145deg, var(--fiber-dark), var(--green));
  color: white;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -2px;
  box-shadow: 0 18px 44px rgb(0 134 117 / 20%);
}

.empty-icon::first-letter {
  color: #ffd08d;
}

.chat-header {
  border-bottom: 1px solid #dfe8e8;
}

.messages {
  background-color: #f4f1e9;
  background-image: radial-gradient(rgb(0 134 117 / 10%) .8px, transparent .8px);
}

.employee-editor,
.password-editor {
  margin-top: 10px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.employee-editor summary,
.password-editor summary {
  color: var(--green);
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
}

.inline-edit-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
  padding: 14px;
  border-radius: 12px;
  background: var(--fiber-mint);
}

.inline-edit-form label {
  color: var(--fiber-dark);
  font-size: 12px;
}

.inline-edit-form input:not([type="checkbox"]),
.inline-edit-form select {
  width: 100%;
  margin-top: 6px;
  padding: 10px;
  border: 1px solid #cbdcda;
  border-radius: 8px;
  background: white;
}

.edit-toggles {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.check-label {
  display: flex;
  align-items: center;
  gap: 7px;
}

.check-label input {
  accent-color: var(--green);
}

.inline-edit-form > button,
.employee-edit-status {
  align-self: end;
}

.employee-edit-status {
  grid-column: span 2;
  margin: 0;
  color: #a02020;
  font-size: 13px;
}

.user-row,
.user-details {
  width: 100%;
}

@media (max-width: 850px) {
  .inline-edit-form {
    grid-template-columns: 1fr;
  }

  .edit-toggles,
  .employee-edit-status {
    grid-column: 1;
  }
}
