:root {
  color-scheme: dark;
  --bg: #202426;
  --shell: #0d1112;
  --shell-2: #121719;
  --surface: #181f21;
  --surface-2: #20282b;
  --surface-3: #263033;
  --field: #111719;
  --hover: #2d383b;
  --ink: #f3f6f2;
  --muted: #98a2a3;
  --muted-2: #6f7a7b;
  --line: #2c373a;
  --line-strong: #465154;
  --accent: #83b6a0;
  --accent-2: #547f70;
  --blue: #3c7dff;
  --yellow: #ffd51f;
  --pink: #ff6bd6;
  --orange: #ff995d;
  --danger: #ff7474;
  --shadow: 0 24px 70px rgba(3, 9, 8, 0.45);
  --sidebar-width: 296px;
  --sidebar-mini-width: 76px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 15px;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px 12px;
  background: var(--surface-3);
  color: var(--ink);
  cursor: pointer;
}

button:hover:not(:disabled) {
  border-color: var(--line-strong);
  background: var(--hover);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.icon-button {
  display: grid;
  width: 36px;
  min-height: 36px;
  place-items: center;
  padding: 0;
}

input,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 11px;
  color: var(--ink);
  background: var(--field);
}

input:focus,
select:focus,
button:focus-visible {
  outline: 3px solid rgba(131, 182, 160, 0.18);
  outline-offset: 1px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 22px;
  font-weight: 760;
}

h2 {
  font-size: 18px;
  font-weight: 760;
}

h3 {
  margin-top: 18px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

p {
  color: var(--muted);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

[hidden] {
  display: none !important;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.button-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-screen {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 36px;
  background:
    radial-gradient(circle at 24% 22%, rgba(131, 182, 160, 0.06), transparent 28%),
    linear-gradient(135deg, #090d0e 0%, #121719 54%, #202426 100%);
}

.login-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 460px);
  gap: 28px;
  width: min(1040px, 100%);
  align-items: stretch;
}

.login-copy,
.login-card {
  border: 1px solid rgba(160, 169, 170, 0.14);
  border-radius: 8px;
  background: rgba(16, 23, 22, 0.78);
  box-shadow: var(--shadow);
}

.login-copy {
  display: grid;
  align-content: space-between;
  min-height: 430px;
  padding: 34px;
}

.login-copy h1 {
  max-width: 620px;
  margin-top: 58px;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 0.98;
}

.login-copy p {
  max-width: 540px;
  margin-top: 18px;
  color: #c0c6c5;
}

.login-card {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 32px;
  background: #111719;
}

.login-card h2 {
  font-size: 26px;
}

.login-assurance {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}

.login-assurance span,
.login-note,
.login-error {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: #c3cac9;
  background: rgba(31, 38, 41, 0.82);
  font-size: 13px;
}

.login-error {
  border-radius: 7px;
  color: #ffd1d1;
  background: rgba(124, 41, 41, 0.28);
  border-color: rgba(255, 116, 116, 0.42);
}

.login-note {
  border-radius: 7px;
  color: var(--muted);
}

.google-login {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 52px;
  border-color: rgba(255, 255, 255, 0.16);
  background: #edf1f0;
  color: #161b1c;
  font-weight: 780;
}

.google-login:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.24);
  background: #ffffff;
}

.google-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--blue);
  font-weight: 900;
}

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
  padding: 18px;
  background: var(--bg);
}

.app-shell.sidebar-mini {
  grid-template-columns: var(--sidebar-mini-width) minmax(0, 1fr);
}

.sidebar,
.main-shell {
  min-width: 0;
  border: 1px solid rgba(160, 169, 170, 0.14);
  background: var(--shell);
  box-shadow: var(--shadow);
}

.sidebar {
  position: sticky;
  top: 18px;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 18px;
  height: calc(100vh - 36px);
  padding: 18px;
  border-radius: 8px 0 0 8px;
  border-right: 0;
}

.sidebar-topline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.sidebar-collapse-toggle {
  width: 26px;
  min-width: 26px;
  min-height: 26px;
  height: 26px;
  padding: 0;
}

.app-shell.sidebar-mini .sidebar {
  gap: 14px;
  padding: 14px 10px;
}

.app-shell.sidebar-mini .sidebar-topline,
.app-shell.sidebar-mini .nav-item,
.app-shell.sidebar-mini .sidebar-footer {
  justify-items: center;
}

.app-shell.sidebar-mini .sidebar-topline {
  grid-template-columns: 1fr;
}

.app-shell.sidebar-mini .brand {
  justify-content: center;
}

.app-shell.sidebar-mini .brand div,
.app-shell.sidebar-mini .nav-item > span:not(.nav-icon),
.app-shell.sidebar-mini .sidebar-projects,
.app-shell.sidebar-mini .sidebar-footer #status-badge,
.app-shell.sidebar-mini .sidebar-footer .control-label {
  display: none;
}

.app-shell.sidebar-mini .nav-list {
  gap: 8px;
}

.app-shell.sidebar-mini .nav-item {
  grid-template-columns: 1fr;
  min-height: 44px;
  padding: 7px;
}

.app-shell.sidebar-mini .nav-icon {
  width: 30px;
  height: 30px;
}

.app-shell.sidebar-mini .sidebar-footer {
  grid-template-columns: 1fr;
}

.app-shell.sidebar-mini .sidebar-footer-actions {
  grid-template-columns: 1fr;
  justify-items: center;
}

.app-shell.sidebar-mini .sidebar-footer .sidebar-footer-button {
  width: 42px;
  min-width: 42px;
  padding: 0;
}

.main-shell {
  min-height: calc(100vh - 36px);
  padding: 18px 22px 24px;
  border-radius: 0 8px 8px 0;
  background: var(--shell-2);
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.brand div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand strong {
  font-size: 20px;
  line-height: 1;
}

.brand span:not(.mark) {
  color: var(--muted);
  font-size: 13px;
}

.mark {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(120, 255, 192, 0.24);
  border-radius: 10px;
  background: #18183a;
  box-shadow: 0 0 18px rgba(0, 255, 137, 0.14);
}

.mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-list {
  display: grid;
  gap: 7px;
  align-content: start;
}

.nav-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 46px;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  text-align: left;
  font-weight: 720;
}

.nav-item.active {
  color: var(--ink);
  border-color: rgba(160, 169, 170, 0.12);
  background: var(--surface-3);
}

.nav-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 7px;
  color: var(--muted);
}

.nav-icon svg,
.topbar-actions svg,
.search-box svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.sidebar-collapse-toggle svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.nav-icon-home {
  color: var(--accent);
  background: rgba(131, 182, 160, 0.1);
}

.nav-icon-upload {
  color: var(--blue);
  background: rgba(60, 125, 255, 0.15);
}

.nav-icon-jobs {
  color: var(--yellow);
  background: rgba(255, 213, 31, 0.15);
}

.nav-icon-evidence {
  color: var(--pink);
  background: rgba(255, 107, 214, 0.15);
}

.nav-icon-activity {
  color: var(--orange);
  background: rgba(255, 153, 93, 0.15);
}

.sidebar-projects {
  display: grid;
  align-content: start;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px dashed rgba(160, 169, 170, 0.12);
}

.sidebar-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

.sidebar-section-header button {
  display: grid;
  width: 22px;
  height: 22px;
  min-height: 22px;
  place-items: center;
  border-radius: 50%;
  padding: 0;
  font-weight: 900;
}

.project-rail {
  display: grid;
  gap: 8px;
}

.project-chip {
  appearance: none;
  border: 0;
  background: transparent;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: center;
  padding: 4px 6px;
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.project-chip:hover,
.project-chip.active {
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.project-chip::before {
  content: attr(data-initial);
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 6px;
  color: #111719;
  background: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.project-chip:nth-child(2n)::before {
  background: var(--yellow);
}

.project-chip:nth-child(3n)::before {
  color: #fff;
  background: var(--blue);
}

.project-chip.muted::before {
  content: "-";
  color: var(--muted);
  background: var(--surface-3);
}

.project-chip.muted {
  cursor: default;
}

.sidebar-footer {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: end;
  align-self: end;
  padding-top: 12px;
  border-top: 1px dashed rgba(160, 169, 170, 0.12);
}

.sidebar-footer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.sidebar-footer .sidebar-footer-button {
  display: inline-grid;
  grid-template-columns: auto auto;
  gap: 8px;
  justify-content: center;
  align-items: center;
  height: auto;
  min-height: 38px;
  width: 100%;
}

.sidebar-footer .sidebar-footer-button .control-label {
  font-size: 12px;
  font-weight: 800;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(260px, 360px) auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.page-title {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.page-title p,
.eyebrow {
  color: var(--muted);
  font-size: 13px;
}

.search-box {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 8px;
  align-items: center;
  min-width: 0;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: var(--surface);
  color: var(--muted);
}

.search-box input {
  min-height: 0;
  border: 0;
  padding: 0;
  background: transparent;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-actions button {
  display: grid;
  width: 38px;
  min-height: 38px;
  place-items: center;
  padding: 0;
  color: var(--muted);
  background: transparent;
}

.user-pill {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-width: 138px;
  max-width: 230px;
  border-left: 1px solid var(--line);
  padding-left: 12px;
}

.user-pill span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #586369;
  color: #f7faf9;
  font-weight: 800;
}

.user-pill strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}

.metric-card {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 18px 20px;
  border-right: 1px dashed rgba(160, 169, 170, 0.14);
}

.metric-card:last-child {
  border-right: 0;
}

.metric-card span {
  color: var(--muted);
  font-weight: 720;
}

.metric-card strong {
  font-size: 30px;
  line-height: 1;
}

.metric-card small {
  color: var(--accent);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(420px, 1.2fr);
  gap: 16px;
  align-items: start;
  margin-top: 16px;
}

.dashboard-grid > .view-section {
  grid-column: 1 / -1;
}

.home-launchpad {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.75fr);
  gap: 14px;
  align-items: stretch;
}

.home-command-panel,
.home-launch-card,
.home-workflow-card,
.home-continue-panel,
.home-release-panel,
.home-client-panel {
  position: relative;
  overflow: hidden;
}

.home-command-panel {
  display: grid;
  min-height: 280px;
  align-content: space-between;
  gap: 24px;
  border: 1px solid rgba(131, 182, 160, 0.36);
  border-radius: 8px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(131, 182, 160, 0.16), transparent 34%),
    linear-gradient(115deg, rgba(60, 125, 255, 0.12), transparent 56%),
    linear-gradient(160deg, rgba(255, 153, 93, 0.12), transparent 72%),
    var(--surface);
  box-shadow: var(--shadow);
}

.home-command-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 18% 82%, rgba(255, 255, 255, 0.05)),
    repeating-linear-gradient(90deg, transparent 0 28px, rgba(255, 255, 255, 0.025) 28px 29px);
  mask-image: linear-gradient(180deg, #000, transparent 78%);
}

.home-command-copy,
.home-command-actions,
.home-system-strip {
  position: relative;
  z-index: 1;
}

.home-eyebrow {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 12px;
  border: 1px solid rgba(131, 182, 160, 0.34);
  border-radius: 999px;
  padding: 5px 9px;
  color: #b8d8cc;
  background: rgba(13, 21, 20, 0.72);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-command-copy h2 {
  max-width: 720px;
  margin: 0 0 10px;
  background: linear-gradient(92deg, #f5f7f1, #98d4c0 42%, #ffd574 72%, #ff995d);
  background-clip: text;
  color: transparent;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 0.98;
  letter-spacing: 0;
}

.home-command-copy p {
  max-width: 64ch;
  color: #bec9c5;
  font-size: 15px;
  line-height: 1.55;
}

.home-command-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-command-actions button,
.home-launch-card button {
  min-height: 40px;
  border-color: rgba(131, 182, 160, 0.3);
  background: rgba(21, 29, 29, 0.78);
  backdrop-filter: blur(10px);
}

.home-command-actions .home-primary-action,
.home-launch-card button {
  border-color: rgba(131, 182, 160, 0.62);
  color: #f7fff9;
  background:
    linear-gradient(90deg, rgba(131, 182, 160, 0.42), rgba(60, 125, 255, 0.24)),
    rgba(31, 44, 42, 0.9);
  box-shadow: 0 0 24px rgba(131, 182, 160, 0.16);
}

.home-system-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-system-strip span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  border: 1px solid rgba(160, 169, 170, 0.18);
  border-radius: 999px;
  padding: 4px 9px;
  color: #d7dfdc;
  background: rgba(8, 14, 14, 0.54);
  font-size: 12px;
  font-weight: 760;
}

.home-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: 0 0 14px currentColor;
}

.home-status-dot.online {
  color: #83d8ad;
  background: #83d8ad;
}

.home-status-dot.worker {
  color: #ffd51f;
  background: #ffd51f;
}

.home-status-dot.storage {
  color: #78a8ff;
  background: #78a8ff;
}

.home-launch-card {
  display: grid;
  min-height: 280px;
  align-content: end;
  gap: 12px;
  border: 1px solid rgba(255, 213, 31, 0.34);
  border-radius: 8px;
  padding: 18px;
  background:
    linear-gradient(180deg, transparent 24%, rgba(7, 12, 12, 0.84)),
    radial-gradient(circle at 68% 30%, rgba(255, 213, 31, 0.86), transparent 22%),
    radial-gradient(circle at 34% 62%, rgba(60, 125, 255, 0.7), transparent 28%),
    linear-gradient(135deg, #121819, #496a69 52%, #d8745f);
}

.home-launch-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
}

.home-card-tag {
  width: fit-content;
  border: 1px solid rgba(255, 213, 31, 0.48);
  border-radius: 999px;
  padding: 4px 8px;
  color: #ffe28a;
  background: rgba(12, 14, 9, 0.64);
  font-size: 11px;
  font-weight: 780;
  text-transform: uppercase;
}

.home-launch-card strong {
  font-size: 24px;
  line-height: 1.08;
}

.home-launch-card span:not(.home-card-tag) {
  color: #dae2de;
  line-height: 1.45;
}

.home-workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.home-workflow-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-width: 0;
  min-height: 236px;
  padding: 18px;
  text-align: left;
  overflow: hidden;
  background: #101719;
  isolation: isolate;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    filter 160ms ease;
}

