:root {
  color-scheme: light;
  --bg: #f5fbef;
  --bg-warm: #fff8df;
  --bg-water: #d5efe3;
  --surface: rgba(255, 255, 247, 0.62);
  --surface-solid: #fffdf3;
  --surface-soft: rgba(232, 245, 224, 0.7);
  --surface-mist: rgba(255, 255, 247, 0.34);
  --ink: #183428;
  --muted: #637668;
  --quiet: #829386;
  --edge: rgba(39, 84, 61, 0.08);
  --edge-strong: rgba(39, 84, 61, 0.16);
  --leaf: #76a86f;
  --leaf-deep: #285a3c;
  --moss: #4f8559;
  --mint: #caebc5;
  --water: #86cfc0;
  --glow: #e3fba8;
  --sun: #eed89b;
  --clay: #caa582;
  --petal: #d9d5ff;
  --gradient: linear-gradient(135deg, #e5f7c4 0%, #8fd8b8 38%, #4f9a6a 72%, #2e6647 100%);
  --deep-gradient: linear-gradient(135deg, #f1ffd3 0%, #9be3be 34%, #52a56e 68%, #27543d 100%);
  --text-gradient: linear-gradient(105deg, #102c20 0%, #285a3c 46%, #4f8559 74%, #7b7bd9 100%);
  --shadow: 0 34px 130px rgba(33, 77, 54, 0.15);
  --shadow-soft: 0 22px 70px rgba(33, 77, 54, 0.09);
  --feather: 0 26px 110px rgba(33, 77, 54, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 -42px 90px rgba(113, 181, 124, 0.07);
  --radius: 8px;
  --stage-radius: 30px;
  --pill: 999px;
  font-family:
    "Instrument Sans", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
}

:root[data-theme="night"] {
  color-scheme: dark;
  --bg: #07130e;
  --bg-warm: #1d2014;
  --bg-water: #0f261e;
  --surface: rgba(9, 24, 18, 0.7);
  --surface-solid: #0d1e17;
  --surface-soft: rgba(21, 48, 35, 0.72);
  --surface-mist: rgba(176, 225, 188, 0.08);
  --ink: #eefbec;
  --muted: #b0c5b6;
  --quiet: #8ba697;
  --edge: rgba(224, 255, 220, 0.08);
  --edge-strong: rgba(224, 255, 220, 0.15);
  --leaf: #9edb8f;
  --leaf-deep: #cdf7c5;
  --moss: #81c489;
  --mint: #224d34;
  --water: #72cabb;
  --glow: #c9ef92;
  --sun: #dfca8a;
  --clay: #c9a37e;
  --petal: #a7a4ff;
  --gradient: linear-gradient(135deg, #183c28 0%, #25704b 46%, #92d383 100%);
  --deep-gradient: linear-gradient(135deg, #143622 0%, #27764e 44%, #9adf89 100%);
  --text-gradient: linear-gradient(105deg, #f7fff3 0%, #dcf9d8 50%, #95d58c 74%, #aaa8ff 100%);
  --shadow: 0 34px 110px rgba(0, 0, 0, 0.38);
  --shadow-soft: 0 18px 58px rgba(0, 0, 0, 0.28);
  --feather: 0 30px 120px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 -42px 90px rgba(129, 196, 137, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 18%, rgba(227, 251, 168, 0.42), transparent 38rem),
    radial-gradient(circle at 78% 48%, rgba(134, 207, 192, 0.36), transparent 35rem),
    linear-gradient(126deg, rgba(245, 251, 239, 0.98) 0%, rgba(210, 239, 218, 0.92) 34%, rgba(143, 216, 184, 0.76) 60%, rgba(255, 248, 223, 0.78) 100%),
    linear-gradient(180deg, var(--bg), var(--bg-water));
  overflow-x: hidden;
  isolation: isolate;
}

:root[data-theme="night"] body {
  background:
    radial-gradient(circle at 50% 18%, rgba(129, 196, 137, 0.2), transparent 38rem),
    radial-gradient(circle at 78% 48%, rgba(114, 202, 187, 0.16), transparent 35rem),
    linear-gradient(126deg, rgba(7, 19, 14, 0.97) 0%, rgba(13, 38, 29, 0.94) 36%, rgba(22, 74, 55, 0.76) 67%, rgba(30, 33, 21, 0.84) 100%),
    linear-gradient(180deg, var(--bg), var(--bg-water));
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(115deg, rgba(39, 84, 61, 0.028) 0 1px, transparent 1px 18px),
    repeating-linear-gradient(25deg, rgba(255, 255, 255, 0.22) 0 1px, transparent 1px 24px);
  opacity: 0.58;
  content: "";
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button,
input,
textarea,
.tab,
.year-card,
.archive-item,
.conversation-panel,
.summary-panel,
.date-band {
  transition:
    background-color 0.24s ease,
    border-color 0.24s ease,
    box-shadow 0.24s ease,
    color 0.24s ease,
    transform 0.24s ease,
    opacity 0.24s ease;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(122, 202, 181, 0.42);
  outline-offset: 4px;
}

.breath-canvas {
  position: fixed;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.95;
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 1200px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 18px;
}

.topbar {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  min-height: 176px;
  margin: 0 0 14px;
  padding: clamp(22px, 4vw, 42px);
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(circle at 68% 12%, rgba(226, 255, 188, 0.4), transparent 26rem),
    linear-gradient(115deg, rgba(255, 255, 246, 0.5), rgba(222, 245, 214, 0.18) 44%, rgba(134, 207, 192, 0.15)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.05));
  box-shadow: var(--feather);
  backdrop-filter: blur(22px);
  isolation: isolate;
}

:root[data-theme="night"] .topbar {
  background:
    linear-gradient(115deg, rgba(14, 36, 25, 0.82), rgba(32, 78, 48, 0.35) 48%, rgba(76, 114, 104, 0.16)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
}

.topbar::before {
  position: absolute;
  inset: -22% -14% auto 34%;
  height: 132%;
  background:
    conic-gradient(from 208deg, rgba(227, 251, 168, 0.62), rgba(134, 207, 192, 0.24), rgba(217, 213, 255, 0.22), rgba(244, 215, 154, 0.32), rgba(227, 251, 168, 0.62));
  filter: blur(28px);
  opacity: 0.52;
  transform: rotate(-8deg);
  content: "";
  z-index: -2;
}

.topbar::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.28), transparent 42%),
    repeating-linear-gradient(90deg, transparent 0 30px, rgba(40, 90, 60, 0.035) 30px 31px);
  content: "";
  z-index: -1;
}

.topbar-copy {
  max-width: 850px;
  align-self: end;
}

.eyebrow,
.section-kicker {
  margin: 0 0 8px;
  color: var(--moss);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-family: "Space Grotesk", "Instrument Sans", "Avenir Next", sans-serif;
  font-size: clamp(3.2rem, 9.5vw, 7.8rem);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: 0;
  background: var(--text-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nowrap {
  white-space: nowrap;
}

h2 {
  margin-bottom: 0;
  font-size: 1.2rem;
  font-weight: 720;
  line-height: 1.18;
  letter-spacing: 0;
}

.icon-button {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: var(--pill);
  color: var(--leaf-deep);
  background: rgba(255, 255, 247, 0.58);
  box-shadow: 0 14px 38px rgba(33, 77, 54, 0.13);
  backdrop-filter: blur(16px);
}

.theme-mark {
  position: relative;
  width: 19px;
  height: 19px;
  border-radius: 999px;
  background: var(--leaf-deep);
}

.theme-mark::after {
  position: absolute;
  top: 1px;
  left: 7px;
  width: 19px;
  height: 19px;
  border-radius: 999px;
  background: var(--surface-solid);
  content: "";
}

.date-band {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 16px 0 14px;
  padding: 18px;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 24% 0%, rgba(226, 255, 188, 0.24), transparent 18rem),
    linear-gradient(145deg, rgba(255, 255, 247, 0.54), rgba(225, 246, 218, 0.28));
  box-shadow: var(--feather);
  backdrop-filter: blur(20px);
}

.date-band::after {
  position: absolute;
  right: -28px;
  bottom: -36px;
  width: 220px;
  height: 130px;
  background:
    linear-gradient(90deg, transparent, rgba(40, 90, 60, 0.11) 48%, transparent 52%),
    repeating-linear-gradient(90deg, rgba(40, 90, 60, 0.08) 0 1px, transparent 1px 28px);
  transform: rotate(-8deg);
  opacity: 0.58;
  content: "";
}

.date-picker {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 680;
}

.date-picker input {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: var(--radius);
  padding: 0 14px;
  color: var(--ink);
  background: rgba(255, 255, 247, 0.44);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.64), 0 14px 46px rgba(33, 77, 54, 0.07);
}

.date-picker input:focus,
.summary-editor:focus {
  border-color: rgba(79, 133, 89, 0.36);
  background: var(--surface-solid);
}

.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin: 16px 0;
  padding: 6px;
  border-radius: var(--pill);
  background:
    linear-gradient(135deg, rgba(255, 255, 247, 0.62), rgba(207, 235, 202, 0.34)),
    rgba(255, 255, 255, 0.2);
  box-shadow: 0 18px 70px rgba(33, 77, 54, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(18px);
}

.tab {
  min-height: 44px;
  border-radius: var(--pill);
  color: var(--muted);
  background: transparent;
  font-size: 0.94rem;
  font-weight: 720;
}

.tab:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.42);
}

:root[data-theme="night"] .tab:hover {
  background: rgba(255, 255, 255, 0.08);
}

.tab.is-active {
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent),
    linear-gradient(135deg, #285a3c, #6ab579 62%, #8ccfbd);
  box-shadow: 0 14px 32px rgba(40, 90, 60, 0.25);
}

.view {
  display: none;
}

.view.is-visible {
  display: grid;
  gap: 16px;
}

.conversation-panel,
.summary-panel,
.year-card,
.archive-item {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 18% 0%, rgba(226, 255, 188, 0.18), transparent 18rem),
    linear-gradient(145deg, rgba(255, 255, 247, 0.56), rgba(225, 246, 218, 0.22) 54%, rgba(134, 207, 192, 0.12));
  box-shadow: var(--feather);
  backdrop-filter: blur(24px);
}

.conversation-panel::before,
.summary-panel::before,
.year-card::before,
.archive-item::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.38), transparent 42%),
    repeating-linear-gradient(180deg, transparent 0 34px, rgba(40, 90, 60, 0.028) 34px 35px);
  opacity: 0.72;
  content: "";
}

