/* Visual theme shared by the existing screens. Loaded after component styles. */
@media screen {
  :root {
    --ui-canvas: #1a1a1a;
    --ui-panel: #242424;
    --ui-raised: #2d2d2d;
    --ui-hover: #363636;
    --ui-input: #121212;
    --ui-border: #303030;
    --ui-border-strong: #454545;
    --ui-text: #f4f4f5;
    --ui-secondary: #d4d4d8;
    --ui-muted: #a1a1aa;
    --ui-subtle: #8b8b96;
    --ui-accent: #d4d4d8;
    --ui-accent-soft: #14263f;
    --ui-primary: #142e54;
    --ui-primary-hover: #1c3c69;
    --ui-success: #85bfa3;
    --ui-success-soft: #182820;
    --ui-warning: #d5b080;
    --ui-warning-soft: #2c241a;
    --ui-danger: #efa09b;
    --ui-danger-soft: #301c1d;
    --ui-shadow: 0 2px 6px rgb(0 0 0 / 12%), 0 12px 32px rgb(0 0 0 / 8%);
    color-scheme: dark;
    color: var(--ui-text);
    background: var(--ui-canvas);
    font-family: 'DM Sans', 'Segoe UI', sans-serif;
  }

  :root[data-theme='light'] {
    --ui-canvas: #f4f4f5;
    --ui-panel: #ffffff;
    --ui-raised: #f7f7f8;
    --ui-hover: #eeeef1;
    --ui-input: #ffffff;
    --ui-border: #e4e4e7;
    --ui-border-strong: #c4c4cc;
    --ui-text: #18181b;
    --ui-secondary: #3f3f46;
    --ui-muted: #62626c;
    --ui-subtle: #71717a;
    --ui-accent: #142e54;
    --ui-accent-soft: #e8edf7;
    --ui-success: #326d51;
    --ui-success-soft: #edf6f0;
    --ui-warning: #886125;
    --ui-warning-soft: #faf3e8;
    --ui-danger: #ad423e;
    --ui-danger-soft: #fff0ee;
    --ui-shadow: 0 1px 3px rgb(0 0 0 / 3%), 0 8px 24px rgb(0 0 0 / 2%);
    color-scheme: light;
  }

  :root body,
  :root .ops-app[data-theme],
  :root .ops-app[data-theme] .ops-home-content {
    color: var(--ui-text);
    background: var(--ui-canvas);
  }

  :root body {
    min-width: 320px;
  }

  :root .ops-app[data-theme] {
    color-scheme: inherit;
    line-height: 1.5;
    accent-color: var(--ui-primary);
  }

  :root :is(.ops-app, .login-page) ::selection {
    color: var(--ui-text);
    background: var(--ui-accent-soft);
  }

  :root :is(.ops-app, .login-page) :focus-visible {
    outline: 2px solid var(--ui-accent);
    outline-offset: 3px;
  }

  :root .ops-app[data-theme] :is(.weighings-table-wrap, .billing-table-scroll, .production-chat-messages, .lineup-analysis-table-scroll, .weighing-process-modal) {
    scrollbar-color: var(--ui-border-strong) var(--ui-panel);
    scrollbar-width: thin;
  }

  /* Navigation stays compact so all existing entries remain accessible. */
  :root .ops-app[data-theme] .ops-header {
    border-bottom-color: var(--ui-border);
    background: var(--ui-panel);
    box-shadow: 0 1px 0 rgb(0 0 0 / 18%);
  }

  :root .ops-app[data-theme] .ops-brand,
  :root .login-brand {
    color: var(--ui-text);
    font-size: 19px;
    letter-spacing: -0.65px;
  }

  :root .ops-app[data-theme] .ops-brand-mark {
    border: 1px solid var(--ui-border-strong);
    background: var(--ui-raised);
  }

  :root .ops-app[data-theme] .ops-nav-item {
    color: var(--ui-muted);
    font-weight: 500;
  }

  :root .ops-app[data-theme] :is(.ops-home-link:hover, .ops-production-trigger:hover, .ops-production-trigger[aria-expanded='true']) {
    color: var(--ui-text);
    border-bottom-color: var(--ui-accent);
    background: var(--ui-raised);
  }

  :root .ops-app[data-theme] .ops-production-dropdown {
    min-width: 220px;
    padding: 7px;
    border-color: var(--ui-border);
    border-radius: 10px;
    background: var(--ui-panel);
    box-shadow: var(--ui-shadow), 0 16px 32px rgb(0 0 0 / 16%);
  }

  :root .ops-app[data-theme] .ops-production-link {
    padding: 11px 12px;
    border-radius: 6px;
    color: var(--ui-secondary);
    font-size: 12px;
  }

  :root .ops-app[data-theme] :is(.ops-production-link:hover, .ops-production-link[aria-current='page']) {
    color: var(--ui-accent);
    background: var(--ui-accent-soft);
  }

  :root .ops-app[data-theme] :is(.ops-icon-button, .ops-user-menu, .ops-more-button, .ops-row-more, .ops-theme-toggle) {
    color: var(--ui-muted);
  }

  :root .ops-app[data-theme] :is(.ops-icon-button, .ops-theme-toggle) {
    border-radius: 7px;
  }

  :root .ops-app[data-theme] :is(.ops-icon-button:hover, .ops-theme-toggle:hover, .ops-user-menu:hover) {
    color: var(--ui-text);
    background: var(--ui-hover);
  }

  :root .ops-app[data-theme] .ops-header-divider {
    background: var(--ui-border);
  }

  :root .ops-app[data-theme] .ops-notification-dot {
    border-color: var(--ui-panel);
  }

  :root .ops-app[data-theme] .ops-avatar {
    border: 1px solid var(--ui-border-strong);
    color: var(--ui-secondary);
    background: var(--ui-raised);
  }

  :root .ops-app[data-theme] .ops-logout-label {
    color: var(--ui-subtle);
  }

  /* Page hierarchy and shared surfaces. */
  :root .ops-app[data-theme] .ops-main {
    padding-top: 30px;
    padding-bottom: 36px;
  }

  :root .ops-app[data-theme] .ops-breadcrumb,
  :root .ops-app[data-theme] .ops-breadcrumb a {
    color: var(--ui-subtle);
    font-size: 11px;
  }

  :root .ops-app[data-theme] .ops-breadcrumb [aria-current='page'] {
    color: var(--ui-secondary);
  }

  :root .ops-app[data-theme] .ops-breadcrumb-separator {
    color: var(--ui-subtle);
  }

  :root .ops-app[data-theme] .ops-overline {
    color: var(--ui-muted);
    font-size: 10px;
    letter-spacing: 1.6px;
  }

  :root .ops-app[data-theme] .ops-page-heading {
    margin-top: 28px;
  }

  :root .ops-app[data-theme] .ops-page-heading h1 {
    margin: 8px 0;
    color: var(--ui-text);
    font-size: clamp(25px, 2.4vw, 32px);
    font-weight: 600;
    letter-spacing: -1px;
    line-height: 1.2;
  }

  :root .ops-app[data-theme] :is(.ops-page-heading p, .weighings-panel-heading p, .ops-panel-heading p, .ops-reports-heading p) {
    color: var(--ui-muted);
    font-size: 12px;
    line-height: 1.7;
  }

  :root .ops-app[data-theme] :is(.weighings-panel, .ops-metric-card, .dosage-chart-card, .production-chat, .ops-panel, .ops-reports-panel) {
    border: 1px solid var(--ui-border);
    border-radius: 10px;
    background: var(--ui-panel);
    box-shadow: var(--ui-shadow);
  }

  :root .ops-app[data-theme] :is(.weighings-panel-heading, .production-chat-header, .production-chat-form) {
    border-color: var(--ui-border);
  }

  :root .ops-app[data-theme] .weighings-panel-heading {
    min-height: 80px;
    padding: 18px 22px;
  }

  :root .ops-app[data-theme] :is(.weighings-panel-heading h2, .dosage-chart-heading h2, .ops-panel-heading h2, .ops-reports-heading h2, .production-chat-header h2) {
    color: var(--ui-text);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.2px;
  }

  :root .ops-app[data-theme] :is(.weighings-database-icon, .weighings-empty-icon, .production-chat-avatar) {
    border: 1px solid var(--ui-border);
    border-radius: 9px;
    color: var(--ui-secondary);
    background: var(--ui-raised);
  }

  :root .ops-app[data-theme] .weighings-count {
    padding: 5px 10px;
    border: 1px solid var(--ui-border);
    border-radius: 6px;
    color: var(--ui-secondary);
    background: var(--ui-raised);
    font-size: 11px;
    font-variant-numeric: tabular-nums;
  }

  :root .ops-app[data-theme] .weighings-toolbar {
    padding: 18px 22px;
  }

  :root .ops-app[data-theme] .ops-metrics {
    gap: 14px;
  }

  :root .ops-app[data-theme] .ops-metric-card {
    min-width: 0;
    min-height: 142px;
    padding: 19px 20px;
  }

  :root .ops-app[data-theme] .ops-metric-top {
    color: var(--ui-muted);
    font-size: 12px;
    gap: 10px;
  }

  :root .ops-app[data-theme] .ops-metric-value {
    margin-top: 14px;
    color: var(--ui-text);
    font-size: clamp(25px, 2.3vw, 32px);
    font-weight: 600;
    letter-spacing: -1px;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
  }

  :root .ops-app[data-theme] .ops-metric-foot {
    margin-top: 9px;
    color: var(--ui-subtle);
    font-size: 11px;
    line-height: 1.5;
  }

  :root .ops-app[data-theme] .ops-metric-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border: 1px solid var(--ui-border);
    border-radius: 8px;
    color: var(--ui-muted);
    background: var(--ui-raised);
  }

  :root .ops-app[data-theme] .ops-icon-blue {
    border-color: transparent;
    color: var(--ui-accent);
    background: var(--ui-accent-soft);
  }

  :root .ops-app[data-theme] .weighings-tabs {
    gap: 6px;
    margin-bottom: 20px;
    padding-bottom: 7px;
    border-bottom-color: var(--ui-border);
  }

  :root .ops-app[data-theme] .weighings-tab {
    min-height: 40px;
    padding: 0 16px;
    border-bottom: 0;
    border-radius: 999px;
    color: var(--ui-muted);
    font-size: 12px;
    font-weight: 500;
  }

  :root .ops-app[data-theme] .weighings-tab:hover {
    color: var(--ui-text);
    background: var(--ui-raised);
  }

  :root .ops-app[data-theme] .weighings-tab.is-active {
    color: var(--ui-accent);
    background: var(--ui-accent-soft);
    box-shadow: inset 0 0 0 1px var(--ui-border);
  }

  /* Controls retain their existing handlers, states and dimensions on mobile. */
  :root .ops-app[data-theme] .ops-button,
  :root .login-page .ops-button {
    min-height: 38px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
  }

  :root .ops-app[data-theme] .ops-button-secondary,
  :root .ops-app[data-theme] .weighing-process-modal .weighing-modal-footer .ops-button.ops-button-secondary {
    border-color: var(--ui-border-strong);
    color: var(--ui-secondary);
    background: var(--ui-raised);
  }

  :root .ops-app[data-theme] .ops-button-secondary:hover:not(:disabled),
  :root .ops-app[data-theme] .weighing-process-modal .weighing-modal-footer .ops-button.ops-button-secondary:hover:not(:disabled) {
    border-color: var(--ui-subtle);
    color: var(--ui-text);
    background: var(--ui-hover);
  }

  :root .ops-app[data-theme] .ops-button-primary,
  :root .login-page .ops-button-primary,
  :root .ops-app[data-theme] .weighing-process-modal .weighing-modal-footer .ops-button.ops-button-primary {
    border-color: var(--ui-primary);
    color: #ffffff;
    background: var(--ui-primary);
    box-shadow: 0 1px 2px rgb(0 0 0 / 12%);
  }

  :root .ops-app[data-theme] .ops-button-primary:hover:not(:disabled),
  :root .login-page .ops-button-primary:hover:not(:disabled),
  :root .ops-app[data-theme] .weighing-process-modal .weighing-modal-footer .ops-button.ops-button-primary:hover:not(:disabled) {
    border-color: var(--ui-primary-hover);
    background: var(--ui-primary-hover);
  }

  :root .ops-app[data-theme] .production-process-button {
    min-height: 32px;
    font-size: 11px;
  }

  :root .ops-app[data-theme] :is(.ops-search, .weighings-date-filter) {
    min-height: 40px;
    border-color: var(--ui-border-strong);
    border-radius: 999px;
    color: var(--ui-muted);
    background: var(--ui-input);
  }

  :root .ops-app[data-theme] :is(.ops-search input, .weighings-date-picker input, .weighings-date-button, .weighings-date-picker) {
    color: var(--ui-secondary);
    color-scheme: inherit;
    font-size: 12px;
  }

  :root .ops-app[data-theme] .weighings-date-button {
    font-size: 21px;
  }

  :root .ops-app[data-theme] .weighings-date-today {
    color: var(--ui-accent);
  }

  :root .ops-app[data-theme] :is(.weighings-date-button, .weighings-date-today):hover:not(:disabled) {
    color: var(--ui-text);
    background: var(--ui-hover);
  }

  :root .ops-app[data-theme] :is(.production-stats-field input, .billing-filters input, .billing-filters select, .billing-table-footer select, .import-lineup-date-filter input, .lineup-analysis-controls input, .lineup-analysis-controls select, .lineup-analysis-vessel-toolbar select, .production-chat-form textarea) {
    border-color: var(--ui-border-strong);
    border-radius: 7px;
    color: var(--ui-text);
    color-scheme: inherit;
    background: var(--ui-input);
  }

  :root .ops-app[data-theme] :is(input, textarea)::placeholder {
    color: var(--ui-subtle);
    opacity: 1;
  }

  :root .ops-app[data-theme] :is(.ops-search:focus-within, .weighings-date-filter:focus-within),
  :root .login-form input:focus,
  :root .ops-app[data-theme] .production-chat-form textarea:focus {
    border-color: var(--ui-accent);
    box-shadow: 0 0 0 3px var(--ui-accent-soft);
  }

  :root .ops-app[data-theme] :is(.production-stats-field, .import-lineup-date-filter label, .weighings-query-label) {
    color: var(--ui-muted);
  }

  /* Tables use quiet dividers and readable, aligned numeric values. */
  :root .ops-app[data-theme] :is(.weighings-table-wrap, .weighings-table, .weighings-table tbody, .weighings-table tr, .weighings-table td, .weighings-state, .weighings-footer) {
    border-color: var(--ui-border);
    background-color: var(--ui-panel);
  }

  :root .ops-app[data-theme] :is(.weighings-table thead, .weighings-table th, .billing-table th, .lineup-analysis-table th) {
    color: var(--ui-muted);
    background-color: var(--ui-raised);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15px;
  }

  :root .ops-app[data-theme] .weighings-table thead {
    height: 44px;
  }

  :root .ops-app[data-theme] .weighings-table tbody tr {
    height: 52px;
    border-color: var(--ui-border);
  }

  :root .ops-app[data-theme] .weighings-table td {
    color: var(--ui-secondary);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
  }

  :root .ops-app[data-theme] :is(.weighings-table tbody tr:hover, .weighings-table tbody tr:hover td) {
    background-color: var(--ui-hover);
  }

  :root .ops-app[data-theme] :is(.weighings-state, .weighings-footer) {
    color: var(--ui-muted);
    font-size: 12px;
  }

  :root .ops-app[data-theme] :is(.weighings-state strong, .weighings-footer strong, .production-order-product) {
    color: var(--ui-text);
  }

  :root .ops-app[data-theme] .weighings-page-button {
    min-width: 32px;
    height: 32px;
    border-color: var(--ui-border);
    border-radius: 6px;
    color: var(--ui-secondary);
    background-color: var(--ui-raised);
    font-size: 11px;
  }

  :root .ops-app[data-theme] .weighings-page-button:hover:not(:disabled),
  :root .ops-app[data-theme] .weighings-page-button.is-current {
    border-color: var(--ui-accent);
    color: var(--ui-accent);
    background-color: var(--ui-accent-soft);
  }

  :root .ops-app[data-theme] .weighings-page-button:disabled {
    border-color: var(--ui-border);
    color: var(--ui-subtle);
    background-color: var(--ui-panel);
    opacity: 0.55;
  }

  :root .ops-app[data-theme] .weighings-spinner {
    border-color: var(--ui-border-strong);
    border-top-color: var(--ui-accent);
  }

  /* Dashboard palettes share the same neutrals; data keeps semantic colors. */
  :root .ops-app[data-theme] :is(.production-stats-main, .lineup-analysis, .lineup-volume-panel) {
    --dosage-chart-text: var(--ui-muted);
    --lineup-analysis-text: var(--ui-text);
    --lineup-analysis-muted: var(--ui-muted);
    --lineup-analysis-border: var(--ui-border);
    --lineup-analysis-soft: var(--ui-raised);
    --lineup-analysis-input: var(--ui-input);
    --stats-input-background: var(--ui-input);
    --stats-input-border: var(--ui-border-strong);
    --stats-input-text: var(--ui-text);
    --stats-label-text: var(--ui-muted);
  }

  :root .ops-app[data-theme] .billing-page {
    --billing-panel: var(--ui-panel);
    --billing-soft: var(--ui-raised);
    --billing-border: var(--ui-border);
    --billing-text: var(--ui-text);
    --billing-muted: var(--ui-muted);
    --billing-net: var(--ui-accent);
    --billing-billed: var(--ui-success);
    --billing-pending: var(--ui-warning);
    --billing-unknown: var(--ui-subtle);
    color-scheme: inherit;
  }

  :root .ops-app[data-theme] .dosage-chart-card {
    padding: 22px;
  }

  :root .ops-app[data-theme] .lineup-volume-panel {
    background-image: none;
  }

  :root .ops-app[data-theme] :is(.dosage-chart-heading p, .dosage-chart-empty, .dosage-chart-hour, .dosage-chart-value, .dosage-data-note, .production-order-code, .setup-summary span, .setup-chart-container > p, .setup-chart-legend-item > span:last-child, .production-chat-header div > span, .production-chat-intro, .production-chat-note, .production-chat-thinking) {
    color: var(--ui-muted);
  }

  :root .ops-app[data-theme] :is(.dosage-chart-heading p, .production-chat-intro) {
    font-size: 12px;
    line-height: 1.7;
  }

  :root .ops-app[data-theme] :is(.dosage-destination-row, .dosage-stoppage-row, .setup-chart-legend-item) {
    color: var(--ui-secondary);
  }

  :root .ops-app[data-theme] :is(.dosage-destination-row strong, .dosage-stoppage-row strong, .setup-summary strong, .setup-chart-container h3, .setup-chart-legend-item strong) {
    color: var(--ui-text);
  }

  :root .ops-app[data-theme] :is(.dosage-chart-bars, .dosage-stoppage-row) {
    border-color: var(--ui-border);
  }

  :root .ops-app[data-theme] .dosage-destination-track {
    background: var(--ui-hover);
  }

  :root .ops-app[data-theme] .setup-summary > div {
    border-color: var(--ui-border);
    border-radius: 8px;
    background: var(--ui-raised);
  }

  :root .ops-app[data-theme] .setup-pie-slice {
    stroke: var(--ui-panel);
  }

  :root .ops-app[data-theme] :is(.setup-pie-slice:hover, .setup-pie-slice:focus-visible) {
    stroke: var(--ui-text);
  }

  :root .ops-app[data-theme] :is(.production-industrial-label-link, .vessel-traffic-attribution a) {
    color: var(--ui-accent);
  }

  :root .ops-app[data-theme] .vessel-traffic-attribution {
    border-color: var(--ui-border);
    color: var(--ui-muted);
    background: var(--ui-raised);
  }

  :root .ops-app[data-theme] :is(.production-order-status-active, .lineup-operation-state.is-scheduled) {
    color: var(--ui-accent);
    background: var(--ui-accent-soft);
  }

  :root .ops-app[data-theme] .production-order-status-complete {
    color: var(--ui-success);
    background: var(--ui-success-soft);
  }

  :root .ops-app[data-theme] .production-order-status-planned {
    color: var(--ui-warning);
    background: var(--ui-warning-soft);
  }

  :root .ops-app[data-theme] .billing-status {
    border-radius: 5px;
    padding: 5px 8px;
    font-size: 11px;
  }

  :root .ops-app[data-theme] .production-chat-message {
    border-color: var(--ui-border);
    color: var(--ui-secondary);
    background: var(--ui-raised);
    font-size: 12px;
    line-height: 1.7;
  }

  :root .ops-app[data-theme] .production-chat-message-user {
    border-color: var(--ui-border-strong);
    color: var(--ui-text);
    background: var(--ui-hover);
  }

  :root .ops-app[data-theme] .production-chat-form textarea {
    font-size: 12px;
  }

  :root .ops-app[data-theme] .production-chat-note {
    font-size: 10px;
  }

  /* Document previews follow the selected theme without changing their flow. */
  :root .ops-app[data-theme] .weighing-modal-backdrop {
    background: rgb(0 0 0 / 14%);
  }

  :root .ops-app[data-theme] .weighing-process-modal {
    --weighing-modal-bg: var(--ui-panel);
    --weighing-modal-panel: var(--ui-raised);
    --weighing-modal-border: var(--ui-border);
    --weighing-modal-text: var(--ui-text);
    --weighing-modal-muted: var(--ui-muted);
    --weighing-modal-accent: var(--ui-accent);
    border-radius: 12px;
    color-scheme: inherit;
  }

  :root .ops-app[data-theme] :is(.weighing-modal-header, .weighing-modal-footer, .weighing-preview-facts div, .weighing-preview-document-heading, .weighing-preview-table th, .weighing-processing-options label) {
    background: var(--ui-raised);
  }

  :root .ops-app[data-theme] :is(.weighing-modal-heading-icon, .weighing-modal-close:hover:not(:disabled)) {
    border-color: var(--ui-border);
    color: var(--ui-secondary);
    background: var(--ui-hover);
  }

  :root .ops-app[data-theme] :is(.weighing-modal-header h2, .weighing-preview-documents h3, .weighing-processing-options legend, .weighing-preview-document summary) {
    color: var(--ui-text);
  }

  :root .ops-app[data-theme] .weighing-preview-table tbody tr:hover {
    background: var(--ui-hover);
  }

  :root .ops-app[data-theme] .weighing-processing-options label.is-selected {
    border-color: var(--ui-accent);
    background: var(--ui-accent-soft);
  }

  :root .ops-app[data-theme] .weighing-invoice-button {
    border-color: var(--ui-warning);
    color: var(--ui-warning);
    background: var(--ui-warning-soft);
  }

  :root .ops-app[data-theme] .weighing-invoice-button:hover:not(:disabled) {
    background: var(--ui-hover);
  }

  :root .ops-app[data-theme] :is(.weighing-modal-message.is-error, .production-export-error),
  :root .login-error {
    border-color: var(--ui-danger);
    color: var(--ui-danger);
    background: var(--ui-danger-soft);
  }

  :root .ops-app[data-theme] .weighing-modal-message.is-success {
    border-color: var(--ui-success);
    color: var(--ui-success);
    background: var(--ui-success-soft);
  }

  /* Login retains the existing mascot and authentication form. */
  :root .login-page {
    padding: 56px 24px;
    background: radial-gradient(ellipse at 50% 5%, rgb(255 255 255 / 4%), transparent 60%), var(--ui-canvas);
  }

  :root .login-card {
    width: min(100%, 440px);
    padding: 40px;
    border-color: var(--ui-border);
    border-radius: 16px;
    background: var(--ui-panel);
    box-shadow: 0 24px 80px rgb(0 0 0 / 24%);
  }

  :root .login-card h1 {
    color: var(--ui-text);
    font-size: 30px;
    letter-spacing: -1px;
  }

  :root .login-brand {
    display: flex;
    width: fit-content;
  }

  :root .login-card > .ops-overline {
    display: block;
  }

  :root :is(.login-description, .login-card > .ops-overline, .login-security-note) {
    color: var(--ui-muted);
  }

  :root .login-form {
    gap: 18px;
  }

  :root .login-form label {
    color: var(--ui-secondary);
  }

  :root .login-form input {
    min-height: 46px;
    padding: 0 13px;
    border-color: var(--ui-border-strong);
    border-radius: 7px;
    color: var(--ui-text);
    background: var(--ui-input);
    font-size: 14px;
  }

  :root .login-page .login-submit {
    min-height: 46px;
    margin-top: 6px;
    font-size: 13px;
  }

  :root .login-robot-skull {
    fill: #2b2b30;
    stroke: #71717a;
  }

  :root .login-robot-side {
    fill: #1c1c1f;
    stroke: #52525b;
  }

  :root .login-robot-brow {
    fill: #3f3f46;
    stroke: #a1a1aa;
  }

  :root .login-robot-visor {
    fill: #09090b;
    stroke: #52525b;
  }

  :root .login-robot-eye {
    fill: #8ab4ff;
  }

  :root .login-robot-mouth {
    fill: #a1a1aa;
    stroke: #a1a1aa;
  }

  :root .login-robot-detail {
    stroke: #71717a;
  }
}

