/* 2XU indent portal. Brand through restraint: black, white, cool greys. Type does the work. */
:root {
  --bg: #F3F3F4; --paper: #FFFFFF; --ink: #000000; --ink2: #3A3A3C; --mute: #6D6E71; --cg5: #A7A9AC;
  --line: #D9DADC; --fill: #EBEBEC; --fill2: #F7F7F8; --warm: #EFEDEA;
  --ok: #1F7A3E; --okbg: #E3F1E7; --warn: #9A6214; --warnbg: #F8ECD8; --bad: #A83232; --badbg: #F6E1E1;
  --sans: 'Archivo', 'Helvetica Neue', Arial, sans-serif; --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --r: 3px; --gut: 28px; --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.45 var(--sans); font-variation-settings: 'wdth' 100; }
body.locked { overflow: hidden; }
a { color: inherit; }
h1, h2, h3 { font-stretch: 112%; font-weight: 800; letter-spacing: -.01em; margin: 0 0 4px; line-height: 1.05; }
h1 { font-size: 30px; } h2 { font-size: 20px; } h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.muted { color: var(--mute); } .small { font-size: 12px; }
.eyebrow { font: 600 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--cg5); margin: 0 0 10px; }
.eyebrow.dark { color: var(--mute); }
.loading, .empty { padding: 80px 20px; text-align: center; color: var(--mute); }
.empty .btn { margin-top: 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border: 1px solid var(--ink); background: var(--ink); color: #fff;
  font: 600 13px var(--sans); font-stretch: 105%; text-decoration: none; border-radius: var(--r); cursor: pointer; transition: transform .15s var(--ease), background .15s; white-space: nowrap; }
