/* =====================================================================
   The showroom's look, on the Control Centre (chosen 2026-11-20).

   The shop iPad's finish carried over: the logo on its own with room
   round it; the places as words, with the figures beside them in the
   same row; pill buttons and a pill search; type a step larger; and a
   piece opening over everything, its photographs on the left and the
   piece, its figures and its sizes on the right. Dark by default.

   Only the look: every screen keeps every part it had. This file is laid
   over hud.css, products.css and places.css, so taking its <link> out of
   index.html puts the old look back.
   ===================================================================== */

/* ---------- Type a step larger, buttons as pills ---------- */
.caps{font-size:10.5px}
.cmd{height:38px;padding:0 20px;font-size:14px;border-radius:19px}
.cmd.small{height:32px;padding:0 15px;font-size:13px;border-radius:16px}
.icon-bt{border-radius:50%}
.fld{font-size:15px}
.find{width:340px;height:44px;padding:0 18px;border:1px solid var(--rule);border-radius:22px}
.find:focus-within{border-color:var(--ink)}
.find input{font-size:14px}
.choice{font-size:14px}
.choice small{font-size:11px}
.heads>*{font-size:10.5px}
.empty-note{font-size:15px}
.sum-row span{font-size:13.5px}
.sum-row b{font-size:15px}
.stat-v b{font-size:20px}
.stat-v b.lead{font-size:24px}
.pipe-n b{font-size:34px}
.pipe-n small{font-size:12px}
.keyb span{font-size:13px}

/* ---------- Speed: rows out of sight are not laid out or painted until they scroll in ----------
   720 products and 900 of their pieces: drawing the range, and narrowing it
   when a piece opens beside it, only works on what is on the screen. */
.prow{content-visibility:auto;contain-intrinsic-size:auto 104px}
.pgrid{content-visibility:auto;contain-intrinsic-size:auto 100px}
.orow,.srow,.task,.nm-row{content-visibility:auto;contain-intrinsic-size:auto 72px}

/* ---------- The range: a pill search, pill filters, larger rows ---------- */
.psearch{height:auto;gap:10px;padding:6px var(--gutter) 12px;border-bottom:none}
.psearch-field{height:48px;padding:0 20px;border:1px solid var(--rule);border-radius:24px}
.psearch-field:focus-within{border-color:var(--ink)}
.psearch-field input{font-size:15px}
.ptool{width:44px;height:44px;border-bottom:none;border-radius:50%}
.ptool.on{background:var(--tint)}
.frow{min-height:56px;gap:8px}
.frow.quiet{gap:26px;padding-bottom:14px}
.fpill{height:38px;padding:0 14px 0 16px;border-radius:19px;font-size:14px}
.fpill.on{background:var(--ink);border-color:var(--ink);color:var(--ground)}
.fpill.on .fv,.fpill.on .ic{color:var(--ground)}
.fquiet{font-size:13.5px}
.frow-end{font-size:13px}
.frow-end .link{font-size:13px}
.pmenu,.fmenu{border-radius:12px}
.pmenu-item,.fm-opt,.fm-head{font-size:14px}
.psku{font-size:11px;line-height:13px}
.pcoll{font-size:10.5px;line-height:13px}
.pkind{font-size:16px;line-height:20px}
.lay-l .pkind{font-size:17px;line-height:22px}
.pc small{font-size:10.5px}
.pc b{font-size:15px}
.pc.lead b{font-size:18px}
.pg-row{min-height:40px}
.pg-label{font-size:14px}
.pg-row .pc b{font-size:14px}
.pg-row .pc.lead b{font-size:15px}
.plist-more{font-size:14px}

