    :root {
      --bg: #f3f6fb;
      --bg-soft: #eaf0f8;
      --panel: #ffffff;
      --line: #dce5f1;
      --line-strong: #c8d5e7;
      --text: #0f172a;
      --muted: #64748b;
      --brand: #0f4c81;
      --brand-soft: #e4f0fc;
      --ok: #0f766e;
      --warn: #b45309;
      --err: #b91c1c;
      --radius: 14px;
      --radius-sm: 10px;
      --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
      --shadow-soft: 0 2px 10px rgba(15, 23, 42, 0.05);
    }

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    body {
      font-family: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
      background:
        radial-gradient(1200px 420px at 80% -5%, #dceeff 0%, transparent 60%),
        radial-gradient(1200px 420px at -10% 0%, #e7f9f3 0%, transparent 55%),
        linear-gradient(180deg, #f6f9fd 0%, #f2f6fb 100%);
      color: var(--text);
      min-height: 100vh;
      padding: 24px 18px 44px;
    }

    .page { max-width: 1500px; margin: 0 auto; }
    .app-shell {
      display: grid;
      grid-template-columns: 250px minmax(0, 1fr);
      gap: 16px;
      align-items: start;
    }
    .sidebar {
      position: sticky;
      top: 16px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: #fff;
      box-shadow: var(--shadow-soft);
      padding: 14px;
    }
    .sidebar-title {
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.4px;
      color: var(--muted);
      margin-bottom: 10px;
    }
    .sidebar-group {
      margin-bottom: 10px;
      padding-bottom: 10px;
      border-bottom: 1px solid var(--line);
    }
    .sidebar-group:last-child {
      margin-bottom: 0;
      padding-bottom: 0;
      border-bottom: 0;
    }
    .sidebar-group-title {
      font-size: 10px;
      text-transform: uppercase;
      letter-spacing: 0.45px;
      color: #94a3b8;
      margin-bottom: 7px;
      font-weight: 700;
    }
    .nav-btn {
      width: 100%;
      text-align: left;
      border: 1px solid var(--line);
      background: #fff;
      color: #1e3a5f;
      border-radius: 9px;
      padding: 9px 10px;
      font-size: 13px;
      font-weight: 700;
      cursor: pointer;
      margin-bottom: 7px;
    }
    .nav-btn:last-child { margin-bottom: 0; }
    .nav-btn:hover {
      background: var(--bg-soft);
      border-color: #c8d5e7;
      color: #163a63;
    }
    .nav-btn.active {
      border-color: #9dc4e8;
      background: #e7f1fc;
      color: #0b3258;
      box-shadow: inset 0 0 0 1px rgba(157, 196, 232, 0.35);
    }
    .main-content {
      min-width: 0;
    }
    .view-section {
      display: none;
      animation: fadeIn 0.18s ease-out;
    }
    .view-section.active { display: block; }
    .view-header {
      margin-bottom: 10px;
      font-size: 12px;
      color: #334155;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.45px;
    }
    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(2px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .header {
      margin-bottom: 22px;
      padding: 18px 20px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: linear-gradient(135deg, #f9fcff 0%, #eef6ff 100%);
      box-shadow: var(--shadow-soft);
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 16px;
      flex-wrap: wrap;
    }
    .header h1 { font-size: 27px; line-height: 1.1; letter-spacing: 0.3px; color: #0b2540; }
    .header p  { font-size: 13px; color: var(--muted); margin-top: 4px; }
    .header-meta {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
    }
    .meta-chip {
      background: #fff;
      border: 1px solid var(--line);
      color: #0b2540;
      border-radius: 999px;
      padding: 6px 10px;
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.3px;
    }

    .card {
      background: var(--panel);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      padding: 22px;
      box-shadow: var(--shadow-soft);
      margin-bottom: 18px;
    }
    .card-title {
      font-size: 14px;
      font-weight: 700;
      color: #11375f;
      letter-spacing: 0.6px;
      text-transform: uppercase;
      margin-bottom: 16px;
      border-bottom: 1px solid var(--line);
      padding-bottom: 11px;
    }
    .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
    @media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
    .list-toolbar {
      display: grid;
      grid-template-columns: minmax(220px, 1fr) auto;
      gap: 12px;
      align-items: end;
    }
    .list-toolbar-actions {
      display: flex;
      align-items: flex-end;
      justify-content: flex-end;
      gap: 8px;
      flex-wrap: wrap;
    }
    .list-toolbar-actions .btn {
      flex: 0 0 auto;
    }
    .cards-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 12px;
    }
    .inline-checkbox-label {
      display: flex;
      align-items: center;
      gap: 8px;
      margin: 0;
      text-transform: none;
      letter-spacing: 0;
      font-size: 13px;
    }
    .inline-select-label {
      display: flex;
      align-items: center;
      gap: 8px;
      margin: 0;
      text-transform: none;
      letter-spacing: 0;
      font-size: 13px;
    }
    .inline-select-label span {
      font-size: 11px;
      font-weight: 700;
      color: #334155;
      text-transform: uppercase;
      letter-spacing: 0.4px;
    }
    .inline-select-label select {
      width: auto;
      min-width: 90px;
    }
    .tabs-row {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      border-bottom: 1px solid var(--line);
      padding-bottom: 10px;
    }
    .tab-btn {
      border: 1px solid var(--line-strong);
      background: #fff;
      color: #334155;
      border-radius: 999px;
      padding: 8px 14px;
      font-size: 12px;
      font-weight: 700;
      cursor: pointer;
    }
    .tab-btn.active {
      background: #0f4c81;
      color: #fff;
      border-color: #0f4c81;
    }
    .tab-panel[hidden] {
      display: none !important;
    }
    .lookup-domain-card {
      border: 1px solid var(--line);
      border-radius: var(--radius-sm);
      background: #fbfdff;
      padding: 16px;
      margin-bottom: 14px;
    }
    .lookup-domain-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      flex-wrap: wrap;
    }
    .lookup-domain-header .module-title {
      margin: 0;
    }
    .lookup-domain-create[hidden] {
      display: none !important;
    }
    .editor-card[hidden] {
      display: none !important;
    }
    @media (max-width: 960px) {
      .list-toolbar {
        grid-template-columns: 1fr;
      }
      .list-toolbar-actions {
        justify-content: flex-start;
      }
    }
    label {
      display: block; font-size: 11px; font-weight: 700; color: #334155;
      margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.4px;
    }
    input, select {
      width: 100%; padding: 11px 12px; border: 1px solid var(--line-strong); border-radius: 10px;
      font-size: 14px; color: #0f172a; background: #fff;
      transition: border-color 0.15s, box-shadow 0.15s;
    }
    select[multiple][data-warehouse-field] {
      min-height: 148px;
      padding-top: 8px;
      padding-bottom: 8px;
    }
    input:focus, select:focus {
      outline: none; border-color: #4098e6; box-shadow: 0 0 0 3px rgba(64,152,230,0.12);
    }
    input::placeholder { color: #9ca3af; }
    .password-field {
      position: relative;
      width: 100%;
    }
    .password-field input {
      padding-right: 48px;
    }
    .password-toggle {
      position: absolute;
      top: 50%;
      right: 10px;
      transform: translateY(-50%);
      width: 30px;
      height: 30px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0;
      border: 0;
      border-radius: 999px;
      background: transparent;
      color: #64748b;
      cursor: pointer;
      transition: background 0.15s, color 0.15s;
    }
    .password-toggle:hover {
      background: rgba(15, 76, 129, 0.08);
      color: #0f4c81;
    }
    .password-toggle:focus-visible {
      outline: none;
      background: rgba(64,152,230,0.12);
      box-shadow: 0 0 0 2px rgba(64,152,230,0.18);
      color: #0f4c81;
    }
    .password-toggle svg {
      width: 18px;
      height: 18px;
      stroke: currentColor;
      fill: none;
      stroke-width: 1.9;
      stroke-linecap: round;
      stroke-linejoin: round;
    }
    .hint { font-size: 11px; color: #9ca3af; margin-top: 4px; }
    .btn-row { display: flex; gap: 10px; margin-top: 20px; }
    .btn {
      padding: 10px 16px;
      border: 1px solid transparent;
      border-radius: 10px;
      font-size: 13px;
      font-weight: 700;
      letter-spacing: 0.2px;
      cursor: pointer;
      transition: background 0.15s, opacity 0.15s;
    }
    .btn:disabled { opacity: 0.5; cursor: not-allowed; }
    .btn-secondary { background: #fff; color: #334155; border-color: var(--line-strong); }
    .btn-secondary:hover:not(:disabled) { background: var(--bg); }
    .btn-green { background: #0f766e; color: #fff; }
    .btn-green:hover:not(:disabled) { background: #047857; }
    .btn-xs { padding: 6px 10px; font-size: 11px; border-radius: 8px; }
    .status {
      display: none; border-radius: 6px; padding: 12px 16px;
      font-size: 13px; font-weight: 500; margin-top: 16px;
      align-items: center; gap: 10px;
    }
    .status.show { display: flex; }
    .status.info    { background: #eff6ff; color: #1d4ed8; border-left: 3px solid #3b82f6; }
    .status.success { background: #f0fdf4; color: #15803d; border-left: 3px solid #22c55e; }
    .status.error   { background: #fef2f2; color: #dc2626; border-left: 3px solid #ef4444; }
    .spin {
      width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0;
      border: 2px solid #93c5fd; border-top-color: #1d4ed8;
      animation: spin 0.7s linear infinite;
    }
    @keyframes spin { to { transform: rotate(360deg); } }
    .steps { display: none; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
    .steps.show { display: flex; }
    .step {
      padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 600;
      background: #f1f5f9; color: #64748b;
    }
    .step.done   { background: #dcfce7; color: #15803d; }
    .step.active { background: #dbeafe; color: #1d4ed8; animation: pulse 1.5s infinite; }
    .step.error  { background: #fee2e2; color: #dc2626; }
    @keyframes pulse { 0%,100%{opacity:1}50%{opacity:0.6} }
    .results-header {
      display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px;
    }
    .results-header h3 { font-size: 15px; font-weight: 700; color: #1a3c5e; }
    .results-header .meta { font-size: 12px; color: #64748b; }
    .wh-card { border: 1px solid #e2e8f0; border-radius: 8px; margin-bottom: 16px; overflow: hidden; }
    .wh-card.wh-card-excluded { border-color: #fecaca; box-shadow: inset 0 0 0 1px #fee2e2; }
    .wh-card.wh-card-excluded .wh-card-head { background: #fff1f2; }
    .wh-card.wh-card-review { border-color: #fde68a; box-shadow: inset 0 0 0 1px #fef3c7; }
    .wh-card.wh-card-review .wh-card-head { background: #fefce8; }
    .wh-card-head {
      background: #f8fafc; padding: 14px 18px;
      display: flex; justify-content: space-between; align-items: flex-start;
      border-bottom: 1px solid #e2e8f0; cursor: pointer; user-select: none;
    }
    .wh-card-head:hover { background: #f1f5f9; }
    .wh-name { font-size: 15px; font-weight: 700; color: #1a3c5e; }
    .wh-url  { font-size: 12px; color: #3b82f6; margin-top: 2px; }
    .wh-badges { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
    .badge { padding: 3px 9px; border-radius: 12px; font-size: 11px; font-weight: 600; }
    .badge-blue   { background: #dbeafe; color: #1d4ed8; }
    .badge-green  { background: #dcfce7; color: #166534; }
    .badge-amber  { background: #fef3c7; color: #92400e; }
    .badge-red    { background: #fee2e2; color: #991b1b; }
    .badge-gray   { background: #f1f5f9; color: #475569; }
    .badge-purple { background: #ede9fe; color: #5b21b6; }
    .wh-body { padding: 18px; display: none; }
    .wh-body.open { display: block; }
    .job-stage-block {
      border: 1px solid #dbe5f2;
      border-radius: 10px;
      background: #fff;
      margin-bottom: 14px;
      padding: 10px;
    }
    .job-stage-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      padding: 4px 4px 10px;
      border-bottom: 1px solid #edf2f7;
      margin-bottom: 10px;
    }
    .job-stage-name {
      font-size: 13px;
      font-weight: 700;
      color: #0f172a;
      text-transform: uppercase;
      letter-spacing: 0.45px;
    }
    .job-stage-count {
      font-size: 11px;
      font-weight: 700;
      color: #334155;
      background: #e2e8f0;
      border-radius: 999px;
      padding: 3px 9px;
    }
    .job-stage-list { display: block; }
    .section-title {
      font-size: 11px; font-weight: 700; color: #94a3b8;
      text-transform: uppercase; letter-spacing: 0.6px;
      margin: 16px 0 10px; padding-bottom: 4px; border-bottom: 1px solid #f1f5f9;
    }
    .section-title:first-child { margin-top: 0; }
    .fields-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
    .field { background: #f8fafc; border-radius: 6px; padding: 10px 12px; }
    .field-label { font-size: 10px; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 3px; }
    .field-value { font-size: 13px; color: #1a202c; word-break: break-word; }
    .field-value.null { color: #cbd5e1; font-style: italic; }
    .field-value.zero { color: #d97706; }
    .field-full { grid-column: 1 / -1; }
    .field-full .field-value { font-size: 12px; line-height: 1.6; color: #374151; max-height: 120px; overflow-y: auto; }
    .description-rich { max-height: 260px; overflow-y: auto; }
    .description-rich p { margin: 0 0 8px; }
    .description-rich h3 { font-size: 12px; font-weight: 700; color: #1e3a5f; margin: 12px 0 5px; text-transform: none; letter-spacing: 0; }
    .description-rich h3 strong { font-weight: 700; }
    .description-rich ul { margin: 4px 0 10px 16px; padding: 0; list-style: disc; }
    .description-rich li { margin: 3px 0; padding-left: 2px; line-height: 1.5; }
    .description-rich li p { margin: 0; }
    .description-rich strong { font-weight: 600; color: #0f172a; }
    .missing-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
    .toggle-chevron { font-size: 14px; color: #64748b; transition: transform 0.2s; flex-shrink: 0; margin-top: 2px; }
    .wh-card.open .toggle-chevron { transform: rotate(180deg); }
    .trace-panel {
      display: none;
      margin-top: 14px;
      border: 1px solid var(--line);
      border-radius: var(--radius-sm);
      background: linear-gradient(180deg, #fbfdff 0%, #f6faff 100%);
      padding: 12px;
    }
    .trace-panel.show { display: block; }
    .trace-head { font-size: 12px; font-weight: 700; color: #334155; margin-bottom: 8px; }
    .trace-summary { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
    .trace-chip { background: #e2e8f0; color: #0f172a; border-radius: 999px; padding: 4px 10px; font-size: 11px; font-weight: 600; }
    .trace-steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
    .trace-step { background: white; border-radius: 6px; border: 1px solid #e2e8f0; padding: 8px; }
    .trace-step .name { font-size: 11px; font-weight: 700; color: #0f172a; text-transform: uppercase; }
    .trace-step .meta { font-size: 11px; color: #475569; margin-top: 4px; }
    .trace-block { margin-top: 10px; border: 1px solid #e2e8f0; border-radius: 6px; background: #fff; padding: 10px; }
    .trace-block-title { font-size: 11px; font-weight: 700; color: #334155; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
    .trace-stage-card { border: 1px solid #e2e8f0; border-radius: 6px; padding: 8px; margin-bottom: 8px; background: #f8fafc; }
    .trace-stage-title { font-size: 11px; font-weight: 700; color: #0f172a; margin-bottom: 5px; text-transform: uppercase; }
    .trace-kv { font-size: 11px; color: #475569; line-height: 1.5; }
    .trace-loc-card { border: 1px solid #e2e8f0; border-radius: 6px; padding: 8px; margin-bottom: 8px; background: #fff; }
    .trace-loc-head { font-size: 12px; font-weight: 700; color: #0f172a; margin-bottom: 4px; }
    .trace-loc-meta { font-size: 11px; color: #475569; margin-bottom: 6px; }
    .trace-stage-mini { font-size: 11px; color: #334155; background: #f1f5f9; border-radius: 6px; padding: 5px 7px; margin-bottom: 5px; }
    .trace-prompt-card { border: 1px solid #e2e8f0; border-radius: 6px; padding: 8px; margin-bottom: 8px; background: #f8fafc; }
    .trace-prompt-name { font-size: 11px; font-weight: 700; color: #0f172a; text-transform: uppercase; margin-bottom: 4px; }
    .trace-code { font-size: 11px; line-height: 1.5; color: #334155; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 6px; padding: 8px; white-space: pre-wrap; word-break: break-word; }
    .json-pre { margin: 0; white-space: pre-wrap; word-break: break-word; font-size: 11px; line-height: 1.45; color: #334155; }
    .scroll-text {
      max-height: 420px;
      overflow: auto;
      white-space: pre-wrap;
      word-break: break-word;
      line-height: 1.5;
      transition: max-height 0.3s ease;
    }
    .scroll-text.expanded {
      max-height: none;
      overflow: visible;
    }
    .expand-toggle-btn {
      display: inline-block;
      margin-top: 6px;
      padding: 3px 10px;
      font-size: 11px;
      font-weight: 600;
      color: #2563eb;
      background: #eff6ff;
      border: 1px solid #bfdbfe;
      border-radius: 4px;
      cursor: pointer;
      user-select: none;
    }
    .expand-toggle-btn:hover { background: #dbeafe; }
    .miner-debug-toolbar {
      grid-column: 1 / -1;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      border: 1px solid #dbe5f2;
      border-radius: 10px;
      background: linear-gradient(180deg, #fbfdff 0%, #f6faff 100%);
      padding: 12px 14px;
      margin-top: 4px;
    }
    .miner-debug-toggle-wrap {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-size: 13px;
      font-weight: 600;
      color: #0f172a;
      cursor: pointer;
      user-select: none;
    }
    .miner-debug-toggle-wrap input {
      width: auto;
      margin: 0;
    }
    .miner-debug-meta {
      font-size: 12px;
      color: #64748b;
      line-height: 1.5;
    }
    .miner-debug-panel {
      grid-column: 1 / -1;
      display: none;
      border: 1px solid #dbe5f2;
      border-radius: 10px;
      background: #fff;
      padding: 14px;
      margin-top: 8px;
    }
    .miner-debug-panel.show { display: block; }
    .miner-debug-title {
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 0.45px;
      text-transform: uppercase;
      color: #1e3a5f;
      margin-bottom: 4px;
    }
    .miner-debug-subtitle {
      font-size: 12px;
      color: #64748b;
      line-height: 1.5;
      margin-bottom: 12px;
    }
    .miner-debug-section {
      border: 1px solid #e2e8f0;
      border-radius: 10px;
      background: #f8fafc;
      margin-bottom: 12px;
      overflow: hidden;
    }
    .miner-debug-section:last-child { margin-bottom: 0; }
    .miner-debug-section > summary {
      list-style: none;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 12px 14px;
    }
    .miner-debug-section > summary::-webkit-details-marker { display: none; }
    .miner-debug-section-title {
      font-size: 13px;
      font-weight: 700;
      color: #0f172a;
    }
    .miner-debug-section-meta {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
    }
    .miner-debug-section-body {
      border-top: 1px solid #e2e8f0;
      background: #fff;
      padding: 14px;
    }
    .miner-debug-chevron {
      font-size: 14px;
      color: #64748b;
      transition: transform 0.2s ease;
    }
    .miner-debug-section[open] .miner-debug-chevron {
      transform: rotate(180deg);
    }
    .cfg-meta { font-size: 11px; color: #64748b; margin-top: 6px; line-height: 1.5; }
    .cfg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
    .cfg-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
    .module-card {
      border-radius: var(--radius-sm);
      background: #fff;
    }
    .job-failure-summary {
      margin-bottom: 16px;
      padding: 16px 18px;
      border: 1px solid #fecaca;
      border-left: 6px solid #dc2626;
      border-radius: 14px;
      background:
        linear-gradient(135deg, rgba(220, 38, 38, 0.08) 0%, rgba(255, 255, 255, 0.96) 45%),
        #fff7f7;
      box-shadow: 0 10px 24px rgba(185, 28, 28, 0.08);
    }
    .job-failure-summary-head {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 12px;
      margin-bottom: 8px;
      flex-wrap: wrap;
    }
    .job-failure-summary-kicker {
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.6px;
      text-transform: uppercase;
      color: #991b1b;
    }
    .job-failure-summary-code {
      font-family: "IBM Plex Mono", monospace;
      font-size: 13px;
      font-weight: 700;
      color: #7f1d1d;
      background: #fee2e2;
      border: 1px solid #fca5a5;
      border-radius: 999px;
      padding: 5px 10px;
      white-space: nowrap;
    }
    .job-failure-summary-message {
      font-size: 18px;
      font-weight: 700;
      line-height: 1.35;
      color: #7f1d1d;
      margin-bottom: 8px;
    }
    .job-failure-summary-meta {
      font-size: 12px;
      line-height: 1.5;
      color: #991b1b;
      margin-bottom: 10px;
    }
    .job-failure-summary-technical {
      font-family: "IBM Plex Mono", monospace;
      font-size: 12px;
      line-height: 1.55;
      color: #7f1d1d;
      background: rgba(255,255,255,0.78);
      border: 1px dashed #fca5a5;
      border-radius: 10px;
      padding: 10px 12px;
      white-space: pre-wrap;
      word-break: break-word;
    }
    .job-failure-summary-technical:empty {
      display: none;
    }
    .module-title {
      font-size: 12px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.4px;
      color: #1e3a5f;
      margin-bottom: 8px;
    }
    .mono {
      font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
      font-size: 12px;
    }
    .jobs-grid {
      display: grid;
      grid-template-columns: 1.1fr 0.9fr;
      gap: 14px;
    }
    .stack {
      display: grid;
      gap: 14px;
      align-content: start;
    }
    .table-wrap {
      border: 1px solid var(--line);
      border-radius: 10px;
      overflow: auto;
      //max-height: 420px;
      background: #fff;
    }
    .table-wrapper {
      border: 1px solid var(--line);
      border-radius: 10px;
      overflow: auto;
      //max-height: 420px;
      background: #fff;
    }
    table { width: 100%; border-collapse: collapse; }
    .table-fixed { table-layout: fixed; }
    th, td {
      padding: 9px 10px;
      font-size: 12px;
      border-bottom: 1px solid var(--line);
      vertical-align: top;
      text-align: left;
    }
    .table-cell-wrap {
      white-space: normal;
      overflow-wrap: anywhere;
      word-break: break-word;
    }
    .table-cell-wrap a {
      overflow-wrap: anywhere;
      word-break: break-word;
    }
    .table-link {
      color: var(--brand);
      text-decoration: underline;
      text-underline-offset: 2px;
    }
    .table-link:hover {
      color: #0b3b64;
    }
    th {
      position: sticky;
      top: 0;
      z-index: 1;
      background: #f7fbff;
      color: #1f3b63;
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.35px;
    }
    .row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
    .row-actions .btn { white-space: nowrap; }
    .row-actions-nowrap {
      display: inline-flex;
      flex-wrap: nowrap;
      align-items: center;
      white-space: nowrap;
    }
    .row-actions-nowrap .btn {
      flex: 0 0 auto;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }
    .row-actions-stack {
      flex-direction: column;
      align-items: stretch;
    }
    .row-actions-stack .btn {
      width: 100%;
      flex: 0 0 auto;
      justify-content: center;
    }
    .warehouse-editor-hidden {
      display: none !important;
    }
    .job-status-cell {
      min-width: 180px;
    }
    .job-status-message {
      margin-top: 6px;
      font-size: 11px;
      line-height: 1.4;
      color: #7f1d1d;
      word-break: break-word;
    }
    .job-status-message code {
      font-family: "IBM Plex Mono", monospace;
      font-size: 10px;
      color: #991b1b;
      background: #fee2e2;
      border: 1px solid #fecaca;
      border-radius: 6px;
      padding: 1px 5px;
      margin-right: 4px;
    }
    .lineage-caption {
      margin-top: 6px;
      font-size: 11px;
      color: #5b6b82;
      line-height: 1.4;
    }
    .lineage-list {
      display: flex;
      flex-direction: column;
      gap: 6px;
      margin-top: 8px;
    }
    .lineage-item {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 6px;
      font-size: 11px;
      line-height: 1.4;
    }
    .lineage-item-inactive {
      opacity: 0.56;
    }
    .lineage-item-inactive .lineage-type,
    .lineage-item-inactive .table-link,
    .lineage-item-inactive .mono {
      color: #5f728d;
    }
    .lineage-item-inactive .badge {
      opacity: 0.74;
    }
    .lineage-type {
      color: #1f3b63;
      font-weight: 600;
    }
    .lineage-latest {
      display: inline-flex;
      align-items: center;
      padding: 1px 6px;
      border-radius: 999px;
      background: #e7f1fc;
      color: #0b4d78;
      font-size: 10px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.3px;
    }
    .placeholder {
      font-size: 11px;
      color: var(--muted);
      line-height: 1.4;
    }
    .btn-small { padding: 6px 10px; font-size: 11px; border-radius: 8px; }
    .small-meta { font-size: 11px; color: var(--muted); margin-top: 8px; line-height: 1.4; }
    .prompt-doc-box {
      margin-top: 4px;
      border: 1px solid var(--line);
      border-radius: 10px;
      background: #f8fbff;
      padding: 10px 12px;
      font-size: 12px;
      color: #334155;
      line-height: 1.5;
      white-space: pre-wrap;
    }
    .section-divider {
      margin: 18px 0 10px;
      height: 1px;
      background: linear-gradient(90deg, transparent, var(--line), transparent);
    }
    .quick-bar {
      display: grid;
      grid-template-columns: repeat(5, minmax(0, 1fr));
      gap: 10px;
      margin-bottom: 14px;
    }
    .quick-item {
      border: 1px solid var(--line);
      border-radius: 10px;
      background: #fff;
      padding: 10px;
      min-height: 74px;
    }
    .quick-item .k {
      font-size: 10px;
      text-transform: uppercase;
      letter-spacing: 0.4px;
      color: var(--muted);
      margin-bottom: 4px;
    }
    .quick-item .v {
      font-size: 18px;
      font-weight: 700;
      color: #0b2540;
    }

    @media (max-width: 900px) {
      .cfg-grid { grid-template-columns: 1fr; }
      .app-shell { grid-template-columns: 1fr; }
      .sidebar { position: static; }
    }
    @media (max-width: 1080px) {
      .cfg-grid-3 { grid-template-columns: 1fr; }
      .jobs-grid { grid-template-columns: 1fr; }
      .quick-bar { grid-template-columns: 1fr 1fr; }
    }
    textarea {
      width: 100%;
      min-height: 120px;
      padding: 10px 12px;
      border: 1px solid var(--line-strong);
      border-radius: 10px;
      font-size: 12px;
      font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
      resize: vertical;
      background: #fff;
    }
