
    * { box-sizing: border-box; }

    :root {
      --bg: #eef4ee;
      --forest: #0f4a32;
      --forest-deep: #17251e;
      --cream: #fbf7ef;
      --surface: rgba(255, 255, 255, .9);
      --surface-solid: #ffffff;
      --surface-muted: #f6faf5;
      --line: rgba(36, 73, 52, .12);
      --line-strong: rgba(36, 73, 52, .2);
      --text: #1f3128;
      --muted: #68776e;
      --brand: #0f7a4f;
      --brand-2: #2f9b66;
      --brand-deep: #0f4a32;
      --brand-soft: rgba(15, 122, 79, .1);
      --gold: #d5941d;
      --gold-soft: rgba(210, 164, 73, .16);
      --premium-surface: linear-gradient(145deg, rgba(255,255,255,.96), rgba(250,253,248,.9));
      --premium-border: rgba(24, 76, 51, .14);
      --premium-shadow: 0 18px 46px rgba(18, 55, 37, .12);
      --focus-ring: 0 0 0 4px rgba(47, 155, 102, .14);
      --color-primary: #0f7a4f;
      --color-primary-hover: #0d5f3f;
      --color-primary-soft: #eaf6ee;
      --color-warning: #d2a449;
      --color-danger: #b33b2f;
      --color-border: rgba(31, 49, 40, .13);
      --color-muted: #68776e;
      --color-card: #ffffff;
      --color-page: #eef4ee;
      --shadow-card: 0 14px 34px rgba(21, 46, 32, .09);
      --shadow-card-hover: 0 18px 44px rgba(21, 46, 32, .13);
      --shadow-control: 0 8px 18px rgba(21, 46, 32, .08);
      --elevation-shell: 0 6px 18px rgba(21, 46, 32, .045);
      --elevation-nav: 0 12px 28px rgba(21, 46, 32, .085), 0 1px 0 rgba(255,255,255,.72) inset;
      --elevation-kpi: 0 18px 42px rgba(21, 46, 32, .12), 0 1px 0 rgba(255,255,255,.78) inset;
      --elevation-task: 0 26px 58px rgba(21, 46, 32, .17), 0 8px 18px rgba(21, 46, 32, .08);
      --elevation-task-hover: 0 32px 72px rgba(21, 46, 32, .2), 0 10px 24px rgba(21, 46, 32, .1);
      --brand-signature-border: linear-gradient(135deg, rgba(15, 122, 79, .44), rgba(47, 155, 102, .18) 44%, rgba(210, 164, 73, .2));
      --brand-signature-glass: linear-gradient(135deg, rgba(15, 122, 79, .1), rgba(255,255,255,.72) 46%, rgba(47, 155, 102, .08));
      --brand-signature-focus: 0 0 0 4px rgba(15, 122, 79, .14), 0 0 0 1px rgba(15, 122, 79, .26);
      --space-1: 4px;
      --space-2: 8px;
      --space-3: 12px;
      --space-4: 16px;
      --space-5: 20px;
      --space-6: 24px;
      --danger: #b33b2f;
      --blue: #1d6f91;
      --shadow-sm: 0 10px 26px rgba(28, 61, 42, .07);
      --shadow-md: 0 20px 54px rgba(28, 61, 42, .12);
      --radius-lg: 24px;
      --radius-md: 18px;
      --radius-sm: 14px;
    }

    body {
      margin: 0;
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
      background: var(--bg);
      color: var(--text);
      overflow: auto;
      min-height: 100vh;
    }

    .app-background {
      position: fixed;
      inset: 0;
      pointer-events: none;
      overflow: hidden;
      background:
        radial-gradient(circle at 18% 12%, rgba(47, 155, 102, .18), transparent 34%),
        radial-gradient(circle at 82% 8%, rgba(245, 191, 64, .15), transparent 30%),
        linear-gradient(180deg, #f7fbf6 0%, #eef4ee 42%, #e7efe7 100%);
      z-index: -2;
    }

    .app-glow {
      position: absolute;
      border-radius: 999px;
      filter: blur(2px);
      opacity: .55;
    }

    .app-glow-one {
      width: 520px;
      height: 520px;
      left: -190px;
      top: -180px;
      background: radial-gradient(circle, rgba(15, 122, 79, .18), transparent 68%);
    }

    .app-glow-two {
      width: 460px;
      height: 460px;
      right: -160px;
      top: 120px;
      background: radial-gradient(circle, rgba(213, 148, 29, .14), transparent 68%);
    }

    .app-grid {
      position: absolute;
      inset: 0;
      background-image:
        linear-gradient(rgba(45, 91, 62, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(45, 91, 62, .045) 1px, transparent 1px);
      background-size: 44px 44px;
      mask-image: linear-gradient(to bottom, rgba(0,0,0,.65), transparent 72%);
    }

    .app {
      min-height: 100vh;
      padding: 22px;
      width: 100%;
      max-width: none;
      margin: 0 auto;
      display: flex;
      flex-direction: column;
    }

    .loading-screen {
      position: fixed;
      inset: 0;
      background:
        radial-gradient(circle at 50% 42%, rgba(255,255,255,.96) 0%, rgba(242, 249, 242, .94) 38%, rgba(222, 239, 224, .98) 100%),
        linear-gradient(135deg, rgba(20, 132, 84, .08), rgba(255,255,255,.78));
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 9999;
      opacity: 1;
      pointer-events: auto;
      transition: opacity .22s ease;
      overflow: hidden;
    }

    .liquid-bg {
      position: absolute;
      inset: 0;
      overflow: hidden;
      z-index: 0;
    }

    .liquid-blob {
      position: absolute;
      border-radius: 999px;
      background:
        radial-gradient(circle at 45% 45%, rgba(255,255,255,.1) 0 47%, transparent 48%),
        conic-gradient(from 210deg, rgba(20,132,84,0), rgba(20,132,84,.18), rgba(121,192,76,.22), rgba(245,191,64,.16), rgba(20,132,84,0));
      opacity: .72;
      filter: blur(.4px);
      transform-origin: center;
    }

    .liquid-blob.one {
      width: 520px;
      height: 520px;
      left: -170px;
      top: -110px;
      animation: brandArcOne 8s ease-in-out infinite alternate;
    }

    .liquid-blob.two {
      width: 450px;
      height: 450px;
      right: -150px;
      bottom: -135px;
      opacity: .58;
      animation: brandArcTwo 9.5s ease-in-out infinite alternate;
    }

    .liquid-blob.three {
      width: 360px;
      height: 360px;
      left: 50%;
      top: 50%;
      opacity: .28;
      transform: translate(-50%, -50%);
      background:
        radial-gradient(circle, rgba(255,255,255,.18) 0 43%, transparent 44%),
        repeating-conic-gradient(from 0deg, rgba(19,130,84,.13) 0deg 12deg, rgba(245,191,64,.12) 12deg 18deg, transparent 18deg 32deg);
      animation: brandHalo 12s linear infinite;
    }

    .liquid-ripple {
      position: absolute;
      width: 86vw;
      height: 86vw;
      left: 50%;
      top: 50%;
      border-radius: 999px;
      border: 1px solid rgba(22, 142, 87, .1);
      transform: translate(-50%, -50%);
      animation: brandRipple 5.2s ease-out infinite;
      z-index: 0;
    }

    .loading-card {
      position: relative;
      width: min(520px, calc(100vw - 48px));
      min-height: 285px;
      background: rgba(255,255,255,.9);
      border: 1px solid rgba(178, 216, 183, .85);
      border-radius: 34px;
      box-shadow: 0 28px 80px rgba(38, 81, 58, 0.18);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 16px;
      padding: 28px;
      overflow: hidden;
      backdrop-filter: blur(10px);
    }

    .loading-card::before {
      content: "";
      position: absolute;
      inset: -35%;
      background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.48) 48%, transparent 62%);
      animation: shimmer 3.4s ease-in-out infinite;
      z-index: 1;
    }

    .loading-ring {
      position: absolute;
      width: 202px;
      height: 202px;
      border-radius: 999px;
      z-index: 2;
      background: conic-gradient(
        from 0deg,
        rgba(115, 205, 132, 0),
        rgba(245, 191, 64, .22),
        rgba(121, 192, 76, .34),
        rgba(33, 166, 119, .82),
        rgba(115, 205, 132, 0)
      );
      animation: spinRing 1.45s linear infinite;
    }

    .loading-ring::after {
      content: "";
      position: absolute;
      inset: 8px;
      border-radius: 999px;
      background: rgba(255,255,255,.94);
    }

    .loading-text {
      position: relative;
      z-index: 3;
      color: #2f7b50;
      font-size: 12px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: .12em;
      text-align: center;
      max-width: 250px;
    }

    .loading-subtext {
      position: relative;
      z-index: 3;
      color: #6c8773;
      font-size: 12px;
      line-height: 1.45;
      text-align: center;
      max-width: 240px;
      margin-top: -6px;
    }

    .loading-progress-panel {
      display: none;
      position: relative;
      z-index: 3;
      width: 100%;
      border: 1px solid rgba(15, 122, 79, .12);
      border-radius: 18px;
      background: rgba(245, 251, 243, .82);
      padding: 14px;
      text-align: left;
    }

    .loading-screen.has-progress .loading-progress-panel {
      display: block;
    }

    .loading-step-count {
      color: #2f7b50;
      font-size: 11px;
      font-weight: 900;
      letter-spacing: .08em;
      text-transform: uppercase;
      margin-bottom: 6px;
    }

    .loading-current-step {
      color: #21352b;
      font-size: 15px;
      font-weight: 950;
      line-height: 1.35;
    }

    .loading-recent-steps {
      display: grid;
      gap: 6px;
      margin-top: 12px;
      color: #5f6f66;
      font-size: 12px;
      font-weight: 800;
      line-height: 1.35;
    }

    .loading-recent-step {
      display: flex;
      gap: 8px;
      align-items: flex-start;
    }

    .loading-recent-step::before {
      content: "";
      width: 8px;
      height: 8px;
      border-radius: 999px;
      background: #0f7a4f;
      margin-top: 4px;
      flex: 0 0 auto;
    }

    .loading-dots::after {
      content: "";
      animation: loadingDots 1.3s steps(4, end) infinite;
    }

    @keyframes spinRing {
      from { transform: rotate(0deg); }
      to { transform: rotate(360deg); }
    }

    @keyframes shimmer {
      0% { transform: translateX(-35%) rotate(0deg); opacity: 0; }
      35% { opacity: .7; }
      100% { transform: translateX(35%) rotate(0deg); opacity: 0; }
    }

    @keyframes loadingDots {
      0% { content: ""; }
      25% { content: "."; }
      50% { content: ".."; }
      75%, 100% { content: "..."; }
    }

    @keyframes brandArcOne {
      0% { transform: translate3d(-10px, 0, 0) rotate(-8deg) scale(.98); opacity: .55; }
      100% { transform: translate3d(26px, 18px, 0) rotate(10deg) scale(1.04); opacity: .78; }
    }

    @keyframes brandArcTwo {
      0% { transform: translate3d(14px, 8px, 0) rotate(12deg) scale(1); opacity: .45; }
      100% { transform: translate3d(-22px, -18px, 0) rotate(-10deg) scale(1.08); opacity: .66; }
    }

    @keyframes brandHalo {
      from { transform: translate(-50%, -50%) rotate(0deg) scale(.98); }
      to { transform: translate(-50%, -50%) rotate(360deg) scale(1.03); }
    }

    @keyframes brandRipple {
      0% { transform: translate(-50%, -50%) scale(.35); opacity: .28; }
      100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
    }

    .topbar {
      background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(248,252,247,.88));
      border: 1px solid var(--line);
      border-radius: 28px;
      padding: 18px;
      margin-bottom: 12px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      box-shadow: var(--shadow-md);
      gap: 18px;
      position: sticky;
      top: 14px;
      z-index: 30;
      backdrop-filter: blur(16px);
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 14px;
    }

    .brand-mark {
      width: 54px;
      height: 54px;
      border-radius: 18px;
      display: grid;
      place-items: center;
      color: white;
      font-weight: 950;
      letter-spacing: .05em;
      background:
        radial-gradient(circle at 28% 22%, rgba(255,255,255,.28), transparent 32%),
        linear-gradient(135deg, #0f7a4f, #27a96f);
      box-shadow: 0 15px 34px rgba(15, 122, 79, .25);
    }

    .eyebrow {
      color: var(--brand);
      font-size: 11px;
      font-weight: 950;
      letter-spacing: .14em;
      text-transform: uppercase;
      margin-bottom: 3px;
    }

    h1 {
      margin: 0;
      font-size: clamp(25px, 3vw, 34px);
      font-weight: 950;
      color: var(--text);
      letter-spacing: -.04em;
    }

    .subtitle {
      margin-top: 4px;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.35;
    }

    .buttons {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      align-items: center;
      justify-content: flex-end;
    }

    button {
      border: 0;
      border-radius: 13px;
      padding: 10px 15px;
      cursor: pointer;
      font-weight: 900;
      font-size: 13px;
      font-family: inherit;
      transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
    }

    button:hover:not(:disabled) {
      transform: translateY(-1px);
    }

    button:active:not(:disabled) {
      transform: translateY(0);
    }

    button:disabled {
      cursor: not-allowed;
      opacity: .65;
    }

    .primary {
      background: linear-gradient(135deg, #0f7a4f, #1f9b65);
      color: white;
      border: 1px solid rgba(15, 122, 79, .2);
      box-shadow: 0 12px 28px rgba(15, 122, 79, .22);
    }

    .secondary {
      background: rgba(255,255,255,.68);
      color: var(--text);
      border: 1px solid var(--line);
      box-shadow: 0 8px 18px rgba(38, 51, 45, .05);
    }

    .subtle-action {
      background: rgba(255,255,255,.52);
      color: var(--muted);
    }

    .refresh-action {
      min-width: 142px;
    }

    .login-prompt-overlay {
      position: fixed;
      inset: 0;
      z-index: 9998;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 22px;
      background:
        radial-gradient(circle at 50% 36%, rgba(255, 255, 255, .72), rgba(232, 244, 235, .84) 48%, rgba(31, 72, 48, .28) 100%),
        rgba(21, 46, 32, .28);
      backdrop-filter: blur(8px);
    }

    .login-prompt-card {
      width: min(440px, 100%);
      background: rgba(255, 255, 255, .94);
      border: 1px solid rgba(193, 222, 197, .92);
      border-radius: 28px;
      box-shadow: 0 26px 80px rgba(35, 72, 50, .24);
      padding: 28px;
      text-align: center;
      position: relative;
      overflow: hidden;
    }

    .login-prompt-card::before {
      content: "";
      position: absolute;
      width: 240px;
      height: 240px;
      border-radius: 999px;
      right: -110px;
      top: -130px;
      background: conic-gradient(from 220deg, rgba(15, 122, 79, .04), rgba(15, 122, 79, .18), rgba(245, 191, 64, .2), rgba(15, 122, 79, .04));
    }

    .login-prompt-title {
      position: relative;
      margin: 0 0 8px;
      color: #21352b;
      font-size: 22px;
      font-weight: 900;
    }

    .login-prompt-text {
      position: relative;
      margin: 0 auto 18px;
      color: #65746b;
      line-height: 1.45;
      max-width: 340px;
      font-size: 14px;
    }

    .login-prompt-note {
      position: relative;
      background: #eef8f1;
      border: 1px solid #cae8d4;
      color: #244f35;
      border-radius: 16px;
      padding: 12px;
      font-size: 13px;
      font-weight: 800;
      line-height: 1.35;
      margin-bottom: 18px;
    }

    .login-prompt-actions {
      position: relative;
      display: flex;
      gap: 10px;
      justify-content: center;
      flex-wrap: wrap;
    }

    .operator-initials-input {
      position: relative;
      width: min(220px, 100%);
      margin: 0 auto 14px;
      border: 1px solid #b7d8bf;
      border-radius: 16px;
      background: #fbfdfb;
      color: #21352b;
      font-size: 26px;
      font-weight: 900;
      letter-spacing: .18em;
      text-align: center;
      padding: 14px 16px;
      text-transform: uppercase;
      outline: none;
      box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 12px 28px rgba(40, 87, 58, .08);
    }

    .operator-initials-input:focus {
      border-color: #2f9b66;
      box-shadow: 0 0 0 4px rgba(47, 155, 102, .12), 0 14px 30px rgba(40, 87, 58, .12);
    }

    .operator-prompt-overlay {
      position: fixed;
      inset: 0;
      z-index: 9998;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 22px;
      background: rgba(245, 247, 244, .78);
      backdrop-filter: blur(5px);
    }

    .operator-prompt-card {
      width: min(430px, 100%);
      background: #ffffff;
      border: 1px solid #dfe6dd;
      border-radius: 22px;
      box-shadow: 0 18px 46px rgba(38, 51, 45, .14);
      padding: 24px;
      text-align: left;
    }

    .operator-prompt-badge {
      width: 72px;
      height: 54px;
      border-radius: 14px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: #ffffff;
      margin-bottom: 14px;
      border: 1px solid #cae8d4;
      box-shadow: 0 8px 20px rgba(38, 81, 58, .08);
      overflow: hidden;
    }

    .operator-prompt-title {
      margin: 0 0 8px;
      color: #21352b;
      font-size: 21px;
      font-weight: 900;
    }

    .operator-prompt-text {
      margin: 0 0 16px;
      color: #5f6f66;
      line-height: 1.45;
      font-size: 14px;
      font-weight: 700;
    }

    .operator-prompt-note {
      background: #f7faf6;
      border: 1px solid #dfe6dd;
      color: #4b5d52;
      border-radius: 14px;
      padding: 10px 12px;
      font-size: 12px;
      font-weight: 800;
      line-height: 1.35;
      margin: 0 0 16px;
    }

    .operator-prompt-actions {
      display: flex;
      gap: 10px;
      justify-content: flex-end;
      flex-wrap: wrap;
    }

    #content {
      display: flex;
      flex-direction: column;
      flex: 1;
      min-height: 0;
    }

    .page-tabs {
      display: flex;
      gap: 8px;
      margin-bottom: 16px;
      flex-shrink: 0;
      padding: 8px;
      border: 1px solid var(--line);
      border-radius: 22px;
      background: rgba(255,255,255,.72);
      box-shadow: var(--shadow-sm);
      backdrop-filter: blur(12px);
      overflow-x: auto;
      scrollbar-width: thin;
    }

    .tab-btn {
      background: transparent;
      color: #46564d;
      border: 1px solid transparent;
      white-space: nowrap;
      border-radius: 16px;
      padding: 10px 13px;
    }

    .tab-btn:hover {
      background: rgba(15, 122, 79, .07);
      color: var(--brand);
      box-shadow: none;
    }

    .tab-btn.active {
      background: linear-gradient(135deg, #0f7a4f, #209b65);
      color: white;
      border-color: rgba(15, 122, 79, .16);
      box-shadow: 0 10px 22px rgba(15, 122, 79, .2);
    }

    .tab-with-action {
      display: inline-flex;
      gap: 4px;
      align-items: stretch;
    }

    .tab-refresh-btn {
      width: 36px;
      min-width: 36px;
      height: 36px;
      padding: 0;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: rgba(255,255,255,.72);
      color: var(--brand);
      border: 1px solid var(--line);
      border-radius: 999px;
      box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 4px 12px rgba(38, 81, 58, .07);
      transition: background .16s ease, border-color .16s ease, transform .16s ease, box-shadow .16s ease;
    }

    .tab-refresh-btn:hover {
      background: #e9f5ec;
      border-color: #9cc7aa;
      transform: translateY(-1px);
      box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 7px 16px rgba(38, 81, 58, .11);
    }

    .tab-refresh-btn:active {
      transform: translateY(0);
      box-shadow: inset 0 1px 3px rgba(38, 81, 58, .14), 0 3px 8px rgba(38, 81, 58, .08);
    }

    .tab-refresh-btn svg {
      width: 18px;
      height: 18px;
      display: block;
      fill: none;
      stroke: currentColor;
      stroke-width: 2.25;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .settings-tab {
      width: 42px;
      min-width: 42px;
      padding: 9px 10px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }

    .settings-tab svg {
      width: 18px;
      height: 18px;
      display: block;
      fill: currentColor;
    }

    .topbar .settings-tab {
      background: rgba(255,255,255,.72);
      color: var(--text);
      border: 1px solid var(--line);
    }

    .topbar .settings-tab.active {
      background: #0f7a4f;
      color: white;
      border-color: #0f7a4f;
    }

    .summary {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 14px;
      margin-bottom: 16px;
    }

    .task-summary {
      grid-template-columns: repeat(2, minmax(220px, 280px));
      justify-content: center;
    }

    .summary-card {
      background:
        linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,252,247,.92));
      border: 1px solid var(--line);
      border-radius: 20px;
      padding: 16px;
      box-shadow: var(--shadow-sm);
      position: relative;
      overflow: hidden;
    }

    .summary-card::before {
      content: "";
      position: absolute;
      inset: 0 auto 0 0;
      width: 4px;
      background: linear-gradient(180deg, var(--brand), rgba(245,191,64,.65));
      opacity: .72;
    }

    .summary-label {
      color: var(--muted);
      font-size: 12px;
      font-weight: 950;
      text-transform: uppercase;
      letter-spacing: .08em;
      margin-bottom: 6px;
    }

    .summary-value {
      font-size: clamp(24px, 3vw, 34px);
      font-weight: 950;
      color: var(--text);
      letter-spacing: -.04em;
    }

    .summary-note {
      color: var(--muted);
      font-size: 12px;
      margin-top: 4px;
      font-weight: 700;
    }

    .section-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin: 4px 0 12px;
      gap: 14px;
    }

    .section-title {
      margin: 0;
      font-size: 15px;
      font-weight: 950;
      color: var(--text);
      text-transform: uppercase;
      letter-spacing: .08em;
    }

    .scroll-note {
      color: var(--muted);
      font-size: 12px;
      font-weight: 800;
    }

    .task-list {
      overflow-y: auto;
      padding-right: 6px;
      flex: 1;
      min-height: 360px;
    }

    .inventory-search-panel {
      display: flex;
      flex-direction: column;
      gap: 14px;
      min-height: 0;
      flex: 1;
    }

    .inventory-search-box {
      width: 100%;
      border: 1px solid var(--line);
      border-radius: 18px;
      padding: 15px 16px;
      font-size: 14px;
      outline: none;
      background: rgba(255,255,255,.9);
      box-shadow: var(--shadow-sm);
      font-family: inherit;
      font-weight: 750;
    }

    .inventory-search-box:focus {
      border-color: #0f7a4f;
      box-shadow: 0 0 0 3px rgba(15, 122, 79, .12);
    }

    .inventory-results {
      overflow-y: auto;
      flex: 1;
      min-height: 430px;
      padding-right: 6px;
    }

    .inventory-row {
      display: grid;
      grid-template-columns: 1.4fr .8fr .7fr .45fr;
      gap: 10px;
      align-items: center;
      background: rgba(255,255,255,.9);
      border: 1px solid var(--line);
      border-radius: 18px;
      padding: 14px 16px;
      margin-bottom: 10px;
      box-shadow: var(--shadow-sm);
    }

    .inventory-product {
      font-weight: 900;
      color: var(--text);
      line-height: 1.25;
    }

    .inventory-meta {
      color: var(--muted);
      font-size: 12px;
      line-height: 1.35;
      margin-top: 3px;
    }

    .inventory-pill {
      justify-self: start;
      border-radius: 999px;
      background: rgba(238,243,238,.9);
      color: #334239;
      padding: 5px 9px;
      font-size: 12px;
      font-weight: 800;
    }

    .inventory-pill.shelf {
      background: rgba(218, 247, 226, .95);
      border: 1px solid rgba(15, 122, 79, .18);
      color: var(--brand);
    }

    .inventory-pill.vault {
      background: rgba(255, 239, 198, .96);
      border: 1px solid rgba(173, 115, 24, .22);
      color: #8a5a08;
    }

    .inventory-qty {
      justify-self: end;
      font-weight: 900;
      font-size: 18px;
      color: var(--brand);
    }

    .problem {
      background: rgba(255,255,255,.92);
      border: 1px solid var(--line);
      border-radius: 24px;
      margin-bottom: 16px;
      overflow: hidden;
      box-shadow: var(--shadow-sm);
      position: relative;
    }

    .problem::before {
      content: "";
      position: absolute;
      inset: 0 auto 0 0;
      width: 5px;
      background: linear-gradient(180deg, rgba(15,122,79,.8), rgba(245,191,64,.65));
      opacity: .62;
    }

    .problem-header {
      padding: 18px 20px;
      border-bottom: 1px solid rgba(36, 73, 52, .08);
      display: flex;
      justify-content: space-between;
      gap: 18px;
      align-items: flex-start;
      background: linear-gradient(180deg, rgba(255,255,255,.86), rgba(248,252,247,.66));
    }

    .rank {
      color: var(--brand);
      font-size: 12px;
      font-weight: 950;
      text-transform: uppercase;
      letter-spacing: .09em;
      margin-bottom: 6px;
    }

    .product {
      font-size: clamp(18px, 2.2vw, 22px);
      line-height: 1.25;
      font-weight: 950;
      color: var(--text);
      letter-spacing: -.02em;
    }

    .product-subtitle {
      margin-top: 5px;
      color: var(--muted);
      font-size: 12px;
      font-weight: 850;
      text-transform: uppercase;
      letter-spacing: .06em;
    }

    .status-pill {
      white-space: nowrap;
      border-radius: 999px;
      padding: 7px 11px;
      font-size: 12px;
      font-weight: 950;
      background: rgba(255, 244, 221, .92);
      color: #8a5a00;
      border: 1px solid rgba(213, 148, 29, .28);
      box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
    }

    .status-pill.high {
      background: #ffe9e6;
      color: #a33122;
      border-color: #f1b4ac;
    }

    .status-pill.medium {
      background: #fff4dd;
      color: #8a5a00;
      border-color: #f1d38c;
    }

    .problem-body {
      padding: 18px 20px 20px;
    }

    .numbers {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 10px;
      margin-bottom: 16px;
    }

    .number-box {
      background: linear-gradient(180deg, rgba(247,250,246,.95), rgba(255,255,255,.88));
      border: 1px solid var(--line);
      border-radius: 16px;
      padding: 12px;
    }

    .number-label {
      color: var(--muted);
      font-size: 12px;
      font-weight: 950;
      letter-spacing: .05em;
      text-transform: uppercase;
      margin-bottom: 5px;
    }

    .number-value {
      font-size: 22px;
      font-weight: 950;
      color: var(--text);
    }

    .instruction {
      background: rgba(238, 248, 241, .86);
      border: 1px solid rgba(15, 122, 79, .16);
      color: #244f35;
      border-radius: 16px;
      padding: 12px;
      font-size: 14px;
      line-height: 1.4;
      margin-bottom: 12px;
      font-weight: 700;
    }

    .new-sku-warning {
      background: rgba(255, 248, 232, .94);
      border-color: rgba(213, 148, 29, .28);
      color: #76520a;
      font-weight: 900;
    }

    .multi-sku-note {
      background: rgba(255, 248, 232, .84);
      border-color: rgba(213, 148, 29, .22);
      color: #6f510f;
      font-weight: 850;
    }

    .fit-rest-note {
      background: rgba(237, 248, 255, .9);
      border-color: rgba(29, 111, 145, .22);
      color: #1d5570;
      font-weight: 900;
    }

    .new-sku-required-action {
      border: 1px solid #f0c977;
      border-radius: 16px;
      background: linear-gradient(135deg, #fff8e8, #fffdf7);
      color: #6f4b05;
      padding: 14px;
      margin-bottom: 12px;
      box-shadow: 0 8px 20px rgba(111, 75, 5, .08);
    }

    .new-sku-required-title {
      font-size: 13px;
      font-weight: 950;
      text-transform: uppercase;
      letter-spacing: .08em;
      margin-bottom: 5px;
    }

    .new-sku-required-text {
      font-size: 13px;
      line-height: 1.45;
      margin-bottom: 10px;
    }

    .vault-sticker-card {
      position: relative;
      overflow: hidden;
    }

    .vault-sticker-card::before {
      content: '';
      position: absolute;
      inset: 0;
      background: radial-gradient(circle at top right, rgba(47, 155, 102, .14), transparent 38%);
      pointer-events: none;
    }

    .vault-sticker-card > * {
      position: relative;
      z-index: 1;
    }

    .modal-close-x {
      position: absolute;
      top: 14px;
      right: 14px;
      z-index: 2;
      display: grid;
      place-items: center;
      width: 34px;
      height: 34px;
      border: 1px solid rgba(36, 73, 52, .12);
      border-radius: 999px;
      background: rgba(255,255,255,.78);
      color: var(--muted);
      font-size: 22px;
      line-height: 0;
      cursor: pointer;
      box-shadow: 0 8px 18px rgba(36, 73, 52, .08);
      padding: 0 0 2px;
    }

    .modal-close-x:hover {
      color: var(--text);
      background: #fff;
      border-color: rgba(36, 73, 52, .2);
    }

    .sku {
      color: var(--muted);
      font-size: 12px;
      line-height: 1.55;
      margin-bottom: 12px;
      word-break: break-word;
      background: rgba(246,250,245,.72);
      border: 1px solid rgba(36, 73, 52, .08);
      border-radius: 14px;
      padding: 10px 12px;
    }

    .move-log-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 10px;
      margin: 12px 0;
    }

    .velocity-metric-grid {
      grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .admin-snapshot-grid {
      grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .admin-chart-wrap {
      width: 100%;
      overflow-x: auto;
      border: 1px solid var(--line);
      border-radius: 14px;
      background: #f8faf7;
      padding: 8px;
    }

    .admin-chart-controls {
      display: flex;
      flex-wrap: wrap;
      align-items: end;
      gap: 10px;
      margin-bottom: 12px;
    }

    .admin-chart-controls label {
      display: grid;
      gap: 5px;
      color: var(--muted);
      font-size: 11px;
      font-weight: 800;
      letter-spacing: .08em;
      text-transform: uppercase;
    }

    .admin-chart-controls input {
      height: 38px;
      border: 1px solid var(--line);
      border-radius: 12px;
      background: #fff;
      color: var(--ink);
      padding: 0 10px;
      font: inherit;
      min-width: 140px;
    }

    .admin-time-picker {
      border: 1px solid var(--line);
      border-radius: 18px;
      background: linear-gradient(180deg, #ffffff, #f6f8f5);
      padding: 9px 10px 10px;
      box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
    }

    .admin-time-picker-label {
      color: var(--muted);
      font-size: 11px;
      font-weight: 900;
      letter-spacing: .08em;
      text-transform: uppercase;
      margin: 0 0 6px 2px;
    }

    .admin-time-wheel-row {
      display: inline-grid;
      grid-template-columns: minmax(112px, 1fr) auto minmax(112px, 1fr);
      gap: 8px;
      align-items: center;
    }

    .admin-time-wheel {
      appearance: none;
      -webkit-appearance: none;
      height: 44px;
      min-width: 118px;
      border: 1px solid rgba(36, 73, 52, .14);
      border-radius: 14px;
      background:
        linear-gradient(180deg, rgba(255,255,255,.92), rgba(245,248,244,.92)),
        #fff;
      color: var(--ink);
      font-size: 17px;
      font-weight: 900;
      text-align: center;
      text-align-last: center;
      padding: 0 28px 0 12px;
      box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 1px 2px rgba(20, 35, 28, .04);
      cursor: pointer;
    }

    .admin-time-divider {
      color: var(--muted);
      font-size: 12px;
      font-weight: 900;
      text-transform: uppercase;
    }

    .admin-snapshot-lists {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 12px;
      margin-top: 14px;
    }

    .admin-snapshot-list {
      border: 1px solid var(--line);
      border-radius: 16px;
      background: #fff;
      padding: 12px;
    }

    .admin-snapshot-list-title {
      color: var(--muted);
      font-size: 11px;
      font-weight: 900;
      letter-spacing: .08em;
      text-transform: uppercase;
      margin-bottom: 8px;
    }

    .admin-ranked-list {
      margin: 0;
      padding-left: 20px;
      display: grid;
      gap: 8px;
    }

    .admin-ranked-list li {
      color: var(--text);
      font-weight: 850;
    }

    .admin-ranked-name {
      display: block;
      line-height: 1.25;
    }

    .admin-ranked-value,
    .admin-empty-note,
    .admin-note-list {
      color: var(--muted);
      font-size: 12px;
      font-weight: 750;
      line-height: 1.4;
    }

    .admin-note-list {
      display: grid;
      gap: 7px;
    }

    .admin-productivity-chart {
      display: block;
      width: 100%;
      min-width: 680px;
      height: auto;
    }

    .admin-chart-axis {
      stroke: rgba(36, 73, 52, .2);
      stroke-width: 1;
    }

    .admin-chart-line {
      fill: none;
      stroke-width: 4;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .admin-chart-line.tasks {
      stroke: #176b45;
    }

    .admin-chart-line.usage {
      stroke: #7b6a32;
      stroke-dasharray: 8 8;
    }

    .admin-chart-points circle {
      fill: #176b45;
      stroke: #fff;
      stroke-width: 2;
    }

    .admin-chart-label {
      fill: var(--muted);
      font-size: 12px;
      font-weight: 800;
    }

    .admin-chart-legend {
      display: flex;
      flex-wrap: wrap;
      gap: 10px 14px;
      margin-top: 12px;
      color: var(--muted);
      font-size: 12px;
      font-weight: 800;
    }

    .admin-chart-legend span {
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }

    .admin-chart-legend i {
      width: 18px;
      height: 4px;
      border-radius: 999px;
      display: inline-block;
      background: #176b45;
    }

    .admin-chart-legend i.usage {
      background: #7b6a32;
    }

    .automation-running-card {
      --automation-progress: 0%;
      position: relative;
      overflow: hidden;
      border-color: rgba(47, 155, 102, .22);
    }

    .automation-running-card > * {
      position: relative;
      z-index: 1;
    }

    .automation-running-card::after {
      content: none;
    }

    .automation-complete-card {
      border-color: rgba(47, 155, 102, .42);
      background:
        radial-gradient(circle at 92% 12%, rgba(47, 155, 102, .1), transparent 34%),
        linear-gradient(180deg, rgba(247, 255, 249, .96), rgba(255,255,255,.98));
      box-shadow: 0 14px 34px rgba(47, 155, 102, .12);
      animation: automationCompleteSettle .28s ease-out both;
    }

    .task-completing-card {
      position: relative;
      overflow: hidden;
      border-color: rgba(47, 155, 102, .44);
      background:
        radial-gradient(circle at 90% 14%, rgba(47, 155, 102, .18), transparent 36%),
        radial-gradient(circle at 8% 85%, rgba(245, 191, 64, .12), transparent 34%),
        linear-gradient(180deg, rgba(246, 255, 249, .98), rgba(255,255,255,.96));
      box-shadow: 0 18px 42px rgba(47, 155, 102, .18);
      transform-origin: top center;
      animation: taskCompleteExit 1.3s cubic-bezier(.18, .88, .22, 1) forwards;
    }

    .task-completing-card::after {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
      background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,.1) 24%, rgba(255,255,255,.72) 42%, rgba(215, 255, 229, .45) 55%, transparent 76%);
      transform: translateX(-120%);
      animation: taskCompleteSweep .72s ease-out .1s both;
    }

    .automation-login-required-card {
      border-color: rgba(138, 31, 31, .22);
    }

    .automation-progress-copy {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      color: var(--text);
      font-size: 14px;
      font-weight: 900;
      margin-bottom: 10px;
    }

    .automation-progress-copy span {
      color: #0f7a4f;
      font-variant-numeric: tabular-nums;
      white-space: nowrap;
    }

    .automation-complete-card::before {
      content: '';
      display: block;
      position: absolute;
      inset: 0;
      pointer-events: none;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,.72), transparent);
      transform: translateX(-120%);
      animation: automationCompleteShine .9s ease-out .12s forwards;
      z-index: 2;
    }

    .automation-complete-banner {
      display: inline-flex;
      align-items: center;
      gap: 9px;
      margin-bottom: 12px;
      color: #0f7a4f;
      font-weight: 950;
      letter-spacing: -.01em;
    }

    .task-complete-banner {
      display: inline-flex;
      align-items: center;
      gap: 9px;
      margin-bottom: 12px;
      color: #0f7a4f;
      font-weight: 950;
      letter-spacing: -.01em;
      animation: taskCompleteCopySettle .42s ease-out both;
    }

    .automation-complete-check {
      display: inline-grid;
      place-items: center;
      width: 28px;
      height: 28px;
      border-radius: 999px;
      color: #fff;
      background: #0f7a4f;
      box-shadow: 0 10px 22px rgba(47, 155, 102, .28);
      animation: automationCheckSettle .32s ease-out .08s both;
    }

    .task-complete-check {
      display: inline-grid;
      place-items: center;
      width: 30px;
      height: 30px;
      border-radius: 999px;
      color: #fff;
      background: #0f7a4f;
      box-shadow: 0 10px 22px rgba(47, 155, 102, .28);
      animation: taskCompleteCheckPop .56s cubic-bezier(.16, 1.25, .28, 1) .04s both;
    }

    @keyframes automationCompleteSettle {
      0% {
        opacity: .86;
        transform: translateY(4px);
      }
      100% {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @keyframes automationCheckSettle {
      0% {
        opacity: 0;
        transform: scale(.86);
      }
      100% {
        opacity: 1;
        transform: scale(1);
      }
    }

    @keyframes automationCompleteShine {
      to { transform: translateX(120%); }
    }

    @keyframes taskCompleteExit {
      0% {
        opacity: 1;
        transform: translateY(0) scale(1);
        max-height: 680px;
        margin-bottom: 16px;
      }
      28% {
        opacity: 1;
        transform: translateY(-3px) scale(1.012);
        max-height: 680px;
        margin-bottom: 16px;
      }
      62% {
        opacity: 1;
        transform: translateY(-1px) scale(.998);
        max-height: 680px;
        margin-bottom: 16px;
      }
      100% {
        opacity: 0;
        transform: translateY(-18px) scale(.975);
        max-height: 0;
        margin-bottom: 0;
      }
    }

    @keyframes taskCompleteSweep {
      0% { opacity: 0; transform: translateX(-120%); }
      18% { opacity: 1; }
      100% { opacity: 0; transform: translateX(120%); }
    }

    @keyframes taskCompleteCheckPop {
      0% {
        opacity: 0;
        transform: scale(.35) rotate(-18deg);
      }
      58% {
        opacity: 1;
        transform: scale(1.18) rotate(4deg);
      }
      100% {
        opacity: 1;
        transform: scale(1) rotate(0);
      }
    }

    @keyframes taskCompleteCopySettle {
      0% {
        opacity: 0;
        transform: translateY(5px);
      }
      100% {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .aic-achievements {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 14px;
      margin-bottom: 18px;
    }

    .aic-achievement-group {
      background: rgba(255,255,255,.74);
      border: 1px solid var(--line);
      border-radius: 20px;
      box-shadow: var(--shadow-soft);
      padding: 14px;
    }

    .aic-achievement-title {
      color: var(--muted);
      font-size: 12px;
      font-weight: 900;
      letter-spacing: .08em;
      text-transform: uppercase;
      margin-bottom: 10px;
    }

    .aic-achievement-card {
      background: linear-gradient(180deg, rgba(245,251,243,.95), rgba(255,255,255,.86));
      border: 1px solid rgba(36, 73, 52, .1);
      border-radius: 16px;
      padding: 12px;
    }

    .aic-achievement-card + .aic-achievement-card {
      margin-top: 10px;
    }

    .aic-achievement-line {
      color: var(--text);
      font-size: 15px;
      line-height: 1.35;
    }

    .aic-achievement-meta,
    .aic-achievement-time,
    .aic-achievement-empty {
      color: var(--muted);
      font-size: 12px;
      line-height: 1.4;
      margin-top: 6px;
    }

    .move-log-metric {
      background: linear-gradient(180deg, rgba(245,251,243,.95), rgba(255,255,255,.84));
      border: 1px solid var(--line);
      border-radius: 16px;
      padding: 12px;
    }

    .move-log-label {
      color: var(--muted);
      font-size: 11px;
      font-weight: 900;
      letter-spacing: .05em;
      text-transform: uppercase;
      margin-bottom: 4px;
    }

    .move-log-value {
      color: var(--text);
      font-size: 22px;
      font-weight: 950;
      line-height: 1.1;
    }

    .move-date-nav {
      display: grid;
      grid-template-columns: auto minmax(220px, 1fr) auto auto;
      gap: 10px;
      align-items: center;
      margin-bottom: 14px;
    }

    .move-date-label {
      border: 1px solid var(--line);
      border-radius: 14px;
      background: rgba(255,255,255,.9);
      color: var(--text);
      font-size: 16px;
      font-weight: 950;
      padding: 12px 14px;
      text-align: center;
      cursor: pointer;
      box-shadow: var(--shadow-sm);
    }

    .move-date-hidden {
      position: absolute;
      width: 1px;
      height: 1px;
      opacity: 0;
      pointer-events: none;
    }

    @media (max-width: 720px) {
      .move-log-grid {
        grid-template-columns: 1fr;
      }

      .move-date-nav {
        grid-template-columns: auto 1fr auto;
      }

      .move-date-nav .all-dates-button {
        grid-column: 1 / -1;
      }
    }

    .task-filter-toggle {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      color: var(--text);
      font-size: 13px;
      font-weight: 900;
      white-space: nowrap;
      background: rgba(255,255,255,.72);
      border: 1px solid var(--line);
      border-radius: 999px;
      padding: 9px 12px;
      box-shadow: var(--shadow-sm);
    }

    .task-filter-toggle input {
      width: 16px;
      height: 16px;
      accent-color: #0f7a4f;
    }

    .velocity-sort-select {
      border: 0;
      background: transparent;
      color: var(--text);
      font: inherit;
      font-weight: 900;
      outline: none;
      cursor: pointer;
    }

    .resolve-row {
      display: flex;
      gap: 10px;
      align-items: center;
      flex-wrap: wrap;
      padding-top: 2px;
    }

    .capacity-edit-row {
      margin-bottom: 12px;
    }

    .secondary-action-stack {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .capacity-input {
      flex: 1;
      min-width: 220px;
      border: 1px solid var(--line-strong);
      border-radius: 14px;
      padding: 12px 13px;
      font-size: 14px;
      outline: none;
      background: rgba(255,255,255,.92);
      color: var(--text);
      box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
    }

    .capacity-input:focus {
      border-color: #0f7a4f;
      box-shadow: 0 0 0 3px rgba(15, 122, 79, .12);
    }

    .resolve-btn {
      background: linear-gradient(135deg, #0f7a4f, #1d9c64);
      color: white;
      min-width: 145px;
      border: 1px solid rgba(15, 122, 79, .2);
      box-shadow: 0 12px 24px rgba(15, 122, 79, .2);
    }

    .empty,
    .loading {
      background: rgba(255,255,255,.88);
      border: 1px solid var(--line);
      border-radius: 26px;
      padding: 42px;
      text-align: center;
      color: var(--muted);
      box-shadow: var(--shadow-sm);
    }

    .initial-load-copy {
      max-width: 640px;
      margin: 0 auto;
      text-align: left;
    }

    .initial-load-copy h2 {
      margin: 0 0 10px;
      color: #21352b;
      font-size: 22px;
    }

    .initial-load-copy p {
      margin: 0 0 14px;
      color: #5f6f66;
      line-height: 1.5;
      font-weight: 700;
    }

    .initial-load-steps {
      display: grid;
      gap: 8px;
      margin-top: 14px;
    }

    .initial-load-step {
      display: flex;
      gap: 10px;
      align-items: flex-start;
      color: #43564b;
      font-size: 13px;
      font-weight: 800;
    }

    .initial-load-step::before {
      content: "";
      width: 9px;
      height: 9px;
      border-radius: 999px;
      background: #0f7a4f;
      margin-top: 5px;
      flex: 0 0 auto;
      box-shadow: 0 0 0 4px rgba(15, 122, 79, .10);
    }

    .empty h2 {
      margin: 0 0 8px;
      color: #21352b;
    }

    .celebration-empty {
      position: relative;
      overflow: hidden;
      padding: 48px 42px;
      background:
        radial-gradient(circle at 18% 18%, rgba(245, 191, 64, .18), transparent 30%),
        radial-gradient(circle at 82% 12%, rgba(23, 149, 94, .16), transparent 28%),
        linear-gradient(135deg, #ffffff 0%, #f5fbf3 100%);
      border: 1px solid rgba(188, 218, 190, .95);
    }

    .celebration-empty::before,
    .celebration-empty::after {
      content: "";
      position: absolute;
      width: 220px;
      height: 220px;
      border-radius: 999px;
      background: conic-gradient(from 180deg, rgba(15, 122, 79, .14), rgba(245, 191, 64, .18), transparent 70%);
      opacity: .55;
      z-index: 0;
    }

    .celebration-empty::before {
      left: -90px;
      bottom: -110px;
    }

    .celebration-empty::after {
      right: -95px;
      top: -115px;
      transform: rotate(25deg);
    }

    .celebration-content {
      position: relative;
      z-index: 1;
      max-width: 580px;
      margin: 0 auto;
    }

    .celebration-badge {
      width: 82px;
      height: 82px;
      border-radius: 28px;
      margin: 0 auto 18px;
      display: grid;
      place-items: center;
      color: #ffffff;
      font-size: 38px;
      font-weight: 900;
      background: linear-gradient(135deg, #0f7a4f, #1da66f);
      box-shadow: 0 18px 36px rgba(15, 122, 79, .22);
    }

    .celebration-kicker {
      margin-bottom: 8px;
      color: #0f7a4f;
      font-size: 12px;
      font-weight: 900;
      letter-spacing: .14em;
      text-transform: uppercase;
    }

    .celebration-empty h2 {
      margin: 0 0 10px;
      color: #21352b;
      font-size: 28px;
      line-height: 1.15;
    }

    .celebration-empty p {
      margin: 0;
      color: #607367;
      font-size: 15px;
      line-height: 1.55;
    }

    .celebration-stats {
      margin-top: 22px;
      display: flex;
      justify-content: center;
      gap: 10px;
      flex-wrap: wrap;
    }

    .celebration-pill {
      border: 1px solid rgba(15, 122, 79, .14);
      border-radius: 999px;
      padding: 8px 12px;
      background: rgba(255,255,255,.74);
      color: #315340;
      font-size: 12px;
      font-weight: 800;
    }

    .debug-box {
      text-align: left;
      white-space: pre-wrap;
      font-size: 11px;
      max-height: 420px;
      overflow: auto;
      background: #f2f5f1;
      border: 1px solid #dbe4d9;
      padding: 12px;
      border-radius: 12px;
      color: #26332d;
    }

    .toast {
      position: fixed;
      right: 24px;
      bottom: 24px;
      background: #21352b;
      color: white;
      padding: 13px 16px;
      border-radius: 12px;
      font-size: 13px;
      font-weight: 800;
      box-shadow: 0 12px 30px rgba(0,0,0,.18);
      display: none;
      z-index: 10000;
    }

    .aic-achievement-popup {
      align-items: center;
      background: linear-gradient(135deg, #0f2f20, #145f3a 58%, #1f8a52);
      border: 1px solid rgba(195, 255, 216, .22);
      border-radius: 18px;
      bottom: 78px;
      box-shadow: 0 20px 54px rgba(15, 47, 32, .32);
      color: #ffffff;
      gap: 13px;
      max-width: min(420px, calc(100vw - 32px));
      padding: 15px 17px;
      position: fixed;
      right: 24px;
      transform: translateX(18px) scale(.98);
      opacity: 0;
      z-index: 10001;
    }

    .aic-achievement-popup.show {
      animation: aicAchievementIn .36s cubic-bezier(.16, 1, .3, 1) forwards;
    }

    .aic-achievement-popup.hide {
      animation: aicAchievementOut .32s ease-in forwards;
    }

    .aic-achievement-icon {
      align-items: center;
      background: rgba(255,255,255,.16);
      border: 2px solid rgba(215,255,226,.8);
      border-radius: 999px;
      display: flex;
      flex: 0 0 auto;
      font-size: 19px;
      font-weight: 950;
      height: 42px;
      justify-content: center;
      width: 42px;
    }

    .aic-achievement-popup-kicker {
      color: #c9f6d8;
      font-size: 11px;
      font-weight: 950;
      letter-spacing: .12em;
      text-transform: uppercase;
    }

    .aic-achievement-popup-title {
      font-size: 18px;
      font-weight: 950;
      letter-spacing: -.02em;
      margin-top: 2px;
    }

    .aic-achievement-popup-message {
      color: rgba(255,255,255,.88);
      font-size: 13px;
      font-weight: 750;
      margin-top: 2px;
    }

    @keyframes aicAchievementIn {
      from { opacity: 0; transform: translateX(22px) scale(.96); }
      to { opacity: 1; transform: translateX(0) scale(1); }
    }

    @keyframes aicAchievementOut {
      from { opacity: 1; transform: translateX(0) scale(1); }
      to { opacity: 0; transform: translateX(22px) scale(.96); }
    }

    .toggle {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 10px;
      border-radius: 10px;
      background: rgba(255,255,255,.65);
      border: 1px solid rgba(14, 28, 18, .12);
      font-size: 13px;
      user-select: none;
    }

    .toggle input {
      width: 14px;
      height: 14px;
      accent-color: #0f7a4f;
    }

    .test-panel {
      margin-top: 12px;
      padding: 12px;
      border-radius: 14px;
      background: rgba(255, 246, 219, .65);
      border: 1px solid rgba(147, 105, 0, .22);
    }

    .test-title {
      font-weight: 800;
      margin-bottom: 8px;
      color: #3a2a00;
    }

    .test-row {
      display: grid;
      grid-template-columns: 1fr 1fr auto;
      gap: 10px;
      align-items: center;
    }

    .test-input {
      width: 100%;
      padding: 10px 12px;
      border-radius: 12px;
      border: 1px solid rgba(14, 28, 18, .18);
      background: rgba(255,255,255,.9);
      font-size: 13px;
      outline: none;
    }

    .test-note {
      margin-top: 8px;
      font-size: 12px;
      color: rgba(58, 42, 0, .85);
      line-height: 1.3;
    }

    .status-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin: 0 0 16px;
      flex-wrap: wrap;
      padding: 10px 12px;
      background: rgba(255,255,255,.58);
      border: 1px solid var(--line);
      border-radius: 18px;
      box-shadow: var(--shadow-sm);
      backdrop-filter: blur(12px);
    }

    .status-copy {
      display: flex;
      align-items: center;
      gap: 9px;
      min-width: 0;
    }

    .status-dot {
      width: 10px;
      height: 10px;
      border-radius: 999px;
      background: var(--brand-2);
      box-shadow: 0 0 0 5px rgba(47, 155, 102, .12);
      flex: 0 0 auto;
    }

    .online-pill {
      border: 1px solid rgba(26, 121, 50, .18);
      border-radius: 999px;
      background: rgba(229, 250, 235, .86);
      color: #17642d;
      font-size: 12px;
      font-weight: 900;
      padding: 8px 11px;
      white-space: nowrap;
    }
  

.topbar .brand { min-width: 280px; }
.operator-control { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.62); padding: 6px 8px 6px 10px; color: var(--muted); font-size: 11px; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; }
.header-actions { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.dutchie-disconnected-banner { align-items: center; background: #b91c1c; border: 1px solid rgba(127, 29, 29, .32); border-radius: 16px; box-shadow: 0 12px 28px rgba(185, 28, 28, .18); color: #fff; display: flex; gap: 12px; justify-content: space-between; margin: 0 0 12px; padding: 12px 14px; }
.dutchie-disconnected-banner strong { font-size: 13px; font-weight: 950; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.dutchie-disconnected-banner span { flex: 1; font-size: 13px; font-weight: 750; line-height: 1.35; }
.dutchie-disconnected-banner button { background: #fff; border: 1px solid rgba(255, 255, 255, .65); color: #991b1b; box-shadow: none; white-space: nowrap; }
.demo-mode-indicator { align-items: center; border: 1px solid rgba(180, 83, 9, .26); border-radius: 999px; background: #fff7ed; color: #9a3412; font-size: 11px; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; padding: 8px 11px; box-shadow: 0 10px 24px rgba(180, 83, 9, .10); }
.demo-mode-card { border-color: rgba(180, 83, 9, .32) !important; background: #fffaf3 !important; }
.demo-mode-card .status-pill { background: #ffedd5; color: #9a3412; border-color: rgba(180, 83, 9, .22); }
.topbar input.operator-inline-input { width: 72px; border: 1px solid #b7d8bf; border-radius: 12px; background: #fbfdfb; color: #21352b; font-size: 14px; font-weight: 900; letter-spacing: .12em; text-align: center; padding: 10px 12px; text-transform: uppercase; outline: none; }
.topbar input.operator-inline-input:focus { border-color: #2f9b66; box-shadow: 0 0 0 4px rgba(47, 155, 102, .12); }
.auth-pill-button { appearance: none; cursor: pointer; }
.danger-action { color: #8a1f1f; border-color: rgba(138, 31, 31, .2); background: rgba(255, 242, 242, .86); }
.danger-action:hover { background: rgba(255, 231, 231, .96); }
.token-modal-overlay { position: fixed; inset: 0; z-index: 9998; display: none; align-items: center; justify-content: center; padding: 22px; background: rgba(245, 247, 244, .78); backdrop-filter: blur(5px); }
.token-modal-card { width: min(430px, 100%); background: #ffffff; border: 1px solid #dfe6dd; border-radius: 22px; box-shadow: 0 18px 46px rgba(38, 51, 45, .14); padding: 24px; }
.token-modal-card input { width: 100%; border: 1px solid #cedacf; border-radius: 10px; padding: 11px 12px; font-size: 14px; outline: none; background: #ffffff; color: #26332d; margin-top: 12px; }
.token-modal-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 16px; }

.dutchie-creds-error {
  margin-top: 12px;
  padding: 10px 13px;
  border-radius: 10px;
  background: rgba(196, 70, 55, 0.1);
  color: #b13a2c;
  font-size: 12.5px;
  font-weight: 600;
}
.dutchie-creds-fallback {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 6px 0 0;
  background: transparent;
  border: 0;
  color: #6b7a72;
  font-size: 12px;
  text-align: center;
  text-decoration: underline;
  cursor: pointer;
}
.dutchie-creds-fallback:hover { color: #26332d; }
.shift-end-card { position: relative; overflow: hidden; }
.shift-end-card::before { content: ""; position: absolute; inset: -80px -70px auto auto; width: 210px; height: 210px; border-radius: 999px; background: radial-gradient(circle, rgba(47,155,102,.15), rgba(245,191,64,.1) 48%, transparent 70%); pointer-events: none; }
.shift-end-card > * { position: relative; z-index: 1; }
.shift-end-input { width: 100%; border: 1px solid #cedacf; border-radius: 16px; padding: 14px 16px; font-size: 24px; font-weight: 950; letter-spacing: .08em; text-align: center; outline: none; background: #fbfdfb; color: #21352b; margin-top: 14px; }
.shift-end-input:focus { border-color: #2f9b66; box-shadow: 0 0 0 4px rgba(47, 155, 102, .12), 0 14px 30px rgba(40, 87, 58, .10); }
.operator-initials-card { position: relative; overflow: hidden; }
.operator-initials-card::before { content: ""; position: absolute; inset: -55% -25% auto auto; width: 260px; height: 260px; border-radius: 999px; background: radial-gradient(circle, rgba(47,155,102,.14), rgba(245,191,64,.10) 48%, transparent 70%); pointer-events: none; }
.operator-initials-card > * { position: relative; z-index: 1; }
.operator-initials-card .operator-prompt-badge { margin-bottom: 14px; }
.operator-prompt-badge span { position: relative; z-index: 2; font-size: 20px; font-weight: 950; letter-spacing: .09em; color: #0f7a4f; }
.operator-initials-modal-input { text-transform: uppercase; text-align: center; font-size: 24px !important; font-weight: 950; letter-spacing: .18em; padding: 14px 16px !important; border-radius: 16px !important; background: #fbfdfb !important; }
.operator-initials-modal-input:focus { border-color: #2f9b66 !important; box-shadow: 0 0 0 4px rgba(47, 155, 102, .12), 0 14px 30px rgba(40, 87, 58, .10); }
button.online-pill { font-family: inherit; }

/* Premium Cannavate product finish: calm brand depth without glossy excess. */
body {
  background:
    radial-gradient(circle at 12% 0%, rgba(42, 139, 98, .1), transparent 30%),
    radial-gradient(circle at 88% 8%, rgba(15, 74, 50, .08), transparent 28%),
    linear-gradient(180deg, #eef2ed 0%, #dfe6df 46%, #d5ddd5 100%);
}

.app-background {
  background:
    radial-gradient(circle at 16% 8%, rgba(47, 155, 102, .12), transparent 34%),
    radial-gradient(circle at 84% 12%, rgba(15, 74, 50, .08), transparent 30%),
    linear-gradient(180deg, #eef2ed 0%, #dfe6df 48%, #d3dcd3 100%);
}

.app-glow,
.app-grid,
.liquid-bg,
.liquid-blob,
.liquid-ripple,
.loading-card::before,
.login-prompt-card::before,
.shift-end-card::before,
.operator-initials-card::before,
.vault-sticker-card::before,
.problem::before,
.summary-card::before {
  display: none;
}

.topbar,
.page-tabs,
.summary-card,
.problem,
.inventory-row,
.inventory-search-box,
.token-modal-card,
.operator-prompt-card,
.login-prompt-card,
.loading-card,
.online-pill,
.operator-control {
  background: var(--premium-surface);
  border-color: var(--premium-border);
  box-shadow: var(--premium-shadow);
  backdrop-filter: blur(14px);
}

.topbar {
  border-radius: 26px;
  padding: 18px;
  position: sticky;
  overflow: hidden;
}

.topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(15,74,50,.08), transparent 36%, rgba(210,164,73,.1)),
    linear-gradient(180deg, rgba(255,255,255,.78), transparent 42%);
}

.topbar > * {
  position: relative;
  z-index: 1;
}

.page-tabs {
  border-radius: 20px;
  padding: 7px;
  box-shadow: 0 12px 30px rgba(18, 55, 37, .08);
}

.summary-card,
.problem {
  border-radius: 22px;
}

.problem-header,
.number-box,
.automation-complete-card,
.aic-achievement-card,
.velocity-row,
.sku,
.instruction,
.operator-prompt-note {
  background:
    linear-gradient(180deg, rgba(250,253,248,.94), rgba(255,255,255,.86));
  border-color: rgba(24, 76, 51, .12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}

.primary,
.tab-btn.active,
.topbar .settings-tab.active,
.resolve-btn {
  background:
    linear-gradient(135deg, var(--forest), var(--brand) 62%, #2a8b62);
  color: #fff;
  border-color: rgba(15, 74, 50, .22);
  box-shadow: 0 12px 28px rgba(15, 74, 50, .22), inset 0 1px 0 rgba(255,255,255,.16);
}

.primary:hover:not(:disabled),
.resolve-btn:hover:not(:disabled),
.tab-btn.active:hover {
  background:
    linear-gradient(135deg, #0d3e2a, #0f7a4f 62%, #25865c);
  box-shadow: 0 15px 34px rgba(15, 74, 50, .25), inset 0 1px 0 rgba(255,255,255,.18);
}

.secondary,
.tab-refresh-btn,
.topbar .settings-tab,
.subtle-action {
  background: rgba(255,255,255,.78);
  border-color: rgba(24, 76, 51, .14);
  box-shadow: 0 8px 18px rgba(18, 55, 37, .06), inset 0 1px 0 rgba(255,255,255,.74);
}

button:hover:not(:disabled),
.tab-refresh-btn:hover {
  transform: translateY(-1px);
}

.summary-value,
.product,
h1 {
  letter-spacing: -.02em;
}

.eyebrow,
.rank,
.summary-label,
.section-title,
.product-subtitle {
  letter-spacing: .04em;
}

.status-pill,
.inventory-pill {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.68);
}

.brand-mark {
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.25), transparent 34%),
    linear-gradient(135deg, #2a8b62 0%, var(--forest) 58%, #d2a449 120%);
  box-shadow: 0 16px 34px rgba(15, 74, 50, .22);
}

.loading-screen,
.login-prompt-overlay,
.token-modal-overlay,
.operator-prompt-overlay {
  background:
    radial-gradient(circle at 50% 36%, rgba(255,255,255,.76), rgba(233,244,235,.86) 48%, rgba(23,37,30,.2) 100%);
  backdrop-filter: blur(7px);
}

.loading-ring {
  background: conic-gradient(from 0deg, rgba(23, 107, 69, 0), rgba(23, 107, 69, .85), rgba(23, 107, 69, 0));
}

.automation-complete-card {
  border-color: rgba(23, 107, 69, .28);
  animation: automationCompleteSettle .28s ease-out both;
}

.task-completing-card {
  border-color: rgba(23, 107, 69, .28);
}

.automation-complete-check {
  background: var(--forest);
  box-shadow: 0 10px 22px rgba(15, 74, 50, .24);
}

.task-complete-check {
  background: var(--forest);
  box-shadow: 0 10px 22px rgba(15, 74, 50, .24);
}

.new-sku-required-action {
  background: #f8f7f2;
  border-color: rgba(126, 117, 96, .16);
  color: #39443d;
  box-shadow: 0 10px 24px rgba(21, 46, 32, .07);
}

.app-header h1 {
  color: var(--forest-deep);
}

.app-header .eyebrow {
  color: var(--forest);
}

.status-row {
  background: rgba(255,255,255,.72);
  border-color: rgba(24, 76, 51, .14);
  box-shadow: 0 12px 28px rgba(18, 55, 37, .08);
}

.summary-card::before,
.problem::before {
  display: none;
  background: linear-gradient(180deg, var(--forest), var(--brand) 54%, rgba(210,164,73,.82));
  opacity: .82;
}

.summary-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,.88), transparent);
}

.summary-value,
.number-value,
.inventory-qty,
.move-log-value {
  color: var(--forest-deep);
}

.problem {
  background: rgba(255,255,255,.97);
  border-color: rgba(24, 76, 51, .2);
  box-shadow: 0 16px 38px rgba(18, 55, 37, .11);
}

.problem-header {
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(244,249,242,.94));
  border-bottom-color: rgba(24, 76, 51, .13);
}

.task-reason-banner {
  display: grid;
  gap: 4px;
  margin: -18px -20px 16px;
  padding: 14px 20px 13px 26px;
  border: 0;
  border-bottom: 1px solid rgba(31, 49, 40, .16);
  border-left: 5px solid var(--color-primary);
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(231, 244, 235, .98), rgba(247, 251, 247, .86));
  color: var(--forest-deep);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.78), inset 0 -1px 0 rgba(15, 122, 79, .08);
  overflow: hidden;
  position: relative;
}

.task-reason-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--forest), var(--color-primary));
  opacity: 0;
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .34s cubic-bezier(.22, .72, .22, 1), opacity .2s ease;
  z-index: 0;
}

.task-reason-banner > * {
  position: relative;
  z-index: 1;
}

.task-reason-banner span {
  color: #0d5f3f;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.task-reason-banner strong {
  color: #17251e;
  font-size: 13px;
  font-weight: 920;
  line-height: 1.35;
}

.task-reason-banner.urgent {
  background: linear-gradient(180deg, rgba(255, 232, 226, .98), rgba(255, 247, 245, .9));
  border-bottom-color: rgba(220, 58, 42, .28);
  border-left-color: #dc3a2a;
}

.task-reason-banner.urgent span {
  color: #b72f23;
}

.task-reason-banner.watch {
  background: linear-gradient(180deg, rgba(255, 239, 219, .98), rgba(255, 250, 244, .9));
  border-bottom-color: rgba(242, 132, 32, .3);
  border-left-color: #f28420;
}

.task-reason-banner.watch span {
  color: #b95d12;
}

.task-reason-banner.sku {
  background: linear-gradient(180deg, rgba(237, 234, 248, .98), rgba(250, 249, 253, .9));
  border-bottom-color: rgba(116, 95, 166, .26);
  border-left-color: #7460a8;
}

.task-reason-banner.sku span {
  color: #594987;
}

.task-reason-banner.capacity {
  background: linear-gradient(180deg, rgba(223, 239, 255, .98), rgba(247, 251, 255, .9));
  border-bottom-color: rgba(42, 116, 194, .28);
  border-left-color: #2f7fd1;
}

.automation-running-card .task-reason-banner {
  background: linear-gradient(180deg, rgba(207, 237, 220, .98), rgba(220, 243, 230, .96));
  border-left-color: var(--color-primary);
  box-shadow: inset 0 0 0 1px rgba(15, 122, 79, .08);
}

.automation-running-card .task-reason-banner::after {
  background: linear-gradient(135deg, var(--forest), var(--color-primary));
  opacity: 1;
  transform: scaleX(var(--automation-progress-scale, 0));
  transition: transform .42s linear;
  will-change: transform;
}

.automation-running-card .task-reason-banner span,
.automation-running-card .task-reason-banner strong {
  color: #ffffff;
  text-shadow: 0 1px 1px rgba(15, 47, 32, .2);
}

.problem:hover,
.inventory-row:hover,
.summary-card:hover {
  border-color: rgba(15, 122, 79, .22);
  box-shadow: 0 18px 42px rgba(18, 55, 37, .13);
}

.inventory-search-box,
.capacity-input,
.test-input,
.token-modal-card input,
.shift-end-input,
.operator-initials-modal-input,
.topbar input.operator-inline-input {
  background: rgba(255,255,255,.86);
  border-color: rgba(24, 76, 51, .16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.78), 0 8px 18px rgba(18, 55, 37, .05);
}

.inventory-search-box:focus,
.capacity-input:focus,
.test-input:focus,
.token-modal-card input:focus,
.shift-end-input:focus,
.operator-initials-modal-input:focus,
.topbar input.operator-inline-input:focus {
  border-color: var(--brand);
  box-shadow: var(--focus-ring), 0 12px 28px rgba(18, 55, 37, .1);
}

.operator-control {
  background: rgba(255,255,255,.76);
  color: var(--forest);
}

.online-pill,
.inventory-pill.shelf {
  background: rgba(234, 246, 237, .95);
  border-color: rgba(15, 122, 79, .2);
  color: var(--forest);
}

.inventory-pill.vault,
.status-pill.medium {
  background: rgba(245, 243, 235, .95);
  border-color: rgba(126, 117, 96, .18);
  color: #4f5c54;
}

.aic-achievement-popup {
  background:
    radial-gradient(circle at 92% 8%, rgba(210,164,73,.3), transparent 34%),
    linear-gradient(135deg, #10251b, var(--forest) 58%, #1b7a52);
  border-color: rgba(232, 212, 158, .24);
  box-shadow: 0 22px 58px rgba(15, 47, 32, .38), inset 0 1px 0 rgba(255,255,255,.12);
}

.aic-achievement-icon {
  background: rgba(251, 247, 239, .13);
  border-color: rgba(232, 212, 158, .72);
}

.aic-achievement-popup-kicker {
  color: #ead69c;
}

/* SaaS dashboard polish: layout, controls, navigation, metrics, and task cards. */
.app {
  gap: var(--space-4);
  padding: var(--space-6) clamp(18px, 2.2vw, 34px);
}

.topbar {
  margin-bottom: 0;
  box-shadow: var(--elevation-shell);
}

.operator-shell {
  align-items: center;
  background: rgba(255,255,255,.72);
  border: 1px solid var(--color-border);
  border-radius: 22px;
  box-shadow: var(--elevation-nav);
  gap: var(--space-2);
  padding: var(--space-2);
  position: relative;
  overflow: hidden;
}

.operator-shell::before,
.page-tabs::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--brand-signature-border);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  opacity: .62;
}

.operator-control {
  background: transparent;
  border: 0;
  box-shadow: none;
  gap: var(--space-2);
  padding: 0;
}

.operator-role-chip,
.topbar input.operator-inline-input {
  align-items: center;
  background: var(--color-primary-soft);
  border: 1px solid rgba(15, 122, 79, .16);
  border-radius: 999px;
  color: var(--forest);
  display: inline-flex;
  font-size: 12px;
  font-weight: 950;
  height: 38px;
  justify-content: center;
  letter-spacing: .08em;
  padding: 0 13px;
  text-transform: uppercase;
}

.topbar input.operator-inline-input {
  width: 66px;
  background: #fff;
  color: var(--forest-deep);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

.header-actions {
  gap: var(--space-2);
}

.topbar .settings-tab,
.subtle-action {
  height: 38px;
  border-radius: 999px;
}

.refresh-action {
  min-width: 154px;
  height: 38px;
  border-radius: 999px;
}

.refresh-action.is-refreshing {
  cursor: wait;
  opacity: .9;
  position: relative;
}

.refresh-action.is-refreshing::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 0 0 4px rgba(255,255,255,.16);
  display: inline-block;
  animation: refreshPulse 1s ease-in-out infinite;
}

.status-row {
  margin: calc(var(--space-2) * -1) 0 var(--space-2);
  padding: 9px 12px;
  background: rgba(255,255,255,.56);
  border-color: rgba(31, 49, 40, .08);
  border-radius: 16px;
  box-shadow: var(--elevation-shell);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #2f9b66;
  box-shadow: 0 0 0 4px rgba(47, 155, 102, .1);
}

.status-row .subtitle {
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 750;
}

.online-pill {
  background: transparent;
  border-color: rgba(15, 122, 79, .14);
  box-shadow: none;
  color: var(--forest);
  font-size: 11px;
  padding: 6px 10px;
}

.page-tabs {
  gap: var(--space-1);
  margin-bottom: var(--space-4);
  padding: 6px;
  background: rgba(255,255,255,.72);
  border-color: rgba(31, 49, 40, .1);
  border-radius: 18px;
  box-shadow: var(--elevation-nav);
  position: relative;
  overflow: hidden;
}

.tab-btn {
  border-radius: 14px;
  color: #4d5e54;
  font-size: 13px;
  font-weight: 900;
  padding: 10px 13px;
  outline: none;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.tab-btn:hover {
  background: rgba(15, 122, 79, .08);
  color: var(--forest);
  transform: translateY(-1px);
}

.tab-btn:focus-visible {
  box-shadow: var(--brand-signature-focus);
  border-color: rgba(15, 122, 79, .26);
}

.tab-btn:active {
  transform: translateY(0);
}

.tab-btn.active {
  background: linear-gradient(135deg, #0f4a32, #0f7a4f);
  border-color: rgba(15, 74, 50, .26);
  box-shadow: 0 10px 22px rgba(15, 74, 50, .18);
  transform: translateY(-1px);
}

.tab-btn.active:hover {
  background: linear-gradient(135deg, #0d402b, #0d6f48);
  box-shadow: 0 12px 26px rgba(15, 74, 50, .2);
  transform: translateY(-1px);
}

.summary {
  gap: 10px;
  margin-bottom: 12px;
}

.task-summary {
  grid-template-columns: repeat(2, minmax(160px, 220px));
  justify-content: start;
}

.summary-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(249,252,248,.98));
  border-color: rgba(15, 122, 79, .2);
  border-radius: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.96),
    inset 0 -1px 0 rgba(15, 122, 79, .06),
    0 16px 36px rgba(21, 46, 32, .1);
  padding: 12px 14px;
  position: relative;
  overflow: hidden;
}

.summary-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--color-primary);
  opacity: .9;
}

.summary-card::after {
  content: "";
  position: absolute;
  inset: 3px 0 auto;
  height: 1px;
  background: rgba(255,255,255,.9);
  pointer-events: none;
}

.summary-label {
  color: var(--color-muted);
  font-size: 10px;
  letter-spacing: .08em;
  margin-bottom: 5px;
}

.summary-value {
  color: var(--forest-deep);
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -.05em;
  line-height: .95;
}

.summary-note {
  color: var(--color-muted);
  font-size: 11px;
  margin-top: 5px;
}

.section-header {
  margin: 2px 0 var(--space-3);
}

.section-title {
  color: var(--forest-deep);
  font-size: 13px;
  letter-spacing: .08em;
}

.task-list {
  padding-right: var(--space-2);
}

.problem {
  animation: cardEnter .24s ease-out both;
  border-color: rgba(31, 49, 40, .18);
  border-radius: 20px;
  box-shadow: var(--elevation-task);
  margin-bottom: var(--space-4);
  transform: translateZ(0);
}

.problem::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: rgba(15, 122, 79, .24);
}

.problem:has(.task-reason-banner.urgent)::after,
.automation-login-required-card::after {
  background: rgba(220, 58, 42, .58);
}

.problem:has(.task-reason-banner.watch)::after {
  background: rgba(242, 132, 32, .58);
}

.problem:has(.task-reason-banner.sku)::after {
  background: rgba(116, 96, 168, .48);
}

.problem:has(.task-reason-banner.capacity)::after,
.automation-complete-card::after,
.task-completing-card::after {
  background: rgba(47, 127, 209, .5);
}

.problem-header {
  align-items: flex-start;
  background: linear-gradient(135deg, var(--forest), var(--color-primary));
  border-bottom-color: rgba(15, 74, 50, .18);
  padding: 18px 20px 17px;
}

.rank {
  color: rgba(255,255,255,.72);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  margin-bottom: 8px;
}

.product {
  color: #ffffff;
  font-size: clamp(23px, 2.8vw, 30px);
  font-weight: 950;
  letter-spacing: -.045em;
  line-height: 1.08;
  margin-bottom: 7px;
}

.product-subtitle {
  color: rgba(255,255,255,.72);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}

.problem-body {
  padding: 18px 20px 20px;
}

.numbers {
  gap: var(--space-3);
}

.number-box {
  background: #f8fbf7;
  border-color: rgba(31, 49, 40, .1);
  border-radius: 14px;
  padding: 13px;
}

.number-label {
  color: var(--color-muted);
  font-size: 11px;
  letter-spacing: .07em;
}

.number-value {
  color: var(--forest-deep);
  font-size: 24px;
  line-height: 1;
}

.task-reason-banner {
  margin: -18px -20px var(--space-4);
  border-radius: 0;
  position: relative;
  overflow: hidden;
}

.problem:hover {
  border-color: rgba(15, 122, 79, .28);
  box-shadow: var(--elevation-task-hover);
  transform: translateY(-2px);
}

.summary-card:hover {
  box-shadow: 0 22px 52px rgba(21, 46, 32, .14), 0 1px 0 rgba(255,255,255,.78) inset;
  transform: translateY(-1px);
}

.page-tabs:hover,
.operator-shell:hover {
  box-shadow: 0 14px 34px rgba(21, 46, 32, .1), 0 1px 0 rgba(255,255,255,.74) inset;
}

.primary:focus-visible,
.secondary:focus-visible,
.resolve-btn:focus-visible,
.tab-refresh-btn:focus-visible,
.topbar .settings-tab:focus-visible,
.capacity-input:focus,
.inventory-search-box:focus,
.topbar input.operator-inline-input:focus {
  box-shadow: var(--brand-signature-focus);
}

.problem:hover .task-reason-banner,
.operator-shell:hover,
.page-tabs:hover {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.82), inset 0 -1px 0 rgba(15, 122, 79, .12);
}

.summary-card:hover {
  border-color: rgba(15, 122, 79, .28);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.96),
    inset 0 -1px 0 rgba(15, 122, 79, .08),
    0 18px 42px rgba(21, 46, 32, .12);
}

.instruction {
  border-radius: 14px;
}

/* Compact task card density so two active tasks are easier to view at once. */
.problem {
  margin-bottom: 12px;
}

.problem-header {
  padding: 13px 18px 12px;
}

.rank {
  margin-bottom: 5px;
}

.product {
  font-size: clamp(20px, 2.25vw, 25px);
  line-height: 1.05;
  margin-bottom: 4px;
}

.product-subtitle {
  font-size: 10px;
}

.problem-body {
  padding: 14px 18px 16px;
}

.task-reason-banner {
  gap: 2px;
  margin: -14px -18px 12px;
  padding: 10px 18px 9px;
}

.task-reason-banner span {
  font-size: 10px;
}

.task-reason-banner strong {
  font-size: 12px;
}

.numbers {
  gap: 8px;
  margin-bottom: 10px;
}

.number-box {
  border-radius: 12px;
  padding: 9px 10px;
}

.number-label {
  font-size: 10px;
  margin-bottom: 3px;
}

.number-value {
  font-size: 20px;
}

.instruction,
.sku,
.new-sku-required-action {
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.32;
  margin-bottom: 9px;
  padding: 9px 11px;
}

.resolve-row {
  gap: 8px;
  padding-top: 0;
}

.capacity-input {
  padding: 10px 12px;
}

.task-completing-card {
  animation: taskCompleteExit 1.3s cubic-bezier(.18, .88, .22, 1) forwards;
}

@keyframes cardEnter {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes refreshPulse {
  0%, 100% { opacity: .55; transform: scale(.86); }
  50% { opacity: 1; transform: scale(1.08); }
}

@media (max-width: 980px) {
  .app { padding: 14px; }
  .topbar { position: static; align-items: flex-start; flex-direction: column; border-radius: 24px; }
  .buttons { width: 100%; justify-content: space-between; }
  .header-actions { flex: 1; }
  .summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .task-summary { grid-template-columns: repeat(2, minmax(220px, 280px)); }
  .aic-achievements { grid-template-columns: 1fr; }
  .velocity-metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-snapshot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-snapshot-lists { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .topbar .brand { min-width: 0; }
  .brand-mark { width: 46px; height: 46px; border-radius: 16px; }
  .buttons { align-items: stretch; }
  .operator-control { width: 100%; justify-content: space-between; }
  .header-actions { width: 100%; display: grid; grid-template-columns: auto 1fr 1fr; }
  .dutchie-disconnected-banner { align-items: stretch; flex-direction: column; }
  .dutchie-disconnected-banner strong { white-space: normal; }
  .dutchie-disconnected-banner button { width: 100%; }
  .topbar input.operator-inline-input { flex: 1; min-width: 90px; width: auto; }
  .summary { grid-template-columns: 1fr; }
  .task-summary { grid-template-columns: 1fr; }
  .aic-achievements { grid-template-columns: 1fr; }
  .section-header { align-items: flex-start; flex-direction: column; }
  .numbers { grid-template-columns: repeat(2, 1fr); }
  .velocity-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-snapshot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-time-wheel-row { grid-template-columns: 1fr; }
  .admin-time-divider { text-align: center; }
  .problem-header { flex-direction: column; gap: 10px; }
  .inventory-row { grid-template-columns: 1fr; align-items: start; }
  .inventory-qty { justify-self: start; }
  .status-row { align-items: stretch; }
  .online-pill { width: 100%; }
}
