:root {
  color-scheme: light;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  --bg: #f4f7fb;
  --panel: #ffffff;
  --text: #162033;
  --muted: #687389;
  --line: #dce3ee;
  --primary: #1677ff;
  --primary-dark: #0f5fd4;
  --soft: #edf5ff;
  --success: #14a46c;
  --reception-green: #0aa36b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
}

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

button {
  border: 0;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  padding: 10px 14px;
}

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

button.ghost {
  background: #eef3fb;
  color: var(--text);
}

.hidden {
  display: none !important;
}

.file-picker-input {
  position: fixed;
  left: -1000px;
  top: -1000px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
}

.hero {
  width: min(960px, 100%);
  min-height: 480px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 28px;
  align-items: center;
  padding: 56px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(22, 119, 255, 0.16), rgba(20, 164, 108, 0.12)),
    #fff;
  box-shadow: 0 24px 80px rgba(54, 81, 128, 0.14);
}

.hero h1 {
  margin: 0;
  font-size: clamp(34px, 7vw, 68px);
}

.hero p:last-child {
  width: min(620px, 100%);
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
}

.hero-primary {
  background: var(--primary);
  color: #fff;
}

.hero-secondary {
  border: 1px solid var(--line);
  background: #fff;
  color: #22304a;
}

.hero-proof {
  display: grid;
  gap: 12px;
}

.hero-proof article {
  padding: 18px;
  border: 1px solid #e2eaf5;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.hero-proof strong,
.hero-proof span {
  display: block;
}

.hero-proof strong {
  color: #11295a;
}

.hero-proof span {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.6;
}

.chat-launcher {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(22, 119, 255, 0.35);
  font-weight: 700;
}

.chat-panel {
  position: fixed;
  right: 28px;
  bottom: 108px;
  width: min(380px, calc(100vw - 32px));
  height: min(620px, calc(100vh - 140px));
  display: none;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: 0 24px 80px rgba(40, 62, 98, 0.22);
}

.chat-panel.open {
  display: flex;
  flex-direction: column;
}

.chat-header,
.desk-header,
.conversation-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.chat-header {
  padding: 16px;
  background: var(--primary);
  color: #fff;
}

.chat-header span {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  opacity: 0.82;
}

.chat-header button {
  width: 32px;
  height: 32px;
  padding: 0;
  background: rgba(255, 255, 255, 0.18);
  font-size: 24px;
  line-height: 1;
}

.lead-form {
  display: grid;
  gap: 14px;
  padding: 18px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  padding: 11px 12px;
  color: var(--text);
  background: #fff;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.12);
}

.form-error {
  min-height: 18px;
  margin: 0;
  color: #c7372f;
  font-size: 13px;
}

.chat-room,
.desk-room {
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.messages {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 16px;
  background: #f7f9fd;
}

.message {
  max-width: 82%;
  width: fit-content;
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  line-height: 1.55;
  word-break: break-word;
}

.message.agent {
  margin-left: auto;
  color: #fff;
  border-color: transparent;
  background: var(--primary);
}

.message.internal {
  margin-left: auto;
  margin-right: auto;
  color: #704b00;
  border-color: #ffd98a;
  background: #fff7df;
}

.message time {
  display: block;
  margin-top: 4px;
  color: inherit;
  font-size: 11px;
  opacity: 0.7;
}

.message img,
.link-bubble img {
  display: block;
  max-width: 220px;
  max-height: 220px;
  margin-top: 8px;
  border-radius: 8px;
  object-fit: cover;
}

.message-form {
  display: flex;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.message-form input {
  flex: 1;
}

.agent-page {
  overflow: hidden;
}

.agent-shell {
  height: 100vh;
  display: grid;
  grid-template-columns: 360px 1fr;
}

.conversation-panel {
  display: flex;
  min-height: 0;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: #fff;
}

.conversation-panel header {
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.conversation-panel h1,
.desk-header h2 {
  margin: 0;
}

.login-box,
.toolbar {
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.toolbar {
  display: flex;
  gap: 8px;
  overflow: auto;
}

.toolbar button {
  white-space: nowrap;
  background: #eef3fb;
  color: var(--muted);
}

.toolbar button.active {
  background: var(--primary);
  color: #fff;
}

.conversation-list {
  min-height: 0;
  overflow: auto;
}

.conversation-item {
  width: 100%;
  display: block;
  padding: 9px 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  color: var(--text);
  text-align: left;
}

.conversation-item:hover,
.conversation-item.active {
  background: var(--soft);
}

.conversation-item strong {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  font-size: 15px;
  line-height: 1.25;
}

.conversation-item p {
  margin: 4px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-name {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-time {
  flex: 0 0 auto;
  color: #061842;
}

.badge {
  display: inline-flex;
  min-width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #ec4b4b;
  color: #fff;
  font-size: 12px;
}

.unread-badge {
  display: inline-flex;
  min-width: 16px;
  height: 16px;
  padding: 0 5px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #ff4d4f;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 16px;
}

.status {
  color: var(--success);
  font-size: 12px;
}

.desk {
  min-width: 0;
  min-height: 0;
  display: flex;
  background: #f7f9fd;
}

.empty-state {
  margin: auto;
  color: var(--muted);
}

.desk-room {
  width: 100%;
}

.desk-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.desk-header p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.desk-header select {
  width: 136px;
}

.desk-messages .message.visitor {
  background: #fff;
}

@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 360px;
    padding: 28px;
  }

  .chat-panel,
  .chat-launcher {
    right: 16px;
  }

  .agent-shell {
    grid-template-columns: 1fr;
  }

  .conversation-panel {
    height: 42vh;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

.reception-page {
  min-height: 100vh;
  background: #fff;
}

.reception-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
}

.reception-card {
  width: min(552px, 100%);
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 20px 58px rgba(0, 0, 0, 0.12);
}

.leave-card {
  min-height: 674px;
}

.leave-header,
.reception-chat-header {
  min-height: 66px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  background: var(--reception-green);
  color: #fff;
}

.leave-header h1 {
  margin: 0;
  font-size: 16px;
}

.leave-form {
  display: grid;
  gap: 18px;
  padding: 20px 18px 28px;
}

.leave-form p {
  margin: 0;
  color: #656b77;
  line-height: 1.55;
}

.leave-form label {
  color: #30343b;
  font-size: 14px;
}

.leave-form label span {
  color: #e05252;
}

.leave-form input,
.leave-form textarea {
  border: 0;
  border-radius: 0;
  padding: 10px 0;
  box-shadow: none;
}

.leave-form textarea {
  min-height: 98px;
  resize: vertical;
}

.upload-tile {
  width: 94px;
  height: 94px;
  place-items: center;
  align-content: center;
  gap: 3px;
  background: #f3f3f3;
  color: #9a9a9a !important;
  cursor: pointer;
}

.upload-tile input,
.tool-btn input {
  display: none;
}

.upload-tile b {
  color: #666;
  font-size: 28px;
  line-height: 1;
}

.upload-tile em {
  font-style: normal;
  font-size: 16px;
}

.upload-note {
  color: #555 !important;
  font-size: 13px;
}

.image-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.image-preview img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #e4e7ee;
}

.leave-submit {
  width: 100%;
  border-radius: 4px;
  background: var(--reception-green);
  font-weight: 700;
}

.success-note {
  color: var(--reception-green) !important;
}

.chat-link-card {
  height: min(674px, calc(100vh - 36px));
  display: flex;
  flex-direction: column;
}

.reception-chat-header {
  min-height: 65px;
  gap: 8px;
  padding: 0 14px;
}

.agent-avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  background: #eaf4f0;
  color: var(--reception-green);
  font-weight: 700;
}

.reception-chat-header strong {
  flex: 1;
  font-size: 16px;
}

.sound-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 999px;
  background: transparent;
}

.history-tip {
  padding: 14px;
  color: #787d87;
  font-size: 13px;
  text-align: center;
}

.link-messages {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 8px 26px 18px;
}

.link-message {
  max-width: 82%;
  margin-bottom: 14px;
}

.link-message.visitor {
  margin-left: auto;
}

.link-meta {
  margin: 0 0 6px;
  color: #62708b;
  font-size: 13px;
}

.link-message.visitor .link-meta {
  text-align: right;
}

.link-bubble {
  width: fit-content;
  max-width: 100%;
  padding: 8px 12px;
  border-radius: 4px;
  background: #ececec;
  color: #1e2b55;
  line-height: 1.65;
  word-break: break-word;
}

.link-message.visitor .link-bubble {
  margin-left: auto;
  background: var(--reception-green);
  color: #fff;
}

.link-bubble p {
  margin: 0;
}

.link-input {
  position: relative;
  min-height: 116px;
  border-top: 1px solid #e8e8e8;
  background: #fff;
}

.link-tools {
  display: flex;
  gap: 12px;
  padding: 10px 12px 0;
}

.tool-btn {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #aab2c5;
  font-size: 25px;
  cursor: pointer;
}

.tool-btn:hover,
.sound-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.link-input textarea {
  width: calc(100% - 62px);
  min-height: 52px;
  margin: 2px 48px 4px 12px;
  border: 0;
  resize: none;
  box-shadow: none;
}

.link-input .image-preview {
  padding: 0 48px 10px 12px;
}

.send-arrow {
  position: absolute;
  right: 13px;
  bottom: 11px;
  width: 34px;
  height: 34px;
  padding: 0;
  background: transparent;
  color: #c2c7d3;
  font-size: 24px;
}

.send-arrow:hover {
  background: transparent;
  color: var(--reception-green);
}

@media (max-width: 620px) {
  .reception-shell {
    padding: 0;
  }

  .reception-card {
    width: 100%;
    min-height: 100vh;
    border-radius: 0;
    box-shadow: none;
  }

  .chat-link-card {
    height: 100vh;
  }
}

.console-page {
  background: #eef2f8;
}

.console-shell {
  height: 100vh;
  display: grid;
  grid-template-columns: 56px 1fr;
  overflow: hidden;
}

.rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 8px 6px;
  background: #222733;
}

.avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #f7fafc;
  color: #213056;
  font-weight: 700;
}

.avatar-button {
  padding: 0;
  overflow: hidden;
  border: 0;
}

.avatar-button img,
.agent-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.avatar-button.invisible {
  box-shadow: 0 0 0 2px #9aa4b5 inset;
  opacity: 0.72;
}

.rail-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 6px;
  background: transparent;
  color: #b7bfce;
  font-size: 17px;
}

.rail-btn:hover,
.rail-btn.active {
  background: #0bb37a;
  color: #fff;
}

.rail-btn.hidden-by-user {
  display: none;
}

.rail-bottom {
  margin-top: auto;
}

.console-main {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid #e4e9f2;
  background: #fff;
}