/* ---------- The top: the figures in words along a thin strip, the logo and the places under it ---------- */
.st-word{display:none}
.app{position:relative}
/* Saved: on a phone, a small word in the top corner, clear of the logo */
.app>.save-status{position:absolute;top:calc(env(safe-area-inset-top,0px) + 9px);right:var(--gutter);z-index:3;margin:0;font-size:10px;letter-spacing:.04em;white-space:nowrap;transition:color .3s}
.rb-word{display:none}
@media(min-width:900px){
  :root{--gutter:44px}
  .app.shell{display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-rows:38px 86px auto minmax(0,1fr);column-gap:0}
  /* the strip: this month, cash, bank, enquiries, on the water · the time · saved */
  .st-sales{grid-column:1;grid-row:1;align-self:stretch;display:flex;flex-direction:row;align-items:center;padding:0 26px 0 var(--gutter);border-bottom:1px solid var(--hair)}
  .st-sales.away{display:flex}
  .st-figure{gap:6px;align-items:center}
  .st-figure,.st-figure *,.rbar,.rbar *,.app>.save-status{line-height:16px}
  .st-figure b{font-size:13px;font-weight:400;color:var(--ink)}
  .st-figure>span.num{font-size:13px;color:var(--quiet)}
  .st-word{display:inline;font-size:13px;color:var(--quiet)}
  .st-slash{display:none}
  #barWrap{grid-column:2;grid-row:1;align-self:stretch;border-bottom:1px solid var(--hair)}
  .rbar{height:100%;padding:0;gap:18px;border-bottom:none;background:none;font-size:13px}
  .rb-left{gap:26px}
  .rb-ic{display:none}
  .rb-word{display:inline;margin-right:6px;color:var(--quiet)}
  /* new enquiries and what's on the water: an icon and a number, nothing more */
  [data-rb="enquiries"],[data-rb="shipments"]{gap:7px}
  [data-rb="enquiries"] .rb-ic,[data-rb="shipments"] .rb-ic{display:block;width:15px;height:15px}
  [data-rb="enquiries"] .rb-word,[data-rb="shipments"] .rb-word{display:none}
  .rb-dash{display:none}
  .rb-item,.rb-go{gap:0}
  .rb-zero .rb-v{color:var(--faint)}
  .rb-sep{display:none}
  .rb-per{margin-left:8px}
  .rb-clock{gap:7px;font-size:13px}
  .app>.save-status{position:static;grid-column:3;grid-row:1;align-self:stretch;display:flex;align-items:center;gap:7px;
    padding:0 var(--gutter) 0 20px;border-bottom:1px solid var(--hair);font-size:13px}
  .app>.save-status:not(:empty)::before{content:"";width:6px;height:6px;border-radius:3px;background:currentColor}
  /* the logo, on its own; the places to the right */
  .logo-band{grid-column:1;grid-row:2;height:86px;padding:0 0 0 var(--gutter);justify-content:flex-start;background:none}
  .logo-band svg{height:15px}
  #statusWrap,.status{display:contents}
  .st-places{grid-column:2 / -1;grid-row:2;align-self:center;justify-self:end;gap:30px;padding-right:var(--gutter)}
  .st-place{width:auto;height:auto;flex-direction:row;gap:0;padding:6px 0 5px;color:var(--quiet)}
  .st-place .ic{display:none}
  .st-place span{font-size:16px;letter-spacing:.02em}
  .st-place:hover{background:none;color:var(--ink)}
  a.st-place{height:38px;align-self:center;margin-left:2px;padding:0 16px;border:1px solid var(--rule);border-radius:19px;color:var(--cream)}
  a.st-place span{font-size:14px}
  a.st-place span::after{content:" ↗"}
  a.st-place:hover{border-color:var(--ink)}
  .st-title{grid-column:1 / -1;grid-row:3;padding:0 var(--gutter) 20px}
  .st-title b{font-size:36px}
  .st-crumb{font-size:10.5px}
  #stage{grid-column:1 / -1;grid-row:4}
}
/* A smaller laptop: the strip gives way first, the quietest figures stepping aside. */
@media(min-width:900px) and (max-width:1440px){ .rb-per{display:none} }
@media(min-width:900px) and (max-width:1300px){
  .rb-left{gap:20px}
  .rb-date{display:none}
  [data-rb="shipments"]{display:none}
}
@media(min-width:900px) and (max-width:1120px){
  :root{--gutter:28px}
  .st-places{gap:20px}
  .st-place span{font-size:15px}
  [data-rb="enquiries"],.rb-clock{display:none}
}
@media(max-width:899px){ .st-sales.away{display:none} }

/* ---------- Every record's sheet: a rounded card lifted off the page ---------- */
@media(min-width:900px){
  .drawer{top:calc(var(--top-h,124px) + 6px);right:20px;bottom:20px;max-width:calc(100vw - 40px);border:1px solid var(--rule);border-radius:24px;
    background:var(--raised);box-shadow:-24px 24px 64px rgba(0,0,0,.35)}
  :root:not([data-theme="dark"]) .drawer{box-shadow:-24px 24px 64px rgba(11,11,11,.12)}
  .veil{top:var(--top-h,124px)}
}

/* ---------- A piece: a card beside the range, which stays in view and in reach ---------- */
.pd-back{height:40px;display:inline-flex;align-items:center;gap:6px;padding:0 16px 0 12px;border:1px solid var(--rule);border-radius:20px;
  background:none;font:inherit;font-size:14px;color:var(--ink);cursor:pointer}
