:root {
  color-scheme: light;
  --bg: #fbfaf6;
  --ink: #15130f;
  --muted: #676057;
  --line: #ded7ca;
  --panel: #ffffff;
  --soft: #f0ebe0;
  --accent: #1f6d58;
  --accent-2: #b44a34;
  --cream: #f5efe3;
  --yellow: #ead37a;
  --shadow: rgba(16, 18, 20, 0.08);
}

/* Life Atlas: white-canvas thinking tool. */
.life-app {
  --life-bg: #f4f4f1;
  --life-canvas: #ffffff;
  --life-ink: #111111;
  --life-text: #27272a;
  --life-muted: #737373;
  --life-line: #e2e2df;
  --life-soft: #f7f7f5;
  --life-red: #e33030;
  --life-blue: #006fee;
  --life-pink: #f31260;
  --life-shadow: 0 18px 55px rgba(17, 17, 17, 0.11);
  height: 100vh;
  overflow: hidden;
  background: var(--life-bg);
  color: var(--life-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.life-app button,
.life-app textarea,
.life-app input {
  font: inherit;
}

.relative { position: relative; }
.inline-block { display: inline-block; }
.bg-transparent { background-color: transparent; }

.life-shell {
  display: grid;
  grid-template-rows: 56px minmax(0, 1fr);
  height: 100vh;
  min-width: 0;
}

.life-topbar {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  height: 56px;
  padding: 0 18px;
  border-bottom: 1px solid var(--life-line);
  background: rgba(250, 250, 248, 0.9);
  backdrop-filter: blur(18px);
}

.life-wordmark {
  justify-self: start;
  color: var(--life-ink);
  font-size: 18px;
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1;
}

.life-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  min-width: 0;
}

.life-brand-mark {
  position: relative;
  width: 24px;
  height: 24px;
  border: 1px solid #151515;
  border-radius: 7px;
  background: #fff;
  box-shadow: inset 0 -5px 0 rgba(227, 48, 48, 0.12);
}

.life-brand-mark::after {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--life-red);
  content: "";
}

.life-brand strong,
.life-chat-head strong {
  display: block;
  font-size: 14px;
  font-weight: 760;
  line-height: 1.1;
}

.life-brand small,
.life-chat-head span {
  display: block;
  margin-top: 2px;
  color: var(--life-muted);
  font-size: 11px;
  line-height: 1.2;
}

.life-topbar-center {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 9px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--life-line);
  border-radius: 999px;
  background: #fff;
  color: var(--life-muted);
  font-size: 12px;
  box-shadow: 0 8px 22px rgba(17, 17, 17, 0.05);
  white-space: nowrap;
}

.life-status-dot,
.life-context-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--life-blue);
  box-shadow: 0 0 0 4px rgba(0, 111, 238, 0.11);
}

.life-divider {
  width: 1px;
  height: 16px;
  background: var(--life-line);
}

.life-actions,
.life-zoom,
.life-chat-tools,
.life-composer-actions,
.life-card-controls {
  display: inline-flex;
  align-items: center;
}

.life-actions {
  justify-self: end;
  gap: 8px;
}

.life-account-button {
  position: fixed;
  top: auto;
  bottom: 18px;
  left: 18px;
  z-index: 70;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--life-line);
  border-radius: 999px;
  background: #fff;
  color: var(--life-ink);
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(17, 17, 17, 0.05);
}

.life-account-button:hover {
  border-color: #cfcfca;
  background: #fbfbfa;
}

.life-account-avatar {
  width: 30px;
  height: 30px;
  background: #111;
  color: #fff;
  font-size: 12px !important;
  font-weight: 760;
  pointer-events: none;
}

.life-account-avatar * {
  pointer-events: none;
}

.life-zoom {
  gap: 2px;
  height: 38px;
  padding: 0 4px;
  border: 1px solid var(--life-line);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(17, 17, 17, 0.05);
}

.life-zoom output {
  width: 52px;
  color: var(--life-text);
  font-size: 12px;
  font-weight: 690;
  text-align: center;
}

.life-icon-button,
.life-mini-button,
.life-send-button {
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  background: transparent;
  color: var(--life-ink);
  cursor: pointer;
}

.life-icon-button {
  width: 34px;
  height: 34px;
  border-radius: 999px;
}

.life-tooltip-target {
  position: relative;
  display: inline-flex;
  min-width: max-content;
}

.life-tooltip-target[data-tip]::before,
.life-tooltip-target[data-tip]::after {
  position: absolute;
  z-index: 220;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 120ms ease,
    transform 120ms ease;
}

.life-tooltip-target[data-tip]::after {
  left: 0;
  bottom: calc(100% + 9px);
  max-width: min(260px, calc(100vw - 32px));
  padding: 6px 8px;
  border-radius: 8px;
  background: #111;
  color: #fff;
  content: attr(data-tip);
  font-size: 11px;
  font-weight: 620;
  line-height: 1.35;
  white-space: nowrap;
  box-shadow: 0 10px 26px rgba(17, 17, 17, 0.18);
  transform: translateY(3px);
}

.life-tooltip-target[data-tip]::before {
  left: 12px;
  bottom: calc(100% + 4px);
  width: 8px;
  height: 8px;
  background: #111;
  content: "";
  transform: translateY(3px) rotate(45deg);
}

.life-tooltip-target[data-tip]:hover::before,
.life-tooltip-target[data-tip]:hover::after,
.life-tooltip-target[data-tip]:focus-within::before,
.life-tooltip-target[data-tip]:focus-within::after {
  opacity: 1;
  transform: translateY(0);
}

.life-tooltip-target[data-tip]:hover::before,
.life-tooltip-target[data-tip]:focus-within::before {
  transform: translateY(0) rotate(45deg);
}

.life-chat-tools .life-tooltip-target[data-tip]::after {
  right: 0;
  left: auto;
  top: calc(100% + 9px);
  bottom: auto;
}

.life-chat-tools .life-tooltip-target[data-tip]::before {
  right: 12px;
  left: auto;
  top: calc(100% + 4px);
  bottom: auto;
}

.life-account-button.life-tooltip-target {
  position: fixed;
}

.life-icon-button:hover,
.life-mini-button:hover {
  border-color: var(--life-line);
  background: var(--life-soft);
}

.life-icon-button svg,
.life-mini-button svg,
.life-chat-button svg,
.life-tool-button svg,
.life-send-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.life-chat-button,
.life-tool-button,
.life-mode-button,
.life-model-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--life-line);
  border-radius: 999px;
  background: #fff;
  color: var(--life-ink);
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(17, 17, 17, 0.06);
}

.life-chat-button {
  min-height: 38px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 720;
}

.life-chat-button:hover,
.life-tool-button:hover,
.life-mode-button:hover,
.life-model-button:hover {
  border-color: #c8c8c2;
  background: #fbfbfa;
}

.life-shell[data-chat-open="true"] .life-chat-button {
  border-color: rgba(37, 99, 235, 0.26);
  color: var(--life-blue);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.14);
}

.life-onboarding-layer {
  position: fixed;
  inset: 0;
  z-index: 120;
  pointer-events: auto;
}

.life-onboarding-backdrop {
  position: absolute;
  inset: 0;
  z-index: 90;
  background: transparent;
  backdrop-filter: none;
  pointer-events: none;
}

.life-onboarding-card {
  position: fixed;
  z-index: 130;
  display: grid;
  gap: 11px;
  width: min(372px, calc(100vw - 32px));
  padding: 18px 18px 16px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 24px 80px rgba(17, 17, 17, 0.16);
  pointer-events: auto;
  animation: life-onboarding-enter 260ms ease;
}

.life-onboarding-layer.is-talk .life-onboarding-card {
  top: 74px;
  right: 22px;
}

.life-onboarding-layer.is-composer {
  --life-onboarding-x: 82%;
  --life-onboarding-y: 86%;
}

.life-onboarding-layer.is-composer .life-onboarding-card {
  right: 28px;
  bottom: 132px;
}

.life-onboarding-layer.is-project {
  --life-onboarding-x: 92%;
  --life-onboarding-y: 94%;
}

.life-onboarding-layer.is-project .life-onboarding-card {
  right: 28px;
  bottom: 118px;
}

.life-onboarding-card-mark {
  display: none;
}

.life-onboarding-card::after {
  display: none;
}

.life-onboarding-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--life-muted);
  font-size: 11px;
  font-weight: 720;
}

.life-onboarding-card h2 {
  margin: 0;
  color: var(--life-ink);
  font-size: 24px;
  font-weight: 780;
  line-height: 1.18;
}

.life-onboarding-title-text {
  position: relative;
  display: inline-block;
}

