      :root {
        --bg0: #0a0f0d;
        --bg1: #111916;
        --bg2: #16211c;
        --ink: #e6eee9;
        --muted: #84968e;
        --line: rgba(230, 238, 233, 0.1);
        --line-strong: rgba(230, 238, 233, 0.16);
        --accent: #3ccf9a;
        --accent-ink: #042018;
        --accent-soft: rgba(60, 207, 154, 0.12);
        --warn: #d4a85a;
        --bad: #d87264;
        --ok: #3ccf9a;
        --panel: #141c18;
        --panel-elev: #18221d;
        --font: "IBM Plex Sans", "Segoe UI", sans-serif;
        --mono: "IBM Plex Mono", ui-monospace, monospace;
        --radius: 8px;
        --header-h: 3.25rem;
        --control-h: 2.35rem;
        --control-pad-y: 0.45rem;
        --control-pad-x: 0.65rem;
        --control-fs: 0.875rem;
        --control-lh: 1.25;
        --ease: cubic-bezier(0.22, 1, 0.36, 1);
      }
      @font-face {
        font-family: "IBM Plex Sans";
        font-style: normal;
        font-weight: 400;
        font-display: swap;
        src: url("/fonts/ibm-plex-sans-400.woff2") format("woff2");
      }
      @font-face {
        font-family: "IBM Plex Sans";
        font-style: italic;
        font-weight: 400;
        font-display: swap;
        src: url("/fonts/ibm-plex-sans-400-italic.woff2") format("woff2");
      }
      @font-face {
        font-family: "IBM Plex Sans";
        font-style: normal;
        font-weight: 500;
        font-display: swap;
        src: url("/fonts/ibm-plex-sans-500.woff2") format("woff2");
      }
      @font-face {
        font-family: "IBM Plex Sans";
        font-style: normal;
        font-weight: 600;
        font-display: swap;
        src: url("/fonts/ibm-plex-sans-600.woff2") format("woff2");
      }
      @font-face {
        font-family: "IBM Plex Sans";
        font-style: normal;
        font-weight: 700;
        font-display: swap;
        src: url("/fonts/ibm-plex-sans-700.woff2") format("woff2");
      }
      @font-face {
        font-family: "IBM Plex Mono";
        font-style: normal;
        font-weight: 400;
        font-display: swap;
        src: url("/fonts/ibm-plex-mono-400.woff2") format("woff2");
      }
      @font-face {
        font-family: "IBM Plex Mono";
        font-style: normal;
        font-weight: 500;
        font-display: swap;
        src: url("/fonts/ibm-plex-mono-500.woff2") format("woff2");
      }
      * { box-sizing: border-box; }
      html { color-scheme: dark; }
      body {
        margin: 0;
        min-height: 100vh;
        font-family: var(--font);
        font-size: 14px;
        line-height: 1.45;
        color: var(--ink);
        background:
          linear-gradient(180deg, rgba(28, 52, 42, 0.35) 0%, transparent 28%),
          linear-gradient(135deg, var(--bg0) 0%, var(--bg1) 48%, var(--bg2) 100%);
        background-attachment: fixed;
      }
      .wrap {
        width: min(1320px, calc(100% - 2rem));
        margin: 0 auto;
        padding: 1rem 0 2.5rem;
      }
      .brand {
        font-family: var(--font);
        font-size: 1.35rem;
        font-weight: 600;
        margin: 0;
        letter-spacing: -0.03em;
      }
      .lede { margin: 0.35rem 0 0; color: var(--muted); max-width: 36rem; font-size: 0.92rem; }
      .cfg {
        display: grid;
        grid-template-columns: minmax(12rem, 1.2fr) minmax(10rem, 1fr) auto;
        gap: 0.5rem;
        align-items: end;
      }
      label.field {
        display: grid; gap: 0.28rem;
        font-size: 0.7rem; color: var(--muted);
        text-transform: uppercase; letter-spacing: 0.05em; font-weight: 500;
        align-content: end;
      }
      label.field > input:not([type="checkbox"]):not([type="radio"]),
      label.field > select,
      label.field > textarea {
        width: 100%;
      }
      input, select, button, textarea {
        font-family: var(--font);
        font-size: var(--control-fs);
        font-weight: 400;
        border-radius: var(--radius);
        border: 1px solid var(--line-strong);
        background: rgba(0, 0, 0, 0.28);
        color: var(--ink);
        padding: var(--control-pad-y) var(--control-pad-x);
        box-sizing: border-box;
        line-height: var(--control-lh);
        transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
      }
      input:not([type="checkbox"]):not([type="radio"]),
      select {
        height: var(--control-h);
        min-height: var(--control-h);
      }
      select {
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        padding-right: 2rem;
        background-color: rgba(0, 0, 0, 0.28);
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2384968e' d='M1.2 1.5 6 6.3 10.8 1.5 12 2.7 6 8.7 0 2.7z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 0.65rem center;
        background-size: 10px 7px;
        cursor: pointer;
      }
      input:focus, select:focus, textarea:focus {
        outline: none;
        border-color: rgba(60, 207, 154, 0.45);
        background-color: rgba(0, 0, 0, 0.38);
      }
      select:focus {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%233ccf9a' d='M1.2 1.5 6 6.3 10.8 1.5 12 2.7 6 8.7 0 2.7z'/%3E%3C/svg%3E");
      }
      input[type="checkbox"],
      input[type="radio"] {
        height: auto;
        min-height: 0;
        width: auto;
        padding: 0;
        border-radius: 3px;
      }
      button {
        cursor: pointer; background: var(--accent); color: var(--accent-ink);
        border: 1px solid transparent; font-weight: 600;
        padding: var(--control-pad-y) 0.85rem;
        display: inline-flex; align-items: center; justify-content: center;
        line-height: var(--control-lh);
        min-height: var(--control-h);
      }
      .toolbar > button,
      .cfg > button,
      .users-create > button {
        height: var(--control-h);
        min-height: var(--control-h);
      }
      button:hover:not(:disabled) { filter: brightness(1.05); }
      button.ghost {
        background: transparent; color: var(--ink); border: 1px solid var(--line-strong);
        font-weight: 500;
      }
      button.ghost:hover:not(:disabled) {
        background: rgba(255, 255, 255, 0.04);
        filter: none;
      }
      button.danger { background: var(--bad); color: #1a0a08; }
      button:disabled { opacity: 0.45; cursor: not-allowed; }
      .tabs {
        display: flex; gap: 0.15rem; flex-wrap: wrap;
        border-bottom: 1px solid var(--line);
        margin: 0;
        padding: 0;
      }
      .tabs button {
        background: transparent; color: var(--muted);
        border: none; border-bottom: 2px solid transparent;
        border-radius: 0; min-height: 2.4rem;
        padding: 0.55rem 0.85rem; font-weight: 500;
        margin-bottom: -1px;
      }
      .tabs button:hover:not(:disabled) {
        color: var(--ink); background: transparent; filter: none;
      }
      .tabs button.active {
        color: var(--accent); background: transparent;
        border-bottom-color: var(--accent); font-weight: 600;
      }
      .panel {
        background: var(--panel);
        border: 1px solid var(--line);
        border-radius: 10px;
        padding: 1rem 1.05rem;
        min-height: 18rem;
      }
      .panel[hidden] { display: none !important; }
      .panel:not([hidden]) {
        animation: panelIn 0.17s var(--ease) both;
      }
      .meta { color: var(--muted); font-size: 0.82rem; margin-bottom: 0.7rem; }
      table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
      th, td {
        text-align: left;
        padding: 0.55rem 0.5rem;
        border-bottom: 1px solid var(--line);
        vertical-align: middle;
      }
      th {
        color: var(--muted); font-size: 0.68rem; text-transform: uppercase;
        letter-spacing: 0.05em; font-weight: 600;
      }
      tbody tr { min-height: 2.75rem; }
      tbody tr:hover td { background: rgba(255, 255, 255, 0.015); }
      td .meta {
        margin: 0.15rem 0 0;
        font-size: 0.78rem;
      }
      .badge {
        display: inline-block;
        padding: 0.12rem 0.4rem;
        border-radius: 4px;
        font-size: 0.7rem;
        font-weight: 600;
        letter-spacing: 0.01em;
        font-family: var(--mono);
        vertical-align: middle;
        line-height: 1.25;
      }
      .badge.ok { background: var(--accent-soft); color: var(--ok); }
      .badge.warn { background: rgba(212,168,90,0.14); color: var(--warn); }
      .badge.bad { background: rgba(216,114,100,0.16); color: var(--bad); }
      .badge.muted { background: rgba(132,150,142,0.14); color: var(--muted); }
      .media-grid {
        display: grid;
        grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
        gap: 1rem;
        align-items: start;
      }
      .media-grid .browser {
        min-width: 0;
        max-height: min(70vh, 640px);
        overflow: auto;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: rgba(0, 0, 0, 0.18);
        scrollbar-width: thin;
        scrollbar-color: rgba(132, 150, 142, 0.4) transparent;
      }
      .media-grid .browser::-webkit-scrollbar {
        width: 8px;
      }
      .media-grid .browser::-webkit-scrollbar-thumb {
        background: rgba(132, 150, 142, 0.4);
        border-radius: 4px;
      }
      .media-grid .browser table {
        margin: 0;
      }
      .media-grid .browser th,
      .media-grid .browser td {
        word-break: break-word;
      }
      .media-grid .browser td.mono {
        white-space: nowrap;
      }
      .media-grid .preview {
        position: sticky;
        top: 0.75rem;
        min-width: 0;
      }
      .media-grid .preview .meta {
        margin-bottom: 0.5rem;
      }
      .skel {
        height: 0.72rem;
        border-radius: 4px;
        background: linear-gradient(
          90deg,
          rgba(230, 238, 233, 0.04) 20%,
          rgba(230, 238, 233, 0.12) 50%,
          rgba(230, 238, 233, 0.04) 80%
        );
        background-size: 200% 100%;
        animation: skel 1.15s ease infinite;
      }
      @keyframes skel {
        0% { background-position: 200% 0; }
        100% { background-position: -200% 0; }
      }
      tr.skel-row td { padding-top: 0.7rem; padding-bottom: 0.7rem; }
      .empty-state {
        text-align: center;
        padding: 2.4rem 1.25rem;
      }
      .empty-state h3 {
        margin: 0 0 0.4rem;
        font-size: 1rem;
        font-weight: 600;
        color: var(--ink);
        letter-spacing: -0.02em;
      }
      .empty-state p {
        margin: 0 auto;
        max-width: 28rem;
        color: var(--muted);
        font-size: 0.88rem;
        line-height: 1.45;
      }
      .jobs-table tbody tr[data-job] {
        cursor: pointer;
      }
      .jobs-table tbody tr[data-job]:hover,
      .jobs-table tbody tr[data-job].is-open {
        background: var(--accent-soft);
      }
      .confirm-target {
        font-family: var(--mono);
        font-size: 0.82rem;
        word-break: break-all;
        background: rgba(0, 0, 0, 0.28);
        border: 1px solid var(--line);
        border-radius: var(--radius);
        padding: 0.55rem 0.7rem;
        margin: 0 0 1rem;
      }
      .modal.confirm-modal {
        width: min(420px, 100%);
      }
      .drawer-root {
        position: fixed;
        inset: 0;
        z-index: 30;
        display: none;
      }
      .drawer-root.open { display: block; }
      .drawer-backdrop {
        position: absolute;
        inset: 0;
        background: rgba(4, 10, 8, 0.5);
      }
      .drawer {
        position: absolute;
        top: 0;
        right: 0;
        width: min(440px, 100%);
        height: 100%;
        display: flex;
        flex-direction: column;
        background:
          linear-gradient(180deg, #16211c 0%, #111916 40%, #0c1210 100%);
        border-left: 1px solid var(--line);
        box-shadow: -16px 0 48px rgba(0, 0, 0, 0.35);
        animation: drawer-in 0.22s var(--ease) both;
      }
      @keyframes drawer-in {
        from { transform: translateX(16px); opacity: 0.6; }
        to { transform: translateX(0); opacity: 1; }
      }
      .drawer-head {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 0.75rem;
        padding: 1.1rem 1.15rem 0.85rem;
        border-bottom: 1px solid var(--line);
      }
      .drawer-head h2 {
        margin: 0;
        font-size: 1.15rem;
        letter-spacing: -0.02em;
      }
      .drawer-head .meta { margin: 0.25rem 0 0; }
      .drawer-body {
        flex: 1;
        overflow: auto;
        padding: 1rem 1.15rem 1.25rem;
      }
      .drawer-body .task-row {
        display: grid;
        gap: 0.15rem;
        padding: 0.55rem 0;
        border-bottom: 1px solid var(--line);
        font-size: 0.86rem;
      }
      .drawer-body .task-row:last-child { border-bottom: 0; }
      .drawer-body .task-row-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
      }
      .drawer-body .task-ffmpeg-btn {
        width: 1.7rem;
        min-width: 1.7rem;
        height: 1.7rem;
        min-height: 1.7rem;
        flex-shrink: 0;
      }
      .drawer-body .task-ffmpeg-btn svg {
        width: 0.95rem;
        height: 0.95rem;
      }
      .drawer-body .task-ffmpeg {
        margin: 0.35rem 0 0;
        padding: 0.55rem 0.65rem;
        max-height: 12rem;
        overflow: auto;
        white-space: pre-wrap;
        word-break: break-word;
        background: var(--panel-2, rgba(0,0,0,0.04));
        border: 1px solid var(--line);
        border-radius: 6px;
        font-size: 0.72rem;
      }
      .drawer-body .task-row-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem;
        align-items: center;
        margin-top: 0.35rem;
      }
      .drawer-body .task-row-actions .rung-assign {
        max-width: 14rem;
        font-size: 0.8rem;
      }
      .drawer-section {
        margin: 1rem 0 0.35rem;
        font-size: 0.72rem;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: var(--muted);
      }
      .drawer-json {
        position: relative;
        margin: 0.25rem 0 0.65rem;
      }
      .drawer-json-tools {
        position: absolute;
        top: 0.25rem;
        right: 0.25rem;
        z-index: 1;
      }
      .drawer-json pre {
        margin: 0;
        padding: 0.55rem 0.65rem;
        max-height: 14rem;
        overflow: auto;
        white-space: pre-wrap;
        word-break: break-word;
        background: var(--panel-2, rgba(0,0,0,0.04));
        border: 1px solid var(--line);
        border-radius: 6px;
        font-size: 0.72rem;
      }
      .drawer-json:has(.drawer-json-tools) pre {
        padding-right: 2.4rem;
      }
      .drawer-body .drawer-expand-btn {
        width: 1.7rem;
        min-width: 1.7rem;
        height: 1.7rem;
        min-height: 1.7rem;
      }
      .drawer-body .drawer-expand-btn svg {
        width: 0.95rem;
        height: 0.95rem;
        transition: transform 0.15s ease;
      }
      .drawer-body .drawer-expand-btn[aria-expanded="true"] svg {
        transform: rotate(180deg);
      }
      .callback-row {
        padding: 0.45rem 0;
        border-bottom: 1px solid var(--line);
        font-size: 0.86rem;
      }
      .callback-row:last-child { border-bottom: 0; }
      .callback-row-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
      }
      .callback-detail { margin-top: 0.35rem; }
      .drawer-body .meta.err { color: var(--danger, #b42318); }
      .drawer-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 0.45rem;
        padding: 0.9rem 1.15rem 1.15rem;
        border-top: 1px solid var(--line);
      }
      .media-empty {
        color: var(--muted);
        padding: 1.25rem 0.75rem !important;
        text-align: center;
      }
      @media (max-width: 900px) {
        .media-grid { grid-template-columns: 1fr; }
        .media-grid .preview { position: static; }
        .media-grid .browser { max-height: none; }
        .cfg { grid-template-columns: 1fr; }
        .ops-chrome-inner { flex-wrap: wrap; height: auto; min-height: var(--header-h); padding: 0.55rem 0; gap: 0.5rem; }
      }
      .crumbs { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-bottom: 0.55rem; }
      .crumbs button { padding: 0.28rem 0.5rem; font-size: 0.78rem; min-height: 0; }
      .row-actions {
        display: flex;
        gap: 0.3rem;
        flex-wrap: wrap;
        align-items: center;
      }
      .row-actions button {
        min-height: 1.85rem;
        height: 1.85rem;
        padding: 0.2rem 0.55rem;
        font-size: 0.78rem;
        font-weight: 500;
      }
      .player-box {
        position: relative;
        background: #050807;
        border-radius: var(--radius);
        border: 1px solid var(--line);
        overflow: hidden;
        width: 100%;
        aspect-ratio: 16 / 9;
        min-height: 180px;
      }
      #panel-media .player-box .video-js,
      #panel-media .player-box .video-js .vjs-tech {
        position: absolute;
        inset: 0;
        width: 100% !important;
        height: 100% !important;
      }
      .status { margin-top: 0.65rem; color: var(--muted); font-size: 0.82rem; min-height: 1.15em; }
      .toolbar {
        display: flex;
        gap: 0.45rem;
        flex-wrap: wrap;
        margin-bottom: 0.7rem;
        align-items: end;
      }
      .toolbar .field {
        margin: 0;
        min-width: 7.5rem;
      }
      .toolbar select,
      .toolbar input[type="search"],
      .toolbar input:not([type="checkbox"]):not([type="radio"]) {
        display: block;
        width: 100%;
      }
      .toolbar .field input[type="search"] {
        min-width: 10rem;
      }
      .toolbar > button {
        align-self: end;
      }
      .panel-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        margin-bottom: 0.7rem;
      }
      .panel-head .meta {
        margin: 0;
        flex: 1 1 auto;
        min-width: 0;
      }
      .icon-btn {
        flex: 0 0 auto;
        width: 2.1rem;
        min-width: 2.1rem;
        height: 2.1rem;
        min-height: 2.1rem;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
      }
      .icon-btn svg {
        width: 1.05rem;
        height: 1.05rem;
      }
      code {
        font-family: var(--mono);
        font-size: 0.8em;
        color: var(--accent);
      }
      .mono {
        font-family: var(--mono);
        font-variant-numeric: tabular-nums;
        font-size: 0.86em;
      }
      .user-menu {
        position: relative;
      }
      .user-menu-trigger {
        display: inline-flex;
        align-items: center;
        gap: 0.45rem;
        min-height: 2rem;
        max-width: min(22rem, 72vw);
        padding: 0.3rem 0.55rem 0.3rem 0.7rem;
        background: transparent;
        color: var(--ink);
        border: 1px solid var(--line-strong);
        border-radius: 999px;
      }
      .user-menu-trigger:hover:not(:disabled) {
        border-color: var(--accent);
        background: var(--accent-soft);
      }
      .user-menu.open .user-menu-trigger {
        border-color: var(--accent);
        background: var(--accent-soft);
      }
      .user-menu-name {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 0.82rem;
        font-weight: 600;
      }
      .user-menu .role {
        flex-shrink: 0;
        color: var(--accent);
        font-size: 0.68rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        font-family: var(--mono);
      }
      .user-menu-caret {
        flex-shrink: 0;
        width: 0.4rem;
        height: 0.4rem;
        margin: 0 0.15rem 0 0.05rem;
        border-right: 1.5px solid var(--muted);
        border-bottom: 1.5px solid var(--muted);
        transform: rotate(45deg) translateY(-1px);
        transition: transform 0.15s var(--ease);
      }
      .user-menu.open .user-menu-caret {
        transform: rotate(225deg) translateY(-1px);
      }
      .user-menu-panel {
        position: absolute;
        top: calc(100% + 0.45rem);
        right: 0;
        z-index: 30;
        min-width: 14.5rem;
        padding: 0.35rem;
        border: 1px solid var(--line-strong);
        border-radius: 10px;
        background: var(--panel-elev);
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
      }
      .user-menu-panel[hidden] {
        display: none !important;
      }
      .user-menu-meta {
        padding: 0.4rem 0.65rem 0.55rem;
        margin-bottom: 0.25rem;
        border-bottom: 1px solid var(--line);
      }
      .user-menu-email {
        color: var(--muted);
        font-size: 0.78rem;
        word-break: break-all;
      }
      .user-menu-item {
        display: block;
        width: 100%;
        text-align: left;
        background: transparent;
        border: 0;
        border-radius: 6px;
        padding: 0.5rem 0.65rem;
        font-size: 0.85rem;
        color: var(--ink);
      }
      .user-menu-item:hover:not(:disabled) {
        background: var(--accent-soft);
      }
      .login-form {
        display: grid; gap: 0.7rem; margin-top: 1.35rem;
      }
      .login-form .field { text-transform: none; letter-spacing: 0; font-size: 0.8rem; font-weight: 500; }
      .login-form button[type="submit"] { width: 100%; margin-top: 0.35rem; min-height: 2.55rem; }
      /* Auth gate: unauthenticated = login only; no ops chrome */
      #opsLoginGate[hidden],
      #opsShell[hidden],
      .user-menu[hidden] {
        display: none !important;
      }
      /* Avoid login↔shell flash on refresh: class is set in <head> before paint. */
      html.ops-authed #opsLoginGate {
        display: none !important;
        animation: none !important;
      }
      html.ops-authed #opsShell {
        display: block !important;
        animation: none !important;
      }
      html.ops-anon #opsShell {
        display: none !important;
        animation: none !important;
      }
      html.ops-anon #opsLoginGate {
        display: flex !important;
      }
      #opsLoginGate {
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 1.5rem;
        animation: rise 0.35s var(--ease) both;
      }
      #opsLoginGate .login-card {
        width: min(22.5rem, 100%);
        background: var(--panel-elev);
        border: 1px solid var(--line-strong);
        border-radius: 12px;
        padding: 1.85rem 1.6rem 1.55rem;
        box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
      }
      #opsLoginGate .brand {
        font-size: 1.65rem;
        font-weight: 600;
        margin: 0;
        text-align: center;
        letter-spacing: -0.03em;
      }
      #opsLoginGate .lede {
        margin: 0.45rem 0 0;
        text-align: center;
        max-width: none;
        font-size: 0.9rem;
      }
      #opsLoginGate .status {
        margin-top: 0.85rem;
        text-align: center;
        min-height: 1.2em;
        font-size: 0.82rem;
      }
      #opsShell {
        animation: rise 0.28s var(--ease) both;
        min-height: 100vh;
      }
      .ops-chrome {
        position: sticky;
        top: 0;
        z-index: 20;
        background: rgba(10, 15, 13, 0.88);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid var(--line);
      }
      .ops-chrome-inner {
        width: min(1320px, calc(100% - 2rem));
        margin: 0 auto;
        height: var(--header-h);
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
      }
      .ops-mark {
        width: 28px;
        height: 28px;
        border-radius: 7px;
        flex-shrink: 0;
        display: block;
      }
      .ops-mark-lg {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        margin: 0 auto 0.85rem;
      }
      .ops-brand-lockup {
        display: flex;
        align-items: center;
        gap: 0.65rem;
        min-width: 0;
      }
      .ops-brand-text {
        display: flex;
        flex-direction: column;
        gap: 0.05rem;
        min-width: 0;
      }
      .ops-brand-lockup .brand { font-size: 1.05rem; line-height: 1.15; }
      .ops-brand-lockup .ops-tag {
        font-size: 0.68rem;
        font-weight: 600;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--muted);
        font-family: var(--mono);
      }
      .ops-chrome-end {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        flex-shrink: 0;
      }
      .ops-chrome .tabs {
        width: min(1320px, calc(100% - 2rem));
        margin: 0 auto;
      }
      .ops-main.wrap {
        padding-top: 0.9rem;
      }
      .profiles-layout {
        display: grid;
        grid-template-columns: minmax(16rem, 20rem) minmax(0, 1fr);
        gap: 1.25rem;
        align-items: start;
      }
      @media (max-width: 860px) {
        .profiles-layout { grid-template-columns: 1fr; }
      }
      .profile-list {
        display: grid;
        gap: 0.35rem;
      }
      .profile-list button {
        /* Override global button inline-flex row — slug + label must stack. */
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 0.2rem;
        text-align: left;
        width: 100%;
        height: auto;
        min-height: 0;
        padding: 0.6rem 0.75rem;
        border-radius: var(--radius);
        border: 1px solid var(--line);
        background: var(--panel);
        color: var(--ink);
        cursor: pointer;
        font-weight: 500;
        white-space: normal;
        line-height: 1.3;
      }
      .profile-list button.active {
        border-color: var(--accent);
        background: var(--accent-soft);
      }
      .profile-list .slug {
        display: block;
        font-family: var(--mono);
        font-size: 0.8rem;
        font-weight: 600;
        color: var(--ink);
        word-break: break-word;
      }
      .profile-list .meta {
        display: block;
        color: var(--muted);
        font-size: 0.72rem;
        font-weight: 400;
        margin: 0; /* kill global .meta margin-bottom */
        line-height: 1.35;
        white-space: normal;
      }
      .profile-list .meta .mark-default {
        color: var(--accent);
        font-weight: 600;
      }
      .profile-editor fieldset {
        margin: 0.85rem 0 0;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        padding: 0.7rem 0.85rem 0.85rem;
      }
      .profile-editor legend {
        padding: 0 0.35rem;
        color: var(--muted);
        font-size: 0.78rem;
      }
      .tuning-section .field label,
      .profile-editor .check-row label {
        font-size: 0.82rem;
      }
      .tuning-bool {
        display: flex;
        align-items: center;
        gap: 0.45rem;
        min-height: var(--control-h);
      }

      .settings-block {
        border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1rem;
      }
      .settings-block:first-child { border-top: none; padding-top: 0; margin-top: 0; }
      .settings-block h3 {
        margin: 0 0 0.35rem; font-size: 1rem; font-weight: 600;
      }
      .settings-block p.hint { margin: 0 0 0.65rem; color: var(--muted); font-size: 0.82rem; }
      .settings-block textarea {
        font: inherit; font-family: var(--mono); width: 100%; min-height: 7rem; border-radius: var(--radius);
        border: 1px solid var(--line-strong); background: rgba(0,0,0,0.28); color: var(--ink);
        padding: 0.55rem 0.7rem; resize: vertical; line-height: 1.4; font-size: 0.85rem;
      }
      .settings-block .preview-keys {
        margin: 0.5rem 0 0; padding: 0.65rem 0.75rem; border-radius: var(--radius);
        background: rgba(0,0,0,0.28); border: 1px solid var(--line);
        font-size: 0.8rem; color: var(--muted);
      }
      .settings-block .preview-keys code { display: block; margin: 0.2rem 0; word-break: break-all; }
      #sqsQueueHint code { display: block; margin: 0.2rem 0; word-break: break-all; }
      #sqsProjectPriorities {
        display: grid;
        gap: 0.75rem;
      }
      #sqsProjectPriorities .field { margin: 0; }
      #sqsProjectPriorities input[type="number"] { max-width: 8rem; }
      .project-card {
        border: 1px solid rgba(255,255,255,0.08);
        border-radius: var(--radius);
        padding: 0.85rem 0.9rem;
        display: grid;
        gap: 0.7rem;
        background: rgba(0,0,0,0.18);
      }
      .project-card-head {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem 1rem;
        align-items: flex-start;
        justify-content: space-between;
      }
      .project-card-head .meta {
        margin-top: 0.2rem;
        font-size: 0.78rem;
      }
      .project-card-head code {
        font-size: 0.78rem;
      }
      .project-card-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 0.35rem;
        align-items: center;
      }
      .project-card .opts-grid {
        margin: 0;
      }
      .project-card > .field > .gpu-picks {
        margin-top: 0.35rem;
        padding: 0.45rem 0.55rem;
        border-radius: calc(var(--radius) - 2px);
        border: 1px solid var(--line);
        background: rgba(0,0,0,0.22);
        min-height: 2rem;
      }
      .project-row {
        display: flex;
        flex-wrap: wrap;
        gap: 0.45rem 0.75rem;
        align-items: center;
        margin: 0.45rem 0;
      }
      .fleet-projects {
        display: flex;
        flex-wrap: wrap;
        gap: 0.35rem 0.7rem;
      }
      .fleet-projects label,
      .gpu-picks label {
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
        font-size: 0.8rem;
        margin: 0;
      }
      .gpu-picks {
        display: flex;
        flex-wrap: wrap;
        gap: 0.35rem 0.7rem;
      }
      .conn-row {
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem 0.75rem;
        align-items: center;
        margin: 0.4rem 0;
      }
      .conn-row .meta { flex: 1; min-width: 12rem; }
      .conn-row .conn-actions {
        display: inline-flex;
        gap: 0.2rem;
        margin-left: auto;
      }
      .conn-row .conn-danger:hover:not(:disabled) {
        color: var(--bad);
        border-color: rgba(216, 114, 100, 0.4);
      }
      .warn-box {
        margin: 0.65rem 0 0; padding: 0.55rem 0.7rem; border-radius: var(--radius);
        border: 1px solid rgba(212,168,90,0.32); background: rgba(212,168,90,0.08);
        color: var(--warn); font-size: 0.8rem;
      }
      .users-create {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
        gap: 0.5rem;
        align-items: end;
        margin-bottom: 1rem;
      }
      .users-create > button {
        width: 100%;
      }
      .audit-detail { max-width: 28rem; word-break: break-word; }
      .audit-ua { max-width: 14rem; font-size: 0.78rem; color: var(--muted); word-break: break-word; }

      /* Lab-specific additions for unified page */
      button.primary {
        background: var(--accent);
        color: var(--accent-ink);
        font-weight: 600;
      }
      .status.ok { color: var(--ok); }
      .status.bad { color: var(--bad); }
      .status.warn { color: var(--warn); }
      #panel-lab .meta a { color: var(--accent); }
      #panel-lab .meta { word-break: break-all; }
      @media (max-width: 900px) {
        .cfg { grid-template-columns: 1fr; }
      }

      /* —— Lab panel styles —— */
