/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */
@layer properties;
@layer theme, base, components, utilities;

@layer theme {

  :root,
  :host {
    --font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
      "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
      "Courier New", monospace;
    --color-lime-400: oklch(84.1% 0.238 128.85);
    --color-blue-400: oklch(70.7% 0.165 254.624);
    --color-purple-400: oklch(71.4% 0.203 305.504);
    --color-stone-200: #e7e5e4;
    --color-stone-400: #a8a29e;
    --color-stone-500: #78716c;
    --color-stone-800: #292524;
    --color-stone-900: #1c1917;
    --color-stone-950: #0c0a09;
    --spacing: 0.25rem;
    --container-4xl: 56rem;
    --text-xs: 0.75rem;
    --text-xs--line-height: calc(1 / 0.75);
    --text-sm: 0.875rem;
    --text-sm--line-height: calc(1.25 / 0.875);
    --text-lg: 1.125rem;
    --text-lg--line-height: calc(1.75 / 1.125);
    --text-xl: 1.25rem;
    --text-xl--line-height: calc(1.75 / 1.25);
    --text-2xl: 1.5rem;
    --text-2xl--line-height: calc(2 / 1.5);
    --text-3xl: 1.875rem;
    --text-3xl--line-height: calc(2.25 / 1.875);
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --tracking-tight: -0.025em;
    --radius-lg: 0.5rem;
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
  }
}

@layer base {

  *,
  ::after,
  ::before,
  ::backdrop,
  ::file-selector-button {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0 solid;
  }

  html,
  :host {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }

  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }

  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-size: inherit;
    font-weight: inherit;
  }

  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }

  b,
  strong {
    font-weight: bolder;
  }

  code,
  kbd,
  samp,
  pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }

  small {
    font-size: 80%;
  }

  sub,
  sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
  }

  sub {
    bottom: -0.25em;
  }

  sup {
    top: -0.5em;
  }

  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }

  :-moz-focusring {
    outline: auto;
  }

  progress {
    vertical-align: baseline;
  }

  summary {
    display: list-item;
  }

  ol,
  ul,
  menu {
    list-style: none;
  }

  img,
  svg,
  video,
  canvas,
  audio,
  iframe,
  embed,
  object {
    display: block;
    vertical-align: middle;
  }

  img,
  video {
    max-width: 100%;
    height: auto;
  }

  button,
  input,
  select,
  optgroup,
  textarea,
  ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    border-radius: 0;
    background-color: transparent;
    opacity: 1;
  }

  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }

  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }

  ::file-selector-button {
    margin-inline-end: 4px;
  }

  ::placeholder {
    opacity: 1;
  }

  @supports (not (-webkit-appearance: -apple-pay-button)) or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentcolor;

      @supports (color: color-mix(in lab, red, red)) {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }

  textarea {
    resize: vertical;
  }

  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }

  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }

  ::-webkit-datetime-edit {
    display: inline-flex;
  }

  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }

  ::-webkit-datetime-edit,
  ::-webkit-datetime-edit-year-field,
  ::-webkit-datetime-edit-month-field,
  ::-webkit-datetime-edit-day-field,
  ::-webkit-datetime-edit-hour-field,
  ::-webkit-datetime-edit-minute-field,
  ::-webkit-datetime-edit-second-field,
  ::-webkit-datetime-edit-millisecond-field,
  ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }

  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }

  :-moz-ui-invalid {
    box-shadow: none;
  }

  button,
  input:where([type="button"], [type="reset"], [type="submit"]),
  ::file-selector-button {
    appearance: button;
  }

  ::-webkit-inner-spin-button,
  ::-webkit-outer-spin-button {
    height: auto;
  }

  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}

