.order-workspace { margin-top: 40px; }
.order-search, .order-login, .order-editor { padding: clamp(20px,3vw,40px); background: #fff; border: 1px solid #c5cbbc; }
.order-search-row { display: flex; gap: 12px; margin-top: 12px; }
.order-search input { flex: 1; min-width: 0; }
.order-search-row .button { flex-shrink: 0; }
.order-overview { padding: clamp(24px,4vw,50px); background: #10150f; color: #fff; margin: 28px 0 16px; }
.order-overview h2 { color: #fff; max-width: 900px; font-size: clamp(2rem,4vw,4rem); line-height: 1; margin: 12px 0; overflow-wrap: anywhere; }
.order-overview .eyebrow { color: #a8ff23; }
.order-overview p { color: #dce3d6; }
.order-total-heading { display: flex; justify-content: space-between; align-items: baseline; margin: 32px 0 12px; gap: 12px; }
.order-total-heading strong { color: #a8ff23; font: 700 clamp(2rem,5vw,4rem) "Space Grotesk",sans-serif; }
.order-bar { height: 12px; background: #dae0d4; overflow: hidden; }
.order-overview .order-bar { height: 20px; background: #303c2b; }
.order-fill { height: 100%; width: 0; background: #a8ff23; transition: width 650ms cubic-bezier(.2,.7,.2,1); position: relative; }
.order-fill.is-moving::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(110deg,transparent 0 14px,rgba(255,255,255,.3) 14px 28px); background-size: 60px 100%; animation: order-flow 1.2s linear infinite; }
@keyframes order-flow { to { background-position: 60px 0; } }
.order-phases { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.order-capacity { padding: clamp(20px,3vw,32px); margin: 16px 0; background: #10150f; color: #fff; border: 1px solid #35462b; }
.order-capacity-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.order-capacity-heading h3 { color: #fff; margin: 0; font-size: clamp(1.15rem,2.5vw,1.6rem); }
.order-capacity-heading strong { color: #a8ff23; font: 700 clamp(2rem,4vw,3rem) "Space Grotesk",sans-serif; }
.order-printers { display: grid; grid-template-columns: repeat(10,minmax(0,1fr)); gap: clamp(4px,1vw,12px); margin: 20px 0; }
.order-printer { color: #52604a; padding: 4px; }
.order-printer svg { display: block; width: 100%; height: auto; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.order-printer.is-working { color: #a8ff23; }
.printer-frame { fill: #222c1d; stroke-width: 2; }
.printer-base, .printer-bed { fill: #222c1d; stroke-width: 1.8; }
.printer-carriage { fill: currentColor; stroke: none; }
.printer-fan { fill: #10150f; stroke: #10150f; }
.printer-nozzle { fill: currentColor; stroke: none; }
.printer-feed { opacity: .5; }
.printer-screen { fill: currentColor; stroke: none; opacity: .7; }
.printer-spool { stroke-width: 1.8; }
.printer-object { fill: #23311a; stroke-width: 1.4; }
.printer-light { fill: currentColor; stroke: none; }
.printer-filament { opacity: 0; }
.is-printing .printer-head { animation: printer-scan 1.6s ease-in-out infinite; animation-delay: var(--printer-delay); }
.is-printing .printer-filament { opacity: 1; }
.is-printing .printer-object { animation: printer-layers 2.8s ease-in-out infinite; animation-delay: var(--printer-delay); }
.order-capacity p { margin: 12px 0 6px; color: #dce3d6; }
.order-capacity small { color: #aab99f; }
@keyframes printer-scan { 0%,100% { transform: translateX(-9px); } 50% { transform: translateX(9px); } }
@keyframes printer-layers { 0%,100% { opacity: .4; } 50% { opacity: 1; } }
@media (max-width: 600px) { .order-printers { grid-template-columns: repeat(5,minmax(0,1fr)); } }
@media (prefers-reduced-motion: reduce) { .is-printing .printer-head, .is-printing .printer-object { animation: none; } }
.order-phase { padding: 24px; background: #fff; border: 1px solid #c5cbbc; }
.order-phase h3 { margin: 12px 0; font-size: 1.3rem; }
.order-phase-top { display: flex; justify-content: space-between; color: #197f44; font-weight: 700; }
.order-phase p { font-size: .9rem; margin: 14px 0 0; color: #56624f; }
.order-phase.is-current { border: 2px solid #197f44; padding: 23px; }
.order-phase.is-complete { background: #e7f4d9; }
.order-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 18px 0; }
.order-stat { background: #fff; border: 1px solid #c5cbbc; padding: 24px; }
.order-stat span { display: block; color: #56624f; font-size: .9rem; margin-bottom: 8px; }
.order-stat strong { font: 700 clamp(1.3rem,2vw,2rem) "Space Grotesk",sans-serif; }
.order-warning { padding: 18px; border-left: 4px solid #d88914; background: #fff1d5; color: #663a00; }
.order-history { margin: 24px 0; padding: 24px; border: 1px solid #c5cbbc; background: #fff; }
.order-history li { padding: 12px 0; border-bottom: 1px solid #dce3d6; }
.order-history time { color: #56624f; margin-right: 12px; }
.order-admin-header { background: #10150f; color: #fff; display: flex; gap: 24px; align-items: center; padding: 22px 5vw; flex-wrap: wrap; }
.order-admin-header a:first-child { color: #a8ff23; margin-right: auto; font-weight: 700; }
.order-admin-header button { padding: 10px 16px; background: transparent; border: 1px solid #a8ff23; color: #a8ff23; cursor: pointer; }
.order-admin-shell { max-width: 1440px; margin: 48px auto; padding: 0 24px; }
.order-admin-shell > h1 { font-size: clamp(2.5rem,5vw,5rem); line-height: .95; }
.order-admin-shell > h1 em { color: #197f44; font-style: normal; }
.order-login { max-width: 460px; }
.order-login label, .order-editor label { display: grid; gap: 8px; margin: 12px 0; }
.order-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.order-toolbar label { flex: 1; max-width: 580px; display: grid; gap: 8px; }
.order-toolbar { flex-wrap: wrap; }
.order-filter-button, .order-actions .button { border: 1px solid #197f44; color: #197f44; background: #fff; }
.order-filter-button[aria-pressed="true"] { background: #10150f; color: #a8ff23; border-color: #10150f; }
.order-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; padding-top: 20px; border-top: 1px solid #c5cbbc; }
.order-actions .order-delete-button { color: #b03220; border-color: #b03220; }
.order-list-item.is-archived { opacity: .75; }
.order-admin-grid { display: grid; grid-template-columns: 300px minmax(0,1fr); gap: 20px; align-items: start; }
#admin-list { display: grid; gap: 10px; max-height: 1000px; overflow-y: auto; }
.order-list-item { text-align: left; padding: 20px; background: #fff; border: 1px solid #c5cbbc; cursor: pointer; width: 100%; color: #10150f; }
.order-list-item.is-selected { border: 2px solid #197f44; background: #e7f4d9; }
.order-list-item strong, .order-list-item small { display: block; margin-bottom: 8px; overflow-wrap: anywhere; }
.order-list-item .order-bar { margin-top: 10px; height: 6px; }
.order-editor-title { display: flex; gap: 20px; flex-wrap: wrap; }
.order-editor-title span { overflow-wrap: anywhere; color: #56624f; font-size: .8rem; }
.order-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 20px; }
.order-settings { margin: 24px 0; padding: 20px; background: #edf2e6; }
.order-settings summary { cursor: pointer; font-weight: 700; }
.order-estimate { margin: 24px 0; padding: 20px; background: #10150f; color: #fff; }
.order-estimate strong { color: #a8ff23; }
.order-estimate p { margin: 8px 0; }
.order-save-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.order-save-row .button:not(.button-primary) { border: 1px solid #197f44; color: #197f44; background: #fff; }
.order-admin-shell button:disabled { opacity: .5; cursor: wait; }
#admin-message, #order-message { min-height: 24px; overflow-wrap: anywhere; }
.order-error { color: #b03220; }
@media (max-width: 1000px) { .order-phases { grid-template-columns: repeat(2,minmax(0,1fr)); } .order-admin-grid { grid-template-columns: 1fr; } #admin-list { max-height: 360px; grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 600px) { .order-search-row, .order-toolbar { flex-direction: column; align-items: stretch; } .order-phases, .order-stats, .order-fields, #admin-list { grid-template-columns: 1fr; } .order-admin-shell { padding: 0 14px; } .order-bar { height: 14px; } }
@media (prefers-reduced-motion: reduce) { .order-fill { transition: none; } .order-fill.is-moving::after { animation: none; } }
.order-workspace, .order-editor, .order-overview, .order-capacity { min-width: 0; }
.order-capacity-heading h3, .order-list-item, .order-stat strong { overflow-wrap: anywhere; }
.order-editor input, .order-editor select, .order-editor textarea, .order-login input { width: 100%; min-width: 0; box-sizing: border-box; font-size: 16px; }
.order-history time { display: inline-block; }
@media (max-width: 600px) {
  .order-capacity-heading { align-items: flex-start; gap: 8px; }
  .order-capacity-heading h3 { font-size: 1.05rem; }
  .order-save-row > *, .order-search-row .button { width: 100%; text-align: center; }
  .order-actions .button { width: 100%; }
  .order-history { padding: 18px; }
  .order-history time { display: block; margin-bottom: 4px; }
}
