:root {
  --bg: #eef7f2;
  --page: #f8fcfa;
  --paper: #ffffff;
  --ink: #1d2521;
  --muted: #727c76;
  --soft: #a5ada7;
  --line: #dfe9e3;
  --green: #147a55;
  --green-deep: #0f5f45;
  --mint: #e0f2e9;
  --mist: #f1f8f4;
  --red: #c34435;
  --red-soft: #ffe9e7;
  --shadow: 0 18px 44px rgba(20, 122, 85, 0.12);
  --soft-shadow: 0 10px 26px rgba(20, 122, 85, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 0%, rgba(20, 122, 85, 0.12), transparent 34%),
    linear-gradient(180deg, #fbfefc 0%, var(--bg) 100%);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

button svg,
button svg * {
  pointer-events: none;
}

.app-shell {
  position: relative;
  width: min(100vw, 430px);
  min-height: 100svh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--page);
}

.view {
  display: none;
  min-height: 100svh;
  padding: calc(22px + env(safe-area-inset-top)) 18px calc(96px + env(safe-area-inset-bottom));
}

.view.is-active {
  display: block;
  animation: view-in 0.16s ease-out both;
}

.topbar,
.center-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.center-topbar > strong,
.page-title {
  margin: 0;
  font-size: 21px;
  font-weight: 950;
}

.month-switcher {
  display: inline-grid;
  grid-template-columns: 30px auto 30px;
  align-items: center;
  gap: 6px;
}

.month-switcher strong {
  min-width: 56px;
  font-size: 22px;
  font-weight: 950;
  text-align: center;
}

.month-switcher button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 12px;
  color: rgba(20, 122, 85, 0.84);
  font-size: 22px;
  font-weight: 900;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.brand-copy strong,
.brand-copy small {
  display: block;
}

.brand-copy strong {
  font-size: 21px;
  font-weight: 950;
  line-height: 1;
}

.brand-copy small {
  width: fit-content;
  max-width: 150px;
  overflow: hidden;
  color: rgba(114, 124, 118, 0.72);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  background: var(--green);
  box-shadow: 0 8px 18px rgba(20, 122, 85, 0.22);
}

.brand-mark svg {
  width: 25px;
  height: 25px;
}

.brand-mark path {
  fill: none;
  stroke: #fff;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-mark .soft-line {
  opacity: 0.42;
}

.brand-mark .check {
  stroke: #f09a48;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 14px;
  background: rgba(224, 242, 233, 0.7);
  color: var(--green);
  font-weight: 950;
  text-align: center;
}

.icon-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.daily {
  margin-top: 24px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--soft-shadow);
}

.daily-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 154px;
  align-items: center;
  gap: 12px;
}

.daily span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.daily strong {
  display: block;
  margin-top: 5px;
  font-size: 25px;
  line-height: 1;
}

.weather {
  position: relative;
  isolation: isolate;
  min-width: 154px;
  padding: 4px 0 4px 20px;
  overflow: hidden;
  color: inherit;
  text-align: right;
}

.weather > span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  justify-content: flex-end;
  gap: 3px;
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

.weather b {
  color: var(--muted);
  font-weight: 900;
}

