:root {
  --bg: #eee8dd;
  --app-bg: #f5f0e7;
  --paper: #fffcf6;
  --paper-2: #fbf7ef;
  --ink: #272b25;
  --ink-2: #50564c;
  --muted: #7e7567;
  --faint: #a29889;
  --line: rgba(57, 48, 36, 0.1);
  --line-strong: rgba(57, 48, 36, 0.17);
  --green: #3f5b4a;
  --green-deep: #2c4034;
  --sage: #e9eee7;
  --sage-line: rgba(63, 91, 74, 0.18);
  --coral: #c16a50;
  --coral-deep: #9f503b;
  --rose: #f4e1d8;
  --rose-line: rgba(159, 80, 59, 0.2);
  --blue: #4e6677;
  --blue-soft: #eaf0f2;
  --slate: #e8ecee;
  --gold: #b48a5c;
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 22px 46px -34px rgba(52, 39, 26, 0.48);
  --shadow-soft: 0 12px 28px -22px rgba(52, 39, 26, 0.4);
  --ease: cubic-bezier(0.22, 0.7, 0.24, 1);
}

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

[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  background:
    radial-gradient(900px 700px at 0% 0%, rgba(241, 215, 200, 0.65), transparent 58%),
    radial-gradient(900px 700px at 100% 100%, rgba(206, 222, 211, 0.7), transparent 58%),
    linear-gradient(140deg, #e9e2d6, #f0ebe1);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

h1, h2, h3, h4, p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
}

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

.icon {
  width: 17px;
  height: 17px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

::selection {
  background: rgba(193, 106, 80, 0.2);
}

:focus-visible {
  outline: 2px solid rgba(63, 91, 74, 0.5);
  outline-offset: 2px;
}

noscript {
  display: block;
  padding: 20px;
  text-align: center;
}

/* -------------------------------------------------- shell */

.stage {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  align-items: stretch;
  justify-content: center;
}

.app {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 460px;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(420px 300px at 100% -8%, rgba(242, 218, 204, 0.7), transparent 70%),
    radial-gradient(420px 320px at -10% 100%, rgba(219, 230, 220, 0.65), transparent 70%),
    var(--app-bg);
  isolation: isolate;
}

.app::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.75'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

.screen {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 20px;
  scrollbar-width: none;
}

.screen::-webkit-scrollbar {
  display: none;
}

.page {
  padding-top: calc(18px + env(safe-area-inset-top));
  padding-bottom: 28px;
}

.page.enter {
  animation: pageIn 0.32s var(--ease) both;
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
}

.tabbar {
  position: relative;
  z-index: 3;
  display: flex;
  flex: none;
  align-items: center;
  gap: 4px;
  padding: 7px 10px calc(7px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(252, 249, 243, 0.92);
  backdrop-filter: blur(18px) saturate(1.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.08);
}

.tab {
  display: flex;
  flex: 1;
  min-height: 46px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 3px 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--faint);
  font-size: 9px;
  letter-spacing: 0.04em;
  transition: color 0.2s var(--ease);
}

.tab-icon {
  display: grid;
  width: 32px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.tab .icon {
  width: 17px;
  height: 17px;
}

.tab[aria-current="page"] {
  color: var(--green-deep);
}

.tab[aria-current="page"] .tab-icon {
  background: var(--sage);
  color: var(--green-deep);
}

@media (min-width: 760px) {
  .stage {
    align-items: center;
    padding: 18px;
  }

  .app {
    height: min(900px, calc(100dvh - 36px));
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 34px;
    box-shadow:
      0 40px 90px -40px rgba(45, 34, 22, 0.5),
      0 0 0 1px rgba(65, 49, 32, 0.05);
  }

  .screen {
    padding: 0 24px;
  }

  .tabbar {
    padding-bottom: 10px;
  }
}

/* -------------------------------------------------- shared bits */

.eyebrow {
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.screen-title {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.screen-sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.01em;
}

.section {
  margin-top: 24px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.section-head h2,
.section-head h3 {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.045em;
}

.section-head .count {
  color: var(--muted);
  font-size: 9.5px;
  font-variant-numeric: tabular-nums;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 9.5px;
  letter-spacing: 0.02em;
}

.link-btn .icon {
  width: 11px;
  height: 11px;
}

.link-btn:hover {
  color: var(--green-deep);
}

.round-btn {
  display: grid;
  width: 36px;
  height: 36px;
  flex: none;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 252, 246, 0.7);
  color: var(--ink-2);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.round-btn:hover {
  border-color: var(--line-strong);
  background: var(--paper);
}

.round-btn .icon {
  width: 16px;
  height: 16px;
}

.avatar {
  display: grid;
  width: 34px;
  height: 34px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1;
}

.avatar-peach {
  color: #733a2b;
  background: linear-gradient(145deg, #f2d5c6, #e3ad92);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.avatar-sage {
  color: #2f4a3b;
  background: linear-gradient(145deg, #dfe8df, #aebfae);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.avatar-blue {
  color: #31495a;
  background: linear-gradient(145deg, #e0e8ec, #adc1cb);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.avatar-slate {
  color: #3b4d53;
  background: linear-gradient(145deg, #e7ecee, #bcc9ce);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.5;
}

.tag-sage {
  border: 1px solid var(--sage-line);
  background: var(--sage);
  color: var(--green);
}

.tag-rose {
  border: 1px solid var(--rose-line);
  background: var(--rose);
  color: var(--coral-deep);
}

.tag-blue {
  border: 1px solid rgba(78, 102, 119, 0.16);
  background: var(--blue-soft);
  color: var(--blue);
}

.primary-btn {
  display: inline-flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 16px;
  border: 0;
  border-radius: 14px;
  background: var(--green);
  color: #fbf7ee;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  box-shadow: 0 14px 26px -18px rgba(44, 64, 52, 0.6);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.primary-btn:hover {
  background: var(--green-deep);
  box-shadow: 0 16px 30px -16px rgba(44, 64, 52, 0.64);
  transform: translateY(-1px);
}

.primary-btn:disabled {
  background: rgba(57, 48, 36, 0.13);
  color: var(--faint);
  box-shadow: none;
  transform: none;
}

.secondary-btn {
  display: inline-flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: rgba(255, 252, 246, 0.65);
  color: var(--ink-2);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.secondary-btn:hover {
  border-color: rgba(63, 91, 74, 0.28);
  background: var(--paper);
}

.ghost-btn {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 9.5px;
}

.ghost-btn:hover {
  background: rgba(255, 252, 246, 0.5);
  color: var(--ink-2);
}

.mini-btn {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 3px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 252, 246, 0.5);
  color: var(--green-deep);
  font-size: 9px;
  white-space: nowrap;
}

.mini-btn:hover {
  background: var(--sage);
  border-color: var(--sage-line);
}

.check-btn {
  position: relative;
  display: grid;
  width: 21px;
  height: 21px;
  flex: none;
  place-items: center;
  padding: 0;
  border: 1.5px solid rgba(57, 48, 36, 0.24);
  border-radius: 50%;
  background: transparent;
  color: transparent;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.check-btn::after {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 50%;
}

.check-btn .icon {
  width: 11px;
  height: 11px;
  stroke-width: 2.3;
}

.check-btn:hover {
  border-color: var(--green);
}

.check-btn[aria-pressed="true"] {
  border-color: var(--green);
  background: var(--green);
  color: #fffbf3;
}

.is-done .check-btn {
  border-color: var(--green);
  background: var(--green);
  color: #fffbf3;
}

.is-done .done-title {
  color: var(--faint);
  text-decoration: line-through;
  text-decoration-color: rgba(57, 48, 36, 0.28);
}

.progress {
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(57, 48, 36, 0.08);
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--coral));
  transition: width 0.45s var(--ease);
}

.empty {
  padding: 20px 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.7;
  text-align: center;
}

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

/* -------------------------------------------------- home */

.home-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 39px;
  height: 39px;
  flex: none;
  place-items: center;
  border-radius: 12px;
  background: var(--green-deep);
  color: #f7f1e6;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1;
  box-shadow: 0 10px 20px -16px rgba(37, 52, 43, 0.8);
}

.brand-mark::after {
  content: "";
  position: absolute;
  right: 7px;
  bottom: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--coral);
}

.brand-text h1 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.14em;
}

.brand-text p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8.5px;
  letter-spacing: 0.1em;
}

.user-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  flex: none;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: linear-gradient(145deg, #f1d4c5, #deaa92);
  color: #6b3427;
  font-family: var(--serif);
  font-size: 14px;
  box-shadow: 0 7px 16px -12px rgba(80, 45, 28, 0.55);
}

.greeting {
  margin: 24px 2px 17px;
}

.greeting h2 {
  margin-top: 6px;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 600;
  letter-spacing: 0.035em;
  line-height: 1.35;
}

.greeting p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-radius: 22px;
  background:
    radial-gradient(300px 200px at 100% 0%, rgba(173, 199, 180, 0.2), transparent 65%),
    linear-gradient(150deg, #354a3d, #26372d);
  color: #f8f2e7;
  box-shadow: 0 20px 36px -26px rgba(39, 53, 44, 0.7);
}

.hero-card::before {
  content: "“";
  position: absolute;
  top: -42px;
  right: 10px;
  color: rgba(255, 252, 244, 0.055);
  font-family: var(--serif);
  font-size: 150px;
  line-height: 1;
  pointer-events: none;
}

.hero-eyebrow {
  position: relative;
  color: rgba(248, 242, 231, 0.55);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.hero-title {
  position: relative;
  margin-top: 5px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.035em;
}

.hero-form {
  position: relative;
  margin-top: 13px;
}

.hero-input {
  display: block;
  width: 100%;
  min-height: 64px;
  padding: 10px 12px;
  resize: none;
  border: 1px solid rgba(255, 252, 244, 0.13);
  border-radius: 13px;
  outline: 0;
  background: rgba(255, 252, 244, 0.075);
  color: #fffaf0;
  font-size: 12.5px;
  line-height: 1.65;
  scrollbar-width: none;
}

.hero-input::placeholder {
  color: rgba(248, 242, 231, 0.45);
}

.hero-input:focus {
  border-color: rgba(255, 252, 244, 0.3);
  background: rgba(255, 252, 244, 0.1);
}

.hero-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 9px;
}

.person-chip {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 6px;
  padding: 4px 9px 4px 4px;
  border: 1px solid rgba(255, 252, 244, 0.12);
  border-radius: 999px;
  background: rgba(255, 252, 244, 0.06);
  color: rgba(248, 242, 231, 0.84);
  font-size: 9.5px;
}

.person-chip .avatar {
  width: 23px;
  height: 23px;
  font-size: 9px;
}

.person-chip .icon {
  width: 10px;
  height: 10px;
  opacity: 0.6;
}

.hero-submit {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 4px;
  padding: 6px 13px;
  border: 0;
  border-radius: 10px;
  background: var(--coral);
  color: #fffaf3;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.hero-submit:hover {
  background: var(--coral-deep);
  transform: translateY(-1px);
}

.hero-submit .icon {
  width: 12px;
  height: 12px;
}

.hero-samples {
  position: relative;
  display: flex;
  gap: 5px;
  margin-top: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.hero-samples::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: none;
  max-width: 210px;
  overflow: hidden;
  padding: 5px 8px;
  border: 1px solid rgba(255, 252, 244, 0.11);
  border-radius: 999px;
  background: rgba(255, 252, 244, 0.045);
  color: rgba(248, 242, 231, 0.64);
  font-size: 8.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chip:hover {
  background: rgba(255, 252, 244, 0.09);
  color: rgba(248, 242, 231, 0.9);
}

.hero-hint {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  color: rgba(248, 242, 231, 0.4);
  font-size: 8px;
  letter-spacing: 0.02em;
}

.hero-hint .icon {
  width: 9px;
  height: 9px;
}

.people-rail {
  display: grid;
  grid-auto-columns: 108px;
  grid-auto-flow: column;
  gap: 8px;
  overflow-x: auto;
  padding: 1px 0 4px;
  scrollbar-width: none;
}

.people-rail::-webkit-scrollbar {
  display: none;
}

.person-card {
  display: flex;
  min-height: 122px;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 12px 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 252, 246, 0.64);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 10px 22px -24px rgba(53, 40, 27, 0.45);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.person-card:hover {
  border-color: rgba(63, 91, 74, 0.24);
  background: var(--paper);
  transform: translateY(-1px);
}

.person-card .avatar {
  width: 34px;
  height: 34px;
  margin-bottom: 1px;
}

.person-card-name {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.person-card-meta {
  color: var(--muted);
  font-size: 8.5px;
}

.person-card-mode {
  margin-top: auto;
  color: var(--green);
  font-size: 8px;
  letter-spacing: 0.03em;
}

.reminder-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 252, 246, 0.69);
}

.reminder-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  border-bottom: 1px solid var(--line);
}

.reminder-row:last-child {
  border-bottom: 0;
}

.reminder-info {
  flex: 1;
  min-width: 0;
}

.reminder-title {
  display: block;
  overflow: hidden;
  font-size: 11.5px;
  line-height: 1.55;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reminder-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
  color: var(--faint);
  font-size: 8.5px;
}

.reminder-meta .icon {
  width: 9px;
  height: 9px;
}

.date-badge {
  flex: none;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--sage);
  color: var(--green);
  font-size: 8.5px;
  white-space: nowrap;
}

.date-badge.late {
  background: var(--rose);
  color: var(--coral-deep);
}

.insight-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  gap: 5px;
  margin-bottom: 7px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 252, 246, 0.68);
  color: var(--ink);
  text-align: left;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.insight-card:hover {
  border-color: rgba(63, 91, 74, 0.24);
  background: var(--paper);
}

.insight-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  width: 100%;
  color: var(--faint);
  font-size: 8.5px;
}

