:root {
  --ink: #1c2320;
  --muted: #6b7078;
  --soft: #4a4f57;
  --line: #e4e2ee;
  --line2: #efeef4;
  --bg: #fafafb;
  --card: #ffffff;
  --green: #22a35a;
  --green-dark: #1a7a42;
  --green-soft: #eef9f2;
  --green-line: #bfe6cd;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px; -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); }
a:hover { color: var(--green); }
button { font-family: inherit; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.page { max-width: 1110px; margin: 0 auto; padding: 22px 16px 56px; display: flex; flex-direction: column; gap: 16px; }

/* header */
.top { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; justify-content: space-between; }
.title-wrap { display: flex; gap: 10px; align-items: center; min-width: 0; }
.brand { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.top h1 { margin: 0; font-size: 22px; letter-spacing: -0.01em; line-height: 1.2; }
.who { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-end; padding-top: 6px; }
.save-state { color: var(--green); font-size: 12px; margin-right: 4px; }
.ghost {
  font-size: 12.5px; font-weight: 500; color: var(--ink); text-decoration: none; background: #fff;
  border: 1.5px solid var(--line); border-radius: 9px; padding: 6px 11px; cursor: pointer; white-space: nowrap;
}
.ghost:hover { border-color: var(--ink); color: var(--ink); }
.primary {
  width: 100%; margin-top: 20px; padding: 13px 16px; border: 0; border-radius: 12px;
  background: var(--ink); color: #fff; font-size: 15px; font-weight: 700; cursor: pointer;
}
.primary:disabled { opacity: .6; cursor: default; }
.err { color: #c0392b; font-size: 13px; margin-top: 10px; min-height: 1em; }

/* swinging tees */
@keyframes sway { 0% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } 100% { transform: rotate(-5deg); } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes twinkle { 0%, 100% { opacity: .2; transform: scale(.6); } 50% { opacity: 1; transform: scale(1); } }
.tees { transform-origin: 50% 6%; animation: sway 3.2s ease-in-out infinite; display: block; }
.pop { animation: pop .45s ease-out 1; }
.spark { animation: twinkle 1.6s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }

/* modals */
.modal-wrap { position: fixed; inset: 0; background: rgba(28,35,32,.45); display: grid; place-items: center; padding: 16px; z-index: 30; }
.modal { background: #fff; border-radius: 20px; max-width: 460px; width: 100%; padding: 22px 24px; box-shadow: 0 20px 60px rgba(0,0,0,.18); }
.modal h2 { margin: 0 0 6px; font-size: 20px; }
.modal p { margin: 0 0 16px; color: var(--soft); line-height: 1.5; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.go { border: 0; border-radius: 10px; padding: 9px 14px; background: var(--ink); color: #fff; font-weight: 700; cursor: pointer; font-size: 13.5px; }

@media (prefers-reduced-motion: reduce) { .tees, .pop, .spark { animation: none; } }
