/* Interface typography. Garment lettering is managed separately in typography.js. */
@font-face{font-family:OpiumInterface;src:url('assets/fonts/inter-variable.woff2') format('woff2');font-style:normal;font-weight:400 700;font-display:swap}
:root{--font-ui:OpiumInterface,Inter,Arial,sans-serif;--type-label:11px;--type-body:14px}
body{font-family:var(--font-ui);font-size:var(--type-body);font-weight:400;line-height:1.5;font-optical-sizing:auto;-webkit-font-smoothing:antialiased}
button,input,select,textarea{font-family:inherit}
button,a{ -webkit-tap-highlight-color:transparent }
h1,h2,h3{font-family:var(--font-ui);font-weight:500;letter-spacing:-.035em;line-height:1.15;text-wrap:balance}
.site-header nav{font-size:13px;letter-spacing:0;font-weight:500;gap:30px}
#open-bag{font-size:13px;letter-spacing:0}
.eyebrow,.store-kicker{font-size:10px;font-weight:600;letter-spacing:.14em;line-height:1.5;text-transform:uppercase}
.button,.store-copy .button{font-size:12px;font-weight:600;letter-spacing:.015em;text-transform:none;min-height:46px}
.store-copy .button{padding:13px 18px;min-width:176px}
.store-copy h1{font-weight:400;letter-spacing:.13em;line-height:1.35}
.store-description{font-size:9px;letter-spacing:.12em;line-height:1.85}
.store-category>span:last-child{font-size:11px;font-weight:500;letter-spacing:.02em;text-transform:none}
.collection-title{font-size:clamp(32px,3.1vw,46px);letter-spacing:-.04em;line-height:1.15;font-weight:500}
.cut-section-head h2{font-size:25px;letter-spacing:-.025em;font-weight:500}
.cut-section-head p,.cut-card p{font-size:12px;line-height:1.6;letter-spacing:0}
.cut-card h3{font-size:16px;font-weight:500;letter-spacing:-.015em}
.cut-card>span{font-size:12px;font-weight:500;letter-spacing:0}
body[data-page=studio] .section-head h2{font-size:32px;font-weight:500;letter-spacing:-.035em}
.section-head>p{font-size:13px;line-height:1.65}
#editor h3,#editor h4{font-weight:500;letter-spacing:-.01em}
#editor h4{font-size:12px}
#editor summary,#editor details summary,#editor>.model-import summary{font-size:12px;letter-spacing:.01em;font-weight:500}
#editor label,.colour-inputs label,.range-label,.two-fields label{font-size:11px;letter-spacing:.015em;line-height:1.5;font-weight:500}
#editor .eyebrow{font-size:10px;letter-spacing:.12em}
#editor .step-tabs button,.editor-tabs button{font-size:12px;letter-spacing:0;font-weight:500}
#editor .small-copy,#editor .upload-status,#editor .zone-note,#editor .identity-note{font-size:11px;line-height:1.65;letter-spacing:0;font-weight:400}
#editor .upload strong{font-size:14px;font-weight:500}
#editor .upload>span:last-of-type{font-size:11px;letter-spacing:0;line-height:1.5}
#editor .zone-control button,.editor-links button,.editor-links label{font-size:10px;letter-spacing:.01em}
#editor .editor-heading button{font-size:11px;letter-spacing:0}
#open-presets>span{font-size:10px;letter-spacing:.1em;text-transform:uppercase}
#open-presets strong{font-size:13px;font-weight:500;letter-spacing:0}
.history-actions button{font-size:12px}
.view-controls button{font-size:11px;letter-spacing:0;font-weight:500}
.viewer-bottom,.viewer-bottom button,.viewer-top,.gesture-hint{font-size:10px;letter-spacing:.035em}
.template-copy h2{font-size:clamp(34px,3.5vw,54px);letter-spacing:-.04em;font-weight:500;max-width:520px}
.template-copy>p:not(.eyebrow){font-size:14px;line-height:1.7}
.template-copy .small-copy{font-size:11px!important;line-height:1.65!important}
.template-actions>a:not(.button),.template-actions button{font-size:11px;letter-spacing:.015em}
#team-workspace h1{font-size:clamp(32px,3vw,46px);font-weight:500;letter-spacing:-.045em;line-height:1.15}
#team-workspace h2{font-size:26px;font-weight:500;letter-spacing:-.035em;line-height:1.25}
#team-workspace h3{font-size:18px;font-weight:500;letter-spacing:-.015em}
#team-workspace p{font-size:14px;line-height:1.7}
#team-workspace .eyebrow{font-size:10px;letter-spacing:.14em;text-transform:uppercase}
#team-workspace .workspace-head{padding-bottom:24px;margin-bottom:28px}
#team-workspace .workspace-head .workspace-intro{max-width:560px}
#team-workspace .workspace-auth form h2{font-size:28px;letter-spacing:-.035em;margin-bottom:16px}
#team-workspace .workspace-auth .auth-description{margin:0 0 28px;max-width:360px;line-height:1.65}
#team-workspace .workspace-auth .workspace-actions{margin-top:20px}
#team-workspace .workspace-features{margin-top:24px}
#team-workspace .workspace-features strong{font-size:14px;font-weight:600;letter-spacing:-.01em}
#team-workspace .workspace-features span{font-size:13px;line-height:1.65}
#team-workspace button,#team-workspace .file-button{font-size:12px;letter-spacing:0;font-weight:500}
#team-workspace .button{font-size:12px;letter-spacing:.01em;font-weight:600}
#team-workspace .workspace-auth form>.button{justify-content:center}
#team-workspace .workspace-save-note summary{font-size:12px;letter-spacing:0;font-weight:400;padding:14px 0}
#team-workspace .status-pill{font-size:11px;letter-spacing:.02em;text-transform:none}
dialog h2{font-size:28px;letter-spacing:-.035em;font-weight:500}
dialog .small-copy{font-size:12px;line-height:1.65}
@media(max-width:760px){
 .app-nav a{font-size:10px;letter-spacing:0;text-transform:none;font-weight:500;line-height:1.3}
 .store-kicker{font-size:9px;letter-spacing:.13em}
 .store-copy h1{letter-spacing:.1em}
 .store-copy .button{font-size:11px;min-height:44px}
 .store-category>span:last-child{font-size:9px;letter-spacing:0}
 .collection-title{font-size:32px}
 .cut-card h3{font-size:14px;line-height:1.4}
 .cut-card p{font-size:11px;line-height:1.55}
 .cut-section-head p{font-size:12px}
 .cut-card>span{font-size:11px}
 #team-workspace h1{font-size:32px;max-width:none}
 #team-workspace h2,#team-workspace .workspace-benefits h2{font-size:24px}
 #team-workspace .workspace-auth form h2{font-size:26px}
 #team-workspace .workspace-auth form{padding:24px 22px}
 #team-workspace .workspace-intro{font-size:13px}
 #team-workspace .workspace-auth .workspace-actions button{font-size:12px}
 .template-copy>p:not(.eyebrow){font-size:13px}
 #editor input:not([type=range]):not([type=color]):not([type=checkbox]),#editor select,#editor textarea{font-size:16px}
}
#editor .editor-steps button{font-size:12px;letter-spacing:0;font-weight:500;line-height:1.4}
@media(max-width:760px){#editor .editor-steps button{font-size:11px}}

/* Keep the close-up reset reachable beside the zoom buttons. */
.zoom #zoom-fit{font-size:10px;letter-spacing:0;min-height:28px}

.viewer-help-touch{display:none}@media(max-width:760px),(pointer:coarse){.viewer-help-desktop{display:none}.viewer-help-touch{display:inline}}

#fabric-editor{margin:0 0 24px;padding:0 0 24px;border-bottom:1px solid var(--line)}
.fabric-options{margin:0;padding:0;border:0;min-width:0;display:grid;gap:8px}
.fabric-options legend{font-size:12px;font-weight:500;margin-bottom:14px;padding:0}
#editor .fabric-option{display:flex;align-items:flex-start;gap:12px;border:1px solid var(--line);padding:14px;cursor:pointer;font-size:13px;letter-spacing:0;line-height:1.5}
.fabric-option:has(input:checked){border-color:var(--ink);background:var(--surface,#eae8e1)}
.fabric-option input{flex-shrink:0;width:16px;height:16px;margin:3px 0 0;accent-color:var(--red)}
.fabric-option>span{display:grid;gap:3px;min-width:0}.fabric-option strong{font-weight:600}.fabric-option small{font-size:11px;font-weight:400;color:var(--muted,#686c69)}
#fabric-editor>.small-copy{margin-top:12px}.fabric-price-grid{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}
/* Collection discovery and a guide shared with the studio. */
.collection-tools{margin:24px 0 28px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:18px 0 12px}
.collection-filters{display:flex;flex-wrap:wrap;align-items:center;gap:18px}
.fit-filter{display:flex;border:1px solid var(--line);padding:4px;gap:4px}
.fit-filter button{min-height:38px;padding:8px 16px;font-size:12px;border:1px solid transparent}
.fit-filter button[aria-pressed=true]{background:var(--ink);color:var(--paper)}
.cut-filter{display:flex;align-items:center;gap:12px;font-size:12px}
.cut-filter select{padding:10px 30px 10px 12px;border:1px solid var(--line);background:var(--paper);font-size:13px;min-height:44px;max-width:100%}
.guide-link{font-size:12px;text-decoration:underline;text-underline-offset:4px;min-height:44px;padding:8px 0;text-align:left}
.collection-filters>.guide-link{margin-left:auto}
#collection-results{font-size:11px;color:var(--muted,#686c69);margin:12px 0 0}
.cut-collection[hidden],.cut-card[hidden]{display:none!important}
#fit-guide{width:min(700px,calc(100% - 32px));max-height:85dvh;padding:0;background:var(--paper);color:var(--ink);border:1px solid var(--line)}
#fit-guide>header{position:sticky;top:0;background:var(--paper);z-index:1;padding:24px 28px;border-bottom:1px solid var(--line);margin:0;align-items:flex-start}
#fit-guide .eyebrow{margin:0 0 8px}#fit-guide h2{font-size:28px;max-width:480px}
.fit-guide-body{padding:8px 28px 24px}.fit-guide-body h3{font-size:18px;margin:24px 0 12px}.fit-guide-body p,.fit-guide-body li{font-size:13px;line-height:1.7}.fit-guide-body ol{padding-left:20px}.fit-guide-body li{padding:3px 0}
.fit-guide-cuts{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:22px 0}.fit-guide-cuts>div{border-top:1px solid var(--line);padding-top:12px}.fit-guide-cuts dt{font-size:13px;font-weight:600}.fit-guide-cuts dd{font-size:12px;color:var(--muted,#686c69);margin:6px 0 0;line-height:1.6}
.guide-note{border-left:2px solid var(--red);padding:8px 14px;margin:18px 0}.guide-fabrics{display:grid;gap:8px;margin:14px 0}.guide-fabrics>div{display:flex;flex-wrap:wrap;gap:8px 20px;padding:14px;border:1px solid var(--line);font-size:13px}.guide-fabrics strong{min-width:62px;font-weight:600}
#fit-guide .small-copy{margin-top:0;color:var(--muted,#686c69)}.finish-guide{display:block;margin-top:16px}
.draft-status{margin-left:auto;color:var(--muted,#686c69);font-size:11px;white-space:nowrap;line-height:1.4}.draft-status[data-status=error]{color:var(--red)}
.bag-empty{padding:20px 0}.bag-empty h3{font-size:23px;letter-spacing:-.03em}.bag-empty p{font-size:14px;line-height:1.7;color:var(--muted,#686c69);margin-top:16px}.bag-empty .button{margin-top:24px}
@media(max-width:760px){
 .collection-filters{gap:12px;align-items:stretch}.fit-filter{width:100%}.fit-filter button{flex:1;padding-inline:10px}
 .cut-filter{flex:1;min-width:0;flex-direction:column;align-items:stretch;gap:6px}.cut-filter select{font-size:16px;width:100%}.collection-filters>.guide-link{margin-left:0;align-self:end;max-width:120px}
 #fit-guide>header{padding:20px}#fit-guide h2{font-size:24px}.fit-guide-body{padding:0 20px 24px}.fit-guide-cuts{grid-template-columns:1fr}
 .studio-actions{flex-wrap:wrap;padding-block:8px;row-gap:6px}.studio-actions .draft-status{order:3;flex:1 0 100%;margin:0;font-size:10px}.studio-actions .history-actions{margin-left:auto}
}

/* Quotes and orders · 041 */
.sales-workspace{max-width:1200px;margin:auto}.sales-workspace>h3{margin:32px 0 16px}.sales-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.sales-card{margin:0!important}.sales-detail{max-width:740px;margin-top:20px!important}.sales-totals{margin:24px 0}.sales-totals>div{display:flex;justify-content:space-between;gap:20px;padding:10px 0;border-bottom:1px solid var(--line)}.sales-totals dd{margin:0;white-space:nowrap}.sales-total{font-size:20px;font-weight:600}.sales-notes,.sales-timeline p{white-space:pre-wrap;overflow-wrap:anywhere}.sales-players{margin:24px 0}.sales-order-layout{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:24px;margin-top:20px}.sales-order-layout .sales-detail{margin-top:0!important}.sales-order-layout>div{min-width:0}.sales-state{display:flex;gap:24px;margin:24px 0;flex-wrap:wrap}.sales-state small,.sales-state strong{display:block}.sales-state small{margin-bottom:6px}.sales-timeline{list-style:none;padding:0 0 0 16px;border-left:1px solid var(--line)}.sales-timeline li{padding:0 0 24px 10px}.sales-timeline time{display:block;font-size:12px;color:var(--muted);margin-top:6px}.sales-timeline p{margin-top:8px}.sales-form{margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}.sales-workspace [data-quote-total]{font-size:20px;font-weight:600}.sales-workspace .workspace-check{display:flex;align-items:flex-start;gap:10px;line-height:1.6}.sales-workspace .workspace-check input{width:18px!important;height:18px;min-width:18px;margin-top:3px}.sales-workspace .sales-players table{min-width:560px}.sales-workspace button{white-space:normal}.sales-workspace .proof-thumb{max-height:280px;object-fit:contain}
@media(max-width:760px){.sales-grid,.sales-order-layout{grid-template-columns:1fr}.sales-workspace .workspace-toolbar{align-items:flex-start}.sales-workspace .workspace-two{grid-template-columns:1fr}.sales-workspace .workspace-card{padding:20px}.sales-workspace input,.sales-workspace select,.sales-workspace textarea{font-size:16px}.sales-workspace h2{font-size:26px}.sales-totals>div{gap:12px}.sales-state{gap:16px}}
/* Account / checkout · 042 */
.account-workspace .workspace-two{align-items:start}.account-workspace .address-fields{grid-template-columns:1fr}.account-workspace input,.address-fields input{min-width:0;width:100%}.account-workspace button,.sales-workspace button{min-height:42px}.account-workspace .workspace-card{overflow-wrap:anywhere}.sales-workspace input[readonly]{width:100%;min-width:0}.sales-workspace button:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:760px){.account-workspace>.workspace-two,.address-fields{grid-template-columns:1fr}.account-workspace input{font-size:16px}}

/* Customer help and restricted staff workspace · 044 */
.support-workspace{max-width:1180px;margin:auto}.support-workspace h2{overflow-wrap:anywhere}.support-workspace button{min-height:44px}.support-workspace input,.support-workspace select,.support-workspace textarea{width:100%;min-width:0}.support-filter{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr) auto;align-items:end;gap:14px;margin:28px 0 16px}.support-list{display:grid;gap:12px;margin:20px 0}.support-ticket{display:grid!important;grid-template-columns:180px minmax(0,1fr);gap:8px 20px;width:100%;padding:20px!important;text-align:left;border:1px solid var(--line)!important;background:var(--paper);color:var(--ink);overflow-wrap:anywhere}.support-ticket:hover{border-color:var(--ink)!important}.support-ticket strong{font-size:16px;font-weight:600}.support-ticket time,.support-ticket>span:not(.status-pill){font-size:12px;color:var(--muted)}.support-ticket .status-pill{justify-self:start;align-self:start}.support-form{max-width:760px}.support-thread-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(230px,1fr);gap:28px;margin-top:24px;align-items:start}.support-thread-layout>article{min-width:0}.support-messages{list-style:none;padding:0;margin:24px 0;display:grid;gap:16px}.support-message{padding:22px;border:1px solid var(--line);border-radius:4px}.support-message[data-sender=staff]{border-left:3px solid var(--red);background:var(--paper)}.support-message>div{display:flex;gap:16px;justify-content:space-between;flex-wrap:wrap}.support-message time{font-size:12px;color:var(--muted)}.support-message p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7}.support-context{margin:0!important;overflow-wrap:anywhere}.support-workspace .status-pill[data-status=waiting-customer]{border:1px solid var(--red)}.support-workspace .status-pill[data-status=resolved]{opacity:.75}.support-workspace .workspace-toolbar{align-items:start}.support-workspace .workspace-actions{flex-wrap:wrap}.support-workspace button:disabled{opacity:.45;cursor:default}
@media(max-width:760px){.support-thread-layout{grid-template-columns:1fr}.support-context{order:0}.support-filter{grid-template-columns:1fr 1fr}.support-filter>label:first-child{grid-column:1/-1}.support-ticket{grid-template-columns:1fr;padding:18px!important}.support-workspace input,.support-workspace select,.support-workspace textarea{font-size:16px}.support-workspace .workspace-two{grid-template-columns:1fr}.support-message{padding:18px}.support-workspace .workspace-toolbar{flex-wrap:wrap}}

/* Once signed in, prioritise the working screen over the repeated introduction. */
#team:has(.workspace-signed-in){padding-top:30px}
#team-workspace.workspace-signed-in .workspace-head{align-items:center;padding-bottom:18px;margin-bottom:18px}
#team-workspace.workspace-signed-in .workspace-head h1{font-size:28px;margin:0}
#team-workspace.workspace-signed-in .workspace-head .eyebrow,#team-workspace.workspace-signed-in .workspace-intro{display:none}
#workspace-message:empty{display:none}
@media(max-width:760px){
 #team:has(.workspace-signed-in){padding-top:20px}
 #team-workspace.workspace-signed-in .workspace-head{display:flex;flex-direction:row;gap:12px;padding-bottom:14px;margin-bottom:16px}
 #team-workspace.workspace-signed-in .workspace-head h1{font-size:22px}
 #team-workspace.workspace-signed-in .workspace-account{flex-direction:column;align-items:flex-end;gap:4px;flex-shrink:0}
 #team-workspace.workspace-signed-in .workspace-account button{padding:7px 12px;min-height:38px}
 #team-workspace.workspace-signed-in .workspace-tabs{margin-bottom:20px}
 .support-workspace .workspace-toolbar{gap:10px}
}
@media(max-width:760px){
 #team-workspace.workspace-signed-in .workspace-head>div:first-child{min-width:0;flex:1}
 #team-workspace.workspace-signed-in .workspace-account{width:auto}
 #team-workspace.workspace-signed-in .workspace-account>span{max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}
