*,::before,::after{box-sizing:border-box;margin:0;padding:0}

/* ── Base ─────────────────────────────────────────────────────────────────── */
body{background:#fff;color:#0a0a0f;font-family:ui-sans-serif,system-ui,-apple-system,sans-serif;line-height:1.5}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}

/* ── Layout ───────────────────────────────────────────────────────────────── */
.flex{display:flex}
.flex-col{flex-direction:column}
.items-center{align-items:center}
.justify-center{justify-content:center}
.min-h-screen{min-height:100vh}

/* ── Grid ─────────────────────────────────────────────────────────────────── */
.grid{display:grid}
.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}
.gap-1{gap:.25rem}
.gap-2{gap:.5rem}
.gap-3{gap:.75rem}
.gap-4{gap:1rem}
.gap-6{gap:1.5rem}
.gap-8{gap:2rem}

/* ── Spacing ──────────────────────────────────────────────────────────────── */
.p-6{padding:1.5rem}
.px-8{padding-left:2rem;padding-right:2rem}
.py-10{padding-top:2.5rem;padding-bottom:2.5rem}
.mt-2{margin-top:.5rem}
.space-y-2>*+*{margin-top:.5rem}

/* ── Sizing ───────────────────────────────────────────────────────────────── */
.w-full{width:100%}
.w-auto{width:auto}
.max-w-xl{max-width:36rem}
.max-w-sm{max-width:24rem}
.h-4{height:1rem}
.w-4{width:1rem}
.h-7{height:1.75rem}
.w-7{width:1.75rem}
.h-14{height:3.5rem}
.w-14{width:3.5rem}
.h-16{height:4rem}

/* ── Typography ───────────────────────────────────────────────────────────── */
.text-xs{font-size:.75rem;line-height:1rem}
.text-sm{font-size:.875rem;line-height:1.25rem}
.text-xl{font-size:1.25rem;line-height:1.75rem}
.text-lg{font-size:1.125rem;line-height:1.75rem}
.font-normal{font-weight:400}
.font-medium{font-weight:500}
.font-semibold{font-weight:600}
.text-center{text-align:center}
.underline{text-decoration:underline}
.leading-none{line-height:1}

/* ── Colours ──────────────────────────────────────────────────────────────── */
.text-red-500{color:#ef4444}
.text-gray-400{color:#9ca3af}
.text-green-600{color:#16a34a}
.text-green-700{color:#15803d}
.text-green-800{color:#166534}
.bg-green-50{background:#f0fdf4}
.bg-green-100{background:#dcfce7}
.border-green-200{border-color:#bbf7d0}

/* ── Borders / Radius ─────────────────────────────────────────────────────── */
.border{border-width:1px;border-style:solid}
.rounded{border-radius:.25rem}
.rounded-full{border-radius:9999px}
.rounded-xl{border-radius:.75rem}

/* ── Cursor ───────────────────────────────────────────────────────────────── */
.cursor-pointer{cursor:pointer}

/* ── Hover ────────────────────────────────────────────────────────────────── */
.hover\:opacity-75:hover{opacity:.75}
.hover\:text-green-900:hover{color:#14532d}

/* ── Components (from old inline styles) ─────────────────────────────────── */
.inp{display:flex;height:2.25rem;width:100%;border-radius:.375rem;border:1px solid #e4e4eb;background:transparent;padding:.25rem .75rem;font-size:.875rem;outline:none;box-shadow:0 1px 2px 0 rgb(0 0 0/.05);transition:border-color .15s,box-shadow .15s}
.inp:focus{border-color:#1a1a2e;box-shadow:0 0 0 3px rgb(26 26 46/.2)}
.inp.err{border-color:#ef4444;box-shadow:0 0 0 3px rgb(239 68 68/.2)}
.inp:disabled{opacity:.5;cursor:not-allowed}
select.inp{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right .5rem center;padding-right:2rem}
textarea.inp{height:auto;resize:vertical;padding:.5rem .75rem}
.btn{display:inline-flex;align-items:center;justify-content:center;border-radius:.375rem;font-size:.875rem;font-weight:500;background:#0a0a0f;color:#fafafa;height:2.25rem;padding:.5rem 1rem;width:100%;border:none;cursor:pointer;transition:opacity .15s}
.btn:hover{opacity:.88}
.btn:disabled{opacity:.5;pointer-events:none}
.ferr{font-size:.75rem;color:#ef4444;margin-top:.25rem;display:none}
.ferr.show{display:block}
.alert{border-radius:.375rem;padding:.75rem 1rem;font-size:.875rem;margin-bottom:1rem}
.alert-err{background:rgb(239 68 68/.08);border:1px solid rgb(239 68 68/.3);color:#b91c1c}
.alert-ok{background:rgb(34 197 94/.08);border:1px solid rgb(34 197 94/.3);color:#15803d}

/* ── Helpers to replace inline styles ────────────────────────────────────── */
.text-muted{color:#6b7280}
.text-dark{color:#0a0a0f}
.w-30{width:30%}
.w-70{width:70%}
.accent-dark{accent-color:#0a0a0f}

/* ── Responsive — md (768px) ──────────────────────────────────────────────── */
@media(min-width:768px){
  .md\:p-10{padding:2.5rem}
  .md\:gap-8{gap:2rem}
  .md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}
  .md\:col-span-2{grid-column:span 2/span 2}
}
