:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-solid: #ffffff;
  --surface-raised: #fbfbfd;
  --ink: #111114;
  --muted: #6e6e73;
  --tertiary: #8e8e93;
  --line: rgba(60, 60, 67, 0.16);
  --line-strong: rgba(60, 60, 67, 0.26);
  --primary: #007aff;
  --primary-soft: #e8f2ff;
  --success: #248a3d;
  --success-soft: #e8f7ed;
  --warning: #b56a00;
  --warning-soft: #fff3d7;
  --danger: #d70015;
  --danger-soft: #ffe8e8;
  --info: #5856d6;
  --info-soft: #eeeeff;
  --shadow: 0 18px 46px rgba(0, 0, 0, 0.12);
  --shadow-soft: 0 6px 18px rgba(0, 0, 0, 0.06);
  --radius: 8px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  background: var(--bg);
  overflow-x: hidden;
  touch-action: pan-y;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 100dvh;
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  touch-action: pan-y;
  overscroll-behavior-x: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}

button {
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(0, 122, 255, 0.28);
  outline-offset: 2px;
}

svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-shell {
  position: relative;
  width: 100%;
  max-width: 760px;
  min-width: 0;
  min-height: 100dvh;
  margin: 0 auto;
  overflow-x: clip;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: calc(74px + var(--safe-top));
  padding: calc(16px + var(--safe-top)) 16px 10px;
  background: rgba(245, 245, 247, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(22px) saturate(1.6);
}

.topbar h1,
.sheet-title-row h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 750;
  line-height: 1.05;
  letter-spacing: 0;
}

.eyebrow {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0;
}

.content {
  padding: 14px 14px calc(104px + var(--safe-bottom));
}

.screen {
  display: grid;
  gap: 12px;
}

.today-panel,
.section,
.metric-strip,
.empty-state,
.insight-card,
.product-card,
.timeline-item,
.settings-row,
.chart-panel,
.unit-row {
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.today-panel {
  display: grid;
  gap: 16px;
  padding: 16px;
}

.today-panel.quiet {
  box-shadow: none;
}

.today-panel h2 {
  margin: 0;
  font-size: 27px;
  font-weight: 760;
  line-height: 1.12;
  letter-spacing: 0;
}

.today-panel p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.action-card {
  display: grid;
  min-height: 76px;
  padding: 13px;
  text-align: left;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition:
    transform 150ms ease,
    background 150ms ease,
    border-color 150ms ease;
}

.action-card:active {
  transform: scale(0.985);
  background: #f0f0f3;
}

.action-card strong {
  font-size: 18px;
  font-weight: 760;
  line-height: 1.15;
}

.action-card span {
  align-self: end;
  color: var(--muted);
  font-size: 13px;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  padding: 0;
  background: var(--line);
}

.metric {
  min-width: 0;
  padding: 14px;
  background: var(--surface-solid);
}

.metric strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 23px;
  font-weight: 760;
  line-height: 1.08;
  font-variant-numeric: tabular-nums;
}

.metric span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.reminder-panel {
  border-color: rgba(181, 106, 0, 0.22);
  background: linear-gradient(180deg, #fffdfa, var(--surface-solid));
}

.reminder-list,
.reminder-preview {
  display: grid;
  gap: 8px;
}

.reminder-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  width: 100%;
  min-height: 58px;
  padding: 10px;
  text-align: left;
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    background 150ms ease;
}

.reminder-card:active {
  transform: scale(0.985);
  background: #f8f8fa;
}

.reminder-card.warning {
  border-color: rgba(181, 106, 0, 0.2);
}

.reminder-card.danger {
  border-color: rgba(215, 0, 21, 0.2);
}

.reminder-dot {
  width: 9px;
  height: 9px;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--info);
}

.reminder-dot.warning {
  background: var(--warning);
}

.reminder-dot.danger {
  background: var(--danger);
}