.home-workflow-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(5, 10, 10, 0.04) 0%, rgba(5, 10, 10, 0.34) 46%, rgba(5, 10, 10, 0.88) 100%),
    linear-gradient(90deg, rgba(5, 10, 10, 0.5), transparent 56%);
  pointer-events: none;
  transition: background 160ms ease;
}

.home-workflow-card::after {
  content: "";
  position: absolute;
  inset: auto 16px 14px 16px;
  z-index: 1;
  height: 42%;
  border-radius: 20px;
  background: rgba(7, 13, 13, 0.42);
  filter: blur(22px);
  opacity: 0.72;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.home-workflow-card-new {
  border-color: rgba(231, 210, 122, 0.34);
}

.home-workflow-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 10px;
  border: 1px solid rgba(231, 210, 122, 0.62);
  border-radius: 999px;
  background: rgba(24, 27, 20, 0.78);
  color: #f3d876;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
}

.home-workflow-card:hover:not(:disabled) {
  transform: translateY(-3px);
  border-color: rgba(131, 182, 160, 0.72);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(131, 182, 160, 0.18);
}

.home-workflow-card:hover:not(:disabled)::before {
  background:
    linear-gradient(180deg, rgba(5, 10, 10, 0) 0%, rgba(5, 10, 10, 0.24) 42%, rgba(5, 10, 10, 0.86) 100%),
    linear-gradient(90deg, rgba(5, 10, 10, 0.38), transparent 58%);
}

.home-workflow-card:hover:not(:disabled)::after {
  opacity: 0.9;
}

.home-workflow-card .workload-preview {
  position: absolute;
  inset: 0;
  z-index: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: inherit;
  transform: scale(1.01);
  transition: transform 220ms ease, filter 220ms ease;
}

.home-workflow-card:hover:not(:disabled) .workload-preview {
  transform: scale(1.055);
  filter: saturate(1.08) contrast(1.05);
}

.home-workflow-body {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.home-workflow-body strong {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #f7fbf8;
  font-size: clamp(20px, 1.7vw, 29px);
  line-height: 1.02;
  letter-spacing: 0;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.56);
}

.home-workflow-body small {
  display: -webkit-box;
  max-width: 96%;
  overflow: hidden;
  color: rgba(230, 239, 234, 0.78);
  font-size: 13px;
  font-weight: 780;
  line-height: 1.25;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.64);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-workflow-body .workload-card-title-icon {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(221, 239, 230, 0.28);
  border-radius: 12px;
  background: rgba(7, 14, 14, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 24px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(10px);
}

.home-workflow-body .workload-card-title-icon svg,
.home-workflow-body .workload-card-title-icon img {
  width: 22px;
  height: 22px;
}

.home-metric-strip {
  margin-top: 14px;
}

.home-dashboard-grid > .view-section[data-view="overview"] {
  grid-column: auto;
}

.home-dashboard-grid > .view-section:not([data-view="overview"]) {
  grid-column: 1 / -1;
}

.home-continue-grid,
.home-client-grid {
  display: grid;
  gap: 8px;
}

.home-continue-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-continue-grid button {
  display: grid;
  justify-items: start;
  min-height: 118px;
  gap: 6px;
  padding: 12px;
  text-align: left;
  background: rgba(12, 18, 18, 0.5);
}

.home-continue-grid strong,
.home-client-grid span {
  color: var(--ink);
}

.home-continue-grid small {
  color: var(--muted);
  line-height: 1.35;
}

.home-mini-icon {
  display: inline-grid;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgba(131, 182, 160, 0.34), rgba(60, 125, 255, 0.16)),
    rgba(255, 255, 255, 0.04);
}

.home-mini-billing {
  background:
    linear-gradient(135deg, rgba(255, 213, 31, 0.38), rgba(255, 153, 93, 0.14)),
    rgba(255, 255, 255, 0.04);
}

.home-mini-activity {
  background:
    linear-gradient(135deg, rgba(60, 125, 255, 0.38), rgba(255, 107, 214, 0.14)),
    rgba(255, 255, 255, 0.04);
}

.home-release-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-release-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 10px;
  align-items: start;
  border: 1px solid rgba(160, 169, 170, 0.14);
  border-radius: 7px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.025);
}

.home-release-icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(131, 182, 160, 0.28);
  background: rgba(131, 182, 160, 0.1);
  color: var(--accent);
  box-shadow: inset 0 0 24px rgba(131, 182, 160, 0.08);
}

.home-release-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-release-icon-catalog {
  color: #83b6a0;
  background: linear-gradient(135deg, rgba(131, 182, 160, 0.18), rgba(127, 224, 176, 0.05));
}

.home-release-icon-tutorials {
  color: #f1d27c;
  background: linear-gradient(135deg, rgba(241, 210, 124, 0.18), rgba(255, 184, 107, 0.05));
}

.home-release-icon-preview {
  color: #8bb8ff;
  background: linear-gradient(135deg, rgba(139, 184, 255, 0.18), rgba(117, 199, 255, 0.05));
}

.home-release-list small {
  color: var(--muted);
  line-height: 1.35;
}

.home-client-panel {
  grid-column: 1 / -1;
}

.home-client-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.home-client-grid span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid rgba(160, 169, 170, 0.15);
  border-radius: 7px;
  padding: 7px 9px;
  background: rgba(12, 18, 18, 0.48);
  font-weight: 760;
}

.home-client-grid img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
}

.panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--surface);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 14px;
}

.panel-header-actions-only {
  justify-content: flex-end;
  margin-bottom: 10px;
}

.panel-header p {
  margin-top: 4px;
  font-size: 13px;
}

.upload-form {
  display: grid;
  max-width: 640px;
  gap: 12px;
}

.workload-catalog {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.workload-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 14px;
  min-height: 132px;
  padding: 10px;
  text-align: left;
  background: var(--field);
}

.workload-card.active {
  border-color: rgba(131, 182, 160, 0.66);
  background: #182320;
}

.workload-card-disabled {
  opacity: 0.76;
  cursor: default;
}

.workload-card-disabled:hover {
  border-color: var(--line);
  background: var(--field);
}

.workload-preview {
  display: block;
  min-height: 110px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background-color: #101719;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
}

.workload-preview-checker {
  background:
    linear-gradient(rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.16)),
    conic-gradient(#d7dadd 25%, #20282b 0 50%, #d7dadd 0 75%, #20282b 0) 0 0 / 28px 28px;
}

.workload-preview-depth {
  background-image: url("/portal/assets/workloads/depth.webp");
}

.workload-preview-inpaint {
  background-image: url("/portal/assets/workloads/inpainting.webp");
}

.workload-preview-mask-refine {
  background-image: url("/portal/assets/workloads/mask-refine.webp");
}

.workload-preview-aov {
  background-image: url("/portal/assets/workloads/aov.webp");
}

.workload-preview-camera-tracking {
  background-image: url("/portal/assets/workloads/camera-tracking.webp");
}

.workload-preview-foreground-removal {
  background-image: url("/portal/assets/workloads/foreground-removal.webp");
}

.workload-preview-sdr-to-hdr {
  background-image: url("/portal/assets/workloads/sdr-to-hdr.webp");
}

.workload-preview-omni {
  background-image: url("/portal/assets/workloads/omni.webp");
}

