/* Phone control — stand-alone mobile web app.
   Mobile-first, light/dark via prefers-color-scheme, safe-area aware. */

/* ---------------------------------------------------------------- tokens */
:root {
  color-scheme: light dark;

  --bg: #f4f4f1;
  --surface: #ffffff;
  --surface-2: #fbfbf9;
  --surface-3: #f0f0ec;
  --border: #e2e2dc;
  --border-strong: #cfcfc7;
  --text: #1b1c1e;
  --muted: #6d7178;

  --accent: #3355dd;
  --accent-strong: #2f4fd8;
  --accent-soft: #e9edff;
  --on-accent: #ffffff;

  --ok: #1e8a4f;
  --warn: #b26a00;
  --warn-bg: #fff4dd;
  --warn-text: #7a4b00;
  --danger: #c4342f;
  --danger-soft: #fdeceb;
  --danger-border: #f3c9c7;
  --code-bg: #f1f1ec;

  --toast-bg: #25262a;
  --toast-text: #f7f7f5;
  --toast-error-bg: #b52f2a;
  --toast-error-text: #ffffff;

  --bubble-shadow: 0 1px 2px rgba(20, 22, 26, 0.05);
  --shadow-sheet: 0 -12px 40px rgba(15, 17, 20, 0.18);

  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131417;
    --surface: #1b1c20;
    --surface-2: #202126;
    --surface-3: #232429;
    --border: #2c2e34;
    --border-strong: #3a3d45;
    --text: #ececeb;
    --muted: #9a9fa9;

    --accent: #8ea2ff;
    --accent-strong: #445ee6;
    --accent-soft: #232a4d;
    --on-accent: #ffffff;

    --ok: #5fd08b;
    --warn: #e5b567;
    --warn-bg: #3a2f18;
    --warn-text: #f0d3a1;
    --danger: #ff8078;
    --danger-soft: #3a211f;
    --danger-border: #5a2f2c;
    --code-bg: #111216;

    --toast-bg: #f3f3f1;
    --toast-text: #17181b;
    --toast-error-bg: #ff928b;
    --toast-error-text: #2a0f0d;

    --bubble-shadow: none;
    --shadow-sheet: 0 -12px 40px rgba(0, 0, 0, 0.5);
  }
}

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

[hidden] {
  display: none !important;
}

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
textarea {
  font-family: inherit;
}

button {
  touch-action: manipulation;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

.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;
}

.noscript {
  margin: 0;
  padding: 24px;
  text-align: center;
  color: var(--muted);
}

/* ------------------------------------------------------------------ shell */
.app {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--bg);
}

@media (min-width: 720px) {
  .app {
    max-width: 620px;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
  }
}

/* ----------------------------------------------------------------- header */
.topbar {
  z-index: 5;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: calc(8px + env(safe-area-inset-top));
  padding-right: max(12px, env(safe-area-inset-right));
  padding-bottom: 8px;
  padding-left: max(12px, env(safe-area-inset-left));
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.topbar-main {
  flex: 1 1 auto;
  min-width: 0;
}

.topbar-title-row {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.topbar-title {
  flex: 0 1 auto;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.topbar-sub {
  margin: 1px 0 0;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.3;
  color: var(--muted);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.state-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-strong);
}

.state-dot--running {
  background: var(--ok);
  animation: dot-pulse 1.6s ease-in-out infinite;
}

.state-dot--idle {
  background: var(--border-strong);
}

.state-dot--offline {
  background: var(--danger);
}

.mock-pill {
  flex: 0 0 auto;
  padding: 3px 6px;
  font-size: 10.5px;
  line-height: 1;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
}

.icon-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
}

.icon-btn:active {
  background: var(--surface-3);
}

.icon-btn:disabled {
  cursor: default;
  opacity: 0.4;
}

.icon-btn svg {
  display: block;
}

.icon-btn--sm {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.icon-btn.is-spinning svg {
  animation: spin 0.8s linear infinite;
}

/* ----------------------------------------------------------------- banner */
.banner {
  z-index: 4;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 12px;
  font-size: 12.5px;
  color: var(--warn-text);
  background: var(--warn-bg);
  border-bottom: 1px solid var(--border);
}

/* --------------------------------------------------------------- transcript */
.chat {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}

.transcript {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  padding-top: 14px;
  padding-right: max(12px, env(safe-area-inset-right));
  padding-bottom: 20px;
  padding-left: max(12px, env(safe-area-inset-left));
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

@media (min-width: 720px) {
  .transcript {
    gap: 12px;
    padding-right: 20px;
    padding-left: 20px;
  }
}

.row {
  display: flex;
  flex: 0 0 auto;
  width: 100%;
}

.row-user {
  justify-content: flex-end;
}

.row-assistant {
  justify-content: flex-start;
}

.bubble-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  max-width: 86%;
}

.bubble-wrap .bubble {
  max-width: 100%;
}

.bubble {
  max-width: 86%;
  padding: 9px 12px;
  font-size: 15px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  border-radius: 18px;
  box-shadow: var(--bubble-shadow);
}

@media (min-width: 720px) {
  .bubble,
  .bubble-wrap {
    max-width: 78%;
  }
}

.bubble-user {
  color: var(--on-accent);
  background: var(--accent-strong);
  border-bottom-right-radius: 6px;
}

.bubble-assistant {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom-left-radius: 6px;
}

.bubble.is-sending {
  opacity: 0.7;
}

.bubble-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.bubble-meta {
  padding-right: 4px;
  font-size: 11px;
  line-height: 1.2;
  color: var(--muted);
}

.bubble.is-streaming > .bubble-text:last-child::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -0.12em;
  background: currentColor;
  opacity: 0.55;
  animation: caret-blink 1s steps(2, start) infinite;
}

/* code-ish content gets its own horizontal scroller */
.code-block {
  max-width: 100%;
  margin: 7px 0 2px;
  padding: 8px 10px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.5;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  -webkit-overflow-scrolling: touch;
}

.code-block code {
  font: inherit;
  white-space: pre;
}

.code-line {
  max-width: 100%;
  margin: 4px 0;
  padding: 6px 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.5;
  white-space: pre;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  -webkit-overflow-scrolling: touch;
}

.row-user .code-block,
.row-user .code-line {
  color: #f4f5ff;
  background: rgba(0, 0, 0, 0.18);
  border-color: rgba(255, 255, 255, 0.18);
}

/* ------------------------------------------------------------------- tool */
.row-tool {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding-left: 2px;
}

.tool {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  max-width: min(100%, 460px);
  min-height: 44px;
  padding: 8px 11px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--bubble-shadow);
}

