:root {
  --bg: #f4efe7;
  --card: #ffffff;
  --ink: #101820;
  --muted: #6f777b;
  --gold: #b79a62;
  --dark: #101820;
  --line: rgba(16, 24, 32, 0.12);
  --shadow: 0 18px 45px rgba(16, 24, 32, 0.12);
  --radius: 26px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: radial-gradient(circle at top, #fff8ec, var(--bg));
  color: var(--ink);
}

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

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.app {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px;
  padding-bottom: 40px;
}

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

.eyebrow {
  margin: 0 0 6px;
  color: var(--gold);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.14em;
  font-weight: 800;
}

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

h1 {
  margin-bottom: 4px;
  font-size: clamp(32px, 6vw, 58px);
  letter-spacing: -0.06em;
}

.today {
  color: var(--muted);
  margin: 0;
}

.status-pill {
  background: var(--dark);
  color: white;
  border-radius: 999px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  box-shadow: var(--shadow);
}

.status-pill span {
  width: 9px;
  height: 9px;
  background: #30d158;
  border-radius: 50%;
}

.hero {
  background: linear-gradient(135deg, #101820, #25303a);
  color: white;
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: center;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}

.hero h2 {
  margin-bottom: 8px;
  font-size: clamp(24px, 4vw, 42px);
  letter-spacing: -0.04em;
}

.hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  max-width: 680px;
}

.hero button,
.panel button,
.reminder-form button {
  background: var(--gold);
  color: white;
  border-radius: 16px;
  padding: 13px 18px;
  font-weight: 900;
  white-space: nowrap;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.action-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.action-card strong {
  display: block;
  margin-bottom: 6px;
}

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

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}

.app-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.app-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: #101820;
  color: var(--gold);
  display: grid;
  place-items: center;
  font-size: 24px;
  margin-bottom: 14px;
}

.app-card h3 {
  margin-bottom: 8px;
  font-size: 22px;
}

.app-card p {
  color: var(--muted);
  line-height: 1.45;
}

.app-card .open-btn {
  margin-top: 18px;
  display: inline-flex;
  justify-content: center;
  background: var(--dark);
  color: white;
  border-radius: 16px;
  padding: 13px;
  font-weight: 900;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}

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

.panel-head h3,
.stats h3 {
  margin-bottom: 0;
  font-size: 24px;
}

.panel-head button {
  background: #f1eadf;
  color: var(--ink);
}

.reminder-form {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.reminder-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  outline: none;
}

.reminder-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.reminder-item:last-child {
  border-bottom: 0;
}

.reminder-item.done span {
  text-decoration: line-through;
  color: var(--muted);
}

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

.reminder-actions button {
  padding: 9px 12px;
  border-radius: 12px;
  background: #f1eadf;
  color: var(--ink);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.stats-grid div {
  background: #f8f4ee;
  border-radius: 22px;
  padding: 18px;
}

.stats-grid strong {
  display: block;
  font-size: 34px;
  letter-spacing: -0.05em;
}

.stats-grid span {
  color: var(--muted);
}

footer {
  text-align: center;
  color: var(--muted);
  padding: 22px 0 0;
  font-size: 14px;
}

@media (max-width: 900px) {
  .grid,
  .quick-actions {
    grid-template-columns: 1fr 1fr;
  }

  .hero,
  .topbar,
  .panel-head {
    flex-direction: column;
  }

  .hero button {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .app {
    padding: 16px;
  }

  .grid,
  .quick-actions,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .reminder-form {
    flex-direction: column;
  }

  .reminder-form button {
    width: 100%;
  }

  .reminder-item {
    align-items: flex-start;
    flex-direction: column;
  }
}