:root {
  --bg: #faf6f1;
  --ink: #2b2522;
  --muted: #7a6f69;
  --line: #e7ddd5;
  --accent: #a8834f;
  --card: #ffffff;
  --skin: #f3d9c6;
  --skin-dark: #e2b99e;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--ink); line-height: 1.6; }
a { color: var(--accent); }
header.site { display: flex; justify-content: space-between; align-items: center; padding: 14px 24px; border-bottom: 1px solid var(--line); background: var(--card); }
header.site .logo { font-weight: 700; color: var(--ink); text-decoration: none; }
header.site nav a { margin-left: 18px; text-decoration: none; color: var(--muted); font-size: 15px; }
main { max-width: 1080px; margin: 0 auto; padding: 24px; }
h1, h2, header.site .logo { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; letter-spacing: .01em; }
h1 { font-size: 40px; line-height: 1.15; margin: 8px 0 6px; }
header.site .logo { font-size: 22px; }
.lead { color: var(--muted); margin: 0 0 20px; }
.planner { display: grid; grid-template-columns: minmax(280px, 420px) 1fr; gap: 24px; align-items: start; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
#ear { width: 100%; max-width: 380px; margin: 0 auto; height: auto; display: block; touch-action: manipulation; }
.point.placed .dot { fill: transparent; stroke: transparent; }
.point.placed:hover .dot { fill: transparent; stroke: var(--accent); stroke-dasharray: 2 2; }
.point { cursor: pointer; }
.point .dot { fill: #fff; stroke: var(--accent); stroke-width: 1.5; opacity: .85; }
.point:hover .dot { fill: var(--accent); opacity: 1; }
.point .label { font-size: 9px; fill: var(--muted); pointer-events: none; display: none; }
.show-labels .point .label { display: block; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.toolbar button, .chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; cursor: pointer; font-size: 14px; color: var(--ink); }
.toolbar button.active, .chip.active { border-color: var(--accent); background: var(--accent); color: #fff; }
.group-title { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 14px 0 6px; }
.swatch { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.swatch.active { box-shadow: 0 0 0 2px var(--accent); }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.primary { background: var(--accent); color: #fff; border: none; border-radius: 10px; padding: 10px 16px; font-size: 15px; cursor: pointer; }
.ghost { background: none; border: 1px solid var(--line); border-radius: 10px; padding: 10px 16px; font-size: 15px; cursor: pointer; }
table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th, table.list td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list th { color: var(--muted); font-weight: 600; }
.empty { color: var(--muted); font-size: 14px; }
section.content { margin-top: 40px; }
section.content h2 { font-size: 28px; margin-top: 32px; }
.disclaimer { font-size: 13px; color: var(--muted); border-left: 3px solid var(--line); padding-left: 12px; }
footer { text-align: center; color: var(--muted); font-size: 13px; padding: 30px 16px; border-top: 1px solid var(--line); margin-top: 40px; }
@media (max-width: 760px) {
  .planner { grid-template-columns: 1fr; }
  h1 { font-size: 24px; }
}

/* v2 polish */
.card { box-shadow: 0 6px 24px rgba(120, 90, 60, .06); }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 22px; }
.badges span { font-size: 13px; color: #8a6d45; background: #f4ebde; border-radius: 999px; padding: 4px 12px; }
.presets { gap: 8px; }
.preset { border: 1px solid #ead9c4; background: linear-gradient(180deg, #fffaf3, #f6ecdf); color: #6b5232; border-radius: 12px; padding: 8px 14px; font-size: 14px; cursor: pointer; font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; font-size: 16px; }
.preset:hover { border-color: var(--accent); }
.styles { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.style { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 8px 4px 6px; cursor: pointer; font-size: 12px; color: var(--ink); transition: transform .12s, border-color .12s; }
.style svg { width: 30px; height: 30px; }
.style:hover { transform: translateY(-1px); }
.style.active { border-color: var(--accent); background: #fbf4ea; box-shadow: 0 0 0 1px var(--accent) inset; }
.headline { font-family: "Cormorant Garamond", Georgia, serif; font-size: 20px; font-weight: 600; margin: 0 0 6px; }
.pain { display: inline-flex; gap: 2px; }
.pain i { width: 6px; height: 6px; border-radius: 50%; background: #eadfd4; display: inline-block; }
.pain i.on { background: #d99a8b; }
.pop { transform-box: fill-box; transform-origin: center; animation: pop .35s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pop { from { transform: scale(.2); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.primary { border-radius: 999px; padding: 10px 20px; }
.ghost { border-radius: 999px; }
