@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&family=ZCOOL+XiaoWei&display=swap');

:root {
  --bg: #102226;
  --bg-elev: #173035;
  --bg-soft: #1d3a40;
  --line: rgba(232, 220, 196, 0.12);
  --text: #f3ecdf;
  --muted: #a9b7b4;
  --accent: #d9773f;
  --accent-2: #3db8a0;
  --danger: #e25c5c;
  --warn: #e3b341;
  --ok: #5dbe8a;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --radius: 14px;
  --font: 'Noto Sans SC', system-ui, sans-serif;
  --display: 'ZCOOL XiaoWei', 'Noto Sans SC', serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(61, 184, 160, 0.18), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(217, 119, 63, 0.16), transparent 50%),
    linear-gradient(180deg, #0c1a1d 0%, var(--bg) 40%, #0b1619 100%);
  min-height: 100%;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

a { color: var(--accent-2); }

.app {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 20px 16px 64px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
  animation: rise 0.45s ease both;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.brand strong {
  font-family: var(--display);
  font-size: 1.55rem;
  letter-spacing: 0.04em;
  font-weight: 400;
}
.brand .ver,
.login-card h1 .ver {
  margin-left: 0.35em;
  font-family: inherit;
  font-size: 0.55em;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
  vertical-align: middle;
}
.brand span {
  color: var(--muted);
  font-size: 0.82rem;
}

.userchip {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.85rem;
}

.tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  animation: rise 0.5s ease both;
}
.tabs button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.tabs button.active,
.tabs button:hover {
  color: var(--text);
  border-color: rgba(61, 184, 160, 0.5);
  background: rgba(61, 184, 160, 0.12);
}

.login-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.login-head h1 {
  margin: 0;
  flex: 1;
}
.app-version {
  position: fixed;
  right: 10px;
  bottom: 10px;
  z-index: 50;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  background: rgba(14, 28, 30, 0.72);
  border: 1px solid var(--line);
  pointer-events: none;
  backdrop-filter: blur(6px);
}
.install-banner {
  border-color: rgba(110, 200, 196, 0.35);
  background: linear-gradient(160deg, rgba(31, 111, 106, 0.28), rgba(16, 34, 38, 0.85));
}
.install-banner h2 {
  color: #d7f3f0;
}

.panel {
  background: rgba(23, 48, 53, 0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  animation: rise 0.55s ease both;
  backdrop-filter: blur(8px);
}

.panel h2 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.45rem;
}
.panel .hint {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.form {
  display: grid;
  gap: 12px;
}
.field { display: grid; gap: 6px; }
.field label {
  font-size: 0.82rem;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 2px solid #222222;
  background: #ffffff !important;
  color: #000000 !important;
  border-radius: 10px;
  padding: 11px 12px;
  outline: none;
  -webkit-text-fill-color: #000000;
  caret-color: #000000;
  color-scheme: light;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #555555 !important;
  -webkit-text-fill-color: #555555;
  opacity: 1;
}
.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus {
  -webkit-text-fill-color: #000000 !important;
  caret-color: #000000;
  box-shadow: 0 0 0 1000px #ffffff inset;
  transition: background-color 99999s ease-out;
}
/* 页面内嵌日期时间（白底黑字；两行布局避免手机截断） */
.dt-inline {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: #ffffff;
  border: 2px solid #c9a227;
  overflow: visible;
}
.dt-row {
  display: grid;
  gap: 8px;
  align-items: end;
  min-width: 0;
}
.dt-row-date {
  /* 月 | 日(含星期) | 星期徽标 — 日列略宽以便显示「15日 周三」 */
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr) auto;
}
.dt-row-time {
  grid-template-columns: 1fr 1fr;
}
/* 窄屏：年份单独占满一行，避免「2026年」被裁成「20…」 */
@media (max-width: 420px) {
  .dt-row-date {
    grid-template-columns: 1fr 1fr auto;
  }
  .dt-cell-year {
    grid-column: 1 / -1;
  }
}
.dt-inline .dt-cell,
.dt-inline label.dt-cell {
  display: grid;
  gap: 4px;
  min-width: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: #111111 !important;
}
.dt-cap {
  color: #333 !important;
  line-height: 1.2;
}
.dt-select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  min-height: 48px;
  border: 2px solid #222222;
  border-radius: 10px;
  background: #ffffff !important;
  color: #000000 !important;
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  /* 右侧留给系统下拉箭头，避免数字被裁切 */
  padding: 8px 2.1em 8px 8px;
  line-height: 1.2;
  -webkit-appearance: menulist;
  appearance: menulist;
  text-overflow: clip;
  white-space: nowrap;
}
.dt-cell-year .dt-select {
  font-size: 1.1rem !important;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.dt-select option {
  color: #000000;
  background: #ffffff;
  font-weight: 700;
}
.dt-preview {
  margin: 10px 0 0;
  padding: 12px;
  border-radius: 10px;
  background: #fff3c4;
  color: #111111;
  font-size: 1.15rem;
  font-weight: 800;
  text-align: center;
  word-break: keep-all;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(61, 184, 160, 0.65);
  box-shadow: 0 0 0 3px rgba(61, 184, 160, 0.12);
}
.field textarea { min-height: 96px; resize: vertical; }
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 560px) {
  .row { grid-template-columns: 1fr; }
}