.online-dot {
  color: #0bb37a;
  font-weight: 700;
}

.online-dot span {
  color: #12204a;
  margin: 0 6px;
}

.status-select {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: auto;
  color: #0bb37a;
  font-weight: 700;
}

.status-select select {
  width: 82px;
  padding: 6px 22px 6px 8px;
  border: 0;
  box-shadow: none;
  color: #12204a;
  font-weight: 700;
}

.plain,
.module-actions button,
.workbar button,
.reply-tools button,
.tabbar button,
.table-action {
  border: 1px solid #d7deea;
  background: #fff;
  color: #1c3161;
  border-radius: 4px;
  padding: 7px 12px;
}

.plain:hover,
.module-actions button:hover,
.workbar button:hover,
.reply-tools button:hover,
.tabbar button:hover,
.table-action:hover {
  background: #eef6ff;
}

.plain.small {
  padding: 5px 8px;
  font-size: 12px;
}

.plain.muted {
  color: #7b8598;
  background: #f5f7fb;
}

.console-login {
  min-height: 0;
  flex: 1;
  display: grid;
  place-items: center;
}

.login-card {
  width: min(380px, calc(100vw - 48px));
  display: grid;
  gap: 14px;
  padding: 28px;
  border: 1px solid #e1e7f0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 60px rgba(20, 40, 80, 0.12);
}

.login-card h1 {
  margin: 0;
  font-size: 22px;
}

.console-app {
  min-height: 0;
  flex: 1;
  display: grid;
  grid-template-columns: 286px 1fr;
}

.console-app.subnav-collapsed {
  grid-template-columns: 1fr;
}

.subnav {
  min-height: 0;
  overflow: auto;
  padding: 16px 14px;
  border-right: 1px solid #e0e6f0;
  background: #fff;
}

.subnav-title {
  margin-bottom: 12px;
  color: #0e2253;
  font-weight: 700;
}

.subnav button {
  width: 100%;
  margin: 2px 0;
  border-radius: 5px;
  background: transparent;
  color: #12204a;
  text-align: left;
}

.subnav button.active,
.subnav button:hover {
  background: #e2f4ef;
  color: #087b59;
}

.page-host {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.console-page-panel {
  height: 100%;
  display: none;
  overflow: auto;
  padding: 16px;
}

.console-page-panel.active {
  display: block;
}

#page-chat.active {
  padding: 0;
  overflow: hidden;
}

.chat-console {
  height: 100%;
  display: grid;
  grid-template-columns: 250px minmax(420px, 1fr) 286px;
  min-height: 0;
}

.chat-list-panel,
.customer-side {
  min-height: 0;
  overflow: auto;
  border-right: 1px solid #e1e7f0;
  background: #fff;
}

.customer-side {
  border-right: 0;
  border-left: 1px solid #e1e7f0;
}

.panel-title {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border-bottom: 1px solid #eef2f7;
}

.mini-tabs {
  display: flex;
  gap: 4px;
  padding: 10px 12px;
  border-bottom: 1px solid #eef2f7;
}

.mini-tabs button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  color: #66728a;
  padding: 6px 10px;
}

.mini-tabs button.active {
  color: #1677ff;
  font-weight: 700;
}

.console-conversations {
  height: calc(100vh - 150px);
}

.console-item {
  border-left: 3px solid transparent;
}

.console-item.active {
  border-left-color: #1677ff;
  background: #dff0ff;
}

.conversation-line {
  margin-bottom: 3px;
}

.conversation-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
  color: #72809a;
  font-size: 12px;
  line-height: 1.35;
}

.conversation-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.first-response {
  color: #f5222d;
  font-style: normal;
  font-weight: 700;
}

.read-state {
  font-size: 12px;
}

.read-state.read {
  color: #7b8798;
}

.read-state.unread {
  color: #f5222d;
}

.chat-workbench {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #f4f6fb;
}

.workbar {
  height: 44px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 8px 14px;
  border-bottom: 1px solid #e4e9f2;
  background: #fff;
}

.workbar select {
  width: 118px;
  height: 32px;
  padding: 5px 8px;
}

.history-link {
  height: 42px;
  display: grid;
  place-items: center;
  color: #1677ff;
  font-size: 13px;
}

.desk-room,
.message-area {
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.console-messages {
  flex: 1;
  padding: 22px;
  background: #f4f6fb;
}

.reply-box {
  margin: 0 14px 14px;
  border: 1px solid #e0e6f0;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(28, 48, 86, 0.08);
}

.reply-tabs {
  display: flex;
  gap: 20px;
  padding: 0 16px;
  border-bottom: 1px solid #edf1f7;
}

.reply-tabs button {
  padding: 12px 0 10px;
  border-radius: 0;
  background: transparent;
  color: #8b94a8;
}

.reply-tabs button.active {
  color: #0b5fd7;
  border-bottom: 2px solid #1677ff;
}

.reply-box textarea {
  border: 0;
  min-height: 70px;
  box-shadow: none;
  resize: none;
}

.reply-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 12px 10px;
}

.reply-file {
  position: relative;
  max-width: 180px;
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 28px 6px 8px;
  border: 1px solid #dbe2ee;
  border-radius: 6px;
  background: #f8fbff;
}

.reply-file img {
  width: 52px;
  height: 52px;
  border-radius: 5px;
  object-fit: cover;
}

.reply-file button {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #e7edf7;
  color: #52607c;
}

.file-chip {
  overflow: hidden;
  color: #1c3161;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-chip small,
.file-bubble small {
  display: block;
  margin-top: 2px;
  color: #7a8498;
  font-size: 11px;
}

.reply-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px 10px;
}

.floating-panel {
  position: fixed;
  z-index: 40;
  min-width: 210px;
  max-width: 340px;
  max-height: 320px;
  overflow: auto;
  padding: 10px;
  border: 1px solid #dbe2ee;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(27, 48, 88, 0.18);
}

.floating-panel strong {
  display: block;
  margin: 2px 6px 8px;
  color: #10245a;
}

.floating-panel button {
  width: 100%;
  display: block;
  margin: 2px 0;
  border: 0;
  background: #fff;
  color: #10245a;
  text-align: left;
}

.floating-panel button:hover {
  background: #eef6ff;
}

.floating-panel button span,
.floating-panel button small {
  display: block;
}

.floating-panel button small {
  overflow: hidden;
  color: #71809d;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.floating-panel .emoji-item {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  margin: 2px;
  padding: 0;
  text-align: center;
  font-size: 20px;
}

.account-menu-panel {
  width: 264px;
  max-height: none;
  padding: 0;
  overflow: hidden;
}

.account-menu-head {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: center;
  padding: 14px;
  border-bottom: 1px solid #e8edf5;
}

.account-menu-head strong {
  margin: 0;
}

.account-menu-head small {
  display: block;
  margin-top: 4px;
  color: #63708b;
}

.account-menu-avatar {
  width: 42px;
  height: 42px;
  display: grid !important;
  place-items: center;
  padding: 0 !important;
  border-radius: 999px;
  overflow: hidden;
  background: #edf5ff !important;
  color: #17366f !important;
  text-align: center !important;
}

.account-menu-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-menu-panel button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  margin: 0;
  padding: 9px 14px;
  border-radius: 0;
}

.account-menu-panel em,
.floating-panel button em {
  color: #64728d;
  font-style: normal;
}

.account-menu-panel hr {
  margin: 6px 0;
  border: 0;
  border-top: 1px solid #e8edf5;
}

.account-info-list {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 8px 12px;
  margin: 6px;
  color: #10245a;
}

.account-info-list dt {
  color: #687389;
}

.account-info-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.file-bubble {
  display: block;
  min-width: 180px;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.85);
  color: inherit;
  text-decoration: none;
  word-break: break-all;
}

.message.visitor .file-bubble {
  border: 1px solid #dbe2ee;
  color: #1c3161;
}

.send-btn {
  border-color: #1677ff !important;
  background: #1677ff !important;
  color: #fff !important;
}

.customer-card {
  background: #fff;
}

.customer-title {
  display: grid;
  grid-template-columns: 44px 1fr 28px;
  align-items: center;
  gap: 10px;
  padding: 14px;
}

.customer-title span {
  display: block;
  margin-top: 4px;
  color: #52607c;
  font-size: 12px;
}

.screen-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #4594ff;
  color: #fff;
}

.tag-add {
  margin: 0 14px 12px;
  background: #fff;
  color: #52607c;
  border: 1px solid #dbe2ee;
  padding: 6px 12px;
}

.side-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #eef2f7;
  border-bottom: 1px solid #eef2f7;
}

.side-tabs button {
  background: #fff;
  color: #8a94aa;
  border-radius: 0;
  padding: 12px 0;
}

.side-tabs button.active {
  color: #1c3161;
  border-bottom: 2px solid #1677ff;
}

.visit-info,
.profile-fields {
  padding: 16px;
}

.visit-info {
  display: grid;
  grid-template-columns: 72px 1fr;
  row-gap: 14px;
  margin: 0;
  font-size: 13px;
}

.visit-info dt {
  color: #8490a8;
}

.visit-info dd {
  margin: 0;
  color: #1f3972;
  word-break: break-word;
}

.leave-workspace {
  height: calc(100vh - 104px);
  display: grid;
  grid-template-columns: 250px 320px minmax(520px, 1fr) 280px;
  min-height: 0;
  overflow: hidden;
  border: 1px solid #e4eaf4;
  background: #f4f7fc;
}

.leave-search-panel,
.leave-list-panel,
.leave-detail-panel,
.leave-customer-panel {
  min-height: 0;
  overflow: auto;
  background: #fff;
}

.leave-search-panel,
.leave-list-panel,
.leave-detail-panel {
  border-right: 1px solid #e4eaf4;
}

.leave-search-panel {
  padding: 14px;
}

.leave-search-panel label,
.leave-ops label {
  display: block;
  margin-bottom: 12px;
  color: #1c3161;
  font-size: 13px;
}

.leave-search-panel input,
.leave-search-panel select,
.leave-ops select {
  width: 100%;
  margin-top: 6px;
}

.link-action {
  width: 100%;
  margin-bottom: 14px;
  background: #fff;
  color: #1677ff;
  text-align: left;
}

.leave-list-toolbar,
.leave-sort-row,
.leave-detail-head,
.leave-ops {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid #edf1f7;
}

.leave-list-toolbar button,
.leave-sort-row button,
.leave-detail-head button {
  background: #fff;
  color: #1c3161;
  border: 1px solid #dbe3ef;
}

.leave-nav-list {
  padding: 8px 0;
  border-bottom: 1px solid #edf1f7;
}

.leave-nav-list button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  border-radius: 0;
  background: #fff;
  color: #1c3161;
  text-align: left;
}

.leave-nav-list button.active,
.leave-nav-list button:hover {
  background: #e3f3ff;
  color: #0b67d6;
}

