: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); }
.user-notice-overlay {
  position: fixed;
  inset: 0;
  z-index: 180;
  padding: 24px;
  display: grid;
  place-items: center;
  background: rgba(15, 18, 22, .48);
  backdrop-filter: blur(7px);
}
.user-notice-overlay[hidden] { display: none; }
.user-notice-card {
  width: min(100%, 580px);
  max-height: min(82dvh, 760px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(215, 219, 223, .9);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(9, 14, 20, .25);
}
.user-notice-head {
  min-height: 68px;
  padding: 0 18px 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #eceef0;
}
.user-notice-head h2 { margin: 0; color: #20252a; font-size: 21px; font-weight: 650; letter-spacing: -.015em; }
.user-notice-close {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: #f1f3f5;
  color: #69717a;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.user-notice-close:hover { background: #e7eaed; color: #24292f; }
.user-notice-content {
  min-height: 0;
  padding: 22px 25px 25px;
  overflow-y: auto;
  color: #454c54;
  font-size: 14px;
  line-height: 1.72;
  overscroll-behavior: contain;
}
.user-notice-content > p:first-child { margin: 0 0 14px; color: #252a30; font-weight: 560; }
.user-notice-content ol { margin: 0; padding-left: 22px; }
.user-notice-content li { padding-left: 3px; margin: 0 0 11px; }
.user-notice-foot { margin: 18px 0 0; padding: 13px 14px; border-radius: 10px; background: #f5f6f7; color: #69717a; font-size: 12px; }

@media (max-width: 600px) {
  .user-notice-overlay { padding: 14px; align-items: end; }
  .user-notice-card { width: 100%; max-height: min(88dvh, 760px); border-radius: 20px 20px 14px 14px; }
  .user-notice-head { min-height: 62px; padding: 0 14px 0 20px; }
  .user-notice-head h2 { font-size: 19px; }
  .user-notice-content { padding: 19px 20px calc(22px + env(safe-area-inset-bottom)); font-size: 13px; line-height: 1.68; }
  .user-notice-content li { margin-bottom: 10px; }
}
.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; }
}

@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;
  color: inherit;
  text-decoration: none;
}
.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; }
}