.pd-back:hover{border-color:var(--ink)}
.pd-count{margin-right:6px;font-size:13px;color:var(--quiet);white-space:nowrap}
.pd-name{margin:8px 0 0;font-size:34px;line-height:1.1;font-weight:400;color:var(--ink);letter-spacing:.01em}
.pdetail>.pcoll{font-size:11.5px;line-height:15px;letter-spacing:.18em}
.pd-numline{margin-top:10px}
.pd-num{display:none}
.pd-code{font-size:13px;color:var(--quiet)}
.pd-about{font-size:15.5px;line-height:1.5;color:var(--cream)}
.pd-status{font-size:14px}
/* the four figures as soft tiles */
.pd-figs{gap:10px;margin-top:22px;padding:0;border-top:none}
.pd-fig{gap:6px;padding:14px 16px;background:var(--sunk);border-radius:14px}
.pd-fig b{font-size:24px;font-weight:400}
.pd-fig small{font-size:12px;color:var(--quiet)}
.pd-row{min-height:44px;grid-template-columns:120px minmax(0,1fr);font-size:14px}
.pd-piece{min-height:46px;grid-template-columns:120px 18px minmax(0,1fr) auto 48px;font-size:15px;border-radius:10px}
.pd-piece>.num{font-size:13px}
/* sizes and finishes to choose: round buttons */
.vopts{gap:8px;padding:6px 0}
.vopts button{height:36px;padding:0 14px;margin:0;border:1px solid var(--rule);border-radius:18px;font-size:14px;color:var(--cream)}
.vopts button.on{background:var(--ink);border-color:var(--ink);color:var(--ground)}
.vopts button:hover{border-color:var(--ink)}
.pd-edit{height:40px;padding:0 16px;border:1px solid var(--rule);border-radius:20px;font-size:14px}
.pd-edit:hover{background:none;border-color:var(--ink)}
.product-card .drawer-tools .icon-bt[data-step]{width:40px;height:40px;flex-basis:40px;border:1px solid var(--rule)}
.product-card .drawer-sep{display:none}
/* the Close pill does what the cross did */
.product-card .drawer-tools [data-drawer-close]{display:none}
@media(min-width:900px){
  /* the card begins where the narrowed range ends */
  :root{--range-w:clamp(420px,36vw,560px)}
  .drawer.piece{left:calc(var(--range-w) + 12px);width:auto;padding:18px 22px 40px}
  .drawer.piece .product-card{display:flex;flex-direction:column;align-items:stretch;gap:0}
  .drawer.piece .product-card>.drawer-top{position:sticky;top:-18px;z-index:2;margin:-18px -22px 12px;padding:16px 22px 12px;
    border-bottom:none;background:var(--raised);border-radius:24px 24px 0 0}
  .drawer.piece .product-card>.pgal{max-width:none;gap:0;position:relative}
  .drawer.piece .pgal-hero{aspect-ratio:auto;height:clamp(260px,38vh,380px);border-radius:16px;background:var(--sunk)}
  .drawer.piece .pgal-rail{position:absolute;left:14px;bottom:14px;right:14px;gap:8px}
  .drawer.piece .pgal-rail button{flex:0 0 52px;padding:0;border:1px solid transparent;border-radius:10px;overflow:hidden}
  .drawer.piece .pgal-rail button.on{border-color:var(--ink)}
  .drawer.piece .pgal-rail img{background:var(--raised)}
  .drawer.piece .product-card>.pdetail,
  .drawer.piece .product-card>.pedit{padding:18px 8px 0}
  /* nothing in the way of the range while a piece is open */
  body.piece-open .veil{opacity:0;pointer-events:none}
  /* the range, narrowed to the left of the card: what each piece is, its stock and its price */
  body.piece-open #stage>.place{width:var(--range-w)}
  body.piece-open .prow,body.piece-open .pg-row,body.piece-open .plist-heads{grid-template-columns:minmax(0,1fr) 64px 84px;column-gap:12px}
  body.piece-open .c-orderable,body.piece-open .c-sold,body.piece-open .c-moq,body.piece-open .c-gap,
  body.piece-open .c-market,body.piece-open .c-cost{display:none!important}
  body.piece-open .frow{flex-wrap:wrap;row-gap:8px;padding-top:6px;padding-bottom:6px}
  body.piece-open .frow-end{margin-left:0}
  body.piece-open .prow.open{background:var(--sunk);border-radius:14px}
}
@media(max-width:560px){
  /* a phone's smaller pictures keep the list's own small type beside them */
  .psku{font-size:9px;line-height:10px}
  .pcoll{font-size:8.5px;line-height:10px}
  .pkind,.lay-l .pkind{font-size:12.5px;line-height:15px}
  .pd-name{font-size:28px}
  .pd-fig b{font-size:20px}
  .pd-row{grid-template-columns:84px minmax(0,1fr)}
  .pd-piece{grid-template-columns:84px 16px minmax(0,1fr) 36px}
  .pd-count{display:none}
}

