:root {
  --anan-green-950: #123f36;
  --anan-green-800: #176c59;
  --anan-green-650: #2f9477;
  --anan-green-150: #e3f3ec;
  --anan-amber: #c58924;
  --anan-ink: #172521;
  --anan-muted: #64756f;
  --anan-line: rgba(36, 111, 89, 0.18);
}

.patient-ai-assistant {
  display: none !important;
}

.anan-platform-pet,
.anan-platform-pet * {
  box-sizing: border-box;
  letter-spacing: 0;
}

.anan-platform-pet[hidden] {
  display: none !important;
}

.anan-platform-pet {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1200;
  width: 104px;
  height: 112px;
  color: var(--anan-ink);
  font-family: inherit;
}

.anan-platform-pet.is-snapping {
  transition: left 220ms cubic-bezier(.22, .8, .28, 1), top 220ms cubic-bezier(.22, .8, .28, 1);
}

.anan-platform-pet.is-dragging {
  transition: none;
}

.anan-platform-pet.will-snap-left .anan-dock-pet img {
  transform: translateX(-5px) scale(1.04);
}

.anan-platform-pet.will-snap-right .anan-dock-pet img {
  transform: translateX(5px) scale(1.04);
}

.anan-platform-pet.will-snap-top .anan-dock-pet img {
  transform: translateY(-5px) rotate(4deg) scale(1.04);
}

.anan-platform-pet.will-snap-bottom .anan-dock-pet img {
  transform: translateY(5px) rotate(-4deg) scale(1.04);
}

.anan-platform-panel[hidden] {
  display: none !important;
}

.anan-platform-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 13px);
  display: flex;
  width: min(392px, calc(100vw - 24px));
  max-height: min(690px, var(--anan-panel-max-height, calc(100vh - 126px)));
  flex-direction: column;
  overflow: hidden;
  background: #f8fcfa;
  border: 1px solid rgba(32, 119, 94, 0.26);
  border-radius: 8px;
  box-shadow: 0 20px 54px rgba(20, 62, 52, 0.24), 0 4px 14px rgba(20, 62, 52, 0.1);
  animation: anan-panel-enter 170ms ease-out;
}

.anan-platform-pet.panel-below .anan-platform-panel {
  top: calc(100% + 13px);
  bottom: auto;
}

.anan-platform-pet.panel-left .anan-platform-panel {
  right: auto;
  left: 0;
}

@keyframes anan-panel-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.anan-platform-header {
  display: grid;
  min-height: 66px;
  grid-template-columns: 56px minmax(0, 1fr) 34px 34px;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  background: #ffffff;
  border-bottom: 1px solid var(--anan-line);
}

.anan-platform-header__pet {
  position: relative;
  display: block;
  width: 56px;
  height: 49px;
  align-self: stretch;
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 6px;
}

.anan-platform-header__pet img {
  position: absolute;
  left: -1px;
  bottom: -26px;
  width: 58px;
  max-width: none;
  filter: drop-shadow(0 5px 6px rgba(23, 76, 61, 0.16));
  transform: translate(calc(var(--anan-look-x, 0) * 3px), calc(var(--anan-look-y, 0) * 2px)) rotate(calc(var(--anan-look-x, 0) * 1.5deg));
  transform-origin: 50% 80%;
  transition: transform 120ms ease, filter 160ms ease;
}

.anan-platform-header__pet:hover img,
.anan-platform-header__pet:focus-visible img {
  filter: drop-shadow(0 8px 9px rgba(23, 76, 61, 0.22));
}

.anan-reaction-bubble[hidden] {
  display: none !important;
}

