:root {
  --bg: #f2f4f7;
  --surface: #ffffff;
  --surface-2: #f7fbff;
  --fill: #edf6ff;
  --fill-light: #f8fcff;
  --line: #d8e7f8;
  --line-light: #e8f2ff;
  --brand-start: #2867ff;
  --brand-end: #32c4ff;
  --brand-hover: #1f5be8;
  --brand-light: #eaf4ff;
  --brand-border: #cfe4ff;
  --text: #1a1a1a;
  --regular: #595959;
  --muted: #8c8c8c;
  --disabled: #bfbfbf;
  --blue: #1677ff;
  --teal: #18b6d9;
  --green: #52c41a;
  --amber: #faad14;
  --red: #ff4d4f;
  --purple: #2867ff;
  --gradient: linear-gradient(135deg, #2867ff 0%, #32c4ff 100%);
  --gradient-hover: linear-gradient(135deg, #1f5be8 0%, #18b6d9 100%);
  --shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 24px 0 rgba(0, 0, 0, 0.08);
  --shadow-brand: 0 4px 10px 0 rgba(40, 103, 255, 0.2);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 1120px;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0;
}

.is-hidden {
  display: none !important;
}

.startup-splash {
  position: fixed;
  inset: 0;
  z-index: 10000;
  overflow: hidden;
  background: #05080f;
  opacity: 1;
  transition:
    opacity 700ms ease,
    visibility 700ms ease;
}

.startup-splash.is-fading {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.startup-splash iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

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

button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
}

button:hover {
  border-color: var(--brand-start);
  background: var(--brand-light);
  color: var(--brand-start);
}

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

.login-screen {
  display: grid;
  grid-template-columns: minmax(520px, 1.12fr) minmax(420px, 0.88fr);
  min-height: 100vh;
  background: #fff;
}

.login-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  padding: 44px 56px;
  overflow: hidden;
  background: var(--gradient);
  color: #fff;
}

.login-visual::before,
.login-visual::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  filter: blur(18px);
}

.login-visual::before {
  width: 360px;
  height: 360px;
  top: -120px;
  right: -80px;
}

.login-visual::after {
  width: 260px;
  height: 260px;
  bottom: -100px;
  left: -80px;
}

.login-brand,
.login-copy,
.login-stats {
  position: relative;
  z-index: 1;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.login-brand .brand-mark {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  box-shadow: none;
}

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

.login-brand span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.login-copy {
  max-width: 650px;
}

.login-copy .eyebrow {
  color: rgba(255, 255, 255, 0.76);
}

.login-copy h1 {
  margin: 0 0 20px;
  color: #fff;
  font-size: 44px;
  line-height: 1.18;
}

.login-copy p:last-child {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  line-height: 1.8;
}

.login-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 680px;
}

.login-stats article {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.login-stats strong,
.login-stats span {
  display: block;
}

.login-stats strong {
  margin-bottom: 6px;
  font-size: 28px;
}

.login-stats span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.login-panel {
  display: grid;
  place-items: center;
  padding: 48px;
  background: var(--fill-light);
}

.login-card {
  display: grid;
  gap: 18px;
  width: min(100%, 430px);
  padding: 34px;
  border: 1px solid var(--line-light);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.login-card h2 {
  margin: 0 0 8px;
  font-size: 26px;
}

.login-card > div > span,
.login-tip {
  color: var(--muted);
  font-size: 13px;
}

.login-card label {
  display: grid;
  gap: 8px;
  color: var(--regular);
  font-size: 14px;
}

.login-card input[type="text"],
.login-card input[type="password"] {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
}

.login-card input[type="text"]:focus,
.login-card input[type="password"]:focus {
  border-color: var(--brand-start);
  box-shadow: 0 0 0 2px rgba(40, 103, 255, 0.1);
  outline: none;
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.login-options label {
  display: flex;
  grid-gap: 8px;
  align-items: center;
  color: var(--regular);
  font-size: 13px;
}

.login-options button {
  min-height: auto;
  border: 0;
  background: transparent;
  color: var(--brand-start);
}

.login-submit {
  width: 100%;
  height: 42px;
}

.login-divider {
  position: relative;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
}

.login-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line-light);
}

.login-divider span {
  position: relative;
  padding: 0 12px;
  background: #fff;
}

.sso-btn {
  height: 42px;
  border-color: var(--brand-border);
  background: var(--brand-light);
  color: var(--brand-start);
}

.login-tip {
  margin: 0;
  text-align: center;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 18px;
  border-right: 1px solid var(--line-light);
  background: var(--fill-light);
  color: var(--text);
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line-light);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--gradient);
  color: #fff;
  box-shadow: var(--shadow-brand);
  font-weight: 800;
}

.brand-mark img {
  display: block;
  width: 29px;
  height: auto;
}

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

.brand span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: grid;
  gap: 7px;
  margin-top: 22px;
}

.nav-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 11px 12px;
  border: 0;
  background: transparent;
  color: var(--regular);
  text-align: left;
}

.nav-item span {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
}

.nav-item svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-item.active,
.nav-item:hover {
  background: var(--gradient);
  color: #fff;
  box-shadow: var(--shadow-brand);
}

.nav-item.active span,
.nav-item:hover span {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.side-status {
  margin-top: 26px;
  padding: 16px;
  border: 1px solid var(--brand-border);
  border-radius: 8px;
  background: var(--brand-light);
}

.side-status p,
.side-status span {
  margin: 0;
  color: var(--regular);
  font-size: 13px;
}

.side-status strong {
  display: block;
  margin: 8px 0;
  color: var(--brand-start);
  font-size: 30px;
}

.main {
  padding: 22px 26px 34px;
}

.topbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 26px;
}

h2 {
  margin-bottom: 0;
  font-size: 16px;
}

h3 {
  margin-bottom: 10px;
  font-size: 16px;
}

h4 {
  margin: 18px 0 8px;
  font-size: 14px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 300px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.search input {
  width: 100%;
  border: 0;
  outline: 0;
}

.app-shell .search > span {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  color: #9aa7b5;
  font-size: 28px;
  line-height: 26px;
  transform: translateY(-1px);
}

.search:focus-within,
.reply-box input:focus,
.modal input:focus,
.modal select:focus,
.modal textarea:focus {
  border-color: var(--brand-start);
  box-shadow: 0 0 0 2px rgba(40, 103, 255, 0.1);
  outline: none;
}

.primary-btn {
  border-color: transparent;
  background: var(--gradient);
  color: #fff;
  box-shadow: var(--shadow-brand);
}

.primary-btn:hover {
  border-color: transparent;
  background: var(--gradient-hover);
  color: #fff;
}

.ghost-btn {
  background: transparent;
}

.notify-btn {
  position: relative;
  width: 36px;
  min-height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  display: grid;
  place-items: center;
}

.notify-btn:hover {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.notify-btn svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #4b5563;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notify-btn span {
  position: absolute;
  top: 0;
  right: 1px;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  padding: 0;
  border-radius: 50%;
  background: #ff1515;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.notify-panel,
.search-results {
  position: absolute;
  top: 52px;
  right: 0;
  z-index: 20;
  width: 390px;
  padding: 14px;
  border: 1px solid var(--line-light);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.search-results {
  right: 212px;
}

#notify-list,
.search-results {
  display: grid;
  gap: 8px;
}

.notify-item,
.search-result-item {
  display: grid;
  gap: 5px;
  width: 100%;
  padding: 11px;
  text-align: left;
}

.notify-item.unread {
  border-color: var(--brand-border);
  background: var(--brand-light);
}

.notify-item strong,
.notify-item span,
.search-result-item strong,
.search-result-item span {
  display: block;
}

.notify-item span,
.search-result-item span,
.empty-result {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.empty-result {
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--fill-light);
}

.danger-btn {
  border-color: #ffccc7;
  color: var(--red);
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}

.metric,
.panel,
.customer-card,
.conversation-list,
.chat-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.metric {
  padding: 16px;
}

.metric span,
.metric em {
  display: block;
  color: var(--muted);
  font-style: normal;
}

.metric strong {
  display: block;
  margin: 8px 0;
  font-size: 30px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.metric em {
  color: var(--green);
}

.metric em.down {
  color: var(--teal);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 14px;
}

.wide {
  grid-row: span 2;
}

.panel {
  padding: 16px;
}

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

.panel-head span {
  color: var(--muted);
  font-size: 13px;
}

.flow {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  align-items: center;
  margin: 18px 0;
}

.flow div {
  min-height: 72px;
  display: grid;
  place-items: center;
  border: 1px solid var(--brand-border);
  border-radius: 8px;
  background: var(--brand-light);
  color: var(--brand-start);
  font-weight: 700;
}

.flow i {
  display: none;
}

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

.insight-list article {
  padding: 12px;
  border-left: 4px solid var(--brand-start);
  border-radius: 6px;
  background: var(--fill-light);
}

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

.insight-list span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.bars {
  display: grid;
  gap: 14px;
}

.bars label {
  display: grid;
  grid-template-columns: 58px 1fr 42px;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.bars b {
  height: 9px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--brand-start) 0%, var(--brand-end) var(--w), var(--fill) var(--w));
}

.rank-list,
.compact-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.rank-list li,
.compact-list li {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
}

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

.rank-list span,
.compact-list {
  color: var(--muted);
  font-size: 13px;
}

.workspace {
  display: grid;
  grid-template-columns: 280px minmax(520px, 1fr) 330px;
  gap: 14px;
  min-height: 680px;
}

.workspace-demo {
  display: grid;
  gap: 14px;
}

.agent-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.agent-step {
  display: grid;
  justify-items: start;
  gap: 5px;
  min-height: 94px;
  padding: 12px;
  text-align: left;
}

.agent-step b {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--fill);
  color: var(--muted);
  font-size: 12px;
}

.agent-step strong {
  font-size: 14px;
}

.agent-step span {
  color: var(--muted);
  font-size: 12px;
}

.agent-step.active {
  border-color: var(--brand-start);
  background: var(--brand-light);
  color: var(--brand-start);
}

.agent-step.active b {
  background: var(--gradient);
  color: #fff;
}

.conversation-list,
.chat-panel,
.customer-card {
  overflow: hidden;
}

.transfer-card,
.route-card {
  display: grid;
  gap: 8px;
  margin: 12px;
  padding: 12px;
  border: 1px solid var(--brand-border);
  border-radius: 8px;
  background: var(--brand-light);
}

.route-card label {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--regular);
  font-size: 13px;
}

.route-card small,
.transfer-card span {
  color: var(--muted);
  line-height: 1.5;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.tabs button,
.filters button {
  min-height: 32px;
  font-size: 13px;
}

.tabs .active,
.filters .active,
.segment-list .active {
  border-color: var(--brand-start);
  background: var(--brand-light);
  color: var(--brand-start);
}

.conversation-item {
  display: grid;
  gap: 4px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.conversation-item.active {
  background: var(--brand-light);
}

.conversation-item strong {
  display: flex;
  justify-content: space-between;
}

.conversation-item span {
  color: var(--muted);
  font-size: 13px;
}

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

.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.chat-head-actions {
  display: flex;
  gap: 8px;
}

.chat-head span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.ai-summary {
  margin: 12px 16px;
  padding: 12px;
  border: 1px solid var(--brand-border);
  border-radius: 7px;
  background: var(--brand-light);
  color: var(--regular);
  font-size: 13px;
}

.ai-summary strong {
  color: var(--brand-start);
}

.messages {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  overflow: auto;
}

.message {
  max-width: 68%;
  padding: 11px 13px;
  border-radius: 8px;
  background: var(--fill);
  line-height: 1.5;
}

.message.agent {
  align-self: flex-end;
  border: 1px solid var(--brand-border);
  background: var(--brand-light);
}

.reply-tools {
  display: flex;
  gap: 8px;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
}

.reply-box {
  display: flex;
  gap: 8px;
  padding: 0 16px 16px;
}

.reply-box input {
  flex: 1;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.customer-card {
  padding: 16px;
}

.customer-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}

.customer-tabs button {
  position: relative;
  min-height: 32px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #51617f;
  font-size: 13px;
  font-weight: 800;
}

.customer-tabs button.active {
  color: #2867ff;
  background: transparent;
  box-shadow: none;
}

.customer-tabs button.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 44%;
  height: 3px;
  border-radius: 999px;
  background: #2867ff;
  transform: translateX(-50%);
}

.customer-tab {
  display: none;
}

.customer-tab.active {
  display: block;
}

.customer-profile {
  display: grid;
  gap: 14px;
}

#customer-profile-card {
  cursor: pointer;
  border-radius: 10px;
  outline: none;
}

#customer-profile-card:hover .customer-hero,
#customer-profile-card:focus-visible .customer-hero,
#customer-profile-card:hover .customer-meta-grid article,
#customer-profile-card:focus-visible .customer-meta-grid article {
  border-color: rgba(40, 103, 255, 0.35);
  box-shadow: 0 12px 26px rgba(40, 103, 255, 0.1);
}

#customer-profile-card:focus-visible {
  box-shadow: 0 0 0 3px rgba(40, 103, 255, 0.14);
}

.customer-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line-light);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: 0 10px 22px rgba(40, 103, 255, 0.05);
}

.avatar {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  flex: 0 0 74px;
  margin: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, #13263f, #0f172a);
  color: #fff;
  font-size: 34px;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
}

.customer-identity {
  min-width: 0;
}

