:root {
  --bg: #fafafa;
  --ink: #111;
  --muted: #666;
  --card: #fff;
  --line: #e8e8ea;
  --accent: #0a7cff;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; color: var(--ink); background: var(--bg); }
.container { max-width: 960px; margin: 0 auto; padding: 24px; }
header.container { text-align: center; padding-top: 48px; }
h1 { font-weight: 600; letter-spacing: -0.01em; margin: 0 0 8px; }
.sub { color: var(--muted); margin: 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.04); }
.row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.space-between { justify-content: space-between; }
.gap { gap: 8px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 240px; }
label { font-size: 14px; color: var(--muted); }
input[type="date"], input[type="text"], input[type="number"], select { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 16px; background: #fff; }
a { text-decoration: none; }
.btn { border: 1px solid var(--line); background: var(--ink); color: #fff; border-radius: 12px; padding: 10px 14px; cursor: pointer; font-weight: 600; text-decoration: none; }
.btn.ghost { background: #fff; color: var(--ink); }
.btn:hover { opacity: .95; }
.btn-primary-lg { background: var(--accent); border-color: var(--accent); padding: 14px 20px; font-size: 16px; border-radius: 14px; }
.btn-primary-lg:hover { filter: brightness(0.95); }
.no-underline { text-decoration: none !important; }
.muted { color: var(--muted); }
.hidden { display: none; }
.preview-wrap { padding: 20px; margin-top: 16px; }
.preview-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.hint { font-size: 12px; margin-top: 8px; }
canvas { width: 100%; height: auto; border: 1px dashed var(--line); border-radius: 12px; background: #fff; }

/* weekly */
.week-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; margin-top: 16px; }
.day { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.day-head { display: flex; justify-content: space-between; padding: 8px 12px; border-bottom: 1px solid var(--line); background: #fcfcfd; }
.day-name { font-weight: 600; }
.day-body { min-height: 160px; padding: 10px 12px; outline: none; }
.notes { margin-top: 24px; }
.notes textarea { width: 100%; min-height: 160px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }

/* Floating Buy Me a Coffee (planner page only) */
.bmc-float {
  position: fixed; right: 16px; bottom: 16px;
  background: #fff; color: #111; border: 1px solid var(--line);
  border-radius: 999px; padding: 10px 14px; box-shadow: 0 8px 24px rgba(0,0,0,.12);
  display: inline-flex; align-items:center; gap:8px; font-weight:600; z-index: 9999;
  text-decoration: none;
}
.bmc-float:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(0,0,0,.16); }
.bmc-text { display: inline; }
@media (max-width: 520px){
  .bmc-float { padding: 8px 10px; font-size: 14px; right: 12px; bottom: 12px; }
  .bmc-text { display: none; }
}