:root {
  --sidebar: #263b4c;
  --sidebar-dark: #203342;
  --sidebar-active: #1f3344;
  --accent: #17b79e;
  --page-bg: #f1f1f1;
  --panel-bg: #ffffff;
  --border: #e6e6e6;
  --text: #555555;
  --muted: #9a9a9a;
  --heading: #5d5d5d;
  --row: #fafafa;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body,
#app {
  height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--page-bg);
  font-size: 16px;
}

button,
input,
select,
textarea {
  font: inherit;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 265px minmax(0, 1fr);
}

.sidebar {
  background: linear-gradient(145deg, var(--sidebar-dark), var(--sidebar));
  color: #d7e0e6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.user-block {
  padding: 48px 30px 28px;
  min-height: 188px;
  background: rgba(12, 29, 42, 0.22);
}

.user-email {
  color: #ffffff;
  font-weight: 700;
}

.tiny-caret {
  margin: 8px 0;
  color: #c6d3dc;
  font-size: 13px;
}

.user-role {
  color: #aab7c0;
  margin-bottom: 26px;
}

.product-name {
  color: #ffffff;
  font-size: 24px;
  font-weight: 700;
  padding-left: 18px;
}

.sidebar-nav {
  padding-top: 40px;
}

.nav-item {
  position: relative;
  width: 100%;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 0;
  padding: 0 30px;
  color: #b9c6cf;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-weight: 700;
}

.nav-item:hover,
.nav-item.active {
  color: #ffffff;
  background: var(--sidebar-active);
}

.nav-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 5px;
  height: 100%;
  background: var(--accent);
}

.nav-icon {
  width: 18px;
  color: #dce7ed;
  text-align: center;
  font-size: 18px;
}

.sidebar-settings {
  margin-top: auto;
  padding: 18px 24px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.settings-button {
  width: 100%;
  height: 46px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 4px;
  padding: 0 12px;
  color: #c8d4dc;
  background: rgba(12, 29, 42, 0.18);
  cursor: pointer;
  font-weight: 700;
  text-align: left;
}

.settings-button:hover {
  color: #ffffff;
  background: var(--sidebar-active);
}

.nav-icon-settings::before {
  content: "\2699";
}

.main-shell {
  min-width: 0;
}

.topbar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px 0 14px;
  background: #ffffff;
  border-bottom: 1px solid #eeeeee;
}

.language-group {
  display: flex;
  align-items: center;
  gap: 28px;
}

.language-label {
  font-weight: 700;
  color: #606060;
}

.topbar .select {
  min-width: 210px;
  border: 0;
  background-color: #ffffff;
}

.logout {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  color: #9b9b9b;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
}

.content {
  padding: 28px 30px 56px;
}

.language-context {
  height: 0;
  overflow: hidden;
}

