:root {
  color-scheme: light;
  --bg: #f7f0e6;
  --bg-strong: #ecddcb;
  --surface: rgba(255, 252, 247, 0.88);
  --surface-strong: rgba(255, 250, 243, 0.96);
  --surface-dark: #5d4436;
  --text: #34261f;
  --text-soft: #746157;
  --line: rgba(112, 81, 60, 0.11);
  --accent: #c46d4a;
  --accent-strong: #aa5438;
  --accent-soft: rgba(196, 109, 74, 0.12);
  --sage: #3f8f68;
  --record-idle: #2f9b68;
  --record-active: #d64e43;
  --record-speaking: #347fd8;
  --record-processing: #c98a2c;
  --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: "Microsoft YaHei UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-display: "Microsoft YaHei UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-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.9rem) 1rem 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: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.78rem 0.88rem 0.78rem 1.06rem;
  min-height: 4.55rem;
  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: 0;
}

.top-bar-main h2 {
  font-size: clamp(1.5rem, 8vw, 2rem);
  line-height: 1;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.top-bar-actions {
  position: static;
  transform: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 0.32rem;
  min-width: 6.4rem;
}

.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: 800;
  letter-spacing: -0.02em;
}

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

h3 {
  font-size: 1.2rem;
}

.date-pill {
  flex-shrink: 0;
  width: 100%;
  padding: 0.4rem 0.48rem;
  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;
  text-align: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.month-pill {
  flex-shrink: 0;
  width: 100%;
  padding: 0.44rem 0.48rem;
  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;
  text-align: center;
  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: 1rem;
}

.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.1rem 1rem 1.05rem;
  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.3rem;
  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;
  min-height: calc(100svh - var(--safe-top) - var(--safe-bottom) - 10.5rem);
  padding: 1.05rem 0.96rem 1.15rem;
  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.22rem;
  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;
}

.section-title .eyebrow {
  margin-bottom: 0.16rem;
  font-size: 0.74rem;
}

.section-title h3 {
  font-size: 1.18rem;
  line-height: 1.16;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.3rem;
  margin-top: 0.62rem;
  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.35rem;
  margin: clamp(0.65rem, 4svh, 2.2rem) 0 0.18rem;
}

.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;
  transform: scaleY(0.45);
  opacity: 0.36;
  animation: none;
}

.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 {
  opacity: 1;
  animation-duration: 0.7s;
  animation-name: equalizer;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.record-button {
  display: grid;
  place-items: center;
  width: min(100%, 10.9rem);
  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(108, 209, 153, 0.24), rgba(47, 155, 104, 0.94));
  box-shadow:
    0 34px 68px rgba(47, 155, 104, 0.26),
    inset 0 2px 16px rgba(255, 255, 255, 0.56);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  position: relative;
}

.record-button::before {
  content: "";
  position: absolute;
  inset: -1rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(47, 155, 104, 0.24), 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;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.88), transparent 34%),
    linear-gradient(180deg, rgba(244, 122, 111, 0.28), rgba(214, 78, 67, 0.96));
  box-shadow:
    0 34px 72px rgba(214, 78, 67, 0.34),
    inset 0 2px 16px rgba(255, 255, 255, 0.5);
}

.record-button.recording::before {
  background: radial-gradient(circle, rgba(214, 78, 67, 0.28), transparent 68%);
}

.record-button.speaking {
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.9), transparent 34%),
    linear-gradient(180deg, rgba(113, 174, 238, 0.28), rgba(52, 127, 216, 0.96));
  box-shadow:
    0 34px 72px rgba(52, 127, 216, 0.3),
    inset 0 2px 16px rgba(255, 255, 255, 0.5);
}

.record-button.speaking::before {
  background: radial-gradient(circle, rgba(52, 127, 216, 0.26), transparent 68%);
}

