:root {
  --bg: #f5faff;
  --bg-deep: #eaf3fb;
  --panel: rgba(255, 255, 255, 0.64);
  --panel-strong: rgba(255, 255, 255, 0.9);
  --line: rgba(193, 199, 210, 0.15);
  --text: #141d22;
  --muted: #5f7389;
  --brand: #0061a4;
  --brand-strong: #73b6ff;
  --brand-deep: #00497d;
  --mint: #2e6385;
  --soft: #d1e4ff;
  --violet: #85b8de;
  --shadow: 0 4px 12px rgba(20, 29, 34, 0.04), 0 8px 24px rgba(20, 29, 34, 0.04), 0 16px 48px rgba(0, 97, 164, 0.06);
  --radius: 26px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Noto Sans TC", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(115, 182, 255, 0.14), transparent 28%),
    radial-gradient(circle at top right, rgba(46, 99, 133, 0.08), transparent 22%),
    linear-gradient(180deg, #f8fbff 0%, #f3f8fd 44%, #edf5fb 100%);
  overflow-x: hidden;
}

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

.ambient {
  position: fixed;
  inset: auto;
  border-radius: 999px;
  filter: blur(24px);
  pointer-events: none;
  opacity: 0.9;
}

.ambient-one {
  width: 32rem;
  height: 32rem;
  top: -10rem;
  left: -6rem;
  background: radial-gradient(circle, rgba(115, 182, 255, 0.22), transparent 65%);
}

.ambient-two {
  width: 28rem;
  height: 28rem;
  top: 8rem;
  right: -6rem;
  background: radial-gradient(circle, rgba(133, 184, 222, 0.22), transparent 65%);
}

.app-shell {
  position: relative;
  width: min(1360px, calc(100% - 24px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 18px;
  border-radius: 38px;
  background: rgba(255, 255, 255, 0.36);
  backdrop-filter: blur(24px);
  box-shadow: 0 20px 50px rgba(0, 97, 164, 0.08);
}

.dashboard-main {
  min-width: 0;
  padding-bottom: 96px;
}

.dashboard-main.is-feature-page {
  display: grid;
  align-content: start;
  gap: 18px;
}

.view-hidden {
  display: none !important;
}

.hidden {
  display: none !important;
}

.auth-view {
  min-height: calc(100vh - 64px);
  display: grid;
  place-items: center;
}

.auth-card,
.panel,
.overview-card,
.metric-pill,
.calendar-day {
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.48),
    var(--shadow);
}

.auth-card {
  width: min(460px, 100%);
  padding: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(236, 245, 253, 0.88));
}

.auth-head,
.auth-copy-block {
  display: grid;
  gap: 8px;
}

.auth-head {
  margin-bottom: 4px;
}

.auth-badge,
.hero-tag,
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(115, 182, 255, 0.14);
  color: var(--brand-deep);
  font-family: "Manrope", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-copy,
.muted,
.hero-description,
.calendar-subtext {
  color: var(--muted);
  line-height: 1.75;
}

.auth-copy-block strong {
  font-family: "Manrope", sans-serif;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.auth-tabs,
.overview-grid,
.dashboard-grid,
.settings-grid,
.button-grid,
.button-row,
.capsule-row,
.quadrant-grid,
.calendar-grid,
.pet-meters {
  display: grid;
  gap: 16px;
}

.auth-tabs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 24px 0 16px;
}

.auth-form,
.stack-form,
.task-form,
.voice-card {
  display: grid;
  gap: 14px;
}

.auth-divider {
  position: relative;
  margin: 18px 0 14px;
  text-align: center;
}

.auth-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(193, 199, 210, 0.32);
}

.auth-divider span {
  position: relative;
  display: inline-block;
  padding: 0 12px;
  background: rgba(245, 250, 255, 0.92);
  color: var(--muted);
  font-size: 0.84rem;
}

.google-auth-panel {
  display: grid;
  gap: 10px;
  justify-items: center;
}

.google-login-button {
  width: 100%;
  display: grid;
  justify-items: center;
}

.tab-button,
.primary-button,
.secondary-button,
.ghost-button,
.glass-button,
.chip-button {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 12px 18px;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.tab-button:hover,
.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.glass-button:hover,
.chip-button:hover {
  transform: translateY(-1px);
}

.tab-button,
.ghost-button,
.glass-button,
.chip-button {
  background: rgba(255, 255, 255, 0.62);
  color: var(--text);
  border: 1px solid rgba(193, 199, 210, 0.1);
  backdrop-filter: blur(16px);
}

.tab-button.is-active,
.primary-button {
  color: white;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%);
  box-shadow: 0 8px 20px rgba(0, 97, 164, 0.18);
}

