@charset "UTF-8";

/* =========================
   Common
========================= */

:root {
  --app-max-width: 1000px;
  --page-bg: #eeeeee;
  --text-color: #151515;

  --mint: #bfebd4;
  --mint-deep: #8cc6af;
  --mint-deep2: #22a16e;
  --mint-deep3: #abdcc8;
  --mint-light: #e9faf1;
  --mint-shadow: rgba(62, 95, 83, 0.34);
  --gray: #e6e6e6;

  --orange-deep: #fce08e;
  --orange-deep2: #f2b500;
  --orange-light: #f3edda;

  --blue-deep: #87aad2;
  --blue-deep2: #4f88ca;
  --blue-light: #d8e5f4;

  --purple-deep: #b09ed4;
  --purple-deep2: #8b6bc9;
  --purple-light: #ded2f5;

  --health-deep: #ffca80;
  --health-deep2: #ff9500;
  --health-light: #fff3e0;

  --alert: #e5323b;

  --pink: #FF007D;
  --green: #4cc586;
  --green-deep: #0ca354;


  --panel-white: rgba(255, 255, 255, 0.8);
  --panel-mint: rgba(191, 235, 212, 0.8);
  --border-mint: rgba(191, 235, 212, 1);

  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

html {
  background: var(--page-bg);
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  color: var(--text-color);
  background: var(--page-bg);
  font-family:
    "Kiwi Maru",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible {
  outline: 3px solid rgba(44, 124, 96, 0.36);
  outline-offset: 2px;
}

img {
  display: block;
  max-width: 100%;
}

p {
  margin: 0;
}

.app {
  width: 100%;
  min-height: 100svh;
}

.round-icon {
  display: grid;
  position: absolute;
  top: 5px;
  right: 0;
  place-items: center;
  width: 32px;
  height: 32px;

}

.round-icon img {
  width: 50%;
}

.btn {
  padding: 0;
  border-radius: 50%;
  background: var(--mint);
  -webkit-box-shadow: 4px 4px 5px 0px rgba(0, 0, 0, 0.15), inset 2px 2px 2px 0px rgba(255, 255, 255, 0.6), inset -2px -2px 2px 0px rgba(0, 0, 0, 0.3);
  box-shadow: 4px 4px 5px 0px rgba(0, 0, 0, 0.15), inset 2px 2px 2px 0px rgba(255, 255, 255, 0.6), inset -2px -2px 2px 0px rgba(0, 0, 0, 0.3);
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  min-height: 100svh;
  min-width: 100svw;
  background: var(--panel-white);
  backdrop-filter: blur(5px);
  z-index: 90;
  display: none;
}

.modal-inner {
  padding: calc(12px + var(--safe-top)) 28px calc(12px + var(--safe-bottom));
  position: absolute;
  top: 0;
  left: 0;
  min-height: 100svh;
  min-width: 100svw;
}

.mt {
  margin-top: 24px;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: none;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: var(--mint);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--mint-deep3);
}

@media (min-width: 1000px) {
  body {
    padding: 24px 0;
  }

  .app {
    width: min(100%, var(--app-max-width));
    min-height: auto;
    height: calc(100svh - 48px);
    margin: 0 auto;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 14px 42px rgba(0, 0, 0, 0.12);
  }

  .conversation-stage {
    min-height: calc(100svh - 168px - var(--safe-top) - var(--safe-bottom));
  }
}

/* =========================
   Screen switching
========================= */
.app-screen {
  display: none;
}

.app-screen.is-active {
  display: block;
}