@layer utilities {
  .static {
    position: static;
  }

  .mx-auto {
    margin-inline: auto;
  }

  .mt-8 {
    margin-top: calc(var(--spacing) * 8);
  }

  .mt-10 {
    margin-top: calc(var(--spacing) * 10);
  }

  .mb-2 {
    margin-bottom: calc(var(--spacing) * 2);
  }

  .mb-4 {
    margin-bottom: calc(var(--spacing) * 4);
  }

  .flex {
    display: flex;
  }

  .grid {
    display: grid;
  }

  .table {
    display: table;
  }

  .h-full {
    height: 100%;
  }

  .max-w-4xl {
    max-width: var(--container-4xl);
  }

  .flex-1 {
    flex: 1;
  }

  .grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .flex-col {
    flex-direction: column;
  }

  .items-center {
    align-items: center;
  }

  .justify-between {
    justify-content: space-between;
  }

  .gap-3 {
    gap: calc(var(--spacing) * 3);
  }

  .gap-4 {
    gap: calc(var(--spacing) * 4);
  }

  .overflow-auto {
    overflow: auto;
  }

  .rounded {
    border-radius: 0.25rem;
  }

  .rounded-lg {
    border-radius: var(--radius-lg);
  }

  .border {
    border-style: var(--tw-border-style);
    border-width: 1px;
  }

  .border-b {
    border-bottom-style: var(--tw-border-style);
    border-bottom-width: 1px;
  }

  .border-stone-800 {
    border-color: var(--color-stone-800);
  }

  .bg-stone-900 {
    background-color: var(--color-stone-900);
  }

  .bg-stone-950 {
    background-color: var(--color-stone-950);
  }

  .p-4 {
    padding: calc(var(--spacing) * 4);
  }

  .p-6 {
    padding: calc(var(--spacing) * 6);
  }

  .text-center {
    text-align: center;
  }

  .text-2xl {
    font-size: var(--text-2xl);
    line-height: var(--tw-leading, var(--text-2xl--line-height));
  }

  .text-3xl {
    font-size: var(--text-3xl);
    line-height: var(--tw-leading, var(--text-3xl--line-height));
  }

  .text-lg {
    font-size: var(--text-lg);
    line-height: var(--tw-leading, var(--text-lg--line-height));
  }

  .text-sm {
    font-size: var(--text-sm);
    line-height: var(--tw-leading, var(--text-sm--line-height));
  }

  .text-xl {
    font-size: var(--text-xl);
    line-height: var(--tw-leading, var(--text-xl--line-height));
  }

  .text-xs {
    font-size: var(--text-xs);
    line-height: var(--tw-leading, var(--text-xs--line-height));
  }

  .font-bold {
    --tw-font-weight: var(--font-weight-bold);
    font-weight: var(--font-weight-bold);
  }

  .font-semibold {
    --tw-font-weight: var(--font-weight-semibold);
    font-weight: var(--font-weight-semibold);
  }

  .tracking-tight {
    --tw-tracking: var(--tracking-tight);
    letter-spacing: var(--tracking-tight);
  }

  .text-blue-400 {
    color: var(--color-blue-400);
  }

  .text-lime-400 {
    color: var(--color-lime-400);
  }

  .text-purple-400 {
    color: var(--color-purple-400);
  }

  .text-stone-200 {
    color: var(--color-stone-200);
  }

  .text-stone-400 {
    color: var(--color-stone-400);
  }

  .text-stone-500 {
    color: var(--color-stone-500);
  }

  .hover\:text-stone-200 {
    &:hover {
      @media (hover: hover) {
        color: var(--color-stone-200);
      }
    }
  }

  /* --- Login/Register form utilities --- */
  .min-h-\[80vh\] {
    min-height: 80vh;
  }

  .justify-center {
    justify-content: center;
  }

  .w-full {
    width: 100%;
  }

  .max-w-md {
    max-width: 28rem;
  }

  .rounded-xl {
    border-radius: 0.75rem;
  }

  .p-3 {
    padding: calc(var(--spacing) * 3);
  }

  .p-8 {
    padding: calc(var(--spacing) * 8);
  }

  .py-2\.5 {
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
  }

  .px-4 {
    padding-left: calc(var(--spacing) * 4);
    padding-right: calc(var(--spacing) * 4);
  }

  .mb-1\.5 {
    margin-bottom: 0.375rem;
  }

  .mb-6 {
    margin-bottom: calc(var(--spacing) * 6);
  }

  .mb-8 {
    margin-bottom: calc(var(--spacing) * 8);
  }

  .mt-1 {
    margin-top: calc(var(--spacing) * 1);
  }

  .mt-6 {
    margin-top: calc(var(--spacing) * 6);
  }

  .block {
    display: block;
  }

  .space-y-5> :not(:first-child) {
    margin-top: calc(var(--spacing) * 5);
  }

  .shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  }

  .font-medium {
    font-weight: 500;
  }

  .transition-colors {
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
  }

  .cursor-pointer {
    cursor: pointer;
  }

  .border-stone-700 {
    border-color: #44403c;
  }

  .bg-lime-500 {
    background-color: oklch(76.8% 0.233 130.85);
  }

  .text-stone-950 {
    color: var(--color-stone-950);
  }

  .text-stone-600 {
    color: #57534e;
  }

  .text-red-400 {
    color: oklch(70.4% 0.191 22.216);
  }

  .text-lime-300 {
    color: oklch(88.2% 0.222 128.85);
  }

  .bg-red-500\/10 {
    background-color: rgba(239, 68, 68, 0.1);
  }

  .border-red-500\/20 {
    border-color: rgba(239, 68, 68, 0.2);
  }

  .placeholder-stone-600::placeholder {
    color: #57534e;
  }

  .hover\:bg-lime-400 {
    &:hover {
      @media (hover: hover) {
        background-color: oklch(84.1% 0.238 128.85);
      }
    }
  }

  .hover\:text-lime-300 {
    &:hover {
      @media (hover: hover) {
        color: oklch(88.2% 0.222 128.85);
      }
    }
  }

  .focus\:outline-none:focus {
    outline: none;
  }

  .focus\:border-lime-400\/50:focus {
    border-color: rgba(163, 230, 53, 0.5);
  }

  .focus\:ring-1:focus {
    box-shadow: 0 0 0 1px var(--tw-ring-color, rgba(163, 230, 53, 0.2));
  }

  .focus\:ring-2:focus {
    box-shadow: 0 0 0 2px var(--tw-ring-color, rgba(163, 230, 53, 0.5));
  }

  .focus\:ring-lime-400\/20:focus {
    --tw-ring-color: rgba(163, 230, 53, 0.2);
  }

  .focus\:ring-lime-400\/50:focus {
    --tw-ring-color: rgba(163, 230, 53, 0.5);
  }
}

body {
  background-color: var(--color-stone-950);
  color: var(--color-stone-200);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@property --tw-border-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}

@property --tw-font-weight {
  syntax: "*";
  inherits: false;
}

@property --tw-tracking {
  syntax: "*";
  inherits: false;
}

@layer properties {
  @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {

    *,
    ::before,
    ::after,
    ::backdrop {
      --tw-border-style: solid;
      --tw-font-weight: initial;
      --tw-tracking: initial;
    }
  }
}

/* =============================================
   APP SHELL — Sidebar Layout
   ============================================= */

.app-shell {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.app-content {
  flex: 1;
  overflow-y: auto;
  background-color: var(--color-stone-950);
}

/* --- Sidebar --- */

.sidebar {
  width: 240px;
  min-width: 240px;
  height: 100%;
  background-color: var(--color-stone-900);
  border-right: 1px solid var(--color-stone-800);
  display: flex;
  flex-direction: column;
  transition: width 0.2s ease, min-width 0.2s ease;
}

.sidebar-logo {
  padding: 1.25rem 1rem;
  border-bottom: 1px solid var(--color-stone-800);
  overflow: hidden;
  white-space: nowrap;
}

.sidebar-logo-img {
  height: 28px;
  width: auto;
  transition: opacity 0.15s ease;
}

.sidebar-logo-icon {
  display: none;
  height: 32px;
  width: 32px;
  object-fit: contain;
}

.sidebar-nav {
  flex: 1;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.5rem;
  color: var(--color-stone-400);
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.15s ease;
  white-space: nowrap;
  overflow: hidden;
}

.sidebar-link span {
  transition: opacity 0.15s ease;
}

.sidebar-link:hover {
  color: var(--color-stone-200);
  background-color: var(--color-stone-800);
}

.sidebar-link.active {
  color: #a3e635;
  /* lime-400 */
  background-color: rgba(163, 230, 53, 0.08);
}

.sidebar-link.active svg {
  stroke: #a3e635;
}

/* Sidebar Toggle Button */

.sidebar-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--color-stone-800);
  color: var(--color-stone-500);
  cursor: pointer;
  padding: 0.375rem;
  border-radius: 0.375rem;
  transition: all 0.15s ease;
  margin: 0.25rem 0.5rem 0.5rem;
  height: 30px;
  width: calc(100% - 1rem);
}

.sidebar-toggle-btn:hover {
  color: var(--color-stone-200);
  background-color: var(--color-stone-800);
}

.sidebar-toggle-btn svg {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

/* Sidebar User */

.sidebar-user {
  padding: 0.75rem;
  border-top: 1px solid var(--color-stone-800);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.sidebar-user-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  flex: 1;
}

.sidebar-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a3e635, #65a30d);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  color: #0c0a09;
  flex-shrink: 0;
}

.sidebar-user-details {
  min-width: 0;
  transition: opacity 0.15s ease;
}

.sidebar-logout-btn {
  background: none;
  border: none;
  color: var(--color-stone-500);
  cursor: pointer;
  padding: 0.375rem;
  border-radius: 0.375rem;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
}

.sidebar-logout-btn:hover {
  color: #ef4444;
  background-color: rgba(239, 68, 68, 0.1);
}

/* --- Sidebar Collapsed State --- */