.customer-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.customer-name-row h3 {
  margin: 0;
  color: #172033;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 900;
}

.customer-identity p {
  margin: 10px 0 0;
  color: #71809b;
  font-size: 13px;
  line-height: 1.5;
}

.customer-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.customer-meta-grid article {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line-light);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(40, 103, 255, 0.04);
}

.customer-meta-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.customer-meta-grid strong {
  color: #172033;
  min-width: 0;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-meta-grid article:first-child strong {
  font-size: 13px;
  letter-spacing: -0.2px;
}

.customer-tags-block {
  display: grid;
  gap: 10px;
}

.customer-tags-block h4 {
  margin: 0;
  color: #172033;
  font-size: 14px;
  font-weight: 900;
}

.tag {
  display: inline-block;
  padding: 3px 6px;
  border-radius: 5px;
  font-size: 12px;
}

.tag.red {
  border: 1px solid #ffccc7;
  background: #fff2f0;
  color: var(--red);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 0;
}

.tag-row span {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #cce7df;
  background: #f1fbf8;
  color: #0f766e;
  font-size: 12px;
  font-weight: 700;
}

.workspace-side-panels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.workspace-side-panels > section,
.workspace-bottom > section {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.capability-grid.compact {
  grid-template-columns: 1fr;
}

.workspace-bottom {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 14px;
}

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
  margin-bottom: 14px;
}

.strategy-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.strategy-flow button {
  min-height: 62px;
  border-color: var(--brand-border);
  background: var(--brand-light);
  color: var(--brand-start);
}

.health strong {
  display: block;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 44px;
}

.health span {
  color: var(--muted);
}

.table {
  display: grid;
  gap: 8px;
}

.table-row {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 0.7fr 0.7fr 0.6fr;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  font-size: 13px;
}

.table-row.head {
  background: var(--fill-light);
  color: var(--muted);
  font-weight: 700;
}

.filters {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

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

.segment-list button {
  justify-content: flex-start;
  text-align: left;
}

.profile-grid,
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.profile-grid article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--fill-light);
}

.profile-grid strong,
.profile-grid span {
  display: block;
}

.profile-grid span {
  margin-top: 8px;
  font-size: 20px;
  font-weight: 800;
}

.ab-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--brand-border);
  border-radius: 8px;
  background: var(--brand-light);
}

.warning li {
  border-color: #ffe58f;
  color: #ad6800;
  background: #fffbe6;
}

.ticket-demo {
  display: grid;
  gap: 16px;
}

.ticket-steps {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.ticket-step {
  display: grid;
  justify-items: start;
  gap: 6px;
  min-height: 112px;
  padding: 12px;
  text-align: left;
  background: #fff;
}

.ticket-step b {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--fill);
  color: var(--muted);
  font-size: 13px;
}

.ticket-step strong,
.ticket-step span {
  display: block;
}

.ticket-step strong {
  font-size: 14px;
}

.ticket-step span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.ticket-step.active {
  border-color: var(--brand-start);
  background: var(--brand-light);
  color: var(--brand-start);
  box-shadow: var(--shadow-brand);
}

.ticket-step.active b {
  background: var(--gradient);
  color: #fff;
}

.ticket-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 14px;
}

.ticket-action,
.ticket-record,
.ticket-list-wrap,
.ticket-capabilities > section,
.ticket-bottom > section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.ticket-action {
  display: grid;
  align-content: start;
  gap: 16px;
  min-height: 320px;
  padding: 20px;
}

.ticket-action-head span {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 8px;
  border: 1px solid var(--brand-border);
  border-radius: 999px;
  background: var(--brand-light);
  color: var(--brand-start);
  font-size: 12px;
}

.ticket-action-head h2 {
  margin-bottom: 10px;
  font-size: 22px;
}

.ticket-action-head p {
  margin-bottom: 0;
  color: var(--regular);
  line-height: 1.8;
}

.ticket-fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.ticket-fields div {
  min-height: 66px;
  padding: 12px;
  border: 1px solid var(--line-light);
  border-radius: 8px;
  background: var(--fill-light);
  color: var(--regular);
  font-size: 13px;
  line-height: 1.6;
}

.ticket-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.decision-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--brand-border);
  border-radius: 8px;
  background: var(--brand-light);
}

.decision-card p {
  margin: 0;
  color: var(--regular);
  line-height: 1.7;
}

.ticket-form {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.ticket-form label,
.full-label,
.collab-layout label {
  display: grid;
  gap: 7px;
  color: var(--regular);
  font-size: 13px;
}

.ticket-form input,
.ticket-form select,
.ticket-form textarea,
.full-label textarea,
.collab-layout textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
}

.ticket-form textarea,
.full-label textarea,
.collab-layout textarea {
  min-height: 92px;
  resize: vertical;
}

.span-2 {
  grid-column: span 2;
}

.form-error {
  min-height: 20px;
  margin: 0;
  color: var(--red);
  font-size: 13px;
}

.assignee-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.assignee-card {
  display: grid;
  gap: 8px;
  min-height: 110px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.assignee-card.active {
  border-color: var(--brand-start);
  background: var(--brand-light);
}

.assignee-card input {
  width: 16px;
  height: 16px;
}

.assignee-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.collab-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

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

.comment-list article {
  padding: 12px;
  border: 1px solid var(--line-light);
  border-radius: 8px;
  background: var(--fill-light);
}

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

.comment-list span {
  margin-top: 6px;
  color: var(--regular);
  font-size: 13px;
}

.notify-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.notify-grid label {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--fill-light);
}

.confirm-actions {
  display: flex;
  gap: 10px;
}

.ticket-record {
  padding: 16px;
}

.ticket-status-card {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--brand-border);
  border-radius: 8px;
  background: var(--brand-light);
}

.ticket-status-card span {
  color: var(--brand-start);
  font-size: 13px;
}

.ticket-timeline {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.ticket-timeline li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  font-size: 13px;
}

.ticket-timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: #fff;
}

.ticket-timeline li.done {
  color: var(--text);
}

.ticket-timeline li.done::before {
  border-color: var(--brand-start);
  background: var(--brand-start);
}

.ticket-timeline span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.ticket-bottom {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 14px;
}

.ticket-bottom > section {
  padding: 16px;
}

.ticket-loop {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}

.ticket-loop span {
  display: grid;
  place-items: center;
  min-height: 50px;
  border: 1px solid var(--brand-border);
  border-radius: 8px;
  background: var(--brand-light);
  color: var(--brand-start);
  font-size: 13px;
  font-weight: 700;
}

.ticket-loop i {
  display: none;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.value-grid article {
  padding: 12px;
  border: 1px solid var(--line-light);
  border-radius: 8px;
  background: var(--fill-light);
}

.value-grid strong,
.value-grid span {
  display: block;
}

.value-grid strong {
  margin-bottom: 6px;
  color: var(--green);
  font-size: 20px;
}

.value-grid span {
  color: var(--muted);
  font-size: 12px;
}

.ticket-list-wrap,
.ticket-capabilities > section {
  padding: 16px;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.capability-grid article,
.scenario-grid span {
  padding: 12px;
  border: 1px solid var(--line-light);
  border-radius: 8px;
  background: var(--fill-light);
}

.capability-grid strong,
.capability-grid span {
  display: block;
}

.capability-grid span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.scenario-grid span {
  color: var(--regular);
  font-size: 13px;
}

.ops-demo {
  display: grid;
  gap: 14px;
}

.ops-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.ops-step {
  display: grid;
  justify-items: start;
  gap: 6px;
  min-height: 104px;
  padding: 12px;
  text-align: left;
}

.ops-step b {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--fill);
  color: var(--muted);
  font-size: 12px;
}

.ops-step strong {
  font-size: 14px;
}

.ops-step span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.ops-step.active {
  border-color: var(--brand-start);
  background: var(--brand-light);
  color: var(--brand-start);
  box-shadow: var(--shadow-brand);
}

.ops-step.active b {
  background: var(--gradient);
  color: #fff;
}

.ops-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 14px;
}

.ops-source,
.ops-board,
.ops-card,
.ops-bottom > section {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

[data-ops-source] {
  cursor: pointer;
}

[data-ops-source]:hover,
[data-ops-source].active {
  border-color: rgba(40, 103, 255, 0.35);
  background: #eaf4ff;
  box-shadow: 0 12px 26px rgba(40, 103, 255, 0.1);
}

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

.source-list article {
  padding: 12px;
  border: 1px solid var(--line-light);
  border-radius: 8px;
  background: var(--fill-light);
}

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

.source-list span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.ops-main {
  display: grid;
  gap: 14px;
}

.ops-metrics {
  grid-template-columns: repeat(5, 1fr);
}

.ops-chart-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.ops-chart {
  display: grid;
  gap: 12px;
  min-height: 190px;
  padding: 14px;
  border: 1px solid var(--line-light);
  border-radius: 8px;
  background: var(--fill-light);
}

.mini-chart {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 10px;
  height: 125px;
}

.mini-chart i {
  display: block;
  height: var(--h);
  border-radius: 6px 6px 0 0;
  background: var(--gradient);
}

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

.ops-card {
  display: grid;
  gap: 12px;
}

.strategy-mini {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.strategy-mini button {
  border-color: var(--brand-border);
  background: var(--brand-light);
  color: var(--brand-start);
}

.route-map {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.route-map span {
  display: grid;
  place-items: center;
  min-height: 42px;
  border: 1px solid var(--line-light);
  border-radius: 8px;
  background: var(--fill-light);
  color: var(--regular);
  font-size: 12px;
}

.compact-table .table-row {
  grid-template-columns: repeat(5, 1fr);
}

.mini-line {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  gap: 8px;
  height: 90px;
  padding: 12px;
  border: 1px solid var(--line-light);
  border-radius: 8px;
  background: var(--fill-light);
}

.mini-line i {
  display: block;
  border-radius: 99px 99px 0 0;
  background: var(--gradient);
}

.mini-line i:nth-child(1) { height: 38%; }
.mini-line i:nth-child(2) { height: 58%; }
.mini-line i:nth-child(3) { height: 44%; }
.mini-line i:nth-child(4) { height: 70%; }
.mini-line i:nth-child(5) { height: 63%; }
.mini-line i:nth-child(6) { height: 82%; }

.ops-bottom {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 14px;
}

.ops-loop {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.ops-feedback {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--brand-border);
  border-radius: 8px;
  background: var(--brand-light);
  color: var(--brand-start);
  font-size: 13px;
}

.ai-demo {
  display: grid;
  gap: 14px;
}

.ai-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.ai-step {
  display: grid;
  justify-items: start;
  gap: 6px;
  min-height: 104px;
  padding: 12px;
  text-align: left;
}

.ai-step b {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--fill);
  color: var(--muted);
  font-size: 12px;
}

.ai-step strong {
  font-size: 14px;
}

.ai-step span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.ai-step.active {
  border-color: var(--brand-start);
  background: var(--brand-light);
  color: var(--brand-start);
  box-shadow: var(--shadow-brand);
}

.ai-step.active b {
  background: var(--gradient);
  color: #fff;
}

.ai-stage-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.25fr 1fr;
  gap: 14px;
}

.ai-stage,
.ai-bottom > section {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.channel-grid button.active,
.ai-stage button.active {
  border-color: var(--brand-start);
  background: var(--brand-light);
  color: var(--brand-start);
}

.customer-phone {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--fill-light);
}

.phone-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-light);
  background: #fff;
}

.phone-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 260px;
  padding: 12px;
  overflow: auto;
}

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

.ai-question-form input {
  flex: 1;
  min-width: 0;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.ai-analysis,
.rag-list {
  display: grid;
  gap: 10px;
}

.ai-analysis article,
.rag-list article,
.answer-card,
.ai-transfer-rule {
  padding: 12px;
  border: 1px solid var(--line-light);
  border-radius: 8px;
  background: var(--fill-light);
}

.ai-analysis strong,
.ai-analysis span,
.rag-list strong,
.rag-list span,
.ai-transfer-rule strong,
.ai-transfer-rule span {
  display: block;
}

.ai-analysis span,
.rag-list span,
.ai-transfer-rule span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.rag-box {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.answer-card {
  display: grid;
  gap: 10px;
}

.answer-card p {
  margin: 0;
  color: var(--regular);
  line-height: 1.7;
}

.branch-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0;
}

.ai-feedback {
  padding: 12px;
  border: 1px solid var(--brand-border);
  border-radius: 8px;
  background: var(--brand-light);
  color: var(--brand-start);
  font-size: 13px;
}

.ai-transfer-rule {
  margin-top: 12px;
}

.ai-transfer-panel {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #cce7df;
  border-radius: 8px;
  background: linear-gradient(180deg, #f1fbf8, #f8fbff);
}

.ai-transfer-panel .panel-head {
  min-height: auto;
  margin-bottom: 0;
}

.transfer-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.transfer-progress article {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(204, 231, 223, 0.95);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.76);
}

.transfer-progress strong,
.transfer-sync strong {
  color: #172033;
  font-size: 13px;
  font-weight: 900;
}

.transfer-progress span,
.transfer-sync span {
  color: #71809b;
  font-size: 12px;
  line-height: 1.5;
}

.transfer-sync {
  display: grid;
  gap: 6px;
  padding: 10px;
  border-left: 4px solid #0f9f8f;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.74);
}

.ai-bottom {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 14px;
}

.ai-capabilities {
  grid-template-columns: repeat(4, 1fr);
}

.ai-scenes {
  grid-template-columns: repeat(2, 1fr);
}

dialog {
  width: 520px;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.25);
}