.conversation-panel:hover,
.summary-panel:hover,
.year-card:hover,
.archive-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 32px 104px rgba(33, 77, 54, 0.17);
}

.conversation-panel,
.summary-panel {
  display: grid;
  gap: 18px;
  align-content: start;
  padding: 18px;
}

.panel-heading,
.timeline-heading {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

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

.audio-panel {
  min-height: 560px;
}

.voice-stage {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 340px;
  place-items: center;
  overflow: hidden;
  border-radius: var(--stage-radius);
  background:
    radial-gradient(circle at 50% 35%, rgba(227, 251, 168, 0.38), transparent 15rem),
    linear-gradient(145deg, rgba(239, 255, 214, 0.52), rgba(134, 207, 192, 0.18) 46%, rgba(217, 213, 255, 0.1)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.1));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -26px 80px rgba(79, 133, 89, 0.08),
    0 24px 90px rgba(33, 77, 54, 0.1);
  isolation: isolate;
}

:root[data-theme="night"] .voice-stage {
  background:
    linear-gradient(145deg, rgba(20, 54, 34, 0.82), rgba(20, 82, 60, 0.28) 52%, rgba(76, 72, 134, 0.14)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

.voice-stage::before,
.voice-stage::after {
  position: absolute;
  inset: 16%;
  z-index: -1;
  border-radius: 999px;
  background: radial-gradient(closest-side, transparent 70%, rgba(79, 133, 89, 0.11) 74%, transparent 82%);
  content: "";
  animation: breathe 9s ease-in-out infinite;
}

.voice-stage::after {
  inset: 25%;
  background: radial-gradient(closest-side, transparent 68%, rgba(134, 207, 192, 0.13) 74%, transparent 84%);
  animation-duration: 12s;
  animation-delay: -3s;
}

.voice-orb {
  position: relative;
  z-index: 2;
  display: grid;
  width: 184px;
  height: 184px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.24), transparent 42%),
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.08) 26%, transparent 34%),
    var(--deep-gradient);
  box-shadow:
    0 32px 86px rgba(33, 77, 54, 0.3),
    inset 0 0 42px rgba(255, 255, 255, 0.3);
}