.panel {
  background: var(--panel-bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 26px;
}

h1,
h2 {
  margin: 0;
  color: var(--heading);
  font-weight: 500;
}

h1 {
  font-size: 30px;
  line-height: 1.2;
  margin-bottom: 12px;
}

h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 22px 0 12px;
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.btn {
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  min-height: 39px;
  padding: 0 16px;
  font-weight: 700;
}

.btn-primary {
  color: #ffffff;
  background: var(--accent);
}

.btn-secondary {
  color: var(--text);
  background: #eeeeee;
}

.btn-compact {
  min-height: 28px;
  padding: 0 10px;
  font-size: 14px;
}

.field {
  width: 100%;
  height: 42px;
  border: 1px solid var(--border);
  color: var(--text);
  background: #ffffff;
  padding: 0 14px;
  outline-color: var(--accent);
}

.select {
  appearance: auto;
}

.wide-filter {
  max-width: 620px;
}

.hint {
  margin: 8px 0 26px;
  color: #666666;
}

.label {
  display: block;
  margin: 12px 0 8px;
  color: var(--heading);
  font-size: 20px;
  font-weight: 700;
}

.user-list {
  max-width: 1080px;
}

.user-row {
  min-height: 55px;
  display: grid;
  grid-template-columns: 42px 250px 210px 70px minmax(220px, 1fr) 90px;
  align-items: center;
  gap: 12px;
  padding: 0 8px;
  background: #ffffff;
}

.user-row:nth-child(odd) {
  background: var(--row);
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: #587a94;
  font-size: 11px;
  font-weight: 700;
}

.badge {
  justify-self: start;
  min-width: 58px;
  border-radius: 4px;
  padding: 5px 8px;
  color: #ffffff;
  background: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.chat-layout {
  display: grid;
  grid-template-columns: 400px minmax(640px, 1fr);
  gap: 34px;
  min-height: calc(100vh - 128px);
}


.chat-layout-empty {
  grid-template-columns: 400px;
}
.chat-connect-page {
  min-height: calc(100vh - 128px);
  display: grid;
  place-items: center;
}

.chat-connect-page .btn {
  min-width: 190px;
  min-height: 54px;
  background: #20b95f;
  font-size: 18px;
  text-transform: lowercase;
  box-shadow: 0 10px 24px rgba(32, 185, 95, 0.22);
}

.chat-connect-page .btn:hover {
  background: #19a653;
}

.room-column {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.room-column .panel {
  min-height: 160px;
  border-bottom: 0;
}

.room-column .panel:last-child {
  border-bottom: 1px solid var(--border);
}


.instance-selector .label {
  font-size: 16px;
  margin-top: 22px;
}

.instance-selector .select {
  height: 40px;
  background-color: #ffffff;
}
.room-item {
  height: 45px;
  display: flex;
  align-items: center;
  padding-left: 10px;
  background: #fafafa;
  border: 1px solid #f2f2f2;
}

.active-room {
  color: #6b6b6b;
}


.static-room-list {
  margin-top: 20px;
}

.room-button {
  width: 100%;
  border: 1px solid #f2f2f2;
  color: #666666;
  text-align: left;
  cursor: pointer;
}

.room-button:hover,
.room-button.active-room {
  background: #f4f4f4;
  color: #4f4f4f;
}

.room-list-empty {
  margin-top: 18px;
}
.chat-main {
  padding: 0;
}

.chat-shell {
  min-height: calc(100vh - 128px);
  display: grid;
  grid-template-rows: 56px 1fr 60px;
}

.chat-tabs {
  display: flex;
  align-items: stretch;
  min-width: 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
  background: #fbfbfb;
}

.chat-tab {
  width: max-content;
  min-width: 135px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 30px;
  border: 0;
  border-right: 1px solid var(--border);
  color: #8a8a8a;
  background: transparent;
  font-weight: 700;
  cursor: pointer;
}

.chat-tab.active {
  color: #555555;
  background: #ffffff;
  border-top: 1px solid var(--border);
}

.chat-room-body {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(360px, 1fr) 320px;
  border-bottom: 1px solid var(--border);
}

.chat-stream {
  min-height: 0;
  padding: 22px 24px;
  color: #777777;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
}

.chat-room-title {
  margin: 0 0 18px;
  color: #777777;
  font-weight: 700;
}

.chat-empty-message {
  margin-top: 0;
}

.chat-message-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.chat-message-line {
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

.chat-message-sender {
  color: #4f4f4f;
  font-weight: 700;
}

.chat-message-text {
  color: #666666;
}

.empty-chat-stream {
  display: flex;
  align-items: center;
  justify-content: center;
}
.message-bar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 92px 175px;
}

.message-bar .field {
  border: 0;
  border-right: 1px solid var(--border);
  height: 60px;
}

.message-bar .btn {
  height: 60px;
  border-radius: 0;
}

.autoscroll {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.member-panel {
  padding: 0;
  border-left: 1px solid var(--border);
}

.member-panel .btn {
  float: right;
  margin: 4px 10px 0 0;
}

.member-panel .field {
  clear: both;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  margin-top: 28px;
}

.member-panel h2 {
  padding-left: 14px;
}

.side-list {
  padding: 0 14px 18px;
  color: #777777;
}

.split-page {
  display: grid;
  grid-template-columns: 400px minmax(0, 1fr);
  gap: 34px;
  min-height: calc(100vh - 128px);
}

.narrow-panel {
  min-height: calc(100vh - 128px);
}

.form-panel {
  max-width: 690px;
}

.report-page {
  grid-template-columns: 420px minmax(0, 1fr);
}

.report-filter-panel h2 {
  margin-top: 28px;
}

.report-filter-form .field {
  margin-bottom: 8px;
}

.report-filter-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.report-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
}

.report-list-header h2 {
  margin: 0;
}

.report-resolved-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.report-resolved-toggle input {
  margin: 0;
}
.report-list {
  display: grid;
  gap: 10px;
}

.report-list-item {
  width: 100%;
  display: block;
  border: 1px solid var(--border);
  border-left: 4px solid transparent;
  padding: 12px 14px;
  color: #666666;
  background: #ffffff;
  text-align: left;
  cursor: pointer;
}

.report-list-item.resolved {
  border-left-color: #77b88a;
  background: #edf8ef;
}

.report-list-item.resolved:hover,
.report-list-item.resolved.active {
  background: #e0f2e4;
}

.report-list-resolved,
.report-resolved-status {
  margin-top: 6px;
  color: #39764a;
  font-size: 14px;
  font-weight: 700;
}
.report-list-item:hover,
.report-list-item.active {
  border-left-color: var(--accent);
  background: var(--row);
}

.report-list-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--heading);
}

.report-list-title span {
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

.report-list-meta,
.report-list-room,
.report-list-reporter,
.report-id {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.report-detail-panel {
  min-width: 0;
}

.report-content {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) 230px;
  gap: 34px;
  align-items: start;
  padding-top: 18px;
}

.evidence-card {
  border: 1px solid var(--border);
  padding: 18px 24px;
  min-width: 0;
}

.evidence-card p {
  margin: 8px 0;
}

.report-field span {
  overflow-wrap: anywhere;
}

.report-message {
  margin: 0;
  padding: 16px;
  border: 1px solid var(--border);
  background: var(--row);
  color: var(--text);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.45;
}

.actions-panel {
  border-left: 1px solid var(--border);
  min-height: 430px;
  padding-left: 20px;
}

.actions-panel .btn {
  display: block;
  width: max-content;
  margin-bottom: 16px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.data-table th,
.data-table td {
  padding: 8px 10px 8px 0;
  text-align: left;
  vertical-align: top;
  color: #666666;
}

.data-table th {
  color: var(--heading);
  font-weight: 700;
}

.data-table tbody tr.table-row-band-0 {
  background: #ffffff;
}

.data-table tbody tr.table-row-band-1 {
  background: #fbfdfc;
}

.data-table tbody tr.table-row-band-2 {
  background: #f7fbfa;
}

.data-table tbody tr.table-row-band-3 {
  background: #f3f8f7;
}

.data-table tbody tr.table-row-band-4 {
  background: #eff6f4;
}

.data-table tbody tr:hover {
  background: #eaf5f2;
}

.pagination-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  color: #6f7b83;
}

.pagination-total {
  margin-right: auto;
}

.pagination-page {
  min-width: 86px;
  text-align: center;
  color: var(--heading);
  font-weight: 700;
}

.pagination-jump {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pagination-jump input {
  width: 72px;
  height: 32px;
  padding: 4px 8px;
}

.gs-monitoring-filter-groups {
  display: grid;
  gap: 10px;
  margin: 4px 0 16px;
}

.gs-monitoring-filter-groups .gs-monitoring-filters {
  margin: 0;
}
.gs-monitoring-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  margin: 4px 0 16px;
  padding: 12px;
  background: #f7fbfa;
  border: 1px solid var(--border);
}

.gs-monitoring-date-field {
  display: grid;
  gap: 6px;
  color: var(--heading);
  font-weight: 700;
}

.gs-monitoring-date-field input {
  min-width: 160px;
}

.gs-monitoring-copy-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--heading);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.gs-monitoring-copy-value {
  display: inline;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  overflow-wrap: anywhere;
  cursor: copy;
}

.gs-monitoring-copy-value:hover {
  color: var(--primary);
  text-decoration: underline;
}
.word-filter-layout {
  display: grid;
  grid-template-columns: 190px 200px auto;
  align-items: start;
  gap: 96px;
  padding-top: 24px;
}

.word-box {
  width: 185px;
  height: 760px;
  border: 1px solid #bfbfbf;
  resize: none;
}

.inline-fields {
  display: grid;
  grid-template-columns: 125px 1fr;
}

.filter-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0 24px;
}