.weather [data-weather-desc] {
  display: inline;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.weather::after {
  content: "";
  position: absolute;
  top: -8px;
  right: 0;
  bottom: -8px;
  width: 108px;
  z-index: -1;
  opacity: 0.35;
  background-image:
    linear-gradient(115deg, transparent 0 42%, rgba(54, 104, 122, 0.34) 43% 46%, transparent 47% 100%),
    linear-gradient(115deg, transparent 0 58%, rgba(20, 122, 85, 0.18) 59% 62%, transparent 63% 100%);
  background-size: 20px 24px, 26px 28px;
  mask-image: linear-gradient(to top right, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.46) 44%, #000 100%);
  -webkit-mask-image: linear-gradient(to top right, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.46) 44%, #000 100%);
  animation: rain-fall 1.8s linear infinite;
  pointer-events: none;
}

.weather-clear::after {
  top: 2px;
  right: 12px;
  bottom: 2px;
  width: 76px;
  opacity: 0.42;
  border-radius: 50%;
  background:
    radial-gradient(circle at 48% 48%, rgba(255, 190, 76, 0.38) 0 22%, transparent 23%),
    conic-gradient(from 16deg, transparent 0 10%, rgba(255, 190, 76, 0.22) 11% 14%, transparent 15% 25%);
  background-size: 56px 56px, 64px 64px;
  animation: weather-drift 5s ease-in-out infinite alternate;
}

.weather-cloud::after {
  top: -4px;
  right: 0;
  bottom: -4px;
  width: 108px;
  opacity: 0.42;
  background:
    radial-gradient(circle at 38% 60%, rgba(123, 151, 143, 0.28) 0 18%, transparent 19%),
    radial-gradient(circle at 62% 44%, rgba(20, 122, 85, 0.16) 0 22%, transparent 23%),
    radial-gradient(circle at 72% 62%, rgba(123, 151, 143, 0.22) 0 16%, transparent 17%);
  background-size: 92px 54px;
  animation: weather-drift 4.6s ease-in-out infinite alternate;
}

.weather-fog::after {
  top: 4px;
  right: 0;
  bottom: 4px;
  width: 108px;
  opacity: 0.34;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 9px, rgba(123, 151, 143, 0.24) 10px 12px, transparent 13px 20px);
  background-size: 86px 48px;
  animation: fog-drift 4.2s linear infinite;
}

.weather-storm::after {
  top: -8px;
  right: 0;
  bottom: -8px;
  width: 108px;
  opacity: 0.42;
  background-image:
    linear-gradient(115deg, transparent 0 42%, rgba(54, 104, 122, 0.36) 43% 46%, transparent 47% 100%),
    linear-gradient(140deg, transparent 0 46%, rgba(255, 190, 76, 0.52) 47% 52%, transparent 53% 100%);
  background-size: 20px 24px, 42px 52px;
  animation: rain-fall 1.2s linear infinite;
}

.weather-snow::after {
  top: -4px;
  right: 0;
  bottom: -4px;
  width: 108px;
  opacity: 0.44;
  background-image:
    radial-gradient(circle, rgba(123, 151, 143, 0.34) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(20, 122, 85, 0.18) 0 2px, transparent 3px);
  background-size: 18px 22px, 26px 28px;
  animation: snow-fall 3.4s linear infinite;
}

.weather strong {
  position: relative;
  z-index: 1;
  color: var(--green);
  font-size: 19px;
}

