@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Noto+Sans+SC:wght@400;500;600;700;800&display=swap');

:root {
  --paper: #f7f5f0;
  --ink: #272522;
  --muted: #89857c;
  --line: #e3dfd5;
  --green: #607d62;
  --green-dark: #3e5b45;
  --lavender: #ded9ec;
  --white: #fffefa;
  font-family: "Noto Sans SC", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--paper); }
button, textarea, input { font: inherit; }
button { border: 0; cursor: pointer; color: inherit; }
.app-shell { width: min(100%, 560px); margin: 0 auto; padding: 26px 20px 110px; }
.topbar, .section-heading, .context-topline, .composer-footer, .answer-heading, .time-row, .resume-card { display: flex; align-items: center; justify-content: space-between; }
.topbar { margin-bottom: 24px; }
.eyebrow { margin: 0 0 6px; color: var(--muted); font: 500 10px/1 "DM Mono", monospace; letter-spacing: .12em; }
h1, h2, h3, h4, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: 32px; letter-spacing: -.08em; }
h1 span { color: var(--green); }
h2 { margin: 22px 0 12px; font-size: 31px; line-height: 1.18; letter-spacing: -.06em; }
h3 { margin-bottom: 0; font-size: 18px; letter-spacing: -.04em; }
h4 { margin: 8px 0 5px; font-size: 15px; line-height: 1.45; }
.icon-button, .more-button, .speak-button { border-radius: 50%; background: var(--white); }
.icon-button { width: 38px; height: 38px; font-size: 25px; color: var(--green-dark); box-shadow: 0 3px 12px #51452a12; }
.hero-card { position: relative; overflow: hidden; min-height: 238px; padding: 27px 25px; border-radius: 24px; color: #f8f6ef; background: var(--green-dark); box-shadow: 0 12px 30px #3e5b451f; }
.hero-card p { max-width: 260px; margin-bottom: 0; color: #cfd8cc; font-size: 12px; line-height: 1.8; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #c4dc9b; box-shadow: 0 0 0 5px #c4dc9b22; }
.hero-orbit { position: absolute; right: -32px; bottom: -42px; width: 205px; height: 205px; }
.orbit-ring { position: absolute; inset: 0; border: 1px solid #b7ccad66; border-radius: 50%; transform: rotate(-25deg) scaleY(.45); }
.ring-two { inset: 22px -14px; transform: rotate(42deg) scaleY(.7); }
.orbit-core { position: absolute; top: 73px; left: 73px; display: grid; width: 60px; height: 60px; place-items: center; border-radius: 50%; color: var(--green-dark); background: #d8e4c9; font-size: 29px; }
.section-heading { margin: 30px 1px 13px; }
.section-heading.compact { margin-top: 27px; }
.text-button { padding: 4px 0; color: var(--green-dark); background: transparent; font-size: 12px; }
.episode-card, .context-card, .composer, .answer-section { border: 1px solid var(--line); border-radius: 17px; background: var(--white); }
.episode-card { display: flex; align-items: center; gap: 13px; padding: 13px; }
.episode-art { display: grid; flex: 0 0 57px; width: 57px; height: 57px; place-items: center; border-radius: 12px; color: #f6f1e8; background: #8f9a7f; font-size: 25px; }
.episode-info { min-width: 0; flex: 1; }
.episode-info p { margin: 0; color: var(--muted); font-size: 11px; }
.tag, .time-badge, .voice-hint { color: var(--green-dark); font-size: 10px; }
.tag { padding: 4px 7px; border-radius: 5px; background: #e8eee1; }
.more-button { width: 30px; height: 30px; color: var(--muted); background: transparent; font-weight: 700; }
.context-card { margin-top: 13px; padding: 19px; }
.time-badge { padding: 6px 9px; border-radius: 8px; background: #edf0e8; }
.range-line { display: flex; align-items: center; gap: 10px; margin: 20px 0 14px; color: var(--muted); font: 10px "DM Mono", monospace; }
.range-track { height: 5px; flex: 1; overflow: hidden; border-radius: 9px; background: #e5e4de; }
.range-track i { display: block; width: 45%; height: 100%; border-radius: inherit; background: var(--green); }
.time-input-label { display: block; margin-bottom: 7px; color: var(--muted); font-size: 11px; }
.time-row { gap: 9px; }
.time-row input { width: 90px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; outline: none; color: var(--green-dark); background: #fbfaf6; }
.secondary-button { padding: 9px 12px; border-radius: 8px; color: var(--green-dark); background: #eef1e9; font-size: 11px; }
.voice-hint { padding: 5px 8px; border: 1px solid #cbd8c8; border-radius: 20px; }
.composer { padding: 14px; }
.composer textarea { display: block; width: 100%; resize: vertical; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 14px; line-height: 1.7; }
.composer textarea::placeholder { color: #b0ada5; }
.context-details { margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line); }
.context-details summary { color: var(--green-dark); cursor: pointer; font-size: 11px; }
.context-details textarea { margin-top: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: #fbfaf6; font-size: 12px; }
.composer-footer { margin-top: 12px; }
.mic-button { padding: 7px 0; color: var(--green-dark); background: transparent; font-size: 12px; }
.mic-button > span { margin-left: 5px; }
.mic-button.listening { color: #bd5d4d; }
.ask-button { padding: 11px 15px; border-radius: 9px; color: #fff; background: var(--green-dark); font-size: 12px; }
.ask-button span, .resume-card button span { margin-left: 5px; }
.privacy-note { margin: 10px 2px 0; color: var(--muted); font-size: 10px; }
.answer-section { margin-top: 28px; padding: 18px; }
.answer-heading { justify-content: flex-start; gap: 10px; }
.answer-heading .speak-button { width: 32px; height: 32px; margin-left: auto; color: var(--green-dark); }
.ai-avatar { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; color: var(--green-dark); background: var(--lavender); }
.prompt-block { padding: 17px 0; }
.prompt-block label, .answer-body label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 11px; }
.prompt-block textarea, .answer-body textarea { display: block; width: 100%; resize: vertical; padding: 11px; border: 1px solid var(--line); border-radius: 9px; outline: none; color: #4e4a43; background: #fbfaf6; font-size: 12px; line-height: 1.7; }
.answer-body { padding: 0 3px 17px; color: #4e4a43; font-size: 14px; line-height: 1.8; }
.answer-body textarea { margin-bottom: 10px; }
.full-button, .outline-button { width: 100%; margin-top: 9px; padding: 11px; border-radius: 9px; font-size: 12px; }
.full-button { color: #fff; background: var(--green-dark); }
.outline-button { border: 1px solid #bdcbbb; color: var(--green-dark); background: transparent; }
.resume-card { padding: 12px 0 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.resume-card button { padding: 7px 0; color: var(--green-dark); background: transparent; font-size: 11px; }
.bottom-nav { position: fixed; right: 0; bottom: 0; left: 0; display: flex; justify-content: center; gap: min(14vw, 72px); padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid #e6e1d7; background: #f7f5f0eF; backdrop-filter: blur(14px); }
.nav-item { display: flex; flex-direction: column; align-items: center; gap: 5px; color: var(--muted); background: transparent; font-size: 10px; }
.nav-item span { font-size: 18px; line-height: 1; }
.nav-item.active { color: var(--green-dark); }
.toast { position: fixed; bottom: 82px; left: 50%; z-index: 3; padding: 10px 15px; border-radius: 9px; color: #fff; background: #272522eF; font-size: 12px; opacity: 0; pointer-events: none; transform: translate(-50%, 8px); transition: .2s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 700px) { body { padding: 30px 0; } .bottom-nav { position: static; margin-top: 40px; border: 0; background: transparent; } }
