  :root { --cream:#f6e7c8; --cream2:#fbf1dc; --mustard:#e1a130; --orange:#d9622b; --rust:#a63d1f; --olive:#6b7a2f; --teal:#2f6f6a; --plum:#5b2a4a; }
  html, body { margin:0; }
  body {
    font-family:"Lora", Georgia, serif; font-size:16px; color:var(--plum);
    background:repeating-radial-gradient(circle at 50% 120%, var(--mustard) 0 40px, var(--orange) 40px 80px, var(--rust) 80px 120px, var(--olive) 120px 160px, var(--teal) 160px 200px, var(--cream) 200px 240px);
    background-attachment:fixed;
  }
  #bg { position:fixed; inset:0; width:100vw; height:100vh; z-index:0; pointer-events:none; }
  #page { position:relative; z-index:1; max-width:960px; margin:0 auto; padding:16px 16px 40px; }
  a { color:var(--teal); }
  .groovy { font-family:"Shrikhand","Cooper Black",Georgia,serif; font-weight:400; }
  .hero { text-align:center; background:rgba(246,231,200,0.9); border:5px solid var(--rust); border-radius:48% 52% 46% 54% / 18% 20% 16% 18%;
          box-shadow:0 0 0 5px var(--mustard), 0 0 0 10px var(--olive), 0 14px 30px rgba(60,20,10,.3); padding:22px 16px 18px; margin:10px 10px 22px; }
  h1 { font-family:"Shrikhand","Cooper Black",Georgia,serif; font-weight:400; font-size:clamp(34px,7vw,60px); line-height:1.05; margin:4px 0;
       color:var(--orange); text-shadow:3px 3px 0 var(--mustard), 6px 6px 0 var(--rust); }
  h2 { font-family:"Shrikhand","Cooper Black",Georgia,serif; font-weight:400; font-size:24px; color:var(--teal); margin:0 0 8px; }
  .tagline { font-style:italic; font-size:19px; margin:4px 0 0; }
  .center { text-align:center; }
  .blink { color:var(--rust); font-weight:bold; }
  .flowers svg { width:30px; height:30px; vertical-align:middle; margin:0 4px; }
  .spin { animation:spin 14s linear infinite; transform-origin:50% 50%; }
  @keyframes spin { to { transform:rotate(360deg); } }
  @media (prefers-reduced-motion: reduce) { .spin { animation:none; } }
  .panel { background:rgba(246,231,200,0.9); border:4px solid var(--rust); border-radius:22px; box-shadow:0 0 0 4px var(--mustard), 0 8px 18px rgba(60,20,10,.25); padding:14px 16px; margin:20px 6px; }
  .panel.inset { background:rgba(251,241,220,0.95); border:2px dashed var(--olive); box-shadow:none; border-radius:16px; margin:10px 0; }
  table.grid { border-collapse:separate; border-spacing:0; width:100%; background:var(--cream2); border:2px solid var(--rust); border-radius:12px; overflow:hidden; }
  table.grid th, table.grid td { border-bottom:1px solid #e3cfa6; padding:5px 7px; text-align:left; vertical-align:top; font-size:15px; }
  table.grid th { background:var(--teal); color:var(--cream); font-weight:700; }
  table.grid tr:nth-child(even) td { background:#f3e2bf; }
  table.grid tr.hidden td { color:#a08a6a; text-decoration:line-through; }
  button, select, input, textarea { font-family:inherit; font-size:15px; }
  button { background:var(--mustard); color:var(--plum); border:2px solid var(--rust); border-radius:999px; padding:3px 14px; cursor:pointer; font-weight:700; margin:1px; }
  button:hover { background:var(--orange); color:var(--cream); }
  button:disabled { opacity:.5; cursor:default; }
  input, select, textarea { border:2px solid var(--olive); background:var(--cream2); border-radius:10px; padding:3px 6px; color:var(--plum); }
  input:focus, select:focus, textarea:focus, button:focus-visible { outline:3px solid var(--teal); outline-offset:1px; }
  .row { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin:5px 0; }
  .form-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(200px,1fr)); gap:8px 14px; }
  .form-grid label { display:flex; flex-direction:column; font-weight:700; font-size:14px; }
  .tag { display:inline-block; padding:1px 8px; border-radius:999px; font-size:13px; background:var(--olive); color:var(--cream); }
  .tag.admin { background:var(--orange); }
  .msg { border-bottom:2px dotted var(--mustard); padding:8px 0; }
  .msg .meta { font-size:13px; font-style:italic; color:var(--rust); }
  .note { font-size:13px; font-style:italic; }
  .counter { font-family:"Shrikhand","Cooper Black",Georgia,serif; background:var(--plum); color:var(--mustard); padding:1px 10px; border-radius:999px; letter-spacing:2px; }
  hr { border:0; border-top:3px dotted var(--rust); margin:14px 0; }
  .scroll-x { overflow-x:auto; }
  .footer { background:rgba(246,231,200,0.9); border-radius:999px; padding:8px 16px; margin:20px auto 0; max-width:520px; }

  /* ---------- mobile friendly ---------- */
  input, select, textarea { font-size:16px; }           /* stops iOS zoom on focus */
  @media (max-width:640px) {
    #page { padding:8px 10px 32px; }
    .panel { margin:14px 0; padding:10px; }
    button { min-height:40px; padding:6px 14px; }
    input, select { min-height:38px; }
    .row > input, .row > select, .row > textarea { flex:1 1 100%; }
    .row > button { flex:1 1 auto; }
    .form-grid { grid-template-columns:1fr; }
    .scroll-x { overflow-x:visible; }
    table.cards, table.cards tbody, table.cards tr, table.cards td { display:block; width:100%; box-sizing:border-box; }
    table.cards thead { display:none; }
    table.cards tr { margin:0 0 10px; border:2px solid currentColor; border-radius:8px; overflow:hidden; }
    table.cards td { display:flex; gap:10px; border:0; border-bottom:1px dotted #999; padding:6px 8px; }
    table.cards td::before { content:attr(data-label); flex:0 0 38%; font-weight:bold; }
    table.cards td[data-label="Actions"]::before { content:""; flex:0 0 0; }
    table.cards td[data-label="Actions"] button { flex:1; }
    table.cards td[colspan] { display:block; }
    table.cards td[colspan]::before { content:none; }
  }
  .err { color:var(--rust); font-weight:bold; background:rgba(246,231,200,0.95); border:3px solid var(--rust); border-radius:16px; padding:8px 12px; }
  .err.info { color:var(--teal); border-color:var(--teal); }
  .invite-link { width:100%; box-sizing:border-box; font-size:13px; }
  [hidden] { display:none !important; }