.life-onboarding-title-text::after {
  position: absolute;
  right: -2px;
  bottom: -4px;
  left: -2px;
  height: 5px;
  border-radius: 999px 42% 999px 44%;
  background: var(--life-blue);
  content: "";
  opacity: 0.92;
  transform: rotate(-1deg);
}

.life-onboarding-card p {
  margin: 0;
  color: var(--life-text);
  font-size: 14px;
  line-height: 1.78;
}

.life-onboarding-card .life-onboarding-note {
  color: var(--life-muted);
  font-size: 12px;
  line-height: 1.62;
}

.life-onboarding-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 2px;
}

.life-onboarding-actions button {
  border-radius: 10px !important;
  font-weight: 700;
}

.life-onboarding-skip,
.life-onboarding-next {
  position: relative;
  z-index: 2;
  min-height: 34px;
  padding: 0 12px;
  cursor: pointer;
  pointer-events: auto;
}

.life-onboarding-skip {
  background: transparent;
  color: var(--life-muted);
}

.life-onboarding-skip:hover {
  background: #f3f3f1;
  color: var(--life-ink);
}

.life-onboarding-next {
  background: var(--life-blue);
  color: #fff;
}

.life-onboarding-next:hover {
  background: #005bc4;
}

.life-shell[data-onboarding="talk"] .life-topbar,
.life-shell[data-onboarding="project"] .life-floatbar,
.life-shell[data-onboarding="composer"] .life-chat {
  z-index: 112;
}

.life-shell[data-onboarding="talk"] [data-onboarding-target="talk"],
.life-shell[data-onboarding="project"] [data-onboarding-target="project"],
.life-shell[data-onboarding="composer"] [data-onboarding-target="composer"] {
  position: relative;
  z-index: 113;
  animation: life-onboarding-target 1.45s ease-in-out infinite;
}

@keyframes life-onboarding-enter {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes life-onboarding-target {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(0, 111, 238, 0.22);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(0, 111, 238, 0.08);
  }
}

.life-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 0;
  min-height: 0;
  transition: grid-template-columns 280ms ease;
}

.life-shell[data-chat-open="true"] .life-workspace {
  grid-template-columns: minmax(0, 1fr) 430px;
}

.life-canvas-panel {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--life-bg);
}

.life-canvas-viewport {
  width: 100%;
  height: 100%;
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--life-canvas);
  scroll-behavior: smooth;
}

.life-board-space {
  position: relative;
  min-width: 100%;
  min-height: 100%;
  padding: 0;
}

.life-board {
  position: absolute;
  inset: 0 auto auto 0;
  transform-origin: 0 0;
  transition: transform 260ms ease;
}

.life-card {
  position: absolute;
  display: grid;
  grid-template-rows: auto auto minmax(96px, auto) auto;
  gap: 12px;
  min-height: 228px;
  padding: 16px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 42px rgba(17, 17, 17, 0.08);
  color: var(--life-ink);
  transition:
    box-shadow 180ms ease,
    border-color 180ms ease,
    opacity 180ms ease;
}

.life-card::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  content: "";
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.life-card-principles {
  border-top: 3px solid var(--life-ink);
}

.life-card-agenda {
  border-color: rgba(227, 48, 48, 0.34);
  border-top: 3px solid var(--life-red);
  background: #fffafa;
  box-shadow: 0 18px 52px rgba(227, 48, 48, 0.11);
}

.life-card-project {
  border-top: 3px solid #111;
}

.life-card:hover,
.life-card.is-dragging {
  border-color: rgba(17, 17, 17, 0.24);
  box-shadow: var(--life-shadow);
}

.life-card.is-dragging {
  opacity: 0.92;
  cursor: grabbing;
}

.life-card-head,
.life-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.life-card-head {
  cursor: grab;
  touch-action: none;
}

.life-card-label {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid var(--life-line);
  border-radius: 999px;
  background: #fff;
  color: var(--life-muted);
  font-size: 10px;
  font-weight: 790;
  letter-spacing: 0;
}

.life-card-agenda .life-card-label {
  border-color: rgba(227, 48, 48, 0.28);
  color: var(--life-red);
}

.life-mini-button {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: #555;
}

.life-mini-button svg {
  width: 15px;
  height: 15px;
}

.life-card h2 {
  min-width: 0;
  margin: 0;
  color: var(--life-ink);
  font-size: 21px;
  font-weight: 760;
  line-height: 1.2;
  outline: none;
}

.life-card-body {
  min-height: 116px;
  white-space: pre-wrap;
  color: var(--life-text);
  font-size: 14px;
  line-height: 1.72;
  outline: none;
}

.life-card h2:focus,
.life-card-body:focus {
  border-radius: 6px;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.life-card-foot {
  padding-top: 10px;
  border-top: 1px solid var(--life-line);
  color: var(--life-muted);
  font-size: 11px;
}

.life-card-agenda .life-card-body {
  color: #b31818;
  font-weight: 620;
}

.life-card-pulse {
  animation: life-card-pulse 980ms ease;
}

@keyframes life-card-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.2), var(--life-shadow);
  }
  100% {
    box-shadow: 0 0 0 18px rgba(37, 99, 235, 0), var(--life-shadow);
  }
}

.life-document-panel {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #f6f6f3;
}

.life-document-panel::before {
  position: absolute;
  inset: -18%;
  z-index: 6;
  background:
    radial-gradient(circle at 18% 28%, rgba(0, 111, 238, 0.13), transparent 24%),
    radial-gradient(circle at 74% 18%, rgba(245, 165, 36, 0.1), transparent 26%),
    linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.42) 42%, rgba(255, 255, 255, 0.1) 58%, transparent 100%);
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: translateX(-34%) scale(1.04);
  transition: opacity 180ms ease;
  backdrop-filter: blur(1.5px) saturate(1.03);
  mix-blend-mode: normal;
}

.life-shell[data-map-thinking="true"] .life-document-panel::before {
  animation: life-map-glass-wave 2.4s ease-in-out infinite;
  opacity: 1;
}

.life-document-viewport {
  width: 100%;
  height: 100%;
  overflow: auto;
  overscroll-behavior: contain;
  padding: clamp(24px, 4vw, 48px) clamp(18px, 4vw, 58px) clamp(160px, 18vh, 240px);
  scroll-behavior: smooth;
  cursor: default;
}

.life-document-paper {
  position: relative;
  overflow: hidden;
  width: min(1120px, 100%);
  min-height: calc(100vh - 128px);
  margin: 0 auto;
  padding: clamp(34px, 5vw, 64px);
  border: 1px solid rgba(17, 17, 17, 0.09);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(17, 17, 17, 0.08);
}

.life-document-paper::after,
.life-shell[data-map-thinking="true"] .life-document-paper::after {
  display: none !important;
  animation: none !important;
  opacity: 0 !important;
}

.life-shell[data-map-thinking="true"] .life-doc-section {
  animation: life-map-reading 2.2s ease-in-out infinite;
}

.life-shell[data-map-thinking="true"] .life-doc-section:nth-child(2n) {
  animation-delay: 120ms;
}

.life-shell[data-map-thinking="true"] .life-doc-project-grid .life-doc-section:nth-child(3n) {
  animation-delay: 240ms;
}

.life-shell[data-chat-open="true"] .life-document-paper {
  width: 980px;
}

.life-shell[data-chat-open="true"] .life-document-viewport {
  cursor: grab;
}

.life-shell[data-chat-open="true"] .life-document-viewport.is-panning {
  cursor: grabbing;
  user-select: none;
  scroll-behavior: auto;
}

.life-doc-layout {
  display: grid;
  gap: clamp(34px, 5vw, 54px);
}

.life-doc-top-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(260px, 0.9fr);
  gap: clamp(38px, 7vw, 86px);
  align-items: start;
  max-width: 860px;
}

.life-doc-project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: clamp(30px, 4vw, 54px);
  align-items: start;
  max-width: 980px;
}

.life-doc-cover {
  margin-bottom: clamp(54px, 8vw, 86px);
  padding-bottom: 30px;
  border-bottom: 1px solid var(--life-line);
}

.life-doc-cover p {
  margin: 0 0 14px;
  color: var(--life-green);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0;
  text-transform: uppercase;
}

.life-doc-cover h1 {
  max-width: 760px;
  margin: 0;
  color: var(--life-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(38px, 6.2vw, 72px);
  font-weight: 780;
  letter-spacing: 0;
  line-height: 1.04;
}

.life-doc-cover div {
  max-width: 650px;
  margin-top: 22px;
  color: var(--life-muted);
  font-size: 16px;
  line-height: 1.9;
}

.life-doc-section {
  position: relative;
  margin: 0;
  padding: 0;
  border-bottom: 0;
}

.life-doc-section:last-child {
  margin-bottom: 0;
  border-bottom: 0;
}

.life-doc-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 30px;
  margin-bottom: 9px;
}