.insight-meta .avatar {
  width: 20px;
  height: 20px;
  font-size: 8px;
}

.insight-quote {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 2px;
  font-family: var(--serif);
  font-size: 12.5px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.insight-summary {
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.6;
}

/* -------------------------------------------------- translate */

.person-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 252, 246, 0.68);
}

.person-bar .avatar {
  width: 37px;
  height: 37px;
  font-size: 14px;
}

.person-bar-info {
  flex: 1;
  min-width: 0;
}

.person-bar-info strong {
  display: block;
  overflow: hidden;
  font-size: 12.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person-bar-info small {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.soft-btn {
  display: inline-flex;
  min-height: 32px;
  flex: none;
  align-items: center;
  gap: 3px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-2);
  font-size: 9px;
}

.soft-btn .icon {
  width: 10px;
  height: 10px;
}

.capture-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 252, 246, 0.86);
  box-shadow: var(--shadow-soft);
}

.source-row {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.source-chip {
  min-height: 27px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 8.5px;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.source-chip[aria-pressed="true"] {
  border-color: var(--sage-line);
  background: var(--sage);
  color: var(--green-deep);
}

.source-note {
  margin-left: auto;
  color: var(--faint);
  font-size: 7.5px;
}

.quote-wrap {
  position: relative;
}

.quote-wrap::before {
  content: "“";
  position: absolute;
  top: -10px;
  left: 8px;
  color: rgba(63, 91, 74, 0.15);
  font-family: var(--serif);
  font-size: 42px;
  line-height: 1;
  pointer-events: none;
}

.quote-input {
  display: block;
  width: 100%;
  min-height: 108px;
  padding: 17px 13px 12px;
  resize: none;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: 0;
  background: #fcf9f2;
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.8;
  scrollbar-width: none;
}

.quote-input::placeholder {
  color: var(--faint);
}

.quote-input:focus {
  border-color: rgba(63, 91, 74, 0.32);
  box-shadow: 0 0 0 3px rgba(63, 91, 74, 0.05);
}

.input-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 7px;
  color: var(--faint);
  font-size: 8px;
}

.ghost-mini {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 6px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 8.5px;
}

.ghost-mini:hover {
  background: rgba(63, 91, 74, 0.06);
  color: var(--green-deep);
}

.sample-row {
  display: flex;
  gap: 5px;
  margin-top: 9px;
  overflow-x: auto;
  padding-bottom: 1px;
  scrollbar-width: none;
}

.sample-row::-webkit-scrollbar {
  display: none;
}

.sample-btn {
  flex: none;
  max-width: 220px;
  overflow: hidden;
  padding: 5px 8px;
  border: 1px dashed var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 252, 246, 0.4);
  color: var(--muted);
  font-size: 8.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sample-btn:hover {
  border-color: rgba(63, 91, 74, 0.28);
  background: var(--sage);
  color: var(--green-deep);
}

.translate-cta {
  margin-top: 11px;
}

.privacy-line {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin: 12px 3px 0;
  color: var(--faint);
  font-size: 8.5px;
  line-height: 1.7;
}

.privacy-line .icon {
  width: 10px;
  height: 10px;
  margin-top: 2px;
}

.loading-card {
  margin-top: 14px;
  padding: 20px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  text-align: center;
}

.loading-dots {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 10px;
}

.loading-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  animation: dotPulse 1.2s infinite ease-in-out;
}

.loading-dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.loading-dots span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes dotPulse {
  0%, 100% { opacity: 0.25; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}

.loading-card strong {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
}

.loading-card p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9.5px;
}

.result-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.result-back {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 4px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 252, 246, 0.5);
  color: var(--muted);
  font-size: 9.5px;
}

.result-back .icon {
  width: 12px;
  height: 12px;
  transform: rotate(180deg);
}

.result-person {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 8.5px;
}

.result-person .avatar {
  width: 22px;
  height: 22px;
  font-size: 8px;
}

.result-hero {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.result-hero-label {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.result-quote {
  margin-top: 7px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.65;
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
}

.result-summary {
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 10px;
}

.split-card {
  padding: 11px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-size: 10px;
  line-height: 1.7;
}

.split-card.fact {
  border-color: var(--sage-line);
  background: var(--sage);
  color: var(--green-deep);
}

.split-card.emotion {
  border-color: var(--rose-line);
  background: var(--rose);
  color: #763f30;
}

.split-label {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 4px;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.07em;
  opacity: 0.7;
}

.split-label .icon {
  width: 9px;
  height: 9px;
}

.needs-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px;
}

.need-label {
  margin-right: 1px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.03em;
}

.need-chip {
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 252, 246, 0.6);
  color: var(--ink-2);
  font-size: 8.5px;
}

.possible-card,
.reply-card {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 252, 246, 0.84);
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 3px;
}

.card-head h3 {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.card-head .eyebrow {
  padding-top: 2px;
  font-size: 7.5px;
}

.card-sub {
  color: var(--faint);
  font-size: 8.5px;
  line-height: 1.6;
}

.possible-item {
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}

.possible-item:first-of-type {
  padding-top: 11px;
}

.possible-item:last-child {
  padding-bottom: 2px;
  border-bottom: 0;
}

.possible-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 7px;
}

.possible-title {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.65;
}

.possible-score {
  flex: none;
  color: var(--muted);
  font-size: 8px;
  font-variant-numeric: tabular-nums;
}

.meter {
  height: 3px;
  margin-top: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(57, 48, 36, 0.07);
}

.meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--coral));
  animation: meterGrow 0.7s var(--ease) both;
}

@keyframes meterGrow {
  from { width: 0; }
}

.possible-cue {
  margin-top: 5px;
  color: var(--muted);
  font-size: 8.5px;
  line-height: 1.65;
}

.reverse-card {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--rose-line);
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(244, 225, 216, 0.9), rgba(250, 242, 233, 0.7));
}

.reverse-card .icon {
  width: 14px;
  height: 14px;
  margin-top: 1px;
  color: var(--coral-deep);
}

.reverse-card strong {
  display: block;
  color: #713e2e;
  font-size: 10.5px;
  font-weight: 600;
}

.reverse-card p {
  margin-top: 3px;
  color: #8c6353;
  font-size: 8.5px;
  line-height: 1.7;
}

.tone-switch {
  display: flex;
  gap: 3px;
  margin: 10px 0;
  padding: 3px;
  border-radius: 10px;
  background: #f0eae0;
}

.tone-btn {
  flex: 1;
  min-height: 31px;
  padding: 4px 3px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 8.5px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.tone-btn.is-active {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 4px 10px -8px rgba(45, 34, 22, 0.55);
}

.reply-text {
  padding: 12px 13px;
  border-radius: 4px 14px 14px 14px;
  background: var(--sage);
  color: var(--ink);
  font-size: 12px;
  line-height: 1.8;
}

.reply-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}

.reply-note {
  color: var(--faint);
  font-size: 8px;
}

.copy-btn {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 3px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--green-deep);
  font-size: 8.5px;
}

.copy-btn .icon {
  width: 10px;
  height: 10px;
}

.result-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 12px;
}

.action-btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 252, 246, 0.7);
  color: var(--ink-2);
  font-size: 10px;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.action-btn:hover {
  border-color: rgba(63, 91, 74, 0.28);
  background: var(--paper);
}

.action-btn .icon {
  width: 13px;
  height: 13px;
}

.action-btn.ask {
  grid-column: 1 / -1;
  border-color: transparent;
  background: var(--ink);
  color: #f8f2e7;
}

.action-btn.ask:hover {
  background: var(--green-deep);
}

.action-btn:disabled {
  color: var(--green);
  background: var(--sage);
  border-color: var(--sage-line);
}

.disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin: 12px 3px 0;
  color: var(--faint);
  font-size: 8.5px;
  line-height: 1.7;
}

.disclaimer .icon {
  width: 10px;
  height: 10px;
  margin-top: 2px;
}

/* -------------------------------------------------- records */

.segment {
  display: flex;
  gap: 3px;
  margin-bottom: 16px;
  padding: 3px;
  border-radius: 12px;
  background: rgba(57, 48, 36, 0.055);
}

.segment button {
  flex: 1;
  min-height: 35px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 10.5px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.segment button.is-active {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 5px 12px -10px rgba(45, 34, 22, 0.5);
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 18px;
}

.stat {
  padding: 10px 9px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 252, 246, 0.64);
}

.stat strong {
  display: block;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.2;
}

.stat span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
}

.people-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.person-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 252, 246, 0.66);
  color: var(--ink);
  text-align: left;
}

.person-tile:hover {
  border-color: rgba(63, 91, 74, 0.24);
  background: var(--paper);
}

.person-tile .avatar {
  width: 32px;
  height: 32px;
}

.person-tile strong {
  font-size: 11.5px;
  font-weight: 600;
}

.person-tile small {
  color: var(--muted);
  font-size: 8.5px;
}

.record-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.record-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  gap: 5px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 252, 246, 0.68);
  color: var(--ink);
  text-align: left;
}

.record-card:hover {
  border-color: rgba(63, 91, 74, 0.24);
  background: var(--paper);
}

.record-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  width: 100%;
  color: var(--faint);
  font-size: 8px;
}

.record-top .avatar {
  width: 19px;
  height: 19px;
  font-size: 7.5px;
}

.record-quote {
  display: -webkit-box;
  overflow: hidden;
  font-family: var(--serif);
  font-size: 12px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.record-summary {
  display: block;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
}

.work-hero {
  position: relative;
  overflow: hidden;
  padding: 16px;
  border-radius: 19px;
  background: linear-gradient(145deg, #334654, #27363f);
  color: #f4f0e8;
}

.work-hero::after {
  content: "";
  position: absolute;
  top: -30px;
  right: -20px;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.work-hero h3 {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.work-hero p {
  margin-top: 5px;
  color: rgba(244, 240, 232, 0.6);
  font-size: 9px;
  line-height: 1.7;
}

.work-stats {
  display: flex;
  gap: 18px;
  margin-top: 12px;
}

.work-stats strong {
  display: block;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
}

.work-stats span {
  color: rgba(244, 240, 232, 0.5);
  font-size: 8px;
}

.task-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255, 252, 246, 0.72);
}

.task-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
}

.task-row:last-child {
  border-bottom: 0;
}

.task-info {
  flex: 1;
  min-width: 0;
}

.task-title {
  display: block;
  font-size: 10.5px;
  line-height: 1.55;
}

.task-due {
  margin-top: 2px;
  color: var(--faint);
  font-size: 8px;
}

.work-log-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.work-item {
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 252, 246, 0.68);
}

.work-date {
  color: var(--faint);
  font-size: 8px;
  letter-spacing: 0.03em;
}

.work-title {
  margin-top: 3px;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.work-detail {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.7;
}

.work-followup {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 7px;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 8px;
}

.work-followup .icon {
  width: 9px;
  height: 9px;
}

.add-row {
  display: flex;
  gap: 7px;
  margin-top: 9px;
}

.add-row .secondary-btn {
  min-height: 40px;
  font-size: 10px;
}

/* -------------------------------------------------- us */

.couple-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(159, 80, 59, 0.1);
  border-radius: 22px;
  background:
    radial-gradient(280px 200px at 100% 0%, rgba(255, 255, 255, 0.55), transparent 65%),
    linear-gradient(145deg, #f4e2d8, #f6efe3);
  box-shadow: var(--shadow-soft);
}

.couple-card::after {
  content: "♡";
  position: absolute;
  top: -12px;
  right: 14px;
  color: rgba(159, 80, 59, 0.08);
  font-family: var(--serif);
  font-size: 110px;
  line-height: 1;
}

.pair {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.pair .avatar {
  width: 38px;
  height: 38px;
  border: 2px solid rgba(255, 252, 246, 0.9);
}

.pair .avatar + .avatar {
  margin-left: -9px;
}

.pair .pair-note {
  margin-left: 9px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.03em;
}

.couple-card h2 {
  position: relative;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.045em;
}

.couple-card .couple-sub {
  position: relative;
  margin-top: 5px;
  color: #8b6c5c;
  font-size: 9.5px;
  line-height: 1.7;
}

.couple-actions {
  position: relative;
  display: flex;
  gap: 7px;
  margin-top: 13px;
}

.couple-actions .primary-btn,
.couple-actions .secondary-btn {
  min-height: 38px;
  width: auto;
  padding: 7px 12px;
  font-size: 9.5px;
}

.couple-actions .primary-btn {
  flex: 1;
}

.couple-actions .secondary-btn {
  flex: none;
  background: rgba(255, 252, 246, 0.45);
}

.issue-card {
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 252, 246, 0.7);
}

.issue-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 0 6px;
}

.issue-head .eyebrow {
  font-size: 8px;
}

.issue-head span {
  color: var(--muted);
  font-size: 8.5px;
  font-variant-numeric: tabular-nums;
}