/* ---------- Every other page, in the same hand ----------
   Orders, Shipments, Costs, Cash flow, Settings, Codes, Names, the
   pictures check and the stock-sheet import: the small notes a step up,
   the working figures easier to read, and the panels, tiles and switches
   rounded and lifted like the cards. */
.o-who b,.t-who b{font-size:17px}
.o-who small,.o-stage small,.o-next small,.t-what small,.t-when,.wait small,.side-note,.s-t small,.oline-t span,.oline-t small,
.rc-what small,.rc-sec p,.rc-group-head p,.rc-head p,.set-row .t small,.set-note,.ck-hint,.ck-note,.cf-note,.imp-drop small,
.code-note,.code-row small,.nm-head p,.nm-rules,.nm-flag,.nm-issue,.nm-done,.adder-list span,.cp small,.rc-fig small,.todo-month small,
.side-title small,.cf-sec small,.fig small,.nm-top,.nm-sub label,.rc-more,.imp-more,.ck-alt small,.ck-var small,.person{font-size:13px}
.o-stage b,.t-money,.wait,.cf-line,.cf-rules div,.set-row .t b,.set-row .v,.set-row .fld,.compact .fld,.rc-what b,.ck-var b,.hist-row,
.payrow,.person b,.cost-row,.code-row,.imp-row,.kf-row,.rc-opt span,.adder-list small,.cf-when .num,.nm-sub input{font-size:14.5px}
.nm-sub input{font-size:14px!important}
.fig b,.sline .r.t{font-size:16px}
.sline .r{font-size:14px}
.oline-t b{font-size:18px}
.s-t b{font-size:20px}
.nm-name{font-size:21px!important}
.set-sec h2,.todo-head b,.rc-sec h2,.rc-group-head b{font-size:24px}
.rc-head h1,.nm-head h1{font-size:36px}
.cf-hero b{font-size:56px}
.todo-month b{font-size:30px}
.hist-row span:nth-child(2),.nm-sub label>span,.nm-rules summary{font-size:10.5px}

/* the Settings index: the place you're in, a soft pill */
.set-index{gap:2px}
.set-index button{padding:9px 14px;margin-left:-14px;border-radius:20px;font-size:15px}
.set-index button i{display:none}
.set-index button.on{background:var(--sunk)}
.set-row{padding:16px 0}

/* switches as pills, stages as tiles, the to-do's side as a card */
.seg{padding:3px;gap:2px;border-radius:21px;overflow:hidden}
.seg button{border-left:none;border-radius:17px;padding:7px 15px;font-size:14px}
.pipe{gap:10px;padding-top:4px;padding-bottom:14px;border-bottom:none}
.pipe-cell,.pipe-cell:first-child{padding:16px 18px 14px;margin-bottom:0;border:1px solid transparent;border-radius:16px;background:var(--raised)}
.pipe-cell.on{border-color:var(--ink)}
.todo-side{align-self:flex-start;margin-top:14px;padding:22px 24px 28px;border-left:none;border-radius:20px;background:var(--raised)}
.todo-month div{padding:12px 14px;border-radius:14px;background:var(--sunk)}

/* every panel and form box rounded; pictures softened */
.code-form,.payform,.vnew,.flash,.notice,.imp-drop,.imp-done,.range-offer,.rc-opt,.pd-hidden,.adder-list,.pickmenu{border-radius:14px}
.adder-list,.pickmenu{overflow:hidden}
.pickbar{border-radius:24px}
.sku-card{border-radius:6px}
.tick{border-radius:5px}
.vtoken{border-radius:15px}
.ck-pic{border-radius:16px;overflow:hidden}
.pic img,.pic .none,.o-thumbs img,.o-thumbs .none,.imp-pics img,.ck-var img,.ck-var i,.ck-alt img,.adder-list img,.adder-list .none,.arch-item img{border-radius:6px}
.orow:hover,.orow.open,.srow:hover,.srow.open,.task:hover{border-radius:12px}