.leave-nav-list em {
  color: #70809c;
  font-style: normal;
}

.leave-sort-row {
  justify-content: space-between;
  color: #52607c;
  font-size: 13px;
}

.leave-ticket {
  width: 100%;
  min-height: 88px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 6px 8px;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid #edf1f7;
  border-radius: 0;
  background: #fff;
  color: #10245a;
  text-align: left;
}

.leave-ticket.active {
  background: #dff0ff;
  box-shadow: inset 3px 0 0 #1677ff;
}

.leave-ticket span {
  font-weight: 700;
}

.leave-ticket input {
  margin-right: 8px;
}

.leave-ticket p {
  grid-column: 1 / 4;
  margin: 0;
  overflow: hidden;
  color: #1f3972;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-pill {
  padding: 2px 6px;
  border-radius: 4px;
  background: #fff3df;
  color: #f08a00;
  font-size: 12px;
  font-style: normal;
}

.status-pill.open {
  background: #e7f6ff;
  color: #1677ff;
}

.status-pill.closed {
  background: #eaf8ef;
  color: #11a35b;
}

.status-pill.ignored {
  background: #f1f4f9;
  color: #66728a;
}

.priority {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #ffd84a;
  color: #7a5200;
  font-size: 12px;
  font-style: normal;
}

.priority.low {
  background: #e8edf6;
  color: #65728b;
}

.priority.high {
  background: #ffe4c2;
  color: #d66a00;
}

.priority.urgent {
  background: #ffe1e6;
  color: #d9304f;
}

.leave-detail-panel {
  display: flex;
  flex-direction: column;
  background: #f4f7fc;
}

.leave-detail-head {
  justify-content: space-between;
  background: #fff;
}

.leave-detail-head nav {
  display: flex;
  gap: 6px;
}

.leave-detail-head button.active {
  background: #fff3df;
  color: #f08a00;
}

.leave-ops {
  background: #fff;
}

.leave-ops label {
  flex: 1;
  margin: 0;
}

.source-card {
  margin: 18px 18px 0;
  padding: 14px;
  border-radius: 4px;
  background: #dfe6f4;
  color: #1f3972;
}

.source-card dl {
  margin: 0;
}

.source-card dt {
  float: left;
  width: 58px;
  font-weight: 700;
}

.source-card dd {
  margin: 0 0 8px 68px;
  word-break: break-all;
}

.leave-timeline {
  flex: 1;
  overflow: auto;
  padding: 18px;
}

.timeline-entry {
  max-width: 520px;
  padding: 14px 16px;
  border-left: 3px solid #dbe4f2;
  background: #fff;
  box-shadow: 0 4px 12px rgba(28, 48, 86, 0.05);
}

.timeline-entry b,
.timeline-entry time {
  display: block;
  margin-bottom: 6px;
}

.timeline-entry time {
  color: #8490a8;
  font-size: 12px;
}

.timeline-entry p {
  margin: 4px 0;
  color: #1c3161;
}

.timeline-entry img {
  max-width: 190px;
  max-height: 360px;
  margin-top: 8px;
  border-radius: 6px;
  object-fit: contain;
}

.leave-reply-box {
  margin: 0 16px 16px;
  border: 1px solid #ffd16f;
  border-radius: 6px;
  background: #fff;
}

.leave-reply-box textarea {
  border: 0;
  min-height: 86px;
  box-shadow: none;
  resize: none;
}

.leave-customer-panel {
  background: #fff;
}

.profile-mini {
  border-top: 1px solid #edf1f7;
}

@media (max-width: 1400px) {
  .leave-workspace {
    grid-template-columns: 220px 280px minmax(420px, 1fr);
  }

  .leave-customer-panel {
    display: none;
  }
}

.profile-fields {
  display: grid;
  gap: 12px;
  border-top: 1px solid #eef2f7;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-row span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #edf5ff;
  color: #1677ff;
  font-size: 12px;
}

.customer-tab-panel {
  min-height: 220px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: start center;
  padding-top: 70px;
  background: rgba(0, 0, 0, 0.42);
}

.customer-workspace {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  min-height: calc(100vh - 58px);
  background: #eef3f9;
}

.customer-filter-side {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-right: 1px solid #dce4f0;
  background: #fff;
}

.customer-filter-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 0 22px;
  border-bottom: 1px solid #e8eef6;
  color: #061a4f;
  font-weight: 700;
}

.customer-filter-title button {
  border: 0;
  background: transparent;
  color: #51617f;
  font-size: 18px;
}

.customer-filter-empty {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  flex: 1;
  padding: 30px;
  color: #6e7b98;
  text-align: center;
}

.customer-filter-empty div {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #dbeeff;
  color: #65a9ff;
  font-size: 34px;
}

.customer-filter-empty strong {
  color: #12285d;
  font-size: 16px;
}

.customer-filter-empty p {
  margin: 0;
  line-height: 1.7;
}

.customer-saved-filter-list {
  padding: 10px;
}

.customer-saved-filter-list button {
  display: block;
  width: 100%;
  margin-bottom: 8px;
  padding: 11px 12px;
  border: 0;
  border-radius: 4px;
  background: #eff7ff;
  color: #0b5fce;
  text-align: left;
}

.customer-main {
  min-width: 0;
  padding: 18px 22px 28px;
}

.customer-filter-toolbar {
  height: 36px;
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.customer-filter-toolbar button {
  border: 0;
  background: transparent;
  color: #1677ff;
  font-weight: 700;
}

.customer-filter-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr)) auto;
  gap: 14px 16px;
  align-items: end;
  padding: 20px 20px 14px;
  border: 1px solid #e3eaf4;
  background: #fff;
}

.customer-filter-form label {
  display: grid;
  gap: 8px;
  color: #061a4f;
  font-size: 14px;
}

.customer-filter-form input,
.customer-filter-form select {
  min-height: 40px;
}

.customer-date-range {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 6px;
}

.customer-date-range em {
  font-style: normal;
  color: #73809b;
}

.customer-condition-list {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
}

.customer-condition-row {
  display: grid;
  grid-template-columns: 160px 120px minmax(180px, 1fr) 72px;
  gap: 10px;
  align-items: center;
}

.customer-condition-row span {
  padding: 10px 12px;
  border: 1px solid #d7e0ee;
  border-radius: 4px;
  background: #f7f9fc;
  color: #10245a;
}

.customer-condition-row button {
  min-height: 40px;
}

.customer-filter-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.customer-table-card {
  margin-top: 16px;
  padding: 18px 20px 26px;
  border: 1px solid #e3eaf4;
  background: #fff;
}

.customer-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.customer-table-head p {
  margin: 0;
  color: #061a4f;
  font-size: 16px;
}

.customer-table-head div {
  display: flex;
  gap: 10px;
}

.customer-table-wrap {
  overflow: auto;
}

.customer-table-wrap .data-table {
  min-width: 980px;
}

.customer-field-picker-pop {
  width: 340px;
  max-height: 520px;
  overflow: auto;
  padding: 14px;
}

.customer-field-picker {
  display: grid;
  gap: 10px;
}

.customer-field-search {
  position: relative;
  display: block;
}

.customer-field-search input {
  width: 100%;
  padding-right: 34px;
}

.customer-field-search span {
  position: absolute;
  right: 11px;
  top: 50%;
  color: #1c2d5c;
  transform: translateY(-50%);
}

.customer-field-picker section {
  display: grid;
  gap: 3px;
}

.customer-field-picker strong {
  padding: 5px 2px;
  color: #10245a;
}

.customer-field-picker button {
  justify-content: flex-start;
  padding: 8px 28px;
  border: 0;
  color: #64708d;
}

.customer-modal {
  position: relative;
  width: min(680px, calc(100vw - 48px));
  max-height: calc(100vh - 110px);
  overflow: auto;
  padding: 24px 28px 20px;
  border-radius: 6px;
  background: #fff;
  color: #10245a;
  box-shadow: 0 16px 48px rgba(11, 28, 68, 0.24);
}

.customer-modal h3 {
  margin: 0 0 24px;
  text-align: center;
  font-size: 18px;
}

.customer-column-modal {
  width: min(620px, calc(100vw - 48px));
}

.customer-column-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid #dce4f0;
}

.customer-column-grid section {
  min-width: 0;
  padding: 14px;
}

.customer-column-grid section + section {
  border-left: 1px solid #dce4f0;
}

.customer-column-grid h4 {
  margin: 0 0 10px;
  color: #65718d;
  font-size: 14px;
}

.customer-column-scroll {
  max-height: 260px;
  overflow: auto;
  margin-top: 10px;
}

.customer-column-group b {
  display: block;
  padding: 8px 0 4px;
  color: #10245a;
}

.customer-column-choice {
  display: block;
  padding: 6px 0;
  color: #51617f;
}

.customer-column-order-row {
  display: grid;
  grid-template-columns: 1fr 28px 28px 30px;
  align-items: center;
  gap: 4px;
  padding: 7px 0;
  color: #51617f;
}

.customer-column-order-row button {
  min-width: 0;
  height: 26px;
  padding: 0;
}

.customer-column-order-row em {
  color: #72809c;
  font-style: normal;
  text-align: right;
}

.customer-import-modal {
  width: 520px;
  min-height: 190px;
  text-align: center;
}

.customer-import-modal .upload-btn {
  min-width: 130px;
  margin: 10px auto;
  background: #fff;
}

.customer-import-modal p {
  margin: 8px 0 10px;
  color: #10245a;
}

.link-btn {
  border: 0;
  background: transparent;
  color: #1677ff;
}

.customer-export-modal {
  width: 560px;
}

.customer-export-modal p {
  margin: 8px 0;
  line-height: 1.8;
}

.leave-create-modal {
  width: min(680px, calc(100vw - 48px));
  max-height: calc(100vh - 100px);
  overflow: auto;
  padding: 22px 30px 24px;
  border-radius: 6px;
  background: #fff;
  color: #10245a;
  box-shadow: 0 16px 48px rgba(11, 28, 68, 0.24);
}

.leave-create-modal h3 {
  margin: 0 0 24px;
  text-align: center;
}

.leave-create-modal label {
  display: block;
  margin: 0 0 18px;
  font-size: 14px;
}

.leave-create-modal input,
.leave-create-modal select,
.leave-create-modal textarea {
  width: 100%;
  margin-top: 8px;
}

.leave-create-modal small {
  display: block;
  margin-top: 6px;
  color: #7b879f;
}

.modal-close {
  float: right;
  border: 0;
  background: transparent;
  color: #6f7b94;
  font-size: 26px;
}

.rich-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
  padding: 8px;
  border: 1px solid #d8e0ec;
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
}

.rich-editor-toolbar button {
  border: 0;
  background: transparent;
  color: #52607c;
}