dialog::backdrop {
  background: rgba(9, 20, 36, 0.42);
}

.modal {
  display: grid;
  gap: 12px;
}

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

.modal input,
.modal select,
.modal textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.modal textarea {
  min-height: 90px;
  resize: vertical;
}

@media (max-width: 900px) {
  body {
    min-width: 0;
  }

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

  .sidebar {
    position: static;
    height: auto;
  }

  .nav {
    grid-template-columns: repeat(2, 1fr);
  }

  .topbar,
  .top-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .search {
    width: 100%;
  }

  .metric-grid,
  .dashboard-grid,
  .two-col,
  .workspace,
  .settings-grid {
    grid-template-columns: 1fr;
    height: auto;
  }

  .flow,
  .strategy-flow {
    grid-template-columns: 1fr 1fr;
  }

  .table-row {
    grid-template-columns: 1fr;
  }
}

/* Visual refresh */
:root {
  --bg: #f2f4f7;
  --surface: #ffffff;
  --surface-2: #f7fbff;
  --fill: #edf2f7;
  --fill-light: #f8fafc;
  --line: #d8e1ea;
  --line-light: #e8eef5;
  --brand-start: #2563eb;
  --brand-end: #0f9f8f;
  --brand-hover: #1d4ed8;
  --brand-light: #eaf3ff;
  --brand-border: #c9ddff;
  --text: #111827;
  --regular: #475569;
  --muted: #7b8794;
  --disabled: #b6c2cf;
  --blue: #2563eb;
  --teal: #0f9f8f;
  --green: #16a34a;
  --amber: #d97706;
  --red: #dc2626;
  --purple: #2867ff;
  --gradient: linear-gradient(135deg, #2867ff 0%, #32c4ff 100%);
  --gradient-hover: linear-gradient(135deg, #1f5be8 0%, #18b6d9 100%);
  --shadow: 0 12px 28px rgba(31, 41, 55, 0.07);
  --shadow-lg: 0 22px 58px rgba(15, 23, 42, 0.14);
  --shadow-brand: 0 14px 30px rgba(37, 99, 235, 0.18);
  --radius: 8px;
}

html {
  background: var(--bg);
}

body {
  min-width: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(238, 243, 248, 0.94)),
    radial-gradient(circle at 20% 0%, rgba(15, 159, 143, 0.12), transparent 34%),
    var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

button,
input,
select,
textarea {
  transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

button {
  min-height: 38px;
  border-color: var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--regular);
  font-weight: 650;
}

button:hover {
  border-color: rgba(37, 99, 235, 0.38);
  background: #f3f8ff;
  color: var(--brand-start);
}

button:active {
  transform: translateY(1px);
}

input,
select,
textarea {
  background: #fff;
  color: var(--text);
}

input::placeholder {
  color: #9aa7b5;
}

.app-shell {
  grid-template-columns: 260px minmax(0, 1fr);
}

.login-screen {
  grid-template-columns: minmax(520px, 1fr) minmax(420px, 0.78fr);
  background: #f8fafc;
}

.login-visual {
  padding: 48px 58px;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.78), rgba(22, 78, 99, 0.64)),
    linear-gradient(135deg, #0f172a 0%, #155e75 55%, #0f766e 100%);
}

.login-visual::before,
.login-visual::after {
  display: none;
}

.login-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  display: block;
  border-radius: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.64), transparent 88%);
  filter: none;
}

.login-copy h1 {
  max-width: 720px;
  font-size: 46px;
  letter-spacing: 0;
}

.login-copy p:last-child {
  color: rgba(255, 255, 255, 0.82);
}

.login-stats article,
.login-brand .brand-mark {
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.13);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.login-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(242, 248, 252, 0.94)),
    var(--fill-light);
}

.login-card {
  width: min(100%, 450px);
  padding: 34px;
  border-color: rgba(216, 225, 234, 0.72);
  border-radius: var(--radius);
}

.sidebar {
  padding: 20px 16px;
  border-right: 1px solid rgba(216, 225, 234, 0.78);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.94)),
    var(--surface);
}

.brand {
  padding: 6px 4px 22px;
}