.workload-preview-roto {
  background:
    linear-gradient(135deg, transparent 28%, rgba(116, 199, 180, 0.9) 28% 31%, transparent 31%),
    radial-gradient(circle at 48% 42%, rgba(206, 230, 219, 0.88), transparent 24%),
    linear-gradient(135deg, #111819, #273131 48%, #101516);
}

.workload-card-body {
  display: grid;
  align-content: center;
  gap: 8px;
  min-width: 0;
}

.workload-card-body strong {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 16px;
}

.workload-title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.workload-card-body span {
  color: var(--muted);
  line-height: 1.45;
}

.workload-card-body small {
  color: var(--accent);
  font-weight: 720;
}

.workload-card-title-icon {
  width: 18px;
  height: 18px;
}

.workload-card-title-icon img {
  width: 18px;
  height: 18px;
}

.coming-soon-badge {
  width: fit-content;
  border: 1px solid rgba(218, 165, 32, 0.55);
  border-radius: 999px;
  padding: 3px 8px;
  color: #e5b64e;
  background: rgba(218, 165, 32, 0.1);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tutorial-layout {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 14px;
  min-height: 560px;
}

.tutorial-list {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: rgba(7, 14, 14, 0.42);
}

.tutorial-list-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 10px;
  align-items: center;
  width: 100%;
  border: 1px solid rgba(160, 169, 170, 0.13);
  border-radius: 7px;
  padding: 9px;
  text-align: left;
  background: rgba(255, 255, 255, 0.025);
}

.tutorial-list-item:hover,
.tutorial-list-item.active {
  border-color: rgba(131, 182, 160, 0.48);
  background: rgba(131, 182, 160, 0.09);
}

.tutorial-list-item strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tutorial-list-item-body {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.tutorial-list-item-body > span,
.tutorial-list-item-body > small {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tutorial-detail,
.tutorial-empty {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 0%, rgba(131, 182, 160, 0.1), transparent 25%),
    rgba(10, 18, 18, 0.52);
}

.tutorial-detail {
  display: grid;
  align-content: start;
  gap: 12px;
  overflow: auto;
  padding: 16px;
}

.tutorial-empty {
  display: grid;
  place-content: center;
  gap: 7px;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.tutorial-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(131, 182, 160, 0.22);
  border-radius: 8px;
  padding: 14px;
  background: rgba(131, 182, 160, 0.07);
}

.tutorial-hero .workflow-icon {
  width: 34px;
  height: 34px;
}

.tutorial-hero .workflow-icon img,
.tutorial-hero .workflow-icon svg {
  width: 30px;
  height: 30px;
}

.tutorial-hero h2 {
  margin: 0;
  font-size: 24px;
}

.tutorial-demo-panel {
  display: grid;
  grid-template-columns: minmax(160px, 240px) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  border: 1px solid rgba(131, 182, 160, 0.28);
  border-radius: 8px;
  padding: 12px;
  background:
    linear-gradient(135deg, rgba(131, 182, 160, 0.13), rgba(10, 18, 18, 0.22)),
    rgba(255, 255, 255, 0.028);
}

.tutorial-demo-panel .workload-preview {
  min-height: 170px;
}

.tutorial-demo-content {
  display: grid;
  align-content: center;
  gap: 10px;
  min-width: 0;
}

.tutorial-demo-eyebrow {
  width: fit-content;
  border: 1px solid rgba(241, 210, 124, 0.34);
  border-radius: 999px;
  padding: 3px 8px;
  color: #e8cc65;
  background: rgba(241, 210, 124, 0.08);
  font-size: 10px;
  font-weight: 820;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tutorial-demo-content h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 24px;
}

.tutorial-demo-content p {
  max-width: 70ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.tutorial-demo-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tutorial-demo-facts span {
  border: 1px solid rgba(160, 169, 170, 0.16);
  border-radius: 999px;
  padding: 4px 9px;
  color: #c9d3d2;
  background: rgba(255, 255, 255, 0.035);
  font-size: 11px;
  font-weight: 760;
}

.tutorial-demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.tutorial-submit-action {
  min-width: 160px;
}

.tutorial-hero p,
.tutorial-page p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.48;
}

.tutorial-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.tutorial-meta span,
.tutorial-callout {
  border: 1px solid rgba(241, 210, 124, 0.26);
  border-radius: 999px;
  padding: 3px 8px;
  color: #e8cc65;
  background: rgba(241, 210, 124, 0.08);
  font-size: 11px;
  font-weight: 760;
}

.tutorial-page {
  border: 1px solid rgba(160, 169, 170, 0.14);
  border-radius: 8px;
  padding: 13px;
  background: rgba(255, 255, 255, 0.025);
}

.tutorial-page h4 {
  margin: 0 0 7px;
  font-size: 16px;
}

.tutorial-steps {
  display: grid;
  gap: 7px;
  margin: 8px 0 0;
  padding-left: 19px;
  color: #c9d3d2;
}

.tutorial-callout {
  display: block;
  border-radius: 7px;
  margin-top: 8px;
  line-height: 1.45;
}

.tutorial-table-wrap {
  overflow: auto;
  margin-top: 9px;
}

.tutorial-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.tutorial-table-wrap th,
.tutorial-table-wrap td {
  border-bottom: 1px solid rgba(160, 169, 170, 0.12);
  padding: 7px 8px;
  text-align: left;
  vertical-align: top;
}

.tutorial-table-wrap th {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4, 8, 8, 0.74);
  backdrop-filter: blur(12px);
}

.modal-backdrop[hidden] {
  display: none;
}

.workload-submit-modal {
  width: min(960px, 100%);
  max-height: min(860px, calc(100vh - 48px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.46);
}

.workload-submit-form {
  display: grid;
  max-height: inherit;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.modal-header {
  display: flex;
  gap: 16px;
  align-items: start;
  justify-content: space-between;
  padding: 22px 22px 16px;
  border-bottom: 1px solid var(--line);
}

.modal-header h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 8px 0 4px;
  font-size: 26px;
}

.modal-header p {
  max-width: 68ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.icon-button {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  padding: 0;
}

.modal-workload-options {
  display: grid;
  gap: 16px;
  overflow: auto;
  padding: 18px 22px 20px;
}

.argument-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 12px;
}

.argument-field {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.argument-field small {
  color: var(--muted);
  font-weight: 520;
  line-height: 1.35;
}

.argument-field.argument-field-checkbox {
  align-content: center;
}

.argument-field.argument-field-checkbox span {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--text);
  font-weight: 720;
}

.modal-submit-footer {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) 110px minmax(220px, 1.4fr) 160px;
  gap: 12px;
  align-items: end;
  padding: 16px 22px 22px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.14);
}

.upload-progress-panel {
  display: grid;
  grid-column: 1 / -1;
  gap: 8px;
  border: 1px solid rgba(131, 182, 160, 0.32);
  border-radius: 8px;
  padding: 12px;
  background: rgba(131, 182, 160, 0.08);
}

.upload-progress-panel[hidden] {
  display: none;
}

.upload-progress-header,
.upload-progress-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.upload-progress-header span {
  color: var(--text);
}

.upload-progress-panel progress {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  appearance: none;
  background: rgba(255, 255, 255, 0.04);
}

.upload-progress-panel progress::-webkit-progress-bar {
  background: rgba(255, 255, 255, 0.04);
}

.upload-progress-panel progress::-webkit-progress-value {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.upload-progress-panel progress::-moz-progress-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.file-upload-field {
  min-width: 0;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 680;
}

.primary {
  width: 100%;
  border-color: var(--accent-2);
  background: var(--accent-2);
  color: #08100d;
  font-weight: 800;
}

.primary:hover:not(:disabled) {
  border-color: var(--accent);
  background: var(--accent);
}

.danger {
  border-color: rgba(255, 116, 116, 0.42);
  background: rgba(255, 116, 116, 0.1);
  color: #ffc7c7;
}

.job-control-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  border: 1px solid rgba(160, 169, 170, 0.11);
  border-radius: 8px;
  padding: 7px;
  background: rgba(255, 255, 255, 0.018);
}

.job-control-bar button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 5px 9px;
  box-shadow: none;
}

.selected-job-panel {
  display: grid;
  gap: 12px;
  min-width: 0;
  border: 1px solid rgba(160, 169, 170, 0.18);
  border-radius: 8px;
  padding: 12px;
  background:
    radial-gradient(circle at 18% 0%, rgba(131, 182, 160, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 180px),
    #101719;
  box-shadow: var(--shadow);
}

.selected-job-empty {
  display: grid;
  min-height: calc(100vh - 176px);
  place-items: center;
  border: 1px dashed rgba(160, 169, 170, 0.24);
  border-radius: 8px;
  background: rgba(16, 22, 24, 0.72);
  padding: 18px;
  color: var(--muted);
  text-align: center;
}

.selected-job-empty[hidden] {
  display: none;
}

.selected-job-empty div {
  display: grid;
  gap: 6px;
  max-width: 320px;
}

.selected-job-empty strong {
  color: var(--ink);
  font-size: 16px;
}

.selected-job-empty span {
  line-height: 1.45;
}

.selected-job-panel .compact-meta-list {
  grid-template-columns: minmax(180px, 1.2fr) minmax(90px, 0.5fr) minmax(120px, 0.7fr);
  gap: 0;
  margin: 0;
  border: 1px solid rgba(160, 169, 170, 0.11);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.014);
}

.selected-job-panel .compact-meta-list div {
  gap: 3px;
  border: 0;
  border-right: 1px solid rgba(160, 169, 170, 0.1);
  border-radius: 0;
  background: transparent;
  padding: 8px 10px;
}

.selected-job-panel .compact-meta-list div:last-child {
  border-right: 0;
}

.selected-job-panel .compact-meta-list dt {
  font-size: 10px;
}

.selected-job-panel .compact-meta-list dd {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jobs-dashboard-page {
  display: grid;
  grid-template-columns: minmax(340px, 0.9fr) minmax(0, 2.8fr);
  gap: 14px;
  align-items: stretch;
  min-height: calc(100vh - 128px);
  min-width: 0;
}

.jobs-dashboard-page.filters-open {
  grid-template-columns: minmax(210px, 0.58fr) minmax(340px, 0.9fr) minmax(0, 2.8fr);
}

.jobs-dashboard-page[hidden] {
  display: none;
}

.app-shell[data-active-view="jobs"] .jobs-panel {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  min-width: 0;
}

.app-shell[data-active-view="jobs"] #job-cards {
  display: none;
}

.job-sort-label {
  width: 132px;
}

#job-sort-direction {
  color: var(--accent);
  font-size: 18px;
  font-weight: 860;
}

#toggle-job-filters.active {
  border-color: rgba(131, 182, 160, 0.52);
  background: rgba(131, 182, 160, 0.13);
  color: var(--accent);
}

.portal-job-filter-rail,
.job-detail-selector {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 8px;
  min-width: 0;
  max-height: calc(100vh - 146px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101618;
  padding: 8px;
  overflow: hidden;
}

.portal-job-filter-rail[hidden] {
  display: none;
}

.portal-job-filter-rail {
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: auto;
  gap: 6px;
}

.job-detail-selector {
  grid-template-rows: minmax(0, 1fr);
  overflow: visible;
}

.jobs-view-toolbar {
  position: sticky;
  top: 0;
  z-index: 12;
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 8px 0 10px;
  background: #0f1517;
}

.job-selector-summary {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jobs-view-toolbar .jobs-actions {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 6px;
  align-items: center;
  min-width: max-content;
}

.job-toolbar-menu {
  position: relative;
  display: inline-grid;
}

.job-toolbar-menu-toggle.sort-menu-toggle {
  color: #b5d8ff;
  background: rgba(91, 141, 180, 0.13);
}

.job-toolbar-menu-toggle.group-menu-toggle {
  color: #e0c067;
  background: rgba(201, 180, 88, 0.13);
}

.job-toolbar-menu-toggle[aria-expanded="true"] {
  border-color: rgba(131, 182, 160, 0.52);
  box-shadow: 0 0 0 1px rgba(131, 182, 160, 0.12);
}

.job-toolbar-popover {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 30;
  display: grid;
  gap: 8px;
  min-width: 174px;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #11181a;
  box-shadow: var(--shadow);
}

.job-toolbar-popover[hidden] {
  display: none;
}

.job-toolbar-popover.sort-popover {
  border-color: rgba(123, 180, 216, 0.38);
}

.job-toolbar-popover.group-popover {
  border-color: rgba(201, 180, 88, 0.38);
}

.jobs-view-toolbar .compact-select-label {
  width: 154px;
  font-size: 10px;
}

.jobs-view-toolbar .compact-select-label select {
  min-height: 34px;
  padding: 6px 8px;
}

.jobs-view-toolbar .icon-button,
.jobs-view-toolbar .icon-segmented-control button {
  width: 34px;
  min-width: 34px;
  min-height: 34px;
  height: 34px;
}

.jobs-view-toolbar .icon-segmented-control {
  grid-template-columns: repeat(3, 34px);
}

.job-detail-selector-list {
  display: grid;
  gap: 7px;
  grid-auto-rows: max-content;
  align-content: start;
  align-items: start;
  overflow: auto;
  min-height: 0;
  height: 100%;
  max-height: none;
  overscroll-behavior: contain;
  padding-right: 2px;
}

.job-detail-selector-list.cards {
  gap: 12px;
  align-content: start;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: minmax(246px, auto);
}

.portal-job-filter-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.portal-job-filter-header strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 860;
}

.portal-job-filter-header .icon-button {
  width: 28px;
  min-width: 28px;
  min-height: 28px;
  height: 28px;
}

.portal-job-filter-form,
.portal-job-facet-groups {
  display: grid;
  gap: 4px;
  grid-auto-rows: max-content;
  align-content: start;
  align-items: start;
}

.portal-job-filter-form label {
  gap: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 820;
  text-transform: uppercase;
}

.portal-job-filter-form input {
  min-height: 30px;
  padding: 5px 8px;
}

.portal-job-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-height: 20px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  border: 1px solid rgba(160, 169, 170, 0.22);
  border-radius: 999px;
  padding: 0 6px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  font-size: 10px;
  font-weight: 760;
  box-shadow: none;
}

