.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.app-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(15, 22, 32, .88), rgba(15, 22, 32, .36) 28%, rgba(15, 22, 32, .08) 55%, rgba(245, 195, 147, .22)),
    linear-gradient(180deg, rgba(15, 22, 32, .12), rgba(15, 22, 32, .34)),
    url("/assets/months/large/may.webp") center/cover no-repeat;
}

.app-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 70% 8%, rgba(255, 205, 154, .26), transparent 28%),
    radial-gradient(circle at 28% 74%, rgba(95, 144, 115, .22), transparent 30%),
    rgba(245, 241, 234, .06);
  backdrop-filter: blur(.6px);
}

.glass-panel,
.focus-card,
.sidebar {
  background: var(--glass-1);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-main);
  backdrop-filter: blur(24px);
}

.sidebar {
  min-height: calc(100vh - 36px);
  padding: 18px;
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  gap: 24px;
  color: rgba(255, 250, 244, .88);
  background: rgba(15, 23, 34, .58);
  border-color: rgba(255, 255, 255, .16);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .24);
}

.sidebar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 750;
  font-size: 18px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: transparent;
  background: #10151e url("/assets/focus-logo.png") center/68% auto no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 12px 30px rgba(0, 0, 0, .12);
  font-weight: 900;
}

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

.sidebar__footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border-soft);
}

.nav-item {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
  transition: transform var(--motion), background var(--motion), box-shadow var(--motion);
}

.nav-item:hover,
.nav-item--active {
  transform: translateX(2px);
  background: rgba(255, 255, 255, .16);
  box-shadow: 0 14px 34px rgba(255, 185, 130, .12);
}

.nav-item--muted {
  color: rgba(255, 250, 244, .68);
}

.focus-page {
  display: grid;
  align-content: start;
  gap: 16px;
}

.top-dock {
  display: grid;
  grid-template-columns: minmax(210px, 260px) minmax(340px, 1fr) auto;
  gap: 16px;
  align-items: stretch;
}

.date-card,
.quote-card {
  border-radius: var(--radius-lg);
  min-height: 74px;
  background: rgba(255, 255, 255, .34);
}

.date-card {
  padding: 18px 22px;
}

.date-card__day,
.eyebrow {
  display: block;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 650;
}

.date-card strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
}

.quote-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  padding: 10px 14px;
  box-shadow: 0 18px 52px rgba(0, 0, 0, .1);
}

.quote-card p {
  margin: 0;
  color: var(--text);
  text-align: center;
  line-height: 1.4;
}

.add-wrap {
  position: relative;
}

.add-button {
  height: 74px;
  padding: 0 28px;
  border: 0;
  border-radius: 22px;
  background: linear-gradient(135deg, #d37c58, #f1a979);
  color: #fffaf4;
  font-weight: 760;
  box-shadow: 0 18px 44px rgba(197, 106, 75, .28);
  cursor: pointer;
  transition: transform var(--motion), box-shadow var(--motion);
}

.add-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 54px rgba(197, 106, 75, .34);
}

.plus {
  font-size: 24px;
  margin-right: 6px;
}

.add-menu {
  position: absolute;
  z-index: 5;
  top: calc(100% + 10px);
  right: 0;
  width: 260px;
  padding: 10px;
  border-radius: 22px;
}

.add-menu button {
  width: 100%;
  height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  cursor: pointer;
}

.add-menu button:hover {
  background: rgba(255, 255, 255, .46);
}

.metric-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.metric-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .42);
  border: 1px solid rgba(255, 255, 255, .38);
  box-shadow: var(--shadow-main);
  backdrop-filter: blur(20px);
  font-weight: 700;
}

.metric-chip b {
  min-width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, .5);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, .85fr);
  gap: 16px;
  align-items: start;
}

.calendar-card {
  min-height: 560px;
  padding: 24px;
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, .27);
  border-color: rgba(255, 255, 255, .34);
}

.calendar-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .18)),
    radial-gradient(circle at 76% 8%, rgba(255, 207, 148, .36), transparent 28%);
}

