:root {
  --bg: #f6f8ff;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --ink: #1d2742;
  --muted: #66708a;
  --line: #dce2f2;
  --green: #4f73d9;
  --green-dark: #304fa8;
  --green-soft: #e7ecff;
  --blue: #6f8df0;
  --blue-soft: #e9efff;
  --coral: #dd6fa7;
  --yellow: #f2c9df;
  --shadow: 0 18px 45px rgba(40, 55, 105, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  background:
    linear-gradient(135deg, rgba(246, 248, 255, 0.98), rgba(255, 244, 250, 0.95)),
    radial-gradient(circle at 18% 12%, rgba(111, 141, 240, 0.22), transparent 28%),
    radial-gradient(circle at 90% 16%, rgba(221, 111, 167, 0.18), transparent 24%);
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

a {
  color: inherit;
  text-decoration: none;
}

.app {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 18px 0 40px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  backdrop-filter: blur(16px);
}

.brand,
.nav,
.hero-actions,
.head-actions,
.section-title,
.exercise-total,
.insight-row {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--green);
  font-weight: 900;
}

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

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.nav {
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(222, 216, 205, 0.82);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.76);
}

.nav a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  padding: 0 14px;
  color: var(--muted);
  font-weight: 700;
}

.nav a.active {
  color: #fff;
  background: var(--green);
}

.page {
  margin-top: 22px;
}

.home-hero {
  min-height: 320px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  align-items: center;
  padding: 28px;
  border: 1px solid rgba(220, 226, 242, 0.9);
  border-radius: 8px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.96), rgba(255, 246, 251, 0.72)),
    linear-gradient(145deg, rgba(79, 115, 217, 0.12), rgba(221, 111, 167, 0.14));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 22px;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0;
  font-size: 16px;
  letter-spacing: 0;
}

.lead {
  max-width: 620px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.primary-link,
.secondary-link,
.primary-button,
.ghost-button,
.text-button,
.segmented button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  font-weight: 800;
}

.primary-link,
.primary-button {
  border-color: var(--green);
  color: #fff;
  background: var(--green);
}

.primary-link:hover,
.primary-button:hover {
  background: var(--green-dark);
}

.secondary-link,
.ghost-button,
.text-button,
.segmented button {
  color: var(--ink);
  background: var(--surface-strong);
}

.secondary-link:hover,
.ghost-button:hover,
.text-button:hover,
.segmented button:hover {
  border-color: var(--green);
  background: var(--green-soft);
}

.hero-visual {
  min-height: 260px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(160deg, rgba(79, 115, 217, 0.12), rgba(221, 111, 167, 0.14)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.34) 0 1px, transparent 1px 42px);
  border-radius: 8px;
  border: 1px solid rgba(222, 216, 205, 0.74);
}

.phone-frame {
  width: min(220px, 76vw);
  min-height: 280px;
  padding: 18px 14px;
  border: 10px solid #263130;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 22px 55px rgba(31, 42, 43, 0.22);
}

.phone-notch {
  width: 82px;
  height: 8px;
  margin: 0 auto 22px;
  border-radius: 99px;
  background: #263130;
}

.mini-chart {
  height: 100px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 8px;
  padding: 16px;
  border-radius: 8px;
  background: #f3f6f3;
}

.mini-chart span {
  border-radius: 5px 5px 0 0;
  background: linear-gradient(var(--blue), var(--coral));
}

.phone-row {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  color: var(--muted);
}

.phone-row em {
  color: var(--ink);
  font-style: normal;
  font-weight: 900;
}

.phone-pill {
  margin-top: 24px;
  min-height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--green);
  font-weight: 900;
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.entry-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  min-height: 124px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(54, 45, 31, 0.07);
}

.entry-card:hover {
  border-color: var(--green);
  transform: translateY(-2px);
}

.entry-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
  font-size: 28px;
  font-weight: 900;
}

.weight-entry .entry-icon {
  background: var(--coral);
}

.calendar-entry .entry-icon {
  background: var(--blue);
}

.entry-card p,
.section-hint,
.placeholder-panel p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-hint {
  font-size: 13px;
}

.disabled-entry {
  opacity: 0.78;
}

.page-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
}

.page-head h1 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 48px);
}

.head-actions {
  gap: 10px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.metric-card,
.panel,
.placeholder-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 10px 24px rgba(54, 45, 31, 0.07);
}

.metric-card {
  min-height: 126px;
  padding: 18px;
}

.metric-card span,
.metric-card small,
.insight-row span {
  color: var(--muted);
}

.metric-card strong {
  display: block;
  margin: 12px 0 8px;
  font-size: 30px;
}

.weight-layout {
  display: grid;
  grid-template-columns: 430px minmax(0, 1fr);
  gap: 16px;
}

.calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
}

.panel {
  padding: 20px;
}

.section-title {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.section-title.small {
  margin-bottom: 10px;
}

.record-form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  padding: 11px 12px;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--green);
  outline: 3px solid rgba(79, 115, 217, 0.16);
}

