:root{
  --order-bg:#101214;
  --order-surface:#191c1f;
  --order-surface-raised:#202428;
  --order-border:#303438;
  --order-muted:#b9bec2;
  --order-orange:#f47700;
  --order-radius:22px;
  --order-shadow:0 24px 70px rgba(0,0,0,.24);
}

.order-page,.admin-orders-page,.production-page,.completed-orders-page{background:var(--order-bg);color:#fff;min-height:100dvh;padding:24px 16px 100px}
.order-shell,.admin-orders-shell,.production-shell{box-sizing:border-box;width:min(100%,1080px);margin:auto}
.order-shell{width:min(100%,980px)}
.admin-orders-shell,.production-shell{background:var(--order-surface);border:1px solid var(--order-border);border-radius:24px;padding:clamp(18px,4vw,36px)}
.order-back{min-height:46px;border:1px solid #3c4247;border-radius:12px;background:#24282c;color:#fff;padding:11px 14px;text-decoration:none;font-weight:800;margin-bottom:20px}
.order-back:hover{border-color:#62696f;transform:translateY(-1px)}
.order-eyebrow,.admin-orders-shell header>span,.production-shell header>span,.order-section-heading span,.order-next-step>span,.order-compact-summary>div>span,.workflow-detail__heading span{color:var(--order-orange);font-size:.76rem;font-weight:900;letter-spacing:.13em}
.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}

.order-progress{display:grid;grid-template-columns:repeat(4,1fr);padding:0;margin:0 0 clamp(38px,6vw,58px);list-style:none}
.order-progress li{position:relative;display:flex;flex-direction:column;align-items:center;gap:8px;color:#747b80;text-align:center;font-size:.75rem}
.order-progress li:not(:last-child)::after{content:"";position:absolute;top:16px;left:calc(50% + 20px);right:calc(-50% + 20px);height:2px;background:#34393d}
.order-progress li.is-complete:not(:last-child)::after{background:var(--order-orange)}
.order-progress li span{display:grid;place-items:center;width:32px;height:32px;border:2px solid #464c51;border-radius:50%;background:var(--order-bg);font-weight:900;z-index:1}
.order-progress li.is-complete,.order-progress li.is-current{color:#fff}
.order-progress li.is-complete span{border-color:var(--order-orange);background:var(--order-orange);color:#111}
.order-progress li.is-current span{border-color:var(--order-orange);box-shadow:0 0 0 5px rgba(244,119,0,.13);color:var(--order-orange)}

.order-hero{display:flex;flex-direction:column;align-items:center;gap:clamp(38px,6vw,64px);padding:0 clamp(22px,5vw,54px) clamp(22px,5vw,54px);background:transparent;border:0;border-radius:0;text-align:center}
.order-hero__gallery{position:relative;width:min(100%,900px);background:transparent;overflow:visible}
.order-hero__products{display:grid;width:100%;align-items:center;justify-content:center;gap:clamp(20px,4vw,42px)}
.order-hero__products img{display:block;width:100%;height:auto;max-height:500px;aspect-ratio:1;object-fit:contain;border:0;border-radius:0;background:transparent;filter:drop-shadow(0 18px 24px rgba(0,0,0,.22));animation:order-product-enter .4s ease both}
.order-hero__products.has-count-1{grid-template-columns:minmax(0,560px)}
.order-hero__products.has-count-2{grid-template-columns:repeat(2,minmax(0,420px))}
.order-hero__products.has-count-3{grid-template-columns:repeat(3,minmax(0,280px))}
.order-hero__products.has-count-4{grid-template-columns:repeat(4,minmax(0,210px))}
.order-hero__gallery>span{position:absolute;left:50%;bottom:14px;transform:translateX(-50%);padding:8px 13px;border:1px solid #41474c;border-radius:999px;background:rgba(16,18,20,.92);font-size:.78rem;font-weight:800;white-space:nowrap}
.order-hero__empty{display:grid;place-items:center;width:min(100%,720px);min-height:260px;margin:0;border-radius:24px;background:#15181a;color:#858c91;font-weight:750}
.order-hero__empty[hidden]{display:none}
.order-hero__copy{max-width:690px}.order-hero__copy h1{font-size:clamp(2rem,5vw,3.6rem);line-height:1.03;margin:.22em 0}
.order-hero__copy p{color:var(--order-muted);font-size:1.04rem;line-height:1.65;margin:0}

.order-code-card{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:22px;padding:clamp(22px,4vw,34px);border:1px solid rgba(244,119,0,.45);border-radius:var(--order-radius);background:linear-gradient(120deg,rgba(244,119,0,.13),rgba(244,119,0,.03)),var(--order-surface);box-shadow:0 16px 45px rgba(0,0,0,.17);animation:order-enter .35s ease both}
.order-code-card>div>span{font-size:.88rem;font-weight:850;color:#e8ebed}
.order-code-card strong{display:block;margin:.12em 0;font-size:clamp(2.1rem,8vw,4.4rem);line-height:1;letter-spacing:.045em;overflow-wrap:anywhere}
.order-code-card p{color:var(--order-muted);margin:.6rem 0 0}
.order-code-card button,.order-next-step button,.order-compact-summary button{min-height:50px;border:1px solid #454b50;border-radius:13px;padding:12px 18px;background:#282d31;color:#fff;font:inherit;font-weight:900}
.order-code-card button.is-primary,.order-next-step button.is-primary{background:var(--order-orange);border-color:var(--order-orange);color:#111}
.order-code-card button:hover,.order-next-step button:hover,.order-compact-summary button:hover{transform:translateY(-1px);filter:brightness(1.06)}

.order-overview{margin-top:48px}
.order-section-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:16px}
.order-section-heading h2,.order-next-step h2,.order-compact-summary h2{font-size:clamp(1.55rem,4vw,2.2rem);margin:.2rem 0 0}
.order-section-heading p{color:var(--order-muted);margin:0}
.order-items{display:grid;gap:10px}
.order-line-item{margin:0;padding:17px 20px;background:var(--order-surface);border:1px solid var(--order-border);border-radius:16px;animation:order-enter .3s ease both}
.order-line-item__top{display:flex;justify-content:space-between;align-items:center;gap:12px}.order-line-item__top strong{font-size:1.12rem;letter-spacing:.025em}
.order-line-item p{margin:7px 0 0;color:var(--order-muted);font-size:.9rem}
.order-line-item__reference{display:block;margin-top:7px;color:#747b80;font-size:.68rem;letter-spacing:.02em}

.order-next-step{margin-top:48px;padding:clamp(24px,5vw,44px);text-align:center;border:1px solid rgba(244,119,0,.35);border-radius:26px;background:radial-gradient(circle at 50% 0,rgba(244,119,0,.14),transparent 55%),var(--order-surface)}
.order-next-step>p{color:var(--order-muted);font-size:1.02rem}
.order-shop-cta{display:block;width:min(100%,440px);margin:22px auto 10px;font-size:1.05rem}
.order-next-step small{display:block;color:#92999e}
.order-next-step [data-shop-status]{margin:12px auto 0;max-width:600px;color:#e4aa76;font-size:.87rem}
.order-report-action{margin-top:24px;background:transparent!important}
.order-report-note{font-size:.82rem!important;margin:.6rem 0 0!important}

.order-trust{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;padding:0;margin:18px auto 0;max-width:720px;list-style:none}
.order-trust li{display:flex;align-items:center;justify-content:center;gap:7px;min-height:52px;padding:8px;border:1px solid var(--order-border);border-radius:13px;background:#171a1d;color:#cbd0d3;font-size:.78rem;text-align:center}
.order-trust span{color:var(--order-orange);font-weight:950}

.order-compact-summary{margin-top:38px;padding:clamp(20px,4vw,30px);border:1px solid var(--order-border);border-radius:var(--order-radius);background:var(--order-surface)}
.order-compact-summary dl{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;margin:20px 0;background:var(--order-border);border:1px solid var(--order-border);border-radius:14px;overflow:hidden}
.order-compact-summary dl div{padding:16px;background:#171a1d}
.order-compact-summary dt{color:#92999e;font-size:.78rem}.order-compact-summary dd{margin:4px 0 0;font-size:1.2rem;font-weight:900}
.order-compact-summary>button{width:100%}
.order-compact-summary [data-copy-status]{min-height:1.2em;margin:10px 0 0;color:#79c99e;text-align:center}

.order-state{padding:clamp(42px,10vw,96px) clamp(18px,5vw,54px);text-align:center;background:var(--order-surface);border:1px solid var(--order-border);border-radius:26px;box-shadow:var(--order-shadow)}
.order-state__icon{display:grid;place-items:center;width:78px;height:78px;margin:0 auto 22px;border-radius:22px;background:rgba(244,119,0,.11);color:var(--order-orange)}
.order-state__icon svg{width:42px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.order-state h1{font-size:clamp(1.8rem,5vw,2.8rem);margin:.2em 0}.order-state>p{color:var(--order-muted);font-size:1rem}
.order-state__actions{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;margin-top:24px}
.order-state__actions button{min-height:48px;border:1px solid #3c4247;border-radius:12px;background:#24282c;color:#fff;padding:11px 16px;font-weight:800}.order-state__actions .is-primary{background:var(--order-orange);border-color:var(--order-orange);color:#101214}

.order-selection-bar{position:sticky;bottom:12px;background:#171a1d;border:1px solid var(--order-orange);border-radius:18px;padding:14px;z-index:3}
.order-controls{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;margin-top:12px}
.order-controls>[data-customer-image]{grid-column:1/-1}
.order-quantity{display:flex;align-items:center;gap:10px}.order-quantity button{width:42px;height:42px}
.product-price-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;margin:16px 0 0;padding:1px;overflow:hidden;border:1px solid var(--order-border);border-radius:15px;background:var(--order-border)}
.product-price-summary[hidden]{display:none}
.product-price-summary>div{min-width:0;padding:13px 14px;background:#111416}
.product-price-summary dt{color:#9fa5a9;font-size:.76rem;line-height:1.35}
.product-price-summary dd{margin:4px 0 0;overflow-wrap:anywhere;color:#f4f5f6;font-size:1rem;font-weight:850;line-height:1.3}
.product-price-summary__subtotal dd{color:#ff9a3d;font-size:1.18rem}
.product-price-summary__shipping{grid-column:1/-1}
.product-price-summary__shipping dd{color:#aeb4b8;font-size:.82rem;font-weight:700}
.product-price-summary--selection{margin:12px 0 0}
.product-price-summary--order{margin-top:14px}

.admin-hub,.admin-section-nav{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:20px 0}
.admin-hub__card,.admin-section-nav a,.admin-orders-shell button,.production-shell button{min-height:46px;box-sizing:border-box;border:1px solid #3c4247;border-radius:12px;background:#24282c;color:#fff;padding:11px 14px;text-decoration:none;font-weight:800}
.admin-hub__card{display:flex;flex-direction:column;gap:5px}.admin-hub__card span{color:#bcc1c5;font-size:.86rem}
.admin-hub__card.is-active,.admin-section-nav a.is-active{border-color:var(--order-orange);background:#332316}
.admin-order-toolbar,.production-toolbar{display:flex;gap:12px;align-items:end;justify-content:space-between;flex-wrap:wrap}.admin-order-toolbar label{flex:1}.production-toolbar p{margin:0}
.admin-orders-shell input,.admin-orders-shell textarea,.admin-orders-shell select,.production-shell input,.production-shell textarea,.production-shell select{box-sizing:border-box;width:100%;background:#0e1012;color:#fff;border:1px solid #41474d;border-radius:12px;padding:12px;font:inherit}
.admin-orders-shell select:disabled{color:#92999e;cursor:not-allowed}
.admin-bundle-layout{display:grid;grid-template-columns:minmax(260px,.8fr) minmax(320px,1.2fr);gap:20px}
.admin-bundle-card{display:flex;width:100%;flex-direction:column;gap:5px;text-align:left;margin:10px 0}.admin-bundle-card small{color:#bfc4c7}
.admin-bundle-card__header{display:flex;align-items:center;justify-content:space-between;gap:10px}
.order-status{display:inline-flex;align-items:center;min-height:24px;border:1px solid #525960;border-radius:999px;padding:3px 9px;color:#d7dadd;font-size:.7rem;font-weight:900;letter-spacing:.03em;white-space:nowrap}
.order-status--paid{border-color:#db812f;background:#4a2b13;color:#ffb675}.order-status--in_production{border-color:#377bb5;background:#132e46;color:#8bc7f8}.order-status--produced{border-color:#6f6ab5;background:#29264a;color:#c5c2ff}.order-status--packed{border-color:#947346;background:#3c2d19;color:#edc995}.order-status--shipped{border-color:#41836b;background:#173b2f;color:#94dec4}.order-status--completed{border-color:#4a9361;background:#193b24;color:#9de1b1}
.production-item,.admin-bundle-card{background:#22262a;border:1px solid #34393e;border-radius:15px;padding:14px}
[data-admin-bundle-detail],.workflow-detail{background:#202428;border:1px solid #33383d;border-radius:18px;padding:18px}
[data-admin-bundle-detail] label,.workflow-form label{display:block;margin:14px 0}
[data-admin-bundle-detail] dl,.workflow-detail dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;margin:16px 0;background:#34393e;border:1px solid #34393e;border-radius:14px;overflow:hidden}
[data-admin-bundle-detail] dl div,.workflow-detail dl div{min-width:0;padding:12px;background:#191c1f}
[data-admin-bundle-detail] dt,.workflow-detail dt{color:#9ba1a6;font-size:.72rem}
[data-admin-bundle-detail] dd,.workflow-detail dd{margin:4px 0 0;overflow-wrap:anywhere;font-weight:800}
.admin-detail-item,.production-item{margin:10px 0;background:#22262a;border:1px solid #34393e;border-radius:15px;padding:14px;break-inside:avoid}
.admin-detail-item h4,.production-item h4{margin:0 0 8px}.admin-detail-item p,.production-item p{margin:4px 0;color:#c3c8cb}
.production-dashboard{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin:22px 0}
.production-dashboard article{min-width:0;padding:14px;border:1px solid #34393e;border-radius:15px;background:#202428;text-align:center}
.production-dashboard span{display:block;min-height:2.4em;color:#afb5b9;font-size:.72rem;line-height:1.2}
.production-dashboard strong{display:block;margin-top:5px;color:var(--order-orange);font-size:1.65rem}
.workflow-order-layout{display:grid;grid-template-columns:minmax(250px,.78fr) minmax(360px,1.22fr);gap:20px;margin-top:16px}
.workflow-detail__heading{display:flex;align-items:start;justify-content:space-between;gap:12px}
.workflow-detail__heading h2{margin:.15em 0 0;overflow-wrap:anywhere}
.workflow-detail h3{margin:24px 0 10px;font-size:1rem}
.workflow-form{margin-top:24px;padding-top:8px;border-top:1px solid #383d42}
.workflow-form small{display:block;margin-top:8px;color:#9da3a7}
.shipping-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:16px 0;padding:14px;border:1px solid #35694f;border-radius:14px;background:#142b21;color:#b8ead3}
.shipping-summary__status{display:flex;min-width:0;flex-direction:column;gap:3px}.shipping-summary__status strong{color:#d7f6e7}.shipping-summary__status small{color:#9bcbb5}
.shipping-summary__actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.shipping-action-button{display:inline-flex;min-height:44px;box-sizing:border-box;align-items:center;justify-content:center;flex:0 0 auto;border:1px solid #4a8b6c;border-radius:12px;background:#1c3b2d;color:#e5fff2;padding:10px 14px;text-decoration:none;font-weight:850}
.shipping-dialog{box-sizing:border-box;width:min(94vw,620px);max-height:min(90vh,820px);margin:auto;overflow:auto;border:1px solid #3f454a;border-radius:20px;background:#1b1f22;color:#f5f6f7;padding:0;box-shadow:0 24px 80px rgba(0,0,0,.55)}
.shipping-dialog::backdrop{background:rgba(0,0,0,.72);backdrop-filter:blur(3px)}
.shipping-dialog__form{padding:22px}.shipping-dialog__form h2{margin:.25em 0 .35em}.shipping-dialog__form>section>p{color:#b9bec2}
.shipping-dialog__form [hidden]{display:none!important}
.shipping-dialog__eyebrow{color:var(--order-orange);font-size:.72rem;font-weight:900;letter-spacing:.1em}
.shipping-dialog label{display:block;margin:14px 0;color:#d9dcde;font-weight:750}
.shipping-dialog input{box-sizing:border-box;width:100%;margin-top:7px;border:1px solid #474e54;border-radius:12px;background:#0e1012;color:#fff;padding:13px;font:inherit}
.shipping-dialog input:focus{outline:2px solid var(--order-orange);outline-offset:2px}
.shipping-dialog input[aria-invalid="true"]{border-color:#e88046;box-shadow:0 0 0 1px #e88046}
.shipping-dialog__field-error{display:block;margin-top:6px;color:#ffb16b;font-size:.82rem;font-weight:700;line-height:1.35}
.shipping-dialog__field-error:empty{display:none}
.shipping-invoice{margin:14px 0}
.shipping-invoice__label{display:block;margin-bottom:7px;color:#d9dcde;font-weight:750}
.shipping-invoice__input{position:absolute!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;overflow:hidden!important;clip:rect(0,0,0,0);white-space:nowrap;border:0!important}
.shipping-invoice__choose{width:100%;border-style:dashed!important;border-color:#626970!important;background:#141719!important}
.shipping-invoice__selection{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;padding:12px;border:1px solid #596168;border-radius:13px;background:#111416}
.shipping-invoice__icon{display:grid;place-items:center;width:44px;height:44px;border-radius:10px;background:#9f2e25;color:#fff;font-size:.72rem;font-weight:950;letter-spacing:.04em}
.shipping-invoice__details{display:flex;min-width:0;flex-direction:column;gap:2px}.shipping-invoice__details strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.shipping-invoice__details small{color:#aeb4b8}.shipping-invoice__details .shipping-invoice__valid{color:#8ed6ae}
.shipping-invoice__actions{display:flex;gap:6px}.shipping-invoice__actions button{min-height:40px;padding:8px 10px;font-size:.82rem}
.shipping-invoice__hint{display:block;margin-top:7px;color:#969ca1;font-size:.8rem;line-height:1.4}
.shipping-dialog__actions{display:grid;grid-template-columns:1fr 1.5fr;gap:10px;margin-top:20px}
.shipping-dialog button{min-height:48px;box-sizing:border-box;border:1px solid #464d52;border-radius:12px;background:#282d31;color:#fff;padding:11px 14px;font:inherit;font-weight:850;cursor:pointer}
.shipping-dialog button.is-primary{border-color:#e27a1c;background:var(--order-orange);color:#17100a}.shipping-dialog button:disabled{opacity:.58;cursor:wait}
.shipping-dialog__message{min-height:1.5em;margin:10px 0 0;color:#ffb16b!important;font-weight:750}
.shipping-preview__meta{display:grid;gap:1px;margin:16px 0;overflow:hidden;border:1px solid #383e43;border-radius:13px;background:#383e43}
.shipping-preview__meta div{min-width:0;padding:10px 12px;background:#141719}.shipping-preview__meta dt{color:#999fa4;font-size:.72rem}.shipping-preview__meta dd{margin:3px 0 0;overflow-wrap:anywhere;font-weight:800}
.shipping-preview__text{max-height:42vh;margin:14px 0;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;border:1px solid #3b4146;border-radius:14px;background:#0f1113;color:#e7e9ea;padding:15px;font:inherit;line-height:1.55}

@keyframes order-enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes order-product-enter{from{opacity:0;filter:drop-shadow(0 8px 12px rgba(0,0,0,.18))}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.order-code-card,.order-line-item,.order-hero__products img{animation:none}.order-page button{transition:none!important}}
@media(max-width:760px){
  .order-page{padding:16px 12px 82px}
  .order-hero{gap:42px;padding:0 0 18px}.order-hero__gallery{width:100%}.order-hero__products{gap:16px}.order-hero__copy h1{font-size:2.2rem}
  .order-hero__products.has-count-1{grid-template-columns:minmax(0,min(72vw,430px))}
  .order-hero__products.has-count-2{grid-template-columns:repeat(2,minmax(0,1fr))}
  .order-hero__products.has-count-3,.order-hero__products.has-count-4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .order-hero__products.has-count-3 img:last-child{grid-column:1/-1;justify-self:center;width:calc((100% - 16px)/2)}
  .order-code-card{align-items:stretch;flex-direction:column}.order-code-card button{width:100%}
  .order-trust{grid-template-columns:1fr}
  .admin-hub,.admin-bundle-layout,.workflow-order-layout{grid-template-columns:1fr}.admin-section-nav{display:flex;overflow-x:auto;scrollbar-width:thin}.admin-section-nav a{flex:0 0 auto;white-space:nowrap}
  .shipping-summary{align-items:stretch;flex-direction:column}.shipping-summary__actions{align-items:stretch;flex-direction:column}.shipping-action-button{width:100%}
  .production-dashboard{grid-template-columns:repeat(3,minmax(0,1fr))}
  .order-controls{grid-template-columns:1fr}.order-quantity{justify-content:space-between}
}
@media(max-width:430px){
  .order-progress li strong{font-size:.66rem;line-height:1.2}.order-progress li span{width:28px;height:28px}.order-progress li:not(:last-child)::after{top:14px}
  .order-hero__products.has-count-1{grid-template-columns:minmax(0,62vw)}.order-hero__copy h1{font-size:1.95rem}
  .order-line-item{padding:15px}.order-line-item__top strong{font-size:1rem}
  .order-section-heading{align-items:start;flex-direction:column;gap:6px}
  .order-compact-summary dl{grid-template-columns:1fr}
  .product-price-summary{grid-template-columns:1fr}
  .product-price-summary__shipping{grid-column:auto}
  .product-price-summary>div{display:flex;align-items:baseline;justify-content:space-between;gap:14px;padding:11px 13px}
  .product-price-summary dd{flex:0 1 auto;text-align:right}
  .production-dashboard{grid-template-columns:repeat(2,minmax(0,1fr))}
  [data-admin-bundle-detail] dl,.workflow-detail dl{grid-template-columns:1fr}
  .admin-bundle-card__header{align-items:flex-start;flex-direction:column}
  .shipping-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 20px);border-radius:17px}.shipping-dialog__form{padding:18px 15px}.shipping-dialog__actions{grid-template-columns:1fr}.shipping-invoice__selection{grid-template-columns:auto minmax(0,1fr)}.shipping-invoice__actions{grid-column:1/-1}.shipping-invoice__actions button{flex:1}
}
@media print{body>*:not(main),.no-print,.shipping-dialog{display:none!important}.page{display:none!important}.production-page.is-active{display:block!important;padding:0;background:#fff;color:#000}.production-shell{border:0;background:#fff;color:#000;padding:0}.production-item{border:1px solid #999;background:#fff;color:#000}}