.issue-card .progress {
  margin-bottom: 4px;
}

.issue-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.issue-row:last-of-type {
  border-bottom: 0;
}

.issue-info {
  flex: 1;
  min-width: 0;
}

.issue-title {
  display: block;
  font-size: 11px;
  line-height: 1.6;
}

.issue-meta {
  display: block;
  margin-top: 2px;
  color: var(--faint);
  font-size: 8px;
}

.add-issue {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 3px;
  padding: 8px 0 9px;
  border-top: 1px dashed var(--line);
}

.add-issue input {
  flex: 1;
  min-width: 0;
  min-height: 34px;
  padding: 4px 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 10px;
}

.add-issue input::placeholder {
  color: var(--faint);
}

.add-issue button {
  display: grid;
  width: 28px;
  height: 28px;
  flex: none;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: #f8f2e7;
}

.add-issue button .icon {
  width: 12px;
  height: 12px;
}

.add-issue button:disabled {
  background: rgba(57, 48, 36, 0.08);
  color: var(--faint);
}

.all-done {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 0 11px;
  color: var(--green);
  font-size: 9.5px;
}

.all-done .icon {
  width: 14px;
  height: 14px;
}

.shared-dates {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255, 252, 246, 0.7);
}

.shared-date {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
}

.shared-date:last-child {
  border-bottom: 0;
}

.shared-date .date-icon {
  display: grid;
  width: 29px;
  height: 29px;
  flex: none;
  place-items: center;
  border-radius: 9px;
  background: var(--rose);
  color: var(--coral-deep);
}

.shared-date .date-icon .icon {
  width: 14px;
  height: 14px;
}

.shared-date-body {
  flex: 1;
  min-width: 0;
}

.shared-date-title {
  display: block;
  font-size: 10.5px;
}

.shared-date-meta {
  display: block;
  margin-top: 2px;
  color: var(--faint);
  font-size: 8px;
}

.daily-card {
  position: relative;
  overflow: hidden;
  padding: 16px;
  border-radius: 19px;
  background: linear-gradient(145deg, #354a3d, #293a30);
  color: #f7f1e6;
}

.daily-card::before {
  content: "“";
  position: absolute;
  right: 12px;
  bottom: -30px;
  color: rgba(255, 252, 244, 0.06);
  font-family: var(--serif);
  font-size: 120px;
  line-height: 1;
}

.daily-eyebrow {
  color: rgba(247, 241, 230, 0.5);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.daily-question {
  position: relative;
  margin-top: 6px;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.03em;
}

.daily-actions {
  position: relative;
  display: flex;
  justify-content: flex-end;
  margin-top: 11px;
}

.daily-actions button {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 252, 244, 0.16);
  border-radius: 999px;
  background: rgba(255, 252, 244, 0.08);
  color: rgba(247, 241, 230, 0.85);
  font-size: 8.5px;
}

.daily-actions .icon {
  width: 11px;
  height: 11px;
}

.slow-card {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 11px;
  font: inherit;
  color: inherit;
  text-align: left;
  appearance: none;
  cursor: pointer;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255, 252, 246, 0.66);
}

.slow-mark {
  display: grid;
  width: 36px;
  height: 36px;
  flex: none;
  place-items: center;
  border: 1px dashed rgba(159, 80, 59, 0.35);
  border-radius: 10px;
  color: var(--coral-deep);
  font-family: var(--serif);
  font-size: 16px;
  transform: rotate(-3deg);
}

.slow-copy {
  flex: 1;
  min-width: 0;
}

.slow-copy strong {
  display: block;
  font-family: var(--serif);
  font-size: 12.5px;
  font-weight: 600;
}

.slow-copy p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 8.5px;
  line-height: 1.6;
}

.slow-card .icon {
  width: 13px;
  height: 13px;
  color: var(--faint);
}

/* -------------------------------------------------- sheets */

.sheet-layer {
  position: absolute;
  inset: 0;
  z-index: 20;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(35, 28, 21, 0.42);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: fadeIn 0.24s var(--ease) both;
}

@keyframes fadeIn {
  from { opacity: 0; }
}

.sheet {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  max-height: 90%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-bottom: 0;
  border-radius: 26px 26px 0 0;
  background:
    radial-gradient(400px 200px at 100% 0%, rgba(242, 218, 204, 0.45), transparent 70%),
    var(--paper-2);
  box-shadow: 0 -24px 60px -30px rgba(39, 28, 17, 0.5);
  animation: sheetUp 0.34s var(--ease) both;
}

@keyframes sheetUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}

.sheet-grab {
  width: 34px;
  height: 4px;
  flex: none;
  margin: 8px auto 0;
  border-radius: 999px;
  background: rgba(57, 48, 36, 0.14);
}

.sheet-head {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 20px 6px;
}

.sheet-head h2 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.sheet-close {
  width: 32px;
  height: 32px;
}

.sheet-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 4px 20px calc(26px + env(safe-area-inset-bottom));
  scrollbar-width: none;
}

.sheet-body::-webkit-scrollbar {
  display: none;
}

.sheet-section {
  margin-top: 18px;
}

.sheet-section:first-child {
  margin-top: 8px;
}

.sheet-section h3 {
  color: var(--ink-2);
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.sheet-note {
  margin-top: 6px;
  color: var(--faint);
  font-size: 8.5px;
  line-height: 1.7;
}

.person-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 252, 246, 0.55);
  color: var(--ink);
  text-align: left;
}

.person-option + .person-option {
  margin-top: 6px;
}

.person-option:hover {
  border-color: rgba(63, 91, 74, 0.24);
  background: var(--paper);
}

.person-option.is-active {
  border-color: var(--sage-line);
  background: var(--sage);
}

.person-option .avatar {
  width: 34px;
  height: 34px;
}

.person-option-info {
  flex: 1;
  min-width: 0;
}

.person-option-info strong {
  display: block;
  font-size: 11.5px;
}

.person-option-info small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 8.5px;
}

.person-option .icon {
  width: 14px;
  height: 14px;
  color: var(--green);
}

.switch {
  position: relative;
  width: 40px;
  height: 24px;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(57, 48, 36, 0.14);
  transition: background 0.2s var(--ease);
}

.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fffdf8;
  box-shadow: 0 2px 5px rgba(45, 34, 22, 0.2);
  transition: transform 0.2s var(--ease);
}

.switch.on {
  background: var(--green);
}

.switch.on::after {
  transform: translateX(16px);
}

.setting-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.setting-row:last-child {
  border-bottom: 0;
}

.setting-icon {
  display: grid;
  width: 30px;
  height: 30px;
  flex: none;
  place-items: center;
  border-radius: 9px;
  background: var(--sage);
  color: var(--green);
}

.setting-icon .icon {
  width: 14px;
  height: 14px;
}

.setting-copy {
  flex: 1;
  min-width: 0;
}

.setting-copy strong {
  display: block;
  font-size: 10.5px;
  font-weight: 500;
}

.setting-copy small {
  display: block;
  margin-top: 2px;
  color: var(--faint);
  font-size: 8px;
  line-height: 1.5;
}

.status-pill {
  flex: none;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(57, 48, 36, 0.06);
  color: var(--muted);
  font-size: 7.5px;
  white-space: nowrap;
}

.status-pill.good {
  background: var(--sage);
  color: var(--green);
}

.status-pill.warm {
  background: var(--rose);
  color: var(--coral-deep);
}

.install-list {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.8;
}

.install-list li {
  padding: 5px 0;
  border-bottom: 1px dashed var(--line);
}

.install-list li:last-child {
  border-bottom: 0;
}

.install-list b {
  color: var(--ink-2);
  font-weight: 500;
}

.clear-data {
  width: 100%;
  min-height: 40px;
  margin-top: 6px;
  border: 1px solid rgba(159, 80, 59, 0.2);
  border-radius: 11px;
  background: rgba(244, 225, 216, 0.4);
  color: var(--coral-deep);
  font-size: 9.5px;
}

.sheet-actions {
  display: flex;
  gap: 7px;
  margin-top: 16px;
}

.sheet-actions .primary-btn {
  flex: 1;
}

.sheet-actions .secondary-btn {
  flex: 0 0 96px;
}

.field {
  margin-top: 12px;
}

.field:first-child {
  margin-top: 4px;
}

.field label {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 8.5px;
  letter-spacing: 0.03em;
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  min-height: 43px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 12px;
  line-height: 1.6;
}

.field textarea {
  min-height: 78px;
  resize: none;
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(63, 91, 74, 0.3);
  box-shadow: 0 0 0 3px rgba(63, 91, 74, 0.05);
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
  padding: 9px 0;
}

.toggle-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--green);
}

.toggle-row span {
  color: var(--ink-2);
  font-size: 10px;
}

.ask-question {
  padding: 13px;
  border: 1px solid var(--sage-line);
  border-radius: 14px;
  background: var(--sage);
  color: var(--green-deep);
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.75;
}

.sheet-quote {
  padding: 12px 13px;
  border-left: 2px solid var(--coral);
  border-radius: 0 12px 12px 0;
  background: var(--rose);
  color: #70402f;
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.7;
}

.sheet-record-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0 0;
  color: var(--faint);
  font-size: 8px;
}

.sheet-record-summary {
  margin-top: 10px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.75;
}

.sheet-possible {
  margin-top: 12px;
}

.sheet-possible-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 10px;
  line-height: 1.6;
}

.sheet-possible-item:last-child {
  border-bottom: 0;
}

.sheet-possible-item span {
  color: var(--muted);
  font-size: 8px;
  flex: none;
}

/* -------------------------------------------------- toast */

.toast {
  position: absolute;
  bottom: calc(78px + env(safe-area-inset-bottom));
  left: 50%;
  z-index: 40;
  max-width: calc(100% - 40px);
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(39, 43, 37, 0.94);
  color: #faf5eb;
  box-shadow: 0 12px 26px -16px rgba(32, 24, 16, 0.7);
  font-size: 9.5px;
  line-height: 1.5;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}


/* -------------------------------------------------- slow letters */

.slow-pair-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255, 252, 246, 0.7);
}

.slow-pair-avatars {
  display: flex;
  flex: none;
}

.slow-pair-avatars .avatar {
  width: 34px;
  height: 34px;
  border: 2px solid var(--paper);
}

.slow-pair-avatars .avatar + .avatar {
  margin-left: -9px;
}

.slow-pair-copy {
  flex: 1;
  min-width: 0;
}

.slow-pair-copy strong {
  display: block;
  overflow: hidden;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slow-pair-copy small {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: 8.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slow-view-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 7px;
  padding: 0 3px;
}

.slow-view-toggle {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border: 1px dashed var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 8.5px;
}

.slow-view-toggle .icon {
  width: 11px;
  height: 11px;
}

.slow-demo-note {
  color: var(--faint);
  font-size: 7.5px;
  letter-spacing: 0.03em;
}

.slow-demo-banner {
  margin-top: 7px;
  padding: 7px 9px;
  border-radius: 10px;
  background: var(--rose);
  color: #7b4b3a;
  font-size: 8.5px;
  line-height: 1.6;
}

.slow-mode-note {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin: 12px 3px 10px;
  color: var(--faint);
  font-size: 8.5px;
  line-height: 1.65;
}

.slow-mode-note .icon {
  width: 11px;
  height: 11px;
  margin-top: 1px;
}

.slow-write-card {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(159, 80, 59, 0.16);
  border-radius: 17px;
  background: linear-gradient(135deg, rgba(244, 225, 216, 0.78), rgba(255, 252, 246, 0.74));
  color: var(--ink);
  text-align: left;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}

.slow-write-card:hover {
  border-color: rgba(159, 80, 59, 0.3);
  transform: translateY(-1px);
}

.slow-write-icon {
  display: grid;
  width: 36px;
  height: 36px;
  flex: none;
  place-items: center;
  border-radius: 11px;
  background: var(--paper);
  color: var(--coral-deep);
  box-shadow: var(--shadow-soft);
}

.slow-write-icon .icon {
  width: 17px;
  height: 17px;
}

.slow-write-copy {
  flex: 1;
  min-width: 0;
}

.slow-write-copy strong {
  display: block;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.slow-write-copy p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 8.5px;
  line-height: 1.6;
}

.slow-write-card > .icon {
  width: 13px;
  height: 13px;
  flex: none;
  color: var(--faint);
}

.slow-draft-card {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 9px 10px 12px;
  border: 1px dashed rgba(63, 91, 74, 0.3);
  border-radius: 15px;
  background: var(--sage);
}

.slow-draft-icon {
  display: grid;
  width: 30px;
  height: 30px;
  flex: none;
  place-items: center;
  border-radius: 9px;
  background: var(--paper);
  color: var(--green);
}

.slow-draft-icon .icon {
  width: 13px;
  height: 13px;
}

.slow-draft-main {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--green-deep);
  text-align: left;
}

.slow-draft-main strong {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
}