.voice-orb:hover {
  transform: scale(1.025);
}

.voice-orb:active {
  transform: scale(0.98);
}

.orb-ring {
  position: absolute;
  inset: -12px;
  border-radius: 999px;
  background: radial-gradient(closest-side, transparent 72%, rgba(79, 133, 89, 0.24) 75%, transparent 82%);
  opacity: 0.62;
  animation: orbPulse 4.8s ease-in-out infinite;
}

.ring-two {
  inset: -32px;
  animation-delay: -1.4s;
}

.ring-three {
  inset: -52px;
  animation-delay: -2.8s;
}

.orb-core {
  position: relative;
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.orb-symbol,
.orb-symbol::before,
.orb-symbol::after {
  display: block;
  width: 12px;
  height: 40px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  content: "";
}

.orb-symbol {
  position: relative;
  height: 46px;
}

.orb-symbol::before,
.orb-symbol::after {
  position: absolute;
  top: 8px;
}

.orb-symbol::before {
  left: -20px;
  height: 28px;
}

.orb-symbol::after {
  right: -20px;
  height: 28px;
}

.voice-stage[data-voice-state="listening"] .voice-orb,
.voice-stage[data-voice-state="speaking"] .voice-orb {
  animation: softGlow 2.6s ease-in-out infinite;
}

.voice-stage[data-voice-state="thinking"] .orb-ring {
  animation-duration: 2.4s;
}

.voice-status {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 2;
  text-align: center;
}

.voice-state {
  margin-bottom: 5px;
  color: var(--leaf-deep);
  font-size: 1rem;
  font-weight: 800;
}

.voice-hint {
  max-width: 480px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.91rem;
  line-height: 1.45;
}

.voice-controls {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.sound-bars {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  gap: 8px;
  opacity: 0.5;
}

.sound-bars span {
  display: block;
  width: 8px;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--water), var(--moss));
  transform-origin: center;
  animation: soundLift 1.8s ease-in-out infinite;
}

