:root {
  --bg: #0b0b0c;
  --bg-elev: #121213;
  --sidebar: #0e0e10;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #ececec;
  --muted: #8b8b90;
  --faint: #5c5c62;
  --hover: rgba(255, 255, 255, 0.06);
  --hover-strong: rgba(255, 255, 255, 0.1);
  --composer: #1a1a1d;
  --chip: #222226;
  --accent: #7dd3fc;
  --blue: #2f80ed;
  --radius: 22px;
  --sidebar-w: 260px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

button,
textarea {
  font-family: inherit;
}

.app {
  display: flex;
  height: 100%;
}

.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  height: 100%;
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 10px 10px 12px;
  transition: width 0.22s ease, transform 0.22s ease;
}

.sidebar.collapsed {
  width: 68px;
}

.sidebar.collapsed .brand-name,
.sidebar.collapsed .nav-item span,
.sidebar.collapsed .block-label,
.sidebar.collapsed .session-list,
.sidebar.collapsed .user-meta {
  display: none;
}

.sidebar.collapsed .nav-item,
.sidebar.collapsed .brand {
  justify-content: center;
  padding-inline: 0;
}

.sidebar.collapsed .user-chip {
  justify-content: center;
  padding: 6px;
}

.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 4px 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: 0;
  color: var(--text);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 10px;
}

.brand:hover {
  background: var(--hover);
}

.spark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
  background: #111;
  flex-shrink: 0;
}

.spark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-name {
  font-weight: 600;
  letter-spacing: -0.03em;
  font-size: 15px;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 9px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.icon-btn:hover {
  background: var(--hover);
  color: var(--text);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  background: transparent;
  color: #c8c8cc;
  font-size: 13.5px;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
}

.nav-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #b8b8bc;
}

.nav-item:hover {
  background: var(--hover);
  color: #fff;
}

.sidebar-block {
  margin-top: 18px;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.block-label {
  font-size: 12px;
  color: var(--faint);
  font-weight: 500;
  padding: 0 10px 8px;
  display: flex;
  justify-content: space-between;
}

.session-list {
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 8px;
}

.session-list::-webkit-scrollbar {
  width: 8px;
}

.session-list::-webkit-scrollbar-thumb {
  background: #2a2a2e;
  border-radius: 8px;
}

.empty-sessions {
  color: var(--faint);
  font-size: 13px;
  padding: 6px 10px;
}

.session {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 0;
  background: transparent;
  color: #b7b7bc;
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
}

.session span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.session:hover,
.session.active {
  background: var(--hover);
  color: #fff;
}

.session .del {
  opacity: 0;
  width: 22px;
  height: 22px;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
}

.session:hover .del {
  opacity: 1;
}

.session .del:hover {
  background: var(--hover-strong);
  color: #fff;
}

.sidebar-foot {
  padding-top: 8px;
  border-top: 1px solid var(--line);
  position: relative;
}

.user-wrap {
  position: relative;
}

.user-menu {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 52px;
  background: #1c1c1e;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px;
  z-index: 8;
}

.user-menu button {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
}

.user-menu button:hover {
  background: var(--hover);
}

.user-chip {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 0;
  color: inherit;
  padding: 8px;
  border-radius: 12px;
  cursor: pointer;
}

.user-chip:hover {
  background: var(--hover);
}

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #111 url("/avatar.jpg") center / cover no-repeat;
  color: #0b0b0c;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
  flex-shrink: 0;
}

.user-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.user-name {
  font-size: 13px;
  font-weight: 600;
}

.user-plan {
  font-size: 11px;
  color: var(--muted);
}

.scrim {
  display: none;
}

.main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  background:
    radial-gradient(900px 420px at 50% 18%, rgba(125, 211, 252, 0.06), transparent 60%),
    var(--bg);
}

.topbar {
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 10px;
  flex-shrink: 0;
}

.model-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  padding: 6px 10px 6px 6px;
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: -0.02em;
}

.model-trigger:hover {
  background: var(--hover);
}

.model-trigger-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}

.model-trigger-icon svg,
.model-trigger-icon img {
  width: 22px;
  height: 22px;
}

