:root {
  --customer-red: #e52d3f;
  --customer-orange: #f48720;
  --customer-ink: #20272d;
  --customer-muted: #7b8790;
  --customer-bg: #f4f5f7;
  --customer-surface: #ffffff;
  --customer-radius: 10px;
  --customer-brand-gradient: linear-gradient(135deg, var(--customer-red), var(--customer-orange));
  --brand: var(--customer-red);
  --brand-dark: #a71930;
  --navy: #123653;
  --ink: #172838;
  --muted: #637282;
  --line: #dbe2e8;
  --surface: #ffffff;
  --canvas: #f4f6f8;
  --soft-red: #f8ecee;
  --soft-blue: #eaf1f6;
  --green: #16735a;
  --soft-green: #e9f5f0;
  --amber: #a96812;
  --soft-amber: #fff5e5;
  --danger: #a32636;
  --shadow: 0 18px 48px rgba(13, 34, 52, 0.17);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: var(--ink);
  background: #e8edf1;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #e8edf1;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100%;
  background: #e8edf1;
}

button,
input {
  font: inherit;
}

button,
label {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
  cursor: pointer;
}

.desktop-stage {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 430px) 330px;
  justify-content: center;
  align-items: start;
  gap: 56px;
  padding: 36px 28px;
}

.app-shell {
  position: relative;
  width: 100%;
  height: min(932px, calc(100vh - 72px));
  min-height: 720px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  overflow: hidden;
  background: var(--canvas);
  border: 1px solid rgba(18, 54, 83, 0.13);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.app-header {
  min-height: 66px;
  padding: 15px 18px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  background: var(--customer-brand-gradient);
}

.brand-lockup {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.brand-lockup strong {
  font-size: 22px;
  line-height: 1;
}

.brand-lockup span {
  font-size: 12px;
  opacity: 0.82;
}

.icon-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 8px;
  background: transparent;
  font-size: 20px;
  font-weight: 700;
}

.icon-button .line-icon,
.home-more .line-icon {
  width: 20px;
  height: 20px;
}

.icon-button:focus-visible,
button:focus-visible,
label:focus-within,
input:focus-visible {
  outline: 3px solid rgba(35, 132, 199, 0.34);
  outline-offset: 2px;
}

.process-strip {
  padding: 9px 18px 10px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.process-strip > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.process-strip span {
  color: var(--muted);
  font-size: 11px;
}

.process-strip b {
  color: var(--brand-dark);
  font-size: 13px;
}

.process-track {
  height: 4px;
  overflow: hidden;
  border-radius: 4px;
  background: #e6e9ed;
}

.process-track i {
  display: block;
  width: 16.66%;
  height: 100%;
  background: var(--brand);
  transition: width 260ms ease;
}

#mainContent {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.screen {
  --screen-inline-padding: 18px;
  display: none;
  min-height: 100%;
  padding: 22px var(--screen-inline-padding) 26px;
}

.screen.active {
  display: block;
}

.home-intro p,
.page-heading p,
.drawer-heading p,
.presenter-note > p {
  margin: 0 0 7px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
}

.home-intro h1,
.page-heading h1 {
  margin: 0;
  max-width: 360px;
  color: var(--navy);
  font-size: 25px;
  line-height: 1.35;
  letter-spacing: 0;
}

.home-intro > span,
.page-heading > span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.page-heading.compact h1 {
  font-size: 22px;
}

.claim-focus {
  margin-top: 22px;
  padding: 18px;
  color: white;
  background: var(--navy);
  border-radius: 8px;
}

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

.focus-topline span {
  font-size: 13px;
  opacity: 0.75;
}

.focus-topline b {
  padding: 4px 7px;
  color: #ffe7bb;
  border: 1px solid rgba(255, 225, 178, 0.5);
  border-radius: 5px;
  font-size: 11px;
}

.claim-amount {
  margin: 22px 0 18px;
}

.claim-amount small,
.claim-amount strong {
  display: block;
}

.claim-amount small {
  margin-bottom: 4px;
  color: #c9d7e1;
  font-size: 11px;
}

.claim-amount strong {
  font-size: 30px;
  line-height: 1.2;
}

.material-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.material-progress div {
  min-width: 0;
  padding-top: 8px;
  border-top: 2px solid #4c8c78;
}

.material-progress div.pending {
  border-color: #d3a248;
}

.material-progress span,
.material-progress b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.material-progress span {
  color: #cbd8e0;
  font-size: 10px;
}

.material-progress b {
  margin-top: 3px;
  font-size: 11px;
}

.value-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.value-row article {
  min-width: 0;
  padding: 13px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.value-row b,
.value-row span {
  display: block;
}

.value-row b {
  color: var(--navy);
  font-size: 12px;
}

.value-row span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.trust-band {
  margin-top: 12px;
  padding: 12px 13px;
  border-left: 3px solid var(--green);
  background: var(--soft-green);
}

.trust-band b,
.trust-band span {
  display: block;
}

.trust-band b {
  color: #155846;
  font-size: 12px;
  line-height: 1.55;
}

.trust-band span {
  margin-top: 4px;
  color: #55746a;
  font-size: 10px;
}

.upload-mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-top: 14px;
  padding: 4px;
  border: 1px solid #d8e0e6;
  border-radius: 7px;
  background: #edf2f5;
}

.upload-mode-switch button {
  min-width: 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 10px;
  color: #657582;
  border: 0;
  border-radius: 5px;
  background: transparent;
}

.upload-mode-switch span,
.upload-mode-switch b {
  display: block;
}

.upload-mode-switch span {
  font-size: 12px;
  font-weight: 800;
}

.upload-mode-switch b {
  color: #7b8994;
  font-size: 9px;
}

.upload-mode-switch button.active {
  color: var(--navy);
  background: white;
  box-shadow: 0 1px 5px rgba(18, 41, 58, 0.1);
}

.upload-mode-switch button.active b {
  color: var(--brand);
}

.upload-error {
  margin-top: 9px;
  padding: 9px 11px;
  color: #8d2131;
  border: 1px solid #e5b7bf;
  border-radius: 6px;
  background: #fff3f5;
  font-size: 10px;
  line-height: 1.45;
}

.capture-stage {
  position: relative;
  min-height: 340px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 8px;
  background: #101b24;
}

.capture-stage.captured {
  box-shadow: inset 0 0 0 2px #4ca889;
}

.capture-status {
  position: absolute;
  z-index: 8;
  top: 12px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  color: white;
  border-radius: 5px;
  background: rgba(7, 18, 27, 0.82);
  font-size: 11px;
  transform: translateX(-50%);
  white-space: nowrap;
}

.capture-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f0b44b;
}

.captured .capture-status i {
  background: #52b793;
}

.receipt-host {
  position: relative;
}

.capture-receipt {
  position: absolute;
  inset: 54px 31px 48px;
  transform: rotate(-1.4deg);
}

.receipt-paper,
.uploaded-receipt {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: #24313b;
  background: #fffdf4;
  border: 1px solid #d9d1b6;
  border-radius: 3px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.26);
}

.uploaded-receipt {
  display: block;
  object-fit: cover;
}

.pdf-document-preview {
  position: absolute;
  inset: 54px 31px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 24px;
  color: #24313b;
  border: 1px solid #d9dfe4;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.26);
  text-align: center;
}

.pdf-document-preview i {
  width: 54px;
  height: 64px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  color: white;
  border-radius: 5px 5px 9px 5px;
  background: var(--brand);
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.pdf-document-preview b {
  width: 100%;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pdf-document-preview span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 9px;
}

.receipt-watermark {
  position: absolute;
  z-index: 0;
  top: 43%;
  left: 50%;
  color: rgba(167, 25, 48, 0.11);
  font-size: 29px;
  font-weight: 800;
  line-height: 1.05;
  text-align: center;
  transform: translate(-50%, -50%) rotate(-15deg);
  white-space: nowrap;
}

.receipt-watermark small {
  font-size: 13px;
}

.receipt-brand {
  position: relative;
  padding: 12px 12px 8px;
  color: #8e1d2e;
  border-bottom: 1px solid #d8cda9;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.receipt-meta {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 10px;
  padding: 10px 12px;
  font-family: "Microsoft YaHei", Arial, sans-serif;
  font-size: 8px;
}

.receipt-meta span:nth-child(even) {
  text-align: right;
}

.receipt-table {
  position: relative;
  margin: 0 12px;
  border-top: 1px solid #c9bea1;
  border-bottom: 1px solid #c9bea1;
}

.receipt-table > div {
  display: grid;
  grid-template-columns: 1fr 72px;
  padding: 5px 4px;
  border-top: 1px dotted #d8cfb6;
  font-size: 8px;
}

.receipt-table > div:first-child {
  border-top: 0;
}

.receipt-table .head {
  font-weight: 800;
  background: rgba(212, 199, 158, 0.18);
}

.receipt-table span:last-child {
  text-align: right;
}

.receipt-totals {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 9px 12px;
  font-size: 8px;
  text-align: right;
}

.receipt-totals b {
  color: #8e1d2e;
  font-size: 10px;
}

.receipt-footer {
  position: absolute;
  right: 10px;
  bottom: 6px;
  left: 10px;
  color: #897f67;
  font-size: 6px;
  text-align: center;
}

.field-overlay-layer {
  position: absolute;
  z-index: 4;
  inset: 0;
  pointer-events: none;
}

.field-overlay {
  position: absolute;
  opacity: 0;
  border: 1.5px solid #2382b7;
  background: rgba(35, 130, 183, 0.08);
  transition: opacity 160ms ease, border-color 160ms ease, background 160ms ease;
}

.field-overlay.visible {
  opacity: 1;
}

.field-overlay.review {
  border-color: #e09829;
  background: rgba(224, 152, 41, 0.13);
}

.field-overlay.active {
  opacity: 1;
  border-width: 2px;
  border-color: var(--brand);
  background: rgba(167, 25, 48, 0.13);
}

.document-corners {
  position: absolute;
  z-index: 6;
  inset: 45px 20px 41px;
  pointer-events: none;
}

.document-corners i {
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: #d9e8f0;
  border-style: solid;
}

.document-corners i:nth-child(1) { top: 0; left: 0; border-width: 2px 0 0 2px; }
.document-corners i:nth-child(2) { top: 0; right: 0; border-width: 2px 2px 0 0; }
.document-corners i:nth-child(3) { bottom: 0; left: 0; border-width: 0 0 2px 2px; }
.document-corners i:nth-child(4) { right: 0; bottom: 0; border-width: 0 2px 2px 0; }

.scan-beam {
  position: absolute;
  z-index: 7;
  top: 62px;
  right: 31px;
  left: 31px;
  height: 2px;
  background: #67d9b1;
  box-shadow: 0 0 14px rgba(103, 217, 177, 0.9);
  animation: scan 2.2s ease-in-out infinite;
}

.captured .scan-beam {
  display: none;
}

@keyframes scan {
  0%, 100% { transform: translateY(0); opacity: 0.65; }
  50% { transform: translateY(260px); opacity: 1; }
}

.quality-meter {
  position: absolute;
  z-index: 7;
  right: 12px;
  bottom: 12px;
  left: 12px;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.quality-meter span {
  padding: 4px 6px;
  color: #dbe7ee;
  border: 1px solid rgba(219, 231, 238, 0.25);
  border-radius: 4px;
  background: rgba(7, 18, 27, 0.72);
  font-size: 9px;
}

.quality-meter span:last-child {
  color: #ffdca2;
}

.capture-actions {
  display: grid;
  grid-template-columns: 1fr 58px 1fr;
  align-items: center;
  gap: 12px;
  margin: 16px 2px 12px;
}

.capture-actions > [hidden] {
  display: none !important;
}

.capture-actions.pdf-mode {
  grid-template-columns: 1fr 1fr;
}

.selected-materials {
  min-height: 38px;
  margin-top: 10px;
}

.selected-materials.image-rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 6px;
  scrollbar-width: thin;
}

.materials-empty {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  color: var(--muted);
  border: 1px dashed #c9d4dc;
  border-radius: 6px;
  background: #f7f9fa;
  font-size: 10px;
  text-align: center;
}

.selected-image-item {
  position: relative;
  flex: 0 0 68px;
  height: 58px;
  overflow: visible;
  border: 2px solid transparent;
  border-radius: 6px;
  background: white;
}

.selected-image-item.active {
  border-color: var(--brand);
}

.material-preview {
  width: 100%;
  height: 100%;
  display: block;
  padding: 0;
  overflow: hidden;
  color: white;
  border: 0;
  border-radius: 4px;
  background: #172b3b;
}

.material-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0.82;
}

