:root {
  color-scheme: light;
  --bg: #f7f7f5;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: #ffffff;
  --text: #171923;
  --muted: #6d7280;
  --quiet: #8f949e;
  --line: rgba(18, 21, 34, 0.075);
  --shadow: 0 12px 30px rgba(32, 38, 54, 0.07);
  --green: #eaf6e6;
  --violet: #f0edff;
  --blue: #edf4ff;
  --ink: #050507;
  --text-size: 15px;
  --text-leading: 1.45;
  --top-nav-height: max(86px, calc(72px + env(safe-area-inset-top)));
  --side-safe-left: max(0px, env(safe-area-inset-left));
  --side-safe-right: max(0px, env(safe-area-inset-right));
  --bottom-safe: env(safe-area-inset-bottom);
  --vv-top: 0px;
  --composer-bottom: max(10px, calc(10px + var(--bottom-safe)));
  --composer-space: calc(82px + var(--bottom-safe));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  width: 100%;
  height: 100%;
  min-height: 100%;
  background: var(--bg);
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-text-size-adjust: 100%;
}

body {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(242, 244, 248, 0.78)),
    var(--bg);
  color: var(--text);
  font-size: var(--text-size);
  line-height: var(--text-leading);
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: pan-y;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
}

[hidden] {
  display: none !important;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.atlas-icon {
  display: block;
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.app {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding-top: var(--top-nav-height);
  overflow: hidden;
  isolation: isolate;
}

.top-nav {
  position: fixed;
  inset:
    var(--vv-top)
    0
    auto
    0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--top-nav-height);
  padding:
    max(14px, env(safe-area-inset-top))
    max(18px, calc(18px + env(safe-area-inset-right)))
    12px
    max(18px, calc(18px + env(safe-area-inset-left)));
  background: rgba(247, 247, 245, 0.58);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.icon-button,
.pill-button,
.back-button {
  min-height: 44px;
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 6px 18px rgba(28, 34, 46, 0.04);
  transition:
    background-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease,
    opacity 150ms ease;
}

.icon-button {
  width: 48px;
  display: grid;
  place-items: center;
}

.icon-button .atlas-icon {
  width: 24px;
  height: 24px;
  flex-basis: 24px;
}

.quick-nav {
  display: flex;
  gap: 8px;
}

.pill-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  font-size: var(--text-size);
  font-weight: 500;
  line-height: var(--text-leading);
}

.pill-button.capture {
  background: rgba(255, 255, 255, 0.64);
}

.pill-button.events {
  background: rgba(255, 255, 255, 0.64);
}

.main-shell {
  width: min(760px, 100%);
  height: 100%;
  min-height: 0;
  flex: 1 1 auto;
  margin: 0 auto;
  overflow: hidden;
}

.view {
  display: none;
  height: 100%;
  min-height: 0;
  padding:
    20px
    max(20px, calc(20px + env(safe-area-inset-right)))
    calc(22px + var(--bottom-safe))
    max(20px, calc(20px + env(safe-area-inset-left)));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  scroll-padding-bottom: calc(96px + var(--bottom-safe));
}

.view.active {
  display: flex;
  flex-direction: column;
  animation: view-enter 210ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.chat-view {
  position: relative;
  height: 100%;
  min-height: 0;
  padding-bottom: 0;
  justify-content: stretch;
  gap: 12px;
  overflow: hidden;
}

.atlas-orb,
.brand-mark,
.avatar {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
}

.screen-heading h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 430;
  line-height: 1.18;
  letter-spacing: 0;
}

.screen-heading p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-size);
  line-height: var(--text-leading);
}

.messages {
  order: 1;
  display: grid;
  gap: 10px;
  flex: 1 1 auto;
  align-content: end;
  min-height: 0;
  overflow-y: auto;
  padding: 2px 2px var(--composer-space);
  scroll-padding-bottom: calc(104px + var(--bottom-safe));
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}