.life-doc-kicker {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-width: 0;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid var(--life-line);
  border-radius: 999px;
  background: #fff;
  color: var(--life-muted);
  font-size: 10px;
  font-weight: 790;
  letter-spacing: 0;
}

.life-doc-section-head .dropdown__trigger {
  display: inline-flex;
  width: max-content;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.life-doc-section-head button.life-doc-kicker {
  width: max-content !important;
  min-width: 0 !important;
  min-height: 24px !important;
  padding: 0 8px !important;
  border: 1px solid var(--life-line) !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: var(--life-muted) !important;
  font-size: 10px !important;
  font-weight: 790 !important;
  line-height: 1 !important;
}

.life-doc-kicker-button {
  cursor: pointer;
}

.life-doc-kicker-button:hover {
  border-color: #c9c9c4;
  background: #f7f7f5;
  color: var(--life-ink);
}

.life-doc-agenda .life-doc-kicker {
  border-color: rgba(227, 48, 48, 0.24);
  color: var(--life-red);
}

.life-section-menu {
  min-width: 86px;
  padding: 4px !important;
}

.life-section-menu-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 62px;
  min-height: 24px;
  color: var(--life-pink);
  font-size: 10px;
  font-weight: 790;
  line-height: 1;
}

.life-section-menu-item svg {
  width: 13px;
  height: 13px;
}

.life-section-menu [role="menuitem"],
.life-section-menu .dropdown__item {
  min-height: 24px !important;
  padding: 0 8px !important;
}

.life-danger-button {
  color: #fff;
  background: var(--life-pink);
}

.life-danger-button:hover {
  background: #d80d51;
}

.life-delete-backdrop {
  z-index: 140 !important;
}

.life-app [role="alertdialog"] {
  width: min(360px, calc(100vw - 32px)) !important;
  max-width: 360px !important;
  padding: 18px !important;
  border-radius: 18px !important;
}

.life-app [role="alertdialog"] h2,
.life-app [role="alertdialog"] [data-slot="heading"] {
  font-size: 18px !important;
  line-height: 1.35 !important;
}

.life-app [role="alertdialog"] p {
  font-size: 13px !important;
  line-height: 1.6 !important;
}

.life-doc-section h2 {
  position: relative;
  z-index: 0;
  display: block;
  max-width: 100%;
  margin: 0;
  color: var(--life-ink);
  font-size: 22px;
  font-weight: 780;
  letter-spacing: 0;
  line-height: 1.15;
  outline: none;
}

.life-doc-section h2::after {
  display: none;
  content: "";
}

.life-doc-title-text {
  display: inline-block;
  position: relative;
  min-width: 2em;
  min-height: 1.15em;
  outline: none;
  vertical-align: top;
}

.life-doc-title-text:empty::before {
  position: absolute;
  left: 0;
  top: 0;
  color: #b8b8b2;
  content: attr(data-placeholder);
  pointer-events: none;
  white-space: nowrap;
}

.life-doc-body {
  max-width: none;
  margin-top: 13px;
  white-space: pre-wrap;
  color: var(--life-text);
  font-size: 14px;
  line-height: 1.78;
  outline: none;
}

.life-doc-body strong,
.life-doc-body b {
  font-weight: 760;
}

.life-doc-agenda .life-doc-body {
  color: #b31818;
  font-weight: 620;
}

.life-doc-section h2:focus,
.life-doc-title-text:focus,
.life-doc-body:focus {
  border-radius: 6px;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.11);
}

.life-doc-pulse {
  animation: life-doc-pulse 1800ms ease;
}

.life-doc-pulse::before {
  position: absolute;
  inset: -10px -12px;
  z-index: -1;
  border: 1px solid rgba(0, 111, 238, 0.2);
  border-radius: 12px;
  background: rgba(0, 111, 238, 0.07);
  content: "";
  pointer-events: none;
  animation: life-doc-pulse-halo 1800ms ease;
}

.life-doc-pending::after {
  position: absolute;
  inset: -12px -14px;
  z-index: -1;
  border: 1px solid rgba(0, 111, 238, 0.18);
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(0, 111, 238, 0.07), rgba(255, 184, 77, 0.08));
  content: "";
  pointer-events: none;
  animation: life-doc-pending-breathe 2.4s ease-in-out infinite;
}

.life-inline-diff {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 11px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.68;
}

.life-inline-diff-label {
  width: max-content;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  line-height: 22px;
}

.life-inline-diff-add,
.life-inline-diff-addition {
  border: 1px solid rgba(0, 111, 238, 0.2);
  background: rgba(0, 111, 238, 0.055);
}

.life-inline-diff-add .life-inline-diff-label,
.life-inline-diff-addition span {
  color: var(--life-blue);
}

.life-inline-diff-add .life-inline-diff-label {
  background: rgba(0, 111, 238, 0.1);
}

.life-inline-diff-replace {
  border: 1px solid rgba(17, 17, 17, 0.1);
  background: #fff;
}

.life-inline-diff-addition,
.life-inline-diff-remove {
  display: grid;
  gap: 5px;
  padding: 9px;
  border-radius: 10px;
}

.life-inline-diff-addition span,
.life-inline-diff-remove span {
  font-size: 10px;
  font-weight: 800;
}

.life-inline-diff-addition p,
.life-inline-diff-remove p {
  margin: 0;
  white-space: pre-wrap;
}

.life-inline-diff-addition p {
  color: #0748a8;
}

.life-inline-diff-remove {
  border: 1px solid rgba(227, 48, 48, 0.18);
  background: rgba(227, 48, 48, 0.055);
}

.life-inline-diff-remove span {
  color: #b31818;
}

.life-inline-diff-remove p {
  color: #9f1d1d;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(227, 48, 48, 0.55);
}

.life-doc-ghost-patch {
  padding: 12px;
  border: 1px dashed rgba(0, 111, 238, 0.42);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(0, 111, 238, 0.055), rgba(255, 255, 255, 0.86));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.life-doc-ghost-patch h2 {
  color: #0748a8;
}

.life-doc-ghost-patch .life-doc-kicker {
  border-color: rgba(0, 111, 238, 0.24);
  color: var(--life-blue);
}

@keyframes life-doc-pulse {
  0% {
    opacity: 0.76;
  }
  38% {
    opacity: 1;
  }
  64% {
    opacity: 0.82;
  }
  100% {
    opacity: 1;
  }
}

@keyframes life-doc-pulse-halo {
  0% {
    opacity: 0;
    transform: scale(0.985);
  }
  18% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.025);
  }
}

@keyframes life-doc-pending-breathe {
  0%,
  100% {
    opacity: 0.36;
  }
  50% {
    opacity: 0.82;
  }
}

@keyframes life-map-reading {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.62;
  }
}

@keyframes life-map-glass-wave {
  0% {
    opacity: 0;
    transform: translateX(-42%) scale(1.04);
  }
  18% {
    opacity: 0.7;
  }
  54% {
    opacity: 0.34;
    transform: translateX(18%) scale(1.08);
  }
  100% {
    opacity: 0;
    transform: translateX(54%) scale(1.04);
  }
}

.life-floatbar {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--life-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 45px rgba(17, 17, 17, 0.1);
  backdrop-filter: blur(18px);
}

.life-tool-button {
  min-height: 36px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 720;
  box-shadow: none;
}

.life-chat {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-rows: 56px minmax(0, 1fr) auto;
  width: 430px;
  min-width: 0;
  height: 100vh;
  overflow: hidden;
  border-left: 1px solid var(--life-line);
  background: #fff;
  box-shadow: -24px 0 70px rgba(17, 17, 17, 0.12);
  transform: translateX(100%);
  transition: transform 280ms ease;
}

.life-shell[data-chat-open="true"] .life-chat {
  transform: translateX(0);
}

.life-chat-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 0 18px;
  border-bottom: 1px solid var(--life-line);
  background: #fff;
}

.life-chat-tools {
  display: inline-flex;
  gap: 4px;
  position: relative;
  z-index: 6;
}

.life-chat-tools .life-icon-button {
  border-radius: 10px !important;
}

.life-chat-tools .life-icon-button:hover {
  border-color: transparent !important;
  background: #f3f3f1 !important;
  box-shadow: none !important;
}

.life-history-panel {
  position: absolute;
  top: 32px;
  right: 14px;
  z-index: 4;
  width: min(316px, calc(100vw - 32px));
  max-height: min(650px, calc(100vh - 112px));
  overflow: hidden;
  padding: 22px 28px 20px;
  border: 1px solid #d8d8d5;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(17, 17, 17, 0.16);
}

.life-history-list {
  display: grid;
  gap: 2px;
  max-height: min(520px, calc(100vh - 190px));
  overflow: auto;
}

