:root {
  color-scheme: dark;
  --text: #f8fbff;
  --soft-text: rgba(248, 251, 255, 0.72);
  --muted-text: rgba(248, 251, 255, 0.56);
  --panel: rgba(255, 255, 255, 0.024);
  --panel-strong: rgba(255, 255, 255, 0.07);
  --panel-line: rgba(255, 255, 255, 0.38);
  --shadow: rgba(20, 25, 38, 0.24);
  --deep-shadow: rgba(8, 12, 18, 0.44);
  --accent: #9de7ff;
  --accent-strong: #62d2ff;
  --green: #89f0c0;
  --coral: #ffb29a;
  --gold: #ffe19b;
  --danger: #ff9d9d;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #101827;
}

body {
  min-height: 100vh;
  margin: 0;
  color: #f8fbff;
  color: var(--text);
  background-color: #101827;
  background-image:
    linear-gradient(135deg, rgba(9, 16, 28, 0.2), rgba(24, 28, 38, 0.06)),
    url("assets/liquid-glass-bg.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body:before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 225, 155, 0.18), transparent 26rem),
    radial-gradient(circle at 92% 100%, rgba(137, 240, 192, 0.13), transparent 24rem),
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px);
  background-size: auto, auto, 100% 5px;
  mix-blend-mode: screen;
}

body.theme-dark {
  --text: #f4f8ff;
  --soft-text: rgba(244, 248, 255, 0.7);
  --muted-text: rgba(244, 248, 255, 0.5);
  --panel: rgba(5, 10, 22, 0.34);
  --panel-strong: rgba(10, 18, 36, 0.42);
  --panel-line: rgba(177, 206, 255, 0.26);
  --shadow: rgba(0, 0, 0, 0.42);
  --accent: #8fd8ff;
  --accent-strong: #5ec6ff;
  --green: #6ee7b7;
  --coral: #ff9cba;
  --gold: #f8d978;
  background-color: #030713;
  background-image:
    linear-gradient(135deg, rgba(0, 4, 14, 0.74), rgba(4, 12, 28, 0.5)),
    url("assets/liquid-glass-bg.png");
}

body.theme-dark:before {
  background:
    radial-gradient(circle at 8% 0%, rgba(130, 185, 255, 0.18), transparent 24rem),
    radial-gradient(circle at 92% 100%, rgba(118, 255, 214, 0.1), transparent 23rem),
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  opacity: 0.88;
}

button,
input {
  font: inherit;
}

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

button:focus,
input:focus {
  outline: 2px solid rgba(157, 231, 255, 0.7);
  outline-offset: 3px;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.app-shell {
  width: calc(100% - 28px);
  max-width: 1180px;
  width: min(1180px, calc(100% - 28px));
  min-height: 100vh;
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) 0 max(18px, env(safe-area-inset-bottom));
}

.glass-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-color: var(--panel-line);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.008) 42%, rgba(255, 255, 255, 0.038)),
    rgba(255, 255, 255, 0.024);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.008) 42%, rgba(255, 255, 255, 0.038)),
    var(--panel);
  box-shadow:
    0 24px 80px rgba(20, 25, 38, 0.24),
    0 4px 18px rgba(8, 12, 18, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1);
  box-shadow:
    0 24px 80px var(--shadow),
    0 4px 18px rgba(8, 12, 18, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(9px) saturate(220%) contrast(116%);
  backdrop-filter: blur(9px) saturate(220%) contrast(116%);
}

.glass-panel:after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.22), transparent 18%, transparent 68%, rgba(255, 255, 255, 0.1)),
    radial-gradient(circle at 24% 0%, rgba(255, 255, 255, 0.12), transparent 12rem);
  opacity: 0.68;
}

.hero-panel {
  min-height: 220px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
}