.sound-bars span:nth-child(2) {
  animation-delay: -0.2s;
}

.sound-bars span:nth-child(3) {
  animation-delay: -0.4s;
}

.sound-bars span:nth-child(4) {
  animation-delay: -0.6s;
}

.sound-bars span:nth-child(5) {
  animation-delay: -0.8s;
}

.sound-bars span:nth-child(6) {
  animation-delay: -1s;
}

.sound-bars span:nth-child(7) {
  animation-delay: -1.2s;
}

.transcript-pocket,
.messages,
.summary-actions,
.year-stack,
.archive-list {
  position: relative;
  z-index: 1;
  display: grid;
}

.transcript-pocket {
  gap: 10px;
}

.messages {
  gap: 10px;
  max-height: 230px;
  overflow-y: auto;
  padding: 2px;
}

.message {
  width: min(91%, 640px);
  padding: 12px 14px;
  border-radius: var(--radius);
  line-height: 1.5;
  white-space: pre-wrap;
  box-shadow: var(--shadow-soft);
}

.message.bot {
  justify-self: start;
  color: var(--ink);
  background: var(--surface-soft);
}

.message.user {
  justify-self: end;
  color: #ffffff;
  background: linear-gradient(135deg, #285a3c, #70b77a);
}

.summary-editor {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 252px;
  resize: vertical;
  border: 0;
  border-radius: var(--radius);
  padding: 16px;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 247, 0.74), rgba(255, 253, 243, 0.54)),
    repeating-linear-gradient(180deg, transparent 0 31px, rgba(40, 90, 60, 0.08) 31px 32px);
  line-height: 1.58;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -20px 60px rgba(79, 133, 89, 0.05),
    0 18px 70px rgba(33, 77, 54, 0.08);
}

:root[data-theme="night"] .summary-editor {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.04)),
    repeating-linear-gradient(180deg, transparent 0 31px, rgba(226, 255, 221, 0.06) 31px 32px);
}

.primary-button,
.secondary-button,
.text-button {
  min-height: 44px;
  border-radius: var(--pill);
  padding: 0 18px;
  font-weight: 780;
}

.primary-button {
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent),
    linear-gradient(135deg, #285a3c, #70b77a 66%, #8ccfbd);
  box-shadow: 0 17px 38px rgba(40, 90, 60, 0.24);
}

.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 21px 48px rgba(40, 90, 60, 0.28);
}

.secondary-button {
  color: var(--ink);
  background: rgba(255, 255, 247, 0.44);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 12px 30px rgba(33, 77, 54, 0.08);
  backdrop-filter: blur(12px);
}

.secondary-button:hover,
.text-button:hover,
.icon-button:hover {
  background: rgba(255, 255, 247, 0.72);
  transform: translateY(-1px);
}