.material-preview span {
  position: absolute;
  right: 4px;
  bottom: 3px;
  left: 4px;
  font-size: 8px;
  font-weight: 800;
  text-shadow: 0 1px 3px #000;
}

.material-remove {
  position: absolute;
  z-index: 3;
  top: -7px;
  right: -7px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  padding: 0;
  color: white;
  border: 2px solid white;
  border-radius: 50%;
  background: #6f7e88;
  font-size: 14px;
  line-height: 1;
}

.selected-pdf-item {
  position: relative;
  min-height: 58px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 26px;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid #cfd9e1;
  border-radius: 7px;
  background: white;
}

.selected-pdf-item > i {
  width: 38px;
  height: 42px;
  display: grid;
  place-items: center;
  color: white;
  border-radius: 4px;
  background: var(--brand);
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
}

.selected-pdf-item div {
  min-width: 0;
}

.selected-pdf-item b,
.selected-pdf-item span {
  display: block;
}

.selected-pdf-item b {
  overflow: hidden;
  color: var(--navy);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-pdf-item span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.selected-pdf-item .pdf-remove {
  position: static;
  justify-self: end;
  border-color: transparent;
}

.secondary-command {
  min-height: 42px;
  display: grid;
  place-items: center;
  color: var(--navy);
  border: 1px solid #b9c6d0;
  border-radius: 6px;
  background: var(--surface);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.shutter {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 2px solid var(--brand);
  border-radius: 50%;
  background: white;
}

.shutter i {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--brand);
}

.prepared-materials {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.prepared-materials span {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 10px;
}

.prepared-materials i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.ocr-workbench {
  margin-top: 15px;
  padding: 12px;
  border: 1px solid #cfd9e1;
  border-radius: 8px;
  background: #172b3b;
}

.ocr-receipt {
  width: 100%;
  height: 224px;
}

.ocr-receipt .receipt-paper {
  box-shadow: none;
}

.ocr-receipt .receipt-brand {
  padding-top: 8px;
  font-size: 11px;
}

.ocr-receipt .receipt-meta {
  padding-top: 7px;
  padding-bottom: 7px;
  font-size: 7px;
}

.ocr-receipt .receipt-table > div {
  padding: 3px 4px;
  font-size: 7px;
}

.ocr-receipt .receipt-totals {
  padding-top: 6px;
  font-size: 7px;
}

.ocr-progress {
  height: 4px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.16);
}

.ocr-progress i {
  display: block;
  width: 0;
  height: 100%;
  background: #67d9b1;
  transition: width 180ms ease;
}

.ocr-progress-label {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  color: #c7d5de;
  font-size: 10px;
}

.ocr-progress-label b {
  color: white;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.field-card {
  min-width: 0;
  min-height: 65px;
  padding: 10px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  opacity: 0.34;
  transform: translateY(3px);
  transition: opacity 180ms ease, transform 180ms ease, border-color 160ms ease;
}

.field-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.field-card.active {
  border-color: var(--brand);
  box-shadow: inset 3px 0 0 var(--brand);
}

.field-card.review {
  border-color: #e7b25b;
  background: var(--soft-amber);
}

.field-card span,
.field-card b,
.field-card small {
  display: block;
}

.field-card span {
  color: var(--muted);
  font-size: 9px;
}

.field-card b {
  margin-top: 4px;
  overflow: hidden;
  color: var(--navy);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.field-card small {
  margin-top: 3px;
  color: var(--green);
  font-size: 8px;
}

.field-card.review small {
  color: var(--amber);
}

.check-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.check-summary div {
  padding: 10px 6px;
  text-align: center;
  border-left: 1px solid var(--line);
}

.check-summary div:first-child {
  border-left: 0;
}

.check-summary b,
.check-summary span {
  display: block;
}

.check-summary b {
  color: var(--green);
  font-size: 17px;
}

.check-summary span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.check-summary .attention b {
  color: var(--amber);
}

.assistant-status {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 10px;
  margin: 16px calc(0px - var(--screen-inline-padding)) 0;
  padding: 12px var(--screen-inline-padding);
  background: var(--navy);
  color: white;
}

.assistant-avatar {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--brand);
  font-size: 13px;
  font-weight: 800;
}

.assistant-status b,
.assistant-status span {
  display: block;
}

.assistant-status b {
  font-size: 13px;
}

.assistant-status span {
  margin-top: 3px;
  color: #c8d8e4;
  font-size: 10px;
}

.assistant-status em {
  color: #7ee0bb;
  font-size: 9px;
  font-style: normal;
}

.conversation {
  display: grid;
  gap: 10px;
  padding: 16px 0 12px;
}

.message {
  max-width: 92%;
  padding: 12px 13px;
  border-radius: 7px;
  font-size: 12px;
  line-height: 1.65;
}

.message.assistant {
  justify-self: start;
  color: #20394d;
  border: 1px solid #cedce6;
  background: var(--surface);
}

.message.user {
  justify-self: end;
  color: white;
  background: var(--brand);
}

.message strong {
  color: var(--brand-dark);
}

.event-evidence {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid #e0e6ea;
}

.event-evidence span {
  color: var(--muted);
  font-size: 9px;
}

.event-evidence b {
  color: var(--navy);
  font-size: 10px;
}

.event-evidence em {
  grid-column: 1 / -1;
  color: var(--amber);
  font-size: 9px;
  font-style: normal;
}

.assistant-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.assistant-actions button {
  min-height: 44px;
  padding: 9px 11px;
  color: var(--navy);
  border: 1px solid #b8c8d3;
  border-radius: 6px;
  background: white;
  font-size: 12px;
  font-weight: 700;
}

.assistant-actions button.primary-action {
  color: white;
  border-color: var(--brand);
  background: var(--brand);
}

.assistant-actions button.full-action {
  grid-column: 1 / -1;
}

.action-receipt {
  margin-top: 12px;
  padding: 13px;
  border-left: 3px solid var(--green);
  background: var(--soft-green);
}

.action-receipt b,
.action-receipt span,
.action-receipt small {
  display: block;
}

.action-receipt b {
  color: #155846;
  font-size: 12px;
}

.action-receipt span {
  margin-top: 4px;
  color: #315d51;
  font-size: 11px;
}

.action-receipt small {
  margin-top: 6px;
  color: #658278;
  font-size: 9px;
}

.action-log {
  display: grid;
  gap: 0;
  margin: 10px 0 0;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  list-style: none;
}

.action-log li {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 9px;
  min-height: 50px;
  border-top: 1px solid var(--line);
}

.action-log li:first-child {
  border-top: 0;
}

.action-log i {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: var(--green);
  border-radius: 50%;
  background: var(--soft-green);
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
}

.action-log b,
.action-log span {
  display: block;
}

.action-log b {
  color: var(--navy);
  font-size: 10px;
}

.action-log span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
}

.review-amount {
  margin: 16px 0 10px;
  padding: 15px 16px;
  color: white;
  background: var(--navy);
  border-radius: 8px;
}

.review-amount span,
.review-amount strong,
.review-amount small {
  display: block;
}

.review-amount span {
  color: #cbd8e0;
  font-size: 10px;
}

.review-amount strong {
  margin: 3px 0;
  font-size: 27px;
}

.review-amount small {
  color: #a9c8bd;
  font-size: 9px;
}

.review-details {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.review-details div {
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 9px 12px;
  border-top: 1px solid var(--line);
}

.review-details div:first-child {
  border-top: 0;
}

.review-details dt {
  color: var(--muted);
  font-size: 11px;
}

.review-details dd {
  margin: 0;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

.gate-list {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.gate-item {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.gate-item i {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--soft-green);
  color: var(--green);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.gate-item.blocked i {
  color: var(--danger);
  background: var(--soft-red);
}

.gate-item b {
  font-size: 11px;
}

.gate-item span {
  color: var(--green);
  font-size: 9px;
}

.gate-item.blocked span {
  color: var(--danger);
}

.confirmation-control {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: 9px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #e0c4c9;
  border-radius: 7px;
  background: var(--soft-red);
}

.confirmation-control input {
  position: absolute;
  opacity: 0;
}

.confirmation-control > span {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 2px solid #b17a84;
  border-radius: 4px;
  background: white;
}

.confirmation-control input:checked + span {
  border-color: var(--brand);
  background: var(--brand);
}

.confirmation-control input:checked + span::after {
  content: "✓";
  color: white;
  font-size: 13px;
  font-weight: 800;
}

.confirmation-control b {
  color: #64222d;
  font-size: 11px;
  line-height: 1.55;
}

.result-hero {
  padding: 6px 0 18px;
  text-align: center;
}

.result-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto 11px;
  color: white;
  border-radius: 50%;
  background: var(--green);
  font-size: 30px;
  font-weight: 800;
}

.result-hero p {
  margin: 0;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.result-hero h1 {
  margin: 5px 0;
  color: var(--navy);
  font-size: 21px;
}

.result-hero span {
  display: block;
  margin: 0 auto;
  max-width: 340px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.notification-stack {
  display: grid;
  gap: 8px;
}

.notification-item {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 9px;
  min-height: 64px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.notice-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: white;
  border-radius: 7px;
  background: var(--navy);
  font-size: 12px;
  font-weight: 800;
}

.sms-notice .notice-icon {
  background: var(--brand);
}

.notification-item b,
.notification-item span {
  display: block;
}

.notification-item b {
  color: var(--navy);
  font-size: 11px;
}

.notification-item span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.notification-item em {
  color: var(--green);
  font-size: 9px;
  font-style: normal;
  white-space: nowrap;
}

.notification-item.failed {
  border-color: #e1bbc2;
  background: #fff8f9;
}

.notification-item.failed em {
  color: var(--danger);
}

.sms-preview {
  margin-top: 9px;
  padding: 12px;
  color: #dbe5ec;
  border-radius: 8px;
  background: var(--navy);
}

.sms-preview > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.sms-preview span,
.sms-preview b,
.sms-preview small {
  font-size: 9px;
}

.sms-preview b {
  color: #8ae0c1;
}

.sms-preview p {
  margin: 9px 0;
  color: white;
  font-size: 10px;
  line-height: 1.65;
}

.sms-preview small {
  color: #aebfca;
}

.claim-timeline {
  display: grid;
  gap: 0;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.claim-timeline article {
  position: relative;
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  min-height: 49px;
}

.claim-timeline article:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 17px;
  bottom: 0;
  left: 5px;
  width: 1px;
  background: var(--line);
}

.claim-timeline i {
  z-index: 1;
  width: 11px;
  height: 11px;
  margin-top: 3px;
  border: 2px solid #b7c2ca;
  border-radius: 50%;
  background: white;
}

.claim-timeline .done i,
.claim-timeline .current i {
  border-color: var(--green);
  background: var(--green);
}

.claim-timeline .current i {
  border-color: var(--brand);
  background: var(--brand);
}

.claim-timeline b,
.claim-timeline span {
  display: block;
}

.claim-timeline b {
  color: var(--navy);
  font-size: 11px;
}

.claim-timeline span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.inline-retry {
  width: 100%;
  min-height: 42px;
  margin-top: 9px;
  color: var(--brand);
  border: 1px solid #d4aab1;
  border-radius: 6px;
  background: white;
  font-size: 11px;
  font-weight: 800;
}

.action-bar {
  position: relative;
  z-index: 20;
  bottom: 0;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 9px;
  padding: 10px 18px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
}

.action-bar.single {
  grid-template-columns: 1fr;
}

.back-command {
  width: 48px;
  min-height: 48px;
  color: var(--navy);
  border: 1px solid #becbd4;
  border-radius: 6px;
  background: white;
  font-size: 30px;
  line-height: 1;
}

.primary-command {
  min-height: 48px;
  padding: 0 16px;
  color: white;
  border-radius: 6px;
  background: var(--brand);
  font-size: 14px;
  font-weight: 800;
}

.primary-command:disabled {
  cursor: not-allowed;
  color: #8d979f;
  background: #dfe4e8;
}

.primary-command.full {
  width: 100%;
}

.ai-support-launcher {
  position: absolute;
  z-index: 35;
  right: 18px;
  bottom: calc(78px + env(safe-area-inset-bottom));
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px 6px 7px;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 22px;
  background: var(--navy);
  box-shadow: 0 10px 24px rgba(18, 54, 83, 0.28);
}

.ai-support-launcher span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  font-size: 13px;
  font-weight: 800;
}

.ai-support-launcher b {
  font-size: 12px;
}

.ai-support-backdrop {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(9, 22, 32, 0.58);
}

.ai-support-backdrop[hidden] {
  display: none;
}

.ai-support-sheet {
  width: min(430px, 100vw);
  height: min(760px, 88dvh);
  min-height: 520px;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  background: var(--surface);
  box-shadow: 0 -18px 52px rgba(5, 20, 31, 0.28);
}

.ai-support-heading {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  color: white;
  background: var(--navy);
}

.ai-support-identity,
.ai-support-heading-actions {
  display: flex;
  align-items: center;
}

.ai-support-identity {
  min-width: 0;
  gap: 10px;
}

.ai-support-identity > span {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--brand);
  font-size: 12px;
  font-weight: 800;
}

.ai-support-identity h2,
.ai-support-identity p {
  margin: 0;
}

.ai-support-identity h2 {
  font-size: 15px;
}

.ai-support-identity p {
  margin-top: 3px;
  color: #c8d8e4;
  font-size: 10px;
}

.ai-support-heading-actions {
  flex: 0 0 auto;
  gap: 7px;
}

.ai-support-heading-actions em {
  padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  color: #b7c8d4;
  font-size: 9px;
  font-style: normal;
  white-space: nowrap;
}

.ai-support-heading-actions em[data-mode="online"] {
  color: #8ae0c1;
  border-color: rgba(138, 224, 193, 0.5);
}

.ai-support-heading-actions em[data-mode="knowledge"] {
  color: #f4d38a;
  border-color: rgba(244, 211, 138, 0.5);
}

.ai-support-heading-actions button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 7px;
  background: transparent;
  font-size: 22px;
}

.ai-support-context {
  min-height: 38px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--soft-blue);
}

.ai-support-context span,
.ai-support-context small {
  color: var(--muted);
  font-size: 9px;
}

.ai-support-context b {
  overflow: hidden;
  color: var(--navy);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-support-messages {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding: 15px 16px;
  background: #f6f8fa;
}

.ai-chat-message {
  max-width: 86%;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.62;
  overflow-wrap: anywhere;
}

.ai-chat-message.assistant {
  align-self: flex-start;
  color: #20394d;
  border: 1px solid #d4dee6;
  background: white;
}

.ai-chat-message.user {
  align-self: flex-end;
  color: white;
  background: var(--brand);
}

.ai-chat-message.typing {
  color: var(--muted);
}

.ai-chat-message small {
  display: block;
  margin-top: 5px;
  color: #7b8995;
  font-size: 8px;
}

.ai-support-suggestions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  background: white;
}

.ai-support-suggestions button {
  min-width: 0;
  min-height: 36px;
  padding: 6px 8px;
  color: var(--navy);
  border: 1px solid #c6d2db;
  border-radius: 6px;
  background: #f8fafb;
  font-size: 10px;
  line-height: 1.35;
}

.ai-support-composer {
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: white;
}

.ai-support-composer > label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.ai-support-composer > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px;
  gap: 7px;
}

.ai-support-composer input {
  min-width: 0;
  min-height: 42px;
  padding: 0 11px;
  color: var(--ink);
  border: 1px solid #b8c7d1;
  border-radius: 6px;
  background: white;
  font-size: 12px;
}

.ai-support-composer button {
  min-height: 42px;
  color: white;
  border-radius: 6px;
  background: var(--brand);
  font-size: 12px;
  font-weight: 800;
}

.ai-support-composer button:disabled {
  color: #8d979f;
  background: #dfe4e8;
}

.ai-support-composer > small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.45;
}

