:root {
  color-scheme: light;
  --bg: #f6efe5;
  --bg-strong: #efe2d0;
  --surface: rgba(255, 251, 246, 0.84);
  --surface-strong: rgba(255, 249, 241, 0.94);
  --surface-dark: #6c4d3b;
  --text: #3f2d23;
  --text-soft: #7e6659;
  --line: rgba(112, 81, 60, 0.11);
  --accent: #c46d4a;
  --accent-strong: #aa5438;
  --accent-soft: rgba(196, 109, 74, 0.12);
  --sage: #7f9688;
  --gold: #e6bf85;
  --shadow: 0 24px 58px rgba(111, 79, 58, 0.15);
  --shadow-soft: 0 18px 40px rgba(111, 79, 58, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --safe-bottom: max(env(safe-area-inset-bottom), 18px);
  --safe-top: max(env(safe-area-inset-top), 18px);
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  --font-display: "STSong", "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", serif;
  font-family: var(--font-body);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(255, 225, 184, 0.88), transparent 28%),
    radial-gradient(circle at 100% 8%, rgba(238, 198, 136, 0.34), transparent 24%),
    linear-gradient(180deg, #f7ead7 0%, #f0dfcb 42%, #eadccd 100%);
  color: var(--text);
}

body {
  position: relative;
  overflow-x: hidden;
  font-family: var(--font-body);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(139, 83, 58, 0.025), transparent 18%, transparent 82%, rgba(74, 108, 95, 0.03)),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.045) 0,
      rgba(255, 255, 255, 0.045) 1px,
      transparent 1px,
      transparent 18px
    ),
    linear-gradient(180deg, rgba(255, 248, 241, 0.26), rgba(246, 236, 223, 0.22));
  opacity: 0.5;
}

body::after {
  z-index: 0;
  background:
    radial-gradient(circle at 10% 14%, rgba(255, 232, 198, 0.28), transparent 24%),
    radial-gradient(circle at 88% 18%, rgba(255, 220, 175, 0.18), transparent 22%),
    radial-gradient(circle at 78% 78%, rgba(127, 150, 136, 0.1), transparent 22%);
}

body.preview-mode .bottom-nav,
body.preview-mode .splash-screen {
  display: none !important;
}

body.preview-mode .app-shell {
  padding-bottom: 2rem;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  background: none;
  color: inherit;
}

.ambient {
  position: fixed;
  z-index: 0;
  width: 18rem;
  aspect-ratio: 1;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.5;
  pointer-events: none;
}

.ambient-left {
  top: -5rem;
  left: -8rem;
  background: rgba(237, 190, 118, 0.48);
}

.ambient-right {
  right: -7rem;
  bottom: 5rem;
  background: rgba(115, 145, 120, 0.24);
}

.app-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 412px;
  margin: 0 auto;
  min-height: 100vh;
  padding: calc(var(--safe-top) + 0.75rem) 1.15rem calc(var(--safe-bottom) + 6.4rem);
}

.top-bar,
.hero-card,
.setup-card,
.readiness-card,
.stat-card,
.voice-card,
.welcome-card,
.recent-card,
.section-card,
.sheet-panel,
.splash-card {
  backdrop-filter: blur(16px);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.top-bar {
  position: relative;
  overflow: hidden;
  display: block;
  padding: 0.94rem 1rem;
  min-height: 5rem;
  border-radius: 30px;
  border: 1px solid rgba(126, 66, 45, 0.12);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 216, 168, 0.26), transparent 28%),
    radial-gradient(circle at 0% 100%, rgba(255, 255, 255, 0.08), transparent 36%),
    linear-gradient(135deg, #bc6d49 0%, #9d563c 58%, #854733 100%);
  box-shadow:
    0 24px 50px rgba(128, 73, 52, 0.26),
    inset 0 1px 0 rgba(255, 246, 238, 0.2);
}

.top-bar .eyebrow {
  color: rgba(255, 245, 235, 0.78);
}

.top-bar-main h2 {
  color: #fff8f1;
}

.top-bar-main {
  min-width: 0;
  padding-right: 8rem;
}

.top-bar-main h2 {
  font-size: clamp(1.72rem, 6vw, 2.04rem);
  line-height: 1;
  text-wrap: balance;
}

