:root {
  --brand: #1769e0;
  --brand-hover: #0f5bc9;
  --ink: #111317;
  --muted: #66707c;
  --line: #e7e9ec;
  --surface: #f6f7f8;
  --surface-strong: #eef1f4;
  --page-width: 1240px;
  --content-width: 840px;
  --transition: 200ms cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  padding: 0;
  min-width: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-shell { min-height: 100vh; background: #fff; }
.site-header {
  position: relative;
  z-index: 10;
  width: min(100%, var(--page-width));
  height: 72px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand-lockup {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: var(--ink);
  text-decoration: none;
}
.brand-logo { width: auto; height: 27px; object-fit: contain; }
.brand-divider { width: 1px; height: 22px; background: #d7dadd; }
.brand-section { font-size: 15px; font-weight: 500; letter-spacing: .01em; white-space: nowrap; }
.user-btn {
  min-height: 40px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: #30353b;
  font-size: 14px;
  cursor: pointer;
  transition: color var(--transition);
}
.user-btn:hover { color: var(--brand); }
.user-btn .dot { display: inline-block; width: 6px; height: 6px; margin-left: 7px; border-radius: 50%; background: #29a35a; vertical-align: 2px; }

.home-main { width: 100%; }
.ai-hero {
  min-height: calc(100svh - 72px);
  padding: clamp(94px, 15vh, 162px) 32px 112px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-heading { width: 100%; }
.hero-heading h1 {
  margin: 0;
  font-size: clamp(44px, 4.2vw, 64px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -.045em;
}
.hero-heading p {
  margin: 23px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
  letter-spacing: .01em;
}
.ai-entry {
  width: min(100%, var(--content-width));
  min-height: 188px;
  margin-top: 53px;
  padding: 23px 24px 20px;
  display: flex;
  flex-direction: column;
  border: 1px solid #dfe3e7;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(15, 28, 44, .07);
  text-align: left;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.ai-entry:hover { border-color: #cbd1d8; box-shadow: 0 22px 58px rgba(15, 28, 44, .09); }
.ai-entry:focus-within { border-color: rgba(23, 105, 224, .68); box-shadow: 0 0 0 4px rgba(23, 105, 224, .10), 0 22px 58px rgba(15, 28, 44, .08); }
.ai-input {
  width: 100%;
  min-height: 91px;
  padding: 0;
  resize: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.65;
}
.ai-input::placeholder { color: #a0a7af; }
.ai-entry-actions { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ai-entry-tools { min-width: 0; display: flex; align-items: center; gap: 12px; }
.dock-attach {
  width: auto;
  height: auto;
  flex: 0 1 auto;
  padding: 8px 8px 8px 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: #59636e;
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--transition);
}
.dock-attach:hover { color: var(--ink); }
.attachment-summary { max-width: 280px; overflow: hidden; color: var(--brand); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.send-btn {
  width: auto;
  height: 42px;
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 11px;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), opacity var(--transition);
}
.send-btn:hover { background: var(--brand-hover); transform: translateY(-1px); }
.send-btn:active { transform: translateY(0); }
.send-btn:disabled { opacity: .48; cursor: wait; transform: none; }
.example-prompts {
  margin-top: 27px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  color: #a1a7ae;
  font-size: 13px;
}
.example-prompts button {
  padding: 5px 2px;
  border: 0;
  background: transparent;
  color: #777f88;
  cursor: pointer;
  transition: color var(--transition);
}
.example-prompts button:hover { color: var(--brand); }

.service-pair {
  width: 100%;
  padding: 100px max(32px, calc((100vw - 1120px) / 2));
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 96px;
  background: var(--surface);
}
.service-link {
  min-width: 0;
  min-height: 124px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border: 0;
  border-top: 1px solid #dfe3e6;
  border-radius: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}
.service-link:hover { border-color: var(--ink); }
.service-link > span:first-child { min-width: 0; display: flex; flex-direction: column; gap: 11px; }
.service-link strong { font-size: 24px; line-height: 1.25; font-weight: 550; letter-spacing: -.025em; }
.service-link small { color: var(--muted); font-size: 15px; line-height: 1.55; font-weight: 400; }
.service-arrow { flex: 0 0 auto; font-size: 24px; font-weight: 300; transition: transform var(--transition), color var(--transition); }
.service-link:hover .service-arrow { color: var(--brand); transform: translateX(4px); }

.minimal-footer {
  width: min(100%, var(--page-width));
  margin: 0 auto;
  padding: 44px 32px 35px;
  color: #717982;
  font-size: 12px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 14px 30px; }
.footer-links a { color: #3e454c; text-decoration: none; transition: color var(--transition); }
.footer-links a:hover { color: var(--brand); }
.footer-meta { margin-top: 38px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }

/* Existing business sheets, visually aligned without changing their behavior. */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 18, 22, .28);
  backdrop-filter: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}
.sheet-backdrop.open { opacity: 1; visibility: visible; }
.sheet {
  position: relative;
  left: auto;
  right: auto;
  top: auto;
  bottom: auto;
  width: min(100%, 580px);
  max-height: calc(100vh - 48px);
  padding: 28px;
  overflow: auto;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .18);
  transform: translateY(14px);
  transition: transform var(--transition);
}
.sheet-backdrop.open .sheet { transform: translateY(0); }
.sheet-handle { display: none; }
.sheet-head { margin: 0 0 24px; display: flex; align-items: center; justify-content: space-between; }
.sheet-head h3 { margin: 0; font-size: 24px; letter-spacing: -.02em; }
.close-btn { width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--surface); color: #59616a; cursor: pointer; transition: background var(--transition), color var(--transition); }
.close-btn:hover { background: var(--surface-strong); color: var(--ink); }
.field label { color: #4a5158; }
.field input, .field textarea {
  border-color: #dfe3e7;
  border-radius: 10px;
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field input:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(23, 105, 224, .10); outline: 0; }
.primary-btn { border-radius: 10px; background: var(--brand); box-shadow: none; transition: background var(--transition), opacity var(--transition); }
.primary-btn:hover { background: var(--brand-hover); }

/* Full-page AI support experience. */
#chatSheet { inset: 0; padding: 0; align-items: stretch; background: #fff; }
.chat-sheet {
  position: relative;
  inset: auto;
  width: 100%;
  max-width: none;
  height: var(--chat-viewport-height, 100svh);
  max-height: none;
  padding: 0;
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
  transform: none;
}
.sheet-backdrop.open .chat-sheet { transform: none; }
.chat-sidebar {
  min-width: 0;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  background: #f5f6f7;
  border-right: 1px solid #eceef0;
}
.chat-sidebar-brand { padding: 5px 8px 24px; font-size: 14px; font-weight: 650; }
.new-chat-button {
  width: 100%;
  min-height: 43px;
  padding: 0 13px;
  border: 1px solid #dfe3e7;
  border-radius: 10px;
  background: #fff;
  text-align: left;
  font-size: 14px;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.new-chat-button:hover { border-color: #c8ced4; background: #fbfbfc; }
.chat-history-heading { margin: 29px 8px 10px; color: #8a929b; font-size: 12px; }
.chat-history-list { min-height: 0; overflow-y: auto; }
.chat-history-empty { margin: 0; padding: 9px 8px; color: #a1a7ae; font-size: 13px; }
.chat-history-item { width: 100%; padding: 10px 8px; border: 0; border-radius: 8px; background: transparent; text-align: left; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.chat-history-item:hover { background: #e9ecef; }
.chat-main { min-width: 0; min-height: 0; height: 100%; display: grid; grid-template-rows: 64px minmax(0, 1fr) auto auto auto; overflow: hidden; background: #fff; }
.chat-topbar {
  min-width: 0;
  padding: 0 25px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid #eef0f2;
}
.chat-topbar h3 { margin: 0; font-size: 15px; font-weight: 600; text-align: center; }
.chat-back, .chat-mobile-new {
  width: max-content;
  padding: 8px 4px;
  border: 0;
  background: transparent;
  color: #535c65;
  font-size: 13px;
  cursor: pointer;
  transition: color var(--transition);
}
.chat-back:hover, .chat-mobile-new:hover { color: var(--brand); }
.chat-mobile-new { justify-self: end; visibility: hidden; }
.session-meta { display: none !important; }
.chat-list {
  position: relative;
  width: 100%;
  max-width: 880px;
  min-height: 0;
  margin: 0 auto;
  padding: 52px 40px 36px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: auto;
}
.chat-welcome { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-bottom: 100px; text-align: center; }
.chat-welcome h2 { margin: 0; font-size: 34px; line-height: 1.2; font-weight: 600; letter-spacing: -.035em; }
.chat-welcome p { margin: 15px 0 0; color: var(--muted); font-size: 15px; }
.bubble {
  width: fit-content;
  max-width: min(78%, 680px);
  margin-bottom: 22px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #252a30;
  font-size: 15px;
  line-height: 1.75;
  box-shadow: none;
  overflow-wrap: anywhere;
}
.bubble.user { margin-left: auto; padding: 11px 15px; border-radius: 14px 14px 4px 14px; background: #f0f2f4; color: #21262c; }
.bubble.ai { margin-right: auto; }
.bubble.answer { width: 100%; max-width: 720px; min-width: 0; background: transparent; }
.bubble pre, .bubble table { max-width: 100%; overflow-x: auto; }
.thinking { max-width: 720px; color: #7c858e; font-size: 13px; }
.upload-progress { display: none !important; }
.chat-shortcuts {
  width: min(calc(100% - 64px), 820px);
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.chat-shortcut {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid #dfe3e7;
  border-radius: 999px;
  background: #fff;
  color: #59616a;
  font-size: 13px;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.chat-shortcut:hover { color: #202429; border-color: #cbd1d7; background: #f7f8f9; }
.chat-shortcut:focus-visible { outline: 2px solid rgba(23, 105, 224, .42); outline-offset: 2px; }
.chat-composer {
  width: min(calc(100% - 64px), 820px);
  min-height: 66px;
  margin: 0 auto 26px;
  padding: 10px 10px 10px 13px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 42px;
  align-items: end;
  gap: 5px;
  border: 1px solid #dfe3e7;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 32px rgba(14, 25, 39, .08);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.chat-composer:focus-within { border-color: rgba(23, 105, 224, .65); box-shadow: 0 0 0 4px rgba(23, 105, 224, .09), 0 12px 32px rgba(14, 25, 39, .08); }
.chat-attachment-tray {
  grid-column: 1 / -1;
  min-width: 0;
  padding: 0 1px 5px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.chat-attachment-tray[hidden] { display: none; }
.chat-attachment-tray::-webkit-scrollbar { display: none; }
.chat-attachment-card {
  position: relative;
  width: 218px;
  min-width: 218px;
  height: 58px;
  padding: 7px 31px 7px 7px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  overflow: hidden;
  border: 1px solid #e1e4e7;
  border-radius: 12px;
  background: #f7f7f8;
  color: #262b31;
}
.chat-attachment-preview {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: #e9ebee;
  color: #5f6872;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .02em;
}
.chat-attachment-preview img { width: 100%; height: 100%; object-fit: cover; }
.chat-attachment-copy { min-width: 0; }
.chat-attachment-name { overflow: hidden; font-size: 12.5px; font-weight: 560; text-overflow: ellipsis; white-space: nowrap; }
.chat-attachment-meta { margin-top: 3px; overflow: hidden; color: #7c848c; font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.chat-attachment-remove {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 23px;
  height: 23px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #747c84;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}
.chat-attachment-remove:hover { background: #e6e8ea; color: #20252a; }
.chat-attachment-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; overflow: hidden; background: transparent; }
.chat-attachment-progress span { display: block; width: 0; height: 100%; background: var(--brand); transition: width .12s linear; }
.chat-attachment-card[data-state="uploading"] .chat-attachment-progress { background: #dfe3e7; }
.chat-attachment-card[data-state="done"] .chat-attachment-progress span { background: #35a164; }
.chat-attachment-card[data-state="error"] { border-color: #efc6c3; background: #fff7f6; }
.message-attachments { margin: 0 0 8px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.message-attachment {
  max-width: 220px;
  padding: 5px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(63, 70, 77, .12);
  border-radius: 8px;
  background: rgba(255,255,255,.55);
  font-size: 11px;
}
.message-attachment span { max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.message-attachment.is-image {
  position: relative;
  width: 132px;
  max-width: 132px;
  height: 98px;
  padding: 0;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(63, 70, 77, .15);
  border-radius: 10px;
  background: #e9ecef;
  cursor: zoom-in;
}
.message-attachment.is-image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.message-attachment.is-image span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: none;
  padding: 18px 7px 6px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(transparent, rgba(13, 16, 20, .72));
  font-size: 10px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 160;
  padding: max(20px, env(safe-area-inset-top)) 20px max(20px, env(safe-area-inset-bottom));
  display: grid;
  place-items: center;
  background: rgba(9, 11, 14, .88);
  backdrop-filter: blur(8px);
}
.chat-image-lightbox[hidden] { display: none; }
.chat-image-lightbox-body { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; pointer-events: none; }
.chat-image-lightbox img { max-width: min(96vw, 1280px); max-height: calc(100dvh - 92px); object-fit: contain; border-radius: 8px; box-shadow: 0 18px 70px rgba(0,0,0,.42); }
.chat-image-lightbox p { max-width: min(90vw, 760px); margin: 0; overflow: hidden; color: rgba(255,255,255,.82); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.chat-image-lightbox-close {
  position: absolute;
  top: max(14px, env(safe-area-inset-top));
  right: 16px;
  z-index: 1;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.13);
  color: #fff;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
}
.chat-image-lightbox-close:hover { background: rgba(255,255,255,.22); }
.attach-btn { width: 40px; height: 42px; border: 0; border-radius: 10px; background: transparent; color: #646d76; cursor: pointer; transition: background var(--transition), color var(--transition); }
.attach-btn:hover { background: var(--surface); color: var(--ink); }
#chatInput {
  width: 100%;
  min-height: 42px;
  max-height: 132px;
  padding: 10px 7px 8px;
  resize: none;
  overflow-y: auto;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
}
#chatSend { width: 42px; height: 42px; border: 0; border-radius: 11px; background: var(--brand); color: #fff; cursor: pointer; transition: background var(--transition), opacity var(--transition), transform var(--transition); }
#chatSend:hover { background: var(--brand-hover); transform: translateY(-1px); }
#chatSend:disabled, .attach-btn:disabled { opacity: .45; cursor: wait; transform: none; }

:focus-visible { outline: 3px solid rgba(23, 105, 224, .34); outline-offset: 3px; }
.ai-input:focus-visible, #chatInput:focus-visible { outline: 0; }

@media (max-width: 760px) {
  .site-header { height: 62px; padding: 0 20px; }
  .brand-lockup { gap: 11px; }
  .brand-logo { height: 22px; max-width: 114px; }
  .brand-divider { height: 18px; }
  .brand-section { font-size: 13px; }
  .user-btn { font-size: 13px; }
  .ai-hero { min-height: calc(100svh - 62px); padding: 94px 20px 76px; justify-content: flex-start; }
  .hero-heading h1 { font-size: clamp(36px, 10.5vw, 46px); letter-spacing: -.04em; }
  .hero-heading p { max-width: 320px; margin: 18px auto 0; font-size: 15px; line-height: 1.65; }
  .ai-entry { min-height: 171px; margin-top: 39px; padding: 19px 18px 16px; border-radius: 18px; box-shadow: 0 12px 34px rgba(15, 28, 44, .07); }
  .ai-input { min-height: 83px; font-size: 16px; }
  .ai-entry-actions { margin-top: 10px; }
  .dock-attach span { display: none; }
  .attachment-summary { max-width: 132px; }
  .send-btn { width: 42px; padding: 0; }
  .send-btn span { display: none; }
  .example-prompts { max-width: 320px; margin-top: 22px; gap: 6px 9px; font-size: 12px; }
  .service-pair { padding: 66px 20px 69px; grid-template-columns: 1fr; gap: 38px; }
  .service-link { min-height: 103px; }
  .service-link strong { font-size: 21px; }
  .service-link small { font-size: 14px; }
  .minimal-footer { padding: 34px 20px 28px; }
  .footer-links { gap: 13px 22px; }
  .footer-meta { margin-top: 30px; flex-direction: column; align-items: flex-start; gap: 8px; }
  .sheet-backdrop { padding: 0; }
  .sheet { width: 100%; max-height: 92svh; padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); border-radius: 20px 20px 0 0; }
  .chat-sheet { grid-template-columns: 1fr; height: var(--chat-viewport-height, 100svh); max-height: none; padding: 0; border-radius: 0; }
  .chat-sidebar { display: none; }
  .chat-main { grid-template-rows: 58px minmax(0, 1fr) auto auto auto; }
  .chat-topbar { padding: 0 15px; }
  .chat-topbar h3 { font-size: 14px; }
  .chat-mobile-new { visibility: visible; }
  .chat-list { padding: 35px 20px 25px; }
  .chat-welcome { padding-bottom: 64px; }
  .chat-welcome h2 { font-size: 28px; }
  .chat-welcome p { max-width: 280px; font-size: 14px; line-height: 1.6; }
  .bubble { max-width: 90%; font-size: 14px; }
  .bubble.answer { max-width: 100%; }
  .upload-progress { width: calc(100% - 32px); }
  .chat-shortcuts { width: calc(100% - 24px); margin-bottom: 8px; gap: 7px; }
  .chat-shortcut { flex: 1 1 0; min-height: 36px; padding: 0 10px; }
  .chat-composer { width: calc(100% - 24px); min-height: 58px; margin-bottom: calc(10px + env(safe-area-inset-bottom)); padding: 7px 7px 7px 8px; grid-template-columns: 38px minmax(0, 1fr) 38px; border-radius: 16px; }
  .chat-attachment-tray { padding: 1px 0 4px; }
  .chat-attachment-card { width: min(218px, calc(100vw - 58px)); min-width: min(218px, calc(100vw - 58px)); }
  .attach-btn, #chatSend { width: 38px; height: 40px; }
  #chatInput { min-height: 40px; padding: 9px 5px 7px; font-size: 16px; }
}

/* Reference-matched local test landing page. Existing APIs and workflows stay intact. */
html, body {
  width: 100%;
  min-height: 100%;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
  background: #f7f9fc;
}

.service-home {
  position: relative;
  width: min(100%, 520px);
  min-height: 100svh;
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) 22px calc(126px + env(safe-area-inset-bottom));
  overflow: hidden;
  background: radial-gradient(circle at 90% 5%, rgba(22,119,255,.05), transparent 24%), linear-gradient(180deg,#fbfcfe,#f6f8fb 62%,#f8fafc);
}
.service-home .topbar {
  position: relative;
  z-index: 8;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.service-home .brand-logo { width: auto; height: 30px; object-fit: contain; }
.support-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 16px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 8px 24px rgba(31,45,61,.06);
  color: #202a37;
  cursor: pointer;
}
.support-btn img { width: 24px; height: 24px; }
.service-account-menu {
  position: absolute;
  top: 64px;
  right: 0;
  z-index: 20;
  width: 224px;
  padding: 14px;
  border: 1px solid #edf0f4;
  border-radius: 20px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 18px 50px rgba(31,45,61,.16);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity .2s ease, transform .2s ease;
}
.service-account-menu.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.service-account-menu small { color: #9aa1ab; }
.service-account-menu strong { display: block; margin: 6px 0 12px; font-size: 21px; }
.service-account-menu button {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 14px;
  background: #111317;
  color: #fff;
  font-weight: 650;
  cursor: pointer;
}
.service-home .hero { position: relative; height: 430px; min-height: 430px; margin: 8px -22px 22px; overflow: hidden; }
.service-home .hero::after {
  content: "";
  position: absolute;
  z-index: 2;
  left: -15%;
  right: -15%;
  bottom: 0;
  height: 52%;
  background: linear-gradient(180deg,rgba(247,249,252,0),rgba(247,249,252,.75) 55%,#f7f9fc 100%);
  pointer-events: none;
}
.service-home .hero-copy { position: absolute; z-index: 3; top: 112px; left: 28px; max-width: 72%; padding: 0; }
.service-home .hero-copy h1 { margin: 0; font-size: 38px; line-height: 1.12; font-weight: 720; letter-spacing: -.03em; }
.service-home .hero-copy p { margin: 14px 0 0; color: #9aa1ab; font-size: 15px; }
.hero-product {
  position: absolute;
  z-index: 1;
  right: -88px;
  bottom: 18px;
  width: 120%;
  max-width: 760px;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 22px 24px rgba(35,45,58,.12));
  user-select: none;
  pointer-events: none;
}
.service-home .services { position: relative; z-index: 3; display: grid; gap: 16px; }
.service-home .service-card {
  width: 100%;
  min-height: 150px;
  padding: 24px;
  display: grid;
  grid-template-columns: 74px 1fr 26px;
  align-items: center;
  gap: 18px;
  border: 0;
  border-radius: 22px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 16px 45px rgba(31,45,61,.08);
  color: #111317;
  text-align: left;
  cursor: pointer;
}
.icon-wrap { width: 68px; height: 68px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(145deg,#f8fbff,#eef2f7); }
.icon-wrap img { width: 34px; height: 34px; }
.service-card-copy { min-width: 0; }
.service-home .service-card h2 { margin: 0 0 8px; font-size: 24px; line-height: 1.25; }
.service-home .service-card p { margin: 0; color: #9aa1ab; font-size: 14px; line-height: 1.55; }
.service-chevron { color: #aeb4bd; font-size: 30px; line-height: 1; }

.ai-dock {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 45;
  width: min(calc(100% - 36px), 484px);
  padding: 11px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 23px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 18px 50px rgba(31,45,61,.15);
  backdrop-filter: blur(20px);
}
.ai-dock .ai-avatar { width: 48px; height: 48px; flex: 0 0 auto; display: grid; place-items: center; overflow: hidden; border-radius: 18px; background: #eef3f9; }
.ai-dock .ai-avatar img { width: 36px; height: 36px; object-fit: cover; border-radius: 10px; }
.ai-dock .ai-input { flex: 1; min-width: 0; min-height: 44px; height: 44px; padding: 0; border: 0; outline: 0; background: transparent; color: #111317; font-size: 15px; }
.ai-dock .ai-input::placeholder { color: #7e8793; }
.ai-dock .send-btn { width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 16px; background: #f4f6f9; color: #6f7782; }
.ai-dock .send-btn:hover { background: #e9eef5; color: #1769e0; transform: none; }
.ai-dock .send-btn img { width: 22px; height: 22px; }

/* The full AI experience opens above the landing page as a responsive sheet. */
.chat-workspace {
  position: fixed;
  inset: 0;
  z-index: 80;
  width: 100%;
  height: var(--chat-viewport-height, 100svh);
  padding: 26px 24px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  background: rgba(15,20,28,.30);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease;
}
.chat-workspace.open { opacity: 1; visibility: visible; pointer-events: auto; }
.chat-workspace .chat-sheet {
  width: min(calc(100% - 48px), 980px);
  max-width: 980px;
  height: min(780px, calc(var(--chat-viewport-height, 100svh) - 52px));
  max-height: calc(var(--chat-viewport-height, 100svh) - 52px);
  border: 1px solid #e6e9ed;
  border-radius: 30px;
  box-shadow: 0 28px 90px rgba(14,22,34,.24);
  transform: translateY(24px);
  transition: transform .3s cubic-bezier(.22,.78,.2,1);
}
.chat-workspace.open .chat-sheet { transform: translateY(0); }
.chat-topbar-left { justify-self: start; display: flex; align-items: center; gap: 12px; }
.chat-close { width: 34px; height: 34px; border: 0; border-radius: 12px; background: #f3f5f8; color: #707884; cursor: pointer; }
.chat-menu { visibility: hidden; }

/* Service forms use the same mobile bottom-sheet language as the supplied design. */
#feedbackSheet, #progressSheet, #progressDetailSheet, #loginSheet { align-items: flex-end; padding: 0; background: rgba(15,20,28,.28); backdrop-filter: blur(3px); }
#feedbackSheet .sheet, #progressSheet .sheet, #progressDetailSheet .sheet, #loginSheet .login-card {
  width: min(100%, 520px);
  max-height: 88svh;
  padding: 12px 22px calc(28px + env(safe-area-inset-bottom));
  border: 0;
  border-radius: 30px 30px 0 0;
  box-shadow: 0 -20px 60px rgba(22,32,45,.18);
  transform: translateY(102%);
  transition: transform .3s cubic-bezier(.22,.78,.2,1);
}
#feedbackSheet.open .sheet, #progressSheet.open .sheet, #progressDetailSheet.open .sheet, #loginSheet.open .login-card { transform: translateY(0); }
#feedbackSheet .sheet-handle, #progressSheet .sheet-handle, #progressDetailSheet .sheet-handle { display: block; width: 44px; height: 5px; margin: 2px auto 20px; border-radius: 999px; background: #dfe3e8; }
#feedbackSheet .sheet-head, #progressSheet .sheet-head, #progressDetailSheet .sheet-head { margin-bottom: 22px; }
.sheet-head h3 { font-size: 24px; }
.close-btn { border-radius: 13px; }
.field input, .field textarea { border-color: #e8ebef; border-radius: 16px; background: #fafbfc; }
.primary-btn { min-height: 52px; border-radius: 17px; background: #111317; }
.primary-btn:hover { background: #000; }

@media (max-width: 760px) {
  .chat-workspace { padding: 0; }
  .chat-workspace .chat-sheet { width: 100%; max-width: none; height: 88svh; max-height: 88svh; border: 0; border-radius: 30px 30px 0 0; }
  .chat-menu { visibility: visible; }
  .chat-topbar { padding: 0 16px; }
  .chat-main { grid-template-rows: 58px minmax(0,1fr) auto auto auto; }
  .chat-list { padding: 28px 18px 24px; }
  .chat-composer { margin: 0 12px calc(12px + env(safe-area-inset-bottom)); }
}

@media (max-width: 390px) {
  .service-home .topbar { height: 56px; }
  .service-home .brand-logo { height: 27px; }
  .service-home .hero { height: 390px; min-height: 390px; }
  .service-home .hero-copy { top: 96px; left: 22px; }
  .service-home .hero-copy h1 { font-size: 34px; }
  .hero-product { right: -108px; bottom: 20px; width: 128%; }
  .service-home .service-card { min-height: 136px; padding: 20px; grid-template-columns: 62px 1fr 22px; gap: 14px; }
  .icon-wrap { width: 58px; height: 58px; }
  .service-home .service-card h2 { font-size: 21px; }
  .service-home .service-card p { font-size: 13px; }
  .chat-topbar-left { gap: 4px; }
  .chat-close { width: 32px; height: 32px; }
}

@media (min-width: 760px) {
  body { padding: 24px 0; }
  .service-home { min-height: calc(100svh - 48px); border-radius: 34px; box-shadow: 0 25px 80px rgba(32,46,66,.12); }
  .ai-dock { bottom: 38px; }
  #feedbackSheet, #progressSheet, #progressDetailSheet, #loginSheet { padding: 26px; }
  #feedbackSheet .sheet, #progressSheet .sheet, #progressDetailSheet .sheet, #loginSheet .login-card { bottom: 0; max-height: calc(100svh - 52px); border-radius: 30px; }
}

@media (max-width: 370px) {
  .brand-section { display: none; }
  .brand-divider { display: none; }
  .ai-hero { padding-left: 16px; padding-right: 16px; }
  .service-pair { padding-left: 16px; padding-right: 16px; }
}

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

/* AI-only workspace */
html, body { width: 100%; height: 100%; overflow: hidden; background: #fff; }
.chat-workspace { width: 100%; height: var(--chat-viewport-height, 100svh); overflow: hidden; background: #fff; }
.chat-workspace .chat-sheet { height: 100%; }
.chat-sidebar { position: relative; z-index: 3; }
.chat-sidebar-brand {
  min-width: 0;
  padding: 4px 8px 25px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
}
.chat-sidebar-brand img { width: auto; max-width: 112px; height: 23px; object-fit: contain; }
.chat-sidebar-brand span { padding-left: 12px; border-left: 1px solid #d6d9dd; white-space: nowrap; }
.chat-history-list { flex: 1 1 auto; padding-right: 2px; }
.chat-history-item { position: relative; padding: 10px 11px; color: #3b4249; transition: color var(--transition), background var(--transition); }
.chat-history-item.active { background: #e7eaed; color: #171a1e; font-weight: 550; }
.chat-history-item-time { display: block; margin-top: 4px; color: #939aa2; font-size: 10px; font-weight: 400; }
.chat-sidebar-footer { flex: 0 0 auto; padding-top: 13px; border-top: 1px solid #dfe2e5; }
.sidebar-user {
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #59616a;
  text-align: left;
  font-size: 13px;
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
}
.sidebar-user { background: #1f2328; color: #fff; text-align: center; font-weight: 600; }
.sidebar-user:hover { background: #0f1114; }
.sidebar-user.logged-in { background: #fff; color: #30363c; border: 1px solid #dfe3e7; }
.sidebar-scrim { display: none; }
.chat-menu { visibility: hidden; width: max-content; padding: 8px 4px; border: 0; background: transparent; color: #535c65; font-size: 13px; cursor: pointer; }
.chat-topbar { grid-template-columns: 1fr auto 1fr; }
.chat-welcome { position: absolute; inset: 0; min-height: 0; padding: 0 24px; }
.chat-welcome h2 { font-size: 36px; }
.chat-composer { margin-bottom: 24px; }

/* Codex-like centered authentication card. */
#feedbackSheet, #progressSheet, #progressDetailSheet, #loginSheet { align-items: center; padding: 24px; background: rgba(17, 20, 24, .34); }
#feedbackSheet .sheet, #progressSheet .sheet, #progressDetailSheet .sheet, .login-card {
  border: 1px solid #e4e7ea;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(15, 20, 28, .18);
}
#feedbackSheet .sheet, #progressSheet .sheet, #progressDetailSheet .sheet { padding: 30px; }
.sheet-head h3 { color: #202429; font-size: 23px; font-weight: 650; }
.auth-tabs { padding: 3px; border-radius: 10px; background: #f2f3f5; }
.at-tab { border-radius: 8px; color: #68717a; }
.at-tab.on { background: #fff; color: #171a1e; box-shadow: 0 1px 3px rgba(15, 20, 28, .08); }
.field label { color: #555e67; font-size: 12px; font-weight: 550; }
.field input, .field textarea { min-height: 46px; border: 1px solid #dfe3e7; background: #fff; }
.field textarea { min-height: 110px; }
.primary-btn { min-height: 47px; background: #1f2328; color: #fff; }
.primary-btn:hover { background: #0e1012; }
.sms-btn { border-color: #dfe3e7; border-radius: 10px; background: #f4f5f6; color: #30363c; }
.pq-item, .pd-card, .progress-result .empty { border-color: #e5e8eb; background: #f8f9fa; box-shadow: none; }
.pr-badge { background: #eef4ff; color: #275fba; }
#loginSheet { align-items: center; padding: 24px; background: rgba(17, 20, 24, .34); }
.login-card { width: min(calc(100% - 32px), 440px); max-height: calc(100svh - 48px); padding: 30px; border: 1px solid #e4e7ea; border-radius: 18px; box-shadow: 0 24px 70px rgba(15, 20, 28, .18); }
.login-brand { margin-bottom: 30px; display: flex; align-items: center; gap: 13px; color: #5f6871; font-size: 12px; }
.login-brand img { width: auto; max-width: 126px; height: 26px; object-fit: contain; }
.login-brand span { padding-left: 13px; border-left: 1px solid #d9dde1; }
.login-card .sheet-head { align-items: flex-start; margin-bottom: 22px; }
.login-card .sheet-head h3 { font-size: 25px; }
.login-card .sheet-head p { margin: 7px 0 0; color: #7a828b; font-size: 13px; }
.login-card .auth-tabs { padding: 3px; border-radius: 10px; background: #f2f3f5; }
.login-card .at-tab { border-radius: 8px; }
.login-card .field input { min-height: 47px; background: #fff; }
.login-card .primary-btn { min-height: 47px; background: #1f2328; }
.login-card .primary-btn:hover { background: #0e1012; }

@media (max-width: 760px) {
  .chat-sheet { position: relative; grid-template-columns: 1fr; }
  .chat-sidebar {
    position: absolute;
    inset: 0 auto 0 0;
    z-index: 30;
    width: min(84vw, 304px);
    display: flex;
    transform: translateX(-102%);
    box-shadow: 18px 0 48px rgba(15, 20, 28, .12);
    transition: transform var(--transition);
  }
  body.sidebar-open .chat-sidebar { transform: translateX(0); }
  .sidebar-scrim {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: block;
    border: 0;
    background: rgba(20, 24, 29, .28);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
  }
  body.sidebar-open .sidebar-scrim { opacity: 1; visibility: visible; }
  .chat-menu { visibility: visible; }
  .chat-mobile-new { visibility: visible; }
  .chat-welcome h2 { font-size: 28px; }
  #loginSheet { padding: 16px; align-items: center; }
  #feedbackSheet, #progressSheet, #progressDetailSheet { padding: 16px; align-items: center; }
  #feedbackSheet .sheet, #progressSheet .sheet, #progressDetailSheet .sheet {
    width: min(100%, 440px);
    max-height: calc(100svh - 32px);
    padding: 25px 21px calc(24px + env(safe-area-inset-bottom));
    border-radius: 17px;
  }
  .login-card { width: min(100%, 420px); max-height: calc(100svh - 32px); padding: 25px 21px calc(24px + env(safe-area-inset-bottom)); border-radius: 17px; }
}

/* Final cascade: the legacy AI-only block above must not hide the new landing page. */
html, body { min-height: 100%; height: auto; overflow-x: hidden; overflow-y: auto; background: #f7f9fc; }
.chat-workspace {
  position: fixed;
  inset: 0;
  z-index: 80;
  height: var(--chat-viewport-height, 100svh);
  padding: 26px 24px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(15,20,28,.30);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.chat-workspace.open { opacity: 1; visibility: visible; pointer-events: auto; }
.chat-workspace .chat-sheet {
  width: min(calc(100% - 48px), 980px);
  max-width: 980px;
  height: min(780px, calc(var(--chat-viewport-height, 100svh) - 52px));
  max-height: calc(var(--chat-viewport-height, 100svh) - 52px);
  border: 1px solid #e6e9ed;
  border-radius: 30px;
  box-shadow: 0 28px 90px rgba(14,22,34,.24);
  transform: translateY(24px);
}
.chat-workspace.open .chat-sheet { transform: translateY(0); }
.chat-topbar-left { justify-self: start; display: flex; align-items: center; gap: 12px; }
.chat-close { width: 34px; height: 34px; border: 0; border-radius: 12px; background: #f3f5f8; color: #707884; cursor: pointer; }
#feedbackSheet, #progressSheet, #progressDetailSheet, #loginSheet { align-items: flex-end; padding: 0; background: rgba(15,20,28,.28); backdrop-filter: blur(3px); }
#feedbackSheet .sheet, #progressSheet .sheet, #progressDetailSheet .sheet, #loginSheet .login-card {
  width: min(100%,520px);
  max-height: 88svh;
  padding: 12px 22px calc(28px + env(safe-area-inset-bottom));
  border: 0;
  border-radius: 30px 30px 0 0;
  box-shadow: 0 -20px 60px rgba(22,32,45,.18);
  transform: translateY(102%);
}
#feedbackSheet.open .sheet, #progressSheet.open .sheet, #progressDetailSheet.open .sheet, #loginSheet.open .login-card { transform: translateY(0); }
#feedbackSheet .sheet-handle, #progressSheet .sheet-handle, #progressDetailSheet .sheet-handle { display: block; }

@media (max-width: 760px) {
  .chat-workspace { padding: 0; }
  .chat-workspace .chat-sheet { width: 100%; max-width: none; height: 88svh; max-height: 88svh; border: 0; border-radius: 30px 30px 0 0; }
  .chat-topbar { padding: 0 16px; }
  .chat-main { grid-template-rows: 58px minmax(0,1fr) auto auto auto; }
  .chat-list { padding: 28px 18px 24px; }
  .chat-composer { margin: 0 12px calc(12px + env(safe-area-inset-bottom)); }
  #feedbackSheet, #progressSheet, #progressDetailSheet, #loginSheet { align-items: flex-end; padding: 0; }
  #feedbackSheet .sheet, #progressSheet .sheet, #progressDetailSheet .sheet, #loginSheet .login-card {
    width: min(100%,520px);
    max-height: 88svh;
    padding: 12px 22px calc(28px + env(safe-area-inset-bottom));
    border-radius: 30px 30px 0 0;
  }
}

@media (min-width: 760px) {
  #feedbackSheet, #progressSheet, #progressDetailSheet, #loginSheet { align-items: flex-end; padding: 26px; }
  #feedbackSheet .sheet, #progressSheet .sheet, #progressDetailSheet .sheet, #loginSheet .login-card { max-height: calc(100svh - 52px); border-radius: 30px; }
}

/* Feedback form: required fields and a native mobile scrolling selector. */
.required-mark { margin-left: 3px; color: #d93025; }
#feedbackSheet .field select {
  min-height: 46px;
  padding-right: 44px;
  border: 1px solid #dfe3e7;
  border-radius: 16px;
  background-color: #fff;
  color: #202429;
  cursor: pointer;
}
#feedbackSheet .field select:invalid { color: #8b929d; }
.product-tree { position: relative; }
.product-tree-trigger {
  width: 100%; min-height: 46px; padding: 0 15px; border: 1px solid #dfe3e7;
  border-radius: 16px; background: #fff; color: #8b929d; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left;
}
.product-tree-trigger.has-value { color: #202429; }
.product-tree-trigger[aria-expanded="true"] { border-color: #9fb5cc; box-shadow: 0 0 0 3px rgba(70,118,169,.1); }
.product-tree-chevron { font-size: 24px; line-height: 1; color: #7e8791; transform: rotate(90deg); transition: transform .18s ease; }
.product-tree-trigger[aria-expanded="true"] .product-tree-chevron { transform: rotate(-90deg); }
.product-tree-menu {
  position: absolute; z-index: 60; top: calc(100% + 7px); left: 0; right: 0;
  max-height: min(360px, 48svh); overflow-y: auto; padding: 7px;
  border: 1px solid #dfe3e7; border-radius: 16px; background: #fff;
  box-shadow: 0 14px 36px rgba(20,28,38,.16);
}
.product-tree-menu[hidden] { display: none; }
.product-tree-group { border-bottom: 1px solid #eef1f4; }
.product-tree-group summary {
  min-height: 43px; padding: 0 10px; cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  color: #252a30; font-size: 14px; font-weight: 650;
}
.product-tree-group summary::-webkit-details-marker { display: none; }
.product-tree-group summary::after { content: '›'; color: #8a929b; font-size: 21px; transition: transform .16s ease; }
.product-tree-group[open] summary::after { transform: rotate(90deg); }
.product-tree-children { padding: 0 6px 7px 18px; }
.product-tree-children button,
.product-tree-root-option {
  width: 100%; min-height: 39px; padding: 8px 11px; border: 0; border-radius: 10px;
  background: transparent; color: #3b424a; cursor: pointer; text-align: left; font-size: 13px;
}
.product-tree-children button:hover,
.product-tree-root-option:hover { background: #f2f5f8; }
.product-tree-children button.is-selected,
.product-tree-root-option.is-selected { background: #eaf2fa; color: #315d8d; font-weight: 650; }
.product-tree-root-option { min-height: 43px; padding-left: 10px; font-size: 14px; font-weight: 650; border-bottom: 1px solid #eef1f4; border-radius: 0; }
.product-tree-root-option:last-child { border-bottom: 0; }
.field-hint { display: block; margin-top: 6px; color: #8a929b; font-size: 10.5px; line-height: 1.35; }
.field-help-link { color: #4676a9; text-decoration: underline; text-underline-offset: 2px; }
.field-help-link:hover { color: #315d8d; }

/* Progress detail: manufacturer fields + service record timeline. */
#progressDetailSheet .sheet { max-height: 92svh; padding-bottom: 0; }
#progressDetailBody { margin: 0 -22px; }
.progress-detail-view { color: #1f2328; background: #fff; }
.pdd-summary { padding: 0 22px 22px; }
.pdd-summary h4 { margin: 0 0 10px; font-size: 18px; font-weight: 650; line-height: 1.35; letter-spacing: -.01em; }
.pdd-status-strip { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.pdd-status-strip span { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 650; line-height: 1.35; }
.pdd-current-status { color: #145d9c; background: #edf6ff; }
.pdd-closure.is-open { color: #9a5b0a; background: #fff6df; }
.pdd-closure.is-closed { color: #26724b; background: #eaf8f0; }
.pdd-summary dl { margin: 0; }
.pdd-summary dl > div {
  min-height: 30px;
  display: grid;
  grid-template-columns: minmax(92px, 34%) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 5px 0;
}
.pdd-summary dt { color: #4f5863; font-size: 13px; line-height: 1.55; }
.pdd-summary dd { margin: 0; color: #171a1e; font-size: 13px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.pdd-summary dl > div.is-emphasis { margin: 2px -10px 7px; padding: 8px 10px; border-radius: 10px; background: #f5f8fc; }
.pdd-summary dl > div.is-emphasis dd { color: #145d9c; font-weight: 650; }
.pdd-divider { height: 9px; border-top: 1px solid #edf0f4; border-bottom: 1px solid #edf0f4; background: #f5f7fa; }
.pdd-service-record { padding: 17px 22px calc(28px + env(safe-area-inset-bottom)); }
.pdd-service-record h5 { margin: 0; font-size: 17px; font-weight: 650; line-height: 1.4; }
.pdd-timeline { margin-top: 15px; }
.pdd-timeline-item { position: relative; min-height: 62px; padding: 0 0 24px 28px; }
.pdd-timeline-item:last-child { min-height: 0; padding-bottom: 0; }
.pdd-timeline-item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 13px;
  bottom: -1px;
  width: 1px;
  background: #d9dee7;
}
.pdd-timeline-dot {
  position: absolute;
  left: 0;
  top: 5px;
  width: 11px;
  height: 11px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #aeb7c7;
  box-shadow: 0 0 0 1px #aeb7c7;
}
.pdd-timeline-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px; line-height: 1.45; }
.pdd-timeline-head strong { color: #6f7887; font-size: 14px; font-weight: 650; }
.pdd-timeline-head time { color: #8d96a5; font-size: 12.5px; }
.pdd-timeline-item p { margin: 7px 0 0; color: #7d8796; font-size: 13px; line-height: 1.55; }
.pdd-worker { display: inline-flex; margin-top: 7px; padding: 3px 8px; border-radius: 7px; color: #315d8d; background: #edf4fb; font-size: 12px; font-weight: 650; line-height: 1.45; }
.pdd-timeline-item small { display: block; margin-top: 5px; color: #9aa2ad; font-size: 11.5px; }
.pdd-timeline-item.is-current .pdd-timeline-dot { background: #1677ff; box-shadow: 0 0 0 1px #1677ff; }
.pdd-timeline-item.is-current .pdd-timeline-head strong,
.pdd-timeline-item.is-current .pdd-timeline-head time { color: #1677ff; }
.pdd-empty { padding: 8px 0 14px; color: #8b929d; font-size: 13px; }

@media (min-width: 760px) {
  .pdd-summary dl > div { grid-template-columns: 170px minmax(0, 1fr); }
}

/* Keep every status/error message above sheets, blur layers and image previews. */
.toast {
  z-index: 2147483647 !important;
  top: max(16px, calc(env(safe-area-inset-top) + 10px));
  width: fit-content;
  max-width: calc(100vw - 32px);
  padding: 13px 18px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  background: #171a1e;
  color: #fff;
  box-shadow: 0 14px 42px rgba(0,0,0,.34), 0 2px 8px rgba(0,0,0,.22);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  isolation: isolate;
}

@media (max-width: 420px) {
  .toast { width: calc(100vw - 32px); }
}

/* Bottom drawer opened from the “更多功能” service card. */
#moreFeaturesSheet {
  z-index: 110;
  align-items: flex-end;
  padding: 0;
  background: rgba(18, 23, 30, .32);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: opacity .3s ease, visibility .3s ease;
}
#moreFeaturesSheet .more-features-dialog {
  width: min(100%, 520px);
  max-height: min(82svh, 620px);
  padding: 13px 24px calc(30px + env(safe-area-inset-bottom));
  overflow: auto;
  border: 0;
  border-radius: 32px 32px 0 0;
  background: #fafbfd;
  box-shadow: 0 -20px 70px rgba(17, 26, 38, .2);
  transform: translate3d(0, 105%, 0);
  transition: transform .46s cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
  -webkit-overflow-scrolling: touch;
}
#moreFeaturesSheet.open .more-features-dialog { transform: translate3d(0, 0, 0); }
.more-features-handle {
  width: 46px;
  height: 5px;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: #bac0c8;
}
.more-features-head { min-height: 44px; align-items: center; margin: 0 0 8px; }
.more-features-head h3 { margin: 0; color: #171a1e; font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.more-features-head .close-btn { width: 36px; height: 36px; border-radius: 50%; background: transparent; font-size: 18px; }
.more-features-head .close-btn:hover { background: #eef1f4; }
.more-features-list { display: grid; }
.more-feature-link {
  width: 100%;
  min-height: 82px;
  margin: 0;
  padding: 12px 8px 12px 2px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 16px;
  border: 0;
  border-bottom: 1px solid #e4e7eb;
  border-radius: 0;
  background: transparent;
  color: #171a1e;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.more-feature-link:last-child { border-bottom: 0; }
.more-feature-link:hover { background: rgba(232, 236, 241, .55); }
.more-feature-link:active { transform: scale(.988); background: rgba(226, 231, 237, .72); }
.more-feature-link:focus-visible { outline: 3px solid rgba(22, 119, 255, .24); outline-offset: -2px; border-radius: 16px; }
.more-feature-icon {
  position: relative;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #e1e5ea;
  border-radius: 17px;
  background: rgba(255, 255, 255, .9);
  color: #20262e;
}
.more-feature-icon > img { width: 25px; height: 25px; object-fit: contain; }
.more-feature-copy { min-width: 0; display: grid; gap: 5px; }
.more-feature-copy strong { font-size: 18px; font-weight: 680; line-height: 1.25; }
.more-feature-copy small { color: #8b94a1; font-size: 13px; line-height: 1.4; }
.more-feature-arrow { color: #b4bbc4; font-size: 28px; line-height: 1; text-align: right; }

@media (min-width: 760px) {
  #moreFeaturesSheet {
    top: 24px;
    right: auto;
    bottom: auto;
    left: 50%;
    width: min(100%, 520px);
    height: min(820px, calc(100svh - 48px));
    padding: 0;
    overflow: hidden;
    border-radius: 30px;
    transform: translateX(-50%);
  }
  #moreFeaturesSheet .more-features-dialog { border-radius: 32px 32px 0 0; }
}

@media (max-width: 420px) {
  #moreFeaturesSheet .more-features-dialog { padding: 12px 20px calc(24px + env(safe-area-inset-bottom)); border-radius: 30px 30px 0 0; }
  .more-features-handle { margin-bottom: 13px; }
  .more-features-head h3 { font-size: 22px; }
  .more-feature-link { min-height: 78px; grid-template-columns: 52px minmax(0, 1fr) 20px; gap: 14px; }
  .more-feature-icon { width: 52px; height: 52px; border-radius: 16px; }
  .more-feature-copy strong { font-size: 17px; }
  .more-feature-copy small { font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
  #moreFeaturesSheet, #moreFeaturesSheet .more-features-dialog, .more-feature-link { transition-duration: .01ms; }
}
