/* SVG Split & Joint Tool — static stylesheet replacing Tailwind CDN */

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
body, html { margin: 0; padding: 0; }
button { cursor: pointer; font: inherit; background: none; border: none; padding: 0; }
input[type="number"], input[type="file"], select { font: inherit; }
a { color: inherit; }
svg { display: block; }

/* ── Layout ─────────────────────────────────────────────────── */
.min-h-screen  { min-height: 100vh; }
.w-full        { width: 100%; }
.max-w-2xl     { max-width: 42rem; }
.max-w-6xl     { max-width: 72rem; }
.mx-auto       { margin-left: auto; margin-right: auto; }
.ml-auto       { margin-left: auto; }
.shrink-0      { flex-shrink: 0; }
.overflow-hidden { overflow: hidden; }
.hidden        { display: none !important; }

/* ── Flex ────────────────────────────────────────────────────── */
.flex          { display: flex; }
.inline-flex   { display: inline-flex; }
.flex-wrap     { flex-wrap: wrap; }
.items-start   { align-items: flex-start; }
.items-center  { align-items: center; }
.items-end     { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }

/* ── Grid ────────────────────────────────────────────────────── */
.grid          { display: grid; }
.grid-cols-1   { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2   { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) {
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm\:px-6        { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\:text-3xl    { font-size: 1.875rem; line-height: 2.25rem; }
}
@media (min-width: 768px) {
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ── Gap ─────────────────────────────────────────────────────── */
.gap-1   { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2   { gap: 0.5rem; }
.gap-3   { gap: 0.75rem; }
.gap-4   { gap: 1rem; }

/* ── Padding ─────────────────────────────────────────────────── */
.p-2     { padding: 0.5rem; }
.p-3     { padding: 0.75rem; }
.p-8     { padding: 2rem; }
.px-2    { padding-left: 0.5rem;   padding-right: 0.5rem; }
.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.px-3    { padding-left: 0.75rem;  padding-right: 0.75rem; }
.px-4    { padding-left: 1rem;     padding-right: 1rem; }
.py-1    { padding-top: 0.25rem;   padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem;  padding-bottom: 0.375rem; }
.py-2    { padding-top: 0.5rem;    padding-bottom: 0.5rem; }
.py-6    { padding-top: 1.5rem;    padding-bottom: 1.5rem; }
.pt-4    { padding-top: 1rem; }

/* ── Margin ──────────────────────────────────────────────────── */
.mb-1  { margin-bottom: 0.25rem; }
.mb-2  { margin-bottom: 0.5rem; }
.mb-3  { margin-bottom: 0.75rem; }
.mb-4  { margin-bottom: 1rem; }
.mb-6  { margin-bottom: 1.5rem; }
.mt-1  { margin-top: 0.25rem; }
.mt-1\.5 { margin-top: 0.375rem; }
.mt-2  { margin-top: 0.5rem; }
.mt-3  { margin-top: 0.75rem; }
.mt-4  { margin-top: 1rem; }
.mt-8  { margin-top: 2rem; }

/* ── Sizing ──────────────────────────────────────────────────── */
.w-16  { width: 4rem; }
.w-20  { width: 5rem; }
.w-24  { width: 6rem; }
.w-28  { width: 7rem; }
.aspect-square { aspect-ratio: 1 / 1; }

/* ── Typography ──────────────────────────────────────────────── */
.text-xs   { font-size: 0.75rem;   line-height: 1rem; }
.text-sm   { font-size: 0.875rem;  line-height: 1.25rem; }
.text-2xl  { font-size: 1.5rem;    line-height: 2rem; }
.text-3xl  { font-size: 1.875rem;  line-height: 2.25rem; }
.text-\[11px\] { font-size: 11px; line-height: 1.4; }
.font-mono     { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.font-semibold { font-weight: 600; }
.font-bold     { font-weight: 700; }
.tracking-tight   { letter-spacing: -0.025em; }
.tracking-widest  { letter-spacing: 0.1em; }
.uppercase        { text-transform: uppercase; }
.truncate         { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leading-relaxed  { line-height: 1.625; }
.text-center      { text-align: center; }
.underline        { text-decoration-line: underline; }
.underline-offset-2 { text-underline-offset: 2px; }
.opacity-60       { opacity: 0.6; }

/* ── Borders ─────────────────────────────────────────────────── */
.border   { border-width: 1px; border-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-dashed { border-style: dashed; }
.rounded    { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }

/* ── Misc ────────────────────────────────────────────────────── */
.transition {
  transition-property: color, background-color, border-color, opacity;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.cursor-pointer    { cursor: pointer; }
.cursor-crosshair  { cursor: crosshair; }

/* ── Interactive states ──────────────────────────────────────── */
.disabled\:opacity-30:disabled    { opacity: 0.3; }
.disabled\:cursor-not-allowed:disabled { cursor: not-allowed; }
.hover\:opacity-100:hover { opacity: 1; }

/* ── Background colors ───────────────────────────────────────── */
.bg-black      { background-color: #000000; }
.bg-white      { background-color: #ffffff; }
.bg-slate-50   { background-color: #f8fafc; }
.bg-slate-100  { background-color: #f1f5f9; }
.bg-slate-800  { background-color: #1e293b; }
.bg-slate-900  { background-color: #0f172a; }
.bg-slate-950  { background-color: #020617; }
.bg-amber-400  { background-color: #fbbf24; }
.bg-amber-500  { background-color: #f59e0b; }
.bg-teal-400   { background-color: #2dd4bf; }
.bg-red-50     { background-color: #fef2f2; }
.bg-red-950    { background-color: #3b0000; }

.hover\:bg-slate-100:hover  { background-color: #f1f5f9; }
.hover\:bg-slate-200:hover  { background-color: #e2e8f0; }
.hover\:bg-slate-700:hover  { background-color: #334155; }
.hover\:bg-slate-800:hover  { background-color: #1e293b; }
.hover\:bg-amber-300:hover  { background-color: #fcd34d; }
.hover\:bg-amber-400:hover  { background-color: #fbbf24; }

/* ── Text colors ─────────────────────────────────────────────── */
.text-white      { color: #ffffff; }
.text-slate-100  { color: #f1f5f9; }
.text-slate-200  { color: #e2e8f0; }
.text-slate-300  { color: #cbd5e1; }
.text-slate-400  { color: #94a3b8; }
.text-slate-500  { color: #64748b; }
.text-slate-600  { color: #475569; }
.text-slate-700  { color: #334155; }
.text-slate-900  { color: #0f172a; }
.text-slate-950  { color: #020617; }
.text-amber-400  { color: #fbbf24; }
.text-amber-600  { color: #d97706; }
.text-teal-400   { color: #2dd4bf; }
.text-teal-600   { color: #0d9488; }
.text-red-300    { color: #fca5a5; }
.text-red-400    { color: #f87171; }
.text-red-700    { color: #b91c1c; }

.hover\:text-white:hover      { color: #ffffff; }
.hover\:text-slate-900:hover  { color: #0f172a; }

/* ── Border colors ───────────────────────────────────────────── */
.border-slate-300 { border-color: #cbd5e1; }
.border-slate-600 { border-color: #475569; }
.border-slate-700 { border-color: #334155; }
.border-slate-800 { border-color: #1e293b; }
.border-red-300   { border-color: #fca5a5; }
.border-red-800   { border-color: #991b1b; }

/* ── Input / select base ─────────────────────────────────────── */
input[type="number"], input[type="file"], select {
  color: inherit;
  background: transparent;
  border: 1px solid;
}
input[type="number"]:focus, select:focus {
  outline: 2px solid #fbbf24;
  outline-offset: 1px;
}