.card-head,
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  margin-top: 4px;
  font-size: 32px;
}

h2 {
  font-size: 20px;
}

h3 {
  font-size: 16px;
}

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

.icon-button {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 16px;
  background: rgba(255, 255, 255, .34);
  cursor: pointer;
  transition: transform var(--motion), background var(--motion), box-shadow var(--motion);
}

.icon-button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, .56);
  box-shadow: 0 12px 28px rgba(216, 137, 99, .16);
}

.icon-button--tiny {
  width: 34px;
  height: 34px;
  border-radius: 12px;
}

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

.calendar-weekdays {
  margin-top: 24px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.calendar-grid {
  margin-top: 8px;
}

.day-cell {
  min-height: 76px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 18px;
  background: rgba(255, 255, 255, .26);
  backdrop-filter: blur(10px);
  transition: transform var(--motion), background var(--motion), box-shadow var(--motion);
}

.day-cell:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, .36);
  box-shadow: 0 18px 38px rgba(0, 0, 0, .12);
}

.day-cell--muted {
  opacity: .44;
}

.day-cell--weekend .day-cell__num {
  color: var(--terracotta);
}

.day-cell--current {
  background: rgba(216, 137, 99, .34);
  box-shadow: 0 18px 44px rgba(197, 106, 75, .22);
}

.day-cell__num {
  display: block;
  font-size: 20px;
  font-weight: 800;
  text-align: center;
}

.markers {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 14px;
  min-height: 7px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
}

.side-stack {
  display: grid;
  gap: 16px;
}

.focus-card {
  padding: 20px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .34);
}

.summary-list,
.task-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.summary-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.summary-time {
  color: var(--text-soft);
  font-weight: 800;
}

.summary-title {
  font-weight: 780;
}

.summary-subtitle {
  display: block;
  color: var(--text-soft);
  margin-top: 2px;
  font-size: 14px;
}

.thought-card {
  margin-top: 16px;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 184, 132, .5), rgba(255, 255, 255, .32));
  border: 1px solid rgba(255, 255, 255, .42);
}

.thought-card span {
  display: block;
  color: var(--terracotta);
  font-size: 13px;
  font-weight: 800;
}

.thought-card strong {
  display: block;
  margin-top: 6px;
}

.task-item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .26);
  border: 1px solid rgba(255, 255, 255, .36);
}

.task-check {
  width: 19px;
  height: 19px;
  margin-top: 2px;
  border-radius: 6px;
  border: 1px solid rgba(47, 42, 38, .28);
  background: rgba(255, 255, 255, .42);
}

.task-item--done .task-check {
  background: var(--terracotta);
  border-color: var(--terracotta);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .72);
}

.task-item--done .task-title {
  color: var(--text-soft);
}

.task-title {
  font-weight: 690;
}

.task-label {
  display: block;
  margin-top: 4px;
  color: var(--text-soft);
  font-size: 13px;
}

.soft-link {
  margin-top: 14px;
  border: 0;
  background: transparent;
  color: var(--terracotta);
  font-weight: 800;
  cursor: pointer;
}

.labels-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .31);
}

.label-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .32);
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 760;
}

.interesting {
  padding: 20px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .32);
}

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

.interesting article {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .28);
}

.interesting ul {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.interesting li {
  display: grid;
  gap: 2px;
}

.interesting span {
  color: var(--text-soft);
  font-size: 13px;
}

.icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: var(--icon) center/contain no-repeat;
  mask: var(--icon) center/contain no-repeat;
}

