    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --bg: #f1f3f5;
      --surface: #ffffff;
      --border: #e2e6ea;
      --text: #111827;
      --muted: #6b7280;
      --subtle: #9ca3af;
      --accent: #10b981;
      --accent-dim: rgba(16,185,129,0.1);
      --accent-dark: #059669;
      --warn: #f59e0b;
      --warn-dim: rgba(245,158,11,0.1);
      --danger: #ef4444;
      --danger-dim: rgba(239,68,68,0.1);
    }

    body {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
      background:
        radial-gradient(circle at top left, rgba(16,185,129,0.08), transparent 24%),
        linear-gradient(180deg, #f7fafc 0%, #f1f3f5 220px, #f1f3f5 100%);
      color: var(--text);
      min-height: 100vh;
      font-size: 14px;
      line-height: 1.5;
    }

    /* ── Header ── */
    .hdr {
      position: sticky;
      top: 0;
      z-index: 100;
      padding: 18px 20px 14px;
      background: rgba(247,250,252,0.88);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid rgba(148,163,184,0.18);
    }
    .hdr-inner {
      max-width: 1180px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
    }
    .hdr-brand {
      display: flex;
      align-items: center;
      gap: 16px;
      min-width: 0;
    }
    .hdr-logo {
      width: 52px; height: 52px;
      background: linear-gradient(135deg, #0ea5e9 0%, #10b981 100%);
      border-radius: 16px;
      display: flex; align-items: center; justify-content: center;
      color: #fff; font-weight: 800; font-size: 22px; letter-spacing: -0.04em;
      box-shadow: 0 14px 30px rgba(14,165,233,0.18);
    }
    .hdr-copy { min-width: 0; }
    .hdr-eyebrow {
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: #0f766e;
      margin-bottom: 5px;
    }
    .hdr-title-row {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
      margin-bottom: 3px;
    }
    .hdr-name { color: #0f172a; font-weight: 800; font-size: 28px; letter-spacing: -0.03em; }
    .hdr-sub { color: #64748b; font-size: 15px; line-height: 1.6; }
    .hdr-pill {
      padding: 4px 10px;
      background: rgba(14,165,233,0.1);
      color: #0369a1;
      border: 1px solid rgba(14,165,233,0.12);
      border-radius: 999px;
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }
    .hdr-actions {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 10px;
      flex-wrap: wrap;
    }
    .hdr-link {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 40px;
      padding: 0 16px;
      border-radius: 999px;
      border: 1px solid rgba(148,163,184,0.22);
      background: rgba(255,255,255,0.76);
      color: #475569;
      font-size: 13px;
      font-weight: 700;
      text-decoration: none;
      transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s, color 0.15s;
    }
    .hdr-link:hover {
      transform: translateY(-1px);
      border-color: rgba(14,165,233,0.32);
      color: #0f172a;
      box-shadow: 0 10px 22px rgba(15,23,42,0.08);
    }
    .hdr-link-primary {
      background: linear-gradient(135deg, #0f172a 0%, #0f766e 100%);
      color: #f8fafc;
      border-color: rgba(15,118,110,0.28);
    }
    .hdr-link-primary:hover {
      color: #ffffff;
      border-color: rgba(16,185,129,0.45);
      box-shadow: 0 14px 26px rgba(15,23,42,0.18);
    }
    .hdr-meta {
      max-width: 1180px;
      margin: 14px auto 0;
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 12px;
    }
    .hdr-meta-card {
      border: 1px solid rgba(148,163,184,0.18);
      border-radius: 16px;
      background: rgba(255,255,255,0.72);
      padding: 12px 14px;
      box-shadow: 0 10px 24px rgba(15,23,42,0.04);
      min-width: 0;
    }
    .hdr-meta-label {
      display: block;
      margin-bottom: 6px;
      font-size: 10.5px;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: #64748b;
    }
    .hdr-meta-code {
      display: block;
      font-family: 'SFMono-Regular', Consolas, monospace;
      font-size: 12.5px;
      font-weight: 700;
      color: #0f172a;
      word-break: break-word;
      background: #f8fafc;
      border: 1px solid rgba(226,232,240,0.92);
      border-radius: 10px;
      padding: 8px 10px;
    }

    /* ── Layout ── */
    .wrap { max-width: 1180px; margin: 0 auto; padding: 24px 20px 56px; }

    .page-title { margin-bottom: 22px; }
    .page-title h1 { font-size: 21px; font-weight: 800; margin-bottom: 4px; letter-spacing: -0.02em; }
    .page-title p { color: var(--muted); font-size: 13.5px; }

    .access-panel {
      margin-bottom: 16px;
      padding: 18px 20px;
      border: 1px solid rgba(15,23,42,0.08);
      border-radius: 18px;
      background:
        linear-gradient(135deg, rgba(15,23,42,0.96) 0%, rgba(15,118,110,0.94) 100%),
        linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0));
      color: #f8fafc;
      box-shadow: 0 18px 42px rgba(15,23,42,0.14);
    }
    .access-copy {
      display: flex;
      flex-direction: column;
      gap: 6px;
      margin-bottom: 14px;
    }
    .access-eyebrow {
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: rgba(226,232,240,0.82);
    }
    .access-title-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap;
    }
    .access-title-row h2 {
      font-size: 20px;
      font-weight: 800;
      letter-spacing: -0.03em;
      color: #ffffff;
    }
    .access-panel .badge {
      background: rgba(255,255,255,0.12);
      color: #ffffff;
      border-color: rgba(255,255,255,0.16);
    }
    .access-panel .badge.b-success {
      background: rgba(16,185,129,0.18);
      color: #d1fae5;
      border-color: rgba(52,211,153,0.28);
    }
    .access-panel .badge.b-danger {
      background: rgba(239,68,68,0.18);
      color: #fee2e2;
      border-color: rgba(252,165,165,0.3);
    }
    .access-panel .badge.b-warn,
    .access-panel .badge.b-default {
      color: #f8fafc;
    }
    .access-panel p,
    .access-hint {
      color: rgba(226,232,240,0.88);
    }
    .access-controls {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 12px;
      align-items: end;
    }
    .access-field {
      margin-bottom: 0;
    }
    .access-field > label {
      color: rgba(226,232,240,0.78);
    }
    .access-field input[type="password"] {
      width: 100%;
      height: 44px;
      padding: 0 14px;
      border-radius: 12px;
      border: 1px solid rgba(255,255,255,0.16);
      background: rgba(248,250,252,0.96);
      color: #0f172a;
      font-size: 14px;
      font-weight: 600;
      letter-spacing: 0.02em;
    }
    .access-field input[type="password"]:focus {
      outline: none;
      border-color: rgba(52,211,153,0.72);
      box-shadow: 0 0 0 3px rgba(16,185,129,0.18);
    }
    .access-controls .btn {
      min-width: 136px;
      height: 44px;
    }
    .access-hint {
      margin-top: 12px;
      font-size: 13px;
    }
    .access-panel.locked {
      border-color: rgba(248,113,113,0.24);
      box-shadow: 0 18px 42px rgba(127,29,29,0.16);
    }
    .access-panel.ready {
      border-color: rgba(52,211,153,0.26);
    }

    .grid-top {
      display: grid;
      grid-template-columns: 1.15fr 0.85fr;
      gap: 14px;
      margin-bottom: 14px;
    }

    /* ── Card ── */
    .card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 14px;
      box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    }
    .card-hdr {
      padding: 16px 20px 13px;
      border-bottom: 1px solid var(--border);
      display: flex; align-items: center; justify-content: space-between;
    }
    .card-ttl {
      font-size: 13.5px; font-weight: 600;
      display: flex; align-items: center; gap: 8px;
    }
    .card-ico {
      width: 22px; height: 22px;
      background: var(--accent-dim);
      border-radius: 6px;
      display: flex; align-items: center; justify-content: center;
      font-size: 11px;
    }
    .card-body { padding: 20px; }

    /* ── Form ── */
    .field { margin-bottom: 14px; }
    .field:last-child { margin-bottom: 0; }
    .field > label {
      display: block;
      font-size: 11.5px; font-weight: 600;
      color: var(--muted);
      text-transform: uppercase; letter-spacing: 0.05em;
      margin-bottom: 6px;
    }
    .inp-wrap { position: relative; }
    .inp-icon {
      position: absolute; left: 11px; top: 50%;
      transform: translateY(-50%);
      font-size: 13px; color: var(--subtle);
      pointer-events: none;
    }
    input[type="text"], input[type="number"], select {
      width: 100%; height: 40px;
      padding: 0 12px;
      border: 1px solid var(--border); border-radius: 9px;
      font-size: 13.5px; color: var(--text);
      background: var(--surface);
      transition: border-color 0.15s, box-shadow 0.15s;
      -webkit-appearance: none; appearance: none;
    }
    input[type="text"].has-icon { padding-left: 30px; }
    input[type="text"]:focus, input[type="number"]:focus, select:focus {
      outline: none;
      border-color: var(--accent);
      box-shadow: 0 0 0 3px rgba(16,185,129,0.13);
    }
    input:disabled, select:disabled {
      background: #f9fafb; color: var(--subtle); cursor: not-allowed;
    }
    select {
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 12px center;
      padding-right: 32px;
    }
    .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

    .toggle-wrap {
      display: flex; align-items: center; gap: 9px;
      height: 40px; padding: 0 14px;
      border: 1px solid var(--border); border-radius: 9px;
      cursor: pointer; user-select: none;
      transition: border-color 0.15s, background 0.15s;
    }
    .toggle-wrap:hover { background: #f9fafb; border-color: #c8ced4; }
    .toggle-wrap input[type="checkbox"] {
      width: 14px; height: 14px; accent-color: var(--accent); cursor: pointer; flex-shrink: 0;
    }
    .toggle-lbl { font-size: 13.5px; color: var(--text); }
    .toggle-hint { margin-left: auto; font-size: 11.5px; color: var(--subtle); }

    /* ── Buttons ── */
    .btn {
      height: 40px; padding: 0 18px; border: none; border-radius: 9px;
      font-size: 13.5px; font-weight: 600; cursor: pointer;
      display: inline-flex; align-items: center; gap: 6px;
      transition: all 0.15s;
      white-space: nowrap;
    }
    .btn-primary { background: var(--accent); color: #fff; }
    .btn-primary:hover:not(:disabled) {
      background: var(--accent-dark);
      box-shadow: 0 4px 14px rgba(16,185,129,0.32);
    }
    .btn-primary:active:not(:disabled) { transform: scale(0.97); }
    .btn-ghost {
      background: var(--surface); color: var(--text);
      border: 1px solid var(--border);
    }
    .btn-ghost:hover:not(:disabled) { background: var(--bg); }
    .btn:disabled { opacity: 0.42; cursor: not-allowed; }
    .btn-row { display: flex; gap: 10px; padding-top: 6px; }

    /* ── Status meta grid ── */
    .meta-grid {
      display: grid; grid-template-columns: 1fr 1fr;
      gap: 1px; background: var(--border);
      border-radius: 10px; overflow: hidden; margin-bottom: 16px;
    }
    .meta-cell { background: var(--surface); padding: 11px 14px; }
    .meta-cell:first-child { border-radius: 10px 0 0 0; }
    .meta-cell:nth-child(2) { border-radius: 0 10px 0 0; }
    .meta-cell:nth-last-child(2) { border-radius: 0 0 0 10px; }
    .meta-cell:last-child { border-radius: 0 0 10px 0; }
    .meta-lbl { font-size: 10.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 3px; }
    .meta-val { font-size: 13px; font-weight: 600; color: var(--text); word-break: break-all; }
    .meta-sub-row {
      margin-top: 8px;
      padding-top: 8px;
      border-top: 1px dashed var(--border);
      display: flex; align-items: center; justify-content: space-between; gap: 10px;
    }
    .meta-sub-lbl {
      font-size: 10.5px; font-weight: 600;
      color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em;
    }
    .meta-sub-val { font-size: 12.5px; font-weight: 700; color: var(--text); }

    /* ── Progress ── */
    .prog-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 7px; }
    .prog-label { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
    .prog-pct { font-size: 12.5px; font-weight: 700; color: var(--text); }
    .prog-track { height: 5px; background: var(--border); border-radius: 999px; overflow: hidden; margin-bottom: 18px; }
    .prog-fill {
      height: 100%;
      background: linear-gradient(90deg, #10b981, #34d399);
      border-radius: 999px; width: 0%;
      transition: width 0.55s cubic-bezier(0.4,0,0.2,1);
    }

    /* ── Timeline ── */
    .tl-label { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 10px; }
    .timeline { display: flex; flex-direction: column; }
    .tl-item { display: flex; gap: 11px; position: relative; }
    .tl-item:not(:last-child)::before {
      content: ''; position: absolute;
      left: 14px; top: 28px; width: 1.5px;
      height: calc(100% - 14px); background: var(--border);
    }
    .tl-dot {
      width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; z-index: 1;
      display: flex; align-items: center; justify-content: center;
      font-size: 11px; font-weight: 700;
      border: 1.5px solid var(--border);
      background: var(--surface); color: var(--subtle);
      transition: all 0.3s;
    }
    .tl-dot.running  { border-color: var(--warn);   color: var(--warn);   background: var(--warn-dim);   animation: glow-warn 1.5s ease-in-out infinite; }
    .tl-dot.completed{ border-color: var(--accent);  color: var(--accent);  background: var(--accent-dim); }
    .tl-dot.failed   { border-color: var(--danger); color: var(--danger); background: var(--danger-dim); }
    .tl-dot.skipped  { border-color: #94a3b8; color: #94a3b8; background: rgba(148,163,184,0.12); }
    @keyframes glow-warn {
      0%,100% { box-shadow: 0 0 0 0 rgba(245,158,11,0.45); }
      50%      { box-shadow: 0 0 0 4px rgba(245,158,11,0); }
    }
    .tl-body { padding: 4px 0 15px; flex: 1; min-width: 0; }
    .tl-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2px; }
    .tl-name { font-size: 12.5px; font-weight: 600; }
    .tl-st   { font-size: 11px; font-weight: 500; }
    .s-pending   { color: var(--subtle); }
    .s-running   { color: var(--warn); }
    .s-completed { color: var(--accent); }
    .s-failed    { color: var(--danger); }
    .s-skipped   { color: #94a3b8; }
    .tl-preview { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }

    /* ── Tabs ── */
    .tabs-bar {
      display: flex; gap: 2px;
      background: var(--surface);
      border: 1px solid var(--border);
      border-bottom: none; border-radius: 13px 13px 0 0;
      padding: 7px 7px 0;
    }
    .tab-btn {
      padding: 8px 16px; border: none; background: none;
      border-radius: 8px 8px 0 0;
      font-size: 13px; font-weight: 500; color: var(--muted);
      cursor: pointer; transition: all 0.15s;
    }
    .tab-btn:hover { color: var(--text); background: rgba(0,0,0,0.03); }
    .tab-btn.active { color: var(--accent); background: var(--bg); font-weight: 600; }
    .tabs-body {
      background: var(--surface);
      border: 1px solid var(--border);
      border-top: none; border-radius: 0 0 13px 13px;
    }
    .tab-panel { display: none; padding: 22px; }
    .tab-panel.active { display: block; }

    /* ── Report tab ── */
    .placeholder { color: var(--muted); font-style: italic; }
    .report-empty {
      min-height: 96px;
      display: flex; align-items: center; justify-content: center;
      text-align: center; padding: 18px;
      border: 1px dashed var(--border); border-radius: 12px;
      background: linear-gradient(180deg, #fbfcfd 0%, #f5f7f8 100%);
      font-size: 13.5px; line-height: 1.8;
    }
    .report-shell { display: flex; flex-direction: column; gap: 16px; }
    .report-hero {
      position: relative; overflow: hidden;
      border: 1px solid #0f172a;
      border-radius: 16px;
      background:
        radial-gradient(circle at top right, rgba(52,211,153,0.22), transparent 34%),
        radial-gradient(circle at bottom left, rgba(16,185,129,0.18), transparent 30%),
        linear-gradient(135deg, #0f172a 0%, #111827 55%, #172554 100%);
      color: #f8fafc;
      padding: 22px;
      display: grid; grid-template-columns: 220px 1fr; gap: 20px;
    }
    .report-score-box {
      border: 1px solid rgba(255,255,255,0.1);
      border-radius: 16px;
      background: rgba(255,255,255,0.05);
      backdrop-filter: blur(6px);
      padding: 18px;
      display: flex; flex-direction: column; justify-content: space-between;
      min-height: 460px;
    }
    .report-score-label {
      font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
      text-transform: uppercase; color: rgba(226,232,240,0.72);
    }
    .report-score-value { font-size: 58px; font-weight: 800; line-height: 1; margin: 10px 0 6px; }
    .report-score-sub { font-size: 13px; color: rgba(226,232,240,0.78); }
    .report-score-radar {
      margin: 10px 0 12px;
      border: 1px solid rgba(148,163,184,0.24);
      border-radius: 14px;
      background: linear-gradient(180deg, rgba(15,23,42,0.42) 0%, rgba(15,23,42,0.25) 100%);
      padding: 10px 10px 8px;
    }
    .report-score-radar-title {
      font-size: 10.5px;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: rgba(226,232,240,0.66);
      margin-bottom: 4px;
      text-align: center;
    }
    .report-radar-svg {
      width: 100%;
      height: auto;
      display: block;
    }
    .report-radar-grid {
      fill: none;
      stroke: rgba(148,163,184,0.26);
      stroke-width: 1;
    }
    .report-radar-axis {
      stroke: rgba(148,163,184,0.22);
      stroke-width: 1;
    }
    .report-radar-value {
      fill: rgba(52,211,153,0.22);
      stroke: #6ee7b7;
      stroke-width: 2;
    }
    .report-radar-dot {
      fill: #6ee7b7;
      stroke: rgba(15,23,42,0.75);
      stroke-width: 1;
    }
    .report-radar-label {
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.02em;
      fill: rgba(226,232,240,0.92);
    }
    .report-hero-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
    .report-kicker {
      display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap;
      font-size: 12px; color: rgba(226,232,240,0.86);
    }
    .report-kicker .dot {
      width: 4px; height: 4px; border-radius: 50%;
      background: rgba(226,232,240,0.45);
    }
    .report-hero h3 { font-size: 22px; line-height: 1.3; font-weight: 700; }
    .report-summary {
      font-size: 13.5px; line-height: 1.8; color: rgba(226,232,240,0.88);
      max-width: 1000px;
    }
    .report-badges {
      display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    }
    .r-badge {
      display: inline-flex; align-items: center; gap: 6px;
      padding: 5px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
      border: 1px solid rgba(255,255,255,0.1);
      background: rgba(255,255,255,0.06); color: #f8fafc;
    }
    .r-badge.success { background: rgba(16,185,129,0.14); color: #6ee7b7; }
    .r-badge.warn { background: rgba(245,158,11,0.14); color: #fbbf24; }
    .r-badge.danger { background: rgba(239,68,68,0.14); color: #fca5a5; }
    .report-meta-grid {
      display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px;
    }
    .report-meta-item {
      border: 1px solid rgba(255,255,255,0.08);
      border-radius: 12px;
      background: rgba(255,255,255,0.05);
      padding: 12px 13px;
    }
    .report-meta-item .lbl {
      font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em;
      color: rgba(226,232,240,0.62); font-weight: 700; margin-bottom: 6px;
    }
    .report-meta-item .val {
      font-size: 13px; line-height: 1.45; color: #f8fafc; font-weight: 600;
      word-break: break-word;
    }
    .report-section {
      border: 1px solid var(--border); border-radius: 14px;
      background: var(--surface);
      box-shadow: 0 1px 4px rgba(0,0,0,0.04);
      overflow: hidden;
    }
    .report-section-hdr {
      display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
      padding: 14px 18px; border-bottom: 1px solid var(--border);
      background: linear-gradient(180deg, #fbfcfd 0%, #f8fafc 100%);
    }
    .report-section-hdr h4 { font-size: 14px; font-weight: 700; }
    .report-section-hdr span { font-size: 12px; color: var(--muted); }
    .report-section-body { padding: 18px; }
    .report-dim-grid {
      display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
    }
    .report-dim-card {
      border: 1px solid var(--border); border-radius: 13px;
      background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
      padding: 14px;
    }
    .report-dim-head {
      display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px;
    }
    .report-dim-name { font-size: 13px; font-weight: 700; }
    .report-dim-pill {
      font-size: 11px; font-weight: 700; color: var(--accent);
      background: var(--accent-dim); border-radius: 999px; padding: 3px 8px;
      white-space: nowrap;
    }
    .report-dim-scoreline {
      display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
      margin-bottom: 8px;
    }
    .report-dim-scoreline .score { font-size: 30px; font-weight: 800; line-height: 1; }
    .report-dim-scoreline .status { font-size: 11.5px; color: var(--muted); font-weight: 700; text-transform: uppercase; }
    .report-dim-kpis {
      display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px;
    }
    .report-dim-kpi {
      border: 1px solid var(--border); border-radius: 10px;
      background: #fff; padding: 9px 10px;
    }
    .report-dim-kpi .lbl { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 700; margin-bottom: 4px; }
    .report-dim-kpi .val { font-size: 13px; font-weight: 700; }
    .report-dim-note { font-size: 12px; color: var(--muted); line-height: 1.65; }
    .report-grid-2 {
      display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
    }
    .report-list {
      display: flex; flex-direction: column; gap: 9px;
    }
    .report-list-item {
      border: 1px solid var(--border); border-radius: 11px;
      padding: 11px 12px; background: #fff;
      font-size: 12.5px; line-height: 1.65;
      color:black;
    }
    .report-list-item strong { color: var(--text); }
    .report-action-list {
      display: flex; flex-direction: column; gap: 10px;
    }
    .report-action {
      display: grid; grid-template-columns: 110px minmax(0, 1fr) 220px; gap: 14px;
      align-items: start;
      border: 1px solid var(--border); border-radius: 12px;
      background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
      padding: 14px;
    }
    .report-action-priority {
      border-radius: 10px; padding: 8px 10px; text-align: center;
      font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em;
      background: var(--bg); color: var(--muted);
      align-self: start;
    }
    .report-action-priority.high, .report-action-priority.critical { background: rgba(239,68,68,0.1); color: #dc2626; }
    .report-action-priority.medium { background: rgba(245,158,11,0.12); color: #d97706; }
    .report-action-priority.low { background: rgba(16,185,129,0.1); color: #059669; }
    .report-action-main { min-width: 0; }
    .report-action-main h5 { font-size: 14px; font-weight: 700; margin-bottom: 6px; line-height: 1.45; }
    .report-action-main p { font-size: 12px; color: var(--muted); line-height: 1.7; }
    .report-action-impact {
      border: 1px solid rgba(16,185,129,0.16);
      border-radius: 12px;
      background: linear-gradient(180deg, rgba(16,185,129,0.06) 0%, rgba(16,185,129,0.02) 100%);
      padding: 11px 12px;
      min-width: 0;
    }
    .report-action-impact-label {
      font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.07em;
      color: var(--muted); margin-bottom: 7px;
    }
    .report-action-impact span {
      display: block;
      font-size: 12px;
      line-height: 1.65;
      color: #047857;
      font-weight: 700;
      word-break: break-word;
    }
    .page-diagnostic-card {
      border: 1px solid var(--border);
      border-radius: 13px;
      background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
      padding: 14px;
    }
    .page-diagnostic-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 10px;
    }
    .page-diagnostic-title {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 8px;
      min-width: 0;
      margin-bottom: 8px;
    }
    .page-diagnostic-title strong {
      font-size: 14px;
    }
    .page-diagnostic-badge {
      display: inline-flex;
      align-items: center;
      padding: 4px 8px;
      border-radius: 999px;
      font-size: 10.5px;
      font-weight: 700;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      background: #eef2f7;
      color: #475569;
    }
    .page-diagnostic-badge.score {
      background: var(--accent-dim);
      color: #047857;
    }
    .page-diagnostic-url {
      display: block;
      padding: 9px 11px;
      border-radius: 10px;
      background: #f8fafc;
      border: 1px solid #dbe4ee;
      color: #0f172a;
      font-family: 'SFMono-Regular', Consolas, monospace;
      font-size: 12px;
      line-height: 1.65;
      word-break: break-all;
    }
    .page-diagnostic-url-label {
      display: inline-block;
      margin-bottom: 6px;
      font-size: 10.5px;
      font-weight: 800;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: var(--muted);
    }
    .page-diagnostic-metrics {
      display: grid;
      grid-template-columns: repeat(5, minmax(0, 1fr));
      gap: 8px;
      min-width: 360px;
    }
    .page-diagnostic-metric {
      border: 1px solid var(--border);
      border-radius: 10px;
      background: #fff;
      padding: 10px 8px;
      text-align: center;
    }
    .page-diagnostic-metric .label {
      display: block;
      margin-bottom: 4px;
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      color: var(--muted);
    }
    .page-diagnostic-metric .value {
      font-size: 15px;
      font-weight: 800;
      color: var(--text);
    }
    .page-diagnostic-panels {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
      margin-top: 12px;
    }
    .page-diagnostic-panel {
      border: 1px solid var(--border);
      border-radius: 11px;
      background: #fff;
      padding: 12px;
    }
    .page-diagnostic-panel h6 {
      margin-bottom: 10px;
      font-size: 12px;
      font-weight: 800;
      color: var(--text);
    }
    .detail-group {
      padding: 9px 10px;
      border-radius: 10px;
      background: #f8fafc;
      border: 1px solid #e2e8f0;
      margin-bottom: 8px;
    }
    .detail-group:last-child {
      margin-bottom: 0;
    }
    .detail-group-title {
      display: inline-flex;
      margin-bottom: 6px;
      padding: 2px 7px;
      border-radius: 999px;
      background: #e2e8f0;
      color: #334155;
      font-size: 10.5px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }
    .detail-group-item {
      font-size: 12px;
      color: var(--text);
      line-height: 1.65;
      margin-top: 4px;
    }
    .report-platform-grid {
      display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px;
    }
    .platform-card {
      border: 1px solid var(--border); border-radius: 13px;
      padding: 12px; background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
    }
    .platform-card .hd {
      display: flex; align-items: center; justify-content: space-between; gap: 8px;
      margin-bottom: 8px;
    }
    .platform-card .name { font-size: 12px; font-weight: 700; line-height: 1.4; }
    .platform-card .score { font-size: 20px; font-weight: 800; }
    .platform-card .gap { font-size: 11.5px; color: var(--muted); line-height: 1.55; min-height: 52px; }
    .platform-card .reco { margin-top: 8px; font-size: 11.5px; color: var(--text); line-height: 1.55; }
    .report-evidence-grid {
      display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
    }
    .evidence-card {
      border: 1px solid var(--border); border-radius: 13px;
      background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
      padding: 14px;
    }
    .evidence-card h5 { font-size: 13px; font-weight: 700; margin-bottom: 10px; }
    .kv-list { display: flex; flex-direction: column; gap: 8px; }
    .kv-row {
      display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
      border-bottom: 1px dashed var(--border); padding-bottom: 8px;
      font-size: 12px;
    }
    .kv-row:last-child { border-bottom: none; padding-bottom: 0; }
    .kv-key { color: var(--muted); flex: 1; min-width: 0; }
    .kv-val { color: var(--text); font-weight: 600; text-align: right; flex: 1; min-width: 0; word-break: break-word; }
    .page-samples { display: flex; flex-direction: column; gap: 9px; }
    .page-sample {
      border: 1px solid var(--border); border-radius: 10px;
      padding: 10px 11px; background: #fff;
    }
    .page-sample .top {
      display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 4px;
    }
    .page-sample .name { font-size: 12px; font-weight: 700; }
    .page-sample .meta { font-size: 11px; color: var(--muted); line-height: 1.6; }
    .report-note-box {
      border: 1px solid var(--border); border-radius: 13px;
      background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
      padding: 14px 15px;
      font-size: 12.5px; line-height: 1.8; color: var(--muted);
      white-space: pre-wrap;
    }

    /* ── LLM tab ── */
    .llm-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
    .stat-box { padding: 14px 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); }
    .stat-lbl { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 7px; }
    .stat-big { font-size: 24px; font-weight: 700; margin-bottom: 2px; }
    .stat-hint { font-size: 11.5px; color: var(--muted); }
    .llm-notes-box {
      padding: 14px 16px; border-radius: 9px;
      background: var(--bg); border: 1px solid var(--border);
      font-size: 13px; color: var(--muted); line-height: 1.65; white-space: pre-wrap;
    }

    /* ── Compare tab ── */
    .cmp-table { width: 100%; border-collapse: collapse; }
    .cmp-table th {
      text-align: left; padding: 10px 14px;
      font-size: 11.5px; font-weight: 600; color: var(--muted);
      text-transform: uppercase; letter-spacing: 0.05em;
      border-bottom: 1px solid var(--border);
    }
    .cmp-table td { padding: 10px 14px; font-size: 13px; border-bottom: 1px solid var(--border); vertical-align: middle; }
    .cmp-table tr:last-child td { border-bottom: none; }
    .cmp-table code { font-family: 'SFMono-Regular', Consolas, monospace; font-size: 12px; background: var(--bg); padding: 1px 6px; border-radius: 4px; border: 1px solid var(--border); }

    /* ── Knowledge graph tab ── */
    .graph-shell { display: flex; flex-direction: column; gap: 14px; }
    .graph-hero {
      display: grid;
      grid-template-columns: minmax(0, 1.45fr) 280px;
      gap: 14px;
      padding: 20px;
      border: 1px solid #d8e3ec;
      border-radius: 16px;
      background:
        radial-gradient(circle at top right, rgba(14,165,233,0.12), transparent 32%),
        radial-gradient(circle at bottom left, rgba(16,185,129,0.14), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f7fbfc 100%);
      box-shadow: 0 14px 34px rgba(15,23,42,0.05);
    }
    .graph-kicker {
      display: inline-flex;
      align-items: center;
      padding: 4px 10px;
      border-radius: 999px;
      background: rgba(14,165,233,0.08);
      color: #0369a1;
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      margin-bottom: 10px;
    }
    .graph-hero-copy h3 {
      font-size: 24px;
      line-height: 1.25;
      font-weight: 800;
      margin-bottom: 8px;
      color: #0f172a;
    }
    .graph-hero-copy p {
      font-size: 13px;
      line-height: 1.8;
      color: var(--muted);
      max-width: 760px;
    }
    .graph-status-card {
      border: 1px solid rgba(15,23,42,0.08);
      border-radius: 14px;
      background: rgba(255,255,255,0.86);
      padding: 16px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      gap: 8px;
      min-width: 0;
    }
    .graph-status-label {
      font-size: 10.5px;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--muted);
    }
    .graph-status-value {
      font-size: 30px;
      line-height: 1;
      font-weight: 800;
      color: #0f172a;
    }
    .graph-status-meta {
      font-size: 12px;
      line-height: 1.7;
      color: var(--muted);
      word-break: break-word;
    }
    .graph-stat-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 10px;
    }
    .graph-stat-card {
      border: 1px solid var(--border);
      border-radius: 13px;
      background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
      padding: 15px;
      box-shadow: 0 8px 20px rgba(15,23,42,0.03);
    }
    .graph-stat-card .lbl {
      display: block;
      margin-bottom: 8px;
      font-size: 10.5px;
      font-weight: 800;
      letter-spacing: 0.07em;
      text-transform: uppercase;
      color: var(--muted);
    }
    .graph-stat-card .val {
      font-size: 30px;
      line-height: 1;
      font-weight: 800;
      color: #0f172a;
    }
    .graph-overview-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.9fr);
      gap: 12px;
    }
    .graph-grid-2 {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }
    .graph-section {
      border: 1px solid var(--border);
      border-radius: 15px;
      background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
      overflow: hidden;
      box-shadow: 0 10px 24px rgba(15,23,42,0.03);
    }
    .graph-section-hdr {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 10px;
      padding: 14px 18px;
      border-bottom: 1px solid var(--border);
      background: linear-gradient(180deg, #fbfcfd 0%, #f8fafc 100%);
    }
    .graph-section-hdr h4 {
      font-size: 14px;
      font-weight: 800;
    }
    .graph-section-hdr span {
      font-size: 12px;
      color: var(--muted);
    }
    .graph-section-body { padding: 18px; }
    .graph-subsection + .graph-subsection {
      margin-top: 14px;
      padding-top: 14px;
      border-top: 1px dashed var(--border);
    }
    .graph-subtitle {
      margin-bottom: 8px;
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: var(--muted);
    }
    .graph-topology {
      display: flex;
      align-items: stretch;
      gap: 12px;
      overflow-x: auto;
      padding-bottom: 2px;
      scrollbar-width: thin;
    }
    .graph-topology-stage {
      flex: 0 0 230px;
      border: 1px solid #dbe5ee;
      border-radius: 14px;
      background: linear-gradient(180deg, #ffffff 0%, #f9fbfc 100%);
      padding: 14px;
      display: flex;
      flex-direction: column;
      gap: 12px;
      min-width: 0;
    }
    .graph-topology-stage-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 8px;
    }
    .graph-topology-label {
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: var(--muted);
      margin-bottom: 4px;
    }
    .graph-topology-count {
      font-size: 28px;
      line-height: 1;
      font-weight: 800;
      color: #0f172a;
    }
    .graph-topology-stack {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
    .graph-topology-node {
      border: 1px solid #e2e8f0;
      border-radius: 12px;
      background: #fff;
      padding: 10px 11px;
    }
    .graph-topology-node.is-empty {
      background: #fbfcfd;
      border-style: dashed;
    }
    .graph-topology-node-title {
      font-size: 12.5px;
      line-height: 1.55;
      font-weight: 700;
      color: #0f172a;
      word-break: break-word;
    }
    .graph-topology-node-meta {
      margin-top: 4px;
      font-size: 11.5px;
      line-height: 1.65;
      color: var(--muted);
      word-break: break-word;
    }
    .graph-topology-link {
      flex: 0 0 140px;
      align-self: center;
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 8px;
      min-width: 0;
    }
    .graph-topology-link-label {
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: #0369a1;
      text-align: center;
    }
    .graph-topology-link-pills {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }
    .graph-topology-pill {
      display: inline-flex;
      justify-content: center;
      align-items: center;
      min-height: 34px;
      padding: 6px 10px;
      border-radius: 999px;
      border: 1px dashed #cfe0ed;
      background: #f8fbfd;
      color: #0f172a;
      font-size: 11.5px;
      font-weight: 700;
      line-height: 1.4;
      text-align: center;
    }
    .graph-topology-pill.muted {
      color: var(--muted);
      font-weight: 600;
    }
    .graph-map-shell,
    .entity-map-shell {
      border-radius: 18px;
      border: 1px solid rgba(148,163,184,0.18);
      background:
        radial-gradient(circle at top left, rgba(14,165,233,0.07), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
      padding: 12px;
      overflow-x: auto;
    }
    .graph-map-svg,
    .entity-map-svg {
      width: 100%;
      min-width: 880px;
      display: block;
    }
    .graph-map-edge path,
    .entity-map-edge line {
      fill: none;
      stroke: #94a3b8;
      stroke-width: 2;
      stroke-linecap: round;
      stroke-linejoin: round;
    }
    .graph-map-shell marker path,
    .entity-map-shell marker path {
      fill: #94a3b8;
    }
    .graph-map-edge-label,
    .entity-map-edge-label {
      font-size: 11px;
      font-weight: 700;
      fill: #475569;
    }
    .graph-map-node rect {
      fill: #fff;
      stroke: rgba(148,163,184,0.25);
      stroke-width: 1.2;
      filter: drop-shadow(0 10px 18px rgba(15,23,42,0.05));
    }
    .graph-map-node.tone-site rect { fill: rgba(224,242,254,0.9); stroke: rgba(14,165,233,0.28); }
    .graph-map-node.tone-organization rect { fill: rgba(236,253,245,0.95); stroke: rgba(16,185,129,0.28); }
    .graph-map-node.tone-page rect { fill: rgba(248,250,252,0.98); stroke: rgba(100,116,139,0.24); }
    .graph-map-node.tone-offering rect { fill: rgba(255,247,237,0.96); stroke: rgba(245,158,11,0.28); }
    .graph-map-node.tone-profile rect { fill: rgba(239,246,255,0.96); stroke: rgba(59,130,246,0.28); }
    .graph-map-node.tone-source rect { fill: rgba(254,242,242,0.96); stroke: rgba(239,68,68,0.28); }
    .graph-map-node-kicker,
    .entity-map-kicker {
      font-size: 10px;
      font-weight: 800;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      fill: #64748b;
    }
    .graph-map-node-label,
    .entity-map-label {
      font-size: 13px;
      font-weight: 800;
      fill: #0f172a;
    }
    .graph-map-node-meta {
      font-size: 11px;
      font-weight: 600;
      fill: #64748b;
    }
    .graph-map-node-index,
    .entity-map-index {
      font-size: 10px;
      font-weight: 800;
      fill: #94a3b8;
    }
    .graph-bar-list {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    .graph-bar-row {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }
    .graph-bar-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      font-size: 12px;
      color: #0f172a;
      font-weight: 700;
    }
    .graph-bar-top span {
      min-width: 0;
      word-break: break-word;
    }
    .graph-bar-top strong {
      flex-shrink: 0;
    }
    .graph-bar-track {
      height: 8px;
      border-radius: 999px;
      overflow: hidden;
      background: #e9eef4;
    }
    .graph-bar-fill {
      height: 100%;
      border-radius: 999px;
      background: linear-gradient(90deg, #0ea5e9, #38bdf8);
    }
    .graph-bar-fill.relation {
      background: linear-gradient(90deg, #10b981, #34d399);
    }
    .graph-insight-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }
    .graph-insight-card {
      border: 1px solid #dfe7ef;
      border-radius: 13px;
      padding: 13px;
      background: #fff;
      display: flex;
      flex-direction: column;
      gap: 7px;
    }
    .graph-insight-label {
      font-size: 10.5px;
      font-weight: 800;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: var(--muted);
    }
    .graph-insight-value {
      font-size: 28px;
      line-height: 1;
      font-weight: 800;
      color: #0f172a;
    }
    .graph-insight-card p {
      font-size: 12px;
      line-height: 1.7;
      color: var(--muted);
    }
    .graph-meta-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }
    .graph-meta-card {
      border: 1px solid #dfe7ef;
      border-radius: 12px;
      background: #fff;
      padding: 12px;
      min-width: 0;
    }
    .graph-meta-label {
      margin-bottom: 6px;
      font-size: 10.5px;
      font-weight: 800;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: var(--muted);
    }
    .graph-meta-value {
      font-size: 12.5px;
      line-height: 1.7;
      color: #0f172a;
      font-weight: 700;
      word-break: break-word;
    }
    .graph-chip-list {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }
    .graph-chip {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 7px 10px;
      border-radius: 999px;
      background: #f8fafc;
      border: 1px solid #dde6ef;
      color: #0f172a;
      font-size: 12px;
      line-height: 1.4;
    }
    .graph-chip-key { font-weight: 700; }
    .graph-chip-val {
      padding-left: 8px;
      border-left: 1px solid #d6e1ea;
      color: #0369a1;
      font-weight: 800;
    }
    .graph-page-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }
    .graph-page-card {
      border: 1px solid #dfe7ef;
      border-radius: 12px;
      padding: 12px;
      background: #fff;
      min-width: 0;
    }
    .graph-page-card-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      margin-bottom: 8px;
    }
    .graph-page-type {
      display: inline-flex;
      padding: 4px 8px;
      border-radius: 999px;
      background: rgba(14,165,233,0.08);
      color: #0369a1;
      font-size: 10.5px;
      font-weight: 800;
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }
    .graph-page-words {
      font-size: 11px;
      color: var(--muted);
      font-weight: 700;
      white-space: nowrap;
    }
    .graph-page-title {
      font-size: 13px;
      line-height: 1.55;
      font-weight: 700;
      color: #0f172a;
      margin-bottom: 6px;
      word-break: break-word;
    }
    .graph-page-url {
      font-family: 'SFMono-Regular', Consolas, monospace;
      font-size: 11px;
      line-height: 1.7;
      color: #475569;
      word-break: break-all;
    }
    .graph-node-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 10px;
    }
    .graph-node-card {
      border: 1px solid var(--border);
      border-radius: 13px;
      padding: 12px;
      background: #fff;
      min-width: 0;
    }
    .graph-node-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      margin-bottom: 8px;
    }
    .graph-node-type {
      display: inline-flex;
      padding: 3px 8px;
      border-radius: 999px;
      font-size: 10.5px;
      font-weight: 800;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      background: #eef2f7;
      color: #334155;
    }
    .graph-node-confidence {
      font-size: 11px;
      font-weight: 800;
      color: var(--muted);
    }
    .graph-node-name {
      font-size: 13px;
      line-height: 1.55;
      font-weight: 700;
      color: #0f172a;
      margin-bottom: 6px;
      word-break: break-word;
    }
    .graph-node-meta {
      font-size: 11.5px;
      line-height: 1.65;
      color: var(--muted);
      margin-bottom: 7px;
      word-break: break-word;
    }
    .graph-node-url {
      font-family: 'SFMono-Regular', Consolas, monospace;
      font-size: 11px;
      line-height: 1.7;
      color: #475569;
      word-break: break-all;
    }
    .graph-list {
      display: flex;
      flex-direction: column;
      gap: 9px;
    }
    .graph-relation-card {
      border: 1px solid #dfe7ef;
      border-radius: 12px;
      padding: 12px;
      background: #fff;
      display: flex;
      flex-direction: column;
      gap: 7px;
    }
    .graph-relation-type {
      display: inline-flex;
      align-self: flex-start;
      padding: 4px 9px;
      border-radius: 999px;
      background: rgba(16,185,129,0.1);
      color: #047857;
      font-size: 10.5px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }
    .graph-relation-path {
      font-size: 13px;
      line-height: 1.7;
      font-weight: 700;
      color: #0f172a;
      word-break: break-word;
    }
    .graph-relation-meta {
      font-size: 11.5px;
      line-height: 1.7;
      color: var(--muted);
    }
    .graph-evidence-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 9px;
    }
    .graph-evidence-card {
      border: 1px solid #dfe7ef;
      border-radius: 12px;
      padding: 12px;
      background: #fff;
      display: flex;
      flex-direction: column;
      gap: 6px;
    }
    .graph-evidence-type {
      display: inline-flex;
      align-self: flex-start;
      padding: 4px 8px;
      border-radius: 999px;
      background: rgba(245,158,11,0.12);
      color: #b45309;
      font-size: 10.5px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }
    .graph-evidence-field {
      font-size: 12px;
      line-height: 1.6;
      font-weight: 700;
      color: #0f172a;
      word-break: break-word;
    }
    .graph-evidence-text {
      font-size: 11.5px;
      line-height: 1.7;
      color: var(--muted);
      word-break: break-word;
    }
    .graph-arrow {
      color: #10b981;
      font-weight: 800;
      padding: 0 5px;
    }
    .graph-empty-note {
      border: 1px dashed var(--border);
      border-radius: 11px;
      background: #fbfcfd;
      padding: 12px 14px;
      font-size: 12.5px;
      line-height: 1.7;
      color: var(--muted);
    }
    .graph-footnote {
      margin-top: 10px;
      font-size: 11.5px;
      color: var(--muted);
      line-height: 1.7;
    }
    .tone-site { border-color: rgba(14,165,233,0.22); background: linear-gradient(180deg, rgba(14,165,233,0.05) 0%, #ffffff 100%); }
    .tone-organization { border-color: rgba(16,185,129,0.24); background: linear-gradient(180deg, rgba(16,185,129,0.05) 0%, #ffffff 100%); }
    .tone-page { border-color: rgba(100,116,139,0.24); background: linear-gradient(180deg, rgba(100,116,139,0.05) 0%, #ffffff 100%); }
    .tone-offering { border-color: rgba(245,158,11,0.24); background: linear-gradient(180deg, rgba(245,158,11,0.05) 0%, #ffffff 100%); }
    .tone-profile { border-color: rgba(59,130,246,0.24); background: linear-gradient(180deg, rgba(59,130,246,0.05) 0%, #ffffff 100%); }
    .tone-source { border-color: rgba(239,68,68,0.22); background: linear-gradient(180deg, rgba(239,68,68,0.05) 0%, #ffffff 100%); }
    .tone-neutral { border-color: rgba(148,163,184,0.28); background: linear-gradient(180deg, rgba(148,163,184,0.05) 0%, #ffffff 100%); }
    .graph-node-card.tone-site .graph-node-type,
    .graph-topology-node.tone-site .graph-topology-node-title { color: #0369a1; }
    .graph-node-card.tone-organization .graph-node-type,
    .graph-topology-node.tone-organization .graph-topology-node-title { color: #047857; }
    .graph-node-card.tone-page .graph-node-type,
    .graph-topology-node.tone-page .graph-topology-node-title { color: #475569; }
    .graph-node-card.tone-offering .graph-node-type,
    .graph-topology-node.tone-offering .graph-topology-node-title { color: #b45309; }
    .graph-node-card.tone-profile .graph-node-type,
    .graph-topology-node.tone-profile .graph-topology-node-title { color: #1d4ed8; }
    .graph-node-card.tone-source .graph-node-type,
    .graph-topology-node.tone-source .graph-topology-node-title { color: #b91c1c; }
    .entity-shell {
      background:
        radial-gradient(circle at top left, rgba(15, 118, 110, 0.07), transparent 34%),
        radial-gradient(circle at bottom right, rgba(180, 83, 9, 0.08), transparent 30%);
      border-radius: 24px;
      padding: 2px;
    }
    .entity-hero .graph-kicker { color: #0f766e; }
    .entity-stat-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 12px;
    }
    .entity-stat-card {
      border: 1px solid rgba(148, 163, 184, 0.18);
      border-radius: 18px;
      background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.95));
      padding: 16px 18px;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
    .entity-stat-card .lbl {
      font-size: 12px;
      color: var(--muted);
      font-weight: 700;
      letter-spacing: .03em;
      text-transform: uppercase;
    }
    .entity-stat-card .val {
      font-size: 28px;
      font-weight: 800;
      color: #0f172a;
    }
    .entity-flow {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr) 24px minmax(0, 1fr) 24px minmax(0, 1fr);
      gap: 10px;
      align-items: stretch;
    }
    .entity-flow-arrow {
      display: flex;
      align-items: center;
      justify-content: center;
      color: #94a3b8;
      font-size: 20px;
      font-weight: 800;
    }
    .entity-lane {
      border-radius: 18px;
      padding: 16px;
      border: 1px solid rgba(148, 163, 184, 0.18);
      background: rgba(255,255,255,0.96);
      display: flex;
      flex-direction: column;
      gap: 12px;
    }
    .entity-lane.tone-brand { background: linear-gradient(180deg, rgba(224, 242, 254, 0.9), rgba(255,255,255,0.98)); }
    .entity-lane.tone-offer { background: linear-gradient(180deg, rgba(255, 247, 237, 0.9), rgba(255,255,255,0.98)); }
    .entity-lane.tone-detail { background: linear-gradient(180deg, rgba(240, 253, 244, 0.9), rgba(255,255,255,0.98)); }
    .entity-lane.tone-claim { background: linear-gradient(180deg, rgba(254, 242, 242, 0.9), rgba(255,255,255,0.98)); }
    .entity-lane-head {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }
    .entity-lane-title {
      font-size: 14px;
      font-weight: 800;
      color: #0f172a;
    }
    .entity-lane-sub {
      font-size: 12px;
      line-height: 1.5;
      color: var(--muted);
    }
    .entity-pill-list {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    .entity-pill {
      border-radius: 14px;
      background: rgba(255,255,255,0.88);
      border: 1px solid rgba(148, 163, 184, 0.16);
      padding: 12px;
      box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
    }
    .entity-pill-title {
      font-size: 13px;
      line-height: 1.45;
      color: #0f172a;
      font-weight: 700;
    }
    .entity-pill-meta {
      margin-top: 6px;
      font-size: 11px;
      color: var(--muted);
    }
    .entity-type-bars {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }
    .entity-type-row {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }
    .entity-type-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      font-size: 13px;
      color: #0f172a;
      font-weight: 700;
    }
    .entity-type-track {
      height: 9px;
      border-radius: 999px;
      background: rgba(148, 163, 184, 0.16);
      overflow: hidden;
    }
    .entity-type-fill {
      height: 100%;
      border-radius: inherit;
      background: linear-gradient(90deg, #0f766e, #14b8a6);
    }
    .entity-source-grid,
    .entity-group-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 14px;
    }
    .entity-source-card,
    .entity-group-card {
      border-radius: 18px;
      border: 1px solid rgba(148, 163, 184, 0.18);
      background: rgba(255,255,255,0.96);
      padding: 16px;
    }
    .entity-source-top,
    .entity-group-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 10px;
    }
    .entity-source-type,
    .entity-source-words,
    .entity-group-head span {
      font-size: 11px;
      font-weight: 700;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: .04em;
    }
    .entity-source-title,
    .entity-group-head h4 {
      font-size: 14px;
      line-height: 1.5;
      color: #0f172a;
      font-weight: 800;
      margin: 0;
    }
    .entity-source-url {
      font-size: 12px;
      line-height: 1.45;
      color: #475569;
      word-break: break-word;
    }
    .entity-source-excerpt {
      margin-top: 12px;
      font-size: 12px;
      line-height: 1.6;
      color: #334155;
    }
    .entity-group-list {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    .entity-group-item {
      border-radius: 14px;
      background: rgba(248,250,252,0.92);
      border: 1px solid rgba(148, 163, 184, 0.14);
      padding: 12px;
    }
    .entity-group-name {
      font-size: 13px;
      line-height: 1.45;
      color: #0f172a;
      font-weight: 700;
    }
    .entity-group-meta {
      margin-top: 6px;
      font-size: 11px;
      color: var(--muted);
    }
    .entity-map-node circle {
      fill: #fff;
      stroke-width: 1.4;
      filter: drop-shadow(0 10px 20px rgba(15,23,42,0.06));
    }
    .entity-map-node.tone-brand circle { fill: rgba(224,242,254,0.95); stroke: rgba(14,165,233,0.3); }
    .entity-map-node.tone-offer circle { fill: rgba(255,247,237,0.95); stroke: rgba(245,158,11,0.3); }
    .entity-map-node.tone-detail circle { fill: rgba(240,253,244,0.95); stroke: rgba(16,185,129,0.28); }
    .entity-map-node.tone-case circle { fill: rgba(243,232,255,0.95); stroke: rgba(139,92,246,0.28); }
    .entity-map-node.tone-claim circle { fill: rgba(254,242,242,0.95); stroke: rgba(239,68,68,0.28); }

    /* ── JSON tab ── */
    .json-shell { background: #0d1117; border-radius: 9px; padding: 16px; overflow: hidden; }
    .json-toolbar {
      display: flex; align-items: center; justify-content: space-between;
      gap: 12px; margin-bottom: 12px;
    }
    .json-title {
      font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em;
      text-transform: uppercase; color: rgba(241,245,249,0.72);
    }
    .btn-json {
      height: 32px; padding: 0 12px; border-radius: 8px;
      border: 1px solid rgba(255,255,255,0.12);
      background: rgba(255,255,255,0.06); color: #f8fafc;
      font-size: 12px; font-weight: 600; cursor: pointer;
      transition: background 0.15s, border-color 0.15s;
    }
    .btn-json:hover { background: rgba(255,255,255,0.11); border-color: rgba(255,255,255,0.2); }
    pre.json-out {
      margin: 0; padding: 0;
      font-family: 'SFMono-Regular', Consolas, monospace;
      font-size: 12px; line-height: 1.65;
      color: #8ec89a; background: none;
      overflow: auto; max-height: 480px;
    }

    /* ── Badges ── */
    .badge {
      display: inline-flex; align-items: center; gap: 4px;
      padding: 3px 9px; border-radius: 999px;
      font-size: 11.5px; font-weight: 600;
    }
    .b-default { background: var(--bg); color: var(--muted); border: 1px solid var(--border); }
    .b-success  { background: var(--accent-dim); color: var(--accent); }
    .b-warn     { background: var(--warn-dim); color: var(--warn); }
    .b-danger   { background: var(--danger-dim); color: var(--danger); }

    /* ── Toast ── */
    .toast {
      position: fixed; bottom: 22px; right: 22px;
      max-width: 380px; padding: 11px 16px;
      border-radius: 10px; background: #1c2430; color: #f1f5f9;
      font-size: 13px; line-height: 1.45;
      box-shadow: 0 8px 28px rgba(0,0,0,0.22);
      z-index: 9999;
      display: flex; align-items: flex-start; gap: 9px;
      transform: translateY(80px); opacity: 0;
      transition: transform 0.28s cubic-bezier(0.4,0,0.2,1), opacity 0.28s;
    }
    .toast.show { transform: translateY(0); opacity: 1; }
    .toast.t-error   { border-left: 3px solid var(--danger); }
    .toast.t-success { border-left: 3px solid var(--accent); }
    .toast-icon { font-size: 14px; flex-shrink: 0; margin-top: 1px; }
    .toast-close {
      margin-left: auto; flex-shrink: 0; cursor: pointer;
      color: #64748b; font-size: 15px; line-height: 1;
      background: none; border: none; padding: 0;
    }
    .toast-close:hover { color: #f1f5f9; }

    /* ── Spinner ── */
    .spin {
      width: 13px; height: 13px; border-radius: 50%;
      border: 2px solid rgba(255,255,255,0.3);
      border-top-color: #fff;
      animation: spin 0.55s linear infinite; flex-shrink: 0;
    }
    @keyframes spin { to { transform: rotate(360deg); } }

    /* ── Bottom sections ── */
    .section-divider {
      margin: 32px 0 0;
      border: none; border-top: 1px solid var(--border);
    }
    .section-hdr {
      display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px;
    }
    .section-hdr h2 { font-size: 15px; font-weight: 700; }
    .section-hdr span { font-size: 12.5px; color: var(--muted); }

    /* scoring dimensions */
    .dim-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
      margin-bottom: 14px;
    }
    .dim-card {
      border: 1px solid var(--border); border-radius: 11px;
      padding: 13px 14px; background: var(--surface);
    }
    .dim-head {
      display: flex; align-items: center; justify-content: space-between;
      margin-bottom: 9px;
    }
    .dim-name { font-size: 12.5px; font-weight: 700; }
    .dim-score { font-size: 11px; font-weight: 700; color: var(--accent); background: var(--accent-dim); padding: 2px 7px; border-radius: 999px; }
    .dim-rows { display: flex; flex-direction: column; gap: 5px; }
    .dim-row {
      display: flex; justify-content: space-between; align-items: center;
      font-size: 11.5px; gap: 8px;
    }
    .dim-row-label { color: var(--muted); flex: 1; min-width: 0; }
    .dim-row-val { font-weight: 600; white-space: nowrap; flex-shrink: 0; }
    .score-table {
      display: inline-flex; gap: 0;
      border: 1px solid var(--border); border-radius: 9px; overflow: hidden;
    }
    .score-cell {
      padding: 6px 14px; font-size: 12px; text-align: center;
      border-right: 1px solid var(--border);
    }
    .score-cell:last-child { border-right: none; }
    .score-cell .sc-range { font-weight: 700; font-size: 13px; display: block; }
    .score-cell .sc-lbl { color: var(--muted); font-size: 10.5px; margin-top: 1px; }
    .sc-critical { color: #dc2626; }
    .sc-poor     { color: #ea580c; }
    .sc-fair     { color: var(--warn); }
    .sc-good     { color: #16a34a; }
    .sc-strong   { color: var(--accent); }

    /* business notes */
    .biz-grid {
      display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
    }
    .biz-card {
      border: 1px solid var(--border); border-radius: 11px;
      padding: 14px 15px; background: var(--surface);
    }
    .biz-card h4 { font-size: 12.5px; font-weight: 700; margin-bottom: 7px; }
    .biz-card ul { padding-left: 16px; display: flex; flex-direction: column; gap: 4px; }
    .biz-card li { font-size: 12px; color: var(--muted); line-height: 1.5; }
    .biz-card li strong { color: var(--text); }

    /* API steps */
    .api-steps { display: flex; flex-direction: column; gap: 12px; }
    .api-step {
      border: 1px solid var(--border); border-radius: 11px;
      background: var(--surface); overflow: hidden;
    }
    .api-step-hdr {
      display: flex; align-items: center; gap: 10px;
      padding: 12px 16px; border-bottom: 1px solid var(--border);
      background: #fafbfc;
    }
    .api-num {
      width: 22px; height: 22px; border-radius: 50%;
      background: #0d1117; color: #fff;
      display: flex; align-items: center; justify-content: center;
      font-size: 11px; font-weight: 700; flex-shrink: 0;
    }
    .api-step-title { font-size: 13px; font-weight: 600; }
    .api-step-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
    .api-endpoint {
      display: inline-flex; align-items: center; gap: 8px;
      background: #0d1117; color: #f1f5f9;
      padding: 7px 14px; border-radius: 8px; font-size: 12.5px;
      font-family: 'SFMono-Regular', Consolas, monospace;
    }
    .method { padding: 2px 7px; border-radius: 5px; font-size: 10.5px; font-weight: 700; }
    .m-post { background: rgba(245,158,11,0.25); color: #f59e0b; }
    .m-get  { background: rgba(16,185,129,0.25); color: #10b981; }
    .api-desc { font-size: 12.5px; color: var(--muted); line-height: 1.55; }
    .api-params { display: flex; flex-direction: column; gap: 4px; }
    .param-row { display: flex; gap: 8px; align-items: baseline; font-size: 12px; }
    .param-key { font-family: 'SFMono-Regular', Consolas, monospace; background: var(--bg); padding: 1px 6px; border-radius: 4px; border: 1px solid var(--border); color: var(--text); font-size: 11.5px; flex-shrink: 0; }
    .param-type { color: #6366f1; font-size: 11px; flex-shrink: 0; }
    .param-desc { color: var(--muted); }
    .param-req { color: var(--danger); font-size: 10.5px; font-weight: 600; flex-shrink: 0; }
    .code-snippet {
      background: #0d1117; border-radius: 8px; padding: 12px 14px; overflow: auto;
    }
    .code-snippet pre {
      margin: 0; font-size: 11.5px; line-height: 1.65;
      font-family: 'SFMono-Regular', Consolas, monospace;
      color: #8ec89a;
    }

    /* ── Responsive ── */
    @media (max-width: 1100px) { .dim-grid { grid-template-columns: repeat(3, 1fr); } }
    @media (max-width: 860px) {
      .hdr-inner { flex-direction: column; align-items: flex-start; }
      .hdr-actions { justify-content: flex-start; }
      .hdr-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .access-controls { grid-template-columns: 1fr; }
      .access-controls .btn { width: 100%; }
      .grid-top { grid-template-columns: 1fr; }
      .row-2 { grid-template-columns: 1fr; }
      .llm-stats { grid-template-columns: 1fr; }
      .graph-hero { grid-template-columns: 1fr; }
      .graph-overview-grid { grid-template-columns: 1fr; }
      .graph-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .graph-grid-2 { grid-template-columns: 1fr; }
      .graph-meta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .graph-page-grid { grid-template-columns: 1fr; }
      .graph-insight-grid { grid-template-columns: 1fr; }
      .graph-node-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .entity-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .entity-flow { grid-template-columns: 1fr; }
      .entity-flow-arrow { transform: rotate(90deg); min-height: 26px; }
      .entity-source-grid,
      .entity-group-grid { grid-template-columns: 1fr; }
      .report-hero { grid-template-columns: 1fr; }
      .report-score-box { min-height: 380px; }
      .report-meta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .report-dim-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .report-grid-2 { grid-template-columns: 1fr; }
      .report-platform-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .report-evidence-grid { grid-template-columns: 1fr; }
      .page-diagnostic-head { flex-direction: column; }
      .page-diagnostic-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); min-width: 0; width: 100%; }
      .page-diagnostic-panels { grid-template-columns: 1fr; }
      .dim-grid { grid-template-columns: repeat(2, 1fr); }
      .biz-grid { grid-template-columns: 1fr 1fr; }
    }
    @media (max-width: 640px) {
      .hdr { padding-left: 14px; padding-right: 14px; }
      .hdr-brand { align-items: flex-start; }
      .hdr-logo { width: 44px; height: 44px; font-size: 18px; border-radius: 14px; }
      .hdr-name { font-size: 22px; }
      .hdr-sub { font-size: 13px; }
      .hdr-actions { width: 100%; }
      .hdr-link { flex: 1 1 calc(50% - 8px); }
      .hdr-meta { grid-template-columns: 1fr; }
      .access-panel { padding: 16px; }
      .access-title-row h2 { font-size: 18px; }
      .graph-meta-grid { grid-template-columns: 1fr; }
      .report-meta-grid { grid-template-columns: 1fr; }
      .report-score-box { min-height: 340px; }
      .graph-stat-grid { grid-template-columns: 1fr; }
      .graph-node-grid { grid-template-columns: 1fr; }
      .entity-stat-grid { grid-template-columns: 1fr; }
      .report-dim-grid { grid-template-columns: 1fr; }
      .report-platform-grid { grid-template-columns: 1fr; }
      .report-action { grid-template-columns: 1fr; }
      .report-action-impact { width: 100%; }
      .page-diagnostic-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .dim-grid { grid-template-columns: 1fr; }
      .biz-grid { grid-template-columns: 1fr; }
    }
    @media (max-width: 560px) {
      .meta-grid { grid-template-columns: 1fr; }
      .meta-cell:first-child  { border-radius: 10px 10px 0 0; }
      .meta-cell:nth-child(2) { border-radius: 0; }
      .meta-cell:nth-last-child(2) { border-radius: 0; }
      .meta-cell:last-child   { border-radius: 0 0 10px 10px; }
    }