@media screen and (max-width: 1200px) {
  :root .ops-app[data-theme] .ops-header {
    display: grid;
    height: auto;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 16px;
    row-gap: 0;
    padding-inline: 20px;
  }

  :root .ops-app[data-theme] .ops-header-actions {
    min-height: 60px;
  }

  :root .ops-app[data-theme] .ops-primary-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    min-width: 0;
    height: 46px;
    justify-content: space-between;
    border-top: 1px solid var(--ui-border);
  }

  :root .ops-app[data-theme] .ops-nav-item {
    padding-inline: 10px;
  }

  :root .ops-app[data-theme] .ops-primary-nav > .ops-production-menu:nth-last-child(-n + 2) .ops-production-dropdown {
    right: 0;
    left: auto;
  }

  :root .ops-app[data-theme] .ops-home-content {
    min-height: calc(100vh - 107px);
  }
}

@media screen and (max-width: 680px) {
  :root .ops-app[data-theme] .ops-header {
    column-gap: 6px;
    padding-inline: 10px;
  }

  :root .ops-app[data-theme] .ops-brand {
    gap: 6px;
    font-size: 15px;
  }

  :root .ops-app[data-theme] .ops-nav-item {
    gap: 4px;
    padding-inline: 5px;
    font-size: 10px;
  }

  :root .ops-app[data-theme] .ops-header-actions {
    gap: 4px;
  }

  :root .ops-app[data-theme] .ops-user-menu {
    display: inline-flex;
  }

  :root .ops-app[data-theme] .ops-main {
    padding-top: 22px;
    padding-bottom: 24px;
  }

  :root .ops-app[data-theme] .ops-page-heading {
    margin-top: 20px;
  }

  :root .ops-app[data-theme] .ops-metrics {
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  :root .ops-app[data-theme] .ops-metric-card {
    min-height: 128px;
    padding: 14px;
  }

  :root .ops-app[data-theme] .ops-metric-top {
    font-size: 11px;
  }

  :root .ops-app[data-theme] .ops-metric-value {
    font-size: 25px;
  }

  :root .ops-app[data-theme] :is(.weighings-panel-heading, .weighings-toolbar, .dosage-chart-card) {
    padding: 16px;
  }

  :root .ops-app[data-theme] .weighings-table tbody tr {
    height: auto;
    border-color: var(--ui-border);
  }

  :root .ops-app[data-theme] .weighings-table td {
    border-color: var(--ui-border);
    font-size: 12px;
  }

  :root .ops-app[data-theme] .weighings-table td::before {
    color: var(--ui-muted);
    font-size: 11px;
  }

  :root .ops-app[data-theme] :is(.billing-filters input, .billing-filters select, .billing-table-footer select, .production-stats-field input, .production-chat-form textarea, .lineup-analysis-controls input, .lineup-analysis-controls select, .lineup-analysis-vessel-toolbar select) {
    font-size: 16px;
  }

  :root .ops-app[data-theme] .production-chat {
    margin-top: 0;
  }

  :root .login-card {
    padding: 32px 24px;
  }

  :root .login-form input {
    font-size: 16px;
  }
}

@media screen and (max-width: 480px) {
  :root .ops-app[data-theme] .ops-metrics {
    grid-template-columns: minmax(0, 1fr);
  }
}
.weighing-remarks-label { display: block; margin: 14px 0 7px; font-size: 12px; font-weight: 600; }
.weighing-remarks-input { display: block; box-sizing: border-box; width: 100%; min-height: 110px; resize: vertical; padding: 12px; border: 1px solid var(--ui-border-strong); border-radius: 8px; background: var(--ui-panel); color: var(--ui-text); font: inherit; font-size: 12px; line-height: 1.6; }
.weighing-remarks-input:focus-visible { outline: 2px solid var(--ui-text); outline-offset: 2px; }
.weighing-remarks-input:disabled { opacity: .65; }
.weighing-exchange-partner { display: grid; gap: 8px; padding: 16px; min-width: 0; }
.weighing-exchange-partner label { color: var(--ui-secondary); font-size: 12px; font-weight: 600; }
.weighing-exchange-partner :is(input, select) { box-sizing: border-box; width: 100%; min-width: 0; min-height: 42px; padding: 10px 12px; border: 1px solid var(--ui-border-strong); border-radius: 7px; background: var(--ui-input); color: var(--ui-text); font: inherit; font-size: 12px; }
.weighing-exchange-partner :is(input, select):focus-visible { outline: 2px solid var(--ui-accent); outline-offset: 2px; }
.weighing-exchange-partner p { margin: 0; font-size: 11px; line-height: 1.6; color: var(--ui-muted); }