.life-history-list button {
  min-height: 44px;
  padding: 7px 0;
  overflow: hidden;
  background: transparent;
  color: var(--life-ink);
  cursor: pointer;
  font-size: 16px;
  line-height: 1.35;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.life-history-list button:hover {
  color: var(--life-blue);
}

.life-chat-stream {
  min-height: 0;
  overflow: auto;
  padding: 28px 22px 18px;
  background: #fff;
}

.life-chat-blank {
  min-height: 100%;
}

.life-chat-empty {
  display: grid;
  place-items: center;
  height: 100%;
  color: #c0c0bb;
  font-size: 13px;
}

.life-message {
  display: grid;
  gap: 6px;
  max-width: 100%;
  margin: 0 0 28px;
}

.life-message-user {
  margin-left: auto;
  justify-items: end;
}

.life-message-bubble {
  max-width: min(326px, 86%);
  padding: 11px 14px;
  border: 1px solid transparent;
  border-radius: 18px;
  background: #f4f4f5;
  box-shadow: none;
}

.life-message-user .life-message-bubble {
  background: var(--life-blue);
  color: #fff;
}

.life-message-assistant .life-message-bubble {
  max-width: 100%;
  padding: 0;
  border-radius: 0;
  border-color: transparent;
  background: transparent;
  color: var(--life-text);
}

.life-message-welcome .life-message-bubble {
  color: var(--life-muted);
}

.life-message p {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 14px;
  line-height: 1.72;
  white-space: pre-wrap;
}

.life-message-assistant p {
  font-size: 14px;
  line-height: 1.78;
}

.life-message-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.life-message-attachments {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  margin-left: auto;
  max-width: 100%;
}

.life-message-user .life-message-attachments {
  justify-self: end;
}

.life-message-thinking {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  color: #686868;
}

.life-message-thinking p {
  animation: life-thinking-color 1.6s ease-in-out infinite alternate;
  font-size: 15px;
}

.life-thinking-dots {
  display: inline-flex;
  gap: 5px;
}

.life-thinking-dots span {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--life-blue);
  animation: life-thinking-dot 900ms ease-in-out infinite;
}

.life-thinking-dots span:nth-child(2) {
  animation-delay: 150ms;
}

.life-thinking-dots span:nth-child(3) {
  animation-delay: 300ms;
}

@keyframes life-thinking-color {
  from {
    color: #727272;
  }
  to {
    color: var(--life-blue);
  }
}

@keyframes life-thinking-dot {
  0%,
  100% {
    opacity: 0.25;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

.life-message-action {
  position: relative;
  width: 30px;
  min-width: 30px;
  height: 30px;
  color: #666;
}

.life-message-action svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.life-message-action:hover {
  background: #f4f4f5;
  color: var(--life-ink);
}

.life-reflection-panel {
  display: none !important;
}

.life-reflection-dock {
  position: fixed;
  right: 24px;
  bottom: 22px;
  z-index: 75;
  display: grid;
  gap: 0;
  width: min(352px, calc(100vw - 32px));
  max-height: min(420px, calc(100vh - 112px));
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 24px 76px rgba(17, 17, 17, 0.16);
  backdrop-filter: blur(18px);
}

.life-shell[data-chat-open="true"] .life-reflection-dock {
  right: calc(430px + 24px);
}

.life-reflection-dock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 12px 10px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.life-reflection-dock-head div:first-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.life-reflection-dock-head span {
  color: var(--life-muted);
  font-size: 10px;
  font-weight: 760;
}

.life-reflection-dock-head strong {
  color: var(--life-ink);
  font-size: 14px;
  font-weight: 780;
}

.life-reflection-dock-actions,
.life-reflection-item-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.life-reflection-dock button {
  min-width: 0;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 10px;
  background: #f6f6f4;
  color: var(--life-ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 720;
}

.life-reflection-dock button:hover {
  background: #eeeeeb;
}

.life-reflection-dock-actions button:first-child,
.life-reflection-item-actions button:last-child {
  border-color: transparent;
  background: var(--life-blue);
  color: #fff;
}

.life-reflection-dock-actions button:first-child:hover,
.life-reflection-item-actions button:last-child:hover {
  background: #005bc4;
}

.life-reflection-dock-list {
  min-height: 0;
  overflow: auto;
  padding: 8px;
}

.life-reflection-dock-item {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 14px;
  background: #fff;
}

.life-reflection-dock-item + .life-reflection-dock-item {
  margin-top: 8px;
}

.life-reflection-item-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.life-reflection-item-main strong,
.life-reflection-item-main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.life-reflection-item-main strong {
  color: var(--life-ink);
  font-size: 13px;
  font-weight: 760;
}

.life-reflection-item-main small {
  grid-column: 2;
  color: var(--life-muted);
  font-size: 11px;
}

.life-reflection-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid var(--life-line);
  border-radius: 999px;
  background: #fff;
  color: var(--life-muted);
  font-size: 10px;
  font-weight: 790;
}

.life-reflection-dock-diff {
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 12px;
  background: #fbfbfa;
}

.life-reflection-dock-diff summary {
  padding: 8px 9px;
  color: var(--life-muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 760;
}

.life-reflection-dock-diff > div {
  display: grid;
  gap: 8px;
  padding: 0 9px 9px;
}

.life-reflection-dock-diff section {
  display: grid;
  gap: 4px;
}

.life-reflection-dock-diff span {
  color: var(--life-muted);
  font-size: 10px;
  font-weight: 740;
}

.life-reflection-dock-diff pre {
  max-height: 84px;
  margin: 0;
  overflow: auto;
  padding: 7px;
  border-radius: 8px;
  background: #fff;
  color: #3f3f3a;
  font: 11px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: pre-wrap;
}

.life-reflection-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px 12px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.life-reflection-head div:first-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.life-reflection-head span {
  color: var(--life-muted);
  font-size: 11px;
  font-weight: 760;
}

.life-reflection-head strong {
  color: var(--life-ink);
  font-size: 14px;
  font-weight: 780;
}

.life-reflection-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.life-reflection-head-actions button {
  min-width: 0;
  height: 32px;
  padding: 0 10px;
  border-radius: 10px !important;
  font-size: 12px;
}

.life-reflection-list {
  min-height: 0;
  overflow: auto;
  padding: 10px;
}

.life-reflection-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 14px;
  background: #fff;
}

.life-reflection-card + .life-reflection-card {
  margin-top: 10px;
}

.life-reflection-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--life-muted);
  font-size: 12px;
  font-weight: 720;
}

.life-reflection-title-field,
.life-reflection-summary-field,
.life-reflection-after-field {
  display: grid;
  gap: 5px;
}

.life-reflection-title-field span,
.life-reflection-summary-field span,
.life-reflection-after-field span,
.life-reflection-diff span {
  color: var(--life-muted);
  font-size: 11px;
  font-weight: 740;
}

.life-reflection-title-field input,
.life-reflection-summary-field input,
.life-reflection-after-field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(17, 17, 17, 0.09);
  border-radius: 10px;
  background: #fafafa;
  color: var(--life-ink);
  font: inherit;
  font-size: 13px;
  line-height: 1.6;
  outline: none;
}

.life-reflection-title-field input,
.life-reflection-summary-field input {
  height: 34px;
  padding: 0 10px;
}

.life-reflection-title-field input:disabled {
  color: #8a8a84;
  opacity: 1;
}

.life-reflection-after-field textarea {
  min-height: 104px;
  max-height: 210px;
  padding: 9px 10px;
  resize: vertical;
}

.life-reflection-title-field input:focus,
.life-reflection-summary-field input:focus,
.life-reflection-after-field textarea:focus {
  border-color: rgba(0, 111, 238, 0.35);
  box-shadow: 0 0 0 3px rgba(0, 111, 238, 0.08);
}

.life-reflection-diff {
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 12px;
  background: #fbfbfa;
}