/* ---------- The Library and the photo library (Settings → Library), in the same hand ---------- */
.lb-side{width:320px;flex-basis:320px;border-right-color:var(--hair)}
.lb-new{height:44px;border-radius:22px;font-size:12.5px}
.lb-find{height:44px;margin-top:14px;padding:0 16px;border:1px solid var(--rule);border-radius:22px}
.lb-find input{font-size:14px}
.lb-chips button{font-size:13px}
.lb-chips button i{font-size:11px}
.lb-item img,.lb-item .ph{width:40px;height:40px;flex-basis:40px;border-radius:6px}
.lb-item .n{font-size:15px}
.lb-item .s{font-size:11.5px}
.lb-item.on{background:var(--sunk)}
.lb-head{padding:22px var(--gutter) 18px}
.lb-head h2{font-size:28px}
.lb-head .sub{font-size:13px}
.lb-tag{padding:3px 9px;border-radius:10px;font-size:10px}
.lb-btn{min-height:36px;padding:0 16px;border-radius:18px;font-size:13px}
.lb-sec{padding:28px var(--gutter) 4px}
.lb-sec h3{font-size:11px}
.lb-f label{font-size:11px}
.lb-f .in,.lb-f textarea,.lb-f select{font-size:15px}
.lb-f .in.mono{font-size:13.5px}
.lb-f .hint,.lb-was,.lb-was button,.lb-note,.lib-help{font-size:12.5px}
.lb-prop input{font-size:14.5px}
.lb-shot,.ph-shot,.ph-card{border-radius:12px}
.ph-wrap{padding:26px var(--gutter) 60px}
.ph-bar h2{font-size:12px}
.ph-search{height:44px;padding:0 16px;border-radius:22px}
.ph-search input{font-size:14px}
.ph-seg button{font-size:14px}
.ph-card .pc-name{font-size:14.5px}
.ph-card .pc-sku{font-size:12px}
.ph-card .pc-n,.ph-card .pc-edited,.ph-shot .sh-tag{border-radius:8px}
.ph-title{font-size:26px}
.ph-sub{font-size:13px}
.ph-back{min-height:36px;padding:0 16px;border-radius:18px;font-size:13px}
.ph-slug,.ph-attach{border-radius:16px}
.ph-ref{border-radius:16px}
.ph-ref img{border-radius:10px}
.ph-ref p{font-size:14px}
.ph-empty{font-size:15px}
.fx-card{padding:26px 28px;border-top:none;border-radius:18px;background:var(--raised)}
.fx-card h3{font-size:11.5px}
.sys-line{font-size:14.5px}
.sys-mut{font-size:13px}
.ds-btn{border-radius:18px}
.ds-pill{border-radius:12px}
.ds-status,.ds-warn{font-size:13.5px}
.modal{border-radius:24px;overflow:hidden}

/* a page with its own heading keeps only the way back above it, not its name twice */
.st-title.own b{display:none}
@media(min-width:900px){ .st-title.own{padding-bottom:4px} }
.btn{border-radius:20px}

/* =====================================================================
   The brand, December 2026: Figtree for every word (the logo keeps its
   own drawn letters), black and white with neutral greys. Capitals only
   where the type is small (the places, buttons, labels), in Regular, so
   nothing shouts; big names keep their own case.
   ===================================================================== */
b,strong{font-weight:500}
/* headings: Figtree Regular, a little tight */
.st-title b,.drawer-title b,.set-sec h2,.rc-head h1,.rc-sec h2,.rc-group-head b,.ck-name,.todo-head b,.cs-head b,
.nm-head h1,.pd-name,.lb-head h2,.ph-title,.modal-head .mh-name,.door-t{font-weight:400;letter-spacing:-.01em}
/* buttons say what they do, in small capitals */
.cmd,.pd-back,.pd-edit,.lb-btn,.lb-new,.ph-back,.btn{text-transform:uppercase;letter-spacing:.06em;font-weight:400}
.cmd{font-size:12px}
.cmd.small{font-size:11px}
.pd-back,.pd-edit{font-size:12px}
/* the places along the top */
@media(min-width:900px){
  .st-place span{font-size:12.5px;letter-spacing:.06em;text-transform:uppercase}
  a.st-place span{font-size:12px}
}
@media(min-width:900px) and (max-width:1120px){ .st-place span{font-size:12px} }

/* ---------- The range, calmer (December 2026) ----------
   Fewer marks on the page: an empty figure is left blank rather than drawn
   as a dash, a product's pieces sit under it without a line between each,
   and the collection over the type is Regular, not Medium. */
.pc b>.zero{visibility:hidden}
.pg-row{background-image:none}
.pgrid{padding-bottom:16px}
.pcoll{font-weight:400;letter-spacing:.06em}
.pg-dot{opacity:.6}