.reminder-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.reminder-copy strong {
  overflow-wrap: anywhere;
  font-size: 15px;
  font-weight: 740;
  line-height: 1.25;
}

.reminder-copy small {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.section,
.chart-panel {
  padding: 15px;
}

.section-header,
.row-between {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.section-header {
  margin-bottom: 12px;
}

.section-header h2,
.section-header h3,
.settings-row h3,
.chart-panel h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 730;
  line-height: 1.22;
  letter-spacing: 0;
}

.section-header p,
.subtext,
.meta,
.hint {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.stack {
  display: grid;
  gap: 10px;
}

.inline-actions,
.chip-row,
.segmented,
.card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.inline-actions::-webkit-scrollbar,
.chip-row::-webkit-scrollbar,
.segmented::-webkit-scrollbar,
.card-actions::-webkit-scrollbar {
  display: none;
}

.button,
.chip,
.segmented button,
.icon-button {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition:
    transform 150ms ease,
    background 150ms ease,
    border-color 150ms ease,
    color 150ms ease,
    box-shadow 150ms ease;
}

.button:active,
.chip:active,
.segmented button:active,
.icon-button:active,
.product-card:active {
  transform: scale(0.985);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 0 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.button.primary {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 10px 18px rgba(0, 122, 255, 0.18);
}

.button.secondary {
  color: var(--ink);
  background: #f2f2f7;
  border-color: var(--line);
}

.button.danger {
  color: #fff;
  background: var(--danger);
}

.button.text {
  width: auto;
  color: var(--primary);
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.button.compact {
  width: auto;
  min-height: 40px;
  padding: 0 12px;
  font-size: 14px;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 46px;
  min-width: 46px;
  padding: 0;
  color: var(--primary);
  background: var(--surface-solid);
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
}

.icon-button.ghost {
  color: var(--muted);
  background: #f2f2f7;
  box-shadow: none;
}

.chip,
.segmented button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 13px;
  color: var(--muted);
  background: var(--surface-solid);
  border-color: var(--line);
  font-size: 14px;
  font-weight: 650;
}

.chip.is-active,
.segmented button.is-active {
  color: var(--primary);
  background: linear-gradient(180deg, #ffffff, var(--primary-soft));
  border-color: rgba(0, 122, 255, 0.24);
  box-shadow: 0 6px 14px rgba(0, 122, 255, 0.1);
}

.inventory-controls {
  display: grid;
  gap: 12px;
}

.filter-panel {
  display: grid;
  gap: 9px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px) saturate(1.4);
}

.filter-line {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.filter-line > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.search-box {
  position: relative;
}

.search-box svg {
  position: absolute;
  top: 50%;
  left: 13px;
  width: 18px;
  height: 18px;
  color: var(--tertiary);
  transform: translateY(-50%);
}

.search-box input {
  width: 100%;
  height: 48px;
  padding: 0 14px 0 42px;
  color: var(--ink);
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.product-card {
  display: grid;
  gap: 12px;
  padding: 13px;
  transition:
    transform 150ms ease,
    box-shadow 150ms ease;
}

.inventory-card {
  cursor: pointer;
}

.inventory-card:hover {
  border-color: var(--line-strong);
}

.card-trailing {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--tertiary);
}

.card-trailing svg {
  width: 18px;
  height: 18px;
}

.product-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.product-title {
  min-width: 0;
}

.product-title h3 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 17px;
  font-weight: 730;
  line-height: 1.25;
}

.product-title p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--muted);
  background: #f2f2f7;
  font-size: 12px;
  font-weight: 760;
  white-space: nowrap;
}

.status-badge.info {
  color: var(--info);
  background: var(--info-soft);
}

.status-badge.success {
  color: var(--success);
  background: var(--success-soft);
}

.status-badge.warning {
  color: var(--warning);
  background: var(--warning-soft);
}

.status-badge.danger {
  color: var(--danger);
  background: var(--danger-soft);
}

.status-badge.neutral {
  color: var(--muted);
  background: #f2f2f7;
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.mini-stat {
  min-width: 0;
  padding: 9px 10px;
  background: #f6f6f8;
  border: 1px solid rgba(60, 60, 67, 0.08);
  border-radius: var(--radius);
}

.mini-stat strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 15px;
  font-weight: 760;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.mini-stat span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.timeline {
  display: grid;
  gap: 8px;
}

.timeline-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  box-shadow: none;
}

.timeline-dot {
  width: 9px;
  height: 9px;
  margin-top: 7px;
  border-radius: 999px;
  background: var(--primary);
}

.timeline-dot.success {
  background: var(--success);
}

.timeline-dot.warning {
  background: var(--warning);
}

.timeline-dot.danger {
  background: var(--danger);
}

.timeline-dot.neutral {
  background: var(--tertiary);
}

.timeline-item h3 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 15px;
  font-weight: 700;
}

