:root {
  color-scheme: light;
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #17322d;
  background: #f2f6f4;
  --green: #176b5b;
  --green-dark: #0e5144;
  --paper: #fff;
  --line: #dbe7e2;
  --muted: #6b7f79;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at top, #e1f1eb, #f5f7f6 420px); }
button, textarea { font: inherit; }
button { cursor: pointer; }
.shell { width: min(680px, 100%); margin: 0 auto; padding: 28px 18px 180px; }
header { margin: 8px 2px 24px; }
.eyebrow { margin: 0 0 6px; color: var(--green); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(1.9rem, 8vw, 2.7rem); letter-spacing: -.04em; }
.subtitle { margin: 8px 0 0; color: var(--muted); }
.composer, .card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 10px 32px rgba(17, 71, 60, .06); }
.composer { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 10px; }
textarea { width: 100%; resize: vertical; border: 0; outline: 0; min-height: 76px; padding: 10px; color: inherit; background: transparent; line-height: 1.55; }
.composer button { align-self: end; border: 0; border-radius: 12px; padding: 11px 18px; color: #fff; background: var(--green); font-weight: 700; }
.composer button:hover { background: var(--green-dark); }
.composer button:disabled { opacity: .55; cursor: wait; }
.status { min-height: 24px; margin: 10px 4px 18px; color: var(--muted); font-size: .92rem; }
.status.error { color: #a33a32; }
.card { margin-top: 14px; padding: 16px 18px; }
.card.compact { box-shadow: none; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
h2 { margin: 0; font-size: 1.02rem; }
.text-button { border: 0; padding: 4px; color: var(--green); background: transparent; }
.list { list-style: none; margin: 12px 0 0; padding: 0; }
.list li { display: flex; justify-content: space-between; gap: 10px; padding: 11px 0; border-top: 1px solid #edf2f0; }
.list li:first-child { border-top: 0; }
.list button { border: 1px solid var(--line); border-radius: 9px; padding: 5px 9px; background: #fff; color: var(--green); }
.item-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.muted { color: var(--muted); }
.badge { min-width: 24px; padding: 2px 7px; border-radius: 99px; text-align: center; color: #fff; background: var(--green); font-size: .8rem; }
.quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.quick-actions button { min-height: 44px; border: 1px solid var(--line); border-radius: 13px; color: var(--green); background: rgba(255, 255, 255, .75); }
.detail { animation: appear .18s ease-out; }
.voice-dock { position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); z-index: 3; display: grid; justify-items: center; transform: translateX(-50%); color: var(--muted); }
#voice-timer { min-width: 52px; margin-bottom: 5px; padding: 3px 8px; border-radius: 99px; text-align: center; background: rgba(255,255,255,.9); font-variant-numeric: tabular-nums; font-size: .78rem; }
#voice-button { width: 72px; height: 72px; border: 7px solid rgba(255,255,255,.9); border-radius: 50%; color: #fff; background: var(--green); box-shadow: 0 9px 30px rgba(14, 81, 68, .3); touch-action: none; user-select: none; }
#voice-button.recording { background: #bd493d; transform: scale(1.06); }
#voice-label { margin-top: 5px; color: #365c53; font-size: .82rem; }
.retry { margin-top: 6px; border: 0; color: #a33a32; background: #fff; border-radius: 9px; padding: 5px 9px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
@keyframes appear { from { opacity: 0; transform: translateY(5px); } }
@media (min-width: 720px) { .shell { padding-top: 48px; } .voice-dock { bottom: 24px; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; } }