.secondary-button {
  color: white;
  background: linear-gradient(135deg, #75d4e5 0%, #5bb8e7 100%);
  box-shadow: 0 10px 24px rgba(91, 184, 231, 0.2);
}

.glass-button {
  background: rgba(255, 255, 255, 0.58);
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

input,
textarea,
select {
  width: 100%;
  min-width: 0;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(193, 199, 210, 0.12);
  background: rgba(236, 245, 253, 0.84);
  color: var(--text);
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(115, 182, 255, 0.24);
  border-color: rgba(74, 149, 234, 0.42);
}

.hero-bar {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) 280px;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 20px;
  padding: 0;
}

.app-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  padding: 14px 18px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.52), 0 10px 24px rgba(0, 97, 164, 0.06);
}

.feature-shell {
  margin-bottom: 4px;
}

.feature-shell-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(232, 244, 255, 0.82));
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.54), 0 12px 28px rgba(0, 97, 164, 0.08);
}

.feature-back-button {
  white-space: nowrap;
}

.feature-shell-copy h2 {
  margin: 4px 0 6px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  letter-spacing: -0.03em;
}

.app-topbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-orb {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), transparent 38%),
    linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%);
  box-shadow: 0 10px 22px rgba(0, 97, 164, 0.18);
}

.app-topbar-brand strong,
.hero-pet-row strong {
  display: block;
  font-family: "Manrope", sans-serif;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.app-topbar-brand span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-topbar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-copy-block {
  max-width: none;
  padding: 28px;
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(215, 232, 249, 0.9), rgba(247, 251, 255, 0.88));
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.5),
    0 14px 34px rgba(0, 97, 164, 0.08);
}

.hero-copy-block h2,
.section-heading h3,
.section-heading h4 {
  margin: 0;
}

.hero-copy-block h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.section-heading h3 {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  letter-spacing: -0.02em;
}

.section-heading h4 {
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}

.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-description {
  max-width: 50ch;
}

.hero-action-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.hero-mini-stat,
.hero-side-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.48),
    0 12px 28px rgba(0, 97, 164, 0.08);
}

.hero-mini-stat {
  padding: 16px 18px;
}

.hero-mini-stat span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.hero-mini-stat strong {
  display: block;
  font-family: "Manrope", sans-serif;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.hero-side-card {
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(224, 239, 251, 0.82));
}

.hero-side-glow {
  position: absolute;
  inset: auto -20% -25% auto;
  width: 160px;
  height: 160px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(115, 182, 255, 0.42), transparent 65%);
  filter: blur(10px);
}

.hero-pet-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 10px 0 14px;
}

.hero-pet-avatar {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 2.4rem;
  box-shadow: inset 0 -6px 12px rgba(115, 182, 255, 0.12);
}

.sidebar {
  position: sticky;
  top: 20px;
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid transparent;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow);
}

.sidebar-brand {
  display: flex;
  gap: 14px;
  align-items: center;
}

.sidebar-logo {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(0, 97, 164, 0.12), rgba(115, 182, 255, 0.34));
  color: var(--brand);
  font-family: "Manrope", sans-serif;
  font-weight: 800;
}

.sidebar-badge {
  margin-bottom: 4px;
}

.sidebar-brand strong {
  display: block;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.sidebar-nav {
  display: grid;
  gap: 8px;
}

.sidebar-link {
  display: block;
  padding: 11px 14px;
  border-radius: 18px;
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid transparent;
  transition: transform 160ms ease, background 160ms ease;
}

.sidebar-link:hover {
  transform: translateX(3px);
  background: rgba(236, 245, 253, 0.92);
}

.sidebar-link.is-active {
  color: white;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%);
  box-shadow: 0 10px 24px rgba(0, 97, 164, 0.18);
}

.install-prompt-card {
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(115, 182, 255, 0.16);
  background: linear-gradient(180deg, rgba(115, 182, 255, 0.16), rgba(255, 255, 255, 0.82));
}

.sidebar-actions {
  display: grid;
  gap: 10px;
}

.sidebar-toggle,
.sidebar-backdrop {
  display: none;
}

.sidebar-toggle {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 40;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(115, 182, 255, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.sidebar-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--brand-deep);
  border-radius: 999px;
}

.overview-grid {
  grid-template-columns: 1.15fr repeat(3, minmax(0, 1fr));
  margin-bottom: 20px;
}

.notifications-strip {
  margin-bottom: 18px;
  padding: 6px 4px 0;
}

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