.hero-copy,
.hero-side,
.weather-card > *,
.quote-card > *,
.todo-card > *,
.reminder-card > *,
.status-card > * {
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-kicker {
  margin: 0 0 6px;
  color: rgba(248, 251, 255, 0.66);
  color: var(--soft-text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 6px;
  font-size: 96px;
  font-size: clamp(72px, 12vw, 132px);
  line-height: 0.9;
  font-weight: 800;
  letter-spacing: 0;
}

.date-line {
  margin-bottom: 0;
  color: rgba(248, 251, 255, 0.76);
  color: var(--soft-text);
  font-size: 25px;
  font-size: clamp(20px, 2.6vw, 31px);
  font-weight: 600;
}

.clock-suffix {
  display: inline-block;
  margin-left: 8px;
  font-size: 0.38em;
  line-height: 1;
  vertical-align: baseline;
  font-weight: 760;
}

.hero-side {
  width: min(280px, 34%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  text-align: right;
  gap: 16px;
  color: rgba(248, 251, 255, 0.82);
}

.focus-orb {
  width: 116px;
  height: 116px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.075) 36%, rgba(255, 255, 255, 0.018) 68%),
    linear-gradient(145deg, rgba(157, 231, 255, 0.16), rgba(255, 178, 154, 0.08));
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.5),
    inset 0 -14px 34px rgba(62, 96, 126, 0.22),
    0 18px 40px rgba(9, 18, 32, 0.26);
}

.orb-icon {
  width: 58px;
  height: 58px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-side p {
  max-width: 220px;
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 16px;
  margin-top: 16px;
}

.weather-card,
.quote-card,
.todo-card,
.reminder-card,
.status-card {
  min-height: 230px;
  padding: 22px;
}

.weather-card {
  grid-row: span 2;
}

.todo-card,
.reminder-card {
  min-height: 320px;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.panel-heading h2 {
  margin: 0;
  font-size: 25px;
  line-height: 1.05;
  font-weight: 760;
}

.icon-button {
  width: 44px;
  min-width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #f8fbff;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.012)),
    rgba(255, 255, 255, 0.018);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    0 10px 20px rgba(8, 12, 18, 0.16);
  cursor: pointer;
}

.icon-button.filled {
  border-color: rgba(157, 231, 255, 0.54);
  background:
    linear-gradient(145deg, rgba(157, 231, 255, 0.66), rgba(137, 240, 192, 0.5)),
    rgba(157, 231, 255, 0.42);
  color: #0c1f2a;
}

.icon-button:active {
  transform: scale(0.96);
}

.icon {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle {
  position: relative;
}

.theme-toggle .icon {
  position: absolute;
  transition: opacity 180ms ease, transform 180ms ease;
}

.theme-icon-moon {
  opacity: 0;
  transform: scale(0.72) rotate(-18deg);
}

body.theme-dark .theme-icon-sun {
  opacity: 0;
  transform: scale(0.72) rotate(18deg);
}

body.theme-dark .theme-icon-moon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.weather-now {
  position: relative;
  min-height: 168px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.weather-now:before {
  content: "";
  position: absolute;
  inset: -18px -10px -12px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 18% 26%, rgba(255, 220, 91, 0.34), transparent 8rem),
    radial-gradient(circle at 70% 18%, rgba(99, 194, 255, 0.22), transparent 9rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0));
  opacity: 0.9;
  pointer-events: none;
}

.weather-card.weather-theme-cloud .weather-now:before {
  background:
    radial-gradient(circle at 20% 28%, rgba(211, 230, 255, 0.34), transparent 8rem),
    radial-gradient(circle at 78% 20%, rgba(134, 186, 235, 0.28), transparent 9rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0));
}

.weather-card.weather-theme-rain .weather-now:before,
.weather-card.weather-theme-storm .weather-now:before {
  background:
    radial-gradient(circle at 20% 28%, rgba(82, 178, 255, 0.32), transparent 8rem),
    radial-gradient(circle at 78% 18%, rgba(94, 105, 222, 0.28), transparent 9rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0));
}