.record-button.processing {
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.9), transparent 34%),
    linear-gradient(180deg, rgba(239, 187, 104, 0.28), rgba(201, 138, 44, 0.96));
  box-shadow:
    0 34px 72px rgba(201, 138, 44, 0.26),
    inset 0 2px 16px rgba(255, 255, 255, 0.5);
}

.record-button-core {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background:
    linear-gradient(180deg, #4cb77f 0%, var(--record-idle) 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-button.recording .record-button-core {
  background: linear-gradient(180deg, #ee7468 0%, var(--record-active) 100%);
}

.record-button.speaking .record-button-core {
  background: linear-gradient(180deg, #66a2e6 0%, var(--record-speaking) 100%);
}

.record-button.processing .record-button-core {
  background: linear-gradient(180deg, #e2aa55 0%, var(--record-processing) 100%);
}

.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.64rem 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.72rem;
  padding: 0.82rem 0.88rem;
  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.56rem;
  margin-top: 0.82rem;
}

.entry-card {
  position: relative;
  padding: 0.86rem 3.05rem 0.82rem 0.86rem;
  border-radius: 22px;
  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-card:active {
  transform: scale(0.992);
}

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

.entry-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.entry-dot {
  width: 0.58rem;
  height: 0.58rem;
  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: 0.98rem;
  line-height: 1.14;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 13rem;
}

.entry-card p {
  margin-top: 0.14rem;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.entry-top > strong {
  flex-shrink: 0;
  font-size: 0.98rem;
}

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

.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;
}

.entry-actions {
  position: absolute;
  top: 50%;
  right: 0.72rem;
  transform: translateY(-50%);
  display: flex;
  margin-top: 0;
}

.entry-action-button {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  min-height: 0;
  border-radius: 999px;
  background: rgba(63, 143, 104, 0.1);
  color: #2f7655;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
  border: 1px solid rgba(63, 143, 104, 0.16);
}

.entry-action-button.danger {
  background: rgba(214, 78, 67, 0.1);
  color: #bd453b;
  border-color: rgba(214, 78, 67, 0.16);
}

.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: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.detail-summary-grid {
  gap: 0.62rem;
  margin-top: 0.86rem;
}

.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: 0.84rem 0.86rem;
  border-radius: 20px;
  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.32rem;
  font-size: 1.14rem;
}

.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);
}

.feedback-fab {
  position: fixed;
  right: max(1rem, calc((100vw - 430px) / 2 + 1rem));
  bottom: calc(var(--safe-bottom) + 5.9rem);
  z-index: 38;
  padding: 0.52rem 0.72rem;
  border-radius: 999px;
  background: rgba(255, 251, 242, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.58);
  color: var(--premium-muted);
  font-size: 0.72rem;
  font-weight: 700;
  box-shadow:
    0 12px 28px rgba(50, 39, 24, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(18px) saturate(1.12);
}

.feedback-fab:active {
  transform: scale(0.96);
}

.feedback-copy {
  margin: 0.6rem 0 1rem;
  color: var(--premium-muted);
  font-size: 0.86rem;
  line-height: 1.65;
}

.feedback-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.48rem;
}

.feedback-input-wrap span {
  color: var(--premium-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.feedback-input-wrap textarea {
  width: 100%;
  min-height: 8.4rem;
  resize: vertical;
  padding: 1rem 1.02rem;
  border-radius: 22px;
  border: 1px solid rgba(44, 64, 54, 0.1);
  background: rgba(255, 255, 255, 0.72);
  color: var(--premium-ink);
  font: inherit;
  line-height: 1.55;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.feedback-input-wrap textarea:focus {
  outline: 3px solid rgba(25, 134, 94, 0.12);
  border-color: rgba(25, 134, 94, 0.24);
}

.feedback-sheet-panel .primary-button {
  margin-top: 1rem;
}

.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.55rem;
    padding-left: 0.86rem;
    padding-right: 0.72rem;
  }

  .top-bar-main h2 {
    font-size: 1.58rem;
  }

  .top-bar-actions {
    min-width: 5.9rem;
  }

  .date-pill {
    padding-inline: 0.42rem;
    font-size: 0.69rem;
  }

  .month-pill {
    padding-inline: 0.42rem;
    font-size: 0.68rem;
  }

  .record-button {
    width: min(100%, 10rem);
  }

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

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

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

/* Premium redesign v1: warm kitchen ledger, Figma-ready token layer */
:root {
  --premium-ink: #17211d;
  --premium-ink-2: #2f3e37;
  --premium-muted: #697970;
  --premium-bg: #efe5d2;
  --premium-bg-2: #dce8dc;
  --premium-paper: rgba(255, 252, 244, 0.9);
  --premium-paper-solid: #fffaf0;
  --premium-line: rgba(44, 64, 54, 0.12);
  --premium-jade: #19865e;
  --premium-jade-soft: #dcefe4;
  --premium-jade-bright: #57c783;
  --premium-clay: #9f5135;
  --premium-clay-deep: #693723;
  --premium-gold: #d9a451;
  --premium-red: #d84f44;
  --premium-blue: #2879cf;
  --premium-shadow: 0 24px 60px rgba(50, 39, 24, 0.16);
  --premium-shadow-soft: 0 14px 34px rgba(50, 39, 24, 0.1);
  --premium-font: "Microsoft YaHei UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --radius-2xl: 34px;
}

html,
body {
  background:
    radial-gradient(circle at 16% -8%, rgba(248, 214, 152, 0.72), transparent 28%),
    radial-gradient(circle at 92% 12%, rgba(75, 143, 103, 0.22), transparent 26%),
    radial-gradient(circle at 86% 78%, rgba(34, 95, 72, 0.15), transparent 28%),
    linear-gradient(160deg, #f4ead7 0%, #efe2cd 42%, #dfe9dc 100%);
  color: var(--premium-ink);
  font-family: var(--premium-font);
}

body::before {
  opacity: 0.42;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.2), transparent 32%, rgba(27, 92, 67, 0.06)),
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.07) 0,
      rgba(255, 255, 255, 0.07) 1px,
      transparent 1px,
      transparent 16px
    );
}