.presenter-note {
  align-self: center;
  padding: 8px 0;
}

.presenter-note > p {
  color: var(--brand);
}

.presenter-note h2 {
  margin: 0;
  color: var(--navy);
  font-size: 31px;
  line-height: 1.34;
}

.presenter-note ol {
  display: grid;
  gap: 1px;
  margin: 28px 0 24px;
  padding: 0;
  list-style: none;
  border-top: 1px solid #cad4dc;
}

.presenter-note li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid #cad4dc;
}

.presenter-note li b {
  color: var(--brand);
  font-size: 14px;
}

.presenter-note li span {
  color: var(--muted);
  font-size: 13px;
}

.presenter-note small {
  color: #6d7b87;
  font-size: 11px;
}

kbd {
  padding: 2px 6px;
  color: var(--navy);
  border: 1px solid #b8c4cd;
  border-bottom-width: 2px;
  border-radius: 4px;
  background: white;
  font-family: inherit;
}

.drawer-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  background: rgba(9, 22, 32, 0.56);
}

.drawer-backdrop[hidden] {
  display: none;
}

.presenter-drawer {
  width: min(420px, 100vw);
  min-height: 100%;
  padding: 22px;
  overflow-y: auto;
  background: var(--surface);
  box-shadow: -18px 0 48px rgba(0, 0, 0, 0.2);
}

.drawer-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}

.drawer-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: 20px;
  line-height: 1.4;
}

.drawer-heading .icon-button {
  flex: 0 0 auto;
  color: var(--navy);
  border-color: #b8c7d1;
}

.presenter-drawer fieldset {
  display: grid;
  gap: 7px;
  margin: 18px 0 0;
  padding: 0;
  border: 0;
}

.presenter-drawer legend {
  margin-bottom: 7px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
}

.presenter-drawer fieldset label {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.presenter-drawer input[type="radio"] {
  width: 17px;
  height: 17px;
  accent-color: var(--brand);
}

.presenter-drawer label b,
.presenter-drawer label small {
  display: block;
}

.presenter-drawer label b {
  color: var(--navy);
  font-size: 11px;
}

.presenter-drawer label small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.phone-setting {
  display: block;
  margin-top: 18px;
}

.phone-setting > span {
  display: block;
  margin-bottom: 7px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
}

.phone-setting input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink);
  border: 1px solid #b8c7d1;
  border-radius: 6px;
  background: white;
}

.drawer-warning {
  margin: 14px 0;
  padding: 11px;
  color: #6c4a16;
  border-left: 3px solid var(--amber);
  background: var(--soft-amber);
  font-size: 10px;
  line-height: 1.55;
}

