@font-face {
  font-family: 'New Rocker';
  src: url('/src/assets/fonts/NewRocker-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.ops-goth-toggle {
  border-radius: 7px;
}

.login-goth-robot-art {
  display: block;
  width: 88px;
  height: 88px;
  margin: -8px;
  filter: drop-shadow(0 4px 12px rgb(255 255 255 / 12%));
}

:root .ops-app[data-theme] .ops-goth-toggle[aria-pressed='true'] {
  color: var(--ui-accent);
  background: var(--ui-accent-soft);
  box-shadow: inset 0 0 0 1px var(--ui-border-strong);
}

@media screen {
  :root[data-theme='goth'] {
    --ui-canvas: #060606;
    --ui-panel: #101010;
    --ui-raised: #191919;
    --ui-hover: #252525;
    --ui-input: #090909;
    --ui-border: #333333;
    --ui-border-strong: #626262;
    --ui-text: #f4f4f4;
    --ui-secondary: #d5d5d5;
    --ui-muted: #b3b3b3;
    --ui-subtle: #a2a2a2;
    --ui-accent: #eeeeee;
    --ui-accent-soft: #282828;
    --ui-primary: #e5e5e5;
    --ui-primary-hover: #ffffff;
    --ui-success: #d2d2d2;
    --ui-success-soft: #202020;
    --ui-warning: #e0e0e0;
    --ui-warning-soft: #252525;
    --ui-danger: #eeeeee;
    --ui-danger-soft: #2b2b2b;
    --ui-shadow: 0 1px 0 rgb(255 255 255 / 4%), 0 14px 36px rgb(0 0 0 / 32%);
    --goth-font: 'New Rocker', Georgia, serif;
    color-scheme: dark;
  }

  :root .ops-app[data-theme='goth'] {
    background-image: radial-gradient(ellipse at 100% 0, rgb(255 255 255 / 3%), transparent 40%);
  }

  :root .ops-app[data-theme='goth'] .ops-header {
    border-bottom-color: var(--ui-border-strong);
    background: #0b0b0b;
  }

  :root .ops-app[data-theme='goth'] .ops-brand,
  :root[data-theme='goth'] .login-brand {
    font-family: var(--goth-font);
    font-size: 23px;
    font-weight: 400;
    letter-spacing: 0.2px;
  }

  :root .ops-app[data-theme='goth'] :is(.ops-page-heading h1, .weighing-modal-header h2),
  :root[data-theme='goth'] .login-card h1 {
    font-family: var(--goth-font);
    font-weight: 400;
    letter-spacing: 0.3px;
    line-height: 1.3;
    text-shadow: 0 0 20px rgb(255 255 255 / 10%);
  }

  :root .ops-app[data-theme='goth'] :is(.weighings-panel-heading h2, .dosage-chart-heading h2, .users-profile-identity h2, .production-stoppages-entry h2, .stoppage-editor h3, .production-chat-header h2) {
    font-family: var(--goth-font);
    font-size: 19px;
    font-weight: 400;
    letter-spacing: 0.2px;
    line-height: 1.4;
  }

  :root .ops-app[data-theme='goth'] :is(.ops-nav-item, .ops-operations-group-trigger, .weighings-tab) {
    font-family: var(--goth-font);
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.3px;
  }

  :root .ops-app[data-theme='goth'] .ops-overline {
    color: #c7c7c7;
    letter-spacing: 2px;
  }

  :root .ops-app[data-theme='goth'] :is(.ops-metric-card, .weighings-panel, .dosage-chart-card, .users-profile-card, .production-stoppages-entry) {
    border-radius: 5px;
    border-color: var(--ui-border);
    box-shadow: var(--ui-shadow);
  }

  :root .ops-app[data-theme='goth'] :is(.ops-metric-card, .dosage-chart-card) {
    border-top-color: var(--ui-border-strong);
  }

  :root .ops-app[data-theme='goth'] :is(.ops-avatar, .users-profile-avatar, .weighing-modal-heading-icon, .production-chat-avatar) {
    color: #e5e5e5;
    border-color: var(--ui-border-strong);
    background: #222222;
  }

  :root .ops-app[data-theme='goth'] :is(.billing-page, .stoppage-modal) {
    --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: #dddddd;
    --billing-billed: var(--ui-success);
    --billing-pending: var(--ui-warning);
    --billing-unknown: var(--ui-muted);
  }

  :root .ops-app[data-theme='goth'] :is(.production-stats-main, .import-lineup-main, .lineup-analysis, .lineup-volume-panel) {
    --dosage-chart-production: #dddddd;
    --dosage-chart-downtime: #aaaaaa;
    --dosage-chart-lost: #777777;
    --dosage-chart-text: var(--ui-muted);
  }

  :root .ops-app[data-theme='goth'] .ops-notification-dot {
    background: #dddddd;
  }

  :root .ops-app[data-theme='goth'] .billing-status {
    background: var(--ui-raised);
  }

  :root .ops-app[data-theme='goth'] :is(.import-lineup-status-waiting, .import-lineup-status-progress, .import-lineup-status-complete) {
    --lineup-status-color: #d5d5d5;
  }

  :root .ops-app[data-theme='goth'] .lineup-volume-balance-dot {
    background: #aaaaaa;
  }

  :root .ops-app[data-theme='goth'] .lineup-volume-balance.is-received .lineup-volume-balance-dot {
    background: #eeeeee;
  }

  :root .ops-app[data-theme='goth'] .lineup-volume-balance.is-pending .lineup-volume-balance-dot {
    background: #777777;
  }

  :root .ops-app[data-theme='goth'] .lineup-operation-state {
    color: var(--ui-secondary);
    background: var(--ui-raised);
  }

  :root[data-theme='goth'] .login-brand .ops-brand-mark {
    border-color: var(--ui-border-strong);
    background: var(--ui-raised);
  }

  :root .ops-app[data-theme='goth'] .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);
  }

  :root .ops-app[data-theme='goth'] .ops-home-content {
    background: radial-gradient(ellipse at center, #151515, #060606 65%);
  }

  :root[data-theme='goth'] .login-page {
    background: radial-gradient(ellipse at 50% 0, #242424, #060606 65%);
  }

  :root[data-theme='goth'] .login-card {
    border-radius: 5px;
    border-color: var(--ui-border-strong);
    background: var(--ui-panel);
  }

  :root[data-theme='goth'] .login-submit {
    border-color: var(--ui-primary);
    background: var(--ui-primary);
    color: #111111;
  }

  :root .ops-app[data-theme='goth'] .ops-button-primary,
  :root .ops-app[data-theme='goth'] .weighing-process-modal .weighing-modal-footer .ops-button.ops-button-primary,
  :root[data-theme='goth'] .login-page .ops-button.ops-button-primary {
    border-color: var(--ui-primary);
    color: #111111;
    background: var(--ui-primary);
  }

  :root .ops-app[data-theme='goth'] .ops-button-primary:hover:not(:disabled),
  :root .ops-app[data-theme='goth'] .weighing-process-modal .weighing-modal-footer .ops-button.ops-button-primary:hover:not(:disabled) {
    color: #090909;
    background: var(--ui-primary-hover);
  }

  :root[data-theme='goth'] .login-submit:hover:not(:disabled) {
    background: var(--ui-primary-hover);
  }

  @media (max-width: 680px) {
    :root .ops-app[data-theme='goth'] .ops-brand {
      font-size: 19px;
    }

    :root .ops-app[data-theme='goth'] :is(.ops-nav-item, .ops-operations-group-trigger, .weighings-tab) {
      font-size: 15px;
    }

    :root .ops-app[data-theme='goth'] .ops-page-heading h1 {
      font-size: 27px;
    }
  }

  @media (max-width: 380px) {
    :root .ops-app[data-theme='goth'] .ops-brand {
      font-size: 16px;
    }
  }
}
