.portalbody{background:#0b0f17;color:#eef1f6}.portalbody header{position:relative;padding:18px 4%;gap:22px}.portalbody header .logo{font-size:40px}.portalheaderlinks{display:flex;align-items:center;gap:20px;font-size:12px;color:#b6c2d4}.portalheaderlinks a:hover{color:#d4af4a}.portal-shell{max-width:1320px;margin:auto;padding:40px 4% 70px}.portal-title{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:24px}.portal-title h1{font-size:clamp(32px,4vw,48px);letter-spacing:-1.7px;margin:0 0 8px}.portal-title p{font-size:13px;color:#9fabbd;margin:0;line-height:1.7}.portal-title .eyebrow{color:#d4af4a;font-size:9px;letter-spacing:2px;margin-bottom:12px}.portal-nav{display:flex;flex-wrap:wrap;gap:8px;margin:22px 0}.portal-nav button{background:#182030;border:1px solid #364358;color:#bfcbdc;border-radius:7px;padding:10px 16px;font-size:12px}.portal-nav button[aria-pressed=true]{color:#d4af4a;background:#39331e;border-color:#978130}.demo-banner{background:#302b1a;border:1px solid #89702b;color:#d4af4a;border-radius:9px;padding:15px 18px;font-size:12px;line-height:1.7;margin-bottom:22px;display:flex;align-items:center;justify-content:space-between;gap:15px}.portal-message{font-size:13px;line-height:1.7;color:#d4af4a;margin:15px 0}.portal-gate,.portal-empty{padding:45px 30px;border:1px solid #334158;background:#141c29;border-radius:14px;text-align:center}.portal-gate h2{font-size:25px;letter-spacing:-.6px}.portal-gate p,.portal-empty p{font-size:13px;color:#abb8cc;line-height:1.8;max-width:520px;margin:12px auto 24px}.portal-gate .button{margin:5px}.portal-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:25px}.stat-tile{border:1px solid #303e53;background:linear-gradient(135deg,#1b2637,#111925);border-radius:12px;padding:20px}.stat-tile span{font-size:11px;color:#a5b5ca;display:block;margin-bottom:12px}.stat-tile strong{font:600 30px 'Space Grotesk',sans-serif;color:#fff}.stat-tile:first-child strong{color:#d4af4a}.order-toolbar{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin:20px 0}.order-toolbar label{font-size:11px;color:#aebbd0;flex:1 1 140px;margin:0}.order-toolbar label:first-child{flex:2 1 240px}.portalbody input,.portalbody select,.portalbody textarea{background:#101827;border:1px solid #43506a;color:#fff;color-scheme:dark;padding:11px;border-radius:7px;font:inherit;min-width:0}.order-toolbar input,.order-toolbar select{display:block;width:100%;margin-top:7px;font-size:12px}.portal-list{display:grid;gap:11px}.order-row{display:grid;grid-template-columns:1.2fr 1.3fr 1fr .8fr auto;gap:18px;align-items:center;padding:19px 20px;border:1px solid #303f55;background:#151e2c;border-radius:10px}.order-row strong{font-size:13px}.order-row p{font-size:11px;line-height:1.7;color:#acbad0;margin:5px 0 0}.order-row .order-value{color:#d4af4a;font-weight:700;font-size:16px}.order-status{display:inline-block;border-radius:20px;padding:6px 10px;font-size:10px;background:#273449;color:#c0d4ed;line-height:1.5}.order-status.in_production{background:#443a15;color:#d4af4a}.order-status.ready,.order-status.completed{background:#163c32;color:#9de0bf}.order-status.shipped{background:#29365b;color:#b9ccff}.order-status.awaiting_payment,.order-status.draft{background:#3b2730;color:#ffc1cb}.portalbody .subbutton{border-radius:7px;min-height:36px}.portal-list-caption{color:#8f9eb6;font-size:11px;line-height:1.7}.load-more{margin-top:20px}.order-dialog{width:min(820px,95vw);background:#131d2b;color:#fff;border:1px solid #526179;border-radius:16px;padding:28px}.order-dialog .close{color:#fff}.order-dialog h2{font-size:30px;letter-spacing:-1px;margin-bottom:10px}.order-dialog h3{font-size:15px;margin:23px 0 12px}.order-meta{font-size:12px;color:#aebed5;line-height:1.8}.order-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:20px 0}.order-detail-card{border:1px solid #384860;border-radius:8px;padding:16px;min-width:0}.order-detail-card h3{margin:0 0 12px}.order-detail-card p{font-size:12px;color:#bac8dc;line-height:1.8;overflow-wrap:anywhere}.order-line{border-top:1px solid #35445b;padding:16px 0;display:flex;gap:18px;align-items:center;justify-content:space-between}.order-line strong{font-size:13px;overflow-wrap:anywhere}.order-line p{font-size:11px;color:#b4c2d7;margin:6px 0;line-height:1.7}.file-buttons{display:flex;flex-shrink:0;gap:7px}.production-form{padding:18px;border:1px solid #706334;background:#211e1c;border-radius:10px;display:grid;grid-template-columns:1fr 1fr;gap:12px}.production-form label,.addressedit label{font-size:12px;color:#c4cee0;margin:0}.production-form input,.production-form select,.production-form textarea,.addressedit input,.addressedit select{display:block;width:100%;margin-top:7px;font-size:13px}.production-form label:has(textarea){grid-column:1/-1}.production-form button{justify-self:start}.production-form textarea{min-height:80px;resize:vertical}.order-timeline{display:flex;flex-wrap:wrap;gap:9px;margin:20px 0}.order-timeline span{font-size:11px;border:1px solid #46526a;border-radius:6px;padding:8px 10px;color:#9eacc3}.order-timeline span.active{color:#d4af4a;border-color:#887130;background:#36311d}.file-dialog{width:min(650px,94vw);background:#151e2c;border:1px solid #465673;border-radius:14px;color:white;padding:25px}.file-dialog img{width:100%;max-height:65vh;object-fit:contain;background:repeating-conic-gradient(#ddd 0 25%,#fff 0 50%) 50% / 16px 16px}.file-dialog p{font-size:12px;line-height:1.7}.addressedit{display:grid;grid-template-columns:1fr 1fr;gap:15px}.addressedit label.wide{grid-column:1/-1}.addressedit .checklabel{display:flex;gap:8px;align-items:center}.addressedit input[type=checkbox]{width:auto;margin:0}.addressedit button{justify-self:start}.portal-addresses{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.portal-address-card{border:1px solid #3b4961;background:#141e2d;border-radius:10px;padding:22px}.portal-address-card p{color:#b6c5da;font-size:13px;line-height:1.8;overflow-wrap:anywhere}.portal-address-card .subbutton{margin-right:8px}.portal-address-top{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:20px}.portal-address-top h2{font-size:25px;letter-spacing:-.5px;margin:0}.portal-identity{font-size:12px;color:#b4c2d5;margin:10px 0 25px}
@media(max-width:850px){.order-row{grid-template-columns:1fr 1fr 1fr;gap:14px}.order-row>div:nth-child(2){grid-column:2/4}.order-row>button{justify-self:end}.portal-stats{grid-template-columns:1fr 1fr}.portalheaderlinks{gap:12px;font-size:11px}}
@media(max-width:560px){.portalbody header{flex-wrap:wrap;padding:16px 5%}.portalbody .logo{font-size:32px}.portalbody .logo span{font-size:11px}.portalheaderlinks{width:100%;justify-content:space-between}.portal-shell{padding:28px 5% 50px}.portal-title{align-items:start;flex-direction:column}.portal-title h1{font-size:34px}.stat-tile{padding:15px}.stat-tile strong{font-size:25px}.order-row{grid-template-columns:1fr 1fr;padding:16px}.order-row>div:nth-child(2){grid-column:auto}.order-row>button{grid-column:1/-1;width:100%}.order-toolbar label{flex-basis:100%}.order-detail-grid,.production-form,.portal-addresses,.addressedit{grid-template-columns:1fr}.order-dialog{padding:24px 18px}.order-dialog h2{font-size:25px}.order-line{display:block}.file-buttons{margin-top:12px}.demo-banner{display:block}.demo-banner button{margin-top:10px}.portalbody input,.portalbody select,.portalbody textarea{font-size:16px}.portal-address-top{align-items:start;flex-direction:column}}
.portal-title>div{min-width:0;max-width:100%}.portal-title p{overflow-wrap:break-word}.order-row>div{min-width:0;overflow-wrap:anywhere}
.order-item-thumb{width:96px;min-width:96px;min-height:95px;border:1px solid #45536b;border-radius:8px;padding:7px;background:#0e1521;display:flex;flex-direction:column;justify-content:center;align-items:center;font-size:10px;text-align:center;color:#adbbd0}.order-item-thumb img{width:100%;height:100px;object-fit:contain;background:repeating-conic-gradient(#ddd 0 25%,#fff 0 50%) 50% / 12px 12px;border-radius:4px}.order-item-thumb small{font-size:8px;margin-top:5px;color:#d4af4a}.order-item-copy{flex:1;min-width:0}.order-source-files{font-size:11px;color:#b2c1d8;margin-top:9px;border:0;padding:0}.order-source-files summary{font-size:11px;cursor:pointer;padding:3px 0}.order-source-files ul{padding-left:18px;line-height:1.8;overflow-wrap:anywhere}.order-notification-status{margin:18px 0;padding:15px 18px;border:1px solid #635b3e;border-radius:9px;background:#29261b}.order-notification-status h3{margin:0 0 8px}.order-notification-status p{margin:7px 0}.production-email-hint{grid-column:1/-1;font-size:11px;line-height:1.7;color:#c5a345;margin:0}.production-form .portal-message{grid-column:1/-1}@media(max-width:560px){.order-line{display:grid;grid-template-columns:80px minmax(0,1fr);gap:12px}.order-item-thumb{width:80px;min-width:80px}.order-item-thumb img{height:85px}.order-line .file-buttons{grid-column:1/-1;margin-top:0}}

.file-buttons{flex-wrap:wrap;max-width:310px}.order-item-copy p{overflow-wrap:anywhere}

#catalogAdmin{margin:0 0 1.5rem;padding:1rem;border:1px solid #52576a;border-radius:1rem}
#catalogAdmin summary{cursor:pointer;font-weight:bold;color:#ffc423}
#catalogAdmin fieldset{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr));gap:.75rem;margin:1rem 0;border:1px solid #52576a;border-radius:.65rem;padding:.75rem}
#catalogAdmin label{display:grid;gap:.25rem;font-size:.9rem}
#catalogAdmin input:not([type=checkbox]){width:100%;color:inherit;background:#111520;border:1px solid #52576a;border-radius:.4rem;padding:.4rem}
#catalogAdmin .catalog-editor-row{grid-column:1/-1;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,8rem),1fr));align-items:end;gap:.75rem;padding:.65rem 0;border-bottom:1px solid #52576a}

/* Operations workspace — admin only */
[data-portal="admin"] .admin-workspace{display:grid;grid-template-columns:190px minmax(0,1fr);gap:24px;align-items:start}
[data-portal="admin"] .orders-sidebar{display:grid;gap:7px;margin:0;padding:14px;border:1px solid #384457;border-radius:12px;background:#141d2b}
.orders-sidebar strong{padding:8px 10px;color:#e9bd47}
.orders-sidebar button{text-align:left}
.admin-order-card,.admin-detail-main .order-detail-card,.admin-detail-sidebar>section{padding:18px;border:1px solid #384457;border-radius:12px;background:#172232}
.admin-order-top,.admin-order-actions,.admin-order-status,.admin-order-contact{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.admin-order-top{justify-content:space-between}
.admin-order-top>div:first-child{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.admin-order-link{border:0;background:transparent;color:#f3f5fa;font:inherit;font-weight:700;font-size:1.12rem;padding:0;text-decoration:underline;text-underline-offset:4px;cursor:pointer}
.admin-order-status,.admin-order-contact,.admin-order-items{margin-top:12px}
.admin-order-contact,.admin-order-items span{color:#bcc8d8;overflow-wrap:anywhere}
.admin-order-items{list-style:none;margin-bottom:0;padding:10px 0 0;border-top:1px solid #384457}
.admin-order-items li{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:5px 0;overflow-wrap:anywhere}
.order-status.paid{color:#a9f3c2;background:#1d4933}
[data-portal="admin"] #orderDialog{width:min(1180px,96vw);max-width:96vw}
.admin-detail-layout{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(0,1fr);gap:20px;align-items:start}
.admin-detail-sidebar{display:grid;gap:12px;margin-top:32px;overflow-wrap:anywhere}
.admin-detail-sidebar h3,.admin-detail-main .order-detail-card h3{margin-top:0;color:#e9bd47}
@media(max-width:760px){[data-portal="admin"] .admin-workspace,.admin-detail-layout{grid-template-columns:minmax(0,1fr);gap:12px}[data-portal="admin"] .orders-sidebar{display:flex;flex-wrap:wrap}.admin-detail-sidebar{margin-top:0}}
.admin-order-contact{display:grid;gap:5px}
.admin-contact-line{display:flex;align-items:baseline;gap:8px 18px;flex-wrap:wrap}
.admin-contact-email{color:#a9c0ff}
.admin-payment-method{color:#f0cd71}

[data-portal="admin"] .portal-title{margin-bottom:16px}
[data-portal="admin"] .portal-title h1{font-size:13px;letter-spacing:normal;line-height:1.7;margin:0}
[data-portal="admin"] .portal-stats{gap:10px;margin-bottom:16px}
[data-portal="admin"] .stat-tile{padding:9px 13px}
[data-portal="admin"] .stat-tile span{margin-bottom:4px}
[data-portal="admin"] .stat-tile strong{font-size:23px;line-height:1.15}
.admin-demo-footer{margin-top:24px}
.admin-demo-footer .portal-identity{margin:0 0 8px}
.admin-demo-footer .portal-identity:empty{display:none}
.quick-production{background:#1c2a40;color:#a9c0ff;border:1px solid #485a71;border-radius:7px;padding:4px 9px;font:inherit;font-size:13px;color-scheme:dark}
.quick-production.ready{color:#a9f3c2}
.admin-order-items li{justify-content:flex-start;align-items:center}
.admin-order-items li>div{display:grid;gap:3px;min-width:0}
.admin-order-thumbnail{display:block;width:48px;height:48px;flex:0 0 48px;aspect-ratio:1;overflow:hidden;border-radius:6px;background:#233044}
.admin-order-thumbnail img{width:100%;height:100%;object-fit:contain;display:block}
.admin-order-thumbnail img:not([src]){visibility:hidden}
.admin-order-top{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center}
.admin-order-top .quick-production{width:auto;max-width:100%;justify-self:center}
.admin-order-top .admin-order-actions{justify-content:flex-end}
@media(max-width:960px){.admin-order-top{grid-template-columns:minmax(0,1fr)}.admin-order-top .quick-production{justify-self:start;width:100%}.admin-order-top .admin-order-actions{justify-content:flex-start}}
[data-portal="admin"] .admin-dashboard-link{margin-left:auto;margin-right:18px;color:#e9bd47;font-size:14px}
#dashboard,#catalogAdmin{scroll-margin-top:100px}
.admin-catalog-link{display:none}
#portalContent:has(#catalogAdmin:not([hidden])) .admin-catalog-link{display:block;text-align:left}

.rewards-preview{margin:0 0 1.5rem;padding:clamp(1rem,3vw,2rem);border:1px solid #d5a526;border-radius:1rem;background:linear-gradient(115deg,#151d2b,#272116)}
.rewards-preview h2{margin:.4rem 0}.rewards-preview progress{width:min(100%,36rem);height:.9rem;accent-color:#e3b231}

.admin-order-group{display:grid;gap:.75rem;margin:0 0 1.25rem}
.admin-order-group h2{font-size:1.15rem;margin:0}
.admin-order-new{border-inline-start:4px solid #e3b231}
.admin-new-badge{background:#e3b231;color:#181206;font-size:.72rem;font-weight:800;padding:.3rem .55rem;border-radius:.35rem}
#catalogAdmin .mural-editor,#catalogAdmin .mural-editor-list{grid-column:1/-1}#catalogAdmin .mural-editor img{object-fit:cover;border-radius:5px}#catalogAdmin .mural-editor input[type=file]{width:100%;min-width:0}

.account-profile{max-width:50rem}.account-profile-contact{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr));gap:1rem}.account-profile label{display:grid;gap:.4rem}.account-profile form{margin-top:1rem}.account-profile-email{padding-top:1rem;border-top:1px solid #394255}.account-profile-email button{margin-top:.75rem}.account-profile [role=status]:empty{display:none}