.brand-mark {
  border-radius: var(--radius);
  background: linear-gradient(135deg, #2563eb, #0f9f8f);
  box-shadow: var(--shadow-brand);
}

.nav {
  gap: 6px;
}

.nav-item {
  min-height: 44px;
  padding: 10px 11px;
  border-radius: var(--radius);
  font-weight: 700;
}

.nav-item span {
  background: #eef4fb;
}

.nav-item.active,
.nav-item:hover {
  background: #102033;
  color: #fff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.14);
}

.side-status {
  border: 0;
  background: #102033;
  color: #fff;
  box-shadow: var(--shadow);
}

.side-status p,
.side-status span {
  color: rgba(255, 255, 255, 0.72);
}

.side-status strong {
  color: #fff;
}

.main {
  min-width: 0;
  padding: 24px 28px 34px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 72px;
  margin: -24px -28px 22px;
  padding: 18px 28px;
  border-bottom: 1px solid rgba(216, 225, 234, 0.78);
  background: rgba(248, 250, 252, 0.86);
  backdrop-filter: blur(16px);
}

.eyebrow {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
}

h1 {
  color: var(--text);
  font-size: 28px;
  letter-spacing: 0;
}

h2 {
  color: var(--text);
  font-size: 16px;
  line-height: 1.35;
}

.top-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.search {
  width: min(32vw, 340px);
  min-width: 260px;
  border-color: var(--line-light);
  border-radius: var(--radius);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.primary-btn {
  background: linear-gradient(135deg, #2867ff 0%, #2bb8ff 100%);
  box-shadow: var(--shadow-brand);
}

.primary-btn:hover {
  background: linear-gradient(135deg, #1f5be8 0%, #159df2 100%);
}

.ghost-btn {
  background: rgba(255, 255, 255, 0.72);
}

.notify-panel,
.search-results,
dialog {
  border: 1px solid rgba(216, 225, 234, 0.88);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.metric,
.panel,
.customer-card,
.conversation-list,
.chat-panel,
.workspace-side-panels > section,
.workspace-bottom > section,
.ticket-action,
.ticket-record,
.ticket-list-wrap,
.ticket-capabilities > section,
.ticket-bottom > section,
.ops-source,
.ops-board,
.ops-card,
.ops-bottom > section,
.ai-stage,
.ai-bottom > section {
  border-color: rgba(216, 225, 234, 0.86);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.metric,
.panel,
.customer-card,
.conversation-list,
.chat-panel,
.workspace-side-panels > section,
.workspace-bottom > section,
.ticket-action,
.ticket-record,
.ticket-list-wrap,
.ticket-capabilities > section,
.ticket-bottom > section,
.ops-source,
.ops-board,
.ops-card,
.ops-bottom > section,
.ai-stage,
.ai-bottom > section,
.value-grid article,
.capability-grid article,
.scenario-grid span,
.profile-grid article,
.source-list article,
.ops-chart,
.ai-analysis article,
.rag-list article,
.answer-card,
.ai-transfer-rule,
.comment-list article,
.ticket-fields div,
.table-row,
.rank-list li,
.compact-list li {
  background: rgba(255, 255, 255, 0.94);
}

.metric {
  position: relative;
  min-height: 124px;
  overflow: hidden;
  padding: 18px;
}

.metric::after {
  content: "";
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(15, 159, 143, 0.14));
}

.metric::after {
  display: none;
}

.metric::before {
  content: "";
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 1;
  display: none;
  width: 22px;
  height: 22px;
  background: #2867ff;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.metric-consult::before {
  display: block;
  right: 16px;
  bottom: 14px;
  width: 96px;
  height: 96px;
  background-image: url("./metric-consult.jpg");
  background-color: transparent;
}

.metric-consult::after {
  display: none;
}

.metric-ai::before {
  display: block;
  right: 16px;
  bottom: 14px;
  width: 96px;
  height: 96px;
  background-image: url("./metric-ai.jpg");
  background-color: transparent;
}

.metric-ai::after {
  display: none;
}

.metric-human::before {
  display: block;
  right: 16px;
  bottom: 14px;
  width: 96px;
  height: 96px;
  background-image: url("./metric-human.jpg");
  background-color: transparent;
}

.metric-human::after {
  display: none;
}

.metric-satisfaction::before {
  display: block;
  right: 16px;
  bottom: 14px;
  width: 96px;
  height: 96px;
  background-image: url("./metric-satisfaction.jpg");
  background-color: transparent;
}

.metric-satisfaction::after {
  display: none;
}

.metric strong {
  margin: 9px 0 6px;
  background: none;
  color: var(--text);
  -webkit-text-fill-color: currentColor;
}

.metric span {
  color: #64748b;
  font-weight: 700;
}

.metric em {
  width: fit-content;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #ef4444;
  font-size: 12px;
  font-weight: 800;
}

.metric em.down {
  background: transparent;
  color: #16a34a;
}

.trend-up {
  color: #ef4444;
  font-weight: 800;
}

.trend-down {
  color: #16a34a;
  font-weight: 800;
}

.dashboard-grid,
.workspace-demo,
.ai-demo,
.ops-demo,
.ticket-demo {
  gap: 16px;
}

.panel {
  padding: 18px;
}

.panel-head {
  min-height: 34px;
  align-items: flex-start;
}

.panel-head span {
  color: #7b8794;
}

.flow,
.ticket-loop,
.route-map {
  gap: 10px;
}

.flow div,
.ticket-loop span,
.route-map span {
  border-color: #dbeafe;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #f8fbff, #edf7f5);
  color: #1e4f8f;
}

.insight-list article {
  border-left-color: #0f9f8f;
  background: #f8fafc;
}

.bars b,
.mini-chart i,
.mini-line i {
  background: linear-gradient(180deg, #2f6dff 0%, #28cfff 100%);
}

.bars b {
  background: linear-gradient(90deg, #2f6dff 0%, #28cfff var(--w), #eef7ff var(--w));
}

.workspace {
  grid-template-columns: minmax(250px, 0.82fr) minmax(520px, 1.7fr) minmax(280px, 0.98fr);
  gap: 16px;
  min-height: 700px;
}

.agent-steps,
.ai-steps,
.ops-steps,
.ticket-steps {
  gap: 10px;
}

.agent-step,
.ai-step,
.ops-step,
.ticket-step {
  border-color: var(--line-light);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
}

.agent-step.active,
.ai-step.active,
.ops-step.active,
.ticket-step.active,
.tabs .active,
.filters .active,
.segment-list .active,
.customer-tabs button.active,
.channel-grid button.active,
.ai-stage button.active,
.assignee-card.active,
.conversation-item.active,
.notify-item.unread {
  border-color: rgba(37, 99, 235, 0.38);
  background: #eaf3ff;
  color: #1d4ed8;
}

.agent-step b,
.ai-step b,
.ops-step b,
.ticket-step b {
  background: #eef4fb;
}

.agent-step.active b,
.ai-step.active b,
.ops-step.active b,
.ticket-step.active b {
  background: linear-gradient(135deg, #2867ff 0%, #32c4ff 100%);
  color: #fff;
  box-shadow: 0 8px 18px rgba(40, 103, 255, 0.26);
}

.transfer-card,
.route-card,
.ai-summary,
.decision-card,
.ticket-status-card,
.ai-feedback,
.ops-feedback,
.ab-card {
  border-color: #cce7df;
  background: linear-gradient(180deg, #f1fbf8, #f8fbff);
}

.ai-summary strong,
.ticket-status-card span,
.ops-feedback,
.ai-feedback,
.tag-row span {
  color: #0f766e;
}

.tabs {
  border-bottom-color: var(--line-light);
}

.conversation-item {
  border-bottom-color: var(--line-light);
}

.conversation-item:hover,
.notify-item:hover,
.search-result-item:hover,
.segment-list button:hover,
.rank-list li:hover {
  background: #f8fbff;
}

.chat-head,
.phone-head,
.reply-tools,
.ai-question-form {
  border-color: var(--line-light);
}

.message {
  border-radius: var(--radius);
  background: #eef2f7;
}

.message.agent {
  border-color: #cce7df;
  background: #eaf8f5;
}

.reply-tools {
  flex-wrap: wrap;
}

.reply-tools button {
  min-height: 34px;
}

.customer-tabs,
.tabs {
  gap: 8px;
}

.tag.red {
  background: #fff5f5;
}

.tag-row span {
  border-color: #cce7df;
  background: #f1fbf8;
}

.app-shell .customer-profile {
  gap: 12px;
}

.app-shell .customer-hero {
  border-color: rgba(207, 228, 255, 0.9);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 250, 255, 0.92));
}

.app-shell .avatar {
  border-radius: 18px;
  background: linear-gradient(135deg, #13263f, #0f172a);
}

.app-shell .customer-meta-grid article {
  border-color: rgba(207, 228, 255, 0.84);
  background: rgba(255, 255, 255, 0.96);
}

.app-shell .customer-meta-grid strong {
  font-size: 14px;
  line-height: 1.25;
}

.app-shell .customer-meta-grid article:first-child strong {
  font-size: 13px;
}

.app-shell .customer-tags-block h4,
.app-shell .customer-name-row h3 {
  color: #172033;
}

.app-shell .customer-identity p,
.app-shell .customer-meta-grid span {
  color: #71809b;
}

.table-row {
  border-color: var(--line-light);
}

.table-row.head {
  background: #f1f5f9;
  color: #64748b;
}

.ticket-stage {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 16px;
}

.ticket-action {
  min-height: 360px;
}

.ticket-action-head span {
  border-color: #cce7df;
  background: #f1fbf8;
  color: #0f766e;
  font-weight: 800;
}

.ticket-action-head h2 {
  font-size: 24px;
}

.ticket-form input,
.ticket-form select,
.ticket-form textarea,
.full-label textarea,
.collab-layout textarea,
.reply-box input,
.ai-question-form input,
.modal input,
.modal select,
.modal textarea,
.login-card input[type="text"],
.login-card input[type="password"] {
  border-color: var(--line);
  border-radius: var(--radius);
}

.assignee-card,
.notify-grid label {
  border-color: var(--line-light);
  background: #f8fafc;
}

.ticket-timeline li::before {
  border-color: #cbd5e1;
}

.ticket-timeline li.done::before {
  border-color: #0f9f8f;
  background: #0f9f8f;
}

.capability-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.profile-grid article,
.value-grid article,
.capability-grid article,
.scenario-grid span,
.source-list article,
.ops-chart,
.ai-analysis article,
.rag-list article,
.answer-card,
.ai-transfer-rule {
  border-color: var(--line-light);
}

.value-grid strong {
  color: #0f766e;
}

.ops-layout {
  grid-template-columns: minmax(230px, 0.72fr) minmax(0, 1.9fr);
  gap: 16px;
}

.ops-workgrid {
  gap: 16px;
}

.ops-source h2,
.ops-board h2,
.ops-card h2,
.ai-stage h2 {
  line-height: 1.35;
}

.ai-stage-grid {
  grid-template-columns: minmax(290px, 0.9fr) minmax(330px, 1.14fr) minmax(300px, 0.96fr);
  gap: 16px;
}

.customer-phone {
  border-color: var(--line-light);
  border-radius: var(--radius);
  background: #edf2f7;
}

.phone-messages {
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.92), rgba(241, 245, 249, 0.92)),
    #f8fafc;
}

dialog {
  width: min(560px, calc(100vw - 32px));
  padding: 0;
}

.modal {
  padding: 20px;
}

.success-modal {
  justify-items: center;
  gap: 14px;
  padding: 30px 28px 28px;
  text-align: center;
}

.success-modal h2 {
  margin: 0;
  color: #172033;
  font-size: 22px;
  font-weight: 900;
}

.success-modal p {
  max-width: 360px;
  margin: 0;
  color: #71809b;
  font-size: 14px;
  line-height: 1.7;
}

.success-modal .primary-btn {
  min-width: 128px;
  margin-top: 4px;
}

.success-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2867ff 0%, #32c4ff 100%);
  color: #fff;
  box-shadow: 0 14px 30px rgba(40, 103, 255, 0.22);
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}

.profile-detail-modal {
  gap: 18px;
}

.modal-icon-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 50%;
  background: #fff;
}

.modal-icon-close svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
}

.profile-summary {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(216, 231, 248, 0.92);
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.profile-summary h3 {
  margin: 0 0 8px;
  color: #172033;
  font-size: 22px;
  font-weight: 900;
}

.profile-summary p {
  margin: 0 0 10px;
  color: #71809b;
  font-size: 14px;
  line-height: 1.55;
}

.profile-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.profile-detail-grid article {
  display: grid;
  gap: 8px;
  min-height: 112px;
  padding: 14px;
  border: 1px solid rgba(216, 231, 248, 0.92);
  border-radius: 8px;
  background: #fff;
}

.profile-detail-grid strong {
  color: #172033;
  font-size: 15px;
  font-weight: 900;
}

.profile-detail-grid span {
  color: #71809b;
  font-size: 13px;
  line-height: 1.65;
}

dialog::backdrop {
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(3px);
}

.danger-btn {
  border-color: #fecaca;
  background: #fff;
  color: var(--red);
}

.danger-btn:hover {
  border-color: #fca5a5;
  background: #fef2f2;
  color: #b91c1c;
}

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

  .workspace,
  .ai-stage-grid,
  .ops-layout,
  .ticket-stage {
    grid-template-columns: 1fr;
  }

  .customer-card {
    min-height: auto;
  }

  .agent-steps,
  .ai-steps,
  .ops-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ticket-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .login-screen {
    grid-template-columns: 1fr;
  }

  .login-visual {
    min-height: auto;
    gap: 48px;
    padding: 34px 24px;
  }

  .login-copy h1 {
    font-size: 34px;
  }

  .login-panel {
    padding: 28px 18px;
  }

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

  .sidebar {
    position: static;
    height: auto;
  }

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

  .side-status {
    margin-top: 16px;
  }

  .main {
    padding: 18px 16px 28px;
  }

  .topbar {
    position: relative;
    margin: -18px -16px 18px;
    padding: 16px;
  }

  .topbar,
  .top-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .top-actions {
    width: 100%;
  }

  .search {
    width: 100%;
    min-width: 0;
  }

  .search-results,
  .notify-panel {
    position: static;
    width: 100%;
    margin-top: 10px;
  }

  .metric-grid,
  .dashboard-grid,
  .workspace-side-panels,
  .workspace-bottom,
  .ticket-bottom,
  .ops-bottom,
  .ai-bottom,
  .two-col,
  .settings-grid,
  .ops-chart-grid,
  .ops-workgrid,
  .ticket-form,
  .assignee-grid,
  .collab-layout,
  .notify-grid {
    grid-template-columns: 1fr;
  }

  .flow,
  .ticket-loop,
  .ops-loop,
  .route-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .table-row,
  .compact-table .table-row {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .login-stats,
  .agent-steps,
  .ai-steps,
  .ops-steps,
  .ticket-steps,
  .nav,
  .flow,
  .ticket-loop,
  .ops-loop,
  .route-map,
  .profile-grid,
  .value-grid,
  .channel-grid,
  .branch-actions,
  .customer-tabs {
    grid-template-columns: 1fr;
  }

  .brand strong {
    font-size: 13px;
  }

  .login-copy h1,
  h1 {
    font-size: 28px;
  }

  .chat-head,
  .chat-head-actions,
  .reply-box,
  .ai-question-form,
  .ticket-actions,
  .confirm-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .message {
    max-width: 92%;
  }
}

/* Login page inspired by cloud AI product entrances */
.login-screen {
  position: relative;
  grid-template-columns: minmax(680px, 1fr) minmax(390px, 486px);
  min-height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(209, 235, 255, 0.78), rgba(243, 250, 255, 0.96) 58%, #f8fbff),
    radial-gradient(circle at 46% 34%, rgba(37, 99, 235, 0.2), transparent 30%),
    radial-gradient(circle at 68% 22%, rgba(15, 159, 143, 0.15), transparent 24%),
    linear-gradient(135deg, #e8f6ff 0%, #f8fbff 55%, #effaf7 100%);
}

.login-screen::before {
  content: "";
  position: absolute;
  inset: auto -8% 0 -8%;
  height: 48%;
  background:
    radial-gradient(ellipse at 45% 10%, rgba(37, 99, 235, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(223, 240, 255, 0.9));
  clip-path: polygon(0 24%, 18% 36%, 38% 20%, 58% 38%, 78% 22%, 100% 34%, 100% 100%, 0 100%);
  pointer-events: none;
}

.login-screen::after {
  content: "";
  position: absolute;
  left: 30%;
  bottom: 10%;
  width: 34%;
  height: 13%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(37, 99, 235, 0.16), rgba(37, 99, 235, 0.03) 52%, transparent 70%);
  filter: blur(4px);
  pointer-events: none;
}

.login-visual {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100vh;
  padding: 22px 48px 34px;
  overflow: visible;
  background: transparent;
  color: var(--text);
}

.login-visual::before {
  display: none;
}

.login-topnav {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.login-brand {
  color: var(--text);
}

.login-brand .brand-mark {
  width: 42px;
  height: 42px;
  background: var(--gradient);
  box-shadow: var(--shadow-brand);
}

.login-brand .brand-mark img {
  width: 28px;
}

.login-brand span,
.login-copy .eyebrow,
.login-copy p:last-child {
  color: #64748b;
}

.login-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.login-links button {
  min-height: 32px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.login-links button:hover {
  background: rgba(255, 255, 255, 0.48);
  color: var(--brand-start);
}

.login-links .login-link-primary {
  padding: 0 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(15, 159, 143, 0.16));
  color: #1d4ed8;
}

.login-hero-layout {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(330px, 1fr) auto;
  align-self: stretch;
  min-height: 0;
  padding: 34px 0 8px;
  z-index: 2;
}

.login-copy {
  position: relative;
  max-width: 560px;
  margin-left: 52px;
  z-index: 4;
}

.login-copy h1 {
  max-width: 640px;
  margin-bottom: 12px;
  color: #1f2937;
  font-size: 34px;
  line-height: 1.25;
}

.login-copy p:last-child {
  max-width: 450px;
  font-size: 14px;
  line-height: 1.8;
}

.login-hero-graphic {
  position: relative;
  place-self: center;
  width: min(56vw, 640px);
  min-width: 480px;
  aspect-ratio: 1.2;
  margin-top: -12px;
  z-index: 2;
}

.login-hero-graphic::before,
.login-hero-graphic::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 63%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
}

.login-hero-graphic::before {
  width: 88%;
  height: 26%;
  border: 1px solid rgba(37, 99, 235, 0.15);
  background: rgba(255, 255, 255, 0.32);
  box-shadow: 0 24px 72px rgba(37, 99, 235, 0.18);
}

.login-hero-graphic::after {
  width: 56%;
  height: 12%;
  border: 1px solid rgba(15, 159, 143, 0.14);
}

.hero-orbit {
  position: absolute;
  left: 50%;
  top: 56%;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-14deg);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.08);
}

.orbit-one {
  width: 82%;
  height: 48%;
}

.orbit-two {
  width: 66%;
  height: 36%;
  transform: translate(-50%, -50%) rotate(18deg);
}

.hero-card {
  position: absolute;
  left: 50%;
  top: 42%;
  display: grid;
  place-items: center;
  width: 182px;
  height: 158px;
  transform: translate(-50%, -50%) rotate(-8deg);
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 32px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(228, 241, 255, 0.94)),
    #fff;
  box-shadow:
    0 34px 76px rgba(37, 99, 235, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 15px;
  border-radius: 23px;
  background: var(--gradient);
  box-shadow: inset 0 1px 12px rgba(255, 255, 255, 0.26);
}

.hero-card::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: -16px;
  height: 24px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.18);
  filter: blur(10px);
}

.hero-card img {
  position: relative;
  z-index: 1;
  width: 78px;
  filter: drop-shadow(0 7px 14px rgba(0, 0, 0, 0.12));
}

.hero-card strong {
  position: absolute;
  right: 26px;
  bottom: 22px;
  z-index: 2;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  font-weight: 900;
}

.hero-module {
  position: absolute;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
  color: #2563eb;
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.12);
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.module-doc {
  left: 22%;
  top: 30%;
}

.module-chat {
  right: 22%;
  top: 33%;
  color: #0f766e;
}

.module-play {
  left: 30%;
  bottom: 30%;
  color: #2867ff;
}

.module-image {
  right: 28%;
  bottom: 31%;
  color: #d97706;
}

.hero-chip {
  position: absolute;
  display: inline-grid;
  place-items: center;
  min-height: 30px;
  padding: 0 14px;
  border: 1px solid rgba(201, 221, 255, 0.8);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: #2563eb;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.11);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.chip-knowledge {
  left: 10%;
  top: 42%;
}

.chip-chat {
  right: 9%;
  top: 44%;
}

.chip-route {
  left: 17%;
  bottom: 20%;
  color: #0f766e;
}

.chip-ticket {
  right: 15%;
  bottom: 20%;
  color: #0f766e;
}

.chip-data {
  left: 43%;
  bottom: 8%;
}

.hero-dot {
  position: absolute;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(232, 247, 255, 0.88));
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.12);
}

.dot-one {
  left: 26%;
  top: 18%;
}

.dot-two {
  right: 25%;
  top: 20%;
  width: 34px;
  height: 34px;
}

.login-feature-cards {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: min(760px, 88%);
  margin: 0 auto;
}

.login-feature-cards article {
  display: grid;
  grid-template-columns: 48px 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  min-height: 76px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.1);
  backdrop-filter: blur(14px);
}

.login-feature-cards span {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--gradient);
  color: #fff;
  font-weight: 900;
}

.login-feature-cards article:nth-child(2) span {
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
}

.login-feature-cards article:nth-child(3) span {
  background: linear-gradient(135deg, #0f9f8f, #16a34a);
}

.login-feature-cards strong {
  color: #1f2937;
  font-size: 14px;
}

.login-feature-cards small {
  color: #7b8794;
  font-size: 12px;
  line-height: 1.5;
}

.login-panel {
  position: relative;
  z-index: 2;
  place-items: center start;
  padding: 84px 64px 80px 12px;
  background: transparent;
}

.login-card {
  position: relative;
  width: min(100%, 374px);
  padding: 30px;
  border: 1px solid rgba(216, 225, 234, 0.82);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 24px 68px rgba(37, 99, 235, 0.13);
  backdrop-filter: blur(18px);
}

.login-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 48px;
  height: 48px;
  border-radius: 0 var(--radius) 0 20px;
  background:
    linear-gradient(135deg, transparent 0 49%, rgba(37, 99, 235, 0.28) 50% 54%, transparent 55%),
    linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(15, 159, 143, 0.12));
}

