:root { --green: #1b5e20; --green2: #2e7d32; --bg: #f5f5f2; --card: #fff; }
* { box-sizing: border-box; }
body { font-family: system-ui, sans-serif; margin: 0; background: var(--bg); color: #1a1a1a; }
.center { display: flex; min-height: 100vh; align-items: center; justify-content: center; }
.hidden { display: none !important; }
.muted { color: #777; }
.error { color: #c62828; }
.link { color: #fff; text-decoration: none; }

header {
  background: var(--green); color: #fff; padding: 14px 18px;
  display: flex; justify-content: space-between; align-items: center; font-weight: 600;
}
footer { text-align: center; padding: 18px; }
footer .link { color: var(--green); }

/* Login */
.card {
  background: var(--card); padding: 28px; border-radius: 16px; width: min(90vw, 340px);
  display: flex; flex-direction: column; gap: 14px; box-shadow: 0 6px 24px rgba(0,0,0,.1);
}
.card h1 { margin: 0 0 6px; font-size: 1.3rem; text-align: center; }
input, select, button { font-size: 1.05rem; padding: 12px; border-radius: 10px; border: 1px solid #ccc; }
button { background: var(--green); color: #fff; border: none; font-weight: 600; cursor: pointer; }

/* Recorder */
.recorder { display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 30px 18px; }
.mode-switch { display: flex; gap: 8px; background: #e7e7e2; padding: 5px; border-radius: 12px; }
.mode-switch button { background: transparent; color: #555; padding: 8px 22px; border-radius: 9px; }
.mode-switch button.active { background: var(--green); color: #fff; }
.rec-button {
  width: 220px; height: 220px; border-radius: 50%; background: var(--green2); color: #fff;
  border: none; font-size: 1.05rem; display: flex; flex-direction: column; gap: 12px;
  align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 8px 28px rgba(0,0,0,.18);
  transition: transform .1s;
}
.rec-button #recIcon { font-size: 2.4rem; }
.rec-button.active { background: #c62828; animation: pulse 1.2s infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.04); } }
.status { min-height: 1.5em; text-align: center; max-width: 90vw; }
.answer { background: var(--card); padding: 16px; border-radius: 12px; max-width: 92vw; white-space: pre-wrap; box-shadow: 0 4px 16px rgba(0,0,0,.08); }

/* Dashboard */
.dash main { padding: 16px; max-width: 1000px; margin: 0 auto; }
.range { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.total { font-weight: 600; color: var(--green); }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .grid { grid-template-columns: 1fr; } }
.panel { background: var(--card); border-radius: 14px; padding: 16px; margin-bottom: 16px; box-shadow: 0 3px 12px rgba(0,0,0,.06); }
.panel h2 { margin: 0 0 12px; font-size: 1.05rem; }
.tasklist, .notelist { list-style: none; padding: 0; margin: 0; }
.tasklist li, .notelist li { padding: 8px 0; border-bottom: 1px solid #eee; }
.tasklist li.done { opacity: .5; text-decoration: line-through; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid #eee; }
.tag { background: #e8f5e9; color: var(--green); border-radius: 6px; padding: 1px 8px; font-size: .8rem; }