.leave-create-modal .rich-editor-toolbar + textarea {
  margin-top: 0;
  border-radius: 0 0 4px 4px;
}

.leave-radio-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 18px;
}

.leave-radio-row label {
  margin: 0;
}

.leave-radio-row input {
  width: auto;
  margin: 0 4px 0 0;
}

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

.leave-workspace.rebuilt {
  height: calc(100vh - 58px);
  grid-template-columns: 190px 320px minmax(560px, 1fr) 280px;
  border: 0;
  background: #f3f6fb;
}

.leave-workspace.rebuilt.searching {
  grid-template-columns: 190px 330px minmax(560px, 1fr);
}

.leave-nav-panel,
.leave-filter-pane,
.leave-search-results {
  min-height: 0;
  overflow: auto;
  background: #fff;
  border-right: 1px solid #e6ecf5;
}

.leave-nav-panel {
  padding: 0 0 18px;
}

.leave-new-btn,
.leave-nav-item,
.leave-nav-title {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #10245a;
  text-align: left;
}

.leave-new-btn {
  color: #1677ff;
  font-weight: 700;
}

.leave-nav-item {
  padding-left: 28px;
}

.leave-nav-title {
  margin-top: 8px;
  font-weight: 700;
}

.leave-nav-item.active,
.leave-nav-title.active,
.leave-nav-panel button:hover {
  background: #e4f3ff;
  color: #1677ff;
  box-shadow: inset -3px 0 0 #1677ff;
}

.leave-nav-item em {
  color: #73809a;
  font-style: normal;
}

.leave-nav-item.muted {
  color: #9aa4b7;
  box-shadow: none;
}

.leave-filter-pane {
  padding: 22px;
}

.leave-filter-pane label {
  display: block;
  margin-bottom: 18px;
  color: #10245a;
  font-size: 14px;
}

.leave-filter-pane input,
.leave-filter-pane select {
  width: 100%;
  margin-top: 8px;
}

.leave-filter-actions {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: 70px 1fr 100px;
  gap: 8px;
  padding-top: 14px;
  background: #fff;
}

.leave-search-results {
  border-right: 0;
}

.leave-list-panel.v2 {
  border-right: 1px solid #e6ecf5;
}

.leave-list-toolbar.v2 {
  min-height: 58px;
  justify-content: space-between;
  background: #fff;
}

.leave-list-toolbar.v2 strong {
  margin-left: auto;
  font-weight: 500;
}

.check-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.batch-dropdown {
  position: relative;
}

.batch-menu {
  position: absolute;
  top: 36px;
  left: 0;
  z-index: 20;
  display: none;
  min-width: 128px;
  padding: 6px 0;
  border: 1px solid #dce4f0;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(20, 38, 76, 0.14);
}

.batch-dropdown:hover .batch-menu {
  display: block;
}

.batch-menu button {
  width: 100%;
  border: 0;
  background: #fff;
  text-align: left;
}

.leave-ticket.v2 {
  grid-template-columns: auto 1fr auto auto;
  min-height: 96px;
  padding: 14px 16px;
}

.leave-ticket.v2 > input {
  grid-row: 1 / 3;
  align-self: start;
}

.leave-ticket.v2 p {
  grid-column: 2 / 5;
}

.empty-box.compact {
  height: 280px;
  display: grid;
  place-items: center;
  color: #8c98ad;
}

.leave-detail-panel.v2 {
  min-width: 0;
}

.leave-detail-panel.v2 .leave-detail-head {
  min-height: 58px;
}

.leave-detail-panel.v2 .leave-detail-head nav button.active {
  background: #fff5e8;
  color: #fa8c16;
}

.leave-ops.v2 {
  align-items: end;
}

.leave-ops.v2 label {
  min-width: 140px;
  font-size: 13px;
}

.leave-ops.v2 select {
  min-width: 120px;
}

.timeline-entry.internal {
  margin-top: 14px;
  border-left-color: #ffd16f;
}

.leave-customer-panel.v2 {
  border-left: 1px solid #e6ecf5;
}

.leave-side-history {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  padding: 14px 16px;
  border-top: 1px solid #edf1f7;
  color: #5c6880;
  font-size: 12px;
}

.leave-side-history a {
  color: #1677ff;
  cursor: pointer;
}

@media (max-width: 1500px) {
  .leave-workspace.rebuilt {
    grid-template-columns: 180px 290px minmax(480px, 1fr);
  }

  .leave-workspace.rebuilt.searching {
    grid-template-columns: 180px 320px minmax(460px, 1fr);
  }

  .leave-workspace.rebuilt .leave-customer-panel.v2 {
    display: none;
  }
}

.side-list {
  padding: 12px;
}

.side-list button {
  width: 100%;
  display: block;
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid #e0e7f2;
  border-radius: 6px;
  background: #fff;
  color: #10245a;
  text-align: left;
}

.side-list button.active,
.side-list button:hover {
  background: #eef8ff;
  border-color: #9dccff;
}

.side-list strong,
.side-list span,
.side-list p {
  display: block;
}

.side-list span {
  margin-top: 4px;
  color: #7a8498;
  font-size: 12px;
}

.side-list p {
  margin: 6px 0 0;
  overflow: hidden;
  color: #1f3972;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.small-side-empty {
  height: 120px;
}

.module-card {
  min-height: calc(100vh - 78px);
  padding: 22px;
  background: #fff;
  border: 1px solid #e3e9f3;
}

.filterbar {
  display: flex;
  align-items: end;
  gap: 14px;
  flex-wrap: wrap;
  padding-bottom: 18px;
}

.filterbar label {
  width: 220px;
  color: #10245a;
}

.visitor-page {
  min-height: calc(100vh - 78px);
  padding: 14px 18px 18px;
  background: #f3f6fb;
}

.visitor-toolbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 320px)) 1fr;
  align-items: end;
  gap: 14px;
  margin-bottom: 14px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid #e4eaf4;
  box-shadow: 0 1px 2px rgba(20, 42, 86, 0.03);
}

.visitor-toolbar label {
  min-width: 0;
  color: #10245a;
  font-size: 13px;
}

.visitor-toolbar select {
  width: 100%;
  margin-top: 6px;
  height: 42px;
  padding: 0 36px 0 14px;
  line-height: 42px;
  color: #10245a;
}

.visitor-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-left: auto;
}

.visitor-actions button {
  height: 42px;
  padding: 0 16px;
  white-space: nowrap;
}

.visitor-table-card {
  min-height: calc(100vh - 172px);
  padding: 16px 20px 24px;
  border: 1px solid #e4eaf4;
  background: #fff;
}

.visitor-count {
  margin-bottom: 12px;
  color: #10245a;
  font-size: 14px;
}

.visitor-count strong {
  color: #1677ff;
}

.visitor-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  color: #12275a;
}

.visitor-table th,
.visitor-table td {
  padding: 18px 14px;
  border-bottom: 1px solid #edf1f7;
  text-align: left;
  vertical-align: middle;
  font-size: 13px;
}

.visitor-table th {
  background: #fbfcfe;
  color: #10245a;
  font-weight: 700;
}

.visitor-table th:nth-child(1),
.visitor-table td:nth-child(1) {
  width: 310px;
}

.visitor-table th:nth-child(2),
.visitor-table td:nth-child(2) {
  width: 110px;
}

.visitor-table th:nth-child(3),
.visitor-table td:nth-child(3) {
  width: 210px;
}

.visitor-table th:nth-child(4),
.visitor-table td:nth-child(4) {
  width: 120px;
}

.visitor-table th:nth-child(6),
.visitor-table td:nth-child(6) {
  width: 140px;
}

.visitor-table tr:hover td {
  background: #f7fbff;
}

.visitor-info-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.visitor-screen-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #4594ff;
  color: #fff;
  font-size: 14px;
}

.visitor-info-cell strong,
.visitor-info-cell small,
.visitor-browser-line {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.visitor-info-cell strong {
  color: #153166;
  font-size: 14px;
}

.visitor-info-cell small {
  margin-top: 4px;
  color: #1f3972;
}

.visitor-browser-line {
  margin-top: 4px;
  color: #70809b;
  font-size: 12px;
}

.visit-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #1f3972;
}

.visit-count-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #ff6b6b;
}

.muted-cell {
  color: #8a94aa;
}

.visitor-url {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  color: #1677ff;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

@media (max-width: 1360px) {
  .visitor-toolbar {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
  }

  .visitor-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    margin-left: 0;
  }
}

.visitor-chat-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: #10245a;
  padding: 0;
}

.visitor-chat-status span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #12b76a;
}

.history-workspace {
  height: calc(100vh - 78px);
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: 0;
  overflow: hidden;
  border: 1px solid #e3e9f3;
  background: #f3f6fb;
}

.history-filter-panel {
  min-height: 0;
  overflow: auto;
  padding: 14px;
  border-right: 1px solid #dfe6f1;
  background: #fff;
}

.history-filter-head {
  position: sticky;
  top: -14px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: -14px -14px 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #edf1f7;
  background: #fff;
  color: #10245a;
}

.history-filter-panel label {
  display: block;
  margin-bottom: 14px;
  color: #10245a;
  font-size: 13px;
}

.history-filter-panel input,
.history-filter-panel select,
.history-top-filter input,
.history-top-filter select {
  width: 100%;
  margin-top: 6px;
}

.history-date-row,
.history-compare-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.history-check-row,
.history-radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 8px;
}

.history-check-row label,
.history-radio-row label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  white-space: nowrap;
}

.history-check-row input,
.history-radio-row input {
  width: auto;
  margin: 0;
}

.history-filter-actions {
  position: sticky;
  bottom: -14px;
  display: grid;
  grid-template-columns: 72px 1fr 1fr;
  gap: 8px;
  margin: 18px -14px -14px;
  padding: 12px 14px;
  border-top: 1px solid #edf1f7;
  background: #fff;
}

.history-result-panel {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 22px;
  background: #fff;
}

.history-top-filter {
  display: grid;
  grid-template-columns: 220px 260px 220px 220px auto auto;
  align-items: end;
  gap: 14px;
  margin-bottom: 18px;
}

.history-top-filter label {
  color: #10245a;
  font-size: 13px;
}

.history-result-panel .module-actions {
  justify-content: flex-end;
  margin-bottom: 14px;
}

.history-row-open {
  border: 0;
  background: transparent;
  color: #10245a;
  text-align: left;
  padding: 0;
}

.history-row-open strong,
.history-row-open small {
  display: block;
}

.history-row-open small {
  margin-top: 4px;
  color: #1f3972;
}

