/* Customer pages share the storefront's type, palette and spacing. */
.site-header .header-actions{display:flex;align-items:center;gap:16px;margin-left:8px;flex-shrink:0}
.site-header .header-account{display:inline-flex;align-items:center;justify-content:center;padding:12px 4px;font-size:13px;font-weight:600;color:var(--ink);white-space:nowrap;text-decoration:underline;text-underline-offset:5px}
html[data-seller-view="account"] #storefront,html[data-seller-view="order"] #storefront{display:none}
html:not([data-seller-view="storefront"]) .site-header nav,html:not([data-seller-view="storefront"]) #header-quick-order{display:none}
html:not([data-seller-view="storefront"]) .header-actions{margin-left:auto}
.customer-page{max-width:980px;min-height:calc(100dvh - 235px);padding-top:40px;padding-bottom:80px}
.customer-back{display:inline-block;font-size:13px;color:var(--muted);margin-bottom:24px;text-decoration:underline;text-underline-offset:4px}
.customer-heading{max-width:640px;margin-bottom:24px}.customer-heading .eyebrow{font-size:11px;letter-spacing:1.4px;margin-bottom:10px}
.customer-heading h1{font-size:clamp(32px,4vw,44px);letter-spacing:-1.3px;line-height:1.15;margin:0 0 12px}
.customer-heading>p:last-child{font-size:16px;line-height:1.8;color:var(--muted);margin:0}
.signin-card{max-width:550px;padding:32px;border:1px solid var(--line);border-top:3px solid var(--gold);border-radius:4px;background:var(--canvas)}
.signin-card p{font-size:14px;color:var(--muted);line-height:1.8;margin:0 0 22px}.signin-card .button{gap:12px;min-width:230px}
.account-identity{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-bottom:32px}
.account-identity p{font-size:14px;overflow-wrap:anywhere;margin:0}.account-identity span{display:block;color:var(--muted);font-size:11px;margin-bottom:5px}
.account-identity .text-link{flex-shrink:0;font-size:13px}
.account-identity-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px 16px}
.account-identity-actions>*{min-height:44px}
.account-identity .account-studio-link{background:#e5bd54;color:#282008;padding:9px 14px;border-radius:6px;font-size:.84rem}
.account-identity:has(.account-studio-link){padding:14px 16px;border:1px solid #e0dacf;border-radius:8px;background:#f8f7f3}
@media(max-width:540px){
  .account-identity:has(.account-studio-link){display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
  .account-identity-actions{justify-content:flex-start}
}
.customer-status{font-size:14px;line-height:1.8;padding:16px 20px;margin:16px 0;background:var(--canvas);border-left:3px solid var(--gold);overflow-wrap:anywhere}
.customer-status button{font:inherit;margin-left:10px}
.orders-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}.orders-heading h2{font-size:24px;margin:0}.orders-heading .text-link{font-size:13px}
.order-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;padding:25px 0;border-top:1px solid var(--line);align-items:center}
.order-card h3{font-size:19px;margin:0 0 8px}.order-card p{font-size:13px;color:var(--muted);margin:0;line-height:1.8}.order-card .button{font-size:13px;padding:12px 16px}
.empty-orders{padding:32px;background:var(--canvas);border:1px solid var(--line);border-radius:4px}.empty-orders h3{font-size:20px;margin:0 0 12px}.empty-orders p{font-size:14px;color:var(--muted);margin-bottom:24px}
#order-receipt{border:0;padding:0;margin:0;border-radius:0}
.receipt-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:36px;align-items:start}
.receipt-main{min-width:0}.receipt-main h2{font-size:22px;margin:0 0 20px}.receipt-main h3{font-size:16px;margin:28px 0 10px}.receipt-main p{font-size:14px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--muted)}
.receipt-main ul{padding-left:20px;font-size:13px;line-height:2;overflow-wrap:anywhere}.receipt-main a,.order-reference a{text-decoration:underline;text-underline-offset:3px}
.receipt-summary{padding:26px;background:var(--canvas);border:1px solid var(--line);border-top:3px solid var(--gold);border-radius:4px}
.receipt-summary .eyebrow{font-size:10px;margin:0 0 12px}.receipt-summary h2{font-size:21px;margin:0 0 12px}.receipt-total{font-size:30px;font-weight:700;letter-spacing:-1px;margin:0 0 15px}
.order-badge{display:inline-block;font-size:11px;font-weight:600;padding:6px 10px;background:#e8e4d8;border-radius:3px;margin-bottom:12px}.order-badge.is-paid{background:#dce9df;color:#245835}
.receipt-summary .order-details{font-size:12px;line-height:1.8}.receipt-summary .order-details div{display:block;margin-bottom:15px}.receipt-summary .order-details dt{color:var(--muted);font-weight:400}.receipt-summary .order-details dd{margin:2px 0 0;font-weight:500}
.receipt-actions{margin-top:12px;padding-top:14px;border-top:1px solid var(--line);display:grid;gap:15px}.receipt-actions .button{width:100%;font-size:13px;padding:13px 14px}.receipt-actions .text-link{font-size:12px;justify-content:center}
.receipt-actions p{font-size:11px;line-height:1.8;color:var(--muted);margin:0}.resume-files label{font-size:12px;margin:12px 0;overflow-wrap:anywhere}.resume-files input{font-size:12px}
.receipt-summary .order-details{margin-top:22px;padding-top:18px;border-top:1px solid var(--line)}
.brief-copy-options{font-size:13px;color:var(--muted);margin-top:25px}.brief-copy-options summary{cursor:pointer;text-decoration:underline;text-underline-offset:4px}
.order-reference{font-size:12px;margin-top:30px;padding-top:20px;border-top:1px solid var(--line);color:var(--muted)}.order-reference summary{cursor:pointer}.order-reference p{overflow-wrap:anywhere;font-size:12px;margin-top:12px}
.customer-page button:disabled,#submit-order:disabled{cursor:wait;opacity:.6}
@media(max-width:1050px){.site-header{flex-wrap:wrap}.site-header .header-actions{margin-left:auto}.site-header nav{order:5;width:100%;margin:0;justify-content:center;gap:12px}.site-header nav a{flex:0 1 auto;padding:8px 16px}}
@media(max-width:760px){.customer-page{padding-top:40px;padding-bottom:56px}.customer-back{margin-bottom:28px}.customer-heading{margin-bottom:26px}.receipt-layout{grid-template-columns:1fr;gap:30px}.receipt-layout:not(.is-delivered) .receipt-summary{order:-1}.site-header .header-actions{gap:13px}.site-header .header-account{font-size:12px}.site-header .header-cta{margin-left:0}.site-header nav{font-size:11px;gap:3px}.site-header nav a{padding:7px 12px}.signin-card{padding:25px}.account-identity{align-items:flex-start}.order-card{gap:14px}}
@media(max-width:420px){.site-header .parent-logo img{width:68px}.site-header .wordmark{font-size:14px}.site-header .brand-divider{display:none}.site-header{gap:8px}.site-header .header-actions{gap:12px}.site-header .header-cta{font-size:10px;padding:10px}.site-header .header-account{font-size:11px}.order-card{grid-template-columns:1fr}.order-card .button{justify-self:start}.signin-card .button{width:100%;min-width:0}.receipt-summary{padding:24px}.customer-heading h1{font-size:34px}}
@media(max-width:360px){.section-heading>div{min-width:0}.shop-section .section-heading h2{font-size:22px}}

.brief-fields{min-width:0;padding:0;border:0;margin:0}
.brief-fields legend{font-weight:600;margin-bottom:8px}
#saved-briefs{margin-block:10px 16px}
#saved-brief-list{padding-inline-start:20px}

/* Account menu and customer dashboard follow the shared Rupaworks layout. */
.site-header .header-dashboard{display:inline-flex;align-items:center;min-height:44px;font-size:13px;font-weight:600;text-decoration:none;white-space:nowrap}
.site-header .header-dashboard:hover{text-decoration:underline;text-underline-offset:5px}
.account-control{position:relative;color:var(--ink);flex-shrink:0}
.account-control summary{display:flex;align-items:center;gap:12px;min-height:44px;padding:10px 14px;border:1px solid var(--line);border-radius:3px;cursor:pointer;font-size:13px;list-style:none;background:#fff}
.account-control summary::-webkit-details-marker{display:none}
.account-control summary>span{color:var(--muted);font-weight:400}
.account-control summary>strong{max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.account-control summary::after{content:"";width:6px;height:6px;border:solid currentColor;border-width:0 1px 1px 0;transform:rotate(45deg);margin-left:4px;margin-top:-3px}
.account-control[open] summary::after{transform:rotate(225deg);margin-top:3px}
.account-control summary:focus-visible{outline:3px solid var(--gold);outline-offset:3px}
.account-control-menu{position:absolute;right:0;top:calc(100% + 10px);width:min(320px,calc(100vw - 32px));padding:22px 24px;background:#fff;border:1px solid var(--line);border-radius:3px;box-shadow:0 16px 40px #00000014;z-index:30;max-height:calc(100dvh - 130px);overflow:auto}
.account-control-menu .account-provider{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.7px;color:var(--muted);margin:0 0 14px}
.account-control-menu>strong{display:block;font-size:16px;overflow-wrap:anywhere}
.account-control-menu #account-menu-email{font-size:13px;color:var(--muted);margin:6px 0 18px;overflow-wrap:anywhere}
.account-control-menu>a{display:block;font-size:13px;min-height:44px;padding-block:12px}
.account-control-menu>button{display:block;width:100%;text-align:left;font:inherit;font-weight:600;font-size:14px;background:none;padding:15px 0 0;border:0;border-top:1px solid var(--line);min-height:44px;cursor:pointer}
.account-control-menu button:disabled{opacity:.6;cursor:wait}
#account-menu-status{font-size:13px;line-height:1.6;color:#8b2923;margin:12px 0 0;overflow-wrap:anywhere}
#account-page{max-width:1120px;padding-top:32px}
#account-page>.customer-back{margin-bottom:18px}
.dashboard-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;padding-bottom:24px;border-bottom:1px solid var(--gold);margin-bottom:24px}
.dashboard-heading .customer-heading{margin:0;max-width:720px}
.dashboard-heading .customer-heading h1{margin-bottom:10px}
.dashboard-heading .customer-heading .eyebrow{letter-spacing:.8px;font-size:12px;margin-bottom:8px}
.dashboard-heading .customer-heading>p:last-child{font-size:14px;line-height:1.7}
#account-page .dashboard-primary{min-height:44px;padding:12px 18px;background:var(--gold);border:1px solid var(--gold);font-size:13px;white-space:nowrap}
#account-page .dashboard-primary:hover{filter:brightness(.96)}
.dashboard-panel{padding:24px;border:1px solid var(--line);border-radius:4px;background:#fff}
#account-page #seller-orders h2{font-size:18px;line-height:1.4;letter-spacing:-.2px;margin:0}
.dashboard-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:16px 0 0}
.dashboard-metrics>div{border-top:1px solid var(--line);padding-top:12px;min-width:0}
.dashboard-metrics dt{font-size:13px;line-height:1.5;color:var(--muted);text-wrap:normal}
.dashboard-metrics dd{font-size:27px;font-weight:700;line-height:1.3;margin:5px 0 0}
.dashboard-orders{margin-top:20px}
.dashboard-orders .orders-heading{margin-bottom:12px;min-height:32px}
.dashboard-orders .orders-heading .text-link{font-size:13px;min-height:44px}
#account-page .order-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:20px;padding:22px 0;align-items:center}
#account-page .order-card:last-child{padding-bottom:0}
#account-page .order-card h3{font-size:17px;letter-spacing:-.2px;margin:0 0 5px;overflow-wrap:anywhere}
#account-page .order-card p{font-size:13px;line-height:1.65;margin:0}
#account-page .order-card .dashboard-order-meta{margin-top:7px;font-size:12px}
.dashboard-order-name,.dashboard-order-progress{min-width:0}
.dashboard-order-status{display:inline-block;padding:4px 8px;margin-bottom:7px;font-size:12px;font-weight:600;border-radius:3px}
.dashboard-order-status.is-action{background:#f5edd4;color:#715600}
.dashboard-order-status.is-progress{background:#eaf0f5;color:#294961}
.dashboard-order-status.is-ready{background:#e7f1e9;color:#285733}
.dashboard-order-status.is-closed{background:var(--canvas);color:var(--muted)}
.dashboard-order-progress>span:last-child:not(.dashboard-order-status){display:block;font-size:12px;color:var(--muted);margin-top:6px}
#account-page .order-card .button{font-size:12px;min-height:44px;padding:11px 14px;gap:10px}
#account-page .empty-orders{border:0;border-top:1px solid var(--line);border-radius:0;background:#fff;padding:24px 0 0}
#account-page .empty-orders h3{font-size:20px;line-height:1.4;margin-bottom:8px}
#account-page .empty-orders p{line-height:1.7;margin-bottom:18px;max-width:560px}
#account-page .empty-orders .button{font-size:13px;min-height:44px}
.dashboard-load-more{margin-top:20px;font-size:13px}
@media(max-width:760px){
 .dashboard-heading{align-items:flex-start;gap:16px}
 #account-page .order-card{grid-template-columns:minmax(0,1fr) auto;gap:12px 20px}
 .dashboard-order-name{grid-column:1}
 .dashboard-order-progress{grid-column:1}
 #account-page .order-card>.button{grid-column:2;grid-row:1/3;max-width:180px}
}
@media(max-width:600px){
 .site-header .header-actions:has(.account-control:not([hidden])){flex-wrap:wrap;gap:10px}
 .site-header .header-actions:has(.account-control:not([hidden])) .language-control{order:1}
 .site-header .header-actions .account-control{order:2;margin-left:auto}
 .site-header .header-actions:has(.account-control:not([hidden])) .header-cta{order:3;flex:1 1 45%;margin-left:0}
 .site-header .header-actions .header-dashboard{order:4;flex:1 1 45%;justify-content:center;font-size:12px}
 .account-control summary{font-size:12px;gap:9px;padding:10px 12px}
 .account-control summary>strong{max-width:120px}
 .dashboard-heading{flex-wrap:wrap}
 .dashboard-heading .customer-heading{max-width:100%}
 .dashboard-heading .customer-heading h1{font-size:32px}
 .dashboard-panel{padding:20px}
 .dashboard-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 20px}
 #account-page .order-card{grid-template-columns:minmax(0,1fr)}
 #account-page .order-card>.button{grid-column:1;grid-row:auto;justify-self:start;max-width:100%}
}

.customer-material-request{padding:24px;margin-bottom:28px;border:1px solid var(--gold);border-top:3px solid var(--gold);border-radius:4px;background:var(--canvas);min-width:0}
.customer-material-request .request-message{white-space:pre-wrap;overflow-wrap:anywhere;color:var(--ink);font-size:15px}
.customer-material-request .request-pause{font-size:13px;line-height:1.7}
#material-response-form{display:grid;gap:10px;margin-top:20px}
#material-response-form>label:not(.file-trigger){display:block;font-size:14px;font-weight:600;margin-top:8px}
#material-response-form :is(textarea,input[type=url]){width:100%;min-width:0;padding:12px;font:inherit;font-size:14px;border:1px solid var(--line);background:#fff;border-radius:3px}
#material-response-form textarea{resize:vertical}
#material-response-form>.button{justify-self:start;min-height:44px;font-size:13px}
#material-response-status{font-size:13px;line-height:1.7;overflow-wrap:anywhere;margin:0}
.request-files{display:grid;gap:10px;list-style:none;padding:0!important;margin:12px 0}
.request-files li{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;min-width:0;font-size:13px;overflow-wrap:anywhere}
.request-files a{overflow-wrap:anywhere;min-width:0}
.request-files button{min-height:44px;font-size:12px;flex-shrink:0}
.material-request-history{margin:24px 0;font-size:13px}
.material-request-history>summary{cursor:pointer;text-decoration:underline;text-underline-offset:4px;min-height:44px}
.material-request-history article{padding:16px 0;border-top:1px solid var(--line)}
@media(max-width:480px){.customer-material-request{padding:18px}.customer-material-request h2{font-size:20px}.request-files li{align-items:flex-start}}

.order-badge.is-paused{background:#f5edd4;color:#715600}
@media(max-width:760px){
 .receipt-layout.has-material-request .receipt-main{order:0}
 .receipt-layout.has-material-request .receipt-summary{order:1}
}