.filter-chip.removable {
  cursor: pointer;
}

.filter-chip.muted {
  color: #758385;
}

.portal-job-facet-group {
  display: grid;
  gap: 4px;
  grid-auto-rows: max-content;
  align-content: start;
  align-items: start;
  border-top: 1px solid rgba(160, 169, 170, 0.12);
  padding: 5px 0 3px;
}

.portal-job-facet-header {
  display: grid;
  gap: 3px;
  grid-auto-rows: max-content;
  align-content: start;
  align-self: start;
}

.portal-job-facet-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  min-height: 24px;
}

.portal-job-facet-title h4 {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 820;
  text-transform: uppercase;
}

.portal-job-facet-title-main {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.portal-job-facet-collapse {
  display: inline-grid;
  width: 22px;
  min-width: 22px;
  height: 22px;
  min-height: 22px;
  place-items: center;
  border: 1px solid rgba(160, 169, 170, 0.16);
  border-radius: 5px;
  padding: 0;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
  font-size: 12px;
  line-height: 1;
}

.portal-job-facet-collapse:hover {
  border-color: rgba(131, 182, 160, 0.32);
  color: var(--ink);
  background: rgba(131, 182, 160, 0.08);
}

.portal-job-facet-mode {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 22px;
  border-radius: 999px;
  padding: 1px 7px;
  color: var(--muted);
  font-size: 9px;
  box-shadow: none;
}

.portal-job-facet-mode.excluding {
  border-color: rgba(255, 116, 116, 0.24);
  color: #ffc7c7;
}

.portal-job-facet-search {
  min-height: 24px;
  padding: 3px 7px;
  font-size: 11px;
}

.portal-job-facet-options {
  display: grid;
  gap: 0;
  grid-auto-rows: max-content;
  align-content: start;
  align-items: start;
  align-self: start;
  padding-left: 16px;
}

.portal-job-facet-option {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
  align-self: start;
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 4px;
  height: 26px;
  min-height: 26px;
  padding: 1px 3px;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
}

.portal-job-facet-option:hover,
.portal-job-facet-option.selected {
  border-color: rgba(143, 185, 163, 0.16);
  background: rgba(143, 185, 163, 0.045);
}

.portal-job-facet-option.status.complete,
.filter-chip.status.complete {
  color: #bce4d2;
}

.portal-job-facet-option.status.failed,
.filter-chip.status.failed {
  color: #ff9b9b;
}

.portal-job-facet-option.status.active,
.filter-chip.status.active {
  color: #9bb8ff;
}

.portal-job-facet-option.status.waiting,
.filter-chip.status.waiting {
  color: #e7c671;
}

.portal-job-facet-option input {
  appearance: auto;
  box-sizing: border-box;
  width: 13px;
  min-width: 13px;
  height: 13px;
  min-height: 13px;
  margin: 0;
  padding: 0;
  border-radius: 3px;
  background: transparent;
  justify-self: center;
}

.portal-job-facet-option-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  color: inherit;
  font-size: 12px;
  font-weight: 780;
  line-height: 1;
  text-transform: none;
}

.portal-job-facet-option-label span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-job-facet-option-label img {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  object-fit: cover;
}

.portal-job-facet-option-label .workflow-icon {
  width: 15px;
  height: 15px;
}

.portal-job-facet-option-label .workflow-icon svg {
  width: 15px;
  height: 15px;
}

.portal-job-facet-option b {
  color: #758385;
  font-size: 12px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.portal-job-facet-more {
  justify-self: start;
  min-height: 20px;
  padding: 1px 7px;
  color: var(--muted);
  font-size: 10px;
}

.portal-job-facet-empty {
  color: var(--muted);
  font-size: 11px;
}

.job-detail-selector-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  grid-template-rows: minmax(36px, auto);
  gap: 7px;
  align-items: center;
  width: 100%;
  min-height: 46px;
  border-color: transparent;
  padding: 5px 6px;
  background: transparent;
  box-shadow: none;
  color: var(--ink);
  text-align: left;
}

.job-detail-selector-item:hover,
.job-detail-selector-item.selected {
  border-color: rgba(131, 182, 160, 0.28);
  background: rgba(131, 182, 160, 0.08);
}

.job-selector-card {
  position: relative;
  display: grid;
  grid-template-rows: 168px auto;
  gap: 8px;
  width: 100%;
  min-height: 246px;
  height: auto;
  overflow: hidden;
  padding: 7px;
  border-color: rgba(160, 169, 170, 0.16);
  background: #0b1112;
  text-align: left;
}

.job-selector-card:hover,
.job-selector-card.selected {
  border-color: rgba(131, 182, 160, 0.46);
  box-shadow: 0 0 0 1px rgba(131, 182, 160, 0.16) inset;
}

.job-selector-card-preview {
  position: relative;
  display: grid;
  width: 100%;
  height: 168px;
  min-height: 168px;
  aspect-ratio: 16 / 9;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(160, 169, 170, 0.16);
  border-radius: 6px;
  background:
    radial-gradient(circle at 45% 38%, rgba(131, 182, 160, 0.12), transparent 34%),
    #0d1112;
  color: var(--muted);
  font-size: 11px;
  font-weight: 820;
  text-transform: uppercase;
}

.job-selector-card-preview.ready {
  background: #101716;
}

.job-selector-card-preview .job-thumb-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.job-selector-card.has-source-preview:hover .output-preview,
.job-selector-card.has-source-preview:focus-visible .output-preview,
.job-selector-card.previewing-source .output-preview {
  opacity: 0;
}

.job-selector-card.has-source-preview:hover .source-preview,
.job-selector-card.has-source-preview:focus-visible .source-preview,
.job-selector-card.previewing-source .source-preview {
  opacity: 1;
}

.job-selector-card-content {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 0 2px 1px;
  background: transparent;
  pointer-events: none;
}

.job-selector-card-content strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.2;
  overflow: hidden;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.job-selector-card .job-card-meta,
.job-selector-card .job-card-metrics {
  min-width: 0;
  overflow: hidden;
}

.job-selector-card .job-card-meta {
  row-gap: 5px;
}

.job-detail-selector-item .state {
  grid-column: auto;
  justify-self: start;
  min-height: 18px;
  max-width: 82px;
  padding: 1px 6px;
  font-size: 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-selector-thumb {
  display: grid;
  width: 64px;
  aspect-ratio: 16 / 9;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #0d1112;
  color: var(--muted);
  font-size: 8px;
  font-weight: 820;
  text-transform: uppercase;
}

.job-selector-thumb.ready {
  border-color: rgba(131, 182, 160, 0.44);
}

.job-selector-thumb .job-thumb-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.job-selector-body {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.job-selector-body strong,
.job-selector-body span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-selector-body strong {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.15;
}

.job-selector-body span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.15;
}

.job-detail-selector-empty {
  margin: 0;
  padding: 8px;
  color: var(--muted);
  font-size: 12px;
}

.selected-job-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  border-bottom: 1px solid rgba(160, 169, 170, 0.12);
  padding-bottom: 10px;
}

.selected-job-header h3 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  text-transform: none;
}

#job-detail-subtitle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.job-detail-meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.job-detail-meta span {
  display: inline-flex;
  align-items: center;
}

.job-detail-meta span + span::before {
  content: "/";
  margin-right: 6px;
  color: var(--muted);
}

.drawer-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.drawer-summary-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 10px;
  align-items: center;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(160, 169, 170, 0.15);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(131, 182, 160, 0.14), transparent 58%),
    #0d1314;
  padding: 10px 11px;
}

.drawer-summary-card::before {
  content: "i";
  grid-row: span 2;
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(131, 182, 160, 0.26);
  border-radius: 8px;
  background: rgba(131, 182, 160, 0.08);
  color: #a9e1c7;
  font-size: 18px;
  line-height: 1;
}

.drawer-summary-card:nth-child(1)::before {
  content: "T";
}

.drawer-summary-card:nth-child(2)::before {
  content: "F";
  color: #ead37e;
}

.drawer-summary-card:nth-child(3)::before {
  content: "$";
  color: #e4c45d;
}

.drawer-summary-card:nth-child(4)::before {
  content: "W";
  color: #9bb8ff;
}

.drawer-summary-card span {
  display: block;
  grid-column: 2;
  color: var(--muted);
  font-size: 10px;
  font-weight: 820;
  text-transform: uppercase;
}

.drawer-summary-card strong {
  display: block;
  grid-column: 2;
  margin-top: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-overview-panel {
  display: grid;
  gap: 12px;
}

.account-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.account-stat-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 9px;
  align-items: center;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #101618;
  padding: 10px;
}

.account-stat-icon {
  grid-row: span 2;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(131, 182, 160, 0.28);
  border-radius: 7px;
  background: rgba(131, 182, 160, 0.1);
  color: #bce4d2;
  font-size: 10px;
  font-weight: 820;
  text-transform: uppercase;
}

.account-stat-card span:not(.account-stat-icon) {
  color: var(--muted);
  font-size: 10px;
  font-weight: 820;
  text-transform: uppercase;
}

.account-stat-card strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-media-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.account-media-grid div {
  min-width: 0;
  border-top: 1px solid rgba(160, 169, 170, 0.12);
  padding-top: 8px;
}

.account-media-grid dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 820;
  text-transform: uppercase;
}

.account-media-grid dd {
  margin: 4px 0 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.billing-panel {
  display: grid;
  grid-column: 1 / -1;
  gap: 14px;
}

.billing-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.billing-stat-card,
.billing-chart-card {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #101618;
}

.billing-stat-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 10px;
  align-items: center;
  min-width: 0;
  padding: 12px;
}

.billing-stat-card.primary {
  border-color: rgba(201, 180, 88, 0.34);
  background: #14170f;
}

.billing-stat-icon {
  grid-row: span 3;
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: rgba(201, 180, 88, 0.12);
  color: #eadb8a;
  font-size: 13px;
  font-weight: 820;
}

.billing-stat-card span:not(.billing-stat-icon) {
  color: var(--muted);
  font-size: 10px;
  font-weight: 820;
  text-transform: uppercase;
}

.billing-stat-card strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.billing-stat-card small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.billing-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.billing-chart-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
}