.model-chevron {
  width: 16px;
  height: 16px;
  color: var(--muted);
}

.stage {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.main.is-home .stage {
  justify-content: center;
  padding-bottom: 6vh;
}

.main.is-home .thread {
  display: none;
}

.main:not(.is-home) .home {
  display: none;
}

.main:not(.is-home) .thread {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.main:not(.is-home) .thread::-webkit-scrollbar {
  width: 10px;
}

.main:not(.is-home) .thread::-webkit-scrollbar-thumb {
  background: #2a2a2e;
  border-radius: 10px;
}

.home {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.thread.hidden {
  display: none;
}

.hello {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.hello-grad {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 600;
  letter-spacing: -0.05em;
  background: linear-gradient(90deg, #a5f3fc 0%, #e0e7ff 40%, #c4b5fd 70%, #fff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hello-rest {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 500;
  color: #d4d4d8;
  letter-spacing: -0.04em;
}

.thread {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 8px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.msg {
  display: flex;
  gap: 12px;
  animation: rise 0.28s ease;
}

.msg.user {
  justify-content: flex-end;
}

.msg.user .bubble {
  background: #232328;
  border: 1px solid var(--line);
  max-width: 78%;
  padding: 12px 16px;
  border-radius: 18px 18px 6px 18px;
  font-size: 15px;
  line-height: 1.55;
}

.msg.assistant .avatar-bot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #111 url("/avatar.jpg") center / cover no-repeat;
  border: 0;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
  overflow: hidden;
}

.msg.assistant .avatar-bot svg,
.msg.assistant .avatar-bot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prose {
  flex: 1;
  min-width: 0;
  font-size: 15.5px;
  line-height: 1.7;
  color: #e7e7ea;
}

.prose p + p {
  margin-top: 12px;
}

.prose strong {
  font-weight: 600;
  color: #fff;
}

.prose ul {
  margin: 10px 0 0 18px;
}

.prose li + li {
  margin-top: 4px;
}

.actions {
  display: flex;
  gap: 4px;
  margin-top: 10px;
}

.actions button {
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.actions button:hover {
  background: var(--hover);
  color: var(--text);
}

.actions svg {
  width: 15px;
  height: 15px;
}

.caret {
  display: inline-block;
  width: 7px;
  height: 0.9em;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: -0.1em;
  border-radius: 1px;
  animation: blink 0.9s step-end infinite;
}

.dock {
  padding: 0 16px 14px;
  width: min(792px, 100%);
  margin: 0 auto;
  flex-shrink: 0;
}

.composer {
  background: var(--composer);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 14px 14px 10px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.02),
    0 18px 50px rgba(0, 0, 0, 0.35);
}

.composer:focus-within {
  border-color: rgba(125, 211, 252, 0.28);
  box-shadow:
    0 0 0 1px rgba(125, 211, 252, 0.12),
    0 18px 50px rgba(0, 0, 0, 0.35);
}

.composer textarea {
  width: 100%;
  resize: none;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  max-height: 180px;
  overflow-y: auto;
}

.composer textarea::placeholder {
  color: #6f6f76;
}

.composer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.bar-left,
.bar-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tool-btn {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #c5c5ca;
  border-radius: 999px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.tool-btn:hover {
  background: var(--hover-strong);
}

.tool-btn svg {
  width: 18px;
  height: 18px;
}

.tool-chip {
  height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px 0 8px;
  border: 0;
  background: #2a2a2e;
  color: #ececec;
  font-size: 13px;
  font-weight: 500;
  border-radius: 999px;
  cursor: pointer;
}

.tool-chip svg {
  width: 15px;
  height: 15px;
}

.tool-chip .chev {
  width: 14px;
  height: 14px;
  color: var(--muted);
}

.tool-chip.active {
  background: #2f2f34;
}

.send-btn {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f4f4f5;
  color: #111;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.12s ease, opacity 0.12s ease;
}

.send-btn:disabled {
  opacity: 0.38;
  cursor: default;
}

.send-btn:not(:disabled):hover {
  transform: scale(1.04);
}

.send-btn svg {
  width: 18px;
  height: 18px;
}

.send-btn .icon-arrow {
  display: none;
}

.send-btn.ready .icon-wave {
  display: none;
}

.send-btn.ready .icon-arrow {
  display: block;
}

.hint {
  text-align: center;
  color: var(--faint);
  font-size: 12px;
  margin-top: 10px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  background: #f4f4f5;
  color: #111;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 12px;
  z-index: 50;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.auth-layer {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.62);
  display: grid;
  place-items: center;
  padding: 20px;
}

.auth-layer[hidden] {
  display: none;
}

.auth-card {
  width: min(400px, 100%);
  background: #161618;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  padding: 28px 24px 22px;
  position: relative;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.auth-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
  cursor: pointer;
  border-radius: 8px;
}

.auth-close:hover {
  background: var(--hover);
  color: #fff;
}

.auth-mark {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  border-radius: 50%;
  overflow: hidden;
  background: #111;
}

.auth-mark img,
.auth-mark svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-card h2 {
  text-align: center;
  font-size: 24px;
  letter-spacing: -0.04em;
  font-weight: 600;
}

.auth-lead {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin: 6px 0 20px;
}

.auth-step {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-step[hidden],
.auth-card form[hidden] {
  display: none;
}

.auth-yandex {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 46px;
  border-radius: 12px;
  background: #fff;
  color: #111;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.auth-yandex:hover {
  filter: brightness(0.94);
}

.ya-logo {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.ya-logo svg {
  width: 24px;
  height: 24px;
  display: block;
}

.auth-email-btn {
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: #1c1c1f;
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

.auth-email-btn:hover {
  background: var(--hover-strong);
}

.auth-back {
  align-self: flex-start;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  padding: 0 0 2px;
}

.auth-back:hover {
  color: #fff;
}

.auth-card form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-card input {
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: #0f0f11;
  color: var(--text);
  padding: 0 14px;
  font-size: 15px;
  outline: none;
}

.auth-card input:focus {
  border-color: rgba(125, 211, 252, 0.35);
}

.otp {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 4px 0 6px;
}

.otp.is-shake {
  animation: otp-shake 0.42s ease;
}

.auth-card .otp-cell {
  flex: 1;
  min-width: 0;
  max-width: 48px;
  height: 52px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: #0f0f11;
  color: #fff;
  font-size: 22px;
  font-weight: 600;
  text-align: center;
  caret-color: #2ea6ff;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.auth-card .otp-cell:focus {
  border-color: #2ea6ff;
  box-shadow: 0 0 0 3px rgba(46, 166, 255, 0.22);
}

.auth-card .otp-cell.is-pop {
  animation: otp-pop 0.2s ease-out;
}

.otp.is-wait .otp-cell {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.16);
}

.otp.is-error .otp-cell,
.otp.is-error .otp-cell:focus {
  border-color: #f87171;
  background: rgba(248, 113, 113, 0.12);
  color: #fca5a5;
  caret-color: #f87171;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.2);
}

.otp.is-ok .otp-cell,
.otp.is-ok .otp-cell:focus {
  border-color: #4ade80;
  background: rgba(74, 222, 128, 0.12);
  color: #86efac;
  caret-color: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.2);
}

@keyframes otp-pop {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes otp-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-8px);
  }
  40% {
    transform: translateX(8px);
  }
  60% {
    transform: translateX(-5px);
  }
  80% {
    transform: translateX(4px);
  }
}

.auth-resend {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  padding: 4px 0 0;
}

.auth-resend:hover {
  color: #fff;
}

.auth-submit {
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: #f4f4f5;
  color: #111;
  font-weight: 600;
  cursor: pointer;
}

.auth-submit:hover {
  filter: brightness(0.95);
}

.auth-note {
  min-height: 18px;
  margin-top: 12px;
  font-size: 13px;
  color: #93c5fd;
  text-align: center;
  transition: color 0.18s ease;
}

.auth-note.is-error {
  color: #f87171;
}

.auth-note.is-ok {
  color: #4ade80;
}

.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;
}

.picker {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
}

.picker.open {
  pointer-events: auto;
}

.picker-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.picker.open .picker-backdrop {
  opacity: 1;
}

.picker-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 72vh;
  background: #1c1c1e;
  border-radius: 22px 22px 0 0;
  display: flex;
  flex-direction: column;
  transform: translate3d(0, 110%, 0);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
  padding-bottom: env(safe-area-inset-bottom);
  will-change: transform;
}

.picker.open .picker-sheet {
  transform: translate3d(0, 0, 0);
}

.picker-handle {
  width: 42px;
  height: 5px;
  border-radius: 99px;
  background: #5a5a60;
  margin: 10px auto 6px;
  flex-shrink: 0;
  touch-action: none;
  cursor: grab;
}

.picker-search {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 16px 12px;
  padding: 11px 14px;
  background: #2a2a2e;
  border-radius: 14px;
  color: #8e8e93;
}

.picker-search svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.picker-search input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 15px;
}

.picker-search input::placeholder {
  color: #8e8e93;
}

.picker-scroll {
  overflow: auto;
  padding: 0 8px 8px;
  flex: 1;
  min-height: 0;
}

.picker-scroll::-webkit-scrollbar {
  width: 8px;
}

.picker-scroll::-webkit-scrollbar-thumb {
  background: #3a3a40;
  border-radius: 8px;
}

.picker-label {
  font-size: 13px;
  color: #8e8e93;
  font-weight: 500;
  padding: 10px 12px 6px;
}

.model-row {
  width: 100%;
  display: grid;
  grid-template-columns: 40px 1fr auto 22px;
  align-items: center;
  gap: 12px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  padding: 10px 12px;
  border-radius: 14px;
  cursor: pointer;
}

.model-row:hover {
  background: rgba(255, 255, 255, 0.05);
}

.model-ico {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}

.model-ico svg {
  width: 40px;
  height: 40px;
}

.model-copy {
  min-width: 0;
}

.model-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.model-desc {
  margin-top: 2px;
  font-size: 12.5px;
  color: #8e8e93;
  line-height: 1.35;
}

.model-cost {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #5eb0ff;
  font-size: 13px;
  font-weight: 600;
  align-self: start;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

.model-cost svg,
.crystal {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #636366;
  display: grid;
  place-items: center;
}

.radio span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: transparent;
}

.model-row.selected .radio {
  border-color: var(--blue);
}

.model-row.selected .radio span {
  background: var(--blue);
}

.picker-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 16px 16px 18px;
  cursor: pointer;
}

.picker-all:hover {
  color: #dbeafe;
}

.picker-empty {
  color: #8e8e93;
  font-size: 14px;
  padding: 24px 16px;
  text-align: center;
}

.mobile-only {
  display: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@media (min-width: 861px) {
  .picker {
    position: relative;
    inset: auto;
    z-index: 4;
    width: 0;
    height: 100%;
    flex-shrink: 0;
    overflow: hidden;
    pointer-events: none;
    transition: width 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .picker.open {
    width: min(380px, 36vw);
    pointer-events: auto;
  }

  .picker-backdrop {
    display: none;
  }

  .picker-handle {
    display: none;
  }

  .picker-sheet {
    position: absolute;
    inset: 0;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    width: min(380px, 36vw);
    max-height: none;
    border-radius: 0;
    transform: none;
    box-shadow: none;
    border-right: 1px solid var(--line);
    background: var(--sidebar);
    transition: none;
    will-change: auto;
  }

  .picker.open .picker-sheet {
    transform: none;
  }

  .picker-search {
    margin-top: 16px;
  }
}

.picker-sheet.no-anim {
  transition: none;
}

@media (max-width: 860px) {
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 30;
    transform: translateX(-105%);
    width: min(280px, 86vw);
    box-shadow: 16px 0 40px rgba(0, 0, 0, 0.4);
  }

  .sidebar.open {
    transform: none;
  }

  .scrim {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 20;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  .scrim.show {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-only {
    display: grid;
  }

  .hello-grad {
    font-size: 34px;
  }
}
