@media screen {
  .weighings-workspace { --weighing-accent: #86aff0; --weighing-accent-soft: rgb(79 131 219 / 12%); }
  .weighings-workspace[data-branch='barcarena'] { --weighing-accent: #ec9999; --weighing-accent-soft: rgb(223 90 90 / 12%); }
  :root[data-theme='light'] .weighings-workspace { --weighing-accent: #245cb7; --weighing-accent-soft: #edf3fd; }
  :root[data-theme='light'] .weighings-workspace[data-branch='barcarena'] { --weighing-accent: #ae3945; --weighing-accent-soft: #fbedef; }

  :root #root .ops-app[data-theme] .weighings-workspace .weighings-branch-tabs {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    gap: 4px;
    margin: 0 0 20px;
    padding: 4px;
    border: 1px solid var(--ui-border);
    border-radius: 999px;
    background: var(--ui-panel);
  }
  :root #root .ops-app[data-theme] .weighings-workspace .weighings-branch-tabs .weighings-tab {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 0;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
  }
  :root #root .ops-app[data-theme] .weighings-workspace .weighings-branch-tabs .is-active { color: var(--weighing-accent); background: var(--weighing-accent-soft); box-shadow: none; }
  .weighings-unit-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #4f83db; }
  .weighings-unit-dot.is-barcarena { background: #df5a5a; }
  :root #root .ops-app[data-theme] .weighings-workspace .weighings-dashboard { margin-top: 0; }
  :root #root .ops-app[data-theme] .weighings-workspace .weighings-dashboard > .ops-metric-card:first-child { border-color: color-mix(in srgb, var(--weighing-accent) 45%, var(--ui-border)); }
  :root #root .ops-app[data-theme] .weighings-workspace .weighings-dashboard .ops-metric-icon { color: var(--weighing-accent); background: var(--weighing-accent-soft); }
  :root #root .ops-app[data-theme] .weighings-workspace .weighings-panel-heading { padding-block: 18px; }
  :root #root .ops-app[data-theme] .weighings-workspace .weighings-table tbody tr { height: auto; }
  :root #root .ops-app[data-theme] .weighings-workspace .weighings-table .weighing-description-cell { min-width: 175px; max-width: 265px; white-space: normal; line-height: 1.55; }
  .weighing-ticket-id { color: var(--weighing-accent); font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .weighing-weight { display: inline-flex; align-items: baseline; gap: 5px; color: var(--ui-text); white-space: nowrap; }
  .weighing-weight strong { font-size: 15px; font-weight: 650; font-variant-numeric: tabular-nums; }
  .weighing-weight small { color: var(--ui-muted); }
  .weighing-plate { display: inline-block; padding: 4px 8px; border: 1px solid var(--ui-border); border-radius: 6px; color: var(--ui-secondary); background: var(--ui-input); font-size: 12px; font-weight: 600; letter-spacing: .05em; white-space: nowrap; }
  .weighing-order-reference { color: var(--ui-muted); font-variant-numeric: tabular-nums; }

  .production-chat-draft-tools { padding: 10px 12px 0; border-top: 1px solid var(--ui-border); }
  .production-chat-welcome > p { margin: 2px 0 16px; color: var(--ui-text); font-size: 15px; font-weight: 600; line-height: 1.6; }
  .production-chat-options { display: grid; gap: 10px; }
  .production-chat-options > button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 13px 11px; border: 1px solid var(--ui-border); border-radius: 12px; color: var(--ui-secondary); background: var(--ui-raised); font: inherit; text-align: left; cursor: pointer; }
  .production-chat-options > button:hover:not(:disabled) { border-color: var(--weighing-accent, var(--ui-accent)); color: var(--ui-text); background: var(--ui-hover); }
  .production-chat-options > button:disabled { opacity: .5; cursor: wait; }
  .production-chat-options > button > svg { flex: 0 0 auto; color: var(--weighing-accent, var(--ui-accent)); }
  .production-chat-options > button > svg:last-child { margin-left: auto; transform: rotate(-90deg); }
  .production-chat-options > button > span { display: grid; gap: 4px; min-width: 0; }
  .production-chat-options strong { font-size: 12px; font-weight: 600; }
  .production-chat-options small { color: var(--ui-muted); font-size: 11px; line-height: 1.5; }
  .production-chat-draft-tools > button { display: flex; width: 100%; min-height: 40px; align-items: center; gap: 9px; padding: 8px 11px; border: 1px solid var(--ui-border-strong); border-radius: 10px; color: var(--ui-text); background: var(--ui-raised); font: inherit; font-size: 12px; text-align: left; cursor: pointer; }
  .production-chat-draft-tools > button:hover:not(:disabled) { border-color: var(--weighing-accent, var(--ui-accent)); background: var(--ui-hover); }
  .production-chat-draft-tools > button > svg:last-child { margin-left: auto; }
  .production-chat-draft-tools > button:disabled { opacity: .5; cursor: wait; }
  .production-chat-draft-tools > small { display: block; padding: 6px 2px 0; color: var(--ui-muted); font-size: 11px; line-height: 1.5; }
  :root #root .ops-app[data-theme] .production-chat-review-button { min-height: 38px; max-width: 100%; margin-top: 7px; padding: 8px 10px; font-size: 12px; white-space: normal; }
  :root #root .ops-app[data-theme] .weighing-draft-confirmation { margin-top: 20px; padding: 16px; border: 1px solid var(--ui-border-strong); border-radius: 12px; background: var(--ui-raised); }
  .weighing-draft-confirmation > p { display: flex; align-items: center; gap: 9px; margin: 0 0 12px; color: var(--ui-text); font-size: 14px; }
  .weighing-draft-confirmation > label { display: flex; align-items: flex-start; gap: 11px; color: var(--ui-secondary); font-size: 13px; line-height: 1.6; cursor: pointer; }
  :root #root .ops-app[data-theme] .weighing-draft-confirmation input { width: 18px; height: 18px; min-height: 18px; flex: 0 0 18px; margin: 2px 0 0; accent-color: var(--ui-primary); }

  @media (max-width: 680px) {
    :root #root .ops-app[data-theme] .weighings-workspace .weighings-branch-tabs { width: 100%; }
    :root #root .ops-app[data-theme] .weighings-workspace .weighings-branch-tabs .weighings-tab { flex: 1; min-width: 0; min-height: 40px; justify-content: center; padding-inline: 10px; font-size: 12px; }
    :root #root .ops-app[data-theme] .weighings-workspace .weighings-table .weighing-description-cell { min-width: 0; max-width: none; }
    .weighing-weight { justify-content: end; }
    .weighing-plate { justify-self: end; }
    :root #root .ops-app[data-theme] .weighing-draft-confirmation { padding: 14px; }
  }
}