.sidebar.sidebar-collapsed {
  width: 64px;
  min-width: 64px;
}

.sidebar-collapsed .sidebar-logo {
  padding: 0.875rem 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sidebar-collapsed .sidebar-logo-full {
  display: none;
}

.sidebar-collapsed .sidebar-logo-icon {
  display: block;
}

.sidebar-collapsed .sidebar-nav {
  padding: 0.5rem 0.375rem;
  align-items: center;
}

.sidebar-collapsed .sidebar-link {
  justify-content: center;
  padding: 0.625rem;
  gap: 0;
}

.sidebar-collapsed .sidebar-link span {
  opacity: 0;
  width: 0;
  overflow: hidden;
}

.sidebar-collapsed .sidebar-link svg {
  flex-shrink: 0;
}

.sidebar-collapsed .sidebar-toggle-btn {
  margin: 0.25rem 0.375rem 0.5rem;
  width: calc(100% - 0.75rem);
}

.sidebar-collapsed .sidebar-toggle-btn svg {
  transform: rotate(180deg);
}

.sidebar-collapsed .sidebar-user {
  padding: 0.75rem 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.sidebar-collapsed .sidebar-user-info {
  flex: 0;
  justify-content: center;
}

.sidebar-collapsed .sidebar-user-details {
  opacity: 0;
  width: 0;
  height: 0;
  overflow: hidden;
  position: absolute;
}

.sidebar-collapsed .sidebar-logout-btn {
  display: none;
}

.sidebar-collapsed .sidebar-divider {
  margin: 0.75rem 0.375rem;
}

/* =============================================
   ALPHA BANNER
   ============================================= */

.alpha-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 1.25rem;
  background: #a3e635;
  border-bottom: 1px solid #65a30d;
  border-radius: 0;
  font-size: 0.8125rem;
  color: #1c1917;
  line-height: 1.5;
}

body.has-alpha-banner .app-shell {
  margin-top: var(--alpha-banner-h, 43px);
  height: calc(100vh - var(--alpha-banner-h, 43px));
}

.alpha-banner-content {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-wrap: wrap;
}

.alpha-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  background: rgba(0, 0, 0, 0.15);
  color: #1c1917;
  font-weight: 700;
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  border-radius: 9999px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.alpha-link {
  color: #1c1917;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
  transition: color 0.15s ease;
}

.alpha-link:hover {
  color: #292524;
}

.alpha-dismiss {
  background: none;
  border: none;
  color: rgba(0, 0, 0, 0.5);
  cursor: pointer;
  font-size: 1.125rem;
  padding: 0.25rem;
  line-height: 1;
  border-radius: 0.25rem;
  transition: color 0.15s ease;
  flex-shrink: 0;
}

.alpha-dismiss:hover {
  color: #1c1917;
}

/* =============================================
   PAGE LAYOUT
   ============================================= */

.page-container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2rem;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}

/* =============================================
   DASHBOARD — Stats & Actions
   ============================================= */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.stat-card {
  background-color: var(--color-stone-900);
  border: 1px solid var(--color-stone-800);
  border-radius: 0.75rem;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: border-color 0.2s ease;
}

.stat-card:hover {
  border-color: var(--color-stone-500);
}

.stat-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.75rem;
  background-color: var(--color-stone-950);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-stone-400);
  flex-shrink: 0;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
}

.action-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background-color: var(--color-stone-900);
  border: 1px solid var(--color-stone-800);
  border-radius: 0.75rem;
  color: var(--color-stone-400);
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.action-card:hover {
  color: var(--color-stone-200);
  border-color: #a3e635;
  background-color: rgba(163, 230, 53, 0.04);
}

/* =============================================
   CARD TABLE — Projects, etc.
   ============================================= */

.card-table {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.card-table-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background-color: var(--color-stone-900);
  border: 1px solid var(--color-stone-800);
  border-radius: 0.75rem;
  transition: border-color 0.2s ease;
}

.card-table-row:hover {
  border-color: var(--color-stone-500);
}

.card-table-header {
  display: flex;
  align-items: center;
  padding: 0 1.25rem 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-stone-500);
}

.col-grow {
  flex: 1;
  min-width: 0;
}

.col-sm {
  width: 100px;
  flex-shrink: 0;
  text-align: right;
}

.col-status {
  width: 130px;
  flex-shrink: 0;
  text-align: right;
}

.col-xs {
  width: 32px;
  flex-shrink: 0;
  text-align: right;
}

.project-icon {
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
  background-color: var(--color-stone-950);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-stone-500);
  flex-shrink: 0;
}

/* =============================================
   SPOOL TABLE — Inventory
   ============================================= */

.spool-table-wrap {
  background-color: var(--color-stone-900);
  border: 1px solid var(--color-stone-800);
  border-radius: 0.75rem;
  overflow-x: auto;
  overflow-y: hidden;
}

.spool-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.spool-th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-stone-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--color-stone-800);
  white-space: nowrap;
}

.spool-td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(68, 64, 60, 0.4);
  vertical-align: middle;
  white-space: nowrap;
}

.spool-tr {
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.spool-tr:hover {
  background-color: rgba(163, 230, 53, 0.04);
}

.spool-tr:last-child .spool-td {
  border-bottom: none;
}

.spool-dot-lg {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.spool-weight-cell {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 0.25rem;
}

.spool-weight-bar-sm {
  width: 100%;
  max-width: 120px;
  height: 4px;
  background-color: var(--color-stone-800);
  border-radius: 2px;
  overflow: hidden;
}

.spool-weight-fill {
  height: 100%;
  background: linear-gradient(90deg, #a3e635, #65a30d);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.spool-weight-fill.spool-weight-low {
  background: linear-gradient(90deg, #fbbf24, #d97706);
}

.spool-weight-fill.spool-weight-empty {
  background: linear-gradient(90deg, #ef4444, #b91c1c);
}

/* Inline quantity adjuster (+/- buttons) */
.qty-adjuster {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: var(--color-stone-800);
  border: 1px solid var(--color-stone-700);
  border-radius: 6px;
  overflow: hidden;
}

.qty-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-stone-400);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  line-height: 1;
}

.qty-btn:hover:not(:disabled) {
  background: rgba(163, 230, 53, 0.15);
  color: var(--color-lime-300);
}

.qty-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.qty-value {
  min-width: 24px;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-stone-200);
  font-variant-numeric: tabular-nums;
}

.qty-cell {
  text-align: center !important;
}

/* Allocation ratio (e.g. 3/4) */
.alloc-ratio {
  display: inline-flex;
  align-items: baseline;
  gap: 0.125rem;
  font-size: 0.8125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.alloc-loaded {
  color: var(--color-lime-300);
}

/* Loaded In printers section (spool detail page) */
.loaded-printers-section {
  border-top: 1px solid var(--color-stone-800);
  padding-top: 1.5rem;
}

.loaded-printer-empty {
  padding: 1rem 1.25rem;
  background: var(--color-stone-900);
  border: 1px solid var(--color-stone-800);
  border-radius: 8px;
  text-align: center;
}

.loaded-printer-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.loaded-printer-card {
  display: block;
  padding: 0.75rem 1.25rem;
  background: var(--color-stone-900);
  border: 1px solid var(--color-stone-800);
  border-radius: 8px;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.loaded-printer-card:hover {
  border-color: var(--color-lime-600);
  background: rgba(163, 230, 53, 0.04);
}

.loaded-printer-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-stone-200);
  margin-bottom: 0.125rem;
}

.loaded-printer-meta {
  font-size: 0.75rem;
  color: var(--color-stone-500);
}

.spool-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
}

/* =============================================
   STATUS BADGES
   ============================================= */

.status-badge {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  white-space: nowrap;
  vertical-align: middle;
}

.status-idea {
  background-color: rgba(163, 230, 53, 0.1);
  color: #a3e635;
}

.status-prototyping {
  background-color: rgba(96, 165, 250, 0.1);
  color: #60a5fa;
}

.status-validation {
  background-color: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
}

.status-completed {
  background-color: rgba(52, 211, 153, 0.1);
  color: #34d399;
}

.status-selling {
  background-color: rgba(192, 132, 252, 0.1);
  color: #c084fc;
}

.status-archived {
  background-color: rgba(120, 113, 108, 0.1);
  color: #78716c;
}

.status-in-stock {
  background-color: rgba(52, 211, 153, 0.1);
  color: #34d399;
}

.status-low {
  background-color: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
}

.status-empty {
  background-color: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

/* =============================================
   EMPTY STATE
   ============================================= */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 40vh;
}

.empty-state-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--color-stone-900);
  border: 1px solid var(--color-stone-800);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-stone-500);
}

