/* Native desktop workspaces and the isolated business directory. The skin is
   shared with the original component system; mobile, TV and print load their own styles. */
@media screen {
  :root {
    --desk-paper: #f6f1e9;
    --desk-ink: #2b2620;
    --desk-muted: #70675f;
    --desk-line: #e8e0d2;
    --desk-rose: #b03a5b;
    --desk-rose-dark: #883049;
    --desk-blush: #fdf0f3;
    --desk-link: #30648b;
  }
  .entry93 {
    display: grid;
    grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
    max-width: 1000px;
    margin: clamp(24px, 5vh, 56px) auto;
    padding: 0;
    gap: 0;
    align-items: stretch;
    background: white;
    border: 1px solid var(--desk-line);
    border-radius: 16px;
    overflow: hidden;
  }
  .entry93 .entry93-intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(24px, 4vw, 52px);
    background: linear-gradient(135deg, #faf4e9 0%, #faf1ed 63%, #f9e9ed 100%);
    border-right: 1px solid var(--desk-line);
  }
  .entry93 .entry93-intro > span { color: var(--desk-rose-dark); font-size: 13px; font-weight: 700; letter-spacing: .04em; }
  .entry93 .entry93-intro h1 { color: var(--desk-ink); font-size: clamp(27px, 2.5vw, 38px); line-height: 1.3; letter-spacing: -.035em; margin: 11px 0; }
  .entry93 .entry93-intro p, .entry93 .entry93-card p { color: var(--desk-muted); margin: 4px 0; line-height: 1.65; }
  .entry93 .entry93-flow { display: flex; flex-wrap: wrap; gap: 5px 8px; margin-top: 32px; font-size: 12px; font-weight: 600; color: #665947; }
  .entry93-flow span { white-space: nowrap; }
  .entry93 .entry93-card { border: 0; border-radius: 0; padding: clamp(24px, 3.4vw, 44px); margin: 0; }
  .entry93 .entry93-card h2 { font-size: 20px; margin: 0; }
  .entry93 .entry93-options { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; margin: 19px 0 20px; }
  .entry93 .entry93-options button { min-height: 43px; color: var(--desk-ink); background: #fffcf9; font-size: 14px; padding: 9px 14px; justify-content: flex-start; }
  .entry93 .entry93-options button:hover, .entry93 .entry93-options button:focus-visible { color: var(--desk-rose-dark); background: var(--desk-blush); border-color: var(--desk-rose); }
  .entry93 .entry93-card footer { color: var(--desk-muted); font-size: 12px; padding-top: 13px; }

  .wf-sidebar .wf-nav-label { font-size: 13px; }
  .wf-sidebar button[data-wf-open].active, .wf-sidebar #wf-home-button.active {
    box-shadow: inset 3px 0 var(--desk-rose);
  }
  .ehd-all-todos { font-variant-numeric: tabular-nums; }
  .ehd-all-todos .ehd-heading { align-items: center; margin-bottom: 15px; }
  .login:has(>.login-brand) > .login-brand, #live-login #live-login-form, #content > .card.login {
    border-color: var(--desk-line);
    border-top: 3px solid var(--desk-rose);
  }
  .login:has(>.login-brand) > .login-brand { padding: 22px 28px 12px; }
  .login:has(>.login-brand) > .login-panel { padding-top: 0; }
  .login .login-panel form { border: 0; box-shadow: none; }
  .login .login-panel form :is(input,button.primary), #live-login #live-login-form :is(input,button.primary) { min-height: 40px; }
  body[data-design94="production_v2"] #live-login { background: var(--desk-paper); color: var(--desk-ink); }
  #live-login #live-login-form { background: white; color: var(--desk-ink); border-radius: 14px; padding: 29px 30px; }
  #live-login #live-login-form > p, .login .login-brand p { color: var(--desk-muted); }
  #live-login #live-login-form > button.primary, #content > .card.login button.primary { width: 100%; margin: 8px 0; }
  #content > .card.login { width: min(100%, 440px); margin: min(8vh,64px) auto; display: block; min-height: auto; padding: 24px; }
  #content > .card.login form { max-width: none; padding: 0; margin: 12px 0 0; border: 0; }
  body[data-design94="index"] > .review-nav {
    display: flex; justify-content: flex-end; align-items: center; min-height: 25px;
    background: #f8f3eb; padding: 2px 14px; border-bottom: 1px solid var(--desk-line);
  }
  body[data-design94="index"] > .review-nav .review-shortcut { background: transparent; border: 0; border-radius: 0; padding: 0 2px; min-height: 0; font-size: 12px; color: var(--desk-rose-dark); }
  html.wf-embedded body[data-design94="index"] > .review-nav { display: none; }

  :is(body[data-design94="sales80"],body[data-design94="warehouse80"]) > header { min-height: 55px; padding: 12px 24px; }
  :is(body[data-design94="sales80"],body[data-design94="warehouse80"]) > header :is(a,#identity) { color: var(--desk-muted); font-size: 13px; }
  body[data-design94="warehouse80"] > header a[href*="screen"] { color: var(--desk-link); }
  body[data-design94="warehouse80"] #tabs { display: flex; flex-wrap: wrap; gap: 5px; padding: 6px 18px; background: white; border-bottom: 1px solid var(--desk-line); }
  body[data-design94="warehouse80"] #tabs button { padding: 6px 12px; background: transparent; color: var(--desk-muted); border-color: transparent; }
  body[data-design94="warehouse80"] #tabs button.active { background: var(--desk-blush); color: var(--desk-rose-dark); }
  body[data-design94="warehouse80"] .cards > a.card { display: flex; flex-direction: column; justify-content: space-between; gap: 5px; min-height: 85px; padding: 15px 17px; border-radius: 10px; text-decoration: none; }
  body[data-design94="warehouse80"] .cards > a.card h2 { margin: 0; color: var(--desk-ink); }
  body[data-design94="warehouse80"] .cards > a.card span { color: var(--desk-muted); font-size: 12px; }
  body[data-design94="warehouse80"] .cards > a.card:hover { border-color: var(--desk-rose); background: #fff9fa; }
  body[data-design94] :is(.workspace,.main,#content,.ehd-home) table { font-variant-numeric: tabular-nums; }
  body[data-design94] :is(.workspace,.main,#content) table th { background: #faf7f1; color: #675f56; }
  body[data-design94] :is(.workspace,.main,#content) table tbody tr:not(.selected):hover { background: #fffcf7; }
  body[data-design94] :is(.workspace,.main,#content) table :is(td,th) { border-color: #eee8df; }
  body[data-design94] :where(.workspace,.main,#content) :is(button, a)[data-erp-button-role="info"]:not(.primary) { color: var(--desk-link); }
  body[data-design94] :where(.workspace,.main,#content) :is(button,a)[data-erp-button-role="neutral"]:not(.primary):not(.active) { color: var(--desk-ink); }
  body[data-design94] :is(button,a,input,select,textarea):focus-visible, .review-home a:focus-visible { outline: 2px solid var(--desk-rose); outline-offset: 2px; }

  /* A quote is assembled above and confirmed in the fixed action bar. */
  #s-content .catalog-toolbar.card-maintenance,
  #s-content .catalog-search,
  #s-content .cc43-quote-panel {
    background: white;
    border-color: var(--desk-line);
    border-radius: 12px;
  }
  #s-content .catalog-toolbar .catalog-tools button,
  #s-content .catalog-search button,
  #s-content .cc43-quote-actions [data-card-quote] {
    color: var(--desk-ink);
    background: white;
    border: 1px solid var(--desk-line);
  }
  #s-content .catalog-search button[data-card-view].primary,
  #s-content .catalog-toolbar .catalog-tools button.primary {
    background: var(--desk-blush);
    color: var(--desk-rose-dark);
    border-color: #e8bdc9;
  }
  #s-content .catalog-toolbar .catalog-tools button[data-erp-button-role="info"],
  #s-content .catalog-search button[data-erp-button-role="info"] { color: var(--desk-link); }
  #s-content .cc43-quote-panel { border-left: 3px solid #dbb9c4; }
  #s-content .cc43-quote-panel :is(p,small) { color: var(--desk-muted); }
  @media (min-width: 900px) {
    .shell > aside .nav .menu-group > div { padding-inline: 0; }
    .shell > aside .nav .menu-group button { display: flex; align-items: center; column-gap: 6px; padding-inline: 7px; text-align: left; }
    .shell > aside .menu-group .erp-nav-icon { width: 16px; height: 16px; flex: none; margin: 0; }
  }

  @media (max-width: 850px) {
    .entry93 { grid-template-columns: 1fr; margin: 14px auto; }
    .entry93 .entry93-intro { border-right: none; border-bottom: 1px solid var(--desk-line); }
    .entry93 .entry93-flow { margin-top: 10px; }
  }
}
.section-mark15{display:inline-block;vertical-align:-.17em;margin-inline-end:.38em;color:#94314f;flex:none;pointer-events:none}

/* The full workspace owns this frame. Standalone forms and printed documents keep theirs. */
@media screen {
  .wf-header > .hb44-brand::before { content: none; display: none; }
  .wf-header .hb44-name, .wf-header .hb44-signature { white-space: nowrap; }
  .wf-header .hb44-signature:empty { display: none; }
}
@media screen and (min-width: 900px) {
  .wf-shell {
    --rail-width: clamp(205px, 15.5vw, 238px);
    --frame-gutter: clamp(20px, 2.1vw, 36px);
    grid-template-columns: var(--rail-width) minmax(0,1fr);
    grid-template-rows: 66px minmax(0,1fr);
    background: #f6f3ee;
  }
  .wf-shell > .wf-header {
    gap: 18px;
    padding: 0 var(--frame-gutter) 0 0;
    background: #fff;
    border-color: #e2dcd3;
    position: relative;
    z-index: 6;
  }
  .wf-header > .hb44-brand {
    flex: 0 0 var(--rail-width);
    align-self: stretch;
    display: flex;
    align-items: center;
    gap: 9px;
    padding-left: 17px;
    border-right: 1px solid #e4dbd5;
  }
  .wf-header .hb44-name {font-size: 18px; line-height: 1.35;}
  .wf-header .hb44-signature {font-size: 12px; color: #766864; letter-spacing: .025em;}
  .wf-header > .hb44-status-panel {display: none;}
  .wf-header .wp44-quicksearch {order: 1; flex: 0 1 300px;}
  .wf-header #wf-search {border-color: #e1d9d0; border-radius: 8px; background: #f8f6f2; min-height: 36px; color: #302a26;}
  .wf-header .wp44-ticker {order: 2; border: 0; background: transparent; padding: 0; gap: 8px; justify-content: flex-end;}
  .wf-header .wp44-ticker-window {flex: 0 1 auto;}
  .wf-header .wp44-ticker-empty {color: #786e64;}
  .wf-header .wp44-all-notices, .wf-header .wf-website-link {color: #634c51; font-size: 12px;}
  .wf-header .wp44-account {padding-left: 14px; border-left: 1px solid #e7e1d8;}
  .wf-shell > .wf-sidebar {padding: 17px 12px 10px; background: #fffdfb; border-color: #e0d9d1;}
  .wf-sidebar #wf-home-button {min-height: 39px; padding-inline: 12px; gap: 10px; font-size: 14px; border-radius: 7px;}
  .wf-sidebar #wf-home-button.active {color: #862e4d; background: #f8e8ed; box-shadow: none;}
  .wf-sidebar .wf-group-common {border-bottom: 1px solid #e9e2db; padding-bottom: 14px; margin-bottom: 8px;}
  .wf-sidebar .wf-group-common h2 {font-size: 11px; letter-spacing: .08em; margin: 11px 0 5px; color: #76695f;}
  .wf-sidebar .wf-nav-business > section {margin: 3px 0;}
  .wf-sidebar .wf-nav-business h2 {margin: 0;}
  .wf-sidebar h2 > button[data-wf-group] {
    display: flex; align-items: center; justify-content: flex-start; gap: 11px;
    padding: 9px 11px; min-height: 39px; color: #463a36; font-size: 14px; font-weight: 600;
  }
  .wf-sidebar [data-wf-group] .desk-module-name {flex: 1; text-align: start;}
  .wf-sidebar .desk-module-mark {
    width: 18px; height: 18px; flex: none;
    fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round;
  }
  .wf-sidebar .desk-module-mark {color: #786257;}
  .wf-sidebar [data-wf-group][aria-expanded="true"] .desk-module-mark {color: #923853;}
  .wf-sidebar .wf-nav-business h2 + div {border-left: 1px solid #eaded8; margin-left: 19px; padding-left: 6px;}
  #wf-nav .wf-nav-business .wf-nav-item > button[data-wf-open] {
    display:flex; align-items:center; gap:7px; width:100%; min-width:0;
    padding:7px 8px; text-align:left; line-height:1.5;
  }
  #wf-nav .wf-nav-business .wf-nav-label {
    display:block; flex:1 1 auto; min-width:0; white-space:normal;
    overflow:visible; text-overflow:clip; text-wrap:pretty; font-size:13px;
  }
  #wf-nav .wf-nav-business .erp-nav-icon, #wf-nav .wf-nav-business .wf-nav-count {flex:none;}
  .wf-sidebar .wf-nav-business h2 + div {margin-left:13px; padding-left:4px;}
  .wf-sidebar .wf-nav-count[data-count-tone="pending"] {background: #fff0cf; color: #814c14;}
  .wf-sidebar .review-nav {margin-top: 8px; padding: 11px 3px 2px; text-align: left; border-top: 1px solid #e6ded4; flex: none;}
  .wf-sidebar .review-shortcut {padding: 3px 8px; background: transparent; border: 0; font-size: 12px; font-weight: 500; color: #705d56;}
  .wf-main > .wf-tab-row {height: 38px; background: #fffcf9; padding-inline: var(--frame-gutter); border-color: #e6ded5;}
  .wf-main #wf-tabs {height: 100%; gap: 6px; align-items: center;}
  .wf-main #wf-tabs .wf-tab-home {border-radius: 0; padding-inline: 0; margin-right: 12px;}
  .wf-is-home #wf-tabs .wf-tab-home {border-bottom: 2px solid #9a3453; font-weight: 700; color: #87314c;}
  .wf-main #wf-tabs button[data-wf-quick73] {margin-block: 0; padding-inline: 11px;}
  .wf-shell #wf-home {padding: 20px var(--frame-gutter) 14px;}
  .wf-shell #wf-home > .wf-tv-entry {background: #fffcf9; margin-top: 16px; padding: 13px 18px; gap: 13px; border-radius: 10px;}
  .wf-shell .wf-tv-entry .wf-tv-icon {width: 32px; height: 32px;}
  .wf-shell .wf-tv-entry h2 {font-size: 15px;}
  .wf-tv-entry .wf-tv-copy small {font-size: 11px;}
}

/* Count badges can change row heights while the reader is scrolled down the menu. */
@media screen {
  #wf-nav .wf-nav-business, #wf-nav .wf-nav-saved {overflow-anchor: none;}
}

/* A standalone directory, grouped by workflow. All links use the existing native locations. */
@media screen {
  .directory-page {margin: 0; min-height: 100vh; background: #f6f3ed; color: #2e2927;}
  .directory-mast {border-bottom: 1px solid #e1d9d1; background: #fffdfb;}
  .directory-mast > div, .review-home.desktop-directory {width: min(1140px, 100%); margin: 0 auto; padding-inline: clamp(16px, 4vw, 56px);}
  .directory-mast > div {min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px;}
  .directory-mast strong {display: flex; align-items: center; gap: 9px; font-size: 19px;}
  .directory-mast strong small {font-size: 12px; font-weight: 600; color: #76655d;}
  .directory-mast > div > span {color: #705e54; font-size: 13px;}
  .review-home.desktop-directory {padding-block: clamp(32px, 7vh, 76px);}
  .desktop-directory > header {display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 34px;}
  .desktop-directory > header h1 {font-size: clamp(28px, 3vw, 42px); line-height: 1.2; letter-spacing: -.04em; margin: 0;}
  .desktop-directory > header p {font-size: 14px; color: #73665e; margin: 10px 0 0; line-height: 1.55;}
  .desktop-directory a.directory-primary {display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 18px; border: 1px solid #9e3856; border-radius: 8px; color: white; background: #a63859; white-space: nowrap;}
  .desktop-directory a.directory-primary:hover {background: #862d49;}
  .desktop-directory .directory-grid {display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px;}
  .desktop-directory .directory-grid section {min-width: 0; background: #fff; border: 1px solid #e2d9d1; border-radius: 12px; padding: 22px;}
  .desktop-directory .directory-grid h2 {font-size: 18px; margin: 0 0 16px; display: flex; align-items: center; gap: 10px; color: #332b29;}
  .desktop-directory .directory-icon {box-sizing: content-box; width: 20px; height: 20px; padding: 9px; border-radius: 10px; background: #f3e9e2; color: #76543f; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round;}
  .desktop-directory .directory-sales .directory-icon {color: #943753; background: #f8e4eb;}
  .desktop-directory .directory-warehouse .directory-icon {color: #32675d; background: #e6efea;}
  .desktop-directory .directory-mobile .directory-icon {color: #425e72; background: #e6eef2;}
  .desktop-directory .directory-grid nav {display: flex; flex-direction: column; gap: 0; margin: 0;}
  .desktop-directory .directory-grid a {font-size: 14px; font-weight: 500; color: #54453f; padding: 11px 0; background: transparent; border: 0; border-top: 1px solid #ede7df; border-radius: 0;}
  .desktop-directory .directory-grid a:hover {color: #8a2d4e; text-decoration: underline; text-underline-offset: 3px;}
  .desktop-directory .directory-mobile {grid-column: 1/-1; display: flex; align-items: center; gap: 26px; padding-block: 16px;}
  .desktop-directory .directory-mobile h2 {margin: 0; white-space: nowrap;}
  .desktop-directory .directory-mobile nav {flex: 1; flex-direction: row; justify-content: space-between; flex-wrap: wrap; gap: 4px 14px;}
  .desktop-directory .directory-mobile nav a {border: 0;}
}
@media screen and (max-width: 760px) {
  .desktop-directory > header {align-items: start; flex-wrap: wrap; margin-bottom: 22px;}
  .desktop-directory .directory-grid {grid-template-columns: 1fr;}
  .desktop-directory .directory-grid section {padding: 16px;}
  .desktop-directory .directory-mobile {display: block;}
  .desktop-directory .directory-mobile nav {flex-direction: column; gap: 0;}
  .desktop-directory .directory-mobile nav a {border-top: 1px solid #ede7df;}
}

/* Desktop workbench. All dimensions belong to the real working area beside the sidebar. */
@media screen {
  #wf-home .workbench16 {
    --wb-border: #e4dcd1;
    --wb-muted: #695f56;
    --wb-rose: #963351;
    --wb-wine: #783349;
    min-width: 0;
    padding-block: 4px 0;
    color: #2b2620;
    font-variant-numeric: tabular-nums;
    container: workbench / inline-size;
  }
  #wf-home .workbench16 .ehd-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 0 0 18px;
  }
  #wf-home .workbench16 .ehd-heading h1 {
    margin: 0;
    font-size: clamp(21px, 2vw, 29px);
    line-height: 1.28;
    font-weight: 750;
    letter-spacing: -.045em;
    overflow-wrap: anywhere;
  }
  #wf-home .workbench16 .ehd-heading-actions {flex-flow: row wrap; align-items: center; gap: 14px;}
  #wf-home .workbench16 .ehd-heading-actions time {font-size: 13px; color: var(--wb-muted);}
  #app #wf-home .workbench16 .ehd-refresh {
    min-height: 30px; padding: 4px 12px; border: 1px solid var(--wb-border); border-radius: 7px;
    background: white; color: #574b41; font-size: 13px;
  }
  #wf-home .workbench16 .wb-icon {
    width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor;
    stroke-width: 1.65; stroke-linejoin: round; stroke-linecap: round; color: var(--wb-rose);
  }
  #wf-home .workbench16 .wb-glance {
    display: grid; grid-template-columns: minmax(166px, .8fr) minmax(0, 3.2fr);
    border: 1px solid var(--wb-border); border-radius: 13px; overflow: hidden;
    margin-bottom: 20px; background: #fff;
  }
  #wf-home .workbench16 .wb-todo-metric {
    display: grid; grid-template-columns: 1fr auto; align-content: space-between; align-items: end;
    gap: 10px 8px; padding: 17px 19px; background: var(--wb-wine); color: #fff;
  }
  #wf-home .workbench16 .wb-todo-metric h2 {
    grid-column: 1/-1; display: flex; align-items: center; gap: 8px;
    margin: 0; font-size: 14px; line-height: 1.4; font-weight: 600; color: white;
  }
  #wf-home .workbench16 .wb-todo-metric .wb-icon {color: #ffe2e9; width: 17px; height: 17px;}
  #wf-home .workbench16 .wb-total {display: flex; align-items: baseline; gap: 6px; min-width: 0; flex-wrap: wrap;}
  #wf-home .workbench16 .wb-total strong {font-size: clamp(32px,3.2vw,45px); line-height: 1.05; font-weight: 700; letter-spacing: -.045em; overflow-wrap: anywhere;}
  #wf-home .workbench16 .wb-total small {font-size: 12px; color: #ffe2e9;}
  #app #wf-home .workbench16 .wb-todo-metric button {
    width: auto; min-height: 30px; align-self: end; padding: 3px 9px; border: 1px solid #c897a6;
    border-radius: 6px; background: transparent; color: white; font-size: 12px; white-space: nowrap;
  }
  #app #wf-home .workbench16 .wb-todo-metric button:hover {background: #8f4059;}
  #app #wf-home .workbench16 .wb-todo-metric button:focus-visible {outline: 2px solid white; outline-offset: 2px;}
  #wf-home .workbench16 .ehd-metrics {display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0,1fr); grid-template-columns: none; gap: 0; margin: 0;}
  #wf-home .workbench16 .ehd-metric {
    display: flex; flex-direction: column; justify-content: center; gap: 6px; min-width: 0;
    padding: 16px clamp(12px,1.15vw,22px); margin: 0; border: 0; border-radius: 0;
    background: #fff; box-shadow: none;
  }
  #wf-home .workbench16 .ehd-metric + .ehd-metric {border-left: 1px solid var(--wb-border);}
  #wf-home .workbench16 .ehd-metric-top {display: flex; align-items: center; flex-wrap: wrap; gap: 2px 6px; padding-right: 0;}
  #wf-home .workbench16 .ehd-metric-top h2 {margin: 0; color: #4b423c; font-size: 14px; font-weight: 650;}
  #wf-home .workbench16 .ehd-metric-module {font-size: 11px; color: var(--wb-muted);}
  #wf-home .workbench16 .ehd-metric-number {display: flex; align-items: baseline; min-height: 0; margin: 0; gap: 7px;}
  #wf-home .workbench16 .ehd-metric-value {font-size: clamp(25px,2.3vw,34px); margin: 0; line-height: 1.1; font-weight: 710; letter-spacing: -.04em;}
  #wf-home .workbench16 .ehd-metric-value small {font-size: 12px; font-weight: 500; color: var(--wb-muted);}
  #wf-home .workbench16 .ehd-metric-number>[data-ehd-kpi-extra] {font-size: 14px; color: var(--wb-muted);}
  #wf-home .workbench16 .ehd-metric-value.is-unavailable {font-size: 15px; letter-spacing: 0; line-height: 1.5;}
  #wf-home .workbench16 .ehd-metric p {font-size: 12px; line-height: 1.5; color: var(--wb-muted); margin: 0; padding-right: 26px; min-height: 0;}
  #wf-home .workbench16 .ehd-metric p[data-tone=danger] {color: #a82e26;}
  #app #wf-home .workbench16 .ehd-metric-link {right: 10px; bottom: 9px; width: auto;}
  #wf-home .workbench16 .wb-glance[data-single-purchase=true] {grid-template-columns: minmax(166px,.85fr) minmax(152px,1fr) minmax(270px,1.7fr);}
  #wf-home .workbench16 .ehd-metrics[data-visible="1"] .ehd-metric {padding-inline: 20px;}
  #wf-home .workbench16 .ehd-metrics[data-visible="1"] .ehd-metric-top {justify-content: flex-start; gap: 10px;}
  #wf-home .workbench16 .wb-glance>.ehd-purchase-summary {border: 0; border-left: 1px solid var(--wb-border); border-radius: 0;}
  #wf-home .workbench16 .wb-glance>.ehd-purchase-summary .ehd-card-head {min-height: auto; border: 0; padding-bottom: 0;}
  #wf-home .workbench16 .wb-glance>.ehd-purchase-summary .ehd-card-head h2 {font-size: 14px;}
  #wf-home .workbench16 .wb-glance>.ehd-purchase-summary dl {padding-block: 6px 0;}
  #wf-home .workbench16 .wb-glance>.ehd-purchase-summary .ehd-caption {padding-block: 4px 9px;}
  #wf-home .workbench16 .ehd-columns {display: grid; grid-template-columns: minmax(0,1.9fr) minmax(275px,1fr); gap: 18px; align-items: start; margin: 0;}
  #wf-home .workbench16 .ehd-columns[data-purchase=no] {grid-template-columns: minmax(0,1fr);}
  #wf-home .workbench16 .ehd-card {
    min-width: 0; margin: 0; padding: 0; overflow: hidden; border: 1px solid var(--wb-border);
    border-radius: 12px; background: white; box-shadow: none;
  }
  #wf-home .workbench16 .ehd-card-head {
    display: flex; align-items: center; justify-content: space-between; min-height: 47px;
    margin: 0; padding: 10px 16px; border: 0; border-bottom: 1px solid var(--wb-border); background: #fff;
  }
  #wf-home .workbench16 .ehd-card-head h2 {
    display: flex; gap: 9px; align-items: center; margin: 0; color: #302822; font-size: 16px; font-weight: 720;
  }
  #wf-home .workbench16 .ehd-card-head>span {color: var(--wb-muted); font-size: 12px;}
  #wf-home .workbench16 .ehd-todos .ehd-card-head {background: #fcfaf7;}
  #wf-home .workbench16 .ehd-todo-row {
    display: grid; grid-template-columns: minmax(64px,91px) minmax(0,1fr) auto auto; gap: 12px;
    grid-template-areas: none; align-items: center; min-height: 68px;
    padding: 11px 16px; margin: 0; border-bottom: 1px solid #eee8df;
  }
  #wf-home .workbench16 .ehd-todo-row:hover {background: #fffbf8;}
  #wf-home .workbench16 .ehd-todo-mark {
    width: 100%; max-width: 91px; min-height: 28px; height: auto; padding: 5px 6px;
    display: grid; place-items: center; border-radius: 5px; font-size: 12px;
  }
  #wf-home .workbench16 .ehd-sku-mark span {
    display: block; width: 100%; overflow-wrap: anywhere; white-space: normal; text-overflow: clip;
    font-size: 12px; font-weight: 650; line-height: 1.25; text-align: center;
  }
  #wf-home .workbench16 .ehd-todo-copy {grid-area: auto; min-width: 0;}
  #wf-home .workbench16 .ehd-todo-copy strong {font-size: 14px; color: #332923;}
  #wf-home .workbench16 .ehd-todo-copy p {font-size: 12px; color: var(--wb-muted); line-height: 1.5;}
  #wf-home .workbench16 .ehd-todo-third {height: auto; margin: 2px 0 0;}
  #wf-home .workbench16 .ehd-task-kind {color: var(--wb-muted); font-size: 11px;}
  #wf-home .workbench16 .ehd-todo-status {grid-area: auto; min-width: 0; justify-self: center; padding-inline: 8px;}
  #app #wf-home .workbench16 .ehd-todos .ehd-action {
    grid-area: auto; justify-self: end; min-height: 31px; padding: 4px 12px; border-radius: 6px;
    color: var(--wb-rose)!important; background: #fff!important; border: 1px solid #d4b0bd!important; box-shadow: none;
  }
  #app #wf-home .workbench16 .ehd-todos .ehd-action:hover {background: #fcedf1!important;}
  #wf-home .workbench16 .ehd-caption {padding: 9px 16px; margin: 0; font-size: 11px; color: var(--wb-muted); line-height: 1.6;}
  #wf-home .workbench16 .ehd-empty,#wf-home .workbench16 .ehd-source-notice {padding: 14px 16px; margin: 0;}
  #wf-home .workbench16 .wb-purchasing {display: grid; min-width: 0; gap: 14px;}
  #wf-home .workbench16 .ehd-purchase-summary dl {
    display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0; margin: 0; padding: 16px 8px 8px;
  }
  #wf-home .workbench16 .ehd-purchase-summary dl>div {display: flex; flex-direction: column-reverse; align-items: flex-start; justify-content: end; gap: 4px; padding-inline: 10px;}
  #wf-home .workbench16 .ehd-purchase-summary dl>div+div {border-left: 1px solid var(--wb-border);}
  #wf-home .workbench16 .ehd-purchase-summary dd {font-size: 19px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere;}
  #wf-home .workbench16 .ehd-purchase-summary dt {color: var(--wb-muted); font-size: 11px;}
  #wf-home .workbench16 .ehd-recent-item {display: grid; grid-template-columns: minmax(0,1fr) max-content; align-items: center; gap: 10px; padding: 10px 16px;}
  #wf-home .workbench16 .ehd-recent-amount {white-space: nowrap; text-align: right;}
  #wf-home .workbench16 .ehd-summary {display: grid; gap: 4px; width: 100%; color: var(--wb-muted); margin: 12px 0 0; font-size: 11px;}
  #wf-home .workbench16 .ehd-scope-line {margin: 0; font-size: 12px; color: var(--wb-muted);}
  #wf-home .workbench16 .wb-access {display: flex; flex-wrap: wrap; gap: 6px; align-items: center;}
  #wf-home .workbench16 [data-ehd-read-time] {margin-left: auto;}
  #wf-home .workbench16 .wb-shortcuts {margin-bottom: 16px;}
  #wf-home .workbench16 .wb-shortcuts .ehd-shortcuts {padding: 12px 16px;}
  @container workbench (max-width: 930px) {
    #wf-home .workbench16 .wb-glance:has([data-visible="4"]) {grid-template-columns: 170px minmax(0,1fr);}
    #wf-home .workbench16 .ehd-metrics[data-visible="4"] {grid-auto-flow: row; grid-template-columns: repeat(2,minmax(0,1fr));}
    #wf-home .workbench16 .ehd-metrics[data-visible="4"] .ehd-metric:nth-child(n+3) {border-top: 1px solid var(--wb-border);}
    #wf-home .workbench16 .ehd-columns {grid-template-columns: minmax(0,1.75fr) minmax(238px,1fr); gap: 12px;}
    #wf-home .workbench16 .ehd-todo-row {grid-template-columns: 68px minmax(0,1fr) auto auto; gap: 7px; padding-inline: 11px;}
    #wf-home .workbench16 .ehd-todo-status {padding-inline: 5px;}
    #wf-home .workbench16 .ehd-purchase-summary dl>div {padding-inline: 6px;}
  }
  @container workbench (max-width: 725px) {
    #wf-home .workbench16 .ehd-columns {grid-template-columns: minmax(0,1fr);}
    #wf-home .workbench16 .wb-purchasing {grid-template-columns: repeat(auto-fit,minmax(min(100%,240px),1fr));}
    #wf-home .workbench16 .ehd-heading-actions {gap: 8px;}
    #wf-home .workbench16 .wb-glance {grid-template-columns: minmax(128px,.8fr) minmax(0,2fr);}
    #wf-home .workbench16 .wb-glance[data-single-purchase=true] {grid-template-columns: minmax(128px,.8fr) minmax(0,2fr);}
    #wf-home .workbench16 .wb-glance>.ehd-purchase-summary {grid-column: 1/-1; border-left: 0; border-top: 1px solid var(--wb-border);}
    #wf-home .workbench16 .wb-todo-metric {display: flex; flex-wrap: wrap; align-content: center; padding: 14px;}
    #wf-home .workbench16 .wb-todo-metric h2 {width: 100%;}
    #wf-home .workbench16 .ehd-metrics[data-visible="1"] .ehd-metric {display: flex; padding: 12px;}
  }
  @container workbench (max-width: 490px) {
    #wf-home .workbench16 .wb-glance,#wf-home .workbench16 .wb-glance:has([data-visible="4"]) {display: block;}
    #wf-home .workbench16 .wb-todo-metric {display: flex; align-items: center; gap: 10px;}
    #wf-home .workbench16 .wb-todo-metric h2 {width: auto;}
    #wf-home .workbench16 .wb-total strong {font-size: 26px;}
    #wf-home .workbench16 .wb-todo-metric button {margin-left: auto;}
    #wf-home .workbench16 .ehd-metrics {grid-auto-flow: row; grid-template-columns: repeat(2,minmax(0,1fr));}
    #wf-home .workbench16 .ehd-metrics[data-visible="1"] {grid-template-columns: 1fr;}
    #wf-home .workbench16 .ehd-todo-row {grid-template-columns: minmax(50px,65px) 1fr auto; grid-template-areas: "sku copy action" "sku status action";}
    #wf-home .workbench16 .ehd-todo-mark {grid-area: sku;}
    #wf-home .workbench16 .ehd-todo-copy {grid-area: copy;}
    #wf-home .workbench16 .ehd-todo-status {grid-area: status; justify-self: start;}
    #app #wf-home .workbench16 .ehd-todos .ehd-action {grid-area: action;}
  }
}

/* The native sales worklist and its read-only order sheet. */
@media screen {
  .orders16-brand { display: inline-block; vertical-align: middle; margin: 0 8px 3px 0; }
  @media (min-width: 761px) {
    .sales-shell:has(.orders16-brand) { grid-template-columns: 202px minmax(0,1fr); }
    .sales-shell:has(.orders16-brand) > aside { width: 202px; }
    .sales-shell:has(.orders16-brand) .menu-group > div > :is(button,a) { white-space: nowrap; }
  }
  .orders16-summary,
  .orders16-list,
  dialog:has(.orders16-facts) { font-variant-numeric: tabular-nums; }
  .workspace:has(.orders16-list) .cw-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin: 0 0 18px;
    padding: 0;
    border: 0;
    background: transparent;
  }
  .workspace:has(.orders16-list) .cw-heading h1 {
    margin: 4px 0;
    font-size: clamp(22px, 2.25vw, 32px);
    line-height: 1.18;
    letter-spacing: -.045em;
  }
  .workspace:has(.orders16-list) .cw-heading p { margin: 0; color: #6e655e; font-size: 13px; }
  .workspace:has(.orders16-list) .cw-eyebrow {
    font-size: 12px; font-weight: 650; color: #8a4357; letter-spacing: .025em;
  }
  .workspace:has(.orders16-list) .cw-heading .cw-actions { gap: 8px; }
  .orders16-summary .orders16-metrics {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0;
    padding: 7px 0; margin: 0 0 18px; background: #fff;
    border: 1px solid #e4d9cd; border-radius: 12px; overflow: hidden;
  }
  .orders16-summary .orders16-metrics > button {
    display: grid;
    grid-template-columns: 36px 1fr;
    grid-template-rows: auto auto;
    align-content: center;
    justify-items: start;
    gap: 3px 12px;
    padding: 10px clamp(12px, 1.75vw, 28px);
    min-height: 72px;
    text-align: left;
    border: 0; border-radius: 0; box-shadow: none;
    color: #302923; background: #fff;
  }
  .orders16-summary .orders16-metrics > button + button { border-left: 1px solid #e9e2d9; }
  .orders16-summary .orders16-metrics > button:is(:hover, .selected) { background: #fdf3f5; }
  .orders16-summary .orders16-metrics > button:focus-visible { outline-offset: -3px; }
  .orders16-metric-icon {
    grid-row: span 2; align-self: center;
    width: 36px; height: 36px; padding: 8px; box-sizing: border-box;
    border-radius: 10px; color: #994060; background: #f9eaf0;
  }
  .orders16-metrics > button:nth-child(2) .orders16-metric-icon { color: #526b71; background: #eaf1f2; }
  .orders16-metrics > button:nth-child(3) .orders16-metric-icon { color: #91601d; background: #fbf0db; }
  .orders16-summary .orders16-metrics small { color: #675d56; font-size: 12px; }
  .orders16-summary .orders16-metrics strong {
    display: flex; align-items: baseline; gap: 7px;
    color: #302923; font-size: clamp(24px, 1.9vw, 29px); line-height: 1.05;
  }
  .orders16-summary .orders16-metrics strong .orders16-unit { font-size: 12px; color: #736860; font-weight: 500; }
  .orders16-list.cw-board89 {
    padding: 0; min-width: 0; border: 1px solid #e2d9ce;
    border-radius: 12px; background: #fff;
  }
  .orders16-list .cw-board-head89 {
    padding: 18px 20px 9px; margin: 0; border: 0; border-radius: 12px 12px 0 0; background: #fff;
  }
  .orders16-list .cw-board-head89 h2 { margin: 0; color: #302923; font-size: 18px; letter-spacing: -.035em; }
  .orders16-list .cw-status-bar44 {
    display: flex; flex-wrap: wrap; align-items: stretch; gap: 0 16px;
    padding: 0 20px; margin: 0; border-bottom: 1px solid #e8e0d7;
  }
  .orders16-list .cw-status-bar44 > button {
    display: inline-flex; align-items: center; gap: 5px;
    min-height: 39px; padding: 4px 0 5px; margin: 0 0 -1px;
    border: 0; border-bottom: 2px solid transparent; border-radius: 0;
    background: transparent; color: #625951; font-size: 13px;
  }
  .orders16-list .cw-status-bar44 > button[aria-pressed=true] {
    color: #98344f; border-bottom-color: #aa3858; font-weight: 750;
  }
  .orders16-list .cw-status-bar44 b { margin: 0; background: #f0ebe5; color: #675e54; }
  .orders16-list .cw-status-bar44 [aria-pressed=true] b { background: #f7e4eb; color: #913855; }
  .orders16-list #cw-filter {
    display: flex; flex-wrap: wrap; align-items: end; gap: 10px;
    margin: 0; padding: 14px 20px; background: #fcfaf7; border: 0; border-radius: 0;
  }
  .orders16-list #cw-filter > label { flex: 0 1 148px; min-width: 112px; }
  .orders16-list #cw-filter > label:first-child { flex: 1 1 210px; max-width: 460px; }
  .orders16-list #cw-filter :is(label, select, input) { margin: 0; }
  .orders16-list #cw-filter label {
    display: grid; gap: 5px; color: #655c54; font-size: 12px; line-height: 1.4; font-weight: 600;
  }
  .orders16-list #cw-filter :is(input, select) { width: 100%; min-height: 35px; font-size: 13px; }
  .orders16-list #cw-filter > button { flex: none; min-height: 35px; min-width: 0; margin: 0; }
  .orders16-list #cw-filter button[data-cw=reset] { background: transparent; border-color: transparent; color: #62584e; }
  .orders16-extra { display: contents; }
  .orders16-extra::details-content { flex: 1 0 100%; min-width: 0; }
  .orders16-extra > summary {
    min-height: 35px; align-content: center; padding: 6px 10px;
    border-radius: 7px; color: #623f4c; font-size: 13px; cursor: pointer;
  }
  .orders16-extra > summary:hover { background: #f4ebe8; }
  .orders16-fields {
    flex: 1 0 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(145px,100%), 1fr));
    gap: 10px; padding-top: 10px; border-top: 1px solid #e6ddd3;
  }
  .orders16-extra:not([open]) .orders16-fields { display: none; }
  .orders16-list .cw-result-count44 { margin: 0; padding: 11px 20px; color: #645b52; font-size: 12px; }
  .orders16-list .cw-orders-table { border: 0; border-radius: 0; margin: 0; }
  .orders16-list .cw-orders-table table { min-width: 850px; }
  .orders16-list .cw-orders-table th {
    color: #63594f; font-size: 12px; font-weight: 700; background: #f6f2ec;
    border: 0; border-block: 1px solid #e6ded4; padding: 9px 10px; white-space: nowrap;
  }
  .orders16-list .cw-orders-table td {
    padding: 11px 10px; border: 0; border-bottom: 1px solid #eee7de;
    vertical-align: middle; line-height: 1.45;
  }
  .orders16-list .cw-orders-table :is(th,td):first-child { width: 32px; text-align: center; padding-inline: 8px 4px; }
  /* Shared form styles set a minimum control width; a checkbox must fit its own selection cell. */
  #s-content .orders16-list .cw-orders-table input[type=checkbox] {
    box-sizing: border-box; width: 16px; min-width: 16px; max-width: 16px;
    height: 16px; min-height: 16px; margin: 0; padding: 0; vertical-align: middle;
  }
  .orders16-list .cw-orders-table .orders16-number { color: #362d29; font-size: 14px; }
  .orders16-list .cw-orders-table .cw-order-customer { font-size: 12px; font-weight: 550; }
  .orders16-state { display: flex; flex-wrap: wrap; gap: 3px 6px; align-items: center; }
  .orders16-state strong { font-size: 12px; line-height: 1.4; }
  .orders16-state .s-badge { white-space: nowrap; }
  .orders16-list .cw-orders-table td:has(.cw-order-amount), .orders16-list .cw-orders-table th:nth-child(4) {
    text-align: right; white-space: nowrap;
  }
  .orders16-list .cw-orders-table tr:is(.is-selected89,.wf-selected) td { background: #fdf0f3; }
  .orders16-list .cw-orders-table tr:is(.is-selected89,.wf-selected) td:first-child { box-shadow: inset 3px 0 #ac3c5d; }
  .orders16-list .cw-order-actions button[data-cw=order-detail] {
    padding: 4px 10px; font-size: 12px; min-height: 30px;
    color: #963655; background: #fff; border-color: #e3bdca;
  }
  .orders16-list .order-selection-bar { margin: 0; padding: 10px 20px; }
  .orders16-list .cw-footnote { border-top: 1px solid #eee7de; margin: 0; padding: 10px 20px; }
  dialog:has(.orders16-facts) { width: min(940px, calc(100vw - 32px)); }
  dialog:has(.orders16-facts) #s-form {
    display: flex; flex-direction: column; gap: 12px; align-items: stretch;
  }
  dialog:has(.orders16-facts) .orders16-facts {
    order: -1; display: grid; grid-template-columns: 1fr 1fr;
    margin: 0; padding: 16px 20px; gap: 20px;
    border: 1px solid #e7d7cd; border-radius: 10px; background: #faf5ef;
  }
  .orders16-facts > section { margin: 0; padding: 0; background: transparent; border: 0; }
  .orders16-facts > section + section { border-left: 1px solid #ded2c5; padding-left: 20px; }
  .orders16-facts section > span { color: #73655b; font-size: 12px; }
  .orders16-facts h3 { font-size: 21px; line-height: 1.3; margin: 4px 0 3px; }
  .orders16-facts h3 small { font-size: 13px; font-weight: 550; }
  .orders16-facts p { margin: 0; color: #62584e; }
  dialog:has(.orders16-facts) .orders16-section-title { margin: 14px 0 8px; font-size: 16px; }
  dialog:has(.orders16-facts) tfoot.review-total td {
    background: #f7f2e9; color: #51453a; border-top: 2px solid #dbcfbb;
  }
  .orders16-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
  .orders16-actions [data-cw=order-output] { margin-left: auto; }
  .orders16-instructions { border: 1px solid #e5dcd1; border-radius: 9px; }
  .orders16-instructions > summary { padding: 10px 14px; cursor: pointer; font-size: 14px; font-weight: 700; }
  .orders16-instructions .cw-info {
    display: grid; grid-template-columns: repeat(auto-fit,minmax(165px,1fr)); gap: 10px 16px;
    margin: 0; padding: 10px 14px 14px; border-top: 1px solid #eee7df;
  }
  .orders16-instructions .cw-info > section { margin: 0; border: 0; padding: 0; background: transparent; }
  .orders16-instructions .cw-info h3 { margin: 0 0 2px; font-size: 12px; color: #746a60; }
  .orders16-instructions .cw-info p { margin: 0; overflow-wrap: anywhere; }
  @media (max-width: 1150px) {
    #s-content .orders16-list .cw-orders-table :is(th,td):last-child { position: static; box-shadow: none; }
  }
  @media (max-width: 750px) {
    .orders16-summary .orders16-metrics > button { grid-template-columns: 1fr; gap: 4px; padding-inline: 10px; }
    .orders16-metric-icon { display: none; }
    .orders16-list #cw-filter > label, .orders16-list #cw-filter > label:first-child { flex: 1 1 40%; }
    .orders16-list :is(.cw-board-head89,.cw-status-bar44), .orders16-list #cw-filter { padding-inline: 12px; }
    dialog:has(.orders16-facts) .orders16-facts { grid-template-columns: 1fr; gap: 10px; }
    .orders16-facts > section + section { border: 0; padding-left: 0; }
  }
}

/* Settings navigation uses the original controls and the staff admin screen keeps its mobile layout. */
@media screen {
  .admin16-sections {display: flex; flex-wrap: wrap; align-content: flex-start; gap: 12px; padding: 11px;}
  .admin16-sections > div {display: flex; gap: 4px; flex-wrap: wrap;}
  .admin16-sections strong {display: block; width: 100%; color: #685c52; font-size: 12px;}
  .admin16-sections button {border: 0; text-align: left; min-height: 34px; background: transparent; color: #413a35; font-weight: 550;}
  .admin16-sections button[aria-current="page"] {background: #f7e5eb; color: #8b2c4a; font-weight: 750;}
  .admin16-layout {min-width: 0;}
  .admin16-layout #settings-panel {min-width: 0; overflow-wrap: anywhere;}
  .admin16-layout #settings-panel :is(input,select,textarea) {max-width: 100%;}
}
@media screen and (min-width: 900px) {
  .wf-shell #wf-home:has(.entry16) {padding: clamp(28px,5vh,68px) clamp(22px,4vw,65px);}
  .wf-shell .entry16 {
    --entry-ink:#392c30;
    display:grid; grid-template-columns: minmax(235px,.72fr) minmax(360px,1.28fr);
    max-width:1000px; margin: 0 auto; border:1px solid #dfd7ce; border-radius:12px;
    box-shadow: 0 10px 30px #31251e08;
  }
  .wf-shell .entry16 .entry93-intro {align-items:flex-start; justify-content:flex-start; padding:clamp(27px,3vw,47px); background:#f2eae3; border:0;}
  .wf-shell .entry16 h1 {font-size:clamp(29px,2.6vw,40px); margin:23px 0 4px; color:var(--entry-ink);}
  .wf-shell .entry16 .entry93-flow {line-height:1.6; padding-top:15px; margin-top:24px; border-top:1px solid #d8c9be;}
  .wf-shell .entry16 .entry93-card {background:#fff; padding:clamp(28px,3vw,46px);}
  .wf-shell .entry16 .entry93-options {display:grid; grid-template-columns:1fr 1fr; gap:9px;}
  .wf-shell .entry16 .entry93-options button {border-color:#e5d9cd; border-radius:7px; min-height:46px;}
  #app .login:has(.login-panel) {
    width:min(920px,calc(100% - 54px)); min-height:0; margin:clamp(22px,7vh,78px) auto;
    display:grid; grid-template-columns:minmax(220px,.83fr) minmax(320px,1.17fr); gap:0;
    border:1px solid #dfd6ca; border-radius:14px; overflow:hidden; color:#342e29; background:#fff;
  }
  #app .login > .login-brand {
    padding:clamp(24px,3vw,45px); display:flex; flex-direction:column; align-items:flex-start;
    justify-content:center; background:#efe7df; color:#342c28; border:0;
  }
  #app .login > .login-brand::before {content:""; width:43px; height:43px; position:static; display:block; opacity:1; background:url('/business-workspace/studio-mark.svg') center / contain no-repeat; border:0; border-radius:0; transform:none; margin-bottom:18px;}
  #app .login > .login-brand::after {display:none;}
  #app .login > .login-brand h1 {font-size:clamp(27px,2.5vw,39px); margin:0 0 16px; line-height:1.22; color:#382d2c; letter-spacing:-.025em;}
  #app .login > .login-brand p {font-size:14px; color:#68594f; margin:5px 0; line-height:1.6;}
  #app .login > .login-panel {display:block; min-width:0; padding:0; background:#fff;}
  #app .login-panel form {width:auto; max-width:none; border:0; margin:0; padding:clamp(25px,3vw,46px); border-radius:0; box-shadow:none; gap:15px; background:transparent;}
  #app .login-panel h2 {margin:0; font-size:24px; line-height:1.35; color:#352b27;}
  #app .login-panel .workspace-return {justify-self:start; width:auto; padding:0; border:0; background:none; color:#79525f; font-size:13px;}
  #app .login-panel input {min-width:0; width:100%; box-sizing:border-box; min-height:40px;}
  #app .login-panel :is(.form-error:empty,[role=alert]:empty) {display:none;}
  #app .login-panel button.primary {background:#a9355a; color:white; border-color:#a9355a; min-height:41px;}
  .admin16-shell .brandmark {display:inline-block; width:34px; height:34px; color:transparent; font-size:0; border-radius:0; background:transparent url('/business-workspace/studio-mark.svg') center/contain no-repeat;}
  .admin16-sections {flex-direction:column; padding:8px 0 14px; gap:16px; align-content:stretch;}
  .admin16-sections > div {display:grid; gap:2px;}
  .admin16-sections strong {font-size:11px; padding:0 11px 4px; letter-spacing:.035em;}
  .admin16-sections button {border-radius:6px; padding:6px 11px; font-size:14px;}
  .admin16-shell > aside:has(.admin16-sections) {width:auto; background:#fffdfa; border-right:1px solid #dfd7ce; padding-inline:14px;}
  .admin16-shell > aside > .nav:has(> .workspace-home:only-child):has(+ .admin16-sections) {display:none;}
  .admin16-shell .admin16-sections > div {grid-template-columns:minmax(0,1fr);}
  .admin16-shell .admin16-sections :is(strong,button) {width:100%; box-sizing:border-box; white-space:normal; line-height:1.45;}
  .admin16-shell > aside > .admin16-sections {overflow-y:auto; min-height:0; flex:1;}
  .admin16-workspace {width:100%; max-width:1550px; margin-inline:auto; padding:clamp(18px,2vw,32px); color:#322b26;}
  .admin16-workspace > .heading {margin:0 0 18px; align-items:center; padding:0;}
  .admin16-workspace .heading h1 {color:#302925; font-size:clamp(25px,2.3vw,33px); font-weight:750; letter-spacing:-.035em;}
  .admin16-workspace .heading p {color:#706458; margin:5px 0 0; font-size:13px;}
  .admin16-layout:has(> .admin16-sections) {display:grid; grid-template-columns:165px minmax(0,1fr); gap:18px; align-items:start;}
  .admin16-layout > .admin16-sections {position:sticky; top:12px; padding:14px 10px; background:#fffdfa; border:1px solid #e4dbd0; border-radius:9px;}
  .admin16-layout > #settings-panel {background:#fff; border:1px solid #e2d8cd; border-radius:10px; padding:clamp(16px,2vw,26px);}
  .admin16-layout #settings-panel > :first-child, .admin16-layout #settings-panel .card > h2:first-child {margin-top:0;}
  .admin16-layout #settings-panel h2 {font-size:18px; color:#332c27; margin-bottom:6px;}
  .admin16-layout #settings-panel > p, .admin16-layout .muted {color:#6f655c; line-height:1.6;}
  .admin16-layout #settings-panel > :is(.table-wrap,.table-scroll) {margin-top:18px;}
  .admin16-layout #settings-panel .two-col {display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,275px),1fr)); align-items:start; gap:18px;}
  .admin16-layout #settings-panel .card {padding:17px; border:1px solid #e7dfd4; border-radius:8px; background:#fdfbf8;}
  .admin16-layout #settings-panel .form-grid {margin:12px 0; gap:13px;}
  .admin16-layout #settings-panel :is(th,td) {font-variant-numeric:tabular-nums; vertical-align:middle; padding:10px 12px;}
  .admin16-layout #settings-panel th {color:#66584d; background:#f7f4ed;}
  .admin16-layout #settings-panel .primary {background:#a73458; border-color:#a73458; color:white;}
  .admin16-layout #settings-panel [data-admin-edit] {background:#fff; color:#823651; border-color:#dec4ce;}
  #staff-app #admin-panel {padding:clamp(20px,2.5vw,36px); width:100%; max-width:1180px; margin-inline:auto;}
  #staff-app #admin-panel > .actions {justify-content:flex-start; gap:10px; padding-bottom:15px; margin-bottom:15px; border-bottom:1px solid #e4dacf;}
  #staff-app #admin-panel :is(.form-grid,.table-wrap) {min-width:0;}
}
/* Trade workspaces share the ERP palette. These layouts only apply to desktop screens. */
@media screen and (min-width: 761px) {
  .shell[data-trade-space] { --trade-line: #e3d9cb; --trade-soft: #fbf8f3; grid-template-columns: 202px minmax(0, 1fr); }
  .shell[data-trade-space] > aside { width: 202px; }
  .shell[data-trade-space] > main.main { margin-inline-start: 0; min-width: 0; }
  .shell[data-trade-space] > main.main > header.topbar {
    height: auto; min-height: 54px; padding-block: 8px;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px;
  }
  .shell[data-trade-space] > main.main > header.topbar .identity {
    display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; min-width: 0;
  }
  .shell[data-trade-space] > aside .menu-group > div > :is(a,button) {
    display: flex; align-items: center; gap: 8px; padding-inline: 9px; text-align: start;
  }
  .shell[data-trade-space] .menu-group > div > :is(a,button) { white-space: nowrap; }
  .shell[data-trade-space] .workspace { max-width: 1632px; width: 100%; }
  .shell[data-trade-space] .workspace :is(.heading,.s-heading,.cw-heading) {
    display:flex; gap:12px 24px; justify-content:space-between; align-items:center; flex-wrap:wrap;
    margin:0 0 18px; padding:0; border:0; background:transparent;
  }
  .shell[data-trade-space] .workspace :is(.heading,.s-heading,.cw-heading) h1 {
    margin:2px 0 5px; font-size:clamp(24px,2.15vw,32px); line-height:1.22; letter-spacing:-.04em;
  }
  .shell[data-trade-space] .workspace :is(.heading,.s-heading,.cw-heading) p { margin:0; color:#70665a; font-size:13px; }
  .shell[data-trade-space] .workspace :is(.metric,.s-panel,.wf-service,.card,.table-wrap) { min-width:0; }
  .shell[data-trade-space] .workspace :is(.table-wrap,.pa-scroll,.comparison-scroll) { max-width:100%; }
  .shell[data-trade-space] .workspace :is(table,.value,.metric,.dash-ring) { font-variant-numeric:tabular-nums; }
  .shell[data-trade-space] .workspace tr:focus-within > td { background-color:#fff6f8; }
  /* Procurement registers use one number strip and one continuous search / ledger surface. */
  [data-trade-space=purchase] .workspace>.metrics {
    display:flex; gap:0; flex-wrap:wrap; overflow:hidden; border:1px solid var(--trade-line);
    border-radius:12px; background:white; margin:0 0 16px; padding:7px 0;
  }
  [data-trade-space=purchase] .workspace>.metrics>.metric {
    flex:1 1 130px; border:0; border-radius:0; margin:0; padding:6px 16px; box-shadow:none;
    display:grid; align-content:start; gap:2px; background:#fff;
  }
  [data-trade-space=purchase] .workspace>.metrics>.metric+.metric { border-left:1px solid #eae1d5; }
  [data-trade-space=purchase] .metric .value { font-size:clamp(22px,1.8vw,28px); line-height:1.25; }
  [data-trade-space=purchase] .workspace>.card:has(.table-wrap) {
    padding:0; border:1px solid var(--trade-line); border-radius:12px; background:white;
  }
  [data-trade-space=purchase] .workspace>.card>:is(.toolbar,.supplier-quick,.date-shortcuts,.payment-filters) {
    margin:0; padding:12px 16px; border:0; border-bottom:1px solid #ece4da; border-radius:0; background:var(--trade-soft);
  }
  [data-trade-space=purchase] .workspace>.card>:first-child:is(.toolbar,.supplier-quick,.date-shortcuts,.payment-filters) { border-radius:12px 12px 0 0; }
  [data-trade-space=purchase] .workspace>.card>.toolbar { display:flex; align-items:end; flex-wrap:wrap; gap:8px 12px; }
  [data-trade-space=purchase] .workspace>.card>.toolbar>label { flex:1 1 136px; min-width:105px; }
  [data-trade-space=purchase] .workspace>.card>.toolbar :is(input,select) { width:100%; }
  [data-trade-space=purchase] .workspace>.card>.card-header { margin:0; padding:14px 16px 10px; flex-wrap:wrap; gap:8px; }
  [data-trade-space=purchase] .workspace>.card>.table-wrap { border:0; border-radius:0; }
  [data-trade-space=purchase] .workspace>.card>.pagination { margin:0; padding:8px 16px; }
  [data-trade-space=purchase] :is(.pa-filter,.pa-panel) { border:1px solid var(--trade-line); border-radius:12px; background:white; }
  [data-trade-space=purchase] .pa-filter { padding:14px 18px; display:grid; gap:12px; }
  [data-trade-space=purchase] .pa-range-row { display:flex;align-items:center;flex-wrap:wrap;gap:8px 16px; }
  [data-trade-space=purchase] .pa-filter-fields { padding-top:10px; border-top:1px solid #ece5dc; }
  [data-trade-space=purchase] .pa-panel-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
  [data-trade-space=purchase] .pa-scroll { border:0; }
  /* Sales reporting, customer records and dispatch keep different working densities. */
  [data-trade-space=sales] #s-content:has(.dash-main) { display:grid; grid-template-columns:minmax(0,1fr); gap:12px; }
  [data-trade-space=sales] #s-content:has(.dash-main)>:is(.dash-period,.ca-filter,.cd-metrics,.dash-extra,.dash-main,.dash-bottom,.dash-details) { margin:0; }
  [data-trade-space=sales] .dash-main { display:grid; grid-template-columns:minmax(0,1.7fr) minmax(260px,1fr); gap:14px; }
  [data-trade-space=sales] .dash-main .dash-panel { min-width:0; padding:16px; border:1px solid var(--trade-line); border-radius:12px; }
  [data-trade-space=sales] .catalog-toolbar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; margin:0; padding:12px 16px; border:1px solid var(--trade-line); border-radius:12px 12px 0 0; background:#fff; }
  [data-trade-space=sales] .trade16-catalog-menu { width:100%; padding:0; margin:0; border:0; background:transparent; }
  [data-trade-space=sales] .trade16-catalog-menu>summary { cursor:pointer; padding:4px 0; color:#67394b; font-size:14px; font-weight:700; }
  [data-trade-space=sales] .trade16-catalog-menu .catalog-tools { display:flex; justify-content:flex-start; flex-wrap:wrap; gap:7px; padding:9px 0 0; }
  [data-trade-space=sales] .catalog-search { margin:0 0 12px; padding:12px 16px; border:1px solid var(--trade-line); border-top:0; border-radius:0 0 12px 12px; background:var(--trade-soft); }
  [data-trade-space=sales] #s-content .cc46-pagination { padding:6px 12px; margin:8px 0; min-height:36px; }
  [data-trade-space=sales] #s-content .cc43-quote-panel { padding:9px 14px; margin:8px 0; }
  [data-trade-space=sales] #s-content>.wf-tools, [data-trade-space=sales] .wf-service>form, [data-trade-space=sales] .s-toolbar {
    display:flex; align-items:end; flex-wrap:wrap; gap:9px 14px; padding:12px 16px; margin:0 0 12px; background:#fbf8f4;
    border:1px solid var(--trade-line); border-radius:10px;
  }
  [data-trade-space=sales] #s-content:has(>#wf-client-filter) { padding:0; background:white; border:1px solid var(--trade-line); border-radius:12px; }
  [data-trade-space=sales] #wf-client-filter { margin:0; border:0; border-bottom:1px solid var(--trade-line); border-radius:12px 12px 0 0; }
  [data-trade-space=sales] #wf-client-filter+.table-wrap { border:0; border-radius:0 0 12px 12px; }
  [data-trade-space=sales] .wf-service { margin:0 0 14px; padding:14px 16px; border:1px solid var(--trade-line); border-radius:12px; background:white; }
  [data-trade-space=sales] #s-content>.cw-client-switch { display:flex; align-items:center; gap:12px; padding:12px 16px; background:#faf7f2; border:1px solid var(--trade-line); border-radius:10px; }
  [data-trade-space=sales] #s-content>.cw-client-switch select { max-width:380px; }
  [data-trade-space=sales] #s-charts { display:grid; gap:14px; }
  [data-trade-space=sales] .s-panel { margin:0; border-radius:12px; }
  dialog:has(#qs73-form) .qs73-workgrid89 { display:grid; grid-template-columns:minmax(216px,.76fr) minmax(0,2.6fr); align-items:start; gap:16px; }
  dialog:has(#qs73-form) .qs73-workgrid89:has(>.qs73-order94:only-child) { grid-template-columns:minmax(0,1fr); }
  dialog:has(#qs73-form) .qs73-picker { padding:14px; background:#fbf8f3; border:1px solid #e1d8cb; border-radius:12px; }
  dialog:has(#qs73-form) .qs73-order94 { display:grid; gap:12px; min-width:0; }
  dialog:has(#qs73-form) .qs73-base { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
  dialog:has(#qs73-form) .qs73-client { grid-column:span 2; }
  dialog:has(#qs73-form) .qs73-picker .qs73-search-row { flex-wrap:wrap; }
  dialog:has(#qs73-form) .qs73-table-wrap { overflow:auto; min-width:0; }
  dialog:has(#qs73-form) .qs73-footer { border-top:1px solid #decfbd; background:#fffcf8; }
  /* Two independent store snapshots above the cached orders and their reconciliation. */
  [data-trade-space=sales] .a1688-page { display:grid; gap:12px; }
  [data-trade-space=sales] .a1688-page>.a1688-stores { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:0; }
  [data-trade-space=sales] .a1688-store { display:flex; flex-direction:column; align-items:stretch; gap:7px; padding:15px 16px; border:1px solid var(--trade-line); border-radius:12px; background:#fff; }
  [data-trade-space=sales] .a1688-store header { display:flex; align-items:center;justify-content:space-between; gap:8px; }
  [data-trade-space=sales] .a1688-store-times { border-top:1px solid #ece5dc; padding-top:8px; }
  [data-trade-space=sales] .a1688-filter { display:flex; align-items:end; flex-wrap:wrap; gap:8px 12px; padding:12px 16px; margin:0; background:var(--trade-soft); border:1px solid var(--trade-line); border-radius:10px; }
  [data-trade-space=sales] .a1688-filter label { flex:1 1 130px; }
  [data-trade-space=sales] .a1688-after-empty { max-width:760px; padding:24px; margin:12px 0; justify-items:start; border-left:4px solid #c99756; }
  [data-design94=sales80] main { width:min(100%,1520px); padding:24px clamp(16px,2.2vw,40px); }
  [data-design94=sales80] main>.toolbar { display:flex; align-items:center; gap:10px 14px; flex-wrap:wrap; margin:16px 0 0; border:1px solid #e3d9cb; border-radius:12px 12px 0 0; padding:12px 16px; background:#fbf8f4; }
  [data-design94=sales80] main>.toolbar input { width:min(300px,100%); }
  [data-design94=sales80] main>.toolbar a { margin-left:auto; }
  [data-design94=sales80] #list>.card { margin:0; border-radius:0 0 12px 12px; }
  [data-trade-space] table tfoot.review-total td { background:#f7f2e9; color:#51453a; border-top:2px solid #dbcfbb; }
  /* Authorized desktop staff routes have a master/detail or document/edit layout. */
  .trade16-staff { color:#2b2620; background:#f6f1e9; --trade-line:#e1d8cb; --trade-rose:#a83456; font-variant-numeric:tabular-nums; }
  .trade16-mark { display:inline-block; vertical-align:middle; margin-right:8px; }
  .trade16-staff .wrap,.trade16-master main { width:min(100%,1500px); max-width:1500px; padding:20px clamp(16px,2.3vw,36px); margin:0 auto; }
  .trade16-staff h1 { font-size:clamp(24px,2.2vw,32px); letter-spacing:-.04em; line-height:1.25; }
  .trade16-staff :is(.card,#controls,#content,#detail,#editor) { min-width:0; }
  .trade16-staff .topbar { display:flex; align-items:center; gap:12px; background:#fff; padding:10px 16px; border:1px solid var(--trade-line); border-radius:12px; }
  .trade16-master { display:grid; grid-template-columns:175px minmax(0,1fr); align-items:start; }
  .trade16-master>header { position:sticky; top:0; min-height:100vh; z-index:1; padding:20px 12px; display:flex; flex-direction:column; align-items:stretch; justify-content:start; gap:28px; background:#fff; border:0; border-right:1px solid var(--trade-line); }
  .trade16-master>header>a { color:#2e2622; white-space:nowrap; font-size:15px; }
  .trade16-master>header nav { display:grid; gap:4px; }
  .trade16-master>header nav a { display:block; padding:9px 12px; border-radius:6px; }
  .trade16-master>header nav a[aria-current=page] { color:var(--trade-rose); background:#faedf1; box-shadow:inset 3px 0 var(--trade-rose); }
  .trade16-master main { display:grid; grid-template-columns:minmax(0,1fr); gap:0; min-width:0; }
  .trade16-master #controls:not(:empty) { margin:12px 0 0; padding:14px 16px; background:#fbf8f4; border-radius:12px 12px 0 0; }
  .trade16-master #content:not(:empty) { margin:0; padding:16px; border-top:0; border-radius:0 0 12px 12px; }
  .trade16-master #controls form { gap:8px 12px; }
  .trade16-master #controls label:first-child { flex:0 1 240px; }
  .trade16-master #content tr:nth-child(even)>td,.trade16-staff #bills article:nth-child(even) { background:#fcfaf7; }
  .trade16-dispatch main.wrap { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); gap:10px 16px; }
  .trade16-dispatch main.wrap>:not(#detail):not(#write) { grid-column:1/-1; }
  .trade16-dispatch .wrap>.tabs { display:none; }
  .trade16-dispatch main.wrap>h1 { margin:14px 0 0; }
  .trade16-dispatch main.wrap>.muted { margin:0; }
  .trade16-dispatch main.wrap>.card { margin:0; }
  .trade16-dispatch main.wrap>.card:has(#orders) { display:flex; align-items:center; flex-wrap:wrap; gap:8px 12px; background:#fcfaf7; padding:12px 16px; }
  .trade16-dispatch .card:has(#orders)>div { margin-left:auto; }
  .trade16-dispatch .card:has(#orders)>select { min-width:200px; max-width:100%; }
  .trade16-dispatch #detail { grid-column:1; }
  .trade16-dispatch #write { grid-column:2; }
  .trade16-dispatch .wrap:not(:has(#write:not([hidden]))) #detail { grid-column:1/-1; }
  .trade16-dispatch #write .fields { grid-template-columns:repeat(auto-fit,minmax(min(160px,100%),1fr)); }
  .trade16-dispatch #detail .metrics { display:grid; grid-template-columns:repeat(3,1fr); gap:0; border-block:1px solid var(--trade-line); padding:12px 0; }
  .trade16-dispatch #detail .metrics b { display:block; }
  .trade16-ledger #query { padding:12px 16px; background:#fbf8f3; }
  .trade16-ledger #overview { border:1px solid var(--trade-line); border-radius:12px; background:#fff; gap:0; padding:7px 0; }
  .trade16-ledger #overview>.card { border:0; border-radius:0; margin:0; padding:8px 16px; }
  .trade16-ledger #overview>.card+.card { border-left:1px solid var(--trade-line); }
  .trade16-ledger #bills { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(365px,100%),1fr)); gap:12px; }
  .trade16-ledger #bills .card { margin:0; }
  .trade16-ledger #editor { padding:16px; margin-top:16px; }
}
/* The catalog also runs inside a narrower frame in the desktop workbench. */
@media screen {
  [data-trade-space=sales] .cc42-grid {
    display:grid; grid-template-columns:repeat(auto-fill,minmax(min(228px,100%),1fr)); align-items:stretch; gap:14px;
  }
  [data-trade-space=sales] .cc42-card {
    display:flex; flex-direction:column; min-width:0; border:1px solid var(--trade-line,#e3d9cb); border-radius:10px;
    overflow:hidden; background:#fff;
  }
  [data-trade-space=sales] .cc42-card .cc42-body {
    display:flex; flex:1; flex-direction:column; gap:8px; padding:12px 14px; overflow-wrap:anywhere;
  }
  [data-trade-space=sales] .cc42-card .cc42-price {
    font-size:22px; line-height:1.3; font-variant-numeric:tabular-nums;
  }
  [data-trade-space=sales] .cc42-price small {
    display:block; margin-top:3px; font-size:12px; line-height:1.4; white-space:normal;
  }
  [data-trade-space=sales] .cc42-card-foot { margin-top:auto; padding-top:4px; }
  [data-trade-space=sales] .cc42-card-foot button { flex:none; margin-left:auto; white-space:nowrap; }
}
@media screen and (min-width:1300px) {
  .trade16-master main:has(#detail:not(:empty)) { grid-template-columns:minmax(0,1fr) minmax(350px,.62fr); gap:0 16px; }
  .trade16-master main:has(#detail:not(:empty))>:is(h1,#status,#controls) { grid-column:1 / -1; }
  .trade16-master main:has(#detail:not(:empty)) #content { grid-column:1; }
  .trade16-master main:has(#detail:not(:empty)) #detail { grid-column:2; margin:0; align-self:start; }
}
@media screen and (min-width:761px) and (max-width:1099px) {
  [data-trade-space=sales] .dash-main { grid-template-columns:1fr; }
  dialog:has(#qs73-form) .qs73-workgrid89 { grid-template-columns:minmax(175px,.7fr) minmax(0,2fr); }
  dialog:has(#qs73-form) .qs73-base { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .trade16-dispatch main.wrap { grid-template-columns:1fr; }
  .trade16-dispatch #detail,.trade16-dispatch #write { grid-column:1; }
}

/* Sales desk settings shown on the warehouse display. */
.cw-board-settings { min-width:0; margin:14px 0; padding:12px 16px; border:1px solid #e8e0d2; border-radius:10px; background:#fff; }
.cw-board-settings legend { padding:0 5px; font-weight:700; }
.cw-board-settings label { display:inline-flex; flex-direction:row; align-items:center; gap:6px; }
.cw-board-settings input[type=checkbox] { width:17px; height:17px; min-height:0; margin:0; padding:0; accent-color:#b03a5b; }
.cw-board-tags { display:flex; align-items:center; flex-wrap:wrap; gap:6px 14px; margin:10px 0 4px; }
.cw-board-tags>span,.cw-board-settings small { color:#64594d; }
.cw-urge-state { display:inline-flex; align-items:center; white-space:nowrap; padding:3px 8px; color:#922b24; background:#fbeded; border-radius:6px; font-size:.84em; font-weight:700; }