.billing-chart-card.wide {
  grid-column: 1 / -1;
}

.chart-peak {
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.billing-chart {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  grid-template-rows: minmax(118px, 1fr) auto;
  column-gap: 8px;
  row-gap: 6px;
  min-height: 136px;
  border: 1px solid rgba(160, 169, 170, 0.12);
  border-radius: 7px;
  padding: 10px;
  background: #0b1010;
}

.billing-chart-y-axis {
  display: grid;
  align-content: space-between;
  min-height: 118px;
  color: var(--muted);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.billing-chart-bars {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(8px, 1fr);
  align-items: end;
  gap: 4px;
  min-width: 0;
  min-height: 118px;
  border-left: 1px solid rgba(160, 169, 170, 0.12);
  border-bottom: 1px solid rgba(160, 169, 170, 0.12);
  padding: 0 0 3px 6px;
  background:
    linear-gradient(rgba(160, 169, 170, 0.08) 1px, transparent 1px) 0 0 / 100% 50%;
}

.billing-chart-x-axis {
  grid-column: 2;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

.billing-bar {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
  height: 100%;
}

.billing-bar-fill {
  width: 100%;
  min-height: 2px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, #c9b458, #6e8f80);
}

.billing-bar-fill.secondary {
  background: linear-gradient(180deg, #7bb4d8, #436979);
}

.billing-bar-fill.output {
  background: linear-gradient(180deg, #d69c78, #745447);
}

.billing-bar-label {
  position: absolute;
  right: 50%;
  bottom: -17px;
  transform: translateX(50%);
  color: var(--muted);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

.billing-bar-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 8;
  display: none;
  min-width: 148px;
  max-width: 220px;
  padding: 8px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #151d20;
  box-shadow: var(--shadow);
  color: var(--ink);
  font-size: 11px;
  line-height: 1.35;
  transform: translateX(-50%);
  white-space: normal;
}

.billing-bar-tooltip strong,
.billing-bar-tooltip span {
  display: block;
}

.billing-bar-tooltip span {
  color: var(--muted);
}

.billing-bar:hover .billing-bar-tooltip,
.billing-bar:focus-visible .billing-bar-tooltip {
  display: block;
}

.jobs-dashboard-page.table-mode {
  position: absolute;
  inset: 54px 0 auto 0;
  z-index: 20;
  display: block;
  min-height: 0;
  pointer-events: none;
}

.jobs-dashboard-page.table-mode .job-detail-selector {
  display: none;
}

.jobs-dashboard-page.table-mode .selected-job-empty {
  display: none;
}

.jobs-dashboard-page.table-mode .portal-job-filter-rail {
  position: fixed;
  top: 112px;
  bottom: 18px;
  left: 24px;
  z-index: 44;
  width: min(330px, calc(100vw - 48px));
  height: auto;
  max-height: none;
  box-shadow: var(--shadow);
  pointer-events: auto;
}

.jobs-dashboard-page.table-mode .selected-job-panel {
  position: fixed;
  top: 112px;
  right: 24px;
  bottom: 18px;
  z-index: 42;
  width: min(1080px, calc(100vw - 48px));
  height: auto;
  max-height: none;
  overflow: auto;
  pointer-events: auto;
}

.job-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.85fr);
  gap: 12px;
  align-items: start;
}

.job-preview-panel,
.job-detail-card {
  min-width: 0;
  border: 1px solid rgba(160, 169, 170, 0.15);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 70px),
    #0d1314;
  padding: 10px;
}

.job-preview-panel {
  grid-row: span 3;
  border-color: rgba(131, 182, 160, 0.22);
  background:
    radial-gradient(circle at 50% 0%, rgba(131, 182, 160, 0.12), transparent 32%),
    #0a0f10;
}

.jobs-dashboard-page.table-mode .job-detail-grid {
  grid-template-columns: minmax(0, 1fr);
}

.jobs-dashboard-page.table-mode .job-preview-panel {
  grid-row: auto;
}

.jobs-dashboard-page.table-mode .workflow-detail-card {
  grid-column: auto;
}

.jobs-dashboard-page.table-mode .job-detail-card {
  padding: 9px;
}

.workflow-detail-card {
  border-color: rgba(127, 224, 176, 0.2);
  background:
    radial-gradient(circle at 18% 0%, rgba(127, 224, 176, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.028), transparent 62%),
    #0a1111;
}

.approval-detail-card {
  border-color: rgba(226, 199, 92, 0.26);
  background:
    radial-gradient(circle at 90% 0%, rgba(226, 199, 92, 0.12), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.026), transparent 62%),
    #10110d;
}

.approval-candidates {
  display: grid;
  gap: 12px;
}

.approval-chat-card {
  display: grid;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
}

.approval-chat-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.approval-chat-header span,
.approval-chat-meta span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.approval-chat-header small,
.approval-chat-meta small {
  color: color-mix(in srgb, var(--muted) 72%, transparent);
  font-size: 0.68rem;
  font-weight: 800;
}

.approval-chat-scroll {
  display: grid;
  gap: 8px;
  max-height: 168px;
  overflow: auto;
  padding-right: 3px;
}

.approval-chat-message {
  display: grid;
  gap: 4px;
  max-width: 92%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.approval-chat-message-user {
  justify-self: start;
  color: color-mix(in srgb, var(--text) 92%, #77b0ff);
}

.approval-chat-message-reviewer {
  justify-self: end;
  text-align: right;
  color: color-mix(in srgb, var(--text) 90%, var(--gold));
}

.approval-chat-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.approval-chat-message p,
.approval-chat-empty {
  margin: 0;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
}

.approval-chat-empty {
  color: var(--muted);
}

.approval-candidate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.approval-candidate-card {
  position: relative;
  display: block;
  min-width: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 0;
  border-radius: 9px;
  background: #050808;
  color: var(--text);
  cursor: pointer;
  isolation: isolate;
  transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
}

.approval-candidate-card:hover,
.approval-candidate-card:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
  outline: none;
}

.approval-candidate-card.selected {
  filter: brightness(1.08) saturate(1.06);
}

.approval-candidate-card.approved {
  filter: brightness(1.06) saturate(1.05);
}

.approval-candidate-card.approved.selected {
  filter: brightness(1.1) saturate(1.08);
}

.approval-candidate-preview {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.approval-candidate-preview.preview-failed {
  padding: 8px;
  text-align: center;
}

.approval-candidate-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease, filter 180ms ease;
}

.approval-candidate-card:hover .approval-candidate-preview img {
  transform: scale(1.025);
  filter: saturate(1.04) brightness(1.04);
}

.approval-candidate-title,
.approval-candidate-status,
.approval-candidate-open {
  position: absolute;
  z-index: 2;
  backdrop-filter: blur(10px);
  background: rgba(5, 8, 8, 0.62);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.approval-candidate-title {
  left: 8px;
  top: 8px;
  max-width: calc(100% - 58px);
  overflow: hidden;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.approval-candidate-status {
  left: 8px;
  bottom: 8px;
  width: fit-content;
  padding: 4px 8px;
  border: 0;
  border-radius: 999px;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.approval-candidate-card.approved .approval-candidate-status {
  color: var(--green);
}

.approval-candidate-card.selected .approval-candidate-status {
  background: rgba(64, 52, 12, 0.78);
}

.approval-candidate-card.approved .approval-candidate-status {
  background: rgba(10, 48, 34, 0.78);
}

.approval-candidate-status::before {
  content: "✓";
  margin-right: 5px;
}

.approval-candidate-card:not(.selected):not(.approved) .approval-candidate-status {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.approval-candidate-card:not(.selected):not(.approved):hover .approval-candidate-status {
  opacity: 1;
  transform: translateY(0);
}

.approval-candidate-open {
  right: 8px;
  top: 8px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 900;
}

.approval-candidate-open:hover {
  background: rgba(226, 199, 92, 0.24);
}

.approval-refine-composer {
  display: grid;
  gap: 6px;
}

.approval-refine-composer label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.approval-refine-composer textarea {
  width: 100%;
  min-height: 74px;
  resize: vertical;
  border: 1px solid rgba(160, 169, 170, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
  padding: 9px 10px;
}

.approval-refine-composer textarea:focus {
  border-color: rgba(226, 199, 92, 0.5);
  outline: none;
}

.approval-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(0, 0, 0, 0.74);
}

.approval-lightbox-shell {
  display: grid;
  gap: 10px;
  width: min(92vw, 1400px);
  max-height: 92vh;
}

.approval-lightbox-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: var(--text);
}

.approval-lightbox-header strong {
  overflow: hidden;
  font-size: 1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.approval-lightbox-close {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.approval-lightbox img {
  max-width: 100%;
  max-height: calc(92vh - 54px);
  object-fit: contain;
  border-radius: 10px;
  background: #050808;
}

.approval-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.workflow-detail {
  min-width: 0;
}

.workflow-promo-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
  overflow: hidden;
}

.workflow-promo-card::after {
  content: "";
  position: absolute;
  right: -34px;
  top: -48px;
  width: 118px;
  height: 118px;
  border: 1px solid rgba(127, 224, 176, 0.16);
  border-radius: 50%;
  background: rgba(127, 224, 176, 0.04);
  pointer-events: none;
}

.workflow-promo-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(127, 224, 176, 0.28);
  border-radius: 14px;
  background: rgba(127, 224, 176, 0.08);
}

.workflow-promo-icon .workflow-icon {
  width: 28px;
  height: 28px;
}

.workflow-promo-icon .workflow-icon svg {
  width: 28px;
  height: 28px;
  stroke-width: 1.8;
}

.workflow-promo-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  min-width: 0;
}

.workflow-promo-title-row,
.workflow-promo-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.workflow-promo-title-row {
  justify-content: space-between;
  gap: 10px;
}

.workflow-promo-title {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-variant-pill {
  display: inline-flex;
  flex: 0 0 auto;
  min-width: 0;
  max-width: 100%;
  padding: 4px 9px;
  overflow: hidden;
  border: 1px solid rgba(201, 180, 88, 0.25);
  border-radius: 999px;
  background: rgba(201, 180, 88, 0.08);
  color: #e8cc65;
  font-size: 12px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-promo-actions {
  gap: 6px;
}

.timeline-card,
.manifest-card {
  grid-column: 1 / -1;
}

.manifest-card {
  display: grid;
  gap: 10px;
}

.manifest-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.job-manifest-output {
  max-height: 320px;
  margin: 0;
  border: 1px solid rgba(160, 169, 170, 0.16);
  border-radius: 7px;
  background: #0b1010;
  padding: 10px;
  overflow: auto;
  color: #d6dddd;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  line-height: 1.5;
  white-space: pre;
}

.job-preview-panel {
  display: grid;
  gap: 8px;
}

.detail-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.preview-title-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.compact-segmented {
  padding: 2px;
}

.compact-segmented button {
  min-height: 24px;
  padding: 3px 8px;
  font-size: 11px;
}

.detail-section-title h4 {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

.job-preview-stage {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(160, 169, 170, 0.18);
  border-radius: 8px;
  background: #0d1112;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.018);
}

.job-preview-stage:fullscreen {
  display: grid;
  place-items: center;
  width: 100vw;
  height: 100vh;
  border: 0;
  border-radius: 0;
  background: #050708;
}

.job-preview-panel:fullscreen {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto auto auto;
  gap: 10px;
  width: 100vw;
  height: 100vh;
  padding: 16px;
  border: 0;
  border-radius: 0;
  background: #050708;
}

.job-preview-panel:fullscreen .job-preview-stage {
  display: grid;
  min-height: 0;
  border: 0;
  border-radius: 0;
}

.job-preview-panel:fullscreen .job-preview-video {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
}

.job-preview-panel:fullscreen .preview-controls-popover {
  right: 18px;
  bottom: 18px;
  left: 18px;
}

.job-preview-panel:fullscreen .preview-control-tray {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(320px, 1fr);
  gap: 10px;
  width: 100%;
}

.job-preview-panel:fullscreen .frame-control-bar {
  grid-template-columns: repeat(5, auto) minmax(0, 1fr) auto;
}

.job-preview-panel:fullscreen .preview-gamma-control {
  margin-top: 0;
  align-self: center;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto;
}

.job-preview-video,
.job-preview-image,
.job-preview-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0d1112;
  object-fit: contain;
}

.job-preview-image {
  display: block;
}

.job-preview-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  background: #0d1112;
  object-fit: contain;
}

.job-preview-video.is-webgl-source {
  opacity: 0;
  pointer-events: none;
}

.job-preview-video.is-swapping-preview {
  opacity: 0.35;
}

.job-preview-stage:fullscreen .job-preview-video,
.job-preview-stage:fullscreen .job-preview-image,
.job-preview-stage:fullscreen .job-preview-canvas {
  width: 100vw;
  height: 100vh;
  aspect-ratio: auto;
  object-fit: contain;
}

.job-preview-placeholder {
  display: grid;
  place-items: center;
  padding: 16px;
  color: var(--muted);
  text-align: center;
}

.job-preview-overlay {
  position: absolute;
  z-index: 3;
  right: 10px;
  top: 10px;
  left: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  padding: 7px 9px;
  background: rgba(8, 12, 13, 0.5);
  color: var(--ink);
  font-size: 12px;
  pointer-events: none;
}

.preview-controls-popover {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  z-index: 4;
  display: grid;
  justify-items: stretch;
  gap: 6px;
  pointer-events: none;
}

.preview-controls-toggle {
  justify-self: end;
  min-width: 28px;
  min-height: 24px;
  padding: 1px 7px 3px;
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(6, 9, 10, 0.42);
  color: rgba(235, 240, 238, 0.72);
  box-shadow: none;
  pointer-events: auto;
}

.preview-control-tray {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 10px;
  background:
    linear-gradient(180deg, rgba(18, 26, 27, 0.58), rgba(6, 10, 11, 0.5)),
    rgba(7, 11, 12, 0.46);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.24);
  opacity: 0;
  transform: translateY(5px);
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease;
  backdrop-filter: blur(18px) saturate(1.12);
}

.job-preview-stage:hover .preview-control-tray,
.preview-controls-popover:focus-within .preview-control-tray {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.job-preview-stage:hover .preview-controls-toggle,
.preview-controls-popover:focus-within .preview-controls-toggle {
  background: rgba(17, 25, 26, 0.78);
  color: var(--ink);
}

.job-preview-overlay strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-preview-overlay span {
  color: #d6dddd;
  font-variant-numeric: tabular-nums;
}

.frame-control-bar {
  display: grid;
  grid-template-columns: repeat(5, auto) minmax(180px, 1fr) auto;
  gap: 6px;
  align-items: center;
  width: 100%;
}

.frame-control-bar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 28px;
  padding: 3px;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  box-shadow: none;
}

.frame-control-bar button:hover {
  border-color: rgba(131, 182, 160, 0.28);
  background: rgba(131, 182, 160, 0.08);
  color: var(--ink);
}

.frame-control-bar button.active {
  color: #ead37e;
}

.frame-icon-button {
  font-size: 21px;
  line-height: 1;
}

.frame-control-bar input[type="range"] {
  --timeline-tick-count: 4;
  min-height: 0;
  padding: 0;
}

.frame-control-bar input.frame-timeline {
  height: 22px;
  appearance: none;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(to right, transparent 7px, rgba(201, 180, 88, 0.4) 7px 8px, transparent 8px),
    repeating-linear-gradient(
      to right,
      rgba(255, 255, 255, 0.42) 0 1px,
      transparent 1px calc(100% / var(--timeline-tick-count))
    ),
    linear-gradient(to bottom, transparent 0 9px, rgba(131, 182, 160, 0.22) 9px 13px, transparent 13px);
  background-color: transparent;
  cursor: pointer;
}

.frame-control-bar input.frame-timeline::-webkit-slider-runnable-track {
  height: 22px;
  border: 0;
  background: transparent;
}

.frame-control-bar input.frame-timeline::-moz-range-track {
  height: 22px;
  border: 0;
  background: transparent;
}

.frame-control-bar input.frame-timeline::-webkit-slider-thumb {
  width: 3px;
  height: 20px;
  margin-top: 1px;
  appearance: none;
  border: 0;
  border-radius: 2px;
  background: #f0d87d;
  box-shadow: 0 0 0 3px rgba(240, 216, 125, 0.16);
}

.frame-control-bar input.frame-timeline::-moz-range-thumb {
  width: 3px;
  height: 20px;
  border: 0;
  border-radius: 2px;
  background: #f0d87d;
  box-shadow: 0 0 0 3px rgba(240, 216, 125, 0.16);
}

.frame-control-bar output {
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.preview-gamma-control {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto;
  gap: 7px;
  width: 100%;
  align-items: center;
  justify-self: stretch;
  max-width: 100%;
  margin-top: 6px;
  border: 1px solid rgba(131, 182, 160, 0.2);
  border-radius: 7px;
  padding: 5px 7px;
  background: rgba(131, 182, 160, 0.06);
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  text-transform: none;
}

.preview-adjustment-row {
  display: grid;
  grid-template-columns: minmax(58px, auto) minmax(88px, 1fr) 34px;
  gap: 6px;
  align-items: center;
  min-width: 0;
}

.preview-adjustment-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  color: var(--muted);
  cursor: help;
  white-space: nowrap;
}

.preview-adjustment-label .button-icon {
  width: 15px;
  height: 15px;
  color: #d2bd62;
  opacity: 0.88;
}

.preview-adjustment-label:hover {
  color: var(--ink);
}

.preview-adjustment-label:hover .button-icon {
  opacity: 1;
  filter: drop-shadow(0 0 5px rgba(210, 189, 98, 0.32));
}

.preview-gamma-control input[type="range"] {
  width: 100%;
  min-height: 0;
  padding: 0;
  accent-color: #c9b458;
}

.preview-gamma-control output {
  color: var(--ink);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.preview-channel-control {
  display: block;
  margin-left: 2px;
}

.channel-button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: flex-end;
  white-space: nowrap;
}

.channel-button-group button {
  min-width: 34px;
  min-height: 24px;
  padding: 2px 7px;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  box-shadow: none;
  font-size: 11px;
}

.channel-button-group button:hover,
.channel-button-group button.active {
  border-color: rgba(131, 182, 160, 0.32);
  background: rgba(131, 182, 160, 0.12);
  color: var(--ink);
}

.channel-button-group [data-preview-channel="r"] {
  color: #ff6b6b;
}

.channel-button-group [data-preview-channel="g"] {
  color: #32cd32;
}

.channel-button-group [data-preview-channel="b"] {
  color: #1e90ff;
}

.channel-button-group [data-preview-channel="r"].active,
.channel-button-group [data-preview-channel="r"]:hover {
  color: #ff8a8a;
}

.channel-button-group [data-preview-channel="g"].active,
.channel-button-group [data-preview-channel="g"]:hover {
  color: #6cff6c;
}

.channel-button-group [data-preview-channel="b"].active,
.channel-button-group [data-preview-channel="b"]:hover {
  color: #69b7ff;
}

.detail-note {
  margin-top: 8px;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.compact-action {
  width: fit-content;
  min-height: 32px;
  margin-top: 10px;
  padding: 6px 9px;
  font-size: 12px;
}

.detail-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  min-height: 0;
  max-height: 320px;
  margin: 10px 0 0;
  padding: 0;
  overflow: auto;
  list-style: none;
}

.detail-list li {
  display: grid;
  gap: 3px;
  border: 1px solid rgba(160, 169, 170, 0.12);
  border-radius: 8px;
  padding: 8px;
  background:
    linear-gradient(135deg, rgba(131, 182, 160, 0.055), transparent 58%),
    rgba(255, 255, 255, 0.018);
  color: #c2cac9;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.detail-list li.detail-empty-item {
  min-height: 64px;
  place-items: center;
  color: var(--muted);
  text-align: center;
}

.dashboard-card-list {
  align-content: start;
}

#artifact-list.dashboard-card-list {
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  max-height: none;
  overflow: visible;
}

.dashboard-card {
  position: relative;
  min-height: 128px;
  align-content: start;
  overflow: hidden;
  border-color: rgba(160, 169, 170, 0.14) !important;
  background:
    radial-gradient(circle at 16% 0%, rgba(131, 182, 160, 0.11), transparent 38%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.032), transparent 58%),
    #0b1112 !important;
  padding: 11px !important;
}

.dashboard-card-icon {
  position: relative;
  z-index: 1;
  color: rgba(188, 228, 210, 0.72);
  font-family: "Material Symbols Rounded", sans-serif;
  font-size: 22px;
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
  line-height: 1;
}

.dashboard-card::before {
  content: "";
  position: absolute;
  right: -28px;
  top: -34px;
  width: 90px;
  height: 90px;
  border: 1px solid rgba(131, 182, 160, 0.18);
  border-radius: 50%;
  background: rgba(131, 182, 160, 0.04);
}

.dashboard-card-artifact {
  min-height: 148px;
}

.dashboard-card-metric {
  min-height: 118px;
  border-color: rgba(201, 180, 88, 0.18) !important;
  background:
    radial-gradient(circle at 18% 0%, rgba(201, 180, 88, 0.12), transparent 38%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.028), transparent 58%),
    #0d1110 !important;
}

.dashboard-card-worker {
  grid-column: 1 / -1;
  min-height: 118px;
  border-color: rgba(155, 184, 255, 0.18) !important;
  background:
    radial-gradient(circle at 12% 0%, rgba(155, 184, 255, 0.13), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.026), transparent 58%),
    #0b1114 !important;
}

