* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

html, body {
  height: 100%;
  /*background-color: #f9fafb;   gray-50 */
}

/* Flex center container */
body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

/* Card container */
.bg-white {
  background-color: white;
}
.rounded-3xl {
  border-radius: 1.5rem;
}
.shadow-2xl {
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}
.p-6 { padding: 1.5rem; }
.sm\:p-8 { padding: 2rem; }
.w-full { width: 100%; }
.max-w-lg { max-width: 32rem; }
.text-center { text-align: center; }

/* Typography */
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.sm\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.font-extrabold { font-weight: 800; }
.text-gray-800 { color: #1f2937; }
.text-gray-600 { color: #4b5563; }
.text-green-600 { color: #16a34a; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.tracking-tight { letter-spacing: -0.01562em; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }

/* Inputs and buttons */
input[type="number"] {
  border: 1px solid #d1d5db; /*  gray-300 */
  padding: 0.5rem;
  border-radius: 0.375rem;
  width: 100%;

}
input, textarea{   font-size:1.2em;  padding: 0.5rem; border: 1px solid #d1d5db; /*  gray-300 */}
button {
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  background-color: #2563eb; /*  blue-600 */
  color: white;
  font-weight: 500;
  cursor: pointer;
  border:0px;
}
button:hover {
  background-color: #1d4ed8; /*  blue-700 */
}

/* Flex layouts */
.flex { display: flex; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.w-1\/2 { width: 50%; }
.w-1\/3 { width: 33.3333%; }

/* Scrollable piece list */
.piece-list {
  overflow-y: auto;
  max-height: 300px;
  margin-bottom: 1rem;
}

/* Trapezoid styles */
.trapezoid-container {
  position: relative;
  margin-left: 15px;
}
.trapezoid-top {
  background: #16a34a; /* Tailwind indigo-600 */
  clip-path: polygon(10% 0%, 90% 0%, 100% 100%, 0% 100%);
  border-left: 2px solid #166534;
  border-right: 2px solid #166534;
  border-top: 2px solid #16a34a;
}
.trapezoid-front {
  position: absolute;
  left: 0;
  background: #166534;
}