@media (max-width: 1280px) {
  .history-workspace {
    grid-template-columns: 280px 1fr;
  }

  .history-top-filter {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}

.count-text {
  margin: 0 0 14px;
  color: #1f3972;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  color: #132658;
  background: #fff;
}

.data-table th,
.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #edf1f7;
  text-align: left;
  vertical-align: middle;
  font-size: 13px;
}

.data-table th {
  background: #fbfcfe;
  font-weight: 700;
}

.data-table tr:hover td {
  background: #eef8ff;
}

.empty-box {
  height: 220px;
  display: grid;
  place-items: center;
  color: #a3acbd;
  border-top: 1px solid #eef2f7;
  border-bottom: 1px solid #eef2f7;
}

.info-strip {
  margin: 10px 0 16px;
  padding: 12px 16px;
  border-radius: 4px;
  background: #e6f5ff;
  color: #12366c;
}

.quality-workspace {
  min-height: calc(100vh - 78px);
  padding: 16px 18px 18px;
  background: #f3f6fb;
}

.quality-filter {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr)) auto auto auto;
  align-items: end;
  gap: 14px;
  margin-bottom: 14px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e3e9f3;
}

.quality-filter label {
  min-width: 0;
  color: #10245a;
  font-size: 13px;
}

.quality-filter input,
.quality-filter select {
  width: 100%;
  margin-top: 6px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #d5deec;
  border-radius: 6px;
  color: #10245a;
  background: #fff;
}

.quality-date-row,
.quality-compare-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.quality-advanced {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid #eef2f7;
}

.quality-advanced-actions {
  display: flex;
  align-items: end;
}

.quality-toggle {
  color: #1677ff;
  background: transparent;
  white-space: nowrap;
}

.quality-table-card,
.quality-report-hero,
.quality-plan-main,
.quality-plan-side {
  background: #fff;
  border: 1px solid #e3e9f3;
}

.quality-table-card {
  padding: 18px 20px;
}

.quality-info-strip {
  margin-bottom: 14px;
  padding: 12px 16px;
  border-radius: 4px;
  background: #e6f5ff;
  color: #12366c;
}

.quality-info-strip b {
  color: #0f5fd4;
}

.quality-customer {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 210px;
}

.quality-customer strong,
.quality-customer small,
.quality-customer span {
  display: block;
}

.quality-customer small {
  margin-top: 4px;
  color: #53627d;
}

.quality-customer i {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-right: 4px;
  border-radius: 50%;
  background: #edf5ff;
  color: #1677ff;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
}

.quality-device-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  background: #4b9aff;
  color: #fff;
  font-size: 14px;
}

.quality-dot-list {
  list-style: none;
  margin: 0;
  padding: 0;
  line-height: 1.9;
  color: #1f3972;
}

.quality-dot-list .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  vertical-align: middle;
}

.quality-dot-list .green {
  background: #2bc99a;
}

.quality-dot-list .blue {
  background: #1677ff;
}

.quality-dot-list .gray {
  background: #9aa6b8;
}

.quality-response,
.quality-message-count {
  display: grid;
  gap: 4px;
  color: #1f3972;
}

.quality-score {
  display: inline-flex;
  align-items: center;
  min-width: 54px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-weight: 700;
}

.quality-score.pending {
  background: #f3f6fb;
  color: #687389;
}

.quality-score.excellent {
  background: #e6f8f1;
  color: #0a8f5b;
}

.quality-score.pass {
  background: #edf5ff;
  color: #1677ff;
}

.quality-score.bad {
  background: #fff1f0;
  color: #d4380d;
}

.quality-row-actions {
  display: flex;
  gap: 8px;
  white-space: nowrap;
}

.quality-row-actions button {
  padding: 6px 10px;
  border: 1px solid #d5deec;
  background: #fff;
  color: #1f3972;
}

.quality-report-hero {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 14px;
  padding: 26px 34px;
}

.quality-kpi-card {
  display: flex;
  align-items: center;
  gap: 14px;
}

.quality-kpi-card small,
.quality-kpi-card strong {
  display: block;
}

.quality-kpi-card small {
  color: #687389;
}

.quality-kpi-card strong {
  margin-top: 4px;
  color: #08245f;
  font-size: 26px;
}

.shield-icon,
.score-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #2f6df6;
  color: #fff;
  font-weight: 800;
}

.score-icon {
  background: #35c785;
}

.score-icon.muted {
  background: #8fb2ff;
}

.quality-agent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.avatar-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dbeafe, #b7d7ff);
}

.quality-plan-workspace {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  min-height: calc(100vh - 78px);
  padding: 14px 18px 18px;
  background: #f3f6fb;
}

.quality-plan-side {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 110px);
  padding: 16px;
}

.add-plan {
  align-self: flex-start;
  color: #1677ff;
  background: transparent;
  font-weight: 700;
}

.quality-plan-empty,
.plan-placeholder {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  height: 100%;
  color: #687389;
  text-align: center;
}

.quality-plan-empty strong,
.plan-placeholder strong {
  color: #10245a;
}

.quality-plan-main {
  min-height: calc(100vh - 110px);
  border-left: 0;
}

.empty-illustration,
.plan-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: #d8ebff;
  color: #1677ff;
  font-size: 28px;
}

.quality-plan-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.quality-plan-list button {
  padding: 14px;
  border: 1px solid #e3e9f3;
  border-radius: 8px;
  background: #fff;
  color: #10245a;
  text-align: left;
}

.quality-plan-list button.active,
.quality-plan-list button:hover {
  border-color: #b8d7ff;
  background: #eaf4ff;
}

.quality-plan-list strong,
.quality-plan-list span {
  display: block;
}

.quality-plan-list span {
  margin-top: 6px;
  color: #687389;
  font-size: 12px;
}

.quality-plan-editor {
  padding: 24px 30px;
}

.quality-plan-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid #eef2f7;
}

.quality-plan-header h3 {
  margin: 0;
  color: #10245a;
  font-size: 20px;
}

.quality-plan-header p {
  margin: 8px 0 0;
  color: #687389;
}

.quality-plan-actions,
.quality-rule-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quality-plan-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.quality-plan-fields label {
  color: #10245a;
  font-size: 13px;
}

.quality-plan-fields .wide {
  grid-column: 1 / -1;
}

.quality-plan-fields input,
.quality-plan-fields select,
.quality-plan-fields textarea,
.quality-rule-table input {
  width: 100%;
  margin-top: 6px;
  padding: 0 12px;
  border: 1px solid #d5deec;
  border-radius: 6px;
  color: #10245a;
  background: #fff;
}

.quality-plan-fields input,
.quality-plan-fields select,
.quality-rule-table input {
  height: 40px;
}

.quality-plan-fields textarea {
  padding-top: 10px;
  resize: vertical;
}

.quality-rule-head {
  justify-content: space-between;
  margin-top: 28px;
}

.quality-rule-head h4 {
  margin: 0;
  color: #10245a;
}

.quality-rule-table {
  width: 100%;
  margin-top: 12px;
  border-collapse: collapse;
}

.quality-rule-table th,
.quality-rule-table td {
  padding: 12px;
  border-bottom: 1px solid #edf1f7;
  text-align: left;
  vertical-align: middle;
}

.quality-rule-table th {
  background: #fbfcfe;
  color: #10245a;
}

.switch-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #10245a;
}

.switch-line input {
  width: auto;
  height: auto;
  margin: 0;
}

.admin-page {
  min-height: 100vh;
  background: #f3f6fb;
}

.admin-shell {
  display: grid;
  grid-template-columns: 236px 1fr;
  min-height: 100vh;
}

.admin-side {
  padding: 22px 16px;
  background: #111b2d;
  color: #fff;
}

.admin-brand {
  margin-bottom: 24px;
  padding: 10px 8px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.admin-brand strong,
.admin-brand span {
  display: block;
}

.admin-brand strong {
  font-size: 18px;
}

.admin-brand span {
  margin-top: 6px;
  color: #9fb0cf;
  font-size: 12px;
}

.admin-side button,
.admin-side a {
  display: block;
  width: 100%;
  margin-bottom: 8px;
  padding: 12px 14px;
  border-radius: 8px;
  background: transparent;
  color: #c7d3ea;
  text-align: left;
  text-decoration: none;
}

.admin-side button.active,
.admin-side button:hover,
.admin-side a:hover {
  background: #0aa36b;
  color: #fff;
}

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

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 26px;
  background: #fff;
  border-bottom: 1px solid #e3e9f3;
}

.admin-topbar strong,
.admin-topbar span {
  display: block;
}

.admin-topbar strong {
  color: #10245a;
  font-size: 18px;
}

.admin-topbar span {
  margin-top: 4px;
  color: #687389;
  font-size: 12px;
}

.admin-content {
  padding: 22px;
}

.admin-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.admin-kpis article,
.admin-card,
.admin-link-card {
  background: #fff;
  border: 1px solid #e3e9f3;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(20, 42, 86, 0.03);
}

.admin-kpis article {
  padding: 20px;
}

.admin-kpis span,
.admin-kpis strong {
  display: block;
}

.admin-kpis span {
  color: #687389;
}

.admin-kpis strong {
  margin-top: 8px;
  color: #08245f;
  font-size: 28px;
}

.admin-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 18px;
}

.admin-card,
.admin-link-card {
  padding: 20px;
}

.admin-card h3,
.admin-link-card h3 {
  margin: 0;
  color: #10245a;
}

.admin-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.admin-card-head span {
  color: #687389;
  font-size: 12px;
}

.admin-mini-row {
  padding: 12px 0;
  border-bottom: 1px solid #eef2f7;
}

.admin-mini-row strong,
.admin-mini-row span {
  display: block;
}

.admin-mini-row span {
  margin-top: 4px;
  color: #687389;
  font-size: 12px;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 14px;
  align-items: end;
}

.admin-form-grid.compact {
  grid-template-columns: repeat(3, minmax(150px, 1fr));
}

.admin-form-grid label {
  min-width: 0;
  color: #10245a;
  font-size: 13px;
}

.admin-form-grid .wide {
  grid-column: 1 / -1;
}

.admin-form-grid input,
.admin-form-grid select,
.admin-form-grid textarea,
.admin-table input,
.admin-table select,
.copy-line input {
  width: 100%;
  margin-top: 6px;
  padding: 0 12px;
  border: 1px solid #d5deec;
  border-radius: 6px;
  color: #10245a;
  background: #fff;
}

.admin-form-grid input,
.admin-form-grid select,
.admin-table input,
.admin-table select,
.copy-line input {
  height: 40px;
}

.admin-form-grid textarea {
  padding-top: 10px;
  resize: vertical;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 10px;
  border-bottom: 1px solid #edf1f7;
  text-align: left;
}

.admin-table th {
  color: #10245a;
  background: #fbfcfe;
}

.admin-row-actions {
  display: flex;
  gap: 8px;
  white-space: nowrap;
}