.icon-home { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m3 11 9-8 9 8'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3Cpath d='M10 20v-6h4v6'/%3E%3C/svg%3E"); }
.icon-bell { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M18 8a6 6 0 0 0-12 0c0 7-3 7-3 9h18c0-2-3-2-3-9'/%3E%3Cpath d='M10 21h4'/%3E%3C/svg%3E"); }
.icon-calendar { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M8 2v4M16 2v4M3 10h18'/%3E%3Crect width='18' height='18' x='3' y='4' rx='3'/%3E%3C/svg%3E"); }
.icon-gift { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M20 12v8H4v-8M2 7h20v5H2zM12 22V7'/%3E%3Cpath d='M12 7H8.5a2.5 2.5 0 1 1 0-5C12 2 12 7 12 7ZM12 7h3.5a2.5 2.5 0 1 0 0-5C12 2 12 7 12 7Z'/%3E%3C/svg%3E"); }
.icon-note { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M4 3h12l4 4v14H4z'/%3E%3Cpath d='M16 3v5h5M8 13h8M8 17h6'/%3E%3C/svg%3E"); }
.icon-book { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/%3E%3Cpath d='M4 4.5A2.5 2.5 0 0 1 6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5z'/%3E%3C/svg%3E"); }
.icon-settings { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M12 15.5A3.5 3.5 0 1 0 12 8a3.5 3.5 0 0 0 0 7.5Z'/%3E%3Cpath d='M19.4 15a1.7 1.7 0 0 0 .34 1.87l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06A1.7 1.7 0 0 0 15 19.4a1.7 1.7 0 0 0-1 1.55V21a2 2 0 1 1-4 0v-.09a1.7 1.7 0 0 0-1-1.55 1.7 1.7 0 0 0-1.87.34l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06A1.7 1.7 0 0 0 4.6 15a1.7 1.7 0 0 0-1.55-1H3a2 2 0 1 1 0-4h.09a1.7 1.7 0 0 0 1.55-1 1.7 1.7 0 0 0-.34-1.87l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06A1.7 1.7 0 0 0 9 4.6a1.7 1.7 0 0 0 1-1.55V3a2 2 0 1 1 4 0v.09a1.7 1.7 0 0 0 1 1.55 1.7 1.7 0 0 0 1.87-.34l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06A1.7 1.7 0 0 0 19.4 9c.26.6.84 1 1.55 1H21a2 2 0 1 1 0 4h-.09A1.7 1.7 0 0 0 19.4 15Z'/%3E%3C/svg%3E"); }
.icon-logout { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4M16 17l5-5-5-5M21 12H9'/%3E%3C/svg%3E"); }
.icon-arrow-left { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M19 12H5M12 19l-7-7 7-7'/%3E%3C/svg%3E"); }
.icon-arrow-right { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E"); }
.icon-chevron { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.icon-more { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='1'/%3E%3Ccircle cx='19' cy='12' r='1'/%3E%3Ccircle cx='5' cy='12' r='1'/%3E%3C/svg%3E"); }
.icon-check { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m20 6-11 11-5-5'/%3E%3C/svg%3E"); }

@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .sidebar {
    padding: 14px;
    align-items: center;
  }

  .sidebar__brand span,
  .nav-item span:not(.icon) {
    display: none;
  }

  .nav-item {
    width: 54px;
    justify-content: center;
    padding: 0;
  }

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

@media (max-width: 760px) {
  .app-shell {
    display: block;
    padding: 12px;
    padding-bottom: 94px;
  }

  .sidebar {
    position: fixed;
    z-index: 10;
    left: 12px;
    right: 12px;
    bottom: 12px;
    min-height: 68px;
    padding: 8px;
    border-radius: 26px;
    flex-direction: row;
  }

  .sidebar__brand,
  .sidebar__footer {
    display: none;
  }

  .sidebar__nav {
    width: 100%;
    display: flex;
    justify-content: space-between;
  }

  .sidebar__nav .nav-item:nth-child(n+6) {
    display: none;
  }

  .top-dock {
    grid-template-columns: 1fr;
  }

  .add-button {
    width: 100%;
    height: 58px;
  }

  .add-menu {
    left: 0;
    width: 100%;
  }

  .metric-row {
    display: grid;
  }

  .calendar-card {
    min-height: auto;
    padding: 16px;
  }

  .day-cell {
    min-height: 54px;
    padding: 6px;
    border-radius: 14px;
  }

  .day-cell__num {
    font-size: 15px;
  }

  .markers {
    margin-top: 6px;
  }

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