.life-reflection-diff summary {
  padding: 9px 10px;
  color: var(--life-muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 760;
}

.life-reflection-diff > div {
  display: grid;
  gap: 8px;
  padding: 0 10px 10px;
}

.life-reflection-diff section {
  display: grid;
  gap: 4px;
}

.life-reflection-diff pre {
  max-height: 118px;
  margin: 0;
  overflow: auto;
  border-radius: 8px;
  background: #fff;
  color: #3f3f3a;
  font: 12px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: pre-wrap;
}

.life-reflection-reason {
  margin: 0;
  color: var(--life-muted);
  font-size: 12px;
  line-height: 1.55;
}

.life-reflection-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.life-reflection-actions button {
  min-width: 0;
  height: 32px;
  border-radius: 10px !important;
  font-size: 12px;
}

.life-composer {
  display: grid;
  gap: 7px;
  padding: 11px 22px 15px;
  border-top: 1px solid var(--life-line);
  background: #fff;
}

.life-composer:not(.is-voice) {
  grid-template-rows: minmax(44px, auto) 44px;
  align-content: end;
  min-height: 121px;
}

.life-composer.is-voice {
  min-height: 86px;
  align-content: center;
  padding: 12px 16px;
}

.life-voice-notice {
  display: grid;
  width: max-content;
  max-width: 100%;
  gap: 3px;
  padding: 0;
  color: #747474;
  font-size: 12px;
  line-height: 1.5;
}

.life-voice-notice strong {
  color: #4f4f4b;
  font-size: 12px;
  font-weight: 680;
}

.life-voice-notice span {
  max-width: 360px;
}

.life-voice-notice button {
  width: max-content;
  margin-top: 4px;
  padding: 4px 8px;
  border: 1px solid var(--life-line);
  border-radius: 8px;
  background: #f7f7f5;
  color: var(--life-ink);
  cursor: pointer;
  font-size: 11px;
  font-weight: 680;
}

.life-voice-notice button:hover {
  background: #efefec;
}

.life-context-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--life-line);
  border-radius: 999px;
  background: var(--life-soft);
  color: var(--life-text);
  font-size: 12px;
  font-weight: 650;
}

.life-composer-box {
  display: block;
  min-width: 0;
}

.life-file-input {
  display: none;
}

.life-attachments {
  display: flex;
  gap: 8px;
  max-width: 100%;
  overflow-x: auto;
  padding: 0 0 2px;
  scrollbar-width: none;
}

.life-attachments::-webkit-scrollbar {
  display: none;
}

.life-attachment-card {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 190px;
  min-height: 58px;
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid var(--life-line);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(17, 17, 17, 0.02);
}

.life-attachment-card.is-compact.life-attachment-image {
  display: block;
  width: 64px;
  height: 76px;
  min-height: 76px;
  padding: 0;
  overflow: hidden;
}

.life-attachment-card.is-compact:not(.life-attachment-image) {
  width: 180px;
}

.life-message-attachments .life-attachment-card {
  width: min(270px, 100%);
}

.life-message-attachments .life-attachment-image {
  display: block;
  width: 142px;
  height: 142px;
  min-height: 142px;
  padding: 0;
  overflow: hidden;
  border-radius: 14px;
}

.life-attachment-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.life-attachment-icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #8f8f8f;
  color: #fff;
}

.life-attachment-icon svg {
  width: 21px;
  height: 21px;
  stroke-width: 1.9;
}

.life-attachment-pdf .life-attachment-icon {
  background: #ff3b42;
}

.life-attachment-spreadsheet .life-attachment-icon {
  background: #0fbd58;
}

.life-attachment-presentation .life-attachment-icon {
  background: #ff6b21;
}

.life-attachment-text {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.life-attachment-text strong,
.life-attachment-text small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.life-attachment-text strong {
  color: var(--life-ink);
  font-size: 13px;
  font-weight: 760;
}

.life-attachment-text small {
  color: #6c6c6c;
  font-size: 12px;
}

.life-attachment-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 999px;
  background: #111;
  color: #fff;
  cursor: pointer;
}

.life-attachment-remove svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
}

.life-composer-input-wrapper {
  min-height: 48px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease !important;
}

.life-composer-input-wrapper[data-focus="true"],
.life-composer-input-wrapper[data-focus-within="true"],
.life-composer [data-focus="true"],
.life-composer [data-focus-within="true"] {
  border-color: transparent !important;
  box-shadow: none !important;
}

.life-composer-input {
  display: block;
  width: 100%;
  min-height: 44px;
  max-height: 128px;
  padding: 0;
  resize: none;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--life-ink);
  font-size: 14px !important;
  line-height: 1.78 !important;
}

.life-composer-input:focus,
.life-composer-input:focus-visible,
.life-composer textarea:focus,
.life-composer textarea:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.life-composer:focus-within {
  border-top-color: #d4d4d0;
  box-shadow: inset 0 1px 0 rgba(17, 17, 17, 0.03);
}

.life-composer textarea {
  display: block;
  width: 100%;
  height: 44px;
  max-height: 128px;
  min-height: 44px;
  padding: 0;
  resize: none;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--life-ink);
  font-size: 14px;
  line-height: 1.78;
}

.life-composer textarea::placeholder {
  color: #a6a6a1;
}

.life-composer-actions {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
}

.life-composer-actions > span.life-tooltip-target {
  width: 44px;
  height: 44px;
  align-items: center;
}

.life-composer-actions > span.life-tooltip-target:first-child {
  justify-self: start;
  justify-content: center;
}

.life-composer-actions > span.life-tooltip-target:last-child {
  justify-self: end;
  justify-content: center;
  align-self: center;
}

.life-composer-actions > .life-send-button {
  place-self: center end;
}

.life-composer-actions .life-icon-button {
  width: 40px;
  height: 40px;
  border-radius: 10px !important;
  background: transparent !important;
  box-shadow: none !important;
}

.life-composer-actions .life-icon-button:hover {
  border-color: transparent !important;
  background: #f3f3f1 !important;
}

.life-mode-button {
  min-height: 34px;
  padding: 0 12px;
  color: var(--life-muted);
  font-size: 13px;
  box-shadow: none;
}

.life-model-button,
.life-model-static {
  justify-self: end;
  min-height: 34px;
  max-width: 120px;
  padding: 0 4px 0 8px;
  border-color: transparent !important;
  background: transparent !important;
  color: #8a8a8a;
  font-size: 16px;
  font-weight: 560;
  box-shadow: none;
  appearance: none;
  cursor: default;
}

.life-model-button:hover,
.life-model-static:hover {
  border-color: transparent !important;
  background: #f4f4f5 !important;
  box-shadow: none;
}

.life-model-static {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: max-content;
  padding: 0 9px;
  border-radius: 999px;
}

.life-composer-actions .dropdown,
.life-composer-actions .dropdown__trigger {
  justify-self: end;
  min-width: 0;
}

.life-model-button svg {
  width: 14px;
  height: 14px;
}

.life-model-static svg {
  width: 14px;
  height: 14px;
  stroke-width: 1.9;
}

.life-model-popover {
  min-width: 210px;
}

.life-model-option {
  display: grid;
  gap: 2px;
}

.life-model-option strong {
  color: var(--life-ink);
  font-size: 13px;
}

.life-model-option span {
  color: var(--life-muted);
  font-size: 11px;
}

.life-send-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 999px;
  background: var(--life-blue);
  color: #fff;
}

.life-send-button:hover {
  background: #005bc4;
}

.life-stop-button svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.life-send-button svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.35;
  transform: translateY(-1px);
}

.life-icon-button.is-recording {
  color: var(--life-red);
  background: #fff1f1;
  box-shadow: 0 0 0 4px rgba(227, 48, 48, 0.1);
}

.life-voice-composer {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto 34px 34px;
  align-items: center;
  gap: 10px;
  min-height: 84px;
}

.life-voice-plus,
.life-voice-control {
  display: inline-grid;
  place-items: center;
  color: #333;
}

.life-voice-plus {
  width: 38px;
  height: 38px;
  background: #f0f0ef;
  color: #888;
}

.life-voice-control {
  width: 34px;
  height: 34px;
  background: transparent;
}

.life-voice-plus svg,
.life-voice-control svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.9;
}

.life-voice-wave {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  height: 46px;
  overflow: hidden;
}

.life-voice-error {
  color: #777;
  font-size: 13px;
  white-space: nowrap;
}

.life-voice-dot,
.life-voice-bar {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #8d8d8a;
}

.life-voice-dot {
  width: 4px;
  height: 4px;
  opacity: 0.42;
}

.life-voice-bar {
  width: 4px;
  min-height: 6px;
  opacity: 0.92;
  transition: height 70ms linear;
}

.life-voice-time {
  min-width: 38px;
  color: #444;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.life-settings-layer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  justify-content: end;
  background: rgba(250, 250, 248, 0.56);
  backdrop-filter: blur(10px);
}

.life-settings-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(500px, 100vw);
  height: 100vh;
  border-left: 1px solid var(--life-line);
  border-radius: 0 !important;
  background: #fff;
  box-shadow: -24px 0 70px rgba(17, 17, 17, 0.13);
}

.life-settings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 68px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--life-line);
}

.life-settings-head div {
  display: grid;
  gap: 3px;
}

.life-settings-head span {
  color: var(--life-muted);
  font-size: 10px;
  font-weight: 660;
}

.life-settings-head strong {
  color: var(--life-ink);
  font-size: 18px;
  font-weight: 760;
  letter-spacing: 0;
}

.life-settings-close {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #f6f6f4;
  color: var(--life-ink);
  cursor: pointer;
}