@media (max-width: 840px) {
  body,
  html {
    background: var(--canvas);
  }

  .desktop-stage {
    display: block;
    min-height: 100vh;
    padding: 0;
  }

  .app-shell {
    height: 100dvh;
    min-height: 100dvh;
    max-width: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  body {
    overflow: hidden;
  }

  .presenter-note {
    display: none;
  }
}

@media (max-width: 370px) {
  .screen {
    --screen-inline-padding: 14px;
  }

  .home-intro h1,
  .page-heading h1 {
    font-size: 22px;
  }

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

  .value-row article {
    display: grid;
    grid-template-columns: 84px 1fr;
    align-items: center;
  }

  .value-row span {
    margin-top: 0;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .capture-receipt {
    right: 24px;
    left: 24px;
  }

  .capture-actions {
    grid-template-columns: 1fr 52px 1fr;
    gap: 8px;
  }

  .shutter {
    width: 52px;
    height: 52px;
  }

  .shutter i {
    width: 36px;
    height: 36px;
  }
}

/* Task 3 customer-style employee surfaces */
.customer-page {
  background: var(--customer-bg);
  color: var(--customer-ink);
}

.customer-surface {
  border-color: #e8e9ec;
  border-radius: var(--customer-radius);
  background: var(--customer-surface);
}

.app-level-screen {
  font-size: 15px;
}

.app-level-screen button {
  min-height: 44px;
}

.customer-toolbar {
  color: #fff;
  background: var(--customer-brand-gradient);
}

.customer-toolbar .home-header-actions button {
  min-width: 44px;
  height: 44px;
}

.customer-toolbar .home-header-actions span {
  margin: 0;
}

.customer-search {
  border-radius: 999px;
}

.customer-service-banner {
  background: var(--customer-brand-gradient);
  box-shadow: none;
}

.customer-service-banner > button {
  width: auto;
  min-width: 88px;
  height: 44px;
  border-radius: var(--customer-radius);
}

.customer-service-banner > button .line-icon {
  width: 18px;
  height: 18px;
  margin: 0 auto 2px;
}

.home-section.customer-surface,
.customer-claim-summary {
  margin: 0 16px 16px;
  padding: 15px;
}

.customer-service-grid {
  grid-template-columns: repeat(5, 1fr);
  gap: 12px 4px;
}

.customer-service-grid button {
  min-height: 78px;
  color: var(--customer-ink);
}

.customer-service-grid .service-icon,
.customer-page .service-icon {
  color: var(--customer-ink);
  background: transparent;
}

.customer-service-grid span {
  overflow: visible;
  font-size: 15px;
  line-height: 1.25;
  white-space: normal;
}

.claim-summary-row {
  width: 100%;
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  background: transparent;
}

.claim-summary-row span {
  min-width: 0;
  flex: 1;
}

.claim-summary-row b,
.claim-summary-row small {
  display: block;
}

.claim-summary-row em {
  color: var(--customer-red);
  font-style: normal;
}

.customer-page .app-page-heading {
  color: var(--customer-ink);
  background: var(--customer-surface);
}

.customer-page .app-page-heading button {
  color: var(--customer-red);
  border-color: #f2b7bd;
}

.customer-page .query-focus {
  color: var(--customer-ink);
  background: var(--customer-surface);
}

.customer-page .query-focus p,
.customer-page .query-focus small {
  color: var(--customer-muted);
}

.customer-page .query-progress {
  background: #eceef1;
}

.customer-page .query-progress i {
  background: var(--customer-orange);
}

.customer-page .query-status-row em {
  color: var(--customer-red);
  background: #fff0f1;
}

.profile-summary {
  margin: 16px;
  flex-wrap: wrap;
  color: var(--customer-ink);
  background: var(--customer-surface);
}

.profile-summary button {
  color: var(--customer-red);
  border-color: #f2b7bd;
}

.profile-role-summary {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.profile-role-summary span,
.profile-role-summary b {
  display: block;
  opacity: 1;
}

.profile-grid.customer-surface {
  gap: 0;
  overflow: hidden;
  border: 1px solid #e8e9ec;
}

.profile-grid.customer-surface button {
  border: 0;
  border-radius: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Unified Zhongyi app shell */
.process-strip[hidden],
.action-bar[hidden] {
  display: none !important;
}

.app-shell:not(.transaction-mode) {
  height: auto;
  min-height: 100dvh;
  grid-template-rows: 1fr;
  overflow: visible;
  background: #f7f3ee;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.app-shell:not(.transaction-mode) > .app-header {
  display: none;
}

.app-shell:not(.transaction-mode) #mainContent {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
  scrollbar-width: none;
}

.app-shell:not(.transaction-mode) #mainContent::-webkit-scrollbar {
  display: none;
}

.app-level-screen {
  position: relative;
  min-height: 100%;
  padding: 0 0 82px;
  background: #f7f3ee;
}

.app-level-screen.active {
  display: flex;
  flex-direction: column;
}

.zhongyi-home-header,
.handler-header {
  min-height: 132px;
  padding: 24px 20px 25px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  color: #fff;
  background: var(--customer-brand-gradient);
}

.zhongyi-home-header p,
.handler-header p {
  margin: 0 0 4px;
  font-size: 12px;
  opacity: 0.82;
}

.zhongyi-home-header h1,
.handler-header h1 {
  margin: 0;
  font-size: 27px;
  line-height: 1.2;
  letter-spacing: 0;
}

.zhongyi-home-header span,
.handler-header span {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  opacity: 0.8;
}

.home-header-actions {
  display: flex;
  gap: 7px;
}

.home-scan,
.home-help,
.home-more {
  min-width: 44px;
  height: 44px;
  padding: 3px 7px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  font-size: 11px;
  line-height: 1.1;
}

.handler-header > button {
  min-width: 78px;
  height: 44px;
  padding: 0 10px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  font-size: 11px;
}

.home-scan .line-icon,
.home-help .line-icon,
.home-more .line-icon {
  width: 20px;
  height: 20px;
}

.home-more {
  min-width: 44px;
  padding: 0;
}

.home-search {
  width: calc(100% - 32px);
  min-height: 46px;
  margin: -21px 16px 9px;
  padding: 0 15px;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  color: #7a8892;
  border: 1px solid rgba(18,54,83,.07);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(39,45,51,.11);
  font-size: 14px;
}

.home-search .line-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: #a71930;
}

.home-rail {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 0 12px 8px;
  background: #f7f3ee;
}

.home-rail button {
  height: 44px;
  position: relative;
  display: grid;
  place-content: center;
  gap: 2px;
  color: #667580;
  background: transparent;
  font-size: 12px;
}

.home-rail .line-icon {
  width: 16px;
  height: 16px;
}

.home-rail button.active {
  color: #a71930;
  font-weight: 700;
}

.home-rail button.active::after {
  content: "";
  width: 20px;
  height: 3px;
  position: absolute;
  left: 50%;
  bottom: 1px;
  transform: translateX(-50%);
  border-radius: 3px;
  background: #a71930;
}

.home-hero-card {
  min-height: 116px;
  margin: 2px 16px 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #fff;
  border-radius: 8px;
  background: #173a56;
  box-shadow: 0 10px 24px rgba(18,54,83,.16);
}

.home-hero-card p,
.home-hero-card h2,
.home-hero-card span {
  margin: 0;
}

.home-hero-card p {
  color: #e8b8c0;
  font-size: 12px;
  line-height: 1.4;
}

.home-hero-card h2 {
  margin-top: 4px;
  font-size: 19px;
  line-height: 1.35;
}

.home-hero-card div > span {
  display: block;
  margin-top: 7px;
  color: #ced8df;
  font-size: 12px;
  line-height: 1.55;
}

.home-hero-card > button {
  width: auto;
  min-width: 96px;
  height: 44px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 13px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 8px;
  background: rgba(255,255,255,.08);
}

.home-hero-card > button strong {
  font-size: 20px;
}

.home-hero-card > button span {
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}

.home-hero-card > button .line-icon {
  width: 17px;
  height: 17px;
  margin: 0;
}

.home-section,
.home-service-list,
.service-category,
.query-list,
.message-center,
.profile-grid,
.profile-settings,
.handler-tasks {
  margin: 0 16px 16px;
}

.section-heading {
  margin-bottom: 11px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.section-heading h2,
.section-heading p {
  margin: 0;
}

.section-heading h2 {
  color: #173a56;
  font-size: 18px;
  line-height: 1.35;
}

.section-heading p {
  margin-top: 4px;
  color: #84919a;
  font-size: 12px;
  line-height: 1.45;
}

.section-heading > button {
  padding: 5px 9px;
  color: #a71930;
  border: 1px solid #e4c5ca;
  border-radius: 6px;
  background: #fff;
  font-size: 10px;
}

.home-service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px 8px;
}

.home-service-grid button {
  min-width: 0;
  min-height: 88px;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #435867;
  background: transparent;
  font-size: 13px;
  line-height: 1.35;
}

.line-icon {
  display: block;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-icon {
  width: 34px;
  height: 34px;
  padding: 8px;
  color: #a71930;
  border-radius: 8px;
  background: #f2dfe2;
}

.home-service-grid .service-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 7px;
  padding: 10px;
  color: #202a33;
  background: #f7e6e8;
}

.home-service-grid span {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: visible;
  white-space: normal;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: normal;
}

.home-service-grid em {
  margin-top: 2px;
  color: #9aa4aa;
  font-size: 8px;
  font-style: normal;
}

.home-message-card {
  margin: 0 16px 16px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #e7deda;
  border-radius: 8px;
  background: #fff;
}

.home-message-card div {
  min-width: 0;
}

.home-message-card span,
.home-message-card b,
.home-message-card small {
  display: block;
}

.home-message-card span {
  color: #a71930;
  font-size: 10px;
  font-weight: 700;
}

.home-message-card b {
  margin-top: 3px;
  color: #173a56;
  font-size: 13px;
}

.home-message-card small {
  margin-top: 4px;
  overflow: hidden;
  color: #7e8b94;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-message-card button {
  flex: 0 0 auto;
  padding: 7px 10px;
  color: #fff;
  border-radius: 6px;
  background: #a71930;
  font-size: 10px;
}

.home-service-list,
.query-list,
.profile-settings,
.service-category,
.handler-tasks,
.message-center {
  overflow: hidden;
  border: 1px solid #e7deda;
  border-radius: 8px;
  background: #fff;
}

.home-service-list button,
.query-list button,
.profile-settings button,
.service-category > button {
  width: 100%;
  min-height: 58px;
  padding: 10px 13px;
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  color: #173a56;
  border-bottom: 1px solid #eee7e3;
  background: #fff;
}

.home-service-list button:last-child,
.query-list button:last-child,
.profile-settings button:last-child,
.service-category > button:last-child {
  border-bottom: 0;
}

.home-service-list button > span,
.query-list button > span,
.profile-settings button > span,
.service-category button > span {
  min-width: 0;
  flex: 1;
}

.home-service-list b,
.home-service-list small,
.query-list b,
.query-list small,
.profile-settings b,
.profile-settings small,
.service-category b,
.service-category small {
  display: block;
}

.home-service-list b,
.query-list b,
.profile-settings b,
.service-category b {
  font-size: 12px;
}

.home-service-list small,
.query-list small,
.profile-settings small,
.service-category small {
  margin-top: 3px;
  color: #7d8b94;
  font-size: 9px;
}

.home-service-list em,
.query-list em,
.profile-settings em,
.service-category em {
  margin-left: auto;
  color: #9aa5ab;
  font-style: normal;
}

.row-chevron {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin-left: auto;
  color: #9aa5ab;
}

.employee-bottom-nav,
.handler-bottom-nav {
  height: 66px;
  margin-top: auto;
  position: sticky;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 6;
  display: grid;
  border-top: 1px solid #e4dcd7;
  background: rgba(255,255,255,.98);
  box-shadow: 0 -8px 22px rgba(45,47,51,.05);
}

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

.employee-bottom-nav button,
.handler-bottom-nav button {
  min-width: 0;
  position: relative;
  display: grid;
  place-content: center;
  gap: 3px;
  color: #7d8991;
  background: transparent;
  font-size: 11px;
  line-height: 1.2;
}

.bottom-nav-icon {
  width: 22px;
  height: 22px;
  display: block;
}

.employee-bottom-nav button.active,
.handler-bottom-nav button.active {
  color: #f52c3d;
  font-weight: 700;
}

.employee-bottom-nav button.active::after,
.handler-bottom-nav button.active::after {
  display: none;
}

.handler-bottom-nav {
  position: sticky;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 6;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #e4dcd7;
  background: rgba(255,255,255,.98);
  box-shadow: 0 -8px 22px rgba(45,47,51,.05);
}

.app-page-heading {
  min-height: 104px;
  padding: 24px 18px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  color: #fff;
  background: #a71930;
}

.app-page-heading p,
.app-page-heading h1 {
  margin: 0;
}

.app-page-heading p {
  font-size: 10px;
  opacity: .78;
}

.app-page-heading h1 {
  margin-top: 4px;
  font-size: 25px;
}

.app-page-heading button {
  padding: 7px 9px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 6px;
  background: transparent;
  font-size: 9px;
}

.service-category {
  margin-top: 15px;
}

.service-category h2 {
  margin: 0;
  padding: 12px 13px 8px;
  color: #173a56;
  background: #fbfaf8;
  font-size: 13px;
}

.service-category button > .service-icon {
  margin-right: 0;
}

.query-focus {
  margin: 16px;
  padding: 16px;
  color: #fff;
  border-radius: 8px;
  background: #173a56;
}

.query-focus > p {
  margin: 0 0 10px;
  color: #e7bbc2;
  font-size: 10px;
}

.query-status-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.query-status-row b,
.query-status-row small {
  display: block;
}

.query-status-row b {
  font-size: 15px;
}

.query-status-row small,
.query-focus > small {
  margin-top: 4px;
  color: #ccd8df;
  font-size: 9px;
}

.query-status-row em {
  height: fit-content;
  padding: 4px 7px;
  color: #173a56;
  border-radius: 999px;
  background: #f5d9dd;
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
}

.query-progress {
  height: 5px;
  margin: 14px 0 7px;
  overflow: hidden;
  border-radius: 5px;
  background: rgba(255,255,255,.18);
}

.query-progress i {
  display: block;
  width: 35%;
  height: 100%;
  background: #d9a7af;
}

.message-center {
  padding-bottom: 2px;
}

.message-center .section-heading {
  padding: 13px 13px 4px;
}

.message-center article,
.handler-tasks article {
  padding: 11px 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #eee7e3;
}

.message-center article > .service-icon {
  width: 32px;
  height: 32px;
  padding: 8px;
}

.message-center article span,
.handler-tasks article span {
  min-width: 0;
  flex: 1;
}

.message-center article b,
.message-center article small,
.handler-tasks article b,
.handler-tasks article small {
  display: block;
}

.message-center article b,
.handler-tasks article b {
  color: #173a56;
  font-size: 11px;
}

.message-center article small,
.handler-tasks article small {
  margin-top: 3px;
  color: #7d8a93;
  font-size: 9px;
}

.message-center article em,
.handler-tasks article em {
  color: #8b969d;
  font-size: 8px;
  font-style: normal;
}

.handler-tasks article em {
  margin-left: auto;
}

.handler-tasks .row-chevron {
  margin-left: 4px;
}

.profile-hero {
  padding: 28px 18px 22px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: #fff;
  background: var(--customer-brand-gradient);
}

.profile-avatar {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #a71930;
  border-radius: 50%;
  background: #fff;
  font-size: 20px;
  font-weight: 800;
}

.profile-hero p,
.profile-hero h1,
.profile-hero span {
  margin: 0;
}

.profile-hero p,
.profile-hero span {
  font-size: 9px;
  opacity: .82;
}

.profile-hero h1 {
  margin: 3px 0;
  font-size: 22px;
}

.profile-hero button {
  margin-left: auto;
  padding: 7px 8px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 6px;
  background: transparent;
  font-size: 8px;
}

.profile-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
  border: 0;
  background: transparent;
}