.weather-card.weather-theme-fog .weather-now:before,
.weather-card.weather-theme-snow .weather-now:before {
  background:
    radial-gradient(circle at 20% 28%, rgba(222, 247, 255, 0.38), transparent 8rem),
    radial-gradient(circle at 78% 18%, rgba(178, 219, 255, 0.26), transparent 9rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
}

.weather-mark {
  position: relative;
  z-index: 1;
  width: 126px;
  height: 126px;
  display: grid;
  place-items: center;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.025) 62%, rgba(255, 255, 255, 0) 72%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 10px 22px rgba(9, 18, 32, 0.12);
  color: #122334;
  font-weight: 800;
}

.weather-mark .weather-icon {
  width: 108px;
  height: 108px;
}

.weather-icon {
  display: block;
  width: 64px;
  height: 64px;
}

.weather-symbol {
  overflow: visible;
  filter: drop-shadow(0 2px 3px rgba(20, 30, 44, 0.12));
}

.weather-mark .weather-symbol {
  width: 88px;
  height: 88px;
}

.forecast-day .weather-symbol {
  width: 42px;
  height: 42px;
}

.symbol-sun circle {
  fill: #ffcc24;
}

.symbol-sun path {
  fill: none;
  stroke: #ffcc24;
  stroke-width: 3.4;
  stroke-linecap: round;
}

.symbol-cloud path {
  fill: #c4c5c7;
}

.weather-symbol-partly .symbol-partly-sun {
  transform: translate(8px, -8px) scale(0.78);
  transform-origin: 32px 32px;
}

.weather-symbol-partly .symbol-cloud {
  transform: translate(-2px, 7px) scale(0.92);
  transform-origin: 32px 32px;
}

.weather-symbol-cloud .symbol-cloud path,
.weather-symbol-fog .symbol-cloud path {
  fill: #bfc0c2;
}

.weather-symbol-rain .symbol-cloud path,
.weather-symbol-storm .symbol-cloud path,
.weather-symbol-snow .symbol-cloud path {
  fill: #b4b5b8;
}

.symbol-rain path {
  fill: none;
  stroke: #22c7ee;
  stroke-width: 3.2;
  stroke-linecap: round;
}

.symbol-bolt {
  fill: #ffcc24;
}

.symbol-snow path,
.symbol-fog path {
  fill: none;
  stroke: #bfc0c2;
  stroke-width: 3.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.weather-symbol-snow .symbol-snow path {
  stroke: #d9edf6;
}

.weather-symbol-sun .symbol-cloud,
.weather-symbol-sun .symbol-rain,
.weather-symbol-partly .symbol-rain {
  display: none;
}

.temperature {
  margin: 0;
  font-size: 78px;
  font-size: clamp(64px, 8vw, 92px);
  line-height: 0.92;
  font-weight: 800;
}

.muted {
  margin: 8px 0 0;
  color: rgba(248, 251, 255, 0.64);
  color: var(--soft-text);
  font-size: 16px;
}

.location-form,
.entry-form,
.reminder-form {
  display: flex;
  align-items: center;
  gap: 10px;
}

.location-form {
  margin-top: 4px;
}

input {
  min-width: 0;
  width: 100%;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #f8fbff;
  background: rgba(255, 255, 255, 0.016);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  padding: 0 16px;
}

input::placeholder {
  color: rgba(248, 251, 255, 0.52);
}

input[type="time"] {
  max-width: 132px;
  color-scheme: dark;
}

.location-form input,
.entry-form input {
  height: 48px;
}

.reminder-form input:first-child {
  flex: 1;
}

.forecast-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.forecast-day {
  position: relative;
  overflow: hidden;
  min-height: 92px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  padding: 12px 10px;
  background: rgba(255, 255, 255, 0.014);
  text-align: center;
}

.forecast-day:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 224, 104, 0.28), transparent 3rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent);
  opacity: 0.9;
  pointer-events: none;
}

.forecast-rain:before,
.forecast-storm:before {
  background:
    radial-gradient(circle at 50% 24%, rgba(75, 177, 255, 0.3), transparent 3rem),
    linear-gradient(180deg, rgba(132, 130, 255, 0.12), transparent);
}