.anan-reaction-bubble {
  position: absolute;
  z-index: 3;
  top: 5px;
  left: 62px;
  display: -webkit-box;
  width: 196px;
  max-height: 42px;
  overflow: hidden;
  padding: 7px 9px;
  color: #2b574b;
  background: #edf7f2;
  border: 1px solid rgba(47, 148, 119, 0.2);
  border-radius: 6px;
  box-shadow: 0 6px 14px rgba(20, 62, 52, 0.12);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.anan-platform-pet.is-reacting .anan-platform-header__title {
  visibility: hidden;
}

.anan-platform-pet[data-touch-zone='leaf'] .anan-platform-header__pet img {
  transform: translateY(-3px) rotate(-2deg);
}

.anan-platform-pet[data-touch-zone='chest'] .anan-platform-header__pet img {
  transform: scale(1.04);
}

.anan-platform-pet[data-touch-zone='rapid'] .anan-platform-header__pet img {
  animation: anan-touch-wiggle 320ms ease-in-out 2;
}

@keyframes anan-touch-wiggle {
  0%, 100% { transform: rotate(0); }
  35% { transform: rotate(-4deg); }
  70% { transform: rotate(4deg); }
}

.anan-platform-header__title {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.anan-platform-header__title strong {
  overflow: hidden;
  color: var(--anan-green-950);
  font-size: 14px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.anan-platform-header__title small {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--anan-muted);
  font-size: 11px;
}

.anan-platform-header__title i {
  width: 7px;
  height: 7px;
  background: #42b979;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(66, 185, 121, 0.12);
}

.anan-icon-button {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  padding: 0;
  color: #4f6860;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  font: inherit;
  font-size: 20px;
}

.anan-icon-button:hover {
  color: var(--anan-green-800);
  background: var(--anan-green-150);
  border-color: var(--anan-line);
}

.anan-platform-expert-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 4px 8px;
  padding: 11px 14px 8px;
  background: #f4faf7;
}

.anan-platform-expert-summary > span {
  color: var(--anan-muted);
  font-size: 11px;
}

.anan-platform-expert-summary > strong {
  color: var(--anan-green-800);
  font-size: 13px;
}

.anan-platform-expert-summary > small {
  grid-column: 1 / -1;
  overflow: hidden;
  color: #526a62;
  font-size: 11px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.anan-platform-experts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 4px 14px 10px;
  background: #f4faf7;
  border-bottom: 1px solid var(--anan-line);
}

.anan-expert-chip {
  min-width: 0;
  min-height: 26px;
  padding: 5px 8px;
  color: #526a62;
  background: #ffffff;
  border: 1px solid var(--anan-line);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.anan-expert-chip[data-active='true'] {
  color: #ffffff;
  background: var(--anan-green-800);
  border-color: var(--anan-green-800);
}

.anan-companion-delivery[hidden],
.anan-companion-continuity[hidden],
.anan-prep-backdrop[hidden] {
  display: none !important;
}

.anan-companion-delivery {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto 26px;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  background: #f8fbfa;
  border-bottom: 1px solid var(--anan-line);
}

.anan-companion-delivery.is-urgent {
  background: #fff7ee;
  border-color: rgba(183, 105, 60, 0.23);
}

.anan-companion-delivery__icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: #ffffff;
  background: var(--anan-green-650);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 850;
}

.anan-companion-delivery.is-urgent .anan-companion-delivery__icon {
  background: #b76b3c;
}

.anan-companion-delivery > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 1px;
}

.anan-companion-delivery small,
.anan-companion-continuity small {
  color: #788983;
  font-size: 9px;
}