.tip {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(36, 94, 80, 0.1);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.tip b {
  flex: 0 0 auto;
  color: var(--green);
}

.tip div {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.capture-flow {
  margin-top: 12px;
  padding: 9px;
  border-radius: 22px;
  background: var(--paper);
  box-shadow: var(--soft-shadow);
}

.new-task-capture {
  margin-top: 28px;
}

.new-task-workbench {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.task-compose {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: stretch;
  padding: 12px;
  border-radius: 20px;
  background: var(--paper);
  box-shadow: var(--soft-shadow);
}

.task-compose textarea {
  min-width: 0;
  min-height: 78px;
  resize: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.45;
}

.task-compose textarea::placeholder {
  color: rgba(114, 124, 118, 0.46);
}

.compose-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.compose-icon,
.compose-ai {
  display: grid;
  place-items: center;
  min-height: 36px;
  border-radius: 13px;
  font-size: 13px;
  font-weight: 950;
}

.compose-icon {
  width: 38px;
  background: rgba(224, 242, 233, 0.72);
  color: rgba(20, 122, 85, 0.84);
}

.compose-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.compose-icon.is-recording,
.voice-button.is-recording {
  position: relative;
  background: rgba(195, 68, 53, 0.1);
  color: var(--red);
  animation: record-pulse 1.1s ease-in-out infinite;
}

.compose-icon.is-recording::after,
.voice-button.is-recording::after {
  content: "录音中";
  position: absolute;
  right: 0;
  bottom: calc(100% + 6px);
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(195, 68, 53, 0.92);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.compose-ai {
  width: 92px;
  background: var(--green);
  color: #fff;
}

.task-examples {
  padding: 2px 2px 0;
}

.task-examples summary {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 900;
  list-style: none;
}

.task-examples summary::-webkit-details-marker {
  display: none;
}

.task-examples summary::after {
  content: "展开";
  margin-left: 8px;
  color: rgba(20, 122, 85, 0.72);
}

.task-examples[open] summary::after {
  content: "收起";
}

.task-examples > div,
.example-list {
  display: grid;
  gap: 8px;
  margin-top: 6px;
}

.task-examples button {
  display: grid;
  gap: 3px;
  min-height: 50px;
  padding: 9px 13px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.52);
  color: rgba(29, 37, 33, 0.72);
  text-align: left;
}

.task-examples button span {
  color: var(--soft);
  font-size: 11px;
  font-weight: 850;
}

.task-examples button strong {
  overflow: hidden;
  color: rgba(20, 122, 85, 0.84);
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-examples.is-hidden {
  display: none;
}

.upload-primary {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  padding: 10px;
  border-radius: 16px;
  background: var(--green);
  color: #fff;
  text-align: left;
}

.upload-primary i {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  font-style: normal;
  font-size: 22px;
  font-weight: 900;
}

.upload-primary strong,
.upload-primary small {
  display: block;
}

.upload-primary strong {
  font-size: 17px;
  font-weight: 950;
}

.upload-primary small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.flow-actions {
  display: block;
  margin-top: 10px;
}

.quick-input {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 78px;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 5px 5px 5px 7px;
  border-radius: 16px;
  background: var(--mist);
}

.quick-input input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #2f3c36;
  font-size: 13px;
  font-weight: 750;
}

.quick-input input::placeholder {
  color: rgba(114, 124, 118, 0.48);
}

.quick-input button {
  display: grid;
  place-items: center;
  min-height: 32px;
  border-radius: 12px;
  background: rgba(20, 122, 85, 0.1);
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
}

.quick-input .voice-button {
  min-height: 32px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.58);
  color: rgba(20, 122, 85, 0.82);
}

.quick-input .voice-button.is-recording {
  background: rgba(195, 68, 53, 0.1);
  color: var(--red);
}

.quick-input .voice-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-agenda {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.agenda-day {
  padding: 10px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 24px rgba(36, 58, 50, 0.06);
}

.agenda-title,
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.agenda-title {
  margin-bottom: 5px;
}

.agenda-title strong,
.section-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 950;
}

.agenda-title span,
.section-head span {
  color: var(--soft);
  font-size: 12px;
  font-weight: 900;
}

.swipe-hint {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(126, 138, 131, 0.72);
  font-size: 10.5px;
  font-weight: 500;
  opacity: 0.58;
}

.swipe-hint.is-teaching {
  color: rgba(116, 128, 121, 0.78);
  animation: swipe-teach 1.8s cubic-bezier(0.32, 0.72, 0.22, 1) 3;
}

.swipe-hint svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.agenda-count {
  color: var(--soft);
  font-size: 12px;
  font-weight: 900;
}

.case-badge {
  display: inline-grid;
  place-items: center;
  min-height: 15px;
  padding: 0 5px;
  margin-right: 6px;
  border-radius: 999px;
  background: rgba(20, 122, 85, 0.1);
  color: var(--green);
  font-style: normal;
  font-size: 9px;
  font-weight: 950;
  vertical-align: 1px;
}

.agenda-list {
  display: grid;
  gap: 4px;
}

.agenda-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 28px;
  gap: 10px;
  align-items: start;
  width: 100%;
  min-height: 46px;
  padding: 7px 0;
  text-align: left;
}

.agenda-item + .agenda-item {
  border-top: 1px solid rgba(36, 94, 80, 0.08);
}

.swipe-demo {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
}

.swipe-demo .agenda-item {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-right: 0;
  border-radius: 14px;
  background: #fff;
  transform: translateX(0);
  transition: transform 0.22s ease;
}

.swipe-demo.is-teaching .agenda-item {
  animation: swipe-card-teach 1.8s cubic-bezier(0.32, 0.72, 0.22, 1) 3;
}

.swipe-demo.is-teaching .swipe-actions {
  animation: swipe-actions-teach 1.8s cubic-bezier(0.32, 0.72, 0.22, 1) 3;
}

.swipe-demo.is-open .agenda-item {
  transform: translateX(-92px);
  animation: none;
}

.swipe-demo.is-open .swipe-actions {
  opacity: 1;
}

.swipe-actions {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease;
}

.swipe-demo.is-open .swipe-actions {
  opacity: 1;
  pointer-events: auto;
}

.swipe-actions button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
}