.forecast-cloud:before,
.forecast-fog:before,
.forecast-snow:before {
  background:
    radial-gradient(circle at 50% 24%, rgba(214, 240, 255, 0.26), transparent 3rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent);
}

.forecast-day strong,
.forecast-day span,
.forecast-day small {
  position: relative;
  z-index: 1;
  display: block;
}

.forecast-day strong {
  font-size: 12px;
  color: rgba(248, 251, 255, 0.66);
  text-transform: uppercase;
}

.forecast-day span {
  min-height: 30px;
  margin: 5px 0;
  font-size: 26px;
  font-weight: 760;
}

.forecast-day .weather-icon {
  width: 34px;
  height: 34px;
  margin: 4px auto;
}

.forecast-day small {
  color: rgba(248, 251, 255, 0.62);
}

.skeleton {
  opacity: 0.55;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.035));
  background-size: 220% 100%;
  animation: shimmer 1.8s infinite linear;
}

@keyframes shimmer {
  from {
    background-position: 220% 0;
  }
  to {
    background-position: -220% 0;
  }
}

blockquote {
  margin: 20px 0 4px;
  font-size: 38px;
  font-size: clamp(31px, 4vw, 48px);
  line-height: 1.04;
  font-weight: 780;
}

.item-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 150px;
  max-height: 292px;
  margin: 16px 0 0;
  padding: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 9px 10px 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.015);
}

.list-item.done .item-text {
  color: rgba(248, 251, 255, 0.44);
  text-decoration: line-through;
}

.item-text {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 17px;
  font-weight: 650;
}

.item-meta {
  min-width: 66px;
  color: rgba(248, 251, 255, 0.58);
  font-size: 14px;
  font-weight: 700;
  text-align: right;
}

.check-button {
  width: 40px;
  min-width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: rgba(248, 251, 255, 0.82);
  background: rgba(255, 255, 255, 0.015);
  cursor: pointer;
}

.list-item.done .check-button {
  color: #092318;
  background: linear-gradient(145deg, #89f0c0, #9de7ff);
}

.empty-state {
  min-height: 150px;
  display: grid;
  place-items: center;
  color: rgba(248, 251, 255, 0.56);
  text-align: center;
  font-weight: 650;
}

.counter-pill {
  min-width: 44px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: rgba(248, 251, 255, 0.76);
  background: rgba(255, 255, 255, 0.015);
  text-align: center;
  font-weight: 760;
}

.progress-track {
  height: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.015);
}

.progress-track span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #9de7ff, #89f0c0 52%, #ffe19b);
  box-shadow: 0 0 24px rgba(157, 231, 255, 0.34);
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.metric-row div {
  min-height: 86px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.015);
  padding: 12px;
}

.metric-row span {
  display: block;
  overflow-wrap: anywhere;
  font-size: 29px;
  line-height: 1.1;
  font-weight: 800;
}

.metric-row p {
  margin: 4px 0 0;
  color: rgba(248, 251, 255, 0.58);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

body.theme-dark .glass-panel {
  border-color: rgba(177, 206, 255, 0.26);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(54, 89, 145, 0.035) 42%, rgba(255, 255, 255, 0.03)),
    rgba(5, 10, 22, 0.34);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.42),
    0 4px 18px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(215, 232, 255, 0.24),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(14px) saturate(170%) contrast(116%) brightness(78%);
  backdrop-filter: blur(14px) saturate(170%) contrast(116%) brightness(78%);
}

body.theme-dark .glass-panel:after {
  background:
    linear-gradient(115deg, rgba(210, 230, 255, 0.16), transparent 18%, transparent 70%, rgba(136, 194, 255, 0.1)),
    radial-gradient(circle at 24% 0%, rgba(181, 216, 255, 0.1), transparent 12rem);
  opacity: 0.6;
}

body.theme-dark .focus-orb,
body.theme-dark .weather-mark {
  background:
    radial-gradient(circle at 38% 30%, rgba(185, 216, 255, 0.16), rgba(45, 70, 112, 0.12) 55%, rgba(2, 8, 20, 0.02) 72%);
}