.dashboard-card-source-preview,
.dashboard-card-aov-preview,
.dashboard-card-depth-preview,
.dashboard-card-inpainting-preview,
.dashboard-card-mask-refine-preview,
.dashboard-card-camera-tracking-preview {
  border-color: rgba(131, 182, 160, 0.26) !important;
}

.dashboard-card-execution-log {
  min-height: 128px;
  border-color: rgba(155, 184, 255, 0.22) !important;
}

.dashboard-card-eyebrow {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.dashboard-card-value {
  position: relative;
  z-index: 1;
  display: -webkit-box;
  margin-top: 7px;
  overflow: hidden;
  color: var(--ink);
  font-size: 17px !important;
  line-height: 1.18;
  overflow-wrap: anywhere;
  text-overflow: clip !important;
  white-space: normal !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.dashboard-card-metric .dashboard-card-value {
  font-size: 24px !important;
  line-height: 1;
}

.dashboard-card-label {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 7px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-card-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 12px;
}

.dashboard-card-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 19px;
  max-width: 100%;
  border: 1px solid rgba(160, 169, 170, 0.12);
  border-radius: 999px;
  padding: 1px 7px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.025);
  color: #aeb8b7;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-card-overflow-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 5px;
  margin-top: 10px;
}

.dashboard-card-overflow-list span {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-card-compact-list {
  grid-column: 1 / -1;
  min-height: 92px;
}

.media-dashboard-card {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  justify-items: center;
  min-height: 122px;
  padding: 12px !important;
  text-align: center;
}

.media-dashboard-card .dashboard-card-icon {
  margin-bottom: 5px;
  color: rgba(188, 228, 210, 0.78);
  font-size: 24px;
}

.media-dashboard-card .dashboard-card-eyebrow {
  font-size: 10px;
  font-weight: 900;
}

.media-dashboard-card .dashboard-card-value {
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  width: 100%;
  min-height: 42px;
  color: #f7faf6;
  font-size: 26px !important;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  -webkit-line-clamp: 2;
}

.media-dashboard-card .dashboard-card-label {
  align-self: end;
  margin-top: 6px;
  width: 100%;
  color: #9facaa;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.media-dashboard-card .dashboard-card-meta {
  justify-content: center;
  margin-top: 7px;
}

.dashboard-card-media-source {
  border-color: rgba(131, 182, 160, 0.26) !important;
  background:
    radial-gradient(circle at 16% 0%, rgba(131, 182, 160, 0.16), transparent 38%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent 58%),
    #0b1211 !important;
}

.dashboard-card-media-output {
  border-color: rgba(201, 180, 88, 0.24) !important;
  background:
    radial-gradient(circle at 16% 0%, rgba(201, 180, 88, 0.14), transparent 38%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent 58%),
    #11110b !important;
}

.dashboard-card-media-frames .dashboard-card-value,
.dashboard-card-media-bytes .dashboard-card-value {
  font-size: 32px !important;
  line-height: 1;
}

.dashboard-card-media-resolution .dashboard-card-value,
.dashboard-card-media-bitdepth .dashboard-card-value {
  font-size: 25px !important;
  line-height: 1.05;
}

#artifact-list .media-path-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  border-color: rgba(155, 184, 255, 0.18);
  background:
    linear-gradient(135deg, rgba(155, 184, 255, 0.06), transparent 58%),
    rgba(255, 255, 255, 0.018);
  padding: 8px 10px;
}