.swipe-actions svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.swipe-actions .mute {
  background: #6253f2;
}

.swipe-actions .delete {
  background: #ff3b42;
}

.task-time {
  padding-top: 2px;
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
  line-height: 1.25;
}

.agenda-main strong,
.agenda-main small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agenda-main strong {
  font-size: 14px;
  font-weight: 950;
  line-height: 1.35;
}

.agenda-main small,
.time-item small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.agenda-main em,
.time-item em {
  color: #6f8f80;
  font-style: normal;
  font-weight: 800;
}

.agenda-meta,
.task-side {
  display: grid;
  justify-items: end;
  align-self: start;
  align-items: center;
  width: 28px;
  height: 100%;
  padding-top: 1px;
}

.state-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  min-height: 24px;
  align-self: center;
  justify-self: end;
  border-radius: 50%;
}

.state-icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.state-icon.missing {
  background: var(--red-soft);
  color: var(--red);
}

.state-icon.ready {
  background: var(--mint);
  color: var(--green);
}

.state-icon.done {
  background: var(--green);
  color: #fff;
  box-shadow: 0 7px 14px rgba(20, 122, 85, 0.18);
}

.saved-head {
  margin-top: 34px;
}

.saved-head p {
  margin: 0;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.saved-head h1 {
  margin: 8px 0 0;
  font-size: 28px;
  line-height: 1.15;
}

.saved-lines {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding: 14px;
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--soft-shadow);
}

.saved-lines div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-size: 14px;
  font-weight: 900;
}

.saved-lines span {
  flex: 0 0 auto;
  color: var(--soft);
  font-size: 12px;
  font-weight: 900;
}

.material-section {
  margin-top: 28px;
}

.compact-material {
  margin-top: 22px;
}

.check-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 24px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.check-row span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border: 2px solid #b5beb7;
  border-radius: 7px;
  color: #fff;
}

.check-row.is-done span {
  border-color: var(--green);
  background: var(--green);
}

.action-row {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 12px;
  margin-top: 28px;
}

.secondary-action,
.primary-action {
  display: grid;
  place-items: center;
  min-height: 46px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 950;
}

.secondary-action {
  background: var(--mint);
  color: var(--green);
}

.primary-action {
  background: var(--green);
  color: #fff;
}

.timeline-head {
  margin-top: 34px;
}

.new-task-result {
  display: none;
  margin-top: 22px;
  animation: result-rise 0.24s ease both;
}

.new-task-result.is-visible {
  display: block;
}

.new-task-result .saved-lines {
  margin-top: 12px;
}

.new-task-result .action-row {
  margin-top: 24px;
}

.task-sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 14px;
  background: rgba(29, 37, 33, 0.18);
}

.task-sheet.is-open {
  display: flex;
}

.task-sheet-panel {
  width: min(100%, 402px);
  min-height: 228px;
  max-height: min(78svh, 680px);
  overflow-y: auto;
  padding: 10px 16px 16px;
  border-radius: 28px;
  background: rgba(248, 252, 250, 0.96);
  box-shadow:
    0 22px 56px rgba(22, 65, 50, 0.2),
    0 1px 0 rgba(255, 255, 255, 0.92) inset;
  backdrop-filter: blur(22px) saturate(1.18);
  -webkit-backdrop-filter: blur(22px) saturate(1.18);
}

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  margin-bottom: 4px;
}