.notification-card {
  padding: 18px 18px 16px;
  border-radius: 24px;
  border: 1px solid transparent;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(232, 244, 255, 0.84));
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.5),
    0 12px 24px rgba(93, 140, 196, 0.08);
  backdrop-filter: blur(18px);
}

.notification-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.96rem;
}

.notification-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.92rem;
}

.overview-card {
  padding: 22px;
  background: rgba(255, 255, 255, 0.86);
}

.overview-card-tall {
  min-height: 170px;
}

.overview-card-soft {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(238, 245, 253, 0.88));
}

.overview-card span,
.metric-pill span,
.calendar-item-time,
.calendar-day-label,
.pet-status span {
  display: block;
  color: var(--muted);
}

.overview-card strong,
.metric-pill strong,
.pet-status strong,
.timer-ring strong,
.calendar-date-number {
  font-family: "Manrope", sans-serif;
}

.overview-card strong {
  display: block;
  margin-top: 12px;
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.overview-card small {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.overview-card-primary {
  background:
    linear-gradient(135deg, rgba(0, 97, 164, 0.12), rgba(115, 182, 255, 0.2));
}

.dashboard-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.app-dock {
  position: sticky;
  bottom: 18px;
  z-index: 6;
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
  padding: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(22px);
  box-shadow: 0 12px 28px rgba(0, 97, 164, 0.1);
}

.app-dock-link {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 12px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.app-dock-link:hover {
  transform: translateY(-1px);
  background: rgba(236, 245, 253, 0.92);
}

.app-dock-link.is-active {
  background: rgba(0, 97, 164, 0.1);
  color: var(--brand);
}

.app-dock-link-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%);
  color: white;
  box-shadow: 0 10px 20px rgba(0, 97, 164, 0.18);
}

.app-dock-link-primary.is-active {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%);
  color: white;
}

.dashboard-grid.is-focus-view > [data-view-section]:not(.view-hidden) {
  grid-column: 1 / -1;
}

.dashboard-grid.is-focus-view {
  grid-template-columns: minmax(0, 1fr);
}

.panel {
  padding: 24px;
  background: rgba(255, 255, 255, 0.56);
}

.panel-span-2 {
  grid-column: span 2;
}

.panel-hero {
  background:
    linear-gradient(180deg, rgba(236, 245, 253, 0.94), rgba(255, 255, 255, 0.56));
  min-height: 520px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.section-heading.compact {
  align-items: flex-start;
}

#home-section,
#weekly-records-section,
#goals-section,
#efficiency-section,
#habits-section,
#calendar-section,
#pomodoro-section,
#tasks-section,
#pet-section,
#meetups-section,
#social-reminder-section,
#weekly-report-section,
#settings-section {
  scroll-margin-top: 96px;
}

.capsule-row {
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  flex: 1;
}

.metric-pill {
  padding: 18px 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
}

.metric-pill strong {
  font-size: 1.18rem;
  letter-spacing: -0.03em;
}

.calendar-panel {
  margin-top: 18px;
  padding: 18px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.44);
}

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

.event-list,
.simple-list,
.task-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.event-list,
.simple-list {
  display: grid;
  gap: 12px;
}

.event-item,
.list-item,
.task-item,
.note-box,
.calendar-item {
  border-radius: 20px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.42);
}

.event-item,
.list-item,
.task-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
}

.meta {
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.94rem;
}

.pet-panel {
  overflow: hidden;
}

.pet-stage {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  margin-top: 4px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(236, 245, 253, 0.96), rgba(219, 228, 235, 0.72));
}

.pet-avatar {
  width: 92px;
  height: 92px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  font-size: 3rem;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: inset 0 -8px 16px rgba(115, 182, 255, 0.12);
}

.pet-avatar.is-celebrating {
  animation: petBounce 680ms ease;
}

.pet-meters {
  margin-top: 18px;
}

.meter-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--muted);
}

.meter-bar {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(115, 182, 255, 0.14);
}

.meter-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8ed6ff, #6bc0ff);
  transition: width 220ms ease;
}

.meter-fill.accent {
  background: linear-gradient(90deg, #8db4ff, #73b6ff);
}

.pet-actions {
  margin-top: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pet-config-grid,
.goal-form,
.goal-progress-grid,
.pomodoro-stats-grid,
.weekly-report-grid {
  display: grid;
  gap: 16px;
}

.pet-config-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
}

.pet-species-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.pet-species-chip {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(115, 182, 255, 0.1);
  color: var(--brand-deep);
  font-size: 0.88rem;
}

.pet-species-chip.is-active {
  color: white;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%);
}

.calendar-title {
  min-width: 8ch;
  text-align: center;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  color: var(--brand-deep);
  font-size: 1rem;
}

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

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

