@font-face{font-family:'DM Sans';src:url('assets/dm-sans-400.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'DM Sans';src:url('assets/dm-sans-500.ttf') format('truetype');font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:'DM Sans';src:url('assets/dm-sans-600.ttf') format('truetype');font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:'DM Sans';src:url('assets/dm-sans-700.ttf') format('truetype');font-weight:700;font-style:normal;font-display:swap}
:root{font-family:'DM Sans',Arial,sans-serif;color:#18253e;background:#f6f8fc;font-synthesis:none;--ink:#18253e;--muted:#4b586e;--brand:#4f5ddd;--border:#e2e7f0;--lavender:#eef0ff;--page:#f6f8fc;--green:#087f63;--red:#c73446;--amber:#99540c;--white:#fff;line-height:1.5;font-size:16px;color-scheme:light}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit;color:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.46}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible{outline:3px solid #4f5ddd88;outline-offset:3px}input:focus,textarea:focus,select:focus{outline:2px solid #4f5ddd;outline-offset:2px}button{background:none;border:0}h1,h2,h3,h4,p{margin:0}h1{font-size:34px;line-height:1.24;font-weight:700;letter-spacing:-.7px}h2{font-size:24px;line-height:32px;letter-spacing:-.25px}h3{font-size:20px;line-height:28px}h4{font-size:16px}a{color:var(--brand)}small,.small{font-size:14px}strong{font-weight:600}img{max-width:100%}.muted{color:var(--muted)}.hidden{display:none!important}.skip-link{position:fixed;top:-60px;left:16px;z-index:100;background:white;padding:12px}.skip-link:focus{top:12px}.site-header{position:sticky;top:0;height:80px;background:#fffffff7;backdrop-filter:blur(16px);z-index:30;border-bottom:1px solid var(--border)}.header-inner{max-width:1280px;margin:auto;height:100%;display:flex;align-items:center;gap:56px}.wordmark{font-size:27px;font-weight:700;letter-spacing:-1px;padding:0;display:flex;align-items:center;gap:16px}.wordmark span{font-size:11px;line-height:24px;font-weight:500;letter-spacing:.4px;color:var(--muted);background:var(--page);padding:0 8px;border-radius:6px}nav{display:flex;gap:28px;align-items:center}nav button{padding:12px 0;font-size:14px;color:var(--muted)}nav button.active{color:var(--brand);font-weight:600}.profile{margin-left:auto;display:flex;align-items:center;gap:12px;min-width:220px}.profile img{border-radius:50%;object-fit:cover}.profile strong,.profile span{display:block;font-size:14px;line-height:20px}.profile span{color:var(--muted);font-size:12px}main{max-width:1280px;margin:auto;padding:32px 0 48px;min-height:calc(100vh - 200px)}.breadcrumb{font-size:14px;color:var(--muted);margin-bottom:32px}.breadcrumb button{padding:0;font-size:14px;color:var(--muted)}.hero{display:flex;gap:32px;align-items:center;margin-bottom:40px}.gallery{width:432px;flex:none;display:grid;grid-template-columns:322px 102px;gap:8px;align-items:stretch}.hero-image{height:322px;position:relative;border-radius:16px;overflow:hidden}.hero-image>button.photo-zoom{display:block;width:100%;height:100%;padding:0}.hero-image>button>img{display:block;width:100%;height:100%;object-fit:cover}.photo-counter{position:absolute;right:12px;top:12px;background:white;color:var(--muted);padding:3px 10px;font-size:12px;border-radius:8px;pointer-events:none}.carousel-arrow{position:absolute;top:calc(50% - 16px);height:32px;width:32px;padding:3px;background:white;border:1px solid var(--border);border-radius:50%;display:grid;place-items:center}.carousel-arrow.previous{left:12px}.carousel-arrow.next{right:12px}.carousel-arrow img{width:24px;height:24px}.thumbnails{display:grid;grid-template-rows:repeat(3,1fr);gap:8px}.thumbnail{padding:0;border:2px solid transparent;border-radius:8px;overflow:hidden;width:102px;height:102px;opacity:1}.thumbnail.active{border-color:var(--brand);opacity:1}.thumbnail img{width:100%;height:100%;object-fit:cover;display:block}.product-info{display:flex;flex-direction:column;gap:16px}.product-identity{display:grid;gap:4px}.metadata{display:flex;gap:20px;font-size:14px;color:var(--muted)}.product-price{display:flex;align-items:baseline;gap:12px}.product-price strong{font-size:32px;line-height:45px;letter-spacing:-.6px;font-weight:700}.product-price span,.specs{color:var(--muted)}.swatches{display:flex;gap:24px;align-items:center}.swatch{display:flex;align-items:center;gap:8px}.swatch img{height:24px;width:24px}.sizes-line{display:flex;align-items:center;gap:24px}.sizes-line strong{font-weight:500}.delivery-intro{color:var(--muted);font-size:14px}.section-heading{margin-bottom:24px}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 352px;gap:24px;align-items:start}.panel,.order-sidebar{border:1px solid var(--border);border-radius:16px;background:white;padding:24px;min-width:0}.panel{min-height:500px}.order-sidebar{position:sticky;top:104px;min-height:500px}.method-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));background:var(--page);border:1px solid var(--border);border-radius:8px;padding:6px;gap:4px;min-height:58px;margin-bottom:32px}.method-tab{height:44px;padding:0 8px;border:1.5px solid transparent;border-radius:28px;color:var(--muted);font-size:16px;font-weight:500;white-space:nowrap;min-width:0}.method-tab.active{background:white;border-color:var(--brand);color:var(--brand)}.field-label{display:block;font-size:20px;font-weight:700;line-height:28px;margin:0 0 8px}.request-text{width:100%;min-height:186px;resize:vertical;border:1px solid var(--border);border-radius:12px;padding:16px 20px;display:block;line-height:24px;background:white}.request-text::placeholder{color:var(--muted);opacity:1}.assistant-actions{display:flex;align-items:center;gap:12px;margin-top:20px;justify-content:space-between;flex-wrap:wrap}.suggestions{display:flex;flex-wrap:wrap;gap:8px}.button{border:1px solid var(--border);border-radius:8px;min-height:44px;padding:10px 20px;display:inline-flex;justify-content:center;align-items:center;gap:8px;background:white;font-size:16px;text-decoration:none;font-weight:500;line-height:24px;transition:background .12s,border-color .12s}.button:hover:not(:disabled){background:#f6f7ff;border-color:#b4bbee}.button.primary{background:var(--brand);border-color:var(--brand);color:white}.button.primary:hover:not(:disabled){background:#3d4bc8}.button.compact{min-height:36px;padding:5px 12px;font-size:14px;line-height:24px}.button.suggestion{font-size:14px;color:var(--brand);min-height:36px;padding:5px 12px}.button.outline-brand{border-color:var(--brand);color:var(--brand)}.button.full{width:100%}.text-button{color:var(--brand);padding:0;display:inline-flex;align-items:center;gap:6px;text-decoration:none;font-size:14px}.text-button:hover{text-decoration:underline}.icon-button{height:36px;min-width:36px;border-radius:8px;padding:6px;display:inline-grid;place-items:center}.icon-button:hover{background:var(--page)}.icon-button img{width:24px;height:24px}.selection-summary{background:var(--lavender);padding:20px 24px;border-radius:12px;margin-top:24px}.summary-title-line{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:6px}.selection-summary h3{font-weight:700}.color-breakdown{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 28px;margin-top:16px}.breakdown-detail{font-size:14px;line-height:22px;margin-top:4px}.selection-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:24px;border-top:1px solid var(--border);padding-top:24px;margin-top:24px}.notice{border-radius:12px;padding:16px 20px;margin-top:20px;background:#fff5e7}.notice h3{font-size:18px;line-height:26px;margin-bottom:8px}.notice p+p{margin-top:8px}.notice.error{background:#fff0f2;color:var(--ink)}.notice.error h3{color:var(--red)}.notice.info{background:var(--lavender)}.notice.success{background:#eaf7f2}.notice .text-button{margin-top:8px}.error-text{color:var(--red);font-size:14px;margin-top:8px;line-height:20px}.stock-confirmation{color:var(--green);font-size:14px;margin-top:16px}.sidebar-title{font-size:20px;font-weight:500;margin:0 0 24px}.price-row{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-top:16px;font-size:14px;line-height:24px;font-variant-numeric:tabular-nums}.price-row span:first-child{color:var(--muted)}.sidebar-divider{border:0;border-top:1px solid var(--border);margin:20px 0 16px}.total-row{display:flex;justify-content:space-between;gap:16px;align-items:baseline;margin:24px 0;font-size:20px}.total-row strong{font-weight:700;font-size:28px;letter-spacing:-.5px;white-space:nowrap}.order-sidebar .button+.button{margin-top:16px}.sidebar-note{font-size:14px;margin-top:16px;color:var(--muted)}.form-group+.form-group{margin-top:24px}.form-group>label,.form-group>legend,.group-label{font-size:16px;display:block;font-weight:600;margin-bottom:12px}.choice-buttons{display:flex;gap:12px;flex-wrap:wrap}.choice-button{border:1px solid var(--border);border-radius:8px;min-height:44px;padding:10px 16px;min-width:140px;font-size:14px;background:white}.choice-button.selected{border-color:var(--brand);color:var(--brand);background:var(--lavender)}.size-buttons{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:12px}.size-buttons .choice-button{min-width:0;padding:10px 4px}.quantity-methods{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.quantity-choice{border:1px solid var(--border);border-radius:12px;min-height:60px;padding:14px 14px;display:flex;align-items:center;gap:10px;font-size:14px;cursor:pointer}.quantity-choice.selected{border-color:var(--brand);background:var(--lavender)}.quantity-choice input{width:20px;height:20px;accent-color:var(--brand);flex:none;margin:0}.quantity-choice span{min-width:0}.input{border:1px solid var(--border);border-radius:8px;background:white;min-height:44px;padding:10px 12px;max-width:100%}.quantity-main{width:160px}.inline-field{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.per-size-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.per-size-grid label{font-size:14px}.per-size-grid .input{width:100%;display:block;margin-top:6px}.table-scroll{overflow:auto;max-width:100%;border-radius:8px}.allocation-table{width:100%;table-layout:fixed;border-collapse:collapse;min-width:770px;font-variant-numeric:tabular-nums}.allocation-table th{background:var(--page);padding:14px 10px;color:var(--ink);font-size:14px;font-weight:500;text-align:center}.allocation-table td{padding:12px 10px;text-align:center;border-bottom:1px solid var(--border);vertical-align:middle;height:64px}.allocation-table th:last-child,.allocation-table td:last-child{width:52px}.allocation-table .error-row td{background:#fff8f9}.allocation-table .amount{white-space:nowrap}.stock-cell{font-size:14px}.stock-cell.out{color:var(--red)}.stock-cell small{display:block;font-size:12px}.stepper{display:inline-flex;height:38px;width:104px;border:1px solid var(--border);border-radius:8px;background:white;align-items:center;justify-content:center;overflow:hidden}.stepper button{width:30px;height:36px;padding:3px;display:grid;place-items:center;flex:none}.stepper button:hover{background:var(--page)}.stepper img{height:20px;width:20px}.stepper input{border:0;background:transparent;text-align:center;min-width:0;width:42px;height:34px;padding:0;appearance:textfield;font-size:16px;outline-offset:-2px}.stepper input::-webkit-inner-spin-button{display:none}.stepper input[aria-invalid=true]{color:var(--red)}.select{appearance:none;background:white url('assets/down.svg') no-repeat right 9px center;background-size:14px;border:1px solid var(--border);border-radius:8px;min-height:38px;padding:7px 27px 7px 9px;font-size:14px;max-width:100%;width:100%}.new-row td{background:var(--lavender);vertical-align:middle}.row-actions{display:flex;gap:2px;justify-content:center}.row-actions .icon-button{min-width:24px;width:24px;height:30px;padding:2px}.file-title{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:24px 0 20px;overflow-wrap:anywhere}.file-title h3{font-size:18px}.csv-upload-actions{display:flex;align-items:center;flex-wrap:wrap;gap:16px;margin:16px 0 0}.empty-upload{border:1.5px dashed #bdc6df;border-radius:12px;background:#fafbff;padding:32px;text-align:center;display:grid;justify-items:center;gap:16px;margin-top:24px}.empty-upload.dragover{border-color:var(--brand);background:var(--lavender)}.csv-actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin-top:20px}.previous-list{display:grid;gap:16px;margin-top:20px}.previous-card{border:1px solid var(--border);border-radius:12px;background:white;padding:20px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;cursor:pointer}.previous-card.selected{border-color:var(--brand);background:var(--lavender)}.previous-card h4{font-size:16px;font-weight:600}.previous-card p{font-size:14px;color:var(--muted);margin-top:6px}.previous-card .stock-confirmation{color:var(--green);margin-top:8px}.previous-card .stock-confirmation.shortage{color:var(--red)}.previous-card .button{align-self:start;background:white;min-width:70px}.card-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px}.stock-section{margin-top:40px}.stock-section>h2{margin-bottom:24px}.rules{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.rule{padding:16px;background:var(--page);border-radius:12px}.rule span{display:block;color:var(--muted);font-size:14px}.rule strong{display:block;font-size:20px;font-weight:500;margin:4px 0}.rule small{color:var(--muted);font-size:14px}.stock-table{width:100%;table-layout:fixed;min-width:970px;border-collapse:separate;border-spacing:0 4px;margin:20px 0 0}.stock-table th{padding:10px 8px;font-weight:500;font-size:14px;color:var(--muted)}.stock-table td{height:64px;padding:8px;text-align:center;font-size:16px}.stock-table th:first-child,.stock-table td:first-child{text-align:left;width:120px;padding-left:16px}.stock-color{display:flex;align-items:center;gap:8px;font-weight:500}.stock-color img{width:16px;height:16px}.stock-table td.unavailable{color:var(--red);background:#fff0f2;border-radius:6px;font-size:14px}.stock-table td.low{color:var(--amber);background:#fff5e7;border-radius:6px}.stock-table td small{font-size:12px;display:block}.restock-info{background:var(--lavender);padding:14px 16px;border-radius:10px;margin-top:16px;font-size:14px}.restock-info p{margin-top:4px;color:var(--muted)}.page-heading{margin-bottom:24px;display:flex;align-items:start;justify-content:space-between;gap:20px}.page-heading h1{font-size:30px;line-height:40px}.page-heading p{color:var(--muted);margin-top:8px}.review-product{display:flex;gap:20px;align-items:center;margin-bottom:24px}.review-product img{width:88px;height:88px;border-radius:10px;object-fit:cover}.review-product h2{font-size:22px}.review-product p{margin-top:4px;color:var(--muted);font-size:14px}.review-rows{min-width:650px}.review-rows th:last-child,.review-rows td:last-child{width:auto}.review-rows th,.review-rows td{padding:16px}.review-rows th:first-child,.review-rows td:first-child{text-align:left}.review-delivery{border-top:1px solid var(--border);padding-top:24px;margin-top:24px}.shipment-options{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:16px 0}.shipment-option{border:1px solid var(--border);border-radius:12px;padding:16px;cursor:pointer;display:flex;gap:12px;align-items:start}.shipment-option.selected{border-color:var(--brand);background:var(--lavender)}.shipment-option input{width:20px;height:20px;accent-color:var(--brand);flex:none;margin:2px 0}.shipment-option strong{display:block}.shipment-option p{font-size:14px;color:var(--muted);margin-top:6px}.shipment-plan{background:var(--page);border-radius:10px;padding:16px;font-size:14px}.shipment-plan p{margin-top:6px;color:var(--muted)}.success-mark{display:grid;place-items:center;width:56px;height:56px;border-radius:50%;background:#eaf7f2;color:var(--green);font-size:28px;margin-bottom:20px}.receipt-panel{max-width:920px;margin:0 auto}.receipt-panel .selection-summary{margin:24px 0}.receipt-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}.history-list{display:grid;gap:16px}.history-row{background:white;border:1px solid var(--border);border-radius:12px;padding:24px;display:flex;align-items:center;justify-content:space-between;gap:24px}.history-row h3{font-size:18px}.history-row p{font-size:14px;color:var(--muted);margin-top:6px}.history-actions{display:flex;gap:12px;align-items:center}.tag{background:var(--lavender);border-radius:6px;padding:4px 8px;font-size:12px;color:var(--brand);display:inline-block}.site-footer{max-width:1280px;padding:24px 0;margin:0 auto;border-top:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;gap:24px}.site-footer>div{display:flex;gap:20px;align-items:center}.site-footer strong{font-size:16px;letter-spacing:-.5px}.site-footer span{color:var(--muted);font-size:12px}dialog{border:1px solid var(--border);border-radius:20px;max-width:min(960px,calc(100vw - 32px));width:960px;padding:28px;color:var(--ink);box-shadow:0 24px 100px #18253e33;max-height:calc(100dvh - 48px);overflow:auto}dialog::backdrop{background:#18253e70;backdrop-filter:blur(2px)}.modal-heading{display:flex;justify-content:space-between;align-items:start;gap:24px;margin-bottom:24px}.modal-heading p{color:var(--muted);margin-top:8px}.size-chart{width:100%;table-layout:fixed;border-collapse:collapse}.size-chart th{font-size:14px;color:var(--muted);font-weight:500;background:var(--page)}.size-chart td,.size-chart th{padding:14px 24px;text-align:center;border-bottom:1px solid var(--border)}.size-chart tbody tr:nth-child(even){background:var(--page)}.size-chart td:first-child{font-weight:600}.modal-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:24px}.modal-form{display:grid;gap:12px}.modal-form input{width:100%}.zoom-image{max-height:68vh;display:block;margin:auto;object-fit:contain}.dialog-edit-table{margin-top:16px}#toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,20px);opacity:0;pointer-events:none;background:var(--ink);color:white;border-radius:10px;padding:12px 20px;box-shadow:0 6px 24px #18253e22;z-index:80;max-width:calc(100vw - 32px);font-size:14px;transition:.2s}#toast.show{opacity:1;transform:translate(-50%,0)}#print-document{display:none}.empty-state{display:grid;gap:16px;justify-items:start;background:white;border:1px solid var(--border);border-radius:16px;padding:32px}.empty-state p{color:var(--muted)}.allocation-status{margin-top:12px}.keyline{border:0;border-top:1px solid var(--border);margin:24px 0}.edit-layout .allocation-table{min-width:680px}.edit-layout .allocation-table th:last-child,.edit-layout .allocation-table td:last-child{width:44px}.number{font-variant-numeric:tabular-nums}
@media(min-width:1121px){.assistant-panel{min-height:500px}.assistant-panel:has(.selection-summary){min-height:0}}
@media(max-width:1380px){.header-inner,main,.site-footer{margin-left:32px;margin-right:32px}.header-inner{gap:40px}.method-tab{font-size:14px}.suggestions .button{padding:5px 10px}}
@media(max-width:1120px){.workspace{grid-template-columns:minmax(0,1fr) 310px;gap:20px}.order-sidebar{padding:20px}.panel{padding:20px}.quantity-methods{grid-template-columns:1fr}.hero{gap:28px}.gallery{width:380px;grid-template-columns:286px 86px}.hero-image{height:286px}.thumbnail{width:86px;height:90px}.product-info h1{font-size:30px}.product-info{gap:12px}.specs{font-size:14px}.header-inner{gap:32px}.profile{min-width:180px}.profile strong{font-size:14px}.wordmark span{display:none}.size-buttons{gap:6px}.method-tabs{grid-template-columns:repeat(2,minmax(0,1fr));min-height:106px}.assistant-actions{align-items:stretch}.assistant-actions>.primary{margin-left:auto}}
@media(max-width:900px){.workspace{grid-template-columns:1fr}.order-sidebar{position:static;min-height:0}.hero{align-items:start}.gallery{width:330px;grid-template-columns:260px 62px;gap:8px}.hero-image{height:260px}.thumbnail{width:62px;height:81px}.product-info h1{font-size:28px}.product-price{flex-wrap:wrap;gap:0 12px}.swatches{gap:16px}.sizes-line{gap:12px;flex-wrap:wrap}.specs{max-width:330px}.method-tabs{grid-template-columns:repeat(4,minmax(0,1fr));min-height:58px}.order-sidebar .price-row{margin-top:12px}.order-sidebar h3{margin-bottom:12px}.total-row{margin:16px 0}.profile{min-width:160px}.header-inner{gap:28px}.rules{gap:12px}.rule{padding:14px}.site-footer>div{display:block}.site-footer span{display:block;margin-top:6px}.per-size-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){.header-inner,main,.site-footer{margin-left:20px;margin-right:20px}.site-header{height:70px}.header-inner{gap:24px}.wordmark{font-size:24px}.profile{min-width:0}.profile>div{display:none}.profile img{width:32px;height:32px}nav{gap:16px}nav button{font-size:14px}.hero{display:block}.gallery{width:100%;grid-template-columns:minmax(0,1fr) 76px;max-width:430px;margin:0 auto 28px}.hero-image{height:auto;aspect-ratio:1}.thumbnail{height:auto;aspect-ratio:1;width:76px}.thumbnails{height:100%;display:flex;flex-direction:column;justify-content:space-between}.hero h1{font-size:30px}.specs{max-width:none}.product-info{gap:14px}.metadata{gap:16px}.hero{margin-bottom:32px}.breadcrumb{margin-bottom:24px}.panel{padding:16px;border-radius:12px}.method-tabs{grid-template-columns:repeat(2,minmax(0,1fr));min-height:106px;margin-bottom:28px}.field-label{font-size:20px}.request-text{padding:14px;min-height:180px}.assistant-actions>.primary{width:100%;margin:0}.suggestions{display:grid;width:100%;grid-template-columns:1fr}.selection-summary{padding:16px}.color-breakdown{grid-template-columns:1fr;gap:12px}.rules{grid-template-columns:1fr}.size-buttons{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.choice-buttons .choice-button{min-width:0;flex:1}.quantity-methods{gap:8px}.previous-card{padding:16px}.previous-card p{font-size:14px}.stock-section{margin-top:32px}.stock-section>h2{font-size:22px}.page-heading{flex-direction:column}.page-heading h1{font-size:28px}.shipment-options{grid-template-columns:1fr}.history-row{display:block;padding:20px}.history-actions{margin-top:16px}.site-footer{align-items:end}.site-footer span{max-width:260px;font-size:12px}.site-footer .text-button{white-space:nowrap}dialog{padding:20px}.size-chart th,.size-chart td{padding:12px 8px;font-size:14px}.modal-heading h2{font-size:24px}.modal-heading .button{padding:8px 14px}.review-product{gap:14px}.review-product h2{font-size:20px}.per-size-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
@media print{body>*{display:none!important}#print-document{display:block!important;background:white;color:black;font:12px Arial;padding:24px}#print-document table{border-collapse:collapse;width:100%}#print-document th,#print-document td{padding:8px;border-bottom:1px solid #ddd;text-align:left}#print-document h1{font-size:24px;margin-bottom:16px}}

/* Allocation columns fit their card, including the action heading and row controls. */
.allocation-table.allocation-editor{min-width:0;max-width:100%;width:100%}
.allocation-table.allocation-editor th,.allocation-table.allocation-editor td{padding-left:8px;padding-right:8px;overflow-wrap:anywhere}
.allocation-table.allocation-editor th:last-child,.allocation-table.allocation-editor td:last-child{width:auto;padding-left:6px;padding-right:6px}
.allocation-editor .select{padding-left:7px;padding-right:24px;background-position:right 7px center}
.allocation-editor .stepper{max-width:100%}
@media(max-width:1100px){
 .workspace{grid-template-columns:minmax(0,1fr)}
 .order-sidebar{position:static;min-height:0}
}
@media(max-width:740px){
 .allocation-scroll{overflow:visible}
 .allocation-table.allocation-editor,.allocation-editor tbody{display:block;width:100%}
 .allocation-editor colgroup{display:none}
 .allocation-editor thead{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .allocation-editor tbody{display:grid;gap:12px}
 .allocation-editor tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 12px;padding:12px;border:1px solid var(--border);border-radius:10px;background:white}
 .allocation-table.allocation-editor td{display:block;height:auto;min-width:0;padding:6px 0;border:0;text-align:left}
 .allocation-editor td::before{content:attr(data-label);display:block;font-size:12px;line-height:18px;color:var(--muted);font-weight:500;margin-bottom:4px}
 .allocation-editor td:nth-child(3){grid-column:1/-1}
 .allocation-editor td:nth-child(4){grid-column:1;grid-row:3}
 .allocation-editor td:nth-child(5){grid-column:2;grid-row:3}
 .allocation-editor td:nth-child(6){grid-column:1;grid-row:4}
 .allocation-table.allocation-editor td:last-child{grid-column:2;grid-row:4;justify-self:end;align-self:end;width:auto;padding:6px 0}
 .allocation-editor td:last-child::before{display:none}
 .allocation-editor tr.new-row{background:var(--lavender)}
 .allocation-editor .stepper{width:120px;max-width:100%}
 .allocation-editor .select{width:100%}
}

/* Keep enlarged images and navigation within the visible dialog. */
dialog.image-dialog{overflow:hidden;max-height:calc(100dvh - 32px);padding:24px}
.image-dialog .modal-heading{align-items:center;margin-bottom:16px}
.image-viewer{position:relative;display:grid;place-items:center;min-height:0;background:var(--page);border-radius:12px;overflow:hidden}
.image-viewer .zoom-image{width:100%;height:min(62dvh,620px);max-height:none;object-fit:contain;margin:0}
.viewer-arrow{position:absolute;top:50%;transform:translateY(-50%);width:48px;height:48px;display:grid;place-items:center;border:1px solid var(--border);border-radius:50%;background:white;box-shadow:0 3px 12px #18253e18}
.viewer-previous{left:16px}.viewer-next{right:16px}.viewer-arrow img{display:block}
.viewer-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:14px;font-size:14px;color:var(--muted)}
#viewer-counter{font-weight:600;color:var(--ink);font-variant-numeric:tabular-nums}
@media(max-width:650px){dialog.image-dialog{padding:16px}.image-viewer .zoom-image{height:min(56dvh,500px)}.viewer-arrow{width:40px;height:40px}.viewer-previous{left:8px}.viewer-next{right:8px}.viewer-footer span:last-child{display:none}}

/* Keep the profile photo square even when header space is tight. */
.profile img{flex:none;aspect-ratio:1}
@media(max-width:650px){
 .site-header{height:auto}
 .header-inner{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"brand profile" "navigation navigation";height:auto;gap:0;padding-top:6px}
 .header-inner .wordmark{grid-area:brand;justify-self:start;min-height:44px}
 .header-inner .profile{grid-area:profile;margin:0}
 .header-inner .profile img{width:36px;height:36px}
 .header-inner nav{grid-area:navigation;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;border-top:1px solid var(--border);margin-top:6px}
 .header-inner nav button{min-height:44px;padding:7px 2px;border-bottom:2px solid transparent;font-size:15px}
 .header-inner nav button.active{border-bottom-color:var(--brand)}
 .header-inner nav button:focus-visible{outline-offset:-4px}
}
