:root {
  --bg: #f3f7fc;
  --panel: #ffffff;
  --panel-strong: #f7faff;
  --line: #d9e3ef;
  --text: #10213a;
  --muted: #68788e;
  --blue: #146ce5;
  --cyan: #009fbe;
  font-family: "Bahnschrift", "Microsoft YaHei UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    linear-gradient(#dce6f180 1px, transparent 1px),
    linear-gradient(90deg, #dce6f180 1px, transparent 1px),
    radial-gradient(circle at 50% 0%, #dbeaff 0, #f3f7fc 46%);
  background-size: 28px 28px, 28px 28px, auto;
}
button, input, textarea { font: inherit; }
button { border: 0; cursor: pointer; }

.phone-shell {
  width: min(100%, 480px);
  min-height: 100vh;
  margin: auto;
  overflow: hidden;
  background: #ffffffed;
  border-inline: 1px solid #dbe4ef;
  box-shadow: 0 16px 70px #24466f1c;
}

.hero {
  position: relative;
  min-height: 304px;
  padding: 32px 28px;
  overflow: hidden;
  background: linear-gradient(145deg, #ffffff 0%, #f3f8ff 72%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .24;
  background: repeating-linear-gradient(
    90deg,
    transparent 0 47px,
    #146ce512 48px
  );
}
.hero::after {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--blue), transparent);
  box-shadow: 0 0 16px var(--blue);
}
.brand-line {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: .16em;
}
.seal {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--blue);
  color: var(--cyan);
  box-shadow: inset 0 0 14px #146ce514;
}
.eyebrow, .step {
  font: 11px/1.4 "Cascadia Code", monospace;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow {
  position: relative;
  z-index: 1;
  margin-top: 58px;
  color: var(--blue);
}
h1 {
  position: relative;
  z-index: 1;
  margin: 14px 0;
  font-size: clamp(34px, 9vw, 46px);
  font-weight: 560;
  line-height: 1.25;
  letter-spacing: -.05em;
}
h1 em {
  color: var(--cyan);
  font-style: normal;
  text-shadow: 0 0 22px #009fbe28;
}
.hero-orbit {
  position: absolute;
  right: 34px;
  top: 44px;
  width: 82px;
  height: 82px;
  border: 1px solid #146ce544;
  transform: rotate(45deg);
}
.hero-orbit::after {
  content: "AI";
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin: 21px;
  color: var(--cyan);
  background: #146ce50b;
  font: 12px "Cascadia Code", monospace;
}

.login-card, .catalog {
  position: relative;
  margin: -20px 18px 30px;
  padding: 26px 24px;
  background: #fffffff2;
  border: 1px solid var(--line);
  box-shadow: 0 24px 50px #294d7818;
  backdrop-filter: blur(16px);
}
.login-card {
  padding: 28px 24px 24px;
}
.login-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.login-heading h2 { margin-bottom: 0; }
.secure-badge {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 6px;
  margin-top: 2px;
  padding: 6px 8px;
  color: #337066;
  background: #eff9f6;
  border: 1px solid #cce9e2;
  font-size: 10px;
}
.secure-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #20a386;
  box-shadow: 0 0 0 3px #20a38616;
}
.login-intro {
  margin: 12px 0 24px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.referral-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
  border: 1px solid #cfe1f4;
  border-radius: 10px;
  background: #f4f9ff;
  color: #4d708f;
  padding: 9px 11px;
  font-size: 10px;
}