.quick-starts {
  order: 2;
  display: grid;
  flex: 0 0 auto;
  gap: 16px;
  margin: 0 0 var(--composer-space);
  padding: 0 34px 2px;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.chat-view.empty-chat .messages {
  pointer-events: none;
}

.quick-starts button {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 34px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  box-shadow: none;
}

.quick-starts button > span:last-child {
  font-size: 17px;
  font-weight: 400;
  line-height: var(--text-leading);
  letter-spacing: 0;
}

.suggestion-icon {
  display: grid;
  place-items: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  color: #242833;
}

.message {
  width: fit-content;
  max-width: min(84%, 560px);
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--surface-strong);
  box-shadow: 0 7px 20px rgba(28, 34, 46, 0.055);
  color: #2d3340;
  font-size: var(--text-size);
  font-weight: 400;
  line-height: var(--text-leading);
  white-space: pre-wrap;
}

.message.user {
  justify-self: end;
  background: var(--ink);
  color: #fff;
}

.composer {
  position: absolute;
  left: 50%;
  bottom: var(--composer-bottom);
  z-index: 18;
  width: min(
    720px,
    calc(100vw - 40px - env(safe-area-inset-left) - env(safe-area-inset-right))
  );
  display: flex;
  align-items: flex-end;
  flex: 0 0 auto;
  gap: 6px;
  min-height: 58px;
  padding: 6px 7px;
  border: 1px solid rgba(18, 21, 34, 0.045);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 10px 28px rgba(28, 34, 46, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    transform 180ms ease;
  transform: translate3d(-50%, 0, 0);
}

.composer textarea,
.search-field input,
.event-title-input,
.note-editor textarea,
.rename-editor textarea {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  user-select: text;
}

.composer textarea {
  display: block;
  height: 24px;
  max-height: 132px;
  margin: 0;
  padding: 9px 7px;
  resize: none;
  font-size: 16px;
  line-height: 1.45;
  overflow-y: hidden;
  transition: height 140ms ease;
}

.search-field input {
  font-size: 16px;
}

.composer textarea::placeholder,
.search-field input::placeholder,
.event-title-input::placeholder,
.note-editor textarea::placeholder,
.rename-editor textarea::placeholder {
  color: var(--quiet);
}

.file-input {
  display: none;
}

.composer-icon,
.voice-button,
.send-button {
  flex: 0 0 auto;
  min-width: 42px;
  height: 42px;
  border-radius: 999px;
  font-weight: 560;
  transition:
    background-color 150ms ease,
    transform 150ms ease,
    opacity 150ms ease;
}

.composer-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  width: 105px;
  height: 42px;
  overflow: hidden;
  transition: width 160ms ease;
}

.composer-icon {
  background: rgba(18, 21, 34, 0.055);
  color: var(--text);
  display: grid;
  place-items: center;
}

.composer-icon.text-icon {
  padding: 0 10px;
  font-size: 13px;
  font-weight: 500;
}

.voice-button {
  min-width: 54px;
  padding: 0 13px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 520;
}

.send-button {
  position: absolute;
  inset: 0 0 0 auto;
  width: 58px;
  min-width: 58px;
  padding: 0 13px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 520;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.96);
}

.composer.has-text .composer-actions {
  width: 58px;
}

.composer.has-text .mic-action,
.composer.has-text .voice-action {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.96);
}

