:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    'PingFang SC',
    'Microsoft YaHei',
    sans-serif;
  color: #182d32;
  background: #f5f7f8;
  font-size: 14px;
  --teal: #087e80;
  --line: #e4eaec;
  --muted: #7c8b90;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 29px;
  letter-spacing: -1px;
  margin-bottom: 9px;
}
h2 {
  font-size: 18px;
}
button,
input,
select,
textarea,
a {
  outline-offset: 3px;
}
input,
select,
textarea {
  background: #fff;
  border: 1px solid #dce4e7;
  border-radius: 8px;
  padding: 11px 12px;
  color: #263d43;
  min-width: 0;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #8ad4cf;
}
input:disabled {
  background: #f2f5f6;
}
button {
  transition: background 0.15s;
}
.primary,
.button {
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-weight: 600;
  white-space: nowrap;
}
.primary {
  background: var(--teal);
  color: white;
  border-color: var(--teal);
}
.primary:hover {
  background: #06686a;
}
.button {
  background: #fff;
  color: #3c535b;
}
.button:hover {
  background: #f0f6f6;
}
.text-button,
.icon-btn {
  border: 0;
  background: none;
  color: var(--teal);
  padding: 7px;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
  color: #648b8c;
  margin-bottom: 12px;
}
.shell {
  display: grid;
  grid-template-columns: 228px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: #142d34;
  color: #b9c8cc;
  padding: 30px 19px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 22px;
  font-weight: 650;
  color: white;
  letter-spacing: -0.7px;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #36b6aa;
  display: grid;
  place-items: center;
  color: #102f33;
  font-weight: 800;
  font-size: 22px;
}
.brand small {
  display: block;
  font-size: 10px;
  color: #96b0b6;
  letter-spacing: 2px;
  font-weight: 400;
  margin-top: 4px;
}
.nav-caption {
  font-size: 11px;
  margin: 52px 13px 16px;
  color: #718c96;
  letter-spacing: 1px;
}
.nav-item {
  width: 100%;
  display: flex;
  gap: 14px;
  align-items: center;
  text-align: left;
  border: 0;
  border-radius: 8px;
  padding: 14px 16px;
  background: transparent;
  color: #9fb6be;
  margin: 5px 0;
}
.nav-item span {
  font-size: 20px;
  line-height: 18px;
}
.nav-item.active {
  background: #24454c;
  color: #b5f4e6;
}
.sidebar-note {
  margin-top: auto;
  border: 1px solid #2b454d;
  border-radius: 9px;
  padding: 14px 10px;
  font-size: 11px;
  color: #bdcdd0;
  line-height: 1.5;
}
.sidebar-note p {
  color: #6e909b;
  margin: 7px 0 0 12px;
  font-size: 10px;
}
.status-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: #55bea8;
  border-radius: 50%;
  margin-right: 4px;
}
.operator {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #2b454d;
  padding-top: 22px;
  margin-top: 24px;
  min-width: 0;
}
.operator strong {
  display: block;
  font-size: 12px;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.operator small {
  display: block;
  font-size: 10px;
  color: #78959e;
  margin-top: 5px;
}
.operator .icon-btn {
  color: #b5c6cd;
  margin-left: auto;
  font-size: 20px;
}
.avatar {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  background: #31515b;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #c4e1e0;
  font-size: 12px;
}
.topbar {
  height: 76px;
  border-bottom: 1px solid var(--line);
  background: white;
  padding: 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}
.slash {
  margin: 0 14px;
  color: #b8c7cc;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.connection {
  color: #56827b;
  font-size: 11px;
}
.connection.offline {
  color: #af774b;
}
.workspace {
  padding: 30px 36px 35px;
  max-width: 1700px;
  margin: auto;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 27px;
}
.page-heading > div > p:last-child {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}
.heading-actions {
  display: flex;
  gap: 10px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 27px;
}
.stats > div {
  border: 1px solid var(--line);
  background: white;
  padding: 20px 24px;
  border-radius: 11px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px;
}
.stats span {
  color: #62797f;
  font-size: 12px;
}
.stats strong {
  grid-row: 1/3;
  grid-column: 2;
  font-size: 29px;
  font-weight: 600;
  align-self: center;
  letter-spacing: -1px;
}
.stats small {
  font-size: 10px;
  color: #98a5aa;
}
.room-toolbar,
.section-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 15px;
}
.filters {
  display: flex;
  gap: 10px;
}
.filters select {
  width: 155px;
}
.filters input {
  width: 255px;
}
.conversation-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  min-height: 440px;
  height: calc(100vh - 360px);
}
.room-list-panel {
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.panel-label {
  display: flex;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 600;
  color: #7d8f95;
}
.panel-label span {
  color: var(--teal);
}
#room-list {
  overflow: auto;
  flex: 1;
}
.room-card {
  width: 100%;
  background: white;
  border: 0;
  border-bottom: 1px solid #eff3f4;
  padding: 18px 19px;
  text-align: left;
  display: block;
  border-left: 3px solid transparent;
}
.room-card:hover {
  background: #f5faf9;
}
.room-card.selected {
  background: #edf7f5;
  border-left-color: #249a8e;
}
.room-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.room-card strong {
  font-size: 13px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.room-card .project-tag {
  font-size: 9px;
  color: #56867e;
  border: 1px solid #daeae5;
  padding: 3px 5px;
  border-radius: 4px;
  white-space: nowrap;
}
.room-card p {
  font-size: 10px;
  color: #98a6aa;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 10px 0 0;
  white-space: nowrap;
}
.pagination {
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  font-size: 11px;
}
.pagination .text-button {
  font-size: 11px;
}
.conversation-panel {
  min-height: 0;
}
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  min-height: 200px;
  padding: 30px;
  color: #99a6ab;
}
.empty-icon {
  font-size: 30px;
  background: #f0f6f5;
  color: #94b4ae;
  width: 65px;
  height: 65px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
}
.empty h3 {
  font-size: 15px;
  color: #667b80;
  margin-bottom: 10px;
}
.empty p {
  font-size: 12px;
  line-height: 1.9;
  margin-bottom: 0;
}
#conversation {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.conversation-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}
.conversation-header h2 {
  font-size: 15px;
  margin: 0 0 6px;
}
.conversation-header p {
  font-size: 10px;
  color: #8b9fa3;
  margin: 0;
  overflow-wrap: anywhere;
}
.badge {
  font-size: 10px;
  padding: 5px 8px;
  background: #edf6f3;
  color: #468676;
  border-radius: 5px;
  white-space: nowrap;
}
.messages {
  padding: 24px 28px;
  overflow: auto;
  flex: 1;
  min-height: 0;
  background: #fcfdfd;
  display: flex;
  flex-direction: column;
  gap: 21px;
}
.message-row {
  display: flex;
  gap: 11px;
  align-items: flex-start;
}
.message-avatar {
  background: #e5efec;
  color: #5c8e80;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 11px;
  flex-shrink: 0;
}
.message-row.staff .message-avatar {
  background: #e2eff9;
  color: #688fa7;
}
.message-meta {
  font-size: 10px;
  color: #71868c;
  display: flex;
  gap: 12px;
  margin: 0 0 8px;
  flex-wrap: wrap;
  overflow-wrap: anywhere;
}
.message-meta time {
  color: #a7b3b6;
}
.message-bubble {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f1f5f4;
  padding: 12px 15px;
  border-radius: 0 9px 9px 9px;
  line-height: 1.8;
  font-size: 12px;
  max-width: 620px;
}
.staff .message-bubble {
  background: #edf4f9;
}
.message-content {
  min-width: 0;
}
.attachment {
  display: block;
  font-size: 11px;
  margin-top: 8px;
  color: var(--teal);
}
.conversation-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #9caaaf;
}
.conversation-footer .text-button {
  font-size: 11px;
  white-space: nowrap;
}
.section-toolbar h2 {
  margin: 4px 0 6px;
}
.section-toolbar p {
  font-size: 12px;
  margin: 0;
}
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
th {
  background: #f9fbfb;
  color: #84969c;
  font-weight: 500;
  padding: 16px 20px;
  white-space: nowrap;
}
td {
  padding: 19px 20px;
  border-top: 1px solid #edf1f2;
  max-width: 340px;
  overflow-wrap: anywhere;
}
.footnote {
  font-size: 11px;
  color: #93a1a5;
  line-height: 1.8;
}
.table-empty {
  text-align: center;
  padding: 45px;
  color: #94a5ab;
}
.demo-banner {
  padding: 12px 16px;
  background: #fff6df;
  border: 1px solid #eee0b9;
  color: #9c7b38;
  border-radius: 8px;
  font-size: 12px;
  margin-bottom: 20px;
}
#toast {
  background: #e9f4f0;
  color: #3f7f6c;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 18px;
  font-size: 12px;
  white-space: pre-line;
  max-height: 140px;
  overflow: auto;
}
#toast.error {
  background: #fff0ed;
  color: #b25544;
}
.error {
  color: #b25544;
  font-size: 12px;
  line-height: 1.6;
}
.login-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-story {
  padding: 55px 65px;
  background: #142d34;
  color: #8faeb5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.login-story h1 {
  font-size: 52px;
  line-height: 1.5;
  color: #f0f7f5;
  letter-spacing: -2px;
  margin-top: 20px;
}
.login-story p {
  line-height: 1.9;
}
.login-story .eyebrow {
  color: #65b9ab;
}
.login-form-wrap {
  display: grid;
  place-items: center;
  padding: 50px;
}
.login-form-wrap form {
  width: 100%;
  max-width: 350px;
}
.login-form-wrap h2 {
  font-size: 27px;
  margin-bottom: 12px;
}
.login-form-wrap label {
  margin-top: 24px;
}
.login-form-wrap .primary {
  width: 100%;
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  padding: 13px 18px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 12px;
  color: #61777e;
  margin: 18px 0;
}
.notice {
  font-size: 11px;
  line-height: 1.9;
  color: #9c7b38;
  margin-top: 20px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 15px;
  max-width: 480px;
  width: calc(100% - 36px);
  padding: 28px;
  box-shadow: 0 24px 80px #142d3430;
  color: #263d43;
}
dialog::backdrop {
  background: #142d3466;
}
dialog p {
  font-size: 12px;
  line-height: 1.8;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
@media (min-width: 1550px) {
  .conversation-layout {
    grid-template-columns: 380px minmax(0, 1fr);
  }
}
@media (max-width: 1050px) {
  .shell {
    grid-template-columns: 190px 1fr;
  }
  .sidebar {
    padding: 25px 14px;
  }
  .workspace {
    padding: 25px 22px;
  }
  .topbar {
    padding: 0 22px;
  }
  .conversation-layout {
    grid-template-columns: 270px minmax(0, 1fr);
  }
  .conversation-footer span {
    display: none;
  }
  .stats > div {
    padding: 16px;
  }
  .room-card {
    padding: 16px 12px;
  }
}
@media (max-width: 760px) {
  .shell {
    display: block;
  }
  .sidebar {
    height: auto;
    position: static;
    padding: 15px;
  }
  .brand {
    font-size: 17px;
  }
  .brand-mark {
    height: 30px;
    width: 30px;
  }
  .sidebar nav {
    display: flex;
    margin-top: 14px;
  }
  .nav-item {
    justify-content: center;
    font-size: 12px;
    padding: 10px;
  }
  .nav-caption,
  .sidebar-note,
  .operator {
    display: none;
  }
  .topbar {
    height: 55px;
    padding: 0 16px;
  }
  .top-actions {
    gap: 8px;
  }
  .workspace {
    padding: 20px 14px;
  }
  .stats {
    gap: 8px;
  }
  .stats > div {
    padding: 12px;
    display: block;
  }
  .stats strong {
    display: block;
    margin-top: 8px;
    font-size: 25px;
  }
  .stats small {
    display: none;
  }
  .page-heading {
    gap: 10px;
  }
  .heading-actions {
    flex-direction: column;
  }
  .page-heading h1 {
    font-size: 24px;
  }
  .room-toolbar {
    align-items: stretch;
  }
  .filters {
    flex: 1;
    flex-direction: column;
  }
  .filters input,
  .filters select {
    width: 100%;
  }
  .room-toolbar > button {
    align-self: center;
  }
  .conversation-layout {
    display: flex;
    flex-direction: column;
    height: auto;
  }
  .room-list-panel {
    max-height: 260px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .conversation-panel {
    height: 500px;
  }
  .messages {
    padding: 20px 16px;
  }
  .login-layout {
    display: block;
  }
  .login-story {
    min-height: 240px;
    padding: 25px;
  }
  .login-story h1 {
    font-size: 28px;
    margin: 22px 0 0;
  }
  .login-story > div > p,
  .login-story > .muted {
    display: none;
  }
  .login-form-wrap {
    padding: 35px 25px;
  }
  .section-toolbar {
    align-items: flex-start;
  }
  th,
  td {
    padding: 14px 12px;
  }
}

/* Fit the full product domain in both desktop sidebar widths. */
.sidebar .brand {
  font-size: 15px;
  letter-spacing: -0.4px;
  gap: 9px;
  white-space: nowrap;
}
.sidebar .brand-mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  font-size: 19px;
}
.sidebar .brand small {
  font-size: 10px;
  letter-spacing: 2px;
}

.integration-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px;
  max-width: 1050px;
}
.integration-card h3 {
  font-size: 15px;
  margin-top: 16px;
}
.integration-card p,
.integration-card li {
  line-height: 1.9;
  color: #5d737b;
  overflow-wrap: anywhere;
}
.integration-card li {
  margin-bottom: 16px;
}
fieldset {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}
legend {
  font-size: 12px;
  color: #61777e;
}
.grant-option {
  flex-direction: row;
  align-items: center;
  margin: 10px 0;
  gap: 10px;
}
.grant-option input {
  width: 16px;
  height: 16px;
}