.slow-draft-main span {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: var(--green);
  font-size: 8.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slow-draft-clear {
  display: grid;
  width: 28px;
  height: 28px;
  flex: none;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
}

.slow-draft-clear .icon {
  width: 12px;
  height: 12px;
}

.slow-sealed-card {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 11px;
  margin-bottom: 8px;
  padding: 13px;
  border: 1px dashed rgba(159, 80, 59, 0.35);
  border-radius: 17px;
  background: linear-gradient(135deg, rgba(255, 250, 243, 0.96), rgba(248, 236, 226, 0.82));
  color: var(--ink);
  text-align: left;
  box-shadow: var(--shadow-soft);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.slow-sealed-card:hover {
  border-color: rgba(159, 80, 59, 0.6);
  transform: translateY(-1px);
}

.slow-sealed-mark {
  display: grid;
  width: 36px;
  height: 36px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  background: var(--coral);
  color: #fff8f0;
  font-family: var(--serif);
  font-size: 14px;
  box-shadow: 0 5px 12px -6px rgba(159, 80, 59, 0.6);
}

.slow-sealed-copy {
  flex: 1;
  min-width: 0;
}

.slow-sealed-copy strong {
  display: block;
  font-family: var(--serif);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.slow-sealed-copy small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.5;
}

.slow-sealed-action {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 3px;
  color: var(--coral-deep);
  font-size: 9px;
}

.slow-sealed-action .icon {
  width: 11px;
  height: 11px;
}

.slow-letter {
  margin-bottom: 8px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255, 252, 246, 0.8);
  box-shadow: var(--shadow-soft);
}

.slow-letter.is-own {
  border-style: dashed;
  background: rgba(255, 252, 246, 0.56);
}

.slow-letter-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
}

.slow-letter-head .avatar {
  width: 30px;
  height: 30px;
  font-size: 11px;
}

.slow-letter-who {
  flex: 1;
  min-width: 0;
}

.slow-letter-who strong {
  display: block;
  overflow: hidden;
  color: var(--ink-2);
  font-size: 10px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slow-letter-who small {
  display: block;
  margin-top: 2px;
  color: var(--faint);
  font-size: 7.5px;
}

.slow-letter-head .tag {
  flex: none;
  font-size: 7.5px;
}

.slow-letter-section + .slow-letter-section {
  margin-top: 9px;
}

.slow-letter-section span {
  display: block;
  margin-bottom: 2px;
  color: var(--faint);
  font-size: 7.5px;
  letter-spacing: 0.06em;
}

.slow-letter-section p {
  color: var(--ink-2);
  font-size: 10.5px;
  line-height: 1.75;
  white-space: pre-wrap;
}

.slow-letter-raw {
  color: var(--ink-2);
  font-family: var(--serif);
  font-size: 12.5px;
  line-height: 1.8;
  white-space: pre-wrap;
}

.slow-letter-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  color: var(--faint);
  font-size: 7.5px;
  line-height: 1.5;
}

.slow-retract {
  flex: none;
  min-height: 28px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--coral-deep);
  font-size: 8px;
}

.slow-retract:hover {
  background: var(--rose);
  border-color: var(--rose-line);
}

.slow-compose-lead {
  margin: 4px 0 10px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

.slow-compose-private {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin: 8px 0;
  color: var(--faint);
  font-size: 8.5px;
  line-height: 1.6;
}

.slow-compose-private .icon {
  width: 10px;
  height: 10px;
  margin-top: 2px;
}

.slow-compose-input {
  display: block;
  width: 100%;
  min-height: 176px;
  max-height: 300px;
  padding: 13px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.85;
}

.slow-compose-input:focus {
  border-color: rgba(63, 91, 74, 0.3);
  box-shadow: 0 0 0 3px rgba(63, 91, 74, 0.05);
}

.slow-stage-head {
  margin: 4px 0 10px;
}

.slow-stage-step {
  display: inline-block;
  margin-bottom: 5px;
  color: var(--coral-deep);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.slow-stage-head h3 {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.slow-stage-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.65;
}

.slow-hint {
  margin-bottom: 10px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--sage);
  color: var(--green-deep);
  font-size: 8.5px;
  line-height: 1.65;
}

.slow-hint.emotion {
  border-color: var(--rose-line);
  background: var(--rose);
  color: #7b4434;
}

.slow-hint.mixed {
  border-color: transparent;
  background: linear-gradient(135deg, var(--sage), var(--rose));
}

.slow-hint strong {
  display: block;
  margin-bottom: 2px;
  font-size: 8px;
  font-weight: 600;
}

.slow-raw-details {
  margin-bottom: 10px;
  padding: 8px 10px;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
}

.slow-raw-details summary {
  color: var(--muted);
  font-size: 8.5px;
  cursor: pointer;
}

.slow-raw-details p {
  max-height: 110px;
  margin-top: 7px;
  overflow-y: auto;
  color: var(--ink-2);
  font-family: var(--serif);
  font-size: 11.5px;
  line-height: 1.75;
  white-space: pre-wrap;
}

.slow-raw-send,
.slow-discard-link {
  display: block;
  margin: 12px auto 0;
  padding: 4px;
  border: 0;
  background: transparent;
  color: var(--faint);
  font-size: 8.5px;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.slow-open-art {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 8px auto 12px;
  place-items: center;
  border: 1px dashed rgba(159, 80, 59, 0.3);
  border-radius: 50%;
  background: var(--rose);
  color: var(--coral-deep);
  font-family: var(--serif);
  font-size: 22px;
}

.slow-open-lead {
  margin: 6px 0 5px;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.6;
  text-align: center;
}

.slow-open-note {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.7;
  text-align: center;
}

.slow-open-note + .sheet-actions {
  margin-top: 16px;
}

@media (max-width: 390px) {
  .tabbar {
    gap: 1px;
    padding-right: 6px;
    padding-left: 6px;
  }

  .tab {
    font-size: 8.5px;
  }

  .slow-letter-section p {
    font-size: 10px;
  }
}


/* -------------------------------------------------- slow chat mode */

.screen.chat-mode {
  overflow: hidden;
}

.page.slow-chat-page {
  display: flex;
  height: 100%;
  flex-direction: column;
  padding-top: calc(14px + env(safe-area-inset-top));
  padding-bottom: 0;
}

.slow-chat-head {
  display: flex;
  flex: none;
  align-items: center;
  gap: 9px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
}

.slow-chat-avatar-pair {
  display: flex;
  flex: none;
  align-items: center;
}

.slow-chat-avatar-pair .avatar {
  width: 33px;
  height: 33px;
  font-size: 12px;
  border: 2px solid var(--app-bg);
}

.slow-chat-avatar-pair .avatar + .avatar {
  margin-left: -9px;
}

.slow-chat-title {
  flex: 1;
  min-width: 0;
}

.slow-chat-title .eyebrow {
  overflow: hidden;
  font-size: 7.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slow-chat-title h1 {
  overflow: hidden;
  margin-top: 2px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.035em;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slow-chat-status {
  overflow: hidden;
  margin-top: 2px;
  color: var(--muted);
  font-size: 8.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slow-chat-status.has-unread {
  color: var(--coral-deep);
}

.slow-chat-actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 5px;
}

.slow-change-btn {
  min-height: 30px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 252, 246, 0.55);
  color: var(--muted);
  font-size: 8px;
  white-space: nowrap;
}

.slow-chat-actions .round-btn {
  width: 31px;
  height: 31px;
}

.slow-chat-actions .round-btn .icon {
  width: 14px;
  height: 14px;
}

.slow-chat-subbar {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0 4px;
}

.slow-chat-subbar .slow-view-toggle {
  min-height: 27px;
  padding: 3px 7px;
  font-size: 8px;
}

.slow-chat-subbar .slow-demo-note {
  font-size: 7px;
}

.slow-chat-page .slow-demo-banner {
  flex: none;
  margin: 4px 0 2px;
  padding: 5px 8px;
  font-size: 8px;
}

.slow-chat-thread {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 4px 0 8px;
  scrollbar-width: none;
}

.slow-chat-thread::-webkit-scrollbar {
  display: none;
}

.slow-chat-system {
  display: flex;
  align-self: center;
  align-items: center;
  gap: 4px;
  max-width: 94%;
  margin: 4px auto 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(57, 48, 36, 0.035);
  color: var(--faint);
  font-size: 7.5px;
  line-height: 1.55;
  text-align: center;
}

.slow-chat-system .icon {
  width: 9px;
  height: 9px;
  flex: none;
}

.slow-chat-day {
  align-self: center;
  margin: 3px 0 8px;
  color: var(--faint);
  font-size: 7.5px;
  letter-spacing: 0.08em;
}

.slow-chat-row {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 7px 0;
  max-width: 100%;
  animation: riseIn 0.28s var(--ease) both;
}

.slow-chat-row.own {
  flex-direction: row-reverse;
}

.slow-chat-row > .avatar {
  width: 25px;
  height: 25px;
  margin-top: 15px;
  font-size: 9px;
  box-shadow: 0 0 0 2px rgba(255, 252, 246, 0.45);
}

.slow-chat-main {
  display: flex;
  min-width: 0;
  max-width: 84%;
  flex-direction: column;
  align-items: flex-start;
}

.slow-chat-row.own .slow-chat-main {
  align-items: flex-end;
}

.slow-chat-meta {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin: 0 2px 3px;
  color: var(--faint);
  font-size: 8px;
  letter-spacing: 0.02em;
}

.slow-chat-meta strong {
  color: var(--ink-2);
  font-size: 9px;
  font-weight: 600;
}

.slow-chat-row.own .slow-chat-meta {
  flex-direction: row-reverse;
}

.slow-chat-bubble {
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 3px 14px 14px 14px;
  background: rgba(255, 252, 246, 0.92);
  box-shadow: var(--shadow-soft);
}

.slow-chat-row.own .slow-chat-bubble {
  border-color: var(--sage-line);
  border-radius: 14px 3px 14px 14px;
  background: var(--sage);
}

.slow-bubble-section + .slow-bubble-section {
  margin-top: 6px;
}

.slow-bubble-label {
  display: block;
  margin-bottom: 1px;
  color: var(--faint);
  font-size: 7.5px;
  letter-spacing: 0.04em;
}

.slow-chat-row.own .slow-bubble-label {
  color: rgba(63, 91, 74, 0.65);
}

.slow-bubble-text {
  color: var(--ink-2);
  font-size: 11px;
  line-height: 1.75;
  white-space: pre-wrap;
}

.slow-bubble-raw {
  color: var(--ink-2);
  font-family: var(--serif);
  font-size: 12.5px;
  line-height: 1.8;
  white-space: pre-wrap;
}

.slow-chat-msg-status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin: 3px 2px 0;
  color: var(--faint);
  font-size: 7.5px;
}

.slow-chat-msg-status .slow-retract {
  min-height: 26px;
  padding: 3px 7px;
  font-size: 8px;
}

.slow-chat-event {
  display: flex;
  justify-content: center;
  margin: 10px 0;
}

.slow-chat-event .slow-sealed-card {
  max-width: 94%;
  margin-bottom: 0;
}

.slow-chat-empty {
  margin: 16px 0;
  border-style: solid;
  background: rgba(255, 252, 246, 0.4);
}

.slow-chat-composer {
  flex: none;
  padding: 7px 0 4px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(245, 240, 231, 0), rgba(245, 240, 231, 0.8) 40%);
}

.slow-chat-input {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  padding: 3px 4px 3px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 21px;
  background: rgba(255, 252, 246, 0.92);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 10px 22px -18px rgba(58, 44, 29, 0.5);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.slow-chat-input:hover {
  border-color: rgba(63, 91, 74, 0.28);
  background: var(--paper);
}

.slow-chat-input.has-draft {
  border-color: var(--sage-line);
  background: var(--sage);
  color: var(--green-deep);
}

.slow-chat-input > .icon {
  width: 10px;
  height: 10px;
  flex: none;
  opacity: 0.7;
}

.slow-chat-placeholder {
  flex: 1;
  overflow: hidden;
  color: var(--faint);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slow-chat-input.has-draft .slow-chat-placeholder {
  color: var(--green-deep);
  font-size: 9px;
}

.slow-chat-send {
  display: grid;
  width: 34px;
  height: 34px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #fbf7ee;
}

.slow-chat-send .icon {
  width: 15px;
  height: 15px;
}

.slow-chat-input.has-draft .slow-chat-send {
  background: var(--green-deep);
}

.slow-chat-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  margin: 4px 0 0;
  color: var(--faint);
  font-size: 8px;
  line-height: 1.5;
}

.slow-chat-hint .icon {
  width: 8px;
  height: 8px;
}

@media (max-width: 390px) {
  .slow-chat-main {
    max-width: 85%;
  }

  .slow-chat-title h1 {
    font-size: 17px;
  }
}


/* -------------------------------------------------- companion chat & learning */

.avatar-companion {
  color: #6f3b2b;
  background: linear-gradient(145deg, #f7e2d2, #e8c0a8);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.companion-head-avatar {
  width: 35px;
  height: 35px;
  flex: none;
  font-size: 14px;
  box-shadow: 0 0 0 2px rgba(255, 252, 246, 0.6);
}

.companion-chat-page .slow-chat-title h1 {
  font-size: 19px;
}

.companion-composer {
  flex: none;
  padding: 7px 0 4px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(245, 240, 231, 0), rgba(245, 240, 231, 0.85) 40%);
}

.companion-input-row {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  padding: 3px 4px 3px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 21px;
  background: rgba(255, 252, 246, 0.94);
  box-shadow: 0 10px 22px -18px rgba(58, 44, 29, 0.5);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.companion-input-row:focus-within {
  border-color: rgba(63, 91, 74, 0.3);
  background: var(--paper);
}

#companionInput {
  flex: 1;
  width: 100%;
  min-width: 0;
  min-height: 34px;
  max-height: 108px;
  padding: 8px 0;
  resize: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12.5px;
  line-height: 1.65;
  scrollbar-width: none;
}

#companionInput::placeholder {
  color: var(--faint);
}

#companionInput::-webkit-scrollbar {
  display: none;
}