/* Styled empty-state card */
.empty-state-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 480px;
  margin: 4rem auto;
  padding: 3rem 2.5rem;
  background: linear-gradient(145deg,
      rgba(28, 25, 23, 0.95),
      rgba(12, 10, 9, 0.9));
  border: 1px solid var(--color-stone-800);
  border-radius: 1rem;
  position: relative;
  overflow: hidden;
}

.empty-state-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg,
      transparent,
      rgba(163, 230, 53, 0.4),
      transparent);
}

.empty-state-card-icon {
  width: 88px;
  height: 88px;
  border-radius: 1rem;
  background: linear-gradient(135deg,
      rgba(163, 230, 53, 0.08),
      rgba(163, 230, 53, 0.02));
  border: 1px solid rgba(163, 230, 53, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-stone-400);
  margin-bottom: 1.5rem;
}

.empty-state-card-content {
  margin-bottom: 2rem;
}

.empty-state-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-stone-200);
  margin: 0 0 0.5rem 0;
}

.empty-state-card-desc {
  font-size: 0.875rem;
  color: var(--color-stone-500);
  line-height: 1.6;
  margin: 0;
}

/* =============================================
   BUTTONS
   ============================================= */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: #a3e635;
  color: #0c0a09;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-primary:hover {
  background-color: #84cc16;
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* =============================================
   UTILITIES — Truncate, Flex helpers
   ============================================= */

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* =============================================
   FORMS — Inputs, Textareas, Selects
   ============================================= */

.form-page {
  display: flex;
  justify-content: center;
  padding-top: 2rem;
}

.form-card {
  background-color: var(--color-stone-900);
  border: 1px solid var(--color-stone-800);
  border-radius: 0.75rem;
  padding: 2rem;
  width: 100%;
  max-width: 32rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-stone-400);
  margin-bottom: 0.375rem;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.625rem 0.75rem;
  background-color: var(--color-stone-950);
  border: 1px solid var(--color-stone-800);
  border-radius: 0.5rem;
  color: var(--color-stone-200);
  font-size: 0.875rem;
  transition: border-color 0.15s ease;
  box-sizing: border-box;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: #a3e635;
}