.admin-row-actions.right {
  justify-content: flex-end;
  margin-top: 14px;
}

.admin-row-actions button,
.admin-card-head button {
  padding: 8px 12px;
}

.admin-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(360px, 1fr));
  gap: 18px;
}

.admin-link-card {
  min-width: 0;
}

.color-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #d5deec;
}

.copy-grid {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.copy-grid label {
  color: #10245a;
  font-size: 13px;
}

.copy-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 6px;
}

.copy-line input {
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-empty {
  display: grid;
  place-items: center;
  min-height: 120px;
  color: #8a96ab;
  background: #fbfcfe;
  border: 1px dashed #d5deec;
  border-radius: 8px;
}

.admin-empty.big {
  min-height: 240px;
  grid-column: 1 / -1;
}

.force-login-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 14px;
  color: #687389;
  font-size: 13px;
}

.force-login-line input {
  width: auto;
}

.master-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 18px;
}

.master-list-card {
  align-self: start;
  position: sticky;
  top: 82px;
}

.master-list {
  display: grid;
  gap: 10px;
}

.master-list button {
  padding: 14px;
  border: 1px solid #e3e9f3;
  border-radius: 8px;
  background: #fff;
  color: #10245a;
  text-align: left;
}

.master-list button.active,
.master-list button:hover {
  border-color: #b8d7ff;
  background: #eaf4ff;
}

.master-list strong,
.master-list span {
  display: block;
}

.master-list span {
  margin-top: 6px;
  color: #687389;
  font-size: 12px;
}

.master-detail {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.link-pool-kpis small,
.admin-table td small {
  display: block;
  margin-top: 5px;
  color: #7b879d;
  font-size: 12px;
}

.link-generator {
  order: 4;
  margin-bottom: 18px;
  border-top: 3px solid #1677ff;
}

.link-pool-page {
  display: flex;
  flex-direction: column;
}

.link-pool-page .link-pool-kpis {
  order: 1;
}

.link-pool-page .link-pool-flow {
  order: 2;
}

.link-pool-page .link-pool-columns {
  order: 3;
}

.link-pool-page .generated-link-list {
  order: 5;
}

.link-pool-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.domain-pool-card {
  order: 1;
}

.server-pool-card {
  order: 2;
}

.link-pool-flow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding: 14px 18px;
  border: 1px solid #dbe6f5;
  border-radius: 8px;
  background: #fff;
  color: #28406e;
}

.link-pool-flow span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.link-pool-flow b {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #1677ff;
  color: #fff;
}

.link-pool-flow i {
  color: #9aabc5;
  font-style: normal;
}

.pool-status,
.pool-free,
.link-master-only {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 6px;
  background: #eef3fb;
  color: #53647f;
  font-size: 12px;
}

.pool-status.ready,
.pool-free {
  background: #e4f8ee;
  color: #078554;
}

.pool-status.pending_dns {
  background: #fff4dd;
  color: #a66900;
}

.link-master-only {
  margin-left: auto;
}

.link-resource-form {
  padding-bottom: 18px;
  border-bottom: 1px solid #edf1f7;
}

.credential-note {
  color: #66758d;
  font-size: 12px;
}

.server-credential-row td {
  background: #f8fafc;
}

.server-credential-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 12px;
  align-items: end;
}

.server-credential-grid label {
  color: #425575;
  font-size: 12px;
}

.server-credential-grid .wide {
  grid-column: 1 / -1;
}

.server-credential-grid input,
.server-credential-grid select,
.server-credential-grid textarea {
  width: 100%;
  margin-top: 5px;
  padding: 8px 10px;
  border: 1px solid #d5deec;
  border-radius: 6px;
  background: #fff;
}

.compact-table {
  margin-top: 16px;
}

.compact-table .admin-table {
  min-width: 820px;
}

.generated-link-list .admin-table {
  min-width: 1120px;
}

.generated-link-list td:first-child {
  max-width: 420px;
}

.generated-link-list td:first-child a {
  display: block;
  overflow: hidden;
  color: #1268db;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1280px) {
  .admin-kpis,
  .admin-form-grid,
  .admin-link-grid,
  .admin-two-col,
  .master-layout {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}

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

  .admin-side {
    position: static;
  }

  .admin-kpis,
  .admin-form-grid,
  .admin-form-grid.compact,
  .master-layout,
  .link-pool-columns {
    grid-template-columns: 1fr;
  }

  .link-pool-flow {
    align-items: flex-start;
    flex-direction: column;
  }

  .link-pool-flow i {
    display: none;
  }
}

@media (max-width: 1320px) {
  .quality-filter,
  .quality-advanced {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}

.tabbar {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 18px;
}

.tabbar button {
  border-radius: 0;
  min-width: 110px;
}

.tabbar button.active {
  color: #1677ff;
}

.tabbar span {
  margin-left: auto;
  color: #71809d;
}

.monitor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 24px;
}

.metric-grid,
.stat-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 18px;
}

.stat-row {
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  margin: 14px 0 26px;
}

.metric {
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff;
}

.metric span {
  display: block;
  color: #687894;
  font-size: 13px;
}

.metric strong {
  display: block;
  margin: 6px 0 4px;
  color: #11285c;
  font-size: 22px;
}

.metric em {
  color: #ff5d5d;
  font-style: normal;
  font-size: 12px;
}

.line-chart {
  width: 100%;
  height: 260px;
  margin: 10px 0 30px;
}

.monitor-workspace {
  padding: 22px;
  color: #071f55;
}

.monitor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.monitor-top-tabs {
  display: flex;
  align-items: center;
}

.monitor-top-tabs button {
  min-width: 112px;
  height: 42px;
  border-radius: 0;
  border-color: #e2e8f3;
  background: #fff;
}

.monitor-top-tabs button.active {
  color: #1677ff;
  border-color: #9fc4ff;
}

.monitor-updated {
  color: #6f7f9e;
}

.monitor-updated button {
  margin-left: 8px;
  min-width: auto;
  padding: 4px 8px;
  border: 0;
  color: #1677ff;
  background: transparent;
}

.monitor-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 24px;
  margin-bottom: 24px;
}

.monitor-chart-card,
.monitor-card,
.screen-card {
  border: 1px solid #e8edf5;
  background: #fff;
}

.monitor-chart-card,
.monitor-card {
  padding: 22px;
}

.monitor-chart-card h3,
.monitor-card h3,
.monitor-side-kpis h3 {
  margin: 0 0 18px;
  font-size: 18px;
}

.monitor-chart-wrap {
  width: 100%;
}

.monitor-legend {
  display: flex;
  gap: 18px;
  margin-bottom: 10px;
  color: #41516f;
}

.monitor-legend i {
  display: inline-block;
  width: 22px;
  height: 10px;
  margin-right: 6px;
  border-radius: 2px;
  vertical-align: middle;
}

.monitor-legend i.blue {
  background: #438cff;
}

.monitor-legend i.green {
  background: #2ac7a6;
}

.monitor-chart {
  display: block;
  width: 100%;
  height: 330px;
}

.monitor-chart text {
  fill: #71809d;
  font-size: 11px;
}

.monitor-side-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: start;
  gap: 20px 24px;
  padding: 18px 8px 0;
}

.monitor-side-kpis h3 {
  grid-column: 1 / -1;
  border-left: 3px solid #1677ff;
  padding-left: 10px;
}

.monitor-kpi {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
}

.monitor-kpi-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #2f86ff, #6b9bff);
  font-weight: 700;
}

.monitor-kpi em,
.monitor-kpi small {
  display: block;
  color: #71809d;
  font-style: normal;
}

.monitor-kpi strong {
  display: block;
  margin: 4px 0;
  font-size: 22px;
}

.monitor-kpi small {
  color: #ff5d5d;
}

.monitor-section-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.monitor-section-head h3 {
  margin: 0 16px 0 0;
}

.monitor-section-head button.active {
  color: #1677ff;
  border-color: #1677ff;
}

.monitor-filter-row {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}

.monitor-filter-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #52627d;
}

.monitor-filter-row select {
  min-width: 150px;
}

.monitor-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #f1f5fb;
  color: #52627d;
}

.monitor-status-badge i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a9b4c8;
}

.monitor-status-badge.online {
  background: #e9fbf4;
  color: #0f8a62;
}

.monitor-status-badge.online i {
  background: #0fbf84;
}

.monitor-status-badge.invisible {
  background: #fff4e4;
  color: #bd720d;
}

.monitor-status-badge.invisible i {
  background: #ff9c22;
}

.monitor-datascreen {
  position: relative;
}

.datascreen-title {
  margin: 26px 0;
  font-size: 22px;
  color: #111;
}

.datascreen-actions {
  position: absolute;
  top: 84px;
  right: 22px;
  display: flex;
  gap: 12px;
}

.datascreen-actions button {
  border: 0;
  color: #1677ff;
  background: transparent;
}

.datascreen-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 280px;
  gap: 16px;
}

.datascreen-left,
.datascreen-right {
  display: grid;
  gap: 16px;
  align-content: start;
}

.screen-card {
  padding: 20px;
  border-radius: 2px;
}

.screen-card b {
  display: block;
  margin-bottom: 14px;
  color: #244174;
}

.screen-card strong {
  display: block;
  margin: 8px 0;
  color: #071f55;
  font-size: 22px;
}

.screen-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.datascreen-map-card {
  min-height: 520px;
}

.monitor-map {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 22px;
  align-items: center;
}

.china-map-shape {
  display: grid;
  place-items: center;
  min-height: 380px;
  border: 1px solid #dfe7f2;
  border-radius: 48% 44% 52% 42%;
  background: radial-gradient(circle at center, #f4f8fc, #e8f1fb);
  color: #6f7f9e;
  font-size: 22px;
}

.monitor-map ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.monitor-map li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #edf2f8;
}

.monitor-region-note {
  color: #6f7f9e;
}

@media (max-width: 1320px) {
  .monitor-overview,
  .datascreen-grid {
    grid-template-columns: 1fr;
  }

  .monitor-side-kpis {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}

.module-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 16px;
}

.settings-grid {
  display: grid;
  gap: 16px;
}

.quick-form {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 10px;
  margin-bottom: 14px;
}

.date-chip {
  display: inline-block;
  margin-bottom: 18px;
  padding: 10px 18px;
  border-radius: 4px;
  background: #edf2fb;
  color: #1f3972;
}

.small-empty {
  padding: 24px 14px;
}

.monitor-workspace {
  color: #071f55;
}

.monitor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.monitor-top-tabs {
  display: inline-flex;
  border: 1px solid #dbe4f0;
  border-radius: 2px;
  overflow: hidden;
  background: #fff;
}

.monitor-top-tabs button,
.monitor-section-head button {
  min-width: 104px;
  height: 38px;
  padding: 0 18px;
  border: 1px solid #dbe4f0;
  background: #fff;
  color: #071f55;
  font-size: 15px;
  white-space: nowrap;
}