.top-bar-actions {
  position: absolute;
  top: 50%;
  right: 0.92rem;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.36rem;
}

.eyebrow {
  margin: 0 0 0.28rem;
  color: var(--text-soft);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  font-family: var(--font-body);
  font-weight: 600;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.045em;
}

h2 {
  font-size: clamp(1.7rem, 5vw, 2.2rem);
}

h3 {
  font-size: 1.2rem;
}

.date-pill {
  flex-shrink: 0;
  padding: 0.4rem 0.58rem;
  border: 1px solid rgba(255, 247, 238, 0.16);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 248, 242, 0.2), rgba(255, 241, 230, 0.12));
  color: #fff3e9;
  font-size: 0.74rem;
  font-weight: 600;
  white-space: nowrap;
  align-self: flex-start;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.month-pill {
  flex-shrink: 0;
  padding: 0.44rem 0.68rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 249, 243, 0.97), rgba(248, 232, 214, 0.9));
  border: 1px solid rgba(255, 244, 233, 0.92);
  color: #9e5238;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  box-shadow:
    0 14px 24px rgba(95, 51, 34, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.utility-button {
  padding: 0.42rem 0.64rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 249, 243, 0.96), rgba(248, 232, 214, 0.88));
  border: 1px solid rgba(255, 244, 233, 0.92);
  color: #9e5238;
  font-size: 0.7rem;
  font-weight: 600;
  box-shadow:
    0 14px 24px rgba(95, 51, 34, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.content {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 0.88rem;
}

.welcome-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 7.4rem;
  gap: 0.68rem;
  align-items: stretch;
  padding: 1.08rem 1.08rem 0.98rem;
  border-radius: 34px;
  border: 1px solid rgba(109, 138, 122, 0.16);
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 240, 214, 0.24), transparent 30%),
    radial-gradient(circle at 0% 100%, rgba(255, 255, 255, 0.18), transparent 36%),
    linear-gradient(145deg, #e8efe9 0%, #f4eee5 62%, #f7eadf 100%);
  box-shadow:
    0 26px 52px rgba(87, 96, 85, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.welcome-card::before,
.welcome-card::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.welcome-card::before {
  width: 10rem;
  height: 10rem;
  top: -4.8rem;
  right: -2.6rem;
  background: radial-gradient(circle, rgba(255, 244, 223, 0.58), transparent 68%);
}

.welcome-card::after {
  width: 7rem;
  height: 7rem;
  bottom: -2.8rem;
  left: -2rem;
  background: radial-gradient(circle, rgba(127, 150, 136, 0.14), transparent 68%);
}

.welcome-copy,
.welcome-footer {
  position: relative;
  z-index: 1;
}

.welcome-copy {
  min-width: 0;
}

.welcome-text {
  margin: 0.42rem 0 0;
  color: var(--text-soft);
  line-height: 1.46;
  font-size: 0.8rem;
  max-width: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.welcome-copy h3 {
  font-size: 1.26rem;
  line-height: 1.08;
  max-width: none;
  text-wrap: balance;
  color: #31423a;
}

.welcome-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.welcome-tag {
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.46);
  color: var(--accent-strong);
  font-size: 0.82rem;
}

.welcome-actions {
  display: flex;
  gap: 0.65rem;
  margin-top: 1rem;
}

.welcome-action {
  padding: 0.72rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.48);
  color: var(--accent-strong);
  box-shadow: 0 10px 26px rgba(111, 79, 58, 0.08);
}

.welcome-action:hover {
  background: rgba(255, 255, 255, 0.88);
}

.welcome-footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.18rem;
  margin-top: 0;
  padding: 0.72rem 0.74rem 0.68rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(249, 244, 237, 0.62));
  box-shadow:
    0 12px 24px rgba(87, 96, 85, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.welcome-footer strong {
  font-size: 0.92rem;
  line-height: 1.18;
}

.welcome-footer span {
  color: #8e6f5f;
  font-size: 0.72rem;
  line-height: 1.4;
}

.welcome-tag-row,
.welcome-actions {
  display: none !important;
}

.panel {
  display: none;
  flex-direction: column;
  gap: 1.08rem;
}

.panel.active {
  display: flex;
}

.backstage-card {
  display: none !important;
}

.home-secondary-card {
  display: none !important;
}

.hero-card {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  align-items: center;
  text-align: left;
  padding: 1.35rem;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(255, 251, 246, 0.94), rgba(252, 241, 226, 0.82)),
    var(--surface);
}