.profile-grid button {
  min-height: 82px;
  padding: 13px;
  text-align: left;
  border: 1px solid #e7deda;
  border-radius: 8px;
  background: #fff;
}

.profile-grid .service-icon {
  width: 20px;
  height: 20px;
  margin-bottom: 8px;
  color: #a71930;
}

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

.profile-grid b {
  color: #173a56;
  font-size: 12px;
}

.profile-grid span {
  margin-top: 7px;
  color: #7f8c94;
  font-size: 9px;
  line-height: 1.5;
}

.handler-header {
  min-height: 142px;
}

.handler-header > button {
  min-width: 78px;
  font-size: 9px;
}

.handler-summary {
  margin: -20px 16px 16px;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid #e6ddd8;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 9px 22px rgba(35,40,44,.1);
}

.handler-summary article {
  padding: 14px 8px;
  text-align: center;
  border-right: 1px solid #eee7e3;
}

.handler-summary article:last-child {
  border-right: 0;
}

.handler-summary b,
.handler-summary span {
  display: block;
}

.handler-summary b {
  color: #a71930;
  font-size: 22px;
}

.handler-summary span {
  margin-top: 3px;
  color: #677782;
  font-size: 9px;
}

.handler-grid {
  margin: 0 16px 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 7px;
}

.handler-grid button {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 5px;
  color: #435765;
  background: transparent;
  font-size: 9px;
}

.handler-grid .service-icon {
  width: 40px;
  height: 40px;
  padding: 10px;
  color: #1f6b56;
  background: #dfeee8;
}

.handler-tasks {
  padding-bottom: 2px;
}

.handler-tasks .section-heading {
  padding: 13px 13px 4px;
}

.handler-tasks article > i {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #a71930;
}

.transaction-mode > .app-header {
  display: flex;
}

.transaction-mode .screen {
  background: #f4f6f8;
}

.transaction-mode .ai-support-launcher {
  bottom: 88px;
}

.app-shell:not(.transaction-mode) .ai-support-launcher {
  width: 48px;
  min-height: 48px;
  right: 16px;
  bottom: calc(160px + env(safe-area-inset-bottom));
  justify-content: center;
  padding: 8px;
  border-radius: 50%;
}

.app-shell:not(.transaction-mode) .ai-support-launcher b {
  display: none;
}

body:has(.customer-page.active) .ai-support-launcher {
  display: none;
}

@media (max-width: 370px) {
  .zhongyi-home-header h1,
  .handler-header h1 {
    font-size: 24px;
  }
  .home-hero-card {
    padding: 14px;
  }
}

/* Task 3 final customer employee override */
.app-shell:not(.transaction-mode) .app-level-screen.customer-page {
  min-height: 100dvh;
  padding-bottom: 0;
  background: var(--customer-bg);
  color: var(--customer-ink);
  font-size: 15px;
}

.app-shell:not(.transaction-mode) .app-level-screen[data-screen="handler-home"] {
  min-height: 100dvh;
  padding-bottom: 0;
}

.app-shell:not(.transaction-mode) .customer-page button {
  min-height: 44px;
}

.app-shell:not(.transaction-mode) .customer-page .home-header-actions button,
.app-shell:not(.transaction-mode) .customer-page .app-page-heading button {
  min-width: 44px;
}

.app-shell:not(.transaction-mode) .customer-page .customer-surface,
.app-shell:not(.transaction-mode) .customer-page .home-hero-card {
  border-color: #e8e9ec;
  border-radius: var(--customer-radius);
  background: var(--customer-surface);
}

.app-shell:not(.transaction-mode) .customer-page .employee-bottom-nav {
  border-color: #e8e9ec;
  background: var(--customer-surface);
}

.app-shell:not(.transaction-mode) .customer-page .zhongyi-home-header,
.app-shell:not(.transaction-mode) .customer-page .app-page-heading,
.app-shell:not(.transaction-mode) .customer-page .profile-hero,
.app-shell:not(.transaction-mode) .customer-page .home-hero-card {
  color: #fff;
  background: var(--customer-brand-gradient);
}

.app-shell:not(.transaction-mode) .customer-page .query-focus {
  color: var(--customer-ink);
  background: var(--customer-surface);
}

.app-shell:not(.transaction-mode) .customer-page .customer-service-grid button,
.app-shell:not(.transaction-mode) .customer-page .home-service-list button,
.app-shell:not(.transaction-mode) .customer-page .service-category button,
.app-shell:not(.transaction-mode) .customer-page .query-list button,
.app-shell:not(.transaction-mode) .customer-page .profile-settings button,
.app-shell:not(.transaction-mode) .customer-page .profile-grid b,
.app-shell:not(.transaction-mode) .customer-page .section-heading h2,
.app-shell:not(.transaction-mode) .customer-page .service-category h2,
.app-shell:not(.transaction-mode) .customer-page .message-center article b {
  color: var(--customer-ink);
}

.app-shell:not(.transaction-mode) .customer-page .home-search,
.app-shell:not(.transaction-mode) .customer-page .section-heading p,
.app-shell:not(.transaction-mode) .customer-page .home-message-card span,
.app-shell:not(.transaction-mode) .customer-page .home-message-card small,
.app-shell:not(.transaction-mode) .customer-page .home-service-list small,
.app-shell:not(.transaction-mode) .customer-page .service-category small,
.app-shell:not(.transaction-mode) .customer-page .query-status-row small,
.app-shell:not(.transaction-mode) .customer-page .query-focus > small,
.app-shell:not(.transaction-mode) .customer-page .query-list small,
.app-shell:not(.transaction-mode) .customer-page .message-center article small,
.app-shell:not(.transaction-mode) .customer-page .message-center article em,
.app-shell:not(.transaction-mode) .customer-page .profile-grid span,
.app-shell:not(.transaction-mode) .customer-page .profile-settings small {
  color: var(--customer-muted);
}

.app-shell:not(.transaction-mode) .customer-page .zhongyi-home-header p {
  font-size: 14px;
  line-height: 1.4;
}

.app-shell:not(.transaction-mode) .customer-page .zhongyi-home-header h1 {
  font-size: 28px;
  line-height: 1.25;
}

.app-shell:not(.transaction-mode) .customer-page .zhongyi-home-header span {
  font-size: 13px;
  line-height: 1.4;
}

.app-shell:not(.transaction-mode) .customer-page .home-search {
  font-size: 14px;
  line-height: 1.4;
}

.app-shell:not(.transaction-mode) .customer-page .customer-service-grid span {
  overflow: visible;
  font-size: 13px;
  line-height: 1.35;
  white-space: normal;
}

.app-shell:not(.transaction-mode) .customer-page .section-heading h2,
.app-shell:not(.transaction-mode) .customer-page .service-category h2 {
  font-size: 18px;
  line-height: 1.35;
}

.app-shell:not(.transaction-mode) .customer-page .section-heading p,
.app-shell:not(.transaction-mode) .customer-page .home-service-list small,
.app-shell:not(.transaction-mode) .customer-page .service-category small,
.app-shell:not(.transaction-mode) .customer-page .query-list small,
.app-shell:not(.transaction-mode) .customer-page .message-center article small,
.app-shell:not(.transaction-mode) .customer-page .profile-grid span,
.app-shell:not(.transaction-mode) .customer-page .profile-settings small {
  font-size: 12px;
  line-height: 1.5;
}

.app-shell:not(.transaction-mode) .customer-page .home-service-list b,
.app-shell:not(.transaction-mode) .customer-page .service-category b,
.app-shell:not(.transaction-mode) .customer-page .query-list b,
.app-shell:not(.transaction-mode) .customer-page .message-center article b,
.app-shell:not(.transaction-mode) .customer-page .profile-grid b,
.app-shell:not(.transaction-mode) .customer-page .profile-settings b {
  font-size: 15px;
  line-height: 1.4;
}

