/* The portal's design tokens and component styles (DESIGN.md, PORTAL_BRIEF.md section 6). Every page extends
   base_design.html, which links this file; the old style.css and base.html are gone (redesign MR 10).

   Every class starts with ds-. Each colour, spacing and radius is a token in :root, and the rules after it use only
   the tokens (tests/test_tokens_only.py). The spacing scale is --ds-s1 to --ds-s7 (4, 8, 12, 16, 24, 32, 40 px);
   the few component sizes beside it (a card's padding, a table cell's, the History gap) are tokens of their own. */

/* Visual style adapted from Venture - CRM Dashboard UI kit by Dhuhacreative (Figma Community), CC BY 4.0 (#485).
   The typeface is Roboto (owner, 2026-11-12, audit v2 MR 2, replacing Venture's Inter), hosted here (OFL-Roboto.txt;
   Google Fonts' variable Roboto v51, wght 100-900). Two files, split as Google Fonts serves them: Latin (Æ Ø Å are in it) and
   Latin Extended, which a browser only fetches for a letter that needs it. */
@font-face{font-family:"Roboto";src:url("fonts/Roboto-Variable-v51-latin.woff2") format("woff2");font-weight:100 900;font-style:normal;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Roboto";src:url("fonts/Roboto-Variable-v51-latin-ext.woff2") format("woff2");font-weight:100 900;font-style:normal;font-display:swap;unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}

:root{--ds-food-cell-y:3px;--ds-food-input-y:2px;--ds-food-copy-lift:-92px;
  /* Colour (the redesign, STEP6-8 section 7.1; owner-approved mockup v4, 13 Nov 2026): a dark navy sidebar, a slim white
     top bar, a cool grey work area with white cards. Each colour has one role. The tights.no yellow is only the one main
     button and the logo. */
  --ds-bg:#FFFFFF; --ds-page:#F4F6F8; --ds-ink:#1A1F26; --ds-ink-2:#5E6875; --ds-ink-3:#3A4350;
  --ds-line:#E3E7EC; --ds-line-2:#EEF1F4; --ds-border-strong:#C9D0D8; --ds-table-head:#FAFBFC; --ds-group-head:#F8F9FB;
  /* Row hover is grey (owner 13 Nov 2026, replacing #571's pale yellow); a selected row adds a 2 px navy rule. A table
     row hovers in --ds-row-hover, a step darker than its stripe so it shows on a striped row too (owner, 20 Nov 2026). */
  --ds-hover:#F7F9FB; --ds-selected:#EEF2F7; --ds-stripe-row:#F1F3F6; --ds-row-hover:#E3E9F2;
  /* On a hovered row the orange and green tag words are a shade darker, so they keep 4.5:1 on --ds-row-hover. */
  --ds-tag-action-fg-hover:#A54D1A; --ds-tag-done-fg-hover:#1E763D;
  /* The sidebar: navy, its labels light grey, the open row white on a lighter band with a 3 px white rule. */
  --ds-select-chevron:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236A6A6A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");   /* every select's one chevron (FINAL5 OWN-33 c) */
  --ds-nav:#17202E; --ds-nav-ink:#B8C2CF; --ds-nav-ink-strong:#FFFFFF; --ds-nav-muted:#8792A0;
  --ds-nav-line:rgba(255,255,255,.08); --ds-nav-hover:rgba(255,255,255,.06); --ds-nav-active:rgba(255,255,255,.10);
  /* Badges (section 7.5): attention white on navy, neutral and the open row's translucent white; on white the bell's grey. */
  --ds-badge-attn-bg:#FFFFFF; --ds-badge-neutral-bg:rgba(255,255,255,.16); --ds-badge-active-bg:rgba(255,255,255,.24); --ds-badge-light-bg:#EEF1F4;
  --ds-primary:#FFC20E; --ds-primary-hover:#E6AC00; --ds-primary-press:#CC9900; --ds-error-press:#7A1A14;   /* a pressed button (item 2) */ --ds-on-primary:#000000;
  --ds-error:#B42318; --ds-error-hover:#912018; --ds-error-bg:#FCE9E9; --ds-error-line:#F2C4C1; --ds-confirm:#1F7A3F; --ds-on-confirm:#FFFFFF; --ds-on-ink:#FFFFFF;   /* text and marks on ink, navy or red */ --ds-info:#3555C9;
  /* Statuses, always with a word: a dot and coloured text, no box. The colour follows the viewer (DESIGN.md). The dot
     is decoration beside the word, so only the text needs 4.5:1. */
  --ds-tag-action-fg:#B0521C; --ds-tag-action-bg:#FDEEE4; --ds-tag-action-dot:#F07A2E;
  --ds-tag-done-fg:#1F7A3F; --ds-tag-done-dot:#2DB35F; --ds-tag-done-bg:#E6F4EA;
  --ds-tag-info-fg:#3555C9; --ds-tag-info-dot:#5B7BF0; --ds-tag-info-bg:#EBF0FE;
  --ds-tag-neutral-fg:#5A5A5A; --ds-tag-neutral-dot:#A3A3A3; --ds-tag-neutral-bg:#F2F2F2;
  /* Category pills: one grey for every category (owner Q4); orange means only "act". */
  --ds-pill-bg:#E6EAEF; --ds-pill-fg:#3A4350;
  /* The calendar's supplier tint 3 (identity, not meaning). */
  --ds-highlight:#FBF3DC;
  /* Loading states (owner, 18 Nov 2026): the yellow page and table bar on its pale track, the placeholder rows' grey and
     shine, the light sweep over dimmed results, a dark arc's track inside a button. */
  --ds-progress-track:rgba(255,194,14,.25); --ds-skeleton:#E9EDF1; --ds-skeleton-shine:#F8F9FB;
  --ds-sweep:rgba(255,255,255,.6); --ds-spinner-track-dark:rgba(0,0,0,.18);
  /* Type (section 7.2): few sizes, one role each. */
  --ds-fs-label:11px; --ds-fs-card:15px;   /* Home's count (owner, 16 Nov 2026, FINAL5 OWN-20); a card title is 14 px (--ds-fs-body, owner 21 Nov 2026) */
  --ds-fs-meta:12px; --ds-fs-small:13px; --ds-fs-body:14px; --ds-fs-question:18px;
  --ds-fs-title:26px; --ds-fs-input-phone:16px;   /* a field below 768 px: 16 px, so iOS does not zoom into it */
  --ds-fs-metric:30px; --ds-fs-badge:11px; --ds-fs-group:16px;   /* a group's heading row in a table (owner, 2 Dec 2026) */
  --ds-head-caps:.02em;   /* the month grid's weekday heads: a touch of tracking on 11 px semibold */
  /* Spacing: the scale is --ds-s1 to --ds-s7; a component's own padding is a token of its own below. */
  --ds-cell-side:6px;     /* a table cell's sides from 768 to 1439 px (owner, 2026-11-07, #680) */
  --ds-s1:4px; --ds-s2:8px; --ds-s3:12px; --ds-s4:16px; --ds-s5:24px; --ds-s6:32px; --ds-s7:40px;
  /* A card's padding (12 px top and bottom, 16 px at the sides), its title (14 px above, 10 px below) and the space
     between cards and blocks (16 px, owner 13 Nov 2026). */
  --ds-card-y:12px; --ds-card-x:16px; --ds-band:44px; --ds-title-top:14px; --ds-title-bottom:10px; --ds-block:16px; --ds-badge-x:5px;
  /* Shape: one 6 px radius on every card, button, input, menu and tag; badges fully round. Cards lift with a hairline
     ring and a short shadow instead of a border. */
  --ds-r:6px; --ds-r-pill:999px; --ds-r-check:4px;
  --ds-elev:0 0 0 1px rgba(16,24,40,.08),0 1px 2px rgba(16,24,40,.05);
  /* The signed-out pages (sign-in look F1, owner 21 Nov 2026): a softer card on a page with three soft glows. */
  --ds-r-sign:18px; --ds-elev-sign:0 18px 40px rgba(23,32,46,.12);
  --ds-sign-page:#F6F8FB; --ds-sign-glow-1:#FFE9A3; --ds-sign-glow-2:#C9D6EA; --ds-sign-glow-3:#FFF3C4;
  /* What floats above the page (menus, dialogs, the idle warning): the card's ring and a soft drop below it. */
  --ds-overlay:0 0 0 1px rgba(16,24,40,.08),0 8px 24px rgba(16,24,40,.12); --ds-scrim:rgba(16,24,40,.4);
  /* The photo lightbox (item 6): a dark scrim, its round buttons and counter light on it. */
  --ds-lightbox-scrim:rgba(16,24,40,.85); --ds-lightbox-button:rgba(255,255,255,.16); --ds-lightbox-button-hover:rgba(255,255,255,.28); --ds-lightbox-count:rgba(0,0,0,.6);
  /* Density: 44 px tap targets below 1024 px; from 1024 px controls, buttons and fields 36 px, a row's button 28 px. */
  --ds-control:44px; --ds-button:44px; --ds-input:44px; --ds-control-sm:28px; --ds-cell-line:24px; --ds-cell-y:8px; --ds-cell-x:8px; --ds-field-max:480px; --ds-sidebar:248px; --ds-topbar:56px; --ds-gutter:0px;
  --ds-font:"Roboto",system-ui,sans-serif;
  /* Column widths by type (item 9, from Draft products at 1440 px): a short column is its token wide, or its content when wider. */
  --ds-col-sku:120px; --ds-col-status:120px; --ds-col-date:104px; --ds-col-number:72px; --ds-col-price:96px;
  --ds-wide:none;          /* full width (owner, 2026-10-21) */ --ds-flow:680px; --ds-side:330px; --ds-history:330px; /* one right column, Home and History (owner, 16 Nov 2026, FINAL5 OWN-7: 1.5x the 220 px of #737) */ --ds-history-gap:6px; --ds-label-col:200px; /* a key-value row's label column (owner, 16 Nov 2026, FINAL5 OWN-15) */ /* 6 px between History entries: owner, 2026-11-11 (#737) */
}
/* Buttons as tall as fields (#506, owner O5), so a button beside a field lines up with it. */
@media (min-width:1024px){:root{--ds-control:36px; --ds-button:36px; --ds-input:36px}}

.ds-root,.ds-root *{box-sizing:border-box}
.ds-root{margin:0;background:var(--ds-page);color:var(--ds-ink);font:400 var(--ds-fs-body)/1.5 var(--ds-font);-webkit-text-size-adjust:100%}
/* Controls take the page's font too (audit v2 UI-07: the Builder's controls fell back to the browser's Arial 13.33 px). */
.ds-root :is(button,input,select,textarea){font-family:var(--ds-font)}
/* Even figures only where numbers line up (owner 2026-10-25): a tabular hyphen is as wide as a digit, so
   "6-digit" and "PO-01590A" read with gaps anywhere else. */
.ds-root :is(.ds-num,.ds-count,.ds-summary-card__value,.ds-progress,input){font-variant-numeric:tabular-nums}
.ds-root a{color:inherit;text-underline-offset:3px}
.ds-root p{margin:0}
.ds-root h1,.ds-root h2,.ds-root h3{margin:0;font-weight:500}
.ds-root h1{font-size:var(--ds-fs-title);line-height:34px;overflow-wrap:anywhere}
.ds-root :is(h2,h3){overflow-wrap:anywhere}   /* a long product name in a heading wraps, never widens the page (audit v2 UI-11) */
.ds-root h2{font-size:var(--ds-fs-question);line-height:24px}
.ds-root h3{font-size:var(--ds-fs-body);line-height:24px;font-weight:600}
/* No lonely last word (owner 2026-10-25): headings balance their lines, running text avoids a one-word last line.
   Browsers without text-wrap ignore it. Table cells are left out of text-wrap: pretty, which wrapped a date in a
   list that fits. */
.ds-root :is(h1,h2,h3){text-wrap:balance}
.ds-root :is(p,li,dd,.ds-hint,.ds-note,.ds-radio-card__hint,.ds-error){text-wrap:pretty}
/* The same for card titles, h4, help text, empty states and toasts (owner, 16 Nov 2026, copy MR (b)). The longhand
   text-wrap-style changes only how lines break, so a white-space: nowrap rule still keeps its text on one line.
   Table cells stay out, as above; ui.keep_together (the nobreak filter) binds one-letter words in page text. */
.ds-root :is(h4,.ds-card__title){text-wrap-style:balance}
.ds-root :is(.ds-secondary-text,.ds-empty,.ds-toast,.ds-page-meta,.ds-radio-card__hint){text-wrap-style:pretty}
.ds-visually-hidden[data-ds-announce]{position:fixed!important;top:0;left:0}   /* the live region at the page's end adds no height */
.ds-visually-hidden{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.ds-secondary-text{color:var(--ds-ink-2);font-size:var(--ds-fs-small)}
/* A count still owed (the order page's Not yet delivered, owner 21 Nov 2026): red once late, grey at 0. */
.ds-num--missing{color:var(--ds-error)}
.ds-num--none{color:var(--ds-ink-2)}

/* Focus: a 2 px ink ring, 2 px off. */
.ds-root :focus-visible{outline:2px solid var(--ds-ink);outline-offset:2px}

/* Skip link and shell. */
.ds-skip{position:absolute;left:var(--ds-s4);top:-100px;z-index:30;padding:var(--ds-s3) var(--ds-s4);background:var(--ds-bg);border:1px solid var(--ds-ink);border-radius:var(--ds-r);font-weight:500}
.ds-skip:focus{top:var(--ds-s2)}
.ds-main{display:block;width:100%;max-width:var(--ds-wide);margin:0 auto;padding:var(--ds-s5) var(--ds-s6);background:var(--ds-page)}
.ds-main--flow{max-width:var(--ds-flow)}
/* In the frame a flow keeps the whole white page; only its column is 680 px (#484). */
.ds-main--flow.ds-main--side{max-width:none}
.ds-main--flow.ds-main--side>*{max-width:var(--ds-flow)}
.ds-main:focus{outline:none}
@media (max-width:767.98px){.ds-main{padding:var(--ds-s4)}}

/* Top navigation. */
.ds-top{border-bottom:1px solid var(--ds-line);background:var(--ds-bg)}
.ds-top__bar{display:flex;flex-wrap:wrap;align-items:center;gap:var(--ds-s2) var(--ds-s4);max-width:var(--ds-wide);margin:0 auto;padding:0 var(--ds-s6)}
.ds-brand{display:flex;align-items:center;gap:var(--ds-s2);min-height:var(--ds-control);text-decoration:none}
.ds-brand img{display:block;width:104px;height:auto}
.ds-menu{display:flex;flex:1;flex-wrap:wrap;align-items:center;gap:var(--ds-s2) var(--ds-s4)}
.ds-menu nav{flex:1}
.ds-menu ul{display:flex;flex-wrap:wrap;gap:0 var(--ds-s3);margin:0;padding:0;list-style:none}
.ds-menu nav a{display:flex;align-items:center;min-height:56px;padding:0 var(--ds-s1);border-bottom:2px solid transparent;font-size:var(--ds-fs-body);white-space:nowrap;text-decoration:none}
.ds-menu nav a[aria-current="page"]{font-weight:500;border-bottom-color:var(--ds-ink)}
.ds-menu nav a:hover{border-bottom-color:var(--ds-line)}
.ds-menu nav a[aria-current="page"]:hover{border-bottom-color:var(--ds-ink)}
.ds-top__right{display:flex;align-items:center;gap:var(--ds-s4);font-size:var(--ds-fs-body);color:var(--ds-ink-2)}
.ds-avatar{display:inline-flex;align-items:center;justify-content:center;width:var(--ds-control);height:var(--ds-control);border-radius:50%;background:var(--ds-line-2);color:var(--ds-ink);font-size:var(--ds-fs-body);font-weight:500;text-decoration:none}
.ds-menu-button{display:none;align-items:center;min-height:var(--ds-control);min-width:var(--ds-control);margin-left:auto;padding:0 var(--ds-s4);border:1px solid var(--ds-ink);border-radius:var(--ds-r);background:var(--ds-bg);color:var(--ds-ink);font:500 var(--ds-fs-body) var(--ds-font);cursor:pointer}
@media (max-width:1023.98px){
  .ds-top:not(.ds-top--side) .ds-top__bar{padding:var(--ds-s2) var(--ds-s4)}
  .ds-js .ds-top:not(.ds-top--side) .ds-menu-button{display:inline-flex}
  .ds-js .ds-top:not(.ds-top--side,.ds-top--bare) .ds-menu{display:none;flex-basis:100%}
  .ds-js .ds-top:not(.ds-top--side,.ds-top--bare)[data-open] .ds-menu{display:block}
  .ds-top:not(.ds-top--side) :is(nav,ul){display:block}
  .ds-top:not(.ds-top--side) .ds-menu nav a{min-height:var(--ds-control);border-bottom:1px solid var(--ds-line);border-left:3px solid transparent;padding:0 var(--ds-s3)}
  .ds-top:not(.ds-top--side) .ds-menu nav a[aria-current="page"]{border-bottom-color:var(--ds-line);border-left-color:var(--ds-ink)}
  .ds-top:not(.ds-top--side) .ds-top__right{padding:var(--ds-s4) 0;flex-wrap:wrap}
}

/* The page frame, full-bleed (#499, owner D3; the redesign, 13 Nov 2026): the 248 px navy sidebar flush left and full height,
   a 56 px white top bar with a line under it (search left, help and account right), and the grey work area. No
   outer margin (the gutter is 0; the mockup's margin was its presentation frame). Below 768 px: a slim bar with the Menu
   button, the menu a sheet over a backdrop. */
.ds-top--side{position:fixed;top:var(--ds-gutter);bottom:var(--ds-gutter);left:var(--ds-gutter);z-index:20;display:flex;flex-direction:column;width:var(--ds-sidebar);overflow-y:auto;border:0;background:var(--ds-nav);color:var(--ds-nav-ink)}
/* On the navy the focus ring is white (section 7.3). */
.ds-top--side :focus-visible{outline-color:var(--ds-nav-ink-strong)}
.ds-top--side .ds-actions__list :focus-visible{outline-color:var(--ds-ink)}
.ds-top--side .ds-top__bar{flex:1;flex-direction:column;flex-wrap:nowrap;align-items:stretch;gap:0;max-width:none;margin:0;padding:0}
.ds-top--side .ds-brand{padding:var(--ds-s3) var(--ds-s5);border-bottom:1px solid var(--ds-nav-line)}
/* Venture's collapse chevron: a small grey square on the sidebar's line, level with the logo. */
.ds-collapse{display:none}
/* The plain yellow tights.no logo on the navy (mockup v4); a logo is exempt from the contrast rule. */
.ds-top--side .ds-brand img{width:112px;height:auto}
.ds-top--side .ds-menu{flex:1;flex-direction:column;flex-wrap:nowrap;align-items:stretch;gap:var(--ds-s2);padding:var(--ds-s4)}
.ds-top--side .ds-menu ul{display:grid;align-content:start;gap:var(--ds-s1)}
/* A group label ("Database"): a line above, small and muted, in sentence case. */
.ds-top--side .ds-menu li.ds-menu__group{margin:var(--ds-s4) calc(-1 * var(--ds-s4)) 0;padding:var(--ds-s5) var(--ds-s5) var(--ds-s2);border-top:1px solid var(--ds-nav-line);color:var(--ds-nav-muted);font-size:var(--ds-fs-label);font-weight:600}
.ds-top--side .ds-menu li.ds-menu__group:empty{padding:0 0 var(--ds-s4)}
.ds-nav-icon{flex:none}
/* Tabler at 1.5 px beside 400 text (section 7.4): the stroke the icons draw at, from currentColor. */
.ds-root svg.ds-icon{stroke-width:1.5}
/* The Privacy and Terms and conditions links: small and grey at the foot of the sidebar (A11.5, owner 18 Nov 2026),
   the version under them in their size (#513; owner, 2 Dec 2026, reversing S15 / master audit D-3). */
.ds-menu__legal{margin:auto 0 0;padding:var(--ds-s2) var(--ds-s2) 0;color:var(--ds-nav-muted);font-size:var(--ds-fs-meta)}
.ds-menu__legal a{color:inherit}
.ds-menu__version{margin:0;padding:var(--ds-s1) var(--ds-s2) 0;color:var(--ds-nav-muted);font-size:var(--ds-fs-meta)}
.ds-top--side .ds-menu nav a{justify-content:flex-start;gap:var(--ds-s3);min-height:var(--ds-control);padding:var(--ds-s2);border:0;border-radius:var(--ds-r);color:var(--ds-nav-ink);font-size:var(--ds-fs-body);white-space:normal}
.ds-top--side .ds-menu nav a:hover{background:var(--ds-nav-hover);color:var(--ds-nav-ink-strong)}
.ds-top--side .ds-menu nav a[aria-current="page"],.ds-top--side .ds-menu nav a[aria-current="page"]:hover{background:var(--ds-nav-active);box-shadow:inset 3px 0 0 var(--ds-nav-ink-strong);color:var(--ds-nav-ink-strong);font-weight:400}   /* the weight of the other rows, so an active label never wraps (#753) */
/* Branches (#484): a section's tasks listed under it while it is active, indented to the label, the active one lit. */
.ds-top--side .ds-menu nav a.is-section{font-weight:500;color:var(--ds-nav-ink-strong)}
/* The open section's chevron (Venture), pointing up while its children show. */
/* Every top row keeps the chevron's slot at its far right, empty without children, so every count sits in one column (owner 2026-10-24). */
.ds-top--side .ds-menu nav>ul>li>a::after{content:"";flex:none;box-sizing:border-box;width:7px;height:7px;margin:var(--ds-s1) var(--ds-s1) 0 0}
.ds-top--side .ds-menu nav>ul>li>a:not(:has(>.ds-count))::after{margin-left:auto}
/* A closed row with a count gives the empty chevron slot to its label, so "Company information" and its count stay on one line (#753). */
.ds-top--side .ds-menu nav>ul>li>a:not(.is-section):has(>.ds-count)::after{display:none}
.ds-top--side .ds-menu nav a:has(>.ds-count){padding-right:var(--ds-s1);white-space:nowrap}   /* never a wrapped label: at worst the count rides into the row's side space */
.ds-top--side .ds-menu nav a.is-section::after{border-left:1.5px solid var(--ds-nav-muted);border-top:1.5px solid var(--ds-nav-muted);transform:rotate(45deg)}
.ds-top--side .ds-menu__branch{display:grid;gap:var(--ds-s1);margin-top:var(--ds-s1)}
.ds-top--side .ds-menu .ds-menu__branch a{padding-left:var(--ds-s7);font-size:var(--ds-fs-body)}
.ds-top--side .ds-menu nav a .ds-count{margin-left:auto}
/* The top bar and the sidebar's own block are one element (design.js, the menu): on desktop it is lifted out to the top. */
.ds-top--side .ds-top__right{display:flex;flex-direction:column;align-items:stretch;gap:var(--ds-s2);padding:var(--ds-s4);border-top:1px solid var(--ds-nav-line);color:var(--ds-nav-ink)}
.ds-top--side .ds-search .ds-input{width:100%;padding:var(--ds-s1) var(--ds-s2);font-size:var(--ds-fs-body)}
.ds-top--side .ds-top__right a{justify-content:space-between}
.ds-top--side .ds-lang .ds-link-button{color:inherit}
/* The sidebar's own buttons stay as designed: no lift or shadow from a page's button rules. */
.ds-top--side button{box-shadow:none;transform:none}
.ds-top--side .ds-link-button:hover{background:none;color:inherit;text-decoration-thickness:2px}
.ds-top--side .ds-menu-button:hover{background:var(--ds-hover)}
.ds-top--side .ds-actions__list{position:static;border:0;color:var(--ds-ink)}
.ds-account__name,.ds-account__chevron{display:none}
.ds-main--side{background:transparent;width:calc(100% - var(--ds-sidebar) - 2 * var(--ds-gutter));margin:calc(var(--ds-topbar) + var(--ds-gutter)) var(--ds-gutter) var(--ds-gutter) calc(var(--ds-sidebar) + var(--ds-gutter));min-height:calc(100vh - var(--ds-topbar) - 2 * var(--ds-gutter))}
.ds-backdrop{display:none}
@media (min-width:768px){
  html:not(:has(.ds-book)){scroll-padding-top:calc(var(--ds-topbar) + var(--ds-gutter) + var(--ds-s4))}   /* a jump to a card or field stops below the fixed top bar (#634); the book has its own margin */
  .ds-top--side .ds-brand{min-height:var(--ds-topbar);padding:0 var(--ds-s5)}
  .ds-top--side .ds-top__bar{position:relative}
  .ds-collapse{position:absolute;top:calc((var(--ds-topbar) - var(--ds-control)) / 2);right:var(--ds-s4);display:flex;align-items:center;justify-content:center;width:var(--ds-control);height:var(--ds-control);padding:0;border:0;border-radius:var(--ds-r);background:var(--ds-nav-line);color:var(--ds-nav-ink);cursor:pointer}
  .ds-collapse:hover{color:var(--ds-nav-ink-strong);background:var(--ds-nav-active)}
  /* Collapsed: a 72 px rail of icons; the labels (font-size 0) and counts stay for a screen reader. */
  .ds-nav-collapsed{--ds-sidebar:72px}
  .ds-nav-collapsed .ds-top--side .ds-brand{visibility:hidden}
  .ds-nav-collapsed .ds-collapse{right:var(--ds-s5)}
  .ds-nav-collapsed .ds-top--side .ds-menu nav a{justify-content:center;position:relative}
  .ds-nav-collapsed .ds-top--side .ds-menu nav a{font-size:0}
  .ds-nav-collapsed .ds-top--side .ds-menu nav a .ds-count{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .ds-nav-collapsed .ds-top--side .ds-menu nav a::after,.ds-nav-collapsed .ds-top--side .ds-menu__branch{display:none}
  .ds-nav-collapsed .ds-top--side .ds-menu li.ds-menu__group{font-size:0;padding:0 0 var(--ds-s4)}
  .ds-nav-collapsed :is(.ds-menu__legal,.ds-menu__version){display:none}
  .ds-top--side .ds-top__right{position:fixed;top:var(--ds-gutter);left:calc(var(--ds-sidebar) + var(--ds-gutter));right:var(--ds-gutter);z-index:15;flex-direction:row;align-items:center;gap:var(--ds-s5);height:var(--ds-topbar);padding:0 var(--ds-s6);border:0;border-bottom:1px solid var(--ds-line);background:var(--ds-bg);color:var(--ds-ink-2)}
  .ds-top--side .ds-top__right :focus-visible{outline-color:var(--ds-ink)}
  .ds-top--side .ds-search{flex:1;max-width:360px;margin-right:auto}
  .ds-top--side .ds-search .ds-input{min-height:var(--ds-button);padding:var(--ds-s1) var(--ds-s7);border-color:var(--ds-line);font-size:var(--ds-fs-body);background:var(--ds-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='16' height='16' fill='none' stroke='%235E6875' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0'/%3E%3Cpath d='M21 21l-6 -6'/%3E%3C/svg%3E") no-repeat 14px center}
  .ds-top--side .ds-search{position:relative}
  .ds-top--side .ds-search::after{content:"/";position:absolute;top:50%;right:var(--ds-s3);padding:0 var(--ds-s2);border-radius:var(--ds-r);background:var(--ds-line-2);color:var(--ds-ink-2);font-size:var(--ds-fs-small);line-height:22px;transform:translateY(-50%);pointer-events:none}
  .ds-top--side .ds-top__right a{justify-content:flex-start;gap:var(--ds-s2);font-size:var(--ds-fs-body)}
  .ds-top--side .ds-actions--account{margin-left:0}
  .ds-top--side .ds-actions--account>summary{width:auto;height:var(--ds-control);gap:var(--ds-s2);padding:0 var(--ds-s1);border-radius:var(--ds-r);background:none;color:var(--ds-ink);font-size:var(--ds-fs-body);font-weight:500}
  .ds-top--side .ds-actions--account>summary:hover{background:var(--ds-hover)}
  .ds-top--side .ds-actions--account .ds-avatar{width:32px;height:32px;background:var(--ds-line);font-size:var(--ds-fs-body);font-weight:600}
  .ds-account__name{display:block;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .ds-account__chevron{display:block;width:8px;height:8px;margin:0 var(--ds-s1) var(--ds-s1) 0;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg)}
  .ds-top--side .ds-actions__list{position:absolute;top:100%;right:0;min-width:240px;border:1px solid var(--ds-line)}
}
@media (max-width:767.98px){
  .ds-main--side{width:100%;margin:0;min-height:0;border-radius:0}
  .ds-top--side{position:static;width:auto;overflow:visible;border:0;border-radius:0}
  .ds-top--side .ds-top__bar>.ds-bell{color:var(--ds-nav-ink)}
  .ds-top--side .ds-top__bar>.ds-bell:hover{background:var(--ds-nav-hover);color:var(--ds-nav-ink-strong)}
  .ds-top--side .ds-top__bar{flex-direction:row;flex-wrap:wrap;align-items:center;gap:var(--ds-s2) var(--ds-s4);padding:var(--ds-s2) var(--ds-s4)}
  .ds-top--side .ds-brand{padding:0;margin:0;align-self:center;border:0}
  .ds-top--side .ds-menu{flex-basis:100%;padding:0;border-top:0}
  /* The menu has no side padding here, so a group's line needs no pull to the edges; with it, it scrolled 16 px (#544). */
  .ds-top--side .ds-menu li.ds-menu__group{margin-inline:0}
  .ds-top--side .ds-actions--account>summary{background:var(--ds-line-2)}
  .ds-js .ds-top--side .ds-menu-button{display:inline-flex}
  /* With the script the list is an overlay that slides in from the left; without it, it shows under the bar. */
  .ds-js .ds-top--side .ds-menu{position:fixed;top:0;bottom:0;left:0;z-index:21;flex-basis:auto;width:min(var(--ds-sidebar),calc(100% - 56px));padding-top:var(--ds-s4);overflow-y:auto;background:var(--ds-nav);visibility:hidden;transform:translateX(-100%);transition:transform .2s ease,visibility 0s .2s}
  .ds-js .ds-top--side[data-open] .ds-menu{visibility:visible;transform:none;transition:transform .2s ease}
  .ds-js .ds-top--side[data-open] .ds-backdrop{display:block;position:fixed;top:0;right:0;bottom:0;left:0;z-index:20;background:var(--ds-scrim)}
}

/* Back link and page header. */
.ds-back{display:flex;width:fit-content;align-items:center;min-height:var(--ds-control);margin-bottom:var(--ds-s2);color:var(--ds-ink-2);font-size:var(--ds-fs-body)}
.ds-root .ds-back{text-decoration:none}
.ds-back__text{text-decoration:underline;text-underline-offset:3px}
.ds-back:hover .ds-back__text{text-decoration-thickness:2px}
/* The step under a heading is 8 px at least (sweep 2): a heading and the line, hint or form right under it. */
.ds-root :is(h1,h2)+:is(p,form){margin-top:var(--ds-s2)}
/* No text or box touches the block under it (owner 2026-10-25, every page): a table, a card grid, a form or a row of
   buttons keeps 16 px to what follows, and a paragraph 12 px to a table, form, card grid or button row under it.
   A section keeps its own 24 px. tests/test_sweep_browser.py checks 8 px at least on the main pages.
   Side by side in a row of buttons, forms get no such step: the row's gap spaces them (owner 2026-10-26). */
.ds-main :is(.ds-cards,.ds-table-wrap,.ds-actions-row,form,.ds-group)+:is(p,.ds-cards,.ds-table-wrap,.ds-actions-row,form,.ds-list-search,.ds-toolbar,h2,h3):not(.ds-section,.ds-actions-row>*,.ds-table td>*){margin-top:var(--ds-block)}
.ds-main p+:is(.ds-cards,.ds-table-wrap,.ds-actions-row,form,.ds-list-search,.ds-toolbar):not(.ds-section,.ds-actions-row>*){margin-top:var(--ds-s3)}
/* A block right above a card or a Right now box keeps 16 px to it (owner 2026-11-09, #700: Download sample sheet touched
   When you fill it in), a card above another too (Fix these rows' boxes, #701); (0,3,0), so the 24 px rules below win
   inside a section. Cards in a grid (a side column, a row of cards) keep their grid's gap. */
.ds-main :is(p,ul,ol,.ds-actions-row,.ds-table-wrap,.ds-fields,form,.ds-card,.ds-highlight,.ds-section)+:is(.ds-card,.ds-highlight):not(:where(.ds-detail__side,.ds-cards)>*){margin-top:var(--ds-block)}
/* Whatever follows a table box, a card or a Right now box keeps the block gap to it too: a tick box, a field, a notice,
   a button row (owner, 20 Nov 2026: No photos yet touched the Photos table). */
.ds-main :is(.ds-table-wrap,.ds-card,.ds-highlight)+:not(.ds-card,.ds-highlight,:where(.ds-detail__side,.ds-cards,.ds-columns)>*){margin-top:var(--ds-block)}
.ds-main .ds-card+h2{margin-top:var(--ds-block)}   /* a heading after a card never touches it (owner 28 Oct: spacing between blocks) */
.ds-main h1+:is(.ds-answers,:has(>.ds-answers)){margin-top:var(--ds-block)}   /* a page title keeps 16 px to a list of answers right under it (#670) */
.ds-root .ds-actions-row+h2{margin-top:var(--ds-block)}
/* A table box after a row of buttons (a Change button too) keeps 24 px (owner 2026-10-31: Settings > AI helpers). */
.ds-root .ds-main :is(.ds-actions-row,.ds-change)+.ds-table-wrap:not(.ds-section){margin-top:var(--ds-block)}
.ds-page-header{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:var(--ds-s4);margin-bottom:var(--ds-block)}
/* The page head (STEP6-8 section 8.2): no band, it sits on the work area; the eyebrow (the sidebar group) small, in
   sentence case, above the h1, the actions at the right on the title's line. */
.ds-page-header{align-items:flex-end;margin-bottom:var(--ds-s2)}
.ds-root .ds-eyebrow{margin:0 0 var(--ds-s1);color:var(--ds-ink-2);font-size:var(--ds-fs-label);font-weight:600;line-height:16px}

.ds-page-header__title{display:flex;flex-wrap:wrap;align-items:center;gap:var(--ds-s2) var(--ds-s3)}
.ds-root .ds-page-meta{margin:0 0 var(--ds-s4);color:var(--ds-ink-2);font-size:var(--ds-fs-body)}
.ds-page-meta__count{color:var(--ds-ink);font-size:var(--ds-fs-card);font-weight:600}   /* Home's count in bold, then the wait (FINAL5 OWN-20) */
.ds-page-header__actions{display:flex;flex-wrap:wrap;align-items:center;gap:var(--ds-s3)}
/* Sort by and Filter (#495): outlined buttons that open a menu of links; the chosen one is marked. */
.ds-actions--menu>summary.ds-button{width:auto;height:auto;line-height:1.2;border-color:var(--ds-border-strong);font-size:var(--ds-fs-body)}
.ds-actions--menu>summary.ds-button:hover{border-color:var(--ds-ink)}
.ds-actions--menu .ds-actions__list a[aria-current]{font-weight:600}
.ds-root .ds-actions--menu>summary.ds-button--chevron{padding-right:var(--ds-s6);background-image:var(--ds-select-chevron);background-repeat:no-repeat;background-position:right var(--ds-s2) center;background-size:14px}   /* a menu button names itself ("Actions") with the select's one chevron (staff mockup v2) */
.ds-actions--menu .ds-actions__list a[aria-current]::after{content:"";width:6px;height:10px;margin:0 var(--ds-s1) var(--ds-s1) auto;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg)}
.ds-button:is([data-icon="sort"],[data-icon="filter"],[data-icon="download"])::before{content:"";flex:none;width:16px;height:16px;background:currentColor;-webkit-mask:var(--ds-icon) center/contain no-repeat;mask:var(--ds-icon) center/contain no-repeat}
.ds-button[data-icon="download"]{--ds-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2'/%3E%3Cpath d='M7 11l5 5l5 -5'/%3E%3Cpath d='M12 4l0 12'/%3E%3C/svg%3E")}   /* item 2: every download button, the file type in its title */
.ds-button[data-icon="sort"]{--ds-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l9 0'/%3E%3Cpath d='M4 12l7 0'/%3E%3Cpath d='M4 18l7 0'/%3E%3Cpath d='M15 15l3 3l3 -3'/%3E%3Cpath d='M18 6l0 12'/%3E%3C/svg%3E")}
.ds-button[data-icon="filter"]{--ds-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16v2.172a2 2 0 0 1 -.586 1.414l-4.414 4.414v7l-6 2v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227z'/%3E%3C/svg%3E")}
/* The page's tabs: their own line under the meta line, the underline of filter_chips (STEP6-8 section 8.2). */
.ds-root .ds-page-meta+.ds-chips--head,.ds-page-header+.ds-chips--head{margin-top:var(--ds-s4)}

/* Buttons (Venture's Button styles). The one main button per page is the tights.no yellow; every other button is
   Venture's: secondary is an outlined white button, tertiary a grey fill, danger a red fill. */
.ds-button{display:inline-flex;align-items:center;justify-content:center;gap:var(--ds-s2);min-height:var(--ds-button);padding:var(--ds-s1) var(--ds-s4);border:1px solid var(--ds-primary);border-radius:var(--ds-r);background:var(--ds-primary);color:var(--ds-on-primary);font:500 var(--ds-fs-body)/1.2 var(--ds-font);text-decoration:none;cursor:pointer}
/* A leading + on an add button (Venture). */
.ds-button[data-icon="add"]::before{content:"+";content:"+" / "";font-size:var(--ds-fs-question);line-height:1;font-weight:400}
.ds-button:hover{background:var(--ds-primary-hover);border-color:var(--ds-primary-hover)}
/* Item 2 (owner, 19 Nov 2026): a button's label never wraps; a long one is shortened instead. Every variant answers a
   press (1 px down, a darker fill) and eases its colour in 120 ms; reduced motion drops the transition (.ds-root * rule). */
.ds-button,.ds-link-button{white-space:nowrap;transition:background-color .12s,border-color .12s,color .12s,transform .12s}
@media (max-width:767.98px){.ds-button,.ds-link-button{max-width:100%;white-space:normal}}   /* a phone (usable, not polished: owner 30 Oct 2026): a label longer than the screen (a How to chapter's Next) wraps rather than scroll the page */
.ds-button:active:not([disabled],[aria-disabled="true"],.is-busy),.ds-link-button:active:not([disabled],[aria-disabled="true"]){transform:translateY(1px)}
.ds-button:active:not([disabled],[aria-disabled="true"],.is-busy,.ds-button--secondary,.ds-button--danger){background:var(--ds-primary-press);border-color:var(--ds-primary-press)}
.ds-button--secondary{border-color:var(--ds-border-strong);background:var(--ds-bg);color:var(--ds-ink)}
.ds-button--secondary:hover{border-color:var(--ds-ink);background:var(--ds-bg)}
.ds-button--secondary:active{background:var(--ds-hover)}
.ds-button--danger{border-color:var(--ds-error);background:var(--ds-error);color:var(--ds-on-ink)}
.ds-button--danger:hover{border-color:var(--ds-error-hover);background:var(--ds-error-hover)}
.ds-button--danger:active:not([disabled],[aria-disabled="true"]){border-color:var(--ds-error-press);background:var(--ds-error-press)}
.ds-button[disabled],.ds-button[aria-disabled="true"]{border-color:var(--ds-line);background:var(--ds-page);color:var(--ds-ink-2);cursor:not-allowed}
.ds-link-button{display:inline-flex;align-items:center;min-height:var(--ds-control);padding:0 var(--ds-s1);border:0;background:none;color:var(--ds-ink);font:400 var(--ds-fs-body) var(--ds-font);text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.ds-link-button:hover{color:var(--ds-ink-2)}
.ds-link-button:is([disabled],[aria-disabled="true"]){color:var(--ds-ink-2);text-decoration:none;cursor:not-allowed}   /* item 2: a disabled link button looks it */
.ds-actions-row{display:flex;flex-wrap:wrap;align-items:center;gap:var(--ds-s2) var(--ds-s4);margin-top:var(--ds-block)}
.ds-actions-row__end{margin-left:auto}
.ds-disabled-why{display:block;color:var(--ds-ink-2);font-size:var(--ds-fs-small)}.ds-disabled-why[hidden]{display:none}
.ds-actions-row>.ds-disabled-why{flex-basis:100%;order:1}   /* a disabled button's reason: its own line under the row (UI standard MR 4) */
/* A destructive button sits apart, at the end of its row (#506, owner O4). */
.ds-actions-row:not(:has(>.ds-actions-row__end),.ds-actions-row--cell)>:is(.ds-button--danger,form:has(>.ds-button--danger)):not(:only-child,:first-child){margin-left:auto}

/* Section header, highlight box, summary card. */
.ds-section{margin-top:var(--ds-block)}
/* A video (How to, #504): as wide as its column, at most 960 px, with its title above it. */
.ds-main video{display:block;width:100%;max-width:960px;height:auto;margin:var(--ds-s2) 0 var(--ds-s5);border-radius:var(--ds-r);background:var(--ds-ink)}
.ds-main video:last-child{margin-bottom:0}
/* Section panels: a page with more than one section puts each in a white bordered card (Venture's Cards).
   One section stays as it is. The cards inside a panel take the soft grey. */
.ds-main:has(:is(section,details).ds-section ~ :is(section,details).ds-section) :is(section,details).ds-section:not(.ds-card,.ds-section .ds-section,:has(> .ds-cards .ds-summary-card)){margin-top:var(--ds-block);padding:var(--ds-card-y) var(--ds-card-x);border-radius:var(--ds-r);background:var(--ds-bg);box-shadow:var(--ds-elev)}
/* No box inside a box (#484): a card inside a section panel is flat, the panel is the one card; small summary tiles stay soft. */
.ds-main:has(:is(section,details).ds-section ~ :is(section,details).ds-section) .ds-section .ds-card{padding:0;border:0;border-radius:0;background:none;box-shadow:none}
.ds-main:has(:is(section,details).ds-section ~ :is(section,details).ds-section) .ds-section .ds-upload{background:var(--ds-page)}
.ds-section-header{display:flex;flex-wrap:wrap;align-items:center;--ds-band-pad:0px;justify-content:space-between;gap:var(--ds-s2) var(--ds-s4);margin-bottom:var(--ds-s3)}
.ds-section-header p{color:var(--ds-ink-2);font-size:var(--ds-fs-small)}
/* Grey text in a grey band (a section header's description, a band heading's count) is darker (A11Y-01). */
.ds-section-header :is(p,.ds-secondary-text),:is(h2,h3,summary)>.ds-secondary-text{color:var(--ds-ink-2)}
/* A section's one-line description sits under its band, never in it, so every band is one line high (owner, 21 Nov 2026, uniformity D10). */
.ds-root .ds-panel-desc{margin:0 0 var(--ds-s3);color:var(--ds-ink-2);font-size:var(--ds-fs-small);line-height:20px}
.ds-section-header:has(+.ds-panel-desc){margin-bottom:var(--ds-s1)}
/* A band's buttons (#793; owner, 22 Nov 2026, option A): from 1440 px they sit in the band in one row; narrower, the band keeps only its
   title, one line high, and the buttons sit in a row at the top of the card body, wrapping as needed. */
.ds-section-header>div+div:has(.ds-button){display:flex;flex-wrap:wrap;align-items:center;gap:var(--ds-s2)}
@media (max-width:1439.98px){
  .ds-section-header:has(>div+div .ds-button){row-gap:0}
  .ds-section-header:has(>div+div .ds-button)>div:first-child{display:flex;align-items:center;min-height:var(--ds-band)}
  .ds-section-header>div+div:has(.ds-button){flex-basis:calc(100% + 2*var(--ds-card-x));margin:0 calc(-1*var(--ds-card-x));padding:var(--ds-card-y) var(--ds-card-x) 0;background:var(--ds-bg)}
}
/* "Right now" and order summaries: a flat Venture card, white with a line, not a tinted panel (#484). */
.ds-highlight{padding:var(--ds-card-y) var(--ds-card-x);border-radius:var(--ds-r);background:var(--ds-bg);box-shadow:var(--ds-elev);font-size:var(--ds-fs-body)}
.ds-highlight h2{margin-bottom:var(--ds-s2)}
.ds-highlight .ds-progress{margin-top:var(--ds-s2)}
.ds-card{padding:var(--ds-card-y) var(--ds-card-x);border-radius:var(--ds-r);background:var(--ds-bg);box-shadow:var(--ds-elev)}
/* A label/value list (#513): a narrow list, each value right beside its label, not at the far edge of a wide screen. */
.ds-status-row{display:grid;grid-template-columns:min(40%,14rem) minmax(0,1fr);align-items:center;gap:var(--ds-s4);max-width:48rem;padding:var(--ds-s2) 0;border-bottom:1px solid var(--ds-line)}
.ds-status-row__value{display:flex;flex-wrap:wrap;align-items:center;gap:var(--ds-s2);min-width:0;overflow-wrap:anywhere}
.ds-card--soft{background:var(--ds-bg)}
.ds-card h2,.ds-card h3{margin-bottom:var(--ds-s2)}
/* Card titles (owner, 16 Nov 2026, FINAL5 OWN-24, replacing option 4 of 2026-10-31 and OWN-19's white band): a card's title, its first heading or section header, sits
   in a 44 px band of the sidebar's navy across the card's full width, the card's top corners, its title 14 px semi-bold white (owner, 21 Nov 2026,
   uniformity D10), See all white and underlined, a description under the band (`section_header`); the body starts 12 px under it (compact, owner 2026-11-10). Every card and section panel; not a flat card inside
   a panel, a sign-in card or a group box (its own small heading). A Right now box (ds-highlight) too. */
:is(.ds-main .ds-highlight,.ds-main .ds-card:not(.ds-card--sign,.ds-main:has(:is(section,details).ds-section ~ :is(section,details).ds-section) .ds-section .ds-card),.ds-main:has(:is(section,details).ds-section ~ :is(section,details).ds-section) :is(section,details).ds-section:not(.ds-card,.ds-section .ds-section,:has(> .ds-cards .ds-summary-card)))>:is(h2,h3,.ds-section-header,summary):first-child{box-sizing:border-box;min-height:var(--ds-band);margin:calc(-1*var(--ds-card-y)) calc(-1*var(--ds-card-x)) var(--ds-card-y);padding:var(--ds-band-pad,var(--ds-s3)) var(--ds-card-x);border-bottom:0;border-radius:calc(var(--ds-r) - 1px) calc(var(--ds-r) - 1px) 0 0;background:var(--ds-nav)}
:is(.ds-main .ds-highlight,.ds-main .ds-card:not(.ds-card--sign,.ds-main:has(:is(section,details).ds-section ~ :is(section,details).ds-section) .ds-section .ds-card),.ds-main:has(:is(section,details).ds-section ~ :is(section,details).ds-section) :is(section,details).ds-section:not(.ds-card,.ds-section .ds-section,:has(> .ds-cards .ds-summary-card)))>:is(h2,h3,summary):first-child,:is(.ds-main .ds-highlight,.ds-main .ds-card:not(.ds-card--sign,.ds-main:has(:is(section,details).ds-section ~ :is(section,details).ds-section) .ds-section .ds-card),.ds-main:has(:is(section,details).ds-section ~ :is(section,details).ds-section) :is(section,details).ds-section:not(.ds-card,.ds-section .ds-section,:has(> .ds-cards .ds-summary-card)))>:is(.ds-section-header,summary):first-child :is(h2,h3){margin-top:0;margin-bottom:0;color:var(--ds-nav-ink-strong);font-size:var(--ds-fs-body);font-weight:600;line-height:20px;letter-spacing:normal}
:is(.ds-main .ds-highlight,.ds-main .ds-card:not(.ds-card--sign,.ds-main:has(:is(section,details).ds-section ~ :is(section,details).ds-section) .ds-section .ds-card),.ds-main:has(:is(section,details).ds-section ~ :is(section,details).ds-section) :is(section,details).ds-section:not(.ds-card,.ds-section .ds-section,:has(> .ds-cards .ds-summary-card)))>:is(h2,h3,.ds-section-header,summary):first-child :is(p,.ds-secondary-text){color:var(--ds-nav-ink)}   /* a line on the navy title: the sidebar's light ink (OWN-24) */
:is(.ds-main .ds-highlight,.ds-main .ds-card:not(.ds-card--sign,.ds-main:has(:is(section,details).ds-section ~ :is(section,details).ds-section) .ds-section .ds-card),.ds-main:has(:is(section,details).ds-section ~ :is(section,details).ds-section) :is(section,details).ds-section:not(.ds-card,.ds-section .ds-section,:has(> .ds-cards .ds-summary-card)))>:is(h2,h3,.ds-section-header,summary):first-child a:not(.ds-button,:is(h2,h3) a){color:var(--ds-nav-ink-strong);font-size:var(--ds-fs-small);font-weight:500;text-decoration:underline;text-underline-offset:3px}   /* See all on the band: white, underlined (owner, 21 Nov 2026, D10) */
:is(.ds-main .ds-highlight,.ds-main .ds-card:not(.ds-card--sign,.ds-main:has(:is(section,details).ds-section ~ :is(section,details).ds-section) .ds-section .ds-card),.ds-main:has(:is(section,details).ds-section ~ :is(section,details).ds-section) :is(section,details).ds-section:not(.ds-card,.ds-section .ds-section,:has(> .ds-cards .ds-summary-card)))>:is(h2,h3,.ds-section-header,summary):first-child :is(h2,h3) a:not(.ds-button),:is(.ds-main .ds-highlight,.ds-main .ds-card:not(.ds-card--sign,.ds-main:has(:is(section,details).ds-section ~ :is(section,details).ds-section) .ds-section .ds-card),.ds-main:has(:is(section,details).ds-section ~ :is(section,details).ds-section) :is(section,details).ds-section:not(.ds-card,.ds-section .ds-section,:has(> .ds-cards .ds-summary-card)))>:is(h2,h3,.ds-section-header,summary):first-child:is(h2,h3) a:not(.ds-button){display:inline;min-height:0;padding:0;color:inherit;font:inherit;line-height:inherit;text-decoration:none}   /* a heading's own link (How to's chapter) is the title, not a See all (T203) */
:is(.ds-main .ds-highlight,.ds-main .ds-card:not(.ds-card--sign,.ds-main:has(:is(section,details).ds-section ~ :is(section,details).ds-section) .ds-section .ds-card),.ds-main:has(:is(section,details).ds-section ~ :is(section,details).ds-section) :is(section,details).ds-section:not(.ds-card,.ds-section .ds-section,:has(> .ds-cards .ds-summary-card))):not([open])>summary:first-child{margin-bottom:0;border-radius:calc(var(--ds-r) - 1px)}   /* the band rule's own selector, so it wins (T68) */
.ds-main:has(:is(section,details).ds-section ~ :is(section,details).ds-section) details.ds-section:not(.ds-card,.ds-section .ds-section,:has(> .ds-cards .ds-summary-card)):not([open]){padding-bottom:0}   /* closed, only the band shows: negative margins can't shrink the body below 0 (T68) */
/* A group inside a card or section (owner, 2026-10-31, option D): its heading and what belongs to it in a white box
   with a line, so it never reads as the card's own title; the card's buttons stay outside the boxes. */
.ds-group{padding:var(--ds-s4);border:1px solid var(--ds-line);border-radius:var(--ds-r);background:var(--ds-bg)}
.ds-group>:is(h3,h4):first-child{margin:0 0 var(--ds-s3);font-size:var(--ds-fs-body);font-weight:600;line-height:1.4}
.ds-group>:last-child{margin-bottom:0}
.ds-main :not(.ds-cards)>.ds-group+.ds-group{margin-top:var(--ds-block)}
/* The Messages card ends a page after any card or section: the section gap above it, never touching the card above (V2c); the order page side column has its own gap. */
:not(.ds-detail__side) > #messages.ds-card{margin-top:var(--ds-block)}
.ds-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:var(--ds-block)}
/* Venture's stat card: white, a line, the label grey on top and the big number under it (#484). */
.ds-summary-card{display:flex;flex-direction:column;justify-content:space-between;gap:var(--ds-s2);min-height:var(--ds-control);padding:var(--ds-card-y) var(--ds-card-x);border-radius:var(--ds-r);background:var(--ds-bg);box-shadow:var(--ds-elev);text-decoration:none}
.ds-summary-card:hover .ds-summary-card__label{text-decoration:underline}
.ds-summary-card__label{color:var(--ds-ink-2);font-size:var(--ds-fs-label);font-weight:600}
.ds-summary-card__value{font-size:var(--ds-fs-metric);line-height:38px;font-weight:500}

/* Detail page: two columns from 1100 px, the side column first below it. */
.ds-detail{display:grid;gap:var(--ds-block);grid-template-columns:minmax(0,1fr)}
.ds-detail__side{order:-1;display:grid;gap:var(--ds-block);align-content:start}
@media (min-width:1100px){
  .ds-detail{grid-template-columns:minmax(0,1fr) var(--ds-side);gap:var(--ds-s6)}
  .ds-detail__side{order:0}
  .ds-detail--single{grid-template-columns:minmax(0,1fr)}    /* a warehouse account's order with nothing for the right column (WH-PLAN A1) */
}
/* Side by side, one top edge (#574): a column's first card starts at the column's top, so the main column's first
   section (which otherwise keeps its 24 px gap from the page head, inside the grid cell) and the side card line up;
   the page head sits above both columns (`block header`). !important: the section panel rule above outranks any class. */
.ds-detail>*>:first-child{margin-top:0!important}
/* Supplier Home: two columns from 1200 px, not 1100, so its lists fit the main column (owner, 2026-11-07, #674). */
@media (min-width:1100px) and (max-width:1199.98px){.ds-detail--from-1200{grid-template-columns:minmax(0,1fr)}.ds-detail--from-1200 .ds-detail__side{order:-1}}
/* How to: from 1360 px, so a chapter's process tables keep whole words beside the contents column (audit v2 UI-02, #751). */
@media (min-width:1100px) and (max-width:1359.98px){.ds-detail--from-1360{grid-template-columns:minmax(0,1fr)}.ds-detail--from-1360 .ds-detail__side{order:-1}}
/* History (#737, owner 2026-11-11): a 330 px right column (16 Nov 2026, FINAL5 OWN-7) from 768 px at every width, the side cards (if any) above
   the History card and the notes (Messages) under it; a phone puts the side cards first, History and the notes last. The card is as tall as its entries, at most
   480 px, its list scrolling inside; entries 6 px apart, the date and who under the event. */
@media (min-width:768px){.ds-detail--history{grid-template-columns:minmax(0,1fr) var(--ds-history);gap:var(--ds-s6)}.ds-detail--history .ds-detail__side{order:0}}
/* Below 1280 px a 330 px column would leave the main column narrower than History (about 350 px at 1024 px), so the
   column keeps #737's 220 px there (FINAL5 OWN-7, open owner question). From 1440 to 1679 px a table beside History
   takes the 6 px cell sides it has below 1440 px, so a sheet's tables keep their action column in view in Norwegian. */
@media (min-width:768px) and (max-width:1279.98px){:root{--ds-history:220px}}
/* A list page's Notes (supplier mockup v9) sit beside the list from 1280 px, 330 px like History (owner, 20 Nov 2026:
   notes on the right at desktop widths; was 1680 px), and under the list below 1280 px (`side_from = 'list'`). */
@media (max-width:1279.98px){.ds-detail--from-list{grid-template-columns:minmax(0,1fr)}}
@media (min-width:1440px) and (max-width:1679.98px){.ds-detail--history .ds-detail__main .ds-table{--ds-cell-x:var(--ds-cell-side)}.ds-detail--history .ds-detail__main .ds-table-wrap[data-fit] .ds-table:has(>thead>tr>th:nth-child(7)) th{white-space:normal}}   /* a wide list's long header (a sheet's nb "Antall å bestille") may wrap beside History; a table of up to six columns (a PO's products, a product's orders) keeps its headers on one line (uniformity MR1) */
/* The supplier's Home (owner, 30 Nov 2026, option C): the side cards sit under the queue at every width, so Needs you is full width;
   they stand side by side, each at least History's 330 px. Detail pages keep History in the right column. */
@media (min-width:768px){.ds-detail--history:has(>.ds-detail__side>.ds-home-side){grid-template-columns:minmax(0,1fr)}
  .ds-detail__side>.ds-home-side{grid-template-columns:repeat(auto-fill,minmax(min(330px,100%),1fr));align-items:start}}   /* each card as tall as its entries */
.ds-detail--history .ds-detail__side>*,.ds-home-side>*{min-width:0;overflow-wrap:break-word}   /* a long word (nb) wraps inside the 330 px column, never widens it (T150) */
@media (max-width:767.98px){.ds-detail--history .ds-detail__side{display:contents}.ds-detail--history .ds-detail__side>*{order:-1}.ds-detail--history :is(.ds-history,.ds-history~*,.ds-home-side,#messages){order:1}}   /* a phone puts History and the Messages notes last (DESIGN.md; an update request's thread sits above History, T-UPD23) */
.ds-history{display:flex;flex-direction:column;max-height:480px}
/* From 768 px History stays in view while the page scrolls and is at most the window's height, its entries scrolling
   inside, never cut off at a fixed height (owner, 16 Nov 2026, FINAL5 OWN-7, mockup BWcRgFqekqxxebTmsNYDAE). */
@media (min-width:768px){.ds-history{position:sticky;top:calc(var(--ds-topbar) + var(--ds-gutter) + var(--ds-s4));max-height:calc(100vh - var(--ds-topbar) - 2 * var(--ds-s4))}}
.ds-history__list{min-height:0;overflow-y:auto;margin:0;padding:0;list-style:none;display:grid;gap:var(--ds-history-gap);align-content:start;overflow-wrap:anywhere}   /* a long email as who wraps */
.ds-history>:not(h2,.ds-card__head,.ds-history__list)+.ds-history__list{margin-top:var(--ds-block);padding-top:var(--ds-block);border-top:1px solid var(--ds-line)}   /* a caller's line (the photo copy) is apart from the entries, not one of them (#755) */
/* Messages (owner's N5, #737): each note an initial in a 24 px circle (grey: the supplier; ink: tights.no), the name
   and time on one line, the text under it; 8 px between notes. */
.ds-messages{list-style:none;margin:0 0 var(--ds-s4);padding:0;display:grid;gap:var(--ds-s2)}
.ds-message{display:grid;grid-template-columns:24px minmax(0,1fr);gap:var(--ds-s2);align-items:start}
.ds-message__initial{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;background:var(--ds-line);color:var(--ds-ink);font-size:var(--ds-fs-meta);font-weight:600}
.ds-message__initial--us{background:var(--ds-ink);color:var(--ds-bg)}
.ds-message__head{margin:0;overflow-wrap:anywhere}
/* Two columns (#533): from 1200 px two halves, the details and their history or a step's two lists; a step's cards
   (.ds-columns--cards: Check before you send) two per row from 1024 px (#573; Fix these rows is one column since audit v2 UI-10);
   below that one column in source order. A flow's 680 px column does not hold them, so the pair uses
   the page's width. */
.ds-columns{display:grid;grid-template-columns:minmax(0,1fr);column-gap:var(--ds-s5);align-items:start}
@media (min-width:1200px){.ds-columns{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:1024px){.ds-columns--cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
.ds-main--flow.ds-main--side>.ds-columns{max-width:none}
/* A product whose rows table is open takes both columns, so the table is not cut in a half-width card (#635). */
.ds-columns--cards>:has(details[open] .ds-table-wrap),.ds-columns--cards>:only-child{grid-column:1/-1}   /* a lone card too (#696) */
/* A step's form holding the pair (Check before you send, #546) widens with it; its other parts keep the flow column. */
.ds-main--flow.ds-main--side>form:has(>.ds-columns){max-width:none}
.ds-main--flow.ds-main--side>form:has(>.ds-columns)>:not(.ds-columns){max-width:var(--ds-flow)}
/* A product card's list keeps the summary's width above it, so both lists end at one edge (#696). */
.ds-main--flow.ds-main--side>form>.ds-columns .ds-answers{max-width:var(--ds-flow)}
.ds-main .ds-columns+*{margin-top:var(--ds-block)}
/* Two halves side by side keep their top edges level (#574): the second half drops the gap a card after a card takes. */
@media (min-width:1200px){.ds-main .ds-columns:not(.ds-columns--cards)>:nth-child(2){margin-top:0}}
/* The calendar's two tables have six columns each: side by side only where both fit with a long supplier name
   (owner approved side by side, 20 Nov 2026), one per row below. */
@media (min-width:1200px) and (max-width:1679.98px){.ds-columns.ds-calendar-list{grid-template-columns:minmax(0,1fr)}.ds-main .ds-columns.ds-calendar-list>:nth-child(2){margin-top:var(--ds-block)}}
/* Field grid (#553): a section's label-value pairs (a product's Item, Size and weight, ...). Compact (owner, 2026-11-09,
   #705): the label small and grey beside its value, two pairs a line from 768 px and one below, the lines white and
   cream in turn like a list's rows; a wide pair (Webshop categories) takes its line, a caption sits small and grey
   under its value. A div.ds-fields (a flow's boxes, #703) is a plain one-column grid. */
.ds-fields{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--ds-s4) var(--ds-s5);margin:0}
.ds-fields dt{color:var(--ds-ink-2);font-size:var(--ds-fs-small)}
.ds-fields dd{margin:0;overflow-wrap:anywhere}
#orders .ds-fields dd{overflow-wrap:normal}   /* the narrow Stock card: a date stays whole ("16.11.2026", nb; testers T160, T161) */
dl.ds-fields{gap:0;border-top:1px solid var(--ds-line-2)}
dl.ds-fields>div{display:grid;grid-template-columns:minmax(min-content,2fr) minmax(0,3fr);align-content:start;padding:var(--ds-s2) var(--ds-s3);border-bottom:1px solid var(--ds-line-2);background:var(--ds-bg)}
dl.ds-fields dt{padding-right:var(--ds-s3)}
.ds-fields dd.ds-fields__caption{grid-column:2/-1;margin-top:var(--ds-s1);color:var(--ds-ink-2);font-size:var(--ds-fs-small)}
@media (min-width:768px){
  dl.ds-fields{grid-template-columns:repeat(2,minmax(min-content,2fr) minmax(0,3fr))}   /* a label never runs into its value */
  #orders dl.ds-fields{grid-template-columns:repeat(2,minmax(min-content,2fr) minmax(min-content,3fr))}   /* ... nor a date out of its cell (T161) */
  dl.ds-fields>div{grid-column:span 2;grid-template-columns:subgrid}   /* the labels and values of both pairs line up down the section */
  dl.ds-fields>div:is(.ds-fields__wide,:last-child:nth-child(odd)){grid-column:1/-1}   /* a lone last pair keeps its line's colour to the edge */
  dl.ds-fields>.ds-fields__wide>dd{grid-column:2/-1}
}
.ds-plain-list{margin:0;padding:0;list-style:none}
.ds-plain-list>li+li{margin-top:var(--ds-s2)}   /* lines of a list never touch (#568: Webshop categories) */
/* How to (#586, #607): the book's contents, the chapters on the left in runs under a small grey label (the sidebar's
   group label and active row) and the chosen chapter's sections on the right as full-width rows; one column when the
   card is narrower than 640 px, chapters first. Then a chapter's text. */
.ds-card>.ds-plain-list+p,.ds-card>.ds-book-toc+p{margin-top:var(--ds-s4)}   /* a note under a list never touches it */
.ds-card:has(>.ds-book-toc),.ds-book-page{container-type:inline-size}
.ds-book-page{width:100%}
.ds-main .ds-book-toc>.ds-card{margin-top:0}   /* a container query styles only what is inside its container */
/* How to's tables (the process steps in 1.3 and 1.4): only a word longer than its cell breaks, no automatic hyphens (T135), so the table fits its card at 1024 and 1440 px (#751). */
.ds-book .ds-table :is(th,td){white-space:normal;overflow-wrap:anywhere;min-width:6.5em}.ds-book .ds-table .ds-book-num{min-width:0}.ds-book .ds-table :is(th,td):first-child:not(.ds-book-num){overflow-wrap:break-word}   /* a table's names (1.1's roles) keep their words whole: the longest word sets the column */
/* Videos and PDF (OWN-32): the text left, its button right. */
.ds-link-rows>li{display:flex;gap:var(--ds-s3);align-items:center;justify-content:space-between}
.ds-link-rows>li+li{margin-top:var(--ds-s2)}
.ds-book-toc{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--ds-block);align-items:start}
@container (min-width:640px){.ds-book-toc{grid-template-columns:minmax(200px,280px) minmax(0,1fr)}}
.ds-book-toc__group{padding:var(--ds-s3) var(--ds-s3) var(--ds-s1);color:var(--ds-ink-2);font-size:var(--ds-fs-label);font-weight:600}
.ds-book-toc__group:first-child{padding-top:0}
.ds-book-toc .ds-plain-list>li+li{margin-top:0}
.ds-book-toc a{display:flex;gap:var(--ds-s3);align-items:center;min-height:var(--ds-control);padding:var(--ds-s2) var(--ds-s3);border-radius:var(--ds-r);color:var(--ds-ink-3);text-decoration:none}
.ds-book-toc a:hover{background:var(--ds-hover);color:var(--ds-ink)}
.ds-book-toc__chapters a[aria-current="true"],.ds-book-toc__chapters a[aria-current="true"]:hover{background:var(--ds-selected);color:var(--ds-ink);font-weight:500}
.ds-book-toc__num{min-width:2.5em;color:var(--ds-ink-2);font-variant-numeric:tabular-nums}
.ds-book-toc__chapter h3 a{display:inline;min-height:0;padding:0;color:var(--ds-ink)}
.ds-book-toc__chapter h3 a:hover{background:none;text-decoration:underline}
.ds-book-toc__sections>li+li{border-top:1px solid var(--ds-line)}
.ds-book-toc__sections a{color:var(--ds-ink)}
.ds-book-toc__go{margin-left:auto;color:var(--ds-ink-2)}
.ds-book h2{scroll-margin-top:96px}
.ds-book>h2:not(:first-child){margin-top:var(--ds-s6)}
.ds-book p:not(:has(>img)),.ds-book li{max-width:72ch}
.ds-book img{display:block;max-width:100%;height:auto;margin:var(--ds-s4) 0}
.ds-book .ds-table-wrap{margin:var(--ds-s4) 0;overflow-x:auto}
/* A page about one product keeps its name and status in view (#568): its head sticks under the top bar from 768 px,
   what follows scrolls away under it, and a jump to a section or a focused field stops below it. */
@media (min-width:768px){
  .ds-pin{position:sticky;top:calc(var(--ds-topbar) + var(--ds-gutter));z-index:10;padding-block:var(--ds-s3);border-bottom:1px solid var(--ds-line);background:var(--ds-page)}
  html:has(.ds-pin){scroll-padding-top:calc(var(--ds-topbar) + var(--ds-gutter) + 290px)}   /* the head with a 100-character name, back link included, with a header button (U3: Ask the supplier to update): 271 px at 768 px with the 26 px title (13 Nov 2026; 265 px before) */
}
/* Webshop photos (#530): one row of 80 px photos that never wraps and scrolls sideways inside its section. */
.ds-shop-photos{display:flex;gap:var(--ds-s2);margin:0;padding:0 0 var(--ds-s1);list-style:none;overflow-x:auto}
.ds-shop-photos li{flex:none}
.ds-shop-photos a{display:block}
.ds-shop-photos img{display:block;width:80px;height:80px;object-fit:cover;border-radius:var(--ds-r);outline:1px solid var(--ds-line);outline-offset:-1px}
/* Sort your photos (#416, U1): a card per dropped photo with its product under it; one still to choose is outlined. */
.ds-photo-grid{list-style:none;margin:var(--ds-s4) 0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:var(--ds-s4)}
.ds-photo-grid li{display:flex;flex-direction:column;gap:var(--ds-s2);padding:var(--ds-s3);border:1px solid var(--ds-line);border-radius:var(--ds-r);min-width:0;overflow-wrap:anywhere}
.ds-photo-grid li.is-open{border-color:var(--ds-tag-action-fg)}
.ds-photo-grid img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:var(--ds-r);outline:1px solid var(--ds-line);outline-offset:-1px}
/* A colour's photos in their order (#355, #418), on a product's page and a sheet's colour page: the label, then the
   grip a photo is dragged by and its "..." menu, each a full control so a finger finds it. */
ol.photos{list-style:none;margin:var(--ds-s4) 0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:var(--ds-s4)}
ol.photos>li{position:relative;min-width:0}
ol.photos img{display:block;width:100%;aspect-ratio:1;object-fit:cover;border-radius:var(--ds-r);outline:1px solid var(--ds-line);outline-offset:-1px}
.photo-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--ds-s2);margin-top:var(--ds-s2);font-size:var(--ds-fs-small);color:var(--ds-ink-2)}
.photo-bar .pill.main{color:var(--ds-ink);font-weight:600}
.photo-tools{display:flex;align-items:center;gap:var(--ds-s1)}
/* A photo and its webshop copy side by side (webshopimg), each whole at 4:5 so the purchaser sees the crop. */
ol.photos.photos--pairs{grid-template-columns:repeat(auto-fill,minmax(320px,1fr))}
.photo-pair{display:grid;grid-template-columns:1fr 1fr;gap:var(--ds-s2);margin:0}
.photo-pair figure{margin:0;min-width:0}
ol.photos .photo-pair img{aspect-ratio:4/5;object-fit:contain;background:var(--ds-page)}
.photo-pair figcaption{margin-top:var(--ds-s1);font-size:var(--ds-fs-small);color:var(--ds-ink-2)}
.photo-pair .photo-pair-empty{display:flex;align-items:center;justify-content:center;aspect-ratio:4/5;padding:var(--ds-s2);border-radius:var(--ds-r);background:var(--ds-page);font-size:var(--ds-fs-small);color:var(--ds-ink-2);text-align:center}
.grip,.photo-menu summary{display:inline-flex;align-items:center;justify-content:center;min-width:var(--ds-control);min-height:var(--ds-control);padding:0;border:1px solid transparent;border-radius:var(--ds-r);background:none;color:var(--ds-ink-2)}
.grip:hover,.photo-menu summary:hover,.photo-menu[open] summary{border-color:var(--ds-line);color:var(--ds-ink)}
.grip{cursor:grab;touch-action:none}
.grip[hidden]{display:none}
.photo-menu summary{list-style:none;cursor:pointer}
.photo-menu summary::-webkit-details-marker{display:none}
.photo-menu form{position:absolute;left:0;right:0;z-index:5;display:flex;flex-direction:column;padding:var(--ds-s1);border:1px solid var(--ds-line);border-radius:var(--ds-r);background:var(--ds-bg)}
.photo-menu form button{min-height:var(--ds-control);padding:0 var(--ds-s2);border:0;background:none;color:var(--ds-ink);font:400 var(--ds-fs-body) var(--ds-font);text-align:left;cursor:pointer}
.photo-menu form button:hover{text-decoration:underline}
.photo-menu form button[hidden]{display:none}
.can-drag>[data-id]{cursor:grab}
.sorting,.sorting *{cursor:grabbing;user-select:none;-webkit-user-select:none}
.dragging{opacity:.55;outline:2px dashed var(--ds-ink);outline-offset:3px}
/* A step's quiet destructive link, under its buttons (#636). */
.ds-quiet-foot{margin-top:var(--ds-block)}
.ds-root :is(a,.ds-link-button).ds-danger-link{color:var(--ds-error)}
.ds-root :is(a,.ds-link-button).ds-danger-link:hover{color:var(--ds-error-hover)}
.photos .ds-link-button.ds-danger-link{padding:0;font-size:var(--ds-fs-small)}   /* a photo's Remove: flush with the photo (#636); a table's Delete keeps the link size (F07) */
/* A table, a warning or a button under a product page's fields keeps its distance (#560). */
.ds-fields+:is(div,p){margin-top:var(--ds-block)}
/* One field under the other at every width, with the grid's gaps (Photos and descriptions' boxes, #703). */
.ds-fields.ds-fields--1{grid-template-columns:minmax(0,1fr)}
/* A product page's sections (owner, 16 Nov 2026, FINAL5 OWN-25, replacing #705's pairs): from 1440 px Item takes the
   whole width, three pairs a line; under it Stock and orders on the left, Size and weight then Prices and units stacked
   on the right, so no area stays empty. Below 1440 px one under the other in that order. */
.ds-section-pairs>.ds-section:first-child{margin-top:0!important}   /* the first card starts level with History (FINAL5 OWN-7); the card rule is far more specific */
.ds-main :is(.ds-section,.ds-card,.ds-highlight)+.ds-section-pairs{margin-top:var(--ds-block)}   /* after a card, the pairs keep the gap between cards (S22, master audit UI-01) */
.ds-section-stack{display:grid;gap:var(--ds-block);align-content:start;min-width:0;margin-top:var(--ds-block)}
.ds-section-stack>*{margin:0!important}
@media (min-width:1440px){
  .ds-section-pairs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--ds-block) var(--ds-s5);align-items:start}
  .ds-section-pairs>*{margin-top:0!important}
  .ds-section-pairs>#details{grid-column:1/-1}
  .ds-section-pairs>#details dl.ds-fields{grid-template-columns:repeat(3,minmax(min-content,2fr) minmax(0,3fr))}
  .ds-section-pairs dl.ds-fields dt{white-space:nowrap}   /* a label on one line, as the mockup (its words are short) */
  .ds-section-pairs>#details dl.ds-fields>div:last-child:nth-child(odd){grid-column:auto/span 2}   /* three a line: a lone last pair keeps its own width */
  .ds-section-pairs>#details dl.ds-fields>div:last-child:nth-child(3n+1){grid-column:1/-1}

}
/* The note that live values are on their way shows only where design.js can fetch them (#553). */
html:not(.ds-js) [data-live-cards]{display:none}
/* A note never touches the section above it or the buttons under it (owner 2026-10-28, #546, every page): 24 px
   above and below the note, and a row of buttons right after a section gets the same 24 px. */
.ds-main :is(.ds-section,.ds-columns,.ds-answers)+p{margin-top:var(--ds-block)}   /* U3: a note under a list of answers too */
.ds-main :is(.ds-section,.ds-columns,:is(.ds-section,.ds-columns)+p)+.ds-actions-row{margin-top:var(--ds-block)}
/* A heading after a block keeps the same 24 px (T42): Products being sent after the answers, Address after the rows,
   a product's Description after the field grid or the text above it (#556), Batches in stock after the PO table or its note (#577). */
:is(.ds-main,.ds-main--side) :is(.ds-section,.ds-columns,.ds-answers,.ds-fields,.ds-more__text,.ds-table-wrap,.ds-secondary-text,.ds-actions-row)+:is(h2,h3){margin-top:var(--ds-block)}   /* .ds-main--side: an old page's shared parts too (#563) */
/* Blocks inside a section (a PO's shipment documents, #547): each keeps the same 24 px to the buttons or paragraph above it
   (T42); so do a field grid and the line after a status on its own line (a product's In the shop, #556), unless that
   line is a status too (the Photos step's colour lines) or a grey caption. */
.ds-main .ds-section>:is(.ds-card,p)+:is(.ds-card,.ds-fields),.ds-main .ds-section>p:has(>.ds-tag:only-child)+p:not(:has(.ds-tag),.ds-secondary-text){margin-top:var(--ds-block)}
/* A field grid after a row of a status and buttons (In the webshop's Categories, #602), on new and old pages alike. */
:is(.ds-main,.ds-main--side) .ds-actions-row+.ds-fields{margin-top:var(--ds-block)}
/* And a heading right after that row (no categories, #602 review): (0,4,1) and later, so the 16 px step after a button
   row (line 213, also (0,4,1)) does not win inside a section. */
.ds-root .ds-main .ds-section>.ds-actions-row+:is(h2,h3){margin-top:var(--ds-block)}
/* And a heading right after a line of text in a section (a product's Latest product sheet: the sheet's line, then its
   first group, #604), on staff's product page and the supplier's own; (0,4,2), so no gap rule above wins. */
.ds-root .ds-main .ds-section>p+:is(h2,h3){margin-top:var(--ds-block)}

/* Status pill (Venture's Small Components): a 1 px border, a small dot, 12 px medium, a word and a colour. */
.ds-tag{display:inline-flex;align-items:center;gap:var(--ds-s2);font-size:var(--ds-fs-small);line-height:24px;font-weight:500;white-space:nowrap;color:var(--ds-tag-neutral-fg)}
.ds-tag:has(+.ds-tag){margin-right:var(--ds-s3)}   /* two side by side never touch (#655); on the first, so a wrapped second is not indented */
/* Below 1440 px two tags in a table cell stack (they had already wrapped in a tight list), so the first's margin no longer widens the column (#635). */
@media (min-width:768px) and (max-width:1439.98px){.ds-table td .ds-tag:is(:has(+.ds-tag),.ds-tag+.ds-tag){display:flex;margin-right:0}}
.ds-page-header__title .ds-tag{margin-right:0}   /* the title row has its own gap */
.ds-tag::before{content:"";flex:none;width:8px;height:8px;border-radius:50%;background:var(--ds-tag-neutral-dot)}
.ds-tag--done{color:var(--ds-tag-done-fg)}
.ds-tag--done::before{background:var(--ds-tag-done-dot)}
.ds-tag--info{color:var(--ds-tag-info-fg)}
.ds-tag--info::before{background:var(--ds-tag-info-dot)}
/* Needs action: one status style everywhere (owner 2026-10-25), the dot and the word in orange, no pill. */
.ds-tag--action{color:var(--ds-tag-action-fg)}
.ds-tag--action::before{background:var(--ds-tag-action-dot)}
/* Blocked in our system (#560): the dot and the word in the error red. */
.ds-tag--error{color:var(--ds-error)}
.ds-tag--error::before{background:var(--ds-error)}

/* A tag with a sentence in it (a notice) may wrap. */
.ds-tag--wrap{align-items:flex-start;padding:var(--ds-s1) var(--ds-s2);white-space:normal}
/* A tag in a sentence column (the review's Problems and questions) wraps instead of setting the column's width (audit v2 UI-01). */
.ds-table td .ds-tag{line-height:var(--ds-cell-line)}   /* a tag is one cell line tall */
.ds-table td.ds-wrap .ds-tag{white-space:normal;align-items:flex-start}
.ds-table td.ds-wrap .ds-tag::before{margin-top:calc((var(--ds-cell-line) - var(--ds-s2)) / 2)}
.ds-tag--wrap::before{margin-top:var(--ds-s2)}
/* A status tag in a grid of cards (a product's Suggested description beside History at 1024 px) wraps inside its card (#781). */
.ds-cards .ds-tag{white-space:normal;align-items:flex-start}
.ds-cards .ds-tag::before{margin-top:var(--ds-s2)}
/* A tag column (`ds-tagcol`: index_table marks a column with a status in any row; a hand-written table marks its own):
   its cells, header too, keep the dot's 8 px room in their own left padding and the dot hangs there, 5 px and 3 px from
   its word. So every word in the column, tag or plain, starts at one edge (owner, 16 Nov 2026, FINAL5 OWN-4), and with
   the column before's padding at least 12 px stay between its content and a dot (OWN-17). Not below 768 px, where a cell
   is a label and its value. From 1440 px two tags side by side keep 24 px between them, room for the second's dot. */
@media (min-width:768px){
  .ds-table :is(th,td).ds-tagcol{padding-left:calc(var(--ds-cell-x) + var(--ds-s2))}
  .ds-table td.ds-tagcol .ds-tag{position:relative}
  .ds-table td.ds-tagcol .ds-tag--wrap{padding-inline:0}   /* a sentence tag too (the review's Problems and questions) */
  .ds-table td.ds-tagcol .ds-tag::before{position:absolute;top:calc((var(--ds-cell-line) - 5px) / 2);right:calc(100% + var(--ds-s1) - 1px);width:5px;height:5px;margin-top:0}
}
@media (min-width:1440px){.ds-table td.ds-tagcol .ds-tag:has(+.ds-tag){margin-right:var(--ds-s5)}}
/* One line a row (owner, 16 Nov 2026, FINAL5 OWN-5, OWN-16): a list page's table and Home's queues (data-one-line). A
   line under a value follows it on its line, capped with an ellipsis; several statuses stand side by side. Below
   1440 px a row shows its first status and "+N" (status_tags), the category pills and grey sub-lines go (a late count
   stays), so the row and the table fit beside the sidebar. */
@media (min-width:768px){
  .ds-table-wrap[data-one-line] .ds-table td{white-space:nowrap}
  .ds-table-wrap[data-one-line] .ds-table td :is(.ds-cell-under,.ds-cell-sub){display:inline-block;width:auto;min-width:0;max-width:24ch;margin:0 0 0 var(--ds-s2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:top}
  .ds-table-wrap[data-one-line] .ds-table td.ds-cap .ds-cap__text{display:inline-block;vertical-align:top;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .ds-table-wrap[data-one-line] .ds-table td.ds-cap a.ds-cap__text{line-height:var(--ds-control)}   /* its words in the middle of its target, on the row's line as the cells beside it (UI-02) */
  .ds-table-wrap[data-one-line] .ds-table td.ds-cap:not(.ds-cap--narrow) .ds-cap__text{max-width:24ch}   /* a long name on one line: its first 24 characters, the whole in its title (a 49-character supplier at 1024 px) */
  .ds-table-wrap[data-one-line] .ds-table td .ds-tag{display:inline-flex;margin-right:0;white-space:nowrap}
  .ds-table-wrap[data-one-line] .ds-table td .ds-tag+.ds-tag{margin-left:var(--ds-s4)}   /* the second's dot keeps its room */
  .ds-table-wrap[data-one-line] .ds-table td .ds-why{display:inline-block;max-width:44ch;overflow:hidden;text-overflow:ellipsis;vertical-align:top}
  .ds-table-wrap[data-one-line] .ds-table td.ds-tagcol .ds-why{margin-left:calc(-1 * var(--ds-s2));padding-left:var(--ds-s2)}   /* the clip box takes in the tag's hanging dot */
  .ds-table-wrap[data-one-line] .ds-table td .ds-steps{display:inline-flex;margin-left:var(--ds-s2);vertical-align:middle}
  .ds-table-wrap[data-one-line] .ds-tags__more{display:none}
}
/* Home's queues beside the right column below 1200 px (220 px from 768 px): a row may take a second line, so the
   queue keeps to its card with a long PO number or a Norwegian reason (owner after T149, T150); one line from 1200 px. */
/* A long, unbreakable number in Needs you's first column: an ellipsis from 1200 px (the row keeps one line and its
   button inside the card; a task with its line under it keeps that line's own cap), a break below. */
@media (min-width:1200px){#needs .ds-table-wrap[data-one-line] .ds-table td:first-child:not(:has(>.ds-cell-under:not(:has(>.ds-until-1200:only-child)))){max-width:20ch;overflow:hidden;text-overflow:ellipsis}
  #needs .ds-table-wrap[data-one-line] .ds-table td:first-child>a{display:block;max-width:100%;padding-top:calc((var(--ds-control) - var(--ds-cell-line)) / 2);width:fit-content;overflow:hidden;text-overflow:ellipsis}   /* a block as wide as its words (so the cell's empty space is no link), in its tap-target box: the padding sets its text level with the other cells (owner, 3 Dec 2026) */
  #needs .ds-table-wrap[data-one-line] .ds-table td:first-child>.ds-cell-under{display:none}}   /* a task's sentence or kind is on its page and in its tag: one line (OWN-16, tester T160) */
/* Needs you from 1200 px (testers T160, T161; owner, 30 Nov 2026, option C): fixed column widths, so the queue cannot
   pass its card at any width. Below 1680 px Home's side cards sit under it, so the card is full width; from 1680 px staff
   Home's stand beside it (owner, 2 Dec 2026). Waiting and the button take
   what their words need in en and nb, on one line; the task and the supplier take a share each and the reason the
   rest, so no column holds a wide empty gap. The supplier's whole name shows with its number, cut at its column's edge
   only when the card is too narrow (an exception to S23's 10 characters, Needs you only; DESIGN.md). A reason may take
   a second line rather than leave the card; the reset's warning is one line under its tag, cut with an ellipsis. */
@media (min-width:1200px){
  #needs .ds-table-wrap[data-one-line] .ds-table{table-layout:fixed;width:100%}
  #needs .ds-table col.ds-q-what{width:16%}
  #needs .ds-table col.ds-q-vendor{width:22%}
  #needs .ds-table col.ds-q-wait{width:11rem}   /* "Waiting since today", nb "Venter i 216 dager", on one line */
  #needs .ds-table col.ds-q-do{width:15rem}   /* the button's label on one line (item 2): nb "Se hva som skal oppdateres", with room for Linux font widths */
  #needs .ds-table:not(:has(col.ds-q-vendor)) col.ds-q-what{width:30%}   /* the supplier's Home: no Supplier column */
  #needs .ds-table-wrap[data-one-line] .ds-table td{min-width:0;overflow:hidden;text-overflow:ellipsis}
  #needs .ds-table-wrap[data-one-line] .ds-table td :focus-visible{outline-offset:1px}   /* 2 px ring + 1 px fits the cell's 3 px, so overflow:hidden never clips it (tester T162) */
  #needs .ds-table-wrap[data-one-line] .ds-table td.ds-cap .ds-cap__text{max-width:100%}
  #needs .ds-table-wrap[data-one-line] .ds-table td.ds-cap.ds-from-1200 .ds-cap__text{max-width:calc(100% - 6ch - var(--ds-s2))}   /* the supplier's name cuts first, so its number after it stays whole */
  #needs .ds-table-wrap[data-one-line] .ds-table td:first-child{max-width:none}
  #needs .ds-table-wrap[data-one-line] .ds-table td .ds-why{max-width:100%;white-space:normal}
  #needs .ds-table-wrap[data-one-line] .ds-table td .ds-why .ds-tag{white-space:normal}   /* a long reason wraps, never cut */
  #needs .ds-table-wrap[data-one-line] .ds-table td:nth-last-child(2):not(:has(.ds-why)){white-space:nowrap}
}
@media (min-width:1440px){#needs .ds-table col.ds-q-what{width:22%}#needs .ds-table col.ds-q-vendor{width:26%}}
/* From 1600 px the supplier's Home (four columns) shares a wide card's spare width: Waiting and the button a fifth each,
   so the reason does not hold a wide gap (owner, 30 Nov 2026). Plain percentages: Chrome reads a max() with a percentage
   on a fixed table's column as the percentage alone. */
@media (min-width:1600px){#needs .ds-table:not(:has(col.ds-q-vendor)) :is(col.ds-q-wait,col.ds-q-do){width:20%}}
.ds-table td .ds-queue-warn{display:block;max-width:100%;margin-top:var(--ds-s1);overflow:hidden;color:var(--ds-ink-2);font-size:var(--ds-fs-small);white-space:nowrap;text-overflow:ellipsis}   /* a password reset's check, under its tag: the one second line in Needs you, one line, its whole sentence in its title (owner, 2 Dec 2026); from 768 px contain keeps the long line from widening an auto-layout table below 1200 px; a phone's card wraps it */
@media (min-width:768px){.ds-table td .ds-queue-warn{contain:inline-size}}
@media (max-width:767.98px){.ds-table td .ds-queue-warn{white-space:normal}}
#waiting .ds-table-wrap[data-one-line] .ds-table td:first-child,#waiting .ds-table-wrap[data-one-line] .ds-table td:first-child .ds-cell-under{white-space:normal}   /* Waiting on others: a long task and its line may wrap (OWN-16 is Needs you's rule) */
@media (max-width:767.98px){:is(#needs,#waiting) .ds-table td:first-child{overflow-wrap:anywhere}:is(#needs,#waiting) .ds-table td:first-child>*{min-width:0}
  :is(#needs,#waiting) .ds-table td .ds-cell-under--inline{white-space:normal}}   /* a phone's card: a long line under a task wraps */
@media (min-width:768px) and (max-width:1279.98px){   /* to 1280 px, where the right column widens (OWN-7): Linux fonts ran 2-5 px over at 1200 */
  :is(#needs,#waiting) .ds-table-wrap[data-one-line] .ds-table td:not(:last-child){white-space:normal;overflow-wrap:anywhere}
  :is(#needs,#waiting) .ds-table-wrap[data-one-line] .ds-table td :is(.ds-cell-under,.ds-cell-sub,.ds-why){display:inline;max-width:none;overflow:visible;white-space:normal}
  :is(#needs,#waiting) .ds-table-wrap[data-one-line] .ds-table td .ds-why .ds-tag{white-space:normal}   /* a long reason (nb "Forbi datoen leverandøren oppga") wraps here (T160) */
}
@media (min-width:1680px){.ds-table-wrap[data-one-line] .ds-table td.ds-cap:not(.ds-cap--narrow) .ds-cap__text{max-width:32ch}}
@media (min-width:1440px) and (max-width:1679.98px){.ds-table-wrap[data-one-line] .ds-table td :is(.ds-cell-under,.ds-cell-sub):not(:has(.ds-pill,.ds-tag)){max-width:12ch}}   /* beside the sidebar at 1440 px a line under a value keeps 12 characters (two buttons in a row, r3), so Suppliers fits (OWN-5); a pill or a status tag keeps the 24 of every width, so its word is whole */
@media (min-width:1440px) and (max-width:1679.98px){.ds-table-wrap[data-one-line] .ds-table td .ds-steps{display:none}}
@media (min-width:768px) and (max-width:1679.98px){.ds-table-wrap[data-one-line] .ds-table td.ds-cap:not(.ds-cap--narrow) .ds-cap__text{max-width:20ch}}   /* Suppliers ran 17 px over at 1440 (CI's Linux fonts) and 4 px at 1024 (nb, T160) with 24 */   /* Suppliers' step bar (its word carries the meaning): a long name and two buttons fit (r3) */
@media (min-width:768px){.ds-table-wrap[data-one-line] .ds-table td.ds-cap.ds-cap--short:not(.ds-cap--narrow) .ds-cap__text{max-width:10ch}}   /* from 768 px the PO list's Supplier is cut at 10 characters (owner, 20 Nov 2026), its whole name in its title and its vendor number outside the cut */
@media (min-width:1440px){.ds-table-wrap[data-one-line] .ds-table:not(:has(col.ds-q-vendor)) td.ds-cap.ds-cap--short.ds-cap--whole:not(.ds-cap--narrow) .ds-cap__text{max-width:32ch}}   /* from 1440 px the PO list's whole supplier name, up to 32 characters (ds-cap--whole, owner, 2 Dec 2026, replacing the 10-character cut there) */
@media (min-width:1440px){.ds-table-wrap[data-one-line] .ds-table:not(:has(col.ds-q-vendor)) td.ds-cap.ds-cap--short:not(.ds-cap--narrow,.ds-cap--whole) .ds-cap__text{max-width:16ch}}   /* the calendar's, Shipment documents' and the warehouse lists' short names: 16 characters from 1440 px (owner picker, 2 Dec 2026); Home's queue (ds-q-vendor) keeps its own */
@media (min-width:1440px){.ds-detail--from-list .ds-table-wrap[data-one-line] .ds-table:not(:has(col.ds-q-vendor)) td.ds-cap.ds-cap--short:not(.ds-cap--narrow) .ds-cap__text{max-width:16ch}}   /* beside its Notes (the calendar, Shipment documents) 16 characters, as a list's other names there, so its last column stays in its card (P303) */
@media (min-width:1680px){.ds-calendar-list .ds-table-wrap[data-one-line] .ds-table:not(:has(col.ds-q-vendor)) td.ds-cap.ds-cap--short:not(.ds-cap--narrow) .ds-cap__text{max-width:16ch}}   /* the calendar's two lists side by side from 1680 px: 16 characters, so To come stays in its card (P303) */
/* A list beside its Notes (from 1280 px, owner 20 Nov 2026) is 330 px narrower: up to 1679 px its row shows its first
   status and "+N", as below 1440 px, and a name is cut at 16 characters; up to 1439 px a row's button and a long
   number may take two lines, so the list never scrolls sideways (the supplier's Purchase orders, Incoming products, nb). */
@media (min-width:1280px) and (max-width:1679.98px){
  .ds-detail--from-list .ds-table-wrap[data-one-line] .ds-tags>.ds-tag:not(:first-child){display:none}
  .ds-detail--from-list .ds-table-wrap[data-one-line] .ds-tags__more{display:inline-block;margin-left:var(--ds-s2)}
  .ds-detail--from-list .ds-table td.ds-cap:not(.ds-cap--narrow,.ds-cap--short) .ds-cap__text{max-width:16ch}   /* a name cut at 16 characters, whole in its title */
  .ds-detail--from-list .ds-table td:is(.ds-wrap,:has(p:not(dialog p),ul,ol,br)){min-width:7em}   /* a wrapping cell's floor as below 1440 px */
  .ds-detail--from-list .ds-table:has(th.ds-fill) td.ds-wrap:not(.ds-fill){min-width:7em}   /* not #706's 240 px: the column that takes the spare width (Draft products' Fixed) still gets it */
}
@media (min-width:1280px) and (max-width:1439.98px){
  .ds-detail--from-list .ds-table-wrap[data-one-line] .ds-table td:last-child .ds-button{height:auto;min-height:var(--ds-control);white-space:normal;text-align:center}
  .ds-detail--from-list .ds-table-wrap[data-one-line] .ds-table td:last-child{white-space:normal}
  .ds-detail--from-list .ds-table-wrap[data-one-line] .ds-table td.ds-num{white-space:normal}   /* "40 000 av / 52 500" on two lines */
}
@media (min-width:768px) and (max-width:1439.98px){
  .ds-table-wrap[data-one-line] .ds-tags>.ds-tag:not(:first-child){display:none}
  .ds-table-wrap[data-one-line] .ds-tags__more{display:inline-block;margin-left:var(--ds-s2)}
  .ds-table-wrap[data-one-line] .ds-table td :is(.ds-cell-under:has(.ds-pill),.ds-cell-sub:not(.is-late)){display:none}
}
@media (max-width:767.98px){.ds-table-wrap[data-one-line] .ds-table td .ds-cell-under:has(.ds-pill){display:none}}   /* a phone's card: no pills either, as before OWN-5 (#635) */
/* The PO list's supplier number stays beside its cut name below 1440 px; only the pills after it go. */
@media (max-width:1439.98px){.ds-table-wrap[data-one-line] .ds-table td.ds-cap--short .ds-cell-under{display:inline-block}.ds-table-wrap[data-one-line] .ds-table td.ds-cap--short .ds-cell-under :is(.ds-pill,.ds-secondary-text,.ds-tag){display:none}}   /* the vendor number in the name's title (TABLE-01), a Test tag from 1440 px (S3) */

/* Progress: a native <progress>, so no inline style is needed. */
.ds-progress{display:block;width:100%;max-width:420px;height:8px;border:0;border-radius:var(--ds-r-pill);background:var(--ds-border-strong);overflow:hidden;appearance:none;-webkit-appearance:none}
.ds-progress::-webkit-progress-bar{background:var(--ds-border-strong);border-radius:var(--ds-r-pill)}   /* a visible track, so 0 of 48 reads as an empty bar (#522) */
.ds-progress::-webkit-progress-value{background:var(--ds-ink);border-radius:var(--ds-r-pill)}
.ds-progress::-moz-progress-bar{background:var(--ds-ink);border-radius:var(--ds-r-pill)}
.ds-highlight .ds-progress{max-width:none}

/* Delivery calendar (owner, 20 Nov 2026, calendar mockup v2): Previous, the month, Next and Today in one row at the top;
   the counts, the grid and the two tables are shared components. */
.ds-main .ds-calendar__nav h2{margin:0;min-width:9ch;text-align:center}
/* The month grid (UI/UX batch item 4): 7 columns, Monday first; each PO one link in its tone, the icon names the
   tone (truck expected, warning late, half box partly delivered). The list under it stays for screen readers and
   phones; the grid hides below 768 px. */
.ds-month{margin:var(--ds-s4) 0;border:1px solid var(--ds-line);border-radius:var(--ds-r);overflow:hidden;background:var(--ds-bg)}
.ds-month__head,.ds-month__days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}
.ds-month__head{background:var(--ds-nav);color:var(--ds-on-ink);font-size:var(--ds-fs-label);font-weight:600;letter-spacing:var(--ds-head-caps)}
.ds-month__head span{padding:var(--ds-s2) var(--ds-s3)}
.ds-month__days{margin:0;padding:0;list-style:none}
.ds-month__day{min-height:96px;min-width:0;padding:var(--ds-s2);border-top:1px solid var(--ds-line);border-left:1px solid var(--ds-line);display:flex;flex-direction:column;gap:var(--ds-s1)}
.ds-month__day:nth-child(7n+1){border-left:0}
.ds-month__day.is-other{background:var(--ds-page);color:var(--ds-ink-2)}
.ds-month__day.is-today{box-shadow:inset 0 0 0 2px var(--ds-primary)}
.ds-month__date{font-size:var(--ds-fs-small);font-weight:600}
.ds-month__day.is-today .ds-month__date{align-self:flex-start;min-width:24px;padding:0 var(--ds-s1);border-radius:var(--ds-r-pill);background:var(--ds-primary);color:var(--ds-on-primary);text-align:center}
.ds-month__po{display:block;padding:var(--ds-s1) var(--ds-s2);border-left:3px solid var(--ds-tag-info-dot);border-radius:var(--ds-r-check);background:var(--ds-tag-info-bg);color:var(--ds-ink);font-size:var(--ds-fs-meta);text-decoration:none;overflow-wrap:anywhere}
.ds-month__po:hover{text-decoration:underline}
.ds-month__po strong{display:block}
.ds-month__po .ds-icon{float:right;margin-left:var(--ds-s1);color:var(--ds-tag-info-fg)}
.ds-month__po--late{border-left-color:var(--ds-error);background:var(--ds-error-bg)}
.ds-month__po--late .ds-icon{color:var(--ds-error)}
.ds-month__po--partial{border-left-color:var(--ds-tag-action-dot);background:var(--ds-tag-action-bg)}
.ds-month__po--partial .ds-icon{color:var(--ds-tag-action-fg)}
.ds-month__po--done{border-left-color:var(--ds-tag-done-dot);background:var(--ds-tag-done-bg)}
.ds-month__po--done .ds-icon,.ds-month__po--done .ds-month__po-note{color:var(--ds-tag-done-fg)}
.ds-month__po span{display:block}
.ds-month__po-note{display:block;color:var(--ds-ink-2)}
.ds-month__po--partial .ds-month__po-note{color:var(--ds-tag-action-fg)}
.ds-month__legend{display:flex;flex-wrap:wrap;gap:var(--ds-s4);margin:0 0 var(--ds-s5);padding:0;list-style:none;font-size:var(--ds-fs-small);color:var(--ds-ink-2)}
.ds-month__legend li{display:flex;align-items:center;gap:var(--ds-s1)}
.ds-month__legend .is-late{color:var(--ds-error)}
.ds-month__legend .is-partial{color:var(--ds-tag-action-fg)}
.ds-month__legend .is-expected{color:var(--ds-tag-info-fg)}
.ds-month__legend .is-done{color:var(--ds-tag-done-fg)}
@media (max-width:767.98px){.ds-month,.ds-month__legend{display:none}}

/* Index table (Venture's Table, the mockup): a bordered card, a light grey head row, roomy rows (about 56 px) divided by 1 px lines. */
.ds-table-wrap{position:relative;width:100%;overflow-x:auto;border-radius:var(--ds-r);background:var(--ds-bg);box-shadow:var(--ds-elev)}
/* Inside a card a table is no second card: a hairline ring only. */
:is(.ds-card,.ds-section,.ds-highlight) .ds-table-wrap{box-shadow:0 0 0 1px var(--ds-line)}
.ds-table{width:100%;border-collapse:collapse;font-size:var(--ds-fs-small)}
/* 14 px cells from 1440 px (section 7.2); below, 13 px keeps every list inside its card beside the sidebar (#635). */
@media (min-width:1440px){.ds-table{font-size:var(--ds-fs-body)}}
.ds-table td span.ds-secondary-text{line-height:1}   /* a 13 px grey part on a 14 px line keeps the row one line tall */
/* Compact tables, every table (owner, 16 Nov 2026, FINAL5 OWN-5, replacing the 40 px rows and the compact option of
   13 Nov): from 1024 px a one-line row is 33 px (6 + 20 + 6 and its 1 px line), cells 10 px at the sides (6 px up to
   1439 px, #680), and a control in a cell (button, field, select, link target) 28 px; below 1024 px every tap target
   keeps 44 px. A dialog and a menu in a cell keep the page's 36 px; the review's Approve / Send back are 28 px too
   (FINAL5 UI-04), so they stay inside their row's lines. */
@media (min-width:1024px){
  .ds-table{--ds-cell-y:6px;--ds-cell-x:10px;--ds-cell-line:20px;--ds-control:var(--ds-control-sm);--ds-button:var(--ds-control-sm);--ds-input:var(--ds-control-sm)}
  .ds-table :is(.ds-dialog,.ds-actions__list){--ds-control:36px;--ds-button:36px;--ds-input:36px}
  /* Sticky head (owner 2026-11-12, option C): design.js marks a box whose table fits (data-fits); it then lets its
     table overflow visibly, so the head sticks under the top bar. A wider table keeps scrolling in its box. */
  .ds-table-wrap[data-fits]{overflow:visible}
  /* A fitting box no longer clips its table, so the corner cells take the box's round corners themselves (not
     overflow:clip, which would stop the head sticking again). */
  .ds-table-wrap[data-fits]>.ds-table>thead>tr>th:first-child{border-top-left-radius:calc(var(--ds-r) - 1px)}
  .ds-table-wrap[data-fits]>.ds-table>thead>tr>th:last-child{border-top-right-radius:calc(var(--ds-r) - 1px)}
  .ds-table-wrap[data-fits]>.ds-table>tbody>tr:last-child>td:first-child{border-bottom-left-radius:calc(var(--ds-r) - 1px)}
  .ds-table-wrap[data-fits]>.ds-table>tbody>tr:last-child>td:last-child{border-bottom-right-radius:calc(var(--ds-r) - 1px)}
  /* A row brought into view (a jump), or a link, button or field in it (Shift+Tab: the browser scrolls the focused
     element, not its row, T138), stops under the top bar and a head of up to two lines (1024 px wraps it). */
  .ds-table-wrap[data-fits]>.ds-table>tbody :is(tr,a,button,input,select,textarea,summary,[tabindex]){scroll-margin-top:calc(var(--ds-topbar) + var(--ds-gutter) + 2 * var(--ds-s7))}
  .ds-table-wrap[data-fits]>.ds-table>thead{position:sticky;top:calc(var(--ds-topbar) + var(--ds-gutter));z-index:2}   /* the whole head row, not each th: a sticky th is its own layer and hides the column grip that overhangs the next one */
  .ds-table td .ds-pill{line-height:var(--ds-cell-line)}   /* a category pill is one cell line tall */
  .ds-table td :is(.ds-input:not(textarea),.ds-select,.ds-button):not(.ds-dialog *,.ds-choice-row *){height:var(--ds-control);min-height:0;padding-block:0;font-size:var(--ds-fs-small)}
}
/* A table is as wide as its content, up to the column; the empty space stays to the right (owner, 2026-11-12, audit 4
   amendment 1; it replaces the 2026-10-31 compact variant of Batches in stock). A list page's list (`data-list`) fills the
   column and scrolls in its box; Settings' switch tables keep it too, so their control columns line up (#513). A row's
   actions cell keeps no sentence floor, so no gap opens before its button. */
@media (min-width:768px){.ds-table-wrap{width:fit-content;max-width:100%}.ds-table-wrap:is([data-list],:has(>.ds-table--switches)){width:100%}.ds-table-wrap[data-action] .ds-table td:last-child{min-width:0}}
.ds-table th{padding:var(--ds-cell-y) var(--ds-cell-x);border-bottom:1px solid var(--ds-line-2);line-height:var(--ds-cell-line);background:var(--ds-table-head);color:var(--ds-ink-2);font-size:var(--ds-fs-label);font-weight:600;text-align:left}   /* 11 px semibold, in sentence case like every heading (owner, 20 Nov 2026; section 7.6) */
/* Every table's header row is the sidebar's navy with white names (owner, 16 Nov 2026, FINAL5 OWN-27); a row's own
   heading in the body (a group row) keeps the light head. */
:is(.ds-table,table:is(.list,.rows))>thead th{border-bottom-color:var(--ds-nav);background:var(--ds-nav);color:var(--ds-nav-ink-strong)}
/* Every table's header row is the navy band, in a titled card too (owner, standing rule of 20 Nov 2026, replacing FINAL5
   OWN-36 b's light head), with a thin divider between column titles: a list's column grip draws it, any other header
   its own 1 px line, 56 % of its height. */
:is(.ds-table,table:is(.list,.rows))>thead th:not(:last-child):not(:has(>.ds-col-grip)){background-image:linear-gradient(var(--ds-border-strong),var(--ds-border-strong));background-size:1px 56%;background-position:right center;background-repeat:no-repeat}
/* One cell rule: every cell starts at the top of its row (owner, 2026-11-12, audit v2 UI-01, replacing #551's centring), so
   a decision stays level with the product and the problem it answers; on 24 px lines (20 px from 1024 px) whether it holds
   text that wraps, a tag, a field or a button (below, a control takes one line of layout). */
.ds-table td{padding:var(--ds-cell-y) var(--ds-cell-x);vertical-align:top;line-height:var(--ds-cell-line)}
/* A 28 px control in a 20 px line reaches 4 px into its cell's padding, so the table's box gives it that room back under
   the last row (the rows keep their one-line height): a row's button never sits on the table's bottom edge (owner,
   20 Nov 2026). */
@media (min-width:1024px){.ds-table-wrap:has(>.ds-table>tbody>tr:last-child>td :is(.ds-button,.ds-input,.ds-select)){padding-bottom:var(--ds-s1)}}
/* The pinned product head (#568, .ds-pin) paints the page's white over the page's side padding (32 px, the old pages'
   20 px) at its own height, so a card that scrolls under it shows no side border beside it (#582). Two unblurred
   shadows shifted sideways cover exactly its height, add no scrolling and clip nothing (a menu in the head still opens). */
.ds-pin{box-shadow:calc(-1 * var(--ds-s6)) 0 0 var(--ds-page),var(--ds-s6) 0 0 var(--ds-page)}
/* One table look on every page, new and old (owner 2026-10-30, #576: "make sure all tables are like that"): the
   head row above, then rows in stripes, every other one --ds-stripe-row with no lines between them, and the hover
   --ds-row-hover (owner, 20 Nov 2026, option C, replacing 13 Nov's hairlines and no stripes), in the table's card. A
   group's heading row, an empty list's row and a follow-up line do not count in the stripes; a follow-up line takes
   its row's stripe. The Import file page's tables (table.list in a .scroll, drawn by builder.js) take the same rules here, so one change
   reaches them all; tests/test_tables_look.py fails on a table without one of the three classes. A row's follow-up
   lines (.ds-sub, and the old pages' .issues, .asks and .more-line) keep the colour of the row above them, and a
   row with a problem (.bad, .badcell) keeps its red. Phones show tables as cards, so this starts at 768 px (641 px
   for the old tables, where their cards stop). */
@media (min-width:768px){
  .ds-table>tbody>tr:not(.bad)>td:not(.badcell){background:var(--ds-bg)}
  .ds-table>tbody>tr:nth-child(even of :not(.ds-sub,.ds-table__span,.ds-table__empty)):not(.bad,.ds-sub,.ds-table__span)>td:not(.badcell),
  .ds-table>tbody>tr:nth-child(even of :not(.ds-sub,.ds-table__span,.ds-table__empty)):not(.bad)+tr.ds-sub>td:not(.badcell){background:var(--ds-stripe-row)}
  /* doubled class: must outrank a row's own background above */
  .ds-table.ds-table>tbody>tr:not(:has(>th)):is(:hover,.ds-row-link:focus-within)>td:not(.badcell){background:var(--ds-row-hover)}
  .ds-table>tbody>tr:not(:has(>th)):is(:hover,.ds-row-link:focus-within){--ds-tag-action-fg:var(--ds-tag-action-fg-hover);--ds-tag-done-fg:var(--ds-tag-done-fg-hover)}
}
@media (min-width:641px){
  .scroll:has(>table:is(.list,.rows)),.card .scroll:has(>table:is(.list,.rows)){box-sizing:border-box;width:auto;max-width:100%;margin:0 0 var(--ds-s4);border:0;border-radius:var(--ds-r);box-shadow:var(--ds-elev);background:var(--ds-bg)}
  .scroll:has(>table.rows){width:fit-content}
  .card>.scroll:has(>table:is(.list,.rows)):last-child{margin-bottom:0}
  table:is(.list,.rows) th{border-bottom:1px solid var(--ds-line-2);background:var(--ds-table-head);color:var(--ds-ink-2);font-size:var(--ds-fs-label);font-weight:600}
  table:is(.list,.rows)>tbody>tr:not(.bad)>td:not(.badcell){background:var(--ds-bg)}
  table:is(.list,.rows)>tbody>tr:nth-child(even of :not(.issues,.asks,.more-line)):not(.bad,.issues,.asks,.more-line)>td:not(.badcell),
  table:is(.list,.rows)>tbody>tr:nth-child(even of :not(.issues,.asks,.more-line)):not(.bad)+tr:is(.issues,.asks,.more-line)>td:not(.badcell){background:var(--ds-stripe-row)}
  table:is(.list,.rows)>tbody>tr:not(:has(>th)):is(:hover,.go:has(a.row-link:focus-visible))>td:not(.badcell){background:var(--ds-row-hover)}
  table:is(.list,.rows)>tbody>tr:not(:has(>th)):is(:hover,.go:has(a.row-link:focus-visible)){--ds-tag-action-fg:var(--ds-tag-action-fg-hover);--ds-tag-done-fg:var(--ds-tag-done-fg-hover)}
}
/* Cells and headers wrap, so a list fits its box at laptop width (owner 2026-10-23); number cells, pills and links stay on one line, and a long sentence (index_table adds ds-wrap above 48 characters) gets room. */
.ds-table td.ds-wrap,.ds-table td:has(p:not(dialog p),ul,ol,br){min-width:160px;white-space:normal}
.ds-table td.ds-wrap{overflow-wrap:anywhere}   /* a word longer than the column breaks rather than widen the table (#426, audit v2 UI-11) */
/* Below 1440 px the floor is 7em (#633, #635): 160 px on a short wrapping cell (a button, "Not set") pushed the last column
   past its card at 1024 px, and no floor squeezed a sentence to a word a line. */
@media (min-width:768px) and (max-width:1439.98px){.ds-table td.ds-wrap,.ds-table td:has(p:not(dialog p),ul,ol,br){min-width:7em}}
/* A row that opens its page (index_table's link column, design.js): the pointer, a hover and a focus ring (#506). */
/* An empty list keeps its header row; its text is one quiet row across every column (item 5), no hover, no dashed box. */
.ds-table.ds-table>tbody>tr.ds-table__empty.ds-table__empty>td:not(.badcell){background:var(--ds-bg);color:var(--ds-ink-2);text-align:left;white-space:normal}
.ds-table .ds-table__empty .ds-empty{padding:var(--ds-s3) 0;border:0}   /* an empty list's text and button keep the normal gap to the head and the card edge (S22, owner 23 Nov) */
.ds-table .ds-table__empty .ds-empty .ds-button{margin-block:var(--ds-s3) 0}   /* not a row's button: its text never touches it (owner, 3 Dec 2026) */
.ds-table tr.ds-row-link{cursor:pointer}
.ds-table tbody tr.ds-row-link:hover td,.ds-table tbody tr.ds-row-link:focus-within td{background:var(--ds-hover)}
.ds-table tr.ds-row-link:focus-within{outline:2px solid var(--ds-ink);outline-offset:-2px}
/* At laptop widths the cells keep 6 px at the sides, so a wide list still fits beside the sidebar (owner, 2026-11-07, #680;
   10 px at 1024 px made Incoming products scroll); from 1440 px they take the compact tables' 10 px. */
@media (min-width:768px) and (max-width:1439.98px){.ds-table{--ds-cell-x:var(--ds-cell-side)}   /* the sides token itself, so every cell rule that reads --ds-cell-x agrees */
  .ds-table :is(th,td):last-child{padding-right:var(--ds-s2)}}   /* the row's edge keeps 8 px, so a last header's arrow and the row buttons under it still line up */
/* A row's actions sit in the last column, centred in it (owner, 20 Nov 2026, D6, replacing OWN-36 e's left edge and
   #522's right edge); its header has no words on screen (OWN-36 a). */
.ds-table-wrap[data-action] .ds-table :is(th,td):last-child{text-align:center}
@media (min-width:768px){.ds-table-wrap[data-fit][data-action]:not([data-list]) .ds-table col.ds-col--action{width:1px}}   /* a row's Actions column is as wide as its buttons: in a card the table fills it (flush edges), and the spare width went to this last column, 215 px around a 94 px button (#787) */
/* A header that sorts its list (#535): its arrow always shows (#551), a grey ▲ over ▼ (half a step apart, as the mockup); on the lit one the half that
   shows the order is ink (owner, 2026-10-31). */
.ds-sort{color:inherit;text-decoration:none}
.ds-sort:hover,.ds-sort:focus-visible{color:var(--ds-nav-ink-strong);text-decoration:underline}
/* #557: every column has one, so the arrow hangs into the header's right padding and widens no text column. */
/* Thin chevrons (owner, 16 Nov 2026, FINAL5 OWN-23): up and down in the sidebar's muted ink on every sortable header, so
   each shows it sorts; the sorted one shows only its way, in white (OWN-6, OWN-27). */
.ds-sort__arrow{display:inline-block;width:10px;height:14px;vertical-align:-2px;margin-left:var(--ds-s1);margin-right:calc(-1 * var(--ds-s1));background:var(--ds-nav-muted);--ds-chev:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 14' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 5l3-3 3 3M2 9l3 3 3-3'/%3E%3C/svg%3E");-webkit-mask:var(--ds-chev) center/contain no-repeat;mask:var(--ds-chev) center/contain no-repeat}   /* half the 8 px padding: clear of the column line (T130) */
th[aria-sort=ascending] .ds-sort__arrow{background:var(--ds-nav-ink-strong);--ds-chev:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 14' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 9l3-3 3 3'/%3E%3C/svg%3E")}
th[aria-sort=descending] .ds-sort__arrow{background:var(--ds-nav-ink-strong);--ds-chev:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 14' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 5l3 3 3-3'/%3E%3C/svg%3E")}
/* A number's header keeps its arrow inside its 24 px padding; a header's (i) sits after its arrow, not on it. */
.ds-table :is(th.ds-num,th:has(.ds-tip)) .ds-sort__arrow{margin-right:0}
.ds-table-wrap[data-action] .ds-table td:last-child .ds-actions-row:not(.ds-dialog .ds-actions-row){justify-content:center}   /* a dialog in the cell keeps its own row (T134) */
/* From 1440 px (below, cells wrap so a list fits beside the sidebar) the table fills its width and spreads the spare
   width over every column (owner, 2026-10-29, #551, like WooCommerce); a column with sentences (col.ds-wrap) is never
   narrowed. A table with a field in a cell keeps its widths, or the field would shrink to nothing. */
@media (min-width:1440px){
  .ds-table:not(:has(th.ds-wrap)) th{white-space:nowrap}   /* a header keeps to one line (#539), but not in a table with a `wrap` column (the onboarding matrix); below 1440 a long header wraps, so the table fits (#535) */
  .ds-table-wrap[data-fit]:not(:has(td :is(input,select,textarea))) .ds-table col.ds-wrap{width:240px}   /* sentences keep room for a readable line */
  .ds-table-wrap[data-fit]:not(:has(td :is(input,select,textarea))) .ds-table col.ds-flex{width:auto}   /* the column that wraps shares the spare width too (#551) */
  .ds-table-wrap[data-fit]:not(:has(td :is(input,select,textarea))) .ds-table td:not(.ds-wrap){white-space:nowrap}   /* only the spare-width and sentence columns wrap (#535) */
  /* Item 9: a short column never takes spare width; the name (and other text) takes the rest. A dragged table keeps its widths (#709). */
  .ds-table:not(.ds-resized) col.ds-col--sku:not(.ds-flex,.ds-wrap){width:var(--ds-col-sku)}
  .ds-table:not(.ds-resized) col.ds-col--status:not(.ds-flex,.ds-wrap){width:var(--ds-col-status)}
  .ds-table:not(.ds-resized) col.ds-col--date:not(.ds-flex,.ds-wrap){width:var(--ds-col-date)}
  .ds-table:not(.ds-resized) col.ds-col--number:not(.ds-flex,.ds-wrap){width:var(--ds-col-number)}
  .ds-table:not(.ds-resized) col.ds-col--price:not(.ds-flex,.ds-wrap){width:var(--ds-col-price)}
  .ds-table:not(.ds-resized) col.ds-col--action:not(.ds-flex){width:1px}
  .ds-table td.ds-cap .ds-cap__text{max-width:32ch}   /* a name column is capped, its full text in the title (#539) */
}
/* One name rule (owner, 21 Nov 2026, uniformity): a capped name takes at most two lines, the whole name in its title; a
   one-line list (data-one-line, OWN-5) keeps its one line and the PO list's Supplier its short cut (ds-cap--short). */
.ds-table td.ds-cap:not(.ds-cap--short) .ds-cap__text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;white-space:normal}
/* Products' Name and Shop categories, so it fits at 1440 px (#548); from 1680 px there is room for the 32ch cap (#551). */
@media (min-width:1440px) and (max-width:1679.98px){.ds-table td.ds-cap--narrow .ds-cap__text{max-width:17ch}}
.ds-table td.ds-num{white-space:nowrap}
.ds-root .ds-table td a:not(.ds-button,.ds-icon-link){justify-content:flex-start}   /* a short link (a row number) starts where its header starts (#704), not centred in its 36-44 px target */
/* Every column starts at the left like its heading, numbers and quantity fields too (owner, 2026-11-09, #704; they
   were right, #506). A number never runs into the next column (owner 2026-10-25): 24 px on its right, the header the
   same, at every width; a status that is only its tag, and a date, keep to one line so the column fits its content. */
@media (min-width:768px){.ds-table .ds-num:not(:last-child){padding-right:var(--ds-s5)}}
.ds-table td:has(> .ds-tag:only-child:not(.ds-tag--wrap)),.ds-table td[data-sort]:not(.ds-wrap){white-space:nowrap}
.ds-table tfoot td{border-top:1px solid var(--ds-ink);font-weight:500}
/* Column widths (#709, owner 9 Nov 2026: every list, design.js): a line on each heading's right edge, shown while
   its heading is hovered and dark while focused or dragged. Once a column is dragged the table is fixed at the widths shown (--ds-col-w on each
   heading, --ds-table-w on the table); its box scrolls when it is wider. Cut text ends in …, its whole text in a title.
   From 768 px only: a phone shows each row as a card, with no headings. */
th:has(>.ds-col-grip){position:relative}
.ds-col-grip{position:absolute;top:0;right:-5px;z-index:1;width:9px;height:100%;cursor:col-resize;touch-action:none}
/* Hint A (owner 2026-11-10): a short grey line between headings at rest; on hover, focus or drag it is ink and full
   height, and after a moment a hint (data-tip, design.js) says what it does. The last heading has no line at rest. */
.ds-col-grip::after{content:"";position:absolute;top:22%;left:4px;width:1px;height:56%;background:var(--ds-border-strong)}
th:last-child>.ds-col-grip{right:0}   /* the line sits on the border between two headings; the last one stays inside its box */
th:last-child>.ds-col-grip:not(:hover,:focus-visible,.is-dragging)::after{opacity:0}
/* The last shown heading when the columns after it are hidden below 1440 or 1200 px (`ds-from-1440`, `ds-from-1200`) is the
   last one too: its grip stays inside the box, or the list scrolls 4 px sideways (#758: a supplier's Purchase orders). */
@media (max-width:1439.98px){.ds-table th:not(:last-child):not(:has(~th:not(.ds-from-1440)))>.ds-col-grip{right:0}.ds-table th:not(:last-child):not(:has(~th:not(.ds-from-1440)))>.ds-col-grip:not(:hover,:focus-visible,.is-dragging)::after{opacity:0}}
@media (min-width:768px) and (max-width:1199.98px){.ds-table th:not(:last-child):not(:has(~th:not(.ds-from-1440,.ds-from-1200)))>.ds-col-grip{right:0}.ds-table th:not(:last-child):not(:has(~th:not(.ds-from-1440,.ds-from-1200)))>.ds-col-grip:not(:hover,:focus-visible,.is-dragging)::after{opacity:0}}
.ds-col-grip:is(:hover,:focus-visible,.is-dragging)::after{top:0;left:3px;width:3px;height:100%;background:var(--ds-nav-ink-strong)}   /* white on the navy head (OWN-27) */
/* display:none at rest, so the hint never widens a table box; it runs right from the line, left from the last one. */
.ds-col-grip::before{content:attr(data-tip);display:none;position:absolute;top:calc(100% + 4px);left:0;z-index:2;padding:var(--ds-s1) var(--ds-s2);border-radius:var(--ds-r);background:var(--ds-ink);color:var(--ds-bg);font-size:var(--ds-fs-meta);font-weight:500;line-height:1.4;white-space:nowrap;pointer-events:none}
.ds-col-grip[data-tip]:is(:hover,:focus-visible):not(.is-dragging)::before{display:block;animation:ds-tip-in .12s .4s both}
th:last-child>.ds-col-grip::before{left:auto;right:0}
@keyframes ds-tip-in{from{opacity:0}to{opacity:1}}
@media (prefers-reduced-motion:reduce){.ds-col-grip[data-tip]:is(:hover,:focus-visible)::before{animation-duration:0s}}
.ds-col-grip:focus-visible{outline:2px solid var(--ds-ink);outline-offset:-2px}
@media (max-width:767.98px){.ds-col-grip{display:none}}
@media (min-width:768px){
  table.ds-resized{table-layout:fixed;width:var(--ds-table-w)!important;min-width:100%;max-width:none}   /* never narrower than its box (the mockup) */
  table.ds-resized col{width:auto!important}
  table.ds-resized tr:first-child>th{box-sizing:border-box;width:var(--ds-col-w)!important;min-width:0!important;max-width:none!important}
  table.ds-resized td:not(:has(details,dialog,.ds-tip,form,input,select,textarea)){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}   /* one line each */
  /* A heading cuts its words, not its box (TABLE-03): a clipped heading hid half its grip under the next heading, so a
     second drag caught the neighbour and nothing moved. */
  table.ds-resized th{white-space:nowrap}
  table.ds-resized th>:not(.ds-col-grip){display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis}
  /* The drag sets the width, not a name cap (TABLE-02, owner 22 Nov 2026): wider shows the whole name or description,
     narrower cuts it again with an ellipsis, in every table. !important so no cap rule (10, 16, 20, 24 or 32 characters,
     Needs you's, the two-line clamp) wins on specificity. */
  table.ds-resized td.ds-cap .ds-cap__text{display:block!important;max-width:none!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap!important;-webkit-line-clamp:none!important;line-clamp:none!important}
  .ds-table.ds-resized td>a:not(.ds-button,.ds-icon-link){display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:var(--ds-control)}
}
.ds-table td a{font-weight:500;text-decoration:none}
.ds-table td a:hover{text-decoration:underline}
.ds-table td.ds-strong{font-weight:500}
@media (max-width:767.98px){
  .ds-table,.ds-table tbody,.ds-table tfoot,.ds-table tr,.ds-table td{display:block}
  .ds-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  .ds-table-wrap{border:0;border-radius:0;background:none}
  .ds-table tr{margin-bottom:var(--ds-s3);padding:var(--ds-s2) var(--ds-s4);border:1px solid var(--ds-line);border-radius:var(--ds-r);background:var(--ds-bg)}
  .ds-table tbody tr.ds-row-link:hover td,.ds-table tbody tr.ds-row-link:focus-within td{background:none}
  .ds-table td.ds-wrap,.ds-table td:has(p,ul,ol,br){min-width:0}
  .ds-table td{display:flex;justify-content:space-between;gap:var(--ds-s4);padding:var(--ds-s2) 0;white-space:normal;border:0;border-bottom:1px solid var(--ds-line);text-align:right}
  .ds-table td:last-child{border-bottom:0}
  .ds-table td::before{flex:none;max-width:45%;content:attr(data-label);color:var(--ds-ink-2);font-size:var(--ds-fs-meta);font-weight:500;text-align:left}
  .ds-table td:not([data-label])::before{content:none}
  /* A shop table inside a list cell (data-nosort, #558) stays a table, not a stack of phone cards. */
  .ds-table table[data-nosort],.ds-table table[data-nosort] :is(thead,tbody,tr,th,td){all:revert;padding:var(--ds-s1) var(--ds-s2)}
  /* The second line under a cell stays under it in the card, right-aligned, the label left (#554). */
  .ds-table td:has(> .ds-cell-under){flex-wrap:wrap}
  .ds-table td>.ds-cell-under{text-align:right}
  /* Category pills wrap between each other inside the card, right-aligned, the label left (#527). */
  .ds-table td:has(> .ds-pill){flex-wrap:wrap;justify-content:flex-end;gap:var(--ds-s1)}
  .ds-table td:has(> .ds-pill)::before{margin-right:auto}
  /* Read more goes under its line, not squeezed beside it (#498): the label left, the text and Read more stacked right. */
  .ds-table td:has(> .ds-more){display:grid;grid-template-columns:max-content minmax(0,1fr);column-gap:var(--ds-s4)}
  /* A status or notice in a cell wraps instead of running off the card (a long "Photos missing: they come by …"). */
  .ds-table td .ds-tag{display:block;margin-right:0;white-space:normal;text-align:right}
  /* The dot rides inline before the first word, so a wrapped tag keeps it next to its text, not at the far left (V2c). */
  .ds-table td .ds-tag::before{display:inline-block;margin-right:var(--ds-s2);vertical-align:1px}
  .ds-table td:has(> .ds-more){padding-bottom:0}
  .ds-table td:has(> .ds-more)::before{grid-row:span 2;max-width:none;white-space:nowrap}
  /* The 44 px tap target overlaps the text's row instead of adding its own (#498). */
  .ds-table td>.ds-more{grid-column:2;justify-self:end;margin-top:calc(-1 * var(--ds-s3))}
  .ds-table tfoot td{border-top:0}
  .ds-table tfoot td:empty{display:none}
}
/* "Change this order" (#550): its nine columns need ~1,100 px, the PO page's main column has 704 at 1440,
   so below that box width each line is a card, as on a phone, and Units stays in sight (owner, 2026-10-29). */
@media (min-width:768px){#answer .ds-table-wrap{container-type:inline-size;width:100%}}   /* a phone keeps the shared cards above; a size container needs the column's width, not its content's (amendment 1) */
#answer .ds-table td::before{white-space:normal}
#answer .ds-table td .ds-field{margin-bottom:0}   /* a field in a line's cell (What can you do?, U3): the row gives the space */
.ds-table td .ds-error+.ds-input{margin-top:var(--ds-s1)}   /* its message by the field pushes it down, a little apart, instead of under it (#641: every table's cell) */   /* a long label wraps in its box, not on under its field (#555); a table row draws no ::before */
@container (max-width:1099.98px){
  #answer .ds-table,#answer .ds-table tbody,#answer .ds-table tr,#answer .ds-table td{display:block}
  #answer .ds-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  #answer .ds-table tr{padding:var(--ds-s2) var(--ds-s4);border-top:1px solid var(--ds-line)}
  #answer .ds-table tr:first-child{border-top:0}
  #answer .ds-table td{display:flex;justify-content:flex-start;align-items:center;gap:var(--ds-s4);padding:var(--ds-s2) 0;white-space:normal;border:0;text-align:left}   /* each value left, in a column beside its label, as a label and value list (S24, RULE-S24-01: the quantities were pushed right) */
  #answer .ds-table td::before{flex:0 0 45%;max-width:45%;content:attr(data-label);color:var(--ds-ink-2);font-size:var(--ds-fs-meta);font-weight:500;text-align:left}
  #answer .ds-table td .ds-input{width:min(240px,55%)}
  #answer .ds-table td>.ds-field{width:min(240px,55%)}   /* the shared field takes the box; its input fills it (U3) */
  #answer .ds-table td>.ds-field .ds-input{width:100%;max-width:none;margin-block:0}
  #answer .ds-table td>.ds-field .ds-error+.ds-input{margin-top:var(--ds-s1)}   /* under its error it keeps the shared gap (#641) */
}

/* Empty state: a dashed box, one sentence. */
.ds-empty{padding:var(--ds-s4);border:1px dashed var(--ds-border-strong);border-radius:var(--ds-r);color:var(--ds-ink-2)}
.ds-empty .ds-button{margin-top:var(--ds-s3)}
/* InfoTip (#522): a 16 px (i) beside a label with a 24 px tap area; its text in a dark box under it, at most 280 px wide
   and never past the screen edge (design.js shifts it). Hover and focus show it without the script; .is-closed is Escape. */
.ds-tip{position:relative;display:inline-flex;vertical-align:middle;margin-left:var(--ds-s1)}
.ds-tip__button{display:inline-flex;align-items:center;justify-content:center;width:var(--ds-control);height:var(--ds-control);margin:calc((var(--ds-s4) - var(--ds-control)) / 2) 0 calc((var(--ds-s4) - var(--ds-control)) / 2) calc(var(--ds-s4) - var(--ds-control));padding:0;border:0;border-radius:50%;background:none;color:var(--ds-ink-2);cursor:help;justify-content:flex-end}   /* a full tap target that reaches left over the gap, never past its cell */
.ds-table th:has(.ds-tip){white-space:nowrap}   /* a header and its (i) stay on one line */
.ds-table-wrap[data-one-line] .ds-table td :is(.ds-cell-under,.ds-cell-sub,.ds-why):has(.ds-tip){overflow:visible}   /* a one-line cell never cuts an (i) or its text (UI standard F13) */
.ds-sort+.ds-tip .ds-tip__button{margin-left:0;margin-right:calc(-1 * var(--ds-s2));justify-content:flex-start}   /* after a sort arrow the full tap target reaches right, into the cell padding only, so a click on the arrow or the next header sorts (#562) */
.ds-tip__button::before{content:"i";display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;box-sizing:border-box;border:1px solid currentColor;border-radius:50%;background:var(--ds-bg);font:600 var(--ds-fs-label)/1 var(--ds-font)}   /* drawn, so the button reads only its name */
.ds-tip__button:hover,.ds-tip__button:focus-visible{color:var(--ds-ink)}
.ds-tip__text{position:absolute;top:calc(100% + 6px);left:50%;z-index:30;display:none;width:max-content;max-width:min(280px,calc(100vw - 32px));padding:var(--ds-s2) var(--ds-s3);border-radius:var(--ds-r);background:var(--ds-ink);color:var(--ds-on-ink);font:400 var(--ds-fs-small)/1.4 var(--ds-font);text-align:left;white-space:normal;transform:translateX(-50%);box-shadow:var(--ds-elev);pointer-events:none}
.ds-tip:is(:hover,:focus-within,.is-open):not(.is-closed) .ds-tip__text{display:block}
/* Clamp (#522): three lines until See more; design.js turns it on, so without the script the text shows whole. */
.ds-clamp--on:not(.is-open) .ds-clamp__text{display:-webkit-box;-webkit-line-clamp:3;line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.ds-clamp__toggle{margin-top:var(--ds-s1)}
/* A block of its own (#522, product description): a line in the table rule's colour, 24 px above and below it. Inside,
   a button row keeps 16 px to the field over it and to what follows, and a character count 4 px to its text. */
.ds-main .ds-divided{margin-top:var(--ds-block);padding-top:var(--ds-block);border-top:1px solid var(--ds-line)}
.ds-main .ds-divided>.ds-section-header:first-child,.ds-main .ds-divided>:first-child{margin-top:0}
.ds-main .ds-actions-row--tight{margin-top:var(--ds-s4)}
.ds-main .ds-actions-row--tight+.ds-actions-row,.ds-main .ds-actions-row--tight+p{margin-top:var(--ds-s4)}
.ds-main .ds-count-line{margin-top:var(--ds-s1)}
/* A setting's status line under its control keeps the 8 px of a hint (#522). */
.ds-table--switches td form~p{margin-top:var(--ds-s2)}   /* the segments and their status stack, also on a phone (a div holds both) */
/* The empty box keeps 16 px to what follows, also when a section wraps it (#522: "Show all suppliers →"). */
.ds-main :is(.ds-empty,div:has(> .ds-empty:last-child))+:not(.ds-section){margin-top:var(--ds-s4)}

/* Skeleton: matches the layout it stands for, with the placeholder rows' shimmer (loading states). */
.ds-skeleton{display:grid;gap:var(--ds-s3)}
.ds-skeleton__line{display:block;height:20px;border-radius:var(--ds-r);background:linear-gradient(90deg,var(--ds-skeleton) 0 35%,var(--ds-skeleton-shine) 50%,var(--ds-skeleton) 65% 100%);background-size:300% 100%}
.ds-skeleton__line:nth-child(3n+2){width:80%}
.ds-skeleton__line:nth-child(3n){width:60%}

/* Action menu ("⋯"): destructive items last, in red, after a divider. */
.ds-actions{position:relative;display:inline-block}
.ds-actions>summary{display:inline-flex;align-items:center;justify-content:center;width:var(--ds-control);height:var(--ds-control);border:1px solid var(--ds-line);border-radius:var(--ds-r);font-size:var(--ds-fs-question);line-height:1;list-style:none;cursor:pointer}
.ds-actions>summary::-webkit-details-marker{display:none}
.ds-actions__list{position:absolute;right:0;z-index:10;min-width:200px;margin:var(--ds-s1) 0 0;padding:var(--ds-s1);border:0;border-radius:var(--ds-r);background:var(--ds-bg);box-shadow:var(--ds-overlay);list-style:none}
.ds-actions__list li{margin:0;padding:0}
.ds-actions__list a,.ds-actions__list button{display:flex;align-items:center;width:100%;min-height:var(--ds-control);padding:0 var(--ds-s3);border:0;border-radius:var(--ds-r);background:none;color:var(--ds-ink);font:400 var(--ds-fs-body) var(--ds-font);text-align:left;text-decoration:none;cursor:pointer}
.ds-actions__list a:hover,.ds-actions__list button:hover{background:var(--ds-hover)}
.ds-actions__list a .ds-count{margin-left:var(--ds-s2)}
.ds-actions__list li[data-danger] a,.ds-actions__list li[data-danger] button{color:var(--ds-error);font-weight:500}
.ds-actions__list li[data-divider]{margin-top:var(--ds-s1);padding-top:var(--ds-s1);border-top:1px solid var(--ds-line)}

/* The account menu on the top bar: the avatar opens it; forms in it look like its links. */
.ds-actions--account>summary{border:0;border-radius:50%;background:var(--ds-line-2);font-size:var(--ds-fs-body);font-weight:500}
.ds-actions__list form{margin:0}
.ds-actions__who{display:block;padding:var(--ds-s2) var(--ds-s3);color:var(--ds-ink-2);font-size:var(--ds-fs-body);overflow-wrap:anywhere}
.ds-lang{display:flex;align-items:center;gap:var(--ds-s2);margin:0}
.ds-lang .ds-link-button{font-size:var(--ds-fs-body);color:var(--ds-ink-2)}
.ds-actions__list .ds-lang{display:flex;flex-wrap:wrap;align-items:center;gap:var(--ds-s2);padding:var(--ds-s2) var(--ds-s3)}
.ds-actions__list .ds-lang label{flex:1 1 auto;color:var(--ds-ink-2);font-size:var(--ds-fs-body)}
.ds-actions__list .ds-lang .ds-select{width:auto;min-width:7.5rem;flex:none}   /* the Language row (#522) */
.ds-actions__list .ds-lang .ds-button{width:auto;padding:0 var(--ds-s3);border:1px solid var(--ds-border-strong);background:var(--ds-bg);font-weight:500}
.ds-actions__list [hidden]{display:none}
/* Filter's checkboxes (redesign MR 11): a facet that takes several values is a fieldset of rows as tall as the menu's
   links, its legend the facet's heading, then Apply as the secondary button. */
.ds-filter-form fieldset{min-width:0;margin:0;padding:0;border:0}
.ds-filter-form legend.ds-actions__who{float:left;width:100%}   /* a float lets the legend sit inside the fieldset's box like a heading row */
.ds-filter-form label{display:flex;clear:both;align-items:center;gap:var(--ds-s2);min-height:var(--ds-control);padding:0 var(--ds-s3);border-radius:var(--ds-r);cursor:pointer}
.ds-filter-form label:hover{background:var(--ds-hover)}
.ds-filter-form label .ds-count{margin-left:auto}
.ds-actions__list .ds-filter-form .ds-button{width:auto;margin:var(--ds-s1) var(--ds-s3) var(--ds-s2);padding:0 var(--ds-s3);border:1px solid var(--ds-border-strong);background:var(--ds-bg);font-weight:500}
@media (max-width:1023.98px){.ds-actions__list{position:static;margin-top:var(--ds-s2)}}

/* Search in the top bar. */
.ds-search{margin:0}
.ds-search .ds-input{min-height:var(--ds-control);width:240px;max-width:100%;padding:var(--ds-s1) var(--ds-s3);font-size:var(--ds-fs-body)}
.ds-count{display:inline-block;box-sizing:border-box;min-width:18px;height:18px;padding:0 var(--ds-badge-x);border-radius:var(--ds-r-pill);background:var(--ds-badge-light-bg);color:var(--ds-ink);font-size:var(--ds-fs-badge);font-weight:600;line-height:18px;text-align:center}
.ds-count.is-some{background:var(--ds-ink);color:var(--ds-bg)}
/* Badges on the navy (section 7.5): attention a white pill with navy text, neutral and the open row's count translucent
   white with white text; a count stays quieter than its label. */
.ds-top--side .ds-menu nav a .ds-count{background:var(--ds-badge-neutral-bg);color:var(--ds-nav-ink-strong)}
.ds-top--side .ds-menu nav a .ds-count.is-some{background:var(--ds-badge-attn-bg);color:var(--ds-nav)}
.ds-top--side .ds-menu nav a[aria-current="page"] .ds-count{background:var(--ds-badge-active-bg);color:var(--ds-nav-ink-strong)}

/* The idle warning idle.js adds to the page (#256), floating like a menu. */
.idle-warning{position:fixed;left:var(--ds-s4);right:var(--ds-s4);bottom:var(--ds-s4);z-index:40;display:flex;flex-wrap:wrap;align-items:center;gap:var(--ds-s3);max-width:560px;margin:0 auto;padding:var(--ds-s3) var(--ds-s4);border:0;border-radius:var(--ds-r);background:var(--ds-bg);box-shadow:var(--ds-overlay);color:var(--ds-ink);font-size:var(--ds-fs-body)}
.idle-warning span{flex:1 1 240px}
.idle-warning button{min-height:var(--ds-button);padding:var(--ds-s1) var(--ds-s4);border:1px solid var(--ds-primary);border-radius:var(--ds-r);background:var(--ds-primary);color:var(--ds-on-primary);font:500 var(--ds-fs-body)/1.2 var(--ds-font);cursor:pointer}

/* Lightbox (item 6, owner 19 Nov 2026, mockup 2): one photo centred over the dimmed page, the name top left, X top
   right, previous and next at the sides and "2 of 5" under it. The dialog fills the screen, so a click beside the photo
   is a click on the dialog itself, which closes it (design.js). */
.ds-lightbox{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:var(--ds-s7);border:0;background:none;color:var(--ds-on-ink);place-items:center}
.ds-lightbox[open]{display:grid}
.ds-lightbox::backdrop{background:var(--ds-lightbox-scrim)}
.ds-lightbox__img{max-width:min(100%,1200px);max-height:calc(100vh - 160px);object-fit:contain;border-radius:var(--ds-r);background:var(--ds-bg)}
.ds-lightbox__title{position:fixed;top:var(--ds-s5);left:var(--ds-s5);max-width:calc(100% - 120px);margin:0;overflow:hidden;font-weight:500;text-overflow:ellipsis;white-space:nowrap}
.ds-lightbox__button{position:fixed;display:grid;place-items:center;width:48px;height:48px;padding:0;border:0;border-radius:50%;background:var(--ds-lightbox-button);color:var(--ds-on-ink);cursor:pointer}
.ds-lightbox__button[hidden]{display:none}
.ds-lightbox__button:hover{background:var(--ds-lightbox-button-hover)}
.ds-lightbox__button:focus-visible{outline:2px solid var(--ds-on-ink);outline-offset:2px}
.ds-lightbox__close{top:var(--ds-s4);right:var(--ds-s4)}
.ds-lightbox__prev,.ds-lightbox__next{top:calc(50% - 24px)}
.ds-lightbox__prev{left:var(--ds-s4)}
.ds-lightbox__next{right:var(--ds-s4)}
.ds-lightbox__count{position:fixed;bottom:var(--ds-s5);left:50%;margin:0;padding:var(--ds-s1) var(--ds-s3);border-radius:var(--ds-r-pill);background:var(--ds-lightbox-count);font-size:var(--ds-fs-small);font-weight:500;transform:translateX(-50%)}
.ds-lightbox__count:empty{display:none}
@media (max-width:767.98px){.ds-lightbox{padding:var(--ds-s2)}.ds-lightbox__prev,.ds-lightbox__next{top:auto;bottom:var(--ds-s3)}.ds-lightbox__count{bottom:var(--ds-s6)}}
/* Confirm dialog. */
.ds-dialog{text-align:start;width:min(480px,calc(100% - 32px));padding:var(--ds-s5);border:0;border-radius:var(--ds-r);box-shadow:var(--ds-overlay);color:var(--ds-ink);font:400 var(--ds-fs-body)/1.5 var(--ds-font)}
.ds-dialog::backdrop{background:var(--ds-scrim)}
/* A new version of the terms or the agreement (A15): open on load, without the script, over the top of the page. */
.ds-legal-popup[open]{position:fixed;inset:var(--ds-s7) 0 auto;z-index:60;margin:0 auto}
.ds-legal-popup ul,.ds-legal-summary{margin:0;padding-inline-start:var(--ds-s5)}
.ds-legal-text h3{margin:var(--ds-block) 0 var(--ds-s1)}
.ds-legal-text h3:first-child{margin-top:0}
.ds-dialog h2{margin-bottom:var(--ds-s2)}
.ds-dialog .ds-label{margin-bottom:var(--ds-s2)}   /* a field opens focused here: its label stays clear of the focus ring (#754) */
.ds-dialog .ds-actions-row{margin-top:var(--ds-block)}
.ds-dialog form>:is(p,.ds-field)+:is(p,.ds-field){margin-top:var(--ds-block)}   /* a dialog's fields never touch its text (T134) */
/* Preview popup (#797): wide, its body scrolls inside while the heading and the buttons stay. */
.ds-dialog--preview{width:min(900px,calc(100% - 32px));max-height:calc(100dvh - 64px);padding:0}
.ds-dialog--preview[open]{display:flex;flex-direction:column}
.ds-dialog--preview .ds-dialog__head{padding:var(--ds-s4) var(--ds-s5);border-bottom:1px solid var(--ds-line)}
.ds-dialog--preview .ds-dialog__head h2{margin:0}
.ds-dialog--preview .ds-dialog__body{min-height:0;overflow:auto;display:grid;gap:var(--ds-s3);padding:var(--ds-s4) var(--ds-s5)}
.ds-dialog--preview .ds-dialog__body :is(h3,p,ul,ol){margin:0}
.ds-dialog--preview .ds-dialog__body ol{display:flex;flex-wrap:wrap;gap:var(--ds-s3);padding:0;list-style:none}
.ds-dialog--preview .ds-dialog__body :is(h3,ul,ol,.shop-text)+:is(ul,ol,.shop-text,p){margin-top:var(--ds-s2)}
.ds-dialog--preview .ds-actions-row.ds-dialog__foot{margin:0;padding:var(--ds-s3) var(--ds-s5);border-top:1px solid var(--ds-line)}
.ds-dialog [hidden]{display:none}

/* First sign-in tour: a Confirm dialog with cards (one task each). No animation, so reduced motion needs no override. */
.ds-tour h2{font-size:var(--ds-fs-body);color:var(--ds-ink-2)}
.ds-tour__count{margin:0 0 var(--ds-s3);color:var(--ds-ink-2);font-size:var(--ds-fs-body)}
.ds-tour__card[hidden],.ds-tour [hidden]{display:none}
.ds-tour__card h3{margin:0 0 var(--ds-s2);font-size:var(--ds-fs-question)}
.ds-tour__where{margin-top:var(--ds-s3);font-weight:700}
/* The help in the top bar (Venture's Help Center): a ? icon and the words, no underline. */
/* The bell (owner 2026-10-25): Notifications in the top bar, its unread count as a badge. 44 px below 1024 px. */
.ds-bell{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:none;width:var(--ds-control);height:var(--ds-control);border-radius:var(--ds-r);color:var(--ds-ink-2);text-decoration:none}
.ds-bell:hover{background:var(--ds-hover);color:var(--ds-ink)}
.ds-bell[aria-current]{background:var(--ds-selected);color:var(--ds-ink)}
.ds-bell .ds-count,.ds-bell .ds-count.is-some{position:absolute;top:-2px;right:-6px;background:var(--ds-badge-light-bg);color:var(--ds-ink)}
.ds-top__bar>.ds-bell{margin-left:auto}
.ds-top__bar>.ds-bell+.ds-menu-button{margin-left:var(--ds-s2)}
/* The bell is in the page twice (#528, _sidebar.html), each in its final place: the top bar's right side from 768 px,
   the slim bar beside the Menu button below that. One shows per width, so no script moves it and nothing jumps. */
@media (min-width:768px){.ds-top--side .ds-top__bar>.ds-bell{display:none}}
@media (max-width:767.98px){.ds-top--side .ds-top__right>.ds-bell{display:none}}

/* Toast: bottom centre, dark, 4 seconds. */
.ds-toasts{position:fixed;left:50%;bottom:var(--ds-s5);z-index:40;display:grid;gap:var(--ds-s2);width:min(480px,calc(100% - 32px));transform:translateX(-50%)}
.ds-toast{display:flex;align-items:center;justify-content:space-between;gap:var(--ds-s3);padding:var(--ds-s2) var(--ds-s2) var(--ds-s2) var(--ds-s4);border-radius:var(--ds-r);background:var(--ds-ink);color:var(--ds-on-ink);font-size:var(--ds-fs-body)}
.ds-toast button{min-width:var(--ds-control);min-height:var(--ds-control);border:0;background:none;color:var(--ds-on-ink);font:500 var(--ds-fs-question) var(--ds-font);cursor:pointer}
.ds-toast button:focus-visible{outline-color:var(--ds-on-ink)}
.ds-toast[hidden]{display:none}
/* A toast's icon, never a lead word (UI standard D4): a check for done, an i for news; the sentence carries the meaning. */
.ds-toasts[data-kind] .ds-toast>span:first-child::before{margin-right:var(--ds-s2);font-weight:600}
.ds-toasts[data-kind=success] .ds-toast>span:first-child::before{content:"\2713";content:"\2713" / ""}
.ds-toasts[data-kind=info] .ds-toast>span:first-child::before{content:"\24D8";content:"\24D8" / ""}
/* The offline banner (base_design.html, design.js): a toast's look and place, kept while there is no connection. */
.ds-offline{position:fixed;left:50%;bottom:var(--ds-s5);z-index:41;width:min(480px,calc(100% - 32px));margin:0;padding:var(--ds-s3) var(--ds-s4);transform:translateX(-50%);border-radius:var(--ds-r);background:var(--ds-ink);color:var(--ds-on-ink);font-size:var(--ds-fs-body)}
.ds-offline[hidden]{display:none}
/* An error page's headline takes focus for a screen reader (design.js); it is not a control, so no ring. */
h1[data-ds-focus]:focus{outline:none}

/* Step bar: done ink, current blue, upcoming grey. */
.ds-step{margin-bottom:var(--ds-block);max-width:var(--ds-flow)}   /* one width on every step of a flow, a wide step too (#749) */
.ds-main .ds-highlight+:is(.ds-step,.ds-answers){margin-top:var(--ds-block)}   /* a note above the step bar never touches it (Import file from a sheet, U9) */
.ds-step__label{margin-bottom:var(--ds-s2);color:var(--ds-ink-2);font-size:var(--ds-fs-body)}
.ds-step__bar{display:flex;gap:var(--ds-s1)}
.ds-step__bar span{flex:1;height:4px;border-radius:var(--ds-r-pill);background:var(--ds-line)}
.ds-step__bar .is-done{background:var(--ds-ink)}
.ds-step__bar .is-current{background:var(--ds-info)}

/* Forms (Venture's Text Field): 14 px label, 14 px input (16 px on a phone, so it does not zoom), 1 px border, 4 px radius. */
.ds-field{margin-bottom:var(--ds-s4)}
.ds-label{display:block;margin-bottom:var(--ds-s1);font-size:var(--ds-fs-body);font-weight:500}
.ds-hint{margin-bottom:var(--ds-s2);color:var(--ds-ink-2);font-size:var(--ds-fs-small)}
.ds-error{margin-bottom:var(--ds-s2);color:var(--ds-error);font-size:var(--ds-fs-body);font-weight:500}
.ds-field-ok{margin-bottom:var(--ds-s2)}   /* Looks right, where a re-checked field's error was (#702) */
.ds-input{display:block;width:100%;max-width:100%;min-height:var(--ds-input);padding:var(--ds-s2) var(--ds-s3);border:1px solid var(--ds-border-strong);border-radius:var(--ds-r);background:var(--ds-bg);color:var(--ds-ink);font:400 var(--ds-fs-body) var(--ds-font)}
.ds-input:hover{border-color:var(--ds-ink-2)}
.ds-input:focus{border-color:var(--ds-ink)}
.ds-input::placeholder{color:var(--ds-ink-2)}
@media (max-width:767.98px){.ds-input,.ds-search .ds-input,.ds-top--side .ds-search .ds-input{font-size:var(--ds-fs-input-phone)}}
.ds-input--short{max-width:300px}
.ds-root .ds-input--date{width:11rem;max-width:100%}   /* every date field one width, the browser's calendar picker (owner, 16 Nov 2026, FINAL5 OWN-36 h) */
/* A field is as wide as its content needs (a folder path, an email), not the whole card (#484). */
.ds-main .ds-input:not(.ds-textarea){max-width:var(--ds-field-max)}
.ds-table .ds-input{max-width:none}
/* Compact add form (#481): an add or invite form above a list is one row of labelled fields and a button. Short fields and selects keep their natural width; below 600 px the row stacks. */
.ds-form-row{display:flex;flex-wrap:wrap;align-items:flex-end;gap:var(--ds-s3);margin-bottom:var(--ds-block)}
.ds-form-row>.ds-field{flex:1 1 140px;min-width:0;margin-bottom:0}
.ds-form-row>.ds-field:has(.ds-input--short,.ds-select){flex:0 1 auto}
.ds-form-row .ds-input--short{width:160px;max-width:100%}
.ds-form-row .ds-select{width:auto}
@media (max-width:599px){.ds-form-row>.ds-field,.ds-form-row>.ds-field:has(.ds-input--short,.ds-select),.ds-form-row>.ds-button{flex:1 1 100%}.ds-form-row .ds-input--short,.ds-form-row .ds-select{width:100%}}
.ds-textarea{min-height:120px;resize:vertical;line-height:1.5}
/* RichTextField (#615): a webshop text edited formatted. The toolbar sits on the editor's top edge; the editor reads like the webshop. */
.ds-rich__tools{display:flex;flex-wrap:wrap;gap:var(--ds-s1);padding:var(--ds-s1);border:1px solid var(--ds-border-strong);border-bottom:0;border-radius:var(--ds-r) var(--ds-r) 0 0;background:var(--ds-page)}
.ds-rich__tools[hidden],.ds-rich__edit[hidden],.ds-rich__mode[hidden],.ds-rich textarea[hidden]{display:none}
.ds-rich__tool{min-height:var(--ds-control);min-width:var(--ds-control);padding:0 var(--ds-s3);border:1px solid var(--ds-line);border-radius:var(--ds-r);background:var(--ds-bg);color:var(--ds-ink);font:500 var(--ds-fs-body) var(--ds-font);cursor:pointer}
.ds-rich__tool:hover{background:var(--ds-hover)}
.ds-rich__tool[aria-pressed=true]{background:var(--ds-line);border-color:var(--ds-ink)}
.ds-rich__edit{min-height:160px;max-height:70vh;overflow:auto;padding:var(--ds-s3);border:1px solid var(--ds-border-strong);border-radius:0 0 var(--ds-r) var(--ds-r);background:var(--ds-bg);color:var(--ds-ink);font:400 var(--ds-fs-body)/1.5 var(--ds-font);overflow-wrap:anywhere}
.ds-rich__edit:focus{border-color:var(--ds-ink)}
.ds-rich__edit>:first-child{margin-top:0}
.ds-rich__edit>:last-child{margin-bottom:0}
.ds-rich__edit :is(p,ul,ol,table,blockquote,h2,h3,h4){margin:0 0 var(--ds-s3)}
.ds-rich__edit table{border-collapse:collapse}
.ds-rich__edit :is(td,th){min-width:48px;padding:var(--ds-s1) var(--ds-s2);border:1px solid var(--ds-line);text-align:left;vertical-align:top}
.ds-rich__edit a{color:var(--ds-info)}
.ds-field--error .ds-rich__edit{border-color:var(--ds-error)}
.ds-rich__note:empty{display:none}
.ds-rich__mode{margin-top:var(--ds-s1)}
/* Every writing area is white with its normal border, so it stands out on a grey card (owner 2026-10-25). Colour only: a search box keeps its icon. */
.ds-root :is(input:not([type=checkbox],[type=radio],[type=file],[type=submit],[type=button],[type=range],[type=color]),textarea,select){background-color:var(--ds-bg)}
.ds-select{appearance:none;-webkit-appearance:none;padding-right:var(--ds-s7);background-image:var(--ds-select-chevron);background-repeat:no-repeat;background-position:right var(--ds-s3) center;background-size:16px}   /* one chevron, 12 px in from the edge, 40 px kept for it, on every select (#533; owner, 16 Nov 2026, FINAL5 OWN-33 c: the Import file builder's too) */
@media (forced-colors:active){.ds-select{appearance:auto;-webkit-appearance:auto;background-image:none;padding-right:var(--ds-s2)}}
.ds-field--error .ds-input,.ds-field--error .ds-radio-card,.ds-field--error .ds-upload{border-color:var(--ds-error)}
.ds-fieldset{margin:0;padding:0;border:0;min-width:0}
.ds-legend{display:block;max-width:100%;margin-bottom:var(--ds-s2);padding:0;font-size:var(--ds-fs-body);font-weight:500}
.ds-legend h1{font-size:var(--ds-fs-title)}
/* A legend with a button in its row ("Select all products", #505), and the shop categories grouped by top level. */
.ds-legend--row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--ds-s2);width:100%}
.ds-shop-group>summary{display:flex;align-items:center;gap:var(--ds-s2);min-height:var(--ds-control);cursor:pointer;font-weight:500;list-style:none}
.ds-shop-group>summary::-webkit-details-marker{display:none}
.ds-shop-group>summary::before{content:"";width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;rotate:-45deg;transition:rotate .15s}
.ds-shop-group[open]>summary::before{rotate:45deg}
@media (prefers-reduced-motion:reduce){.ds-shop-group>summary::before{transition:none}}
.ds-shop-group[open]>summary{margin-bottom:var(--ds-s2)}
.ds-legend--row .ds-button[hidden],.ds-actions-row[hidden],.ds-actions-row>[hidden]{display:none}
.ds-fieldset--heading .ds-legend{margin-bottom:var(--ds-s3)}
.ds-field--error .ds-fieldset{padding-left:var(--ds-s4);border-left:2px solid var(--ds-error)}

/* Radio cards. */
.ds-radio-card{position:relative;display:flex;align-items:center;gap:var(--ds-s2);min-height:var(--ds-control);margin-bottom:var(--ds-s2);padding:var(--ds-s1) var(--ds-s3);border:1px solid var(--ds-line);border-radius:var(--ds-r);background:var(--ds-bg);font-size:var(--ds-fs-body);cursor:pointer}
.ds-radio-card[hidden]{display:none}
.ds-radio-card:hover{border-color:var(--ds-border-strong)}
.ds-radio-card input{flex:none;margin:0}
/* A row's one answer (Check products, owner 2026-10-25): the options side by side in one row, one height, all bordered;
   the picked one has the ink border and the filled dot. When the column is narrow (Norwegian at 1024 px, #623) the
   options wrap onto a second line instead of pushing the table sideways. */
.ds-choice-row{display:flex;flex-wrap:wrap;gap:var(--ds-s2)}
.ds-choice-row .ds-radio-card{flex:none;min-height:var(--ds-control);margin:0;padding:var(--ds-s1) var(--ds-s3);gap:var(--ds-s2);border-color:var(--ds-border-strong);white-space:nowrap}
@media (max-width:767.98px){.ds-choice-row{justify-content:flex-end}}
/* A review table's decision, its last column (item 8, owner mockup 5): both choices on one line from 1680 px; from 1200 px side by side where the column has room, else stacked (a long problem tag beside History at 1440 px); below 1200 px stacked. */
@media (min-width:1680px){.ds-fieldset.ds-choice-row.ds-choice-row--decide{flex-wrap:nowrap}}
@media (min-width:768px) and (max-width:1199.98px){.ds-fieldset.ds-choice-row.ds-choice-row--decide{flex-direction:column;align-items:stretch}}
/* Tick box and radio: a 20 px radio, a 16 px tick box with a 1.5 px line and 4 px corners (section 7.5); ticked = navy with a white tick. */
.ds-root input:is([type="checkbox"],[type="radio"]){appearance:none;-webkit-appearance:none;flex:none;width:20px;height:20px;margin:0;border:1px solid var(--ds-border-strong);border-radius:var(--ds-r);background:var(--ds-bg) center/14px no-repeat;vertical-align:middle;cursor:pointer}
.ds-root input[type="radio"]{border-radius:50%}
.ds-root input[type="checkbox"]{width:16px;height:16px;border-width:1.5px;border-radius:var(--ds-r-check);background-size:12px}
.ds-root input[type="checkbox"]:is(:checked,:indeterminate){border-color:var(--ds-nav);background-color:var(--ds-nav)}
.ds-root input:is([type="checkbox"],[type="radio"]):hover{border-color:var(--ds-ink-2)}
.ds-root input:is([type="checkbox"],[type="radio"]):checked{border-color:var(--ds-ink);background-color:var(--ds-ink)}
.ds-root input[type="checkbox"]:checked{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7.5l2.5 2.5L11 4'/%3E%3C/svg%3E")}
.ds-root input[type="radio"]:checked{background-image:radial-gradient(circle,var(--ds-on-ink) 0 3px,transparent 3.5px)}
.ds-root input[type="checkbox"]:indeterminate{border-color:var(--ds-ink);background:var(--ds-ink) linear-gradient(var(--ds-on-ink),var(--ds-on-ink)) center/10px 2px no-repeat}
.ds-root input:is([type="checkbox"],[type="radio"]):disabled{border-color:var(--ds-line);background-color:var(--ds-page);cursor:not-allowed}
/* High-contrast mode forces the colours that draw the tick and dot, so the native control comes back there. */
@media (forced-colors:active){.ds-root input:is([type="checkbox"],[type="radio"]){appearance:auto;-webkit-appearance:auto}}
.ds-radio-card:has(input:checked){border-color:var(--ds-ink);background:var(--ds-page)}
.ds-radio-card:has(input:focus-visible){outline:2px solid var(--ds-ink);outline-offset:2px}
.ds-radio-card__hint{display:block;color:var(--ds-ink-2);font-size:var(--ds-fs-small)}
/* Compact choices (owner 2026-11-10): a group's options side by side while they fit, each as tall as a control (36 px
   from 1024 px, 44 px below), the group's hint under the row; an option with its own hint keeps a line of its own. */
.ds-fieldset:has(>.ds-radio-card){display:flex;flex-wrap:wrap;align-items:stretch;gap:var(--ds-s2)}
.ds-fieldset:has(>.ds-radio-card)>*{flex:0 0 100%}
.ds-fieldset:has(>.ds-radio-card)>.ds-radio-card{flex:0 1 auto;max-width:100%;margin:0}
.ds-fieldset:has(>.ds-radio-card)>.ds-radio-card:has(.ds-radio-card__hint){flex-basis:100%}
.ds-fieldset:has(>.ds-radio-card)>.ds-hint{margin:0}
/* Two short fields side by side in a step (Date shipped and Expected delivery, supplier mockup v9). */
.ds-field-pair{display:flex;flex-wrap:wrap;gap:0 var(--ds-s5)}

/* File upload: a dashed box with the portal's own translated button, a label for the file input (#624). With the
   script the input is hidden but still focusable, and its focus ring shows on the button; without it the browser's
   own input shows instead, and the button and the empty text go. */
.ds-upload{position:relative;padding:var(--ds-s4);border:1px dashed var(--ds-border-strong);border-radius:var(--ds-r);background:var(--ds-page)}
.ds-upload input[type="file"]{display:block;max-width:100%;min-height:var(--ds-control);font:400 var(--ds-fs-body) var(--ds-font)}
.ds-js .ds-upload .ds-upload__input{position:absolute;width:1px;height:1px;min-height:0;margin:0;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;opacity:0}
.ds-upload__row{display:flex;flex-wrap:wrap;align-items:center;gap:var(--ds-s2) var(--ds-s3)}
html:not(.ds-js) :is(.ds-upload__button,.ds-upload__empty){display:none}
.ds-upload__input:focus-visible~.ds-upload__row .ds-upload__button{outline:2px solid var(--ds-ink);outline-offset:2px}
.ds-upload__empty{color:var(--ds-ink-2);font-size:var(--ds-fs-body)}
.ds-upload__empty[hidden]{display:none}
.ds-upload__chosen{color:var(--ds-confirm);font-weight:500;overflow-wrap:anywhere}
.ds-upload__chosen[hidden]{display:none}
html:not(.ds-js) .ds-upload__chosen{display:block;margin-top:var(--ds-s2)}

/* Error summary: a red border and a light red surface, focus moves to it. */
.ds-main p+.ds-error-summary{margin-top:var(--ds-block)}   /* a line of text never touches it (#664) */
.ds-error-summary{margin-bottom:var(--ds-block);padding:var(--ds-s4) var(--ds-s5);border:1px solid var(--ds-error-line);border-left:4px solid var(--ds-error);border-radius:var(--ds-r);background:var(--ds-error-bg)}
.ds-error-summary:focus{outline:2px solid var(--ds-ink);outline-offset:2px}
.ds-error-summary h2{margin-bottom:var(--ds-s2)}
.ds-error-summary ul{margin:0;padding:0;list-style:none}
.ds-error-summary a{color:var(--ds-error);font-weight:500}
.ds-error-summary a:focus-visible{color:var(--ds-ink)}

/* Check answers: a summary list with Change links. */
.ds-answers{margin:0;border-top:1px solid var(--ds-line)}
.ds-answers__row{display:grid;grid-template-columns:min(var(--ds-label-col),30%) minmax(0,1fr) 5rem;gap:var(--ds-s2) var(--ds-s4);padding:var(--ds-s3) 0;border-bottom:1px solid var(--ds-line)}   /* the label 200 px, the value right after it, the pencil at the end (owner, 16 Nov 2026, FINAL5 OWN-15); 200 px holds "organisasjonsnummer" (#588); at most 30% of a narrow card, as #588 had it (a two-up card at 1024 px keeps its values readable) */
.ds-answers dt{font-weight:500;overflow-wrap:anywhere}   /* #588: a longer word still breaks rather than run into its value */
.ds-answers dd{margin:0;overflow-wrap:anywhere}
.ds-answers__change{margin:0;text-align:right}
.ds-answers__was{display:block;color:var(--ds-ink-2);font-size:var(--ds-fs-small)}
/* A narrow card (a detail page's 340 px side column, U8): the label takes at most 30%, the pencil column only its pencil,
   so a value such as "Sample supplier (SAMPLE)" keeps the rest of the row. */
.ds-detail__side .ds-answers__row{grid-template-columns:minmax(0,30%) minmax(0,1fr) auto}
/* A side card beside History is 330 px too (#737, FINAL5 OWN-7): its answers put the label above the value, as on a phone. */
.ds-detail--history .ds-detail__side .ds-answers__row{grid-template-columns:minmax(0,1fr) auto}
.ds-detail--history .ds-detail__side .ds-answers dd:not(.ds-answers__change){grid-column:1 / -1;grid-row:2}
/* The Change column has one width, so every value starts on one line, and the link's tap target sits
   centred on its text line, not below it (#505). */
.ds-answers__change :is(a,button){margin-block:calc((1lh - var(--ds-control)) / 2)}
/* The pencil (#572, change_control): an icon-only link or button with a full tap target, named "Change <field>" for a
   screen reader and in its tooltip; the pale yellow hover and the focus ring of every control. */
.ds-icon-link{display:inline-flex;align-items:center;justify-content:center;flex:none;box-sizing:border-box;min-width:var(--ds-control);min-height:var(--ds-control);padding:0;border:0;border-radius:var(--ds-r);background:none;box-shadow:none;color:var(--ds-ink-2);font:inherit;text-decoration:none;cursor:pointer;vertical-align:middle}
.ds-icon-link:hover{background:var(--ds-hover);color:var(--ds-ink)}
.ds-icon-link:focus-visible{outline:2px solid var(--ds-ink);outline-offset:2px}
@media (max-width:767.98px){
  .ds-answers__row{grid-template-columns:minmax(0,1fr) auto}
  .ds-answers dd:not(.ds-answers__change){grid-column:1 / -1;grid-row:2}
}

/* Confirmation panel: Venture's dark green, white text. */
/* ConfirmationPanel (supplier mockup v9, "a green tick result"): a big title after a green tick, the line under it. */
.ds-panel{display:grid;gap:var(--ds-s2);margin-bottom:var(--ds-block)}
.ds-panel h1{display:flex;gap:var(--ds-s3);align-items:center;margin:0}
.ds-panel h1::before{content:"\2713";flex:none;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--ds-tag-done-dot);color:var(--ds-on-confirm);font-size:var(--ds-fs-body)}
.ds-panel p{font-size:var(--ds-fs-body)}
.ds-panel__reference{margin-top:var(--ds-s3)}

/* Task list. */
.ds-task-list{margin:var(--ds-s3) 0 0;padding:0;border-top:1px solid var(--ds-line);list-style:none}
.ds-task-list li{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--ds-s2) var(--ds-s4);padding:var(--ds-s3) 0;border-bottom:1px solid var(--ds-line)}
.ds-task-list a{font-size:var(--ds-fs-body);font-weight:500}
.ds-task-list__hint{display:block;color:var(--ds-ink-2);font-size:var(--ds-fs-small)}

/* Needs your attention: a highlight surface per item, one sentence and one button. */
.ds-attention{display:grid;gap:var(--ds-s3)}
/* Flat rows divided by lines, no tinted box inside the card (Venture, #484). */
.ds-attention{gap:0;border-top:1px solid var(--ds-line)}
.ds-attention__item{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--ds-s3) var(--ds-s4);padding:var(--ds-s3) 0;border-bottom:1px solid var(--ds-line)}
.ds-attention__item p:first-child{font-size:var(--ds-fs-body);font-weight:600}
.ds-attention__links{display:flex;flex-wrap:wrap;gap:var(--ds-s1) var(--ds-s3);margin-top:var(--ds-s1)}
.ds-attention__reasons{margin:var(--ds-s1) 0 0;padding-left:var(--ds-s4)}
.ds-attention__item>div:has(>:is(.ds-attention__reasons,.ds-attention__tags)){flex:1 1 20rem;min-width:0}   /* the button stays beside the reasons, as long as they fit */

/* Parts added for the page builders (#440). */

/* Index table: a link column (an order number) stays on one line. */
.ds-nowrap{white-space:nowrap}
/* An internal SKU, a sheet or PO number never breaks at its hyphens (#741), in a wrapping cell too. */
.ds-sku{white-space:nowrap}

/* Counts in the menu: on a link and on the Menu button. */
.ds-menu nav a .ds-count,.ds-menu-button .ds-count{margin-left:var(--ds-s2)}
.ds-menu-button .ds-count{margin-left:var(--ds-s1)}

/* Filter links as Venture's view tabs: a line under the row, an ink underline on the current one. */
.ds-chips ul{display:flex;flex-wrap:wrap;gap:var(--ds-s2);margin:0 0 var(--ds-block);padding:0;border-bottom:1px solid var(--ds-line);list-style:none}
.ds-chips a{display:inline-flex;align-items:center;justify-content:center;gap:var(--ds-s2);min-width:var(--ds-control);min-height:var(--ds-button);margin-bottom:-1px;padding:0 var(--ds-s3);border-bottom:2px solid transparent;color:var(--ds-ink-2);font-size:var(--ds-fs-body);text-decoration:none}
.ds-chips a:hover{color:var(--ds-ink);background:var(--ds-hover)}
.ds-chips a[aria-current="true"]{border-bottom-color:var(--ds-ink);color:var(--ds-ink);font-weight:500}
.ds-chips__count{font-size:var(--ds-fs-meta);font-weight:500}
.ds-chips li:has(.ds-tip){display:inline-flex;align-items:center}
/* On a phone the tabs stay one row and scroll sideways inside it, as Venture's do. */
@media (max-width:767.98px){
  .ds-chips ul{flex-wrap:nowrap;overflow-x:auto}.ds-chips li{flex:none}
  /* A fade at the right edge says the row goes on; the current tab keeps its ink underline and weight. */
  .ds-chips{position:relative}
  .ds-chips::after{content:"";position:absolute;top:0;right:0;bottom:1px;width:var(--ds-s6);background:linear-gradient(to right,transparent,var(--ds-page));pointer-events:none}
}

/* A "Read more" line under a table cell's one-line description (Settings, #484). */
.ds-more{margin-top:var(--ds-s1)}
/* A section that opens (Change one value on several products) is a full tap target (WCAG 2.5.8). */
.ds-section>summary{display:flex;align-items:center;min-height:var(--ds-control);cursor:pointer}
.ds-more summary{display:inline-flex;align-items:center;min-height:var(--ds-control);min-width:var(--ds-control);padding:0;color:var(--ds-ink-2);font-size:var(--ds-fs-small);cursor:pointer}
.ds-more p{margin-top:var(--ds-s1)}
/* A shop text opened in a table cell (#528, Products): wraps at a reading width instead of widening the table. */
.ds-more__text{max-width:60ch;white-space:normal}
.ds-more__text--full{max-width:none}   /* the shop's description across its section (#560) */
/* A details in a table cell (Read more, Looks after) has no marker arrow: its words say it opens (#513). */
.ds-table td summary{list-style:none}
.ds-table td summary::-webkit-details-marker{display:none}
/* Segments (#521): a setting with a few named states (Off, Log only, On) as one bordered row of buttons; the
   pressed one is filled black, so its state shows by its words and its fill, never colour alone. */
.ds-segments{display:inline-flex;border:1px solid var(--ds-border-strong);border-radius:var(--ds-r);overflow:hidden}
.ds-segments__item{min-width:var(--ds-control);min-height:var(--ds-control);padding:0 var(--ds-s3);border:0;background:var(--ds-bg);color:var(--ds-ink);font:500 var(--ds-fs-body) var(--ds-font);white-space:nowrap;cursor:pointer}
.ds-segments__item+.ds-segments__item{border-left:1px solid var(--ds-border-strong)}
.ds-segments__item:hover{background:var(--ds-hover)}
.ds-segments__item[aria-pressed="true"]{background:var(--ds-ink);color:var(--ds-on-ink);cursor:default}
.ds-segments__item:focus-visible{outline-offset:-4px}
.ds-segments__item[aria-pressed="true"]:focus-visible{outline-color:var(--ds-on-ink)}
/* Real buttons in a table cell (Users, #513): one row from 1680 px; below it the buttons wrap, and below 1440 px their
   words too, rather than run off the card (#635; a locked user's three buttons in Norwegian at 1440 px, #673). */
.ds-table td .ds-actions-row--cell{justify-content:center;margin-top:0}     /* centred, as every row's buttons (D6) */
@media (min-width:1440px){.ds-table td .ds-actions-row--cell .ds-button{white-space:nowrap}}
@media (min-width:1680px){.ds-table td .ds-actions-row--cell{flex-wrap:nowrap}}
/* A button in a cell hangs 8 px past its 24 px line each way (below), so wrapped rows of them need that much more gap. */
@media (min-width:768px) and (max-width:1679.98px){.ds-table td .ds-actions-row--cell{row-gap:calc(var(--ds-button) - var(--ds-cell-line) + var(--ds-s2))}}
/* From 768 to 1439 px a list fits beside the sidebar (owner, 2026-11-04, #633): a date and time in a cell shows the
   time on a second line (the date never breaks; index_table's spans), and a row's Close request is the ✕ icon
   button (close_request). From 1440 px, and on a phone, one line and the word button as before. */
.ds-close-request__icon{display:none}
@media (min-width:768px) and (max-width:1439.98px){
  .ds-table td>.ds-when{white-space:nowrap}
  .ds-table td>.ds-when .ds-when__time{display:block}
  .ds-table .ds-close-request__word{display:none}   /* in a row only: a product's Update requested card keeps the word (#728) */
  .ds-table .ds-close-request__icon{display:inline-flex}
  .ds-table td.ds-wrap:has(> form:only-child){min-width:0}   /* a cell that is only a row's button needs no sentence floor */
}
/* Settings switch tables (Features, AI helpers, #513): one control column at the same place in both, every control
   left-aligned in it. */
@media (min-width:768px){
  .ds-table--switches{table-layout:fixed}
  .ds-table--switches th:nth-child(1){width:22%}
  .ds-table--switches th:nth-child(3){width:9rem}
  .ds-table--switches th:nth-child(4){width:21rem}
  .ds-table--switches th:nth-child(3):last-child{width:21rem}   /* an admin's table: the switch column, no Status; room for On, and required and Change (#710) */
  .ds-table--switches .ds-inline-form{justify-content:flex-start}
  .ds-main .ds-table--switches :is(td>.ds-select,.ds-inline-form .ds-select){flex:none;width:auto;min-width:10rem;max-width:none}   /* as wide as its longest choice, so none is cut (#710) */
  .ds-table--switches td{white-space:normal}
  .ds-table--switches .ds-tag{white-space:normal;align-items:flex-start}
  .ds-table--switches .ds-tag::before{margin-top:var(--ds-s2)}
}
/* A collapsible settings section (#513): the status shows, what changes it waits behind Change. */
.ds-change{margin-top:var(--ds-s3)}
.ds-change>summary{display:inline-flex;align-items:center;min-height:var(--ds-button);padding:0 var(--ds-s4);border:1px solid var(--ds-border-strong);border-radius:var(--ds-r);background:var(--ds-bg);color:var(--ds-ink);font-size:var(--ds-fs-body);font-weight:500;cursor:pointer;list-style:none}
.ds-change>summary::-webkit-details-marker{display:none}
.ds-change[open]>summary{margin-bottom:var(--ds-s4)}
/* A select and its button on one line in a table cell. */
.ds-inline-form{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:var(--ds-s2);min-width:0}
.ds-inline-form .ds-select{flex:0 1 auto;width:auto;min-width:0}
/* Tap targets in a table cell (#491): a short link button ("On") and a details summary ("No area yet · Change")
   are at least a control high and wide: 44 px below 1024 px, 36 px from it. */
.ds-table td .ds-link-button{min-width:var(--ds-control);justify-content:center}
.ds-table-wrap[data-action] .ds-table td:last-child :is(a,.ds-link-button){white-space:nowrap}   /* a row's action (Send back) on one line at every width (T135, #777) */
.ds-table td details>summary{min-height:var(--ds-control);line-height:var(--ds-control);cursor:pointer}
/* A choice and its button stay on one line, as Move to WooCommerce's do (#497): a long option no longer widens the select. */
@media (min-width:768px){.ds-inline-form{flex-wrap:nowrap}.ds-main .ds-inline-form .ds-select{max-width:10rem}}
/* In the table layout a control in a cell takes one text line of layout, centred on it: its first line is level with
   the text beside it (#506). The 12 px cell padding holds the rest (at most 10 px each side). */
@media (min-width:768px){
  .ds-table td :is(a:not(.ds-button),.ds-link-button,.ds-segments){margin-block:calc((var(--ds-cell-line) - var(--ds-control)) / 2)}
  /* A summary keeps its 36/44 px target as padding, so a summary that wraps starts on the first line too. */
  .ds-table td details>summary{min-height:0;padding-block:calc((var(--ds-control) - var(--ds-cell-line)) / 2);margin-block:calc((var(--ds-cell-line) - var(--ds-control)) / 2);line-height:var(--ds-cell-line)}
  .ds-table td .ds-tag{vertical-align:top}
  /* Decision cards: one control high, centred on the first line like a field. */
  .ds-table td .ds-choice-row{margin-block:calc((var(--ds-cell-line) - var(--ds-control)) / 2)}
  .ds-table td .ds-choice-row .ds-radio-card{box-sizing:border-box;height:var(--ds-control);min-height:0;padding-block:0;align-items:center}
  .ds-table td :is(.ds-input,.ds-select,.ds-inline-form):not(.ds-dialog *){margin-block:calc((var(--ds-cell-line) - var(--ds-input)) / 2)}   /* a dialog in a cell keeps its own field spacing (#754, T135) */
  .ds-table td .ds-button{margin-block:calc((var(--ds-cell-line) - var(--ds-button)) / 2)}
  .ds-table td>form~form{margin-top:calc(var(--ds-button) - var(--ds-cell-line) + var(--ds-s2))}   /* stacked action forms keep their own targets */
  .ds-table td .ds-inline-form :is(.ds-input,.ds-select,.ds-button){margin-block:0}
  .ds-table td input:is([type=checkbox],[type=radio]){margin-block:calc(var(--ds-s1) / 2) 0;vertical-align:top}   /* 20 px boxes on a 24 px line */
}

/* List search: the label above, the box and the button on one line. */
.ds-list-search{display:flex;flex-wrap:wrap;align-items:flex-end;gap:var(--ds-s2) var(--ds-s3);margin:0 0 var(--ds-s4)}
.ds-list-search__field{flex:1 1 240px;max-width:420px}
.ds-list-search .ds-label{margin-bottom:var(--ds-s1)}
/* Venture's search box: a magnifier in the field, no label or button on screen. */
.ds-list-search--bare .ds-input{padding-left:var(--ds-s7);background:var(--ds-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='16' height='16' fill='none' stroke='%235E6875' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0'/%3E%3Cpath d='M21 21l-6 -6'/%3E%3C/svg%3E") no-repeat 12px center}
/* Venture's pastel pills, one colour per category (#484). */
.ds-pill{display:inline-block;padding:0 var(--ds-s2);border-radius:var(--ds-r);background:var(--ds-pill-bg);color:var(--ds-pill-fg);font-size:var(--ds-fs-meta);line-height:20px;white-space:nowrap}   /* one grey for every category (owner Q4) */
.ds-tab-icon{flex:none}
/* A cell of pills keeps them on one line from 1440 px; below it they wrap between each other (never inside one), so a
   list fits its box at 1024 px (#583). */
@media (min-width:1440px){.ds-table td:has(> .ds-pill){white-space:nowrap}}
/* A second line under a cell (#554: category pills under a name): it never sets the column's width beyond its widest
   pill (#565: one wider than the name stays inside the cell); its pills wrap between each other, never inside one. */
.ds-table td .ds-cell-under{display:block;width:min-content;min-width:100%;margin-top:var(--ds-s1);white-space:normal}
/* `under_line` (index_table): the line takes the cell's room, so short tags share one line when they fit (audit v2 UI-06,
   the vendor's products). Only where the column already has room: on every list it widened the name column (T139). */
.ds-table td .ds-cell-under--line{width:fit-content;max-width:100%}
/* On the value's own line (FINAL5 OWN-5): the PO list's category pills after the supplier, the Supplier list's number
   after the name, so the row stays one line. */
.ds-table td .ds-cell-under--inline{display:inline;width:auto;min-width:0;margin:0 0 0 var(--ds-s2);white-space:nowrap}
/* Below 1440 px a column with `ds-from-1440` is gone, header and cells together, and a `ds-name-wraps` name wraps without
   its pills and a word too long for the cell breaks: the staff order lists, so they fit their card (owner, 2026-11-06, #635; 2026-11-07, T121). */
@media (max-width:1679.98px){.ds-table .ds-from-1680{display:none}}   /* Products' Category beside the webshop's columns (FINAL5 OWN-23) */
@media (max-width:1439.98px){.ds-table .ds-from-1440,.ds-table td.ds-name-wraps .ds-cell-under{display:none}.ds-table td.ds-name-wraps{white-space:normal;overflow-wrap:anywhere;min-width:80px}}
/* From 768 to 1199 px a product sheet's table beside the History card drops its secondary columns (`ds-from-1200`), header
   and cells together, so it fits the main column with no inner scroll; a row's actions always stay (owner, 2026-11-11, #740). */
.ds-table .ds-until-1200,.ds-table .ds-cell-under:has(>.ds-until-1200:only-child){display:none}
@media (min-width:768px) and (max-width:1199.98px){.ds-table .ds-from-1200{display:none}.ds-table .ds-until-1200{display:inline}.ds-table .ds-cell-under:has(>.ds-until-1200:only-child){display:block}}
/* From 1440 to 1679 px the name still wraps, its pills under it, so a late partial order fits the staff list (#672). */
@media (min-width:1440px) and (max-width:1679.98px){.ds-table-wrap[data-fit] .ds-table td.ds-name-wraps:not(.ds-wrap){white-space:normal}}
/* A small webshop link with its external-link icon after its text (#706: Draft products' View beside the item number). */
.ds-webshop-link{gap:var(--ds-s1)}
.ds-root .ds-table td a.ds-webshop-link{min-width:0;font-size:var(--ds-fs-small)}   /* a 36-44 px high target, as wide as its words */
/* A column that takes the table's spare width, its content from the left (#706: Draft products' Fixed). A row's form
   outside an action column starts at the left too, like its heading (#704). */
@media (min-width:768px){.ds-table th.ds-fill{width:100%}}
/* From 1440 px the other columns keep to one line (a wrapping tag too), so they are not squeezed to their narrowest;
   a column of sentences keeps 240 px. Below 1440 they wrap, so the list fits beside the sidebar. */
@media (min-width:1440px){.ds-table:has(th.ds-fill) :is(th:not(.ds-fill),td:not(.ds-fill,.ds-wrap),td:not(.ds-fill) .ds-tag--wrap){white-space:nowrap}
  .ds-table:has(th.ds-fill) td.ds-wrap:not(.ds-fill){min-width:240px}}
.ds-table td .ds-inline-form{justify-content:flex-start}
/* A second one-line form under the first in a cell (Draft products' Fixed under the note): 8 px clear of it, from the left. */
@media (min-width:768px){.ds-table td .ds-inline-form~.ds-inline-form{margin-top:var(--ds-s4);justify-content:flex-start}}
/* Venture's pagination row under a list: the count left, outline Previous / Next right. */
.ds-pager{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:var(--ds-s2) var(--ds-s4);margin-top:var(--ds-s4);margin-left:auto;color:var(--ds-ink-2);font-size:var(--ds-fs-body)}
.ds-pager__buttons{display:flex;align-items:center;gap:var(--ds-s2)}
.ds-pager__page{padding:0 var(--ds-s1);color:var(--ds-ink);white-space:nowrap}
.ds-pager .ds-button--secondary{min-width:var(--ds-button);padding:0 var(--ds-s2);border-color:var(--ds-border-strong)}
.ds-pager .ds-button[aria-disabled]{opacity:.4;pointer-events:none}
/* A list's toolbar (#551, #569), on every list page: the search on the left, Filter and Sort by on the right (also
   without a search), and the count and the pages on their own line under that row, at the right as under the table. */
.ds-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:var(--ds-s3) var(--ds-s4);margin-bottom:var(--ds-s3)}
.ds-toolbar__end{display:flex;flex-wrap:wrap;align-items:center;gap:var(--ds-s2) var(--ds-s3);margin-left:auto}
.ds-toolbar__end:empty{display:none}
.ds-toolbar .ds-list-search{flex:0 1 320px;min-width:0;margin:0}
.ds-toolbar .ds-list-search__field{max-width:none;min-width:0}
/* From 768 px the toolbar is one row: the search gives way first, so Filter, the count and My / All keep one place on
   every tab (FINAL5 OWN-11, tester T159). */
@media (min-width:768px){.ds-toolbar{flex-wrap:nowrap}.ds-toolbar .ds-list-search{flex:1 1 320px;min-width:8rem;max-width:320px}.ds-toolbar__end{flex:none;flex-wrap:nowrap}}
/* Below 1200 px a toolbar with the My / All switch shows Download as its icon, its word kept for a screen reader and in
   its tooltip, and the switch's sides are 8 px, so the search keeps room for its word on the one row in en and nb
   (TABLE-01, owner option A: "Searc" on the PO list at 1024 px; OWN-11 keeps the one row). Other lists keep the word. */
@media (min-width:768px) and (max-width:1199.98px){
  .ds-toolbar:has(.ds-segmented) .ds-toolbar__word{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
  .ds-toolbar:has(.ds-segmented) .ds-segmented a{padding-inline:var(--ds-s2)}
}
/* The note pad as a Venture card: a soft field without a box of its own (#484). */
#notepad .ds-textarea{max-width:none;resize:vertical}

/* Summary cards: four across from 1024 px, two across from 480 px, one below. */
.ds-cards--four{grid-template-columns:repeat(2,minmax(0,1fr))}
@media (min-width:1024px){.ds-cards--four{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (max-width:479.98px){.ds-cards--four{grid-template-columns:minmax(0,1fr)}}
.ds-cards--four .ds-summary-card__label{overflow-wrap:anywhere}

/* A one-time code: wide letter spacing, as the sign-in page had it. */
.ds-input--code{letter-spacing:.3em;font-size:var(--ds-fs-question)}

/* The signed-out shell: no menu, one narrow card under a tagline. */
.ds-top--bare .ds-menu{display:flex;flex:1;justify-content:flex-end;flex-basis:auto}
.ds-top--bare .ds-top__right{margin-left:auto;padding:0}
/* Centred in the window (owner, 18 Nov 2026: "can we put this in the middle please"): across at every width, and
   down when the window is taller than the lockup, card and links; a taller block starts at the top and scrolls, so a
   phone cuts nothing off; the padding keeps the block clear of the bare top bar above it. */
.ds-main--card{display:flex;flex-direction:column;justify-content:center;max-width:504px;min-height:100vh;margin-inline:auto;padding-top:calc(var(--ds-s7) + var(--ds-topbar));padding-bottom:calc(var(--ds-s7) + var(--ds-topbar));background:none}
.ds-root:has(.ds-main--card) .ds-top--bare{position:absolute;top:0;left:0;right:0}   /* over the page, so the middle is the window's */
.ds-main--card>*{flex:none}
/* Look F1 (owner, 21 Nov 2026, mockup "F1: warm and cool glows"): a light page with a yellow glow top left and a
   blue-grey glow bottom right, one white 400 px card with an 18 px radius and a soft shadow, the logo in the card,
   centred type, Forgot password? on the password label's row; the bare top bar lies on the glow, Norsk top right. */
body.ds-root:has(.ds-main--card){background:radial-gradient(circle at 12% 18%,var(--ds-sign-glow-1) 0,transparent 32%),radial-gradient(circle at 88% 85%,var(--ds-sign-glow-2) 0,transparent 38%),radial-gradient(circle at 80% 10%,var(--ds-sign-glow-3) 0,transparent 25%),var(--ds-sign-page)}
.ds-root:has(.ds-main--card) .ds-top--bare{border-bottom:0;background:none}
.ds-root:has(.ds-main--card) .ds-top--bare .ds-lang .ds-link-button{color:var(--ds-ink);text-decoration:underline;text-underline-offset:3px}
.ds-lockup{display:flex;justify-content:center;margin-bottom:var(--ds-s4)}
.ds-lockup a{display:flex;align-items:center;min-height:44px}
.ds-lockup img{display:block;height:34px;width:auto}
/* Only pages with the lockup hide the bar's logo: privacy, error and link pages keep it. */
.ds-root:has(.ds-lockup) .ds-top--bare .ds-brand{visibility:hidden}
.ds-card--sign{width:100%;max-width:400px;margin-inline:auto;padding:var(--ds-s6) var(--ds-s5);border-radius:var(--ds-r-sign);background:var(--ds-bg);box-shadow:var(--ds-elev-sign)}
.ds-main--card>.ds-offline+.ds-card--sign{margin-top:0}   /* the hidden offline line is no block above it */
.ds-card--sign h1{margin-bottom:var(--ds-s2);font-size:var(--ds-fs-title);font-weight:500;text-align:center}
.ds-card--sign .ds-step{margin-bottom:var(--ds-s4)}
.ds-card--sign .ds-lead+form{margin-top:var(--ds-s4)}
.ds-card--sign form{margin:0}
.ds-card--sign .ds-button{width:100%}
.ds-card--sign .ds-lead{color:var(--ds-ink-2);text-align:center}
.ds-card--sign .ds-link-row{margin:var(--ds-s2) 0 var(--ds-s4)}
.ds-card--sign .ds-label-row{display:flex;justify-content:space-between;align-items:baseline;gap:var(--ds-s3);margin-bottom:var(--ds-s1)}
.ds-card--sign .ds-label-row .ds-label{margin-bottom:0}
.ds-card--sign .ds-label-row a{font-size:var(--ds-fs-small);color:var(--ds-ink);text-underline-offset:3px}
.ds-card--sign .ds-note{margin-top:var(--ds-s4);color:var(--ds-ink-2);font-size:var(--ds-fs-body);text-align:center}
.ds-card--sign .ds-note--divided{margin-top:var(--ds-s3);padding-top:0;border-top:0;color:var(--ds-ink-2);font-size:var(--ds-fs-body)}
.ds-card--sign .ds-note a{color:var(--ds-ink);text-underline-offset:3px}
.ds-root .ds-foot{margin-top:var(--ds-block);color:var(--ds-ink-2);font-size:var(--ds-fs-body);text-align:center}

/* A drop target: the upload box lights up while files are over it (design.js). */
.ds-upload__drop{margin-top:var(--ds-s2);color:var(--ds-ink-2);font-size:var(--ds-fs-body)}
.ds-upload.is-over{border-color:var(--ds-ink);border-style:solid;background:var(--ds-tag-info-bg)}

/* Checking your sheet: shown by check.js when the upload form posts. */
.ds-checking{margin-bottom:var(--ds-block);padding:var(--ds-s4) var(--ds-s5);border:1px solid var(--ds-line);border-radius:var(--ds-r);background:var(--ds-bg)}
.ds-checking[hidden]{display:none}
.ds-checking__head{margin-bottom:var(--ds-s3);font-size:var(--ds-fs-body)}
.ds-checking__list{display:grid;gap:var(--ds-s2);margin:0 0 var(--ds-s3);padding-left:var(--ds-s5)}
.ds-checking__list .ds-secondary-text{display:block}

/* Links that are the whole target of a click are 44 px high (section 6). */
.ds-answers__change a,.ds-actions-row a,.ds-task-list a,.ds-table td a,.ds-error-summary a,.ds-top__right a,.ds-section h3>a{display:inline-flex;align-items:center;min-height:var(--ds-control);min-width:var(--ds-control);justify-content:center}
/* In a row of buttons every button, link button and link is one height (#506): a link button keeps the button's. */
.ds-actions-row :is(a,.ds-link-button),.ds-table td a.ds-button{min-height:var(--ds-button)}

/* Reduced motion: nothing here moves except the skeleton, handled above. */
@media (prefers-reduced-motion:reduce){.ds-root *{scroll-behavior:auto!important;transition:none!important}}
/* Generating... (#517): three dots that fill in turn while BetterDesc writes. They move with reduced motion too (owner). */
.ds-dots::after{content:"...";display:inline-block;width:0;overflow:hidden;vertical-align:bottom;animation:ds-dots 1.2s steps(4,end) infinite}
@keyframes ds-dots{to{width:4ch}}
/* WaitNotice (#621): the please-wait box with a spinner; with reduced motion the spinner stands still. */
/* Message (supplier mockup v9 .msg): a coloured line above the content: warn (orange), info (blue), ok (green). */
.ds-msg{display:flex;gap:var(--ds-s3);align-items:flex-start;margin:0 0 var(--ds-block);padding:var(--ds-s3) var(--ds-s4);border-radius:var(--ds-r);font-size:var(--ds-fs-body);line-height:1.5}
.ds-msg>div>:last-child{margin-bottom:0}
.ds-msg--warn{background:var(--ds-tag-action-bg);color:var(--ds-tag-action-fg)}
.ds-msg--info{background:var(--ds-tag-info-bg);color:var(--ds-tag-info-fg)}
.ds-msg--ok{background:var(--ds-tag-done-bg);color:var(--ds-tag-done-fg)}
.ds-wait[hidden]{display:none}
/* JobProgress (loading MR 2): a job's steps, a tick on the done one, the ring on the one going, the report still to come. */
.ds-job{flex-direction:column;margin-bottom:var(--ds-s4)}
.ds-job__body{display:grid;gap:var(--ds-s2);width:100%}
.ds-job__steps{display:grid;gap:var(--ds-s1);margin:0;padding:0;list-style:none}
.ds-job__steps li{display:flex;gap:var(--ds-s2);align-items:center}
.ds-job__steps li::before{content:"";flex:none;width:16px;text-align:center}
.ds-job__steps .is-done::before{content:"\2713";color:var(--ds-confirm);font-weight:700}
.ds-job__steps .is-now::before{display:none}
.ds-job__steps .is-now .ds-spinner{margin-top:0}
.ds-job__steps .is-todo{color:var(--ds-ink-2)}
.ds-msg--error{background:var(--ds-error-bg);color:var(--ds-error)}
.ds-msg .ds-inline-form{display:inline-flex}
.ds-msg ul{margin:var(--ds-s2) 0 0;padding-left:var(--ds-s5)}     /* a warning that lists files (UX-03) */
.ds-wait{display:flex;gap:var(--ds-s3);align-items:flex-start;padding:var(--ds-s3) var(--ds-s4);border:1px solid var(--ds-line);border-radius:var(--ds-r);background:var(--ds-page)}
/* Loading states (owner, 18 Nov 2026, loading-chosen-mockup.html; DESIGN.md "Loading"). design.js shows each after
   300 ms and keeps it at least 400 ms. With reduced motion nothing moves: the ring stands still with a centre dot, the
   bars stand at a fixed width, the placeholder rows and the sweep have no shimmer. */
/* The one indicator: a ring with a yellow arc, 16 px (buttons, inline) and 24 px (--md, panels); in a button the arc
   takes the button's own ink, so it shows on the yellow. */
.ds-spinner{display:inline-block;flex:none;vertical-align:middle;width:16px;height:16px;margin-top:var(--ds-s1);border:2px solid var(--ds-line);border-top-color:var(--ds-primary);border-right-color:var(--ds-primary);border-radius:50%}
.ds-spinner--md{width:24px;height:24px;border-width:3px}
.ds-button .ds-spinner{margin-top:0;border-color:var(--ds-spinner-track-dark);border-top-color:currentColor;border-right-color:currentColor}
/* A pressed button (design.js): its ring and busy label, its width kept, off until the next page, in its own colours. */
.ds-button.is-busy{gap:var(--ds-s1);padding-inline:var(--ds-s2);white-space:nowrap;cursor:progress}   /* the ring fits in the width the label had */
.ds-button.is-busy[disabled]{border-color:var(--ds-primary);background:var(--ds-primary);color:var(--ds-on-primary);cursor:progress}
.ds-button--secondary.is-busy[disabled]{border-color:var(--ds-border-strong);background:var(--ds-bg);color:var(--ds-ink)}
.ds-button--danger.is-busy[disabled]{border-color:var(--ds-error);background:var(--ds-error);color:var(--ds-on-ink)}
.ds-slow{margin-top:var(--ds-s2);color:var(--ds-ink-2);font-size:var(--ds-fs-small)}
/* The page bar: 4 px of yellow across the top while the next page loads; it grows fast, then slows near the end. */
.ds-pagebar{position:fixed;top:0;left:0;right:0;z-index:1000;height:4px;background:var(--ds-progress-track);pointer-events:none}
.ds-pagebar[hidden]{display:none}
.ds-pagebar::before,.ds-table-wrap.is-stale::before{content:"";position:absolute;inset:0 auto 0 0;width:60%;background:var(--ds-primary);box-shadow:0 0 8px var(--ds-primary)}
/* A list being filtered, sorted or paged: the results stay, dimmed under a light sweep, with the yellow bar on top. */
.ds-table-wrap.is-stale>*{opacity:.55}
.ds-table-wrap.is-stale::before{z-index:3;height:4px;bottom:auto}
.ds-table-wrap.is-stale::after{content:"";position:absolute;inset:0;z-index:2;background:linear-gradient(90deg,transparent 0,var(--ds-sweep) 50%,transparent 100%);background-size:200% 100%;pointer-events:none}
/* Placeholder rows: the table keeps its columns and row heights; each cell shows a grey bar until its data comes. */
.ds-table.is-loading-rows tbody td{position:relative;color:transparent}
.ds-table.is-loading-rows tbody td>*{visibility:hidden}
/* A product page's field the night copy lacks, while the live read runs (item 1): its — hidden at once, a placeholder bar
   of a short value's size after 300 ms (.is-pending), in the value's own line box, so nothing moves when the value lands. */
.ds-js [data-pending]{display:inline-block;min-width:8ch;border-radius:var(--ds-r-pill);color:transparent}
.ds-js .is-pending [data-pending]{background:linear-gradient(90deg,var(--ds-skeleton) 0 35%,var(--ds-skeleton-shine) 50%,var(--ds-skeleton) 65% 100%);background-size:300% 100%}
.ds-table.is-loading-rows tbody td::after{content:"";position:absolute;left:var(--ds-cell-x);top:50%;width:min(60%,160px);height:12px;border-radius:var(--ds-r-pill);background:linear-gradient(90deg,var(--ds-skeleton) 0 35%,var(--ds-skeleton-shine) 50%,var(--ds-skeleton) 65% 100%);background-size:300% 100%;transform:translateY(-50%)}
/* An upload's progress (design.js): a row per file with its bar and percentage, the total in MB, then Checking file…. */
.ds-upload-progress{display:grid;gap:var(--ds-s2);margin-top:var(--ds-s3)}
.ds-upload-progress[hidden]{display:none}
.ds-upload-progress__file{display:grid;grid-template-columns:minmax(0,1fr) minmax(96px,170px) 44px;gap:var(--ds-s2);align-items:center;font-size:var(--ds-fs-small)}
.ds-upload-progress__name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ds-upload-progress .ds-progress{max-width:none}
.ds-upload-progress__pct{text-align:right;font-variant-numeric:tabular-nums}
.ds-upload-progress__total{color:var(--ds-ink-2);font-size:var(--ds-fs-small);font-variant-numeric:tabular-nums}
@media (prefers-reduced-motion:no-preference){
  .ds-spinner{animation:ds-spin 1s linear infinite}
  .ds-pagebar::before,.ds-table-wrap.is-stale::before{animation:ds-grow 10s cubic-bezier(.1,.7,.2,1) forwards}
  .ds-skeleton__line,.ds-table.is-loading-rows tbody td::after,.is-pending [data-pending]{animation:ds-shimmer 1.6s linear infinite}
  .ds-table-wrap.is-stale::after{animation:ds-shimmer 1.6s linear infinite}
}
@media (prefers-reduced-motion:reduce){
  .ds-spinner,.ds-button .ds-spinner{border-color:var(--ds-line);background:radial-gradient(circle,var(--ds-ink) 0 2.5px,transparent 3px)}
  .ds-button .ds-spinner{border-color:var(--ds-spinner-track-dark);background:radial-gradient(circle,currentColor 0 2.5px,transparent 3px)}
}
@keyframes ds-spin{to{transform:rotate(360deg)}}
@keyframes ds-grow{0%{width:0}15%{width:60%}50%{width:85%}100%{width:92%}}
@keyframes ds-shimmer{from{background-position:100% 0}to{background-position:0 0}}
.ds-attention__item p+p{white-space:pre-line}
.ds-preline{white-space:pre-line}

/* A message's text (S5-19): plain text, line breaks kept. */
.message-body{white-space:pre-wrap;overflow-wrap:anywhere;margin:0}
/* Printing: the page only, without the sidebar. */
@media print{.ds-top--side{display:none}.ds-main--side{width:auto;margin-left:0}}

/* ---- Shared parts of the redesign (MR 2; DESIGN.md, "Shared parts of the redesign"; STEP6-8 section 8.1) ---- */
/* The one empty value (|empty): an en dash in the secondary ink, read out as "Not set". */
.ds-none{color:var(--ds-ink-2)}
/* The collapsed rail keeps an attention count as a 6 px dot on the icon; its label stays for a screen reader. An open
   section's sum shows only there, where its children (which carry the counts) are hidden. */
.ds-rail-count{display:none}
@media (min-width:768px){
  .ds-nav-collapsed .ds-top--side .ds-rail-count{display:contents}
  .ds-nav-collapsed .ds-top--side .ds-menu nav a:has(>.ds-count){padding-right:var(--ds-s2)}   /* the rail centres every icon alike */
  .ds-nav-collapsed .ds-top--side .ds-menu nav a .ds-count.is-some{top:var(--ds-s2);right:calc(50% - 14px);width:6px;min-width:6px;height:6px;padding:0;clip:auto;background:var(--ds-badge-attn-bg);font-size:0}
}
/* MetricStrip: up to four numbers in one white strip, divided by hairlines, each a link to its list. */
.ds-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));margin:0;padding:0;list-style:none;border-radius:var(--ds-r);background:var(--ds-bg);box-shadow:var(--ds-elev)}
.ds-metrics>li+li{border-left:1px solid var(--ds-line-2)}
.ds-metric{display:flex;flex-direction:column;gap:var(--ds-s1);height:100%;padding:var(--ds-s4);color:var(--ds-ink);text-decoration:none}
.ds-metric__label{color:var(--ds-ink-2);font-size:var(--ds-fs-label);font-weight:600;line-height:16px}
.ds-metric:hover .ds-metric__label{text-decoration:underline}
.ds-metric__value{font-size:var(--ds-fs-metric);font-weight:500;line-height:38px;font-variant-numeric:tabular-nums}
.ds-metric__value--tag{display:flex;align-items:center;min-height:38px}   /* a word as its status tag, on the number's line (FINAL5 OWN-14) */
.ds-metric__of{color:var(--ds-ink-2);font-size:var(--ds-fs-body);font-weight:400}
.ds-metric__context{color:var(--ds-ink-2);font-size:var(--ds-fs-small)}
.ds-metric__context.is-late{color:var(--ds-error)}
.ds-metric__context.is-waiting{color:var(--ds-tag-info-fg)}
.ds-metric__context.is-done{color:var(--ds-tag-done-fg)}
/* Card: the title in 12 px, sentence case, with an optional dot and a link on the right; a table inside runs flush, no ring. */
.ds-card__head{display:flex;align-items:center;justify-content:space-between;gap:var(--ds-s4);box-sizing:border-box;min-height:var(--ds-band);margin:calc(-1 * var(--ds-card-y)) calc(-1 * var(--ds-card-x)) var(--ds-card-y);padding:0 var(--ds-card-x);border-bottom:0;border-radius:calc(var(--ds-r) - 1px) calc(var(--ds-r) - 1px) 0 0;background:var(--ds-nav)}
/* Card titles (owner, 16 Nov 2026, FINAL5 OWN-19, OWN-24; band details 21 Nov 2026, uniformity D10): a 44 px band of the
   sidebar's navy, the title 14 px semibold white in sentence case, 16 px at the sides; See all on the right, 13 px white, underlined. */
.ds-root .ds-card__title{display:flex;align-items:center;gap:var(--ds-s2);margin:0;color:var(--ds-nav-ink-strong);font-size:var(--ds-fs-body);font-weight:600;line-height:20px;letter-spacing:normal}
.ds-root .ds-card__link{color:var(--ds-nav-ink-strong);font-size:var(--ds-fs-small);font-weight:500;text-decoration:underline;text-underline-offset:3px}
/* A status tag in a navy card title (a PO's "Not confirmed"): the normal tag, its dot and its word in white, so its ink keeps
   4.5:1 (tester T160, axe), not a pill (owner, 21 Nov 2026, uniformity D10). */
:is(.ds-main .ds-highlight,.ds-main .ds-card:not(.ds-card--sign,.ds-main:has(:is(section,details).ds-section ~ :is(section,details).ds-section) .ds-section .ds-card),.ds-main:has(:is(section,details).ds-section ~ :is(section,details).ds-section) :is(section,details).ds-section:not(.ds-card,.ds-section .ds-section,:has(> .ds-cards .ds-summary-card)))>:is(h2,h3,.ds-section-header,summary):first-child .ds-tag,.ds-card>.ds-card__head:first-child .ds-tag{color:var(--ds-nav-ink-strong);line-height:20px}   /* the band rule's own selector: a page with no band keeps the tag's colour (SM-1) */
:is(.ds-card,.ds-highlight,.ds-section)>:is(h2,h3,summary):first-child>:is(.ds-tag,.ds-secondary-text){vertical-align:top;line-height:20px}   /* a count or a tag beside the title keeps the band one 20 px line, 44 px */
.ds-dot{flex:none;width:8px;height:8px;border-radius:50%;background:var(--ds-tag-neutral-dot)}
.ds-dot--action{background:var(--ds-tag-action-dot)}.ds-dot--info{background:var(--ds-tag-info-dot)}.ds-dot--done{background:var(--ds-tag-done-dot)}.ds-dot--error{background:var(--ds-error)}
/* One rule for a table in a card (a titled card, a list card): it runs flush to the card's edges with no ring of its own. */
/* The same look in a section drawn as a card and in a flat card set in one (S17, master audit RULE-S17-01: a PO's Your
   answer and Shipment documents were inset and part width beside Products in this order). A table under its own h3 in
   such a section is a compact second table (the product page's batches, owner 31 Oct 2026) and keeps its content width. */
.ds-card>.ds-table-wrap,.ds-main:has(:is(section,details).ds-section ~ :is(section,details).ds-section) :is(section,details).ds-section:not(.ds-card,.ds-section .ds-section,:has(> .ds-cards .ds-summary-card))>.ds-table-wrap:not(h3+.ds-table-wrap){width:auto;max-width:none;margin:0 calc(-1 * var(--ds-card-x));border-radius:0;box-shadow:none;border-top:1px solid var(--ds-line-2)}
.ds-card>.ds-table-wrap:last-child,.ds-card>.ds-table-wrap:has(+.ds-pager:not(.ds-pager--pages):last-child),.ds-main:has(:is(section,details).ds-section ~ :is(section,details).ds-section) :is(section,details).ds-section:not(.ds-card,.ds-section .ds-section,:has(> .ds-cards .ds-summary-card))>.ds-table-wrap:not(h3+.ds-table-wrap):last-child{margin-bottom:calc(-1 * var(--ds-card-y));border-radius:0 0 var(--ds-r) var(--ds-r)}
/* The list card (list_card): the toolbar, the flush table, the pager under it only above 25 rows; an empty list is one line. */
.ds-card--list>.ds-toolbar{margin:0 0 var(--ds-s3)}
/* One gap from the toolbar to the table on every list (FINAL5 UI-05): what sits between them (the bulk action's empty
   form) adds none. */
.ds-main .ds-card.ds-card--list>.ds-toolbar~:is(.ds-table-wrap,form){margin-top:0}
.ds-card--list>.ds-table-wrap+.ds-pager{margin-top:var(--ds-s3)}
.ds-card--list>.ds-empty{padding:var(--ds-s2) 0;border:0}
.ds-main .ds-card--list>.ds-table-wrap{margin-top:0}
.ds-main .ds-card--list+*{margin-top:var(--ds-block)}
/* The count once (#569 relaxed): on one page it stands in the toolbar and its copy under the list hides; above 25 rows
   only the pager under the list shows it. A ticked row's bulk bar takes the count's place. */
.ds-toolbar .ds-pager{flex:none;margin:0}
.ds-toolbar .ds-pager--pages,.ds-toolbar~.ds-pager:not(.ds-pager--pages),.ds-toolbar:has(.ds-bulk:not([hidden])) .ds-pager{display:none}
.ds-filter-chips{display:flex;flex-wrap:wrap;flex-basis:100%;gap:var(--ds-s2);margin:0;padding:0;list-style:none}
.ds-filter-chips a{display:inline-flex;align-items:center;gap:var(--ds-s1);min-height:var(--ds-control-sm);padding:0 var(--ds-s3);border-radius:var(--ds-r);background:var(--ds-line-2);color:var(--ds-ink-3);font-size:var(--ds-fs-small);text-decoration:none}
.ds-filter-chips a:hover{background:var(--ds-line)}
/* ImportGuide (item 15): an ISO-style numbered list, each number in a dark circle in the list's own padding. */
.ds-guide{counter-reset:ds-guide;list-style:none;margin:var(--ds-s4) 0;padding:0}
.ds-guide>li{counter-increment:ds-guide;position:relative;min-height:var(--ds-control-sm);margin:0 0 var(--ds-s3);padding-left:calc(var(--ds-control-sm) + var(--ds-s3));line-height:1.5}
.ds-guide>li::before{content:counter(ds-guide);position:absolute;left:0;top:0;display:flex;align-items:center;justify-content:center;width:var(--ds-control-sm);height:var(--ds-control-sm);border-radius:50%;background:var(--ds-ink);color:var(--ds-bg);font-size:var(--ds-fs-small);font-weight:600}
/* The supplier list's onboarding: the step word, a 6-part bar and the next step under it. */
.ds-steps{display:flex;gap:var(--ds-s1);width:96px;margin:var(--ds-s1) 0}
.ds-steps i{flex:1;height:4px;border-radius:var(--ds-r-pill);background:var(--ds-line)}
.ds-steps i.is-on{background:var(--ds-tag-info-dot)}
.ds-steps.is-done i.is-on{background:var(--ds-tag-done-dot)}
.ds-cell-sub{display:block;color:var(--ds-ink-2);font-size:var(--ds-fs-meta);line-height:18px}
.ds-cell-sub.is-late{color:var(--ds-error)}
/* A list's tick column is for the bulk bar, a desktop task: a phone's row cards keep each row's own action instead. */
@media (max-width:767.98px){.ds-table .ds-tick{display:none}}
/* EntityHeader: back link, the name and its status, one meta line, then the tabs on a hairline. */
.ds-entity{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--ds-s2);margin-bottom:var(--ds-block)}
.ds-entity__row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--ds-s3) var(--ds-s6)}
.ds-entity__title{display:flex;flex-wrap:wrap;align-items:center;gap:var(--ds-s2) var(--ds-s3)}
.ds-entity__actions{display:flex;flex-wrap:wrap;align-items:center;gap:var(--ds-s3)}
.ds-entity__facts{display:flex;flex-wrap:wrap;margin:0;padding:0;list-style:none;color:var(--ds-ink-2);font-size:var(--ds-fs-small)}
.ds-entity__facts li+li::before{content:"·";padding:0 var(--ds-s2)}
.ds-entity__tabs ul{display:flex;gap:var(--ds-s5);overflow-x:auto;scrollbar-width:none;margin:var(--ds-s2) 0 0;padding:0;list-style:none;box-shadow:inset 0 -1px var(--ds-line)}   /* one row: scrolls sideways when the tabs do not fit (nb at 1024 px); the rule as a shadow, so the current tab's line is not clipped */
@media (max-width:1199.98px){.ds-entity__tabs ul{gap:var(--ds-s3)}}   /* all seven supplier tabs fit at 1024 px, nb too (T146) */
.ds-entity__tabs:not(.ds-entity>*){margin-bottom:var(--ds-block)}   /* the tabs alone under a pinned head (the product page) keep the head's gap to the first card */
.ds-entity__tabs a{display:inline-flex;white-space:nowrap;align-items:center;gap:var(--ds-s2);min-height:var(--ds-control);border-bottom:2px solid transparent;color:var(--ds-ink-2);font-weight:500;text-decoration:none}
.ds-entity__tabs a:hover{color:var(--ds-ink)}
.ds-entity__tabs a[aria-current="page"]{border-bottom-color:var(--ds-ink);color:var(--ds-ink)}
/* Timeline: a date chip per day, then each event with its initials, who, what and the object it links. */
/* FactGrid: a detail page's key facts, three columns, the label small, in sentence case, above its value (STEP6-8 8.2). */
/* Delivery record (#512, owner 21 Nov 2026, option A): the score as a big letter in its status colour, the share on
   time beside it; the facts under it are .ds-facts. */
.ds-score{display:flex;flex-wrap:wrap;align-items:baseline;gap:var(--ds-s2) var(--ds-s3);margin:var(--ds-s3) 0 0}
.ds-score__letter{font-size:var(--ds-fs-metric);line-height:1;font-weight:500}
.ds-score__letter--done{color:var(--ds-tag-done-fg)}
.ds-score__letter--action{color:var(--ds-tag-action-fg)}
.ds-score__letter--error{color:var(--ds-error)}
.ds-score__pct{font-size:var(--ds-fs-question);font-weight:500}
.ds-facts{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:var(--ds-s4) var(--ds-s6);margin:0}
.ds-facts dt{color:var(--ds-ink-2);font-size:var(--ds-fs-label);font-weight:600}
.ds-facts dd{margin:var(--ds-s1) 0 0;overflow-wrap:anywhere}
p+.ds-facts,.ds-facts+p{margin-top:var(--ds-s4)}
.ds-timeline{display:grid;gap:var(--ds-s3);margin:0;padding:0;list-style:none}
.ds-timeline__day{margin-top:var(--ds-s1)}
.ds-chip-date{display:inline-block;height:18px;padding:0 var(--ds-s1);border-radius:var(--ds-r);background:var(--ds-line-2);color:var(--ds-ink-2);font-size:var(--ds-fs-label);font-weight:600;line-height:18px}
.ds-timeline__item{display:flex;align-items:flex-start;gap:var(--ds-s2);font-size:var(--ds-fs-small)}
.ds-timeline__item p{margin:0;min-width:0;overflow-wrap:anywhere}
.ds-avatar--sm{flex:none;width:22px;height:22px;background:var(--ds-line-2);font-size:var(--ds-fs-label);font-weight:600}
.ds-avatar--portal{background:var(--ds-nav);color:var(--ds-nav-ink-strong)}
.ds-timeline__time{color:var(--ds-ink-2);font-size:var(--ds-fs-meta)}
.ds-timeline__item strong+.ds-timeline__time{margin-left:var(--ds-s2)}
.ds-timeline__what{display:block}   /* the sentence under the name and time (mockup v4) */
/* Segmented: My / All, the current one filled navy. */
.ds-segmented{display:inline-flex;padding:var(--ds-s1);border-radius:var(--ds-r);background:var(--ds-line-2)}
.ds-segmented a{display:inline-flex;align-items:center;min-height:var(--ds-control-sm);padding:0 var(--ds-s3);border-radius:calc(var(--ds-r) - 4px);color:var(--ds-ink-2);font-size:var(--ds-fs-small);font-weight:500;text-decoration:none}
.ds-segmented a:hover{color:var(--ds-ink)}
.ds-segmented a[aria-current="page"]{background:var(--ds-nav);color:var(--ds-nav-ink-strong)}
/* Row actions: small outline buttons at the row's end; the second from 1200 px. */
.ds-row-actions{display:inline-flex;gap:var(--ds-s2);white-space:nowrap}
.ds-root .ds-button--sm{min-height:var(--ds-control-sm);padding:0 var(--ds-s3);font-size:var(--ds-fs-small)}
.ds-row-actions__form{display:contents}
.ds-row-actions--choice{flex-wrap:wrap}
.ds-table-wrap[data-one-line] .ds-row-actions--choice{flex-wrap:nowrap}   /* a one-line list keeps Approve and Reject side by side (TABLE-01) */
@media (min-width:768px) and (max-width:1199.98px){   /* so the PO list fits its card at 1024 px with them (TABLE-01): a status's "+1" waits for 1200 px, as the Documents column it repeats, and a row button's sides are 8 px */
  .ds-table-wrap[data-one-line] .ds-table td .ds-tags__more{display:none}
  .ds-table-wrap[data-one-line] .ds-row-actions .ds-button{padding-inline:var(--ds-s1)}   /* nb's Godkjenn and Avvis fit beside a long PO number (tester T-MAF) */
}
.ds-table-wrap[data-action] .ds-table td:last-child .ds-row-actions{justify-content:center}   /* a row's items centre in the action cell, a wrapped one too (the PO tab's Approve, Reject and pencil, MR-R) */
/* A supplier's Company card: three pairs a line from 1680 px (staff mockup v2), two from 1440 px, one below, so a name
   or an address never breaks word by word beside the 330 px column (T170). */
@media (min-width:1680px){dl.ds-fields.ds-fields--three{grid-template-columns:repeat(3,minmax(min-content,2fr) minmax(0,3fr))}
  dl.ds-fields.ds-fields--three dt{white-space:nowrap}
  dl.ds-fields.ds-fields--three>div:last-child:nth-child(3n){grid-column:auto/span 2}
  dl.ds-fields.ds-fields--three>div:last-child:nth-child(3n+2){grid-column:auto/span 4}
  dl.ds-fields.ds-fields--three>div:last-child:nth-child(3n+1){grid-column:1/-1}}
@media (min-width:768px) and (max-width:1439.98px){dl.ds-fields.ds-fields--three{grid-template-columns:minmax(min-content,1fr) minmax(0,2fr)}dl.ds-fields.ds-fields--three>div{grid-column:1/-1}}   /* Approve and Reject both stay, under each other when the column is narrow (T170) */
@media (max-width:1199.98px){.ds-row-actions .ds-from-1200{display:none}}
/* Supplier requests (redesign MR 6): a row's kind small, in sentence case, over its object, a value it replaces struck
   through, and the first new photos as small thumbnails. */
.ds-table td a:has(>.ds-kind){flex-wrap:wrap}
.ds-table .ds-kind{display:block;flex-basis:100%;color:var(--ds-ink-2);font-size:var(--ds-fs-label);font-weight:600}
.ds-table .ds-was{color:var(--ds-ink-2)}
.ds-thumbs{display:flex;gap:var(--ds-s1);margin-top:var(--ds-s1)}
.ds-thumbs img{width:28px;height:28px;border-radius:var(--ds-r);object-fit:cover}
.ds-thumbs--inline{margin:0;align-items:center}
/* Bulk bar: in the toolbar's place while rows are ticked. */
.ds-bulk{display:flex;flex-wrap:wrap;align-items:center;gap:var(--ds-s3);min-height:var(--ds-control)}
.ds-bulk[hidden]{display:none}
.ds-bulk__count{margin:0;font-weight:500}
.ds-bulk [data-ds-bulk-clear]{min-width:var(--ds-control)}
/* A Home list's table fills its card (LATER-MR-NOTES, MR 2): from 768 px a table is otherwise as wide as its content. */
/* Below 1024 px a small control is a 44 px tap target like every other (section 7.5 is the desktop size). */
@media (max-width:1023.98px){.ds-root .ds-button--sm,.ds-segmented a{min-height:var(--ds-control)}}
/* MetricStrip's numbers stand level in a row (as the old Home cards, owner 2026-10-19): the denominator adds no
   height, and below 1440 px, where a label can wrap, every label keeps two lines. */
.ds-metric__of{line-height:1}
@media (max-width:1439.98px){.ds-metric__label{min-height:32px}}
/* MetricStrip's bar (STEP6-8 7.7): 6 px, the green share on the line colour. */
.ds-metric__bar{max-width:none;height:6px;margin-top:var(--ds-s1)}
.ds-metric__bar::-webkit-progress-value{background:var(--ds-tag-done-dot)}
.ds-metric__bar::-moz-progress-bar{background:var(--ds-tag-done-dot)}
/* Home queue (STEP6-8 6.1): a group's heading and its See all are one row across the table; Why's tags stack. */
.ds-table-wrap .ds-table tr.ds-table__span>:is(th,td):first-child{text-align:left;padding:var(--ds-cell-y) var(--ds-cell-x);background:var(--ds-table-head);font-size:var(--ds-fs-small);font-weight:400;text-align:left;text-transform:none;letter-spacing:normal}
.ds-table .ds-table__span--head .ds-secondary-text{color:var(--ds-ink-2);font-weight:400}
.ds-table .ds-table__span:not(.ds-table__span--head)>td{background:none}
.ds-table-wrap .ds-table tr.ds-table__span--head>th:first-child{padding-top:var(--ds-s4);padding-bottom:var(--ds-s2);background:var(--ds-group-head);border-bottom:1px solid var(--ds-border-strong);color:var(--ds-ink);font-size:var(--ds-fs-group);font-weight:700}.ds-table-wrap .ds-table tr:not(:first-child).ds-table__span--head>th:first-child{border-top:1px solid var(--ds-border-strong)}   /* a group's heading reads as a heading, not as one more row (owner, 2 Dec 2026) */
.ds-table__span-row{display:flex;flex-wrap:wrap;align-items:center;gap:var(--ds-s1) var(--ds-s3)}.ds-table__span-end{margin-left:auto}   /* a group header's own button at its right end (item 13) */
.ds-row-actions .ds-button{white-space:nowrap}
.ds-table td>form>.ds-button{white-space:nowrap}   /* a switch table's Turn off keeps its words on one line (nb "Slå av" at 1024 px) */

@media (min-width:768px) and (max-width:1199.98px){.ds-table-wrap[data-action] .ds-table td:last-child .ds-actions--menu>summary.ds-button--chevron{padding-left:var(--ds-s3);padding-right:var(--ds-s5)}}   /* a row's Actions menu button gives up 12 px of padding there, so a narrow card's Users table fits (T174; the chevron needs 22 px) */
.ds-why{display:block}.ds-why+.ds-why{margin-top:var(--ds-s1)}
/* Home's side cards: staff Home beside Needs you from 1680 px, under the queues below it; the supplier's under Needs you; last on a phone; the notepad 72 px. */
:is(.ds-detail__side,.ds-home-row)>.ds-home-side{display:grid;gap:var(--ds-block);align-content:start}.ds-home-side>*{margin:0!important}
/* Staff Home (owner, 2 Dec 2026, local preview): from 1680 px its side cards stand in one History-wide column beside Needs
   you, their tops level, and Waiting on others sits under Needs you; narrower, they stand under the queues, side by side,
   each at least 330 px. A phone stacks them last. The supplier Home keeps option C (.ds-detail__side, above). */
.ds-home-row,.ds-home-main{display:grid;gap:var(--ds-block);align-content:start}:is(.ds-home-row,.ds-home-main)>*{min-width:0;margin:0!important}
@media (min-width:768px) and (max-width:1679.98px){.ds-home-row>.ds-home-side{grid-template-columns:repeat(auto-fill,minmax(min(330px,100%),1fr));align-items:start}}
@media (min-width:1680px){.ds-home-row{grid-template-columns:minmax(0,1fr) var(--ds-history);align-items:start}
  #needs .ds-table col.ds-q-what{width:16%}#needs .ds-table col.ds-q-vendor{width:22%}}   /* beside the side cards the reason gets the room, so its note stays on one line (owner, 2 Dec 2026) */
/* A wide Needs you card (1,500 px and more, on a wide screen) gives the task the room a product name needs, on one
   line; the supplier and the reason still have more than their words need (owner, 3 Dec 2026). */
#needs{container-type:inline-size}
@container (min-width:1500px){#needs .ds-table col.ds-q-what{width:28%}#needs .ds-table col.ds-q-vendor{width:18%}}
/* A numbered list in a right-column card (How this portal works): its numbers start at the card's text edge, under the
   title's first letter, and a wrapped line starts under the text after its number (owner, 16 Nov 2026, FINAL5 OWN-18);
   the links after it are a paragraph of their own at the text edge. */
.ds-home-side .ds-card>ol:not(.ds-timeline){margin:0;padding:0;list-style:none;counter-reset:step}
.ds-home-side .ds-card>ol:not(.ds-timeline)>li{position:relative;padding-left:var(--ds-s5);counter-increment:step}
.ds-home-side .ds-card>ol:not(.ds-timeline)>li::before{content:counter(step) ".";position:absolute;left:0}
.ds-home-side .ds-card>ol+.ds-how__more{margin-top:var(--ds-block)}
.ds-metrics{margin-bottom:var(--ds-block)}
.ds-main .ds-actions-row+.ds-metrics{margin-top:var(--ds-block)}   /* a row of buttons never touches the strip (owner 28 Oct: spacing between blocks) */
.ds-root .ds-notepad{min-height:72px;height:72px}

/* Food information's nutrition tables (owner, 20 Nov 2026, layout B): compact striped rows, small right-aligned values
   with the unit after; Required nutrition beside More nutrition from 1200 px, stacked below (owner, 20 Nov 2026). */
#nutrition .food-table{--ds-cell-x:8px}
#nutrition .food-table td{border:0;padding-block:var(--ds-food-cell-y);vertical-align:middle;white-space:nowrap}
#nutrition .food-table :is(.ds-field,.ds-input){display:inline-block;width:auto;margin:0;vertical-align:middle}
#nutrition .food-table .ds-input--short{width:56px;text-align:right;min-height:0;padding-block:var(--ds-food-input-y)}
#nutrition .food-table .ds-select{min-height:0;padding-block:var(--ds-food-input-y);margin-left:.35rem}
#nutrition .food-table .food-sub{padding-left:calc(var(--ds-cell-x) + .75rem)}
#nutrition .food-table .food-unit{margin:0 .3rem}
#nutrition .food-pair{display:inline-block;white-space:nowrap}
#nutrition .food-table td:first-child .ds-input:not(.ds-input--short){width:120px}
#nutrition .ds-columns :is(.ds-table-wrap,.food-table){width:100%}
#nutrition>:is(.ds-columns,details,.ds-table-wrap){margin-top:var(--ds-s4)}
/* A value's message wraps, under its own input: a pair with an error takes its own line, so kJ's and kcal's never overlap. */
#nutrition .food-table .ds-error{white-space:normal}
#nutrition .food-table td:first-child{white-space:normal}   /* a long nutrient name (nb) wraps before a value is hidden */
#nutrition .food-pair:has(.ds-field--error),#nutrition .food-table .ds-field--error{display:block}
/* Food information form (owner's walk, 20 Nov 2026). A + button and anything after a box keep the shared block gap. */
#nutrition .ds-columns p:has(>button[value=vitamins]),.food-others .food-other{margin:var(--ds-block) 0 0}
#nutrition .food-table .food-minus{min-height:0;padding-block:var(--ds-food-input-y)}
.food-minus{min-width:36px;padding-inline:.6rem;font-weight:700;line-height:1}
.food-enter{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}   /* Enter without the script saves */
.food-names{margin:0;font-weight:600}
#declare .ds-msg .ds-field{margin:0}
#declare .ds-msg .ds-radio-card{color:var(--ds-ink);font-weight:600}
/* Allergens: Contains, None and Other allergens on the left; traces and the added allergens on the right from 1200 px. */
.food-allergens .ds-fieldset{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:var(--ds-s2)}
.food-allergens .ds-radio-card{margin:0}
#allergens-section .ds-field:has(#food-no_allergens) .ds-radio-card{width:fit-content}
.food-allergen-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--ds-s3) var(--ds-s5);align-items:start}
@media (min-width:1200px){.food-allergen-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto 1fr;grid-template-areas:"a b" "a c"}
  .food-allergen-grid__a{grid-area:a}.food-allergen-grid__b{grid-area:b}.food-allergen-grid__c{grid-area:c}}
.food-others .food-other{display:flex;gap:var(--ds-s2);align-items:center}
.food-others .food-other .ds-input{flex:0 1 320px}
.food-known:empty,.food-added-wrap:has(.food-added:empty){display:none}
.food-added-wrap .ds-label{margin:0 0 var(--ds-s2)}
/* Copy from an earlier product: right of the title from 1200 px, above the form below. */
.food-copy{display:grid;gap:var(--ds-s1);max-width:420px;margin-bottom:var(--ds-s3)}
.food-copy__row{display:flex;gap:var(--ds-s2);align-items:center}
.food-copy__row .ds-input{flex:1;min-width:0}
@media (min-width:1200px){.food-copy{float:right;width:420px;margin-top:var(--ds-food-copy-lift);margin-bottom:0}.food-names{max-width:calc(100% - 420px - var(--ds-s4))}}   /* the names never run under the copy box (T196 L1) */
/* Photos and descriptions: Descriptions left and Photos right from 1440 px, stacked below; a long name wraps. */
@media (max-width:1439.98px){.photo-cols{grid-template-columns:minmax(0,1fr)}}
@media (min-width:1440px){.photo-cols>.ds-section{margin-top:0}}
.photo-cols #photos .ds-table :is(td,th):first-child{white-space:normal}
/* Use the same description, in place. */
.ds-same-panel:not([hidden]){border:2px solid var(--ds-primary);display:grid;gap:var(--ds-s3);margin-block:var(--ds-s3) var(--ds-block)}
.ds-same-ticks{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:var(--ds-s2)}
.ds-same-ticks .ds-radio-card{margin:0}
@media (max-width:1439.98px){#nutrition .ds-columns{grid-template-columns:minmax(0,1fr)}}   /* More nutrition's five columns need the room */
/* Webshop categories (owner, 20 Nov 2026): one column; a product's cell holds its chosen categories (grey pills) and its
   suggestions as tick-box chips; the category list below is an accordion. */
.cat-filter{max-width:360px}
.cat-chip{display:inline-flex;align-items:center;gap:var(--ds-s2);margin:var(--ds-food-input-y) var(--ds-s1) var(--ds-food-input-y) 0;padding:var(--ds-food-input-y) var(--ds-s2);border:1px solid var(--ds-primary);border-radius:var(--ds-r);background:var(--ds-highlight);font-size:var(--ds-fs-meta);line-height:20px;white-space:nowrap;cursor:pointer}
.cat-chip:has(input:not(:checked)){background:var(--ds-bg);border-color:var(--ds-line);border-style:dashed}
.ds-root .cat-chip input{width:14px;height:14px;margin:0}
.cat-chip__why{color:var(--ds-ink-2)}
.cat-tree{margin-top:var(--ds-block)}
.ds-main .cat-applies{margin:var(--ds-s3) 0 var(--ds-s1);font-weight:600}
@media (min-width:1440px){.ds-table td:has(> .ds-pill).ds-wrap{white-space:normal}}   /* the categories cell wraps between pills and chips */
.cat-tree .ds-fieldset>.ds-legend{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}   /* the section heading names it */

.cat-filter-row{display:flex;flex-wrap:wrap;gap:var(--ds-s2);align-items:center;margin-bottom:var(--ds-s3)}   /* the categories step's name filter: one input, not a list toolbar (no sorting, no pager) */
/* Textile information (TEXTILE-INFO; owner's layout B, 20 Nov 2026): Material and fit beside Care instructions from
   1200 px; compact fibre rows (fibre 260 px, % 90 px, 8 px apart); care, rise and shoe materials as small radio-card chips. */
.tex-two{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--ds-block) var(--ds-s5);align-items:start}
@media (min-width:1200px){.tex-two{grid-template-columns:repeat(2,minmax(0,1fr))}}
.ds-main .tex-two>.ds-section{margin-top:0}
.tex-two .ds-section>.ds-field+.ds-field,.tex-two .ds-section>.tex-parts+.ds-field,.tex-two .ds-section>.ds-field+.ds-field{margin-top:var(--ds-s4)}
.tex-small-tick{display:inline-flex;align-items:center;gap:var(--ds-s2);font-size:var(--ds-fs-small);color:var(--ds-ink-2);cursor:pointer}
.ds-root .tex-small-tick input{width:16px;height:16px;margin:0}
.tex-parts{display:grid;gap:var(--ds-s4);margin:var(--ds-s3) 0 var(--ds-s4)}
.tex-parts[hidden]{display:none}
.tex-part{margin:0;padding:0;border:0;min-width:0}
.tex-part__head{display:flex;flex-wrap:wrap;align-items:center;gap:var(--ds-s2);margin-bottom:var(--ds-s2)}
.tex-part__title{font-weight:600}
.tex-part__head .ds-select{width:auto}
.tex-part__name{flex:1 1 160px;min-width:0;max-width:260px}
.tex-part__name[hidden],.tex-part__head [hidden]{display:none}
.tex-fibres{display:grid;gap:var(--ds-s2)}
.tex-fibre{display:flex;flex-wrap:wrap;align-items:center;gap:var(--ds-s2)}
.ds-root .tex-fibre__name{width:260px;max-width:100%;flex:0 1 260px}
.tex-fibre__pct{display:inline-flex;align-items:center;gap:var(--ds-s1)}
.ds-root .tex-fibre__pct .ds-input{width:90px;text-align:right}
.tex-fibre__error{flex-basis:100%;margin:0}
.tex-fibre.is-error .ds-input{border-color:var(--ds-error)}
.tex-part__actions{display:flex;flex-wrap:wrap;gap:var(--ds-s2);margin-top:var(--ds-s3)}
.tex-note{display:inline-block;margin-left:var(--ds-s2);padding:0 var(--ds-s1);border-radius:var(--ds-r);background:var(--ds-selected);color:var(--ds-ink-2);font-size:var(--ds-fs-meta);font-weight:400;line-height:18px;cursor:help}
.ds-root .tex-short{width:90px;max-width:90px}
.tex-line{display:flex;flex-wrap:wrap;align-items:center;gap:var(--ds-s2) var(--ds-s3)}
.tex-unit{display:inline-flex;align-items:center;gap:var(--ds-s1)}
.ds-root .tex-size{width:auto}
.tex-chips{display:flex;flex-wrap:wrap;gap:var(--ds-s2)}
.ds-root .tex-chips .ds-radio-card.tex-chip{display:inline-flex;width:auto;margin:0;padding:var(--ds-s1) var(--ds-s3);white-space:nowrap}
.ds-root .tex-chips .ds-radio-card.tex-chip:has(input:checked){font-weight:600}
.tex-care__group+.tex-care__group{margin-top:var(--ds-s4)}
.ds-main #care .ds-field+.ds-field{margin-top:var(--ds-s4)}
.ds-main #material textarea.ds-textarea,.ds-main #care textarea.ds-textarea{min-height:0;height:auto}
.tex-shoe{display:grid;gap:var(--ds-s3);margin:var(--ds-s3) 0 var(--ds-s4)}
.tex-shoe .ds-field{margin:0}