.hero-copy {
  width: 100%;
}

.hero-text {
  margin: 0.75rem 0 0;
  color: var(--text-soft);
  line-height: 1.6;
  font-size: 0.95rem;
}

.hero-orb {
  position: relative;
  width: 5.8rem;
  height: 5.8rem;
  display: grid;
  place-items: center;
  align-self: center;
}

.orb-ring,
.orb-core {
  position: absolute;
  border-radius: 999px;
}

.orb-ring {
  inset: 0;
  border: 1px solid rgba(201, 108, 74, 0.25);
  animation: breathe 4s ease-in-out infinite;
}

.orb-core {
  width: 3.5rem;
  height: 3.5rem;
  background:
    radial-gradient(circle at 30% 30%, #ffe7bf, #efac7f 55%, #c96c4a 100%);
  box-shadow: 0 12px 30px rgba(201, 108, 74, 0.32);
}

.setup-card {
  padding: 1.15rem 1.2rem;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.9), rgba(253, 246, 237, 0.82)),
    var(--surface);
}

.setup-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
}

.setup-chip {
  flex-shrink: 0;
  padding: 0.5rem 0.72rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent-strong);
  font-size: 0.8rem;
}

.setup-chip.online {
  color: #3f7f5b;
}

.setup-chip.offline {
  color: #9a6840;
}

.setup-copy {
  margin: 0.85rem 0 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.setup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.95rem;
}

.setup-mini {
  padding: 0.95rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.setup-mini span {
  display: block;
  color: var(--text-soft);
  font-size: 0.8rem;
}

.setup-mini strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1rem;
}

.install-action-row {
  margin-top: 0.95rem;
}

.install-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.95rem;
}

.entry-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 0.95rem;
}

.access-card {
  padding: 0.95rem 1rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.access-card span,
.access-card strong,
.access-card small {
  display: block;
}

.access-card span {
  color: var(--text-soft);
  font-size: 0.8rem;
}

.access-card strong {
  margin-top: 0.28rem;
  font-size: 0.98rem;
  line-height: 1.45;
  word-break: break-all;
}

.access-card small {
  margin-top: 0.4rem;
  color: var(--text-soft);
  line-height: 1.6;
  font-size: 0.76rem;
}

.setup-note {
  margin: 0.9rem 0 0;
  color: var(--text-soft);
  font-size: 0.8rem;
  line-height: 1.65;
}

.setup-note code {
  padding: 0.08rem 0.32rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  font-family: "SF Mono", "Cascadia Code", Consolas, monospace;
  font-size: 0.78rem;
}

.readiness-card {
  padding: 1.15rem 1.2rem;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.88), rgba(252, 246, 238, 0.8)),
    var(--surface);
}

.readiness-copy {
  margin: 0.85rem 0 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.readiness-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.95rem;
}

.readiness-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.readiness-item div {
  min-width: 0;
}

.readiness-item strong,
.readiness-item span,
.readiness-item small {
  display: block;
}

.readiness-item span {
  color: var(--text-soft);
  font-size: 0.82rem;
}

.readiness-item strong {
  margin-top: 0.18rem;
  font-size: 0.98rem;
}

.readiness-item small {
  margin-top: 0.32rem;
  color: var(--text-soft);
  line-height: 1.55;
  font-size: 0.76rem;
}

.readiness-badge {
  flex-shrink: 0;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  border: 1px solid rgba(104, 73, 49, 0.08);
  background: rgba(255, 255, 255, 0.74);
  color: var(--text-soft);
}

.readiness-badge.good {
  color: #3f7f5b;
}

.readiness-badge.warn {
  color: #9a6840;
}

.readiness-badge.bad {
  color: #a34f42;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}

.stat-card {
  padding: 1rem 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.38);
}

.stat-card p,
.stat-card span {
  margin: 0;
  color: var(--text-soft);
}

