.admin-main{max-width:1180px;margin:38px auto 60px;padding:0 32px}.admin-main h1{font-family:var(--serif);font-weight:500;font-size:40px;line-height:1.05;letter-spacing:-.7px;margin:12px 0 20px}.admin-logout{position:absolute;right:5%;top:38px}#login{max-width:350px;margin:65px auto 0}#login h1{margin:18px 0 35px}#login .primary{justify-content:center}.admin-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.admin-heading .primary{font-size:12px;min-height:46px;padding:12px 20px;white-space:nowrap}.admin-heading h1{margin-bottom:12px}.admin-status{font-size:11px;color:#7d8474;margin:12px 0 23px}.admin-tools{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:25px}.admin-tools input,.admin-tools select{height:43px;padding:0 13px;border:1px solid #e5e6df;border-radius:10px;background:rgba(255,255,255,.8);font-size:12px;color:#5e6855}.admin-tools input{min-width:230px;flex:1}.admin-tools select{min-width:155px}.admin-tools .muted{font-size:11px;min-width:75px}.admin-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.application-card{border:1px solid #e6e8df;border-radius:20px;padding:18px;background:#ffffff80;overflow:hidden}.application-photo{display:flex;align-items:center;justify-content:center;height:260px;margin:0 0 16px}.application-photo img{height:100%;max-width:100%;object-fit:contain;background:transparent}.application-card h2{font-size:14px;letter-spacing:-.15px;font-weight:600;margin:8px 0}.application-card small{font-size:9px;color:#a0a596}.application-card p{font-size:12px;line-height:1.6;margin:8px 0;overflow-wrap:anywhere}.application-card a{color:#59634f;text-decoration:none}.application-card a:hover{text-decoration:underline}.status-chip{display:inline-block;font-size:9px;font-weight:500;border:1px solid #e5e9dc;border-radius:30px;padding:5px 9px;color:#7b8869}.status-pending{background:#f7f3ea}.status-approved{background:#eef3e7}.status-rejected{background:#f2f2ef;color:#9c9f96}.card-measures{color:#7c8771;font-size:11px!important}.card-actions{display:flex;gap:6px;flex-wrap:wrap;border-top:1px solid #ebede5;padding-top:13px;margin-top:15px}.card-actions .pill{min-height:32px;font-size:10px;padding:7px 11px}.card-actions .danger{color:#a7655b}.admin-add-sheet{width:min(480px,calc(100vw - 24px));max-height:92dvh}.admin-upload{display:flex;position:relative;height:235px;background:#f3f4ef;border:1px dashed #d5dccc;border-radius:16px;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;margin-bottom:16px}.admin-upload input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%;z-index:2}.admin-upload:focus-within{outline:2px solid #9ba78d;outline-offset:4px}.admin-upload img{height:100%;max-width:90%;object-fit:contain;padding:12px;pointer-events:none}.upload-prompt{display:flex;flex-direction:column;align-items:center;gap:10px;color:#748267;font-size:12px}.upload-prompt small{font-size:9px;letter-spacing:.15em;color:#b1b9a8}.upload-plus{font-size:28px;font-weight:300;color:#a7b29b}.admin-add-sheet>.sheet-head{padding-right:25px}.admin-add-sheet>.sheet-head h2{font-size:33px}.admin-add-sheet .full{justify-content:center}.admin-add-sheet .muted{font-size:11px}.admin-add-sheet .measurements-fields{padding-top:0}.admin-add-sheet .check-row{font-size:11px}.admin-modal-open{overflow:hidden}
@media(max-width:850px){.admin-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-heading{align-items:flex-start}.admin-main{padding:0 23px}.admin-main h1{font-size:33px}.admin-heading .primary{padding:10px 15px;font-size:11px}.admin-logout{right:23px;top:29px;font-size:10px}}
@media(max-width:530px){.admin-main{margin-top:30px;padding:0 20px}.admin-grid{grid-template-columns:1fr;gap:16px}.application-photo{height:310px}.admin-heading{flex-wrap:wrap;gap:12px}.admin-heading .primary{margin-top:0}.admin-tools input{width:100%;flex:1 1 100%}.admin-tools select{flex:1}.admin-add-sheet{width:100%;max-height:94dvh}.admin-main h1{font-size:32px}.admin-add-sheet h2{font-size:30px}}