.filter-line .field {
  width: 220px;
}

.empty {
  margin: 0;
  color: #777777;
}

.ban-modal {
  width: min(100% - 32px, 520px);
}

.ban-target {
  margin: 0 0 18px;
  color: var(--text);
  overflow-wrap: anywhere;
}

.ban-channel-scopes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  margin: 8px 0 14px;
}

.ban-channel-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-size: 14px;
  text-transform: capitalize;
}

.ban-channel-all {
  grid-column: 1 / -1;
  font-weight: 700;
}

.ban-channel-option input {
  margin: 0;
}

.ban-resolve-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-size: 14px;
  margin: 0 0 6px;
}

.ban-resolve-option input {
  margin: 0;
}
.ban-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.22);
  z-index: 20;
}

.modal {
  width: min(420px, calc(100vw - 32px));
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
  padding: 24px;
}

.password-modal {
  width: min(460px, calc(100vw - 32px));
}

.modal-hint {
  margin: 4px 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.password-modal .label {
  font-size: 16px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  background: var(--page-bg);
}

.login-card {
  width: min(420px, 100%);
  padding: 34px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.login-brand {
  margin-bottom: 18px;
  color: var(--heading);
  font-size: 24px;
  font-weight: 700;
}

.login-card h1 {
  margin-bottom: 20px;
}

.login-card .field {
  margin-bottom: 8px;
}

.password-field {
  position: relative;
  margin-bottom: 8px;
}

.password-field .field {
  margin-bottom: 0;
  padding-right: 52px;
}

.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  width: 34px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
}

.password-toggle:hover,
.password-toggle.active {
  background: #eef8f6;
}

.password-eye {
  position: relative;
  width: 20px;
  height: 12px;
  border: 2px solid #8a989c;
  border-radius: 50%;
}

.password-eye::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8a989c;
  transform: translate(-50%, -50%);
}