.life-settings-close:hover {
  background: #efefec;
}

.life-settings-close svg {
  width: 19px;
  height: 19px;
  stroke-width: 2.1;
}

.life-settings-close.life-tooltip-target[data-tip]::after {
  right: 0;
  left: auto;
  top: calc(100% + 9px);
  bottom: auto;
}

.life-settings-close.life-tooltip-target[data-tip]::before {
  right: 12px;
  left: auto;
  top: calc(100% + 4px);
  bottom: auto;
}

.life-settings-scroll {
  min-height: 0;
  padding: 16px 20px 24px;
}

.life-settings-section {
  display: grid;
  gap: 12px;
  margin: 0 0 12px;
  padding: 14px;
  border: 1px solid var(--life-line);
  border-radius: 14px;
  background: #fff;
}

.life-settings-section:first-child {
  padding-top: 14px;
}

.life-settings-section.is-danger {
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border-color: #f1d3db;
  background: #fffafa;
}

.life-settings-section.is-danger p {
  margin: 0;
}

.life-settings-section.is-danger p {
  margin-top: 4px;
  color: var(--life-muted);
  font-size: 12px;
  line-height: 1.5;
}

.life-settings-section-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--life-ink);
  margin: 0;
}

.life-settings-section-title svg {
  width: 17px;
  height: 17px;
  stroke-width: 2;
}

.life-settings-section-title span {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 740;
}

.life-settings-danger-title {
  display: block;
  color: var(--life-ink);
  font-size: 13px;
  font-weight: 740;
  line-height: 1.25;
}

.life-profile-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.life-profile-avatar {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid var(--life-line);
  border-radius: 999px;
  background: #111;
  color: #fff;
  cursor: pointer;
  font-size: 22px;
  font-weight: 800;
}

.life-profile-avatar-inner {
  width: 56px;
  height: 56px;
  background: #111;
  color: #fff;
  font-size: 20px !important;
}

.life-profile-row p {
  margin: 7px 0 0;
  color: var(--life-muted);
  font-size: 11px;
  line-height: 1.55;
}

.life-settings-field {
  display: grid;
  gap: 6px;
}

.life-settings-field span {
  color: var(--life-muted);
  font-size: 11px;
  font-weight: 660;
}

.life-settings-field input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--life-line);
  border-radius: 10px;
  outline: none;
  background: #fff;
  color: var(--life-ink);
  font-size: 13px;
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease;
}

.life-settings-field input:focus {
  border-color: #b8b8b2;
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.04);
}

.life-settings-inline,
.life-billing-card,
.life-password-card,
.life-share-row,
.life-settings-prompt-box,
.life-settings-key-row,
.life-settings-command-row {
  display: grid;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid var(--life-line);
  border-radius: 12px;
  background: #fbfbfa;
}

.life-settings-inline {
  grid-template-columns: 34px minmax(0, 1fr) auto;
}

.life-password-card {
  align-items: stretch;
  background: #fff;
}

.life-settings-inline-head {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.life-settings-inline svg {
  width: 20px;
  height: 20px;
  color: #555;
}

.life-settings-inline div,
.life-billing-card div,
.life-password-card div,
.life-share-row div,
.life-settings-prompt-box div,
.life-settings-key-row div,
.life-settings-command-row div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.life-settings-inline strong,
.life-billing-card strong,
.life-password-card strong {
  color: var(--life-ink);
  font-size: 13px;
  font-weight: 750;
}

.life-settings-inline span,
.life-billing-card span,
.life-password-card span,
.life-share-row span,
.life-settings-prompt-box span,
.life-settings-key-row span,
.life-settings-command-row span {
  color: var(--life-muted);
  font-size: 11px;
}

.life-password-actions {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.life-password-actions span {
  text-align: right;
  font-size: 11px;
  line-height: 1.35;
}

.life-billing-card {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.life-billing-card small {
  color: var(--life-muted);
  font-size: 11px;
}

.life-settings-note {
  margin: 0;
  color: var(--life-muted);
  font-size: 11px;
  line-height: 1.65;
}

.life-stripe-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid #deddf7;
  border-radius: 999px;
  background: #f7f7ff;
  color: #635bff !important;
  font-size: 11px !important;
  font-weight: 760;
}

.life-billing-chip {
  width: max-content;
  font-size: 11px !important;
  font-weight: 720 !important;
}

.life-plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.life-plan-card {
  display: grid;
  gap: 8px;
  min-height: 112px;
  padding: 13px;
  border: 1px solid var(--life-line);
  border-radius: 13px;
  background: #fbfbfa;
}

.life-plan-card.is-active {
  border-color: rgba(0, 111, 238, 0.32);
  background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 111, 238, 0.08);
}

.life-plan-card button,
.life-plan-status {
  width: max-content;
  justify-self: start;
}

.life-plan-card button {
  min-height: 32px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  font-weight: 720 !important;
}

.life-plan-card div {
  display: grid;
  gap: 4px;
}

.life-plan-card span {
  color: var(--life-muted);
  font-size: 11px;
  font-weight: 720;
}

.life-plan-card strong {
  color: var(--life-ink);
  font-size: 14px;
  font-weight: 780;
  line-height: 1.3;
}

.life-plan-card p {
  margin: 0;
  color: var(--life-muted);
  font-size: 11px;
  line-height: 1.55;
}

.life-credit-panel {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--life-line);
  border-radius: 12px;
  background: #fff;
}

.life-credit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.life-credit-head span {
  color: var(--life-muted);
  font-size: 11px;
}

.life-credit-head strong {
  color: var(--life-ink);
  font-size: 13px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.life-credit-meter {
  display: grid;
  gap: 0;
}

.life-credit-meter [data-slot="track"],
.life-credit-meter .meter__track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #ededeb;
}

.life-credit-meter [data-slot="fill"],
.life-credit-meter .meter__fill {
  border-radius: inherit;
  background: var(--life-blue);
}

.life-credit-breakdown {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--life-muted);
  font-size: 10px;
  line-height: 1.3;
}

.life-auto-purchase {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--life-line);
  border-radius: 12px;
  background: #fff;
}

.life-auto-purchase-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.life-auto-purchase-head div {
  display: grid;
  gap: 3px;
}

.life-auto-purchase-head span {
  color: var(--life-muted);
  font-size: 11px;
}

.life-auto-purchase-head strong {
  color: var(--life-ink);
  font-size: 13px;
  font-weight: 750;
}

.life-auto-purchase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.life-limit-slider {
  width: 100%;
  height: 22px;
  accent-color: var(--life-blue);
}

.life-settings-button-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.life-export-grid {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}

.life-export-button {
  min-width: 78px !important;
  min-height: 36px !important;
  padding: 0 14px !important;
  border: 1px solid var(--life-line) !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: var(--life-ink) !important;
  font-size: 12px !important;
  font-weight: 760 !important;
}

.life-export-button:hover {
  background: #f5f5f3 !important;
}

.life-export-grid button svg {
  width: 15px;
  height: 15px;
}

.life-settings-key-row {
  grid-template-columns: minmax(0, 1fr) auto auto auto;
}

.life-settings-command-row {
  grid-template-columns: 34px minmax(0, 1fr) auto;
}

.life-share-row {
  grid-template-columns: 34px minmax(0, 1fr) auto auto auto;
}

.life-settings-command-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #f1f1ef;
  color: var(--life-ink);
}

.life-settings-command-icon svg {
  width: 18px;
  height: 18px;
}

.life-settings-key-row button svg,
.life-settings-command-row button svg,
.life-share-row button svg,
.life-settings-prompt-box button svg {
  width: 14px;
  height: 14px;
}

.life-copy-button {
  min-width: 118px !important;
  justify-content: center !important;
}