.tool:active {
  background: var(--surface-3);
}

.tool[aria-expanded="true"] {
  border-color: var(--accent);
}

.tool-head {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.tool-name {
  max-width: 50%;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.tool-dot {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
}

.tool-dot--running {
  background: var(--warn);
  animation: dot-pulse 1.2s ease-in-out infinite;
}

.tool-dot--done {
  background: var(--ok);
}

.tool-dot--failed {
  background: var(--danger);
}

.tool-status {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.tool-summary {
  display: block;
  width: 100%;
  overflow: hidden;
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.tool-detail {
  width: 100%;
  max-width: min(100%, 460px);
  padding: 0 6px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* ----------------------------------------------------------- notice/error */
.row-notice,
.row-error {
  justify-content: center;
}

.notice {
  max-width: 90%;
  padding: 4px 12px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  background: var(--surface-3);
  border-radius: 999px;
}

.notice--error {
  color: var(--danger);
  background: var(--danger-soft);
}

/* ------------------------------------------------------------- empty state */
.empty {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  max-width: 320px;
  margin: auto;
  padding: 24px 8px;
  text-align: center;
}

.empty-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.empty-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.empty-action {
  margin-top: 10px;
}

.empty .spinner {
  width: 18px;
  height: 18px;
}

/* --------------------------------------------------------------- jump pill */
.jump {
  position: absolute;
  bottom: 14px;
  left: 50%;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(15, 17, 20, 0.16);
  transform: translateX(-50%);
  animation: jump-in 0.18s ease-out;
}

/* --------------------------------------------------------------- composer */
.composer {
  position: relative;
  z-index: 7;
  flex: 0 0 auto;
  padding-top: 8px;
  padding-right: max(10px, env(safe-area-inset-right));
  padding-bottom: calc(8px + env(safe-area-inset-bottom));
  padding-left: max(10px, env(safe-area-inset-left));
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.running-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 18px;
  padding: 2px 6px 8px;
  font-size: 12px;
  color: var(--muted);
}

.input-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.attach-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 2px 2px 8px;
}

.attach-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 4px 6px 4px 8px;
  font-size: 12px;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.attach-chip img {
  width: 22px;
  height: 22px;
  object-fit: cover;
  border-radius: 5px;
}

.attach-chip-video {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 6px;
  background: #000000;
}

.attach-chip-size {
  font-size: 10.5px;
  color: var(--muted);
}

.attach-chip-name {
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attach-chip-x {
  padding: 0 2px;
  font-size: 15px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  background: transparent;
  border: none;
}

.attach-btn {
  flex: 0 0 auto;
  margin-bottom: 4px;
}

.input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  max-height: 142px;
  padding: 10px 12px;
  overflow-y: auto;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  resize: none;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  outline: none;
  overscroll-behavior: contain;
}

.input::placeholder {
  color: var(--muted);
  opacity: 0.8;
}

.input:focus {
  border-color: var(--accent);
}

.input:disabled {
  opacity: 0.55;
}

.btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 44px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 14px;
  user-select: none;
}

.btn-primary {
  color: var(--on-accent);
  background: var(--accent-strong);
}

.btn-primary:disabled {
  cursor: default;
  opacity: 0.38;
}

.btn-stop {
  color: var(--danger);
  background: var(--danger-soft);
  border-color: var(--danger-border);
}

.btn-stop:disabled {
  cursor: default;
  opacity: 0.5;
}

/* ---------------------------------------------------------------- spinner */
.spinner {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* -------------------------------------------------------------- bottom sheet */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(12, 13, 16, 0.46);
  animation: scrim-in 0.18s ease-out;
}

.sheet {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  max-height: min(76dvh, 620px);
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--surface);
  border-radius: 20px 20px 0 0;
  box-shadow: var(--shadow-sheet);
  animation: sheet-in 0.22s ease-out;
}

@media (min-width: 720px) {
  .sheet {
    right: 0;
    left: 0;
    max-width: 620px;
    margin: 0 auto;
  }
}

.sheet-handle {
  flex: 0 0 auto;
  width: 36px;
  height: 4px;
  margin: 8px auto 0;
  background: var(--border-strong);
  border-radius: 999px;
}

.sheet-head {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 16px;
}

.sheet-title {
  flex: 1 1 auto;
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.sheet-tools {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
}

.sheet-body {
  padding: 2px 8px 12px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.sheet-new {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
  margin: 2px 0 10px;
  padding: 11px 12px;
  font: inherit;
  font-size: 14px;
  color: var(--accent);
  cursor: pointer;
  background: var(--accent-soft);
  border: 1px dashed var(--accent);
  border-radius: 12px;
}

.sheet-new-plus {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  font-size: 16px;
  line-height: 1;
  color: var(--on-accent);
  background: var(--accent);
  border-radius: 999px;
}

.sheet-note {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 26px 16px 30px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  text-align: center;
}

.sheet-note-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.sheet-note-text {
  margin: 0;
}

.session-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 8px 12px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 12px;
}

.session-item + .session-item {
  margin-top: 2px;
}

.session-item.is-current {
  background: var(--accent-soft);
}

.session-item:active {
  background: var(--surface-3);
}

.session-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.session-dot--idle {
  background: var(--border-strong);
}

.session-dot--running {
  background: var(--ok);
  animation: dot-pulse 1.6s ease-in-out infinite;
}

.session-main {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.session-title {
  overflow: hidden;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.session-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 12px;
  color: var(--muted);
}

.session-time {
  white-space: nowrap;
}

.session-wait {
  overflow: hidden;
  color: var(--warn);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.session-check {
  flex: 0 0 auto;
  font-size: 15px;
  line-height: 1;
  color: var(--accent);
}

/* -------------------------------------------------------------------- login */
.login {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: max(20px, env(safe-area-inset-top));
  padding-right: 20px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom));
  padding-left: 20px;
  overflow-y: auto;
  background: var(--bg);
}

.login-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 360px;
  padding: 26px 20px 22px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(15, 17, 20, 0.12);
}

.login-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 4px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 16px;
}

.login-title {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

.login-text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  font-size: 12.5px;
  color: var(--muted);
  text-align: left;
}

.login-input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  font-family: var(--font-ui);
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.login-input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: transparent;
}