.composer.has-text .send-action {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.plus-menu {
  display: none;
  width: min(280px, calc(100vw - 40px));
  padding: 6px;
  border: 1px solid rgba(18, 21, 34, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 28px rgba(28, 34, 46, 0.09);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.plus-menu.open {
  display: grid;
  gap: 2px;
}

.plus-menu button {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-size: var(--text-size);
  font-weight: 400;
  line-height: var(--text-leading);
  text-align: left;
}

.plus-menu button .atlas-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  color: var(--muted);
}

.plus-menu button:hover,
.plus-menu button:focus-visible,
.quick-starts button:hover,
.quick-starts button:focus-visible {
  background: rgba(18, 21, 34, 0.05);
  outline: 0;
}

.composer:focus-within {
  border-color: rgba(18, 21, 34, 0.07);
  box-shadow:
    0 12px 30px rgba(28, 34, 46, 0.095),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.screen-heading {
  margin-bottom: 22px;
}

.screen-heading p {
  margin-bottom: 8px;
  font-size: var(--text-size);
  text-transform: none;
  letter-spacing: 0;
}

.capture-state,
.event-card,
.event-detail,
.search-field {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 9px 28px rgba(28, 34, 46, 0.065);
}

.capture-state {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
}

.capture-state strong,
.capture-state small,
.operator strong,
.operator small,
.menu-list small {
  display: block;
}

.capture-state strong,
.capture-actions strong,
.event-card h3 {
  font-weight: 500;
  line-height: var(--text-leading);
}

.capture-state small,
.event-card p,
.detail-meta,
.operator small,
.menu-list small {
  color: var(--muted);
  line-height: var(--text-leading);
}

.recording-dot {
  width: 14px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #f05b4f;
  box-shadow: 0 0 0 8px rgba(240, 91, 79, 0.12);
}

.capture-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.capture-actions button {
  display: grid;
  gap: 6px;
  justify-items: start;
  min-height: 118px;
  padding: 14px;
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--text);
  box-shadow: 0 7px 20px rgba(28, 34, 46, 0.055);
  transition:
    background-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

.capture-actions .atlas-icon {
  width: 24px;
  height: 24px;
  flex-basis: 24px;
  color: #242833;
}

.capture-actions small {
  color: var(--muted);
  line-height: var(--text-leading);
}

.capture-log {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.log-item {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  color: #3b4250;
  font-size: var(--text-size);
  line-height: var(--text-leading);
}

.save-event {
  width: 100%;
  min-height: 58px;
  margin-top: 16px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 520;
  transition:
    opacity 150ms ease,
    transform 150ms ease;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 14px;
  border-color: rgba(18, 21, 34, 0.045);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    0 8px 22px rgba(28, 34, 46, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.search-field:focus-within {
  border-color: rgba(18, 21, 34, 0.07);
}

.search-field input:focus-visible {
  outline: 0;
}

.event-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.event-empty {
  margin: 0;
  color: var(--muted);
}

.event-card {
  width: 100%;
  padding: 16px;
  text-align: left;
  color: var(--text);
  transition:
    background-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

.event-card h3 {
  margin: 0 0 8px;
  font-size: var(--text-size);
  letter-spacing: 0;
}

.event-card p {
  margin: 0;
  font-size: var(--text-size);
  line-height: var(--text-leading);
}

.event-card time {
  display: block;
  margin-top: 12px;
  color: var(--quiet);
  font-size: 13px;
  line-height: var(--text-leading);
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  align-self: flex-start;
  padding: 0 14px 0 11px;
  margin-bottom: 18px;
  background: var(--surface-strong);
}

.back-button .atlas-icon {
  width: 19px;
  height: 19px;
  flex-basis: 19px;
}

.event-detail {
  padding: 20px;
}

.event-title-form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
}

.event-title-input {
  min-height: 40px;
  padding: 0;
  font-size: 24px;
  font-weight: 430;
  line-height: 1.22;
}

.event-title-input:focus-visible {
  outline: 0;
}

.title-save-button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(18, 21, 34, 0.06);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
}

.title-save-status {
  min-height: 18px;
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: var(--text-leading);
}

.event-detail h2 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 430;
  line-height: 1.22;
}

.detail-meta {
  margin: 0 0 20px;
}

.image-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.mock-image {
  display: grid;
  place-items: end start;
  min-height: 128px;
  padding: 12px;
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(237, 244, 255, 0.92), rgba(234, 246, 230, 0.82)),
    #edf4ff;
  color: #354052;
  font-weight: 500;
  line-height: var(--text-leading);
}

.media-preview {
  place-items: stretch;
  gap: 10px;
  margin: 0;
}

.media-preview img,
.media-preview video,
.media-preview audio {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: cover;
}

.media-preview figcaption,
.media-preview span {
  color: var(--muted);
}

.detail-block {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.detail-block h3 {
  margin: 0 0 8px;
  font-size: var(--text-size);
  font-weight: 500;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}

.detail-block p {
  margin: 0;
  color: #323947;
  font-size: var(--text-size);
  font-weight: 400;
  line-height: var(--text-leading);
}

.detail-block + .detail-block {
  margin-top: 18px;
}

.side-menu {
  position: fixed;
  inset:
    var(--top-nav-height)
    auto
    0
    var(--side-safe-left);
  z-index: 30;
  width: min(86vw, 342px);
  max-width: calc(100vw - var(--side-safe-left) - var(--side-safe-right));
  max-height: calc(100dvh - var(--top-nav-height));
  padding: 22px 18px calc(22px + var(--bottom-safe));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-x: none;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  transform: translate3d(-105%, 0, 0);
  transition:
    transform 210ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 210ms ease;
  opacity: 0.96;
  border: 1px solid var(--line);
  border-left: 0;
  border-radius: 0 8px 8px 0;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--shadow);
  will-change: transform;
}

.side-menu * {
  max-width: 100%;
}

.side-menu.open {
  transform: translate3d(0, 0, 0);
  opacity: 1;
}

.conversation-menu {
  display: grid;
  gap: 6px;
  margin: 22px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
}

.new-chat-button,
.conversation-item {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 44px;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.new-chat-button {
  gap: 10px;
  padding: 0 4px;
  font-weight: 520;
  overflow: hidden;
}

.new-chat-button span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.new-chat-button .atlas-icon {
  width: 22px;
  height: 22px;
  flex-basis: 22px;
}

.conversation-list {
  display: grid;
  gap: 2px;
}

.conversation-row {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 44px;
  border-radius: 8px;
}

.conversation-row.active,
.conversation-row:hover,
.conversation-row:focus-within {
  background: rgba(18, 21, 34, 0.055);
}

.conversation-item {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  padding: 0 8px 0 10px;
  color: #353b48;
  font-size: var(--text-size);
  font-weight: 400;
  line-height: var(--text-leading);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.new-chat-button:hover,
.new-chat-button:focus-visible {
  background: rgba(18, 21, 34, 0.055);
  outline: 0;
}

.conversation-item:focus-visible,
.conversation-action-button:focus-visible,
.conversation-action-menu button:focus-visible {
  outline: 0;
}

.conversation-actions {
  position: relative;
  flex: 0 0 auto;
  min-width: 34px;
  margin-inline-end: 2px;
}

.conversation-action-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
}

.conversation-action-button .atlas-icon {
  width: 21px;
  height: 21px;
}

.conversation-action-button:hover,
.conversation-actions.open .conversation-action-button {
  background: rgba(18, 21, 34, 0.07);
  color: var(--text);
}

.conversation-action-menu {
  position: absolute;
  top: 38px;
  right: 0;
  z-index: 40;
  display: none;
  min-width: 124px;
  padding: 6px;
  border: 1px solid rgba(18, 21, 34, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 34px rgba(28, 34, 46, 0.14);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.conversation-actions.open .conversation-action-menu {
  display: grid;
}

.conversation-action-menu button {
  min-height: 38px;
  padding: 0 10px;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 430;
  text-align: left;
}

.conversation-action-menu button:hover,
.conversation-action-menu button:focus-visible {
  background: rgba(18, 21, 34, 0.055);
}

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

.recent-conversations {
  display: grid;
  gap: 8px;
  margin: 2px 0 28px;
}

.recent-conversations > p {
  margin: 0 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 520;
  line-height: var(--text-leading);
}

.scrim {
  position: fixed;
  inset: var(--top-nav-height) 0 0;
  z-index: 25;
  display: block;
  background: rgba(18, 21, 34, 0.08);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.scrim.open {
  opacity: 1;
  pointer-events: auto;
}

.note-modal,
.rename-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: end;
  justify-content: center;
  padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
  background: rgba(18, 21, 34, 0.18);
}

.note-modal.open,
.rename-modal.open {
  display: flex;
}

.note-editor,
.rename-editor {
  width: min(520px, 100%);
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(18, 21, 34, 0.06);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 44px rgba(28, 34, 46, 0.16);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.note-editor h2,
.rename-editor h2 {
  margin: 0 0 2px;
  font-size: 22px;
  font-weight: 430;
  line-height: 1.2;
}

.note-editor p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-size);
  line-height: var(--text-leading);
}

.note-editor textarea,
.rename-editor textarea {
  display: block;
  width: 100%;
  min-height: 116px;
  max-height: 180px;
  padding: 12px 2px;
  resize: none;
  font-size: 16px;
  line-height: 1.45;
  overflow-y: hidden;
}

.note-editor textarea:focus-visible,
.rename-editor textarea:focus-visible {
  outline: 0;
}

.note-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.note-cancel,
.note-save {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 520;
}

.note-cancel {
  background: rgba(18, 21, 34, 0.06);
  color: var(--text);
}

.note-save {
  background: var(--ink);
  color: #fff;
}

.brand-row,
.operator {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-row > div:last-child,
.operator > div {
  min-width: 0;
}

.brand-mark,
.avatar {
  width: 50px;
  aspect-ratio: 1;
}

.brand-row h1 {
  margin: 0 0 3px;
  font-size: 24px;
  font-weight: 650;
}

.brand-row p {
  margin: 0;
  color: var(--muted);
}

.menu-list {
  display: grid;
  gap: 6px;
  margin: 22px 0;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.menu-list button {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  min-height: 64px;
  padding: 8px 4px;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.menu-list button span {
  min-width: 0;
}

.menu-list strong,
.operator strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 650;
}

.menu-list small,
.operator small,
.brand-row p {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 450;
  line-height: var(--text-leading);
}

.menu-list button:hover,
.menu-list button:focus-visible,
.event-card:hover,
.event-card:focus-visible {
  background: rgba(255, 255, 255, 0.72);
  outline: 0;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(23, 25, 35, 0.18);
  outline-offset: 3px;
}

.composer textarea:focus-visible {
  outline: 0;
}

button:active {
  transform: scale(0.985);
}

.icon-button:active,
.pill-button:active,
.back-button:active,
.composer-icon:active,
.voice-button:active,
.send-button:active,
.capture-actions button:active,
.event-card:active,
.menu-list button:active,
.conversation-row:active,
.plus-menu button:active {
  opacity: 0.78;
}

.keyboard-open .chat-view:not(.empty-chat) .quick-starts {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

@keyframes view-enter {
  from {
    opacity: 0;
    transform: translate3d(0, 8px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.menu-list .menu-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  color: #2d3340;
}

@media (max-width: 440px) {
  :root {
    --top-nav-height: max(80px, calc(66px + env(safe-area-inset-top)));
  }

  .top-nav {
    padding-inline:
      max(16px, calc(16px + env(safe-area-inset-left)))
      max(16px, calc(16px + env(safe-area-inset-right)));
  }

  .quick-nav {
    gap: 8px;
  }

  .pill-button {
    min-height: 42px;
    padding-inline: 10px;
  }

  .icon-button {
    width: 48px;
    min-height: 48px;
  }

  .quick-starts {
    gap: 16px;
    padding-inline: 38px 34px;
  }

  .quick-starts button > span:last-child {
    font-size: 17px;
  }

  .capture-actions {
    grid-template-columns: 1fr;
  }

  .capture-actions button {
    min-height: 64px;
  }

  .image-strip {
    grid-template-columns: 1fr;
  }

  .composer {
    gap: 5px;
    padding-inline: 7px;
  }

  .composer-actions {
    width: 105px;
  }

  .composer.has-text .composer-actions {
    width: 58px;
  }

  .composer-icon,
  .voice-button,
  .send-button {
    min-width: 42px;
    height: 42px;
  }

  .voice-button {
    min-width: 54px;
    padding-inline: 12px;
  }

  .note-modal {
    padding-inline: 14px;
  }
}

@media (display-mode: standalone) {
  html,
  body,
  .app {
    min-height: 0;
  }

  .top-nav {
    background: rgba(247, 247, 245, 0.72);
  }
}

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

@media (min-width: 860px) {
  .top-nav {
    padding-inline: 32px;
  }

  .main-shell {
    min-height: 0;
  }

  .view {
    padding-inline: 38px;
  }

  .quick-starts {
    width: min(520px, 100%);
    margin-inline: auto;
  }
}