.sheet-head strong {
  font-size: 17px;
  font-weight: 950;
  line-height: 1.1;
}

.sheet-head button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 13px;
  background: rgba(224, 242, 233, 0.72);
  color: var(--green);
  font-size: 22px;
  font-weight: 800;
}

.sheet-compose {
  gap: 8px;
  padding: 12px;
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(20, 122, 85, 0.08);
}

.sheet-compose textarea {
  min-height: 78px;
}

.sheet-result {
  display: none;
  margin-top: 18px;
  animation: result-rise 0.24s ease both;
}

.sheet-result.is-visible {
  display: block;
}

.sheet-result .saved-lines {
  margin-top: 12px;
}

.sheet-result .action-row {
  margin-top: 20px;
}

.todo-fab {
  position: fixed;
  right: max(18px, calc((100vw - 430px) / 2 + 18px));
  bottom: calc(96px + env(safe-area-inset-bottom));
  z-index: 19;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 18px;
  background: rgba(20, 122, 85, 0.92);
  color: #fff;
  box-shadow: 0 16px 30px rgba(20, 122, 85, 0.24);
}

.todo-fab svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.calendar-panel {
  margin-top: 32px;
  padding: 14px;
  border-radius: 22px;
  background: var(--paper);
  box-shadow: var(--soft-shadow);
}

.calendar-week,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.calendar-week span {
  display: grid;
  place-items: center;
  min-height: 28px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 900;
}

.calendar-grid button {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 38px;
  border-radius: 12px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.calendar-grid .muted {
  color: var(--soft);
}

.calendar-grid .is-selected {
  background: var(--green);
  color: #fff;
  transform: translateY(-1px);
}

.calendar-grid .has-deadline {
  background: var(--red-soft);
  color: var(--red);
}

.calendar-grid .is-selected.has-deadline {
  background: var(--green);
  color: #fff;
}

.calendar-grid i {
  position: absolute;
  bottom: 5px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.calendar-list {
  margin-top: 18px;
  padding: 10px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 24px rgba(36, 58, 50, 0.06);
}

.calendar-list .agenda-title {
  margin-bottom: 5px;
}

.calendar-empty {
  display: grid;
  place-items: center;
  min-height: 74px;
  color: var(--soft);
  font-size: 13px;
  font-weight: 850;
}

.timeline {
  margin-top: 26px;
}

#todosView .timeline {
  height: calc(100svh - 186px - env(safe-area-inset-top));
  overflow-y: auto;
  padding-top: 4px;
  padding-bottom: 92px;
  scrollbar-width: none;
}

#todosView .timeline::-webkit-scrollbar {
  display: none;
}

#todosView .timeline::after {
  content: "";
  display: block;
  height: 360px;
}

.time-row {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
}

.time-day {
  padding-top: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-align: right;
}

.time-row::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 56px;
  width: 1px;
  background: var(--line);
  content: "";
}

.time-group {
  display: grid;
  gap: 10px;
  padding-left: 14px;
  padding-bottom: 18px;
}

.time-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  gap: 10px;
  width: 100%;
  padding: 9px 0 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.time-item::before {
  content: "";
  position: absolute;
  top: 13px;
  left: -19px;
  z-index: 1;
  width: 9px;
  height: 9px;
  border: 2px solid var(--page);
  border-radius: 50%;
  background: var(--green);
}

.time-item.is-urgent::before {
  background: var(--red);
}

.time-item b,
.time-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.time-item b {
  font-size: 13px;
  font-weight: 950;
  line-height: 1.35;
}

.time-item i {
  display: inline;
  margin-right: 8px;
  color: var(--green);
  font-style: normal;
  font-size: 12px;
  font-weight: 950;
  line-height: 1.35;
  letter-spacing: 0;
}