.life-settings-key-row code,
.life-settings-command-row code,
.life-share-row code {
  overflow: hidden;
  color: var(--life-ink);
  font-size: 11px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.life-settings-prompt-box {
  align-items: stretch;
}

.life-settings-prompt-box > div {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.life-settings-prompt-box code {
  display: block;
  max-height: 104px;
  overflow: auto;
  padding: 10px;
  border: 1px solid var(--life-line);
  border-radius: 10px;
  background: #fff;
  color: var(--life-ink);
  font-size: 11px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.life-attachment-remove[data-tip]::after {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 8;
  padding: 6px 8px;
  border-radius: 8px;
  background: #111;
  color: #fff;
  content: attr(data-tip);
  font-size: 11px;
  font-weight: 620;
  line-height: 1.35;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateY(3px);
  transition:
    opacity 120ms ease,
    transform 120ms ease;
}

.life-attachment-remove[data-tip]:hover::after {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 720px) {
  .life-topbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .life-topbar-center {
    display: none;
  }

  .life-shell[data-chat-open="true"] .life-workspace,
  .life-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .life-chat {
    right: 0;
    width: min(430px, 100vw);
  }

  .life-onboarding-layer.is-talk .life-onboarding-card,
  .life-onboarding-layer.is-composer .life-onboarding-card,
  .life-onboarding-layer.is-project .life-onboarding-card {
    right: 16px;
    bottom: 16px;
    top: auto;
  }

  .life-onboarding-card::after,
  .life-onboarding-card-mark {
    display: none;
  }
}

@media (max-width: 640px) {
  .life-topbar {
    height: 58px;
    padding: 0 10px;
  }

  .life-account-button {
    top: auto;
    bottom: 10px;
    left: 10px;
  }

  .life-shell {
    grid-template-rows: 58px minmax(0, 1fr);
  }

  .life-brand small,
  .life-zoom {
    display: none;
  }

  .life-chat-button {
    min-width: 38px;
    padding: 0 10px;
  }

  .life-chat-button span {
    display: none;
  }

  .life-floatbar {
    right: 10px;
    bottom: 10px;
  }

  .life-card {
    width: 330px !important;
  }

  .life-chat {
    width: 100vw;
  }
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; text-decoration: none; }
button { border: 0; font: inherit; }
code, pre { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 0 clamp(18px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(251, 250, 246, 0.9);
  backdrop-filter: blur(16px);
}

.brand, .nav-links, .hero-actions, .install-card-top {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 850;
}

.brand-mark {
  width: 17px;
  height: 17px;
  background: var(--accent);
  transform: rotate(45deg);
}

.nav-links {
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.58fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 68px);
  padding: 70px clamp(18px, 5vw, 64px) 56px;
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.72fr);
  gap: clamp(26px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 68px);
  padding: 72px clamp(18px, 5vw, 64px) 62px;
  background:
    linear-gradient(180deg, rgba(234, 211, 122, 0.18), rgba(251, 250, 246, 0) 44%),
    var(--bg);
}

.hero-single {
  grid-template-columns: minmax(0, 1fr);
  min-height: calc(82vh - 68px);
}

.eyebrow, .mini-label {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1, h2, h3, p { overflow-wrap: anywhere; letter-spacing: 0; }

h1 {
  max-width: 920px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 520;
  font-size: clamp(56px, 8.2vw, 118px);
  line-height: 0.91;
}

h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 68px);
  line-height: 1.02;
}

h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

p {
  color: var(--muted);
  line-height: 1.62;
}

.lede {
  max-width: 780px;
  margin: 28px 0 0;
  font-size: clamp(19px, 2vw, 25px);
}

.product-surface {
  border: 1px solid var(--ink);
  background: var(--panel);
  box-shadow: 14px 14px 0 var(--yellow), 0 28px 80px rgba(21, 19, 15, 0.1);
}

.surface-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--ink);
  background: var(--cream);
  font-size: 13px;
  font-weight: 850;
}

.surface-title {
  padding: 22px;
}

.surface-title p {
  margin: 0 0 8px;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.surface-title h2 {
  font-size: clamp(34px, 4.8vw, 58px);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 520;
}

.reaction-stack {
  padding: 0 22px;
}

.reaction-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.reaction-row span {
  color: var(--muted);
}

.hero-actions {
  gap: 10px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.primary-action, .ghost-action, #copy-install-prompt, .command-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  cursor: pointer;
  font-weight: 820;
}

.primary-action, #copy-install-prompt {
  background: var(--ink);
  color: #fff;
}

.ghost-action, .command-button {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
}

.signal-card, .install-card, .distribution-card, .voice-card, .pricing-grid article, .workflow-grid article, .terminal-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 22px 60px var(--shadow);
}

.signal-card {
  padding: 22px;
}

.signal-card h2 {
  font-size: 32px;
  margin-bottom: 18px;
}

.signal-row, .bar-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.signal-row span, .bar-row span {
  color: var(--muted);
}

blockquote {
  margin: 20px 0 0;
  padding: 14px 18px 22px 18px;
  border-left: 3px solid var(--ink);
  line-height: 1.55;
}

.workflow-section, .usecase-section, .example-section, .install-section, .pricing-section, .quickstart-section {
  padding: 88px clamp(18px, 5vw, 64px);
  border-top: 1px solid var(--line);
}

.quickstart-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.68fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  background: var(--ink);
  color: #fff;
}

.quickstart-section p {
  color: rgba(255, 255, 255, 0.72);
}

.quickstart-section .eyebrow {
  color: var(--yellow);
}

.quickstart-section h2 {
  color: #fff;
}

.terminal-card {
  margin: 0;
  min-width: 0;
  padding: 22px;
  background: #0d0d0b;
  color: #f5efe3;
  overflow: auto;
  line-height: 1.62;
  white-space: pre;
}

.section-copy {
  max-width: 900px;
  margin-bottom: 28px;
}

.section-copy p:not(.eyebrow) {
  max-width: 760px;
  font-size: 20px;
}

.workflow-grid, .pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.workflow-grid article, .pricing-grid article {
  padding: 22px;
}

.workflow-grid span {
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 850;
}

.usecase-section, .install-section {
  background: var(--panel);
}

.usecase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: var(--panel);
}

.usecase-grid div {
  min-height: 92px;
  display: flex;
  align-items: center;
  padding: 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-weight: 760;
}

.example-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1fr);
  gap: 18px;
}

.distribution-card, .voice-card {
  padding: 22px;
}

.voice-card p {
  margin: 0;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
}

.install-card {
  min-width: 0;
}

.install-card-top {
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.install-card-top h2 {
  font-size: clamp(22px, 3vw, 34px);
}

pre { margin: 0; }

.install-card pre {
  max-height: 330px;
  overflow: auto;
  padding: 22px;
  background: var(--ink);
  color: #eef1ea;
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.command-button {
  width: 100%;
  border-width: 1px 0 0;
  background: var(--soft);
}

.pricing-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.pricing-grid h3 {
  font-size: 30px;
}

@media (max-width: 980px) {
  .hero, .product-hero, .example-layout, .quickstart-section {
    grid-template-columns: 1fr;
  }
  .workflow-grid, .pricing-grid, .usecase-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
  h1 {
    font-size: clamp(48px, 14vw, 82px);
  }
}

/* Essay LP: quiet single-column sales letter for Yomira. */
.essay-page {
  --essay-bg: #ffffff;
  --essay-ink: #0a0a0b;
  --essay-text: #27272a;
  --essay-mid: #3f3f46;
  --essay-muted: #71717a;
  --essay-line: #e4e4e7;
  background: var(--essay-bg);
  color: var(--essay-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", system-ui, sans-serif;
}

.essay-page a {
  text-decoration: none;
}

.essay-shell {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 32px 24px 40px;
}

.essay-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 88px;
}

.essay-brand {
  color: var(--essay-ink);
  font-size: 15px;
  font-weight: 620;
}

.essay-nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--essay-muted);
  font-size: 14px;
}

.essay-nav-links a:hover,
.essay-link:hover,
.essay-footer a:hover {
  color: var(--essay-ink);
}

.essay-hero,
.essay-section {
  margin-bottom: 96px;
}

.essay-section,
.essay-footer {
  max-width: 816px;
  margin-right: auto;
  margin-left: auto;
}

.essay-hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.72fr);
  gap: clamp(34px, 6vw, 76px);
  align-items: center;
  min-height: calc(100vh - 168px);
}

.essay-hero-copy {
  min-width: 0;
}

.essay-kicker {
  margin: 0 0 16px;
  color: var(--essay-muted);
  font-size: 12px;
  font-weight: 680;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.essay-hero h1 {
  max-width: none;
  color: var(--essay-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", system-ui, sans-serif;
  font-size: clamp(42px, 6vw, 68px);
  font-weight: 660;
  letter-spacing: 0;
  line-height: 1.12;
}

.essay-lede {
  max-width: 720px;
  margin: 28px 0 0;
  color: var(--essay-mid);
  font-size: 20px;
  line-height: 1.7;
}

.essay-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.essay-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 6px;
  background: var(--essay-ink);
  color: #ffffff;
  font-size: 15px;
  font-weight: 560;
}

.essay-button:hover {
  background: #3f3f46;
}

.essay-button-small {
  min-height: 38px;
  padding: 0 14px;
  font-size: 14px;
}

.essay-link {
  color: var(--essay-muted);
  font-size: 15px;
  font-weight: 520;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.essay-section h2 {
  margin: 0 0 14px;
  color: var(--essay-muted);
  font-size: 12px;
  font-weight: 680;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
}

.essay-section > p {
  margin: 0;
  color: var(--essay-text);
  font-size: 19px;
  line-height: 1.75;
}

.essay-feature-list,
.essay-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--essay-text);
  font-size: 19px;
  line-height: 1.72;
}