.stat-card p {
  font-size: 0.82rem;
}

.stat-card strong {
  display: block;
  margin: 0.55rem 0 0.25rem;
  font-size: 1.28rem;
}

.stat-card span {
  font-size: 0.8rem;
}

.voice-card,
.guide-card,
.recent-card,
.section-card {
  padding: 1.3rem;
  border-radius: var(--radius-xl);
}

.section-card {
  position: relative;
  overflow: hidden;
  padding: 1.32rem 1.22rem 1.22rem;
  border-radius: 32px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 227, 190, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(255, 251, 246, 0.98), rgba(249, 241, 233, 0.92));
  border: 1px solid rgba(180, 118, 89, 0.12);
  box-shadow:
    0 28px 56px rgba(111, 79, 58, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.section-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 0.42rem;
  background: linear-gradient(90deg, rgba(170, 84, 56, 0.9), rgba(230, 191, 133, 0.58), transparent 78%);
  opacity: 0.78;
}

.guide-card {
  backdrop-filter: blur(16px);
  background: rgba(255, 249, 243, 0.72);
  box-shadow: var(--shadow-soft);
}

.voice-card {
  position: relative;
  overflow: hidden;
  padding: 0.98rem 0.96rem 1rem;
  border-radius: 32px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 231, 202, 0.42), transparent 38%),
    radial-gradient(circle at 100% 100%, rgba(127, 150, 136, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 252, 247, 0.99), rgba(249, 242, 235, 0.94));
  border: 1px solid rgba(179, 112, 82, 0.12);
  box-shadow:
    0 30px 60px rgba(111, 79, 58, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.voice-card::before,
.voice-card::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.voice-card::before {
  inset: 0 auto auto 0;
  width: 100%;
  height: 6rem;
  border-radius: 0 0 2.2rem 2.2rem;
  background: linear-gradient(180deg, rgba(202, 112, 78, 0.16), transparent 88%);
}

.voice-card::after {
  right: -2.2rem;
  top: 3.4rem;
  width: 7rem;
  height: 7rem;
  background: radial-gradient(circle, rgba(230, 191, 133, 0.18), transparent 68%);
}

.voice-header,
.flow-steps,
.voice-visual,
.record-button,
.voice-helper,
.transcript-card,
.parsed-card {
  position: relative;
  z-index: 1;
}

.voice-card .voice-header {
  gap: 0.28rem;
  padding-right: 0;
}

.voice-header h3 {
  font-size: 1.24rem;
  line-height: 1.08;
  max-width: none;
  text-wrap: balance;
}

.voice-header,
.parsed-head,
.section-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.58rem;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.3rem;
  margin-top: 0.5rem;
  padding: 0.24rem;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 248, 242, 0.8), rgba(255, 252, 249, 0.7));
  border: 1px solid rgba(183, 119, 88, 0.1);
  box-shadow:
    0 16px 28px rgba(111, 79, 58, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.flow-step {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  align-content: start;
  text-align: center;
  gap: 0.16rem;
  min-height: 3.55rem;
  padding: 0.44rem 0.24rem 0.38rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(188, 127, 97, 0.08);
  box-shadow: 0 10px 22px rgba(111, 79, 58, 0.05);
}

.flow-step span {
  display: grid;
  place-items: center;
  width: 1.42rem;
  height: 1.42rem;
  border-radius: 999px;
  background: rgba(201, 108, 74, 0.12);
  color: var(--accent-strong);
  font-weight: 700;
  margin-bottom: 0.1rem;
}

.flow-step strong,
.flow-step small {
  display: block;
}

.flow-step strong {
  font-size: 0.76rem;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.flow-step small {
  color: var(--text-soft);
  font-size: 0.58rem;
  line-height: 1.2;
}

.flow-step.active {
  background: linear-gradient(180deg, rgba(255, 238, 225, 0.98), rgba(255, 248, 241, 0.92));
  border-color: rgba(196, 109, 74, 0.18);
  box-shadow: 0 16px 30px rgba(196, 109, 74, 0.12);
}

.flow-step.active span {
  background: linear-gradient(180deg, #cb7352 0%, #b95b3f 100%);
  color: #fff7f1;
}

.voice-chip {
  display: none;
}

.voice-visual {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0.38rem;
  height: 1.45rem;
  margin: 0.32rem 0 0.08rem;
}

.voice-visual span {
  width: 0.42rem;
  height: 1rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(239, 172, 127, 0.2), rgba(201, 108, 74, 0.9));
  transform-origin: bottom center;
  animation: equalizer 1.4s ease-in-out infinite;
}

.voice-visual span:nth-child(2) {
  animation-delay: 0.1s;
}

.voice-visual span:nth-child(3) {
  animation-delay: 0.25s;
}

.voice-visual span:nth-child(4) {
  animation-delay: 0.16s;
}

.voice-visual span:nth-child(5) {
  animation-delay: 0.3s;
}

.voice-visual.listening span {
  animation-duration: 0.7s;
}

.record-button {
  display: grid;
  place-items: center;
  width: min(100%, 10.35rem);
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 999px;
  padding: 0.54rem;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.92), transparent 34%),
    linear-gradient(180deg, rgba(236, 173, 144, 0.22), rgba(185, 91, 63, 0.92));
  box-shadow:
    0 34px 68px rgba(185, 91, 63, 0.26),
    inset 0 2px 16px rgba(255, 255, 255, 0.56);
  transition: transform 180ms ease, box-shadow 180ms ease;
  position: relative;
}