.drop {
        /* Must be block: <label> defaults to inline and collapses this zone. */
        display: block;
        position: relative;
        border: 1.5px dashed rgba(61, 222, 168, 0.35);
        border-radius: 14px;
        padding: 1.75rem 1.25rem;
        text-align: center;
        background: rgba(0, 0, 0, 0.2);
        transition: border-color 0.2s, background 0.2s, transform 0.2s;
        cursor: pointer;
      }

      .drop.off {
        opacity: 0.45;
        pointer-events: none;
      }

      .drop:hover,
      .drop.drag {
        border-color: var(--accent);
        background: rgba(61, 222, 168, 0.06);
        transform: translateY(-1px);
      }

      .drop strong {
        display: block;
        font-size: 1.05rem;
        margin-bottom: 0.25rem;
      }

      .drop span {
        color: var(--muted);
        font-size: 0.92rem;
      }

      /* Visually hide the native control; the .drop label opens the picker. */
      .drop input {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
        opacity: 0;
      }

      .modal-root {
        position: fixed;
        inset: 0;
        z-index: 40;
        display: none;
        align-items: center;
        justify-content: center;
        padding: 1.25rem;
      }

      .modal-root.open {
        display: flex;
      }

      .modal-backdrop {
        position: absolute;
        inset: 0;
        background: rgba(4, 10, 8, 0.72);
        backdrop-filter: blur(4px);
      }

      .modal.pw-modal {
        width: min(400px, 100%);
      }

      .pw-modal .field {
        margin-bottom: 0.75rem;
      }

      .modal {
        position: relative;
        width: min(520px, 100%);
        max-height: min(92vh, 900px);
        overflow: auto;
        border: 1px solid var(--line);
        border-radius: 16px;
        background:
          radial-gradient(600px 200px at 10% 0%, rgba(61, 222, 168, 0.08), transparent 60%),
          linear-gradient(165deg, #121a17, #0c1210);
        padding: 1.15rem 1.15rem 1.25rem;
        box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
        animation: rise 0.25s ease both;
      }

      .modal-head {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 0.75rem;
        margin-bottom: 1rem;
      }

      .modal-head h2 {
        margin: 0;
        font-family: var(--font);
        font-size: 1.25rem;
        font-weight: 600;
        letter-spacing: -0.02em;
      }

      .modal-head p {
        margin: 0.25rem 0 0;
        color: var(--muted);
        font-size: 0.9rem;
      }

      .modal-close {
        flex-shrink: 0;
        width: 2.2rem;
        height: 2.2rem;
        padding: 0;
        border-radius: 999px;
        border: 1px solid var(--line);
        background: transparent;
        color: var(--muted);
        font-size: 1.25rem;
        line-height: 1;
      }

      .modal .status {
        margin-top: 0.75rem;
      }

      .actions {
        display: flex;
        flex-wrap: wrap;
        gap: 0.6rem;
        margin-top: 1rem;
      }

      .status.ok {
        color: var(--ok);
      }
      .status.bad {
        color: var(--bad);
      }
      .status.warn {
        color: var(--warn);
      }

      .tasks {
        margin: 0.75rem 0 0;
        padding: 0;
        list-style: none;
        display: grid;
        gap: 0.35rem;
        font-size: 0.88rem;
        color: var(--muted);
      }

      .tasks li {
        display: flex;
        justify-content: space-between;
        gap: 1rem;
        border-bottom: 1px solid var(--line);
        padding: 0.35rem 0;
      }

      .bench {
        margin: 1rem 0 0;
        padding: 0.85rem 1rem;
        border: 1px solid var(--line);
        border-radius: 12px;
        background: rgba(0, 0, 0, 0.22);
        display: none;
      }

      .bench.visible {
        display: block;
      }

      .bench h2 {
        margin: 0 0 0.55rem;
        font-size: 0.75rem;
        font-weight: 600;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--muted);
      }

      .sizes-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        margin-bottom: 0.55rem;
      }

      .sizes-head h2 {
        margin: 0;
      }

      .sizes-head .ghost {
        padding: 0.3rem 0.65rem;
        font-size: 0.75rem;
        flex-shrink: 0;
      }

      .bench ol {
        margin: 0;
        padding: 0;
        list-style: none;
        display: grid;
        gap: 0.3rem;
        font-size: 0.9rem;
      }

      .bench li {
        display: flex;
        justify-content: space-between;
        gap: 1rem;
        color: var(--muted);
      }

      .bench li span:last-child {
        font-variant-numeric: tabular-nums;
        color: var(--ink);
      }

      .bench li.total {
        margin-top: 0.35rem;
        padding-top: 0.45rem;
        border-top: 1px solid var(--line);
        color: var(--ink);
        font-weight: 600;
      }

      .opts {
        margin-top: 1rem;
        display: grid;
        gap: 0.85rem;
      }

      .opts fieldset {
        margin: 0;
        padding: 0.75rem 0.9rem;
        border: 1px solid var(--line);
        border-radius: 12px;
        background: rgba(0, 0, 0, 0.18);
      }

      .opts legend {
        padding: 0 0.35rem;
        font-size: 0.72rem;
        font-weight: 600;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--muted);
      }

      .check-row,
      .radio-row {
        display: flex;
        flex-wrap: wrap;
        gap: 0.65rem 1rem;
        margin-top: 0.35rem;
      }

      .check-row label,
      .radio-row label {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        font-size: 0.9rem;
        color: var(--ink);
        cursor: pointer;
      }

      .opts-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
        gap: 0.65rem;
        margin-top: 0.35rem;
      }

      /* Lab per-run profile override */
      .lab-override {
        border: 1px solid var(--line);
        border-radius: 12px;
        background: rgba(0, 0, 0, 0.18);
        padding: 0.55rem 0.9rem 0.8rem;
      }

      .lab-override > summary {
        cursor: pointer;
        list-style: none;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.6rem;
        font-size: 0.78rem;
        font-weight: 600;
        color: var(--ink);
        padding: 0.15rem 0;
        user-select: none;
      }

      .lab-override > summary::-webkit-details-marker {
        display: none;
      }

      .lab-override > summary::before {
        content: "▸";
        color: var(--muted);
        transition: transform 0.15s ease;
      }

      .lab-override[open] > summary::before {
        transform: rotate(90deg);
      }

      .lab-override > summary .hint {
        margin-left: auto;
        font-weight: 500;
      }

      .lab-override-body {
        display: grid;
        gap: 0.7rem;
        margin-top: 0.55rem;
      }

      .lab-override .check {
        display: inline-flex;
        align-items: center;
        gap: 0.45rem;
        font-size: 0.85rem;
        font-weight: 600;
        color: var(--ink);
        cursor: pointer;
      }

      .override-row {
        display: grid;
        gap: 0.4rem;
      }

      .override-row > select {
        max-width: 12rem;
      }

      .override-audio {
        margin: 0;
        padding: 0.65rem 0.85rem 0.8rem;
        border: 1px dashed var(--line);
        border-radius: 10px;
      }

      .override-audio legend {
        padding: 0 0.3rem;
        font-size: 0.72rem;
        color: var(--muted);
      }

      .lab-override .opts-grid .field select:disabled,
      .lab-override .opts-grid .field input:disabled {
        opacity: 0.55;
      }

      .downloads {
        margin: 0.75rem 0 0;
        padding: 0;
        list-style: none;
        display: grid;
        gap: 0.35rem;
        font-size: 0.9rem;
      }

      .downloads a {
        color: var(--accent, #7dd3fc);
      }

      .jobs {
        width: 100%;
        margin-top: 0;
        display: grid;
        gap: 0.75rem;
      }

      .jobs-head {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 0.75rem;
      }

      .jobs-head h2 {
        margin: 0;
        font-size: 0.75rem;
        font-weight: 600;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--muted);
      }

      .jobs-head .count {
        font-size: 0.8rem;
        color: var(--muted);
      }

      .job-list {
        display: grid;
        gap: 0.4rem;
        width: 100%;
      }

      .job-item {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 0.75rem;
        width: 100%;
        padding: 0.7rem 0.85rem;
        border: 1px solid var(--line);
        border-radius: 10px;
        background: rgba(0, 0, 0, 0.18);
        cursor: pointer;
        text-align: left;
        color: inherit;
        font: inherit;
      }

      .job-item:hover {
        border-color: rgba(61, 222, 168, 0.35);
      }

      .job-item.active {
        border-color: rgba(61, 222, 168, 0.55);
        background: rgba(61, 222, 168, 0.06);
      }

      .job-item.playing {
        border-color: var(--accent);
      }

      .job-item .dot {
        width: 0.5rem;
        height: 0.5rem;
        border-radius: 50%;
        background: var(--muted);
        flex-shrink: 0;
      }

      .job-item .dot.warn { background: var(--warn); }
      .job-item .dot.ok { background: var(--ok); }
      .job-item .dot.bad { background: var(--bad); }
      .job-item .dot.play { background: var(--accent); }

      .job-item .main {
        min-width: 0;
      }

      .job-item .title {
        font-size: 0.95rem;
        font-weight: 500;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .job-item .meta-line {
        margin-top: 0.15rem;
        font-size: 0.78rem;
        color: var(--muted);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .job-item .play-mini {
        padding: 0.35rem 0.75rem;
        font-size: 0.8rem;
        flex-shrink: 0;
      }

      .job-item .row-btns {
        display: flex;
        gap: 0.35rem;
        align-items: center;
        flex-shrink: 0;
        flex-wrap: wrap;
        justify-content: flex-end;
      }

      .job-item .cancel-mini {
        padding: 0.35rem 0.65rem;
        font-size: 0.8rem;
        background: transparent;
        color: var(--bad);
        border: 1px solid rgba(224, 122, 106, 0.45);
      }

      .job-item .dot.muted { background: var(--muted); }

      .job-detail {
        margin-top: 0;
        padding: 0.95rem 1rem;
        border: 1px solid var(--line);
        border-radius: 12px;
        background: rgba(0, 0, 0, 0.22);
        display: none;
      }

      .job-detail.visible {
        display: block;
      }

      .job-detail .detail-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        margin-bottom: 0.75rem;
        flex-wrap: wrap;
      }

      .job-detail .detail-head h3 {
        margin: 0;
        font-size: 0.95rem;
        font-weight: 600;
        word-break: break-all;
      }

      .detail-title-block {
        min-width: 0;
        flex: 1;
      }

      .detail-profile {
        margin: 0.28rem 0 0;
        font-size: 0.78rem;
        font-family: var(--mono);
        color: var(--accent);
        word-break: break-word;
      }

      .job-detail .detail-head .detail-actions {
        display: flex;
        align-items: center;
        gap: 0.55rem;
      }

      .job-detail .detail-head #cancelJobBtn {
        padding: 0.35rem 0.7rem;
        font-size: 0.78rem;
        color: var(--bad);
        border-color: rgba(224, 122, 106, 0.45);
      }

      .job-detail .detail-head span.phase {
        font-size: 0.78rem;
        color: var(--muted);
      }

      .job-detail .detail-head .play-btn {
        padding: 0.4rem 0.85rem;
        font-size: 0.8rem;
      }

      .detail-grid {
        display: grid;
        gap: 0.85rem;
      }

      @media (min-width: 720px) {
        .detail-grid {
          grid-template-columns: 1fr 1fr;
        }
      }

      .player-panel {
        animation: rise 0.9s ease both;
      }

      .player-split {
        display: grid;
        gap: 0.85rem;
        grid-template-columns: 1fr;
      }

      .player-split.count-2,
      .player-split.count-3,
      .player-split.count-4 {
        grid-template-columns: 1fr 1fr;
      }

      .player-split.count-3 > .player-pane:nth-child(3) {
        grid-column: 1 / -1;
      }

      @media (max-width: 900px) {
        .player-split.count-2,
        .player-split.count-3,
        .player-split.count-4 {
          grid-template-columns: 1fr;
        }
        .player-split.count-3 > .player-pane:nth-child(3) {
          grid-column: auto;
        }
      }

      .player-pane {
        min-width: 0;
      }

      .player-pane.audio-on .player-mount {
        box-shadow: inset 0 0 0 2px var(--accent);
      }

      .player-pane-head {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 0.5rem;
      }

      .player-pane-head .now-playing {
        margin: 0;
      }

      .pane-actions {
        display: flex;
        gap: 0.3rem;
        flex-shrink: 0;
      }

      .player-pane-head .ghost {
        padding: 0.2rem 0.55rem;
        font-size: 0.75rem;
        flex-shrink: 0;
      }

      .audio-btn[aria-pressed="true"] {
        color: var(--accent-ink);
        background: var(--accent);
        border-color: transparent;
      }

      .player-mount {
        position: relative;
        width: 100%;
        aspect-ratio: 16 / 9;
        border-radius: 14px;
        border: 1px solid var(--line);
        overflow: hidden;
        background: #050807;
      }

      /* Scope to Lab only — absolute fill must not leak into Media Manager. */
      #panel-lab .player-mount .video-js {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        background: #050807;
        font-family: var(--font);
      }

      #panel-lab .video-js .vjs-big-play-button,
      #panel-media .video-js .vjs-big-play-button {
        background: rgba(61, 222, 168, 0.9);
        border-color: transparent;
        border-radius: 999px;
        width: 3.2em;
        height: 3.2em;
        line-height: 3.2em;
        margin-top: -1.6em;
        margin-left: -1.6em;
        color: var(--accent-ink);
      }

      /* HLS/VHS can play while Video.js still thinks it is paused. */
      #panel-lab .video-js.vjs-playing .vjs-big-play-button,
      #panel-lab .video-js.vjs-has-started .vjs-big-play-button,
      #panel-lab .video-js:has(video:playing) .vjs-big-play-button,
      #panel-media .video-js.vjs-playing .vjs-big-play-button,
      #panel-media .video-js.vjs-has-started .vjs-big-play-button,
      #panel-media .video-js:has(video:playing) .vjs-big-play-button {
        display: none !important;
      }

      #panel-lab .video-js:hover .vjs-big-play-button,
      #panel-lab .video-js .vjs-big-play-button:focus,
      #panel-media .video-js:hover .vjs-big-play-button,
      #panel-media .video-js .vjs-big-play-button:focus {
        background: var(--accent);
      }

      .player-bar {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-end;
        gap: 0.75rem 1rem;
        margin-top: 0.75rem;
      }

      .player-bar label.field {
        flex: 0 1 12rem;
        margin: 0;
      }

      .player-bar select {
        padding: 0.55rem 0.7rem;
      }

      .player-bar .hint {
        flex: 1 1 10rem;
        min-width: 8rem;
        font-size: 0.8rem;
        color: var(--muted);
      }
      .player-bar-shared {
        margin-top: 0.55rem;
      }

      .player-bar-shared .meta {
        flex: 1 1 12rem;
        margin: 0;
        font-size: 0.78rem;
      }

      .lab-profiles {
        display: grid;
        gap: 0.28rem;
        max-height: 11.5rem;
        overflow: auto;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        padding: 0.4rem 0.5rem;
        background: rgba(0, 0, 0, 0.22);
      }

      .lab-profiles label {
        display: flex;
        align-items: flex-start;
        gap: 0.45rem;
        margin: 0;
        font-size: 0.82rem;
        font-weight: 500;
        text-transform: none;
        letter-spacing: 0;
        color: var(--ink);
        cursor: pointer;
      }

      .lab-profiles .slug {
        font-family: var(--mono);
        font-size: 0.78rem;
      }

      .lab-profiles .meta {
        display: block;
        margin: 0.05rem 0 0;
        font-size: 0.7rem;
        color: var(--muted);
        font-weight: 400;
      }

      .job-item .compare-mini,
      .job-item .rerun-mini {
        padding: 0.35rem 0.65rem;
        font-size: 0.78rem;
        flex-shrink: 0;
      }

      .job-item.comparing {
        border-color: rgba(125, 211, 252, 0.55);
      }

      .player-bar label.field.lab-bypass {
        flex: 0 0 auto;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0.45rem;
        text-transform: none;
        letter-spacing: 0;
        font-size: 0.82rem;
        font-weight: 500;
        color: var(--muted);
        white-space: nowrap;
      }
      .player-bar .lab-bypass input {
        margin: 0;
        width: auto;
        flex: 0 0 auto;
      }

      @keyframes rise {
        from {
          opacity: 0;
          transform: translateY(8px);
        }
        to {
          opacity: 1;
          transform: none;
        }
      }
      @keyframes panelIn {
        from {
          opacity: 0;
          transform: translateY(4px);
        }
        to {
          opacity: 1;
          transform: none;
        }
      }

      /* HLS Inspect */
      .inspect-layout {
        display: grid;
        grid-template-columns: minmax(18rem, 1fr) minmax(22rem, 1.35fr);
        gap: 1rem;
        align-items: start;
      }
      @media (max-width: 960px) {
        .inspect-layout {
          grid-template-columns: 1fr;
        }
      }
      #panel-inspect .player-box {
        aspect-ratio: 16 / 9;
        max-height: 28rem;
      }
      #panel-inspect .player-box .video-js,
      #panel-inspect .player-box .video-js .vjs-tech {
        position: absolute;
        inset: 0;
        width: 100% !important;
        height: 100% !important;
      }
      #panel-inspect .video-js .vjs-big-play-button {
        background: rgba(61, 222, 168, 0.9);
        border-color: transparent;
        border-radius: 999px;
        width: 3.2em;
        height: 3.2em;
        line-height: 3.2em;
        margin-top: -1.6em;
        margin-left: -1.6em;
        color: var(--accent-ink);
      }
      #panel-inspect .video-js.vjs-playing .vjs-big-play-button,
      #panel-inspect .video-js.vjs-has-started .vjs-big-play-button,
      #panel-inspect .video-js:has(video:playing) .vjs-big-play-button {
        display: none !important;
      }
      .inspect-side h3 {
        margin: 0 0 0.45rem;
        font-size: 0.92rem;
      }
      .inspect-seg-scroll {
        max-height: 32rem;
        overflow: auto;
        border: 1px solid var(--line);
        border-radius: var(--radius);
      }
      .inspect-seg-scroll table {
        margin: 0;
        font-size: 0.78rem;
      }
      .inspect-url {
        max-width: 14rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
      .inspect-codecs {
        max-width: 11rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 0.72rem;
      }
      .inspect-codecs-mismatch {
        color: #b45309;
        font-weight: 600;
      }
      .cf-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 1.35rem;
        height: 1.35rem;
        border-radius: 999px;
        border: 1px solid var(--line);
        vertical-align: middle;
      }
      .cf-icon svg {
        width: 0.78rem;
        height: 0.78rem;
      }
      .cf-icon.cf-hit {
        color: #0f7a4a;
        background: rgba(15, 122, 74, 0.14);
        border-color: rgba(15, 122, 74, 0.35);
      }
      .cf-icon.cf-miss {
        color: #a15c00;
        background: rgba(161, 92, 0, 0.14);
        border-color: rgba(161, 92, 0, 0.35);
      }
      .cf-icon.cf-refresh {
        color: #2a6fdb;
        background: rgba(42, 111, 219, 0.12);
        border-color: rgba(42, 111, 219, 0.35);
      }
      .cf-icon.cf-other {
        color: var(--muted);
      }
      #inspectSegHint .cf-icon {
        margin-right: 0.15rem;
      }