.time-row.is-past > .time-day,
.time-item.is-complete b,
.time-item.is-complete small {
  color: var(--soft);
}

.simple-list {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.simple-list button,
.profile-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  padding: 14px;
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--soft-shadow);
  text-align: left;
}

.simple-list strong,
.simple-list span,
.profile-card strong,
.profile-card span {
  display: block;
}

.simple-list strong,
.profile-card strong {
  font-size: 15px;
}

.simple-list span,
.profile-card span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.profile-card {
  justify-content: flex-start;
  margin-top: 28px;
}

.mine-profile {
  align-items: center;
  min-height: 92px;
  margin-top: 26px;
  gap: 12px;
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: var(--green);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

.profile-main {
  min-width: 0;
  flex: 1;
}

.profile-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.profile-title-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-card .auth-badge {
  display: inline-grid;
  place-items: center;
  width: fit-content;
  flex: 0 0 auto;
  min-height: 20px;
  padding: 0 8px;
  margin-top: 0;
  border-radius: 999px;
  background: rgba(165, 173, 167, 0.12);
  color: var(--soft);
  font-size: 10px;
  font-weight: 900;
}

.auth-badge.is-authed {
  background: rgba(20, 122, 85, 0.1);
  color: var(--green);
}

.profile-actions {
  display: grid;
  gap: 7px;
  flex: 0 0 92px;
}

.wechat-action,
.text-action {
  display: grid;
  place-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 950;
}

.wechat-action {
  background: var(--green);
  color: #fff;
}

.text-action {
  background: var(--mint);
  color: var(--green);
}

.bottom-nav {
  position: fixed;
  right: max(16px, calc((100vw - 430px) / 2 + 16px));
  bottom: calc(16px + env(safe-area-inset-bottom));
  left: max(16px, calc((100vw - 430px) / 2 + 16px));
  z-index: 60;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
  height: 58px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(245, 251, 248, 0.62));
  box-shadow:
    0 18px 46px rgba(22, 65, 50, 0.16),
    0 1px 0 rgba(255, 255, 255, 0.94) inset,
    0 -1px 0 rgba(20, 122, 85, 0.04) inset;
  backdrop-filter: blur(24px) saturate(1.28);
  -webkit-backdrop-filter: blur(24px) saturate(1.28);
}

.bottom-nav button {
  display: grid;
  align-content: center;
  place-items: center;
  gap: 0;
  border-radius: 22px;
  color: #858f89;
  font-size: 9.5px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.2s ease;
}

.bottom-nav svg {
  width: 25px;
  height: 25px;
  padding: 5px;
  margin-bottom: -2px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition:
    color 0.2s ease,
    transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.bottom-nav .is-active {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(228, 241, 235, 0.62));
  color: var(--green);
  box-shadow:
    0 10px 22px rgba(22, 65, 50, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.96) inset,
    0 -1px 0 rgba(20, 122, 85, 0.08) inset;
}

.bottom-nav .is-active svg {
  transform: translateY(-1px) scale(1.03);
}

.bottom-nav button span {
  transition: color 0.18s ease, transform 0.18s ease;
}

.bottom-nav .is-active span {
  transform: translateY(-2px);
}

.bottom-nav button.is-switching {
  animation: nav-press 0.28s ease;
}

.bottom-nav button.is-switching svg {
  animation: nav-pop 0.28s ease;
}

.bottom-nav .nav-create {
  position: relative;
  align-self: end;
  display: grid;
  align-content: start;
  place-items: center;
  grid-template-rows: 48px auto;
  row-gap: 3px;
  width: 56px;
  height: 62px;
  justify-self: center;
  margin-top: -20px;
  margin-bottom: -3px;
  border-radius: 999px;
  background: transparent;
  color: var(--green);
  box-shadow: none;
  font-size: 10px;
  isolation: isolate;
}

.bottom-nav .nav-create::before {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: -1;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.35), transparent 28%),
    linear-gradient(180deg, #1a9065 0%, var(--green) 100%);
  box-shadow:
    0 12px 24px rgba(20, 122, 85, 0.28),
    0 1px 0 rgba(255, 255, 255, 0.3) inset;
  transform: translateX(-50%);
  content: "";
}