.doc-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 20px;
}
.doc-nav a {
  color: var(--accent, #087f83);
  background: white;
  border: 1px solid #dce5e8;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
}
#integration-view .integration-card {
  margin-bottom: 20px;
  scroll-margin-top: 20px;
  min-width: 0;
}
#integration-view h4 {
  margin: 24px 0 12px;
}
#integration-view p,
#integration-view li {
  line-height: 1.85;
}
#integration-view td {
  white-space: normal;
  vertical-align: top;
  min-width: 160px;
  line-height: 1.7;
}
#integration-view td:first-child {
  font-weight: 600;
}
.doc-code {
  position: relative;
  max-width: 100%;
  overflow-x: auto;
  background: #102b33;
  color: #e2f2f4;
  padding: 52px 20px 20px;
  border-radius: 10px;
  line-height: 1.75;
  font-size: 13px;
  tab-size: 2;
}
.doc-code code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.doc-copy {
  position: absolute;
  top: 10px;
  left: 16px;
  background: #23444e;
  color: white;
  border: 1px solid #48616a;
  border-radius: 6px;
  padding: 5px 12px;
  cursor: pointer;
}

#conversation-tools {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.message-translation {
  margin-top: 8px;
  padding: 10px;
  border-left: 3px solid #7b91aa;
  white-space: pre-wrap;
  background: #f1f5f9;
}
#members-view input[type='checkbox'] {
  width: 18px;
  height: 18px;
}
#members-view table {
  width: 100%;
}