.subsection {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.stack-list {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

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

.icon-only {
  width: 36px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--coral);
  font-weight: 900;
}

.exercise-total {
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px;
  border-radius: 8px;
  background: var(--green-soft);
}

.exercise-total span,
.exercise-total strong {
  color: var(--green-dark);
  font-weight: 800;
}

.chart-panel canvas {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.segmented {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.segmented button {
  min-height: 34px;
  border-color: transparent;
  padding: 0 10px;
}

.segmented button.active {
  color: #fff;
  background: var(--green);
}

.insight-row {
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}

.insight-row div {
  flex: 1;
  min-height: 78px;
  padding: 14px;
  border-radius: 8px;
  background: #f7f8f4;
}

.insight-row strong,
.insight-row span {
  display: block;
}

.insight-row strong {
  margin-top: 8px;
  font-size: 22px;
}

.table-panel {
  margin-top: 16px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--green-dark);
  background: #eef2ff;
  font-size: 13px;
}

td {
  color: var(--ink);
}

.delta-up {
  color: var(--coral);
}

.delta-down {
  color: var(--green);
}

.row-actions {
  display: flex;
  gap: 8px;
}

.small-action {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0 10px;
  font-weight: 800;
}

.placeholder-panel {
  max-width: 720px;
  padding: 34px;
}

.calendar-title {
  text-align: center;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekdays {
  border: 1px solid var(--line);
  border-bottom: 0;
  background: var(--blue-soft);
}

.calendar-weekdays span {
  padding: 10px 4px;
  text-align: center;
  color: var(--green-dark);
  font-weight: 900;
}

.calendar-grid {
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.calendar-day {
  min-height: 104px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 8px;
  text-align: left;
}

.calendar-day.outside {
  color: #a2a9ba;
  background: #f6f8ff;
}

.calendar-day.today {
  outline: 3px solid rgba(79, 115, 217, 0.25);
  outline-offset: -3px;
}

.calendar-day.selected {
  background: #fff4fa;
}

.day-number {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  font-weight: 900;
}

.task-dot {
  min-width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--coral);
  font-size: 12px;
}

.day-preview {
  margin-top: 8px;
  display: grid;
  gap: 5px;
}

.day-preview span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 12px;
  color: var(--muted);
}

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

.task-list,
.report-history {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.task-card,
.report-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.task-card p,
.report-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 9px;
  color: var(--green-dark);
  background: var(--green-soft);
  font-size: 12px;
  font-weight: 900;
}

.task-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.task-actions input {
  width: auto;
  min-width: 150px;
}

#weeklyReportText {
  min-height: 220px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(29, 39, 66, 0.42);
  backdrop-filter: blur(8px);
}

.modal {
  width: min(560px, 100%);
  max-height: min(720px, calc(100vh - 36px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
  padding: 22px;
}

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

.base-form .primary-button {
  grid-column: 1 / -1;
}

.migration-modal {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 244, 250, 0.96)),
    var(--surface-strong);
}

.migration-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 12px 0 10px;
}

#calendarBackupFile {
  display: none;
}

/* Brighter assistant refresh */
body {
  background:
    radial-gradient(circle at 12% 8%, rgba(111, 141, 240, 0.28), transparent 28%),
    radial-gradient(circle at 88% 14%, rgba(221, 111, 167, 0.24), transparent 26%),
    linear-gradient(135deg, #f7f9ff 0%, #fff4fb 58%, #f2f6ff 100%);
}

.home-hero {
  border-radius: 18px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.98), rgba(255, 246, 251, 0.78)),
    linear-gradient(145deg, rgba(79, 115, 217, 0.16), rgba(221, 111, 167, 0.16));
}