.essay-feature-list {
  display: grid;
  gap: 22px;
}

.essay-feature-list span,
.essay-steps div {
  color: var(--essay-ink);
  font-weight: 620;
}

.essay-steps {
  display: grid;
  gap: 24px;
}

.essay-steps p {
  margin: 5px 0 0;
  color: var(--essay-mid);
  font-size: 18px;
  line-height: 1.7;
}

.essay-output {
  border-top: 1px solid var(--essay-line);
}

.essay-output div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--essay-line);
  color: var(--essay-mid);
  font-size: 18px;
}

.essay-output strong {
  color: var(--essay-ink);
  font-weight: 650;
}

.essay-quote {
  margin: 28px 0 0;
  padding: 0 0 0 18px;
  border-left: 2px solid var(--essay-ink);
  color: var(--essay-text);
  font-size: 19px;
  line-height: 1.7;
}

.essay-small-note {
  margin: 14px 0 0;
  color: var(--essay-muted);
  font-size: 13px;
  line-height: 1.6;
}

.yomira-live-panel {
  border: 1px solid var(--essay-ink);
  background: #ffffff;
  box-shadow: 16px 16px 0 #f1f1f1;
}

.yomira-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--essay-ink);
  color: var(--essay-muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.yomira-panel-head strong {
  color: var(--essay-ink);
  font-weight: 700;
}

.yomira-panel-body {
  padding: 18px;
}

.yomira-panel-title {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--essay-line);
}

.yomira-panel-title span {
  display: block;
  margin-bottom: 6px;
  color: var(--essay-muted);
  font-size: 12px;
  font-weight: 650;
}

.yomira-panel-title p {
  margin: 0;
  color: var(--essay-ink);
  font-size: 17px;
  font-weight: 620;
  line-height: 1.5;
}

.yomira-result-list {
  display: grid;
}

.yomira-result-list div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 14px;
  padding: 17px 0;
  border-bottom: 1px solid var(--essay-line);
}

.yomira-result-list strong {
  grid-row: span 2;
  min-width: 48px;
  color: var(--essay-ink);
  font-size: 22px;
  font-weight: 720;
  letter-spacing: -0.02em;
}

.yomira-result-list span {
  color: var(--essay-ink);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
}

.yomira-result-list p {
  margin: 0;
  color: var(--essay-mid);
  font-size: 13px;
  line-height: 1.55;
}

.yomira-panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  color: var(--essay-muted);
  font-size: 12px;
  line-height: 1.45;
}

.yomira-panel-footer a {
  flex: 0 0 auto;
  color: var(--essay-ink);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.essay-pricing {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 28px 0 28px;
  border-top: 1px solid var(--essay-line);
  border-left: 1px solid var(--essay-line);
}

.essay-pricing div {
  min-height: 124px;
  padding: 18px;
  border-right: 1px solid var(--essay-line);
  border-bottom: 1px solid var(--essay-line);
}

.essay-pricing strong,
.essay-pricing span {
  display: block;
}

.essay-pricing strong {
  margin-bottom: 8px;
  color: var(--essay-ink);
  font-size: 22px;
  font-weight: 650;
}

.essay-pricing span {
  color: var(--essay-muted);
  font-size: 14px;
  line-height: 1.55;
}

.essay-comparison,
.essay-case-grid,
.essay-interview-list {
  display: grid;
  gap: 0;
  margin-top: 28px;
  border-top: 1px solid var(--essay-line);
  border-left: 1px solid var(--essay-line);
}

.essay-comparison {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.essay-case-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.essay-interview-list {
  grid-template-columns: 1fr;
}

.essay-comparison div,
.essay-case-grid article,
.essay-interview-list div {
  min-height: 132px;
  padding: 18px;
  border-right: 1px solid var(--essay-line);
  border-bottom: 1px solid var(--essay-line);
}

.essay-comparison strong,
.essay-comparison span,
.essay-case-grid strong,
.essay-case-grid p,
.essay-interview-list strong,
.essay-interview-list p {
  display: block;
}

.essay-comparison strong,
.essay-case-grid strong,
.essay-interview-list strong {
  color: var(--essay-ink);
  font-size: 17px;
  font-weight: 650;
  line-height: 1.45;
}

.essay-comparison span,
.essay-case-grid p,
.essay-interview-list p {
  margin: 8px 0 0;
  color: var(--essay-mid);
  font-size: 15px;
  line-height: 1.65;
}

.enterprise-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--essay-line);
}

.enterprise-contact strong,
.enterprise-contact span {
  display: block;
}

.enterprise-contact strong {
  color: var(--essay-ink);
  font-size: 15px;
  font-weight: 650;
}

.enterprise-contact span {
  margin-top: 3px;
  color: var(--essay-muted);
  font-size: 14px;
  line-height: 1.55;
}

.enterprise-contact code {
  color: var(--essay-ink);
  font-size: 13px;
  white-space: nowrap;
}

.enterprise-cal-link {
  text-decoration: none;
}

.essay-code {
  overflow: auto;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--essay-line);
  border-radius: 6px;
  background: #fafafa;
  color: var(--essay-text);
  font-size: 13px;
  line-height: 1.65;
  white-space: pre;
}

.essay-faq {
  display: grid;
  gap: 28px;
}

.site-mode-tabs {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 30;
  display: flex;
  justify-content: center;
  gap: 12px;
  transform: translateX(-50%);
  padding: 6px;
  border: 1px solid var(--essay-line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 34px rgba(10, 10, 11, 0.08);
}

.site-mode-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--essay-line);
  border-radius: 0;
  background: transparent;
  color: var(--essay-muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
}

.site-mode-tabs a[aria-current="page"] {
  border-color: var(--essay-ink);
  color: var(--essay-ink);
}

.essay-faq h3 {
  margin: 0;
  color: var(--essay-ink);
  font-size: 17px;
  font-weight: 620;
}

.essay-faq p {
  margin: 6px 0 0;
  color: var(--essay-mid);
  font-size: 17px;
  line-height: 1.68;
}

.essay-footer {
  display: grid;
  gap: 8px;
  padding-top: 36px;
  border-top: 1px solid var(--essay-line);
  color: var(--essay-muted);
  font-size: 14px;
}

.essay-footer a {
  color: var(--essay-muted);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.docs-shell {
  width: min(100%, 900px);
}

.docs-hero {
  margin-bottom: 84px;
}

.docs-card-section {
  padding: 24px;
  border: 1px solid var(--essay-line);
  border-radius: 8px;
}

.docs-copy-card {
  margin-top: 22px;
  border: 1px solid var(--essay-line);
  border-radius: 8px;
  overflow: hidden;
}

.docs-copy-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--essay-line);
  background: #ffffff;
}

.docs-copy-head strong {
  color: var(--essay-ink);
  font-size: 14px;
  font-weight: 620;
  line-height: 1.4;
}

.docs-copy-button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--essay-line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--essay-ink);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 560;
}

.docs-copy-button:hover {
  border-color: var(--essay-ink);
}

.docs-copy-card .essay-code {
  border: 0;
  border-radius: 0;
}

.docs-pricing {
  margin-bottom: 0;
}

@media (max-width: 720px) {
  .essay-shell {
    padding: 24px 20px 34px;
  }

  .essay-nav {
    align-items: flex-start;
    margin-bottom: 72px;
  }

  .essay-nav-links {
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
  }

  .essay-nav-links a:not(.essay-button) {
    display: none;
  }

  .essay-hero,
  .essay-section {
    margin-bottom: 76px;
  }

  .essay-hero-split {
    grid-template-columns: 1fr;
    gap: 34px;
    min-height: 0;
  }

  .essay-hero h1 {
    font-size: clamp(36px, 11vw, 46px);
  }

  .essay-lede,
  .essay-section > p,
  .essay-feature-list,
  .essay-steps {
    font-size: 18px;
  }

  .essay-pricing {
    grid-template-columns: 1fr;
  }

  .essay-comparison,
  .essay-case-grid {
    grid-template-columns: 1fr;
  }

  .enterprise-contact {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .enterprise-contact code {
    white-space: normal;
  }

  .yomira-live-panel {
    box-shadow: 8px 8px 0 #f1f1f1;
  }

  .yomira-panel-head,
  .yomira-panel-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .yomira-result-list div {
    grid-template-columns: 1fr;
  }

  .yomira-result-list strong {
    grid-row: auto;
  }

  .docs-card-section {
    padding: 18px;
  }

  .docs-copy-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-mode-tabs {
    bottom: 14px;
    max-width: calc(100vw - 28px);
  }

  .site-mode-tabs a {
    min-height: 34px;
    padding: 0 10px;
    font-size: 12px;
  }
}
