:root {
  font-family: "Segoe UI", "Trebuchet MS", sans-serif;
  color: #1f2937;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.9), transparent 34%),
    linear-gradient(180deg, #f6efe7 0%, #eef4f7 45%, #f8fafc 100%);
  --page-width: 1380px;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-strong: rgba(255, 255, 255, 0.96);
  --surface-muted: rgba(246, 248, 251, 0.92);
  --border: rgba(148, 163, 184, 0.24);
  --border-strong: rgba(71, 85, 105, 0.18);
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.08);
  --shadow-card: 0 22px 54px rgba(15, 23, 42, 0.12);
  --accent: #b45309;
  --accent-deep: #7c2d12;
  --text-soft: #526072;
  --success: #15803d;
  --archive: #0f766e;
  --warning: #b45309;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  padding: 2rem 1.2rem 3rem;
  color: inherit;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(180, 83, 9, 0.08), transparent 30%),
    radial-gradient(circle at 85% 12%, rgba(15, 118, 110, 0.1), transparent 22%);
}

.site-header,
.login-card,
.app-shell {
  position: relative;
  z-index: 1;
  width: min(100%, var(--page-width));
  margin-left: auto;
  margin-right: auto;
}

.site-header {
  margin-bottom: 1.5rem;
  padding: 1.25rem 1.4rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(255, 248, 240, 0.92), rgba(255, 255, 255, 0.72));
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.brand-block {
  max-width: 540px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.site-header h1,
.card h2,
.board-column h3 {
  font-family: Georgia, "Times New Roman", serif;
}

.site-header h1 {
  margin: 0;
  font-size: clamp(2.2rem, 3vw, 3.4rem);
  line-height: 0.95;
  color: #111827;
}

.brand-copy {
  margin: 0.65rem 0 0;
  max-width: 48ch;
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.6;
}

.header-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  align-self: center;
  justify-content: flex-end;
}

.app-shell {
  display: grid;
  gap: 1.25rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1.35rem;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.card h2 {
  margin: 0 0 1rem;
  font-size: 1.7rem;
  color: #172033;
}

.feature-card {
  background:
    linear-gradient(145deg, rgba(255, 252, 248, 0.98), rgba(255, 255, 255, 0.82)),
    var(--surface);
}

.board-card {
  padding-bottom: 1.15rem;
}

.login-card {
  max-width: 560px;
  margin-top: 3rem;
}

.summary-banner {
  margin: 0 0 1rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(180, 83, 9, 0.14);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(180, 83, 9, 0.1), rgba(255, 255, 255, 0.7));
  color: #6b3e12;
  font-weight: 700;
}

.grid {
  display: grid;
  gap: 0.95rem;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  margin-bottom: 1rem;
}

.compact-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.inline-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-weight: 700;
  font-size: 0.93rem;
  color: #334155;
}

input,
select,
button {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.78rem 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.36);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(180, 83, 9, 0.6);
  box-shadow: 0 0 0 4px rgba(180, 83, 9, 0.12);
}

button {
  min-height: 44px;
  padding: 0.7rem 1rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #c2410c, #9a3412);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(154, 52, 18, 0.18);
  transition: transform 140ms ease, box-shadow 140ms ease, opacity 140ms ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(154, 52, 18, 0.22);
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

button.secondary {
  background: linear-gradient(135deg, #475569, #334155);
  box-shadow: 0 10px 22px rgba(51, 65, 85, 0.18);
}

button.done {
  background: linear-gradient(135deg, #16a34a, #166534);
  box-shadow: 0 10px 22px rgba(22, 101, 52, 0.18);
}

button.archive {
  background: linear-gradient(135deg, #0f766e, #115e59);
  box-shadow: 0 10px 22px rgba(15, 118, 110, 0.18);
}

.columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 1rem;
}


.multi-product-list {
  display: grid;
  gap: 0.45rem;
  max-height: 170px;
  overflow: auto;
  padding: 0.6rem;
  border: 1px solid rgba(148, 163, 184, 0.36);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
}

.product-choice {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.product-choice input {
  width: auto;
  min-height: auto;
}


.product-info {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  text-align: left;
  justify-content: flex-start;
}

.product-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-align: left;
}

.product-meta > span {
  text-align: left;
}

.product-thumb {
  width: 6rem;
  height: 6rem;
  border: 1px solid rgba(148, 163, 184, 0.7);
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  background-color: rgba(148, 163, 184, 0.15);
  flex: 0 0 6rem;
}

.color-square {
  width: 1.45rem;
  height: 1.45rem;
  border: 1px solid rgba(148, 163, 184, 0.7);
  border-radius: 4px;
  display: inline-block;
}

.board-column {
  padding: 1rem;
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  background: var(--surface-strong);
}

.board-column h3 {
  margin: 0 0 0.85rem;
  font-size: 1.2rem;
}

.pending-column {
  background: linear-gradient(180deg, rgba(255, 251, 235, 0.96), rgba(255, 255, 255, 0.92));
}

.active-column {
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.96), rgba(255, 255, 255, 0.92));
}

.finished-column {
  background: linear-gradient(180deg, rgba(240, 253, 244, 0.96), rgba(255, 255, 255, 0.92));
}

.archived-column {
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(255, 255, 255, 0.92));
}

.list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.order-item,
.filament-item,
.list-row,
.color-line {
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 18px;
  background: var(--surface-muted);
}

.order-item {
  padding: 0.95rem;
}

.order-title {
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 0.35rem;
  color: #111827;
}

.order-details {
  font-size: 0.92rem;
  line-height: 1.45;
  margin-bottom: 0.75rem;
  display: grid;
  gap: 0.2rem;
  color: #475569;
}

.order-flag-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.35rem;
}

.order-flag {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
  color: #475569;
  font-size: 0.84rem;
  font-weight: 700;
}

.order-flag.is-complete {
  background: rgba(22, 163, 74, 0.14);
  color: #166534;
}

.order-actions,
.row-actions {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.list-row,
.filament-item {
  padding: 0.8rem 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.color-editor {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.color-line {
  display: grid;
  grid-template-columns: 30px 64px minmax(0, 1fr) auto auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.55rem;
}

.error {
  color: #b91c1c;
  font-weight: 800;
  min-height: 1.2rem;
}

.color-picker-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.color-preview {
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid rgba(148, 163, 184, 0.7);
  border-radius: 999px;
  display: inline-block;
  background: #ffffff;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.72);
}

.filament-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: flex-start;
  color: #334155;
}

.filament-swatch {
  flex: 0 0 2.2rem;
}

@media (max-width: 820px) {
  body {
    padding: 1rem 0.8rem 2rem;
  }

  .site-header,
  .card {
    border-radius: 20px;
  }

  .site-header {
    padding: 1rem;
  }

  .card {
    padding: 1rem;
  }

  .color-line {
    grid-template-columns: 1fr;
  }

  .list-row,
  .filament-item {
    align-items: flex-start;
    flex-direction: column;
  }
}