.monitor-top-tabs button {
  border: 0;
  border-right: 1px solid #dbe4f0;
}

.monitor-top-tabs button:last-child {
  border-right: 0;
}

.monitor-top-tabs button.active,
.monitor-section-head button.active {
  color: #1677ff;
  background: #fff;
  border-color: #1677ff;
}

.monitor-updated {
  color: #6d7892;
  white-space: nowrap;
}

.monitor-updated button {
  margin-left: 8px;
  border: 0;
  background: transparent;
  color: #1677ff;
  cursor: pointer;
}

.monitor-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  align-items: start;
}

.monitor-chart-card,
.monitor-card,
.screen-card {
  background: #fff;
  border: 1px solid #edf2f8;
}

.monitor-chart-card,
.monitor-card {
  padding: 22px;
}

.monitor-chart-card h3,
.monitor-card h3,
.monitor-side-kpis h3 {
  margin: 0 0 18px;
}

.monitor-chart-wrap {
  overflow: hidden;
  width: 100%;
}

.monitor-chart {
  display: block;
  width: 100%;
  height: 310px;
  min-width: 0;
}

.datascreen-trend-card .monitor-chart {
  height: 280px;
}

.monitor-chart text {
  fill: #607194;
  font-size: 12px;
}

.monitor-legend {
  display: flex;
  gap: 16px;
  margin-bottom: 10px;
  color: #4c5d7a;
}

.monitor-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.monitor-legend i {
  width: 24px;
  height: 10px;
  border-radius: 2px;
}

.monitor-legend .blue {
  background: #438cff;
}

.monitor-legend .green {
  background: #2ac7a6;
}

.monitor-side-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.monitor-side-kpis h3 {
  grid-column: 1 / -1;
}

.monitor-kpi {
  min-height: 88px;
  padding: 14px;
  border: 1px solid #edf2f8;
  background: #fff;
}

.monitor-kpi-icon.orange {
  background: linear-gradient(135deg, #ff9f1c, #ffc24a);
}

.monitor-kpi-icon.yellow {
  background: linear-gradient(135deg, #ffbd13, #ffd866);
}

.monitor-kpi-icon.purple {
  background: linear-gradient(135deg, #8c54e8, #a982f4);
}

.monitor-kpi-icon.green {
  background: linear-gradient(135deg, #17bf83, #5ed7a9);
}

.monitor-section-head {
  flex-wrap: wrap;
}

.monitor-section-head h3 {
  min-width: 64px;
  color: #071f55;
}

.monitor-filter-row {
  align-items: center;
  flex-wrap: wrap;
}

.monitor-filter-row label {
  display: grid;
  grid-template-columns: auto minmax(160px, 220px);
  gap: 10px;
  align-items: center;
  white-space: nowrap;
  color: #52627d;
}

.monitor-filter-row label span {
  min-width: 56px;
}

.monitor-table-wrap {
  width: 100%;
  overflow: auto;
}

.monitor-data-table th,
.monitor-data-table td {
  white-space: nowrap;
}

.monitor-data-table button {
  height: 30px;
  padding: 0 12px;
  border: 1px solid #d7e2f1;
  border-radius: 4px;
  background: #fff;
  color: #1677ff;
}

.monitor-datascreen {
  padding-bottom: 28px;
}

.datascreen-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0 22px;
}

.datascreen-toolbar strong {
  font-size: 24px;
  font-weight: 500;
  color: #111827;
}

.datascreen-toolbar span {
  display: inline-flex;
  gap: 12px;
}

.datascreen-toolbar button {
  border: 0;
  background: transparent;
  color: #1677ff;
  cursor: pointer;
}

.datascreen-main-grid {
  display: grid;
  grid-template-columns: 300px minmax(360px, 1fr) 300px;
  gap: 16px;
}

.datascreen-trend-card {
  margin-top: 16px;
}

.datascreen-map-visual {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 240px;
  gap: 20px;
  align-items: center;
  min-height: 430px;
}

.map-board {
  position: relative;
  min-height: 360px;
  border: 1px solid #dfe7f2;
  border-radius: 8px;
  background: linear-gradient(135deg, #f7fbff, #eef5ff);
  overflow: hidden;
}

.map-board::before {
  content: "";
  position: absolute;
  inset: 42px 70px;
  border: 2px solid #b8c7dd;
  border-radius: 52% 40% 54% 42%;
  transform: rotate(-8deg);
  background: rgba(221, 232, 245, .62);
}

.map-board span {
  position: absolute;
  left: 22px;
  top: 18px;
  color: #4f6284;
}

.map-board i {
  position: absolute;
  z-index: 1;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(22, 119, 255, .12);
  color: #1677ff;
  font-style: normal;
  font-size: 12px;
}

.region-bars {
  display: grid;
  gap: 12px;
}

.region-bar {
  display: grid;
  grid-template-columns: 76px 1fr 34px;
  gap: 8px;
  align-items: center;
  color: #4f6284;
}

.region-bar b {
  display: block;
  height: 8px;
  min-width: 6px;
  margin: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, #438cff, #95c2ff);
}

.region-bar strong {
  margin: 0;
  font-size: 14px;
}

.dark-screen {
  padding: 20px;
  background: #0f172a;
  color: #dbeafe;
}

.dark-screen .screen-card,
.dark-screen .monitor-chart-card,
.dark-screen .monitor-card,
.dark-screen .monitor-kpi {
  background: #111c33;
  border-color: #22304b;
}

.dark-screen .datascreen-toolbar strong,
.dark-screen .screen-card b,
.dark-screen .screen-card strong {
  color: #f8fbff;
}

.dark-screen .map-board {
  border-color: #31415f;
  background: linear-gradient(135deg, #111c33, #17243f);
}

@media (max-width: 1480px) {
  .monitor-overview,
  .datascreen-main-grid {
    grid-template-columns: 1fr;
  }

  .datascreen-map-visual {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .console-app {
    grid-template-columns: 220px 1fr;
  }

  .chat-console {
    grid-template-columns: 240px 1fr;
  }

  .customer-side {
    display: none;
  }

  .stat-row {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
  }
}

.subnav-group-title {
  margin: 18px 14px 8px;
  color: #7c8ba8;
  font-size: 13px;
}

.report-page {
  display: grid;
  gap: 16px;
  padding: 18px;
  color: #09245a;
}

.report-titlebar {
  height: 42px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #e7edf7;
  background: #fff;
  font-weight: 700;
}

.report-toolbar {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 14px;
  background: #eef3fb;
  border: 1px solid #e6edf8;
}

.report-date,
.report-filter,
.report-clear,
.report-export {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #d6dfed;
  border-radius: 4px;
  background: #fff;
  color: #17346b;
  cursor: pointer;
}

.report-date {
  min-width: 190px;
  background: #e3e9f5;
}

.report-filter.active,
.report-filter:hover,
.report-date:hover {
  border-color: #2f80ff;
  color: #1677ff;
}

.report-clear {
  color: #5c6f94;
  background: transparent;
  border-style: dashed;
}

.report-export {
  margin-left: auto;
  color: #fff;
  border-color: #1677ff;
  background: #1677ff;
}

.report-filter-wrap {
  position: relative;
}

.report-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 30;
  min-width: 210px;
  padding: 8px 0;
  border: 1px solid #e2e8f3;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(20, 36, 70, 0.14);
}

.report-range-menu {
  left: 14px;
}

.report-menu button {
  display: block;
  width: 100%;
  padding: 10px 14px;
  border: 0;
  background: transparent;
  text-align: left;
  color: #17346b;
  cursor: pointer;
}

.report-menu button:hover {
  background: #edf6ff;
  color: #1677ff;
}

.report-card {
  padding: 20px;
  border: 1px solid #e5ebf5;
  background: #fff;
  overflow: auto;
}

.report-card h3 {
  margin: 0 0 18px;
  font-size: 18px;
}

.report-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.report-two .report-card {
  min-height: 260px;
}

.report-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 22px 30px;
  margin-bottom: 22px;
}

.report-metric span {
  display: block;
  color: #6d7d9b;
  font-size: 13px;
}

.report-metric strong {
  display: block;
  margin: 6px 0 4px;
  color: #09245a;
  font-size: 22px;
}

.report-metric em {
  display: block;
  font-style: normal;
  font-size: 12px;
}

.report-metric small.up,
.report-metric em.up {
  color: #12b981;
}

.report-metric small.down,
.report-metric em.down {
  color: #ff4d4f;
}

.report-chart {
  width: 100%;
  min-height: 230px;
  margin: 8px 0 20px;
  border-bottom: 1px solid #eef2f8;
}

.report-grain,
.report-tabs {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 14px;
}

.report-grain button,
.report-tabs button {
  height: 32px;
  padding: 0 16px;
  border: 1px solid #cfd9ea;
  background: #fff;
  color: #17346b;
  cursor: pointer;
}

.report-grain button + button,
.report-tabs button + button {
  margin-left: -1px;
}

.report-grain button.active,
.report-tabs button.active {
  color: #1677ff;
  border-color: #1677ff;
  position: relative;
  z-index: 1;
}

.report-table-wrap {
  width: 100%;
  overflow: auto;
  border: 1px solid #e7edf7;
  background: #fff;
}

.report-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
}

.report-table th,
.report-table td {
  padding: 14px 12px;
  border-bottom: 1px solid #edf1f7;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.report-table th {
  background: #fbfcfe;
  color: #09245a;
  font-weight: 700;
}

.report-table td {
  color: #17346b;
}

.report-empty {
  display: grid;
  place-items: center;
  min-height: 180px;
  color: #9aa8bf;
}

.mini-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e8f2ff;
  color: #1677ff;
  font-size: 12px;
  font-weight: 700;
  vertical-align: middle;
  margin-right: 6px;
}

@media (max-width: 1280px) {
  .report-metrics {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
  }

  .report-two {
    grid-template-columns: 1fr;
  }
}

.settings-workspace {
  padding: 24px;
  color: #071f55;
}

.settings-page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.settings-page-head h2 {
  margin: 0 0 6px;
  font-size: 24px;
}

.settings-page-head p {
  margin: 0;
  color: #6f7f9e;
}

.settings-actions,
.settings-card-head > div:last-child {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.settings-card {
  background: #fff;
  border: 1px solid #e4ebf5;
  border-radius: 4px;
  padding: 22px;
  margin-bottom: 18px;
  box-shadow: 0 1px 2px rgba(7, 31, 85, .04);
}

.settings-card h3 {
  margin: 0 0 14px;
  font-size: 18px;
}

.settings-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.settings-card-head p {
  margin: 6px 0 0;
  color: #6f7f9e;
}

.settings-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 16px;
}

.settings-field {
  display: grid;
  gap: 8px;
  color: #071f55;
}

.settings-field.wide {
  grid-column: 1 / -1;
}

.settings-field input,
.settings-field select,
.settings-field textarea {
  width: 100%;
  border: 1px solid #cfd8e6;
  border-radius: 4px;
  min-height: 38px;
  padding: 8px 12px;
  color: #071f55;
  background: #fff;
}

.settings-field textarea {
  resize: vertical;
}

.settings-two-col {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 18px;
  align-items: start;
}

.settings-list-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #edf2f8;
}

.settings-list-row strong,
.settings-list-row span {
  display: block;
}

.settings-list-row span {
  margin-top: 4px;
  color: #6f7f9e;
  font-size: 13px;
}

.settings-list-row button,
.settings-card button,
.settings-page-head button {
  border: 1px solid #cfd8e6;
  background: #fff;
  border-radius: 4px;
  min-height: 34px;
  padding: 0 12px;
  color: #0d2a62;
  cursor: pointer;
}

.settings-page-head button,
.settings-card-head button:first-child,
.settings-footer button:first-child {
  background: #1677ff;
  border-color: #1677ff;
  color: #fff;
}

.settings-footer {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.settings-empty {
  display: grid;
  place-items: center;
  min-height: 180px;
  color: #8a98b3;
}

.settings-empty div {
  font-size: 40px;
  color: #c3d8f6;
}

.settings-copy-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
}

.settings-copy-line code,
.settings-copy-line textarea {
  flex: 1;
  display: block;
  padding: 12px;
  border: 1px solid #e4ebf5;
  background: #f6f8fb;
  color: #173a75;
  border-radius: 4px;
  word-break: break-all;
}

.settings-permission-row {
  padding: 16px 0;
  border-bottom: 1px solid #edf2f8;
}

.settings-permission-row > div {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 10px;
}

.settings-table-wrap {
  overflow: auto;
}

@media (max-width: 1200px) {
  .settings-form-grid,
  .settings-two-col {
    grid-template-columns: 1fr;
  }
}

.settings-nav {
  position: relative;
  min-height: calc(100vh - 56px);
  color: #071f55;
}

.settings-nav-search {
  padding: 16px 10px 8px;
}

.settings-nav-search input {
  width: 100%;
  height: 36px;
  border: 1px solid #cfd8e6;
  border-radius: 4px;
  background: #fff;
  padding: 0 12px;
  color: #071f55;
}

.settings-nav-block {
  margin: 7px 0;
}

.settings-nav-heading,
.settings-nav-group-title {
  width: 100%;
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: #071f55;
  text-align: left;
  padding: 0 12px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}

.settings-nav-heading span,
.settings-nav-group-title span {
  width: 18px;
  color: #273f73;
  text-align: center;
}

.settings-nav-heading.active {
  background: #dff3ec;
  color: #00a36c;
}

.settings-nav-group-title em {
  margin-left: auto;
  font-style: normal;
  font-size: 12px;
  color: #273f73;
}

.settings-nav-items {
  display: grid;
  gap: 2px;
  margin: 4px 0 0;
}

.settings-nav-item {
  border: 0;
  background: transparent;
  text-align: left;
  color: #071f55;
  padding: 9px 12px 9px 44px;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
}

.settings-nav-item.active,
.settings-nav-item:hover {
  background: #dff3ec;
  color: #00a36c;
}

.settings-nav-collapse {
  position: sticky;
  left: 10px;
  bottom: 8px;
  margin: 18px 10px 8px;
  border: 0;
  background: transparent;
  color: #6f7f9e;
  text-align: left;
  padding: 8px;
  cursor: pointer;
}

.team-settings-workspace {
  padding: 18px 28px 28px;
  background: #eef2f8;
  min-height: calc(100vh - 56px);
}

.team-info-card {
  background: #fff;
  border: 1px solid #dfe6f1;
  border-radius: 0;
  padding: 26px 28px;
  margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(7, 31, 85, .05);
}

.team-info-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.team-info-card h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  color: #071f55;
}

