:root {
  --turq: #7fd6cf;
  --turq-dark: #2f9e96;
  --turq-pale: #e3f7f5;
  --pink: #f6b8cc;
  --pink-dark: #d9688e;
  --pink-pale: #fdeef3;
  --ink: #3b4a54;
  --muted: #7d8b94;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 4px 18px rgba(47, 158, 150, .13);
  font-family: "Nunito", "Quicksand", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    url("/static/flowers.svg") right -40px top -30px / 260px no-repeat,
    url("/static/flowers.svg") left -60px bottom -50px / 220px no-repeat,
    linear-gradient(160deg, var(--turq-pale) 0%, var(--white) 45%, var(--pink-pale) 100%);
  background-attachment: fixed;
}
header {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: .8rem 1.2rem;
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(6px);
  position: sticky; top: 0; z-index: 5;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
h1 {
  font-family: "Pacifico", "Brush Script MT", cursive;
  font-weight: normal; font-size: 2rem; margin: 0;
  color: var(--pink-dark);
  letter-spacing: .02em;
}
h1::after { content: " ✿"; color: var(--turq); font-size: 1.2rem; }
nav { display: flex; gap: .3rem; flex-wrap: wrap; }
nav a {
  padding: .5rem .95rem; border-radius: 999px;
  text-decoration: none; color: var(--turq-dark); font-weight: 600;
}
nav a.on { background: var(--turq); color: var(--white); }
main { max-width: 980px; margin: 0 auto; padding: 1rem; }
section.page { display: none; }
section.page.on { display: block; }
h2 { color: var(--turq-dark); font-weight: 700; margin: 1.4rem 0 .6rem; }
h3 { color: var(--pink-dark); margin: 1rem 0 .4rem; }
.card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1rem 1.2rem; margin-bottom: 1rem;
}
.banner {
  display: none; padding: .7rem 1.2rem; text-align: center; font-weight: 600;
  background: var(--pink); color: var(--white);
}
.banner.on { display: block; }
button, .btn {
  font: inherit; font-weight: 600; cursor: pointer;
  border: none; border-radius: 999px; padding: .6rem 1.1rem; min-height: 44px;
  background: var(--turq); color: var(--white);
  transition: transform .08s, background .2s;
}
button:active { transform: scale(.96); }
button.pink { background: var(--pink-dark); }
button.ghost { background: var(--turq-pale); color: var(--turq-dark); }
button.small { padding: .3rem .8rem; min-height: 34px; font-size: .9rem; }
button:disabled { opacity: .45; cursor: default; }
input, select, textarea {
  font: inherit; padding: .55rem .8rem; border-radius: 12px;
  border: 2px solid var(--turq-pale); background: var(--white); color: var(--ink);
  min-height: 44px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--turq); }
input[type=range] { accent-color: var(--pink-dark); width: 100%; border: none; }
input[type=checkbox] { accent-color: var(--turq-dark); width: 22px; height: 22px; min-height: 0; }
label { display: inline-flex; align-items: center; gap: .4rem; }
.row { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; }
.muted { color: var(--muted); font-size: .9rem; }
.err { color: var(--pink-dark); font-weight: 600; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; }
.tile {
  border-radius: var(--radius); padding: 1rem; min-height: 96px;
  background: linear-gradient(145deg, var(--white), var(--turq-pale));
  box-shadow: var(--shadow); cursor: pointer; text-align: left; color: var(--ink);
  display: flex; flex-direction: column; justify-content: space-between;
}
.tile:nth-child(even) { background: linear-gradient(145deg, var(--white), var(--pink-pale)); }
.tile b { font-size: 1.05rem; }
.tile .kind { font-size: .8rem; color: var(--muted); }
.now { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.now .title { font-size: 1.3rem; font-weight: 700; }
.bar { height: 8px; border-radius: 4px; background: var(--turq-pale); overflow: hidden; }
.bar > div { height: 100%; background: linear-gradient(90deg, var(--turq), var(--pink)); }
ul.list { list-style: none; padding: 0; margin: 0; }
ul.list li {
  display: flex; gap: .6rem; align-items: center; flex-wrap: wrap;
  padding: .55rem 0; border-bottom: 1px dashed var(--turq-pale);
}
ul.list li:last-child { border-bottom: none; }
.tag { font-size: .75rem; padding: .15rem .55rem; border-radius: 999px; background: var(--turq-pale); color: var(--turq-dark); }
.tag.pink { background: var(--pink-pale); color: var(--pink-dark); }
table { border-collapse: collapse; width: 100%; }
td, th { padding: .4rem; text-align: left; }
th { color: var(--muted); font-weight: 600; font-size: .85rem; }
tr + tr td { border-top: 1px dashed var(--turq-pale); }
.week input { width: 100%; min-width: 6rem; padding: .4rem .3rem; }
.week td { padding: .25rem; }
.toast {
  position: fixed; bottom: 1rem; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: var(--white); padding: .7rem 1.2rem; border-radius: 999px;
  opacity: 0; transition: opacity .3s; pointer-events: none; z-index: 10;
}
.toast.on { opacity: .92; }
.login {
  max-width: 380px; margin: 14vh auto 0; text-align: center;
}
.login h1 { font-size: 3rem; margin-bottom: 1rem; }
.login input { width: 100%; margin-bottom: .8rem; }
.login button { width: 100%; }
@media (max-width: 600px) {
  h1 { font-size: 1.6rem; }
  nav a { padding: .4rem .7rem; }
}
.card:empty { display: none; }