.anan-companion-delivery strong,
.anan-companion-continuity strong {
  overflow: hidden;
  color: var(--anan-green-950);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.anan-companion-continuity strong {
  display: -webkit-box;
  overflow: hidden;
  line-height: 1.35;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.anan-companion-delivery p,
.anan-companion-continuity p {
  margin: 0;
  overflow: hidden;
  color: #60736d;
  font-size: 9px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.anan-companion-delivery button,
.anan-continuity-actions button,
.anan-command-strip button {
  min-height: 28px;
  padding: 5px 8px;
  color: var(--anan-green-800);
  background: #ffffff;
  border: 1px solid var(--anan-line);
  border-radius: 5px;
  font: inherit;
  font-size: 9px;
  font-weight: 750;
}

.anan-companion-delivery .anan-delivery-action {
  color: #ffffff;
  background: var(--anan-green-800);
  border-color: var(--anan-green-800);
}

.anan-companion-delivery .anan-delivery-dismiss {
  width: 26px;
  padding: 0;
  color: #687a74;
  background: transparent;
  border-color: transparent;
  font-size: 17px;
}

.anan-companion-continuity {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  background: #fbfdfc;
  border-bottom: 1px solid var(--anan-line);
}

.anan-companion-continuity > div:first-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 1px;
}

.anan-continuity-actions {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 4px;
}

.anan-command-strip {
  display: flex;
  min-height: 39px;
  gap: 5px;
  overflow-x: auto;
  padding: 5px 10px;
  background: #f4faf7;
  border-bottom: 1px solid var(--anan-line);
  scrollbar-width: thin;
}

.anan-command-strip button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.anan-platform-conversation {
  display: flex;
  min-height: 104px;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  padding: 12px 14px;
  background: #ffffff;
}

.anan-message {
  display: flex;
  width: fit-content;
  max-width: 91%;
  flex-direction: column;
  gap: 3px;
  padding: 9px 11px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.55;
}

.anan-message strong {
  font-size: 11px;
}

.anan-message span {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.anan-message--assistant {
  align-self: flex-start;
  color: #234c40;
  background: #edf7f2;
  border: 1px solid rgba(47, 148, 119, 0.15);
}

.anan-message--user {
  align-self: flex-end;
  color: #ffffff;
  background: var(--anan-green-800);
}

.anan-message--error {
  align-self: flex-start;
  color: #7a4e16;
  background: #fff7e8;
  border: 1px solid rgba(197, 137, 36, 0.24);
}

.anan-platform-form {
  display: grid;
  gap: 7px;
  padding: 11px 14px;
  background: #f8fcfa;
  border-top: 1px solid var(--anan-line);
}

.anan-platform-form > label {
  color: var(--anan-green-950);
  font-size: 12px;
  font-weight: 750;
}

.anan-platform-form textarea {
  width: 100%;
  min-height: 62px;
  max-height: 126px;
  resize: vertical;
  padding: 9px 10px;
  color: var(--anan-ink);
  background: #ffffff;
  border: 1px solid rgba(40, 111, 91, 0.28);
  border-radius: 6px;
  outline: none;
  font: inherit;
  font-size: 12px;
  line-height: 1.5;
}

.anan-platform-form textarea:focus {
  border-color: var(--anan-green-650);
  box-shadow: 0 0 0 3px rgba(47, 148, 119, 0.12);
}

.anan-platform-form__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.anan-platform-form__actions button,
.anan-platform-links button {
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 6px;
  font: inherit;
  font-size: 11px;
  font-weight: 750;
}

.anan-voice-button {
  color: var(--anan-green-800);
  background: #ffffff;
  border: 1px solid var(--anan-line);
}

.anan-send-button {
  color: #ffffff;
  background: var(--anan-green-800);
  border: 1px solid var(--anan-green-800);
  box-shadow: 0 5px 12px rgba(23, 108, 89, 0.18);
}

.anan-platform-form__actions button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.anan-platform-privacy {
  color: #70817b;
  font-size: 9px;
  line-height: 1.45;
}

.anan-platform-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 9px 14px 12px;
  background: #f8fcfa;
}

.anan-platform-links button {
  min-width: 0;
  padding-inline: 6px;
  color: #385e53;
  background: #ffffff;
  border: 1px solid var(--anan-line);
  white-space: normal;
}

.anan-platform-dock {
  position: relative;
  display: block;
  width: 104px;
  height: 112px;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.anan-platform-dock::after {
  position: absolute;
  z-index: -1;
  right: 13px;
  bottom: 1px;
  width: 76px;
  height: 18px;
  content: '';
  background: rgba(24, 78, 63, 0.16);
  border-radius: 50%;
  filter: blur(7px);
  transform: scaleX(.86);
  transition: opacity 160ms ease, transform 180ms ease;
}

.anan-drag-button {
  font: inherit;
}

.anan-drag-button {
  position: relative;
  display: block;
  width: 104px;
  min-width: 104px;
  height: 112px;
  min-height: 112px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: grab;
  touch-action: none;
}

.anan-platform-pet.is-dragging .anan-drag-button {
  cursor: grabbing;
}

.anan-dock-pet {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 104px;
  height: 112px;
  overflow: visible;
  pointer-events: none;
}

.anan-dock-pet img {
  position: absolute;
  left: -2px;
  bottom: 0;
  width: 108px;
  max-width: none;
  filter: drop-shadow(0 6px 8px rgba(23, 76, 61, 0.17));
  transform-origin: 50% 88%;
  animation: anan-dock-breathe 3.2s ease-in-out infinite;
  transition: transform 180ms ease, filter 180ms ease;
}

.anan-drag-button:hover .anan-dock-pet img,
.anan-drag-button:focus-visible .anan-dock-pet img,
.anan-platform-pet.is-open .anan-dock-pet img {
  transform: translateY(-4px) scale(1.025);
  filter: drop-shadow(0 10px 12px rgba(35, 85, 70, 0.22));
  animation: none;
}

.anan-platform-pet.is-dragging .anan-dock-pet img {
  transform: translateY(-9px) rotate(2.5deg) scale(1.03);
  filter: drop-shadow(0 12px 14px rgba(35, 85, 70, 0.24));
  animation: none;
}

.anan-platform-pet.is-dragging.will-snap-left .anan-dock-pet img {
  transform: translate(-7px, -9px) rotate(-2deg) scale(1.04);
}

.anan-platform-pet.is-dragging.will-snap-right .anan-dock-pet img {
  transform: translate(7px, -9px) rotate(2deg) scale(1.04);
}

.anan-platform-pet.is-dragging.will-snap-top .anan-dock-pet img {
  transform: translateY(-14px) rotate(3deg) scale(1.04);
}

.anan-platform-pet.is-dragging.will-snap-bottom .anan-dock-pet img {
  transform: translateY(-2px) rotate(-3deg) scale(1.04);
}

.anan-platform-pet[data-snap-edge='left'],
.anan-platform-pet[data-snap-edge='right'] {
  width: 76px;
  height: 88px;
}

.anan-platform-pet[data-snap-edge='top'],
.anan-platform-pet[data-snap-edge='bottom'] {
  width: 92px;
  height: 72px;
}

.anan-platform-pet[data-snap-edge='left'] .anan-platform-dock,
.anan-platform-pet[data-snap-edge='right'] .anan-platform-dock,
.anan-platform-pet[data-snap-edge='top'] .anan-platform-dock,
.anan-platform-pet[data-snap-edge='bottom'] .anan-platform-dock,
.anan-platform-pet[data-snap-edge='left'] .anan-drag-button,
.anan-platform-pet[data-snap-edge='right'] .anan-drag-button,
.anan-platform-pet[data-snap-edge='top'] .anan-drag-button,
.anan-platform-pet[data-snap-edge='bottom'] .anan-drag-button,
.anan-platform-pet[data-snap-edge='left'] .anan-dock-pet,
.anan-platform-pet[data-snap-edge='right'] .anan-dock-pet,
.anan-platform-pet[data-snap-edge='top'] .anan-dock-pet,
.anan-platform-pet[data-snap-edge='bottom'] .anan-dock-pet {
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 0;
}

.anan-platform-pet[data-snap-edge='left'] .anan-platform-dock,
.anan-platform-pet[data-snap-edge='right'] .anan-platform-dock,
.anan-platform-pet[data-snap-edge='top'] .anan-platform-dock,
.anan-platform-pet[data-snap-edge='bottom'] .anan-platform-dock {
  overflow: hidden;
  border-radius: 6px;
}

.anan-platform-pet[data-snap-edge='left'] .anan-dock-pet img,
.anan-platform-pet[data-snap-edge='right'] .anan-dock-pet img {
  bottom: -2px;
  width: 92px;
  animation: none;
}

.anan-platform-pet[data-snap-edge='left'] .anan-dock-pet img {
  left: -12px;
  transform: rotate(-9deg) scale(.94);
  transform-origin: 45% 90%;
}

.anan-platform-pet[data-snap-edge='right'] .anan-dock-pet img {
  right: -12px;
  left: auto;
  transform: rotate(9deg) scale(.94);
  transform-origin: 55% 90%;
}

.anan-platform-pet[data-snap-edge='top'] .anan-dock-pet img {
  top: -24px;
  bottom: auto;
  left: 2px;
  width: 88px;
  animation: none;
  transform: rotate(180deg) scale(.9);
}

.anan-platform-pet[data-snap-edge='bottom'] .anan-dock-pet img {
  bottom: -27px;
  left: 2px;
  width: 88px;
  animation: none;
  transform: rotate(-2deg) scale(.92);
}

.anan-platform-pet[data-snap-edge='left'] .anan-platform-dock::after,
.anan-platform-pet[data-snap-edge='right'] .anan-platform-dock::after,
.anan-platform-pet[data-snap-edge='top'] .anan-platform-dock::after,
.anan-platform-pet[data-snap-edge='bottom'] .anan-platform-dock::after {
  opacity: 0;
}

.anan-platform-pet.is-dragging .anan-platform-dock::after {
  opacity: .5;
  transform: scaleX(.62);
}

.anan-dock-badge[hidden] {
  display: none !important;
}

.anan-dock-badge {
  position: absolute;
  z-index: 2;
  top: 8px;
  right: 7px;
  display: block;
  width: 14px;
  height: 14px;
  background: #d2693c;
  border: 3px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 3px 9px rgba(122, 62, 34, 0.28);
}

@keyframes anan-dock-breathe {
  0%, 100% { transform: translateY(0) rotate(-0.5deg); }
  50% { transform: translateY(-3px) rotate(0.5deg); }
}

.anan-platform-pet button:not(:disabled) {
  cursor: pointer;
}

.anan-platform-pet button:focus-visible,
.anan-platform-pet textarea:focus-visible {
  outline: 3px solid rgba(47, 148, 119, 0.22);
  outline-offset: 2px;
}

.anan-platform-pet[data-state='thinking'] .anan-platform-dock,
.anan-platform-pet[data-state='listening'] .anan-platform-dock {
  filter: drop-shadow(0 0 9px rgba(197, 137, 36, 0.24));
}

.anan-platform-pet[data-state='warning'] .anan-platform-dock,
.anan-platform-pet[data-state='warning'] .anan-platform-panel {
  border-color: rgba(183, 105, 60, 0.48);
}

@media (max-width: 700px) {
  .anan-platform-pet {
    right: 14px;
    bottom: calc(86px + env(safe-area-inset-bottom));
    width: 82px;
    height: 94px;
  }

  .anan-platform-panel,
  .anan-platform-pet.panel-left .anan-platform-panel,
  .anan-platform-pet.panel-below .anan-platform-panel {
    position: fixed;
    top: auto;
    right: 10px;
    bottom: calc(168px + env(safe-area-inset-bottom));
    left: 10px;
    width: auto;
    max-height: calc(100dvh - 190px);
  }

  .anan-platform-dock {
    display: block;
    width: 82px;
    height: 94px;
  }

  .anan-platform-pet.is-open .anan-platform-dock {
    opacity: 0;
    pointer-events: none;
  }

  .anan-drag-button {
    width: 82px;
    min-width: 82px;
    height: 94px;
    min-height: 94px;
    border: 0;
    border-radius: 50%;
  }

  .anan-dock-pet {
    width: 82px;
    height: 94px;
  }

  .anan-dock-pet img {
    left: -3px;
    width: 88px;
  }

  .anan-platform-dock::after { right: 9px; width: 62px; }
  .anan-dock-badge { top: 5px; right: 3px; }

  .anan-platform-header {
    grid-template-columns: 50px minmax(0, 1fr) 32px 32px;
  }

  .anan-reaction-bubble {
    left: 54px;
    width: min(190px, calc(100vw - 154px));
  }

  .anan-companion-delivery {
    grid-template-columns: 28px minmax(0, 1fr) 26px;
  }

  .anan-companion-delivery .anan-delivery-action {
    grid-column: 1 / -1;
  }

  .anan-companion-continuity {
    grid-template-columns: 1fr;
  }

  .anan-continuity-actions button {
    min-width: 0;
  }

  .anan-platform-expert-summary > small {
    white-space: normal;
  }

  .anan-platform-links {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .anan-platform-panel,
  .anan-dock-pet img,
  .anan-platform-pet.is-snapping {
    animation: none;
    transition: none;
  }
}

.anan-lucide {
  display: block;
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.anan-lucide.is-spinning {
  animation: anan-spin 900ms linear infinite;
}

@keyframes anan-spin {
  to { transform: rotate(360deg); }
}

.anan-camera-button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 10px;
  color: #285f74;
  background: #eef7fa;
  border: 1px solid rgba(61, 116, 137, 0.24);
  border-radius: 6px;
  font: inherit;
  font-size: 11px;
  font-weight: 750;
}

.anan-vision-lock {
  overflow: hidden;
}

.anan-vision-backdrop[hidden],
.anan-file-drop-overlay[hidden] {
  display: none !important;
}

.anan-vision-backdrop {
  position: fixed;
  z-index: 1600;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(19, 34, 31, 0.56);
  backdrop-filter: blur(8px);
}

.anan-vision {
  display: flex;
  width: min(720px, calc(100vw - 24px));
  max-height: min(820px, calc(100dvh - 24px));
  flex-direction: column;
  overflow: hidden;
  color: var(--anan-ink);
  background: #f7faf9;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 8px;
  box-shadow: 0 28px 90px rgba(6, 24, 19, 0.34);
}

.anan-vision__header {
  display: grid;
  min-height: 78px;
  grid-template-columns: auto 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #ffffff;
  border-bottom: 1px solid var(--anan-line);
}

.anan-vision__header > img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 6px 8px rgba(23, 76, 61, 0.14));
}

.anan-vision__header > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.anan-vision__header small {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #7a641f;
  font-size: 10px;
  font-weight: 750;
}

.anan-vision__header strong {
  color: var(--anan-green-950);
  font-size: 16px;
  line-height: 1.35;
}

.anan-vision__header em {
  overflow: hidden;
  color: var(--anan-muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.anan-vision__icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  color: #49635b;
  background: #f2f6f4;
  border: 1px solid var(--anan-line);
  border-radius: 6px;
}

.anan-vision__back-spacer {
  display: block;
  width: 34px;
  height: 1px;
}

.anan-vision__close {
  grid-column: 4;
}

.anan-vision__body {
  min-height: 0;
  overflow-y: auto;
  padding: 18px;
}

.anan-vision__intro {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.anan-vision__intro strong {
  color: var(--anan-green-950);
  font-size: 15px;
}

.anan-vision__intro span,
.anan-vision__privacy {
  color: var(--anan-muted);
  font-size: 11px;
  line-height: 1.55;
}

.anan-vision__choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.anan-vision__choices button {
  display: grid;
  min-height: 76px;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 11px;
  color: var(--anan-ink);
  background: #ffffff;
  border: 1px solid rgba(40, 97, 80, 0.18);
  border-radius: 8px;
  text-align: left;
}

.anan-vision__choices button:hover {
  border-color: rgba(32, 119, 94, 0.52);
  box-shadow: 0 7px 18px rgba(25, 74, 61, 0.09);
}

.anan-vision__choices button > i {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #236f5b;
  background: #e4f3ed;
  border-radius: 7px;
}

.anan-vision__choices button:nth-child(2) > i { color: #86651e; background: #fbf1d9; }
.anan-vision__choices button:nth-child(3) > i { color: #386b86; background: #e7f1f7; }
.anan-vision__choices button:nth-child(4) > i { color: #8a5567; background: #f8eaf0; }
.anan-vision__choices button:nth-child(5) > i { color: #5f6285; background: #ececf6; }
.anan-vision__choices button:nth-child(6) > i { color: #52645f; background: #edf1ef; }

.anan-vision__choices button > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.anan-vision__choices strong {
  font-size: 13px;
  line-height: 1.35;
}

.anan-vision__choices small {
  color: var(--anan-muted);
  font-size: 10px;
  line-height: 1.4;
}

.anan-vision__privacy {
  margin: 12px 0 0;
  padding-top: 11px;
  border-top: 1px solid var(--anan-line);
}

.anan-vision__posture {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 12px;
}

.anan-vision__posture span {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #6f7e79;
  background: #eef2f0;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 750;
}

.anan-vision__posture i {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  font-size: 10px;
  font-style: normal;
}

.anan-vision__posture .is-current { color: #275f75; background: #e8f4f8; border-color: rgba(48, 113, 139, 0.28); }
.anan-vision__posture .is-done { color: var(--anan-green-800); background: #e6f4ee; }

.anan-vision__capture-stage {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 330px;
  place-items: center;
  align-content: center;
  gap: 7px;
  overflow: hidden;
  padding: 26px;
  background: #edf3f0;
  border: 1px solid rgba(34, 95, 77, 0.18);
  border-radius: 8px;
  text-align: center;
}

.anan-vision__capture-stage > img {
  width: 112px;
  height: 124px;
  object-fit: contain;
}

.anan-vision__capture-stage > strong {
  color: var(--anan-green-950);
  font-size: 15px;
}

.anan-vision__capture-stage > p {
  max-width: 520px;
  margin: 0;
  color: #587068;
  font-size: 11px;
  line-height: 1.6;
}

.anan-vision__capture-stage.is-live {
  aspect-ratio: 4 / 3;
  min-height: 0;
  padding: 0;
  background: #101816;
}

.anan-vision__video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.anan-vision__camera-guide {
  position: absolute;
  inset: 8%;
  display: grid;
  place-items: center;
  border: 2px dashed rgba(255, 255, 255, 0.74);
  border-radius: 8px;
  pointer-events: none;
}

.anan-vision__camera-guide span {
  align-self: start;
  padding: 5px 9px;
  color: #ffffff;
  background: rgba(9, 28, 23, 0.72);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 750;
}

.anan-vision__notice {
  margin: 10px 0 0;
  padding: 9px 11px;
  color: #285e70;
  background: #edf7fa;
  border: 1px solid rgba(55, 117, 141, 0.2);
  border-radius: 6px;
  font-size: 11px;
  line-height: 1.5;
}

.anan-vision__notice.is-error {
  color: #7b4d17;
  background: #fff7e7;
  border-color: rgba(181, 122, 31, 0.25);
}

.anan-vision__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 13px;
}

.anan-vision__button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 6px;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
}

.anan-vision__button.is-primary {
  color: #ffffff;
  background: var(--anan-green-800);
  border: 1px solid var(--anan-green-800);
  box-shadow: 0 6px 14px rgba(23, 108, 89, 0.17);
}

.anan-vision__button.is-secondary {
  color: #385c52;
  background: #ffffff;
  border: 1px solid rgba(39, 99, 81, 0.23);
}

.anan-vision__button:disabled,
.anan-vision__icon:disabled {
  cursor: wait;
  opacity: 0.55;
}

.anan-vision__file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.anan-vision__review {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 16px;
}

.anan-vision__review > img {
  width: 100%;
  max-height: 360px;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #e7edeb;
  border: 1px solid var(--anan-line);
  border-radius: 8px;
}

.anan-vision__review-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.anan-vision__review-copy strong { color: var(--anan-green-950); font-size: 15px; }
.anan-vision__review-copy span { overflow-wrap: anywhere; color: #3d6f62; font-size: 11px; }
.anan-vision__review-copy p { margin: 5px 0 0; color: var(--anan-muted); font-size: 11px; line-height: 1.6; }

.anan-vision__file-card {
  display: grid;
  min-height: 190px;
  grid-template-columns: 44px minmax(0, 1fr);
  place-content: center;
  align-items: center;
  gap: 11px;
  padding: 20px;
  color: #765b1d;
  background: #fbf5e7;
  border: 1px solid rgba(142, 108, 33, 0.2);
  border-radius: 8px;
}

.anan-vision__file-card > svg { width: 40px; height: 40px; }
.anan-vision__file-card span { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.anan-vision__file-card strong { overflow-wrap: anywhere; color: #4f452b; font-size: 13px; }
.anan-vision__file-card small { color: #7e745b; font-size: 10px; }

.anan-vision__consents {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--anan-line);
}

.anan-vision__consents label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  color: #445d56;
  font-size: 11px;
  line-height: 1.5;
}

.anan-vision__consents input {
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: var(--anan-green-800);
}

.anan-vision__result-heading {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  color: var(--anan-green-800);
  background: #e9f5f0;
  border: 1px solid rgba(32, 119, 94, 0.18);
  border-radius: 8px;
}

.anan-vision__result-heading > i {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #ffffff;
  background: var(--anan-green-800);
  border-radius: 50%;
}

.anan-vision__result-heading > span { display: flex; flex-direction: column; gap: 2px; }
.anan-vision__result-heading strong { color: var(--anan-green-950); font-size: 14px; }
.anan-vision__result-heading small { color: #527168; font-size: 10px; }

.anan-vision__analysis,
.anan-vision__scope {
  margin-top: 12px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--anan-line);
  border-radius: 8px;
}

.anan-vision__analysis header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.anan-vision__analysis header span { color: var(--anan-green-950); font-size: 13px; font-weight: 800; }
.anan-vision__analysis header b { padding: 3px 7px; color: #315e70; background: #e7f1f5; border-radius: 5px; font-size: 9px; }
.anan-vision__summary { margin: 0; color: #304f46; font-size: 12px; font-weight: 650; line-height: 1.65; }
.anan-vision__analysis > div { margin-top: 10px; }
.anan-vision__analysis > div > strong { color: #45665c; font-size: 11px; }
.anan-vision__analysis ul { display: grid; gap: 4px; margin: 5px 0 0; padding-left: 18px; color: #526861; font-size: 11px; line-height: 1.55; }
.anan-vision__analysis > small { display: block; margin-top: 11px; padding-top: 9px; color: #7b6650; border-top: 1px solid #eee5d8; font-size: 9px; line-height: 1.5; }
.anan-vision__scope strong { color: var(--anan-green-950); font-size: 12px; }
.anan-vision__scope p { margin: 5px 0 0; color: var(--anan-muted); font-size: 11px; line-height: 1.6; }

.anan-vision__footer {
  padding: 9px 14px;
  color: #73817c;
  background: #f1f5f3;
  border-top: 1px solid var(--anan-line);
  font-size: 9px;
  line-height: 1.45;
  text-align: center;
}

.anan-prep-backdrop {
  position: fixed;
  z-index: 1650;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(19, 34, 31, 0.56);
  backdrop-filter: blur(8px);
}

.anan-prep {
  display: flex;
  width: min(560px, calc(100vw - 24px));
  max-height: min(760px, calc(100dvh - 24px));
  flex-direction: column;
  overflow-y: auto;
  padding: 18px;
  color: var(--anan-ink);
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 8px;
  box-shadow: 0 28px 90px rgba(6, 24, 19, 0.34);
}

.anan-prep > header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--anan-line);
}

.anan-prep > header small {
  color: var(--anan-green-650);
  font-size: 10px;
  font-weight: 750;
}

.anan-prep > header h2 {
  margin: 2px 0 0;
  color: var(--anan-green-950);
  font-size: 18px;
}

.anan-prep > header button {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  padding: 0;
  color: #5d706a;
  background: #f1f6f4;
  border: 1px solid transparent;
  border-radius: 6px;
  font: inherit;
  font-size: 20px;
}

.anan-prep dl {
  display: grid;
  gap: 0;
  margin: 12px 0;
  border-top: 1px solid var(--anan-line);
}

.anan-prep dl > div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 4px;
  border-bottom: 1px solid var(--anan-line);
}

.anan-prep dt {
  color: #70817b;
  font-size: 11px;
}

.anan-prep dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: #284f43;
  font-size: 12px;
  line-height: 1.55;
}

.anan-prep > section {
  padding: 11px 12px;
  background: #fff9ec;
  border-left: 3px solid #d3a040;
}

.anan-prep > section strong {
  color: #6a5526;
  font-size: 12px;
}

.anan-prep > section ol {
  margin: 7px 0 0;
  padding-left: 20px;
  color: #586b65;
  font-size: 11px;
  line-height: 1.65;
}

.anan-prep > p {
  margin: 10px 0;
  color: #788680;
  font-size: 9px;
  line-height: 1.5;
}

.anan-prep > footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.anan-prep > footer button {
  min-height: 36px;
  padding: 8px 12px;
  color: var(--anan-green-800);
  background: #edf7f2;
  border: 1px solid var(--anan-line);
  border-radius: 6px;
  font: inherit;
  font-size: 11px;
  font-weight: 750;
}

.anan-prep > footer .anan-prep-consult {
  color: #ffffff;
  background: var(--anan-green-800);
  border-color: var(--anan-green-800);
}

.anan-file-drop-overlay {
  position: absolute;
  z-index: 1500;
  right: -4px;
  bottom: -4px;
  display: grid;
  width: min(260px, calc(100vw - 24px));
  min-height: 116px;
  place-items: center;
  align-content: center;
  gap: 3px;
  padding: 12px;
  color: var(--anan-green-950);
  background: rgba(244, 251, 248, 0.97);
  border: 2px dashed rgba(32, 119, 94, 0.54);
  border-radius: 8px;
  box-shadow: 0 20px 48px rgba(16, 62, 49, 0.2);
  text-align: center;
  pointer-events: none;
}

.anan-platform-pet[data-snap-edge='left'] .anan-file-drop-overlay {
  right: auto;
  left: -4px;
}

.anan-file-drop-overlay img { width: 74px; height: 74px; object-fit: contain; }
.anan-file-drop-overlay strong { font-size: 13px; }
.anan-file-drop-overlay span { color: var(--anan-muted); font-size: 10px; }

@media (max-width: 700px) {
  .anan-vision-backdrop { place-items: end center; padding: 0; }

  .anan-prep-backdrop { place-items: end center; padding: 0; }

  .anan-prep {
    width: 100vw;
    max-height: calc(100dvh - 8px);
    padding: 14px;
    border-radius: 8px 8px 0 0;
  }

  .anan-prep dl > div { grid-template-columns: 1fr; gap: 3px; }
  .anan-prep > footer { display: grid; grid-template-columns: 1fr 1fr; }

  .anan-vision {
    width: 100vw;
    max-height: calc(100dvh - 8px);
    border-radius: 8px 8px 0 0;
  }

  .anan-vision__header {
    min-height: 68px;
    grid-template-columns: auto 46px minmax(0, 1fr) auto;
    gap: 7px;
    padding: 8px 10px;
  }

  .anan-vision__header > img { width: 44px; height: 48px; }
  .anan-vision__header strong { font-size: 14px; }
  .anan-vision__header em { max-width: 48vw; }
  .anan-vision__body { padding: 13px; }
  .anan-vision__choices { grid-template-columns: 1fr; gap: 7px; }
  .anan-vision__choices button { min-height: 64px; }
  .anan-vision__capture-stage { min-height: 300px; padding: 20px; }
  .anan-vision__review { grid-template-columns: 1fr; gap: 11px; }
  .anan-vision__review > img { max-height: 300px; }
  .anan-vision__file-card { min-height: 120px; }
  .anan-vision__actions { display: grid; grid-template-columns: 1fr 1fr; }
  .anan-vision__button { min-width: 0; padding-inline: 8px; }
}

@media (max-width: 380px) {
  .anan-vision__header em { display: none; }
  .anan-vision__posture span { gap: 3px; font-size: 10px; }
  .anan-vision__capture-stage { min-height: 260px; }
}

@media (prefers-reduced-motion: reduce) {
  .anan-lucide.is-spinning,
  .anan-platform-pet[data-touch-zone='rapid'] .anan-platform-header__pet img {
    animation: none;
  }
}