.bottom-nav .nav-create svg {
  grid-row: 1;
  align-self: center;
  justify-self: center;
  width: 24px;
  height: 24px;
  padding: 0;
  margin-bottom: 0;
  color: #fff;
  stroke-width: 2.5;
}

.bottom-nav .nav-create span {
  grid-row: 2;
  align-self: end;
  color: var(--green);
  font-size: 9px;
  font-weight: 950;
  line-height: 1;
  transform: translateY(1px);
}

.bottom-nav .nav-create:active,
.bottom-nav .nav-create.is-pressing {
  transform: translateY(2px) scale(0.96);
}

.bottom-nav .nav-create.is-pressing::before {
  animation: create-pulse 0.44s ease;
}

.bottom-nav .nav-create.is-recording {
  color: var(--red);
}

.bottom-nav .nav-create.is-recording::before {
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.42), transparent 28%),
    linear-gradient(180deg, #e36d5f 0%, var(--red) 100%);
  animation: nav-recording-pulse 0.9s ease-in-out infinite;
}

.bottom-nav .nav-create.is-recording svg {
  animation: nav-mic-bounce 0.9s ease-in-out infinite;
}

.bottom-nav .nav-create.is-recording span {
  position: relative;
  color: var(--red);
  font-size: 0;
}

.bottom-nav .nav-create.is-recording span::after {
  color: var(--red);
  font-size: 9px;
  font-weight: 950;
  content: "正在听";
}

.city-sheet,
.role-sheet,
.profile-sheet {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 18px;
  background: rgba(29, 37, 33, 0.18);
}

.city-sheet.is-open,
.role-sheet.is-open,
.profile-sheet.is-open {
  display: flex;
}

.city-sheet > div,
.role-sheet > div,
.profile-sheet > div {
  display: grid;
  gap: 8px;
  width: min(100%, 390px);
  padding: 12px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
}

.city-sheet > div {
  grid-template-columns: repeat(4, 1fr);
}

.role-sheet > div {
  grid-template-columns: repeat(4, 1fr);
}

.role-sheet strong {
  grid-column: 1 / -1;
  padding: 2px 4px 6px;
  font-size: 15px;
  font-weight: 950;
}

.role-input {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 70px;
  gap: 8px;
  padding: 6px;
  border-radius: 16px;
  background: var(--mist);
}

.role-input input {
  min-width: 0;
  padding: 0 8px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.role-input input::placeholder {
  color: rgba(114, 124, 118, 0.5);
}

.role-input button {
  min-height: 34px;
  border-radius: 12px;
  background: rgba(20, 122, 85, 0.1);
}

.city-sheet button,
.role-sheet button {
  display: grid;
  place-items: center;
  min-height: 42px;
  border-radius: 16px;
  background: var(--mist);
  color: var(--green);
  font-size: 13px;
  font-weight: 950;
}

.role-sheet .role-input button {
  min-height: 34px;
  border-radius: 12px;
  background: rgba(20, 122, 85, 0.1);
}

.profile-sheet > div {
  gap: 10px;
  padding: 14px;
}

.profile-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.profile-sheet-head strong {
  font-size: 17px;
  font-weight: 950;
}

.profile-sheet-head button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 13px;
  background: var(--mint);
  color: var(--green);
  font-size: 22px;
  font-weight: 800;
}

.profile-edit-avatar {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: var(--mist);
}

.profile-edit-avatar span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: var(--green);
  color: #fff;
  font-size: 22px;
  font-weight: 950;
}

.profile-edit-field {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  align-items: center;
  min-height: 46px;
  padding: 0 12px;
  border-radius: 16px;
  background: var(--mist);
}

.profile-edit-field span {
  color: var(--soft);
  font-size: 12px;
  font-weight: 900;
}

.profile-edit-avatar input,
.profile-edit-field input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
}