.form-textarea {
  resize: vertical;
  min-height: 5rem;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2378716c' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}

/* Apply select arrow + padding to <select> elements using .form-input too */
select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2378716c' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.form-error {
  background-color: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

/* =============================================
   BUTTONS — Secondary, Danger
   ============================================= */

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: transparent;
  color: var(--color-stone-400);
  border: 1px solid var(--color-stone-800);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-secondary:hover {
  color: var(--color-stone-200);
  border-color: var(--color-stone-500);
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: transparent;
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-danger:hover {
  background-color: rgba(239, 68, 68, 0.1);
  border-color: #ef4444;
}

/* =============================================
   BREADCRUMB
   ============================================= */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.breadcrumb-link {
  color: var(--color-stone-500);
  text-decoration: none;
  transition: color 0.15s ease;
}

.breadcrumb-link:hover {
  color: var(--color-stone-200);
}

.breadcrumb-sep {
  color: var(--color-stone-700);
}

.breadcrumb-current {
  color: var(--color-stone-300);
}

/* =============================================
   DETAIL PAGE — Header, Grid, Actions
   ============================================= */

.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
}

.detail-header-info {
  flex: 1;
  min-width: 0;
}

.detail-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.detail-card {
  background-color: var(--color-stone-900);
  border: 1px solid var(--color-stone-800);
  border-radius: 0.75rem;
  padding: 1rem;
}

.detail-card-label {
  font-size: 0.75rem;
  color: var(--color-stone-500);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.detail-card-value {
  font-size: 0.875rem;
  color: var(--color-stone-200);
}

.empty-state-inline {
  padding: 2rem;
  background-color: var(--color-stone-900);
  border: 1px dashed var(--color-stone-800);
  border-radius: 0.75rem;
  text-align: center;
}

/* Card table link overrides */
.card-table-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.font-mono {
  font-family: var(--font-mono);
}

.mt-8 {
  margin-top: 2rem;
}

/* =============================================
   SPOOL — Detail & Form extras
   ============================================= */

.spool-card-link {
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.spool-card-link:hover {
  border-color: var(--color-stone-700);
  transform: translateY(-2px);
}

.spool-detail-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.spool-detail-swatch {
  width: 48px;
  height: 48px;
  border-radius: 0.75rem;
  border: 2px solid var(--color-stone-800);
  flex-shrink: 0;
}

.spool-detail-progress {
  background-color: var(--color-stone-900);
  border: 1px solid var(--color-stone-800);
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 0.5rem;
}

.spool-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid var(--color-stone-700);
}

/* Form row — side-by-side inputs */
.form-row {
  display: flex;
  gap: 0.75rem;
}

.form-group-grow {
  flex: 1;
}

/* Color picker input */
.form-color {
  width: 100%;
  height: 42px;
  padding: 2px;
  border: 1px solid var(--color-stone-800);
  border-radius: 0.5rem;
  background-color: var(--color-stone-950);
  cursor: pointer;
}

/* =============================================
   PRINTER — Fleet Cards & Layout
   ============================================= */

.printer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.printer-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background-color: var(--color-stone-900);
  border: 1px solid var(--color-stone-800);
  border-radius: 0.75rem;
  padding: 1.25rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.printer-card:hover {
  border-color: var(--color-stone-700);
  transform: translateY(-2px);
}

.printer-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.printer-card-icon {
  color: var(--color-stone-500);
}

.printer-card-specs {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.printer-spec {
  font-size: 0.75rem;
  color: var(--color-stone-300);
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.ams-badge {
  background-color: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
  padding: 0.125rem 0.5rem;
  border-radius: 0.375rem;
  font-weight: 600;
  font-size: 0.675rem;
  letter-spacing: 0.05em;
  align-self: center;
}

/* Status dots */
.printer-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.printer-status-idle {
  background-color: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.4);
}

.printer-status-printing {
  background-color: #3b82f6;
  box-shadow: 0 0 6px rgba(59, 130, 246, 0.4);
  animation: pulse-dot 2s infinite;
}

.printer-status-maintenance {
  background-color: #eab308;
  box-shadow: 0 0 6px rgba(234, 179, 8, 0.4);
}

.printer-status-offline {
  background-color: var(--color-stone-600);
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

/* Status badge extension */
.status-idle {
  background-color: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}

.status-printing {
  background-color: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

.status-maintenance {
  background-color: rgba(234, 179, 8, 0.15);
  color: #facc15;
}

.status-offline {
  background-color: rgba(120, 113, 108, 0.15);
  color: #a8a29e;
}

/* Checkbox */
.form-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--color-stone-300);
}

.form-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--color-lime-500);
  cursor: pointer;
}

/* =============================================
   DELETE DIALOG — Native <dialog> Modal
   ============================================= */

.delete-dialog {
  border: none;
  border-radius: 1rem;
  padding: 0;
  background: var(--color-stone-900);
  color: var(--color-stone-200);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  max-width: 400px;
  width: 90%;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
}

.delete-dialog::backdrop {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
}

.delete-dialog[open] {
  animation: dialogFadeIn 0.2s ease-out;
}

@keyframes dialogFadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.delete-dialog-content {
  padding: 2rem;
  text-align: center;
}

.delete-dialog-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.delete-dialog-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.delete-dialog-message {
  font-size: 0.875rem;
  color: var(--color-stone-400);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.delete-dialog-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.delete-dialog-actions .btn-secondary,
.delete-dialog-actions .btn-danger {
  flex: 1;
  max-width: 160px;
}

/* =============================================
   ORDER — Status Badges & Textarea
   ============================================= */

/* Order status badges */
.status-new {
  background-color: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

.status-inproduction {
  background-color: rgba(234, 179, 8, 0.15);
  color: #facc15;
}

.status-produced {
  background-color: rgba(251, 146, 60, 0.15);
  color: #fb923c;
}

.status-readytoship {
  background-color: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
}

.status-shipped {
  background-color: rgba(14, 165, 233, 0.15);
  color: #38bdf8;
}

.status-delivered {
  background-color: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}

.status-cancelled {
  background-color: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

/* Textarea */
.form-textarea {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--color-stone-800);
  border-radius: 0.5rem;
  background-color: var(--color-stone-950);
  color: var(--color-stone-200);
  font-size: 0.875rem;
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
}

.form-textarea:focus {
  outline: none;
  border-color: var(--color-lime-500);
  box-shadow: 0 0 0 2px rgba(163, 230, 53, 0.15);
}

/* ============================
   Settings Page
   ============================ */

/* Tab bar */
.settings-tabs {
  display: flex;
  gap: 0.25rem;
  background: var(--color-stone-900);
  border: 1px solid var(--color-stone-800);
  border-radius: 0.75rem;
  padding: 0.25rem;
  margin-bottom: 1.5rem;
}

.settings-tab {
  flex: 1;
  text-align: center;
  padding: 0.625rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-stone-400);
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.settings-tab:hover {
  color: var(--color-stone-200);
  background: rgba(255, 255, 255, 0.04);
}

.settings-tab.active {
  color: var(--color-stone-950);
  background: var(--color-lime-400);
  font-weight: 600;
}

/* Content area */
.settings-content {
  animation: settingsFadeIn 0.2s ease-out;
}

@keyframes settingsFadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Settings form */
.settings-form {
  width: 100%;
}

/* Section card */
.settings-section {
  background: var(--color-stone-900);
  border: 1px solid var(--color-stone-800);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.settings-section-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-stone-200);
  margin: 0 0 0.25rem 0;
}

.settings-section-desc {
  font-size: 0.8125rem;
  color: var(--color-stone-500);
  margin: 0 0 1.25rem 0;
}

/* Actions bar */
.settings-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
  padding-top: 0.5rem;
  margin-bottom: 1.5rem;
}

/* Toast notifications (HTMX inline feedback) */
.toast {
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
  animation: toastFadeIn 0.3s ease-out;
}

.toast-success {
  background: rgba(132, 204, 22, 0.15);
  color: #a3e635;
  border: 1px solid rgba(132, 204, 22, 0.25);
}

.toast-error {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

@keyframes toastFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Flash message */
.settings-flash {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
  animation: settingsFadeIn 0.25s ease-out;
}

.settings-flash.success {
  background: rgba(163, 230, 53, 0.1);
  border: 1px solid rgba(163, 230, 53, 0.25);
  color: var(--color-lime-400);
}

/* Email badge */
.settings-email-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  background: var(--color-stone-950);
  border: 1px solid var(--color-stone-800);
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  color: var(--color-stone-400);
}

/* Form row (side-by-side) */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .settings-tabs {
    flex-wrap: wrap;
  }
}

/* Form hint */
.form-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--color-stone-500);
  margin-top: 0.25rem;
}

/* ============================================================
   FILE UPLOAD ZONE
   ============================================================ */
.file-upload-zone {
  border: 1.5px dashed rgba(163, 163, 163, 0.2);
  border-radius: 0.5rem;
  padding: 0.6rem 1rem;
  transition: border-color 0.2s, background-color 0.2s;
  background: rgba(255, 255, 255, 0.02);
}

.file-upload-zone:hover {
  border-color: oklch(84.1% 0.238 128.85);
  background: rgba(163, 230, 53, 0.03);
}

.file-upload-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.file-upload-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--color-stone-500);
  flex-shrink: 0;
}

.file-upload-text {
  font-size: 0.8rem;
}

.file-upload-label {
  color: oklch(84.1% 0.238 128.85);
  cursor: pointer;
  font-weight: 600;
  text-decoration: underline;
}

.file-input-hidden {
  font-size: 0.75rem;
  color: var(--color-stone-400);
}

/* ============================================================
   FILE TYPE BADGES
   ============================================================ */
.file-type-badge {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 0.3rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
}