.media-path-icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(155, 184, 255, 0.08);
  color: #9bb8ff;
  font-size: 18px;
}

.media-path-body {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.media-path-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.media-path-value {
  overflow: hidden;
  color: #d9e0df;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.detail-list li.detail-tile-aov,
.detail-list li.detail-tile-depth,
.detail-list li.detail-tile-inpainting,
.detail-list li.detail-tile-mask-refine {
  border-color: rgba(201, 180, 88, 0.2);
  background:
    linear-gradient(135deg, rgba(201, 180, 88, 0.08), transparent 60%),
    rgba(255, 255, 255, 0.018);
}

.detail-list li.detail-tile-execution-log {
  border-color: rgba(155, 184, 255, 0.22);
  background:
    linear-gradient(135deg, rgba(155, 184, 255, 0.085), transparent 60%),
    rgba(255, 255, 255, 0.018);
}

.detail-list strong {
  color: var(--ink);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-list span {
  color: var(--muted);
}

.detail-mini-table {
  display: grid;
  grid-template-columns: minmax(66px, auto) minmax(0, 1fr);
  gap: 4px 8px;
  margin: 7px 0 0;
}

.detail-mini-table dt {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.detail-row-icon {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  color: #83d5ad;
}

.detail-row-icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.detail-mini-table dd {
  margin: 0;
  color: #d6dddd;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.detail-list li:first-child {
  border-top: 1px solid rgba(160, 169, 170, 0.12);
}

.artifact-action {
  justify-self: start;
  margin-top: 8px;
}

.badge,
.state {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 760;
  white-space: nowrap;
}

.badge {
  background: rgba(131, 182, 160, 0.1);
  color: var(--accent);
}

.badge.error {
  background: rgba(255, 116, 116, 0.14);
  color: var(--danger);
}

.badge-ready {
  background: rgba(131, 182, 160, 0.14);
  color: #bce4d2;
}

.state {
  background: #242c2f;
  color: var(--ink);
}

.state-uploading,
.state-uploaded,
.state-validating,
.state-ready_to_submit {
  background: rgba(131, 182, 160, 0.1);
  color: var(--accent);
}

.state-queued,
.state-processing,
.state-publishing {
  background: rgba(60, 125, 255, 0.15);
  color: #8eb2ff;
}

.state-validation_failed,
.state-failed,
.state-canceled {
  background: rgba(255, 116, 116, 0.14);
  color: var(--danger);
}

.state-paused {
  background: rgba(255, 153, 93, 0.16);
  color: var(--orange);
}

.meta-grid,
.meta-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
}

.meta-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compact-meta-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.meta-grid div,
.meta-list div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--field);
}

dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  text-transform: uppercase;
}

dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.app-shell[data-active-view="jobs"] .table-wrap {
  max-height: calc(100vh - 218px);
  overscroll-behavior: contain;
}

.jobs-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  align-items: end;
}

.compact-select-label {
  width: 150px;
  gap: 4px;
}

.compact-select-label select {
  min-height: 38px;
  padding: 7px 10px;
}

.segmented-control {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(68px, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--field);
}

.segmented-control button {
  min-height: 38px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 760;
}

.segmented-control button.active {
  color: var(--ink);
  background: var(--surface-3);
}

.icon-segmented-control {
  grid-template-columns: repeat(2, 38px);
}

.icon-segmented-control button {
  display: grid;
  place-items: center;
  min-width: 38px;
  padding: 0;
}

table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  background: var(--field);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

tbody tr {
  cursor: pointer;
}

tbody tr:hover,
tbody tr.selected {
  background: #242e31;
}

tbody tr.job-group-row {
  cursor: default;
}

tbody tr.job-group-row:hover {
  background: transparent;
}

.job-group-row td {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  color: var(--accent);
  background: rgba(131, 182, 160, 0.07);
  font-size: 12px;
  font-weight: 820;
}

.job-group-row .workflow-label {
  color: var(--accent);
}

.job-group-row td > span:last-child {
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.table-sort {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 820;
  letter-spacing: 0;
  text-align: left;
}

.table-sort:hover {
  background: transparent;
  color: var(--accent);
}

.table-sort::after {
  width: 10px;
  color: var(--muted);
  font-size: 10px;
}

.table-sort.sorted.asc::after {
  content: "^";
}

.table-sort.sorted.desc::after {
  content: "v";
}

.job-thumb {
  position: relative;
  display: inline-grid;
  width: 56px;
  aspect-ratio: 16 / 9;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0d1112;
  color: var(--muted);
  font-size: 10px;
  font-weight: 820;
  text-transform: uppercase;
  overflow: hidden;
}

.job-thumb.ready {
  border-color: rgba(131, 182, 160, 0.5);
  background: #17231f;
  color: var(--accent);
}

.job-thumb-video {
  grid-area: 1 / 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 160ms ease;
}

.source-preview {
  opacity: 0;
}

.has-source-preview:hover .output-preview {
  opacity: 0;
}

.has-source-preview:hover .source-preview {
  opacity: 1;
}

.job-card.has-source-preview:hover .output-preview,
.job-card.has-source-preview:focus-visible .output-preview,
.job-card.has-source-preview.previewing-source .output-preview {
  opacity: 0;
}

.job-card.has-source-preview:hover .source-preview,
.job-card.has-source-preview:focus-visible .source-preview,
.job-card.has-source-preview.previewing-source .source-preview {
  opacity: 1;
}

.job-card-view {
  display: grid;
  gap: 16px;
}

.job-card-group {
  display: grid;
  gap: 10px;
}

.job-card-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.job-card-group-header h3 {
  margin: 0;
  color: var(--accent);
}

.job-card-group-header span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.job-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}

.job-card {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  text-align: left;
  background: #07100f;
}

.job-card.selected {
  border-color: rgba(131, 182, 160, 0.66);
  box-shadow: 0 0 0 1px rgba(131, 182, 160, 0.24) inset;
}

.job-card-preview {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 45% 38%, rgba(131, 182, 160, 0.12), transparent 34%),
    #0d1112;
  color: var(--muted);
  font-size: 11px;
  font-weight: 820;
  text-transform: uppercase;
}

.job-card-preview.ready {
  background: #101716;
}

.job-card-preview .job-thumb-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.job-card-content {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 34px 14px 12px;
  background: linear-gradient(
    to top,
    rgba(5, 10, 10, 0.94) 0%,
    rgba(5, 10, 10, 0.78) 64%,
    rgba(5, 10, 10, 0) 100%
  );
  pointer-events: none;
  transition: background 160ms ease;
}

.job-card.previewing-source .job-card-content,
.job-card.has-source-preview:hover .job-card-content,
.job-card.has-source-preview:focus-visible .job-card-content {
  background: linear-gradient(
    to top,
    rgba(5, 10, 10, 0.72) 0%,
    rgba(5, 10, 10, 0.46) 58%,
    rgba(5, 10, 10, 0) 100%
  );
}

.job-card-content strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.2;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.job-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  color: #b7c0bf;
  font-size: 11px;
  font-weight: 720;
}

.workflow-label,
.job-selector-workflow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  color: #c6d1d0;
  line-height: 1.1;
}

.workflow-icon {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 15px;
  height: 15px;
  color: rgba(188, 208, 205, 0.82);
}

.workflow-icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.workflow-icon img {
  width: 15px;
  height: 15px;
  object-fit: contain;
}

.workflow-icon-depth {
  color: #75c7ff;
}

.workflow-icon-inpainting {
  color: #8ee6a8;
}

.workflow-icon-mask-refine {
  color: #b5a1ff;
}

.workflow-icon-aov {
  color: #e8cc65;
}

.workflow-icon-camera-tracking {
  color: #7fe0b0;
}

.workflow-icon-foreground-removal {
  color: #9fd4ff;
}

.workflow-icon-sdr-to-hdr {
  color: #ffb86b;
}

.workflow-icon-omni {
  color: #4285f4;
}

.job-selector-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 7px;
}

.job-card-meta .state {
  min-height: 20px;
  padding: 2px 7px;
  font-size: 11px;
}

.submission-surface {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  border: 1px solid rgba(160, 169, 170, 0.24);
  border-radius: 999px;
  padding: 2px 8px 2px 3px;
  color: #d6dddd;
  background: rgba(12, 18, 18, 0.72);
  font-size: 11px;
  font-weight: 760;
  line-height: 1;
  white-space: nowrap;
}

.submission-surface img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

.submission-surface-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(221, 229, 228, 0.2);
  border-radius: 999px;
  background: rgba(8, 14, 14, 0.72);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.24);
}

.submission-surface-icon img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.job-card-surface {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  pointer-events: none;
}

.job-card-meta .submission-surface {
  min-height: 20px;
  padding: 1px 6px 1px 2px;
}

.job-card-meta .submission-surface img {
  width: 18px;
  height: 18px;
}

.job-id-chip {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  border: 1px solid rgba(218, 165, 32, 0.62);
  border-radius: 999px;
  padding: 1px 7px;
  color: #e8c86d;
  background: rgba(218, 165, 32, 0.08);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 760;
}

.job-variant-chip {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  border: 1px solid rgba(245, 158, 11, 0.62);
  border-radius: 999px;
  padding: 1px 8px;
  color: #f8bd59;
  background: rgba(245, 158, 11, 0.1);
  font-size: 11px;
  font-weight: 760;
}

