:root {
  --bg: #f7f7f2;
  --surface: #ffffff;
  --ink: #181916;
  --muted: #62665f;
  --line: #e5e7df;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --danger: #dc2626;
  --success: #059669;
  --shadow: 0 16px 40px rgba(24, 25, 22, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

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

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

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

textarea {
  resize: vertical;
}

label span {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
}

.auth-body {
  min-height: 100vh;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  gap: 16px;
  padding: 16px;
}

.auth-hero {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 8px;
  background: #181916;
  color: #fff;
  padding: 24px;
}

.auth-hero h1 {
  max-width: 720px;
  margin: 0 0 16px;
  font-size: clamp(36px, 10vw, 72px);
  line-height: 1;
}

.auth-hero p {
  max-width: 620px;
  color: #d7d9d2;
  line-height: 1.7;
}

.auth-card {
  align-self: center;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 22px;
  box-shadow: var(--shadow);
}

.brand,
.brand-mark {
  display: inline-flex;
  align-items: center;
}

.brand {
  gap: 12px;
}

.brand small,
.eyebrow {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-mark {
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
}

.auth-hero .brand-mark {
  background: #fff;
  color: var(--ink);
}

.app-shell {
  min-height: 100vh;
  padding-bottom: 82px;
}

.sidebar {
  display: none;
}

.main-content {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 16px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: -16px -16px 16px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 247, 242, 0.92);
  backdrop-filter: blur(14px);
}

.global-search {
  display: none;
}

.topbar h1,
.panel h2,
.auth-card h2 {
  margin: 4px 0 0;
}

.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 8px;
}

.bottom-nav a {
  border-radius: 8px;
  padding: 10px 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.bottom-nav a.is-active,
.side-nav a.is-active {
  background: #eaf1ff;
  color: var(--blue);
}

.button,
.icon-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.button {
  padding: 0 16px;
  background: #eef2f7;
}

.button.primary,
.icon-button.primary {
  background: var(--blue);
  color: #fff;
}

.button.primary:hover,
.icon-button.primary:hover {
  background: var(--blue-dark);
}

.button.ghost,
.ghost-button {
  border: 1px solid var(--line);
  background: transparent;
}

.button.small {
  min-height: 38px;
  padding: 0 12px;
  font-size: 14px;
}

.icon-button {
  width: 44px;
  font-size: 26px;
}

.search-page-form {
  display: grid;
  gap: 10px;
}

.search-results {
  display: grid;
  gap: 16px;
}

.result-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.result-list a {
  display: grid;
  gap: 4px;
  border-radius: 8px;
  background: #f8fafc;
  padding: 12px;
}

.result-list span {
  color: var(--muted);
  font-size: 14px;
}

.schedule-filter {
  margin: 16px 0;
}

.filter-form {
  max-width: 360px;
}

.schedule-board {
  display: grid;
  gap: 12px;
}

.schedule-day {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 14px;
  box-shadow: 0 8px 28px rgba(24, 25, 22, 0.05);
}

.schedule-day h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.schedule-blocks {
  display: grid;
  gap: 10px;
}

.schedule-block {
  border-left: 5px solid var(--blue);
  border-radius: 8px;
  background: #f8fafc;
  padding: 10px 12px;
}

.schedule-block strong,
.schedule-block span {
  display: block;
}

.schedule-block span,
.schedule-time {
  color: var(--muted);
  font-size: 13px;
}

.schedule-time {
  margin-bottom: 4px;
  font-weight: 800;
}

.delete-inline {
  margin-top: 8px;
}

.delete-inline button {
  border: 0;
  background: transparent;
  color: var(--danger);
  cursor: pointer;
  padding: 0;
  font-size: 13px;
  font-weight: 800;
}

.calendar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  gap: 8px;
  overflow-x: auto;
}

.month-weekday {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0 8px;
}

.month-day {
  min-height: 128px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 10px;
}

.month-day.is-empty {
  background: transparent;
  border-color: transparent;
}

.month-day.is-today {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px #dbeafe inset;
}

.month-day strong {
  display: block;
  margin-bottom: 8px;
}

.month-dots {
  display: grid;
  gap: 5px;
}

.dot,
.month-empty {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 4px 7px;
  font-size: 11px;
  font-weight: 800;
}

.dot.task {
  background: #dbeafe;
  color: #1d4ed8;
}

.dot.event {
  background: #dcfce7;
  color: #047857;
}

.dot.job {
  background: #fef3c7;
  color: #92400e;
}

.dot.project {
  background: #f3e8ff;
  color: #7e22ce;
}

.month-empty {
  background: #f8fafc;
  color: var(--muted);
}

.day-agenda {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

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

.center {
  text-align: center;
}

.muted,
.panel p {
  color: var(--muted);
  line-height: 1.6;
}

.lead {
  font-size: 17px;
}

.alert {
  margin-bottom: 16px;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 700;
}

.alert-error {
  background: #fef2f2;
  color: #991b1b;
}

.alert-success {
  background: #ecfdf5;
  color: #065f46;
}

.stats-grid,
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.stat-card,
.panel,
.task-card,
.space-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 28px rgba(24, 25, 22, 0.05);
}

.stat-card {
  padding: 16px;
}

.stat-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: 30px;
}