.composer-mic {
  display: grid;
  width: 31px;
  height: 31px;
  flex: none;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 252, 246, 0.5);
  color: var(--muted);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.composer-mic .icon {
  width: 14px;
  height: 14px;
}

.composer-mic:hover {
  border-color: var(--sage-line);
  color: var(--green);
}

.composer-mic.listening {
  border-color: var(--coral);
  background: var(--coral);
  color: #fff8f0;
  animation: micPulse 1.2s infinite ease-in-out;
}

@keyframes micPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(193, 106, 80, 0.28); }
  50% { box-shadow: 0 0 0 5px rgba(193, 106, 80, 0.06); }
}

.companion-send {
  display: grid;
  width: 35px;
  height: 35px;
  flex: none;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--green);
  color: #fbf7ee;
  transition: background 0.2s var(--ease), opacity 0.2s var(--ease);
}

.companion-send .icon {
  width: 15px;
  height: 15px;
}

.companion-send:disabled {
  background: rgba(57, 48, 36, 0.1);
  color: var(--faint);
}

.companion-composer-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  margin: 4px 0 0;
  color: var(--faint);
  font-size: 7.5px;
  line-height: 1.5;
}

.companion-composer-hint .icon {
  width: 8px;
  height: 8px;
}

.companion-message-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 4px;
}

.companion-message-actions button {
  min-height: 26px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 252, 246, 0.55);
  color: var(--ink-2);
  font-size: 7.5px;
}

.companion-message-actions button:hover {
  border-color: var(--sage-line);
  background: var(--sage);
  color: var(--green-deep);
}

.companion-message-actions button:disabled {
  border-color: var(--sage-line);
  background: var(--sage);
  color: var(--green);
}

.companion-starters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  margin: 10px 0 4px;
}

.companion-starters button {
  padding: 5px 8px;
  border: 1px dashed var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 252, 246, 0.35);
  color: var(--muted);
  font-size: 8.5px;
}

.companion-starters button:hover {
  border-color: var(--sage-line);
  background: var(--sage);
  color: var(--green-deep);
}

.companion-typing-dots {
  display: flex;
  gap: 3px;
  padding: 4px 2px;
}

.companion-typing-dots span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--muted);
  animation: dotPulse 1.2s infinite ease-in-out;
}

.companion-typing-dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.companion-typing-dots span:nth-child(3) {
  animation-delay: 0.3s;
}

.today-reminder-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.today-reminder-row:last-of-type {
  border-bottom: 0;
}

.today-reminder-row strong {
  display: block;
  color: var(--ink);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
}

.today-reminder-row small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 8.5px;
}

.today-sheet-add {
  margin-top: 12px;
}

.companion-note-card {
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 252, 246, 0.72);
}

.companion-note-card + .companion-note-card {
  margin-top: 6px;
}

.companion-note-card p {
  margin-top: 4px;
  color: var(--ink-2);
  font-size: 10px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.companion-note-card small {
  display: block;
  margin-top: 4px;
  color: var(--faint);
  font-size: 7.5px;
}

.learning-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.learning-item {
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 252, 246, 0.72);
}

.learning-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.learning-title {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.learning-date {
  flex: none;
  color: var(--faint);
  font-size: 7.5px;
}

.learning-detail {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.7;
}

.learning-minutes {
  display: inline-flex;
  margin-top: 7px;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 7.5px;
}

.slow-motto {
  margin: 14px 2px 0;
  padding: 11px 12px;
  border: 1px dashed rgba(159, 80, 59, 0.3);
  border-radius: 13px;
  background: var(--rose);
  color: #743c2d;
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  text-align: center;
}

.slow-confirm-preview {
  margin-top: 12px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 252, 246, 0.8);
}

.slow-confirm-preview section + section {
  margin-top: 9px;
}

.slow-confirm-preview span {
  display: block;
  margin-bottom: 2px;
  color: var(--faint);
  font-size: 7.5px;
}

.slow-confirm-preview p {
  color: var(--ink-2);
  font-size: 10.5px;
  line-height: 1.75;
  white-space: pre-wrap;
}


.voice-input-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 8px 0 2px;
}

.voice-btn {
  display: inline-flex;
  min-height: 31px;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 252, 246, 0.5);
  color: var(--green-deep);
  font-size: 8.5px;
}

.voice-btn .icon {
  width: 11px;
  height: 11px;
}

.voice-btn:hover {
  border-color: var(--sage-line);
  background: var(--sage);
}

.voice-btn.listening,
.ghost-mini.listening {
  border-color: var(--coral);
  background: var(--rose);
  color: var(--coral-deep);
}

.voice-input-row > span {
  color: var(--faint);
  font-size: 8px;
}

.ghost-mini .icon {
  width: 10px;
  height: 10px;
}

.ghost-mini.listening {
  border-radius: 7px;
}


/* -------------------------------------------------- plans & alarm */

.alarm-card {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255, 252, 246, 0.72);
}

.alarm-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.alarm-head h3 {
  margin-top: 2px;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.alarm-note {
  margin-top: 4px;
  color: var(--faint);
  font-size: 8px;
  line-height: 1.6;
}

.alarm-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.alarm-row.is-off {
  opacity: 0.6;
}

.alarm-time {
  flex: none;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.alarm-info {
  flex: 1;
  min-width: 0;
}

.alarm-info strong {
  display: block;
  overflow: hidden;
  font-size: 10px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alarm-info small {
  display: block;
  margin-top: 2px;
  color: var(--faint);
  font-size: 7.5px;
}

.alarm-del {
  display: grid;
  width: 22px;
  height: 22px;
  flex: none;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--faint);
}

.alarm-del .icon {
  width: 10px;
  height: 10px;
}

.alarm-empty {
  margin-top: 9px;
  padding: 12px 10px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
  text-align: center;
}

.plan-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.plan-card {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255, 252, 246, 0.78);
  box-shadow: var(--shadow-soft);
}

.plan-card.compact {
  padding: 11px 12px;
  box-shadow: none;
}

.plan-top {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.plan-visibility {
  margin-left: auto;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(57, 48, 36, 0.05);
  color: var(--faint);
  font-size: 7.5px;
  white-space: nowrap;
}

.plan-visibility.shared {
  background: var(--sage);
  color: var(--green);
}

.plan-title {
  margin-top: 7px;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.02em;
}

.plan-note {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.65;
}

.plan-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 8.5px;
  font-variant-numeric: tabular-nums;
}

.plan-card .progress {
  margin-top: 5px;
}

.plan-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 9px;
}

.plan-deadline {
  color: var(--faint);
  font-size: 8px;
}

.plan-update {
  min-height: 27px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--green-deep);
  font-size: 8px;
}

.plan-update:hover {
  background: var(--sage);
  border-color: var(--sage-line);
}

.plans-empty {
  margin-top: 2px;
}

.field select {
  display: block;
  width: 100%;
  min-height: 43px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 12px;
}

.field select:focus {
  border-color: rgba(63, 91, 74, 0.3);
  box-shadow: 0 0 0 3px rgba(63, 91, 74, 0.05);
}

.field-row {
  display: flex;
  gap: 8px;
}

.field-row .field {
  flex: 1;
  min-width: 0;
}

.alarm-layer {
  position: absolute;
  inset: 0;
  z-index: 65;
  display: grid;
  padding: 24px;
  place-items: center;
  background: rgba(32, 26, 20, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fadeIn 0.25s var(--ease) both;
}

.alarm-dialog {
  width: min(320px, 100%);
  padding: 24px 20px 20px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 24px;
  background:
    radial-gradient(280px 200px at 50% 0%, rgba(244, 223, 215, 0.8), transparent 70%),
    var(--paper-2);
  box-shadow: 0 40px 80px -30px rgba(35, 22, 12, 0.6);
  text-align: center;
  animation: dialogIn 0.3s var(--ease) both;
}

.alarm-bell {
  display: grid;
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  place-items: center;
  border-radius: 50%;
  background: var(--rose);
  color: var(--coral-deep);
}

.alarm-bell .icon {
  width: 22px;
  height: 22px;
}

.alarm-clock {
  margin-top: 5px;
  font-family: var(--serif);
  font-size: 38px;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  letter-spacing: 0.04em;
}

.alarm-dialog h2 {
  margin-top: 7px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.03em;
}

.alarm-caption {
  margin-top: 6px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.65;
}

.alarm-actions {
  display: flex;
  gap: 7px;
  margin-top: 16px;
}

.alarm-actions .secondary-btn {
  flex: 1;
}

.alarm-actions .primary-btn {
  flex: 1;
}



/* -------------------------------------------------- analysis chat */

.analysis-source-row {
  display: flex;
  flex: none;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  padding: 5px 0 6px;
  border-bottom: 1px solid var(--line);
}

.analysis-source-row .source-chip {
  min-height: 25px;
  padding: 3px 7px;
  font-size: 8px;
}

.analysis-source-note {
  margin-left: auto;
  color: var(--faint);
  font-size: 7px;
}

.analysis-thread {
  padding-top: 5px;
}

.analysis-row .slow-chat-main {
  width: 95%;
  max-width: 95%;
}

.analysis-row > .avatar {
  width: 25px;
  height: 25px;
  margin-top: 15px;
  font-size: 9px;
}

.analysis-bubble {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 3px 16px 16px 16px;
  background: rgba(255, 252, 246, 0.9);
  box-shadow: var(--shadow-soft);
}

.analysis-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  margin-bottom: 6px;
}

.analysis-head .eyebrow {
  font-size: 7.5px;
  letter-spacing: 0.06em;
}

.analysis-head .tag {
  flex: none;
  font-size: 7.5px;
}

.analysis-summary {
  color: var(--ink-2);
  font-size: 11px;
  line-height: 1.7;
}

.analysis-bubble .split-grid {
  margin-top: 9px;
}

.analysis-bubble .split-card {
  font-size: 9.5px;
}

.analysis-bubble .needs-row {
  margin-top: 8px;
}

.analysis-details {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}

.analysis-details summary {
  color: var(--ink-2);
  font-size: 9px;
  font-weight: 500;
  line-height: 1.6;
  cursor: pointer;
  list-style: none;
}

.analysis-details summary::-webkit-details-marker {
  display: none;
}

.analysis-details summary::after {
  content: "＋";
  float: right;
  color: var(--faint);
  font-size: 10px;
  font-weight: 400;
}

.analysis-details[open] summary::after {
  content: "－";
}

.analysis-details .possible-item:first-of-type {
  padding-top: 8px;
}

.analysis-replies {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 9px;
}

.analysis-reply {
  padding: 9px 10px;
  border-radius: 12px;
  background: var(--sage);
}

.analysis-reply-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  margin-bottom: 4px;
}

.analysis-reply-head span {
  color: var(--green);
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.analysis-reply-head button {
  padding: 2px 6px;
  border: 1px solid var(--sage-line);
  border-radius: 999px;
  background: transparent;
  color: var(--green);
  font-size: 7px;
}

.analysis-reply p {
  color: var(--ink-2);
  font-size: 10px;
  line-height: 1.7;
}

.analysis-actions {
  margin-top: 10px;
}

.analysis-actions .action-btn {
  min-height: 37px;
  font-size: 9px;
}

.analysis-bubble .disclaimer {
  margin: 9px 0 0;
  font-size: 7.5px;
}

.analysis-quote-bubble {
  border-color: var(--sage-line);
}

.analysis-empty {
  margin: 18px 0;
  padding: 16px 14px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255, 252, 246, 0.72);
  text-align: center;
}

.analysis-empty-title {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.analysis-empty-text {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.7;
}

.analysis-empty .companion-starters {
  margin-top: 10px;
}

.analysis-typing-row .slow-chat-bubble {
  min-width: 54px;
}



.companion-intent {
  width: 100%;
  margin-top: 5px;
  padding: 10px 11px;
  border: 1px dashed rgba(63, 91, 74, 0.28);
  border-radius: 13px;
  background: rgba(233, 238, 231, 0.72);
}

.companion-intent.confirmed {
  border-style: solid;
  border-color: var(--sage-line);
  background: var(--sage);
}

.companion-intent.dismissed {
  opacity: 0.58;
}

.companion-intent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 4px;
}

.companion-intent-head .eyebrow {
  font-size: 7px;
  letter-spacing: 0.08em;
}

.companion-intent-head .tag {
  font-size: 7px;
}

.companion-intent-main {
  color: var(--green-deep);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.6;
}

.companion-intent-meta {
  margin-top: 2px;
  color: var(--green);
  font-size: 8px;
  line-height: 1.55;
}

.intent-visibility {
  display: flex;
  gap: 4px;
  margin-top: 7px;
}

.intent-visibility button {
  min-height: 24px;
  padding: 2px 7px;
  border: 1px solid var(--sage-line);
  border-radius: 999px;
  background: transparent;
  color: var(--green);
  font-size: 7.5px;
}