.btn {
  border: none;
  border-radius: 10px;
  padding: 11px 16px;
  cursor: pointer;
  font-weight: 500;
  transition: transform 0.15s ease, filter 0.15s ease, opacity 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary {
  background: linear-gradient(135deg, #e0894a, var(--accent));
  color: #1a1008;
}
.btn-secondary {
  background: var(--bg-soft);
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid transparent;
}
.btn-danger {
  background: rgba(226, 92, 92, 0.16);
  color: #ffb4b4;
  border: 1px solid rgba(226, 92, 92, 0.35);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.filter-warn {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff3c4;
  color: #111;
  font-weight: 700;
  border: 2px solid #c9a227;
}
.ringtone-list {
  display: grid;
  gap: 10px;
}
.ringtone-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 14px;
  border-radius: 12px;
  background: #ffffff;
  border: 2px solid #c9c9c9;
  color: #111;
}
.ringtone-item.selected {
  border-color: #c9a227;
  background: #fff8e0;
}
.ringtone-name {
  font-size: 1.15rem;
  font-weight: 800;
  flex: 1 1 140px;
  min-width: 0;
  word-break: break-word;
}
.ringtone-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
body.elder-mode .ringtone-name {
  font-size: 1.35rem;
}
body.elder-mode .ringtone-item {
  padding: 16px;
}
.item.item-focus {
  outline: 3px solid #c9a227;
  box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.28);
  animation: focusPulse 1.2s ease-in-out 0s 3;
}
@keyframes focusPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.01); }
}
.filter-bar {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 10px;
  align-items: end;
  margin: 4px 0 12px;
}
.filter-field {
  display: grid;
  gap: 4px;
  font-size: 0.85rem;
  color: var(--muted);
}
.filter-field input,
.filter-field select {
  width: 100%;
  border: 2px solid #222;
  border-radius: 10px;
  background: #fff !important;
  color: #000 !important;
  padding: 10px 12px;
  min-height: 44px;
}
@media (max-width: 560px) {
  .filter-bar {
    grid-template-columns: 1fr;
  }
}
.pending-box h2 {
  margin: 8px 0 10px;
  font-size: 1.35rem;
}
.pending-box .guide-steps {
  color: #d7e6e3;
  line-height: 1.7;
}
.dt-weekday {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: end;
  min-height: 48px;
  min-width: 2.6em;
  padding: 0 8px;
  border-radius: 10px;
  background: #fff3c4;
  color: #111 !important;
  font-size: 1.05rem;
  font-weight: 800;
  border: 2px solid #c9a227;
  white-space: nowrap;
}
body.elder-mode .dt-weekday {
  min-height: 58px;
  font-size: 1.2rem;
}
body.elder-mode .filter-field input,
body.elder-mode .filter-field select {
  min-height: 52px;
  font-size: 1.1rem;
}
.sort-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 4px 0 14px;
}
.sort-label {
  color: var(--muted);
  font-size: 0.88rem;
  margin-right: 2px;
}
.sort-btn {
  border: 1px solid var(--line);
  background: rgba(16, 34, 38, 0.65);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.88rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.sort-btn small {
  color: var(--muted);
  font-size: 0.78rem;
}
.sort-btn.active {
  border-color: rgba(61, 184, 160, 0.65);
  background: rgba(61, 184, 160, 0.16);
  color: #c8f0e6;
  font-weight: 700;
}
.sort-btn.active small {
  color: #9ed9cb;
}
body.elder-mode .sort-btn {
  font-size: 1.05rem;
  padding: 10px 14px;
  min-height: 44px;
}
body.elder-mode .sort-label {
  font-size: 1.05rem;
}

.list {
  display: grid;
  gap: 10px;
}
.item {
  border: 1px solid var(--line);
  background: rgba(16, 34, 38, 0.65);
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
  animation: rise 0.4s ease both;
}
.item:hover {
  border-color: rgba(61, 184, 160, 0.45);
  transform: translateY(-1px);
}
.item-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}
.item h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 500;
}
.item p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}
.meta {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--muted);
}
/* 提醒时间：提高对比度，全员更醒目 */
.when,
.meta .when,
.detail-when .when {
  color: #ffe08a;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.item-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.badge.urgent { color: #ffb4b4; border-color: rgba(226,92,92,.45); }
.badge.important { color: #ffe09a; border-color: rgba(227,179,65,.45); }
.badge.normal { color: var(--accent-2); border-color: rgba(61,184,160,.35); }
.badge.status-pending {
  color: #9ecbff;
  border-color: rgba(110, 168, 255, 0.45);
}
.badge.status-done {
  color: #a8e6bf;
  border-color: rgba(90, 190, 130, 0.45);
}

.empty {
  text-align: center;
  color: var(--muted);
  padding: 28px 10px;
}

.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}
.login-card {
  width: min(420px, 100%);
  background: rgba(23, 48, 53, 0.92);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 22px;
  box-shadow: var(--shadow);
  animation: rise 0.5s ease both;
}
.login-card h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 2rem;
}
.login-card .sub {
  margin: 8px 0 22px;
  color: var(--muted);
  line-height: 1.5;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: #1f3338;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 12px 16px;
  border-radius: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 50;
  max-width: min(92vw, 420px);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.guide-steps {
  display: grid;
  gap: 12px;
  margin: 16px 0;
}
.guide-steps li {
  list-style: none;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(16, 34, 38, 0.7);
  border: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.5;
}
.guide-steps strong { color: var(--text); }

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
  background: var(--warn);
}
.status-dot.on { background: var(--ok); }
.status-dot.off { background: var(--danger); }