/* Toolbar controls are inline; form labels elsewhere remain stacked. */
#members-view .section-toolbar {
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
}
#members-view .section-toolbar h2 {
  margin: 0 auto 0 0;
}
#members-view .section-toolbar label,
#conversation-tools label {
  flex-direction: row;
  align-items: center;
  flex: 0 0 auto;
  white-space: nowrap;
  margin: 0;
  gap: 8px;
}
#member-size {
  width: 80px;
  padding: 8px 10px;
}
#members-view .section-toolbar button,
#member-selection {
  flex-shrink: 0;
  white-space: nowrap;
}

/* Partner workspace: indigo, lavender and a separate card-based sign-in. */
body.partner-theme {
  --teal: #6550b9;
  --line: #e6e2f0;
  --muted: #77758b;
  color: #29263d;
  background: #f6f5fa;
  accent-color: #6550b9;
}
.partner-theme .primary:hover {
  background: #514096;
}
.partner-theme .button:hover {
  background: #f0edf9;
}
.partner-theme input:focus,
.partner-theme select:focus,
.partner-theme textarea:focus {
  outline-color: #b9a7ef;
}
.partner-theme .sidebar {
  background: #252039;
  color: #c8c1da;
}
.partner-theme .brand-mark {
  background: #d2c3ff;
  color: #392866;
  border-radius: 50%;
}
.partner-theme .brand small {
  color: #bcb0d7;
}
.partner-theme .nav-caption {
  color: #aaa0c0;
}
.partner-theme .nav-item {
  color: #c1b7d5;
}
.partner-theme .nav-item.active,
.partner-theme .nav-item:hover {
  background: #403453;
  color: #f0eaff;
}
.partner-theme .sidebar-note {
  color: #b4a9c8;
}
.partner-theme .status-dot {
  background: #c6b0ff;
}
.partner-theme .avatar {
  background: #504169;
  color: #f0eaff;
}
.partner-theme .eyebrow {
  color: #7c64b3;
}
.partner-theme .room-card.selected {
  background: #f2eefb;
  border-color: #b5a0df;
}
.partner-theme .project-tag,
.partner-theme .badge {
  background: #f0ecf8;
  color: #6a519e;
}
.partner-theme .message-avatar {
  background: #ece6f8;
  color: #7056a3;
}
.partner-theme .staff .message-avatar {
  background: #66528d;
  color: #fff;
}
.partner-theme .staff .message-bubble {
  background: #eee8f8;
}
.partner-theme .connection {
  color: #6d5897;
}
.partner-theme .connection.offline {
  color: #a57839;
}
.partner-theme .login-layout {
  min-height: 100vh;
  grid-template-columns: minmax(0, 1fr) 440px;
  align-items: center;
  gap: 72px;
  padding: 72px max(6vw, 28px);
  background:
    radial-gradient(ellipse at 15% 15%, #524074 0, transparent 55%),
    linear-gradient(125deg, #29213e, #191725);
}
.partner-theme .login-story {
  align-self: stretch;
  background: transparent;
  padding: 0;
  min-height: 530px;
  color: #c2b9d3;
}
.partner-theme .login-story .brand {
  font-size: 24px;
}
.partner-theme .login-story h1 {
  font-size: clamp(34px, 3.7vw, 60px);
  line-height: 1.35;
  letter-spacing: -1px;
  margin: 20px 0 24px;
  color: #faf7ff;
}
.partner-theme .login-story .eyebrow {
  color: #cbb5ff;
}
.partner-theme .login-story > div > p:not(.eyebrow) {
  font-size: 16px;
  line-height: 2;
}
.partner-theme .login-story > .muted {
  color: #b9accd;
  font-size: 12px;
  letter-spacing: 2px;
}
.partner-theme .login-form-wrap {
  background: #fff;
  padding: 48px 40px;
  border-radius: 24px;
  box-shadow: 0 24px 80px #100c243d;
  border: 1px solid #ffffff66;
}
.partner-theme .login-form-wrap form {
  max-width: none;
}
.partner-theme .login-form-wrap h2 {
  font-size: 25px;
  letter-spacing: -0.5px;
}
.partner-theme .login-form-wrap .muted {
  line-height: 1.8;
  font-size: 13px;
}
.partner-theme .login-form-wrap label {
  color: #625b75;
  font-size: 13px;
}
.partner-theme .login-form-wrap input {
  background: #faf9fd;
  border-color: #e2dced;
  padding: 14px;
}
.partner-theme .login-form-wrap .primary {
  padding: 15px 18px;
  margin-top: 20px;
}
@media (max-width: 1000px) {
  .partner-theme .login-layout {
    gap: 36px;
    grid-template-columns: minmax(0, 1fr) 390px;
    padding: 40px 28px;
  }
  .partner-theme .login-form-wrap {
    padding: 36px 28px;
  }
}
@media (max-width: 760px) {
  .partner-theme .login-layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 28px 20px;
    gap: 28px;
  }
  .partner-theme .login-story {
    min-height: 0;
    gap: 28px;
  }
  .partner-theme .login-story h1 {
    font-size: 32px;
    margin: 12px 0 0;
  }
  .partner-theme .login-story .eyebrow {
    display: block;
    font-size: 9px;
  }
  .partner-theme .login-story > .muted {
    display: none;
  }
  .partner-theme .login-form-wrap {
    width: 100%;
    max-width: 460px;
    align-self: center;
    padding: 30px 24px;
    border-radius: 18px;
  }
  .partner-theme .login-form-wrap h2 {
    font-size: 23px;
  }
}

/* The signed-in partner workspace has its own light navigation and masthead. */
.partner-theme .shell {
  background: #f3f0fa;
}
.partner-theme .shell .sidebar {
  background: #fff;
  color: #514765;
  border-right: 1px solid #e5ddef;
  padding-top: 26px;
}
.partner-theme .shell .sidebar .brand {
  color: #382653;
}
.partner-theme .shell .sidebar .brand small {
  color: #867397;
}
.partner-theme .shell .sidebar .brand-mark {
  background: #7251a8;
  color: #fff;
  border-radius: 12px;
}
.partner-theme .shell .nav-caption {
  color: #95849f;
}
.partner-theme .shell .nav-item {
  color: #766585;
  border-radius: 12px;
  padding-top: 15px;
  padding-bottom: 15px;
}
.partner-theme .shell .nav-item:hover {
  color: #56377d;
  background: #f5f0fc;
}
.partner-theme .shell .nav-item.active {
  background: #ede3fc;
  color: #633699;
  box-shadow: inset 4px 0 #8553bd;
  font-weight: 700;
}
.partner-theme .shell .sidebar-note {
  background: #faf7fe;
  border-color: #e8def3;
  color: #6e578a;
}
.partner-theme .shell .sidebar-note p,
.partner-theme .shell .operator small {
  color: #8e7d9f;
}
.partner-theme .shell .operator {
  border-color: #e8def3;
}
.partner-theme .shell .operator .icon-btn {
  color: #765993;
}
.partner-theme .shell .avatar {
  background: #ede3fa;
  color: #79509e;
  border-radius: 10px;
}
.partner-theme .shell .topbar {
  background: #684393;
  border-bottom: 0;
  color: #fff;
  min-height: 76px;
}
.partner-theme .shell .topbar .muted {
  color: #e6d6f5;
}
.partner-theme .shell .topbar .slash {
  color: #c7acdf;
}
.partner-theme .shell .topbar .text-button,
.partner-theme .shell .topbar .connection {
  color: #fff;
}
.partner-theme .shell .topbar .connection.offline {
  color: #ffe0a3;
}
.partner-theme .shell .workspace {
  padding-top: 26px;
}
.partner-theme .shell .page-heading {
  background: #e9def7;
  border: 1px solid #decdee;
  border-radius: 18px;
  padding: 26px 28px;
  margin-bottom: 20px;
}
.partner-theme .shell .page-heading h1 {
  color: #462565;
}
.partner-theme .shell .page-heading .eyebrow {
  color: #8253a2;
  letter-spacing: 1.5px;
}
.partner-theme .shell .page-heading > div > p:last-child {
  color: #816991;
}
.partner-theme .shell .stats {
  gap: 0;
  background: #fff;
  border: 1px solid #e6deee;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 24px;
}
.partner-theme .shell .stats > div {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 18px 24px;
}
.partner-theme .shell .stats > div + div {
  border-left: 1px solid #ece5f2;
}
.partner-theme .shell .stats strong {
  color: #7950a0;
}
.partner-theme .shell .stats span {
  color: #796887;
}
.partner-theme .shell .stats small {
  color: #a08dab;
}
.partner-theme .shell .conversation-layout {
  border-radius: 16px;
  border-color: #e1d5ec;
}
.partner-theme .shell .panel-label {
  background: #f7f3fc;
  color: #79628d;
}
.partner-theme .shell .room-card.selected {
  background: #ede3fa;
  border-color: #bc9bda;
}
.partner-theme .shell .conversation-header {
  background: #fcfaff;
  border-bottom-color: #e9e0f0;
}
.partner-theme .shell th {
  background: #f1eaf9;
  color: #795b8e;
}
.partner-theme .shell .section-toolbar h2 {
  color: #563572;
}
@media (max-width: 760px) {
  .partner-theme .shell .sidebar {
    padding: 16px;
    border-right: 0;
  }
  .partner-theme .shell .topbar {
    min-height: 62px;
    height: auto;
    padding: 12px 16px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .partner-theme .shell .page-heading {
    padding: 20px 16px;
    border-radius: 14px;
  }
  .partner-theme .shell .page-heading .eyebrow {
    letter-spacing: 0;
    font-size: 9px;
  }
  .partner-theme .shell .stats > div {
    padding: 14px 12px;
  }
}

#integration-key-output {
  width: 100%;
  min-height: 80px;
  margin-top: 12px;
}
#staff-view .section-toolbar {
  flex-wrap: wrap;
}
#staff-view .section-toolbar p {
  max-width: 620px;
  line-height: 1.7;
}

#room-dialog {
  width: min(720px, calc(100% - 32px));
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
}
.member-picker {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  min-width: 0;
}
#invite-search,
#permissions-search {
  width: 100%;
}
.inline-check {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
}
.inline-check input[type='checkbox'],
.invite-choice input[type='checkbox'] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
#invite-list {
  max-height: 200px;
  overflow-y: auto;
}
.invite-choice {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.invite-choice > span {
  flex: 1;
  min-width: 0;
}
.invite-choice .inline-check {
  flex-shrink: 0;
  margin: 0;
}
#invite-selected {
  max-height: 180px;
  overflow-y: auto;
}
.picker-pages {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 12px 0;
  font-size: 12px;
}
#member-search {
  flex: 1 1 240px;
}