.timeline-item p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.empty-state {
  display: grid;
  gap: 12px;
  justify-items: start;
  padding: 16px;
  box-shadow: none;
}

.empty-state h2,
.empty-state h3 {
  margin: 0;
  font-size: 18px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
}

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

.bar-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 76px;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}

.bar-track {
  height: 10px;
  overflow: hidden;
  background: #e8e8ed;
  border-radius: 999px;
}

.bar-fill {
  display: block;
  width: var(--value);
  min-width: 3px;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
}

.bar-fill.accent {
  background: var(--info);
}

.bar-value {
  text-align: right;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.insight-grid,
.settings-list,
.unit-list {
  display: grid;
  gap: 10px;
}

.insight-card {
  display: grid;
  gap: 10px;
  padding: 13px;
  box-shadow: none;
}

.insight-card h3 {
  margin: 0;
  font-size: 16px;
}

.insight-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.settings-row {
  display: grid;
  gap: 10px;
  padding: 14px;
  box-shadow: none;
}

.wechat-note,
.migration-summary {
  display: grid;
  gap: 4px;
  padding: 11px;
  color: var(--ink);
  background: var(--primary-soft);
  border: 1px solid rgba(0, 122, 255, 0.18);
  border-radius: var(--radius);
}

.wechat-note strong,
.migration-summary strong {
  font-size: 14px;
}

.wechat-note span,
.migration-summary span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.migration-code-area {
  min-height: 168px;
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.45;
  word-break: break-all;
}

.migration-part-list {
  display: grid;
  gap: 10px;
}

.migration-part-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.migration-part-card .migration-code-area {
  min-height: 104px;
}

.migration-part-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.migration-part-meta strong {
  font-size: 13px;
}

.migration-part-meta span {
  color: var(--muted);
  font-size: 12px;
}

.reminder-rule-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.reminder-rule-grid > div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 11px;
  background: #f6f6f8;
  border: 1px solid rgba(60, 60, 67, 0.08);
  border-radius: var(--radius);
}

.reminder-rule-grid strong {
  font-size: 14px;
}

.reminder-rule-grid span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  max-width: 760px;
  margin: 0 auto;
  padding: 7px 10px calc(7px + var(--safe-bottom));
  background: rgba(251, 251, 253, 0.9);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(24px) saturate(1.7);
}

.bottom-nav button {
  display: grid;
  gap: 3px;
  place-items: center;
  min-width: 0;
  min-height: 55px;
  padding: 5px 4px;
  color: var(--tertiary);
  background: transparent;
  border: 0;
  border-radius: var(--radius);
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
}

.bottom-nav button.is-active {
  color: var(--primary);
}

.bottom-nav svg {
  width: 22px;
  height: 22px;
}

.fab {
  position: fixed;
  right: max(18px, calc((100vw - 760px) / 2 + 18px));
  bottom: calc(88px + var(--safe-bottom));
  z-index: 28;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: #fff;
  background: var(--primary);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 16px 28px rgba(0, 122, 255, 0.28);
  cursor: pointer;
}