.referral-banner span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 7px;
  background: #2d78bd;
  color: #fff;
  font-weight: 800;
}
.login-form label { margin: 16px 0; }
.field-shell, .field-row {
  display: flex;
  width: 100%;
  margin-top: 8px;
  border: 1px solid var(--line);
  background: #f9fbfd;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field-shell:focus-within, .field-row:focus-within {
  border-color: var(--blue);
  background: #ffffff;
  box-shadow: 0 0 0 3px #146ce514;
}
.field-shell input, .field-row input {
  min-width: 0;
  margin: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.field-shell input:focus, .field-row input:focus { box-shadow: none; }
.field-prefix {
  display: flex;
  align-items: center;
  margin: 10px 0;
  padding: 0 12px 0 13px;
  color: #30445e;
  border-right: 1px solid var(--line);
  font: 13px "Cascadia Code", monospace;
}
.field-row input { flex: 1; }
.field-row .image-code-input { text-transform: uppercase; }
.captcha {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 112px;
  gap: 3px;
  margin: 5px;
  overflow: hidden;
  color: #0d59bb;
  background:
    repeating-linear-gradient(115deg, transparent 0 12px, #146ce50b 13px 14px),
    linear-gradient(135deg, #eaf4ff, #f7fbff);
  border-left: 1px solid #d5e3f2;
  font: 700 18px/1 "Cascadia Code", monospace;
  letter-spacing: .05em;
}
.captcha span { position: relative; z-index: 1; display: inline-block; }
.captcha i {
  position: absolute;
  width: 86px;
  height: 1px;
  background: #0a8daa52;
  transform: rotate(-13deg);
}
.captcha i:last-child {
  width: 74px;
  background: #146ce540;
  transform: rotate(17deg);
}
.field-help {
  display: block;
  margin-top: 7px;
  color: #8795a7;
  font-size: 10px;
  text-align: right;
}
.send-code {
  flex: 0 0 112px;
  margin: 7px;
  color: var(--blue);
  background: #edf5ff;
  border-left: 1px solid #d5e3f2;
  font-size: 12px;
  font-weight: 650;
}
.send-code:disabled {
  color: #8a98aa;
  background: #f0f3f7;
  cursor: not-allowed;
}
.agreement {
  display: flex !important;
  align-items: flex-start;
  gap: 9px;
  color: #738399 !important;
  line-height: 1.6;
}
.agreement input {
  flex: none;
  width: 15px;
  height: 15px;
  margin: 2px 0 0;
  accent-color: var(--blue);
}
.agreement a {
  color: var(--blue);
  text-decoration: none;
}
.status-message {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 10px 0;
  padding: 9px 10px;
  border: 1px solid currentColor;
  background: #ffffff;
}
.status-message > span {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font: 10px "Cascadia Code", monospace;
}
.login-form .login-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 20px;
  padding: 15px 17px;
  color: #ffffff;
  background: var(--blue);
  box-shadow: 0 10px 24px #146ce528;
  font-weight: 650;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.login-form .login-submit:hover {
  background: #075dcc;
  box-shadow: 0 13px 28px #146ce534;
  transform: translateY(-1px);
}
.login-form .login-submit:disabled {
  opacity: .58;
  cursor: wait;
  transform: none;
}
.privacy-note {
  margin: 18px 0 0;
  color: #8b99aa;
  font-size: 10px;
  text-align: center;
}
.privacy-note span { color: var(--cyan); }
.step { margin: 0 0 8px; color: var(--blue); }
h2 { margin: 0 0 24px; font-size: 24px; font-weight: 560; }
label {
  display: block;
  margin: 17px 0;
  color: var(--muted);
  font-size: 12px;
}
input, textarea {
  width: 100%;
  margin-top: 8px;
  padding: 13px 12px;
  border: 1px solid var(--line);
  outline: none;
  background: #f7f9fc;
  color: var(--text);
  font-family: "Cascadia Code", monospace;
  font-size: 15px;
  transition: border-color .2s, box-shadow .2s;
}
input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px #146ce514;
}
textarea {
  resize: vertical;
  min-height: 92px;
  line-height: 1.6;
}
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px #146ce514;
}

.hint { color: #8795a7; font: 11px "Cascadia Code", monospace; }
.error { color: #c53245; font-size: 12px; }
.success { color: #087f67; font-size: 12px; }
.session-loading { min-height: 150px; }

.app-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 100% 0, #e8f4ff 0, transparent 240px),
    #f6f9fc;
}
.app-header {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 20px;
  background: #ffffffef;
  border-bottom: 1px solid #dce6f1;
  backdrop-filter: blur(18px);
}
.compact-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.compact-brand .seal { width: 34px; height: 34px; }
.compact-brand div { display: grid; gap: 2px; }
.compact-brand strong { font-size: 15px; letter-spacing: .08em; }
.compact-brand small { color: var(--muted); font-size: 10px; }
.header-action {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #5c6d83;
  background: #f4f7fb;
  border: 1px solid var(--line);
}
.header-action svg, .bottom-nav svg, .agent-composer svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tab-content { padding-bottom: 94px; }
.tab-page {
  min-height: calc(100vh - 166px);
  padding: 26px 20px 32px;
  animation: page-in .35s ease both;
}
.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.page-heading h2 { margin-bottom: 0; font-size: 28px; letter-spacing: -.04em; }
.page-lead {
  margin: 10px 0 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}
.online-pill, .record-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  padding: 6px 9px;
  color: #26715f;
  background: #edf9f5;
  border: 1px solid #cde9e1;
  font-size: 10px;
}
.online-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #21a384;
  box-shadow: 0 0 0 4px #21a38412;
}
.record-count { color: #526984; background: #f4f7fa; border-color: var(--line); }
.advisor-heading-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.conversation-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 30px;
  padding: 6px 9px;
  color: #3f5874;
  background: #ffffff;
  border: 1px solid #d7e3ef;
  font-size: 10px;
}
.conversation-action span {
  color: var(--blue);
  font: 16px/1 "Cascadia Code", monospace;
}
.conversation-action.history {
  color: #ffffff;
  background: #173f6e;
  border-color: #173f6e;
}
.conversation-action em {
  display: grid;
  min-width: 16px;
  height: 16px;
  place-items: center;
  padding: 0 4px;
  color: #173f6e;
  background: #ffffff;
  border-radius: 9px;
  font: 8px "Cascadia Code", monospace;
  font-style: normal;
}
.quick-prompts {
  display: flex;
  gap: 8px;
  margin: 0 -20px 16px;
  padding: 0 20px 3px;
  overflow-x: auto;
  scrollbar-width: none;
}
.quick-prompts::-webkit-scrollbar { display: none; }
.quick-prompts button {
  flex: none;
  padding: 8px 12px;
  color: #526982;
  background: #ffffff;
  border: 1px solid #d9e4ef;
  font-size: 11px;
}
.agent-panel {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #d7e2ee;
  box-shadow: 0 18px 42px #335b8512;
}
.agent-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 15px 16px;
  background: linear-gradient(100deg, #f4f9ff, #ffffff);
  border-bottom: 1px solid #e1e9f2;
}
.agent-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #ffffff;
  background: linear-gradient(145deg, var(--blue), var(--cyan));
  box-shadow: 0 6px 18px #146ce52e;
  font: 700 11px "Cascadia Code", monospace;
}
.agent-head div { display: grid; gap: 3px; }
.agent-head strong { font-size: 13px; }
.agent-head small, .trace { color: var(--muted); font: 9px "Cascadia Code", monospace; }
.messages {
  max-height: 430px;
  min-height: 218px;
  overflow-y: auto;
  padding: 16px;
}
.welcome-message {
  padding: 20px 18px;
  color: var(--muted);
  background: linear-gradient(135deg, #f5f9ff, #fbfdff);
  border-left: 2px solid var(--blue);
  line-height: 1.7;
}
.welcome-message strong { color: var(--text); font-size: 15px; }
.welcome-message p { margin: 7px 0 0; font-size: 12px; }
.message {
  width: fit-content;
  max-width: 92%;
  margin: 13px 0;
  padding: 11px 13px;
  border: 1px solid var(--line);
  background: #ffffff;
}
.message.user {
  margin-left: auto;
  color: #ffffff;
  background: var(--blue);
  border-color: var(--blue);
  border-radius: 14px 14px 3px 14px;
}
.message.assistant {
  width: 100%;
  max-width: 100%;
  margin-right: auto;
  padding: 0;
  background: transparent;
  border: 0;
}
.message-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
}
.message.user .message-meta { justify-content: flex-end; margin-bottom: 4px; }
.message-meta > span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: #ffffff;
  background: linear-gradient(145deg, var(--blue), var(--cyan));
  box-shadow: 0 5px 12px #146ce52b;
  font: 700 8px "Cascadia Code", monospace;
}
.message-meta > small { color: inherit; opacity: .72; font: 9px "Cascadia Code", monospace; }
.message.assistant .message-meta > small { color: #63778e; opacity: 1; }
.message.user > p { margin: 0; white-space: pre-wrap; font-size: 13px; line-height: 1.7; }
.assistant-content {
  position: relative;
  overflow: hidden;
  padding: 15px 16px 16px;
  color: #334b64;
  background:
    linear-gradient(90deg, #e9f4ff 0 3px, transparent 3px),
    #ffffff;
  border: 1px solid #d8e4ef;
  box-shadow: 0 10px 28px #244e7910;
  border-radius: 3px 14px 14px 14px;
}
.assistant-content h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 8px;
  color: #173b5c;
  font-size: 13px;
  letter-spacing: .02em;
}
.assistant-content h4:first-child { margin-top: 0; }
.assistant-content h4::before {
  width: 6px;
  height: 6px;
  background: var(--cyan);
  box-shadow: 0 0 0 4px #2ba9d414;
  border-radius: 50%;
  content: "";
}
.assistant-content p {
  margin: 7px 0;
  font-size: 12px;
  line-height: 1.8;
}
.assistant-content strong { color: #155a94; font-weight: 720; }
.assistant-content code {
  padding: 2px 5px;
  color: #265a83;
  background: #edf5fb;
  font: 10px "Cascadia Code", monospace;
  border-radius: 3px;
}
.assistant-content ul {
  display: grid;
  gap: 8px;
  margin: 9px 0;
  padding: 0;
  list-style: none;
}
.assistant-content li {
  position: relative;
  padding: 9px 10px 9px 27px;
  background: #f5f9fd;
  border: 1px solid #e2ebf3;
  font-size: 11px;
  line-height: 1.7;
}
.assistant-content li::before {
  position: absolute;
  top: 14px;
  left: 11px;
  width: 6px;
  height: 6px;
  background: var(--blue);
  border-radius: 50%;
  content: "";
}
.assistant-content blockquote {
  margin: 11px 0 3px;
  padding: 10px 12px;
  color: #765d2e;
  background: #fff9ec;
  border-left: 3px solid #e0a731;
  font-size: 11px;
  line-height: 1.7;
}
.response-table-wrap {
  margin: 10px 0;
  overflow-x: auto;
  border: 1px solid #dce6ef;
}
.assistant-content table {
  width: 100%;
  min-width: 260px;
  border-collapse: collapse;
  background: #ffffff;
  font-size: 10px;
}
.assistant-content th, .assistant-content td {
  padding: 9px;
  border-bottom: 1px solid #e4ebf2;
  text-align: left;
}
.assistant-content th { color: #49637e; background: #f2f7fb; font-weight: 650; }
.recommendation-list {
  display: grid;
  gap: 8px;
  margin: 9px 0 0 29px;
}
.recommendation-card {
  position: relative;
  width: min(100%, 316px);
  padding: 13px 14px;
  overflow: hidden;
  color: var(--text);
  background: #ffffff;
  border: 1px solid #cbdced;
  border-radius: 10px;
  box-shadow: 0 8px 24px #294e7510;
}
.recommendation-card::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 42px;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  content: "";
}
.recommendation-card div { display: grid; gap: 5px; }
.recommendation-card div > span {
  color: var(--blue);
  font: 9px "Cascadia Code", monospace;
  letter-spacing: .12em;
}
.recommendation-card div > small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.recommendation-card button {
  margin-top: 11px;
  padding: 7px 10px;
  color: var(--blue);
  background: #edf5ff;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 650;
}

.knowledge-source-list {
  display: grid;
  gap: 8px;
  margin: 10px 0 0 29px;
}
.knowledge-source-title {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #49647f;
  font-size: 10px;
}
.knowledge-source-title > span {
  padding: 3px 6px;
  color: #1769b0;
  background: #edf6ff;
  border: 1px solid #cfe2f5;
  border-radius: 4px;
  font: 700 8px "Cascadia Code", monospace;
  letter-spacing: .08em;
}
.knowledge-source-list article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  color: #334b64;
  background: linear-gradient(135deg, #f7fbff, #ffffff);
  border: 1px solid #d8e6f3;
  border-radius: 10px;
}
.knowledge-source-list article > span {
  align-self: start;
  padding: 4px 6px;
  color: #126ab5;
  background: #e8f4ff;
  border-radius: 4px;
  font: 700 8px "Cascadia Code", monospace;
}
.knowledge-source-list article > div {
  min-width: 0;
}
.knowledge-source-list article strong {
  display: block;
  color: #203d59;
  font-size: 11px;
}
.knowledge-source-list article p {
  display: -webkit-box;
  margin: 5px 0 6px;
  overflow: hidden;
  color: #5b7086;
  font-size: 10px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.knowledge-source-evidence {
  display: grid;
  gap: 5px;
  margin: 6px 0 7px;
  padding: 0;
  list-style: none;
}
.knowledge-source-evidence li {
  position: relative;
  padding-left: 12px;
  color: #5b7086;
  font-size: 10px;
  line-height: 1.55;
}
.knowledge-source-evidence li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: #2781c9;
  content: "•";
}
.knowledge-source-list article small {
  display: block;
  overflow: hidden;
  color: #7d91a5;
  font: 8px "Cascadia Code", monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.agent-actions button {
  border: 1px solid #bed6f3;
  border-radius: 10px;
  background: #f5f9ff;
  color: #165fae;
  padding: 9px 12px;
  font-weight: 700;
  cursor: pointer;
}

.agent-actions button:hover {
  border-color: #78abe5;
  background: #edf5ff;
}
.agent-composer {
  display: grid;
  grid-template-columns: 1fr 44px;
  gap: 9px;
  padding: 12px;
  background: #f5f8fc;
  border-top: 1px solid var(--line);
}
.agent-composer textarea {
  min-height: 68px;
  margin: 0;
  background: #ffffff;
  font-family: inherit;
  font-size: 13px;
}
.agent-composer button {
  display: grid;
  place-items: center;
  align-self: end;
  width: 44px;
  height: 44px;
  color: #ffffff;
  background: var(--blue);
}
.agent-composer button:disabled { opacity: .45; cursor: not-allowed; }
.thinking {
  margin: 0;
  padding: 0 14px 11px;
  color: var(--muted);
  font-size: 10px;
  background: #f5f8fc;
}
.thinking i {
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 3px;
  border-radius: 50%;
  background: var(--cyan);
  animation: pulse 1s infinite alternate;
}
.thinking i:nth-child(2) { animation-delay: .2s; }
.thinking i:nth-child(3) { animation-delay: .4s; }
.trace { margin: 0; padding: 0 14px 12px; overflow-wrap: anywhere; background: #f5f8fc; }

.refresh-button {
  padding: 7px 10px;
  color: var(--blue);
  background: #ffffff;
  border: 1px solid var(--line);
  font-size: 10px;
}
.quote-conditions {
  margin-bottom: 16px;
  padding: 17px;
  background: #ffffff;
  border: 1px solid var(--line);
}
.condition-title, .form-section-title {
  display: flex;
  align-items: center;
  gap: 9px;
}
.condition-title > span {
  color: var(--blue);
  font: 10px "Cascadia Code", monospace;
}
.relation-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 8px;
}
.relation-options button {
  padding: 9px 4px;
  color: #65768b;
  background: #f5f8fb;
  border: 1px solid var(--line);
  font-size: 11px;
}
.relation-options button.active {
  color: var(--blue);
  background: #edf5ff;
  border-color: #9fc4ee;
  box-shadow: inset 0 -2px var(--blue);
}
.fixed-conditions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.fixed-conditions span {
  padding: 6px 8px;
  color: #597088;
  background: #f4f7fa;
  border: 1px solid #dce5ee;
  font-size: 10px;
}
.product-list { display: grid; gap: 14px; }
.product-card {
  position: relative;
  padding: 20px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #d9e3ee;
  box-shadow: 0 14px 36px #3155780c;
  animation: rise .4s both;
}
.product-card.recommended { border-color: #8ebce9; box-shadow: 0 16px 40px #146ce517; }
.product-card.recommended::after {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 120px;
  height: 120px;
  border: 1px solid #146ce51f;
  transform: rotate(45deg);
}
.product-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.product-topline > span { color: var(--blue); font: 10px "Cascadia Code", monospace; }
.product-topline em {
  padding: 4px 7px;
  color: #0d7190;
  background: #eaf8fb;
  font-size: 9px;
  font-style: normal;
}
h3 { margin: 7px 0; font-size: 20px; font-weight: 580; }
.product-card > p { color: var(--muted); font-size: 12px; line-height: 1.7; }
.plans { display: flex; gap: 7px; flex-wrap: wrap; }
.plans span {
  padding: 5px 9px;
  color: #536982;
  background: #f5f8fc;
  border: 1px solid #cddaea;
  font: 10px "Cascadia Code", monospace;
}
.benefit-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 12px;
  margin: 16px 0;
  padding: 14px 0 0;
  color: #566a81;
  border-top: 1px solid #e3e9f0;
  font-size: 10px;
  list-style: none;
}
.benefit-list li::before { content: "✓"; margin-right: 5px; color: var(--cyan); }
.product-action, .primary-action, .flow-primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 13px 15px;
  color: #ffffff;
  background: var(--blue);
  font-weight: 650;
}
.product-action:disabled, .primary-action:disabled, .flow-primary:disabled {
  opacity: .5;
  cursor: wait;
}
.empty-state { padding: 28px; color: var(--muted); text-align: center; }
.quote-feedback {
  position: fixed;
  z-index: 24;
  top: 82px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 9px;
  width: min(calc(100% - 32px), 440px);
  padding: 12px 14px;
  color: #24537f;
  background: #edf6ff;
  border: 1px solid #a9cce9;
  box-shadow: 0 14px 34px #214a731f;
  font-size: 11px;
  transform: translateX(-50%);
}
.quote-feedback > span {
  display: grid;
  place-items: center;
  flex: none;
  width: 20px;
  height: 20px;
  color: #ffffff;
  background: var(--blue);
  border-radius: 50%;
  font: 10px "Cascadia Code", monospace;
}
.quote-feedback.failed {
  color: #9d293b;
  background: #fff3f5;
  border-color: #efbcc5;
}
.quote-feedback.failed > span { background: #c43a50; }
.input-help {
  display: block;
  margin-top: 6px;
  color: #8796a8;
  font-size: 9px;
}

.policy-list {
  display: grid;
  gap: 14px;
}
.policy-summary {
  position: relative;
  padding: 22px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #0f4f9e, #147ebc);
  box-shadow: 0 20px 44px #125b9e26;
}
.policy-glow {
  position: absolute;
  right: -58px;
  bottom: -80px;
  width: 190px;
  height: 190px;
  border: 1px solid #ffffff2b;
  border-radius: 50%;
  box-shadow: 0 0 0 28px #ffffff0b, 0 0 0 56px #ffffff08;
}
.policy-heading { display: flex; align-items: center; justify-content: space-between; }
.policy-heading span { opacity: .75; font: 9px "Cascadia Code", monospace; letter-spacing: .14em; }
.policy-heading em {
  padding: 5px 8px;
  color: #d7fff4;
  background: #ffffff1a;
  border: 1px solid #ffffff2b;
  font-size: 10px;
  font-style: normal;
}
.policy-summary h3 { position: relative; margin-top: 22px; }
.policy-plan {
  position: relative;
  margin: -6px 0 10px;
  color: #d7ebff;
  font-size: 10px;
}
.policy-number { position: relative; opacity: .72; font: 10px "Cascadia Code", monospace; }
.policy-data {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 16px;
  margin: 24px 0 18px;
  padding-top: 15px;
  border-top: 1px solid #ffffff31;
}
.policy-data div { display: grid; gap: 5px; }
.policy-data small { opacity: .7; font-size: 9px; }
.policy-data strong { font-size: 12px; font-weight: 560; }
.policy-actions {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.policy-actions button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 39px;
  padding: 10px 11px;
  color: #ffffff;
  background: #ffffff12;
  border: 1px solid #ffffff30;
  font-size: 10px;
}
.policy-actions .policy-service-action {
  color: #16446d;
  border-color: #ffffffb3;
  background: #ffffff;
  font-weight: 700;
}
.confirm-list { margin: 12px 0; }
.confirm-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid #edf1f5;
  font-size: 11px;
}
dt { color: var(--muted); }
dd { margin: 0; color: #30445d; text-align: right; }
.coverage-empty {
  padding: 54px 24px;
  color: var(--muted);
  background: #ffffff;
  border: 1px dashed #cbd8e5;
  text-align: center;
}
.empty-shield {
  display: grid;
  place-items: center;
  width: 58px;
  height: 66px;
  margin: 0 auto 18px;
  color: var(--blue);
  background: #edf5ff;
  clip-path: polygon(50% 0, 94% 18%, 88% 72%, 50% 100%, 12% 72%, 6% 18%);
  font-size: 26px;
}
.coverage-empty p { font-size: 12px; line-height: 1.7; }
.coverage-empty button { padding: 10px 14px; color: var(--blue); background: #edf5ff; }

.policy-document-layer {
  position: fixed;
  z-index: 40;
  inset: 0;
  left: 50%;
  width: min(100%, 478px);
  overflow-y: auto;
  background: #edf2f7;
  transform: translateX(-50%);
  animation: document-in .24s ease-out both;
}
.policy-document {
  min-height: 100%;
  background: #ffffff;
}
.policy-document-header {
  position: sticky;
  z-index: 2;
  top: 0;
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 10px 18px;
  background: #fffffff2;
  border-bottom: 1px solid #dce5ee;
  backdrop-filter: blur(18px);
}
.policy-document-header > button {
  width: 34px;
  height: 34px;
  color: #3c536d;
  background: #f2f6fa;
  border: 1px solid #dce5ee;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
}
.policy-document-header > div { display: grid; gap: 2px; }
.policy-document-header span { color: #153651; font-size: 15px; font-weight: 700; letter-spacing: .08em; }
.policy-document-header small { color: var(--muted); font-size: 9px; letter-spacing: .12em; }
.policy-document-header em {
  padding: 6px 9px;
  color: #14785f;
  background: #eaf8f3;
  border: 1px solid #c6e9de;
  font-size: 10px;
  font-style: normal;
}
.policy-document-hero {
  position: relative;
  overflow: hidden;
  padding: 34px 24px 30px;
  color: #ffffff;
  background:
    radial-gradient(circle at 90% 15%, #6bd4ff4a 0 14%, transparent 15%),
    linear-gradient(135deg, #0a3e78, #0b75b2);
}
.policy-document-hero::after {
  position: absolute;
  right: -54px;
  bottom: -72px;
  width: 180px;
  height: 180px;
  border: 1px solid #ffffff2b;
  border-radius: 50%;
  box-shadow: 0 0 0 28px #ffffff0b, 0 0 0 56px #ffffff08;
  content: "";
}
.policy-document-hero > p {
  margin: 0 0 18px;
  opacity: .7;
  font: 9px "Cascadia Code", monospace;
  letter-spacing: .18em;
}
.policy-document-hero h2 { position: relative; z-index: 1; margin: 0; font-size: 23px; letter-spacing: .02em; }
.policy-document-hero > span { display: block; position: relative; z-index: 1; margin-top: 7px; color: #d6ebff; font-size: 11px; }
.policy-document-hero > div {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 5px;
  margin-top: 30px;
  padding-top: 17px;
  border-top: 1px solid #ffffff31;
}
.policy-document-hero small { opacity: .7; font-size: 9px; }
.policy-document-hero strong { font: 13px "Cascadia Code", monospace; letter-spacing: .04em; }
.policy-document-body { position: relative; padding: 26px 22px 42px; }
.document-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 13px;
}
.document-section-title span {
  color: var(--blue);
  font: 10px "Cascadia Code", monospace;
}
.document-section-title h3 { margin: 0; color: #153651; font-size: 15px; }
.document-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 0 0 27px;
  background: #dfe7ef;
  border: 1px solid #dfe7ef;
}
.document-fields > div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 13px;
  background: #ffffff;
}
.document-fields .wide-field { grid-column: 1 / -1; }
.document-fields dt { color: #7a8b9e; font-size: 9px; }
.document-fields dd {
  overflow-wrap: anywhere;
  color: #263f59;
  font: 10px "Cascadia Code", "Microsoft YaHei", monospace;
  text-align: left;
}
.document-fields .active-status { color: #14785f; font-family: "Microsoft YaHei", sans-serif; font-weight: 700; }
.policy-document-note {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  padding: 13px;
  color: #5e7186;
  background: #f4f8fc;
  border-left: 3px solid #4a9cd5;
}
.policy-document-note > span {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: #ffffff;
  background: #4a9cd5;
  border-radius: 50%;
  font: 11px Georgia, serif;
}
.policy-document-note p { margin: 0; font-size: 10px; line-height: 1.75; }
.policy-seal {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  margin: 28px 8px 24px auto;
  color: #bb4050;
  border: 2px solid #cf6572;
  border-radius: 50%;
  outline: 1px dashed #cf6572;
  outline-offset: -6px;
  transform: rotate(-8deg);
}
.policy-seal span { font-size: 15px; font-weight: 800; letter-spacing: .12em; }
.policy-seal small { margin-top: -14px; font-size: 8px; letter-spacing: .05em; }
.document-print {
  width: 100%;
  padding: 13px;
  color: #ffffff;
  background: var(--blue);
  box-shadow: 0 10px 24px #146ce526;
  font-size: 12px;
}

.conversation-layer {
  position: fixed;
  z-index: 40;
  inset: 0;
  left: 50%;
  display: flex;
  align-items: flex-end;
  width: min(100%, 480px);
  background: #102d4f42;
  backdrop-filter: blur(5px);
  transform: translateX(-50%);
}
.conversation-drawer {
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 22px 20px max(24px, env(safe-area-inset-bottom));
  background:
    linear-gradient(90deg, transparent 23px, #e5edf6 24px, transparent 25px),
    #f8fbfe;
  border-top: 1px solid #c7d8e8;
  box-shadow: 0 -26px 70px #173c6530;
  animation: drawer-in .32s ease both;
}
.conversation-drawer > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.conversation-drawer h2 { margin: 4px 0 0; font-size: 27px; }
.conversation-drawer > header > button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #526982;
  background: #ffffff;
  border: 1px solid var(--line);
  font-size: 20px;
}
.conversation-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0 12px;
  padding: 14px 16px;
  color: #5d7188;
  background: linear-gradient(105deg, #edf6ff, #ffffff);
  border: 1px solid #cdddeb;
  font-size: 11px;
}
.conversation-summary strong {
  color: #173f6e;
  font: 24px "Cascadia Code", monospace;
}
.conversation-summary small { margin-left: 4px; font: 9px "Microsoft YaHei UI", sans-serif; }
.new-conversation-card {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  width: 100%;
  gap: 12px;
  padding: 14px;
  color: #ffffff;
  background: linear-gradient(120deg, #125fbf, #0a83a3);
  box-shadow: 0 12px 28px #146ce522;
  text-align: left;
}
.new-conversation-card > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #ffffff66;
  font-size: 21px;
}
.new-conversation-card div { display: grid; gap: 3px; }
.new-conversation-card strong { font-size: 13px; }
.new-conversation-card small { color: #d9efff; font-size: 9px; }
.new-conversation-card em { font-size: 19px; font-style: normal; }
.conversation-list { display: grid; gap: 9px; margin-top: 14px; }
.conversation-list > button {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  width: 100%;
  gap: 10px;
  padding: 14px;
  color: var(--text);
  background: #ffffff;
  border: 1px solid #dbe5ef;
  text-align: left;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.conversation-list > button:hover,
.conversation-list > button.current {
  border-color: #8fb9e2;
  box-shadow: 0 8px 24px #264e7912;
  transform: translateY(-1px);
}
.conversation-index {
  display: grid;
  width: 32px;
  height: 38px;
  place-items: center;
  color: #48709a;
  background: #eff5fb;
  font: 9px "Cascadia Code", monospace;
}
.conversation-index i {
  width: 5px;
  height: 5px;
  margin-top: -9px;
  background: #20a386;
  border-radius: 50%;
}
.conversation-list > button > div:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.conversation-list strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.conversation-list p {
  overflow: hidden;
  margin: 0;
  color: #687b91;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.conversation-list small { color: #8b9bad; font: 8px "Cascadia Code", monospace; }
.conversation-list > button > em { color: #7290ad; font-size: 20px; font-style: normal; }
.conversation-loading,
.conversation-empty {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 150px;
  color: #718399;
  text-align: center;
}
.conversation-loading i {
  width: 22px;
  height: 22px;
  border: 2px solid #cbdbea;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.conversation-empty > span { color: var(--blue); font-size: 24px; }
.conversation-empty strong { color: var(--text); font-size: 13px; }
.conversation-empty p { margin: 0; font-size: 10px; }

.service-application-sheet {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 30;
  width: min(100%, 480px);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: 0 18px 46px;
  background:
    radial-gradient(circle at 75% 0, #d9efff 0, transparent 28%),
    linear-gradient(180deg, #f7faff, #edf3f8);
  box-shadow: 0 18px 70px #24466f24;
  transform: translateX(-50%);
  animation: service-sheet-in .28s cubic-bezier(.2, .72, .2, 1) both;
}
.service-sheet-header {
  position: sticky;
  top: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  margin-bottom: 16px;
  border-bottom: 1px solid #d9e5ef;
  background: #f7faffed;
  backdrop-filter: blur(16px);
}
.service-sheet-header > button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #d0deea;
  border-radius: 50%;
  background: #ffffff;
  color: #315d84;
  font-size: 16px;
}
.service-sheet-header > div { display: grid; gap: 4px; }
.service-sheet-header small {
  color: #6e89a0;
  font: 8px "Cascadia Code", monospace;
  letter-spacing: .1em;
}
.service-sheet-header strong { color: #193b5b; font-size: 17px; }
.service-sheet-header > span {
  color: #16775f;
  border: 1px solid #cde7dd;
  border-radius: 999px;
  background: #f0faf6;
  padding: 6px 9px;
  font-size: 9px;
}
.service-linked-policy {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  align-items: center;
  gap: 10px;
  border: 1px solid #75a9da;
  background: #f1f7fe;
  box-shadow: inset 3px 0 #146ce5;
  padding: 13px;
}
.service-linked-policy .policy-choice-mark {
  border: 4px solid #ffffff;
  background: var(--blue);
  box-shadow: 0 0 0 1px var(--blue);
}
.service-linked-policy > div { min-width: 0; display: grid; gap: 4px; }
.service-linked-policy strong { color: #234563; font-size: 11px; }
.service-linked-policy small {
  overflow: hidden;
  color: #76889c;
  font: 8px "Cascadia Code", monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.service-linked-policy em { color: #16836c; font-size: 9px; font-style: normal; }
.service-intro-card {
  position: relative;
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  gap: 13px;
  padding: 17px;
  overflow: hidden;
  background:
    linear-gradient(120deg, #ffffff, #edf6ff),
    #ffffff;
  border: 1px solid #bad3e9;
  box-shadow: 0 14px 34px #2f5a8412;
}
.service-intro-card::after {
  content: "";
  position: absolute;
  right: -24px;
  width: 86px;
  height: 86px;
  border: 1px solid #146ce51f;
  transform: rotate(45deg);
}
.service-intro-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(145deg, var(--blue), var(--cyan));
  font: 700 11px "Cascadia Code", monospace;
}
.service-intro-card div { position: relative; z-index: 1; display: grid; gap: 5px; }
.service-intro-card strong { font-size: 14px; }
.service-intro-card p { margin: 0; color: #65798f; font-size: 10px; line-height: 1.6; }
.service-progress-rail {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 7px;
  margin: 18px 4px;
}
.service-progress-rail > div { display: grid; justify-items: center; gap: 4px; color: #91a0b1; }
.service-progress-rail span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  background: #e9eef4;
  border: 1px solid #d6e0ea;
  font: 8px "Cascadia Code", monospace;
}
.service-progress-rail small { font-size: 8px; }
.service-progress-rail div.active { color: #2d5f91; }
.service-progress-rail div.active span {
  color: #ffffff;
  background: #216fbe;
  border-color: #216fbe;
  box-shadow: 0 5px 13px #146ce526;
}
.service-progress-rail > i { height: 1px; background: #cdd9e5; }
.service-section {
  margin-top: 14px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid #d8e3ed;
  box-shadow: 0 10px 28px #3158780c;
}
.service-section-heading {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.service-section-heading > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: #2469ac;
  background: #eef6fd;
  border-left: 2px solid var(--blue);
  font: 8px "Cascadia Code", monospace;
}
.service-section-heading div { display: grid; gap: 3px; }
.service-section-heading strong { font-size: 13px; }
.service-section-heading small { color: #7c8da0; font-size: 9px; }
.service-policy-options { display: grid; gap: 8px; }
.service-policy-options label {
  position: relative;
  display: grid;
  grid-template-columns: 18px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 13px;
  background: #f8fafc;
  border: 1px solid #dce5ee;
  cursor: pointer;
}
.service-policy-options label.selected {
  background: #f1f7fe;
  border-color: #75a9da;
  box-shadow: inset 3px 0 #146ce5;
}
.service-policy-options input { position: absolute; opacity: 0; }
.policy-choice-mark {
  width: 14px;
  height: 14px;
  border: 1px solid #91a7bd;
  border-radius: 50%;
}
.service-policy-options label.selected .policy-choice-mark {
  border: 4px solid #ffffff;
  background: var(--blue);
  box-shadow: 0 0 0 1px var(--blue);
}
.service-policy-options div { min-width: 0; display: grid; gap: 4px; }
.service-policy-options strong { font-size: 11px; }
.service-policy-options small {
  overflow: hidden;
  color: #76889c;
  font: 8px "Cascadia Code", monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.service-policy-options em { color: #16836c; font-size: 9px; font-style: normal; }
.service-upload {
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 24px 16px;
  color: #536b84;
  background:
    repeating-linear-gradient(135deg, transparent 0 11px, #146ce504 12px 13px),
    #f7faff;
  border: 1px dashed #91b2d1;
  cursor: pointer;
  text-align: center;
}
.service-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-symbol {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #146ce5;
  background: #ffffff;
  border: 1px solid #cbdceb;
  box-shadow: 0 7px 18px #29598212;
}
.upload-symbol svg {
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service-upload strong { color: #27445f; font-size: 12px; }
.service-upload small { color: #8292a5; font-size: 9px; line-height: 1.6; }
.service-file-preview {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 13px;
  padding: 10px;
  background: #f4f8fc;
  border: 1px solid #d2dfeb;
}
.service-file-preview img {
  width: 100px;
  height: 112px;
  object-fit: cover;
  background: #ffffff;
  border: 1px solid #d8e2ec;
}
.service-file-preview div { min-width: 0; display: grid; align-content: center; gap: 6px; }
.service-file-preview span { color: var(--blue); font: 8px "Cascadia Code", monospace; letter-spacing: .1em; }
.service-file-preview strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.service-file-preview small { color: #7b8c9f; font: 9px "Cascadia Code", monospace; }
.service-file-preview button {
  width: fit-content;
  padding: 5px 8px;
  color: #506b85;
  background: #ffffff;
  border: 1px solid #cfdae5;
  font-size: 9px;
}
.service-primary {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 47px;
  gap: 9px;
  margin-top: 12px;
  padding: 10px 13px;
  color: #ffffff;
  background: #146ce5;
  box-shadow: 0 10px 24px #146ce526;
  font-size: 12px;
  font-weight: 700;
}
.service-primary:disabled { opacity: .58; cursor: wait; }
.service-primary > em { margin-left: auto; font-size: 17px; font-style: normal; }
.ai-button-mark {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid #ffffff70;
  font: 8px "Cascadia Code", monospace;
}
.recognition-warnings {
  margin-top: 10px;
  padding: 11px 12px;
  color: #7d5b22;
  background: #fff9ed;
  border: 1px solid #ecdcb8;
}
.recognition-warnings strong { font-size: 10px; }
.recognition-warnings p { margin: 5px 0 0; font-size: 9px; line-height: 1.6; }
.service-confirm-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 13px; }
.service-confirm-form label {
  display: grid;
  gap: 6px;
  color: #5e7187;
  font-size: 9px;
}
.service-confirm-form label:nth-child(2),
.service-confirm-form label:last-child { grid-column: span 2; }
.service-confirm-form input {
  width: 100%;
  min-width: 0;
  padding: 10px;
  color: #1d344e;
  background: #f7f9fc;
  border: 1px solid #d8e1ea;
  outline: none;
  font: 11px "Cascadia Code", monospace;
}
.service-confirm-form input:focus {
  background: #ffffff;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px #146ce510;
}
.service-material-note {
  margin-top: 12px;
  padding: 11px 12px;
  color: #5e7288;
  background: #f7f9fb;
  border-left: 2px solid #7e9cb8;
}
.service-material-note span { color: #294e72; font-size: 9px; font-weight: 700; }
.service-material-note p { margin: 5px 0 0; font-size: 9px; line-height: 1.7; }
.service-confirm-check {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 13px;
  padding: 12px;
  color: #556a80;
  background: #ffffff;
  border: 1px solid #d8e2ec;
  cursor: pointer;
  font-size: 9px;
  line-height: 1.65;
}
.service-confirm-check:hover { border-color: #a9c6e3; background: #fafdff; }
.service-confirm-check input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.service-confirm-check > i {
  display: grid;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  place-items: center;
  color: transparent;
  border: 1px solid #9fb2c5;
  border-radius: 5px;
  background: #f7fafc;
  font: normal 11px/1 sans-serif;
  transition: .16s ease;
}
.service-confirm-check input:checked + i {
  color: #ffffff;
  border-color: var(--blue);
  background: var(--blue);
  box-shadow: 0 4px 10px #146ce526;
}
.service-confirm-check input:focus-visible + i {
  outline: 2px solid #146ce540;
  outline-offset: 2px;
}
.service-confirm-check > span { min-width: 0; }
.service-primary.submit { background: linear-gradient(110deg, #125fbf, #07869f); }
.service-no-policy,
.service-empty-records {
  display: grid;
  justify-items: start;
  gap: 7px;
  padding: 24px 20px;
  background: #ffffff;
  border: 1px solid #d9e3ed;
}
.service-no-policy > span,
.service-empty-records > span { color: var(--blue); font: 10px "Cascadia Code", monospace; letter-spacing: .12em; }
.service-no-policy h3,
.service-empty-records h3 { margin: 0; font-size: 15px; }
.service-no-policy p,
.service-empty-records p { margin: 0; color: #718297; font-size: 10px; line-height: 1.7; }
.service-no-policy button,
.service-empty-records button {
  margin-top: 7px;
  padding: 9px 12px;
  color: #ffffff;
  background: var(--blue);
  font-size: 10px;
}
.service-request-list { display: grid; gap: 12px; }
.service-request-card {
  padding: 16px;
  background: #ffffff;
  border: 1px solid #d8e3ed;
  box-shadow: 0 10px 26px #2f587d0d;
}
.service-request-topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.service-request-topline > span { color: #56718a; font: 8px "Cascadia Code", monospace; }
.service-request-topline em {
  padding: 5px 8px;
  background: #eef4fa;
  font-size: 8px;
  font-style: normal;
}
.service-request-topline em.success { color: #16785f; background: #edf8f4; }
.service-request-topline em.warning { color: #8a641e; background: #fff7e8; }
.service-request-topline em.danger { color: #aa3f4c; background: #fff0f2; }
.service-request-topline em.pending { color: #376994; background: #edf5fc; }
.service-request-card h3 { margin: 14px 0 4px; font-size: 15px; }
.service-request-card > p { margin: 0; color: #8493a5; font: 8px "Cascadia Code", monospace; }
.service-request-card dl { margin: 13px 0 0; padding-top: 4px; border-top: 1px solid #e5ebf1; }
.service-request-card dl div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; }
.service-request-card dt { color: #7a8a9c; font-size: 9px; }
.service-request-card dd { margin: 0; color: #263f59; font-size: 9px; text-align: right; }
.service-review-note {
  margin-top: 8px;
  padding: 10px;
  color: #5b6f84;
  background: #f5f8fb;
  border-left: 2px solid #6c94ba;
}
.service-review-note span { font-size: 8px; font-weight: 700; }
.service-review-note p { margin: 4px 0 0; font-size: 9px; line-height: 1.6; }

.bottom-nav {
  position: fixed;
  z-index: 15;
  bottom: 0;
  left: 50%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(100%, 478px);
  padding: 8px 10px max(8px, env(safe-area-inset-bottom));
  background: #fffffff5;
  border-top: 1px solid #d7e1eb;
  box-shadow: 0 -10px 30px #27496d10;
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}
.bottom-nav button {
  display: grid;
  place-items: center;
  gap: 3px;
  padding: 5px;
  color: #7a899b;
  background: transparent;
  font-size: 9px;
}
.bottom-nav button.active { color: var(--blue); }
.bottom-nav button.active::after {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--blue);
  box-shadow: 0 0 9px #146ce570;
}
.bottom-nav svg { width: 21px; }

.enrollment-layer {
  position: fixed;
  z-index: 30;
  inset: 0;
  left: 50%;
  width: min(100%, 480px);
  overflow: hidden;
  background: #f6f9fc;
  box-shadow: 0 0 70px #173c652b;
  transform: translateX(-50%);
  animation: layer-in .35s ease both;
}
.enrollment-header {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  min-height: 68px;
  padding: 8px 14px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}
.enrollment-header > button {
  width: 34px;
  height: 34px;
  color: #647488;
  background: #f3f6f9;
  font-size: 23px;
  font-weight: 300;
}
.enrollment-header > div { display: grid; gap: 3px; text-align: center; }
.enrollment-header div span { color: var(--blue); font: 9px "Cascadia Code", monospace; letter-spacing: .12em; }
.enrollment-header div strong { font-size: 12px; }
.enrollment-header > small { color: var(--muted); font: 10px "Cascadia Code", monospace; text-align: right; }
.progress-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 0 14px; background: #ffffff; }
.progress-track span { height: 3px; background: #dfe7ef; }
.progress-track span.active { background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.direct-entry-line {
  height: 3px;
  margin: 0 14px;
  background: linear-gradient(90deg, var(--blue), var(--cyan), #dfe7ef 72%);
}
.enrollment-body {
  height: calc(100vh - 71px);
  overflow-y: auto;
  padding: 25px 20px 40px;
}
.enrollment-step { animation: page-in .28s ease both; }
.enrollment-step h2 { margin-bottom: 8px; font-size: 28px; }
.step-description { margin: 0 0 20px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.direct-product {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 14px;
  padding: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0, #45bcdf18, transparent 38%),
    linear-gradient(135deg, #eef7ff, #ffffff);
  border: 1px solid #bad6ee;
  box-shadow: 0 12px 28px #285b8c12;
}
.direct-product::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(var(--blue), var(--cyan));
  content: "";
}
.direct-product > div { display: grid; gap: 6px; }
.direct-product span { color: var(--blue); font: 9px "Cascadia Code", monospace; letter-spacing: .12em; }
.direct-product h3 { margin: 0; color: #173b5c; font-size: 17px; }
.direct-product p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.65; }
.direct-product em {
  padding: 5px 8px;
  color: #14785f;
  background: #e8f7f2;
  border: 1px solid #c5e7dc;
  font-size: 9px;
  font-style: normal;
  white-space: nowrap;
}
.direct-condition-form { margin-top: 16px; }
.direct-condition-form label + label { display: block; margin-top: 16px; }
.direct-entry-note {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  margin: 14px 0 18px;
  padding: 12px;
  color: #526a82;
  background: #f4f8fc;
  border: 1px solid #e0e9f1;
}
.direct-entry-note > span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: #ffffff;
  background: linear-gradient(145deg, var(--blue), var(--cyan));
  font: 700 8px "Cascadia Code", monospace;
}
.direct-entry-note p { margin: 0; font-size: 10px; line-height: 1.7; }
.quote-mini {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 15px;
  background: linear-gradient(120deg, #edf6ff, #ffffff);
  border: 1px solid #bdd7ef;
}
.quote-mini > div { display: grid; gap: 4px; }
.quote-mini span { font-size: 13px; font-weight: 650; }
.quote-mini small { color: var(--muted); font-size: 10px; }
.quote-mini > strong { color: var(--blue); font: 20px "Cascadia Code", monospace; }
.form-section {
  margin-top: 14px;
  padding: 17px;
  background: #ffffff;
  border: 1px solid var(--line);
}
.form-section-title {
  justify-content: space-between;
  margin-bottom: 15px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5ebf1;
}
.form-section-title span { color: var(--text); font-size: 14px; font-weight: 650; }
.form-section-title small { color: var(--muted); font-size: 9px; }
.form-section input[readonly] { color: #718196; background: #f0f4f8; }
select {
  width: 100%;
  margin-top: 8px;
  padding: 13px 12px;
  color: var(--text);
  background: #f7f9fc;
  border: 1px solid var(--line);
  outline: none;
  font: 14px "Cascadia Code", monospace;
}
.flow-primary { margin-top: 18px; min-height: 48px; }
.flow-back {
  flex: 0 0 92px;
  color: #566a81;
  background: #ffffff;
  border: 1px solid var(--line);
}
.flow-actions { display: flex; gap: 9px; margin-top: 18px; }
.flow-actions .flow-primary { flex: 1; margin-top: 0; }
.notice-document {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #cfdce8;
}
.notice-document > header {
  display: grid;
  gap: 4px;
  padding: 15px 16px;
  background: #eef5fd;
  border-bottom: 1px solid #d6e2ee;
}
.notice-document header span { font-size: 14px; font-weight: 650; }
.notice-document header small { color: var(--muted); font-size: 10px; }
.notice-document > div {
  max-height: 280px;
  overflow-y: auto;
  padding: 16px;
  color: #53667c;
}
.notice-document h3 { margin: 15px 0 6px; color: #263b54; font-size: 13px; }
.notice-document h3:first-child { margin-top: 0; }
.notice-document p { margin: 0; font-size: 11px; line-height: 1.85; }
.notice-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0;
  padding: 13px;
  color: #52667e;
  background: #ffffff;
  border: 1px solid var(--line);
  line-height: 1.65;
}
.notice-check input {
  flex: none;
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: var(--blue);
}
.confirm-product {
  position: relative;
  padding: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, #edf6ff, #ffffff);
  border: 1px solid #b8d2eb;
}
.confirm-product > span { color: var(--blue); font: 9px "Cascadia Code", monospace; letter-spacing: .12em; }
.confirm-product p { color: var(--muted); font-size: 11px; }
.confirm-product > strong { display: block; margin-top: 16px; color: var(--blue); font: 27px "Cascadia Code", monospace; }
.confirm-product > strong small { margin-left: 3px; color: var(--muted); font-size: 10px; }
.confirm-list {
  padding: 5px 16px;
  background: #ffffff;
  border: 1px solid var(--line);
}
.confirmed-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 13px;
  color: #2d705f;
  background: #eff9f6;
  border: 1px solid #cee7e0;
  font-size: 10px;
}
.payment-amount {
  display: grid;
  gap: 8px;
  padding: 26px 20px;
  background: #ffffff;
  border: 1px solid var(--line);
  text-align: center;
}
.payment-amount > span { color: var(--muted); font-size: 11px; }
.payment-amount > strong { color: var(--text); font: 34px "Cascadia Code", monospace; }
.payment-amount > small { color: var(--muted); font-size: 10px; }
.payment-channel {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 11px;
  margin-top: 14px;
  padding: 15px;
  background: #ffffff;
  border: 1px solid #b9d3eb;
}
.channel-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #ffffff;
  background: var(--blue);
  font: 18px "Cascadia Code", monospace;
}
.payment-channel div { display: grid; gap: 3px; }
.payment-channel div strong { font-size: 12px; }
.payment-channel div small { color: var(--muted); font-size: 9px; }
.payment-channel em { color: var(--blue); font-size: 10px; font-style: normal; }
.payment-order { color: var(--muted); font: 9px "Cascadia Code", monospace; text-align: center; }
.pay-button { margin-top: 22px; }
.success-symbol {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  margin: 34px auto 20px;
  background: #e9f8f3;
  border: 1px solid #b8e1d6;
  border-radius: 50%;
  box-shadow: 0 0 0 12px #e9f8f37a;
}
.success-symbol span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #ffffff;
  background: #1c9b79;
  border-radius: 50%;
  font-size: 24px;
}
.success-step, .payment-step > h2, .payment-step > .step-description { text-align: center; }
.success-step { color: #1c9b79; }
.success-policy {
  margin-top: 24px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
}
.success-policy > span { color: var(--muted); font-size: 10px; }
.success-policy > strong { display: block; margin: 5px 0 15px; font: 13px "Cascadia Code", monospace; }
.success-policy > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid #e7edf3;
}
.success-policy small { color: var(--muted); }
.success-policy em { color: #1c8e72; font-style: normal; }
.success-policy p { margin: 0; font-size: 10px; }

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
}
@keyframes page-in {
  from { opacity: 0; transform: translateY(8px); }
}
@keyframes layer-in {
  from { opacity: 0; transform: translate(-50%, 22px); }
}
@keyframes pulse {
  to { opacity: .25; transform: translateY(-2px); }
}
@keyframes document-in {
  from { opacity: 0; transform: translate(-50%, 14px); }
}
@keyframes drawer-in {
  from { opacity: 0; transform: translateY(28px); }
}
@keyframes service-sheet-in {
  from { opacity: 0; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 360px) {
  .tab-page, .enrollment-body { padding-inline: 15px; }
  .benefit-list { grid-template-columns: 1fr; }
  .policy-data { grid-template-columns: 1fr; }
  .relation-options { grid-template-columns: repeat(2, 1fr); }
  .conversation-action { padding-inline: 7px; }
  .service-confirm-form { grid-template-columns: 1fr; }
  .service-confirm-form label:nth-child(2),
  .service-confirm-form label:last-child { grid-column: auto; }
}

@media print {
  body * { visibility: hidden !important; }
  .policy-document-layer, .policy-document-layer * { visibility: visible !important; }
  .policy-document-layer {
    position: absolute;
    left: 0;
    width: 100%;
    overflow: visible;
    background: #ffffff;
    transform: none;
  }
  .policy-document-header > button, .document-print { display: none !important; }
  .policy-document-header { position: static; }
}