.record-button::before {
  content: "";
  position: absolute;
  inset: -1rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(196, 109, 74, 0.22), transparent 68%);
  filter: blur(16px);
  opacity: 0.95;
}

.record-button:hover {
  transform: translateY(-1px);
}

.record-button:active {
  transform: scale(0.98);
}

.record-button::after {
  content: "";
  position: absolute;
  inset: 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 248, 239, 0.26);
  opacity: 0.88;
}

.record-button.recording {
  animation: pulse 1.6s ease-in-out infinite;
}

.record-button-core {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background:
    linear-gradient(180deg, #d68661 0%, #b45d3f 100%);
  color: #fff4ec;
  text-align: center;
  padding: 1rem;
  border: 1px solid rgba(255, 240, 232, 0.18);
  box-shadow:
    inset 0 2px 12px rgba(255, 234, 220, 0.2),
    inset 0 -12px 28px rgba(125, 45, 22, 0.12);
}

.record-label-top {
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0.9;
}

.record-label-main {
  margin-top: 0.35rem;
  font-size: 1.48rem;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.voice-helper {
  margin: 0.36rem auto 0;
  text-align: center;
  color: var(--text-soft);
  line-height: 1.44;
  max-width: 16rem;
  font-size: 0.8rem;
}

.transcript-card,
.parsed-card,
.schedule-card {
  margin-top: 0.56rem;
  padding: 0.84rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.parsed-card {
  display: none;
}

.command-feedback-card,
.detail-insight-card,
.delivery-card {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.transcript-label {
  margin: 0 0 0.5rem;
  color: var(--text-soft);
  font-size: 0.82rem;
}

.transcript-text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
}

.command-feedback-text {
  margin: 0;
  color: var(--text);
  line-height: 1.65;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 0.9rem;
}

.field-pill {
  padding: 0.8rem 0.85rem;
  border-radius: var(--radius-md);
  background: rgba(251, 244, 234, 0.92);
}

.field-pill span {
  display: block;
  color: var(--text-soft);
  font-size: 0.75rem;
}

.field-pill strong {
  display: block;
  margin-top: 0.3rem;
  font-size: 1rem;
}

.command-row,
.export-actions,
.time-pills,
.guide-pill-row,
.filter-pill-row {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.command-button,
.secondary-button,
.quiet-button,
.time-pill,
.guide-pill,
.filter-pill {
  padding: 0.84rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    0 10px 18px rgba(111, 79, 58, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.66);
}

.command-primary,
.primary-button,
.time-pill.active,
.filter-pill.active {
  background: linear-gradient(180deg, #cc7854 0%, #b45a3d 100%);
  color: #fff5ed;
  box-shadow: 0 18px 32px rgba(180, 90, 61, 0.24);
}

.guide-pill {
  color: var(--accent-strong);
  background: rgba(201, 108, 74, 0.08);
}

.export-note {
  margin: 0.9rem 0 0;
  color: var(--text-soft);
  line-height: 1.6;
  font-size: 0.8rem;
}

.primary-button,
.secondary-button {
  width: 100%;
  padding: 0.98rem 1.1rem;
  font-weight: 600;
}

.secondary-button:disabled,
.command-button:disabled {
  opacity: 0.56;
  cursor: not-allowed;
  box-shadow: none;
}

.quiet-button {
  color: var(--text-soft);
}

.recent-list,
.list-stack {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1rem;
}

.entry-card {
  padding: 1.05rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.48);
  box-shadow:
    0 14px 28px rgba(111, 79, 58, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.entry-top,
.entry-meta,
.schedule-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.entry-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.entry-dot {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 999px;
  background: var(--sage);
  box-shadow: 0 0 0 6px rgba(115, 145, 120, 0.12);
}

.entry-card h4,
.entry-card p {
  margin: 0;
}

.entry-card h4 {
  font-size: 1.04rem;
}

.entry-meta {
  margin-top: 0.75rem;
  color: var(--text-soft);
  font-size: 0.88rem;
}

.entry-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.85rem;
}

.entry-tag {
  padding: 0.44rem 0.72rem;
  border-radius: 999px;
  background: rgba(201, 108, 74, 0.11);
  color: var(--accent-strong);
  font-size: 0.79rem;
}

.search-wrap,
.field-edit {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.detail-summary-grid,
.report-brief-grid,
.export-insight-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  margin-top: 1rem;
}

.detail-insight-stack {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1rem;
}

.detail-mini-card,
.report-brief-card,
.insight-card,
.report-preview-card {
  padding: 1.02rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    0 14px 26px rgba(111, 79, 58, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.detail-mini-card span,
.report-brief-card span,
.insight-card span {
  display: block;
  color: var(--text-soft);
  font-size: 0.82rem;
}

.detail-mini-card strong,
.report-brief-card strong {
  display: block;
  margin-top: 0.42rem;
  font-size: 1.42rem;
}

.search-wrap input,
.field-edit input {
  width: 100%;
  padding: 1rem 1.02rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.search-wrap input:focus,
.field-edit input:focus {
  outline: 2px solid rgba(201, 108, 74, 0.18);
  border-color: rgba(201, 108, 74, 0.26);
}

.export-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 1rem;
}

.export-summary div {
  padding: 1.02rem 0.94rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.46);
  box-shadow:
    0 12px 24px rgba(111, 79, 58, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.export-summary span {
  display: block;
  color: var(--text-soft);
  font-size: 0.8rem;
}

.export-summary strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.02rem;
}

.insight-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.8rem;
}

.insight-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.95rem;
}

.insight-row strong {
  font-size: 0.92rem;
}

.insight-row small {
  color: var(--text-soft);
  font-size: 0.78rem;
}

.preview-table {
  display: grid;
  gap: 0.55rem;
}

.preview-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.7fr;
  gap: 0.7rem;
  align-items: center;
  padding: 0.85rem 0.3rem;
  border-bottom: 1px dashed rgba(104, 73, 49, 0.12);
}

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

.preview-row strong,
.preview-row span {
  display: block;
}

.preview-row span {
  color: var(--text-soft);
  font-size: 0.8rem;
}

.export-history-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1rem;
}

.history-card {
  padding: 1.02rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    0 14px 26px rgba(111, 79, 58, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.history-card.empty {
  background: rgba(255, 252, 248, 0.78);
}

.history-head,
.history-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}

.history-head strong,
.history-meta strong {
  font-size: 0.95rem;
}

.history-head span,
.history-meta span {
  color: var(--text-soft);
  font-size: 0.82rem;
}

.history-meta {
  margin-top: 0.7rem;
}

.date-group {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.date-heading {
  margin: 0.2rem 0 0;
  color: var(--text-soft);
  font-size: 0.88rem;
}

.switch {
  position: relative;
  display: inline-flex;
  width: 3.2rem;
  height: 1.9rem;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(124, 98, 84, 0.22);
  transition: 180ms ease;
}

.switch-slider::before {
  content: "";
  position: absolute;
  width: 1.45rem;
  height: 1.45rem;
  left: 0.2rem;
  top: 0.22rem;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
  transition: 180ms ease;
}

.switch input:checked + .switch-slider {
  background: rgba(115, 145, 120, 0.55);
}

.switch input:checked + .switch-slider::before {
  transform: translateX(1.28rem);
}

.delivery-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.delivery-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.delivery-row span {
  color: var(--text-soft);
  font-size: 0.85rem;
}

.delivery-row strong {
  font-size: 0.95rem;
}

.delivery-pill-row {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.delivery-pill {
  padding: 0.78rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
  box-shadow:
    0 10px 18px rgba(111, 79, 58, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.66);
}

.delivery-pill.active {
  background: linear-gradient(180deg, #cc7854 0%, #b45a3d 100%);
  color: #fff5ed;
  box-shadow: 0 16px 28px rgba(180, 90, 61, 0.22);
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 10;
  width: calc(100% - 2.5rem);
  max-width: 380px;
  padding: 0.7rem 0.15rem calc(var(--safe-bottom) + 0.24rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  background:
    linear-gradient(180deg, rgba(247, 240, 230, 0), rgba(247, 240, 230, 0.97) 34%),
    transparent;
}

.nav-button {
  padding: 0.92rem 0.3rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(141, 82, 60, 0.14), rgba(255, 249, 241, 0.72));
  color: var(--text-soft);
  border: 1px solid rgba(178, 120, 92, 0.12);
  box-shadow:
    0 16px 28px rgba(111, 79, 58, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

.nav-button.active {
  background: linear-gradient(180deg, #bf6f4b 0%, #9f563c 100%);
  color: #fff8f1;
  border: 1px solid rgba(165, 87, 59, 0.22);
  box-shadow:
    0 20px 34px rgba(159, 86, 60, 0.24),
    inset 0 1px 0 rgba(255, 240, 229, 0.18);
}

.sheet {
  position: fixed;
  inset: 0;
  z-index: 30;
}

.sheet.hidden {
  display: none;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(69, 49, 38, 0.22);
  backdrop-filter: blur(6px);
}

.sheet-panel {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  padding: 1.2rem 1rem calc(var(--safe-bottom) + 1rem);
  border-radius: 28px 28px 0 0;
}

.guide-sheet-panel {
  max-height: min(82vh, 780px);
  overflow: auto;
}

.sheet-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.guide-step-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1rem;
}

.guide-step-card,
.guide-tip-card {
  display: flex;
  gap: 0.85rem;
  padding: 1rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.guide-step-card strong,
.guide-tip-card strong {
  display: block;
  font-size: 0.98rem;
}

.guide-step-card p,
.guide-tip-card p {
  margin: 0.35rem 0 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.guide-step-index {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #cb7352 0%, #b95b3f 100%);
  color: #fff7f1;
  font-weight: 700;
}

.guide-step-card code {
  padding: 0.16rem 0.42rem;
  border-radius: 999px;
  background: rgba(201, 108, 74, 0.1);
  color: var(--accent-strong);
}

.guide-tip-card {
  margin-top: 0.9rem;
}

.guide-link-card {
  margin-top: 0.9rem;
  padding: 1rem 1.05rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.guide-link-card span,
.guide-link-card strong,
.guide-link-card small {
  display: block;
}

.guide-link-card span {
  color: var(--text-soft);
  font-size: 0.8rem;
}

.guide-link-card strong {
  margin-top: 0.3rem;
  font-size: 0.98rem;
  line-height: 1.5;
  word-break: break-all;
}

.guide-link-card small {
  margin-top: 0.42rem;
  color: var(--text-soft);
  line-height: 1.6;
  font-size: 0.76rem;
}

.guide-link-card code {
  padding: 0.08rem 0.28rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  font-family: "SF Mono", "Cascadia Code", Consolas, monospace;
}

.guide-status-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  margin-top: 0.9rem;
}

.guide-status-card {
  padding: 1rem 1.05rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.guide-status-card span,
.guide-status-card strong,
.guide-status-card small {
  display: block;
}

.guide-status-card span {
  color: var(--text-soft);
  font-size: 0.8rem;
}

.guide-status-card strong {
  margin-top: 0.28rem;
  font-size: 0.98rem;
  line-height: 1.5;
}

.guide-status-card small {
  margin-top: 0.42rem;
  color: var(--text-soft);
  line-height: 1.6;
  font-size: 0.76rem;
}

.guide-sheet-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.95rem;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--safe-bottom) + 6rem);
  transform: translate(-50%, 1rem);
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: rgba(69, 49, 38, 0.88);
  color: #fff8f1;
  opacity: 0;
  pointer-events: none;
  transition: 180ms ease;
  z-index: 40;
}

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

.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 225, 188, 0.7), transparent 30%),
    radial-gradient(circle at 80% 88%, rgba(115, 145, 120, 0.18), transparent 35%),
    linear-gradient(180deg, rgba(247, 235, 219, 0.92) 0%, rgba(244, 234, 220, 0.98) 100%);
  transition: opacity 420ms ease, visibility 420ms ease;
}

.splash-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.splash-card {
  width: 100%;
  max-width: 400px;
  padding: 2.55rem 1.65rem 1.9rem;
  border-radius: 42px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 221, 180, 0.18), transparent 30%),
    linear-gradient(160deg, rgba(255, 251, 245, 0.98), rgba(247, 239, 229, 0.94));
  border: 1px solid rgba(180, 118, 89, 0.12);
  box-shadow:
    0 40px 80px rgba(111, 79, 58, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.splash-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 0.5rem;
  background: linear-gradient(90deg, #bf6f4b, rgba(230, 191, 133, 0.7), transparent 80%);
}

.splash-card h1 {
  font-size: clamp(2.16rem, 8vw, 2.82rem);
  line-height: 1.04;
  color: #5b3324;
}

.mark-wrap {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 7.6rem;
  height: 7.6rem;
  margin-bottom: 1.25rem;
}

.mark-glow {
  position: absolute;
  inset: 0.45rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(237, 190, 118, 0.45), transparent 65%);
  filter: blur(8px);
}

.brand-mark {
  position: relative;
  width: 4.3rem;
  height: 4.3rem;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 244, 222, 0.96), rgba(225, 168, 112, 0.94));
  box-shadow: 0 18px 34px rgba(196, 109, 74, 0.18);
}

.brand-dot {
  position: absolute;
  inset: auto;
  left: 50%;
  bottom: 1.08rem;
  width: 1.2rem;
  height: 1.2rem;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #fff8ef;
}

.steam {
  position: absolute;
  width: 0.62rem;
  height: 1.55rem;
  top: -0.7rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-bottom: 0;
  animation: floatUp 2.8s ease-in-out infinite;
}

.steam-one {
  left: 1.3rem;
}

.steam-two {
  right: 1.3rem;
  animation-delay: 0.35s;
}

.splash-copy {
  margin: 1.02rem auto 1.65rem;
  max-width: 17rem;
  color: var(--text-soft);
  line-height: 1.7;
  font-size: 0.98rem;
}

.splash-button {
  max-width: 17rem;
  margin: 0 auto;
  border-radius: 22px;
  padding-block: 1.08rem;
  box-shadow: 0 20px 40px rgba(185, 91, 63, 0.2);
}

@keyframes equalizer {
  0%,
  100% {
    transform: scaleY(0.7);
    opacity: 0.45;
  }

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

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

  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow:
      0 24px 50px rgba(201, 108, 74, 0.28),
      inset 0 2px 12px rgba(255, 255, 255, 0.45);
  }

  50% {
    transform: scale(1.03);
    box-shadow:
      0 30px 60px rgba(201, 108, 74, 0.34),
      inset 0 2px 12px rgba(255, 255, 255, 0.52);
  }
}

@keyframes floatUp {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.65;
  }

  50% {
    transform: translateY(-0.4rem);
    opacity: 1;
  }
}

@media (max-width: 380px) {
  .field-grid {
    grid-template-columns: 1fr;
  }

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

  .top-bar {
    gap: 0.7rem;
  }

  .date-pill {
    padding-inline: 0.72rem;
    font-size: 0.78rem;
  }

  .bottom-nav {
    width: calc(100% - 2rem);
    gap: 0.35rem;
  }

  .nav-button {
    padding-inline: 0.25rem;
  }

  .preview-row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}