.badge-stl {
  background: rgba(96, 165, 250, 0.15);
  color: #60a5fa;
}

.badge-3mf {
  background: rgba(168, 85, 247, 0.15);
  color: #a855f7;
}

.badge-gcode {
  background: rgba(250, 204, 21, 0.15);
  color: #facc15;
}

.badge-image {
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
}

.badge-other {
  background: rgba(168, 162, 158, 0.15);
  color: #a8a29e;
}

/* ============================================================
   PRINT STATUS BADGES
   ============================================================ */
.print-status-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: capitalize;
}

.status-success {
  background: rgba(163, 230, 53, 0.15);
  color: #a3e635;
}

.status-failure {
  background: rgba(248, 113, 113, 0.15);
  color: #f87171;
}

.status-aborted {
  background: rgba(250, 204, 21, 0.15);
  color: #facc15;
}

/* ============================================================
   STAR RATING INPUT
   ============================================================ */
.star-rating-input {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 0.1rem;
}

.star-rating-input input {
  display: none;
}

.star-rating-input label {
  font-size: 1.5rem;
  color: var(--color-stone-800);
  cursor: pointer;
  transition: color 0.15s;
}

.star-rating-input label:hover,
.star-rating-input label:hover~label,
.star-rating-input input:checked~label {
  color: #facc15;
}

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

/* Small danger button (file delete) */
.btn-danger-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.3rem;
  background: rgba(248, 113, 113, 0.1);
  color: #f87171;
  border: none;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 700;
  transition: background 0.15s;
}

.btn-danger-sm:hover {
  background: rgba(248, 113, 113, 0.25);
}

/* ============================================================
   FILE SECTIONS (collapsible)
   ============================================================ */
.file-section {
  border: 1px solid rgba(163, 163, 163, 0.12);
  border-radius: 0.75rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}

.file-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
  list-style: none;
}

.file-section-header::-webkit-details-marker {
  display: none;
}

.file-section-header:hover {
  background: rgba(255, 255, 255, 0.04);
}

.file-section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.file-section-icon {
  font-size: 1.1rem;
}

.file-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4rem;
  height: 1.4rem;
  padding: 0 0.35rem;
  border-radius: 9999px;
  background: rgba(163, 163, 163, 0.15);
  color: var(--color-stone-400);
  font-size: 0.7rem;
  font-weight: 700;
}

.file-section-body {
  padding: 0 1rem 1rem;
}

/* ============================================================
   FILE CARDS
   ============================================================ */
.file-card {
  padding: 0.75rem;
  border: 1px solid rgba(163, 163, 163, 0.1);
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
  transition: background 0.15s, border-color 0.15s;
}

.file-card:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(163, 163, 163, 0.2);
}

.file-card-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.file-card-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}

.file-card-name {
  font-weight: 500;
  font-size: 0.875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-card-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-stone-500);
  font-size: 0.75rem;
  white-space: nowrap;
}

.file-card-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

/* ============================================================
   VERSION BADGE
   ============================================================ */
.version-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.4rem;
  border-radius: 9999px;
  background: rgba(96, 165, 250, 0.15);
  color: #60a5fa;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* ============================================================
   SMALL SECONDARY BUTTON
   ============================================================ */
.btn-secondary-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.5rem;
  border-radius: 0.3rem;
  background: rgba(163, 163, 163, 0.1);
  color: var(--color-stone-300);
  border: none;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-secondary-sm:hover {
  background: rgba(163, 163, 163, 0.2);
  color: var(--color-stone-100);
}

/* Inline version upload (hide file input inside label) */
.inline-version-upload {
  display: inline-flex;
}

.inline-version-upload .file-input-hidden {
  display: none;
}

/* ============================================================
   METADATA ROW (inline, below file card)
   ============================================================ */
.metadata-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(163, 163, 163, 0.08);
}

.metadata-item {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.metadata-label {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-stone-500);
}

.metadata-value {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-stone-200);
}

/* ============================================================
   CODE VIEWER
   ============================================================ */
.code-viewer {
  border: 1px solid rgba(163, 163, 163, 0.12);
  border-radius: 0.75rem;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
}

.code-viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(163, 163, 163, 0.08);
}

.code-viewer-body {
  max-height: 75vh;
  overflow: auto;
}

.code-viewer-pre {
  margin: 0;
  padding: 1rem;
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--color-stone-300);
  white-space: pre;
  tab-size: 4;
}

.code-viewer-pre code {
  font-family: inherit;
}

/* ============================================================
   PROJECT TABS — 5-tab container on project detail
   ============================================================ */
.project-tabs {
  display: flex;
  gap: 0.25rem;
  background: var(--color-stone-900);
  border: 1px solid var(--color-stone-800);
  border-radius: 0.75rem;
  padding: 0.25rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.project-tab {
  flex: 1;
  text-align: center;
  padding: 0.625rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-stone-400);
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
  cursor: pointer;
}

.project-tab:hover {
  color: var(--color-stone-200);
  background: rgba(255, 255, 255, 0.04);
}

.project-tab.active {
  color: var(--color-stone-950);
  background: var(--color-lime-400);
  font-weight: 600;
}

.tab-content {
  animation: tabFadeIn 0.2s ease-out;
}

@keyframes tabFadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 600px) {
  .project-tabs {
    flex-wrap: wrap;
  }
}

/* ============================================================
   SLICER DNA / TECH SPECS PANEL
   ============================================================ */
.tech-specs-panel {
  background-color: var(--color-stone-900);
  border: 1px solid var(--color-stone-800);
  border-radius: 0.75rem;
  overflow: hidden;
}

.tech-specs-panel[open] {
  border-color: rgba(163, 230, 53, 0.15);
}

.tech-specs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.15s ease;
}

.tech-specs-header:hover {
  background-color: rgba(163, 230, 53, 0.04);
}

.tech-specs-header::marker,
.tech-specs-header::-webkit-details-marker {
  display: none;
}

.tech-specs-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-stone-400);
}

.tech-specs-icon {
  font-size: 1rem;
}

.tech-specs-source {
  font-size: 0.7rem;
  font-weight: 600;
  color: #a3e635;
  background-color: rgba(163, 230, 53, 0.08);
  border: 1px solid rgba(163, 230, 53, 0.15);
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  letter-spacing: 0.02em;
  font-family: var(--font-mono);
}

.tech-specs-body {
  padding: 0.5rem 1rem 1rem;
  border-top: 1px solid rgba(163, 163, 163, 0.06);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.tech-specs-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid rgba(163, 163, 163, 0.05);
  transition: background-color 0.1s ease;
}

.tech-specs-row:hover {
  background-color: rgba(163, 230, 53, 0.03);
}

.tech-specs-row:nth-last-child(-n+2) {
  border-bottom: none;
}

.tech-specs-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-stone-500);
}