.intent-visibility button[aria-pressed="true"] {
  background: var(--paper);
  color: var(--green-deep);
  border-color: rgba(63, 91, 74, 0.35);
}

.companion-intent-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.intent-confirm {
  min-height: 28px;
  padding: 4px 10px;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: #fbf7ee;
  font-size: 8px;
}

.intent-dismiss {
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 8px;
}

.companion-intent-actions > span {
  color: var(--green);
  font-size: 8px;
}

@media (max-width: 360px) {
  .screen {
    padding: 0 16px;
  }

  .greeting h2 {
    font-size: 24px;
  }

  .split-grid {
    grid-template-columns: 1fr;
  }

  .people-grid {
    grid-template-columns: 1fr;
  }
}

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


.how-card {
  margin-top: 12px;
  padding: 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  background: rgba(255, 252, 246, 0.5);
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 9px;
}

.how-item {
  padding: 9px 8px;
  border-radius: 11px;
  background: rgba(255, 252, 246, 0.7);
}

.how-item p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 8.5px;
  line-height: 1.55;
}

.how-note {
  margin-top: 9px;
  color: var(--faint);
  font-size: 8.5px;
  line-height: 1.65;
}

/* -------------------------------------------------- input tools */

.field-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-top: 5px;
}

.field-tools button,
.wording-actions button {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 252, 246, 0.6);
  color: var(--muted);
  font-size: 7.5px;
  line-height: 1.4;
}

.field-tools button:hover,
.wording-actions button:hover {
  border-color: var(--sage-line);
  color: var(--green);
}

.field-tools button .icon,
.wording-actions button .icon {
  width: 10px;
  height: 10px;
}

.field-tools button.is-busy {
  opacity: 0.55;
}

.field-tools .tools-note {
  color: var(--faint);
  font-size: 7px;
}

.add-issue + .field-tools {
  margin: -2px 0 8px 24px;
}

.wording-panel {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 7px;
  padding: 10px;
  border: 1px dashed var(--sage-line);
  border-radius: 12px;
  background: rgba(233, 238, 231, 0.58);
}

.wording-panel[hidden] {
  display: none;
}

.wording-panel .eyebrow {
  font-size: 7px;
}

.wording-panel p {
  color: var(--ink-2);
  font-size: 9px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.wording-panel .wording-meta {
  color: var(--faint);
  font-size: 7.5px;
}

.wording-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.wording-actions .use {
  border-color: transparent;
  background: var(--green);
  color: #fbf7ee;
}

.media-picker {
  display: none;
}

.composer-media {
  display: grid;
  width: 31px;
  height: 31px;
  flex: none;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 252, 246, 0.5);
  color: var(--muted);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.composer-media .icon {
  width: 14px;
  height: 14px;
}

.composer-media:hover {
  border-color: var(--sage-line);
  color: var(--green);
}

.composer-media.is-busy {
  opacity: 0.55;
}

.voice-input-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

/* -------------------------------------------------- slow inline composer */

.slow-inline-form {
  flex: none;
  padding: 7px 0 4px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(245, 240, 231, 0), rgba(245, 240, 231, 0.8) 40%);
}

.slow-inline-field {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  padding: 4px 4px 4px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 21px;
  background: rgba(255, 252, 246, 0.94);
  box-shadow: 0 10px 22px -18px rgba(58, 44, 29, 0.5);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.slow-inline-field:focus-within {
  border-color: rgba(63, 91, 74, 0.3);
  background: var(--paper);
}

.slow-inline-field textarea {
  flex: 1;
  width: 100%;
  min-width: 0;
  min-height: 34px;
  max-height: 110px;
  padding: 8px 0;
  resize: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.65;
  scrollbar-width: none;
}

.slow-inline-field textarea::-webkit-scrollbar {
  display: none;
}

.slow-inline-field textarea::placeholder {
  color: var(--faint);
}

.slow-inline-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px 2px 0;
}

.slow-inline-tools button {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  gap: 3px;
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 7.5px;
}

.slow-inline-tools button .icon {
  width: 9px;
  height: 9px;
}

.slow-inline-tools button:hover {
  border-color: var(--sage-line);
  color: var(--green);
}

.slow-inline-tools .slow-inline-note {
  margin-left: auto;
  color: var(--faint);
  font-size: 7px;
}

.slow-inline-send {
  display: grid;
  width: 34px;
  height: 34px;
  flex: none;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--green);
  color: #fbf7ee;
}

.slow-inline-send .icon {
  width: 15px;
  height: 15px;
}

.slow-inline-send:disabled {
  background: rgba(57, 48, 36, 0.1);
  color: var(--faint);
}

.slow-inline-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  margin: 4px 0 0;
  color: var(--faint);
  font-size: 7.5px;
  line-height: 1.5;
  text-align: center;
}

.slow-inline-hint .icon {
  width: 8px;
  height: 8px;
}

/* -------------------------------------------------- companion calm */

.calm-strip {
  display: flex;
  flex: none;
  align-items: center;
  gap: 7px;
  margin: 2px 0 4px;
  padding: 7px 10px;
  border: 1px solid var(--sage-line);
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(233, 238, 231, 0.75), rgba(255, 252, 246, 0.45));
  color: var(--green-deep);
  text-align: left;
}

.calm-strip .calm-icon {
  display: grid;
  width: 27px;
  height: 27px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 252, 246, 0.8);
  color: var(--green);
}

.calm-strip .calm-icon .icon {
  width: 14px;
  height: 14px;
}

.calm-strip .calm-copy {
  flex: 1;
  min-width: 0;
}

.calm-strip strong {
  display: block;
  font-size: 9px;
  font-weight: 600;
}

.calm-strip small {
  display: block;
  margin-top: 1px;
  color: var(--green);
  font-size: 7.5px;
}

.breathe-layer {
  position: fixed;
  z-index: 90;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    radial-gradient(520px 420px at 50% 40%, rgba(233, 238, 231, 0.96), rgba(245, 240, 231, 0.92) 55%, rgba(48, 56, 49, 0.3));
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.breathe-dialog {
  position: relative;
  width: min(100%, 360px);
  padding: 24px 20px 18px;
  border: 1px solid rgba(63, 91, 74, 0.16);
  border-radius: 26px;
  background: rgba(255, 252, 246, 0.94);
  box-shadow: 0 30px 70px -40px rgba(44, 64, 52, 0.55);
  text-align: center;
}

.breathe-dialog .eyebrow {
  font-size: 8px;
}

.breathe-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--faint);
}

.breathe-close .icon {
  width: 13px;
  height: 13px;
}

.breathe-orb-wrap {
  display: grid;
  width: 180px;
  height: 180px;
  margin: 20px auto 16px;
  place-items: center;
}

.breathe-orb {
  display: grid;
  width: 168px;
  height: 168px;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, rgba(246, 250, 245, 0.96), rgba(184, 205, 191, 0.86));
  color: var(--green-deep);
  font-family: var(--serif);
  font-size: 30px;
  box-shadow: 0 0 0 18px rgba(233, 238, 231, 0.45), 0 24px 50px -30px rgba(44, 64, 52, 0.55);
  transform: scale(0.74);
  transition: transform 4s cubic-bezier(0.2, 0.65, 0.28, 1), box-shadow 4s var(--ease);
}

.breathe-orb.is-inhale {
  transform: scale(1);
  box-shadow: 0 0 0 28px rgba(233, 238, 231, 0.25), 0 30px 55px -30px rgba(44, 64, 52, 0.55);
  transition-duration: 4s;
}

.breathe-orb.is-hold {
  transform: scale(1);
  transition-duration: 0.35s;
}

.breathe-orb.is-exhale {
  transform: scale(0.74);
  box-shadow: 0 0 0 12px rgba(233, 238, 231, 0.32), 0 24px 50px -30px rgba(44, 64, 52, 0.5);
  transition-duration: 6s;
}

.breathe-dialog h2 {
  font-family: var(--serif);
  color: var(--green-deep);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.breathe-hint {
  max-width: 260px;
  margin: 7px auto 0;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.75;
}

.breathe-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 14px auto 12px;
}

.breathe-progress span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage-line);
}

.breathe-progress span.is-done {
  background: var(--green);
}

.breathe-stop {
  width: 100%;
}

.breathe-caption {
  margin-top: 9px;
  color: var(--faint);
  font-size: 7.5px;
  line-height: 1.5;
}

/* -------------------------------------------------- topics */

.philosophy-line {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 10px 0 2px;
  padding: 8px 10px;
  border-left: 2px solid var(--sage-line);
  background: linear-gradient(90deg, rgba(233, 238, 231, 0.45), transparent);
  color: var(--green);
  font-size: 8.5px;
  line-height: 1.7;
}

.philosophy-line .icon {
  width: 12px;
  height: 12px;
  margin-top: 1px;
  flex: none;
}

.topic-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.topic-card {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 5px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 252, 246, 0.72);
  text-align: left;
}

.topic-card:hover {
  border-color: var(--sage-line);
  background: var(--paper);
}

.topic-card-top {
  display: flex;
  align-items: center;
  gap: 6px;
}

.topic-state {
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--sage);
  color: var(--green);
  font-size: 7px;
}

.topic-state.closed {
  background: rgba(180, 138, 92, 0.12);
  color: var(--gold);
}

.topic-card h3 {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.55;
}

.topic-card p {
  color: var(--muted);
  font-size: 8px;
  line-height: 1.6;
}

.topic-card .topic-progress {
  display: flex;
  gap: 4px;
  margin-top: 1px;
}

.topic-progress span {
  flex: 1;
  height: 3px;
  border-radius: 999px;
  background: rgba(57, 48, 36, 0.08);
}

.topic-progress span.is-done {
  background: var(--green);
}

.topic-empty {
  padding: 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  background: rgba(255, 252, 246, 0.4);
  color: var(--muted);
  font-size: 9px;
  line-height: 1.7;
}

.topic-room-head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
}

.topic-room-head .round-btn {
  flex: none;
}

.topic-room-title {
  flex: 1;
  min-width: 0;
}

.topic-room-title .eyebrow {
  font-size: 7.5px;
}

.topic-room-title h1 {
  margin-top: 2px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.45;
}

.topic-banner {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 10px;
  padding: 9px 10px;
  border: 1px solid var(--sage-line);
  border-radius: 14px;
  background: rgba(233, 238, 231, 0.52);
  color: var(--green-deep);
  font-size: 8.5px;
  line-height: 1.7;
}

.topic-banner .icon {
  width: 12px;
  height: 12px;
  margin-top: 1px;
  flex: none;
}

.topic-sides {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.topic-side {
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 252, 246, 0.78);
}

.topic-side.partner {
  background: rgba(244, 225, 216, 0.35);
}

.topic-side.is-missing {
  border-style: dashed;
  border-color: var(--line-strong);
  background: rgba(255, 252, 246, 0.35);
}

.topic-side-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 7px;
}

.topic-side-head .avatar {
  width: 24px;
  height: 24px;
  font-size: 9px;
}

.topic-side-head strong {
  font-size: 9.5px;
}

.topic-side-head .tag {
  font-size: 7px;
}

.topic-side-head .topic-edit {
  margin-left: auto;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--green);
  font-size: 7.5px;
}

.topic-side-block + .topic-side-block {
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid var(--line);
}

.topic-side-label {
  display: block;
  margin-bottom: 2px;
  color: var(--faint);
  font-size: 7px;
  letter-spacing: 0.06em;
}

.topic-side-text {
  color: var(--ink-2);
  font-size: 9.5px;
  line-height: 1.75;
  white-space: pre-wrap;
}

.topic-side-missing {
  color: var(--muted);
  font-size: 8.5px;
  line-height: 1.7;
}

.topic-side-note {
  margin-top: 7px;
  color: var(--faint);
  font-size: 7px;
  line-height: 1.55;
}

.topic-consensus {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(180, 138, 92, 0.25);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255, 252, 246, 0.9), rgba(246, 239, 226, 0.7));
}

.topic-consensus h2 {
  font-family: var(--serif);
  color: var(--green-deep);
  font-size: 15px;
  font-weight: 600;
}

.topic-consensus p {
  margin-top: 5px;
  color: var(--ink-2);
  font-size: 9.5px;
  line-height: 1.75;
  white-space: pre-wrap;
}

.topic-consensus .topic-agreed {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 7px;
  color: var(--green);
  font-size: 7.5px;
}

.topic-consensus .topic-agreed .icon {
  width: 10px;
  height: 10px;
}

.topic-consensus-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.topic-consensus-actions button {
  min-height: 29px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 8px;
}

.topic-consensus-actions .primary {
  border: 0;
  background: var(--green);
  color: #fbf7ee;
}

.topic-consensus-actions .secondary {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
}

.topic-room-foot {
  margin: 11px 0 2px;
  color: var(--faint);
  font-size: 7.5px;
  line-height: 1.7;
  text-align: center;
}

.topic-archive-details {
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-size: 8px;
}

.topic-archive-details summary {
  cursor: pointer;
  color: var(--green);
}

.topic-archive-details p {
  margin-top: 6px;
  line-height: 1.7;
  white-space: pre-wrap;
}

/* -------------------------------------------------- skin studio */

