:root {
  --bg: #f6f7fb;
  --panel: #ffffff;
  --accent: #ff9a76;
  --accent-2: #7c5dfa;
  --text: #1d1a27;
  --muted: #6b6880;
  --border: #e6e6ef;
  --shadow: 0 18px 50px rgba(25, 21, 46, 0.06);
  --radius-lg: 28px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Nunito', 'Kosugi Maru', system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at 10% 20%, rgba(255, 191, 167, 0.18), transparent 35%),
              radial-gradient(circle at 90% 10%, rgba(124, 93, 250, 0.12), transparent 30%),
              var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.app-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  background: var(--panel);
  padding: 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: 28px;
  overflow: hidden;
}

.hero__content h1 {
  font-size: clamp(32px, 4vw, 48px);
  margin: 8px 0 12px;
}

.hero__content h1 span {
  color: var(--accent-2);
}

.lead {
  color: var(--muted);
  margin: 0 0 16px;
  line-height: 1.6;
}

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

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 99px;
  font-weight: 700;
  color: #fff;
  font-size: 14px;
}

.pill--sun { background: linear-gradient(135deg, #ffd166, #ff9a76); }
.pill--paw { background: linear-gradient(135deg, #7c5dfa, #b69df8); }
.pill--treat { background: linear-gradient(135deg, #32bfa4, #7cded3); }

.hero__illu {
  position: relative;
  background: linear-gradient(160deg, #7c5dfa 0%, #b69df8 50%, #ffe6c6 100%);
  border-radius: var(--radius-lg);
  padding: 32px;
  color: #fff;
  min-height: 260px;
  overflow: hidden;
}

.dog-card {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 18px;
  border-radius: 18px;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.dog-card__label { text-transform: uppercase; letter-spacing: 0.08em; margin: 0; opacity: 0.9; }
.dog-card h2 { margin: 6px 0; font-size: 28px; }
.dog-card__mood { margin: 0 0 12px; }
.treats { display: flex; gap: 10px; flex-wrap: wrap; }
.treats span { background: rgba(255,255,255,0.2); padding: 6px 10px; border-radius: 10px; }

.paw {
  position: absolute;
  font-size: 30px;
  opacity: 0.18;
}
.paw--1 { top: 16px; right: 26px; }
.paw--2 { bottom: 32px; right: 18px; }
.paw--3 { bottom: 12px; left: 22px; }

main { display: flex; flex-direction: column; gap: 22px; }

.panel {
  background: var(--panel);
  border-radius: var(--radius-lg);
  padding: 24px 24px 28px;
  box-shadow: var(--shadow);
}

.panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
  color: #a3a1b0;
  margin: 0;
}

h3 { margin: 4px 0 8px; font-size: 24px; }

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

.progress {
  min-width: 240px;
  background: #f7f4ff;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  border: 1px solid #ede9ff;
}

.progress__label { margin: 0; font-weight: 700; color: #5b4db2; }
.progress__bar { background: #e8e2ff; height: 10px; border-radius: 99px; overflow: hidden; margin: 6px 0; }
.progress__fill { height: 100%; width: 0; background: linear-gradient(90deg, #7c5dfa, #ff9a76); transition: width 0.3s ease; }
.progress__meta { margin: 0; font-size: 14px; color: #5b4db2; }

.task-form { display: flex; flex-direction: column; gap: 16px; margin-top: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-group { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }

label { font-weight: 700; color: #514f63; }
input, select, textarea {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 15px;
  font-family: inherit;
  transition: border 0.2s ease, box-shadow 0.2s ease;
  background: #fbfbfe;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: #7c5dfa; box-shadow: 0 0 0 3px rgba(124,93,250,0.12); }
textarea { resize: vertical; }

.actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button {
  border: 1px dashed #e2d4ff;
  background: #f7f1ff;
  color: #5b4db2;
  border-radius: 14px;
  padding: 10px 12px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.chips button:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(92, 77, 178, 0.18); }

.primary {
  background: linear-gradient(120deg, #7c5dfa, #ff9a76);
  border: none;
  color: #fff;
  padding: 12px 18px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(255, 154, 118, 0.25);
}
.primary:hover { filter: brightness(1.05); }

.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter {
  background: #f4f2fb;
  border: 1px solid #ede9ff;
  color: #5b4db2;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
}
.filter.is-active { background: #7c5dfa; color: #fff; border-color: #7c5dfa; }

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

.card {
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: var(--radius-md);
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.04);
}

.card__top { display: flex; justify-content: space-between; gap: 12px; }
.card__category { margin: 0; color: #ff9a76; font-weight: 800; letter-spacing: 0.06em; }
.card__title { margin: 4px 0; font-size: 20px; }
.card__meta { margin: 0; color: var(--muted); font-size: 14px; }
.card__notes { margin: 0; color: #4b485c; line-height: 1.5; }

.card__badges { display: flex; gap: 6px; flex-wrap: wrap; align-items: flex-start; justify-content: flex-end; }
.badge {
  background: #f3f0ff;
  color: #5b4db2;
  padding: 6px 10px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
}
.badge--important { background: #ffede2; color: #ff7d4d; }
.badge--done { background: #e3f6ed; color: #2f9e68; }

.card__actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.checkbox { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; color: #47435c; }
.checkbox input { width: 18px; height: 18px; }

.card__buttons { display: flex; gap: 6px; flex-wrap: wrap; }
.ghost {
  border: 1px solid #e5e3f4;
  background: #f9f8ff;
  color: #5b4db2;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
}
.ghost:hover { border-color: #7c5dfa; }

.empty {
  text-align: center;
  padding: 24px;
  color: var(--muted);
  border: 2px dashed #efeef7;
  border-radius: var(--radius-md);
  background: #fbfbfe;
}

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; }
  .panel__header { flex-direction: column; }
}