.team-info-muted {
  color: #5f6f91;
  margin: 12px 0 0;
  line-height: 1.6;
}

.team-info-rule {
  border-top: 1px solid #e5ebf3;
  margin: 20px 0 24px;
}

.team-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 34px 54px;
}

.team-info-item {
  min-height: 22px;
  color: #071f55;
  white-space: pre-wrap;
}

.team-info-item strong {
  font-weight: 500;
}

.team-card-edit,
.team-danger-link {
  border: 0 !important;
  background: transparent !important;
  color: #1677ff !important;
  padding: 0 !important;
  min-height: auto !important;
  cursor: pointer;
}

.team-danger-link {
  color: #f04438 !important;
}

.team-card-profile {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 22px;
  align-items: start;
}

.team-card-avatar {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #a9b0bf;
}

.team-card-avatar::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 13px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
}

.team-card-avatar::after {
  content: "";
  position: absolute;
  left: 15px;
  bottom: 13px;
  width: 34px;
  height: 20px;
  border-radius: 28px 28px 10px 10px;
  background: #fff;
}

.team-card-profile .team-info-grid {
  padding-top: 46px;
}

.team-edit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 18px 36px;
}

.team-edit-field {
  display: grid;
  gap: 8px;
  color: #071f55;
}

.team-edit-field input,
.team-edit-field textarea,
.team-announcement-box {
  border: 1px solid #cfd8e6;
  border-radius: 4px;
  background: #fff;
  color: #071f55;
  padding: 8px 12px;
  min-height: 38px;
  font: inherit;
}

.team-edit-field.wide {
  grid-column: 1 / -1;
}

.team-edit-field textarea {
  resize: vertical;
}

.team-edit-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.team-edit-actions button {
  border: 1px solid #cfd8e6;
  background: #fff;
  border-radius: 4px;
  color: #0d2a62;
  min-height: 32px;
  padding: 0 12px;
  cursor: pointer;
}

.team-edit-actions .primary {
  background: #1677ff;
  border-color: #1677ff;
  color: #fff;
}

.team-announcement-box {
  width: 100%;
  min-height: 72px;
  resize: vertical;
  background: #f9fbfe;
}

.team-danger-note {
  color: #6f7f9e;
  margin-top: 14px;
}

@media (max-width: 900px) {
  .team-settings-workspace {
    padding: 12px;
  }

  .team-info-grid,
  .team-edit-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .team-card-profile {
    grid-template-columns: 1fr;
  }

  .team-card-profile .team-info-grid {
    padding-top: 0;
  }
}

.settings-link-page {
  padding: 0;
}

.settings-link-workspace {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 24px;
  padding: 18px 22px 36px;
}

.link-list-panel,
.link-card {
  background: #fff;
  border: 1px solid #e1e8f2;
  box-shadow: 0 1px 3px rgba(9, 30, 66, 0.04);
}

.link-list-panel {
  min-height: calc(100vh - 150px);
  padding: 14px;
}

.link-list-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #071f55;
  font-weight: 700;
  padding-bottom: 10px;
  border-bottom: 1px solid #edf2f8;
}

.link-list-title button,
.link-add,
.link-list button,
.link-card button,
.mini-copy {
  border: 1px solid #cfd8e6;
  background: #fff;
  color: #1769e0;
  border-radius: 6px;
  min-height: 32px;
  padding: 0 10px;
  cursor: pointer;
}

.link-add {
  width: 100%;
  margin: 12px 0;
  color: #1677ff;
  font-weight: 700;
}

.link-list {
  display: grid;
  gap: 8px;
}

.link-list button {
  display: grid;
  gap: 4px;
  text-align: left;
  color: #071f55;
  padding: 10px 12px;
}

.link-list button.active {
  background: #e8f3ff;
  border-color: #cfe4ff;
}

.link-list button span {
  color: #7b88a8;
  font-size: 12px;
}

.link-main-panel {
  display: grid;
  gap: 18px;
  max-width: 1100px;
}

.link-card {
  border-radius: 10px;
  padding: 18px 22px;
}

.link-card h3 {
  margin: 0;
  color: #071f55;
  font-size: 18px;
}

.link-card p {
  color: #31466f;
  margin: 10px 0;
}

.link-card-blue {
  background: #edf4ff;
  border-color: #cdddff;
}

.link-card-red {
  background: #fff1f0;
  border-color: #ffd4d1;
}

.link-card-green {
  background: #ecfff7;
  border-color: #bdf3d8;
}

.link-card-purple {
  background: #f7f0ff;
  border-color: #e0cdfa;
}

.link-name-row,
.link-title-row,
.link-card-head,
.link-url-row,
.link-card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.link-name-row,
.link-title-row,
.link-card-head {
  justify-content: space-between;
}

.link-title-row {
  border-top: 1px solid rgba(7, 31, 85, 0.08);
  padding-top: 14px;
  margin-top: 14px;
}

.link-title-row span,
.link-title-row strong {
  display: block;
}

.link-title-row span {
  color: #566686;
  margin-bottom: 5px;
}

.link-card-head > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.link-card-head em {
  font-style: normal;
  color: #6b54e8;
  background: rgba(255, 255, 255, 0.65);
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 12px;
}

.link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  color: #0d2a62;
  font-weight: 800;
}

.link-tips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #0f9460;
  font-size: 13px;
  margin: 8px 0 14px;
}

.link-url-row {
  flex-wrap: wrap;
}

.link-url-input {
  flex: 1 1 420px;
  min-width: 220px;
  border: 1px solid #cfd8e6;
  border-radius: 7px;
  background: #fff;
  padding: 0 12px;
  height: 40px;
  color: #071f55;
}

.link-url-row .settings-field {
  min-width: 150px;
  margin: 0;
}

.link-url-row .settings-field span {
  display: none;
}

.link-url-row .settings-field select {
  height: 40px;
}

.link-doc {
  background: rgba(255, 255, 255, 0.65);
  border: 1px dashed #cfd8e6;
  border-radius: 8px;
  padding: 12px;
  color: #31466f;
  margin: 12px 0 16px;
}

.link-card-actions {
  margin: 8px 0 14px;
}

.link-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  padding: 3px 10px;
  font-size: 12px;
  background: #eef3fb;
  color: #66758f;
}

.link-state.active,
.link-state.available {
  background: #dff8e8;
  color: #087a3f;
}

.link-state.expired,
.link-state.unbound {
  background: #f0f2f6;
  color: #8792a7;
}

.link-muted {
  color: #8a96ad;
}

.mini-copy {
  min-height: 24px;
  margin-left: 8px;
  padding: 0 8px;
  font-size: 12px;
}

.table-action.danger {
  color: #e5484d;
}

@media (max-width: 980px) {
  .settings-link-workspace {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .link-list-panel {
    min-height: auto;
  }
}