.settings-link-row {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 9px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.settings-link-row:last-child {
  border-bottom: 0;
}

.settings-link-row .setting-icon {
  display: grid;
  width: 28px;
  height: 28px;
  flex: none;
  place-items: center;
  border-radius: 9px;
  background: var(--sage);
  color: var(--green);
}

.settings-link-row .setting-icon .icon {
  width: 14px;
  height: 14px;
}

.settings-link-row .setting-copy {
  flex: 1;
}

.settings-link-row .setting-copy strong {
  display: block;
  font-size: 10px;
}

.settings-link-row .setting-copy small {
  display: block;
  margin-top: 1px;
  color: var(--faint);
  font-size: 8px;
}

.settings-link-row > .icon {
  width: 13px;
  height: 13px;
  color: var(--faint);
}

.skin-grid {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.skin-card {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 252, 246, 0.7);
}

.skin-card.is-active {
  border-color: var(--sage-line);
  background: var(--sage);
}

.skin-card-top {
  display: flex;
  align-items: center;
  gap: 7px;
}

.skin-swatches {
  display: flex;
  gap: 3px;
  flex: none;
}

.skin-swatch {
  width: 17px;
  height: 17px;
  border: 1px solid rgba(57, 48, 36, 0.12);
  border-radius: 50%;
}

.skin-card-info {
  flex: 1;
  min-width: 0;
}

.skin-card-info strong {
  display: block;
  font-size: 9.5px;
}

.skin-card-info small {
  display: block;
  color: var(--faint);
  font-size: 7.5px;
}

.skin-price {
  color: var(--gold);
  font-size: 8px;
  white-space: nowrap;
}

.skin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.skin-actions button {
  min-height: 26px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--green);
  font-size: 7.5px;
}

.skin-actions button.use {
  border-color: transparent;
  background: var(--green);
  color: #fbf7ee;
}

.skin-actions button.is-off {
  color: var(--faint);
}

.skin-color-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.skin-color-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.skin-color-field label {
  color: var(--muted);
  font-size: 8px;
}

.skin-color-field input[type="color"] {
  width: 100%;
  height: 36px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
}

.skin-preview {
  margin-top: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--skin-preview-bg, var(--paper));
}

.skin-preview-bubble {
  max-width: 86%;
  margin-top: 6px;
  padding: 7px 9px;
  border-radius: 12px 12px 12px 4px;
  background: var(--skin-preview-bubble, var(--sage));
  color: var(--skin-preview-ink, var(--green-deep));
  font-size: 8.5px;
  line-height: 1.6;
}

.skin-preview-bubble.mine {
  margin-left: auto;
  border-radius: 12px 12px 4px 12px;
  background: var(--skin-preview-accent, var(--green));
  color: #fbf7ee;
}

.skin-note {
  margin-top: 9px;
  color: var(--faint);
  font-size: 8px;
  line-height: 1.7;
}

/* -------------------------------------------------- mailbox */

.mailbox-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 9px;
}

.mailbox-item {
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 252, 246, 0.6);
}

.mailbox-item-top {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--faint);
  font-size: 7px;
}

.mailbox-item-top .mail-status {
  margin-left: auto;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--sage);
  color: var(--green);
  font-size: 7px;
}

.mailbox-item-top .mail-status.local {
  background: rgba(180, 138, 92, 0.12);
  color: var(--gold);
}

.mailbox-item p {
  margin-top: 4px;
  color: var(--ink-2);
  font-size: 8.5px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.mailbox-empty {
  padding: 10px;
  border: 1px dashed var(--line);
  border-radius: 11px;
  color: var(--faint);
  font-size: 8px;
  line-height: 1.6;
}

@media (max-width: 420px) {
  .breathe-orb {
    width: 148px;
    height: 148px;
  }

  .breathe-orb-wrap {
    width: 160px;
    height: 160px;
  }

  .skin-color-row {
    grid-template-columns: 1fr;
  }

  .field-tools button {
    min-height: 27px;
  }
}

.topic-card-title {
  display: block;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.55;
  text-align: left;
}

.topic-card-note {
  display: block;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.6;
  text-align: left;
}

.issue-footnote {
  margin: 7px 0 2px;
  padding-top: 7px;
  border-top: 1px dashed var(--line);
  color: var(--faint);
  font-size: 7.5px;
  line-height: 1.65;
}

.topic-consent {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 10px;
  padding: 7px 9px;
  border: 1px dashed var(--sage-line);
  border-radius: 12px;
  background: rgba(233, 238, 231, 0.35);
}

.topic-consent .toggle-row {
  margin: 2px 0;
}

.topic-consensus-actions button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.slow-suggestion {
  margin: 8px 0;
}

.skin-actions button:disabled {
  opacity: 0.5;
}

.skin-card.is-active .skin-actions .use {
  background: var(--green);
  color: #fbf7ee;
}

/* -------------------------------------------------- wallpaper skins */

.skin-backdrop {
  position: absolute;
  inset: -18px;
  z-index: 0;
  pointer-events: none;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0;
  transition: opacity 0.45s var(--ease), background 0.45s var(--ease);
  transform: scale(1.04);
}

.app.has-skin .skin-backdrop {
  opacity: 1;
}

.skin-backdrop.is-animated {
  animation: skinDrift 26s ease-in-out infinite alternate;
}

@keyframes skinDrift {
  from { transform: scale(1.035) translate3d(0, 0, 0); }
  to { transform: scale(1.11) translate3d(-1.6%, -1.1%, 0); }
}

.app.has-skin .screen {
  background: linear-gradient(180deg, rgba(250, 247, 240, 0.93) 0%, rgba(250, 247, 240, 0.73) 32%, rgba(250, 247, 240, 0.56) 100%);
}

.app.has-skin .page.slow-chat-page,
.app.has-skin .screen.chat-mode {
  background: transparent;
}

.avatar img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.companion-identity {
  display: flex;
  align-items: center;
  gap: 9px;
}

.companion-identity .companion-identity-copy {
  flex: 1;
  min-width: 0;
}

.companion-identity .companion-identity-copy strong {
  display: block;
  font-size: 11px;
}

.companion-identity .companion-identity-copy small {
  display: block;
  margin-top: 1px;
  color: var(--faint);
  font-size: 8px;
  line-height: 1.55;
}

.companion-avatar-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 6px;
}

.companion-avatar-choice {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--green-deep);
  font-family: var(--serif);
  font-size: 14px;
}

.companion-avatar-choice[aria-pressed="true"] {
  border-color: var(--green);
  box-shadow: 0 0 0 2px var(--sage);
}

.companion-avatar-preview {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 9px 0;
  padding: 9px;
  border: 1px dashed var(--line-strong);
  border-radius: 13px;
  background: rgba(255, 252, 246, 0.5);
}

.companion-avatar-preview .avatar {
  width: 48px;
  height: 48px;
  font-size: 19px;
}

.companion-finish {
  display: flex;
  width: 100%;
  flex: none;
  align-items: center;
  gap: 7px;
  margin: 3px 0 4px;
  padding: 7px 10px;
  border: 1px dashed var(--sage-line);
  border-radius: 12px;
  background: rgba(233, 238, 231, 0.52);
  color: var(--green-deep);
  text-align: left;
}

.companion-finish .finish-icon {
  display: grid;
  width: 25px;
  height: 25px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 252, 246, 0.8);
  color: var(--green);
}

.companion-finish .finish-icon .icon {
  width: 13px;
  height: 13px;
}

.companion-finish span:not(.finish-icon) {
  flex: 1;
  font-size: 8.5px;
  line-height: 1.55;
}

.companion-finish strong {
  font-size: 8.5px;
  font-weight: 500;
  white-space: nowrap;
}

.companion-classify {
  margin-top: 6px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 252, 246, 0.58);
}

.companion-classify.angry {
  border-color: rgba(193, 106, 80, 0.24);
  background: rgba(244, 225, 216, 0.45);
}

.companion-classify.heart {
  border-color: var(--sage-line);
  background: rgba(233, 238, 231, 0.55);
}

.companion-classify.mixed {
  border-color: rgba(180, 138, 92, 0.28);
  background: rgba(246, 239, 226, 0.55);
}

.companion-classify-head {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 4px;
}

.companion-classify-head .eyebrow {
  font-size: 7px;
}

.companion-classify-head .tag {
  margin-left: auto;
}

.companion-classify p {
  color: var(--ink-2);
  font-size: 8.5px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.companion-classify-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}

.companion-classify-actions button {
  min-height: 25px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 7.5px;
}

.companion-classify-actions button.primary {
  border-color: transparent;
  background: var(--green);
  color: #fbf7ee;
}

/* -------------------------------------------------- wishes */

.wish-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wish-card {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 252, 246, 0.7);
}

.wish-card.is-done {
  background: rgba(233, 238, 231, 0.38);
}

.wish-card .check-btn {
  margin-top: 1px;
}

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

.wish-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 3px;
}

.wish-top .tag {
  font-size: 7px;
}

.wish-text {
  color: var(--ink-2);
  font-size: 9.5px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.wish-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  color: var(--faint);
  font-size: 7px;
}

.wish-meta .wish-visible {
  color: var(--green);
}

.wish-delete {
  flex: none;
  padding: 3px 5px;
  border: 0;
  background: transparent;
  color: var(--faint);
  font-size: 7px;
}

.wish-empty {
  padding: 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 13px;
  background: rgba(255, 252, 246, 0.4);
  color: var(--muted);
  font-size: 8.5px;
  line-height: 1.7;
}

.wish-footnote {
  margin-top: 7px;
  color: var(--faint);
  font-size: 7.5px;
  line-height: 1.65;
}

/* -------------------------------------------------- wallpaper studio */

.skin-wall-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.skin-wall-card {
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--paper);
}

.skin-wall-card.is-active {
  border-color: var(--green);
  box-shadow: 0 0 0 2px var(--sage);
}

.skin-wall-thumb {
  position: relative;
  height: 130px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.skin-wall-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 24, 22, 0.04), rgba(20, 24, 22, 0.22));
}

.skin-wall-time {
  position: absolute;
  z-index: 1;
  top: 8px;
  left: 9px;
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1;
  text-shadow: 0 1px 8px rgba(20, 24, 22, 0.3);
}

.skin-wall-lock {
  position: absolute;
  z-index: 1;
  right: 8px;
  bottom: 8px;
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 252, 246, 0.5);
  color: #fff;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.skin-wall-lock .icon {
  width: 9px;
  height: 9px;
}

.skin-wall-info {
  padding: 8px 9px 9px;
}

.skin-wall-info strong {
  display: block;
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 600;
}

.skin-wall-info small {
  display: block;
  margin-top: 2px;
  color: var(--faint);
  font-size: 7px;
  line-height: 1.55;
}

.skin-wall-actions {
  display: flex;
  gap: 4px;
  margin-top: 6px;
}

.skin-wall-actions button {
  min-height: 24px;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--green);
  font-size: 7px;
}

.skin-wall-actions button.use {
  border-color: transparent;
  background: var(--green);
  color: #fbf7ee;
}

.skin-wall-actions button:disabled {
  opacity: 0.5;
}

.skin-upload-preview {
  position: relative;
  height: 200px;
  margin-top: 9px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(155deg, var(--paper), var(--sage));
  background-position: center;
  background-size: cover;
}

.skin-upload-preview .skin-preview-clock {
  position: absolute;
  top: 18px;
  left: 18px;
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--serif);
  font-size: 36px;
  line-height: 1;
  text-shadow: 0 2px 14px rgba(20, 24, 22, 0.3);
}

.skin-upload-preview .skin-preview-date {
  position: absolute;
  top: 59px;
  left: 20px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 8px;
  text-shadow: 0 1px 8px rgba(20, 24, 22, 0.3);
}

.skin-upload-preview .skin-preview-lock {
  position: absolute;
  bottom: 14px;
  left: 50%;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 252, 246, 0.42);
  color: rgba(255, 255, 255, 0.9);
  transform: translateX(-50%);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.skin-upload-preview .skin-preview-lock .icon {
  width: 11px;
  height: 11px;
}

.skin-upload-name {
  position: absolute;
  right: 14px;
  bottom: 12px;
  left: 14px;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--serif);
  font-size: 15px;
  text-align: center;
  text-shadow: 0 1px 12px rgba(20, 24, 22, 0.4);
}

.skin-upload-input {
  margin-top: 5px;
}

.skin-upload-input::file-selector-button {
  margin-right: 7px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--green);
  font-size: 8px;
  cursor: pointer;
}

@media (max-width: 380px) {
  .skin-wall-grid {
    grid-template-columns: 1fr;
  }
}

.wish-card.is-done .wish-text {
  color: var(--faint);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.companion-finish:hover {
  background: var(--sage);
}

.skin-wall-thumb {
  background-color: var(--paper-2);
}

@media (prefers-reduced-motion: reduce) {
  .skin-backdrop.is-animated {
    animation: none;
  }
}

/* -------------------------------------------------- optional companion model */

.companion-llm-card {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 5px;
  margin: 3px 0 5px;
  padding: 10px 11px;
  border: 1px solid rgba(78, 102, 119, 0.2);
  border-radius: 13px;
  background:
    radial-gradient(180px 100px at 100% 0%, rgba(234, 240, 242, 0.9), transparent 70%),
    rgba(255, 252, 246, 0.72);
}

.companion-llm-head {
  display: flex;
  align-items: center;
  gap: 5px;
}

.companion-llm-head .eyebrow {
  font-size: 7px;
}

.companion-llm-card p {
  color: var(--ink-2);
  font-size: 8.5px;
  line-height: 1.7;
}

.companion-llm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 2px;
}