body::after {
  opacity: 0.88;
  background:
    radial-gradient(circle at 10% 18%, rgba(255, 244, 219, 0.38), transparent 26%),
    radial-gradient(circle at 72% 0%, rgba(26, 113, 80, 0.12), transparent 24%);
}

.ambient {
  filter: blur(30px);
  opacity: 0.34;
}

.ambient-left {
  background: rgba(219, 164, 82, 0.46);
}

.ambient-right {
  background: rgba(25, 134, 94, 0.22);
}

.app-shell {
  max-width: 430px;
  padding: calc(var(--safe-top) + 0.92rem) 1rem calc(var(--safe-bottom) + 6.7rem);
}

.top-bar,
.voice-card,
.section-card,
.sheet-panel,
.splash-card {
  backdrop-filter: blur(22px) saturate(1.18);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.top-bar {
  min-height: 4.85rem;
  padding: 0.86rem 0.86rem 0.86rem 1.08rem;
  border-radius: 30px;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 219, 164, 0.28), transparent 36%),
    linear-gradient(135deg, #1e6d4e 0%, #164936 48%, #5e3323 100%);
  box-shadow:
    0 22px 48px rgba(30, 72, 51, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.top-bar-main h2 {
  color: #fff8e9;
  font-size: clamp(1.62rem, 7.3vw, 2.12rem);
  letter-spacing: -0.06em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.18);
}

.top-bar-actions {
  min-width: 6.7rem;
  gap: 0.34rem;
}

.month-pill,
.date-pill {
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow:
    0 10px 22px rgba(28, 42, 32, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.month-pill {
  background: linear-gradient(180deg, #fff7e4, #edd0a4);
  color: #5d3724;
}

.date-pill {
  background: rgba(255, 255, 255, 0.16);
  color: #fff3df;
}

.content {
  margin-top: 0.95rem;
}

.voice-card {
  min-height: calc(100svh - var(--safe-top) - var(--safe-bottom) - 10.2rem);
  display: flex;
  flex-direction: column;
  padding: 1.04rem 0.98rem 1.06rem;
  border-radius: 36px;
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 255, 255, 0.8), transparent 28%),
    radial-gradient(circle at 80% 8%, rgba(226, 171, 92, 0.18), transparent 26%),
    linear-gradient(180deg, rgba(255, 252, 244, 0.94), rgba(246, 237, 224, 0.82));
  box-shadow:
    0 28px 70px rgba(58, 43, 24, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.voice-card::before {
  height: 8.4rem;
  background:
    radial-gradient(circle at 50% 0%, rgba(25, 134, 94, 0.11), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent);
}

.voice-card::after {
  top: auto;
  right: -3.2rem;
  bottom: 10rem;
  width: 12rem;
  height: 12rem;
  background: radial-gradient(circle, rgba(25, 134, 94, 0.1), transparent 64%);
}

.voice-header h3 {
  color: var(--premium-ink);
  font-size: 1.34rem;
  letter-spacing: -0.035em;
}

.flow-steps {
  margin-top: 0.72rem;
  gap: 0.42rem;
  padding: 0.3rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.46);
  border-color: rgba(255, 255, 255, 0.5);
}

.flow-step {
  min-height: 3.72rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.74);
  border-color: rgba(34, 87, 64, 0.08);
  box-shadow: none;
}

.flow-step span {
  background: var(--premium-jade-soft);
  color: var(--premium-jade);
}

.flow-step.active {
  background: linear-gradient(180deg, #fff5df, #fffaf0);
  border-color: rgba(159, 81, 53, 0.16);
  box-shadow: 0 10px 24px rgba(113, 76, 42, 0.08);
}

.flow-step.active span {
  background: linear-gradient(180deg, #bd7255, #9f5135);
}

.voice-visual {
  margin-top: clamp(0.72rem, 5.2svh, 2.7rem);
}

.voice-visual span {
  width: 0.38rem;
  background: linear-gradient(180deg, rgba(217, 164, 81, 0.28), rgba(159, 81, 53, 0.84));
}

.record-button {
  width: min(100%, 11rem);
  box-shadow:
    0 34px 78px rgba(25, 134, 94, 0.3),
    inset 0 2px 18px rgba(255, 255, 255, 0.56);
}

.record-button-core {
  background: linear-gradient(180deg, #58c986 0%, #19865e 100%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    inset 0 2px 16px rgba(255, 255, 255, 0.28),
    inset 0 -14px 28px rgba(7, 70, 46, 0.18);
}

.record-label-top {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.record-label-main {
  font-size: 1.54rem;
  letter-spacing: -0.055em;
}

.record-button.recording .record-button-core {
  background: linear-gradient(180deg, #ef756a 0%, #d84f44 100%);
}

.record-button.speaking .record-button-core {
  background: linear-gradient(180deg, #62a4e8 0%, #2879cf 100%);
}

.record-button.processing .record-button-core {
  background: linear-gradient(180deg, #e5ad59 0%, #cf841e 100%);
}

.voice-helper {
  color: var(--premium-muted);
  font-size: 0.8rem;
}

.transcript-card,
.parsed-card,
.command-feedback-card,
.detail-insight-card,
.delivery-card,
.guide-link-card,
.guide-status-card,
.schedule-card {
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.transcript-card {
  border-radius: 24px;
}

.transcript-label,
.field-pill span,
.detail-mini-card span,
.report-brief-card span,
.insight-card span,
.export-summary span,
.guide-link-card span,
.guide-status-card span {
  color: var(--premium-muted);
}

.transcript-text,
.command-feedback-text {
  color: var(--premium-ink-2);
}

.primary-button,
.command-primary,
.time-pill.active,
.filter-pill.active {
  background: linear-gradient(180deg, #1f9368 0%, #176c50 100%);
  color: #fffaf0;
  box-shadow: 0 18px 34px rgba(25, 134, 94, 0.24);
}

.secondary-button,
.command-button,
.quiet-button,
.filter-pill,
.delivery-pill,
.guide-pill {
  border-color: rgba(44, 64, 54, 0.1);
  background: rgba(255, 255, 255, 0.62);
  color: var(--premium-ink-2);
}

.section-card {
  padding: 1.08rem 1rem 1.05rem;
  border-radius: 34px;
  background:
    radial-gradient(circle at 100% 0%, rgba(25, 134, 94, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(255, 252, 244, 0.93), rgba(247, 239, 227, 0.84));
  border-color: rgba(255, 255, 255, 0.54);
  box-shadow: var(--premium-shadow-soft);
}

.section-card::before {
  height: 0;
  opacity: 0;
}

.section-title .eyebrow {
  color: var(--premium-muted);
  letter-spacing: 0.02em;
}

.section-title h3 {
  color: var(--premium-ink);
  letter-spacing: -0.045em;
}

.detail-summary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.64rem;
}

.detail-mini-card,
.report-brief-card,
.insight-card,
.report-preview-card,
.export-summary div {
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(255, 255, 255, 0.56);
  box-shadow:
    0 12px 26px rgba(50, 39, 24, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.detail-mini-card strong,
.report-brief-card strong {
  color: var(--premium-ink);
}

.search-wrap input,
.field-edit input {
  border-radius: 20px;
  border-color: rgba(44, 64, 54, 0.1);
  background: rgba(255, 255, 255, 0.7);
  color: var(--premium-ink);
}

.search-wrap input:focus,
.field-edit input:focus {
  outline: 3px solid rgba(25, 134, 94, 0.12);
  border-color: rgba(25, 134, 94, 0.24);
}

.date-heading {
  color: var(--premium-muted);
  letter-spacing: -0.02em;
}

.recent-list,
.list-stack {
  gap: 0.58rem;
}

.entry-card {
  padding: 0.82rem 3.05rem 0.78rem 0.86rem;
  border-radius: 23px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 250, 240, 0.68));
  border: 1px solid rgba(255, 255, 255, 0.58);
  box-shadow:
    0 14px 28px rgba(50, 39, 24, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.entry-card:active {
  transform: scale(0.986);
  box-shadow:
    0 8px 20px rgba(50, 39, 24, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.entry-dot {
  background: var(--premium-jade);
  box-shadow: 0 0 0 6px rgba(25, 134, 94, 0.12);
}

.entry-card h4 {
  color: var(--premium-ink);
  font-size: 0.98rem;
}

.entry-card p,
.entry-meta {
  color: var(--premium-muted);
}

.entry-top > strong {
  color: var(--premium-ink);
}

.entry-action-button.danger {
  background: rgba(216, 79, 68, 0.1);
  color: var(--premium-red);
  border-color: rgba(216, 79, 68, 0.14);
}

.bottom-nav {
  width: min(390px, calc(100% - 1.6rem));
  padding: 0.42rem;
  border-radius: 999px;
  background: rgba(255, 251, 242, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow:
    0 22px 48px rgba(50, 39, 24, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(22px) saturate(1.18);
}

.nav-button {
  color: var(--premium-muted);
  border-radius: 999px;
  font-weight: 700;
}

.nav-button.active {
  background: linear-gradient(180deg, #9f5a3b 0%, #7d412c 100%);
  color: #fff8ea;
  box-shadow: 0 14px 24px rgba(111, 67, 43, 0.22);
}

.sheet {
  z-index: 80;
}

.sheet-backdrop {
  background: rgba(20, 31, 26, 0.34);
  backdrop-filter: blur(5px);
}

.sheet-panel {
  border-radius: 34px 34px 0 0;
  background:
    radial-gradient(circle at 100% 0%, rgba(25, 134, 94, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(255, 252, 244, 0.98), rgba(244, 235, 222, 0.96));
  box-shadow: 0 -20px 54px rgba(32, 28, 20, 0.2);
}

.field-edit span {
  color: var(--premium-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.splash-screen {
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 226, 174, 0.66), transparent 30%),
    radial-gradient(circle at 82% 82%, rgba(25, 134, 94, 0.22), transparent 34%),
    linear-gradient(160deg, #f4ead7 0%, #e8ecdf 100%);
}

.splash-card {
  position: relative;
  overflow: hidden;
  padding: 2.45rem 1.55rem 1.86rem;
  border-radius: 40px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 235, 190, 0.28), transparent 34%),
    radial-gradient(circle at 85% 18%, rgba(25, 134, 94, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(255, 252, 244, 0.97), rgba(242, 234, 220, 0.92));
  border-color: rgba(255, 255, 255, 0.62);
  box-shadow:
    0 36px 86px rgba(34, 43, 29, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.splash-card::before {
  display: none;
}

.splash-card::after {
  content: "";
  position: absolute;
  width: 12rem;
  height: 12rem;
  right: -5rem;
  top: -5rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(25, 134, 94, 0.12), transparent 65%);
  pointer-events: none;
}

.splash-card h1 {
  color: var(--premium-ink);
  letter-spacing: -0.06em;
}

.splash-copy {
  color: var(--premium-muted);
}

.splash-button {
  background: linear-gradient(180deg, #1f9368 0%, #176c50 100%);
  box-shadow: 0 20px 40px rgba(25, 134, 94, 0.24);
}

.brand-mark {
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.24), transparent 30%),
    linear-gradient(180deg, #1f9368, #176c50);
  box-shadow:
    0 18px 38px rgba(25, 134, 94, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.mark-glow {
  background: radial-gradient(circle, rgba(25, 134, 94, 0.24), transparent 66%);
}

.brand-dot {
  background: #fff8e8;
}

.steam {
  border-color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 380px) {
  .app-shell {
    padding-left: 0.82rem;
    padding-right: 0.82rem;
  }

  .top-bar-main h2 {
    font-size: 1.54rem;
  }

  .top-bar-actions {
    min-width: 5.86rem;
  }

  .month-pill,
  .date-pill {
    font-size: 0.66rem;
  }

  .record-button {
    width: min(100%, 10.25rem);
  }
}

/* Final polish before server sync: keep the premium layer decisive. */
.splash-card > * {
  position: relative;
  z-index: 1;
}

.splash-card .eyebrow {
  color: var(--premium-jade);
  letter-spacing: 0.08em;
}

.splash-card h1 {
  margin-top: 0.1rem;
  font-size: clamp(2.1rem, 8vw, 2.72rem);
}

.splash-copy {
  max-width: 16.2rem;
  margin-top: 0.88rem;
  margin-bottom: 1.5rem;
  line-height: 1.72;
}

.mark-wrap {
  margin-bottom: 1.05rem;
}

.brand-mark {
  transform: translateZ(0);
}

.top-bar {
  transform: translateZ(0);
}

.voice-card {
  justify-content: flex-start;
}

.voice-visual span {
  transform: scaleY(0.48);
  transition: opacity 180ms ease, transform 180ms ease;
}

.voice-visual.listening span {
  transform: scaleY(1);
}

.record-button {
  margin-top: 0.08rem;
}

.record-button::before {
  opacity: 0.78;
}

.transcript-card {
  margin-top: 0.82rem;
}

.bottom-nav {
  bottom: max(env(safe-area-inset-bottom), 0.72rem);
}

.nav-button {
  min-height: 3rem;
}

.entry-card {
  cursor: pointer;
}

.entry-action-button.danger {
  font-family: var(--premium-font);
}