.stat-card.danger strong {
  color: var(--danger);
}

.content-grid {
  display: grid;
  gap: 16px;
}

.panel,
.space-card {
  padding: 18px;
}

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

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

.task-list.two-cols {
  grid-template-columns: 1fr;
}

.task-card {
  display: block;
  padding: 16px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.task-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

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

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

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.chips span {
  border-radius: 6px;
  background: #f1f5f9;
  padding: 6px 8px;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
}

.timeline {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.timeline div {
  border-left: 2px solid #bfdbfe;
  padding-left: 12px;
}

.timeline span,
.timeline small {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 16px;
  padding-bottom: 4px;
}

.filter-row a {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 10px 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

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

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

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

.check input {
  width: auto;
}

.check span {
  margin: 0;
}

.form-actions {
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
}

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

.detail-grid div {
  border-radius: 8px;
  background: #f8fafc;
  padding: 12px;
}

.detail-grid small {
  display: block;
  color: var(--muted);
  font-weight: 700;
}

.detail-grid strong {
  display: block;
  margin-top: 6px;
}

.subtask-list,
.comments {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.subtask,
.comment {
  border-radius: 8px;
  background: #f8fafc;
  padding: 12px;
}

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

.subtask-toggle {
  width: 20px;
  height: 20px;
  border: 2px solid #cbd5e1;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.subtask-toggle.done {
  border-color: var(--success);
  background: var(--success);
}

.inline-form,
.comment-form {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.comment small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.space-mark {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--blue);
}

.progress-bar {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
  margin: 14px 0 10px;
}

.progress-bar.large {
  height: 12px;
}

.progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.edit-details {
  margin-top: 16px;
}

.edit-details summary {
  cursor: pointer;
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
}

.mini-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.empty {
  color: var(--muted);
}

@media (min-width: 760px) {
  .auth-shell {
    grid-template-columns: 1fr 440px;
    padding: 32px;
  }

  .auth-hero {
    padding: 40px;
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .content-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  }

  .task-list.two-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .form-actions {
    flex-direction: row;
    justify-content: flex-end;
  }
}

@media (min-width: 980px) {
  .app-shell {
    padding-bottom: 0;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    display: flex;
    width: 280px;
    flex-direction: column;
    gap: 24px;
    border-right: 1px solid var(--line);
    background: var(--surface);
    padding: 24px;
  }

  .side-nav {
    display: grid;
    gap: 6px;
  }

  .side-nav a {
    border-radius: 8px;
    padding: 12px;
    color: var(--muted);
    font-weight: 800;
  }

  .main-content {
    margin-left: 280px;
    padding: 28px;
  }

  .topbar {
    margin: -28px -28px 24px;
    padding: 20px 28px;
  }

  .global-search {
    display: flex;
    flex: 1;
    max-width: 520px;
    gap: 8px;
    margin-left: auto;
  }

  .global-search input {
    height: 44px;
  }

  .global-search button {
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    background: #181916;
    color: #fff;
    padding: 0 14px;
    cursor: pointer;
    font-weight: 800;
  }

  .search-page-form {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

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

  .schedule-board {
    grid-template-columns: repeat(7, minmax(150px, 1fr));
    overflow-x: auto;
  }

  .bottom-nav {
    display: none;
  }

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

/* Modern visual system */
:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --ink: #101828;
  --muted: #667085;
  --line: #d9e2ec;
  --blue: #2563eb;
  --blue-dark: #1e40af;
  --teal: #0f766e;
  --amber: #b45309;
  --rose: #be123c;
  --violet: #6d28d9;
  --danger: #dc2626;
  --success: #059669;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.1);
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.07);
}

body {
  background:
    linear-gradient(180deg, #eef5ff 0, rgba(244, 247, 251, 0) 240px),
    var(--bg);
}

input,
select,
textarea {
  min-height: 46px;
  border-color: #d8e0ea;
  background: #fbfdff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #93c5fd;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
  outline: none;
}

.sidebar {
  background: #0f172a;
  border-right: 0;
  color: #e2e8f0;
}

.brand {
  border-bottom: 1px solid rgba(226, 232, 240, 0.14);
  padding-bottom: 18px;
}

.brand small {
  color: #94a3b8;
}

.brand strong {
  color: #fff;
}

.brand-mark {
  background: #2563eb;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.32);
}

.side-nav {
  overflow-y: auto;
  padding-right: 2px;
}

.side-nav a {
  color: #cbd5e1;
  position: relative;
}

.side-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.side-nav a.is-active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.2);
}

.side-nav a.is-active::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 12px;
  width: 4px;
  height: 20px;
  border-radius: 999px;
  background: #38bdf8;
}

.ghost-button {
  color: #e2e8f0;
  border-color: rgba(226, 232, 240, 0.2);
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.main-content {
  width: min(1240px, 100%);
}

.topbar {
  background: rgba(244, 247, 251, 0.86);
  border-bottom-color: rgba(148, 163, 184, 0.28);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.topbar h1 {
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: 0;
}

.eyebrow {
  color: #475569;
}

.global-search input {
  border-color: #cbd5e1;
  background: #fff;
}

.global-search button,
.button.primary,
.icon-button.primary {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.24);
}

.global-search button:hover,
.button.primary:hover,
.icon-button.primary:hover {
  background: #1d4ed8;
}

.button,
.icon-button,
.ghost-button {
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

.button {
  background: #e9eef6;
  color: #233044;
}

.button.ghost {
  background: #fff;
  color: #344054;
}

.panel,
.task-card,
.space-card,
.stat-card,
.schedule-day,
.auth-card {
  border-color: rgba(148, 163, 184, 0.28);
  box-shadow: var(--shadow-soft);
}

.panel,
.space-card {
  background: rgba(255, 255, 255, 0.94);
}

.panel-header {
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  padding-bottom: 14px;
}

.stats-grid {
  gap: 14px;
}

.stat-card {
  overflow: hidden;
  position: relative;
  min-height: 124px;
  border: 0;
  color: #fff;
  padding: 18px;
}

.stat-card::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 46px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

.stat-card:nth-child(1) {
  background: #2563eb;
}

.stat-card:nth-child(2) {
  background: #dc2626;
}

.stat-card:nth-child(3) {
  background: #0f766e;
}

.stat-card:nth-child(4) {
  background: #7c2d12;
}

.stat-card span {
  color: rgba(255, 255, 255, 0.82);
}

.stat-card strong,
.stat-card.danger strong {
  color: #fff;
  font-size: 36px;
}

.task-card,
.result-list a,
.subtask,
.comment,
.schedule-block {
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

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

.task-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: #2563eb;
}

.task-card:hover,
.space-card:hover,
.result-list a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.task-card h3,
.space-card h2,
.panel h2 {
  color: #0f172a;
}

.chips span {
  background: #eef4ff;
  color: #1e40af;
  border: 1px solid #dbeafe;
}

.chips span:nth-child(2n) {
  background: #ecfdf5;
  color: #047857;
  border-color: #bbf7d0;
}

.chips span:nth-child(3n) {
  background: #fff7ed;
  color: #c2410c;
  border-color: #fed7aa;
}

.timeline div {
  border-left-width: 4px;
  border-left-color: #2563eb;
  background: #f8fafc;
  border-radius: 8px;
  padding: 12px 12px 12px 14px;
}

.timeline div:nth-child(2n) {
  border-left-color: #0f766e;
}

.timeline div:nth-child(3n) {
  border-left-color: #b45309;
}

.month-grid {
  gap: 10px;
}

.month-weekday {
  color: #334155;
  background: #e9eef6;
  border-radius: 8px;
  padding: 8px 10px;
}

.month-day {
  min-height: 150px;
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(148, 163, 184, 0.3);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.month-day:hover {
  transform: translateY(-2px);
  border-color: #93c5fd;
  box-shadow: var(--shadow);
}

.month-day strong {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #edf2f7;
}

.month-day.is-today strong {
  background: #2563eb;
  color: #fff;
}

.month-day.is-today {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.14) inset, var(--shadow-soft);
}

.dot {
  border: 1px solid transparent;
}

.schedule-day h2 {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.schedule-block {
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.progress-bar {
  background: #dbe3ef;
}

.progress-bar span {
  background: #2563eb;
}

.focus-panel {
  display: grid;
  grid-template-columns: minmax(160px, 220px) 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 18px;
  overflow: hidden;
  position: relative;
}

.focus-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 14% 16%, rgba(37, 99, 235, 0.12), transparent 28%),
    radial-gradient(circle at 90% 20%, rgba(20, 184, 166, 0.12), transparent 26%);
  pointer-events: none;
}

.focus-ring,
.focus-body {
  position: relative;
  z-index: 1;
}

.focus-ring {
  width: min(42vw, 190px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    conic-gradient(#2563eb calc(var(--progress) * 1%), #dbeafe 0),
    #dbeafe;
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.16);
}

.focus-ring::before {
  content: "";
  position: absolute;
  inset: 15px;
  border-radius: inherit;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.22);
}

.focus-ring div {
  position: relative;
  display: grid;
  gap: 2px;
  text-align: center;
}

.focus-ring strong {
  color: #0f172a;
  font-size: 38px;
  line-height: 1;
}

.focus-ring span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.focus-body h2 {
  margin: 4px 0 8px;
  font-size: clamp(24px, 4vw, 34px);
}

.focus-body p {
  max-width: 760px;
  margin: 0 0 18px;
}

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

.progress-metrics > div {
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.progress-metrics span {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.progress-metrics strong {
  display: block;
  margin: 4px 0 10px;
  color: #0f172a;
  font-size: 24px;
}

.progress-bar.success span {
  background: #0f766e;
}

.progress-bar.warning span {
  background: #d97706;
}

.bottom-nav {
  background: rgba(15, 23, 42, 0.96);
  border-top: 0;
  box-shadow: 0 -18px 40px rgba(15, 23, 42, 0.22);
}

.bottom-nav a {
  color: #cbd5e1;
}

.bottom-nav a.is-active {
  background: #fff;
  color: #0f172a;
}

.auth-hero {
  background: #0f172a;
}

.alert-success,
.alert-error {
  border: 1px solid currentColor;
}

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

  .stat-card {
    min-height: 110px;
  }

  .focus-panel {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .focus-body p {
    margin-left: auto;
    margin-right: auto;
  }

  .progress-metrics {
    width: 100%;
    grid-template-columns: 1fr;
    text-align: left;
  }

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

  .month-grid {
    grid-template-columns: repeat(7, minmax(104px, 1fr));
  }

  .month-day {
    min-height: 124px;
  }
}