.companion-llm-actions button {
  min-height: 27px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 7.5px;
}

.companion-llm-actions button.primary {
  border-color: transparent;
  background: var(--green);
  color: #fbf7ee;
}

.companion-llm-note {
  color: var(--faint);
  font-size: 7px;
  line-height: 1.55;
}

/* -------------------------------------------------- decompression games */

.relax-link {
  display: flex;
  flex: none;
  align-items: center;
  gap: 6px;
  width: 100%;
  margin: 3px 0 4px;
  padding: 5px 9px;
  border: 1px solid rgba(57, 48, 36, 0.08);
  border-radius: 999px;
  background: rgba(255, 252, 246, 0.42);
  color: var(--faint);
  font-size: 7.5px;
  text-align: left;
}

.relax-link strong {
  color: var(--green);
  font-size: 8px;
  font-weight: 500;
}

.relax-link span:last-child {
  margin-left: auto;
  color: var(--faint);
  font-size: 13px;
  line-height: 1;
}

.relax-layer {
  position: fixed;
  z-index: 88;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(33, 42, 36, 0.42);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.relax-panel {
  width: min(100%, 430px);
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
  padding: 18px 18px 14px;
  border: 1px solid rgba(63, 91, 74, 0.14);
  border-radius: 24px;
  background: #fbf7ef;
  box-shadow: 0 30px 70px -36px rgba(36, 48, 39, 0.65);
  scrollbar-width: none;
}

.relax-panel::-webkit-scrollbar {
  display: none;
}

.relax-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.relax-head > div {
  flex: 1;
}

.relax-head .eyebrow {
  font-size: 7px;
}

.relax-head h2 {
  margin-top: 2px;
  color: var(--green-deep);
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.relax-tabs {
  display: flex;
  gap: 4px;
  margin: 14px 0 10px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(57, 48, 36, 0.045);
}

.relax-tabs button {
  flex: 1;
  min-height: 32px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 8.5px;
}

.relax-tabs button[aria-selected="true"] {
  background: var(--paper);
  color: var(--green-deep);
  box-shadow: 0 6px 16px -14px rgba(44, 64, 52, 0.45);
}

.relax-view {
  min-height: 280px;
}

.relax-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 8px;
  color: var(--muted);
  font-size: 8px;
}

.relax-meta strong {
  color: var(--green-deep);
  font-size: 10px;
}

.relax-meta button {
  margin-left: auto;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--green);
  font-size: 7.5px;
}

.bubble-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
  padding: 10px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(228, 235, 226, 0.65), rgba(255, 252, 246, 0.58));
}

.pop-bubble {
  position: relative;
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid rgba(63, 91, 74, 0.15);
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 27%, rgba(255, 255, 255, 0.94), rgba(217, 230, 219, 0.72) 48%, rgba(180, 200, 183, 0.66));
  box-shadow: inset 0 -2px 4px rgba(86, 113, 91, 0.12), 0 3px 7px -5px rgba(44, 64, 52, 0.4);
  transition: transform 0.14s var(--ease), opacity 0.2s var(--ease), background 0.2s var(--ease);
}

.pop-bubble::after {
  content: "";
  position: absolute;
  top: 19%;
  left: 23%;
  width: 24%;
  height: 18%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  transform: rotate(-25deg);
}

.pop-bubble.is-popped {
  border-color: rgba(63, 91, 74, 0.06);
  background: rgba(63, 91, 74, 0.06);
  box-shadow: inset 0 1px 3px rgba(44, 64, 52, 0.12);
  opacity: 0.55;
  transform: scale(0.7);
}

.pop-bubble.is-popped::after {
  display: none;
}

.relax-note {
  margin-top: 9px;
  color: var(--faint);
  font-size: 7.5px;
  line-height: 1.7;
  text-align: center;
}

.fish-stage {
  position: relative;
  display: flex;
  min-height: 250px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.wooden-fish {
  position: relative;
  display: grid;
  width: 150px;
  height: 115px;
  place-items: center;
  border: 1px solid rgba(92, 69, 48, 0.2);
  border-radius: 50% 50% 46% 46%;
  background:
    radial-gradient(circle at 40% 28%, #c99b6f, #8f6440 58%, #6f4c30);
  box-shadow: inset 0 -8px 18px rgba(52, 34, 21, 0.28), 0 18px 28px -20px rgba(52, 34, 21, 0.55);
  color: #f6e6cc;
  font-family: var(--serif);
  font-size: 38px;
  transform-origin: center bottom;
}

.wooden-fish::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 18px;
  width: 25px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 236, 205, 0.32);
  transform: rotate(-25deg);
}

.wooden-fish.is-hit {
  animation: fishHit 0.22s var(--ease);
}

@keyframes fishHit {
  0% { transform: scale(1); }
  45% { transform: scale(0.94, 1.04); }
  100% { transform: scale(1); }
}

.fish-stick {
  position: absolute;
  top: -26px;
  right: 12px;
  width: 8px;
  height: 70px;
  border-radius: 999px;
  background: #9c6f49;
  transform: rotate(22deg);
  transform-origin: bottom;
  box-shadow: 0 2px 2px rgba(66, 42, 24, 0.2);
}

.fish-stick::after {
  content: "";
  position: absolute;
  top: -7px;
  left: -3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #b98558;
}

.fish-body {
  position: relative;
  z-index: 1;
  transform: translateY(4px);
}

.fish-count {
  margin-top: 18px;
  color: var(--muted);
  font-size: 9px;
}

.fish-count strong {
  color: var(--green-deep);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
}

.fish-reset {
  margin-top: 5px;
  padding: 2px 7px;
  border: 0;
  background: transparent;
  color: var(--faint);
  font-size: 7px;
}

.fish-float {
  position: absolute;
  top: 58%;
  left: 50%;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 16px;
  pointer-events: none;
  animation: fishFloat 0.75s ease-out forwards;
}

@keyframes fishFloat {
  from { opacity: 0.9; transform: translate(-50%, 0) scale(0.8); }
  to { opacity: 0; transform: translate(-50%, -54px) scale(1.1); }
}

.relax-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 7px;
}

.relax-foot button {
  flex: none;
  padding: 3px 8px;
  border: 1px solid var(--sage-line);
  border-radius: 999px;
  background: transparent;
  color: var(--green);
  font-size: 7.5px;
}

@media (max-width: 420px) {
  .relax-layer {
    padding: 12px;
  }

  .relax-panel {
    max-height: calc(100dvh - 24px);
    padding: 16px 14px 12px;
  }

  .relax-view {
    min-height: 260px;
  }

  .bubble-grid {
    gap: 4px;
    padding: 8px;
  }
}

/* -------------------------------------------------- categories */
.category-tabs {
  display: flex;
  flex: none;
  gap: 3px;
  margin: 0 0 12px;
  padding: 3px;
  overflow-x: auto;
  border-radius: 13px;
  background: rgba(57, 48, 36, 0.055);
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.category-tabs button,
.category-tab-link {
  display: flex;
  min-height: 34px;
  flex: 1;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.category-tabs button.is-active,
.category-tabs button[aria-selected="true"] {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 5px 12px -10px rgba(45, 34, 22, 0.5);
}

.category-tab-link {
  color: var(--green-deep);
}

.category-tab-link:hover {
  background: rgba(255, 252, 246, 0.55);
}

.page.slow-chat-page > .category-tabs {
  margin-right: 16px;
  margin-left: 16px;
}

/* -------------------------------------------------- tools */
.tools-quiet-link {
  display: flex;
  width: 100%;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 252, 246, 0.42);
  color: var(--muted);
  font-size: 10px;
}

.tools-quiet-link .icon {
  width: 13px;
  height: 13px;
}

.tools-games-intro {
  padding: 18px 17px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(228, 235, 226, 0.82), rgba(255, 252, 246, 0.72));
}

.tools-games-intro h2 {
  margin-top: 4px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.4;
}

.tools-games-intro p:last-child {
  margin-top: 7px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.75;
}

.tools-games-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.tools-game-card {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 252, 246, 0.7);
  color: var(--ink);
  text-align: left;
  text-decoration: none;
}

.tools-game-card:active {
  transform: scale(0.992);
}

.tools-game-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  background: var(--sage);
  color: var(--green-deep);
  font-family: var(--serif);
  font-size: 20px;
}

.tools-game-card:nth-child(2) .tools-game-mark {
  background: rgba(242, 218, 204, 0.72);
  color: #805b43;
}

.tools-game-card:nth-child(3) .tools-game-mark {
  background: rgba(219, 230, 220, 0.85);
  color: var(--green-deep);
}

.tools-game-copy {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.tools-game-copy strong {
  font-size: 12px;
  font-weight: 600;
}

.tools-game-copy small {
  color: var(--muted);
  font-size: 9px;
}

.tools-game-arrow {
  color: var(--faint);
  font-size: 20px;
}

.tools-games-note {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin-top: 14px;
  color: var(--faint);
  font-size: 8.5px;
  line-height: 1.65;
}

.tools-games-note .icon {
  width: 11px;
  height: 11px;
  flex: none;
  margin-top: 2px;
}

/* -------------------------------------------------- chat switcher */
.avatar-companion[data-longpress="chat-switcher"] {
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-touch-callout: none;
}

.avatar-companion[data-longpress="chat-switcher"]:focus-visible {
  outline: 2px solid rgba(63, 91, 74, 0.45);
  outline-offset: 2px;
}

.chat-switch-current {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(228, 235, 226, 0.7);
}

.chat-switch-current .avatar {
  width: 42px;
  height: 42px;
  flex: none;
}

.chat-switch-current-copy {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.chat-switch-current-copy strong {
  color: var(--ink);
  font-size: 12px;
}

.chat-switch-current-copy span {
  color: var(--muted);
  font-size: 9px;
}

.chat-switch-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 18px 0 8px;
}

.chat-switch-section-head h2 {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 15px;
}

.chat-switch-section-head span {
  color: var(--faint);
  font-size: 8px;
}

.chat-switch-person {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 252, 246, 0.58);
}

.chat-switch-person + .chat-switch-person {
  margin-top: 7px;
}

.chat-switch-person-top {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.chat-switch-person-top .avatar {
  width: 38px;
  height: 38px;
  flex: none;
}

.chat-switch-person-copy {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.chat-switch-person-copy strong {
  color: var(--ink);
  font-size: 11px;
}

.chat-switch-person-copy strong .tag {
  margin-left: 2px;
  font-size: 8px;
}

.chat-switch-person-copy small {
  color: var(--muted);
  font-size: 8.5px;
}

.chat-switch-person-copy > span {
  overflow: hidden;
  color: var(--faint);
  font-size: 8.5px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-switch-person-actions {
  display: flex;
  gap: 5px;
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.chat-switch-person-actions button,
.chat-person-actions button {
  min-height: 32px;
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 252, 246, 0.62);
  color: var(--muted);
  font-size: 9.5px;
}

.chat-switch-person-actions button.primary {
  border-color: transparent;
  background: var(--green-deep);
  color: var(--paper);
}

.chat-switch-empty {
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 13px;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.7;
}

.chat-switch-social {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  text-decoration: none;
}

.chat-person-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 0 14px;
}

.chat-person-hero .avatar {
  width: 54px;
  height: 54px;
  flex: none;
  font-size: 18px;
}

.chat-person-hero h2 {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 21px;
}

.chat-person-hero p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9.5px;
}

.chat-person-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  padding: 11px 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 252, 246, 0.54);
  text-align: center;
}

.chat-person-stats div {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.chat-person-stats strong {
  color: var(--green-deep);
  font-family: var(--serif);
  font-size: 19px;
}

.chat-person-stats span {
  color: var(--faint);
  font-size: 8px;
}

.chat-person-actions {
  gap: 6px;
}

.chat-person-actions .primary-btn,
.chat-person-actions .secondary-btn {
  flex: 1;
  margin: 0;
}

.site-icp {
  flex: none;
  padding: 2px 10px 3px;
  color: var(--faint);
  font-size: 8px;
  line-height: 1.5;
  text-align: center;
}

.site-icp a {
  color: inherit;
  text-decoration: none;
}

.site-icp a:hover {
  color: var(--muted);
}

.social-icp {
  background: rgba(250, 247, 240, 0.72);
}

.home-live-game {
  display: flex;
  flex: none;
  align-items: center;
  gap: 9px;
  margin: 7px 0 9px;
  padding: 10px 12px;
  border: 1px solid rgba(63, 91, 74, 0.16);
  border-radius: 15px;
  background: linear-gradient(110deg, rgba(228, 235, 226, 0.92), rgba(242, 218, 204, 0.58));
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 12px 26px -24px rgba(44, 64, 52, 0.65);
}

.home-live-kicker {
  display: flex;
  flex: none;
  align-items: center;
  gap: 4px;
  color: var(--green-deep);
  font-size: 7.5px;
  letter-spacing: 0.08em;
}

.home-live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}

.home-live-copy {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 1px;
}

.home-live-copy strong {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
}

.home-live-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-live-enter {
  flex: none;
  color: var(--green-deep);
  font-size: 9px;
}