.app-shell:not(.transaction-mode) .customer-page .employee-bottom-nav button {
  font-size: 12px;
  line-height: 1.2;
}

/* 2026-07-20 Zhongyi-native employee home */
.zhongyi-native-home {
  min-height: 100dvh;
  padding: 0;
  background: var(--customer-bg);
}

.home-brand-zone {
  padding: 22px 20px 18px;
  color: #fff;
  background: var(--customer-brand-gradient);
}

.home-brand-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.home-brand-zone .customer-brand p,
.home-brand-zone .customer-brand h1,
.home-brand-zone .customer-brand span {
  margin: 0;
  letter-spacing: 0;
}

.home-brand-zone .customer-brand p {
  font-size: 13px;
  line-height: 1.4;
  opacity: 0.9;
}

.home-brand-zone .customer-brand h1 {
  margin-top: 4px;
  font-size: 26px;
  line-height: 1.25;
}

.home-brand-zone .customer-brand span {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.4;
  opacity: 0.88;
}

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

.home-header-actions button {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(255,255,255,.68);
  border-radius: 50%;
  background: transparent;
}

.home-header-actions button .line-icon {
  width: 22px;
  height: 22px;
  stroke-width: 1.8;
}

.home-native-search {
  width: 100%;
  height: 44px;
  min-height: 44px;
  margin-top: 16px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  gap: 9px;
  text-align: left;
  color: rgba(255,255,255,.94);
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 22px;
  background: rgba(255,255,255,.08);
  font-size: 14px;
  line-height: 1.4;
}

.home-native-search .line-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.home-current-card {
  width: calc(100% - 32px);
  min-height: 104px;
  margin: 16px;
  padding: 16px 16px 18px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  text-align: left;
  color: var(--customer-ink);
  border-radius: var(--customer-radius);
  background: #fff;
  box-shadow: 0 6px 18px rgba(32,39,45,.07);
}

.home-current-card > span:first-child {
  min-width: 0;
}

.home-current-card small,
.home-current-card strong,
.home-current-card em {
  display: block;
  margin: 0;
  font-style: normal;
}

.home-current-card small {
  color: var(--customer-muted);
  font-size: 12px;
  line-height: 1.4;
}

.home-current-card small b {
  color: inherit;
  font-weight: 500;
}

.home-current-card strong {
  margin-top: 4px;
  font-size: 18px;
  line-height: 1.35;
}

.home-current-card em {
  margin-top: 5px;
  overflow: hidden;
  color: var(--customer-muted);
  font-size: 11px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-current-action {
  min-width: 84px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 19px;
  background: var(--customer-red);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.home-current-progress {
  height: 3px;
  position: absolute;
  right: 16px;
  bottom: 0;
  left: 16px;
  overflow: hidden;
  border-radius: 3px;
  background: #eceff1;
}

.home-current-progress b {
  display: block;
  width: 36%;
  height: 100%;
  background: var(--customer-orange);
  transition: width 240ms ease;
}

.home-native-services {
  margin: 4px 12px 18px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  row-gap: 22px;
}

.home-native-services button {
  min-width: 0;
  min-height: 72px;
  padding: 0 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  color: var(--customer-ink);
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
}

.home-native-services .service-icon {
  width: 30px;
  height: 30px;
  padding: 0;
  color: #3b444b;
  border-radius: 0;
  background: transparent;
  stroke-width: 1.8;
}

.home-native-services button.primary .service-icon {
  color: var(--customer-red);
}

.home-native-services span {
  width: 100%;
  overflow: visible;
  text-align: center;
  line-height: 1.25;
  white-space: nowrap;
}

.home-notice-strip {
  width: calc(100% - 32px);
  height: 48px;
  min-height: 48px;
  margin: 0 16px 16px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--customer-muted);
  border-radius: var(--customer-radius);
  background: #fff;
}

.home-notice-strip > b {
  flex: 0 0 auto;
  padding: 5px 8px;
  color: #fff;
  border-radius: 4px;
  background: var(--customer-red);
  font-size: 12px;
  line-height: 1;
}

.home-notice-strip > span {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  white-space: nowrap;
}

.home-notice-strip strong {
  overflow: hidden;
  color: var(--customer-ink);
  font-size: 13px;
  font-weight: 500;
  text-overflow: ellipsis;
}

.home-notice-strip small {
  flex: 0 0 auto;
  color: var(--customer-muted);
  font-size: 11px;
}

.home-notice-strip > .line-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  color: #9ba5ac;
}

.home-recent-card {
  margin: 0 16px 20px;
  padding: 16px;
  border-radius: var(--customer-radius);
  background: #fff;
}

.home-recent-card h2,
.home-recent-card p {
  margin: 0;
}

.home-recent-card h2 {
  color: var(--customer-ink);
  font-size: 18px;
  line-height: 1.35;
}

.home-recent-card > p {
  margin-top: 4px;
  color: var(--customer-muted);
  font-size: 12px;
  line-height: 1.45;
}

.home-recent-card > button {
  width: 100%;
  min-height: 58px;
  margin-top: 10px;
  padding: 10px 0 0;
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  color: var(--customer-ink);
  border-top: 1px solid #eceff1;
  background: transparent;
}

.home-recent-card .service-icon {
  width: 38px;
  height: 38px;
  padding: 9px;
  color: var(--customer-red);
  border-radius: 8px;
  background: #fae9ec;
}

.home-recent-card button > span {
  min-width: 0;
  flex: 1;
}

.home-recent-card b,
.home-recent-card small {
  display: block;
}

.home-recent-card b {
  font-size: 14px;
  line-height: 1.4;
}

.home-recent-card small {
  margin-top: 3px;
  overflow: hidden;
  color: var(--customer-muted);
  font-size: 11px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-recent-card em {
  flex: 0 0 auto;
  color: var(--customer-red);
  font-size: 12px;
  font-style: normal;
}

.app-shell:not(.transaction-mode) .customer-page .employee-bottom-nav {
  height: calc(62px + env(safe-area-inset-bottom));
  flex: 0 0 calc(62px + env(safe-area-inset-bottom));
  border-color: #e7eaed;
  box-shadow: 0 -4px 16px rgba(32,39,45,.06);
}

.app-shell:not(.transaction-mode) .customer-page .employee-bottom-nav button {
  padding-bottom: env(safe-area-inset-bottom);
  font-size: 12px;
}

.app-shell:not(.transaction-mode) .handler-bottom-nav {
  height: calc(66px + env(safe-area-inset-bottom));
  flex: 0 0 calc(66px + env(safe-area-inset-bottom));
}

.app-shell:not(.transaction-mode) .handler-bottom-nav button {
  padding-bottom: env(safe-area-inset-bottom);
}

@media (max-width: 840px) {
  body {
    overflow: auto;
  }

  .app-shell:not(.transaction-mode) {
    width: 100%;
    height: auto;
    min-height: 100dvh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
}

@media (max-width: 370px) {
  .home-brand-zone {
    padding-right: 16px;
    padding-left: 16px;
  }

  .home-brand-zone .customer-brand h1 {
    font-size: 24px;
  }

  .home-header-actions {
    gap: 8px;
  }

  .home-native-services {
    margin-right: 8px;
    margin-left: 8px;
  }

  .home-native-services button {
    font-size: 12px;
  }

  .home-current-card {
    padding-right: 14px;
    padding-left: 14px;
  }

  .home-current-action {
    min-width: 76px;
  }
}

/* Task 4 care mode and customer support alignment */
.care-mode-backdrop {
  position: fixed;
  z-index: 125;
  inset: 0;
  display: grid;
  align-items: end;
  justify-items: center;
  padding: 18px;
  background: rgba(17, 24, 32, 0.56);
}

.care-mode-backdrop[hidden] {
  display: none;
}

.care-mode-sheet {
  width: min(430px, 100%);
  padding: 26px 22px calc(22px + env(safe-area-inset-bottom));
  text-align: center;
  border-radius: 24px 24px 8px 8px;
  background: #fff;
  box-shadow: 0 -18px 52px rgba(5, 20, 31, 0.28);
}

.care-mode-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  color: var(--customer-red);
  border-radius: 50%;
  background: #fff0f1;
}

.care-mode-icon .line-icon {
  width: 28px;
  height: 28px;
}

.care-mode-sheet h2,
.care-mode-sheet p {
  margin: 0;
}

.care-mode-sheet h2 {
  color: var(--customer-ink);
  font-size: 23px;
}

.care-mode-sheet p {
  margin-top: 10px;
  color: var(--customer-muted);
  font-size: 16px;
  line-height: 1.65;
}

.care-mode-actions {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.care-mode-actions button {
  min-height: 52px;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 800;
}

.care-mode-primary {
  color: #fff;
  background: var(--customer-brand-gradient);
}

.care-mode-secondary {
  color: var(--customer-red);
  border: 1px solid var(--customer-red);
  background: #fff;
}

.exit-care-mode {
  position: fixed;
  z-index: 42;
  right: 16px;
  bottom: calc(148px + env(safe-area-inset-bottom));
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  color: var(--customer-red);
  border: 1px solid var(--customer-red);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(17, 24, 32, 0.12);
  font-size: 18px;
  font-weight: 800;
}

.exit-care-mode[hidden] {
  display: none;
}

.exit-care-mode .line-icon {
  width: 21px;
  height: 21px;
}

.app-shell.care-mode .app-level-screen.customer-page {
  font-size: 18px;
}

.app-shell.care-mode .app-level-screen.customer-page button,
.app-shell.care-mode .app-level-screen.customer-page p,
.app-shell.care-mode .app-level-screen.customer-page b,
.app-shell.care-mode .app-level-screen.customer-page span,
.app-shell.care-mode .app-level-screen.customer-page small,
.app-shell.care-mode .app-level-screen.customer-page em {
  font-size: 18px;
  line-height: 1.45;
}

.app-shell.care-mode .app-level-screen.customer-page button {
  min-height: 52px;
}

.app-shell.care-mode .app-level-screen.customer-page h1 {
  font-size: 30px;
}

.app-shell.care-mode .app-level-screen.customer-page h2 {
  font-size: 24px;
}

.app-shell.care-mode .app-level-screen.customer-page .service-icon,
.app-shell.care-mode .app-level-screen.customer-page .bottom-nav-icon {
  width: 26px;
  height: 26px;
}

.app-shell.care-mode .customer-page .home-service-list,
.app-shell.care-mode .customer-page .home-message-card {
  display: none;
}

.app-shell.care-mode .customer-page .customer-service-grid {
  grid-template-columns: repeat(3, 1fr);
}

.app-shell.care-mode .customer-page .customer-service-grid button:nth-child(n + 4) {
  display: none;
}

.app-shell.care-mode .customer-page .home-notice-strip,
.app-shell.care-mode .customer-page .home-recent-card {
  display: none;
}

.app-shell.care-mode .customer-page .home-native-services {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  row-gap: 18px;
}

.app-shell.care-mode .customer-page .home-native-services button {
  min-height: 92px;
  font-size: 17px;
}

.app-shell.care-mode .customer-page .home-native-services button:nth-child(n + 4) {
  display: none;
}

.app-shell.care-mode .customer-page .home-native-services .service-icon {
  width: 34px;
  height: 34px;
}

.app-shell.care-mode .customer-page .home-native-services span {
  font-size: 17px;
  line-height: 1.35;
}

.app-shell.care-mode .customer-page .employee-bottom-nav {
  min-height: 76px;
  grid-template-columns: repeat(3, 1fr);
}

.app-shell.care-mode .customer-page .employee-bottom-nav [data-nav-target="services"],
.app-shell.care-mode .customer-page .employee-bottom-nav [data-nav-target="profile"] {
  display: none;
}

.ai-support-launcher {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.76);
  background: var(--customer-brand-gradient);
}

.ai-support-launcher .line-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
}