.password-toggle.active .password-eye {
  border-color: var(--accent);
}

.password-toggle.active .password-eye::after {
  background: var(--accent);
}

.login-card .btn {
  width: 100%;
  margin-top: 22px;
}

.login-help,
.login-message {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.login-message {
  color: var(--accent);
  font-weight: 700;
}

.template-link {
  width: 100%;
  margin-top: 14px;
  border: 0;
  background: transparent;
  color: var(--heading);
  cursor: pointer;
  text-decoration: underline;
}

@media (max-width: 1200px) {
  .app-shell {
    grid-template-columns: 235px minmax(0, 1fr);
  }

  .chat-layout,
  .split-page {
    grid-template-columns: 1fr;
  }

  .chat-layout {
    gap: 20px;
  }

  .chat-room-body {
    grid-template-columns: 1fr;
  }

  .room-column,
  .member-panel,
  .narrow-panel {
    min-height: auto;
  }

  .chat-shell {
    min-height: 560px;
  }
}

@media (max-width: 760px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    min-height: auto;
  }

  .sidebar-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 0;
  }

  .user-block {
    min-height: auto;
    padding: 22px;
  }

  .topbar {
    height: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px;
  }

  .language-group,
  .filter-line,
  .report-content {
    display: block;
  }

  .content {
    padding: 16px;
  }

  .user-row {
    grid-template-columns: 42px 1fr;
    padding: 10px;
  }

  .gs-monitoring-copy-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--heading);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.gs-monitoring-copy-value {
  display: inline;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  overflow-wrap: anywhere;
  cursor: copy;
}

.gs-monitoring-copy-value:hover {
  color: var(--primary);
  text-decoration: underline;
}
.word-filter-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