.push-section-title {
  margin: 18px 0 8px;
  font-size: 1.05rem;
  font-weight: 600;
}
.pushplus-box {
  margin-top: 8px;
  padding-top: 4px;
}
.pushplus-box a {
  color: var(--accent, #6ec8c4);
}
.smtp-box {
  margin: 12px 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(16, 34, 38, 0.45);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.browser-test {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.browser-test-title {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 4px;
}
.browser-test-env,
.browser-test-advice {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}
.browser-test-advice { margin-top: 8px; }
.browser-test-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.browser-test-list li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--muted);
}
.browser-test-list .mark {
  flex: 0 0 1.1em;
  font-weight: 700;
}
.browser-test-list li.ok .mark { color: var(--ok); }
.browser-test-list li.bad .mark { color: var(--danger); }
.browser-test-list li.ok strong { color: var(--text); }
.browser-test-list li.bad strong { color: #ffb4b4; }

.chrome-guide {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(217, 119, 63, 0.45);
  background: rgba(217, 119, 63, 0.1);
}
.chrome-guide-title {
  margin: 0 0 6px;
  font-weight: 500;
  color: var(--text);
}
.chrome-guide-desc,
.chrome-guide-tip {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}
.chrome-guide-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 10px 0;
}
.chrome-guide-actions .btn {
  text-align: center;
  text-decoration: none;
}
.chrome-guide-tip { margin-top: 4px; }
.chrome-wechat-tip {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(16, 34, 38, 0.65);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}
.chrome-wechat-tip strong { color: var(--text); }
.chrome-wechat-tip ol {
  margin: 8px 0 0;
  padding-left: 1.2em;
}

.hidden { display: none !important; }

.field.missing input,
.field.missing select,
.field.missing textarea {
  border-color: rgba(226, 92, 92, 0.75);
  box-shadow: 0 0 0 3px rgba(226, 92, 92, 0.15);
}
.voice-box {
  border: 1px dashed rgba(61, 184, 160, 0.45);
  background: rgba(61, 184, 160, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.voice-box .voice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.voice-box .voice-status {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 8px;
  line-height: 1.45;
}
.voice-box.listening {
  border-color: rgba(217, 119, 63, 0.65);
  background: rgba(217, 119, 63, 0.1);
}
.voice-box.listening.voice-hot {
  border-color: rgba(61, 184, 160, 0.85);
  background: rgba(61, 184, 160, 0.14);
  box-shadow: 0 0 0 3px rgba(61, 184, 160, 0.18);
}
.voice-meter {
  display: none;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
}
.voice-box.listening .voice-meter {
  display: flex;
}
.voice-mic-pulse {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e25c5c;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(226, 92, 92, 0.55);
  animation: voice-mic-idle 1.4s ease-out infinite;
}
.voice-box.listening.voice-hot .voice-mic-pulse {
  background: #3db8a0;
  box-shadow: 0 0 0 0 rgba(61, 184, 160, 0.55);
  animation: voice-mic-hot 0.9s ease-out infinite;
}
.voice-meter-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 36px;
  flex: 1;
  min-width: 0;
}
.voice-meter-bars i {
  display: block;
  flex: 1;
  min-width: 4px;
  max-width: 10px;
  border-radius: 99px;
  background: linear-gradient(180deg, #3db8a0 0%, #1f6f6a 100%);
  height: 6px;
  opacity: 0.45;
  transform-origin: bottom center;
  transition: height 80ms linear, opacity 120ms ease;
}
.voice-box.listening.voice-hot .voice-meter-bars i {
  opacity: 1;
}
.voice-meter-label {
  flex-shrink: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: #f0c674;
  min-width: 5.5em;
  text-align: right;
}
.voice-box.listening.voice-hot .voice-meter-label {
  color: #8fe0cc;
}
@keyframes voice-mic-idle {
  0% { box-shadow: 0 0 0 0 rgba(226, 92, 92, 0.5); }
  70% { box-shadow: 0 0 0 12px rgba(226, 92, 92, 0); }
  100% { box-shadow: 0 0 0 0 rgba(226, 92, 92, 0); }
}
@keyframes voice-mic-hot {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(61, 184, 160, 0.55); }
  70% { transform: scale(1.08); box-shadow: 0 0 0 14px rgba(61, 184, 160, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(61, 184, 160, 0); }
}
body.elder-mode .voice-meter {
  padding: 14px 16px;
  gap: 14px;
}
body.elder-mode .voice-meter-bars {
  height: 44px;
}
body.elder-mode .voice-meter-label {
  font-size: 1.05rem;
}
body.elder-mode .voice-mic-pulse {
  width: 22px;
  height: 22px;
}
.voice-hints {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(226, 92, 92, 0.12);
  border: 1px solid rgba(226, 92, 92, 0.35);
  color: #ffc9c9;
  font-size: 0.9rem;
  line-height: 1.5;
}
.voice-hints.ok {
  background: rgba(93, 190, 138, 0.12);
  border-color: rgba(93, 190, 138, 0.35);
  color: #b7ebc9;
}
.voice-hints ul {
  margin: 6px 0 0;
  padding-left: 1.2em;
}
.voice-edit {
  margin-top: 10px;
}
.voice-edit label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 6px;
}
.voice-edit textarea {
  width: 100%;
  border: 1px solid rgba(61, 184, 160, 0.35);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  resize: vertical;
  background: #fff;
}
.voice-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.btn-voice {
  background: linear-gradient(135deg, #2f9e8a, var(--accent-2));
  color: #06201b;
}

/* ========== 丁波账号专用：大字高对比老人版 ========== */
body.elder-mode {
  --text: #fff8ee;
  --muted: #d5ddd9;
  --line: rgba(255, 248, 238, 0.22);
  font-size: 20px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body.elder-mode .app {
  padding: 18px 14px 72px;
}
body.elder-mode .brand strong {
  font-size: 1.85rem;
  letter-spacing: 0.03em;
}
body.elder-mode .brand span,
body.elder-mode .userchip {
  font-size: 1.05rem;
  color: var(--text);
  font-weight: 500;
}
body.elder-mode .tabs {
  gap: 8px;
  margin-bottom: 16px;
}
body.elder-mode .tabs button {
  font-size: 1.12rem;
  padding: 12px 18px;
  min-height: 48px;
  font-weight: 600;
  color: #e8f2f0;
}
body.elder-mode .tabs button.active {
  font-size: 1.18rem;
  background: rgba(61, 184, 160, 0.22);
}
body.elder-mode .panel {
  padding: 20px 16px;
}
body.elder-mode .panel h2 {
  font-size: 1.75rem;
  margin-bottom: 10px;
}
body.elder-mode .panel .hint,
body.elder-mode .item p,
body.elder-mode .guide-steps,
body.elder-mode .field label {
  font-size: 1.12rem;
  line-height: 1.6;
  color: #e4ebe8;
}
body.elder-mode .item {
  padding: 16px;
  border-width: 1.5px;
}
body.elder-mode .item h3 {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.35;
}
body.elder-mode .meta {
  margin-top: 12px;
  gap: 10px;
  font-size: 1.05rem;
  color: #e4ebe8;
}
body.elder-mode .when,
body.elder-mode .meta .when,
body.elder-mode .detail-when .when {
  color: #ffd54a;
  font-size: 1.28rem;
  font-weight: 800;
  background: rgba(255, 213, 74, 0.14);
  border: 1px solid rgba(255, 213, 74, 0.45);
  border-radius: 10px;
  padding: 4px 10px;
  display: inline-block;
}
body.elder-mode .detail-when {
  font-size: 1.15rem;
  color: #e4ebe8;
}
body.elder-mode .badge {
  font-size: 1rem;
  padding: 4px 12px;
  font-weight: 700;
}
body.elder-mode .btn {
  font-size: 1.15rem;
  font-weight: 700;
  padding: 14px 18px;
  min-height: 52px;
  border-radius: 12px;
}
body.elder-mode .btn-ghost {
  color: #e8f2f0;
  border-color: rgba(232, 242, 240, 0.28);
}
body.elder-mode .field input,
body.elder-mode .field select:not(.dt-select),
body.elder-mode .field textarea {
  font-size: 1.15rem;
  padding: 14px 14px;
  min-height: 52px;
}
/* 大字版：日期时间必须落在屏宽内（年份独占一行） */
body.elder-mode .dt-inline {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  gap: 10px;
  padding: 10px;
}
body.elder-mode .dt-row {
  width: 100%;
  max-width: 100%;
}
body.elder-mode .dt-row-date {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) auto;
}
body.elder-mode .dt-cell-year {
  grid-column: 1 / -1;
}
body.elder-mode .dt-inline .dt-cell,
body.elder-mode .dt-inline label.dt-cell {
  font-size: 1.05rem;
  min-width: 0;
}
body.elder-mode .dt-select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 52px;
  font-size: 1.12rem !important;
  padding: 8px 1.75em 8px 8px !important;
}
body.elder-mode .dt-cell-year .dt-select {
  font-size: 1.18rem !important;
}
body.elder-mode .dt-weekday {
  min-width: 2.2em;
  max-width: 3.2em;
  padding: 0 6px;
  font-size: 1.05rem;
  min-height: 52px;
}
body.elder-mode .dt-preview {
  font-size: 1.2rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}
body.elder-mode .empty {
  font-size: 1.2rem;
  padding: 36px 12px;
}
body.elder-mode .toast {
  font-size: 1.15rem;
  padding: 14px 20px;
}
body.elder-mode .app-version {
  font-size: 0.95rem;
  opacity: 0.85;
}