.ai-support-sheet {
  height: min(760px, 88dvh);
  border-radius: 24px 24px 0 0;
  background: #fff;
}

.ai-support-heading {
  min-height: 74px;
  color: var(--customer-ink);
  border-bottom: 1px solid #eceef1;
  background: #fff;
}

.ai-support-identity > .line-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  padding: 9px;
  color: var(--customer-red);
  border-radius: 50%;
  background: #fff0f1;
}

.ai-support-identity h2 {
  color: var(--customer-ink);
  font-size: 18px;
}

.ai-support-identity p {
  color: var(--customer-muted);
  font-size: 12px;
}

.ai-support-heading-actions em {
  color: var(--customer-muted);
  border-color: #d9dde2;
  font-size: 11px;
}

.ai-support-heading-actions button {
  color: var(--customer-ink);
  border-color: #d9dde2;
  border-radius: 50%;
}

.ai-support-context {
  background: var(--customer-bg);
}

.ai-support-context b {
  color: var(--customer-ink);
}

.ai-support-messages {
  background: #f4f5f7;
}

.ai-chat-message {
  border-radius: 8px;
  font-size: 15px;
}

.ai-chat-message.assistant {
  color: var(--customer-ink);
  border-color: #e3e5e8;
}

.ai-chat-message.user {
  background: var(--customer-red);
}

.ai-support-suggestions button {
  min-height: 44px;
  color: var(--customer-ink);
  border-color: #f3c2c8;
  border-radius: 8px;
  background: #fff8f8;
  font-size: 13px;
}

.ai-support-composer input,
.ai-support-composer button {
  min-height: 48px;
  border-radius: 999px;
  font-size: 16px;
}

.ai-support-composer button {
  background: var(--customer-red);
}

body.care-mode-active .ai-chat-message,
body.care-mode-active .ai-support-suggestions button,
body.care-mode-active .ai-support-composer input,
body.care-mode-active .ai-support-composer button {
  font-size: 18px;
}

