

    :root {

      color-scheme: only light;

      --bg: #f3f5f8;

      --text: #101722;

      --muted: #5f6978;

      --soft: rgba(255, 255, 255, .72);

      --line: rgba(16, 23, 34, .10);

      --accent: #1959f3;

      --accent-dark: #0a3ab8;

      --sage: #31a86b;

      --sage-dark: #237e52;

      --cream: #f7f8fa;

      --danger: #dd4f5d;

      --good: #31a86b;

      --warning: #f2a23a;

      --border: rgba(16, 23, 34, .16);

      --shadow: 0 24px 58px rgba(16, 23, 34, .18);

      --shadow-soft: 0 12px 28px rgba(16, 23, 34, .10);

      --blue-shadow: 0 16px 32px rgba(25, 89, 243, .24);

      --inset-shadow: inset 0 1px 0 rgba(255,255,255,.82);

      --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

    }



    * { box-sizing: border-box; }



    [hidden] { display: none !important; }



    html, body {

      margin: 0;

      min-height: 100%;

      font-family: var(--font);

      color: var(--text);

      background:

        linear-gradient(135deg, #ffffff 0%, #f7f8fa 46%, #e8ecf3 100%),

        repeating-linear-gradient(90deg, rgba(25,89,243,.035) 0 1px, transparent 1px 86px),

        repeating-linear-gradient(0deg, rgba(25,89,243,.025) 0 1px, transparent 1px 86px);

      overflow-x: hidden;

      -webkit-text-size-adjust: 100%;

    }



    button, input, select, textarea {

      font: inherit;

    }



    input,

    select,

    textarea {

      font-size: 16px;

    }



    button {

      cursor: pointer;

      -webkit-tap-highlight-color: transparent;

    }



    .login-view {

      min-height: 100dvh;

      padding: calc(28px + env(safe-area-inset-top)) 18px calc(28px + env(safe-area-inset-bottom));

      display: grid;

      place-items: center;

      background:

        linear-gradient(135deg, #ffffff 0%, #f7f8fa 46%, #e8ecf3 100%),

        repeating-linear-gradient(90deg, rgba(25,89,243,.035) 0 1px, transparent 1px 86px),

        repeating-linear-gradient(0deg, rgba(25,89,243,.025) 0 1px, transparent 1px 86px);

    }



    .login-shell {

      width: min(100%, 430px);

      display: grid;

      gap: 22px;

    }



    .login-brand {

      display: grid;

      justify-items: center;

      text-align: center;

    }



    .login-brand img {

      width: 78px;

      height: 78px;

      margin-bottom: 14px;

      border-radius: 20px;

      box-shadow: 0 16px 32px rgba(16,23,34,.16);

    }



    .login-brand h1 {

      margin: 0;

      font-size: 32px;

      line-height: 1;

      letter-spacing: 0;

    }



    .login-brand p {

      margin: 8px 0 0;

      color: var(--muted);

      font-size: 14px;

      font-weight: 500;

    }



    .auth-tabs {

      display: grid;

      grid-template-columns: repeat(2, minmax(0, 1fr));

      gap: 4px;

      padding: 4px;

      border: 1px solid var(--line);

      border-radius: 16px;

      background: rgba(255,255,255,.72);

      box-shadow: var(--inset-shadow);

    }



    .auth-tab {

      min-height: 44px;

      border: 0;

      border-radius: 12px;

      background: transparent;

      color: var(--muted);

      font-weight: 700;

    }



    .auth-tab.active {

      background: var(--accent);

      color: #fff;

      box-shadow: 0 8px 18px rgba(10,58,184,.18);

    }



    .login-card {

      display: grid;

      gap: 14px;

      padding: 22px;

      border: 1px solid var(--line);

      border-radius: 22px;

      background: rgba(255,255,255,.92);

      box-shadow: var(--shadow), var(--inset-shadow);

    }



    .login-card label {

      display: grid;

      gap: 7px;

      color: var(--muted);

      font-size: 12px;

      font-weight: 700;

    }



    .login-card input {

      width: 100%;

      min-height: 50px;

      border: 1px solid rgba(109,124,158,.16);

      border-radius: 14px;

      padding: 12px 14px;

      background: #fff;

      color: var(--text);

      outline: none;

    }



    .login-card input:focus {

      border-color: var(--accent);

      box-shadow: 0 0 0 3px rgba(25,89,243,.13);

    }



    .password-field {

      position: relative;

      display: block;

    }



    .password-field input {

      padding-right: 50px;

    }



    .password-toggle {

      position: absolute;

      top: 50%;

      right: 7px;

      display: grid;

      width: 40px;

      height: 40px;

      place-items: center;

      border: 0;

      border-radius: 9px;

      background: transparent;

      color: var(--muted);

      transform: translateY(-50%);

    }



    .password-toggle:hover,

    .password-toggle:focus-visible,

    .password-toggle[aria-pressed="true"] {

      background: rgba(25,89,243,.09);

      color: var(--accent);

    }



    .password-toggle svg {

      width: 21px;

      height: 21px;

      fill: none;

      stroke: currentColor;

      stroke-linecap: round;

      stroke-linejoin: round;

      stroke-width: 1.8;

    }



    .login-submit {

      min-height: 52px;

      border: none;

      border-radius: 14px;

      background: var(--accent);

      color: white;

      font-weight: 700;

    }



    .login-submit:disabled {

      opacity: .58;

      cursor: wait;

    }



    .login-error {

      min-height: 18px;

      margin: 0;

      color: var(--danger);

      font-size: 12px;

      line-height: 1.35;

      text-align: center;

    }



    .login-error.success {

      color: var(--good);

    }



    .login-help {

      margin: -2px 0 0;

      color: var(--muted);

      font-size: 12px;

      line-height: 1.4;

      text-align: center;

    }



    .login-link {

      min-height: 38px;

      border: 0;

      border-radius: 9px;

      background: transparent;

      color: var(--accent-dark);

      font-size: 12px;

      font-weight: 750;

    }



    .login-link:hover,

    .login-link:focus-visible {

      background: rgba(25,89,243,.08);

    }



    .password-reset-step {

      display: grid;

      gap: 14px;

    }



    .password-reset-heading {

      display: grid;

      gap: 5px;

      text-align: center;

    }



    .password-reset-heading b {

      color: var(--text);

      font-size: 17px;

    }



    .password-reset-heading span {

      color: var(--muted);

      font-size: 12px;

      line-height: 1.45;

    }



    #webResetCode {

      text-align: center;

      font-size: 24px;

      font-weight: 800;

      letter-spacing: .34em;

    }



    .connection-card {

      justify-items: center;

      text-align: center;

    }



    .connection-orbit {

      position: relative;

      width: 58px;

      height: 58px;

      border: 1px solid rgba(25,89,243,.18);

      border-radius: 50%;

      background: rgba(25,89,243,.08);

      box-shadow: 0 14px 30px rgba(25,89,243,.12), var(--inset-shadow);

    }



    .connection-orbit::before {

      content: "";

      position: absolute;

      inset: 9px;

      border: 3px solid rgba(25,89,243,.16);

      border-top-color: var(--accent);

      border-radius: 50%;

      animation: connection-spin 1s linear infinite;

    }



    .connection-card h2 {

      margin: 0;

      color: var(--text);

      font-size: 22px;

      line-height: 1.15;

    }



    .connection-message,

    .connection-retry-status {

      margin: 0;

      color: var(--muted);

      line-height: 1.45;

    }



    .connection-message {

      font-size: 14px;

    }



    .connection-retry-status {

      min-height: 18px;

      font-size: 12px;

      font-weight: 500;

    }



    .connection-card .login-submit {

      width: 100%;

    }



    @keyframes connection-spin {

      to { transform: rotate(360deg); }

    }



    @media (prefers-reduced-motion: reduce) {

      .connection-orbit::before { animation: none; }

    }



    /* Desktop web workspace: this is intentionally a different layout from

       the installable, phone-first application. */

    @media (min-width: 900px) {

      body.web-mode {

        min-width: 900px;

        background:

          radial-gradient(circle at 92% 8%, rgba(25,89,243,.12), transparent 26%),

          radial-gradient(circle at 8% 92%, rgba(79,178,142,.10), transparent 28%),

          linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);

      }



      body.web-mode .app {

        width: min(1440px, calc(100% - 48px));

        min-height: calc(100vh - 48px);

        margin: 24px auto;

        padding-bottom: 0;

        border-radius: 20px;

        overflow: visible;

        box-shadow: 0 26px 70px rgba(16,23,34,.14), 0 2px 8px rgba(16,23,34,.06);

      }



      body.web-mode .appbar {

        min-height: 92px;

        padding: 18px 36px 18px 286px;

        border-bottom: 1px solid rgba(109,124,158,.15);

        background: rgba(255,255,255,.74);

        backdrop-filter: blur(22px);

      }



      body.web-mode .app-title {

        justify-items: start;

      }



      body.web-mode .app-brand-lockup {

        justify-content: flex-start;

      }



      body.web-mode .body {

        min-height: calc(100vh - 188px);

        padding: 32px 36px 48px 286px;

      }



      body.web-mode .bottom-nav {

        top: 128px;

        bottom: auto;

        left: max(36px, calc(50% - 696px));

        width: 224px;

        padding: 12px;

        transform: none;

        grid-template-columns: 1fr;

        gap: 6px;

        border: 1px solid rgba(109,124,158,.16);

        border-radius: 16px;

        box-shadow: 0 18px 44px rgba(16,23,34,.12);

      }



      body.web-mode .nav-btn {

        grid-template-columns: 40px minmax(0, 1fr);

        grid-template-rows: 1fr;

        justify-items: start;

        gap: 10px;

        padding: 10px 12px;

        font-size: 13px;

        line-height: 1.2;

      }



      body.web-mode .nav-btn span:last-child {

        text-align: left;

      }



      body.web-mode .nav-ico {

        width: 36px;

        height: 36px;

      }



      body.web-mode .screen-head {

        align-items: center;

        margin: 0 0 20px;

      }



      body.web-mode .screen-head h2 {

        font-size: 31px;

        line-height: 1.05;

      }



      body.web-mode .screen-head p {

        max-width: 680px;

        font-size: 14px;

      }



      body.web-mode .tabs {

        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));

        gap: 6px;

        margin-bottom: 20px;

      }



      body.web-mode .tab {

        min-height: 46px;

        font-size: 13px;

      }



      body.web-mode .kpi-grid {

        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));

        gap: 14px;

        margin: 18px 0 24px;

      }



      body.web-mode .kpi {

        min-height: 150px;

        padding: 18px;

      }



      body.web-mode .form-grid {

        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 14px;

      }



      body.web-mode .field-card,

      body.web-mode .card {

        border-radius: 14px;

      }



      body.web-mode .op-list {

        gap: 12px;

      }



      body.web-mode .report-row {

        padding: 15px 18px;

      }



      body.web-mode #webActionSlot {

        position: sticky;

        bottom: 20px;

        z-index: 4;

        display: flex;

        justify-content: flex-end;

        margin-top: 24px;

      }



      body.web-mode #webActionSlot .main-button {

        width: min(360px, 100%);

        min-height: 52px;

      }

    }



    @media (max-height: 760px) {

      .login-view {

        place-items: start center;

        padding-top: calc(18px + env(safe-area-inset-top));

      }



      .login-shell {

        gap: 14px;

      }



      .login-brand img {

        width: 58px;

        height: 58px;

        margin-bottom: 9px;

      }



      .login-brand h1 {

        font-size: 27px;

      }

    }



    .app {

      min-height: 100vh;

      padding: calc(12px + env(safe-area-inset-top)) 12px calc(150px + env(safe-area-inset-bottom));

      background: transparent;

      position: relative;

      overflow: hidden;

    }



    .app::after {

      content: "";

      position: fixed;

      inset: 0;

      background-image:

        repeating-linear-gradient(90deg, rgba(25,89,243,.035) 0 1px, transparent 1px 86px),

        repeating-linear-gradient(0deg, rgba(25,89,243,.028) 0 1px, transparent 1px 86px);

      opacity: .42;

      pointer-events: none;

    }



    .appbar {

      position: relative;

      z-index: 2;

      display: grid;

      grid-template-columns: 42px 1fr 42px;

      gap: 8px;

      align-items: center;

      padding: 4px 4px 12px;

    }



    .icon-btn {

      width: 40px;

      height: 40px;

      border: none;

      border-radius: 16px;

      background: rgba(255,255,255,.58);

      box-shadow: var(--inset-shadow);

      color: var(--muted);

      display: grid;

      place-items: center;

      font-size: 22px;

    }



    .icon-btn:hover {

      background: rgba(255,255,255,.78);

      color: var(--accent-dark);

    }



    .app-title {

      text-align: center;

      font-size: 16px;

      font-weight: 700;

      line-height: 1.05;

      letter-spacing: 0;

    }



    .app-title small {

      display: block;

      margin-top: 3px;

      color: var(--muted);

      font-size: 10px;

      font-weight: 600;

    }



    .body {

      position: relative;

      z-index: 2;

    }



    .tabs {

      display: grid;

      grid-template-columns: repeat(var(--tab-count, 3), minmax(0, 1fr));

      gap: 5px;

      padding: 5px;

      margin: 3px 0 16px;

      background: rgba(255,255,255,.52);

      border: 1px solid rgba(109,124,158,.11);

      border-radius: 17px;

    }



    .order-mode-tabs { --tab-count: 2; }

    .admin-task-status-tabs { --tab-count: 4; }



    .tabs[hidden] {

      display: none;

    }



    .tab {

      min-width: 0;

      min-height: 36px;

      border: none;

      background: transparent;

      color: var(--muted);

      border-radius: 13px;

      padding: 8px 4px;

      font-size: 10.5px;

      line-height: 1.05;

      font-weight: 700;

      overflow-wrap: anywhere;

      word-break: break-word;

    }



    .tab.active {

      color: white;

      background: var(--accent);

      box-shadow: 0 9px 18px rgba(25,89,243,.20);

    }



    .tab:hover:not(.active) {

      color: var(--accent-dark);

      background: rgba(25,89,243,.10);

    }



    /* Status labels need different widths, especially on narrow phones. */

    .tabs.admin-task-status-tabs,

    body.web-mode .tabs.admin-task-status-tabs {

      display: flex;

      flex-wrap: nowrap;

      max-width: 100%;

      gap: 2px;

      overflow-x: auto;

    }



    .tabs.admin-task-status-tabs .tab {

      flex: 1 0 auto;

      min-width: 44px;

      min-height: 44px;

      padding-inline: 4px;

      white-space: nowrap;

      overflow-wrap: normal;

      word-break: normal;

    }



    @media (max-width: 359px) {

      .tabs.admin-task-status-tabs .tab {

        padding-inline: 3px;

        font-size: 11px;

      }

    }



    .screen-head {

      display: flex;

      justify-content: space-between;

      gap: 12px;

      align-items: flex-end;

      margin: 4px 0 14px;

    }



    .screen-head h2 {

      margin: 0;

      font-size: 25px;

      letter-spacing: 0;

      line-height: 1;

    }



    .screen-head p {

      margin: 6px 0 0;

      color: var(--muted);

      font-size: 12px;

      line-height: 1.35;

    }



    .date {

      color: var(--muted);

      font-size: 11px;

      font-weight: 700;

      padding: 8px 10px;

      border-radius: 99px;

      background: rgba(255,255,255,.54);

      white-space: nowrap;

    }



    .card {

      border: 1px solid rgba(109,124,158,.11);

      background: rgba(255,255,255,.76);

      border-radius: 22px;

      box-shadow: 0 10px 24px rgba(16,23,34,.055), var(--inset-shadow);

    }



    .shift-card {

      padding: 14px;

      display: flex;

      justify-content: space-between;

      align-items: flex-start;

      gap: 12px;

    }



    .shift-card b {

      display: block;

      font-size: 15px;

      margin-bottom: 5px;

    }



    .shift-card span {

      color: var(--muted);

      font-size: 12px;

      line-height: 1.35;

    }



    .status-chip {

      display: inline-flex;

      align-items: center;

      gap: 5px;

      color: var(--sage-dark);

      background: rgba(49,168,107,.16);

      border: 1px solid rgba(49,168,107,.18);

      border-radius: 99px;

      padding: 7px 9px;

      font-size: 10.5px;

      font-weight: 700;

      white-space: nowrap;

    }



    .status-chip.warn {

      color: var(--accent-dark);

      background: rgba(25,89,243,.12);

      border-color: rgba(25,89,243,.18);

    }



    .status-chip.gray {

      color: var(--muted);

      background: rgba(109,124,158,.10);

      border-color: rgba(109,124,158,.10);

    }



    .kpi-grid {

      display: grid;

      grid-template-columns: 1fr 1fr;

      gap: 10px;

      margin: 12px 0;

    }



    .kpi {

      padding: 13px;

      min-height: 104px;

    }



    .home-kpi {

      width: 100%;

      min-width: 0;

      text-align: left;

      color: inherit;

      border-color: rgba(25,89,243,.24);

      cursor: pointer;

      transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;

    }



    .home-kpi:hover {

      transform: translateY(-1px);

      border-color: rgba(25,89,243,.52);

      background: rgba(255,255,255,.74);

      box-shadow: 0 14px 28px rgba(25,89,243,.16);

    }



    .home-kpi:active {

      transform: translateY(0);

    }



    .home-kpi > span:last-child {

      color: var(--accent-dark);

      font-weight: 600;

    }



    .summary-grid {

      display: grid;

      grid-template-columns: repeat(2, minmax(0, 1fr));

      gap: 10px;

      margin: 12px 0 18px;

    }



    .summary-card {

      width: 100%;

      min-width: 0;

      min-height: 112px;

      padding: 14px;

      color: inherit;

      text-align: left;

      display: grid;

      grid-template-rows: auto 1fr auto;

      gap: 8px;

      overflow: hidden;

    }



    .summary-card > span {

      display: block;

      min-width: 0;

      color: var(--muted);

      font-size: 11px;

      line-height: 1.2;

      font-weight: 700;

      overflow-wrap: anywhere;

    }



    .summary-card > strong {

      display: block;

      align-self: end;

      min-width: 0;

      font-size: 28px;

      line-height: 1;

      letter-spacing: 0;

    }



    .summary-card > small {

      display: block;

      min-width: 0;

      color: var(--muted);

      font-size: 10.5px;

      line-height: 1.3;

      font-weight: 700;

      overflow-wrap: anywhere;

    }



    .employee-detail-head {

      align-items: center;

    }



    .employee-detail-title {

      min-width: 0;

      flex: 1;

    }



    .employee-detail-back {

      width: 40px;

      height: 40px;

      flex: 0 0 40px;

      border: 1px solid rgba(25,89,243,.22);

      border-radius: 15px;

      color: var(--accent-dark);

      background: rgba(255,255,255,.64);

      font-size: 25px;

      line-height: 1;

      box-shadow: var(--inset-shadow);

    }



    .employee-detail-back:hover {

      border-color: rgba(25,89,243,.5);

      background: rgba(255,255,255,.84);

    }



    .employee-detail-row {

      width: 100%;

      color: inherit;

      text-align: left;

    }



    .warehouse-category {

      width: 100%;

      text-align: left;

      color: inherit;

      font: inherit;

      cursor: pointer;

      border-color: rgba(25,89,243,.24);

      transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;

    }



    .warehouse-category:hover {

      transform: translateY(-1px);

      border-color: rgba(25,89,243,.52);

      background: rgba(255,255,255,.72);

      box-shadow: 0 14px 28px rgba(25,89,243,.16);

    }



    .warehouse-category:active {

      transform: translateY(0);

    }



    .kpi > .kpi-top {

      display: flex;

      justify-content: space-between;

      align-items: center;

      gap: 12px;

      margin: 0;

      color: var(--muted);

      font-size: 11px;

      font-weight: 700;

    }



    .kpi > .kpi-top > span:first-child {

      display: block;

      min-width: 0;

      margin: 0;

      color: inherit;

      font: inherit;

      line-height: 1.2;

    }



    .kpi .kpi-ico {

      width: 40px;

      height: 40px;

      flex: 0 0 40px;

      margin: 0;

      border-radius: 13px;

      border: 1px solid rgba(25,89,243,.16);

      background: linear-gradient(145deg, rgba(25,89,243,.22), rgba(25,89,243,.08));

      color: var(--accent-dark);

      display: grid;

      place-items: center;

      box-shadow: var(--inset-shadow);

    }



    .kpi .kpi-ico svg {

      display: block;

      width: 22px;

      height: 22px;

      fill: none;

      stroke: currentColor;

      stroke-width: 1.8;

      stroke-linecap: round;

      stroke-linejoin: round;

    }



    .ui-icon {

      display: block;

      width: 22px;

      height: 22px;

      fill: none;

      stroke: currentColor;

      stroke-width: 1.8;

      stroke-linecap: round;

      stroke-linejoin: round;

    }



    .kpi.good .kpi-ico {

      border-color: rgba(49,168,107,.18);

      background: linear-gradient(145deg, rgba(49,168,107,.20), rgba(49,168,107,.07));

      color: var(--sage-dark);

    }



    .kpi.danger .kpi-ico {

      border-color: rgba(221,79,93,.18);

      background: linear-gradient(145deg, rgba(221,79,93,.18), rgba(221,79,93,.06));

      color: var(--danger);

    }



    .kpi strong {

      display: block;

      margin-top: 12px;

      font-size: 26px;

      letter-spacing: 0;

    }



    .kpi strong small {

      font-size: 12px;

      letter-spacing: 0;

      color: var(--muted);

    }



    .kpi > span:not(.kpi-top) {

      display: block;

      margin-top: 4px;

      color: var(--muted);

      font-size: 11px;

      line-height: 1.3;

    }



    .warehouse-category .kpi-top {

      display: flex;

      margin-top: 0;

    }



    .warehouse-category .kpi-ico {

      display: grid;

      margin-top: 0;

      color: var(--accent-dark);

    }



    .warehouse-category.good .kpi-ico {

      color: var(--sage-dark);

    }



    .analytics-card {

      width: 100%;

      text-align: left;

      color: inherit;

      font: inherit;

      cursor: pointer;

      border-color: rgba(25,89,243,.28);

      transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;

    }



    .analytics-card:hover,

    .analytics-row:hover {

      transform: translateY(-1px);

      border-color: rgba(25,89,243,.54);

      background: rgba(255,255,255,.74);

      box-shadow: 0 14px 28px rgba(25,89,243,.15);

    }



    .analytics-card:active,

    .analytics-row:active {

      transform: translateY(0);

    }



    .analytics-card > span:last-child {

      color: var(--accent-dark);

      font-weight: 600;

    }



    .analytics-row {

      cursor: pointer;

      transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;

    }



    .analytics-formula {

      padding: 14px;

      margin-bottom: 12px;

    }



    .analytics-formula strong {

      display: block;

      font-size: 22px;

      margin-bottom: 5px;

    }



    .analytics-formula span {

      color: var(--muted);

      font-size: 11px;

      line-height: 1.4;

    }



    .progress {

      height: 7px;

      border-radius: 99px;

      background: rgba(109,124,158,.12);

      overflow: hidden;

      margin-top: 10px;

    }



    .completion-fields { min-width: 0; margin: 0; padding: 0; border: 0; }

    .completion-fields[disabled] { opacity: .75; }

    .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }



    .progress i,

    .progress progress {

      display: block;

      height: 100%;

      width: 100%;

      border-radius: 99px;

      border: 0;

      appearance: none;

    }



    .progress i { background: var(--accent); }

    .progress progress { background: transparent; }

    .progress progress::-webkit-progress-bar { background: transparent; }

    .progress progress::-webkit-progress-value { border-radius: 99px; background: var(--accent); }

    .progress progress::-moz-progress-bar { border-radius: 99px; background: var(--accent); }



    .progress.sage i,

    .progress.sage progress::-webkit-progress-value,

    .progress.sage progress::-moz-progress-bar {

      background: var(--sage);

    }



    .section-title {

      display: flex;

      align-items: center;

      justify-content: space-between;

      margin: 17px 0 10px;

    }



    .section-title b {

      font-size: 15px;

      letter-spacing: 0;

    }



    .section-title button, .section-title span {

      border: none;

      background: transparent;

      color: var(--accent-dark);

      font-weight: 700;

      font-size: 11px;

    }



    .wms-map-shell {

      display: grid;

      gap: 14px;

    }



    /* Warehouse UI v2: presentation only. It never writes, sorts or recreates

       physical locations; every action continues to use the existing cell id. */

    .warehouse-v2-layout {

      display: grid;

      grid-template-columns: 226px minmax(0, 1fr);

      align-items: start;

      gap: 24px;

    }



    .warehouse-v2-sidebar {

      position: sticky;

      top: 16px;

      display: grid;

      gap: 4px;

      padding: 18px 12px;

      border: 1px solid rgba(25,89,243,.14);

      border-radius: 18px;

      background: rgba(255,255,255,.82);

      box-shadow: var(--shadow-soft);

    }



    .warehouse-v2-sidebar h3 {

      margin: 0 0 10px 8px;

      color: var(--muted);

      font-size: 11px;

      letter-spacing: .11em;

      text-transform: uppercase;

    }



    .warehouse-v2-nav {

      min-height: 44px;

      display: flex;

      align-items: center;

      gap: 10px;

      padding: 10px 11px;

      border: 1px solid transparent;

      border-radius: 12px;

      color: var(--muted);

      background: transparent;

      text-align: left;

      font: inherit;

      font-size: 13px;

      font-weight: 700;

    }



    .warehouse-v2-nav:hover { background: rgba(37,99,235,.07); color: var(--accent-dark); }

    .warehouse-v2-nav.active { color: white; background: var(--accent); box-shadow: 0 8px 18px rgba(25,89,243,.22); }

    .warehouse-v2-nav .warehouse-v2-icon { width: 18px; text-align: center; font-size: 16px; }

    .warehouse-v2-content { min-width: 0; }

    .warehouse-v2-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }

    .warehouse-v2-actions .summary-card { min-height: 116px; }

    .warehouse-v2-alert { border-left: 4px solid var(--warning); }

    .warehouse-v2-alert.critical { border-left-color: var(--danger); }

    .warehouse-v2-filter-row { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(160px, .55fr) auto; gap: 10px; align-items: end; }

    .warehouse-v2-filter-row .field { margin: 0; }

    .warehouse-v2-status { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }

    .warehouse-v2-status i { width: 9px; height: 9px; display: inline-block; border-radius: 99px; background: var(--sage); }

    .warehouse-v2-status.occupied i { background: var(--accent); }

    .warehouse-v2-status.reserved i { background: var(--warning); }

    .warehouse-v2-status.blocked i { background: var(--danger); }



    @media (max-width: 1023px) {

      .warehouse-v2-layout { grid-template-columns: 1fr; }

      .warehouse-v2-sidebar { position: static; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow-x: auto; padding: 8px; }

      .warehouse-v2-sidebar h3 { display: none; }

      .warehouse-v2-nav { justify-content: center; min-width: 104px; }

      .warehouse-v2-nav span:last-child { white-space: nowrap; }

    }



    @media (max-width: 899px) {

      .warehouse-v2-layout { gap: 12px; }

      .warehouse-v2-sidebar { display: none; }

      .warehouse-v2-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }

      .warehouse-v2-filter-row { grid-template-columns: 1fr; }

      .warehouse-v2-filter-row .small-button { min-height: 44px; }

    }



    .wms-stock-filter-tabs {

      --tab-count: 3;

      margin: 0 0 12px;

    }



    .wms-stock-filter-tabs .tab {

      min-height: 44px;

      font-size: 11px;

    }



    .wms-stock-filter-card {

      margin-bottom: 14px;

    }



    .wms-map-scroll {

      overflow-x: auto;

      padding: 2px 2px 10px;

      -webkit-overflow-scrolling: touch;

    }



    .wms-zone-map {

      min-width: 700px;

      display: grid;

      gap: 10px;

    }



    .wms-zone-map-head {

      display: flex;

      align-items: baseline;

      justify-content: space-between;

      gap: 12px;

      padding: 0 4px;

    }



    .wms-zone-map-head b {

      font-size: 18px;

    }



    .wms-zone-map-head span {

      color: var(--muted);

      font-size: 12px;

      font-weight: 700;

    }



    .wms-map-grid {

      display: grid;

      gap: 4px;

      padding: 8px;

      border: 1px solid rgba(25, 89, 243, .18);

      border-radius: 18px;

      background: linear-gradient(145deg, rgba(255,255,255,.94), rgba(235,241,255,.84));

      box-shadow: var(--shadow-soft);

    }



    .wms-cell {

      min-height: 64px;

      padding: 7px 5px;

      display: grid;

      align-content: center;

      gap: 3px;

      border: 1px solid rgba(25, 89, 243, .20);

      border-radius: 10px;

      color: var(--text);

      background: rgba(255,255,255,.82);

      text-align: left;

      transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;

    }



    .wms-cell:hover,

    .wms-cell:focus-visible {

      border-color: var(--accent);

      box-shadow: 0 8px 18px rgba(25,89,243,.18);

      transform: translateY(-1px);

      outline: none;

    }



    .wms-cell strong {

      font-size: 11px;

      line-height: 1.1;

      overflow-wrap: anywhere;

      white-space: normal;

    }



    .wms-cell small {

      color: var(--muted);

      font-size: 10px;

      font-weight: 700;

    }



    .wms-cell-empty {

      border-color: rgba(49,168,107,.30);

      background: linear-gradient(145deg, rgba(238,251,245,.96), rgba(255,255,255,.90));

    }



    .wms-cell-occupied {

      border-color: rgba(25,89,243,.44);

      background: linear-gradient(145deg, rgba(225,235,255,.98), rgba(255,255,255,.92));

    }



    .wms-cell-reserved {

      border-color: rgba(242,162,58,.62);

      background: linear-gradient(145deg, rgba(255,244,220,.98), rgba(255,255,255,.92));

    }



    .wms-cell-blocked {

      border-color: rgba(221,79,93,.50);

      background: rgba(255,238,240,.94);

    }



    .wms-cell-filtered { opacity: .30; filter: grayscale(.45); }



    .wms-product-rich { display: flex; align-items: center; gap: 12px; min-width: 0; }

    .wms-product-rich-copy { display: grid; gap: 4px; min-width: 0; }

    .wms-product-rich-copy b { line-height: 1.25; }

    .wms-product-rich-copy span,

    .wms-product-rich-copy small { color: var(--muted); line-height: 1.35; }

    .product-card-rich { text-align: left; }

    .production-task-inline,

    .board-order-product { display: flex; align-items: center; gap: 10px; min-width: 0; }

    .production-task-inline > span,

    .board-order-product > span { display: grid; gap: 3px; min-width: 0; }

    .production-task-inline small,

    .board-order-product small { color: var(--muted); font-size: 11px; line-height: 1.35; }

    .task-completion-product { margin: 10px 0 12px; padding: 10px; border-radius: 14px; background: rgba(245,248,255,.72); }

    .wms-catalog-product .product-card-rich { min-width: min(480px, 70%); }



    .wms-cell-section-start {

      margin-left: 8px;

    }



    .wms-map-legend {

      display: flex;

      flex-wrap: wrap;

      gap: 8px 14px;

      color: var(--muted);

      font-size: 12px;

      font-weight: 700;

    }



    .wms-map-legend span {

      display: inline-flex;

      align-items: center;

      gap: 6px;

    }



    .wms-map-legend i {

      width: 12px;

      height: 12px;

      display: inline-block;

      border: 1px solid rgba(25,89,243,.24);

      border-radius: 4px;

      background: rgba(255,255,255,.9);

    }



    .wms-map-legend .occupied i { background: #dfe9ff; }

    .wms-map-legend .reserved i { background: #fff0cc; border-color: #f2a23a; }

    .wms-map-legend .blocked i { background: #ffe6e9; border-color: #dd4f5d; }



    .wms-location-detail {

      display: grid;

      gap: 14px;

    }



    .wms-location-detail .detail-grid {

      margin-top: 0;

    }



    .wms-location-products {

      display: grid;

      gap: 8px;

    }



    .wms-shipment-picker {

      display: grid;

      grid-template-columns: minmax(0, 1fr) auto;

      gap: 10px;

      align-items: end;

    }



    .wms-shipment-line {

      display: grid;

      grid-template-columns: minmax(0, 1fr) 118px auto;

      gap: 12px;

      align-items: center;

    }



    .wms-shipment-line .field { margin: 0; }



    .wms-shipment-summary {

      display: flex;

      align-items: center;

      justify-content: space-between;

      gap: 12px;

      padding: 14px 16px;

      border-radius: 14px;

      background: rgba(25,89,243,.07);

    }



    /* ТСД работает как клавиатура: код не показываем в поле и очищаем после считывания. */

    .wms-hardware-scanner-input { color: transparent; caret-color: transparent; }

    .wms-hardware-scanner-input::placeholder { color: var(--muted); opacity: 1; }



    @media (max-width: 600px) {

      /* Physical coordinates must stay intact on mobile. The previous

         two-column override conflicted with inline grid coordinates and

         squeezed implicit columns until labels overlapped. */

      .wms-map-scroll {

        overflow-x: visible;

        padding: 2px 0 10px;

      }



      .wms-zone-map {

        min-width: 0;

        width: 100%;

        margin-bottom: 12px;

      }



      .wms-map-grid {

        grid-template-columns: repeat(var(--wms-columns), 94px) !important;

        grid-auto-columns: 94px;

        width: 100%;

        gap: 6px;

        padding: 9px 9px 12px;

        overflow-x: auto;

        overflow-y: hidden;

        scroll-snap-type: x proximity;

        overscroll-behavior-inline: contain;

        scrollbar-width: thin;

        -webkit-overflow-scrolling: touch;

      }



      .wms-cell {

        min-width: 94px;

        min-height: 72px;

        padding: 8px 9px;

        scroll-snap-align: start;

      }



      .wms-cell strong {

        overflow: visible;

        font-size: 12px;

        line-height: 1.18;

        text-overflow: clip;

        white-space: normal;

        overflow-wrap: anywhere;

      }



      .wms-cell small {

        font-size: 11px;

      }



      .wms-cell-section-start {

        margin-left: 0;

      }



      .wms-shipment-picker,

      .wms-shipment-line {

        grid-template-columns: 1fr;

      }



      .wms-shipment-line .small-button { width: 100%; }

    }



    .op-icon {

      width: 44px;

      height: 44px;

      border-radius: 16px;

      background: rgba(25,89,243,.13);

      display: grid;

      place-items: center;

      color: var(--accent-dark);

      flex: 0 0 auto;

    }



    .active-operation,

    .op-row,

    .order-head {

      display: grid;

      grid-template-columns: 44px minmax(0, 1fr) auto;

      gap: 10px;

      align-items: center;

      padding: 11px;

    }



    .active-operation b,

    .op-meta b,

    .order-head b {

      display: block;

      font-size: 13px;

      line-height: 1.18;

    }



    .active-operation span,

    .op-meta span,

    .order-head span,

    .item-meta {

      display: block;

      margin-top: 4px;

      color: var(--muted);

      font-size: 11px;

      line-height: 1.35;

    }



    .op-list {

      display: grid;

      gap: 10px;

    }



    .op-row.selected {

      border-color: rgba(25,89,243,.44);

      box-shadow: 0 12px 28px rgba(25,89,243,.12), var(--inset-shadow);

    }



    .op-num {

      text-align: right;

      font-size: 12px;

      color: var(--muted);

      font-weight: 700;

    }



    .op-num strong {

      display: block;

      color: var(--text);

      font-size: 15px;

      letter-spacing: 0;

    }



    .field-card {

      padding: 13px;

      margin-bottom: 10px;

    }



    .field-card label {

      display: block;

      color: var(--muted);

      font-size: 11px;

      font-weight: 700;

      margin-bottom: 9px;

    }



    .form-grid {

      display: grid;

      grid-template-columns: repeat(2, minmax(0, 1fr));

      gap: 9px;

    }



    .field {

      min-width: 0;

    }



    .field.full {

      grid-column: 1 / -1;

    }



    .field input,

    .field select,

    .field textarea {

      width: 100%;

      min-height: 42px;

      border: 1px solid rgba(109,124,158,.13);

      border-radius: 15px;

      background: rgba(255,255,255,.56);

      color: var(--text);

      padding: 9px 10px;

      outline: none;

      font-size: 16px;

      font-weight: 500;

    }



    .field textarea {

      min-height: 108px;

      resize: vertical;

      line-height: 1.35;

    }



    .segment-row {

      display: grid;

      grid-template-columns: repeat(4, minmax(0, 1fr));

      gap: 6px;

      margin-bottom: 12px;

    }



    .segment-button {

      min-width: 0;

      min-height: 34px;

      border: none;

      border-radius: 13px;

      padding: 8px 5px;

      background: rgba(255,255,255,.56);

      color: var(--muted);

      font-size: 12px;

      line-height: 1.05;

      font-weight: 600;

      overflow-wrap: anywhere;

    }



    .segment-button.active {

      background: var(--accent);

      color: white;

    }



    .segment-button:hover:not(.active) {

      color: var(--accent-dark);

      background: rgba(25,89,243,.10);

    }



    .admin-segment-row {

      scrollbar-color: rgba(25,89,243,.26) transparent;

      scrollbar-width: thin;

    }



    .button-row {

      display: grid;

      grid-template-columns: repeat(2, minmax(0, 1fr));

      gap: 9px;

      margin-top: 11px;

    }



    .button-row > .status-chip:only-child {

      grid-column: 1 / -1;

      min-height: 34px;

      justify-content: center;

    }



    .small-button {

      display: flex;

      align-items: center;

      justify-content: center;

      min-width: 0;

      border: none;

      border-radius: 15px;

      padding: 11px 10px;

      color: white;

      background: var(--accent);

      font-size: 12px;

      font-weight: 700;

      overflow-wrap: anywhere;

      text-decoration: none;

    }



    .small-button.secondary {

      color: var(--accent-dark);

      background: rgba(25,89,243,.12);

    }



    .small-button.danger {

      background: var(--danger);

    }



    .small-button:hover {

      filter: brightness(1.03);

      box-shadow: 0 10px 18px rgba(25,89,243,.15);

    }



    button,

    [data-go],

    [data-admin-home-period],

    [data-order-category],

    [data-report-section],

    [data-admin-home-view],

    [data-admin-home-employee],

    [data-employee-home-detail],

    [data-employee-home-back],

    [data-admin-section],

    [data-admin-action],

    [data-order-action],

    [data-order-size],

    [data-order-color],

    [data-history-action],

    [data-feedback-action],

    [data-profile-action],

    [data-select-operation],

    [data-select-order],

    [data-select-report-task],

    [data-select-cutting-report-task] {

      cursor: pointer;

      user-select: none;

      -webkit-user-select: none;

      -webkit-tap-highlight-color: transparent;

    }



    .card[data-go],

    .card[data-order-action],

    .card[data-admin-home-view],

    .card[data-admin-home-employee],

    .card[data-select-operation],

    .card[data-select-order],

    .card[data-select-report-task],

    .card[data-select-cutting-report-task] {

      border-color: rgba(25,89,243,.24);

      box-shadow: 0 9px 22px rgba(16,23,34,.07);

      transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;

    }



    .marketplace-clickable {

      width: 100%;

      padding: 0;

      color: inherit;

      font: inherit;

      text-align: left;

      cursor: pointer;

      border-color: rgba(25,89,243,.24);

      transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;

    }



    .marketplace-clickable.kpi {

      padding: 13px;

    }



    .marketplace-clickable.field-card {

      padding: 13px;

    }



    .marketplace-clickable:hover,

    .marketplace-clickable:focus-visible {

      transform: translateY(-1px);

      border-color: rgba(25,89,243,.52);

      background: rgba(255,255,255,.82);

      box-shadow: 0 14px 28px rgba(25,89,243,.16);

      outline: none;

    }



    .marketplace-clickable:active {

      transform: translateY(0);

      box-shadow: 0 7px 16px rgba(25,89,243,.12);

    }



    .marketplace-overview-grid {

      display: grid;

      grid-template-columns: repeat(2, minmax(0, 1fr));

      gap: 14px;

      margin-top: 14px;

    }

    .marketplace-supply-card { align-items: center; gap: 14px; }

    .supply-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 7px; }

    .critical-text { color: #b42318; font-weight: 700; }

    @media (max-width: 720px) { .marketplace-overview-grid { grid-template-columns: 1fr; } .supply-actions { justify-content: flex-start; } }

    .marketplace-menu-strip { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 14px; padding: 8px; border: 1px solid rgba(111,128,159,.14); border-radius: 16px; background: rgba(255,255,255,.72); }

    .marketplace-menu-link { border: 0; border-radius: 10px; padding: 9px 13px; color: var(--muted); background: transparent; font: inherit; font-size: 12px; cursor: pointer; }

    .marketplace-menu-link.active { color: #fff; background: #1557ed; box-shadow: 0 8px 18px rgba(21,87,237,.2); }

    .marketplace-dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; margin: 16px 0; }

    .marketplace-provider-dashboard { padding: 18px; border-radius: 18px; border: 1px solid rgba(111,128,159,.16); background: rgba(255,255,255,.78); box-shadow: var(--inset-shadow); }

    .marketplace-provider-dashboard.ozon-panel { border-top: 4px solid #005bff; }

    .marketplace-provider-dashboard.wb-panel { border-top: 4px solid #cb11ab; }

    .marketplace-provider-dashboard .provider-heading { display:flex; align-items:center; justify-content:space-between; gap: 12px; margin-bottom: 14px; }

    .marketplace-provider-dashboard .provider-heading h3 { margin:0; font-size:18px; }

    .marketplace-provider-dashboard .provider-heading span { color:var(--muted); font-size:11px; }

    .marketplace-dashboard-kpis { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }

    .marketplace-dashboard-kpi { padding:11px; border-radius:12px; background:rgba(240,244,252,.75); }

    .marketplace-dashboard-kpi span,.marketplace-dashboard-kpi small { display:block; color:var(--muted); font-size:10px; }

    .marketplace-dashboard-kpi strong { display:block; margin-top:5px; color:var(--text); font-size:20px; }

    .marketplace-dashboard-lower { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr); gap:14px; margin-top:14px; }

    .marketplace-chart { height:145px; min-height:145px; display:flex; align-items:flex-end; gap:7px; padding:14px 10px 8px; border-radius:13px; overflow:hidden; background:linear-gradient(180deg,rgba(238,243,255,.82),rgba(255,255,255,.4)); }

    .marketplace-chart-bar { flex:1; min-width:8px; height:var(--bar-height); border-radius:7px 7px 2px 2px; background:linear-gradient(180deg,#2a69ff,#1647ca); }

    .marketplace-chart-bar.wb { background:linear-gradient(180deg,#d72ac2,#9712a2); }

    .marketplace-dashboard-lower > div { min-width:0; }

    .marketplace-mini-list { display:grid; gap:8px; min-width:0; }

    .marketplace-mini-row { display:flex; justify-content:space-between; gap:8px; min-width:0; padding:10px 0; border-bottom:1px solid rgba(111,128,159,.12); font-size:12px; }

    .marketplace-mini-row:last-child { border-bottom:0; }

    .marketplace-mini-row span { color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

    .marketplace-wide-grid { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr); gap:16px; margin-top:16px; }

    .marketplace-table { width:100%; border-collapse:collapse; font-size:11px; }

    .marketplace-table th,.marketplace-table td { padding:9px 7px; text-align:left; border-bottom:1px solid rgba(111,128,159,.12); }

    .marketplace-table th { color:var(--muted); font-weight:600; }

    .marketplace-notice { display:flex; align-items:flex-start; gap:9px; padding:10px 0; border-bottom:1px solid rgba(111,128,159,.12); font-size:11px; }

    .marketplace-notice:last-child { border-bottom:0; }

    .marketplace-notice b { display:block; margin-bottom:3px; }

    .marketplace-notice span { color:var(--muted); }

    .marketplace-notice-dot { width:8px; height:8px; margin-top:4px; flex:0 0 auto; border-radius:50%; background:#ff9f1c; }

    .marketplace-dashboard-grid.single { grid-template-columns:1fr; }

    @media (max-width: 800px) { .marketplace-dashboard-grid,.marketplace-wide-grid,.marketplace-dashboard-lower { grid-template-columns:1fr; } .marketplace-dashboard-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); } }



    .marketplace-provider-panel {

      display: grid;

      gap: 12px;

      margin-bottom: 20px;

      padding: 12px;

      border: 1px solid rgba(111,128,159,.14);

      border-radius: 16px;

      background: rgba(255,255,255,.74);

      box-shadow: var(--inset-shadow);

    }



    .marketplace-provider-switch {

      display: grid;

      grid-template-columns: repeat(2, minmax(0, 1fr));

      gap: 8px;

    }



    .marketplace-provider-button {

      min-width: 0;

      padding: 12px 14px;

      border: 1px solid rgba(111,128,159,.14);

      border-radius: 12px;

      color: var(--muted);

      background: rgba(255,255,255,.66);

      font: inherit;

      text-align: left;

      cursor: pointer;

      transition: border-color .16s ease, color .16s ease, background .16s ease, box-shadow .16s ease;

    }



    .marketplace-provider-button b,

    .marketplace-provider-button span {

      display: block;

    }



    .marketplace-provider-button b {

      color: var(--text);

      font-size: 14px;

    }



    .marketplace-provider-button span {

      margin-top: 4px;

      overflow-wrap: anywhere;

      font-size: 11px;

    }



    .marketplace-provider-button.active {

      border-color: rgba(25,89,243,.48);

      color: var(--accent-dark);

      background: rgba(220,230,255,.75);

      box-shadow: 0 8px 18px rgba(25,89,243,.12);

    }



    .marketplace-provider-inline {

      width: min(480px, 100%);

      display: grid;

      gap: 6px;

      flex: 0 1 480px;

    }



    .marketplace-provider-inline .marketplace-provider-switch {

      grid-template-columns: repeat(3, minmax(0, 1fr));

    }



    .marketplace-provider-inline .marketplace-provider-button {

      padding: 9px 10px;

      text-align: center;

    }



    .marketplace-provider-inline .marketplace-provider-button b {

      font-size: 12px;

    }



    .marketplace-provider-inline .marketplace-provider-button span {

      margin-top: 2px;

      font-size: 9px;

      white-space: nowrap;

    }



    .marketplace-provider-inline .marketplace-provider-button.active b,

    .marketplace-provider-inline .marketplace-provider-button.active span {

      color: #fff;

    }



    .marketplace-provider-inline .marketplace-provider-all.active {

      border-color: #14233b;

      background: #14233b;

      box-shadow: 0 8px 18px rgba(20,35,59,.18);

    }



    .marketplace-provider-inline .marketplace-provider-ozon.active {

      border-color: #005bff;

      background: linear-gradient(135deg, #005bff, #0046c7);

      box-shadow: 0 8px 18px rgba(0,91,255,.24);

    }



    .marketplace-provider-inline .marketplace-provider-wb.active {

      border-color: #cb11ab;

      background: linear-gradient(135deg, #cb11ab, #8d0b99);

      box-shadow: 0 8px 18px rgba(203,17,171,.24);

    }



    .marketplace-provider-inline .marketplace-provider-status {

      justify-content: flex-end;

      gap: 8px;

      padding: 0 2px;

      font-size: 10px;

    }



    .marketplace-provider-inline .marketplace-provider-status b {

      color: var(--text);

    }



    .marketplace-provider-status {

      display: flex;

      align-items: center;

      justify-content: space-between;

      gap: 12px;

      padding: 4px 2px 0;

      color: var(--muted);

      font-size: 12px;

    }



    .marketplace-provider-status b {

      color: var(--text);

    }



    @media (max-width: 520px) {

      .marketplace-provider-switch {

        grid-template-columns: 1fr;

      }

    }



    .marketplace-group-card {

      padding: 16px;

      display: grid;

      gap: 12px;

    }



    .marketplace-group-card .group-title,

    .marketplace-product-card .product-title {

      display: flex;

      align-items: flex-start;

      justify-content: space-between;

      gap: 12px;

    }



    .marketplace-group-card .group-title b,

    .marketplace-product-card .product-title b {

      font-size: 15px;

      line-height: 1.2;

    }



    .marketplace-group-meta,

    .marketplace-product-meta {

      display: flex;

      flex-wrap: wrap;

      gap: 7px;

      color: var(--muted);

      font-size: 11px;

      line-height: 1.35;

    }



    .marketplace-detail-head {

      display: flex;

      align-items: flex-start;

      gap: 10px;

      margin: 8px 0 12px;

    }



    .marketplace-detail-head .small-button {

      flex: 0 0 auto;

      min-width: 94px;

      padding: 9px 12px;

    }



    .marketplace-detail-head > div {

      min-width: 0;

      flex: 1;

    }



    .marketplace-detail-head h3 {

      margin: 0;

      font-size: 18px;

      line-height: 1.15;

    }



    .marketplace-detail-head p {

      margin: 5px 0 0;

      color: var(--muted);

      font-size: 12px;

    }



    .marketplace-detail-grid {

      display: grid;

      grid-template-columns: repeat(2, minmax(0, 1fr));

      gap: 8px;

      margin: 12px 0;

    }



    .marketplace-detail-field {

      min-width: 0;

      padding: 11px 12px;

      border: 1px solid rgba(109,124,158,.12);

      border-radius: 14px;

      background: rgba(255,255,255,.58);

    }



    .marketplace-detail-field span {

      display: block;

      margin-bottom: 4px;

      color: var(--muted);

      font-size: 10px;

    }



    .marketplace-detail-field b {

      display: block;

      overflow-wrap: anywhere;

      font-size: 13px;

    }



    @media (min-width: 900px) {

      body.web-mode .marketplace-group-grid {

        display: grid;

        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 12px;

      }

    }



    .card[data-go]:hover,

    .card[data-order-action]:hover,

    .card[data-admin-home-view]:hover,

    .card[data-admin-home-employee]:hover,

    .card[data-select-operation]:hover,

    .card[data-select-order]:hover,

    .card[data-select-report-task]:hover,

    .card[data-select-cutting-report-task]:hover {

      transform: translateY(-1px);

      border-color: rgba(25,89,243,.52);

      background: rgba(255,255,255,.72);

      box-shadow: 0 14px 28px rgba(25,89,243,.16);

    }



    .card[data-go]:active,

    .card[data-order-action]:active,

    .card[data-admin-home-view]:active,

    .card[data-admin-home-employee]:active,

    .card[data-select-operation]:active,

    .card[data-select-order]:active,

    .card[data-select-report-task]:active,

    .card[data-select-cutting-report-task]:active {

      transform: translateY(0);

      box-shadow: 0 7px 16px rgba(25,89,243,.12);

    }



    .card[data-go] .status-chip.gray,

    .card[data-order-action] .status-chip.gray,

    .card[data-admin-home-view] .status-chip.gray,

    .card[data-admin-home-employee] .status-chip.gray,

    .card[data-select-operation] .status-chip.gray,

    .card[data-select-order] .status-chip.gray,

    .card[data-select-report-task] .status-chip.gray,

    .card[data-select-cutting-report-task] .status-chip.gray {

      color: var(--accent-dark);

      background: rgba(25,89,243,.13);

      border-color: rgba(25,89,243,.18);

    }



    .choice-grid {

      display: grid;

      grid-template-columns: repeat(2, minmax(0, 1fr));

      gap: 8px;

    }



    .choice-chip {

      min-width: 0;

      min-height: 38px;

      border: 1px solid rgba(109,124,158,.13);

      border-radius: 14px;

      background: rgba(255,255,255,.54);

      color: var(--muted);

      padding: 9px 10px;

      font-size: 11px;

      font-weight: 700;

      line-height: 1.12;

      overflow-wrap: anywhere;

      transition: .16s ease;

    }



    .choice-chip.active,

    .choice-chip:hover {

      color: var(--accent-dark);

      border-color: rgba(25,89,243,.44);

      background: rgba(25,89,243,.12);

      box-shadow: 0 8px 18px rgba(25,89,243,.10);

    }



    .stock-picker {

      display: grid;

      gap: 9px;

      margin-top: 10px;

    }



    .stock-picker-head {

      display: flex;

      justify-content: space-between;

      gap: 10px;

      align-items: center;

      color: var(--muted);

      font-size: 12px;

      font-weight: 600;

      line-height: 1.25;

    }



    .stock-picker-actions {

      display: grid;

      grid-template-columns: 1fr 1fr;

      gap: 8px;

    }



    .stock-component-group {

      display: grid;

      gap: 7px;

      padding-top: 8px;

      border-top: 1px solid rgba(109,124,158,.10);

    }



    .stock-component-title {

      display: flex;

      justify-content: space-between;

      gap: 10px;

      align-items: center;

      color: var(--text);

      font-size: 12px;

      font-weight: 700;

    }



    .stock-component-title span {

      color: var(--accent-dark);

      font-size: 10px;

    }



    .stock-component-title b,

    .route-input-row span:first-child {

      min-width: 0;

      overflow-wrap: anywhere;

    }



    .stock-pick-row {

      display: grid;

      grid-template-columns: 24px minmax(0, 1fr) 92px;

      gap: 10px;

      align-items: center;

      padding: 11px;

      border: 1px solid rgba(109,124,158,.10);

      border-radius: 18px;

      background: rgba(255,255,255,.58);

      transition: .16s ease;

    }



    .stock-pick-row.active,

    .stock-pick-row:hover {

      border-color: rgba(25,89,243,.42);

      background: rgba(25,89,243,.10);

      box-shadow: 0 8px 18px rgba(25,89,243,.10);

    }



    .stock-pick-row input[type="checkbox"] {

      width: 20px;

      height: 20px;

      accent-color: var(--accent);

    }



    .stock-pick-main b {

      display: block;

      font-size: 13px;

      line-height: 1.2;

      overflow-wrap: anywhere;

    }



    .stock-pick-main span {

      display: block;

      margin-top: 4px;

      color: var(--muted);

      font-size: 11px;

      font-weight: 600;

      line-height: 1.32;

    }



    .stock-pick-qty input {

      width: 100%;

      min-height: 42px;

      border: 1px solid rgba(109,124,158,.12);

      border-radius: 14px;

      background: rgba(255,255,255,.78);

      padding: 0 10px;

      color: var(--text);

      font-size: 16px;

      font-weight: 700;

      outline: none;

    }



    .route-inputs {

      display: grid;

      gap: 6px;

      margin-top: 10px;

      padding-top: 9px;

      border-top: 1px solid rgba(109,124,158,.10);

    }



    .route-inputs > b {

      font-size: 11px;

      color: var(--muted);

    }



    .route-input-row {

      display: flex;

      justify-content: space-between;

      gap: 10px;

      font-size: 11px;

      font-weight: 600;

      line-height: 1.3;

    }



    .route-input-row span:last-child {

      flex: 0 0 auto;

      color: var(--accent-dark);

      font-weight: 700;

    }



    .report-row input,

    .report-row select,

    .report-row textarea {

      width: 100%;

      min-height: 42px;

      border: 1px solid rgba(109,124,158,.12);

      border-radius: 14px;

      background: rgba(255,255,255,.78);

      padding: 0 10px;

      color: var(--text);

      font-size: 16px;

      font-weight: 700;

      outline: none;

    }



    .cutting-input-row {

      display: grid;

      grid-template-columns: minmax(0, 1fr);

      gap: 11px;

      align-items: stretch;

      padding: 13px;

    }



    .cutting-input-row b {

      display: block;

      font-size: 15px;

      line-height: 1.22;

      overflow-wrap: anywhere;

    }



    .cutting-input-row span {

      display: block;

      margin-top: 4px;

      color: var(--muted);

      font-size: 12px;

      line-height: 1.3;

    }



    .cutting-input-row input {

      width: 100%;

      min-height: 44px;

      border: 1px solid rgba(109,124,158,.12);

      border-radius: 14px;

      background: rgba(255,255,255,.78);

      padding: 0 12px;

      color: var(--text);

      font-size: 16px;

      font-weight: 700;

      outline: none;

    }



    .cutting-input-row input:focus {

      border-color: rgba(25,89,243,.48);

      box-shadow: 0 0 0 3px rgba(25,89,243,.12);

    }



    .cutting-formation-row {

      display: grid;

      grid-template-columns: minmax(150px, 1.25fr) minmax(90px, .55fr) minmax(90px, .55fr) minmax(170px, 1fr);

      gap: 10px;

      align-items: end;

      padding: 13px;

    }



    .cutting-formation-meta b,

    .cutting-formation-field label {

      display: block;

      font-size: 13px;

      line-height: 1.25;

    }



    .cutting-formation-meta span,

    .cutting-formation-field label {

      color: var(--muted);

    }



    .cutting-formation-meta span {

      display: block;

      margin-top: 5px;

      font-size: 12px;

    }



    .cutting-formation-field {

      display: grid;

      gap: 5px;

    }



    .cutting-formation-field input {

      width: 100%;

      min-height: 44px;

      border: 1px solid rgba(109,124,158,.16);

      border-radius: 12px;

      background: rgba(255,255,255,.9);

      padding: 0 10px;

      color: var(--text);

      font-size: 14px;

      font-weight: 700;

      outline: none;

    }



    .cutting-formation-field input:disabled {

      opacity: .55;

    }



    .cutting-formation-good {

      min-height: 44px;

      display: flex;

      align-items: center;

      padding: 0 11px;

      border-radius: 12px;

      background: rgba(34,197,94,.1);

      color: #16823d;

      font-size: 15px;

      font-weight: 800;

    }



    .arbitrary-operation-card {

      display: grid;

      gap: 12px;

      padding: 14px;

      border: 1px solid rgba(25,89,243,.16);

      border-radius: 18px;

      background: rgba(244,248,255,.78);

    }



    .arbitrary-operation-head {

      display: flex;

      align-items: flex-start;

      justify-content: space-between;

      gap: 12px;

    }



    .arbitrary-operation-head b {

      display: block;

      font-size: 15px;

      line-height: 1.25;

    }



    .arbitrary-operation-head span,

    .arbitrary-operation-help {

      color: var(--muted);

      font-size: 12px;

      line-height: 1.35;

    }



    .arbitrary-operation-grid {

      display: grid;

      grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, .8fr) minmax(0, .8fr) auto;

      gap: 8px;

      align-items: end;

    }



    .arbitrary-operation-grid label {

      display: grid;

      gap: 5px;

      color: var(--muted);

      font-size: 11px;

      font-weight: 700;

    }



    .arbitrary-operation-grid select,

    .arbitrary-operation-grid input {

      width: 100%;

      min-height: 42px;

      border: 1px solid rgba(109,124,158,.16);

      border-radius: 12px;

      background: rgba(255,255,255,.9);

      padding: 0 9px;

      color: var(--text);

      font-size: 14px;

      font-weight: 700;

      outline: none;

    }



    .arbitrary-operation-grid select:focus,

    .arbitrary-operation-grid input:focus {

      border-color: rgba(25,89,243,.48);

      box-shadow: 0 0 0 3px rgba(25,89,243,.12);

    }



    .arbitrary-operation-remove {

      min-height: 42px;

      padding: 0 11px;

      white-space: nowrap;

    }



    @media (max-width: 680px) {

      .cutting-formation-row {

        grid-template-columns: repeat(2, minmax(0, 1fr));

      }



      .cutting-formation-meta,

      .cutting-formation-comment {

        grid-column: 1 / -1;

      }



      .arbitrary-operation-grid {

        grid-template-columns: repeat(2, minmax(0, 1fr));

      }



      .arbitrary-operation-grid .arbitrary-operation-remove {

        width: 100%;

      }

    }



    .stock-pick-qty input:focus {

      border-color: rgba(25,89,243,.48);

      box-shadow: 0 0 0 3px rgba(25,89,243,.12);

    }



    .report-row {

      display: grid;

      grid-template-columns: minmax(0, 1fr) auto;

      gap: 10px;

      align-items: center;

      padding: 12px 13px;

    }



    .report-row b {

      display: block;

      font-size: 13px;

      line-height: 1.22;

    }



    .report-row span {

      display: block;

      margin-top: 4px;

      color: var(--muted);

      font-size: 11px;

      line-height: 1.35;

    }



    .report-row-actions {

      display: flex;

      align-items: center;

      justify-content: flex-end;

      flex-wrap: wrap;

      gap: 7px;

      min-width: 130px;

    }



    .report-row-actions .small-button {

      margin-top: 0;

      padding: 8px 10px;

      border-radius: 11px;

      font-size: 11px;

    }



    .report-row-actions .status-chip,

    .report-row-actions .muted {

      margin-top: 0;

    }



    .size-marker-card {

      overflow: hidden;

      padding: 0;

    }



    .size-marker-task-list {

      grid-template-columns: minmax(0, 1fr) !important;

    }



    .size-marker-card-head {

      display: grid;

      grid-template-columns: minmax(0, 1fr) auto;

      gap: 16px;

      align-items: center;

      padding: 18px;

    }



    .size-marker-card-head b {

      display: block;

      font-size: 16px;

      line-height: 1.3;

    }



    .size-marker-card-head > div:first-child > span {

      display: block;

      margin-top: 5px;

      color: var(--muted);

      font-size: 12px;

      line-height: 1.4;

    }



    .size-marker-size-list {

      display: grid;

      border-top: 1px solid rgba(109,124,158,.12);

      background: rgba(247,249,255,.54);

    }



    .size-marker-size-row {

      display: grid;

      grid-template-columns: minmax(76px, .7fr) minmax(92px, 1fr) minmax(86px, 1fr) minmax(130px, 1.2fr) auto;

      gap: 14px;

      align-items: end;

      padding: 12px 18px;

    }



    .size-marker-size-row + .size-marker-size-row {

      border-top: 1px solid rgba(109,124,158,.1);

    }



    .size-marker-size-row span,

    .size-marker-progress-field span {

      display: block;

      margin: 0 0 5px;

      color: var(--muted);

      font-size: 10px;

      font-weight: 700;

      letter-spacing: .02em;

    }



    .size-marker-size-row strong {

      display: block;

      min-height: 44px;

      padding: 12px 0 0;

      color: var(--text);

      font-size: 14px;

      line-height: 1.25;

    }



    .size-marker-size strong {

      color: var(--accent-dark);

      font-size: 16px;

    }



    .size-marker-progress-field {

      display: block;

      margin: 0;

    }



    .size-marker-progress-field input {

      width: 100%;

      min-width: 112px;

      max-width: none !important;

      min-height: 44px;

      margin: 0;

      border: 1px solid rgba(109,124,158,.2);

      border-radius: 10px;

      background: rgba(255,255,255,.9);

      padding: 0 11px;

      color: var(--text);

      font: inherit;

      font-weight: 800;

    }



    .size-marker-size-row .small-button {

      min-width: 112px;

      min-height: 44px;

      margin: 0;

    }



    @media (max-width: 680px) {

      .size-marker-card-head {

        grid-template-columns: 1fr;

      }



      .size-marker-card-head .report-row-actions {

        justify-content: flex-start;

      }



      .size-marker-size-row {

        grid-template-columns: repeat(3, minmax(0, 1fr));

        gap: 10px;

        align-items: end;

        padding: 14px;

      }



      .size-marker-progress-field {

        grid-column: span 2;

      }



      .size-marker-size-row .small-button {

        width: 100%;

        min-width: 0;

      }

    }



    .select-row {

      display: grid;

      grid-template-columns: 42px minmax(0, 1fr) auto;

      gap: 10px;

      align-items: center;

    }



    .select-row b {

      display: block;

      font-size: 13px;

    }



    .select-row span {

      display: block;

      margin-top: 4px;

      color: var(--muted);

      font-size: 11px;

    }



    .detail-grid {

      display: grid;

      grid-template-columns: repeat(2, 1fr);

      gap: 8px;

      margin-top: 11px;

    }



    .detail-box {

      border-radius: 15px;

      background: rgba(255,255,255,.48);

      padding: 10px;

    }



    .detail-box span {

      display: block;

      color: var(--muted);

      font-size: 10px;

      font-weight: 700;

      text-transform: uppercase;

      letter-spacing: 0;

    }



    .detail-box strong {

      display: block;

      margin-top: 5px;

      font-size: 13px;

    }



    .order-card {

      padding: 9px 10px;

    }



    .order-card.selected {

      border-color: rgba(25,89,243,.44);

      box-shadow: 0 12px 28px rgba(25,89,243,.12), var(--inset-shadow);

    }



    .order-card .order-head {

      padding: 4px 2px;

    }



    .route-order-head {

      grid-template-columns: 44px minmax(0, 1fr);

      align-items: start;

    }



    .route-order-head > .status-chip {

      grid-column: 2;

      justify-self: start;

      margin-top: 0;

    }



    .route-assignee {

      display: inline-block;

      margin-top: 5px;

      color: var(--accent-dark);

      font-size: 11px;

      font-weight: 700;

    }



    .order-foot {

      display: flex;

      justify-content: space-between;

      align-items: center;

      gap: 10px;

      margin-top: 8px;

      color: var(--muted);

      font-size: 12px;

      font-weight: 600;

    }



    .order-foot strong {

      color: var(--text);

      font-size: 14px;

      line-height: 1.2;

    }



    .order-card-actions {

      display: flex;

      justify-content: flex-end;

      margin-top: 7px;

    }



    .order-delete-button {

      min-height: 30px;

      border: 1px solid rgba(221,79,93,.28);

      border-radius: 11px;

      padding: 6px 11px;

      color: var(--danger);

      background: rgba(221,79,93,.10);

      font-size: 11px;

      font-weight: 700;

    }



    .order-delete-button:hover {

      color: white;

      background: var(--danger);

    }



    .order-detail {

      padding: 14px;

      background: linear-gradient(135deg, rgba(25,89,243,.12), rgba(49,168,107,.10));

    }



    .task-completion-card {

      padding: 13px;

      margin-top: 10px;

    }



    .task-completion-head {

      display: flex;

      justify-content: space-between;

      align-items: center;

      gap: 10px;

      margin-bottom: 11px;

    }



    .task-completion-head b {

      min-width: 0;

      font-size: 14px;

      line-height: 1.25;

      overflow-wrap: anywhere;

    }



    .task-action-grid {

      display: grid;

      grid-template-columns: repeat(2, minmax(0, 1fr));

      gap: 8px;

      margin-top: 10px;

    }



    .task-action-grid .small-button {

      min-height: 40px;

    }



    .task-note {

      margin-top: 9px;

      padding: 9px 10px;

      border-left: 3px solid var(--accent);

      background: rgba(25,89,243,.08);

      color: var(--muted);

      font-size: 11px;

      font-weight: 600;

      line-height: 1.35;

    }



    .trace-code {

      display: inline-flex;

      margin-top: 7px;

      color: var(--accent-dark);

      font-size: 10.5px;

      font-weight: 700;

    }



    .passport-timeline {

      display: grid;

      gap: 0;

    }



    .passport-event {

      position: relative;

      display: grid;

      grid-template-columns: 18px minmax(0, 1fr);

      gap: 9px;

      padding: 0 0 14px;

    }



    .passport-event::before {

      content: "";

      position: absolute;

      left: 7px;

      top: 14px;

      bottom: 0;

      width: 2px;

      background: rgba(25,89,243,.18);

    }



    .passport-event:last-child::before {

      display: none;

    }



    .passport-dot {

      position: relative;

      z-index: 1;

      width: 16px;

      height: 16px;

      border: 4px solid rgba(25,89,243,.18);

      border-radius: 50%;

      background: var(--accent);

    }



    .passport-event b,

    .passport-event span {

      display: block;

      overflow-wrap: anywhere;

    }



    .passport-event b {

      font-size: 12px;

      line-height: 1.25;

    }



    .passport-event span {

      margin-top: 3px;

      color: var(--muted);

      font-size: 10.5px;

      line-height: 1.35;

    }



    .party-qr {

      display: block;

      width: min(190px, 70vw);

      aspect-ratio: 1;

      margin: 10px auto;

      border: 8px solid white;

      background: white;

    }



    .scan-row {

      display: flex;

      justify-content: flex-end;

      margin: -4px 0 10px;

    }



    .scan-row .small-button {

      width: auto;

      padding-inline: 14px;

    }



    .chart-card {

      padding: 14px;

    }



    .chart-top {

      display: flex;

      justify-content: space-between;

      align-items: flex-start;

      margin-bottom: 8px;

    }



    .chart-top b {

      display: block;

      font-size: 14px;

    }



    .chart-top strong {

      display: block;

      font-size: 27px;

      letter-spacing: 0;

      margin-top: 6px;

    }



    .chart-top small {

      color: var(--muted);

      font-size: 11px;

    }



    .ring {

      --p: 72;

      width: 68px;

      height: 68px;

      border-radius: 50%;

      background: conic-gradient(var(--accent) calc(var(--p)*1%), rgba(25,89,243,.13) 0);

      display: grid;

      place-items: center;

      position: relative;

      flex: 0 0 auto;

    }



    .ring::before {

      content: "";

      position: absolute;

      inset: 8px;

      border-radius: 50%;

      background: var(--cream);

      box-shadow: inset 0 1px 2px rgba(16,23,34,.08);

    }



    .ring strong {

      position: relative;

      z-index: 1;

      font-size: 15px;

      letter-spacing: 0;

    }



    .chart {

      width: 100%;

      height: 150px;

    }



    .mini-metrics {

      display: grid;

      grid-template-columns: repeat(3, 1fr);

      gap: 8px;

      margin-top: 10px;

    }



    .mini-metric {

      padding: 10px 8px;

      text-align: center;

    }



    .mini-metric .ring {

      width: 52px;

      height: 52px;

      margin: 0 auto 8px;

    }



    .mini-metric .ring::before {

      inset: 7px;

    }



    .mini-metric .ring strong {

      font-size: 12px;

    }



    .mini-metric b {

      display: block;

      font-size: 11px;

    }



    .mini-metric span {

      display: block;

      margin-top: 3px;

      color: var(--muted);

      font-size: 9.5px;

    }



    .empty {

      margin: 0;

      color: var(--muted);

      font-size: 13px;

      line-height: 1.4;

      padding: 13px;

    }



    .toast {

      position: fixed;

      z-index: 50;

      left: 50%;

      bottom: calc(142px + env(safe-area-inset-bottom));

      transform: translate(-50%, 26px);

      opacity: 0;

      min-width: min(360px, calc(100% - 32px));

      border: 1px solid rgba(255,255,255,.42);

      border-radius: 20px;

      background: rgba(18,24,43,.88);

      color: white;

      padding: 14px 16px;

      box-shadow: 0 20px 60px rgba(0,0,0,.24);

      backdrop-filter: blur(20px);

      transition: .24s ease;

      pointer-events: none;

    }



    .toast.show {

      transform: translate(-50%, 0);

      opacity: 1;

    }



    .toast b {

      display: block;

      font-size: 13px;

      margin-bottom: 3px;

    }



    .toast span {

      color: rgba(255,255,255,.72);

      font-size: 12px;

    }



    .shift-reminder {

      position: fixed;

      z-index: 140;

      inset: 0;

      display: grid;

      place-items: center;

      padding: 22px;

      background: rgba(14, 20, 37, .58);

      backdrop-filter: blur(12px);

    }



    .shift-reminder[hidden] {

      display: none;

    }



    .shift-reminder-card {
      max-height: calc(100dvh - 44px);
      overflow-y: auto;

      width: min(430px, 100%);

      display: grid;

      gap: 15px;

      padding: 24px;

      border: 1px solid rgba(25,89,243,.2);

      border-radius: 24px;

      background: #fff;

      box-shadow: 0 24px 70px rgba(11, 29, 71, .28);

      text-align: center;

    }



    .shift-reminder-icon {

      width: 58px;

      height: 58px;

      display: grid;

      place-items: center;

      margin: 0 auto;

      border-radius: 18px;

      background: rgba(25,89,243,.11);

      color: var(--accent);

      font-size: 28px;

    }



    .shift-reminder-card h2 { margin: 0; font-size: 23px; }

    .shift-reminder-card p { margin: 0; color: var(--muted); line-height: 1.55; }



    .qr-scanner {

      position: fixed;

      z-index: 100;

      inset: 0;

      display: grid;

      place-items: center;

      padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));

      background: #181513;

      color: white;

    }



    .qr-scanner-shell {

      position: relative;

      width: min(560px, 100%);

      height: min(760px, 100%);

      overflow: hidden;

      border-radius: 18px;

      background: #090807;

    }



    .qr-scanner video {

      display: block;

      width: 100%;

      height: 100%;

      min-width: 100%;

      min-height: 100%;

      object-fit: cover;

      background: #090807;

    }



    .qr-scanner-head,

    .qr-scanner-actions {

      position: absolute;

      z-index: 2;

      left: 14px;

      right: 14px;

      display: flex;

      align-items: center;

      gap: 10px;

    }



    .qr-scanner-head {

      top: 14px;

      justify-content: space-between;

      font-size: 15px;

      font-weight: 700;

    }



    .qr-scanner-actions {

      bottom: 14px;

      justify-content: center;

    }



    .qr-scanner-status {

      position: absolute;

      z-index: 2;

      left: 18px;

      right: 18px;

      bottom: 72px;

      padding: 9px 12px;

      border-radius: 12px;

      background: rgba(0,0,0,.58);

      color: rgba(255,255,255,.92);

      font-size: 12px;

      font-weight: 700;

      text-align: center;

    }



    .qr-scanner .small-button {

      min-height: 44px;

      background: rgba(255,255,255,.92);

      color: #101722;

    }



    .qr-scanner-close {

      width: 44px;

      height: 44px;

      border: none;

      border-radius: 50%;

      background: rgba(255,255,255,.92);

      color: #101722;

      font-size: 26px;

      line-height: 1;

    }



    .qr-scanner-frame {

      position: absolute;

      z-index: 1;

      width: min(64vw, 280px);

      aspect-ratio: 1;

      left: 50%;

      top: 50%;

      transform: translate(-50%, -50%);

      border: 3px solid rgba(255,255,255,.9);

      border-radius: 16px;

      box-shadow: 0 0 0 999px rgba(0,0,0,.28);

      pointer-events: none;

    }



    .main-button {

      position: fixed;

      z-index: 6;

      left: 16px;

      right: 16px;

      bottom: calc(88px + env(safe-area-inset-bottom));

      border: none;

      border-radius: 18px;

      padding: 15px 16px;

      color: white;

      background: linear-gradient(135deg, var(--accent), #1959f3);

      font-size: 15px;

      font-weight: 700;

      box-shadow: 0 18px 36px rgba(25,89,243,.30);

    }



    .main-button:disabled {

      opacity: .48;

      box-shadow: none;

    }



    .bottom-nav {

      position: fixed;

      z-index: 5;

      left: 0;

      right: 0;

      bottom: 0;

      padding: 9px 12px calc(12px + env(safe-area-inset-bottom));

      background: rgba(255,255,255,.88);

      border-top: 1px solid rgba(109,124,158,.11);

      backdrop-filter: blur(18px);

      display: grid;

      grid-template-columns: repeat(var(--nav-count, 5), minmax(0, 1fr));

      gap: 2px;

    }



    body.keyboard-open .main-button,

    body.keyboard-open .bottom-nav {

      display: none;

    }



    body.keyboard-open .app {

      padding-bottom: calc(24px + env(safe-area-inset-bottom));

    }



    .nav-btn {

      min-width: 0;

      border: none;

      background: transparent;

      color: var(--muted);

      border-radius: 16px;

      padding: 8px 3px 6px;

      display: grid;

      gap: 4px;

      place-items: center;

      font-size: 10px;

      line-height: 1.05;

      font-weight: 600;

    }



    .nav-btn span:last-child {

      max-width: 100%;

      overflow-wrap: anywhere;

      word-break: break-word;

      text-align: center;

    }



    .nav-ico {

      width: 24px;

      height: 24px;

      border-radius: 10px;

      display: grid;

      place-items: center;

      font-size: 14px;

    }



    .nav-btn.active {

      color: var(--accent-dark);

    }



    .nav-btn.active .nav-ico {

      background: rgba(25,89,243,.12);

    }



    .nav-btn:hover {

      color: var(--accent-dark);

    }



    .nav-btn:hover .nav-ico {

      background: rgba(25,89,243,.10);

    }



    @media (min-width: 680px) {

      .app {

        width: min(430px, 100%);

        min-height: 880px;

        margin: 22px auto;

        border-radius: 38px;

        box-shadow: var(--shadow);

      }



      .main-button,

      .bottom-nav {

        left: 50%;

        width: min(430px, 100%);

        transform: translateX(-50%);

      }



      .stock-pick-row {

        grid-template-columns: 24px minmax(0, 1fr);

      }



      .stock-pick-qty {

        grid-column: 2;

      }



      .toast {

        bottom: 104px;

      }



      body.web-mode .app {

        width: min(760px, calc(100% - 32px));

      }



      body.web-mode .main-button,

      body.web-mode .bottom-nav {

        width: min(760px, calc(100% - 32px));

      }



      body.web-mode .login-shell {

        width: min(100%, 460px);

      }

    }



    body.web-mode .app {

      padding-bottom: calc(92px + env(safe-area-inset-bottom));

    }



    body.web-mode .main-button {

      position: static;

      inset: auto;

      width: 100%;

      transform: none;

      margin: 18px 0 4px;

    }



    /* Restored legacy blue-glass visual system. Structure and behavior stay current. */

    .login-brand img {

      border: 1px solid rgba(255,255,255,.78);

      border-radius: 8px;

      box-shadow: var(--blue-shadow), var(--inset-shadow);

    }



    .login-brand h1,

    .app-title,

    .screen-head h2,

    .section-title b {

      color: #101722;

    }



    .auth-tabs,

    .tabs {

      border-color: rgba(255,255,255,.82);

      border-radius: 8px;

      background: rgba(255,255,255,.72);

      box-shadow: var(--shadow-soft), var(--inset-shadow);

      backdrop-filter: blur(24px);

    }



    .auth-tab,

    .tab,

    .segment-button {

      border-radius: 8px;

    }



    .auth-tab.active,

    .tab.active,

    .segment-button.active {

      background: linear-gradient(135deg, #1959f3, var(--accent-dark));

      box-shadow: var(--blue-shadow);

    }



    .login-card,

    .card {

      border-color: rgba(255,255,255,.78);

      border-radius: 8px;

      background:

        linear-gradient(145deg, rgba(255,255,255,.88), rgba(234,239,255,.62)),

        rgba(255,255,255,.74);

      box-shadow: var(--shadow-soft), var(--inset-shadow);

      backdrop-filter: blur(24px);

    }



    .login-card input,

    .field input,

    .field select,

    .field textarea,

    .report-row input,

    .report-row select,

    .report-row textarea,

    .cutting-input-row input,

    .stock-pick-qty input {

      border-color: rgba(129,143,178,.24);

      border-radius: 8px;

      background: rgba(255,255,255,.72);

      box-shadow: var(--inset-shadow);

    }



    .login-submit,

    .small-button,

    .main-button {

      border-radius: 8px;

      background: linear-gradient(135deg, #1959f3, var(--accent-dark));

      box-shadow: var(--blue-shadow);

    }



    .small-button.secondary {

      color: #101722;

      border: 1px solid rgba(255,255,255,.76);

      background: rgba(255,255,255,.64);

      box-shadow: var(--inset-shadow);

    }



    .small-button.danger,

    .order-delete-button:hover {

      background: linear-gradient(135deg, #f16f78, var(--danger));

      box-shadow: 0 12px 24px rgba(221,79,93,.22);

    }



    .status-chip.warn {

      color: #925800;

      border-color: rgba(242,162,58,.28);

      background: rgba(242,162,58,.14);

    }



    .appbar {

      margin-bottom: 8px;

      padding: 4px 2px 12px;

    }



    .icon-btn,

    .employee-detail-back {

      border: 1px solid rgba(255,255,255,.78);

      border-radius: 8px;

      color: #101722;

      background: rgba(255,255,255,.66);

      box-shadow: var(--shadow-soft), var(--inset-shadow);

      backdrop-filter: blur(18px);

    }



    .app-title {

      font-size: 22px;

      font-weight: 700;

    }



    .app-title small {

      font-size: 11px;

    }



    .screen-head h2 {

      font-size: 24px;

    }



    .date,

    .kpi-ico,

    .op-icon,

    .detail-box,

    .choice-chip,

    .stock-pick-row,

    .order-delete-button,

    .task-note,

    .toast,

    .qr-scanner-shell,

    .qr-scanner-frame {

      border-radius: 8px;

    }



    .kpi-ico,

    .op-icon {

      color: var(--accent-dark);

      background: rgba(25,89,243,.13);

    }



    .kpi.good .kpi-ico {

      color: var(--sage-dark);

      background: rgba(49,168,107,.14);

    }



    .progress {

      background: rgba(109,124,158,.16);

    }



    .progress i {

      background: linear-gradient(90deg, #1959f3, var(--accent-dark));

    }



    .detail-box,

    .stock-pick-row,

    .choice-chip {

      border-color: rgba(255,255,255,.78);

      background: rgba(255,255,255,.62);

      box-shadow: var(--inset-shadow);

    }



    .order-detail {

      background: linear-gradient(135deg, rgba(25,89,243,.12), rgba(49,168,107,.10));

    }



    .ring {

      background: conic-gradient(var(--accent) calc(var(--p)*1%), rgba(25,89,243,.13) 0);

    }



    .ring::before {

      background: rgba(247,248,250,.96);

    }



    .main-button {

      box-shadow: 0 18px 36px rgba(25,89,243,.30);

    }



    .bottom-nav {

      border-color: rgba(109,124,158,.18);

      background: rgba(255,255,255,.82);

      box-shadow: 0 -10px 28px rgba(16,23,34,.10);

      backdrop-filter: blur(24px);

    }



    .nav-btn {

      border-radius: 8px;

    }



    .nav-btn.active {

      color: var(--accent-dark);

    }



    .nav-btn.active .nav-ico {

      color: #fff;

      border-radius: 8px;

      background: linear-gradient(135deg, #1959f3, var(--accent-dark));

      box-shadow: 0 8px 18px rgba(25,89,243,.22);

    }



    @media (min-width: 680px) {

      .app {

        border: 1px solid rgba(255,255,255,.78);

        border-radius: 8px;

        background: rgba(247,248,250,.58);

        box-shadow: var(--shadow);

        backdrop-filter: blur(24px);

      }

    }



    @media (min-width: 1024px) {

      body.web-mode .app {

        width: min(1280px, calc(100% - 40px));

        min-height: calc(100vh - 44px);

        margin: 22px auto;

        padding-bottom: 28px;

      }



      body.web-mode .body {

        min-height: calc(100vh - 150px);

        padding-right: 30px;

        padding-left: 252px;

      }



      body.web-mode .bottom-nav {

        top: 112px;

        bottom: auto;

        left: max(34px, calc(50% - 616px));

        right: auto;

        width: 210px;

        padding: 10px;

        transform: none;

        grid-template-columns: 1fr;

        gap: 5px;

        border: 1px solid rgba(109,124,158,.16);

        border-radius: 14px;

        box-shadow: 0 18px 44px rgba(16,23,34,.12);

      }



      body.web-mode .nav-btn {

        grid-template-columns: 38px minmax(0,1fr);

        grid-template-rows: 1fr;

        justify-items: start;

        gap: 8px;

        padding: 9px 10px;

        font-size: 13px;

        line-height: 1.2;

      }



      body.web-mode .nav-btn span:last-child {

        text-align: left;

      }



      body.web-mode .nav-ico {

        width: 34px;

        height: 34px;

      }



      body.web-mode .toast {

        right: 28px;

        bottom: 28px;

        left: auto;

        width: min(430px, calc(100% - 56px));

        transform: none;

      }

    }



    /* Final brand overrides: the lockup stays visible above every app screen. */

    .brand-lockup {

      display: inline-flex;

      align-items: center;

      justify-content: center;

      gap: 12px;

      min-width: 0;

    }



    .brand-lockup .brand-mark {

      display: block;

      flex: 0 0 auto;

      margin: 0;

      border: 0;

      border-radius: 0;

      object-fit: contain;

      box-shadow: none;

    }



    .brand-wordmark {

      display: grid;

      min-width: 0;

      margin: 0;

      color: var(--text);

      font-weight: 700;

      line-height: .84;

      letter-spacing: -.035em;

      text-align: left;

    }



    .brand-wordmark-primary {

      color: var(--accent);

    }



    .brand-wordmark-secondary {

      color: var(--text);

    }



    .login-brand-lockup .brand-mark {

      width: 88px;

      height: 88px;

    }



    .login-brand-lockup .brand-wordmark {

      font-size: 35px;

    }



    .login-brand p {

      margin-top: 15px;

      color: var(--muted);

    }



    .app-title {

      display: grid;

      justify-items: center;

      min-width: 0;

    }



    .app-brand-lockup {

      gap: 7px;

      max-width: 100%;

    }



    .app-brand-lockup .brand-mark {

      width: 34px;

      height: 34px;

    }



    .app-brand-lockup .brand-wordmark {

      font-size: 15px;

      line-height: .82;

      letter-spacing: -.025em;

    }



    .app-title small {

      margin-top: 5px;

      color: var(--muted);

    }



    .login-brand h1,

    .app-title,

    .screen-head h2,

    .section-title b {

      color: var(--text);

    }



    .auth-tab.active,

    .tab.active,

    .segment-button.active,

    .login-submit,

    .small-button,

    .main-button,

    .nav-btn.active .nav-ico {

      background: linear-gradient(135deg, var(--accent), var(--accent-dark));

    }



    .kpi-ico,

    .op-icon {

      color: var(--accent-dark);

      background: rgba(25,89,243,.12);

    }



    .progress i {

      background: linear-gradient(90deg, var(--accent), var(--accent-dark));

    }



    .ring {

      background: conic-gradient(var(--accent) calc(var(--p)*1%), rgba(25,89,243,.12) 0);

    }



    .ring::before {

      background: rgba(247,248,250,.96);

    }



    @media (max-height: 760px) {

      .login-brand-lockup .brand-mark {

        width: 68px;

        height: 68px;

      }



      .login-brand-lockup .brand-wordmark {

        font-size: 29px;

      }



      .login-brand p {

        margin-top: 10px;

      }

    }

    /* Full desktop application workspace.  The mobile-first shell remains

       untouched below 900px; desktop uses the entire browser canvas. */

    @media (min-width: 900px) {

      html, body { min-height: 100%; }



      body.web-mode {

        min-width: 0;

        background:

          radial-gradient(circle at 88% 6%, rgba(23,81,226,.14), transparent 28%),

          radial-gradient(circle at 8% 96%, rgba(62,165,128,.12), transparent 30%),

          #edf2f8;

      }



      body.web-mode .app {

        width: calc(100vw - 32px) !important;

        max-width: none !important;

        min-height: calc(100vh - 32px);

        margin: 16px !important;

        border-radius: 18px;

        overflow: visible;

        box-shadow: 0 18px 56px rgba(26,40,68,.14);

      }



      body.web-mode .appbar {

        min-height: 88px;

        padding: 16px 38px 16px 286px !important;

        display: grid;

        grid-template-columns: minmax(0, 1fr) auto;

        align-items: center;

        background: rgba(255,255,255,.82);

        border-bottom: 1px solid rgba(110,126,158,.16);

        backdrop-filter: blur(20px);

      }



      body.web-mode .body {

        box-sizing: border-box;

        width: 100% !important;

        max-width: none !important;

        min-height: calc(100vh - 120px);

        padding: 34px 40px 64px 286px !important;

      }



      body.web-mode .body > * {

        width: 100%;

        max-width: none !important;

      }



      body.web-mode .bottom-nav {

        position: fixed;

        inset: 116px auto 40px 32px;

        width: 220px;

        height: auto;

        padding: 14px;

        display: flex;

        flex-direction: column;

        justify-content: flex-start;

        gap: 8px;

        border: 1px solid rgba(120,137,169,.16);

        border-radius: 16px;

        background: rgba(255,255,255,.88);

        box-shadow: 0 14px 36px rgba(38,56,85,.12);

        backdrop-filter: blur(18px);

      }



      body.web-mode .nav-item,

      body.web-mode .bottom-nav button {

        width: 100%;

        min-height: 48px;

        padding: 0 14px;

        display: flex;

        justify-content: flex-start;

        gap: 12px;

        border-radius: 11px;

        text-align: left;

      }



      body.web-mode .screen-head {

        min-height: 74px;

        margin-bottom: 22px;

        display: grid;

        grid-template-columns: minmax(0, 1fr) auto;

        align-items: end;

        column-gap: 28px;

      }



      body.web-mode .screen-head h1,

      body.web-mode .screen-head h2 {

        font-size: clamp(28px, 2vw, 38px);

        letter-spacing: -.035em;

      }



      body.web-mode .tabs {

        display: grid;

        grid-template-columns: repeat(var(--tab-count, 3), minmax(160px, 1fr));

        width: min(760px, 100%);

        margin: 0 0 24px;

        padding: 5px;

        gap: 6px;

        border-radius: 14px;

      }



      body.web-mode .kpi-grid {

        grid-template-columns: repeat(4, minmax(0, 1fr));

        gap: 18px;

        margin-bottom: 22px;

      }



      body.web-mode .form-grid {

        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 18px 22px;

      }



      body.web-mode .card,

      body.web-mode .report-row,

      body.web-mode .op-list > *,

      body.web-mode .list-item {

        max-width: none !important;

        border-radius: 14px;

      }



      body.web-mode .op-list {

        display: grid;

        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 14px;

      }



      body.web-mode .main-button,

      body.web-mode #webActionSlot .main-button {

        width: auto;

        min-width: 280px;

        min-height: 52px;

      }



      body.web-mode #webActionSlot {

        position: sticky;

        bottom: 20px;

        display: flex;

        justify-content: flex-end;

        margin-top: 28px;

        z-index: 5;

      }

    }

    /* Desktop composition pass: establish hierarchy and comfortable reading

       widths instead of stretching mobile forms across the entire monitor. */

    @media (min-width: 900px) {

      body.web-mode .app {

        width: calc(100vw - 48px) !important;

        min-height: calc(100vh - 48px);

        margin: 24px !important;

        border-radius: 20px;

      }



      body.web-mode .appbar {

        min-height: 84px;

        padding: 0 42px 0 300px !important;

        display: flex !important;

        align-items: center;

        justify-content: space-between;

        gap: 18px;

      }



      body.web-mode .appbar > button {

        position: static !important;

        flex: 0 0 auto;

      }



      body.web-mode .app-title,

      body.web-mode .app-brand-lockup {

        position: static !important;

        margin: 0 !important;

        display: flex !important;

        align-items: center;

        justify-content: flex-start !important;

        text-align: left !important;

      }



      body.web-mode .app-title {

        flex: 1 1 auto;

        order: -1;

      }



      body.web-mode .body {

        min-height: 0;

        padding: 38px 54px 72px 300px !important;

      }



      body.web-mode .body > * {

        max-width: 1480px !important;

        margin-left: auto;

        margin-right: auto;

      }



      body.web-mode .bottom-nav {

        inset: 126px auto 48px 48px;

        width: 224px;

        padding: 12px;

      }



      body.web-mode .bottom-nav::before {

        content: "РАБОЧЕЕ ПРОСТРАНСТВО";

        display: block;

        padding: 10px 12px 8px;

        color: #71809a;

        font-size: 10px;

        font-weight: 600;

        letter-spacing: .11em;

      }



      body.web-mode .nav-item,

      body.web-mode .bottom-nav button {

        min-height: 46px;

        padding: 0 13px;

        font-size: 14px;

      }



      body.web-mode .screen-head {

        max-width: 1480px !important;

        min-height: auto;

        margin: 4px auto 24px;

        padding-bottom: 18px;

        border-bottom: 1px solid rgba(111,128,159,.16);

      }



      body.web-mode .screen-head h1,

      body.web-mode .screen-head h2 {

        margin: 0;

        font-size: clamp(30px, 2.1vw, 38px);

      }



      body.web-mode .card,

      body.web-mode .report-row {

        box-shadow: 0 9px 26px rgba(33,52,84,.07);

      }



      body.web-mode .body form {

        max-width: 1080px;

        margin-left: 0;

      }



      body.web-mode .body input,

      body.web-mode .body select,

      body.web-mode .body textarea {

        max-width: 760px;

      }



      body.web-mode .form-grid input,

      body.web-mode .form-grid select,

      body.web-mode .form-grid textarea {

        max-width: none;

      }



      body.web-mode .main-button,

      body.web-mode #webActionSlot .main-button {

        min-width: 240px;

      }



      body.web-mode #webActionSlot {

        max-width: 1480px !important;

        margin: 26px auto 0;

      }

    }

    /* Desktop header: compact, legible, and visually connected to the

       workspace rather than a large empty banner. */

    @media (min-width: 900px) {

      body.web-mode .appbar {

        min-height: 74px;

        padding: 0 34px 0 292px !important;

        display: grid !important;

        grid-template-columns: minmax(280px, 1fr) auto;

        align-items: center;

        gap: 22px;

        background: rgba(255,255,255,.94);

        box-shadow: 0 1px 0 rgba(111,128,159,.15);

      }



      body.web-mode .app-title {

        min-width: 0;

        display: flex !important;

        align-items: center;

        justify-content: flex-start !important;

        gap: 18px;

      }



      body.web-mode .app-brand-lockup {

        min-height: 44px;

        display: flex !important;

        align-items: center;

        justify-content: flex-start !important;

        gap: 10px;

      }



      body.web-mode .app-brand-lockup img,

      body.web-mode .app-title img {

        max-height: 34px;

        width: auto;

      }



      body.web-mode .app-title::after {

        content: "ОПЕРАЦИОННЫЙ ЦЕНТР";

        padding-left: 18px;

        border-left: 1px solid rgba(111,128,159,.2);

        color: #74829a;

        font-size: 11px;

        font-weight: 600;

        letter-spacing: .1em;

        white-space: nowrap;

      }



      body.web-mode .appbar > button {

        width: 38px;

        height: 38px;

        min-height: 38px;

        padding: 0;

        border: 1px solid rgba(111,128,159,.15);

        border-radius: 10px;

        box-shadow: 0 5px 14px rgba(27,47,78,.08);

      }



      body.web-mode .appbar > button + button {

        margin-left: 10px;

      }



      body.web-mode .bottom-nav {

        inset: 94px auto 32px 24px;

        width: 238px;

        padding: 14px 12px;

        border-radius: 14px;

        box-shadow: 0 12px 30px rgba(34,53,85,.1);

      }



      body.web-mode .bottom-nav::before {

        padding: 8px 12px 12px;

        color: #687995;

        font-size: 10px;

        letter-spacing: .12em;

      }



      body.web-mode .nav-item,

      body.web-mode .bottom-nav button {

        min-height: 44px;

        padding: 0 12px;

        border-radius: 10px;

      }



      body.web-mode .body {

        padding-top: 32px !important;

      }

    }



    /* Desktop product shell: global directions live in the header, while the

       side navigation stays focused on the production workspace. */

    .workspace-nav,

    .mobile-workspace-nav,

    .appbar-profile,

    .appbar-actions {

      display: none;

    }



    .mobile-workspace-nav {

      position: relative;

      z-index: 2;

      grid-template-columns: repeat(2, minmax(0, 1fr));

      gap: 4px;

      margin: 0 2px 14px;

      padding: 4px;

      border: 1px solid rgba(111,128,159,.13);

      border-radius: 14px;

      background: rgba(255,255,255,.74);

      box-shadow: var(--inset-shadow);

    }



    .mobile-workspace-nav button {

      min-width: 0;

      min-height: 44px;

      padding: 8px 6px;

      border: 0;

      border-radius: 10px;

      color: #526078;

      background: transparent;

      font: inherit;

      font-size: 11px;

      font-weight: 700;

      line-height: 1.15;

    }



    .mobile-workspace-nav button.active {

      color: #fff;

      background: linear-gradient(135deg, #2160f3, #1647c9);

      box-shadow: 0 8px 18px rgba(25,89,243,.22);

    }



    @media (min-width: 900px) {

      body.web-mode .appbar {

        min-height: 96px;

        padding: 0 34px !important;

        display: grid !important;

        grid-template-columns: 250px minmax(420px, 1fr) 164px auto;

        gap: 22px;

        background: rgba(255,255,255,.96);

        box-shadow: 0 1px 0 rgba(111,128,159,.16);

      }



      body.web-mode .app-title {

        display: block !important;

        min-width: 0;

      }



      body.web-mode .app-title::after {

        display: none;

      }



      body.web-mode .app-brand-lockup {

        min-height: 58px;

        gap: 13px;

      }



      body.web-mode .app-brand-lockup img,

      body.web-mode .app-title img {

        width: 46px;

        height: 46px;

        max-height: none;

      }



      body.web-mode .app-brand-lockup .brand-wordmark {

        font-size: 22px;

        line-height: .78;

        letter-spacing: -.04em;

      }



      body.web-mode .workspace-nav {

        display: grid;

        grid-template-columns: repeat(3, minmax(0, 1fr));

        align-items: center;

        gap: 4px;

        padding: 5px;

        border: 1px solid rgba(111,128,159,.13);

        border-radius: 12px;

        background: #f5f7fb;

      }



      body.web-mode .workspace-nav button {

        min-height: 46px;

        padding: 7px 10px;

        border: 0;

        border-radius: 8px;

        color: #526078;

        background: transparent;

        font: inherit;

        font-size: 11px;

        font-weight: 600;

        line-height: 1.15;

        text-align: center;

        white-space: normal;

      }



      body.web-mode .workspace-nav button.active {

        color: #fff;

        background: linear-gradient(135deg, #2160f3, #1647c9);

        box-shadow: 0 8px 18px rgba(25,89,243,.22);

      }



      body.web-mode .workspace-nav button:disabled {

        cursor: not-allowed;

        opacity: .46;

      }



      body.web-mode.has-wms-access .workspace-nav {

        grid-template-columns: repeat(4, minmax(0, 1fr));

      }



      body.web-mode .appbar-profile {

        display: grid;

        justify-items: end;

        gap: 3px;

        min-width: 0;

        padding-right: 4px;

        text-align: right;

      }



      body.web-mode .appbar-profile span {

        color: #526078;

        font-size: 10px;

        font-weight: 600;

        letter-spacing: .07em;

        text-transform: uppercase;

        white-space: nowrap;

      }



      body.web-mode .appbar-profile small {

        margin: 0 !important;

        color: #17243a;

        font-size: 14px;

        font-weight: 700;

        white-space: nowrap;

      }



      body.web-mode .appbar-actions {

        display: flex;

        align-items: center;

        gap: 8px;

      }



      body.web-mode .appbar-actions .icon-btn {

        width: 40px;

        height: 40px;

        min-height: 40px;

        padding: 0;

        border: 1px solid rgba(111,128,159,.15);

        border-radius: 10px;

        box-shadow: 0 5px 14px rgba(27,47,78,.08);

      }



      body.web-mode .bottom-nav {

        inset: 136px auto 32px 24px !important;

        width: 244px;

        padding: 16px 12px;

      }



      body.web-mode .bottom-nav::before {

        content: "УПРАВЛЕНИЕ ПРОИЗВОДСТВОМ";

        padding: 9px 12px 14px;

      }



      body.web-mode .body {

        min-height: calc(100vh - 170px);

        padding: 38px 52px 70px 312px !important;

      }

    }



    @media (min-width: 900px) and (max-width: 1260px) {

      body.web-mode .appbar {

        grid-template-columns: 205px minmax(340px, 1fr) 126px auto;

        gap: 14px;

        padding: 0 22px !important;

      }



      body.web-mode .app-brand-lockup .brand-wordmark {

        font-size: 18px;

      }



      body.web-mode .workspace-nav button {

        padding: 6px 5px;

        font-size: 9px;

      }

    }



    @media (max-width: 899px) {

      .appbar {

        grid-template-columns: minmax(0, 1fr) auto;

        gap: 10px;

      }



      .workspace-nav,

      .appbar-profile {

        display: none !important;

      }



      body.has-wms-access .mobile-workspace-nav {

        display: grid;

      }



      .appbar-actions {

        display: flex;

        gap: 8px;

      }



      .app-title {

        text-align: left;

      }

    }



    @media (min-width: 900px) {

      body.web-mode .bottom-nav .desktop-redundant {

        display: none;

      }



      body.web-mode.warehouse-workspace .bottom-nav::before {

        content: "УПРАВЛЕНИЕ СКЛАДОМ";

      }



      body.web-mode.warehouse-workspace .bottom-nav {

        border-color: rgba(25,89,243,.16);

      }



      /* UI v2 owns the desktop warehouse navigation. The old app sidebar is

         kept for the reversible flag and for the mobile bottom navigation. */

      body.web-mode.warehouse-workspace.warehouse-v2-enabled .bottom-nav {

        display: none !important;

      }



      body.web-mode.warehouse-workspace.warehouse-v2-enabled .body {

        padding-left: 52px !important;

      }



      body.web-mode.marketplace-workspace .bottom-nav::before {

        content: "УПРАВЛЕНИЕ МАРКЕТПЛЕЙСАМИ";

      }



      body.web-mode.marketplace-workspace .bottom-nav {

        display: none !important;

      }



      body.web-mode.marketplace-workspace .body {

        padding-left: 52px !important;

      }

    }



    body.web-mode.marketplace-workspace .bottom-nav {

      display: none !important;

    }



    @media (max-width: 899px) {

      body.web-mode.marketplace-workspace .body {

        padding-bottom: calc(28px + env(safe-area-inset-bottom)) !important;

      }

    }



    /* ── Searchable select ── */

    .searchable-select {

      position: relative;

      display: inline-block;

      width: 100%;

    }

    .searchable-select .ss-input {

      width: 100%;

      box-sizing: border-box;

      padding: 8px 28px 8px 8px;

      font: inherit;

      border: 1px solid var(--border);

      border-radius: var(--radius, 6px);

      background: var(--card);

      color: var(--text);

      cursor: pointer;

    }

    .searchable-select .ss-input:focus {

      outline: none;

      border-color: var(--accent, #4a90d9);

    }

    .searchable-select .ss-arrow {

      position: absolute;

      top: 50%;

      right: 8px;

      transform: translateY(-50%);

      pointer-events: none;

      color: var(--muted);

      font-size: 12px;

    }

    .searchable-select { position: relative; }

    .native-select-hidden { display: none !important; }

    .ss-dropdown {

      position: absolute;

      left: 0;

      right: 0;

      top: calc(100% + 1px);

      width: 100%;

      max-height: 240px;

      overflow-y: auto;

      background: var(--card, #fff);

      border: 1px solid var(--border, #ccc);

      border-radius: var(--radius, 6px);

      z-index: 9999;

      display: none;

      box-shadow: 0 4px 16px rgba(0,0,0,0.3);

    }

    .ss-dropdown.open {

      display: block;

    }



    .section-spacer-11 { margin-top: 11px; }

    .section-spacer-23 { margin-top: 23px; }

    .section-spacer-24 { margin-top: 24px; }

    .conditional-hidden { display: none !important; }



    .region-tone-0 { --region-color:#2563eb; --legend-color:#2563eb; }

    .region-tone-1 { --region-color:#7c3aed; --legend-color:#7c3aed; }

    .region-tone-2 { --region-color:#0891b2; --legend-color:#0891b2; }

    .region-tone-3 { --region-color:#16a34a; --legend-color:#16a34a; }

    .region-tone-4 { --region-color:#d97706; --legend-color:#d97706; }

    .region-tone-5 { --region-color:#dc2626; --legend-color:#dc2626; }

    .region-tone-6 { --region-color:#db2777; --legend-color:#db2777; }

    .region-tone-7 { --region-color:#4f46e5; --legend-color:#4f46e5; }

    .region-tone-8 { --region-color:#0f766e; --legend-color:#0f766e; }

    .region-tone-9 { --region-color:#9333ea; --legend-color:#9333ea; }

    .analytics-chart-legend .region-tone-0,.analytics-chart-legend .region-tone-1,

    .analytics-chart-legend .region-tone-2,.analytics-chart-legend .region-tone-3,

    .analytics-chart-legend .region-tone-4,.analytics-chart-legend .region-tone-5,

    .analytics-chart-legend .region-tone-6,.analytics-chart-legend .region-tone-7,

    .analytics-chart-legend .region-tone-8,.analytics-chart-legend .region-tone-9 { background:var(--legend-color); }



    .zoom-80 { width:80%; }.zoom-90 { width:90%; }.zoom-100 { width:100%; }

    .zoom-110 { width:110%; }.zoom-120 { width:120%; }.zoom-130 { width:130%; }.zoom-140 { width:140%; }



    .pct-0 { --safe-percent:0%; }.pct-5 { --safe-percent:5%; }.pct-10 { --safe-percent:10%; }

    .pct-15 { --safe-percent:15%; }.pct-20 { --safe-percent:20%; }.pct-25 { --safe-percent:25%; }

    .pct-30 { --safe-percent:30%; }.pct-35 { --safe-percent:35%; }.pct-40 { --safe-percent:40%; }

    .pct-45 { --safe-percent:45%; }.pct-50 { --safe-percent:50%; }.pct-55 { --safe-percent:55%; }

    .pct-60 { --safe-percent:60%; }.pct-65 { --safe-percent:65%; }.pct-70 { --safe-percent:70%; }

    .pct-75 { --safe-percent:75%; }.pct-80 { --safe-percent:80%; }.pct-85 { --safe-percent:85%; }

    .pct-90 { --safe-percent:90%; }.pct-95 { --safe-percent:95%; }.pct-100 { --safe-percent:100%; }

    .marketplace-chart-bar[class*="pct-"] { height:var(--safe-percent); }

    .ac-waterfall i[class*="pct-"] { height:var(--safe-percent); }

    .ac-region-share-track i[class*="pct-"],.ac-region-share-stack i[class*="pct-"] { width:var(--safe-percent); }



    .wms-map-grid { grid-template-columns:repeat(var(--safe-wms-columns,1),minmax(62px,1fr)); }

    .wms-columns-1{--safe-wms-columns:1}.wms-columns-2{--safe-wms-columns:2}.wms-columns-3{--safe-wms-columns:3}.wms-columns-4{--safe-wms-columns:4}.wms-columns-5{--safe-wms-columns:5}.wms-columns-6{--safe-wms-columns:6}.wms-columns-7{--safe-wms-columns:7}.wms-columns-8{--safe-wms-columns:8}.wms-columns-9{--safe-wms-columns:9}.wms-columns-10{--safe-wms-columns:10}.wms-columns-11{--safe-wms-columns:11}.wms-columns-12{--safe-wms-columns:12}.wms-columns-13{--safe-wms-columns:13}.wms-columns-14{--safe-wms-columns:14}.wms-columns-15{--safe-wms-columns:15}.wms-columns-16{--safe-wms-columns:16}.wms-columns-17{--safe-wms-columns:17}.wms-columns-18{--safe-wms-columns:18}.wms-columns-19{--safe-wms-columns:19}.wms-columns-20{--safe-wms-columns:20}

    .wms-col-1{grid-column:1}.wms-col-2{grid-column:2}.wms-col-3{grid-column:3}.wms-col-4{grid-column:4}.wms-col-5{grid-column:5}.wms-col-6{grid-column:6}.wms-col-7{grid-column:7}.wms-col-8{grid-column:8}.wms-col-9{grid-column:9}.wms-col-10{grid-column:10}.wms-col-11{grid-column:11}.wms-col-12{grid-column:12}.wms-col-13{grid-column:13}.wms-col-14{grid-column:14}.wms-col-15{grid-column:15}.wms-col-16{grid-column:16}.wms-col-17{grid-column:17}.wms-col-18{grid-column:18}.wms-col-19{grid-column:19}.wms-col-20{grid-column:20}

    .wms-row-1{grid-row:1}.wms-row-2{grid-row:2}.wms-row-3{grid-row:3}.wms-row-4{grid-row:4}.wms-row-5{grid-row:5}.wms-row-6{grid-row:6}.wms-row-7{grid-row:7}.wms-row-8{grid-row:8}.wms-row-9{grid-row:9}.wms-row-10{grid-row:10}.wms-row-11{grid-row:11}.wms-row-12{grid-row:12}

    .nav-count-1,.tab-count-1{--nav-count:1;--tab-count:1}.nav-count-2,.tab-count-2{--nav-count:2;--tab-count:2}.nav-count-3,.tab-count-3{--nav-count:3;--tab-count:3}.nav-count-4,.tab-count-4{--nav-count:4;--tab-count:4}.nav-count-5,.tab-count-5{--nav-count:5;--tab-count:5}.nav-count-6,.tab-count-6{--nav-count:6;--tab-count:6}.nav-count-7,.tab-count-7{--nav-count:7;--tab-count:7}.nav-count-8,.tab-count-8{--nav-count:8;--tab-count:8}.nav-count-9,.tab-count-9{--nav-count:9;--tab-count:9}.nav-count-10,.tab-count-10{--nav-count:10;--tab-count:10}.nav-count-11,.tab-count-11{--nav-count:11;--tab-count:11}.nav-count-12,.tab-count-12{--nav-count:12;--tab-count:12}

    .ss-dropdown .ss-option {

      padding: 8px 10px;

      cursor: pointer;

      font: inherit;

      color: var(--text, #111);

    }

    .ss-dropdown .ss-option:hover,

    .ss-dropdown .ss-option.active {

      background: var(--accent-bg, rgba(74,144,217,0.12));

    }

    .ss-dropdown .ss-no-match {

      padding: 8px 10px;

      color: var(--muted, #888);

      font-style: italic;

    }



    /* Operations center: desktop-first control room built on the existing data. */

    .operations-center { display: grid; gap: 18px; }

    .profile-btn svg { width: 21px; height: 21px; display: block; }

    .operations-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }

    .operations-head h2 { margin: 0; font-size: clamp(28px, 3vw, 38px); letter-spacing: -.045em; }

    .operations-head p { margin: 8px 0 0; color: var(--muted); }

    .live-indicator { display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; border-radius: 999px; background: rgba(49,168,107,.10); color: var(--sage-dark); font-size: 12px; font-weight: 800; white-space: nowrap; }

    .live-indicator::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(49,168,107,.11); }

    .operations-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }

    .operations-kpi { min-height: 142px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.88); box-shadow: var(--inset-shadow), 0 10px 24px rgba(16,23,34,.06); text-align: left; }

    .operations-kpi span { display: block; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }

    .operations-kpi strong { display: block; margin: 16px 0 7px; color: var(--text); font-size: 31px; line-height: 1; letter-spacing: -.05em; }

    .operations-kpi small { display: block; color: var(--muted); font-size: 13px; font-weight: 600; }

    .operations-kpi.risk { border-color: rgba(242,162,58,.34); background: linear-gradient(135deg, rgba(255,247,232,.94), rgba(255,255,255,.92)); }

    .operations-kpi.overdue { border-color: rgba(221,79,93,.30); background: linear-gradient(135deg, rgba(255,239,242,.94), rgba(255,255,255,.92)); }

    .operations-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(290px, .65fr); gap: 18px; }

    .operations-panel { padding: 19px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.84); box-shadow: var(--inset-shadow), 0 10px 24px rgba(16,23,34,.05); }

    .operations-panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 17px; }

    .operations-panel-head b { font-size: 16px; }

    .operations-panel-head span { color: var(--muted); font-size: 12px; }

    .shift-progress-value { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; margin-bottom: 12px; }

    .shift-progress-value strong { font-size: 28px; letter-spacing: -.045em; }

    .shift-progress-value small { color: var(--muted); font-size: 12px; font-weight: 700; }

    .shift-team { margin-top: 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(247,249,253,.82); overflow: hidden; }

    .shift-team summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 14px; cursor: pointer; font-weight: 800; list-style: none; }

    .shift-team summary::-webkit-details-marker { display: none; }

    .shift-team summary::after { content: "⌄"; color: var(--primary); font-size: 18px; transition: transform .18s ease; }

    .shift-team[open] summary::after { transform: rotate(180deg); }

    .shift-team-list { display: grid; border-top: 1px solid var(--line); }

    .shift-team-row { display: grid; grid-template-columns: minmax(170px, 1fr) minmax(130px, .65fr) minmax(150px, auto); gap: 14px; align-items: center; padding: 12px 14px; }

    .shift-team-row + .shift-team-row { border-top: 1px solid var(--line); }

    .shift-team-person, .shift-team-time { display: grid; gap: 3px; min-width: 0; }

    .shift-team-person b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

    .shift-team-person span, .shift-team-time span { color: var(--muted); font-size: 12px; }

    .shift-team-time b { font-size: 13px; }

    .stage-stack { display: grid; gap: 13px; }

    .stage-row { display: grid; grid-template-columns: minmax(128px, 1fr) minmax(92px, 2.4fr) auto; align-items: center; gap: 11px; }

    .stage-row b { font-size: 13px; }

    .stage-row .progress { margin: 0; }

    .stage-row .status-chip { min-width: 76px; justify-content: center; }

    .operations-alerts { display: grid; gap: 9px; }

    .operations-alert { display: grid; grid-template-columns: 9px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 11px 0; border-bottom: 1px solid var(--line); cursor: pointer; }

    .operations-alert:last-child { border-bottom: 0; padding-bottom: 0; }

    .operations-alert i { width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: var(--warning); }

    .operations-alert.critical i { background: var(--danger); }

    .operations-alert b { display: block; font-size: 13px; }

    .operations-alert span { color: var(--muted); font-size: 12px; line-height: 1.35; }

    .operations-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }

    .operations-actions button { min-height: 44px; border: 1px solid var(--line); border-radius: 11px; background: rgba(245,248,255,.88); color: var(--text); font-size: 12px; font-weight: 800; text-align: left; padding: 10px 12px; }

    .operations-actions button.primary { color: #fff; border-color: var(--accent); background: var(--accent); box-shadow: var(--blue-shadow); }

    .key-orders { display: grid; gap: 9px; }

    .key-order { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(250,251,253,.94); cursor: pointer; }

    .key-order b { display: block; font-size: 13px; }

    .key-order span { color: var(--muted); font-size: 12px; }

    .orders-board { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 8px; }

    .orders-column { min-width: 220px; min-height: 290px; padding: 12px; border: 1px solid var(--line); border-radius: 15px; background: rgba(236,240,247,.62); }

    .orders-column-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 11px; font-size: 13px; font-weight: 800; }

    .orders-column-head span { display: grid; place-items: center; min-width: 24px; height: 24px; border-radius: 8px; background: #fff; color: var(--muted); font-size: 12px; }

    .board-order-card { display: grid; gap: 9px; margin-bottom: 10px; padding: 13px; border: 1px solid rgba(109,124,158,.15); border-radius: 12px; background: #fff; box-shadow: 0 6px 14px rgba(16,23,34,.05); cursor: pointer; }

    .board-order-card b { font-size: 13px; line-height: 1.3; }

    .board-order-card .marketplace-product-avatar { flex: 0 0 auto; }

    .board-order-meta { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 11px; }

    .orders-column-more { display: grid; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; text-align: center; }

    .orders-column-more .small-button { width: 100%; min-height: 42px; }

    @media (max-width: 820px) {

      .operations-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }

      .operations-layout { grid-template-columns: 1fr; }

      .shift-team-row { grid-template-columns: 1fr auto; }

      .shift-team-time { grid-column: 1 / -1; grid-row: 2; grid-template-columns: repeat(2, minmax(0, 1fr)); }

      .operations-head { display: grid; }

    }

    @media (max-width: 720px) {

      .operations-actions { grid-template-columns: 1fr; }

      .orders-board { grid-template-columns: 1fr; overflow: visible; }

      .orders-column { min-width: 0; min-height: 0; }

    }

    @media (min-width: 900px) and (max-width: 1100px) {

      body.web-mode .appbar {

        grid-template-columns: 185px minmax(300px, 1fr) auto;

        gap: 12px;

      }

      body.web-mode .appbar-profile { display: none; }

      body.web-mode .workspace-nav button { font-size: 10px; }

    }



    /* Saved per-user desktop density. Controls remain at least 48px; compact

       mode only removes decorative whitespace, so warehouse touch safety is

       not traded for information density. */

    @media (min-width: 900px) {

      body.web-mode.density-compact :where(.field-card, .shift-card, .summary-card, .ac-panel, .ac-kpi) {

        padding: 12px;

      }



      body.web-mode.density-compact :where(.op-list, .card-grid, .analytics-overview-grid, .analytics-three-grid, .ac-grid) {

        gap: 8px;

      }



      body.web-mode.density-compact .report-row {

        padding: 8px 10px;

      }



      body.web-mode.density-compact :where(.screen-head, .section-title) {

        margin-bottom: 10px;

      }

    }



    .profile-density {

      grid-template-columns: repeat(3, minmax(0, 1fr));

    }

    /* Marketplace dashboard v2: one adaptive component for all providers. */

    body.marketplace-workspace {

      --marketplace-primary: #2563eb;

      --marketplace-soft: #eef4ff;

      --ozon-color: #005bff;

      --wildberries-color: #a100ff;

    }



    .marketplace-layout {

      display: grid;

      grid-template-columns: 220px minmax(0, 1fr);

      gap: 18px;

      width: min(100%, 1600px);

      margin: 0 auto;

    }



    .marketplace-main { min-width: 0; }



    .marketplace-layout .marketplace-menu-strip {

      position: sticky;

      top: 92px;

      align-self: start;

      display: flex;

      flex-direction: column;

      flex-wrap: nowrap;

      gap: 5px;

      margin: 0;

      padding: 12px;

      max-height: calc(100dvh - 116px);

      overflow-y: auto;

      border-radius: 18px;

    }



    .marketplace-layout .marketplace-menu-link {

      min-height: 44px;

      padding: 11px 13px;

      text-align: left;

      font-size: 13px;

      font-weight: 700;

    }



    .marketplace-layout .marketplace-menu-link.active {

      color: #1746b6;

      background: var(--marketplace-soft);

      box-shadow: inset 3px 0 0 var(--marketplace-primary);

    }



    .marketplace-v2-head { margin-bottom: 14px; }

    .marketplace-v2-head h2 { font-size: clamp(28px, 3vw, 34px); }



    .marketplace-brand-mark {

      min-width: 92px;

      padding: 10px 14px;

      border: 1px solid rgba(37,99,235,.18);

      border-radius: 13px;

      color: #1b4db5;

      background: #eef4ff;

      font-size: 14px;

      font-weight: 900;

      text-align: center;

      letter-spacing: .04em;

    }



    .marketplace-brand-mark.ozon { color: #005bff; background: #eaf1ff; }

    .marketplace-brand-mark.wb { color: #8d0aa5; background: #f7eaff; }



    .marketplace-filter-bar {

      display: grid;

      grid-template-columns: minmax(220px, 300px) minmax(330px, 1fr) auto max-content;

      align-items: end;

      gap: 12px;

      margin: 14px 0;

      padding: 13px;

      border: 1px solid var(--line);

      border-radius: 15px;

      background: rgba(255,255,255,.86);

      box-shadow: var(--inset-shadow);

    }



    .marketplace-filter-bar label { display: grid; gap: 6px; }

    .marketplace-filter-bar label > span { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }

    .marketplace-filter-bar select { min-height: 44px; border: 1px solid var(--line); border-radius: 11px; padding: 8px 36px 8px 11px; background: #fff; }

    .marketplace-period-label { align-self: center; color: var(--muted); font-size: 13px; font-weight: 700; }



    .marketplace-filter-panel { margin-bottom: 14px; padding: 16px; }

    .marketplace-check { display: flex; align-items: center; gap: 9px; min-height: 44px; color: var(--text); font-size: 13px; font-weight: 700; }

    .marketplace-check input { width: 18px; height: 18px; }



    .marketplace-v2-kpis {

      display: grid;

      grid-template-columns: repeat(6, minmax(0, 1fr));

      gap: 10px;

      margin: 14px 0;

    }



    .marketplace-v2-kpi {

      min-width: 0;

      min-height: 118px;

      padding: 16px;

      overflow: hidden;

      border: 1px solid var(--line);

      border-radius: 14px;

      background: rgba(255,255,255,.92);

      color: var(--text);

      text-align: left;

      box-shadow: var(--inset-shadow), 0 8px 22px rgba(16,23,34,.05);

    }



    .marketplace-v2-kpi > span { display: block; min-height: 30px; color: var(--muted); font-size: 12px; font-weight: 750; }

    .marketplace-v2-kpi strong {

      display: block; max-width: 100%; margin: 7px 0 8px;

      font-size: clamp(22px, 1.65vw, 28px); line-height: 1.04; letter-spacing: -.04em;

      overflow-wrap: anywhere;

    }

    .marketplace-v2-kpi strong.marketplace-kpi-value-compact {

      font-size: clamp(18px, 1.35vw, 23px); letter-spacing: -.055em; white-space: nowrap;

    }

    .marketplace-v2-kpi strong small { font-size: 12px; letter-spacing: 0; }

    .marketplace-v2-kpi > small { display: block; color: #237e52; font-size: 11px; line-height: 1.3; }

    .marketplace-v2-kpi.unavailable { cursor: default; background: rgba(248,250,252,.9); }

    .marketplace-v2-kpi.unavailable strong, .marketplace-v2-kpi.unavailable > small { color: var(--muted); }



    .marketplace-v2-analytics {

      display: grid;

      grid-template-columns: repeat(4, minmax(0, 1fr));

      gap: 12px;

      margin: 14px 0;

    }



    .marketplace-analytic-card { min-height: 286px; padding: 16px; }

    .marketplace-chart-empty, .marketplace-empty-metric { min-height: 210px; display: grid; align-content: center; justify-items: center; gap: 7px; padding: 20px; border-radius: 13px; background: linear-gradient(180deg,#f7f9fd,#fff); color: var(--muted); text-align: center; }

    .marketplace-chart-empty b, .marketplace-empty-metric b { color: var(--text); font-size: 14px; }

    .marketplace-chart-empty span, .marketplace-empty-metric span { max-width: 260px; font-size: 12px; line-height: 1.45; }

    .marketplace-empty-metric { min-height: 210px; }



    .marketplace-order-bars { height: 210px; display: flex; align-items: flex-end; gap: 7px; padding: 16px 4px 4px; }

    .marketplace-order-bars i { flex: 1; min-width: 7px; height: var(--bar-height); border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg,var(--marketplace-primary),#1647ca); }



    .marketplace-order-view-tabs {

      display: flex; width: max-content; max-width: 100%; gap: 5px; overflow-x: auto;

      margin: 14px 0; padding: 5px; border: 1px solid var(--line); border-radius: 13px;

      background: rgba(255,255,255,.82); box-shadow: var(--inset-shadow); scrollbar-width: none;

    }

    .marketplace-order-view-tabs::-webkit-scrollbar { display: none; }

    .marketplace-order-view-tabs button {

      flex: 0 0 auto; min-height: 38px; padding: 8px 16px; border: 0; border-radius: 9px;

      background: transparent; color: var(--muted); font-size: 12px; font-weight: 800; cursor: pointer;

    }

    .marketplace-order-view-tabs button.active { color: #fff; background: var(--marketplace-primary); box-shadow: 0 7px 18px rgba(0,91,255,.2); }

    .marketplace-order-table-card { padding: 10px 14px 14px; }

    .marketplace-order-table-card .marketplace-table td { vertical-align: middle; }

    .marketplace-order-table-card .marketplace-table td:first-child { min-width: 210px; }

    .marketplace-order-product-cell { display: grid; gap: 3px; }

    .marketplace-order-product-cell b { color: var(--text); }

    .marketplace-order-product-cell span { color: var(--muted); font-size: 11px; }

    .marketplace-order-list-row > div { min-width: 0; }

    .marketplace-order-list-row > div > span { overflow-wrap: anywhere; }

    .marketplace-order-list-metrics { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }

    .marketplace-order-detail-composition { margin-top: 14px; padding: 14px; }



    .marketplace-product-detail, .marketplace-sales-detail { margin-top: 14px; }

    .marketplace-table-scroll { max-width: 100%; overflow-x: auto; }

    .marketplace-table { font-size: 13px; }

    .marketplace-source { display: inline-flex; align-items: center; min-height: 25px; padding: 4px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; }

    .marketplace-source.ozon { color: #005bff; background: #eaf1ff; }

    .marketplace-source.wb { color: #8d0aa5; background: #f7eaff; }



    .marketplace-placeholder { min-height: 330px; display: grid; align-content: center; justify-items: center; gap: 10px; text-align: center; }

    .marketplace-placeholder-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; color: var(--marketplace-primary); background: var(--marketplace-soft); font-size: 26px; }

    .marketplace-placeholder h3, .marketplace-placeholder p { margin: 0; }

    .marketplace-placeholder p { max-width: 540px; color: var(--muted); line-height: 1.5; }



    @media (max-width: 1280px) {

      .marketplace-layout { grid-template-columns: 190px minmax(0, 1fr); }

      .marketplace-filter-bar { grid-template-columns: minmax(190px, 240px) minmax(300px, 1fr) auto max-content; }

      .marketplace-v2-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }

      .marketplace-v2-analytics { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    }



    @media (max-width: 899px) {

      body.web-mode main button { min-height: 44px; }

      .marketplace-layout { display: block; width: 100%; }

      .marketplace-layout .marketplace-menu-strip { position: sticky; top: 0; z-index: 18; flex-direction: row; overflow-x: auto; overflow-y: hidden; max-height: none; margin-bottom: 12px; padding: 5px; border-radius: 13px; scrollbar-width: none; }

      .marketplace-layout .marketplace-menu-strip::-webkit-scrollbar { display: none; }

      .marketplace-layout .marketplace-menu-link { flex: 0 0 auto; min-width: 104px; text-align: center; }

      .marketplace-layout .marketplace-menu-link.active { box-shadow: inset 0 -3px 0 var(--marketplace-primary); }

      .marketplace-provider-inline { display: block; }

      .marketplace-provider-inline .marketplace-provider-switch { display: grid; grid-template-columns: 1fr; }

      .marketplace-filter-bar { grid-template-columns: 1fr; align-items: stretch; }

      .marketplace-period-label { min-height: 24px; }

      .marketplace-v2-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }

      .marketplace-v2-analytics { grid-template-columns: 1fr; }

      .marketplace-analytic-card { min-height: 250px; }

      .marketplace-v2-head { align-items: flex-start; }

      .marketplace-brand-mark { min-width: 74px; padding: 8px 10px; }

      .marketplace-order-view-tabs { width: 100%; }

      .marketplace-order-view-tabs button { flex: 1 0 auto; }

      .marketplace-order-list-metrics { justify-content: flex-start; }

    }



    @media (max-width: 430px) {

      .marketplace-v2-kpis { gap: 8px; }

      .marketplace-v2-kpi { min-height: 112px; padding: 12px; }

      .marketplace-v2-kpi strong { font-size: 22px; }

    }



    /* Unified analytics overview. Every value in this block comes from the

       marketplace dashboard or production-control payload; unavailable data

       is deliberately kept separate from a confirmed zero. */

    .analytics-hub-tabs {

      display: flex; width: max-content; max-width: 100%; gap: 5px; overflow-x: auto;

      margin-top: 14px; padding: 5px; border: 1px solid var(--line); border-radius: 13px;

      background: rgba(255,255,255,.82); box-shadow: var(--inset-shadow); scrollbar-width: none;

    }

    .analytics-hub-tabs::-webkit-scrollbar { display: none; }

    .analytics-hub-tabs button {

      flex: 0 0 auto; min-height: 36px; padding: 8px 14px; border: 0; border-radius: 9px;

      background: transparent; color: var(--muted); font-size: 12px; font-weight: 800; cursor: pointer;

    }

    .analytics-hub-tabs button:hover { color: var(--text); background: rgba(37,99,235,.07); }

    .analytics-hub-tabs button.active { color: #fff; background: var(--marketplace-primary, #2563eb); box-shadow: 0 7px 16px rgba(37,99,235,.2); }

    .analytics-overview { display: grid; gap: 16px; margin-top: 14px; }

    .analytics-overview-notice {

      display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;

      padding: 13px 15px; border: 1px solid rgba(37,99,235,.15); border-radius: 14px;

      background: rgba(239,245,255,.86); color: #24467f;

    }

    .analytics-overview-notice.warn { border-color: rgba(180,83,9,.2); background: #fff7e8; color: #8a4b08; }

    .analytics-overview-notice.error { border-color: rgba(180,35,53,.2); background: #fff0f2; color: #9c2536; }

    .analytics-overview-notice div { display: grid; gap: 3px; }

    .analytics-overview-notice b { color: inherit; font-size: 13px; }

    .analytics-overview-notice span { font-size: 12px; line-height: 1.45; }

    .analytics-overview-notice button { flex: 0 0 auto; }

    .analytics-period-bar {

      display: grid; grid-template-columns: minmax(210px, 290px) minmax(320px, 1fr) auto;

      align-items: end; gap: 12px; padding: 14px; border: 1px solid var(--line);

      border-radius: 15px; background: rgba(255,255,255,.88); box-shadow: var(--inset-shadow);

    }

    .analytics-period-bar label { display: grid; gap: 6px; min-width: 0; }

    .analytics-period-bar label > span {

      color: var(--muted); font-size: 10px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase;

    }

    .analytics-period-bar select, .analytics-period-bar input { width: 100%; min-height: 42px; }

    .analytics-period-dates { display: grid; grid-template-columns: repeat(2, minmax(145px, 1fr)); gap: 10px; }

    .analytics-period-current { align-self: center; color: var(--muted); font-size: 12px; font-weight: 750; white-space: nowrap; }

    .analytics-overview-kpis {

      display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px;

    }

    .analytics-overview-kpi {

      min-width: 0; min-height: 132px; padding: 15px; border: 1px solid var(--line);

      border-radius: 15px; background: rgba(255,255,255,.94); box-shadow: var(--inset-shadow),0 8px 22px rgba(16,23,34,.045);

    }

    .analytics-overview-kpi.partial { border-color: rgba(180,83,9,.22); background: linear-gradient(145deg,#fff,#fff9ee); }

    .analytics-overview-kpi.unavailable { background: rgba(248,250,252,.9); }

    .analytics-overview-kpi.danger { border-color: rgba(180,35,53,.2); background: linear-gradient(145deg,#fff,#fff2f4); }

    .analytics-overview-kpi > span { display: block; min-height: 29px; color: var(--muted); font-size: 11px; font-weight: 800; line-height: 1.3; }

    .analytics-overview-kpi strong { display: block; overflow: hidden; margin: 8px 0; font-size: clamp(20px,2vw,29px); line-height: 1.05; letter-spacing: -.045em; text-overflow: ellipsis; white-space: nowrap; }

    .analytics-overview-kpi strong small { margin-left: 3px; font-size: 11px; letter-spacing: 0; }

    .analytics-overview-kpi > small { display: block; color: var(--muted); font-size: 10px; line-height: 1.35; }

    .analytics-overview-grid { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(320px,.75fr); gap: 14px; }

    .analytics-overview-section { min-width: 0; padding: 17px !important; }

    .analytics-overview-section .section-title { margin-top: 0; }

    .analytics-combined-chart { min-height: 290px; margin-top: 10px; }

    .analytics-combined-chart svg { display: block; width: 100%; height: 270px; overflow: visible; }

    .analytics-chart-legend { display: flex; flex-wrap: wrap; gap: 9px 16px; margin-top: 9px; color: var(--muted); font-size: 11px; }

    .analytics-chart-legend span { display: inline-flex; align-items: center; gap: 6px; }

    .analytics-chart-legend i { width: 18px; height: 3px; border-radius: 99px; background: var(--legend-color); }

    .analytics-chart-source { margin-top: 8px; color: var(--muted); font-size: 10px; line-height: 1.45; }

    .analytics-provider-list { display: grid; gap: 10px; }

    .analytics-provider-card { padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: rgba(248,250,254,.82); }

    .analytics-provider-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

    .analytics-provider-head b { font-size: 14px; }

    .analytics-provider-metrics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 11px; }

    .analytics-provider-metric { min-width: 0; padding: 9px; border-radius: 10px; background: #fff; }

    .analytics-provider-metric span, .analytics-provider-metric small { display: block; color: var(--muted); font-size: 9px; line-height: 1.35; }

    .analytics-provider-metric b { display: block; overflow: hidden; margin: 4px 0 2px; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }

    .analytics-three-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }

    .analytics-risk-list, .analytics-matrix-list, .analytics-supply-list, .analytics-quality-list { display: grid; gap: 8px; }

    .analytics-risk-row, .analytics-matrix-row, .analytics-supply-row, .analytics-quality-row {

      display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 12px;

      padding: 10px 0; border-bottom: 1px solid rgba(84,101,134,.11);

    }

    .analytics-risk-row:last-child, .analytics-matrix-row:last-child, .analytics-supply-row:last-child, .analytics-quality-row:last-child { border-bottom: 0; }

    .analytics-risk-copy, .analytics-matrix-copy, .analytics-supply-copy, .analytics-quality-copy { display: grid; gap: 3px; min-width: 0; }

    .analytics-risk-copy b, .analytics-matrix-copy b, .analytics-supply-copy b, .analytics-quality-copy b { overflow: hidden; font-size: 12px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }

    .analytics-risk-copy span, .analytics-matrix-copy span, .analytics-supply-copy span, .analytics-quality-copy span { color: var(--muted); font-size: 10px; line-height: 1.4; }

    .analytics-matrix-values { display: grid; grid-template-columns: repeat(2,minmax(66px,auto)); gap: 6px; text-align: right; }

    .analytics-matrix-values span { padding: 5px 7px; border-radius: 8px; background: rgba(238,243,252,.9); color: var(--text); font-size: 10px; font-weight: 800; white-space: nowrap; }

    .analytics-loading-card { position: relative; overflow: hidden; min-height: 132px; background: #f5f7fb; }

    .analytics-loading-card::after {

      content: ""; position: absolute; inset: 0; transform: translateX(-100%);

      background: linear-gradient(90deg,transparent,rgba(255,255,255,.8),transparent);

      animation: analytics-shimmer 1.15s infinite;

    }

    @keyframes analytics-shimmer { to { transform: translateX(100%); } }



    @media (max-width: 1380px) {

      .analytics-overview-kpis { grid-template-columns: repeat(4,minmax(0,1fr)); }

      .analytics-three-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }

      .analytics-three-grid > :last-child { grid-column: 1 / -1; }

    }

    @media (max-width: 960px) {

      .analytics-period-bar, .analytics-overview-grid { grid-template-columns: 1fr; }

      .analytics-period-current { white-space: normal; }

      .analytics-overview-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }

      .analytics-three-grid { grid-template-columns: 1fr; }

      .analytics-three-grid > :last-child { grid-column: auto; }

    }

    @media (max-width: 540px) {

      .analytics-hub-tabs { width: 100%; }

      .analytics-hub-tabs button { flex: 1 0 auto; min-height: 42px; }

      .analytics-overview { gap: 12px; }

      .analytics-overview-notice { display: grid; }

      .analytics-overview-notice button { width: 100%; }

      .analytics-period-dates { grid-template-columns: 1fr; }

      .analytics-overview-kpis { gap: 8px; }

      .analytics-overview-kpi { min-height: 122px; padding: 12px; }

      .analytics-overview-kpi strong { font-size: 21px; }

      .analytics-overview-section { padding: 14px !important; }

      .analytics-provider-metrics { grid-template-columns: 1fr; }

      .analytics-matrix-row { grid-template-columns: 1fr; }

      .analytics-matrix-values { justify-content: start; text-align: left; }

    }



    /* Analytics center. The public application chrome remains shared, while

       this workspace follows prototype/ as an independent dense SaaS UI. */

    body.web-mode.analytics-mode .body {

      padding: 22px 24px 46px !important;

    }

    body.web-mode.analytics-mode #mount { width: 100%; }

    .ac-shell {

      --ac-bg: #f4f6fb;

      --ac-surface: #fff;

      --ac-border: #e3e8f1;

      --ac-text: #111827;

      --ac-muted: #718096;

      --ac-sidebar: #121a2c;

      --ac-blue: #2563eb;

      --ac-wb: #c915b8;

      display: grid;

      grid-template-columns: 236px minmax(0,1fr);

      min-height: calc(100vh - 150px);

      overflow: hidden;

      color: var(--ac-text);

      background: var(--ac-bg);

      border: 1px solid var(--ac-border);

      border-radius: 18px;

      box-shadow: 0 14px 42px rgba(15,23,42,.08);

    }

    .ac-sidebar {

      display: flex;

      flex-direction: column;

      min-width: 0;

      padding: 20px 14px;

      color: #a9b4c8;

      background: radial-gradient(circle at 12% 0,rgba(79,70,229,.18),transparent 34%),linear-gradient(180deg,#141d33,#101827);

    }

    .ac-brand { display:flex; align-items:center; gap:11px; padding:2px 8px 21px; border-bottom:1px solid rgba(255,255,255,.07); }

    .ac-brand-mark { width:36px; height:36px; display:grid; place-items:center; border-radius:10px; color:#fff; background:linear-gradient(135deg,#3867ff,#6f4ef6); font-weight:900; }

    .ac-brand strong,.ac-brand span { display:block; }

    .ac-brand strong { color:#fff; font-size:12px; letter-spacing:.12em; }

    .ac-brand span { margin-top:2px; color:#7f8da5; font-size:9px; }

    .ac-nav { display:grid; gap:4px; margin-top:18px; }

    .ac-nav-hint { display:none; }

    .ac-nav button {

      position:relative; width:100%; min-height:42px; display:grid; grid-template-columns:22px minmax(0,1fr); align-items:center; gap:10px;

      padding:0 11px; border:0; border-radius:10px; color:#9da9bc; background:transparent; text-align:left; cursor:pointer;

      font-size:12px; font-weight:750;

    }

    .ac-nav button:hover { color:#fff; background:rgba(255,255,255,.055); }

    .ac-nav button.active { color:#fff; background:rgba(91,96,246,.22); box-shadow:inset 0 0 0 1px rgba(129,140,248,.14); }

    .ac-nav button.active::before { content:""; position:absolute; left:-14px; top:9px; width:3px; height:24px; border-radius:0 3px 3px 0; background:#818cf8; }

    .ac-nav-icon { width:20px; height:20px; display:grid; place-items:center; color:inherit; font-size:14px; }

    .ac-sidebar-status { margin-top:auto; padding:13px; border:1px solid rgba(255,255,255,.07); border-radius:12px; background:rgba(255,255,255,.045); }

    .ac-sidebar-status b,.ac-sidebar-status span { display:block; }

    .ac-sidebar-status b { color:#e7ebf4; font-size:10px; }

    .ac-sidebar-status span { margin-top:5px; color:#8290a6; font-size:9px; line-height:1.45; }

    .ac-main { min-width:0; }

    .ac-topbar {

      min-height:70px; display:flex; align-items:center; gap:12px; padding:14px 20px;

      border-bottom:1px solid var(--ac-border); background:rgba(255,255,255,.92); backdrop-filter:blur(14px);

    }

    .ac-search { flex:1 1 300px; max-width:420px; height:40px; display:flex; align-items:center; gap:8px; padding:0 12px; border:1px solid var(--ac-border); border-radius:10px; background:#f7f9fc; }

    .ac-search span { color:#98a3b5; }

    .ac-search input { min-width:0; flex:1; border:0; outline:0; background:transparent; color:var(--ac-text); font-size:11px; }

    .ac-market-switch { margin-left:auto; display:flex; gap:3px; padding:3px; border:1px solid var(--ac-border); border-radius:10px; background:#f3f5f9; }

    .ac-market-switch button { min-height:32px; padding:0 10px; border:0; border-radius:7px; color:#526078; background:transparent; font-size:10px; font-weight:800; cursor:pointer; }

    .ac-market-switch button.active { color:#111827; background:#fff; box-shadow:0 2px 8px rgba(15,23,42,.08); }

    .ac-market-switch button[data-provider="ozon"].active { color:#fff; background:var(--ac-blue); }

    .ac-market-switch button[data-provider="wildberries"].active { color:#fff; background:var(--ac-wb); }

    .ac-sync { min-height:38px; padding:0 13px; border:0; border-radius:10px; color:#fff; background:linear-gradient(135deg,#2563eb,#5b45ee); font-size:10px; font-weight:800; cursor:pointer; white-space:nowrap; }

    .ac-content { padding:22px; }

    .ac-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:18px; margin-bottom:18px; }

    .ac-eyebrow { display:block; margin-bottom:5px; color:#4f46e5; font-size:9px; font-weight:900; letter-spacing:.13em; text-transform:uppercase; }

    .ac-heading h1 { margin:0; color:#101827; font-size:clamp(25px,2.1vw,34px); line-height:1.08; letter-spacing:-.045em; }

    .ac-heading p { margin:6px 0 0; color:var(--ac-muted); font-size:11px; }

    .ac-business-state { display:inline-flex; align-items:center; gap:7px; min-height:30px; padding:0 10px; border:1px solid #cce8dd; border-radius:9px; color:#13795b; background:#edf9f4; font-size:9px; font-weight:800; white-space:nowrap; }

    .ac-business-state.partial,.ac-business-state.stale { color:#9a6508; border-color:#f1ddb1; background:#fff8e9; }

    .ac-business-state.loading { color:#2459a9; border-color:#c9daf8; background:#eef5ff; }

    .ac-business-state.unavailable,.ac-business-state.error { color:#9b3342; border-color:#f0cbd1; background:#fff2f4; }

    .ac-filterbar { display:grid; grid-template-columns:minmax(190px,260px) minmax(260px,1fr) auto; gap:10px; align-items:end; margin-bottom:12px; padding:12px; border:1px solid var(--ac-border); border-radius:13px; background:#fff; }

    .ac-filterbar.has-custom-range { grid-template-columns:minmax(190px,240px) minmax(300px,420px) minmax(190px,1fr) auto; }

    .ac-filter-dates { display:grid; grid-template-columns:repeat(2,minmax(140px,1fr)); gap:8px; }

    .ac-filterbar label { display:grid; gap:5px; color:#526078; font-size:8px; font-weight:900; letter-spacing:.08em; text-transform:uppercase; }

    .ac-filterbar select,.ac-filterbar input { width:100%; min-height:38px; border:1px solid var(--ac-border); border-radius:9px; background:#fafbfd; color:var(--ac-text); padding:0 10px; font-size:11px; }

    .ac-filter-range { align-self:center; color:#526078; font-size:10px; font-weight:750; }

    .ac-kpis { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:10px; margin-bottom:12px; }

    .ac-bank-head {

      display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:12px;

      padding:14px 16px; border:1px solid #dbe4f2; border-radius:14px;

      background:linear-gradient(135deg,#fff,#f4f8ff); box-shadow:0 6px 18px rgba(37,99,235,.05);

    }

    .ac-bank-head > div { display:grid; gap:4px; }

    .ac-bank-head b { color:#172033; font-size:13px; }

    .ac-bank-head span { color:#718096; font-size:10px; }

    .ac-bank-warning {

      display:grid; gap:4px; margin-bottom:12px; padding:12px 14px; border:1px solid #f1c8cf;

      border-radius:12px; color:#933044; background:#fff3f5;

    }

    .ac-bank-warning b { font-size:11px; }

    .ac-bank-warning span { font-size:10px; line-height:1.45; }

    .ac-bank-disclaimer {

      display:flex; align-items:flex-start; gap:12px; padding:14px; border:1px solid #d8e3f4;

      border-radius:12px; background:#f5f8fd;

    }

    .ac-bank-disclaimer b { flex:0 0 auto; color:#2359a7; font-size:11px; }

    .ac-bank-disclaimer span { color:#68758a; font-size:10px; line-height:1.5; }

    .ac-table td.positive { color:#13795b; font-weight:800; }

    .ac-table td.negative { color:#a53745; font-weight:800; }

    .ac-kpi { position:relative; min-width:0; min-height:142px; padding:15px; border:1px solid var(--ac-border); border-radius:16px; background:#fff; box-shadow:0 3px 12px rgba(15,23,42,.035); }

    .ac-kpi.accent { border-color:#d8ddff; background:linear-gradient(145deg,#fff,#f8f8ff); }

    .ac-kpi-label { display:flex; align-items:flex-start; justify-content:space-between; gap:7px; min-height:27px; color:#526078; font-size:9px; font-weight:750; }

    .ac-kpi-value { margin:11px 0 9px; color:#0f172a; font-size:clamp(20px,1.65vw,28px); font-weight:850; line-height:1.05; letter-spacing:-.045em; overflow-wrap:anywhere; }

    .ac-kpi-meta { color:#909aaa; font-size:8px; line-height:1.4; }

    .ac-kpi-delta { display:inline-flex; align-items:center; width:max-content; max-width:100%; min-height:22px; margin-top:9px; padding:0 7px; border-radius:7px; font-size:8px; font-style:normal; font-weight:850; line-height:1.25; }

    .ac-kpi-delta.up,.ac-table-delta.up { color:#13795b; background:#eaf8f2; }

    .ac-kpi-delta.down,.ac-table-delta.down { color:#a53745; background:#fff0f2; }

    .ac-kpi-delta.flat,.ac-table-delta.flat { color:#526075; background:#f0f3f8; }

    .ac-kpi-delta.unavailable,.ac-table-delta.unavailable { color:#7f8a9d; background:#f5f7fa; }

    .ac-table-delta { display:inline-flex; align-items:center; min-height:24px; padding:0 8px; border-radius:8px; font-size:8px; font-weight:850; white-space:nowrap; }

    .ac-grid { display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); gap:12px; }

    .ac-span-12 { grid-column:span 12; }.ac-span-8 { grid-column:span 8; }.ac-span-7 { grid-column:span 7; }.ac-span-6 { grid-column:span 6; }.ac-span-5 { grid-column:span 5; }.ac-span-4 { grid-column:span 4; }

    .ac-panel { min-width:0; padding:16px; border:1px solid var(--ac-border); border-radius:16px; background:#fff; box-shadow:0 3px 12px rgba(15,23,42,.035); }

    .ac-panel-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:12px; }

    .ac-panel-head small,.ac-panel-head strong { display:block; }

    .ac-panel-head small { margin-bottom:3px; color:#9aa4b4; font-size:8px; font-weight:900; letter-spacing:.11em; text-transform:uppercase; }

    .ac-panel-head strong { color:#172033; font-size:14px; }

    .ac-panel-head span { color:#526078; font-size:9px; }

    .ac-empty { min-height:190px; display:grid; align-content:center; justify-items:center; gap:7px; padding:22px; text-align:center; border:1px dashed #dce2ec; border-radius:12px; background:#fafbfd; }

    .ac-empty b { font-size:12px; }.ac-empty span { max-width:440px; color:#7f8a9d; font-size:10px; line-height:1.5; }

    .ac-empty button { min-height:34px; padding:0 11px; border:1px solid #dce2ec; border-radius:8px; color:#31569f; background:#fff; font-size:9px; font-weight:800; cursor:pointer; }

    .ac-list { display:grid; }

    .ac-list-row { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:12px; min-height:54px; padding:9px 0; border-bottom:1px solid #edf0f5; }

    .ac-list-row:last-child { border-bottom:0; }

    .ac-list-row b,.ac-list-row span { display:block; overflow-wrap:anywhere; }

    .ac-list-row b { font-size:10px; }.ac-list-row span { margin-top:3px; color:#7f8a9c; font-size:9px; line-height:1.4; }

    .ac-pill { display:inline-flex; align-items:center; min-height:25px; padding:0 8px; border-radius:8px; color:#526075; background:#f0f3f8; font-size:8px; font-weight:850; white-space:nowrap; }

    .ac-pill.risk { color:#a53745; background:#fff0f2; }.ac-pill.warning { color:#9a6508; background:#fff6df; }.ac-pill.good { color:#13795b; background:#eaf8f2; }

    .ac-chart { min-height:300px; }.ac-chart .analytics-combined-chart { min-height:270px; margin-top:0; }.ac-chart .analytics-combined-chart svg { height:255px; }

    .ac-provider-split { display:grid; gap:14px; padding-top:4px; }

    .ac-provider-row { display:grid; grid-template-columns:104px minmax(0,1fr) auto; align-items:center; gap:10px; }

    .ac-provider-row b { font-size:10px; }.ac-provider-row strong { font-size:10px; white-space:nowrap; }

    .ac-track { height:6px; overflow:hidden; border-radius:99px; background:#edf0f5; }.ac-track i { display:block; height:100%; border-radius:inherit; background:var(--track,#2563eb); }

    .ac-table-wrap { width:100%; overflow:auto; border:1px solid #e8ecf2; border-radius:12px; }

    .ac-table { width:100%; min-width:820px; border-collapse:collapse; font-size:9px; }

    .ac-table th { position:sticky; top:0; z-index:1; padding:10px 11px; color:#7a8698; background:#f7f9fc; text-align:left; font-size:8px; letter-spacing:.04em; text-transform:uppercase; white-space:nowrap; }

    .ac-table td { padding:11px; border-top:1px solid #edf0f4; color:#5e6a7d; vertical-align:top; }

    .ac-table td strong { display:block; color:#172033; font-size:9.5px; overflow-wrap:anywhere; }.ac-table td span { display:block; margin-top:2px; color:#8a95a6; }

    .ac-rank { display:grid!important; place-items:center; width:24px; height:24px; margin:0!important; border-radius:8px; color:#1d4ed8!important; background:#edf4ff; font-size:9px!important; font-weight:900; }

    .ac-efficiency-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }

    .ac-efficiency-grid article { min-width:0; padding:14px; border:1px solid #e6ebf3; border-radius:12px; background:linear-gradient(145deg,#fbfdff,#f6f9ff); }

    .ac-efficiency-grid span,.ac-efficiency-grid strong,.ac-efficiency-grid small { display:block; }

    .ac-efficiency-grid span { color:#788599; font-size:8px; font-weight:900; letter-spacing:.06em; text-transform:uppercase; }

    .ac-efficiency-grid strong { margin-top:8px; color:#15233a; font-size:18px; line-height:1.1; overflow-wrap:anywhere; }

    .ac-efficiency-grid small { margin-top:5px; color:#929dad; font-size:8px; line-height:1.4; }

    .ac-sales-structure { display:grid; gap:9px; }

    .ac-sales-provider { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:5px 12px; padding:12px; border:1px solid #e5eaf2; border-radius:12px; background:#fbfcfe; }

    .ac-sales-provider b,.ac-sales-provider span,.ac-sales-provider strong,.ac-sales-provider small { display:block; }

    .ac-sales-provider b { color:#172033; font-size:10px; }

    .ac-sales-provider span { margin-top:4px; color:#7d899b; font-size:8px; line-height:1.4; }

    .ac-sales-provider strong { color:#172033; font-size:10px; text-align:right; white-space:nowrap; }

    .ac-sales-provider strong small { margin-top:3px; color:#2563eb; font-size:8px; }

    .ac-sales-share { grid-column:1/-1; height:7px; overflow:hidden; border-radius:99px; background:#e7edf6; }

    .ac-sales-share.compact { width:86px; height:5px; margin-top:5px; }

    .ac-sales-share i { display:block; width:var(--safe-percent); min-width:2px; height:100%; border-radius:inherit; background:linear-gradient(90deg,#2563eb,#5b45ee); }

    .ac-waterfall { min-height:300px; display:flex; align-items:flex-end; gap:10px; padding:30px 8px 10px; }

    .ac-waterfall-item { flex:1; min-width:64px; display:grid; align-content:end; gap:7px; text-align:center; }

    .ac-waterfall-bar { min-height:18px; display:grid; align-items:start; padding-top:5px; border-radius:8px 8px 3px 3px; color:#fff; background:#2563eb; font-size:8px; font-weight:850; }

    .ac-waterfall-item.negative .ac-waterfall-bar { background:#ee6478; }.ac-waterfall-item.total .ac-waterfall-bar { background:#18a979; }

    .ac-waterfall-item span { color:#697589; font-size:8px; line-height:1.3; }

    .ac-map-toolbar { display:grid; grid-template-columns:minmax(180px,230px) minmax(280px,1fr) auto auto; gap:12px; align-items:end; margin-bottom:14px; padding:14px; border:1px solid #dbe4f0; border-radius:15px; background:linear-gradient(145deg,#fff,#f8fbff); box-shadow:0 7px 22px rgba(45,67,105,.06); }

    .ac-map-toolbar label { display:grid; gap:6px; color:#78869b; font-size:8px; font-weight:900; letter-spacing:.08em; text-transform:uppercase; }

    .ac-map-toolbar select { width:100%; min-height:40px; border:1px solid #d8e2ef; border-radius:10px; background:#fff; color:var(--ac-text); padding:0 11px; font-size:11px; box-shadow:0 2px 7px rgba(48,70,105,.04); }

    .ac-map-segment,.ac-map-zoom { display:flex; align-items:center; gap:2px; min-height:40px; padding:3px; border:1px solid #d8e2ef; border-radius:11px; background:#f2f6fb; }

    .ac-map-segment button,.ac-map-zoom button { min-height:32px; padding:0 11px; border:0; border-radius:8px; color:#5e6d83; background:transparent; font-size:9px; font-weight:850; cursor:pointer; transition:color .16s ease,background .16s ease,box-shadow .16s ease; }

    .ac-map-segment button:hover,.ac-map-zoom button:hover { color:#1d4ed8; background:#fff; }

    .ac-map-segment button.active { color:#fff; background:#2563eb; box-shadow:0 3px 9px rgba(37,99,235,.25); }

    .ac-map-zoom output { min-width:46px; color:#334155; font-size:9px; font-weight:900; text-align:center; }

    .ac-map-zoom button[data-ac-map-zoom="reset"] { margin-left:2px; padding-inline:9px; border-left:1px solid #d8e2ef; border-radius:0 8px 8px 0; }

    .ac-map { position:relative; overflow:hidden; border:1px solid #d8e3f1; border-radius:18px; background:radial-gradient(circle at 52% 10%,#fff 0,#f5f9ff 38%,#eaf2fb 100%); box-shadow:inset 0 1px 0 rgba(255,255,255,.9); }

    .ac-map-stage { height:650px; overflow:auto; scrollbar-color:#b8c9df transparent; scrollbar-width:thin; overscroll-behavior:contain; }

    .ac-region-map { display:block; width:100%; min-width:1180px; height:auto; min-height:620px; transform-origin:top left; transition:width .2s ease; }

    .ac-region-map.zoom-125 { width:125%; }.ac-region-map.zoom-150 { width:150%; }.ac-region-map.zoom-175 { width:175%; }

    .ac-map-grid line { stroke:#b8cae0; stroke-width:1; stroke-dasharray:4 12; opacity:.32; pointer-events:none; }

    .ac-region-land { fill:url(#acRegionLand); stroke:#9fb5cf; stroke-width:3; stroke-linejoin:round; }

    .ac-map-districts { opacity:.63; pointer-events:none; }

    .ac-map-districts path { stroke:#fff; stroke-width:1.4; stroke-linejoin:round; }

    .ac-map-districts .district-1 { fill:#dceaff; }.ac-map-districts .district-2 { fill:#e4e8ff; }.ac-map-districts .district-3 { fill:#dbf1f2; }.ac-map-districts .district-4 { fill:#e4edff; }.ac-map-districts .district-5 { fill:#eee7ff; }.ac-map-districts .district-6 { fill:#e8edfb; }

    .ac-map-borders path { fill:none; stroke:#9eb2ca; stroke-width:1.2; stroke-dasharray:3 6; opacity:.68; pointer-events:none; }

    .ac-map-geo-labels text { fill:#72829a; font-size:10px; font-weight:850; letter-spacing:.08em; text-transform:uppercase; opacity:.76; pointer-events:none; }

    .ac-map-neighbours rect { fill:rgba(255,255,255,.72); stroke:#becde0; stroke-width:1.2; stroke-dasharray:5 5; }

    .ac-map-neighbours text { fill:#728097; font-size:10px; font-weight:850; letter-spacing:.05em; }

    .ac-map-source { position:absolute; top:16px; right:16px; z-index:4; display:flex; align-items:center; gap:9px; max-width:285px; padding:9px 11px; border:1px solid rgba(206,219,236,.95); border-radius:12px; background:rgba(255,255,255,.94); box-shadow:0 8px 22px rgba(44,66,101,.09); backdrop-filter:blur(10px); }

    .ac-map-source>i { width:9px; height:9px; flex:0 0 auto; border:3px solid #dce8ff; border-radius:50%; background:#2563eb; box-shadow:0 0 0 1px #9bb9f6; }

    .ac-map-source b,.ac-map-source span { display:block; }.ac-map-source b { color:#27364d; font-size:9px; }.ac-map-source span { margin-top:2px; color:#7b889b; font-size:8px; }

    .ac-region-point { cursor:pointer; outline:none; }

    .ac-region-leader { stroke:var(--region-color,#2563eb); stroke-width:1.2; stroke-dasharray:3 3; opacity:.46; pointer-events:none; }

    .ac-region-anchor { fill:#fff; stroke:var(--region-color,#2563eb); stroke-width:1.5; opacity:.86; pointer-events:none; }

    .ac-region-bubble { fill:var(--region-color,#2563eb); fill-opacity:.83; stroke:#fff; stroke-width:2.8; filter:drop-shadow(0 4px 6px color-mix(in srgb,var(--region-color,#2563eb) 34%,transparent)); transform-box:fill-box; transform-origin:center; transition:transform .18s ease,fill-opacity .18s ease,stroke-width .18s ease,filter .18s ease; }

    .ac-region-rank { fill:#fff; font-size:9px; font-weight:950; pointer-events:none; paint-order:stroke; stroke:rgba(27,49,85,.28); stroke-width:1.2px; }

    .ac-region-point:hover .ac-region-bubble,.ac-region-point:focus .ac-region-bubble,.ac-region-point.is-active .ac-region-bubble { fill-opacity:1; stroke-width:4; filter:brightness(.92) drop-shadow(0 6px 10px color-mix(in srgb,var(--region-color,#2563eb) 45%,transparent)); transform:scale(1.13); }

    .ac-region-point:hover .ac-region-rank,.ac-region-point:focus .ac-region-rank,.ac-region-point.is-active .ac-region-rank { font-size:10px; }

    .ac-region-hover-card { opacity:0; pointer-events:none; transition:opacity .16s ease; }

    .ac-region-point:hover .ac-region-hover-card,.ac-region-point:focus .ac-region-hover-card,.ac-region-point.is-active .ac-region-hover-card { opacity:1; }

    .ac-region-hover-card rect { fill:rgba(17,32,57,.96); stroke:#fff; stroke-width:1; rx:9; filter:drop-shadow(0 6px 10px rgba(20,38,69,.24)); }

    .ac-region-hover-name { fill:#fff; font-size:11px; font-weight:850; }

    .ac-region-hover-value { fill:#d9e6ff; font-size:9px; font-weight:700; }

    .ac-region-detail { margin-bottom:12px; padding:14px; border:1px solid #d9e4f2; border-radius:14px; background:linear-gradient(145deg,#f9fbff,#eef4ff); box-shadow:0 7px 20px rgba(44,75,122,.07); }

    .ac-region-detail-head { display:flex; align-items:flex-start; justify-content:space-between; gap:8px; margin-bottom:12px; }.ac-region-detail-head span { display:block; color:#8290a6; font-size:8px; font-weight:850; letter-spacing:.08em; text-transform:uppercase; }.ac-region-detail-head b { display:block; margin-top:3px; color:#18243a; font-size:13px; }.ac-region-detail-head strong { padding:5px 8px; border-radius:99px; color:var(--region-color,#174dcc); background:#fff; font-size:8px; white-space:nowrap; box-shadow:0 2px 8px rgba(41,69,111,.08); }

    .ac-region-detail-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; }.ac-region-detail-grid div { min-height:50px; padding:8px; border:1px solid rgba(211,223,240,.9); border-radius:10px; background:rgba(255,255,255,.78); }.ac-region-detail-grid span { display:block; color:#8995a7; font-size:7px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; }.ac-region-detail-grid b { display:block; margin-top:5px; overflow:hidden; color:#1d2b44; font-size:11px; text-overflow:ellipsis; white-space:nowrap; }

    .ac-region-share-total { display:flex; align-items:flex-end; justify-content:space-between; gap:10px; margin-bottom:8px; }.ac-region-share-total strong { color:#174dcc; font-size:24px; line-height:1; }.ac-region-share-total span { color:#69768b; font-size:9px; text-align:right; }

    .ac-region-share-stack { display:flex; width:100%; height:14px; overflow:hidden; margin-bottom:12px; border:2px solid #fff; border-radius:99px; background:#e7edf6; box-shadow:0 0 0 1px #dbe5f2; }.ac-region-share-stack i { width:var(--region-share); min-width:2px; height:100%; background:var(--region-color); transition:filter .16s ease,opacity .16s ease; }.ac-region-share-stack i:hover { filter:brightness(.86); }

    .ac-region-share-chart { display:grid; gap:6px; max-height:355px; overflow:auto; padding-right:3px; scrollbar-width:thin; }

    .ac-region-share-row { display:grid; grid-template-columns:minmax(88px,1fr) 47px; gap:5px 9px; padding:8px; border:1px solid transparent; border-radius:9px; outline:none; transition:border-color .16s ease,background .16s ease,transform .16s ease; }

    .ac-region-share-row:hover,.ac-region-share-row:focus,.ac-region-share-row.is-active { border-color:color-mix(in srgb,var(--region-color,#2563eb) 48%,white); background:color-mix(in srgb,var(--region-color,#2563eb) 8%,white); transform:translateX(2px); }

    .ac-region-share-row b { overflow:hidden; color:#26344d; font-size:9px; text-overflow:ellipsis; white-space:nowrap; }.ac-region-share-row strong { color:var(--region-color,#174dcc); font-size:9px; text-align:right; }

    .ac-region-share-row span { color:#7a879a; font-size:8px; }.ac-region-share-track { grid-column:1 / -1; height:6px; overflow:hidden; border-radius:99px; background:#e7edf6; }

    .ac-region-share-track i { display:block; width:var(--region-share); height:100%; min-width:2px; border-radius:inherit; background:var(--region-color,#2563eb); transition:width .2s ease,filter .16s ease; }.ac-region-share-row.is-active .ac-region-share-track i { filter:saturate(1.35) brightness(.9); }

    .ac-map-legend { position:absolute; left:16px; top:16px; z-index:3; display:flex; flex-wrap:wrap; align-items:center; gap:9px 14px; max-width:520px; padding:9px 11px; border:1px solid #d5e1ef; border-radius:11px; color:#5d6d85; background:rgba(255,255,255,.94); font-size:9px; font-weight:750; box-shadow:0 7px 20px rgba(53,75,111,.08); backdrop-filter:blur(9px); }

    .ac-map-legend span { display:flex; align-items:center; gap:7px; }.ac-map-legend i { display:block; width:13px; height:13px; flex:0 0 auto; border:2px solid #fff; border-radius:50%; background:rgba(37,99,235,.75); box-shadow:0 0 0 1px #aebfd6; }

    .ac-map-legend i.anchor { width:9px; height:9px; border:2px solid #2563eb; background:#fff; box-shadow:none; }

    .ac-map-note { display:grid; grid-template-columns:minmax(160px,.8fr) minmax(240px,1fr) minmax(340px,1.6fr); gap:12px; align-items:center; padding:12px 15px; border-top:1px solid #d9e4f0; color:#66758b; background:rgba(255,255,255,.96); font-size:9px; }

    .ac-map-note b { color:#24334b; font-size:10px; }.ac-map-note span { font-weight:750; }.ac-map-note small { color:#7d899b; font-size:8px; line-height:1.5; }

    .ac-table tr[data-ac-region-key] { cursor:pointer; transition:background .16s ease; }.ac-table tr[data-ac-region-key]:hover,.ac-table tr[data-ac-region-key].is-active { background:#f2f7ff; }

    .ac-table td small { display:block; margin-top:3px; color:#8a96a7; font-size:8px; }

    .ac-region-rank-pill { display:grid; place-items:center; width:24px; height:24px; border-radius:8px; color:#fff; background:var(--region-color,#2563eb); font-size:9px; font-weight:900; box-shadow:0 3px 8px color-mix(in srgb,var(--region-color,#2563eb) 25%,transparent); }

    .ac-table-share { width:86px; height:5px; overflow:hidden; margin-top:5px; border-radius:99px; background:#e7edf6; }.ac-table-share i { display:block; width:var(--region-share); min-width:2px; height:100%; border-radius:inherit; background:var(--region-color,#2563eb); }

    .ac-recommendations { display:grid; gap:8px; }.ac-recommendation { padding:11px; border:1px solid #e7ebf2; border-radius:11px; background:#fbfcfe; }.ac-recommendation b,.ac-recommendation span { display:block; }.ac-recommendation b { font-size:10px; }.ac-recommendation span { margin-top:4px; color:#7d889a; font-size:9px; line-height:1.45; }

    .ac-skeleton { position:relative; min-height:118px; overflow:hidden; background:#eef2f7; }

    .ac-skeleton::after { content:""; position:absolute; inset:0; transform:translateX(-100%); background:linear-gradient(90deg,transparent,rgba(255,255,255,.85),transparent); animation:analytics-shimmer 1.15s infinite; }

    .ac-brand b,.ac-brand span{display:block}.ac-brand b{color:#fff;font-size:12px;letter-spacing:.12em}.ac-brand span{margin-top:3px;color:#7f8da5;font-size:9px}

    .ac-nav i{width:20px;height:20px;display:grid;place-items:center;font-style:normal;color:inherit}

    .ac-heading h2{margin:0;color:#101827;font-size:clamp(25px,2.1vw,34px);line-height:1.08;letter-spacing:-.045em}.ac-heading p{margin:6px 0 0}

    .ac-business-state.ok{color:#13795b;border-color:#cce8dd;background:#edf9f4}.ac-business-state.unknown{color:#667085;border-color:#d8dee8;background:#f5f7fa}

    .ac-market-switch button.active.ozon{color:#fff;background:var(--ac-blue)}.ac-market-switch button.active.wb{color:#fff;background:var(--ac-wb)}.ac-market-switch button.active.production{color:#fff;background:#16865c}

    .ac-filterbar button,.ac-toolbar button{min-height:38px;padding:0 14px;border:0;border-radius:9px;color:#fff;background:#2563eb;font-size:10px;font-weight:800;cursor:pointer}.ac-period-label{align-self:center;color:#526078;font-size:10px;font-weight:750}

    .ac-mobile-nav{display:none}

    .ac-kpi>span{display:block;min-height:27px;color:#526078;font-size:9px;font-weight:750}.ac-kpi>strong{display:block;margin:11px 0 9px;color:#0f172a;font-size:clamp(20px,1.65vw,28px);font-weight:850;line-height:1.05;letter-spacing:-.045em;overflow-wrap:anywhere}.ac-kpi>small{display:block;color:#909aaa;font-size:8px;line-height:1.4}

    .ac-panel.span-12{grid-column:span 12}.ac-panel.span-8{grid-column:span 8}.ac-panel.span-6{grid-column:span 6}.ac-panel.span-4{grid-column:span 4}.ac-panel-head h3{margin:0;color:#172033;font-size:14px}

    .ac-list-row>strong{color:#526075;font-size:9px;white-space:normal;text-align:right}.ac-panel-copy{color:#526078;font-size:10px;line-height:1.55}

    .ac-toolbar{display:flex;align-items:end;gap:12px;margin-bottom:12px;padding:12px;border:1px solid var(--ac-border);border-radius:13px;background:#fff}.ac-toolbar>span{margin-left:auto;color:#526078;font-size:10px;font-weight:750}.ac-page-search{display:grid;gap:5px;flex:1;color:#526078;font-size:8px;font-weight:900;letter-spacing:.05em;text-transform:uppercase}.ac-page-search input{min-height:40px;padding:0 11px;border:1px solid var(--ac-border);border-radius:9px;background:#fafbfd;color:#111827;font-size:11px}

    .ac-waterfall>div{flex:1;min-width:72px;display:grid;align-content:end;gap:7px;text-align:center}.ac-waterfall>div i{display:block;height:var(--bar);min-height:18px;border-radius:8px 8px 3px 3px;background:#2563eb}.ac-waterfall>div.negative i{background:#ee6478}.ac-waterfall>div.total i{background:#18a979}.ac-waterfall>div span{color:#697589;font-size:8px}.ac-waterfall>div strong{font-size:9px;overflow-wrap:anywhere}

    .ac-map>.ac-empty{position:absolute;left:18px;right:18px;bottom:16px;min-height:110px;background:rgba(255,255,255,.92)}

    @media (max-width:1380px) { .ac-kpis{grid-template-columns:repeat(3,minmax(0,1fr));}.ac-span-8,.ac-span-7,.ac-panel.span-8{grid-column:span 12}.ac-span-5,.ac-span-4,.ac-panel.span-4{grid-column:span 6} }

    @media (max-width:899px) {

      body.web-mode.analytics-mode .body{padding:12px 14px 90px!important}.ac-shell{display:block;min-height:0;border-radius:14px}.ac-sidebar{position:sticky;top:0;z-index:30;padding:8px;background:rgba(247,249,253,.96);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}.ac-brand,.ac-sidebar-status,.ac-nav{display:none}.ac-mobile-nav{display:grid;gap:5px;color:#62708a;font-size:10px;font-weight:850;letter-spacing:.04em;text-transform:uppercase}.ac-mobile-nav select{width:100%;min-height:52px;padding:0 42px 0 14px;border:1px solid var(--ac-border);border-radius:12px;background:#fff;color:#111827;font-size:15px;font-weight:750;text-transform:none;box-shadow:0 6px 18px rgba(25,44,78,.08)}.ac-topbar{flex-wrap:wrap;padding:10px}.ac-search{order:2;flex-basis:100%;max-width:none}.ac-market-switch{margin-left:0}.ac-content{padding:14px}.ac-heading{align-items:flex-start}.ac-filterbar,.ac-filterbar.has-custom-range{grid-template-columns:1fr}.ac-filter-dates{grid-template-columns:1fr 1fr}.ac-map-toolbar{grid-template-columns:1fr 1fr}.ac-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.ac-efficiency-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ac-span-6,.ac-span-5,.ac-span-4,.ac-panel.span-8,.ac-panel.span-6,.ac-panel.span-4{grid-column:span 12}.ac-panel-head{display:grid;grid-template-columns:minmax(0,1fr);gap:4px}.ac-panel-head span{text-align:left;overflow-wrap:anywhere}.ac-map-stage{height:560px}.ac-map-source{top:68px;right:12px}.ac-map-legend{left:12px;right:12px;max-width:none}.ac-map-note{grid-template-columns:1fr 1fr}.ac-map-note small{grid-column:1/-1}

    }

    @media (max-width:520px) { .ac-kpis{grid-template-columns:1fr 1fr;gap:8px}.ac-kpi{min-height:116px;padding:12px}.ac-kpi-value{font-size:21px}.ac-heading{display:grid}.ac-business-state{width:max-content}.ac-sync{width:100%}.ac-topbar{display:grid;grid-template-columns:1fr}.ac-market-switch{width:100%}.ac-market-switch button{flex:1}.ac-search{order:initial}.ac-content{padding:12px}.ac-filter-dates,.ac-efficiency-grid{grid-template-columns:1fr}.ac-provider-row{grid-template-columns:86px minmax(0,1fr)}.ac-provider-row strong{grid-column:2}.ac-waterfall{overflow-x:auto}.ac-waterfall-item{flex:0 0 72px}.ac-map-toolbar{grid-template-columns:1fr}.ac-map-segment,.ac-map-zoom{width:100%}.ac-map-segment button{flex:1}.ac-map-source{top:84px;max-width:230px}.ac-map-legend{display:grid;gap:6px}.ac-map-note{grid-template-columns:1fr}.ac-map-note small{grid-column:auto}.admin-segment-row{display:flex;overflow-x:auto;grid-template-columns:none;scroll-snap-type:x proximity;padding-bottom:4px}.admin-segment-row .segment-button{flex:0 0 auto;min-width:112px;white-space:nowrap;overflow-wrap:normal;word-break:normal;scroll-snap-align:start}}



    /* Canonical responsive layer. Keep this block last so legacy rules cannot

       silently override the desktop and mobile application shells. */

    :where(button, [role="button"], .tab, .nav-item, .workspace-tab) {

      touch-action: manipulation;

    }



    :where(button, [role="button"], input:not([type="checkbox"]):not([type="radio"]), select, textarea) {

      min-height: 48px;

    }



    :where(.tab, .nav-item, .workspace-tab, .bottom-nav button) {

      min-height: 44px;

    }



    :where(button, input, select, textarea, [role="button"][tabindex]):focus-visible {

      outline: 3px solid rgba(25, 89, 243, .28);

      outline-offset: 2px;

    }



    @media (max-width: 899px) {

      body.web-mode .app-shell,

      body.web-mode .screen,

      body.web-mode .screen-content {

        min-width: 0;

        max-width: 100%;

      }



      body.web-mode .screen {

        padding-left: 14px;

        padding-right: 14px;

      }



      body.web-mode .page-heading h1,

      body.web-mode .screen-title {

        font-size: clamp(26px, 8vw, 34px);

        line-height: 1.05;

      }



      body.web-mode .tabs,

      body.web-mode .segmented,

      body.web-mode .workspace-tabs {

        gap: 4px;

        padding: 4px;

      }



      body.web-mode .tab,

      body.web-mode .segmented button,

      body.web-mode .workspace-tab {

        min-height: 44px;

        padding: 9px 10px;

        font-size: 12px;

        line-height: 1.15;

      }



      body.web-mode .operations-kpis {

        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 9px;

      }



      body.web-mode .operations-kpi {

        min-height: 116px;

        padding: 14px;

        border-radius: 14px;

      }



      body.web-mode .operations-kpi span {

        font-size: 10px;

        letter-spacing: .045em;

      }



      body.web-mode .operations-kpi strong {

        margin: 11px 0 6px;

        font-size: 27px;

      }



      body.web-mode .operations-kpi small {

        font-size: 11px;

        line-height: 1.3;

      }



      body.web-mode .operations-actions {

        grid-template-columns: 1fr;

      }



      body.web-mode .operations-actions button {

        min-height: 48px;

        font-size: 13px;

      }



      body.web-mode .orders-board {

        display: grid;

        grid-template-columns: none;

        grid-auto-flow: column;

        grid-auto-columns: min(86vw, 390px);

        gap: 12px;

        width: calc(100% + 14px);

        margin-right: -14px;

        padding: 2px 14px 14px 1px;

        overflow-x: auto;

        overflow-y: visible;

        scroll-snap-type: x mandatory;

        scroll-padding-left: 1px;

        overscroll-behavior-inline: contain;

        -webkit-overflow-scrolling: touch;

      }



      body.web-mode .orders-board > * {

        min-width: 0;

        scroll-snap-align: start;

        scroll-snap-stop: always;

      }



      body.web-mode .form-grid,

      body.web-mode .details-grid,

      body.web-mode .admin-grid,

      body.web-mode .analytics-grid {

        grid-template-columns: minmax(0, 1fr);

      }



      body.web-mode .card,

      body.web-mode .panel,

      body.web-mode .form-card {

        max-width: 100%;

        border-radius: 16px;

      }



      body.web-mode .table-wrap,

      body.web-mode .data-table-wrap {

        max-width: 100%;

        overflow-x: auto;

        overscroll-behavior-inline: contain;

        -webkit-overflow-scrolling: touch;

      }

    }



    @media (max-width: 430px) {

      body.web-mode .operations-kpi {

        min-height: 108px;

        padding: 12px;

      }



      body.web-mode .operations-kpi strong {

        font-size: 24px;

      }



      body.web-mode .orders-board {

        grid-auto-columns: calc(100vw - 42px);

      }

    }



    /* Shared loading and connection states. */

    #connectionView[hidden] { display: none !important; }

    #connectionView:not([hidden]) {

      min-height: 100dvh;

      display: grid;

      place-items: center;

      padding: 24px;

    }



    #connectionView:not([hidden]) .connection-card,

    #connectionView:not([hidden]) [role="status"] {

      width: min(100%, 460px);

      padding: 22px;

      border: 1px solid var(--line);

      border-radius: 20px;

      background: rgba(255,255,255,.92);

      box-shadow: var(--shadow-soft), var(--inset-shadow);

    }



    #connectionView:not([hidden]) [role="status"]::before {

      content: "";

      display: block;

      width: 42px;

      height: 4px;

      margin-bottom: 16px;

      border-radius: 999px;

      background: linear-gradient(90deg, var(--accent), #8eb2ff, var(--accent));

      background-size: 200% 100%;

      animation: connection-progress 1.2s linear infinite;

    }



    @keyframes connection-progress {

      to { background-position: -200% 0; }

    }



    /* Consistent semantic statuses across production, warehouse and reports. */

    :where(.status, .status-pill, .badge)[data-status="free"],

    :where(.status, .status-pill, .badge).free {

      color: #1746b6;

      border-color: rgba(25,89,243,.24);

      background: #edf3ff;

    }



    :where(.status, .status-pill, .badge)[data-status="active"],

    :where(.status, .status-pill, .badge).active,

    :where(.status, .status-pill, .badge).in-progress {

      color: #8c5300;

      border-color: rgba(242,162,58,.32);

      background: #fff5e6;

    }



    :where(.status, .status-pill, .badge)[data-status="done"],

    :where(.status, .status-pill, .badge).done,

    :where(.status, .status-pill, .badge).completed {

      color: #176b43;

      border-color: rgba(49,168,107,.28);

      background: #eaf8f1;

    }



    :where(.status, .status-pill, .badge)[data-status="blocked"],

    :where(.status, .status-pill, .badge).blocked,

    :where(.status, .status-pill, .badge).overdue {

      color: #a92d3a;

      border-color: rgba(221,79,93,.30);

      background: #fff0f2;

    }



    @media (max-width: 899px) {

      body.web-mode .web-appbar {

        min-height: 58px;

        gap: 8px;

        padding: max(8px, env(safe-area-inset-top)) 12px 8px;

      }



      body.web-mode .web-role-block {

        display: none !important;

      }



      body.web-mode .workspace-tabs {

        position: sticky;

        top: 0;

        z-index: 20;

        display: flex;

        width: 100%;

        overflow-x: auto;

        scroll-snap-type: x proximity;

        scrollbar-width: none;

        background: rgba(247,249,253,.94);

        backdrop-filter: blur(14px);

        -webkit-backdrop-filter: blur(14px);

      }



      body.web-mode .workspace-tabs::-webkit-scrollbar { display: none; }



      body.web-mode .workspace-tab {

        flex: 0 0 auto;

        min-width: 148px;

        scroll-snap-align: start;

      }



      body.web-mode .bottom-nav {

        padding-bottom: max(8px, env(safe-area-inset-bottom));

        background: rgba(255,255,255,.95);

        backdrop-filter: blur(16px);

        -webkit-backdrop-filter: blur(16px);

      }



      body.web-mode :where(.form-actions, .create-actions, .wizard-actions, .action-row):has(.primary) {

        position: sticky;

        bottom: calc(68px + env(safe-area-inset-bottom));

        z-index: 12;

        padding: 8px;

        border: 1px solid var(--line);

        border-radius: 14px;

        background: rgba(255,255,255,.94);

        box-shadow: 0 10px 30px rgba(16,23,34,.14);

        backdrop-filter: blur(12px);

        -webkit-backdrop-filter: blur(12px);

      }



      body.web-mode :where(.warehouse-map, .storage-map, .location-grid) {

        max-width: 100%;

        overflow-x: auto;

        overscroll-behavior-inline: contain;

        scroll-snap-type: x proximity;

        -webkit-overflow-scrolling: touch;

      }



      body.web-mode :where(.warehouse-cell, .storage-cell, [data-location-code]) {

        min-width: 116px;

        min-height: 82px;

        scroll-snap-align: start;

      }



      body.web-mode :where(.employee-card, .staff-card) {

        padding: 14px;

        border-radius: 15px;

      }



      body.web-mode :where(.employee-card, .staff-card) :where(button, .button) {

        min-height: 44px;

      }

    }



    @media (prefers-reduced-motion: reduce) {

      *, *::before, *::after {

        scroll-behavior: auto !important;

        animation-duration: .01ms !important;

        animation-iteration-count: 1 !important;

        transition-duration: .01ms !important;

      }

    }



    @media (min-width: 900px) and (max-width: 1100px) {

      body.web-mode .web-role-block {

        display: none !important;

      }



      body.web-mode .web-appbar,

      body.web-mode .workspace-tabs {

        min-width: 0;

      }



      body.web-mode .operations-kpis {

        grid-template-columns: repeat(2, minmax(0, 1fr));

      }

    }

    .marketplace-product-avatar {

      width: 48px; height: 58px; flex: 0 0 48px; position: relative;

      display: inline-grid; place-items: center; overflow: hidden;

      border: 1px solid rgba(25, 54, 112, .12); border-radius: 12px;

      background: linear-gradient(145deg, #f8faff, #edf2fb); color: #718096;

      font-size: 18px;

    }

    .marketplace-product-avatar img {

      position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%;

      object-fit: contain; padding: 3px; background: #fff;

    }

    .marketplace-product-avatar.compact { width: 34px; height: 42px; flex-basis: 34px; border-radius: 9px; }

    .marketplace-product-avatar.large {

      width: 92px; height: 116px; flex-basis: 92px; border-radius: 14px; background: #fff;

    }

    .marketplace-product-heading, .marketplace-table-product {

      display: flex; align-items: center; gap: 11px; min-width: 0;

    }

    .marketplace-product-heading > div, .marketplace-table-product > span:last-child { min-width: 0; }

    .marketplace-product-heading strong, .marketplace-table-product strong {

      display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;

    }

    .marketplace-variant-grid {

      display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px;

    }

    .marketplace-color-sections { display: grid; gap: 20px; }

    .marketplace-color-section { display: grid; gap: 10px; }

    .marketplace-color-heading {

      display: flex; align-items: center; justify-content: space-between; gap: 12px;

      padding: 10px 13px; border-left: 4px solid #2462ec; border-radius: 0 11px 11px 0;

      background: linear-gradient(90deg, rgba(35, 96, 236, .10), rgba(35, 96, 236, .025));

    }

    .marketplace-color-heading b { font-size: 14px; }

    .marketplace-color-heading span { color: var(--muted); font-size: 11px; font-weight: 800; }

    .marketplace-product-card {

      min-width: 0; min-height: 148px; padding: 15px !important;

      display: grid !important; grid-template-columns: 92px minmax(0, 1fr) auto;

      align-items: center !important; gap: 15px !important; text-align: left;

    }

    .marketplace-product-card-body {

      display: grid; align-content: center; gap: 8px; min-width: 0;

    }

    .marketplace-product-card .product-title { display: block; min-width: 0; }

    .marketplace-product-card .product-title b {

      display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2;

      -webkit-box-orient: vertical; font-size: 16px; line-height: 1.22;

    }

    .marketplace-product-primary-meta,

    .marketplace-product-commercial {

      display: flex; flex-wrap: wrap; gap: 7px 14px; color: var(--ink);

      font-size: 13px; font-weight: 750;

    }

    .marketplace-product-primary-meta span,

    .marketplace-product-commercial span {

      display: inline-flex; align-items: center; min-height: 26px; padding: 4px 8px;

      border-radius: 8px; background: rgba(238, 243, 252, .86);

    }

    .marketplace-product-secondary-meta {

      overflow: hidden; color: var(--muted); font-size: 12px; line-height: 1.4;

      text-overflow: ellipsis; white-space: nowrap;

    }

    .marketplace-card-arrow { align-self: start; margin-top: 2px; }

    .marketplace-stock-section { display: grid; gap: 14px; }

    .marketplace-stock-filters {

      display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); gap: 12px;

      padding: 15px; border: 1px solid rgba(35, 75, 160, .12); border-radius: 15px;

      background: rgba(255, 255, 255, .78);

    }

    .marketplace-stock-filters label { display: grid; gap: 6px; min-width: 0; }

    .marketplace-stock-filters label > span {

      color: var(--muted); font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: .04em;

    }

    .marketplace-stock-filters select { width: 100%; }

    .marketplace-chart-panel {

      padding: 20px !important; display: grid; gap: 18px; min-height: 430px;

    }

    .marketplace-chart-head {

      display: flex; align-items: flex-start; justify-content: space-between; gap: 18px;

    }

    .marketplace-chart-summary { display: grid; gap: 6px; }

    .marketplace-chart-summary > span {

      color: var(--muted); font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: .06em;

    }

    .marketplace-chart-summary strong { font-size: clamp(26px, 3vw, 40px); line-height: 1; }

    .marketplace-chart-summary small { color: var(--muted); font-size: 12px; }

    .marketplace-chart-switch {

      display: inline-grid; grid-template-columns: repeat(2, minmax(130px, 1fr)); gap: 4px;

      padding: 4px; border: 1px solid var(--line); border-radius: 13px; background: rgba(238, 242, 249, .9);

    }

    .marketplace-chart-switch button {

      min-height: 38px; padding: 8px 13px; border: 0; border-radius: 9px;

      background: transparent; color: var(--muted); font: inherit; font-size: 12px; font-weight: 850; cursor: pointer;

    }

    .marketplace-chart-switch button.active {

      color: #fff; background: linear-gradient(135deg, #2765f4, #1144c8); box-shadow: 0 8px 18px rgba(25, 77, 207, .22);

    }

    .marketplace-chart-canvas {

      min-height: 300px; padding: 12px 8px 0; border-radius: 15px;

      background: linear-gradient(180deg, rgba(243, 247, 255, .78), rgba(255, 255, 255, .32));

    }

    .marketplace-chart-canvas .marketplace-line-chart { min-height: 280px; }

    .marketplace-chart-canvas .marketplace-line-chart svg { width: 100%; height: 280px; overflow: visible; }

    .marketplace-chart-note { color: var(--muted); font-size: 12px; }

    .marketplace-line-chart { position: relative; }

    .chart-point-hit { fill: transparent; stroke: transparent; pointer-events: all; cursor: crosshair; }

    .marketplace-point-tooltip {

      position: absolute; left: 50%; top: 10px; z-index: 5; min-width: 152px; padding: 9px 11px;

      border-radius: 10px; background: #111827; color: #fff;

      box-shadow: 0 10px 26px rgba(15, 23, 42, .28); pointer-events: none;

      transform: translateX(-50%); text-align: center;

    }

    .marketplace-point-tooltip[hidden] { display: none !important; }

    .marketplace-point-tooltip b { display: block; font-size: 13px; white-space: nowrap; }

    .marketplace-point-tooltip span { display: block; margin-top: 3px; color: #cbd5e1; font-size: 11px; }

    .marketplace-date-range {

      display: grid; grid-template-columns: repeat(2, minmax(150px, 1fr)); gap: 10px; min-width: min(100%, 330px);

    }

    .marketplace-date-range label { display: grid; gap: 5px; }

    .marketplace-date-range label > span {

      color: var(--muted); font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .05em;

    }

    .marketplace-date-range input { width: 100%; min-height: 42px; }

    .marketplace-stock-grid {

      display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;

    }

    .marketplace-stock-card {

      min-width: 0; padding: 14px !important; display: grid !important;

      grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center !important; gap: 12px !important;

    }

    .marketplace-stock-card[hidden] { display: none !important; }

    .marketplace-stock-card-body { display: grid; gap: 7px; min-width: 0; text-align: left; }

    .marketplace-stock-card-body b {

      overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px;

    }

    .marketplace-stock-card-body > small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

    .marketplace-stock-breakdown { display: flex; flex-wrap: wrap; gap: 6px; }

    .marketplace-stock-breakdown span {

      padding: 4px 7px; border-radius: 7px; background: rgba(237, 242, 250, .9);

      color: var(--muted); font-size: 11px; font-weight: 750;

    }

    .marketplace-stock-sources {

      display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px;

    }

    .marketplace-stock-sources > span {

      min-width: 0; padding: 7px 9px; display: grid; gap: 2px;

      border-radius: 9px; background: rgba(237, 242, 250, .9);

    }

    .marketplace-stock-sources small { color: var(--muted); font-size: 10px; font-weight: 800; }

    .marketplace-stock-sources b { font-size: 12px; overflow-wrap: anywhere; }

    .marketplace-stock-sources .unknown { background: #fff4e3; }

    .marketplace-stock-result { display: grid; justify-items: end; gap: 7px; }

    .marketplace-stock-result > small { color: var(--muted); font-size: 10px; font-weight: 800; }

    .marketplace-stock-level.enough { color: #176b44; background: #e1f4e9; }

    .marketplace-stock-level.low { color: #9a5a00; background: #fff0d6; }

    .marketplace-stock-level.absent { color: #b42335; background: #ffe4e8; }

    .marketplace-stock-level.critical { color: #a3172b; background: #ffdce2; }

    .marketplace-stock-level.unknown { color: #7a4b00; background: #fff0d6; }

    .marketplace-stock-level.inactive { color: #596273; background: #eef1f5; }

    .marketplace-stock-detail-summary {

      margin: 14px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;

    }

    .marketplace-stock-source-card { padding: 17px !important; display: grid; gap: 7px; }

    .marketplace-stock-source-card > span {

      color: var(--muted); font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: .05em;

    }

    .marketplace-stock-source-card strong { font-size: clamp(23px, 3vw, 34px); line-height: 1; }

    .marketplace-stock-source-card small { color: var(--muted); font-size: 11px; }

    .marketplace-stock-alerts {

      margin: 14px 0; padding: 14px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px;

      border-left: 4px solid #d92d48; border-radius: 0 13px 13px 0; background: #fff0f2;

    }

    .marketplace-stock-alerts b { margin-right: 4px; color: #9f1231; font-size: 12px; }

    .marketplace-stock-alerts span {

      padding: 5px 8px; border-radius: 8px; background: rgba(255,255,255,.8); color: #8f1d34; font-size: 11px; font-weight: 750;

    }

    .marketplace-stock-alerts.ok { border-left-color: #239362; background: #e9f7ef; }

    .marketplace-stock-alerts.ok b, .marketplace-stock-alerts.ok span { color: #176b44; }

    .marketplace-stock-detail-columns {

      margin: 14px 0 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;

    }

    .marketplace-stock-detail-card { min-width: 0; padding: 16px !important; align-content: start; }

    .marketplace-stock-location-list { display: grid; gap: 8px; }

    .marketplace-stock-location {

      min-width: 0; padding: 10px 11px; display: grid; grid-template-columns: minmax(0, 1fr) auto auto;

      align-items: center; gap: 9px; border: 1px solid rgba(35, 75, 160, .1); border-radius: 11px;

      background: rgba(247, 249, 253, .82);

    }

    .marketplace-stock-location > div { min-width: 0; display: grid; gap: 3px; }

    .marketplace-stock-location > div b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }

    .marketplace-stock-location > div span { color: var(--muted); font-size: 10px; }

    .marketplace-stock-location > strong { font-size: 12px; white-space: nowrap; }

    .marketplace-stock-production-totals {

      margin-bottom: 10px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px;

    }

    .marketplace-stock-production-totals span {

      padding: 8px; display: grid; gap: 3px; border-radius: 9px; background: rgba(237, 242, 250, .9);

      color: var(--muted); font-size: 10px;

    }

    .marketplace-stock-production-totals b { color: var(--ink); font-size: 13px; }

    .marketplace-stock-source-unavailable {

      padding: 14px; display: grid; gap: 5px; border-radius: 11px; background: #fff4e3;

    }

    .marketplace-stock-source-unavailable b { color: #8a5200; font-size: 12px; }

    .marketplace-stock-source-unavailable span { color: var(--muted); font-size: 11px; }

    .marketplace-stock-empty { display: none; }

    .marketplace-stock-empty.visible { display: block; }

    .marketplace-menu-strip {

      padding: 14px !important; gap: 5px !important; align-content: start;

      border: 1px solid rgba(25, 54, 112, .10); border-radius: 18px;

      background: rgba(255, 255, 255, .86); box-shadow: 0 12px 34px rgba(35, 61, 115, .08);

    }

    .marketplace-menu-label {

      margin: 10px 9px 5px; color: #526078; font-size: 9px; font-weight: 900;

      letter-spacing: .12em; text-transform: uppercase;

    }

    .marketplace-menu-label:first-child { margin-top: 2px; }

    .marketplace-menu-link, .marketplace-provider-menu-button {

      width: 100%; min-height: 42px; padding: 9px 11px !important; display: flex !important;

      align-items: center; gap: 10px; border: 0; border-radius: 11px !important;

      background: transparent; color: #566276; font-size: 12px; font-weight: 800;

      text-align: left; cursor: pointer;

    }

    .marketplace-menu-link:hover, .marketplace-provider-menu-button:hover { background: #f0f4fc; color: #1748c9; }

    .marketplace-menu-link.active, .marketplace-provider-menu-button.active {

      color: #fff !important; background: linear-gradient(135deg, #2364f5, #0f43c7) !important;

      box-shadow: 0 8px 18px rgba(27, 78, 204, .22);

    }

    .marketplace-menu-icon {

      width: 24px; height: 24px; flex: 0 0 24px; display: inline-grid; place-items: center;

      border-radius: 7px; background: rgba(40, 91, 211, .09); color: #2355ca; font-size: 12px;

    }

    .active .marketplace-menu-icon { background: rgba(255,255,255,.18); color: #fff; }

    .marketplace-provider-menu-button small { margin-left: auto; color: #526078; font-size: 9px; }

    .marketplace-provider-menu-button.active small { color: rgba(255,255,255,.75); }

    .marketplace-provider-menu-button:disabled { opacity: .52; cursor: not-allowed; }

    .marketplace-line-chart { width: 100%; min-height: 230px; display: grid; align-items: center; }

    .marketplace-line-chart svg { width: 100%; height: 230px; overflow: visible; }

    .marketplace-line-chart .chart-grid { stroke: #dfe6f1; stroke-width: 1; stroke-dasharray: 4 6; }

    .marketplace-line-chart .chart-axis-label { fill: #8b97aa; font-size: 10px; }

    .marketplace-line-chart .chart-area { fill: url(#marketplaceChartArea); opacity: .7; }

    .marketplace-line-chart .chart-line-primary { fill: none; stroke: #1764f5; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

    .marketplace-line-chart .chart-line-secondary { fill: none; stroke: #7da6ff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

    .marketplace-line-chart .chart-point-primary { fill: #fff; stroke: #1764f5; stroke-width: 2.5; }

    .marketplace-line-chart .chart-point-secondary { fill: #fff; stroke: #7da6ff; stroke-width: 2; }

    .marketplace-chart-legend { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: 11px; }

    .marketplace-chart-legend span { display: inline-flex; align-items: center; gap: 6px; }

    .marketplace-chart-legend i { width: 16px; height: 3px; border-radius: 3px; background: #1764f5; }

    .marketplace-chart-legend i.secondary { background: #7da6ff; }

    @media (max-width: 700px) {

      .marketplace-product-avatar { width: 42px; height: 52px; flex-basis: 42px; }

      .marketplace-product-avatar.compact { width: 32px; height: 40px; flex-basis: 32px; }

      .marketplace-variant-grid { grid-template-columns: 1fr; gap: 10px; }

      .marketplace-product-card {

        min-height: 130px; grid-template-columns: 76px minmax(0, 1fr) auto;

        gap: 11px !important; padding: 12px !important;

      }

      .marketplace-product-avatar.large { width: 76px; height: 98px; flex-basis: 76px; }

      .marketplace-product-card .product-title b { font-size: 14px; }

      .marketplace-product-primary-meta, .marketplace-product-commercial { gap: 5px 8px; font-size: 12px; }

      .marketplace-product-secondary-meta { white-space: normal; }

      .marketplace-stock-filters { grid-template-columns: 1fr; padding: 12px; }

      .marketplace-chart-panel { min-height: 390px; padding: 14px !important; }

      .marketplace-chart-head { display: grid; }

      .marketplace-chart-switch { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }

      .marketplace-chart-canvas { min-height: 250px; padding-inline: 0; }

      .marketplace-chart-canvas .marketplace-line-chart,

      .marketplace-chart-canvas .marketplace-line-chart svg { min-height: 240px; height: 240px; }

      .marketplace-date-range { width: 100%; min-width: 0; grid-template-columns: 1fr; }

      .marketplace-stock-grid { grid-template-columns: 1fr; }

      .marketplace-stock-card { grid-template-columns: 48px minmax(0, 1fr) auto; padding: 11px !important; gap: 9px !important; }

      .marketplace-stock-card-body b, .marketplace-stock-card-body > small { white-space: normal; }

      .marketplace-stock-sources { grid-template-columns: 1fr; }

      .marketplace-stock-detail-summary, .marketplace-stock-detail-columns { grid-template-columns: 1fr; }

      .marketplace-stock-location { grid-template-columns: minmax(0, 1fr) auto; }

      .marketplace-stock-location > .status-chip { grid-column: 1 / -1; justify-self: start; }

      .marketplace-menu-strip {

        display: flex !important; overflow-x: auto; padding: 8px !important; gap: 6px !important;

        border-radius: 14px; position: static !important; scrollbar-width: none;

      }

      .marketplace-menu-strip::-webkit-scrollbar { display: none; }

      .marketplace-menu-label { display: none; }

      .marketplace-menu-link, .marketplace-provider-menu-button {

        width: auto; min-width: max-content; min-height: 38px; padding: 7px 10px !important;

      }

      .marketplace-provider-menu-button small { display: none; }

      .marketplace-menu-icon { width: 21px; height: 21px; flex-basis: 21px; }

      .marketplace-line-chart, .marketplace-line-chart svg { min-height: 190px; height: 190px; }

    }

    .wms-stock-product-balance {

      display: grid;

      justify-items: end;

      gap: 6px;

      min-width: 112px;

      text-align: right;

    }



    .wms-stock-product-balance small {

      color: var(--muted);

      font-size: 11px;

      line-height: 1.3;

    }



    .wms-stock-product-balance .small-button {

      min-height: 34px;

      padding: 8px 14px;

    }



    .wms-location-detail > .button-row > :last-child:nth-child(3) {

      grid-column: 1 / -1;

    }



    @media (max-width: 520px) {

      .wms-stock-product-row {

        grid-template-columns: minmax(0, 1fr);

        align-items: stretch;

        gap: 12px;

        padding: 12px !important;

      }



      .wms-stock-product-row .wms-product-rich {

        align-items: flex-start;

        gap: 10px;

      }



      .wms-stock-product-row .marketplace-product-avatar.large {

        width: 64px;

        height: 82px;

        flex-basis: 64px;

        border-radius: 11px;

      }



      .wms-stock-product-row .wms-product-rich-copy b {

        font-size: 14px;

        line-height: 1.25;

        overflow-wrap: anywhere;

      }



      .wms-stock-product-row .wms-product-rich-copy span,

      .wms-stock-product-row .wms-product-rich-copy small {

        font-size: 11px;

        overflow-wrap: anywhere;

      }



      .wms-stock-product-balance {

        width: 100%;

        min-width: 0;

        grid-template-columns: auto minmax(0, 1fr);

        align-items: center;

        justify-items: start;

        text-align: left;

      }



      .wms-stock-product-balance small {

        justify-self: end;

        text-align: right;

      }



      .wms-stock-product-balance .small-button {

        grid-column: 1 / -1;

        width: 100%;

      }



      .wms-guided-scanner .report-row {

        grid-template-columns: minmax(0, 1fr) 34px;

        padding: 10px 8px;

      }



      .wms-guided-scanner .button-row,

      .wms-guided-scanner .small-button {

        width: 100%;

      }



      .bottom-nav {

        padding-left: 5px;

        padding-right: 5px;

        gap: 0;

      }



      .nav-btn {

        padding-inline: 1px;

        font-size: 9px;

      }



      .nav-btn span:last-child {

        overflow-wrap: normal;

        word-break: normal;

        white-space: nowrap;

      }

    }



    /* Functional-only workspace: keep controls, values and operational states. */

    .screen-head p,

    .employee-detail-title p,

    .operations-kpi small,

    .card.kpi > span:not(.kpi-top),

    .summary-card > small,

    .marketplace-v2-kpi > small,

    .analytics-overview-kpi > small,

    .analytics-provider-metric > small,

    .analytics-chart-source,

    .marketplace-dashboard-kpi > small,

    .marketplace-chart-note,

    .ac-kpi > small,

    .ac-heading p,

    .ac-brand span,

    .ac-panel-copy,

    .marketplace-placeholder p,

    .ac-map-note,

    .arbitrary-operation-head span,

    .arbitrary-operation-help,

    .ac-empty span {

      display: none !important;

    }



    .screen-head p.operational-message {

      display: block !important;

    }



    .operations-kpi,

    .marketplace-v2-kpi,

    .analytics-overview-kpi,

    .ac-kpi,

    .marketplace-chart-panel {

      min-height: 0;

    }



    /* Built-in user support. The examples are synthetic interface captures so

       the guide remains safe, readable offline and independent of live data. */

    .help-btn svg {

      width: 22px;

      height: 22px;

      display: block;

    }



    .help-center,

    .help-article {

      width: min(1180px, 100%);

      margin: 0 auto;

      color: #17243a;

    }



    .help-hero {

      display: grid;

      grid-template-columns: minmax(0, 1fr) auto;

      align-items: center;

      gap: 28px;

      margin-bottom: 20px;

      padding: 30px 34px;

      overflow: hidden;

      border: 1px solid rgba(34, 92, 218, .13);

      border-radius: 24px;

      background: linear-gradient(135deg, #f8fbff 0%, #edf4ff 55%, #f4efff 100%);

      box-shadow: 0 18px 44px rgba(31, 61, 116, .09);

    }



    .help-eyebrow {

      display: block;

      margin-bottom: 8px;

      color: #1d5be8;

      font-size: 11px;

      font-weight: 900;

      letter-spacing: .13em;

    }



    .help-hero h2,

    .help-article-head h2 {

      margin: 0;

      color: #0d1930;

      font-size: clamp(28px, 4vw, 46px);

      line-height: 1.05;

      letter-spacing: -.035em;

    }



    .help-hero p,

    .help-article-head p {

      max-width: 720px;

      margin: 12px 0 0;

      color: #526078;

      font-size: 15px;

      line-height: 1.55;

    }



    .help-hero-mark {

      width: 94px;

      height: 94px;

      border: 10px solid rgba(255, 255, 255, .72);

      border-radius: 50%;

      color: #fff;

      background: linear-gradient(145deg, #2b72ff, #7354ef);

      box-shadow: 0 18px 36px rgba(43, 95, 225, .26);

      display: grid;

      place-items: center;

      font-size: 50px;

      font-weight: 900;

    }



    .help-search {

      display: grid;

      grid-template-columns: auto minmax(0, 1fr) auto;

      align-items: center;

      gap: 10px;

      min-height: 58px;

      padding: 0 12px 0 18px;

      border: 1px solid rgba(111, 128, 159, .22);

      border-radius: 16px;

      background: #fff;

      box-shadow: 0 10px 28px rgba(31, 51, 87, .07);

      color: #8592a8;

    }



    .help-search > span {

      font-size: 24px;

    }



    .help-search input {

      width: 100%;

      max-width: none !important;

      min-height: 54px !important;

      padding: 0 !important;

      border: 0 !important;

      outline: 0;

      background: transparent !important;

      box-shadow: none !important;

      color: #16233a;

      font-size: 15px;

    }



    .help-search button {

      width: 36px;

      min-height: 36px !important;

      border: 0;

      border-radius: 10px;

      color: #718099;

      background: #f1f4f9;

      font-size: 22px;

    }



    .help-categories {

      display: flex;

      gap: 8px;

      margin: 16px 0 24px;

      padding-bottom: 4px;

      overflow-x: auto;

      scrollbar-width: thin;

    }



    .help-category {

      flex: 0 0 auto;

      min-height: 42px !important;

      padding: 0 16px;

      border: 1px solid rgba(111, 128, 159, .18);

      border-radius: 999px;

      color: #5f6f88;

      background: #fff;

      font: inherit;

      font-size: 12px;

      font-weight: 800;

    }



    .help-category.active {

      border-color: #1e5ce8;

      color: #fff;

      background: linear-gradient(135deg, #2467f3, #1749c9);

      box-shadow: 0 8px 18px rgba(32, 93, 232, .2);

    }



    .help-results-head {

      display: flex;

      align-items: baseline;

      justify-content: space-between;

      gap: 20px;

      margin-bottom: 12px;

    }



    .help-results-head b {

      font-size: 20px;

    }



    .help-results-head span {

      color: #526078;

      font-size: 12px;

      font-weight: 700;

    }



    .help-grid {

      display: grid;

      grid-template-columns: repeat(2, minmax(0, 1fr));

      gap: 12px;

    }



    .help-card {

      display: grid;

      grid-template-columns: 48px minmax(0, 1fr) auto;

      align-items: center;

      gap: 14px;

      min-height: 150px;

      padding: 20px;

      border: 1px solid rgba(111, 128, 159, .16);

      border-radius: 18px;

      color: inherit;

      background: rgba(255, 255, 255, .94);

      box-shadow: 0 10px 28px rgba(36, 55, 88, .06);

      text-align: left;

      transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;

    }



    .help-card:hover {

      transform: translateY(-2px);

      border-color: rgba(33, 94, 230, .35);

      box-shadow: 0 16px 34px rgba(36, 68, 126, .12);

    }



    .help-card-icon {

      width: 48px;

      height: 48px;

      display: grid;

      place-items: center;

      border-radius: 14px;

      color: #1d5be8;

      background: #eaf1ff;

      font-size: 23px;

      font-weight: 900;

    }



    .help-card-copy {

      min-width: 0;

      display: grid;

      gap: 5px;

    }



    .help-card-copy small {

      color: #2d66df;

      font-size: 9px;

      font-weight: 900;

      letter-spacing: .08em;

      text-transform: uppercase;

    }



    .help-card-copy b {

      color: #16233a;

      font-size: 16px;

      line-height: 1.2;

    }



    .help-card-copy > span {

      color: #526078;

      font-size: 12px;

      line-height: 1.42;

    }



    .help-card-copy em {

      color: #526078;

      font-size: 10px;

      font-style: normal;

      font-weight: 700;

    }



    .help-card-arrow {

      color: #9aa6b9;

      font-size: 30px;

    }



    .help-empty {

      grid-column: 1 / -1;

      min-height: 240px;

      display: grid;

      place-items: center;

      align-content: center;

      gap: 8px;

      padding: 30px;

      border: 1px dashed #c8d2e2;

      border-radius: 18px;

      color: #738199;

      background: rgba(255, 255, 255, .7);

      text-align: center;

    }



    .help-empty b {

      color: #1b2940;

      font-size: 18px;

    }



    .help-back {

      min-height: 42px !important;

      margin-bottom: 14px;

      padding: 0 14px;

      border: 1px solid rgba(111, 128, 159, .18);

      border-radius: 12px;

      color: #315fbd;

      background: #fff;

      font: inherit;

      font-size: 12px;

      font-weight: 800;

    }



    .help-article-head {

      display: grid;

      grid-template-columns: minmax(0, 1fr) auto;

      align-items: start;

      gap: 24px;

      margin-bottom: 22px;

    }



    .help-audience {

      padding: 9px 12px;

      border: 1px solid #cbd9f6;

      border-radius: 999px;

      color: #315fae;

      background: #f4f8ff;

      font-size: 10px;

      font-weight: 850;

      white-space: nowrap;

    }



    .help-shot {

      margin: 0 0 20px;

      padding: 14px;

      border: 1px solid rgba(111, 128, 159, .17);

      border-radius: 20px;

      background: #eaf0f9;

      box-shadow: 0 16px 40px rgba(31, 51, 87, .09);

    }



    .help-shot-browser {

      height: 38px;

      display: flex;

      align-items: center;

      gap: 6px;

      padding: 0 14px;

      border-radius: 12px 12px 0 0;

      color: #6d7a90;

      background: #fff;

      font-size: 10px;

    }



    .help-shot-browser span {

      width: 8px;

      height: 8px;

      border-radius: 50%;

      background: #c6cfdd;

    }



    .help-shot-browser b {

      margin-left: 8px;

    }



    .help-shot-layout {

      position: relative;

      min-height: 340px;

      display: grid;

      grid-template-columns: 210px minmax(0, 1fr);

      gap: 18px;

      padding: 18px;

      border-radius: 0 0 12px 12px;

      overflow: hidden;

      background: linear-gradient(140deg, #f7f9fd, #eef3fb);

    }



    .help-shot-nav {

      display: grid;

      align-content: start;

      gap: 8px;

      padding: 14px;

      border-radius: 14px;

      background: #172554;

      box-shadow: 0 12px 24px rgba(23, 37, 84, .16);

    }



    .help-shot-nav div {

      min-height: 42px;

      display: flex;

      align-items: center;

      padding: 0 12px;

      border-radius: 9px;

      color: #aeb9d4;

      font-size: 11px;

      font-weight: 750;

    }



    .help-shot-nav div.active {

      color: #fff;

      background: #285fda;

    }



    .help-shot-main {

      min-width: 0;

      display: grid;

      align-content: start;

      gap: 14px;

      padding: 12px;

    }



    .help-shot-title {

      color: #111d34;

      font-size: 24px;

      font-weight: 900;

    }



    .help-shot-card {

      min-height: 150px;

      display: grid;

      align-content: center;

      gap: 8px;

      padding: 22px;

      border: 1px solid #d7deea;

      border-radius: 14px;

      background: #fff;

      box-shadow: 0 10px 24px rgba(37, 57, 92, .08);

    }



    .help-shot-card span,

    .help-shot-card small {

      color: #77859a;

      font-size: 10px;

    }



    .help-shot-card b {

      color: #17243a;

      font-size: 18px;

    }



    .help-shot-actions {

      display: flex;

      gap: 10px;

    }



    .help-shot-actions button {

      min-height: 42px !important;

      padding: 0 16px;

      border: 0;

      border-radius: 9px;

      color: #fff;

      background: #1f60e7;

      font: inherit;

      font-size: 10px;

      font-weight: 800;

      pointer-events: none;

    }



    .help-shot-actions button + button {

      color: #445571;

      background: #fff;

      border: 1px solid #d6deea;

    }



    .help-pin {

      position: absolute;

      width: 30px;

      height: 30px;

      display: grid;

      place-items: center;

      border: 4px solid #fff;

      border-radius: 50%;

      color: #fff;

      background: #f05b3f;

      box-shadow: 0 6px 16px rgba(180, 52, 31, .28);

      font-size: 12px;

      font-style: normal;

      font-weight: 900;

    }



    .help-pin-a {

      left: 198px;

      top: 58px;

    }



    .help-pin-b {

      right: 37%;

      top: 142px;

    }



    .help-pin-c {

      right: 30px;

      bottom: 31px;

    }



    .help-shot figcaption {

      display: flex;

      flex-wrap: wrap;

      gap: 10px 20px;

      padding: 12px 6px 0;

      color: #64748b;

      font-size: 10px;

      font-weight: 700;

    }



    .help-shot figcaption span {

      display: flex;

      align-items: center;

      gap: 6px;

    }



    .help-shot figcaption b {

      width: 20px;

      height: 20px;

      display: grid;

      place-items: center;

      border-radius: 50%;

      color: #fff;

      background: #f05b3f;

      font-size: 9px;

    }



    .help-article-grid {

      display: grid;

      grid-template-columns: minmax(0, 1.5fr) minmax(260px, .7fr);

      gap: 16px;

    }



    .help-article-grid h3 {

      margin: 0 0 18px;

      color: #17243a;

      font-size: 18px;

    }



    .help-steps ol,

    .help-tips ul {

      margin: 0;

      padding: 0;

      list-style: none;

    }



    .help-steps li {

      display: grid;

      grid-template-columns: 34px minmax(0, 1fr);

      align-items: start;

      gap: 12px;

      padding: 12px 0;

      border-top: 1px solid #e5eaf2;

      color: #44536b;

      font-size: 13px;

      line-height: 1.5;

    }



    .help-steps li:first-child {

      border-top: 0;

    }



    .help-steps li > b {

      width: 30px;

      height: 30px;

      display: grid;

      place-items: center;

      border-radius: 9px;

      color: #1f5ee4;

      background: #eaf1ff;

      font-size: 12px;

    }



    .help-tips li {

      position: relative;

      padding: 10px 0 10px 22px;

      color: #4f5f76;

      font-size: 12px;

      line-height: 1.5;

    }



    .help-tips li::before {

      content: "✓";

      position: absolute;

      left: 0;

      color: #1d64e8;

      font-weight: 900;

    }



    .help-contact {

      display: grid;

      gap: 6px;

      margin-top: 18px;

      padding: 14px;

      border-radius: 12px;

      color: #4f5f76;

      background: #f3f6fb;

      font-size: 11px;

      line-height: 1.45;

    }



    .help-contact b {

      color: #17243a;

      font-size: 12px;

    }



    @media (max-width: 899px) {

      .appbar-actions {

        display: flex;

      }



      .appbar-actions .help-btn {

        display: grid;

      }



      .help-center,

      .help-article {

        padding-bottom: 20px;

      }



      .help-hero {

        padding: 22px;

        border-radius: 18px;

      }



      .help-hero-mark {

        width: 64px;

        height: 64px;

        border-width: 7px;

        font-size: 36px;

      }



      .help-grid {

        grid-template-columns: 1fr;

      }



      .help-card {

        min-height: 132px;

      }



      .help-article-head,

      .help-article-grid {

        grid-template-columns: 1fr;

      }



      .help-audience {

        width: max-content;

      }



      .help-shot-layout {

        min-height: 300px;

        grid-template-columns: 116px minmax(0, 1fr);

        gap: 8px;

        padding: 10px;

      }



      .help-shot-nav {

        padding: 8px;

      }



      .help-shot-nav div {

        min-height: 38px;

        padding: 0 8px;

        font-size: 8px;

      }



      .help-shot-main {

        gap: 9px;

        padding: 8px;

      }



      .help-shot-title {

        font-size: 17px;

      }



      .help-shot-card {

        min-height: 128px;

        padding: 12px;

      }



      .help-shot-actions {

        display: grid;

      }



      .help-shot-actions button {

        width: 100%;

        padding: 0 8px;

        font-size: 8px;

      }



      .help-pin-a {

        left: 108px;

        top: 43px;

      }



      .help-pin-b {

        right: 29%;

        top: 128px;

      }

    }



    @media (max-width: 520px) {

      .help-hero {

        grid-template-columns: 1fr;

      }



      .help-hero-mark {

        display: none;

      }



      .help-card {

        grid-template-columns: 42px minmax(0, 1fr) auto;

        gap: 10px;

        padding: 15px;

      }



      .help-card-icon {

        width: 42px;

        height: 42px;

      }



      .help-shot {

        padding: 8px;

      }



      .help-shot-layout {

        grid-template-columns: 88px minmax(0, 1fr);

      }



      .help-shot-nav div {

        padding: 0 5px;

      }



      .help-pin-a {

        left: 82px;

      }



      .help-shot figcaption {

        display: grid;

      }

    }



    /* Employee-first workbench: shift, current task, result and sync in one flow. */

    .employee-workspace {

      display: grid;

      gap: 16px;

      max-width: 1120px;

      margin: 0 auto;

    }



    .employee-workspace-head {

      display: flex;

      align-items: flex-end;

      justify-content: space-between;

      gap: 18px;

      padding: 4px 2px 2px;

    }



    .employee-workspace-head h2 {

      margin: 3px 0 5px;

      color: #101827;

      font-size: clamp(28px, 4vw, 42px);

      line-height: 1;

      letter-spacing: -.04em;

    }



    .employee-workspace-head p,

    .employee-section-head small {

      margin: 0;

      color: var(--muted);

      font-size: 13px;

      line-height: 1.45;

    }



    .employee-eyebrow {

      display: block;

      color: var(--accent-dark);

      font-size: 10px;

      font-weight: 900;

      letter-spacing: .12em;

      text-transform: uppercase;

    }



    .employee-sync-status {

      min-width: 220px;

      display: grid;

      grid-template-columns: 10px minmax(0, 1fr) auto;

      align-items: center;

      gap: 10px;

      padding: 11px 13px;

      border: 1px solid rgba(32, 155, 101, .18);

      border-radius: 14px;

      color: #147044;

      background: rgba(232, 249, 240, .86);

      box-shadow: 0 10px 28px rgba(33, 85, 62, .08);

    }



    .employee-sync-status.offline {

      color: #9a5700;

      border-color: rgba(222, 139, 32, .25);

      background: rgba(255, 244, 218, .92);

    }



    .employee-sync-status.queued,

    .employee-sync-status.syncing {

      color: #1b54bf;

      border-color: rgba(35, 102, 228, .22);

      background: rgba(233, 241, 255, .92);

    }



    .employee-sync-dot {

      width: 9px;

      height: 9px;

      border-radius: 50%;

      background: currentColor;

      box-shadow: 0 0 0 4px rgba(35, 112, 74, .12);

    }



    .employee-sync-status.syncing .employee-sync-dot {

      animation: employee-sync-pulse 1s ease-in-out infinite;

    }



    @keyframes employee-sync-pulse {

      50% { opacity: .35; transform: scale(.75); }

    }



    .employee-sync-status > span:nth-child(2) {

      display: grid;

      gap: 2px;

    }



    .employee-sync-status b { font-size: 11px; }

    .employee-sync-status small { color: currentColor; font-size: 9px; opacity: .8; }

    .employee-sync-status button {

      padding: 6px 9px;

      border: 0;

      border-radius: 8px;

      color: #fff;

      background: currentColor;

      font: inherit;

      font-size: 9px;

      font-weight: 850;

      cursor: pointer;

    }



    .employee-shift-strip {

      display: flex;

      align-items: center;

      justify-content: space-between;

      gap: 18px;

      padding: 16px 18px;

    }



    .employee-shift-strip.paused {

      border-color: rgba(232, 161, 47, .34);

      background: linear-gradient(120deg, rgba(255, 248, 231, .94), rgba(255, 255, 255, .8));

    }



    .employee-shift-state,

    .employee-product-row {

      min-width: 0;

      display: flex;

      align-items: center;

      gap: 12px;

    }



    .employee-shift-state > span:last-child,

    .employee-product-row > div:last-child {

      min-width: 0;

      display: grid;

      gap: 3px;

    }



    .employee-shift-state b,

    .employee-product-row b {

      overflow: hidden;

      color: #162033;

      font-size: 14px;

      text-overflow: ellipsis;

      white-space: nowrap;

    }



    .employee-shift-state small,

    .employee-product-row span {

      overflow: hidden;

      color: var(--muted);

      font-size: 11px;

      text-overflow: ellipsis;

      white-space: nowrap;

    }



    .employee-shift-icon {

      width: 42px;

      height: 42px;

      flex: 0 0 42px;

      display: grid;

      place-items: center;

      border-radius: 12px;

      color: #1b5be0;

      background: #eaf1ff;

    }



    .employee-shift-icon svg { width: 22px; height: 22px; }

    .employee-shift-icon svg,

    .employee-work-summary svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }



    .employee-shift-actions {

      display: flex;

      align-items: center;

      justify-content: flex-end;

      gap: 10px;

    }



    .employee-text-button,

    .employee-assigned-more {

      border: 0;

      color: var(--muted);

      background: transparent;

      font: inherit;

      font-size: 10px;

      font-weight: 800;

      cursor: pointer;

    }



    .employee-text-button:hover,

    .employee-assigned-more:hover { color: var(--accent-dark); }



    .employee-route-mode {

      display: grid;

      grid-template-columns: auto minmax(0, 1fr);

      align-items: center;

      gap: 10px;

      padding: 10px 13px;

      border-radius: 12px;

      color: #2352a5;

      background: rgba(231, 239, 255, .82);

    }



    .employee-route-mode.strict {

      color: #5c43a8;

      background: rgba(240, 235, 255, .82);

    }



    .employee-route-mode span {

      padding: 5px 8px;

      border-radius: 7px;

      color: #fff;

      background: #2352a5;

      font-size: 9px;

      font-weight: 900;

      letter-spacing: .03em;

      text-transform: uppercase;

    }



    .employee-route-mode.strict span { background: #5c43a8; }



    .employee-route-mode small { color: currentColor; font-size: 10px; line-height: 1.4; }



    .employee-current-task,

    .employee-next-task {

      position: relative;

      display: grid;

      gap: 16px;

      padding: clamp(18px, 3vw, 26px);

      overflow: hidden;

    }



    .employee-current-task::before,

    .employee-next-task::before {

      content: "";

      position: absolute;

      inset: 0 auto 0 0;

      width: 5px;

      background: linear-gradient(#3474f6, #1747c4);

    }



    .employee-current-task.is-paused::before { background: #e29a25; }

    .employee-current-task.is-blocked::before { background: #df5a64; }

    .employee-next-task.is-disabled { opacity: .76; }



    .employee-section-head {

      display: flex;

      align-items: flex-start;

      justify-content: space-between;

      gap: 12px;

    }



    .employee-section-head h3 {

      margin: 4px 0 0;

      color: #111a2a;

      font-size: clamp(21px, 3vw, 30px);

      line-height: 1.08;

      letter-spacing: -.035em;

    }



    .employee-product-row {

      padding: 13px;

      border: 1px solid rgba(124, 145, 183, .15);

      border-radius: 14px;

      background: rgba(246, 249, 255, .72);

    }



    .employee-product-row .product-avatar,

    .employee-product-row .product-card-avatar {

      width: 54px;

      height: 62px;

      flex: 0 0 54px;

    }



    .employee-task-facts {

      display: grid;

      grid-template-columns: repeat(3, minmax(0, 1fr));

      gap: 10px;

    }



    .employee-task-facts > div {

      min-width: 0;

      display: grid;

      gap: 5px;

      padding: 12px 13px;

      border: 1px solid rgba(126, 146, 181, .16);

      border-radius: 12px;

      background: rgba(255, 255, 255, .68);

    }



    .employee-task-facts span,

    .employee-next-quantity label {

      color: var(--muted);

      font-size: 9px;

      font-weight: 850;

      letter-spacing: .04em;

      text-transform: uppercase;

    }



    .employee-task-facts b {

      overflow: hidden;

      color: #101827;

      font-size: 16px;

      text-overflow: ellipsis;

      white-space: nowrap;

    }



    .employee-primary-actions {

      display: grid;

      grid-template-columns: minmax(210px, 1.8fr) minmax(120px, .7fr) minmax(120px, .7fr);

      gap: 10px;

    }



    .employee-primary-actions .small-button {

      min-height: 48px;

      margin: 0;

    }



    .employee-next-task .employee-primary-actions { grid-template-columns: minmax(210px, 1.4fr) minmax(170px, .8fr); }



    .employee-next-quantity {

      display: grid;

      gap: 7px;

    }



    .employee-next-available {

      display: flex;

      align-items: baseline;

      gap: 5px;

      margin: 0 0 2px;

      color: var(--muted);

      font-size: 12px;

      font-weight: 750;

    }



    .employee-next-available strong {

      color: #101827;

      font-size: 14px;

      font-weight: 850;

    }



    .employee-next-input {

      width: min(100%, 180px);

    }



    .employee-next-quantity input {

      width: 100%;

      min-height: 48px;

      padding: 0 14px;

      border: 1px solid rgba(68, 102, 167, .25);

      border-radius: 10px;

      color: #101827;

      background: #fff;

      font: inherit;

      font-size: 17px;

      font-weight: 850;

    }



    .employee-next-quantity small { color: var(--muted); font-size: 10px; line-height: 1.4; }



    .employee-empty-state {

      min-height: 130px;

      display: grid;

      place-items: center;

      align-content: center;

      gap: 5px;

      color: var(--muted);

      text-align: center;

    }



    .employee-empty-state > span {

      width: 38px;

      height: 38px;

      display: grid;

      place-items: center;

      border-radius: 50%;

      color: #21885a;

      background: #e4f7ec;

      font-weight: 900;

    }



    .employee-empty-state b { color: #162033; font-size: 16px; }

    .employee-empty-state small { font-size: 10px; }



    .employee-assigned-more {

      justify-self: start;

      padding: 2px 0;

      color: var(--accent-dark);

    }



    .employee-work-summary {

      display: grid;

      grid-template-columns: repeat(3, minmax(0, 1fr));

      gap: 12px;

    }



    .employee-work-summary .card {

      min-width: 0;

      display: grid;

      grid-template-columns: 34px auto;

      grid-template-rows: auto auto;

      align-items: center;

      justify-content: start;

      gap: 1px 10px;

      padding: 13px;

      border: 0;

      color: inherit;

      font: inherit;

      text-align: left;

      cursor: pointer;

    }



    .employee-work-summary .card > span {

      width: 34px;

      height: 34px;

      grid-row: 1 / 3;

      display: grid;

      place-items: center;

      border-radius: 10px;

      color: #245fd5;

      background: #ebf2ff;

    }



    .employee-work-summary svg { width: 18px; height: 18px; }

    .employee-work-summary b { color: #152035; font-size: 16px; }

    .employee-work-summary small { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }



    .task-completion-head > div {

      min-width: 0;

      display: grid;

      gap: 4px;

    }



    .task-completion-head > div > b { color: #121c2f; font-size: 20px; }

    .task-completion-head > div > small { color: var(--muted); font-size: 10px; }



    .completion-summary {

      display: grid;

      grid-template-columns: repeat(3, minmax(0, 1fr));

      gap: 8px;

    }



    .completion-summary.has-additional {

      grid-template-columns: repeat(4, minmax(0, 1fr));

    }



    .completion-summary > div {

      min-width: 0;

      display: grid;

      gap: 4px;

      padding: 11px 12px;

      border-radius: 11px;

      color: #26714c;

      background: #eaf8f0;

    }



    .completion-summary > div.additional { color: #174dbd; background: #eaf1ff; }

    .completion-summary > div.defect { color: #a0444c; background: #fff0f1; }

    .completion-summary > div.remainder { color: #875a0d; background: #fff5df; }

    .completion-summary span { overflow: hidden; font-size: 8px; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; text-transform: uppercase; }

    .completion-summary b { font-size: 20px; }



    @media (max-width: 620px) {

      .employee-workspace { gap: 12px; }

      .employee-workspace-head { align-items: stretch; display: grid; }

      .employee-sync-status { width: 100%; min-width: 0; }

      .employee-shift-strip { align-items: stretch; display: grid; padding: 14px; }

      .employee-shift-actions { justify-content: stretch; }

      .employee-shift-actions .small-button { flex: 1; }

      .employee-route-mode { align-items: start; grid-template-columns: 1fr; }

      .employee-route-mode span { width: max-content; }

      .employee-current-task,

      .employee-next-task { gap: 13px; padding: 17px 15px 17px 19px; }

      .employee-section-head h3 { font-size: 21px; }

      .employee-primary-actions,

      .employee-next-task .employee-primary-actions { grid-template-columns: 1fr 1fr; }

      .employee-primary-actions .small-button:first-child { grid-column: 1 / -1; }

      .employee-product-row { padding: 10px; }

      .employee-task-facts { gap: 6px; }

      .employee-task-facts > div { padding: 10px 8px; }

      .employee-task-facts b { font-size: 14px; }

      .employee-work-summary { gap: 7px; }

      .employee-work-summary .card { grid-template-columns: 1fr; grid-template-rows: auto auto auto; gap: 4px; padding: 10px; text-align: center; }

      .employee-work-summary .card > span { grid-row: auto; justify-self: center; }

      .employee-work-summary small { width: 100%; }

      .completion-summary { gap: 5px; }

      .completion-summary.has-additional { grid-template-columns: repeat(2, minmax(0, 1fr)); }

      .completion-summary > div { padding: 9px 7px; }

      .completion-summary span { font-size: 7px; }

      .completion-summary b { font-size: 18px; }

    }



    /* One action in context on phones; retain desktop navigation shortcuts. */

    .task-picker { margin-bottom: 14px; }

    .task-picker > summary { cursor: pointer; padding: 14px; border-radius: 12px; background: var(--card, #fff); font-weight: 600; }

    .task-picker[open] > summary { margin-bottom: 10px; }

    .operations-kpi { cursor: default; }

    @media (max-width: 899px) {

      .mobile-nav-shortcut { display: none !important; }

      .small-button, .section-title > button, .employee-text-button { min-height: 44px; }

      .task-action-grid { gap: 8px; }

      .task-picker > summary { min-height: 44px; }

    }



    @media (max-width: 899px) {

      .task-completion-card > .button-row { display: flex; }

      .task-completion-card > .button-row > [data-report-action="complete-task"] { flex: 1; min-height: 48px; }

    }



    .cutter-rework { display: grid; gap: 12px; min-width: 0; }

    .cutter-rework-intro { margin: 0; color: var(--muted, #627080); line-height: 1.45; }

    .cutter-rework-card { display: grid; gap: 10px; padding: 16px; min-width: 0; }

    .cutter-rework-card p { margin: 0; overflow-wrap: anywhere; }

    .cutter-rework-card .employee-section-head { align-items: start; flex-wrap: wrap; }

    .cutter-rework-source { color: var(--muted, #627080); font-size: 13px; }

    .cutter-rework-actions { display: grid; grid-template-columns: minmax(100px, 1fr) minmax(0, 2fr); gap: 10px; align-items: end; }

    .cutter-rework-actions .small-button { min-height: 48px; white-space: normal; }

    .cutter-rework-feedback { color: #a0444c; line-height: 1.45; }

    @media (max-width: 430px) {

      .cutter-rework-actions { grid-template-columns: minmax(0, 1fr); }

    }



.assembly-shortage-dialog { width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); overflow: auto; box-sizing: border-box; border: 1px solid #d9deea; border-radius: 20px; padding: 20px; color: #17212d; background: #fff; }

.assembly-shortage-dialog::backdrop { background: #17212d66; }

.assembly-shortage-dialog fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }

.assembly-shortage-dialog input, .assembly-shortage-dialog textarea { box-sizing: border-box; width: 100%; min-height: 44px; font-size: 16px; }

.assembly-shortage-dialog button { min-height: 44px; white-space: normal; }

.assembly-shortage-dialog [role="alert"] { color: #9d2832; overflow-wrap: anywhere; }

.assembly-pending { border: 1px solid #c68322; margin-bottom: 16px; }



/* Compact employee completion: keep quantities and the primary action visible. */

.compact-completion { padding: 16px; }

.compact-completion .task-completion-head { gap: 8px; align-items: flex-start; }

.compact-completion .task-completion-head > div > b { font-size: 18px; line-height: 1.3; }

.completion-product-brief { display: grid; gap: 4px; margin: 8px 0 14px; font-size: 14px; }

.completion-product-brief span { font-weight: 700; }

.completion-product-brief small { color: var(--muted); font-size: 12px; }

.compact-completion .completion-quantity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

.compact-completion .completion-quantity-grid > .full { grid-column: 1 / -1; }

.compact-completion .field label { font-size: 13px; }

.compact-completion input, .compact-completion select { min-height: 44px; font-size: 16px; }

.compact-completion .completion-summary > div { padding: 8px; gap: 3px; }

.compact-completion .completion-summary span { font-size: 10px; white-space: normal; text-transform: none; }

.compact-completion .completion-summary b { font-size: 17px; }

.compact-completion .completion-hint { color: var(--muted); font-size: 12px; line-height: 1.4; }

.compact-completion .report-fold { border-top: 1px solid var(--border, #e3e7ef); margin-top: 8px; }

.compact-completion .report-fold summary { cursor: pointer; min-height: 44px; padding: 12px 0; font-size: 14px; font-weight: 700; }

.compact-completion .report-fold .task-action-grid { margin: 0 0 8px; }

.compact-completion .completion-shortage { margin-top: 10px; }

.compact-completion .button-row { margin-top: 12px; }

/* Equal prominence for partial handover and final completion. */
.completion-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.completion-actions > .small-button {
  min-height: 64px;
  padding: 12px 8px;
  font-size: 15px;
  line-height: 1.3;
  text-align: center;
  white-space: normal;
  overflow-wrap: normal;
  color: #fff;
  background: #435be6;
}
.completion-actions > .completion-finish-button { background: #6653c5; }
.completion-actions > .small-button:only-child { grid-column: 1 / -1; }

/* Employee task discovery: keep actions next to their task. */
.task-card-open { width: 100%; margin-top: 12px; }
.task-list-tools { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.completion-release { display: flex; justify-content: flex-end; margin: 8px 0; }
#employeeOrderFilters summary { cursor: pointer; font-weight: 700; min-height: 44px; }
#employeeOrderFilters summary small { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; font-weight: 400; overflow-wrap: anywhere; }
#employeeOrderFilters[open] summary { margin-bottom: 16px; }
.empty-state .small-button { display: block; margin: 12px auto 0; }
@media (max-width: 899px) {
  body.employee-mobile-ui .tabs.admin-task-status-tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); overflow: visible; gap: 4px; }
  body.employee-mobile-ui .admin-task-status-tabs .tab { grid-column: span 2; min-width: 0; padding: 8px 4px; font-size: 13px; }
  body.employee-mobile-ui .admin-task-status-tabs .tab:nth-child(n+4) { grid-column: span 3; }
  body.employee-mobile-ui #employeeOrderFilters { padding: 14px; }
  body.employee-mobile-ui .order-card .trace-code,
  body.employee-mobile-ui .order-card .order-head span,
  body.employee-mobile-ui .order-card .task-note,
  body.employee-mobile-ui .task-date { font-size: 12px; line-height: 1.45; }
  body.employee-mobile-ui #mobileWorkspaceNav button { font-size: 14px; }
  body.employee-mobile-ui .nav-btn span:last-child { font-size: 12px; }
  body.employee-mobile-ui #employeeSyncStatus small { font-size: 12px; }
}




/* Shared shift announcement: remains visible for every authenticated role. */

.production-recording-notice {

  position: relative;

  z-index: 1;

  margin: 18px 24px 0;

  padding: 20px 24px;

  border: 2px solid #b45309;

  border-left-width: 8px;

  border-radius: 16px;

  background: #fff7df;

  color: #422006;

  overflow-wrap: anywhere;

  scroll-margin-top: 16px;

}

.production-recording-notice h2 {

  margin: 0 0 12px;

  font-size: clamp(18px, 2vw, 24px);

  line-height: 1.3;

  font-weight: 900;

  color: #78350f;

}

.production-recording-notice p {

  margin: 0;

  font-size: clamp(17px, 1.6vw, 21px);

  line-height: 1.45;

  font-weight: 800;

}

.production-recording-notice .production-recording-notice-exceptions {

  margin-top: 12px;

  padding-top: 12px;

  border-top: 1px solid #d6b16a;

}

.production-recording-notice:focus-visible {outline: 3px solid #1959f3; outline-offset: 3px;}

@media (max-width: 640px) {

  .production-recording-notice {margin: 12px 0 0; padding: 16px; border-left-width: 6px; border-radius: 12px;}

}



/* Task pause clocks are calendar durations, separate from shift hours. */

.task-pause-clock {display:flex;flex-wrap:wrap;gap:8px 20px;padding:12px 16px;margin:12px 0;background:#fff4d6;border:1px solid #e6bc5c;border-radius:12px;color:#61420c;}

.task-pause-clock span {display:flex;flex-wrap:wrap;align-items:baseline;gap:8px;}

.task-pause-clock b {font-variant-numeric:tabular-nums;font-size:20px;white-space:nowrap;}



.order-select-button { background: transparent; border: 0; padding: 0; color: inherit; font: inherit; font-weight: 700; text-align: left; cursor: pointer; }

.orders-board:focus-visible, .order-select-button:focus-visible, .ss-input:focus-visible { outline: 3px solid #3549b9; outline-offset: 3px; }





/* Dedicated material catalogue: compact rows, independent from goods cells. */

.materials-panel { min-width: 0; }

.materials-panel .screen-head { gap: 18px; align-items: center; }

.materials-panel .screen-head h2 { font-size: clamp(25px, 2.2vw, 34px); }

.materials-panel .screen-head p { margin: 6px 0 0; }

.materials-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin: 18px 0; }

.materials-summary > div { background: #fff; border: 1px solid #e0e5ef; border-radius: 14px; padding: 16px 20px; display: flex; align-items: baseline; gap: 12px; }

.materials-summary strong { font-size: 26px; color: #253650; }

.materials-summary span { color: #56647a; font-size: 13px; }

.materials-filters { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; padding: 20px; margin-bottom: 16px; }

.materials-search { grid-column: span 2; }

.materials-filters .field { margin: 0; min-width: 0; }

.materials-filters .link-button { justify-self: start; align-self: end; min-height: 42px; }

.materials-panel input, .materials-panel select { width: 100%; min-height: 44px; box-sizing: border-box; }

.materials-results { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0; color: #526077; font-size: 14px; }

.materials-table-wrap { overflow: auto; max-height: 66vh; background: #fff; border: 1px solid #e0e5ef; border-radius: 14px; }

.materials-table { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 14px; }

.materials-table th { position: sticky; top: 0; z-index: 1; text-align: left; background: #f5f7fc; color: #526077; font-weight: 600; padding: 14px 16px; }

.materials-table td { padding: 14px 16px; border-top: 1px solid #e5e9f1; vertical-align: middle; }

.materials-table td:first-child { width: 32%; overflow-wrap: anywhere; }

.materials-table small { display: block; margin-top: 4px; color: #65718a; font-size: 12px; }

.materials-table tbody tr:hover { background: #f8faff; }

.materials-row-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.materials-row-actions .small-button { padding: 9px 12px; min-height: 40px; }

.materials-row-actions .link-button { min-height: 40px; }

.materials-panel .link-button { background: transparent; border: 0; border-radius: 8px; color: #2848b5; font: inherit; cursor: pointer; padding: 8px; }

.materials-panel .link-button:hover { background: #edf1ff; }

body.warehouse-workspace .materials-panel .status-chip { color: #175538; background: #e1f1e8; }

.materials-zero { color: #6a7282; }

.materials-pagination { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 18px 0; font-size: 14px; }

.materials-note { font-size: 13px; color: #56647a; }

.materials-editor { border: 2px solid #7186e8; margin: 20px 0; scroll-margin-top: 110px; }

.materials-editor fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }

.materials-editor h3 { margin: 0; font-size: 20px; }

.materials-panel button:focus-visible, .materials-panel input:focus-visible, .materials-panel select:focus-visible { outline: 3px solid #3759d6; outline-offset: 3px; }

.materials-panel button:disabled { cursor: not-allowed; opacity: .5; }

@media (max-width: 1100px) { .materials-summary { grid-template-columns: repeat(2,minmax(0,1fr)); } .materials-filters { grid-template-columns: repeat(2,minmax(0,1fr)); } }

@media (max-width: 600px) { .materials-summary > div { padding: 12px; gap: 8px; flex-direction: column; } .materials-filters { padding: 14px; gap: 12px; } .materials-panel .screen-head { align-items: flex-start; flex-direction: column; } .materials-pagination { font-size: 12px; } .materials-table { min-width: 660px; } .materials-editor .form-grid { grid-template-columns: 1fr; } }

@media (max-width: 600px) {

  .materials-table { min-width: 0; }

  .materials-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

  .materials-table tbody { display: block; }

  .materials-table tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px; border-top: 1px solid #e5e9f1; }

  .materials-table tbody td { display: block; padding: 0; border: 0; width: auto; overflow-wrap: anywhere; }

  .materials-table tbody td:first-child, .materials-table tbody td:last-child { grid-column: 1 / -1; }

  .materials-table tbody td:nth-child(4) { grid-column: 1 / -1; font-size: 12px; color: #56647a; }

  .materials-row-actions { gap: 8px; }

  body.warehouse-workspace .materials-row-actions button { width: auto; min-height: 44px; font-size: 14px; }

}


/* Task dates remain visible without expanding timing details. */
.task-date{margin-top:12px;padding:10px 12px;border-radius:12px;background:var(--bg,#f3f5fa);color:var(--text,#20283c);font-size:14px;line-height:1.5;overflow-wrap:anywhere}
.task-date>div+div{margin-top:4px}

/* Explicit review before a production completion report enters the durable queue. */
.completion-review-dialog { width:min(560px,calc(100vw - 24px)); max-height:calc(100dvh - 32px); overflow:auto; box-sizing:border-box; border:1px solid #ccd4e4; border-radius:20px; padding:22px; background:#fff; color:#202838; }
.completion-review-dialog::backdrop { background:rgba(17,24,39,.6); }
.completion-review-dialog h2 { margin:0 0 18px; font-size:24px; }
.completion-review-identity { display:grid; gap:8px; padding:16px; border-radius:12px; background:#f0f3ff; overflow-wrap:anywhere; }
.completion-review-identity b { font-size:22px; }
.completion-review-dialog dl > div { display:flex; justify-content:space-between; gap:16px; padding:12px 0; border-bottom:1px solid #e3e7ef; }
.completion-review-dialog dt { flex:1; }
.completion-review-dialog dd { margin:0; max-width:55%; text-align:right; font-weight:700; overflow-wrap:anywhere; }
.completion-review-dialog p { font-size:14px; color:#536076; }
.completion-review-actions { display:grid; gap:10px; margin-top:18px; }
.completion-review-actions button { min-height:48px; width:100%; white-space:normal; }

/* Prominent shift lifecycle controls; disabled states keep existing restrictions. */
.shift-control-panel .shift-lifecycle-actions { display: flex; width: 100%; }
.shift-control-panel .shift-lifecycle-actions button[data-shift-action] {
  width: 100%; min-height: 68px; padding: 18px 24px; box-sizing: border-box;
  border: 2px solid transparent; border-radius: 16px; font-size: 22px;
  font-weight: 750; line-height: 1.25; white-space: normal; color: #fff;
}
.shift-control-panel .shift-lifecycle-actions button[data-shift-action="open"]:not(:disabled) {
  background: #15803d; border-color: #15803d; color: #fff;
  box-shadow: 0 5px 14px rgba(21,128,61,.2);
}
.shift-control-panel .shift-lifecycle-actions button[data-shift-action="close"]:not(:disabled) {
  background: #c62828; border-color: #c62828; color: #fff;
  box-shadow: 0 5px 14px rgba(198,40,40,.18);
}
@media (hover: hover) {
  .shift-control-panel .shift-lifecycle-actions button[data-shift-action="open"]:not(:disabled):hover { background: #166534; border-color: #166534; }
  .shift-control-panel .shift-lifecycle-actions button[data-shift-action="close"]:not(:disabled):hover { background: #a91f1f; border-color: #a91f1f; }
}
.shift-control-panel .shift-lifecycle-actions button[data-shift-action]:focus-visible { outline: 3px solid #334fca; outline-offset: 4px; }
.shift-control-panel .shift-lifecycle-actions button[data-shift-action]:disabled { opacity: 1; cursor: not-allowed; box-shadow: none; background: #e8ebf0; border-color: #d4dae3; color: #576174; }
.shift-control-panel .shift-lifecycle-actions button[data-shift-action="close"]:disabled { background: #fce8e8; border-color: #edbdbd; color: #944040; }

.work-mode-notice {margin:0 0 16px;padding:14px 16px;border:1px solid var(--border);border-radius:12px;background:var(--soft, #f4f5f7);color:var(--text)}
.work-mode-notice p {margin:0;line-height:1.5;font-weight:400}
.work-mode-notice button {margin-top:10px}
[data-work-mode-disabled] {cursor:not-allowed;opacity:.55}

/* Laundry inventory: external stylesheet for production CSP. */
#laundryDialog{--lf-border:#c4caca;--lf-card:#fff;--lf-input-border:#b7c0c0;--lf-input:#f6f7f5;}
[data-ui-theme="dark"] #laundryDialog{--lf-border:#596165;--lf-card:#2b3235;--lf-input-border:#687174;--lf-input:#242b2d;}
#laundryDialog .lf-card{border:1px solid var(--lf-border);border-radius:14px;padding:14px;margin:12px 0;background:var(--lf-card)}#laundryDialog .lf-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}#laundryDialog .lf-qty{margin-left:auto;font-size:24px;white-space:nowrap}#laundryDialog input,#laundryDialog select{box-sizing:border-box;width:100%;min-height:44px;margin:6px 0 12px;padding:9px;border:1px solid var(--lf-input-border);border-radius:9px;background:var(--lf-input);color:inherit}#laundryDialog button{min-height:44px}#laundryDialog form{margin-top:10px}#laundryDialog summary{padding:10px 0;cursor:pointer}#laundryDialog .lf-muted{opacity:.8;font-size:13px}#laundryDialog .lf-actions{display:flex;gap:8px;flex-wrap:wrap}#laundryDialog .lf-actions button{flex:1}#laundryDialog .lf-tabs button[aria-pressed=true]{font-weight:800;box-shadow:inset 0 -3px currentColor}#laundryDialog fieldset{border:0;margin:0;padding:0;min-width:0}

/* Keep completed quantities readable with explicit labels on small screens. */
.order-foot .completed-quantities { display: flex; flex-direction: column; gap: 4px; text-align: right; min-width: 0; overflow-wrap: anywhere; }

/* Scoped styles: no changes to production task, WMS or marketplace forms. */
    .pq-workspace { --pq-ink:#17233b; --pq-muted:#526078; --pq-blue:#245be8; --pq-line:#e2e8f2; color:var(--pq-ink); max-width:1500px; margin:auto; min-width:0; font-size:14px; line-height:1.5; }
    .pq-workspace *, .pq-workspace *::before, .pq-workspace *::after { box-sizing:border-box; }
    .pq-workspace .sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
    .pq-workspace button, .pq-workspace input, .pq-workspace select { font:inherit; letter-spacing:normal; }
    .pq-header { display:flex; justify-content:space-between; align-items:flex-start; gap:24px; margin-bottom:12px; }
    .pq-eyebrow { display:block; color:var(--pq-blue); font-weight:750; font-size:11px; text-transform:uppercase; letter-spacing:.11em; margin-bottom:8px; }
    .pq-header h2 { font-size:clamp(24px,2.6vw,36px); line-height:1.15; margin:0 0 9px; letter-spacing:-.035em; }
    .pq-header p { margin:0; color:var(--pq-muted); max-width:650px; font-size:14px; }
    .pq-header-actions { display:flex; flex-wrap:wrap; gap:8px; flex-shrink:0; }
    .pq-workspace .pq-button { display:inline-flex; align-items:center; justify-content:center; min-height:44px; border:1px solid var(--pq-blue); padding:10px 15px; border-radius:11px; color:white; background:var(--pq-blue); font-size:13px; font-weight:700; text-decoration:none; cursor:pointer; box-shadow:none; white-space:nowrap; word-break:normal; overflow-wrap:normal; }
    .pq-workspace .pq-button-quiet { background:#fff; color:#344561; border-color:#d9e1ee; }
    .pq-workspace button:disabled { opacity:.52; cursor:default; }
    .pq-workspace .pq-production-kpi { text-align:left; cursor:pointer; transition:border-color .15s,box-shadow .15s; }
    .pq-workspace .pq-production-kpi:hover { border-color:#9cb6ef; box-shadow:0 5px 18px #2d5dba12; }
    .pq-workspace .pq-production-kpi.selected { border-color:var(--pq-blue); box-shadow:inset 0 0 0 1px var(--pq-blue); background:#f7faff; }
    .pq-workspace .pq-kpi-link { color:var(--pq-blue); font-size:11px; font-weight:750; margin-top:12px; }
    .pq-production-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:16px; }
    .pq-production-head h3 { font-size:21px; line-height:1.25; margin:0 0 6px; letter-spacing:-.02em; }
    .pq-production-head p { margin:0; color:var(--pq-muted); font-size:12px; }
    .pq-production-total { display:flex; flex-wrap:wrap; align-items:center; gap:8px 18px; padding:15px 18px; background:#f2f6ff; border:1px solid #dfe9fc; border-radius:12px; }
    .pq-production-total>b { font-size:27px; letter-spacing:-.02em; color:#234378; font-variant-numeric:tabular-nums; }
    .pq-production-total em { font-size:14px; font-style:normal; font-weight:650; }
    .pq-production-total>span { font-size:12px; color:#637a9b; }
    .pq-production-hint { color:var(--pq-muted); font-size:12px; margin:18px 0 10px; }
    .pq-production-list { display:grid; gap:10px; min-width:0; }
    .pq-production-row { min-width:0; border:1px solid var(--pq-line); border-radius:12px; background:white; overflow:hidden; }
    .pq-production-row[open] { border-color:#a9c1f4; background:#fbfcff; }
    .pq-production-summary { display:grid; grid-template-columns:1.7fr 1fr 1.3fr 1fr; align-items:center; gap:18px; padding:17px; cursor:pointer; list-style:none; min-height:88px; }
    .pq-production-summary::-webkit-details-marker { display:none; }
    .pq-production-summary::marker { content:""; }
    .pq-production-summary>span { min-width:0; }
    .pq-production-summary b { display:block; font-size:13px; line-height:1.45; overflow-wrap:anywhere; }
    .pq-production-summary small { display:block; font-size:11px; color:var(--pq-muted); line-height:1.5; margin-top:4px; overflow-wrap:anywhere; }
    .pq-production-product>b { color:#25477e; }
    .pq-production-volume>b { font-size:18px; font-variant-numeric:tabular-nums; }
    .pq-production-volume em { font-style:normal; font-size:12px; color:var(--pq-muted); }
    .pq-production-status { text-align:right; }
    .pq-production-summary .pq-production-more { color:#315eb3; margin-top:7px; }
    .pq-production-more>span { display:inline-block; transition:transform .15s; }
    .pq-production-row[open] .pq-production-more>span { transform:rotate(180deg); }
    .pq-production-evidence { padding:18px 17px 2px; border-top:1px solid var(--pq-line); background:#f7faff; }
    .pq-flow-cards { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
    .pq-flow-cards>button, .pq-flow-cards>article { display:flex; flex-direction:column; align-items:flex-start; min-width:0; min-height:145px; gap:8px; padding:16px; color:var(--pq-ink); background:linear-gradient(145deg,#f8faff,#f1f6ff); border:1px solid #dfe8f8; border-radius:12px; text-align:left; }
    .pq-flow-cards>button { cursor:pointer; }
    .pq-flow-cards>button:hover { border-color:#9cb6ef; background:#eef4ff; }
    .pq-flow-cards span { color:#5c6f8c; font-size:11px; font-weight:750; line-height:1.45; }
    .pq-flow-cards b { color:#203c6d; font-size:19px; line-height:1.4; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
    .pq-flow-cards b em { color:#637893; font-size:11px; font-style:normal; font-weight:700; }
    .pq-flow-cards b i { color:#7596d3; padding:0 3px; font-style:normal; }
    .pq-flow-cards small { margin-top:auto; color:var(--pq-muted); font-size:10px; line-height:1.5; }
    .pq-flow-table { margin-top:22px; }
    .pq-flow-table h4 { margin:0 0 10px; font-size:13px; }
    .pq-workspace>.pq-panel, .pq-kpis+.pq-panel, .pq-panel+.pq-panel { margin-bottom:14px; }
    @media (max-width:760px) {
      .pq-production-head { flex-direction:column; gap:12px; }
      .pq-production-head h3 { font-size:20px; }
      .pq-production-summary { grid-template-columns:minmax(0,1.6fr) minmax(0,1fr); gap:13px; padding:14px; }
      .pq-production-volume { text-align:right; }
      .pq-production-stage { grid-row:2; }
      .pq-production-status { grid-row:2; }
      .pq-production-evidence { padding:14px 14px 0; }
      .pq-pagination[aria-label="Страницы расшифровки"] { flex-wrap:wrap; }
      .pq-pagination[aria-label="Страницы расшифровки"]>div { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); width:100%; }
      .pq-pagination[aria-label="Страницы расшифровки"] .pq-button { min-width:0; white-space:normal; padding:9px; font-size:12px; }
    }
    .pq-workspace :is(button,input,select,summary,a,[tabindex]):focus-visible { outline:3px solid #93b5ff; outline-offset:3px; }
    .pq-source-status, .pq-applied-period { display:flex; align-items:center; flex-wrap:wrap; gap:8px 16px; font-size:12px; color:var(--pq-muted); margin:12px 0; }
    .pq-source-status>span { background:#edf4ff; color:#2457ba; border-radius:99px; padding:4px 9px; font-weight:700; }
    .pq-tabs { display:flex; gap:4px; overflow-x:auto; border-bottom:1px solid var(--pq-line); padding:0 0 0; margin:18px 0; }
    .pq-tabs button { border:0; border-bottom:3px solid transparent; background:transparent; padding:14px 16px; color:var(--pq-muted); font-size:13px; font-weight:750; white-space:nowrap; word-break:normal; cursor:pointer; min-height:48px; flex-shrink:0; }
    .pq-tabs button.active { color:var(--pq-blue); border-bottom-color:var(--pq-blue); }
    .pq-filters { border:1px solid var(--pq-line); border-radius:16px; padding:18px; background:#fff; margin-bottom:16px; }
    .pq-filter-primary { display:grid; grid-template-columns:1.15fr 1.8fr .75fr 1fr; gap:12px; }
    .pq-field { display:grid; gap:6px; min-width:0; color:#5a6980; font-size:12px; }
    .pq-field>span { font-weight:700; }
    .pq-workspace .pq-field :is(select,input), .pq-workspace .pq-search input { width:100%; min-width:0; min-height:44px; height:44px; background:#fff; color:var(--pq-ink); border:1px solid #d8e0ed; border-radius:10px; padding:8px 10px; font-size:14px; font-weight:500; box-shadow:none; }
    .pq-workspace select[data-native-select] { appearance:auto; -webkit-appearance:menulist; background-image:none; padding-right:8px; }
    .pq-more-filters summary { cursor:pointer; font-size:12px; font-weight:700; color:#405880; min-height:44px; padding:12px 0 6px; }
    .pq-filter-extra { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; padding:8px 0; }
    .pq-filter-actions { display:flex; gap:8px; align-items:center; margin-top:12px; }
    .pq-search { flex:1; min-width:0; }
    .pq-dates { display:grid; grid-template-columns:200px 200px minmax(0,1fr); gap:12px; align-items:end; margin-top:12px; }
    .pq-dates>span, .pq-draft-note { font-size:11px; color:var(--pq-muted); }
    .pq-draft-note { margin:10px 0 0; }
    .pq-kpis { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-bottom:14px; }
    .pq-workspace .pq-kpi { display:flex; flex-direction:column; align-items:flex-start; text-align:left; gap:8px; min-width:0; min-height:166px; padding:20px; border:1px solid var(--pq-line); border-radius:16px; background:#fff; color:var(--pq-ink); box-shadow:0 3px 14px rgba(21,48,87,.025); }
    .pq-kpi>span { color:#596b84; font-size:12px; font-weight:650; }
    .pq-kpi>strong { font-size:34px; font-weight:800; line-height:1.2; letter-spacing:-.03em; font-variant-numeric:tabular-nums; }
    .pq-kpi>small { margin-top:auto; color:var(--pq-muted); font-size:11px; line-height:1.5; }
    .pq-kpi em { font-size:16px; font-weight:650; font-style:normal; color:var(--pq-muted); }
    .pq-kpi.attention { border-top:3px solid #d8842a; padding-top:18px; }
    .pq-kpi.attention>strong { color:#a86112; }
    .pq-quantities { display:flex; gap:6px 12px; align-items:center; flex-wrap:wrap; color:var(--pq-muted); font-size:12px; margin:12px 0 18px; }
    .pq-quantities b { color:var(--pq-ink); font-variant-numeric:tabular-nums; }
    .pq-quantities small { margin-left:auto; max-width:480px; font-size:11px; }
    .pq-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
    .pq-panel { min-width:0; border:1px solid var(--pq-line); border-radius:16px; padding:20px; background:#fff; }
    .pq-panel-head { margin-bottom:18px; }
    .pq-panel h3, .pq-journal-tools h3 { font-size:16px; line-height:1.4; font-weight:750; margin:0 0 5px; }
    .pq-panel-head p, .pq-journal-tools p { color:var(--pq-muted); font-size:12px; margin:0; }
    .pq-measure { display:flex; align-items:center; gap:10px 14px; flex-wrap:wrap; margin:16px 0; color:var(--pq-muted); font-size:12px; }
    .pq-measure>small { margin-left:auto; }
    .pq-segments { display:flex; gap:3px; padding:3px; border:1px solid var(--pq-line); border-radius:10px; background:#edf1f7; }
    .pq-segments button { background:transparent; color:#5c6a80; border:0; border-radius:7px; padding:7px 12px; min-height:38px; font-size:12px; font-weight:700; cursor:pointer; white-space:nowrap; }
    .pq-segments button.active { background:#fff; color:var(--pq-blue); box-shadow:0 1px 5px rgba(25,46,89,.12); }
    .pq-ranking { list-style:none; margin:0; padding:0; display:grid; gap:3px; }
    .pq-ranking li { min-width:0; }
    .pq-ranking button { display:flex; align-items:flex-start; gap:10px; width:100%; text-align:left; border:0; border-radius:9px; background:transparent; padding:8px 4px; cursor:pointer; color:var(--pq-ink); }
    .pq-ranking button:hover { background:#f6f8fd; }
    .pq-rank-no { color:#96a4b9; font-size:11px; padding-top:2px; width:14px; flex-shrink:0; }
    .pq-rank-body { display:grid; gap:6px; min-width:0; flex:1; }
    .pq-rank-body b { font-size:12px; font-weight:650; overflow-wrap:anywhere; }
    .pq-rank-body small { color:var(--pq-muted); font-size:10px; }
    .pq-rank-body progress { width:100%; height:6px; border:none; border-radius:99px; overflow:hidden; background:#edf2fb; }
    .pq-rank-body progress::-webkit-progress-bar { background:#edf2fb; border-radius:99px; }
    .pq-rank-body progress::-webkit-progress-value { background:#5984ee; border-radius:99px; }
    .pq-rank-body progress::-moz-progress-bar { background:#5984ee; border-radius:99px; }
    .pq-rank-value { font-weight:750; font-size:13px; text-align:right; min-width:48px; font-variant-numeric:tabular-nums; }
    .pq-rank-value small { display:block; font-size:10px; color:var(--pq-muted); font-weight:500; }
    .pq-trend { min-width:0; padding:12px 0 2px; }
    .pq-trend svg { width:100%; height:auto; display:block; overflow:visible; }
    .pq-trend text { fill:#72839e; font:10px system-ui,sans-serif; }
    .pq-chart-grid { stroke:#dfe7f5; stroke-dasharray:4 5; }
    .pq-chart-line { fill:none; stroke:#356de6; stroke-width:2.5; stroke-linejoin:round; stroke-linecap:round; }
    .pq-chart-dot { fill:#356de6; stroke:#fff; stroke-width:1; }
    .pq-daily-details summary { font-size:11px; color:#496791; cursor:pointer; padding:12px 0; min-height:40px; }
    .pq-status-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
    .pq-status-grid button { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:65px; padding:13px; text-align:left; color:#52637d; font-size:12px; background:#f7f9fd; border:1px solid #e9eef8; border-radius:10px; cursor:pointer; }
    .pq-status-grid b { color:var(--pq-ink); font-size:22px; }
    .pq-insights { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:16px; }
    .pq-insights button { display:grid; gap:5px; text-align:left; border:1px solid #dfe7f5; border-radius:12px; padding:15px; background:#f0f5ff; color:#354d75; cursor:pointer; }
    .pq-insights b { font-size:13px; }
    .pq-insights span { font-size:12px; color:#667b99; }
    .pq-overview-grid { grid-template-columns:minmax(0,1.55fr) minmax(320px,.85fr); align-items:start; }
    .pq-overview-quality { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
    .pq-overview-quality button { display:flex; flex-direction:column; align-items:flex-start; gap:6px; min-width:0; min-height:132px; padding:15px; text-align:left; color:var(--pq-ink); background:#f7f9fd; border:1px solid #e3eaf5; border-radius:11px; cursor:pointer; }
    .pq-overview-quality button:hover { border-color:#a9c1f4; background:#f2f6ff; }
    .pq-overview-quality span { color:#596b84; font-size:11px; font-weight:700; }
    .pq-overview-quality b { color:#263d66; font-size:25px; line-height:1.2; font-variant-numeric:tabular-nums; }
    .pq-overview-quality small { margin-top:auto; color:var(--pq-muted); font-size:10px; line-height:1.45; overflow-wrap:anywhere; }
    .pq-journal-tools { display:flex; gap:18px; justify-content:space-between; align-items:center; margin-bottom:16px; }
    .pq-journal-tools .pq-field { max-width:300px; }
    .pq-table-wrap { width:100%; max-width:100%; overflow-x:auto; border:1px solid #e6ecf5; border-radius:11px; overscroll-behavior-x:contain; }
    .pq-workspace table { border-collapse:collapse; width:100%; font-size:12px; }
    .pq-workspace th { background:#f7f9fd; color:#74829a; font-size:10px; font-weight:750; text-align:left; letter-spacing:.02em; }
    .pq-workspace th, .pq-workspace td { padding:13px 12px; border-bottom:1px solid #edf1f7; vertical-align:top; }
    .pq-workspace td small, .pq-workspace td>span:not(.pq-status) { display:block; color:var(--pq-muted); font-size:11px; margin-top:5px; }
    .pq-workspace tbody tr:last-child td { border-bottom:0; }
    .pq-workspace .pq-journal { min-width:800px; table-layout:fixed; }
    .pq-journal th:first-child { width:25%; }
    .pq-journal th:nth-child(2) { width:15%; }
    .pq-journal th:nth-child(3) { width:23%; }
    .pq-journal th:nth-child(4) { width:19%; }
    .pq-case-link { border:0; padding:0; background:transparent; color:#315db4; font-weight:700!important; text-align:left; line-height:1.4; cursor:pointer; overflow-wrap:anywhere; }
    .pq-workspace .pq-status { display:inline-block; color:#4a638b; border:1px solid #dbe6f8; background:#eff5ff; border-radius:7px; padding:4px 7px; font-size:10px; font-weight:650; }
    .pq-workspace .pq-status.attention { color:#946114; border-color:#f1ddab; background:#fff7e6; }
    .pq-workspace .pq-status.closed { color:#527069; border-color:#d8e7e2; background:#eff7f3; }
    .pq-row-selected { background:#f4f7fe; }
    .pq-workspace td.pq-detail-cell { padding:0; }
    .pq-case-detail { padding:20px; margin-bottom:18px; background:#f8faff; border:1px solid #dce6f8; border-radius:12px; }
    .pq-classify { display:flex; align-items:end; gap:12px; flex-wrap:wrap; margin-top:16px; }
    .pq-classify .pq-field { flex:1; min-width:180px; }
    .pq-classify p { flex-basis:100%; font-size:11px; color:var(--pq-muted); margin:0; }
    .pq-mobile-journal { display:none; }
    .pq-mobile-journal>article { border:1px solid var(--pq-line); border-radius:12px; padding:14px; min-width:0; }
    .pq-mobile-journal .pq-case-link { min-height:44px; display:block; width:100%; }
    .pq-mobile-journal small { display:block; color:var(--pq-muted); font-size:11px; font-weight:400; margin-top:5px; }
    .pq-mobile-meta { display:flex; align-items:center; gap:10px; justify-content:space-between; margin-top:12px; }
    .pq-mobile-meta b { white-space:nowrap; font-variant-numeric:tabular-nums; }
    .pq-mobile-journal p { margin:10px 0 0; font-size:12px; }
    .pq-case-title { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; }
    .pq-case-title small { color:#7990b3; font-size:10px; }
    .pq-case-title h3 { font-size:16px; margin:4px 0 16px; }
    .pq-detail-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px 20px; margin:0 0 16px; }
    .pq-detail-grid dt { color:#74829a; font-size:10px; margin:0 0 4px; }
    .pq-detail-grid dd { margin:0; font-weight:650; font-size:12px; overflow-wrap:anywhere; }
    .pq-case-comment { background:#fff; border:1px solid #e2e9f4; border-radius:10px; padding:12px; }
    .pq-case-comment b { color:#5d7394; font-size:11px; }
    .pq-case-comment p { margin:6px 0 0; white-space:pre-wrap; overflow-wrap:anywhere; }
    .pq-rework-detail { border-top:1px solid #dfe7f3; margin-top:16px; padding-top:12px; }
    .pq-rework-detail h4 { margin:0 0 12px; font-size:13px; }
    .pq-rework-detail>p { font-size:11px; color:#6a7d99; }
    .pq-photo-link { margin-top:12px; }
    .pq-pagination { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-top:16px; color:var(--pq-muted); font-size:11px; }
    .pq-pagination>div { display:flex; gap:8px; }
    .pq-table-short { max-height:260px; }
    .pq-note, .pq-caption { color:var(--pq-muted); font-size:11px; line-height:1.65; }
    .pq-note { margin-top:14px; }
    .pq-danger-text { color:#b4542e; font-weight:750; }
    .pq-methodology { margin-top:20px; padding:15px 18px; border:1px solid #dfe7f3; border-radius:12px; background:#f6f8fc; color:#667890; font-size:12px; }
    .pq-methodology summary { cursor:pointer; font-weight:700; color:#4b6387; min-height:30px; }
    .pq-methodology li { margin-bottom:5px; }
    .pq-methodology p { margin:12px 0 0; }
    .pq-banner { padding:12px 15px; margin:12px 0; border:1px solid #e5d8ba; border-radius:11px; background:#fffaee; color:#876522; font-size:12px; }
    .pq-banner-error { background:#fff3f1; border-color:#efd4cd; color:#a04434; }
    .pq-empty { display:grid; place-items:center; text-align:center; min-height:170px; padding:24px; }
    .pq-empty>span { color:#8ba7d7; font-size:32px; }
    .pq-empty h4 { margin:8px 0; font-size:14px; }
    .pq-empty p { margin:0; color:var(--pq-muted); max-width:340px; font-size:12px; }
    .pq-loading { display:flex; align-items:center; justify-content:center; gap:12px; min-height:160px; color:var(--pq-muted); }
    .pq-loading>span { width:20px; height:20px; border:3px solid #e1eaff; border-top-color:#4c77db; border-radius:50%; animation:pq-spin 1s linear infinite; flex-shrink:0; }
    @keyframes pq-spin { to { transform:rotate(360deg); } }
    @media (prefers-reduced-motion:reduce) { .pq-loading>span { animation:none; } }
    @media (max-width:1250px) { .pq-header { flex-direction:column; gap:14px; }.pq-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); }.pq-kpi { min-height:140px; }.pq-grid { grid-template-columns:1fr; }.pq-overview-grid { grid-template-columns:1fr; }.pq-flow-cards { grid-template-columns:repeat(2,minmax(0,1fr)); } }
    @media (max-width:760px) { .pq-filter-primary,.pq-filter-extra { grid-template-columns:repeat(2,minmax(0,1fr)); }.pq-quantities small { margin-left:0; flex-basis:100%; }.pq-panel,.pq-filters { padding:14px; }.pq-dates { grid-template-columns:1fr 1fr; }.pq-dates>span { grid-column:1/-1; }.pq-measure>small { margin-left:0; }.pq-header h2 { font-size:26px; }.pq-header p { font-size:12px; }.pq-journal-tools { align-items:stretch; flex-direction:column; }.pq-journal-tools .pq-field { max-width:none; }.pq-insights { grid-template-columns:1fr; }.pq-workspace .pq-field :is(select,input),.pq-workspace .pq-search input { font-size:16px; }.pq-detail-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
    @media (max-width:420px) { .pq-filter-primary,.pq-filter-extra { grid-template-columns:1fr; }.pq-kpis { gap:8px; }.pq-workspace .pq-kpi { padding:13px; min-height:150px; }.pq-kpi>strong { font-size:28px; }.pq-filter-actions { flex-wrap:wrap; }.pq-search { flex-basis:100%; }.pq-filter-actions>.pq-button { flex:1; }.pq-status-grid,.pq-overview-quality,.pq-flow-cards { grid-template-columns:1fr; }.pq-flow-cards>button,.pq-flow-cards>article { min-height:122px; }.pq-overview-quality button { min-height:108px; }.pq-tabs button { padding:12px 10px; font-size:12px; }.pq-header-actions { width:100%; }.pq-header-actions button { flex:1; }.pq-measure { gap:8px; }.pq-pagination { flex-wrap:wrap; }.pq-pagination>div { margin-left:auto; }.pq-panel { padding:12px; }.pq-workspace .pq-journal { min-width:760px; } }
    @media (max-width:760px) { .pq-tabs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); overflow-x:visible; }.pq-tabs button { min-width:0; white-space:normal; word-break:normal; line-height:1.3; padding:10px 8px; }.pq-desktop-journal { display:none; }.pq-mobile-journal { display:grid; gap:10px; }.pq-case-detail { padding:14px; }.pq-case-title { flex-wrap:wrap; gap:8px; }.pq-classify .pq-field { min-width:0; flex-basis:100%; }.pq-classify .pq-button { width:100%; }.pq-segments button { min-height:44px; } }

/* Compact management views share the existing analytics shell. */
.pq-quick-periods,.pq-pagination{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.pq-quick-periods .pq-button[aria-pressed="true"]{background:#e8efff;color:#1649ca}
.pq-wait-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}
.pq-wait-card{display:flex;flex-direction:column;gap:8px;text-align:left;border:1px solid #dbe2f0;background:#f8faff;border-radius:14px;padding:16px;color:inherit;cursor:pointer}
.pq-family{border:1px solid #dbe2f0;border-radius:14px;padding:14px;margin:12px 0;min-width:0;background:#fff}
.pq-family>summary{cursor:pointer;padding:6px;overflow-wrap:anywhere}
.pq-family>summary span{display:block;font-size:13px;color:#657086;margin-top:6px}
.pq-family-stage{padding:12px 0;border-top:1px solid #e7ebf2}
.pq-family-stage p{font-size:14px;color:#59677b}
.pq-task-chip{display:inline-block;background:#f1f5fc;border-radius:8px;padding:7px 10px;margin:3px;font-size:12px;overflow-wrap:anywhere}
.pq-plan-fields{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:12px;margin:16px 0}
.pq-plan-fields select,.pq-plan-fields input{width:100%;min-width:0;min-height:44px;border:1px solid #cbd5e1;border-radius:8px;padding:8px;background:white;color:inherit}
.pq-table-wrap small{display:block;font-size:12px;color:#657086;white-space:normal;margin-top:4px}
.pq-tabs{overflow-x:auto;flex-wrap:nowrap}
.pq-tabs button{flex-shrink:0}
@media(max-width:600px){.pq-plan-fields{grid-template-columns:1fr 1fr}.pq-plan-fields>.pq-field:first-child{grid-column:1/-1}.pq-family{padding:10px}.pq-wait-grid{grid-template-columns:1fr}.pq-pagination{font-size:12px}.pq-header-actions{flex-wrap:wrap}.pq-header-actions .pq-button{min-height:42px}.pq-table-wrap{max-width:100%}}
.pq-filter-disclosure{margin-top:10px}
.pq-filter-disclosure>summary{cursor:pointer;font-size:13px;font-weight:650;padding:10px 0;color:#526580}
.pq-filter-disclosure[open]>.pq-filter-primary{margin-top:10px}
.pq-task-chip{border:1px solid #dce5f3;cursor:pointer;color:#284a83;text-align:left}
.pq-tabs{display:flex;flex-wrap:nowrap}
.pq-header-actions [hidden]{display:none!important}
.pq-table-wrap table{min-width:650px}
@media(max-width:600px){.pq-header-actions{display:flex}.pq-header-actions>.pq-button{flex:1}.pq-tabs{display:flex;flex-wrap:nowrap}.pq-tabs button{min-width:auto}.pq-filters{padding:12px}.pq-header p{display:none}.pq-workspace .pq-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.pq-workspace .pq-kpis>.pq-kpi:last-child:nth-child(odd){grid-column:1/-1}}
.pq-manual-variant{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;border:1px solid #dde5f2;border-radius:10px;padding:12px;min-width:0}
.pq-manual-variant[hidden]{display:none}
@media(max-width:600px){.pq-workspace .pq-kpis>.pq-kpi:last-child:nth-child(odd){min-height:110px}.pq-workspace .pq-kpis>.pq-kpi:last-child:nth-child(odd) small{margin-top:8px}}

/* Cutting route explorer: dense desktop table, horizontal scroll on phones. */
.pr-table-wrap{overflow:auto;margin-top:16px;border:1px solid #dfe3ef;border-radius:12px}
.pr-table{width:100%;min-width:1120px;border-collapse:collapse;font-size:14px}
.pr-table th,.pr-table td{padding:12px 14px;border-bottom:1px solid #e4e7f0;text-align:right;vertical-align:top;font-variant-numeric:tabular-nums}
.pr-table th:first-child{min-width:260px;max-width:370px;text-align:left}
.pr-table thead{background:#eef1fb;color:#414b65}
.pr-table tbody th{font-weight:400}.pr-table small{display:block;color:#59657b;margin-top:5px}
.pr-table tbody tr:nth-child(even){background:#f8f9fd}
.pr-status{display:inline-block;padding:3px 8px;margin-top:6px;border-radius:7px;background:#edf0fa;color:#3b4872;font-size:12px}
.pr-complete{background:#e5f3e9;color:#245b38}.pr-date-toggle{margin:18px 0}.pr-date-toggle input{width:auto;margin-right:8px}
.pr-table-wrap:focus-visible{outline:3px solid #4355dc;outline-offset:3px}

.pq-workspace .pr-table{font-size:14px;background:#fff;color:#243149}
.pq-workspace .pr-table th{color:#34425a;font-size:13px;letter-spacing:normal}
.pq-workspace .pr-table tbody th{background:transparent}

/* Keep table context visible while scrolling wide and long reports. */
.pq-workspace :is(.pq-table-wrap,.pr-table-wrap){max-height:70vh;max-height:70dvh;overflow:auto;overscroll-behavior:contain}
.pq-workspace :is(.pq-table-wrap,.pr-table-wrap) table{border-collapse:separate;border-spacing:0}
.pq-workspace :is(.pq-table-wrap,.pr-table-wrap) thead th{position:sticky;top:0;z-index:2;background:var(--et-subtle,#f3f3f3)}
.pq-workspace .pr-table{--pq-label-width:clamp(112px,28vw,260px);table-layout:fixed}
.pq-workspace .pr-table :is(th,td):first-child{width:var(--pq-label-width);min-width:var(--pq-label-width);max-width:var(--pq-label-width);text-align:left;overflow-wrap:anywhere}
.pq-workspace :is(.pr-table,.pq-journal) :is(th,td):first-child{position:sticky;left:0;z-index:1;background:var(--et-panel,#fff)}
.pq-workspace :is(.pr-table,.pq-journal) thead th:first-child{z-index:3;background:var(--et-subtle,#f3f3f3)}
html[data-ui-theme] .pq-workspace :is(.pr-table,.pq-journal) tbody :is(th,td):first-child{background:var(--et-panel)}
html[data-ui-theme] .pq-workspace .pr-table tbody tr:nth-child(even) :is(th,td):first-child,
html[data-ui-theme] .pq-workspace .pq-journal .pq-row-selected td:first-child{background:var(--et-subtle)}
.pq-workspace .pq-status-symbol{display:inline-flex;align-items:center;justify-content:center;min-width:1.25em;height:1.25em;margin-inline-end:.4em;border:1px solid currentColor;border-radius:50%;font-size:inherit;font-weight:800;line-height:1;vertical-align:baseline}
.pq-workspace .pq-status.closed .pq-status-symbol{border:0}

/* Manager control styles served under the application CSP. */
[data-attention-center]{display:grid;gap:14px;min-width:0;overflow-wrap:anywhere}
        [data-attention-center] p{margin:0;line-height:1.5}[data-attention-center] .attention-tabs,[data-attention-center] .attention-facts,[data-attention-center] .attention-window{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
        [data-attention-center] .attention-tabs .small-button{min-height:44px;flex:1 1 auto}[data-attention-center] .attention-tabs [aria-selected=true]{background:#174dbd;color:#fff}
        [data-attention-center] .attention-list{display:grid;gap:12px;min-width:0}[data-attention-center] .attention-issue,[data-attention-center] .attention-rework,[data-attention-center] .attention-family{padding:16px;display:grid;gap:10px;min-width:0;text-align:left;width:100%;box-sizing:border-box}
        [data-attention-center] .attention-issue{border:1px solid #dbe3f1;font:inherit;cursor:pointer;color:inherit}[data-attention-center] .attention-issue span,[data-attention-center] .attention-family summary span{display:block}
        [data-attention-center] .attention-card-head{display:flex;gap:8px;flex-wrap:wrap;align-items:center;justify-content:space-between}[data-attention-center] .attention-family summary{cursor:pointer;min-height:44px}
        [data-attention-center] .attention-stage{display:grid;gap:8px;padding:14px 0;border-top:1px solid #dbe3f1;min-width:0}[data-attention-center] .attention-values{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0}
        [data-attention-center] .attention-values dt{font-size:12px;color:#627080}[data-attention-center] .attention-values dd{margin:3px 0 0;font-weight:700}[data-attention-center] .attention-error{color:#a0444c}
        [data-attention-center] fieldset{padding:0;border:0;min-width:0}[data-attention-center] form{display:grid;gap:12px;border-top:1px solid #dbe3f1;padding-top:14px}[data-attention-center] input,[data-attention-center] select,[data-attention-center] textarea{width:100%;min-width:0;max-width:100%;box-sizing:border-box;font:inherit}
        [data-attention-center] .small-button{min-height:44px;white-space:normal}[data-attention-center] .button-row{flex-wrap:wrap}[data-attention-center] .field{min-width:0}[data-attention-center] .field label{display:block}
        @media(max-width:430px){[data-attention-center] .form-grid{grid-template-columns:minmax(0,1fr)}[data-attention-center] .form-grid .full{grid-column:auto}[data-attention-center] .attention-rework,[data-attention-center] .attention-family{padding:13px}}

[data-attention-center] .attention-filters{display:flex;gap:8px;flex-wrap:wrap}
[data-attention-center] .attention-filters [aria-pressed=true]{background:#174dbd;color:#fff}
[data-attention-center] .attention-rework-reminder{display:grid;gap:10px;padding:16px;border-left:4px solid #ae6511;background:#fff8ed}

.shift-recovery-dialog {border:0;border-radius:20px;padding:24px;max-width:440px;width:calc(100% - 32px);box-sizing:border-box;color:var(--ink,#17212d);background:var(--card,#fff);max-height:90dvh;overflow:auto;}
.shift-recovery-dialog::backdrop {background:rgba(15,23,42,.55);}
.shift-recovery-dialog h2 {margin:0 0 16px;font-size:22px;}
.shift-recovery-dialog p {line-height:1.5;}
.shift-recovery-dialog label {display:block;font-weight:650;margin:18px 0 8px;}
.shift-recovery-dialog input {display:block;width:100%;box-sizing:border-box;min-height:48px;font-size:20px;padding:10px;border:1px solid #bac4d1;border-radius:10px;background:#fff;color:#17212d;}
.shift-recovery-actions {display:grid;gap:10px;margin-top:16px;}
.shift-recovery-actions button {min-height:44px;white-space:normal;}
.shift-recovery-error {color:#a32626;}

.shift-control-panel{padding:24px;display:grid;gap:20px}.shift-control-heading{display:flex;justify-content:space-between;align-items:center;gap:16px}.shift-control-heading h3{margin:6px 0;font-size:28px}.shift-control-heading p,.shift-control-hint{margin:0;color:var(--muted,#64748b);line-height:1.5}.shift-state-dot{width:18px;height:18px;border-radius:50%;background:#64748b;flex:none}.shift-state-dot.work{background:#23835b;box-shadow:0 0 0 7px #23835b18}.shift-state-dot.lunch{background:#bc791b;box-shadow:0 0 0 7px #bc791b18}.shift-state-dot.smoke,.shift-state-dot.other{background:#7078a4}.shift-time-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.shift-time-stat{padding:16px 12px;border:1px solid #dfe5ef;border-radius:16px;display:grid;gap:8px;background:#f8faff}.shift-time-stat span{font-size:13px;color:#57637b}.shift-time-stat strong{font-size:clamp(18px,3vw,26px);font-variant-numeric:tabular-nums;color:#24334c;white-space:nowrap}.shift-time-stat.work{background:#eef8f2;border-color:#cce9d9}.shift-activity-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.shift-activity-button{min-height:64px;border:1px solid #d7deee;border-radius:14px;background:#fff;color:#23314d;font:inherit;font-weight:700;cursor:pointer}.shift-activity-button.selected{background:#425de5;color:#fff;border-color:#425de5}.shift-activity-button:disabled{cursor:default}.shift-activity-button:disabled:not(.selected){opacity:.55}.shift-activity-button:focus-visible{outline:3px solid #8495ff;outline-offset:3px}.shift-lifecycle-actions{padding-top:16px;border-top:1px solid #e3e8ef;display:flex;justify-content:flex-end}.shift-break-history summary{cursor:pointer;font-weight:600}.shift-break-history ol{list-style:none;margin:12px 0 0;padding:0;display:grid;gap:12px}.shift-break-history li{display:grid;grid-template-columns:1fr auto;gap:4px 12px;padding-bottom:10px;border-bottom:1px solid #edf0f5}.shift-break-history li span{grid-column:1;color:#64748b;font-size:13px}.shift-break-history li strong{grid-column:2;grid-row:1/3;align-self:center;font-variant-numeric:tabular-nums}.shift-report-links{display:flex;flex-wrap:wrap;gap:10px}.shift-report-times{margin-top:12px}.shift-report-times .shift-time-stats{gap:6px}.shift-report-times .shift-time-stat{padding:8px}.shift-report-times .shift-time-stat strong{font-size:16px}[data-shift-activity-message]:empty{display:none}@media(max-width:420px){.shift-control-panel{padding:16px;gap:16px}.shift-time-stats{gap:6px}.shift-time-stat{padding:12px 6px}.shift-time-stat strong{font-size:18px}.shift-activity-actions{gap:6px}.shift-activity-button{font-size:14px;min-height:60px}}

.shift-report-card{padding:20px}.shift-report-card h3{margin:0 0 12px}.shift-report-card p{line-height:1.5}

/* Scoped styles for the independently loaded staff workspace. */
.task-control-workspace .app-main{min-width:0}.tc-app{--tc-blue:#2053eb;--tc-line:#e1e7f0;--tc-muted:#526078;color:#192638;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:14px;line-height:1.5}.tc-layout{display:grid;grid-template-columns:190px minmax(0,1fr);gap:24px}.tc-nav{display:flex;flex-direction:column;gap:5px;align-self:start;position:sticky;top:12px}.tc-brand{font-size:11px;font-weight:800;letter-spacing:1.5px;color:var(--tc-muted);margin:10px 10px 18px}.tc-nav .tc-btn{text-align:left;border:0;background:transparent;color:#637088}.tc-nav [aria-current]{background:#eaf0ff;color:var(--tc-blue)}.tc-main{min-width:0}.tc-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:4px 0 25px}.tc-app h1{font-size:30px;line-height:1.2;margin:8px 0;font-weight:800}.tc-app h2{font-size:20px;margin:20px 0 14px}.tc-app h3{font-size:15px;margin:10px 0}.tc-app small,.tc-muted{color:var(--tc-muted)}.tc-btn{display:inline-block;background:var(--tc-blue);color:white;border:1px solid transparent;padding:11px 16px;border-radius:12px;min-height:44px;font:inherit;font-weight:650;cursor:pointer}.tc-secondary{color:#38465e;background:white;border-color:var(--tc-line)}.tc-btn:disabled{opacity:.5;cursor:wait}.tc-app button:focus-visible,.tc-app input:focus-visible,.tc-app select:focus-visible,.tc-app textarea:focus-visible{outline:3px solid #84a3ff;outline-offset:3px}.tc-toolbar,.tc-row,.tc-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.tc-row{justify-content:space-between}.tc-actions{margin-top:20px}.tc-toolbar{margin-bottom:18px}.tc-toolbar input{flex:1;min-width:150px}.tc-app input:not([type=checkbox]):not([type=file]),.tc-app select,.tc-app textarea{border:1px solid var(--tc-line);padding:11px 12px;border-radius:10px;background:#fff;color:#21314b;font:inherit;max-width:100%;box-sizing:border-box}.tc-app textarea{min-height:110px;resize:vertical}.tc-app input[type=checkbox]{width:18px;height:18px;accent-color:var(--tc-blue);flex:none}.tc-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:12px}.tc-task{display:block;width:100%;border:1px solid var(--tc-line);background:white;text-align:left;color:inherit;padding:17px;border-radius:15px;font:inherit;cursor:pointer;overflow-wrap:anywhere}.tc-task:hover{border-color:#95b0ff;box-shadow:0 5px 16px #2053eb0b}.tc-task h3{font-size:16px}.tc-task p{color:var(--tc-muted);margin:8px 0 14px}.tc-priority{font-size:11px;font-weight:700;border-radius:20px;background:#f0f3f8;padding:4px 9px}.tc-urgent{background:#ffeded;color:#c63b3b}.tc-high{background:#fff2dc;color:#936100}.tc-low{color:#788aa0}.tc-board{display:grid;grid-template-columns:repeat(4,minmax(210px,1fr));gap:12px;overflow-x:auto;padding-bottom:12px}.tc-column{min-width:0;border-radius:15px;background:#edf1f7;padding:12px}.tc-column>.tc-task{margin-top:12px}.tc-column h3{margin:0 0 12px}.tc-week{display:grid;grid-template-columns:repeat(7,minmax(175px,1fr));gap:8px;overflow-x:auto}.tc-panel{background:white;border:1px solid var(--tc-line);border-radius:17px;padding:23px;margin:15px 0;overflow-wrap:anywhere}.tc-panel h2:first-child,.tc-panel h3:first-child{margin-top:0}.tc-detail{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(230px,1fr);gap:20px}.tc-text{white-space:pre-wrap}.tc-block{padding:12px;background:#fff5df;color:#8a5c0e;border-radius:9px;font-size:13px;margin-top:14px}.tc-check{display:flex;align-items:center;gap:10px;padding:10px 0}.tc-field{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:600;margin:14px 0}.tc-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.tc-comment{border-bottom:1px solid var(--tc-line);padding:12px 0}.tc-comment small{display:block}.tc-empty{text-align:center;background:#fff;border:1px dashed var(--tc-line);border-radius:15px;padding:45px 20px;margin:20px 0;color:var(--tc-muted)}.tc-error,.tc-notice,.tc-saving{border-radius:12px;padding:12px 16px;margin-bottom:15px}.tc-error{background:#fff0ee;color:#a83a32}.tc-notice{background:#eaf7ef;color:#297244}.tc-saving{background:#eaf0ff;color:#2053eb}.tc-badge{border-radius:12px;background:#dbe6ff;padding:2px 6px}.tc-unread{border-left:4px solid var(--tc-blue)}.tc-mobile{display:none}.tc-app fieldset{border:1px solid var(--tc-line);border-radius:10px}.tc-app a{color:var(--tc-blue)}
@media(max-width:1000px){.tc-layout{grid-template-columns:150px minmax(0,1fr);gap:16px}.tc-detail{grid-template-columns:1fr}.tc-board{grid-template-columns:repeat(4,230px)}}
@media(max-width:700px){.tc-layout{display:block}.tc-nav{display:none}.tc-mobile{display:block;margin-bottom:20px}.tc-mobile select{width:100%}.tc-heading{align-items:flex-start}.tc-app h1{font-size:25px}.tc-heading>.tc-btn{padding:10px;max-width:135px}.tc-list{grid-template-columns:1fr}.tc-grid{grid-template-columns:1fr}.tc-panel{padding:17px}.tc-app input:not([type=checkbox]),.tc-app textarea,.tc-app select{font-size:16px}.tc-week{grid-template-columns:1fr;overflow:visible}.tc-board{grid-template-columns:1fr;overflow:visible}.tc-toolbar>*{max-width:100%}.tc-toolbar select{flex:1;min-width:120px}.tc-actions .tc-btn{flex-grow:1}.tc-app .tc-detail{gap:0}}
body.web-mode.task-control-workspace .body{padding:22px 24px 46px!important}body.web-mode.task-control-workspace #mount{width:100%}
@media(max-width:899px){body.web-mode .mobile-workspace-nav:not([hidden]){display:grid}body.web-mode.task-control-workspace .body{padding:16px 14px 35px!important}}

.tc-filters{margin-bottom:16px}.tc-filters>summary{display:none;cursor:pointer;font-weight:650;padding:12px 0;min-height:44px;box-sizing:border-box}.tc-filters:not([open])>.tc-toolbar{display:flex}.tc-filters .tc-toolbar{margin-bottom:0}
@media(max-width:700px){.tc-filters>summary{display:list-item;list-style-position:inside;color:#526581}.tc-filters:not([open])>.tc-toolbar{display:none}.tc-filters[open]>.tc-toolbar{display:flex}.tc-filters{border-top:1px solid var(--tc-line);border-bottom:1px solid var(--tc-line);padding-bottom:0}.tc-filters[open]{padding-bottom:12px}}
@media(min-width:701px){.tc-filters::details-content{content-visibility:visible}}

/* Opt-in desktop administration. The legacy and mobile layouts are untouched. */
@media (min-width: 1024px) {
  body.desktop-admin {
    --da-bg: #f5f6fa;
    --da-panel: #fff;
    --da-text: #202a40;
    --da-sub: #526078;
    --da-line: #e7eaf2;
    --da-blue: #4059d8;
    --da-soft: #eef1ff;
    color: var(--da-text);
    background: var(--da-bg);
    font-size: 14px;
    line-height: 1.45;
  }

  body.desktop-admin #appRoot.app {
    width: calc(100% - 200px) !important;
    max-width: none !important;
    min-height: 100vh;
    margin: 0 0 0 200px !important;
    padding: 0 !important;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: var(--da-bg);
    overflow: visible;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  body.desktop-admin #appRoot.app::after { display: none; }

  body.desktop-admin #appRoot .appbar {
    position: relative;
    top: auto;
    min-height: 68px;
    height: auto;
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 12px 26px !important;
    background: var(--da-panel);
    border-bottom: 1px solid var(--da-line);
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
  }

  body.desktop-admin #appRoot .app-title { flex: 1; min-width: 140px; }
  body.desktop-admin #appRoot .app-title::after { display: none; }
  body.desktop-admin #appRoot .app-brand-lockup { min-height: 34px; gap: 9px; }
  body.desktop-admin #appRoot .app-brand-lockup img { width: 30px; height: 30px; }
  body.desktop-admin #appRoot .app-brand-lockup .brand-wordmark { font-size: 17px; }
  body.desktop-admin #appRoot .appbar-profile { display: grid; flex: 0 1 auto; max-width: 250px; }
  body.desktop-admin #appRoot .appbar-profile small { font-size: 12px; white-space: normal; overflow-wrap: anywhere; }
  body.desktop-admin #appRoot .appbar-actions { display: flex; flex-wrap: wrap; gap: 8px; }
  body.desktop-admin #appRoot .appbar-actions .icon-btn { box-shadow: none; border-radius: 7px; }
  body.desktop-admin #webActionSlot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

  body.desktop-admin #appRoot .workspace-nav,
  body.desktop-admin #appRoot .mobile-workspace-nav,
  body.desktop-admin #bottomNav { display: none !important; }
  body.desktop-admin[data-da-screen="orders"] #topTabs { display: none !important; }
  body.desktop-admin #appRoot #topTabs {
    position: static;
    inset: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: fit-content;
    max-width: 100% !important;
    height: auto;
    margin: 0 0 20px;
    padding: 4px;
    gap: 4px;
    transform: none;
    border: 1px solid var(--da-line);
    border-radius: 8px;
    background: var(--da-panel);
    box-shadow: none;
  }
  body.desktop-admin #appRoot #topTabs .tab { flex: 0 1 auto; min-width: 100px; min-height: 36px; padding: 8px 14px; border-radius: 6px; font-size: 12px; }

  body.desktop-admin #appRoot .body {
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
    min-height: calc(100vh - 68px);
    margin: 0;
    padding: 26px 26px 40px !important;
  }
  body.desktop-admin #mount { min-width: 0; max-width: none; }

  body.desktop-admin .da-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 65;
    width: 200px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 24px 12px 16px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-right: 1px solid var(--da-line);
    background: var(--da-panel);
  }
  body.desktop-admin .da-brand { display: flex; align-items: center; gap: 9px; padding: 0 5px; }
  body.desktop-admin .da-brand img { width: 34px; height: 34px; flex: none; border-radius: 9px; }
  body.desktop-admin .da-brand strong { display: block; font-size: 14px; font-weight: 700; }
  body.desktop-admin .da-brand small { display: block; margin-top: 3px; color: var(--da-sub); font-size: 10px; }
  body.desktop-admin .da-nav { display: flex; flex-direction: column; gap: 5px; }
  body.desktop-admin .da-nav button {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    width: 100%;
    padding: 10px 11px;
    border: 0;
    border-radius: 7px;
    box-shadow: none;
    background: transparent;
    color: var(--da-sub);
    text-align: left;
    font: inherit;
    font-size: 13px;
    line-height: 1.35;
  }
  body.desktop-admin .da-nav button:hover { background: var(--da-bg); color: var(--da-text); }
  body.desktop-admin .da-nav button.active,
  body.desktop-admin .da-nav button[aria-current="page"] { background: var(--da-soft); color: var(--da-blue); font-weight: 600; }
  body.desktop-admin .da-nav-icon { display: inline-grid; place-items: center; width: 20px; flex: none; font-size: 18px; }
  body.desktop-admin .da-nav-label { min-width: 0; overflow-wrap: anywhere; }
  body.desktop-admin .da-sidebar-foot { margin-top: auto; padding: 15px 4px 0; border-top: 1px solid var(--da-line); }
  body.desktop-admin .da-link { display: block; width: 100%; padding: 9px 7px; border: 0; border-radius: 6px; background: transparent; color: var(--da-sub); text-align: left; font-size: 12px; }
  body.desktop-admin .da-link:hover { color: var(--da-blue); background: var(--da-soft); }
  body.desktop-admin #desktopAdminNav[hidden] { display: none !important; }

  body.desktop-admin .da-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 22px; }
  body.desktop-admin .da-heading h2 { margin: 0; color: var(--da-text); font-size: 26px; font-weight: 650; line-height: 1.25; letter-spacing: -.6px; }
  body.desktop-admin .da-heading p { display: block; margin: 6px 0 0; color: var(--da-sub); font-size: 12px; }
  body.desktop-admin .da-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
  body.desktop-admin .da-heading .small-button,
  body.desktop-admin .da-panel .small-button,
  body.desktop-admin .da-drawer .small-button {
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 7px;
    box-shadow: none;
    font-size: 12px;
    line-height: 1.35;
  }
  body.desktop-admin .da-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-bottom: 22px; }
  body.desktop-admin .da-stat { display: block; min-width: 0; padding: 15px 17px; border: 1px solid var(--da-line); border-radius: 10px; background: var(--da-panel); color: var(--da-text); text-align: left; box-shadow: none; }
  body.desktop-admin .da-stat:hover { border-color: #b6c1ee; }
  body.desktop-admin .da-stat > span { display: block; color: var(--da-sub); font-size: 12px; }
  body.desktop-admin .da-stat strong { display: block; margin: 5px 0 3px; font-size: 28px; line-height: 1.3; font-weight: 600; letter-spacing: -.6px; font-variant-numeric: tabular-nums; }
  body.desktop-admin .da-stat small { display: block; color: var(--da-sub); font-size: 11px; }
  body.desktop-admin .da-stat.is-alert { border-color: #e8d3ad; }
  body.desktop-admin .da-stat.is-alert strong { color: #966013; }
  body.desktop-admin .da-tabs { display: flex; flex-wrap: wrap; gap: 24px; margin-bottom: 18px; border-bottom: 1px solid var(--da-line); }
  body.desktop-admin .da-tab { min-height: 38px; padding: 0 0 11px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: var(--da-sub); font-size: 13px; }
  body.desktop-admin .da-tab.active,
  body.desktop-admin .da-tab[aria-pressed="true"] { color: var(--da-blue); border-bottom-color: var(--da-blue); font-weight: 600; }
  body.desktop-admin .da-panel { min-width: 0; border: 1px solid var(--da-line); border-radius: 10px; background: var(--da-panel); overflow: hidden; }
  body.desktop-admin .da-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; padding: 14px; }
  body.desktop-admin .da-toolbar input,
  body.desktop-admin .da-toolbar select { width: auto; min-width: 0; min-height: 36px; padding: 8px 10px; border: 1px solid #dce1ec; border-radius: 6px; background: var(--da-panel); box-shadow: none; color: var(--da-text); font: inherit; font-size: 12px; }
  body.desktop-admin .da-toolbar .da-search { flex: 1 1 240px; }
  body.desktop-admin .da-toolbar select { flex: 0 1 190px; max-width: 230px; }
  body.desktop-admin .da-filterbar { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; padding: 0 14px 14px; }
  body.desktop-admin .da-filterbar .da-link { display: inline-block; width: auto; padding: 5px 9px; }
  body.desktop-admin .da-chip { min-height: 30px; padding: 5px 9px; border: 1px solid transparent; border-radius: 5px; background: var(--da-bg); color: var(--da-sub); font-size: 12px; line-height: 1.35; }
  body.desktop-admin .da-chip.active,
  body.desktop-admin .da-chip[aria-pressed="true"] { border-color: #d5dcfa; background: var(--da-soft); color: var(--da-blue); }
  body.desktop-admin .da-chip span { margin-left: 5px; font-variant-numeric: tabular-nums; }
  body.desktop-admin .da-count { margin-left: auto; color: var(--da-sub); font-size: 12px; }

  body.desktop-admin .da-table-wrap { width: 100%; max-height: min(70vh, 860px); overflow: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
  body.desktop-admin table.da-table { width: 100%; min-width: 720px; border-collapse: separate; border-spacing: 0; color: var(--da-text); font-size: 13px; line-height: 1.4; text-align: left; }
  body.desktop-admin .da-table th,
  body.desktop-admin .da-table td { padding: 13px 12px; border: 0; border-bottom: 1px solid var(--da-line); vertical-align: middle; text-align: left; font-variant-numeric: tabular-nums; }
  body.desktop-admin .da-table th { position: sticky; top: 0; z-index: 2; padding-top: 10px; padding-bottom: 10px; background: #f7f8fb; color: var(--da-sub); font-size: 11px; font-weight: 600; white-space: nowrap; }
  body.desktop-admin .da-table th:first-child,
  body.desktop-admin .da-table td:first-child { padding-left: 16px; }
  body.desktop-admin .da-table td { max-width: 330px; overflow-wrap: anywhere; }
  body.desktop-admin .da-table tbody tr:last-child td { border-bottom: 0; }
  body.desktop-admin .da-table tbody tr:hover { background: #f6f8ff; }
  body.desktop-admin .da-table tbody tr:focus-within { background: var(--da-soft); }
  body.desktop-admin .da-open { display: inline-block; min-height: 0; height: auto; padding: 3px 0; border: 0; border-radius: 3px; background: transparent; color: var(--da-text); font: inherit; font-weight: 600; line-height: 1.4; text-align: left; }
  body.desktop-admin .da-open:hover { color: var(--da-blue); text-decoration: underline; text-underline-offset: 3px; }
  body.desktop-admin .da-subtext { display: block; margin-top: 4px; color: var(--da-sub); font-size: 11px; font-weight: 400; line-height: 1.4; }
  body.desktop-admin .da-status { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 4px; background: var(--da-soft); color: var(--da-blue); font-size: 11px; line-height: 1.35; white-space: nowrap; }
  body.desktop-admin .da-status.is-free { background: #fff5e4; color: #85540d; }
  body.desktop-admin .da-status.is-in_work { background: var(--da-soft); color: var(--da-blue); }
  body.desktop-admin .da-status.is-blocked { background: #fff0ed; color: #a73e35; }
  body.desktop-admin .da-status.is-done { background: #edf8f2; color: #267454; }
  body.desktop-admin .da-empty { padding: 42px 20px; text-align: center; color: var(--da-sub); font-size: 13px; }
  body.desktop-admin .da-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--da-line); color: var(--da-sub); font-size: 11px; }
  body.desktop-admin .da-stages { display: grid; grid-template-columns: repeat(auto-fit,minmax(190px,1fr)); gap: 12px; }
  body.desktop-admin .da-stage { display: block; min-width: 0; padding: 17px; border: 1px solid var(--da-line); border-radius: 9px; background: var(--da-panel); color: var(--da-text); font-size: 13px; text-align: left; }
  body.desktop-admin .da-stage:hover { border-color: var(--da-blue); background: #fafbff; }
  body.desktop-admin .da-stage strong { display: block; margin: 12px 0 5px; font-size: 26px; font-weight: 600; }
  body.desktop-admin .da-stage small { display: block; color: var(--da-sub); font-size: 12px; }
  body.desktop-admin[data-da-density="compact"] .da-table td { padding-top: 8px; padding-bottom: 8px; }
  body.desktop-admin[data-da-density="compact"] .da-table .da-subtext { margin-top: 2px; }

  body.desktop-admin .da-backdrop { position: fixed; inset: 0; z-index: 950; display: flex; justify-content: flex-end; background: rgba(25,35,56,.28); }
  body.desktop-admin .da-backdrop[hidden] { display: none !important; }
  body.desktop-admin .da-drawer { width: min(680px,calc(100vw - 240px)); height: 100%; min-width: 0; padding: 24px; overflow-y: auto; overscroll-behavior: contain; background: var(--da-panel); border-left: 1px solid var(--da-line); box-shadow: -10px 0 40px rgba(20,30,50,.12); }
  body.desktop-admin .da-drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--da-line); }
  body.desktop-admin .da-drawer-head h2 { margin: 0; font-size: 22px; font-weight: 650; line-height: 1.3; overflow-wrap: anywhere; }
  body.desktop-admin .da-drawer-head > button { flex: none; min-width: 36px; min-height: 36px; padding: 6px 10px; border: 1px solid var(--da-line); border-radius: 7px; background: var(--da-panel); color: var(--da-text); }
  body.desktop-admin .da-detail-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin: 22px 0; padding-bottom: 22px; border-bottom: 1px solid var(--da-line); }
  body.desktop-admin .da-detail-grid > div { min-width: 0; }
  body.desktop-admin .da-detail-grid span { display: block; margin-bottom: 5px; color: var(--da-sub); font-size: 11px; }
  body.desktop-admin .da-detail-grid strong { color: var(--da-text); font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
  body.desktop-admin .da-drawer-body { min-width: 0; }
  body.desktop-admin .da-drawer-body .card,
  body.desktop-admin .da-drawer-body .order-card { margin: 0 0 14px; padding: 16px; border: 1px solid var(--da-line); border-radius: 9px; background: var(--da-panel); box-shadow: none; }
  body.desktop-admin .da-drawer-body .order-detail { min-width: 0; max-width: 100%; }
  body.desktop-admin .da-drawer-body input,
  body.desktop-admin .da-drawer-body select,
  body.desktop-admin .da-drawer-body textarea { max-width: 100%; font-size: 14px; }

  /* Shared functional screens retain their controls inside the new workspace. */
  body.desktop-admin #mount .screen-head { min-height: 0; margin-bottom: 20px; column-gap: 16px; }
  body.desktop-admin #mount .screen-head h1,
  body.desktop-admin #mount .screen-head h2 { font-size: 26px; }
  body.desktop-admin #mount .card { border-radius: 10px; box-shadow: none; }
  body.desktop-admin #mount .tabs { max-width: 100%; }
  body.desktop-admin #mount input:not([type="checkbox"]):not([type="radio"]),
  body.desktop-admin #mount select,
  body.desktop-admin #mount textarea { max-width: 100%; }
  body.desktop-admin .da-sidebar button:focus-visible,
  body.desktop-admin .da-heading button:focus-visible,
  body.desktop-admin .da-stat:focus-visible,
  body.desktop-admin .da-tab:focus-visible,
  body.desktop-admin .da-panel :is(button,input,select):focus-visible,
  body.desktop-admin .da-stage:focus-visible,
  body.desktop-admin .da-drawer :is(button,input,select,textarea,a):focus-visible { outline: 3px solid var(--da-blue); outline-offset: 2px; }

  body.desktop-admin [hidden] { display: none !important; }
  body.desktop-admin .da-nav button[data-da-nav="settings"] { margin-top: 18px; border-top: 1px solid var(--da-line); border-radius: 0 0 7px 7px; padding-top: 16px; }
  body.desktop-admin .da-admin-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 20px; padding: 6px; background: #fff; border: 1px solid var(--da-line); border-radius: 9px; }
  body.desktop-admin .da-admin-tabs button { width: auto; min-height: 34px; padding: 7px 12px; background: transparent; color: var(--da-sub); border: 0; border-radius: 6px; box-shadow: none; font-size: 12px; }
  body.desktop-admin .da-admin-tabs button[aria-current="page"] { background: var(--da-soft); color: var(--da-blue); font-weight: 650; }
  body.desktop-admin .da-admin-tabs button:focus-visible { outline: 3px solid var(--da-blue); outline-offset: 2px; }
  body.desktop-admin[data-da-screen="admin"] #mount .kpi { min-height: 0; padding: 16px 18px; }
  body.desktop-admin[data-da-screen="admin"] #mount .kpi strong { font-size: 28px; }

  /* Desktop overview: period outcomes and the current queue are separate. */
  body.desktop-admin .do-overview { display: grid; gap: 14px; min-width: 0; }
  body.desktop-admin .do-heading { margin-bottom: 0; }
  body.desktop-admin .do-section-label { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; font-size: 13px; }
  body.desktop-admin .do-section-label span { color: var(--da-sub); font-size: 11px; }
  body.desktop-admin .do-kpis { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
  body.desktop-admin .do-kpi { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding: 16px 18px; border: 1px solid var(--da-line); background: var(--da-panel); border-radius: 10px; }
  body.desktop-admin .do-kpi > span { color: var(--da-sub); font-size: 12px; }
  body.desktop-admin .do-kpi strong { font-size: 29px; line-height: 1.2; font-variant-numeric: tabular-nums; }
  body.desktop-admin .do-kpi small { color: var(--da-sub); font-size: 11px; }
  body.desktop-admin .do-notice { padding: 9px 12px; font-size: 12px; border: 1px solid #ecd8a7; color: #785810; background: #fffbef; border-radius: 7px; }
  body.desktop-admin .do-counters { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
  body.desktop-admin .do-counter { display: flex; align-items: center; justify-content: flex-start; gap: 10px; width: 100%; min-height: 0; padding: 11px 14px; border-radius: 8px; border: 1px solid var(--da-line); color: var(--da-text); background: var(--da-panel); box-shadow: none; text-align: left; }
  body.desktop-admin .do-counter strong { font-size: 21px; font-variant-numeric: tabular-nums; }
  body.desktop-admin .do-counter span { font-size: 12px; }
  body.desktop-admin .do-counter span:last-child { margin-left: auto; color: var(--da-sub); }
  body.desktop-admin .do-counter.do-warning { background: #fff7f1; border-color: #f3dfcc; }
  body.desktop-admin .do-grid { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: 16px; align-items: start; }
  body.desktop-admin .do-panel { min-width: 0; overflow: hidden; padding: 0; }
  body.desktop-admin .do-panel-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 15px 16px 12px; border-bottom: 1px solid var(--da-line); }
  body.desktop-admin .do-panel-head h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 15px; line-height: 1.4; }
  body.desktop-admin .do-panel-head p { margin: 4px 0 0; color: var(--da-sub); font-size: 11px; }
  body.desktop-admin .do-overview .da-link { width: auto; min-height: 0; padding: 4px 0; font-size: 12px; }
  body.desktop-admin .do-badge { display: inline-flex; align-items: center; padding: 2px 7px; background: var(--da-soft); border-radius: 5px; font-size: 11px; color: var(--da-blue); }
  body.desktop-admin .do-scroll { max-height: 260px; overflow: auto; overscroll-behavior: contain; }
  body.desktop-admin .do-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; margin: 0; }
  body.desktop-admin .do-table th, body.desktop-admin .do-table td { padding: 10px 12px; border-bottom: 1px solid var(--da-line); vertical-align: middle; background: transparent; }
  body.desktop-admin .do-table thead th { position: sticky; top: 0; z-index: 1; color: var(--da-sub); background: #f9fafe; font-weight: 500; font-size: 11px; white-space: nowrap; }
  body.desktop-admin .do-table tbody th { font-weight: 500; min-width: 120px; overflow-wrap: anywhere; }
  body.desktop-admin .do-table tbody td { font-variant-numeric: tabular-nums; }
  body.desktop-admin .do-table tr:last-child :is(th,td) { border-bottom: 0; }
  body.desktop-admin .do-table small { display: block; color: var(--da-sub); font-size: 11px; margin-top: 3px; }
  body.desktop-admin .do-danger-text { color: #b14328; font-weight: 700; }
  body.desktop-admin .do-text-button { display: block; padding: 0; min-height: 0; width: auto; background: transparent; box-shadow: none; border: 0; border-radius: 3px; color: var(--da-blue); font: inherit; text-align: left; }
  body.desktop-admin .do-task { display: flex; flex-direction: column; align-items: stretch; gap: 3px; padding: 11px 16px; min-height: 0; width: 100%; border: 0; border-bottom: 1px solid var(--da-line); border-radius: 0; background: white; box-shadow: none; color: var(--da-text); text-align: left; font-size: 12px; overflow-wrap: anywhere; }
  body.desktop-admin .do-task:hover, body.desktop-admin .do-counter:hover { background: var(--da-soft); }
  body.desktop-admin .do-task > strong { font-size: 13px; }
  body.desktop-admin .do-task > span:not(.do-task-title), body.desktop-admin .do-task small { color: var(--da-sub); font-size: 11px; font-weight: 400; }
  body.desktop-admin .do-task-title { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 3px 12px; font-size: 11px; color: var(--da-blue); }
  body.desktop-admin .do-task-reason { color: #a8482d; font-size: 11px; max-width: 100%; }
  body.desktop-admin .do-empty { margin: 0; padding: 20px 16px; color: var(--da-sub); font-size: 12px; }
  body.desktop-admin .do-team { grid-column: 1 / -1; }
  body.desktop-admin .do-team .do-scroll { max-height: 260px; }
  body.desktop-admin .do-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; color: var(--da-sub); font-size: 11px; }
  body.desktop-admin .do-overview button:focus-visible { outline: 3px solid var(--da-blue); outline-offset: -3px; }
  body.desktop-admin .do-employee-open { font-weight: 650; text-decoration: underline; text-decoration-color: #bbc5ee; text-underline-offset: 3px; }
  body.desktop-admin .do-shift-meta { display: grid; gap: 5px; padding: 12px 0 18px; color: var(--da-sub); font-size: 13px; }
  body.desktop-admin .do-shift-section { margin: 16px 0 24px; }
  body.desktop-admin .do-shift-section h3 { margin: 0 0 6px; font-size: 16px; }
  body.desktop-admin .do-shift-list { max-height: 280px; overflow: auto; overscroll-behavior: contain; }
  body.desktop-admin .do-shift-item { display: grid; gap: 5px; padding: 13px 0; border-bottom: 1px solid var(--da-line); font-size: 13px; }
  body.desktop-admin .do-shift-item > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: baseline; }
  body.desktop-admin .do-shift-item p { margin: 0; }
  body.desktop-admin .do-shift-item small { color: var(--da-sub); }
  body.desktop-admin .do-shift-history summary { cursor: pointer; font-weight: 600; padding: 10px 0; }
  body.desktop-admin .do-shift-refresh { display: grid; gap: 8px; margin-top: 20px; color: var(--da-sub); font-size: 11px; }
}

@media (min-width: 1024px) and (max-width: 1199px) {
  body.desktop-admin #appRoot .body { padding: 22px 20px 36px !important; }
  body.desktop-admin #appRoot .appbar { padding: 12px 20px !important; }
  body.desktop-admin .da-heading { flex-wrap: wrap; }
  body.desktop-admin .da-heading h2 { font-size: 24px; }
  body.desktop-admin .da-actions { justify-content: flex-start; }
  body.desktop-admin .da-stat { padding: 13px; }
  body.desktop-admin .da-stat strong { font-size: 25px; }
  body.desktop-admin .do-kpi { padding: 12px; }
  body.desktop-admin .do-counter { padding: 10px; gap: 6px; }
  body.desktop-admin .do-counter span { font-size: 11px; }
  body.desktop-admin .do-grid { grid-template-columns: minmax(0,1fr); gap: 12px; }
}

/* Read-only product history */
.ph-workspace .form-grid{grid-template-columns:repeat(auto-fit,minmax(210px,1fr))}
.ph-table-scroll{overflow-x:auto;margin:16px 0}.ph-table{border-collapse:collapse;width:100%;font-size:14px;text-align:left}.ph-table th{background:#f4f6fb;color:#59647a;white-space:nowrap}.ph-table th,.ph-table td{padding:13px 14px;border-bottom:1px solid #e6eaf2;vertical-align:top}.ph-table small,.ph-stage summary small{display:block;color:#667085;margin-top:5px}.ph-stage>summary{display:flex;justify-content:space-between;align-items:center;gap:20px;cursor:pointer;list-style:revert}.ph-stage>summary strong{font-size:24px;color:#3457d5}.ph-counts,.ph-people{display:flex;gap:10px 22px;flex-wrap:wrap;margin-top:16px}.ph-counts span{background:#f3f5fa;border-radius:8px;padding:8px 12px}.ph-people{padding:12px 0;color:#344054}.ph-stage{margin-bottom:14px}.ph-stage[open]>summary{padding-bottom:12px;border-bottom:1px solid #e6eaf2}.ph-workspace details>summary{cursor:pointer}.ph-workspace .pq-panel{margin-bottom:16px}

/* Product navigation: administrator read-only workspace. */
.pn-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}
.pn-search{margin:18px 0}.pn-search>label,.pn-filters label{font-size:13px;color:#536178}
.pn-search>div{display:flex;gap:10px;margin-top:5px}.pn-search input{min-width:0;flex:1}
.pn-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:12px;align-items:end;margin-bottom:20px}
.pn-filters select{display:block;width:100%;margin-top:4px}
.pn-workspace input,.pn-workspace select{padding:10px;border:1px solid #dce2ed;border-radius:8px;background:#fff;color:#17263c}
.pn-workspace button{padding:9px 13px;border:1px solid #dce2ed;border-radius:8px;background:#fff;color:#2448ad;cursor:pointer}
.pn-workspace button:disabled{opacity:.5;cursor:default}
.pn-workspace button:focus-visible,.pn-workspace input:focus-visible,.pn-workspace select:focus-visible{outline:2px solid #3657cf;outline-offset:2px}
.pn-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}
.pn-tabs [aria-pressed=true]{background:#eaf0ff;border-color:#3657cf;color:#2448ad}
.pn-workspace .pn-link{border:0;padding:0;text-align:left;background:transparent}
.pn-workspace .pn-count{border:0;background:#edf2ff;white-space:nowrap;padding:5px 9px}
.pn-workspace .ph-table{background:#fff}.pn-workspace .ph-table td{max-width:350px;overflow-wrap:anywhere}
.pn-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0}
.pn-stats>div{background:#fff;border:1px solid #e2e8f0;border-radius:10px;padding:16px;color:#536178}
.pn-stats strong{display:block;font-size:25px;color:#17263c}
.pn-drill{border:2px solid #3657cf!important}.pn-updated{font-size:12px;color:#64748b;margin-top:16px}
@media(max-width:600px){.pn-search>div{flex-wrap:wrap}.pn-stats{grid-template-columns:1fr}.pn-workspace .ph-table{min-width:620px}}

.mn-fieldset {border: 0; padding: 0; min-width: 0;}
.mn-fieldset .field {min-width: 0;}
.mn-fieldset select {max-width: 100%;}
.mn-rule {border-top: 1px solid #cbd5e1; padding: 16px 0;}
.mn-mode {color: #334155; background: #eef2ff; padding: 12px; border-radius: 10px;}

/* Classic presentation on the current application. No business logic changes. */
.ss-value {display:none}
html[data-ui-design="classic"] {--et-panel:#fff;--et-subtle:#f1f5ff;--et-inverse:#fff;--et-danger:#b42332;--employee-actions-height:0px;color-scheme:only light}
.theme-switch {display:none!important}
/* Daily workflow: compact discovery, readable facts and visible report actions. */

html[data-ui-design="classic"] .app {overflow:visible;overflow:clip}

html[data-ui-design="classic"] body {overflow:visible;overflow:clip}

html[data-ui-design="classic"] .toast {background:var(--et-panel);color:var(--text);border:1px solid var(--border);border-radius:12px;box-shadow:0 8px 24px #0002}

html[data-ui-design="classic"] .toast :is(b,span) {color:var(--text)}

html[data-ui-design="classic"] .order-search-bar {display:flex;gap:10px;margin:16px 0;align-items:center}

html[data-ui-design="classic"] .order-search-bar input {flex:1;min-width:0;min-height:48px;padding:12px 14px;font:inherit;font-size:14px;background:var(--et-subtle);color:var(--text);border:1px solid var(--line);border-radius:10px;box-shadow:none}

html[data-ui-design="classic"] .order-search-bar button {flex:0 0 auto;padding:10px 16px;font-size:14px;min-height:48px}

html[data-ui-design="classic"] .order-filters[hidden] {display:none!important}

html[data-ui-design="classic"] .order-filter-summary {display:flex;gap:12px;align-items:center;justify-content:space-between;margin:0 0 16px;color:var(--muted);font-size:14px;line-height:1.5}

html[data-ui-design="classic"] .order-filter-summary span {overflow-wrap:anywhere}

html[data-ui-design="classic"] .order-filter-summary button {flex-shrink:0}

html[data-ui-design="classic"] body .order-card.selected {border-color:var(--border);background:var(--et-subtle)}

html[data-ui-design="classic"] body .order-card.selected:hover {border-color:var(--border);background:var(--et-subtle)}

html[data-ui-design="classic"] .order-card .order-select-button {text-align:left;font-size:18px;line-height:1.35;padding:0;min-height:44px;white-space:normal;color:var(--text)}

html[data-ui-design="classic"] .order-card .order-select-button b {font-weight:600}

html[data-ui-design="classic"] .order-card .order-head span {font-size:14px;line-height:1.5;color:var(--muted)}

html[data-ui-design="classic"] .order-card .order-head .trace-code {font-size:12px;font-weight:400}

html[data-ui-design="classic"] .order-card .order-head .task-selected-label {display:block;font-size:12px;color:var(--text);font-weight:600;margin:4px 0}

html[data-ui-design="classic"] .order-card .order-foot {align-items:center;gap:16px;margin-top:18px}

html[data-ui-design="classic"] .order-card .order-foot strong {font-size:17px;font-weight:600;line-height:1.4}

html[data-ui-design="classic"] .order-card .order-foot .task-quantity {font-size:24px;letter-spacing:-.5px;white-space:nowrap}

html[data-ui-design="classic"] .order-card :is(.task-date,.route-input-row,.task-note) {font-size:13px;line-height:1.55}

html[data-ui-design="classic"] .order-card .task-date {padding:12px 0;background:transparent;border-radius:0;margin-top:8px;color:var(--muted)}

html[data-ui-design="classic"] :is(.task-note,.completion-hint,.completion-product-brief,.completion-summary>div,.shift-reminder-icon) {background:var(--et-subtle);border-color:var(--line);color:var(--text);box-shadow:none}

html[data-ui-design="classic"] :is(.task-note,.completion-hint,.field small,.shift-control-hint,.mm-panel p,.shift-report-card p) {font-size:14px;line-height:1.55}

html[data-ui-design="classic"] .task-note {border-radius:10px;padding:12px 14px}

html[data-ui-design="classic"] .field label {font-size:14px;font-weight:500}

html[data-ui-design="classic"] .employee-sync-status b {font-size:13px}

html[data-ui-design="classic"] .employee-sync-status:is(.queued,.offline,.error,.syncing) {padding:12px 14px;border:1px solid var(--border);border-radius:10px;background:var(--et-subtle)}

html[data-ui-design="classic"] .employee-sync-status:is(.queued,.offline,.error,.syncing) small {display:block;font-size:13px;line-height:1.5;margin-top:5px;color:var(--text)}

html[data-ui-design="classic"] .employee-sync-status button {min-width:44px;min-height:44px;background:transparent;color:var(--text);border:1px solid var(--border);border-radius:8px;padding:8px 12px}

html[data-ui-design="classic"] .completion-action-panel {position:sticky;bottom:12px;z-index:5;padding:12px 0 0;background:var(--bg);border-top:1px solid var(--line);isolation:isolate}

html[data-ui-design="classic"] .completion-action-panel .task-note {font-size:12px;padding:8px 0;background:transparent;margin:6px 0 0}

html[data-ui-design="classic"] .completion-actions {display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0}

html[data-ui-design="classic"] .completion-actions .small-button {min-height:60px;padding:12px;font-size:15px;line-height:1.3;white-space:normal;background:transparent;color:var(--text);border:1px solid var(--border);box-shadow:none}

html[data-ui-design="classic"] .completion-actions .completion-finish-button {background:var(--accent);color:var(--et-inverse);border-color:var(--accent)}

html[data-ui-design="classic"] #completionSubmitStatus {font-size:14px;line-height:1.5;color:var(--text);margin:0 0 8px}

html[data-ui-design="classic"] #completionSubmitStatus:empty {display:none}

html[data-ui-design="classic"] .task-completion-card :is(input,select,textarea) {scroll-margin-bottom:210px;font-size:16px}

html[data-ui-design="classic"] :is(.mm-dialog,.completion-review-dialog) :is(button,input,select,textarea) {min-height:48px}

html[data-ui-design="classic"] :is(.mm-dialog,.completion-review-dialog) :is(h2,h3) {font-weight:500;letter-spacing:-.5px}

@media(max-width:899px) {

 html[data-ui-design="classic"] .completion-action-panel {bottom:calc(82px + env(safe-area-inset-bottom,0px))}

 html[data-ui-design="classic"] .order-search-bar {gap:8px}

 html[data-ui-design="classic"] .order-search-bar button {padding:10px 12px}

 html[data-ui-design="classic"] .order-filters {padding:14px 0}

 html[data-ui-design="classic"] .order-card .route-order-head {column-gap:12px}

 html[data-ui-design="classic"] .order-card .order-foot .task-quantity {font-size:22px}

}

@media(max-height:550px) {html[data-ui-design="classic"] .completion-action-panel {position:static}}

@media print {html[data-ui-design="classic"] .completion-action-panel {position:static}}

@media(max-width:360px) {html[data-ui-design="classic"] #topTabs .tab {padding-left:6px;padding-right:6px;font-size:13px;word-break:normal;overflow-wrap:normal}}



/* Append to the test employee theme after reviewing the task-taking dialog. */

.task-take-dialog form { margin: 0; }

.task-take-dialog .field { display: grid; gap: 8px; }

.task-take-dialog .field input { box-sizing: border-box; width: 100%; min-height: 48px; padding: 12px; font: inherit; font-size: 18px; }

.task-take-dialog .task-take-error { color: var(--text, #9d2832); font-size: 14px; line-height: 1.5; }

.task-take-dialog .task-take-error:empty { display: none; }

.task-take-dialog [aria-invalid="true"] { outline: 2px solid var(--et-danger, #9d2832); outline-offset: 2px; }

.task-take-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }

.task-take-actions button { min-height: 48px; white-space: normal; }



/* Each available task owns its take action and compact cutting reference. */

html[data-ui-design="classic"] .order-card .task-card-footer {margin-top:16px}

html[data-ui-design="classic"] .order-card .task-card-footer:empty {display:none}

html[data-ui-design="classic"] .order-card .task-origin-label {font-size:12px;line-height:1.5;color:var(--muted);margin:0 0 4px;overflow-wrap:anywhere}

html[data-ui-design="classic"] .order-card .task-take-button {display:block;width:100%;min-height:50px;margin-top:12px;padding:13px 18px;font-size:15px;font-weight:600;line-height:1.4;border-radius:10px;background:var(--accent);color:var(--et-inverse);border:1px solid var(--accent);box-shadow:none}

html[data-ui-design="classic"] .order-card .task-take-button:hover {transform:none;box-shadow:none;filter:brightness(.95)}

html[data-ui-design="classic"] .order-card .task-take-button:disabled {opacity:.55;cursor:wait}



/* Wrap the selected text while preserving the phone's native select control. */

html[data-ui-design="classic"] .order-filters .form-grid {grid-template-columns:repeat(2,minmax(0,1fr))}

html[data-ui-design="classic"] .order-filters .field {min-width:0}

html[data-ui-design="classic"] .order-filters .order-filter-wide {grid-column:1/-1}

html[data-ui-design="classic"] .order-select-field {position:relative;min-width:0;border:1px solid var(--border);border-radius:10px;background:var(--et-subtle);color:var(--text)}

html[data-ui-design="classic"] .order-select-field:focus-within {outline:2px solid var(--accent);outline-offset:3px}

html[data-ui-design="classic"] .order-select-field::after {content:"";position:absolute;right:17px;top:calc(50% - 5px);width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);pointer-events:none}

html[data-ui-design="classic"] .order-select-value {display:flex;align-items:center;min-height:52px;box-sizing:border-box;padding:12px 40px 12px 14px;font-size:16px;font-weight:500;line-height:1.45;white-space:normal;overflow-wrap:anywhere;pointer-events:none}

html[data-ui-design="classic"] .order-select-field select {position:absolute;inset:0;width:100%;height:100%;min-height:0;margin:0;opacity:0;cursor:pointer;font-size:16px}



/* Mobile employee usability: keep task facts, controls and feedback visible. */
html[data-ui-design="classic"] .task-completion-card :is(.completion-validation-error,.completion-form-error) {
 margin:12px 0;padding:12px 14px;border:1px solid var(--border);border-left:3px solid var(--text);
 border-radius:8px;background:var(--et-subtle);color:var(--text);font-size:14px;line-height:1.5;
 overflow-wrap:anywhere;scroll-margin-block:100px 210px;
}
html[data-ui-design="classic"] :is(.completion-validation-error,.completion-form-error):empty {display:none}
html[data-ui-design="classic"] body .card .status-chip:is(.task-status-problem,.task-status-done) {
 border-color:var(--border);font-weight:650;white-space:normal;line-height:1.35;
}
html[data-ui-design="classic"] body .card .status-chip.task-status-problem {border-style:double;border-width:3px}
html[data-ui-design="classic"] .status-chip.task-status-problem::before {content:"!";font-weight:800;margin-right:5px}
html[data-ui-design="classic"] .status-chip.task-status-done::before {content:"✓";font-weight:700;margin-right:5px}
html[data-ui-design="classic"] .shift-break-history>summary {box-sizing:border-box;min-height:44px;padding:12px 4px;line-height:20px}

/* Task details retain separate lines and one compact, accessible summary target. */
html[data-ui-design="classic"] .order-card details.task-note {padding:0 12px}
html[data-ui-design="classic"] .order-card details.task-note>summary {box-sizing:border-box;min-height:44px;padding:12px 0;line-height:20px;cursor:pointer}
html[data-ui-design="classic"] .order-card details.task-note>span {display:block;margin:0 0 8px;line-height:1.5;overflow-wrap:anywhere}

/* Visual viewport: keep paired actions reachable above a real on-screen keyboard. */
html[data-ui-design="classic"] {--employee-actions-height:0px;--employee-keyboard-inset:0px;--employee-viewport-top:0px;--employee-actions-bottom:calc(82px + env(safe-area-inset-bottom,0px));scroll-padding-bottom:calc(var(--employee-actions-height) + var(--employee-keyboard-inset) + 100px)}
html[data-ui-design="classic"] .task-completion-card :is(input,select,textarea) {scroll-margin-block:16px calc(var(--employee-actions-height) + var(--employee-keyboard-inset) + 100px)}
html[data-ui-design="classic"] :is(.completion-review-dialog,.task-take-dialog,.task-confirm-dialog) {max-height:calc(var(--employee-viewport-height,100dvh) - 24px);overscroll-behavior:contain;scroll-padding-block:12px 96px}
html[data-ui-design="classic"] :is(.completion-review-dialog,.task-take-dialog,.task-confirm-dialog) :is(.task-take-actions,.completion-review-actions) {position:sticky;bottom:0;z-index:2;background:var(--et-panel);padding:12px 0 0;isolation:isolate}
html[data-ui-design="classic"] :is(.task-take-actions,.completion-review-actions) {grid-template-columns:repeat(2,minmax(0,1fr))}
html[data-ui-design="classic"] :is(.task-take-actions,.completion-review-actions) button {min-width:0;overflow-wrap:break-word}
html[data-ui-design="classic"] body.keyboard-open {--employee-actions-bottom:calc(var(--employee-keyboard-inset) + 8px)}
html[data-ui-design="classic"] body.keyboard-open :is(.completion-review-dialog,.task-take-dialog,.task-confirm-dialog,.mm-dialog) {position:fixed;top:calc(var(--employee-viewport-top) + 8px);bottom:auto;margin:0 auto;max-height:calc(var(--employee-viewport-height,100dvh) - 16px);padding:16px}
html[data-ui-design="classic"] body.keyboard-open :is(.completion-review-dialog,.task-take-dialog,.task-confirm-dialog) h2 {font-size:21px;margin-bottom:12px}
html[data-ui-design="classic"] body.keyboard-open .completion-action-panel .completion-actions button {min-height:48px;padding:8px;font-size:14px;line-height:1.3}
html[data-ui-design="classic"] .completion-action-panel :is(.completion-form-error,.completion-validation-error) {max-height:min(96px,calc(var(--employee-viewport-height,100dvh) / 5));overflow-y:auto;overscroll-behavior:contain;margin:0 0 8px;padding:8px 10px;scroll-margin:12px}
html[data-ui-design="classic"] body.keyboard-open .completion-action-panel .task-note {font-size:11px;line-height:1.35;margin-top:4px}
@media(max-width:899px) {
 html[data-ui-design="classic"] body.has-employee-completion .completion-action-panel {position:fixed;left:var(--employee-actions-left,24px);width:var(--employee-actions-width,calc(100% - 48px));bottom:var(--employee-actions-bottom);box-sizing:border-box;max-width:100%;padding:8px 0 0;z-index:6;overflow-anchor:none}
 html[data-ui-design="classic"] body.has-employee-completion .task-completion-card {padding-bottom:calc(var(--employee-actions-height) + var(--employee-actions-bottom) + 16px)}
 html[data-ui-design="classic"] .completion-actions {grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 html[data-ui-design="classic"] .completion-actions button {min-width:0}
}
html[data-ui-design="classic"] body.keyboard-open.has-employee-completion .completion-action-panel {position:fixed;left:var(--employee-actions-left,24px);width:var(--employee-actions-width,calc(100% - 48px));bottom:var(--employee-actions-bottom);box-sizing:border-box;max-width:100%;padding:8px 0 0;z-index:6;overflow-anchor:none}
html[data-ui-design="classic"] body.keyboard-open.has-employee-completion .task-completion-card {padding-bottom:calc(var(--employee-actions-height) + var(--employee-actions-bottom) + 16px)}
@media(max-width:360px),(max-height:550px) {
 html[data-ui-design="classic"] .completion-action-panel .completion-actions button {min-height:48px;padding:8px 6px;font-size:13px;line-height:1.3}
 html[data-ui-design="classic"] :is(.completion-review-dialog,.task-take-dialog,.task-confirm-dialog) {padding:14px}
 html[data-ui-design="classic"] :is(.task-take-actions,.completion-review-actions) {gap:8px}
}
@media print {
 html[data-ui-design="classic"] body.has-employee-completion .completion-action-panel,html[data-ui-design="classic"] body.keyboard-open.has-employee-completion .completion-action-panel {position:static;width:auto}
 html[data-ui-design="classic"] body.has-employee-completion .task-completion-card,html[data-ui-design="classic"] body.keyboard-open.has-employee-completion .task-completion-card {padding-bottom:0}
}

/* On a short landscape screen, navigation stays in the page below the form. */
@media screen and (max-width:899px) and (max-height:420px) {
 html[data-ui-design="classic"] body.has-employee-completion:not(.keyboard-open) {--employee-actions-bottom:8px}
 html[data-ui-design="classic"] body.has-employee-completion:not(.keyboard-open) #bottomNav {position:static;width:auto;margin:16px 24px calc(var(--employee-actions-height) + 24px);transform:none}
}

/* Quiet typography in the completion totals only. */
html[data-ui-design="classic"] .task-completion-card .completion-summary > div > span,
html[data-ui-design="classic"] .task-completion-card .completion-summary > div > b {font-weight:500}


/* Keep the established blue/white cards and three shift clocks. */
html[data-ui-design="classic"] .order-card .order-select-button {background:transparent;border:0;box-shadow:none}
html[data-ui-design="classic"] .order-filters {padding:16px}
html[data-ui-design="classic"] .completion-action-panel {background:#fff;padding:10px;border:1px solid var(--line);border-radius:14px;box-shadow:0 4px 20px #173b701a}
html[data-ui-design="classic"] .task-completion-card {backdrop-filter:none;transform:none;filter:none}
html[data-ui-design="classic"] .completion-actions {box-sizing:border-box;width:100%}
html[data-ui-design="classic"] .order-card .task-take-button:hover:not(:disabled) {filter:brightness(.9)}
html[data-ui-design="classic"] button:focus-visible {outline:3px solid #1959f3;outline-offset:3px}
html[data-ui-design="classic"] .bottom-nav .nav-btn {min-height:48px;font-size:14px}
html[data-ui-design="classic"] .bottom-nav .nav-ico {font-size:22px}
#pwaUpdateNotice {display:none!important}
@media(max-width:360px) {html[data-ui-design="classic"] .order-filters .form-grid {grid-template-columns:minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce) {html[data-ui-design="classic"] *,html[data-ui-design="classic"] *::before {transition:none!important;animation:none!important}}

/* Refined classic: the existing blue identity, clearer hierarchy and compact controls. */
html[data-ui-design="classic"] {--bg:#f4f6fa;--text:#1b293d;--muted:#65748a;--line:#e1e7ef;--border:#ccd6e4;--accent:#245de3;--accent-dark:#1749bf;--et-panel:#fff;--et-subtle:#f2f6fc;--shadow-soft:0 2px 8px #243b6410;--inset-shadow:none;--blue-shadow:none;color:#1b293d}
html[data-ui-design="classic"] body {background:#f4f6fa;background-image:none;font-family:Inter,"Segoe UI",sans-serif;line-height:1.45}
html[data-ui-design="classic"] body::before,html[data-ui-design="classic"] body::after {display:none}
html[data-ui-design="classic"] body.web-mode #appRoot {background:transparent;border:0;box-shadow:none}
html[data-ui-design="classic"] :is(.appbar,.body) {background-image:none}
html[data-ui-design="classic"] .appbar {padding:14px 18px!important;gap:12px;box-shadow:none;border-bottom:1px solid var(--line);background:#fff}
html[data-ui-design="classic"] .appbar-actions {gap:6px}
html[data-ui-design="classic"] .appbar-actions .icon-btn {width:40px;height:44px;min-width:40px;min-height:44px;padding:10px;background:#f5f7fa;border:1px solid #edf0f5;border-radius:12px;box-shadow:none}
html[data-ui-design="classic"] .app-brand-lockup .brand-mark {width:30px;height:34px}
html[data-ui-design="classic"] .app-brand-lockup .brand-wordmark {font-size:17px;line-height:1.05}
html[data-ui-design="classic"] :is(.workspace-nav,.mobile-workspace-nav) {background:#eaf0f9;border:0;border-radius:12px;padding:4px;box-shadow:none;backdrop-filter:none}
html[data-ui-design="classic"] :is(.workspace-nav,.mobile-workspace-nav) button {min-height:44px;border-radius:9px;font-size:14px;font-weight:600;box-shadow:none;background:transparent;color:#596b85;padding:10px 16px}
html[data-ui-design="classic"] :is(.workspace-nav,.mobile-workspace-nav) button.active {background:#fff;color:#194fc6;box-shadow:0 1px 4px #233c5e10}
html[data-ui-design="classic"] :is(.card,.mm-panel,.order-filters,.shift-report-card) {background:#fff;background-image:none;border:1px solid var(--line);border-radius:16px;box-shadow:0 2px 7px #233c5e06;backdrop-filter:none}
html[data-ui-design="classic"] .card:hover {transform:none}
html[data-ui-design="classic"] :is(.eyebrow,.employee-workspace-head>span) {font-size:11px;letter-spacing:1.3px;font-weight:600;color:var(--muted)}
html[data-ui-design="classic"] .employee-workspace-head {padding:8px 2px 0;margin-bottom:14px}
html[data-ui-design="classic"] .employee-workspace-head h2 {font-size:27px;line-height:1.2;letter-spacing:-.6px;font-weight:650;margin:5px 0 6px}
html[data-ui-design="classic"] .employee-workspace-head p {font-size:14px;line-height:1.5;margin:0;color:var(--muted)}
html[data-ui-design="classic"] :is(.small-button,.ghost-button,.screen-head button,.order-search-bar button) {min-height:44px;border:1px solid var(--border);border-radius:10px;padding:10px 14px;background:#fff;color:#33465f;box-shadow:none;font-weight:600;line-height:1.35;transition:background-color .15s,border-color .15s}
html[data-ui-design="classic"] button:hover:not(:disabled) {box-shadow:none;transform:none}
html[data-ui-design="classic"] :is(.small-button,.ghost-button):hover:not(:disabled) {background:#edf3ff;border-color:#7c9de5}
html[data-ui-design="classic"] button:active:not(:disabled) {filter:brightness(.96)}
html[data-ui-design="classic"] button:disabled {cursor:default}
html[data-ui-design="classic"] .shift-control-panel {padding:18px;gap:16px}
html[data-ui-design="classic"] .shift-control-heading h3 {font-size:26px;font-weight:650;letter-spacing:-.5px;margin:4px 0}
html[data-ui-design="classic"] .shift-control-heading p {font-size:13px}
html[data-ui-design="classic"] .shift-state-dot.work {background:#245de3;box-shadow:0 0 0 5px #245de310;width:12px;height:12px;margin-right:5px}
html[data-ui-design="classic"] .shift-time-stats {gap:7px}
html[data-ui-design="classic"] .shift-time-stat {padding:12px 7px;gap:6px;border-radius:11px;background:#f5f7fa;border:1px solid #edf0f5}
html[data-ui-design="classic"] .shift-time-stat.work {background:#edf3ff;border-color:#dce7ff}
html[data-ui-design="classic"] .shift-time-stat span {font-size:11px;color:#66768c}
html[data-ui-design="classic"] .shift-time-stat strong {font-size:20px;letter-spacing:-.5px;font-weight:600;color:#24364d}
html[data-ui-design="classic"] .shift-activity-actions {gap:6px}
html[data-ui-design="classic"] .shift-activity-button {min-height:46px;font-size:13px;border-radius:10px;font-weight:600;background:#fff;border-color:#dce3ee}
html[data-ui-design="classic"] .shift-activity-button.selected {background:#245de3;border-color:#245de3;color:#fff}
html[data-ui-design="classic"] .shift-control-hint {font-size:12px;line-height:1.6;color:var(--muted)}
html[data-ui-design="classic"] .shift-lifecycle-actions {padding-top:14px}
html[data-ui-design="classic"] .shift-lifecycle-actions button[data-shift-action] {min-height:48px;font-size:15px;font-weight:600;border-radius:11px;padding:12px 16px;box-shadow:none}
html[data-ui-design="classic"] .shift-lifecycle-actions button[data-shift-action="close"] {background:#fff;color:#33465f;border:1px solid #cbd6e4}
html[data-ui-design="classic"] .shift-lifecycle-actions button[data-shift-action="open"] {background:#245de3;color:#fff;border:1px solid #245de3}
html[data-ui-design="classic"] .employee-sync-status {padding:10px 12px;border-radius:10px;margin-bottom:14px;box-shadow:none}
html[data-ui-design="classic"] .employee-sync-status:is(.synced,.ok,.idle) {background:#f3f6fb;border:1px solid #e1e7ef;color:#52647d}
html[data-ui-design="classic"] .employee-sync-status b {font-size:12px}
html[data-ui-design="classic"] .employee-sync-status small {font-size:11px;line-height:1.5}
html[data-ui-design="classic"] .mm-panel {padding:18px;margin:14px 0}
html[data-ui-design="classic"] .mm-panel :is(h2,h3) {font-size:18px;line-height:1.4;letter-spacing:-.3px}
html[data-ui-design="classic"] .mm-panel p {font-size:13px;line-height:1.6}
html[data-ui-design="classic"] .mm-panel button {min-height:46px;font-size:14px;border-radius:11px;box-shadow:none}
html[data-ui-design="classic"] .shift-report-card {padding:18px}
html[data-ui-design="classic"] .shift-report-card h3 {font-size:18px;font-weight:600;margin-bottom:8px}
html[data-ui-design="classic"] .shift-report-card p {font-size:13px;color:var(--muted);line-height:1.6}
html[data-ui-design="classic"] .screen-head h2 {font-size:25px;letter-spacing:-.5px;font-weight:650}
html[data-ui-design="classic"] .screen-head .pill {font-size:12px;padding:4px 8px;background:#edf1f7;box-shadow:none}
html[data-ui-design="classic"] #topTabs {gap:4px;padding:4px;border:0;background:#eaf0f7;border-radius:12px;box-shadow:none;backdrop-filter:none}
html[data-ui-design="classic"] #topTabs .tab {min-height:44px;padding:10px 8px;font-size:12px;font-weight:600;color:#62728a;background:transparent;border-radius:9px;box-shadow:none}
html[data-ui-design="classic"] #topTabs .tab.active {background:#fff;color:#194fc6;box-shadow:0 1px 3px #233c5e14}
html[data-ui-design="classic"] .order-search-bar {margin:14px 0;gap:8px}
html[data-ui-design="classic"] .order-search-bar input {min-height:46px;background:#fff;border-color:#d9e1ec;border-radius:11px;font-size:13px}
html[data-ui-design="classic"] .order-search-bar button {min-height:46px;font-size:13px}
html[data-ui-design="classic"] .order-filters {padding:14px;margin-bottom:14px}
html[data-ui-design="classic"] .order-filters .field label {font-size:12px;font-weight:500;margin-bottom:4px}
html[data-ui-design="classic"] .order-select-field {background:#f8fafd;border-color:#d7e0ec;border-radius:10px}
html[data-ui-design="classic"] .order-select-value {font-size:14px;line-height:1.45;min-height:48px;padding:11px 34px 11px 12px}
html[data-ui-design="classic"] .order-filter-summary {font-size:12px;margin-bottom:12px}
html[data-ui-design="classic"] body .order-card,html[data-ui-design="classic"] body .order-card.selected {padding:16px;margin-bottom:12px;background:#fff;border:1px solid var(--line);border-radius:15px;box-shadow:0 2px 7px #233c5e06}
html[data-ui-design="classic"] body .order-card.selected {border-color:#9db7ef;background:#fff}
html[data-ui-design="classic"] body .order-card:hover {background:#fbfcff;border-color:#9db7ef;transform:none;box-shadow:0 3px 12px #233c5e0b}
html[data-ui-design="classic"] .order-card .order-select-button {font-size:16px;line-height:1.35;min-height:40px;font-weight:600}
html[data-ui-design="classic"] .order-card .order-head span {font-size:12px;line-height:1.45;margin-top:3px}
html[data-ui-design="classic"] .order-card .order-head .trace-code {font-size:11px;font-weight:400;color:#8a96a8}
html[data-ui-design="classic"] .order-card .order-head .task-selected-label {font-size:11px;font-weight:500;color:#3d66b8;margin:0}
html[data-ui-design="classic"] .order-card .marketplace-product-avatar {width:38px;height:46px;min-width:38px;border-radius:10px;background:#f4f7fc;border:1px solid #e2e8f2;box-shadow:none}
html[data-ui-design="classic"] .order-card .route-order-head {grid-template-columns:38px minmax(0,1fr);column-gap:12px}
html[data-ui-design="classic"] .order-card .status-chip {font-size:11px;padding:4px 9px;min-height:0;background:#edf3ff;color:#315da9;border:0;border-radius:7px;box-shadow:none;font-weight:500}
html[data-ui-design="classic"] .order-card .status-chip.warn {background:#f0f3f8;color:#596a82}
html[data-ui-design="classic"] .order-card .order-foot {margin-top:14px;padding-top:12px;border-top:1px solid #edf0f5;gap:12px}
html[data-ui-design="classic"] .order-card .order-foot strong {font-size:14px;font-weight:600}
html[data-ui-design="classic"] .order-card .order-foot .task-quantity {font-size:21px;font-weight:650;letter-spacing:-.5px}
html[data-ui-design="classic"] .order-card .task-card-footer {margin-top:10px}
html[data-ui-design="classic"] .order-card .task-origin-label,html[data-ui-design="classic"] .order-card .task-date {font-size:11px;line-height:1.5;color:#78869b;padding:0;margin:8px 0}
html[data-ui-design="classic"] .order-card details.task-note {margin:10px 0;background:#f6f8fc;border:0;border-radius:9px;padding:0 10px}
html[data-ui-design="classic"] .order-card details.task-note>summary {font-size:12px;min-height:40px;padding:10px 0}
html[data-ui-design="classic"] .order-card .task-take-button {min-height:46px;padding:12px 14px;margin-top:10px;font-size:14px;font-weight:600;background:#245de3;border-color:#245de3;border-radius:10px}
html[data-ui-design="classic"] .order-card .task-take-button:hover:not(:disabled) {background:#1749bf;filter:none}
html[data-ui-design="classic"] .task-completion-card {padding:16px}
html[data-ui-design="classic"] .task-completion-card :is(input,select,textarea) {background:#fff;border:1px solid #d6e0ed;box-shadow:none;border-radius:10px;min-height:48px;font-size:16px}
html[data-ui-design="classic"] .task-completion-card .field label {font-size:13px;font-weight:500}
html[data-ui-design="classic"] .task-completion-card .completion-summary>div {border-radius:10px;background:#f3f6fb;border:1px solid #eaf0f7}
html[data-ui-design="classic"] .completion-action-panel {border:1px solid #dce4f0;border-radius:13px;box-shadow:0 -4px 16px #2944630c}
html[data-ui-design="classic"] .completion-actions button {min-height:52px;border-radius:10px;font-weight:600;font-size:14px}
html[data-ui-design="classic"] .completion-actions .completion-finish-button {background:#245de3;color:#fff;border-color:#245de3}
html[data-ui-design="classic"] #bottomNav {background:#fff;border-top:1px solid #e0e6ef;box-shadow:0 -2px 10px #2a3f6005;backdrop-filter:none;padding:6px 8px calc(6px + env(safe-area-inset-bottom,0px))}
html[data-ui-design="classic"] #bottomNav .nav-btn {min-height:52px;border-radius:11px;padding:6px;font-size:13px;font-weight:500;color:#65758c;gap:4px}
html[data-ui-design="classic"] #bottomNav .nav-btn.active {background:#edf3ff;color:#245de3}
html[data-ui-design="classic"] #bottomNav .nav-ico {font-size:21px;width:25px;height:25px;padding:0;border:0;box-shadow:none;background:transparent;color:inherit}
html[data-ui-design="classic"] :is(.mm-dialog,.completion-review-dialog,.task-take-dialog) {background:#fff;border:1px solid #dce4ef;border-radius:18px;box-shadow:0 18px 64px #12274725;padding:20px}
html[data-ui-design="classic"] :is(.mm-dialog,.completion-review-dialog,.task-take-dialog) h2 {font-size:21px;font-weight:600;letter-spacing:-.4px}
@media(max-width:899px) {
 html[data-ui-design="classic"] body.web-mode .body {padding:16px 14px 108px}
 html[data-ui-design="classic"] .mobile-workspace-nav {margin:12px 14px 0}
 html[data-ui-design="classic"] .appbar .brand-wordmark {font-size:15px}
 html[data-ui-design="classic"] .completion-action-panel .completion-actions button {font-size:13px;padding:10px 7px;min-height:50px}
}
@media(max-width:360px) {
 html[data-ui-design="classic"] .appbar {padding:10px 12px!important}
 html[data-ui-design="classic"] .app-brand-lockup .brand-wordmark {font-size:13px}
 html[data-ui-design="classic"] .appbar-actions {gap:4px}
 html[data-ui-design="classic"] .appbar-actions .icon-btn {width:36px;min-width:36px;padding:8px}
 html[data-ui-design="classic"] .shift-control-panel {padding:14px}
 html[data-ui-design="classic"] .shift-time-stat strong {font-size:17px}
}
/* Override the older high-specificity states and the decorative grid. */
html[data-ui-design="classic"] .app::after {display:none}
html[data-ui-design="classic"] .employee-workspace {gap:12px}
html[data-ui-design="classic"] .employee-workspace-head {gap:10px;margin-bottom:0;padding-top:0}
html[data-ui-design="classic"] .employee-eyebrow,html[data-ui-design="classic"] .mm-eyebrow {font-size:10px;font-weight:600;letter-spacing:1.1px;color:#738299}
html[data-ui-design="classic"] .employee-sync-status.online {padding:7px 10px;margin:0;background:#edf3ff;border:1px solid #e0e9fa;color:#4b6488;min-height:34px;gap:8px}
html[data-ui-design="classic"] .employee-sync-status.online small {display:none}
html[data-ui-design="classic"] .employee-sync-status.online .employee-sync-dot {width:7px;height:7px;background:#527bc2;box-shadow:none}
html[data-ui-design="classic"] .employee-sync-status.online b {font-size:11px;font-weight:500}
html[data-ui-design="classic"] .shift-control-panel .shift-lifecycle-actions button[data-shift-action="close"]:not(:disabled) {background:#fff;color:#43536b;border:1px solid #cbd6e4;box-shadow:none}
html[data-ui-design="classic"] .shift-control-panel .shift-lifecycle-actions button[data-shift-action="close"]:not(:disabled):hover {background:#edf3ff;border-color:#7c9de5}
html[data-ui-design="classic"] .shift-control-panel .shift-lifecycle-actions button[data-shift-action="open"]:not(:disabled) {background:#245de3;color:#fff;border:1px solid #245de3;box-shadow:none}
html[data-ui-design="classic"] .admin-task-status-tabs {gap:4px;padding:4px;border:0;background:#eaf0f7;border-radius:12px;box-shadow:none;backdrop-filter:none}
html[data-ui-design="classic"] .admin-task-status-tabs .tab {min-height:40px;padding:8px 6px;font-size:12px;font-weight:500;color:#62728a;background:transparent;border-radius:9px;box-shadow:none}
html[data-ui-design="classic"] .admin-task-status-tabs .tab.active {background:#fff;color:#194fc6;box-shadow:0 1px 3px #233c5e14}
html[data-ui-design="classic"] .screen-head {margin-bottom:8px}
html[data-ui-design="classic"] .screen-head .date {font-size:11px;padding:4px 8px;background:#edf1f7;box-shadow:none}
html[data-ui-design="classic"] .mm-panel {margin:0;display:grid;gap:10px}
html[data-ui-design="classic"] .mm-panel .mm-heading {gap:8px;align-items:start}
html[data-ui-design="classic"] .mm-panel .mm-heading h2 {font-size:17px;margin:4px 0;font-weight:600}
html[data-ui-design="classic"] .mm-panel p {margin:0;font-size:12px}
html[data-ui-design="classic"] .mm-panel .mm-badge {background:#edf3ff;color:#456493;font-size:10px;padding:5px 8px;border-radius:7px;line-height:1.35}
html[data-ui-design="classic"] .mm-panel .mm-btn {font-size:13px;padding:11px 14px;min-height:44px;border-radius:10px}
@media(max-width:899px) {
 html[data-ui-design="classic"] body.web-mode #appRoot {padding:0}
 html[data-ui-design="classic"] .appbar {margin:0}
 html[data-ui-design="classic"] .app-title {justify-content:flex-start}
 html[data-ui-design="classic"] .app-brand-lockup {justify-content:flex-start}
 html[data-ui-design="classic"] .employee-workspace-head h2 {font-size:25px}
 html[data-ui-design="classic"] .shift-control-hint {font-size:11px}
}
@media(min-width:1100px) {
 html[data-ui-design="classic"] .employee-workspace {display:grid;grid-template-columns:minmax(0,1.15fr) minmax(320px,1fr);gap:16px;align-items:start}
 html[data-ui-design="classic"] .employee-workspace-head {grid-column:1/-1;margin-bottom:2px}
 html[data-ui-design="classic"] .employee-workspace>.shift-control-panel {grid-column:1;grid-row:2/4}
 html[data-ui-design="classic"] .employee-workspace>.mm-panel {grid-column:2;grid-row:2}
 html[data-ui-design="classic"] .employee-workspace>.shift-report-card {grid-column:2;grid-row:3}
}

/* Seven usability refinements. The test layer retains its classic palette. */
html[data-ui-design="classic"] :is(.employee-eyebrow,.mm-eyebrow,.eyebrow) {font-size:12px;color:#52647d;letter-spacing:.7px}
html[data-ui-design="classic"] .order-card :is(.task-origin-label,.task-date) {font-size:14px;color:#52647d;line-height:1.5}
html[data-ui-design="classic"] .order-card .order-head .trace-code {font-size:13px;color:#5b6c82}
html[data-ui-design="classic"] .order-card .task-note .trace-code {font-size:13px;color:#5b6c82}
html[data-ui-design="classic"] .order-card .order-head span {font-size:14px;color:#52647d}
html[data-ui-design="classic"] .order-card .status-chip {font-size:13px;line-height:1.4}
html[data-ui-design="classic"] :is(.shift-time-stat span,.shift-control-hint,.shift-control-heading p,.order-filter-summary,.order-filters .field label,.mm-panel p,.screen-head .date) {font-size:13px;color:#52647d}
html[data-ui-design="classic"] .employee-sync-status b,
html[data-ui-design="classic"] .employee-sync-status.online b {font-size:13px;font-weight:500}
html[data-ui-design="classic"] .employee-sync-status small {font-size:13px}
html[data-ui-design="classic"] .mm-panel .mm-badge {font-size:12px}
html[data-ui-design="classic"] .appbar-actions .icon-btn {width:44px;min-width:44px;height:44px;padding:10px}
html[data-ui-design="classic"] :is(.admin-task-status-tabs .tab,#topTabs .tab,.shift-activity-button,.order-search-bar button,.order-filter-summary button) {min-height:48px;font-size:14px}
html[data-ui-design="classic"] .order-card .order-select-button {min-height:44px}
html[data-ui-design="classic"] .order-card details.task-note>summary {min-height:48px;padding:13px 0;font-size:13px}
html[data-ui-design="classic"] .order-card :is(.task-take-button,.task-report-button) {min-height:48px;width:100%;padding:12px 14px;margin-top:10px;font-size:14px;font-weight:600;border-radius:10px;line-height:1.4}
html[data-ui-design="classic"] .order-card .task-report-button {background:#245de3;color:#fff;border:1px solid #245de3}
html[data-ui-design="classic"] .order-card .task-report-button:hover:not(:disabled) {background:#1749bf;border-color:#1749bf}
html[data-ui-design="classic"] .order-search-bar input {min-height:48px;font-size:16px}
html[data-ui-design="classic"] .order-select-value {font-size:15px}
html[data-ui-design="classic"] :is(.small-button,.ghost-button) {min-height:48px}
html[data-ui-design="classic"] button {touch-action:manipulation}
html[data-ui-design="classic"] .order-filter-summary {display:block;margin-bottom:12px}
html[data-ui-design="classic"] .order-filter-chips {display:flex;flex-wrap:wrap;align-items:center;gap:6px}
html[data-ui-design="classic"] .order-filter-chip {display:inline-flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;max-width:100%;padding:8px 10px;border:1px solid #d8e1ef;border-radius:9px;background:#edf2f9;color:#354b69;font-size:13px;font-weight:500;text-align:left;white-space:normal;line-height:1.4;overflow-wrap:anywhere;box-shadow:none}
html[data-ui-design="classic"] .order-filter-chip:hover:not(:disabled) {background:#e1eafa;border-color:#8ca8dc}
html[data-ui-design="classic"] .order-filter-chip [aria-hidden="true"] {font-size:20px;font-weight:400;flex-shrink:0;line-height:1}
html[data-ui-design="classic"] .order-filter-clear {min-height:44px;padding:8px 10px;font-size:13px;background:transparent;border:0;color:#405c88;border-radius:9px;box-shadow:none}
html[data-ui-design="classic"] .order-filter-clear:hover {background:#edf2f9}
html[data-ui-design="classic"] .shift-machine-compact {display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;padding:10px 12px;border:1px solid #dce4ef;border-radius:12px;background:#fff}
html[data-ui-design="classic"] .shift-machine-compact>div {min-width:0;display:grid;gap:2px}
html[data-ui-design="classic"] .shift-machine-compact>span {min-width:0;display:grid;gap:2px}
html[data-ui-design="classic"] .employee-workspace-head {display:grid;grid-template-columns:minmax(0,1fr);align-items:stretch}
html[data-ui-design="classic"] .shift-machine-compact :is(b,strong) {font-size:14px;font-weight:600;overflow-wrap:anywhere;line-height:1.4}
html[data-ui-design="classic"] .shift-machine-compact :is(span,small) {font-size:13px;color:#52647d;line-height:1.4}
html[data-ui-design="classic"] .shift-machine-compact button {flex:0 0 auto;min-height:44px;padding:10px 12px;border:1px solid #ccd8ec;background:#f3f6fb;color:#2454b3;font-size:14px;font-weight:600;border-radius:9px}
html[data-ui-design="classic"] .shift-machine-compact button:hover:not(:disabled) {background:#e4edff;border-color:#7c9de5}
html[data-ui-design="classic"] .shift-machine-compact button:disabled {opacity:.55}
html[data-ui-design="classic"] .completion-task-passport {display:grid;gap:3px;margin:0 0 10px;padding:0 2px 9px;border-bottom:1px solid #e1e7ef;color:#33465f;line-height:1.4;font-size:13px;overflow-wrap:anywhere}
html[data-ui-design="classic"] .completion-task-passport :is(b,strong) {font-size:14px;font-weight:600;color:#24364d}
html[data-ui-design="classic"] .completion-task-passport :is(span,small) {font-size:13px;color:#52647d}
html[data-ui-design="classic"] body.has-employee-completion .completion-action-panel,
html[data-ui-design="classic"] body.keyboard-open.has-employee-completion .completion-action-panel {padding:10px}
html[data-ui-design="classic"] .completion-equation {margin:0;padding:12px 14px;border-radius:10px;background:#edf3ff;border:1px solid #dce7ff;color:#304d7b;font-size:15px;line-height:1.5;font-weight:500;overflow-wrap:anywhere}
html[data-ui-design="classic"] .completion-help {border:0;border-top:1px solid var(--line);background:transparent;padding:0;margin:4px 0}
html[data-ui-design="classic"] .completion-help>summary {min-height:44px;box-sizing:border-box;padding:12px 0;font-size:13px;font-weight:500;color:#52647d;cursor:pointer}
html[data-ui-design="classic"] .completion-help :is(p,.task-note) {margin:0 0 10px;padding:0;background:transparent;border:0;color:#52647d;font-size:13px;line-height:1.5}
html[data-ui-design="classic"] .task-completion-card .completion-summary span {font-size:13px;line-height:1.4;font-weight:400}
html[data-ui-design="classic"] .task-completion-card .completion-summary b {font-size:17px;font-weight:500}
html[data-ui-design="classic"] .compact-completion .completion-summary>.accepted,
html[data-ui-design="classic"] .compact-completion .completion-summary>.additional {display:none}
html[data-ui-design="classic"] .compact-completion .completion-summary {grid-template-columns:repeat(2,minmax(0,1fr))}
html[data-ui-design="classic"] .completion-field-error {display:block;margin:6px 0 0;color:#24364d;font-size:13px;line-height:1.45;border-left:3px solid #52647d;padding:5px 8px}
html[data-ui-design="classic"] .completion-field-error[hidden] {display:none}
html[data-ui-design="classic"] .task-completion-card [aria-invalid="true"] {border:2px solid #52647d;background:#f5f7fa}
html[data-ui-design="classic"] .completion-receipt {display:grid;gap:5px;padding:14px 16px;border:1px solid #d5e1f4;border-radius:12px;background:#f0f5fd;color:#304d7b;line-height:1.5;overflow-wrap:anywhere}
html[data-ui-design="classic"] .completion-receipt :is(b,strong) {font-size:15px;font-weight:600}
html[data-ui-design="classic"] .completion-receipt :is(span,small,div) {font-size:13px}
html[data-ui-design="classic"] .completion-delivery-state {font-size:14px;line-height:1.5}
html[data-ui-design="classic"] .employee-empty-state small {font-size:13px;line-height:1.5;color:#52647d}
@media(min-width:900px) {
 html[data-ui-design="classic"] .employee-workspace-head {grid-template-columns:minmax(0,1fr) auto;align-items:center}
 html[data-ui-design="classic"] .shift-machine-compact {grid-column:1/-1;width:min(100%,560px);box-sizing:border-box}
}
@media(max-height:550px) {
 html[data-ui-design="classic"] .completion-task-passport {gap:1px;margin-bottom:5px;padding-bottom:5px;font-size:12px}
 html[data-ui-design="classic"] .completion-task-passport :is(b,strong,span,small) {font-size:12px;line-height:1.3}
}
@media(max-width:360px) {
 html[data-ui-design="classic"] .appbar {gap:6px;padding:10px!important}
 html[data-ui-design="classic"] .appbar-actions {gap:3px}
 html[data-ui-design="classic"] .app-brand-lockup .brand-wordmark {font-size:12px}
 html[data-ui-design="classic"] .app-brand-lockup .brand-mark {width:26px}
 html[data-ui-design="classic"] .appbar-actions .icon-btn {width:44px;min-width:44px;padding:10px}
}

/* Mobile navigation: shared geometry, readable labels and measured footer clearance. */
@media(max-width:899px) {
 html[data-ui-design="classic"] {--employee-actions-bottom:calc(var(--employee-bottom-nav-height,82px) + 8px)}
 html[data-ui-design="classic"] #bottomNav .nav-btn {grid-template-rows:25px minmax(1.25em,auto);align-content:start;align-items:start;min-height:58px;min-width:0;padding:6px 4px;row-gap:4px}
 html[data-ui-design="classic"] #bottomNav .nav-btn>.nav-ico {display:grid;place-items:center;align-self:start;line-height:1}
 html[data-ui-design="classic"] #bottomNav .nav-btn>span:last-child {display:block;min-width:0;max-width:100%;white-space:normal;word-break:normal;overflow-wrap:anywhere;font-size:13px;line-height:1.25;text-align:center}
 html[data-ui-design="classic"] body:not(.keyboard-open) .main-button {bottom:calc(var(--employee-bottom-nav-height,82px) + 8px)}
 html[data-ui-design="classic"] body:not(.keyboard-open) .body {padding-bottom:max(108px,calc(var(--employee-bottom-nav-height,82px) + 80px))!important}
 html[data-ui-design="classic"] .mobile-workspace-nav {grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr)}
 html[data-ui-design="classic"] .mobile-workspace-nav button {min-width:0;white-space:normal;overflow-wrap:anywhere;padding-inline:6px;font-size:14px;line-height:1.3;min-height:48px}
 html[data-ui-design="classic"] .mm-dialog-head {display:flex;flex-wrap:wrap;align-items:start;gap:12px}
 html[data-ui-design="classic"] .mm-dialog-head>:first-child {flex:1 1 7em;min-width:0;overflow-wrap:anywhere}
 html[data-ui-design="classic"] .mm-dialog-head>button {min-width:44px;max-width:100%;white-space:normal;overflow-wrap:anywhere}
 html[data-ui-design="classic"] .shift-time-stats,html[data-ui-design="classic"] .shift-activity-actions {display:flex;flex-wrap:wrap}
 html[data-ui-design="classic"] .shift-time-stat,html[data-ui-design="classic"] .shift-activity-button {flex:1 1 0;min-width:max-content;max-width:100%;box-sizing:border-box}
 html[data-ui-design="classic"] .shift-activity-button {padding:10px 8px;line-height:1.3;white-space:normal}
 html[data-ui-design="classic"] .completion-actions button {overflow-wrap:anywhere}
 html[data-ui-design="classic"] #backBtn {display:grid;place-items:center;padding:0;line-height:1}
 html[data-ui-design="classic"] #topTabs .tab {overflow-wrap:anywhere;white-space:normal;line-height:1.3}
 html[data-ui-design="classic"] .screen-head {flex-wrap:wrap}
 html[data-ui-design="classic"] .screen-head>* {min-width:0;max-width:100%;overflow-wrap:anywhere}
 html[data-ui-design="classic"] .tabs.admin-task-status-tabs {display:flex;flex-wrap:wrap;overflow:visible}
 html[data-ui-design="classic"] .admin-task-status-tabs .tab {flex:1 1 calc((100% - 8px)/3);min-width:min(100%,6.5em);max-width:100%;white-space:normal;overflow-wrap:anywhere;line-height:1.3}
 html[data-ui-design="classic"] .order-card {min-width:0;max-width:100%;box-sizing:border-box}
 html[data-ui-design="classic"] .order-card .order-foot {flex-wrap:wrap}
 html[data-ui-design="classic"] .order-card .order-foot>strong:first-child {min-width:0;max-width:100%;overflow-wrap:anywhere}
 html[data-ui-design="classic"] .ss-dropdown .ss-option {min-height:48px;box-sizing:border-box;display:flex;align-items:center;white-space:normal;overflow-wrap:anywhere}
 html[data-ui-design="classic"] .mm-dialog .ss-dropdown {position:static;margin-top:4px;max-height:min(240px,30dvh);box-sizing:border-box}
}

/* Keep administrator workspace names whole on phones. */
@media(max-width:899px) {
 html[data-ui-design="classic"] body:not(.employee-mobile-ui) #mobileWorkspaceNav {display:flex;flex-wrap:wrap;gap:4px}
 html[data-ui-design="classic"] body:not(.employee-mobile-ui) #mobileWorkspaceNav button {flex:1 1 calc((100% - 4px)/2);min-width:max-content;max-width:100%;white-space:nowrap;overflow-wrap:normal;word-break:normal;box-sizing:border-box}
}

/* Keep help titles and illustrated controls inside narrow screens at large text sizes. */
@media(max-width:899px) {
 html[data-ui-design="classic"] :is(.help-hero,.help-article-head,.help-article-grid) {min-width:0;grid-template-columns:minmax(0,1fr)}
 html[data-ui-design="classic"] :is(.help-hero,.help-article-head,.help-card-copy,.help-shot) {overflow-wrap:anywhere}
 html[data-ui-design="classic"] .help-audience {max-width:100%;box-sizing:border-box;white-space:normal}
 html[data-ui-design="classic"] .help-shot-actions {min-width:0;grid-template-columns:minmax(0,1fr)}
 html[data-ui-design="classic"] .help-shot-actions button {min-width:0;max-width:100%;box-sizing:border-box;white-space:normal;overflow-wrap:anywhere;padding:8px;line-height:1.4}
 html[data-ui-design="classic"] .help-categories {flex-wrap:wrap;overflow:visible}
 html[data-ui-design="classic"] .help-category {max-width:100%;white-space:normal;overflow-wrap:anywhere}
}

/* Let production filters and stage summaries reflow with larger text. */
@media(max-width:899px) {
 html[data-ui-design="classic"] .pq-header>* {min-width:0;max-width:100%;overflow-wrap:anywhere}
 html[data-ui-design="classic"] .pn-heading>* {min-width:0;max-width:100%;overflow-wrap:anywhere}
 html[data-ui-design="classic"] .pq-workspace .pq-button {min-width:0;max-width:100%;box-sizing:border-box;white-space:normal;overflow-wrap:anywhere;line-height:1.4}
 html[data-ui-design="classic"] :is(#productHistoryFilters,#productionRouteFilters) .button-row {display:flex;flex-wrap:wrap;align-items:stretch}
 html[data-ui-design="classic"] :is(#productHistoryFilters,#productionRouteFilters) .button-row>.pq-button {flex:1 1 10em}
 html[data-ui-design="classic"] :is(#productHistoryFilters,#productionRouteFilters) .button-row>span {flex-basis:100%;min-width:0;overflow-wrap:anywhere}
 html[data-ui-design="classic"] .ph-stage>summary {flex-wrap:wrap;gap:10px}
 html[data-ui-design="classic"] .ph-stage>summary>span {min-width:0;max-width:100%;overflow-wrap:anywhere}
 html[data-ui-design="classic"] body.warehouse-workspace #bottomNav {display:flex;flex-wrap:wrap}
 html[data-ui-design="classic"] body.warehouse-workspace #bottomNav .nav-btn {flex:1 1 0;min-width:max-content;max-width:100%;box-sizing:border-box}
 html[data-ui-design="classic"] body.warehouse-workspace #bottomNav .nav-btn>span:last-child {white-space:nowrap;overflow-wrap:normal}
}
@media(max-width:430px) {
 html[data-ui-design="classic"] body.warehouse-workspace #bottomNav .nav-btn {flex-basis:calc((100% - 16px)/3)}
}

/* Dialogs, assignment cards and equipment keep their intrinsic width in check. */
@media(max-width:899px) {
 html[data-ui-design="classic"] .employee-workspace {grid-template-columns:minmax(0,1fr)}
 html[data-ui-design="classic"] .employee-workspace>* {min-width:0}
 html[data-ui-design="classic"] :is(.mm-notice,.mm-heading,.completion-review-dialog,.task-take-dialog,.task-confirm-dialog) {min-width:0;overflow-wrap:anywhere}
 html[data-ui-design="classic"] .mm-heading>* {min-width:0;max-width:100%}
 html[data-ui-design="classic"] :is(.task-take-actions,.completion-review-actions) {display:flex;flex-wrap:wrap}
 html[data-ui-design="classic"] :is(.task-take-actions,.completion-review-actions) button {flex:1 1 9em;width:auto;max-width:100%;box-sizing:border-box;overflow-wrap:anywhere}
 html[data-ui-design="classic"] .tc-detail {grid-template-columns:minmax(0,1fr)}
 html[data-ui-design="classic"] .tc-detail>* {min-width:0}
 html[data-ui-design="classic"] .tc-heading {flex-wrap:wrap}
 html[data-ui-design="classic"] .tc-heading>* {min-width:0;max-width:100%;overflow-wrap:anywhere}
 html[data-ui-design="classic"] .tc-app input[type=file] {min-width:0;width:100%;box-sizing:border-box}
 html[data-ui-design="classic"] .marketplace-chart-switch {display:flex;flex-wrap:wrap}
 html[data-ui-design="classic"] .marketplace-chart-switch button {flex:1 1 8em;min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}
 html[data-ui-design="classic"] .marketplace-wide-grid .section-title {flex-wrap:wrap}
 html[data-ui-design="classic"] .marketplace-wide-grid .section-title>* {min-width:0;max-width:100%;overflow-wrap:anywhere}
 html[data-ui-design="classic"] .marketplace-main .section-title {flex-wrap:wrap}
 html[data-ui-design="classic"] .marketplace-main .section-title>* {min-width:0;max-width:100%;overflow-wrap:anywhere}
 html[data-ui-design="classic"] .marketplace-group-grid {grid-template-columns:minmax(0,1fr)}
 html[data-ui-design="classic"] .marketplace-group-grid>* {min-width:0;overflow-wrap:anywhere}
 html[data-ui-design="classic"] .password-toggle {width:44px;min-width:44px;min-height:44px}
 html[data-ui-design="classic"] :is(.password-field input,.searchable-select .ss-input) {min-height:48px}
 html[data-ui-design="classic"] #laundryDialog summary {min-height:44px;box-sizing:border-box;overflow-wrap:anywhere}
 html[data-ui-design="classic"] :is(.ss-trigger,.pq-header-actions .pq-button) {min-height:44px}
 html[data-ui-design="classic"] :is(.pq-methodology,.ph-workspace) summary {min-height:44px;box-sizing:border-box;padding-block:10px;overflow-wrap:anywhere}
 html[data-ui-design="classic"] .pn-link {min-width:44px;min-height:44px;display:inline-flex;align-items:center}
 html[data-ui-design="classic"] .tc-app fieldset {min-width:0}
 html[data-ui-design="classic"] :is(.tc-grid>*,.tc-field) {min-width:0}
 html[data-ui-design="classic"] .tc-check {overflow-wrap:anywhere}
 html[data-ui-design="classic"] .wms-stock-filter-tabs {display:flex;flex-wrap:wrap}
 html[data-ui-design="classic"] .wms-stock-filter-tabs .tab {flex:1 1 8em;min-width:max-content;max-width:100%;box-sizing:border-box;white-space:normal;overflow-wrap:normal}
 html[data-ui-design="classic"] .materials-filters .link-button {grid-column:1/-1;max-width:100%;box-sizing:border-box;white-space:normal;overflow-wrap:anywhere;min-height:44px}
 html[data-ui-design="classic"] .materials-summary>div {min-width:0;overflow-wrap:anywhere}
 html[data-ui-design="classic"] .marketplace-filter-bar {grid-template-columns:minmax(0,1fr)}
 html[data-ui-design="classic"] .marketplace-filter-bar>* {min-width:0;max-width:100%;box-sizing:border-box;overflow-wrap:anywhere}
 html[data-ui-design="classic"] .marketplace-filter-bar :is(input,select) {min-width:0;max-width:100%;box-sizing:border-box}
 html[data-ui-design="classic"] .marketplace-stock-card-body>small {overflow:visible;text-overflow:clip;white-space:normal;overflow-wrap:anywhere}
 html[data-ui-design="classic"] .marketplace-stock-sources>span {min-width:0;overflow-wrap:anywhere}
 html[data-ui-design="classic"] :is(.mm-unassigned,.mm-release-history) {min-width:0;overflow-wrap:anywhere}
 html[data-ui-design="classic"] :is(.mm-unassigned,.mm-release-history) summary {min-height:44px;padding-block:10px;box-sizing:border-box}
 html[data-ui-design="classic"] :is(.kpi,.marketplace-v2-kpi) {min-width:0;overflow-wrap:anywhere}
 html[data-ui-design="classic"] .kpi>.kpi-top {flex-wrap:wrap}
 html[data-ui-design="classic"] :is(.kpi,.marketplace-v2-kpi) strong {white-space:normal;overflow-wrap:anywhere}
 html[data-ui-design="classic"] body.warehouse-workspace .section-title {flex-wrap:wrap}
 html[data-ui-design="classic"] body.warehouse-workspace .section-title>* {min-width:0;max-width:100%;overflow-wrap:anywhere}
 html[data-ui-design="classic"] body.warehouse-workspace :is(.status-chip,.field-card p) {max-width:100%;box-sizing:border-box;white-space:normal;overflow-wrap:anywhere}
 html[data-ui-design="classic"] .marketplace-wide-grid {grid-template-columns:minmax(0,1fr)}
 html[data-ui-design="classic"] .marketplace-wide-grid>* {min-width:0;overflow-wrap:anywhere}
 html[data-ui-design="classic"] .marketplace-wide-grid .marketplace-table-scroll {min-width:0;max-width:100%}
 html[data-ui-design="classic"] .marketplace-stock-card-body b {overflow:visible;text-overflow:clip;white-space:normal;overflow-wrap:anywhere}
 html[data-ui-design="classic"] :is(#pr-batch,#ph-start,#ph-end) {min-height:44px}
 html[data-ui-design="classic"] .pq-panel>summary {min-height:44px;padding-block:10px;box-sizing:border-box;overflow-wrap:anywhere}
 html[data-ui-design="classic"] .pq-filter-disclosure>summary {min-height:44px;padding-block:10px;box-sizing:border-box;overflow-wrap:anywhere}
 html[data-ui-design="classic"] .pq-filter-actions {flex-wrap:wrap}
 html[data-ui-design="classic"] .pq-filter-actions .pq-search {flex:1 1 100%;min-width:0}
 html[data-ui-design="classic"] .task-action-grid {display:flex;flex-wrap:wrap}
 html[data-ui-design="classic"] .task-action-grid>button {flex:1 1 8em;min-width:44px;max-width:100%;white-space:normal;overflow-wrap:anywhere}
 html[data-ui-design="classic"] .order-card-actions {display:flex;flex-wrap:wrap}
 html[data-ui-design="classic"] .order-card-actions>button {flex:1 1 8em;min-width:44px;max-width:100%;box-sizing:border-box;white-space:normal;overflow-wrap:anywhere}
 html[data-ui-design="classic"] body.keyboard-open.has-employee-completion .completion-action-panel {position:static;left:auto;bottom:auto;width:auto}
 html[data-ui-design="classic"] body.keyboard-open.has-employee-completion .task-completion-card {padding-bottom:16px;--employee-actions-height:0px}
 html[data-ui-design="classic"] .searchable-select:not(:focus-within)>.ss-value {display:block;min-height:48px;padding:12px 38px 12px 12px;box-sizing:border-box;border:1px solid #ccd8ec;border-radius:10px;background:#fff;color:var(--text);font-size:16px;font-weight:400;line-height:1.4;white-space:normal;overflow-wrap:anywhere}
 html[data-ui-design="classic"] .searchable-select:not(:focus-within)>.ss-input {position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
}
@media(max-width:430px) {
 html[data-ui-design="classic"] .completion-review-dialog dl>div {flex-wrap:wrap;gap:6px}
 html[data-ui-design="classic"] .completion-review-dialog :is(dt,dd) {flex-basis:100%;max-width:100%;text-align:left}
}

/* Report clarity: compact totals, grouped defects and mobile confirmation. */
/* Keep the primary action legible above the generic pale hover rule. */
html[data-ui-design="classic"] .completion-actions .completion-finish-button:hover:not(:disabled),
html[data-ui-design="classic"] .completion-actions .completion-finish-button:focus-visible:not(:disabled) {background:#1749bf;color:#fff;border-color:#1749bf;filter:none}
html[data-ui-design="classic"] .completion-actions .completion-finish-button:active:not(:disabled) {background:#123b9d;color:#fff;border-color:#123b9d}
html[data-ui-design="classic"] .completion-actions button:focus-visible {outline:2px solid #1749bf;outline-offset:3px}
html[data-ui-design="classic"] .report-totals {padding:10px 12px;background:#f4f6fa;border:1px solid #e1e7ef;border-radius:10px;color:var(--text);line-height:1.5}
html[data-ui-design="classic"] .report-totals-line {display:flex;flex-wrap:wrap;gap:4px 16px;font-size:14px}
html[data-ui-design="classic"] .report-totals-line>span {white-space:normal}
html[data-ui-design="classic"] .report-totals b {font-weight:600}
html[data-ui-design="classic"] .report-totals small {display:block;font-size:13px;margin-top:4px}
html[data-ui-design="classic"] .report-totals [hidden],html[data-ui-design="classic"] .completion-actions [hidden] {display:none!important}
html[data-ui-design="classic"] #taskDefectDetails {margin-top:0;padding:12px;border:1px solid #e1e7ef;border-radius:12px;background:#fafbfe}
html[data-ui-design="classic"] #taskDefectDetails .task-note {margin:0;padding:0;background:transparent;font-size:12px;font-weight:400}
html[data-ui-design="classic"] #taskDefectDetails textarea {min-height:64px;resize:vertical}
html[data-ui-design="classic"] #taskDefectDetails input[type="file"] {min-height:44px;font-size:13px;max-width:100%;box-sizing:border-box}
html[data-ui-design="classic"] .completion-task-passport {display:block;margin:0 0 6px;padding:0;border:0;font-size:13px;line-height:1.35}
html[data-ui-design="classic"] .completion-actions.single-action {grid-template-columns:minmax(0,1fr)}
html[data-ui-design="classic"] .completion-actions button {display:flex;flex-direction:column;justify-content:center;gap:4px;min-height:52px;padding:8px;font-size:14px;line-height:1.25}
html[data-ui-design="classic"] .completion-actions button small {font-size:11px;line-height:1.25;font-weight:400;color:inherit;white-space:normal}
html[data-ui-design="classic"] .completion-actions button small:empty {display:none}
html[data-ui-design="classic"] .completion-action-panel p:empty {display:none}
html[data-ui-design="classic"] body.has-employee-completion .completion-action-panel {padding:8px}
html[data-ui-design="classic"] .report-review-compact[open] {display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:0;width:min(460px,calc(100vw - 24px));max-height:calc(var(--employee-viewport-height,100dvh) - 24px);padding:16px;overflow:hidden;margin:auto;border-radius:16px;box-sizing:border-box}
html[data-ui-design="classic"] .report-review-compact h2 {font-size:20px;line-height:1.3;margin:0;padding:0 0 12px;overflow-wrap:anywhere}
html[data-ui-design="classic"] .completion-review-body {min-height:0;overflow:auto;overscroll-behavior:contain;scroll-padding:8px;padding:0 2px}
html[data-ui-design="classic"] .report-review-compact .completion-review-identity {gap:3px;padding:10px 12px;border-radius:10px;background:#f4f6fa}
html[data-ui-design="classic"] .report-review-compact .completion-review-identity strong {font-size:14px;font-weight:500}
html[data-ui-design="classic"] .report-review-compact .completion-review-identity b {font-size:18px;font-weight:600}
html[data-ui-design="classic"] .report-review-compact .completion-review-identity :is(span,small) {font-size:13px;line-height:1.35}
html[data-ui-design="classic"] .report-review-compact dl {margin:8px 0 0}
html[data-ui-design="classic"] .report-review-compact dl>div {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;padding:8px 0;font-size:14px;line-height:1.4}
html[data-ui-design="classic"] .report-review-compact dd {max-width:none;font-weight:600;overflow-wrap:anywhere}
html[data-ui-design="classic"] .report-review-compact p {font-size:13px;line-height:1.4;margin:8px 0;overflow-wrap:anywhere}
html[data-ui-design="classic"] .report-review-compact .completion-review-actions {display:grid;grid-template-columns:1fr 1fr;gap:8px;padding-top:12px;margin:0;background:#fff}
html[data-ui-design="classic"] .report-review-compact .completion-review-actions button {min-width:0;min-height:48px;padding:10px;font-size:14px}
html[data-ui-design="classic"] body.keyboard-open.has-employee-completion .completion-action-panel {position:static;left:auto;bottom:auto;width:auto}
html[data-ui-design="classic"] body.keyboard-open.has-employee-completion .task-completion-card {padding-bottom:16px;--employee-actions-height:0px}
html[data-ui-design="classic"] body.keyboard-open .report-review-compact[open] {top:calc(var(--employee-viewport-top,0px) + 8px);margin:0 auto;max-height:calc(var(--employee-viewport-height,100dvh) - 16px);padding:12px}
@media(max-width:360px) {
 html[data-ui-design="classic"] .completion-actions button {font-size:12px;padding:8px 5px}
 html[data-ui-design="classic"] .completion-actions button small {font-size:10px}
 html[data-ui-design="classic"] .report-totals-line {font-size:13px;gap:4px 10px}
}