.fab svg {
  width: 26px;
  height: 26px;
}

.sheet {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  align-items: end;
  pointer-events: none;
}

.sheet[aria-hidden="true"] {
  visibility: hidden;
}

.sheet[aria-hidden="false"] {
  pointer-events: auto;
  visibility: visible;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.24);
  opacity: 0;
  transition: opacity 180ms ease;
}

.sheet[aria-hidden="false"] .sheet-backdrop {
  opacity: 1;
}

.sheet-panel {
  position: relative;
  width: min(760px, 100%);
  max-height: calc(92dvh - var(--safe-top));
  margin: 0 auto;
  overflow: auto;
  padding: 10px 14px calc(18px + var(--safe-bottom));
  background: var(--bg);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  box-shadow: var(--shadow);
  transform: translateY(26px);
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sheet[aria-hidden="false"] .sheet-panel {
  transform: translateY(0);
}

.sheet-handle {
  width: 38px;
  height: 5px;
  margin: 0 auto 13px;
  border-radius: 999px;
  background: rgba(60, 60, 67, 0.28);
}

.sheet-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

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

.field.full {
  grid-column: 1 / -1;
}

.field span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
  appearance: none;
}

.field textarea {
  resize: vertical;
}

.field input:disabled {
  color: var(--tertiary);
  background: #ededf1;
}

.sheet-actions {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 10px;
  margin-top: 16px;
}

.detail-panel {
  display: grid;
  gap: 12px;
}

.detail-hero {
  display: grid;
  gap: 6px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 246, 248, 0.86)),
    var(--surface-solid);
  border: 1px solid rgba(60, 60, 67, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.detail-hero p,
.detail-hero span {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.detail-hero strong {
  display: block;
  margin: 4px 0 2px;
  font-size: 24px;
  font-weight: 760;
  line-height: 1.08;
  font-variant-numeric: tabular-nums;
}

.detail-actions {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 1px 0;
  scrollbar-width: none;
}

.detail-actions::-webkit-scrollbar {
  display: none;
}

.detail-actions .button {
  width: auto;
}

.detail-stats {
  margin-bottom: 2px;
}

.unit-row {
  display: grid;
  gap: 10px;
  padding: 13px;
  box-shadow: none;
}

.unit-title-block {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: start;
}

.unit-status-dot {
  width: 9px;
  height: 9px;
  margin-top: 7px;
  border-radius: 999px;
  background: var(--tertiary);
}

.unit-status-dot.info {
  background: var(--info);
}

.unit-status-dot.success {
  background: var(--success);
}

.unit-status-dot.warning {
  background: var(--warning);
}

.unit-status-dot.danger {
  background: var(--danger);
}

.unit-row h3 {
  margin: 0;
  font-size: 15px;
}

.unit-row p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.unit-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.unit-facts span {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 9px 10px;
  background: #f6f6f8;
  border: 1px solid rgba(60, 60, 67, 0.08);
  border-radius: var(--radius);
}

.unit-facts strong {
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.unit-facts small {
  color: var(--muted);
  font-size: 11px;
}

.edit-form {
  display: grid;
  gap: 12px;
}

.toast {
  position: fixed;
  right: 14px;
  bottom: calc(154px + var(--safe-bottom));
  left: 14px;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 720px;
  min-height: 48px;
  margin: 0 auto;
  padding: 11px 12px;
  color: #fff;
  background: rgba(28, 28, 30, 0.94);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

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

.toast button {
  min-height: 36px;
  padding: 0 10px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  font-weight: 760;
}

@media (min-width: 680px) {
  .reminder-rule-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .today-panel {
    grid-template-columns: minmax(0, 1fr) minmax(250px, 0.72fr);
    align-items: start;
  }

  .insight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }
}