.weekly-record-card {
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid transparent;
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.4);
}

.weekly-record-card strong {
  display: block;
  margin: 6px 0 4px;
  font-family: "Manrope", sans-serif;
}

.efficiency-grid,
.habits-grid {
  display: grid;
  gap: 16px;
}

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

.efficiency-column {
  display: grid;
  gap: 16px;
  align-content: start;
}

.focus-summary-card {
  padding: 18px;
  border-radius: 24px;
  border: 1px solid transparent;
  background: linear-gradient(180deg, rgba(236, 245, 253, 0.92), rgba(255, 255, 255, 0.78));
}

.focus-summary-card > span {
  display: block;
  margin-bottom: 12px;
  color: var(--brand-deep);
  font-family: "Manrope", sans-serif;
  font-weight: 700;
}

.compact-list {
  margin-top: 0;
}

.compact-list .list-item {
  padding: 12px 14px;
}

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

.habit-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid transparent;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(236, 245, 253, 0.82));
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.42), 0 8px 24px rgba(0, 97, 164, 0.05);
}

.habit-card.is-done {
  background: linear-gradient(180deg, rgba(115, 182, 255, 0.18), rgba(255, 255, 255, 0.84));
}

.habit-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.habit-meta span {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(115, 182, 255, 0.12);
  color: var(--brand-deep);
  font-size: 0.88rem;
}

.goal-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
}

.goal-form textarea,
.goal-form .weekday-picker,
.goal-form button {
  grid-column: span 3;
}

.weekday-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid transparent;
  background: rgba(236, 245, 253, 0.76);
}

.weekday-picker label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(115, 182, 255, 0.1);
}

.weekday-picker input {
  width: auto;
}

.goals-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.goal-card {
  padding: 18px;
  border-radius: 24px;
  border: 1px solid transparent;
  background: linear-gradient(180deg, rgba(236, 245, 253, 0.92), rgba(255, 255, 255, 0.84));
}

.goal-card-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.goal-progress-grid,
.pomodoro-stats-grid,
.weekly-report-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 14px;
}

.goal-progress-chip {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid transparent;
}

.goal-progress-chip span {
  display: block;
  color: var(--muted);
}

.goal-progress-chip strong {
  display: block;
  margin-top: 6px;
  font-family: "Manrope", sans-serif;
}

.calendar-weekday {
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  padding-bottom: 4px;
}

.calendar-day {
  min-height: 150px;
  padding: 12px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.74);
}

.calendar-day.is-outside {
  opacity: 0.48;
}

.calendar-day.is-today {
  background: linear-gradient(180deg, rgba(115, 182, 255, 0.24), rgba(255, 255, 255, 0.72));
}

.calendar-day-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.calendar-date-number {
  font-size: 1.05rem;
  font-weight: 800;
}

.calendar-day-list {
  display: grid;
  gap: 8px;
}

.calendar-item {
  padding: 8px 10px;
}

.calendar-item.task {
  border-left: 4px solid var(--brand-strong);
}

.calendar-item.meetup {
  border-left: 4px solid var(--mint);
}

.calendar-item.google {
  border-left: 4px solid var(--violet);
}

.calendar-item-title {
  font-size: 0.88rem;
  line-height: 1.35;
}

.timer-shell {
  display: grid;
  place-items: center;
  padding: 10px 0 24px;
}

.timer-ring {
  width: min(280px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  cursor: pointer;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.98) 0 55%, transparent 56%),
    conic-gradient(var(--brand) 0deg, rgba(219, 228, 235, 0.78) 0deg);
  box-shadow:
    inset 0 0 0 18px rgba(255, 255, 255, 0.88),
    0 8px 24px rgba(20, 29, 34, 0.04),
    0 16px 48px rgba(0, 97, 164, 0.08);
}

.timer-ring strong {
  font-size: clamp(2rem, 5vw, 3rem);
}

.timer-ring span {
  margin-top: -42px;
  color: var(--muted);
}

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

.button-grid-inline {
  margin-top: 14px;
}

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

.note-box {
  padding: 14px 16px;
}

.note-box.is-listening {
  background: rgba(115, 182, 255, 0.18);
  color: var(--brand-deep);
}

.task-form {
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) auto;
}

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

.quadrant-card {
  border-radius: 24px;
  padding: 20px;
  min-height: 250px;
  border: 1px solid transparent;
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.42);
}

.quadrant-card.do {
  background: linear-gradient(180deg, rgba(115, 182, 255, 0.16), rgba(255, 255, 255, 0.56));
}

.quadrant-card.schedule {
  background: linear-gradient(180deg, rgba(166, 225, 255, 0.2), rgba(255, 255, 255, 0.56));
}