/* Account customer support: shared brand, live records and continuous conversation. */
.ai-support-sheet {
  position: relative;
  width: min(560px, 100vw);
  height: min(900px, 96dvh);
  min-height: 0;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto auto;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -12px 60px rgb(34 39 45 / 18%);
}
.ai-support-heading { min-height: 72px; padding: 12px 16px; gap: 8px; }
.ai-support-identity { gap: 9px; }
.ai-support-identity h2 { font-size: 17px; letter-spacing: -.4px; }
.ai-support-identity p { font-size: 11px; }
.ai-support-heading-actions { gap: 7px; }
.ai-support-heading-actions em { padding: 4px 6px; font-size: 10px; background: #fafafa; border-color: #eceef1; color: #727981; }
.ai-support-heading-actions em[data-mode="online"] { color: #267459; background: #eff8f4; border-color: #d9ebe3; }
.ai-support-heading-actions em[data-mode="knowledge"] { color: #986124; background: #fff7ed; border-color: #f3e6d4; }
.ai-support-heading-actions em[data-mode="offline"] { color: #a71930; background: #fff0f1; }
.ai-support-heading-actions button { width: 32px; height: 32px; border: 0; background: #f4f5f7; }
.support-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 16px; border-bottom: 1px solid #edf0f2; background: #fff; }
.support-toolbar button { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 2px 4px; font-size: 12px; color: #69737c; background: transparent; }
.support-toolbar button:last-child { color: #b72c3d; }
.support-toolbar .line-icon { width: 16px; height: 16px; }
.support-toolbar button:disabled { opacity: .45; cursor: wait; }
.ai-support-context { display: block; padding: 9px 16px 10px; background: #fff; border-bottom: 1px solid #e8ebef; }
.support-account-row, .support-account-row > span { display: flex; align-items: center; gap: 5px; }
.support-account-row { justify-content: space-between; }
.support-account-row > span { color: #59666f; font-size: 11px; }
.support-account-row > span .line-icon { width: 13px; height: 13px; color: #28775d; }
.support-account-row button { display: flex; align-items: center; gap: 4px; min-height: 28px; padding: 0 2px; color: #7a858e; background: transparent; }
.support-account-row button .line-icon { width: 12px; height: 12px; }
.support-account-row button small { font-size: 10px; }
.support-scope-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; margin-top: 4px; }
.support-scope-row label { color: #84909a; font-size: 11px; }
.support-scope-row select { min-width: 0; max-width: 100%; padding: 7px 28px 7px 9px; border: 1px solid #e7e9ed; border-radius: 7px; background: #fafafb; color: #28333c; font: inherit; font-size: 12px; }
.support-scope-row b { max-width: 100px; padding: 5px 8px; border-radius: 6px; color: #9e6523; background: #fff5e6; font-size: 10px; }
.ai-support-context .support-current-claim { display: block; margin-top: 7px; color: #8a939c; font-size: 10px; overflow-wrap: anywhere; }
.ai-support-messages { gap: 17px; padding: 13px 16px 18px; overscroll-behavior: contain; background: #f6f7f9; scrollbar-width: thin; }
.ai-support-messages > * { flex-shrink: 0; }
.support-session-label { color: #9ba1a8; text-align: center; font-size: 10px; }
.support-welcome { padding: 12px 0 0; }
.support-welcome-avatar { position: relative; display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 13px; border: 1px solid #f5d9dc; border-radius: 17px; color: #e52d3f; background: #fff; box-shadow: 0 6px 18px rgb(229 45 63 / 6%); }
.support-welcome-avatar .line-icon { width: 27px; height: 27px; }
.support-avatar-dot { position: absolute; right: -3px; bottom: -3px; width: 13px; height: 13px; border: 3px solid #f6f7f9; border-radius: 50%; background: #369871; }
.support-eyebrow { margin: 0 0 6px; color: #9b7580; font-size: 10px; letter-spacing: 1px; }
.support-welcome h3 { margin: 0; color: #20272d; font-size: 25px; font-weight: 800; letter-spacing: -.7px; }
.support-welcome-description { margin: 8px 0 20px; color: #727d86; font-size: 14px; line-height: 1.7; }
.support-topic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.support-topic { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: center; gap: 9px; min-height: 83px; padding: 13px 10px; border: 1px solid #e9ebef; border-radius: 12px; text-align: left; background: #fff; box-shadow: 0 3px 7px rgb(18 28 40 / 2%); }
.support-topic-icon { display: grid; place-items: center; width: 29px; height: 32px; border-radius: 8px; color: #df3b50; background: #fff0f2; }
.support-topic-icon .line-icon { width: 20px; height: 20px; }
.support-topic:nth-child(2) .support-topic-icon { color: #e07c29; background: #fff3e6; }
.support-topic:nth-child(3) .support-topic-icon { color: #537686; background: #eef4f7; }
.support-topic:nth-child(4) .support-topic-icon { color: #3b8671; background: #edf7f2; }
.support-topic b { display: block; color: #29313a; font-size: 14px; }
.support-topic small { display: block; margin-top: 6px; color: #8b929a; font-size: 10px; line-height: 1.4; }
.support-topic > .line-icon { display: none; }
.support-topic:hover, .support-topic:focus-visible { border-color: #ecb2ba; background: #fffafa; }
.support-live-summary { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto 12px; align-items: center; gap: 8px; width: 100%; margin-top: 13px; padding: 13px 10px; border: 1px solid #e9ebef; border-radius: 12px; background: #fff; text-align: left; }
.support-summary-icon { color: #7a8995; }
.support-summary-icon .line-icon { width: 23px; height: 23px; }
.support-live-summary b { display: block; color: #46515d; font-size: 11px; }
.support-live-summary small { display: block; margin-top: 5px; color: #8a939d; font-size: 10px; line-height: 1.5; }
.support-live-summary em { padding: 4px 6px; border-radius: 5px; color: #a66b27; background: #fff5e8; font-size: 10px; font-style: normal; white-space: nowrap; }
.support-live-summary > .line-icon { width: 12px; height: 12px; color: #89919a; }
.support-welcome-tip { display: flex; align-items: flex-start; gap: 6px; margin: 16px 3px 0; color: #9ba3ab; font-size: 10px; line-height: 1.7; }
.support-welcome-tip .line-icon { flex: 0 0 auto; width: 13px; height: 13px; margin-top: 2px; }
.support-message-wrap { width: 100%; }
.support-message-wrap.user { align-self: flex-end; width: fit-content; max-width: 88%; }
.support-message-meta { display: flex; align-items: center; gap: 5px; margin-bottom: 6px; color: #818a94; font-size: 10px; }
.support-message-meta .line-icon { width: 13px; height: 13px; color: #bf6876; }
.support-message-meta time { margin-left: 4px; color: #acb2b9; font-size: 9px; }
.support-message-wrap.user .support-message-meta { justify-content: flex-end; }
.ai-chat-message { max-width: 100%; padding: 13px 13px; border-radius: 12px; line-height: 1.8; font-size: 14px; }
.ai-chat-message.assistant { width: 100%; border-color: #e7e9ed; border-top-left-radius: 3px; color: #35414b; box-shadow: 0 2px 4px rgb(23 40 56 / 2%); }
.ai-chat-message.user { width: fit-content; border-bottom-right-radius: 3px; background: #e52d3f; }
.support-answer { margin: 0; white-space: pre-wrap; }
.ai-support-heading-actions em[data-mode="degraded"] { color: #986124; background: #fff7ed; border-color: #f3e6d4; }
.support-feature-toolbar[hidden] { display: none; }
.support-feature-toolbar { background: #fbfcfd; }
.support-feature-toolbar button:last-child { color: #69737c; }
.support-knowledge-search { display: flex; gap: 8px; margin-bottom: 16px; }
.support-knowledge-search input { min-width: 0; flex: 1; border: 1px solid #e0e5eb; border-radius: 9px; background: #fff; padding: 11px 12px; color: #27313a; font: inherit; font-size: 13px; }
.support-knowledge-search .support-solid-button { width: auto; min-width: 64px; padding: 8px 14px; }
.support-knowledge-item { display: block; width: 100%; margin: 0 0 10px; padding: 15px; text-align: left; border: 1px solid #e3e7ed; border-radius: 12px; background: #fff; }
.support-knowledge-item small { display: block; margin-bottom: 5px; color: #b72c3d; font-size: 10px; }
.support-knowledge-item b { font-size: 14px; color: #27313a; }
.support-knowledge-item p { margin: 8px 0 0; color: #7d8792; font-size: 12px; line-height: 1.7; }
.support-knowledge-content { margin: 0; padding: 18px; border: 1px solid #e3e7ed; border-radius: 12px; background: #fff; color: #34404c; white-space: pre-wrap; line-height: 2; font-size: 14px; }
.support-record-card { margin-top: 13px; overflow: hidden; border: 1px solid #e9ebef; border-radius: 9px; background: #fff; }
.support-record-heading { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 6px; padding: 10px 11px; background: #fafafb; border-bottom: 1px solid #eef0f3; }
.support-record-icon { display: flex; align-items: center; color: #d94b5a; }
.support-record-icon .line-icon { width: 16px; height: 16px; }
.support-record-heading b { color: #384550; font-size: 12px; }
.support-record-heading em { padding: 2px 5px; border: 1px solid #eee0c9; border-radius: 4px; background: #fff9ee; color: #9e713a; font-size: 9px; font-style: normal; white-space: nowrap; }
.support-record-rows { display: grid; gap: 8px; margin: 0; padding: 12px 11px; }
.support-record-rows > div { display: grid; grid-template-columns: minmax(65px, .8fr) minmax(0, 1.5fr); align-items: start; gap: 8px; }
.support-record-rows dt { color: #8a949d; font-size: 10px; line-height: 1.7; }
.support-record-rows dd { margin: 0; color: #475663; font-size: 11px; line-height: 1.65; overflow-wrap: anywhere; }
.support-record-action { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 10px 11px; border-top: 1px solid #f2e4e7; color: #ce3348; background: #fff8f9; font-size: 11px; }
.support-record-action .line-icon { width: 13px; height: 13px; }
.support-record-action:disabled { opacity: .5; }
.support-claim-timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 5px 9px 14px; margin: 0; list-style: none; }
.support-claim-timeline li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; color: #a2aab1; }
.support-claim-timeline li:not(:last-child)::after { content: ''; position: absolute; top: 9px; left: 60%; width: 80%; height: 1px; background: #e8ebee; }
.support-claim-timeline span { z-index: 1; display: grid; place-items: center; width: 19px; height: 19px; border: 1px solid #e5e8ec; border-radius: 50%; color: #9ca6b0; background: #fff; font-size: 9px; }
.support-claim-timeline small { margin: 0; color: inherit; font-size: 9px; }
.support-claim-timeline li.current { color: #cd3d51; }
.support-claim-timeline li.current span { border-color: #eeb9c1; color: #cd3d51; background: #fff2f4; }
.support-claim-timeline li.done span { color: #287c5f; background: #eef8f3; border-color: #d1e9dd; }
.support-message-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.support-inline-action { display: inline-flex; align-items: center; gap: 5px; min-height: 34px; margin-top: 4px; padding: 7px 10px; border: 1px solid #f0ccd2; border-radius: 7px; color: #ba3448; background: #fff9fa; font-size: 11px; }
.support-evidence { margin-top: 12px; padding-top: 9px; border-top: 1px dashed #e6e9ed; color: #9aA3ac; font-size: 10px; }
.support-evidence summary { display: flex; align-items: center; gap: 5px; min-height: 27px; cursor: pointer; list-style: none; }
.support-evidence summary::-webkit-details-marker { display: none; }
.support-evidence summary .line-icon { width: 12px; height: 12px; color: #83a797; }
.support-evidence summary .line-icon:last-child { margin-left: auto; color: #a5adb5; }
.support-source { margin-top: 6px; padding: 8px; border-radius: 5px; background: #f7f8fa; }
.support-source b { color: #74808b; font-size: 10px; }
.support-source p { margin: 3px 0 0; color: #929ca7; font-size: 10px; line-height: 1.6; }
.support-evidence > small { margin-top: 8px; font-size: 9px; }
.support-feedback { display: flex; gap: 15px; margin: 5px 0 0 4px; }
.support-feedback button { display: flex; align-items: center; gap: 4px; min-height: 28px; padding: 0; color: #959fa8; background: transparent; font-size: 10px; }
.support-feedback .line-icon { width: 12px; height: 12px; }
.support-feedback .selected { color: #bf5266; }
.support-error-message { border-color: #f3d5d9 !important; background: #fffafb !important; }
.ai-chat-message.typing { display: flex; align-items: center; gap: 9px; width: fit-content; color: #919da8; font-size: 12px; }
.support-typing-dots { display: inline-flex; gap: 3px; }
.support-typing-dots i { width: 4px; height: 4px; border-radius: 50%; background: #dc8290; animation: support-pulse 1.2s ease-in-out infinite; }
.support-typing-dots i:nth-child(2) { animation-delay: .2s; }
.support-typing-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes support-pulse { 0%, 80%, 100% { opacity: .35; } 40% { opacity: 1; } }
.ai-support-suggestions { gap: 6px; padding: 9px 16px; border-top: 1px solid #eceef1; }
.ai-support-suggestions button { min-height: 33px; padding: 6px 7px; border-color: #e7e9ed; border-radius: 7px; color: #687580; background: #fafafb; font-size: 11px; }
.ai-support-suggestions button:hover { color: #ba3448; border-color: #efc5cd; background: #fff9fa; }
.ai-support-composer { padding: 11px 16px calc(9px + env(safe-area-inset-bottom)); border-color: #edf0f2; }
.ai-support-composer input { min-height: 45px; padding: 0 15px; border-color: #e2e6eb; background: #fafafb; font-size: 14px; }
.ai-support-composer input:focus { outline: 2px solid #f5d3d9; outline-offset: 1px; border-color: #e4aeb9; background: #fff; }
.ai-support-composer button { min-height: 45px; font-size: 13px; }
.ai-support-composer > small { margin-top: 7px; color: #a1a8af; font-size: 9px; line-height: 1.5; }
.ai-support-composer > small.support-note-error { color: #b44254; }
.support-panel-overlay { position: absolute; z-index: 5; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: #fff; }
.support-panel-overlay[hidden] { display: none; }
.support-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 23px 20px 17px; border-bottom: 1px solid #eceef1; }
.support-panel-heading h3 { margin: 0 0 6px; color: #27313a; font-size: 20px; }
.support-panel-heading p { margin: 0; color: #8c969f; font-size: 12px; }
.support-panel-close { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border-radius: 50%; color: #77828c; background: #f3f5f7; }
.support-panel-close .line-icon { width: 20px; height: 20px; }
.support-panel-body { min-height: 0; overflow-y: auto; padding: 18px 20px; background: #f6f7f9; }
.support-panel-hint { margin: 0 0 18px; color: #909ba5; font-size: 11px; line-height: 1.8; }
.support-history-item { display: grid; grid-template-columns: 28px minmax(0, 1fr) 16px; align-items: center; gap: 10px; width: 100%; margin-bottom: 9px; padding: 15px 13px; border: 1px solid #e8ebef; border-radius: 10px; color: #85919c; background: #fff; text-align: left; }
.support-history-item .line-icon { width: 20px; height: 20px; }
.support-history-item > .line-icon { width: 15px; height: 15px; }
.support-history-item b { display: block; color: #40505d; font-size: 13px; overflow-wrap: anywhere; }
.support-history-item small { display: block; margin-top: 5px; color: #a0a8b1; font-size: 10px; }
.support-history-item.active { border-color: #efbdc6; background: #fffafb; }
.support-panel-footer { padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid #eceef1; }
.support-panel-footer > small { display: block; margin-top: 8px; color: #9aA3ac; text-align: center; font-size: 10px; }
.support-solid-button { width: 100%; min-height: 46px; padding: 10px 15px; border-radius: 23px; color: #fff; background: #e52d3f; font-size: 14px; font-weight: 700; }
.support-solid-button:disabled { background: #d9dfe4; cursor: wait; }
.support-handoff-notice { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 20px; padding: 12px; border: 1px solid #f1e3ca; border-radius: 9px; color: #a27f4d; background: #fff9ee; }
.support-handoff-notice .line-icon { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 2px; }
.support-handoff-notice p { margin: 0; font-size: 11px; line-height: 1.8; }
.support-handoff-form > label { display: block; margin-bottom: 10px; color: #465462; font-size: 14px; font-weight: 700; }
.support-handoff-form textarea { width: 100%; resize: vertical; min-height: 125px; padding: 12px; border: 1px solid #dce1e6; border-radius: 9px; color: #42505c; background: #fff; font: inherit; font-size: 13px; line-height: 1.7; }
.support-handoff-form textarea:focus { outline: 2px solid #f5d3d9; border-color: #e4aeb9; }
.support-handoff-summary { margin-top: 17px; padding: 13px; border: 1px solid #e7eaee; border-radius: 9px; color: #87949f; background: #fff; }
.support-handoff-summary b { color: #60717f; font-size: 11px; }
.support-handoff-summary p { margin: 6px 0 0; font-size: 11px; line-height: 1.7; }
.support-form-error { margin: 10px 0 0; color: #bc3b50; font-size: 12px; line-height: 1.7; }
.support-form-error:empty { display: none; }
.ai-support-sheet button:focus-visible, .ai-support-sheet select:focus-visible, .support-evidence summary:focus-visible { outline: 2px solid #e69ba9; outline-offset: 2px; }
@media (min-width: 768px) {
  .ai-support-backdrop { align-items: center; backdrop-filter: blur(3px); }
  .ai-support-sheet { width: 660px; max-width: calc(100vw - 48px); height: min(860px, 92dvh); border-radius: 22px; }
  .ai-support-messages { padding: 18px 25px; }
  .support-topic { padding: 17px; grid-template-columns: 36px minmax(0, 1fr) 16px; }
  .support-topic > .line-icon { display: block; width: 16px; height: 16px; color: #a4adb6; }
  .support-topic-icon { width: 34px; height: 38px; }
  .support-topic small { font-size: 11px; }
  .support-welcome { padding: 13px 15px 20px; }
  .support-message-wrap.assistant { max-width: 92%; }
}
@media (max-width: 374px) {
  .ai-support-heading { padding-inline: 12px; }
  .ai-support-identity h2 { font-size: 15px; }
  .ai-support-identity > .line-icon { width: 33px; height: 33px; padding: 7px; }
  .ai-support-heading-actions em { font-size: 9px; }
  .support-toolbar, .ai-support-context, .ai-support-messages, .ai-support-suggestions, .ai-support-composer { padding-left: 12px; padding-right: 12px; }
  .support-topic { gap: 7px; padding: 12px 8px; }
  .support-topic b { font-size: 13px; }
  .support-topic small { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) { .support-typing-dots i { animation: none; } }