.profile-edit-avatar input::placeholder,
.profile-edit-field input::placeholder {
  color: rgba(114, 124, 118, 0.48);
}

.role-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.role-shortcuts button {
  min-height: 38px;
  border-radius: 14px;
  background: var(--mist);
  color: var(--green);
  font-size: 13px;
  font-weight: 950;
}

.toast {
  position: fixed;
  right: max(18px, calc((100vw - 430px) / 2 + 18px));
  bottom: calc(82px + env(safe-area-inset-bottom));
  left: max(18px, calc((100vw - 430px) / 2 + 18px));
  z-index: 30;
  display: none;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  text-align: center;
}

.toast.is-visible {
  display: block;
}

.file-input {
  display: none;
}

@keyframes rain-fall {
  from {
    background-position: 0 0, 8px -10px;
  }

  to {
    background-position: -18px 22px, -16px 16px;
  }
}

@keyframes weather-drift {
  from {
    transform: translateX(-4px) scale(0.98);
  }

  to {
    transform: translateX(5px) scale(1.02);
  }
}

@keyframes fog-drift {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 30px 0;
  }
}

@keyframes snow-fall {
  from {
    background-position: 0 -18px, 12px -8px;
  }

  to {
    background-position: 0 28px, 12px 30px;
  }
}

@keyframes result-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes view-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes swipe-teach {
  0%,
  70%,
  100% {
    opacity: 0.5;
    transform: translateX(0);
  }

  24%,
  48% {
    opacity: 0.78;
    transform: translateX(-12px);
  }
}

@keyframes swipe-card-teach {
  0%,
  70%,
  100% {
    transform: translateX(0);
  }

  24%,
  48% {
    transform: translateX(-76px);
  }
}

@keyframes swipe-actions-teach {
  0%,
  14%,
  70%,
  100% {
    opacity: 0;
  }

  24%,
  48% {
    opacity: 1;
  }
}

@keyframes record-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(195, 68, 53, 0.18);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(195, 68, 53, 0);
  }
}

@keyframes nav-pop {
  0% {
    transform: translateY(0) scale(0.92);
  }

  65% {
    transform: translateY(-3px) scale(1.08);
  }

  100% {
    transform: translateY(-2px) scale(1.04);
  }
}

@keyframes nav-press {
  0% {
    transform: scale(0.96);
  }

  70% {
    transform: scale(1.03);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes create-pulse {
  0% {
    box-shadow:
      0 12px 24px rgba(20, 122, 85, 0.28),
      0 0 0 0 rgba(20, 122, 85, 0.18),
      0 1px 0 rgba(255, 255, 255, 0.3) inset;
  }

  60% {
    box-shadow:
      0 12px 24px rgba(20, 122, 85, 0.24),
      0 0 0 9px rgba(20, 122, 85, 0),
      0 1px 0 rgba(255, 255, 255, 0.3) inset;
  }

  100% {
    box-shadow:
      0 12px 24px rgba(20, 122, 85, 0.28),
      0 0 0 0 rgba(20, 122, 85, 0),
      0 1px 0 rgba(255, 255, 255, 0.3) inset;
  }
}

@keyframes nav-recording-pulse {
  0%,
  100% {
    box-shadow:
      0 14px 28px rgba(195, 68, 53, 0.26),
      0 0 0 0 rgba(195, 68, 53, 0.28),
      0 1px 0 rgba(255, 255, 255, 0.3) inset;
    transform: translateX(-50%) scale(1);
  }

  50% {
    box-shadow:
      0 10px 20px rgba(195, 68, 53, 0.18),
      0 0 0 12px rgba(195, 68, 53, 0),
      0 1px 0 rgba(255, 255, 255, 0.3) inset;
    transform: translateX(-50%) scale(0.96);
  }
}

@keyframes nav-mic-bounce {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-1px) scale(1.08);
  }
}

@keyframes record-dot {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.82);
  }

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

@media (min-width: 431px) {
  .app-shell {
    box-shadow: 0 18px 52px rgba(26, 43, 36, 0.1);
  }
}