.quadrant-card.delegate {
  background: linear-gradient(180deg, rgba(105, 200, 209, 0.18), rgba(255, 255, 255, 0.56));
}

.quadrant-card.delete {
  background: linear-gradient(180deg, rgba(151, 167, 255, 0.16), rgba(255, 255, 255, 0.56));
}

.quadrant-card h4 {
  margin: 0 0 6px;
}

.task-item.is-complete {
  animation: taskGlow 780ms ease;
}

.task-item-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.task-item button,
.list-item button {
  border: 0;
  background: transparent;
  color: var(--brand-deep);
  cursor: pointer;
}

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

.inline-check input {
  width: auto;
}

.task-burst-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 20;
}

.burst-item {
  position: fixed;
  font-size: 1.3rem;
  animation: burstFloat 1100ms ease forwards;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: min(320px, calc(100% - 32px));
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 24px rgba(20, 29, 34, 0.08), 0 16px 40px rgba(0, 97, 164, 0.08);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 30;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes burstFloat {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.7);
  }
  16% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(var(--burst-x), var(--burst-y)) scale(1.25) rotate(16deg);
  }
}

@keyframes taskGlow {
  0% {
    box-shadow: 0 0 0 rgba(115, 182, 255, 0);
  }
  40% {
    box-shadow: 0 0 0 8px rgba(115, 182, 255, 0.15);
  }
  100% {
    box-shadow: 0 0 0 rgba(115, 182, 255, 0);
  }
}

@keyframes petBounce {
  0%, 100% {
    transform: translateY(0);
  }
  25% {
    transform: translateY(-12px) rotate(-4deg);
  }
  50% {
    transform: translateY(2px) rotate(4deg);
  }
  75% {
    transform: translateY(-6px);
  }
}

@media (max-width: 1180px) {
  .hero-bar,
  .overview-grid,
  .dashboard-grid,
  .capsule-row,
  .quadrant-grid,
  .settings-grid,
  .task-form,
  .calendar-grid,
  .weekly-records-grid,
  .efficiency-grid,
  .habits-grid,
  .goal-form,
  .goal-progress-grid,
  .pomodoro-stats-grid,
  .weekly-report-grid,
  .pet-config-grid,
  .notifications-list {
    grid-template-columns: 1fr;
  }

  .panel-span-2 {
    grid-column: span 1;
  }

  .dashboard-layout {
    grid-template-columns: 1fr;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  .sidebar {
    position: static;
  }

  .calendar-grid .calendar-weekday {
    display: none;
  }
}

@media (max-width: 860px) {
  body.sidebar-open {
    overflow: hidden;
  }

  .app-shell {
    width: min(100% - 16px, 100%);
    padding-bottom: 24px;
  }

  .auth-card,
  .panel,
  .overview-card {
    padding: 18px;
    border-radius: 24px;
  }

  .hero-bar,
  .section-heading {
    display: grid;
  }

  .app-topbar {
    display: grid;
    grid-template-columns: 1fr;
  }

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

  .sidebar-toggle,
  .sidebar-backdrop {
    display: block;
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 33, 54, 0.24);
    z-index: 35;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
  }

  .sidebar-backdrop.is-visible {
    opacity: 1;
    pointer-events: auto;
  }

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

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(82vw, 320px);
    border-radius: 0 28px 28px 0;
    transform: translateX(-102%);
    transition: transform 220ms ease;
    z-index: 36;
    overflow-y: auto;
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .dashboard-main {
    padding-top: 54px;
    padding-bottom: 110px;
  }

  .topbar-actions,
  .button-grid,
  .voice-actions,
  .pet-actions {
    grid-template-columns: 1fr;
  }

  .topbar-actions {
    display: grid;
  }

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

  .app-dock {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    margin-top: 0;
    justify-content: space-between;
    gap: 6px;
  }

  .app-dock-link {
    flex: 1;
    padding: 12px 10px;
    font-size: 0.86rem;
  }

  .task-item,
  .list-item,
  .event-item {
    flex-direction: column;
  }

  .task-item-controls {
    justify-content: flex-start;
  }

  .calendar-day {
    min-height: 0;
  }

  .habit-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .goal-form textarea,
  .goal-form .weekday-picker,
  .goal-form button {
    grid-column: span 1;
  }
}

@media (max-width: 520px) {
  .hero-copy-block h2 {
    max-width: none;
  }

  .pet-stage {
    grid-template-columns: 1fr;
    display: grid;
    justify-items: center;
    text-align: center;
  }

  .calendar-item-title,
  .calendar-item-time {
    font-size: 0.82rem;
  }
}