.text-button {
  min-height: 36px;
  color: var(--moss);
  background: transparent;
}

.primary-button:active,
.secondary-button:active,
.text-button:active,
.icon-button:active,
.tab:active {
  transform: scale(0.98);
}

.compact {
  min-height: 40px;
  padding-inline: 15px;
  white-space: nowrap;
}

.summary-actions {
  grid-template-columns: 1fr;
  gap: 10px;
}

.year-stack,
.archive-list {
  gap: 10px;
}

.year-card,
.archive-item {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.year-card.current {
  background:
    radial-gradient(circle at 18% 0%, rgba(227, 251, 168, 0.5), transparent 16rem),
    linear-gradient(135deg, rgba(227, 251, 168, 0.34), rgba(134, 207, 192, 0.18));
}

.year-meta,
.archive-meta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 760;
}

.year-number {
  color: var(--ink);
  font-size: 1.28rem;
  font-weight: 780;
}

.entry-lines {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 20px;
  line-height: 1.52;
}

.entry-lines li::marker {
  color: var(--moss);
  font-weight: 780;
}

.empty-state {
  position: relative;
  z-index: 1;
  color: var(--muted);
  line-height: 1.5;
}

.reflection {
  position: relative;
  padding: 16px;
  overflow: hidden;
  border-radius: var(--radius);
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(227, 251, 168, 0.5), rgba(134, 207, 192, 0.24)),
    var(--surface);
  box-shadow: var(--shadow-soft);
  line-height: 1.5;
}

.reflection::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, var(--water), var(--glow));
  content: "";
}

:root[data-theme="night"] .reflection {
  background:
    linear-gradient(135deg, rgba(28, 72, 49, 0.78), rgba(40, 85, 75, 0.34)),
    var(--surface);
}

.archive-item button {
  position: relative;
  z-index: 1;
  justify-self: start;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(0.96);
    opacity: 0.28;
  }

  50% {
    transform: scale(1.08);
    opacity: 0.68;
  }
}

@keyframes orbPulse {
  0%,
  100% {
    transform: scale(0.96);
    opacity: 0.24;
  }

  50% {
    transform: scale(1.06);
    opacity: 0.8;
  }
}

@keyframes softGlow {
  0%,
  100% {
    box-shadow:
      0 30px 82px rgba(33, 77, 54, 0.28),
      inset 0 0 42px rgba(255, 255, 255, 0.28);
  }

  50% {
    box-shadow:
      0 40px 114px rgba(79, 133, 89, 0.42),
      inset 0 0 58px rgba(255, 255, 255, 0.38);
  }
}

@keyframes soundLift {
  0%,
  100% {
    transform: scaleY(0.55);
    opacity: 0.44;
  }

  50% {
    transform: scaleY(1.8);
    opacity: 0.92;
  }
}

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

@media (min-width: 760px) {
  .app-shell {
    padding: 28px;
  }

  .topbar {
    grid-template-columns: minmax(0, 1fr);
    align-items: end;
    min-height: 220px;
  }

  .date-band {
    grid-template-columns: 1fr 260px;
    align-items: center;
    padding: 22px;
  }

  .view.is-visible#checkinView {
    grid-template-columns: minmax(0, 1.06fr) minmax(330px, 0.94fr);
    align-items: start;
  }

  .conversation-panel,
  .summary-panel {
    padding: 22px;
  }

  .voice-controls,
  .summary-actions {
    grid-template-columns: 1fr 1fr;
  }

  .year-stack {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
  }

  .year-card {
    min-height: 284px;
  }
}

@media (min-width: 1120px) {
  .topbar {
    min-height: 232px;
  }
}

@media (max-width: 640px) {
  .topbar {
    min-height: 170px;
  }

  .voice-orb {
    width: 150px;
    height: 150px;
  }

  .voice-stage {
    min-height: 306px;
  }

  .voice-hint {
    font-size: 0.86rem;
  }
}

@media (max-width: 520px) {
  .timeline-heading {
    display: grid;
  }

  .heading-actions {
    justify-content: stretch;
  }

  .heading-actions .compact {
    flex: 1 1 130px;
  }
}

@media (max-width: 390px) {
  .app-shell {
    padding: 12px;
  }

  .topbar {
    min-height: 154px;
    padding: 20px;
  }

  h1 {
    font-size: 2.8rem;
  }

  .tab,
  .primary-button,
  .secondary-button {
    font-size: 0.86rem;
  }
}