body.theme-dark .focus-orb {
  color: #dbe8ff;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.2),
    inset 0 -14px 34px rgba(4, 12, 30, 0.28),
    0 14px 34px rgba(0, 0, 0, 0.24);
}

body.theme-dark .icon-button {
  border-color: rgba(185, 216, 255, 0.22);
  background:
    linear-gradient(145deg, rgba(195, 220, 255, 0.08), rgba(255, 255, 255, 0.01)),
    rgba(8, 16, 34, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 10px 24px rgba(0, 0, 0, 0.22);
}

body.theme-dark .icon-button.filled {
  border-color: rgba(112, 207, 255, 0.42);
  background:
    linear-gradient(145deg, rgba(112, 207, 255, 0.44), rgba(92, 229, 190, 0.28)),
    rgba(10, 24, 48, 0.36);
  color: #eaffff;
}

body.theme-dark input,
body.theme-dark .forecast-day,
body.theme-dark .list-item,
body.theme-dark .check-button,
body.theme-dark .counter-pill,
body.theme-dark .progress-track,
body.theme-dark .metric-row div {
  border-color: rgba(185, 216, 255, 0.16);
  background: rgba(4, 12, 28, 0.22);
}

body.theme-dark input::placeholder {
  color: rgba(244, 248, 255, 0.44);
}

body.theme-dark .weather-now:before {
  background:
    radial-gradient(circle at 18% 26%, rgba(255, 203, 84, 0.14), transparent 8rem),
    radial-gradient(circle at 72% 20%, rgba(88, 178, 255, 0.18), transparent 9rem),
    linear-gradient(135deg, rgba(118, 171, 255, 0.045), rgba(255, 255, 255, 0));
}

body.theme-dark .forecast-day:before {
  opacity: 0.52;
}

body.theme-dark .progress-track span {
  background: linear-gradient(90deg, #67d5ff, #65e6b8 52%, #f7d76c);
  box-shadow: 0 0 24px rgba(103, 213, 255, 0.26);
}

body.theme-dark .symbol-cloud path {
  fill: #aeb3bb;
}

body.theme-dark .symbol-sun circle {
  fill: #ffd65a;
}

body.theme-dark .symbol-sun path {
  stroke: #ffd65a;
}

@media (min-width: 901px) and (orientation: landscape) {
  html,
  body {
    height: 100%;
    overflow: hidden;
  }

  body {
    background-attachment: fixed;
  }

  .app-shell {
    width: calc(100% - 24px);
    max-width: none;
    height: 100vh;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(260px, 0.88fr) minmax(340px, 1.14fr) minmax(270px, 0.94fr);
    grid-template-rows: minmax(174px, 0.82fr) minmax(0, 1.12fr) minmax(0, 1fr);
    gap: 14px;
    padding: max(12px, env(safe-area-inset-top)) 0 max(12px, env(safe-area-inset-bottom));
  }

  .dashboard-grid {
    display: contents;
    margin-top: 0;
  }

  .hero-panel,
  .weather-card,
  .quote-card,
  .todo-card,
  .reminder-card,
  .status-card {
    min-height: 0;
    padding: 18px;
  }

  .hero-panel {
    grid-column: 1;
    grid-row: 1;
    display: block;
  }

  .weather-card {
    grid-column: 1;
    grid-row: 2 / 4;
    display: flex;
    flex-direction: column;
  }

  .todo-card {
    grid-column: 2;
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
  }

  .reminder-card {
    grid-column: 2;
    grid-row: 3;
    display: flex;
    flex-direction: column;
  }

  .quote-card {
    grid-column: 3;
    grid-row: 1;
  }

  .status-card {
    grid-column: 3;
    grid-row: 2 / 4;
  }

  h1 {
    font-size: 58px;
  }

  .date-line {
    font-size: 18px;
  }

  .clock-suffix {
    margin-left: 4px;
    font-size: 0.36em;
  }

  .hero-side {
    position: absolute;
    top: 18px;
    right: 18px;
    width: auto;
    align-items: center;
    gap: 7px;
    text-align: center;
  }

  .focus-orb {
    width: 58px;
    height: 58px;
  }

  .orb-icon {
    width: 30px;
    height: 30px;
  }

  .hero-side p {
    max-width: 76px;
    font-size: 14px;
    line-height: 1.1;
  }

  .panel-heading {
    margin-bottom: 12px;
  }

  .panel-heading h2 {
    font-size: 22px;
  }

  .eyebrow,
  .section-kicker {
    font-size: 12px;
  }

  .icon-button {
    width: 42px;
    min-width: 42px;
    height: 42px;
  }

  input {
    height: 42px;
  }

  .weather-now {
    min-height: 0;
    flex: 1;
    gap: 14px;
  }

  .weather-mark {
    width: 94px;
    height: 94px;
    border-radius: 28px;
  }

  .weather-icon {
    width: 58px;
    height: 58px;
  }

  .temperature {
    font-size: 62px;
  }

  .forecast-strip {
    gap: 8px;
    margin-top: 14px;
  }

  .forecast-day {
    min-height: 76px;
    border-radius: 18px;
    padding: 9px 6px;
  }

  .forecast-day strong {
    font-size: 10px;
  }

  .forecast-day .weather-icon {
    width: 34px;
    height: 34px;
  }

  .forecast-day .weather-symbol {
    width: 42px;
    height: 42px;
  }

  .forecast-day small {
    font-size: 11px;
  }

  blockquote {
    margin-top: 12px;
    font-size: 30px;
    line-height: 1.02;
  }

  .item-list {
    flex: 1;
    min-height: 0;
    max-height: none;
    margin-top: 12px;
  }

  .empty-state {
    min-height: 0;
    height: 100%;
  }

  .list-item {
    min-height: 50px;
    padding: 7px 8px 7px 10px;
  }

  .metric-row {
    grid-template-columns: 1fr;
    margin-top: 16px;
  }

  .metric-row div {
    min-height: 72px;
  }

  .metric-row span {
    font-size: 27px;
  }
}

@media (max-width: 900px) {
  .app-shell {
    width: calc(100% - 22px);
    max-width: 760px;
    width: min(100% - 22px, 760px);
  }

  .hero-panel,
  .dashboard-grid {
    gap: 12px;
  }

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

  .weather-card {
    grid-row: auto;
  }

  .weather-card,
  .quote-card,
  .todo-card,
  .reminder-card,
  .status-card {
    padding: 18px;
  }

  .quote-card {
    min-height: 210px;
  }
}

@media (max-width: 650px) {
  body {
    background-attachment: scroll;
  }

  .app-shell {
    width: calc(100% - 16px);
    max-width: 560px;
    width: min(100% - 16px, 560px);
    padding-top: 8px;
  }

  .glass-panel {
    border-radius: 24px;
  }

  .hero-panel {
    min-height: 184px;
    padding: 20px;
  }

  .hero-side {
    width: 104px;
    gap: 10px;
  }

  .focus-orb {
    width: 78px;
    height: 78px;
  }

  .orb-icon {
    width: 38px;
    height: 38px;
  }

  .hero-side p {
    font-size: 15px;
  }

  .weather-now {
    min-height: 126px;
    gap: 14px;
  }

  .weather-mark {
    width: 90px;
    height: 90px;
    border-radius: 26px;
    font-size: 39px;
  }

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

  .reminder-form {
    flex-wrap: wrap;
  }

  .reminder-form input:first-child {
    flex-basis: 100%;
  }

  input[type="time"] {
    flex: 1;
    max-width: none;
  }
}

@media (max-width: 430px) {
  h1 {
    font-size: 58px;
  }

  .date-line {
    font-size: 17px;
  }

  .panel-heading h2 {
    font-size: 22px;
  }

  blockquote {
    font-size: 29px;
  }

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

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