.tech-specs-value {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-stone-200);
  font-family: var(--font-mono);
  letter-spacing: -0.01em;
}

@media (max-width: 640px) {
  .tech-specs-body {
    grid-template-columns: 1fr;
  }

  .tech-specs-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* =============================================
   LANDING PAGE
   ============================================= */

.landing-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--color-stone-950);
}

.landing-logo {
  height: 32px;
  width: auto;
}

/* Nav */
.landing-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--color-stone-800);
}

.landing-nav-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

/* Hero */
.landing-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  flex: 1;
}

.landing-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  background: rgba(163, 230, 53, 0.08);
  border: 1px solid rgba(163, 230, 53, 0.2);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #a3e635;
  margin-bottom: 2rem;
  letter-spacing: 0.025em;
}

.landing-hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--color-stone-200);
  margin-bottom: 1.25rem;
  max-width: 640px;
}

.landing-hero-sub {
  font-size: 1.125rem;
  color: var(--color-stone-500);
  max-width: 520px;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.landing-hero-cta {
  display: flex;
  gap: 0.75rem;
}

.btn-lg {
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
  border-radius: 0.625rem;
}

/* Features */
.landing-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 2rem 5rem;
  width: 100%;
}

.landing-feature-card {
  background-color: var(--color-stone-900);
  border: 1px solid var(--color-stone-800);
  border-radius: 0.75rem;
  padding: 2rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.landing-feature-card:hover {
  border-color: var(--color-stone-500);
  transform: translateY(-2px);
}

.landing-feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.landing-feature-title {
  font-size: 1.175rem;
  font-weight: 700;
  color: var(--color-stone-200);
  margin-bottom: 0.5rem;
}

.landing-feature-desc {
  font-size: 0.875rem;
  color: var(--color-stone-400);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.landing-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.landing-feature-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--color-stone-300);
}

/* Footer */
.landing-footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--color-stone-800);
  font-size: 0.8125rem;
  color: var(--color-stone-500);
}

/* Pricing */
.landing-pricing {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 2rem 5rem;
}

.landing-section-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-stone-200);
  text-align: center;
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
}

.landing-section-sub {
  font-size: 0.9375rem;
  color: var(--color-stone-500);
  text-align: center;
  margin-bottom: 2rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 820px;
  width: 100%;
}

.pricing-card {
  background-color: var(--color-stone-900);
  border: 1px solid var(--color-stone-800);
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  width: 100%;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card-featured {
  border-color: rgba(163, 230, 53, 0.3);
  box-shadow: 0 0 60px -20px rgba(163, 230, 53, 0.12);
}

.pricing-card-badge {
  display: inline-block;
  padding: 0.25rem 0.875rem;
  background: rgba(163, 230, 53, 0.12);
  border: 1px solid rgba(163, 230, 53, 0.25);
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #a3e635;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.5rem;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.625rem;
  margin-bottom: 0.75rem;
}

.pricing-old {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-stone-500);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: #ef4444;
  opacity: 0.6;
}

.pricing-free {
  font-size: 3rem;
  font-weight: 800;
  color: #a3e635;
  letter-spacing: -0.03em;
}

.pricing-period {
  font-size: 0.9375rem;
  color: var(--color-stone-500);
  font-weight: 500;
}

.pricing-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--color-stone-300);
  margin-bottom: 1.75rem;
  font-weight: 500;
}

.pricing-perks {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  text-align: left;
}

.pricing-perks li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--color-stone-300);
}

.pricing-cta {
  width: 100%;
  display: flex;
  justify-content: center;
  text-decoration: none;
  margin-top: auto;
}

.pricing-badge-neutral {
  background: rgba(168, 162, 158, 0.1);
  border-color: rgba(168, 162, 158, 0.2);
  color: var(--color-stone-400);
}

.pricing-note-neutral {
  color: var(--color-stone-500);
}

.pricing-perk-disabled {
  color: var(--color-stone-600) !important;
  text-decoration: line-through;
  opacity: 0.5;
}

/* Responsive */
@media (max-width: 768px) {
  .landing-hero-title {
    font-size: 2.25rem;
  }

  .landing-features {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .landing-hero {
    padding: 4rem 1.5rem 3rem;
  }
}

/* ===== Admin Panel ===== */

/* Sidebar divider */
.sidebar-divider {
  height: 1px;
  background: var(--color-stone-800);
  margin: 0.75rem 0.5rem;
}

/* Admin data table — reuses stone palette */
.admin-table-wrap {
  background-color: var(--color-stone-900);
  border: 1px solid var(--color-stone-800);
  border-radius: 0.75rem;
  overflow: hidden;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.admin-table thead {
  background-color: rgba(255, 255, 255, 0.02);
}

.admin-table th {
  padding: 0.625rem 1rem;
  text-align: left;
  color: var(--color-stone-500);
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--color-stone-800);
}

.admin-table td {
  padding: 0.625rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--color-stone-200);
}

.admin-table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.015);
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

.page-subtitle {
  font-size: 0.875rem;
  color: var(--color-stone-500);
  margin-top: 0.25rem;
}

/* =============================================
   PUBLIC DROPZONE
   ============================================= */

.dropzone-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: radial-gradient(ellipse at 50% 0%, rgba(163, 230, 53, 0.04) 0%, transparent 60%),
    var(--color-stone-950);
}

.dropzone-card {
  width: 100%;
  max-width: 32rem;
  background-color: var(--color-stone-900);
  border: 1px solid var(--color-stone-800);
  border-radius: 1rem;
  padding: 2.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(163, 230, 53, 0.04);
}

.dropzone-header {
  text-align: center;
  margin-bottom: 2rem;
}

.dropzone-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(163, 230, 53, 0.08);
  margin-bottom: 1rem;
}

.dropzone-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-stone-200);
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
}

.dropzone-subtitle {
  font-size: 0.875rem;
  color: var(--color-stone-500);
  line-height: 1.5;
}

.dropzone-error {
  margin-bottom: 1.5rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: oklch(70.4% 0.191 22.216);
  font-size: 0.875rem;
}

.dropzone-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.dropzone-field {
  display: flex;
  flex-direction: column;
}

.dropzone-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-stone-400);
  margin-bottom: 0.375rem;
}

.dropzone-input,
.dropzone-textarea {
  width: 100%;
  padding: 0.625rem 1rem;
  background-color: var(--color-stone-950);
  border: 1px solid #44403c;
  border-radius: 0.5rem;
  color: var(--color-stone-200);
  font-size: 0.875rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dropzone-input::placeholder,
.dropzone-textarea::placeholder {
  color: #57534e;
}

.dropzone-input:focus,
.dropzone-textarea:focus {
  outline: none;
  border-color: rgba(163, 230, 53, 0.5);
  box-shadow: 0 0 0 1px rgba(163, 230, 53, 0.2);
}

.dropzone-textarea {
  resize: vertical;
  min-height: 5rem;
}

.dropzone-hint {
  font-size: 0.75rem;
  color: var(--color-stone-500);
  margin-top: 0.375rem;
}

.dropzone-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  margin-top: 0.5rem;
  background-color: oklch(76.8% 0.233 130.85);
  color: var(--color-stone-950);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.dropzone-submit:hover {
  background-color: oklch(84.1% 0.238 128.85);
}

.dropzone-submit:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(163, 230, 53, 0.5);
}