.login-card h2 {
  font-size: 23px;
}

.login-card input[type="text"],
.login-card input[type="password"] {
  height: 40px;
  background: rgba(255, 255, 255, 0.92);
}

.login-submit,
.sso-btn {
  height: 40px;
}

@media (max-width: 1180px) {
  .login-screen {
    grid-template-columns: 1fr;
  }

  .login-visual {
    min-height: 720px;
    padding: 28px 32px 24px;
  }

  .login-panel {
    place-items: center;
    padding: 28px 24px 42px;
  }

  .login-hero-graphic {
    width: min(58vw, 520px);
    min-width: 420px;
  }

  .login-copy {
    margin-left: 24px;
  }
}

@media (max-width: 760px) {
  .login-visual {
    grid-template-rows: auto auto auto;
    min-height: auto;
    gap: 24px;
    padding: 24px 18px;
  }

  .login-topnav {
    align-items: flex-start;
    flex-direction: column;
  }

  .login-links {
    flex-wrap: wrap;
  }

  .login-hero-layout {
    gap: 18px;
    padding-top: 12px;
  }

  .login-copy {
    margin-left: 0;
    margin-top: 18px;
  }

  .login-copy h1 {
    font-size: 29px;
  }

  .login-hero-graphic {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    min-width: 0;
    max-width: 430px;
    margin: 0 auto;
  }

  .login-feature-cards {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .hero-card {
    width: 148px;
    height: 128px;
  }

  .hero-card img {
    width: 64px;
  }

  .hero-chip {
    padding: 0 10px;
    font-size: 11px;
  }

  .hero-module {
    width: 46px;
    height: 46px;
    border-radius: 12px;
  }
}

/* Login final composition */
.login-screen {
  grid-template-columns: minmax(760px, 1fr) minmax(420px, 520px);
  background:
    radial-gradient(circle at 22% 20%, rgba(255, 255, 255, 0.86), transparent 26%),
    radial-gradient(circle at 58% 18%, rgba(15, 159, 143, 0.16), transparent 26%),
    linear-gradient(135deg, #edf8ff 0%, #dff0ff 48%, #f5fbff 100%);
}

.login-screen::before {
  height: 54%;
  background:
    radial-gradient(ellipse at 35% 10%, rgba(37, 99, 235, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(224, 241, 255, 0.92));
  clip-path: polygon(0 20%, 18% 46%, 40% 28%, 61% 48%, 79% 32%, 100% 42%, 100% 100%, 0 100%);
}

.login-screen::after {
  left: 12%;
  bottom: 0;
  width: 72%;
  height: 24%;
  background:
    radial-gradient(ellipse at 42% 22%, rgba(37, 99, 235, 0.18), transparent 42%),
    radial-gradient(ellipse at 72% 62%, rgba(50, 196, 255, 0.12), transparent 38%);
  filter: blur(2px);
}

.login-visual {
  padding: 44px 0 38px 72px;
}

.login-topnav {
  padding-left: 0;
}

.hero-brand .brand-mark {
  width: 60px;
  height: 60px;
  border-radius: 18px;
}

.hero-brand .brand-mark img {
  width: 40px;
}

.hero-brand strong {
  font-size: 31px;
  letter-spacing: 0;
}

.hero-brand span {
  margin-top: 2px;
  color: #7b8794;
  font-size: 13px;
  letter-spacing: 5px;
}

.login-hero-layout {
  grid-template-rows: auto minmax(430px, 1fr) auto;
  padding: 54px 0 0;
}

.login-copy {
  margin-left: 0;
}

.login-copy .eyebrow {
  display: none;
}

.login-copy h1 {
  max-width: 760px;
  color: #0f2b7a;
  font-size: 42px;
  font-weight: 900;
  line-height: 1.22;
}

.login-copy p:last-child {
  max-width: 610px;
  color: #1f3c68;
  font-size: 20px;
  line-height: 1.85;
}

.login-hero-graphic {
  width: min(58vw, 760px);
  min-width: 620px;
  margin: -12px 0 0 54px;
  place-self: center start;
}

.login-hero-graphic::before {
  top: 72%;
  width: 82%;
  height: 24%;
  background: rgba(255, 255, 255, 0.42);
  box-shadow:
    0 24px 70px rgba(37, 99, 235, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.login-hero-graphic::after {
  top: 74%;
  width: 58%;
  height: 12%;
  border-color: rgba(37, 99, 235, 0.22);
}

.hero-orbit {
  top: 66%;
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 16px 36px rgba(37, 99, 235, 0.12),
    inset 0 0 22px rgba(37, 99, 235, 0.08);
}

.orbit-one {
  width: 86%;
  height: 50%;
}

.orbit-two {
  width: 68%;
  height: 38%;
}

.hero-card {
  top: 46%;
  width: 210px;
  height: 186px;
  border-radius: 46px;
  transform: translate(-50%, -50%);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(232, 246, 255, 0.96)),
    #fff;
  box-shadow:
    0 34px 74px rgba(37, 99, 235, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.hero-card::before {
  inset: 22px 24px 32px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 78% 22%, rgba(255, 255, 255, 0.7), transparent 14%),
    var(--gradient);
}

.hero-card::after {
  left: 22px;
  right: 22px;
  bottom: -22px;
  height: 42px;
  background: rgba(37, 99, 235, 0.22);
}

.hero-card img {
  width: 86px;
  transform: translateY(-4px);
}

.hero-card strong {
  right: 42px;
  bottom: 42px;
  font-size: 19px;
}

.hero-card .unused {
  display: none;
}

.hero-bubble {
  position: absolute;
  left: 16%;
  top: 38%;
  display: grid;
  place-items: center;
  width: 88px;
  height: 72px;
  border-radius: 18px 18px 6px 18px;
  background: linear-gradient(135deg, #3b82f6, #0f9f8f);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 46px rgba(37, 99, 235, 0.2);
  font-size: 30px;
  font-weight: 900;
}

.hero-panel {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.12);
  backdrop-filter: blur(12px);
}

.panel-user {
  right: 21%;
  top: 31%;
  width: 132px;
  height: 100px;
}

.panel-user::before,
.panel-user::after,
.panel-chart::before,
.panel-chart::after {
  content: "";
  position: absolute;
  border-radius: 999px;
}

.panel-user::before {
  left: 20px;
  top: 18px;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #dbeafe, #60a5fa);
}

.panel-user::after {
  left: 62px;
  top: 25px;
  width: 46px;
  height: 9px;
  background: #bdd7ff;
  box-shadow: -1px 25px 0 #bdd7ff, -1px 45px 0 #d7e6ff;
}

.panel-chart {
  right: 9%;
  bottom: 28%;
  width: 142px;
  height: 112px;
}

.panel-chart::before {
  left: 22px;
  bottom: 28px;
  width: 90px;
  height: 34px;
  border: 4px solid #3b82f6;
  border-top: 0;
  border-left: 0;
  border-radius: 0;
  transform: skewY(-22deg);
}

.panel-chart::after {
  right: 24px;
  top: 26px;
  width: 12px;
  height: 12px;
  background: #3b82f6;
}

.hero-module {
  top: auto;
  bottom: 19%;
  width: 58px;
  height: 58px;
  border-radius: 14px;
  color: #fff;
  font-size: 18px;
}

.module-doc {
  left: 30%;
  background: linear-gradient(135deg, #2563eb, #60a5fa);
}

.module-chat {
  left: 43%;
  background: linear-gradient(135deg, #0f9f8f, #5eead4);
}

.module-play {
  left: 56%;
  background: linear-gradient(135deg, #2867ff, #32c4ff);
}

.module-image {
  left: 69%;
  background: linear-gradient(135deg, #f59e0b, #f97316);
}

.hero-chip {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  color: #0f2b7a;
  font-size: 14px;
}

.chip-knowledge {
  left: 29.5%;
  bottom: 12%;
  top: auto;
}

.chip-chat {
  left: 42.5%;
  right: auto;
  bottom: 12%;
  top: auto;
}

.chip-route {
  left: 55.5%;
  bottom: 12%;
}

.chip-ticket {
  left: 68.5%;
  right: auto;
  bottom: 12%;
}

.chip-data,
.dot-one,
.dot-two {
  display: none;
}

.login-feature-cards {
  width: min(790px, 92%);
  margin: -10px 0 0 0;
  gap: 14px;
}

.login-feature-cards article {
  min-height: 112px;
  grid-template-columns: 64px 1fr;
  padding: 18px;
  background: rgba(255, 255, 255, 0.66);
}

.login-feature-cards span {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  font-size: 20px;
}

.login-feature-cards strong {
  font-size: 16px;
}

.login-feature-cards small {
  font-size: 13px;
}

.login-panel {
  display: grid;
  place-items: center;
  padding: 0 64px 0 10px;
}

.login-card {
  width: min(100%, 420px);
  min-height: 585px;
  padding: 46px 42px 36px;
  gap: 22px;
  border-color: rgba(255, 255, 255, 0.82);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 26px 78px rgba(37, 99, 235, 0.14);
}

.login-card::before {
  display: none;
}

.login-card-title {
  text-align: center;
}

.login-card-title h2 {
  margin-bottom: 8px;
  color: #111827;
  font-size: 28px;
  font-weight: 900;
}

.login-card-title span {
  color: #64748b;
  font-size: 15px;
}

.login-card label {
  gap: 7px;
}

.login-card label > span {
  display: none;
}

.login-card input[type="text"],
.login-card input[type="password"] {
  height: 54px;
  padding: 0 18px;
  border-color: rgba(216, 225, 234, 0.88);
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.login-options {
  margin-top: -4px;
}

.login-options button {
  min-height: 26px;
  padding: 0;
  color: var(--brand-start);
  font-size: 14px;
  font-weight: 700;
}

.login-options button:last-child {
  color: #475569;
}

.login-submit {
  height: 56px;
  border-radius: 10px;
  font-size: 18px;
}

.remember-line {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px !important;
  color: #64748b !important;
  font-size: 14px !important;
}

.remember-line input {
  width: 16px;
  height: 16px;
}

.login-divider {
  margin-top: 2px;
}

.login-divider::before {
  background: linear-gradient(90deg, transparent, #d8e1ea 20%, #d8e1ea 80%, transparent);
}

.login-divider span {
  background: transparent;
  color: #64748b;
  font-size: 14px;
}

.social-login {
  display: flex;
  justify-content: center;
  gap: 26px;
}

.social-login button {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  min-height: 58px;
  border: 1px solid rgba(216, 225, 234, 0.72);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.1);
  color: #0f9f8f;
  font-size: 18px;
  font-weight: 900;
}

.social-login button:nth-child(2) {
  color: #2563eb;
}

.social-login button:nth-child(3) {
  color: #f97316;
}

.login-tip {
  display: flex;
  justify-content: center;
  gap: 6px;
  color: #64748b;
  font-size: 14px;
}

.login-tip button {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand-start);
}

@media (max-width: 1280px) {
  .login-screen {
    grid-template-columns: 1fr;
  }

  .login-visual {
    padding-right: 48px;
  }

  .login-panel {
    padding: 30px 24px 56px;
  }
}

@media (max-width: 820px) {
  .login-visual {
    padding: 28px 18px;
  }

  .hero-brand strong {
    font-size: 24px;
  }

  .login-copy h1 {
    font-size: 31px;
  }

  .login-copy p:last-child {
    font-size: 16px;
  }

  .login-hero-graphic {
    width: 100%;
    min-width: 0;
    margin-left: 0;
  }

  .login-feature-cards {
    grid-template-columns: 1fr;
    width: 100%;
  }
}

/* Match requested login reference */
.login-screen {
  grid-template-columns: minmax(760px, 1fr) 430px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 42% 0%, rgba(144, 135, 255, 0.22), transparent 26%),
    radial-gradient(circle at 82% 18%, rgba(0, 160, 220, 0.34), transparent 30%),
    linear-gradient(135deg, #eef9ff 0%, #d9ecff 48%, #edf7ff 100%);
}

.login-screen::before {
  inset: auto -12% 0 -12%;
  height: 58%;
  background:
    radial-gradient(ellipse at 16% 40%, rgba(0, 145, 255, 0.5), transparent 23%),
    radial-gradient(ellipse at 72% 72%, rgba(101, 83, 231, 0.28), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(239, 248, 255, 0.92));
  clip-path: polygon(0 26%, 18% 54%, 40% 36%, 58% 54%, 76% 42%, 100% 50%, 100% 100%, 0 100%);
}

.login-screen::after {
  left: -7%;
  top: 14%;
  bottom: auto;
  width: 76%;
  height: 68%;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-right: 0;
  border-bottom: 0;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 28% 74%, rgba(0, 135, 255, 0.25), transparent 18%),
    radial-gradient(ellipse at 58% 58%, rgba(255, 255, 255, 0.42), transparent 42%);
  filter: none;
  transform: rotate(-10deg);
}

.login-visual {
  min-height: 100vh;
  padding: 58px 0 46px 78px;
}

.login-topnav {
  display: none;
}

.login-hero-layout {
  grid-template-rows: auto minmax(330px, 1fr) auto;
  padding: 24px 0 0;
}

.login-copy h1 {
  max-width: 690px;
  color: #071a68;
  font-size: 33px;
  line-height: 1.18;
  font-weight: 900;
}

.login-copy p:last-child {
  max-width: 460px;
  color: #1b3f82;
  font-size: 14px;
  line-height: 1.7;
}

.login-hero-graphic {
  width: min(54vw, 600px);
  min-width: 520px;
  margin: -2px 0 0 60px;
  aspect-ratio: 1.52;
}

.login-hero-graphic::before {
  top: 70%;
  width: 96%;
  height: 32%;
  border-color: rgba(255, 255, 255, 0.76);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(199, 229, 255, 0.22));
  box-shadow:
    0 28px 68px rgba(0, 101, 255, 0.18),
    inset 0 1px 12px rgba(255, 255, 255, 0.9);
}

.login-hero-graphic::after {
  top: 71%;
  width: 72%;
  height: 18%;
  border-color: rgba(255, 255, 255, 0.78);
}

.hero-orbit {
  top: 62%;
  border-color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.08);
}

.orbit-one {
  width: 102%;
  height: 54%;
}

.orbit-two {
  width: 82%;
  height: 42%;
}

.hero-card {
  top: 40%;
  width: 128px;
  height: 132px;
  border-radius: 25px;
  transform: translate(-50%, -50%) rotate(-2deg);
  box-shadow:
    0 26px 54px rgba(0, 101, 255, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.hero-card::before {
  inset: 20px 16px 28px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 76% 10%, #6fe27f 0 8px, transparent 9px),
    linear-gradient(135deg, #2867ff 0%, #0f9f8f 100%);
}

.hero-card img {
  width: 54px;
  transform: translateY(-8px);
}

.hero-card strong {
  right: 32px;
  bottom: 42px;
  color: #fff;
  font-size: 22px;
}

.hero-card::after {
  left: 16px;
  right: 16px;
  bottom: -18px;
  height: 34px;
}

.hero-paper {
  position: absolute;
  left: 58%;
  top: 10%;
  width: 46px;
  height: 78px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.12);
  transform: rotate(28deg);
}

.hero-bubble {
  left: 20%;
  top: 34%;
  width: 74px;
  height: 66px;
  border-radius: 18px 18px 6px 18px;
  background: linear-gradient(135deg, #2f6dff, #0f9f8f);
}

.hero-bubble::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 30px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 16px 0 0 #fff, 32px 0 0 #fff;
}

.hero-panel {
  opacity: 0.9;
}

.panel-user {
  left: 27%;
  right: auto;
  top: 18%;
  width: 84px;
  height: 64px;
}

.panel-user::before {
  width: 10px;
  height: 34px;
  left: 14px;
  top: 16px;
  border-radius: 4px;
  background: linear-gradient(180deg, #5eead4, #2f6dff);
}

.panel-user::after {
  left: 34px;
  top: 17px;
  width: 34px;
  height: 8px;
  background: #7db6ff;
  box-shadow: 0 17px 0 #a9d1ff;
}

.panel-chart {
  right: 20%;
  bottom: 32%;
  width: 72px;
  height: 64px;
}

.panel-chart::before {
  left: 16px;
  bottom: 18px;
  width: 40px;
  height: 22px;
}

.panel-chart::after {
  right: 14px;
  top: 18px;
}

.hero-module {
  bottom: 35%;
  width: 54px;
  height: 54px;
  border-radius: 12px;
  font-size: 12px;
}

.module-doc {
  left: 23%;
  background: linear-gradient(135deg, #ff8c34, #ffbd4a);
}

.module-chat {
  left: auto;
  right: 25%;
  background: linear-gradient(135deg, #5eead4, #5bb6ff);
}

.module-play {
  left: 50%;
  bottom: 26%;
  background: linear-gradient(135deg, #1f7dff, #74d4ff);
  font-size: 20px;
}

.module-image {
  display: none;
}

.hero-chip {
  display: none;
}

.login-feature-cards {
  width: min(720px, 92%);
  margin: 0;
  gap: 16px;
}

.login-feature-cards article {
  min-height: 65px;
  grid-template-columns: 48px 1fr;
  padding: 10px 12px;
  border-color: rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 14px 30px rgba(51, 112, 255, 0.1);
}

.login-feature-cards span {
  width: 42px;
  height: 42px;
  border-radius: 7px;
  font-size: 14px;
}

.login-feature-cards article:first-child span {
  background: linear-gradient(135deg, #8368ff, #5a7cff);
}

.login-feature-cards article:nth-child(2) span {
  background: linear-gradient(135deg, #2f9dff, #35c6ff);
}

.login-feature-cards article:nth-child(3) span {
  background: linear-gradient(135deg, #ffb63d, #ffcf5b);
}

.login-feature-cards strong {
  font-size: 14px;
}

.login-feature-cards small {
  color: #7a8a9f;
  font-size: 10px;
}

.login-panel {
  padding: 0 84px 0 0;
}

.login-card {
  width: 266px;
  min-height: 336px;
  gap: 14px;
  padding: 28px 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 20px 52px rgba(37, 99, 235, 0.09);
}

.login-card-title h2 {
  font-size: 18px;
}

.login-card input[type="text"],
.login-card input[type="password"],
.code-field input {
  height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: none;
  font-size: 12px;
}

.code-field {
  display: grid;
  grid-template-columns: 1fr 52px;
  gap: 6px;
}

.code-field button {
  min-height: 34px;
  border: 0;
  border-radius: 4px;
  background: linear-gradient(135deg, #7d61f2, #3b82f6);
  color: #fff;
  font-size: 12px;
}

.login-options button,
.remember-line,
.login-tip {
  font-size: 11px !important;
}

.login-submit {
  height: 34px;
  border-radius: 4px;
  background: linear-gradient(135deg, #7d61f2, #3b82f6);
  font-size: 13px;
}

.remember-line {
  justify-content: flex-start;
}

.remember-line input {
  width: 12px;
  height: 12px;
}

.social-login {
  gap: 28px;
  margin-top: 2px;
}

.social-login button {
  width: 28px;
  height: 28px;
  min-height: 28px;
  font-size: 12px;
}

.login-tip {
  display: none;
}

@media (max-width: 1180px) {
  .login-screen {
    grid-template-columns: 1fr;
  }

  .login-visual {
    padding: 38px 36px 28px;
  }

  .login-panel {
    padding: 0 24px 40px;
  }

  .login-card {
    width: min(360px, 100%);
  }
}

@media (max-width: 760px) {
  .login-copy h1 {
    font-size: 28px;
  }

  .login-copy p:last-child {
    font-size: 13px;
  }

  .login-hero-graphic {
    width: 100%;
    min-width: 0;
    margin-left: 0;
  }
}

/* Senior designer login refinement */
.login-screen {
  position: relative;
  grid-template-columns: minmax(680px, 1fr) minmax(410px, 500px);
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 16%, rgba(54, 128, 255, 0.13), transparent 28%),
    radial-gradient(circle at 74% 24%, rgba(20, 184, 166, 0.1), transparent 26%),
    linear-gradient(135deg, #f8fbff 0%, #edf6ff 54%, #f8fcff 100%);
}

.login-screen::before {
  inset: auto -10% -24% -6%;
  height: 52%;
  border: 0;
  border-radius: 50% 50% 0 0;
  background:
    radial-gradient(ellipse at 28% 8%, rgba(37, 99, 235, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(222, 240, 255, 0.72));
  clip-path: none;
  transform: none;
}

.login-screen::after {
  left: -18%;
  top: -22%;
  width: 760px;
  height: 760px;
  border: 1px solid rgba(85, 139, 255, 0.16);
  border-radius: 50%;
  background: transparent;
  filter: none;
  transform: none;
}

.login-visual {
  min-height: 100vh;
  padding: 56px 56px 48px 72px;
  background: transparent;
}

.login-topnav {
  display: flex;
}

.hero-brand .brand-mark,
.login-brand .brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #155eef, #18b6d9);
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.18);
}

.hero-brand .brand-mark img,
.login-brand .brand-mark img {
  width: 31px;
}

.hero-brand strong,
.login-brand strong {
  color: #111827;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0;
}

.hero-brand span,
.login-brand span {
  margin-top: 4px;
  color: #64748b;
  font-size: 13px;
  letter-spacing: 0;
}

.login-hero-layout {
  grid-template-rows: auto minmax(340px, 1fr) auto;
  padding: 78px 0 0;
}

.login-copy {
  margin: 0;
  max-width: 720px;
}

.login-copy .eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 18px;
  padding: 0 12px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: #2563eb;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.login-copy h1 {
  max-width: 720px;
  margin-bottom: 18px;
  color: #0f172a;
  font-size: 52px;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: 0;
}

.login-copy p:last-child {
  max-width: 620px;
  color: #475569;
  font-size: 18px;
  line-height: 1.85;
}

.login-hero-graphic {
  width: min(50vw, 620px);
  min-width: 520px;
  margin: -6px 0 0 34px;
  aspect-ratio: 1.55;
  place-self: center start;
}

.login-hero-graphic::before {
  top: 73%;
  width: 92%;
  height: 26%;
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.42);
  box-shadow:
    0 34px 86px rgba(37, 99, 235, 0.13),
    inset 0 1px 18px rgba(255, 255, 255, 0.86);
}

.login-hero-graphic::after {
  top: 74%;
  width: 66%;
  height: 14%;
  border-color: rgba(20, 184, 166, 0.18);
}

.hero-orbit {
  top: 64%;
  border-color: rgba(255, 255, 255, 0.82);
  background: transparent;
  box-shadow: none;
}

.orbit-one {
  width: 96%;
  height: 50%;
}

.orbit-two {
  width: 74%;
  height: 38%;
}

.hero-card {
  top: 42%;
  width: 152px;
  height: 152px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 32px;
  background: linear-gradient(180deg, #ffffff, #ecf7ff);
  box-shadow:
    0 30px 68px rgba(37, 99, 235, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
  transform: translate(-50%, -50%);
}

.hero-card::before {
  inset: 20px 18px 30px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 76% 78%, rgba(255, 255, 255, 0.76) 0 7px, transparent 8px),
    linear-gradient(135deg, #155eef, #18b6d9);
}

.hero-card img {
  width: 62px;
  transform: translateY(-7px);
}

.hero-card strong {
  right: 35px;
  bottom: 42px;
  color: #fff;
  font-size: 18px;
}

.hero-bubble {
  left: 18%;
  top: 36%;
  width: 76px;
  height: 62px;
  border-radius: 18px 18px 7px 18px;
  background: linear-gradient(135deg, #2563eb, #22c7c7);
  box-shadow: 0 22px 44px rgba(37, 99, 235, 0.17);
}

.hero-paper {
  display: none;
}

.hero-panel {
  border-color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.1);
}

.panel-user {
  left: auto;
  right: 18%;
  top: 22%;
  width: 118px;
  height: 82px;
}

.panel-chart {
  right: 12%;
  bottom: 30%;
  width: 128px;
  height: 92px;
}

.hero-module {
  bottom: 31%;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 14px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.module-doc {
  left: 27%;
  background: linear-gradient(135deg, #2563eb, #60a5fa);
}

.module-chat {
  left: 43%;
  right: auto;
  background: linear-gradient(135deg, #0f9f8f, #5eead4);
}

.module-play {
  left: 59%;
  bottom: 31%;
  background: linear-gradient(135deg, #f59e0b, #f97316);
}

.hero-chip {
  display: inline-grid;
  min-height: 26px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
}

.chip-knowledge {
  left: 25.5%;
  bottom: 22%;
  top: auto;
}

.chip-chat {
  left: 41.5%;
  right: auto;
  bottom: 22%;
  top: auto;
}

.chip-route {
  left: 57.5%;
  bottom: 22%;
}

.login-feature-cards {
  width: min(760px, 100%);
  margin: 10px 0 0;
  gap: 14px;
}

.login-feature-cards article {
  min-height: 94px;
  grid-template-columns: 52px 1fr;
  padding: 16px;
  border: 1px solid rgba(226, 232, 240, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 18px 44px rgba(37, 99, 235, 0.08);
}

.login-feature-cards span {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, #155eef, #18b6d9);
  color: #fff;
  font-size: 15px;
}

.login-feature-cards article:first-child span {
  background: linear-gradient(135deg, #155eef, #4f8cff);
}

.login-feature-cards article:nth-child(2) span {
  background: linear-gradient(135deg, #0f9f8f, #43d5c7);
}

.login-feature-cards article:nth-child(3) span {
  background: linear-gradient(135deg, #f59e0b, #fb7185);
}

.login-feature-cards strong {
  color: #0f172a;
  font-size: 15px;
}

.login-feature-cards small {
  color: #64748b;
  font-size: 12px;
  line-height: 1.6;
}

.login-panel {
  position: relative;
  display: grid;
  place-items: center;
  padding: 48px 72px 48px 0;
  background: transparent;
}

.login-panel::before {
  content: "";
  position: absolute;
  inset: 32px 38px 32px 0;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 30px 90px rgba(37, 99, 235, 0.1);
  backdrop-filter: blur(18px);
}

.login-card {
  position: relative;
  width: min(100%, 388px);
  min-height: 0;
  gap: 18px;
  padding: 40px;
  border: 1px solid rgba(226, 232, 240, 0.74);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow:
    0 24px 72px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
}

.login-card-title {
  text-align: left;
}

.login-card-title h2 {
  margin-bottom: 8px;
  color: #0f172a;
  font-size: 30px;
  font-weight: 900;
}

.login-card-title span {
  color: #64748b;
  font-size: 14px;
}

.login-card label > span {
  display: block;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.login-card input[type="text"],
.login-card input[type="password"],
.code-field input {
  height: 48px;
  padding: 0 14px;
  border: 1px solid #dbe5f1;
  border-radius: 10px;
  background: rgba(248, 250, 252, 0.92);
  color: #0f172a;
  font-size: 14px;
  box-shadow: none;
}

.login-card input[type="text"]:focus,
.login-card input[type="password"]:focus,
.code-field input:focus {
  border-color: #2563eb;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
  outline: none;
}

.code-field {
  grid-template-columns: 1fr 72px;
  gap: 10px;
}

.code-field button {
  min-height: 48px;
  border: 0;
  border-radius: 10px;
  background: #eaf2ff;
  color: #2563eb;
  font-size: 13px;
  font-weight: 800;
}

.code-field button:hover {
  background: #dbeafe;
  color: #155eef;
}

.login-options {
  margin-top: -2px;
}

.login-options button,
.remember-line,
.login-tip {
  font-size: 13px !important;
}

.login-options button {
  color: #2563eb;
}

.login-options button:last-child {
  color: #64748b;
}

.login-submit {
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, #155eef, #18b6d9);
  box-shadow: 0 18px 32px rgba(37, 99, 235, 0.22);
  font-size: 16px;
  font-weight: 900;
}

.remember-line {
  justify-content: flex-start;
  color: #64748b !important;
  line-height: 1.5;
}

.remember-line input {
  width: 14px;
  height: 14px;
  accent-color: #2563eb;
}

.social-login {
  gap: 14px;
  margin-top: 0;
}

.social-login button {
  width: 42px;
  height: 42px;
  min-height: 42px;
  border-color: #dbe5f1;
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
  color: #2563eb;
  font-size: 14px;
}

.login-tip {
  display: block;
  color: #94a3b8;
  text-align: left;
}

@media (max-width: 1180px) {
  .login-screen {
    grid-template-columns: 1fr;
  }

  .login-visual {
    min-height: auto;
    padding: 36px 32px 22px;
  }

  .login-panel {
    padding: 12px 24px 42px;
  }

  .login-panel::before {
    inset: 0 16px 24px;
  }
}

@media (max-width: 760px) {
  .login-visual {
    padding: 28px 18px 18px;
  }

  .hero-brand strong,
  .login-brand strong {
    font-size: 21px;
  }

  .login-hero-layout {
    padding-top: 42px;
  }

  .login-copy h1 {
    font-size: 34px;
  }

  .login-copy p:last-child {
    font-size: 15px;
  }

  .login-hero-graphic {
    width: 100%;
    min-width: 0;
    margin-left: 0;
  }

  .login-feature-cards {
    grid-template-columns: 1fr;
  }

  .login-card {
    width: min(100%, 390px);
    padding: 30px 22px;
  }
}

/* Use the provided hero image unchanged; only add the login form on the right. */
.login-screen {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
  overflow: hidden;
  background-color: #eef6ff;
  background-image:
    linear-gradient(90deg, rgba(238, 246, 255, 0) 0%, rgba(238, 246, 255, 0) 58%, rgba(238, 246, 255, 0.72) 72%, #eef6ff 100%),
    url("./login-hero.jpg");
  background-position:
    left top,
    left top;
  background-size:
    100% 100%,
    auto 100%;
  background-repeat: no-repeat;
}

.login-screen::before,
.login-screen::after {
  display: none;
}

.login-visual {
  position: absolute;
  inset: 0;
  min-height: 100vh;
  padding: 0;
  pointer-events: none;
  background: transparent;
}

.login-topnav,
.login-hero-layout {
  display: none;
}

.login-panel {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center end;
  min-height: 100vh;
  padding: 48px 96px 48px 48px;
  background: transparent;
}

.login-panel::before {
  display: none;
}

.login-card {
  width: 390px;
  min-height: 0;
  gap: 18px;
  padding: 38px 36px 32px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 28px 76px rgba(45, 96, 185, 0.16);
  backdrop-filter: blur(18px);
}

.login-card-title {
  text-align: left;
}

.login-card-title h2 {
  margin-bottom: 8px;
  color: #071a68;
  font-size: 28px;
  font-weight: 900;
}

.login-card-title span {
  color: #51617f;
  font-size: 14px;
}

.login-card label > span {
  display: block;
  color: #263452;
  font-size: 13px;
  font-weight: 800;
}

.login-card input[type="text"],
.login-card input[type="password"],
.code-field input {
  height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(190, 207, 238, 0.84);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  color: #111827;
  font-size: 14px;
  box-shadow: none;
}

.login-card input[type="text"]:focus,
.login-card input[type="password"]:focus,
.code-field input:focus {
  border-color: #2867ff;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(40, 103, 255, 0.1);
  outline: none;
}

.code-field {
  display: grid;
  grid-template-columns: 1fr 72px;
  gap: 10px;
}

.code-field button {
  min-height: 48px;
  border: 0;
  border-radius: 10px;
  background: rgba(40, 103, 255, 0.1);
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 800;
}

.login-options {
  margin-top: -2px;
}

.login-options button,
.remember-line,
.login-tip {
  font-size: 13px !important;
}

.login-options button {
  color: #1d4ed8;
}

.login-options button:last-child {
  color: #51617f;
}

.login-submit {
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2867ff, #32c4ff);
  box-shadow: 0 16px 30px rgba(40, 103, 255, 0.28);
  font-size: 16px;
  font-weight: 900;
}

.remember-line {
  justify-content: flex-start;
  color: #51617f !important;
  line-height: 1.5;
}

.remember-line input {
  width: 14px;
  height: 14px;
  accent-color: #2867ff;
}

.social-login {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 0;
}

.social-login button {
  width: 42px;
  height: 42px;
  min-height: 42px;
  border-color: rgba(190, 207, 238, 0.82);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: none;
  color: #2867ff;
  font-size: 14px;
}

.login-tip {
  display: block;
  color: #71809b;
  text-align: left;
}

@media (max-width: 1180px) {
  .login-screen {
    background-position:
      left top,
      left top;
    background-size:
      100% 100%,
      auto 100%;
  }

  .login-panel {
    padding-right: 42px;
  }
}

@media (max-width: 760px) {
  .login-screen {
    background-position:
      left top,
      left top;
    background-size:
      100% 100%,
      auto 100%;
  }

  .login-panel {
    place-items: end center;
    padding: 40vh 18px 24px;
  }

  .login-card {
    width: min(100%, 390px);
    padding: 28px 22px;
  }
}

/* Login form styled to match the provided reference card. */
.login-panel {
  padding: 34px 88px 34px 48px;
}

.login-card {
  width: 460px;
  gap: 22px;
  padding: 50px 48px 38px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow:
    0 28px 72px rgba(40, 103, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(22px);
}

.login-card-title {
  margin-bottom: 18px;
  text-align: center;
}

.login-card-title h2 {
  margin-bottom: 14px;
  color: #1f2937;
  font-size: 32px;
  line-height: 1.15;
  font-weight: 900;
}

.login-card-title span {
  color: #737d91;
  font-size: 18px;
  font-weight: 700;
}

.login-field {
  position: relative;
}

.login-card label > span {
  display: none;
}

.login-card input[type="text"],
.login-card input[type="password"],
.code-field input {
  height: 58px;
  padding: 0 52px;
  border: 1px solid rgba(214, 222, 234, 0.9);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.88);
  color: #1f2937;
  font-size: 17px;
  box-shadow:
    inset 0 1px 2px rgba(15, 23, 42, 0.03),
    0 8px 18px rgba(50, 86, 160, 0.04);
}

.login-card input::placeholder {
  color: #8b94a6;
}

.login-field::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 50%;
  z-index: 1;
  width: 22px;
  height: 22px;
  transform: translateY(-50%);
  opacity: 0.72;
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
}

.account-field::before {
  background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 12a4.2 4.2 0 1 0 0-8.4 4.2 4.2 0 0 0 0 8.4Z' stroke='%237D8798' stroke-width='2'/%3E%3Cpath d='M4.5 20.2c.9-4.1 3.7-6.2 7.5-6.2s6.6 2.1 7.5 6.2' stroke='%237D8798' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.password-field::before {
  background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='5' y='10' width='14' height='10' rx='2' stroke='%237D8798' stroke-width='2'/%3E%3Cpath d='M8 10V7.5a4 4 0 0 1 8 0V10' stroke='%237D8798' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M12 14.3v2' stroke='%237D8798' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.password-eye {
  position: absolute;
  right: 17px;
  top: 50%;
  width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  transform: translateY(-50%);
}

.password-eye::before,
.password-eye::after {
  content: "";
  position: absolute;
  inset: 8px 5px;
  border: 2px solid #7d8798;
  border-radius: 50%;
}

.password-eye::after {
  inset: 6px 13px;
  width: 2px;
  border: 0;
  border-radius: 999px;
  background: #7d8798;
  transform: rotate(45deg);
}

.login-options {
  margin-top: 2px;
}

.login-options button {
  min-height: 28px;
  padding: 0;
  color: #2f6dff;
  font-size: 15px !important;
  font-weight: 800;
}

.login-options button:last-child {
  color: #64748b;
}

.login-submit {
  height: 58px;
  margin-top: 6px;
  border-radius: 12px;
  background: linear-gradient(135deg, #3c72ff, #1f7dff);
  box-shadow: 0 16px 30px rgba(40, 103, 255, 0.28);
  font-size: 19px;
  font-weight: 900;
}

.remember-line {
  justify-content: center;
  gap: 9px !important;
  color: #737d91 !important;
  font-size: 15px !important;
  font-weight: 700;
}

.remember-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.remember-helper {
  max-width: 380px;
  margin: 0;
  color: #8b94a6;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.remember-helper.is-error {
  color: #ef4444;
}

.remember-line input {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  accent-color: #2f6dff;
}

.remember-line input[type="checkbox"] {
  appearance: none;
  display: grid;
  place-items: center;
  border: 1px solid rgba(214, 222, 234, 0.9);
  background: rgba(255, 255, 255, 0.88);
}

.remember-line input[type="checkbox"]:checked {
  border-color: #2f6dff;
  background: #2f6dff;
}

.remember-line.is-required {
  color: #ef4444 !important;
}

.remember-line.is-required input[type="checkbox"] {
  border-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.remember-line input[type="checkbox"]:checked::before {
  content: "";
  width: 8px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
}

.login-divider {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 24px;
  margin: 10px 0 2px;
  color: #8b94a6;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.login-divider::before,
.login-divider::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  transform: translateY(-50%);
  background: rgba(203, 213, 225, 0.82);
}

.login-divider::after {
  display: none;
}

.login-divider span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  justify-content: center;
  min-width: 118px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.78);
}

.social-login {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-top: 8px;
}

.social-login button {
  position: relative;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  min-height: 62px;
  padding: 0;
  border: 1px solid rgba(226, 232, 240, 0.94);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 24px rgba(40, 103, 255, 0.08);
  overflow: hidden;
}

.social-login button:hover {
  transform: translateY(-2px);
  border-color: rgba(47, 109, 255, 0.26);
  background: #fff;
  box-shadow: 0 16px 28px rgba(40, 103, 255, 0.13);
}

.social-login button span {
  position: relative;
  display: block;
  width: 31px;
  height: 31px;
}

.social-login button svg {
  display: block;
  width: 32px;
  height: 32px;
}

.wechat-login span::before,
.wechat-login span::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: #1dbf4f;
}

.wechat-login span::before {
  left: 0;
  top: 4px;
  width: 22px;
  height: 17px;
}

.wechat-login span::after {
  right: 0;
  bottom: 4px;
  width: 19px;
  height: 15px;
  background: #20d45d;
  box-shadow: -11px -9px 0 -6px #fff, -3px -9px 0 -6px #fff, -2px 0 0 0 rgba(255, 255, 255, 0.85);
}

.wechat-login::after {
  content: "";
  position: absolute;
  left: 23px;
  top: 26px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 9px 0 0 #fff;
}

.wechat-login::after {
  display: none;
}

.dingtalk-login span {
  background: #2687ff;
  clip-path: polygon(48% 0, 84% 12%, 100% 36%, 60% 32%, 92% 46%, 48% 56%, 58% 100%, 24% 54%, 0 44%, 36% 35%, 6% 26%, 34% 20%);
}

.enterprise-login span {
  border-radius: 8px;
  background: linear-gradient(135deg, #ff8b24, #ff6a1a);
}

.enterprise-login span::before,
.enterprise-login span::after {
  content: "";
  position: absolute;
  background: #fff;
}

.enterprise-login span::before {
  left: 9px;
  top: 7px;
  width: 13px;
  height: 17px;
  border-radius: 2px;
}

.enterprise-login span::after {
  left: 13px;
  top: 11px;
  width: 5px;
  height: 2px;
  box-shadow: 0 5px 0 #fff;
}

.login-tip {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  color: #8b94a6;
  text-align: center;
  font-size: 15px !important;
  font-weight: 700;
}

.login-tip button {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #2f6dff;
  font-weight: 900;
}

@media (max-width: 1180px) {
  .login-card {
    width: min(100%, 460px);
  }
}

@media (max-width: 760px) {
  .login-card {
    width: min(100%, 430px);
    padding: 36px 24px 30px;
  }

  .login-card-title h2 {
    font-size: 28px;
  }

  .social-login {
    gap: 18px;
  }
}

/* Post-login workspace color alignment with the login page. */
.app-shell {
  background:
    radial-gradient(circle at 16% 0%, rgba(148, 163, 184, 0.12), transparent 30%),
    radial-gradient(circle at 78% 4%, rgba(96, 120, 160, 0.08), transparent 28%),
    linear-gradient(180deg, #f7f8fa 0%, #eef1f5 100%);
}

.app-shell .sidebar {
  border-right-color: rgba(207, 228, 255, 0.9);
  background: rgba(248, 252, 255, 0.92);
  box-shadow: 10px 0 34px rgba(40, 103, 255, 0.06);
}

.app-shell .main {
  background: transparent;
}

.app-shell .topbar {
  min-height: 64px;
  height: 64px;
  margin: -24px -28px 18px;
  padding: 0 28px;
  display: flex;
  align-items: center;
}

.app-shell .topbar > div:first-child {
  display: flex;
  align-items: center;
  height: 100%;
}

.app-shell .topbar .eyebrow {
  display: none;
}

.app-shell #page-title {
  margin: 0;
  font-size: 18px;
  line-height: 1;
}

.app-shell .top-actions {
  height: 100%;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
}

.app-shell .brand {
  border-bottom-color: rgba(207, 228, 255, 0.88);
}

.app-shell .brand-mark,
.app-shell .primary-btn,
.app-shell .nav-item.active,
.app-shell .nav-item:hover {
  background: linear-gradient(135deg, #2867ff 0%, #32c4ff 100%);
  box-shadow: 0 14px 30px rgba(40, 103, 255, 0.18);
}

.app-shell .nav-item.active,
.app-shell .nav-item.active:hover {
  color: #fff;
}

.app-shell .nav-item.active span,
.app-shell .nav-item.active:hover span {
  background: rgba(255, 255, 255, 0.88);
  color: #2867ff;
}

.app-shell .nav-item {
  color: #51617f;
}

.app-shell .nav-item span {
  background: #eef7ff;
  color: #2867ff;
}

.app-shell .side-status,
.app-shell .notify-item.unread,
.app-shell .flow div,
.app-shell .strategy-flow div,
.app-shell .route-card,
.app-shell .transfer-card {
  border-color: rgba(207, 228, 255, 0.95);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(234, 244, 255, 0.82));
}

.app-shell .side-status strong,
.app-shell .metric strong,
.app-shell .flow div,
.app-shell .strategy-flow div,
.app-shell .agent-step.active strong,
.app-shell .ops-step.active strong {
  color: #2867ff;
  background: linear-gradient(135deg, #2867ff 0%, #18b6d9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.app-shell .metric,
.app-shell .panel,
.app-shell .customer-card,
.app-shell .conversation-list,
.app-shell .chat-panel,
.app-shell .phone-frame,
.app-shell .settings-card,
.app-shell dialog,
.app-shell .notify-panel,
.app-shell .search-results {
  border-color: rgba(216, 231, 248, 0.92);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 40px rgba(40, 103, 255, 0.07);
}

.app-shell .panel-head span,
.app-shell .metric span,
.app-shell .metric em,
.app-shell .notify-item span,
.app-shell .search-result-item span,
.app-shell .empty-result,
.app-shell .side-status p,
.app-shell .side-status span {
  color: #71809b;
}

.app-shell .tabs button.active,
.app-shell [data-customer-tab].active,
.app-shell [data-ai-channel].active,
.app-shell .agent-step.active,
.app-shell .ops-step.active,
.app-shell .conversation-item.active {
  border-color: rgba(40, 103, 255, 0.32);
  background: #eaf4ff;
  color: #2867ff;
}

.app-shell .customer-tabs button {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: #51617f;
}

.app-shell .customer-tabs button.active {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: #2867ff;
}

.app-shell .table-row.head,
.app-shell .empty-result {
  background: #f3f9ff;
}

.app-shell .insight-list article {
  border-left-color: #2867ff;
  background: #f6fbff;
}

.app-shell .bars b {
  background: linear-gradient(90deg, #2867ff 0%, #32c4ff var(--w), #edf2f7 var(--w));
}

.app-shell dialog .primary-btn,
dialog .primary-btn {
  border-color: transparent;
  background: linear-gradient(135deg, #2f6dff 0%, #21a8ff 100%);
  color: #fff;
  box-shadow: 0 14px 30px rgba(47, 109, 255, 0.22);
}

.app-shell dialog .primary-btn:hover,
dialog .primary-btn:hover {
  border-color: transparent;
  background: linear-gradient(135deg, #245cff 0%, #1298ee 100%);
  color: #fff;
}

.monitor-card {
  align-content: start;
  gap: 14px;
}

.monitor-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.monitor-summary article {
  display: grid;
  gap: 4px;
  min-height: 68px;
  padding: 12px;
  border: 1px solid rgba(216, 231, 248, 0.88);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 248, 255, 0.9));
}

.monitor-summary span {
  color: #71809b;
  font-size: 12px;
  font-weight: 700;
}

.monitor-summary strong {
  color: #2867ff;
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
}

.monitor-card .mini-line {
  position: relative;
  height: 106px;
  gap: 12px;
  padding: 20px 22px 0;
  overflow: hidden;
  border-color: rgba(216, 231, 248, 0.92);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(244, 250, 255, 0.92)),
    repeating-linear-gradient(0deg, transparent 0 24px, rgba(207, 228, 255, 0.48) 25px);
}

.monitor-card .mini-line::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 0;
  height: 1px;
  background: rgba(190, 207, 238, 0.72);
}

.monitor-card .mini-line i {
  position: relative;
  z-index: 1;
  width: min(100%, 38px);
  justify-self: center;
  border-radius: 10px 10px 3px 3px;
  background: linear-gradient(180deg, #2f6dff 0%, #28cfff 100%);
  box-shadow: 0 10px 20px rgba(47, 109, 255, 0.14);
}

.monitor-alerts {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.monitor-alerts li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid rgba(216, 231, 248, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  color: #475569;
}

.monitor-alerts b {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #edf6ff;
  color: #2867ff;
  font-size: 14px;
  font-style: normal;
  font-weight: 900;
}

.monitor-alerts span {
  min-width: 0;
  color: #475569;
  font-weight: 700;
}

.monitor-alerts em {
  padding: 4px 10px;
  border-radius: 999px;
  background: #f3f8ff;
  color: #2867ff;
  font-style: normal;
  font-weight: 900;
}

.monitor-card > .primary-btn {
  justify-self: end;
  min-width: 136px;
  padding: 0 24px;
}

.app-shell .search:focus-within,
.app-shell input:focus,
.app-shell select:focus,
.app-shell textarea:focus {
  border-color: #2867ff;
  box-shadow: 0 0 0 3px rgba(40, 103, 255, 0.1);
  outline: none;
}

.app-shell .ghost-btn:hover,
.app-shell .notify-item.unread {
  color: #2867ff;
}

.app-shell .side-status {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  align-items: start;
  min-height: 104px;
  margin-top: 22px;
  padding: 14px 16px;
  overflow: hidden;
  border: 1px solid rgba(35, 132, 255, 0.34);
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(30, 105, 255, 0.52), rgba(49, 180, 255, 0.12)),
    url("./side-ai-bg.jpg") center center / cover no-repeat,
    #2f86ff;
  box-shadow: 0 14px 28px rgba(40, 103, 255, 0.18);
}

.app-shell .side-status::before {
  content: none;
  position: absolute;
  right: 8px;
  top: 14px;
  width: 54px;
  height: 54px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.16);
  transform: rotate(-15deg);
}

.app-shell .side-status::after {
  content: none;
  position: absolute;
  right: 11px;
  bottom: 8px;
  width: 34px;
  height: 22px;
  border-right: 2px solid rgba(255, 255, 255, 0.28);
  border-bottom: 2px solid rgba(255, 255, 255, 0.28);
  border-radius: 0 0 18px 0;
}

.app-shell .side-status strong {
  position: relative;
  z-index: 1;
  grid-row: auto;
  margin: 2px 0 0;
  color: #fff;
  background: none;
  -webkit-text-fill-color: #fff;
  font-size: 30px;
  line-height: 1;
}

.app-shell .side-status p,
.app-shell .side-status span {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.app-shell .side-status span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
}

/* Verification-code login state. */
.login-card .verification-field {
  display: grid;
  grid-template-columns: 1fr 104px;
  gap: 10px;
}

.login-card .verification-field.is-hidden {
  display: none !important;
}

.login-card .verification-field input {
  height: 58px;
  padding: 0 16px;
  border: 1px solid rgba(214, 222, 234, 0.9);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.88);
  color: #1f2937;
  font-size: 17px;
  box-shadow:
    inset 0 1px 2px rgba(15, 23, 42, 0.03),
    0 8px 18px rgba(50, 86, 160, 0.04);
}

.login-card .verification-field input:focus {
  border-color: #2867ff;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(40, 103, 255, 0.1);
  outline: none;
}

.login-card .verification-field button {
  min-height: 58px;
  border: 0;
  border-radius: 11px;
  background: rgba(47, 109, 255, 0.1);
  color: #2f6dff;
  font-size: 14px;
  font-weight: 800;
}

.login-card .verification-field button:hover {
  background: rgba(47, 109, 255, 0.16);
}

.login-card .verification-field button:disabled {
  cursor: not-allowed;
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.14);
}

/* Narrower post-login sidebar. */
.app-shell {
  grid-template-columns: 195px minmax(0, 1fr);
}

.app-shell .sidebar {
  padding: 18px 12px;
}

.app-shell .brand {
  gap: 10px;
  padding: 4px 2px 18px;
}

.app-shell .brand-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
}

.app-shell .brand-mark img {
  width: 26px;
}

.app-shell .brand strong {
  font-size: 14px;
  line-height: 1.35;
}

.app-shell .brand span {
  font-size: 11px;
  line-height: 1.35;
}

.app-shell .nav {
  gap: 5px;
  margin-top: 18px;
}

.app-shell .nav-item {
  min-height: 40px;
  gap: 8px;
  padding: 9px 10px;
  font-size: 14px;
}

.app-shell .nav-item span {
  width: 24px;
  height: 24px;
  flex-basis: 24px;
}

.app-shell .side-status {
  margin-top: 22px;
  padding: 14px;
}

.app-shell .side-status strong {
  font-size: 26px;
}

/* Dashboard visual polish. */
#dashboard .panel {
  position: relative;
  overflow: hidden;
  border-color: rgba(207, 228, 255, 0.92);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 251, 255, 0.94) 100%);
}

#dashboard .panel::before {
  content: none;
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: none;
}

#dashboard .panel > * {
  position: relative;
  z-index: 1;
}

#dashboard .panel-head {
  margin-bottom: 18px;
}

#dashboard .panel-head h2 {
  font-size: 18px;
  font-weight: 900;
}

#dashboard .panel-head span {
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #71809b;
  font-size: 12px;
  font-weight: 800;
}

#dashboard .flow {
  position: relative;
  gap: 12px;
  margin: 18px 0 20px;
}

#dashboard .flow div {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  padding: 0 12px;
  border-color: rgba(207, 228, 255, 0.92);
  background: #fff;
  color: #2867ff;
  -webkit-text-fill-color: #2867ff;
  box-shadow: none;
  font-weight: 900;
  text-align: center;
  line-height: 1.2;
  font-size: 16px;
  white-space: nowrap;
  word-break: keep-all;
}

#dashboard .flow div:nth-of-type(3) {
  white-space: nowrap;
  word-break: keep-all;
  font-size: 15px;
  letter-spacing: 0;
}

#dashboard .flow {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0 24px;
}

#dashboard .insight-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

#dashboard .insight-list article {
  position: relative;
  min-height: 104px;
  padding: 16px 18px;
  border: 1px solid rgba(207, 228, 255, 0.86);
  border-left: 4px solid #2867ff;
  border-radius: 8px;
  background: #f6fbff;
}

#dashboard .insight-list strong {
  color: #172033;
  font-size: 16px;
  font-weight: 900;
}

#dashboard .insight-list span {
  margin-top: 10px;
  color: #71809b;
  line-height: 1.55;
  font-size: 14px;
}

#dashboard .bars {
  gap: 18px;
  padding-top: 6px;
}

#dashboard .bars label {
  grid-template-columns: 48px 1fr 44px;
  color: #71809b;
  font-size: 14px;
  font-weight: 800;
}

#dashboard .bars b {
  position: relative;
  height: 12px;
  overflow: hidden;
  background: linear-gradient(90deg, #2867ff 0%, #32c4ff var(--w), #edf6ff var(--w));
  box-shadow: none;
}

#dashboard .bars b::after {
  content: "";
  position: absolute;
  inset: 0;
  width: var(--w);
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0));
}

#dashboard .bars label span {
  color: #64748b;
  text-align: right;
  font-weight: 900;
}

#dashboard .rank-list {
  gap: 12px;
}

#dashboard .rank-list li {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 4px;
  min-height: 86px;
  padding: 14px 16px 16px;
  border-color: #d8e1ea;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

#dashboard .rank-list li::before {
  content: none;
}

#dashboard .rank-list strong {
  color: #172033;
  font-size: 18px;
  font-weight: 900;
}

#dashboard .rank-list span {
  color: #71809b;
  font-size: 14px;
}

#dashboard .rank-list li::after {
  content: none;
}

#dashboard .panel-head > span {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
