:root {
  color-scheme: light;
  --canvas: #faf9f5;
  --sidebar: #f5f0e8;
  --card: #ffffff;
  --soft: #efe9de;
  --ink: #0f0f0e;
  --body: #2e2e2c;
  --muted: #51504b;
  --line: #e6dfd8;
  --primary: #cc785c;
  --primary-active: #a9583e;
  --danger: #c64545;
  --success: #36794a;
}

body.dark-mode {
  color-scheme: dark;
  --canvas: #181715;
  --sidebar: #1f1e1b;
  --card: #252320;
  --soft: #302d28;
  --ink: #faf9f5;
  --body: #e6dfd8;
  --muted: #b7b1a7;
  --line: #45413a;
  --primary: #e3a18a;
  --primary-active: #edbba9;
  --danger: #f19898;
  --success: #83c696;
}

* { box-sizing: border-box; }
[v-cloak] { display: none; }
html { scroll-behavior: smooth; scroll-padding-top: 85px; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--body);
  font-family: 'Prompt', sans-serif;
  font-size: 14px;
  line-height: 1.7;
}
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary-active); }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .6; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 4px;
}
.skip-link {
  position: fixed;
  top: -70px;
  left: 16px;
  padding: 10px 18px;
  background: var(--card);
  z-index: 1100;
}
.skip-link:focus { top: 12px; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 248px;
  padding: 18px 12px 12px;
  display: flex;
  flex-direction: column;
  background: var(--sidebar);
  color: var(--body);
  border-right: 1px solid var(--line);
  z-index: 1040;
  overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 50%;
}
.brand-name { font-size: 17px; font-weight: 500; letter-spacing: -.5px; }
.brand-deed { width: 26px; height: 26px; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.deed-seal { transform-origin: 21px 21px; animation: deed-stamp 5s ease-in-out infinite; }
.deed-seal circle { fill: var(--sidebar); }
@keyframes deed-stamp {
  0%, 10% { opacity: 0; transform: translateY(-4px) scale(1.3); }
  25% { opacity: 1; transform: translateY(1px) scale(.9); }
  35%, 85% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(0) scale(1); }
}
.office-caption { margin: 14px 8px 20px; font-size: 12px; color: var(--muted); line-height: 1.9; }
.new-chat {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  padding: 9px 12px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: left;
}
.new-chat:hover { background: var(--soft); color: var(--ink); }
.nav-caption {
  margin: 22px 10px 8px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 1px;
}
.side-nav { display: grid; gap: 2px; }
.side-nav a, .side-nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  border: 0;
  background: transparent;
  color: var(--body);
  text-align: left;
  width: 100%;
}
.side-nav a.active, .side-nav a:hover, .side-nav button:hover { background: var(--soft); color: var(--ink); }
.side-nav i { width: 18px; text-align: center; color: var(--muted); }
.sidebar-bottom { margin-top: auto; padding-top: 30px; }
.office-note { padding: 12px 10px; border: 1px solid var(--line); border-radius: 12px; font-size: 12px; }
.office-note p { margin: 6px 0 0; color: var(--muted); }
.office-note a { display: block; margin-top: 8px; color: var(--primary-active); }
.sidebar-controls { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; }
.theme-button, .icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: transparent;
}
.workspace { margin-left: 248px; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.menu-toggle, .sidebar-close { display: none; }
.tracking-space { width: 100%; max-width: 736px; padding: 48px 28px clamp(48px, 12vh, 140px); margin: auto; }
.welcome { display: grid; grid-template-columns: 1fr; justify-content: center; align-items: center; text-align: center; }
.welcome-symbol { grid-column: 1; grid-row: 1; color: var(--primary); margin-bottom: 14px; }
.land-survey { display: block; width: 104px; height: 104px; margin: auto; overflow: visible; }
.survey-grid { stroke: currentColor; stroke-width: .7; stroke-opacity: .12; }
.survey-fill { fill: currentColor; fill-opacity: .08; }
.survey-boundary { stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; animation: survey-draw 6s ease-in-out infinite; }
.survey-tracer { stroke: currentColor; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1 99; opacity: 0; animation: survey-trace 6s ease-in-out infinite; }
.survey-points circle { fill: var(--canvas); stroke: currentColor; stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: survey-point 6s ease-in-out infinite; }
.survey-points circle:nth-child(2) { animation-delay: .35s; }
.survey-points circle:nth-child(3) { animation-delay: .7s; }
.survey-points circle:nth-child(4) { animation-delay: 1.05s; }
.survey-ripple { stroke: currentColor; opacity: 0; transform-origin: 60px 60px; animation: survey-ping 3s ease-out infinite; }
.survey-center { fill: currentColor; }
@keyframes survey-trace {
  0%, 8% { stroke-dashoffset: 0; opacity: 0; }
  12% { opacity: 1; }
  55% { stroke-dashoffset: -100; opacity: 1; }
  65%, 100% { stroke-dashoffset: -100; opacity: 0; }
}
@keyframes survey-draw {
  0%, 8% { stroke-dashoffset: 100; }
  55%, 85% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -100; }
}
@keyframes survey-point {
  0%, 15%, 65%, 100% { transform: scale(1); }
  30% { transform: scale(1.45); }
}
@keyframes survey-ping {
  0% { opacity: .5; transform: scale(.5); }
  100% { opacity: 0; transform: scale(2.5); }
}
.eyebrow { grid-column: 1; grid-row: 2; color: var(--muted); font-size: 12px; margin-bottom: 18px; }
h1 {
  font-family: 'Prompt', Georgia, serif;
  font-size: clamp(26px, 2.2vw, 34px);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -1px;
  color: var(--ink);
  margin: 0;
}
.welcome h1 { grid-column: 1; grid-row: 3; }
.welcome h1 br { display: none; }
.welcome-description { grid-column: 1; grid-row: 4; color: var(--muted); line-height: 1.9; margin: 16px 0 24px; }
.composer {
  padding: 14px 16px 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgb(20 20 19 / 4%);
  transition: border-color .2s, box-shadow .2s;
}
.composer label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.tracking-input {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color .2s, box-shadow .2s;
}
.tracking-input:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgb(204 120 92 / 12%);
}
.tracking-input i { position: absolute; top: 50%; left: 6px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.composer input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.5;
  padding: 8px 12px 8px 31px;
  border-radius: 0;
}
.composer input::placeholder { color: var(--muted); font-size: 15px; }
.composer-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; }
.scan-button {
  border: 0;
  background: var(--sidebar);
  color: var(--body);
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 12px;
}
.scan-button i { margin-right: 6px; }
.composer-actions { display: flex; gap: 12px; align-items: center; }
.enter-hint { font-size: 10px; color: var(--muted); }
.send-button {
  width: 37px;
  height: 37px;
  border: none;
  border-radius: 9px;
  background: #cc785c;
  color: #fff;
}
.send-button:hover:not(:disabled) { background: #a9583e; }
.suggestions { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin-top: 22px; }
.suggestions a, .suggestions button { border: 1px solid var(--line); border-radius: 8px; padding: 7px 12px; font-size: 12px; background: transparent; color: inherit; }
.suggestions i { margin-right: 6px; color: var(--muted); }
.suggestions a:hover, .suggestions button:hover { background: var(--sidebar); }
.workspace.has-conversation { height: 100vh; height: 100svh; min-height: 0; }
.has-conversation .tracking-space { margin-block: 0; padding-block: 36px 16px; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.has-conversation .conversation { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-gutter: stable; overflow-anchor: none; }
.has-conversation .composer { flex-shrink: 0; position: relative; z-index: 1; }
.has-conversation .page-footer { flex-shrink: 0; }
.workspace:not(.has-conversation) .welcome { animation: chat-line-in .55s both; }
.workspace:not(.has-conversation) .suggestions { animation: chat-line-in .55s .16s both; }
.conversation { margin-bottom: 28px; }
.conversation-heading { font-size: 15px; color: var(--muted); font-weight: 400; margin-bottom: 26px; overflow-wrap: anywhere; animation: chat-line-in .42s both; }
.user-message { background: var(--soft); border-radius: 16px 16px 4px 16px; padding: 13px 18px; margin: 0 0 30px auto; width: fit-content; max-width: 90%; overflow-wrap: anywhere; animation: chat-line-in .42s .08s both; }
.assistant-heading { display: flex; align-items: center; gap: 10px; color: var(--ink); margin-bottom: 16px; font-size: 14px; animation: chat-line-in .42s .16s both; }
.assistant-heading .brand-mark { width: 28px; height: 28px; font-size: 12px; }
.assistant-heading .brand-mark:has(.assistant-avatar) { border: 0; background: var(--soft); overflow: visible; }
.assistant-avatar { width: 28px; height: 28px; flex-shrink: 0; overflow: visible; }
.avatar-skin { fill: #f4cba8; }
.avatar-hair { fill: #534039; }
.avatar-shirt { fill: #cc785c; }
.avatar-expression { stroke: #534039; stroke-width: 1.4; stroke-linecap: round; }
.avatar-cheeks { fill: #df9989; }
.avatar-gaze { transform: translate(var(--gaze-x, 0px), var(--gaze-y, 0px)); transition: transform .18s ease-out; }
.assistant-avatar.is-searching .avatar-gaze { transform: translateY(1px); }
.avatar-eyes { fill: #534039; stroke: none; transform-box: view-box; transform-origin: 16px 15px; animation: avatar-blink 6.7s linear infinite; }
@keyframes avatar-blink {
  0%, 32%, 35%, 84%, 87%, 100% { transform: scaleY(1); }
  33.5%, 85.5% { transform: scaleY(.1); }
}
.assistant-body { padding-left: 38px; overflow-wrap: anywhere; }
.reply-content { overflow: hidden; display: flow-root; }
.reply-content > * { animation: chat-line-in .42s both; }
.reply-content > :nth-child(1) { animation-delay: .04s; }
.reply-content > :nth-child(2) { animation-delay: .16s; }
.reply-content > :nth-child(3) { animation-delay: .28s; }
.reply-content > :nth-child(4) { animation-delay: .40s; }
.reply-content > :nth-child(5) { animation-delay: .52s; }
.reply-content > :nth-child(6) { animation-delay: .64s; }
.reply-content > p { margin-bottom: 18px; }
.reply-intro { animation: chat-line-in .46s .04s both; }
@keyframes chat-line-in {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}
.typing-status { color: var(--muted); padding: 8px 0; }
.typing-dots { display: inline-flex; gap: 4px; margin-right: 10px; }
.typing-dots span { width: 5px; height: 5px; border-radius: 50%; background: var(--primary); animation: pulse 1.2s infinite; }
.typing-dots span:nth-child(2) { animation-delay: .2s; }
.typing-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes pulse { 50% { opacity: .3; transform: translateY(-3px); } }
.status-card { border: 1px solid var(--line); border-radius: 12px; padding: 22px; background: var(--sidebar); margin-bottom: 16px; }
.status-kicker { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.status-kicker i { color: var(--primary); }
.status-card > .status-kicker { animation: chat-line-in .36s .08s both; }
.status-completed .status-kicker i { color: var(--success); }
.status-text { color: var(--ink); font-size: 16px; font-weight: 500; line-height: 1.9; margin: 0 0 12px; white-space: pre-line; }
.status-card > .status-text { animation: chat-line-in .42s .16s both; }
.status-date { font-size: 11px; color: var(--muted); }
.status-card > .status-date { animation: chat-line-in .36s .26s both; }
.status-notice { padding-top: 12px; margin-top: 14px; border-top: 1px solid var(--line); font-size: 13px; }
.status-card > .status-notice { animation: chat-line-in .36s .34s both; }
.tracking-details { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 22px 0; }
.tracking-details div:last-child { grid-column: 1 / -1; }
.tracking-details dt { font-size: 11px; font-weight: 400; color: var(--muted); margin-bottom: 4px; }
.tracking-details dd { font-size: 13px; margin: 0; color: var(--ink); }
.timeline-panel { border-block: 1px solid var(--line); padding: 14px 0; margin-bottom: 20px; }
.timeline-panel summary { font-size: 13px; cursor: pointer; color: var(--ink); }
.timeline-content { display: flow-root; overflow: hidden; }
.timeline { list-style: none; padding: 8px 0 0 9px; margin: 18px 0 0; }
.timeline li { position: relative; border-left: 1px solid var(--line); padding: 0 0 22px 22px; }
.timeline li::before { content: ''; position: absolute; top: 7px; left: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.timeline li:last-child { padding-bottom: 0; }
.timeline-panel[open] .timeline li { animation: chat-line-in .36s both; }
.timeline-panel[open] .timeline li:nth-child(2) { animation-delay: .06s; }
.timeline-panel[open] .timeline li:nth-child(3) { animation-delay: .12s; }
.timeline-panel[open] .timeline li:nth-child(4) { animation-delay: .18s; }
.timeline-panel[open] .timeline li:nth-child(5) { animation-delay: .24s; }
.timeline-panel[open] .timeline li:nth-child(6) { animation-delay: .30s; }
.timeline time { font-size: 11px; color: var(--muted); }
.timeline p { font-size: 13px; margin: 4px 0 0; white-space: pre-line; }
.notification-button, .retry-button { border: 1px solid var(--line); background: transparent; color: var(--body); border-radius: 8px; padding: 9px 13px; font-size: 12px; max-width: 100%; }
.notification-button i { margin-right: 7px; }
.push-status, .ios-guide { font-size: 12px; margin-top: 10px; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-muted { color: var(--muted) !important; }
.error-message { color: var(--danger); padding: 16px; border: 1px solid var(--danger); border-radius: 10px; margin-bottom: 12px; }
.section-description { color: var(--muted); font-size: 12px; margin-bottom: 20px; }
.contact-section { padding-top: 26px; }
.contact-card { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; background: var(--sidebar); border: 1px solid var(--line); border-radius: 12px; padding: 24px; font-size: 12px; }
.contact-card h3 { font-weight: 500; font-size: 14px; color: var(--ink); margin-bottom: 12px; }
.contact-card address { font-style: normal; color: var(--muted); line-height: 2; margin-bottom: 14px; }
.contact-link { display: block; margin-bottom: 12px; overflow-wrap: anywhere; }
.contact-link i { width: 20px; color: var(--primary); margin-right: 7px; }
.map-link { color: var(--primary-active); }
.hours { color: var(--muted); margin-top: 18px; font-size: 11px; }
.page-footer { text-align: center; padding: 10px 24px 16px; color: var(--muted); font-size: 10px; }
.modal-content { background: var(--canvas); color: var(--body); border-color: var(--line); border-radius: 16px; }
.modal-header, .modal-footer { border-color: var(--line); }
.modal-title { font-size: 16px; }
.info-modal .modal-header { padding: 20px 24px; }
.info-modal .modal-body { padding: 24px; }
body.dark-mode .btn-close { filter: invert(1); }
.scanner-status { color: var(--muted); text-align: center; padding: 20px; }
.scanner-error { color: var(--danger); }
.sidebar-backdrop { display: none; }
.privacy-notice {
  position: fixed;
  bottom: 18px;
  left: 268px;
  right: 20px;
  max-width: 700px;
  margin: auto;
  padding: 14px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 5px 25px rgb(20 20 19 / 10%);
  z-index: 1030;
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 11px;
}
.privacy-notice p { margin: 0; }
.privacy-notice button { padding: 6px 12px; border-radius: 6px; border: 1px solid var(--line); color: var(--body); background: var(--sidebar); white-space: nowrap; }
.privacy-notice[hidden] { display: none; }
@media (max-width: 1050px) {
  .sidebar { width: 240px; padding-inline: 16px; }
  .brand-name { font-size: 16px; }
  .workspace { margin-left: 240px; }
  .privacy-notice { left: 260px; }
}
@media (max-width: 767px) {
  .sidebar { width: 280px; transform: translateX(-100%); transition: transform .2s ease; }
  body.sidebar-open { overflow: hidden; }
  body.sidebar-open .sidebar { transform: translateX(0); }
  body.sidebar-open .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgb(20 20 19 / 35%); border: 0; z-index: 1035; }
  .sidebar-close { display: inline-flex; position: absolute; top: 13px; right: 10px; width: 26px; height: 26px; }
  .sidebar .brand { margin-top: 20px; }
  .workspace { margin-left: 0; }
  .menu-toggle { display: inline-flex; position: fixed; top: 14px; left: 18px; z-index: 1030; background: var(--canvas); }
  .tracking-space { padding: 80px 20px 48px; }
  .welcome { display: block; }
  .welcome-symbol { margin-bottom: 14px; }
  .welcome h1 br { display: initial; }
  .has-conversation .tracking-space { padding-top: 72px; }
  .welcome-description { font-size: 12px; }
  .composer { padding: 15px; }
  .composer input { font-size: 16px; }
  .composer input::placeholder { font-size: 13px; }
  .enter-hint { display: none; }
  .assistant-body { padding-left: 0; }
  .info-modal .modal-header, .info-modal .modal-body { padding: 20px; }
  .contact-card { grid-template-columns: 1fr; gap: 18px; padding: 20px; }
  .privacy-notice { left: 12px; right: 12px; bottom: 12px; }
}
.theme-switching .composer { transition: none; }
.theme-switching::view-transition-group(root) { animation-duration: .4s; }
.theme-switching::view-transition-old(root) {
  animation: none;
  mix-blend-mode: normal;
}
.theme-switching::view-transition-new(root) {
  animation: theme-page-in .4s ease both;
  mix-blend-mode: normal;
}
@keyframes theme-page-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .assistant-avatar .avatar-gaze { transform: none; }
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