/* Success state */
.dropzone-success-card {
  text-align: center;
}

.dropzone-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(163, 230, 53, 0.08);
  margin-bottom: 1.5rem;
}

.dropzone-back-link {
  display: inline-block;
  margin-top: 1.5rem;
  color: var(--color-stone-500);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.15s ease;
}

.dropzone-back-link:hover {
  color: var(--color-stone-200);
}

/* Footer */
.dropzone-footer {
  margin-top: 2rem;
  font-size: 0.75rem;
  color: #57534e;
}

.dropzone-footer-link {
  color: #a3e635;
  text-decoration: none;
}

.dropzone-footer-link:hover {
  text-decoration: underline;
}

/* Dropzone link box (in workspace settings) */
.dropzone-link-box {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.dropzone-link-url {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background-color: var(--color-stone-950);
  border: 1px solid #44403c;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-stone-200);
  font-family: var(--default-mono-font-family);
}

.dropzone-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background-color: rgba(163, 230, 53, 0.1);
  border: 1px solid rgba(163, 230, 53, 0.2);
  border-radius: 0.5rem;
  color: #a3e635;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.dropzone-copy-btn:hover {
  background-color: rgba(163, 230, 53, 0.15);
  border-color: rgba(163, 230, 53, 0.3);
}

.dropzone-preview-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.8125rem;
  color: var(--color-stone-500);
  text-decoration: none;
  transition: color 0.15s ease;
}

.dropzone-preview-link:hover {
  color: #a3e635;
}

.dropzone-file-input {
  width: 100%;
  padding: 10px 14px;
  background-color: var(--color-stone-950);
  border: 1px dashed #44403c;
  border-radius: 0.5rem;
  color: var(--color-stone-300);
  font-size: 0.875rem;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.dropzone-file-input:hover {
  border-color: rgba(163, 230, 53, 0.4);
}

.dropzone-file-input::file-selector-button {
  background: rgba(163, 230, 53, 0.1);
  border: 1px solid rgba(163, 230, 53, 0.2);
  border-radius: 0.375rem;
  color: #a3e635;
  padding: 6px 14px;
  margin-right: 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.dropzone-file-input::file-selector-button:hover {
  background: rgba(163, 230, 53, 0.2);
}

/* Download button (order detail) */
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(163, 230, 53, 0.1);
  border: 1px solid rgba(163, 230, 53, 0.2);
  border-radius: 0.5rem;
  color: #a3e635;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-download:hover {
  background: rgba(163, 230, 53, 0.15);
  border-color: rgba(163, 230, 53, 0.3);
}

.file-type-badge {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(163, 230, 53, 0.1);
  border: 1px solid rgba(163, 230, 53, 0.2);
  border-radius: 4px;
  color: #a3e635;
  font-size: 0.6875rem;
  font-weight: 700;
  font-family: var(--default-mono-font-family);
  letter-spacing: 0.05em;
}

/* ── Quote Calculator ── */

.quote-empty {
  padding: 2rem;
  text-align: center;
  border: 1px dashed var(--color-stone-800);
  border-radius: 0.75rem;
  margin-top: 1rem;
}

.quote-breakdown {
  margin-top: 1rem;
}

/* ── Quote table ── */
.quote-table {
  width: 100%;
  border-collapse: collapse;
}

.quote-row td {
  padding: 0.5rem 0;
}

.quote-row:not(:last-child) td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.quote-cell-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-stone-300);
  text-align: left;
  vertical-align: middle;
}

.quote-detail {
  font-size: 0.75rem;
  color: var(--color-stone-600);
  margin-left: 0.25rem;
}

.quote-detail::before {
  content: "·";
  margin-right: 0.25rem;
}

.quote-cell-value {
  text-align: right;
  font-family: var(--default-mono-font-family);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-stone-300);
  white-space: nowrap;
  vertical-align: middle;
}

/* ── Totals (tfoot) ── */
.quote-table tfoot .quote-row:first-child td {
  border-top: 1px solid var(--color-stone-700);
  padding-top: 0.625rem;
}

.quote-total-label {
  font-weight: 600;
  color: var(--color-stone-200);
}

.quote-total-value {
  color: var(--color-stone-200);
  font-size: 0.9375rem;
  font-weight: 700;
}

.quote-suggested-label {
  color: var(--color-lime-400);
  font-weight: 600;
}

.quote-suggested-value {
  color: var(--color-lime-400);
  font-size: 1.125rem;
  font-weight: 700;
}

/* ─── Modal Dialog (centered) ─── */
.modal-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid var(--color-stone-700);
  border-radius: 0.75rem;
  background: var(--color-stone-900);
  color: var(--color-stone-100);
  padding: 0;
  max-width: 440px;
  width: calc(100% - 2rem);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .6);
  z-index: 1000;
  margin: 0;
}

.modal-dialog::backdrop {
  background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(4px);
}

.modal-content {
  padding: 1.5rem;
}

/* ─── Print Job Card ─── */
.print-job-card {
  background-color: var(--color-stone-900);
  border: 1px solid var(--color-stone-800);
  border-radius: 0.75rem;
  padding: 1.25rem;
  margin-top: 1rem;
}

.print-job-card--active {
  border-color: var(--color-lime-500);
  background: linear-gradient(135deg, rgba(163, 230, 53, .04) 0%, transparent 100%);
}

.print-job-card--completed {
  border-color: #22c55e;
  background: linear-gradient(135deg, rgba(34, 197, 94, .04) 0%, transparent 100%);
}

.print-job-card--disabled {
  border-style: dashed;
  opacity: 0.5;
}

.print-job-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 0.625rem;
}

.print-job-meta span {
  font-size: 0.8125rem;
  color: var(--color-stone-300);
}

.print-job-meta strong {
  color: var(--color-stone-400);
  font-weight: 500;
}

.print-job-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* ─── Status badge for print job states ─── */
.status-pending {
  background: var(--color-stone-600);
  color: var(--color-stone-200);
}

.status-printing {
  background: var(--color-lime-400);
  color: var(--color-stone-900);
}

.status-completed {
  background: #22c55e;
  color: white;
}

.status-failed {
  background: var(--color-red-500);
  color: white;
}

/* ── Mobile Gate ── */
.mobile-gate {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--color-stone-950);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

@media (max-width: 600px) {
  .mobile-gate {
    display: flex;
  }

  .app-shell,
  .alpha-banner,
  .landing-page {
    display: none !important;
  }
}