.login-error {
  width: 100%;
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--danger);
  text-align: left;
}

.login-submit {
  width: 100%;
  height: 44px;
  margin-top: 4px;
}

.login-hint {
  margin: 2px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

/* ------------------------------------------------------------------- toast */
.toast {
  position: fixed;
  bottom: calc(88px + env(safe-area-inset-bottom));
  left: 50%;
  z-index: 80;
  max-width: min(92vw, 420px);
  padding: 9px 14px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--toast-text);
  text-align: center;
  pointer-events: none;
  background: var(--toast-bg);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(10, 12, 16, 0.28);
  transform: translateX(-50%);
  animation: toast-in 0.18s ease-out;
}

.toast.is-error {
  color: var(--toast-error-text);
  background: var(--toast-error-bg);
}

/* ------------------------------------------------------------ interactions */
@media (hover: hover) {
  .icon-btn:hover:not(:disabled) {
    background: var(--surface-3);
  }

  .btn-primary:hover:not(:disabled) {
    filter: brightness(1.06);
  }

  .tool:hover {
    border-color: var(--border-strong);
  }

  .session-item:hover {
    background: var(--surface-3);
  }
}

/* -------------------------------------------------------------- animations */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes dot-pulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(30, 138, 79, 0.35);
  }
  50% {
    opacity: 0.65;
    box-shadow: 0 0 0 3px rgba(30, 138, 79, 0);
  }
}

@keyframes caret-blink {
  to {
    visibility: hidden;
  }
}

@keyframes sheet-in {
  from {
    opacity: 0.6;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrim-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translate(-50%, 8px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes jump-in {
  from {
    opacity: 0;
    transform: translate(-50%, 6px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

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

  .spinner {
    animation: none;
  }
}
