:root {
  --btn-bg-primary: var(--accent, #1f8a54);
  --btn-bg-primary-hover: var(--accent-strong, #1b7548);
  --btn-fg-primary: var(--accent-text, #f4fff8);
  --btn-bg-secondary: var(--field-bg, #ffffff);
  --btn-border-secondary: var(--field-line, #c6d2dc);
  --btn-fg-secondary: var(--text, #10212d);
  --btn-link: var(--link-soft, #2f7d57);
  --btn-link-hover: var(--accent, #1f8a54);
  --btn-danger: #ef4444;
  --btn-danger-border: rgba(239, 68, 68, 0.35);
  --btn-danger-bg-hover: rgba(239, 68, 68, 0.14);
  --btn-danger-fg: #0f1720;
  --btn-close-bg: var(--field-bg, #ffffff);
  --btn-close-border: var(--field-line, #c6d2dc);
  --btn-close-text: var(--text, #10212d);
  --btn-close-bg-hover: var(--surface2, #eef2f6);
  --btn-close-border-hover: var(--nav-active-line, #9dcfb4);
  --btn-detail-bg: rgba(124, 58, 237, 0.1);
  --btn-detail-border: rgba(124, 58, 237, 0.35);
  --btn-detail-text: #2d1a4f;
  --btn-detail-bg-hover: rgba(124, 58, 237, 0.18);
  --btn-detail-border-hover: rgba(124, 58, 237, 0.5);
  --pill-success-bg: #e8f6ee;
  --pill-success-border: #9accae;
  --pill-success-text: #1f5d3d;
  --pill-warn-bg: #fff4df;
  --pill-warn-border: #e2be84;
  --pill-warn-text: #81571b;
  --pill-error-bg: #fde9e9;
  --pill-error-border: #e0a6a6;
  --pill-error-text: #8c3b3b;
  --pill-info-bg: #eaf1f8;
  --pill-info-border: #b7c9da;
  --pill-info-text: #375166;
  --table-head-bg: #f1f5f9;
  --table-head-text: #4b5563;
  --table-head-border: #d3dee9;
  --card-hover-border: #a9c2b4;
  --card-hover-shadow: 0 10px 24px rgba(20, 48, 31, 0.12);
  --theme-switch-track-bg: #edf3f8;
  --theme-switch-track-border: #c8d4de;
  --theme-switch-track-bg-neutral: #f8fafc;
  --theme-switch-border: #cbd5e1;
  --theme-switch-track-border-hover: #b8c5d1;
  --theme-switch-icon-active: #2a3f52;
  --theme-switch-icon-inactive: #708497;
  --theme-switch-knob-bg: #ffffff;
  --theme-switch-knob-border: #b9c8d4;
  --theme-switch-knob-shadow: 0 2px 8px rgba(15, 23, 42, 0.16);
  --theme-switch-focus-outline: #cbd5e1;
}

html.dark {
  --btn-danger-fg: #d1d8de;
  --btn-detail-bg: rgba(139, 92, 246, 0.24);
  --btn-detail-border: rgba(167, 139, 250, 0.55);
  --btn-detail-text: #efe8ff;
  --btn-detail-bg-hover: rgba(167, 139, 250, 0.32);
  --btn-detail-border-hover: rgba(196, 181, 253, 0.75);
  --pill-success-bg: rgba(25, 63, 44, 0.75);
  --pill-success-border: #34785a;
  --pill-success-text: #b4efd0;
  --pill-warn-bg: rgba(60, 44, 20, 0.75);
  --pill-warn-border: #86632e;
  --pill-warn-text: #f3d9a5;
  --pill-error-bg: rgba(61, 28, 28, 0.75);
  --pill-error-border: #8a4a4a;
  --pill-error-text: #f2c0c0;
  --pill-info-bg: rgba(34, 46, 57, 0.75);
  --pill-info-border: #587186;
  --pill-info-text: #d2e0ec;
  --table-head-bg: rgba(0, 0, 0, 0.22);
  --table-head-text: #cbd5e1;
  --table-head-border: rgba(148, 163, 184, 0.25);
  --card-hover-border: #4d6d5b;
  --card-hover-shadow: 0 14px 30px rgba(2, 8, 12, 0.38);
  --theme-switch-track-bg: #162029;
  --theme-switch-track-border: #2f4654;
  --theme-switch-track-bg-neutral-dark: #111317;
  --theme-switch-border-dark: #334155;
  --theme-switch-track-border-hover: #3d5463;
  --theme-switch-icon-active: #dce7ef;
  --theme-switch-icon-inactive: #7e97a8;
  --theme-switch-knob-bg: #23313c;
  --theme-switch-knob-border: #3f596a;
  --theme-switch-knob-shadow: 0 4px 10px rgba(2, 8, 12, 0.45);
  --theme-switch-focus-outline: #475569;
}

.btn-primary,
.ui-btn.ui-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  border: 1px solid transparent;
  border-radius: 0.625rem;
  padding: 0.5rem 0.75rem;
  font-weight: 600;
  background: var(--btn-bg-primary);
  color: var(--btn-fg-primary);
}

.btn-primary:hover,
.ui-btn.ui-btn-primary:hover {
  background: var(--btn-bg-primary-hover);
}

.btn-secondary,
.ui-btn.ui-btn-secondary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  border: 1px solid var(--btn-border-secondary);
  border-radius: 0.625rem;
  padding: 0.5rem 0.75rem;
  font-weight: 500;
  background: var(--btn-bg-secondary);
  color: var(--btn-fg-secondary);
}

.btn-secondary:hover,
.ui-btn.ui-btn-secondary:hover,
.secondary:hover {
  border-color: var(--nav-active-line, #9dcfb4);
}

.btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--btn-link);
  font-weight: 600;
  padding: 0.25rem 0.5rem;
}

.btn-link:hover {
  color: var(--btn-link-hover);
  text-decoration: underline;
}

.btn-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  border: 1px solid rgba(129, 140, 248, 0.32);
  border-radius: 0.625rem;
  padding: 0.3rem 0.65rem;
  font-weight: 600;
  font-size: 0.82rem;
  color: #c7d2fe;
  background: rgba(79, 70, 229, 0.14);
}

.btn-soft:hover {
  border-color: rgba(129, 140, 248, 0.56);
  background: rgba(79, 70, 229, 0.24);
  color: #e0e7ff;
}

.btn-soft:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgb(16 185 129 / 0.6);
}

.btn-detail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  border: 1px solid var(--btn-detail-border);
  border-radius: 0.625rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 500;
  background: var(--btn-detail-bg);
  color: var(--btn-detail-text);
}

.btn-detail:hover {
  background: var(--btn-detail-bg-hover);
  border-color: var(--btn-detail-border-hover);
}

.btn-icon-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.875rem;
  height: 1.875rem;
  border: 1px solid var(--btn-danger-border);
  border-radius: 0.5rem;
  background: transparent;
  color: var(--btn-danger-fg);
}

.btn-icon-danger:hover {
  border-color: rgba(239, 68, 68, 0.55);
  color: var(--btn-danger);
  background: var(--btn-danger-bg-hover);
}

.btn-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  border: 1px solid var(--btn-close-border);
  background: var(--btn-close-bg);
  color: var(--btn-close-text);
}

.btn-close:hover {
  border-color: var(--btn-close-border-hover);
  background: var(--btn-close-bg-hover);
}

.btn-close:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgb(16 185 129 / 0.6);
}

.ui-theme-switch {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  border: 0;
  background: transparent;
  padding: 0;
  border-radius: 0;
  cursor: pointer;
}

.ui-theme-switch,
.ui-theme-switch:hover,
.ui-theme-switch:focus,
.ui-theme-switch:focus-visible,
.ui-theme-switch:active,
.ui-theme-switch:focus-within {
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  border-color: transparent !important;
  --tw-ring-shadow: 0 0 #0000 !important;
  --tw-ring-offset-shadow: 0 0 #0000 !important;
  --tw-ring-color: transparent !important;
  --tw-ring-offset-color: transparent !important;
}

.ui-theme-switch-track {
  position: relative;
  width: 74px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--theme-switch-border, #cbd5e1);
  background: var(--theme-switch-track-bg-neutral, #f8fafc);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  box-shadow: none !important;
}

.ui-theme-switch:hover .ui-theme-switch-track {
  border-color: var(--theme-switch-border, #cbd5e1) !important;
  background: var(--theme-switch-track-bg-neutral, #f8fafc) !important;
  box-shadow: none !important;
}

.ui-theme-switch-icon {
  position: relative;
  z-index: 2;
  width: 15px;
  height: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  appearance: none;
  color: var(--theme-switch-icon-inactive);
  transition: color 180ms ease;
}

.ui-theme-switch-icon svg {
  width: 15px;
  height: 15px;
}

.ui-theme-switch-icon:hover,
.ui-theme-switch-icon:focus,
.ui-theme-switch-icon:focus-visible,
.ui-theme-switch-icon:active {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}

.ui-theme-switch-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--theme-switch-knob-border);
  background: var(--theme-switch-knob-bg);
  box-shadow: var(--theme-switch-knob-shadow);
  transition: transform 190ms ease;
  will-change: transform;
}

.inbox-threads-card #inboxThreadsList {
  margin-top: 0.5rem;
  flex: 1 1 auto;
  min-height: 0;
}

.inbox-threads-card {
  display: flex;
  flex-direction: column;
}

.inbox-filter-stack {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.inbox-search-field {
  position: relative;
  width: 100%;
}

.inbox-search-icon {
  position: absolute;
  top: 50%;
  left: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.inbox-search-icon svg {
  width: 1rem;
  height: 1rem;
}

.inbox-search-input {
  width: 100%;
  padding-left: 2.35rem;
}

.inbox-filter-toolbar {
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.inbox-filter-toolbar-main,
.inbox-filter-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  min-width: 0;
}

.inbox-filter-toolbar-main {
  flex: 0 1 auto;
}

.inbox-filter-toolbar-actions {
  flex: 0 1 auto;
}

.inbox-filter-toolbar .filter-toggle {
  margin: 0;
  min-height: 2.5rem;
}

.inbox-filter-toolbar .secondary,
.inbox-filter-toolbar .inbox-filter-window {
  min-height: 2.5rem;
}

.inbox-toolbar-icon-button {
  width: 2.5rem;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  flex: 0 0 2.5rem;
  font-size: 1rem;
  line-height: 1;
}

.inbox-filter-window {
  min-width: 8.75rem;
}

.inbox-filter-toggle-button {
  padding-left: 0.55rem;
  padding-right: 0.55rem;
}

.inbox-filter-toggle-button.is-active {
  border-color: var(--nav-active-line, #9dcfb4);
  background: color-mix(
    in srgb,
    var(--surface2, #eef2f6) 78%,
    var(--accent, #1f8a54) 22%
  );
}

.inbox-date-range-panel {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 0.8rem;
  border: 1px solid var(--field-line, #c6d2dc);
  border-radius: 0.75rem;
  background: color-mix(
    in srgb,
    var(--panel-bg, #f8fafc) 82%,
    var(--surface, #ffffff) 18%
  );
}

.inbox-date-range-panel[hidden] {
  display: none;
}

.inbox-date-range-panel .job-datetime-field {
  min-width: 0;
  margin-top: 0;
}

.inbox-threads-card .inbox-threads-scroll {
  max-height: calc(100vh - 15rem);
  min-height: 22rem;
  overflow-y: auto;
  overflow-x: auto;
}

@media (max-width: 1024px) {
  .inbox-threads-card .inbox-threads-scroll {
    max-height: 24rem;
  }
}

.inbox-pagination-row {
  margin-top: 0.6rem;
  justify-content: space-between;
  align-items: center;
}

.inbox-thread-row.unread td {
  background: color-mix(in srgb, var(--surface, #fff) 86%, #cbead6 14%);
}

.inbox-thread-row.active td {
  background: color-mix(in srgb, var(--surface, #fff) 82%, #b3dcf6 18%);
}

.inbox-thread-primary.is-unread,
.truncate-cell.is-unread {
  font-weight: 700;
}

.inbox-unread-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.5rem;
  min-width: 1.45rem;
  height: 1.45rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: #d64545;
  color: #fff;
  font-size: 0.74rem;
  line-height: 1;
  font-weight: 700;
}

.inbox-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 12rem;
  text-align: center;
  padding: 1.25rem;
}

.inbox-empty-state-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  color: var(--muted);
  background: color-mix(in srgb, var(--surface2, #eef2f6) 82%, transparent);
}

.inbox-empty-state-icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

.inbox-empty-state-copy {
  max-width: 18rem;
}

@media (max-width: 720px) {
  .inbox-filter-toolbar {
    gap: 0.65rem;
  }

  .inbox-filter-window {
    min-width: 0;
    flex: 1 1 12rem;
  }

  .inbox-filter-toolbar-main,
  .inbox-filter-toolbar-actions {
    width: 100%;
  }

  .inbox-date-range-panel {
    grid-template-columns: minmax(0, 1fr);
  }
}

.inbox-thread-header {
  display: flex;
  gap: 0.52rem;
  align-items: flex-start;
}

.inbox-thread-avatar {
  width: 1.92rem;
  height: 1.92rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--line, #d6dee6) 75%, transparent);
  background: color-mix(in srgb, var(--surface, #fff) 90%, #d9ebf7 10%);
  color: #466780;
  flex: 0 0 auto;
}

.inbox-thread-avatar svg {
  width: 1rem;
  height: 1rem;
}

.inbox-thread-header-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.14rem;
}

.inbox-thread-header-title {
  font-weight: 700;
  line-height: 1.2;
  font-size: 0.95rem;
}

.inbox-thread-header-line {
  color: var(--muted, #4f6576);
  font-size: 0.8rem;
  line-height: 1.2;
  display: flex;
  gap: 0.22rem;
  flex-wrap: wrap;
  align-items: center;
}

.inbox-copy-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
}

.inbox-copy-btn {
  border: 0;
  background: transparent;
  color: currentColor;
  opacity: 0.62;
  border-radius: 0.36rem;
  width: 1.15rem;
  height: 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.inbox-copy-btn:hover {
  opacity: 1;
  background: color-mix(in srgb, var(--surface2, #f1f5f9) 86%, transparent);
}

.inbox-copy-btn svg {
  width: 0.74rem;
  height: 0.74rem;
}

.inbox-thread-summary {
  padding: 0.5rem 0.62rem !important;
  margin-bottom: 0.5rem;
}

.inbox-meta-summary {
  margin-bottom: 0.3rem;
}

.inbox-meta-line {
  color: var(--muted, #4f6576);
  font-size: 0.78rem;
  line-height: 1.3;
}

.inbox-technical-details {
  margin-top: 0.35rem;
  color: var(--muted, #4f6576);
  font-size: 0.76rem;
}

.inbox-technical-details summary {
  cursor: pointer;
}

.inbox-technical-body {
  margin-top: 0.25rem;
  display: grid;
  gap: 0.12rem;
}

.inbox-action-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.12rem 0.5rem;
  font-size: 0.73rem;
  font-weight: 700;
  margin-bottom: 0.24rem;
}

.inbox-action-chip.confirm {
  background: color-mix(in srgb, #d6f3e4 88%, #43a06f 12%);
  color: #206446;
}

.inbox-action-chip.reschedule {
  background: color-mix(in srgb, #f8ecd3 86%, #da9a34 14%);
  color: #8b5e1d;
}

.ui-theme-switch.is-dark .ui-theme-switch-knob {
  transform: translateX(38px);
}

.ui-theme-switch:not(.is-dark) .ui-theme-switch-icon-light,
.ui-theme-switch.is-dark .ui-theme-switch-icon-dark {
  color: var(--theme-switch-icon-active);
}

.ui-theme-switch:focus-visible .ui-theme-switch-track {
  box-shadow: none;
}

.ui-theme-switch:focus-visible {
  outline: none !important;
  box-shadow: none;
}

.ui-lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #f8fafc;
  padding: 3px;
  min-height: 36px;
}

.ui-lang-switch-btn {
  border: 0 !important;
  background: transparent !important;
  color: #475569 !important;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  min-width: 40px;
  min-height: 28px;
  border-radius: 999px;
  padding: 7px 10px;
}

.ui-lang-switch-btn[aria-pressed="true"] {
  background: rgba(15, 23, 42, 0.08) !important;
  color: #0f172a !important;
}

html.dark .ui-lang-switch {
  border-color: #334155;
  background: #111317;
}

html.dark .ui-lang-switch-btn {
  color: #94a3b8 !important;
}

html.dark .ui-lang-switch-btn[aria-pressed="true"] {
  background: rgba(148, 163, 184, 0.2) !important;
  color: #e2e8f0 !important;
}

.ui-theme-switch:focus .ui-theme-switch-track,
.ui-theme-switch:focus-visible .ui-theme-switch-track,
.ui-theme-switch:active .ui-theme-switch-track,
.ui-theme-switch:focus-within .ui-theme-switch-track {
  border-color: var(--theme-switch-border, #cbd5e1) !important;
  background: var(--theme-switch-track-bg-neutral, #f8fafc) !important;
  box-shadow: none !important;
}

html.dark .ui-theme-switch:hover .ui-theme-switch-track,
html.dark .ui-theme-switch:focus .ui-theme-switch-track,
html.dark .ui-theme-switch:focus-visible .ui-theme-switch-track,
html.dark .ui-theme-switch:active .ui-theme-switch-track,
html.dark .ui-theme-switch:focus-within .ui-theme-switch-track {
  border-color: var(--theme-switch-border-dark, #334155) !important;
  background: var(--theme-switch-track-bg-neutral-dark, #111317) !important;
}

html.dark .ui-theme-switch-track {
  border-color: var(--theme-switch-border-dark, #334155);
  background: var(--theme-switch-track-bg-neutral-dark, #111317);
}

@media (prefers-reduced-motion: reduce) {
  .ui-theme-switch-icon,
  .ui-theme-switch-knob {
    transition-duration: 20ms;
  }
}

.ui-input {
  display: block;
  width: 100%;
  height: 44px;
  line-height: 44px;
  padding-left: 14px;
  padding-right: 14px;
  box-sizing: border-box;
  border-radius: 0.75rem;
  outline: none;
}

.ui-input:focus-visible {
  outline: none;
  border-color: rgb(34 197 94 / 0.95);
  box-shadow: 0 0 0 2px rgb(34 197 94 / 0.35);
}

select.ui-input {
  line-height: 1.25rem;
  padding-top: 0;
  padding-bottom: 0;
}

input[type="number"].ui-input {
  appearance: textfield;
  -moz-appearance: textfield;
}

input[type="number"].ui-input::-webkit-outer-spin-button,
input[type="number"].ui-input::-webkit-inner-spin-button {
  margin: 0;
}

.menu-item-disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
}

.menu-item-danger:hover,
.menu-item-danger:focus-visible {
  border-color: rgba(239, 68, 68, 0.6) !important;
  color: #f87171 !important;
}

.badge,
.status-pill,
.pill {
  border-radius: 999px;
}

.ui-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid var(--pill-info-border);
  background: var(--pill-info-bg);
  color: var(--pill-info-text);
  padding: 3px 9px;
  font-size: 12px;
  line-height: 1.2;
}

.ui-pill-success {
  border-color: var(--pill-success-border);
  background: var(--pill-success-bg);
  color: var(--pill-success-text);
}

.ui-pill-warn {
  border-color: var(--pill-warn-border);
  background: var(--pill-warn-bg);
  color: var(--pill-warn-text);
}

.ui-pill-error {
  border-color: var(--pill-error-border);
  background: var(--pill-error-bg);
  color: var(--pill-error-text);
}

.ui-pill-info {
  border-color: var(--pill-info-border);
  background: var(--pill-info-bg);
  color: var(--pill-info-text);
}

.ui-table-head,
.ui-table-head tr {
  background: var(--table-head-bg);
}

.ui-table-head {
  border-top: 1px solid var(--table-head-border);
  border-bottom: 1px solid var(--table-head-border);
}

.ui-table-head th {
  background: var(--table-head-bg);
  color: var(--table-head-text);
  border-bottom: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.ui-card {
  border: 1px solid var(--line, #d6dee6);
  background: var(--surface, #fff);
}

.ui-card-hover {
  transition:
    transform 0.14s ease,
    box-shadow 0.14s ease,
    border-color 0.14s ease;
}

.ui-card-hover:hover {
  transform: translateY(-1px);
  border-color: var(--card-hover-border);
  box-shadow: var(--card-hover-shadow);
}

.ui-accent-top-success,
.ui-accent-top-warn,
.ui-accent-top-error,
.ui-accent-top-info {
  position: relative;
  overflow: hidden;
  border-radius: inherit;
  isolation: isolate;
}

.ui-accent-top-success::before,
.ui-accent-top-warn::before,
.ui-accent-top-error::before,
.ui-accent-top-info::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
}

.ui-accent-top-success::before {
  background: #2f8f61;
}

.ui-accent-top-warn::before {
  background: #bf8a3b;
}

.ui-accent-top-error::before {
  background: #b55656;
}

.ui-accent-top-info::before {
  background: #5b7da0;
}

.page-hero {
  position: relative;
}

.page-hero-shell > section:first-child {
  position: relative;
  overflow: hidden;
  border-color: var(--hero-border, var(--line));
  background:
    linear-gradient(
      90deg,
      var(--hero-surface-tint, rgba(60, 160, 103, 0.04)) 0%,
      transparent 68%
    ),
    var(--surface);
}

.page-hero-shell > section:first-child::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    90deg,
    var(--hero-glow-start, rgba(60, 160, 103, 0.2)) 0%,
    var(--hero-glow-mid, rgba(60, 160, 103, 0.08)) 36%,
    transparent 74%
  );
}

.page-hero-shell > section:first-child > * {
  position: relative;
  z-index: 1;
}

.table-primitive-wrap {
  overflow-x: auto;
}

.table-primitive-wrap .table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.jobs-table th.jobs-wa-col,
.jobs-table td.jobs-wa-col {
  width: 160px;
  max-width: 160px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jobs-wa-pill {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
}

.jobs-wa-pill-text {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-datetime-field {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.job-datetime-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text, #10212d);
}

.job-datetime-input {
  width: 100%;
  min-height: 2.75rem;
  border: 1px solid var(--field-line, #c6d2dc);
  border-radius: 0.75rem;
  background: var(--field-bg, #ffffff);
  color: var(--text, #10212d);
  padding: 0.65rem 1rem;
}

.job-datetime-input:hover {
  border-color: var(--nav-active-line, #9dcfb4);
}

.job-datetime-input:focus-visible {
  outline: none;
  border-color: #22c55e;
  box-shadow: 0 0 0 2px rgb(34 197 94 / 0.4);
}

.job-datetime-help {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted, #4f6576);
}

.job-datetime-input::-webkit-calendar-picker-indicator {
  opacity: 0.82;
  filter: none;
}

html.dark .job-datetime-input::-webkit-calendar-picker-indicator {
  filter: invert(0.86);
}

.job-wizard-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.job-wizard-footer-left {
  min-width: 5.5rem;
}

.job-wizard-footer-right {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.job-wizard-submit-actions {
  margin-top: 0;
  display: inline-flex;
  gap: 0.5rem;
}

.job-wizard-nav-btn[disabled] {
  opacity: 0.45;
  pointer-events: none;
}