.btn:hover { background: #222; } .btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .35; cursor: not-allowed; }
.btn-sm { height: 30px; padding: 0 11px; font-size: 12px; }
.btn-line { background: transparent; color: var(--ink); } .btn-line:hover { background: var(--fill); }
.btn-inv { background: #fff; color: #000; border-color: #fff; } .btn-inv:hover { background: var(--fill); }
.btn-ghost-inv { background: transparent; color: #fff; border-color: #555; } .btn-ghost-inv:hover { background: #1a1a1a; border-color: #fff; }
.btn-block { width: 100%; justify-content: center; height: 46px; font-size: 14px; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link.inv { color: #bbb; }
.tag { display: inline-block; padding: 2px 6px; font: 600 10px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .06em; background: var(--fill); color: var(--ink2); border-radius: 2px; }
.tag-new { background: var(--ink); color: #fff; } .tag-warn { background: var(--warnbg); color: var(--warn); } .tag-ok { background: var(--okbg); color: var(--ok); }
.droptag { display: inline-block; padding: 1px 6px; border: 1px solid var(--line); font: 500 11px var(--mono); border-radius: 2px; white-space: nowrap; }

/* Header */
.top { position: sticky; top: 0; z-index: 30; }
.bar1 { display: flex; align-items: center; gap: 22px; height: 60px; padding: 0 var(--gut); background: #000; color: #fff; }
.logo img { height: 22px; display: block; }
.mode { display: flex; align-items: center; border: 1px solid #333; border-radius: var(--r); overflow: hidden; }
.mode span { padding: 7px 12px; font: 600 12px var(--sans); font-stretch: 110%; }
.mode .on { background: #fff; color: #000; } .mode .season { color: #aaa; font-size: 11px; }
.search { flex: 1; max-width: 460px; }
.search input { width: 100%; height: 36px; padding: 0 14px; background: #161616; border: 1px solid #2c2c2c; color: #fff; border-radius: var(--r); font: 13px var(--sans); }
.search input:focus { outline: none; border-color: #fff; background: #000; }
.topnav { display: flex; gap: 18px; } .topnav a { text-decoration: none; font-weight: 600; color: #ddd; } .topnav a:hover { color: #fff; }
.pad { margin-left: auto; display: flex; align-items: baseline; gap: 6px; padding: 8px 14px; background: #fff; color: #000; text-decoration: none; border-radius: var(--r); font-size: 13px; }
.pad span { font: 600 10px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--mute); margin-right: 4px; }
.me { display: flex; flex-direction: column; align-items: flex-end; font-size: 12px; color: #ccc; line-height: 1.3; }
.bar2 { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px var(--gut); background: var(--paper); border-bottom: 1px solid var(--line); font-size: 12.5px; }
.acct { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 18px; color: var(--ink2); }
.acct b { color: var(--ink); } .acct select { font: 600 13px var(--sans); padding: 5px 8px; border: 1px solid var(--ink); border-radius: var(--r); background: var(--paper); }
.acct .role { background: var(--warm); padding: 2px 8px; border-radius: 2px; font-weight: 600; }
.close-note { color: var(--mute); white-space: nowrap; } .close-note.urgent { color: var(--bad); }
.bar3 { display: flex; align-items: center; gap: 4px; padding: 0 calc(var(--gut) - 10px); background: var(--paper); border-bottom: 1px solid var(--line); overflow-x: auto; }
.bar3 a { padding: 11px 10px; text-decoration: none; font-weight: 700; font-stretch: 108%; white-space: nowrap; border-bottom: 2px solid transparent; }
.bar3 a.sub { font-weight: 500; color: var(--ink2); font-stretch: 100%; }
.bar3 a:hover, .bar3 a.on { border-bottom-color: var(--ink); }
.bar3 .sep { width: 1px; height: 18px; background: var(--line); margin: 0 8px; }

main { padding: 26px var(--gut) 60px; max-width: 1560px; margin: 0 auto; }
.foot { display: flex; align-items: center; gap: 20px; padding: 22px var(--gut); background: #000; color: #fff; font-size: 12px; }
.foot img { height: 14px; } .foot .muted { color: #888; margin-left: auto; }

/* Motion */
.rise { animation: rise .6s var(--ease) both; animation-delay: calc(var(--d, 0) * 90ms); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rise, .tile { animation: none !important; } }

/* Season landing */
.hero { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; padding: 44px 44px 40px; background: #000; color: #fff; overflow: hidden; border-radius: var(--r);
  background-image: radial-gradient(1200px 400px at 85% 120%, #2a2a2a 0%, transparent 60%), repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 80px); }
.hero .xdev { position: absolute; right: -60px; top: -90px; width: 520px; height: 520px; color: #222; pointer-events: none; }
.hero-copy, .deadline { position: relative; }
.hero h1 { font-size: clamp(36px, 5vw, 64px); font-stretch: 125%; text-transform: uppercase; letter-spacing: -.02em; margin-bottom: 18px; }
.hero-stats { display: flex; gap: 22px; flex-wrap: wrap; margin: 0 0 26px; color: #bbb; }
.hero-stats b { color: #fff; font: 600 18px var(--mono); margin-right: 4px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.deadline { display: flex; flex-direction: column; align-items: flex-end; text-align: right; padding: 18px 22px; border: 1px solid #333; background: rgba(0,0,0,.6); border-radius: var(--r); }
.deadline .big { font-size: 64px; line-height: 1; font-weight: 500; } .deadline span:nth-child(2) { font-weight: 600; } .deadline small { color: #999; margin-top: 4px; }
.deadline.urgent .big { color: #ff8a8a; }
.block { margin-top: 30px; }
.block-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.block.two { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.drops { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.drop { display: block; padding: 18px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; transition: border-color .15s, transform .2s var(--ease); }
.drop:hover { border-color: var(--ink); transform: translateY(-2px); }
.drop-top { display: flex; justify-content: space-between; align-items: baseline; } .drop-top b { font-size: 18px; font-stretch: 115%; }
.drop p { margin: 6px 0 14px; font-size: 12.5px; }
.drop-num { font-size: 15px; margin-bottom: 8px; } .drop-num .mono { font-weight: 600; font-size: 20px; }
.bar { height: 4px; background: var(--fill); margin-bottom: 10px; } .bar i { display: block; height: 100%; background: var(--ink); transition: width .6s var(--ease); }
.status { font: 600 11px var(--mono); text-transform: uppercase; color: var(--mute); } .status.ok { color: var(--ok); }
.depts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.dept { display: block; background: var(--paper); border: 1px solid var(--line); text-decoration: none; border-radius: var(--r); overflow: hidden; transition: border-color .15s; }
.dept:hover { border-color: var(--ink); }
.dept img, .dept .noimg { width: 100%; aspect-ratio: 4/3; object-fit: cover; object-position: top; display: block; background: var(--fill2); }
.dept div { padding: 12px 14px; display: flex; flex-direction: column; } .dept b { font-size: 16px; font-stretch: 112%; } .dept span { color: var(--mute); font-size: 12.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip { padding: 7px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 99px; text-decoration: none; font-weight: 600; font-size: 13px; }
.chip span { font: 500 11px var(--mono); color: var(--mute); margin-left: 4px; } .chip:hover { border-color: var(--ink); }

/* Tables */
.tbl { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); font-size: 13px; }
.tbl th { text-align: left; padding: 9px 10px; font: 600 10.5px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--mute); border-bottom: 1px solid var(--line); background: var(--fill2); }
.tbl td { padding: 9px 10px; border-bottom: 1px solid var(--fill); vertical-align: middle; }
.tbl tr.cur td { background: var(--warm); }
.tbl tfoot td { font-weight: 700; background: var(--fill2); border-top: 1px solid var(--line); }
.num { text-align: right !important; }
.thumb { width: 44px; height: 54px; object-fit: cover; display: block; background: var(--fill2); font-size: 0; }
.noimg { display: grid; place-items: center; background: repeating-linear-gradient(45deg, var(--fill2) 0 6px, var(--fill) 6px 12px); color: var(--mute); font: 500 10px var(--mono); text-transform: uppercase; letter-spacing: .06em; text-align: center; }
.noimg.thumb, .noimg.sw { font-size: 0; }

/* Catalogue */
.cat { display: grid; grid-template-columns: 230px 1fr; gap: 28px; }
.filters { position: sticky; top: calc(var(--top-h, 150px) + 12px); align-self: start; max-height: calc(100vh - var(--top-h, 150px) - 24px); overflow: auto; padding-right: 6px; }
.facet { border-bottom: 1px solid var(--line); padding: 10px 0; }
.facet summary { cursor: pointer; font: 700 12px var(--sans); font-stretch: 110%; text-transform: uppercase; letter-spacing: .06em; list-style: none; padding: 4px 0; }
.facet summary::after { content: '+'; float: right; color: var(--mute); } .facet[open] summary::after { content: '–'; }
.fv { display: flex; align-items: center; gap: 8px; padding: 3px 0; font-size: 13px; cursor: pointer; }
.fv input { accent-color: #000; margin: 0; } .fv span { flex: 1; } .fv em { font: normal 11px var(--mono); color: var(--mute); }
.cat-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.cat-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cat-tools select { height: 32px; border: 1px solid var(--line); border-radius: var(--r); padding: 0 8px; font: 13px var(--sans); background: var(--paper); }
.seg { display: inline-flex; border: 1px solid var(--ink); border-radius: var(--r); overflow: hidden; }
.seg button { border: 0; background: var(--paper); padding: 7px 12px; font: 600 12px var(--sans); cursor: pointer; } .seg button.on { background: var(--ink); color: #fff; }
.chipsbar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 14px; }
.fchip { border: 1px solid var(--ink); background: var(--paper); border-radius: 99px; padding: 4px 10px; font: 600 12px var(--sans); cursor: pointer; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(212px, 1fr)); gap: 14px; }
.tile { position: relative; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; overflow: hidden;
  animation: rise .5s var(--ease) both; animation-delay: calc(var(--i) * 22ms); transition: border-color .15s, box-shadow .2s; }
.tile:hover, .tile:focus-visible { border-color: var(--ink); box-shadow: 0 8px 24px -14px rgba(0,0,0,.35); outline: none; }
.tile-img { position: relative; aspect-ratio: 4/5; background: var(--fill2); }
.tile-img img, .tile-img .noimg { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.tile-img .tag-new { position: absolute; top: 8px; left: 8px; }
.inorder { position: absolute; bottom: 8px; left: 8px; background: var(--ok); color: #fff; padding: 2px 7px; font-size: 11px; border-radius: 2px; }
.tile-body { padding: 10px 12px 46px; display: flex; flex-direction: column; gap: 5px; }
.tile-body > b { font-size: 13.5px; line-height: 1.25; font-stretch: 104%; } .tile-body .mono { font-size: 11.5px; }
.swatches { display: flex; gap: 4px; align-items: center; }
.swatches span { width: 22px; height: 22px; border: 1px solid var(--line); border-radius: 2px; overflow: hidden; }
.swatches img, .swatches .noimg { width: 100%; height: 100%; object-fit: cover; font-size: 0; }
.swatches em { font: normal 11px var(--mono); color: var(--mute); }
.prices { display: flex; gap: 10px; font-size: 12px; align-items: baseline; flex-wrap: wrap; } .prices b { font-size: 13px; }
.drops-mini { display: flex; gap: 4px; flex-wrap: wrap; }
.tile-btn { position: absolute; left: 12px; right: 12px; bottom: 10px; justify-content: center; opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s; }
.tile:hover .tile-btn, .tile:focus-visible .tile-btn { opacity: 1; transform: none; }
.linesheet tr { cursor: pointer; } .linesheet tr:hover td { background: var(--fill2); } .cc { font-size: 11px; color: var(--ink2); }

/* Drawer (style + order grid) */
.drawer-wrap { position: fixed; inset: 0; z-index: 50; }
.drawer-bg { position: absolute; inset: 0; background: rgba(0,0,0,.45); opacity: 0; transition: opacity .25s; }
.drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(1240px, 96vw); background: var(--paper); display: flex; flex-direction: column; transform: translateX(40px); opacity: 0; transition: transform .28s var(--ease), opacity .2s; }
.drawer-wrap.open .drawer-bg { opacity: 1; } .drawer-wrap.open .drawer { transform: none; opacity: 1; }
.dr-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 20px 26px 14px; border-bottom: 1px solid var(--line); }
.dr-head h2 { font-size: 26px; }
.x { border: 1px solid var(--line); background: var(--paper); width: 36px; height: 36px; border-radius: var(--r); cursor: pointer; font-size: 15px; }
.dr-body { flex: 1; overflow: auto; display: grid; grid-template-columns: 240px 1fr; gap: 24px; padding: 20px 26px; }
.dr-gallery .hero-img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: top; background: var(--fill2); display: block; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 12px 0; border: 1px solid var(--line); }
.facts div { padding: 8px; display: flex; flex-direction: column; border-right: 1px solid var(--line); } .facts div:last-child { border: 0; }
.facts span { font: 600 9.5px var(--mono); text-transform: uppercase; color: var(--mute); letter-spacing: .06em; } .facts b { font-size: 14px; }
.techs { display: flex; flex-wrap: wrap; gap: 4px; }
.dr-main { min-width: 0; }
.cwstrip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 10px; margin-bottom: 8px; }
.cw-chip { display: flex; gap: 8px; align-items: center; padding: 5px 10px 5px 5px; border: 1px solid var(--line); background: var(--paper); border-radius: var(--r); cursor: default; text-align: left; flex: none; }
.cw-chip:hover { border-color: var(--ink); }
.cw-chip img, .cw-chip .noimg { width: 34px; height: 34px; object-fit: cover; font-size: 0; }
.cw-chip b { display: block; font-size: 12px; } .cw-chip em { font-style: normal; font-size: 10.5px; color: var(--mute); }
.dr-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 26px; border-top: 1px solid var(--ink); background: var(--paper); flex-wrap: wrap; }
.dr-bar .big { font-size: 22px; font-weight: 600; } .bar-acts { display: flex; gap: 8px; }
.tabs { margin-top: 22px; border-top: 1px solid var(--line); }
.tabbar { display: flex; gap: 2px; } .tabbar button { border: 0; background: none; padding: 12px 14px; font: 600 13px var(--sans); cursor: pointer; border-bottom: 2px solid transparent; color: var(--mute); }
.tabbar button.on { color: var(--ink); border-bottom-color: var(--ink); }
.tabs [data-pane] { max-width: 760px; padding: 4px 2px; } .lead { font-size: 16px; font-weight: 600; }

/* Order grid */
.grid-scroll { overflow-x: auto; border: 1px solid var(--line); }
.ogrid { border-collapse: collapse; width: 100%; font-size: 13px; background: var(--paper); }
.ogrid th { padding: 8px 6px; font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--mute); background: var(--fill2); border-bottom: 1px solid var(--line); text-align: left; }
.ogrid td { padding: 5px 6px; border-bottom: 1px solid var(--fill); }
.ogrid tr.split td { border-top: 0; background: var(--fill2); }
.sticky-col { position: sticky; left: 0; background: inherit; z-index: 1; }
.ogrid tbody td.sticky-col { background: var(--paper); min-width: 230px; } .ogrid tr.split td.sticky-col { background: var(--fill2); }
.cw { display: flex; } .cw > div { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.ogrid td.cw { display: flex; gap: 8px; align-items: center; }
.ogrid .sw { width: 36px; height: 44px; object-fit: cover; flex: none; }
.cw b { font-size: 12.5px; line-height: 1.2; } .cw .mono { font-size: 11px; color: var(--mute); }
.split-label { padding-left: 44px; color: var(--mute); font: 12px var(--mono); }
.cell { padding: 3px !important; text-align: center; }
.cell input { width: 46px; height: 34px; text-align: center; border: 1px solid var(--line); border-radius: 2px; font: 500 14px var(--mono); background: var(--paper); transition: border-color .1s, background .1s; }
.cell input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 2px rgba(0,0,0,.08); }
.cell input:not(:placeholder-shown)[value]:not([value=""]) { background: var(--fill2); }
.cell.na { color: var(--line); }
.ogrid .tot { font: 600 14px var(--mono); } .ogrid .val { font: 13px var(--mono); color: var(--ink2); white-space: nowrap; }
.ogrid tfoot td { background: var(--fill2); font-weight: 700; border-top: 1px solid var(--line); font-family: var(--mono); }
.dropsel, .preset { height: 28px; border: 1px solid var(--line); border-radius: 2px; font: 12px var(--sans); background: var(--paper); }
.acts { white-space: nowrap; } .acts .link { font-size: 12px; margin-left: 6px; }
.hint { font-size: 11.5px; color: var(--mute); margin: 8px 0 0; font-family: var(--mono); }

/* Review */
.review { display: grid; grid-template-columns: 1fr 340px; gap: 26px; align-items: start; }
.notice { padding: 10px 14px; background: var(--warm); border-left: 3px solid var(--ink); margin-bottom: 14px; }
.hdr-fields { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 12px; margin-bottom: 14px; }
.hdr-fields .wide:last-child { grid-column: 1 / -1; }
label { font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--mute); display: flex; flex-direction: column; gap: 5px; }
label input:not([type=checkbox]) { height: 38px; border: 1px solid var(--line); border-radius: var(--r); padding: 0 10px; font: 14px var(--sans); color: var(--ink); text-transform: none; letter-spacing: 0; background: var(--paper); }
label input:focus { outline: none; border-color: var(--ink); }
.quickadd { margin-bottom: 14px; max-width: 520px; }
.rv-grid > td { background: var(--fill2); padding: 12px !important; } .rv-grid .btn { margin-top: 10px; }
.summary { position: sticky; top: calc(var(--top-h, 150px) + 12px); background: var(--paper); border: 1px solid var(--ink); padding: 20px; border-radius: var(--r); }
.summary dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin: 14px 0; font-size: 13px; }
.summary dt { color: var(--ink2); } .summary dd { margin: 0; text-align: right; }
.summary .rule { border-top: 1px solid var(--line); padding-top: 8px; }
.checks { background: var(--warnbg); padding: 12px; margin-bottom: 14px; font-size: 13px; }
.checks ul { margin: 6px 0 0; padding-left: 16px; } .checks li { margin: 3px 0; }
.terms { flex-direction: row; text-transform: none; letter-spacing: 0; font: 13px var(--sans); color: var(--ink2); gap: 10px; margin-bottom: 14px; align-items: flex-start; }
.terms input { accent-color: #000; margin-top: 3px; }

/* Confirmation */
.success { padding: 14px 18px; background: var(--okbg); border-left: 3px solid var(--ok); margin-bottom: 20px; }
.facts-grid { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); background: var(--paper); margin-bottom: 18px; }
.facts-grid div { padding: 10px 12px; border-right: 1px solid var(--fill); border-bottom: 1px solid var(--fill); display: flex; flex-direction: column; gap: 3px; }
.facts-grid span { font: 600 10px var(--mono); text-transform: uppercase; color: var(--mute); letter-spacing: .06em; } .facts-grid b { font-weight: 600; font-size: 13px; }
.pipeline { display: flex; gap: 0; margin-top: 20px; font: 600 11px var(--mono); text-transform: uppercase; }
.pipeline span { flex: 1; padding: 10px; border-top: 3px solid var(--line); color: var(--mute); } .pipeline .on { border-color: var(--ink); color: var(--ink); }

/* Login */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; background: #000; }
.login-brand { display: flex; flex-direction: column; justify-content: flex-end; padding: 56px; color: #fff; position: relative; overflow: hidden;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 1px, transparent 1px 90px), radial-gradient(800px 500px at 20% 110%, #262626, transparent 60%); }
.logo-lg { width: 220px; margin-bottom: 18px; } .tagline { font: 800 20px var(--sans); font-stretch: 120%; text-transform: uppercase; margin: 0 0 8px; } .login-sub { color: #999; margin: 0; }
.login-card { background: var(--paper); margin: 40px; padding: 40px; align-self: center; border-radius: var(--r); }
.login-card form { display: flex; flex-direction: column; gap: 12px; margin: 18px 0 28px; }
.demo { border-top: 1px solid var(--line); padding-top: 18px; display: grid; gap: 8px; }
.demo-user { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; text-align: left; padding: 10px 12px; border: 1px solid var(--line); background: var(--paper); border-radius: var(--r); cursor: pointer; font: 13px var(--sans); }
.demo-user:hover { border-color: var(--ink); } .demo-user span { color: var(--mute); font-size: 12px; } .demo-user em { grid-row: 1 / 3; grid-column: 2; align-self: center; font-style: normal; font-size: 11px; color: var(--mute); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; z-index: 99; background: #000; color: #fff; padding: 12px 18px; border-radius: var(--r); font-weight: 600; transition: all .25s var(--ease); max-width: 90vw; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast-warn { background: var(--warn); } .toast-bad { background: var(--bad); }

@media (max-width: 1100px) {
  .review { grid-template-columns: 1fr; } .summary { position: static; }
  .facts-grid { grid-template-columns: repeat(2, 1fr); } .depts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  :root { --gut: 16px; }
  .bar1 { flex-wrap: wrap; height: auto; padding-block: 10px; gap: 10px; } .search { order: 5; max-width: none; flex-basis: 100%; }
  .cat { grid-template-columns: 1fr; } .filters { position: static; max-height: none; }
  .drops, .block.two { grid-template-columns: 1fr; } .hero { grid-template-columns: 1fr; padding: 28px 22px; } .deadline { align-items: flex-start; text-align: left; }
  .dr-body { grid-template-columns: 1fr; } .hdr-fields { grid-template-columns: 1fr; }
  .login { grid-template-columns: 1fr; } .login-brand { padding: 32px 20px; } .login-card { margin: 16px; padding: 24px; }
  .bar2 { flex-direction: column; align-items: flex-start; }
}
@media print {
  .top, .foot, .cat-tools, .pipeline, .success { display: none !important; }
  body { background: #fff; } main { padding: 0; } .tbl { font-size: 10px; }
}
label.btn { flex-direction: row; font: 600 13px var(--sans); text-transform: none; letter-spacing: 0; color: #fff; }
label.btn-sm { font-size: 12px; } label.btn-line { color: var(--ink); }
label.fv { flex-direction: row; font: 13px var(--sans); text-transform: none; letter-spacing: 0; color: var(--ink); gap: 8px; }

/* ---- v2: orders lifecycle, admin ---- */
.tag-bad { background: var(--badbg); color: var(--bad); } .tag-ink { background: var(--ink); color: #fff; }
h1 .tag { vertical-align: middle; font-size: 11px; margin-left: 6px; }
.notice.warn { background: var(--warnbg); border-left-color: var(--warn); }
.link.danger { color: var(--bad); font-size: 12px; margin-top: 12px; display: inline-block; }
.mini-bar { width: 120px; height: 4px; background: var(--fill); margin-bottom: 3px; } .mini-bar i { display: block; height: 100%; background: var(--ink); }
.facts.four { grid-template-columns: repeat(2, 1fr); } .facts.four div:nth-child(2) { border-right: 0; } .facts.four div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.tabbar.pill { display: flex; gap: 6px; margin: 0 0 14px; flex-wrap: wrap; }
.tabbar.pill a { padding: 7px 12px; border: 1px solid var(--line); border-radius: 99px; text-decoration: none; font-weight: 600; font-size: 13px; background: var(--paper); }
.tabbar.pill a.on { background: var(--ink); color: #fff; border-color: var(--ink); } .tabbar.pill .mono { font-size: 11px; opacity: .7; margin-left: 3px; }
.timeline { list-style: none; margin: 8px 0 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 110px 1fr; gap: 10px; padding: 7px 0 7px 14px; position: relative; font-size: 13px; }
.timeline li::before { content: ''; position: absolute; left: -5px; top: 12px; width: 8px; height: 8px; background: var(--ink); border-radius: 50%; }
.conf-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 22px; align-items: start; }
.side-panel { background: var(--paper); border: 1px solid var(--line); padding: 16px; border-radius: var(--r); }
.side-panel h3 { margin-top: 4px; } .side-panel h3 + * { margin-bottom: 18px; }
.versions { list-style: none; padding: 0; margin: 8px 0 18px; } .versions li { padding: 8px 10px; border: 1px solid var(--fill); margin-bottom: 6px; display: flex; flex-direction: column; gap: 2px; }
.versions li.on { border-color: var(--ink); } .versions a { text-decoration: none; }
.modal-wrap { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; }
.modal-bg { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.modal { position: relative; width: min(760px, 100%); max-height: 88vh; overflow: auto; background: var(--paper); border-radius: var(--r); animation: rise .25s var(--ease) both; }
.modal header { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--paper); }
.modal-body { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 14px; } .modal-body p { margin: 0; }
.tbl.small td, .tbl.small th { padding: 6px 8px; font-size: 12px; }
.admin { display: grid; grid-template-columns: 180px 1fr; gap: 28px; align-items: start; }
.admin-nav { position: sticky; top: calc(var(--top-h, 150px) + 12px); display: flex; flex-direction: column; gap: 2px; }
.admin-nav a { padding: 9px 12px; text-decoration: none; font-weight: 600; border-radius: var(--r); } .admin-nav a:hover { background: var(--fill); }
.admin-nav a.on { background: var(--ink); color: #fff; }
.kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 8px; }
.kpis div { background: var(--paper); border: 1px solid var(--line); padding: 14px 16px; border-radius: var(--r); display: flex; flex-direction: column; gap: 4px; }
.kpis span { font: 600 10.5px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--mute); }
.kpis b { font-size: 26px; font-weight: 500; line-height: 1.1; } .kpis b.small-kpi { font-size: 16px; } .kpis em { font-style: normal; font-size: 12px; color: var(--warn); }
.tbl.edit input:not([type=checkbox]), .tbl.edit select { width: 100%; height: 32px; border: 1px solid var(--line); border-radius: 2px; padding: 0 8px; font: 13px var(--sans); background: var(--paper); }
.tbl.edit input.narrow { width: 64px; } .tbl.edit input.mid { width: 100px; }
.tbl.edit details summary { cursor: pointer; font-size: 13px; } .tbl.edit details[open] { padding-bottom: 6px; }
.settings { display: grid; gap: 18px; max-width: 720px; }
.settings fieldset { border: 1px solid var(--line); background: var(--paper); padding: 16px 18px; display: grid; gap: 12px; border-radius: var(--r); }
.settings legend { font: 700 12px var(--sans); text-transform: uppercase; letter-spacing: .06em; padding: 0 6px; }
.settings select, .settings td input { height: 36px; border: 1px solid var(--line); border-radius: var(--r); padding: 0 8px; font: 14px var(--sans); }
.settings label.row { flex-direction: row; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font: 14px var(--sans); color: var(--ink); }
.settings .btn { justify-self: start; }
.filter-in { height: 30px; border: 1px solid var(--line); border-radius: var(--r); padding: 0 10px; font: 13px var(--sans); width: 240px; }
label.small { flex-direction: row; align-items: center; gap: 6px; text-transform: none; letter-spacing: 0; font: 12px var(--sans); color: var(--ink2); }
.cat-tools > select[data-copy] { height: 38px; }
@media (max-width: 1100px) { .conf-wrap, .admin { grid-template-columns: 1fr; } .admin-nav { position: static; flex-direction: row; flex-wrap: wrap; } .kpis { grid-template-columns: repeat(2, 1fr); } }
.or { display: flex; align-items: center; gap: 10px; margin: 22px 0 12px; font: 600 10.5px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--mute); }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.ms-btn { justify-content: center; gap: 10px; margin-bottom: 18px; }
.acts .link.danger { margin: 0 0 0 10px; }

/* ---- v4: MOQ list alignment, grid tools, agent pages ---- */
.checks ul { list-style: none; padding: 0; margin: 8px 0 0; }
.checks li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 5px 0; margin: 0; border-top: 1px solid rgba(0,0,0,.07); }
.checks li .link { text-align: left; font-size: 13px; line-height: 1.35; }
.checks li .mono { white-space: nowrap; }
.checks p { margin: 4px 0 0; }
.grid-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 10px 12px; margin-bottom: 8px; background: var(--fill2); border: 1px solid var(--line); border-radius: var(--r); }
label.inline { flex-direction: row; align-items: center; gap: 8px; }
label.inline input { width: 90px; height: 30px !important; }
.row-tools { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.row-tools .row-units { width: 58px; height: 26px; border: 1px solid var(--line); border-radius: 2px; padding: 0 6px; font: 12px var(--mono); }
.row-tools .link { font-size: 11.5px; }
.ogrid td.cw { align-items: flex-start; }
.ogrid td.cw .sw { width: 36px; height: 44px; flex: none; display: inline-block; }
.ogrid tbody td.sticky-col { min-width: 250px; }
.dr-body { grid-template-columns: 210px 1fr; }
.cell input { width: 44px; }
.invite-form { display: grid; grid-template-columns: 1fr 1.3fr 1.5fr auto; gap: 12px; align-items: end; max-width: 980px; }
.invite-form select { height: 38px; border: 1px solid var(--line); border-radius: var(--r); padding: 0 8px; font: 14px var(--sans); text-transform: none; letter-spacing: 0; color: var(--ink); }
.tbl.edit .w-s { width: 70px; } .tbl.edit .w-m { width: 110px; } .tbl.edit .w-l { min-width: 180px; }
.admin-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
@media (max-width: 760px) { .invite-form { grid-template-columns: 1fr; } }
.preview-bar { position: relative; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 8px 16px; background: var(--warn); color: #fff; font-size: 13px; }
.preview-bar .btn { height: 28px; }
label.row-check { flex-direction: row; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font: 14px var(--sans); color: var(--ink); }

/* ---- v5: collections, size ratio toolbar, accounts admin, order choice ---- */
.fav { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--cg5); cursor: pointer; transition: color .15s, transform .15s; }
.fav svg path { fill: transparent; }
.fav:hover { color: var(--ink); transform: scale(1.06); }
.fav.on { color: var(--ink); } .fav.on svg path { fill: currentColor; }
.fav.mini { position: static; width: 26px; height: 26px; flex: none; }
.cw-wrap { display: flex; align-items: center; gap: 4px; flex: none; }
.fav-btn svg path { fill: transparent; } .fav-btn.on svg path { fill: currentColor; } .fav-btn { gap: 6px; }
.topnav .count { font-size: 11px; background: #fff; color: #000; border-radius: 99px; padding: 0 6px; margin-left: 2px; }
.topnav .count:empty { display: none; }
.grid-tools select { height: 32px; border: 1px solid var(--line); border-radius: var(--r); padding: 0 8px; font: 13px var(--sans); background: var(--paper); text-transform: none; letter-spacing: 0; color: var(--ink); }
.tools-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.row-total { width: 62px; height: 32px; text-align: right; border: 1px solid var(--line); border-radius: 2px; padding: 0 6px; font: 600 14px var(--mono); background: var(--fill2); }
.row-total:focus { outline: none; border-color: var(--ink); background: var(--paper); }
.choice { display: grid; gap: 10px; }
.choice-btn { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); cursor: pointer; font: 14px var(--sans); }
.choice-btn:hover { border-color: var(--ink); } .choice-btn span { color: var(--mute); font-size: 13px; }
.seg .segl { padding: 7px 12px; font: 600 12px var(--sans); text-decoration: none; background: var(--paper); } .seg .segl.on { background: var(--ink); color: #fff; }
.switch-order { margin-top: 6px; } .switch-order select { height: 30px; border: 1px solid var(--line); border-radius: var(--r); font: 13px var(--sans); padding: 0 8px; text-transform: none; letter-spacing: 0; color: var(--ink); }
.scope { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
.acc-group { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 12px; }
.acc-group > summary { display: flex; align-items: baseline; gap: 12px; padding: 12px 16px; cursor: pointer; list-style: none; border-bottom: 1px solid transparent; }
.acc-group[open] > summary { border-bottom-color: var(--line); }
.acc-group > summary::before { content: '▸'; color: var(--mute); } .acc-group[open] > summary::before { content: '▾'; }
.acc-group > summary .mono { background: var(--fill); padding: 1px 8px; border-radius: 99px; font-size: 12px; }
.acc-group .grid-scroll { border: 0; } .acc-group > p { padding: 0 16px 12px; margin: 0; }
.acc-tbl { border: 0; font-size: 13px; } .acc-tbl td { white-space: nowrap; } .acc-tbl td:nth-child(2) { white-space: normal; min-width: 220px; }
.acc-tbl.edit input:not([type=checkbox]), .acc-tbl.edit select { height: 34px; border: 1px solid var(--line); border-radius: 2px; padding: 0 8px; font: 13px var(--sans); background: var(--paper); color: var(--ink); }
.acc-tbl.edit input:focus, .acc-tbl.edit select:focus { outline: none; border-color: var(--ink); }
.acc-tbl .in-name { width: 240px; } .acc-tbl .in-m { width: 120px; } .acc-tbl .in-s { width: 86px; }
.acc-tbl .in-sub { display: block; margin-top: 4px; width: 150px; font-size: 12px !important; height: 28px !important; }
.in-pct { display: inline-flex; align-items: center; gap: 4px; font-family: var(--mono); } .in-pct input { width: 58px; text-align: right; font-family: var(--mono) !important; }
.row-error td { background: var(--badbg) !important; }
.acc-tbl.edit select[data-f="market"] { min-width: 150px; } .acc-tbl.edit select[data-f="scheme"] { min-width: 170px; } .acc-tbl.edit select[data-f="agency"] { min-width: 160px; }
.acc-tbl.edit td { padding: 8px 6px; vertical-align: top; }
/* collection: partially selected styles */
.cw-wrap.dim .cw-chip { opacity: .45; filter: grayscale(.8); }
.cw-wrap.dim .cw-chip:hover { opacity: .8; }
.fav.mini .add-lbl { display: none; }
.cw-wrap.dim .fav.mini { width: auto; border-radius: 99px; padding: 0 8px; gap: 4px; display: inline-flex; align-items: center; color: var(--ink); }
.cw-wrap.dim .fav.mini svg { display: none; } .cw-wrap.dim .fav.mini .add-lbl { display: inline; font: 600 11px var(--sans); }
.coll-note { margin: 0 0 8px; padding: 8px 10px; background: var(--fill2); border-left: 3px solid var(--ink); }
.partial { background: var(--warnbg); color: var(--warn); padding: 0 5px; border-radius: 2px; }
/* per-colourway size ratio */
.tools-title { font: 700 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink2); }
.row-tools .row-run { height: 26px; max-width: 150px; border: 1px solid var(--line); border-radius: 2px; padding: 0 4px; font: 12px var(--sans); background: var(--paper); color: var(--ink); }
.row-total { background: var(--paper); border-color: var(--cg5); }
.row-total::placeholder { color: var(--cg5); font-weight: 400; }
.preview-bar.live { background: var(--bad); }
.preview-bar span { text-align: center; }
.btn-line-inv { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-line-inv:hover { background: rgba(255,255,255,.15); }
.ls-form { max-width: none; } .ls-form select { height: 36px; border: 1px solid var(--line); border-radius: var(--r); padding: 0 8px; font: 14px var(--sans); text-transform: none; letter-spacing: 0; color: var(--ink); }

/* ---- v6: tablet (iPad portrait and landscape, touch) ---- */
html { -webkit-tap-highlight-color: transparent; }
body { touch-action: manipulation; } /* no double-tap zoom delay */
.topnav a { position: relative; } .topnav a.on { color: #fff; }
.topnav a.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; background: #fff; }
.filters-head, .filters-bg, .filters-btn { display: none; }
.login { min-height: 100dvh; } .modal { max-height: 88dvh; }
.foot { padding-bottom: max(22px, env(safe-area-inset-bottom)); }

/* Header: keep the menu and sign-out at every width; drop the less useful bits first. */
@media (max-width: 1240px) {
  .bar1 { gap: 16px; } .mode { display: none; } .me span { display: none; }
  .search { max-width: 300px; min-width: 150px; }
}
@media (max-width: 900px) {
  .bar1 { flex-wrap: wrap; height: auto; padding-block: 10px; row-gap: 10px; }
  .search { order: 5; max-width: none; flex-basis: 100%; }
  .topnav { gap: 16px; overflow-x: auto; scrollbar-width: none; }
  .bar2 .wide-only { display: none; } /* WLP and terms stay on the order review */
}

/* Tablet: only the top bar stays pinned, so the screen is not half header. */
@media (pointer: coarse) and (max-width: 1400px) {
  .top { display: contents; }
  .bar1 { position: sticky; top: 0; z-index: 30; padding-top: max(10px, env(safe-area-inset-top)); }
}

/* Catalogue: filters become a slide-in panel so the range gets the full width. */
@media (max-width: 1100px) {
  .cat { grid-template-columns: 1fr; }
  .filters-btn { display: inline-flex; }
  .filters { position: fixed; z-index: 46; top: 0; left: 0; bottom: 0; width: min(380px, 88vw); max-height: none; padding: 0 20px 30px;
    background: var(--paper); overflow-y: auto; overscroll-behavior: contain; transform: translateX(-102%); visibility: hidden;
    transition: transform .28s var(--ease), visibility 0s .28s; }
  .filters-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 1;
    padding: max(16px, env(safe-area-inset-top)) 0 12px; background: var(--paper); border-bottom: 1px solid var(--ink); }
  .filters-bg { position: fixed; inset: 0; z-index: 45; background: rgba(0,0,0,.4); opacity: 0; pointer-events: none; transition: opacity .25s; display: block; }
  body.filters-open .filters { transform: none; visibility: visible; transition: transform .28s var(--ease); box-shadow: 0 0 40px rgba(0,0,0,.25); } body.filters-open .filters-bg { opacity: 1; pointer-events: auto; }
  body.filters-open { overflow: hidden; }
  .tiles { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
  .admin-nav { position: static; }
}

/* Style drawer: full width, gallery beside the facts on top, grid gets the whole width. */
@media (max-width: 1100px) {
  .drawer { width: 100vw; }
  .dr-head { padding: max(16px, env(safe-area-inset-top)) 20px 12px; }
  .dr-head h2 { font-size: 22px; }
  .dr-body { grid-template-columns: 1fr; padding: 16px 20px; gap: 16px; }
  .dr-gallery { display: grid; grid-template-columns: 150px 1fr; gap: 6px 18px; align-items: start; }
  .dr-gallery .hero-img { grid-row: 1 / span 4; }
  .dr-gallery .facts { margin: 0; }
  .dr-bar { padding: 12px 20px max(12px, env(safe-area-inset-bottom)); }
  .ogrid tbody td.sticky-col { min-width: 210px; }
}

/* Touch: finger-sized targets (44px), 16px inputs so iOS does not zoom, no hover-only controls. */
@media (pointer: coarse) {
  .btn { height: 44px; padding: 0 18px; font-size: 14px; }
  .btn-sm { height: 40px; padding: 0 14px; font-size: 13px; }
  .preview-bar .btn { height: 36px; }
  .x { width: 44px; height: 44px; }
  .link { padding: 8px 2px; }
  .topnav a, .bar3 a { padding-block: 12px; } .bar3 a { padding-inline: 12px; }
  .topnav a.on::after { bottom: 2px; }
  .search input { height: 42px; font-size: 16px; }
  input, select, textarea { font-size: 16px !important; }
  label input:not([type=checkbox]), .settings select, .invite-form select, .ls-form select, .cat-tools select, .grid-tools select, .switch-order select,
  .tbl.edit input:not([type=checkbox]), .tbl.edit select, .acc-tbl.edit input:not([type=checkbox]), .acc-tbl.edit select, .filter-in, .acct select { height: 44px !important; }
  input[type=checkbox] { width: 22px; height: 22px; }
  .fv { min-height: 44px; padding: 4px 0; font-size: 15px; } .fv em { font-size: 13px; }
  .facet summary { padding: 12px 0; font-size: 13px; }
  .fchip, .chip, .tabbar.pill a { padding: 10px 14px; font-size: 14px; }
  .seg button, .seg .segl { padding: 0 16px; height: 40px; font-size: 13px; }
  .tabbar button { padding: 14px 16px; font-size: 14px; }
  .admin-nav a { padding: 12px 14px; }
  .tbl td, .tbl th { padding-block: 12px; }
  .tile-btn { opacity: 1; transform: none; position: static; margin: 0 12px 12px; } .tile-body { padding-bottom: 10px; }
  .tile:hover { box-shadow: none; border-color: var(--line); } .drop:hover { transform: none; }
  .tile-img img { -webkit-touch-callout: none; }
  .fav { width: 44px; height: 44px; } .fav.mini { width: 40px; height: 40px; }
  .cw-chip { padding: 6px 12px 6px 6px; } .cw-chip img, .cw-chip .noimg { width: 44px; height: 44px; }
  .cw-chip b { font-size: 13px; }
  /* Order grid */
  .cell { padding: 4px !important; }
  .cell input { width: 54px; height: 46px; font-size: 17px !important; }
  .row-total { width: 72px; height: 46px; }
  .row-tools { flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; }
  .row-tools .row-run { height: 40px; max-width: 180px; }
  .row-tools .link { font-size: 13px; padding: 10px 2px; }
  label.inline input { width: 100px; height: 44px !important; }
  .grid-tools { padding: 12px; gap: 12px 16px; }
  .hint { font-size: 12.5px; }
  .choice-btn { padding: 18px; }
  .checks li .link { padding: 6px 0; font-size: 14px; }
}
/* Grid items may shrink below their content; wide tables scroll inside their own box. */
.admin > *, .review > *, .conf-wrap > *, .cat > section { min-width: 0; }
@media (max-width: 1100px) { .invite-form { grid-template-columns: 1fr 1fr; } .invite-form > :last-child { justify-self: start; } }
@media (max-width: 760px) { .invite-form { grid-template-columns: 1fr; } }
.tbl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }

/* ---- v7: upload wizard (destination, file, match columns) ---- */
.modal.modal-wide { width: min(880px, 100%); }
.wiz { display: flex; flex-direction: column; gap: 16px; }
.wiz-head h3 { text-transform: none; letter-spacing: 0; font-size: 18px; margin: 4px 0 2px; }
.wiz-step { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--mute); }
.wiz .choice { grid-template-columns: 1fr 1fr; align-items: stretch; }
.wiz .choice-btn { gap: 8px; cursor: pointer; }
.wiz .choice-btn.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.wiz .choice-btn.off { opacity: .5; cursor: not-allowed; }
.wiz .choice-btn input[type=radio] { accent-color: #000; margin: 0; }
.wiz-field { display: flex; flex-direction: column; gap: 4px; font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--mute) !important; }
.wiz-field input, .wiz-field select, .wiz-grid select, .map-tbl select { height: 38px; border: 1px solid var(--line); border-radius: var(--r); padding: 0 8px; font: 14px var(--sans); color: var(--ink); background: var(--paper); text-transform: none; letter-spacing: 0; width: 100%; }
.wiz-modes { display: grid; gap: 8px; font-size: 13px; color: var(--ink2) !important; }
.wiz-modes .row-check { align-items: flex-start; font-size: 13px; }
.wiz-modes input { margin-top: 3px !important; }
.warn-text { color: var(--warn) !important; }
.wiz-info { background: var(--fill2); border-left: 3px solid var(--ink); padding: 12px 14px; font-size: 13px; }
.wiz-info ul { margin: 6px 0; padding-left: 18px; } .wiz-info li { margin: 3px 0; } .wiz-info p { margin: 6px 0 0; }
.wiz-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; }
.wiz-foot .tools-right { gap: 14px; }
.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 150px; padding: 20px; text-align: center; cursor: pointer;
  border: 1.5px dashed var(--cg5); border-radius: var(--r); background: var(--fill2); text-transform: none; letter-spacing: 0; font: 14px var(--sans); color: var(--ink); transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.over { border-color: var(--ink); background: var(--paper); }
.dropzone.has { border-style: solid; border-color: var(--ink); background: var(--paper); min-height: 90px; }
.wiz-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.wiz-layout { align-self: flex-start; }
.wiz-layout button:disabled { opacity: .4; cursor: not-allowed; }
.map-tbl td { vertical-align: top; } .map-tbl td:first-child { width: 36%; } .map-tbl td:nth-child(2) { width: 24px; padding-top: 18px; }
.map-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 5px; min-height: 18px; }
.wiz-check ul { list-style: none; padding: 0; margin: 6px 0 0; }
.wiz-check li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-top: 1px solid rgba(0,0,0,.07); }
.wiz-check p { margin: 6px 0 0; }
@media (max-width: 760px) { .wiz .choice { grid-template-columns: 1fr; } .map-tbl td:first-child { width: auto; } }
@media (pointer: coarse) { .wiz-field input, .wiz-field select, .wiz-grid select, .map-tbl select { height: 44px; font-size: 16px; } .dropzone { min-height: 170px; } }
label.choice-btn, .wiz label.row-check { text-transform: none; letter-spacing: 0; font: 14px/1.4 var(--sans); color: var(--ink); }
label.choice-btn > span:not(.wiz-field):not(.row-check) { color: var(--mute); font-size: 13px; }
.wiz-grid label { font: 600 11px var(--mono); }

/* ---- v8: image gallery (style window), full-screen viewer, tile hover ---- */
@media (min-width: 1101px) { .dr-body { grid-template-columns: 330px 1fr; } }
.gal { display: grid; gap: 8px; }
.gal.multi { grid-template-columns: 54px 1fr; }
.gal-rail { display: flex; flex-direction: column; gap: 6px; max-height: 345px; overflow-y: auto; scrollbar-width: none; overscroll-behavior: contain; }
.gal-rail::-webkit-scrollbar { display: none; }
.gal-th { flex: none; width: 54px; aspect-ratio: 4 / 5; padding: 0; border: 1px solid var(--line); background: var(--fill2); border-radius: 2px; cursor: pointer; overflow: hidden; opacity: .62; transition: opacity .15s, border-color .15s; }
.gal-th img, .gal-th .noimg { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.gal-th:hover { opacity: 1; } .gal-th.on { opacity: 1; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.gal-main { position: relative; min-width: 0; }
.gal-main .hero-img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; display: block; background: var(--fill2); cursor: zoom-in; }
.gal-arrow { position: absolute; top: 50%; width: 38px; height: 38px; margin-top: -19px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--ink); cursor: pointer; opacity: 0; transition: opacity .15s; }
.gal-arrow.l { left: 8px; } .gal-arrow.r { right: 8px; }
.gal-main:hover .gal-arrow, .gal-arrow:focus-visible { opacity: 1; }
.gal-count { position: absolute; left: 8px; bottom: 8px; background: rgba(0,0,0,.72); color: #fff; padding: 2px 8px; border-radius: 99px; font-size: 11px; }
.gal-hint { position: absolute; right: 8px; bottom: 8px; background: rgba(255,255,255,.9); padding: 2px 8px; border-radius: 99px; font-size: 11px; opacity: 0; transition: opacity .15s; pointer-events: none; }
.gal-main:hover .gal-hint { opacity: 1; }
.cw-chip { cursor: pointer; } .cw-chip.sel { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.tile-alt { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity .25s var(--ease); pointer-events: none; }
@media (hover: hover) { .tile:hover .tile-alt { opacity: 1; } }
@media (pointer: coarse) {
  .gal-arrow { opacity: 1; width: 44px; height: 44px; margin-top: -22px; }
  .gal-hint { display: none; }
  .gal-th { width: 60px; }
}
@media (max-width: 1100px) {
  .dr-gallery { grid-template-columns: 270px 1fr; }
  .dr-gallery [data-gallery] { grid-row: 1 / span 4; }
  .gal.multi { grid-template-columns: 1fr; }
  .gal-rail { order: 2; flex-direction: row; max-height: none; overflow-x: auto; overflow-y: hidden; }
}
@media (max-width: 640px) { .dr-gallery { grid-template-columns: 1fr; } .dr-gallery [data-gallery] { grid-row: auto; } }

.lightbox { position: fixed; inset: 0; z-index: 90; display: grid; grid-template-rows: auto 1fr auto; background: rgba(8,8,8,.96); color: #fff; animation: rise .2s var(--ease) both; }
.lb-top { display: flex; align-items: center; gap: 16px; padding: max(12px, env(safe-area-inset-top)) 18px 10px; }
.lb-top .small { color: #aaa; margin-right: auto; }
.lb-x { background: transparent; color: #fff; border-color: #444; }
.lb-stage { display: grid; place-items: center; min-height: 0; overflow: hidden; padding: 0 70px; }
.lb-stage img { max-width: 100%; max-height: calc(100vh - 170px); max-height: calc(100dvh - 170px); object-fit: contain; cursor: zoom-in; background: #fff; }
.lb-stage.zoom { display: block; overflow: auto; padding: 0; overscroll-behavior: contain; }
.lb-stage.zoom img { max-width: none; max-height: none; width: min(220vw, 2230px); cursor: zoom-out; }
.lb-arrow { opacity: 1; position: fixed; background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.3); }
.lb-arrow.l { left: 16px; } .lb-arrow.r { right: 16px; }
.lb-strip { display: flex; gap: 6px; justify-content: center; padding: 10px 16px max(14px, env(safe-area-inset-bottom)); overflow-x: auto; }
.lb-strip .gal-th { width: 46px; border-color: #333; background: #222; }
.lb-strip .gal-th.on { border-color: #fff; box-shadow: inset 0 0 0 1px #fff; }
@media (max-width: 760px) { .lb-stage { padding: 0 8px; } .lb-arrow { top: auto; bottom: 90px; } }

/* ---- v8: Admin > Images ---- */
.img-kpis { grid-template-columns: repeat(5, 1fr); }
.img-kpis a { background: var(--paper); border: 1px solid var(--line); padding: 12px 14px; border-radius: var(--r); display: flex; flex-direction: column; gap: 4px; text-decoration: none; }
.img-kpis a span { font: 600 10.5px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--mute); }
.img-kpis a b { font-size: 24px; font-weight: 500; }
.img-kpis a:hover, .img-kpis a.on { border-color: var(--ink); } .img-kpis a.on { box-shadow: inset 0 0 0 1px var(--ink); }
@media (max-width: 1100px) { .img-kpis { grid-template-columns: repeat(3, 1fr); } }
.filmstrip { display: flex; gap: 4px; align-items: center; }
.filmstrip img, .filmstrip .noimg { width: 34px; height: 42px; object-fit: cover; object-position: top; background: var(--fill2); border: 1px solid var(--line); border-radius: 2px; }
.filmstrip img.main { border-color: var(--ink); }
.filmstrip em { font: normal 11px var(--mono); color: var(--mute); }
.img-tbl td { vertical-align: middle; }
.img-det { border: 1px solid var(--line); background: var(--paper); padding: 8px 12px; border-radius: var(--r); margin-top: 8px; }
.img-det summary { cursor: pointer; font-size: 13px; }
.img-det .small.mono { line-height: 1.7; max-height: 220px; overflow: auto; }
.imged { display: flex; flex-direction: column; gap: 12px; }
.ed-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.ed-card { border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); display: flex; flex-direction: column; cursor: grab; transition: border-color .15s, opacity .15s; }
.ed-card.main { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.ed-card.dragging { opacity: .4; } .ed-card.drop-before { box-shadow: -4px 0 0 var(--ink); }
.ed-img { position: relative; aspect-ratio: 4 / 5; background: var(--fill2); overflow: hidden; }
.ed-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; pointer-events: none; }
.ed-main, .ed-no, .ed-from { position: absolute; top: 6px; } .ed-main, .ed-no { left: 6px; } .ed-from { right: 6px; font-size: 9px; }
.ed-no { background: rgba(255,255,255,.92); padding: 0 6px; border-radius: 99px; font-size: 11px; }
.ed-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 6px; }
.ed-tools select { width: 100%; height: 30px; border: 1px solid var(--line); border-radius: 2px; font: 12px var(--sans); background: var(--paper); }
.ed-btn { width: 30px; height: 30px; border: 1px solid var(--line); background: var(--paper); border-radius: 2px; cursor: pointer; }
.ed-btn:disabled { opacity: .3; cursor: default; }
.ed-grid.pool .ed-card { opacity: .7; cursor: default; }
.ed-h { margin-top: 6px; }
.ed-old { display: flex; gap: 12px; align-items: center; padding: 10px; background: var(--fill2); border-radius: var(--r); }
@media (pointer: coarse) { .ed-btn { width: 44px; height: 44px; } .ed-tools select { height: 44px; } .ed-card { cursor: default; } }
.ed-add { border: 1px dashed var(--cg5); border-radius: var(--r); padding: 10px 12px; }
.ed-add .ed-h { margin: 0 0 4px; }
.ed-add-row { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-top: 8px; }
.btn-danger { background: var(--bad); border-color: var(--bad); color: #fff; } .btn-danger:hover { background: #8a2626; }
.danger-zone fieldset { border-color: var(--bad); }

/* ---- v9: admin overview, demand, agencies ---- */
.seg-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 14px 0; }
.seg-card { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; transition: border-color .15s; }
.seg-card:hover { border-color: var(--ink); } .seg-card.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.seg-card h3 { margin: 0; text-transform: none; letter-spacing: 0; font-size: 16px; }
.seg-owner { font-weight: 500; color: var(--mute); font-stretch: 100%; }
.seg-row { display: flex; align-items: baseline; gap: 8px; } .seg-row b { font-size: 26px; font-weight: 500; } .seg-row span { color: var(--mute); font-size: 13px; }
.seg-card .mini-bar { width: 100%; }
.seg-card dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 4px 0 0; font-size: 13px; }
.seg-card dt { color: var(--mute); } .seg-card dd { margin: 0; text-align: right; }
.kpis .mini-bar { width: 100%; margin-top: 4px; }
.attention { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.attention > * { padding: 8px 12px; border: 1px solid var(--line); background: var(--paper); border-radius: 99px; text-decoration: none; font-size: 13px; }
.attention > a:hover { border-color: var(--ink); }
.attention .warn { background: var(--warnbg); border-color: transparent; color: var(--warn); }
.grp-row td { background: var(--fill2); font-weight: 700; font-stretch: 108%; border-top: 1px solid var(--line); }
.acc-group > summary { flex-wrap: wrap; }
.dm-filters label.inline { font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--mute); }
.dm-filters select { height: 34px; border: 1px solid var(--line); border-radius: var(--r); padding: 0 8px; font: 13px var(--sans); background: var(--paper); text-transform: none; letter-spacing: 0; color: var(--ink); }
.dm-share { display: inline-flex; align-items: center; gap: 8px; } .dm-share .mini-bar { width: 140px; margin: 0; }
.acc-tbl td .mini-bar { margin-top: 4px; }
.ag-sum td { vertical-align: top; } .ag-sum .mini-bar { width: 120px; margin-top: 4px; }
.ag-manage { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--fill2); }
.ag-manage label.inline { font: 600 11px var(--mono); text-transform: uppercase; color: var(--mute); }
.ag-manage input.filter-in { text-transform: none; }

/* ---- v10: presentation mode (wholesale figures hidden, RRP shown) ---- */
body.present .ws { display: none !important; }
.present-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 1px solid #444; border-radius: var(--r); background: transparent; color: #ddd; font: 600 12px var(--sans); cursor: pointer; white-space: nowrap; }
.present-btn:hover { border-color: #fff; color: #fff; }
.present-btn.on { background: var(--warn); border-color: var(--warn); color: #fff; }
body.present .bar1 { box-shadow: inset 0 -3px 0 var(--warn); }
@media (max-width: 1240px) { .present-btn span { display: none; } .present-btn.on span { display: inline; } }
@media (pointer: coarse) { .present-btn { height: 44px; padding: 0 14px; } }
.topnav a { white-space: nowrap; }
.region-pick { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; max-width: 360px; }