.job-variant-chip.compact {
  min-height: 17px;
  padding: 0 6px;
  font-size: 10px;
}

.job-card-metrics {
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
}

.job-card-empty {
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
}

.job-title-button {
  display: block;
  max-width: 280px;
  min-height: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
  text-align: left;
  white-space: normal;
}

.job-title-button:hover:not(:disabled) {
  background: transparent;
  color: var(--accent);
}

.job-row-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.empty {
  color: var(--muted);
  text-align: center;
}

.plain-list,
.event-list,
.activity {
  margin: 0;
  padding: 12px 12px 12px 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
}

.plain-list,
.event-list {
  min-height: 74px;
  max-height: 190px;
  overflow: auto;
}

.event-list {
  max-height: 240px;
}

.job-detail-card .event-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  min-height: 96px;
  max-height: 260px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 4px 0 0;
}

.event-timeline-item {
  position: relative;
  display: grid !important;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
  min-height: 42px;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 0 11px !important;
  background: transparent !important;
}

.event-timeline-item::before {
  content: "";
  position: absolute;
  top: 16px;
  bottom: -2px;
  left: 7px;
  width: 1px;
  background: rgba(131, 182, 160, 0.22);
}

.event-timeline-item:last-child::before {
  display: none;
}

.event-timeline-marker {
  position: relative;
  z-index: 1;
  display: inline-grid;
  width: 15px;
  height: 15px;
  margin-top: 2px;
  border: 1px solid rgba(131, 182, 160, 0.42);
  border-radius: 50%;
  background: #101719;
  box-shadow: 0 0 0 4px rgba(131, 182, 160, 0.055);
}

.event-timeline-marker::after {
  content: "";
  place-self: center;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #83d5ad;
}

.event-timeline-body {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 0 0 10px;
  border-bottom: 1px solid rgba(160, 169, 170, 0.08);
}

.event-timeline-body strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-timeline-body span {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity {
  min-height: 160px;
  max-height: 330px;
  overflow: auto;
}

.plain-list li,
.event-list li,
.activity li {
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}

.activity-panel {
  display: grid;
  gap: 14px;
}

.activity-console-header {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.9fr);
  gap: 14px;
}

.activity-command-card {
  display: grid;
  gap: 8px;
  min-height: 150px;
  align-content: end;
  border: 1px solid rgba(131, 182, 160, 0.28);
  border-radius: 8px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(131, 182, 160, 0.13), transparent 34%),
    linear-gradient(112deg, rgba(60, 125, 255, 0.12), transparent 64%),
    var(--field);
}

.activity-command-card strong {
  font-size: 24px;
  line-height: 1.12;
}

.activity-command-card > span:last-child {
  max-width: 68ch;
  color: var(--muted);
  line-height: 1.45;
}

.activity-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.activity-summary-grid article {
  display: grid;
  align-content: center;
  gap: 5px;
  min-height: 70px;
  border: 1px solid rgba(160, 169, 170, 0.16);
  border-radius: 8px;
  padding: 12px;
  background: rgba(12, 18, 18, 0.56);
}

.activity-summary-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
  text-transform: uppercase;
}

.activity-summary-grid strong {
  font-size: 26px;
  line-height: 1;
}

.activity-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 8px;
  align-items: center;
}

.activity-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: var(--field);
}

.activity-search input {
  min-height: 38px;
  border: 0;
  padding: 0;
  background: transparent;
}

.activity-filter-control {
  min-height: 42px;
}

.activity-console-layout {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(320px, 0.68fr);
  gap: 14px;
  align-items: stretch;
}

.activity.activity-timeline {
  display: grid;
  gap: 8px;
  min-height: min(620px, calc(100vh - 360px));
  max-height: min(760px, calc(100vh - 300px));
  padding: 10px;
  list-style: none;
}

.activity-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  margin: 0;
  border: 1px solid rgba(160, 169, 170, 0.14);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.022);
  cursor: pointer;
}

.activity-timeline li:hover,
.activity-timeline li.selected {
  border-color: rgba(131, 182, 160, 0.46);
  background: rgba(131, 182, 160, 0.07);
}

.activity-timeline .activity-empty-row {
  grid-template-columns: 1fr;
  place-items: center;
  min-height: 140px;
  color: var(--muted);
  cursor: default;
}

.activity-timeline .activity-empty-row:hover {
  border-color: rgba(160, 169, 170, 0.14);
  background: rgba(255, 255, 255, 0.022);
}

.activity-event-dot {
  width: 11px;
  height: 11px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(131, 182, 160, 0.36);
}

.activity-event-dot.warning {
  background: var(--yellow);
  box-shadow: 0 0 16px rgba(255, 213, 31, 0.28);
}

.activity-event-dot.error {
  background: var(--danger);
  box-shadow: 0 0 16px rgba(255, 116, 116, 0.34);
}

.activity-event-body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.activity-event-body strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 740;
}

.activity-event-time {
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  white-space: nowrap;
}

.activity-pill,
.activity-severity-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 22px;
  border: 1px solid rgba(160, 169, 170, 0.2);
  border-radius: 999px;
  padding: 2px 8px;
  background: rgba(8, 14, 14, 0.58);
  color: #d7dfdc;
  font-size: 11px;
  font-weight: 780;
  text-transform: capitalize;
}

.activity-pill.error,
.activity-severity-badge.error {
  border-color: rgba(255, 116, 116, 0.35);
  color: #ffadad;
  background: rgba(110, 31, 31, 0.24);
}

.activity-pill.warning,
.activity-severity-badge.warning {
  border-color: rgba(255, 213, 31, 0.35);
  color: #ffe082;
  background: rgba(110, 87, 12, 0.22);
}

.activity-inspector {
  display: grid;
  min-height: min(620px, calc(100vh - 360px));
  max-height: min(760px, calc(100vh - 300px));
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(131, 182, 160, 0.08), transparent 32%),
    var(--field);
  overflow: hidden;
}

.activity-empty-state,
.activity-detail {
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding: 20px;
  text-align: center;
}

.activity-empty-state {
  display: grid;
  color: var(--muted);
}

.activity-empty-state strong {
  color: var(--ink);
  font-size: 18px;
}

.activity-detail {
  display: grid;
  align-content: start;
  justify-items: stretch;
  text-align: left;
  overflow: auto;
}

.activity-detail h2 {
  margin: 4px 0 8px;
  font-size: 20px;
  line-height: 1.2;
}

.activity-detail-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.activity-detail-meta div {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(160, 169, 170, 0.14);
  border-radius: 7px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.activity-detail-meta dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 780;
  text-transform: uppercase;
}

.activity-detail-meta dd {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-detail-json {
  min-height: 220px;
  max-height: 420px;
  overflow: auto;
  border: 1px solid rgba(160, 169, 170, 0.14);
  border-radius: 8px;
  margin: 10px 0 0;
  padding: 12px;
  background: rgba(2, 7, 7, 0.4);
  color: #dce5e1;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.evidence {
  max-height: 320px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
  margin: 16px 0 0;
  padding: 12px;
  white-space: pre-wrap;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .app-shell.sidebar-mini {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    border-right: 1px solid rgba(160, 169, 170, 0.14);
    border-radius: 8px 8px 0 0;
  }

  .app-shell.sidebar-mini .sidebar {
    gap: 18px;
    padding: 18px;
  }

  .app-shell.sidebar-mini .sidebar-topline {
    grid-template-columns: minmax(0, 1fr) auto;
    justify-items: stretch;
  }

  .app-shell.sidebar-mini .brand {
    justify-content: flex-start;
  }

  .app-shell.sidebar-mini .brand div {
    display: grid;
  }

  .app-shell.sidebar-mini .nav-item > span:not(.nav-icon) {
    display: inline;
  }

  .app-shell.sidebar-mini .nav-item {
    grid-template-columns: 32px 1fr;
    justify-items: stretch;
    min-height: 46px;
  }

  .main-shell {
    min-height: 0;
    border-radius: 0 0 8px 8px;
  }

  .nav-list {
    grid-template-columns: repeat(6, minmax(130px, 1fr));
    overflow-x: auto;
  }

  .sidebar-projects {
    display: none;
  }

  .topbar {
    grid-template-columns: 1fr;
  }

  .metric-strip,
  .dashboard-grid,
  .home-launchpad,
  .home-workflow-grid,
  .home-continue-grid,
  .home-client-grid,
  .activity-console-header,
  .activity-console-layout,
  .drawer-summary-grid,
  .account-overview-grid,
  .account-media-grid,
  .billing-summary-grid,
  .billing-chart-grid,
  .job-detail-grid,
  .argument-grid,
  .workload-catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jobs-dashboard-page {
    grid-template-columns: minmax(300px, 0.85fr) minmax(0, 2.2fr);
  }

  .jobs-dashboard-page.filters-open {
    grid-template-columns: minmax(190px, 0.65fr) minmax(300px, 0.9fr) minmax(0, 2fr);
  }

  .job-detail-selector-item {
    grid-template-columns: 64px minmax(0, 1fr) auto;
  }

  .job-selector-thumb {
    width: 64px;
  }

  .dashboard-grid > .view-section {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .app-shell,
  .login-screen {
    padding: 12px;
  }

  .login-layout,
  .metric-strip,
  .dashboard-grid,
  .home-launchpad,
  .home-workflow-grid,
  .home-continue-grid,
  .home-client-grid,
  .activity-console-header,
  .activity-console-layout,
  .activity-toolbar,
  .activity-detail-meta,
  .meta-grid,
  .compact-meta-list,
  .drawer-summary-grid,
  .account-overview-grid,
  .account-media-grid,
  .billing-summary-grid,
  .billing-chart-grid,
  .job-detail-grid,
  .argument-grid,
  .tutorial-demo-panel,
  .tutorial-layout,
  .workload-catalog,
  .workload-card,
  .modal-submit-footer,
  .job-card {
    grid-template-columns: 1fr;
  }

  .home-command-panel,
  .home-launch-card {
    min-height: 220px;
  }

  .home-command-copy h2 {
    font-size: 34px;
  }

  .jobs-dashboard-page,
  .jobs-dashboard-page.filters-open {
    grid-template-columns: 1fr;
  }

  .portal-job-filter-rail,
  .job-detail-selector {
    position: static;
    max-height: none;
  }

  .job-detail-selector-list {
    max-height: none;
  }

  .job-detail-selector-list.cards {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: minmax(236px, auto);
  }

  .modal-backdrop {
    padding: 10px;
    place-items: stretch;
  }

  .workload-submit-modal {
    max-height: calc(100vh - 20px);
  }

  .jobs-actions {
    justify-content: stretch;
  }

  .jobs-actions > *,
  .compact-select-label {
    width: 100%;
  }

  .billing-chart-card.wide {
    grid-column: auto;
  }

  .selected-job-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .frame-control-bar {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .frame-control-bar input[type="range"],
  .frame-control-bar output {
    grid-column: 1 / -1;
  }

  .preview-gamma-control {
    grid-template-columns: 1fr;
    justify-self: stretch;
    width: 100%;
  }

  .preview-channel-control {
    grid-template-columns: 1fr;
  }

  .channel-button-group {
    justify-content: flex-start;
  }

  .metric-card {
    border-right: 0;
    border-bottom: 1px dashed rgba(160, 169, 170, 0.14);
  }

  .metric-card:last-child {
    border-bottom: 0;
  }

  .topbar-actions {
    justify-content: space-between;
  }

  .user-pill {
    min-width: 0;
  }
}