.entry-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.entry-card {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 32px rgba(40, 55, 105, 0.08);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.entry-card:hover {
  box-shadow: 0 18px 42px rgba(40, 55, 105, 0.14);
}

.calendar-page .page-head {
  align-items: center;
  padding: 10px 0 6px;
}

.calendar-page .page-head h1 {
  font-size: clamp(34px, 5vw, 58px);
  max-width: 760px;
  line-height: 1.05;
}

.calendar-page .head-actions {
  padding: 8px;
  border: 1px solid rgba(220, 226, 242, 0.9);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 12px 30px rgba(40, 55, 105, 0.08);
}

.calendar-main,
.task-panel,
.report-panel {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
}

.calendar-weekdays {
  border-radius: 14px 14px 0 0;
  background: linear-gradient(90deg, #e8eeff, #fff0f8);
}

.calendar-grid {
  overflow: hidden;
  border-radius: 0 0 14px 14px;
}

.calendar-day {
  transition: background 0.16s ease, transform 0.16s ease;
}

.calendar-day:hover {
  background: #f5f7ff;
}

.calendar-day.selected {
  background: linear-gradient(135deg, #fff4fa, #eef3ff);
  box-shadow: inset 0 0 0 2px rgba(221, 111, 167, 0.18);
}

.day-preview span.done {
  color: #a4abc0;
  text-decoration: line-through;
}

.task-card,
.report-card {
  border-radius: 14px;
}

.task-card.is-done {
  background: #f7f8fc;
}

.task-card.is-done p {
  color: #9ba3b8;
  text-decoration: line-through;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 20;
  transform: translateX(-50%) translateY(16px);
  opacity: 0;
  pointer-events: none;
  border-radius: 8px;
  color: #fff;
  background: rgba(31, 42, 43, 0.96);
  padding: 12px 16px;
  transition: 0.18s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

[hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  .home-hero,
  .weight-layout,
  .calendar-layout {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 340px;
  }

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

@media (max-width: 720px) {
  .app {
    width: min(100vw - 20px, 620px);
    padding-top: 8px;
  }

  .topbar,
  .page-head {
    align-items: stretch;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }

  .nav a {
    justify-content: center;
    padding: 0 8px;
    font-size: 13px;
  }

  .home-hero {
    min-height: auto;
    padding: 22px;
  }

  .lead {
    font-size: 16px;
  }

  .hero-actions,
  .head-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .primary-link,
  .secondary-link,
  .ghost-button {
    width: 100%;
  }

  .entry-grid,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .entry-card {
    grid-template-columns: auto 1fr;
  }

  .entry-card strong {
    grid-column: 2;
  }

  .panel {
    padding: 14px;
  }

  .exercise-row {
    grid-template-columns: 1fr 76px 36px;
  }

  .exercise-row .calculated {
    grid-column: 1 / -1;
  }

  .section-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .segmented {
    width: 100%;
  }

  .segmented button {
    flex: 1;
  }

  .insight-row {
    flex-direction: column;
  }

  .base-form {
    grid-template-columns: 1fr;
  }

  .calendar-day {
    min-height: 78px;
    padding: 6px;
  }

  .day-preview span {
    display: none;
  }
}

/* Visual refresh: soft glass, bold pills, blue-pink youth style */
:root {
  --ink: #07133f;
  --muted: #53617f;
  --line: #d9e0ef;
  --green: #006eff;
  --green-dark: #0054d8;
  --green-soft: #eaf2ff;
  --blue: #006eff;
  --blue-soft: #edf5ff;
  --coral: #f23b96;
  --shadow: 0 22px 55px rgba(31, 57, 122, 0.12);
}

body {
  background:
    radial-gradient(520px 360px at 78% 64%, rgba(245, 68, 166, 0.18), transparent 62%),
    radial-gradient(620px 440px at 22% 18%, rgba(0, 110, 255, 0.12), transparent 64%),
    linear-gradient(180deg, #fbfdff 0%, #f3f8ff 44%, #fff7fc 100%);
}

.app {
  width: min(1360px, calc(100vw - 64px));
  padding: 28px 0 54px;
}

.topbar {
  position: relative;
  top: auto;
  padding: 18px 0 34px;
  backdrop-filter: none;
}

.brand {
  gap: 16px;
}

.brand-mark {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: linear-gradient(145deg, #0077ff 0%, #0058ec 100%);
  box-shadow: 0 18px 32px rgba(0, 110, 255, 0.25);
  font-size: 36px;
}

.brand strong {
  color: #07133f;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1;
  font-weight: 950;
}

.brand small {
  color: #53617f;
  font-size: 20px;
}

.nav {
  gap: 14px;
  padding: 0;
  border: 0;
  background: transparent;
}

.nav a {
  min-height: 58px;
  border: 1px solid rgba(164, 176, 205, 0.62);
  border-radius: 999px;
  padding: 0 34px;
  color: #111936;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 24px rgba(30, 45, 95, 0.08);
  font-size: 22px;
  font-weight: 900;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.nav a:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(30, 45, 95, 0.12);
}

.nav a.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #0077ff, #0062ef);
  box-shadow: 0 16px 32px rgba(0, 110, 255, 0.24);
}

.page {
  margin-top: 0;
}

.home-hero {
  min-height: 520px;
  grid-template-columns: minmax(0, 1fr) 380px;
  padding: clamp(34px, 5vw, 72px);
  border-radius: 28px;
  border: 1px solid rgba(219, 228, 246, 0.92);
  background:
    radial-gradient(420px 360px at 86% 78%, rgba(244, 63, 159, 0.24), transparent 64%),
    radial-gradient(520px 360px at 68% 40%, rgba(0, 110, 255, 0.12), transparent 60%),
    rgba(255, 255, 255, 0.74);
  box-shadow: 0 34px 80px rgba(31, 57, 122, 0.13);
}

.home-hero .eyebrow {
  color: #071b67;
  font-size: 28px;
  letter-spacing: 0.04em;
}

.home-hero h1 {
  max-width: 720px;
  color: #07133f;
  font-size: clamp(54px, 8vw, 92px);
  font-weight: 950;
  letter-spacing: 0;
}

.lead {
  max-width: 660px;
  color: #435171;
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.22;
}

.hero-actions {
  gap: 18px;
  margin-top: 42px;
}

.primary-link,
.secondary-link,
.primary-button,
.ghost-button,
.text-button,
.segmented button {
  min-height: 56px;
  border-radius: 999px;
  padding: 0 28px;
  font-size: 20px;
  font-weight: 900;
}

.primary-link,
.primary-button {
  border-color: transparent;
  background: linear-gradient(135deg, #0077ff 0%, #0065f4 54%, #f044a4 120%);
  box-shadow: 0 16px 30px rgba(0, 110, 255, 0.2);
}

.secondary-link,
.ghost-button,
.text-button,
.segmented button {
  border-color: rgba(164, 176, 205, 0.72);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 10px 24px rgba(30, 45, 95, 0.06);
}

.hero-visual {
  min-height: 360px;
  border-radius: 24px;
  border-color: rgba(205, 214, 235, 0.72);
  background:
    radial-gradient(circle at 76% 80%, rgba(244, 63, 159, 0.22), transparent 55%),
    linear-gradient(135deg, #f5f9ff, #fff3fa);
}

.phone-frame {
  width: 250px;
  min-height: 360px;
  border-radius: 32px;
}

.phone-pill {
  background: linear-gradient(135deg, #0077ff, #f044a4);
}

.entry-grid {
  margin-top: 34px;
}

.entry-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.entry-card {
  min-height: 260px;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr auto;
  align-items: start;
  gap: 18px;
  padding: 34px;
  border-radius: 30px;
  border-color: rgba(219, 228, 246, 0.88);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 28px 70px rgba(31, 57, 122, 0.12);
}

.entry-card:hover {
  transform: translateY(-4px);
}

.entry-icon {
  grid-column: 1 / -1;
  width: 92px;
  height: 92px;
  border-radius: 999px;
  font-size: 42px;
  box-shadow: 0 18px 36px rgba(0, 110, 255, 0.22);
}

.weight-entry .entry-icon {
  background: linear-gradient(145deg, #f044a4, #f85aae);
}

.calendar-entry .entry-icon {
  background: linear-gradient(145deg, #0077ff, #005fe8);
}

.entry-card h2 {
  color: #1a2440;
  font-size: 34px;
  font-weight: 950;
}

.entry-card p {
  max-width: 360px;
  font-size: 17px;
}

.entry-card strong {
  align-self: end;
  justify-self: end;
  min-width: 118px;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #1a2440;
  background: linear-gradient(180deg, #f5f7fb, #e8edf6);
  box-shadow: inset 0 1px 0 #fff;
  font-size: 20px;
}

.page-head h1 {
  color: #07133f;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 950;
}

.summary-grid {
  gap: 22px;
}

.metric-card,
.panel,
.placeholder-panel {
  border-radius: 26px;
  border-color: rgba(219, 228, 246, 0.92);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 22px 55px rgba(31, 57, 122, 0.10);
}

.metric-card {
  min-height: 150px;
  padding: 28px;
}

.metric-card strong {
  color: #000;
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 950;
}

.metric-card small {
  display: inline-flex;
  border-radius: 999px;
  padding: 7px 16px;
  background: linear-gradient(180deg, #f1f4f8, #e8edf4);
  color: #263452;
  font-size: 16px;
}

.calendar-page .head-actions,
.head-actions {
  gap: 14px;
}

.calendar-main,
.task-panel,
.report-panel {
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.86);
}

.calendar-weekdays {
  border-radius: 18px 18px 0 0;
  background: #e9f0ff;
}

.calendar-grid {
  border-radius: 0 0 18px 18px;
}

.calendar-day {
  min-height: 118px;
  background: rgba(255, 255, 255, 0.9);
}

.calendar-day.selected {
  background: #fff2f9;
  box-shadow: inset 0 0 0 3px rgba(244, 63, 159, 0.18);
}

.task-dot {
  background: #dc5fa8;
}

.day-preview span.done,
.task-card.is-done p {
  color: #9aa4ba;
  text-decoration: line-through;
}

@media (max-width: 980px) {
  .entry-grid.three {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .app {
    width: min(100vw - 22px, 620px);
  }

  .brand-mark {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    font-size: 28px;
  }

  .brand strong {
    font-size: 28px;
  }

  .brand small {
    font-size: 15px;
  }

  .nav {
    gap: 8px;
    grid-template-columns: repeat(2, 1fr);
  }

  .nav a {
    min-height: 46px;
    padding: 0 10px;
    font-size: 16px;
  }

  .home-hero {
    grid-template-columns: 1fr;
    padding: 26px;
  }

  .home-hero .eyebrow {
    font-size: 18px;
  }

  .home-hero h1 {
    font-size: 50px;
  }

  .lead {
    font-size: 22px;
  }

  .entry-card {
    min-height: 220px;
    grid-template-columns: 1fr;
  }
}

/* Visual refresh inspired by the Molibar blue/pink mockups. */
:root {
  --ink: #050d34;
  --muted: #56627a;
  --blue: #006dff;
  --blue-deep: #0053e8;
  --pink: #f23a9b;
  --card: rgba(255, 255, 255, 0.9);
  --line: rgba(193, 205, 229, 0.72);
}

body {
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 83% 34%, rgba(245, 58, 155, 0.20), transparent 28%),
    radial-gradient(circle at 12% 22%, rgba(0, 109, 255, 0.14), transparent 24%),
    linear-gradient(180deg, #f8fbff 0%, #eef6ff 50%, #fff8fc 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.28)),
    repeating-linear-gradient(90deg, rgba(8, 45, 112, 0.035) 0 1px, transparent 1px 82px);
  pointer-events: none;
}

.app {
  width: min(1500px, calc(100vw - 76px));
  padding: 34px 0 82px;
}

.topbar {
  position: static;
  z-index: 5;
  gap: 28px;
  padding: 12px 0 46px;
  border-bottom: 0;
  background: transparent;
  backdrop-filter: none;
}

.brand {
  gap: 18px;
}

.brand-mark {
  width: 84px;
  height: 84px;
  border-radius: 30px;
  background: linear-gradient(145deg, #1382ff, #0058f0);
  box-shadow: 0 22px 48px rgba(0, 103, 255, 0.24);
  font-size: 42px;
  font-weight: 950;
}

.brand strong {
  color: #020a24;
  font-size: clamp(36px, 4vw, 50px);
  font-weight: 950;
  line-height: 0.95;
}

.brand small {
  margin-top: 10px;
  color: #526078;
  font-size: 22px;
  font-weight: 500;
}

.nav {
  gap: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.nav a {
  min-height: 68px;
  padding: 0 36px;
  border: 1px solid rgba(150, 165, 196, 0.62);
  border-radius: 999px;
  color: #07123a;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 34px rgba(27, 54, 111, 0.09), inset 0 1px 0 #fff;
  font-size: clamp(20px, 2.1vw, 30px);
  font-weight: 900;
}

.nav a.active {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  box-shadow: 0 18px 36px rgba(0, 98, 245, 0.28);
}

.home-hero {
  position: relative;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 440px);
  min-height: 560px;
  overflow: hidden;
  padding: 70px 74px;
  border: 0;
  border-radius: 38px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(244, 249, 255, 0.78)),
    radial-gradient(circle at 76% 68%, rgba(245, 58, 155, 0.30), transparent 28%),
    radial-gradient(circle at 64% 52%, rgba(0, 109, 255, 0.15), transparent 32%);
  box-shadow: 0 34px 90px rgba(39, 66, 125, 0.12);
}

.home-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -160px;
  width: 560px;
  height: 520px;
  border-radius: 48% 52% 42% 58%;
  background: linear-gradient(135deg, rgba(31, 126, 255, 0.30), rgba(246, 58, 159, 0.36));
  filter: blur(2px);
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: #071a59;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0;
}

.home-hero h1 {
  max-width: 760px;
  margin-top: 18px;
  color: #030b33;
  font-size: clamp(58px, 7vw, 104px);
  font-weight: 950;
  line-height: 1.04;
}

.lead {
  max-width: 720px;
  color: #35405c;
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.32;
}

.hero-actions {
  gap: 18px;
  margin-top: 42px;
}

.primary-link,
.secondary-link,
.primary-button,
.ghost-button,
.danger-button {
  min-height: 58px;
  border-radius: 999px;
  font-size: 20px;
  font-weight: 900;
}

.primary-link,
.primary-button {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--pink));
  box-shadow: 0 16px 34px rgba(0, 109, 255, 0.23);
}

.secondary-link,
.ghost-button {
  border-color: rgba(125, 144, 184, 0.62);
  color: #06123d;
  background: rgba(255, 255, 255, 0.88);
}

.hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.phone-frame {
  width: 276px;
  min-height: 420px;
  border: 14px solid #151d2e;
  border-radius: 46px;
  background: linear-gradient(180deg, #f7fbff, #fff6fb);
  box-shadow: 0 24px 48px rgba(16, 31, 64, 0.24);
}

.phone-frame::before {
  background: #202b32;
}

.mini-chart {
  height: 126px;
  border-radius: 16px;
  background: rgba(226, 236, 243, 0.74);
}

.mini-chart span {
  background: linear-gradient(180deg, #0d72ff, #f23a9b);
}

.phone-row {
  font-size: 20px;
}

.phone-row strong {
  font-size: 24px;
}

.phone-pill {
  min-height: 58px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), var(--pink));
  font-size: 20px;
}

.entry-grid {
  margin-top: 42px;
  gap: 34px;
}

.entry-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.entry-card {
  position: relative;
  min-height: 330px;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr auto;
  padding: 44px;
  border: 0;
  border-radius: 36px;
  background: var(--card);
  box-shadow: 0 30px 80px rgba(37, 61, 118, 0.13), inset 0 1px 0 #fff;
}

.entry-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: 36px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(219, 232, 255, 0.52));
}

.entry-icon {
  width: 112px;
  height: 112px;
  border-radius: 999px;
  font-size: 52px;
}

.entry-card h2 {
  color: #202a42;
  font-size: clamp(34px, 3.2vw, 48px);
  font-weight: 950;
}

.entry-card p {
  color: #7e8aa2;
  font-size: 20px;
  line-height: 1.45;
}

.entry-card strong {
  min-width: 130px;
  min-height: 62px;
  padding: 0 28px;
  color: #263247;
  background: linear-gradient(180deg, #f4f7fb, #e6ebf3);
  font-size: 24px;
}

.page-head {
  align-items: start;
  margin-bottom: 28px;
}

.page-head h1 {
  color: #030b33;
  font-size: clamp(52px, 6vw, 82px);
  line-height: 1.03;
}

.page-head p {
  color: #4d5a73;
  font-size: 22px;
}

.summary-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
}

.metric-card,
.panel,
.calendar-main,
.task-panel,
.report-panel,
.placeholder-panel {
  border: 0;
  border-radius: 32px;
  background: var(--card);
  box-shadow: 0 28px 72px rgba(37, 61, 118, 0.12), inset 0 1px 0 #fff;
}

.metric-card {
  min-height: 168px;
  padding: 30px;
}

.metric-card strong {
  color: #000;
  font-size: clamp(40px, 4.4vw, 62px);
  line-height: 1;
}

.metric-card small {
  margin-top: 20px;
  padding: 9px 18px;
  color: #263452;
  background: linear-gradient(180deg, #f2f5f8, #e6ebf1);
  font-size: 18px;
}

.progress-wrap {
  gap: 18px;
  margin: 28px 0 34px;
  color: #030b33;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 900;
}

.progress-bar {
  height: 14px;
  border-radius: 999px;
  background: #d8dde8;
  box-shadow: inset 0 1px 4px rgba(8, 20, 44, 0.12);
}

.progress-fill {
  background: linear-gradient(90deg, #2e394b, #71798b 72%, rgba(255, 255, 255, 0.25));
}

.panel h2,
.calendar-main h2,
.task-panel h2,
.report-panel h2 {
  color: var(--blue);
  font-size: 34px;
  font-weight: 950;
}

input,
textarea,
select {
  border-color: rgba(149, 164, 197, 0.55);
  border-radius: 18px;
  color: #07123a;
  background: rgba(255, 255, 255, 0.92);
  font-size: 18px;
}

table {
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.84);
}

th {
  color: #020a24;
  font-size: 23px;
  font-weight: 950;
}

td {
  font-size: 20px;
}

.calendar-page .page-head {
  grid-template-columns: minmax(0, 1fr) auto;
}

.calendar-page .head-actions {
  align-items: center;
  padding-top: 28px;
}

.calendar-layout {
  gap: 24px;
}

.calendar-main,
.task-panel,
.report-panel {
  padding: 28px;
}

.calendar-toolbar strong {
  color: #07123a;
  font-size: 30px;
  font-weight: 950;
}

.calendar-weekdays {
  overflow: hidden;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
  background: #eaf1ff;
}

.calendar-weekdays span {
  min-height: 58px;
  color: #2455b8;
  font-size: 22px;
  font-weight: 950;
}

.calendar-grid {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0 0 22px 22px;
}

.calendar-day {
  min-height: 126px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.9);
}

.calendar-day strong {
  color: #000;
  font-size: 22px;
}

.calendar-day.today {
  background: #fff4fa;
}

.calendar-day.selected {
  background: #fff0f8;
  box-shadow: inset 0 0 0 3px rgba(242, 58, 155, 0.20);
}

.task-dot {
  background: #d95ca9;
  box-shadow: 0 8px 18px rgba(217, 92, 169, 0.28);
}

.day-preview span {
  color: #43506a;
  font-size: 14px;
}

.day-preview span.done,
.task-card.is-done p {
  color: #9aa4b8;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(242, 58, 155, 0.72);
}

.task-card {
  border: 0;
  border-radius: 22px;
  background: rgba(246, 249, 255, 0.95);
  box-shadow: inset 0 1px 0 #fff;
}

.task-card.is-done {
  background: rgba(240, 243, 249, 0.78);
}

.task-status {
  border-radius: 999px;
}

.modal-content {
  border: 0;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 30px 90px rgba(20, 35, 78, 0.22);
}

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

#calendarBackupFile {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 1180px) {
  .app {
    width: min(100vw - 34px, 980px);
  }

  .topbar {
    align-items: flex-start;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 4px;
  }

  .nav a {
    flex: 0 0 auto;
    min-height: 58px;
    padding: 0 24px;
    font-size: 22px;
  }

  .home-hero {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    justify-content: flex-start;
  }

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

  .entry-grid.three {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .app {
    width: min(100vw - 22px, 620px);
    padding-top: 18px;
  }

  .topbar {
    padding-bottom: 24px;
  }

  .brand-mark {
    width: 62px;
    height: 62px;
    border-radius: 22px;
    font-size: 32px;
  }

  .brand strong {
    font-size: 32px;
  }

  .brand small {
    font-size: 16px;
  }

  .nav a {
    min-height: 46px;
    padding: 0 16px;
    font-size: 16px;
  }

  .home-hero {
    min-height: auto;
    padding: 30px 24px;
    border-radius: 28px;
  }

  .home-hero h1 {
    font-size: 52px;
  }

  .lead {
    font-size: 22px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .phone-frame {
    width: 230px;
    min-height: 350px;
  }

  .entry-card {
    min-height: 260px;
    padding: 30px;
    border-radius: 28px;
  }

  .entry-card h2 {
    font-size: 34px;
  }

  .page-head h1 {
    font-size: 48px;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

  .calendar-page .page-head {
    grid-template-columns: 1fr;
  }

  .calendar-page .head-actions {
    padding-top: 0;
  }

  .calendar-day {
    min-height: 96px;
    padding: 10px;
  }

  .migration-actions {
    grid-template-columns: 1fr;
  }
}

/* Scale the refreshed style back to a practical web-app proportion. */
.app {
  width: min(1240px, calc(100vw - 48px));
  padding: 24px 0 56px;
}

.topbar {
  padding: 8px 0 28px;
}

.brand {
  gap: 14px;
}

.brand-mark {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  font-size: 30px;
}

.brand strong {
  font-size: clamp(26px, 2.6vw, 34px);
}

.brand small {
  margin-top: 5px;
  font-size: 16px;
}

.nav {
  gap: 12px;
}

.nav a {
  min-height: 46px;
  padding: 0 22px;
  font-size: clamp(16px, 1.45vw, 20px);
}

.home-hero {
  grid-template-columns: minmax(0, 1fr) 320px;
  min-height: 390px;
  padding: 46px 52px;
  border-radius: 26px;
}

.home-hero::after {
  right: -110px;
  bottom: -210px;
  width: 430px;
  height: 400px;
}

.eyebrow {
  font-size: 17px;
}

.home-hero h1 {
  max-width: 560px;
  margin-top: 12px;
  font-size: clamp(42px, 4.8vw, 64px);
}

.lead {
  max-width: 560px;
  font-size: clamp(18px, 1.8vw, 23px);
}

.hero-actions {
  margin-top: 28px;
}

.primary-link,
.secondary-link,
.primary-button,
.ghost-button,
.danger-button {
  min-height: 46px;
  font-size: 16px;
}

.phone-frame {
  width: 210px;
  min-height: 310px;
  border-width: 10px;
  border-radius: 34px;
}

.mini-chart {
  height: 92px;
}

.phone-row {
  font-size: 16px;
}

.phone-row strong {
  font-size: 19px;
}

.phone-pill {
  min-height: 44px;
  font-size: 16px;
}

.entry-grid {
  margin-top: 26px;
  gap: 22px;
}

.entry-card {
  min-height: 210px;
  padding: 28px;
  border-radius: 24px;
}

.entry-card::after {
  border-radius: 24px;
}

.entry-icon {
  width: 70px;
  height: 70px;
  font-size: 32px;
}

.entry-card h2 {
  font-size: clamp(26px, 2.4vw, 32px);
}

.entry-card p {
  font-size: 16px;
}

.entry-card strong {
  min-width: 104px;
  min-height: 44px;
  padding: 0 20px;
  font-size: 18px;
}

.page-head {
  margin-bottom: 20px;
}

.page-head h1 {
  font-size: clamp(36px, 4vw, 52px);
}

.page-head p {
  font-size: 18px;
}

.summary-grid {
  gap: 16px;
}

.metric-card,
.panel,
.calendar-main,
.task-panel,
.report-panel,
.placeholder-panel {
  border-radius: 22px;
}

.metric-card {
  min-height: 122px;
  padding: 22px;
}

.metric-card strong {
  font-size: clamp(30px, 3.2vw, 42px);
}

.metric-card small {
  margin-top: 12px;
  padding: 6px 12px;
  font-size: 14px;
}

.progress-wrap {
  margin: 20px 0 24px;
  font-size: clamp(20px, 2.2vw, 28px);
}

.panel h2,
.calendar-main h2,
.task-panel h2,
.report-panel h2 {
  font-size: 26px;
}

input,
textarea,
select {
  border-radius: 14px;
  font-size: 16px;
}

th {
  font-size: 18px;
}

td {
  font-size: 16px;
}

.calendar-main,
.task-panel,
.report-panel {
  padding: 22px;
}

.calendar-toolbar strong {
  font-size: 24px;
}

.calendar-weekdays span {
  min-height: 46px;
  font-size: 17px;
}

.calendar-day {
  min-height: 104px;
  padding: 12px;
}

.calendar-day strong {
  font-size: 18px;
}

@media (max-width: 1180px) {
  .app {
    width: min(100vw - 30px, 980px);
  }

  .home-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .app {
    width: min(100vw - 20px, 620px);
    padding-top: 14px;
  }

  .topbar {
    padding-bottom: 20px;
  }

  .brand-mark {
    width: 50px;
    height: 50px;
    border-radius: 18px;
    font-size: 26px;
  }

  .brand strong {
    font-size: 26px;
  }

  .brand small {
    font-size: 14px;
  }

  .nav a {
    min-height: 40px;
    padding: 0 14px;
    font-size: 15px;
  }

  .home-hero {
    padding: 26px 22px;
    border-radius: 22px;
  }

  .home-hero h1 {
    font-size: 42px;
  }

  .lead {
    font-size: 18px;
  }

  .entry-card {
    min-height: 190px;
    padding: 24px;
  }

  .page-head h1 {
    font-size: 38px;
  }

  .calendar-day {
    min-height: 86px;
  }
}

/* Home clock and important dates module. */
.topbar {
  justify-content: flex-start;
}

.nav {
  display: none;
}

.home-hero {
  min-height: 300px;
  grid-template-columns: minmax(0, 1fr) 250px;
  padding: 30px 38px;
}

.time-card {
  width: min(360px, 100%);
  margin-bottom: 22px;
  padding: 18px 22px;
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.55), transparent 3px),
    radial-gradient(circle at 76% 28%, rgba(255, 255, 255, 0.45), transparent 2px),
    radial-gradient(circle at 54% 72%, rgba(255, 255, 255, 0.36), transparent 2px),
    linear-gradient(135deg, #d57896, #b95d8e 52%, #8b78d9);
  box-shadow: 0 20px 42px rgba(176, 77, 139, 0.22);
}

.time-card strong,
.time-card span {
  display: block;
  text-align: center;
}

.time-card strong {
  font-size: clamp(54px, 6vw, 84px);
  line-height: 0.95;
  font-weight: 950;
}

.time-card span {
  margin-top: 10px;
  font-size: 18px;
  font-weight: 700;
}

.home-hero h1 {
  font-size: clamp(34px, 3.7vw, 52px);
}

.lead {
  font-size: clamp(16px, 1.5vw, 20px);
}

.phone-frame {
  width: 180px;
  min-height: 260px;
}

.mini-chart {
  height: 70px;
}

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

.home-entry-grid .entry-card {
  min-height: 170px;
  padding: 22px;
}

.home-entry-grid .entry-icon {
  width: 58px;
  height: 58px;
  font-size: 26px;
}

.home-entry-grid .entry-card h2 {
  font-size: 24px;
}

.home-entry-grid .entry-card p {
  font-size: 14px;
  line-height: 1.45;
}

.home-entry-grid .entry-card strong {
  min-width: 84px;
  min-height: 38px;
  font-size: 15px;
}

.important-entry .entry-icon {
  background: linear-gradient(145deg, #9559ff, #f23a9b);
}

.important-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.important-form,
.important-list {
  display: grid;
  gap: 16px;
}

.lunar-date-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.important-card,
.important-empty {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 22px 56px rgba(37, 61, 118, 0.10), inset 0 1px 0 #fff;
}

.important-card {
  position: relative;
  overflow: hidden;
}

.important-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  background: linear-gradient(180deg, var(--blue), var(--pink));
}

.important-card.is-past::before {
  background: linear-gradient(180deg, #9aa4b8, #d9deea);
}

.important-card h2 {
  margin: 10px 0 8px;
  color: #07123a;
  font-size: 28px;
  font-weight: 950;
}

.important-card p {
  margin-bottom: 8px;
  color: #516079;
  font-size: 16px;
}

.important-card small {
  color: #8a94aa;
}

.important-count {
  min-width: 130px;
  padding: 16px;
  border-radius: 22px;
  text-align: center;
  background: linear-gradient(180deg, #f6f9ff, #edf2fa);
}

.important-count strong,
.important-count span,
.important-count em {
  display: block;
}

.important-count strong {
  color: var(--blue);
  font-size: 46px;
  line-height: 1;
  font-weight: 950;
}

.important-count span {
  color: #07123a;
  font-size: 18px;
  font-weight: 900;
}

.important-count em {
  margin-top: 8px;
  color: #7b8498;
  font-size: 13px;
  font-style: normal;
}

.important-card.is-past .important-count strong {
  color: #9aa4b8;
}

.important-card .task-actions {
  grid-column: 1 / -1;
}

.important-empty {
  grid-template-columns: 1fr;
  min-height: 220px;
  place-items: center;
  text-align: center;
}

.important-empty strong {
  color: #07123a;
  font-size: 26px;
}

@media (max-width: 1180px) {
  .home-entry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .important-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .home-hero {
    padding: 22px;
  }

  .time-card strong {
    font-size: 58px;
  }

  .time-card span {
    font-size: 15px;
  }

  .home-entry-grid {
    grid-template-columns: 1fr;
  }

  .home-entry-grid .entry-card {
    min-height: 150px;
  }

  .lunar-date-fields,
  .important-card {
    grid-template-columns: 1fr;
  }

  .important-count {
    width: 100%;
  }
}