/* Ordering only; the public gallery keeps its existing visual design. */
.admin-heading-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.order-dialog{width:min(900px,calc(100vw - 32px));padding:30px;max-height:92dvh;scrollbar-gutter:stable}
.order-dialog .sheet-head p{max-width:620px}.order-dialog .sheet-head{padding-right:28px}
.order-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;list-style:none}
.order-card{position:relative;border:1px solid #e0e2d9;border-radius:18px;background:#ffffff80;padding:12px;min-width:0;transition:border-color .15s,opacity .15s}
.order-rank{font-size:10px;font-variant-numeric:tabular-nums;color:#878c80;letter-spacing:.1em}
.order-photo{height:190px;display:flex;align-items:center;justify-content:center;padding:8px 0;cursor:grab}
.order-photo:active{cursor:grabbing}.order-photo img{height:100%;width:100%;object-fit:contain;background:transparent;pointer-events:none}
.order-actions{display:flex;justify-content:center;gap:6px;margin-top:8px}
.order-control{width:44px;min-height:44px;border:1px solid #e4e6dd;border-radius:12px;background:#fffb;font-size:21px;line-height:1;touch-action:manipulation}
.order-control:hover:not(:disabled){background:#e9ede2}.order-control:disabled{opacity:.28}.order-card.dragging{opacity:.35}.order-card.drop-target{border-color:#6d765c;background:#edf0e6}
.order-footer{position:sticky;bottom:-30px;background:rgba(250,250,248,.96);backdrop-filter:blur(18px);padding:14px 0 2px;margin-top:18px;border-top:1px solid #e5e5df;z-index:2}
.order-footer .muted{font-size:11px;margin:0 0 12px}.order-footer-actions{display:flex;justify-content:space-between;align-items:center;gap:10px;padding-bottom:8px}.order-footer .pill,.order-footer .primary{min-height:46px}
@media(max-width:600px){.order-dialog{width:100vw;max-width:100vw;max-height:94dvh;padding:26px 16px max(22px,env(safe-area-inset-bottom));scrollbar-gutter:auto}.order-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.order-photo{height:185px}.order-card{padding:10px}.order-footer{bottom:-23px;padding-bottom:12px}.order-footer-actions{gap:7px}.order-footer .primary{font-size:12px;padding:12px 16px}.order-footer .pill{font-size:11px;padding:10px 12px}.admin-heading-actions{gap:8px}.admin-heading-actions>.pill{font-size:11px}}
@media(max-width:359px){.order-control{width:38px}.order-actions{gap:4px}.order-photo{height:160px}}

.bulk-tools,.pagination{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:20px 0}.pagination{justify-content:center;margin-top:30px}.card-top{display:flex;align-items:center;gap:12px;margin-bottom:12px}.card-top input{width:19px;height:19px;accent-color:#48513e}.application-photo{width:100%;padding:0}.duplicate-note{color:#9a733b}.detail-dialog h2{padding-right:30px}.detail-photo{height:320px;max-width:100%;width:100%;object-fit:contain}.detail-dialog p{font-size:12px}.detail-dialog .danger{color:#a6534a}.status-archived{background:#eee9e1}.detail-dialog input[type=file]{max-width:100%;font-size:12px;margin:14px 0}.detail-dialog #saveReplacement{margin-bottom:15px}.bulk-tools .pill{font-size:11px}.sheet .close{font-size:23px}#overviewBody{font-size:13px;line-height:1.7}#archiveStatus{font-size:13px;line-height:1.8}

/* v5.0.2: stable public reference, independent of card order. */
.model-reference{font-size:10px;letter-spacing:.09em;color:#71776b;overflow-wrap:anywhere;margin:10px 0}.order-card .model-reference{padding:0 9px}
