/* Partner and operations workspaces share the shop's type, surfaces and controls. */
.bulk-editor h2 { margin:4px 0; letter-spacing:-.035em; }
.clearance-item { display:flex; align-items:center; gap:12px; min-width:0; }
.clearance-item h2 { margin:3px 0 0; font-size:1.13rem; overflow-wrap:anywhere; }
.clearance-offer time { color:var(--muted); font-size:.78rem; }
.clearance-prices { display:flex; flex-wrap:wrap; gap:12px 24px; border-top:1px solid var(--line); margin:14px 0 0; padding-top:12px; }
.clearance-prices dt { font-size:.78rem; color:var(--muted); }
.clearance-prices dd { margin:3px 0 0; font-size:1rem; font-weight:620; font-variant-numeric:tabular-nums; }
.clearance-prices .private-price :is(dt,dd) { color:var(--plum); }
.bulk-editor { margin-top:26px; }
.bulk-counter { color:var(--muted); font-size:.85rem; font-variant-numeric:tabular-nums; }
.bulk-item h3 { margin:0; }
.bulk-fields,.bulk-option { display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:10px; align-items:end; }
.bulk-fields { margin:14px 0 16px; }
.bulk-option { grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) minmax(0,1fr) auto; margin:8px 0; }
.bulk-option .icon-button { width:40px; height:44px; }
.bulk-details { margin-top:14px; border-top:1px solid var(--line); padding-top:12px; }
.bulk-details summary { cursor:pointer; font-size:.85rem; font-weight:600; padding:5px 0; }
.bulk-item > product-photos { margin-top:12px; }
.bulk-review ul { margin:8px 0 0; padding-left:18px; color:var(--muted); font-size:.875rem; }
.bulk-review .desk-card-head>span { font-variant-numeric:tabular-nums; font-size:.875rem; }
@media(max-width:600px) {
  .bulk-fields { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
  .bulk-fields .field:first-child { grid-column:1/-1; }
  .bulk-option { gap:5px; }
  .bulk-option .field input { padding-inline:7px; }
  .bulk-option .icon-button { width:30px; }
}
.work-tabs { gap:4px; padding-bottom:10px; }
.work-tabs a { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:8px 16px; border-radius:12px; }
.work-tabs a:not([aria-current]):hover { background:var(--soft); }
.desk-page .vendor-desk { padding-top:0; }
.vendor-desk { min-width:0; padding:clamp(16px,3vw,34px) 0; }
.page-header p,.desk-heading p,.desk-note,.desk-card p,.card-head .fine { word-break:keep-all; overflow-wrap:anywhere; }
.desk-heading { margin:20px 0; }
.desk-heading h2,.desk-card h3,.desk-dialog h2 { margin:5px 0; letter-spacing:-.04em; }
.desk-heading p,.desk-card p,.desk-note { font-size:.875rem; line-height:1.65; margin:5px 0; color:var(--muted); }
.desk-heading small,.desk-card-head small,.desk-presenter small { display:block; font-size:.7rem; font-weight:650; letter-spacing:.11em; color:var(--muted); }
.desk-stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1px; overflow:hidden; border:1px solid var(--line); border-radius:var(--radius); background:var(--line); }
.desk-stats>div { min-width:0; padding:13px clamp(12px,2vw,22px); background:var(--card); }
.desk-stats small { display:block; }
.desk-stats strong { display:block; margin-top:1px; font-weight:630; font-size:clamp(22px,3vw,32px); letter-spacing:-.04em; font-variant-numeric:tabular-nums; }
.desk-tools,.desk-actions,.desk-tabs,.desk-card-head,.desk-presenter { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.desk-tools,.desk-tabs { margin:18px 0; }
.desk-tools>label:first-child { flex:1 1 200px; }
.desk-tools { align-items:end; }
.desk-content label,.desk-form label { min-width:0; display:grid; gap:5px; font-size:.84rem; font-weight:600; }
.desk-content :is(input,select),.desk-form :is(input,select,textarea) { width:100%; min-width:0; min-height:44px; border:1px solid #b6b6be; border-radius:10px; padding:8px 11px; font:inherit; color:var(--ink); background:var(--card); }
.desk-form textarea { min-height:78px; resize:vertical; }
.desk-content .desk-order-filter { min-width:120px; width:max-content; }
.desk-card,.desk-presenter { margin:12px 0; padding:16px clamp(14px,2vw,22px); border:1px solid var(--line); border-radius:var(--radius); background:var(--card); overflow-wrap:anywhere; }
.desk-card-head,.desk-presenter { justify-content:space-between; }
.desk-sku { display:grid; grid-template-columns:minmax(100px,1.6fr) repeat(4,minmax(55px,1fr)) auto; gap:8px; align-items:center; padding:10px 0; border-top:1px solid var(--line); font-size:.84rem; }
.desk-stock-list { margin-top:12px; }
.desk-sku b { font-variant-numeric:tabular-nums; }
.desk-note { padding:14px 0; }
.desk-feedback,.desk-error { font-size:.875rem; font-weight:600; overflow-wrap:anywhere; }
.desk-error { color:var(--error); }
.desk-feedback:empty,.desk-error:empty { display:none; }
.desk-card strong { display:block; }
.desk-shipment { margin-top:18px; border-top:1px solid var(--line); padding-top:16px; }
.desk-shipment h3 { margin:0; }
.desk-shipment label { display:grid; gap:5px; }
.desk-tracking { padding:8px 10px; min-height:44px; margin-bottom:6px; border:1px solid var(--line); border-radius:10px; font-family:ui-monospace,monospace; }
.desk-copy-status { font-size:.82rem; margin-left:8px; }
.desk-tabs button { min-height:44px; padding:8px 14px; border:1px solid var(--line); border-radius:11px; background:var(--card); color:var(--muted); }
.desk-tabs [aria-pressed=true] { background:var(--ink); border-color:var(--ink); color:white; }
.desk-form { display:grid; gap:12px; max-width:580px; }
.desk-form .btn { justify-self:start; }
.desk-dialog { width:min(530px,calc(100% - 24px)); max-height:85dvh; overflow:auto; padding:24px; }
.desk-dialog>.btn { margin-top:12px; }
.desk-channels { margin:18px 0; padding:16px clamp(14px,2vw,22px); border:1px solid var(--line); border-radius:var(--radius); background:var(--card); }
.desk-channel-heading,.desk-channels li { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px 12px; }
.desk-channel-heading small { color:var(--muted); font-weight:650; font-size:.7rem; letter-spacing:.1em; }
.desk-channel-heading h3 { font-size:1.12rem; }
.sample-product { display:flex; gap:14px; align-items:center; margin-bottom:12px; }
.sample-product img { width:64px; height:80px; border-radius:10px; object-fit:cover; background:var(--soft); }
.sample-product div { min-width:0; }
.sample-product small { color:var(--muted); }
.sample-card details,.sample-step { margin-top:12px; }
#sample-desk summary { cursor:pointer; padding-block:9px; font-weight:600; }
.sample-step { display:flex; gap:10px; flex-wrap:wrap; align-items:end; }
.sample-step label { flex:1 1 155px; }
.sample-history { padding-inline-start:20px; font-size:.85rem; line-height:1.8; color:var(--muted); }
.sample-history time { font-variant-numeric:tabular-nums; }
.desk-channel-heading h3 span { color:var(--muted); margin-inline-start:4px; font-variant-numeric:tabular-nums; }
.desk-channels p { margin-top:12px; font-size:.86rem; color:var(--muted); word-break:keep-all; }
.desk-channels ul { margin:12px 0 0; padding:0; list-style:none; }
.desk-channels li { padding:7px 0; border-top:1px solid var(--line); }
.desk-channels li a { display:inline-flex; gap:5px; align-items:center; min-height:44px; min-width:0; overflow-wrap:anywhere; font-weight:600; }
.desk-channels li a span { color:var(--muted); }
.desk-channels li a:hover { text-decoration:underline; }

.sheet-steps { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.sheet-steps .desk-card { display:flex; flex-direction:column; align-items:start; margin:0; padding:20px; }
.sheet-steps .desk-card small { font-weight:650; color:var(--muted); letter-spacing:.1em; font-size:.7rem; }
.sheet-steps h2,.sheet-history h2 { font-size:1.15rem; letter-spacing:-.035em; }
.sheet-steps p { flex:1; margin:6px 0 14px; }
.sheet-picker { position:relative; overflow:hidden; cursor:pointer; }
.sheet-picker:focus-within { outline:3px solid #679def; outline-offset:3px; }
.sheet-picker input { position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:pointer; }
.sheet-picker:has(input:disabled) { opacity:.6; }
#stock-sheet-desk :is(.desk-feedback,.desk-error):not(:empty) { padding:11px 14px; background:var(--soft); border-radius:10px; margin:12px 0; }
.sheet-staging:not(:empty),.sheet-history { margin-top:28px; }
.sheet-totals { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); padding:14px 0; border-block:1px solid var(--line); }
.sheet-totals>div { padding:3px 12px; border-left:1px solid var(--line); }
.sheet-totals>div:first-child { border-left:0; }
.sheet-totals dt,.sheet-lines small,.sheet-review .desk-card-head span,.sheet-id { color:var(--muted); font-size:.82rem; }
.sheet-totals dd { font-size:clamp(1.05rem,2.1vw,1.5rem); font-weight:650; letter-spacing:-.04em; overflow-wrap:anywhere; }
.sheet-lines { width:100%; margin:10px 0; border-collapse:collapse; font-size:.88rem; font-variant-numeric:tabular-nums; }
.sheet-lines :is(td,th) { padding:8px; border-top:1px solid var(--line); text-align:right; }
.sheet-lines thead th { font-size:.78rem; color:var(--muted); }
.sheet-lines th:first-child { text-align:left; }
.sheet-lines small { display:block; font-weight:400; }
.sheet-order summary { width:fit-content; min-height:44px; padding:9px 0; cursor:pointer; font-size:.87rem; font-weight:650; }
.sheet-order .btn { margin-top:4px; }
.sheet-review .desk-note { padding-block:4px 8px; }
@media(max-width:600px) {
  .sheet-steps { grid-template-columns:1fr; gap:8px; }
  .sheet-steps .desk-card { padding:15px; }
  .sheet-totals { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 0; }
  .sheet-totals>div:nth-child(odd) { border-left:0; }
  .sheet-lines thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  .sheet-lines tbody,.sheet-lines tr { display:block; }
  .sheet-lines tr { border-top:1px solid var(--line); padding:8px 0; }
  .sheet-lines tbody :is(td,th) { display:block; border:0; padding:1px 0; }
  .sheet-lines tbody th { padding-bottom:5px; }
  .sheet-lines td { display:flex; justify-content:space-between; gap:8px; }
  .sheet-lines td::before { content:attr(data-label); float:left; font-size:.82rem; color:var(--muted); }
}
@media(max-width:760px) {
  .desk-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .desk-sku { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
  .desk-sku strong,.desk-sku .btn { grid-column:1 / -1; }
  .desk-sku .btn { justify-self:start; }
  .desk-card-head { align-items:start; }
  .desk-tools { align-items:stretch; }
  .desk-tools>label { flex:1 1 150px; }
  .desk-tools .btn { align-self:end; }
  .desk-dialog { padding:16px; }
  .desk-content :is(input,select),.desk-form :is(input,select,textarea) { font-size:16px; }
}
@media(max-width:520px) {
  #policy-form .pair:has([name=effectiveAt]) { grid-template-columns:minmax(0,1fr); }
}

product-photos {
  display:block; min-width:0; padding:16px; border:1px solid var(--line); border-radius:14px;
  background:var(--card);
}
.photo-editor-head { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:8px 12px; }
.photo-title { display:flex; flex-wrap:wrap; align-items:baseline; gap:6px; }
.photo-editor-head strong { font-size:.94rem; }
.photo-count, .photo-guide { color:var(--muted); font-size:.78rem; }
.photo-count { font-variant-numeric:tabular-nums; }
.photo-guide { margin:7px 0 0; line-height:1.5; }
.photo-guide span { display:inline-block; }
product-photos .photo-picker {
  display:inline-flex; position:relative; align-items:center; justify-content:center;
  min-height:44px; box-sizing:border-box; padding:8px 14px; background:var(--ink); color:var(--card);
  font-size:.82rem; font-weight:650; border-radius:10px; overflow:hidden;
}
.photo-picker:focus-within { outline:2px solid var(--ink); outline-offset:3px; }
.photo-picker:has(input:disabled) { opacity:.55; }
.photo-picker input[type=file] { position:absolute; inset:0; width:100%; height:100%; margin:0; opacity:0; cursor:pointer; }
.photo-sort-list { list-style:none; padding:0; display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,132px),1fr)); gap:10px; }
.photo-sort-list:empty { display:none; }
.photo-sort-list:not(:empty) { margin:14px 0 0; }
.photo-sort-list li { min-width:0; max-width:235px; border:1px solid var(--line); border-radius:10px; overflow:hidden; }
.photo-preview { position:relative; background:#f1f0ed; }
.photo-preview img { display:block; width:100%; aspect-ratio:4 / 3; object-fit:cover; }
.photo-slot { position:absolute; top:6px; left:6px; border-radius:5px; padding:2px 6px; background:#212121db; color:white; font-size:.7rem; font-weight:650; }
.photo-sort-list button { border:0; padding:4px; background:transparent; color:var(--ink); font:inherit; cursor:pointer; }
.photo-primary, .photo-sort-list [data-photo=first] { display:grid; place-items:center; min-height:34px; width:100%; font-size:.76rem; font-weight:600; }
.photo-primary { color:var(--muted); }
.photo-controls { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); border-top:1px solid var(--line); }
.photo-controls button { min-height:40px; font-size:.8rem; }
.photo-controls button+button { border-left:1px solid var(--line); }
.photo-sort-list button:disabled { opacity:.32; cursor:default; }
.photo-sort-list button:not(:disabled):hover { background:#f2f2ef; }
.photo-feedback { font-size:.8rem; color:var(--ink); overflow-wrap:anywhere; }
.photo-feedback:not(:empty) { margin-top:8px; }
@media(max-width:520px) {
  product-photos { padding:12px; }
  .photo-sort-list { grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; }
  .photo-primary, .photo-sort-list [data-photo=first], .photo-controls button { min-height:44px; }
}

/* The two studios use the storefront's plum and editorial serif for orientation.
   Keep form copy and tabular numbers in the device UI font. */
body[data-workspace] {
  --paper:#f8f6f3; --card:#fffefd; --ink:#242025; --muted:#645e63;
  --line:#ded9d6; --soft:#f1eeeb; --accent:#2d252b; --radius:14px;
  --studio-tint:#f4ecef; --studio-measure:1080px;
  background:var(--paper);
}
#workspace-mark {
  padding-left:clamp(7px,1vw,13px); margin-left:2px; border-left:1px solid #c8bbc0;
  font-size:clamp(.75rem,1.4vw,.94rem); line-height:1.3; font-weight:500;
  letter-spacing:-.025em; color:var(--plum);
}
body[data-workspace] .work-tabs {
  flex-wrap:nowrap; gap:clamp(20px,3.4vw,44px); max-width:var(--studio-measure);
  margin:0 auto; padding:0; overflow-x:auto; overscroll-behavior-inline:contain;
  scroll-padding-inline:12px; scrollbar-width:thin; scrollbar-color:#c6b9bd transparent;
}
body[data-workspace] .work-tabs a {
  position:relative; flex:none; flex-direction:column; align-items:flex-start; gap:1px;
  padding:10px 1px 11px; min-height:54px; border-radius:0; color:var(--muted);
  font-size:.94rem; font-weight:550; line-height:1.25; letter-spacing:-.018em;
}
body[data-workspace] .work-tabs a small { font-size:.72rem; font-weight:500; letter-spacing:-.02em; color:inherit; }
body[data-workspace] .work-tabs a:is([aria-current],:hover) { color:var(--plum); background:transparent; }
body[data-workspace] .work-tabs a[aria-current] { font-weight:740; }
body[data-workspace] .work-tabs a[aria-current]::after {
  content:""; position:absolute; inset:auto 0 0; height:3px; background:currentColor; border-radius:2px 2px 0 0;
}
body[data-workspace] .work-tabs a:focus-visible { outline-offset:-3px; }
body[data-workspace] .page, body[data-workspace] .inquiry-page { max-width:var(--studio-measure); }
body[data-workspace] .work-tabs + .page { padding-top:0; }
body[data-workspace] .workspace-hero {
  margin:0 0 clamp(18px,2vw,28px); padding:clamp(24px,3.4vw,46px) 0 0;
}
body[data-workspace] .workspace-hero > :is(.overline,small),
body[data-workspace] .card-head .overline, body[data-workspace] .auth-page > .overline {
  display:block; color:var(--plum); font:650 .68rem/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  text-transform:uppercase; letter-spacing:.12em;
}
body[data-workspace] .workspace-hero > :is(.overline,small) { letter-spacing:.035em; }
body[data-workspace] :is(.workspace-hero,.auth-page) h1[lang=en] {
  margin:5px 0 7px; font-size:clamp(2.3rem,5.2vw,4.05rem); line-height:1.06;
  font-weight:560; letter-spacing:-.065em; overflow-wrap:normal; word-break:normal;
}
body[data-workspace] :is(.workspace-hero,.auth-page) h1 em {
  color:var(--plum); font-family:Georgia,"Times New Roman",serif; font-weight:400; letter-spacing:-.055em;
}
body[data-workspace] .workspace-hero > p {
  margin:0; max-width:65ch; color:var(--muted); font-size:.88rem; line-height:1.65; word-break:keep-all; overflow-wrap:anywhere;
}
body[data-workspace] :is(.card,.desk-card,.desk-channels,.desk-presenter) {
  border-color:var(--line); border-radius:var(--radius);
}
body[data-workspace] .card-head h2 { margin:3px 0 0; font-size:clamp(1.12rem,2vw,1.4rem); font-weight:650; }
body[data-workspace] .card-head .link-button {
  display:inline-flex; align-items:center; gap:6px; min-height:44px; padding:3px 0;
  color:var(--plum); font-size:.84rem; font-weight:620; text-decoration:underline; text-underline-offset:4px;
}
body[data-workspace] .catalog-list-row { justify-content:flex-start; }
body[data-workspace] .catalog-list-row > div { min-width:0; }
.catalog-thumb {
  display:grid; place-items:center; flex:none; width:45px; height:57px; overflow:hidden; border-radius:6px;
  color:var(--plum); background:var(--studio-tint); font:italic 1.05rem Georgia,serif;
}
.catalog-thumb img { display:block; width:100%; height:100%; object-fit:cover; }
body[data-workspace] .field, body[data-workspace] .desk-form label { font-weight:610; letter-spacing:-.018em; }
body[data-workspace] :is(.field,.desk-form,.desk-tools) :is(input,textarea,select):not([type=file]) {
  background:#fff; border:1px solid #a49c9b; border-radius:9px; font-weight:400;
}
body[data-workspace] ::placeholder { color:#706870; opacity:1; }
body[data-workspace] .btn { border-radius:99px; font-weight:620; }
body[data-workspace] .btn.subtle { border-color:#c6bdbc; }
body[data-workspace] product-photos { background:#f8f4f2; border-color:#ded3d4; border-radius:11px; }
body[data-workspace] .photo-count { color:var(--plum); font-size:.74rem; }
body[data-workspace] .photo-picker { border-radius:99px; background:var(--plum); color:white; }
body[data-workspace] .photo-guide { margin-top:6px; }
body[data-workspace] .desk-tabs button { border-radius:99px; }
.clearance-field { padding:0 12px; border:1px solid var(--line); border-radius:9px; }
.clearance-switch { display:flex; align-items:center; gap:9px; min-height:44px; cursor:pointer; font-size:.87rem; font-weight:600; }
.clearance-switch input { width:17px; height:17px; margin:0; accent-color:var(--plum); flex:none; }
.clearance-switch small { margin-left:4px; color:var(--muted); font-weight:500; }
.clearance-entry { border-top:1px solid var(--line); padding:12px 0; }
.clearance-entry .fine { margin:7px 0 0; color:var(--muted); }
body[data-workspace] .desk-tabs [aria-pressed=true] { background:var(--studio-tint); border-color:var(--plum); color:var(--plum); }
body[data-workspace] .desk-stats { border-radius:12px; }
body[data-workspace] .desk-stats strong { font-weight:550; }
body[data-workspace] .sheet-lines thead { color:var(--muted); background:var(--soft); }
body[data-workspace] .desk-dialog { background:var(--card); }
body[data-workspace] .auth-page { background:var(--card); }
body[data-workspace] .auth-page h1[lang=en] { font-size:clamp(2.15rem,4.6vw,2.9rem); }

@media(min-width:800px) {
  body[data-workspace] .workspace-hero {
    display:grid; grid-template-columns:minmax(0,1fr) clamp(145px,20%,222px); column-gap:22px; align-content:center;
  }
  body[data-workspace] .workspace-hero > * { grid-column:1; }
  body[data-workspace] .workspace-hero::after {
    content:""; grid-column:2; grid-row:1 / 4; align-self:stretch;
    border-radius:5px; background:#e6e0d9 url('/images/editorial.webp') center 43% / cover;
  }
  body[data-workspace=admin] .workspace-hero::after { background-image:url('/images/season.webp'); }
}
@media(max-width:660px) {
  body[data-workspace] .work-tabs { gap:16px; }
  body[data-workspace] .work-tabs a { min-height:52px; }
  body[data-workspace] .card-head { margin-bottom:14px; }
  body[data-workspace] .primary-nav, body[data-workspace] .header-icon, body[data-workspace] .bag-button { display:none; }
  body[data-workspace] #account-button { display:inline-flex; }
  body[data-workspace] { padding-bottom:env(safe-area-inset-bottom); }
}
